abstra 3.23.8__py3-none-any.whl → 3.23.9__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {abstra-3.23.8.dist-info → abstra-3.23.9.dist-info}/METADATA +1 -1
- {abstra-3.23.8.dist-info → abstra-3.23.9.dist-info}/RECORD +168 -165
- abstra_internals/entities/forms/template.py +84 -5
- abstra_internals/modules_test.py +2 -2
- abstra_internals/services/file_watcher.py +17 -14
- abstra_internals/utils/file.py +62 -0
- abstra_internals/utils/platform.py +5 -0
- abstra_statics/dist/assets/AbstraButton.vue_vue_type_script_setup_true_lang.e74c1d9b.js +2 -0
- abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.f9d9018b.js +2 -0
- abstra_statics/dist/assets/ApiKeys.1d2b9051.js +2 -0
- abstra_statics/dist/assets/App.24328bec.js +2 -0
- abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.13b52476.js +2 -0
- abstra_statics/dist/assets/BaseLayout.e2546be2.js +2 -0
- abstra_statics/dist/assets/{Billing.b9f77b65.js → Billing.ed96ff6d.js} +2 -2
- abstra_statics/dist/assets/{Breadcrumb.d0cc2c91.js → Breadcrumb.21c760be.js} +2 -2
- abstra_statics/dist/assets/{Builds.18e4ba1a.js → Builds.e0882931.js} +2 -2
- abstra_statics/dist/assets/{Card.957a87b2.js → Card.714646f7.js} +5 -5
- abstra_statics/dist/assets/{CircularLoading.3e4ddd6d.js → CircularLoading.5ac43298.js} +2 -2
- abstra_statics/dist/assets/CloseCircleOutlined.04918c3d.js +2 -0
- abstra_statics/dist/assets/ConnectorsView.78da900d.js +2 -0
- abstra_statics/dist/assets/{ConnectorsView.17764dde.css → ConnectorsView.aeb00ce8.css} +1 -1
- abstra_statics/dist/assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.d7b17e09.js +2 -0
- abstra_statics/dist/assets/ContentLayout.3a69fd49.js +2 -0
- abstra_statics/dist/assets/{CrudView.8fb84eac.js → CrudView.77b58a5a.js} +2 -2
- abstra_statics/dist/assets/{DocsButton.vue_vue_type_script_setup_true_lang.0555d923.js → DocsButton.vue_vue_type_script_setup_true_lang.836e8f5e.js} +2 -2
- abstra_statics/dist/assets/{EditorLogin.02eb6050.js → EditorLogin.4d61e44f.js} +2 -2
- abstra_statics/dist/assets/{EditorsView.f0ea00fc.js → EditorsView.08a5cd3a.js} +2 -2
- abstra_statics/dist/assets/EnvVars.2f33a113.js +2 -0
- abstra_statics/dist/assets/{Error.a81122c4.js → Error.8a6cfa01.js} +2 -2
- abstra_statics/dist/assets/ExclamationCircleOutlined.93703670.js +2 -0
- abstra_statics/dist/assets/{Files.f23b9c53.js → Files.6d07f9be.js} +2 -2
- abstra_statics/dist/assets/Form.c1a08fa6.js +2 -0
- abstra_statics/dist/assets/{FormRunner.8bbe841e.js → FormRunner.a00b296a.js} +2 -2
- abstra_statics/dist/assets/Home.332f8b44.js +2 -0
- abstra_statics/dist/assets/Home.964d824d.js +2 -0
- abstra_statics/dist/assets/{Live.5dc821b6.js → Live.ee0e73dd.js} +2 -2
- abstra_statics/dist/assets/LoadingContainer.cbb8e068.js +2 -0
- abstra_statics/dist/assets/LoadingOutlined.644899c2.js +2 -0
- abstra_statics/dist/assets/{Login.c702642b.js → Login.0182140b.js} +2 -2
- abstra_statics/dist/assets/Login.ebf77147.js +2 -0
- abstra_statics/dist/assets/{Login.vue_vue_type_script_setup_true_lang.a92a80d0.js → Login.vue_vue_type_script_setup_true_lang.721bd893.js} +2 -2
- abstra_statics/dist/assets/Logo.c74119c7.js +2 -0
- abstra_statics/dist/assets/{Logs.eebc0504.js → Logs.7a458aba.js} +2 -2
- abstra_statics/dist/assets/{LogsController.eb1b811d.js → LogsController.e7ad74db.js} +2 -2
- abstra_statics/dist/assets/Main.a2c84f7b.js +2 -0
- abstra_statics/dist/assets/{MockForm.c3318be9.js → MockForm.50f237ad.js} +2 -2
- abstra_statics/dist/assets/Navbar.0cf9e650.js +2 -0
- abstra_statics/dist/assets/NewEditor.4519d8ac.js +8 -0
- abstra_statics/dist/assets/OidcLoginCallback.073de6bd.js +2 -0
- abstra_statics/dist/assets/OidcLogoutCallback.e474320b.js +2 -0
- abstra_statics/dist/assets/{OmniChat.de828c54.js → OmniChat.1a6ad90c.js} +4 -4
- abstra_statics/dist/assets/{OnboardingView.1c034f0d.js → OnboardingView.c4e859f1.js} +2 -2
- abstra_statics/dist/assets/{Organization.855f95a9.js → Organization.432776d6.js} +2 -2
- abstra_statics/dist/assets/{Organizations.3db82ab2.js → Organizations.cd6f9f61.js} +2 -2
- abstra_statics/dist/assets/{PhArrowCounterClockwise.vue.76c9e146.js → PhArrowCounterClockwise.vue.72ed46a0.js} +2 -2
- abstra_statics/dist/assets/{PhArrowSquareOut.vue.ecfa9cb2.js → PhArrowSquareOut.vue.ddb450f1.js} +2 -2
- abstra_statics/dist/assets/{PhBookBookmark.vue.f8f803d9.js → PhBookBookmark.vue.4a6ba053.js} +2 -2
- abstra_statics/dist/assets/{PhChats.vue.dfda946c.js → PhChats.vue.870bbba9.js} +2 -2
- abstra_statics/dist/assets/{PhClockCounterClockwise.vue.cd77fd26.js → PhClockCounterClockwise.vue.123f0e9b.js} +2 -2
- abstra_statics/dist/assets/{PhCopy.vue.a63b48dd.js → PhCopy.vue.70df4792.js} +2 -2
- abstra_statics/dist/assets/{PhCopySimple.vue.ecffb042.js → PhCopySimple.vue.f5246c24.js} +2 -2
- abstra_statics/dist/assets/{PhCube.vue.b5b96a33.js → PhCube.vue.8900248a.js} +2 -2
- abstra_statics/dist/assets/{PhDotsThreeVertical.vue.2db678ef.js → PhDotsThreeVertical.vue.14516e2e.js} +2 -2
- abstra_statics/dist/assets/PhDownloadSimple.vue.f8dc6a01.js +2 -0
- abstra_statics/dist/assets/{PhFolderPlus.vue.dfb9b117.js → PhFolderPlus.vue.65855487.js} +2 -2
- abstra_statics/dist/assets/{PhGear.vue.6e1aeed0.js → PhGear.vue.172823d3.js} +2 -2
- abstra_statics/dist/assets/{PhKey.vue.50d82bb5.js → PhKey.vue.9d78ceda.js} +2 -2
- abstra_statics/dist/assets/{PhPencil.vue.ae2943da.js → PhPencil.vue.f326c6d0.js} +2 -2
- abstra_statics/dist/assets/{PhPencilSimple.vue.9042e169.js → PhPencilSimple.vue.31afd9b3.js} +2 -2
- abstra_statics/dist/assets/{PhPencilSimpleLine.vue.f840cf0d.js → PhPencilSimpleLine.vue.394969fe.js} +2 -2
- abstra_statics/dist/assets/{PhRocket.vue.3b5927aa.js → PhRocket.vue.b69be43b.js} +2 -2
- abstra_statics/dist/assets/{PhSignOut.vue.d00d3657.js → PhSignOut.vue.6be07f90.js} +2 -2
- abstra_statics/dist/assets/{PhSparkle.vue.8a94f3a0.js → PhSparkle.vue.ca8d1014.js} +2 -2
- abstra_statics/dist/assets/{PhUserList.vue.3791cb59.js → PhUserList.vue.43e7a38a.js} +2 -2
- abstra_statics/dist/assets/{PhUsersThree.vue.ef0376b6.js → PhUsersThree.vue.fb26521a.js} +2 -2
- abstra_statics/dist/assets/{PhWebhooksLogo.vue.fe81fb65.js → PhWebhooksLogo.vue.ea667ed2.js} +2 -2
- abstra_statics/dist/assets/{PlayerConfigProvider.2acd3a77.js → PlayerConfigProvider.5aec8c16.js} +2 -2
- abstra_statics/dist/assets/{PlayerNavbar.13876ce7.js → PlayerNavbar.21883569.js} +2 -2
- abstra_statics/dist/assets/{Project.0277535f.js → Project.a987ec46.js} +2 -2
- abstra_statics/dist/assets/ProjectLogin.583ce83f.js +2 -0
- abstra_statics/dist/assets/{ProjectSettings.652a838b.js → ProjectSettings.b949f40f.js} +2 -2
- abstra_statics/dist/assets/{ProjectsView.c5ec993b.js → ProjectsView.7de28b8a.js} +2 -2
- abstra_statics/dist/assets/{SaveButton.ac38b361.js → SaveButton.f6870993.js} +2 -2
- abstra_statics/dist/assets/{ScrollArea.vue_vue_type_script_setup_true_lang.a58564d3.js → ScrollArea.vue_vue_type_script_setup_true_lang.21ea9f38.js} +2 -2
- abstra_statics/dist/assets/{Sidebar.56e51ab5.js → Sidebar.1250b960.js} +2 -2
- abstra_statics/dist/assets/Sql.a8abfb57.js +5 -0
- abstra_statics/dist/assets/Steps.2f177a1f.js +2 -0
- abstra_statics/dist/assets/{TableEditor.df6a4852.js → TableEditor.25046840.js} +2 -2
- abstra_statics/dist/assets/Tables.f0ea43f5.js +2 -0
- abstra_statics/dist/assets/{TablesDiagram.811d464d.js → TablesDiagram.eb43ee41.js} +2 -2
- abstra_statics/dist/assets/TablesTabs.vue_vue_type_script_setup_true_lang.a35b4471.js +2 -0
- abstra_statics/dist/assets/Tasks.5fde94ea.js +2 -0
- abstra_statics/dist/assets/{UploadOutlined.b601a592.js → UploadOutlined.3828d031.js} +2 -2
- abstra_statics/dist/assets/{View.7a2ccc33.js → View.f0be1038.js} +2 -2
- abstra_statics/dist/assets/View.vue_vue_type_script_setup_true_lang.bddece9c.js +2 -0
- abstra_statics/dist/assets/{Watermark.40c8c47e.js → Watermark.1655dad8.js} +2 -2
- abstra_statics/dist/assets/{WebEditor.82a3accf.js → WebEditor.f6ba39c6.js} +2 -2
- abstra_statics/dist/assets/WidgetPreview.70e3ecb3.js +2 -0
- abstra_statics/dist/assets/ant-design.1cc60cde.js +2 -0
- abstra_statics/dist/assets/{apiKey.95126643.js → apiKey.49b8decf.js} +2 -2
- abstra_statics/dist/assets/asyncComputed.92146382.js +2 -0
- abstra_statics/dist/assets/{build.997fec15.js → build.261de82e.js} +2 -2
- abstra_statics/dist/assets/colorHelpers.59e5ee56.js +2 -0
- abstra_statics/dist/assets/{console.54ab975c.js → console.0548c6a0.js} +4 -4
- abstra_statics/dist/assets/constants.f352d89b.js +2 -0
- abstra_statics/dist/assets/contracts.generated.ac0bb8ea.js +2 -0
- abstra_statics/dist/assets/{cssMode.c1aa21d7.js → cssMode.c55f29d9.js} +2 -2
- abstra_statics/dist/assets/datetime.780c5d6b.js +2 -0
- abstra_statics/dist/assets/{dayjs.a6bd0ee0.js → dayjs.b139fc88.js} +2 -2
- abstra_statics/dist/assets/editor.f7e5ca32.js +2 -0
- abstra_statics/dist/assets/editor.main.eea24677.js +2 -0
- abstra_statics/dist/assets/fetch.e3c8dd68.js +2 -0
- abstra_statics/dist/assets/{folder.41d37eb7.js → folder.934b13ce.js} +2 -2
- abstra_statics/dist/assets/{freemarker2.40778f3f.js → freemarker2.72aea997.js} +2 -2
- abstra_statics/dist/assets/{handlebars.92d4ff2a.js → handlebars.607ed329.js} +2 -2
- abstra_statics/dist/assets/{html.b3c0c53a.js → html.1cebc021.js} +3 -3
- abstra_statics/dist/assets/{htmlMode.1212da49.js → htmlMode.b3ab207b.js} +2 -2
- abstra_statics/dist/assets/{index.9e0166fe.js → index.2efe5ae2.js} +2 -2
- abstra_statics/dist/assets/{index.37c46161.js → index.424d5056.js} +2 -2
- abstra_statics/dist/assets/{index.a7b8e25e.js → index.61710ff9.js} +2 -2
- abstra_statics/dist/assets/{index.d181a22c.js → index.8ea8b90b.js} +2 -2
- abstra_statics/dist/assets/{index.3ff1c0be.js → index.a5ddebc4.js} +3 -3
- abstra_statics/dist/assets/{index.36d8b30a.js → index.cef986ac.js} +3 -3
- abstra_statics/dist/assets/{index.3e7471f4.js → index.d73f307c.js} +2 -2
- abstra_statics/dist/assets/{index.5e22e010.js → index.ded0f9ab.js} +2 -2
- abstra_statics/dist/assets/index.e189c6ed.js +2 -0
- abstra_statics/dist/assets/{javascript.f9710043.js → javascript.595850d9.js} +2 -2
- abstra_statics/dist/assets/{jsonMode.16d00c0d.js → jsonMode.e3ed1113.js} +2 -2
- abstra_statics/dist/assets/{jwt-decode.esm.992666e9.js → jwt-decode.esm.1b301f74.js} +8 -8
- abstra_statics/dist/assets/linters.0018d44c.js +2 -0
- abstra_statics/dist/assets/{liquid.9a777e1a.js → liquid.3ef83be8.js} +3 -3
- abstra_statics/dist/assets/member.3c3a769a.js +2 -0
- abstra_statics/dist/assets/{metadata.cfad5458.js → metadata.e6e62729.js} +2 -2
- abstra_statics/dist/assets/{omniChatStore.2b85c342.js → omniChatStore.8902e4de.js} +2 -2
- abstra_statics/dist/assets/{organization.53636095.js → organization.c92a9190.js} +2 -2
- abstra_statics/dist/assets/player.82dc9e2f.js +2 -0
- abstra_statics/dist/assets/{plotly.min.9b8bef5c.js → plotly.min.ac699f04.js} +2 -2
- abstra_statics/dist/assets/polling.a3bae209.js +2 -0
- abstra_statics/dist/assets/{project.76f0af14.js → project.48a235c1.js} +2 -2
- abstra_statics/dist/assets/{python.ae8270c8.js → python.b69cfb2a.js} +3 -3
- abstra_statics/dist/assets/{razor.4f24e19e.js → razor.0f42fef9.js} +3 -3
- abstra_statics/dist/assets/{record.87ef3b68.js → record.b96b0275.js} +2 -2
- abstra_statics/dist/assets/redirect.ebab71ed.js +2 -0
- abstra_statics/dist/assets/repository.4920fb3b.js +2 -0
- abstra_statics/dist/assets/{repository.af418855.js → repository.c0dc4e22.js} +2 -2
- abstra_statics/dist/assets/router.8882099a.js +2 -0
- abstra_statics/dist/assets/{router.1324a1a9.js → router.99a53337.js} +3 -3
- abstra_statics/dist/assets/string.4796d44a.js +2 -0
- abstra_statics/dist/assets/{tables.c26107a1.js → tables.13d62f0c.js} +2 -2
- abstra_statics/dist/assets/tasksController.3255c760.js +4 -0
- abstra_statics/dist/assets/{toggleHighContrast.fc60753d.js → toggleHighContrast.cb5e834a.js} +49 -49
- abstra_statics/dist/assets/{tsMode.a4b9b524.js → tsMode.95528ab9.js} +2 -2
- abstra_statics/dist/assets/{typescript.ab90fd1d.js → typescript.b90bd43d.js} +3 -3
- abstra_statics/dist/assets/url.84e62ca8.js +2 -0
- abstra_statics/dist/assets/useCodebaseEvents.c47ad36d.js +2 -0
- abstra_statics/dist/assets/userStore.843da693.js +2 -0
- abstra_statics/dist/assets/uuid.58d26ff2.js +2 -0
- abstra_statics/dist/assets/{vue-flow-background.8e4c22c3.js → vue-flow-background.6b5566a8.js} +2 -2
- abstra_statics/dist/assets/{vue-quill.esm-bundler.64c5837f.js → vue-quill.esm-bundler.3c4b0230.js} +2 -2
- abstra_statics/dist/assets/{workspaceStore.4f0c433f.js → workspaceStore.6a20c00d.js} +2 -2
- abstra_statics/dist/assets/{xml.3541c340.js → xml.070d3630.js} +3 -3
- abstra_statics/dist/assets/{yaml.314312d8.js → yaml.2a862691.js} +3 -3
- abstra_statics/dist/console.html +15 -15
- abstra_statics/dist/editor.html +13 -11
- abstra_statics/dist/player.html +9 -9
- abstra_statics/dist/assets/AbstraButton.vue_vue_type_script_setup_true_lang.205eb76e.js +0 -2
- abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.32a17b0c.js +0 -2
- abstra_statics/dist/assets/ApiKeys.7fefafb4.js +0 -2
- abstra_statics/dist/assets/App.c29df54f.js +0 -2
- abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.efd9d3fa.js +0 -2
- abstra_statics/dist/assets/BaseLayout.b60c33b8.js +0 -2
- abstra_statics/dist/assets/CloseCircleOutlined.4e05b917.js +0 -2
- abstra_statics/dist/assets/ConnectorsView.562a5007.js +0 -2
- abstra_statics/dist/assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.1d09cfdd.js +0 -2
- abstra_statics/dist/assets/ContentLayout.7d5c9f09.js +0 -2
- abstra_statics/dist/assets/EnvVars.063644bb.js +0 -2
- abstra_statics/dist/assets/ExclamationCircleOutlined.d410fb9a.js +0 -2
- abstra_statics/dist/assets/Form.bfea5673.js +0 -2
- abstra_statics/dist/assets/Home.3bf2f131.js +0 -2
- abstra_statics/dist/assets/Home.42964d5b.js +0 -2
- abstra_statics/dist/assets/LoadingContainer.6e72d482.js +0 -2
- abstra_statics/dist/assets/LoadingOutlined.ee72932a.js +0 -2
- abstra_statics/dist/assets/Login.0b618d09.js +0 -2
- abstra_statics/dist/assets/Logo.83b476a4.js +0 -2
- abstra_statics/dist/assets/Main.88719eb3.js +0 -2
- abstra_statics/dist/assets/Navbar.abf206e9.js +0 -2
- abstra_statics/dist/assets/NewEditor.5650f697.js +0 -8
- abstra_statics/dist/assets/OidcLoginCallback.df2bdeb0.js +0 -2
- abstra_statics/dist/assets/OidcLogoutCallback.2ba5316d.js +0 -2
- abstra_statics/dist/assets/PhDownloadSimple.vue.cbca4f9b.js +0 -2
- abstra_statics/dist/assets/ProjectLogin.46d5036b.js +0 -2
- abstra_statics/dist/assets/Sql.6961306b.js +0 -5
- abstra_statics/dist/assets/Steps.f820fb18.js +0 -2
- abstra_statics/dist/assets/Tables.198b84c5.js +0 -2
- abstra_statics/dist/assets/TablesTabs.vue_vue_type_script_setup_true_lang.e6074880.js +0 -2
- abstra_statics/dist/assets/Tasks.df69d20e.js +0 -2
- abstra_statics/dist/assets/View.vue_vue_type_script_setup_true_lang.424410a2.js +0 -2
- abstra_statics/dist/assets/WidgetPreview.0f938200.js +0 -2
- abstra_statics/dist/assets/ant-design.544de4a0.js +0 -2
- abstra_statics/dist/assets/asyncComputed.1b787534.js +0 -2
- abstra_statics/dist/assets/colorHelpers.d4f3f275.js +0 -2
- abstra_statics/dist/assets/constants.36bf7d70.js +0 -2
- abstra_statics/dist/assets/datetime.adc0acc4.js +0 -2
- abstra_statics/dist/assets/editor.0ce52658.js +0 -2
- abstra_statics/dist/assets/editor.main.353e9a8f.js +0 -2
- abstra_statics/dist/assets/fetch.83d89bdc.js +0 -2
- abstra_statics/dist/assets/index.3d2a7b6d.js +0 -2
- abstra_statics/dist/assets/linters.3c5f0c83.js +0 -2
- abstra_statics/dist/assets/member.6b2b3438.js +0 -2
- abstra_statics/dist/assets/player.5b7eaa25.js +0 -2
- abstra_statics/dist/assets/polling.88a266b3.js +0 -2
- abstra_statics/dist/assets/redirect.2fa4f8cf.js +0 -2
- abstra_statics/dist/assets/repository.9d5310b6.js +0 -2
- abstra_statics/dist/assets/router.55c0ff56.js +0 -2
- abstra_statics/dist/assets/string.f6a7565f.js +0 -2
- abstra_statics/dist/assets/tasksController.22584849.js +0 -4
- abstra_statics/dist/assets/url.f490879d.js +0 -2
- abstra_statics/dist/assets/userStore.9e7a540a.js +0 -2
- abstra_statics/dist/assets/uuid.9161765c.js +0 -2
- {abstra-3.23.8.dist-info → abstra-3.23.9.dist-info}/WHEEL +0 -0
- {abstra-3.23.8.dist-info → abstra-3.23.9.dist-info}/entry_points.txt +0 -0
- {abstra-3.23.8.dist-info → abstra-3.23.9.dist-info}/top_level.txt +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{O as s}from"./workspaceStore.4f0c433f.js";import{d as i,k as l,a5 as f,f as a,b as n,u as o,o as u,g as d,A as c,da as b}from"./jwt-decode.esm.992666e9.js";import"./userStore.9e7a540a.js";import"./url.f490879d.js";import"./colorHelpers.d4f3f275.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="bf1bfb61-a85e-4f66-824d-3b3f7becedda",e._sentryDebugIdIdentifier="sentry-dbid-bf1bfb61-a85e-4f66-824d-3b3f7becedda")}catch{}})();const g=i({__name:"OidcLoginCallback",setup(e){return l(async()=>{await new s().loginCallback()}),(t,r)=>(u(),f("div",null,[a(o(c),null,{default:n(()=>[d("You're authenticated")]),_:1}),a(o(b),null,{default:n(()=>[d(" This window should close automatically. Please close it manually if it doesn't. ")]),_:1})]))}});export{g as default};
|
|
2
|
-
//# sourceMappingURL=OidcLoginCallback.df2bdeb0.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{O as s}from"./workspaceStore.4f0c433f.js";import{d as l,k as c,a5 as i,f as o,b as a,u as d,o as f,g as n,A as u,da as p}from"./jwt-decode.esm.992666e9.js";import"./userStore.9e7a540a.js";import"./url.f490879d.js";import"./colorHelpers.d4f3f275.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f2e2f734-b4d4-4558-9c4f-37fcddfc6d7c",e._sentryDebugIdIdentifier="sentry-dbid-f2e2f734-b4d4-4558-9c4f-37fcddfc6d7c")}catch{}})();const g=l({__name:"OidcLogoutCallback",setup(e){return c(async()=>{await new s().logoutCallback()}),(t,r)=>(f(),i("div",null,[o(d(u),null,{default:a(()=>[n("You're authenticated")]),_:1}),o(d(p),null,{default:a(()=>[n(" This window should close automatically. Please close it manually if it doesn't. ")]),_:1})]))}});export{g as default};
|
|
2
|
-
//# sourceMappingURL=OidcLogoutCallback.2ba5316d.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{d as V,am as n,c as i,o as l,a5 as t,a7 as f,h,e6 as y,e as o}from"./jwt-decode.esm.992666e9.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="bd58ac6c-4613-4c5b-8edd-6f67ad14b3fb",r._sentryDebugIdIdentifier="sentry-dbid-bd58ac6c-4613-4c5b-8edd-6f67ad14b3fb")}catch{}})();const b=["width","height","fill","transform"],w={key:0},H=o("path",{d:"M228,144v64a12,12,0,0,1-12,12H40a12,12,0,0,1-12-12V144a12,12,0,0,1,24,0v52H204V144a12,12,0,0,1,24,0Zm-108.49,8.49a12,12,0,0,0,17,0l40-40a12,12,0,0,0-17-17L140,115V32a12,12,0,0,0-24,0v83L96.49,95.51a12,12,0,0,0-17,17Z"},null,-1),Z=[H],L={key:1},k=o("path",{d:"M216,48V208H40V48A16,16,0,0,1,56,32H200A16,16,0,0,1,216,48Z",opacity:"0.2"},null,-1),M=o("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z"},null,-1),B=[k,M],D={key:2},S=o("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40A8,8,0,0,0,168,96H136V32a8,8,0,0,0-16,0V96H88a8,8,0,0,0-5.66,13.66Z"},null,-1),I=[S],_={key:3},x=o("path",{d:"M222,144v64a6,6,0,0,1-6,6H40a6,6,0,0,1-6-6V144a6,6,0,0,1,12,0v58H210V144a6,6,0,0,1,12,0Zm-98.24,4.24a6,6,0,0,0,8.48,0l40-40a6,6,0,0,0-8.48-8.48L134,129.51V32a6,6,0,0,0-12,0v97.51L92.24,99.76a6,6,0,0,0-8.48,8.48Z"},null,-1),z=[x],A={key:4},C=o("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z"},null,-1),N=[C],E={key:5},P=o("path",{d:"M220,144v64a4,4,0,0,1-4,4H40a4,4,0,0,1-4-4V144a4,4,0,0,1,8,0v60H212V144a4,4,0,0,1,8,0Zm-94.83,2.83a4,4,0,0,0,5.66,0l40-40a4,4,0,1,0-5.66-5.66L132,134.34V32a4,4,0,0,0-8,0V134.34L90.83,101.17a4,4,0,0,0-5.66,5.66Z"},null,-1),$=[P],j={name:"PhDownloadSimple"},W=V({...j,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(r){const e=r,s=n("weight","regular"),v=n("size","1em"),c=n("color","currentColor"),g=n("mirrored",!1),d=i(()=>{var a;return(a=e.weight)!=null?a:s}),u=i(()=>{var a;return(a=e.size)!=null?a:v}),p=i(()=>{var a;return(a=e.color)!=null?a:c}),m=i(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:g?"scale(-1, 1)":void 0);return(a,q)=>(l(),t("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:p.value,transform:m.value},a.$attrs),[f(a.$slots,"default"),d.value==="bold"?(l(),t("g",w,Z)):d.value==="duotone"?(l(),t("g",L,B)):d.value==="fill"?(l(),t("g",D,I)):d.value==="light"?(l(),t("g",_,z)):d.value==="regular"?(l(),t("g",A,N)):d.value==="thin"?(l(),t("g",E,$)):h("",!0)],16,b))}});export{W as G};
|
|
2
|
-
//# sourceMappingURL=PhDownloadSimple.vue.cbca4f9b.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{_ as f}from"./AbstraLogo.vue_vue_type_script_setup_true_lang.32a17b0c.js";import{B as m}from"./BaseLayout.b60c33b8.js";import{d as l,ae as y,c1 as b,_ as u,aZ as v,a_ as g,o as _,a5 as h,e as r,a6 as n,eb as w,e5 as S,k,a as L,b as s,f as i,u as x}from"./jwt-decode.esm.992666e9.js";import{u as B}from"./editor.0ce52658.js";import{A as I}from"./index.5e22e010.js";import"./Logo.83b476a4.js";import"./router.55c0ff56.js";import"./workspaceStore.4f0c433f.js";import"./userStore.9e7a540a.js";import"./url.f490879d.js";import"./colorHelpers.d4f3f275.js";import"./linters.3c5f0c83.js";import"./asyncComputed.1b787534.js";import"./constants.36bf7d70.js";import"./index.d181a22c.js";import"./Breadcrumb.d0cc2c91.js";import"./index.9e0166fe.js";import"./index.3d2a7b6d.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="c33206b5-00a6-4f68-9b04-75c33ed5b0a4",e._sentryDebugIdIdentifier="sentry-dbid-c33206b5-00a6-4f68-9b04-75c33ed5b0a4")}catch{}})();const $=l({props:{loading:{type:Boolean,default:!0},color:{type:String,default:"#ea576a"},size:{type:String,default:"10px"},radius:{type:String,default:"100%"}},setup(e){const o=y({spinnerStyle:{width:e.size,height:e.size,borderRadius:e.radius,backgroundColor:e.color}});return{...b(o)}}});const P={class:"v-spinner"};function D(e,o,a,d,c,p){return v((_(),h("div",P,[r("div",{class:"v-beat v-beat-odd",style:n(e.spinnerStyle)},null,4),r("div",{class:"v-beat v-beat-even",style:n(e.spinnerStyle)},null,4),r("div",{class:"v-beat v-beat-odd",style:n(e.spinnerStyle)},null,4)],512)),[[g,e.loading]])}const R=u($,[["render",D],["__scopeId","data-v-06538001"]]),j={class:"content"},z=l({__name:"ProjectLogin",setup(e){const o=w(),a=S(),d=B();function c(){const t=new URL(location.href);t.searchParams.delete("api-key"),a.replace(t.pathname+t.search)}function p(){const t=o.query["api-key"];if(typeof t=="string")return t}return k(async()=>{const t=p();if(!t){a.push({name:"error"});return}await d.createLogin(t).then(c),a.push({name:"editor"})}),(t,A)=>(_(),L(m,null,{navbar:s(()=>[i(x(I),{style:{padding:"5px 25px",border:"1px solid #f0f0f0"}},{title:s(()=>[i(f)]),_:1})]),content:s(()=>[r("div",j,[i(R)])]),_:1}))}});const Y=u(z,[["__scopeId","data-v-d2a19803"]]);export{Y as default};
|
|
2
|
-
//# sourceMappingURL=ProjectLogin.46d5036b.js.map
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{f as c,e7 as L,d as D,eb as N,O as $,L as _,r as f,em as B,k as P,a5 as V,b as m,u as i,aR as z,o as A,e as F,bR as S,g as O,de as h,cX as M,cL as C,_ as T}from"./jwt-decode.esm.992666e9.js";import{G}from"./PhDownloadSimple.vue.cbca4f9b.js";import{e as H}from"./toggleHighContrast.fc60753d.js";import"./router.1324a1a9.js";import{a as J}from"./project.76f0af14.js";import"./tables.c26107a1.js";import{_ as U}from"./TablesTabs.vue_vue_type_script_setup_true_lang.e6074880.js";import"./index.d181a22c.js";import"./record.87ef3b68.js";import"./string.f6a7565f.js";import"./Card.957a87b2.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="3a4280b6-0c9b-4346-a3df-2edb18998e70",e._sentryDebugIdIdentifier="sentry-dbid-3a4280b6-0c9b-4346-a3df-2edb18998e70")}catch{}})();var X={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"};const W=X;function I(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?Object(arguments[n]):{},r=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable}))),r.forEach(function(u){Y(e,u,t[u])})}return e}function Y(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var x=function(n,t){var r=I({},n,t.attrs);return c(L,I({},r,{icon:W}),null)};x.displayName="CaretRightOutlined";x.inheritAttrs=!1;const Z=x,Q=e=>{if(e==null)return"";const n=String(e);return n.includes(";")||n.includes(`
|
|
2
|
-
`)||n.includes('"')?`"${n.replace(/"/g,'""')}"`:n},K=e=>{let n=e.columns.map(Q).join(";")+`
|
|
3
|
-
`;e.rows.forEach(r=>{n+=r.map(Q).join(";")+`
|
|
4
|
-
`});const t=document.createElement("a");t.href="data:text/csv;charset=utf-8,"+encodeURIComponent(n),t.target="_blank",t.download=`${e.fileName}.csv`,t.click()};function ee(e){const n={};for(const t in e)if(e.hasOwnProperty(t)){if(typeof e[t]=="object"&&e[t]!==null){n[t]=JSON.stringify(e[t]);continue}n[t]=String(e[t])}return n}const te=D({__name:"Sql",setup(e){const t=N().params.projectId,r=new $(_.array(_.object({projectId:_.string(),lastQuery:_.string()})),"lastQueries"),u=f(null),d=f(""),v=f([]),y=f([]),j=f([]),b=f(!1),w=()=>{const a=r.get();if(!a)r.set([{projectId:t,lastQuery:d.value}]);else{const o=a.findIndex(l=>l.projectId===t);o===-1?a.push({projectId:t,lastQuery:d.value}):a[o].lastQuery=d.value,r.set(a)}},k=async()=>{b.value=!0;const a=await J.executeQuery(t,d.value,[]);if(w(),b.value=!1,!a)return;const{returns:o,errors:l}=a;j.value=l;for(const s of l)C.error({message:"SQL Execution Failed",description:s});l.length||C.success({message:"SQL Execution Succeeded"}),y.value=o.fields.map(s=>({title:s.name,key:s.name,dataIndex:s.name})),v.value=o.result.map((s,p)=>ee({key:`${p+1}`,...s}))},R=()=>{const a=y.value.map(g=>g.dataIndex),o=y.value.map(g=>g.title),l=v.value.map(g=>a.map(E=>g[E])),p=`data-${new Date().toISOString()}`;K({fileName:p,columns:o,rows:l})},q=B.exports.debounce(w,1e3);return P(()=>{var l;const a=H.create(u.value,{language:"sql",value:d.value,fontFamily:"monospace",lineNumbers:"on",minimap:{enabled:!1},scrollbar:{vertical:"hidden",horizontal:"visible"},fontSize:14,scrollBeyondLastLine:!1,lineHeight:20});a.onDidChangeModelContent(()=>{d.value=a.getValue(),q()});const o=r.get();if(o){const s=(l=o.find(p=>p.projectId===t))==null?void 0:l.lastQuery;s&&(d.value=s,a.setValue(s))}}),(a,o)=>(A(),V(z,null,[c(U),c(i(h),{gap:"large",class:"sql-container",align:"center"},{default:m(()=>[F("div",{ref_key:"sqlEditor",ref:u,class:"sql-editor"},null,512),c(i(S),{type:"primary",loading:b.value,onClick:k},{icon:m(()=>[c(i(Z))]),default:m(()=>[O(" Run ")]),_:1},8,["loading"])]),_:1}),c(i(h),{justify:"end",style:{margin:"30px 0 10px 0"}},{default:m(()=>[c(i(S),{disabled:!v.value.length,onClick:R},{default:m(()=>[c(i(h),{align:"center",gap:"small"},{default:m(()=>[O(" Export to CSV "),c(i(G))]),_:1})]),_:1},8,["disabled"])]),_:1}),c(i(M),{style:{width:"100%"},scroll:{x:100},"data-source":v.value,columns:y.value},null,8,["data-source","columns"])],64))}});const me=T(te,[["__scopeId","data-v-3629dc62"]]);export{me as default};
|
|
5
|
-
//# sourceMappingURL=Sql.6961306b.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{A as o}from"./index.a7b8e25e.js";import{d as a,c as r,a5 as p,f as d,u as f,ea as c,h as l,o as i,_ as u}from"./jwt-decode.esm.992666e9.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="57a4d26c-a2f6-477e-8473-e413102e018e",e._sentryDebugIdIdentifier="sentry-dbid-57a4d26c-a2f6-477e-8473-e413102e018e")}catch{}})();const _=a({__name:"Steps",props:{stepsInfo:{},isPreview:{type:Boolean}},setup(e){const s=e,n=r(()=>s.stepsInfo?Array(s.stepsInfo.total).fill(null).map(()=>({label:"",description:""})):[]);return(t,m)=>t.stepsInfo?(i(),p("nav",{key:0,class:c(["p-steps",{"full-screen":!t.isPreview}])},[d(f(o),{current:t.stepsInfo.current-1,items:n.value,responsive:!1},null,8,["current","items"])],2)):l("",!0)}});const v=u(_,[["__scopeId","data-v-58fdd395"]]);export{v as S};
|
|
2
|
-
//# sourceMappingURL=Steps.f820fb18.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{C as _}from"./CrudView.8fb84eac.js";import{o as l}from"./omniChatStore.2b85c342.js";import{a as k}from"./ant-design.544de4a0.js";import{a as C}from"./asyncComputed.1b787534.js";import{a as m}from"./string.f6a7565f.js";import{G as T}from"./PhPencil.vue.ae2943da.js";import{d as h,e5 as w,eb as I,c as x,k as E,aq as D,a5 as N,f as d,u as S,aR as v,o as A,eq as B}from"./jwt-decode.esm.992666e9.js";import"./router.1324a1a9.js";import{T as c}from"./tables.c26107a1.js";import{_ as R}from"./TablesTabs.vue_vue_type_script_setup_true_lang.e6074880.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.0555d923.js";import"./constants.36bf7d70.js";import"./url.f490879d.js";import"./PhDotsThreeVertical.vue.2db678ef.js";import"./index.3d2a7b6d.js";import"./record.87ef3b68.js";import"./uuid.9161765c.js";import"./PhCopySimple.vue.ecffb042.js";import"./index.d181a22c.js";import"./Card.957a87b2.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[o]="d68dbaa0-6551-4b4e-8ec1-7bf8f0d5d4c3",a._sentryDebugIdIdentifier="sentry-dbid-d68dbaa0-6551-4b4e-8ec1-7bf8f0d5d4c3")}catch{}})();const ae=h({__name:"Tables",setup(a){const o=w(),t=I().params.projectId,{loading:b,result:p,refetch:s}=C(()=>c.list(t)),f=async e=>{const r=await c.create(t,e.name);o.push({name:"tableEditor",params:{tableId:r.id,projectId:t}})},y=x(()=>{var e,r;return{columns:[{title:"Table Name"},{title:"",align:"right"}],rows:(r=(e=p.value)==null?void 0:e.map(n=>({key:n.id,cells:[{type:"link",text:n.name,to:{name:"tableEditor",params:{tableId:n.id,projectId:t}}},{type:"actions",actions:[{icon:T,label:"Edit Table",onClick({key:i}){o.push({name:"tableEditor",params:{tableId:i,projectId:t}})}},{icon:B,label:"Delete",dangerous:!0,async onClick(){!await k("Are you sure you want to delete this table and all its data?")||(await n.delete(t,n.id),s())}}]}]})))!=null?r:[]}}),g=[{key:"name",label:"Table name",type:"text",format:e=>m(e,!0),blur:e=>m(e,!1)}];return E(()=>{const e=l.subscribe("tableCreated",()=>{s()});D(()=>{l.unsubscribe(e)})}),(e,r)=>(A(),N(v,null,[d(R),d(_,{"entity-name":"table",loading:S(b),"docs-path":"tools/tables",title:"Tables",description:"Create and manage your database tables here.","empty-title":"No tables here yet",table:y.value,fields:g,"create-button-text":"Create Table",create:f},null,8,["loading","table"])],64))}});export{ae as default};
|
|
2
|
-
//# sourceMappingURL=Tables.198b84c5.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{d as b,e5 as f,eb as m,o as c,a as p,b as l,a5 as _,ec as g,f as y,e as v,ed as k,u as n,aR as w}from"./jwt-decode.esm.992666e9.js";import{A as I,T}from"./Card.957a87b2.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="a69f690c-26e8-425b-9efb-8cfc012ec976",e._sentryDebugIdIdentifier="sentry-dbid-a69f690c-26e8-425b-9efb-8cfc012ec976")}catch{}})();const R=b({__name:"TablesTabs",setup(e){const a=f(),t=m(),u=String(t.name),d=t.params.projectId,r=[{label:"Tables list",value:"tables"},{label:"Diagram view",value:"tables-diagram"},{label:"Run SQL",value:"sql"}],i=o=>{a.push({name:String(o),params:{projectId:d}})};return(o,D)=>(c(),p(n(T),{"active-key":n(u),options:r,"onUpdate:activeKey":i},{default:l(()=>[(c(),_(w,null,g(r,s=>y(n(I),{key:s.value,name:s.value},{tab:l(()=>[v("span",null,k(s.label),1)]),_:2},1032,["name"])),64))]),_:1},8,["active-key"]))}});export{R as _};
|
|
2
|
-
//# sourceMappingURL=TablesTabs.vue_vue_type_script_setup_true_lang.e6074880.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{f as l,e7 as M,d as L,c as N,k as U,j as V,a5 as T,b as a,u as e,aR as I,o as u,cz as k,aB as z,cy as J,a as f,d1 as H,g as b,da as C,ef as X,d8 as q,ed as x,de as P,d4 as G,h as O,ej as Q,S as W,cX as Y,cH as Z,eb as K,A as ee}from"./jwt-decode.esm.992666e9.js";import{_ as te}from"./AbstraButton.vue_vue_type_script_setup_true_lang.205eb76e.js";import{I as ae}from"./PhCopy.vue.a63b48dd.js";import{T as le,R as ne}from"./tasksController.22584849.js";import{s as se}from"./metadata.cfad5458.js";import{t as re}from"./ant-design.544de4a0.js";import{c as oe}from"./string.f6a7565f.js";import{R as ie}from"./dayjs.a6bd0ee0.js";import{f as R,a as v}from"./router.1324a1a9.js";import{a as de,B as ue}from"./build.997fec15.js";import{a as ce}from"./project.76f0af14.js";import"./tables.c26107a1.js";import{a as pe}from"./asyncComputed.1b787534.js";import"./linters.3c5f0c83.js";import"./record.87ef3b68.js";import"./polling.88a266b3.js";import"./PhUserList.vue.3791cb59.js";import"./PhWebhooksLogo.vue.fe81fb65.js";import"./index.d181a22c.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[o]="4ca883af-9b0b-4b22-ace8-052a7eb055f3",r._sentryDebugIdIdentifier="sentry-dbid-4ca883af-9b0b-4b22-ace8-052a7eb055f3")}catch{}})();var fe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z"}}]},name:"sync",theme:"outlined"};const ge=fe;function B(r){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},g=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(g=g.concat(Object.getOwnPropertySymbols(n).filter(function(p){return Object.getOwnPropertyDescriptor(n,p).enumerable}))),g.forEach(function(p){me(r,p,n[p])})}return r}function me(r,o,n){return o in r?Object.defineProperty(r,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[o]=n,r}var D=function(o,n){var g=B({},o,n.attrs);return l(M,B({},g,{icon:ge}),null)};D.displayName="SyncOutlined";D.inheritAttrs=!1;const ye=D,be={key:4,style:{"min-width":"100px"}},Se=L({__name:"TasksView",props:{api:{},stages:{},editor:{type:Boolean}},setup(r,{expose:o}){const n=r,{setup:g,tearDown:p,state:s,getColumns:m,fetchTasks:S,clearAllTasks:w}=le({api:n.api,poll:!0,stages:n.stages}),A=t=>t.dataIndex===void 0&&"children"in t&&Array.isArray(t.children)&&t.children.length===0,h=N(()=>n.stages?s.tasks.map(t=>{var d,y,c;const i=(d=n.stages)==null?void 0:d.find(_=>_.id===t.targetStageId);return i?{...t,targetStageTitle:i.stageTitle,targetStageType:i.stageType,completedAt:(c=t.completed)!=null&&c.at?new Date(t.completed.at).toLocaleString():"Not completed",createdAt:new Date(t.created.at).toLocaleString(),deleted:!1}:{...t,targetStageTitle:null,targetStageType:null,completedAt:(y=t.completed)!=null&&y.at?new Date(t.completed.at).toLocaleString():"Not completed",createdAt:new Date(t.created.at).toLocaleString(),deleted:!0}}):s.tasks.map(t=>{var i;return{...t,deleted:!1,completedAt:(i=t.completed)!=null&&i.at?new Date(t.completed.at).toLocaleString():"Not completed",createdAt:new Date(t.created.at).toLocaleString()}})),$=(t,i,d)=>{var _,j;const y=(_=t.current)!=null?_:1,c=(j=t.pageSize)!=null?j:10;s.pagination.currentIndex=y-1,s.pagination.pageSize=c,S()},F=(t,i)=>`/_editor/${t}/${i}`,E=t=>{typeof t=="object"?navigator.clipboard.writeText(JSON.stringify(t)):navigator.clipboard.writeText(String(t)),Z.success({content:"Copied to clipboard"})};return o({clearAllTasks:w}),U(()=>g()),V(()=>p()),(t,i)=>(u(),T(I,null,[l(e(J),{layout:"vertical"},{default:a(()=>[l(e(R),{gutter:10},{default:a(()=>[l(e(v),{span:10},{default:a(()=>[l(e(k),{label:"Stage"},{default:a(()=>[l(e(z),{value:e(s).filters.stage,"onUpdate:value":i[0]||(i[0]=d=>e(s).filters.stage=d),options:e(s).filterOptions.stages,placeholder:"All","allow-clear":""},null,8,["value","options"])]),_:1})]),_:1}),l(e(v),{span:6},{default:a(()=>[l(e(k),{label:"Status"},{default:a(()=>[l(e(z),{value:e(s).filters.status,"onUpdate:value":i[1]||(i[1]=d=>e(s).filters.status=d),options:e(s).filterOptions.statuses,"option-label":"label","option-value":"value",filter:!1,placeholder:"All","allow-clear":""},null,8,["value","options"])]),_:1})]),_:1}),l(e(v),{span:8},{default:a(()=>[l(e(k),{label:"Created at date"},{default:a(()=>[l(e(ie),{value:e(s).filters.dateRange,"onUpdate:value":i[2]||(i[2]=d=>e(s).filters.dateRange=d),style:{width:"100%"}},null,8,["value"])]),_:1})]),_:1})]),_:1})]),_:1}),l(e(Y),{columns:e(m)(),"data-source":h.value,scroll:{x:"max-content",y:1e3},bordered:"",size:"small",pagination:{current:e(s).pagination.currentIndex+1,pageSize:e(s).pagination.pageSize,total:e(s).pagination.totalCount},onChange:$},{bodyCell:a(({column:d,text:y,record:c})=>[d.key==="payload"?(u(),f(e(H),{key:0,"tree-data":e(re)(c.payload),selectable:!1},null,8,["tree-data"])):d.key==="targetStageTitle"?(u(),T(I,{key:1},[c.deleted?(u(),f(e(C),{key:0},{default:a(()=>[b("Not found")]),_:1})):(u(),f(e(P),{key:1,gap:"small",justify:"center"},{default:a(()=>[(u(),f(X(e(se)(c.targetStageType)),{size:"20"})),t.editor?(u(),f(e(q),{key:0,href:F(c.targetStageType,c.targetStageId)},{default:a(()=>[b(x(c.targetStageTitle),1)]),_:2},1032,["href"])):(u(),f(e(C),{key:1},{default:a(()=>[b(x(c.targetStageTitle),1)]),_:2},1024))]),_:2},1024))],64)):d.dataIndex==="status"?(u(),f(e(P),{key:2,gap:"small",justify:"center"},{default:a(()=>[l(e(G),null,{default:a(()=>[b(x(e(oe)(String(y)))+" ",1),y==="started"?(u(),f(e(ye),{key:0,spin:!0,style:{"margin-left":"4px"}})):O("",!0)]),_:2},1024)]),_:2},1024)):d.dataIndex==="actions"?(u(),f(te,{key:3,type:"text",size:"small",tooltip:"Copy Payload Data",onClick:Q(_=>E(c.payload),["stop"])},{default:a(()=>[l(e(ae))]),_:2},1032,["onClick"])):A(d)?(u(),T("div",be)):O("",!0)]),footer:a(()=>[l(e(R),{justify:"end",gutter:10},{default:a(()=>[l(e(v),null,{default:a(()=>[l(e(W),{size:"small"})]),_:1}),l(e(v),null,{default:a(()=>[l(e(C),null,{default:a(()=>[b(" auto updating ")]),_:1})]),_:1})]),_:1})]),_:1},8,["columns","data-source","pagination"])],64))}}),$e=L({__name:"Tasks",setup(r){const n=K().params.projectId,g=new ne(n),{result:p}=pe(async()=>{const S=(await de.list(n)).find(h=>h.latest);if(!S)return null;const[w,A]=await Promise.all([ue.get(S.id),ce.get(n)]);return{buildSpec:w,project:A}}),s=N(()=>!p.value||!p.value.buildSpec?null:p.value.buildSpec.runtimes.map(m=>({id:m.id,stageTitle:m.title,stageType:m.type})));return(m,S)=>(u(),T(I,null,[l(e(ee),null,{default:a(()=>[b("Tasks")]),_:1}),s.value?(u(),f(Se,{key:0,class:"tasks",api:e(g),stages:s.value},null,8,["api","stages"])):O("",!0)],64))}});export{$e as default};
|
|
2
|
-
//# sourceMappingURL=Tasks.df69d20e.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var _=Object.defineProperty;var D=(i,e,t)=>e in i?_(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var s=(i,e,t)=>(D(i,typeof e!="symbol"?e+"":e,t),t);import{h as C}from"./router.1324a1a9.js";import{l as I}from"./fetch.83d89bdc.js";import{E as U}from"./record.87ef3b68.js";import{N as R,r as S,eq as F,d as P,k as $,aq as O,a5 as B,u as a,a as h,eg as L,b as r,h as p,aR as M,o as u,g as y,ed as b,f as m,cy as N,da as G,cE as z,cz as q,M as W}from"./jwt-decode.esm.992666e9.js";import{S as A}from"./SaveButton.ac38b361.js";import{C as Z}from"./CrudView.8fb84eac.js";import{a as H}from"./asyncComputed.1b787534.js";import{u as J}from"./polling.88a266b3.js";import{o as g}from"./omniChatStore.2b85c342.js";import{G as K}from"./PhPencil.vue.ae2943da.js";import{A as Q}from"./index.3ff1c0be.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[e]="038c4ef5-dbf9-48f7-80d1-2e14681521c4",i._sentryDebugIdIdentifier="sentry-dbid-038c4ef5-dbf9-48f7-80d1-2e14681521c4")}catch{}})();class f{constructor(e){s(this,"data");s(this,"deleted");s(this,"wasDeleted",e=>this.deleted.value.includes(e));s(this,"wasUpdated",e=>this.data.hasChangesDeep(e));s(this,"set",(e,t)=>{this.data.set(e,t),this.deleted.value=this.deleted.value.filter(n=>n!==e)});s(this,"get",e=>{if(!this.deleted.value.includes(e))return this.data.get(e)});s(this,"delete",e=>{this.deleted.value=[...this.deleted.value,e]});s(this,"values",()=>{const e={},t=Object.keys(this.data.changes).concat(Object.keys(this.data.initialState));for(const n of t)this.deleted.value.includes(n)||(e[n]=this.data.get(n));return e});s(this,"commit",()=>{this.data=U.from(this.values()),this.deleted.value=[]});this.data=U.from(e),this.deleted=R([])}static from(e){const t=e.reduce((n,{name:d,value:v})=>(n[d]=v,n),{});return new f(t)}get changes(){const e=this.deleted.value.map(t=>({name:t,change:"delete"}));for(const t of Object.keys(this.data.changes))if(!this.deleted.value.includes(t)){if(this.data.initialState[t]===void 0){e.push({name:t,value:this.data.get(t),change:"create"});continue}this.data.hasChangesDeep(t)&&e.push({name:t,value:this.data.get(t),change:"update"})}return e}}class X{constructor(){s(this,"urlPath","env-vars")}async list(e){return await C.get(`projects/${e}/${this.urlPath}`)}async update(e,t){await C.patch(`projects/${e}/${this.urlPath}`,t)}}const T=new X;class ce{constructor(e){this.projectId=e}async get(){const e=await T.list(this.projectId);return f.from(e.map(t=>({...t,value:""})))}async update(e){await T.update(this.projectId,e)}}class he{constructor(e=I){this.fetch=e}async get(){const e=await this.fetch("/_editor/api/env-vars");if(!e.ok)throw new Error("Failed to list env vars");const t=await e.json();return f.from(t)}async update(e){await this.fetch("/_editor/api/env-vars",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}}class w{constructor(e,t,n){s(this,"envVarRepo");s(this,"envVars");s(this,"state",S({type:"idle"}));s(this,"mode");s(this,"validate",e=>{const t=/^[A-Za-z_][A-Za-z0-9_]*$/,{key:n,value:d}=e;if(d.trim()!==d)throw new Error("Environment variable values cannot have leading or trailing whitespace.");if(!t.test(n))throw new Error(`Invalid key: \u2018${n}\u2019. A key must begin with a letter or an underscore, and may only include letters, numbers, and underscores.`)});s(this,"create",e=>{this.validate(e),this.envVars.set(e.key,e.value),this.state.value={type:"idle"}});s(this,"delete",e=>{this.envVars.delete(e),this.state.value={type:"idle"}});s(this,"startUpdating",e=>{this.state.value={type:"updating",name:e,value:this.envVars.get(e)||""}});s(this,"confirmUpdate",()=>{this.state.value.type==="updating"&&(this.envVars.set(this.state.value.name,this.state.value.value),this.state.value={type:"idle"})});s(this,"cancelUpdate",()=>{this.state.value={type:"idle"}});s(this,"pollingFunction",async()=>{if(!this.isLocalEditor)return;const e=await this.envVarRepo.get();Object.entries(e.values()).forEach(([t,n])=>{this.envVars.wasDeleted(t)||this.envVars.get(t)===void 0&&this.envVars.set(t,n)})});s(this,"columns",()=>[{title:"Key"},{title:"Value"},{title:""}]);s(this,"rows",()=>Object.entries(this.envVars.values()).map(([e])=>({key:e,cells:[{type:"text",text:e,contentType:this.wasUpdated(e)?"warning":"default"},{type:"text",text:"*********",contentType:this.wasUpdated(e)?"warning":"default"},{type:"actions",actions:[{icon:F,label:"Delete",onClick:()=>this.delete(e),dangerous:!0},{icon:K,label:"Update",onClick:()=>this.startUpdating(e)}]}]})));s(this,"save",async()=>{await this.envVarRepo.update(this.envVars.changes),this.envVars.commit()});s(this,"hasChanges",()=>this.envVars.changes.length>0);s(this,"table",()=>({columns:this.columns(),rows:this.rows()}));this.envVarRepo=e,this.envVars=t,this.mode=n}static async create(e,t){const n=await e.get();return new w(e,n,t)}get isLocalEditor(){return this.mode==="editor"}get saveMessage(){return this.isLocalEditor?"Save":"Save and Apply"}get creationFields(){return[{label:"Variable name",key:"key"},{label:"Variable value",key:"value",type:"multiline-text"}]}get isUpdating(){return this.state.value.type==="updating"}wasUpdated(e){return this.envVars.wasUpdated(e)}}const pe=P({__name:"View",props:{envVarRepository:{},mode:{},hideTitle:{type:Boolean}},setup(i){const e=i,{result:t,loading:n,refetch:d}=H(async()=>{const o=await w.create(e.envVarRepository,e.mode);return v(),o}),{startPolling:v,endPolling:j}=J({task:()=>{var o;return(o=t.value)==null?void 0:o.pollingFunction()},interval:2e3}),x={columns:[],rows:[]};return $(()=>{const o=g.subscribe("envVarCreated",()=>{d()}),l=g.subscribe("envVarEdited",()=>{d()});O(()=>{j(),g.unsubscribe(o),g.unsubscribe(l)})}),(o,l)=>{var V,k;return u(),B(M,null,[a(t)?(u(),h(Z,{key:0,"entity-name":"Env var",loading:a(n),title:e.hideTitle?"":"Environment Variables",description:e.hideTitle?"":"Set environment variables for your project.","empty-title":"No environment variables set",table:a(t).table()||x,"create-button-text":"Add Environment Variable",create:a(t).create,fields:a(t).creationFields||[],live:a(t).isLocalEditor},L({_:2},[(V=a(t))!=null&&V.isLocalEditor?{name:"secondary",fn:r(()=>[o.mode=="editor"?(u(),h(A,{key:0,model:a(t),disabled:!a(t).hasChanges()},{"with-changes":r(()=>[y(b(a(t).saveMessage),1)]),_:1},8,["model","disabled"])):p("",!0)]),key:"0"}:void 0,(k=a(t))!=null&&k.isLocalEditor?{name:"extra",fn:r(()=>[m(a(Q),{"show-icon":"",style:{"margin-top":"20px"}},{message:r(()=>[y(" This is simply a helper to manage your environment variables locally. The variables set here will not be deployed to Cloud with your project. ")]),_:1})]),key:"1"}:void 0,a(t)?{name:"more",fn:r(()=>[o.mode=="console"?(u(),h(A,{key:0,model:a(t),disabled:!a(t).hasChanges()},{"with-changes":r(()=>[y(b(a(t).saveMessage),1)]),_:1},8,["model","disabled"])):p("",!0)]),key:"2"}:void 0]),1032,["loading","title","description","table","create","fields","live"])):p("",!0),a(t)?(u(),h(a(W),{key:1,open:a(t).isUpdating,title:"Update value",onCancel:l[1]||(l[1]=c=>{var E;return(E=a(t))==null?void 0:E.cancelUpdate()}),onOk:l[2]||(l[2]=()=>{var c;return(c=a(t))==null?void 0:c.confirmUpdate()})},{default:r(()=>[a(t).state.value.type==="updating"?(u(),h(a(N),{key:0,layout:"vertical"},{default:r(()=>[m(a(q),null,{default:r(()=>[m(a(G),null,{default:r(()=>[y(b(a(t).state.value.name),1)]),_:1}),m(a(z),{value:a(t).state.value.value,"onUpdate:value":l[0]||(l[0]=c=>a(t).state.value.value=c)},null,8,["value"])]),_:1})]),_:1})):p("",!0)]),_:1},8,["open"])):p("",!0)],64)}}});export{ce as C,he as E,pe as _};
|
|
2
|
-
//# sourceMappingURL=View.vue_vue_type_script_setup_true_lang.424410a2.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{d as k,r as B,k as I,o as n,a as u,b as f,f as A,g as P,ed as S,ea as C,eF as D,u as y,bR as N,eW as V,_ as W,eb as q,h as g,e as b,a5 as c,ec as v,ef as x,aR as w,I as E,J as F}from"./jwt-decode.esm.992666e9.js";import{S as L}from"./Steps.f820fb18.js";import{W as $}from"./PlayerConfigProvider.2acd3a77.js";import"./index.a7b8e25e.js";import"./colorHelpers.d4f3f275.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[t]="ae83687a-6e53-46f3-832f-8de0b9e4fde8",o._sentryDebugIdIdentifier="sentry-dbid-ae83687a-6e53-46f3-832f-8de0b9e4fde8")}catch{}})();const K=k({__name:"ActionButton",props:{action:{},displayName:{},disabled:{type:Boolean},loading:{type:Boolean}},emits:["click"],setup(o,{emit:t}){const d=o,l=B(null);return I(()=>{l.value&&d.action.setElement(l.value)}),(r,i)=>(n(),u(y(V),null,{default:f(()=>[A(y(N),{ref_key:"element",ref:l,class:C(["next-button",r.disabled?"disabled":""]),loading:r.loading,disabled:r.disabled,onClick:i[0]||(i[0]=p=>t("click")),onKeydown:i[1]||(i[1]=D(p=>t("click"),["enter"]))},{default:f(()=>[P(S(r.displayName),1)]),_:1},8,["loading","disabled","class"])]),_:1}))}});const R=W(K,[["__scopeId","data-v-aea27bb7"]]),J={class:"form"},M={class:"form-wrapper"},O={key:0,class:"buttons"},z=k({__name:"WidgetPreview",setup(o){const t=q(),d=B([]);function l(e){return E[e]||F[e]||null}function r(e){try{const s=JSON.parse(e);if(s.component=l(s.type),!s.component)throw new Error(`Widget ${s.type} not found`);return s.component?s:null}catch{return null}}function i(){const e=t.query.widget;return Array.isArray(e)?e.map(r).filter(Boolean):[r(e)]}function p(){return t.query.steps==="true"}function _(){const e=t.query.button;return e?Array.isArray(e)?e:[e]:[]}const m=e=>({name:e,isDefault:!1,isFocused:!1,focusOnButton:()=>{},addKeydownListener:()=>{},setElement:()=>{}});return(e,s)=>(n(),u($,{"main-color":"#d14056",class:"preview",background:"#fbfbfb","font-family":"Inter",locale:"en"},{default:f(()=>[p()?(n(),u(L,{key:0,class:"steps","steps-info":{current:1,total:3},"is-preview":""})):g("",!0),b("div",J,[b("div",M,[(n(!0),c(w,null,v(i(),(a,h)=>(n(),c("div",{key:h,class:"widget"},[(n(),u(x(a.component),{"user-props":a.userProps,value:a.userProps.value,errors:d.value},null,8,["user-props","value","errors"]))]))),128))]),_().length?(n(),c("div",O,[(n(!0),c(w,null,v(_(),a=>(n(),u(R,{key:a,"display-name":m(a).name,action:m(a)},null,8,["display-name","action"]))),128))])):g("",!0)])]),_:1}))}});const U=W(z,[["__scopeId","data-v-d3d01da6"]]);export{U as default};
|
|
2
|
-
//# sourceMappingURL=WidgetPreview.0f938200.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{em as n,M as y}from"./jwt-decode.esm.992666e9.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="61ebdfce-2452-4e3a-af28-58de881adf04",e._sentryDebugIdIdentifier="sentry-dbid-61ebdfce-2452-4e3a-af28-58de881adf04")}catch{}})();function u(e){return n.exports.isArray(e)?e.length===0?"[ ]":"[ ... ]":n.exports.isObject(e)?Object.keys(e).length===0?"{ }":"{ ... }":n.exports.isString(e)?`'${e}'`:n.exports.isUndefined(e)||n.exports.isNull(e)?"None":e===!0?"True":e===!1?"False":`${e}`}function c(e){if(n.exports.isArray(e))return"array";if(n.exports.isObject(e))return"object";throw new Error("treeKey called with non-object and non-array")}function o(e,r=[],t){const f=t?`'${t}': ${u(e)}`:u(e);if(n.exports.isArray(e)){const i=c(e);return[{title:f,key:[...r,i].join("/"),children:e.flatMap((s,l)=>o(s,[...r,i,`${l}`]))}]}else if(n.exports.isObject(e)){const i=c(e);return[{title:f,key:[...r,i].join("/"),children:Object.entries(e).flatMap(([s,l])=>o(l,[...r,i,s],s))}]}else return[{title:f,key:r.join("/"),children:[]}]}function x(e,r){return new Promise(t=>{y.confirm({title:e,onOk:()=>t(!0),okText:r==null?void 0:r.okText,onCancel:()=>t(!1),cancelText:r==null?void 0:r.cancelText})})}export{x as a,o as t};
|
|
2
|
-
//# sourceMappingURL=ant-design.544de4a0.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{N as c,c as l}from"./jwt-decode.esm.992666e9.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="73b270a0-e67a-447c-83a8-9f460f2a31a2",r._sentryDebugIdIdentifier="sentry-dbid-73b270a0-e67a-447c-83a8-9f460f2a31a2")}catch{}})();const i=r=>{const e=c({loading:!0,result:null,error:null}),n=t=>(e.value={loading:!1,result:t,error:null},t),o=t=>{e.value={loading:!1,result:null,error:t}},a=async()=>(e.value={loading:!0,result:e.value.result,error:null},r().then(n).catch(o));a();const s=l(()=>e.value.loading),u=l(()=>e.value.result),d=l(()=>e.value.error);return{loading:s,result:u,error:d,refetch:a}};export{i as a};
|
|
2
|
-
//# sourceMappingURL=asyncComputed.1b787534.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import"./jwt-decode.esm.992666e9.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="cb73a42a-3bb3-4068-8445-7507b9c4df2e",t._sentryDebugIdIdentifier="sentry-dbid-cb73a42a-3bb3-4068-8445-7507b9c4df2e")}catch{}})();function p(t,e){const{r:n,g:r,b:o,usePound:s}=g(t);return w(u(n,-e),u(r,-e),u(o,-e),s)}function u(t,e){const n=t*(100+e*100)/100;return n>255?255:n<0?0:Math.round(n)}function E(t){return t.startsWith("#")||t.match(/^(rgb|hsl)/)}const v=(t,e)=>y(p(y(t),e)),P=t=>k(t)?v(t,.1):p(t,.1);function k(t){const{r:e,g:n,b:r}=g(t);return e*.299+n*.587+r*.114<186}function g(t){let e=!1;t[0]=="#"&&(t=t.slice(1),e=!0);const n=parseInt(t,16);return{r:n>>16&255,g:n>>8&255,b:n&255,usePound:e}}function y(t){const{r:e,g:n,b:r,usePound:o}=g(t);return w(255-e,255-n,255-r,o)}const w=(t,e,n,r=!0)=>(r?"#":"")+(n|e<<8|t<<16).toString(16).padStart(6,"0");function _(t){return new Promise((e,n)=>{const r=document.createElement("img");r.src=t,r.crossOrigin="Anonymous",r.style.display="none",document.body.appendChild(r);let o=0;r.onerror=s=>n(new Error(`Failed to load image: ${s}`)),r.onload=()=>{const{width:s,height:l}=r,a=document.createElement("canvas");a.width=s,a.height=l;const c=a.getContext("2d");if(!c)return e(!1);c.drawImage(r,0,0);const I=c.getImageData(0,0,a.width,a.height),{data:d}=I;let f,b,h,m;for(let i=0,x=d.length;i<x;i+=4)f=d[i],b=d[i+1],h=d[i+2],m=Math.floor((f+b+h)/3),o+=m;const D=Math.floor(o/(s*l));document.body.removeChild(r),e(D<=127)}})}export{k as a,_ as b,P as c,E as i,v as l};
|
|
2
|
-
//# sourceMappingURL=colorHelpers.d4f3f275.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import"./jwt-decode.esm.992666e9.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="0741c2be-7703-41d8-8dc5-9dc50f04e650",t._sentryDebugIdIdentifier="sentry-dbid-0741c2be-7703-41d8-8dc5-9dc50f04e650")}catch{}})();const s={HOMEPAGE:{}.VITE_HOMEPAGE_URL||"https://abstra.io",DOCS:{}.VITE_DOCS_URL||"https://abstra.io/docs",CLOUD:{}.VITE_CONSOLE_URL||"https://cloud.abstra.io",GITHUB:{}.VITE_GITHUB_URL||"https://github.com/abstra-app/abstra-lib"},n=t=>{if(!t)return s.DOCS;const e=t.startsWith("/")?t.slice(1):t;return`${s.DOCS}/${e}`};export{s as A,n as b};
|
|
2
|
-
//# sourceMappingURL=constants.36bf7d70.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import"./jwt-decode.esm.992666e9.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="2b6cad9a-b193-46f6-943b-048c7c1a6203",e._sentryDebugIdIdentifier="sentry-dbid-2b6cad9a-b193-46f6-943b-048c7c1a6203")}catch{}})();function n(e,t){return e.toLocaleString(void 0,{hour12:!1,timeZoneName:"short",day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",weekday:"long",...t})}export{n as g};
|
|
2
|
-
//# sourceMappingURL=datetime.adc0acc4.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var x=Object.defineProperty;var W=(o,e,t)=>e in o?x(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var i=(o,e,t)=>(W(o,typeof e!="symbol"?e+"":e,t),t);import{d as V,c as k,r as l,w as E,o as I,a as R,b,e as N,f as T,u as _,S as $,g as A,A as B,T as H,h as K,M as F,_ as J,i as S,j as z,k as Y,l as v,m as G,n as q,p as U,q as Q,s as X,t as Z,v as y,x as ee,y as te,z as oe,B as se,C as ne,P as ae,D as re,E as ie,F as ce,G as C,H as le,I as de,J as ue,K as pe}from"./jwt-decode.esm.992666e9.js";import{r as he,g as _e,a as me}from"./router.55c0ff56.js";import{u as fe,s as ge}from"./workspaceStore.4f0c433f.js";import{A as ve}from"./linters.3c5f0c83.js";import{A as ye}from"./constants.36bf7d70.js";import{d as P}from"./index.d181a22c.js";import"./userStore.9e7a540a.js";import"./url.f490879d.js";import"./colorHelpers.d4f3f275.js";import"./asyncComputed.1b787534.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="07de0cd0-227d-4764-87dd-95a00fd639fa",o._sentryDebugIdIdentifier="sentry-dbid-07de0cd0-227d-4764-87dd-95a00fd639fa")}catch{}})();const be={style:{"text-align":"center",padding:"20px"}},we=V({__name:"ConnectionModal",props:{open:{type:Boolean},port:{}},emits:["update:open"],setup(o,{emit:e}){const t=o,s=k({get:()=>t.open,set:a=>e("update:open",a)}),n=l(!1);return E(()=>t.open,a=>{if(a){n.value=!1;const r=setTimeout(()=>{n.value=!0},1e4);return()=>clearTimeout(r)}else n.value=!1}),(a,r)=>(I(),R(_(F),{open:s.value,"onUpdate:open":r[0]||(r[0]=d=>s.value=d),closable:!1,"mask-closable":!1,keyboard:!1,footer:null,width:400,centered:""},{default:b(()=>[N("div",be,[T(_($),{size:"large"}),T(_(B),{level:4},{default:b(()=>[A(" Connecting to server... ")]),_:1}),n.value?(I(),R(_(H),{key:0},{default:b(()=>[A(" Are you sure Abstra is running? ")]),_:1})):K("",!0)])]),_:1},8,["open"]))}});const Ee=J(we,[["__scopeId","data-v-36743132"]]),p=class{constructor(){i(this,"ws",null);i(this,"reconnectTimer");i(this,"keepaliveInterval");i(this,"messageHandlers",new Set);i(this,"KEEPALIVE_INTERVAL",3e4);i(this,"RECONNECT_DELAY",1e3);this.connect()}static getInstance(){return p.instance||(p.instance=new p),p.instance}get url(){return"/_editor/api/codebase/events"}handleMessage(e){try{const t=JSON.parse(e.data),s=ve.parse(t);this.messageHandlers.forEach(n=>{try{n(s)}catch(a){S(a)}})}catch(t){S(t)}}handleClose(){this.clearTimers(),this.scheduleReconnect()}handleError(){this.clearTimers(),this.scheduleReconnect()}clearTimers(){this.keepaliveInterval&&(clearInterval(this.keepaliveInterval),this.keepaliveInterval=void 0),this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=void 0)}scheduleReconnect(){this.reconnectTimer||(this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=void 0,this.connect()},this.RECONNECT_DELAY))}startKeepalive(){this.keepaliveInterval=setInterval(()=>{this.sendKeepalive()},this.KEEPALIVE_INTERVAL)}sendKeepalive(){if(!this.ws||this.ws.readyState!==WebSocket.OPEN){this.handleError();return}try{this.ws.send(JSON.stringify({type:"keepalive"}))}catch(e){console.error("CodebaseEventsService: Failed to send keepalive:",e),this.handleError()}}async connect(){var e;if(((e=this.ws)==null?void 0:e.readyState)!==WebSocket.OPEN)try{this.ws=new WebSocket(this.url),this.ws.onopen=()=>this.startKeepalive(),this.ws.onclose=()=>this.handleClose(),this.ws.onerror=()=>this.handleError(),this.ws.onmessage=t=>this.handleMessage(t)}catch(t){console.error("CodebaseEventsService: Failed to create WebSocket:",t),this.scheduleReconnect()}}subscribe(e){return this.messageHandlers.add(e),()=>this.messageHandlers.delete(e)}isConnected(){var e;return((e=this.ws)==null?void 0:e.readyState)===WebSocket.OPEN}};let w=p;i(w,"instance",null);function Te(){const o=l(!1),e=l(null),t=l(null),s=w.getInstance(),n=g=>{e.value=g},a=()=>{o.value=s.isConnected()};let r;const d=setInterval(a,1e3);return z(()=>{r(),clearInterval(d)}),Y(()=>{r=s.subscribe(n),a()}),{isConnected:v(o),lastEvent:v(e),error:v(t),service:v(s)}}const Le={style:{height:"100vh","box-sizing":"border-box",width:"100%"}},Ce=V({__name:"App",setup(o){const e=Te(),t=l(!1);E(e.isConnected,async n=>{t.value=!n},{immediate:!0});const s={token:{colorPrimary:"#d14056",colorLink:"#d14056",colorLinkHover:"#aa3446"}};return(n,a)=>{const r=G("RouterView");return I(),R(_(q),{theme:s,"page-header":{ghost:!1}},{default:b(()=>[N("div",Le,[T(r)]),T(Ee,{open:t.value,"onUpdate:open":a[0]||(a[0]=d=>t.value=d)},null,8,["open"])]),_:1})}}});class O{async getLogin(){return await(await fetch("/_editor/api/login")).json()}async createLogin(e){return(await fetch("/_editor/api/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:e})})).json()}async deleteLogin(){await fetch("/_editor/api/login",{method:"DELETE"})}async getCloudProject(){return(await fetch("/_editor/api/login/info")).json()}async getPublicUrl(){try{return(await(await fetch("/_editor/api/login/public-url")).json()).public_url}catch{return null}}static getLoginUrl(e){return ye.CLOUD+"/api-key?"+new URLSearchParams(e)}}const j="h97k86ks",f=class{static boot(e,t){f.booted||(P.Intercom({app_id:j}),P.boot({api_base:"https://api-iam.intercom.io",app_id:j,name:e,email:e,user_hash:t,hide_default_launcher:!0,custom_launcher_selector:".intercom-launcher"}),f.booted=!0)}static shutdown(){P.shutdown(),f.booted=!1}};let m=f;i(m,"booted",!1);const Pe={"console-url":"https://cloud.abstra.io"},ke=o=>{const e="VITE_"+U.toUpper(U.snakeCase(o)),t={VITE_SENTRY_RELEASE:"078cc30f42162e0b57cd92c259a90bf299f25aec",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}[e];return t||Pe[o]},h={consoleUrl:ke("console-url")},Ie=Q("cloud-project",()=>{const o=new O,e=l(null),t=l(null),s=k(()=>{var c,u;return(u=(c=e.value)==null?void 0:c.logged)!=null?u:!1}),n=l(null),a=k(()=>t.value?{project:`${h.consoleUrl}/projects/${t.value.id}`,users:`${h.consoleUrl}/projects/${t.value.id}/access-control?selected-panel=users`,roles:`${h.consoleUrl}/projects/${t.value.id}/access-control?selected-panel=roles`,builds:`${h.consoleUrl}/projects/${t.value.id}/builds`,login:`${h.consoleUrl}/api-key`}:null),r=async()=>{!s.value||(await o.deleteLogin(),window.open(location.origin+"/_editor","_self"))},d=async c=>{const u=await o.createLogin(c);e.value=u,u.logged&&await g()},g=async()=>t.value=await o.getCloudProject();(async()=>{n.value=await o.getPublicUrl()})();const D=async()=>e.value?e.value:(e.value=await o.getLogin(),e.value.logged);return E(()=>e.value,g),E(()=>e.value,async c=>{if(c&&"info"in c){const{email:u,intercomHash:M}=c.info;m.boot(u,M)}else m.shutdown()}),{loadLogin:D,createLogin:d,deleteLogin:r,publicUrl:n,loginInfo:e,cloudProject:t,isLogged:s,links:a}}),Re=he.map(o=>({...o,meta:{...o.meta,playerRoute:!0}})),L=X({history:Z("/"),routes:[{path:"/_editor/",name:"app",component:()=>y(()=>import("./Home.3bf2f131.js"),["assets/Home.3bf2f131.js","assets/jwt-decode.esm.992666e9.js","assets/jwt-decode.9f7a5511.css","assets/fetch.83d89bdc.js","assets/polling.88a266b3.js","assets/Home.afb8d9a6.css"]),children:[{path:"",name:"editor",component:()=>y(()=>import("./NewEditor.5650f697.js"),["assets/NewEditor.5650f697.js","assets/asyncComputed.1b787534.js","assets/jwt-decode.esm.992666e9.js","assets/jwt-decode.9f7a5511.css","assets/linters.3c5f0c83.js","assets/workspaceStore.4f0c433f.js","assets/userStore.9e7a540a.js","assets/url.f490879d.js","assets/colorHelpers.d4f3f275.js","assets/record.87ef3b68.js","assets/PhPencilSimpleLine.vue.f840cf0d.js","assets/Card.957a87b2.js","assets/router.1324a1a9.js","assets/index.d181a22c.js","assets/metadata.cfad5458.js","assets/PhUserList.vue.3791cb59.js","assets/PhWebhooksLogo.vue.fe81fb65.js","assets/LogsController.eb1b811d.js","assets/ant-design.544de4a0.js","assets/string.f6a7565f.js","assets/PhCopy.vue.a63b48dd.js","assets/index.3d2a7b6d.js","assets/build.997fec15.js","assets/tables.c26107a1.js","assets/repository.9d5310b6.js","assets/LoadingOutlined.ee72932a.js","assets/polling.88a266b3.js","assets/LogsController.fb0d96c2.css","assets/omniChatStore.2b85c342.js","assets/uuid.9161765c.js","assets/PhCopySimple.vue.ecffb042.js","assets/omniChatStore.ec95fb81.css","assets/datetime.adc0acc4.js","assets/OmniChat.de828c54.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang.32a17b0c.js","assets/Logo.83b476a4.js","assets/Logo.b7d81119.css","assets/PhClockCounterClockwise.vue.cd77fd26.js","assets/index.9e0166fe.js","assets/index.3ff1c0be.js","assets/OmniChat.8a35a659.css","assets/AbstraButton.vue_vue_type_script_setup_true_lang.205eb76e.js","assets/constants.36bf7d70.js","assets/PhBookBookmark.vue.f8f803d9.js","assets/PhChats.vue.dfda946c.js","assets/PhArrowSquareOut.vue.ecfa9cb2.js","assets/PhRocket.vue.3b5927aa.js","assets/PhSignOut.vue.d00d3657.js","assets/CloseCircleOutlined.4e05b917.js","assets/ScrollArea.vue_vue_type_script_setup_true_lang.a58564d3.js","assets/PhFolderPlus.vue.dfb9b117.js","assets/tasksController.22584849.js","assets/vue-flow-background.8e4c22c3.js","assets/SaveButton.ac38b361.js","assets/ExclamationCircleOutlined.d410fb9a.js","assets/SaveButton.932ac6b8.css","assets/ContentLayout.7d5c9f09.js","assets/ContentLayout.cdae7d24.css","assets/fetch.83d89bdc.js","assets/repository.af418855.js","assets/View.vue_vue_type_script_setup_true_lang.424410a2.js","assets/CrudView.8fb84eac.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.0555d923.js","assets/PhDotsThreeVertical.vue.2db678ef.js","assets/CrudView.c883bb05.css","assets/PhPencil.vue.ae2943da.js","assets/PlayerNavbar.13876ce7.js","assets/PlayerNavbar.77209eae.css","assets/PlayerConfigProvider.2acd3a77.js","assets/PlayerConfigProvider.1ce9d3b1.css","assets/LoadingContainer.6e72d482.js","assets/LoadingContainer.56fa997a.css","assets/PhGear.vue.6e1aeed0.js","assets/PhPencilSimple.vue.9042e169.js","assets/toggleHighContrast.fc60753d.js","assets/toggleHighContrast.30d77c87.css","assets/PhArrowCounterClockwise.vue.76c9e146.js","assets/FormRunner.8bbe841e.js","assets/Login.vue_vue_type_script_setup_true_lang.a92a80d0.js","assets/CircularLoading.3e4ddd6d.js","assets/CircularLoading.a8fe2dc6.css","assets/Login.75d13f6c.css","assets/Steps.f820fb18.js","assets/index.a7b8e25e.js","assets/Steps.2880920a.css","assets/Watermark.40c8c47e.js","assets/Watermark.b0916e90.css","assets/FormRunner.46f6426d.css","assets/redirect.2fa4f8cf.js","assets/router.55c0ff56.js","assets/NewEditor.0044878f.css"])},{path:"project-login",name:"projectLogin",component:()=>y(()=>import("./ProjectLogin.46d5036b.js"),["assets/ProjectLogin.46d5036b.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang.32a17b0c.js","assets/Logo.83b476a4.js","assets/jwt-decode.esm.992666e9.js","assets/jwt-decode.9f7a5511.css","assets/Logo.b7d81119.css","assets/BaseLayout.b60c33b8.js","assets/BaseLayout.e1744dcc.css","assets/index.5e22e010.js","assets/Breadcrumb.d0cc2c91.js","assets/index.9e0166fe.js","assets/index.3d2a7b6d.js","assets/router.55c0ff56.js","assets/workspaceStore.4f0c433f.js","assets/userStore.9e7a540a.js","assets/url.f490879d.js","assets/colorHelpers.d4f3f275.js","assets/linters.3c5f0c83.js","assets/asyncComputed.1b787534.js","assets/constants.36bf7d70.js","assets/index.d181a22c.js","assets/ProjectLogin.21a71354.css"]),meta:{title:"Abstra Editor",allowUnauthenticated:!0}},{path:":pathMatch(.*)*",name:"editorFallback",redirect:"/_editor/"}]},{path:"/:path(.*)*",name:"form",component:()=>y(()=>import("./App.c29df54f.js"),["assets/App.c29df54f.js","assets/App.vue_vue_type_style_index_0_lang.efd9d3fa.js","assets/userStore.9e7a540a.js","assets/jwt-decode.esm.992666e9.js","assets/jwt-decode.9f7a5511.css","assets/PlayerConfigProvider.2acd3a77.js","assets/colorHelpers.d4f3f275.js","assets/PlayerConfigProvider.1ce9d3b1.css","assets/workspaceStore.4f0c433f.js","assets/url.f490879d.js","assets/App.0c2736ee.css"]),children:Re}],scrollBehavior(o){if(o.hash)return{el:o.hash}}}),Ae=_e(L);L.beforeEach(async(o,e)=>{if(await fe().actions.fetch(),o.meta.playerRoute)return Ae(o,e);ee(o,e);const t=Ie();if(!o.meta.allowUnauthenticated&&!t.isLogged&&!await t.loadLogin()){const s={redirect:location.origin+"/_editor/project-login"};window.open(O.getLoginUrl(s),"_self")}});(async()=>{await ge();const o=await me(),e=te(),t=oe({render:()=>le(Ce)});se.init(),ne(t,L,o),t.use(L),t.use(ae),t.use(e),t.mount("#app"),t.component("VSelect",re),t.component("Markdown",ie),t.component("Message",ce),C(t,de),C(t,ue),C(t,pe)})();export{h as E,Te as a,Ie as u};
|
|
2
|
-
//# sourceMappingURL=editor.0ce52658.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{C as r,E as t,K as i,a as f,M as b,c,P as l,R as y,S as g,b as u,T as k,U as p,e as w,l as D}from"./toggleHighContrast.fc60753d.js";import"./jwt-decode.esm.992666e9.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="09b4ef5c-4dd4-435f-a5a1-d8656e36bd35",e._sentryDebugIdIdentifier="sentry-dbid-09b4ef5c-4dd4-435f-a5a1-d8656e36bd35")}catch{}})();export{r as CancellationTokenSource,t as Emitter,i as KeyCode,f as KeyMod,b as MarkerSeverity,c as MarkerTag,l as Position,y as Range,g as Selection,u as SelectionDirection,k as Token,p as Uri,w as editor,D as languages};
|
|
2
|
-
//# sourceMappingURL=editor.main.353e9a8f.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import"./jwt-decode.esm.992666e9.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="62e3c3ca-ed50-4c11-8fdd-15c3c76e040e",e._sentryDebugIdIdentifier="sentry-dbid-62e3c3ca-ed50-4c11-8fdd-15c3c76e040e")}catch{}})();const t=(...e)=>window.fetch(...e);export{t as l};
|
|
2
|
-
//# sourceMappingURL=fetch.83d89bdc.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{d as P,ag as T,e0 as L,e1 as Q,c as o,r as O,w as W,aQ as X,f,X as m,aR as q,aj as j,cV as h,av as G,bt as B,aM as H,ah as J}from"./jwt-decode.esm.992666e9.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},c=new Error().stack;c&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[c]="ab71228a-17c8-4d76-aaf8-1287bbb2d728",e._sentryDebugIdIdentifier="sentry-dbid-ab71228a-17c8-4d76-aaf8-1287bbb2d728")}catch{}})();const K={small:8,middle:16,large:24},U=()=>({prefixCls:String,size:{type:[String,Number,Array]},direction:G.oneOf(B("horizontal","vertical")).def("horizontal"),align:G.oneOf(B("start","end","center","baseline")),wrap:H()});function Y(e){return typeof e=="string"?K[e]:e||0}const r=P({compatConfig:{MODE:3},name:"ASpace",inheritAttrs:!1,props:U(),slots:Object,setup(e,c){let{slots:l,attrs:g}=c;const{prefixCls:n,space:y,direction:w}=T("space",e),[E,F]=L(n),x=Q(),s=o(()=>{var a,t,i;return(i=(a=e.size)!==null&&a!==void 0?a:(t=y==null?void 0:y.value)===null||t===void 0?void 0:t.size)!==null&&i!==void 0?i:"small"}),b=O(),u=O();W(s,()=>{[b.value,u.value]=(Array.isArray(s.value)?s.value:[s.value,s.value]).map(a=>Y(a))},{immediate:!0});const z=o(()=>e.align===void 0&&e.direction==="horizontal"?"center":e.align),R=o(()=>J(n.value,F.value,`${n.value}-${e.direction}`,{[`${n.value}-rtl`]:w.value==="rtl",[`${n.value}-align-${z.value}`]:z.value})),V=o(()=>w.value==="rtl"?"marginLeft":"marginRight"),k=o(()=>{const a={};return x.value&&(a.columnGap=`${b.value}px`,a.rowGap=`${u.value}px`),m(m({},a),e.wrap&&{flexWrap:"wrap",marginBottom:`${-u.value}px`})});return()=>{var a,t;const{wrap:i,direction:M="horizontal"}=e,_=(a=l.default)===null||a===void 0?void 0:a.call(l),C=X(_),I=C.length;if(I===0)return null;const d=(t=l.split)===null||t===void 0?void 0:t.call(l),A=`${n.value}-item`,D=b.value,S=I-1;return f("div",j(j({},g),{},{class:[R.value,g.class],style:[k.value,g.style]}),[C.map((N,v)=>{let $=_.indexOf(N);$===-1&&($=`$$space-${v}`);let p={};return x.value||(M==="vertical"?v<S&&(p={marginBottom:`${D/(d?2:1)}px`}):p=m(m({},v<S&&{[V.value]:`${D/(d?2:1)}px`}),i&&{paddingBottom:`${u.value}px`})),E(f(q,{key:$},[f("div",{class:A,style:p},[N]),v<S&&d&&f("span",{class:`${A}-split`,style:p},[d])]))})])}}});r.Compact=h;r.install=function(e){return e.component(r.name,r),e.component(h.name,h),e};const ee=r;export{ee as A};
|
|
2
|
-
//# sourceMappingURL=index.3d2a7b6d.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var F=Object.defineProperty;var E=(n,t,e)=>t in n?F(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var s=(n,t,e)=>(E(n,typeof t!="symbol"?t+"":t,e),e);import{L as o}from"./jwt-decode.esm.992666e9.js";import{a as k}from"./asyncComputed.1b787534.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[t]="e41381a9-da56-4c49-b65f-3d2f4e0aae21",n._sentryDebugIdIdentifier="sentry-dbid-e41381a9-da56-4c49-b65f-3d2f4e0aae21")}catch{}})();const L=o.string(),j=o.array(L),G=o.number(),P=o.string().datetime({local:!0}),N=o.enum(["file","directory"]),_=o.string(),W=o.array(_),w=o.array(W).default([]),g=o.object({pathParts:j,size:G,lastModified:P,type:N,children:w.optional()}),M=o.boolean(),x=o.boolean(),O=o.boolean(),H=o.boolean(),v=o.boolean(),q=o.boolean();o.object({PROJECT_LIVE:M.optional(),ALLOW_RELEASE:x.optional(),CONNECTORS_CONSOLE:O.optional(),DUPLICATE_PROJECTS:H.optional(),WEB_EDITOR:v.optional(),LANGCHAIN_SMART_CHAT:q.optional()});const U=o.string(),B=o.string(),z=o.string(),$=o.string(),K=o.string();o.object({plan:U.optional(),expires:B.optional(),message:z.optional(),messageLink:$.optional(),messageCTA:K.optional()});const Q=o.string(),h=o.string(),A=o.string(),X=o.string(),Y=o.string(),Z=o.object({id:Q,name:h,description:A.optional(),projectId:X,createdAt:Y}),oo=o.string(),to=o.string(),eo=o.string(),no=o.string(),so=o.string(),ao=o.enum(["true","false"]),io=o.enum(["true","false"]),mo=o.enum(["true","false"]),co=o.string().regex(new RegExp("^[0-9]+m$")),ro=o.string().regex(new RegExp("^[0-9]+m$")),lo=o.string().regex(new RegExp("^[0-9]+Mi$")),So=o.string().regex(new RegExp("^[0-9]+Mi$")),Ao=o.string().regex(new RegExp("^[0-9]+$")),bo=o.number(),Co=o.string().regex(new RegExp("^[0-9]+$")),go=o.enum(["jusbrasil","clickbus","touchsuite","foursquare","estoca","estoca-test","irko","dr9","onfly","shared","test","abstra-projects"]),ho=o.enum(["3.9","3.10","3.11","3.12"]),uo=o.string(),po=o.string(),Vo=o.object({watermarkEnabled:ao.optional(),seleniumInstanceEnabled:io.optional(),notificationsEnabled:mo.optional(),requestsCPU:co.optional(),limitsCPU:ro.optional(),requestsMemory:lo.optional(),limitsMemory:So.optional(),minReplicas:Ao.optional(),computeUnits:bo.optional(),timeoutSeconds:Co.optional(),workerType:go.optional(),pythonVersion:ho.optional(),workerNumber:uo.optional(),baseDockerfile:po.optional()});o.object({id:oo,folderId:to,name:eo,subdomain:no,organizationId:so,deploymentResources:Vo.optional()});const fo=o.string(),Jo=o.string(),Do=o.string();o.object({name:fo,connectionType:Jo,projectId:Do});const Ro=o.string(),Io=o.string(),u=o.array(Io),p=o.string(),yo=o.string();o.object({id:Ro,emailPatterns:u,projectId:p,createdAt:yo});const To=o.string(),Fo=o.string(),Eo=o.string(),ko=o.string(),Lo=o.object({key:To,label:Fo,description:Eo,logoUrl:ko}),jo=o.literal("tokens"),Go=o.string(),Po=o.string(),No=o.string(),_o=o.string(),Wo=o.enum(["small-string","large-text","file"]),wo=o.number(),Mo=o.number(),xo=o.object({type:Wo,maxSize:wo.optional(),minSize:Mo.optional()}),Oo=o.object({key:Go,label:Po,description:No,instructions:_o.optional(),input:xo}),b=o.array(Oo),Ho=b,vo=o.object({type:jo,tokens:Ho}),qo=o.literal("oauth2"),Uo=o.string(),Bo=o.string(),zo=o.string(),$o=o.object({key:Uo,label:Bo,description:zo}),Ko=o.array($o),Qo=b,Xo=o.object({type:qo,scopes:Ko,params:Qo}),Yo=o.literal("manual"),Zo=o.object({type:Yo}),ot=o.literal("ecdsa"),tt=b,et=o.object({type:ot,params:tt}),nt=o.union([vo,Xo,Zo,et]),st=o.string(),at=o.string(),it=o.string(),mt=o.record(o.any()),ct=o.record(o.any()),rt=o.object({key:st,label:at,description:it,payloadSchema:mt,returnSchema:ct}),lt=o.array(rt),St=o.string(),At=o.string(),bt=o.record(o.any()),Ct=o.object({name:St,description:At,payloadSchema:bt.optional()}),gt=o.array(Ct);o.object({metadata:Lo,auth:nt,actions:lt,triggers:gt});const ht=o.enum(["bigint","int8","bigserial","serial8","bit","bit varying","varbit","boolean","bool","box","bytea","character","char","character varying","varchar","cidr","circle","date","double precision","float8","inet","integer","int","int4","interval","json","jsonb","line","lseg","macaddr","money","numeric","decimal","path","pg_lsn","point","polygon","real","float4","smallint","int2","smallserial","serial2","serial","serial4","text","time","time with time zone","timetz","timestamp","timestamp with time zone","timestamptz","tsquery","tsvector","txid_snapshot","uuid","xml"]),ut=o.string(),m=o.string().email(),pt=o.string(),C=o.array(pt),dt=o.string(),Vt=o.string(),ft=o.object({id:ut,email:m,roles:C,projectId:dt,createdAt:Vt}),Jt=o.string().uuid(),Dt=o.string(),Rt=o.string().uuid(),It=o.boolean(),yt=o.string(),Tt=ht,Ft=o.boolean(),Et=o.boolean(),kt=o.string(),Lt=o.string(),jt=o.object({columnId:Lt}),Gt=o.object({id:Rt,primaryKey:It,name:yt,type:Tt,unique:Ft.optional(),nullable:Et.optional(),default:kt.optional(),foreignKey:jt.optional()}),Pt=o.array(Gt),Nt=o.record(o.any()),_t=o.array(Nt),Wt=o.object({id:Jt,name:Dt,columns:Pt,data:_t}),wt=o.array(Wt);o.object({tables:wt});const d=o.string(),V=o.string(),Mt=o.boolean(),xt=o.boolean(),Ot=o.boolean(),Ht=o.boolean(),vt=o.boolean(),qt=o.boolean(),f=o.object({PROJECT_LIVE:Mt,ALLOW_RELEASE:xt,CONNECTORS_CONSOLE:Ot,DUPLICATE_PROJECTS:Ht,WEB_EDITOR:vt.optional(),LANGCHAIN_SMART_CHAT:qt.optional()}),Ut=o.string(),Bt=o.string(),zt=o.string(),$t=o.string(),Kt=o.string(),J=o.object({plan:Ut.optional(),expires:Bt.optional(),message:zt.optional(),messageLink:$t.optional(),messageCTA:Kt.optional()}),Qt=o.enum(["true","false"]),Xt=o.enum(["true","false"]),Yt=o.enum(["true","false"]),Zt=o.string().regex(new RegExp("^[0-9]+m$")),oe=o.string().regex(new RegExp("^[0-9]+m$")),te=o.string().regex(new RegExp("^[0-9]+Mi$")),ee=o.string().regex(new RegExp("^[0-9]+Mi$")),ne=o.string().regex(new RegExp("^[0-9]+$")),se=o.number(),ae=o.string().regex(new RegExp("^[0-9]+$")),ie=o.enum(["jusbrasil","clickbus","touchsuite","foursquare","estoca","estoca-test","irko","dr9","onfly","shared","test","abstra-projects"]),me=o.enum(["3.9","3.10","3.11","3.12"]),ce=o.string(),re=o.string(),le=o.object({watermarkEnabled:Qt.optional(),nativeTempDir:Xt.optional(),notificationsEnabled:Yt.optional(),requestsCPU:Zt.optional(),limitsCPU:oe.optional(),requestsMemory:te.optional(),limitsMemory:ee.optional(),minReplicas:ne.optional(),computeUnits:se.optional(),timeoutSeconds:ae.optional(),workerType:ie.optional(),pythonVersion:me.optional(),workerNumber:ce.optional(),baseDockerfile:re.optional()}),Se=o.string(),Ae=o.array(Se),be=o.object({whitelistPatterns:Ae.optional()});o.object({id:d,name:V,featureFlags:f,billingMetadata:J,deploymentResources:le.optional(),membershipsMetadata:be.optional()});const Ce=o.string(),ge=o.array(Ce);o.object({whitelistPatterns:ge.optional()});const he=o.string(),ue=o.string(),pe=o.string(),de=o.null(),Ve=o.union([pe,de]),fe=o.string(),Je=o.null(),De=o.union([fe,Je]),Re=o.string(),Ie=o.null(),ye=o.union([Re,Ie]),Te=o.string(),Fe=o.null(),Ee=o.union([Te,Fe]),ke=o.string(),Le=o.null(),je=o.union([ke,Le]),Ge=o.string(),Pe=o.null(),Ne=o.union([Ge,Pe]),_e=o.string(),We=o.null(),we=o.union([_e,We]),Me=o.object({name:he,language:ue,theme:Ve,logo_url:De,favicon_url:ye,brand_name:Ee,main_color:je,font_family:Ne,font_color:we}),xe=o.boolean(),Oe=o.string(),He=o.array(Oe),ve=o.object({is_public:xe,required_roles:He}),qe=o.object({access_control:ve}),Ue=o.string(),Be=o.number(),ze=o.array(Be),$e=o.string(),Ke=o.string(),Qe=o.string(),Xe=o.string(),Ye=o.string(),Ze=o.null(),on=o.union([Ye,Ze]),c=o.object({id:$e,target_id:Ke,target_type:Qe,type:Xe,task_type:on.optional()}),tn=c,en=o.array(tn),nn=o.string(),sn=o.string(),an=o.string(),mn=o.object({file:Ue,workflow_position:ze,transitions:en,id:nn,title:sn,schedule:an}),cn=mn,rn=o.array(cn),ln=o.string(),Sn=o.number(),An=o.array(Sn),bn=c,Cn=o.array(bn),gn=o.string(),hn=o.string(),un=o.string(),pn=o.boolean(),dn=o.boolean(),Vn=o.object({file:ln,workflow_position:An,transitions:Cn,id:gn,title:hn,path:un,is_initial:pn,enabled:dn}),fn=Vn,Jn=o.array(fn),Dn=o.string(),Rn=o.number(),In=o.array(Rn),yn=c,Tn=o.array(yn),Fn=o.string(),En=o.string(),kn=o.boolean(),Ln=o.boolean(),jn=o.string(),Gn=o.null(),Pn=o.union([jn,Gn]),Nn=o.boolean(),_n=o.string(),Wn=o.array(_n),wn=o.object({is_public:Nn,required_roles:Wn}),Mn=o.string(),xn=o.null(),On=o.union([Mn,xn]),Hn=o.string(),vn=o.null(),qn=o.union([Hn,vn]),Un=o.string(),Bn=o.boolean(),zn=o.object({variable_name:Un,enabled:Bn}),$n=o.string(),Kn=o.null(),Qn=o.union([$n,Kn]),Xn=o.boolean(),Yn=o.string(),Zn=o.string(),os=o.null(),ts=o.union([Zn,os]),es=o.string(),ns=o.null(),ss=o.union([es,ns]),as=o.string(),is=o.null(),ms=o.union([as,is]),cs=o.object({file:Dn,workflow_position:In,transitions:Tn,id:Fn,title:En,allow_restart:kn,is_initial:Ln,start_button_text:Pn,access_control:wn,welcome_title:On,restart_button_text:qn,notification_trigger:zn,timeout_message:Qn,auto_start:Xn,path:Yn,error_message:ts,start_message:ss,end_message:ms}),rs=cs,ls=o.array(rs),Ss=o.string(),As=o.number(),bs=o.array(As),Cs=c,gs=o.array(Cs),hs=o.string(),us=o.string(),ps=o.boolean(),ds=o.object({file:Ss,workflow_position:bs,transitions:gs,id:hs,title:us,is_initial:ps}),Vs=ds,fs=o.array(Vs),Js=o.literal("15.0");o.object({workspace:Me,home:qe,jobs:rn,hooks:Jn,forms:ls,scripts:fs,version:Js});const Ds=o.string(),Rs=o.string(),Is=o.string(),ys=o.null(),Ts=o.union([Is,ys]),Fs=o.string(),Es=o.null(),ks=o.union([Fs,Es]),Ls=o.string(),js=o.null(),Gs=o.union([Ls,js]),Ps=o.string(),Ns=o.null(),_s=o.union([Ps,Ns]),Ws=o.string(),ws=o.null(),Ms=o.union([Ws,ws]),xs=o.string(),Os=o.null(),Hs=o.union([xs,Os]),vs=o.string(),qs=o.null(),Us=o.union([vs,qs]),Bs=o.object({name:Ds,language:Rs,theme:Ts,logo_url:ks,favicon_url:Gs,brand_name:_s,main_color:Ms,font_family:Hs,font_color:Us}),zs=o.boolean(),$s=o.string(),Ks=o.array($s),Qs=o.object({is_public:zs,required_roles:Ks}),Xs=o.object({access_control:Qs}),Ys=o.string(),Zs=o.number(),oa=o.array(Zs),ta=o.string(),ea=o.string(),na=o.string(),sa=o.literal("task"),aa=o.string(),ia=o.null(),ma=o.union([aa,ia]),r=o.object({id:ta,target_id:ea,target_type:na,type:sa,task_type:ma.optional()}),ca=r,ra=o.array(ca),la=o.string(),Sa=o.string(),Aa=o.string(),ba=o.object({file:Ys,workflow_position:oa,transitions:ra,id:la,title:Sa,schedule:Aa}),Ca=ba,ga=o.array(Ca),ha=o.string(),ua=o.number(),pa=o.array(ua),da=r,Va=o.array(da),fa=o.string(),Ja=o.string(),Da=o.string(),Ra=o.boolean(),Ia=o.boolean(),ya=o.object({file:ha,workflow_position:pa,transitions:Va,id:fa,title:Ja,path:Da,is_initial:Ra,enabled:Ia}),Ta=ya,Fa=o.array(Ta),Ea=o.string(),ka=o.number(),La=o.array(ka),ja=r,Ga=o.array(ja),Pa=o.string(),Na=o.string(),_a=o.boolean(),Wa=o.boolean(),wa=o.string(),Ma=o.null(),xa=o.union([wa,Ma]),Oa=o.boolean(),Ha=o.string(),va=o.array(Ha),qa=o.object({is_public:Oa,required_roles:va}),Ua=o.string(),Ba=o.null(),za=o.union([Ua,Ba]),$a=o.string(),Ka=o.null(),Qa=o.union([$a,Ka]),Xa=o.string(),Ya=o.boolean(),Za=o.object({variable_name:Xa,enabled:Ya}),oi=o.string(),ti=o.null(),ei=o.union([oi,ti]),ni=o.boolean(),si=o.string(),ai=o.string(),ii=o.null(),mi=o.union([ai,ii]),ci=o.string(),ri=o.null(),li=o.union([ci,ri]),Si=o.string(),Ai=o.null(),bi=o.union([Si,Ai]),Ci=o.object({file:Ea,workflow_position:La,transitions:Ga,id:Pa,title:Na,allow_restart:_a,is_initial:Wa,start_button_text:xa,access_control:qa,welcome_title:za,restart_button_text:Qa,notification_trigger:Za,timeout_message:ei,auto_start:ni,path:si,error_message:mi,start_message:li,end_message:bi}),gi=Ci,hi=o.array(gi),ui=o.string(),pi=o.number(),di=o.array(pi),Vi=r,fi=o.array(Vi),Ji=o.string(),Di=o.string(),Ri=o.boolean(),Ii=o.object({file:ui,workflow_position:di,transitions:fi,id:Ji,title:Di,is_initial:Ri}),yi=Ii,Ti=o.array(yi),Fi=o.literal("14.0");o.object({workspace:Bs,home:Xs,jobs:ga,hooks:Fa,forms:hi,scripts:Ti,version:Fi});const Ei=o.string(),ki=o.string(),Li=o.string(),ji=o.null(),Gi=o.union([Li,ji]),Pi=o.string(),Ni=o.null(),_i=o.union([Pi,Ni]),Wi=o.string(),wi=o.null(),Mi=o.union([Wi,wi]),xi=o.string(),Oi=o.null(),Hi=o.union([xi,Oi]),vi=o.string(),qi=o.null(),Ui=o.union([vi,qi]),Bi=o.string(),zi=o.null(),$i=o.union([Bi,zi]),Ki=o.string(),Qi=o.null(),Xi=o.union([Ki,Qi]),Yi=o.object({name:Ei,language:ki,theme:Gi,logo_url:_i,favicon_url:Mi,brand_name:Hi,main_color:Ui,font_family:$i,font_color:Xi}),Zi=o.boolean(),om=o.string(),tm=o.array(om),em=o.object({is_public:Zi,required_roles:tm}),nm=o.object({access_control:em}),sm=o.string(),am=o.number(),im=o.array(am),mm=o.string(),cm=o.string(),rm=o.string(),lm=o.string(),Sm=o.string(),Am=o.null(),bm=o.union([Sm,Am]),i=o.object({id:mm,target_id:cm,target_type:rm,type:lm,task_type:bm.optional()}),Cm=i,gm=o.array(Cm),hm=o.string(),um=o.string(),pm=o.string(),dm=o.object({file:sm,workflow_position:im,transitions:gm,id:hm,title:um,schedule:pm}),Vm=dm,fm=o.array(Vm),Jm=o.string(),Dm=o.number(),Rm=o.array(Dm),Im=i,ym=o.array(Im),Tm=o.string(),Fm=o.string(),Em=o.string(),km=o.boolean(),Lm=o.boolean(),jm=o.object({file:Jm,workflow_position:Rm,transitions:ym,id:Tm,title:Fm,path:Em,is_initial:km,enabled:Lm}),Gm=jm,Pm=o.array(Gm),Nm=o.string(),_m=o.number(),Wm=o.array(_m),wm=i,Mm=o.array(wm),xm=o.string(),Om=o.string(),Hm=o.boolean(),vm=o.boolean(),qm=o.string(),Um=o.null(),Bm=o.union([qm,Um]),zm=o.boolean(),$m=o.string(),Km=o.array($m),Qm=o.object({is_public:zm,required_roles:Km}),Xm=o.string(),Ym=o.null(),Zm=o.union([Xm,Ym]),oc=o.string(),tc=o.null(),ec=o.union([oc,tc]),nc=o.string(),sc=o.boolean(),ac=o.object({variable_name:nc,enabled:sc}),ic=o.string(),mc=o.null(),cc=o.union([ic,mc]),rc=o.boolean(),lc=o.string(),Sc=o.string(),Ac=o.null(),bc=o.union([Sc,Ac]),Cc=o.string(),gc=o.null(),hc=o.union([Cc,gc]),uc=o.string(),pc=o.null(),dc=o.union([uc,pc]),Vc=o.object({file:Nm,workflow_position:Wm,transitions:Mm,id:xm,title:Om,allow_restart:Hm,is_initial:vm,start_button_text:Bm,access_control:Qm,welcome_title:Zm,restart_button_text:ec,notification_trigger:ac,timeout_message:cc,auto_start:rc,path:lc,error_message:bc,start_message:hc,end_message:dc}),fc=Vc,Jc=o.array(fc),Dc=o.string(),Rc=o.number(),Ic=o.array(Rc),yc=i,Tc=o.array(yc),Fc=o.string(),Ec=o.string(),kc=o.boolean(),Lc=o.object({file:Dc,workflow_position:Ic,transitions:Tc,id:Fc,title:Ec,is_initial:kc}),jc=Lc,Gc=o.array(jc),Pc=o.string(),Nc=o.string(),_c=o.string().uuid(),Wc=o.null(),wc=o.union([_c,Wc]),Mc=o.number(),xc=o.array(Mc),Oc=i,Hc=o.array(Oc),vc=o.string().uuid(),qc=o.null(),Uc=o.union([vc,qc]),Bc=o.object({id:Pc,title:Nc,project_id:wc,workflow_position:xc,transitions:Hc,client_stage_id:Uc}),zc=o.array(Bc),$c=o.string(),Kc=o.string(),Qc=o.number(),Xc=o.array(Qc),Yc=i,Zc=o.array(Yc),or=o.object({id:$c,title:Kc,workflow_position:Xc,transitions:Zc}),tr=o.array(or),er=o.literal("13.0");o.object({workspace:Yi,home:nm,jobs:fm,hooks:Pm,forms:Jc,scripts:Gc,agents:zc,clients:tr,version:er});const nr=o.string(),sr=o.string(),ar=o.string(),ir=o.null(),mr=o.union([ar,ir]),cr=o.string(),rr=o.null(),lr=o.union([cr,rr]),Sr=o.string(),Ar=o.null(),br=o.union([Sr,Ar]),Cr=o.string(),gr=o.null(),hr=o.union([Cr,gr]),ur=o.string(),pr=o.null(),dr=o.union([ur,pr]),Vr=o.string(),fr=o.null(),Jr=o.union([Vr,fr]),Dr=o.string(),Rr=o.null(),Ir=o.union([Dr,Rr]),yr=o.object({name:nr,language:sr,theme:mr,logo_url:lr,favicon_url:br,brand_name:hr,main_color:dr,font_family:Jr,font_color:Ir}),Tr=o.boolean(),Fr=o.string(),Er=o.array(Fr),kr=o.object({is_public:Tr,required_roles:Er}),Lr=o.object({access_control:kr}),jr=o.string(),Gr=o.number(),Pr=o.array(Gr),Nr=o.string(),_r=o.string(),Wr=o.string(),wr=o.string(),Mr=o.string(),xr=o.null(),Or=o.union([Mr,xr]),l=o.object({id:Nr,target_id:_r,target_type:Wr,type:wr,task_type:Or.optional()}),Hr=l,vr=o.array(Hr),qr=o.string(),Ur=o.string(),Br=o.string(),zr=o.object({file:jr,workflow_position:Pr,transitions:vr,id:qr,title:Ur,schedule:Br}),$r=zr,Kr=o.array($r),Qr=o.string(),Xr=o.number(),Yr=o.array(Xr),Zr=l,ol=o.array(Zr),tl=o.string(),el=o.string(),nl=o.string(),sl=o.boolean(),al=o.boolean(),il=o.object({file:Qr,workflow_position:Yr,transitions:ol,id:tl,title:el,path:nl,is_initial:sl,enabled:al}),ml=il,cl=o.array(ml),rl=o.string(),ll=o.number(),Sl=o.array(ll),Al=l,bl=o.array(Al),Cl=o.string(),gl=o.string(),hl=o.boolean(),ul=o.boolean(),pl=o.string(),dl=o.null(),Vl=o.union([pl,dl]),fl=o.boolean(),Jl=o.string(),Dl=o.array(Jl),Rl=o.object({is_public:fl,required_roles:Dl}),Il=o.string(),yl=o.null(),Tl=o.union([Il,yl]),Fl=o.string(),El=o.null(),kl=o.union([Fl,El]),Ll=o.string(),jl=o.boolean(),Gl=o.object({variable_name:Ll,enabled:jl}),Pl=o.string(),Nl=o.null(),_l=o.union([Pl,Nl]),Wl=o.boolean(),wl=o.string(),Ml=o.string(),xl=o.null(),Ol=o.union([Ml,xl]),Hl=o.string(),vl=o.null(),ql=o.union([Hl,vl]),Ul=o.string(),Bl=o.null(),zl=o.union([Ul,Bl]),$l=o.object({file:rl,workflow_position:Sl,transitions:bl,id:Cl,title:gl,allow_restart:hl,is_initial:ul,start_button_text:Vl,access_control:Rl,welcome_title:Tl,restart_button_text:kl,notification_trigger:Gl,timeout_message:_l,auto_start:Wl,path:wl,error_message:Ol,start_message:ql,end_message:zl}),Kl=$l,Ql=o.array(Kl),Xl=o.string(),Yl=o.number(),Zl=o.array(Yl),oS=l,tS=o.array(oS),eS=o.string(),nS=o.string(),sS=o.boolean(),aS=o.object({file:Xl,workflow_position:Zl,transitions:tS,id:eS,title:nS,is_initial:sS}),iS=aS,mS=o.array(iS),cS=o.literal("12.0");o.object({workspace:yr,home:Lr,jobs:Kr,hooks:cl,forms:Ql,scripts:mS,version:cS});const rS=o.enum(["true","false"]),lS=o.enum(["true","false"]),SS=o.enum(["true","false"]),AS=o.string().regex(new RegExp("^[0-9]+m$")),bS=o.string().regex(new RegExp("^[0-9]+m$")),CS=o.string().regex(new RegExp("^[0-9]+Mi$")),gS=o.string().regex(new RegExp("^[0-9]+Mi$")),hS=o.string().regex(new RegExp("^[0-9]+$")),uS=o.number(),pS=o.string().regex(new RegExp("^[0-9]+$")),dS=o.enum(["jusbrasil","clickbus","touchsuite","foursquare","estoca","estoca-test","irko","dr9","onfly","shared","test","abstra-projects"]),VS=o.enum(["3.9","3.10","3.11","3.12"]),fS=o.string(),JS=o.string();o.object({watermarkEnabled:rS.optional(),nativeTempDir:lS.optional(),notificationsEnabled:SS.optional(),requestsCPU:AS.optional(),limitsCPU:bS.optional(),requestsMemory:CS.optional(),limitsMemory:gS.optional(),minReplicas:hS.optional(),computeUnits:uS.optional(),timeoutSeconds:pS.optional(),workerType:dS.optional(),pythonVersion:VS.optional(),workerNumber:fS.optional(),baseDockerfile:JS.optional()});const DS=o.enum(["true","false"]),RS=o.enum(["true","false"]),IS=o.enum(["true","false"]),yS=o.string().regex(new RegExp("^[0-9]+m$")),TS=o.string().regex(new RegExp("^[0-9]+m$")),FS=o.string().regex(new RegExp("^[0-9]+Mi$")),ES=o.string().regex(new RegExp("^[0-9]+Mi$")),kS=o.string().regex(new RegExp("^[0-9]+$")),LS=o.number(),jS=o.string().regex(new RegExp("^[0-9]+$")),GS=o.enum(["jusbrasil","clickbus","touchsuite","foursquare","estoca","estoca-test","irko","dr9","onfly","shared","test","abstra-projects"]),PS=o.enum(["3.9","3.10","3.11","3.12"]),NS=o.string(),_S=o.string();o.object({watermarkEnabled:DS.optional(),seleniumInstanceEnabled:RS.optional(),notificationsEnabled:IS.optional(),requestsCPU:yS.optional(),limitsCPU:TS.optional(),requestsMemory:FS.optional(),limitsMemory:ES.optional(),minReplicas:kS.optional(),computeUnits:LS.optional(),timeoutSeconds:jS.optional(),workerType:GS.optional(),pythonVersion:PS.optional(),workerNumber:NS.optional(),baseDockerfile:_S.optional()});const WS=o.enum(["file","directory"]),wS=o.string(),MS=o.string(),xS=o.string().datetime({local:!0}),OS=o.number(),HS=o.string(),vS=o.number(),qS=o.object({type:WS,path:wS,name:MS,date:xS,sizeBytes:OS.optional(),sizeHuman:HS.optional(),itemCount:vS.optional()}),US=o.literal("replace-code"),BS=o.string(),zS=o.string(),$S=o.literal("replace-code"),KS=o.object({action:US,actionLabel:BS,newCode:zS,type:$S.optional()}),QS=KS,XS=o.literal("edit-stage-name"),YS=o.string(),ZS=o.string(),oA=o.literal("edit-stage-name"),tA=o.object({action:XS,actionLabel:YS,newName:ZS,type:oA.optional()}),eA=tA,nA=o.literal("add-notifiable-email"),sA=o.string(),aA=o.string(),iA=o.object({action:nA,actionLabel:sA,email:aA}),mA=iA,cA=o.literal("edit-stage-filename"),rA=o.string(),lA=o.string(),SA=o.literal("edit-stage-filename"),AA=o.object({action:cA,actionLabel:rA,newFilename:lA,type:SA.optional()}),bA=AA,CA=o.union([QS,eA,mA,bA]),gA=o.array(CA);o.object({actions:gA});const hA=o.literal("create-table"),uA=o.string(),pA=o.string().uuid(),dA=o.string(),VA=o.object({action:hA,actionLabel:uA,tableId:pA,tableName:dA}),fA=VA,JA=o.literal("create-column"),DA=o.string(),RA=o.string().uuid(),IA=o.string(),yA=o.enum(["varchar","int","boolean","json","date","timestamp","uuid","real"]),TA=o.boolean(),FA=o.string(),EA=o.boolean(),kA=o.object({action:JA,actionLabel:DA,tableId:RA,columnName:IA,columnType:yA,nullable:TA,default:FA,unique:EA}),LA=kA,jA=o.literal("insert-rows"),GA=o.string(),PA=o.string().uuid(),NA=o.record(o.any()),_A=o.array(NA),WA=o.object({action:jA,actionLabel:GA,tableId:PA,rows:_A}),wA=WA,MA=o.literal("edit-table"),xA=o.string(),OA=o.string().uuid(),HA=o.string(),vA=o.object({action:MA,actionLabel:xA,tableId:OA,newTableName:HA}),qA=vA,UA=o.literal("edit-column"),BA=o.string(),zA=o.string().uuid(),$A=o.string().uuid(),KA=o.string(),QA=o.enum(["varchar","int","boolean","json","date","timestamp","uuid","real"]),XA=o.boolean(),YA=o.string(),ZA=o.boolean(),ob=o.string().uuid(),tb=o.object({columnId:ob}),eb=o.object({columnName:KA.optional(),columnType:QA.optional(),nullable:XA.optional(),default:YA.optional(),unique:ZA.optional(),foreignKey:tb.optional()}),nb=o.object({action:UA,actionLabel:BA,columnId:zA,tableId:$A,changes:eb}),sb=nb,ab=o.literal("edit-env-var"),ib=o.string(),mb=o.string(),cb=o.string(),rb=o.object({action:ab,actionLabel:ib,key:mb,newValue:cb}),lb=rb,Sb=o.literal("set-env-var"),Ab=o.string(),bb=o.string(),Cb=o.string(),gb=o.object({action:Sb,actionLabel:Ab,key:bb,value:Cb}),hb=gb,ub=o.literal("install-package"),pb=o.string(),db=o.string(),Vb=o.object({action:ub,actionLabel:pb,packageName:db}),fb=Vb,Jb=o.literal("create-stage"),Db=o.string(),Rb=o.string().uuid(),Ib=o.enum(["form","job","hook","tasklet"]),yb=o.string(),Tb=o.string(),Fb=o.string(),Eb=o.number(),kb=o.number(),Lb=o.object({x:Eb,y:kb}),jb=o.literal("create-stage"),Gb=o.object({action:Jb,actionLabel:Db,id:Rb,stageType:Ib,stageName:yb,code:Tb,filename:Fb,position:Lb,type:jb.optional()}),Pb=Gb,Nb=o.literal("add-transition"),_b=o.string(),Wb=o.string().uuid(),wb=o.string().uuid(),Mb=o.object({action:Nb,actionLabel:_b,sourceStageId:Wb,targetStageId:wb}),xb=Mb,Ob=o.literal("edit-stage"),Hb=o.string(),vb=o.string().uuid(),qb=o.enum(["form","job","hook","tasklet"]),Ub=o.string(),Bb=o.object({action:Ob,actionLabel:Hb,stageId:vb,stageType:qb,stageNewTitle:Ub}),zb=Bb,$b=o.union([fA,LA,wA,qA,sb,lb,hb,fb,Pb,xb,zb]),Kb=o.array($b);o.object({actions:Kb});const Qb=o.literal("replace-code"),Xb=o.string(),Yb=o.number(),Zb=o.number(),oC=o.object({start:Yb,end:Zb}),tC=o.string(),eC=o.object({action:Qb,actionLabel:Xb,lines:oC,newCode:tC}),nC=eC,sC=o.literal("edit-stage-name"),aC=o.string(),iC=o.string(),mC=o.object({action:sC,actionLabel:aC,newName:iC}),cC=mC,rC=o.literal("add-notifiable-email"),lC=o.string(),SC=o.string(),AC=o.object({action:rC,actionLabel:lC,email:SC}),bC=AC,CC=o.union([nC,cC,bC]),gC=o.array(CC);o.object({actions:gC});const hC=o.literal("create-table"),uC=o.string(),pC=o.string().uuid(),dC=o.string(),VC=o.object({action:hC,actionLabel:uC,tableId:pC,tableName:dC}),fC=VC,JC=o.literal("create-column"),DC=o.string(),RC=o.string().uuid(),IC=o.string(),yC=o.enum(["varchar","int","boolean","json","date","timestamp","uuid","real"]),TC=o.object({action:JC,actionLabel:DC,tableId:RC,columnName:IC,columnType:yC}),FC=TC,EC=o.literal("set-env-var"),kC=o.string(),LC=o.string(),jC=o.string(),GC=o.object({action:EC,actionLabel:kC,key:LC,value:jC}),PC=GC,NC=o.literal("create-stage"),_C=o.string(),WC=o.string().uuid(),wC=o.enum(["form","job","hook","tasklet"]),MC=o.string(),xC=o.string(),OC=o.string(),HC=o.number(),vC=o.number(),qC=o.object({x:HC,y:vC}),UC=o.object({action:NC,actionLabel:_C,id:WC,stageType:wC,stageName:MC,code:xC,filename:OC,position:qC}),BC=UC,zC=o.literal("add-transition"),$C=o.string(),KC=o.string().uuid(),QC=o.string().uuid(),XC=o.object({action:zC,actionLabel:$C,sourceStageId:KC,targetStageId:QC}),YC=XC,ZC=o.union([fC,FC,PC,BC,YC]),og=o.array(ZC);o.object({actions:og});const tg=d,eg=V,ng=f,sg=J;o.object({id:tg,name:eg,featureFlags:ng,billingMetadata:sg});const ag=A;o.object({description:ag});const ig=o.number(),mg=o.number();o.object({offset:ig.optional(),limit:mg.optional()});const cg=Z;o.array(cg);const rg=h,lg=A;o.object({name:rg,description:lg.optional()});const Sg=qS,Ag=o.array(Sg),bg=o.number();o.object({items:Ag,totalCount:bg});const Cg=m,gg=C;o.object({email:Cg.optional(),roles:gg.optional()});const hg=o.number(),ug=o.number();o.object({offset:hg.optional(),limit:ug.optional()});const pg=ft;o.array(pg);const dg=m,Vg=C;o.object({email:dg,roles:Vg});const fg=u;o.object({emailPatterns:fg});const Jg=p;o.object({projectId:Jg});const Dg=o.literal("tokens"),Rg=o.record(o.string());o.object({type:Dg,tokens:Rg});const Ig=o.string(),yg=o.string();o.object({redirect:Ig,ping:yg});const Tg=o.string(),Fg=o.record(o.any()),Eg=o.string(),kg=o.object({key:Tg,value:Fg,type:Eg}),Lg=kg,jg=o.array(Lg),Gg=o.string(),Pg=o.string(),Ng=o.record(o.any()),D=o.enum(["waiting","running","processing","finished","failed","abandoned"]),_g=o.string(),Wg=o.string(),wg=o.string(),Mg=o.string();o.object({id:Gg,stage:Pg,data:Ng,status:D,created_at:_g,updated_at:Wg,parent_id:wg.optional(),execution_id:Mg.optional()});const xg=o.string(),Og=o.string(),Hg=o.string(),vg=o.string(),qg=D,Ug=jg,Bg=o.string(),zg=o.object({id:xg,created_at:Og,updated_at:Hg.optional(),assignee:vg.optional(),status:qg,content:Ug,stage:Bg.optional()}),$g=zg,R=o.array($g),Kg=o.string(),Qg=o.enum(["form","hook","job","script"]),Xg=o.string(),Yg=o.string(),Zg=o.boolean(),I=o.object({id:Kg,type:Qg,title:Xg,path:Yg.optional(),can_be_started:Zg}),oh=I,th=R,eh=o.number(),nh=o.boolean(),sh=o.object({selected_stage:oh,stage_run_cards:th,total_count:eh,loading:nh.optional()}),ah=sh,ih=o.array(ah),mh=ih;o.object({columns:mh});const ch=R,rh=o.string(),lh=o.array(rh),Sh=o.number();o.object({stage_run_cards:ch,not_found_stages:lh,total_count:Sh});const Ah=I;o.array(Ah);const bh=o.string(),Ch=bh,gh=o.literal("text"),hh=o.string(),uh=o.object({type:gh,text:hh}),ph=o.literal("file"),dh=o.string(),Vh=o.string(),fh=o.object({type:ph,fileName:dh,fileContent:Vh}),Jh=o.union([uh,fh]),Dh=o.array(Jh),Rh=Dh,Ih=o.record(o.any()),yh=o.string();o.object({conversationId:Ch,content:Rh,context:Ih,humanApproval:yh.optional()});const Th=o.string(),Fh=o.enum(["changed","created","deleted","moved"]),Eh=o.string(),_p=o.object({filepath:Th,event:Fh,content:Eh.optional()}),kh=o.string(),Lh=o.string(),jh=o.literal("bug"),Gh=o.string(),Ph=o.string(),Nh=o.string(),_h=o.object({name:Ph,label:Nh}),Wh=_h,wh=o.array(Wh),Mh=o.object({label:Gh,fixes:wh}),xh=Mh,Oh=o.array(xh),Hh=o.object({name:kh,label:Lh,type:jh,issues:Oh}),vh=o.string();o.object({waitingRoomUrl:vh});const qh=o.string(),Uh=o.string(),Bh=o.object({name:qh,value:Uh}),zh=o.string(),Wp=o.object({separator:zh}),$h=o.boolean(),wp=o.object({ok:$h.optional()}),Kh=g,Qh=o.enum(["form","hook","job","script"]),Xh=o.string(),Yh=o.object({type:Qh,id:Xh}),Zh=o.array(Yh),ou=o.object({file:Kh,stages:Zh}),Mp=o.array(ou),tu=o.boolean(),xp=o.object({ok:tu.optional()}),eu=o.string(),nu=o.array(eu),su=o.string(),au=o.array(su),Op=o.object({pathParts:nu,newPathParts:au}),iu=o.boolean(),Hp=o.object({ok:iu.optional()}),mu=o.string(),cu=o.number(),ru=o.enum(["delete","insert"]),lu=o.string(),Su=o.number(),Au=o.object({siteId:mu,pos:cu,type:ru,value:lu.optional(),length:Su.optional()});o.array(Au);const bu=o.boolean(),vp=o.object({ok:bu.optional()}),qp=g,Cu=o.boolean();o.object({success:Cu});const gu=Hh;o.array(gu);const hu=Bh;o.array(hu);const uu=o.string();o.object({message:uu});const pu=o.boolean(),du=o.string();o.object({success:pu,message:du});const Vu=o.string();o.object({commitHash:Vu});const fu=o.boolean(),Ju=o.string();o.object({success:fu,message:Ju});const Du=o.boolean(),Ru=o.string();o.object({success:Du,message:Ru});const Iu=o.boolean(),yu=o.string();o.object({success:Iu,message:yu});const Tu=o.record(o.string()),Fu=o.boolean();o.object({remotes:Tu,hasAbstraRemote:Fu});const Eu=o.string(),ku=o.string();o.object({branch:Eu.optional(),commitHash:ku.optional()});const Lu=o.boolean(),ju=o.string();o.object({success:Lu,message:ju});const Gu=o.boolean(),Pu=o.string(),Nu=o.string(),_u=o.array(Nu),Wu=o.string(),wu=o.string(),Mu=o.string(),xu=o.string(),Ou=o.object({hash:Wu,message:wu,author:Mu,date:xu}).nullable(),Hu=o.boolean(),vu=o.string(),qu=o.array(vu),Uu=o.string(),Bu=o.string(),zu=o.string(),$u=o.object({path:Uu,status:Bu,statusCode:zu}),Ku=o.array($u),Qu=o.boolean(),Xu=o.string().nullable(),Yu=o.boolean(),Zu=o.boolean(),op=o.string().nullable(),tp=o.string(),ep=o.array(tp),np=o.number(),sp=o.number(),ap=o.object({ahead:np,behind:sp}).nullable(),ip=o.object({success:Qu,remoteCommit:Xu,hasRemoteChanges:Yu,hasConflicts:Zu,message:op,availableBranches:ep,aheadBehind:ap}).nullable();o.object({available:Gu,branch:Pu,branches:_u,lastCommit:Ou,hasChanges:Hu,changedFiles:qu,changedFilesWithStatus:Ku,remoteStatus:ip});const mp=o.string(),cp=o.string(),rp=o.string(),lp=o.string(),Sp=o.object({hash:mp,message:cp,author:rp,date:lp}),Ap=o.array(Sp),bp=o.boolean();o.object({commits:Ap,hasMore:bp});const Cp=o.boolean(),gp=o.string();o.object({success:Cp,message:gp});const hp=m;o.object({email:hp});const up=o.enum(["ALLOWED","UNAUTHORIZED","FORBIDEN","NOT_FOUND"]);o.object({status:up});const pp=o.string(),dp=o.string().datetime({local:!0}),Vp=o.enum(["user","assistant"]),fp=o.string(),Jp=o.string().datetime({local:!0}),Dp=o.string(),Rp=o.string(),Ip=o.object({role:Vp,content:fp,createdAt:Jp,toolTitle:Dp.optional(),toolCallId:Rp.optional()}),yp=o.array(Ip),Tp=o.object({id:pp,createdAt:dp,messages:yp}),Fp=Tp;o.array(Fp);class Ep{async check(){return(await fetch("/_editor/api/linters/check")).json()}async fix(t,e){const a=await fetch(`/_editor/api/linters/fix/${t}/${e}`,{method:"POST"});if(!a.ok)throw new Error("Failed to fix");return S.refetch(),a.json()}}const y=new Ep,S=k(async()=>(await y.check()).map(t=>new jp(t)));class kp{constructor(t,e){s(this,"name");s(this,"label");s(this,"ruleName");this.name=t.name,this.label=t.label,this.ruleName=e}async fix(){await y.fix(this.ruleName,this.name)}}class Lp{constructor(t,e){s(this,"label");s(this,"fixes");this.ruleName=e,this.label=t.label,this.fixes=t.fixes.map(a=>new kp(a,e))}}class jp{constructor(t){s(this,"name");s(this,"label");s(this,"type");s(this,"issues");this.name=t.name,this.label=t.label,this.type=t.type,this.issues=t.issues.map(e=>new Lp(e,this.name))}static get asyncComputed(){return S}static fromName(t){var a;const e=(a=S.result.value)==null?void 0:a.find(T=>T.name===t);if(!e)throw new Error(`Rule ${t} not found`);return e}}export{_p as A,jp as L,Mp as a,qp as b,wp as c,vp as d,Op as e,Hp as f,xp as g,Wp as h};
|
|
2
|
-
//# sourceMappingURL=linters.3c5f0c83.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{h as n}from"./router.1324a1a9.js";import"./jwt-decode.esm.992666e9.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="18fdb173-10fd-46b9-9834-c5e7a7a955f2",t._sentryDebugIdIdentifier="sentry-dbid-18fdb173-10fd-46b9-9834-c5e7a7a955f2")}catch{}})();class i{async create(e){return n.post(`organizations/${e.organizationId}/members`,{email:e.email,teams:e.teams})}async delete(e){return n.delete(`organizations/${e.organizationId}/members/${e.authorId}`)}async list(e){return n.get(`organizations/${e}/members`)}async get(e,r){return n.get(`organizations/${e}/members/${r}`)}async update(e,r,a){return n.patch(`organizations/${e}/members/${r}`,a)}}export{i as M};
|
|
2
|
-
//# sourceMappingURL=member.6b2b3438.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{y as n,z as r,B as o,C as c,P as d,D as p,E as m,F as u,G as s,H as f,I as b,J as g,K as y}from"./jwt-decode.esm.992666e9.js";import{a as l,b as i}from"./router.55c0ff56.js";import{s as w}from"./workspaceStore.4f0c433f.js";import{_ as h}from"./App.vue_vue_type_style_index_0_lang.efd9d3fa.js";import"./userStore.9e7a540a.js";import"./url.f490879d.js";import"./colorHelpers.d4f3f275.js";import"./PlayerConfigProvider.2acd3a77.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="b4aaa133-663c-4b5c-82a8-285e4278d0a8",t._sentryDebugIdIdentifier="sentry-dbid-b4aaa133-663c-4b5c-82a8-285e4278d0a8")}catch{}})();class I{static init(){setInterval(()=>{fetch("/_healthcheck").catch(()=>{})},20*1e3)}}(async()=>{await w();const t=await l(),a=n(),e=r({render:()=>f(h)});o.init(),c(e,i,t),I.init(),e.use(i),e.use(a),e.use(d),e.mount("#app"),e.component("VSelect",p),e.component("Markdown",m),e.component("Message",u),s(e,b),s(e,g),s(e,y)})();
|
|
2
|
-
//# sourceMappingURL=player.5b7eaa25.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import"./jwt-decode.esm.992666e9.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="36d928a6-2db5-4d4d-976f-24d00cf8f58f",e._sentryDebugIdIdentifier="sentry-dbid-36d928a6-2db5-4d4d-976f-24d00cf8f58f")}catch{}})();const l=1e3,s=e=>{let n=null;return{startPolling:()=>{const t=async()=>{var d;try{!document.hidden&&!e.keepPollingOnOutOfFocus&&await e.task()}finally{n=setTimeout(t,(d=e.interval)!=null?d:l)}};t()},endPolling:()=>{n&&clearTimeout(n)}}};export{s as u};
|
|
2
|
-
//# sourceMappingURL=polling.88a266b3.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{i as s}from"./url.f490879d.js";import"./jwt-decode.esm.992666e9.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="d6fae0a7-e0ba-4c32-8412-af39d14c2c19",e._sentryDebugIdIdentifier="sentry-dbid-d6fae0a7-e0ba-4c32-8412-af39d14c2c19")}catch{}})();function c(e){return e.startsWith("/")?e.slice(1):e}function f(e,r,n={}){if(s(r)){const a=new URL(r),t=new URLSearchParams(n),i=new URLSearchParams(a.search),o=new URLSearchParams([...i,...t]);return a.search=o.toString(),{action:"REPLACE_LOCAL_HREF",newHref:a.toString()}}else{const a=r.replace(/\/$/,"");if(e==="player")return{action:"GOTO_FORM_PLAYER",path:c(a),queryParams:n};if(e==="editor")return{action:"GOTO_FORM_EDITOR",path:c(a),queryParams:n};if(e==="preview")return{action:"GOTO_FORM_PLAYER",path:c(a),queryParams:n};throw new Error(`Invalid routing ${e}`)}}async function w(e,r,n,a={}){const t=f(e,n,a);switch(t.action){case"REPLACE_LOCAL_HREF":window.location.href=t.newHref;break;case"GOTO_FORM_EDITOR":await r.push({name:"formEditor",params:{formPath:t.path},query:t.queryParams});break;case"GOTO_FORM_PLAYER":await r.push({name:e==="preview"?"formPreview":"formPlayer",params:{formPath:t.path},query:t.queryParams});break;default:throw new Error("Invalid routing")}}export{w as r};
|
|
2
|
-
//# sourceMappingURL=redirect.2fa4f8cf.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{f as h,e7 as m,eI as S,eJ as I,d as _,o as c,a as l,u,h as $}from"./jwt-decode.esm.992666e9.js";import{L as x}from"./LoadingOutlined.ee72932a.js";import{h as d}from"./router.1324a1a9.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]="b4a27839-0b16-4820-b70e-3f07f31f0db0",r._sentryDebugIdIdentifier="sentry-dbid-b4a27839-0b16-4820-b70e-3f07f31f0db0")}catch{}})();var P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm192 472c0 4.4-3.6 8-8 8H328c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h368c4.4 0 8 3.6 8 8v48z"}}]},name:"minus-circle",theme:"filled"};const F=P;function w(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},n=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(t).filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable}))),n.forEach(function(s){k(r,s,t[s])})}return r}function k(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var b=function(e,t){var n=w({},e,t.attrs);return h(m,w({},n,{icon:S}),null)};b.displayName="CheckCircleFilled";b.inheritAttrs=!1;const E=b;function j(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},n=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(t).filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable}))),n.forEach(function(s){A(r,s,t[s])})}return r}function A(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var y=function(e,t){var n=j({},e,t.attrs);return h(m,j({},n,{icon:I}),null)};y.displayName="CloseCircleFilled";y.inheritAttrs=!1;const D=y;function v(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},n=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(t).filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable}))),n.forEach(function(s){M(r,s,t[s])})}return r}function M(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var C=function(e,t){var n=v({},e,t.attrs);return h(m,v({},n,{icon:F}),null)};C.displayName="MinusCircleFilled";C.inheritAttrs=!1;const L=C,B=_({__name:"ExecutionStatusIcon",props:{status:{}},setup(r){return(e,t)=>e.status==="finished"?(c(),l(u(E),{key:0,style:{color:"#33b891"}})):e.status==="failed"?(c(),l(u(D),{key:1,style:{color:"#fa675c"}})):e.status==="abandoned"||e.status==="lock-failed"?(c(),l(u(L),{key:2,style:{color:"#f69220"}})):e.status==="running"?(c(),l(u(x),{key:3})):$("",!0)}}),z=["running","lock-failed","failed","finished","abandoned"];class f{constructor(e){this.dto=e}static from(e){return new f(e)}get entries(){return this.dto.sort((e,t)=>e.sequence-t.sequence).filter(e=>e.event!=="form-message")}}class g{constructor(e){this.dto=e}static from(e){return new g(e)}get id(){return this.dto.id}get shortId(){return this.dto.id.slice(0,8)}get createdAt(){return new Date(this.dto.createdAt)}get updatedAt(){return new Date(this.dto.updatedAt)}get status(){return this.dto.status}get context(){return this.dto.context}get buildId(){var e;return(e=this.dto.buildId)!=null?e:""}get stageId(){return this.dto.stageId}get duration_seconds(){return this.status==="running"?"-":`${(this.updatedAt.getTime()-this.createdAt.getTime())/1e3} s`}get stageRunId(){return this.dto.stageRunId}get projectId(){return this.dto.projectId}}class V{async list({projectId:e,...t}){var p,a;const n={...t,offset:(p=t.offset)==null?void 0:p.toString(),limit:(a=t.limit)==null?void 0:a.toString()};Object.keys(n).forEach(o=>n[o]===void 0&&delete n[o]);const s=await d.get(`projects/${e}/executions`,n);return{executions:s.executions.map(o=>g.from(o)),totalCount:s.totalCount}}async fetchLogs(e,t){const n=await d.get(`projects/${e}/executions/${t}/logs`);return f.from(n)}async fetchThreadData(e,t){return(await d.get(`projects/${e}/executions/${t}/thread-data`)).response}async getExecutionTasks(e,t){return await d.get(`projects/${e}/executions/${t}/tasks`)}async fetchStages(){throw new Error("Method not implemented.")}}class G{async list(e){var o,O;const t={...e,offset:(o=e.offset)==null?void 0:o.toString(),limit:(O=e.limit)==null?void 0:O.toString()};Object.keys(t).forEach(i=>t[i]===void 0&&delete t[i]);const n=Object.fromEntries(Object.entries(t!=null?t:{}).filter(([,i])=>i!=null)),s=Object.keys(n).length>0?`?${new URLSearchParams(n).toString()}`:"",a=await(await fetch(`/_editor/api/executions${s}`)).json();return{executions:a.executions.map(i=>g.from(i)),totalCount:a.totalCount}}async fetchLogs(e,t){const s=await(await fetch(`/_editor/api/logs/${t}`)).json();return f.from(s)}async fetchThreadData(){return{}}async getExecutionTasks(e,t){return await(await fetch(`/_editor/api/executions/${t}/tasks`)).json()}async fetchStages(){return await(await fetch("/_editor/api/executions/stages")).json()}}export{E as C,G as L,V as R,B as _,z as e};
|
|
2
|
-
//# sourceMappingURL=repository.9d5310b6.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{s,t as d,v as t,x as m}from"./jwt-decode.esm.992666e9.js";import{a as u}from"./workspaceStore.4f0c433f.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="92959372-c055-4bdf-8a9a-5f2c9d38d807",e._sentryDebugIdIdentifier="sentry-dbid-92959372-c055-4bdf-8a9a-5f2c9d38d807")}catch{}})();const b=async()=>{try{const e=await fetch("/_editor/api/workspace/version");return e.ok&&(await e.json()).version||"078cc30f42162e0b57cd92c259a90bf299f25aec"}catch(e){return console.error("Failed to fetch Abstra version:",e),"078cc30f42162e0b57cd92c259a90bf299f25aec"}},p=[{path:"/oidc-login-callback",name:"oidcLoginCallback",component:()=>t(()=>import("./OidcLoginCallback.df2bdeb0.js"),["assets/OidcLoginCallback.df2bdeb0.js","assets/workspaceStore.4f0c433f.js","assets/jwt-decode.esm.992666e9.js","assets/jwt-decode.9f7a5511.css","assets/userStore.9e7a540a.js","assets/url.f490879d.js","assets/colorHelpers.d4f3f275.js"]),meta:{allowUnauthenticated:!0}},{path:"/oidc-logout-callback",name:"oidcLogoutCallback",component:()=>t(()=>import("./OidcLogoutCallback.2ba5316d.js"),["assets/OidcLogoutCallback.2ba5316d.js","assets/workspaceStore.4f0c433f.js","assets/jwt-decode.esm.992666e9.js","assets/jwt-decode.9f7a5511.css","assets/userStore.9e7a540a.js","assets/url.f490879d.js","assets/colorHelpers.d4f3f275.js"]),meta:{allowUnauthenticated:!0}},{path:"/login",name:"playerLogin",component:()=>t(()=>import("./Login.0b618d09.js"),["assets/Login.0b618d09.js","assets/Login.vue_vue_type_script_setup_true_lang.a92a80d0.js","assets/jwt-decode.esm.992666e9.js","assets/jwt-decode.9f7a5511.css","assets/workspaceStore.4f0c433f.js","assets/userStore.9e7a540a.js","assets/url.f490879d.js","assets/colorHelpers.d4f3f275.js","assets/CircularLoading.3e4ddd6d.js","assets/CircularLoading.a8fe2dc6.css","assets/Logo.83b476a4.js","assets/Logo.b7d81119.css","assets/string.f6a7565f.js","assets/index.3ff1c0be.js","assets/Login.75d13f6c.css","assets/Login.3b76812d.css"]),meta:{allowUnauthenticated:!0}},{path:"/",name:"main",component:()=>t(()=>import("./Main.88719eb3.js"),["assets/Main.88719eb3.js","assets/PlayerNavbar.13876ce7.js","assets/userStore.9e7a540a.js","assets/jwt-decode.esm.992666e9.js","assets/jwt-decode.9f7a5511.css","assets/workspaceStore.4f0c433f.js","assets/url.f490879d.js","assets/colorHelpers.d4f3f275.js","assets/metadata.cfad5458.js","assets/PhUserList.vue.3791cb59.js","assets/PhWebhooksLogo.vue.fe81fb65.js","assets/LoadingOutlined.ee72932a.js","assets/PhSignOut.vue.d00d3657.js","assets/index.9e0166fe.js","assets/PlayerNavbar.77209eae.css","assets/Main.201c14c9.css"]),redirect:{name:"main"},children:[{path:"",name:"playerHome",component:()=>t(()=>import("./Home.42964d5b.js"),["assets/Home.42964d5b.js","assets/metadata.cfad5458.js","assets/jwt-decode.esm.992666e9.js","assets/jwt-decode.9f7a5511.css","assets/PhUserList.vue.3791cb59.js","assets/PhWebhooksLogo.vue.fe81fb65.js","assets/Watermark.40c8c47e.js","assets/workspaceStore.4f0c433f.js","assets/userStore.9e7a540a.js","assets/url.f490879d.js","assets/colorHelpers.d4f3f275.js","assets/constants.36bf7d70.js","assets/Watermark.b0916e90.css","assets/PhArrowSquareOut.vue.ecfa9cb2.js","assets/index.3e7471f4.js","assets/Card.957a87b2.js","assets/LoadingOutlined.ee72932a.js","assets/Home.3794e8b4.css"]),meta:{title:"Home"}},{path:"_player/threads",redirect:{name:"playerThreads"}},{path:"error/:status",name:"error",component:()=>t(()=>import("./Error.a81122c4.js"),["assets/Error.a81122c4.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang.32a17b0c.js","assets/Logo.83b476a4.js","assets/jwt-decode.esm.992666e9.js","assets/jwt-decode.9f7a5511.css","assets/Logo.b7d81119.css","assets/constants.36bf7d70.js","assets/workspaceStore.4f0c433f.js","assets/userStore.9e7a540a.js","assets/url.f490879d.js","assets/colorHelpers.d4f3f275.js","assets/Card.957a87b2.js","assets/Error.ef2624eb.css"]),meta:{allowUnauthenticated:!0}},{path:":path(.*)*",name:"form",component:()=>t(()=>import("./Form.bfea5673.js"),["assets/Form.bfea5673.js","assets/userStore.9e7a540a.js","assets/jwt-decode.esm.992666e9.js","assets/jwt-decode.9f7a5511.css","assets/FormRunner.8bbe841e.js","assets/Login.vue_vue_type_script_setup_true_lang.a92a80d0.js","assets/workspaceStore.4f0c433f.js","assets/url.f490879d.js","assets/colorHelpers.d4f3f275.js","assets/CircularLoading.3e4ddd6d.js","assets/CircularLoading.a8fe2dc6.css","assets/Logo.83b476a4.js","assets/Logo.b7d81119.css","assets/string.f6a7565f.js","assets/index.3ff1c0be.js","assets/Login.75d13f6c.css","assets/Steps.f820fb18.js","assets/index.a7b8e25e.js","assets/Steps.2880920a.css","assets/Watermark.40c8c47e.js","assets/constants.36bf7d70.js","assets/Watermark.b0916e90.css","assets/FormRunner.46f6426d.css","assets/redirect.2fa4f8cf.js","assets/asyncComputed.1b787534.js","assets/uuid.9161765c.js","assets/Form.7493bc0a.css"]),meta:{hideLogin:!0}}]}],o=s({history:d("/"),routes:p,scrollBehavior(e){if(e.hash)return{el:e.hash}}}),l=e=>async(a,r)=>{if(m(a,r),a.meta.allowUnauthenticated)return;const n=await u(a.path),{redirect:c,...i}=a.query;switch(n.status){case"ALLOWED":break;case"UNAUTHORIZED":await e.push({name:"playerLogin",query:{...i,redirect:c||a.path},params:a.params});break;case"NOT_FOUND":await e.push({name:"error",params:{status:"404"}});break;default:await e.push({name:"error",params:{status:"403"}})}};o.beforeEach(l(o));export{b as a,o as b,l as g,p as r};
|
|
2
|
-
//# sourceMappingURL=router.55c0ff56.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{L as d}from"./jwt-decode.esm.992666e9.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="ae9516eb-89b3-4a03-9f8a-62f2c2ac8497",e._sentryDebugIdIdentifier="sentry-dbid-ae9516eb-89b3-4a03-9f8a-62f2c2ac8497")}catch{}})();function p(e){return d.string().email().safeParse(e).success}function w(e){return e.charAt(0).toUpperCase()+e.slice(1)}function h(e,r,n=!1,a=!0,s=!1,t=!0){const o=(a?e.toLocaleLowerCase():e).normalize("NFD").replace(/[\u0300-\u036f]/g,""),f=`a-zA-Z0-9${s?"/":""}${t?"-":""}`,c=new RegExp(`[^${f}]`,"g"),l=o.replace(c,"_"),u=n?l:l.replace(/_+/g,"_");return r?u:u.replace(/_$/,"")}function b(e){var t;const n=e.toLocaleLowerCase().trim().normalize("NFD").replace(/[\u0300-\u036f]/g,""),a=/[a-z0-9]+/g,s=n.match(a);return(t=s==null?void 0:s.join("-"))!=null?t:""}function m(e,r){if(e.length===0||r.length===0)return!1;const n=e.toLowerCase(),a=r.toLowerCase();return n.split("").reduce((t,i)=>{var f;if(t===!1)return!1;const o=(f=t[t.length-1])!=null?f:null;if(o===null){const c=a.indexOf(i);return c===-1?!1:[c]}else{const l=a.slice(o+1).indexOf(i);return l===-1?!1:[...t,o+1+l]}},[])}export{h as a,w as c,m as f,p as i,b as n};
|
|
2
|
-
//# sourceMappingURL=string.f6a7565f.js.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
var B=Object.defineProperty;var z=(o,t,e)=>t in o?B(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e;var p=(o,t,e)=>(z(o,typeof t!="symbol"?t+"":t,e),e);import{h as E}from"./router.1324a1a9.js";import{r as P,c as G,em as V,ae as q,w as F}from"./jwt-decode.esm.992666e9.js";import"./linters.3c5f0c83.js";import{A as C}from"./record.87ef3b68.js";import{u as K}from"./polling.88a266b3.js";import{c as Q}from"./string.f6a7565f.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[t]="9faa5a50-4c81-4105-a6bf-567024e967ec",o._sentryDebugIdIdentifier="sentry-dbid-9faa5a50-4c81-4105-a6bf-567024e967ec")}catch{}})();class W{async list(){return await(await fetch("/_editor/api/forms")).json()}async create(t,e,r,s){return await(await fetch("/_editor/api/forms",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:t,file:e,position:r,id:s})})).json()}async get(t){try{return await(await fetch(`/_editor/api/forms/${t}`)).json()}catch{return null}}async update(t,e){return await(await fetch(`/_editor/api/forms/${t}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json()}async delete(t,e){const r=e?"?remove_file=true":"",s=`/_editor/api/forms/${t}`+r;await fetch(s,{method:"DELETE",headers:{"Content-Type":"application/json"}})}async duplicate(t){return await(await fetch(`/_editor/api/forms/${t}/duplicate`,{method:"POST"})).json()}}const w=new W;class y{constructor(t){p(this,"record");this.record=C.create(w,t)}static async list(){return(await w.list()).map(e=>new y(e))}static async create(t,e,r,s){const i=await w.create(t,e,r,s);return new y(i)}static async get(t){const e=await w.get(t);return e?new y(e):null}get id(){return this.record.get("id")}get type(){return"form"}get allowRestart(){return this.record.get("allow_restart")}set allowRestart(t){this.record.set("allow_restart",t)}get file(){return this.record.get("file")}set file(t){this.record.set("file",t)}get autoStart(){return this.record.get("auto_start")}set autoStart(t){this.record.set("auto_start",t)}get endMessage(){return this.record.get("end_message")}set endMessage(t){this.record.set("end_message",t)}get errorMessage(){return this.record.get("error_message")}set errorMessage(t){this.record.set("error_message",t)}get path(){return this.record.get("path")}set path(t){this.record.set("path",t)}get restartButtonText(){return this.record.get("restart_button_text")}set restartButtonText(t){this.record.set("restart_button_text",t)}get startButtonText(){return this.record.get("start_button_text")}set startButtonText(t){this.record.set("start_button_text",t)}get startMessage(){return this.record.get("start_message")}set startMessage(t){this.record.set("start_message",t)}get timeoutMessage(){return this.record.get("timeout_message")}set timeoutMessage(t){this.record.set("timeout_message",t)}get notificationTrigger(){return new Proxy(this.record.get("notification_trigger"),{set:(t,e,r)=>(this.record.set("notification_trigger",{...t,[e]:r}),!0)})}set notificationTrigger(t){this.record.set("notification_trigger",t)}get(t){return this.record.get(t)}set(t,e){this.record.set(t,e)}get title(){return this.record.get("title")}set title(t){this.record.set("title",t)}get codeContent(){return this.record.get("code_content")}set codeContent(t){this.record.set("code_content",t)}get welcomeTitle(){return this.record.get("welcome_title")}set welcomeTitle(t){this.record.set("welcome_title",t)}async save(t){const e=this.codeContent;await this.record.save(t),this.record.updateInitialState("code_content",e)}onUpdate(t){this.record.pubsub.subscribe("update",t)}hasChanges(t){return this.record.hasChanges(t)}hasChangesDeep(t){return this.record.hasChangesDeep(t)}getInitialState(t){return this.record.getInitialState(t)}updateInitialState(t,e){this.record.updateInitialState(t,e)}async delete(t){await w.delete(this.id,t)}async duplicate(){const t=await w.duplicate(this.id);return new y(t)}makeRunnerData(t){return{...t.makeRunnerData(),id:this.id,isLocal:!0,path:this.path,title:this.title,isInitial:this.isInitial,runtimeType:"form",autoStart:this.autoStart,endMessage:this.endMessage,errorMessage:this.errorMessage,allowRestart:this.allowRestart,welcomeTitle:this.welcomeTitle,startMessage:this.startMessage,timeoutMessage:this.timeoutMessage,startButtonText:this.startButtonText,restartButtonText:this.restartButtonText}}get position(){const[t,e]=this.record.get("workflow_position");return{x:t,y:e}}get isInitial(){return this.record.get("is_initial")}static from(t){return new y(t)}}class X{async list(){return await(await fetch("/_editor/api/hooks")).json()}async create(t,e,r,s){return await(await fetch("/_editor/api/hooks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:t,file:e,position:r,id:s})})).json()}async get(t){try{return await(await fetch(`/_editor/api/hooks/${t}`)).json()}catch{return null}}async update(t,e){return await(await fetch(`/_editor/api/hooks/${t}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json()}async delete(t,e){const r=e?"?remove_file=true":"",s=`/_editor/api/hooks/${t}`+r;await fetch(s,{method:"DELETE",headers:{"Content-Type":"application/json"}})}async run(t,e){const r=new URLSearchParams(e.query),s=await fetch(`/_editor/api/hooks/${t}/run?${r.toString()}`,{method:e.method,headers:{"Content-Type":"application/json",...e.headers},body:e.method==="GET"?void 0:e.body}),{status:i,headers:d,body:u}=await s.json();return{status:i,headers:d,body:u}}}const f=new X;class S{constructor(t){p(this,"record");this.record=C.create(f,t)}static async list(){return(await f.list()).map(e=>new S(e))}static async create(t,e,r,s){const i=await f.create(t,e,r,s);return new S(i)}static async get(t){const e=await f.get(t);return e?new S(e):null}async delete(t){await f.delete(this.id,t)}async duplicate(){return this}async save(t){const e=this.codeContent;await this.record.save(t),this.record.updateInitialState("code_content",e)}onUpdate(t){this.record.pubsub.subscribe("update",t)}hasChanges(t){return this.record.hasChanges(t)}getInitialState(t){return this.record.getInitialState(t)}updateInitialState(t,e){this.record.updateInitialState(t,e)}get id(){return this.record.get("id")}get type(){return"hook"}get path(){return this.record.get("path")}set path(t){this.record.set("path",t)}get title(){return this.record.get("title")}set title(t){this.record.set("title",t)}get codeContent(){return this.record.get("code_content")}set codeContent(t){this.record.set("code_content",t)}get file(){return this.record.get("file")}set file(t){this.record.set("file",t)}async run(t){return f.run(this.id,t)}get position(){const[t,e]=this.record.get("workflow_position");return{x:t,y:e}}get isInitial(){return this.record.get("is_initial")}static from(t){return new S(t)}}class Y{async list(){return await(await fetch("/_editor/api/jobs")).json()}async create(t,e,r,s){return await(await fetch("/_editor/api/jobs",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:t,file:e,position:r,id:s})})).json()}async get(t){try{return await(await fetch(`/_editor/api/jobs/${t}`)).json()}catch{return null}}async update(t,e){return await(await fetch(`/_editor/api/jobs/${t}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json()}async delete(t,e){const r=e?"?remove_file=true":"",s=`/_editor/api/jobs/${t}`+r;await fetch(s,{method:"DELETE",headers:{"Content-Type":"application/json"}})}async run(t){return(await fetch(`/_editor/api/jobs/${t}/run`,{method:"POST",headers:{"Content-Type":"application/json"}})).ok}}const m=new Y;class b{constructor(t){p(this,"record");p(this,"isInitial",!0);this.record=C.create(m,t)}static async list(){return(await m.list()).map(e=>new b(e))}static async create(t,e,r,s){const i=await m.create(t,e,r,s);return new b(i)}static async get(t){const e=await m.get(t);return e?new b(e):null}async delete(t){await m.delete(this.id,t)}async duplicate(){return this}async save(t){const e=this.codeContent;await this.record.save(t),this.record.updateInitialState("code_content",e)}onUpdate(t){this.record.pubsub.subscribe("update",t)}hasChanges(t){return this.record.hasChanges(t)}getInitialState(t){return this.record.getInitialState(t)}updateInitialState(t,e){this.record.updateInitialState(t,e)}get schedule(){return this.record.get("schedule")}set schedule(t){this.record.set("schedule",t)}get type(){return"job"}get title(){return this.record.get("title")}set title(t){this.record.set("title",t)}get codeContent(){return this.record.get("code_content")}set codeContent(t){this.record.set("code_content",t)}get file(){return this.record.get("file")}set file(t){this.record.set("file",t)}get id(){return this.record.get("id")}async run(){return m.run(this.id)}get position(){const[t,e]=this.record.get("workflow_position");return{x:t,y:e}}static from(t){return new b(t)}hasChangesDeep(t){return this.record.hasChangesDeep(t)}}class Z{async list(){return await(await fetch("/_editor/api/scripts")).json()}async create(t,e,r,s){return await(await fetch("/_editor/api/scripts",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:t,file:e,position:r,id:s})})).json()}async get(t){try{return await(await fetch(`/_editor/api/scripts/${t}`)).json()}catch{return null}}async update(t,e){return await(await fetch(`/_editor/api/scripts/${t}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json()}async delete(t,e){const r=e?"?remove_file=true":"",s=`/_editor/api/scripts/${t}`+r;await fetch(s,{method:"DELETE",headers:{"Content-Type":"application/json"}})}async run(t,e){return(await fetch(`/_editor/api/scripts/${t}/run`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({task_id:e})})).ok}}const T=new Z;class I{constructor(t){p(this,"record");this.record=C.create(T,t)}static async list(){return(await T.list()).map(e=>new I(e))}static async create(t,e,r,s){const i=await T.create(t,e,r,s);return new I(i)}static async get(t){const e=await T.get(t);return e?new I(e):null}async delete(t){await T.delete(this.id,t)}async duplicate(){return this}async save(t){const e=this.codeContent;await this.record.save(t),this.record.updateInitialState("code_content",e)}onUpdate(t){this.record.pubsub.subscribe("update",t)}hasChanges(t){return this.record.hasChanges(t)}getInitialState(t){return this.record.getInitialState(t)}updateInitialState(t,e){this.record.updateInitialState(t,e)}get id(){return this.record.get("id")}get codeContent(){return this.record.get("code_content")}set codeContent(t){this.record.set("code_content",t)}get title(){return this.record.get("title")}set title(t){this.record.set("title",t)}get type(){return"tasklet"}get file(){return this.record.get("file")}set file(t){this.record.set("file",t)}get path(){return this.record.get("path")}set path(t){this.record.set("path",t)}async run(t){return T.run(this.id,t)}get position(){const[t,e]=this.record.get("workflow_position");return{x:t,y:e}}get isInitial(){return!1}static from(t){return new I(t)}}class ct{async createTask(t,e,r){return fetch("/_editor/api/tasks",{method:"POST",body:JSON.stringify({name:t,payload:r,stage_id:e}),headers:{"Content-Type":"application/json"}}).then(s=>s.json())}async getAllTasks(t,e){const r={offset:t.currentIndex*t.pageSize,limit:t.pageSize,filter:{stage:e.stage,status:e.status,startDate:e.dateRange?e.dateRange[0]:void 0,endDate:e.dateRange?e.dateRange[1]:void 0}};return fetch("/_editor/api/tasks/list",{method:"POST",body:JSON.stringify(r),headers:{"Content-Type":"application/json"}}).then(s=>s.json())}async getStageTasks(t){return fetch(`/_editor/api/tasks/${t}`).then(e=>e.json())}async getSentStageTasks(t){return fetch(`/_editor/api/tasks/${t}/sent`).then(e=>e.json())}async updateTaskStatus(t,e){return fetch(`/_editor/api/tasks/${t}/status`,{method:"PUT",body:JSON.stringify({status:e}),headers:{"Content-Type":"application/json"}}).then(r=>r.json())}async clearAllTasks(){return fetch("/_editor/api/tasks/clear",{method:"DELETE"}).then(t=>t.json())}}class dt{constructor(t){p(this,"projectId");this.projectId=t}async createTask(t,e,r){return await E.post(`projects/${this.projectId}/tasks`,{name:t,stageId:e,payload:r})}async getAllTasks(t,e){const r={offset:(t.currentIndex*t.pageSize).toString(),limit:t.pageSize.toString(),stageId:e.stage,status:e.status,startDate:e.dateRange?e.dateRange[0]:void 0,endDate:e.dateRange?e.dateRange[1]:void 0};return Object.keys(r).forEach(i=>r[i]===void 0&&delete r[i]),await E.get(`projects/${this.projectId}/tasks`,r)}async getStageTasks(t){throw new Error("Method not implemented.")}async getSentStageTasks(t){throw new Error("Method not implemented.")}async updateTaskStatus(t,e){throw new Error("Method not implemented.")}async fetchStages(){throw new Error("Method not implemented.")}async fetchStatuses(){throw new Error("Method not implemented.")}async clearAllTasks(){throw new Error("Method not implemented.")}}function H({api:o,fetchTasks:t}){const e=P({state:"idle"}),r=()=>{e.value={state:"idle"}},s=()=>{e.value={state:"creating",name:"My task",payloadCode:`{
|
|
2
|
-
"key": "value"
|
|
3
|
-
}`}},i=async u=>{const c=e.value;if(c.state!=="creating")throw new Error("Payload is required to create a task");if(!d.value)return;const h=JSON.parse(c.payloadCode),k=await o.createTask(c.name,u,h);return await t(),r(),k},d=G(()=>{const u=e.value;if(u.state!=="creating")return!1;try{const c=JSON.parse(u.payloadCode);return V.exports.isObject(c)}catch{return!1}});return{createTask:i,creatingTaskState:e,cancelCreatingTask:r,startCreatingTask:s,isPayloadValid:d}}const v=["pink","orange","green","blue","purple","red","cyan","magenta","volcano","gold"],lt=({api:o,poll:t,stageId:e,stages:r})=>{const s=q({tasks:[],sentTasks:[],colorMap:new Map,pagination:{currentIndex:0,pageSize:10,totalCount:0},filters:{stage:void 0,status:void 0,dateRange:void 0},filterOptions:{stages:[],statuses:["pending","started","completed"].map(n=>({label:Q(n),value:n}))}}),i=[{name:"setToPending",label:"Set to pending",handler:()=>{s.tasks.filter(a=>a.checked).map(a=>a.id).forEach(a=>j(a))}},{name:"setToCompleted",label:"Set to completed",handler:()=>{s.tasks.filter(a=>a.checked).map(a=>a.id).forEach(a=>x(a))}},{name:"duplicate",label:"Duplicate",handler:()=>{s.tasks.filter(a=>a.checked).forEach(async a=>{await o.createTask(a.type,a.targetStageId,a.payload),c()})}}],d=P(["pending"]),u=n=>{const a=s.tasks.findIndex(g=>g.id===n.id);a!==-1?s.tasks[a]=n:s.tasks.unshift(n)},c=async()=>{const n=e?await o.getStageTasks(e):await o.getAllTasks(s.pagination,s.filters);s.tasks=n.tasks.map(a=>({key:a.id,id:a.id,type:a.type,status:a.status,targetStageId:a.targetStageId,targetStageTitle:a.targetStageTitle,targetStageType:a.targetStageType,sourceStageTitle:a.sourceStageTitle,sourceStageType:a.sourceStageType,created:{at:new Date(a.created.at).toString(),byExecutionId:a.created.byExecutionId,byStageId:a.created.byStageId},locked:a.locked?{at:new Date(a.locked.at).toString(),byExecutionId:a.locked.byExecutionId,byStageId:a.locked.byStageId}:null,completed:a.completed?{at:new Date(a.completed.at).toString(),byExecutionId:a.completed.byExecutionId,byStageId:a.completed.byStageId}:null,payload:a.payload,checked:!1})),s.pagination.totalCount=n.totalCount},h=async()=>{if(!e)return[];const n=await o.getSentStageTasks(e);s.sentTasks=n.tasks.map(a=>({key:a.id,id:a.id,type:a.type,status:a.status,targetStageId:a.targetStageId,targetStageTitle:a.targetStageTitle,targetStageType:a.targetStageType,sourceStageTitle:a.sourceStageTitle,sourceStageType:a.sourceStageType,created:{at:new Date(a.created.at).toString(),byExecutionId:a.created.byExecutionId,byStageId:a.created.byStageId},locked:a.locked?{at:new Date(a.locked.at).toString(),byExecutionId:a.locked.byExecutionId,byStageId:a.locked.byStageId}:null,completed:a.completed?{at:new Date(a.completed.at).toString(),byExecutionId:a.completed.byExecutionId,byStageId:a.completed.byStageId}:null,payload:a.payload}))},k=()=>{var g;let n=0;s.tasks.concat((g=s.sentTasks)!=null?g:[]).forEach(_=>{s.colorMap.has(_.type)||(s.colorMap.set(_.type,v[n]),n=(n+1)%v.length)})};F(s.filters,async()=>{await Promise.all([c(),h()]),k()});const O=async()=>{await Promise.all([c(),h()]),k()},{startPolling:D,endPolling:A}=K({task:O,interval:15e3}),$=async()=>{if(await Promise.all([c(),h()]),k(),r===null){const n=Promise.all([y.list(),S.list(),b.list(),I.list()]).then(([a,g,_,l])=>[...a,...g,..._,...l]);s.filterOptions.stages=(await n).map(a=>({label:a.title,value:a.id}))}else s.filterOptions.stages=r.map(n=>({label:n.stageTitle,value:n.id}));t&&D()},R=()=>{t&&A()},j=async n=>{await o.updateTaskStatus(n,"pending"),c()},x=async n=>{await o.updateTaskStatus(n,"completed"),c()},M=n=>{s.tasks=s.tasks.map(a=>(a.id===n&&(a.checked=!a.checked),a))},N=()=>{const n=[],a=s.tasks.filter(l=>l.checked);return a.length===0?[]:(n.push("duplicate"),a.every(l=>l.status==="pending")&&n.push("setToCompleted"),a.every(l=>l.status==="completed")&&n.push("setToPending"),i.filter(l=>n.includes(l.name)))},J=async()=>{await o.clearAllTasks(),c(),h()},U=()=>[{title:"Type",dataIndex:"type",key:"type",align:"center"},{title:"Payload",dataIndex:"payload",key:"payload",align:"center",width:"20%"},{title:"Status",dataIndex:"status",key:"status",align:"center",filterMode:"menu"},{title:"Stage",dataIndex:"targetStageTitle",key:"targetStageTitle",align:"center"},{title:"Created at",dataIndex:"createdAt",key:"createdAt",align:"center"},{title:"Completed at",dataIndex:"completedAt",key:"completedAt",align:"center"},{key:"actions",dataIndex:"actions",align:"center"}],L=H({api:o,fetchTasks:c});return{setup:$,tearDown:R,state:s,getColumns:U,collapseValue:d,setToPending:j,setToCompleted:x,fetchTasks:c,fetchSentTasks:h,checkTask:M,getPossibleActions:N,clearAllTasks:J,insertOrUpdate:u,...L}};export{y as F,S as H,b as J,ct as L,dt as R,I as S,lt as T};
|
|
4
|
-
//# sourceMappingURL=tasksController.22584849.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import"./jwt-decode.esm.992666e9.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="718e634d-6651-4dfe-9798-cbea7d8d6d18",e._sentryDebugIdIdentifier="sentry-dbid-718e634d-6651-4dfe-9798-cbea7d8d6d18")}catch{}})();const c=e=>{try{return new URL(e),!0}catch{return!1}},o=(e,r)=>{if(!Object.keys(r).length)return e;const t=new URL(e),n=new URLSearchParams(t.search);return Object.entries(r).forEach(([s,d])=>{t.searchParams.delete(s),n.set(s,d)}),`${t.origin}${t.pathname}?${n.toString()}`};export{c as i,o as m};
|
|
2
|
-
//# sourceMappingURL=url.f490879d.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{q as f,O as v,L as b,r as w,c as n,Q as m}from"./jwt-decode.esm.992666e9.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="889fb28f-90b3-4987-96b4-98d36e00a5cc",t._sentryDebugIdIdentifier="sentry-dbid-889fb28f-90b3-4987-96b4-98d36e00a5cc")}catch{}})();const p=2*60*60,y=t=>{try{const e=m(t);if(!e.exp)throw Error("expired jwt");return{email:e.email,expiresInSeconds:e.exp*1e3}}catch{console.warn("Invalid JWT")}return null},g=f("user",()=>{const t=new v(b.string(),"auth:jwt"),e=w(null),s=()=>{e.value=null,t.remove()},o=r=>{t.set(r),e.value=r},u=()=>{e.value=t.get()},l=n(()=>e.value?{Authorization:`Bearer ${e.value}`}:{}),c=n(()=>e.value?["default",`base64url.bearer.authorization.${e.value}`]:[]),a=n(()=>e.value?y(e.value):null),i=n(()=>{var r;return(r=a.value)==null?void 0:r.email}),d=()=>a.value?a.value.expiresInSeconds-Date.now()>p:!1;return u(),{jwt:e,email:i,saveJWT:o,removeJWT:s,isJWTValid:d,authHeaders:l,wsAuthHeaders:c}});export{g as u};
|
|
2
|
-
//# sourceMappingURL=userStore.9e7a540a.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import"./jwt-decode.esm.992666e9.js";(function(){try{var x=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(x._sentryDebugIds=x._sentryDebugIds||{},x._sentryDebugIds[e]="176e2ab4-5e27-4c4d-947c-19a334344170",x._sentryDebugIdIdentifier="sentry-dbid-176e2ab4-5e27-4c4d-947c-19a334344170")}catch{}})();const d=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(x){const e=Math.random()*16|0;return(x=="x"?e:e&3|8).toString(16)});export{d as u};
|
|
2
|
-
//# sourceMappingURL=uuid.9161765c.js.map
|
|
File without changes
|
|
File without changes
|
|
File without changes
|