abstra 3.24.7__py3-none-any.whl → 3.24.9__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (254) hide show
  1. {abstra-3.24.7.dist-info → abstra-3.24.9.dist-info}/METADATA +1 -1
  2. {abstra-3.24.7.dist-info → abstra-3.24.9.dist-info}/RECORD +185 -184
  3. abstra_internals/contracts_generated.py +916 -762
  4. abstra_internals/controllers/git.py +18 -20
  5. abstra_internals/controllers/main.py +8 -4
  6. abstra_internals/repositories/git/git_test.py +2 -2
  7. abstra_internals/repositories/git/native.py +96 -44
  8. abstra_internals/repositories/git/types.py +9 -7
  9. abstra_internals/repositories/tasks.py +22 -21
  10. abstra_internals/services/fs.py +25 -0
  11. abstra_internals/services/sql_storage.py +2 -1
  12. abstra_statics/dist/assets/{AbstraButton.vue_vue_type_script_setup_true_lang.865dcbf3.js → AbstraButton.vue_vue_type_script_setup_true_lang.6efe348a.js} +2 -2
  13. abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.f628a3a7.js +2 -0
  14. abstra_statics/dist/assets/ApiKeys.5b43091f.js +2 -0
  15. abstra_statics/dist/assets/App.7a6ee8e5.js +2 -0
  16. abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.1a83eeea.js +2 -0
  17. abstra_statics/dist/assets/{BaseLayout.31267389.js → BaseLayout.3c6f8614.js} +2 -2
  18. abstra_statics/dist/assets/{Billing.44f40d95.js → Billing.884bb3ce.js} +2 -2
  19. abstra_statics/dist/assets/{Breadcrumb.bc48ca6d.js → Breadcrumb.438b89fb.js} +2 -2
  20. abstra_statics/dist/assets/{Builds.5c884494.js → Builds.51e0c49e.js} +2 -2
  21. abstra_statics/dist/assets/{Card.eab9832f.js → Card.50ce0913.js} +2 -2
  22. abstra_statics/dist/assets/{CircularLoading.a4bd5a70.js → CircularLoading.50b3862c.js} +2 -2
  23. abstra_statics/dist/assets/CloseCircleOutlined.eab14c9c.js +2 -0
  24. abstra_statics/dist/assets/ConnectorsView.35cc6db6.js +2 -0
  25. abstra_statics/dist/assets/ConnectorsView.36fa866f.css +1 -0
  26. abstra_statics/dist/assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.1c984a14.js +2 -0
  27. abstra_statics/dist/assets/ContentLayout.a0d4199d.js +2 -0
  28. abstra_statics/dist/assets/{CrudView.f8f7347d.js → CrudView.7997b881.js} +2 -2
  29. abstra_statics/dist/assets/{DocsButton.vue_vue_type_script_setup_true_lang.264a92d9.js → DocsButton.vue_vue_type_script_setup_true_lang.39638c19.js} +2 -2
  30. abstra_statics/dist/assets/{EditorLogin.b8cbc772.js → EditorLogin.6506bc42.js} +2 -2
  31. abstra_statics/dist/assets/{EditorsView.580cabb0.js → EditorsView.2aad2cdc.js} +2 -2
  32. abstra_statics/dist/assets/EnvVars.e641237f.js +2 -0
  33. abstra_statics/dist/assets/Error.a11619e5.js +2 -0
  34. abstra_statics/dist/assets/ExclamationCircleOutlined.1d559548.js +2 -0
  35. abstra_statics/dist/assets/ExecutionContext.2933148d.js +2 -0
  36. abstra_statics/dist/assets/ExecutionStatusIcon.vue_vue_type_script_setup_true_lang.0b0c149c.js +2 -0
  37. abstra_statics/dist/assets/Files.7c98a5f9.css +1 -0
  38. abstra_statics/dist/assets/Files.db066999.js +3 -0
  39. abstra_statics/dist/assets/{Form.7ffaca31.js → Form.d99de13a.js} +2 -2
  40. abstra_statics/dist/assets/{FormRunner.eae15d54.js → FormRunner.8a803ade.js} +2 -2
  41. abstra_statics/dist/assets/{Home.5a499863.js → Home.a8e67e38.js} +2 -2
  42. abstra_statics/dist/assets/Home.c02c53bc.js +2 -0
  43. abstra_statics/dist/assets/LoadingContainer.b8fe55e6.js +2 -0
  44. abstra_statics/dist/assets/LoadingOutlined.d3cb97d3.js +2 -0
  45. abstra_statics/dist/assets/Login.ca3df8f4.js +2 -0
  46. abstra_statics/dist/assets/{Login.779e9007.js → Login.ec7eb4db.js} +2 -2
  47. abstra_statics/dist/assets/Login.vue_vue_type_script_setup_true_lang.be982e9b.js +2 -0
  48. abstra_statics/dist/assets/Logo.29f26be1.js +2 -0
  49. abstra_statics/dist/assets/Logs.bc7d3080.js +2 -0
  50. abstra_statics/dist/assets/Main.17301685.js +2 -0
  51. abstra_statics/dist/assets/{MockForm.2aa4fc17.js → MockForm.8af08260.js} +2 -2
  52. abstra_statics/dist/assets/{Navbar.89b7a1da.js → Navbar.5991f141.js} +2 -2
  53. abstra_statics/dist/assets/NewEditor.133f8c4b.js +8 -0
  54. abstra_statics/dist/assets/OidcLoginCallback.7b41f933.js +2 -0
  55. abstra_statics/dist/assets/OidcLogoutCallback.80bebb62.js +2 -0
  56. abstra_statics/dist/assets/{OmniChat.60ee26c8.css → OmniChat.3576ab7f.css} +1 -1
  57. abstra_statics/dist/assets/OmniChat.724f1121.js +6 -0
  58. abstra_statics/dist/assets/OnboardingView.7f418009.js +2 -0
  59. abstra_statics/dist/assets/Organization.127db14f.js +2 -0
  60. abstra_statics/dist/assets/Organizations.5f418cc7.js +2 -0
  61. abstra_statics/dist/assets/{PhArrowCounterClockwise.vue.9a0ef441.js → PhArrowCounterClockwise.vue.de1d3ce9.js} +2 -2
  62. abstra_statics/dist/assets/{PhArrowSquareOut.vue.e64bebdd.js → PhArrowSquareOut.vue.1a0f1395.js} +2 -2
  63. abstra_statics/dist/assets/PhArrowUp.vue.1c6a4ae8.js +2 -0
  64. abstra_statics/dist/assets/{PhClockCounterClockwise.vue.090be995.js → PhClockCounterClockwise.vue.3e79a514.js} +2 -2
  65. abstra_statics/dist/assets/{PhCopy.vue.2163dc9b.js → PhCopy.vue.d2b17064.js} +2 -2
  66. abstra_statics/dist/assets/{PhCopySimple.vue.df39762b.js → PhCopySimple.vue.f2bb863a.js} +2 -2
  67. abstra_statics/dist/assets/{PhCube.vue.099137c1.js → PhCube.vue.be696878.js} +2 -2
  68. abstra_statics/dist/assets/PhDatabase.vue.3c4ba68c.js +2 -0
  69. abstra_statics/dist/assets/{PhDotsThreeVertical.vue.e9b1faec.js → PhDotsThreeVertical.vue.2c9a03d5.js} +2 -2
  70. abstra_statics/dist/assets/{PhDownloadSimple.vue.cba09010.js → PhDownloadSimple.vue.72db4fbb.js} +2 -2
  71. abstra_statics/dist/assets/{PhFileArrowUp.vue.8f2790df.js → PhFileArrowUp.vue.b7060fd8.js} +2 -2
  72. abstra_statics/dist/assets/{PhFilePlus.vue.18b183d7.js → PhFilePlus.vue.77ba2f5f.js} +2 -2
  73. abstra_statics/dist/assets/{PhFolderPlus.vue.8dc4e304.js → PhFolderPlus.vue.57ec5e0d.js} +2 -2
  74. abstra_statics/dist/assets/{PhGear.vue.15aaccf5.js → PhGear.vue.5abfda30.js} +2 -2
  75. abstra_statics/dist/assets/{PhKey.vue.55642d36.js → PhKey.vue.dbf6964c.js} +2 -2
  76. abstra_statics/dist/assets/{PhPencil.vue.ea9f0def.js → PhPencil.vue.e6eaa716.js} +2 -2
  77. abstra_statics/dist/assets/{PhPencilSimple.vue.2d6e76ca.js → PhPencilSimple.vue.a65250cc.js} +2 -2
  78. abstra_statics/dist/assets/{PhRocket.vue.ec0249c6.js → PhRocket.vue.9dde7cdd.js} +2 -2
  79. abstra_statics/dist/assets/{PhSignOut.vue.1cca1af4.js → PhSignOut.vue.4b3b1f31.js} +2 -2
  80. abstra_statics/dist/assets/{PhSparkle.vue.5ff46bd3.js → PhSparkle.vue.efe111c8.js} +2 -2
  81. abstra_statics/dist/assets/{PhTranslate.vue.077070e7.js → PhTranslate.vue.7ad27dac.js} +2 -2
  82. abstra_statics/dist/assets/{PhUsersThree.vue.a78365b2.js → PhUsersThree.vue.5f9bb416.js} +2 -2
  83. abstra_statics/dist/assets/{PhWarningCircle.vue.40ea25aa.js → PhWarningCircle.vue.365e8c06.js} +2 -2
  84. abstra_statics/dist/assets/{PhWebhooksLogo.vue.a73cf99c.js → PhWebhooksLogo.vue.1684b943.js} +2 -2
  85. abstra_statics/dist/assets/{PlayerConfigProvider.8a1d38e8.js → PlayerConfigProvider.26c6fb0a.js} +2 -2
  86. abstra_statics/dist/assets/{PlayerNavbar.53f81c7f.js → PlayerNavbar.a0d1fdc3.js} +2 -2
  87. abstra_statics/dist/assets/Project.6575adc1.css +1 -0
  88. abstra_statics/dist/assets/Project.a4f24e83.js +2 -0
  89. abstra_statics/dist/assets/{ProjectLogin.972cff72.js → ProjectLogin.abc78e95.js} +2 -2
  90. abstra_statics/dist/assets/{ProjectSettings.183e39d3.js → ProjectSettings.de3aa0d0.js} +2 -2
  91. abstra_statics/dist/assets/{ProjectsView.31637152.js → ProjectsView.e4e50735.js} +2 -2
  92. abstra_statics/dist/assets/{SaveButton.8e4a5fbe.js → SaveButton.8a907e20.js} +2 -2
  93. abstra_statics/dist/assets/ScrollArea.vue_vue_type_script_setup_true_lang.22f3f279.js +2 -0
  94. abstra_statics/dist/assets/{Sidebar.adfed738.js → Sidebar.ea97a608.js} +2 -2
  95. abstra_statics/dist/assets/{Sql.bf31b294.js → Sql.3130cb2f.js} +3 -3
  96. abstra_statics/dist/assets/Steps.df853a47.js +2 -0
  97. abstra_statics/dist/assets/{TableCard.f71238a1.js → TableCard.0cffd3d6.js} +2 -2
  98. abstra_statics/dist/assets/TableEditor.52c6ffee.js +2 -0
  99. abstra_statics/dist/assets/Tables.933a0fea.js +2 -0
  100. abstra_statics/dist/assets/{TablesDiagram.29966818.js → TablesDiagram.687f6dfe.js} +3 -3
  101. abstra_statics/dist/assets/TablesTabs.vue_vue_type_script_setup_true_lang.9649d1a2.js +2 -0
  102. abstra_statics/dist/assets/Tasks.331fcc80.js +2 -0
  103. abstra_statics/dist/assets/{UploadOutlined.654fb655.js → UploadOutlined.1c845819.js} +2 -2
  104. abstra_statics/dist/assets/{View.64f7c00a.js → View.8fb0d3d7.js} +2 -2
  105. abstra_statics/dist/assets/{View.vue_vue_type_script_setup_true_lang.8892f80d.js → View.vue_vue_type_script_setup_true_lang.df0afc8c.js} +2 -2
  106. abstra_statics/dist/assets/{Watermark.2b4d030d.js → Watermark.b19c8a2c.js} +2 -2
  107. abstra_statics/dist/assets/{WebEditor.a5e97d7a.js → WebEditor.52fc4d61.js} +2 -2
  108. abstra_statics/dist/assets/WidgetPreview.fab6933f.js +2 -0
  109. abstra_statics/dist/assets/WorkflowViewer.5d223e7a.css +1 -0
  110. abstra_statics/dist/assets/WorkflowViewer.b0072dc6.js +2 -0
  111. abstra_statics/dist/assets/ant-design.3284f24b.js +2 -0
  112. abstra_statics/dist/assets/{apiKey.1bb9c6d2.js → apiKey.66dca0fa.js} +2 -2
  113. abstra_statics/dist/assets/asyncComputed.515034b4.js +2 -0
  114. abstra_statics/dist/assets/{build.bfc699c6.js → build.11c6f0e3.js} +2 -2
  115. abstra_statics/dist/assets/colorHelpers.43bbe7b2.js +2 -0
  116. abstra_statics/dist/assets/{console.21189c1b.js → console.f9961195.js} +2 -2
  117. abstra_statics/dist/assets/constants.2cdc2025.js +2 -0
  118. abstra_statics/dist/assets/contracts.generated.36d5f7a5.js +2 -0
  119. abstra_statics/dist/assets/{cssMode.766de8eb.js → cssMode.38709828.js} +2 -2
  120. abstra_statics/dist/assets/datetime.cc6674fd.js +2 -0
  121. abstra_statics/dist/assets/dayjs.aa0a07d8.js +2 -0
  122. abstra_statics/dist/assets/editor.90099ba3.js +2 -0
  123. abstra_statics/dist/assets/editor.main.a098da72.js +2 -0
  124. abstra_statics/dist/assets/fetch.331404cf.js +2 -0
  125. abstra_statics/dist/assets/file.0cd01b5c.js +2 -0
  126. abstra_statics/dist/assets/folder.304ce6aa.js +2 -0
  127. abstra_statics/dist/assets/{freemarker2.a1e074e9.js → freemarker2.16d5855a.js} +2 -2
  128. abstra_statics/dist/assets/{handlebars.ef746198.js → handlebars.3657e980.js} +2 -2
  129. abstra_statics/dist/assets/{html.36bc618f.js → html.cbb1f517.js} +3 -3
  130. abstra_statics/dist/assets/{htmlMode.2557714f.js → htmlMode.97252017.js} +2 -2
  131. abstra_statics/dist/assets/{index.cfbca287.js → index.1a374af6.js} +3 -3
  132. abstra_statics/dist/assets/{index.95966207.js → index.1f86e84b.js} +2 -2
  133. abstra_statics/dist/assets/{index.88a43c5d.js → index.64d118e9.js} +2 -2
  134. abstra_statics/dist/assets/{index.b57ea477.js → index.97648248.js} +2 -2
  135. abstra_statics/dist/assets/{index.8391f105.js → index.9a7dc377.js} +2 -2
  136. abstra_statics/dist/assets/{index.cb46e99b.js → index.9f357119.js} +2 -2
  137. abstra_statics/dist/assets/{index.0389f2ff.js → index.c7722f54.js} +2 -2
  138. abstra_statics/dist/assets/index.dcd602fc.js +2 -0
  139. abstra_statics/dist/assets/{index.6a5e28c0.js → index.ed2240ea.js} +2 -2
  140. abstra_statics/dist/assets/{javascript.3ef3ca8e.js → javascript.d13ce088.js} +3 -3
  141. abstra_statics/dist/assets/{jsonMode.bc3f9dc2.js → jsonMode.24ae805f.js} +2 -2
  142. abstra_statics/dist/assets/{jwt-decode.aa5b9ed3.css → jwt-decode.1a092264.css} +1 -1
  143. abstra_statics/dist/assets/{jwt-decode.esm.b9bb33e7.js → jwt-decode.esm.f87c17f7.js} +166 -161
  144. abstra_statics/dist/assets/linters.6d68fd4f.js +2 -0
  145. abstra_statics/dist/assets/{liquid.b8dbec9f.js → liquid.0cf9f71b.js} +3 -3
  146. abstra_statics/dist/assets/{member.a66ab498.js → member.c8206c64.js} +2 -2
  147. abstra_statics/dist/assets/{metadata.17375f25.js → metadata.f67c3158.js} +2 -2
  148. abstra_statics/dist/assets/{omniChatStore.c81c7dd1.js → omniChatStore.e205a0cd.js} +4 -4
  149. abstra_statics/dist/assets/{organization.31d7490b.js → organization.70cdf915.js} +2 -2
  150. abstra_statics/dist/assets/{os.cc382050.js → os.227120cb.js} +2 -2
  151. abstra_statics/dist/assets/player.58f997ee.js +2 -0
  152. abstra_statics/dist/assets/{plotly.min.e2ba2e19.js → plotly.min.6d8ffa2b.js} +2 -2
  153. abstra_statics/dist/assets/polling.9bc57b91.js +2 -0
  154. abstra_statics/dist/assets/project.25a396d4.js +2 -0
  155. abstra_statics/dist/assets/{python.ca19a8f2.js → python.0d8b442d.js} +3 -3
  156. abstra_statics/dist/assets/{razor.b73e652a.js → razor.4398e452.js} +2 -2
  157. abstra_statics/dist/assets/record.a8da6046.js +2 -0
  158. abstra_statics/dist/assets/{redirect.9d08109f.js → redirect.42fceb5c.js} +2 -2
  159. abstra_statics/dist/assets/{repository.819ee626.js → repository.c782b2ca.js} +2 -2
  160. abstra_statics/dist/assets/router.09566602.js +18 -0
  161. abstra_statics/dist/assets/router.9ee10098.js +2 -0
  162. abstra_statics/dist/assets/{string.04644599.js → string.0c102318.js} +2 -2
  163. abstra_statics/dist/assets/{tables.d6f8baad.js → tables.1b5568d1.js} +2 -2
  164. abstra_statics/dist/assets/tasksController.009192fc.js +4 -0
  165. abstra_statics/dist/assets/{toggleHighContrast.5c061b5e.js → toggleHighContrast.79cdeb2d.js} +7 -7
  166. abstra_statics/dist/assets/{tsMode.75ac2754.js → tsMode.0d573de8.js} +2 -2
  167. abstra_statics/dist/assets/{typescript.3c9ee25c.js → typescript.c72f7347.js} +3 -3
  168. abstra_statics/dist/assets/url.acca5643.js +2 -0
  169. abstra_statics/dist/assets/{useCodebaseEvents.fd37c61f.js → useCodebaseEvents.dc121de8.js} +2 -2
  170. abstra_statics/dist/assets/useTables.8402092e.js +2 -0
  171. abstra_statics/dist/assets/userStore.3989ac4e.js +2 -0
  172. abstra_statics/dist/assets/uuid.405a6e8d.js +2 -0
  173. abstra_statics/dist/assets/{vue-flow-background.6bb2a806.js → vue-flow-background.bbe978bf.js} +2 -2
  174. abstra_statics/dist/assets/{vue-flow-core.0cbcaed0.js → vue-flow-core.8bb3991b.js} +2 -2
  175. abstra_statics/dist/assets/{vue-quill.esm-bundler.6713b0a3.js → vue-quill.esm-bundler.4dc84b4c.js} +2 -2
  176. abstra_statics/dist/assets/{workspaceStore.583d9afd.js → workspaceStore.ef7daa80.js} +2 -2
  177. abstra_statics/dist/assets/xlsx.89ea120e.js +106 -0
  178. abstra_statics/dist/assets/{xml.046c0d24.js → xml.5ff29ab6.js} +3 -3
  179. abstra_statics/dist/assets/{yaml.ebe5a918.js → yaml.6d4103d3.js} +3 -3
  180. abstra_statics/dist/console.html +15 -15
  181. abstra_statics/dist/editor.html +14 -14
  182. abstra_statics/dist/player.html +10 -10
  183. abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.8204f8e4.js +0 -2
  184. abstra_statics/dist/assets/ApiKeys.0ebb0b5f.js +0 -2
  185. abstra_statics/dist/assets/App.fa5bd988.js +0 -2
  186. abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.35b9297a.js +0 -2
  187. abstra_statics/dist/assets/CloseCircleOutlined.87d100e7.js +0 -2
  188. abstra_statics/dist/assets/ConnectorsView.89e278ce.js +0 -2
  189. abstra_statics/dist/assets/ConnectorsView.b594798e.css +0 -1
  190. abstra_statics/dist/assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.b3c015f9.js +0 -2
  191. abstra_statics/dist/assets/ContentLayout.8cfadb43.js +0 -2
  192. abstra_statics/dist/assets/EnvVars.8f5b7bdb.js +0 -2
  193. abstra_statics/dist/assets/Error.ee721fce.js +0 -2
  194. abstra_statics/dist/assets/ExclamationCircleOutlined.40ff37b4.js +0 -2
  195. abstra_statics/dist/assets/ExecutionContext.3f4e1ec7.js +0 -2
  196. abstra_statics/dist/assets/ExecutionStatusIcon.vue_vue_type_script_setup_true_lang.4f510b9a.js +0 -2
  197. abstra_statics/dist/assets/Files.39b07d88.css +0 -1
  198. abstra_statics/dist/assets/Files.db0a38ea.js +0 -2
  199. abstra_statics/dist/assets/Home.31aa421b.js +0 -2
  200. abstra_statics/dist/assets/LoadingContainer.6b2e55a8.js +0 -2
  201. abstra_statics/dist/assets/LoadingOutlined.bcf2a831.js +0 -2
  202. abstra_statics/dist/assets/Login.53d97380.js +0 -2
  203. abstra_statics/dist/assets/Login.vue_vue_type_script_setup_true_lang.f1a48ab2.js +0 -2
  204. abstra_statics/dist/assets/Logo.c4ca8242.js +0 -2
  205. abstra_statics/dist/assets/Logs.ef6eb243.js +0 -2
  206. abstra_statics/dist/assets/Main.b3e5d5fe.js +0 -2
  207. abstra_statics/dist/assets/NewEditor.0cd895fd.js +0 -8
  208. abstra_statics/dist/assets/OidcLoginCallback.9dd86a22.js +0 -2
  209. abstra_statics/dist/assets/OidcLogoutCallback.a60b6160.js +0 -2
  210. abstra_statics/dist/assets/OmniChat.00da5ca5.js +0 -6
  211. abstra_statics/dist/assets/OnboardingView.86178ead.js +0 -2
  212. abstra_statics/dist/assets/Organization.9bf814e7.js +0 -2
  213. abstra_statics/dist/assets/Organizations.7473e524.js +0 -2
  214. abstra_statics/dist/assets/PhDatabase.vue.33681014.js +0 -2
  215. abstra_statics/dist/assets/Project.1b9b8eee.js +0 -2
  216. abstra_statics/dist/assets/Project.9c418d2e.css +0 -1
  217. abstra_statics/dist/assets/ScrollArea.vue_vue_type_script_setup_true_lang.2a9a82d1.js +0 -2
  218. abstra_statics/dist/assets/Steps.a55d381b.js +0 -2
  219. abstra_statics/dist/assets/TableEditor.1f5f6b45.js +0 -2
  220. abstra_statics/dist/assets/Tables.ae22a918.js +0 -39
  221. abstra_statics/dist/assets/TablesTabs.vue_vue_type_script_setup_true_lang.9567dc60.js +0 -2
  222. abstra_statics/dist/assets/Tasks.db070216.js +0 -2
  223. abstra_statics/dist/assets/WidgetPreview.40cbebe3.js +0 -2
  224. abstra_statics/dist/assets/WorkflowViewer.0a209003.css +0 -1
  225. abstra_statics/dist/assets/WorkflowViewer.b9f96c37.js +0 -2
  226. abstra_statics/dist/assets/ant-design.5ec0b6b3.js +0 -2
  227. abstra_statics/dist/assets/asyncComputed.7ddee0b0.js +0 -2
  228. abstra_statics/dist/assets/colorHelpers.53158244.js +0 -2
  229. abstra_statics/dist/assets/constants.0deee127.js +0 -2
  230. abstra_statics/dist/assets/contracts.generated.0a04f0c8.js +0 -2
  231. abstra_statics/dist/assets/datetime.0048a7b9.js +0 -2
  232. abstra_statics/dist/assets/dayjs.618c5367.js +0 -2
  233. abstra_statics/dist/assets/editor.64e4d209.js +0 -2
  234. abstra_statics/dist/assets/editor.main.08984606.js +0 -2
  235. abstra_statics/dist/assets/fetch.7b0def40.js +0 -2
  236. abstra_statics/dist/assets/files.8583d431.js +0 -2
  237. abstra_statics/dist/assets/folder.c07afb46.js +0 -2
  238. abstra_statics/dist/assets/index.36af13ac.js +0 -2
  239. abstra_statics/dist/assets/linters.f033aedb.js +0 -2
  240. abstra_statics/dist/assets/player.4ba2218c.js +0 -2
  241. abstra_statics/dist/assets/polling.bdac3134.js +0 -2
  242. abstra_statics/dist/assets/project.f3f1cd2e.js +0 -2
  243. abstra_statics/dist/assets/record.c01e7f08.js +0 -2
  244. abstra_statics/dist/assets/repository.88fdba21.js +0 -2
  245. abstra_statics/dist/assets/router.135b49e3.js +0 -18
  246. abstra_statics/dist/assets/router.d8fe262e.js +0 -2
  247. abstra_statics/dist/assets/tasksController.866fa385.js +0 -4
  248. abstra_statics/dist/assets/url.7fa35693.js +0 -2
  249. abstra_statics/dist/assets/useTables.1d5bf2b4.js +0 -2
  250. abstra_statics/dist/assets/userStore.3a2d2697.js +0 -2
  251. abstra_statics/dist/assets/uuid.40423699.js +0 -2
  252. {abstra-3.24.7.dist-info → abstra-3.24.9.dist-info}/WHEEL +0 -0
  253. {abstra-3.24.7.dist-info → abstra-3.24.9.dist-info}/entry_points.txt +0 -0
  254. {abstra-3.24.7.dist-info → abstra-3.24.9.dist-info}/top_level.txt +0 -0
