abstra 3.24.2__py3-none-any.whl → 3.24.4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (245) hide show
  1. abstra/ai.py +2 -0
  2. {abstra-3.24.2.dist-info → abstra-3.24.4.dist-info}/METADATA +1 -1
  3. {abstra-3.24.2.dist-info → abstra-3.24.4.dist-info}/RECORD +193 -190
  4. abstra_internals/contracts_generated.py +3737 -2560
  5. abstra_internals/controllers/main.py +62 -0
  6. abstra_internals/controllers/workflows.py +42 -0
  7. abstra_internals/interface/sdk/ai.py +69 -0
  8. abstra_internals/repositories/git/native.py +92 -5
  9. abstra_internals/repositories/git/types.py +10 -0
  10. abstra_internals/repositories/linter/rules/env_in_bundle.py +2 -0
  11. abstra_internals/repositories/project/json_migrations/__init__.py +2 -0
  12. abstra_internals/repositories/project/json_migrations/migration_016.py +17 -0
  13. abstra_internals/repositories/project/json_migrations/migration_016_test.py +141 -0
  14. abstra_internals/repositories/project/project.py +63 -18
  15. abstra_internals/repositories/project/project_test.py +279 -0
  16. abstra_internals/server/routes/mcp.py +1 -0
  17. abstra_internals/services/fs.py +311 -32
  18. abstra_internals/services/fs_test.py +28 -5
  19. abstra_internals/utils/file.py +7 -3
  20. abstra_internals/utils/fs_cache.py +173 -0
  21. abstra_statics/dist/assets/{AbstraButton.vue_vue_type_script_setup_true_lang.a3ba2a31.js → AbstraButton.vue_vue_type_script_setup_true_lang.779f608b.js} +2 -2
  22. abstra_statics/dist/assets/{AbstraLogo.vue_vue_type_script_setup_true_lang.b1a71740.js → AbstraLogo.vue_vue_type_script_setup_true_lang.9c4020b5.js} +2 -2
  23. abstra_statics/dist/assets/{ApiKeys.dafa1dc2.js → ApiKeys.fbd3ff63.js} +2 -2
  24. abstra_statics/dist/assets/App.cdc99dd8.js +2 -0
  25. abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.c5b57972.js +2 -0
  26. abstra_statics/dist/assets/BaseLayout.c2cb2f91.js +2 -0
  27. abstra_statics/dist/assets/Billing.f53186a3.js +2 -0
  28. abstra_statics/dist/assets/{Breadcrumb.8a82fa01.js → Breadcrumb.1a138bb1.js} +2 -2
  29. abstra_statics/dist/assets/{Builds.c3fd9633.js → Builds.f3c7442c.js} +2 -2
  30. abstra_statics/dist/assets/{Card.38a860a4.js → Card.0899e9af.js} +2 -2
  31. abstra_statics/dist/assets/{CircularLoading.217756fb.js → CircularLoading.9f9e733d.js} +2 -2
  32. abstra_statics/dist/assets/CloseCircleOutlined.36d9f25b.js +2 -0
  33. abstra_statics/dist/assets/{ConnectorsView.121898a9.js → ConnectorsView.9d99a93b.js} +2 -2
  34. abstra_statics/dist/assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.7061772f.js +2 -0
  35. abstra_statics/dist/assets/ContentLayout.da1fff81.js +2 -0
  36. abstra_statics/dist/assets/CrudView.5b250a71.js +2 -0
  37. abstra_statics/dist/assets/{DocsButton.vue_vue_type_script_setup_true_lang.a9c8118b.js → DocsButton.vue_vue_type_script_setup_true_lang.88300c0e.js} +2 -2
  38. abstra_statics/dist/assets/{EditorLogin.fba78ce9.js → EditorLogin.440d3dc5.js} +2 -2
  39. abstra_statics/dist/assets/{EditorsView.1a9ccb13.js → EditorsView.c81d5c0a.js} +2 -2
  40. abstra_statics/dist/assets/EnvVars.688f662d.js +2 -0
  41. abstra_statics/dist/assets/{Error.5bd293cc.js → Error.8fd45945.js} +2 -2
  42. abstra_statics/dist/assets/{ExclamationCircleOutlined.5d5c3f30.js → ExclamationCircleOutlined.ea15dcd1.js} +2 -2
  43. abstra_statics/dist/assets/{Files.c4ce443f.js → Files.2ef1fd75.js} +2 -2
  44. abstra_statics/dist/assets/Form.4047a0fe.js +2 -0
  45. abstra_statics/dist/assets/Form.7d1b0423.css +1 -0
  46. abstra_statics/dist/assets/FormRunner.8d0c448a.js +2 -0
  47. abstra_statics/dist/assets/Home.586b0b6c.js +2 -0
  48. abstra_statics/dist/assets/{Home.4eff6ce9.js → Home.c4610516.js} +2 -2
  49. abstra_statics/dist/assets/LoadingContainer.12120ff7.js +2 -0
  50. abstra_statics/dist/assets/LoadingOutlined.3c83d190.js +2 -0
  51. abstra_statics/dist/assets/{Login.ecec1ff2.js → Login.2d19f80c.js} +2 -2
  52. abstra_statics/dist/assets/Login.de9c56a5.js +2 -0
  53. abstra_statics/dist/assets/{Login.vue_vue_type_script_setup_true_lang.ada1c6c9.js → Login.vue_vue_type_script_setup_true_lang.8d4054f1.js} +2 -2
  54. abstra_statics/dist/assets/Logo.3f68eae2.js +2 -0
  55. abstra_statics/dist/assets/{Logs.c1f01b05.js → Logs.1f1770c9.js} +2 -2
  56. abstra_statics/dist/assets/LogsController.61f8e22d.css +1 -0
  57. abstra_statics/dist/assets/LogsController.e88bddfb.js +2 -0
  58. abstra_statics/dist/assets/Main.a79ded11.js +2 -0
  59. abstra_statics/dist/assets/MockForm.025d99f9.css +1 -0
  60. abstra_statics/dist/assets/{MockForm.9b7a0df3.js → MockForm.aa5ad3bb.js} +2 -2
  61. abstra_statics/dist/assets/Navbar.2529c5ae.js +2 -0
  62. abstra_statics/dist/assets/NewEditor.2603174c.js +8 -0
  63. abstra_statics/dist/assets/{NewEditor.e3cfeb2c.css → NewEditor.5ebf7c09.css} +1 -1
  64. abstra_statics/dist/assets/OidcLoginCallback.7ed0c484.js +2 -0
  65. abstra_statics/dist/assets/OidcLogoutCallback.7303c2ab.js +2 -0
  66. abstra_statics/dist/assets/{OmniChat.c3de8733.js → OmniChat.3d03d97a.js} +2 -2
  67. abstra_statics/dist/assets/{OnboardingView.6cda1bc5.js → OnboardingView.4b747af0.js} +2 -2
  68. abstra_statics/dist/assets/{Organization.c36206b7.js → Organization.aab680aa.js} +2 -2
  69. abstra_statics/dist/assets/Organizations.2340795a.js +2 -0
  70. abstra_statics/dist/assets/{PhArrowCounterClockwise.vue.9e570570.js → PhArrowCounterClockwise.vue.d9dd0137.js} +2 -2
  71. abstra_statics/dist/assets/{PhArrowSquareOut.vue.bcbdb6e7.js → PhArrowSquareOut.vue.93df49c1.js} +2 -2
  72. abstra_statics/dist/assets/{PhClockCounterClockwise.vue.4bd682d8.js → PhClockCounterClockwise.vue.f1f419a1.js} +2 -2
  73. abstra_statics/dist/assets/{PhCopy.vue.29934bc2.js → PhCopy.vue.e59eaa52.js} +2 -2
  74. abstra_statics/dist/assets/PhCopySimple.vue.11467aaf.js +2 -0
  75. abstra_statics/dist/assets/{PhCube.vue.0fe2c514.js → PhCube.vue.e29a6bae.js} +2 -2
  76. abstra_statics/dist/assets/{PhDatabase.vue.fdfb515c.js → PhDatabase.vue.e22926ed.js} +2 -2
  77. abstra_statics/dist/assets/{PhDotsThreeVertical.vue.7a0e0638.js → PhDotsThreeVertical.vue.fff5caa8.js} +2 -2
  78. abstra_statics/dist/assets/{PhDownloadSimple.vue.f1245c40.js → PhDownloadSimple.vue.e11671c2.js} +2 -2
  79. abstra_statics/dist/assets/{PhFileArrowUp.vue.c292afe1.js → PhFileArrowUp.vue.9f743e50.js} +2 -2
  80. abstra_statics/dist/assets/{PhFilePlus.vue.c39ff1a9.js → PhFilePlus.vue.b2e51e09.js} +2 -2
  81. abstra_statics/dist/assets/{PhFolderPlus.vue.bc40161e.js → PhFolderPlus.vue.8742ea4d.js} +2 -2
  82. abstra_statics/dist/assets/{PhGear.vue.0feed515.js → PhGear.vue.1c3eb148.js} +2 -2
  83. abstra_statics/dist/assets/{PhKey.vue.15a9e64e.js → PhKey.vue.8702106e.js} +2 -2
  84. abstra_statics/dist/assets/{PhPencil.vue.a7219766.js → PhPencil.vue.74eafe52.js} +2 -2
  85. abstra_statics/dist/assets/{PhPencilSimple.vue.15a2b403.js → PhPencilSimple.vue.87355169.js} +2 -2
  86. abstra_statics/dist/assets/{PhRocket.vue.7155b91f.js → PhRocket.vue.d4a6ad6a.js} +2 -2
  87. abstra_statics/dist/assets/{PhSignOut.vue.2af17bd7.js → PhSignOut.vue.83e5f761.js} +2 -2
  88. abstra_statics/dist/assets/{PhSparkle.vue.c7f06cac.js → PhSparkle.vue.d2009d46.js} +2 -2
  89. abstra_statics/dist/assets/{PhTranslate.vue.2ce651a6.js → PhTranslate.vue.bec980b1.js} +2 -2
  90. abstra_statics/dist/assets/{PhUsersThree.vue.2942df75.js → PhUsersThree.vue.dd23f9fb.js} +2 -2
  91. abstra_statics/dist/assets/{PhWarningCircle.vue.05a40bc4.js → PhWarningCircle.vue.27414f28.js} +2 -2
  92. abstra_statics/dist/assets/{PhWebhooksLogo.vue.e4752384.js → PhWebhooksLogo.vue.ff084558.js} +2 -2
  93. abstra_statics/dist/assets/{PlayerConfigProvider.00af5968.js → PlayerConfigProvider.ca40f824.js} +2 -2
  94. abstra_statics/dist/assets/{PlayerNavbar.117f184b.js → PlayerNavbar.393e1a48.js} +2 -2
  95. abstra_statics/dist/assets/{Project.66111161.js → Project.72b53439.js} +2 -2
  96. abstra_statics/dist/assets/{ProjectLogin.d9bb1f86.js → ProjectLogin.26c92806.js} +2 -2
  97. abstra_statics/dist/assets/ProjectSettings.70e7668b.js +2 -0
  98. abstra_statics/dist/assets/ProjectsView.83667357.js +2 -0
  99. abstra_statics/dist/assets/{SaveButton.c3f2a4bb.js → SaveButton.56d96f71.js} +2 -2
  100. abstra_statics/dist/assets/{ScrollArea.vue_vue_type_script_setup_true_lang.cb5567cd.js → ScrollArea.vue_vue_type_script_setup_true_lang.a29d9bc5.js} +2 -2
  101. abstra_statics/dist/assets/{Sidebar.1c4e35be.js → Sidebar.fd8a9f17.js} +2 -2
  102. abstra_statics/dist/assets/{Sql.8d31ec23.js → Sql.92e57cd8.js} +3 -3
  103. abstra_statics/dist/assets/Steps.8d0493a8.js +2 -0
  104. abstra_statics/dist/assets/TableCard.75d256c8.js +2 -0
  105. abstra_statics/dist/assets/{TableEditor.ba7a8b6a.js → TableEditor.de62b5ae.js} +2 -2
  106. abstra_statics/dist/assets/{Tables.113960f2.js → Tables.f33c00ab.js} +2 -2
  107. abstra_statics/dist/assets/{TablesDiagram.8e6d1e89.js → TablesDiagram.621aac9c.js} +3 -3
  108. abstra_statics/dist/assets/{TablesTabs.vue_vue_type_script_setup_true_lang.5cc96b0d.js → TablesTabs.vue_vue_type_script_setup_true_lang.db87820d.js} +2 -2
  109. abstra_statics/dist/assets/{Tasks.90846020.js → Tasks.e7e8affd.js} +2 -2
  110. abstra_statics/dist/assets/{UploadOutlined.518baf9a.js → UploadOutlined.76665096.js} +2 -2
  111. abstra_statics/dist/assets/{View.ded6b355.js → View.2d181255.js} +2 -2
  112. abstra_statics/dist/assets/{View.vue_vue_type_script_setup_true_lang.285b5e2c.js → View.vue_vue_type_script_setup_true_lang.c02bf815.js} +2 -2
  113. abstra_statics/dist/assets/{Watermark.5071a4b2.js → Watermark.34db0ee5.js} +2 -2
  114. abstra_statics/dist/assets/{WebEditor.18ece735.js → WebEditor.615c5ed3.js} +2 -2
  115. abstra_statics/dist/assets/WidgetPreview.d7362a8d.js +2 -0
  116. abstra_statics/dist/assets/WorkflowViewer.0a209003.css +1 -0
  117. abstra_statics/dist/assets/WorkflowViewer.e89c0824.js +2 -0
  118. abstra_statics/dist/assets/ant-design.24becb3a.js +2 -0
  119. abstra_statics/dist/assets/apiKey.846016a7.js +2 -0
  120. abstra_statics/dist/assets/asyncComputed.78dd1715.js +2 -0
  121. abstra_statics/dist/assets/{build.a8637e29.js → build.8774fc90.js} +2 -2
  122. abstra_statics/dist/assets/{colorHelpers.8ba18214.js → colorHelpers.d8c19ea3.js} +2 -2
  123. abstra_statics/dist/assets/{console.2a5ed51a.js → console.984bbe98.js} +2 -2
  124. abstra_statics/dist/assets/constants.3b7395d7.js +2 -0
  125. abstra_statics/dist/assets/contracts.generated.31740563.js +2 -0
  126. abstra_statics/dist/assets/{cssMode.6c4ccf50.js → cssMode.f4a00eca.js} +2 -2
  127. abstra_statics/dist/assets/{datetime.89495471.js → datetime.01b86df2.js} +2 -2
  128. abstra_statics/dist/assets/dayjs.26942e0e.js +2 -0
  129. abstra_statics/dist/assets/editor.a6369f16.js +2 -0
  130. abstra_statics/dist/assets/editor.main.a0763b31.js +2 -0
  131. abstra_statics/dist/assets/fetch.33e85d9b.js +2 -0
  132. abstra_statics/dist/assets/{files.8999afd5.js → files.c547743b.js} +2 -2
  133. abstra_statics/dist/assets/{folder.81ef8619.js → folder.57131245.js} +2 -2
  134. abstra_statics/dist/assets/{freemarker2.559f77f2.js → freemarker2.7a4cfae0.js} +2 -2
  135. abstra_statics/dist/assets/{handlebars.8d101b7c.js → handlebars.db4a27de.js} +2 -2
  136. abstra_statics/dist/assets/{html.b3e7d3ab.js → html.f4b3970c.js} +3 -3
  137. abstra_statics/dist/assets/{htmlMode.2305b1bb.js → htmlMode.631923d5.js} +2 -2
  138. abstra_statics/dist/assets/{index.bc97991a.js → index.0a1e5d8b.js} +2 -2
  139. abstra_statics/dist/assets/{index.da4f9d54.js → index.12c03275.js} +2 -2
  140. abstra_statics/dist/assets/{index.e5cb42a1.js → index.2141f0e8.js} +2 -2
  141. abstra_statics/dist/assets/{index.f2beb20d.js → index.2f74579e.js} +2 -2
  142. abstra_statics/dist/assets/{index.b74c262c.js → index.30fbc3f5.js} +2 -2
  143. abstra_statics/dist/assets/{index.f6171691.js → index.6f45b384.js} +5 -5
  144. abstra_statics/dist/assets/{index.d809956c.js → index.7f04c017.js} +2 -2
  145. abstra_statics/dist/assets/{index.71eb83f3.js → index.8e10d0e4.js} +2 -2
  146. abstra_statics/dist/assets/{index.90acf038.js → index.fb17f22c.js} +2 -2
  147. abstra_statics/dist/assets/{javascript.3000fc25.js → javascript.b2197abc.js} +3 -3
  148. abstra_statics/dist/assets/{jsonMode.7bbb508d.js → jsonMode.8f2810a6.js} +2 -2
  149. abstra_statics/dist/assets/{jwt-decode.c5760184.css → jwt-decode.cfe2994b.css} +1 -1
  150. abstra_statics/dist/assets/{jwt-decode.esm.c9c37cdc.js → jwt-decode.esm.5ee65524.js} +133 -99
  151. abstra_statics/dist/assets/{linters.7fec18d9.js → linters.7d520e27.js} +2 -2
  152. abstra_statics/dist/assets/{liquid.b4ac9aaf.js → liquid.d3e68b2e.js} +3 -3
  153. abstra_statics/dist/assets/member.0ebe904c.js +2 -0
  154. abstra_statics/dist/assets/{metadata.e627ddda.js → metadata.db332d21.js} +2 -2
  155. abstra_statics/dist/assets/{omniChatStore.508e8ece.js → omniChatStore.cf2158f0.js} +2 -2
  156. abstra_statics/dist/assets/{organization.cd03f9a8.js → organization.23b0aa74.js} +2 -2
  157. abstra_statics/dist/assets/{os.f08724fb.js → os.e0510e90.js} +2 -2
  158. abstra_statics/dist/assets/player.78bcc85c.js +2 -0
  159. abstra_statics/dist/assets/{plotly.min.50ebb925.js → plotly.min.f771780a.js} +2 -2
  160. abstra_statics/dist/assets/polling.5339a00f.js +2 -0
  161. abstra_statics/dist/assets/{project.9a068e8d.js → project.afe4bf99.js} +2 -2
  162. abstra_statics/dist/assets/{python.51a7c648.js → python.d8c220ed.js} +3 -3
  163. abstra_statics/dist/assets/{razor.99323f5f.js → razor.97fa5198.js} +2 -2
  164. abstra_statics/dist/assets/{record.a33d29b1.js → record.dd367e66.js} +2 -2
  165. abstra_statics/dist/assets/{redirect.42bf4f0a.js → redirect.970a0b6b.js} +2 -2
  166. abstra_statics/dist/assets/{repository.94fb77c7.js → repository.214607cb.js} +2 -2
  167. abstra_statics/dist/assets/{repository.c0d70cb2.js → repository.c874615c.js} +2 -2
  168. abstra_statics/dist/assets/{repository.5190b94f.js → repository.d889eafa.js} +2 -2
  169. abstra_statics/dist/assets/{router.a8616541.js → router.9781de48.js} +3 -3
  170. abstra_statics/dist/assets/router.e3b4de3c.js +2 -0
  171. abstra_statics/dist/assets/{string.8fab6b53.js → string.0d721ad6.js} +2 -2
  172. abstra_statics/dist/assets/{tables.2e1c934b.js → tables.45712b3f.js} +2 -2
  173. abstra_statics/dist/assets/tasksController.538cacf5.js +4 -0
  174. abstra_statics/dist/assets/{toggleHighContrast.6544a728.js → toggleHighContrast.daf44fef.js} +7 -7
  175. abstra_statics/dist/assets/{tsMode.922e04bb.js → tsMode.b785363f.js} +2 -2
  176. abstra_statics/dist/assets/{typescript.1b4f8286.js → typescript.8bb42736.js} +2 -2
  177. abstra_statics/dist/assets/url.804625c6.js +2 -0
  178. abstra_statics/dist/assets/{useCodebaseEvents.ffe057d1.js → useCodebaseEvents.e9e5d343.js} +2 -2
  179. abstra_statics/dist/assets/useTables.2441f2b4.js +2 -0
  180. abstra_statics/dist/assets/userStore.9eb65729.js +2 -0
  181. abstra_statics/dist/assets/uuid.bc394306.js +2 -0
  182. abstra_statics/dist/assets/{vue-flow-background.3e9183ec.js → vue-flow-background.a4e5e1cd.js} +2 -2
  183. abstra_statics/dist/assets/{vue-flow-core.41c647da.js → vue-flow-core.bc9175da.js} +2 -2
  184. abstra_statics/dist/assets/{vue-quill.esm-bundler.36e79a95.js → vue-quill.esm-bundler.12c58800.js} +2 -2
  185. abstra_statics/dist/assets/{workspaceStore.5a435520.js → workspaceStore.18d1ed9a.js} +2 -2
  186. abstra_statics/dist/assets/{xml.c1692f52.js → xml.1dacd023.js} +3 -3
  187. abstra_statics/dist/assets/{yaml.244444c1.js → yaml.e841ac1c.js} +3 -3
  188. abstra_statics/dist/console.html +15 -15
  189. abstra_statics/dist/editor.html +14 -14
  190. abstra_statics/dist/player.html +10 -10
  191. abstra_statics/dist/assets/App.45396b70.js +0 -2
  192. abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.db5596a1.js +0 -2
  193. abstra_statics/dist/assets/BaseLayout.135a51d9.js +0 -2
  194. abstra_statics/dist/assets/Billing.622c9155.js +0 -2
  195. abstra_statics/dist/assets/CloseCircleOutlined.4c4707d8.js +0 -2
  196. abstra_statics/dist/assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.502d779a.js +0 -2
  197. abstra_statics/dist/assets/ContentLayout.b1c94c2b.js +0 -2
  198. abstra_statics/dist/assets/CrudView.75a430a4.js +0 -2
  199. abstra_statics/dist/assets/EnvVars.d77957ea.js +0 -2
  200. abstra_statics/dist/assets/Form.7493bc0a.css +0 -1
  201. abstra_statics/dist/assets/Form.a4787001.js +0 -2
  202. abstra_statics/dist/assets/FormRunner.73650f9e.js +0 -2
  203. abstra_statics/dist/assets/Home.19a2303b.js +0 -2
  204. abstra_statics/dist/assets/LoadingContainer.97fa8f2e.js +0 -2
  205. abstra_statics/dist/assets/LoadingOutlined.e309ab16.js +0 -2
  206. abstra_statics/dist/assets/Login.632cada3.js +0 -2
  207. abstra_statics/dist/assets/Logo.d77d5637.js +0 -2
  208. abstra_statics/dist/assets/LogsController.0ff97ed4.css +0 -1
  209. abstra_statics/dist/assets/LogsController.2dceb3d3.js +0 -2
  210. abstra_statics/dist/assets/Main.44b7640e.js +0 -2
  211. abstra_statics/dist/assets/MockForm.e410c2c1.css +0 -1
  212. abstra_statics/dist/assets/Navbar.0951ed6d.js +0 -2
  213. abstra_statics/dist/assets/NewEditor.d65a400f.js +0 -8
  214. abstra_statics/dist/assets/OidcLoginCallback.66b0f38a.js +0 -2
  215. abstra_statics/dist/assets/OidcLogoutCallback.48d8429a.js +0 -2
  216. abstra_statics/dist/assets/Organizations.2b1c6c65.js +0 -2
  217. abstra_statics/dist/assets/PhCopySimple.vue.0241af8c.js +0 -2
  218. abstra_statics/dist/assets/ProjectSettings.f8c6f60a.js +0 -2
  219. abstra_statics/dist/assets/ProjectsView.32f6ccff.js +0 -2
  220. abstra_statics/dist/assets/Steps.687763a5.js +0 -2
  221. abstra_statics/dist/assets/TableCard.8c99a870.js +0 -2
  222. abstra_statics/dist/assets/WidgetPreview.88a4f27f.js +0 -2
  223. abstra_statics/dist/assets/WorkflowViewer.3b6aee8e.css +0 -1
  224. abstra_statics/dist/assets/WorkflowViewer.778c401d.js +0 -2
  225. abstra_statics/dist/assets/ant-design.4efc9ccd.js +0 -2
  226. abstra_statics/dist/assets/apiKey.bd946d8c.js +0 -2
  227. abstra_statics/dist/assets/asyncComputed.7bc1692e.js +0 -2
  228. abstra_statics/dist/assets/constants.534f67bc.js +0 -2
  229. abstra_statics/dist/assets/contracts.generated.8ad36e63.js +0 -2
  230. abstra_statics/dist/assets/dayjs.304f38f8.js +0 -2
  231. abstra_statics/dist/assets/editor.c1a1bd33.js +0 -2
  232. abstra_statics/dist/assets/editor.main.84e237cf.js +0 -2
  233. abstra_statics/dist/assets/fetch.452c58e5.js +0 -2
  234. abstra_statics/dist/assets/member.3c12efee.js +0 -2
  235. abstra_statics/dist/assets/player.7362caf4.js +0 -2
  236. abstra_statics/dist/assets/polling.4db5ee9a.js +0 -2
  237. abstra_statics/dist/assets/router.4168cc71.js +0 -2
  238. abstra_statics/dist/assets/tasksController.1feffcfe.js +0 -4
  239. abstra_statics/dist/assets/url.9e033350.js +0 -2
  240. abstra_statics/dist/assets/useTables.5fffa3f1.js +0 -2
  241. abstra_statics/dist/assets/userStore.d962fba4.js +0 -2
  242. abstra_statics/dist/assets/uuid.8581bc03.js +0 -2
  243. {abstra-3.24.2.dist-info → abstra-3.24.4.dist-info}/WHEEL +0 -0
  244. {abstra-3.24.2.dist-info → abstra-3.24.4.dist-info}/entry_points.txt +0 -0
  245. {abstra-3.24.2.dist-info → abstra-3.24.4.dist-info}/top_level.txt +0 -0
