abstra 3.23.7__py3-none-any.whl → 3.23.8__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.7.dist-info → abstra-3.23.8.dist-info}/METADATA +1 -1
  2. {abstra-3.23.7.dist-info → abstra-3.23.8.dist-info}/RECORD +188 -186
  3. abstra_internals/consts/filepaths.py +1 -1
  4. abstra_internals/controllers/codebase.py +9 -18
  5. abstra_internals/controllers/codebase_events.py +6 -4
  6. abstra_internals/controllers/main.py +56 -67
  7. abstra_internals/interface/cli/deploy.py +1 -3
  8. abstra_internals/repositories/linter/repository.py +9 -40
  9. abstra_internals/repositories/linter/rules/__init__.py +2 -0
  10. abstra_internals/repositories/linter/rules/big_py_files.py +40 -0
  11. abstra_internals/repositories/linter/rules/big_py_files_test.py +93 -0
  12. abstra_internals/repositories/linter/rules/duplicate_package_in_requirements.py +16 -4
  13. abstra_internals/repositories/linter/rules/duplicate_package_in_requirements_test.py +24 -3
  14. abstra_internals/repositories/linter/rules/env_in_bundle.py +3 -6
  15. abstra_internals/repositories/linter/rules/env_in_bundle_test.py +4 -3
  16. abstra_internals/repositories/linter/rules/missing_packages_in_requirements.py +12 -1
  17. abstra_internals/repositories/linter/rules/syntax_errors.py +2 -19
  18. abstra_internals/repositories/linter/rules/venv_in_bundle.py +3 -2
  19. abstra_internals/server/routes/requirements.py +7 -3
  20. abstra_internals/server/routes/workspace.py +0 -10
  21. abstra_internals/services/fs.py +144 -99
  22. abstra_internals/services/fs_test.py +303 -8
  23. abstra_internals/services/requirements.py +271 -81
  24. abstra_internals/services/requirements_test.py +528 -164
  25. abstra_internals/templates/__init__.py +3 -1
  26. abstra_statics/dist/assets/AbstraButton.vue_vue_type_script_setup_true_lang.205eb76e.js +2 -0
  27. abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.32a17b0c.js +2 -0
  28. abstra_statics/dist/assets/ApiKeys.7fefafb4.js +2 -0
  29. abstra_statics/dist/assets/App.c29df54f.js +2 -0
  30. abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.efd9d3fa.js +2 -0
  31. abstra_statics/dist/assets/{BaseLayout.8bd18c5f.js → BaseLayout.b60c33b8.js} +2 -2
  32. abstra_statics/dist/assets/{Billing.877a4614.js → Billing.b9f77b65.js} +2 -2
  33. abstra_statics/dist/assets/{Breadcrumb.f312111a.js → Breadcrumb.d0cc2c91.js} +2 -2
  34. abstra_statics/dist/assets/{Builds.a2c45c39.js → Builds.18e4ba1a.js} +2 -2
  35. abstra_statics/dist/assets/{Card.5f504e7b.js → Card.957a87b2.js} +2 -2
  36. abstra_statics/dist/assets/{CircularLoading.6f511e29.js → CircularLoading.3e4ddd6d.js} +2 -2
  37. abstra_statics/dist/assets/CloseCircleOutlined.4e05b917.js +2 -0
  38. abstra_statics/dist/assets/{ConnectorsView.4e22242f.js → ConnectorsView.562a5007.js} +2 -2
  39. abstra_statics/dist/assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.1d09cfdd.js +2 -0
  40. abstra_statics/dist/assets/ContentLayout.7d5c9f09.js +2 -0
  41. abstra_statics/dist/assets/{CrudView.5a642b48.js → CrudView.8fb84eac.js} +2 -2
  42. abstra_statics/dist/assets/DocsButton.vue_vue_type_script_setup_true_lang.0555d923.js +2 -0
  43. abstra_statics/dist/assets/{EditorLogin.d2224782.js → EditorLogin.02eb6050.js} +2 -2
  44. abstra_statics/dist/assets/{EditorsView.5e769180.js → EditorsView.f0ea00fc.js} +2 -2
  45. abstra_statics/dist/assets/EnvVars.063644bb.js +2 -0
  46. abstra_statics/dist/assets/{Error.dd899e38.js → Error.a81122c4.js} +2 -2
  47. abstra_statics/dist/assets/ExclamationCircleOutlined.d410fb9a.js +2 -0
  48. abstra_statics/dist/assets/Files.f23b9c53.js +2 -0
  49. abstra_statics/dist/assets/{Form.9eebd960.js → Form.bfea5673.js} +2 -2
  50. abstra_statics/dist/assets/{FormRunner.1c6a88dd.js → FormRunner.8bbe841e.js} +2 -2
  51. abstra_statics/dist/assets/Home.3bf2f131.js +2 -0
  52. abstra_statics/dist/assets/Home.42964d5b.js +2 -0
  53. abstra_statics/dist/assets/{Live.a691b0eb.js → Live.5dc821b6.js} +2 -2
  54. abstra_statics/dist/assets/LoadingContainer.6e72d482.js +2 -0
  55. abstra_statics/dist/assets/LoadingOutlined.ee72932a.js +2 -0
  56. abstra_statics/dist/assets/Login.0b618d09.js +2 -0
  57. abstra_statics/dist/assets/{Login.f96858b0.js → Login.c702642b.js} +2 -2
  58. abstra_statics/dist/assets/{Login.vue_vue_type_script_setup_true_lang.7d56cca3.js → Login.vue_vue_type_script_setup_true_lang.a92a80d0.js} +2 -2
  59. abstra_statics/dist/assets/Logo.83b476a4.js +2 -0
  60. abstra_statics/dist/assets/{Logs.8426d360.js → Logs.eebc0504.js} +2 -2
  61. abstra_statics/dist/assets/{LogsController.318117fd.js → LogsController.eb1b811d.js} +2 -2
  62. abstra_statics/dist/assets/Main.88719eb3.js +2 -0
  63. abstra_statics/dist/assets/{MockForm.f8600bec.js → MockForm.c3318be9.js} +2 -2
  64. abstra_statics/dist/assets/Navbar.abf206e9.js +2 -0
  65. abstra_statics/dist/assets/{NewEditor.d3300cf0.css → NewEditor.0044878f.css} +1 -1
  66. abstra_statics/dist/assets/NewEditor.5650f697.js +8 -0
  67. abstra_statics/dist/assets/OidcLoginCallback.df2bdeb0.js +2 -0
  68. abstra_statics/dist/assets/OidcLogoutCallback.2ba5316d.js +2 -0
  69. abstra_statics/dist/assets/{OmniChat.7660057c.css → OmniChat.8a35a659.css} +1 -1
  70. abstra_statics/dist/assets/{OmniChat.097bec71.js → OmniChat.de828c54.js} +4 -4
  71. abstra_statics/dist/assets/{OnboardingView.c9a3343e.js → OnboardingView.1c034f0d.js} +2 -2
  72. abstra_statics/dist/assets/{Organization.0833b7fe.js → Organization.855f95a9.js} +2 -2
  73. abstra_statics/dist/assets/Organizations.3db82ab2.js +2 -0
  74. abstra_statics/dist/assets/{PhArrowCounterClockwise.vue.aaa06bc0.js → PhArrowCounterClockwise.vue.76c9e146.js} +2 -2
  75. abstra_statics/dist/assets/{PhArrowSquareOut.vue.ee4af292.js → PhArrowSquareOut.vue.ecfa9cb2.js} +2 -2
  76. abstra_statics/dist/assets/{PhBookBookmark.vue.681c5036.js → PhBookBookmark.vue.f8f803d9.js} +2 -2
  77. abstra_statics/dist/assets/{PhChats.vue.d61c3615.js → PhChats.vue.dfda946c.js} +2 -2
  78. abstra_statics/dist/assets/{PhClockCounterClockwise.vue.0457e9b2.js → PhClockCounterClockwise.vue.cd77fd26.js} +2 -2
  79. abstra_statics/dist/assets/{PhCopy.vue.391b0ef7.js → PhCopy.vue.a63b48dd.js} +2 -2
  80. abstra_statics/dist/assets/{PhCopySimple.vue.e887b43c.js → PhCopySimple.vue.ecffb042.js} +2 -2
  81. abstra_statics/dist/assets/{PhCube.vue.d070a184.js → PhCube.vue.b5b96a33.js} +2 -2
  82. abstra_statics/dist/assets/{PhDotsThreeVertical.vue.f4b60771.js → PhDotsThreeVertical.vue.2db678ef.js} +2 -2
  83. abstra_statics/dist/assets/PhDownloadSimple.vue.cbca4f9b.js +2 -0
  84. abstra_statics/dist/assets/{PhFolderPlus.vue.d5788203.js → PhFolderPlus.vue.dfb9b117.js} +2 -2
  85. abstra_statics/dist/assets/{PhGear.vue.e2b120bb.js → PhGear.vue.6e1aeed0.js} +2 -2
  86. abstra_statics/dist/assets/{PhKey.vue.cf1e08ca.js → PhKey.vue.50d82bb5.js} +2 -2
  87. abstra_statics/dist/assets/{PhPencil.vue.20f1b3c4.js → PhPencil.vue.ae2943da.js} +2 -2
  88. abstra_statics/dist/assets/{PhPencilSimple.vue.ec2125f5.js → PhPencilSimple.vue.9042e169.js} +2 -2
  89. abstra_statics/dist/assets/{PhPencilSimpleLine.vue.22e75a5a.js → PhPencilSimpleLine.vue.f840cf0d.js} +2 -2
  90. abstra_statics/dist/assets/{PhRocket.vue.27c6f935.js → PhRocket.vue.3b5927aa.js} +2 -2
  91. abstra_statics/dist/assets/{PhSignOut.vue.61b63ec0.js → PhSignOut.vue.d00d3657.js} +2 -2
  92. abstra_statics/dist/assets/{PhSparkle.vue.fd6a9ad7.js → PhSparkle.vue.8a94f3a0.js} +2 -2
  93. abstra_statics/dist/assets/{PhUserList.vue.abdd6da1.js → PhUserList.vue.3791cb59.js} +2 -2
  94. abstra_statics/dist/assets/{PhUsersThree.vue.85d1a1f0.js → PhUsersThree.vue.ef0376b6.js} +2 -2
  95. abstra_statics/dist/assets/{PhWebhooksLogo.vue.00b65b2c.js → PhWebhooksLogo.vue.fe81fb65.js} +2 -2
  96. abstra_statics/dist/assets/{PlayerConfigProvider.10f46997.js → PlayerConfigProvider.2acd3a77.js} +2 -2
  97. abstra_statics/dist/assets/{PlayerNavbar.f2f66852.js → PlayerNavbar.13876ce7.js} +2 -2
  98. abstra_statics/dist/assets/Project.0277535f.js +2 -0
  99. abstra_statics/dist/assets/{ProjectLogin.7660cd84.js → ProjectLogin.46d5036b.js} +2 -2
  100. abstra_statics/dist/assets/{ProjectSettings.50027450.js → ProjectSettings.652a838b.js} +2 -2
  101. abstra_statics/dist/assets/{ProjectsView.107f5e34.js → ProjectsView.c5ec993b.js} +2 -2
  102. abstra_statics/dist/assets/{SaveButton.cd025dae.js → SaveButton.ac38b361.js} +2 -2
  103. abstra_statics/dist/assets/{files.f66880c3.js → ScrollArea.vue_vue_type_script_setup_true_lang.a58564d3.js} +2 -2
  104. abstra_statics/dist/assets/{Sidebar.c3d5d187.js → Sidebar.56e51ab5.js} +2 -2
  105. abstra_statics/dist/assets/Sql.3cdc910a.css +1 -0
  106. abstra_statics/dist/assets/Sql.6961306b.js +5 -0
  107. abstra_statics/dist/assets/Steps.f820fb18.js +2 -0
  108. abstra_statics/dist/assets/{TableEditor.7b07ece4.js → TableEditor.df6a4852.js} +2 -2
  109. abstra_statics/dist/assets/Tables.198b84c5.js +2 -0
  110. abstra_statics/dist/assets/{TablesDiagram.6736c045.js → TablesDiagram.811d464d.js} +3 -3
  111. abstra_statics/dist/assets/TablesTabs.vue_vue_type_script_setup_true_lang.e6074880.js +2 -0
  112. abstra_statics/dist/assets/{Tasks.6660de00.js → Tasks.df69d20e.js} +2 -2
  113. abstra_statics/dist/assets/{UploadOutlined.732440a5.js → UploadOutlined.b601a592.js} +2 -2
  114. abstra_statics/dist/assets/{View.283e52c1.js → View.7a2ccc33.js} +2 -2
  115. abstra_statics/dist/assets/View.vue_vue_type_script_setup_true_lang.424410a2.js +2 -0
  116. abstra_statics/dist/assets/{Watermark.6076ef47.js → Watermark.40c8c47e.js} +2 -2
  117. abstra_statics/dist/assets/{WebEditor.6a012d5b.js → WebEditor.82a3accf.js} +2 -2
  118. abstra_statics/dist/assets/WidgetPreview.0f938200.js +2 -0
  119. abstra_statics/dist/assets/ant-design.544de4a0.js +2 -0
  120. abstra_statics/dist/assets/{apiKey.1c96dd66.js → apiKey.95126643.js} +2 -2
  121. abstra_statics/dist/assets/asyncComputed.1b787534.js +2 -0
  122. abstra_statics/dist/assets/{build.656c5601.js → build.997fec15.js} +2 -2
  123. abstra_statics/dist/assets/colorHelpers.d4f3f275.js +2 -0
  124. abstra_statics/dist/assets/{console.9b13e1da.js → console.54ab975c.js} +4 -4
  125. abstra_statics/dist/assets/{constants.733c6549.js → constants.36bf7d70.js} +2 -2
  126. abstra_statics/dist/assets/{cssMode.6d17ca95.js → cssMode.c1aa21d7.js} +2 -2
  127. abstra_statics/dist/assets/{datetime.adbf692e.js → datetime.adc0acc4.js} +2 -2
  128. abstra_statics/dist/assets/dayjs.a6bd0ee0.js +2 -0
  129. abstra_statics/dist/assets/editor.0ce52658.js +2 -0
  130. abstra_statics/dist/assets/editor.main.353e9a8f.js +2 -0
  131. abstra_statics/dist/assets/fetch.83d89bdc.js +2 -0
  132. abstra_statics/dist/assets/{folder.9092348a.js → folder.41d37eb7.js} +2 -2
  133. abstra_statics/dist/assets/{freemarker2.82f2cb8c.js → freemarker2.40778f3f.js} +2 -2
  134. abstra_statics/dist/assets/{handlebars.36ec2a3c.js → handlebars.92d4ff2a.js} +2 -2
  135. abstra_statics/dist/assets/{html.845da565.js → html.b3c0c53a.js} +3 -3
  136. abstra_statics/dist/assets/{htmlMode.980f76b4.js → htmlMode.1212da49.js} +2 -2
  137. abstra_statics/dist/assets/{index.5dbe93c3.js → index.36d8b30a.js} +2 -2
  138. abstra_statics/dist/assets/{index.55d10b71.js → index.37c46161.js} +2 -2
  139. abstra_statics/dist/assets/index.3d2a7b6d.js +2 -0
  140. abstra_statics/dist/assets/{index.81a2ae08.js → index.3e7471f4.js} +2 -2
  141. abstra_statics/dist/assets/{index.1551abd6.js → index.3ff1c0be.js} +2 -2
  142. abstra_statics/dist/assets/{index.b3b62f71.js → index.5e22e010.js} +2 -2
  143. abstra_statics/dist/assets/{index.0f357aec.js → index.9e0166fe.js} +2 -2
  144. abstra_statics/dist/assets/{index.1e12c884.js → index.a7b8e25e.js} +2 -2
  145. abstra_statics/dist/assets/{index.a2b9d34b.js → index.d181a22c.js} +2 -2
  146. abstra_statics/dist/assets/{javascript.b0154182.js → javascript.f9710043.js} +3 -3
  147. abstra_statics/dist/assets/{jsonMode.f86e9042.js → jsonMode.16d00c0d.js} +2 -2
  148. abstra_statics/dist/assets/{jwt-decode.esm.d86c27e0.js → jwt-decode.esm.992666e9.js} +8 -8
  149. abstra_statics/dist/assets/{linters.9ba6d5f8.js → linters.3c5f0c83.js} +2 -2
  150. abstra_statics/dist/assets/{liquid.029287f8.js → liquid.9a777e1a.js} +3 -3
  151. abstra_statics/dist/assets/{member.3aca30ee.js → member.6b2b3438.js} +2 -2
  152. abstra_statics/dist/assets/{metadata.18d0a278.js → metadata.cfad5458.js} +2 -2
  153. abstra_statics/dist/assets/omniChatStore.2b85c342.js +8 -0
  154. abstra_statics/dist/assets/{organization.8b2c1c53.js → organization.53636095.js} +2 -2
  155. abstra_statics/dist/assets/player.5b7eaa25.js +2 -0
  156. abstra_statics/dist/assets/{plotly.min.10467de2.js → plotly.min.9b8bef5c.js} +2 -2
  157. abstra_statics/dist/assets/polling.88a266b3.js +2 -0
  158. abstra_statics/dist/assets/{project.33809d47.js → project.76f0af14.js} +2 -2
  159. abstra_statics/dist/assets/{python.ee23fd86.js → python.ae8270c8.js} +3 -3
  160. abstra_statics/dist/assets/{razor.4ae6d2a2.js → razor.4f24e19e.js} +3 -3
  161. abstra_statics/dist/assets/{record.d087b37e.js → record.87ef3b68.js} +2 -2
  162. abstra_statics/dist/assets/redirect.2fa4f8cf.js +2 -0
  163. abstra_statics/dist/assets/{repository.02efcdbd.js → repository.9d5310b6.js} +2 -2
  164. abstra_statics/dist/assets/{repository.6fa74dff.js → repository.af418855.js} +2 -2
  165. abstra_statics/dist/assets/{router.7936fd78.js → router.1324a1a9.js} +3 -3
  166. abstra_statics/dist/assets/router.55c0ff56.js +2 -0
  167. abstra_statics/dist/assets/{string.360236ba.js → string.f6a7565f.js} +2 -2
  168. abstra_statics/dist/assets/{tables.d580be9d.js → tables.c26107a1.js} +2 -2
  169. abstra_statics/dist/assets/{tasksController.b66c85ee.js → tasksController.22584849.js} +2 -2
  170. abstra_statics/dist/assets/{toggleHighContrast.510bdb1d.js → toggleHighContrast.fc60753d.js} +49 -49
  171. abstra_statics/dist/assets/{tsMode.5c0f732d.js → tsMode.a4b9b524.js} +2 -2
  172. abstra_statics/dist/assets/{typescript.0643a053.js → typescript.ab90fd1d.js} +2 -2
  173. abstra_statics/dist/assets/url.f490879d.js +2 -0
  174. abstra_statics/dist/assets/userStore.9e7a540a.js +2 -0
  175. abstra_statics/dist/assets/uuid.9161765c.js +2 -0
  176. abstra_statics/dist/assets/{vue-flow-background.011d27ef.js → vue-flow-background.8e4c22c3.js} +2 -2
  177. abstra_statics/dist/assets/{vue-quill.esm-bundler.487756a5.js → vue-quill.esm-bundler.64c5837f.js} +2 -2
  178. abstra_statics/dist/assets/{workspaceStore.87f8dbc6.js → workspaceStore.4f0c433f.js} +2 -2
  179. abstra_statics/dist/assets/{xml.c3c548ab.js → xml.3541c340.js} +3 -3
  180. abstra_statics/dist/assets/{yaml.0d909e29.js → yaml.314312d8.js} +3 -3
  181. abstra_statics/dist/console.html +15 -15
  182. abstra_statics/dist/editor.html +11 -11
  183. abstra_statics/dist/player.html +9 -9
  184. tests/e2e/test_crud_files.py +0 -1
  185. tests/e2e/test_requirements.py +41 -4
  186. abstra_statics/dist/assets/AbstraButton.vue_vue_type_script_setup_true_lang.9812dba9.js +0 -2
  187. abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.0c707a8b.js +0 -2
  188. abstra_statics/dist/assets/ApiKeys.902caf82.js +0 -2
  189. abstra_statics/dist/assets/App.f0468c7f.js +0 -2
  190. abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.864018b5.js +0 -2
  191. abstra_statics/dist/assets/CloseCircleOutlined.2815d641.js +0 -2
  192. abstra_statics/dist/assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.17b546d4.js +0 -2
  193. abstra_statics/dist/assets/ContentLayout.c7733a0e.js +0 -2
  194. abstra_statics/dist/assets/DocsButton.vue_vue_type_script_setup_true_lang.2c5aae83.js +0 -2
  195. abstra_statics/dist/assets/EnvVars.74e357b2.js +0 -2
  196. abstra_statics/dist/assets/ExclamationCircleOutlined.9b25ffda.js +0 -2
  197. abstra_statics/dist/assets/Files.d9621f31.js +0 -2
  198. abstra_statics/dist/assets/Home.9531e545.js +0 -2
  199. abstra_statics/dist/assets/Home.b12bb81a.js +0 -2
  200. abstra_statics/dist/assets/LoadingContainer.c40ae513.js +0 -2
  201. abstra_statics/dist/assets/LoadingOutlined.b607eff2.js +0 -2
  202. abstra_statics/dist/assets/Login.5f104bb1.js +0 -2
  203. abstra_statics/dist/assets/Logo.a34929e1.js +0 -2
  204. abstra_statics/dist/assets/Main.7030ea1d.js +0 -2
  205. abstra_statics/dist/assets/Navbar.a1055174.js +0 -2
  206. abstra_statics/dist/assets/NewEditor.6b2cb8e6.js +0 -8
  207. abstra_statics/dist/assets/OidcLoginCallback.445dd392.js +0 -2
  208. abstra_statics/dist/assets/OidcLogoutCallback.485fb0b9.js +0 -2
  209. abstra_statics/dist/assets/Organizations.1c35b6b8.js +0 -2
  210. abstra_statics/dist/assets/PhDownloadSimple.vue.3444d06b.js +0 -2
  211. abstra_statics/dist/assets/Project.2fdca57c.js +0 -2
  212. abstra_statics/dist/assets/Sql.1afe0bac.css +0 -1
  213. abstra_statics/dist/assets/Sql.7d92acbb.js +0 -5
  214. abstra_statics/dist/assets/Steps.b12e16c6.js +0 -2
  215. abstra_statics/dist/assets/Tables.aa6b418c.js +0 -2
  216. abstra_statics/dist/assets/TablesTabs.vue_vue_type_script_setup_true_lang.95ea10aa.js +0 -2
  217. abstra_statics/dist/assets/View.vue_vue_type_script_setup_true_lang.483e52f9.js +0 -2
  218. abstra_statics/dist/assets/WidgetPreview.b01eed73.js +0 -2
  219. abstra_statics/dist/assets/ant-design.4302db30.js +0 -2
  220. abstra_statics/dist/assets/asyncComputed.59410422.js +0 -2
  221. abstra_statics/dist/assets/colorHelpers.2a607581.js +0 -2
  222. abstra_statics/dist/assets/dayjs.9e279491.js +0 -2
  223. abstra_statics/dist/assets/editor.7e30500a.js +0 -2
  224. abstra_statics/dist/assets/editor.main.4675b13a.js +0 -2
  225. abstra_statics/dist/assets/fetch.13b54f0f.js +0 -2
  226. abstra_statics/dist/assets/index.4ecba4f7.js +0 -2
  227. abstra_statics/dist/assets/omniChatStore.16b8f156.js +0 -10
  228. abstra_statics/dist/assets/player.7f570660.js +0 -2
  229. abstra_statics/dist/assets/polling.0b08b681.js +0 -2
  230. abstra_statics/dist/assets/redirect.c06a7828.js +0 -2
  231. abstra_statics/dist/assets/router.7071f838.js +0 -2
  232. abstra_statics/dist/assets/url.b31d406a.js +0 -2
  233. abstra_statics/dist/assets/userStore.f2537ff3.js +0 -2
  234. abstra_statics/dist/assets/uuid.d6d43ef5.js +0 -2
  235. {abstra-3.23.7.dist-info → abstra-3.23.8.dist-info}/WHEEL +0 -0
  236. {abstra-3.23.7.dist-info → abstra-3.23.8.dist-info}/entry_points.txt +0 -0
  237. {abstra-3.23.7.dist-info → abstra-3.23.8.dist-info}/top_level.txt +0 -0
