abstra 3.24.8__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 (252) hide show
  1. {abstra-3.24.8.dist-info → abstra-3.24.9.dist-info}/METADATA +1 -1
  2. {abstra-3.24.8.dist-info → abstra-3.24.9.dist-info}/RECORD +183 -182
  3. abstra_internals/contracts_generated.py +2026 -2010
  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 +95 -43
  8. abstra_internals/repositories/git/types.py +9 -7
  9. abstra_internals/services/sql_storage.py +2 -1
  10. abstra_statics/dist/assets/{AbstraButton.vue_vue_type_script_setup_true_lang.905e8d9e.js → AbstraButton.vue_vue_type_script_setup_true_lang.6efe348a.js} +2 -2
  11. abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.f628a3a7.js +2 -0
  12. abstra_statics/dist/assets/ApiKeys.5b43091f.js +2 -0
  13. abstra_statics/dist/assets/App.7a6ee8e5.js +2 -0
  14. abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.1a83eeea.js +2 -0
  15. abstra_statics/dist/assets/{BaseLayout.b03df2cd.js → BaseLayout.3c6f8614.js} +2 -2
  16. abstra_statics/dist/assets/Billing.884bb3ce.js +2 -0
  17. abstra_statics/dist/assets/{Breadcrumb.9686bc9b.js → Breadcrumb.438b89fb.js} +2 -2
  18. abstra_statics/dist/assets/{Builds.c90a1506.js → Builds.51e0c49e.js} +2 -2
  19. abstra_statics/dist/assets/{Card.95a0c7f0.js → Card.50ce0913.js} +2 -2
  20. abstra_statics/dist/assets/{CircularLoading.6ab785c3.js → CircularLoading.50b3862c.js} +2 -2
  21. abstra_statics/dist/assets/CloseCircleOutlined.eab14c9c.js +2 -0
  22. abstra_statics/dist/assets/ConnectorsView.35cc6db6.js +2 -0
  23. abstra_statics/dist/assets/ConnectorsView.36fa866f.css +1 -0
  24. abstra_statics/dist/assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.1c984a14.js +2 -0
  25. abstra_statics/dist/assets/ContentLayout.a0d4199d.js +2 -0
  26. abstra_statics/dist/assets/{CrudView.391f0e9f.js → CrudView.7997b881.js} +2 -2
  27. abstra_statics/dist/assets/{DocsButton.vue_vue_type_script_setup_true_lang.e6d1d3ad.js → DocsButton.vue_vue_type_script_setup_true_lang.39638c19.js} +2 -2
  28. abstra_statics/dist/assets/{EditorLogin.feee5e85.js → EditorLogin.6506bc42.js} +2 -2
  29. abstra_statics/dist/assets/{EditorsView.b9309eb9.js → EditorsView.2aad2cdc.js} +2 -2
  30. abstra_statics/dist/assets/EnvVars.e641237f.js +2 -0
  31. abstra_statics/dist/assets/{Error.cec1d9ae.js → Error.a11619e5.js} +2 -2
  32. abstra_statics/dist/assets/ExclamationCircleOutlined.1d559548.js +2 -0
  33. abstra_statics/dist/assets/ExecutionContext.2933148d.js +2 -0
  34. abstra_statics/dist/assets/ExecutionStatusIcon.vue_vue_type_script_setup_true_lang.0b0c149c.js +2 -0
  35. abstra_statics/dist/assets/Files.7c98a5f9.css +1 -0
  36. abstra_statics/dist/assets/Files.db066999.js +3 -0
  37. abstra_statics/dist/assets/Form.d99de13a.js +2 -0
  38. abstra_statics/dist/assets/{FormRunner.7e7ce26d.js → FormRunner.8a803ade.js} +2 -2
  39. abstra_statics/dist/assets/Home.a8e67e38.js +2 -0
  40. abstra_statics/dist/assets/Home.c02c53bc.js +2 -0
  41. abstra_statics/dist/assets/LoadingContainer.b8fe55e6.js +2 -0
  42. abstra_statics/dist/assets/LoadingOutlined.d3cb97d3.js +2 -0
  43. abstra_statics/dist/assets/Login.ca3df8f4.js +2 -0
  44. abstra_statics/dist/assets/{Login.f25e3cc8.js → Login.ec7eb4db.js} +2 -2
  45. abstra_statics/dist/assets/Login.vue_vue_type_script_setup_true_lang.be982e9b.js +2 -0
  46. abstra_statics/dist/assets/Logo.29f26be1.js +2 -0
  47. abstra_statics/dist/assets/Logs.bc7d3080.js +2 -0
  48. abstra_statics/dist/assets/Main.17301685.js +2 -0
  49. abstra_statics/dist/assets/{MockForm.a8c36e57.js → MockForm.8af08260.js} +2 -2
  50. abstra_statics/dist/assets/Navbar.5991f141.js +2 -0
  51. abstra_statics/dist/assets/NewEditor.133f8c4b.js +8 -0
  52. abstra_statics/dist/assets/OidcLoginCallback.7b41f933.js +2 -0
  53. abstra_statics/dist/assets/OidcLogoutCallback.80bebb62.js +2 -0
  54. abstra_statics/dist/assets/{OmniChat.60ee26c8.css → OmniChat.3576ab7f.css} +1 -1
  55. abstra_statics/dist/assets/OmniChat.724f1121.js +6 -0
  56. abstra_statics/dist/assets/OnboardingView.7f418009.js +2 -0
  57. abstra_statics/dist/assets/Organization.127db14f.js +2 -0
  58. abstra_statics/dist/assets/Organizations.5f418cc7.js +2 -0
  59. abstra_statics/dist/assets/{PhArrowCounterClockwise.vue.44a61827.js → PhArrowCounterClockwise.vue.de1d3ce9.js} +2 -2
  60. abstra_statics/dist/assets/{PhArrowSquareOut.vue.d71d80fc.js → PhArrowSquareOut.vue.1a0f1395.js} +2 -2
  61. abstra_statics/dist/assets/PhArrowUp.vue.1c6a4ae8.js +2 -0
  62. abstra_statics/dist/assets/{PhClockCounterClockwise.vue.701e6c6a.js → PhClockCounterClockwise.vue.3e79a514.js} +2 -2
  63. abstra_statics/dist/assets/{PhCopy.vue.5aeb9248.js → PhCopy.vue.d2b17064.js} +2 -2
  64. abstra_statics/dist/assets/{PhCopySimple.vue.33922e71.js → PhCopySimple.vue.f2bb863a.js} +2 -2
  65. abstra_statics/dist/assets/{PhCube.vue.3f7281ae.js → PhCube.vue.be696878.js} +2 -2
  66. abstra_statics/dist/assets/{PhDatabase.vue.09fef09d.js → PhDatabase.vue.3c4ba68c.js} +2 -2
  67. abstra_statics/dist/assets/{PhDotsThreeVertical.vue.b3fda5f6.js → PhDotsThreeVertical.vue.2c9a03d5.js} +2 -2
  68. abstra_statics/dist/assets/{PhDownloadSimple.vue.db22067f.js → PhDownloadSimple.vue.72db4fbb.js} +2 -2
  69. abstra_statics/dist/assets/{PhFileArrowUp.vue.1e3b8493.js → PhFileArrowUp.vue.b7060fd8.js} +2 -2
  70. abstra_statics/dist/assets/{PhFilePlus.vue.1b7fc04b.js → PhFilePlus.vue.77ba2f5f.js} +2 -2
  71. abstra_statics/dist/assets/{PhFolderPlus.vue.7b02d45f.js → PhFolderPlus.vue.57ec5e0d.js} +2 -2
  72. abstra_statics/dist/assets/{PhGear.vue.3049f8f5.js → PhGear.vue.5abfda30.js} +2 -2
  73. abstra_statics/dist/assets/{PhKey.vue.3fb1fd34.js → PhKey.vue.dbf6964c.js} +2 -2
  74. abstra_statics/dist/assets/{PhPencil.vue.8e94a4bd.js → PhPencil.vue.e6eaa716.js} +2 -2
  75. abstra_statics/dist/assets/{PhPencilSimple.vue.c30ff752.js → PhPencilSimple.vue.a65250cc.js} +2 -2
  76. abstra_statics/dist/assets/{PhRocket.vue.1927fd55.js → PhRocket.vue.9dde7cdd.js} +2 -2
  77. abstra_statics/dist/assets/{PhSignOut.vue.0c10fd8d.js → PhSignOut.vue.4b3b1f31.js} +2 -2
  78. abstra_statics/dist/assets/{PhSparkle.vue.88da054d.js → PhSparkle.vue.efe111c8.js} +2 -2
  79. abstra_statics/dist/assets/{PhTranslate.vue.5fd55ee3.js → PhTranslate.vue.7ad27dac.js} +2 -2
  80. abstra_statics/dist/assets/{PhUsersThree.vue.506e9873.js → PhUsersThree.vue.5f9bb416.js} +2 -2
  81. abstra_statics/dist/assets/{PhWarningCircle.vue.139a2f32.js → PhWarningCircle.vue.365e8c06.js} +2 -2
  82. abstra_statics/dist/assets/{PhWebhooksLogo.vue.28d1edea.js → PhWebhooksLogo.vue.1684b943.js} +2 -2
  83. abstra_statics/dist/assets/{PlayerConfigProvider.f7be8491.js → PlayerConfigProvider.26c6fb0a.js} +2 -2
  84. abstra_statics/dist/assets/{PlayerNavbar.fb3a012d.js → PlayerNavbar.a0d1fdc3.js} +2 -2
  85. abstra_statics/dist/assets/Project.6575adc1.css +1 -0
  86. abstra_statics/dist/assets/Project.a4f24e83.js +2 -0
  87. abstra_statics/dist/assets/{ProjectLogin.7f541a88.js → ProjectLogin.abc78e95.js} +2 -2
  88. abstra_statics/dist/assets/{ProjectSettings.52805237.js → ProjectSettings.de3aa0d0.js} +2 -2
  89. abstra_statics/dist/assets/{ProjectsView.53e4ed94.js → ProjectsView.e4e50735.js} +2 -2
  90. abstra_statics/dist/assets/{SaveButton.bf92f582.js → SaveButton.8a907e20.js} +2 -2
  91. abstra_statics/dist/assets/ScrollArea.vue_vue_type_script_setup_true_lang.22f3f279.js +2 -0
  92. abstra_statics/dist/assets/{Sidebar.af08c680.js → Sidebar.ea97a608.js} +2 -2
  93. abstra_statics/dist/assets/{Sql.fd118d60.js → Sql.3130cb2f.js} +4 -4
  94. abstra_statics/dist/assets/Steps.df853a47.js +2 -0
  95. abstra_statics/dist/assets/{TableCard.0bcd184a.js → TableCard.0cffd3d6.js} +2 -2
  96. abstra_statics/dist/assets/TableEditor.52c6ffee.js +2 -0
  97. abstra_statics/dist/assets/Tables.933a0fea.js +2 -0
  98. abstra_statics/dist/assets/{TablesDiagram.547215e0.js → TablesDiagram.687f6dfe.js} +3 -3
  99. abstra_statics/dist/assets/TablesTabs.vue_vue_type_script_setup_true_lang.9649d1a2.js +2 -0
  100. abstra_statics/dist/assets/Tasks.331fcc80.js +2 -0
  101. abstra_statics/dist/assets/{UploadOutlined.736aa5bc.js → UploadOutlined.1c845819.js} +2 -2
  102. abstra_statics/dist/assets/{View.b4fa346f.js → View.8fb0d3d7.js} +2 -2
  103. abstra_statics/dist/assets/{View.vue_vue_type_script_setup_true_lang.d5d3a410.js → View.vue_vue_type_script_setup_true_lang.df0afc8c.js} +2 -2
  104. abstra_statics/dist/assets/{Watermark.e6c4654b.js → Watermark.b19c8a2c.js} +2 -2
  105. abstra_statics/dist/assets/{WebEditor.49aee538.js → WebEditor.52fc4d61.js} +2 -2
  106. abstra_statics/dist/assets/{WidgetPreview.e0916bed.js → WidgetPreview.fab6933f.js} +2 -2
  107. abstra_statics/dist/assets/WorkflowViewer.5d223e7a.css +1 -0
  108. abstra_statics/dist/assets/WorkflowViewer.b0072dc6.js +2 -0
  109. abstra_statics/dist/assets/ant-design.3284f24b.js +2 -0
  110. abstra_statics/dist/assets/apiKey.66dca0fa.js +2 -0
  111. abstra_statics/dist/assets/asyncComputed.515034b4.js +2 -0
  112. abstra_statics/dist/assets/{build.1cc9147c.js → build.11c6f0e3.js} +2 -2
  113. abstra_statics/dist/assets/colorHelpers.43bbe7b2.js +2 -0
  114. abstra_statics/dist/assets/{console.c2a83def.js → console.f9961195.js} +2 -2
  115. abstra_statics/dist/assets/constants.2cdc2025.js +2 -0
  116. abstra_statics/dist/assets/contracts.generated.36d5f7a5.js +2 -0
  117. abstra_statics/dist/assets/{cssMode.da3677b5.js → cssMode.38709828.js} +2 -2
  118. abstra_statics/dist/assets/datetime.cc6674fd.js +2 -0
  119. abstra_statics/dist/assets/dayjs.aa0a07d8.js +2 -0
  120. abstra_statics/dist/assets/editor.90099ba3.js +2 -0
  121. abstra_statics/dist/assets/editor.main.a098da72.js +2 -0
  122. abstra_statics/dist/assets/fetch.331404cf.js +2 -0
  123. abstra_statics/dist/assets/file.0cd01b5c.js +2 -0
  124. abstra_statics/dist/assets/{folder.1303b3cc.js → folder.304ce6aa.js} +2 -2
  125. abstra_statics/dist/assets/{freemarker2.78f622a4.js → freemarker2.16d5855a.js} +2 -2
  126. abstra_statics/dist/assets/{handlebars.f24ca206.js → handlebars.3657e980.js} +3 -3
  127. abstra_statics/dist/assets/{html.d6232cb7.js → html.cbb1f517.js} +3 -3
  128. abstra_statics/dist/assets/{htmlMode.66845b4f.js → htmlMode.97252017.js} +2 -2
  129. abstra_statics/dist/assets/{index.4073d3ba.js → index.1a374af6.js} +3 -3
  130. abstra_statics/dist/assets/{index.5654c649.js → index.1f86e84b.js} +2 -2
  131. abstra_statics/dist/assets/{index.bbb3a202.js → index.64d118e9.js} +2 -2
  132. abstra_statics/dist/assets/index.97648248.js +2 -0
  133. abstra_statics/dist/assets/{index.aa2603a0.js → index.9a7dc377.js} +2 -2
  134. abstra_statics/dist/assets/{index.fd17682d.js → index.9f357119.js} +2 -2
  135. abstra_statics/dist/assets/{index.705ce630.js → index.c7722f54.js} +2 -2
  136. abstra_statics/dist/assets/index.dcd602fc.js +2 -0
  137. abstra_statics/dist/assets/{index.680764ed.js → index.ed2240ea.js} +2 -2
  138. abstra_statics/dist/assets/{javascript.1009e690.js → javascript.d13ce088.js} +3 -3
  139. abstra_statics/dist/assets/{jsonMode.bd88eaca.js → jsonMode.24ae805f.js} +2 -2
  140. abstra_statics/dist/assets/{jwt-decode.aa5b9ed3.css → jwt-decode.1a092264.css} +1 -1
  141. abstra_statics/dist/assets/{jwt-decode.esm.4071145e.js → jwt-decode.esm.f87c17f7.js} +166 -161
  142. abstra_statics/dist/assets/{linters.5d49f0b2.js → linters.6d68fd4f.js} +2 -2
  143. abstra_statics/dist/assets/{liquid.fd06ec69.js → liquid.0cf9f71b.js} +3 -3
  144. abstra_statics/dist/assets/{member.d4cf4c10.js → member.c8206c64.js} +2 -2
  145. abstra_statics/dist/assets/{metadata.bd34dda0.js → metadata.f67c3158.js} +2 -2
  146. abstra_statics/dist/assets/{omniChatStore.3d16b4ad.js → omniChatStore.e205a0cd.js} +3 -3
  147. abstra_statics/dist/assets/{organization.1b235ed0.js → organization.70cdf915.js} +2 -2
  148. abstra_statics/dist/assets/{os.b6b83ab9.js → os.227120cb.js} +2 -2
  149. abstra_statics/dist/assets/player.58f997ee.js +2 -0
  150. abstra_statics/dist/assets/{plotly.min.5ef097da.js → plotly.min.6d8ffa2b.js} +2 -2
  151. abstra_statics/dist/assets/polling.9bc57b91.js +2 -0
  152. abstra_statics/dist/assets/project.25a396d4.js +2 -0
  153. abstra_statics/dist/assets/{python.014e8707.js → python.0d8b442d.js} +3 -3
  154. abstra_statics/dist/assets/{razor.eee706f7.js → razor.4398e452.js} +3 -3
  155. abstra_statics/dist/assets/record.a8da6046.js +2 -0
  156. abstra_statics/dist/assets/redirect.42fceb5c.js +2 -0
  157. abstra_statics/dist/assets/{repository.010eeaad.js → repository.c782b2ca.js} +2 -2
  158. abstra_statics/dist/assets/{router.ef7a08cf.js → router.09566602.js} +5 -5
  159. abstra_statics/dist/assets/router.9ee10098.js +2 -0
  160. abstra_statics/dist/assets/{string.0157e442.js → string.0c102318.js} +2 -2
  161. abstra_statics/dist/assets/{tables.59457dad.js → tables.1b5568d1.js} +2 -2
  162. abstra_statics/dist/assets/tasksController.009192fc.js +4 -0
  163. abstra_statics/dist/assets/{toggleHighContrast.2a096764.js → toggleHighContrast.79cdeb2d.js} +7 -7
  164. abstra_statics/dist/assets/{tsMode.5a841751.js → tsMode.0d573de8.js} +2 -2
  165. abstra_statics/dist/assets/{typescript.a8946c53.js → typescript.c72f7347.js} +3 -3
  166. abstra_statics/dist/assets/url.acca5643.js +2 -0
  167. abstra_statics/dist/assets/{useCodebaseEvents.c0197501.js → useCodebaseEvents.dc121de8.js} +2 -2
  168. abstra_statics/dist/assets/{useTables.413ae4ce.js → useTables.8402092e.js} +2 -2
  169. abstra_statics/dist/assets/userStore.3989ac4e.js +2 -0
  170. abstra_statics/dist/assets/uuid.405a6e8d.js +2 -0
  171. abstra_statics/dist/assets/{vue-flow-background.cc5881af.js → vue-flow-background.bbe978bf.js} +2 -2
  172. abstra_statics/dist/assets/{vue-flow-core.64ea4397.js → vue-flow-core.8bb3991b.js} +2 -2
  173. abstra_statics/dist/assets/{vue-quill.esm-bundler.404d7a1a.js → vue-quill.esm-bundler.4dc84b4c.js} +2 -2
  174. abstra_statics/dist/assets/{workspaceStore.260ac7fc.js → workspaceStore.ef7daa80.js} +2 -2
  175. abstra_statics/dist/assets/xlsx.89ea120e.js +106 -0
  176. abstra_statics/dist/assets/{xml.6d7ee5c8.js → xml.5ff29ab6.js} +3 -3
  177. abstra_statics/dist/assets/{yaml.a48b0813.js → yaml.6d4103d3.js} +3 -3
  178. abstra_statics/dist/console.html +15 -15
  179. abstra_statics/dist/editor.html +14 -14
  180. abstra_statics/dist/player.html +10 -10
  181. abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.11067aac.js +0 -2
  182. abstra_statics/dist/assets/ApiKeys.c2a1c483.js +0 -2
  183. abstra_statics/dist/assets/App.608af2ed.js +0 -2
  184. abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.8bbdcede.js +0 -2
  185. abstra_statics/dist/assets/Billing.f84cedb5.js +0 -2
  186. abstra_statics/dist/assets/CloseCircleOutlined.66e5f1b1.js +0 -2
  187. abstra_statics/dist/assets/ConnectorsView.b594798e.css +0 -1
  188. abstra_statics/dist/assets/ConnectorsView.bac282fa.js +0 -2
  189. abstra_statics/dist/assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.e768f033.js +0 -2
  190. abstra_statics/dist/assets/ContentLayout.2ae39d29.js +0 -2
  191. abstra_statics/dist/assets/EnvVars.facbb73b.js +0 -2
  192. abstra_statics/dist/assets/ExclamationCircleOutlined.81063754.js +0 -2
  193. abstra_statics/dist/assets/ExecutionContext.8c367ef7.js +0 -2
  194. abstra_statics/dist/assets/ExecutionStatusIcon.vue_vue_type_script_setup_true_lang.7bd1f43d.js +0 -2
  195. abstra_statics/dist/assets/Files.325d463d.js +0 -2
  196. abstra_statics/dist/assets/Files.39b07d88.css +0 -1
  197. abstra_statics/dist/assets/Form.48029b6f.js +0 -2
  198. abstra_statics/dist/assets/Home.72bb903d.js +0 -2
  199. abstra_statics/dist/assets/Home.fb4fb018.js +0 -2
  200. abstra_statics/dist/assets/LoadingContainer.e7fd3862.js +0 -2
  201. abstra_statics/dist/assets/LoadingOutlined.eb1ab7c7.js +0 -2
  202. abstra_statics/dist/assets/Login.ab4296a6.js +0 -2
  203. abstra_statics/dist/assets/Login.vue_vue_type_script_setup_true_lang.c0c3af9a.js +0 -2
  204. abstra_statics/dist/assets/Logo.417950ea.js +0 -2
  205. abstra_statics/dist/assets/Logs.eff00ffa.js +0 -2
  206. abstra_statics/dist/assets/Main.9c7e6552.js +0 -2
  207. abstra_statics/dist/assets/Navbar.36275768.js +0 -2
  208. abstra_statics/dist/assets/NewEditor.652251d2.js +0 -8
  209. abstra_statics/dist/assets/OidcLoginCallback.31318c8c.js +0 -2
  210. abstra_statics/dist/assets/OidcLogoutCallback.af3bbbed.js +0 -2
  211. abstra_statics/dist/assets/OmniChat.6d49a0d2.js +0 -6
  212. abstra_statics/dist/assets/OnboardingView.ec680bc2.js +0 -2
  213. abstra_statics/dist/assets/Organization.640cf320.js +0 -2
  214. abstra_statics/dist/assets/Organizations.be19ecba.js +0 -2
  215. abstra_statics/dist/assets/Project.6af32e98.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.b4f189da.js +0 -2
  218. abstra_statics/dist/assets/Steps.27508a86.js +0 -2
  219. abstra_statics/dist/assets/TableEditor.0b14bc7b.js +0 -2
  220. abstra_statics/dist/assets/Tables.8dabe248.js +0 -39
  221. abstra_statics/dist/assets/TablesTabs.vue_vue_type_script_setup_true_lang.9027b106.js +0 -2
  222. abstra_statics/dist/assets/Tasks.6d16250c.js +0 -2
  223. abstra_statics/dist/assets/WorkflowViewer.0a209003.css +0 -1
  224. abstra_statics/dist/assets/WorkflowViewer.b2b3ee29.js +0 -2
  225. abstra_statics/dist/assets/ant-design.805ab95d.js +0 -2
  226. abstra_statics/dist/assets/apiKey.1b1aafc4.js +0 -2
  227. abstra_statics/dist/assets/asyncComputed.0308626b.js +0 -2
  228. abstra_statics/dist/assets/colorHelpers.93df70ab.js +0 -2
  229. abstra_statics/dist/assets/constants.ba2d8460.js +0 -2
  230. abstra_statics/dist/assets/contracts.generated.bc42bf02.js +0 -2
  231. abstra_statics/dist/assets/datetime.049cd1b4.js +0 -2
  232. abstra_statics/dist/assets/dayjs.ba8d5e03.js +0 -2
  233. abstra_statics/dist/assets/editor.4df699e8.js +0 -2
  234. abstra_statics/dist/assets/editor.main.1441c190.js +0 -2
  235. abstra_statics/dist/assets/fetch.6b0b8dbd.js +0 -2
  236. abstra_statics/dist/assets/files.a48976ba.js +0 -2
  237. abstra_statics/dist/assets/index.5eda0243.js +0 -2
  238. abstra_statics/dist/assets/index.c25fb6e2.js +0 -2
  239. abstra_statics/dist/assets/player.9c3751ac.js +0 -2
  240. abstra_statics/dist/assets/polling.cabdf3a3.js +0 -2
  241. abstra_statics/dist/assets/project.794c2cba.js +0 -2
  242. abstra_statics/dist/assets/record.daabed01.js +0 -2
  243. abstra_statics/dist/assets/redirect.8303afd7.js +0 -2
  244. abstra_statics/dist/assets/repository.997243c1.js +0 -2
  245. abstra_statics/dist/assets/router.e1e467ab.js +0 -2
  246. abstra_statics/dist/assets/tasksController.a5bd1328.js +0 -4
  247. abstra_statics/dist/assets/url.4aa6f272.js +0 -2
  248. abstra_statics/dist/assets/userStore.1004ebc1.js +0 -2
  249. abstra_statics/dist/assets/uuid.14c9b73e.js +0 -2
  250. {abstra-3.24.8.dist-info → abstra-3.24.9.dist-info}/WHEEL +0 -0
  251. {abstra-3.24.8.dist-info → abstra-3.24.9.dist-info}/entry_points.txt +0 -0
  252. {abstra-3.24.8.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 d,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.4071145e.js";import{A as T,T as D}from"./Card.95a0c7f0.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]="b983deea-23b0-408a-8d2d-830f40b1d3fd",e._sentryDebugIdIdentifier="sentry-dbid-b983deea-23b0-408a-8d2d-830f40b1d3fd")}catch{}})();const x=_({__name:"TablesTabs",setup(e){const a=f(),t=m(),b=String(t.name),u=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"}],c=o=>{a.push({name:String(o),params:{projectId:u}})};return(o,h)=>(d(),p(r(D),{"active-key":r(b),options:l,"onUpdate:activeKey":c},{default:i(()=>[(d(),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.9027b106.js.map
@@ -1,2 +0,0 @@
1
- import{f as s,ee as H,d as B,c as L,U as Y,R as G,ac as U,b as n,u as e,aY as N,o as p,cE as O,i as c,aI as j,cD as Q,a as m,df as A,g as y,t as f,eo as W,bT as X,dj as D,el as Z,dd as K,d6 as ee,eq as te,h as E,S as ae,d0 as ne,cM as se,ei as le,A as oe}from"./jwt-decode.esm.4071145e.js";import{_ as ie}from"./AbstraButton.vue_vue_type_script_setup_true_lang.905e8d9e.js";import{I as re}from"./PhCopy.vue.5aeb9248.js";import{T as ue}from"./tasksController.a5bd1328.js";import{s as de}from"./metadata.bd34dda0.js";import{t as ce}from"./ant-design.805ab95d.js";import{R as pe}from"./dayjs.ba8d5e03.js";import{g as M,a as I}from"./router.ef7a08cf.js";import{A as P}from"./index.4073d3ba.js";import{R as ge}from"./repository.997243c1.js";import{a as fe,B as me}from"./build.1cc9147c.js";import{a as _e}from"./project.794c2cba.js";import"./tables.59457dad.js";import{a as ye}from"./asyncComputed.0308626b.js";import"./contracts.generated.bc42bf02.js";import"./record.daabed01.js";import"./linters.5d49f0b2.js";import"./polling.cabdf3a3.js";import"./PhWebhooksLogo.vue.28d1edea.js";import"./index.fd17682d.js";import"./string.0157e442.js";(function(){try{var d=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(d._sentryDebugIds=d._sentryDebugIds||{},d._sentryDebugIds[r]="6157aa52-d093-4090-8b09-b37db3ffa086",d._sentryDebugIdIdentifier="sentry-dbid-6157aa52-d093-4090-8b09-b37db3ffa086")}catch{}})();var be={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 ve=be;function R(d){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?Object(arguments[r]):{},b=Object.keys(i);typeof Object.getOwnPropertySymbols=="function"&&(b=b.concat(Object.getOwnPropertySymbols(i).filter(function(v){return Object.getOwnPropertyDescriptor(i,v).enumerable}))),b.forEach(function(v){we(d,v,i[v])})}return d}function we(d,r,i){return r in d?Object.defineProperty(d,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):d[r]=i,d}var $=function(r,i){var b=R({},r,i.attrs);return s(H,R({},b,{icon:ve}),null)};$.displayName="SyncOutlined";$.inheritAttrs=!1;const Se=$,he=B({__name:"TasksView",props:{api:{},stages:{},editor:{type:Boolean},stageId:{},status:{}},setup(d,{expose:r}){const i=d,{setup:b,tearDown:v,state:u,getColumns:S,fetchTasks:x,clearAllTasks:w,updateStatus:h}=ue({api:i.api,poll:!0,stages:i.stages,stageId:i.stageId,status:i.status}),T=t=>{var a,g;if(!((a=t.completed)!=null&&a.at)||!((g=t.created)!=null&&g.at))return null;const l=new Date(t.created.at).getTime(),o=new Date(t.completed.at).getTime();return Math.round((o-l)/1e3)},k=t=>{var a;if(!((a=t.created)!=null&&a.at))return null;const l=new Date(t.created.at).getTime(),o=Date.now();return Math.round((o-l)/1e3)},C=t=>{if(t<60)return`${t}s`;const l=Math.floor(t/60);if(l<60){const _=t%60;return _>0?`${l}m ${_}s`:`${l}m`}const o=Math.floor(l/60);if(o<24){const _=l%60;return _>0?`${o}h ${_}m`:`${o}h`}const a=Math.floor(o/24),g=o%24;return g>0?`${a}d ${g}h`:`${a}d`},F=L(()=>i.stages?u.tasks.map(t=>{var o,a,g;const l=(o=i.stages)==null?void 0:o.find(_=>_.id===t.targetStageId);return l?{...t,targetStageTitle:l.stageTitle,targetStageType:l.stageType,completedAt:(g=t.completed)!=null&&g.at?new Date(t.completed.at).toLocaleString():"Not completed",createdAt:new Date(t.created.at).toLocaleString(),deleted:!1,duration:T(t),pendingDuration:k(t)}:{...t,targetStageTitle:null,targetStageType:null,completedAt:(a=t.completed)!=null&&a.at?new Date(t.completed.at).toLocaleString():c.translate("i18n_tasksview_not_completed"),createdAt:new Date(t.created.at).toLocaleString(),deleted:!0,duration:T(t),pendingDuration:k(t)}}):u.tasks.map(t=>{var l;return{...t,deleted:!1,completedAt:(l=t.completed)!=null&&l.at?new Date(t.completed.at).toLocaleString():c.translate("i18n_tasksview_not_completed"),createdAt:new Date(t.created.at).toLocaleString(),duration:T(t),pendingDuration:k(t)}})),V=(t,l,o)=>{var _,z;const a=(_=t.current)!=null?_:1,g=(z=t.pageSize)!=null?z:10;u.pagination.currentIndex=a-1,u.pagination.pageSize=g,x()},q=(t,l)=>`/_editor/${t}/${l}`,J=t=>{typeof t=="object"?navigator.clipboard.writeText(JSON.stringify(t)):navigator.clipboard.writeText(String(t)),se.success({content:c.translate("i18n_tasksview_copied_to_clipboard")})};return r({clearAllTasks:w}),Y(()=>b()),G(()=>v()),(t,l)=>(p(),U(N,null,[s(e(Q),{layout:"vertical"},{default:n(()=>[s(e(M),{gutter:10},{default:n(()=>[s(e(I),{span:6},{default:n(()=>[s(e(O),{label:e(c).translate("i18n_tasksview_status_label")},{default:n(()=>[s(e(j),{value:e(u).filters.status,"onUpdate:value":l[0]||(l[0]=o=>e(u).filters.status=o),options:e(u).filterOptions.statuses,"option-label":"label","option-value":"value","show-search":"",filter:!1,placeholder:e(c).translate("i18n_tasksview_all_placeholder"),"allow-clear":""},null,8,["value","options","placeholder"])]),_:1},8,["label"])]),_:1}),s(e(I),{span:10},{default:n(()=>[s(e(O),{label:e(c).translate("i18n_tasksview_stage_label")},{default:n(()=>[s(e(j),{value:e(u).filters.stage,"onUpdate:value":l[1]||(l[1]=o=>e(u).filters.stage=o),"show-search":"",options:e(u).filterOptions.stages,placeholder:e(c).translate("i18n_tasksview_all_placeholder"),"allow-clear":""},null,8,["value","options","placeholder"])]),_:1},8,["label"])]),_:1}),s(e(I),{span:8},{default:n(()=>[s(e(O),{label:e(c).translate("i18n_tasksview_created_at_date_label")},{default:n(()=>[s(e(pe),{value:e(u).filters.dateRange,"onUpdate:value":l[2]||(l[2]=o=>e(u).filters.dateRange=o),style:{width:"100%"}},null,8,["value"])]),_:1},8,["label"])]),_:1})]),_:1})]),_:1}),s(e(ne),{columns:e(S)(),"data-source":F.value,scroll:{x:"max-content",y:1e3},bordered:"",size:"small",pagination:{current:e(u).pagination.currentIndex+1,pageSize:e(u).pagination.pageSize,total:e(u).pagination.totalCount},onChange:V},{bodyCell:n(({column:o,record:a})=>[o.key==="timeInfo"?(p(),m(e(D),{key:0,vertical:"",gap:4},{default:n(()=>[s(e(A),null,{default:n(()=>[y(f(a.createdAt),1)]),_:2},1024),a.status==="locked"?(p(),m(e(P),{key:0,type:"info"},{message:n(()=>[y(f(e(c).translate("i18n_tasksview_status_running")),1)]),default:n(()=>[s(e(Se),{spin:!0,style:{"margin-left":"4px"}})]),_:1})):(p(),m(e(P),{key:1,type:a.status==="pending"?"warning":"success"},W({action:n(()=>[s(e(X),{size:"small",checked:a.status==="completed","onUpdate:checked":g=>e(h)(a,a.status==="pending"?"completed":"pending")},null,8,["checked","onUpdate:checked"])]),_:2},[a.status==="pending"?{name:"message",fn:n(()=>[y(f(e(c).translate("i18n_tasksview_pending_for"))+" "+f(C(a.pendingDuration)),1)]),key:"0"}:a.status==="completed"?{name:"message",fn:n(()=>[y(f(e(c).translate("i18n_tasksview_completed_in"))+" "+f(C(a.duration)),1)]),key:"1"}:void 0]),1032,["type"]))]),_:2},1024)):o.key==="stageInfo"?(p(),m(e(D),{key:1,vertical:"",gap:4},{default:n(()=>[a.deleted?(p(),m(e(A),{key:0},{default:n(()=>[y(f(e(c).translate("i18n_tasksview_not_found")),1)]),_:1})):(p(),m(e(D),{key:1,gap:8,align:"center"},{default:n(()=>[(p(),m(Z(e(de)(a.targetStageType)),{size:20})),s(e(D),{vertical:"",gap:0},{default:n(()=>[t.editor?(p(),m(e(K),{key:0,href:q(a.targetStageType,a.targetStageId)},{default:n(()=>[y(f(a.targetStageTitle),1)]),_:2},1032,["href"])):(p(),m(e(A),{key:1},{default:n(()=>[y(f(a.targetStageTitle),1)]),_:2},1024)),s(e(A),{type:"secondary",style:{fontSize:"12px"}},{default:n(()=>[y(f(a.type),1)]),_:2},1024)]),_:2},1024)]),_:2},1024))]),_:2},1024)):o.key==="payloadInfo"?(p(),m(e(D),{key:2,gap:8,align:"start",justify:"space-between"},{default:n(()=>[s(e(ee),{"tree-data":e(ce)(a.payload),selectable:!1,style:{flex:"1"}},null,8,["tree-data"]),s(ie,{type:"text",size:"small",tooltip:e(c).translate("i18n_tasksview_copy_payload_tooltip"),onClick:te(g=>J(a.payload),["stop"])},{default:n(()=>[s(e(re))]),_:2},1032,["tooltip","onClick"])]),_:2},1024)):E("",!0)]),footer:n(()=>[s(e(M),{justify:"end",gutter:10},{default:n(()=>[s(e(I),null,{default:n(()=>[s(e(ae),{size:"small"})]),_:1}),s(e(I),null,{default:n(()=>[s(e(A),null,{default:n(()=>[y(f(e(c).translate("i18n_tasksview_auto_updating")),1)]),_:1})]),_:1})]),_:1})]),_:1},8,["columns","data-source","pagination"])],64))}}),qe=B({__name:"Tasks",setup(d){const r=le(),i=r.params.projectId,b=r.query.stage,v=r.query.status,u=new ge(i),{result:S}=ye(async()=>{const h=(await fe.list(i)).find(C=>C.latest);if(!h)return null;const[T,k]=await Promise.all([me.get(h.id),_e.get(i)]);return{buildSpec:T,project:k}}),x=L(()=>!S.value||!S.value.buildSpec?null:S.value.buildSpec.runtimes.map(w=>({id:w.id,stageTitle:w.title,stageType:w.type})));return(w,h)=>(p(),U(N,null,[s(e(oe),null,{default:n(()=>[y(f(e(c).translate("i18n_tasksview_title")),1)]),_:1}),x.value?(p(),m(he,{key:0,class:"tasks",api:e(u),stages:x.value,"stage-id":e(b),status:e(v)},null,8,["api","stages","stage-id","status"])):E("",!0)],64))}});export{qe as default};
2
- //# sourceMappingURL=Tasks.6d16250c.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.905e8d9e.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.4071145e.js";import{F as Ee}from"./PhArrowSquareOut.vue.d71d80fc.js";import{I as ue}from"./PhCopy.vue.5aeb9248.js";import{F as He,I as We,O as De}from"./os.b6b83ab9.js";import{G as Fe}from"./PhPencilSimple.vue.c30ff752.js";import{_ as Ye}from"./vue-flow-background.cc5881af.js";import{a as Xe,b as Ge,g as ee,u as Oe,e as qe,M as Je}from"./vue-flow-core.64ea4397.js";import{k as te}from"./router.ef7a08cf.js";import{a as le,B as Ue,b as Re}from"./build.1cc9147c.js";import"./tables.59457dad.js";import{G as Ke}from"./PhArrowCounterClockwise.vue.44a61827.js";import{I as Qe}from"./PhCopySimple.vue.33922e71.js";import{G as et}from"./PhDotsThreeVertical.vue.b3fda5f6.js";import{F as tt,G as at,I as st,a as ot}from"./PhWebhooksLogo.vue.28d1edea.js";import{a as ae}from"./asyncComputed.0308626b.js";import{a as nt}from"./project.794c2cba.js";import{g as rt}from"./datetime.049cd1b4.js";import{_ as lt,R as it}from"./ExecutionStatusIcon.vue_vue_type_script_setup_true_lang.7bd1f43d.js";import{R as dt}from"./repository.997243c1.js";import{u as ct}from"./polling.cabdf3a3.js";import{C as se}from"./Card.95a0c7f0.js";import"./index.fd17682d.js";import"./record.daabed01.js";import"./string.0157e442.js";import"./LoadingOutlined.eb1ab7c7.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]="c2f62a9e-7548-4fd9-a8f1-52d4261b0885",u._sentryDebugIdIdentifier="sentry-dbid-c2f62a9e-7548-4fd9-a8f1-52d4261b0885")}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.b2b3ee29.js.map
@@ -1,2 +0,0 @@
1
- import{en as n,M as y}from"./jwt-decode.esm.4071145e.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]="d2641f97-6a68-4d8a-af76-94fe7e640790",e._sentryDebugIdIdentifier="sentry-dbid-d2641f97-6a68-4d8a-af76-94fe7e640790")}catch{}})();function u(e){return n.exports.isArray(e)?e.length===0?"[ ]":"[ ... ]":n.exports.isObject(e)?Object.keys(e).length===0?"{ }":"{ ... }":n.exports.isString(e)?`'${e}'`:n.exports.isUndefined(e)||n.exports.isNull(e)?"None":e===!0?"True":e===!1?"False":`${e}`}function o(e){if(n.exports.isArray(e))return"array";if(n.exports.isObject(e))return"object";throw new Error("treeKey called with non-object and non-array")}function c(e,r=[],t){const f=t?`'${t}': ${u(e)}`:u(e);if(n.exports.isArray(e)){const i=o(e);return[{title:f,key:[...r,i].join("/"),children:e.flatMap((s,l)=>c(s,[...r,i,`${l}`]))}]}else if(n.exports.isObject(e)){const i=o(e);return[{title:f,key:[...r,i].join("/"),children:Object.entries(e).flatMap(([s,l])=>c(l,[...r,i,s],s))}]}else return[{title:f,key:r.join("/"),children:[]}]}function x(e,r){return new Promise(t=>{y.confirm({title:e,onOk:()=>t(!0),okText:r==null?void 0:r.okText,onCancel:()=>t(!1),cancelText:r==null?void 0:r.cancelText})})}export{x as a,c as t};
2
- //# sourceMappingURL=ant-design.805ab95d.js.map
@@ -1,2 +0,0 @@
1
- var i=Object.defineProperty;var o=(a,t,e)=>t in a?i(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e;var d=(a,t,e)=>(o(a,typeof t!="symbol"?t+"":t,e),e);import{k as s}from"./router.ef7a08cf.js";import"./jwt-decode.esm.4071145e.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]="219c49af-40b2-4c5d-a7f8-0b652d7a2c70",a._sentryDebugIdIdentifier="sentry-dbid-219c49af-40b2-4c5d-a7f8-0b652d7a2c70")}catch{}})();class u{constructor(){d(this,"urlPath","api-keys")}async create({projectId:t,name:e}){return s.post(`projects/${t}/${this.urlPath}`,{name:e})}async delete(t,e){await s.delete(`projects/${t}/${this.urlPath}/${e}`)}async list(t){return s.get(`projects/${t}/${this.urlPath}`)}}const r=new u;class n{constructor(t){this.dto=t}static async list(t){return(await r.list(t)).map(c=>new n(c))}static async create(t){const e=await r.create(t);return new n(e)}static async delete(t,e){await r.delete(t,e)}get id(){return this.dto.id}get name(){return this.dto.name}get createdAt(){return new Date(this.dto.createdAt)}get ownerId(){return this.dto.createdBy}get value(){var t;return(t=this.dto.value)!=null?t:null}}export{n as A};
2
- //# sourceMappingURL=apiKey.1b1aafc4.js.map
@@ -1,2 +0,0 @@
1
- import{$ as c,c as l}from"./jwt-decode.esm.4071145e.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]="fd11a98b-3fc1-4100-915f-aa6c97863509",r._sentryDebugIdIdentifier="sentry-dbid-fd11a98b-3fc1-4100-915f-aa6c97863509")}catch{}})();const i=r=>{const e=c({loading:!0,result:null,error:null}),n=t=>(e.value={loading:!1,result:t,error:null},t),a=t=>{e.value={loading:!1,result:null,error:t}},o=async()=>(e.value={loading:!0,result:e.value.result,error:null},r().then(n).catch(a));o();const s=l(()=>e.value.loading),u=l(()=>e.value.result),d=l(()=>e.value.error);return{loading:s,result:u,error:d,refetch:o}};export{i as a};
2
- //# sourceMappingURL=asyncComputed.0308626b.js.map
@@ -1,2 +0,0 @@
1
- import"./jwt-decode.esm.4071145e.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]="36f98360-7e41-4282-b881-cbccbeb3bf5d",e._sentryDebugIdIdentifier="sentry-dbid-36f98360-7e41-4282-b881-cbccbeb3bf5d")}catch{}})();function p(e,t){const{r:n,g:r,b:o,usePound:s}=g(e);return w(u(n,-t),u(r,-t),u(o,-t),s)}function u(e,t){const n=e*(100+t*100)/100;return n>255?255:n<0?0:Math.round(n)}function E(e){return e.startsWith("#")||e.match(/^(rgb|hsl)/)}const v=(e,t)=>y(p(y(e),t)),P=e=>k(e)?v(e,.1):p(e,.1);function k(e){const{r:t,g:n,b:r}=g(e);return t*.299+n*.587+r*.114<186}function g(e){let t=!1;e[0]=="#"&&(e=e.slice(1),t=!0);const n=parseInt(e,16);return{r:n>>16&255,g:n>>8&255,b:n&255,usePound:t}}function y(e){const{r:t,g:n,b:r,usePound:o}=g(e);return w(255-t,255-n,255-r,o)}const w=(e,t,n,r=!0)=>(r?"#":"")+(n|t<<8|e<<16).toString(16).padStart(6,"0");function _(e){return new Promise((t,n)=>{const r=document.createElement("img");r.src=e,r.crossOrigin="Anonymous",r.style.display="none",document.body.appendChild(r);let o=0;r.onerror=s=>n(new Error(`Failed to load image: ${s}`)),r.onload=()=>{const{width:s,height:f}=r,a=document.createElement("canvas");a.width=s,a.height=f;const c=a.getContext("2d");if(!c)return t(!1);c.drawImage(r,0,0);const I=c.getImageData(0,0,a.width,a.height),{data:d}=I;let b,l,h,m;for(let i=0,x=d.length;i<x;i+=4)b=d[i],l=d[i+1],h=d[i+2],m=Math.floor((b+l+h)/3),o+=m;const D=Math.floor(o/(s*f));document.body.removeChild(r),t(D<=127)}})}export{k as a,_ as b,P as c,E as i,v as l};
2
- //# sourceMappingURL=colorHelpers.93df70ab.js.map
@@ -1,2 +0,0 @@
1
- import"./jwt-decode.esm.4071145e.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]="1448052e-a472-4ed7-a256-6d50569ec6e2",t._sentryDebugIdIdentifier="sentry-dbid-1448052e-a472-4ed7-a256-6d50569ec6e2")}catch{}})();const s={HOMEPAGE:{}.VITE_HOMEPAGE_URL||"https://abstra.io",DOCS:{}.VITE_DOCS_URL||"https://abstra.io/docs",CLOUD:{}.VITE_CONSOLE_URL||"https://cloud.abstra.io",GITHUB:{}.VITE_GITHUB_URL||"https://github.com/abstra-app/abstra-lib"},d=t=>{if(!t)return s.DOCS;const e=t.startsWith("/")?t.slice(1):t;return`${s.DOCS}/${e}`};export{s as A,d as b};
2
- //# sourceMappingURL=constants.ba2d8460.js.map
@@ -1,2 +0,0 @@
1
- import{Z as o}from"./jwt-decode.esm.4071145e.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]="a14d6dae-630b-4aaf-a905-7a1c61349ab0",n._sentryDebugIdIdentifier="sentry-dbid-a14d6dae-630b-4aaf-a905-7a1c61349ab0")}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.bc42bf02.js.map
@@ -1,2 +0,0 @@
1
- import"./jwt-decode.esm.4071145e.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]="1fdcd404-290d-4f45-908e-9e0eb6a03804",e._sentryDebugIdIdentifier="sentry-dbid-1fdcd404-290d-4f45-908e-9e0eb6a03804")}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.049cd1b4.js.map
@@ -1,2 +0,0 @@
1
- import{W as s,dQ as i,dR as d}from"./jwt-decode.esm.4071145e.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="475e7ae4-0adf-4c14-b89c-ca5e3300636e",e._sentryDebugIdIdentifier="sentry-dbid-475e7ae4-0adf-4c14-b89c-ca5e3300636e")}catch{}})();const{DatePicker:n,WeekPicker:t,MonthPicker:r,YearPicker:f,TimePicker:m,QuarterPicker:a,RangePicker:c}=i(d),y=s(n,{WeekPicker:t,MonthPicker:r,YearPicker:f,RangePicker:c,TimePicker:m,QuarterPicker:a,install:e=>(e.component(n.name,n),e.component(c.name,c),e.component(r.name,r),e.component(t.name,t),e.component(a.name,a),e)});export{y as D,r as M,a as Q,c as R,t as W};
2
- //# sourceMappingURL=dayjs.ba8d5e03.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 de,L as ue,N as pe,O as _e}from"./jwt-decode.esm.4071145e.js";import{r as fe,g as ge,a as me}from"./router.e1e467ab.js";import{u as he,s as ve}from"./workspaceStore.260ac7fc.js";import{u as ye}from"./useCodebaseEvents.c0197501.js";import{z as be,d as E}from"./index.fd17682d.js";import{A as we}from"./constants.ba2d8460.js";import"./contracts.generated.bc42bf02.js";import"./linters.5d49f0b2.js";import"./userStore.1004ebc1.js";import"./url.4aa6f272.js";import"./colorHelpers.93df70ab.js";import"./asyncComputed.0308626b.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]="a9d6e730-fbd5-4c61-9607-d37fbf1ffe9d",o._sentryDebugIdIdentifier="sentry-dbid-a9d6e730-fbd5-4c61-9607-d37fbf1ffe9d")}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]=d=>s.value=d),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 d=G("RouterView");return P(),U(l(J),{theme:s,locale:r.value,"page-header":{ghost:!1}},{default:h(()=>[I("div",Ue,[b(d)]),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:"a6075228a4fb22bd4bfd7cf56bad33b283b0a40f",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}[t];return e||je[o]},u={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:`${u.consoleUrl}/projects/${e.value.id}`,users:`${u.consoleUrl}/projects/${e.value.id}/access-control?selected-panel=users`,roles:`${u.consoleUrl}/projects/${e.value.id}/access-control?selected-panel=roles`,builds:`${u.consoleUrl}/projects/${e.value.id}/builds`,login:`${u.consoleUrl}/api-key`}:null),n=async()=>{!s.value||(await o.deleteLogin(),window.open(location.origin+"/_editor","_self"))},d=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:d,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.72bb903d.js"),["assets/Home.72bb903d.js","assets/jwt-decode.esm.4071145e.js","assets/jwt-decode.aa5b9ed3.css","assets/fetch.6b0b8dbd.js","assets/polling.cabdf3a3.js","assets/Home.afb8d9a6.css"]),children:[{path:"",name:"editor",component:()=>m(()=>import("./NewEditor.652251d2.js"),["assets/NewEditor.652251d2.js","assets/asyncComputed.0308626b.js","assets/jwt-decode.esm.4071145e.js","assets/jwt-decode.aa5b9ed3.css","assets/contracts.generated.bc42bf02.js","assets/linters.5d49f0b2.js","assets/workspaceStore.260ac7fc.js","assets/userStore.1004ebc1.js","assets/url.4aa6f272.js","assets/colorHelpers.93df70ab.js","assets/record.daabed01.js","assets/PhWarningCircle.vue.139a2f32.js","assets/Card.95a0c7f0.js","assets/router.ef7a08cf.js","assets/index.fd17682d.js","assets/metadata.bd34dda0.js","assets/PhWebhooksLogo.vue.28d1edea.js","assets/ExecutionContext.8c367ef7.js","assets/build.1cc9147c.js","assets/string.0157e442.js","assets/tables.59457dad.js","assets/ExecutionStatusIcon.vue_vue_type_script_setup_true_lang.7bd1f43d.js","assets/LoadingOutlined.eb1ab7c7.js","assets/polling.cabdf3a3.js","assets/ant-design.805ab95d.js","assets/PhCopy.vue.5aeb9248.js","assets/index.c25fb6e2.js","assets/ExecutionContext.61f8e22d.css","assets/omniChatStore.3d16b4ad.js","assets/uuid.14c9b73e.js","assets/PhCopySimple.vue.33922e71.js","assets/omniChatStore.b58e3bed.css","assets/datetime.049cd1b4.js","assets/OmniChat.6d49a0d2.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang.11067aac.js","assets/Logo.417950ea.js","assets/Logo.b7d81119.css","assets/files.a48976ba.js","assets/PhClockCounterClockwise.vue.701e6c6a.js","assets/PhDatabase.vue.09fef09d.js","assets/index.680764ed.js","assets/index.4073d3ba.js","assets/OmniChat.60ee26c8.css","assets/AbstraButton.vue_vue_type_script_setup_true_lang.905e8d9e.js","assets/constants.ba2d8460.js","assets/PhTranslate.vue.5fd55ee3.js","assets/PhArrowSquareOut.vue.d71d80fc.js","assets/PhRocket.vue.1927fd55.js","assets/PhSignOut.vue.0c10fd8d.js","assets/useCodebaseEvents.c0197501.js","assets/PhDownloadSimple.vue.db22067f.js","assets/PhFilePlus.vue.1b7fc04b.js","assets/PhPencilSimple.vue.c30ff752.js","assets/CloseCircleOutlined.66e5f1b1.js","assets/PhFolderPlus.vue.7b02d45f.js","assets/tasksController.a5bd1328.js","assets/vue-flow-core.64ea4397.js","assets/os.b6b83ab9.js","assets/ContentLayout.2ae39d29.js","assets/ContentLayout.cdae7d24.css","assets/fetch.6b0b8dbd.js","assets/repository.010eeaad.js","assets/SaveButton.bf92f582.js","assets/ExclamationCircleOutlined.81063754.js","assets/SaveButton.363ea20f.css","assets/View.vue_vue_type_script_setup_true_lang.d5d3a410.js","assets/CrudView.391f0e9f.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.e6d1d3ad.js","assets/PhDotsThreeVertical.vue.b3fda5f6.js","assets/CrudView.8abe5bc2.css","assets/PhPencil.vue.8e94a4bd.js","assets/PlayerNavbar.fb3a012d.js","assets/PlayerNavbar.4dc29a45.css","assets/PlayerConfigProvider.f7be8491.js","assets/PlayerConfigProvider.1ce9d3b1.css","assets/LoadingContainer.e7fd3862.js","assets/LoadingContainer.56fa997a.css","assets/ScrollArea.vue_vue_type_script_setup_true_lang.b4f189da.js","assets/PhGear.vue.3049f8f5.js","assets/PhFileArrowUp.vue.1e3b8493.js","assets/toggleHighContrast.2a096764.js","assets/toggleHighContrast.30d77c87.css","assets/index.5654c649.js","assets/vue-flow-background.cc5881af.js","assets/PhArrowCounterClockwise.vue.44a61827.js","assets/FormRunner.7e7ce26d.js","assets/Login.vue_vue_type_script_setup_true_lang.c0c3af9a.js","assets/CircularLoading.6ab785c3.js","assets/CircularLoading.a8fe2dc6.css","assets/Login.ac75228f.css","assets/Steps.27508a86.js","assets/index.705ce630.js","assets/Steps.2880920a.css","assets/Watermark.e6c4654b.js","assets/Watermark.b0916e90.css","assets/FormRunner.1e6e7d2a.css","assets/repository.997243c1.js","assets/redirect.8303afd7.js","assets/router.e1e467ab.js","assets/NewEditor.46862924.css"])},{path:"project-login",name:"projectLogin",component:()=>m(()=>import("./ProjectLogin.7f541a88.js"),["assets/ProjectLogin.7f541a88.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang.11067aac.js","assets/Logo.417950ea.js","assets/jwt-decode.esm.4071145e.js","assets/jwt-decode.aa5b9ed3.css","assets/Logo.b7d81119.css","assets/BaseLayout.b03df2cd.js","assets/BaseLayout.e1744dcc.css","assets/index.bbb3a202.js","assets/Breadcrumb.9686bc9b.js","assets/index.680764ed.js","assets/index.c25fb6e2.js","assets/router.e1e467ab.js","assets/workspaceStore.260ac7fc.js","assets/userStore.1004ebc1.js","assets/url.4aa6f272.js","assets/colorHelpers.93df70ab.js","assets/useCodebaseEvents.c0197501.js","assets/contracts.generated.bc42bf02.js","assets/index.fd17682d.js","assets/constants.ba2d8460.js","assets/linters.5d49f0b2.js","assets/asyncComputed.0308626b.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.608af2ed.js"),["assets/App.608af2ed.js","assets/App.vue_vue_type_style_index_0_lang.8bbdcede.js","assets/userStore.1004ebc1.js","assets/jwt-decode.esm.4071145e.js","assets/jwt-decode.aa5b9ed3.css","assets/PlayerConfigProvider.f7be8491.js","assets/colorHelpers.93df70ab.js","assets/PlayerConfigProvider.1ce9d3b1.css","assets/workspaceStore.260ac7fc.js","assets/url.4aa6f272.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:()=>de(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,ue),L(e,pe),L(e,_e)})();export{u as E,Ce as u};
2
- //# sourceMappingURL=editor.4df699e8.js.map
@@ -1,2 +0,0 @@
1
- import{C as t,E as d,K as i,a as c,M as b,c as f,P as l,R as y,S as g,b as u,T as k,U as p,e as w,l as D}from"./toggleHighContrast.2a096764.js";import"./jwt-decode.esm.4071145e.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]="33f2d72c-b2b5-41c9-8285-cd30601abeca",e._sentryDebugIdIdentifier="sentry-dbid-33f2d72c-b2b5-41c9-8285-cd30601abeca")}catch{}})();export{t as CancellationTokenSource,d as Emitter,i as KeyCode,c as KeyMod,b as MarkerSeverity,f as MarkerTag,l as Position,y as Range,g as Selection,u as SelectionDirection,k as Token,p as Uri,w as editor,D as languages};
2
- //# sourceMappingURL=editor.main.1441c190.js.map
@@ -1,2 +0,0 @@
1
- import"./jwt-decode.esm.4071145e.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]="2eed0441-e072-436f-8969-7b0230695561",e._sentryDebugIdIdentifier="sentry-dbid-2eed0441-e072-436f-8969-7b0230695561")}catch{}})();const o=(...e)=>window.fetch(...e);export{o as l};
2
- //# sourceMappingURL=fetch.6b0b8dbd.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.4071145e.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]="91b9a1c7-8402-4c94-af76-79743d034eaf",e._sentryDebugIdIdentifier="sentry-dbid-91b9a1c7-8402-4c94-af76-79743d034eaf")}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 f=5*1024*1024,h={"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(h).flat(),O=e=>Object.keys(h).includes(e),U=e=>e.size>f?{valid:!1,error:`File size exceeds ${W(f)} 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.a48976ba.js.map
@@ -1,2 +0,0 @@
1
- import{C as o}from"./Card.95a0c7f0.js";import{d as p,an as g,b_ as i,f as r,bK as d,c as y}from"./jwt-decode.esm.4071145e.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]="b93ddf6f-7ab3-4c14-b247-7050873bf4a3",e._sentryDebugIdIdentifier="sentry-dbid-b93ddf6f-7ab3-4c14-b247-7050873bf4a3")}catch{}})();const _=()=>({prefixCls:String,title:d(),description:d(),avatar:d()}),c=p({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,b=v?r("div",{class:`${t.value}-meta-description`},[v]):null,D=m||b?r("div",{class:`${t.value}-meta-detail`},[m,b]):null;return r("div",{class:l},[C,D])}}}),M=()=>({prefixCls:String,hoverable:{type:Boolean,default:!0}}),u=p({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.5eda0243.js.map
@@ -1,2 +0,0 @@
1
- import{d as V,an as W,e7 as q,e8 as L,c as o,r as O,w as M,aX as X,f as p,W as m,aY as Y,aq as G,c_ as h,aC as j,bA as B,aT as H,ao as J}from"./jwt-decode.esm.4071145e.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]="4ffd0000-f4ea-41db-b3d5-780efd40cf26",e._sentryDebugIdIdentifier="sentry-dbid-4ffd0000-f4ea-41db-b3d5-780efd40cf26")}catch{}})();const K={small:8,middle:16,large:24},Q=()=>({prefixCls:String,size:{type:[String,Number,Array]},direction:j.oneOf(B("horizontal","vertical")).def("horizontal"),align:j.oneOf(B("start","end","center","baseline")),wrap:H()});function U(e){return typeof e=="string"?K[e]:e||0}const r=V({compatConfig:{MODE:3},name:"ASpace",inheritAttrs:!1,props:Q(),slots:Object,setup(e,c){let{slots:l,attrs:g}=c;const{prefixCls:n,space:y,direction:w}=W("space",e),[E,F]=q(n),x=L(),s=o(()=>{var a,t,i;return(i=(a=e.size)!==null&&a!==void 0?a:(t=y==null?void 0:y.value)===null||t===void 0?void 0:t.size)!==null&&i!==void 0?i:"small"}),b=O(),u=O();M(s,()=>{[b.value,u.value]=(Array.isArray(s.value)?s.value:[s.value,s.value]).map(a=>U(a))},{immediate:!0});const z=o(()=>e.align===void 0&&e.direction==="horizontal"?"center":e.align),T=o(()=>J(n.value,F.value,`${n.value}-${e.direction}`,{[`${n.value}-rtl`]:w.value==="rtl",[`${n.value}-align-${z.value}`]:z.value})),k=o(()=>w.value==="rtl"?"marginLeft":"marginRight"),P=o(()=>{const a={};return x.value&&(a.columnGap=`${b.value}px`,a.rowGap=`${u.value}px`),m(m({},a),e.wrap&&{flexWrap:"wrap",marginBottom:`${-u.value}px`})});return()=>{var a,t;const{wrap:i,direction:R="horizontal"}=e,_=(a=l.default)===null||a===void 0?void 0:a.call(l),C=X(_),A=C.length;if(A===0)return null;const d=(t=l.split)===null||t===void 0?void 0:t.call(l),I=`${n.value}-item`,D=b.value,S=A-1;return p("div",G(G({},g),{},{class:[T.value,g.class],style:[P.value,g.style]}),[C.map((N,f)=>{let $=_.indexOf(N);$===-1&&($=`$$space-${f}`);let v={};return x.value||(R==="vertical"?f<S&&(v={marginBottom:`${D/(d?2:1)}px`}):v=m(m({},f<S&&{[k.value]:`${D/(d?2:1)}px`}),i&&{paddingBottom:`${u.value}px`})),E(p(Y,{key:$},[p("div",{class:I,style:v},[N]),f<S&&d&&p("span",{class:`${I}-split`,style:v},[d])]))})])}}});r.Compact=h;r.install=function(e){return e.component(r.name,r),e.component(h.name,h),e};const ee=r;export{ee as A};
2
- //# sourceMappingURL=index.c25fb6e2.js.map
@@ -1,2 +0,0 @@
1
- import{C as n,D as r,E as o,F as d,P as p,G as c,H as b,I as m,J as a,K as u,L as f,N as g,O as l}from"./jwt-decode.esm.4071145e.js";import{a as y,b as i}from"./router.e1e467ab.js";import{s as w}from"./workspaceStore.260ac7fc.js";import{_ as h}from"./App.vue_vue_type_style_index_0_lang.8bbdcede.js";import"./userStore.1004ebc1.js";import"./url.4aa6f272.js";import"./colorHelpers.93df70ab.js";import"./PlayerConfigProvider.f7be8491.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]="33b48ae4-92a4-4103-8b9d-1be2b99120e2",t._sentryDebugIdIdentifier="sentry-dbid-33b48ae4-92a4-4103-8b9d-1be2b99120e2")}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(p),e.mount("#app"),e.component("VSelect",c),e.component("Markdown",b),e.component("Message",m),a(e,f),a(e,g),a(e,l)})();
2
- //# sourceMappingURL=player.9c3751ac.js.map
@@ -1,2 +0,0 @@
1
- import"./jwt-decode.esm.4071145e.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]="f73ec602-67de-452e-97f5-a957f62ebd08",e._sentryDebugIdIdentifier="sentry-dbid-f73ec602-67de-452e-97f5-a957f62ebd08")}catch{}})();const i=1e3,f=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{f as u};
2
- //# sourceMappingURL=polling.cabdf3a3.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.daabed01.js";import{k as s}from"./router.ef7a08cf.js";import"./jwt-decode.esm.4071145e.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]="a80e6f0a-3ae7-4494-a3be-56097dc842d6",a._sentryDebugIdIdentifier="sentry-dbid-a80e6f0a-3ae7-4494-a3be-56097dc842d6")}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.794c2cba.js.map
@@ -1,2 +0,0 @@
1
- var o=Object.defineProperty;var d=(e,s,t)=>s in e?o(e,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[s]=t;var n=(e,s,t)=>(d(e,typeof s!="symbol"?s+"":s,t),t);import{$ as p,eK as u,en as r}from"./jwt-decode.esm.4071145e.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]="927b0245-461c-48b2-a40c-69d400c2ccd1",e._sentryDebugIdIdentifier="sentry-dbid-927b0245-461c-48b2-a40c-69d400c2ccd1")}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 u(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 u(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]},c=await this.api.update(this.initialState.id,a);this.initialState={...this.initialState,...c},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 g 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 u(new g(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]},c=await this.api.update(this.initialState.id,a);this.initialState={...this.initialState,...c},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{g as A,h as E,b as P,l as a};
2
- //# sourceMappingURL=record.daabed01.js.map
@@ -1,2 +0,0 @@
1
- import{i as s}from"./url.4aa6f272.js";import"./jwt-decode.esm.4071145e.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]="c46a00e3-5dcf-43ee-8308-29ac6560511a",e._sentryDebugIdIdentifier="sentry-dbid-c46a00e3-5dcf-43ee-8308-29ac6560511a")}catch{}})();function c(e){return e.startsWith("/")?e.slice(1):e}function f(e,r,n={}){if(s(r)){const a=new URL(r),t=new URLSearchParams(n),i=new URLSearchParams(a.search),o=new URLSearchParams([...i,...t]);return a.search=o.toString(),{action:"REPLACE_LOCAL_HREF",newHref:a.toString()}}else{const a=r.replace(/\/$/,"");if(e==="player")return{action:"GOTO_FORM_PLAYER",path:c(a),queryParams:n};if(e==="editor")return{action:"GOTO_FORM_EDITOR",path:c(a),queryParams:n};if(e==="preview")return{action:"GOTO_FORM_PLAYER",path:c(a),queryParams:n};throw new Error(`Invalid routing ${e}`)}}async function w(e,r,n,a={}){const t=f(e,n,a);switch(t.action){case"REPLACE_LOCAL_HREF":window.location.href=t.newHref;break;case"GOTO_FORM_EDITOR":await r.push({name:"formEditor",params:{formPath:t.path},query:t.queryParams});break;case"GOTO_FORM_PLAYER":await r.push({name:e==="preview"?"formPreview":"formPlayer",params:{formPath:t.path},query:t.queryParams});break;default:throw new Error("Invalid routing")}}export{w as r};
2
- //# sourceMappingURL=redirect.8303afd7.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 n}from"./router.ef7a08cf.js";import"./jwt-decode.esm.4071145e.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]="0f02a0e4-89d7-4f64-ad59-ef2a006e0773",a._sentryDebugIdIdentifier="sentry-dbid-0f02a0e4-89d7-4f64-ad59-ef2a006e0773")}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(r=>r.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(r=>r.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 n.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 n.get(`projects/${this.projectId}/tasks`,s)}async getTasksStatistics(){return await n.get(`projects/${this.projectId}/tasks/statistics`)}async getStageTasks(t){const e={stageId:t,offset:"0",limit:"1000"};return await n.get(`projects/${this.projectId}/tasks`,e)}async getSentStageTasks(t){const e={sourceStageId:t,offset:"0",limit:"1000"};return await n.get(`projects/${this.projectId}/tasks`,e)}async updateTaskStatus(t,e){await n.patch(`projects/${this.projectId}/tasks/${t}`,{status:e})}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.997243c1.js.map
@@ -1,2 +0,0 @@
1
- import{x as c,y as d,z as t,B as m}from"./jwt-decode.esm.4071145e.js";import{a as u}from"./workspaceStore.260ac7fc.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]="72d3f850-b87d-4a15-aec3-3cce5dd66a39",a._sentryDebugIdIdentifier="sentry-dbid-72d3f850-b87d-4a15-aec3-3cce5dd66a39")}catch{}})();const f=async()=>{try{const a=await fetch("/_editor/api/workspace/version");return a.ok&&(await a.json()).version||"a6075228a4fb22bd4bfd7cf56bad33b283b0a40f"}catch(a){return console.error("Failed to fetch Abstra version:",a),"a6075228a4fb22bd4bfd7cf56bad33b283b0a40f"}},p=[{path:"/oidc-login-callback",name:"oidcLoginCallback",component:()=>t(()=>import("./OidcLoginCallback.31318c8c.js"),["assets/OidcLoginCallback.31318c8c.js","assets/workspaceStore.260ac7fc.js","assets/jwt-decode.esm.4071145e.js","assets/jwt-decode.aa5b9ed3.css","assets/userStore.1004ebc1.js","assets/url.4aa6f272.js","assets/colorHelpers.93df70ab.js"]),meta:{allowUnauthenticated:!0}},{path:"/oidc-logout-callback",name:"oidcLogoutCallback",component:()=>t(()=>import("./OidcLogoutCallback.af3bbbed.js"),["assets/OidcLogoutCallback.af3bbbed.js","assets/workspaceStore.260ac7fc.js","assets/jwt-decode.esm.4071145e.js","assets/jwt-decode.aa5b9ed3.css","assets/userStore.1004ebc1.js","assets/url.4aa6f272.js","assets/colorHelpers.93df70ab.js"]),meta:{allowUnauthenticated:!0}},{path:"/login",name:"playerLogin",component:()=>t(()=>import("./Login.ab4296a6.js"),["assets/Login.ab4296a6.js","assets/Login.vue_vue_type_script_setup_true_lang.c0c3af9a.js","assets/jwt-decode.esm.4071145e.js","assets/jwt-decode.aa5b9ed3.css","assets/workspaceStore.260ac7fc.js","assets/userStore.1004ebc1.js","assets/url.4aa6f272.js","assets/colorHelpers.93df70ab.js","assets/CircularLoading.6ab785c3.js","assets/CircularLoading.a8fe2dc6.css","assets/Logo.417950ea.js","assets/Logo.b7d81119.css","assets/string.0157e442.js","assets/index.4073d3ba.js","assets/Login.ac75228f.css","assets/Login.3b76812d.css"]),meta:{allowUnauthenticated:!0}},{path:"/",name:"main",component:()=>t(()=>import("./Main.9c7e6552.js"),["assets/Main.9c7e6552.js","assets/PlayerNavbar.fb3a012d.js","assets/userStore.1004ebc1.js","assets/jwt-decode.esm.4071145e.js","assets/jwt-decode.aa5b9ed3.css","assets/workspaceStore.260ac7fc.js","assets/url.4aa6f272.js","assets/colorHelpers.93df70ab.js","assets/metadata.bd34dda0.js","assets/PhWebhooksLogo.vue.28d1edea.js","assets/LoadingOutlined.eb1ab7c7.js","assets/PhSignOut.vue.0c10fd8d.js","assets/index.680764ed.js","assets/PlayerNavbar.4dc29a45.css","assets/Main.201c14c9.css"]),redirect:{name:"main"},children:[{path:"",name:"playerHome",component:()=>t(()=>import("./Home.fb4fb018.js"),["assets/Home.fb4fb018.js","assets/metadata.bd34dda0.js","assets/jwt-decode.esm.4071145e.js","assets/jwt-decode.aa5b9ed3.css","assets/PhWebhooksLogo.vue.28d1edea.js","assets/Watermark.e6c4654b.js","assets/workspaceStore.260ac7fc.js","assets/userStore.1004ebc1.js","assets/url.4aa6f272.js","assets/colorHelpers.93df70ab.js","assets/constants.ba2d8460.js","assets/Watermark.b0916e90.css","assets/PhArrowSquareOut.vue.d71d80fc.js","assets/index.5eda0243.js","assets/Card.95a0c7f0.js","assets/LoadingOutlined.eb1ab7c7.js","assets/Home.e8bf9440.css"]),meta:{title:"Home"}},{path:"_player/threads",redirect:{name:"playerThreads"}},{path:"error/:status",name:"error",component:()=>t(()=>import("./Error.cec1d9ae.js"),["assets/Error.cec1d9ae.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang.11067aac.js","assets/Logo.417950ea.js","assets/jwt-decode.esm.4071145e.js","assets/jwt-decode.aa5b9ed3.css","assets/Logo.b7d81119.css","assets/constants.ba2d8460.js","assets/workspaceStore.260ac7fc.js","assets/userStore.1004ebc1.js","assets/url.4aa6f272.js","assets/colorHelpers.93df70ab.js","assets/Card.95a0c7f0.js","assets/Error.ef2624eb.css"]),meta:{allowUnauthenticated:!0}},{path:":path(.*)*",name:"form",component:()=>t(()=>import("./Form.48029b6f.js"),["assets/Form.48029b6f.js","assets/userStore.1004ebc1.js","assets/jwt-decode.esm.4071145e.js","assets/jwt-decode.aa5b9ed3.css","assets/FormRunner.7e7ce26d.js","assets/Login.vue_vue_type_script_setup_true_lang.c0c3af9a.js","assets/workspaceStore.260ac7fc.js","assets/url.4aa6f272.js","assets/colorHelpers.93df70ab.js","assets/CircularLoading.6ab785c3.js","assets/CircularLoading.a8fe2dc6.css","assets/Logo.417950ea.js","assets/Logo.b7d81119.css","assets/string.0157e442.js","assets/index.4073d3ba.js","assets/Login.ac75228f.css","assets/Steps.27508a86.js","assets/index.705ce630.js","assets/Steps.2880920a.css","assets/Watermark.e6c4654b.js","assets/constants.ba2d8460.js","assets/Watermark.b0916e90.css","assets/FormRunner.1e6e7d2a.css","assets/redirect.8303afd7.js","assets/asyncComputed.0308626b.js","assets/uuid.14c9b73e.js","assets/Form.7d1b0423.css"]),meta:{hideLogin:!0}}]}],o=c({history:d("/"),routes:p,scrollBehavior(a){if(a.hash)return{el:a.hash}}}),l=a=>async(e,r)=>{if(m(e,r),e.meta.allowUnauthenticated)return;const n=await u(e.path),{redirect:i,...s}=e.query;switch(n.status){case"ALLOWED":break;case"UNAUTHORIZED":await a.push({name:"playerLogin",query:{...s,redirect:i||e.path},params:e.params});break;case"NOT_FOUND":await a.push({name:"error",params:{status:"404"}});break;default:await a.push({name:"error",params:{status:"403"}})}};o.beforeEach(l(o));export{f as a,o as b,l as g,p as r};
2
- //# sourceMappingURL=router.e1e467ab.js.map
@@ -1,4 +0,0 @@
1
- var V=Object.defineProperty;var z=(o,t,e)=>t in o?V(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e;var w=(o,t,e)=>(z(o,typeof t!="symbol"?t+"":t,e),e);import{r as O,c as G,en as K,al as Q,i as h,w as W}from"./jwt-decode.esm.4071145e.js";import"./contracts.generated.bc42bf02.js";import{A as v}from"./record.daabed01.js";import"./linters.5d49f0b2.js";import{u as X}from"./polling.cabdf3a3.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]="62806e64-fa8c-426b-8500-57fd17681059",o._sentryDebugIdIdentifier="sentry-dbid-62806e64-fa8c-426b-8500-57fd17681059")}catch{}})();class Y{async list(){return await(await fetch("/_editor/api/forms")).json()}async create(t,e,r,i){return await(await fetch("/_editor/api/forms",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:t,file:e,position:r,id:i})})).json()}async get(t){try{return await(await fetch(`/_editor/api/forms/${t}`)).json()}catch{return null}}async update(t,e){return await(await fetch(`/_editor/api/forms/${t}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json()}async delete(t,e){const r=e?"?remove_file=true":"",i=`/_editor/api/forms/${t}`+r;await fetch(i,{method:"DELETE",headers:{"Content-Type":"application/json"}})}async duplicate(t){return await(await fetch(`/_editor/api/forms/${t}/duplicate`,{method:"POST"})).json()}}const m=new Y;class f{constructor(t){w(this,"record");this.record=v.create(m,t)}static async list(){return(await m.list()).map(e=>new f(e))}static async create(t,e,r,i){const s=await m.create(t,e,r,i);return new f(s)}static async get(t){const e=await m.get(t);return e?new f(e):null}get id(){return this.record.get("id")}get type(){return"form"}get file(){return this.record.get("file")}set file(t){this.record.set("file",t)}get autoStart(){return this.record.get("auto_start")}set autoStart(t){this.record.set("auto_start",t)}get endMessage(){return this.record.get("end_message")}set endMessage(t){this.record.set("end_message",t)}get errorMessage(){return this.record.get("error_message")}set errorMessage(t){this.record.set("error_message",t)}get path(){return this.record.get("path")}set path(t){this.record.set("path",t)}get startButtonText(){return this.record.get("start_button_text")}set startButtonText(t){this.record.set("start_button_text",t)}get startMessage(){return this.record.get("start_message")}set startMessage(t){this.record.set("start_message",t)}get timeoutMessage(){return this.record.get("timeout_message")}set timeoutMessage(t){this.record.set("timeout_message",t)}get notificationTrigger(){return new Proxy(this.record.get("notification_trigger"),{set:(t,e,r)=>(this.record.set("notification_trigger",{...t,[e]:r}),!0)})}set notificationTrigger(t){this.record.set("notification_trigger",t)}get(t){return this.record.get(t)}set(t,e){this.record.set(t,e)}get title(){return this.record.get("title")}set title(t){this.record.set("title",t)}get codeContent(){return this.record.get("code_content")}set codeContent(t){this.record.set("code_content",t)}async save(t){const e=this.codeContent;await this.record.save(t),this.record.updateInitialState("code_content",e)}onUpdate(t){this.record.pubsub.subscribe("update",t)}hasChanges(t){return this.record.hasChanges(t)}hasChangesDeep(t){return this.record.hasChangesDeep(t)}getInitialState(t){return this.record.getInitialState(t)}updateInitialState(t,e){this.record.updateInitialState(t,e)}async delete(t){await m.delete(this.id,t)}async duplicate(){const t=await m.duplicate(this.id);return new f(t)}makeRunnerData(t){return{...t.makeRunnerData(),id:this.id,isLocal:!0,path:this.path,title:this.title,isInitial:this.isInitial,runtimeType:"form",autoStart:this.autoStart,endMessage:this.endMessage,errorMessage:this.errorMessage,startMessage:this.startMessage,timeoutMessage:this.timeoutMessage,startButtonText:this.startButtonText}}get position(){const[t,e]=this.record.get("workflow_position");return{x:t,y:e}}get isInitial(){return this.record.get("is_initial")}static from(t){return new f(t)}}class Z{async list(){return await(await fetch("/_editor/api/hooks")).json()}async create(t,e,r,i){return await(await fetch("/_editor/api/hooks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:t,file:e,position:r,id:i})})).json()}async get(t){try{return await(await fetch(`/_editor/api/hooks/${t}`)).json()}catch{return null}}async update(t,e){return await(await fetch(`/_editor/api/hooks/${t}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json()}async delete(t,e){const r=e?"?remove_file=true":"",i=`/_editor/api/hooks/${t}`+r;await fetch(i,{method:"DELETE",headers:{"Content-Type":"application/json"}})}async run(t,e){const r=new URLSearchParams(e.query),i=await fetch(`/_editor/api/hooks/${t}/run?${r.toString()}`,{method:e.method,headers:{"Content-Type":"application/json",...e.headers},body:e.method==="GET"?void 0:e.body}),{status:s,headers:l,body:p}=await i.json();return{status:s,headers:l,body:p}}}const S=new Z;class _{constructor(t){w(this,"record");this.record=v.create(S,t)}static async list(){return(await S.list()).map(e=>new _(e))}static async create(t,e,r,i){const s=await S.create(t,e,r,i);return new _(s)}static async get(t){const e=await S.get(t);return e?new _(e):null}async delete(t){await S.delete(this.id,t)}async duplicate(){return this}async save(t){const e=this.codeContent;await this.record.save(t),this.record.updateInitialState("code_content",e)}onUpdate(t){this.record.pubsub.subscribe("update",t)}hasChanges(t){return this.record.hasChanges(t)}getInitialState(t){return this.record.getInitialState(t)}updateInitialState(t,e){this.record.updateInitialState(t,e)}get id(){return this.record.get("id")}get type(){return"hook"}get path(){return this.record.get("path")}set path(t){this.record.set("path",t)}get title(){return this.record.get("title")}set title(t){this.record.set("title",t)}get codeContent(){return this.record.get("code_content")}set codeContent(t){this.record.set("code_content",t)}get file(){return this.record.get("file")}set file(t){this.record.set("file",t)}async run(t){return S.run(this.id,t)}get position(){const[t,e]=this.record.get("workflow_position");return{x:t,y:e}}get isInitial(){return this.record.get("is_initial")}static from(t){return new _(t)}}class q{async list(){return await(await fetch("/_editor/api/jobs")).json()}async create(t,e,r,i){return await(await fetch("/_editor/api/jobs",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:t,file:e,position:r,id:i})})).json()}async get(t){try{return await(await fetch(`/_editor/api/jobs/${t}`)).json()}catch{return null}}async update(t,e){return await(await fetch(`/_editor/api/jobs/${t}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json()}async delete(t,e){const r=e?"?remove_file=true":"",i=`/_editor/api/jobs/${t}`+r;await fetch(i,{method:"DELETE",headers:{"Content-Type":"application/json"}})}async run(t){return(await fetch(`/_editor/api/jobs/${t}/run`,{method:"POST",headers:{"Content-Type":"application/json"}})).ok}}const T=new q;class I{constructor(t){w(this,"record");w(this,"isInitial",!0);this.record=v.create(T,t)}static async list(){return(await T.list()).map(e=>new I(e))}static async create(t,e,r,i){const s=await T.create(t,e,r,i);return new I(s)}static async get(t){const e=await T.get(t);return e?new I(e):null}async delete(t){await T.delete(this.id,t)}async duplicate(){return this}async save(t){const e=this.codeContent;await this.record.save(t),this.record.updateInitialState("code_content",e)}onUpdate(t){this.record.pubsub.subscribe("update",t)}hasChanges(t){return this.record.hasChanges(t)}getInitialState(t){return this.record.getInitialState(t)}updateInitialState(t,e){this.record.updateInitialState(t,e)}get schedule(){return this.record.get("schedule")}set schedule(t){this.record.set("schedule",t)}get type(){return"job"}get title(){return this.record.get("title")}set title(t){this.record.set("title",t)}get codeContent(){return this.record.get("code_content")}set codeContent(t){this.record.set("code_content",t)}get file(){return this.record.get("file")}set file(t){this.record.set("file",t)}get id(){return this.record.get("id")}async run(){return T.run(this.id)}get position(){const[t,e]=this.record.get("workflow_position");return{x:t,y:e}}static from(t){return new I(t)}hasChangesDeep(t){return this.record.hasChangesDeep(t)}}class F{async list(){return await(await fetch("/_editor/api/scripts")).json()}async create(t,e,r,i){return await(await fetch("/_editor/api/scripts",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:t,file:e,position:r,id:i})})).json()}async get(t){try{return await(await fetch(`/_editor/api/scripts/${t}`)).json()}catch{return null}}async update(t,e){return await(await fetch(`/_editor/api/scripts/${t}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json()}async delete(t,e){const r=e?"?remove_file=true":"",i=`/_editor/api/scripts/${t}`+r;await fetch(i,{method:"DELETE",headers:{"Content-Type":"application/json"}})}async run(t,e){return(await fetch(`/_editor/api/scripts/${t}/run`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({task_id:e})})).ok}}const b=new F;class C{constructor(t){w(this,"record");this.record=v.create(b,t)}static async list(){return(await b.list()).map(e=>new C(e))}static async create(t,e,r,i){const s=await b.create(t,e,r,i);return new C(s)}static async get(t){const e=await b.get(t);return e?new C(e):null}async delete(t){await b.delete(this.id,t)}async duplicate(){return this}async save(t){const e=this.codeContent;await this.record.save(t),this.record.updateInitialState("code_content",e)}onUpdate(t){this.record.pubsub.subscribe("update",t)}hasChanges(t){return this.record.hasChanges(t)}getInitialState(t){return this.record.getInitialState(t)}updateInitialState(t,e){this.record.updateInitialState(t,e)}get id(){return this.record.get("id")}get codeContent(){return this.record.get("code_content")}set codeContent(t){this.record.set("code_content",t)}get title(){return this.record.get("title")}set title(t){this.record.set("title",t)}get type(){return"tasklet"}get file(){return this.record.get("file")}set file(t){this.record.set("file",t)}get path(){return this.record.get("path")}set path(t){this.record.set("path",t)}async run(t){return b.run(this.id,t)}get position(){const[t,e]=this.record.get("workflow_position");return{x:t,y:e}}get isInitial(){return!1}static from(t){return new C(t)}}function H({api:o,fetchTasks:t}){const e=O({state:"idle"}),r=()=>{e.value={state:"idle"}},i=()=>{e.value={state:"creating",name:"My task",payloadCode:`{
2
- "key": "value"
3
- }`}},s=async p=>{const g=e.value;if(g.state!=="creating")throw new Error("Payload is required to create a task");if(!l.value)return;const c=JSON.parse(g.payloadCode),y=await o.createTask(g.name,p,c);return await t(),r(),y},l=G(()=>{const p=e.value;if(p.state!=="creating")return!1;try{const g=JSON.parse(p.payloadCode);return K.exports.isObject(g)}catch{return!1}});return{createTask:s,creatingTaskState:e,cancelCreatingTask:r,startCreatingTask:i,isPayloadValid:l}}const x=["pink","orange","green","blue","purple","red","cyan","magenta","volcano","gold"],ct=({api:o,poll:t,stageId:e,status:r,stages:i})=>{const s=Q({tasks:[],sentTasks:[],colorMap:new Map,pagination:{currentIndex:0,pageSize:10,totalCount:0},filters:{stage:e,status:r,dateRange:void 0},filterOptions:{stages:[],statuses:[{label:h.translate("i18n_tasksview_status_pending"),value:"pending"},{label:h.translate("i18n_tasksview_status_running"),value:"started"},{label:h.translate("i18n_tasksview_status_completed"),value:"completed"}]}}),l=[{name:"setToPending",label:h.translate("i18n_tasksview_action_set_to_pending"),handler:()=>{s.tasks.filter(a=>a.checked).map(a=>a.id).forEach(a=>E(a))}},{name:"setToCompleted",label:h.translate("i18n_tasksview_action_set_to_completed"),handler:()=>{s.tasks.filter(a=>a.checked).map(a=>a.id).forEach(a=>P(a))}},{name:"duplicate",label:h.translate("i18n_tasksview_action_duplicate"),handler:()=>{s.tasks.filter(a=>a.checked).forEach(async a=>{await o.createTask(a.type,a.targetStageId,a.payload),c()})}}],p=O(["pending"]),g=n=>{const a=s.tasks.findIndex(d=>d.id===n.id);a!==-1?s.tasks[a]=n:s.tasks.unshift(n)},c=async()=>{const n=e?await o.getStageTasks(e):await o.getAllTasks(s.pagination,s.filters);s.tasks=n.tasks.map(a=>({key:a.id,id:a.id,type:a.type,status:a.status,targetStageId:a.targetStageId,targetStageTitle:a.targetStageTitle,targetStageType:a.targetStageType,sourceStageTitle:a.sourceStageTitle,sourceStageType:a.sourceStageType,created:{at:new Date(a.created.at).toString(),byExecutionId:a.created.byExecutionId,byStageId:a.created.byStageId},locked:a.locked?{at:new Date(a.locked.at).toString(),byExecutionId:a.locked.byExecutionId,byStageId:a.locked.byStageId}:null,completed:a.completed?{at:new Date(a.completed.at).toString(),byExecutionId:a.completed.byExecutionId,byStageId:a.completed.byStageId}:null,payload:a.payload,checked:!1})),s.pagination.totalCount=n.totalCount},y=async()=>{if(!e)return[];const n=await o.getSentStageTasks(e);s.sentTasks=n.tasks.map(a=>({key:a.id,id:a.id,type:a.type,status:a.status,targetStageId:a.targetStageId,targetStageTitle:a.targetStageTitle,targetStageType:a.targetStageType,sourceStageTitle:a.sourceStageTitle,sourceStageType:a.sourceStageType,created:{at:new Date(a.created.at).toString(),byExecutionId:a.created.byExecutionId,byStageId:a.created.byStageId},locked:a.locked?{at:new Date(a.locked.at).toString(),byExecutionId:a.locked.byExecutionId,byStageId:a.locked.byStageId}:null,completed:a.completed?{at:new Date(a.completed.at).toString(),byExecutionId:a.completed.byExecutionId,byStageId:a.completed.byStageId}:null,payload:a.payload}))},j=()=>{var d;let n=0;s.tasks.concat((d=s.sentTasks)!=null?d:[]).forEach(k=>{s.colorMap.has(k.type)||(s.colorMap.set(k.type,x[n]),n=(n+1)%x.length)})};W(s.filters,async()=>{await Promise.all([c(),y()]),j()});const D=async()=>{await Promise.all([c(),y()]),j()},{startPolling:$,endPolling:A}=X({task:D,interval:15e3}),N=async()=>{if(await Promise.all([c(),y()]),j(),i===null){const n=Promise.all([f.list(),_.list(),I.list(),C.list()]).then(([a,d,k,u])=>[...a,...d,...k,...u]);s.filterOptions.stages=(await n).map(a=>({label:a.title,value:a.id}))}else s.filterOptions.stages=i.map(n=>({label:n.stageTitle,value:n.id}));t&&$()},J=()=>{t&&A()},E=async n=>{await o.updateTaskStatus(n,"pending"),c()},P=async n=>{await o.updateTaskStatus(n,"completed"),c()},U=n=>{s.tasks=s.tasks.map(a=>(a.id===n&&(a.checked=!a.checked),a))},M=()=>{const n=[],a=s.tasks.filter(u=>u.checked);return a.length===0?[]:(n.push("duplicate"),a.every(u=>u.status==="pending")&&n.push("setToCompleted"),a.every(u=>u.status==="completed")&&n.push("setToPending"),l.filter(u=>n.includes(u.name)))},L=async()=>{await o.clearAllTasks(),c(),y()},R=()=>[{title:h.translate("i18n_tasksview_column_date"),key:"timeInfo",align:"left",width:"25%"},{title:h.translate("i18n_tasksview_column_task"),key:"stageInfo",align:"left",width:"30%"},{title:h.translate("i18n_tasksview_column_payload"),key:"payloadInfo",align:"left",width:"45%"}],B=H({api:o,fetchTasks:c});return{setup:N,tearDown:J,state:s,getColumns:R,collapseValue:p,setToPending:E,setToCompleted:P,fetchTasks:c,updateStatus:async(n,a)=>{s.tasks=s.tasks.map(d=>(d.id===n.id&&(d.status=a),d)),await o.updateTaskStatus(n.id,a),c()},fetchSentTasks:y,checkTask:U,getPossibleActions:M,clearAllTasks:L,insertOrUpdate:g,...B}};export{f as F,_ as H,I as J,C as S,ct as T};
4
- //# sourceMappingURL=tasksController.a5bd1328.js.map
@@ -1,2 +0,0 @@
1
- import"./jwt-decode.esm.4071145e.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]="fa7c765c-3704-4733-89b5-5e80ed169c09",e._sentryDebugIdIdentifier="sentry-dbid-fa7c765c-3704-4733-89b5-5e80ed169c09")}catch{}})();const d=e=>{try{return new URL(e),!0}catch{return!1}},o=(e,r)=>{if(!Object.keys(r).length)return e;const t=new URL(e),n=new URLSearchParams(t.search);return Object.entries(r).forEach(([s,a])=>{t.searchParams.delete(s),n.set(s,a)}),`${t.origin}${t.pathname}?${n.toString()}`};export{d as i,o as m};
2
- //# sourceMappingURL=url.4aa6f272.js.map
@@ -1,2 +0,0 @@
1
- import{v as f,a0 as v,Z as w,r as m,c as r,a1 as p}from"./jwt-decode.esm.4071145e.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]="96d29033-00a2-48e5-ae03-07d45674d2fc",t._sentryDebugIdIdentifier="sentry-dbid-96d29033-00a2-48e5-ae03-07d45674d2fc")}catch{}})();const y=2*60*60,_=t=>{try{const e=p(t);if(!e.exp)throw Error("expired jwt");return{email:e.email,expiresInSeconds:e.exp*1e3}}catch{console.warn("Invalid JWT")}return null},g=f("user",()=>{const t=new v(w.string(),"auth:jwt"),e=m(null),s=()=>{e.value=null,t.remove()},o=a=>{t.set(a),e.value=a},u=()=>{e.value=t.get()},l=r(()=>e.value?{Authorization:`Bearer ${e.value}`}:{}),d=r(()=>e.value?["default",`base64url.bearer.authorization.${e.value}`]:[]),n=r(()=>e.value?_(e.value):null),c=r(()=>{var a;return(a=n.value)==null?void 0:a.email}),i=()=>n.value?n.value.expiresInSeconds-Date.now()>y:!1;return u(),{jwt:e,email:c,saveJWT:o,removeJWT:s,isJWTValid:i,authHeaders:l,wsAuthHeaders:d}});export{g as u};
2
- //# sourceMappingURL=userStore.1004ebc1.js.map
@@ -1,2 +0,0 @@
1
- import"./jwt-decode.esm.4071145e.js";(function(){try{var x=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new Error().stack;d&&(x._sentryDebugIds=x._sentryDebugIds||{},x._sentryDebugIds[d]="0d19326d-3cdd-4a0c-84e7-0bd1ca3b31bc",x._sentryDebugIdIdentifier="sentry-dbid-0d19326d-3cdd-4a0c-84e7-0bd1ca3b31bc")}catch{}})();const t=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(x){const d=Math.random()*16|0;return(x=="x"?d:d&3|8).toString(16)});export{t as u};
2
- //# sourceMappingURL=uuid.14c9b73e.js.map