@@ -1,2 +0,0 @@
1
- import{O as l}from"./workspaceStore.5a435520.js";import{d as c,U as u,ac as f,f as n,b as o,u as t,o as _,g as r,t as i,i as s,A as p,df as g}from"./jwt-decode.esm.c9c37cdc.js";import"./userStore.d962fba4.js";import"./url.9e033350.js";import"./colorHelpers.8ba18214.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]="6c3d7938-943f-4294-89a6-74a7a3ed3740",e._sentryDebugIdIdentifier="sentry-dbid-6c3d7938-943f-4294-89a6-74a7a3ed3740")}catch{}})();const v=c({__name:"OidcLoginCallback",setup(e){return u(async()=>{await new l().loginCallback()}),(a,d)=>(_(),f("div",null,[n(t(p),null,{default:o(()=>[r(i(t(s).translate("i18n_oidclogincallback_authenticated_title")),1)]),_:1}),n(t(g),null,{default:o(()=>[r(i(t(s).translate("i18n_oidclogincallback_close_window_message")),1)]),_:1})]))}});export{v as default};
2
- //# sourceMappingURL=OidcLoginCallback.66b0f38a.js.map
@@ -1,2 +0,0 @@
1
- import{O as l}from"./workspaceStore.5a435520.js";import{d,U as u,ac as f,f as o,b as n,u as a,o as _,g as r,t as c,i as s,A as b,df as p}from"./jwt-decode.esm.c9c37cdc.js";import"./userStore.d962fba4.js";import"./url.9e033350.js";import"./colorHelpers.8ba18214.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]="af5c541b-839b-4cac-9c25-6b34c1c2ffb6",e._sentryDebugIdIdentifier="sentry-dbid-af5c541b-839b-4cac-9c25-6b34c1c2ffb6")}catch{}})();const v=d({__name:"OidcLogoutCallback",setup(e){return u(async()=>{await new l().logoutCallback()}),(t,i)=>(_(),f("div",null,[o(a(b),null,{default:n(()=>[r(c(a(s).translate("i18n_oidclogoutcallback_authenticated_title")),1)]),_:1}),o(a(p),null,{default:n(()=>[r(c(a(s).translate("i18n_oidclogoutcallback_close_window_message")),1)]),_:1})]))}});export{v as default};
2
- //# sourceMappingURL=OidcLogoutCallback.48d8429a.js.map
@@ -1,2 +0,0 @@
1
- import{N as C}from"./Navbar.0951ed6d.js";import{B as I}from"./BaseLayout.135a51d9.js";import{C as x}from"./ContentLayout.b1c94c2b.js";import{C as N}from"./CrudView.75a430a4.js";import{a as O}from"./asyncComputed.7bc1692e.js";import{F as B}from"./PhArrowSquareOut.vue.bcbdb6e7.js";import{G as D}from"./PhPencil.vue.a7219766.js";import{d as h,i as e,ec as F,r as R,c as E,ac as M,f as r,b as s,u as i,aY as V,o as f,a as $,cE as L,bQ as U,cD as j,h as A,M as G}from"./jwt-decode.esm.c9c37cdc.js";import"./router.a8616541.js";import{a as p}from"./organization.cd03f9a8.js";import"./tables.2e1c934b.js";import"./AbstraButton.vue_vue_type_script_setup_true_lang.a3ba2a31.js";import"./constants.534f67bc.js";import"./PhTranslate.vue.2ce651a6.js";import"./PhSignOut.vue.2af17bd7.js";import"./index.bc97991a.js";import"./index.e5cb42a1.js";import"./omniChatStore.508e8ece.js";import"./record.a33d29b1.js";import"./uuid.8581bc03.js";import"./PhCopySimple.vue.0241af8c.js";import"./PhSparkle.vue.c7f06cac.js";import"./index.f2beb20d.js";import"./Breadcrumb.8a82fa01.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.a9c8118b.js";import"./url.9e033350.js";import"./PhDotsThreeVertical.vue.7a0e0638.js";import"./index.da4f9d54.js";import"./string.8fab6b53.js";(function(){try{var l=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},m=new Error().stack;m&&(l._sentryDebugIds=l._sentryDebugIds||{},l._sentryDebugIds[m]="ffe5903d-0351-4aeb-859f-f33efc33d034",l._sentryDebugIdIdentifier="sentry-dbid-ffe5903d-0351-4aeb-859f-f33efc33d034")}catch{}})();const yt=h({__name:"Organizations",setup(l){const m=[{label:e.translate("i18n_organizations_my_organizations"),path:"/organizations"}],u=[{key:"name",label:e.translate("i18n_organizations_organization_name")}],_=F(),{loading:y,result:z,refetch:b}=O(()=>p.list()),d=({key:a})=>{_.push({name:"organization",params:{organizationId:a}})},o=R({state:"idle"});function v(a){o.value={state:"renaming",organizationId:a.id,newName:a.name}}async function c(a){if(o.value.state==="renaming"&&a){const{organizationId:t,newName:n}=o.value;await p.rename(t,n),b()}o.value={state:"idle"}}const w=async a=>{const t=await p.create(a.name);d({key:t.id})},k=E(()=>{var a,t;return{columns:[{title:e.translate("i18n_organizations_organization_name"),align:"left"},{title:e.translate("i18n_organizations_path")},{title:"",align:"right"}],rows:(t=(a=z.value)==null?void 0:a.map(n=>{var g;return{key:n.id,cells:[{type:"link",text:n.name,to:`/organizations/${encodeURIComponent(n.id)}`},{type:"text",text:(g=n.id)!=null?g:null},{type:"actions",actions:[{icon:B,label:e.translate("i18n_organizations_go_to_projects"),onClick:d},{icon:D,label:e.translate("i18n_organizations_rename"),onClick:()=>v(n)}]}]}}))!=null?t:[]}});return(a,t)=>(f(),M(V,null,[r(I,null,{navbar:s(()=>[r(C,{breadcrumb:m})]),content:s(()=>[r(x,null,{default:s(()=>[r(N,{"entity-name":"organization",loading:i(y),title:i(e).translate("i18n_organizations_my_organizations"),description:i(e).translate("i18n_organizations_description"),"create-button-text":i(e).translate("i18n_organizations_create_organization"),"empty-title":i(e).translate("i18n_organizations_empty_title"),table:k.value,fields:u,create:w},null,8,["loading","title","description","create-button-text","empty-title","table"])]),_:1})]),_:1}),r(i(G),{open:o.value.state==="renaming",title:i(e).translate("i18n_organizations_rename_organization"),onCancel:t[1]||(t[1]=n=>c(!1)),onOk:t[2]||(t[2]=n=>c(!0))},{default:s(()=>[o.value.state==="renaming"?(f(),$(i(j),{key:0,layout:"vertical"},{default:s(()=>[r(i(L),{label:i(e).translate("i18n_organizations_new_name")},{default:s(()=>[r(i(U),{value:o.value.newName,"onUpdate:value":t[0]||(t[0]=n=>o.value.newName=n)},null,8,["value"])]),_:1},8,["label"])]),_:1})):A("",!0)]),_:1},8,["open","title"])],64))}});export{yt as default};
2
- //# sourceMappingURL=Organizations.2b1c6c65.js.map
@@ -1,2 +0,0 @@
1
- import{d as m,at as n,c as i,o as t,ac as l,ae as f,h,ed as y,e as r}from"./jwt-decode.esm.c9c37cdc.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[a]="2d1c8b89-d77c-407e-a478-6d3f4f982ae3",o._sentryDebugIdIdentifier="sentry-dbid-2d1c8b89-d77c-407e-a478-6d3f4f982ae3")}catch{}})();const v=["width","height","fill","transform"],Z={key:0},w=r("path",{d:"M180,64H40A12,12,0,0,0,28,76V216a12,12,0,0,0,12,12H180a12,12,0,0,0,12-12V76A12,12,0,0,0,180,64ZM168,204H52V88H168ZM228,40V180a12,12,0,0,1-24,0V52H76a12,12,0,0,1,0-24H216A12,12,0,0,1,228,40Z"},null,-1),A=[w],M={key:1},b=r("path",{d:"M184,72V216H40V72Z",opacity:"0.2"},null,-1),k=r("path",{d:"M184,64H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H184a8,8,0,0,0,8-8V72A8,8,0,0,0,184,64Zm-8,144H48V80H176ZM224,40V184a8,8,0,0,1-16,0V48H72a8,8,0,0,1,0-16H216A8,8,0,0,1,224,40Z"},null,-1),B=[b,k],I={key:2},S=r("path",{d:"M192,72V216a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V72a8,8,0,0,1,8-8H184A8,8,0,0,1,192,72Zm24-40H72a8,8,0,0,0,0,16H208V184a8,8,0,0,0,16,0V40A8,8,0,0,0,216,32Z"},null,-1),C=[S],D={key:3},_=r("path",{d:"M184,66H40a6,6,0,0,0-6,6V216a6,6,0,0,0,6,6H184a6,6,0,0,0,6-6V72A6,6,0,0,0,184,66Zm-6,144H46V78H178ZM222,40V184a6,6,0,0,1-12,0V46H72a6,6,0,0,1,0-12H216A6,6,0,0,1,222,40Z"},null,-1),x=[_],z={key:4},N=r("path",{d:"M184,64H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H184a8,8,0,0,0,8-8V72A8,8,0,0,0,184,64Zm-8,144H48V80H176ZM224,40V184a8,8,0,0,1-16,0V48H72a8,8,0,0,1,0-16H216A8,8,0,0,1,224,40Z"},null,-1),E=[N],P={key:5},$=r("path",{d:"M184,68H40a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H184a4,4,0,0,0,4-4V72A4,4,0,0,0,184,68Zm-4,144H44V76H180ZM220,40V184a4,4,0,0,1-8,0V44H72a4,4,0,0,1,0-8H216A4,4,0,0,1,220,40Z"},null,-1),j=[$],q={name:"PhCopySimple"},G=m({...q,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const a=o,s=n("weight","regular"),u=n("size","1em"),V=n("color","currentColor"),p=n("mirrored",!1),d=i(()=>{var e;return(e=a.weight)!=null?e:s}),H=i(()=>{var e;return(e=a.size)!=null?e:u}),c=i(()=>{var e;return(e=a.color)!=null?e:V}),g=i(()=>a.mirrored!==void 0?a.mirrored?"scale(-1, 1)":void 0:p?"scale(-1, 1)":void 0);return(e,F)=>(t(),l("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:H.value,height:H.value,fill:c.value,transform:g.value},e.$attrs),[f(e.$slots,"default"),d.value==="bold"?(t(),l("g",Z,A)):d.value==="duotone"?(t(),l("g",M,B)):d.value==="fill"?(t(),l("g",I,C)):d.value==="light"?(t(),l("g",D,x)):d.value==="regular"?(t(),l("g",z,E)):d.value==="thin"?(t(),l("g",P,j)):h("",!0)],16,v))}});export{G as I};
2
- //# sourceMappingURL=PhCopySimple.vue.0241af8c.js.map
@@ -1,2 +0,0 @@
1
- import{a as T}from"./asyncComputed.7bc1692e.js";import{g}from"./router.a8616541.js";import{f as n,ee as x,f8 as B,d as y,r as E,en as F,c as b,a as N,b as i,u as e,o as S,g as d,t as c,i as l,A as C,de as V,df as m,e as h,cE as R,dj as U,bQ as $,b0 as H,cD as q,ei as M,ac as Q,h as z}from"./jwt-decode.esm.c9c37cdc.js";import{a as w}from"./project.9a068e8d.js";import"./tables.2e1c934b.js";import{S as G}from"./SaveButton.c3f2a4bb.js";import{A as J}from"./index.bc97991a.js";import"./index.da4f9d54.js";import"./record.a33d29b1.js";import"./string.8fab6b53.js";import"./ExclamationCircleOutlined.5d5c3f30.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]="b6a084ec-aec7-4663-9188-0e031a02ca49",r._sentryDebugIdIdentifier="sentry-dbid-b6a084ec-aec7-4663-9188-0e031a02ca49")}catch{}})();function j(r){for(var o=1;o<arguments.length;o++){var a=arguments[o]!=null?Object(arguments[o]):{},t=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(t=t.concat(Object.getOwnPropertySymbols(a).filter(function(u){return Object.getOwnPropertyDescriptor(a,u).enumerable}))),t.forEach(function(u){L(r,u,a[u])})}return r}function L(r,o,a){return o in r?Object.defineProperty(r,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[o]=a,r}var f=function(o,a){var t=j({},o,a.attrs);return n(x,j({},t,{icon:B}),null)};f.displayName="CopyOutlined";f.inheritAttrs=!1;const W=f,X=y({__name:"SubdomainEditor",props:{project:{}},emits:["change-subdomain"],setup(r,{emit:o}){const a=r,t=E(void 0),u=F.exports.debounce(async()=>{try{const{available:s}=await a.project.checkSubdomain();t.value=s?"available":"unavailable"}catch{t.value=void 0}},500);function p(){if(!a.project.hasChangesDeep("subdomain")){t.value=void 0;return}a.project.subdomain?(t.value="loading",u()):t.value="invalid"}const v=b(()=>t.value!=="available"||!a.project.hasChangesDeep("subdomain")),A=async()=>{await navigator.clipboard.writeText(a.project.getUrl())},O=b(()=>{switch(t.value){case"invalid":return"error";case"loading":return"validating";case"available":return"success";case"unavailable":return"error";default:return}}),k=b(()=>{switch(t.value){case"loading":return l.translate("i18n_subdomaineditor_checking");case"available":return l.translate("i18n_subdomaineditor_available");case"unavailable":return l.translate("i18n_subdomaineditor_unavailable");case"invalid":return l.translate("i18n_subdomaineditor_invalid");default:return}}),P=()=>{const s=w.formatSubdomain(a.project.subdomain);o("change-subdomain",s),p()};function D(){a.project.resetChanges(),t.value=void 0}return(s,_)=>(S(),N(e(J),{direction:"vertical"},{default:i(()=>[n(e(C),{level:2},{default:i(()=>[d(c(e(l).translate("i18n_subdomaineditor_title")),1)]),_:1}),n(e(V),null,{default:i(()=>[d(c(e(l).translate("i18n_subdomaineditor_description")),1)]),_:1}),n(e(g),null,{default:i(()=>[n(e(m),null,{default:i(()=>[d(c(e(l).translate("i18n_subdomaineditor_forms_available")),1)]),_:1}),n(e(m),{code:""},{default:i(()=>[h("span",null,c(s.project.getUrl("[PATH]")),1)]),_:1})]),_:1}),n(e(g),null,{default:i(()=>[n(e(m),null,{default:i(()=>[d(c(e(l).translate("i18n_subdomaineditor_hooks_available")),1)]),_:1}),n(e(m),{code:""},{default:i(()=>[h("span",null,c(s.project.getUrl("_hooks/[PATH]")),1)]),_:1})]),_:1}),n(e(q),null,{default:i(()=>[n(e(R),{"validate-status":O.value,help:k.value,"has-feedback":""},{default:i(()=>[n(e(U),{gap:"middle"},{default:i(()=>[n(e($),{value:s.project.subdomain,type:"text",loading:t.value==="loading",onBlur:P,onChange:_[0]||(_[0]=I=>o("change-subdomain",I.target.value))},{addonBefore:i(()=>[d("https://")]),addonAfter:i(()=>[d(".abstra.app/")]),_:1},8,["value","loading"]),n(e(H),{placement:"top",title:e(l).translate("i18n_subdomaineditor_copy")},{default:i(()=>[n(e(W),{color:"red",onClick:A})]),_:1},8,["title"])]),_:1})]),_:1},8,["validate-status","help"]),n(G,{model:s.project,disabled:v.value,onError:D},null,8,["model","disabled"])]),_:1})]),_:1}))}}),Y={key:0,class:"project-settings"},ue=y({__name:"ProjectSettings",setup(r){const a=M().params.projectId,{result:t}=T(()=>w.get(a)),u=p=>{t.value.subdomain=p};return(p,v)=>e(t)?(S(),Q("div",Y,[n(e(C),null,{default:i(()=>[d(c(e(l).translate("i18n_projectsettingsview_title")),1)]),_:1}),n(X,{project:e(t),onChangeSubdomain:u},null,8,["project"])])):z("",!0)}});export{ue as default};
2
- //# sourceMappingURL=ProjectSettings.f8c6f60a.js.map
@@ -1,2 +0,0 @@
1
- var W=Object.defineProperty;var K=(p,t,o)=>t in p?W(p,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):p[t]=o;var i=(p,t,o)=>(K(p,typeof t!="symbol"?t+"":t,o),o);import{d as J,at as N,c as C,o as c,ac as F,ae as Y,h as A,ed as X,e as I,r as k,w as ee,en as te,ei as ae,ec as re,f as r,b as l,u as e,a as j,aY as x,g as _,t as m,i as d,A as le,cI as oe,dj as P,ej as Z,eq as V,dd as ie,S as de,cC as se,er as O,cE as S,bQ as $,aI as T,cD as U,M as Q,_ as ne}from"./jwt-decode.esm.c9c37cdc.js";import{_ as g}from"./AbstraButton.vue_vue_type_script_setup_true_lang.a3ba2a31.js";import{H as B}from"./PhCube.vue.0fe2c514.js";import{G}from"./PhFilePlus.vue.c39ff1a9.js";import{a as R,G as ue}from"./PhFolderPlus.vue.bc40161e.js";import{F as ce}from"./PhGear.vue.0feed515.js";import{G as fe}from"./PhPencilSimple.vue.15a2b403.js";import{F as ve}from"./PhUsersThree.vue.2942df75.js";import{l as he,A as me,e as pe,f as _e,C as je}from"./router.a8616541.js";import{M as we}from"./member.3c12efee.js";import{a as ge,P as Fe}from"./project.9a068e8d.js";import"./tables.2e1c934b.js";import{F as ye}from"./folder.81ef8619.js";import{a as q}from"./ant-design.4efc9ccd.js";import{a as be}from"./organization.cd03f9a8.js";import"./index.da4f9d54.js";import"./record.a33d29b1.js";import"./string.8fab6b53.js";(function(){try{var p=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(p._sentryDebugIds=p._sentryDebugIds||{},p._sentryDebugIds[t]="5413d544-d131-4f8d-9416-7fbccc279554",p._sentryDebugIdIdentifier="sentry-dbid-5413d544-d131-4f8d-9416-7fbccc279554")}catch{}})();const Pe=["width","height","fill","transform"],Ie={key:0},Ce=I("path",{d:"M248.23,112.31A20,20,0,0,0,232,104H220V88a20,20,0,0,0-20-20H132L105.34,48a20.12,20.12,0,0,0-12-4H40A20,20,0,0,0,20,64V208a12,12,0,0,0,12,12H211.1a12,12,0,0,0,11.33-8l28.49-81.47.06-.17A20,20,0,0,0,248.23,112.31ZM92,68l28.8,21.6A12,12,0,0,0,128,92h68v12H69.77a20,20,0,0,0-18.94,13.58L44,137.15V68ZM202.59,196H48.89l23.72-68H226.37Z"},null,-1),Me=[Ce],ke={key:1},He=I("path",{d:"M208,88v24H69.77a8,8,0,0,0-7.59,5.47L32,208V64a8,8,0,0,1,8-8H93.33a8,8,0,0,1,4.8,1.6L128,80h72A8,8,0,0,1,208,88Z",opacity:"0.2"},null,-1),Ae=I("path",{d:"M245,110.64A16,16,0,0,0,232,104H216V88a16,16,0,0,0-16-16H130.67L102.94,51.2a16.14,16.14,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V208a8,8,0,0,0,8,8H211.1a8,8,0,0,0,7.59-5.47l28.49-85.47A16.05,16.05,0,0,0,245,110.64ZM93.34,64,123.2,86.4A8,8,0,0,0,128,88h72v16H69.77a16,16,0,0,0-15.18,10.94L40,158.7V64Zm112,136H43.1l26.67-80H232Z"},null,-1),Le=[He,Ae],Ne={key:2},Ve=I("path",{d:"M245,110.64A16,16,0,0,0,232,104H216V88a16,16,0,0,0-16-16H130.67L102.94,51.2a16.14,16.14,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V208h0a8,8,0,0,0,8,8H211.1a8,8,0,0,0,7.59-5.47l28.49-85.47A16.05,16.05,0,0,0,245,110.64ZM93.34,64,123.2,86.4A8,8,0,0,0,128,88h72v16H69.77a16,16,0,0,0-15.18,10.94L40,158.7V64Z"},null,-1),Se=[Ve],ze={key:3},xe=I("path",{d:"M243.36,111.81A14,14,0,0,0,232,106H214V88a14,14,0,0,0-14-14H130L101.74,52.8a14.06,14.06,0,0,0-8.4-2.8H40A14,14,0,0,0,26,64V208a6,6,0,0,0,6,6H211.1a6,6,0,0,0,5.69-4.1l28.49-85.47A14,14,0,0,0,243.36,111.81ZM40,62H93.34a2,2,0,0,1,1.2.4L124.4,84.8A6,6,0,0,0,128,86h72a2,2,0,0,1,2,2v18H69.77a14,14,0,0,0-13.28,9.57L38,171V64A2,2,0,0,1,40,62Zm193.9,58.63L206.78,202H40.33l27.54-82.63a2,2,0,0,1,1.9-1.37H232a2,2,0,0,1,1.9,2.63Z"},null,-1),Ee=[xe],De={key:4},Ze=I("path",{d:"M245,110.64A16,16,0,0,0,232,104H216V88a16,16,0,0,0-16-16H130.67L102.94,51.2a16.14,16.14,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V208h0a8,8,0,0,0,8,8H211.1a8,8,0,0,0,7.59-5.47l28.49-85.47A16.05,16.05,0,0,0,245,110.64ZM93.34,64,123.2,86.4A8,8,0,0,0,128,88h72v16H69.77a16,16,0,0,0-15.18,10.94L40,158.7V64Zm112,136H43.1l26.67-80H232Z"},null,-1),Oe=[Ze],$e={key:5},Te=I("path",{d:"M241.72,113a11.88,11.88,0,0,0-9.73-5H212V88a12,12,0,0,0-12-12H129.33l-28.8-21.6a12.05,12.05,0,0,0-7.2-2.4H40A12,12,0,0,0,28,64V208a4,4,0,0,0,4,4H211.09a4,4,0,0,0,3.79-2.74l28.49-85.47A11.86,11.86,0,0,0,241.72,113ZM40,60H93.33a4,4,0,0,1,2.4.8L125.6,83.2a4,4,0,0,0,2.4.8h72a4,4,0,0,1,4,4v20H69.76a12,12,0,0,0-11.38,8.21L36,183.35V64A4,4,0,0,1,40,60Zm195.78,61.26L208.2,204H37.55L66,118.74A4,4,0,0,1,69.76,116H232a4,4,0,0,1,3.79,5.26Z"},null,-1),Ue=[Te],Qe={name:"PhFolderOpen"},Be=J({...Qe,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(p){const t=p,o=N("weight","regular"),s=N("size","1em"),n=N("color","currentColor"),y=N("mirrored",!1),b=C(()=>{var f;return(f=t.weight)!=null?f:o}),M=C(()=>{var f;return(f=t.size)!=null?f:s}),a=C(()=>{var f;return(f=t.color)!=null?f:n}),w=C(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:y?"scale(-1, 1)":void 0);return(f,v)=>(c(),F("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:M.value,height:M.value,fill:a.value,transform:w.value},f.$attrs),[Y(f.$slots,"default"),b.value==="bold"?(c(),F("g",Ie,Me)):b.value==="duotone"?(c(),F("g",ke,Le)):b.value==="fill"?(c(),F("g",Ne,Se)):b.value==="light"?(c(),F("g",ze,Ee)):b.value==="regular"?(c(),F("g",De,Oe)):b.value==="thin"?(c(),F("g",$e,Ue)):A("",!0)],16,Pe))}});class Ge{constructor(t){i(this,"fetchedState",k(null));i(this,"activeFolderIds");i(this,"draftFolder",k(null));i(this,"draftProject",k(null));i(this,"searchQuery",k(""));i(this,"isDraftProjectValid",C(()=>this.validateDraftProject()));i(this,"isDraftFolderValid",C(()=>this.validateDraftFolder()));i(this,"isDraftFolderUnique",k(!0));i(this,"memberOptions",C(()=>this.getMemberOptions()));i(this,"folderOptions",C(()=>this.getFolderOptions()));i(this,"organizationId");i(this,"currentUserEmail");i(this,"handlers");i(this,"apis");i(this,"deleteProject",async()=>{!this.draftProject.value||this.draftProject.value.mode!=="edit"||!await q("Are you sure you want to delete this project? All data will be lost.")||(this.draftProject.value={...this.draftProject.value,buttonLoading:"delete"},await this.apis.project.delete(this.draftProject.value.id),await this.refetchState())});i(this,"deleteFolder",async()=>{if(!this.draftFolder.value||this.draftFolder.value.mode!=="edit")throw new Error("[PROJECTS_CONTROLLER] Invalid state deleting folder");this.getFolderProjects(this.draftFolder.value.id).length>0||!await q("Are you sure you want to delete this empty folder?",{okText:"Delete",cancelText:"Cancel"})||(this.draftFolder.value={...this.draftFolder.value,buttonLoading:"delete"},await this.apis.folder.delete(this.organizationId,this.draftFolder.value.id),await this.refetchState())});i(this,"duplicateProject",async({key:t})=>{var s;const o=(s=this.fetchedState.value)==null?void 0:s.projects.find(n=>n.id===t);if(o){const n=await o.duplicate();this.handlers.navigateToProject(n.id)}});i(this,"openEditFolderModal",t=>{var s;!((s=this.fetchedState.value)!=null&&s.projects.filter(n=>n.folderId===t.id).map(n=>n.id))||(this.draftFolder.value={currentName:t.name,modalTitle:`${t.name} - Settings`,id:t.id,mode:"edit",newName:t.name,newMemberIds:[...t.memberIds],currentMemberIds:t.memberIds,buttonLoading:null})});i(this,"openCreateFolderModal",()=>{var t;if(!this.fetchedState.value)throw new Error("[PROJECTS_CONTROLLER] Invalid state opening create folder modal");this.draftFolder.value={currentName:"",mode:"create",currentMemberIds:[],modalTitle:"Create Folder",newName:"",newMemberIds:[(t=this.fetchedState.value.currentMember)==null?void 0:t.id].filter(Boolean),buttonLoading:null}});i(this,"openCreateProjectModal",(t="")=>{this.draftProject.value={currentName:"",mode:"create",currentFolderId:"",modalTitle:"Create Project",newName:"",newFolderId:t,buttonLoading:null}});i(this,"openEditProjectModal",t=>{this.draftProject.value={id:t.id,mode:"edit",currentName:t.name,currentFolderId:t.folderId,modalTitle:`Edit Project: ${t.name}`,newName:t.name,newFolderId:t.folderId,buttonLoading:null}});i(this,"saveFolder",async()=>{if(this.isDraftFolderUnique.value=!0,!this.draftFolder.value)return;if(!await this.apis.folder.checkNameAvailability(this.organizationId,this.draftFolder.value.newName)){this.isDraftFolderUnique.value=!1;return}this.draftFolder.value={...this.draftFolder.value,buttonLoading:"save"},this.draftFolder.value.mode==="edit"?await this.apis.folder.update(this.organizationId,{id:this.draftFolder.value.id,name:this.draftFolder.value.newName,memberIds:this.draftFolder.value.newMemberIds,organizationId:this.organizationId}):this.draftFolder.value.mode==="create"&&await this.apis.folder.create({organizationId:this.organizationId,name:this.draftFolder.value.newName,memberIds:this.draftFolder.value.newMemberIds}),await this.refetchState()});i(this,"saveProject",async()=>{!this.draftProject.value||(this.draftProject.value={...this.draftProject.value,buttonLoading:"save"},this.draftProject.value.mode==="edit"?await this.apis.project.update(this.draftProject.value.id,{name:this.draftProject.value.newName,folderId:this.draftProject.value.newFolderId}):this.draftProject.value.mode==="create"&&await this.apis.project.create({name:this.draftProject.value.newName,folderId:this.draftProject.value.newFolderId,organizationId:this.organizationId}),await this.refetchState())});i(this,"closeModals",()=>{this.draftFolder.value=null,this.draftProject.value=null,this.activeFolderIds.value=[]});i(this,"validateDraftFolder",()=>{if(!this.draftFolder.value)return!1;const t=this.draftFolder.value.newName!==this.draftFolder.value.currentName,o=this.draftFolder.value.newName.trim().length>0,s=!te.exports.isEqual(this.draftFolder.value.newMemberIds,this.draftFolder.value.currentMemberIds),n=this.draftFolder.value.newMemberIds.length>0;return this.draftFolder.value.mode==="edit"?t&&o||s&&n:o&&n});i(this,"validateDraftProject",()=>{if(!this.draftProject.value)return!1;const t=!!this.draftProject.value.newFolderId,o=this.draftProject.value.newName.trim().length>0,s=this.draftProject.value.newName!==this.draftProject.value.currentName,n=this.draftProject.value.newFolderId!==this.draftProject.value.currentFolderId;return this.draftProject.value.mode==="edit"?s&&o||n:t&&o});i(this,"getMemberOptions",()=>{var t;return(t=this.fetchedState.value)==null?void 0:t.members.map(o=>{var s,n;return{label:o.email,value:o.id,disabled:o.id===((n=(s=this.fetchedState.value)==null?void 0:s.currentMember)==null?void 0:n.id)}}).sort((o,s)=>o.label.localeCompare(s.label))});i(this,"getFolderOptions",()=>{var t;return(t=this.fetchedState.value)==null?void 0:t.folders.map(o=>({label:o.name,value:o.id}))});i(this,"getFolderProjects",t=>{var o;return(o=this.fetchedState.value)==null?void 0:o.projects.filter(s=>s.folderId===t&&(!this.searchQuery.value.trim()||s.name.toLowerCase().includes(this.searchQuery.value.toLowerCase())))});this.organizationId=t.organizationId,this.currentUserEmail=t.currentUserEmail,this.handlers=t.handlers,this.apis=t.apis,t.routeHash.startsWith("#")?this.activeFolderIds=k([t.routeHash.slice(1)]):this.activeFolderIds=k([])}async refetchState(t=!0){var M,a;t&&this.closeModals(),this.fetchedState.value=null;const[o,s,n,y]=await Promise.all([ge.list(this.organizationId),be.get(this.organizationId),this.apis.member.list(this.organizationId),this.apis.folder.list(this.organizationId)]),b=(M=n.find(w=>w.email===this.currentUserEmail))!=null?M:null;y.length===1&&((a=this.activeFolderIds.value)==null||a.includes(y[0].id)),this.fetchedState.value={projects:o.sort((w,f)=>w.name.localeCompare(f.name)),organization:s,members:n,folders:y.sort((w,f)=>w.name.localeCompare(f.name)),currentMember:b},ee(this.searchQuery,w=>{w.trim()?this.activeFolderIds.value=this.listFolders().map(f=>f.id):this.activeFolderIds.value=[]})}listFolders(){var t,o,s,n;return this.searchQuery.value.trim()?(o=(t=this.fetchedState.value)==null?void 0:t.folders.filter(y=>this.getFolderProjects(y.id).length>0))!=null?o:[]:(n=(s=this.fetchedState.value)==null?void 0:s.folders)!=null?n:[]}}const Re={key:0},qe={key:1},Je=J({__name:"ProjectsView",setup(p){var w;const o=ae().params.organizationId,s=re(),n={navigateToProject:f=>s.push({name:"project",params:{organizationId:o,projectId:f}})},y=(w=he.getAuthor())==null?void 0:w.claims.email;if(!y)throw new Error("User not logged in");const b=(f,v)=>v.label.toLowerCase().includes(f.toLowerCase()),M={member:new we,project:new Fe,folder:new ye},a=new Ge({organizationId:o,currentUserEmail:y,handlers:n,apis:M,routeHash:location.hash});return a.refetchState(!1),(f,v)=>{var E,D;return c(),F(x,null,[r(e(le),null,{default:l(()=>[_(m(e(d).translate("i18n_projectsview_title")),1)]),_:1}),r(e(P),{style:{display:"flex","align-items":"center","justify-content":"space-between",gap:"5px",margin:"0px 0px 50px"}},{default:l(()=>[r(e(oe),{value:e(a).searchQuery.value,"onUpdate:value":v[0]||(v[0]=u=>e(a).searchQuery.value=u),placeholder:e(d).translate("i18n_projectsview_search_placeholder"),style:{width:"300px"}},null,8,["value","placeholder"]),r(g,{onClick:e(a).openCreateFolderModal},{default:l(()=>[r(e(R)),_(" "+m(e(d).translate("i18n_projectsview_create_folder")),1)]),_:1},8,["onClick"])]),_:1}),r(e(P),{vertical:"",gap:"middle",style:{"padding-bottom":"50px"}},{default:l(()=>[(c(!0),F(x,null,Z(e(a).listFolders(),u=>(c(),j(e(je),{key:u.id,"active-key":e(a).activeFolderIds.value,"onUpdate:activeKey":v[1]||(v[1]=h=>e(a).activeFolderIds.value=h)},{expandIcon:l(({isActive:h})=>[h?(c(),j(e(Be),{key:0,size:"20"})):(c(),j(e(ue),{key:1,size:"20"}))]),default:l(()=>[(c(),j(e(me),{key:u.id,header:u.name},{extra:l(()=>[r(e(P),{gap:"10"},{default:l(()=>[r(e(P),{gap:"5",align:"flex-start"},{default:l(()=>{var h;return[r(e(B),{size:"20"}),_(" "+m(e(d).translate("i18n_projectsview_projects_count",null,(h=e(a).getFolderProjects(u.id))==null?void 0:h.length)),1)]}),_:2},1024),r(e(P),{gap:"5"},{default:l(()=>[r(e(ve),{size:"20"}),_(" "+m(e(d).translate("i18n_projectsview_editors_count",null,u.memberIds.length)),1)]),_:2},1024),r(g,{size:"small",onClick:V(h=>e(a).openCreateProjectModal(u.id),["stop"])},{default:l(()=>[r(e(G)),_(" "+m(e(d).translate("i18n_projectsview_new_project")),1)]),_:2},1032,["onClick"]),r(g,{size:"small",onClick:V(h=>e(a).openEditFolderModal(u),["stop"])},{default:l(()=>[r(e(ce))]),_:2},1032,["onClick"])]),_:2},1024)]),default:l(()=>[r(e(pe),{locale:{emptyText:e(d).translate("i18n_projectsview_empty_folder")}},{default:l(()=>[(c(!0),F(x,null,Z(e(a).getFolderProjects(u.id),h=>(c(),j(e(_e),{key:h.id,type:"link",class:"project-list-item"},{default:l(()=>[r(e(B)),r(e(ie),{href:`/projects/${h.id}`},{default:l(()=>[_(m(h.name),1)]),_:2},1032,["href"]),r(g,{size:"small",style:{position:"absolute",right:"10px"},onClick:V(H=>e(a).openEditProjectModal(h),["stop"])},{default:l(()=>[r(e(fe))]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:2},1032,["locale"])]),_:2},1032,["header"]))]),_:2},1032,["active-key"]))),128))]),_:1}),e(a).fetchedState.value?e(a).listFolders().length===0?(c(),j(e(se),{key:1},{description:l(()=>[I("div",null,[e(a).searchQuery.value.trim()?(c(),F("p",Re,m(e(d).translate("i18n_projectsview_no_projects_search",null,e(a).searchQuery.value)),1)):(c(),F("p",qe,m(e(d).translate("i18n_projectsview_no_folders")),1)),I("p",null,m(e(d).translate("i18n_projectsview_click_create_folder")),1)])]),default:l(()=>[e(a).searchQuery.value.trim()?(c(),j(g,{key:0,type:"primary",onClick:v[2]||(v[2]=u=>e(a).openCreateProjectModal())},{default:l(()=>[r(e(G)),_(" "+m(e(d).translate("i18n_projectsview_create_project")),1)]),_:1})):(c(),j(g,{key:1,type:"primary",onClick:e(a).openCreateFolderModal},{default:l(()=>[r(e(R)),_(" "+m(e(d).translate("i18n_projectsview_create_folder")),1)]),_:1},8,["onClick"]))]),_:1})):A("",!0):(c(),j(e(de),{key:0,style:{width:"100%"}})),r(e(Q),{open:!!e(a).draftFolder.value,title:(E=e(a).draftFolder.value)==null?void 0:E.modalTitle,onCancel:e(a).closeModals},{footer:l(()=>{var u;return[r(e(P),{justify:((u=e(a).draftFolder.value)==null?void 0:u.mode)==="edit"?"space-between":"flex-end"},{default:l(()=>{var h,H,L;return[((h=e(a).draftFolder.value)==null?void 0:h.mode)==="edit"?(c(),j(g,{key:0,danger:"","disabled-tooltip":e(d).translate("i18n_projectsview_cannot_delete_folder"),disabled:e(a).getFolderProjects((H=e(a).draftFolder.value)==null?void 0:H.id).length>0,loading:((L=e(a).draftFolder.value)==null?void 0:L.buttonLoading)==="delete",onClick:v[5]||(v[5]=V(z=>e(a).deleteFolder(),["stop"]))},{default:l(()=>[r(e(O)),_(" "+m(e(d).translate("i18n_projectsview_delete_folder")),1)]),_:1},8,["disabled-tooltip","disabled","loading"])):A("",!0),r(e(P),{justify:"flex-end"},{default:l(()=>{var z;return[r(g,{onClick:e(a).closeModals},{default:l(()=>[_(m(e(d).translate("i18n_projectsview_cancel")),1)]),_:1},8,["onClick"]),r(g,{type:"primary",disabled:!e(a).isDraftFolderValid.value,loading:((z=e(a).draftFolder.value)==null?void 0:z.buttonLoading)==="save",onClick:e(a).saveFolder},{default:l(()=>[_(m(e(d).translate("i18n_projectsview_save")),1)]),_:1},8,["disabled","loading","onClick"])]}),_:1})]}),_:1},8,["justify"])]}),default:l(()=>[e(a).draftFolder.value?(c(),j(e(U),{key:0,layout:"vertical"},{default:l(()=>[r(e(S),{label:e(d).translate("i18n_projectsview_folder_name"),"validate-status":e(a).isDraftFolderUnique.value?"":"error",help:e(a).isDraftFolderUnique.value?"":e(d).translate("i18n_projectsview_folder_exists")},{default:l(()=>[r(e($),{value:e(a).draftFolder.value.newName,"onUpdate:value":v[3]||(v[3]=u=>e(a).draftFolder.value.newName=u)},null,8,["value"])]),_:1},8,["label","validate-status","help"]),r(e(S),{label:e(d).translate("i18n_projectsview_editors"),tooltip:e(d).translate("i18n_projectsview_editors_tooltip")},{default:l(()=>[r(e(T),{value:e(a).draftFolder.value.newMemberIds,"onUpdate:value":v[4]||(v[4]=u=>e(a).draftFolder.value.newMemberIds=u),mode:"multiple",options:e(a).memberOptions.value,"filter-option":b,placeholder:e(d).translate("i18n_projectsview_choose_editors")},null,8,["value","options","placeholder"])]),_:1},8,["label","tooltip"])]),_:1})):A("",!0)]),_:1},8,["open","title","onCancel"]),r(e(Q),{open:!!e(a).draftProject.value,title:(D=e(a).draftProject.value)==null?void 0:D.modalTitle,onCancel:e(a).closeModals},{footer:l(()=>{var u;return[r(e(P),{justify:((u=e(a).draftProject.value)==null?void 0:u.mode)==="edit"?"space-between":"flex-end"},{default:l(()=>{var h,H;return[((h=e(a).draftProject.value)==null?void 0:h.mode)==="edit"?(c(),j(g,{key:0,danger:"",loading:((H=e(a).draftProject.value)==null?void 0:H.buttonLoading)==="delete",onClick:e(a).deleteProject},{default:l(()=>[r(e(O)),_(" "+m(e(d).translate("i18n_projectsview_delete_project")),1)]),_:1},8,["loading","onClick"])):A("",!0),r(e(P),{justify:"flex-end"},{default:l(()=>{var L;return[r(g,{onClick:e(a).closeModals},{default:l(()=>[_(m(e(d).translate("i18n_projectsview_cancel")),1)]),_:1},8,["onClick"]),r(g,{disabled:!e(a).isDraftProjectValid.value,type:"primary",loading:((L=e(a).draftProject.value)==null?void 0:L.buttonLoading)==="save",onClick:e(a).saveProject},{default:l(()=>[_(m(e(d).translate("i18n_projectsview_save")),1)]),_:1},8,["disabled","loading","onClick"])]}),_:1})]}),_:1},8,["justify"])]}),default:l(()=>[e(a).draftProject.value?(c(),j(e(U),{key:0,layout:"vertical"},{default:l(()=>[r(e(S),{label:e(d).translate("i18n_projectsview_project_name")},{default:l(()=>[r(e($),{value:e(a).draftProject.value.newName,"onUpdate:value":v[6]||(v[6]=u=>e(a).draftProject.value.newName=u)},null,8,["value"])]),_:1},8,["label"]),r(e(S),{label:e(d).translate("i18n_projectsview_project_folder")},{default:l(()=>[r(e(T),{value:e(a).draftProject.value.newFolderId,"onUpdate:value":v[7]||(v[7]=u=>e(a).draftProject.value.newFolderId=u),options:e(a).folderOptions.value,placeholder:e(d).translate("i18n_projectsview_choose_folder")},null,8,["value","options","placeholder"])]),_:1},8,["label"])]),_:1})):A("",!0)]),_:1},8,["open","title","onCancel"])],64)}}});const mt=ne(Je,[["__scopeId","data-v-fa0e0303"]]);export{mt as default};
2
- //# sourceMappingURL=ProjectsView.32f6ccff.js.map
@@ -1,2 +0,0 @@
1
- import{A as o}from"./index.71eb83f3.js";import{d as r,c as a,ac as p,f as d,u as f,eh as c,h as l,o as i,_ as u}from"./jwt-decode.esm.c9c37cdc.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]="fd5a0185-658b-430f-bd75-313bcee79a58",e._sentryDebugIdIdentifier="sentry-dbid-fd5a0185-658b-430f-bd75-313bcee79a58")}catch{}})();const _=r({__name:"Steps",props:{stepsInfo:{},isPreview:{type:Boolean}},setup(e){const s=e,n=a(()=>s.stepsInfo?Array(s.stepsInfo.total).fill(null).map(()=>({label:"",description:""})):[]);return(t,m)=>t.stepsInfo?(i(),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 I=u(_,[["__scopeId","data-v-58fdd395"]]);export{I as S};
2
- //# sourceMappingURL=Steps.687763a5.js.map
@@ -1,2 +0,0 @@
1
- import{_ as x}from"./AbstraButton.vue_vue_type_script_setup_true_lang.a3ba2a31.js";import{F as H}from"./PhKey.vue.15a9e64e.js";import{G as T}from"./PhPencil.vue.a7219766.js";import{f as v,c as k}from"./vue-flow-core.41c647da.js";import{d as $,c as g,j as z,o,a as r,b as l,f as i,u as t,A as D,g as h,t as p,h as c,dj as y,ac as V,ej as A,eh as b,df as _,aY as E,_ as L}from"./jwt-decode.esm.c9c37cdc.js";import{C as F}from"./Card.38a860a4.js";(function(){try{var u=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},f=new Error().stack;f&&(u._sentryDebugIds=u._sentryDebugIds||{},u._sentryDebugIds[f]="514fecec-84fb-48e2-aad0-70e16dca2e1a",u._sentryDebugIdIdentifier="sentry-dbid-514fecec-84fb-48e2-aad0-70e16dca2e1a")}catch{}})();const K=$({__name:"TableCard",props:{table:{},projectId:{},showHandles:{type:Boolean},maxVisibleColumns:{},connectedColumns:{},highlightedColumns:{},isHighlighted:{type:Boolean},showEditButton:{type:Boolean,default:!0}},emits:["dblclick"],setup(u,{emit:f}){const a=u,m=g(()=>{var e;return(e=a.maxVisibleColumns)!=null?e:5}),w=g(()=>a.table.getColumns().slice(0,m.value)),I=g(()=>a.table.getColumns().length>m.value),j=g(()=>!a.highlightedColumns||a.highlightedColumns.length===0?!1:a.table.getColumns().slice(m.value).some(n=>{var d;return n.id&&((d=a.highlightedColumns)==null?void 0:d.includes(n.id))})),B=e=>{var n,d;return(d=(n=a.connectedColumns)==null?void 0:n.includes(e))!=null?d:!1};return(e,n)=>{const d=z("RouterLink");return o(),r(t(F),{hoverable:!0,class:b(["table-card",{"table-highlighted":e.isHighlighted}]),onDblclick:n[0]||(n[0]=s=>f("dblclick"))},{title:l(()=>[i(t(y),{align:"center",justify:"space-between"},{default:l(()=>[i(t(D),{level:5,style:{margin:"0"}},{default:l(()=>[h(p(e.table.name),1)]),_:1}),e.showEditButton?(o(),r(d,{key:0,to:`/projects/${e.projectId}/tables/${e.table.id}`},{default:l(()=>[i(x,{size:"small",type:"text"},{default:l(()=>[i(t(T),{size:16})]),_:1})]),_:1},8,["to"])):c("",!0)]),_:1})]),default:l(()=>[i(t(y),{vertical:"",gap:"small",class:"columns-list"},{default:l(()=>[(o(!0),V(E,null,A(w.value,s=>{var C;return o(),r(t(y),{key:s.id,align:"center",gap:"small",class:b(["column-row",{"column-highlighted":s.id&&((C=e.highlightedColumns)==null?void 0:C.includes(s.id))}])},{default:l(()=>[e.showHandles&&s.foreignKey?(o(),r(t(v),{key:0,id:`target-${s.id}`,type:"target",position:t(k).Left,connectable:!1},null,8,["id","position"])):c("",!0),s.primaryKey?(o(),r(t(H),{key:1,size:14,class:"key-icon"})):c("",!0),i(t(_),{strong:"",style:{flex:"1","font-size":"13px","line-height":"1"}},{default:l(()=>[h(p(s.name),1)]),_:2},1024),i(t(_),{type:"secondary",style:{"line-height":"1"}},{default:l(()=>[h(p(s.type),1)]),_:2},1024),e.showHandles&&(s.primaryKey||s.id&&B(s.id))?(o(),r(t(v),{key:2,id:`source-${s.id}`,type:"source",position:t(k).Right,connectable:!1},null,8,["id","position"])):c("",!0)]),_:2},1032,["class"])}),128)),I.value?(o(),r(t(y),{key:0,justify:"center",align:"center",style:{"padding-top":"8px"},class:b({"more-columns-highlighted":j.value})},{default:l(()=>[i(t(_),{type:"secondary",style:{"font-size":"12px"}},{default:l(()=>[h(" +"+p(e.table.getColumns().length-m.value)+" more columns ",1)]),_:1})]),_:1},8,["class"])):c("",!0)]),_:1})]),_:1},8,["class"])}}});const Y=L(K,[["__scopeId","data-v-e197befa"]]);export{Y as T};
2
- //# sourceMappingURL=TableCard.8c99a870.js.map
@@ -1,2 +0,0 @@
1
- import{d as k,r as B,U as A,o as n,a as u,b as f,f as I,g as N,t as P,eh as S,eM as C,u as y,bY as D,f0 as V,_ as h,ei as q,h as g,e as b,ac as c,ej as v,el as x,aY as w,L as E,N as L}from"./jwt-decode.esm.c9c37cdc.js";import{S as $}from"./Steps.687763a5.js";import{W as F}from"./PlayerConfigProvider.00af5968.js";import"./index.71eb83f3.js";import"./colorHelpers.8ba18214.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]="b2ab1d3b-152c-4f76-8976-8dc4a98a741e",o._sentryDebugIdIdentifier="sentry-dbid-b2ab1d3b-152c-4f76-8976-8dc4a98a741e")}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 A(()=>{l.value&&d.action.setElement(l.value)}),(r,i)=>(n(),u(y(V),null,{default:f(()=>[I(y(D),{ref_key:"element",ref:l,class:S(["next-button",r.disabled?"disabled":""]),loading:r.loading,disabled:r.disabled,onClick:i[0]||(i[0]=p=>t("click")),onKeydown:i[1]||(i[1]=C(p=>t("click"),["enter"]))},{default:f(()=>[N(P(r.displayName),1)]),_:1},8,["loading","disabled","class"])]),_:1}))}});const M=h(K,[["__scopeId","data-v-aea27bb7"]]),O={class:"form"},Y={class:"form-wrapper"},j={key:0,class:"buttons"},z=k({__name:"WidgetPreview",setup(o){const t=q(),d=B([]);function l(e){return E[e]||L[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(F,{"main-color":"#d14056",class:"preview",background:"#fbfbfb","font-family":"Inter",locale:"en"},{default:f(()=>[p()?(n(),u($,{key:0,class:"steps","steps-info":{current:1,total:3},"is-preview":""})):g("",!0),b("div",O,[b("div",Y,[(n(!0),c(w,null,v(i(),(a,W)=>(n(),c("div",{key:W,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",j,[(n(!0),c(w,null,v(_(),a=>(n(),u(M,{key:a,"display-name":m(a).name,action:m(a)},null,8,["display-name","action"]))),128))])):g("",!0)])]),_:1}))}});const Q=h(z,[["__scopeId","data-v-d3d01da6"]]);export{Q as default};
2
- //# sourceMappingURL=WidgetPreview.88a4f27f.js.map
@@ -1 +0,0 @@
1
- @import"https://cdn.jsdelivr.net/npm/@vue-flow/core@1.41.7/dist/style.css";@import"https://cdn.jsdelivr.net/npm/@vue-flow/core@1.41.7/dist/theme-default.css";.edge-label[data-v-8f1859d4]{position:absolute;padding:0 6px;border-radius:4px;background-color:#f9fafb;display:flex;align-items:center;justify-content:center;pointer-events:all}.stage-node[data-v-25457a9a]{padding:12px;min-width:150px;max-width:280px;display:flex;flex-direction:column;align-items:flex-start}.stage-content[data-v-25457a9a]{display:flex;align-items:center;gap:8px;width:100%}.stage-icon[data-v-25457a9a]{flex-shrink:0}.stage-title[data-v-25457a9a]{font-weight:500;font-size:14px;word-break:break-word;text-align:left;flex:1}.actions-menu[data-v-25457a9a]{flex-shrink:0;margin-left:auto}.action-item[data-v-25457a9a]{display:flex;align-items:center;gap:8px}.action-item.disabled[data-v-25457a9a]{opacity:.5;cursor:not-allowed}.action-warning[data-v-25457a9a]{max-width:250px}.flow-container[data-v-7b40ff03]{width:100%;height:100%;box-sizing:border-box;position:relative}[data-v-7b40ff03] .vue-flow__node{border:1px solid #ccc;border-radius:10px;background-color:#fff;max-width:280px;outline:none}[data-v-7b40ff03] .vue-flow__node:hover{box-shadow:0 0 5px #0003}.edit-button[data-v-7b40ff03]{position:absolute;right:24px;bottom:24px;width:56px;height:56px;box-shadow:0 2px 8px #00000026;z-index:1000;border-radius:28px;transition:all .3s ease;animation:pulse-7b40ff03 2s infinite;display:flex;align-items:center;justify-content:center;overflow:hidden}.edit-button.expanded[data-v-7b40ff03]{width:200px;padding:0 24px;border-radius:28px;animation:none}.edit-button-text[data-v-7b40ff03]{margin-left:12px;white-space:nowrap;animation:fadeIn-7b40ff03 .3s ease;font-weight:600;font-size:16px}@keyframes pulse-7b40ff03{0%,to{box-shadow:0 2px 8px #7c3aed66}50%{box-shadow:0 2px 16px #7c3aedcc}}@keyframes fadeIn-7b40ff03{0%{opacity:0}to{opacity:1}}.empty-state-card[data-v-7b40ff03]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);max-width:800px;width:90%;box-shadow:0 4px 12px #0000001a}.option-card[data-v-7b40ff03]{min-width:280px;max-width:350px;flex:1}.option-card[data-v-7b40ff03]:hover{box-shadow:0 4px 12px #00000026;transition:box-shadow .3s ease}.code-container[data-v-7b40ff03]{display:flex;align-items:center;gap:8px;background-color:#f5f5f5;padding:8px 12px;border-radius:4px}.install-code[data-v-7b40ff03]{font-family:Courier New,monospace;font-size:13px;color:#262626;flex:1;background:transparent;padding:0}
@@ -1,2 +0,0 @@
1
- var ye=Object.defineProperty;var ve=(u,t,d)=>t in u?ye(u,t,{enumerable:!0,configurable:!0,writable:!0,value:d}):u[t]=d;var ie=(u,t,d)=>(ve(u,typeof t!="symbol"?t+"":t,d),d);import{_ as G}from"./AbstraButton.vue_vue_type_script_setup_true_lang.a3ba2a31.js";import{d as X,at as O,c as b,o as c,ac as A,ae as he,h as H,ed as ke,e as m,f as s,u as e,a as $,b as o,g as C,t as g,df as F,ad as be,aY as pe,_ as le,dj as Z,ej as Se,f6 as de,de as q,i as k,cS as fe,cT as Me,ei as ge,ec as _e,el as R,bE as $e,bD as K,eh as me,bW as Le,cM as xe,eD as Ie,fa as Ce,r as V,w as Ae,ax as ze,U as Be,S as Ze,A as Q,dd as Pe,eG as je,eH as Te,es as Ne,et as Ve}from"./jwt-decode.esm.c9c37cdc.js";import{F as Ee}from"./PhArrowSquareOut.vue.bcbdb6e7.js";import{I as ce}from"./PhCopy.vue.29934bc2.js";import{F as He,I as We,O as De}from"./os.f08724fb.js";import{G as Fe}from"./PhPencilSimple.vue.15a2b403.js";import{_ as Ye}from"./vue-flow-background.3e9183ec.js";import{a as Xe,b as Ge,g as ee,u as Oe,e as qe,M as Je}from"./vue-flow-core.41c647da.js";import{k as te}from"./router.a8616541.js";import{a as re,B as Ue,b as Re}from"./build.a8637e29.js";import"./tables.2e1c934b.js";import{G as Ke}from"./PhArrowCounterClockwise.vue.9e570570.js";import{I as Qe}from"./PhCopySimple.vue.0241af8c.js";import{G as et}from"./PhDotsThreeVertical.vue.7a0e0638.js";import{F as tt,G as at,I as st,a as ot}from"./PhWebhooksLogo.vue.e4752384.js";import{a as ae}from"./asyncComputed.7bc1692e.js";import{a as nt}from"./project.9a068e8d.js";import{g as rt}from"./datetime.89495471.js";import{_ as lt,R as it}from"./repository.c0d70cb2.js";import{R as dt}from"./repository.94fb77c7.js";import{u as ct}from"./polling.4db5ee9a.js";import{C as se}from"./Card.38a860a4.js";import"./index.da4f9d54.js";import"./record.a33d29b1.js";import"./string.8fab6b53.js";import"./LoadingOutlined.e309ab16.js";(function(){try{var u=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(u._sentryDebugIds=u._sentryDebugIds||{},u._sentryDebugIds[t]="c3a80644-08e8-492a-9677-15a79d3d36c4",u._sentryDebugIdIdentifier="sentry-dbid-c3a80644-08e8-492a-9677-15a79d3d36c4")}catch{}})();const ut=["width","height","fill","transform"],pt={key:0},ft=m("path",{d:"M227.85,46.89a20,20,0,0,0-18.74-18.74c-13.13-.77-46.65.42-74.48,28.24L131,60H74.36a19.83,19.83,0,0,0-14.14,5.86L25.87,100.19a20,20,0,0,0,11.35,33.95l37.14,5.18,42.32,42.32,5.19,37.18A19.88,19.88,0,0,0,135.34,235a20.13,20.13,0,0,0,6.37,1,19.9,19.9,0,0,0,14.1-5.87l34.34-34.35A19.85,19.85,0,0,0,196,181.64V125l3.6-3.59C227.43,93.54,228.62,60,227.85,46.89ZM76,84h31L75.75,115.28l-27.23-3.8ZM151.6,73.37A72.27,72.27,0,0,1,204,52a72.17,72.17,0,0,1-21.38,52.41L128,159,97,128ZM172,180l-27.49,27.49-3.8-27.23L172,149Zm-72,22c-8.71,11.85-26.19,26-60,26a12,12,0,0,1-12-12c0-33.84,14.12-51.32,26-60A12,12,0,1,1,68.18,175.3C62.3,179.63,55.51,187.8,53,203c15.21-2.51,23.37-9.3,27.7-15.18A12,12,0,1,1,100,202Z"},null,-1),gt=[ft],_t={key:1},mt=m("path",{d:"M184,120v61.65a8,8,0,0,1-2.34,5.65l-34.35,34.35a8,8,0,0,1-13.57-4.53L128,176ZM136,72H74.35a8,8,0,0,0-5.65,2.34L34.35,108.69a8,8,0,0,0,4.53,13.57L80,128ZM40,216c37.65,0,50.69-19.69,54.56-28.18L68.18,161.44C59.69,165.31,40,178.35,40,216Z",opacity:"0.2"},null,-1),wt=m("path",{d:"M223.85,47.12a16,16,0,0,0-15-15c-12.58-.75-44.73.4-71.41,27.07L132.69,64H74.36A15.91,15.91,0,0,0,63,68.68L28.7,103a16,16,0,0,0,9.07,27.16l38.47,5.37,44.21,44.21,5.37,38.49a15.94,15.94,0,0,0,10.78,12.92,16.11,16.11,0,0,0,5.1.83A15.91,15.91,0,0,0,153,227.3L187.32,193A15.91,15.91,0,0,0,192,181.64V123.31l4.77-4.77C223.45,91.86,224.6,59.71,223.85,47.12ZM74.36,80h42.33L77.16,119.52,40,114.34Zm74.41-9.45a76.65,76.65,0,0,1,59.11-22.47,76.46,76.46,0,0,1-22.42,59.16L128,164.68,91.32,128ZM176,181.64,141.67,216l-5.19-37.17L176,139.31Zm-74.16,9.5C97.34,201,82.29,224,40,224a8,8,0,0,1-8-8c0-42.29,23-57.34,32.86-61.85a8,8,0,0,1,6.64,14.56c-6.43,2.93-20.62,12.36-23.12,38.91,26.55-2.5,36-16.69,38.91-23.12a8,8,0,1,1,14.56,6.64Z"},null,-1),yt=[mt,wt],vt={key:2},ht=m("path",{d:"M101.85,191.14C97.34,201,82.29,224,40,224a8,8,0,0,1-8-8c0-42.29,23-57.34,32.86-61.85a8,8,0,0,1,6.64,14.56c-6.43,2.93-20.62,12.36-23.12,38.91,26.55-2.5,36-16.69,38.91-23.12a8,8,0,1,1,14.56,6.64Zm122-144a16,16,0,0,0-15-15c-12.58-.75-44.73.4-71.4,27.07h0L88,108.7A8,8,0,0,1,76.67,97.39l26.56-26.57A4,4,0,0,0,100.41,64H74.35A15.9,15.9,0,0,0,63,68.68L28.7,103a16,16,0,0,0,9.07,27.16l38.47,5.37,44.21,44.21,5.37,38.49a15.94,15.94,0,0,0,10.78,12.92,16.11,16.11,0,0,0,5.1.83A15.91,15.91,0,0,0,153,227.3L187.32,193A16,16,0,0,0,192,181.65V155.59a4,4,0,0,0-6.83-2.82l-26.57,26.56a8,8,0,0,1-11.71-.42,8.2,8.2,0,0,1,.6-11.1l49.27-49.27h0C223.45,91.86,224.6,59.71,223.85,47.12Z"},null,-1),kt=[ht],bt={key:3},St=m("path",{d:"M221.86,47.24a14,14,0,0,0-13.11-13.1c-12.31-.73-43.77.39-69.88,26.5L133.52,66H74.35a13.9,13.9,0,0,0-9.89,4.1L30.11,104.44a14,14,0,0,0,7.94,23.76l39.13,5.46,45.16,45.16L127.8,218a14,14,0,0,0,23.76,7.92l34.35-34.35a13.91,13.91,0,0,0,4.1-9.89V122.48l5.35-5.35h0C221.46,91,222.59,59.56,221.86,47.24ZM38.11,115a2,2,0,0,1,.49-2L72.94,78.58A2,2,0,0,1,74.35,78h47.17L77.87,121.64l-38.14-5.32A1.93,1.93,0,0,1,38.11,115ZM178,181.65a2,2,0,0,1-.59,1.41L143.08,217.4a2,2,0,0,1-3.4-1.11l-5.32-38.16L178,134.48Zm8.87-73h0L128,167.51,88.49,128l58.87-58.88a78.47,78.47,0,0,1,60.69-23A2,2,0,0,1,209.88,48,78.47,78.47,0,0,1,186.88,108.64ZM100,190.31C95.68,199.84,81.13,222,40,222a6,6,0,0,1-6-6c0-41.13,22.16-55.68,31.69-60a6,6,0,1,1,5,10.92c-7,3.17-22.53,13.52-24.47,42.91,29.39-1.94,39.74-17.52,42.91-24.47a6,6,0,1,1,10.92,5Z"},null,-1),Mt=[St],$t={key:4},Lt=m("path",{d:"M223.85,47.12a16,16,0,0,0-15-15c-12.58-.75-44.73.4-71.41,27.07L132.69,64H74.36A15.91,15.91,0,0,0,63,68.68L28.7,103a16,16,0,0,0,9.07,27.16l38.47,5.37,44.21,44.21,5.37,38.49a15.94,15.94,0,0,0,10.78,12.92,16.11,16.11,0,0,0,5.1.83A15.91,15.91,0,0,0,153,227.3L187.32,193A15.91,15.91,0,0,0,192,181.64V123.31l4.77-4.77C223.45,91.86,224.6,59.71,223.85,47.12ZM74.36,80h42.33L77.16,119.52,40,114.34Zm74.41-9.45a76.65,76.65,0,0,1,59.11-22.47,76.46,76.46,0,0,1-22.42,59.16L128,164.68,91.32,128ZM176,181.64,141.67,216l-5.19-37.17L176,139.31Zm-74.16,9.5C97.34,201,82.29,224,40,224a8,8,0,0,1-8-8c0-42.29,23-57.34,32.86-61.85a8,8,0,0,1,6.64,14.56c-6.43,2.93-20.62,12.36-23.12,38.91,26.55-2.5,36-16.69,38.91-23.12a8,8,0,1,1,14.56,6.64Z"},null,-1),xt=[Lt],It={key:5},Ct=m("path",{d:"M219.86,47.36a12,12,0,0,0-11.22-11.22c-12-.71-42.82.38-68.35,25.91L134.35,68h-60a11.9,11.9,0,0,0-8.48,3.52L31.52,105.85a12,12,0,0,0,6.81,20.37l39.79,5.55,46.11,46.11,5.55,39.81a12,12,0,0,0,20.37,6.79l34.34-34.35a11.9,11.9,0,0,0,3.52-8.48v-60l5.94-5.94C219.48,90.18,220.57,59.41,219.86,47.36ZM36.21,115.6a3.94,3.94,0,0,1,1-4.09L71.53,77.17A4,4,0,0,1,74.35,76h52L78.58,123.76,39.44,118.3A3.94,3.94,0,0,1,36.21,115.6ZM180,181.65a4,4,0,0,1-1.17,2.83l-34.35,34.34a4,4,0,0,1-6.79-2.25l-5.46-39.15L180,129.65Zm-52-11.31L85.66,128l60.28-60.29c23.24-23.24,51.25-24.23,62.22-23.58a3.93,3.93,0,0,1,3.71,3.71c.65,11-.35,39-23.58,62.22ZM98.21,189.48C94,198.66,80,220,40,220a4,4,0,0,1-4-4c0-40,21.34-54,30.52-58.21a4,4,0,0,1,3.32,7.28c-7.46,3.41-24.43,14.66-25.76,46.85,32.19-1.33,43.44-18.3,46.85-25.76a4,4,0,1,1,7.28,3.32Z"},null,-1),At=[Ct],zt={name:"PhRocketLaunch"},Bt=X({...zt,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(u){const t=u,d=O("weight","regular"),L=O("size","1em"),w=O("color","currentColor"),r=O("mirrored",!1),a=b(()=>{var i;return(i=t.weight)!=null?i:d}),p=b(()=>{var i;return(i=t.size)!=null?i:L}),l=b(()=>{var i;return(i=t.color)!=null?i:w}),x=b(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:r?"scale(-1, 1)":void 0);return(i,y)=>(c(),A("svg",ke({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:p.value,height:p.value,fill:l.value,transform:x.value},i.$attrs),[he(i.$slots,"default"),a.value==="bold"?(c(),A("g",pt,gt)):a.value==="duotone"?(c(),A("g",_t,yt)):a.value==="fill"?(c(),A("g",vt,kt)):a.value==="light"?(c(),A("g",bt,Mt)):a.value==="regular"?(c(),A("g",$t,xt)):a.value==="thin"?(c(),A("g",It,At)):H("",!0)],16,ut))}}),Zt=X({__name:"WorkflowEdge",props:{id:{},sourceNode:{},targetNode:{},source:{},target:{},type:{},label:{type:[String,Object,Function]},style:{},selected:{type:Boolean},sourcePosition:{},targetPosition:{},sourceHandleId:{},targetHandleId:{},animated:{type:Boolean},updatable:{type:Boolean},markerStart:{},markerEnd:{},curvature:{},interactionWidth:{},data:{},events:{},labelStyle:{},labelShowBg:{type:Boolean},labelBgStyle:{},labelBgPadding:{},labelBgBorderRadius:{},sourceX:{},sourceY:{},targetX:{},targetY:{}},setup(u){const t=u;function d(r,a,p=0){const l=a.center.x-r.center.x,x=a.center.y-r.center.y,i=Math.sqrt(l*l+x*x);if(i===0)return{sourceX:r.center.x,sourceY:r.center.y,targetX:a.center.x,targetY:a.center.y};const y=l/i,S=x/i,f=r.width/2,M=r.height/2;let P=r.center.x,j=r.center.y;Math.abs(y)*M>Math.abs(S)*f?(P=r.center.x+(y>0?f:-f),j=r.center.y+S*f/Math.abs(y)):(P=r.center.x+y*M/Math.abs(S),j=r.center.y+(S>0?M:-M));const z=a.width/2,T=a.height/2;let E=a.center.x,_=a.center.y;return Math.abs(y)*T>Math.abs(S)*z?(E=a.center.x-(y>0?z:-z),_=a.center.y-S*z/Math.abs(y)):(E=a.center.x-y*T/Math.abs(S),_=a.center.y-(S>0?T:-T)),P+=y*p,j+=S*p,E-=y*p,_-=S*p,{sourceX:P,sourceY:j,targetX:E,targetY:_}}function L(r,a){const l={center:{x:r.computedPosition.x+r.dimensions.width/2,y:r.computedPosition.y+r.dimensions.height/2},width:r.dimensions.width,height:r.dimensions.height},i={center:{x:a.computedPosition.x+a.dimensions.width/2,y:a.computedPosition.y+a.dimensions.height/2},width:a.dimensions.width,height:a.dimensions.height};return d(l,i,10)}const w=b(()=>{if(!t.sourceNode||!t.targetNode)return ee({sourceX:0,sourceY:0,targetX:0,targetY:0});if(!t.sourceNode.dimensions.width||!t.targetNode.dimensions.width||!t.sourceNode.dimensions.height||!t.targetNode.dimensions.height)return ee({sourceX:0,sourceY:0,targetX:0,targetY:0});const r=L(t.sourceNode,t.targetNode);return ee(r)});return(r,a)=>{var p,l;return c(),A(pe,null,[s(e(Xe),{path:w.value[0],"marker-end":t.markerEnd},null,8,["path","marker-end"]),(l=(p=t.data)==null?void 0:p.props)!=null&&l.taskType?(c(),$(e(Ge),{key:0},{default:o(()=>[m("div",{style:be({transform:`translate(-50%, -50%) translate(${w.value[1]}px,${w.value[2]}px)`}),class:"nodrag nopan edge-label"},[s(e(F),null,{default:o(()=>[C(g(t.data.props.taskType),1)]),_:1})],4)]),_:1})):H("",!0)],64)}}});const Pt=le(Zt,[["__scopeId","data-v-8f1859d4"]]);class jt{async list(t){return te.get(`projects/${t}/disabled-stages`)}async disableStage({projectId:t,stageId:d}){return te.patch(`projects/${t}/disabled-stages/${d}`,{enable:!1})}async enableStage({projectId:t,stageId:d}){return te.patch(`projects/${t}/disabled-stages/${d}`,{enable:!0})}}const oe=new jt;class Y{constructor(t){ie(this,"id");this.dto=t,this.id=t}static async list(t){return(await oe.list(t)).map(L=>new Y(L))}static async disableStage({projectId:t,stageId:d}){return oe.disableStage({projectId:t,stageId:d})}static async enableStage({projectId:t,stageId:d}){return oe.enableStage({projectId:t,stageId:d})}}const Tt=X({__name:"WorkflowStageExecutions",props:{stageId:{},projectId:{},executions:{},taskStats:{},loading:{type:Boolean}},setup(u){const t=u,d=b(()=>t.taskStats?Math.round(t.taskStats.completed/t.taskStats.total*100):0),L=b(()=>{const a=d.value;return a===100?"#52c41a":a>=50?"#1890ff":"#faad14"}),w=a=>rt(a,{weekday:void 0}),r=a=>{if(a<60)return`${Math.round(a)}s`;const p=Math.floor(a/60);if(p<60)return`${p}m`;const l=Math.floor(p/60);return l<24?`${l}h`:`${Math.floor(l/24)}d`};return(a,p)=>(c(),$(e(Z),{vertical:"",size:4,style:{width:"100%"}},{default:o(()=>[a.executions&&a.executions.length>0?(c(),$(e(Z),{key:0,size:4,gap:4},{default:o(()=>[(c(!0),A(pe,null,Se(a.executions,l=>(c(),$(e(de),{key:l.id,to:{name:"logs",params:{projectId:a.projectId},query:{executionId:l.id}}},{default:o(()=>[s(e(fe),{title:w(l.createdAt)},{content:o(()=>[s(e(Z),{vertical:"",size:4},{default:o(()=>[s(e(q),null,{default:o(()=>[C(g(e(k).translate("i18n_workflowviewer_status"))+": "+g(l.status),1)]),_:2},1024),s(e(q),null,{default:o(()=>[C(g(e(k).translate("i18n_workflowviewer_duration"))+": "+g(l.duration_seconds)+"s",1)]),_:2},1024),s(e(q),null,{default:o(()=>[C(g(e(k).translate("i18n_workflowviewer_version"))+": "+g(l.buildId.slice(0,6)),1)]),_:2},1024)]),_:2},1024)]),default:o(()=>[s(lt,{status:l.status},null,8,["status"])]),_:2},1032,["title"])]),_:2},1032,["to"]))),128))]),_:1})):H("",!0),a.taskStats&&a.taskStats.total>0?(c(),$(e(de),{key:1,to:{name:"tasks",params:{projectId:a.projectId},query:{stage:a.stageId,status:"pending"}}},{default:o(()=>[s(e(Z),{vertical:"",size:2},{default:o(()=>[s(e(Me),{"show-info":!1,percent:d.value,"stroke-color":L.value,size:"small"},null,8,["percent","stroke-color"]),s(e(Z),{vertical:"",size:0},{default:o(()=>[a.taskStats.pending&&a.taskStats.averageCompletionSeconds?(c(),$(e(q),{key:0,type:"secondary",style:{fontSize:"11px"}},{default:o(()=>[C(g(e(k).translate("i18n_workflowviewer_pending_tasks").replace("{count}",a.taskStats.pending.toString()))+" ("+g(r(a.taskStats.averageCompletionSeconds))+" "+g(e(k).translate("i18n_workflowviewer_average"))+") ",1)]),_:1})):H("",!0)]),_:1})]),_:1})]),_:1},8,["to"])):H("",!0)]),_:1}))}}),Nt={class:"stage-node"},Vt={class:"stage-content"},Et={class:"stage-title"},Ht={class:"action-item"},Wt={class:"action-item"},Dt={class:"action-warning"},Ft={key:1,class:"action-item"},ue="3.18.0",Yt=X({__name:"WorkflowStageNode",props:{stage:{}},setup(u){const t=u,d=ge(),L=_e(),w=d.params.projectId,r=b(()=>({forms:tt,hooks:at,scripts:st,jobs:ot})[t.stage.type]),{result:a}=ae(async()=>await nt.get(w)),{result:p}=ae(async()=>{const I=(await re.list(w)).find(n=>n.latest);return I?await Ue.get(I.id):null}),{result:l,refetch:x}=ae(async()=>(await Y.list(w)).filter(I=>I)),i=()=>{L.push({name:"logs",params:{projectId:w},query:{stageId:t.stage.id}})},y=b(()=>t.stage.type==="forms"||t.stage.type==="hooks"),S=()=>{var n;if(!t.stage.path)return;const _=t.stage.type==="forms"?`/${t.stage.path}`:`/_hooks/${t.stage.path}`,I=(n=a.value)==null?void 0:n.getUrl(_);!I||(navigator.clipboard.writeText(I),xe.success(k.translate("i18n_workflowviewer_copied_url")))},f=b(()=>{var _;return(_=l.value)==null?void 0:_.map(I=>I.id).includes(t.stage.id)}),M=(_,I)=>{const[n,v,h]=_.split(".").map(Number),[D,B,W]=I.split(".").map(Number);return n>D?!0:n<D?!1:v>B?!0:v<B?!1:h>=W},P=b(()=>f.value?Ie:Ce),j=b(()=>f.value?k.translate("i18n_workflowviewer_enable_stage"):k.translate("i18n_workflowviewer_disable_stage")),z=b(()=>{var _;return!M(((_=p.value)==null?void 0:_.abstraVersion)||"0.0.0",ue)}),T=b(()=>z.value?k.translate("i18n_workflowviewer_disable_stages_warning").replace("{version}",ue):""),E=async()=>{z.value||(f.value?await Y.enableStage({projectId:w,stageId:t.stage.id}):await Y.disableStage({projectId:w,stageId:t.stage.id}),await x())};return(_,I)=>(c(),A("div",Nt,[m("div",Vt,[(c(),$(R(r.value),{size:18,class:"stage-icon"})),m("div",Et,g(_.stage.title),1),s(e(Le),{trigger:["click"]},{overlay:o(()=>[s(e($e),null,{default:o(()=>[s(e(K),{onClick:i},{default:o(()=>[m("div",Ht,[s(e(Ke),{size:16}),m("span",null,g(e(k).translate("i18n_workflowviewer_view_logs")),1)])]),_:1}),y.value?(c(),$(e(K),{key:0,onClick:S},{default:o(()=>[m("div",Wt,[s(e(Qe),{size:16}),m("span",null,g(e(k).translate("i18n_workflowviewer_copy_url")),1)])]),_:1})):H("",!0),s(e(K),{onClick:E},{default:o(()=>[z.value?(c(),$(e(fe),{key:0,placement:"left"},{content:o(()=>[m("div",Dt,[s(e(F),null,{default:o(()=>[C(g(T.value),1)]),_:1})])]),default:o(()=>[m("div",{class:me(["action-item",{disabled:z.value}])},[(c(),$(R(P.value),{size:16})),m("span",null,g(j.value),1)],2)]),_:1})):(c(),A("div",Ft,[(c(),$(R(P.value),{size:16})),m("span",null,g(j.value),1)]))]),_:1})]),_:1})]),default:o(()=>[s(e(et),{style:{cursor:"pointer"},size:20,class:"actions-menu"})]),_:1})]),s(Tt,{"stage-id":_.stage.id,"project-id":e(w),executions:_.stage.executions,"task-stats":_.stage.taskStats,style:{"margin-top":"8px"}},null,8,["stage-id","project-id","executions","task-stats"])]))}});const J=le(Yt,[["__scopeId","data-v-25457a9a"]]);function Xt(u,t){const d=new it,L=new dt(u),w=V({}),r=V({}),a=V(!1);async function p(){const i=t.value;if(i.length===0){a.value=!1;return}a.value=!0;try{const[y,S]=await Promise.all([Promise.all(i.map(async f=>{try{const{executions:M}=await d.list({projectId:u,stageId:f,limit:6});return{stageId:f,executions:M}}catch(M){return console.error(`Failed to load executions for stage ${f}:`,M),{stageId:f,executions:[]}}})),L.getTasksStatistics()]);y.forEach(({stageId:f,executions:M})=>{w.value[f]=M}),S.forEach(f=>{r.value[f.stageId]={pending:f.pendingTasks,completed:f.completedTasks,total:f.totalTasks,averageCompletionSeconds:f.averageCompletionSeconds}})}catch(y){console.error("Failed to load workflow data:",y)}finally{a.value=!1}}const{startPolling:l,endPolling:x}=ct({task:p,interval:15e3});return Ae(t,i=>{i.length>0&&(p(),l())},{immediate:!0}),ze(()=>{x()}),{executionsByStage:w,taskStatsByStage:r,loading:a,refetch:p}}const we=u=>(Ne("data-v-7b40ff03"),u=u(),Ve(),u),Gt={class:"flow-container"},Ot={class:"code-container"},qt=we(()=>m("code",{class:"install-code"},"pip install abstra",-1)),Jt={class:"code-container"},Ut=we(()=>m("code",{class:"install-code"},"abstra editor .",-1)),Rt={key:0,class:"edit-button-text"},ne="#ea576a",Kt=X({__name:"WorkflowViewer",setup(u){const{onInit:t}=Oe(),d=new Re,L=ge(),w=_e(),r=L.params.projectId,a=L.query.buildId,p=V(!0),l=V(null),x=V(!0),i=V(!1),y=()=>{w.push({name:"web-editor",params:{projectId:r}})},S=async n=>{try{await navigator.clipboard.writeText(n)}catch(v){console.error("Failed to copy:",v)}};t(n=>{x.value&&(n.fitView(),x.value=!1)});const f=V([]),M=V([]),P=b(()=>f.value.map(n=>n.id)),{executionsByStage:j,taskStatsByStage:z}=Xt(r,P),T=b(()=>f.value.length>0),E=b(()=>f.value.map(n=>({id:n.id,type:n.type,data:{...n,executions:j.value[n.id]||[],taskStats:z.value[n.id]||null},position:{x:n.position.x,y:n.position.y*1.5}}))),_=b(()=>M.value.map(n=>({id:n.id,source:n.sourceStageId,target:n.targetStageId,type:"task",data:{id:n.id,props:{taskType:n.taskType}},markerEnd:{type:Je.Arrow,width:24,height:24}})));function I(n){const v=[],h=[],D=["jobs","hooks","forms","scripts"];for(const B of D){const W=n[B]||[];for(const N of W){v.push({id:N.id,type:B,title:N.title,position:{x:N.workflow_position[0],y:N.workflow_position[1]},file:N.file,path:N.path,schedule:N.schedule});for(const U of N.transitions||[])h.push({id:U.id,sourceStageId:N.id,targetStageId:U.target_id,taskType:U.task_type})}}f.value=v,M.value=h}return Be(async()=>{try{p.value=!0;let n;if(a){const B=(await re.list(r)).find(W=>W.id===a);if(!B){l.value="Build not found";return}n=B}else{const B=(await re.list(r)).find(W=>W.latest);if(!B){l.value="No builds found for this project";return}n=B}const v=await d.get(n.id);if(!v||!v.abstraJson){l.value="No workflow data available for this build";return}const h=JSON.parse(v.abstraJson);I(h)}catch(n){l.value=n instanceof Error?n.message:"Failed to load workflow",console.error(n)}finally{p.value=!1}}),(n,v)=>(c(),A("div",Gt,[p.value?(c(),$(e(Ze),{key:0,style:{width:"100%"}})):T.value?(c(),$(e(qe),{key:2,nodes:E.value,edges:_.value,"default-viewport":{zoom:1.5},"fit-view-on-init":"","min-zoom":.1,"max-zoom":1.25,"pan-on-scroll":e(De).isMac,"snap-to-grid":""},{"edge-task":o(h=>[s(Pt,je(Te(h)),null,16)]),"node-forms":o(h=>[s(J,{stage:h.data},null,8,["stage"])]),"node-hooks":o(h=>[s(J,{stage:h.data},null,8,["stage"])]),"node-scripts":o(h=>[s(J,{stage:h.data},null,8,["stage"])]),"node-jobs":o(h=>[s(J,{stage:h.data},null,8,["stage"])]),default:o(()=>[s(e(Ye),{"pattern-color":"#aaa",gap:16})]),_:1},8,["nodes","edges","pan-on-scroll"])):(c(),$(e(se),{key:1,class:"empty-state-card"},{default:o(()=>[s(e(Z),{vertical:"",gap:24,align:"center"},{default:o(()=>[s(e(Bt),{size:64,color:ne}),s(e(Z),{vertical:"",gap:8,align:"center"},{default:o(()=>[s(e(Q),{level:3},{default:o(()=>[C(g(e(k).translate("i18n_workflowviewer_getting_started")),1)]),_:1}),s(e(F),{type:"secondary",style:{"text-align":"center"}},{default:o(()=>[C(g(e(k).translate("i18n_workflowviewer_no_workflow_description")),1)]),_:1})]),_:1}),s(e(Z),{gap:16,wrap:"wrap",justify:"center"},{default:o(()=>[s(e(se),{class:"option-card"},{default:o(()=>[s(e(Z),{vertical:"",gap:12},{default:o(()=>[s(e(He),{size:32,color:ne}),s(e(Q),{level:5},{default:o(()=>[C(g(e(k).translate("i18n_workflowviewer_option_cli")),1)]),_:1}),s(e(F),{type:"secondary",style:{"font-size":"13px"}},{default:o(()=>[C(g(e(k).translate("i18n_workflowviewer_cli_description")),1)]),_:1}),s(e(Z),{vertical:"",gap:8},{default:o(()=>[m("div",Ot,[qt,s(G,{type:"text",size:"small",onClick:v[0]||(v[0]=h=>S("pip install abstra"))},{default:o(()=>[s(e(ce),{size:16})]),_:1})]),m("div",Jt,[Ut,s(G,{type:"text",size:"small",onClick:v[1]||(v[1]=h=>S("abstra editor ."))},{default:o(()=>[s(e(ce),{size:16})]),_:1})])]),_:1})]),_:1})]),_:1}),s(e(se),{class:"option-card"},{default:o(()=>[s(e(Z),{vertical:"",gap:12},{default:o(()=>[s(e(We),{size:32,color:ne}),s(e(Q),{level:5},{default:o(()=>[C(g(e(k).translate("i18n_workflowviewer_option_online")),1)]),_:1}),s(e(F),{type:"secondary",style:{"font-size":"13px"}},{default:o(()=>[C(g(e(k).translate("i18n_workflowviewer_online_description")),1)]),_:1}),s(G,{type:"primary",onClick:y},{default:o(()=>[C(g(e(k).translate("i18n_workflowviewer_open_editor")),1)]),_:1})]),_:1})]),_:1})]),_:1}),s(e(Pe),{href:"https://www.abstra.io/docs",target:"_blank"},{default:o(()=>[C(g(e(k).translate("i18n_workflowviewer_view_docs"))+" ",1),s(e(Ee),{size:14,style:{"margin-left":"4px"}})]),_:1})]),_:1})]),_:1})),!p.value&&T.value?(c(),$(G,{key:3,class:me(["edit-button",{expanded:i.value}]),type:"primary",size:"large",onClick:y,onMouseenter:v[2]||(v[2]=h=>i.value=!0),onMouseleave:v[3]||(v[3]=h=>i.value=!1)},{default:o(()=>[s(e(Fe),{size:24}),i.value?(c(),A("span",Rt,g(e(k).translate("i18n_workflowviewer_edit_online")),1)):H("",!0)]),_:1},8,["class"])):H("",!0)]))}});const La=le(Kt,[["__scopeId","data-v-7b40ff03"]]);export{La as default};
2
- //# sourceMappingURL=WorkflowViewer.778c401d.js.map
@@ -1,2 +0,0 @@
1
- import{en as n,M as b}from"./jwt-decode.esm.c9c37cdc.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]="a8319ef1-bbfb-48f1-ba53-8ef46f657ddb",e._sentryDebugIdIdentifier="sentry-dbid-a8319ef1-bbfb-48f1-ba53-8ef46f657ddb")}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 o(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 c(e,r=[],t){const s=t?`'${t}': ${u(e)}`:u(e);if(n.exports.isArray(e)){const f=o(e);return[{title:s,key:[...r,f].join("/"),children:e.flatMap((i,l)=>c(i,[...r,f,`${l}`]))}]}else if(n.exports.isObject(e)){const f=o(e);return[{title:s,key:[...r,f].join("/"),children:Object.entries(e).flatMap(([i,l])=>c(l,[...r,f,i],i))}]}else return[{title:s,key:r.join("/"),children:[]}]}function x(e,r){return new Promise(t=>{b.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,c as t};
2
- //# sourceMappingURL=ant-design.4efc9ccd.js.map
@@ -1,2 +0,0 @@
1
- var d=Object.defineProperty;var o=(a,t,e)=>t in a?d(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e;var i=(a,t,e)=>(o(a,typeof t!="symbol"?t+"":t,e),e);import{k as s}from"./router.a8616541.js";import"./jwt-decode.esm.c9c37cdc.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="f85b3c14-16ac-4eab-9869-afafa065b5f6",a._sentryDebugIdIdentifier="sentry-dbid-f85b3c14-16ac-4eab-9869-afafa065b5f6")}catch{}})();class u{constructor(){i(this,"urlPath","api-keys")}async create({projectId:t,name:e}){return s.post(`projects/${t}/${this.urlPath}`,{name:e})}async delete(t,e){await s.delete(`projects/${t}/${this.urlPath}/${e}`)}async list(t){return s.get(`projects/${t}/${this.urlPath}`)}}const r=new u;class n{constructor(t){this.dto=t}static async list(t){return(await r.list(t)).map(c=>new n(c))}static async create(t){const e=await r.create(t);return new n(e)}static async delete(t,e){await r.delete(t,e)}get id(){return this.dto.id}get name(){return this.dto.name}get createdAt(){return new Date(this.dto.createdAt)}get ownerId(){return this.dto.createdBy}get value(){var t;return(t=this.dto.value)!=null?t:null}}export{n as A};
2
- //# sourceMappingURL=apiKey.bd946d8c.js.map
@@ -1,2 +0,0 @@
1
- import{$ as c,c as l}from"./jwt-decode.esm.c9c37cdc.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]="2cb8eb20-8f25-4ca7-8d3b-401aa008d6dc",r._sentryDebugIdIdentifier="sentry-dbid-2cb8eb20-8f25-4ca7-8d3b-401aa008d6dc")}catch{}})();const i=r=>{const e=c({loading:!0,result:null,error:null}),n=t=>(e.value={loading:!1,result:t,error:null},t),a=t=>{e.value={loading:!1,result:null,error:t}},o=async()=>(e.value={loading:!0,result:e.value.result,error:null},r().then(n).catch(a));o();const s=l(()=>e.value.loading),u=l(()=>e.value.result),d=l(()=>e.value.error);return{loading:s,result:u,error:d,refetch:o}};export{i as a};
2
- //# sourceMappingURL=asyncComputed.7bc1692e.js.map
@@ -1,2 +0,0 @@
1
- import"./jwt-decode.esm.c9c37cdc.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[s]="89310402-19f7-4fcc-93c4-c1fed0185a82",t._sentryDebugIdIdentifier="sentry-dbid-89310402-19f7-4fcc-93c4-c1fed0185a82")}catch{}})();const e={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"},c=t=>{if(!t)return e.DOCS;const s=t.startsWith("/")?t.slice(1):t;return`${e.DOCS}/${s}`};export{e as A,c as b};
2
- //# sourceMappingURL=constants.534f67bc.js.map
@@ -1,2 +0,0 @@
1
- import{Z as o}from"./jwt-decode.esm.c9c37cdc.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},l=new Error().stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="c1abfa5b-e69b-46d1-9c3d-fc78cdcc74fe",e._sentryDebugIdIdentifier="sentry-dbid-c1abfa5b-e69b-46d1-9c3d-fc78cdcc74fe")}catch{}})();const J=o.string(),I=o.array(J),R=o.number(),D=o.string().datetime({local:!0}),y=o.enum(["file","directory"]),T=o.string(),F=o.array(T),E=o.array(F).default([]),S=o.object({pathParts:I,size:R,lastModified:D,type:y,children:E.optional()}),k=o.boolean(),L=o.boolean(),G=o.boolean(),j=o.boolean(),P=o.boolean(),N=o.boolean();o.object({PROJECT_LIVE:k.optional(),ALLOW_RELEASE:L.optional(),CONNECTORS_CONSOLE:G.optional(),DUPLICATE_PROJECTS:j.optional(),WEB_EDITOR:P.optional(),LANGCHAIN_SMART_CHAT:N.optional()});const W=o.string(),_=o.string(),M=o.string(),w=o.string(),x=o.string();o.object({plan:W.optional(),expires:_.optional(),message:M.optional(),messageLink:w.optional(),messageCTA:x.optional()});const v=o.string(),A=o.string(),m=o.string(),O=o.string(),H=o.string(),q=o.object({id:v,name:A,description:m.optional(),projectId:O,createdAt:H}),U=o.string(),B=o.string(),z=o.string(),K=o.string(),$=o.string(),Q=o.enum(["true","false"]),X=o.enum(["true","false"]),Y=o.enum(["true","false"]),Z=o.string().regex(new RegExp("^[0-9]+m$")),oo=o.string().regex(new RegExp("^[0-9]+m$")),to=o.string().regex(new RegExp("^[0-9]+Mi$")),eo=o.string().regex(new RegExp("^[0-9]+Mi$")),no=o.string().regex(new RegExp("^[0-9]+$")),so=o.number(),ao=o.string().regex(new RegExp("^[0-9]+$")),io=o.string(),mo=o.enum(["3.9","3.10","3.11","3.12"]),co=o.string(),ro=o.string(),lo=o.object({watermarkEnabled:Q.optional(),seleniumInstanceEnabled:X.optional(),notificationsEnabled:Y.optional(),requestsCPU:Z.optional(),limitsCPU:oo.optional(),requestsMemory:to.optional(),limitsMemory:eo.optional(),minReplicas:no.optional(),computeUnits:so.optional(),timeoutSeconds:ao.optional(),workerType:io.optional(),pythonVersion:mo.optional(),workerNumber:co.optional(),baseDockerfile:ro.optional()});o.object({id:U,folderId:B,name:z,subdomain:K,organizationId:$,deploymentResources:lo.optional()});const So=o.string(),Ao=o.string(),bo=o.string();o.object({name:So,connectionType:Ao,projectId:bo});const Co=o.string(),go=o.string(),b=o.array(go),C=o.string(),ho=o.string();o.object({id:Co,emailPatterns:b,projectId:C,createdAt:ho});const po=o.string(),uo=o.string(),Vo=o.string(),fo=o.string(),Jo=o.object({key:po,label:uo,description:Vo,logoUrl:fo}),Io=o.literal("tokens"),Ro=o.string(),Do=o.string(),yo=o.string(),To=o.string(),Fo=o.enum(["small-string","large-text","file","radiobox","checkbox"]),Eo=o.string(),ko=o.string(),Lo=o.object({value:Eo,label:ko}),Go=o.array(Lo),jo=o.number(),Po=o.number(),No=o.object({type:Fo,options:Go.optional(),maxSize:jo.optional(),minSize:Po.optional()}),Wo=o.object({key:Ro,label:Do,description:yo,instructions:To.optional(),input:No}),c=o.array(Wo),_o=c,Mo=o.object({type:Io,tokens:_o}),wo=o.literal("oauth2"),xo=o.string(),vo=o.string(),Oo=o.string(),Ho=o.object({key:xo,label:vo,description:Oo}),qo=o.array(Ho),Uo=c,Bo=o.object({type:wo,scopes:qo,params:Uo}),zo=o.literal("manual"),Ko=o.object({type:zo}),$o=o.literal("ecdsa"),Qo=c,Xo=o.object({type:$o,params:Qo}),Yo=o.union([Mo,Bo,Ko,Xo]),Zo=o.string(),ot=o.string(),tt=o.string(),et=o.record(o.any()),nt=o.record(o.any()),st=o.object({key:Zo,label:ot,description:tt,payloadSchema:et,returnSchema:nt}),at=o.array(st),it=o.string(),mt=o.string(),ct=o.record(o.any()),rt=o.object({name:it,description:mt,payloadSchema:ct.optional()}),lt=o.array(rt);o.object({metadata:Jo,auth:Yo,actions:at,triggers:lt});const St=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"]),At=o.string(),n=o.string().email(),bt=o.string(),r=o.array(bt),Ct=o.string(),gt=o.string(),ht=o.object({id:At,email:n,roles:r,projectId:Ct,createdAt:gt}),pt=o.string().uuid(),ut=o.string(),dt=o.string().uuid(),Vt=o.boolean(),ft=o.string(),Jt=St,It=o.boolean(),Rt=o.boolean(),Dt=o.string(),yt=o.string(),Tt=o.object({columnId:yt}),Ft=o.object({id:dt,primaryKey:Vt,name:ft,type:Jt,unique:It.optional(),nullable:Rt.optional(),default:Dt.optional(),foreignKey:Tt.optional()}),Et=o.array(Ft),kt=o.record(o.any()),Lt=o.array(kt),Gt=o.object({id:pt,name:ut,columns:Et,data:Lt}),jt=o.array(Gt);o.object({tables:jt});const g=o.string(),h=o.string(),Pt=o.boolean(),Nt=o.boolean(),Wt=o.boolean(),_t=o.boolean(),Mt=o.boolean(),wt=o.boolean(),p=o.object({PROJECT_LIVE:Pt,ALLOW_RELEASE:Nt,CONNECTORS_CONSOLE:Wt,DUPLICATE_PROJECTS:_t,WEB_EDITOR:Mt.optional(),LANGCHAIN_SMART_CHAT:wt.optional()}),xt=o.string(),vt=o.string(),Ot=o.string(),Ht=o.string(),qt=o.string(),u=o.object({plan:xt.optional(),expires:vt.optional(),message:Ot.optional(),messageLink:Ht.optional(),messageCTA:qt.optional()}),Ut=o.enum(["true","false"]),Bt=o.enum(["true","false"]),zt=o.enum(["true","false"]),Kt=o.string().regex(new RegExp("^[0-9]+m$")),$t=o.string().regex(new RegExp("^[0-9]+m$")),Qt=o.string().regex(new RegExp("^[0-9]+Mi$")),Xt=o.string().regex(new RegExp("^[0-9]+Mi$")),Yt=o.string().regex(new RegExp("^[0-9]+$")),Zt=o.number(),oe=o.string().regex(new RegExp("^[0-9]+$")),te=o.string(),ee=o.enum(["3.9","3.10","3.11","3.12"]),ne=o.string(),se=o.string(),ae=o.object({watermarkEnabled:Ut.optional(),nativeTempDir:Bt.optional(),notificationsEnabled:zt.optional(),requestsCPU:Kt.optional(),limitsCPU:$t.optional(),requestsMemory:Qt.optional(),limitsMemory:Xt.optional(),minReplicas:Yt.optional(),computeUnits:Zt.optional(),timeoutSeconds:oe.optional(),workerType:te.optional(),pythonVersion:ee.optional(),workerNumber:ne.optional(),baseDockerfile:se.optional()}),ie=o.string(),me=o.array(ie),ce=o.object({whitelistPatterns:me.optional()});o.object({id:g,name:h,featureFlags:p,billingMetadata:u,deploymentResources:ae.optional(),membershipsMetadata:ce.optional()});const re=o.string(),le=o.array(re);o.object({whitelistPatterns:le.optional()});const Se=o.string(),Ae=o.string(),be=o.string(),Ce=o.null(),ge=o.union([be,Ce]),he=o.string(),pe=o.null(),ue=o.union([he,pe]),de=o.string(),Ve=o.null(),fe=o.union([de,Ve]),Je=o.string(),Ie=o.null(),Re=o.union([Je,Ie]),De=o.string(),ye=o.null(),Te=o.union([De,ye]),Fe=o.string(),Ee=o.null(),ke=o.union([Fe,Ee]),Le=o.string(),Ge=o.null(),je=o.union([Le,Ge]),Pe=o.object({name:Se,language:Ae,theme:ge,logo_url:ue,favicon_url:fe,brand_name:Re,main_color:Te,font_family:ke,font_color:je}),Ne=o.boolean(),We=o.string(),_e=o.array(We),Me=o.object({is_public:Ne,required_roles:_e}),we=o.object({access_control:Me}),xe=o.string(),ve=o.string(),Oe=o.number(),He=o.array(Oe),qe=o.string(),Ue=o.string(),Be=o.string(),ze=o.string(),Ke=o.string(),$e=o.string(),Qe=o.null(),Xe=o.union([$e,Qe]),s=o.object({id:Ue,target_id:Be,target_type:ze,type:Ke,task_type:Xe.optional()}),Ye=s,Ze=o.array(Ye),on=o.string(),tn=o.object({title:xe,file:ve,workflow_position:He,id:qe,transitions:Ze,schedule:on}),en=tn,nn=o.array(en),sn=o.string(),an=o.string(),mn=o.number(),cn=o.array(mn),rn=o.string(),ln=s,Sn=o.array(ln),An=o.boolean(),bn=o.string(),Cn=o.boolean(),gn=o.object({title:sn,file:an,workflow_position:cn,id:rn,transitions:Sn,enabled:An,path:bn,is_initial:Cn}),hn=gn,pn=o.array(hn),un=o.string(),dn=o.string(),Vn=o.number(),fn=o.array(Vn),Jn=o.string(),In=s,Rn=o.array(In),Dn=o.string(),yn=o.null(),Tn=o.union([Dn,yn]),Fn=o.string(),En=o.string(),kn=o.null(),Ln=o.union([En,kn]),Gn=o.string(),jn=o.boolean(),Pn=o.object({variable_name:Gn,enabled:jn}),Nn=o.boolean(),Wn=o.string(),_n=o.null(),Mn=o.union([Wn,_n]),wn=o.string(),xn=o.null(),vn=o.union([wn,xn]),On=o.boolean(),Hn=o.boolean(),qn=o.boolean(),Un=o.string(),Bn=o.array(Un),zn=o.object({is_public:qn,required_roles:Bn}),Kn=o.string(),$n=o.null(),Qn=o.union([Kn,$n]),Xn=o.string(),Yn=o.null(),Zn=o.union([Xn,Yn]),os=o.string(),ts=o.null(),es=o.union([os,ts]),ns=o.object({title:un,file:dn,workflow_position:fn,id:Jn,transitions:Rn,restart_button_text:Tn,path:Fn,end_message:Ln,notification_trigger:Pn,auto_start:Nn,start_button_text:Mn,timeout_message:vn,allow_restart:On,is_initial:Hn,access_control:zn,welcome_title:Qn,start_message:Zn,error_message:es}),ss=ns,as=o.array(ss),is=o.string(),ms=o.string(),cs=o.number(),rs=o.array(cs),ls=o.string(),Ss=s,As=o.array(Ss),bs=o.boolean(),Cs=o.object({title:is,file:ms,workflow_position:rs,id:ls,transitions:As,is_initial:bs}),gs=Cs,hs=o.array(gs),ps=o.literal("15.0");o.object({workspace:Pe,home:we,jobs:nn,hooks:pn,forms:as,scripts:hs,version:ps});const us=o.string(),ds=o.string(),Vs=o.string(),fs=o.null(),Js=o.union([Vs,fs]),Is=o.string(),Rs=o.null(),Ds=o.union([Is,Rs]),ys=o.string(),Ts=o.null(),Fs=o.union([ys,Ts]),Es=o.string(),ks=o.null(),Ls=o.union([Es,ks]),Gs=o.string(),js=o.null(),Ps=o.union([Gs,js]),Ns=o.string(),Ws=o.null(),_s=o.union([Ns,Ws]),Ms=o.string(),ws=o.null(),xs=o.union([Ms,ws]),vs=o.object({name:us,language:ds,theme:Js,logo_url:Ds,favicon_url:Fs,brand_name:Ls,main_color:Ps,font_family:_s,font_color:xs}),Os=o.boolean(),Hs=o.string(),qs=o.array(Hs),Us=o.object({is_public:Os,required_roles:qs}),Bs=o.object({access_control:Us}),zs=o.string(),Ks=o.string(),$s=o.number(),Qs=o.array($s),Xs=o.string(),Ys=o.string(),Zs=o.string(),oa=o.string(),ta=o.literal("task"),ea=o.string(),na=o.null(),sa=o.union([ea,na]),a=o.object({id:Ys,target_id:Zs,target_type:oa,type:ta,task_type:sa.optional()}),aa=a,ia=o.array(aa),ma=o.string(),ca=o.object({title:zs,file:Ks,workflow_position:Qs,id:Xs,transitions:ia,schedule:ma}),ra=ca,la=o.array(ra),Sa=o.string(),Aa=o.string(),ba=o.number(),Ca=o.array(ba),ga=o.string(),ha=a,pa=o.array(ha),ua=o.boolean(),da=o.string(),Va=o.boolean(),fa=o.object({title:Sa,file:Aa,workflow_position:Ca,id:ga,transitions:pa,enabled:ua,path:da,is_initial:Va}),Ja=fa,Ia=o.array(Ja),Ra=o.string(),Da=o.string(),ya=o.number(),Ta=o.array(ya),Fa=o.string(),Ea=a,ka=o.array(Ea),La=o.string(),Ga=o.null(),ja=o.union([La,Ga]),Pa=o.string(),Na=o.string(),Wa=o.null(),_a=o.union([Na,Wa]),Ma=o.string(),wa=o.boolean(),xa=o.object({variable_name:Ma,enabled:wa}),va=o.boolean(),Oa=o.string(),Ha=o.null(),qa=o.union([Oa,Ha]),Ua=o.string(),Ba=o.null(),za=o.union([Ua,Ba]),Ka=o.boolean(),$a=o.boolean(),Qa=o.boolean(),Xa=o.string(),Ya=o.array(Xa),Za=o.object({is_public:Qa,required_roles:Ya}),oi=o.string(),ti=o.null(),ei=o.union([oi,ti]),ni=o.string(),si=o.null(),ai=o.union([ni,si]),ii=o.string(),mi=o.null(),ci=o.union([ii,mi]),ri=o.object({title:Ra,file:Da,workflow_position:Ta,id:Fa,transitions:ka,restart_button_text:ja,path:Pa,end_message:_a,notification_trigger:xa,auto_start:va,start_button_text:qa,timeout_message:za,allow_restart:Ka,is_initial:$a,access_control:Za,welcome_title:ei,start_message:ai,error_message:ci}),li=ri,Si=o.array(li),Ai=o.string(),bi=o.string(),Ci=o.number(),gi=o.array(Ci),hi=o.string(),pi=a,ui=o.array(pi),di=o.boolean(),Vi=o.object({title:Ai,file:bi,workflow_position:gi,id:hi,transitions:ui,is_initial:di}),fi=Vi,Ji=o.array(fi),Ii=o.literal("14.0");o.object({workspace:vs,home:Bs,jobs:la,hooks:Ia,forms:Si,scripts:Ji,version:Ii});const Ri=o.string(),Di=o.string(),yi=o.string(),Ti=o.null(),Fi=o.union([yi,Ti]),Ei=o.string(),ki=o.null(),Li=o.union([Ei,ki]),Gi=o.string(),ji=o.null(),Pi=o.union([Gi,ji]),Ni=o.string(),Wi=o.null(),_i=o.union([Ni,Wi]),Mi=o.string(),wi=o.null(),xi=o.union([Mi,wi]),vi=o.string(),Oi=o.null(),Hi=o.union([vi,Oi]),qi=o.string(),Ui=o.null(),Bi=o.union([qi,Ui]),zi=o.object({name:Ri,language:Di,theme:Fi,logo_url:Li,favicon_url:Pi,brand_name:_i,main_color:xi,font_family:Hi,font_color:Bi}),Ki=o.boolean(),$i=o.string(),Qi=o.array($i),Xi=o.object({is_public:Ki,required_roles:Qi}),Yi=o.object({access_control:Xi}),Zi=o.string(),om=o.string(),tm=o.number(),em=o.array(tm),nm=o.string(),sm=o.string(),am=o.string(),im=o.string(),mm=o.string(),cm=o.string(),rm=o.null(),lm=o.union([cm,rm]),t=o.object({id:sm,target_id:am,target_type:im,type:mm,task_type:lm.optional()}),Sm=t,Am=o.array(Sm),bm=o.string(),Cm=o.object({title:Zi,file:om,workflow_position:em,id:nm,transitions:Am,schedule:bm}),gm=Cm,hm=o.array(gm),pm=o.string(),um=o.string(),dm=o.number(),Vm=o.array(dm),fm=o.string(),Jm=t,Im=o.array(Jm),Rm=o.boolean(),Dm=o.string(),ym=o.boolean(),Tm=o.object({title:pm,file:um,workflow_position:Vm,id:fm,transitions:Im,enabled:Rm,path:Dm,is_initial:ym}),Fm=Tm,Em=o.array(Fm),km=o.string(),Lm=o.string(),Gm=o.number(),jm=o.array(Gm),Pm=o.string(),Nm=t,Wm=o.array(Nm),_m=o.string(),Mm=o.null(),wm=o.union([_m,Mm]),xm=o.string(),vm=o.string(),Om=o.null(),Hm=o.union([vm,Om]),qm=o.string(),Um=o.boolean(),Bm=o.object({variable_name:qm,enabled:Um}),zm=o.boolean(),Km=o.string(),$m=o.null(),Qm=o.union([Km,$m]),Xm=o.string(),Ym=o.null(),Zm=o.union([Xm,Ym]),oc=o.boolean(),tc=o.boolean(),ec=o.boolean(),nc=o.string(),sc=o.array(nc),ac=o.object({is_public:ec,required_roles:sc}),ic=o.string(),mc=o.null(),cc=o.union([ic,mc]),rc=o.string(),lc=o.null(),Sc=o.union([rc,lc]),Ac=o.string(),bc=o.null(),Cc=o.union([Ac,bc]),gc=o.object({title:km,file:Lm,workflow_position:jm,id:Pm,transitions:Wm,restart_button_text:wm,path:xm,end_message:Hm,notification_trigger:Bm,auto_start:zm,start_button_text:Qm,timeout_message:Zm,allow_restart:oc,is_initial:tc,access_control:ac,welcome_title:cc,start_message:Sc,error_message:Cc}),hc=gc,pc=o.array(hc),uc=o.string(),dc=o.string(),Vc=o.number(),fc=o.array(Vc),Jc=o.string(),Ic=t,Rc=o.array(Ic),Dc=o.boolean(),yc=o.object({title:uc,file:dc,workflow_position:fc,id:Jc,transitions:Rc,is_initial:Dc}),Tc=yc,Fc=o.array(Tc),Ec=o.string(),kc=o.string(),Lc=o.string().uuid(),Gc=o.null(),jc=o.union([Lc,Gc]),Pc=o.number(),Nc=o.array(Pc),Wc=t,_c=o.array(Wc),Mc=o.string().uuid(),wc=o.null(),xc=o.union([Mc,wc]),vc=o.object({id:Ec,title:kc,project_id:jc,workflow_position:Nc,transitions:_c,client_stage_id:xc}),Oc=o.array(vc),Hc=o.string(),qc=o.string(),Uc=o.number(),Bc=o.array(Uc),zc=t,Kc=o.array(zc),$c=o.object({id:Hc,title:qc,workflow_position:Bc,transitions:Kc}),Qc=o.array($c),Xc=o.literal("13.0");o.object({workspace:zi,home:Yi,jobs:hm,hooks:Em,forms:pc,scripts:Fc,agents:Oc,clients:Qc,version:Xc});const Yc=o.string(),Zc=o.string(),or=o.string(),tr=o.null(),er=o.union([or,tr]),nr=o.string(),sr=o.null(),ar=o.union([nr,sr]),ir=o.string(),mr=o.null(),cr=o.union([ir,mr]),rr=o.string(),lr=o.null(),Sr=o.union([rr,lr]),Ar=o.string(),br=o.null(),Cr=o.union([Ar,br]),gr=o.string(),hr=o.null(),pr=o.union([gr,hr]),ur=o.string(),dr=o.null(),Vr=o.union([ur,dr]),fr=o.object({name:Yc,language:Zc,theme:er,logo_url:ar,favicon_url:cr,brand_name:Sr,main_color:Cr,font_family:pr,font_color:Vr}),Jr=o.boolean(),Ir=o.string(),Rr=o.array(Ir),Dr=o.object({is_public:Jr,required_roles:Rr}),yr=o.object({access_control:Dr}),Tr=o.string(),Fr=o.string(),Er=o.number(),kr=o.array(Er),Lr=o.string(),Gr=o.string(),jr=o.string(),Pr=o.string(),Nr=o.string(),Wr=o.string(),_r=o.null(),Mr=o.union([Wr,_r]),i=o.object({id:Gr,target_id:jr,target_type:Pr,type:Nr,task_type:Mr.optional()}),wr=i,xr=o.array(wr),vr=o.string(),Or=o.object({title:Tr,file:Fr,workflow_position:kr,id:Lr,transitions:xr,schedule:vr}),Hr=Or,qr=o.array(Hr),Ur=o.string(),Br=o.string(),zr=o.number(),Kr=o.array(zr),$r=o.string(),Qr=i,Xr=o.array(Qr),Yr=o.boolean(),Zr=o.string(),ol=o.boolean(),tl=o.object({title:Ur,file:Br,workflow_position:Kr,id:$r,transitions:Xr,enabled:Yr,path:Zr,is_initial:ol}),el=tl,nl=o.array(el),sl=o.string(),al=o.string(),il=o.number(),ml=o.array(il),cl=o.string(),rl=i,ll=o.array(rl),Sl=o.string(),Al=o.null(),bl=o.union([Sl,Al]),Cl=o.string(),gl=o.string(),hl=o.null(),pl=o.union([gl,hl]),ul=o.string(),dl=o.boolean(),Vl=o.object({variable_name:ul,enabled:dl}),fl=o.boolean(),Jl=o.string(),Il=o.null(),Rl=o.union([Jl,Il]),Dl=o.string(),yl=o.null(),Tl=o.union([Dl,yl]),Fl=o.boolean(),El=o.boolean(),kl=o.boolean(),Ll=o.string(),Gl=o.array(Ll),jl=o.object({is_public:kl,required_roles:Gl}),Pl=o.string(),Nl=o.null(),Wl=o.union([Pl,Nl]),_l=o.string(),Ml=o.null(),wl=o.union([_l,Ml]),xl=o.string(),vl=o.null(),Ol=o.union([xl,vl]),Hl=o.object({title:sl,file:al,workflow_position:ml,id:cl,transitions:ll,restart_button_text:bl,path:Cl,end_message:pl,notification_trigger:Vl,auto_start:fl,start_button_text:Rl,timeout_message:Tl,allow_restart:Fl,is_initial:El,access_control:jl,welcome_title:Wl,start_message:wl,error_message:Ol}),ql=Hl,Ul=o.array(ql),Bl=o.string(),zl=o.string(),Kl=o.number(),$l=o.array(Kl),Ql=o.string(),Xl=i,Yl=o.array(Xl),Zl=o.boolean(),oS=o.object({title:Bl,file:zl,workflow_position:$l,id:Ql,transitions:Yl,is_initial:Zl}),tS=oS,eS=o.array(tS),nS=o.literal("12.0");o.object({workspace:fr,home:yr,jobs:qr,hooks:nl,forms:Ul,scripts:eS,version:nS});const sS=o.enum(["true","false"]),aS=o.enum(["true","false"]),iS=o.enum(["true","false"]),mS=o.string().regex(new RegExp("^[0-9]+m$")),cS=o.string().regex(new RegExp("^[0-9]+m$")),rS=o.string().regex(new RegExp("^[0-9]+Mi$")),lS=o.string().regex(new RegExp("^[0-9]+Mi$")),SS=o.string().regex(new RegExp("^[0-9]+$")),AS=o.number(),bS=o.string().regex(new RegExp("^[0-9]+$")),CS=o.string(),gS=o.enum(["3.9","3.10","3.11","3.12"]),hS=o.string(),pS=o.string();o.object({watermarkEnabled:sS.optional(),nativeTempDir:aS.optional(),notificationsEnabled:iS.optional(),requestsCPU:mS.optional(),limitsCPU:cS.optional(),requestsMemory:rS.optional(),limitsMemory:lS.optional(),minReplicas:SS.optional(),computeUnits:AS.optional(),timeoutSeconds:bS.optional(),workerType:CS.optional(),pythonVersion:gS.optional(),workerNumber:hS.optional(),baseDockerfile:pS.optional()});const uS=o.enum(["true","false"]),dS=o.enum(["true","false"]),VS=o.enum(["true","false"]),fS=o.string().regex(new RegExp("^[0-9]+m$")),JS=o.string().regex(new RegExp("^[0-9]+m$")),IS=o.string().regex(new RegExp("^[0-9]+Mi$")),RS=o.string().regex(new RegExp("^[0-9]+Mi$")),DS=o.string().regex(new RegExp("^[0-9]+$")),yS=o.number(),TS=o.string().regex(new RegExp("^[0-9]+$")),FS=o.string(),ES=o.enum(["3.9","3.10","3.11","3.12"]),kS=o.string(),LS=o.string();o.object({watermarkEnabled:uS.optional(),seleniumInstanceEnabled:dS.optional(),notificationsEnabled:VS.optional(),requestsCPU:fS.optional(),limitsCPU:JS.optional(),requestsMemory:IS.optional(),limitsMemory:RS.optional(),minReplicas:DS.optional(),computeUnits:yS.optional(),timeoutSeconds:TS.optional(),workerType:FS.optional(),pythonVersion:ES.optional(),workerNumber:kS.optional(),baseDockerfile:LS.optional()});const GS=o.enum(["file","directory"]),jS=o.string(),PS=o.string(),NS=o.string().datetime({local:!0}),WS=o.number(),_S=o.string(),MS=o.number(),wS=o.object({type:GS,path:jS,name:PS,date:NS,sizeBytes:WS.optional(),sizeHuman:_S.optional(),itemCount:MS.optional()}),xS=o.literal("replace-code"),vS=o.string(),OS=o.string(),HS=o.literal("replace-code"),qS=o.object({action:xS,actionLabel:vS,newCode:OS,type:HS.optional()}),US=qS,BS=o.literal("edit-stage-name"),zS=o.string(),KS=o.string(),$S=o.literal("edit-stage-name"),QS=o.object({action:BS,actionLabel:zS,newName:KS,type:$S.optional()}),XS=QS,YS=o.literal("add-notifiable-email"),ZS=o.string(),oA=o.string(),tA=o.object({action:YS,actionLabel:ZS,email:oA}),eA=tA,nA=o.literal("edit-stage-filename"),sA=o.string(),aA=o.string(),iA=o.literal("edit-stage-filename"),mA=o.object({action:nA,actionLabel:sA,newFilename:aA,type:iA.optional()}),cA=mA,rA=o.union([US,XS,eA,cA]),lA=o.array(rA);o.object({actions:lA});const SA=o.literal("create-table"),AA=o.string(),bA=o.string().uuid(),CA=o.string(),gA=o.object({action:SA,actionLabel:AA,tableId:bA,tableName:CA}),hA=gA,pA=o.literal("create-column"),uA=o.string(),dA=o.string().uuid(),VA=o.string(),fA=o.enum(["varchar","int","boolean","json","date","timestamp","uuid","real"]),JA=o.boolean(),IA=o.string(),RA=o.boolean(),DA=o.object({action:pA,actionLabel:uA,tableId:dA,columnName:VA,columnType:fA,nullable:JA,default:IA,unique:RA}),yA=DA,TA=o.literal("insert-rows"),FA=o.string(),EA=o.string().uuid(),kA=o.record(o.any()),LA=o.array(kA),GA=o.object({action:TA,actionLabel:FA,tableId:EA,rows:LA}),jA=GA,PA=o.literal("edit-table"),NA=o.string(),WA=o.string().uuid(),_A=o.string(),MA=o.object({action:PA,actionLabel:NA,tableId:WA,newTableName:_A}),wA=MA,xA=o.literal("edit-column"),vA=o.string(),OA=o.string().uuid(),HA=o.string().uuid(),qA=o.string(),UA=o.enum(["varchar","int","boolean","json","date","timestamp","uuid","real"]),BA=o.boolean(),zA=o.string(),KA=o.boolean(),$A=o.string().uuid(),QA=o.object({columnId:$A}),XA=o.object({columnName:qA.optional(),columnType:UA.optional(),nullable:BA.optional(),default:zA.optional(),unique:KA.optional(),foreignKey:QA.optional()}),YA=o.object({action:xA,actionLabel:vA,columnId:OA,tableId:HA,changes:XA}),ZA=YA,ob=o.literal("edit-env-var"),tb=o.string(),eb=o.string(),nb=o.string(),sb=o.object({action:ob,actionLabel:tb,key:eb,newValue:nb}),ab=sb,ib=o.literal("set-env-var"),mb=o.string(),cb=o.string(),rb=o.string(),lb=o.object({action:ib,actionLabel:mb,key:cb,value:rb}),Sb=lb,Ab=o.literal("install-package"),bb=o.string(),Cb=o.string(),gb=o.object({action:Ab,actionLabel:bb,packageName:Cb}),hb=gb,pb=o.literal("create-stage"),ub=o.string(),db=o.string().uuid(),Vb=o.enum(["form","job","hook","tasklet"]),fb=o.string(),Jb=o.string(),Ib=o.string(),Rb=o.number(),Db=o.number(),yb=o.object({x:Rb,y:Db}),Tb=o.literal("create-stage"),Fb=o.object({action:pb,actionLabel:ub,id:db,stageType:Vb,stageName:fb,code:Jb,filename:Ib,position:yb,type:Tb.optional()}),Eb=Fb,kb=o.literal("add-transition"),Lb=o.string(),Gb=o.string().uuid(),jb=o.string().uuid(),Pb=o.object({action:kb,actionLabel:Lb,sourceStageId:Gb,targetStageId:jb}),Nb=Pb,Wb=o.literal("edit-stage"),_b=o.string(),Mb=o.string().uuid(),wb=o.enum(["form","job","hook","tasklet"]),xb=o.string(),vb=o.object({action:Wb,actionLabel:_b,stageId:Mb,stageType:wb,stageNewTitle:xb}),Ob=vb,Hb=o.union([hA,yA,jA,wA,ZA,ab,Sb,hb,Eb,Nb,Ob]),qb=o.array(Hb);o.object({actions:qb});const Ub=o.literal("replace-code"),Bb=o.string(),zb=o.number(),Kb=o.number(),$b=o.object({start:zb,end:Kb}),Qb=o.string(),Xb=o.object({action:Ub,actionLabel:Bb,lines:$b,newCode:Qb}),Yb=Xb,Zb=o.literal("edit-stage-name"),oC=o.string(),tC=o.string(),eC=o.object({action:Zb,actionLabel:oC,newName:tC}),nC=eC,sC=o.literal("add-notifiable-email"),aC=o.string(),iC=o.string(),mC=o.object({action:sC,actionLabel:aC,email:iC}),cC=mC,rC=o.union([Yb,nC,cC]),lC=o.array(rC);o.object({actions:lC});const SC=o.literal("create-table"),AC=o.string(),bC=o.string().uuid(),CC=o.string(),gC=o.object({action:SC,actionLabel:AC,tableId:bC,tableName:CC}),hC=gC,pC=o.literal("create-column"),uC=o.string(),dC=o.string().uuid(),VC=o.string(),fC=o.enum(["varchar","int","boolean","json","date","timestamp","uuid","real"]),JC=o.object({action:pC,actionLabel:uC,tableId:dC,columnName:VC,columnType:fC}),IC=JC,RC=o.literal("set-env-var"),DC=o.string(),yC=o.string(),TC=o.string(),FC=o.object({action:RC,actionLabel:DC,key:yC,value:TC}),EC=FC,kC=o.literal("create-stage"),LC=o.string(),GC=o.string().uuid(),jC=o.enum(["form","job","hook","tasklet"]),PC=o.string(),NC=o.string(),WC=o.string(),_C=o.number(),MC=o.number(),wC=o.object({x:_C,y:MC}),xC=o.object({action:kC,actionLabel:LC,id:GC,stageType:jC,stageName:PC,code:NC,filename:WC,position:wC}),vC=xC,OC=o.literal("add-transition"),HC=o.string(),qC=o.string().uuid(),UC=o.string().uuid(),BC=o.object({action:OC,actionLabel:HC,sourceStageId:qC,targetStageId:UC}),zC=BC,KC=o.union([hC,IC,EC,vC,zC]),$C=o.array(KC);o.object({actions:$C});const QC=g,XC=h,YC=p,ZC=u;o.object({id:QC,name:XC,featureFlags:YC,billingMetadata:ZC});const og=m;o.object({description:og});const tg=o.number(),eg=o.number();o.object({offset:tg.optional(),limit:eg.optional()});const ng=q;o.array(ng);const sg=A,ag=m;o.object({name:sg,description:ag.optional()});const ig=wS,mg=o.array(ig),cg=o.number();o.object({items:mg,totalCount:cg});const rg=n,lg=r;o.object({email:rg.optional(),roles:lg.optional()});const Sg=o.number(),Ag=o.number();o.object({offset:Sg.optional(),limit:Ag.optional()});const bg=ht;o.array(bg);const Cg=n,gg=r;o.object({email:Cg,roles:gg});const hg=b;o.object({emailPatterns:hg});const pg=C;o.object({projectId:pg});const ug=o.literal("tokens"),dg=o.record(o.string());o.object({type:ug,tokens:dg});const Vg=o.string(),fg=o.number(),Jg=o.number(),Ig=o.number(),Rg=o.number(),Dg=o.number(),yg=o.object({stageId:Vg,pendingTasks:fg,completedTasks:Jg,lockedTasks:Ig,totalTasks:Rg,averageCompletionSeconds:Dg.optional()});o.array(yg);const Tg=o.string(),Fg=o.string();o.object({redirect:Tg,ping:Fg});const Eg=o.string(),kg=o.record(o.any()),Lg=o.string(),Gg=o.object({key:Eg,value:kg,type:Lg}),jg=Gg,Pg=o.array(jg),Ng=o.string(),Wg=o.string(),_g=o.record(o.any()),d=o.enum(["waiting","running","processing","finished","failed","abandoned"]),Mg=o.string(),wg=o.string(),xg=o.string(),vg=o.string();o.object({id:Ng,stage:Wg,data:_g,status:d,created_at:Mg,updated_at:wg,parent_id:xg.optional(),execution_id:vg.optional()});const Og=o.string(),Hg=o.string(),qg=o.string(),Ug=o.string(),Bg=d,zg=Pg,Kg=o.string(),$g=o.object({id:Og,created_at:Hg,updated_at:qg.optional(),assignee:Ug.optional(),status:Bg,content:zg,stage:Kg.optional()}),Qg=$g,V=o.array(Qg),Xg=o.string(),Yg=o.enum(["form","hook","job","script"]),Zg=o.string(),oh=o.string(),th=o.boolean(),f=o.object({id:Xg,type:Yg,title:Zg,path:oh.optional(),can_be_started:th}),eh=f,nh=V,sh=o.number(),ah=o.boolean(),ih=o.object({selected_stage:eh,stage_run_cards:nh,total_count:sh,loading:ah.optional()}),mh=ih,ch=o.array(mh),rh=ch;o.object({columns:rh});const lh=V,Sh=o.string(),Ah=o.array(Sh),bh=o.number();o.object({stage_run_cards:lh,not_found_stages:Ah,total_count:bh});const Ch=f;o.array(Ch);const gh=o.string(),hh=gh,ph=o.literal("text"),uh=o.string(),dh=o.object({type:ph,text:uh}),Vh=o.literal("file"),fh=o.string(),Jh=o.string(),Ih=o.object({type:Vh,fileName:fh,fileContent:Jh}),Rh=o.union([dh,Ih]),Dh=o.array(Rh),yh=Dh,Th=o.record(o.any()),Fh=o.string();o.object({conversationId:hh,content:yh,context:Th,humanApproval:Fh.optional()});const Eh=o.string(),kh=o.enum(["changed","created","deleted","moved"]),Lh=o.string(),Uu=o.object({filepath:Eh,event:kh,content:Lh.optional()}),Gh=o.string(),jh=o.string(),Ph=o.literal("bug"),Nh=o.string(),Wh=o.string(),_h=o.string(),Mh=o.object({name:Wh,label:_h}),wh=Mh,xh=o.array(wh),vh=o.object({label:Nh,fixes:xh}),Oh=vh,Hh=o.array(Oh),qh=o.object({name:Gh,label:jh,type:Ph,issues:Hh}),Uh=o.string();o.object({waitingRoomUrl:Uh});const Bh=o.string(),zh=o.string(),Kh=o.object({name:Bh,value:zh}),$h=o.string(),Bu=o.object({separator:$h}),Qh=o.boolean(),zu=o.object({ok:Qh.optional()}),Xh=S,Yh=o.enum(["form","hook","job","script"]),Zh=o.string(),op=o.object({type:Yh,id:Zh}),tp=o.array(op),ep=o.object({file:Xh,stages:tp}),Ku=o.array(ep),np=o.boolean(),$u=o.object({ok:np.optional()}),sp=o.string(),ap=o.array(sp),ip=o.string(),mp=o.array(ip),Qu=o.object({pathParts:ap,newPathParts:mp}),cp=o.boolean(),Xu=o.object({ok:cp.optional()}),rp=o.string(),lp=o.number(),Sp=o.enum(["delete","insert"]),Ap=o.string(),bp=o.number(),Cp=o.object({siteId:rp,pos:lp,type:Sp,value:Ap.optional(),length:bp.optional()});o.array(Cp);const gp=o.boolean(),Yu=o.object({ok:gp.optional()}),Zu=S,hp=o.boolean();o.object({success:hp});const pp=qh;o.array(pp);const up=Kh;o.array(up);const dp=o.string();o.object({message:dp});const Vp=o.boolean(),fp=o.string(),od=o.object({success:Vp,message:fp}),Jp=o.string();o.object({commitHash:Jp});const Ip=o.boolean(),Rp=o.string(),td=o.object({success:Ip,message:Rp}),Dp=o.boolean(),yp=o.string(),ed=o.object({success:Dp,message:yp}),Tp=o.boolean(),Fp=o.string(),nd=o.object({success:Tp,message:Fp}),Ep=o.record(o.string()),kp=o.boolean(),sd=o.object({remotes:Ep,hasAbstraRemote:kp}),Lp=o.string(),Gp=o.string();o.object({branch:Lp.optional(),commitHash:Gp.optional()});const jp=o.boolean(),Pp=o.string(),ad=o.object({success:jp,message:Pp}),Np=o.boolean(),Wp=o.boolean(),_p=o.boolean(),Mp=o.string(),wp=o.string(),xp=o.array(wp),vp=o.string(),Op=o.string(),Hp=o.string(),qp=o.string(),Up=o.object({hash:vp,message:Op,author:Hp,date:qp}).nullable(),Bp=o.boolean(),zp=o.string(),Kp=o.array(zp),$p=o.string(),Qp=o.string(),Xp=o.string(),Yp=o.object({path:$p,status:Qp,statusCode:Xp}),Zp=o.array(Yp),ou=o.boolean(),tu=o.string().nullable(),eu=o.boolean(),nu=o.boolean(),su=o.string().nullable(),au=o.string(),iu=o.array(au),mu=o.number(),cu=o.number(),ru=o.object({ahead:mu,behind:cu}).nullable(),lu=o.object({success:ou,remoteCommit:tu,hasRemoteChanges:eu,hasConflicts:nu,message:su,availableBranches:iu,aheadBehind:ru}).nullable(),id=o.object({available:Np,gitInstalled:Wp,isMonorepo:_p,branch:Mp,branches:xp,lastCommit:Up,hasChanges:Bp,changedFiles:Kp,changedFilesWithStatus:Zp,remoteStatus:lu}),Su=o.string(),Au=o.string(),bu=o.string(),Cu=o.string(),gu=o.object({hash:Su,message:Au,author:bu,date:Cu}),hu=o.array(gu),pu=o.boolean(),md=o.object({commits:hu,hasMore:pu}),uu=o.boolean(),du=o.string(),cd=o.object({success:uu,message:du}),Vu=n;o.object({email:Vu});const fu=o.enum(["ALLOWED","UNAUTHORIZED","FORBIDEN","NOT_FOUND"]);o.object({status:fu});const Ju=o.string(),Iu=o.string().datetime({local:!0}),Ru=o.enum(["user","assistant"]),Du=o.string(),yu=o.literal("text"),Tu=o.string(),Fu=o.object({type:yu,text:Tu}),Eu=o.literal("image_url"),ku=o.string(),Lu=o.object({url:ku}),Gu=o.object({type:Eu,image_url:Lu}),ju=o.union([Fu,Gu]),Pu=o.array(ju),Nu=o.union([Du,Pu]),Wu=o.string().datetime({local:!0}),_u=o.string(),Mu=o.string(),wu=o.object({role:Ru,content:Nu,createdAt:Wu,toolTitle:_u.optional(),toolCallId:Mu.optional()}),xu=o.array(wu),vu=o.object({id:Ju,createdAt:Iu,messages:xu}),Ou=vu;o.array(Ou);export{Uu as A,Ku as a,Zu as b,zu as c,Yu as d,Qu as e,Xu as f,$u as g,Bu as h,id as i,ad as j,nd as k,od as l,cd as m,ed as n,sd as o,td as p,md as q};
2
- //# sourceMappingURL=contracts.generated.8ad36e63.js.map
@@ -1,2 +0,0 @@
1
- import{W as c,dQ as s,dR as i}from"./jwt-decode.esm.c9c37cdc.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]="15ce6034-0ceb-4bd5-adf7-13e8221d5393",e._sentryDebugIdIdentifier="sentry-dbid-15ce6034-0ceb-4bd5-adf7-13e8221d5393")}catch{}})();const{DatePicker:n,WeekPicker:t,MonthPicker:r,YearPicker:f,TimePicker:m,QuarterPicker:o,RangePicker:d}=s(i),u=c(n,{WeekPicker:t,MonthPicker:r,YearPicker:f,RangePicker:d,TimePicker:m,QuarterPicker:o,install:e=>(e.component(n.name,n),e.component(d.name,d),e.component(r.name,r),e.component(t.name,t),e.component(o.name,o),e)});export{u as D,r as M,o as Q,d as R,t as W};
2
- //# sourceMappingURL=dayjs.304f38f8.js.map
@@ -1,2 +0,0 @@
1
- var O=Object.defineProperty;var $=(o,t,e)=>t in o?O(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e;var R=(o,t,e)=>($(o,typeof t!="symbol"?t+"":t,e),e);import{d as D,c as v,r as p,w as y,o as P,a as U,b as h,e as I,f as b,u as l,S as B,g as j,t as T,i as C,A as N,T as z,h as W,M as F,_ as H,j as G,k as J,l as S,m as q,n as K,p as Y,q as Q,s as k,v as X,x as Z,y as ee,z as m,B as te,C as oe,D as ae,E as ne,F as se,P as re,G as ie,H as ce,I as le,J as L,K as ue,L as de,N as pe,O as _e}from"./jwt-decode.esm.c9c37cdc.js";import{r as fe,g as ge,a as me}from"./router.4168cc71.js";import{u as he,s as ve}from"./workspaceStore.5a435520.js";import{u as ye}from"./useCodebaseEvents.ffe057d1.js";import{z as be,d as E}from"./index.da4f9d54.js";import{A as we}from"./constants.534f67bc.js";import"./contracts.generated.8ad36e63.js";import"./linters.7fec18d9.js";import"./userStore.d962fba4.js";import"./url.9e033350.js";import"./colorHelpers.8ba18214.js";import"./asyncComputed.7bc1692e.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]="2a0a017e-9b96-411d-b634-e80c538eadf3",o._sentryDebugIdIdentifier="sentry-dbid-2a0a017e-9b96-411d-b634-e80c538eadf3")}catch{}})();const Le={style:{"text-align":"center",padding:"20px"}},Ee=D({__name:"ConnectionModal",props:{open:{type:Boolean},port:{}},emits:["update:open"],setup(o,{emit:t}){const e=o,s=v({get:()=>e.open,set:a=>t("update:open",a)}),r=p(!1);return y(()=>e.open,a=>{if(a){r.value=!1;const n=setTimeout(()=>{r.value=!0},1e4);return()=>clearTimeout(n)}else r.value=!1}),(a,n)=>(P(),U(l(F),{open:s.value,"onUpdate:open":n[0]||(n[0]=u=>s.value=u),closable:!1,"mask-closable":!1,keyboard:!1,footer:null,width:400,centered:""},{default:h(()=>[I("div",Le,[b(l(B),{size:"large"}),b(l(N),{level:4},{default:h(()=>[j(T(l(C).translate("i18n_editor_connection_modal_connecting")),1)]),_:1}),r.value?(P(),U(l(z),{key:0},{default:h(()=>[j(T(l(C).translate("i18n_editor_connection_modal_timeout_message")),1)]),_:1})):W("",!0)])]),_:1},8,["open"]))}});const Pe=H(Ee,[["__scopeId","data-v-970fff16"]]),Ue={style:{height:"100vh","box-sizing":"border-box",width:"100%"}},Re=D({__name:"App",setup(o){const t=ye(),e=p(!1);y(t.isConnected,async a=>{e.value=!a},{immediate:!0});const s={token:{colorPrimary:"#d14056",colorLink:"#d14056",colorLinkHover:"#aa3446"}},r=v(()=>{switch((typeof localStorage<"u"?localStorage.getItem("locale"):null)||navigator.language.split(/[-_]/)[0]){case"pt":return Q;case"es":return Y;case"de":return K;case"fr":return q;case"zh":return be;case"hi":return S;default:return S}});return(a,n)=>{const u=G("RouterView");return P(),U(l(J),{theme:s,locale:r.value,"page-header":{ghost:!1}},{default:h(()=>[I("div",Ue,[b(u)]),b(Pe,{open:e.value,"onUpdate:open":n[0]||(n[0]=g=>e.value=g)},null,8,["open"])]),_:1},8,["locale"])}}});class V{async getLogin(){return await(await fetch("/_editor/api/login")).json()}async createLogin(t){return(await fetch("/_editor/api/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:t})})).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(t){return we.CLOUD+"/api-key?"+new URLSearchParams(t)}}const A="h97k86ks",f=class{static boot(t,e){f.booted||(E.Intercom({app_id:A}),E.boot({api_base:"https://api-iam.intercom.io",app_id:A,name:t,email:t,user_hash:e,hide_default_launcher:!0,custom_launcher_selector:".intercom-launcher"}),f.booted=!0)}static shutdown(){E.shutdown(),f.booted=!1}};let _=f;R(_,"booted",!1);const je={"console-url":"https://cloud.abstra.io"},Te=o=>{const t="VITE_"+k.toUpper(k.snakeCase(o)),e={VITE_SENTRY_RELEASE:"230d57be0bbae16a19fe7e7c161fa674bd7d3e5a",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}[t];return e||je[o]},d={consoleUrl:Te("console-url")},Ce=X("cloud-project",()=>{const o=new V,t=p(null),e=p(null),s=v(()=>{var i,c;return(c=(i=t.value)==null?void 0:i.logged)!=null?c:!1}),r=p(null),a=v(()=>e.value?{project:`${d.consoleUrl}/projects/${e.value.id}`,users:`${d.consoleUrl}/projects/${e.value.id}/access-control?selected-panel=users`,roles:`${d.consoleUrl}/projects/${e.value.id}/access-control?selected-panel=roles`,builds:`${d.consoleUrl}/projects/${e.value.id}/builds`,login:`${d.consoleUrl}/api-key`}:null),n=async()=>{!s.value||(await o.deleteLogin(),window.open(location.origin+"/_editor","_self"))},u=async i=>{const c=await o.createLogin(i);t.value=c,c.logged&&await g()},g=async()=>e.value=await o.getCloudProject();(async()=>{r.value=await o.getPublicUrl()})();const x=async()=>t.value?t.value:(t.value=await o.getLogin(),t.value.logged);return y(()=>t.value,g),y(()=>t.value,async i=>{if(i&&"info"in i){const{email:c,intercomHash:M}=i.info;_.boot(c,M)}else _.shutdown()}),{loadLogin:x,createLogin:u,deleteLogin:n,publicUrl:r,loginInfo:t,cloudProject:e,isLogged:s,links:a}}),Se=fe.map(o=>({...o,meta:{...o.meta,playerRoute:!0}})),w=Z({history:ee("/"),routes:[{path:"/_editor/",name:"app",component:()=>m(()=>import("./Home.19a2303b.js"),["assets/Home.19a2303b.js","assets/jwt-decode.esm.c9c37cdc.js","assets/jwt-decode.c5760184.css","assets/fetch.452c58e5.js","assets/polling.4db5ee9a.js","assets/Home.afb8d9a6.css"]),children:[{path:"",name:"editor",component:()=>m(()=>import("./NewEditor.d65a400f.js"),["assets/NewEditor.d65a400f.js","assets/asyncComputed.7bc1692e.js","assets/jwt-decode.esm.c9c37cdc.js","assets/jwt-decode.c5760184.css","assets/contracts.generated.8ad36e63.js","assets/linters.7fec18d9.js","assets/workspaceStore.5a435520.js","assets/userStore.d962fba4.js","assets/url.9e033350.js","assets/colorHelpers.8ba18214.js","assets/record.a33d29b1.js","assets/PhWarningCircle.vue.05a40bc4.js","assets/Card.38a860a4.js","assets/router.a8616541.js","assets/index.da4f9d54.js","assets/metadata.e627ddda.js","assets/PhWebhooksLogo.vue.e4752384.js","assets/LogsController.2dceb3d3.js","assets/ant-design.4efc9ccd.js","assets/string.8fab6b53.js","assets/PhCopy.vue.29934bc2.js","assets/index.bc97991a.js","assets/build.a8637e29.js","assets/tables.2e1c934b.js","assets/repository.c0d70cb2.js","assets/LoadingOutlined.e309ab16.js","assets/polling.4db5ee9a.js","assets/LogsController.0ff97ed4.css","assets/omniChatStore.508e8ece.js","assets/uuid.8581bc03.js","assets/PhCopySimple.vue.0241af8c.js","assets/omniChatStore.b58e3bed.css","assets/datetime.89495471.js","assets/OmniChat.c3de8733.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang.b1a71740.js","assets/Logo.d77d5637.js","assets/Logo.b7d81119.css","assets/files.8999afd5.js","assets/PhClockCounterClockwise.vue.4bd682d8.js","assets/PhDatabase.vue.fdfb515c.js","assets/index.e5cb42a1.js","assets/index.b74c262c.js","assets/OmniChat.60ee26c8.css","assets/AbstraButton.vue_vue_type_script_setup_true_lang.a3ba2a31.js","assets/constants.534f67bc.js","assets/PhTranslate.vue.2ce651a6.js","assets/PhArrowSquareOut.vue.bcbdb6e7.js","assets/PhRocket.vue.7155b91f.js","assets/PhSignOut.vue.2af17bd7.js","assets/useCodebaseEvents.ffe057d1.js","assets/PhDownloadSimple.vue.f1245c40.js","assets/PhFilePlus.vue.c39ff1a9.js","assets/PhPencilSimple.vue.15a2b403.js","assets/CloseCircleOutlined.4c4707d8.js","assets/PhFolderPlus.vue.bc40161e.js","assets/tasksController.1feffcfe.js","assets/vue-flow-core.41c647da.js","assets/os.f08724fb.js","assets/ContentLayout.b1c94c2b.js","assets/ContentLayout.cdae7d24.css","assets/fetch.452c58e5.js","assets/repository.5190b94f.js","assets/SaveButton.c3f2a4bb.js","assets/ExclamationCircleOutlined.5d5c3f30.js","assets/SaveButton.363ea20f.css","assets/View.vue_vue_type_script_setup_true_lang.285b5e2c.js","assets/CrudView.75a430a4.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.a9c8118b.js","assets/PhDotsThreeVertical.vue.7a0e0638.js","assets/CrudView.8abe5bc2.css","assets/PhPencil.vue.a7219766.js","assets/PlayerNavbar.117f184b.js","assets/PlayerNavbar.4dc29a45.css","assets/PlayerConfigProvider.00af5968.js","assets/PlayerConfigProvider.1ce9d3b1.css","assets/LoadingContainer.97fa8f2e.js","assets/LoadingContainer.56fa997a.css","assets/ScrollArea.vue_vue_type_script_setup_true_lang.cb5567cd.js","assets/PhGear.vue.0feed515.js","assets/PhFileArrowUp.vue.c292afe1.js","assets/toggleHighContrast.6544a728.js","assets/toggleHighContrast.30d77c87.css","assets/index.d809956c.js","assets/vue-flow-background.3e9183ec.js","assets/PhArrowCounterClockwise.vue.9e570570.js","assets/FormRunner.73650f9e.js","assets/Login.vue_vue_type_script_setup_true_lang.ada1c6c9.js","assets/CircularLoading.217756fb.js","assets/CircularLoading.a8fe2dc6.css","assets/Login.ac75228f.css","assets/Steps.687763a5.js","assets/index.71eb83f3.js","assets/Steps.2880920a.css","assets/Watermark.5071a4b2.js","assets/Watermark.b0916e90.css","assets/FormRunner.1e6e7d2a.css","assets/repository.94fb77c7.js","assets/redirect.42bf4f0a.js","assets/router.4168cc71.js","assets/NewEditor.e3cfeb2c.css"])},{path:"project-login",name:"projectLogin",component:()=>m(()=>import("./ProjectLogin.d9bb1f86.js"),["assets/ProjectLogin.d9bb1f86.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang.b1a71740.js","assets/Logo.d77d5637.js","assets/jwt-decode.esm.c9c37cdc.js","assets/jwt-decode.c5760184.css","assets/Logo.b7d81119.css","assets/BaseLayout.135a51d9.js","assets/BaseLayout.e1744dcc.css","assets/index.f2beb20d.js","assets/Breadcrumb.8a82fa01.js","assets/index.e5cb42a1.js","assets/index.bc97991a.js","assets/router.4168cc71.js","assets/workspaceStore.5a435520.js","assets/userStore.d962fba4.js","assets/url.9e033350.js","assets/colorHelpers.8ba18214.js","assets/useCodebaseEvents.ffe057d1.js","assets/contracts.generated.8ad36e63.js","assets/index.da4f9d54.js","assets/constants.534f67bc.js","assets/linters.7fec18d9.js","assets/asyncComputed.7bc1692e.js","assets/ProjectLogin.21a71354.css"]),meta:{title:"Abstra Editor",allowUnauthenticated:!0}},{path:":pathMatch(.*)*",name:"editorFallback",redirect:"/_editor/"}]},{path:"/:path(.*)*",name:"player",component:()=>m(()=>import("./App.45396b70.js"),["assets/App.45396b70.js","assets/App.vue_vue_type_style_index_0_lang.db5596a1.js","assets/userStore.d962fba4.js","assets/jwt-decode.esm.c9c37cdc.js","assets/jwt-decode.c5760184.css","assets/PlayerConfigProvider.00af5968.js","assets/colorHelpers.8ba18214.js","assets/PlayerConfigProvider.1ce9d3b1.css","assets/workspaceStore.5a435520.js","assets/url.9e033350.js","assets/App.0c2736ee.css"]),children:Se}],scrollBehavior(o){if(o.hash)return{el:o.hash}}}),ke=ge(w);w.beforeEach(async(o,t)=>{if(await he().actions.fetch(),o.meta.playerRoute)return ke(o,t);te(o,t);const e=Ce();if(!o.meta.allowUnauthenticated&&!e.isLogged&&!await e.loadLogin()){const s={redirect:location.origin+"/_editor/project-login"};window.open(V.getLoginUrl(s),"_self")}});(async()=>{await ve();const o=await me(),t=oe(),e=ae({render:()=>ue(Re)});ne.init(),se(e,w,o),e.use(w),e.use(re),e.use(t),e.mount("#app"),e.component("VSelect",ie),e.component("Markdown",ce),e.component("Message",le),L(e,de),L(e,pe),L(e,_e)})();export{d as E,Ce as u};
2
- //# sourceMappingURL=editor.c1a1bd33.js.map
@@ -1,2 +0,0 @@
1
- import{C as t,E as d,K as i,a as f,M as l,c as y,P as b,R as c,S as g,b as u,T as k,U as p,e as w,l as D}from"./toggleHighContrast.6544a728.js";import"./jwt-decode.esm.c9c37cdc.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]="10170440-3eaf-4798-8f00-e8d083ab14d2",e._sentryDebugIdIdentifier="sentry-dbid-10170440-3eaf-4798-8f00-e8d083ab14d2")}catch{}})();export{t as CancellationTokenSource,d as Emitter,i as KeyCode,f as KeyMod,l as MarkerSeverity,y as MarkerTag,b as Position,c as Range,g as Selection,u as SelectionDirection,k as Token,p as Uri,w as editor,D as languages};
2
- //# sourceMappingURL=editor.main.84e237cf.js.map
@@ -1,2 +0,0 @@
1
- import"./jwt-decode.esm.c9c37cdc.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]="237c71a8-747d-4690-93ec-e7e222ec9c21",e._sentryDebugIdIdentifier="sentry-dbid-237c71a8-747d-4690-93ec-e7e222ec9c21")}catch{}})();const c=(...e)=>window.fetch(...e);export{c as l};
2
- //# sourceMappingURL=fetch.452c58e5.js.map
@@ -1,2 +0,0 @@
1
- import{k as r}from"./router.a8616541.js";import"./jwt-decode.esm.c9c37cdc.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[e]="2a7093ca-9c6f-4afe-ae07-cf7aeb298ab1",a._sentryDebugIdIdentifier="sentry-dbid-2a7093ca-9c6f-4afe-ae07-cf7aeb298ab1")}catch{}})();class i{async create(e){return r.post(`organizations/${e.organizationId}/members`,{email:e.email,folderIds:e.folderIds})}async delete(e){return r.delete(`organizations/${e.organizationId}/members/${e.authorId}`)}async list(e){return r.get(`organizations/${e}/members`)}async get(e,n){return r.get(`organizations/${e}/members/${n}`)}async update(e,n,t){return r.patch(`organizations/${e}/members/${n}`,t)}}export{i as M};
2
- //# sourceMappingURL=member.3c12efee.js.map
@@ -1,2 +0,0 @@
1
- import{C as n,D as r,E as o,F as d,P as c,G as p,H as b,I as f,J as a,K as m,L as u,N as g,O as l}from"./jwt-decode.esm.c9c37cdc.js";import{a as y,b as i}from"./router.4168cc71.js";import{s as w}from"./workspaceStore.5a435520.js";import{_ as h}from"./App.vue_vue_type_style_index_0_lang.db5596a1.js";import"./userStore.d962fba4.js";import"./url.9e033350.js";import"./colorHelpers.8ba18214.js";import"./PlayerConfigProvider.00af5968.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[s]="003a0b8b-26b1-4496-81ba-cdeb085119fd",t._sentryDebugIdIdentifier="sentry-dbid-003a0b8b-26b1-4496-81ba-cdeb085119fd")}catch{}})();class I{static init(){setInterval(()=>{fetch("/_healthcheck").catch(()=>{})},20*1e3)}}(async()=>{await w();const t=await y(),s=n(),e=r({render:()=>m(h)});o.init(),d(e,i,t),I.init(),e.use(i),e.use(s),e.use(c),e.mount("#app"),e.component("VSelect",p),e.component("Markdown",b),e.component("Message",f),a(e,u),a(e,g),a(e,l)})();
2
- //# sourceMappingURL=player.7362caf4.js.map
@@ -1,2 +0,0 @@
1
- import"./jwt-decode.esm.c9c37cdc.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]="b02e9608-28cc-400a-bea7-6f8082c2c093",e._sentryDebugIdIdentifier="sentry-dbid-b02e9608-28cc-400a-bea7-6f8082c2c093")}catch{}})();const i=1e3,d=e=>{let n=null;return{startPolling:()=>{const t=async()=>{var o;try{!document.hidden&&!e.keepPollingOnOutOfFocus&&await e.task()}finally{n=setTimeout(t,(o=e.interval)!=null?o:i)}};t()},endPolling:()=>{n&&clearTimeout(n)}}};export{d as u};
2
- //# sourceMappingURL=polling.4db5ee9a.js.map
@@ -1,2 +0,0 @@
1
- import{x as c,y as d,z as t,B as m}from"./jwt-decode.esm.c9c37cdc.js";import{a as u}from"./workspaceStore.5a435520.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]="98c1c303-89bf-4f3c-9476-eab4660625b2",e._sentryDebugIdIdentifier="sentry-dbid-98c1c303-89bf-4f3c-9476-eab4660625b2")}catch{}})();const f=async()=>{try{const e=await fetch("/_editor/api/workspace/version");return e.ok&&(await e.json()).version||"230d57be0bbae16a19fe7e7c161fa674bd7d3e5a"}catch(e){return console.error("Failed to fetch Abstra version:",e),"230d57be0bbae16a19fe7e7c161fa674bd7d3e5a"}},p=[{path:"/oidc-login-callback",name:"oidcLoginCallback",component:()=>t(()=>import("./OidcLoginCallback.66b0f38a.js"),["assets/OidcLoginCallback.66b0f38a.js","assets/workspaceStore.5a435520.js","assets/jwt-decode.esm.c9c37cdc.js","assets/jwt-decode.c5760184.css","assets/userStore.d962fba4.js","assets/url.9e033350.js","assets/colorHelpers.8ba18214.js"]),meta:{allowUnauthenticated:!0}},{path:"/oidc-logout-callback",name:"oidcLogoutCallback",component:()=>t(()=>import("./OidcLogoutCallback.48d8429a.js"),["assets/OidcLogoutCallback.48d8429a.js","assets/workspaceStore.5a435520.js","assets/jwt-decode.esm.c9c37cdc.js","assets/jwt-decode.c5760184.css","assets/userStore.d962fba4.js","assets/url.9e033350.js","assets/colorHelpers.8ba18214.js"]),meta:{allowUnauthenticated:!0}},{path:"/login",name:"playerLogin",component:()=>t(()=>import("./Login.632cada3.js"),["assets/Login.632cada3.js","assets/Login.vue_vue_type_script_setup_true_lang.ada1c6c9.js","assets/jwt-decode.esm.c9c37cdc.js","assets/jwt-decode.c5760184.css","assets/workspaceStore.5a435520.js","assets/userStore.d962fba4.js","assets/url.9e033350.js","assets/colorHelpers.8ba18214.js","assets/CircularLoading.217756fb.js","assets/CircularLoading.a8fe2dc6.css","assets/Logo.d77d5637.js","assets/Logo.b7d81119.css","assets/string.8fab6b53.js","assets/index.b74c262c.js","assets/Login.ac75228f.css","assets/Login.3b76812d.css"]),meta:{allowUnauthenticated:!0}},{path:"/",name:"main",component:()=>t(()=>import("./Main.44b7640e.js"),["assets/Main.44b7640e.js","assets/PlayerNavbar.117f184b.js","assets/userStore.d962fba4.js","assets/jwt-decode.esm.c9c37cdc.js","assets/jwt-decode.c5760184.css","assets/workspaceStore.5a435520.js","assets/url.9e033350.js","assets/colorHelpers.8ba18214.js","assets/metadata.e627ddda.js","assets/PhWebhooksLogo.vue.e4752384.js","assets/LoadingOutlined.e309ab16.js","assets/PhSignOut.vue.2af17bd7.js","assets/index.e5cb42a1.js","assets/PlayerNavbar.4dc29a45.css","assets/Main.201c14c9.css"]),redirect:{name:"main"},children:[{path:"",name:"playerHome",component:()=>t(()=>import("./Home.4eff6ce9.js"),["assets/Home.4eff6ce9.js","assets/metadata.e627ddda.js","assets/jwt-decode.esm.c9c37cdc.js","assets/jwt-decode.c5760184.css","assets/PhWebhooksLogo.vue.e4752384.js","assets/Watermark.5071a4b2.js","assets/workspaceStore.5a435520.js","assets/userStore.d962fba4.js","assets/url.9e033350.js","assets/colorHelpers.8ba18214.js","assets/constants.534f67bc.js","assets/Watermark.b0916e90.css","assets/PhArrowSquareOut.vue.bcbdb6e7.js","assets/index.90acf038.js","assets/Card.38a860a4.js","assets/LoadingOutlined.e309ab16.js","assets/Home.e8bf9440.css"]),meta:{title:"Home"}},{path:"_player/threads",redirect:{name:"playerThreads"}},{path:"error/:status",name:"error",component:()=>t(()=>import("./Error.5bd293cc.js"),["assets/Error.5bd293cc.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang.b1a71740.js","assets/Logo.d77d5637.js","assets/jwt-decode.esm.c9c37cdc.js","assets/jwt-decode.c5760184.css","assets/Logo.b7d81119.css","assets/constants.534f67bc.js","assets/workspaceStore.5a435520.js","assets/userStore.d962fba4.js","assets/url.9e033350.js","assets/colorHelpers.8ba18214.js","assets/Card.38a860a4.js","assets/Error.ef2624eb.css"]),meta:{allowUnauthenticated:!0}},{path:":path(.*)*",name:"form",component:()=>t(()=>import("./Form.a4787001.js"),["assets/Form.a4787001.js","assets/userStore.d962fba4.js","assets/jwt-decode.esm.c9c37cdc.js","assets/jwt-decode.c5760184.css","assets/FormRunner.73650f9e.js","assets/Login.vue_vue_type_script_setup_true_lang.ada1c6c9.js","assets/workspaceStore.5a435520.js","assets/url.9e033350.js","assets/colorHelpers.8ba18214.js","assets/CircularLoading.217756fb.js","assets/CircularLoading.a8fe2dc6.css","assets/Logo.d77d5637.js","assets/Logo.b7d81119.css","assets/string.8fab6b53.js","assets/index.b74c262c.js","assets/Login.ac75228f.css","assets/Steps.687763a5.js","assets/index.71eb83f3.js","assets/Steps.2880920a.css","assets/Watermark.5071a4b2.js","assets/constants.534f67bc.js","assets/Watermark.b0916e90.css","assets/FormRunner.1e6e7d2a.css","assets/redirect.42bf4f0a.js","assets/asyncComputed.7bc1692e.js","assets/uuid.8581bc03.js","assets/Form.7493bc0a.css"]),meta:{hideLogin:!0}}]}],o=c({history:d("/"),routes:p,scrollBehavior(e){if(e.hash)return{el:e.hash}}}),l=e=>async(a,r)=>{if(m(a,r),a.meta.allowUnauthenticated)return;const n=await u(a.path),{redirect:i,...s}=a.query;switch(n.status){case"ALLOWED":break;case"UNAUTHORIZED":await e.push({name:"playerLogin",query:{...s,redirect:i||a.path},params:a.params});break;case"NOT_FOUND":await e.push({name:"error",params:{status:"404"}});break;default:await e.push({name:"error",params:{status:"403"}})}};o.beforeEach(l(o));export{f as a,o as b,l as g,p as r};
2
- //# sourceMappingURL=router.4168cc71.js.map
@@ -1,4 +0,0 @@
1
- var V=Object.defineProperty;var z=(o,t,e)=>t in o?V(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e;var f=(o,t,e)=>(z(o,typeof t!="symbol"?t+"":t,e),e);import{r as O,c as G,en as K,al as Q,i as u,w as W}from"./jwt-decode.esm.c9c37cdc.js";import"./contracts.generated.8ad36e63.js";import{A as v}from"./record.a33d29b1.js";import"./linters.7fec18d9.js";import{u as X}from"./polling.4db5ee9a.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]="b9271060-802a-4a7d-b915-5a36ffd544c9",o._sentryDebugIdIdentifier="sentry-dbid-b9271060-802a-4a7d-b915-5a36ffd544c9")}catch{}})();class Y{async list(){return await(await fetch("/_editor/api/forms")).json()}async create(t,e,r,i){return await(await fetch("/_editor/api/forms",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:t,file:e,position:r,id:i})})).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":"",i=`/_editor/api/forms/${t}`+r;await fetch(i,{method:"DELETE",headers:{"Content-Type":"application/json"}})}async duplicate(t){return await(await fetch(`/_editor/api/forms/${t}/duplicate`,{method:"POST"})).json()}}const m=new Y;class w{constructor(t){f(this,"record");this.record=v.create(m,t)}static async list(){return(await m.list()).map(e=>new w(e))}static async create(t,e,r,i){const a=await m.create(t,e,r,i);return new w(a)}static async get(t){const e=await m.get(t);return e?new w(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 m.delete(this.id,t)}async duplicate(){const t=await m.duplicate(this.id);return new w(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 w(t)}}class Z{async list(){return await(await fetch("/_editor/api/hooks")).json()}async create(t,e,r,i){return await(await fetch("/_editor/api/hooks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:t,file:e,position:r,id:i})})).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":"",i=`/_editor/api/hooks/${t}`+r;await fetch(i,{method:"DELETE",headers:{"Content-Type":"application/json"}})}async run(t,e){const r=new URLSearchParams(e.query),i=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:a,headers:d,body:h}=await i.json();return{status:a,headers:d,body:h}}}const T=new Z;class b{constructor(t){f(this,"record");this.record=v.create(T,t)}static async list(){return(await T.list()).map(e=>new b(e))}static async create(t,e,r,i){const a=await T.create(t,e,r,i);return new b(a)}static async get(t){const e=await T.get(t);return e?new b(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 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 T.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 b(t)}}class q{async list(){return await(await fetch("/_editor/api/jobs")).json()}async create(t,e,r,i){return await(await fetch("/_editor/api/jobs",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:t,file:e,position:r,id:i})})).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":"",i=`/_editor/api/jobs/${t}`+r;await fetch(i,{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 S=new q;class I{constructor(t){f(this,"record");f(this,"isInitial",!0);this.record=v.create(S,t)}static async list(){return(await S.list()).map(e=>new I(e))}static async create(t,e,r,i){const a=await S.create(t,e,r,i);return new I(a)}static async get(t){const e=await S.get(t);return e?new I(e):null}async delete(t){await S.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 S.run(this.id)}get position(){const[t,e]=this.record.get("workflow_position");return{x:t,y:e}}static from(t){return new I(t)}hasChangesDeep(t){return this.record.hasChangesDeep(t)}}class F{async list(){return await(await fetch("/_editor/api/scripts")).json()}async create(t,e,r,i){return await(await fetch("/_editor/api/scripts",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:t,file:e,position:r,id:i})})).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":"",i=`/_editor/api/scripts/${t}`+r;await fetch(i,{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 _=new F;class C{constructor(t){f(this,"record");this.record=v.create(_,t)}static async list(){return(await _.list()).map(e=>new C(e))}static async create(t,e,r,i){const a=await _.create(t,e,r,i);return new C(a)}static async get(t){const e=await _.get(t);return e?new C(e):null}async delete(t){await _.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 _.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 C(t)}}function H({api:o,fetchTasks:t}){const e=O({state:"idle"}),r=()=>{e.value={state:"idle"}},i=()=>{e.value={state:"creating",name:"My task",payloadCode:`{
2
- "key": "value"
3
- }`}},a=async h=>{const g=e.value;if(g.state!=="creating")throw new Error("Payload is required to create a task");if(!d.value)return;const c=JSON.parse(g.payloadCode),p=await o.createTask(g.name,h,c);return await t(),r(),p},d=G(()=>{const h=e.value;if(h.state!=="creating")return!1;try{const g=JSON.parse(h.payloadCode);return K.exports.isObject(g)}catch{return!1}});return{createTask:a,creatingTaskState:e,cancelCreatingTask:r,startCreatingTask:i,isPayloadValid:d}}const P=["pink","orange","green","blue","purple","red","cyan","magenta","volcano","gold"],ot=({api:o,poll:t,stageId:e,status:r,stages:i})=>{const a=Q({tasks:[],sentTasks:[],colorMap:new Map,pagination:{currentIndex:0,pageSize:10,totalCount:0},filters:{stage:e,status:r,dateRange:void 0},filterOptions:{stages:[],statuses:[{label:u.translate("i18n_tasksview_status_pending"),value:"pending"},{label:u.translate("i18n_tasksview_status_running"),value:"started"},{label:u.translate("i18n_tasksview_status_completed"),value:"completed"}]}}),d=[{name:"setToPending",label:u.translate("i18n_tasksview_action_set_to_pending"),handler:()=>{a.tasks.filter(s=>s.checked).map(s=>s.id).forEach(s=>x(s))}},{name:"setToCompleted",label:u.translate("i18n_tasksview_action_set_to_completed"),handler:()=>{a.tasks.filter(s=>s.checked).map(s=>s.id).forEach(s=>E(s))}},{name:"duplicate",label:u.translate("i18n_tasksview_action_duplicate"),handler:()=>{a.tasks.filter(s=>s.checked).forEach(async s=>{await o.createTask(s.type,s.targetStageId,s.payload),c()})}}],h=O(["pending"]),g=n=>{const s=a.tasks.findIndex(y=>y.id===n.id);s!==-1?a.tasks[s]=n:a.tasks.unshift(n)},c=async()=>{const n=e?await o.getStageTasks(e):await o.getAllTasks(a.pagination,a.filters);a.tasks=n.tasks.map(s=>({key:s.id,id:s.id,type:s.type,status:s.status,targetStageId:s.targetStageId,targetStageTitle:s.targetStageTitle,targetStageType:s.targetStageType,sourceStageTitle:s.sourceStageTitle,sourceStageType:s.sourceStageType,created:{at:new Date(s.created.at).toString(),byExecutionId:s.created.byExecutionId,byStageId:s.created.byStageId},locked:s.locked?{at:new Date(s.locked.at).toString(),byExecutionId:s.locked.byExecutionId,byStageId:s.locked.byStageId}:null,completed:s.completed?{at:new Date(s.completed.at).toString(),byExecutionId:s.completed.byExecutionId,byStageId:s.completed.byStageId}:null,payload:s.payload,checked:!1})),a.pagination.totalCount=n.totalCount},p=async()=>{if(!e)return[];const n=await o.getSentStageTasks(e);a.sentTasks=n.tasks.map(s=>({key:s.id,id:s.id,type:s.type,status:s.status,targetStageId:s.targetStageId,targetStageTitle:s.targetStageTitle,targetStageType:s.targetStageType,sourceStageTitle:s.sourceStageTitle,sourceStageType:s.sourceStageType,created:{at:new Date(s.created.at).toString(),byExecutionId:s.created.byExecutionId,byStageId:s.created.byStageId},locked:s.locked?{at:new Date(s.locked.at).toString(),byExecutionId:s.locked.byExecutionId,byStageId:s.locked.byStageId}:null,completed:s.completed?{at:new Date(s.completed.at).toString(),byExecutionId:s.completed.byExecutionId,byStageId:s.completed.byStageId}:null,payload:s.payload}))},j=()=>{var y;let n=0;a.tasks.concat((y=a.sentTasks)!=null?y:[]).forEach(k=>{a.colorMap.has(k.type)||(a.colorMap.set(k.type,P[n]),n=(n+1)%P.length)})};W(a.filters,async()=>{await Promise.all([c(),p()]),j()});const D=async()=>{await Promise.all([c(),p()]),j()},{startPolling:$,endPolling:A}=X({task:D,interval:15e3}),N=async()=>{if(await Promise.all([c(),p()]),j(),i===null){const n=Promise.all([w.list(),b.list(),I.list(),C.list()]).then(([s,y,k,l])=>[...s,...y,...k,...l]);a.filterOptions.stages=(await n).map(s=>({label:s.title,value:s.id}))}else a.filterOptions.stages=i.map(n=>({label:n.stageTitle,value:n.id}));t&&$()},J=()=>{t&&A()},x=async n=>{await o.updateTaskStatus(n,"pending"),c()},E=async n=>{await o.updateTaskStatus(n,"completed"),c()},U=n=>{a.tasks=a.tasks.map(s=>(s.id===n&&(s.checked=!s.checked),s))},M=()=>{const n=[],s=a.tasks.filter(l=>l.checked);return s.length===0?[]:(n.push("duplicate"),s.every(l=>l.status==="pending")&&n.push("setToCompleted"),s.every(l=>l.status==="completed")&&n.push("setToPending"),d.filter(l=>n.includes(l.name)))},R=async()=>{await o.clearAllTasks(),c(),p()},B=()=>[{title:u.translate("i18n_tasksview_column_date"),key:"timeInfo",align:"left",width:"25%"},{title:u.translate("i18n_tasksview_column_task"),key:"stageInfo",align:"left",width:"30%"},{title:u.translate("i18n_tasksview_column_payload"),key:"payloadInfo",align:"left",width:"45%"}],L=H({api:o,fetchTasks:c});return{setup:N,tearDown:J,state:a,getColumns:B,collapseValue:h,setToPending:x,setToCompleted:E,fetchTasks:c,fetchSentTasks:p,checkTask:U,getPossibleActions:M,clearAllTasks:R,insertOrUpdate:g,...L}};export{w as F,b as H,I as J,C as S,ot as T};
4
- //# sourceMappingURL=tasksController.1feffcfe.js.map
@@ -1,2 +0,0 @@
1
- import"./jwt-decode.esm.c9c37cdc.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]="5cae76c0-a10e-4824-9af2-1dcbcddf43b3",e._sentryDebugIdIdentifier="sentry-dbid-5cae76c0-a10e-4824-9af2-1dcbcddf43b3")}catch{}})();const d=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(([a,s])=>{t.searchParams.delete(a),n.set(a,s)}),`${t.origin}${t.pathname}?${n.toString()}`};export{d as i,o as m};
2
- //# sourceMappingURL=url.9e033350.js.map
@@ -1,2 +0,0 @@
1
- import"./router.a8616541.js";import{r as i}from"./jwt-decode.esm.c9c37cdc.js";import{T as c}from"./tables.2e1c934b.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]="3cb7f358-cf25-4f09-954b-d61f97ae59dd",e._sentryDebugIdIdentifier="sentry-dbid-3cb7f358-cf25-4f09-954b-d61f97ae59dd")}catch{}})();const s=new Map,n=new Set,y=e=>{const a=i([]),t=i(!1),r=i(null),u=async(f=!1)=>{if(!f&&s.has(e))return a.value=s.get(e),a.value;if(n.has(e)){for(;n.has(e);)await new Promise(l=>setTimeout(l,100));return a.value=s.get(e)||[],a.value}try{t.value=!0,n.add(e),r.value=null;const l=await c.list(e);return a.value=l,s.set(e,l),l}catch(l){throw r.value=l,console.error("Error fetching tables:",l),l}finally{t.value=!1,n.delete(e)}},o=f=>a.value.find(l=>l.id===f)||null,d=()=>{s.delete(e)},b=()=>{s.clear()};return!s.has(e)&&!n.has(e)?u():s.has(e)&&(a.value=s.get(e)),{tables:a,loading:t,error:r,fetchTables:u,getTableById:o,invalidateCache:d,invalidateAllCache:b}};export{y as u};
2
- //# sourceMappingURL=useTables.5fffa3f1.js.map
@@ -1,2 +0,0 @@
1
- import{v as f,a0 as v,Z as w,r as m,c as n,a1 as p}from"./jwt-decode.esm.c9c37cdc.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]="f8ef8c7e-d4ee-4f6e-9e07-7df4603126e3",t._sentryDebugIdIdentifier="sentry-dbid-f8ef8c7e-d4ee-4f6e-9e07-7df4603126e3")}catch{}})();const y=2*60*60,_=t=>{try{const e=p(t);if(!e.exp)throw Error("expired jwt");return{email:e.email,expiresInSeconds:e.exp*1e3}}catch{console.warn("Invalid JWT")}return null},g=f("user",()=>{const t=new v(w.string(),"auth:jwt"),e=m(null),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?_(e.value):null),d=n(()=>{var r;return(r=a.value)==null?void 0:r.email}),i=()=>a.value?a.value.expiresInSeconds-Date.now()>y:!1;return u(),{jwt:e,email:d,saveJWT:o,removeJWT:s,isJWTValid:i,authHeaders:l,wsAuthHeaders:c}});export{g as u};
2
- //# sourceMappingURL=userStore.d962fba4.js.map
@@ -1,2 +0,0 @@
1
- import"./jwt-decode.esm.c9c37cdc.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]="0229c348-3200-4638-b36f-487294b5131d",x._sentryDebugIdIdentifier="sentry-dbid-0229c348-3200-4638-b36f-487294b5131d")}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.8581bc03.js.map