@@ -1,2 +0,0 @@
1
- import{O as d}from"./workspaceStore.87f8dbc6.js";import{d as c,k as i,a5 as l,f as a,b as n,u as o,o as u,g as r,A as f,da as p}from"./jwt-decode.esm.d86c27e0.js";import"./userStore.f2537ff3.js";import"./url.b31d406a.js";import"./colorHelpers.2a607581.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]="6c443e1a-34c5-4ee0-8740-0cac835dc49a",e._sentryDebugIdIdentifier="sentry-dbid-6c443e1a-34c5-4ee0-8740-0cac835dc49a")}catch{}})();const g=c({__name:"OidcLoginCallback",setup(e){return i(async()=>{await new d().loginCallback()}),(t,s)=>(u(),l("div",null,[a(o(f),null,{default:n(()=>[r("You're authenticated")]),_:1}),a(o(p),null,{default:n(()=>[r(" This window should close automatically. Please close it manually if it doesn't. ")]),_:1})]))}});export{g as default};
2
- //# sourceMappingURL=OidcLoginCallback.445dd392.js.map
@@ -1,2 +0,0 @@
1
- import{O as d}from"./workspaceStore.87f8dbc6.js";import{d as l,k as i,a5 as u,f as a,b as o,u as n,o as c,g as r,A as f,da as b}from"./jwt-decode.esm.d86c27e0.js";import"./userStore.f2537ff3.js";import"./url.b31d406a.js";import"./colorHelpers.2a607581.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]="a7765bb0-d2a5-424d-b3ca-b31e84e2f87a",e._sentryDebugIdIdentifier="sentry-dbid-a7765bb0-d2a5-424d-b3ca-b31e84e2f87a")}catch{}})();const g=l({__name:"OidcLogoutCallback",setup(e){return i(async()=>{await new d().logoutCallback()}),(t,s)=>(c(),u("div",null,[a(n(f),null,{default:o(()=>[r("You're authenticated")]),_:1}),a(n(b),null,{default:o(()=>[r(" This window should close automatically. Please close it manually if it doesn't. ")]),_:1})]))}});export{g as default};
2
- //# sourceMappingURL=OidcLogoutCallback.485fb0b9.js.map
@@ -1,2 +0,0 @@
1
- import{N as k}from"./Navbar.a1055174.js";import{B as N}from"./BaseLayout.8bd18c5f.js";import{C as I}from"./ContentLayout.c7733a0e.js";import{C as _}from"./CrudView.5a642b48.js";import{a as O}from"./asyncComputed.59410422.js";import{F as x}from"./PhArrowSquareOut.vue.ee4af292.js";import{G as R}from"./PhPencil.vue.20f1b3c4.js";import{d as M,e5 as h,r as B,c as D,a5 as F,f as o,b as i,u as s,aR as V,o as g,a as $,cz as j,bJ as A,cy as E,h as G,M as L}from"./jwt-decode.esm.d86c27e0.js";import"./router.7936fd78.js";import{a as m}from"./organization.8b2c1c53.js";import"./tables.d580be9d.js";import"./AbstraButton.vue_vue_type_script_setup_true_lang.9812dba9.js";import"./constants.733c6549.js";import"./PhChats.vue.d61c3615.js";import"./PhSignOut.vue.61b63ec0.js";import"./index.4ecba4f7.js";import"./index.0f357aec.js";import"./omniChatStore.16b8f156.js";import"./record.d087b37e.js";import"./uuid.d6d43ef5.js";import"./PhCopySimple.vue.e887b43c.js";import"./PhBookBookmark.vue.681c5036.js";import"./PhSparkle.vue.fd6a9ad7.js";import"./index.b3b62f71.js";import"./Breadcrumb.f312111a.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.2c5aae83.js";import"./url.b31d406a.js";import"./PhDotsThreeVertical.vue.f4b60771.js";import"./index.a2b9d34b.js";import"./string.360236ba.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},l=new Error().stack;l&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[l]="84a44813-2090-486f-bd64-84e0e8c4ebbb",r._sentryDebugIdIdentifier="sentry-dbid-84a44813-2090-486f-bd64-84e0e8c4ebbb")}catch{}})();const yt=M({__name:"Organizations",setup(r){const l=[{label:"My organizations",path:"/organizations"}],u=[{key:"name",label:"Organization Name"}],f=h(),{loading:b,result:y,refetch:v}=O(()=>m.list()),p=({key:e})=>{f.push({name:"organization",params:{organizationId:e}})},n=B({state:"idle"});function z(e){n.value={state:"renaming",organizationId:e.id,newName:e.name}}async function d(e){if(n.value.state==="renaming"&&e){const{organizationId:t,newName:a}=n.value;await m.rename(t,a),v()}n.value={state:"idle"}}const w=async e=>{const t=await m.create(e.name);p({key:t.id})},C=D(()=>{var e,t;return{columns:[{title:"Organization Name",align:"left"},{title:"Path"},{title:"",align:"right"}],rows:(t=(e=y.value)==null?void 0:e.map(a=>{var c;return{key:a.id,cells:[{type:"link",text:a.name,to:`/organizations/${encodeURIComponent(a.id)}`},{type:"text",text:(c=a.id)!=null?c:null},{type:"actions",actions:[{icon:x,label:"Go to projects",onClick:p},{icon:R,label:"Rename",onClick:()=>z(a)}]}]}}))!=null?t:[]}});return(e,t)=>(g(),F(V,null,[o(N,null,{navbar:i(()=>[o(k,{breadcrumb:l})]),content:i(()=>[o(I,null,{default:i(()=>[o(_,{"entity-name":"organization",loading:s(b),title:"My organizations",description:"An organization is your company\u2019s account. Manage editors, projects and billing.","create-button-text":"Create Organization","empty-title":"No organizations here yet",table:C.value,fields:u,create:w},null,8,["loading","table"])]),_:1})]),_:1}),o(s(L),{open:n.value.state==="renaming",title:"Rename organization",onCancel:t[1]||(t[1]=a=>d(!1)),onOk:t[2]||(t[2]=a=>d(!0))},{default:i(()=>[n.value.state==="renaming"?(g(),$(s(E),{key:0,layout:"vertical"},{default:i(()=>[o(s(j),{label:"New name"},{default:i(()=>[o(s(A),{value:n.value.newName,"onUpdate:value":t[0]||(t[0]=a=>n.value.newName=a)},null,8,["value"])]),_:1})]),_:1})):G("",!0)]),_:1},8,["open"])],64))}});export{yt as default};
2
- //# sourceMappingURL=Organizations.1c35b6b8.js.map
@@ -1,2 +0,0 @@
1
- import{d as V,am as n,c as i,o as l,a5 as t,a7 as h,h as y,e6 as f,e as o}from"./jwt-decode.esm.d86c27e0.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="dc3bec25-9c5b-4d9d-a738-973adba8090c",r._sentryDebugIdIdentifier="sentry-dbid-dc3bec25-9c5b-4d9d-a738-973adba8090c")}catch{}})();const w=["width","height","fill","transform"],b={key:0},H=o("path",{d:"M228,144v64a12,12,0,0,1-12,12H40a12,12,0,0,1-12-12V144a12,12,0,0,1,24,0v52H204V144a12,12,0,0,1,24,0Zm-108.49,8.49a12,12,0,0,0,17,0l40-40a12,12,0,0,0-17-17L140,115V32a12,12,0,0,0-24,0v83L96.49,95.51a12,12,0,0,0-17,17Z"},null,-1),Z=[H],L={key:1},k=o("path",{d:"M216,48V208H40V48A16,16,0,0,1,56,32H200A16,16,0,0,1,216,48Z",opacity:"0.2"},null,-1),M=o("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z"},null,-1),B=[k,M],D={key:2},S=o("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40A8,8,0,0,0,168,96H136V32a8,8,0,0,0-16,0V96H88a8,8,0,0,0-5.66,13.66Z"},null,-1),I=[S],_={key:3},x=o("path",{d:"M222,144v64a6,6,0,0,1-6,6H40a6,6,0,0,1-6-6V144a6,6,0,0,1,12,0v58H210V144a6,6,0,0,1,12,0Zm-98.24,4.24a6,6,0,0,0,8.48,0l40-40a6,6,0,0,0-8.48-8.48L134,129.51V32a6,6,0,0,0-12,0v97.51L92.24,99.76a6,6,0,0,0-8.48,8.48Z"},null,-1),z=[x],A={key:4},C=o("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z"},null,-1),N=[C],E={key:5},P=o("path",{d:"M220,144v64a4,4,0,0,1-4,4H40a4,4,0,0,1-4-4V144a4,4,0,0,1,8,0v60H212V144a4,4,0,0,1,8,0Zm-94.83,2.83a4,4,0,0,0,5.66,0l40-40a4,4,0,1,0-5.66-5.66L132,134.34V32a4,4,0,0,0-8,0V134.34L90.83,101.17a4,4,0,0,0-5.66,5.66Z"},null,-1),$=[P],j={name:"PhDownloadSimple"},W=V({...j,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(r){const e=r,s=n("weight","regular"),v=n("size","1em"),c=n("color","currentColor"),g=n("mirrored",!1),d=i(()=>{var a;return(a=e.weight)!=null?a:s}),u=i(()=>{var a;return(a=e.size)!=null?a:v}),p=i(()=>{var a;return(a=e.color)!=null?a:c}),m=i(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:g?"scale(-1, 1)":void 0);return(a,q)=>(l(),t("svg",f({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:p.value,transform:m.value},a.$attrs),[h(a.$slots,"default"),d.value==="bold"?(l(),t("g",b,Z)):d.value==="duotone"?(l(),t("g",L,B)):d.value==="fill"?(l(),t("g",D,I)):d.value==="light"?(l(),t("g",_,z)):d.value==="regular"?(l(),t("g",A,N)):d.value==="thin"?(l(),t("g",E,$)):y("",!0)],16,w))}});export{W as G};
2
- //# sourceMappingURL=PhDownloadSimple.vue.3444d06b.js.map
@@ -1,2 +0,0 @@
1
- import{N as w}from"./Navbar.a1055174.js";import{B as C}from"./BaseLayout.8bd18c5f.js";import{a as b}from"./asyncComputed.59410422.js";import{d as A,am as c,c as n,o as e,a5 as t,a7 as V,h as L,e6 as f,e as o,eb as k,m as _,a as M,b as $,f as Z,_ as z}from"./jwt-decode.esm.d86c27e0.js";import"./router.7936fd78.js";import{a as S}from"./organization.8b2c1c53.js";import{a as B}from"./project.33809d47.js";import"./tables.d580be9d.js";import{_ as x,S as P}from"./Sidebar.c3d5d187.js";import{C as I}from"./ContentLayout.c7733a0e.js";import{G as j}from"./PhArrowCounterClockwise.vue.aaa06bc0.js";import{a as N,D as F,F as E,I as D,G}from"./PhRocket.vue.27c6f935.js";import{F as q}from"./PhKey.vue.cf1e08ca.js";import{F as W}from"./folder.9092348a.js";import{_ as R}from"./ConsoleOmniChat.vue_vue_type_script_setup_true_lang.17b546d4.js";import"./AbstraButton.vue_vue_type_script_setup_true_lang.9812dba9.js";import"./constants.733c6549.js";import"./PhChats.vue.d61c3615.js";import"./PhSignOut.vue.61b63ec0.js";import"./index.4ecba4f7.js";import"./index.0f357aec.js";import"./omniChatStore.16b8f156.js";import"./record.d087b37e.js";import"./uuid.d6d43ef5.js";import"./PhCopySimple.vue.e887b43c.js";import"./PhBookBookmark.vue.681c5036.js";import"./PhSparkle.vue.fd6a9ad7.js";import"./index.b3b62f71.js";import"./Breadcrumb.f312111a.js";import"./index.a2b9d34b.js";import"./string.360236ba.js";import"./index.1551abd6.js";import"./AbstraLogo.vue_vue_type_script_setup_true_lang.0c707a8b.js";import"./Logo.a34929e1.js";import"./OmniChat.097bec71.js";import"./ant-design.4302db30.js";import"./PhClockCounterClockwise.vue.0457e9b2.js";import"./LoadingOutlined.b607eff2.js";import"./Card.5f504e7b.js";(function(){try{var m=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(m._sentryDebugIds=m._sentryDebugIds||{},m._sentryDebugIds[r]="d0f58f82-f679-4719-b210-2dfe5316dbde",m._sentryDebugIdIdentifier="sentry-dbid-d0f58f82-f679-4719-b210-2dfe5316dbde")}catch{}})();const T=["width","height","fill","transform"],O={key:0},K=o("path",{d:"M196,35.52C177.62,25.51,153.48,20,128,20S78.38,25.51,60,35.52C39.37,46.79,28,62.58,28,80v96c0,17.42,11.37,33.21,32,44.48,18.35,10,42.49,15.52,68,15.52s49.62-5.51,68-15.52c20.66-11.27,32-27.06,32-44.48V80C228,62.58,216.63,46.79,196,35.52ZM204,128c0,17-31.21,36-76,36s-76-19-76-36v-8.46a88.9,88.9,0,0,0,8,4.94c18.35,10,42.49,15.52,68,15.52s49.62-5.51,68-15.52a88.9,88.9,0,0,0,8-4.94ZM128,44c44.79,0,76,19,76,36s-31.21,36-76,36S52,97,52,80,83.21,44,128,44Zm0,168c-44.79,0-76-19-76-36v-8.46a88.9,88.9,0,0,0,8,4.94c18.35,10,42.49,15.52,68,15.52s49.62-5.51,68-15.52a88.9,88.9,0,0,0,8-4.94V176C204,193,172.79,212,128,212Z"},null,-1),J=[K],Q={key:1},U=o("path",{d:"M216,80c0,26.51-39.4,48-88,48S40,106.51,40,80s39.4-48,88-48S216,53.49,216,80Z",opacity:"0.2"},null,-1),X=o("path",{d:"M128,24C74.17,24,32,48.6,32,80v96c0,31.4,42.17,56,96,56s96-24.6,96-56V80C224,48.6,181.83,24,128,24Zm80,104c0,9.62-7.88,19.43-21.61,26.92C170.93,163.35,150.19,168,128,168s-42.93-4.65-58.39-13.08C55.88,147.43,48,137.62,48,128V111.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64ZM69.61,53.08C85.07,44.65,105.81,40,128,40s42.93,4.65,58.39,13.08C200.12,60.57,208,70.38,208,80s-7.88,19.43-21.61,26.92C170.93,115.35,150.19,120,128,120s-42.93-4.65-58.39-13.08C55.88,99.43,48,89.62,48,80S55.88,60.57,69.61,53.08ZM186.39,202.92C170.93,211.35,150.19,216,128,216s-42.93-4.65-58.39-13.08C55.88,195.43,48,185.62,48,176V159.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64V176C208,185.62,200.12,195.43,186.39,202.92Z"},null,-1),Y=[U,X],a1={key:2},l1=o("path",{d:"M128,24C74.17,24,32,48.6,32,80v96c0,31.4,42.17,56,96,56s96-24.6,96-56V80C224,48.6,181.83,24,128,24Zm80,104c0,9.62-7.88,19.43-21.61,26.92C170.93,163.35,150.19,168,128,168s-42.93-4.65-58.39-13.08C55.88,147.43,48,137.62,48,128V111.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64Zm-21.61,74.92C170.93,211.35,150.19,216,128,216s-42.93-4.65-58.39-13.08C55.88,195.43,48,185.62,48,176V159.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64V176C208,185.62,200.12,195.43,186.39,202.92Z"},null,-1),e1=[l1],t1={key:3},o1=o("path",{d:"M128,26C75.29,26,34,49.72,34,80v96c0,30.28,41.29,54,94,54s94-23.72,94-54V80C222,49.72,180.71,26,128,26Zm0,12c44.45,0,82,19.23,82,42s-37.55,42-82,42S46,102.77,46,80,83.55,38,128,38Zm82,138c0,22.77-37.55,42-82,42s-82-19.23-82-42V154.79C62,171.16,92.37,182,128,182s66-10.84,82-27.21Zm0-48c0,22.77-37.55,42-82,42s-82-19.23-82-42V106.79C62,123.16,92.37,134,128,134s66-10.84,82-27.21Z"},null,-1),r1=[o1],i1={key:4},n1=o("path",{d:"M128,24C74.17,24,32,48.6,32,80v96c0,31.4,42.17,56,96,56s96-24.6,96-56V80C224,48.6,181.83,24,128,24Zm80,104c0,9.62-7.88,19.43-21.61,26.92C170.93,163.35,150.19,168,128,168s-42.93-4.65-58.39-13.08C55.88,147.43,48,137.62,48,128V111.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64ZM69.61,53.08C85.07,44.65,105.81,40,128,40s42.93,4.65,58.39,13.08C200.12,60.57,208,70.38,208,80s-7.88,19.43-21.61,26.92C170.93,115.35,150.19,120,128,120s-42.93-4.65-58.39-13.08C55.88,99.43,48,89.62,48,80S55.88,60.57,69.61,53.08ZM186.39,202.92C170.93,211.35,150.19,216,128,216s-42.93-4.65-58.39-13.08C55.88,195.43,48,185.62,48,176V159.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64V176C208,185.62,200.12,195.43,186.39,202.92Z"},null,-1),s1=[n1],c1={key:5},u1=o("path",{d:"M192.14,42.55C174.94,33.17,152.16,28,128,28S81.06,33.17,63.86,42.55C45.89,52.35,36,65.65,36,80v96c0,14.35,9.89,27.65,27.86,37.45,17.2,9.38,40,14.55,64.14,14.55s46.94-5.17,64.14-14.55c18-9.8,27.86-23.1,27.86-37.45V80C220,65.65,210.11,52.35,192.14,42.55ZM212,176c0,11.29-8.41,22.1-23.69,30.43C172.27,215.18,150.85,220,128,220s-44.27-4.82-60.31-13.57C52.41,198.1,44,187.29,44,176V149.48c4.69,5.93,11.37,11.34,19.86,16,17.2,9.38,40,14.55,64.14,14.55s46.94-5.17,64.14-14.55c8.49-4.63,15.17-10,19.86-16Zm0-48c0,11.29-8.41,22.1-23.69,30.43C172.27,167.18,150.85,172,128,172s-44.27-4.82-60.31-13.57C52.41,150.1,44,139.29,44,128V101.48c4.69,5.93,11.37,11.34,19.86,16,17.2,9.38,40,14.55,64.14,14.55s46.94-5.17,64.14-14.55c8.49-4.63,15.17-10,19.86-16Zm-23.69-17.57C172.27,119.18,150.85,124,128,124s-44.27-4.82-60.31-13.57C52.41,102.1,44,91.29,44,80s8.41-22.1,23.69-30.43C83.73,40.82,105.15,36,128,36s44.27,4.82,60.31,13.57C203.59,57.9,212,68.71,212,80S203.59,102.1,188.31,110.43Z"},null,-1),d1=[u1],m1={name:"PhDatabase"},h1=A({...m1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(m){const r=m,h=c("weight","regular"),s=c("size","1em"),v=c("color","currentColor"),p=c("mirrored",!1),l=n(()=>{var a;return(a=r.weight)!=null?a:h}),u=n(()=>{var a;return(a=r.size)!=null?a:s}),i=n(()=>{var a;return(a=r.color)!=null?a:v}),d=n(()=>r.mirrored!==void 0?r.mirrored?"scale(-1, 1)":void 0:p?"scale(-1, 1)":void 0);return(a,g)=>(e(),t("svg",f({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:i.value,transform:d.value},a.$attrs),[V(a.$slots,"default"),l.value==="bold"?(e(),t("g",O,J)):l.value==="duotone"?(e(),t("g",Q,Y)):l.value==="fill"?(e(),t("g",a1,e1)):l.value==="light"?(e(),t("g",t1,r1)):l.value==="regular"?(e(),t("g",i1,s1)):l.value==="thin"?(e(),t("g",c1,d1)):L("",!0)],16,T))}}),p1=["width","height","fill","transform"],v1={key:0},g1=o("path",{d:"M228,56H160L133.33,36a20.12,20.12,0,0,0-12-4H76A20,20,0,0,0,56,52V72H36A20,20,0,0,0,16,92V204a20,20,0,0,0,20,20H188.89A19.13,19.13,0,0,0,208,204.89V184h20.89A19.13,19.13,0,0,0,248,164.89V76A20,20,0,0,0,228,56ZM184,200H40V96H80l28.8,21.6A12,12,0,0,0,116,120h68Zm40-40H208V116a20,20,0,0,0-20-20H120L93.33,76a20.12,20.12,0,0,0-12-4H80V56h40l28.8,21.6A12,12,0,0,0,156,80h68Z"},null,-1),A1=[g1],L1={key:1},H1=o("path",{d:"M232,80v88.89a7.11,7.11,0,0,1-7.11,7.11H200V112a8,8,0,0,0-8-8H120L90.13,81.6a8,8,0,0,0-4.8-1.6H64V56a8,8,0,0,1,8-8h45.33a8,8,0,0,1,4.8,1.6L152,72h72A8,8,0,0,1,232,80Z",opacity:"0.2"},null,-1),$1=o("path",{d:"M224,64H154.67L126.93,43.2a16.12,16.12,0,0,0-9.6-3.2H72A16,16,0,0,0,56,56V72H40A16,16,0,0,0,24,88V200a16,16,0,0,0,16,16H192.89A15.13,15.13,0,0,0,208,200.89V184h16.89A15.13,15.13,0,0,0,240,168.89V80A16,16,0,0,0,224,64ZM192,200H40V88H85.33l29.87,22.4A8,8,0,0,0,120,112h72Zm32-32H208V112a16,16,0,0,0-16-16H122.67L94.93,75.2a16.12,16.12,0,0,0-9.6-3.2H72V56h45.33L147.2,78.4A8,8,0,0,0,152,80h72Z"},null,-1),Z1=[H1,$1],V1={key:2},f1=o("path",{d:"M224,64H154.67L126.93,43.2a16.12,16.12,0,0,0-9.6-3.2H72A16,16,0,0,0,56,56V72H40A16,16,0,0,0,24,88V200a16,16,0,0,0,16,16H192.89A15.13,15.13,0,0,0,208,200.89V184h16.89A15.13,15.13,0,0,0,240,168.89V80A16,16,0,0,0,224,64Zm0,104H208V112a16,16,0,0,0-16-16H122.67L94.93,75.2a16.12,16.12,0,0,0-9.6-3.2H72V56h45.33L147.2,78.4A8,8,0,0,0,152,80h72Z"},null,-1),M1=[f1],y1={key:3},w1=o("path",{d:"M224,66H154L125.73,44.8a14,14,0,0,0-8.4-2.8H72A14,14,0,0,0,58,56V74H40A14,14,0,0,0,26,88V200a14,14,0,0,0,14,14H192.89A13.12,13.12,0,0,0,206,200.89V182h18.89A13.12,13.12,0,0,0,238,168.89V80A14,14,0,0,0,224,66ZM194,200.89a1.11,1.11,0,0,1-1.11,1.11H40a2,2,0,0,1-2-2V88a2,2,0,0,1,2-2H85.33a2,2,0,0,1,1.2.4l29.87,22.4A6,6,0,0,0,120,110h72a2,2,0,0,1,2,2Zm32-32a1.11,1.11,0,0,1-1.11,1.11H206V112a14,14,0,0,0-14-14H122L93.73,76.8a14,14,0,0,0-8.4-2.8H70V56a2,2,0,0,1,2-2h45.33a2,2,0,0,1,1.2.4L148.4,76.8A6,6,0,0,0,152,78h72a2,2,0,0,1,2,2Z"},null,-1),C1=[w1],b1={key:4},k1=o("path",{d:"M224,64H154.67L126.93,43.2a16.12,16.12,0,0,0-9.6-3.2H72A16,16,0,0,0,56,56V72H40A16,16,0,0,0,24,88V200a16,16,0,0,0,16,16H192.89A15.13,15.13,0,0,0,208,200.89V184h16.89A15.13,15.13,0,0,0,240,168.89V80A16,16,0,0,0,224,64ZM192,200H40V88H85.33l29.87,22.4A8,8,0,0,0,120,112h72Zm32-32H208V112a16,16,0,0,0-16-16H122.67L94.93,75.2a16.12,16.12,0,0,0-9.6-3.2H72V56h45.33L147.2,78.4A8,8,0,0,0,152,80h72Z"},null,-1),_1=[k1],z1={key:5},S1=o("path",{d:"M224,68H153.33l-28.8-21.6a12.05,12.05,0,0,0-7.2-2.4H72A12,12,0,0,0,60,56V76H40A12,12,0,0,0,28,88V200a12,12,0,0,0,12,12H192.89A11.12,11.12,0,0,0,204,200.89V180h20.89A11.12,11.12,0,0,0,236,168.89V80A12,12,0,0,0,224,68ZM196,200.89a3.12,3.12,0,0,1-3.11,3.11H40a4,4,0,0,1-4-4V88a4,4,0,0,1,4-4H85.33a4,4,0,0,1,2.4.8l29.87,22.4a4,4,0,0,0,2.4.8h72a4,4,0,0,1,4,4Zm32-32a3.12,3.12,0,0,1-3.11,3.11H204V112a12,12,0,0,0-12-12H121.33L92.53,78.4a12.05,12.05,0,0,0-7.2-2.4H68V56a4,4,0,0,1,4-4h45.33a4,4,0,0,1,2.4.8L149.6,75.2a4,4,0,0,0,2.4.8h72a4,4,0,0,1,4,4Z"},null,-1),B1=[S1],x1={name:"PhFolders"},P1=A({...x1,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(m){const r=m,h=c("weight","regular"),s=c("size","1em"),v=c("color","currentColor"),p=c("mirrored",!1),l=n(()=>{var a;return(a=r.weight)!=null?a:h}),u=n(()=>{var a;return(a=r.size)!=null?a:s}),i=n(()=>{var a;return(a=r.color)!=null?a:v}),d=n(()=>r.mirrored!==void 0?r.mirrored?"scale(-1, 1)":void 0:p?"scale(-1, 1)":void 0);return(a,g)=>(e(),t("svg",f({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:i.value,transform:d.value},a.$attrs),[V(a.$slots,"default"),l.value==="bold"?(e(),t("g",v1,A1)):l.value==="duotone"?(e(),t("g",L1,Z1)):l.value==="fill"?(e(),t("g",V1,M1)):l.value==="light"?(e(),t("g",y1,C1)):l.value==="regular"?(e(),t("g",b1,_1)):l.value==="thin"?(e(),t("g",z1,B1)):L("",!0)],16,p1))}}),I1=["width","height","fill","transform"],j1={key:0},N1=o("path",{d:"M128,76a52,52,0,1,0,52,52A52.06,52.06,0,0,0,128,76Zm0,80a28,28,0,1,1,28-28A28,28,0,0,1,128,156Zm113.86-49.57A12,12,0,0,0,236,98.34L208.21,82.49l-.11-31.31a12,12,0,0,0-4.25-9.12,116,116,0,0,0-38-21.41,12,12,0,0,0-9.68.89L128,37.27,99.83,21.53a12,12,0,0,0-9.7-.9,116.06,116.06,0,0,0-38,21.47,12,12,0,0,0-4.24,9.1l-.14,31.34L20,98.35a12,12,0,0,0-5.85,8.11,110.7,110.7,0,0,0,0,43.11A12,12,0,0,0,20,157.66l27.82,15.85.11,31.31a12,12,0,0,0,4.25,9.12,116,116,0,0,0,38,21.41,12,12,0,0,0,9.68-.89L128,218.73l28.14,15.74a12,12,0,0,0,9.7.9,116.06,116.06,0,0,0,38-21.47,12,12,0,0,0,4.24-9.1l.14-31.34,27.81-15.81a12,12,0,0,0,5.85-8.11A110.7,110.7,0,0,0,241.86,106.43Zm-22.63,33.18-26.88,15.28a11.94,11.94,0,0,0-4.55,4.59c-.54,1-1.11,1.93-1.7,2.88a12,12,0,0,0-1.83,6.31L184.13,199a91.83,91.83,0,0,1-21.07,11.87l-27.15-15.19a12,12,0,0,0-5.86-1.53h-.29c-1.14,0-2.3,0-3.44,0a12.08,12.08,0,0,0-6.14,1.51L93,210.82A92.27,92.27,0,0,1,71.88,199l-.11-30.24a12,12,0,0,0-1.83-6.32c-.58-.94-1.16-1.91-1.7-2.88A11.92,11.92,0,0,0,63.7,155L36.8,139.63a86.53,86.53,0,0,1,0-23.24l26.88-15.28a12,12,0,0,0,4.55-4.58c.54-1,1.11-1.94,1.7-2.89a12,12,0,0,0,1.83-6.31L71.87,57A91.83,91.83,0,0,1,92.94,45.17l27.15,15.19a11.92,11.92,0,0,0,6.15,1.52c1.14,0,2.3,0,3.44,0a12.08,12.08,0,0,0,6.14-1.51L163,45.18A92.27,92.27,0,0,1,184.12,57l.11,30.24a12,12,0,0,0,1.83,6.32c.58.94,1.16,1.91,1.7,2.88A11.92,11.92,0,0,0,192.3,101l26.9,15.33A86.53,86.53,0,0,1,219.23,139.61Z"},null,-1),F1=[N1],E1={key:1},D1=o("path",{d:"M230.1,108.76,198.25,90.62c-.64-1.16-1.31-2.29-2-3.41l-.12-36A104.61,104.61,0,0,0,162,32L130,49.89c-1.34,0-2.69,0-4,0L94,32A104.58,104.58,0,0,0,59.89,51.25l-.16,36c-.7,1.12-1.37,2.26-2,3.41l-31.84,18.1a99.15,99.15,0,0,0,0,38.46l31.85,18.14c.64,1.16,1.31,2.29,2,3.41l.12,36A104.61,104.61,0,0,0,94,224l32-17.87c1.34,0,2.69,0,4,0L162,224a104.58,104.58,0,0,0,34.08-19.25l.16-36c.7-1.12,1.37-2.26,2-3.41l31.84-18.1A99.15,99.15,0,0,0,230.1,108.76ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"},null,-1),G1=o("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm109.94-52.79a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A111.92,111.92,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.63a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21Zm-15,34.91-28.57,16.25a8,8,0,0,0-3,3c-.58,1-1.19,2.06-1.81,3.06a7.94,7.94,0,0,0-1.22,4.21l-.15,32.25a95.89,95.89,0,0,1-25.37,14.3L134,199.13a8,8,0,0,0-3.91-1h-.19c-1.21,0-2.43,0-3.64,0a8.1,8.1,0,0,0-4.1,1l-28.84,16.1A96,96,0,0,1,67.88,201l-.11-32.2a8,8,0,0,0-1.22-4.22c-.62-1-1.23-2-1.8-3.06a8.09,8.09,0,0,0-3-3.06l-28.6-16.29a90.49,90.49,0,0,1,0-28.26L61.67,97.63a8,8,0,0,0,3-3c.58-1,1.19-2.06,1.81-3.06a7.94,7.94,0,0,0,1.22-4.21l.15-32.25a95.89,95.89,0,0,1,25.37-14.3L122,56.87a8,8,0,0,0,4.1,1c1.21,0,2.43,0,3.64,0a8,8,0,0,0,4.1-1l28.84-16.1A96,96,0,0,1,188.12,55l.11,32.2a8,8,0,0,0,1.22,4.22c.62,1,1.23,2,1.8,3.06a8.09,8.09,0,0,0,3,3.06l28.6,16.29A90.49,90.49,0,0,1,222.9,142.12Z"},null,-1),q1=[D1,G1],W1={key:2},R1=o("path",{d:"M237.94,107.21a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A111.92,111.92,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.63a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"},null,-1),T1=[R1],O1={key:3},K1=o("path",{d:"M128,82a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162Zm108-54.4a6,6,0,0,0-2.92-4L202.64,86.22l-.42-.71L202.1,51.2A6,6,0,0,0,200,46.64a110.12,110.12,0,0,0-36.07-20.31,6,6,0,0,0-4.84.45L128.46,43.86h-1L96.91,26.76a6,6,0,0,0-4.86-.44A109.92,109.92,0,0,0,56,46.68a6,6,0,0,0-2.12,4.55l-.16,34.34c-.14.23-.28.47-.41.71L22.91,103.57A6,6,0,0,0,20,107.62a104.81,104.81,0,0,0,0,40.78,6,6,0,0,0,2.92,4l30.42,17.33.42.71.12,34.31A6,6,0,0,0,56,209.36a110.12,110.12,0,0,0,36.07,20.31,6,6,0,0,0,4.84-.45l30.61-17.08h1l30.56,17.1A6.09,6.09,0,0,0,162,230a5.83,5.83,0,0,0,1.93-.32,109.92,109.92,0,0,0,36-20.36,6,6,0,0,0,2.12-4.55l.16-34.34c.14-.23.28-.47.41-.71l30.42-17.29a6,6,0,0,0,2.92-4.05A104.81,104.81,0,0,0,236,107.6Zm-11.25,35.79L195.32,160.1a6.07,6.07,0,0,0-2.28,2.3c-.59,1-1.21,2.11-1.86,3.14a6,6,0,0,0-.91,3.16l-.16,33.21a98.15,98.15,0,0,1-27.52,15.53L133,200.88a6,6,0,0,0-2.93-.77h-.14c-1.24,0-2.5,0-3.74,0a6,6,0,0,0-3.07.76L93.45,217.43a98,98,0,0,1-27.56-15.49l-.12-33.17a6,6,0,0,0-.91-3.16c-.64-1-1.27-2.08-1.86-3.14a6,6,0,0,0-2.27-2.3L31.3,143.4a93,93,0,0,1,0-30.79L60.68,95.9A6.07,6.07,0,0,0,63,93.6c.59-1,1.21-2.11,1.86-3.14a6,6,0,0,0,.91-3.16l.16-33.21A98.15,98.15,0,0,1,93.41,38.56L123,55.12a5.81,5.81,0,0,0,3.07.76c1.24,0,2.5,0,3.74,0a6,6,0,0,0,3.07-.76l29.65-16.56a98,98,0,0,1,27.56,15.49l.12,33.17a6,6,0,0,0,.91,3.16c.64,1,1.27,2.08,1.86,3.14a6,6,0,0,0,2.27,2.3L224.7,112.6A93,93,0,0,1,224.73,143.39Z"},null,-1),J1=[K1],Q1={key:4},U1=o("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm109.94-52.79a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A112.1,112.1,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.62a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21Zm-15,34.91-28.57,16.25a8,8,0,0,0-3,3c-.58,1-1.19,2.06-1.81,3.06a7.94,7.94,0,0,0-1.22,4.21l-.15,32.25a95.89,95.89,0,0,1-25.37,14.3L134,199.13a8,8,0,0,0-3.91-1h-.19c-1.21,0-2.43,0-3.64,0a8.08,8.08,0,0,0-4.1,1l-28.84,16.1A96,96,0,0,1,67.88,201l-.11-32.2a8,8,0,0,0-1.22-4.22c-.62-1-1.23-2-1.8-3.06a8.09,8.09,0,0,0-3-3.06l-28.6-16.29a90.49,90.49,0,0,1,0-28.26L61.67,97.63a8,8,0,0,0,3-3c.58-1,1.19-2.06,1.81-3.06a7.94,7.94,0,0,0,1.22-4.21l.15-32.25a95.89,95.89,0,0,1,25.37-14.3L122,56.87a8,8,0,0,0,4.1,1c1.21,0,2.43,0,3.64,0a8.08,8.08,0,0,0,4.1-1l28.84-16.1A96,96,0,0,1,188.12,55l.11,32.2a8,8,0,0,0,1.22,4.22c.62,1,1.23,2,1.8,3.06a8.09,8.09,0,0,0,3,3.06l28.6,16.29A90.49,90.49,0,0,1,222.9,142.12Z"},null,-1),X1=[U1],Y1={key:5},a0=o("path",{d:"M128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Zm106-56a4,4,0,0,0-2-2.7l-30.89-17.6q-.47-.82-1-1.62L200.1,51.2a3.94,3.94,0,0,0-1.42-3,107.8,107.8,0,0,0-35.41-19.94,4,4,0,0,0-3.23.29L129,45.87h-2l-31-17.36a4,4,0,0,0-3.23-.3,108.05,108.05,0,0,0-35.39,20,4,4,0,0,0-1.41,3l-.16,34.9-1,1.62L23.9,105.3A4,4,0,0,0,22,108a102.76,102.76,0,0,0,0,40,4,4,0,0,0,1.95,2.7l30.89,17.6q.47.83,1,1.62l.12,34.87a3.94,3.94,0,0,0,1.42,3,107.8,107.8,0,0,0,35.41,19.94,4,4,0,0,0,3.23-.29L127,210.13h2l31,17.36a4,4,0,0,0,3.23.3,108.05,108.05,0,0,0,35.39-20,4,4,0,0,0,1.41-3l.16-34.9,1-1.62L232.1,150.7a4,4,0,0,0,2-2.71A102.76,102.76,0,0,0,234,108Zm-7.48,36.67L196.3,161.84a4,4,0,0,0-1.51,1.53c-.61,1.09-1.25,2.17-1.91,3.24a3.92,3.92,0,0,0-.61,2.1l-.16,34.15a99.8,99.8,0,0,1-29.7,16.77l-30.4-17a4.06,4.06,0,0,0-2-.51H130c-1.28,0-2.57,0-3.84,0a4.1,4.1,0,0,0-2.05.51l-30.45,17A100.23,100.23,0,0,1,63.89,202.9l-.12-34.12a3.93,3.93,0,0,0-.61-2.11c-.66-1-1.3-2.14-1.91-3.23a4,4,0,0,0-1.51-1.53L29.49,144.68a94.78,94.78,0,0,1,0-33.34L59.7,94.16a4,4,0,0,0,1.51-1.53c.61-1.09,1.25-2.17,1.91-3.23a4,4,0,0,0,.61-2.11l.16-34.15a99.8,99.8,0,0,1,29.7-16.77l30.4,17a4.1,4.1,0,0,0,2.05.51c1.28,0,2.57,0,3.84,0a4,4,0,0,0,2.05-.51l30.45-17A100.23,100.23,0,0,1,192.11,53.1l.12,34.12a3.93,3.93,0,0,0,.61,2.11c.66,1,1.3,2.14,1.91,3.23a4,4,0,0,0,1.51,1.53l30.25,17.23A94.78,94.78,0,0,1,226.54,144.66Z"},null,-1),l0=[a0],e0={name:"PhGearSix"},t0=A({...e0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(m){const r=m,h=c("weight","regular"),s=c("size","1em"),v=c("color","currentColor"),p=c("mirrored",!1),l=n(()=>{var a;return(a=r.weight)!=null?a:h}),u=n(()=>{var a;return(a=r.size)!=null?a:s}),i=n(()=>{var a;return(a=r.color)!=null?a:v}),d=n(()=>r.mirrored!==void 0?r.mirrored?"scale(-1, 1)":void 0:p?"scale(-1, 1)":void 0);return(a,g)=>(e(),t("svg",f({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:i.value,transform:d.value},a.$attrs),[V(a.$slots,"default"),l.value==="bold"?(e(),t("g",j1,F1)):l.value==="duotone"?(e(),t("g",E1,q1)):l.value==="fill"?(e(),t("g",W1,T1)):l.value==="light"?(e(),t("g",O1,J1)):l.value==="regular"?(e(),t("g",Q1,X1)):l.value==="thin"?(e(),t("g",Y1,l0)):L("",!0)],16,I1))}}),o0=["width","height","fill","transform"],r0={key:0},i0=o("path",{d:"M232,156h-4V72a28,28,0,0,0-28-28H56A28,28,0,0,0,28,72v84H24a12,12,0,0,0-12,12v24a28,28,0,0,0,28,28H216a28,28,0,0,0,28-28V168A12,12,0,0,0,232,156ZM52,72a4,4,0,0,1,4-4H200a4,4,0,0,1,4,4v84H52ZM220,192a4,4,0,0,1-4,4H40a4,4,0,0,1-4-4V180H220ZM156,96a12,12,0,0,1-12,12H112a12,12,0,0,1,0-24h32A12,12,0,0,1,156,96Z"},null,-1),n0=[i0],s0={key:1},c0=o("path",{d:"M216,72V176H40V72A16,16,0,0,1,56,56H200A16,16,0,0,1,216,72Z",opacity:"0.2"},null,-1),u0=o("path",{d:"M232,168h-8V72a24,24,0,0,0-24-24H56A24,24,0,0,0,32,72v96H24a8,8,0,0,0-8,8v16a24,24,0,0,0,24,24H216a24,24,0,0,0,24-24V176A8,8,0,0,0,232,168ZM48,72a8,8,0,0,1,8-8H200a8,8,0,0,1,8,8v96H48ZM224,192a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8v-8H224ZM152,88a8,8,0,0,1-8,8H112a8,8,0,0,1,0-16h32A8,8,0,0,1,152,88Z"},null,-1),d0=[c0,u0],m0={key:2},h0=o("path",{d:"M232,168h-8V72a24,24,0,0,0-24-24H56A24,24,0,0,0,32,72v96H24a8,8,0,0,0-8,8v16a24,24,0,0,0,24,24H216a24,24,0,0,0,24-24V176A8,8,0,0,0,232,168ZM112,72h32a8,8,0,0,1,0,16H112a8,8,0,0,1,0-16ZM224,192a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8v-8H224Z"},null,-1),p0=[h0],v0={key:3},g0=o("path",{d:"M232,170H222V72a22,22,0,0,0-22-22H56A22,22,0,0,0,34,72v98H24a6,6,0,0,0-6,6v16a22,22,0,0,0,22,22H216a22,22,0,0,0,22-22V176A6,6,0,0,0,232,170ZM46,72A10,10,0,0,1,56,62H200a10,10,0,0,1,10,10v98H46ZM226,192a10,10,0,0,1-10,10H40a10,10,0,0,1-10-10V182H226ZM150,88a6,6,0,0,1-6,6H112a6,6,0,0,1,0-12h32A6,6,0,0,1,150,88Z"},null,-1),A0=[g0],L0={key:4},H0=o("path",{d:"M232,168h-8V72a24,24,0,0,0-24-24H56A24,24,0,0,0,32,72v96H24a8,8,0,0,0-8,8v16a24,24,0,0,0,24,24H216a24,24,0,0,0,24-24V176A8,8,0,0,0,232,168ZM48,72a8,8,0,0,1,8-8H200a8,8,0,0,1,8,8v96H48ZM224,192a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8v-8H224ZM152,88a8,8,0,0,1-8,8H112a8,8,0,0,1,0-16h32A8,8,0,0,1,152,88Z"},null,-1),$0=[H0],Z0={key:5},V0=o("path",{d:"M232,172H220V72a20,20,0,0,0-20-20H56A20,20,0,0,0,36,72V172H24a4,4,0,0,0-4,4v16a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V176A4,4,0,0,0,232,172ZM44,72A12,12,0,0,1,56,60H200a12,12,0,0,1,12,12V172H44ZM228,192a12,12,0,0,1-12,12H40a12,12,0,0,1-12-12V180H228ZM148,88a4,4,0,0,1-4,4H112a4,4,0,0,1,0-8h32A4,4,0,0,1,148,88Z"},null,-1),f0=[V0],M0={name:"PhLaptop"},y0=A({...M0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(m){const r=m,h=c("weight","regular"),s=c("size","1em"),v=c("color","currentColor"),p=c("mirrored",!1),l=n(()=>{var a;return(a=r.weight)!=null?a:h}),u=n(()=>{var a;return(a=r.size)!=null?a:s}),i=n(()=>{var a;return(a=r.color)!=null?a:v}),d=n(()=>r.mirrored!==void 0?r.mirrored?"scale(-1, 1)":void 0:p?"scale(-1, 1)":void 0);return(a,g)=>(e(),t("svg",f({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:i.value,transform:d.value},a.$attrs),[V(a.$slots,"default"),l.value==="bold"?(e(),t("g",r0,n0)):l.value==="duotone"?(e(),t("g",s0,d0)):l.value==="fill"?(e(),t("g",m0,p0)):l.value==="light"?(e(),t("g",v0,A0)):l.value==="regular"?(e(),t("g",L0,$0)):l.value==="thin"?(e(),t("g",Z0,f0)):L("",!0)],16,o0))}}),w0=["width","height","fill","transform"],C0={key:0},b0=o("path",{d:"M240.49,63.51a12,12,0,0,0-17,0L192,95,161,64l31.52-31.51a12,12,0,0,0-17-17L144,47,120.49,23.51a12,12,0,1,0-17,17L107,44,56.89,94.14a44,44,0,0,0,0,62.23l12.88,12.88L23.51,215.51a12,12,0,0,0,17,17l46.26-46.26,12.88,12.88a44,44,0,0,0,62.23,0L212,149l3.51,3.52a12,12,0,0,0,17-17L209,112l31.52-31.51A12,12,0,0,0,240.49,63.51Zm-95.6,118.63a20,20,0,0,1-28.29,0L73.86,139.4a20,20,0,0,1,0-28.29L124,61l71,71Z"},null,-1),k0=[b0],_0={key:1},z0=o("path",{d:"M212,132l-58.63,58.63a32,32,0,0,1-45.25,0L65.37,147.88a32,32,0,0,1,0-45.25L124,44Z",opacity:"0.2"},null,-1),S0=o("path",{d:"M237.66,66.34a8,8,0,0,0-11.32,0L192,100.69,155.31,64l34.35-34.34a8,8,0,1,0-11.32-11.32L144,52.69,117.66,26.34a8,8,0,0,0-11.32,11.32L112.69,44l-53,53a40,40,0,0,0,0,56.57l15.71,15.71L26.34,218.34a8,8,0,0,0,11.32,11.32l49.09-49.09,15.71,15.71a40,40,0,0,0,56.57,0l53-53,6.34,6.35a8,8,0,0,0,11.32-11.32L203.31,112l34.35-34.34A8,8,0,0,0,237.66,66.34ZM147.72,185a24,24,0,0,1-33.95,0L71,142.23a24,24,0,0,1,0-33.95l53-53L200.69,132Z"},null,-1),B0=[z0,S0],x0={key:2},P0=o("path",{d:"M237.66,77.66,203.31,112l26.35,26.34a8,8,0,0,1-11.32,11.32L212,143.31l-53,53a40,40,0,0,1-56.57,0L86.75,180.57,37.66,229.66a8,8,0,0,1-11.32-11.32l49.09-49.09L59.72,153.54a40,40,0,0,1,0-56.57l53-53-6.35-6.34a8,8,0,0,1,11.32-11.32L144,52.69l34.34-34.35a8,8,0,1,1,11.32,11.32L155.31,64,192,100.69l34.34-34.35a8,8,0,0,1,11.32,11.32Z"},null,-1),I0=[P0],j0={key:3},N0=o("path",{d:"M236.24,67.76a6,6,0,0,0-8.48,0L192,103.51,152.49,64l35.75-35.76a6,6,0,0,0-8.48-8.48L144,55.51,116.24,27.76a6,6,0,1,0-8.48,8.48L115.51,44,61.13,98.38a38,38,0,0,0,0,53.75l17.13,17.12-50.5,50.51a6,6,0,1,0,8.48,8.48l50.51-50.5,17.13,17.13a38,38,0,0,0,53.74,0L212,140.49l7.76,7.75a6,6,0,0,0,8.48-8.48L200.49,112l35.75-35.76A6,6,0,0,0,236.24,67.76ZM149.13,186.38a26,26,0,0,1-36.77,0L69.62,143.64a26,26,0,0,1,0-36.77L124,52.49,203.51,132Z"},null,-1),F0=[N0],E0={key:4},D0=o("path",{d:"M237.66,66.34a8,8,0,0,0-11.32,0L192,100.69,155.31,64l34.35-34.34a8,8,0,1,0-11.32-11.32L144,52.69,117.66,26.34a8,8,0,0,0-11.32,11.32L112.69,44l-53,53a40,40,0,0,0,0,56.57l15.71,15.71L26.34,218.34a8,8,0,0,0,11.32,11.32l49.09-49.09,15.71,15.71a40,40,0,0,0,56.57,0l53-53,6.34,6.35a8,8,0,0,0,11.32-11.32L203.31,112l34.35-34.34A8,8,0,0,0,237.66,66.34ZM147.72,185a24,24,0,0,1-33.95,0L71,142.23a24,24,0,0,1,0-33.95l53-53L200.69,132Z"},null,-1),G0=[D0],q0={key:5},W0=o("path",{d:"M234.83,69.17a4,4,0,0,0-5.66,0L192,106.34,149.66,64l37.17-37.17a4,4,0,1,0-5.66-5.66L144,58.34,114.83,29.17a4,4,0,0,0-5.66,5.66L118.34,44,62.54,99.8a36.05,36.05,0,0,0,0,50.91l18.55,18.54L29.17,221.17a4,4,0,0,0,5.66,5.66l51.92-51.92,18.54,18.55a36.06,36.06,0,0,0,50.91,0l55.8-55.8,9.17,9.17a4,4,0,0,0,5.66-5.66L197.66,112l37.17-37.17A4,4,0,0,0,234.83,69.17ZM150.54,187.8a28,28,0,0,1-39.59,0L68.2,145.05a28,28,0,0,1,0-39.59L124,49.66,206.34,132Z"},null,-1),R0=[W0],T0={name:"PhPlug"},O0=A({...T0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(m){const r=m,h=c("weight","regular"),s=c("size","1em"),v=c("color","currentColor"),p=c("mirrored",!1),l=n(()=>{var a;return(a=r.weight)!=null?a:h}),u=n(()=>{var a;return(a=r.size)!=null?a:s}),i=n(()=>{var a;return(a=r.color)!=null?a:v}),d=n(()=>r.mirrored!==void 0?r.mirrored?"scale(-1, 1)":void 0:p?"scale(-1, 1)":void 0);return(a,g)=>(e(),t("svg",f({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:u.value,height:u.value,fill:i.value,transform:d.value},a.$attrs),[V(a.$slots,"default"),l.value==="bold"?(e(),t("g",C0,k0)):l.value==="duotone"?(e(),t("g",_0,B0)):l.value==="fill"?(e(),t("g",x0,I0)):l.value==="light"?(e(),t("g",j0,F0)):l.value==="regular"?(e(),t("g",E0,G0)):l.value==="thin"?(e(),t("g",q0,R0)):L("",!0)],16,w0))}}),K0=A({__name:"Project",setup(m){const h=k().params.projectId,{result:s}=b(()=>B.get(h).then(async i=>{const d=await S.get(i.organizationId),H=(await new W().list(d.id)).find(y=>y.id===i.folderId);if(!H)throw new Error("Folder not found");return{project:i,organization:d,folder:H}})),v=n(()=>{var i,d,a,g,H;return((i=s.value)==null?void 0:i.organization)&&s.value.project?[{label:"My organizations",path:"/organizations"},{label:(a=(d=s.value)==null?void 0:d.organization)==null?void 0:a.name,path:`/organizations/${(g=s.value)==null?void 0:g.organization.id}`},{label:s.value.folder.name,path:`/organizations/${(H=s.value)==null?void 0:H.organization.id}#${s.value.folder.id}`},{label:s.value.project.name,path:`/projects/${s.value.project.id}`}]:void 0}),p=n(()=>{var i;return(i=s.value)==null?void 0:i.organization.billingMetadata}),l=n(()=>{var i;return(i=s.value)==null?void 0:i.organization.id}),u=n(()=>{var i;return(i=s.value)!=null&&i.project?[{name:"Monitoring",items:[{name:"Stages",path:"live",icon:N},{name:"Version History",path:"builds",icon:F},{name:"Logs",icon:j,path:"logs"},{name:"Tasks",path:"tasks",icon:E}]},{name:"Resources",items:[{name:"Tables",path:"tables",icon:h1},{name:"Files",path:"files",icon:P1},{name:"Connectors",path:"connectors",icon:O0},{name:"Web Editor",path:"web-editor",icon:y0,unavailable:!s.value.organization.featureFlags.WEB_EDITOR}]},{name:"Configuration",items:[{name:"API Keys",path:"api-keys",icon:q},{name:"Env Vars",path:"env-vars",icon:D},{name:"Subdomain",icon:t0,path:"settings"},{name:"Access Control",icon:G,path:"access-control"}]}]:[]});return(i,d)=>{const a=_("RouterView");return e(),M(C,null,{content:$(()=>[Z(I,null,{default:$(()=>[p.value&&l.value?(e(),M(x,{key:0,"billing-metadata":p.value,"organization-id":l.value},null,8,["billing-metadata","organization-id"])):L("",!0),Z(a)]),_:1})]),navbar:$(()=>[Z(w,{class:"nav",breadcrumb:v.value,"show-ai-sparkles":""},null,8,["breadcrumb"])]),sidebar:$(()=>[Z(P,{class:"sidebar",sections:u.value},null,8,["sections"])]),chat:$(()=>[Z(R)]),_:1})}}});const x2=z(K0,[["__scopeId","data-v-a7df3978"]]);export{x2 as default};
2
- //# sourceMappingURL=Project.2fdca57c.js.map
@@ -1 +0,0 @@
1
- .sql-container[data-v-71ca01e9]{padding:12px;background-color:#fff;border-radius:8px;margin-bottom:20px;box-shadow:0 0 10px #0000001a;height:fit-content}.sql-editor[data-v-71ca01e9]{width:100%;height:180px;border-radius:6px}
@@ -1,5 +0,0 @@
1
- import{f as o,e7 as q,d as E,eb as D,O as L,L as _,r as p,k as N,a5 as $,b as g,u,aR as B,o as P,e as V,bR as x,g as S,de as h,cX as z,cL as O,_ as A}from"./jwt-decode.esm.d86c27e0.js";import{G as F}from"./PhDownloadSimple.vue.3444d06b.js";import{e as M}from"./toggleHighContrast.510bdb1d.js";import"./router.7936fd78.js";import{a as T}from"./project.33809d47.js";import"./tables.d580be9d.js";import{_ as G}from"./TablesTabs.vue_vue_type_script_setup_true_lang.95ea10aa.js";import"./index.a2b9d34b.js";import"./record.d087b37e.js";import"./string.360236ba.js";import"./Card.5f504e7b.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]="d1f708b6-ee30-476f-97ba-8ac1e9b018ab",e._sentryDebugIdIdentifier="sentry-dbid-d1f708b6-ee30-476f-97ba-8ac1e9b018ab")}catch{}})();var H={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"};const J=H;function C(e){for(var a=1;a<arguments.length;a++){var t=arguments[a]!=null?Object(arguments[a]):{},r=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(d){return Object.getOwnPropertyDescriptor(t,d).enumerable}))),r.forEach(function(d){U(e,d,t[d])})}return e}function U(e,a,t){return a in e?Object.defineProperty(e,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[a]=t,e}var w=function(a,t){var r=C({},a,t.attrs);return o(q,C({},r,{icon:J}),null)};w.displayName="CaretRightOutlined";w.inheritAttrs=!1;const X=w,I=e=>{if(e==null)return"";const a=String(e);return a.includes(";")||a.includes(`
2
- `)||a.includes('"')?`"${a.replace(/"/g,'""')}"`:a},W=e=>{let a=e.columns.map(I).join(";")+`
3
- `;e.rows.forEach(r=>{a+=r.map(I).join(";")+`
4
- `});const t=document.createElement("a");t.href="data:text/csv;charset=utf-8,"+encodeURIComponent(a),t.target="_blank",t.download=`${e.fileName}.csv`,t.click()};function Y(e){const a={};for(const t in e)if(e.hasOwnProperty(t)){if(typeof e[t]=="object"&&e[t]!==null){a[t]=JSON.stringify(e[t]);continue}a[t]=String(e[t])}return a}const Z=E({__name:"Sql",setup(e){const t=D().params.projectId,r=new L(_.array(_.object({projectId:_.string(),lastQuery:_.string()})),"lastQueries"),d=p(null),f=p(""),v=p([]),y=p([]),Q=p([]),b=p(!1),j=async()=>{b.value=!0;const l=await T.executeQuery(t,f.value,[]);b.value=!1;const s=r.get();if(!s)r.set([{projectId:t,lastQuery:f.value}]);else{const n=s.findIndex(i=>i.projectId===t);n===-1?s.push({projectId:t,lastQuery:f.value}):s[n].lastQuery=f.value,r.set(s)}if(!l)return;const{returns:m,errors:c}=l;Q.value=c;for(const n of c)O.error({message:"SQL Execution Failed",description:n});c.length||O.success({message:"SQL Execution Succeeded"}),y.value=m.fields.map(n=>({title:n.name,key:n.name,dataIndex:n.name})),v.value=m.result.map((n,i)=>Y({key:`${i+1}`,...n}))},k=()=>{const l=y.value.map(i=>i.dataIndex),s=y.value.map(i=>i.title),m=v.value.map(i=>l.map(R=>i[R])),n=`data-${new Date().toISOString()}`;W({fileName:n,columns:s,rows:m})};return N(()=>{var m;const l=M.create(d.value,{language:"sql",value:f.value,fontFamily:"monospace",lineNumbers:"on",minimap:{enabled:!1},scrollbar:{vertical:"hidden",horizontal:"visible"},fontSize:14,scrollBeyondLastLine:!1,lineHeight:20});l.onDidChangeModelContent(()=>{f.value=l.getValue()});const s=r.get();if(s){const c=(m=s.find(n=>n.projectId===t))==null?void 0:m.lastQuery;c&&(f.value=c,l.setValue(c))}}),(l,s)=>(P(),$(B,null,[o(G),o(u(h),{gap:"large",class:"sql-container",align:"center"},{default:g(()=>[V("div",{ref_key:"sqlEditor",ref:d,class:"sql-editor"},null,512),o(u(x),{type:"primary",loading:b.value,onClick:j},{icon:g(()=>[o(u(X))]),default:g(()=>[S(" Run ")]),_:1},8,["loading"])]),_:1}),o(u(h),{justify:"end",style:{margin:"30px 0 10px 0"}},{default:g(()=>[o(u(x),{disabled:!v.value.length,onClick:k},{default:g(()=>[o(u(h),{align:"center",gap:"small"},{default:g(()=>[S(" Export to CSV "),o(u(F))]),_:1})]),_:1},8,["disabled"])]),_:1}),o(u(z),{style:{width:"100%"},scroll:{x:100},"data-source":v.value,columns:y.value},null,8,["data-source","columns"])],64))}});const ue=A(Z,[["__scopeId","data-v-71ca01e9"]]);export{ue as default};
5
- //# sourceMappingURL=Sql.7d92acbb.js.map
@@ -1,2 +0,0 @@
1
- import{A as o}from"./index.1e12c884.js";import{d as r,c as a,a5 as f,f as p,u as d,ea as c,h as l,o as i,_ as u}from"./jwt-decode.esm.d86c27e0.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]="fe68d051-3240-4b8e-b64f-ff02213c3cb2",e._sentryDebugIdIdentifier="sentry-dbid-fe68d051-3240-4b8e-b64f-ff02213c3cb2")}catch{}})();const _=r({__name:"Steps",props:{stepsInfo:{},isPreview:{type:Boolean}},setup(e){const s=e,n=a(()=>s.stepsInfo?Array(s.stepsInfo.total).fill(null).map(()=>({label:"",description:""})):[]);return(t,m)=>t.stepsInfo?(i(),f("nav",{key:0,class:c(["p-steps",{"full-screen":!t.isPreview}])},[p(d(o),{current:t.stepsInfo.current-1,items:n.value,responsive:!1},null,8,["current","items"])],2)):l("",!0)}});const I=u(_,[["__scopeId","data-v-58fdd395"]]);export{I as S};
2
- //# sourceMappingURL=Steps.b12e16c6.js.map
@@ -1,2 +0,0 @@
1
- import{C as _}from"./CrudView.5a642b48.js";import{o as l}from"./omniChatStore.16b8f156.js";import{a as k}from"./ant-design.4302db30.js";import{a as C}from"./asyncComputed.59410422.js";import{a as m}from"./string.360236ba.js";import{G as T}from"./PhPencil.vue.20f1b3c4.js";import{d as h,e5 as w,eb as I,c as x,k as E,aq as D,a5 as N,f as d,u as S,aR as v,o as A,ep as B}from"./jwt-decode.esm.d86c27e0.js";import"./router.7936fd78.js";import{T as c}from"./tables.d580be9d.js";import{_ as R}from"./TablesTabs.vue_vue_type_script_setup_true_lang.95ea10aa.js";import"./DocsButton.vue_vue_type_script_setup_true_lang.2c5aae83.js";import"./constants.733c6549.js";import"./url.b31d406a.js";import"./PhDotsThreeVertical.vue.f4b60771.js";import"./index.4ecba4f7.js";import"./record.d087b37e.js";import"./uuid.d6d43ef5.js";import"./PhCopySimple.vue.e887b43c.js";import"./index.a2b9d34b.js";import"./Card.5f504e7b.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[o]="b1d55c8a-4932-4e97-9af4-ae403e981b64",a._sentryDebugIdIdentifier="sentry-dbid-b1d55c8a-4932-4e97-9af4-ae403e981b64")}catch{}})();const ae=h({__name:"Tables",setup(a){const o=w(),t=I().params.projectId,{loading:p,result:b,refetch:s}=C(()=>c.list(t)),f=async e=>{const r=await c.create(t,e.name);o.push({name:"tableEditor",params:{tableId:r.id,projectId:t}})},y=x(()=>{var e,r;return{columns:[{title:"Table Name"},{title:"",align:"right"}],rows:(r=(e=b.value)==null?void 0:e.map(n=>({key:n.id,cells:[{type:"link",text:n.name,to:{name:"tableEditor",params:{tableId:n.id,projectId:t}}},{type:"actions",actions:[{icon:T,label:"Edit Table",onClick({key:i}){o.push({name:"tableEditor",params:{tableId:i,projectId:t}})}},{icon:B,label:"Delete",dangerous:!0,async onClick(){!await k("Are you sure you want to delete this table and all its data?")||(await n.delete(t,n.id),s())}}]}]})))!=null?r:[]}}),g=[{key:"name",label:"Table name",type:"text",format:e=>m(e,!0),blur:e=>m(e,!1)}];return E(()=>{const e=l.subscribe("tableCreated",()=>{s()});D(()=>{l.unsubscribe(e)})}),(e,r)=>(A(),N(v,null,[d(R),d(_,{"entity-name":"table",loading:S(p),"docs-path":"tools/tables",title:"Tables",description:"Create and manage your database tables here.","empty-title":"No tables here yet",table:y.value,fields:g,"create-button-text":"Create Table",create:f},null,8,["loading","table"])],64))}});export{ae as default};
2
- //# sourceMappingURL=Tables.aa6b418c.js.map
@@ -1,2 +0,0 @@
1
- import{d as b,e5 as f,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.d86c27e0.js";import{A as I,T}from"./Card.5f504e7b.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]="e0e65ae7-4574-493d-852b-814f4b0fd4c9",e._sentryDebugIdIdentifier="sentry-dbid-e0e65ae7-4574-493d-852b-814f4b0fd4c9")}catch{}})();const R=b({__name:"TablesTabs",setup(e){const a=f(),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.95ea10aa.js.map
@@ -1,2 +0,0 @@
1
- var x=Object.defineProperty;var O=(i,e,t)=>e in i?x(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var s=(i,e,t)=>(O(i,typeof e!="symbol"?e+"":e,t),t);import{h as C}from"./router.7936fd78.js";import{l as D}from"./fetch.13b54f0f.js";import{E as U}from"./record.d087b37e.js";import{N as F,r as R,ep as I,d as S,k as P,aq as $,a5 as B,u as a,a as h,eg as L,b as o,h as p,aR as M,o as c,f as v,g as y,bR as N,ed as b,cy as G,da as z,cE as W,cz as Z,M as q}from"./jwt-decode.esm.d86c27e0.js";import{S as A}from"./SaveButton.cd025dae.js";import{C as H}from"./CrudView.5a642b48.js";import{a as J}from"./asyncComputed.59410422.js";import{u as K}from"./polling.0b08b681.js";import{o as f}from"./omniChatStore.16b8f156.js";import{G as Q}from"./PhPencil.vue.20f1b3c4.js";import{A as X}from"./index.1551abd6.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[e]="11fba180-2d82-45c5-af4b-ea5b8552a736",i._sentryDebugIdIdentifier="sentry-dbid-11fba180-2d82-45c5-af4b-ea5b8552a736")}catch{}})();class g{constructor(e){s(this,"data");s(this,"deleted");s(this,"wasDeleted",e=>this.deleted.value.includes(e));s(this,"wasUpdated",e=>this.data.hasChangesDeep(e));s(this,"set",(e,t)=>{this.data.set(e,t),this.deleted.value=this.deleted.value.filter(n=>n!==e)});s(this,"get",e=>{if(!this.deleted.value.includes(e))return this.data.get(e)});s(this,"delete",e=>{this.deleted.value=[...this.deleted.value,e]});s(this,"values",()=>{const e={},t=Object.keys(this.data.changes).concat(Object.keys(this.data.initialState));for(const n of t)this.deleted.value.includes(n)||(e[n]=this.data.get(n));return e});s(this,"commit",()=>{this.data=U.from(this.values()),this.deleted.value=[]});this.data=U.from(e),this.deleted=F([])}static from(e){const t=e.reduce((n,{name:r,value:m})=>(n[r]=m,n),{});return new g(t)}get changes(){const e=this.deleted.value.map(t=>({name:t,change:"delete"}));for(const t of Object.keys(this.data.changes))if(!this.deleted.value.includes(t)){if(this.data.initialState[t]===void 0){e.push({name:t,value:this.data.get(t),change:"create"});continue}this.data.hasChangesDeep(t)&&e.push({name:t,value:this.data.get(t),change:"update"})}return e}}class Y{constructor(){s(this,"urlPath","env-vars")}async list(e){return await C.get(`projects/${e}/${this.urlPath}`)}async update(e,t){await C.patch(`projects/${e}/${this.urlPath}`,t)}}const T=new Y;class he{constructor(e){this.projectId=e}async get(){const e=await T.list(this.projectId);return g.from(e.map(t=>({...t,value:""})))}async update(e){await T.update(this.projectId,e)}}class pe{constructor(e=D){this.fetch=e}async get(){const e=await this.fetch("/_editor/api/env-vars");if(!e.ok)throw new Error("Failed to list env vars");const t=await e.json();return g.from(t)}async update(e){await this.fetch("/_editor/api/env-vars",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}}class w{constructor(e,t,n,r){s(this,"envVarRepo");s(this,"envVars");s(this,"state",R({type:"idle"}));s(this,"mode");s(this,"fileOpener");s(this,"openEnvFile",async()=>{var e;await((e=this.fileOpener)==null?void 0:e.openFile(".env"))});s(this,"validate",e=>{const t=/^[A-Za-z_][A-Za-z0-9_]*$/,{key:n,value:r}=e;if(r.trim()!==r)throw new Error("Environment variable values cannot have leading or trailing whitespace.");if(!t.test(n))throw new Error(`Invalid key: \u2018${n}\u2019. A key must begin with a letter or an underscore, and may only include letters, numbers, and underscores.`)});s(this,"create",e=>{this.validate(e),this.envVars.set(e.key,e.value),this.state.value={type:"idle"}});s(this,"delete",e=>{this.envVars.delete(e),this.state.value={type:"idle"}});s(this,"startUpdating",e=>{this.state.value={type:"updating",name:e,value:this.envVars.get(e)||""}});s(this,"confirmUpdate",()=>{this.state.value.type==="updating"&&(this.envVars.set(this.state.value.name,this.state.value.value),this.state.value={type:"idle"})});s(this,"cancelUpdate",()=>{this.state.value={type:"idle"}});s(this,"pollingFunction",async()=>{if(!this.isLocalEditor)return;const e=await this.envVarRepo.get();Object.entries(e.values()).forEach(([t,n])=>{this.envVars.wasDeleted(t)||this.envVars.get(t)===void 0&&this.envVars.set(t,n)})});s(this,"columns",()=>[{title:"Key"},{title:"Value"},{title:""}]);s(this,"rows",()=>Object.entries(this.envVars.values()).map(([e,t])=>({key:e,cells:[{type:"text",text:e,contentType:this.wasUpdated(e)?"warning":"default"},{type:"text",text:this.isLocalEditor?t:"*********",contentType:this.wasUpdated(e)?"warning":"default"},{type:"actions",actions:[{icon:I,label:"Delete",onClick:()=>this.delete(e),dangerous:!0},{icon:Q,label:"Update",onClick:()=>this.startUpdating(e)}]}]})));s(this,"save",async()=>{await this.envVarRepo.update(this.envVars.changes),this.envVars.commit()});s(this,"hasChanges",()=>this.envVars.changes.length>0);s(this,"table",()=>({columns:this.columns(),rows:this.rows()}));this.envVarRepo=e,this.envVars=t,this.mode=n,this.fileOpener=r}static async create(e,t,n){const r=await e.get();return new w(e,r,t,n)}get isLocalEditor(){return this.mode==="editor"}get saveMessage(){return this.isLocalEditor?"Save":"Save and Apply"}get creationFields(){return[{label:"Variable name",key:"key"},{label:"Variable value",key:"value",type:"multiline-text"}]}get isUpdating(){return this.state.value.type==="updating"}wasUpdated(e){return this.envVars.wasUpdated(e)}}const ve=S({__name:"View",props:{envVarRepository:{},mode:{},fileOpener:{},hideTitle:{type:Boolean}},setup(i){const e=i,{result:t,loading:n,refetch:r}=J(async()=>{const l=await w.create(e.envVarRepository,e.mode,e.fileOpener);return m(),l}),{startPolling:m,endPolling:j}=K({task:()=>{var l;return(l=t.value)==null?void 0:l.pollingFunction()},interval:2e3}),_={columns:[],rows:[]};return P(()=>{const l=f.subscribe("envVarCreated",()=>{r()}),d=f.subscribe("envVarEdited",()=>{r()});$(()=>{j(),f.unsubscribe(l),f.unsubscribe(d)})}),(l,d)=>{var k,V;return c(),B(M,null,[a(t)?(c(),h(H,{key:0,"entity-name":"Env var",loading:a(n),title:e.hideTitle?"":"Environment Variables",description:e.hideTitle?"":"Set environment variables for your project.","empty-title":"No environment variables set",table:a(t).table()||_,"create-button-text":"Add Environment Variable",create:a(t).create,fields:a(t).creationFields||[],live:a(t).isLocalEditor},L({_:2},[(k=a(t))!=null&&k.isLocalEditor?{name:"secondary",fn:o(()=>{var u;return[v(a(N),{onClick:(u=a(t))==null?void 0:u.openEnvFile},{default:o(()=>[y("Open .env")]),_:1},8,["onClick"]),l.mode=="editor"?(c(),h(A,{key:0,model:a(t),disabled:!a(t).hasChanges()},{"with-changes":o(()=>[y(b(a(t).saveMessage),1)]),_:1},8,["model","disabled"])):p("",!0)]}),key:"0"}:void 0,(V=a(t))!=null&&V.isLocalEditor?{name:"extra",fn:o(()=>[v(a(X),{"show-icon":"",style:{"margin-top":"20px"}},{message:o(()=>[y(" This is simply a helper to manage your environment variables locally. The variables set here will not be deployed to Cloud with your project. ")]),_:1})]),key:"1"}:void 0,a(t)?{name:"more",fn:o(()=>[l.mode=="console"?(c(),h(A,{key:0,model:a(t),disabled:!a(t).hasChanges()},{"with-changes":o(()=>[y(b(a(t).saveMessage),1)]),_:1},8,["model","disabled"])):p("",!0)]),key:"2"}:void 0]),1032,["loading","title","description","table","create","fields","live"])):p("",!0),a(t)?(c(),h(a(q),{key:1,open:a(t).isUpdating,title:"Update value",onCancel:d[1]||(d[1]=u=>{var E;return(E=a(t))==null?void 0:E.cancelUpdate()}),onOk:d[2]||(d[2]=()=>{var u;return(u=a(t))==null?void 0:u.confirmUpdate()})},{default:o(()=>[a(t).state.value.type==="updating"?(c(),h(a(G),{key:0,layout:"vertical"},{default:o(()=>[v(a(Z),null,{default:o(()=>[v(a(z),null,{default:o(()=>[y(b(a(t).state.value.name),1)]),_:1}),v(a(W),{value:a(t).state.value.value,"onUpdate:value":d[0]||(d[0]=u=>a(t).state.value.value=u)},null,8,["value"])]),_:1})]),_:1})):p("",!0)]),_:1},8,["open"])):p("",!0)],64)}}});export{he as C,pe as E,ve as _};
2
- //# sourceMappingURL=View.vue_vue_type_script_setup_true_lang.483e52f9.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 g,e as b,a5 as c,ec as v,ef as x,aR as w,I as E,J as F}from"./jwt-decode.esm.d86c27e0.js";import{S as L}from"./Steps.b12e16c6.js";import{W as $}from"./PlayerConfigProvider.10f46997.js";import"./index.1e12c884.js";import"./colorHelpers.2a607581.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="c960fed3-e4c3-4309-a94c-9da4a948ba69",a._sentryDebugIdIdentifier="sentry-dbid-c960fed3-e4c3-4309-a94c-9da4a948ba69")}catch{}})();const K=k({__name:"ActionButton",props:{action:{},displayName:{},disabled:{type:Boolean},loading:{type:Boolean}},emits:["click"],setup(a,{emit:t}){const d=a,l=B(null);return I(()=>{l.value&&d.action.setElement(l.value)}),(o,i)=>(n(),u(y(V),null,{default:f(()=>[A(y(N),{ref_key:"element",ref:l,class:C(["next-button",o.disabled?"disabled":""]),loading:o.loading,disabled:o.disabled,onClick:i[0]||(i[0]=p=>t("click")),onKeydown:i[1]||(i[1]=D(p=>t("click"),["enter"]))},{default:f(()=>[P(S(o.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(a){const t=q(),d=B([]);function l(e){return E[e]||F[e]||null}function o(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(o).filter(Boolean):[o(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":""})):g("",!0),b("div",J,[b("div",M,[(n(!0),c(w,null,v(i(),(r,h)=>(n(),c("div",{key:h,class:"widget"},[(n(),u(x(r.component),{"user-props":r.userProps,value:r.userProps.value,errors:d.value},null,8,["user-props","value","errors"]))]))),128))]),_().length?(n(),c("div",O,[(n(!0),c(w,null,v(_(),r=>(n(),u(R,{key:r,"display-name":m(r).name,action:m(r)},null,8,["display-name","action"]))),128))])):g("",!0)])]),_:1}))}});const U=W(z,[["__scopeId","data-v-d3d01da6"]]);export{U as default};
2
- //# sourceMappingURL=WidgetPreview.b01eed73.js.map
@@ -1,2 +0,0 @@
1
- import{el as n,M as b}from"./jwt-decode.esm.d86c27e0.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]="cb62f568-1a8c-4b7d-92be-09d7d7fe01da",e._sentryDebugIdIdentifier="sentry-dbid-cb62f568-1a8c-4b7d-92be-09d7d7fe01da")}catch{}})();function u(e){return n.exports.isArray(e)?e.length===0?"[ ]":"[ ... ]":n.exports.isObject(e)?Object.keys(e).length===0?"{ }":"{ ... }":n.exports.isString(e)?`'${e}'`:n.exports.isUndefined(e)||n.exports.isNull(e)?"None":e===!0?"True":e===!1?"False":`${e}`}function c(e){if(n.exports.isArray(e))return"array";if(n.exports.isObject(e))return"object";throw new Error("treeKey called with non-object and non-array")}function o(e,r=[],t){const l=t?`'${t}': ${u(e)}`:u(e);if(n.exports.isArray(e)){const i=c(e);return[{title:l,key:[...r,i].join("/"),children:e.flatMap((s,f)=>o(s,[...r,i,`${f}`]))}]}else if(n.exports.isObject(e)){const i=c(e);return[{title:l,key:[...r,i].join("/"),children:Object.entries(e).flatMap(([s,f])=>o(f,[...r,i,s],s))}]}else return[{title:l,key:r.join("/"),children:[]}]}function d(e,r){return new Promise(t=>{b.confirm({title:e,onOk:()=>t(!0),okText:r==null?void 0:r.okText,onCancel:()=>t(!1),cancelText:r==null?void 0:r.cancelText})})}export{d as a,o as t};
2
- //# sourceMappingURL=ant-design.4302db30.js.map
@@ -1,2 +0,0 @@
1
- import{N as c,c as l}from"./jwt-decode.esm.d86c27e0.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="c3b75a2d-17d6-4adc-9755-238bbebbeb35",r._sentryDebugIdIdentifier="sentry-dbid-c3b75a2d-17d6-4adc-9755-238bbebbeb35")}catch{}})();const i=r=>{const e=c({loading:!0,result:null,error:null}),n=t=>(e.value={loading:!1,result:t,error:null},t),s=t=>{e.value={loading:!1,result:null,error:t}},o=async()=>(e.value={loading:!0,result:e.value.result,error:null},r().then(n).catch(s));o();const u=l(()=>e.value.loading),a=l(()=>e.value.result),d=l(()=>e.value.error);return{loading:u,result:a,error:d,refetch:o}};export{i as a};
2
- //# sourceMappingURL=asyncComputed.59410422.js.map
@@ -1,2 +0,0 @@
1
- import"./jwt-decode.esm.d86c27e0.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]="2f824b04-5f39-41fd-896d-b735fb6ab900",t._sentryDebugIdIdentifier="sentry-dbid-2f824b04-5f39-41fd-896d-b735fb6ab900")}catch{}})();function p(t,e){const{r:n,g:r,b:o,usePound:s}=f(t);return w(c(n,-e),c(r,-e),c(o,-e),s)}function c(t,e){const n=t*(100+e*100)/100;return n>255?255:n<0?0:Math.round(n)}function E(t){return t.startsWith("#")||t.match(/^(rgb|hsl)/)}const v=(t,e)=>y(p(y(t),e)),P=t=>k(t)?v(t,.1):p(t,.1);function k(t){const{r:e,g:n,b:r}=f(t);return e*.299+n*.587+r*.114<186}function f(t){let e=!1;t[0]=="#"&&(t=t.slice(1),e=!0);const n=parseInt(t,16);return{r:n>>16&255,g:n>>8&255,b:n&255,usePound:e}}function y(t){const{r:e,g:n,b:r,usePound:o}=f(t);return w(255-e,255-n,255-r,o)}const w=(t,e,n,r=!0)=>(r?"#":"")+(n|e<<8|t<<16).toString(16).padStart(6,"0");function _(t){return new Promise((e,n)=>{const r=document.createElement("img");r.src=t,r.crossOrigin="Anonymous",r.style.display="none",document.body.appendChild(r);let o=0;r.onerror=s=>n(new Error(`Failed to load image: ${s}`)),r.onload=()=>{const{width:s,height:g}=r,a=document.createElement("canvas");a.width=s,a.height=g;const u=a.getContext("2d");if(!u)return e(!1);u.drawImage(r,0,0);const I=u.getImageData(0,0,a.width,a.height),{data:d}=I;let l,b,h,m;for(let i=0,x=d.length;i<x;i+=4)l=d[i],b=d[i+1],h=d[i+2],m=Math.floor((l+b+h)/3),o+=m;const D=Math.floor(o/(s*g));document.body.removeChild(r),e(D<=127)}})}export{k as a,_ as b,P as c,E as i,v as l};
2
- //# sourceMappingURL=colorHelpers.2a607581.js.map
@@ -1,2 +0,0 @@
1
- import{X as s,dJ as i,dK as d}from"./jwt-decode.esm.d86c27e0.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]="90cbbde4-6946-4403-98a1-ec7584646e73",e._sentryDebugIdIdentifier="sentry-dbid-90cbbde4-6946-4403-98a1-ec7584646e73")}catch{}})();const{DatePicker:n,WeekPicker:t,MonthPicker:r,YearPicker:m,TimePicker:f,QuarterPicker:o,RangePicker:a}=i(d),u=s(n,{WeekPicker:t,MonthPicker:r,YearPicker:m,RangePicker:a,TimePicker:f,QuarterPicker:o,install:e=>(e.component(n.name,n),e.component(a.name,a),e.component(r.name,r),e.component(t.name,t),e.component(o.name,o),e)});export{u as D,r as M,o as Q,a as R,t as W};
2
- //# sourceMappingURL=dayjs.9e279491.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 as y,e as N,f as T,u as f,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 v,m as G,n as q,p as U,q as Q,s as X,t as Z,v as b,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.d86c27e0.js";import{r as he,g as fe,a as _e}from"./router.7071f838.js";import{u as me,s as ge}from"./workspaceStore.87f8dbc6.js";import{A as ve}from"./linters.9ba6d5f8.js";import{A as be}from"./constants.733c6549.js";import{d as P}from"./index.a2b9d34b.js";import"./userStore.f2537ff3.js";import"./url.b31d406a.js";import"./colorHelpers.2a607581.js";import"./asyncComputed.59410422.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]="ff798e76-bbf9-4ef0-96fd-a3d7ccfe4a45",o._sentryDebugIdIdentifier="sentry-dbid-ff798e76-bbf9-4ef0-96fd-a3d7ccfe4a45")}catch{}})();const ye={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(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:y(()=>[N("div",ye,[T(f($),{size:"large"}),T(f(B),{level:4},{default:y(()=>[A(" Connecting to server... ")]),_:1}),n.value?(I(),R(f(H),{key:0},{default:y(()=>[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=ve.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=g=>{e.value=g},a=()=>{o.value=s.isConnected()};let r;const d=setInterval(a,1e3);return z(()=>{r(),clearInterval(d)}),Y(()=>{r=s.subscribe(n),a()}),{isConnected:v(o),lastEvent:v(e),error:v(t),service:v(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(f(q),{theme:s,"page-header":{ghost:!1}},{default:y(()=>[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 be.CLOUD+"/api-key?"+new URLSearchParams(e)}}const j="h97k86ks",m=class{static boot(e,t){m.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"}),m.booted=!0)}static shutdown(){P.shutdown(),m.booted=!1}};let _=m;i(_,"booted",!1);const Pe={"console-url":"https://cloud.abstra.io"},ke=o=>{const e="VITE_"+U.toUpper(U.snakeCase(o)),t={VITE_SENTRY_RELEASE:"122a370a7e93d6a0a5ebd647a678c9732ef96057",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 g()},g=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,g),E(()=>e.value,async c=>{if(c&&"info"in c){const{email:u,intercomHash:M}=c.info;_.boot(u,M)}else _.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:()=>b(()=>import("./Home.b12bb81a.js"),["assets/Home.b12bb81a.js","assets/jwt-decode.esm.d86c27e0.js","assets/jwt-decode.9f7a5511.css","assets/fetch.13b54f0f.js","assets/polling.0b08b681.js","assets/Home.afb8d9a6.css"]),children:[{path:"",name:"editor",component:()=>b(()=>import("./NewEditor.6b2cb8e6.js"),["assets/NewEditor.6b2cb8e6.js","assets/asyncComputed.59410422.js","assets/jwt-decode.esm.d86c27e0.js","assets/jwt-decode.9f7a5511.css","assets/linters.9ba6d5f8.js","assets/workspaceStore.87f8dbc6.js","assets/userStore.f2537ff3.js","assets/url.b31d406a.js","assets/colorHelpers.2a607581.js","assets/record.d087b37e.js","assets/PhPencilSimpleLine.vue.22e75a5a.js","assets/Card.5f504e7b.js","assets/router.7936fd78.js","assets/index.a2b9d34b.js","assets/metadata.18d0a278.js","assets/PhUserList.vue.abdd6da1.js","assets/PhWebhooksLogo.vue.00b65b2c.js","assets/LogsController.318117fd.js","assets/ant-design.4302db30.js","assets/string.360236ba.js","assets/PhCopy.vue.391b0ef7.js","assets/index.4ecba4f7.js","assets/build.656c5601.js","assets/tables.d580be9d.js","assets/repository.02efcdbd.js","assets/LoadingOutlined.b607eff2.js","assets/polling.0b08b681.js","assets/LogsController.fb0d96c2.css","assets/omniChatStore.16b8f156.js","assets/uuid.d6d43ef5.js","assets/PhCopySimple.vue.e887b43c.js","assets/omniChatStore.ec95fb81.css","assets/datetime.adbf692e.js","assets/OmniChat.097bec71.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang.0c707a8b.js","assets/Logo.a34929e1.js","assets/Logo.b7d81119.css","assets/PhClockCounterClockwise.vue.0457e9b2.js","assets/index.0f357aec.js","assets/index.1551abd6.js","assets/OmniChat.7660057c.css","assets/AbstraButton.vue_vue_type_script_setup_true_lang.9812dba9.js","assets/constants.733c6549.js","assets/PhBookBookmark.vue.681c5036.js","assets/PhChats.vue.d61c3615.js","assets/PhArrowSquareOut.vue.ee4af292.js","assets/PhRocket.vue.27c6f935.js","assets/PhSignOut.vue.61b63ec0.js","assets/CloseCircleOutlined.2815d641.js","assets/vue-flow-background.011d27ef.js","assets/SaveButton.cd025dae.js","assets/ExclamationCircleOutlined.9b25ffda.js","assets/SaveButton.932ac6b8.css","assets/ContentLayout.c7733a0e.js","assets/ContentLayout.cdae7d24.css","assets/fetch.13b54f0f.js","assets/repository.6fa74dff.js","assets/View.vue_vue_type_script_setup_true_lang.483e52f9.js","assets/CrudView.5a642b48.js","assets/DocsButton.vue_vue_type_script_setup_true_lang.2c5aae83.js","assets/PhDotsThreeVertical.vue.f4b60771.js","assets/CrudView.c883bb05.css","assets/PhPencil.vue.20f1b3c4.js","assets/PlayerNavbar.f2f66852.js","assets/PlayerNavbar.77209eae.css","assets/PlayerConfigProvider.10f46997.js","assets/PlayerConfigProvider.1ce9d3b1.css","assets/LoadingContainer.c40ae513.js","assets/LoadingContainer.56fa997a.css","assets/files.f66880c3.js","assets/PhGear.vue.e2b120bb.js","assets/tasksController.b66c85ee.js","assets/toggleHighContrast.510bdb1d.js","assets/toggleHighContrast.30d77c87.css","assets/PhPencilSimple.vue.ec2125f5.js","assets/PhFolderPlus.vue.d5788203.js","assets/PhArrowCounterClockwise.vue.aaa06bc0.js","assets/FormRunner.1c6a88dd.js","assets/Login.vue_vue_type_script_setup_true_lang.7d56cca3.js","assets/CircularLoading.6f511e29.js","assets/CircularLoading.a8fe2dc6.css","assets/Login.75d13f6c.css","assets/Steps.b12e16c6.js","assets/index.1e12c884.js","assets/Steps.2880920a.css","assets/Watermark.6076ef47.js","assets/Watermark.b0916e90.css","assets/FormRunner.46f6426d.css","assets/redirect.c06a7828.js","assets/router.7071f838.js","assets/NewEditor.d3300cf0.css"])},{path:"project-login",name:"projectLogin",component:()=>b(()=>import("./ProjectLogin.7660cd84.js"),["assets/ProjectLogin.7660cd84.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang.0c707a8b.js","assets/Logo.a34929e1.js","assets/jwt-decode.esm.d86c27e0.js","assets/jwt-decode.9f7a5511.css","assets/Logo.b7d81119.css","assets/BaseLayout.8bd18c5f.js","assets/BaseLayout.e1744dcc.css","assets/index.b3b62f71.js","assets/Breadcrumb.f312111a.js","assets/index.0f357aec.js","assets/index.4ecba4f7.js","assets/router.7071f838.js","assets/workspaceStore.87f8dbc6.js","assets/userStore.f2537ff3.js","assets/url.b31d406a.js","assets/colorHelpers.2a607581.js","assets/linters.9ba6d5f8.js","assets/asyncComputed.59410422.js","assets/constants.733c6549.js","assets/index.a2b9d34b.js","assets/ProjectLogin.21a71354.css"]),meta:{title:"Abstra Editor",allowUnauthenticated:!0}},{path:":pathMatch(.*)*",name:"editorFallback",redirect:"/_editor/"}]},{path:"/:path(.*)*",name:"form",component:()=>b(()=>import("./App.f0468c7f.js"),["assets/App.f0468c7f.js","assets/App.vue_vue_type_style_index_0_lang.864018b5.js","assets/userStore.f2537ff3.js","assets/jwt-decode.esm.d86c27e0.js","assets/jwt-decode.9f7a5511.css","assets/PlayerConfigProvider.10f46997.js","assets/colorHelpers.2a607581.js","assets/PlayerConfigProvider.1ce9d3b1.css","assets/workspaceStore.87f8dbc6.js","assets/url.b31d406a.js","assets/App.0c2736ee.css"]),children:Re}],scrollBehavior(o){if(o.hash)return{el:o.hash}}}),Ae=fe(L);L.beforeEach(async(o,e)=>{if(await me().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 ge();const o=await _e(),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.7e30500a.js.map
@@ -1,2 +0,0 @@
1
- import{C as r,E as t,K as i,a as c,M as f,c as b,P as l,R as y,S as g,b as u,T as k,U as p,e as w,l as D}from"./toggleHighContrast.510bdb1d.js";import"./jwt-decode.esm.d86c27e0.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]="3129dcf0-dc06-4bfe-97bd-0378ce6c4c6f",e._sentryDebugIdIdentifier="sentry-dbid-3129dcf0-dc06-4bfe-97bd-0378ce6c4c6f")}catch{}})();export{r as CancellationTokenSource,t as Emitter,i as KeyCode,c as KeyMod,f as MarkerSeverity,b as MarkerTag,l as Position,y as Range,g as Selection,u as SelectionDirection,k as Token,p as Uri,w as editor,D as languages};
2
- //# sourceMappingURL=editor.main.4675b13a.js.map
@@ -1,2 +0,0 @@
1
- import"./jwt-decode.esm.d86c27e0.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]="6a86d672-10d6-4673-93a2-2974e70f0098",e._sentryDebugIdIdentifier="sentry-dbid-6a86d672-10d6-4673-93a2-2974e70f0098")}catch{}})();const o=(...e)=>window.fetch(...e);export{o as l};
2
- //# sourceMappingURL=fetch.13b54f0f.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.d86c27e0.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]="a1d7ecad-7717-47b8-8fff-f8f0a7a777ea",e._sentryDebugIdIdentifier="sentry-dbid-a1d7ecad-7717-47b8-8fff-f8f0a7a777ea")}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:y,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=y==null?void 0:y.value)===null||t===void 0?void 0:t.size)!==null&&i!==void 0?i:"small"}),b=O(),u=O();W(s,()=>{[b.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=`${b.value}px`,a.rowGap=`${u.value}px`),m(m({},a),e.wrap&&{flexWrap:"wrap",marginBottom:`${-u.value}px`})});return()=>{var a,t;const{wrap:i,direction: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=b.value,S=I-1;return p("div",j(j({},g),{},{class:[R.value,g.class],style:[k.value,g.style]}),[C.map((N,f)=>{let $=_.indexOf(N);$===-1&&($=`$$space-${f}`);let v={};return x.value||(M==="vertical"?f<S&&(v={marginBottom:`${D/(d?2:1)}px`}):v=m(m({},f<S&&{[V.value]:`${D/(d?2:1)}px`}),i&&{paddingBottom:`${u.value}px`})),E(p(q,{key:$},[p("div",{class:A,style:v},[N]),f<S&&d&&p("span",{class:`${A}-split`,style:v},[d])]))})])}}});r.Compact=h;r.install=function(e){return e.component(r.name,r),e.component(h.name,h),e};const ee=r;export{ee as A};
2
- //# sourceMappingURL=index.4ecba4f7.js.map
@@ -1,10 +0,0 @@
1
- var P=Object.defineProperty;var Z=(i,e,t)=>e in i?P(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var o=(i,e,t)=>(Z(i,typeof e!="symbol"?e+"":e,t),t);import{h as C}from"./router.7936fd78.js";import{d as L,am as I,c as m,o as y,a5 as _,a7 as D,h as R,e6 as U,e as v,r as u,a as T,b as H,g as j,ed as q,u as x,aV as J,_ as V,f as z,eH as G,i as Q,ae as W,q as X,N as $}from"./jwt-decode.esm.d86c27e0.js";import{P as K}from"./record.d087b37e.js";import{u as S}from"./uuid.d6d43ef5.js";import{I as Y}from"./PhCopySimple.vue.e887b43c.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[e]="e1c21fd9-a5d4-43ec-8a5b-54a7d18c5281",i._sentryDebugIdIdentifier="sentry-dbid-e1c21fd9-a5d4-43ec-8a5b-54a7d18c5281")}catch{}})();const ee=["width","height","fill","transform"],te={key:0},se=v("path",{d:"M176.49,95.51a12,12,0,0,1,0,17l-56,56a12,12,0,0,1-17,0l-24-24a12,12,0,1,1,17-17L112,143l47.51-47.52A12,12,0,0,1,176.49,95.51ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"},null,-1),oe=[se],re={key:1},ie=v("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),ae=v("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"},null,-1),ne=[ie,ae],le={key:2},ce=v("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z"},null,-1),he=[ce],de={key:3},ue=v("path",{d:"M172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"},null,-1),ge=[ue],fe={key:4},pe=v("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"},null,-1),ye=[pe],ve={key:5},_e=v("path",{d:"M170.83,101.17a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"},null,-1),me=[_e],we={name:"PhCheckCircle"},Se=L({...we,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const e=i,t=I("weight","regular"),s=I("size","1em"),r=I("color","currentColor"),c=I("mirrored",!1),l=m(()=>{var n;return(n=e.weight)!=null?n:t}),h=m(()=>{var n;return(n=e.size)!=null?n:s}),d=m(()=>{var n;return(n=e.color)!=null?n:r}),f=m(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:c?"scale(-1, 1)":void 0);return(n,g)=>(y(),_("svg",U({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:d.value,transform:f.value},n.$attrs),[D(n.$slots,"default"),l.value==="bold"?(y(),_("g",te,oe)):l.value==="duotone"?(y(),_("g",re,ne)):l.value==="fill"?(y(),_("g",le,he)):l.value==="light"?(y(),_("g",de,ge)):l.value==="regular"?(y(),_("g",fe,ye)):l.value==="thin"?(y(),_("g",ve,me)):R("",!0)],16,ee))}});class O{constructor(e,t){o(this,"staging");this.flag=e,this.acc=t,this.staging=""}}class be extends O{constructor(){super("___JSON_MODE___",[])}reduceChar(e){try{this.staging+=e;const t=JSON.parse(this.staging);return this.acc.push(t),this.staging="",t}catch{return}}reduce(e){const t=[];for(const s of e){const r=this.reduceChar(s);r!==void 0&&t.push(r)}return t}}class Ce extends O{constructor(){super("___TEXT_MODE___","")}reduce(e){return this.staging+=e,this.acc=this.staging,e}}class B{constructor(){o(this,"mode");o(this,"modes",[new Ce,new be]);o(this,"staging","");o(this,"chunkOnBuffer","");o(this,"flagMap");o(this,"flagPrefixes");this.mode=this.modes[0],this.flagMap=new Map,this.flagPrefixes=new Set;for(const e of this.modes){this.flagMap.set(e.flag,e);for(let t=1;t<e.flag.length;t++)this.flagPrefixes.add(e.flag.slice(0,t))}}*reduce(e){for(const t of e){if(this.staging+=t,this.flagMap.has(this.staging)){this.mode=this.flagMap.get(this.staging),this.staging="";continue}if(!this.flagPrefixes.has(this.staging))for(;this.staging.length>0;){const s=this.staging[0];this.staging=this.staging.slice(1);const r=this.mode.reduce(s);if(r!==void 0&&(Array.isArray(r)?yield*r:yield r),this.flagPrefixes.has(this.staging))break}}}*reduceInChunks(e,t){let s="";for(const r of this.reduce(t))if(typeof r=="string")for(s+=r;s.length>=e;)yield s.slice(0,e),s=s.slice(e);else s.length>0&&(yield s,s=""),yield r;s.length>0&&(yield s)}}const N=300;class Ie{constructor(){o(this,"_baseUrl","/_editor/api/ai");o(this,"_headers",{"Content-Type":"application/json"})}async*sendMessage(e,t,s,r,c){var n;const l={conversationId:e,content:t,context:s,humanApproval:c},h=await fetch(`${this._baseUrl}/stream`,{method:"POST",headers:this._headers,body:JSON.stringify(l)});if(!h.ok)throw new Error("Failed to send message");const d=(n=h.body)==null?void 0:n.getReader();if(!d)throw new Error("No response body");const f=new B;for(;!r();){const g=await d.read();if(g.done)break;for(const p of f.reduceInChunks(N,new TextDecoder().decode(g.value)))yield p}}async deleteThread(e){if(!(await fetch(`${this._baseUrl}/thread/${e}`,{method:"DELETE",headers:this._headers})).ok)throw new Error("Failed to delete thread")}async abortStreaming(e){if(!(await fetch(`${this._baseUrl}/abort`,{method:"POST",headers:this._headers,body:JSON.stringify({langGraphThreadId:e})})).ok)throw new Error("Failed to abort streaming")}async getHistory(e,t){const s=await fetch(`${this._baseUrl}/history?limit=${e}&offset=${t}`,{method:"GET"});if(!s.ok)throw new Error("Failed to fetch history");return await s.json()}async vote(e,t,s,r){const c={vote:e,question:t,answer:s,context:r};await fetch(`${this._baseUrl}/vote`,{method:"POST",headers:this._headers,body:JSON.stringify(c)})}startConversation(){return new Promise((e,t)=>{fetch(`${this._baseUrl}/start-conversation`,{method:"POST",headers:this._headers}).then(s=>{if(!s.ok)throw new Error("Failed to start conversation");return s.json()}).then(s=>e(s)).catch(s=>t(s))})}}class Ae{constructor(e){o(this,"projectId");o(this,"baseUrl");this.projectId=e,this.baseUrl=`projects/${e}`}startConversation(){throw new Error("Method not implemented.")}async*sendMessage(e,t,s,r,c){var n;const l={conversationId:e,content:t,context:s,humanApproval:c},d=(n=(await C.postRaw(`${this.baseUrl}/messages`,l)).body)==null?void 0:n.getReader();if(!d)throw new Error("No response body");const f=new B;for(;!r();){const g=await d.read();if(g.done)break;for(const p of f.reduceInChunks(N,new TextDecoder().decode(g.value)))yield p}}async abortStreaming(e){await C.post(`${this.baseUrl}/abort`,{langGraphThreadId:e})}async getHistory(e,t){const s={limit:`${e}`,offset:`${t}`};return await C.get(`${this.baseUrl}/history`,s)}async deleteThread(e){await C.delete(`${this.baseUrl}/threads/${e}`)}async vote(e,t,s,r){throw new Error("Method not implemented.")}}const Te=L({__name:"CopyButton",props:{textToCopy:{}},setup(i){const e=i,t=u(!1),s=()=>{navigator.clipboard.writeText(e.textToCopy),t.value=!0,setTimeout(()=>t.value=!1,2e3)},r=m(()=>t.value?"Copied!":"Copy to clipboard");return(c,l)=>(y(),T(x(J),null,{title:H(()=>[j(q(r.value),1)]),default:H(()=>[v("div",{class:"copy-button",onClick:s},[t.value?(y(),T(x(Se),{key:1,color:"#fff",size:"22"})):(y(),T(x(Y),{key:0,color:"#fff",size:"22"}))])]),_:1}))}});const xe=V(Te,[["__scopeId","data-v-9f87bac2"]]);class F{constructor(e,t,s){o(this,"_repository");o(this,"conversationId");o(this,"_input");o(this,"_badgeState");o(this,"_smartChatState");o(this,"_logService");o(this,"_stageId",null);o(this,"_hasError",u(null));o(this,"_isLoadingHistory",u(!1));o(this,"_history",u([]));o(this,"_threadHistoryFetchInfo",u({limit:10,offset:0,done:!1}));o(this,"_recentlyAccessedThreads",u([]));o(this,"_environment");o(this,"codeForApproval",u(null));o(this,"setupThread",async()=>{this.conversationId.value=`abstra-assistant-thread-${S()}`,this._recentlyAccessedThreads.value.unshift({id:this.conversationId.value,messages:[],createdAt:new Date().toISOString()})});o(this,"fetchHistory",async()=>{this._isLoadingHistory.value=!0;const e=await this._repository.getHistory(this._threadHistoryFetchInfo.value.limit,this._threadHistoryFetchInfo.value.offset);this._history.value=e,this._isLoadingHistory.value=!1});o(this,"loadMoreHistory",async()=>{this._isLoadingHistory.value=!0,this._threadHistoryFetchInfo.value.offset+=this._threadHistoryFetchInfo.value.limit;const e=await this._repository.getHistory(this._threadHistoryFetchInfo.value.limit,this._threadHistoryFetchInfo.value.offset);e.length<this._threadHistoryFetchInfo.value.limit&&(this._threadHistoryFetchInfo.value.done=!0);const t=[...this._history.value,...e];this._history.value=t,this._isLoadingHistory.value=!1});o(this,"setStageId",e=>{this._stageId=e});o(this,"setError",e=>{this._hasError.value=e});o(this,"_fillChat",e=>{this._logService.clear();for(const t of e)t.toolTitle?(this._logService.log({type:"ai-tool-approval",toolCallId:t.toolCallId,description:t.toolTitle,args:{},disabled:!1,needsApproval:!1,loading:!1}),this._logService.log({type:"ai-tool-call-response",toolCallId:t.toolCallId,response:t.content})):this._logService.log({type:t.role==="user"?"ai-input":"ai-output",log:t.content});this.renderCopyButtons()});o(this,"moveThreadFromHistoryToRecents",e=>{this.conversationId.value=e;const t=this._history.value.find(r=>r.id===e);if(!t)throw new Error(`Thread ${e} not found`);const s=this._recentlyAccessedThreads.value.findIndex(r=>r.id===e);s!==-1&&this._recentlyAccessedThreads.value.splice(s,1),this._recentlyAccessedThreads.value.unshift(t),this._fillChat(t.messages)});o(this,"deleteThread",e=>{this._repository.deleteThread(e),this.removeFromRecentlyAccessedThreads(e);const t=this._history.value.findIndex(s=>s.id===e);t!==-1&&this._history.value.splice(t,1)});o(this,"setCurrentThreadFromRecents",e=>{this.conversationId.value=e;const t=this._recentlyAccessedThreads.value.findIndex(r=>r.id===e);if(t===-1)throw new Error(`Thread ${e} not found`);const[s]=this._recentlyAccessedThreads.value.splice(t,1);this._recentlyAccessedThreads.value.unshift(s),this._fillChat(s.messages)});o(this,"removeFromRecentlyAccessedThreads",e=>{const t=this._recentlyAccessedThreads.value.findIndex(s=>s.id===e);if(t===-1)throw new Error(`Thread ${e} not found`);if(this._recentlyAccessedThreads.value.splice(t,1),this._logService.clear(),this._recentlyAccessedThreads.value.length===0)this.conversationId.value=null;else{const s=this._recentlyAccessedThreads.value[0];this.conversationId.value=s.id,this._fillChat(s.messages)}});o(this,"renderCopyButtons",()=>{document.querySelectorAll("pre").forEach(t=>{t.style.position="relative";const s=z(xe,{textToCopy:t.textContent});G(s,t)})});o(this,"clearLogService",()=>{this._logService.clear()});o(this,"send",async(e,t)=>{var s,r,c,l;this.conversationId.value||await this.setupThread(),this._logService.log({type:"ai-input",log:this._input.value}),this._smartChatState.value="processing";try{const h=S(),d=this.conversationId.value;if(!d)throw new Error("Conversation ID is not set");const f=[{type:"text",text:this._input.value}],n={currentEditorUrl:window.location.href,panesInfo:e||{}},g=this._repository.sendMessage(d,f,n,this.isIdle.bind(this),t);let p="",k=h,A="";for await(const w of g){if(this.isIdle())break;this._smartChatState.value==="processing"&&(this._smartChatState.value="answering");const a=w;if(typeof a=="string")p+=a,A+=a,this._logService.log({type:"ai-output",log:A},k);else if(a instanceof Object)if(a.type==="ai-tool-approval")if(this._logService.log({type:"ai-tool-approval",toolCallId:a.toolCallId,description:a.title,args:a.args,disabled:!1,needsApproval:!0,loading:!1}),((s=a.args)==null?void 0:s.file)&&((r=a.args)==null?void 0:r.replacements)){let b=a.args.replacements;typeof b=="string"&&(b=JSON.parse(b)),this.codeForApproval.value={file:a.args.file,replacements:b.map(M=>({oldContext:M.old_context,newContext:M.new_context}))}}else((c=a.args)==null?void 0:c.file)&&((l=a.args)==null?void 0:l.content)&&(this.codeForApproval.value={file:a.args.file,code:a.args.content});else a.type==="ai-tool-call"?(this._logService.log({type:"ai-tool-approval",toolCallId:a.toolCallId,description:a.title,args:a.args,disabled:!1,needsApproval:!1,loading:!1}),k=S(),A=""):a.type==="ai-tool-call-response"&&this._logService.log({type:"ai-tool-call-response",toolCallId:a.toolCallId,response:a.response})}this._recentlyAccessedThreads.value=this._recentlyAccessedThreads.value.map(w=>(w.id===this.conversationId.value&&w.messages.unshift({role:"assistant",content:p,createdAt:new Date().toISOString()}),w)),this._input.value=""}catch(h){this._logService.log({type:"ai-output",log:"Sorry, there was an issue processing your request. Please try again later."}),console.error(h),Q(h)}finally{this._smartChatState.value="idle",this.renderCopyButtons()}});o(this,"abort",()=>{if(!this.conversationId.value)throw new Error("Conversation ID is not set");this._repository.abortStreaming(this.conversationId.value),this._smartChatState.value="idle"});o(this,"isLoadingHistory",()=>this._isLoadingHistory.value);o(this,"isProcessing",()=>this._smartChatState.value==="processing");o(this,"isAnswering",()=>this._smartChatState.value==="answering");o(this,"isIdle",()=>this._smartChatState.value==="idle");o(this,"setSeen",()=>{this._badgeState.value={type:"seen"}});o(this,"setUnseen",e=>{this._badgeState.value={type:"unseen",count:this._badgeState.value.type==="unseen"?this._badgeState.value.count+1:1,severity:e.type==="stderr"?"error":"info"}});o(this,"setInput",e=>{e=e==null?void 0:e.trimEnd(),this._input.value=e||""});o(this,"regenerateLast",async()=>{for(let e=this._logService.logs.length-1;e>=0;e--){const t=this._logService.logs[e];if(t.type==="ai-input"){this.setInput(t.log);break}}await this.send()});o(this,"fixJson",async(e,t)=>{this._logService.clear(),this._logService.log({type:"ai-input",log:`here is my json code:
2
- ${e}
3
- And I got this error:`}),this._logService.log({type:"stderr",log:t}),this.setSeen(),this.setInput("Can you fix this JSON?"),await this.send()});o(this,"askAboutError",async(e,t)=>{this._logService.clear(),this.setInput(`I have this error in my code:
4
- ${e.entries.map(s=>s.payload.text).join("")}
5
-
6
- Can you help me understand what went wrong?
7
- My current code is: ${t||"No code provided"}`),await this.send()});o(this,"vote",async(e,t)=>{const s=this._logService.logs[e],r=this._logService.logs[e-1],c=this._logService.logs.slice(0,e-1);await this._repository.vote(t,r,s,c)});this._repository=e,this._logService=t,this.conversationId=u(null),this._input=u(""),this._badgeState=u({type:"seen"}),this._smartChatState=u("idle"),this._environment=s}init(){this.setupThread(),this.renderCopyButtons(),this.fetchHistory()}get hasError(){var e;return((e=this._hasError.value)==null?void 0:e.payload)||null}get logService(){return this._logService}shouldRenderLoadMoreHistory(){return!this._threadHistoryFetchInfo.value.done}get pastThreads(){return this._history.value.map(e=>e.messages.length===0?{threadId:e.id,title:"New thread"}:{threadId:e.id,title:e.messages[0].content.slice(0,20)+"..."})}get recentlyAccessedThreads(){return this._recentlyAccessedThreads.value.map(e=>({threadId:e.id,title:e.messages.length>0?e.messages[0].content.slice(0,20)+"...":"New thread"}))}get badgeState(){return this._badgeState.value}get input(){return this._input.value}}class E{constructor(){o(this,"logState",W({log:[]}));o(this,"_listeners",{});o(this,"getLastExecutionLogs",e=>{let t="";for(let s=this.logs.length-1;s>=0;s--){const r=this.logs[s];if(r.type!==e&&t.length>0)break;r.type===e&&(t=`${r.log}
8
- ${t}`)}return t})}static create(){return new E}get logs(){return this.logState.log}hasAiLogs(){return this.logs.some(e=>e.type==="ai-input"||e.type==="ai-output")}log(e,t){if(e.type!=="restart"&&e.type!=="ai-actions"&&e.type!=="ai-tool-approval"&&e.type!=="ai-tool-call-response"&&"log"in e&&e.log.trim()==="")return;const s=t?this.logs.find(r=>r.id===t):null;return s?(s.type==="stderr"&&e.type==="stderr"&&(e.log=s.log+`
9
- `+e.log),Object.assign(s,e)):this.logs.push({...e,id:t||S()}),this.notifyListeners(e),t}clear(){this.logState.log=[]}listen(e){const t=S();return this._listeners[t]=e,t}unlisten(e){delete this._listeners[e]}notifyListeners(e){Object.values(this._listeners).forEach(t=>t(e))}}const Le=new K,Oe=X("omniChat",()=>{const i=u(!0),e=u(!1),t=E.create(),s=$(),r=$(),c=(g,p)=>{if(!r.value)if(g==="console"){if(!p)throw new Error("Project ID is required for console chat");s.value=new Ae(p),r.value=new F(s.value,t,{origin:g,projectId:p})}else s.value=new Ie,r.value=new F(s.value,t,{origin:g})},l=()=>{e.value=!0},h=()=>{e.value=!1},d=()=>{i.value=!0,l()},f=()=>{i.value=!1,h()};return{isOpen:i,isInputFocused:e,focusInput:l,blurInput:h,open:d,close:f,toggle:()=>{i.value?f():d()},controller:m(()=>r.value),repository:s,init:c}});export{Se as H,Ie as L,F as S,E as a,Le as o,Oe as u};
10
- //# sourceMappingURL=omniChatStore.16b8f156.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 m,G as a,H as u,I as g,J as b,K as y}from"./jwt-decode.esm.d86c27e0.js";import{a as l,b as i}from"./router.7071f838.js";import{s as w}from"./workspaceStore.87f8dbc6.js";import{_ as h}from"./App.vue_vue_type_style_index_0_lang.864018b5.js";import"./userStore.f2537ff3.js";import"./url.b31d406a.js";import"./colorHelpers.2a607581.js";import"./PlayerConfigProvider.10f46997.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]="9f628f70-e08d-4ee2-850c-89b8c7930a12",t._sentryDebugIdIdentifier="sentry-dbid-9f628f70-e08d-4ee2-850c-89b8c7930a12")}catch{}})();class I{static init(){setInterval(()=>{fetch("/_healthcheck").catch(()=>{})},20*1e3)}}(async()=>{await w();const t=await l(),s=n(),e=r({render:()=>u(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",m),a(e,g),a(e,b),a(e,y)})();
2
- //# sourceMappingURL=player.7f570660.js.map
@@ -1,2 +0,0 @@
1
- import"./jwt-decode.esm.d86c27e0.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]="837d33ad-7fad-449f-9783-c84ea75b7db8",e._sentryDebugIdIdentifier="sentry-dbid-837d33ad-7fad-449f-9783-c84ea75b7db8")}catch{}})();const l=1e3,f=e=>{let n=null;return{startPolling:()=>{const t=async()=>{var d;try{!document.hidden&&!e.keepPollingOnOutOfFocus&&await e.task()}finally{n=setTimeout(t,(d=e.interval)!=null?d:l)}};t()},endPolling:()=>{n&&clearTimeout(n)}}};export{f as u};
2
- //# sourceMappingURL=polling.0b08b681.js.map
@@ -1,2 +0,0 @@
1
- import{i as c}from"./url.b31d406a.js";import"./jwt-decode.esm.d86c27e0.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]="4f123e33-3849-4192-afd5-569b5c3005bc",e._sentryDebugIdIdentifier="sentry-dbid-4f123e33-3849-4192-afd5-569b5c3005bc")}catch{}})();function i(e){return e.startsWith("/")?e.slice(1):e}function f(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=f(e,n,a);switch(t.action){case"REPLACE_LOCAL_HREF":window.location.href=t.newHref;break;case"GOTO_FORM_EDITOR":await r.push({name:"formEditor",params:{formPath:t.path},query:t.queryParams});break;case"GOTO_FORM_PLAYER":await r.push({name:e==="preview"?"formPreview":"formPlayer",params:{formPath:t.path},query:t.queryParams});break;default:throw new Error("Invalid routing")}}export{w as r};
2
- //# sourceMappingURL=redirect.c06a7828.js.map
@@ -1,2 +0,0 @@
1
- import{s as c,t as d,v as t,x as m}from"./jwt-decode.esm.d86c27e0.js";import{a as u}from"./workspaceStore.87f8dbc6.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]="b3622676-7008-4789-a798-6ad5f82eee78",e._sentryDebugIdIdentifier="sentry-dbid-b3622676-7008-4789-a798-6ad5f82eee78")}catch{}})();const b=async()=>{try{const e=await fetch("/_editor/api/workspace/version");return e.ok&&(await e.json()).version||"122a370a7e93d6a0a5ebd647a678c9732ef96057"}catch(e){return console.error("Failed to fetch Abstra version:",e),"122a370a7e93d6a0a5ebd647a678c9732ef96057"}},p=[{path:"/oidc-login-callback",name:"oidcLoginCallback",component:()=>t(()=>import("./OidcLoginCallback.445dd392.js"),["assets/OidcLoginCallback.445dd392.js","assets/workspaceStore.87f8dbc6.js","assets/jwt-decode.esm.d86c27e0.js","assets/jwt-decode.9f7a5511.css","assets/userStore.f2537ff3.js","assets/url.b31d406a.js","assets/colorHelpers.2a607581.js"]),meta:{allowUnauthenticated:!0}},{path:"/oidc-logout-callback",name:"oidcLogoutCallback",component:()=>t(()=>import("./OidcLogoutCallback.485fb0b9.js"),["assets/OidcLogoutCallback.485fb0b9.js","assets/workspaceStore.87f8dbc6.js","assets/jwt-decode.esm.d86c27e0.js","assets/jwt-decode.9f7a5511.css","assets/userStore.f2537ff3.js","assets/url.b31d406a.js","assets/colorHelpers.2a607581.js"]),meta:{allowUnauthenticated:!0}},{path:"/login",name:"playerLogin",component:()=>t(()=>import("./Login.5f104bb1.js"),["assets/Login.5f104bb1.js","assets/Login.vue_vue_type_script_setup_true_lang.7d56cca3.js","assets/jwt-decode.esm.d86c27e0.js","assets/jwt-decode.9f7a5511.css","assets/workspaceStore.87f8dbc6.js","assets/userStore.f2537ff3.js","assets/url.b31d406a.js","assets/colorHelpers.2a607581.js","assets/CircularLoading.6f511e29.js","assets/CircularLoading.a8fe2dc6.css","assets/Logo.a34929e1.js","assets/Logo.b7d81119.css","assets/string.360236ba.js","assets/index.1551abd6.js","assets/Login.75d13f6c.css","assets/Login.3b76812d.css"]),meta:{allowUnauthenticated:!0}},{path:"/",name:"main",component:()=>t(()=>import("./Main.7030ea1d.js"),["assets/Main.7030ea1d.js","assets/PlayerNavbar.f2f66852.js","assets/userStore.f2537ff3.js","assets/jwt-decode.esm.d86c27e0.js","assets/jwt-decode.9f7a5511.css","assets/workspaceStore.87f8dbc6.js","assets/url.b31d406a.js","assets/colorHelpers.2a607581.js","assets/metadata.18d0a278.js","assets/PhUserList.vue.abdd6da1.js","assets/PhWebhooksLogo.vue.00b65b2c.js","assets/LoadingOutlined.b607eff2.js","assets/PhSignOut.vue.61b63ec0.js","assets/index.0f357aec.js","assets/PlayerNavbar.77209eae.css","assets/Main.201c14c9.css"]),redirect:{name:"main"},children:[{path:"",name:"playerHome",component:()=>t(()=>import("./Home.9531e545.js"),["assets/Home.9531e545.js","assets/metadata.18d0a278.js","assets/jwt-decode.esm.d86c27e0.js","assets/jwt-decode.9f7a5511.css","assets/PhUserList.vue.abdd6da1.js","assets/PhWebhooksLogo.vue.00b65b2c.js","assets/Watermark.6076ef47.js","assets/workspaceStore.87f8dbc6.js","assets/userStore.f2537ff3.js","assets/url.b31d406a.js","assets/colorHelpers.2a607581.js","assets/constants.733c6549.js","assets/Watermark.b0916e90.css","assets/PhArrowSquareOut.vue.ee4af292.js","assets/index.81a2ae08.js","assets/Card.5f504e7b.js","assets/LoadingOutlined.b607eff2.js","assets/Home.3794e8b4.css"]),meta:{title:"Home"}},{path:"_player/threads",redirect:{name:"playerThreads"}},{path:"error/:status",name:"error",component:()=>t(()=>import("./Error.dd899e38.js"),["assets/Error.dd899e38.js","assets/AbstraLogo.vue_vue_type_script_setup_true_lang.0c707a8b.js","assets/Logo.a34929e1.js","assets/jwt-decode.esm.d86c27e0.js","assets/jwt-decode.9f7a5511.css","assets/Logo.b7d81119.css","assets/constants.733c6549.js","assets/workspaceStore.87f8dbc6.js","assets/userStore.f2537ff3.js","assets/url.b31d406a.js","assets/colorHelpers.2a607581.js","assets/Card.5f504e7b.js","assets/Error.ef2624eb.css"]),meta:{allowUnauthenticated:!0}},{path:":path(.*)*",name:"form",component:()=>t(()=>import("./Form.9eebd960.js"),["assets/Form.9eebd960.js","assets/userStore.f2537ff3.js","assets/jwt-decode.esm.d86c27e0.js","assets/jwt-decode.9f7a5511.css","assets/FormRunner.1c6a88dd.js","assets/Login.vue_vue_type_script_setup_true_lang.7d56cca3.js","assets/workspaceStore.87f8dbc6.js","assets/url.b31d406a.js","assets/colorHelpers.2a607581.js","assets/CircularLoading.6f511e29.js","assets/CircularLoading.a8fe2dc6.css","assets/Logo.a34929e1.js","assets/Logo.b7d81119.css","assets/string.360236ba.js","assets/index.1551abd6.js","assets/Login.75d13f6c.css","assets/Steps.b12e16c6.js","assets/index.1e12c884.js","assets/Steps.2880920a.css","assets/Watermark.6076ef47.js","assets/constants.733c6549.js","assets/Watermark.b0916e90.css","assets/FormRunner.46f6426d.css","assets/redirect.c06a7828.js","assets/asyncComputed.59410422.js","assets/uuid.d6d43ef5.js","assets/Form.7493bc0a.css"]),meta:{hideLogin:!0}}]}],o=c({history:d("/"),routes:p,scrollBehavior(e){if(e.hash)return{el:e.hash}}}),l=e=>async(a,r)=>{if(m(a,r),a.meta.allowUnauthenticated)return;const n=await u(a.path),{redirect:i,...s}=a.query;switch(n.status){case"ALLOWED":break;case"UNAUTHORIZED":await e.push({name:"playerLogin",query:{...s,redirect:i||a.path},params:a.params});break;case"NOT_FOUND":await e.push({name:"error",params:{status:"404"}});break;default:await e.push({name:"error",params:{status:"403"}})}};o.beforeEach(l(o));export{b as a,o as b,l as g,p as r};
2
- //# sourceMappingURL=router.7071f838.js.map
@@ -1,2 +0,0 @@
1
- import"./jwt-decode.esm.d86c27e0.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]="62745856-11f5-4eba-a1f5-4b4759fb7c7b",e._sentryDebugIdIdentifier="sentry-dbid-62745856-11f5-4eba-a1f5-4b4759fb7c7b")}catch{}})();const f=e=>{try{return new URL(e),!0}catch{return!1}},b=(e,r)=>{if(!Object.keys(r).length)return e;const t=new URL(e),n=new URLSearchParams(t.search);return Object.entries(r).forEach(([s,a])=>{t.searchParams.delete(s),n.set(s,a)}),`${t.origin}${t.pathname}?${n.toString()}`};export{f as i,b as m};
2
- //# sourceMappingURL=url.b31d406a.js.map
@@ -1,2 +0,0 @@
1
- import{q as f,O as v,L as w,r as m,c as n,Q as p}from"./jwt-decode.esm.d86c27e0.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]="098dec23-de53-4325-9dde-cffd1c0f2114",t._sentryDebugIdIdentifier="sentry-dbid-098dec23-de53-4325-9dde-cffd1c0f2114")}catch{}})();const y=2*60*60,_=t=>{try{const e=p(t);if(!e.exp)throw Error("expired jwt");return{email:e.email,expiresInSeconds:e.exp*1e3}}catch{console.warn("Invalid JWT")}return null},g=f("user",()=>{const t=new v(w.string(),"auth:jwt"),e=m(null),a=()=>{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}`}:{}),d=n(()=>e.value?["default",`base64url.bearer.authorization.${e.value}`]:[]),s=n(()=>e.value?_(e.value):null),c=n(()=>{var r;return(r=s.value)==null?void 0:r.email}),i=()=>s.value?s.value.expiresInSeconds-Date.now()>y:!1;return u(),{jwt:e,email:c,saveJWT:o,removeJWT:a,isJWTValid:i,authHeaders:l,wsAuthHeaders:d}});export{g as u};
2
- //# sourceMappingURL=userStore.f2537ff3.js.map
@@ -1,2 +0,0 @@
1
- import"./jwt-decode.esm.d86c27e0.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},x=new Error().stack;x&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[x]="e51e7842-0e91-43ef-8a65-592465a80011",e._sentryDebugIdIdentifier="sentry-dbid-e51e7842-0e91-43ef-8a65-592465a80011")}catch{}})();const r=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const x=Math.random()*16|0;return(e=="x"?x:x&3|8).toString(16)});export{r as u};
2
- //# sourceMappingURL=uuid.d6d43ef5.js.map