abstra 3.23.3__py3-none-any.whl → 3.23.4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (237) hide show
  1. {abstra-3.23.3.dist-info → abstra-3.23.4.dist-info}/METADATA +1 -1
  2. {abstra-3.23.3.dist-info → abstra-3.23.4.dist-info}/RECORD +187 -188
  3. abstra_internals/controllers/execution/consumer.py +27 -39
  4. abstra_internals/controllers/execution/execution.py +7 -4
  5. abstra_internals/controllers/execution/execution_client.py +2 -11
  6. abstra_internals/controllers/execution/execution_client_form.py +10 -11
  7. abstra_internals/controllers/execution/execution_client_hook.py +3 -9
  8. abstra_internals/controllers/execution/execution_stdio.py +3 -14
  9. abstra_internals/controllers/execution/execution_test.py +5 -9
  10. abstra_internals/controllers/execution/worker_process.py +8 -33
  11. abstra_internals/controllers/main.py +18 -26
  12. abstra_internals/entities/execution_context.py +1 -0
  13. abstra_internals/entities/execution_test.py +6 -3
  14. abstra_internals/interface/cli/editor.py +6 -3
  15. abstra_internals/interface/sdk/forms/deprecated/page_test.py +6 -8
  16. abstra_internals/interface/sdk/tables/api_test.py +1 -7
  17. abstra_internals/logs_watcher.py +13 -6
  18. abstra_internals/repositories/consumer.py +1 -3
  19. abstra_internals/repositories/factory.py +7 -6
  20. abstra_internals/repositories/producer.py +7 -41
  21. abstra_internals/repositories/project/project_test.py +1 -6
  22. abstra_internals/repositories/tasks.py +8 -4
  23. abstra_internals/server/blueprints/player.py +39 -24
  24. abstra_internals/server/guards/role_guard_test.py +1 -6
  25. abstra_internals/server/routes/forms.py +10 -3
  26. abstra_internals/server/routes/stdio.py +3 -3
  27. abstra_internals/stdio_patcher.py +4 -4
  28. abstra_internals/tasks_watcher.py +59 -0
  29. abstra_internals/utils/ai.py +4 -9
  30. abstra_statics/dist/assets/{AbstraButton.vue_vue_type_script_setup_true_lang.c714d609.js → AbstraButton.vue_vue_type_script_setup_true_lang.86a761e5.js} +2 -2
  31. abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.d02ffa6d.js +2 -0
  32. abstra_statics/dist/assets/ApiKeys.e132de0a.js +2 -0
  33. abstra_statics/dist/assets/App.9aa34c4e.js +2 -0
  34. abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.9dc1f7e7.js +2 -0
  35. abstra_statics/dist/assets/BaseLayout.d41dae76.js +2 -0
  36. abstra_statics/dist/assets/Billing.04224d7b.js +2 -0
  37. abstra_statics/dist/assets/{Breadcrumb.1d42c80c.js → Breadcrumb.00a432b7.js} +2 -2
  38. abstra_statics/dist/assets/{Builds.4641dcf9.js → Builds.329c2faa.js} +2 -2
  39. abstra_statics/dist/assets/{Card.774e5d67.js → Card.d8993609.js} +2 -2
  40. abstra_statics/dist/assets/{CircularLoading.02fd7b7b.js → CircularLoading.e0819e0b.js} +2 -2
  41. abstra_statics/dist/assets/CloseCircleOutlined.ae1e7621.js +2 -0
  42. abstra_statics/dist/assets/{ConnectorsView.746c7417.js → ConnectorsView.4c23ea88.js} +2 -2
  43. abstra_statics/dist/assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.f2c53fd6.js +2 -0
  44. abstra_statics/dist/assets/{ContentLayout.4fc85c66.js → ContentLayout.9774740e.js} +2 -2
  45. abstra_statics/dist/assets/{CrudView.7f2cbde4.js → CrudView.01e6ed04.js} +2 -2
  46. abstra_statics/dist/assets/{DocsButton.vue_vue_type_script_setup_true_lang.0b26fb89.js → DocsButton.vue_vue_type_script_setup_true_lang.3efd2188.js} +2 -2
  47. abstra_statics/dist/assets/{EditorLogin.45764526.js → EditorLogin.b9477432.js} +2 -2
  48. abstra_statics/dist/assets/{EditorsView.e9452d34.js → EditorsView.ec2e0465.js} +2 -2
  49. abstra_statics/dist/assets/EnvVars.72e8a906.js +2 -0
  50. abstra_statics/dist/assets/Error.75789fcd.js +2 -0
  51. abstra_statics/dist/assets/ExclamationCircleOutlined.443f1727.js +2 -0
  52. abstra_statics/dist/assets/{Files.8bcd4d1f.js → Files.598e1924.js} +2 -2
  53. abstra_statics/dist/assets/Form.dcd328f9.js +2 -0
  54. abstra_statics/dist/assets/{FormRunner.f721431d.js → FormRunner.22c166b3.js} +2 -2
  55. abstra_statics/dist/assets/Home.29af870e.js +2 -0
  56. abstra_statics/dist/assets/Home.5a193adf.js +2 -0
  57. abstra_statics/dist/assets/{Live.2bbd1666.js → Live.47f1d55b.js} +2 -2
  58. abstra_statics/dist/assets/LoadingContainer.4d7a6e83.js +2 -0
  59. abstra_statics/dist/assets/LoadingOutlined.688afd1b.js +2 -0
  60. abstra_statics/dist/assets/Login.543da72d.js +2 -0
  61. abstra_statics/dist/assets/{Login.186f24a9.js → Login.d4ed4415.js} +2 -2
  62. abstra_statics/dist/assets/{Login.vue_vue_type_script_setup_true_lang.fab46c0c.js → Login.vue_vue_type_script_setup_true_lang.7a0b5cb9.js} +2 -2
  63. abstra_statics/dist/assets/Logo.a483cebb.js +2 -0
  64. abstra_statics/dist/assets/Logs.93696d9a.js +2 -0
  65. abstra_statics/dist/assets/LogsController.051e4c97.js +2 -0
  66. abstra_statics/dist/assets/Main.e6271958.js +2 -0
  67. abstra_statics/dist/assets/{MockForm.9b6a244c.js → MockForm.60f0a0c9.js} +2 -2
  68. abstra_statics/dist/assets/Navbar.6beb23a2.js +2 -0
  69. abstra_statics/dist/assets/{NewEditor.1d7ddf86.js → NewEditor.a3f0cf6f.js} +5 -5
  70. abstra_statics/dist/assets/OidcLoginCallback.5d621b1e.js +2 -0
  71. abstra_statics/dist/assets/OidcLogoutCallback.726fd77b.js +2 -0
  72. abstra_statics/dist/assets/{OmniChat.5e68be1c.js → OmniChat.65218812.js} +2 -2
  73. abstra_statics/dist/assets/{OnboardingView.8733d184.js → OnboardingView.7b28e3d9.js} +2 -2
  74. abstra_statics/dist/assets/{Organization.bcb76b94.js → Organization.4d764c53.js} +2 -2
  75. abstra_statics/dist/assets/{Organizations.3dbd99e1.js → Organizations.99154f7f.js} +2 -2
  76. abstra_statics/dist/assets/{PhArrowCounterClockwise.vue.d273955f.js → PhArrowCounterClockwise.vue.731eb94b.js} +2 -2
  77. abstra_statics/dist/assets/{PhArrowSquareOut.vue.0d20b8e9.js → PhArrowSquareOut.vue.da6ece6b.js} +2 -2
  78. abstra_statics/dist/assets/{PhBookBookmark.vue.8611e54f.js → PhBookBookmark.vue.129658c0.js} +2 -2
  79. abstra_statics/dist/assets/{PhChats.vue.3dd1c2d7.js → PhChats.vue.3eae87f1.js} +2 -2
  80. abstra_statics/dist/assets/{PhClockCounterClockwise.vue.853bd5ec.js → PhClockCounterClockwise.vue.83a88fd2.js} +2 -2
  81. abstra_statics/dist/assets/{PhCopy.vue.b1c2f21f.js → PhCopy.vue.889171d4.js} +2 -2
  82. abstra_statics/dist/assets/{PhCopySimple.vue.ffc7ec94.js → PhCopySimple.vue.fa1be768.js} +2 -2
  83. abstra_statics/dist/assets/{PhCube.vue.b5e79047.js → PhCube.vue.c868f288.js} +2 -2
  84. abstra_statics/dist/assets/{PhDotsThreeVertical.vue.89b627bd.js → PhDotsThreeVertical.vue.82ed05fc.js} +2 -2
  85. abstra_statics/dist/assets/{PhDownloadSimple.vue.2c2eeb2c.js → PhDownloadSimple.vue.32b4f321.js} +2 -2
  86. abstra_statics/dist/assets/{PhFolderPlus.vue.e199ba17.js → PhFolderPlus.vue.9b394b08.js} +2 -2
  87. abstra_statics/dist/assets/{PhGear.vue.fbac4098.js → PhGear.vue.bd7172cf.js} +2 -2
  88. abstra_statics/dist/assets/{PhKey.vue.1850e466.js → PhKey.vue.e1681937.js} +2 -2
  89. abstra_statics/dist/assets/{PhPencil.vue.c3c70f7d.js → PhPencil.vue.6abcb050.js} +2 -2
  90. abstra_statics/dist/assets/{PhPencilSimple.vue.ee9d03fc.js → PhPencilSimple.vue.9dc4c516.js} +2 -2
  91. abstra_statics/dist/assets/{PhPencilSimpleLine.vue.6eedd1e6.js → PhPencilSimpleLine.vue.516b8dd0.js} +2 -2
  92. abstra_statics/dist/assets/{PhRocket.vue.56a9b767.js → PhRocket.vue.6310b8e2.js} +2 -2
  93. abstra_statics/dist/assets/{PhSignOut.vue.ee548b4c.js → PhSignOut.vue.33352908.js} +2 -2
  94. abstra_statics/dist/assets/{PhSparkle.vue.dc906cc7.js → PhSparkle.vue.aaea2035.js} +2 -2
  95. abstra_statics/dist/assets/{PhUserList.vue.6d0e7bc8.js → PhUserList.vue.66442c99.js} +2 -2
  96. abstra_statics/dist/assets/{PhUsersThree.vue.528ec19f.js → PhUsersThree.vue.dd3dd5e5.js} +2 -2
  97. abstra_statics/dist/assets/{PhWebhooksLogo.vue.49b66d69.js → PhWebhooksLogo.vue.3159b8c2.js} +2 -2
  98. abstra_statics/dist/assets/{PlayerConfigProvider.ead35c7b.js → PlayerConfigProvider.608f994d.js} +2 -2
  99. abstra_statics/dist/assets/{PlayerNavbar.523eb145.js → PlayerNavbar.db2b0cc0.js} +2 -2
  100. abstra_statics/dist/assets/{Project.d667be48.js → Project.b5f0a540.js} +2 -2
  101. abstra_statics/dist/assets/ProjectLogin.ca80209f.js +2 -0
  102. abstra_statics/dist/assets/{ProjectSettings.78ebb6ae.js → ProjectSettings.c69dc60b.js} +2 -2
  103. abstra_statics/dist/assets/{ProjectsView.0a9b802f.js → ProjectsView.7ea6a476.js} +2 -2
  104. abstra_statics/dist/assets/{SaveButton.7c95c711.js → SaveButton.45360af6.js} +2 -2
  105. abstra_statics/dist/assets/{Sidebar.88ff0297.js → Sidebar.5b02858f.js} +2 -2
  106. abstra_statics/dist/assets/Sql.f80e393a.js +5 -0
  107. abstra_statics/dist/assets/Steps.2a44bd5a.js +2 -0
  108. abstra_statics/dist/assets/{TableEditor.8166dbd3.js → TableEditor.9f5307b3.js} +2 -2
  109. abstra_statics/dist/assets/{Tables.0da330b6.js → Tables.c8410571.js} +2 -2
  110. abstra_statics/dist/assets/{TablesDiagram.67a07e98.js → TablesDiagram.174bf25c.js} +2 -2
  111. abstra_statics/dist/assets/TablesTabs.vue_vue_type_script_setup_true_lang.d32d5407.js +2 -0
  112. abstra_statics/dist/assets/{Tasks.d7e74b8f.js → Tasks.6bf6e3ab.js} +2 -2
  113. abstra_statics/dist/assets/{UploadOutlined.6515c426.js → UploadOutlined.17748ead.js} +2 -2
  114. abstra_statics/dist/assets/{View.2cf966b9.js → View.fc004ade.js} +2 -2
  115. abstra_statics/dist/assets/{View.vue_vue_type_script_setup_true_lang.17304c45.js → View.vue_vue_type_script_setup_true_lang.b156d2b4.js} +2 -2
  116. abstra_statics/dist/assets/{Watermark.4b6da85c.js → Watermark.3f4c77a5.js} +2 -2
  117. abstra_statics/dist/assets/{WebEditor.969d0862.js → WebEditor.1b4c1d6e.js} +2 -2
  118. abstra_statics/dist/assets/WidgetPreview.b3a57be6.js +2 -0
  119. abstra_statics/dist/assets/{ant-design.771baa34.js → ant-design.4dde64bb.js} +2 -2
  120. abstra_statics/dist/assets/apiKey.2481730b.js +2 -0
  121. abstra_statics/dist/assets/{asyncComputed.0f036eae.js → asyncComputed.24fa122c.js} +2 -2
  122. abstra_statics/dist/assets/{build.c819a477.js → build.5e49b52b.js} +2 -2
  123. abstra_statics/dist/assets/colorHelpers.a41e45a3.js +2 -0
  124. abstra_statics/dist/assets/{console.072f10aa.js → console.d4555e1e.js} +2 -2
  125. abstra_statics/dist/assets/constants.4f491067.js +2 -0
  126. abstra_statics/dist/assets/{cssMode.b24669f0.js → cssMode.94fba5f4.js} +2 -2
  127. abstra_statics/dist/assets/datetime.215ab936.js +2 -0
  128. abstra_statics/dist/assets/dayjs.cad6407e.js +2 -0
  129. abstra_statics/dist/assets/editor.68f10cac.js +2 -0
  130. abstra_statics/dist/assets/editor.main.d5278805.js +2 -0
  131. abstra_statics/dist/assets/fetch.b229b6c0.js +2 -0
  132. abstra_statics/dist/assets/{files.ff551888.js → files.2d03f0a6.js} +2 -2
  133. abstra_statics/dist/assets/{folder.92a70293.js → folder.c0b92096.js} +2 -2
  134. abstra_statics/dist/assets/{freemarker2.c3563cfb.js → freemarker2.a8ae0e5a.js} +2 -2
  135. abstra_statics/dist/assets/{handlebars.bedd8360.js → handlebars.3529fc9d.js} +3 -3
  136. abstra_statics/dist/assets/{html.3cfc37f8.js → html.193c548a.js} +3 -3
  137. abstra_statics/dist/assets/{htmlMode.f9c29f9d.js → htmlMode.5669aea7.js} +2 -2
  138. abstra_statics/dist/assets/{index.138ad220.js → index.17c59820.js} +2 -2
  139. abstra_statics/dist/assets/{index.9028af84.js → index.17c9890b.js} +2 -2
  140. abstra_statics/dist/assets/{index.5429e60c.js → index.2f9d5f42.js} +2 -2
  141. abstra_statics/dist/assets/{index.dfc9f500.js → index.341d2d78.js} +2 -2
  142. abstra_statics/dist/assets/{index.e6b397aa.js → index.590aa576.js} +3 -3
  143. abstra_statics/dist/assets/{index.b69b3146.js → index.84a81069.js} +2 -2
  144. abstra_statics/dist/assets/index.9d0d77b2.js +2 -0
  145. abstra_statics/dist/assets/{index.dccc1696.js → index.c3ea2813.js} +2 -2
  146. abstra_statics/dist/assets/{index.26a34a52.js → index.ee7c5f13.js} +2 -2
  147. abstra_statics/dist/assets/{index.a9e83a57.js → index.fd173cc0.js} +2 -2
  148. abstra_statics/dist/assets/{javascript.a4a24e63.js → javascript.ff046b2c.js} +3 -3
  149. abstra_statics/dist/assets/{jsonMode.4df0cb48.js → jsonMode.c051f145.js} +2 -2
  150. abstra_statics/dist/assets/{jwt-decode.esm.b204fb7d.js → jwt-decode.esm.f18c394f.js} +7 -7
  151. abstra_statics/dist/assets/{linters.5b679742.js → linters.e4e7bac9.js} +2 -2
  152. abstra_statics/dist/assets/{liquid.6539d262.js → liquid.98fcb8a3.js} +3 -3
  153. abstra_statics/dist/assets/member.d0ead44d.js +2 -0
  154. abstra_statics/dist/assets/{metadata.e6e36ac2.js → metadata.218ef86b.js} +2 -2
  155. abstra_statics/dist/assets/{omniChatStore.0470e5b1.js → omniChatStore.405dd08d.js} +2 -2
  156. abstra_statics/dist/assets/{organization.04cff158.js → organization.c20116a5.js} +2 -2
  157. abstra_statics/dist/assets/player.30fb0733.js +2 -0
  158. abstra_statics/dist/assets/{plotly.min.e185d882.js → plotly.min.b26aecc2.js} +2 -2
  159. abstra_statics/dist/assets/polling.775bd07d.js +2 -0
  160. abstra_statics/dist/assets/{project.c198d794.js → project.d26f784f.js} +2 -2
  161. abstra_statics/dist/assets/{python.5c45007e.js → python.6f801519.js} +2 -2
  162. abstra_statics/dist/assets/{razor.dbd79c37.js → razor.80957baf.js} +2 -2
  163. abstra_statics/dist/assets/{record.316e025a.js → record.f0e74f25.js} +2 -2
  164. abstra_statics/dist/assets/redirect.47662fd9.js +2 -0
  165. abstra_statics/dist/assets/{repository.ae6e826f.js → repository.75210ebd.js} +2 -2
  166. abstra_statics/dist/assets/repository.d2158c5f.js +2 -0
  167. abstra_statics/dist/assets/{router.29d47df0.js → router.9924fce0.js} +3 -3
  168. abstra_statics/dist/assets/string.c4805024.js +2 -0
  169. abstra_statics/dist/assets/{tables.e80a0328.js → tables.4cd227ff.js} +2 -2
  170. abstra_statics/dist/assets/{tasksController.307be8dc.js → tasksController.f0830c77.js} +3 -3
  171. abstra_statics/dist/assets/{toggleHighContrast.4184537f.js → toggleHighContrast.d8b2c912.js} +7 -7
  172. abstra_statics/dist/assets/{tsMode.12c94eed.js → tsMode.7de6acfd.js} +2 -2
  173. abstra_statics/dist/assets/{typescript.e087b68e.js → typescript.78bce6b9.js} +2 -2
  174. abstra_statics/dist/assets/url.f54a173c.js +2 -0
  175. abstra_statics/dist/assets/userStore.1345e655.js +2 -0
  176. abstra_statics/dist/assets/uuid.2e8600ec.js +2 -0
  177. abstra_statics/dist/assets/{vue-flow-background.402b0a32.js → vue-flow-background.57038ee0.js} +2 -2
  178. abstra_statics/dist/assets/{vue-quill.esm-bundler.10d49c97.js → vue-quill.esm-bundler.130627ea.js} +2 -2
  179. abstra_statics/dist/assets/workspaceStore.29138ee5.js +2 -0
  180. abstra_statics/dist/assets/{xml.c4ef7130.js → xml.46fa5b06.js} +3 -3
  181. abstra_statics/dist/assets/{yaml.5eb27541.js → yaml.775c20d7.js} +2 -2
  182. abstra_statics/dist/console.html +15 -15
  183. abstra_statics/dist/editor.html +11 -11
  184. abstra_statics/dist/player.html +9 -9
  185. abstra_internals/utils/threading.py +0 -24
  186. abstra_internals/utils/websockets.py +0 -79
  187. abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.37e7ad5b.js +0 -2
  188. abstra_statics/dist/assets/ApiKeys.94113392.js +0 -2
  189. abstra_statics/dist/assets/App.6c102d26.js +0 -2
  190. abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.26121baf.js +0 -2
  191. abstra_statics/dist/assets/BaseLayout.670b8441.js +0 -2
  192. abstra_statics/dist/assets/Billing.80a50079.js +0 -2
  193. abstra_statics/dist/assets/CloseCircleOutlined.7ac8e1e8.js +0 -2
  194. abstra_statics/dist/assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.b85f86d8.js +0 -2
  195. abstra_statics/dist/assets/EnvVars.ccc24231.js +0 -2
  196. abstra_statics/dist/assets/Error.1bf571a6.js +0 -2
  197. abstra_statics/dist/assets/ExclamationCircleOutlined.f71fa58b.js +0 -2
  198. abstra_statics/dist/assets/Form.288a7191.js +0 -2
  199. abstra_statics/dist/assets/Home.23f0cff8.js +0 -2
  200. abstra_statics/dist/assets/Home.5ce6aade.js +0 -2
  201. abstra_statics/dist/assets/LoadingContainer.3ea9ec8d.js +0 -2
  202. abstra_statics/dist/assets/LoadingOutlined.11688830.js +0 -2
  203. abstra_statics/dist/assets/Login.2a4c7e48.js +0 -2
  204. abstra_statics/dist/assets/Logo.cc2d4a95.js +0 -2
  205. abstra_statics/dist/assets/Logs.f57284a4.js +0 -2
  206. abstra_statics/dist/assets/LogsController.353f0002.js +0 -2
  207. abstra_statics/dist/assets/Main.635e443c.js +0 -2
  208. abstra_statics/dist/assets/Navbar.dacca218.js +0 -2
  209. abstra_statics/dist/assets/OidcLoginCallback.0dff6320.js +0 -2
  210. abstra_statics/dist/assets/OidcLogoutCallback.1f077fbb.js +0 -2
  211. abstra_statics/dist/assets/ProjectLogin.ed25cb39.js +0 -2
  212. abstra_statics/dist/assets/Sql.cbcb65af.js +0 -5
  213. abstra_statics/dist/assets/Steps.4c7bc2b0.js +0 -2
  214. abstra_statics/dist/assets/TablesTabs.vue_vue_type_script_setup_true_lang.2d88acf3.js +0 -2
  215. abstra_statics/dist/assets/WidgetPreview.6cc6a025.js +0 -2
  216. abstra_statics/dist/assets/apiKey.8e591cfc.js +0 -2
  217. abstra_statics/dist/assets/colorHelpers.c4e8851c.js +0 -2
  218. abstra_statics/dist/assets/constants.6f822a9d.js +0 -2
  219. abstra_statics/dist/assets/datetime.7d5f4744.js +0 -2
  220. abstra_statics/dist/assets/dayjs.19defe89.js +0 -2
  221. abstra_statics/dist/assets/editor.6fa2da52.js +0 -2
  222. abstra_statics/dist/assets/editor.main.91c25311.js +0 -2
  223. abstra_statics/dist/assets/fetch.41281c28.js +0 -2
  224. abstra_statics/dist/assets/index.e7bc0e19.js +0 -2
  225. abstra_statics/dist/assets/member.c5283d66.js +0 -2
  226. abstra_statics/dist/assets/player.c715ca22.js +0 -2
  227. abstra_statics/dist/assets/polling.5f85e241.js +0 -2
  228. abstra_statics/dist/assets/redirect.d1904049.js +0 -2
  229. abstra_statics/dist/assets/repository.babdc912.js +0 -2
  230. abstra_statics/dist/assets/string.4a80abd5.js +0 -2
  231. abstra_statics/dist/assets/url.371275cf.js +0 -2
  232. abstra_statics/dist/assets/userStore.26658284.js +0 -2
  233. abstra_statics/dist/assets/uuid.ffd92735.js +0 -2
  234. abstra_statics/dist/assets/workspaceStore.9caf566c.js +0 -2
  235. {abstra-3.23.3.dist-info → abstra-3.23.4.dist-info}/WHEEL +0 -0
  236. {abstra-3.23.3.dist-info → abstra-3.23.4.dist-info}/entry_points.txt +0 -0
  237. {abstra-3.23.3.dist-info → abstra-3.23.4.dist-info}/top_level.txt +0 -0
