abstra 3.23.2__py3-none-any.whl → 3.23.3__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 (206) hide show
  1. {abstra-3.23.2.dist-info → abstra-3.23.3.dist-info}/METADATA +1 -1
  2. {abstra-3.23.2.dist-info → abstra-3.23.3.dist-info}/RECORD +161 -161
  3. abstra_internals/cloud_api/__init__.py +0 -1
  4. abstra_statics/dist/assets/{AbstraButton.vue_vue_type_script_setup_true_lang.a26848e1.js → AbstraButton.vue_vue_type_script_setup_true_lang.c714d609.js} +2 -2
  5. abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.37e7ad5b.js +2 -0
  6. abstra_statics/dist/assets/{ApiKeys.c3f389e0.js → ApiKeys.94113392.js} +2 -2
  7. abstra_statics/dist/assets/App.6c102d26.js +2 -0
  8. abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.26121baf.js +2 -0
  9. abstra_statics/dist/assets/{BaseLayout.d1e9245a.js → BaseLayout.670b8441.js} +2 -2
  10. abstra_statics/dist/assets/{Billing.fd83dd78.js → Billing.80a50079.js} +2 -2
  11. abstra_statics/dist/assets/{Breadcrumb.b1d16b92.js → Breadcrumb.1d42c80c.js} +2 -2
  12. abstra_statics/dist/assets/{Builds.763995e5.js → Builds.4641dcf9.js} +2 -2
  13. abstra_statics/dist/assets/{Card.8279f4c6.js → Card.774e5d67.js} +2 -2
  14. abstra_statics/dist/assets/{CircularLoading.f56438b2.js → CircularLoading.02fd7b7b.js} +2 -2
  15. abstra_statics/dist/assets/CloseCircleOutlined.7ac8e1e8.js +2 -0
  16. abstra_statics/dist/assets/{ConnectorsView.f84c0309.js → ConnectorsView.746c7417.js} +2 -2
  17. abstra_statics/dist/assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.b85f86d8.js +2 -0
  18. abstra_statics/dist/assets/ContentLayout.4fc85c66.js +2 -0
  19. abstra_statics/dist/assets/{CrudView.78833c51.js → CrudView.7f2cbde4.js} +2 -2
  20. abstra_statics/dist/assets/DocsButton.vue_vue_type_script_setup_true_lang.0b26fb89.js +2 -0
  21. abstra_statics/dist/assets/{EditorLogin.cf53a7a7.js → EditorLogin.45764526.js} +2 -2
  22. abstra_statics/dist/assets/{EditorsView.b77efb1d.js → EditorsView.e9452d34.js} +2 -2
  23. abstra_statics/dist/assets/EnvVars.ccc24231.js +2 -0
  24. abstra_statics/dist/assets/Error.1bf571a6.js +2 -0
  25. abstra_statics/dist/assets/ExclamationCircleOutlined.f71fa58b.js +2 -0
  26. abstra_statics/dist/assets/{Files.71854289.js → Files.8bcd4d1f.js} +2 -2
  27. abstra_statics/dist/assets/Form.288a7191.js +2 -0
  28. abstra_statics/dist/assets/{FormRunner.12c3bcc8.js → FormRunner.f721431d.js} +2 -2
  29. abstra_statics/dist/assets/Home.23f0cff8.js +2 -0
  30. abstra_statics/dist/assets/Home.5ce6aade.js +2 -0
  31. abstra_statics/dist/assets/{Live.51f470f8.js → Live.2bbd1666.js} +2 -2
  32. abstra_statics/dist/assets/LoadingContainer.3ea9ec8d.js +2 -0
  33. abstra_statics/dist/assets/LoadingOutlined.11688830.js +2 -0
  34. abstra_statics/dist/assets/{Login.94f07e07.js → Login.186f24a9.js} +2 -2
  35. abstra_statics/dist/assets/Login.2a4c7e48.js +2 -0
  36. abstra_statics/dist/assets/{Login.vue_vue_type_script_setup_true_lang.1cd9267a.js → Login.vue_vue_type_script_setup_true_lang.fab46c0c.js} +2 -2
  37. abstra_statics/dist/assets/Logo.cc2d4a95.js +2 -0
  38. abstra_statics/dist/assets/{Logs.819710e0.js → Logs.f57284a4.js} +2 -2
  39. abstra_statics/dist/assets/{LogsController.01feb949.js → LogsController.353f0002.js} +2 -2
  40. abstra_statics/dist/assets/Main.635e443c.js +2 -0
  41. abstra_statics/dist/assets/{MockForm.acd1d2e5.js → MockForm.9b6a244c.js} +2 -2
  42. abstra_statics/dist/assets/Navbar.dacca218.js +2 -0
  43. abstra_statics/dist/assets/{NewEditor.44a9115d.js → NewEditor.1d7ddf86.js} +2 -2
  44. abstra_statics/dist/assets/OidcLoginCallback.0dff6320.js +2 -0
  45. abstra_statics/dist/assets/{OidcLogoutCallback.32654f13.js → OidcLogoutCallback.1f077fbb.js} +2 -2
  46. abstra_statics/dist/assets/{OmniChat.0152feb0.js → OmniChat.5e68be1c.js} +2 -2
  47. abstra_statics/dist/assets/{OnboardingView.87e7dd5a.js → OnboardingView.8733d184.js} +2 -2
  48. abstra_statics/dist/assets/{Organization.9e473847.js → Organization.bcb76b94.js} +2 -2
  49. abstra_statics/dist/assets/Organizations.3dbd99e1.js +2 -0
  50. abstra_statics/dist/assets/{PhArrowCounterClockwise.vue.412b5e18.js → PhArrowCounterClockwise.vue.d273955f.js} +2 -2
  51. abstra_statics/dist/assets/{PhArrowSquareOut.vue.f8745aca.js → PhArrowSquareOut.vue.0d20b8e9.js} +2 -2
  52. abstra_statics/dist/assets/{PhBookBookmark.vue.9aa9ef2e.js → PhBookBookmark.vue.8611e54f.js} +2 -2
  53. abstra_statics/dist/assets/{PhChats.vue.d6b59014.js → PhChats.vue.3dd1c2d7.js} +2 -2
  54. abstra_statics/dist/assets/{PhClockCounterClockwise.vue.a0df4d36.js → PhClockCounterClockwise.vue.853bd5ec.js} +2 -2
  55. abstra_statics/dist/assets/{PhCopy.vue.c5a6ae9d.js → PhCopy.vue.b1c2f21f.js} +2 -2
  56. abstra_statics/dist/assets/PhCopySimple.vue.ffc7ec94.js +2 -0
  57. abstra_statics/dist/assets/{PhCube.vue.fb3e6ff4.js → PhCube.vue.b5e79047.js} +2 -2
  58. abstra_statics/dist/assets/{PhDotsThreeVertical.vue.f70cea78.js → PhDotsThreeVertical.vue.89b627bd.js} +2 -2
  59. abstra_statics/dist/assets/{PhDownloadSimple.vue.0f718f50.js → PhDownloadSimple.vue.2c2eeb2c.js} +2 -2
  60. abstra_statics/dist/assets/{PhFolderPlus.vue.62f8ca48.js → PhFolderPlus.vue.e199ba17.js} +2 -2
  61. abstra_statics/dist/assets/{PhGear.vue.f08cfdf5.js → PhGear.vue.fbac4098.js} +2 -2
  62. abstra_statics/dist/assets/{PhKey.vue.0a54e40c.js → PhKey.vue.1850e466.js} +2 -2
  63. abstra_statics/dist/assets/{PhPencil.vue.d787cc70.js → PhPencil.vue.c3c70f7d.js} +2 -2
  64. abstra_statics/dist/assets/{PhPencilSimple.vue.22b071d6.js → PhPencilSimple.vue.ee9d03fc.js} +2 -2
  65. abstra_statics/dist/assets/{PhPencilSimpleLine.vue.9a1c7eaa.js → PhPencilSimpleLine.vue.6eedd1e6.js} +2 -2
  66. abstra_statics/dist/assets/{PhRocket.vue.df3fb791.js → PhRocket.vue.56a9b767.js} +2 -2
  67. abstra_statics/dist/assets/{PhSignOut.vue.a4fe2185.js → PhSignOut.vue.ee548b4c.js} +2 -2
  68. abstra_statics/dist/assets/{PhSparkle.vue.85f211d8.js → PhSparkle.vue.dc906cc7.js} +2 -2
  69. abstra_statics/dist/assets/{PhUserList.vue.1da93bbd.js → PhUserList.vue.6d0e7bc8.js} +2 -2
  70. abstra_statics/dist/assets/{PhUsersThree.vue.ad14fabd.js → PhUsersThree.vue.528ec19f.js} +2 -2
  71. abstra_statics/dist/assets/{PhWebhooksLogo.vue.872d4c72.js → PhWebhooksLogo.vue.49b66d69.js} +2 -2
  72. abstra_statics/dist/assets/{PlayerConfigProvider.171bf305.js → PlayerConfigProvider.ead35c7b.js} +2 -2
  73. abstra_statics/dist/assets/{PlayerNavbar.526fab6f.js → PlayerNavbar.523eb145.js} +2 -2
  74. abstra_statics/dist/assets/{Project.0d5075ee.js → Project.d667be48.js} +2 -2
  75. abstra_statics/dist/assets/{ProjectLogin.3aab045f.js → ProjectLogin.ed25cb39.js} +2 -2
  76. abstra_statics/dist/assets/{ProjectSettings.42270d9c.js → ProjectSettings.78ebb6ae.js} +2 -2
  77. abstra_statics/dist/assets/{ProjectsView.069081b7.js → ProjectsView.0a9b802f.js} +2 -2
  78. abstra_statics/dist/assets/{SaveButton.b04687f7.js → SaveButton.7c95c711.js} +2 -2
  79. abstra_statics/dist/assets/{Sidebar.1e7f6307.js → Sidebar.88ff0297.js} +2 -2
  80. abstra_statics/dist/assets/{Sql.b1300e7e.js → Sql.cbcb65af.js} +5 -5
  81. abstra_statics/dist/assets/Steps.4c7bc2b0.js +2 -0
  82. abstra_statics/dist/assets/{TableEditor.ab91c3a5.js → TableEditor.8166dbd3.js} +2 -2
  83. abstra_statics/dist/assets/Tables.0da330b6.js +2 -0
  84. abstra_statics/dist/assets/{TablesDiagram.219dafea.js → TablesDiagram.67a07e98.js} +2 -2
  85. abstra_statics/dist/assets/TablesTabs.vue_vue_type_script_setup_true_lang.2d88acf3.js +2 -0
  86. abstra_statics/dist/assets/{Tasks.ec374896.js → Tasks.d7e74b8f.js} +2 -2
  87. abstra_statics/dist/assets/{UploadOutlined.0febb328.js → UploadOutlined.6515c426.js} +2 -2
  88. abstra_statics/dist/assets/{View.fb46eda6.js → View.2cf966b9.js} +2 -2
  89. abstra_statics/dist/assets/{View.vue_vue_type_script_setup_true_lang.70fb2375.js → View.vue_vue_type_script_setup_true_lang.17304c45.js} +2 -2
  90. abstra_statics/dist/assets/{Watermark.2c100fb0.js → Watermark.4b6da85c.js} +2 -2
  91. abstra_statics/dist/assets/{WebEditor.3fbca28c.js → WebEditor.969d0862.js} +2 -2
  92. abstra_statics/dist/assets/{WidgetPreview.fe9eac30.js → WidgetPreview.6cc6a025.js} +2 -2
  93. abstra_statics/dist/assets/{ant-design.a7203613.js → ant-design.771baa34.js} +2 -2
  94. abstra_statics/dist/assets/apiKey.8e591cfc.js +2 -0
  95. abstra_statics/dist/assets/asyncComputed.0f036eae.js +2 -0
  96. abstra_statics/dist/assets/{build.3d214204.js → build.c819a477.js} +2 -2
  97. abstra_statics/dist/assets/colorHelpers.c4e8851c.js +2 -0
  98. abstra_statics/dist/assets/{console.6be03675.js → console.072f10aa.js} +2 -2
  99. abstra_statics/dist/assets/constants.6f822a9d.js +2 -0
  100. abstra_statics/dist/assets/{cssMode.0190ddfd.js → cssMode.b24669f0.js} +2 -2
  101. abstra_statics/dist/assets/datetime.7d5f4744.js +2 -0
  102. abstra_statics/dist/assets/dayjs.19defe89.js +2 -0
  103. abstra_statics/dist/assets/editor.6fa2da52.js +2 -0
  104. abstra_statics/dist/assets/editor.main.91c25311.js +2 -0
  105. abstra_statics/dist/assets/fetch.41281c28.js +2 -0
  106. abstra_statics/dist/assets/{files.2e1c6b7d.js → files.ff551888.js} +2 -2
  107. abstra_statics/dist/assets/folder.92a70293.js +2 -0
  108. abstra_statics/dist/assets/{freemarker2.7b845050.js → freemarker2.c3563cfb.js} +2 -2
  109. abstra_statics/dist/assets/{handlebars.b2522067.js → handlebars.bedd8360.js} +2 -2
  110. abstra_statics/dist/assets/{html.72be183a.js → html.3cfc37f8.js} +3 -3
  111. abstra_statics/dist/assets/{htmlMode.907f3161.js → htmlMode.f9c29f9d.js} +2 -2
  112. abstra_statics/dist/assets/{index.85d1a54f.js → index.138ad220.js} +2 -2
  113. abstra_statics/dist/assets/{index.18f988e9.js → index.26a34a52.js} +2 -2
  114. abstra_statics/dist/assets/{index.887b9cea.js → index.5429e60c.js} +2 -2
  115. abstra_statics/dist/assets/{index.6b334162.js → index.9028af84.js} +2 -2
  116. abstra_statics/dist/assets/index.a9e83a57.js +2 -0
  117. abstra_statics/dist/assets/{index.644cef68.js → index.b69b3146.js} +2 -2
  118. abstra_statics/dist/assets/index.dccc1696.js +2 -0
  119. abstra_statics/dist/assets/{index.00bda673.js → index.dfc9f500.js} +2 -2
  120. abstra_statics/dist/assets/{index.3369e1c3.js → index.e6b397aa.js} +3 -3
  121. abstra_statics/dist/assets/{index.c85af12a.js → index.e7bc0e19.js} +2 -2
  122. abstra_statics/dist/assets/{javascript.13ddefba.js → javascript.a4a24e63.js} +3 -3
  123. abstra_statics/dist/assets/{jsonMode.cccb83b3.js → jsonMode.4df0cb48.js} +2 -2
  124. abstra_statics/dist/assets/{jwt-decode.esm.611ae497.js → jwt-decode.esm.b204fb7d.js} +7 -7
  125. abstra_statics/dist/assets/{linters.46cf69bd.js → linters.5b679742.js} +2 -2
  126. abstra_statics/dist/assets/{liquid.91546d57.js → liquid.6539d262.js} +3 -3
  127. abstra_statics/dist/assets/{member.0b1d7ee4.js → member.c5283d66.js} +2 -2
  128. abstra_statics/dist/assets/{metadata.72772346.js → metadata.e6e36ac2.js} +2 -2
  129. abstra_statics/dist/assets/{omniChatStore.9863f4c9.js → omniChatStore.0470e5b1.js} +2 -2
  130. abstra_statics/dist/assets/{organization.b7e48cf9.js → organization.04cff158.js} +2 -2
  131. abstra_statics/dist/assets/player.c715ca22.js +2 -0
  132. abstra_statics/dist/assets/{plotly.min.9d629259.js → plotly.min.e185d882.js} +2 -2
  133. abstra_statics/dist/assets/polling.5f85e241.js +2 -0
  134. abstra_statics/dist/assets/{project.f311bb5d.js → project.c198d794.js} +2 -2
  135. abstra_statics/dist/assets/{python.11017bf1.js → python.5c45007e.js} +3 -3
  136. abstra_statics/dist/assets/{razor.a34acd16.js → razor.dbd79c37.js} +2 -2
  137. abstra_statics/dist/assets/{record.88233bcd.js → record.316e025a.js} +2 -2
  138. abstra_statics/dist/assets/redirect.d1904049.js +2 -0
  139. abstra_statics/dist/assets/{repository.7471bf9f.js → repository.ae6e826f.js} +2 -2
  140. abstra_statics/dist/assets/{repository.4376f3d5.js → repository.babdc912.js} +2 -2
  141. abstra_statics/dist/assets/{router.1f8c25cb.js → router.29d47df0.js} +3 -3
  142. abstra_statics/dist/assets/string.4a80abd5.js +2 -0
  143. abstra_statics/dist/assets/{tables.5944415f.js → tables.e80a0328.js} +2 -2
  144. abstra_statics/dist/assets/{tasksController.96c29436.js → tasksController.307be8dc.js} +3 -3
  145. abstra_statics/dist/assets/{toggleHighContrast.b35b098c.js → toggleHighContrast.4184537f.js} +7 -7
  146. abstra_statics/dist/assets/{tsMode.e6cc8920.js → tsMode.12c94eed.js} +2 -2
  147. abstra_statics/dist/assets/{typescript.74643ff2.js → typescript.e087b68e.js} +3 -3
  148. abstra_statics/dist/assets/url.371275cf.js +2 -0
  149. abstra_statics/dist/assets/userStore.26658284.js +2 -0
  150. abstra_statics/dist/assets/uuid.ffd92735.js +2 -0
  151. abstra_statics/dist/assets/{vue-flow-background.d870ecf6.js → vue-flow-background.402b0a32.js} +2 -2
  152. abstra_statics/dist/assets/{vue-quill.esm-bundler.b5c1d4e1.js → vue-quill.esm-bundler.10d49c97.js} +2 -2
  153. abstra_statics/dist/assets/workspaceStore.9caf566c.js +2 -0
  154. abstra_statics/dist/assets/{xml.ff273c0a.js → xml.c4ef7130.js} +3 -3
  155. abstra_statics/dist/assets/{yaml.7fe41d58.js → yaml.5eb27541.js} +3 -3
  156. abstra_statics/dist/console.html +15 -15
  157. abstra_statics/dist/editor.html +11 -11
  158. abstra_statics/dist/player.html +9 -9
  159. abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.b5d6685a.js +0 -2
  160. abstra_statics/dist/assets/App.9dd0b77a.js +0 -2
  161. abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.3921dda6.js +0 -2
  162. abstra_statics/dist/assets/CloseCircleOutlined.b631df3b.js +0 -2
  163. abstra_statics/dist/assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.e31ada03.js +0 -2
  164. abstra_statics/dist/assets/ContentLayout.3aa966dd.js +0 -2
  165. abstra_statics/dist/assets/DocsButton.vue_vue_type_script_setup_true_lang.78b2e715.js +0 -2
  166. abstra_statics/dist/assets/EnvVars.499ec26c.js +0 -2
  167. abstra_statics/dist/assets/Error.cb93e0e7.js +0 -2
  168. abstra_statics/dist/assets/ExclamationCircleOutlined.55a99fcd.js +0 -2
  169. abstra_statics/dist/assets/Form.6ad486f6.js +0 -2
  170. abstra_statics/dist/assets/Home.23434c66.js +0 -2
  171. abstra_statics/dist/assets/Home.8703c037.js +0 -2
  172. abstra_statics/dist/assets/LoadingContainer.5d37f646.js +0 -2
  173. abstra_statics/dist/assets/LoadingOutlined.9851c13d.js +0 -2
  174. abstra_statics/dist/assets/Login.d7667a41.js +0 -2
  175. abstra_statics/dist/assets/Logo.e83946ea.js +0 -2
  176. abstra_statics/dist/assets/Main.9732085e.js +0 -2
  177. abstra_statics/dist/assets/Navbar.2a821b28.js +0 -2
  178. abstra_statics/dist/assets/OidcLoginCallback.488ca2a1.js +0 -2
  179. abstra_statics/dist/assets/Organizations.4a51e135.js +0 -2
  180. abstra_statics/dist/assets/PhCopySimple.vue.ae2a0dda.js +0 -2
  181. abstra_statics/dist/assets/Steps.aa7e59b1.js +0 -2
  182. abstra_statics/dist/assets/Tables.bcc29e4f.js +0 -2
  183. abstra_statics/dist/assets/TablesTabs.vue_vue_type_script_setup_true_lang.09e41362.js +0 -2
  184. abstra_statics/dist/assets/apiKey.36511602.js +0 -2
  185. abstra_statics/dist/assets/asyncComputed.97ac15a2.js +0 -2
  186. abstra_statics/dist/assets/colorHelpers.729d7a40.js +0 -2
  187. abstra_statics/dist/assets/constants.60843cd3.js +0 -2
  188. abstra_statics/dist/assets/datetime.39f65a27.js +0 -2
  189. abstra_statics/dist/assets/dayjs.3a6ced6e.js +0 -2
  190. abstra_statics/dist/assets/editor.771a972f.js +0 -2
  191. abstra_statics/dist/assets/editor.main.aa5842e8.js +0 -2
  192. abstra_statics/dist/assets/fetch.bc00bb7a.js +0 -2
  193. abstra_statics/dist/assets/folder.10930186.js +0 -2
  194. abstra_statics/dist/assets/index.4f928bfe.js +0 -2
  195. abstra_statics/dist/assets/index.c36bb044.js +0 -2
  196. abstra_statics/dist/assets/player.63b74a06.js +0 -2
  197. abstra_statics/dist/assets/polling.06d43d12.js +0 -2
  198. abstra_statics/dist/assets/redirect.5f56a6ae.js +0 -2
  199. abstra_statics/dist/assets/string.12f8032a.js +0 -2
  200. abstra_statics/dist/assets/url.b17313e6.js +0 -2
  201. abstra_statics/dist/assets/userStore.2632fa83.js +0 -2
  202. abstra_statics/dist/assets/uuid.8943c176.js +0 -2
  203. abstra_statics/dist/assets/workspaceStore.5c88cf6a.js +0 -2
  204. {abstra-3.23.2.dist-info → abstra-3.23.3.dist-info}/WHEEL +0 -0
  205. {abstra-3.23.2.dist-info → abstra-3.23.3.dist-info}/entry_points.txt +0 -0
  206. {abstra-3.23.2.dist-info → abstra-3.23.3.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,2 @@
1
+ import{i as h}from"./metadata.e6e36ac2.js";import{W as k}from"./Watermark.4b6da85c.js";import{F as b}from"./PhArrowSquareOut.vue.0d20b8e9.js";import{d as v,e5 as w,c as x,r as C,u as e,a5 as u,f as d,b as r,h as D,o as a,a as n,g as m,T as y,aR as I,ec as z,de as _,ef as T,ed as F,ea as B,_ as H}from"./jwt-decode.esm.b204fb7d.js";import{u as L}from"./workspaceStore.9caf566c.js";import"./index.dccc1696.js";import{L as N}from"./LoadingOutlined.11688830.js";import{C as S}from"./Card.774e5d67.js";import"./PhUserList.vue.6d0e7bc8.js";import"./PhWebhooksLogo.vue.49b66d69.js";import"./index.dfc9f500.js";import"./constants.6f822a9d.js";import"./userStore.26658284.js";import"./url.371275cf.js";import"./colorHelpers.c4e8851c.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new Error().stack;i&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[i]="ec042fcf-5255-44e9-857b-1af4dbfcf0b8",o._sentryDebugIdIdentifier="sentry-dbid-ec042fcf-5255-44e9-857b-1af4dbfcf0b8")}catch{}})();const V={key:0,class:"home-container"},W=v({__name:"Home",setup(o){const i=w(),l=L(),f=x(()=>{var s;return((s=l.state.workspace)==null?void 0:s.sidebar.filter(p=>p.id!=="home"))||[]}),c=C(null),g=async(s,p)=>{c.value=p,await i.push({path:`/${s}`}),c.value=null};return(s,p)=>e(l).state.workspace?(a(),u("div",V,[d(e(_),{vertical:"",gap:"large",class:"cards-container"},{default:r(()=>[f.value.length===0?(a(),n(e(y),{key:0,type:"secondary",style:{"font-size":"18px"}},{default:r(()=>[m(" There are no forms available for you. ")]),_:1})):(a(!0),u(I,{key:1},z(f.value,t=>(a(),n(e(S),{key:t.id,class:B(["form-card",{loading:c.value===t.id}]),"body-style":{cursor:"pointer"},onClick:E=>g(t.path,t.id)},{default:r(()=>[d(e(_),{gap:"large",align:"center",justify:"space-between"},{default:r(()=>[(a(),n(T(e(h)(t.type)),{style:{"flex-shrink":"0",width:"22px",height:"18px"}})),d(e(y),{style:{"font-size":"18px","font-weight":"500"}},{default:r(()=>[m(F(t.name),1)]),_:2},1024),c.value!==t.id?(a(),n(e(b),{key:0,size:"20"})):(a(),n(e(N),{key:1,style:{"font-size":"20px"}}))]),_:2},1024)]),_:2},1032,["class","onClick"]))),128))]),_:1}),d(k,{class:"watermark","page-id":"home",locale:e(l).state.workspace.language},null,8,["locale"])])):D("",!0)}});const Z=H(W,[["__scopeId","data-v-060376d1"]]);export{Z as default};
2
+ //# sourceMappingURL=Home.5ce6aade.js.map
@@ -1,2 +1,2 @@
1
- var ee=Object.defineProperty;var te=(d,s,o)=>s in d?ee(d,s,{enumerable:!0,configurable:!0,writable:!0,value:o}):d[s]=o;var q=(d,s,o)=>(te(d,typeof s!="symbol"?s+"":s,o),o);import{C as ae}from"./CrudView.78833c51.js";import{a as H}from"./asyncComputed.97ac15a2.js";import{A as G}from"./constants.60843cd3.js";import{d as F,am as B,c as C,o as p,a5 as m,a7 as se,h as J,e6 as le,e as w,k as oe,aq as ie,u as e,aR as re,ec as ne,a as A,b as a,f as l,g as i,ed as I,d9 as y,cN as de,S as ce,_ as K,eb as ue,bR as T,de as $,da as D,d8 as z,d4 as pe,A as E,ew as ge,ex as fe,cH as me,ev as he,f0 as ye}from"./jwt-decode.esm.611ae497.js";import{h as N,l as O,r as W}from"./router.1f8c25cb.js";import{a as _e,B as be}from"./build.3d214204.js";import{a as ve}from"./organization.b7e48cf9.js";import{a as we}from"./project.f311bb5d.js";import"./tables.5944415f.js";import{g as ke}from"./datetime.39f65a27.js";import{u as Le}from"./polling.06d43d12.js";import{_ as Se,R as Ae}from"./repository.7471bf9f.js";import{G as Ce}from"./PhArrowCounterClockwise.vue.412b5e18.js";import{F as Ie}from"./PhArrowSquareOut.vue.f8745aca.js";import{G as Y}from"./PhChats.vue.d6b59014.js";import{I as Me}from"./PhCopySimple.vue.ae2a0dda.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.78b2e715.js";import"./url.b17313e6.js";import"./PhDotsThreeVertical.vue.f70cea78.js";import"./index.c85af12a.js";import"./index.18f988e9.js";import"./record.88233bcd.js";import"./string.12f8032a.js";import"./LoadingOutlined.9851c13d.js";(function(){try{var d=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(d._sentryDebugIds=d._sentryDebugIds||{},d._sentryDebugIds[s]="60e226bb-4808-43f9-9122-be460fb0f33f",d._sentryDebugIdIdentifier="sentry-dbid-60e226bb-4808-43f9-9122-be460fb0f33f")}catch{}})();const Ze=["width","height","fill","transform"],xe={key:0},je=w("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),$e=[je],De={key:1},Re=w("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),Ve=w("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),Be=[Re,Ve],Te={key:2},ze=w("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),Ee=[ze],Ne={key:3},Pe=w("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),He=[Pe],Fe={key:4},Ue=w("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),qe=[Ue],Ge={key:5},Oe=w("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),We=[Oe],Ye={name:"PhRocketLaunch"},Je=F({...Ye,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(d){const s=d,o=B("weight","regular"),L=B("size","1em"),S=B("color","currentColor"),M=B("mirrored",!1),h=C(()=>{var g;return(g=s.weight)!=null?g:o}),f=C(()=>{var g;return(g=s.size)!=null?g:L}),Z=C(()=>{var g;return(g=s.color)!=null?g:S}),x=C(()=>s.mirrored!==void 0?s.mirrored?"scale(-1, 1)":void 0:M?"scale(-1, 1)":void 0);return(g,_)=>(p(),m("svg",le({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:f.value,height:f.value,fill:Z.value,transform:x.value},g.$attrs),[se(g.$slots,"default"),h.value==="bold"?(p(),m("g",xe,$e)):h.value==="duotone"?(p(),m("g",De,Be)):h.value==="fill"?(p(),m("g",Te,Ee)):h.value==="light"?(p(),m("g",Ne,He)):h.value==="regular"?(p(),m("g",Fe,qe)):h.value==="thin"?(p(),m("g",Ge,We)):J("",!0)],16,Ze))}}),Ke={key:0,class:"flex-row"},Qe={key:1,class:"flex-row"},Xe={key:2,class:"flex-row"},e1=F({__name:"ExecutionsShort",props:{stageId:{},projectId:{}},emits:["select"],setup(d,{emit:s}){const o=d,L=new Ae,{result:S,refetch:M,loading:h}=H(async()=>{const{executions:_}=await L.list({projectId:o.projectId,stageId:o.stageId,limit:6});return _}),f=_=>{s("select",_)},Z=_=>ke(_,{weekday:void 0}),{startPolling:x,endPolling:g}=Le({task:M,interval:15e3});return oe(()=>x()),ie(()=>g()),(_,j)=>e(S)?(p(),m("div",Ke,[(p(!0),m(re,null,ne(e(S),b=>(p(),A(e(de),{key:b.id,title:Z(b.createdAt),onClick:U=>f(b)},{content:a(()=>[l(e(y),null,{default:a(()=>[i("Status: "+I(b.status),1)]),_:2},1024),l(e(y),null,{default:a(()=>[i("Duration: "+I(b.duration_seconds),1)]),_:2},1024),l(e(y),null,{default:a(()=>[i("Version: "+I(b.buildId.slice(0,6)),1)]),_:2},1024)]),default:a(()=>[l(Se,{status:b.status},null,8,["status"])]),_:2},1032,["title","onClick"]))),128))])):e(h)?(p(),m("div",Qe,[l(e(ce))])):(p(),m("div",Xe,"None"))}});const t1=K(e1,[["__scopeId","data-v-2d6f668a"]]);class a1{async list(s){return N.get(`projects/${s}/disabled-stages`)}async disableStage({projectId:s,stageId:o}){return N.patch(`projects/${s}/disabled-stages/${o}`,{enable:!1})}async enableStage({projectId:s,stageId:o}){return N.patch(`projects/${s}/disabled-stages/${o}`,{enable:!0})}}const P=new a1;class R{constructor(s){q(this,"id");this.dto=s,this.id=s}static async list(s){return(await P.list(s)).map(L=>new R(L))}static async disableStage({projectId:s,stageId:o}){return P.disableStage({projectId:s,stageId:o})}static async enableStage({projectId:s,stageId:o}){return P.enableStage({projectId:s,stageId:o})}}const s1=d=>(ge("data-v-4df7cd61"),d=d(),fe(),d),l1={style:{"max-width":"250px",overflow:"hidden","text-overflow":"ellipsis ellipsis","white-space":"nowrap"}},o1={key:1},i1=s1(()=>w("br",null,null,-1)),r1=F({__name:"Live",setup(d){const o=ue().params.projectId,L=()=>{var r;const t=(r=f.value)==null?void 0:r.project.getUrl();t&&window.open(t,"_blank")},S=C(()=>{var t;return(t=f==null?void 0:f.value)==null?void 0:t.organization.featureFlags.WEB_EDITOR}),M=t=>{W.push({name:"logs",params:{projectId:o},query:{stageId:t.stageId,executionId:t.id}})},{loading:h,result:f}=H(async()=>{const[t,r]=await Promise.all([we.get(o),_e.list(o)]),u=r.find(c=>c.latest),[n,v]=await Promise.all([u&&be.get(u.id),ve.get(t.organizationId)]);return{buildSpec:n,project:t,organization:v}}),Z=t=>{var n;if(!("path"in t)||!t.path)return;const r=t.type==="form"?`/${t.path}`:`/_hooks/${t.path}`,u=(n=f.value)==null?void 0:n.project.getUrl(r);!u||(navigator.clipboard.writeText(u),me.success("Copied URL to clipboard"))},x=t=>t.type=="form"?`/${t.path}`:t.type=="hook"?`/_hooks/${t.path}`:t.type=="job"?`${t.schedule}`:"",{result:g,refetch:_}=H(async()=>(await R.list(o)).filter(r=>r)),j=t=>{var r;return(r=g.value)==null?void 0:r.map(u=>u.id).includes(t.id)},b=async t=>{j(t)?await R.enableStage({projectId:o,stageId:t.id}):await R.disableStage({projectId:o,stageId:t.id}),await _()},U=(t,r)=>{const[u,n,v]=t.split(".").map(Number),[c,k,V]=r.split(".").map(Number);return u>c?!0:u<c?!1:n>k?!0:n<k?!1:v>=V},Q=t=>{var k,V;const r=j(t),u=r?he:ye,n=r?"Enable stage":"Disable stage",v="3.18.0",c=!U(((V=(k=f.value)==null?void 0:k.buildSpec)==null?void 0:V.abstraVersion)||"0.0.0",v);return{icon:u,label:n,onClick:()=>c?void 0:b(t),disabled:c,popoverMessage:c?`The Disable Stages feature is supported from version ${v} onward. Make sure to deploy your app in the latest version to use this feature.`:""}},X=C(()=>{var u;const t=[{title:"Type",align:"left"},{title:"Title",align:"left"},{title:"Trigger",align:"left"},{title:"Last Runs"},{title:"",align:"right"}],r=(u=f.value)==null?void 0:u.buildSpec;return r?{columns:t,rows:r.runtimes.map(n=>({key:n.id,cells:[{type:"tag",text:n.type==="script"?"Tasklet":n.type.charAt(0).toUpperCase()+n.type.slice(1),tagColor:"default"},{type:"slot",key:"title",payload:{runtime:n}},{type:"slot",key:"trigger",payload:{runtime:n}},{type:"slot",key:"last-runs",payload:{runtime:n}},{type:"actions",actions:[{icon:Ce,label:"View script logs",onClick:()=>W.push({name:"logs",params:{projectId:o},query:{stageId:n.id}})},{icon:Me,label:"Copy URL",onClick:()=>Z(n),hide:!["form","hook"].includes(n.type)},Q(n)]}]}))}:{columns:t,rows:[]}});return(t,r)=>{var u,n,v;return e(h)||((v=(n=(u=e(f))==null?void 0:u.buildSpec)==null?void 0:n.runtimes.length)!=null?v:0)>0?(p(),A(ae,{key:0,"empty-title":"","entity-name":"build",description:"Access and monitor your project's current scripts here.",table:X.value,loading:e(h),title:"Live View"},{description:a(()=>[l(e($),{gap:"middle",style:{"margin-top":"12px"}},{default:a(()=>[l(e(T),{onClick:L},{default:a(()=>[i(" Home"),l(e(Ie),{class:"icon",size:16})]),_:1})]),_:1})]),title:a(({payload:c})=>{var k;return[w("div",l1,[c.runtime.type!="form"?(p(),A(e(D),{key:0,disabled:j(c.runtime)},{default:a(()=>[i(I(c.runtime.title),1)]),_:2},1032,["disabled"])):c.runtime.type=="form"?(p(),A(e(z),{key:1,href:(k=e(f))==null?void 0:k.project.getUrl(c.runtime.path),target:"_blank",disabled:j(c.runtime)},{default:a(()=>[i(I(c.runtime.title),1)]),_:2},1032,["href","disabled"])):J("",!0)])]}),"last-runs":a(({payload:c})=>[l(t1,{"stage-id":c.runtime.id,"project-id":e(o),onSelect:M},null,8,["stage-id","project-id"])]),trigger:a(({payload:c})=>[l(e(pe),{color:"default",class:"ellipsis"},{default:a(()=>[i(I(x(c.runtime)),1)]),_:2},1024)]),_:1},8,["table","loading"])):(p(),m("section",o1,[l(e($),{gap:"middle",align:"center",justify:"center",vertical:!0,style:{height:"100%"}},{default:a(()=>[l(e(E),{style:{display:"flex","align-items":"center",gap:"5px"},level:2},{default:a(()=>[l(e(Je),{size:"42",color:"#d14056"}),i(" Waiting for your first deploy! ")]),_:1}),l(e(y),null,{default:a(()=>[i(" Your live stages will appear here once you make your first deploy ")]),_:1})]),_:1}),S.value?(p(),A(e($),{key:0,gap:"middle",align:"center",justify:"center",vertical:!0,style:{height:"100%"}},{default:a(()=>[l(e($),{vertical:"",gap:"small",align:"center",style:{width:"80%"}},{default:a(()=>[l(e(E),{level:5},{default:a(()=>[i(" Start with Abstra on your computer")]),_:1}),l(e(y),null,{default:a(()=>[i(" Install the editor using pip: "),l(e(D),{code:"",copyable:""},{default:a(()=>[i("pip install abstra")]),_:1})]),_:1}),l(e(y),null,{default:a(()=>[i(" Run the editor: "),l(e(D),{code:"",copyable:""},{default:a(()=>[i("abstra editor my-new-project")]),_:1})]),_:1})]),_:1}),l(e(y),null,{default:a(()=>[i(" Check out the documentation: "),l(e(z),{href:e(G).DOCS,target:"_blank"},{default:a(()=>[i("Abstra Docs")]),_:1},8,["href"])]),_:1}),l(e(y),null,{default:a(()=>[i(" Feeling lost? "),l(e(T),{target:"_blank",type:"default",size:"small",onClick:r[0]||(r[0]=()=>e(O).showNewMessage("I need help getting started with Abstra"))},{default:a(()=>[l(e(Y))]),_:1})]),_:1})]),_:1})):(p(),A(e($),{key:1,gap:"middle",align:"center",justify:"center",vertical:!0,style:{height:"100%"}},{default:a(()=>[l(e(E),{style:{display:"flex","align-items":"center",gap:"5px"},level:4},{default:a(()=>[i(" Set up your local environment ")]),_:1}),l(e(y),null,{default:a(()=>[i(" Install the editor using pip: "),l(e(D),{code:"",copyable:""},{default:a(()=>[i("pip install abstra")]),_:1}),i1,i(" Run the editor: "),l(e(D),{code:"",copyable:""},{default:a(()=>[i("abstra editor my-new-project")]),_:1})]),_:1}),l(e(y),null,{default:a(()=>[i(" Check out the documentation: "),l(e(z),{href:e(G).DOCS,target:"_blank"},{default:a(()=>[i("Abstra Docs")]),_:1},8,["href"])]),_:1}),l(e(y),null,{default:a(()=>[i(" Feeling lost? "),l(e(T),{target:"_blank",type:"default",size:"small",onClick:r[1]||(r[1]=()=>e(O).showNewMessage("I need help getting started with Abstra"))},{default:a(()=>[l(e(Y))]),_:1})]),_:1})]),_:1}))]))}}});const D1=K(r1,[["__scopeId","data-v-4df7cd61"]]);export{D1 as default};
2
- //# sourceMappingURL=Live.51f470f8.js.map
1
+ var ee=Object.defineProperty;var te=(d,s,o)=>s in d?ee(d,s,{enumerable:!0,configurable:!0,writable:!0,value:o}):d[s]=o;var q=(d,s,o)=>(te(d,typeof s!="symbol"?s+"":s,o),o);import{C as ae}from"./CrudView.7f2cbde4.js";import{a as H}from"./asyncComputed.0f036eae.js";import{A as G}from"./constants.6f822a9d.js";import{d as F,am as B,c as C,o as p,a5 as m,a7 as se,h as J,e6 as le,e as w,k as oe,aq as ie,u as e,aR as re,ec as ne,a as A,b as a,f as l,g as i,ed as I,d9 as y,cN as de,S as ce,_ as K,eb as ue,bR as T,de as $,da as D,d8 as z,d4 as pe,A as E,ew as ge,ex as fe,cH as me,ev as he,f0 as ye}from"./jwt-decode.esm.b204fb7d.js";import{h as N,l as O,r as W}from"./router.29d47df0.js";import{a as _e,B as be}from"./build.c819a477.js";import{a as ve}from"./organization.04cff158.js";import{a as we}from"./project.c198d794.js";import"./tables.e80a0328.js";import{g as ke}from"./datetime.7d5f4744.js";import{u as Le}from"./polling.5f85e241.js";import{_ as Se,R as Ae}from"./repository.ae6e826f.js";import{G as Ce}from"./PhArrowCounterClockwise.vue.d273955f.js";import{F as Ie}from"./PhArrowSquareOut.vue.0d20b8e9.js";import{G as Y}from"./PhChats.vue.3dd1c2d7.js";import{I as Me}from"./PhCopySimple.vue.ffc7ec94.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.0b26fb89.js";import"./url.371275cf.js";import"./PhDotsThreeVertical.vue.89b627bd.js";import"./index.e7bc0e19.js";import"./index.26a34a52.js";import"./record.316e025a.js";import"./string.4a80abd5.js";import"./LoadingOutlined.11688830.js";(function(){try{var d=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(d._sentryDebugIds=d._sentryDebugIds||{},d._sentryDebugIds[s]="2e5cdcce-502d-40ca-8d83-b154b142ec36",d._sentryDebugIdIdentifier="sentry-dbid-2e5cdcce-502d-40ca-8d83-b154b142ec36")}catch{}})();const Ze=["width","height","fill","transform"],xe={key:0},je=w("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),$e=[je],De={key:1},Re=w("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),Ve=w("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),Be=[Re,Ve],Te={key:2},ze=w("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),Ee=[ze],Ne={key:3},Pe=w("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),He=[Pe],Fe={key:4},Ue=w("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),qe=[Ue],Ge={key:5},Oe=w("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),We=[Oe],Ye={name:"PhRocketLaunch"},Je=F({...Ye,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(d){const s=d,o=B("weight","regular"),L=B("size","1em"),S=B("color","currentColor"),M=B("mirrored",!1),h=C(()=>{var g;return(g=s.weight)!=null?g:o}),f=C(()=>{var g;return(g=s.size)!=null?g:L}),Z=C(()=>{var g;return(g=s.color)!=null?g:S}),x=C(()=>s.mirrored!==void 0?s.mirrored?"scale(-1, 1)":void 0:M?"scale(-1, 1)":void 0);return(g,_)=>(p(),m("svg",le({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:f.value,height:f.value,fill:Z.value,transform:x.value},g.$attrs),[se(g.$slots,"default"),h.value==="bold"?(p(),m("g",xe,$e)):h.value==="duotone"?(p(),m("g",De,Be)):h.value==="fill"?(p(),m("g",Te,Ee)):h.value==="light"?(p(),m("g",Ne,He)):h.value==="regular"?(p(),m("g",Fe,qe)):h.value==="thin"?(p(),m("g",Ge,We)):J("",!0)],16,Ze))}}),Ke={key:0,class:"flex-row"},Qe={key:1,class:"flex-row"},Xe={key:2,class:"flex-row"},e1=F({__name:"ExecutionsShort",props:{stageId:{},projectId:{}},emits:["select"],setup(d,{emit:s}){const o=d,L=new Ae,{result:S,refetch:M,loading:h}=H(async()=>{const{executions:_}=await L.list({projectId:o.projectId,stageId:o.stageId,limit:6});return _}),f=_=>{s("select",_)},Z=_=>ke(_,{weekday:void 0}),{startPolling:x,endPolling:g}=Le({task:M,interval:15e3});return oe(()=>x()),ie(()=>g()),(_,j)=>e(S)?(p(),m("div",Ke,[(p(!0),m(re,null,ne(e(S),b=>(p(),A(e(de),{key:b.id,title:Z(b.createdAt),onClick:U=>f(b)},{content:a(()=>[l(e(y),null,{default:a(()=>[i("Status: "+I(b.status),1)]),_:2},1024),l(e(y),null,{default:a(()=>[i("Duration: "+I(b.duration_seconds),1)]),_:2},1024),l(e(y),null,{default:a(()=>[i("Version: "+I(b.buildId.slice(0,6)),1)]),_:2},1024)]),default:a(()=>[l(Se,{status:b.status},null,8,["status"])]),_:2},1032,["title","onClick"]))),128))])):e(h)?(p(),m("div",Qe,[l(e(ce))])):(p(),m("div",Xe,"None"))}});const t1=K(e1,[["__scopeId","data-v-2d6f668a"]]);class a1{async list(s){return N.get(`projects/${s}/disabled-stages`)}async disableStage({projectId:s,stageId:o}){return N.patch(`projects/${s}/disabled-stages/${o}`,{enable:!1})}async enableStage({projectId:s,stageId:o}){return N.patch(`projects/${s}/disabled-stages/${o}`,{enable:!0})}}const P=new a1;class R{constructor(s){q(this,"id");this.dto=s,this.id=s}static async list(s){return(await P.list(s)).map(L=>new R(L))}static async disableStage({projectId:s,stageId:o}){return P.disableStage({projectId:s,stageId:o})}static async enableStage({projectId:s,stageId:o}){return P.enableStage({projectId:s,stageId:o})}}const s1=d=>(ge("data-v-4df7cd61"),d=d(),fe(),d),l1={style:{"max-width":"250px",overflow:"hidden","text-overflow":"ellipsis ellipsis","white-space":"nowrap"}},o1={key:1},i1=s1(()=>w("br",null,null,-1)),r1=F({__name:"Live",setup(d){const o=ue().params.projectId,L=()=>{var r;const t=(r=f.value)==null?void 0:r.project.getUrl();t&&window.open(t,"_blank")},S=C(()=>{var t;return(t=f==null?void 0:f.value)==null?void 0:t.organization.featureFlags.WEB_EDITOR}),M=t=>{W.push({name:"logs",params:{projectId:o},query:{stageId:t.stageId,executionId:t.id}})},{loading:h,result:f}=H(async()=>{const[t,r]=await Promise.all([we.get(o),_e.list(o)]),u=r.find(c=>c.latest),[n,v]=await Promise.all([u&&be.get(u.id),ve.get(t.organizationId)]);return{buildSpec:n,project:t,organization:v}}),Z=t=>{var n;if(!("path"in t)||!t.path)return;const r=t.type==="form"?`/${t.path}`:`/_hooks/${t.path}`,u=(n=f.value)==null?void 0:n.project.getUrl(r);!u||(navigator.clipboard.writeText(u),me.success("Copied URL to clipboard"))},x=t=>t.type=="form"?`/${t.path}`:t.type=="hook"?`/_hooks/${t.path}`:t.type=="job"?`${t.schedule}`:"",{result:g,refetch:_}=H(async()=>(await R.list(o)).filter(r=>r)),j=t=>{var r;return(r=g.value)==null?void 0:r.map(u=>u.id).includes(t.id)},b=async t=>{j(t)?await R.enableStage({projectId:o,stageId:t.id}):await R.disableStage({projectId:o,stageId:t.id}),await _()},U=(t,r)=>{const[u,n,v]=t.split(".").map(Number),[c,k,V]=r.split(".").map(Number);return u>c?!0:u<c?!1:n>k?!0:n<k?!1:v>=V},Q=t=>{var k,V;const r=j(t),u=r?he:ye,n=r?"Enable stage":"Disable stage",v="3.18.0",c=!U(((V=(k=f.value)==null?void 0:k.buildSpec)==null?void 0:V.abstraVersion)||"0.0.0",v);return{icon:u,label:n,onClick:()=>c?void 0:b(t),disabled:c,popoverMessage:c?`The Disable Stages feature is supported from version ${v} onward. Make sure to deploy your app in the latest version to use this feature.`:""}},X=C(()=>{var u;const t=[{title:"Type",align:"left"},{title:"Title",align:"left"},{title:"Trigger",align:"left"},{title:"Last Runs"},{title:"",align:"right"}],r=(u=f.value)==null?void 0:u.buildSpec;return r?{columns:t,rows:r.runtimes.map(n=>({key:n.id,cells:[{type:"tag",text:n.type==="script"?"Tasklet":n.type.charAt(0).toUpperCase()+n.type.slice(1),tagColor:"default"},{type:"slot",key:"title",payload:{runtime:n}},{type:"slot",key:"trigger",payload:{runtime:n}},{type:"slot",key:"last-runs",payload:{runtime:n}},{type:"actions",actions:[{icon:Ce,label:"View script logs",onClick:()=>W.push({name:"logs",params:{projectId:o},query:{stageId:n.id}})},{icon:Me,label:"Copy URL",onClick:()=>Z(n),hide:!["form","hook"].includes(n.type)},Q(n)]}]}))}:{columns:t,rows:[]}});return(t,r)=>{var u,n,v;return e(h)||((v=(n=(u=e(f))==null?void 0:u.buildSpec)==null?void 0:n.runtimes.length)!=null?v:0)>0?(p(),A(ae,{key:0,"empty-title":"","entity-name":"build",description:"Access and monitor your project's current scripts here.",table:X.value,loading:e(h),title:"Live View"},{description:a(()=>[l(e($),{gap:"middle",style:{"margin-top":"12px"}},{default:a(()=>[l(e(T),{onClick:L},{default:a(()=>[i(" Home"),l(e(Ie),{class:"icon",size:16})]),_:1})]),_:1})]),title:a(({payload:c})=>{var k;return[w("div",l1,[c.runtime.type!="form"?(p(),A(e(D),{key:0,disabled:j(c.runtime)},{default:a(()=>[i(I(c.runtime.title),1)]),_:2},1032,["disabled"])):c.runtime.type=="form"?(p(),A(e(z),{key:1,href:(k=e(f))==null?void 0:k.project.getUrl(c.runtime.path),target:"_blank",disabled:j(c.runtime)},{default:a(()=>[i(I(c.runtime.title),1)]),_:2},1032,["href","disabled"])):J("",!0)])]}),"last-runs":a(({payload:c})=>[l(t1,{"stage-id":c.runtime.id,"project-id":e(o),onSelect:M},null,8,["stage-id","project-id"])]),trigger:a(({payload:c})=>[l(e(pe),{color:"default",class:"ellipsis"},{default:a(()=>[i(I(x(c.runtime)),1)]),_:2},1024)]),_:1},8,["table","loading"])):(p(),m("section",o1,[l(e($),{gap:"middle",align:"center",justify:"center",vertical:!0,style:{height:"100%"}},{default:a(()=>[l(e(E),{style:{display:"flex","align-items":"center",gap:"5px"},level:2},{default:a(()=>[l(e(Je),{size:"42",color:"#d14056"}),i(" Waiting for your first deploy! ")]),_:1}),l(e(y),null,{default:a(()=>[i(" Your live stages will appear here once you make your first deploy ")]),_:1})]),_:1}),S.value?(p(),A(e($),{key:0,gap:"middle",align:"center",justify:"center",vertical:!0,style:{height:"100%"}},{default:a(()=>[l(e($),{vertical:"",gap:"small",align:"center",style:{width:"80%"}},{default:a(()=>[l(e(E),{level:5},{default:a(()=>[i(" Start with Abstra on your computer")]),_:1}),l(e(y),null,{default:a(()=>[i(" Install the editor using pip: "),l(e(D),{code:"",copyable:""},{default:a(()=>[i("pip install abstra")]),_:1})]),_:1}),l(e(y),null,{default:a(()=>[i(" Run the editor: "),l(e(D),{code:"",copyable:""},{default:a(()=>[i("abstra editor my-new-project")]),_:1})]),_:1})]),_:1}),l(e(y),null,{default:a(()=>[i(" Check out the documentation: "),l(e(z),{href:e(G).DOCS,target:"_blank"},{default:a(()=>[i("Abstra Docs")]),_:1},8,["href"])]),_:1}),l(e(y),null,{default:a(()=>[i(" Feeling lost? "),l(e(T),{target:"_blank",type:"default",size:"small",onClick:r[0]||(r[0]=()=>e(O).showNewMessage("I need help getting started with Abstra"))},{default:a(()=>[l(e(Y))]),_:1})]),_:1})]),_:1})):(p(),A(e($),{key:1,gap:"middle",align:"center",justify:"center",vertical:!0,style:{height:"100%"}},{default:a(()=>[l(e(E),{style:{display:"flex","align-items":"center",gap:"5px"},level:4},{default:a(()=>[i(" Set up your local environment ")]),_:1}),l(e(y),null,{default:a(()=>[i(" Install the editor using pip: "),l(e(D),{code:"",copyable:""},{default:a(()=>[i("pip install abstra")]),_:1}),i1,i(" Run the editor: "),l(e(D),{code:"",copyable:""},{default:a(()=>[i("abstra editor my-new-project")]),_:1})]),_:1}),l(e(y),null,{default:a(()=>[i(" Check out the documentation: "),l(e(z),{href:e(G).DOCS,target:"_blank"},{default:a(()=>[i("Abstra Docs")]),_:1},8,["href"])]),_:1}),l(e(y),null,{default:a(()=>[i(" Feeling lost? "),l(e(T),{target:"_blank",type:"default",size:"small",onClick:r[1]||(r[1]=()=>e(O).showNewMessage("I need help getting started with Abstra"))},{default:a(()=>[l(e(Y))]),_:1})]),_:1})]),_:1}))]))}}});const D1=K(r1,[["__scopeId","data-v-4df7cd61"]]);export{D1 as default};
2
+ //# sourceMappingURL=Live.2bbd1666.js.map
@@ -0,0 +1,2 @@
1
+ import{d as t,o,a5 as a,f as s,u as _,S as r,_ as c}from"./jwt-decode.esm.b204fb7d.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]="e3edd165-c960-42ee-a351-6f1d37113e1d",e._sentryDebugIdIdentifier="sentry-dbid-e3edd165-c960-42ee-a351-6f1d37113e1d")}catch{}})();const i={class:"centered"},f=t({__name:"LoadingContainer",setup(e){return(n,d)=>(o(),a("div",i,[s(_(r))]))}});const u=c(f,[["__scopeId","data-v-52e6209a"]]);export{u as L};
2
+ //# sourceMappingURL=LoadingContainer.3ea9ec8d.js.map
@@ -0,0 +1,2 @@
1
+ import{f as o,e7 as u,eX as f}from"./jwt-decode.esm.b204fb7d.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]="f9017810-6e09-4830-a4db-4203e3400e4c",e._sentryDebugIdIdentifier="sentry-dbid-f9017810-6e09-4830-a4db-4203e3400e4c")}catch{}})();function d(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){l(e,i,n[i])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=function(t,n){var r=d({},t,n.attrs);return o(u,d({},r,{icon:f}),null)};a.displayName="LoadingOutlined";a.inheritAttrs=!1;const s=a;export{s as L};
2
+ //# sourceMappingURL=LoadingOutlined.11688830.js.map
@@ -1,2 +1,2 @@
1
- import{O as B,L as x}from"./CircularLoading.f56438b2.js";import{d as L,r as D,o as d,a5 as y,e as m,f as o,ed as l,u as a,eG as s,a as b,b as u,bJ as q,eF as N,cz as A,g,bR as h,cy as R,h as C,_ as P,e5 as V,eb as $,c as U,dt as z}from"./jwt-decode.esm.611ae497.js";import{j as I,T as F,k as S}from"./router.1f8c25cb.js";import{_ as G}from"./AbstraLogo.vue_vue_type_script_setup_true_lang.b5d6685a.js";import{i as K}from"./string.12f8032a.js";import{A as M}from"./index.3369e1c3.js";import"./index.18f988e9.js";import"./Logo.e83946ea.js";(function(){try{var c=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new Error().stack;i&&(c._sentryDebugIds=c._sentryDebugIds||{},c._sentryDebugIds[i]="e1045043-618a-4e17-b268-8cf7367e2ded",c._sentryDebugIdIdentifier="sentry-dbid-e1045043-618a-4e17-b268-8cf7367e2ded")}catch{}})();const O={class:"form"},j={class:"header"},J={class:"description"},H={class:"description"},Q={class:"footer"},W={key:2,class:"loading"},X=L({__name:"Passwordless",emits:["done"],setup(c,{emit:i}){const e=D({stage:"collect-info",info:{email:""},token:"",invalid:!1,secsToAllowResend:0});function v(){const n=e.value.info.email,t=K(n);return e.value.invalid=!t,t}let _;const r=async({isResend:n}={})=>{if(!!v()){e.value.stage="loading";try{await I.authenticate(e.value.info.email,n),e.value.stage="collect-token",e.value.secsToAllowResend=120,clearInterval(_),_=setInterval(()=>{e.value.secsToAllowResend-=1,e.value.secsToAllowResend<=0&&clearInterval(_)},1e3)}catch{e.value.invalid=!0,e.value.stage="collect-info"}}},f=n=>{if(!n){e.value.info.email="";return}e.value.info.email=n.toLowerCase()},p=async()=>{var n;if(!!((n=e.value.info)!=null&&n.email)){e.value.stage="loading";try{const t=await I.verify(e.value.info.email,e.value.token);if(!t)throw new Error("[Passwordless] Login did not return an user");F.trackSession(),i("done",t),e.value.stage="done"}catch{e.value.invalid=!0,e.value.stage="collect-token"}}},T=async n=>{await fetch(`https://admin.abstra.app/_hooks/notify-email-not-received?email=${n}`,{method:"GET"})},k=()=>{e.value.info&&(r({isResend:!0}),T(e.value.info.email))},E=()=>{e.value.stage="collect-info",e.value.info={email:""},e.value.token="",e.value.invalid=!1};return(n,t)=>(d(),y("div",O,[m("div",j,[o(G,{"hide-text":"",size:"large"}),m("h2",null,l(a(s).translate("i18n_auth_validate_your_email_login",null,{brandName:"Abstra"})),1)]),e.value.stage==="collect-info"?(d(),b(a(R),{key:0,class:"section"},{default:u(()=>[m("div",J,l(a(s).translate("i18n_auth_info_description")),1),o(a(A),{"has-feedback":"","validate-status":e.value.invalid?"error":"",help:e.value.invalid?a(s).translate("i18n_auth_info_invalid_email"):""},{default:u(()=>[o(a(q),{type:"email",value:e.value.info.email,placeholder:a(s).translate("i18n_auth_enter_your_work_email"),autofocus:"",onBlur:v,onKeyup:t[0]||(t[0]=N(()=>r(),["enter"])),onChange:t[1]||(t[1]=w=>f(w.target.value))},null,8,["value","placeholder"])]),_:1},8,["validate-status","help"]),o(a(h),{type:"primary",onClick:t[2]||(t[2]=()=>r())},{default:u(()=>[g(l(a(s).translate("i18n_auth_info_send_code")),1)]),_:1})]),_:1})):e.value.stage==="collect-token"?(d(),b(a(R),{key:1,class:"section"},{default:u(()=>[m("div",H,l(a(s).translate("i18n_auth_token_label",null,e.value.info)),1),o(a(A),{"has-feedback":"","validate-status":e.value.invalid?"error":""},{default:u(()=>[o(B,{value:e.value.token,"onUpdate:value":t[3]||(t[3]=w=>e.value.token=w),length:6,numeric:!0,size:"large",onCollectToken:p},null,8,["value"]),e.value.invalid?(d(),b(a(M),{key:0,message:a(s).translate("i18n_auth_token_invalid"),type:"error",style:{"margin-top":"24px"}},null,8,["message"])):C("",!0)]),_:1},8,["validate-status"]),o(a(h),{type:"primary",onClick:p},{default:u(()=>[g(l(a(s).translate("i18n_auth_token_verify_email")),1)]),_:1}),o(a(h),{onClick:E},{default:u(()=>[g(l(a(s).translate("i18n_auth_edit_email")),1)]),_:1}),o(a(h),{disabled:!!e.value.secsToAllowResend,onClick:k},{default:u(()=>[g(l(a(s).translate("i18n_auth_token_resend_email"))+" ("+l(e.value.secsToAllowResend)+" s) ",1)]),_:1},8,["disabled"]),m("div",Q,l(a(s).translate("i18n_auth_token_footer_alternative_email")),1)]),_:1})):e.value.stage==="loading"?(d(),y("div",W,[o(x)])):C("",!0)]))}});const Y=P(X,[["__scopeId","data-v-d18467d0"]]),Z={key:0,class:"login"},ee={key:1,class:"loading"},ae=L({__name:"Login",setup(c){const i=V(),e=$();async function v(){const r=e.query.redirect,f=e.query["prev-redirect"],{status:p}=await S.getInfo();if(p!=="active"){i.push({name:"onboarding",query:{redirect:r,"prev-redirect":f}});return}if(r){const k=new URL(r,window.location.origin).pathname;await i.push({path:k,query:{...e.query,redirect:f,"prev-redirect":void 0}});return}i.push({name:"home"})}const _=U(()=>!I.getAuthor());return z(()=>{_.value||v()}),(r,f)=>_.value?(d(),y("div",Z,[o(Y,{onDone:v})])):(d(),y("div",ee,[o(x)]))}});const de=P(ae,[["__scopeId","data-v-2abe81c3"]]);export{de as default};
2
- //# sourceMappingURL=Login.94f07e07.js.map
1
+ import{O as B,L as x}from"./CircularLoading.02fd7b7b.js";import{d as L,r as D,o as u,a5 as y,e as m,f as o,ed as l,u as a,eG as s,a as b,b as d,bJ as q,eF as N,cz as A,g,bR as h,cy as R,h as C,_ as P,e5 as V,eb as $,c as U,dt as z}from"./jwt-decode.esm.b204fb7d.js";import{j as I,T as F,k as S}from"./router.29d47df0.js";import{_ as G}from"./AbstraLogo.vue_vue_type_script_setup_true_lang.37e7ad5b.js";import{i as K}from"./string.4a80abd5.js";import{A as M}from"./index.e6b397aa.js";import"./index.26a34a52.js";import"./Logo.cc2d4a95.js";(function(){try{var c=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new Error().stack;i&&(c._sentryDebugIds=c._sentryDebugIds||{},c._sentryDebugIds[i]="3e77267d-864d-4151-b381-aed9d0e00b52",c._sentryDebugIdIdentifier="sentry-dbid-3e77267d-864d-4151-b381-aed9d0e00b52")}catch{}})();const O={class:"form"},j={class:"header"},J={class:"description"},H={class:"description"},Q={class:"footer"},W={key:2,class:"loading"},X=L({__name:"Passwordless",emits:["done"],setup(c,{emit:i}){const e=D({stage:"collect-info",info:{email:""},token:"",invalid:!1,secsToAllowResend:0});function v(){const n=e.value.info.email,t=K(n);return e.value.invalid=!t,t}let _;const r=async({isResend:n}={})=>{if(!!v()){e.value.stage="loading";try{await I.authenticate(e.value.info.email,n),e.value.stage="collect-token",e.value.secsToAllowResend=120,clearInterval(_),_=setInterval(()=>{e.value.secsToAllowResend-=1,e.value.secsToAllowResend<=0&&clearInterval(_)},1e3)}catch{e.value.invalid=!0,e.value.stage="collect-info"}}},f=n=>{if(!n){e.value.info.email="";return}e.value.info.email=n.toLowerCase()},p=async()=>{var n;if(!!((n=e.value.info)!=null&&n.email)){e.value.stage="loading";try{const t=await I.verify(e.value.info.email,e.value.token);if(!t)throw new Error("[Passwordless] Login did not return an user");F.trackSession(),i("done",t),e.value.stage="done"}catch{e.value.invalid=!0,e.value.stage="collect-token"}}},T=async n=>{await fetch(`https://admin.abstra.app/_hooks/notify-email-not-received?email=${n}`,{method:"GET"})},k=()=>{e.value.info&&(r({isResend:!0}),T(e.value.info.email))},E=()=>{e.value.stage="collect-info",e.value.info={email:""},e.value.token="",e.value.invalid=!1};return(n,t)=>(u(),y("div",O,[m("div",j,[o(G,{"hide-text":"",size:"large"}),m("h2",null,l(a(s).translate("i18n_auth_validate_your_email_login",null,{brandName:"Abstra"})),1)]),e.value.stage==="collect-info"?(u(),b(a(R),{key:0,class:"section"},{default:d(()=>[m("div",J,l(a(s).translate("i18n_auth_info_description")),1),o(a(A),{"has-feedback":"","validate-status":e.value.invalid?"error":"",help:e.value.invalid?a(s).translate("i18n_auth_info_invalid_email"):""},{default:d(()=>[o(a(q),{type:"email",value:e.value.info.email,placeholder:a(s).translate("i18n_auth_enter_your_work_email"),autofocus:"",onBlur:v,onKeyup:t[0]||(t[0]=N(()=>r(),["enter"])),onChange:t[1]||(t[1]=w=>f(w.target.value))},null,8,["value","placeholder"])]),_:1},8,["validate-status","help"]),o(a(h),{type:"primary",onClick:t[2]||(t[2]=()=>r())},{default:d(()=>[g(l(a(s).translate("i18n_auth_info_send_code")),1)]),_:1})]),_:1})):e.value.stage==="collect-token"?(u(),b(a(R),{key:1,class:"section"},{default:d(()=>[m("div",H,l(a(s).translate("i18n_auth_token_label",null,e.value.info)),1),o(a(A),{"has-feedback":"","validate-status":e.value.invalid?"error":""},{default:d(()=>[o(B,{value:e.value.token,"onUpdate:value":t[3]||(t[3]=w=>e.value.token=w),length:6,numeric:!0,size:"large",onCollectToken:p},null,8,["value"]),e.value.invalid?(u(),b(a(M),{key:0,message:a(s).translate("i18n_auth_token_invalid"),type:"error",style:{"margin-top":"24px"}},null,8,["message"])):C("",!0)]),_:1},8,["validate-status"]),o(a(h),{type:"primary",onClick:p},{default:d(()=>[g(l(a(s).translate("i18n_auth_token_verify_email")),1)]),_:1}),o(a(h),{onClick:E},{default:d(()=>[g(l(a(s).translate("i18n_auth_edit_email")),1)]),_:1}),o(a(h),{disabled:!!e.value.secsToAllowResend,onClick:k},{default:d(()=>[g(l(a(s).translate("i18n_auth_token_resend_email"))+" ("+l(e.value.secsToAllowResend)+" s) ",1)]),_:1},8,["disabled"]),m("div",Q,l(a(s).translate("i18n_auth_token_footer_alternative_email")),1)]),_:1})):e.value.stage==="loading"?(u(),y("div",W,[o(x)])):C("",!0)]))}});const Y=P(X,[["__scopeId","data-v-d18467d0"]]),Z={key:0,class:"login"},ee={key:1,class:"loading"},ae=L({__name:"Login",setup(c){const i=V(),e=$();async function v(){const r=e.query.redirect,f=e.query["prev-redirect"],{status:p}=await S.getInfo();if(p!=="active"){i.push({name:"onboarding",query:{redirect:r,"prev-redirect":f}});return}if(r){const k=new URL(r,window.location.origin).pathname;await i.push({path:k,query:{...e.query,redirect:f,"prev-redirect":void 0}});return}i.push({name:"home"})}const _=U(()=>!I.getAuthor());return z(()=>{_.value||v()}),(r,f)=>_.value?(u(),y("div",Z,[o(Y,{onDone:v})])):(u(),y("div",ee,[o(x)]))}});const ue=P(ae,[["__scopeId","data-v-2abe81c3"]]);export{ue as default};
2
+ //# sourceMappingURL=Login.186f24a9.js.map
@@ -0,0 +1,2 @@
1
+ import{_ as l}from"./Login.vue_vue_type_script_setup_true_lang.fab46c0c.js";import{d as m,e5 as f,eb as b,a5 as g,f as y,u as a,o as w,_ as k}from"./jwt-decode.esm.b204fb7d.js";import{u as h}from"./workspaceStore.9caf566c.js";import"./index.dfc9f500.js";import"./CircularLoading.02fd7b7b.js";import"./Logo.cc2d4a95.js";import"./string.4a80abd5.js";import"./index.e6b397aa.js";import"./userStore.26658284.js";import"./url.371275cf.js";import"./colorHelpers.c4e8851c.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]="ffc84199-935d-4159-9ddb-c3b1be1ed2b5",e._sentryDebugIdIdentifier="sentry-dbid-ffc84199-935d-4159-9ddb-c3b1be1ed2b5")}catch{}})();const v={class:"runner"},I=m({__name:"Login",setup(e){const o=f(),t=b(),r=h(),_=async()=>{const{redirect:s,...n}=t.query;if(s){await o.push({path:s,query:n,params:t.params});return}o.push({name:"playerHome",query:n})};return(s,n)=>{var c,d,p,u,i;return w(),g("div",v,[y(l,{"logo-url":(d=(c=a(r).state.workspace)==null?void 0:c.logoUrl)!=null?d:void 0,"brand-name":(p=a(r).state.workspace)==null?void 0:p.brandName,locale:(i=(u=a(r).state.workspace)==null?void 0:u.language)!=null?i:"en",onDone:_},null,8,["logo-url","brand-name","locale"])])}}});const U=k(I,[["__scopeId","data-v-12c690e1"]]);export{U as default};
2
+ //# sourceMappingURL=Login.2a4c7e48.js.map
@@ -1,2 +1,2 @@
1
- import{d as L,am as A,c as k,o as t,a5 as _,a7 as z,h as b,e6 as O,e as s,k as U,f as r,b as c,u as l,g as h,d8 as F,ew as j,ex as G,_ as S,r as x,eG as u,a as g,ed as f,de as C,cy as H,bJ as J,eF as K,cz as P,bR as M}from"./jwt-decode.esm.611ae497.js";import{O as R,S as W,A as q}from"./index.00bda673.js";import{O as X,L as Q}from"./CircularLoading.f56438b2.js";import{L as Y}from"./Logo.e83946ea.js";import{i as ee}from"./string.12f8032a.js";import{A as N}from"./index.3369e1c3.js";import{u as ae}from"./userStore.2632fa83.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[n]="15d25b65-12f7-42df-9925-65d6564d0de4",o._sentryDebugIdIdentifier="sentry-dbid-15d25b65-12f7-42df-9925-65d6564d0de4")}catch{}})();const le=["width","height","fill","transform"],te={key:0},oe=s("path",{d:"M140,32V64a12,12,0,0,1-24,0V32a12,12,0,0,1,24,0Zm33.25,62.75a12,12,0,0,0,8.49-3.52L204.37,68.6a12,12,0,0,0-17-17L164.77,74.26a12,12,0,0,0,8.48,20.49ZM224,116H192a12,12,0,0,0,0,24h32a12,12,0,0,0,0-24Zm-42.26,48.77a12,12,0,1,0-17,17l22.63,22.63a12,12,0,0,0,17-17ZM128,180a12,12,0,0,0-12,12v32a12,12,0,0,0,24,0V192A12,12,0,0,0,128,180ZM74.26,164.77,51.63,187.4a12,12,0,0,0,17,17l22.63-22.63a12,12,0,1,0-17-17ZM76,128a12,12,0,0,0-12-12H32a12,12,0,0,0,0,24H64A12,12,0,0,0,76,128ZM68.6,51.63a12,12,0,1,0-17,17L74.26,91.23a12,12,0,0,0,17-17Z"},null,-1),ne=[oe],se={key:1},ie=s("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),re=s("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm37.25,58.75a8,8,0,0,0,5.66-2.35l22.63-22.62a8,8,0,0,0-11.32-11.32L167.6,77.09a8,8,0,0,0,5.65,13.66ZM224,120H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"},null,-1),de=[ie,re],ue={key:2},ce=s("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm33.94,58.75,17-17a8,8,0,0,1,11.32,11.32l-17,17a8,8,0,0,1-11.31-11.31ZM48,136a8,8,0,0,1,0-16H72a8,8,0,0,1,0,16Zm46.06,37.25-17,17a8,8,0,0,1-11.32-11.32l17-17a8,8,0,0,1,11.31,11.31Zm0-79.19a8,8,0,0,1-11.31,0l-17-17A8,8,0,0,1,77.09,65.77l17,17A8,8,0,0,1,94.06,94.06ZM136,208a8,8,0,0,1-16,0V184a8,8,0,0,1,16,0Zm0-136a8,8,0,0,1-16,0V48a8,8,0,0,1,16,0Zm54.23,118.23a8,8,0,0,1-11.32,0l-17-17a8,8,0,0,1,11.31-11.31l17,17A8,8,0,0,1,190.23,190.23ZM208,136H184a8,8,0,0,1,0-16h24a8,8,0,0,1,0,16Z"},null,-1),me=[ce],ve={key:3},fe=s("path",{d:"M134,32V64a6,6,0,0,1-12,0V32a6,6,0,0,1,12,0Zm39.25,56.75A6,6,0,0,0,177.5,87l22.62-22.63a6,6,0,0,0-8.48-8.48L169,78.5a6,6,0,0,0,4.24,10.25ZM224,122H192a6,6,0,0,0,0,12h32a6,6,0,0,0,0-12Zm-46.5,47A6,6,0,0,0,169,177.5l22.63,22.62a6,6,0,0,0,8.48-8.48ZM128,186a6,6,0,0,0-6,6v32a6,6,0,0,0,12,0V192A6,6,0,0,0,128,186ZM78.5,169,55.88,191.64a6,6,0,1,0,8.48,8.48L87,177.5A6,6,0,1,0,78.5,169ZM70,128a6,6,0,0,0-6-6H32a6,6,0,0,0,0,12H64A6,6,0,0,0,70,128ZM64.36,55.88a6,6,0,0,0-8.48,8.48L78.5,87A6,6,0,1,0,87,78.5Z"},null,-1),_e=[fe],pe={key:4},ge=s("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm37.25,58.75a8,8,0,0,0,5.66-2.35l22.63-22.62a8,8,0,0,0-11.32-11.32L167.6,77.09a8,8,0,0,0,5.65,13.66ZM224,120H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"},null,-1),he=[ge],ye={key:5},we=s("path",{d:"M132,32V64a4,4,0,0,1-8,0V32a4,4,0,0,1,8,0Zm41.25,54.75a4,4,0,0,0,2.83-1.18L198.71,63a4,4,0,0,0-5.66-5.66L170.43,79.92a4,4,0,0,0,2.82,6.83ZM224,124H192a4,4,0,0,0,0,8h32a4,4,0,0,0,0-8Zm-47.92,46.43a4,4,0,1,0-5.65,5.65l22.62,22.63a4,4,0,0,0,5.66-5.66ZM128,188a4,4,0,0,0-4,4v32a4,4,0,0,0,8,0V192A4,4,0,0,0,128,188ZM79.92,170.43,57.29,193.05A4,4,0,0,0,63,198.71l22.62-22.63a4,4,0,1,0-5.65-5.65ZM68,128a4,4,0,0,0-4-4H32a4,4,0,0,0,0,8H64A4,4,0,0,0,68,128ZM63,57.29A4,4,0,0,0,57.29,63L79.92,85.57a4,4,0,1,0,5.65-5.65Z"},null,-1),Ze=[we],ke={name:"PhSpinner"},Ae=L({...ke,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const n=o,m=A("weight","regular"),e=A("size","1em"),v=A("color","currentColor"),V=A("mirrored",!1),p=k(()=>{var i;return(i=n.weight)!=null?i:m}),y=k(()=>{var i;return(i=n.size)!=null?i:e}),w=k(()=>{var i;return(i=n.color)!=null?i:v}),Z=k(()=>n.mirrored!==void 0?n.mirrored?"scale(-1, 1)":void 0:V?"scale(-1, 1)":void 0);return(i,I)=>(t(),_("svg",O({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:y.value,height:y.value,fill:w.value,transform:Z.value},i.$attrs),[z(i.$slots,"default"),p.value==="bold"?(t(),_("g",te,ne)):p.value==="duotone"?(t(),_("g",se,de)):p.value==="fill"?(t(),_("g",ue,me)):p.value==="light"?(t(),_("g",ve,_e)):p.value==="regular"?(t(),_("g",pe,he)):p.value==="thin"?(t(),_("g",ye,Ze)):b("",!0)],16,le))}}),D=o=>(j("data-v-3f7d7e6f"),o=o(),G(),o),Me={class:"oidc-container"},be=D(()=>s("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",dur:"3s",from:"0 0 0",to:"360 0 0",repeatCount:"indefinite"},null,-1)),Le=D(()=>s("p",{class:"centered"},"Please complete the login process in the popup window.",-1)),Ve={class:"centered"},Ie=L({__name:"Oidc",emits:["done"],setup(o,{emit:n}){const m=async()=>{const v=await new R().login();if(!v)throw new Error("[OIDC] Login did not return an user");n("done",v)};return U(()=>m()),(e,v)=>(t(),_("div",Me,[r(l(Ae),{size:60,style:{"margin-bottom":"50px"}},{default:c(()=>[be]),_:1}),Le,s("p",Ve,[h(" If it has not appear automatically, please "),r(l(F),{onClick:m},{default:c(()=>[h("click here")]),_:1}),h(". ")])]))}});const Te=S(Ie,[["__scopeId","data-v-3f7d7e6f"]]),Ce={class:"description"},He={class:"description"},Pe={class:"footer"},Ne={key:3,class:"loading"},Se=L({__name:"Passwordless",props:{logoUrl:{},brandName:{},locale:{}},emits:["done"],setup(o,{emit:n}){const m=o,e=x({stage:"collect-info",info:{email:""},token:"",invalid:!1,secsToAllowResend:0}),v=new q,V=k(()=>{var a;return(a=W.instance)==null?void 0:a.isLocal}),p=u.translate("i18n_local_auth_info_description",m.locale);function y(){const a=e.value.info.email,d=ee(a);return e.value.invalid=!d,d}let w;const Z=async({isResend:a}={})=>{if(!!y()){e.value.stage="loading";try{await v.authenticate(e.value.info.email,a),e.value.stage="collect-token",e.value.secsToAllowResend=120,clearInterval(w),w=setInterval(()=>{e.value.secsToAllowResend-=1,e.value.secsToAllowResend<=0&&(clearInterval(w),e.value.secsToAllowResend=0)},1e3)}catch{e.value.invalid=!0,e.value.stage="collect-info"}}},i=a=>{if(!a){e.value.info.email="";return}e.value.info.email=a.toLowerCase()},I=async()=>{if(!!e.value.info.email){e.value.stage="loading";try{const a=await v.verify(e.value.info.email,e.value.token);if(!a)throw new Error("[Passwordless] Login did not return an user");n("done",a),e.value.stage="loading"}catch{e.value.invalid=!0,e.value.stage="collect-token"}}},E=async a=>{await fetch(`https://admin.abstra.app/_hooks/notify-email-not-received?email=${a}`,{method:"GET"})},$=()=>{e.value.info.email&&(Z({isResend:!0}),E(e.value.info.email))},B=()=>{e.value={stage:"collect-info",info:{email:""},token:"",invalid:!1,secsToAllowResend:0}};return(a,d)=>(t(),g(l(C),{vertical:"",align:"center",gap:"middle",class:"passwordless"},{default:c(()=>[r(l(C),{vertical:"",align:"center",gap:"small",class:"header"},{default:c(()=>[r(Y,{"hide-text":"",size:"large","image-url":a.logoUrl,"brand-name":a.brandName},null,8,["image-url","brand-name"]),s("h2",null,f(l(u).translate("i18n_auth_validate_your_email_login",a.locale,{brandName:a.brandName})),1)]),_:1}),V.value?(t(),g(l(N),{key:0,message:l(p),type:"warning","show-icon":"",style:{width:"100%","text-align":"left"}},null,8,["message"])):b("",!0),e.value.stage==="collect-info"?(t(),g(l(H),{key:1,class:"section"},{default:c(()=>[s("div",Ce,f(l(u).translate("i18n_auth_info_description",a.locale)),1),r(l(P),{"has-feedback":"","validate-status":e.value.invalid?"error":"",help:e.value.invalid?l(u).translate("i18n_auth_info_invalid_email",a.locale):""},{default:c(()=>[r(l(J),{type:"email",value:e.value.info.email,placeholder:l(u).translate("i18n_auth_enter_your_email",a.locale),autofocus:"",onBlur:y,onKeyup:d[0]||(d[0]=K(()=>Z(),["enter"])),onChange:d[1]||(d[1]=T=>i(T.target.value))},null,8,["value","placeholder"])]),_:1},8,["validate-status","help"]),r(l(M),{type:"primary",onClick:d[2]||(d[2]=()=>Z())},{default:c(()=>[h(f(l(u).translate("i18n_auth_info_send_code",a.locale)),1)]),_:1})]),_:1})):e.value.stage==="collect-token"?(t(),g(l(H),{key:2,class:"section"},{default:c(()=>[s("div",He,f(l(u).translate("i18n_auth_token_label",a.locale,e.value.info)),1),r(l(P),{"has-feedback":"","validate-status":e.value.invalid?"error":""},{default:c(()=>[r(X,{value:e.value.token,"onUpdate:value":d[3]||(d[3]=T=>e.value.token=T),length:6,numeric:!0,size:"large",onCollectToken:I},null,8,["value"]),e.value.invalid?(t(),g(l(N),{key:0,message:l(u).translate("i18n_auth_token_invalid"),type:"error",style:{"margin-top":"24px"}},null,8,["message"])):b("",!0)]),_:1},8,["validate-status"]),r(l(M),{type:"primary",onClick:I},{default:c(()=>[h(f(l(u).translate("i18n_auth_token_verify_email",a.locale)),1)]),_:1}),r(l(M),{onClick:B},{default:c(()=>[h(f(l(u).translate("i18n_auth_edit_email",a.locale)),1)]),_:1}),r(l(M),{disabled:!!e.value.secsToAllowResend,onClick:$},{default:c(()=>[h(f(l(u).translate("i18n_auth_token_resend_email",a.locale))+" ("+f(e.value.secsToAllowResend)+" s) ",1)]),_:1},8,["disabled"]),s("div",Pe,f(l(u).translate("i18n_auth_token_footer_alternative_email",a.locale)),1)]),_:1})):e.value.stage==="loading"?(t(),_("div",Ne,[r(Q)])):b("",!0)]),_:1}))}});const Re=S(Se,[["__scopeId","data-v-a1043ff4"]]),Fe=L({__name:"Login",props:{logoUrl:{},brandName:{},locale:{}},emits:["done"],setup(o,{emit:n}){const m=e=>{ae().saveJWT(e),n("done",e)};return(e,v)=>l(R).isConfigured()?(t(),g(Te,{key:0,onDone:m})):(t(),g(Re,{key:1,locale:e.locale,"logo-url":e.logoUrl,"brand-name":e.brandName,onDone:m},null,8,["locale","logo-url","brand-name"]))}});export{Fe as _};
2
- //# sourceMappingURL=Login.vue_vue_type_script_setup_true_lang.1cd9267a.js.map
1
+ import{d as L,am as A,c as k,o as t,a5 as _,a7 as z,h as b,e6 as O,e as s,k as U,f as r,b as c,u as l,g as h,d8 as F,ew as j,ex as G,_ as S,r as x,eG as u,a as g,ed as v,de as C,cy as H,bJ as J,eF as K,cz as P,bR as M}from"./jwt-decode.esm.b204fb7d.js";import{O as R,S as W,A as q}from"./index.dfc9f500.js";import{O as X,L as Q}from"./CircularLoading.02fd7b7b.js";import{L as Y}from"./Logo.cc2d4a95.js";import{i as ee}from"./string.4a80abd5.js";import{A as N}from"./index.e6b397aa.js";import{u as ae}from"./userStore.26658284.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[n]="0da324f6-f1fb-4e75-a93c-5bdfedb840fd",o._sentryDebugIdIdentifier="sentry-dbid-0da324f6-f1fb-4e75-a93c-5bdfedb840fd")}catch{}})();const le=["width","height","fill","transform"],te={key:0},oe=s("path",{d:"M140,32V64a12,12,0,0,1-24,0V32a12,12,0,0,1,24,0Zm33.25,62.75a12,12,0,0,0,8.49-3.52L204.37,68.6a12,12,0,0,0-17-17L164.77,74.26a12,12,0,0,0,8.48,20.49ZM224,116H192a12,12,0,0,0,0,24h32a12,12,0,0,0,0-24Zm-42.26,48.77a12,12,0,1,0-17,17l22.63,22.63a12,12,0,0,0,17-17ZM128,180a12,12,0,0,0-12,12v32a12,12,0,0,0,24,0V192A12,12,0,0,0,128,180ZM74.26,164.77,51.63,187.4a12,12,0,0,0,17,17l22.63-22.63a12,12,0,1,0-17-17ZM76,128a12,12,0,0,0-12-12H32a12,12,0,0,0,0,24H64A12,12,0,0,0,76,128ZM68.6,51.63a12,12,0,1,0-17,17L74.26,91.23a12,12,0,0,0,17-17Z"},null,-1),ne=[oe],se={key:1},ie=s("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),re=s("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm37.25,58.75a8,8,0,0,0,5.66-2.35l22.63-22.62a8,8,0,0,0-11.32-11.32L167.6,77.09a8,8,0,0,0,5.65,13.66ZM224,120H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"},null,-1),de=[ie,re],ue={key:2},ce=s("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm33.94,58.75,17-17a8,8,0,0,1,11.32,11.32l-17,17a8,8,0,0,1-11.31-11.31ZM48,136a8,8,0,0,1,0-16H72a8,8,0,0,1,0,16Zm46.06,37.25-17,17a8,8,0,0,1-11.32-11.32l17-17a8,8,0,0,1,11.31,11.31Zm0-79.19a8,8,0,0,1-11.31,0l-17-17A8,8,0,0,1,77.09,65.77l17,17A8,8,0,0,1,94.06,94.06ZM136,208a8,8,0,0,1-16,0V184a8,8,0,0,1,16,0Zm0-136a8,8,0,0,1-16,0V48a8,8,0,0,1,16,0Zm54.23,118.23a8,8,0,0,1-11.32,0l-17-17a8,8,0,0,1,11.31-11.31l17,17A8,8,0,0,1,190.23,190.23ZM208,136H184a8,8,0,0,1,0-16h24a8,8,0,0,1,0,16Z"},null,-1),me=[ce],fe={key:3},ve=s("path",{d:"M134,32V64a6,6,0,0,1-12,0V32a6,6,0,0,1,12,0Zm39.25,56.75A6,6,0,0,0,177.5,87l22.62-22.63a6,6,0,0,0-8.48-8.48L169,78.5a6,6,0,0,0,4.24,10.25ZM224,122H192a6,6,0,0,0,0,12h32a6,6,0,0,0,0-12Zm-46.5,47A6,6,0,0,0,169,177.5l22.63,22.62a6,6,0,0,0,8.48-8.48ZM128,186a6,6,0,0,0-6,6v32a6,6,0,0,0,12,0V192A6,6,0,0,0,128,186ZM78.5,169,55.88,191.64a6,6,0,1,0,8.48,8.48L87,177.5A6,6,0,1,0,78.5,169ZM70,128a6,6,0,0,0-6-6H32a6,6,0,0,0,0,12H64A6,6,0,0,0,70,128ZM64.36,55.88a6,6,0,0,0-8.48,8.48L78.5,87A6,6,0,1,0,87,78.5Z"},null,-1),_e=[ve],pe={key:4},ge=s("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm37.25,58.75a8,8,0,0,0,5.66-2.35l22.63-22.62a8,8,0,0,0-11.32-11.32L167.6,77.09a8,8,0,0,0,5.65,13.66ZM224,120H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"},null,-1),he=[ge],ye={key:5},we=s("path",{d:"M132,32V64a4,4,0,0,1-8,0V32a4,4,0,0,1,8,0Zm41.25,54.75a4,4,0,0,0,2.83-1.18L198.71,63a4,4,0,0,0-5.66-5.66L170.43,79.92a4,4,0,0,0,2.82,6.83ZM224,124H192a4,4,0,0,0,0,8h32a4,4,0,0,0,0-8Zm-47.92,46.43a4,4,0,1,0-5.65,5.65l22.62,22.63a4,4,0,0,0,5.66-5.66ZM128,188a4,4,0,0,0-4,4v32a4,4,0,0,0,8,0V192A4,4,0,0,0,128,188ZM79.92,170.43,57.29,193.05A4,4,0,0,0,63,198.71l22.62-22.63a4,4,0,1,0-5.65-5.65ZM68,128a4,4,0,0,0-4-4H32a4,4,0,0,0,0,8H64A4,4,0,0,0,68,128ZM63,57.29A4,4,0,0,0,57.29,63L79.92,85.57a4,4,0,1,0,5.65-5.65Z"},null,-1),Ze=[we],ke={name:"PhSpinner"},Ae=L({...ke,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(o){const n=o,m=A("weight","regular"),e=A("size","1em"),f=A("color","currentColor"),V=A("mirrored",!1),p=k(()=>{var i;return(i=n.weight)!=null?i:m}),y=k(()=>{var i;return(i=n.size)!=null?i:e}),w=k(()=>{var i;return(i=n.color)!=null?i:f}),Z=k(()=>n.mirrored!==void 0?n.mirrored?"scale(-1, 1)":void 0:V?"scale(-1, 1)":void 0);return(i,I)=>(t(),_("svg",O({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:y.value,height:y.value,fill:w.value,transform:Z.value},i.$attrs),[z(i.$slots,"default"),p.value==="bold"?(t(),_("g",te,ne)):p.value==="duotone"?(t(),_("g",se,de)):p.value==="fill"?(t(),_("g",ue,me)):p.value==="light"?(t(),_("g",fe,_e)):p.value==="regular"?(t(),_("g",pe,he)):p.value==="thin"?(t(),_("g",ye,Ze)):b("",!0)],16,le))}}),D=o=>(j("data-v-3f7d7e6f"),o=o(),G(),o),Me={class:"oidc-container"},be=D(()=>s("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",dur:"3s",from:"0 0 0",to:"360 0 0",repeatCount:"indefinite"},null,-1)),Le=D(()=>s("p",{class:"centered"},"Please complete the login process in the popup window.",-1)),Ve={class:"centered"},Ie=L({__name:"Oidc",emits:["done"],setup(o,{emit:n}){const m=async()=>{const f=await new R().login();if(!f)throw new Error("[OIDC] Login did not return an user");n("done",f)};return U(()=>m()),(e,f)=>(t(),_("div",Me,[r(l(Ae),{size:60,style:{"margin-bottom":"50px"}},{default:c(()=>[be]),_:1}),Le,s("p",Ve,[h(" If it has not appear automatically, please "),r(l(F),{onClick:m},{default:c(()=>[h("click here")]),_:1}),h(". ")])]))}});const Te=S(Ie,[["__scopeId","data-v-3f7d7e6f"]]),Ce={class:"description"},He={class:"description"},Pe={class:"footer"},Ne={key:3,class:"loading"},Se=L({__name:"Passwordless",props:{logoUrl:{},brandName:{},locale:{}},emits:["done"],setup(o,{emit:n}){const m=o,e=x({stage:"collect-info",info:{email:""},token:"",invalid:!1,secsToAllowResend:0}),f=new q,V=k(()=>{var a;return(a=W.instance)==null?void 0:a.isLocal}),p=u.translate("i18n_local_auth_info_description",m.locale);function y(){const a=e.value.info.email,d=ee(a);return e.value.invalid=!d,d}let w;const Z=async({isResend:a}={})=>{if(!!y()){e.value.stage="loading";try{await f.authenticate(e.value.info.email,a),e.value.stage="collect-token",e.value.secsToAllowResend=120,clearInterval(w),w=setInterval(()=>{e.value.secsToAllowResend-=1,e.value.secsToAllowResend<=0&&(clearInterval(w),e.value.secsToAllowResend=0)},1e3)}catch{e.value.invalid=!0,e.value.stage="collect-info"}}},i=a=>{if(!a){e.value.info.email="";return}e.value.info.email=a.toLowerCase()},I=async()=>{if(!!e.value.info.email){e.value.stage="loading";try{const a=await f.verify(e.value.info.email,e.value.token);if(!a)throw new Error("[Passwordless] Login did not return an user");n("done",a),e.value.stage="loading"}catch{e.value.invalid=!0,e.value.stage="collect-token"}}},E=async a=>{await fetch(`https://admin.abstra.app/_hooks/notify-email-not-received?email=${a}`,{method:"GET"})},$=()=>{e.value.info.email&&(Z({isResend:!0}),E(e.value.info.email))},B=()=>{e.value={stage:"collect-info",info:{email:""},token:"",invalid:!1,secsToAllowResend:0}};return(a,d)=>(t(),g(l(C),{vertical:"",align:"center",gap:"middle",class:"passwordless"},{default:c(()=>[r(l(C),{vertical:"",align:"center",gap:"small",class:"header"},{default:c(()=>[r(Y,{"hide-text":"",size:"large","image-url":a.logoUrl,"brand-name":a.brandName},null,8,["image-url","brand-name"]),s("h2",null,v(l(u).translate("i18n_auth_validate_your_email_login",a.locale,{brandName:a.brandName})),1)]),_:1}),V.value?(t(),g(l(N),{key:0,message:l(p),type:"warning","show-icon":"",style:{width:"100%","text-align":"left"}},null,8,["message"])):b("",!0),e.value.stage==="collect-info"?(t(),g(l(H),{key:1,class:"section"},{default:c(()=>[s("div",Ce,v(l(u).translate("i18n_auth_info_description",a.locale)),1),r(l(P),{"has-feedback":"","validate-status":e.value.invalid?"error":"",help:e.value.invalid?l(u).translate("i18n_auth_info_invalid_email",a.locale):""},{default:c(()=>[r(l(J),{type:"email",value:e.value.info.email,placeholder:l(u).translate("i18n_auth_enter_your_email",a.locale),autofocus:"",onBlur:y,onKeyup:d[0]||(d[0]=K(()=>Z(),["enter"])),onChange:d[1]||(d[1]=T=>i(T.target.value))},null,8,["value","placeholder"])]),_:1},8,["validate-status","help"]),r(l(M),{type:"primary",onClick:d[2]||(d[2]=()=>Z())},{default:c(()=>[h(v(l(u).translate("i18n_auth_info_send_code",a.locale)),1)]),_:1})]),_:1})):e.value.stage==="collect-token"?(t(),g(l(H),{key:2,class:"section"},{default:c(()=>[s("div",He,v(l(u).translate("i18n_auth_token_label",a.locale,e.value.info)),1),r(l(P),{"has-feedback":"","validate-status":e.value.invalid?"error":""},{default:c(()=>[r(X,{value:e.value.token,"onUpdate:value":d[3]||(d[3]=T=>e.value.token=T),length:6,numeric:!0,size:"large",onCollectToken:I},null,8,["value"]),e.value.invalid?(t(),g(l(N),{key:0,message:l(u).translate("i18n_auth_token_invalid"),type:"error",style:{"margin-top":"24px"}},null,8,["message"])):b("",!0)]),_:1},8,["validate-status"]),r(l(M),{type:"primary",onClick:I},{default:c(()=>[h(v(l(u).translate("i18n_auth_token_verify_email",a.locale)),1)]),_:1}),r(l(M),{onClick:B},{default:c(()=>[h(v(l(u).translate("i18n_auth_edit_email",a.locale)),1)]),_:1}),r(l(M),{disabled:!!e.value.secsToAllowResend,onClick:$},{default:c(()=>[h(v(l(u).translate("i18n_auth_token_resend_email",a.locale))+" ("+v(e.value.secsToAllowResend)+" s) ",1)]),_:1},8,["disabled"]),s("div",Pe,v(l(u).translate("i18n_auth_token_footer_alternative_email",a.locale)),1)]),_:1})):e.value.stage==="loading"?(t(),_("div",Ne,[r(Q)])):b("",!0)]),_:1}))}});const Re=S(Se,[["__scopeId","data-v-a1043ff4"]]),Fe=L({__name:"Login",props:{logoUrl:{},brandName:{},locale:{}},emits:["done"],setup(o,{emit:n}){const m=e=>{ae().saveJWT(e),n("done",e)};return(e,f)=>l(R).isConfigured()?(t(),g(Te,{key:0,onDone:m})):(t(),g(Re,{key:1,locale:e.locale,"logo-url":e.logoUrl,"brand-name":e.brandName,onDone:m},null,8,["locale","logo-url","brand-name"]))}});export{Fe as _};
2
+ //# sourceMappingURL=Login.vue_vue_type_script_setup_true_lang.fab46c0c.js.map
@@ -0,0 +1,2 @@
1
+ import{d as i,ey as c,c as r,o,a5 as t,h as d,ea as _,ed as p,_ as u}from"./jwt-decode.esm.b204fb7d.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]="c5a9c840-5932-4de8-903f-a4224b414aeb",e._sentryDebugIdIdentifier="sentry-dbid-c5a9c840-5932-4de8-903f-a4224b414aeb")}catch{}})();const g={class:"logo"},f=["src","alt"],m=i({__name:"Logo",props:{imageUrl:{},brandName:{},hideText:{type:Boolean},size:{}},setup(e){const a=e;c(s=>({"4521d904":n.value}));const n=r(()=>a.size==="small"?"24px":a.size==="large"?"80px":"50px"),l=r(()=>`${a.brandName} Logo`);return(s,y)=>(o(),t("div",g,[s.imageUrl?(o(),t("img",{key:0,class:"logo-img",src:s.imageUrl,alt:l.value},null,8,f)):d("",!0),s.hideText?d("",!0):(o(),t("span",{key:1,class:_(s.size)},p(s.brandName),3))]))}});const h=u(m,[["__scopeId","data-v-8f34aac0"]]);export{h as L};
2
+ //# sourceMappingURL=Logo.cc2d4a95.js.map
@@ -1,2 +1,2 @@
1
- import{d as U,am as S,c as D,o as n,a5 as c,a7 as O,h as T,e6 as V,e as A,eb as H,e5 as N,j as q,a as g,b as r,u as e,er as C,f as a,g as b,A as Q,cy as j,cz as m,bJ as G,aB as _,S as $,ec as J,d4 as I,ed as v,ei as K,de as W,aR as X,bO as Y,cx as ee,cH as te}from"./jwt-decode.esm.611ae497.js";import{a as ae,E as le,L as oe}from"./LogsController.01feb949.js";import{_ as re,R as se}from"./repository.7471bf9f.js";import{_ as ne}from"./AbstraButton.vue_vue_type_script_setup_true_lang.a26848e1.js";import{g as ie}from"./datetime.39f65a27.js";import{c as de}from"./string.12f8032a.js";import{a as h,f as M,A as ue,C as pe}from"./router.1f8c25cb.js";import{R as B}from"./dayjs.3a6ced6e.js";import{A as F}from"./index.c85af12a.js";import{b as fe}from"./build.3d214204.js";import"./tables.5944415f.js";import"./ant-design.a7203613.js";import"./PhCopy.vue.c5a6ae9d.js";import"./polling.06d43d12.js";import"./LoadingOutlined.9851c13d.js";import"./index.18f988e9.js";import"./record.88233bcd.js";(function(){try{var p=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new Error().stack;i&&(p._sentryDebugIds=p._sentryDebugIds||{},p._sentryDebugIds[i]="5cf86b04-1ad8-432d-919c-484c4de14aac",p._sentryDebugIdIdentifier="sentry-dbid-5cf86b04-1ad8-432d-919c-484c4de14aac")}catch{}})();const ge=["width","height","fill","transform"],ce={key:0},ye=A("path",{d:"M117.18,188.74a12,12,0,0,1,0,17l-5.12,5.12A58.26,58.26,0,0,1,70.6,228h0A58.62,58.62,0,0,1,29.14,127.92L63.89,93.17a58.64,58.64,0,0,1,98.56,28.11,12,12,0,1,1-23.37,5.44,34.65,34.65,0,0,0-58.22-16.58L46.11,144.89A34.62,34.62,0,0,0,70.57,204h0a34.41,34.41,0,0,0,24.49-10.14l5.11-5.12A12,12,0,0,1,117.18,188.74ZM226.83,45.17a58.65,58.65,0,0,0-82.93,0l-5.11,5.11a12,12,0,0,0,17,17l5.12-5.12a34.63,34.63,0,1,1,49,49L175.1,145.86A34.39,34.39,0,0,1,150.61,156h0a34.63,34.63,0,0,1-33.69-26.72,12,12,0,0,0-23.38,5.44A58.64,58.64,0,0,0,150.56,180h.05a58.28,58.28,0,0,0,41.47-17.17l34.75-34.75a58.62,58.62,0,0,0,0-82.91Z"},null,-1),me=[ye],he={key:1},Ae=A("path",{d:"M218.34,119.6,183.6,154.34a46.58,46.58,0,0,1-44.31,12.26c-.31.34-.62.67-.95,1L103.6,202.34A46.63,46.63,0,1,1,37.66,136.4L72.4,101.66A46.6,46.6,0,0,1,116.71,89.4c.31-.34.62-.67,1-1L152.4,53.66a46.63,46.63,0,0,1,65.94,65.94Z",opacity:"0.2"},null,-1),be=A("path",{d:"M240,88.23a54.43,54.43,0,0,1-16,37L189.25,160a54.27,54.27,0,0,1-38.63,16h-.05A54.63,54.63,0,0,1,96,119.84a8,8,0,0,1,16,.45A38.62,38.62,0,0,0,150.58,160h0a38.39,38.39,0,0,0,27.31-11.31l34.75-34.75a38.63,38.63,0,0,0-54.63-54.63l-11,11A8,8,0,0,1,135.7,59l11-11A54.65,54.65,0,0,1,224,48,54.86,54.86,0,0,1,240,88.23ZM109,185.66l-11,11A38.41,38.41,0,0,1,70.6,208h0a38.63,38.63,0,0,1-27.29-65.94L78,107.31A38.63,38.63,0,0,1,144,135.71a8,8,0,0,0,7.78,8.22H152a8,8,0,0,0,8-7.78A54.86,54.86,0,0,0,144,96a54.65,54.65,0,0,0-77.27,0L32,130.75A54.62,54.62,0,0,0,70.56,224h0a54.28,54.28,0,0,0,38.64-16l11-11A8,8,0,0,0,109,185.66Z"},null,-1),ve=[Ae,be],we={key:2},xe=A("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM115.7,192.49a43.31,43.31,0,0,1-55-66.43l25.37-25.37a43.35,43.35,0,0,1,61.25,0,42.9,42.9,0,0,1,9.95,15.43,8,8,0,1,1-15,5.6A27.33,27.33,0,0,0,97.37,112L72,137.37a27.32,27.32,0,0,0,34.68,41.91,8,8,0,1,1,9,13.21Zm79.61-62.55-25.37,25.37A43,43,0,0,1,139.32,168h0a43.35,43.35,0,0,1-40.53-28.12,8,8,0,1,1,15-5.6A27.35,27.35,0,0,0,139.28,152h0a27.14,27.14,0,0,0,19.32-8L184,118.63a27.32,27.32,0,0,0-34.68-41.91,8,8,0,1,1-9-13.21,43.32,43.32,0,0,1,55,66.43Z"},null,-1),_e=[xe],Ie={key:3},ke=A("path",{d:"M238,88.18a52.42,52.42,0,0,1-15.4,35.66l-34.75,34.75A52.28,52.28,0,0,1,150.62,174h-.05A52.63,52.63,0,0,1,98,119.9a6,6,0,0,1,6-5.84h.17a6,6,0,0,1,5.83,6.16A40.62,40.62,0,0,0,150.58,162h0a40.4,40.4,0,0,0,28.73-11.9l34.75-34.74A40.63,40.63,0,0,0,156.63,57.9l-11,11a6,6,0,0,1-8.49-8.49l11-11a52.62,52.62,0,0,1,74.43,0A52.83,52.83,0,0,1,238,88.18Zm-127.62,98.9-11,11A40.36,40.36,0,0,1,70.6,210h0a40.63,40.63,0,0,1-28.7-69.36L76.62,105.9A40.63,40.63,0,0,1,146,135.77a6,6,0,0,0,5.83,6.16H152a6,6,0,0,0,6-5.84A52.63,52.63,0,0,0,68.14,97.42L33.38,132.16A52.63,52.63,0,0,0,70.56,222h0a52.26,52.26,0,0,0,37.22-15.42l11-11a6,6,0,1,0-8.49-8.48Z"},null,-1),Le=[ke],Re={key:4},Se=A("path",{d:"M240,88.23a54.43,54.43,0,0,1-16,37L189.25,160a54.27,54.27,0,0,1-38.63,16h-.05A54.63,54.63,0,0,1,96,119.84a8,8,0,0,1,16,.45A38.62,38.62,0,0,0,150.58,160h0a38.39,38.39,0,0,0,27.31-11.31l34.75-34.75a38.63,38.63,0,0,0-54.63-54.63l-11,11A8,8,0,0,1,135.7,59l11-11A54.65,54.65,0,0,1,224,48,54.86,54.86,0,0,1,240,88.23ZM109,185.66l-11,11A38.41,38.41,0,0,1,70.6,208h0a38.63,38.63,0,0,1-27.29-65.94L78,107.31A38.63,38.63,0,0,1,144,135.71a8,8,0,0,0,16,.45A54.86,54.86,0,0,0,144,96a54.65,54.65,0,0,0-77.27,0L32,130.75A54.62,54.62,0,0,0,70.56,224h0a54.28,54.28,0,0,0,38.64-16l11-11A8,8,0,0,0,109,185.66Z"},null,-1),De=[Se],Ce={key:5},Pe=A("path",{d:"M236,88.12a50.44,50.44,0,0,1-14.81,34.31l-34.75,34.74A50.33,50.33,0,0,1,150.62,172h-.05A50.63,50.63,0,0,1,100,120a4,4,0,0,1,4-3.89h.11a4,4,0,0,1,3.89,4.11A42.64,42.64,0,0,0,150.58,164h0a42.32,42.32,0,0,0,30.14-12.49l34.75-34.74a42.63,42.63,0,1,0-60.29-60.28l-11,11a4,4,0,0,1-5.66-5.65l11-11A50.64,50.64,0,0,1,236,88.12ZM111.78,188.49l-11,11A42.33,42.33,0,0,1,70.6,212h0a42.63,42.63,0,0,1-30.11-72.77l34.75-34.74A42.63,42.63,0,0,1,148,135.82a4,4,0,0,0,8,.23A50.64,50.64,0,0,0,69.55,98.83L34.8,133.57A50.63,50.63,0,0,0,70.56,220h0a50.33,50.33,0,0,0,35.81-14.83l11-11a4,4,0,1,0-5.65-5.66Z"},null,-1),ze=[Pe],Ee={name:"PhLink"},Ze=U({...Ee,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(p){const i=p,f=S("weight","regular"),k=S("size","1em"),L=S("color","currentColor"),P=S("mirrored",!1),y=D(()=>{var d;return(d=i.weight)!=null?d:f}),R=D(()=>{var d;return(d=i.size)!=null?d:k}),z=D(()=>{var d;return(d=i.color)!=null?d:L}),E=D(()=>i.mirrored!==void 0?i.mirrored?"scale(-1, 1)":void 0:P?"scale(-1, 1)":void 0);return(d,w)=>(n(),c("svg",V({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:R.value,height:R.value,fill:z.value,transform:E.value},d.$attrs),[O(d.$slots,"default"),y.value==="bold"?(n(),c("g",ce,me)):y.value==="duotone"?(n(),c("g",he,ve)):y.value==="fill"?(n(),c("g",we,_e)):y.value==="light"?(n(),c("g",Ie,Le)):y.value==="regular"?(n(),c("g",Re,De)):y.value==="thin"?(n(),c("g",Ce,ze)):T("",!0)],16,ge))}}),Me={style:{width:"100px",height:"100%",display:"flex","align-items":"center","justify-content":"right",gap:"10px"}},Ue={key:0,style:{display:"flex",width:"100%","justify-content":"center"}},je=U({__name:"Logs",props:{executionRepository:{},buildRepository:{},showAllFilters:{type:Boolean}},setup(p){const i=p,f=H(),k=N(),L=f.params.projectId,P=f.query.executionId;function y(){const{stageId:u,buildId:l,status:t,startDate:s,endDate:x,runId:Z}=f.query;return s&&x?{stageId:u,buildId:l,status:t,dateRange:[C(s),C(x)]}:{stageId:u,buildId:l,status:t,search:Z}}function R(u){const l={};Object.entries(u).forEach(([t,s])=>{typeof s=="string"&&t==="search"&&s?l.runId=s:typeof s=="string"&&s?l[t]=s:t==="dateRange"&&s&&C.isDayjs(s[0])&&C.isDayjs(s[1])&&(l.startDate=s[0].toISOString(),l.endDate=s[1].toISOString())}),k.replace({query:l})}function z(){const{page:u,pageSize:l}=f.query;return{page:u?parseInt(u,10):1,pageSize:l?parseInt(l,10):10}}function E(u){const l=u.slice(0,6),t=`${window.location.origin}${window.location.pathname}?runId=${l}`;navigator.clipboard.writeText(t),te.success({content:"Copied to clipboard"})}function d(u,l){let t={...u};return t.sentTasks=l.sentTasks,delete t.mockExecution,l.triggerTask&&(t.triggerTask=l.triggerTask,delete t.taskId),t}const w=new ae(i.executionRepository,i.buildRepository,L,y(),z(),P,R),{state:o}=w;return w.init(),q(()=>w.teardown()),(u,l)=>(n(),g(e(F),{direction:"vertical",style:{width:"100%",padding:"0px 0px 20px 0px"}},{default:r(()=>[a(e(Q),null,{default:r(()=>[b("Logs")]),_:1}),u.showAllFilters?(n(),g(e(j),{key:0,layout:"vertical"},{default:r(()=>[a(e(M),{gutter:10},{default:r(()=>[a(e(h),{span:12},{default:r(()=>[a(e(m),{label:"Run ID"},{default:r(()=>[a(e(G),{value:e(o).filters.search,"onUpdate:value":l[0]||(l[0]=t=>e(o).filters.search=t),placeholder:"Search by Run ID",style:{width:"100%"}},null,8,["value"])]),_:1})]),_:1}),a(e(h),{span:12},{default:r(()=>[a(e(m),{label:"Stage"},{default:r(()=>[a(e(_),{value:e(o).filters.stageId,"onUpdate:value":l[1]||(l[1]=t=>e(o).filters.stageId=t),options:e(o).filterOptions.stages,placeholder:"All","allow-clear":""},null,8,["value","options"])]),_:1})]),_:1})]),_:1}),a(e(M),{gutter:10},{default:r(()=>[a(e(h),{span:8},{default:r(()=>[a(e(m),{label:"Date"},{default:r(()=>[a(e(B),{value:e(o).filters.dateRange,"onUpdate:value":l[2]||(l[2]=t=>e(o).filters.dateRange=t),style:{width:"100%"}},null,8,["value"])]),_:1})]),_:1}),a(e(h),{span:10},{default:r(()=>[a(e(m),{label:"Version"},{default:r(()=>[a(e(_),{value:e(o).filters.buildId,"onUpdate:value":l[3]||(l[3]=t=>e(o).filters.buildId=t),options:e(o).filterOptions.builds,"option-label":"label","option-value":"value",filter:!1,placeholder:"All","allow-clear":""},null,8,["value","options"])]),_:1})]),_:1}),a(e(h),{span:6},{default:r(()=>[a(e(m),{label:"Status"},{default:r(()=>[a(e(_),{value:e(o).filters.status,"onUpdate:value":l[4]||(l[4]=t=>e(o).filters.status=t),options:e(o).filterOptions.statuses,"option-label":"label","option-value":"value",filter:!1,placeholder:"All","allow-clear":""},null,8,["value","options"])]),_:1})]),_:1})]),_:1})]),_:1})):(n(),g(e(j),{key:1,layout:"vertical"},{default:r(()=>[a(e(M),{gutter:10},{default:r(()=>[a(e(h),{span:8},{default:r(()=>[a(e(m),{label:"Date"},{default:r(()=>[a(e(B),{value:e(o).filters.dateRange,"onUpdate:value":l[5]||(l[5]=t=>e(o).filters.dateRange=t),style:{width:"100%"}},null,8,["value"])]),_:1})]),_:1}),a(e(h),{span:10},{default:r(()=>[a(e(m),{label:"Script"},{default:r(()=>[a(e(_),{value:e(o).filters.stageId,"onUpdate:value":l[6]||(l[6]=t=>e(o).filters.stageId=t),options:e(o).filterOptions.stages,placeholder:"All","allow-clear":""},null,8,["value","options"])]),_:1})]),_:1}),a(e(h),{span:6},{default:r(()=>[a(e(m),{label:"Status"},{default:r(()=>[a(e(_),{value:e(o).filters.status,"onUpdate:value":l[7]||(l[7]=t=>e(o).filters.status=t),options:e(o).filterOptions.statuses,"option-label":"label","option-value":"value",filter:!1,placeholder:"All","allow-clear":""},null,8,["value","options"])]),_:1})]),_:1})]),_:1})]),_:1})),e(o).currentPage.loadingExecutions||e(o).currentPage.waitingDebounce?(n(),g(e($),{key:2,style:{width:"100%"}})):e(o).currentPage.executions&&e(o).currentPage.executions.length>0?(n(),g(e(F),{key:3,direction:"vertical",style:{width:"100%"}},{default:r(()=>[a(e(pe),{"active-key":e(o).currentPage.openedExecutionIds,"onUpdate:activeKey":l[8]||(l[8]=t=>e(o).currentPage.openedExecutionIds=t),bordered:!1,style:{"background-color":"transparent"},onChange:e(w).fetchEmptyLogs},{default:r(()=>[(n(!0),c(X,null,J(e(o).currentPage.executions,t=>(n(),g(e(ue),{key:t.id,style:{"border-radius":"4px","margin-bottom":"10px",border:"0",overflow:"hidden","background-color":"#fff"}},{header:r(()=>[a(e(I),{color:"default",style:{"margin-right":"10px"},bordered:!1},{default:r(()=>[b(v(e(ie)(t.createdAt)),1)]),_:2},1024),a(e(I),{color:"default",style:{"margin-right":"10px"},bordered:!1},{default:r(()=>[b(" Run ID: "+v(t.id.slice(0,8)),1)]),_:2},1024),a(e(I),{color:"default",style:{"margin-right":"10px"},bordered:!1},{default:r(()=>[b(" Version: "+v(t.buildId.slice(0,8)),1)]),_:2},1024),a(e(I),{color:"default",style:{"margin-right":"10px"},bordered:!1},{default:r(()=>[b(" Duration: "+v(t.duration_seconds),1)]),_:2},1024),a(e(I),{color:"default",style:{"margin-right":"10px"},bordered:!1},{default:r(()=>{var s,x;return[b(v((x=(s=e(o).filterOptions.stages.find(Z=>Z.value===t.stageId))==null?void 0:s.label)!=null?x:t.stageId.slice(0,8)),1)]}),_:2},1024)]),extra:r(()=>[A("div",Me,[a(ne,{type:"text",size:"small",tooltip:"Copy URL",onClick:K(s=>E(t.id),["stop"])},{default:r(()=>[a(e(Ze))]),_:2},1032,["onClick"]),b(" "+v(e(de)(t.status))+" ",1),a(re,{status:t.status},null,8,["status"])])]),default:r(()=>[e(o).currentPage.executionData[t.id]?(n(),g(e(W),{key:1,vertical:"",gap:"middle"},{default:r(()=>[a(le,{data:d(t.context,e(o).currentPage.executionData[t.id].tasks),"show-fix-with-ai":!1},null,8,["data"]),a(oe,{logs:e(o).currentPage.executionData[t.id].logs},null,8,["logs"])]),_:2},1024)):(n(),c("div",Ue,[a(e($))]))]),_:2},1024))),128))]),_:1},8,["active-key","onChange"]),a(e(Y),{current:e(o).pagination.currentIndex,"onUpdate:current":l[9]||(l[9]=t=>e(o).pagination.currentIndex=t),"page-size":e(o).pagination.pageSize,"onUpdate:pageSize":l[10]||(l[10]=t=>e(o).pagination.pageSize=t),total:e(o).pagination.totalCount,"show-total":t=>`Found ${t} runs`,"show-size-changer":""},null,8,["current","page-size","total","show-total"])]),_:1})):(n(),g(e(ee),{key:4}))]),_:1}))}}),tt=U({__name:"Logs",setup(p){const i=new se,f=new fe;return(k,L)=>(n(),g(je,{"execution-repository":e(i),"build-repository":e(f),"show-all-filters":""},null,8,["execution-repository","build-repository"]))}});export{tt as default};
2
- //# sourceMappingURL=Logs.819710e0.js.map
1
+ import{d as U,am as S,c as D,o as n,a5 as c,a7 as O,h as T,e6 as V,e as A,eb as H,e5 as N,j as q,a as g,b as r,u as e,er as C,f as a,g as b,A as Q,cy as j,cz as m,bJ as G,aB as _,S as $,ec as J,d4 as I,ed as v,ei as K,de as W,aR as X,bO as Y,cx as ee,cH as te}from"./jwt-decode.esm.b204fb7d.js";import{a as ae,E as le,L as oe}from"./LogsController.353f0002.js";import{_ as re,R as se}from"./repository.ae6e826f.js";import{_ as ne}from"./AbstraButton.vue_vue_type_script_setup_true_lang.c714d609.js";import{g as ie}from"./datetime.7d5f4744.js";import{c as de}from"./string.4a80abd5.js";import{a as h,f as M,A as ue,C as pe}from"./router.29d47df0.js";import{R as B}from"./dayjs.19defe89.js";import{A as F}from"./index.e7bc0e19.js";import{b as fe}from"./build.c819a477.js";import"./tables.e80a0328.js";import"./ant-design.771baa34.js";import"./PhCopy.vue.b1c2f21f.js";import"./polling.5f85e241.js";import"./LoadingOutlined.11688830.js";import"./index.26a34a52.js";import"./record.316e025a.js";(function(){try{var p=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new Error().stack;i&&(p._sentryDebugIds=p._sentryDebugIds||{},p._sentryDebugIds[i]="e30475aa-e9f3-4e37-ad60-509ad9b5224c",p._sentryDebugIdIdentifier="sentry-dbid-e30475aa-e9f3-4e37-ad60-509ad9b5224c")}catch{}})();const ge=["width","height","fill","transform"],ce={key:0},ye=A("path",{d:"M117.18,188.74a12,12,0,0,1,0,17l-5.12,5.12A58.26,58.26,0,0,1,70.6,228h0A58.62,58.62,0,0,1,29.14,127.92L63.89,93.17a58.64,58.64,0,0,1,98.56,28.11,12,12,0,1,1-23.37,5.44,34.65,34.65,0,0,0-58.22-16.58L46.11,144.89A34.62,34.62,0,0,0,70.57,204h0a34.41,34.41,0,0,0,24.49-10.14l5.11-5.12A12,12,0,0,1,117.18,188.74ZM226.83,45.17a58.65,58.65,0,0,0-82.93,0l-5.11,5.11a12,12,0,0,0,17,17l5.12-5.12a34.63,34.63,0,1,1,49,49L175.1,145.86A34.39,34.39,0,0,1,150.61,156h0a34.63,34.63,0,0,1-33.69-26.72,12,12,0,0,0-23.38,5.44A58.64,58.64,0,0,0,150.56,180h.05a58.28,58.28,0,0,0,41.47-17.17l34.75-34.75a58.62,58.62,0,0,0,0-82.91Z"},null,-1),me=[ye],he={key:1},Ae=A("path",{d:"M218.34,119.6,183.6,154.34a46.58,46.58,0,0,1-44.31,12.26c-.31.34-.62.67-.95,1L103.6,202.34A46.63,46.63,0,1,1,37.66,136.4L72.4,101.66A46.6,46.6,0,0,1,116.71,89.4c.31-.34.62-.67,1-1L152.4,53.66a46.63,46.63,0,0,1,65.94,65.94Z",opacity:"0.2"},null,-1),be=A("path",{d:"M240,88.23a54.43,54.43,0,0,1-16,37L189.25,160a54.27,54.27,0,0,1-38.63,16h-.05A54.63,54.63,0,0,1,96,119.84a8,8,0,0,1,16,.45A38.62,38.62,0,0,0,150.58,160h0a38.39,38.39,0,0,0,27.31-11.31l34.75-34.75a38.63,38.63,0,0,0-54.63-54.63l-11,11A8,8,0,0,1,135.7,59l11-11A54.65,54.65,0,0,1,224,48,54.86,54.86,0,0,1,240,88.23ZM109,185.66l-11,11A38.41,38.41,0,0,1,70.6,208h0a38.63,38.63,0,0,1-27.29-65.94L78,107.31A38.63,38.63,0,0,1,144,135.71a8,8,0,0,0,7.78,8.22H152a8,8,0,0,0,8-7.78A54.86,54.86,0,0,0,144,96a54.65,54.65,0,0,0-77.27,0L32,130.75A54.62,54.62,0,0,0,70.56,224h0a54.28,54.28,0,0,0,38.64-16l11-11A8,8,0,0,0,109,185.66Z"},null,-1),ve=[Ae,be],we={key:2},xe=A("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM115.7,192.49a43.31,43.31,0,0,1-55-66.43l25.37-25.37a43.35,43.35,0,0,1,61.25,0,42.9,42.9,0,0,1,9.95,15.43,8,8,0,1,1-15,5.6A27.33,27.33,0,0,0,97.37,112L72,137.37a27.32,27.32,0,0,0,34.68,41.91,8,8,0,1,1,9,13.21Zm79.61-62.55-25.37,25.37A43,43,0,0,1,139.32,168h0a43.35,43.35,0,0,1-40.53-28.12,8,8,0,1,1,15-5.6A27.35,27.35,0,0,0,139.28,152h0a27.14,27.14,0,0,0,19.32-8L184,118.63a27.32,27.32,0,0,0-34.68-41.91,8,8,0,1,1-9-13.21,43.32,43.32,0,0,1,55,66.43Z"},null,-1),_e=[xe],Ie={key:3},ke=A("path",{d:"M238,88.18a52.42,52.42,0,0,1-15.4,35.66l-34.75,34.75A52.28,52.28,0,0,1,150.62,174h-.05A52.63,52.63,0,0,1,98,119.9a6,6,0,0,1,6-5.84h.17a6,6,0,0,1,5.83,6.16A40.62,40.62,0,0,0,150.58,162h0a40.4,40.4,0,0,0,28.73-11.9l34.75-34.74A40.63,40.63,0,0,0,156.63,57.9l-11,11a6,6,0,0,1-8.49-8.49l11-11a52.62,52.62,0,0,1,74.43,0A52.83,52.83,0,0,1,238,88.18Zm-127.62,98.9-11,11A40.36,40.36,0,0,1,70.6,210h0a40.63,40.63,0,0,1-28.7-69.36L76.62,105.9A40.63,40.63,0,0,1,146,135.77a6,6,0,0,0,5.83,6.16H152a6,6,0,0,0,6-5.84A52.63,52.63,0,0,0,68.14,97.42L33.38,132.16A52.63,52.63,0,0,0,70.56,222h0a52.26,52.26,0,0,0,37.22-15.42l11-11a6,6,0,1,0-8.49-8.48Z"},null,-1),Le=[ke],Re={key:4},Se=A("path",{d:"M240,88.23a54.43,54.43,0,0,1-16,37L189.25,160a54.27,54.27,0,0,1-38.63,16h-.05A54.63,54.63,0,0,1,96,119.84a8,8,0,0,1,16,.45A38.62,38.62,0,0,0,150.58,160h0a38.39,38.39,0,0,0,27.31-11.31l34.75-34.75a38.63,38.63,0,0,0-54.63-54.63l-11,11A8,8,0,0,1,135.7,59l11-11A54.65,54.65,0,0,1,224,48,54.86,54.86,0,0,1,240,88.23ZM109,185.66l-11,11A38.41,38.41,0,0,1,70.6,208h0a38.63,38.63,0,0,1-27.29-65.94L78,107.31A38.63,38.63,0,0,1,144,135.71a8,8,0,0,0,16,.45A54.86,54.86,0,0,0,144,96a54.65,54.65,0,0,0-77.27,0L32,130.75A54.62,54.62,0,0,0,70.56,224h0a54.28,54.28,0,0,0,38.64-16l11-11A8,8,0,0,0,109,185.66Z"},null,-1),De=[Se],Ce={key:5},Pe=A("path",{d:"M236,88.12a50.44,50.44,0,0,1-14.81,34.31l-34.75,34.74A50.33,50.33,0,0,1,150.62,172h-.05A50.63,50.63,0,0,1,100,120a4,4,0,0,1,4-3.89h.11a4,4,0,0,1,3.89,4.11A42.64,42.64,0,0,0,150.58,164h0a42.32,42.32,0,0,0,30.14-12.49l34.75-34.74a42.63,42.63,0,1,0-60.29-60.28l-11,11a4,4,0,0,1-5.66-5.65l11-11A50.64,50.64,0,0,1,236,88.12ZM111.78,188.49l-11,11A42.33,42.33,0,0,1,70.6,212h0a42.63,42.63,0,0,1-30.11-72.77l34.75-34.74A42.63,42.63,0,0,1,148,135.82a4,4,0,0,0,8,.23A50.64,50.64,0,0,0,69.55,98.83L34.8,133.57A50.63,50.63,0,0,0,70.56,220h0a50.33,50.33,0,0,0,35.81-14.83l11-11a4,4,0,1,0-5.65-5.66Z"},null,-1),ze=[Pe],Ee={name:"PhLink"},Ze=U({...Ee,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(p){const i=p,f=S("weight","regular"),k=S("size","1em"),L=S("color","currentColor"),P=S("mirrored",!1),y=D(()=>{var d;return(d=i.weight)!=null?d:f}),R=D(()=>{var d;return(d=i.size)!=null?d:k}),z=D(()=>{var d;return(d=i.color)!=null?d:L}),E=D(()=>i.mirrored!==void 0?i.mirrored?"scale(-1, 1)":void 0:P?"scale(-1, 1)":void 0);return(d,w)=>(n(),c("svg",V({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:R.value,height:R.value,fill:z.value,transform:E.value},d.$attrs),[O(d.$slots,"default"),y.value==="bold"?(n(),c("g",ce,me)):y.value==="duotone"?(n(),c("g",he,ve)):y.value==="fill"?(n(),c("g",we,_e)):y.value==="light"?(n(),c("g",Ie,Le)):y.value==="regular"?(n(),c("g",Re,De)):y.value==="thin"?(n(),c("g",Ce,ze)):T("",!0)],16,ge))}}),Me={style:{width:"100px",height:"100%",display:"flex","align-items":"center","justify-content":"right",gap:"10px"}},Ue={key:0,style:{display:"flex",width:"100%","justify-content":"center"}},je=U({__name:"Logs",props:{executionRepository:{},buildRepository:{},showAllFilters:{type:Boolean}},setup(p){const i=p,f=H(),k=N(),L=f.params.projectId,P=f.query.executionId;function y(){const{stageId:u,buildId:l,status:t,startDate:s,endDate:x,runId:Z}=f.query;return s&&x?{stageId:u,buildId:l,status:t,dateRange:[C(s),C(x)]}:{stageId:u,buildId:l,status:t,search:Z}}function R(u){const l={};Object.entries(u).forEach(([t,s])=>{typeof s=="string"&&t==="search"&&s?l.runId=s:typeof s=="string"&&s?l[t]=s:t==="dateRange"&&s&&C.isDayjs(s[0])&&C.isDayjs(s[1])&&(l.startDate=s[0].toISOString(),l.endDate=s[1].toISOString())}),k.replace({query:l})}function z(){const{page:u,pageSize:l}=f.query;return{page:u?parseInt(u,10):1,pageSize:l?parseInt(l,10):10}}function E(u){const l=u.slice(0,6),t=`${window.location.origin}${window.location.pathname}?runId=${l}`;navigator.clipboard.writeText(t),te.success({content:"Copied to clipboard"})}function d(u,l){let t={...u};return t.sentTasks=l.sentTasks,delete t.mockExecution,l.triggerTask&&(t.triggerTask=l.triggerTask,delete t.taskId),t}const w=new ae(i.executionRepository,i.buildRepository,L,y(),z(),P,R),{state:o}=w;return w.init(),q(()=>w.teardown()),(u,l)=>(n(),g(e(F),{direction:"vertical",style:{width:"100%",padding:"0px 0px 20px 0px"}},{default:r(()=>[a(e(Q),null,{default:r(()=>[b("Logs")]),_:1}),u.showAllFilters?(n(),g(e(j),{key:0,layout:"vertical"},{default:r(()=>[a(e(M),{gutter:10},{default:r(()=>[a(e(h),{span:12},{default:r(()=>[a(e(m),{label:"Run ID"},{default:r(()=>[a(e(G),{value:e(o).filters.search,"onUpdate:value":l[0]||(l[0]=t=>e(o).filters.search=t),placeholder:"Search by Run ID",style:{width:"100%"}},null,8,["value"])]),_:1})]),_:1}),a(e(h),{span:12},{default:r(()=>[a(e(m),{label:"Stage"},{default:r(()=>[a(e(_),{value:e(o).filters.stageId,"onUpdate:value":l[1]||(l[1]=t=>e(o).filters.stageId=t),options:e(o).filterOptions.stages,placeholder:"All","allow-clear":""},null,8,["value","options"])]),_:1})]),_:1})]),_:1}),a(e(M),{gutter:10},{default:r(()=>[a(e(h),{span:8},{default:r(()=>[a(e(m),{label:"Date"},{default:r(()=>[a(e(B),{value:e(o).filters.dateRange,"onUpdate:value":l[2]||(l[2]=t=>e(o).filters.dateRange=t),style:{width:"100%"}},null,8,["value"])]),_:1})]),_:1}),a(e(h),{span:10},{default:r(()=>[a(e(m),{label:"Version"},{default:r(()=>[a(e(_),{value:e(o).filters.buildId,"onUpdate:value":l[3]||(l[3]=t=>e(o).filters.buildId=t),options:e(o).filterOptions.builds,"option-label":"label","option-value":"value",filter:!1,placeholder:"All","allow-clear":""},null,8,["value","options"])]),_:1})]),_:1}),a(e(h),{span:6},{default:r(()=>[a(e(m),{label:"Status"},{default:r(()=>[a(e(_),{value:e(o).filters.status,"onUpdate:value":l[4]||(l[4]=t=>e(o).filters.status=t),options:e(o).filterOptions.statuses,"option-label":"label","option-value":"value",filter:!1,placeholder:"All","allow-clear":""},null,8,["value","options"])]),_:1})]),_:1})]),_:1})]),_:1})):(n(),g(e(j),{key:1,layout:"vertical"},{default:r(()=>[a(e(M),{gutter:10},{default:r(()=>[a(e(h),{span:8},{default:r(()=>[a(e(m),{label:"Date"},{default:r(()=>[a(e(B),{value:e(o).filters.dateRange,"onUpdate:value":l[5]||(l[5]=t=>e(o).filters.dateRange=t),style:{width:"100%"}},null,8,["value"])]),_:1})]),_:1}),a(e(h),{span:10},{default:r(()=>[a(e(m),{label:"Script"},{default:r(()=>[a(e(_),{value:e(o).filters.stageId,"onUpdate:value":l[6]||(l[6]=t=>e(o).filters.stageId=t),options:e(o).filterOptions.stages,placeholder:"All","allow-clear":""},null,8,["value","options"])]),_:1})]),_:1}),a(e(h),{span:6},{default:r(()=>[a(e(m),{label:"Status"},{default:r(()=>[a(e(_),{value:e(o).filters.status,"onUpdate:value":l[7]||(l[7]=t=>e(o).filters.status=t),options:e(o).filterOptions.statuses,"option-label":"label","option-value":"value",filter:!1,placeholder:"All","allow-clear":""},null,8,["value","options"])]),_:1})]),_:1})]),_:1})]),_:1})),e(o).currentPage.loadingExecutions||e(o).currentPage.waitingDebounce?(n(),g(e($),{key:2,style:{width:"100%"}})):e(o).currentPage.executions&&e(o).currentPage.executions.length>0?(n(),g(e(F),{key:3,direction:"vertical",style:{width:"100%"}},{default:r(()=>[a(e(pe),{"active-key":e(o).currentPage.openedExecutionIds,"onUpdate:activeKey":l[8]||(l[8]=t=>e(o).currentPage.openedExecutionIds=t),bordered:!1,style:{"background-color":"transparent"},onChange:e(w).fetchEmptyLogs},{default:r(()=>[(n(!0),c(X,null,J(e(o).currentPage.executions,t=>(n(),g(e(ue),{key:t.id,style:{"border-radius":"4px","margin-bottom":"10px",border:"0",overflow:"hidden","background-color":"#fff"}},{header:r(()=>[a(e(I),{color:"default",style:{"margin-right":"10px"},bordered:!1},{default:r(()=>[b(v(e(ie)(t.createdAt)),1)]),_:2},1024),a(e(I),{color:"default",style:{"margin-right":"10px"},bordered:!1},{default:r(()=>[b(" Run ID: "+v(t.id.slice(0,8)),1)]),_:2},1024),a(e(I),{color:"default",style:{"margin-right":"10px"},bordered:!1},{default:r(()=>[b(" Version: "+v(t.buildId.slice(0,8)),1)]),_:2},1024),a(e(I),{color:"default",style:{"margin-right":"10px"},bordered:!1},{default:r(()=>[b(" Duration: "+v(t.duration_seconds),1)]),_:2},1024),a(e(I),{color:"default",style:{"margin-right":"10px"},bordered:!1},{default:r(()=>{var s,x;return[b(v((x=(s=e(o).filterOptions.stages.find(Z=>Z.value===t.stageId))==null?void 0:s.label)!=null?x:t.stageId.slice(0,8)),1)]}),_:2},1024)]),extra:r(()=>[A("div",Me,[a(ne,{type:"text",size:"small",tooltip:"Copy URL",onClick:K(s=>E(t.id),["stop"])},{default:r(()=>[a(e(Ze))]),_:2},1032,["onClick"]),b(" "+v(e(de)(t.status))+" ",1),a(re,{status:t.status},null,8,["status"])])]),default:r(()=>[e(o).currentPage.executionData[t.id]?(n(),g(e(W),{key:1,vertical:"",gap:"middle"},{default:r(()=>[a(le,{data:d(t.context,e(o).currentPage.executionData[t.id].tasks),"show-fix-with-ai":!1},null,8,["data"]),a(oe,{logs:e(o).currentPage.executionData[t.id].logs},null,8,["logs"])]),_:2},1024)):(n(),c("div",Ue,[a(e($))]))]),_:2},1024))),128))]),_:1},8,["active-key","onChange"]),a(e(Y),{current:e(o).pagination.currentIndex,"onUpdate:current":l[9]||(l[9]=t=>e(o).pagination.currentIndex=t),"page-size":e(o).pagination.pageSize,"onUpdate:pageSize":l[10]||(l[10]=t=>e(o).pagination.pageSize=t),total:e(o).pagination.totalCount,"show-total":t=>`Found ${t} runs`,"show-size-changer":""},null,8,["current","page-size","total","show-total"])]),_:1})):(n(),g(e(ee),{key:4}))]),_:1}))}}),tt=U({__name:"Logs",setup(p){const i=new se,f=new fe;return(k,L)=>(n(),g(je,{"execution-repository":e(i),"build-repository":e(f),"show-all-filters":""},null,8,["execution-repository","build-repository"]))}});export{tt as default};
2
+ //# sourceMappingURL=Logs.f57284a4.js.map
@@ -1,2 +1,2 @@
1
- var O=Object.defineProperty;var j=(d,t,a)=>t in d?O(d,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):d[t]=a;var m=(d,t,a)=>(j(d,typeof t!="symbol"?t+"":t,a),a);import{d as C,am as H,c as v,o,a5 as h,a7 as B,h as y,e6 as F,e as g,a as x,b as p,aR as P,ec as E,a6 as L,ed as S,u as c,da as w,g as A,de as D,_ as T,f as u,aV as V,ea as $,d1 as z,cH as Z,ae as N,w as k,el as q}from"./jwt-decode.esm.611ae497.js";import{t as W}from"./ant-design.a7203613.js";import{c as M}from"./string.12f8032a.js";import{I}from"./PhCopy.vue.c5a6ae9d.js";import{A as J}from"./index.c85af12a.js";import{A as G,C as Q}from"./router.1f8c25cb.js";import{B as U}from"./build.3d214204.js";import"./tables.5944415f.js";import{e as X}from"./repository.7471bf9f.js";import{u as Y}from"./polling.06d43d12.js";(function(){try{var d=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(d._sentryDebugIds=d._sentryDebugIds||{},d._sentryDebugIds[t]="98b6da13-29a5-47cd-99f9-6d22d00446db",d._sentryDebugIdIdentifier="sentry-dbid-98b6da13-29a5-47cd-99f9-6d22d00446db")}catch{}})();const K=["width","height","fill","transform"],tt={key:0},et=g("path",{d:"M72,104a16,16,0,1,1,16,16A16,16,0,0,1,72,104Zm96,16a16,16,0,1,0-16-16A16,16,0,0,0,168,120Zm68-40V192a36,36,0,0,1-36,36H56a36,36,0,0,1-36-36V80A36,36,0,0,1,56,44h60V16a12,12,0,0,1,24,0V44h60A36,36,0,0,1,236,80Zm-24,0a12,12,0,0,0-12-12H56A12,12,0,0,0,44,80V192a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12Zm-12,82a30,30,0,0,1-30,30H86a30,30,0,0,1,0-60h84A30,30,0,0,1,200,162Zm-80-6v12h16V156ZM86,168H96V156H86a6,6,0,0,0,0,12Zm90-6a6,6,0,0,0-6-6H160v12h10A6,6,0,0,0,176,162Z"},null,-1),at=[et],st={key:1},it=g("path",{d:"M200,56H56A24,24,0,0,0,32,80V192a24,24,0,0,0,24,24H200a24,24,0,0,0,24-24V80A24,24,0,0,0,200,56ZM164,184H92a20,20,0,0,1,0-40h72a20,20,0,0,1,0,40Z",opacity:"0.2"},null,-1),ot=g("path",{d:"M200,48H136V16a8,8,0,0,0-16,0V48H56A32,32,0,0,0,24,80V192a32,32,0,0,0,32,32H200a32,32,0,0,0,32-32V80A32,32,0,0,0,200,48Zm16,144a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V80A16,16,0,0,1,56,64H200a16,16,0,0,1,16,16ZM72,108a12,12,0,1,1,12,12A12,12,0,0,1,72,108Zm88,0a12,12,0,1,1,12,12A12,12,0,0,1,160,108Zm4,28H92a28,28,0,0,0,0,56h72a28,28,0,0,0,0-56Zm-24,16v24H116V152ZM80,164a12,12,0,0,1,12-12h8v24H92A12,12,0,0,1,80,164Zm84,12h-8V152h8a12,12,0,0,1,0,24Z"},null,-1),rt=[it,ot],nt={key:2},lt=g("path",{d:"M200,48H136V16a8,8,0,0,0-16,0V48H56A32,32,0,0,0,24,80V192a32,32,0,0,0,32,32H200a32,32,0,0,0,32-32V80A32,32,0,0,0,200,48ZM172,96a12,12,0,1,1-12,12A12,12,0,0,1,172,96ZM96,184H80a16,16,0,0,1,0-32H96ZM84,120a12,12,0,1,1,12-12A12,12,0,0,1,84,120Zm60,64H112V152h32Zm32,0H160V152h16a16,16,0,0,1,0,32Z"},null,-1),ct=[lt],dt={key:3},ht=g("path",{d:"M200,50H134V16a6,6,0,0,0-12,0V50H56A30,30,0,0,0,26,80V192a30,30,0,0,0,30,30H200a30,30,0,0,0,30-30V80A30,30,0,0,0,200,50Zm18,142a18,18,0,0,1-18,18H56a18,18,0,0,1-18-18V80A18,18,0,0,1,56,62H200a18,18,0,0,1,18,18ZM74,108a10,10,0,1,1,10,10A10,10,0,0,1,74,108Zm88,0a10,10,0,1,1,10,10A10,10,0,0,1,162,108Zm2,30H92a26,26,0,0,0,0,52h72a26,26,0,0,0,0-52Zm-22,12v28H114V150ZM78,164a14,14,0,0,1,14-14h10v28H92A14,14,0,0,1,78,164Zm86,14H154V150h10a14,14,0,0,1,0,28Z"},null,-1),pt=[ht],ut={key:4},gt=g("path",{d:"M200,48H136V16a8,8,0,0,0-16,0V48H56A32,32,0,0,0,24,80V192a32,32,0,0,0,32,32H200a32,32,0,0,0,32-32V80A32,32,0,0,0,200,48Zm16,144a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V80A16,16,0,0,1,56,64H200a16,16,0,0,1,16,16Zm-52-56H92a28,28,0,0,0,0,56h72a28,28,0,0,0,0-56Zm-24,16v24H116V152ZM80,164a12,12,0,0,1,12-12h8v24H92A12,12,0,0,1,80,164Zm84,12h-8V152h8a12,12,0,0,1,0,24ZM72,108a12,12,0,1,1,12,12A12,12,0,0,1,72,108Zm88,0a12,12,0,1,1,12,12A12,12,0,0,1,160,108Z"},null,-1),ft=[gt],mt={key:5},yt=g("path",{d:"M200,52H132V16a4,4,0,0,0-8,0V52H56A28,28,0,0,0,28,80V192a28,28,0,0,0,28,28H200a28,28,0,0,0,28-28V80A28,28,0,0,0,200,52Zm20,140a20,20,0,0,1-20,20H56a20,20,0,0,1-20-20V80A20,20,0,0,1,56,60H200a20,20,0,0,1,20,20ZM76,108a8,8,0,1,1,8,8A8,8,0,0,1,76,108Zm88,0a8,8,0,1,1,8,8A8,8,0,0,1,164,108Zm0,32H92a24,24,0,0,0,0,48h72a24,24,0,0,0,0-48Zm-20,8v32H112V148ZM76,164a16,16,0,0,1,16-16h12v32H92A16,16,0,0,1,76,164Zm88,16H152V148h12a16,16,0,0,1,0,32Z"},null,-1),xt=[yt],bt={name:"PhRobot"},_t=C({...bt,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(d){const t=d,a=H("weight","regular"),s=H("size","1em"),i=H("color","currentColor"),r=H("mirrored",!1),n=v(()=>{var l;return(l=t.weight)!=null?l:a}),f=v(()=>{var l;return(l=t.size)!=null?l:s}),e=v(()=>{var l;return(l=t.color)!=null?l:i}),b=v(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:r?"scale(-1, 1)":void 0);return(l,_)=>(o(),h("svg",F({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:f.value,height:f.value,fill:e.value,transform:b.value},l.$attrs),[B(l.$slots,"default"),n.value==="bold"?(o(),h("g",tt,at)):n.value==="duotone"?(o(),h("g",st,rt)):n.value==="fill"?(o(),h("g",nt,ct)):n.value==="light"?(o(),h("g",dt,pt)):n.value==="regular"?(o(),h("g",ut,ft)):n.value==="thin"?(o(),h("g",mt,xt)):y("",!0)],16,K))}}),At={key:0,class:"cli"},Ht={key:0},vt=C({__name:"LogContainer",props:{logs:{}},setup(d){return(t,a)=>(o(),x(c(D),{vertical:"",gap:"small"},{default:p(()=>[t.logs.entries.length?(o(),h("div",At,[(o(!0),h(P,null,E(t.logs.entries,s=>(o(),h("p",{key:s.createdAt,style:L({margin:0,"white-space":"pre-wrap",color:s.event==="unhandled-exception"?"rgb(255, 133, 133)":"inherit"})},[s.payload.text?(o(),h("span",Ht,S(s.payload.text.trim()),1)):y("",!0)],4))),128))])):(o(),x(c(w),{key:1,type:"secondary"},{default:p(()=>[A("Empty")]),_:1}))]),_:1}))}});const Bt=T(vt,[["__scopeId","data-v-b7f04a41"]]),Zt={key:0},wt=["onClick"],Vt=["onClick"],kt=C({__name:"ExecutionContext",props:{data:{},showFixWithAi:{type:Boolean},isSmartChatIdle:{type:Boolean}},emits:["ask-ai"],setup(d,{emit:t}){const a=d,s=e=>{if(e==="legacyThreadData")return"Thread data";const b=M(e);return b.replace(/([A-Z])/g," $1").trim(),b},i=e=>e==null?!0:Array.isArray(e)?e.length===0:typeof e=="object"?Object.keys(e).length===0:!1,r=e=>{typeof e=="object"&&e!==null&&"payload"in e?(navigator.clipboard.writeText(JSON.stringify(e.payload)),Z.success({content:"Copied to clipboard"})):(navigator.clipboard.writeText(""),Z.error({content:"No payload to copy"}))},n=e=>{e.stopPropagation(),a.isSmartChatIdle!==!1&&t("ask-ai")},f=e=>{typeof e=="object"?(navigator.clipboard.writeText(JSON.stringify(e)),Z.success({content:"Copied to clipboard"})):(navigator.clipboard.writeText(""),Z.error({content:"Failed to copy request"}))};return(e,b)=>(o(),x(c(Q),{bordered:!1,style:{"background-color":"transparent",width:"100%"}},{default:p(()=>[u(c(G),{key:"execution-context"},{header:p(()=>[u(c(D),{justify:"space-between"},{default:p(()=>[u(c(w),null,{default:p(()=>[A("Execution context")]),_:1}),u(c(V),{title:e.isSmartChatIdle?"":"Wait or stop the response first",placement:"left"},{default:p(()=>[e.showFixWithAi?(o(),h("div",{key:0,class:$(["ask-to-ai",{disabled:!e.isSmartChatIdle}]),onClick:n},[A(" Fix with AI "),u(c(_t),{size:16})],2)):y("",!0)]),_:1},8,["title"])]),_:1})]),default:p(()=>[u(c(J),{direction:"vertical",style:{"border-radius":"5px",padding:"10px",color:"#fff",width:"100%","font-family":"monospace","max-height":"600px",overflow:"auto",border:"1px solid #e8e8e8"}},{default:p(()=>[Object.keys(e.data).length?(o(!0),h(P,{key:1},E(Object.entries(e.data),([l,_])=>(o(),h("div",{key:l,class:"tree"},[l!=="legacyThreadData"||!i(_)?(o(),h("div",Zt,[u(c(w),{strong:""},{default:p(()=>[A(S(s(l)),1)]),_:2},1024),l==="request"?(o(),x(c(V),{key:0,title:"Copy Request Data"},{default:p(()=>[g("span",{style:{"margin-left":"5px",cursor:"pointer",color:"initial"},onClick:R=>f(_)},[u(c(I))],8,wt)]),_:2},1024)):y("",!0),l==="triggerTask"?(o(),x(c(V),{key:1,title:"Copy Payload Data"},{default:p(()=>[g("span",{style:{"margin-left":"5px",cursor:"pointer",color:"initial"},onClick:R=>r(_)},[u(c(I))],8,Vt)]),_:2},1024)):y("",!0),u(c(z),{"tree-data":c(W)(_),selectable:!1},null,8,["tree-data"])])):y("",!0)]))),128)):(o(),x(c(w),{key:0,type:"secondary"},{default:p(()=>[A("Empty")]),_:1}))]),_:1})]),_:1})]),_:1}))}});const Ft=T(kt,[["__scopeId","data-v-cdd3162a"]]);class Lt{constructor(t,a,s,i,r,n,f){m(this,"state");m(this,"polling",Y({task:()=>this.refetch(),interval:1e4}));m(this,"handleFilterChange",()=>{this.state.currentPage.waitingDebounce=!0,this.state.pagination.currentIndex=1,this.debouncedPageRefetch(),this.onFilterChange&&this.onFilterChange(this.state.filters)});m(this,"debouncedPageRefetch",q.exports.debounce(async()=>{await this.fetchPage(),this.state.currentPage.waitingDebounce=!1},500));m(this,"fetchEmptyLogs",()=>{this.state.currentPage.openedExecutionIds.forEach(async t=>{this.state.currentPage.executionData[t]||await this.fetchExecutionDetails(t)})});this.executionRepository=t,this.buildRepository=a,this.projectId=s,this.onFilterChange=f,this.state=N({currentPage:{openedExecutionIds:n?[n]:[],loadingExecutions:!1,waitingDebounce:!1,executions:[],executionData:{}},pagination:{currentIndex:1,pageSize:10,totalCount:0,...r},filters:{dateRange:void 0,buildId:void 0,stageId:void 0,status:void 0,search:void 0,...i},filterOptions:{builds:[],stages:[],statuses:X.map(e=>({label:M(e),value:e}))}}),k(()=>this.state.filters.buildId,()=>{this.fetchStageOptions()}),k(this.state.filters,()=>{this.state.currentPage.openedExecutionIds=[],this.handleFilterChange()}),k(this.state.pagination,()=>{this.state.currentPage.openedExecutionIds=[],this.fetchPage()})}async init(){await Promise.all([this.fetchPage(),this.fetchOptions()]),this.fetchEmptyLogs(),this.polling.startPolling()}teardown(){this.polling.endPolling()}async getNewestExecutionId(t){let a=this.state.currentPage.executions;return t&&(a=a.filter(i=>i.stageId===t)),a.length===0?null:a.reduce((i,r)=>i.createdAt>r.createdAt?i:r).id}async fetchPage(){var s,i,r,n;this.state.currentPage.loadingExecutions=!0;const{executions:t,totalCount:a}=await this.executionRepository.list({projectId:this.projectId,buildId:this.state.filters.buildId,status:this.state.filters.status,limit:this.state.pagination.pageSize,offset:(this.state.pagination.currentIndex-1)*this.state.pagination.pageSize,stageId:this.state.filters.stageId,startDate:(i=(s=this.state.filters.dateRange)==null?void 0:s[0])==null?void 0:i.toISOString(),endDate:(n=(r=this.state.filters.dateRange)==null?void 0:r[1])==null?void 0:n.toISOString(),search:this.state.filters.search});this.state.currentPage.loadingExecutions=!1,this.state.currentPage.executions=t,this.state.pagination.totalCount=a}async fetchBuildOptions(){if(!this.buildRepository)return;const a=(await this.buildRepository.list(this.projectId)).map(s=>({label:`[${s.id.slice(0,8)}] ${s.createdAt.toLocaleString()} ${s.latest?"(Latest)":""}`,value:s.id}));this.state.filterOptions.builds=a}async fetchStageOptions(){var s;if(!this.buildRepository){const r=(await this.executionRepository.fetchStages()).map(n=>({label:n.title,value:n.id}));this.state.filterOptions.stages=r!=null?r:[];return}const t=await U.get((s=this.state.filters.buildId)!=null?s:this.state.filterOptions.builds[0].value),a=t==null?void 0:t.runtimes.map(i=>({label:i.title,value:i.id}));this.state.filterOptions.stages=a!=null?a:[]}async fetchOptions(){await this.fetchBuildOptions(),await this.fetchStageOptions()}async fetchExecutionDetails(t){const[a,s,i]=await Promise.all([this.executionRepository.fetchLogs(this.projectId,t),this.executionRepository.fetchThreadData(this.projectId,t),this.executionRepository.getExecutionTasks(this.projectId,t)]);this.state.currentPage.executionData[t]={logs:a,threadData:s,tasks:{triggerTask:i.triggerTask?{type:i.triggerTask.type,payload:i.triggerTask.payload}:null,sentTasks:i.sentTasks.map(r=>({type:r.type,payload:r.payload}))}}}async refetch(){this.state.currentPage.openedExecutionIds.map(t=>this.fetchExecutionDetails(t))}}export{Ft as E,Bt as L,Lt as a};
2
- //# sourceMappingURL=LogsController.01feb949.js.map
1
+ var O=Object.defineProperty;var j=(d,t,a)=>t in d?O(d,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):d[t]=a;var m=(d,t,a)=>(j(d,typeof t!="symbol"?t+"":t,a),a);import{d as C,am as H,c as v,o,a5 as h,a7 as B,h as y,e6 as F,e as g,a as x,b as p,aR as P,ec as E,a6 as L,ed as S,u as c,da as w,g as A,de as D,_ as T,f as u,aV as V,ea as $,d1 as z,cH as Z,ae as N,w as k,el as q}from"./jwt-decode.esm.b204fb7d.js";import{t as W}from"./ant-design.771baa34.js";import{c as M}from"./string.4a80abd5.js";import{I}from"./PhCopy.vue.b1c2f21f.js";import{A as J}from"./index.e7bc0e19.js";import{A as G,C as Q}from"./router.29d47df0.js";import{B as U}from"./build.c819a477.js";import"./tables.e80a0328.js";import{e as X}from"./repository.ae6e826f.js";import{u as Y}from"./polling.5f85e241.js";(function(){try{var d=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(d._sentryDebugIds=d._sentryDebugIds||{},d._sentryDebugIds[t]="f14ca3a4-c74e-4062-b258-173c2cb9c937",d._sentryDebugIdIdentifier="sentry-dbid-f14ca3a4-c74e-4062-b258-173c2cb9c937")}catch{}})();const K=["width","height","fill","transform"],tt={key:0},et=g("path",{d:"M72,104a16,16,0,1,1,16,16A16,16,0,0,1,72,104Zm96,16a16,16,0,1,0-16-16A16,16,0,0,0,168,120Zm68-40V192a36,36,0,0,1-36,36H56a36,36,0,0,1-36-36V80A36,36,0,0,1,56,44h60V16a12,12,0,0,1,24,0V44h60A36,36,0,0,1,236,80Zm-24,0a12,12,0,0,0-12-12H56A12,12,0,0,0,44,80V192a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12Zm-12,82a30,30,0,0,1-30,30H86a30,30,0,0,1,0-60h84A30,30,0,0,1,200,162Zm-80-6v12h16V156ZM86,168H96V156H86a6,6,0,0,0,0,12Zm90-6a6,6,0,0,0-6-6H160v12h10A6,6,0,0,0,176,162Z"},null,-1),at=[et],st={key:1},it=g("path",{d:"M200,56H56A24,24,0,0,0,32,80V192a24,24,0,0,0,24,24H200a24,24,0,0,0,24-24V80A24,24,0,0,0,200,56ZM164,184H92a20,20,0,0,1,0-40h72a20,20,0,0,1,0,40Z",opacity:"0.2"},null,-1),ot=g("path",{d:"M200,48H136V16a8,8,0,0,0-16,0V48H56A32,32,0,0,0,24,80V192a32,32,0,0,0,32,32H200a32,32,0,0,0,32-32V80A32,32,0,0,0,200,48Zm16,144a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V80A16,16,0,0,1,56,64H200a16,16,0,0,1,16,16ZM72,108a12,12,0,1,1,12,12A12,12,0,0,1,72,108Zm88,0a12,12,0,1,1,12,12A12,12,0,0,1,160,108Zm4,28H92a28,28,0,0,0,0,56h72a28,28,0,0,0,0-56Zm-24,16v24H116V152ZM80,164a12,12,0,0,1,12-12h8v24H92A12,12,0,0,1,80,164Zm84,12h-8V152h8a12,12,0,0,1,0,24Z"},null,-1),rt=[it,ot],nt={key:2},lt=g("path",{d:"M200,48H136V16a8,8,0,0,0-16,0V48H56A32,32,0,0,0,24,80V192a32,32,0,0,0,32,32H200a32,32,0,0,0,32-32V80A32,32,0,0,0,200,48ZM172,96a12,12,0,1,1-12,12A12,12,0,0,1,172,96ZM96,184H80a16,16,0,0,1,0-32H96ZM84,120a12,12,0,1,1,12-12A12,12,0,0,1,84,120Zm60,64H112V152h32Zm32,0H160V152h16a16,16,0,0,1,0,32Z"},null,-1),ct=[lt],dt={key:3},ht=g("path",{d:"M200,50H134V16a6,6,0,0,0-12,0V50H56A30,30,0,0,0,26,80V192a30,30,0,0,0,30,30H200a30,30,0,0,0,30-30V80A30,30,0,0,0,200,50Zm18,142a18,18,0,0,1-18,18H56a18,18,0,0,1-18-18V80A18,18,0,0,1,56,62H200a18,18,0,0,1,18,18ZM74,108a10,10,0,1,1,10,10A10,10,0,0,1,74,108Zm88,0a10,10,0,1,1,10,10A10,10,0,0,1,162,108Zm2,30H92a26,26,0,0,0,0,52h72a26,26,0,0,0,0-52Zm-22,12v28H114V150ZM78,164a14,14,0,0,1,14-14h10v28H92A14,14,0,0,1,78,164Zm86,14H154V150h10a14,14,0,0,1,0,28Z"},null,-1),pt=[ht],ut={key:4},gt=g("path",{d:"M200,48H136V16a8,8,0,0,0-16,0V48H56A32,32,0,0,0,24,80V192a32,32,0,0,0,32,32H200a32,32,0,0,0,32-32V80A32,32,0,0,0,200,48Zm16,144a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V80A16,16,0,0,1,56,64H200a16,16,0,0,1,16,16Zm-52-56H92a28,28,0,0,0,0,56h72a28,28,0,0,0,0-56Zm-24,16v24H116V152ZM80,164a12,12,0,0,1,12-12h8v24H92A12,12,0,0,1,80,164Zm84,12h-8V152h8a12,12,0,0,1,0,24ZM72,108a12,12,0,1,1,12,12A12,12,0,0,1,72,108Zm88,0a12,12,0,1,1,12,12A12,12,0,0,1,160,108Z"},null,-1),ft=[gt],mt={key:5},yt=g("path",{d:"M200,52H132V16a4,4,0,0,0-8,0V52H56A28,28,0,0,0,28,80V192a28,28,0,0,0,28,28H200a28,28,0,0,0,28-28V80A28,28,0,0,0,200,52Zm20,140a20,20,0,0,1-20,20H56a20,20,0,0,1-20-20V80A20,20,0,0,1,56,60H200a20,20,0,0,1,20,20ZM76,108a8,8,0,1,1,8,8A8,8,0,0,1,76,108Zm88,0a8,8,0,1,1,8,8A8,8,0,0,1,164,108Zm0,32H92a24,24,0,0,0,0,48h72a24,24,0,0,0,0-48Zm-20,8v32H112V148ZM76,164a16,16,0,0,1,16-16h12v32H92A16,16,0,0,1,76,164Zm88,16H152V148h12a16,16,0,0,1,0,32Z"},null,-1),xt=[yt],bt={name:"PhRobot"},_t=C({...bt,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(d){const t=d,a=H("weight","regular"),s=H("size","1em"),i=H("color","currentColor"),r=H("mirrored",!1),n=v(()=>{var l;return(l=t.weight)!=null?l:a}),f=v(()=>{var l;return(l=t.size)!=null?l:s}),e=v(()=>{var l;return(l=t.color)!=null?l:i}),b=v(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:r?"scale(-1, 1)":void 0);return(l,_)=>(o(),h("svg",F({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:f.value,height:f.value,fill:e.value,transform:b.value},l.$attrs),[B(l.$slots,"default"),n.value==="bold"?(o(),h("g",tt,at)):n.value==="duotone"?(o(),h("g",st,rt)):n.value==="fill"?(o(),h("g",nt,ct)):n.value==="light"?(o(),h("g",dt,pt)):n.value==="regular"?(o(),h("g",ut,ft)):n.value==="thin"?(o(),h("g",mt,xt)):y("",!0)],16,K))}}),At={key:0,class:"cli"},Ht={key:0},vt=C({__name:"LogContainer",props:{logs:{}},setup(d){return(t,a)=>(o(),x(c(D),{vertical:"",gap:"small"},{default:p(()=>[t.logs.entries.length?(o(),h("div",At,[(o(!0),h(P,null,E(t.logs.entries,s=>(o(),h("p",{key:s.createdAt,style:L({margin:0,"white-space":"pre-wrap",color:s.event==="unhandled-exception"?"rgb(255, 133, 133)":"inherit"})},[s.payload.text?(o(),h("span",Ht,S(s.payload.text.trim()),1)):y("",!0)],4))),128))])):(o(),x(c(w),{key:1,type:"secondary"},{default:p(()=>[A("Empty")]),_:1}))]),_:1}))}});const Bt=T(vt,[["__scopeId","data-v-b7f04a41"]]),Zt={key:0},wt=["onClick"],Vt=["onClick"],kt=C({__name:"ExecutionContext",props:{data:{},showFixWithAi:{type:Boolean},isSmartChatIdle:{type:Boolean}},emits:["ask-ai"],setup(d,{emit:t}){const a=d,s=e=>{if(e==="legacyThreadData")return"Thread data";const b=M(e);return b.replace(/([A-Z])/g," $1").trim(),b},i=e=>e==null?!0:Array.isArray(e)?e.length===0:typeof e=="object"?Object.keys(e).length===0:!1,r=e=>{typeof e=="object"&&e!==null&&"payload"in e?(navigator.clipboard.writeText(JSON.stringify(e.payload)),Z.success({content:"Copied to clipboard"})):(navigator.clipboard.writeText(""),Z.error({content:"No payload to copy"}))},n=e=>{e.stopPropagation(),a.isSmartChatIdle!==!1&&t("ask-ai")},f=e=>{typeof e=="object"?(navigator.clipboard.writeText(JSON.stringify(e)),Z.success({content:"Copied to clipboard"})):(navigator.clipboard.writeText(""),Z.error({content:"Failed to copy request"}))};return(e,b)=>(o(),x(c(Q),{bordered:!1,style:{"background-color":"transparent",width:"100%"}},{default:p(()=>[u(c(G),{key:"execution-context"},{header:p(()=>[u(c(D),{justify:"space-between"},{default:p(()=>[u(c(w),null,{default:p(()=>[A("Execution context")]),_:1}),u(c(V),{title:e.isSmartChatIdle?"":"Wait or stop the response first",placement:"left"},{default:p(()=>[e.showFixWithAi?(o(),h("div",{key:0,class:$(["ask-to-ai",{disabled:!e.isSmartChatIdle}]),onClick:n},[A(" Fix with AI "),u(c(_t),{size:16})],2)):y("",!0)]),_:1},8,["title"])]),_:1})]),default:p(()=>[u(c(J),{direction:"vertical",style:{"border-radius":"5px",padding:"10px",color:"#fff",width:"100%","font-family":"monospace","max-height":"600px",overflow:"auto",border:"1px solid #e8e8e8"}},{default:p(()=>[Object.keys(e.data).length?(o(!0),h(P,{key:1},E(Object.entries(e.data),([l,_])=>(o(),h("div",{key:l,class:"tree"},[l!=="legacyThreadData"||!i(_)?(o(),h("div",Zt,[u(c(w),{strong:""},{default:p(()=>[A(S(s(l)),1)]),_:2},1024),l==="request"?(o(),x(c(V),{key:0,title:"Copy Request Data"},{default:p(()=>[g("span",{style:{"margin-left":"5px",cursor:"pointer",color:"initial"},onClick:R=>f(_)},[u(c(I))],8,wt)]),_:2},1024)):y("",!0),l==="triggerTask"?(o(),x(c(V),{key:1,title:"Copy Payload Data"},{default:p(()=>[g("span",{style:{"margin-left":"5px",cursor:"pointer",color:"initial"},onClick:R=>r(_)},[u(c(I))],8,Vt)]),_:2},1024)):y("",!0),u(c(z),{"tree-data":c(W)(_),selectable:!1},null,8,["tree-data"])])):y("",!0)]))),128)):(o(),x(c(w),{key:0,type:"secondary"},{default:p(()=>[A("Empty")]),_:1}))]),_:1})]),_:1})]),_:1}))}});const Ft=T(kt,[["__scopeId","data-v-cdd3162a"]]);class Lt{constructor(t,a,s,i,r,n,f){m(this,"state");m(this,"polling",Y({task:()=>this.refetch(),interval:1e4}));m(this,"handleFilterChange",()=>{this.state.currentPage.waitingDebounce=!0,this.state.pagination.currentIndex=1,this.debouncedPageRefetch(),this.onFilterChange&&this.onFilterChange(this.state.filters)});m(this,"debouncedPageRefetch",q.exports.debounce(async()=>{await this.fetchPage(),this.state.currentPage.waitingDebounce=!1},500));m(this,"fetchEmptyLogs",()=>{this.state.currentPage.openedExecutionIds.forEach(async t=>{this.state.currentPage.executionData[t]||await this.fetchExecutionDetails(t)})});this.executionRepository=t,this.buildRepository=a,this.projectId=s,this.onFilterChange=f,this.state=N({currentPage:{openedExecutionIds:n?[n]:[],loadingExecutions:!1,waitingDebounce:!1,executions:[],executionData:{}},pagination:{currentIndex:1,pageSize:10,totalCount:0,...r},filters:{dateRange:void 0,buildId:void 0,stageId:void 0,status:void 0,search:void 0,...i},filterOptions:{builds:[],stages:[],statuses:X.map(e=>({label:M(e),value:e}))}}),k(()=>this.state.filters.buildId,()=>{this.fetchStageOptions()}),k(this.state.filters,()=>{this.state.currentPage.openedExecutionIds=[],this.handleFilterChange()}),k(this.state.pagination,()=>{this.state.currentPage.openedExecutionIds=[],this.fetchPage()})}async init(){await Promise.all([this.fetchPage(),this.fetchOptions()]),this.fetchEmptyLogs(),this.polling.startPolling()}teardown(){this.polling.endPolling()}async getNewestExecutionId(t){let a=this.state.currentPage.executions;return t&&(a=a.filter(i=>i.stageId===t)),a.length===0?null:a.reduce((i,r)=>i.createdAt>r.createdAt?i:r).id}async fetchPage(){var s,i,r,n;this.state.currentPage.loadingExecutions=!0;const{executions:t,totalCount:a}=await this.executionRepository.list({projectId:this.projectId,buildId:this.state.filters.buildId,status:this.state.filters.status,limit:this.state.pagination.pageSize,offset:(this.state.pagination.currentIndex-1)*this.state.pagination.pageSize,stageId:this.state.filters.stageId,startDate:(i=(s=this.state.filters.dateRange)==null?void 0:s[0])==null?void 0:i.toISOString(),endDate:(n=(r=this.state.filters.dateRange)==null?void 0:r[1])==null?void 0:n.toISOString(),search:this.state.filters.search});this.state.currentPage.loadingExecutions=!1,this.state.currentPage.executions=t,this.state.pagination.totalCount=a}async fetchBuildOptions(){if(!this.buildRepository)return;const a=(await this.buildRepository.list(this.projectId)).map(s=>({label:`[${s.id.slice(0,8)}] ${s.createdAt.toLocaleString()} ${s.latest?"(Latest)":""}`,value:s.id}));this.state.filterOptions.builds=a}async fetchStageOptions(){var s;if(!this.buildRepository){const r=(await this.executionRepository.fetchStages()).map(n=>({label:n.title,value:n.id}));this.state.filterOptions.stages=r!=null?r:[];return}const t=await U.get((s=this.state.filters.buildId)!=null?s:this.state.filterOptions.builds[0].value),a=t==null?void 0:t.runtimes.map(i=>({label:i.title,value:i.id}));this.state.filterOptions.stages=a!=null?a:[]}async fetchOptions(){await this.fetchBuildOptions(),await this.fetchStageOptions()}async fetchExecutionDetails(t){const[a,s,i]=await Promise.all([this.executionRepository.fetchLogs(this.projectId,t),this.executionRepository.fetchThreadData(this.projectId,t),this.executionRepository.getExecutionTasks(this.projectId,t)]);this.state.currentPage.executionData[t]={logs:a,threadData:s,tasks:{triggerTask:i.triggerTask?{type:i.triggerTask.type,payload:i.triggerTask.payload}:null,sentTasks:i.sentTasks.map(r=>({type:r.type,payload:r.payload}))}}}async refetch(){this.state.currentPage.openedExecutionIds.map(t=>this.fetchExecutionDetails(t))}}export{Ft as E,Bt as L,Lt as a};
2
+ //# sourceMappingURL=LogsController.353f0002.js.map
@@ -0,0 +1,2 @@
1
+ import{P as f}from"./PlayerNavbar.523eb145.js";import{d as g,e5 as h,eb as c,r as y,c as b,m as k,a5 as v,u as n,a as w,h as L,e as C,f as I,o as i,_ as N}from"./jwt-decode.esm.b204fb7d.js";import{u as V}from"./workspaceStore.9caf566c.js";import"./userStore.26658284.js";import"./index.dfc9f500.js";import"./metadata.e6e36ac2.js";import"./PhUserList.vue.6d0e7bc8.js";import"./PhWebhooksLogo.vue.49b66d69.js";import"./LoadingOutlined.11688830.js";import"./PhSignOut.vue.ee548b4c.js";import"./index.9028af84.js";import"./url.371275cf.js";import"./colorHelpers.c4e8851c.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[e]="28d94014-07b8-4a98-a5ad-209c8ae0cd4b",o._sentryDebugIdIdentifier="sentry-dbid-28d94014-07b8-4a98-a5ad-209c8ae0cd4b")}catch{}})();const x={class:"main-container"},B={class:"content"},D=g({__name:"Main",setup(o){const e=h(),t=V(),d=c().path,a=y(null),u=async({path:r,id:s})=>{a.value=s,await e.push({path:`/${r}`}),a.value=null},p=()=>{e.push({name:"playerLogin"})},l=()=>{e.push({name:"playerLogin"})},_=b(()=>!!c().meta.hideLogin);return(r,s)=>{const m=k("RouterView");return i(),v("div",x,[n(t).state.workspace?(i(),w(f,{key:0,"current-path":n(d),"hide-login":_.value,"runner-data":n(t).state.workspace,loading:a.value,onNavigate:u,onLoginClick:l,onLogoutClick:p},null,8,["current-path","hide-login","runner-data","loading"])):L("",!0),C("section",B,[I(m)])])}}});const H=N(D,[["__scopeId","data-v-f095bece"]]);export{H as default};
2
+ //# sourceMappingURL=Main.635e443c.js.map