@@ -1,2 +0,0 @@
1
- import{d as _,ec as f,ei as m,i as n,o as c,a as p,b as i,ac as g,ej as y,f as v,e as k,t as w,u as r,aY as I}from"./jwt-decode.esm.b9bb33e7.js";import{A as T,T as D}from"./Card.eab9832f.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]="1aa700a2-0c61-4748-a21e-3512cc92fd59",e._sentryDebugIdIdentifier="sentry-dbid-1aa700a2-0c61-4748-a21e-3512cc92fd59")}catch{}})();const x=_({__name:"TablesTabs",setup(e){const a=f(),t=m(),u=String(t.name),d=t.params.projectId,l=[{label:n.translate("i18n_tablestabs_tables_list"),value:"tables"},{label:n.translate("i18n_tablestabs_diagram_view"),value:"tables-diagram"},{label:n.translate("i18n_tablestabs_run_sql"),value:"sql"}],b=o=>{a.push({name:String(o),params:{projectId:d}})};return(o,h)=>(c(),p(r(D),{"active-key":r(u),options:l,"onUpdate:activeKey":b},{default:i(()=>[(c(),g(I,null,y(l,s=>v(r(T),{key:s.value,name:s.value},{tab:i(()=>[k("span",null,w(s.label),1)]),_:2},1032,["name"])),64))]),_:1},8,["active-key"]))}});export{x as _};
2
- //# sourceMappingURL=TablesTabs.vue_vue_type_script_setup_true_lang.9567dc60.js.map
@@ -1,2 +0,0 @@
1
- import{f as s,ee as J,d as L,c as N,U as H,R as Y,ac as U,b as n,u as t,aY as E,o as p,cE as C,i as c,aI as P,cD as G,a as g,df as D,g as y,t as f,d9 as $,h as j,dj as k,el as Q,dd as W,d6 as X,eq as Z,S as K,d0 as tt,cM as et,ei as at,A as nt}from"./jwt-decode.esm.b9bb33e7.js";import{_ as lt}from"./AbstraButton.vue_vue_type_script_setup_true_lang.865dcbf3.js";import{I as st}from"./PhCopy.vue.2163dc9b.js";import{T as rt}from"./tasksController.866fa385.js";import{s as ot}from"./metadata.17375f25.js";import{t as it}from"./ant-design.5ec0b6b3.js";import{R as ut}from"./dayjs.618c5367.js";import{g as R,a as A}from"./router.135b49e3.js";import{R as dt}from"./repository.88fdba21.js";import{a as ct,B as pt}from"./build.bfc699c6.js";import{a as gt}from"./project.f3f1cd2e.js";import"./tables.d6f8baad.js";import{a as ft}from"./asyncComputed.7ddee0b0.js";import"./contracts.generated.0a04f0c8.js";import"./record.c01e7f08.js";import"./linters.f033aedb.js";import"./polling.bdac3134.js";import"./PhWebhooksLogo.vue.a73cf99c.js";import"./index.cb46e99b.js";import"./string.04644599.js";(function(){try{var d=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new Error().stack;i&&(d._sentryDebugIds=d._sentryDebugIds||{},d._sentryDebugIds[i]="142d4d55-e64a-4d3a-9612-27295a52b048",d._sentryDebugIdIdentifier="sentry-dbid-142d4d55-e64a-4d3a-9612-27295a52b048")}catch{}})();var mt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z"}}]},name:"sync",theme:"outlined"};const _t=mt;function B(d){for(var i=1;i<arguments.length;i++){var o=arguments[i]!=null?Object(arguments[i]):{},b=Object.keys(o);typeof Object.getOwnPropertySymbols=="function"&&(b=b.concat(Object.getOwnPropertySymbols(o).filter(function(v){return Object.getOwnPropertyDescriptor(o,v).enumerable}))),b.forEach(function(v){yt(d,v,o[v])})}return d}function yt(d,i,o){return i in d?Object.defineProperty(d,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):d[i]=o,d}var z=function(i,o){var b=B({},i,o.attrs);return s(J,B({},b,{icon:_t}),null)};z.displayName="SyncOutlined";z.inheritAttrs=!1;const bt=z,vt=L({__name:"TasksView",props:{api:{},stages:{},editor:{type:Boolean},stageId:{},status:{}},setup(d,{expose:i}){const o=d,{setup:b,tearDown:v,state:u,getColumns:T,fetchTasks:I,clearAllTasks:w}=rt({api:o.api,poll:!0,stages:o.stages,stageId:o.stageId,status:o.status}),S=e=>{var a,m;if(!((a=e.completed)!=null&&a.at)||!((m=e.created)!=null&&m.at))return null;const l=new Date(e.created.at).getTime(),r=new Date(e.completed.at).getTime();return Math.round((r-l)/1e3)},h=e=>{var a;if(!((a=e.created)!=null&&a.at))return null;const l=new Date(e.created.at).getTime(),r=Date.now();return Math.round((r-l)/1e3)},x=e=>{if(e<60)return`${e}s`;const l=Math.floor(e/60);if(l<60){const _=e%60;return _>0?`${l}m ${_}s`:`${l}m`}const r=Math.floor(l/60);if(r<24){const _=l%60;return _>0?`${r}h ${_}m`:`${r}h`}const a=Math.floor(r/24),m=r%24;return m>0?`${a}d ${m}h`:`${a}d`},O=N(()=>o.stages?u.tasks.map(e=>{var r,a,m;const l=(r=o.stages)==null?void 0:r.find(_=>_.id===e.targetStageId);return l?{...e,targetStageTitle:l.stageTitle,targetStageType:l.stageType,completedAt:(m=e.completed)!=null&&m.at?new Date(e.completed.at).toLocaleString():"Not completed",createdAt:new Date(e.created.at).toLocaleString(),deleted:!1,duration:S(e),pendingDuration:h(e)}:{...e,targetStageTitle:null,targetStageType:null,completedAt:(a=e.completed)!=null&&a.at?new Date(e.completed.at).toLocaleString():c.translate("i18n_tasksview_not_completed"),createdAt:new Date(e.created.at).toLocaleString(),deleted:!0,duration:S(e),pendingDuration:h(e)}}):u.tasks.map(e=>{var l;return{...e,deleted:!1,completedAt:(l=e.completed)!=null&&l.at?new Date(e.completed.at).toLocaleString():c.translate("i18n_tasksview_not_completed"),createdAt:new Date(e.created.at).toLocaleString(),duration:S(e),pendingDuration:h(e)}})),F=(e,l,r)=>{var _,M;const a=(_=e.current)!=null?_:1,m=(M=e.pageSize)!=null?M:10;u.pagination.currentIndex=a-1,u.pagination.pageSize=m,I()},V=(e,l)=>`/_editor/${e}/${l}`,q=e=>{typeof e=="object"?navigator.clipboard.writeText(JSON.stringify(e)):navigator.clipboard.writeText(String(e)),et.success({content:c.translate("i18n_tasksview_copied_to_clipboard")})};return i({clearAllTasks:w}),H(()=>b()),Y(()=>v()),(e,l)=>(p(),U(E,null,[s(t(G),{layout:"vertical"},{default:n(()=>[s(t(R),{gutter:10},{default:n(()=>[s(t(A),{span:10},{default:n(()=>[s(t(C),{label:t(c).translate("i18n_tasksview_stage_label")},{default:n(()=>[s(t(P),{value:t(u).filters.stage,"onUpdate:value":l[0]||(l[0]=r=>t(u).filters.stage=r),options:t(u).filterOptions.stages,placeholder:t(c).translate("i18n_tasksview_all_placeholder"),"allow-clear":""},null,8,["value","options","placeholder"])]),_:1},8,["label"])]),_:1}),s(t(A),{span:6},{default:n(()=>[s(t(C),{label:t(c).translate("i18n_tasksview_status_label")},{default:n(()=>[s(t(P),{value:t(u).filters.status,"onUpdate:value":l[1]||(l[1]=r=>t(u).filters.status=r),options:t(u).filterOptions.statuses,"option-label":"label","option-value":"value",filter:!1,placeholder:t(c).translate("i18n_tasksview_all_placeholder"),"allow-clear":""},null,8,["value","options","placeholder"])]),_:1},8,["label"])]),_:1}),s(t(A),{span:8},{default:n(()=>[s(t(C),{label:t(c).translate("i18n_tasksview_created_at_date_label")},{default:n(()=>[s(t(ut),{value:t(u).filters.dateRange,"onUpdate:value":l[2]||(l[2]=r=>t(u).filters.dateRange=r),style:{width:"100%"}},null,8,["value"])]),_:1},8,["label"])]),_:1})]),_:1})]),_:1}),s(t(tt),{columns:t(T)(),"data-source":O.value,scroll:{x:"max-content",y:1e3},bordered:"",size:"small",pagination:{current:t(u).pagination.currentIndex+1,pageSize:t(u).pagination.pageSize,total:t(u).pagination.totalCount},onChange:F},{bodyCell:n(({column:r,record:a})=>[r.key==="timeInfo"?(p(),g(t(k),{key:0,vertical:"",gap:4},{default:n(()=>[s(t(D),null,{default:n(()=>[y(f(a.createdAt),1)]),_:2},1024),a.status==="pending"&&a.pendingDuration?(p(),g(t($),{key:0,color:"orange"},{default:n(()=>[y(f(t(c).translate("i18n_tasksview_pending_for"))+" "+f(x(a.pendingDuration)),1)]),_:2},1024)):a.status==="started"?(p(),g(t($),{key:1,color:"blue"},{default:n(()=>[y(f(t(c).translate("i18n_tasksview_status_running"))+" ",1),s(t(bt),{spin:!0,style:{"margin-left":"4px"}})]),_:1})):a.duration?(p(),g(t($),{key:2,color:"green"},{default:n(()=>[y(f(t(c).translate("i18n_tasksview_completed_in"))+" "+f(x(a.duration)),1)]),_:2},1024)):j("",!0)]),_:2},1024)):r.key==="stageInfo"?(p(),g(t(k),{key:1,vertical:"",gap:4},{default:n(()=>[a.deleted?(p(),g(t(D),{key:0},{default:n(()=>[y(f(t(c).translate("i18n_tasksview_not_found")),1)]),_:1})):(p(),g(t(k),{key:1,gap:8,align:"center"},{default:n(()=>[(p(),g(Q(t(ot)(a.targetStageType)),{size:20})),s(t(k),{vertical:"",gap:0},{default:n(()=>[e.editor?(p(),g(t(W),{key:0,href:V(a.targetStageType,a.targetStageId)},{default:n(()=>[y(f(a.targetStageTitle),1)]),_:2},1032,["href"])):(p(),g(t(D),{key:1},{default:n(()=>[y(f(a.targetStageTitle),1)]),_:2},1024)),s(t(D),{type:"secondary",style:{fontSize:"12px"}},{default:n(()=>[y(f(a.type),1)]),_:2},1024)]),_:2},1024)]),_:2},1024))]),_:2},1024)):r.key==="payloadInfo"?(p(),g(t(k),{key:2,gap:8,align:"start",justify:"space-between"},{default:n(()=>[s(t(X),{"tree-data":t(it)(a.payload),selectable:!1,style:{flex:"1"}},null,8,["tree-data"]),s(lt,{type:"text",size:"small",tooltip:t(c).translate("i18n_tasksview_copy_payload_tooltip"),onClick:Z(m=>q(a.payload),["stop"])},{default:n(()=>[s(t(st))]),_:2},1032,["tooltip","onClick"])]),_:2},1024)):j("",!0)]),footer:n(()=>[s(t(R),{justify:"end",gutter:10},{default:n(()=>[s(t(A),null,{default:n(()=>[s(t(K),{size:"small"})]),_:1}),s(t(A),null,{default:n(()=>[s(t(D),null,{default:n(()=>[y(f(t(c).translate("i18n_tasksview_auto_updating")),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["columns","data-source","pagination"])],64))}}),Ut=L({__name:"Tasks",setup(d){const i=at(),o=i.params.projectId,b=i.query.stage,v=i.query.status,u=new dt(o),{result:T}=ft(async()=>{const S=(await ct.list(o)).find(O=>O.latest);if(!S)return null;const[h,x]=await Promise.all([pt.get(S.id),gt.get(o)]);return{buildSpec:h,project:x}}),I=N(()=>!T.value||!T.value.buildSpec?null:T.value.buildSpec.runtimes.map(w=>({id:w.id,stageTitle:w.title,stageType:w.type})));return(w,S)=>(p(),U(E,null,[s(t(nt),null,{default:n(()=>[y(f(t(c).translate("i18n_tasksview_title")),1)]),_:1}),I.value?(p(),g(vt,{key:0,class:"tasks",api:t(u),stages:I.value,"stage-id":t(b),status:t(v)},null,8,["api","stages","stage-id","status"])):j("",!0)],64))}});export{Ut as default};
2
- //# sourceMappingURL=Tasks.db070216.js.map
@@ -1,2 +0,0 @@
1
- import{d as k,r as B,U as A,o as n,a as d,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.b9bb33e7.js";import{S as $}from"./Steps.a55d381b.js";import{W as F}from"./PlayerConfigProvider.8a1d38e8.js";import"./index.0389f2ff.js";import"./colorHelpers.53158244.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]="b782de77-bfdb-4d60-9642-0eae136cf3a7",o._sentryDebugIdIdentifier="sentry-dbid-b782de77-bfdb-4d60-9642-0eae136cf3a7")}catch{}})();const K=k({__name:"ActionButton",props:{action:{},displayName:{},disabled:{type:Boolean},loading:{type:Boolean}},emits:["click"],setup(o,{emit:t}){const u=o,l=B(null);return A(()=>{l.value&&u.action.setElement(l.value)}),(r,i)=>(n(),d(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(),u=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(),d(F,{"main-color":"#d14056",class:"preview",background:"#fbfbfb","font-family":"Inter",locale:"en"},{default:f(()=>[p()?(n(),d($,{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(),d(x(a.component),{"user-props":a.userProps,value:a.userProps.value,errors:u.value},null,8,["user-props","value","errors"]))]))),128))]),_().length?(n(),c("div",j,[(n(!0),c(w,null,v(_(),a=>(n(),d(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.40cbebe3.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-0d8346f9]{padding:12px;min-width:150px;max-width:280px;display:flex;flex-direction:column;align-items:flex-start}.stage-node.disabled[data-v-0d8346f9]{opacity:.35;background-color:#0000000d}.stage-content[data-v-0d8346f9]{display:flex;align-items:center;gap:8px;width:100%}.stage-icon[data-v-0d8346f9]{flex-shrink:0}.stage-title[data-v-0d8346f9]{font-weight:500;font-size:14px;word-break:break-word;text-align:left;flex:1}.actions-menu[data-v-0d8346f9]{flex-shrink:0;margin-left:auto}.action-item[data-v-0d8346f9]{display:flex;align-items:center;gap:8px}.action-item.disabled[data-v-0d8346f9]{opacity:.5;cursor:not-allowed}.action-warning[data-v-0d8346f9]{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 ve=Object.defineProperty;var ye=(u,t,d)=>t in u?ve(u,t,{enumerable:!0,configurable:!0,writable:!0,value:d}):u[t]=d;var de=(u,t,d)=>(ye(u,typeof t!="symbol"?t+"":t,d),d);import{_ as G}from"./AbstraButton.vue_vue_type_script_setup_true_lang.865dcbf3.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 _,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 fe,_ as ie,dj as Z,ej as Se,f6 as ce,de as q,i as k,cS as ge,cT as Me,ei as me,ec as _e,el as R,bE as $e,bD as K,eh as re,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.b9bb33e7.js";import{F as Ee}from"./PhArrowSquareOut.vue.e64bebdd.js";import{I as ue}from"./PhCopy.vue.2163dc9b.js";import{F as He,I as We,O as De}from"./os.cc382050.js";import{G as Fe}from"./PhPencilSimple.vue.2d6e76ca.js";import{_ as Ye}from"./vue-flow-background.6bb2a806.js";import{a as Xe,b as Ge,g as ee,u as Oe,e as qe,M as Je}from"./vue-flow-core.0cbcaed0.js";import{k as te}from"./router.135b49e3.js";import{a as le,B as Ue,b as Re}from"./build.bfc699c6.js";import"./tables.d6f8baad.js";import{G as Ke}from"./PhArrowCounterClockwise.vue.9a0ef441.js";import{I as Qe}from"./PhCopySimple.vue.df39762b.js";import{G as et}from"./PhDotsThreeVertical.vue.e9b1faec.js";import{F as tt,G as at,I as st,a as ot}from"./PhWebhooksLogo.vue.a73cf99c.js";import{a as ae}from"./asyncComputed.7ddee0b0.js";import{a as nt}from"./project.f3f1cd2e.js";import{g as rt}from"./datetime.0048a7b9.js";import{_ as lt,R as it}from"./ExecutionStatusIcon.vue_vue_type_script_setup_true_lang.4f510b9a.js";import{R as dt}from"./repository.88fdba21.js";import{u as ct}from"./polling.bdac3134.js";import{C as se}from"./Card.eab9832f.js";import"./index.cb46e99b.js";import"./record.c01e7f08.js";import"./string.04644599.js";import"./LoadingOutlined.bcf2a831.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]="936ef76a-2b79-4a9c-9ffe-5987b159e6c2",u._sentryDebugIdIdentifier="sentry-dbid-936ef76a-2b79-4a9c-9ffe-5987b159e6c2")}catch{}})();const ut=["width","height","fill","transform"],pt={key:0},ft=_("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],mt={key:1},_t=_("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=_("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),vt=[_t,wt],yt={key:2},ht=_("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=_("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=_("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=_("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,v)=>(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",mt,vt)):a.value==="fill"?(c(),A("g",yt,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 v=l/i,S=x/i,f=r.width/2,M=r.height/2;let P=r.center.x,j=r.center.y;Math.abs(v)*M>Math.abs(S)*f?(P=r.center.x+(v>0?f:-f),j=r.center.y+S*f/Math.abs(v)):(P=r.center.x+v*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,m=a.center.y;return Math.abs(v)*T>Math.abs(S)*z?(E=a.center.x-(v>0?z:-z),m=a.center.y-S*z/Math.abs(v)):(E=a.center.x-v*T/Math.abs(S),m=a.center.y-(S>0?T:-T)),P+=v*p,j+=S*p,E-=v*p,m-=S*p,{sourceX:P,sourceY:j,targetX:E,targetY:m}}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(fe,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(()=>[_("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=ie(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){de(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(fe,null,Se(a.executions,l=>(c(),$(e(ce),{key:l.id,to:{name:"logs",params:{projectId:a.projectId},query:{executionId:l.id}}},{default:o(()=>[s(e(ge),{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(ce),{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-content"},Vt={class:"stage-title"},Et={class:"action-item"},Ht={class:"action-item"},Wt={class:"action-warning"},Dt={key:1,class:"action-item"},pe="3.18.0",Ft=X({__name:"WorkflowStageNode",props:{stage:{}},setup(u){const t=u,d=me(),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 le.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}})},v=b(()=>t.stage.type==="forms"||t.stage.type==="hooks"),S=()=>{var n;if(!t.stage.path)return;const m=t.stage.type==="forms"?`/${t.stage.path}`:`/_hooks/${t.stage.path}`,I=(n=a.value)==null?void 0:n.getUrl(m);!I||(navigator.clipboard.writeText(I),xe.success(k.translate("i18n_workflowviewer_copied_url")))},f=b(()=>{var m;return(m=l.value)==null?void 0:m.map(I=>I.id).includes(t.stage.id)}),M=(m,I)=>{const[n,y,h]=m.split(".").map(Number),[D,B,W]=I.split(".").map(Number);return n>D?!0:n<D?!1:y>B?!0:y<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 m;return!M(((m=p.value)==null?void 0:m.abstraVersion)||"0.0.0",pe)}),T=b(()=>z.value?k.translate("i18n_workflowviewer_disable_stages_warning").replace("{version}",pe):""),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(m,I)=>(c(),A("div",{class:re(["stage-node",{disabled:f.value}])},[_("div",Nt,[(c(),$(R(r.value),{size:18,class:"stage-icon"})),_("div",Vt,g(m.stage.title),1),s(e(Le),{trigger:["click"]},{overlay:o(()=>[s(e($e),null,{default:o(()=>[s(e(K),{onClick:i},{default:o(()=>[_("div",Et,[s(e(Ke),{size:16}),_("span",null,g(e(k).translate("i18n_workflowviewer_view_logs")),1)])]),_:1}),v.value?(c(),$(e(K),{key:0,onClick:S},{default:o(()=>[_("div",Ht,[s(e(Qe),{size:16}),_("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(ge),{key:0,placement:"left"},{content:o(()=>[_("div",Wt,[s(e(F),null,{default:o(()=>[C(g(T.value),1)]),_:1})])]),default:o(()=>[_("div",{class:re(["action-item",{disabled:z.value}])},[(c(),$(R(P.value),{size:16})),_("span",null,g(j.value),1)],2)]),_:1})):(c(),A("div",Dt,[(c(),$(R(P.value),{size:16})),_("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":m.stage.id,"project-id":e(w),executions:m.stage.executions,"task-stats":m.stage.taskStats,style:{"margin-top":"8px"}},null,8,["stage-id","project-id","executions","task-stats"])],2))}});const J=ie(Ft,[["__scopeId","data-v-0d8346f9"]]);function Yt(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[v,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()]);v.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(v){console.error("Failed to load workflow data:",v)}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),Xt={class:"flow-container"},Gt={class:"code-container"},Ot=we(()=>_("code",{class:"install-code"},"pip install abstra",-1)),qt={class:"code-container"},Jt=we(()=>_("code",{class:"install-code"},"abstra editor .",-1)),Ut={key:0,class:"edit-button-text"},ne="#ea576a",Rt=X({__name:"WorkflowViewer",setup(u){const{onInit:t}=Oe(),d=new Re,L=me(),w=_e(),r=L.params.projectId,a=L.query.buildId,p=V(!0),l=V(null),x=V(!0),i=V(!1),v=()=>{w.push({name:"web-editor",params:{projectId:r}})},S=async n=>{try{await navigator.clipboard.writeText(n)}catch(y){console.error("Failed to copy:",y)}};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}=Yt(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}}))),m=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 y=[],h=[],D=["jobs","hooks","forms","scripts"];for(const B of D){const W=n[B]||[];for(const N of W){y.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=y,M.value=h}return Be(async()=>{try{p.value=!0;let n;if(a){const B=(await le.list(r)).find(W=>W.id===a);if(!B){l.value="Build not found";return}n=B}else{const B=(await le.list(r)).find(W=>W.latest);if(!B){l.value="No builds found for this project";return}n=B}const y=await d.get(n.id);if(!y||!y.abstraJson){l.value="No workflow data available for this build";return}const h=JSON.parse(y.abstraJson);I(h)}catch(n){l.value=n instanceof Error?n.message:"Failed to load workflow",console.error(n)}finally{p.value=!1}}),(n,y)=>(c(),A("div",Xt,[p.value?(c(),$(e(Ze),{key:0,style:{width:"100%"}})):T.value?(c(),$(e(qe),{key:2,nodes:E.value,edges:m.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(()=>[_("div",Gt,[Ot,s(G,{type:"text",size:"small",onClick:y[0]||(y[0]=h=>S("pip install abstra"))},{default:o(()=>[s(e(ue),{size:16})]),_:1})]),_("div",qt,[Jt,s(G,{type:"text",size:"small",onClick:y[1]||(y[1]=h=>S("abstra editor ."))},{default:o(()=>[s(e(ue),{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:v},{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:re(["edit-button",{expanded:i.value}]),type:"primary",size:"large",onClick:v,onMouseenter:y[2]||(y[2]=h=>i.value=!0),onMouseleave:y[3]||(y[3]=h=>i.value=!1)},{default:o(()=>[s(e(Fe),{size:24}),i.value?(c(),A("span",Ut,g(e(k).translate("i18n_workflowviewer_edit_online")),1)):H("",!0)]),_:1},8,["class"])):H("",!0)]))}});const $a=ie(Rt,[["__scopeId","data-v-7b40ff03"]]);export{$a as default};
2
- //# sourceMappingURL=WorkflowViewer.b9f96c37.js.map
@@ -1,2 +0,0 @@
1
- import{en as n,M as b}from"./jwt-decode.esm.b9bb33e7.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]="afb8681f-26b0-41e5-94b5-cf44b632a60e",e._sentryDebugIdIdentifier="sentry-dbid-afb8681f-26b0-41e5-94b5-cf44b632a60e")}catch{}})();function u(e){return n.exports.isArray(e)?e.length===0?"[ ]":"[ ... ]":n.exports.isObject(e)?Object.keys(e).length===0?"{ }":"{ ... }":n.exports.isString(e)?`'${e}'`:n.exports.isUndefined(e)||n.exports.isNull(e)?"None":e===!0?"True":e===!1?"False":`${e}`}function c(e){if(n.exports.isArray(e))return"array";if(n.exports.isObject(e))return"object";throw new Error("treeKey called with non-object and non-array")}function o(e,r=[],t){const f=t?`'${t}': ${u(e)}`:u(e);if(n.exports.isArray(e)){const i=c(e);return[{title:f,key:[...r,i].join("/"),children:e.flatMap((s,l)=>o(s,[...r,i,`${l}`]))}]}else if(n.exports.isObject(e)){const i=c(e);return[{title:f,key:[...r,i].join("/"),children:Object.entries(e).flatMap(([s,l])=>o(l,[...r,i,s],s))}]}else return[{title:f,key:r.join("/"),children:[]}]}function x(e,r){return new Promise(t=>{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,o as t};
2
- //# sourceMappingURL=ant-design.5ec0b6b3.js.map
@@ -1,2 +0,0 @@
1
- import{$ as c,c as l}from"./jwt-decode.esm.b9bb33e7.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]="775614d0-07cd-43ea-9a1f-c7709ae8ab4b",r._sentryDebugIdIdentifier="sentry-dbid-775614d0-07cd-43ea-9a1f-c7709ae8ab4b")}catch{}})();const i=r=>{const e=c({loading:!0,result:null,error:null}),n=t=>(e.value={loading:!1,result:t,error:null},t),o=t=>{e.value={loading:!1,result:null,error:t}},a=async()=>(e.value={loading:!0,result:e.value.result,error:null},r().then(n).catch(o));a();const s=l(()=>e.value.loading),u=l(()=>e.value.result),d=l(()=>e.value.error);return{loading:s,result:u,error:d,refetch:a}};export{i as a};
2
- //# sourceMappingURL=asyncComputed.7ddee0b0.js.map
@@ -1,2 +0,0 @@
1
- import"./jwt-decode.esm.b9bb33e7.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]="4f5f2f83-a729-4302-a6f1-d4a51307210b",t._sentryDebugIdIdentifier="sentry-dbid-4f5f2f83-a729-4302-a6f1-d4a51307210b")}catch{}})();function p(t,e){const{r:n,g:r,b:a,usePound:o}=f(t);return w(c(n,-e),c(r,-e),c(a,-e),o)}function c(t,e){const n=t*(100+e*100)/100;return n>255?255:n<0?0:Math.round(n)}function E(t){return t.startsWith("#")||t.match(/^(rgb|hsl)/)}const v=(t,e)=>y(p(y(t),e)),P=t=>k(t)?v(t,.1):p(t,.1);function k(t){const{r:e,g:n,b:r}=f(t);return e*.299+n*.587+r*.114<186}function f(t){let e=!1;t[0]=="#"&&(t=t.slice(1),e=!0);const n=parseInt(t,16);return{r:n>>16&255,g:n>>8&255,b:n&255,usePound:e}}function y(t){const{r:e,g:n,b:r,usePound:a}=f(t);return w(255-e,255-n,255-r,a)}const w=(t,e,n,r=!0)=>(r?"#":"")+(n|e<<8|t<<16).toString(16).padStart(6,"0");function _(t){return new Promise((e,n)=>{const r=document.createElement("img");r.src=t,r.crossOrigin="Anonymous",r.style.display="none",document.body.appendChild(r);let a=0;r.onerror=o=>n(new Error(`Failed to load image: ${o}`)),r.onload=()=>{const{width:o,height:g}=r,s=document.createElement("canvas");s.width=o,s.height=g;const u=s.getContext("2d");if(!u)return e(!1);u.drawImage(r,0,0);const I=u.getImageData(0,0,s.width,s.height),{data:d}=I;let l,h,b,m;for(let i=0,x=d.length;i<x;i+=4)l=d[i],h=d[i+1],b=d[i+2],m=Math.floor((l+h+b)/3),a+=m;const D=Math.floor(a/(o*g));document.body.removeChild(r),e(D<=127)}})}export{k as a,_ as b,P as c,E as i,v as l};
2
- //# sourceMappingURL=colorHelpers.53158244.js.map
@@ -1,2 +0,0 @@
1
- import"./jwt-decode.esm.b9bb33e7.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]="6c11df5c-d068-4c91-a2cf-9ba5044fc330",t._sentryDebugIdIdentifier="sentry-dbid-6c11df5c-d068-4c91-a2cf-9ba5044fc330")}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"},a=t=>{if(!t)return e.DOCS;const s=t.startsWith("/")?t.slice(1):t;return`${e.DOCS}/${s}`};export{e as A,a as b};
2
- //# sourceMappingURL=constants.0deee127.js.map
@@ -1,2 +0,0 @@
1
- import{Z as o}from"./jwt-decode.esm.b9bb33e7.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},S=new Error().stack;S&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[S]="e688adb3-1ec1-4361-91f3-1b0eebcd0927",n._sentryDebugIdIdentifier="sentry-dbid-e688adb3-1ec1-4361-91f3-1b0eebcd0927")}catch{}})();const D=o.string(),I=o.array(D),R=o.number(),y=o.string().datetime({local:!0}),T=o.enum(["file","directory"]),F=o.string(),k=o.array(F),E=o.array(k).default([]),A=o.object({pathParts:I,size:R,lastModified:y,type:T,children:E.optional()}),L=o.boolean(),G=o.boolean(),j=o.boolean(),P=o.boolean(),N=o.boolean(),W=o.boolean();o.object({PROJECT_LIVE:L.optional(),ALLOW_RELEASE:G.optional(),CONNECTORS_CONSOLE:j.optional(),DUPLICATE_PROJECTS:P.optional(),WEB_EDITOR:N.optional(),LANGCHAIN_SMART_CHAT:W.optional()});const _=o.string(),M=o.string(),w=o.string(),H=o.string(),v=o.string();o.object({plan:_.optional(),expires:M.optional(),message:w.optional(),messageLink:H.optional(),messageCTA:v.optional()});const x=o.string(),b=o.string(),r=o.string(),O=o.string(),q=o.string(),U=o.object({id:x,name:b,description:r.optional(),projectId:O,createdAt:q}),B=o.string(),z=o.string(),K=o.string(),$=o.string(),Q=o.string(),X=o.enum(["true","false"]),Y=o.enum(["true","false"]),Z=o.enum(["true","false"]),oo=o.string().regex(new RegExp("^[0-9]+m$")),to=o.string().regex(new RegExp("^[0-9]+m$")),no=o.string().regex(new RegExp("^[0-9]+Mi$")),eo=o.string().regex(new RegExp("^[0-9]+Mi$")),so=o.string().regex(new RegExp("^[0-9]+$")),ao=o.number(),io=o.string().regex(new RegExp("^[0-9]+$")),mo=o.string(),ro=o.enum(["3.9","3.10","3.11","3.12"]),co=o.string(),lo=o.string(),So=o.object({watermarkEnabled:X.optional(),seleniumInstanceEnabled:Y.optional(),notificationsEnabled:Z.optional(),requestsCPU:oo.optional(),limitsCPU:to.optional(),requestsMemory:no.optional(),limitsMemory:eo.optional(),minReplicas:so.optional(),computeUnits:ao.optional(),timeoutSeconds:io.optional(),workerType:mo.optional(),pythonVersion:ro.optional(),workerNumber:co.optional(),baseDockerfile:lo.optional()});o.object({id:B,folderId:z,name:K,subdomain:$,organizationId:Q,deploymentResources:So.optional()});const Ao=o.string(),bo=o.string(),Co=o.string();o.object({name:Ao,connectionType:bo,projectId:Co});const go=o.string(),ho=o.string(),C=o.array(ho),g=o.string(),uo=o.string();o.object({id:go,emailPatterns:C,projectId:g,createdAt:uo});const po=o.string(),Vo=o.string(),Jo=o.string(),fo=o.string(),Do=o.object({key:po,label:Vo,description:Jo,logoUrl:fo}),Io=o.literal("tokens"),Ro=o.string(),yo=o.string(),To=o.string(),Fo=o.string(),ko=o.enum(["small-string","large-text","file","radiobox","checkbox"]),Eo=o.string(),Lo=o.string(),Go=o.object({value:Eo,label:Lo}),jo=o.array(Go),Po=o.number(),No=o.number(),Wo=o.object({type:ko,options:jo.optional(),maxSize:Po.optional(),minSize:No.optional()}),_o=o.object({key:Ro,label:yo,description:To,instructions:Fo.optional(),input:Wo}),c=o.array(_o),Mo=c,wo=o.object({type:Io,tokens:Mo}),Ho=o.literal("oauth2"),vo=o.string(),xo=o.string(),Oo=o.string(),qo=o.object({key:vo,label:xo,description:Oo}),Uo=o.array(qo),Bo=c,zo=o.object({type:Ho,scopes:Uo,params:Bo}),Ko=o.literal("manual"),$o=o.object({type:Ko}),Qo=o.literal("ecdsa"),Xo=c,Yo=o.object({type:Qo,params:Xo}),Zo=o.union([wo,zo,$o,Yo]),ot=o.string(),tt=o.string(),nt=o.string(),et=o.record(o.any()),st=o.record(o.any()),at=o.object({key:ot,label:tt,description:nt,payloadSchema:et,returnSchema:st}),it=o.array(at),mt=o.string(),rt=o.string(),ct=o.record(o.any()),lt=o.object({name:mt,description:rt,payloadSchema:ct.optional()}),St=o.array(lt);o.object({metadata:Do,auth:Zo,actions:it,triggers:St});const At=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"]),bt=o.string(),e=o.string().email(),Ct=o.string(),l=o.array(Ct),gt=o.string(),ht=o.string(),ut=o.object({id:bt,email:e,roles:l,projectId:gt,createdAt:ht}),pt=o.string().uuid(),dt=o.string(),Vt=o.string().uuid(),Jt=o.boolean(),ft=o.string(),Dt=At,It=o.boolean(),Rt=o.boolean(),yt=o.string(),Tt=o.string(),Ft=o.object({columnId:Tt}),kt=o.object({id:Vt,primaryKey:Jt,name:ft,type:Dt,unique:It.optional(),nullable:Rt.optional(),default:yt.optional(),foreignKey:Ft.optional()}),Et=o.array(kt),Lt=o.record(o.any()),Gt=o.array(Lt),jt=o.object({id:pt,name:dt,columns:Et,data:Gt}),Pt=o.array(jt);o.object({tables:Pt});const h=o.string(),u=o.string(),Nt=o.boolean(),Wt=o.boolean(),_t=o.boolean(),Mt=o.boolean(),wt=o.boolean(),Ht=o.boolean(),p=o.object({PROJECT_LIVE:Nt,ALLOW_RELEASE:Wt,CONNECTORS_CONSOLE:_t,DUPLICATE_PROJECTS:Mt,WEB_EDITOR:wt.optional(),LANGCHAIN_SMART_CHAT:Ht.optional()}),vt=o.string(),xt=o.string(),Ot=o.string(),qt=o.string(),Ut=o.string(),d=o.object({plan:vt.optional(),expires:xt.optional(),message:Ot.optional(),messageLink:qt.optional(),messageCTA:Ut.optional()}),Bt=o.enum(["true","false"]),zt=o.enum(["true","false"]),Kt=o.enum(["true","false"]),$t=o.string().regex(new RegExp("^[0-9]+m$")),Qt=o.string().regex(new RegExp("^[0-9]+m$")),Xt=o.string().regex(new RegExp("^[0-9]+Mi$")),Yt=o.string().regex(new RegExp("^[0-9]+Mi$")),Zt=o.string().regex(new RegExp("^[0-9]+$")),on=o.number(),tn=o.string().regex(new RegExp("^[0-9]+$")),nn=o.string(),en=o.enum(["3.9","3.10","3.11","3.12"]),sn=o.string(),an=o.string(),mn=o.object({watermarkEnabled:Bt.optional(),nativeTempDir:zt.optional(),notificationsEnabled:Kt.optional(),requestsCPU:$t.optional(),limitsCPU:Qt.optional(),requestsMemory:Xt.optional(),limitsMemory:Yt.optional(),minReplicas:Zt.optional(),computeUnits:on.optional(),timeoutSeconds:tn.optional(),workerType:nn.optional(),pythonVersion:en.optional(),workerNumber:sn.optional(),baseDockerfile:an.optional()}),rn=o.string(),cn=o.array(rn),ln=o.object({whitelistPatterns:cn.optional()});o.object({id:h,name:u,featureFlags:p,billingMetadata:d,deploymentResources:mn.optional(),membershipsMetadata:ln.optional()});const Sn=o.string(),An=o.array(Sn);o.object({whitelistPatterns:An.optional()});const bn=o.string(),Cn=o.string(),gn=o.string(),hn=o.null(),un=o.union([gn,hn]),pn=o.string(),dn=o.null(),Vn=o.union([pn,dn]),Jn=o.string(),fn=o.null(),Dn=o.union([Jn,fn]),In=o.string(),Rn=o.null(),yn=o.union([In,Rn]),Tn=o.string(),Fn=o.null(),kn=o.union([Tn,Fn]),En=o.string(),Ln=o.null(),Gn=o.union([En,Ln]),jn=o.string(),Pn=o.null(),Nn=o.union([jn,Pn]),Wn=o.object({name:bn,language:Cn,theme:un,logo_url:Vn,favicon_url:Dn,brand_name:yn,main_color:kn,font_family:Gn,font_color:Nn}),_n=o.boolean(),Mn=o.string(),wn=o.array(Mn),Hn=o.object({is_public:_n,required_roles:wn}),vn=o.object({access_control:Hn}),xn=o.string(),On=o.number(),qn=o.array(On),Un=o.string(),Bn=o.string(),zn=o.string(),Kn=o.string(),$n=o.string(),Qn=o.null(),Xn=o.union([$n,Qn]),s=o.object({id:Un,target_id:Bn,target_type:zn,type:Kn,task_type:Xn.optional()}),Yn=s,Zn=o.array(Yn),oe=o.string(),te=o.string(),ne=o.string(),ee=o.object({file:xn,workflow_position:qn,transitions:Zn,id:oe,title:te,schedule:ne}),se=ee,ae=o.array(se),ie=o.string(),me=o.number(),re=o.array(me),ce=s,le=o.array(ce),Se=o.string(),Ae=o.string(),be=o.boolean(),Ce=o.string(),ge=o.boolean(),he=o.object({file:ie,workflow_position:re,transitions:le,id:Se,title:Ae,enabled:be,path:Ce,is_initial:ge}),ue=he,pe=o.array(ue),de=o.string(),Ve=o.number(),Je=o.array(Ve),fe=s,De=o.array(fe),Ie=o.string(),Re=o.string(),ye=o.string(),Te=o.null(),Fe=o.union([ye,Te]),ke=o.string(),Ee=o.null(),Le=o.union([ke,Ee]),Ge=o.string(),je=o.null(),Pe=o.union([Ge,je]),Ne=o.boolean(),We=o.string(),_e=o.boolean(),Me=o.boolean(),we=o.string(),He=o.array(we),ve=o.object({is_public:Me,required_roles:He}),xe=o.string(),Oe=o.boolean(),qe=o.object({variable_name:xe,enabled:Oe}),Ue=o.string(),Be=o.null(),ze=o.union([Ue,Be]),Ke=o.string(),$e=o.null(),Qe=o.union([Ke,$e]),Xe=o.object({file:de,workflow_position:Je,transitions:De,id:Ie,title:Re,timeout_message:Fe,end_message:Le,start_message:Pe,auto_start:Ne,path:We,is_initial:_e,access_control:ve,notification_trigger:qe,error_message:ze,start_button_text:Qe}),Ye=Xe,Ze=o.array(Ye),os=o.string(),ts=o.number(),ns=o.array(ts),es=s,ss=o.array(es),as=o.string(),is=o.string(),ms=o.boolean(),rs=o.object({file:os,workflow_position:ns,transitions:ss,id:as,title:is,is_initial:ms}),cs=rs,ls=o.array(cs),Ss=o.literal("16.0");o.object({workspace:Wn,home:vn,jobs:ae,hooks:pe,forms:Ze,scripts:ls,version:Ss});const As=o.string(),bs=o.string(),Cs=o.string(),gs=o.null(),hs=o.union([Cs,gs]),us=o.string(),ps=o.null(),ds=o.union([us,ps]),Vs=o.string(),Js=o.null(),fs=o.union([Vs,Js]),Ds=o.string(),Is=o.null(),Rs=o.union([Ds,Is]),ys=o.string(),Ts=o.null(),Fs=o.union([ys,Ts]),ks=o.string(),Es=o.null(),Ls=o.union([ks,Es]),Gs=o.string(),js=o.null(),Ps=o.union([Gs,js]),Ns=o.object({name:As,language:bs,theme:hs,logo_url:ds,favicon_url:fs,brand_name:Rs,main_color:Fs,font_family:Ls,font_color:Ps}),Ws=o.boolean(),_s=o.string(),Ms=o.array(_s),ws=o.object({is_public:Ws,required_roles:Ms}),Hs=o.object({access_control:ws}),vs=o.string(),xs=o.number(),Os=o.array(xs),qs=o.string(),Us=o.string(),Bs=o.string(),zs=o.string(),Ks=o.string(),$s=o.null(),Qs=o.union([Ks,$s]),a=o.object({id:qs,target_id:Us,target_type:Bs,type:zs,task_type:Qs.optional()}),Xs=a,Ys=o.array(Xs),Zs=o.string(),oa=o.string(),ta=o.string(),na=o.object({file:vs,workflow_position:Os,transitions:Ys,id:Zs,title:oa,schedule:ta}),ea=na,sa=o.array(ea),aa=o.string(),ia=o.number(),ma=o.array(ia),ra=a,ca=o.array(ra),la=o.string(),Sa=o.string(),Aa=o.boolean(),ba=o.string(),Ca=o.boolean(),ga=o.object({file:aa,workflow_position:ma,transitions:ca,id:la,title:Sa,enabled:Aa,path:ba,is_initial:Ca}),ha=ga,ua=o.array(ha),pa=o.string(),da=o.number(),Va=o.array(da),Ja=a,fa=o.array(Ja),Da=o.string(),Ia=o.string(),Ra=o.string(),ya=o.null(),Ta=o.union([Ra,ya]),Fa=o.string(),ka=o.null(),Ea=o.union([Fa,ka]),La=o.string(),Ga=o.null(),ja=o.union([La,Ga]),Pa=o.boolean(),Na=o.string(),Wa=o.boolean(),_a=o.boolean(),Ma=o.string(),wa=o.array(Ma),Ha=o.object({is_public:_a,required_roles:wa}),va=o.string(),xa=o.boolean(),Oa=o.object({variable_name:va,enabled:xa}),qa=o.string(),Ua=o.null(),Ba=o.union([qa,Ua]),za=o.string(),Ka=o.null(),$a=o.union([za,Ka]),Qa=o.object({file:pa,workflow_position:Va,transitions:fa,id:Da,title:Ia,timeout_message:Ta,end_message:Ea,start_message:ja,auto_start:Pa,path:Na,is_initial:Wa,access_control:Ha,notification_trigger:Oa,error_message:Ba,start_button_text:$a}),Xa=Qa,Ya=o.array(Xa),Za=o.string(),oi=o.number(),ti=o.array(oi),ni=a,ei=o.array(ni),si=o.string(),ai=o.string(),ii=o.boolean(),mi=o.object({file:Za,workflow_position:ti,transitions:ei,id:si,title:ai,is_initial:ii}),ri=mi,ci=o.array(ri),li=o.literal("15.0");o.object({workspace:Ns,home:Hs,jobs:sa,hooks:ua,forms:Ya,scripts:ci,version:li});const Si=o.string(),Ai=o.string(),bi=o.string(),Ci=o.null(),gi=o.union([bi,Ci]),hi=o.string(),ui=o.null(),pi=o.union([hi,ui]),di=o.string(),Vi=o.null(),Ji=o.union([di,Vi]),fi=o.string(),Di=o.null(),Ii=o.union([fi,Di]),Ri=o.string(),yi=o.null(),Ti=o.union([Ri,yi]),Fi=o.string(),ki=o.null(),Ei=o.union([Fi,ki]),Li=o.string(),Gi=o.null(),ji=o.union([Li,Gi]),Pi=o.object({name:Si,language:Ai,theme:gi,logo_url:pi,favicon_url:Ji,brand_name:Ii,main_color:Ti,font_family:Ei,font_color:ji}),Ni=o.boolean(),Wi=o.string(),_i=o.array(Wi),Mi=o.object({is_public:Ni,required_roles:_i}),wi=o.object({access_control:Mi}),Hi=o.string(),vi=o.number(),xi=o.array(vi),Oi=o.string(),qi=o.string(),Ui=o.string(),Bi=o.literal("task"),zi=o.string(),Ki=o.null(),$i=o.union([zi,Ki]),i=o.object({id:Oi,target_id:qi,target_type:Ui,type:Bi,task_type:$i.optional()}),Qi=i,Xi=o.array(Qi),Yi=o.string(),Zi=o.string(),om=o.string(),tm=o.object({file:Hi,workflow_position:xi,transitions:Xi,id:Yi,title:Zi,schedule:om}),nm=tm,em=o.array(nm),sm=o.string(),am=o.number(),im=o.array(am),mm=i,rm=o.array(mm),cm=o.string(),lm=o.string(),Sm=o.boolean(),Am=o.string(),bm=o.boolean(),Cm=o.object({file:sm,workflow_position:im,transitions:rm,id:cm,title:lm,enabled:Sm,path:Am,is_initial:bm}),gm=Cm,hm=o.array(gm),um=o.string(),pm=o.number(),dm=o.array(pm),Vm=i,Jm=o.array(Vm),fm=o.string(),Dm=o.string(),Im=o.string(),Rm=o.null(),ym=o.union([Im,Rm]),Tm=o.string(),Fm=o.null(),km=o.union([Tm,Fm]),Em=o.string(),Lm=o.null(),Gm=o.union([Em,Lm]),jm=o.boolean(),Pm=o.string(),Nm=o.null(),Wm=o.union([Pm,Nm]),_m=o.string(),Mm=o.boolean(),wm=o.boolean(),Hm=o.boolean(),vm=o.string(),xm=o.array(vm),Om=o.object({is_public:Hm,required_roles:xm}),qm=o.string(),Um=o.null(),Bm=o.union([qm,Um]),zm=o.string(),Km=o.boolean(),$m=o.object({variable_name:zm,enabled:Km}),Qm=o.string(),Xm=o.null(),Ym=o.union([Qm,Xm]),Zm=o.string(),or=o.null(),tr=o.union([Zm,or]),nr=o.object({file:um,workflow_position:dm,transitions:Jm,id:fm,title:Dm,timeout_message:ym,restart_button_text:km,end_message:Gm,auto_start:jm,start_message:Wm,path:_m,allow_restart:Mm,is_initial:wm,access_control:Om,welcome_title:Bm,notification_trigger:$m,error_message:Ym,start_button_text:tr}),er=nr,sr=o.array(er),ar=o.string(),ir=o.number(),mr=o.array(ir),rr=i,cr=o.array(rr),lr=o.string(),Sr=o.string(),Ar=o.boolean(),br=o.object({file:ar,workflow_position:mr,transitions:cr,id:lr,title:Sr,is_initial:Ar}),Cr=br,gr=o.array(Cr),hr=o.literal("14.0");o.object({workspace:Pi,home:wi,jobs:em,hooks:hm,forms:sr,scripts:gr,version:hr});const ur=o.string(),pr=o.string(),dr=o.string(),Vr=o.null(),Jr=o.union([dr,Vr]),fr=o.string(),Dr=o.null(),Ir=o.union([fr,Dr]),Rr=o.string(),yr=o.null(),Tr=o.union([Rr,yr]),Fr=o.string(),kr=o.null(),Er=o.union([Fr,kr]),Lr=o.string(),Gr=o.null(),jr=o.union([Lr,Gr]),Pr=o.string(),Nr=o.null(),Wr=o.union([Pr,Nr]),_r=o.string(),Mr=o.null(),wr=o.union([_r,Mr]),Hr=o.object({name:ur,language:pr,theme:Jr,logo_url:Ir,favicon_url:Tr,brand_name:Er,main_color:jr,font_family:Wr,font_color:wr}),vr=o.boolean(),xr=o.string(),Or=o.array(xr),qr=o.object({is_public:vr,required_roles:Or}),Ur=o.object({access_control:qr}),Br=o.string(),zr=o.number(),Kr=o.array(zr),$r=o.string(),Qr=o.string(),Xr=o.string(),Yr=o.string(),Zr=o.string(),oc=o.null(),tc=o.union([Zr,oc]),t=o.object({id:$r,target_id:Qr,target_type:Xr,type:Yr,task_type:tc.optional()}),nc=t,ec=o.array(nc),sc=o.string(),ac=o.string(),ic=o.string(),mc=o.object({file:Br,workflow_position:Kr,transitions:ec,id:sc,title:ac,schedule:ic}),rc=mc,cc=o.array(rc),lc=o.string(),Sc=o.number(),Ac=o.array(Sc),bc=t,Cc=o.array(bc),gc=o.string(),hc=o.string(),uc=o.boolean(),pc=o.string(),dc=o.boolean(),Vc=o.object({file:lc,workflow_position:Ac,transitions:Cc,id:gc,title:hc,enabled:uc,path:pc,is_initial:dc}),Jc=Vc,fc=o.array(Jc),Dc=o.string(),Ic=o.number(),Rc=o.array(Ic),yc=t,Tc=o.array(yc),Fc=o.string(),kc=o.string(),Ec=o.string(),Lc=o.null(),Gc=o.union([Ec,Lc]),jc=o.string(),Pc=o.null(),Nc=o.union([jc,Pc]),Wc=o.string(),_c=o.null(),Mc=o.union([Wc,_c]),wc=o.boolean(),Hc=o.string(),vc=o.null(),xc=o.union([Hc,vc]),Oc=o.string(),qc=o.boolean(),Uc=o.boolean(),Bc=o.boolean(),zc=o.string(),Kc=o.array(zc),$c=o.object({is_public:Bc,required_roles:Kc}),Qc=o.string(),Xc=o.null(),Yc=o.union([Qc,Xc]),Zc=o.string(),ol=o.boolean(),tl=o.object({variable_name:Zc,enabled:ol}),nl=o.string(),el=o.null(),sl=o.union([nl,el]),al=o.string(),il=o.null(),ml=o.union([al,il]),rl=o.object({file:Dc,workflow_position:Rc,transitions:Tc,id:Fc,title:kc,timeout_message:Gc,restart_button_text:Nc,end_message:Mc,auto_start:wc,start_message:xc,path:Oc,allow_restart:qc,is_initial:Uc,access_control:$c,welcome_title:Yc,notification_trigger:tl,error_message:sl,start_button_text:ml}),cl=rl,ll=o.array(cl),Sl=o.string(),Al=o.number(),bl=o.array(Al),Cl=t,gl=o.array(Cl),hl=o.string(),ul=o.string(),pl=o.boolean(),dl=o.object({file:Sl,workflow_position:bl,transitions:gl,id:hl,title:ul,is_initial:pl}),Vl=dl,Jl=o.array(Vl),fl=o.string(),Dl=o.string(),Il=o.string().uuid(),Rl=o.null(),yl=o.union([Il,Rl]),Tl=o.number(),Fl=o.array(Tl),kl=t,El=o.array(kl),Ll=o.string().uuid(),Gl=o.null(),jl=o.union([Ll,Gl]),Pl=o.object({id:fl,title:Dl,project_id:yl,workflow_position:Fl,transitions:El,client_stage_id:jl}),Nl=o.array(Pl),Wl=o.string(),_l=o.string(),Ml=o.number(),wl=o.array(Ml),Hl=t,vl=o.array(Hl),xl=o.object({id:Wl,title:_l,workflow_position:wl,transitions:vl}),Ol=o.array(xl),ql=o.literal("13.0");o.object({workspace:Hr,home:Ur,jobs:cc,hooks:fc,forms:ll,scripts:Jl,agents:Nl,clients:Ol,version:ql});const Ul=o.string(),Bl=o.string(),zl=o.string(),Kl=o.null(),$l=o.union([zl,Kl]),Ql=o.string(),Xl=o.null(),Yl=o.union([Ql,Xl]),Zl=o.string(),oS=o.null(),tS=o.union([Zl,oS]),nS=o.string(),eS=o.null(),sS=o.union([nS,eS]),aS=o.string(),iS=o.null(),mS=o.union([aS,iS]),rS=o.string(),cS=o.null(),lS=o.union([rS,cS]),SS=o.string(),AS=o.null(),bS=o.union([SS,AS]),CS=o.object({name:Ul,language:Bl,theme:$l,logo_url:Yl,favicon_url:tS,brand_name:sS,main_color:mS,font_family:lS,font_color:bS}),gS=o.boolean(),hS=o.string(),uS=o.array(hS),pS=o.object({is_public:gS,required_roles:uS}),dS=o.object({access_control:pS}),VS=o.string(),JS=o.number(),fS=o.array(JS),DS=o.string(),IS=o.string(),RS=o.string(),yS=o.string(),TS=o.string(),FS=o.null(),kS=o.union([TS,FS]),m=o.object({id:DS,target_id:IS,target_type:RS,type:yS,task_type:kS.optional()}),ES=m,LS=o.array(ES),GS=o.string(),jS=o.string(),PS=o.string(),NS=o.object({file:VS,workflow_position:fS,transitions:LS,id:GS,title:jS,schedule:PS}),WS=NS,_S=o.array(WS),MS=o.string(),wS=o.number(),HS=o.array(wS),vS=m,xS=o.array(vS),OS=o.string(),qS=o.string(),US=o.boolean(),BS=o.string(),zS=o.boolean(),KS=o.object({file:MS,workflow_position:HS,transitions:xS,id:OS,title:qS,enabled:US,path:BS,is_initial:zS}),$S=KS,QS=o.array($S),XS=o.string(),YS=o.number(),ZS=o.array(YS),oA=m,tA=o.array(oA),nA=o.string(),eA=o.string(),sA=o.string(),aA=o.null(),iA=o.union([sA,aA]),mA=o.string(),rA=o.null(),cA=o.union([mA,rA]),lA=o.string(),SA=o.null(),AA=o.union([lA,SA]),bA=o.boolean(),CA=o.string(),gA=o.null(),hA=o.union([CA,gA]),uA=o.string(),pA=o.boolean(),dA=o.boolean(),VA=o.boolean(),JA=o.string(),fA=o.array(JA),DA=o.object({is_public:VA,required_roles:fA}),IA=o.string(),RA=o.null(),yA=o.union([IA,RA]),TA=o.string(),FA=o.boolean(),kA=o.object({variable_name:TA,enabled:FA}),EA=o.string(),LA=o.null(),GA=o.union([EA,LA]),jA=o.string(),PA=o.null(),NA=o.union([jA,PA]),WA=o.object({file:XS,workflow_position:ZS,transitions:tA,id:nA,title:eA,timeout_message:iA,restart_button_text:cA,end_message:AA,auto_start:bA,start_message:hA,path:uA,allow_restart:pA,is_initial:dA,access_control:DA,welcome_title:yA,notification_trigger:kA,error_message:GA,start_button_text:NA}),_A=WA,MA=o.array(_A),wA=o.string(),HA=o.number(),vA=o.array(HA),xA=m,OA=o.array(xA),qA=o.string(),UA=o.string(),BA=o.boolean(),zA=o.object({file:wA,workflow_position:vA,transitions:OA,id:qA,title:UA,is_initial:BA}),KA=zA,$A=o.array(KA),QA=o.literal("12.0");o.object({workspace:CS,home:dS,jobs:_S,hooks:QS,forms:MA,scripts:$A,version:QA});const XA=o.literal("replace-code"),YA=o.string(),ZA=o.string(),ob=o.literal("replace-code"),tb=o.object({action:XA,actionLabel:YA,newCode:ZA,type:ob.optional()}),nb=tb,eb=o.literal("edit-stage-name"),sb=o.string(),ab=o.string(),ib=o.literal("edit-stage-name"),mb=o.object({action:eb,actionLabel:sb,newName:ab,type:ib.optional()}),rb=mb,cb=o.literal("add-notifiable-email"),lb=o.string(),Sb=o.string(),Ab=o.object({action:cb,actionLabel:lb,email:Sb}),bb=Ab,Cb=o.literal("edit-stage-filename"),gb=o.string(),hb=o.string(),ub=o.literal("edit-stage-filename"),pb=o.object({action:Cb,actionLabel:gb,newFilename:hb,type:ub.optional()}),db=pb,Vb=o.union([nb,rb,bb,db]),Jb=o.array(Vb);o.object({actions:Jb});const fb=o.literal("create-table"),Db=o.string(),Ib=o.string().uuid(),Rb=o.string(),yb=o.object({action:fb,actionLabel:Db,tableId:Ib,tableName:Rb}),Tb=yb,Fb=o.literal("create-column"),kb=o.string(),Eb=o.string().uuid(),Lb=o.string(),Gb=o.enum(["varchar","int","boolean","json","date","timestamp","uuid","real"]),jb=o.boolean(),Pb=o.string(),Nb=o.boolean(),Wb=o.object({action:Fb,actionLabel:kb,tableId:Eb,columnName:Lb,columnType:Gb,nullable:jb,default:Pb,unique:Nb}),_b=Wb,Mb=o.literal("insert-rows"),wb=o.string(),Hb=o.string().uuid(),vb=o.record(o.any()),xb=o.array(vb),Ob=o.object({action:Mb,actionLabel:wb,tableId:Hb,rows:xb}),qb=Ob,Ub=o.literal("edit-table"),Bb=o.string(),zb=o.string().uuid(),Kb=o.string(),$b=o.object({action:Ub,actionLabel:Bb,tableId:zb,newTableName:Kb}),Qb=$b,Xb=o.literal("edit-column"),Yb=o.string(),Zb=o.string().uuid(),oC=o.string().uuid(),tC=o.string(),nC=o.enum(["varchar","int","boolean","json","date","timestamp","uuid","real"]),eC=o.boolean(),sC=o.string(),aC=o.boolean(),iC=o.string().uuid(),mC=o.object({columnId:iC}),rC=o.object({columnName:tC.optional(),columnType:nC.optional(),nullable:eC.optional(),default:sC.optional(),unique:aC.optional(),foreignKey:mC.optional()}),cC=o.object({action:Xb,actionLabel:Yb,columnId:Zb,tableId:oC,changes:rC}),lC=cC,SC=o.literal("edit-env-var"),AC=o.string(),bC=o.string(),CC=o.string(),gC=o.object({action:SC,actionLabel:AC,key:bC,newValue:CC}),hC=gC,uC=o.literal("set-env-var"),pC=o.string(),dC=o.string(),VC=o.string(),JC=o.object({action:uC,actionLabel:pC,key:dC,value:VC}),fC=JC,DC=o.literal("install-package"),IC=o.string(),RC=o.string(),yC=o.object({action:DC,actionLabel:IC,packageName:RC}),TC=yC,FC=o.literal("create-stage"),kC=o.string(),EC=o.string().uuid(),LC=o.enum(["form","job","hook","tasklet"]),GC=o.string(),jC=o.string(),PC=o.string(),NC=o.number(),WC=o.number(),_C=o.object({x:NC,y:WC}),MC=o.literal("create-stage"),wC=o.object({action:FC,actionLabel:kC,id:EC,stageType:LC,stageName:GC,code:jC,filename:PC,position:_C,type:MC.optional()}),HC=wC,vC=o.literal("add-transition"),xC=o.string(),OC=o.string().uuid(),qC=o.string().uuid(),UC=o.object({action:vC,actionLabel:xC,sourceStageId:OC,targetStageId:qC}),BC=UC,zC=o.literal("edit-stage"),KC=o.string(),$C=o.string().uuid(),QC=o.enum(["form","job","hook","tasklet"]),XC=o.string(),YC=o.object({action:zC,actionLabel:KC,stageId:$C,stageType:QC,stageNewTitle:XC}),ZC=YC,og=o.union([Tb,_b,qb,Qb,lC,hC,fC,TC,HC,BC,ZC]),tg=o.array(og);o.object({actions:tg});const ng=o.literal("replace-code"),eg=o.string(),sg=o.number(),ag=o.number(),ig=o.object({start:sg,end:ag}),mg=o.string(),rg=o.object({action:ng,actionLabel:eg,lines:ig,newCode:mg}),cg=rg,lg=o.literal("edit-stage-name"),Sg=o.string(),Ag=o.string(),bg=o.object({action:lg,actionLabel:Sg,newName:Ag}),Cg=bg,gg=o.literal("add-notifiable-email"),hg=o.string(),ug=o.string(),pg=o.object({action:gg,actionLabel:hg,email:ug}),dg=pg,Vg=o.union([cg,Cg,dg]),Jg=o.array(Vg);o.object({actions:Jg});const fg=o.literal("create-table"),Dg=o.string(),Ig=o.string().uuid(),Rg=o.string(),yg=o.object({action:fg,actionLabel:Dg,tableId:Ig,tableName:Rg}),Tg=yg,Fg=o.literal("create-column"),kg=o.string(),Eg=o.string().uuid(),Lg=o.string(),Gg=o.enum(["varchar","int","boolean","json","date","timestamp","uuid","real"]),jg=o.object({action:Fg,actionLabel:kg,tableId:Eg,columnName:Lg,columnType:Gg}),Pg=jg,Ng=o.literal("set-env-var"),Wg=o.string(),_g=o.string(),Mg=o.string(),wg=o.object({action:Ng,actionLabel:Wg,key:_g,value:Mg}),Hg=wg,vg=o.literal("create-stage"),xg=o.string(),Og=o.string().uuid(),qg=o.enum(["form","job","hook","tasklet"]),Ug=o.string(),Bg=o.string(),zg=o.string(),Kg=o.number(),$g=o.number(),Qg=o.object({x:Kg,y:$g}),Xg=o.object({action:vg,actionLabel:xg,id:Og,stageType:qg,stageName:Ug,code:Bg,filename:zg,position:Qg}),Yg=Xg,Zg=o.literal("add-transition"),oh=o.string(),th=o.string().uuid(),nh=o.string().uuid(),eh=o.object({action:Zg,actionLabel:oh,sourceStageId:th,targetStageId:nh}),sh=eh,ah=o.union([Tg,Pg,Hg,Yg,sh]),ih=o.array(ah);o.object({actions:ih});const mh=o.enum(["true","false"]),rh=o.enum(["true","false"]),ch=o.enum(["true","false"]),lh=o.string().regex(new RegExp("^[0-9]+m$")),Sh=o.string().regex(new RegExp("^[0-9]+m$")),Ah=o.string().regex(new RegExp("^[0-9]+Mi$")),bh=o.string().regex(new RegExp("^[0-9]+Mi$")),Ch=o.string().regex(new RegExp("^[0-9]+$")),gh=o.number(),hh=o.string().regex(new RegExp("^[0-9]+$")),uh=o.string(),ph=o.enum(["3.9","3.10","3.11","3.12"]),dh=o.string(),Vh=o.string();o.object({watermarkEnabled:mh.optional(),nativeTempDir:rh.optional(),notificationsEnabled:ch.optional(),requestsCPU:lh.optional(),limitsCPU:Sh.optional(),requestsMemory:Ah.optional(),limitsMemory:bh.optional(),minReplicas:Ch.optional(),computeUnits:gh.optional(),timeoutSeconds:hh.optional(),workerType:uh.optional(),pythonVersion:ph.optional(),workerNumber:dh.optional(),baseDockerfile:Vh.optional()});const Jh=o.enum(["true","false"]),fh=o.enum(["true","false"]),Dh=o.enum(["true","false"]),Ih=o.string().regex(new RegExp("^[0-9]+m$")),Rh=o.string().regex(new RegExp("^[0-9]+m$")),yh=o.string().regex(new RegExp("^[0-9]+Mi$")),Th=o.string().regex(new RegExp("^[0-9]+Mi$")),Fh=o.string().regex(new RegExp("^[0-9]+$")),kh=o.number(),Eh=o.string().regex(new RegExp("^[0-9]+$")),Lh=o.string(),Gh=o.enum(["3.9","3.10","3.11","3.12"]),jh=o.string(),Ph=o.string();o.object({watermarkEnabled:Jh.optional(),seleniumInstanceEnabled:fh.optional(),notificationsEnabled:Dh.optional(),requestsCPU:Ih.optional(),limitsCPU:Rh.optional(),requestsMemory:yh.optional(),limitsMemory:Th.optional(),minReplicas:Fh.optional(),computeUnits:kh.optional(),timeoutSeconds:Eh.optional(),workerType:Lh.optional(),pythonVersion:Gh.optional(),workerNumber:jh.optional(),baseDockerfile:Ph.optional()});const Nh=o.enum(["file","directory"]),Wh=o.string(),_h=o.string(),Mh=o.string().datetime({local:!0}),wh=o.number(),Hh=o.string(),vh=o.number(),xh=o.object({type:Nh,path:Wh,name:_h,date:Mh,sizeBytes:wh.optional(),sizeHuman:Hh.optional(),itemCount:vh.optional()}),Oh=h,qh=u,Uh=p,Bh=d;o.object({id:Oh,name:qh,featureFlags:Uh,billingMetadata:Bh});const zh=r;o.object({description:zh});const Kh=o.number(),$h=o.number();o.object({offset:Kh.optional(),limit:$h.optional()});const Qh=U;o.array(Qh);const Xh=b,Yh=r;o.object({name:Xh,description:Yh.optional()});const Zh=xh,ou=o.array(Zh),tu=o.number();o.object({items:ou,totalCount:tu});const nu=e,eu=l;o.object({email:nu.optional(),roles:eu.optional()});const su=o.number(),au=o.number();o.object({offset:su.optional(),limit:au.optional()});const iu=ut;o.array(iu);const mu=e,ru=l;o.object({email:mu,roles:ru});const cu=C;o.object({emailPatterns:cu});const lu=g;o.object({projectId:lu});const Su=o.literal("tokens"),Au=o.record(o.string());o.object({type:Su,tokens:Au});const bu=o.string(),Cu=o.number(),gu=o.number(),hu=o.number(),uu=o.number(),pu=o.number(),du=o.object({stageId:bu,pendingTasks:Cu,completedTasks:gu,lockedTasks:hu,totalTasks:uu,averageCompletionSeconds:pu.optional()});o.array(du);const Vu=o.string(),Ju=o.string();o.object({redirect:Vu,ping:Ju});const fu=o.string(),Du=o.record(o.any()),Iu=o.string(),Ru=o.object({key:fu,value:Du,type:Iu}),yu=Ru,Tu=o.array(yu),Fu=o.string(),ku=o.string(),Eu=o.record(o.any()),V=o.enum(["waiting","running","processing","finished","failed","abandoned"]),Lu=o.string(),Gu=o.string(),ju=o.string(),Pu=o.string();o.object({id:Fu,stage:ku,data:Eu,status:V,created_at:Lu,updated_at:Gu,parent_id:ju.optional(),execution_id:Pu.optional()});const Nu=o.string(),Wu=o.string(),_u=o.string(),Mu=o.string(),wu=V,Hu=Tu,vu=o.string(),xu=o.object({id:Nu,created_at:Wu,updated_at:_u.optional(),assignee:Mu.optional(),status:wu,content:Hu,stage:vu.optional()}),Ou=xu,J=o.array(Ou),qu=o.string(),Uu=o.enum(["form","hook","job","script"]),Bu=o.string(),zu=o.string(),Ku=o.boolean(),f=o.object({id:qu,type:Uu,title:Bu,path:zu.optional(),can_be_started:Ku}),$u=f,Qu=J,Xu=o.number(),Yu=o.boolean(),Zu=o.object({selected_stage:$u,stage_run_cards:Qu,total_count:Xu,loading:Yu.optional()}),op=Zu,tp=o.array(op),np=tp;o.object({columns:np});const ep=J,sp=o.string(),ap=o.array(sp),ip=o.number();o.object({stage_run_cards:ep,not_found_stages:ap,total_count:ip});const mp=f;o.array(mp);const rp=o.string(),cp=rp,lp=o.literal("text"),Sp=o.string(),Ap=o.object({type:lp,text:Sp}),bp=o.literal("file"),Cp=o.string(),gp=o.string(),hp=o.object({type:bp,fileName:Cp,fileContent:gp}),up=o.union([Ap,hp]),pp=o.array(up),dp=pp,Vp=o.record(o.any()),Jp=o.string();o.object({conversationId:cp,content:dp,context:Vp,humanApproval:Jp.optional()});const fp=o.string(),Dp=o.enum(["changed","created","deleted","moved"]),Ip=o.string(),MV=o.object({filepath:fp,event:Dp,content:Ip.optional()}),Rp=o.string(),wV=o.object({separator:Rp}),yp=o.boolean(),HV=o.object({ok:yp.optional()}),Tp=A,Fp=o.enum(["form","hook","job","script"]),kp=o.string(),Ep=o.object({type:Fp,id:kp}),Lp=o.array(Ep),Gp=o.object({file:Tp,stages:Lp}),vV=o.array(Gp),jp=o.boolean(),xV=o.object({ok:jp.optional()}),Pp=o.string(),Np=o.array(Pp),Wp=o.string(),_p=o.array(Wp),OV=o.object({pathParts:Np,newPathParts:_p}),Mp=o.boolean(),qV=o.object({ok:Mp.optional()}),wp=o.string(),Hp=o.number(),vp=o.enum(["delete","insert"]),xp=o.string(),Op=o.number(),qp=o.object({siteId:wp,pos:Hp,type:vp,value:xp.optional(),length:Op.optional()});o.array(qp);const Up=o.boolean(),UV=o.object({ok:Up.optional()}),BV=A,Bp=o.string(),zp=o.string(),Kp=o.literal("bug"),$p=o.string(),Qp=o.string(),Xp=o.string(),Yp=o.object({name:Qp,label:Xp}),Zp=Yp,od=o.array(Zp),td=o.object({label:$p,fixes:od}),nd=td,ed=o.array(nd),sd=o.object({name:Bp,label:zp,type:Kp,issues:ed}),ad=o.boolean();o.object({success:ad});const id=sd;o.array(id);const md=o.string();o.object({waitingRoomUrl:md});const rd=o.string(),cd=o.string(),ld=o.object({name:rd,value:cd}),Sd=ld;o.array(Sd);const Ad=o.string();o.object({message:Ad});const bd=o.boolean(),Cd=o.string(),zV=o.object({success:bd,message:Cd}),gd=o.string();o.object({commitHash:gd});const hd=o.boolean(),ud=o.string(),KV=o.object({success:hd,message:ud}),pd=o.boolean(),dd=o.string(),$V=o.object({success:pd,message:dd}),Vd=o.boolean(),Jd=o.string(),QV=o.object({success:Vd,message:Jd}),fd=o.record(o.string()),Dd=o.boolean(),XV=o.object({remotes:fd,hasAbstraRemote:Dd}),Id=o.string(),Rd=o.string();o.object({branch:Id.optional(),commitHash:Rd.optional()});const yd=o.boolean(),Td=o.string(),YV=o.object({success:yd,message:Td}),Fd=o.boolean(),kd=o.boolean(),Ed=o.boolean(),Ld=o.string(),Gd=o.string(),jd=o.array(Gd),Pd=o.string(),Nd=o.string(),Wd=o.string(),_d=o.string(),Md=o.object({hash:Pd,message:Nd,author:Wd,date:_d}).nullable(),wd=o.boolean(),Hd=o.string(),vd=o.array(Hd),xd=o.string(),Od=o.string(),qd=o.string(),Ud=o.object({path:xd,status:Od,statusCode:qd}),Bd=o.array(Ud),zd=o.boolean(),Kd=o.string().nullable(),$d=o.boolean(),Qd=o.boolean(),Xd=o.string().nullable(),Yd=o.string(),Zd=o.array(Yd),oV=o.number(),tV=o.number(),nV=o.object({ahead:oV,behind:tV}).nullable(),eV=o.object({success:zd,remoteCommit:Kd,hasRemoteChanges:$d,hasConflicts:Qd,message:Xd,availableBranches:Zd,aheadBehind:nV}).nullable(),ZV=o.object({available:Fd,gitInstalled:kd,isMonorepo:Ed,branch:Ld,branches:jd,lastCommit:Md,hasChanges:wd,changedFiles:vd,changedFilesWithStatus:Bd,remoteStatus:eV}),sV=o.string(),aV=o.string(),iV=o.string(),mV=o.string(),rV=o.object({hash:sV,message:aV,author:iV,date:mV}),cV=o.array(rV),lV=o.boolean(),o1=o.object({commits:cV,hasMore:lV}),SV=o.boolean(),AV=o.string(),t1=o.object({success:SV,message:AV}),bV=e;o.object({email:bV});const CV=o.enum(["ALLOWED","UNAUTHORIZED","FORBIDEN","NOT_FOUND"]);o.object({status:CV});const gV=o.string(),hV=o.string().datetime({local:!0}),uV=o.enum(["user","assistant"]),pV=o.string(),dV=o.literal("text"),VV=o.string(),JV=o.object({type:dV,text:VV}),fV=o.literal("image_url"),DV=o.string(),IV=o.object({url:DV}),RV=o.object({type:fV,image_url:IV}),yV=o.union([JV,RV]),TV=o.array(yV),FV=o.union([pV,TV]),kV=o.string().datetime({local:!0}),EV=o.string(),LV=o.string(),GV=o.object({role:uV,content:FV,createdAt:kV,toolTitle:EV.optional(),toolCallId:LV.optional()}),jV=o.array(GV),PV=o.object({id:gV,createdAt:hV,messages:jV}),NV=PV;o.array(NV);export{MV as A,vV as a,BV as b,HV as c,UV as d,OV as e,qV as f,xV as g,wV as h,ZV as i,YV as j,QV as k,zV as l,t1 as m,$V as n,XV as o,KV as p,o1 as q};
2
- //# sourceMappingURL=contracts.generated.0a04f0c8.js.map
@@ -1,2 +0,0 @@
1
- import"./jwt-decode.esm.b9bb33e7.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]="7d8bd78a-2745-4fd4-8954-f0f17cf9a288",e._sentryDebugIdIdentifier="sentry-dbid-7d8bd78a-2745-4fd4-8954-f0f17cf9a288")}catch{}})();function n(e,d){return e.toLocaleString(void 0,{hour12:!1,timeZoneName:"short",day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",weekday:"long",...d})}export{n as g};
2
- //# sourceMappingURL=datetime.0048a7b9.js.map
@@ -1,2 +0,0 @@
1
- import{W as s,dQ as d,dR as i}from"./jwt-decode.esm.b9bb33e7.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},c=new Error().stack;c&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[c]="a3980731-268a-4d65-bc09-4f24bd51c153",e._sentryDebugIdIdentifier="sentry-dbid-a3980731-268a-4d65-bc09-4f24bd51c153")}catch{}})();const{DatePicker:n,WeekPicker:t,MonthPicker:r,YearPicker:f,TimePicker:m,QuarterPicker:a,RangePicker:o}=d(i),u=s(n,{WeekPicker:t,MonthPicker:r,YearPicker:f,RangePicker:o,TimePicker:m,QuarterPicker:a,install:e=>(e.component(n.name,n),e.component(o.name,o),e.component(r.name,r),e.component(t.name,t),e.component(a.name,a),e)});export{u as D,r as M,a as Q,o as R,t as W};
2
- //# sourceMappingURL=dayjs.618c5367.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.b9bb33e7.js";import{r as fe,g as ge,a as me}from"./router.d8fe262e.js";import{u as he,s as ve}from"./workspaceStore.583d9afd.js";import{u as ye}from"./useCodebaseEvents.fd37c61f.js";import{z as be,d as E}from"./index.cb46e99b.js";import{A as we}from"./constants.0deee127.js";import"./contracts.generated.0a04f0c8.js";import"./linters.f033aedb.js";import"./userStore.3a2d2697.js";import"./url.7fa35693.js";import"./colorHelpers.53158244.js";import"./asyncComputed.7ddee0b0.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]="f0e575ee-9b9c-4158-9927-ba2f5418bf34",o._sentryDebugIdIdentifier="sentry-dbid-f0e575ee-9b9c-4158-9927-ba2f5418bf34")}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:"d0f5c0f94624f6bee917aedbb23129462687eadc",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.5a499863.js"),["assets/Home.5a499863.js","assets/jwt-decode.esm.b9bb33e7.js","assets/jwt-decode.aa5b9ed3.css","assets/fetch.7b0def40.js","assets/polling.bdac3134.js","assets/Home.afb8d9a6.css"]),children:[{path:"",name:"editor",component:()=>m(()=>import("./NewEditor.0cd895fd.js"),["assets/NewEditor.0cd895fd.js","assets/asyncComputed.7ddee0b0.js","assets/jwt-decode.esm.b9bb33e7.js","assets/jwt-decode.aa5b9ed3.css","assets/contracts.generated.0a04f0c8.js","assets/linters.f033aedb.js","assets/workspaceStore.583d9afd.js","assets/userStore.3a2d2697.js","assets/url.7fa35693.js","assets/colorHelpers.53158244.js","assets/record.c01e7f08.js","assets/PhWarningCircle.vue.40ea25aa.js","assets/Card.eab9832f.js","assets/router.135b49e3.js","assets/index.cb46e99b.js","assets/metadata.17375f25.js","assets/PhWebhooksLogo.vue.a73cf99c.js","assets/ExecutionContext.3f4e1ec7.js","assets/build.bfc699c6.js","assets/string.04644599.js","assets/tables.d6f8baad.js","assets/ExecutionStatusIcon.vue_vue_type_script_setup_true_lang.4f510b9a.js","assets/LoadingOutlined.bcf2a831.js","assets/polling.bdac3134.js","assets/ant-design.5ec0b6b3.js","assets/PhCopy.vue.2163dc9b.js","assets/index.b57ea477.js","assets/ExecutionContext.61f8e22d.css","assets/omniChatStore.c81c7dd1.js","assets/uuid.40423699.js","assets/PhCopySimple.vue.df39762b.js","assets/omniChatStore.b58e3bed.css","assets/datetime.0048a7b9.js","assets/OmniChat.00da5ca5.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang.8204f8e4.js","assets/Logo.c4ca8242.js","assets/Logo.b7d81119.css","assets/files.8583d431.js","assets/PhClockCounterClockwise.vue.090be995.js","assets/PhDatabase.vue.33681014.js","assets/index.6a5e28c0.js","assets/index.cfbca287.js","assets/OmniChat.60ee26c8.css","assets/AbstraButton.vue_vue_type_script_setup_true_lang.865dcbf3.js","assets/constants.0deee127.js","assets/PhTranslate.vue.077070e7.js","assets/PhArrowSquareOut.vue.e64bebdd.js","assets/PhRocket.vue.ec0249c6.js","assets/PhSignOut.vue.1cca1af4.js","assets/useCodebaseEvents.fd37c61f.js","assets/PhDownloadSimple.vue.cba09010.js","assets/PhFilePlus.vue.18b183d7.js","assets/PhPencilSimple.vue.2d6e76ca.js","assets/CloseCircleOutlined.87d100e7.js","assets/PhFolderPlus.vue.8dc4e304.js","assets/tasksController.866fa385.js","assets/vue-flow-core.0cbcaed0.js","assets/os.cc382050.js","assets/ContentLayout.8cfadb43.js","assets/ContentLayout.cdae7d24.css","assets/fetch.7b0def40.js","assets/repository.819ee626.js","assets/SaveButton.8e4a5fbe.js","assets/ExclamationCircleOutlined.40ff37b4.js","assets/SaveButton.363ea20f.css","assets/View.vue_vue_type_script_setup_true_lang.8892f80d.js","assets/CrudView.f8f7347d.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.264a92d9.js","assets/PhDotsThreeVertical.vue.e9b1faec.js","assets/CrudView.8abe5bc2.css","assets/PhPencil.vue.ea9f0def.js","assets/PlayerNavbar.53f81c7f.js","assets/PlayerNavbar.4dc29a45.css","assets/PlayerConfigProvider.8a1d38e8.js","assets/PlayerConfigProvider.1ce9d3b1.css","assets/LoadingContainer.6b2e55a8.js","assets/LoadingContainer.56fa997a.css","assets/ScrollArea.vue_vue_type_script_setup_true_lang.2a9a82d1.js","assets/PhGear.vue.15aaccf5.js","assets/PhFileArrowUp.vue.8f2790df.js","assets/toggleHighContrast.5c061b5e.js","assets/toggleHighContrast.30d77c87.css","assets/index.95966207.js","assets/vue-flow-background.6bb2a806.js","assets/PhArrowCounterClockwise.vue.9a0ef441.js","assets/FormRunner.eae15d54.js","assets/Login.vue_vue_type_script_setup_true_lang.f1a48ab2.js","assets/CircularLoading.a4bd5a70.js","assets/CircularLoading.a8fe2dc6.css","assets/Login.ac75228f.css","assets/Steps.a55d381b.js","assets/index.0389f2ff.js","assets/Steps.2880920a.css","assets/Watermark.2b4d030d.js","assets/Watermark.b0916e90.css","assets/FormRunner.1e6e7d2a.css","assets/repository.88fdba21.js","assets/redirect.9d08109f.js","assets/router.d8fe262e.js","assets/NewEditor.46862924.css"])},{path:"project-login",name:"projectLogin",component:()=>m(()=>import("./ProjectLogin.972cff72.js"),["assets/ProjectLogin.972cff72.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang.8204f8e4.js","assets/Logo.c4ca8242.js","assets/jwt-decode.esm.b9bb33e7.js","assets/jwt-decode.aa5b9ed3.css","assets/Logo.b7d81119.css","assets/BaseLayout.31267389.js","assets/BaseLayout.e1744dcc.css","assets/index.88a43c5d.js","assets/Breadcrumb.bc48ca6d.js","assets/index.6a5e28c0.js","assets/index.b57ea477.js","assets/router.d8fe262e.js","assets/workspaceStore.583d9afd.js","assets/userStore.3a2d2697.js","assets/url.7fa35693.js","assets/colorHelpers.53158244.js","assets/useCodebaseEvents.fd37c61f.js","assets/contracts.generated.0a04f0c8.js","assets/index.cb46e99b.js","assets/constants.0deee127.js","assets/linters.f033aedb.js","assets/asyncComputed.7ddee0b0.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.fa5bd988.js"),["assets/App.fa5bd988.js","assets/App.vue_vue_type_style_index_0_lang.35b9297a.js","assets/userStore.3a2d2697.js","assets/jwt-decode.esm.b9bb33e7.js","assets/jwt-decode.aa5b9ed3.css","assets/PlayerConfigProvider.8a1d38e8.js","assets/colorHelpers.53158244.js","assets/PlayerConfigProvider.1ce9d3b1.css","assets/workspaceStore.583d9afd.js","assets/url.7fa35693.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.64e4d209.js.map
@@ -1,2 +0,0 @@
1
- import{C as t,E as i,K as d,a as c,M as f,c as l,P as y,R as b,S as g,b as u,T as k,U as p,e as w,l as D}from"./toggleHighContrast.5c061b5e.js";import"./jwt-decode.esm.b9bb33e7.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]="c7762c21-4af6-4868-a958-6f52b7809ccd",e._sentryDebugIdIdentifier="sentry-dbid-c7762c21-4af6-4868-a958-6f52b7809ccd")}catch{}})();export{t as CancellationTokenSource,i as Emitter,d as KeyCode,c as KeyMod,f as MarkerSeverity,l as MarkerTag,y as Position,b as Range,g as Selection,u as SelectionDirection,k as Token,p as Uri,w as editor,D as languages};
2
- //# sourceMappingURL=editor.main.08984606.js.map
@@ -1,2 +0,0 @@
1
- import"./jwt-decode.esm.b9bb33e7.js";(function(){try{var d=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(d._sentryDebugIds=d._sentryDebugIds||{},d._sentryDebugIds[e]="d5f5a8f0-2671-4593-b7bc-d83d900d05d0",d._sentryDebugIdIdentifier="sentry-dbid-d5f5a8f0-2671-4593-b7bc-d83d900d05d0")}catch{}})();const f=(...d)=>window.fetch(...d);export{f as l};
2
- //# sourceMappingURL=fetch.7b0def40.js.map
@@ -1,2 +0,0 @@
1
- import{d as A,at as u,c as p,o,ac as l,ae as M,h as v,ed as y,e as i}from"./jwt-decode.esm.b9bb33e7.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]="e55902ea-45d6-4ad0-a6d8-7b0d642ae786",e._sentryDebugIdIdentifier="sentry-dbid-e55902ea-45d6-4ad0-a6d8-7b0d642ae786")}catch{}})();const w=["width","height","fill","transform"],H={key:0},Z=i("path",{d:"M216.49,79.52l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40V216a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.52ZM160,57l23,23H160ZM60,212V44h76V92a12,12,0,0,0,12,12h48V212Z"},null,-1),b=[Z],T={key:1},_=i("path",{d:"M208,88H152V32Z",opacity:"0.2"},null,-1),k=i("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Z"},null,-1),S=[_,k],B={key:2},j=i("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM152,88V44l44,44Z"},null,-1),E=[j],F={key:3},x=i("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM200,218H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216A2,2,0,0,1,200,218Z"},null,-1),z=[x],P={key:4},C=i("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Z"},null,-1),I=[C],N={key:5},D=i("path",{d:"M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40V216a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM200,220H56a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216A4,4,0,0,1,200,220Z"},null,-1),R=[D],$={name:"PhFile"},K=A({...$,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,n=u("weight","regular"),r=u("size","1em"),d=u("color","currentColor"),c=u("mirrored",!1),s=p(()=>{var a;return(a=t.weight)!=null?a:n}),g=p(()=>{var a;return(a=t.size)!=null?a:r}),m=p(()=>{var a;return(a=t.color)!=null?a:d}),V=p(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:c?"scale(-1, 1)":void 0);return(a,q)=>(o(),l("svg",y({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:g.value,height:g.value,fill:m.value,transform:V.value},a.$attrs),[M(a.$slots,"default"),s.value==="bold"?(o(),l("g",H,b)):s.value==="duotone"?(o(),l("g",T,S)):s.value==="fill"?(o(),l("g",B,E)):s.value==="light"?(o(),l("g",F,z)):s.value==="regular"?(o(),l("g",P,I)):s.value==="thin"?(o(),l("g",N,R)):v("",!0)],16,w))}});function X(e){var t;return(t=e.split(/\/|\\/).pop())!=null?t:""}function Y(e){return e.length===0?".":e[e.length-1]}function J(e){return[".png",".svg",".jpg",".jpeg",".ico",".webp"].some(t=>e.endsWith(t))}const h=5*1024*1024,f={"image/png":[".png"],"image/jpeg":[".jpg",".jpeg"],"image/gif":[".gif"],"image/webp":[".webp"],"application/pdf":[".pdf"],"text/plain":[".txt"],"text/csv":[".csv"],"text/markdown":[".md"],"application/json":[".json"]},Q=()=>Object.values(f).flat(),O=e=>Object.keys(f).includes(e),U=e=>e.size>h?{valid:!1,error:`File size exceeds ${W(h)} limit`}:O(e.type)?{valid:!0}:{valid:!1,error:"Unsupported file type"},L=e=>new Promise((t,n)=>{const r=new FileReader;r.readAsDataURL(e),r.onload=()=>{const c=r.result.split(",")[1];t(c)},r.onerror=d=>n(d)}),e0=async e=>{const t=U(e);if(!t.valid)throw new Error(t.error);const n=await L(e);return{fileName:e.name,fileContent:n,fileSize:e.size,mimeType:e.type}},W=e=>{if(e===0)return"0 Bytes";const t=1024,n=["Bytes","KB","MB","GB"],r=Math.floor(Math.log(e)/Math.log(t));return Math.round(e/Math.pow(t,r)*100)/100+" "+n[r]};export{K as I,X as a,Y as f,Q as g,J as i,e0 as p};
2
- //# sourceMappingURL=files.8583d431.js.map
@@ -1,2 +0,0 @@
1
- import{k as d}from"./router.135b49e3.js";import"./jwt-decode.esm.b9bb33e7.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]="dda99b58-39dd-42d1-9db0-6037b19682cc",a._sentryDebugIdIdentifier="sentry-dbid-dda99b58-39dd-42d1-9db0-6037b19682cc")}catch{}})();class s{async list(e){return d.get(`organizations/${e}/folders`)}async create(e){return d.post(`organizations/${e.organizationId}/folders`,{name:e.name,memberIds:e.memberIds})}async checkNameAvailability(e,n){return d.post(`organizations/${e}/folders/name-available`,{folderName:n})}async delete(e,n){return d.delete(`organizations/${e}/folders/${n}`)}async update(e,n){return d.patch(`organizations/${e}/folders/${n.id}/`,{name:n.name,memberIds:n.memberIds})}}export{s as F};
2
- //# sourceMappingURL=folder.c07afb46.js.map
@@ -1,2 +0,0 @@
1
- import{C as o}from"./Card.eab9832f.js";import{d as b,an as g,b_ as i,f as r,bK as d,c as y}from"./jwt-decode.esm.b9bb33e7.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]="ff007f7e-a0a2-4177-a01d-e1c4b485754f",e._sentryDebugIdIdentifier="sentry-dbid-ff007f7e-a0a2-4177-a01d-e1c4b485754f")}catch{}})();const _=()=>({prefixCls:String,title:d(),description:d(),avatar:d()}),c=b({compatConfig:{MODE:3},name:"ACardMeta",props:_(),slots:Object,setup(e,n){let{slots:a}=n;const{prefixCls:t}=g("card",e);return()=>{const l={[`${t.value}-meta`]:!0},s=i(a,e,"avatar"),f=i(a,e,"title"),v=i(a,e,"description"),C=s?r("div",{class:`${t.value}-meta-avatar`},[s]):null,m=f?r("div",{class:`${t.value}-meta-title`},[f]):null,p=v?r("div",{class:`${t.value}-meta-description`},[v]):null,D=m||p?r("div",{class:`${t.value}-meta-detail`},[m,p]):null;return r("div",{class:l},[C,D])}}}),M=()=>({prefixCls:String,hoverable:{type:Boolean,default:!0}}),u=b({compatConfig:{MODE:3},name:"ACardGrid",__ANT_CARD_GRID:!0,props:M(),setup(e,n){let{slots:a}=n;const{prefixCls:t}=g("card",e),l=y(()=>({[`${t.value}-grid`]:!0,[`${t.value}-grid-hoverable`]:e.hoverable}));return()=>{var s;return r("div",{class:l.value},[(s=a.default)===null||s===void 0?void 0:s.call(a)])}}});o.Meta=c;o.Grid=u;o.install=function(e){return e.component(o.name,o),e.component(c.name,c),e.component(u.name,u),e};export{u as G,c as M};
2
- //# sourceMappingURL=index.36af13ac.js.map
@@ -1,2 +0,0 @@
1
- var o=Object.defineProperty;var l=(t,e,s)=>e in t?o(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s;var n=(t,e,s)=>(l(t,typeof e!="symbol"?e+"":e,s),s);import{a as f}from"./asyncComputed.7ddee0b0.js";import"./jwt-decode.esm.b9bb33e7.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]="7d9cb66e-c69f-4f0e-9b77-c08d9879695e",t._sentryDebugIdIdentifier="sentry-dbid-7d9cb66e-c69f-4f0e-9b77-c08d9879695e")}catch{}})();class u{async check(){return(await fetch("/_editor/api/linters/check")).json()}async fix(e,s){const i=await fetch(`/_editor/api/linters/fix/${e}/${s}`,{method:"POST"});if(!i.ok)throw new Error("Failed to fix");return a.refetch(),i.json()}}const r=new u,a=f(async()=>(await r.check()).map(e=>new m(e)));class d{constructor(e,s){n(this,"name");n(this,"label");n(this,"ruleName");this.name=e.name,this.label=e.label,this.ruleName=s}async fix(){await r.fix(this.ruleName,this.name)}}class h{constructor(e,s){n(this,"label");n(this,"fixes");this.ruleName=s,this.label=e.label,this.fixes=e.fixes.map(i=>new d(i,s))}}class m{constructor(e){n(this,"name");n(this,"label");n(this,"type");n(this,"issues");this.name=e.name,this.label=e.label,this.type=e.type,this.issues=e.issues.map(s=>new h(s,this.name))}static get asyncComputed(){return a}static fromName(e){var i;const s=(i=a.result.value)==null?void 0:i.find(c=>c.name===e);if(!s)throw new Error(`Rule ${e} not found`);return s}}export{m as L};
2
- //# sourceMappingURL=linters.f033aedb.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 f,I as m,J as a,K as u,L as g,N as b,O as l}from"./jwt-decode.esm.b9bb33e7.js";import{a as y,b as i}from"./router.d8fe262e.js";import{s as w}from"./workspaceStore.583d9afd.js";import{_ as h}from"./App.vue_vue_type_style_index_0_lang.35b9297a.js";import"./userStore.3a2d2697.js";import"./url.7fa35693.js";import"./colorHelpers.53158244.js";import"./PlayerConfigProvider.8a1d38e8.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]="8a6d76c1-4e74-4dfc-9341-dfd77029eb27",t._sentryDebugIdIdentifier="sentry-dbid-8a6d76c1-4e74-4dfc-9341-dfd77029eb27")}catch{}})();class I{static init(){setInterval(()=>{fetch("/_healthcheck").catch(()=>{})},20*1e3)}}(async()=>{await w();const t=await y(),s=n(),e=r({render:()=>u(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",f),e.component("Message",m),a(e,g),a(e,b),a(e,l)})();
2
- //# sourceMappingURL=player.4ba2218c.js.map
@@ -1,2 +0,0 @@
1
- import"./jwt-decode.esm.b9bb33e7.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]="1b685689-8e97-4f65-9d72-ee4249d4c6e2",e._sentryDebugIdIdentifier="sentry-dbid-1b685689-8e97-4f65-9d72-ee4249d4c6e2")}catch{}})();const i=1e3,r=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{r as u};
2
- //# sourceMappingURL=polling.bdac3134.js.map
@@ -1,2 +0,0 @@
1
- var h=Object.defineProperty;var l=(a,t,e)=>t in a?h(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e;var o=(a,t,e)=>(l(a,typeof t!="symbol"?t+"":t,e),e);import{a as g}from"./record.c01e7f08.js";import{k as s}from"./router.135b49e3.js";import"./jwt-decode.esm.b9bb33e7.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]="482598ce-543f-44d1-96f4-ee9a6d76b46e",a._sentryDebugIdIdentifier="sentry-dbid-482598ce-543f-44d1-96f4-ee9a6d76b46e")}catch{}})();class y extends Error{constructor(){super("Subdomain already in use")}}class m{constructor(){o(this,"urlPath","projects")}async create({name:t,organizationId:e,folderId:r}){return s.post(`organizations/${e}/${this.urlPath}`,{name:t,folderId:r})}async delete(t){await s.delete(`/${this.urlPath}/${t}`)}async duplicate(t){return await new Promise(e=>setTimeout(e,5e3)),s.post(`/${this.urlPath}/${t}/duplicate`,{})}async list(t){return s.get(`organizations/${t}/${this.urlPath}`)}async get(t){return s.get(`${this.urlPath}/${t}`)}async update(t,e){const r=await s.patch(`${this.urlPath}/${t}`,e);if("error"in r&&r.error==="subdomain-already-in-use")throw new y;if("error"in r)throw new Error("Unknown error");return r}async checkSubdomain(t,e){return s.get(`${this.urlPath}/${t}/check-subdomain/${e}`)}async getStatus(t){return s.get(`${this.urlPath}/${t}/deploy-status`)}async startWebEditor(t){return s.post(`${this.urlPath}/${t}/web-editor/start`,{})}async executeQuery(t,e,r){return s.post(`projects/${t}/execute`,{query:e,params:r})}}const n=new m;class i{constructor(t){o(this,"record");this.record=g.create(n,t)}static formatSubdomain(t){const r=t.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,""),c=/[a-z0-9]+/g,u=r.matchAll(c);return Array.from(u).map(d=>d[0]).join("-")}static async list(t){return(await n.list(t)).map(r=>new i(r))}static async create(t){const e=await n.create(t);return new i(e)}get folderId(){return this.record.get("folderId")}static async get(t){const e=await n.get(t);return new i(e)}static async getStatus(t){return await n.getStatus(t)}async delete(){await n.delete(this.id)}async duplicate(){const t=await n.duplicate(this.id);return new i(t)}static async executeQuery(t,e,r){return n.executeQuery(t,e,r)}async save(){return this.record.save()}resetChanges(){this.record.resetChanges()}hasChanges(){return this.record.hasChanges()}hasChangesDeep(t){return this.record.hasChangesDeep(t)}get id(){return this.record.get("id")}get name(){return this.record.get("name")}set name(t){this.record.set("name",t)}get organizationId(){return this.record.get("organizationId")}get subdomain(){return this.record.get("subdomain")}set subdomain(t){this.record.set("subdomain",t)}async checkSubdomain(){return await n.checkSubdomain(this.id,this.subdomain)}static async startWebEditor(t){return await n.startWebEditor(t)}getUrl(t=""){const e=t.startsWith("/")?t.slice(1):t;return`https://${this.subdomain}.abstra.app/${e}`}}export{m as P,i as a};
2
- //# sourceMappingURL=project.f3f1cd2e.js.map
@@ -1,2 +0,0 @@
1
- var g=Object.defineProperty;var o=(e,s,t)=>s in e?g(e,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[s]=t;var n=(e,s,t)=>(o(e,typeof s!="symbol"?s+"":s,t),t);import{$ as p,eK as c,en as r}from"./jwt-decode.esm.b9bb33e7.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]="760512f8-f10c-4204-92de-52dbde937617",e._sentryDebugIdIdentifier="sentry-dbid-760512f8-f10c-4204-92de-52dbde937617")}catch{}})();class b{constructor(){n(this,"topics");n(this,"subUid");this.topics={},this.subUid=-1}subscribe(s,t){const i=(++this.subUid).toString();return this.topics[s]||(this.topics[s]=[]),this.topics[s].push({token:i,func:t}),i}async wait(s){return new Promise(t=>{const i=this.subscribe(s,a=>{this.unsubscribe(i),t(a)})})}async publish(s,...t){if(!this.topics[s])return!1;const i=this.topics[s];let a=i?i.length:0;for(;a--;)await i[a].func(t[0]);return!0}unsubscribe(s){for(const t in this.topics)if(this.topics[t]){for(let i=0,a=this.topics[t].length;i<a;i++)if(this.topics[t][i].token===s)return this.topics[t].splice(i,1),s}return!1}reset(){this.topics={},this.subUid=-1}}class h{constructor(s){n(this,"initialState");n(this,"pubsub");n(this,"_changes");this.initialState=s,this.pubsub=new b,this._changes=p({})}static from(s){return c(new h(s))}get changes(){return this._changes.value}get(s){var t;return(t=this.changes[s])!=null?t:this.initialState[s]}set(s,t){this._changes.value={...this.changes,[s]:t}}hasChanges(s){return s?s in this.changes:Object.keys(this.changes).length>0}hasChangesDeep(s){return s in this.changes&&!r.exports.isEqual(this.initialState[s],this.changes[s])}get state(){return{...this.initialState,...this.changes}}resetChanges(){const s={...this.changes};this._changes.value={},this.pubsub.publish("update",s)}onUpdate(s){this.pubsub.subscribe("update",s)}commit(){this.initialState=this.state,this._changes.value={}}toDTO(){return{...this.state,...this._changes.value}}update(s){this._changes.value={...this.changes,...s}}}class l extends h{constructor(t,i){super(i);n(this,"api");this.api=t}static create(t,i){return c(new l(t,i))}getInitialState(t){return this.initialState[t]}updateInitialState(t,i){this.initialState[t]=i,delete this._changes.value[t]}async save(t){if(Object.keys(this.changes).length===0||t&&!(t in this.changes))return;if(t){const a={[t]:this.changes[t]},u=await this.api.update(this.initialState.id,a);this.initialState={...this.initialState,...u},delete this._changes.value[t];return}this.initialState=await this.api.update(this.initialState.id,this.changes);const i={...this.changes};this._changes.value={},this.pubsub.publish("update",i)}}class d extends h{constructor(t,i){super(i);n(this,"api");n(this,"debouncedSave");this.api=t,this.debouncedSave=r.exports.debounce(()=>{this.save()},500)}static create(t,i){return c(new d(t,i))}getInitialState(t){return this.initialState[t]}updateInitialState(t,i){this.initialState[t]=i,delete this._changes.value[t]}set(t,i){super.set(t,i),this.debouncedSave()}async save(t){if(Object.keys(this.changes).length===0||t&&!(t in this.changes))return;if(t){const a={[t]:this.changes[t]},u=await this.api.update(this.initialState.id,a);this.initialState={...this.initialState,...u},delete this._changes.value[t];return}this.initialState=await this.api.update(this.initialState.id,this.changes);const i={...this.changes};this._changes.value={},this.pubsub.publish("update",i)}}export{d as A,h as E,b as P,l as a};
2
- //# sourceMappingURL=record.c01e7f08.js.map
@@ -1,2 +0,0 @@
1
- var c=Object.defineProperty;var i=(a,t,e)=>t in a?c(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e;var d=(a,t,e)=>(i(a,typeof t!="symbol"?t+"":t,e),e);import{k as r}from"./router.135b49e3.js";import"./jwt-decode.esm.b9bb33e7.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]="a2602e96-f06a-4d90-a7da-bb4458c1f04a",a._sentryDebugIdIdentifier="sentry-dbid-a2602e96-f06a-4d90-a7da-bb4458c1f04a")}catch{}})();class y{async createTask(t,e,s){return fetch("/_editor/api/tasks",{method:"POST",body:JSON.stringify({name:t,payload:s,stage_id:e}),headers:{"Content-Type":"application/json"}}).then(n=>n.json())}async getAllTasks(t,e){const s={offset:t.currentIndex*t.pageSize,limit:t.pageSize,filter:{stage:e.stage,status:e.status,startDate:e.dateRange?e.dateRange[0]:void 0,endDate:e.dateRange?e.dateRange[1]:void 0}};return fetch("/_editor/api/tasks/list",{method:"POST",body:JSON.stringify(s),headers:{"Content-Type":"application/json"}}).then(n=>n.json())}async getStageTasks(t){return fetch(`/_editor/api/tasks/${t}`).then(e=>e.json())}async getSentStageTasks(t){return fetch(`/_editor/api/tasks/${t}/sent`).then(e=>e.json())}async updateTaskStatus(t,e){return fetch(`/_editor/api/tasks/${t}/status`,{method:"PUT",body:JSON.stringify({status:e}),headers:{"Content-Type":"application/json"}}).then(s=>s.json())}async clearAllTasks(){return fetch("/_editor/api/tasks/clear",{method:"DELETE"}).then(t=>t.json())}}class h{constructor(t){d(this,"projectId");this.projectId=t}async createTask(t,e,s){return await r.post(`projects/${this.projectId}/tasks`,{name:t,stageId:e,payload:s})}async getAllTasks(t,e){const s={offset:(t.currentIndex*t.pageSize).toString(),limit:t.pageSize.toString(),stageId:e.stage,status:e.status,startDate:e.dateRange?e.dateRange[0]:void 0,endDate:e.dateRange?e.dateRange[1]:void 0};return Object.keys(s).forEach(o=>s[o]===void 0&&delete s[o]),await r.get(`projects/${this.projectId}/tasks`,s)}async getTasksStatistics(){return await r.get(`projects/${this.projectId}/tasks/statistics`)}async getStageTasks(t){const e={stageId:t,offset:"0",limit:"1000"};return await r.get(`projects/${this.projectId}/tasks`,e)}async getSentStageTasks(t){const e={sourceStageId:t,offset:"0",limit:"1000"};return await r.get(`projects/${this.projectId}/tasks`,e)}async updateTaskStatus(t,e){throw new Error("Method not implemented.")}async fetchStages(){throw new Error("Method not implemented.")}async fetchStatuses(){throw new Error("Method not implemented.")}async clearAllTasks(){throw new Error("Method not implemented.")}}export{y as L,h as R};
2
- //# sourceMappingURL=repository.88fdba21.js.map