@@ -1,2 +0,0 @@
1
- import{A as o}from"./index.138ad220.js";import{d as a,c as r,a5 as p,f,u as d,ea as l,h as c,o as i,_ as u}from"./jwt-decode.esm.b204fb7d.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="8f7bea81-f2e1-4649-9ee9-a29ee0a9b69e",e._sentryDebugIdIdentifier="sentry-dbid-8f7bea81-f2e1-4649-9ee9-a29ee0a9b69e")}catch{}})();const _=a({__name:"Steps",props:{stepsInfo:{},isPreview:{type:Boolean}},setup(e){const s=e,n=r(()=>s.stepsInfo?Array(s.stepsInfo.total).fill(null).map(()=>({label:"",description:""})):[]);return(t,m)=>t.stepsInfo?(i(),p("nav",{key:0,class:l(["p-steps",{"full-screen":!t.isPreview}])},[f(d(o),{current:t.stepsInfo.current-1,items:n.value,responsive:!1},null,8,["current","items"])],2)):c("",!0)}});const I=u(_,[["__scopeId","data-v-58fdd395"]]);export{I as S};
2
- //# sourceMappingURL=Steps.4c7bc2b0.js.map
@@ -1,2 +0,0 @@
1
- import{d as f,e5 as b,eb as m,o as l,a as p,b as d,a5 as _,ec as g,f as y,e as v,ed as k,u as n,aR as w}from"./jwt-decode.esm.b204fb7d.js";import{A as I,T}from"./Card.774e5d67.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]="697cf5ad-93a2-422f-829f-74330874eed7",e._sentryDebugIdIdentifier="sentry-dbid-697cf5ad-93a2-422f-829f-74330874eed7")}catch{}})();const R=f({__name:"TablesTabs",setup(e){const a=b(),t=m(),u=String(t.name),c=t.params.projectId,r=[{label:"Tables list",value:"tables"},{label:"Diagram view",value:"tables-diagram"},{label:"Run SQL",value:"sql"}],i=o=>{a.push({name:String(o),params:{projectId:c}})};return(o,D)=>(l(),p(n(T),{"active-key":n(u),options:r,"onUpdate:activeKey":i},{default:d(()=>[(l(),_(w,null,g(r,s=>y(n(I),{key:s.value,name:s.value},{tab:d(()=>[v("span",null,k(s.label),1)]),_:2},1032,["name"])),64))]),_:1},8,["active-key"]))}});export{R as _};
2
- //# sourceMappingURL=TablesTabs.vue_vue_type_script_setup_true_lang.2d88acf3.js.map
@@ -1,2 +0,0 @@
1
- import{d as k,r as B,k as I,o as n,a as u,b as f,f as A,g as P,ed as S,ea as C,eF as D,u as y,bR as N,eW as V,_ as W,eb as q,h as b,e as g,a5 as c,ec as v,ef as x,aR as w,I as E,J as F}from"./jwt-decode.esm.b204fb7d.js";import{S as L}from"./Steps.4c7bc2b0.js";import{W as $}from"./PlayerConfigProvider.ead35c7b.js";import"./index.138ad220.js";import"./colorHelpers.c4e8851c.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[t]="1f821eb4-54af-4342-be55-ebadd45288bc",o._sentryDebugIdIdentifier="sentry-dbid-1f821eb4-54af-4342-be55-ebadd45288bc")}catch{}})();const K=k({__name:"ActionButton",props:{action:{},displayName:{},disabled:{type:Boolean},loading:{type:Boolean}},emits:["click"],setup(o,{emit:t}){const d=o,l=B(null);return I(()=>{l.value&&d.action.setElement(l.value)}),(r,i)=>(n(),u(y(V),null,{default:f(()=>[A(y(N),{ref_key:"element",ref:l,class:C(["next-button",r.disabled?"disabled":""]),loading:r.loading,disabled:r.disabled,onClick:i[0]||(i[0]=p=>t("click")),onKeydown:i[1]||(i[1]=D(p=>t("click"),["enter"]))},{default:f(()=>[P(S(r.displayName),1)]),_:1},8,["loading","disabled","class"])]),_:1}))}});const R=W(K,[["__scopeId","data-v-aea27bb7"]]),J={class:"form"},M={class:"form-wrapper"},O={key:0,class:"buttons"},z=k({__name:"WidgetPreview",setup(o){const t=q(),d=B([]);function l(e){return E[e]||F[e]||null}function r(e){try{const s=JSON.parse(e);if(s.component=l(s.type),!s.component)throw new Error(`Widget ${s.type} not found`);return s.component?s:null}catch{return null}}function i(){const e=t.query.widget;return Array.isArray(e)?e.map(r).filter(Boolean):[r(e)]}function p(){return t.query.steps==="true"}function _(){const e=t.query.button;return e?Array.isArray(e)?e:[e]:[]}const m=e=>({name:e,isDefault:!1,isFocused:!1,focusOnButton:()=>{},addKeydownListener:()=>{},setElement:()=>{}});return(e,s)=>(n(),u($,{"main-color":"#d14056",class:"preview",background:"#fbfbfb","font-family":"Inter",locale:"en"},{default:f(()=>[p()?(n(),u(L,{key:0,class:"steps","steps-info":{current:1,total:3},"is-preview":""})):b("",!0),g("div",J,[g("div",M,[(n(!0),c(w,null,v(i(),(a,h)=>(n(),c("div",{key:h,class:"widget"},[(n(),u(x(a.component),{"user-props":a.userProps,value:a.userProps.value,errors:d.value},null,8,["user-props","value","errors"]))]))),128))]),_().length?(n(),c("div",O,[(n(!0),c(w,null,v(_(),a=>(n(),u(R,{key:a,"display-name":m(a).name,action:m(a)},null,8,["display-name","action"]))),128))])):b("",!0)])]),_:1}))}});const U=W(z,[["__scopeId","data-v-d3d01da6"]]);export{U as default};
2
- //# sourceMappingURL=WidgetPreview.6cc6a025.js.map
@@ -1,2 +0,0 @@
1
- var c=Object.defineProperty;var o=(s,t,e)=>t in s?c(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e;var d=(s,t,e)=>(o(s,typeof t!="symbol"?t+"":t,e),e);import{h as r}from"./router.29d47df0.js";import"./jwt-decode.esm.b204fb7d.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[t]="c06400d7-2682-4c54-a87e-56075855bd21",s._sentryDebugIdIdentifier="sentry-dbid-c06400d7-2682-4c54-a87e-56075855bd21")}catch{}})();class u{constructor(){d(this,"urlPath","api-keys")}async create({projectId:t,name:e}){return r.post(`projects/${t}/${this.urlPath}`,{name:e})}async delete(t,e){await r.delete(`projects/${t}/${this.urlPath}/${e}`)}async list(t){return r.get(`projects/${t}/${this.urlPath}`)}}const a=new u;class n{constructor(t){this.dto=t}static async list(t){return(await a.list(t)).map(i=>new n(i))}static async create(t){const e=await a.create(t);return new n(e)}static async delete(t,e){await a.delete(t,e)}get id(){return this.dto.id}get name(){return this.dto.name}get createdAt(){return new Date(this.dto.createdAt)}get ownerId(){return this.dto.createdBy}get value(){var t;return(t=this.dto.value)!=null?t:null}}export{n as A};
2
- //# sourceMappingURL=apiKey.8e591cfc.js.map
@@ -1,2 +0,0 @@
1
- import"./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]="3c031001-d05a-4284-a788-eeb9fb33b7ab",e._sentryDebugIdIdentifier="sentry-dbid-3c031001-d05a-4284-a788-eeb9fb33b7ab")}catch{}})();function p(e,t){const{r:n,g:r,b:a,usePound:o}=g(e);return w(c(n,-t),c(r,-t),c(a,-t),o)}function c(e,t){const n=e*(100+t*100)/100;return n>255?255:n<0?0:Math.round(n)}function E(e){return e.startsWith("#")||e.match(/^(rgb|hsl)/)}const v=(e,t)=>y(p(y(e),t)),P=e=>k(e)?v(e,.1):p(e,.1);function k(e){const{r:t,g:n,b:r}=g(e);return t*.299+n*.587+r*.114<186}function g(e){let t=!1;e[0]=="#"&&(e=e.slice(1),t=!0);const n=parseInt(e,16);return{r:n>>16&255,g:n>>8&255,b:n&255,usePound:t}}function y(e){const{r:t,g:n,b:r,usePound:a}=g(e);return w(255-t,255-n,255-r,a)}const w=(e,t,n,r=!0)=>(r?"#":"")+(n|t<<8|e<<16).toString(16).padStart(6,"0");function _(e){return new Promise((t,n)=>{const r=document.createElement("img");r.src=e,r.crossOrigin="Anonymous",r.style.display="none",document.body.appendChild(r);let a=0;r.onerror=o=>n(new Error(`Failed to load image: ${o}`)),r.onload=()=>{const{width:o,height:l}=r,s=document.createElement("canvas");s.width=o,s.height=l;const u=s.getContext("2d");if(!u)return t(!1);u.drawImage(r,0,0);const I=u.getImageData(0,0,s.width,s.height),{data:d}=I;let f,b,h,m;for(let i=0,x=d.length;i<x;i+=4)f=d[i],b=d[i+1],h=d[i+2],m=Math.floor((f+b+h)/3),a+=m;const D=Math.floor(a/(o*l));document.body.removeChild(r),t(D<=127)}})}export{k as a,_ as b,P as c,E as i,v as l};
2
- //# sourceMappingURL=colorHelpers.c4e8851c.js.map
@@ -1,2 +0,0 @@
1
- import"./jwt-decode.esm.b204fb7d.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[s]="2d005243-8604-4988-9bcb-e4913d0cb880",t._sentryDebugIdIdentifier="sentry-dbid-2d005243-8604-4988-9bcb-e4913d0cb880")}catch{}})();const e={HOMEPAGE:{}.VITE_HOMEPAGE_URL||"https://abstra.io",DOCS:{}.VITE_DOCS_URL||"https://abstra.io/docs",CLOUD:{}.VITE_CONSOLE_URL||"https://cloud.abstra.io",GITHUB:{}.VITE_GITHUB_URL||"https://github.com/abstra-app/abstra-lib"},d=t=>{if(!t)return e.DOCS;const s=t.startsWith("/")?t.slice(1):t;return`${e.DOCS}/${s}`};export{e as A,d as b};
2
- //# sourceMappingURL=constants.6f822a9d.js.map
@@ -1,2 +0,0 @@
1
- import"./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]="4d389aa1-0aef-4a96-a9a7-d2070a62c201",e._sentryDebugIdIdentifier="sentry-dbid-4d389aa1-0aef-4a96-a9a7-d2070a62c201")}catch{}})();function a(e,t){return e.toLocaleString(void 0,{hour12:!1,timeZoneName:"short",day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",weekday:"long",...t})}export{a as g};
2
- //# sourceMappingURL=datetime.7d5f4744.js.map
@@ -1,2 +0,0 @@
1
- import{X as c,dJ as s,dK as i}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]="309677c5-d6c3-458f-a3d9-f1795135d7b8",e._sentryDebugIdIdentifier="sentry-dbid-309677c5-d6c3-458f-a3d9-f1795135d7b8")}catch{}})();const{DatePicker:n,WeekPicker:t,MonthPicker:r,YearPicker:f,TimePicker:m,QuarterPicker:o,RangePicker:d}=s(i),y=c(n,{WeekPicker:t,MonthPicker:r,YearPicker:f,RangePicker:d,TimePicker:m,QuarterPicker:o,install:e=>(e.component(n.name,n),e.component(d.name,d),e.component(r.name,r),e.component(t.name,t),e.component(o.name,o),e)});export{y as D,r as M,o as Q,d as R,t as W};
2
- //# sourceMappingURL=dayjs.19defe89.js.map
@@ -1,2 +0,0 @@
1
- var x=Object.defineProperty;var W=(o,e,t)=>e in o?x(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var i=(o,e,t)=>(W(o,typeof e!="symbol"?e+"":e,t),t);import{d as V,c as k,r as l,w as E,o as I,a as R,b,e as N,f as T,u as _,S as $,g as A,A as B,T as H,h as K,M as F,_ as J,i as S,j as z,k as Y,l as f,m as G,n as q,p as U,q as Q,s as X,t as Z,v as y,x as ee,y as te,z as oe,B as se,C as ne,P as ae,D as re,E as ie,F as ce,G as C,H as le,I as de,J as ue,K as pe}from"./jwt-decode.esm.b204fb7d.js";import{r as he,u as _e,g as me,a as ge}from"./workspaceStore.9caf566c.js";import{s as ve}from"./index.dfc9f500.js";import{A as fe}from"./linters.5b679742.js";import{A as ye}from"./constants.6f822a9d.js";import{d as P}from"./index.26a34a52.js";import"./userStore.26658284.js";import"./url.371275cf.js";import"./colorHelpers.c4e8851c.js";import"./asyncComputed.0f036eae.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]="0669d9de-20d6-4502-81a3-d3597f5e094d",o._sentryDebugIdIdentifier="sentry-dbid-0669d9de-20d6-4502-81a3-d3597f5e094d")}catch{}})();const be={style:{"text-align":"center",padding:"20px"}},we=V({__name:"ConnectionModal",props:{open:{type:Boolean},port:{}},emits:["update:open"],setup(o,{emit:e}){const t=o,s=k({get:()=>t.open,set:a=>e("update:open",a)}),n=l(!1);return E(()=>t.open,a=>{if(a){n.value=!1;const r=setTimeout(()=>{n.value=!0},1e4);return()=>clearTimeout(r)}else n.value=!1}),(a,r)=>(I(),R(_(F),{open:s.value,"onUpdate:open":r[0]||(r[0]=d=>s.value=d),closable:!1,"mask-closable":!1,keyboard:!1,footer:null,width:400,centered:""},{default:b(()=>[N("div",be,[T(_($),{size:"large"}),T(_(B),{level:4},{default:b(()=>[A(" Connecting to server... ")]),_:1}),n.value?(I(),R(_(H),{key:0},{default:b(()=>[A(" Are you sure Abstra is running? ")]),_:1})):K("",!0)])]),_:1},8,["open"]))}});const Ee=J(we,[["__scopeId","data-v-36743132"]]),p=class{constructor(){i(this,"ws",null);i(this,"reconnectTimer");i(this,"keepaliveInterval");i(this,"messageHandlers",new Set);i(this,"KEEPALIVE_INTERVAL",3e4);i(this,"RECONNECT_DELAY",1e3);this.connect()}static getInstance(){return p.instance||(p.instance=new p),p.instance}get url(){return"/_editor/api/codebase/events"}handleMessage(e){try{const t=JSON.parse(e.data),s=fe.parse(t);this.messageHandlers.forEach(n=>{try{n(s)}catch(a){S(a)}})}catch(t){S(t)}}handleClose(){this.clearTimers(),this.scheduleReconnect()}handleError(){this.clearTimers(),this.scheduleReconnect()}clearTimers(){this.keepaliveInterval&&(clearInterval(this.keepaliveInterval),this.keepaliveInterval=void 0),this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=void 0)}scheduleReconnect(){this.reconnectTimer||(this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=void 0,this.connect()},this.RECONNECT_DELAY))}startKeepalive(){this.keepaliveInterval=setInterval(()=>{this.sendKeepalive()},this.KEEPALIVE_INTERVAL)}sendKeepalive(){if(!this.ws||this.ws.readyState!==WebSocket.OPEN){this.handleError();return}try{this.ws.send(JSON.stringify({type:"keepalive"}))}catch(e){console.error("CodebaseEventsService: Failed to send keepalive:",e),this.handleError()}}async connect(){var e;if(((e=this.ws)==null?void 0:e.readyState)!==WebSocket.OPEN)try{this.ws=new WebSocket(this.url),this.ws.onopen=()=>this.startKeepalive(),this.ws.onclose=()=>this.handleClose(),this.ws.onerror=()=>this.handleError(),this.ws.onmessage=t=>this.handleMessage(t)}catch(t){console.error("CodebaseEventsService: Failed to create WebSocket:",t),this.scheduleReconnect()}}subscribe(e){return this.messageHandlers.add(e),()=>this.messageHandlers.delete(e)}isConnected(){var e;return((e=this.ws)==null?void 0:e.readyState)===WebSocket.OPEN}};let w=p;i(w,"instance",null);function Te(){const o=l(!1),e=l(null),t=l(null),s=w.getInstance(),n=v=>{e.value=v},a=()=>{o.value=s.isConnected()};let r;const d=setInterval(a,1e3);return z(()=>{r(),clearInterval(d)}),Y(()=>{r=s.subscribe(n),a()}),{isConnected:f(o),lastEvent:f(e),error:f(t),service:f(s)}}const Le={style:{height:"100vh","box-sizing":"border-box",width:"100%"}},Ce=V({__name:"App",setup(o){const e=Te(),t=l(!1);E(e.isConnected,async n=>{t.value=!n},{immediate:!0});const s={token:{colorPrimary:"#d14056",colorLink:"#d14056",colorLinkHover:"#aa3446"}};return(n,a)=>{const r=G("RouterView");return I(),R(_(q),{theme:s,"page-header":{ghost:!1}},{default:b(()=>[N("div",Le,[T(r)]),T(Ee,{open:t.value,"onUpdate:open":a[0]||(a[0]=d=>t.value=d)},null,8,["open"])]),_:1})}}});class O{async getLogin(){return await(await fetch("/_editor/api/login")).json()}async createLogin(e){return(await fetch("/_editor/api/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:e})})).json()}async deleteLogin(){await fetch("/_editor/api/login",{method:"DELETE"})}async getCloudProject(){return(await fetch("/_editor/api/login/info")).json()}async getPublicUrl(){try{return(await(await fetch("/_editor/api/login/public-url")).json()).public_url}catch{return null}}static getLoginUrl(e){return ye.CLOUD+"/api-key?"+new URLSearchParams(e)}}const j="h97k86ks",g=class{static boot(e,t){g.booted||(P.Intercom({app_id:j}),P.boot({api_base:"https://api-iam.intercom.io",app_id:j,name:e,email:e,user_hash:t,hide_default_launcher:!0,custom_launcher_selector:".intercom-launcher"}),g.booted=!0)}static shutdown(){P.shutdown(),g.booted=!1}};let m=g;i(m,"booted",!1);const Pe={"console-url":"https://cloud.abstra.io"},ke=o=>{const e="VITE_"+U.toUpper(U.snakeCase(o)),t={VITE_SENTRY_RELEASE:"7d185056ede84317e632ab9bf8d1a32a1ab77607",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}[e];return t||Pe[o]},h={consoleUrl:ke("console-url")},Ie=Q("cloud-project",()=>{const o=new O,e=l(null),t=l(null),s=k(()=>{var c,u;return(u=(c=e.value)==null?void 0:c.logged)!=null?u:!1}),n=l(null),a=k(()=>t.value?{project:`${h.consoleUrl}/projects/${t.value.id}`,users:`${h.consoleUrl}/projects/${t.value.id}/access-control?selected-panel=users`,roles:`${h.consoleUrl}/projects/${t.value.id}/access-control?selected-panel=roles`,builds:`${h.consoleUrl}/projects/${t.value.id}/builds`,login:`${h.consoleUrl}/api-key`}:null),r=async()=>{!s.value||(await o.deleteLogin(),window.open(location.origin+"/_editor","_self"))},d=async c=>{const u=await o.createLogin(c);e.value=u,u.logged&&await v()},v=async()=>t.value=await o.getCloudProject();(async()=>{n.value=await o.getPublicUrl()})();const D=async()=>e.value?e.value:(e.value=await o.getLogin(),e.value.logged);return E(()=>e.value,v),E(()=>e.value,async c=>{if(c&&"info"in c){const{email:u,intercomHash:M}=c.info;m.boot(u,M)}else m.shutdown()}),{loadLogin:D,createLogin:d,deleteLogin:r,publicUrl:n,loginInfo:e,cloudProject:t,isLogged:s,links:a}}),Re=he.map(o=>({...o,meta:{...o.meta,playerRoute:!0}})),L=X({history:Z("/"),routes:[{path:"/_editor/",name:"app",component:()=>y(()=>import("./Home.23f0cff8.js"),["assets/Home.23f0cff8.js","assets/jwt-decode.esm.b204fb7d.js","assets/jwt-decode.9f7a5511.css","assets/fetch.41281c28.js","assets/polling.5f85e241.js","assets/Home.afb8d9a6.css"]),children:[{path:"",name:"editor",component:()=>y(()=>import("./NewEditor.1d7ddf86.js"),["assets/NewEditor.1d7ddf86.js","assets/asyncComputed.0f036eae.js","assets/jwt-decode.esm.b204fb7d.js","assets/jwt-decode.9f7a5511.css","assets/linters.5b679742.js","assets/workspaceStore.9caf566c.js","assets/userStore.26658284.js","assets/url.371275cf.js","assets/colorHelpers.c4e8851c.js","assets/record.316e025a.js","assets/PhPencilSimpleLine.vue.6eedd1e6.js","assets/Card.774e5d67.js","assets/router.29d47df0.js","assets/index.26a34a52.js","assets/metadata.e6e36ac2.js","assets/PhUserList.vue.6d0e7bc8.js","assets/PhWebhooksLogo.vue.49b66d69.js","assets/LogsController.353f0002.js","assets/ant-design.771baa34.js","assets/string.4a80abd5.js","assets/PhCopy.vue.b1c2f21f.js","assets/index.e7bc0e19.js","assets/build.c819a477.js","assets/tables.e80a0328.js","assets/repository.ae6e826f.js","assets/LoadingOutlined.11688830.js","assets/polling.5f85e241.js","assets/LogsController.fb0d96c2.css","assets/omniChatStore.0470e5b1.js","assets/uuid.ffd92735.js","assets/PhCopySimple.vue.ffc7ec94.js","assets/omniChatStore.ec95fb81.css","assets/datetime.7d5f4744.js","assets/OmniChat.5e68be1c.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang.37e7ad5b.js","assets/Logo.cc2d4a95.js","assets/Logo.b7d81119.css","assets/PhClockCounterClockwise.vue.853bd5ec.js","assets/index.9028af84.js","assets/index.e6b397aa.js","assets/OmniChat.10d00525.css","assets/AbstraButton.vue_vue_type_script_setup_true_lang.c714d609.js","assets/constants.6f822a9d.js","assets/PhBookBookmark.vue.8611e54f.js","assets/PhChats.vue.3dd1c2d7.js","assets/index.dfc9f500.js","assets/PhArrowSquareOut.vue.0d20b8e9.js","assets/PhRocket.vue.56a9b767.js","assets/PhSignOut.vue.ee548b4c.js","assets/CloseCircleOutlined.7ac8e1e8.js","assets/vue-flow-background.402b0a32.js","assets/SaveButton.7c95c711.js","assets/ExclamationCircleOutlined.f71fa58b.js","assets/SaveButton.932ac6b8.css","assets/ContentLayout.4fc85c66.js","assets/ContentLayout.cdae7d24.css","assets/fetch.41281c28.js","assets/repository.babdc912.js","assets/View.vue_vue_type_script_setup_true_lang.17304c45.js","assets/CrudView.7f2cbde4.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.0b26fb89.js","assets/PhDotsThreeVertical.vue.89b627bd.js","assets/CrudView.c883bb05.css","assets/PhPencil.vue.c3c70f7d.js","assets/PlayerNavbar.523eb145.js","assets/PlayerNavbar.c456a4e0.css","assets/PlayerConfigProvider.ead35c7b.js","assets/PlayerConfigProvider.1ce9d3b1.css","assets/LoadingContainer.3ea9ec8d.js","assets/LoadingContainer.56fa997a.css","assets/files.ff551888.js","assets/PhGear.vue.fbac4098.js","assets/tasksController.307be8dc.js","assets/toggleHighContrast.4184537f.js","assets/toggleHighContrast.30d77c87.css","assets/PhPencilSimple.vue.ee9d03fc.js","assets/PhFolderPlus.vue.e199ba17.js","assets/PhArrowCounterClockwise.vue.d273955f.js","assets/FormRunner.f721431d.js","assets/Login.vue_vue_type_script_setup_true_lang.fab46c0c.js","assets/CircularLoading.02fd7b7b.js","assets/CircularLoading.a8fe2dc6.css","assets/Login.75d13f6c.css","assets/Steps.4c7bc2b0.js","assets/index.138ad220.js","assets/Steps.2880920a.css","assets/Watermark.4b6da85c.js","assets/Watermark.b0916e90.css","assets/FormRunner.714ce2c1.css","assets/redirect.d1904049.js","assets/NewEditor.b7bcb815.css"])},{path:"project-login",name:"projectLogin",component:()=>y(()=>import("./ProjectLogin.ed25cb39.js"),["assets/ProjectLogin.ed25cb39.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang.37e7ad5b.js","assets/Logo.cc2d4a95.js","assets/jwt-decode.esm.b204fb7d.js","assets/jwt-decode.9f7a5511.css","assets/Logo.b7d81119.css","assets/BaseLayout.670b8441.js","assets/BaseLayout.e1744dcc.css","assets/index.a9e83a57.js","assets/Breadcrumb.1d42c80c.js","assets/index.9028af84.js","assets/index.e7bc0e19.js","assets/workspaceStore.9caf566c.js","assets/userStore.26658284.js","assets/url.371275cf.js","assets/colorHelpers.c4e8851c.js","assets/index.dfc9f500.js","assets/linters.5b679742.js","assets/asyncComputed.0f036eae.js","assets/constants.6f822a9d.js","assets/index.26a34a52.js","assets/ProjectLogin.21a71354.css"]),meta:{title:"Abstra Editor",allowUnauthenticated:!0}},{path:":pathMatch(.*)*",name:"editorFallback",redirect:"/_editor/"}]},{path:"/:path(.*)*",name:"form",component:()=>y(()=>import("./App.6c102d26.js"),["assets/App.6c102d26.js","assets/App.vue_vue_type_style_index_0_lang.26121baf.js","assets/userStore.26658284.js","assets/jwt-decode.esm.b204fb7d.js","assets/jwt-decode.9f7a5511.css","assets/PlayerConfigProvider.ead35c7b.js","assets/colorHelpers.c4e8851c.js","assets/PlayerConfigProvider.1ce9d3b1.css","assets/workspaceStore.9caf566c.js","assets/url.371275cf.js","assets/App.0c2736ee.css"]),children:Re}],scrollBehavior(o){if(o.hash)return{el:o.hash}}}),Ae=me(L);L.beforeEach(async(o,e)=>{if(await _e().actions.fetch(),o.meta.playerRoute)return Ae(o,e);ee(o,e);const t=Ie();if(!o.meta.allowUnauthenticated&&!t.isLogged&&!await t.loadLogin()){const s={redirect:location.origin+"/_editor/project-login"};window.open(O.getLoginUrl(s),"_self")}});(async()=>{await ve();const o=await ge(),e=te(),t=oe({render:()=>le(Ce)});se.init(),ne(t,L,o),t.use(L),t.use(ae),t.use(e),t.mount("#app"),t.component("VSelect",re),t.component("Markdown",ie),t.component("Message",ce),C(t,de),C(t,ue),C(t,pe)})();export{h as E,Te as a,Ie as u};
2
- //# sourceMappingURL=editor.6fa2da52.js.map
@@ -1,2 +0,0 @@
1
- import{C as r,E as t,K as i,a as f,M as c,c as l,P as y,R as b,S as g,b as u,T as k,U as p,e as w,l as D}from"./toggleHighContrast.4184537f.js";import"./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]="5d9cb3fa-4d49-4dc9-8360-d304937a5fa2",e._sentryDebugIdIdentifier="sentry-dbid-5d9cb3fa-4d49-4dc9-8360-d304937a5fa2")}catch{}})();export{r as CancellationTokenSource,t as Emitter,i as KeyCode,f as KeyMod,c as MarkerSeverity,l as MarkerTag,y as Position,b as Range,g as Selection,u as SelectionDirection,k as Token,p as Uri,w as editor,D as languages};
2
- //# sourceMappingURL=editor.main.91c25311.js.map
@@ -1,2 +0,0 @@
1
- import"./jwt-decode.esm.b204fb7d.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="2c98d729-57bf-4ee3-949f-54c5eeeaea87",e._sentryDebugIdIdentifier="sentry-dbid-2c98d729-57bf-4ee3-949f-54c5eeeaea87")}catch{}})();const f=(...e)=>window.fetch(...e);export{f as l};
2
- //# sourceMappingURL=fetch.41281c28.js.map
@@ -1,2 +0,0 @@
1
- import{d as P,ag as T,e0 as L,e1 as Q,c as o,r as O,w as W,aQ as X,f as p,X as m,aR as q,aj as j,cV as h,av as G,bt as B,aM as H,ah as J}from"./jwt-decode.esm.b204fb7d.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},c=new Error().stack;c&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[c]="87bbfbef-3e28-4c94-bac9-51a946bdcf37",e._sentryDebugIdIdentifier="sentry-dbid-87bbfbef-3e28-4c94-bac9-51a946bdcf37")}catch{}})();const K={small:8,middle:16,large:24},U=()=>({prefixCls:String,size:{type:[String,Number,Array]},direction:G.oneOf(B("horizontal","vertical")).def("horizontal"),align:G.oneOf(B("start","end","center","baseline")),wrap:H()});function Y(e){return typeof e=="string"?K[e]:e||0}const r=P({compatConfig:{MODE:3},name:"ASpace",inheritAttrs:!1,props:U(),slots:Object,setup(e,c){let{slots:l,attrs:g}=c;const{prefixCls:n,space:b,direction:w}=T("space",e),[E,F]=L(n),x=Q(),s=o(()=>{var a,t,i;return(i=(a=e.size)!==null&&a!==void 0?a:(t=b==null?void 0:b.value)===null||t===void 0?void 0:t.size)!==null&&i!==void 0?i:"small"}),y=O(),u=O();W(s,()=>{[y.value,u.value]=(Array.isArray(s.value)?s.value:[s.value,s.value]).map(a=>Y(a))},{immediate:!0});const z=o(()=>e.align===void 0&&e.direction==="horizontal"?"center":e.align),R=o(()=>J(n.value,F.value,`${n.value}-${e.direction}`,{[`${n.value}-rtl`]:w.value==="rtl",[`${n.value}-align-${z.value}`]:z.value})),V=o(()=>w.value==="rtl"?"marginLeft":"marginRight"),k=o(()=>{const a={};return x.value&&(a.columnGap=`${y.value}px`,a.rowGap=`${u.value}px`),m(m({},a),e.wrap&&{flexWrap:"wrap",marginBottom:`${-u.value}px`})});return()=>{var a,t;const{wrap:i,direction:M="horizontal"}=e,_=(a=l.default)===null||a===void 0?void 0:a.call(l),C=X(_),I=C.length;if(I===0)return null;const d=(t=l.split)===null||t===void 0?void 0:t.call(l),A=`${n.value}-item`,D=y.value,S=I-1;return p("div",j(j({},g),{},{class:[R.value,g.class],style:[k.value,g.style]}),[C.map((N,v)=>{let $=_.indexOf(N);$===-1&&($=`$$space-${v}`);let f={};return x.value||(M==="vertical"?v<S&&(f={marginBottom:`${D/(d?2:1)}px`}):f=m(m({},v<S&&{[V.value]:`${D/(d?2:1)}px`}),i&&{paddingBottom:`${u.value}px`})),E(p(q,{key:$},[p("div",{class:A,style:f},[N]),v<S&&d&&p("span",{class:`${A}-split`,style:f},[d])]))})])}}});r.Compact=h;r.install=function(e){return e.component(r.name,r),e.component(h.name,h),e};const ee=r;export{ee as A};
2
- //# sourceMappingURL=index.e7bc0e19.js.map
@@ -1,2 +0,0 @@
1
- import{h as n}from"./router.29d47df0.js";import"./jwt-decode.esm.b204fb7d.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="bbf8f6f4-3623-458f-95db-a66cb1ab7160",t._sentryDebugIdIdentifier="sentry-dbid-bbf8f6f4-3623-458f-95db-a66cb1ab7160")}catch{}})();class i{async create(e){return n.post(`organizations/${e.organizationId}/members`,{email:e.email,teams:e.teams})}async delete(e){return n.delete(`organizations/${e.organizationId}/members/${e.authorId}`)}async list(e){return n.get(`organizations/${e}/members`)}async get(e,r){return n.get(`organizations/${e}/members/${r}`)}async update(e,r,a){return n.patch(`organizations/${e}/members/${r}`,a)}}export{i as M};
2
- //# sourceMappingURL=member.c5283d66.js.map
@@ -1,2 +0,0 @@
1
- import{y as n,z as r,B as o,C as c,P as d,D as p,E as f,F as b,G as a,H as m,I as u,J as g,K as y}from"./jwt-decode.esm.b204fb7d.js";import{a as l,b as i}from"./workspaceStore.9caf566c.js";import{s as w}from"./index.dfc9f500.js";import{_ as h}from"./App.vue_vue_type_style_index_0_lang.26121baf.js";import"./userStore.26658284.js";import"./url.371275cf.js";import"./colorHelpers.c4e8851c.js";import"./PlayerConfigProvider.ead35c7b.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[s]="7ab834d0-9741-4fbf-9e1a-cb88c2be6e89",t._sentryDebugIdIdentifier="sentry-dbid-7ab834d0-9741-4fbf-9e1a-cb88c2be6e89")}catch{}})();class I{static init(){setInterval(()=>{fetch("/_healthcheck").catch(()=>{})},20*1e3)}}(async()=>{await w();const t=await l(),s=n(),e=r({render:()=>m(h)});o.init(),c(e,i,t),I.init(),e.use(i),e.use(s),e.use(d),e.mount("#app"),e.component("VSelect",p),e.component("Markdown",f),e.component("Message",b),a(e,u),a(e,g),a(e,y)})();
2
- //# sourceMappingURL=player.c715ca22.js.map
@@ -1,2 +0,0 @@
1
- import"./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]="b6940687-a0e0-46e7-98a0-814517706cc8",e._sentryDebugIdIdentifier="sentry-dbid-b6940687-a0e0-46e7-98a0-814517706cc8")}catch{}})();const i=1e3,r=e=>{let n=null;return{startPolling:()=>{const t=async()=>{var o;try{!document.hidden&&!e.keepPollingOnOutOfFocus&&await e.task()}finally{n=setTimeout(t,(o=e.interval)!=null?o:i)}};t()},endPolling:()=>{n&&clearTimeout(n)}}};export{r as u};
2
- //# sourceMappingURL=polling.5f85e241.js.map
@@ -1,2 +0,0 @@
1
- import{i as c}from"./url.371275cf.js";import"./jwt-decode.esm.b204fb7d.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="815b7544-7832-4483-a670-d2a32921d45a",e._sentryDebugIdIdentifier="sentry-dbid-815b7544-7832-4483-a670-d2a32921d45a")}catch{}})();function i(e){return e.startsWith("/")?e.slice(1):e}function d(e,r,n={}){if(c(r)){const a=new URL(r),t=new URLSearchParams(n),o=new URLSearchParams(a.search),s=new URLSearchParams([...o,...t]);return a.search=s.toString(),{action:"REPLACE_LOCAL_HREF",newHref:a.toString()}}else{const a=r.replace(/\/$/,"");if(e==="player")return{action:"GOTO_FORM_PLAYER",path:i(a),queryParams:n};if(e==="editor")return{action:"GOTO_FORM_EDITOR",path:i(a),queryParams:n};if(e==="preview")return{action:"GOTO_FORM_PLAYER",path:i(a),queryParams:n};throw new Error(`Invalid routing ${e}`)}}async function w(e,r,n,a={}){const t=d(e,n,a);switch(t.action){case"REPLACE_LOCAL_HREF":window.location.href=t.newHref;break;case"GOTO_FORM_EDITOR":await r.push({name:"formEditor",params:{formPath:t.path},query:t.queryParams});break;case"GOTO_FORM_PLAYER":await r.push({name:e==="preview"?"formPreview":"formPlayer",params:{formPath:t.path},query:t.queryParams});break;default:throw new Error("Invalid routing")}}export{w as r};
2
- //# sourceMappingURL=redirect.d1904049.js.map
@@ -1,2 +0,0 @@
1
- var p=Object.defineProperty;var h=(r,t,e)=>t in r?p(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var c=(r,t,e)=>(h(r,typeof t!="symbol"?t+"":t,e),e);import{h as a}from"./router.29d47df0.js";import{l as u}from"./fetch.41281c28.js";import{E as l}from"./record.316e025a.js";import"./jwt-decode.esm.b204fb7d.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[t]="a207ad04-d337-4f69-9f26-ec337635d3a5",r._sentryDebugIdIdentifier="sentry-dbid-a207ad04-d337-4f69-9f26-ec337635d3a5")}catch{}})();class i{constructor(t){c(this,"record");this.record=l.from(t)}get id(){return this.record.get("id")}get name(){return this.record.get("name")}get description(){return this.record.get("description")||""}set description(t){this.record.set("description",t)}get projectId(){return this.record.get("projectId")}static from(t){return new i(t)}commit(){this.record.commit()}hasChanges(){return this.record.hasChanges()}get changes(){return this.record.changes}update(t){this.record.update(t)}}class f{constructor(){c(this,"urlPath","roles")}async create(t,e){return a.post(`projects/${t}/${this.urlPath}`,e)}async delete(t,e){await a.delete(`projects/${t}/${this.urlPath}/${e}`)}async list(t,{limit:e,offset:s}){const o={};e&&(o.limit=e.toString()),s&&(o.offset=s.toString());const d=new URLSearchParams(o);return a.get(`projects/${t}/${this.urlPath}?${d.toString()}`)}async update(t,e,s){return a.patch(`projects/${t}/${this.urlPath}/${e}`,s)}}const n=new f;class ${constructor(t){this.projectId=t}async list(t,e){return(await n.list(this.projectId,{limit:t,offset:e})).map(i.from)}async create(t){await n.create(this.projectId,t)}async update(t,e){await n.update(this.projectId,t,e)}async delete(t){await n.delete(this.projectId,t)}}class b{constructor(t=u){this.fetch=t}async list(t,e){const s={};t&&(s.limit=t.toString()),e&&(s.offset=e.toString());const o=new URLSearchParams(s);return(await(await this.fetch(`/_editor/api/roles?${o.toString()}`,{method:"GET",headers:{"Content-Type":"application/json"}})).json()).map(i.from)}}export{$ as C,b as E};
2
- //# sourceMappingURL=repository.babdc912.js.map
@@ -1,2 +0,0 @@
1
- import{L as d}from"./jwt-decode.esm.b204fb7d.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="8d1a13fc-2b51-477f-8c28-5da2374ce63f",e._sentryDebugIdIdentifier="sentry-dbid-8d1a13fc-2b51-477f-8c28-5da2374ce63f")}catch{}})();function p(e){return d.string().email().safeParse(e).success}function w(e){return e.charAt(0).toUpperCase()+e.slice(1)}function h(e,r,n=!1,a=!0,s=!1,t=!0){const o=(a?e.toLocaleLowerCase():e).normalize("NFD").replace(/[\u0300-\u036f]/g,""),f=`a-zA-Z0-9${s?"/":""}${t?"-":""}`,c=new RegExp(`[^${f}]`,"g"),l=o.replace(c,"_"),u=n?l:l.replace(/_+/g,"_");return r?u:u.replace(/_$/,"")}function b(e){var t;const n=e.toLocaleLowerCase().trim().normalize("NFD").replace(/[\u0300-\u036f]/g,""),a=/[a-z0-9]+/g,s=n.match(a);return(t=s==null?void 0:s.join("-"))!=null?t:""}function m(e,r){if(e.length===0||r.length===0)return!1;const n=e.toLowerCase(),a=r.toLowerCase();return n.split("").reduce((t,i)=>{var f;if(t===!1)return!1;const o=(f=t[t.length-1])!=null?f:null;if(o===null){const c=a.indexOf(i);return c===-1?!1:[c]}else{const l=a.slice(o+1).indexOf(i);return l===-1?!1:[...t,o+1+l]}},[])}export{h as a,w as c,m as f,p as i,b as n};
2
- //# sourceMappingURL=string.4a80abd5.js.map
@@ -1,2 +0,0 @@
1
- import"./jwt-decode.esm.b204fb7d.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="842b307b-e9e6-4bd0-976a-6223c3699eaa",e._sentryDebugIdIdentifier="sentry-dbid-842b307b-e9e6-4bd0-976a-6223c3699eaa")}catch{}})();const d=e=>{try{return new URL(e),!0}catch{return!1}},o=(e,r)=>{if(!Object.keys(r).length)return e;const t=new URL(e),n=new URLSearchParams(t.search);return Object.entries(r).forEach(([a,s])=>{t.searchParams.delete(a),n.set(a,s)}),`${t.origin}${t.pathname}?${n.toString()}`};export{d as i,o as m};
2
- //# sourceMappingURL=url.371275cf.js.map
@@ -1,2 +0,0 @@
1
- import{q as f,O as b,L as v,r as w,c as n,Q as m}from"./jwt-decode.esm.b204fb7d.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="e5a5db4c-16b2-4709-bb7b-94f1e6fb1cbf",t._sentryDebugIdIdentifier="sentry-dbid-e5a5db4c-16b2-4709-bb7b-94f1e6fb1cbf")}catch{}})();const p=2*60*60,y=t=>{try{const e=m(t);if(!e.exp)throw Error("expired jwt");return{email:e.email,expiresInSeconds:e.exp*1e3}}catch{console.warn("Invalid JWT")}return null},g=f("user",()=>{const t=new b(v.string(),"auth:jwt"),e=w(null),s=()=>{e.value=null,t.remove()},o=r=>{t.set(r),e.value=r},u=()=>{e.value=t.get()},l=n(()=>e.value?{Authorization:`Bearer ${e.value}`}:{}),c=n(()=>e.value?["default",`base64url.bearer.authorization.${e.value}`]:[]),a=n(()=>e.value?y(e.value):null),i=n(()=>{var r;return(r=a.value)==null?void 0:r.email}),d=()=>a.value?a.value.expiresInSeconds-Date.now()>p:!1;return u(),{jwt:e,email:i,saveJWT:o,removeJWT:s,isJWTValid:d,authHeaders:l,wsAuthHeaders:c}});export{g as u};
2
- //# sourceMappingURL=userStore.26658284.js.map
@@ -1,2 +0,0 @@
1
- import"./jwt-decode.esm.b204fb7d.js";(function(){try{var x=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(x._sentryDebugIds=x._sentryDebugIds||{},x._sentryDebugIds[e]="50ad7031-60a7-43da-b3b3-4a6c7be903be",x._sentryDebugIdIdentifier="sentry-dbid-50ad7031-60a7-43da-b3b3-4a6c7be903be")}catch{}})();const d=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(x){const e=Math.random()*16|0;return(x=="x"?e:e&3|8).toString(16)});export{d as u};
2
- //# sourceMappingURL=uuid.ffd92735.js.map
@@ -1,2 +0,0 @@
1
- import{s as A,t as O,v as r,x as F,q as v,r as U}from"./jwt-decode.esm.b204fb7d.js";import{u as i}from"./userStore.26658284.js";import{i as I}from"./url.371275cf.js";import{i as R}from"./colorHelpers.c4e8851c.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]="645f1755-c4c1-4144-8f7e-c0003e017fbb",e._sentryDebugIdIdentifier="sentry-dbid-645f1755-c4c1-4144-8f7e-c0003e017fbb")}catch{}})();const $=async()=>{try{const e=await fetch("/_editor/api/workspace/version");return e.ok&&(await e.json()).version||"7d185056ede84317e632ab9bf8d1a32a1ab77607"}catch(e){return console.error("Failed to fetch Abstra version:",e),"7d185056ede84317e632ab9bf8d1a32a1ab77607"}};function b(e,a,t){return I(a)?a:t==="player"?`/_assets/${e}`:`/_editor/api/assets/${a}`}const k="#414a58",D="#FFFFFF",N="#000000",L="DM Sans",P="Untitled Project",T={value:"en",label:"English"};function C(e){var a,t,s,n,o,l,c,u,m,_,p,f,d,h,g,w;return{id:e.id,path:e.path,theme:(a=e.workspace.theme)!=null?a:D,brandName:(t=e.workspace.brand_name)!=null?t:null,title:e.title,isInitial:e.is_initial,isLocal:(s=e.is_local)!=null?s:!1,startMessage:(n=e.start_message)!=null?n:null,endMessage:(o=e.end_message)!=null?o:null,errorMessage:(l=e.error_message)!=null?l:null,timeoutMessage:(c=e.timeout_message)!=null?c:null,startButtonText:(u=e.start_button_text)!=null?u:null,restartButtonText:(m=e.restart_button_text)!=null?m:null,logoUrl:e.workspace.logo_url,mainColor:(_=e.workspace.main_color)!=null?_:k,fontFamily:(p=e.workspace.font_family)!=null?p:L,autoStart:(f=e.auto_start)!=null?f:!1,allowRestart:e.allow_restart,welcomeTitle:(d=e.welcome_title)!=null?d:null,runtimeType:"form",language:(h=e.workspace.language)!=null?h:T.value,sidebar:(w=(g=e.workspace)==null?void 0:g.sidebar)!=null?w:[]}}function y(e){var t;const a=(t=e.theme)!=null?t:D;return{name:e.name||P,fontColor:e.font_color||N,sidebar:e.sidebar||[],brandName:e.brand_name||"",fontFamily:e.font_family||L,logoUrl:e.logo_url?b("logo",e.logo_url,"player"):null,mainColor:e.main_color||k,theme:R(a)?a:b("background",a,"player"),language:e.language||T.value}}async function B(e){const a=i(),t=await fetch(`/_pages/${e}`,{headers:a.authHeaders});if(t.status===404)return null;if(!t.ok)throw new Error(await t.text());const{form:s}=await t.json();return s?C(s):null}async function M(){const e=i(),a=await fetch("/_workspace",{headers:e.authHeaders});if(a.status!=200)return y({});const t=await a.json();return y(t)}async function H(e){const a=i();return(await fetch(`/_access-control/allow${e}`,{headers:a.authHeaders})).json()}const S=[{path:"/oidc-login-callback",name:"oidcLoginCallback",component:()=>r(()=>import("./OidcLoginCallback.0dff6320.js"),["assets/OidcLoginCallback.0dff6320.js","assets/index.dfc9f500.js","assets/jwt-decode.esm.b204fb7d.js","assets/jwt-decode.9f7a5511.css"]),meta:{allowUnauthenticated:!0}},{path:"/oidc-logout-callback",name:"oidcLogoutCallback",component:()=>r(()=>import("./OidcLogoutCallback.1f077fbb.js"),["assets/OidcLogoutCallback.1f077fbb.js","assets/index.dfc9f500.js","assets/jwt-decode.esm.b204fb7d.js","assets/jwt-decode.9f7a5511.css"]),meta:{allowUnauthenticated:!0}},{path:"/login",name:"playerLogin",component:()=>r(()=>import("./Login.2a4c7e48.js"),["assets/Login.2a4c7e48.js","assets/Login.vue_vue_type_script_setup_true_lang.fab46c0c.js","assets/jwt-decode.esm.b204fb7d.js","assets/jwt-decode.9f7a5511.css","assets/index.dfc9f500.js","assets/CircularLoading.02fd7b7b.js","assets/CircularLoading.a8fe2dc6.css","assets/Logo.cc2d4a95.js","assets/Logo.b7d81119.css","assets/string.4a80abd5.js","assets/index.e6b397aa.js","assets/userStore.26658284.js","assets/Login.75d13f6c.css","assets/url.371275cf.js","assets/colorHelpers.c4e8851c.js","assets/Login.3b76812d.css"]),meta:{allowUnauthenticated:!0}},{path:"/",name:"main",component:()=>r(()=>import("./Main.635e443c.js"),["assets/Main.635e443c.js","assets/PlayerNavbar.523eb145.js","assets/userStore.26658284.js","assets/jwt-decode.esm.b204fb7d.js","assets/jwt-decode.9f7a5511.css","assets/index.dfc9f500.js","assets/metadata.e6e36ac2.js","assets/PhUserList.vue.6d0e7bc8.js","assets/PhWebhooksLogo.vue.49b66d69.js","assets/LoadingOutlined.11688830.js","assets/PhSignOut.vue.ee548b4c.js","assets/index.9028af84.js","assets/PlayerNavbar.c456a4e0.css","assets/url.371275cf.js","assets/colorHelpers.c4e8851c.js","assets/Main.201c14c9.css"]),redirect:{name:"main"},children:[{path:"",name:"playerHome",component:()=>r(()=>import("./Home.5ce6aade.js"),["assets/Home.5ce6aade.js","assets/metadata.e6e36ac2.js","assets/jwt-decode.esm.b204fb7d.js","assets/jwt-decode.9f7a5511.css","assets/PhUserList.vue.6d0e7bc8.js","assets/PhWebhooksLogo.vue.49b66d69.js","assets/Watermark.4b6da85c.js","assets/index.dfc9f500.js","assets/constants.6f822a9d.js","assets/Watermark.b0916e90.css","assets/PhArrowSquareOut.vue.0d20b8e9.js","assets/index.dccc1696.js","assets/Card.774e5d67.js","assets/LoadingOutlined.11688830.js","assets/userStore.26658284.js","assets/url.371275cf.js","assets/colorHelpers.c4e8851c.js","assets/Home.3794e8b4.css"]),meta:{title:"Home"}},{path:"_player/threads",redirect:{name:"playerThreads"}},{path:"error/:status",name:"error",component:()=>r(()=>import("./Error.1bf571a6.js"),["assets/Error.1bf571a6.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang.37e7ad5b.js","assets/Logo.cc2d4a95.js","assets/jwt-decode.esm.b204fb7d.js","assets/jwt-decode.9f7a5511.css","assets/Logo.b7d81119.css","assets/constants.6f822a9d.js","assets/Card.774e5d67.js","assets/userStore.26658284.js","assets/url.371275cf.js","assets/colorHelpers.c4e8851c.js","assets/Error.ef2624eb.css"]),meta:{allowUnauthenticated:!0}},{path:":path(.*)*",name:"form",component:()=>r(()=>import("./Form.288a7191.js"),["assets/Form.288a7191.js","assets/userStore.26658284.js","assets/jwt-decode.esm.b204fb7d.js","assets/jwt-decode.9f7a5511.css","assets/FormRunner.f721431d.js","assets/Login.vue_vue_type_script_setup_true_lang.fab46c0c.js","assets/index.dfc9f500.js","assets/CircularLoading.02fd7b7b.js","assets/CircularLoading.a8fe2dc6.css","assets/Logo.cc2d4a95.js","assets/Logo.b7d81119.css","assets/string.4a80abd5.js","assets/index.e6b397aa.js","assets/Login.75d13f6c.css","assets/Steps.4c7bc2b0.js","assets/index.138ad220.js","assets/Steps.2880920a.css","assets/Watermark.4b6da85c.js","assets/constants.6f822a9d.js","assets/Watermark.b0916e90.css","assets/FormRunner.714ce2c1.css","assets/redirect.d1904049.js","assets/url.371275cf.js","assets/asyncComputed.0f036eae.js","assets/uuid.ffd92735.js","assets/colorHelpers.c4e8851c.js","assets/Form.7493bc0a.css"]),meta:{hideLogin:!0}}]}],E=A({history:O("/"),routes:S,scrollBehavior(e){if(e.hash)return{el:e.hash}}}),V=e=>async(a,t)=>{if(F(a,t),a.meta.allowUnauthenticated)return;const n=await H(a.path),{redirect:o,...l}=a.query;switch(n.status){case"ALLOWED":break;case"UNAUTHORIZED":await e.push({name:"playerLogin",query:{...l,redirect:o||a.path},params:a.params});break;case"NOT_FOUND":await e.push({name:"error",params:{status:"404"}});break;default:await e.push({name:"error",params:{status:"403"}})}};E.beforeEach(V(E));const G=v("workspace",()=>{const e=U({workspace:null,loading:!1});return{state:e,actions:{async fetch(){e.value.loading=!0,e.value.workspace=await M(),e.value.loading=!1}}}});export{k as D,$ as a,E as b,L as c,T as d,D as e,B as f,V as g,b as m,S as r,G as u};
2
- //# sourceMappingURL=workspaceStore.9caf566c.js.map