mage-ai 0.9.58__py3-none-any.whl → 0.9.59__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.

Potentially problematic release.


This version of mage-ai might be problematic. Click here for more details.

Files changed (682) hide show
  1. mage_ai/api/logging.py +11 -7
  2. mage_ai/api/policies/BlockPolicy.py +1 -0
  3. mage_ai/api/policies/CommandCenterItemPolicy.py +56 -0
  4. mage_ai/api/policies/CustomTemplatePolicy.py +0 -3
  5. mage_ai/api/policies/GitBranchPolicy.py +8 -1
  6. mage_ai/api/policies/GitFilePolicy.py +1 -0
  7. mage_ai/api/policies/PipelinePolicy.py +2 -0
  8. mage_ai/api/policies/PipelineSchedulePolicy.py +1 -0
  9. mage_ai/api/policies/VersionControlBranchPolicy.py +98 -0
  10. mage_ai/api/policies/VersionControlFilePolicy.py +96 -0
  11. mage_ai/api/policies/VersionControlProjectPolicy.py +92 -0
  12. mage_ai/api/policies/VersionControlRemotePolicy.py +94 -0
  13. mage_ai/api/presenters/CommandCenterItemPresenter.py +19 -0
  14. mage_ai/api/presenters/GitBranchPresenter.py +2 -0
  15. mage_ai/api/presenters/GitCustomBranchPresenter.py +1 -0
  16. mage_ai/api/presenters/PipelinePresenter.py +5 -5
  17. mage_ai/api/presenters/PipelineSchedulePresenter.py +4 -0
  18. mage_ai/api/presenters/VersionControlBranchPresenter.py +15 -0
  19. mage_ai/api/presenters/VersionControlFilePresenter.py +15 -0
  20. mage_ai/api/presenters/VersionControlProjectPresenter.py +14 -0
  21. mage_ai/api/presenters/VersionControlRemotePresenter.py +15 -0
  22. mage_ai/api/resources/BlockResource.py +110 -80
  23. mage_ai/api/resources/CommandCenterItemResource.py +29 -0
  24. mage_ai/api/resources/FileResource.py +15 -1
  25. mage_ai/api/resources/FolderResource.py +2 -1
  26. mage_ai/api/resources/GitBranchResource.py +183 -108
  27. mage_ai/api/resources/GitCustomBranchResource.py +9 -2
  28. mage_ai/api/resources/GitFileResource.py +26 -13
  29. mage_ai/api/resources/KernelResource.py +9 -1
  30. mage_ai/api/resources/LogResource.py +1 -1
  31. mage_ai/api/resources/OauthResource.py +4 -5
  32. mage_ai/api/resources/PipelineResource.py +71 -38
  33. mage_ai/api/resources/PipelineRunResource.py +7 -2
  34. mage_ai/api/resources/PullRequestResource.py +12 -3
  35. mage_ai/api/resources/SearchResultResource.py +4 -4
  36. mage_ai/api/resources/VersionControlBranchResource.py +85 -0
  37. mage_ai/api/resources/VersionControlFileResource.py +65 -0
  38. mage_ai/api/resources/VersionControlProjectResource.py +46 -0
  39. mage_ai/api/resources/VersionControlRemoteResource.py +64 -0
  40. mage_ai/authentication/oauth/constants.py +13 -16
  41. mage_ai/authentication/operation_history/models.py +11 -32
  42. mage_ai/authentication/operation_history/utils.py +14 -14
  43. mage_ai/authentication/permissions/constants.py +5 -0
  44. mage_ai/authentication/providers/active_directory.py +2 -2
  45. mage_ai/authentication/providers/bitbucket.py +2 -2
  46. mage_ai/authentication/providers/constants.py +6 -12
  47. mage_ai/authentication/providers/ghe.py +2 -2
  48. mage_ai/authentication/providers/google.py +2 -2
  49. mage_ai/authentication/providers/okta.py +2 -2
  50. mage_ai/cache/base.py +11 -3
  51. mage_ai/cache/block.py +116 -32
  52. mage_ai/cache/block_action_object/__init__.py +52 -43
  53. mage_ai/cache/constants.py +1 -0
  54. mage_ai/cache/file.py +114 -0
  55. mage_ai/cache/pipeline.py +34 -8
  56. mage_ai/cache/tag.py +51 -10
  57. mage_ai/cache/utils.py +44 -3
  58. mage_ai/cluster_manager/kubernetes/workload_manager.py +9 -1
  59. mage_ai/command_center/__init__.py +0 -0
  60. mage_ai/command_center/applications/__init__.py +0 -0
  61. mage_ai/command_center/applications/constants.py +96 -0
  62. mage_ai/command_center/applications/factory.py +54 -0
  63. mage_ai/command_center/blocks/__init__.py +0 -0
  64. mage_ai/command_center/blocks/factory.py +39 -0
  65. mage_ai/command_center/blocks/utils.py +127 -0
  66. mage_ai/command_center/constants.py +66 -0
  67. mage_ai/command_center/factory.py +161 -0
  68. mage_ai/command_center/files/__init__.py +0 -0
  69. mage_ai/command_center/files/constants.py +235 -0
  70. mage_ai/command_center/files/factory.py +86 -0
  71. mage_ai/command_center/models.py +442 -0
  72. mage_ai/command_center/pipeline_runs/__init__.py +0 -0
  73. mage_ai/command_center/pipeline_runs/utils.py +141 -0
  74. mage_ai/command_center/pipelines/__init__.py +0 -0
  75. mage_ai/command_center/pipelines/constants.py +118 -0
  76. mage_ai/command_center/pipelines/factory.py +132 -0
  77. mage_ai/command_center/pipelines/utils.py +120 -0
  78. mage_ai/command_center/service.py +45 -0
  79. mage_ai/command_center/settings.py +37 -0
  80. mage_ai/command_center/support/__init__.py +0 -0
  81. mage_ai/command_center/support/constants.py +46 -0
  82. mage_ai/command_center/triggers/__init__.py +0 -0
  83. mage_ai/command_center/triggers/factory.py +49 -0
  84. mage_ai/command_center/triggers/utils.py +463 -0
  85. mage_ai/command_center/utils.py +30 -0
  86. mage_ai/data_preparation/executors/azure_container_instance_executor.py +1 -1
  87. mage_ai/data_preparation/executors/block_executor.py +68 -19
  88. mage_ai/data_preparation/executors/ecs_block_executor.py +2 -2
  89. mage_ai/data_preparation/executors/executor_factory.py +2 -0
  90. mage_ai/data_preparation/executors/gcp_cloud_run_block_executor.py +1 -1
  91. mage_ai/data_preparation/executors/k8s_block_executor.py +2 -2
  92. mage_ai/data_preparation/executors/pyspark_block_executor.py +7 -1
  93. mage_ai/data_preparation/git/__init__.py +29 -11
  94. mage_ai/data_preparation/git/api.py +14 -13
  95. mage_ai/data_preparation/git/clients/base.py +4 -8
  96. mage_ai/data_preparation/git/clients/github.py +1 -0
  97. mage_ai/data_preparation/git/utils.py +5 -7
  98. mage_ai/data_preparation/models/block/__init__.py +556 -329
  99. mage_ai/data_preparation/models/block/content.py +111 -0
  100. mage_ai/data_preparation/models/block/data_integration/mixins.py +1 -0
  101. mage_ai/data_preparation/models/block/dbt/block.py +29 -19
  102. mage_ai/data_preparation/models/block/dbt/block_sql.py +50 -260
  103. mage_ai/data_preparation/models/block/dbt/block_yaml.py +74 -156
  104. mage_ai/data_preparation/models/block/dbt/dbt_adapter.py +22 -10
  105. mage_ai/data_preparation/models/block/dbt/profiles.py +19 -15
  106. mage_ai/data_preparation/models/block/dbt/project.py +3 -0
  107. mage_ai/data_preparation/models/block/dynamic/constants.py +0 -0
  108. mage_ai/data_preparation/models/block/dynamic/dynamic_child.py +507 -47
  109. mage_ai/data_preparation/models/block/dynamic/utils.py +432 -1
  110. mage_ai/data_preparation/models/block/platform/mixins.py +68 -44
  111. mage_ai/data_preparation/models/block/r/__init__.py +19 -9
  112. mage_ai/data_preparation/models/block/sql/__init__.py +34 -20
  113. mage_ai/data_preparation/models/block/sql/utils/shared.py +4 -1
  114. mage_ai/data_preparation/models/block/utils.py +176 -71
  115. mage_ai/data_preparation/models/constants.py +7 -0
  116. mage_ai/data_preparation/models/file.py +21 -2
  117. mage_ai/data_preparation/models/pipeline.py +20 -8
  118. mage_ai/data_preparation/models/project/__init__.py +12 -7
  119. mage_ai/data_preparation/models/project/constants.py +1 -0
  120. mage_ai/data_preparation/models/triggers/__init__.py +7 -0
  121. mage_ai/data_preparation/models/utils.py +20 -0
  122. mage_ai/data_preparation/models/variable.py +113 -15
  123. mage_ai/data_preparation/shared/utils.py +6 -3
  124. mage_ai/data_preparation/storage/base_storage.py +17 -0
  125. mage_ai/data_preparation/storage/gcs_storage.py +4 -0
  126. mage_ai/data_preparation/storage/local_storage.py +15 -0
  127. mage_ai/data_preparation/storage/s3_storage.py +4 -0
  128. mage_ai/data_preparation/templates/data_exporters/qdrant.py +0 -1
  129. mage_ai/data_preparation/templates/data_loaders/qdrant.py +2 -1
  130. mage_ai/data_preparation/variable_manager.py +1 -0
  131. mage_ai/io/base.py +4 -1
  132. mage_ai/io/bigquery.py +25 -16
  133. mage_ai/io/clickhouse.py +3 -0
  134. mage_ai/io/druid.py +3 -0
  135. mage_ai/io/mongodb.py +1 -1
  136. mage_ai/io/pinot.py +3 -0
  137. mage_ai/io/postgres.py +13 -0
  138. mage_ai/io/snowflake.py +4 -0
  139. mage_ai/io/spark.py +8 -3
  140. mage_ai/io/sql.py +6 -0
  141. mage_ai/orchestration/db/__init__.py +26 -19
  142. mage_ai/orchestration/db/cache.py +4 -3
  143. mage_ai/orchestration/db/models/schedules.py +72 -16
  144. mage_ai/orchestration/db/models/schedules_project_platform.py +2 -3
  145. mage_ai/orchestration/pipeline_scheduler_original.py +19 -11
  146. mage_ai/orchestration/pipeline_scheduler_project_platform.py +20 -11
  147. mage_ai/presenters/interactions/constants.py +1 -0
  148. mage_ai/presenters/interactions/models.py +4 -3
  149. mage_ai/presenters/pages/models/client_pages/pipeline_schedules.py +1 -1
  150. mage_ai/server/constants.py +1 -1
  151. mage_ai/server/frontend_dist/404.html +11 -11
  152. mage_ai/server/frontend_dist/_next/static/PPQxHOmWVJ0iQFzG2rc8m/_buildManifest.js +1 -0
  153. mage_ai/server/frontend_dist/_next/static/chunks/1235.c9ed47779baccc05.js +1 -0
  154. mage_ai/server/frontend_dist/_next/static/chunks/125-029194ff22eb33a5.js +1 -0
  155. mage_ai/server/frontend_dist/_next/static/chunks/1557-4f7485c2e2228f77.js +1 -0
  156. mage_ai/server/frontend_dist/_next/static/chunks/2474-8e702cea23ddd16d.js +1 -0
  157. mage_ai/server/frontend_dist/_next/static/chunks/2479-727fa69ee9be6fab.js +1 -0
  158. mage_ai/server/frontend_dist/_next/static/chunks/26-38bc9380422f3900.js +1 -0
  159. mage_ai/server/frontend_dist/_next/static/chunks/2717-3e7ea8543b3825b7.js +1 -0
  160. mage_ai/server/frontend_dist/_next/static/chunks/3366-420721116ea5a665.js +1 -0
  161. mage_ai/server/frontend_dist/_next/static/chunks/3449-a9c98239582cd6f0.js +1 -0
  162. mage_ai/server/frontend_dist/_next/static/chunks/3548-13563a1ff815f922.js +1 -0
  163. mage_ai/server/frontend_dist/_next/static/chunks/3943-9e0a8ba0db34b35f.js +1 -0
  164. mage_ai/server/frontend_dist/_next/static/chunks/4371-ef23f95888d6cd11.js +1 -0
  165. mage_ai/server/frontend_dist/_next/static/chunks/4632.a4171dbf46b31c7c.js +1 -0
  166. mage_ai/server/frontend_dist/_next/static/chunks/523-be11ad59861d00ca.js +1 -0
  167. mage_ai/server/frontend_dist/_next/static/chunks/5457-d582b00545b4cb5e.js +1 -0
  168. mage_ai/server/frontend_dist/_next/static/chunks/5831-2abc4063e887a03e.js +1 -0
  169. mage_ai/server/frontend_dist/_next/static/chunks/6085-692d2f784c0504f2.js +1 -0
  170. mage_ai/server/frontend_dist/_next/static/chunks/635-1e8857c2b6dde289.js +1 -0
  171. mage_ai/server/frontend_dist/_next/static/chunks/7022-0d52dd8868621fb0.js +1 -0
  172. mage_ai/server/frontend_dist/_next/static/chunks/7264-d05f4b7088533f6f.js +1 -0
  173. mage_ai/server/frontend_dist/_next/static/chunks/7361-b3d661ec743bfadf.js +1 -0
  174. mage_ai/server/frontend_dist/_next/static/chunks/737-cc6467310a130dd9.js +1 -0
  175. mage_ai/server/frontend_dist/_next/static/chunks/{4495-4f0340aa82e0c623.js → 7674-9ec4fe64b5bf64d5.js} +1 -1
  176. mage_ai/server/frontend_dist/_next/static/chunks/8038-85d715c8c8394827.js +1 -0
  177. mage_ai/server/frontend_dist/_next/static/chunks/8095-bdce03896ef9639a.js +1 -0
  178. mage_ai/server/frontend_dist/_next/static/chunks/8146-6bed4e7401e067e6.js +1 -0
  179. mage_ai/server/frontend_dist/_next/static/chunks/8192-0c0b91523a38c4ca.js +1 -0
  180. mage_ai/server/frontend_dist/_next/static/chunks/8432-f736d101fc6d9215.js +1 -0
  181. mage_ai/server/frontend_dist/_next/static/chunks/8513-d207733b485c8d03.js +1 -0
  182. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/9264-e7e040a54d34360c.js → frontend_dist/_next/static/chunks/9264-7cd9cd0ba86ec5e4.js} +1 -1
  183. mage_ai/server/frontend_dist/_next/static/chunks/9265-d2a1aaec75ec69b8.js +1 -0
  184. mage_ai/server/frontend_dist/_next/static/chunks/9440-54add041c392517f.js +1 -0
  185. mage_ai/server/frontend_dist/_next/static/chunks/9624-59b2f803f9c88cd6.js +1 -0
  186. mage_ai/server/frontend_dist/_next/static/chunks/9832-67896490f6e8a014.js +1 -0
  187. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/bd1a647f.fe5d87096be24a62.js → frontend_dist/_next/static/chunks/bd1a647f.04f7913662092327.js} +1 -1
  188. mage_ai/server/frontend_dist/_next/static/chunks/pages/404-7cabe357906f44f2.js +1 -0
  189. mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-a11bd2ebe11b3fd2.js +1 -0
  190. mage_ai/server/frontend_dist/_next/static/chunks/pages/block-layout-ffca51945cd154ef.js +1 -0
  191. mage_ai/server/frontend_dist/_next/static/chunks/pages/compute-3ba957769292db80.js +1 -0
  192. mage_ai/server/frontend_dist/_next/static/chunks/pages/files-45679fd18b3edd82.js +1 -0
  193. mage_ai/server/frontend_dist/_next/static/chunks/pages/global-data-products/[...slug]-95735a218106aa99.js +1 -0
  194. mage_ai/server/frontend_dist/_next/static/chunks/pages/{global-data-products-cf98c2e4d20fd92c.js → global-data-products-81d6c7fd9a9cff38.js} +1 -1
  195. mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks/[...slug]-eb4421d51fb7368f.js +1 -0
  196. mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks-a8c712e20512fede.js +1 -0
  197. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/files-f1be1d4735ba6919.js +1 -0
  198. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/settings-febe676687966276.js +1 -0
  199. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/[user]-70efe222130490b5.js +1 -0
  200. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/new-0914c36b3c8fd59f.js +1 -0
  201. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/{users-81e6e5319a59cd07.js → users-4f12e989e7809ef9.js} +1 -1
  202. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-809d4c99b44991a1.js +1 -0
  203. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/oauth-0436d395963cd27a.js → frontend_dist/_next/static/chunks/pages/oauth-aa9079c8dbaea3a5.js} +1 -1
  204. mage_ai/server/frontend_dist/_next/static/chunks/pages/overview-4e30fb5b18383b71.js +1 -0
  205. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipeline-runs-5d31c3aace39182d.js +1 -0
  206. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-85a80ee66f60a65c.js +1 -0
  207. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-0bd74047e257e6d9.js +1 -0
  208. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-80619dc504d0103b.js +1 -0
  209. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-3cc8d74ff8525bfd.js +1 -0
  210. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-cdc379ff24ff8858.js +1 -0
  211. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-03396d6086003e16.js +1 -0
  212. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-d6d920758654f6d9.js +1 -0
  213. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors-27727bb87be506c3.js +1 -0
  214. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-16aab67743651a0b.js +1 -0
  215. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-e3ca1bedb660b252.js +1 -0
  216. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-9d58701fe7213727.js +1 -0
  217. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-0041fd76ee15e49f.js +1 -0
  218. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-780be9a2da697915.js +1 -0
  219. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-db8bb970b1f2273f.js +1 -0
  220. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-a3422b0ab1dbacd7.js +1 -0
  221. mage_ai/server/frontend_dist/_next/static/chunks/pages/platform/global-hooks/[...slug]-987a1603f4201943.js +1 -0
  222. mage_ai/server/frontend_dist/_next/static/chunks/pages/platform/global-hooks-3dc8bf89cab2722b.js +1 -0
  223. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/account/profile-43d3f2a5071b9537.js +1 -0
  224. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/platform/preferences-c97b1a39b22c112a.js +1 -0
  225. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/platform/settings-49efb66da67554ca.js +1 -0
  226. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/permissions/{[...slug]-be6aaec07c138656.js → [...slug]-5117d3555972484c.js} +1 -1
  227. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/permissions-ee1c19d4a192ae4d.js +1 -0
  228. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-4dc5724486ee3396.js +1 -0
  229. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/roles/{[...slug]-f380d293cff7592b.js → [...slug]-fa095aac732368c3.js} +1 -1
  230. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{roles-ddce04fae28bd7f6.js → roles-db6d71f8692a33e7.js} +1 -1
  231. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/sync-data-99c6a263d2ab9553.js +1 -0
  232. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users/{[...slug]-213a43564fdfbe17.js → [...slug]-9d881ac0a3db9baa.js} +1 -1
  233. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users-bee414d57c4b55d7.js +1 -0
  234. mage_ai/server/frontend_dist/_next/static/chunks/pages/sign-in-e7030e1a7a9e88e1.js +1 -0
  235. mage_ai/server/frontend_dist/_next/static/chunks/pages/templates/[...slug]-312afc9a3f8d0a4f.js +1 -0
  236. mage_ai/server/frontend_dist/_next/static/chunks/pages/templates-e5300c340aa94c6b.js +1 -0
  237. mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-fa7ca0c86142d146.js +1 -0
  238. mage_ai/server/frontend_dist/_next/static/chunks/pages/test-bd51b3918b39329e.js +1 -0
  239. mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-5158a9d98d2459e8.js +1 -0
  240. mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-5ce099a7abb354ff.js +1 -0
  241. mage_ai/server/frontend_dist/_next/static/chunks/{webpack-fea697dd168c6d0c.js → webpack-efa55343114c8128.js} +1 -1
  242. mage_ai/server/{frontend_dist_base_path_template/_next/static/css/d1e8e64d0b07af2f.css → frontend_dist/_next/static/css/b59541b123fd7191.css} +1 -1
  243. mage_ai/server/frontend_dist/block-layout.html +3 -3
  244. mage_ai/server/frontend_dist/compute.html +11 -11
  245. mage_ai/server/frontend_dist/files.html +11 -11
  246. mage_ai/server/frontend_dist/global-data-products/[...slug].html +11 -11
  247. mage_ai/server/frontend_dist/global-data-products.html +11 -11
  248. mage_ai/server/frontend_dist/global-hooks/[...slug].html +11 -11
  249. mage_ai/server/frontend_dist/global-hooks.html +11 -11
  250. mage_ai/server/frontend_dist/index.html +3 -3
  251. mage_ai/server/frontend_dist/manage/files.html +11 -11
  252. mage_ai/server/frontend_dist/manage/settings.html +11 -11
  253. mage_ai/server/frontend_dist/manage/users/[user].html +11 -11
  254. mage_ai/server/frontend_dist/manage/users/new.html +11 -11
  255. mage_ai/server/frontend_dist/manage/users.html +11 -11
  256. mage_ai/server/frontend_dist/manage.html +11 -11
  257. mage_ai/server/frontend_dist/oauth.html +8 -8
  258. mage_ai/server/frontend_dist/overview.html +11 -11
  259. mage_ai/server/frontend_dist/pipeline-runs.html +11 -11
  260. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +11 -11
  261. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +11 -11
  262. mage_ai/server/frontend_dist/pipelines/[pipeline]/dashboard.html +11 -11
  263. mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +3 -3
  264. mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +11 -11
  265. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +11 -11
  266. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +11 -11
  267. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +11 -11
  268. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +11 -11
  269. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +11 -11
  270. mage_ai/server/frontend_dist/pipelines/[pipeline]/settings.html +11 -11
  271. mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +11 -11
  272. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +11 -11
  273. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +11 -11
  274. mage_ai/server/frontend_dist/pipelines/[pipeline].html +3 -3
  275. mage_ai/server/frontend_dist/pipelines.html +11 -11
  276. mage_ai/server/frontend_dist/platform/global-hooks/[...slug].html +11 -11
  277. mage_ai/server/frontend_dist/platform/global-hooks.html +11 -11
  278. mage_ai/server/frontend_dist/settings/account/profile.html +11 -11
  279. mage_ai/server/frontend_dist/settings/platform/preferences.html +11 -11
  280. mage_ai/server/frontend_dist/settings/platform/settings.html +11 -11
  281. mage_ai/server/frontend_dist/settings/workspace/permissions/[...slug].html +11 -11
  282. mage_ai/server/frontend_dist/settings/workspace/permissions.html +11 -11
  283. mage_ai/server/frontend_dist/settings/workspace/preferences.html +11 -11
  284. mage_ai/server/frontend_dist/settings/workspace/roles/[...slug].html +11 -11
  285. mage_ai/server/frontend_dist/settings/workspace/roles.html +11 -11
  286. mage_ai/server/frontend_dist/settings/workspace/sync-data.html +11 -11
  287. mage_ai/server/frontend_dist/settings/workspace/users/[...slug].html +11 -11
  288. mage_ai/server/frontend_dist/settings/workspace/users.html +11 -11
  289. mage_ai/server/frontend_dist/settings.html +3 -3
  290. mage_ai/server/frontend_dist/sign-in.html +41 -41
  291. mage_ai/server/frontend_dist/templates/[...slug].html +11 -11
  292. mage_ai/server/frontend_dist/templates.html +11 -11
  293. mage_ai/server/frontend_dist/terminal.html +11 -11
  294. mage_ai/server/frontend_dist/test.html +3 -5
  295. mage_ai/server/frontend_dist/triggers.html +11 -11
  296. mage_ai/server/frontend_dist/version-control.html +11 -11
  297. mage_ai/server/frontend_dist_base_path_template/404.html +11 -11
  298. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1235.c9ed47779baccc05.js +1 -0
  299. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/125-029194ff22eb33a5.js +1 -0
  300. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1557-4f7485c2e2228f77.js +1 -0
  301. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2474-8e702cea23ddd16d.js +1 -0
  302. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2479-727fa69ee9be6fab.js +1 -0
  303. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/26-38bc9380422f3900.js +1 -0
  304. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2717-3e7ea8543b3825b7.js +1 -0
  305. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3366-420721116ea5a665.js +1 -0
  306. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3449-a9c98239582cd6f0.js +1 -0
  307. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3548-13563a1ff815f922.js +1 -0
  308. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3943-9e0a8ba0db34b35f.js +1 -0
  309. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4371-ef23f95888d6cd11.js +1 -0
  310. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4632.a4171dbf46b31c7c.js +1 -0
  311. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/523-be11ad59861d00ca.js +1 -0
  312. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5457-d582b00545b4cb5e.js +1 -0
  313. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5831-2abc4063e887a03e.js +1 -0
  314. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6085-692d2f784c0504f2.js +1 -0
  315. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/635-1e8857c2b6dde289.js +1 -0
  316. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7022-0d52dd8868621fb0.js +1 -0
  317. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7264-d05f4b7088533f6f.js +1 -0
  318. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7361-b3d661ec743bfadf.js +1 -0
  319. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/737-cc6467310a130dd9.js +1 -0
  320. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{4495-4f0340aa82e0c623.js → 7674-9ec4fe64b5bf64d5.js} +1 -1
  321. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8038-85d715c8c8394827.js +1 -0
  322. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8095-bdce03896ef9639a.js +1 -0
  323. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8146-6bed4e7401e067e6.js +1 -0
  324. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8192-0c0b91523a38c4ca.js +1 -0
  325. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8432-f736d101fc6d9215.js +1 -0
  326. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8513-d207733b485c8d03.js +1 -0
  327. mage_ai/server/{frontend_dist/_next/static/chunks/9264-e7e040a54d34360c.js → frontend_dist_base_path_template/_next/static/chunks/9264-7cd9cd0ba86ec5e4.js} +1 -1
  328. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9265-d2a1aaec75ec69b8.js +1 -0
  329. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9440-54add041c392517f.js +1 -0
  330. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9624-59b2f803f9c88cd6.js +1 -0
  331. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9832-67896490f6e8a014.js +1 -0
  332. mage_ai/server/{frontend_dist/_next/static/chunks/bd1a647f.fe5d87096be24a62.js → frontend_dist_base_path_template/_next/static/chunks/bd1a647f.04f7913662092327.js} +1 -1
  333. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/404-7cabe357906f44f2.js +1 -0
  334. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/_app-a11bd2ebe11b3fd2.js +1 -0
  335. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/block-layout-ffca51945cd154ef.js +1 -0
  336. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/compute-3ba957769292db80.js +1 -0
  337. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/files-45679fd18b3edd82.js +1 -0
  338. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-data-products/[...slug]-95735a218106aa99.js +1 -0
  339. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{global-data-products-cf98c2e4d20fd92c.js → global-data-products-81d6c7fd9a9cff38.js} +1 -1
  340. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks/[...slug]-eb4421d51fb7368f.js +1 -0
  341. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks-a8c712e20512fede.js +1 -0
  342. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/files-f1be1d4735ba6919.js +1 -0
  343. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/settings-febe676687966276.js +1 -0
  344. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/[user]-70efe222130490b5.js +1 -0
  345. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/new-0914c36b3c8fd59f.js +1 -0
  346. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/{users-81e6e5319a59cd07.js → users-4f12e989e7809ef9.js} +1 -1
  347. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage-809d4c99b44991a1.js +1 -0
  348. mage_ai/server/{frontend_dist/_next/static/chunks/pages/oauth-0436d395963cd27a.js → frontend_dist_base_path_template/_next/static/chunks/pages/oauth-aa9079c8dbaea3a5.js} +1 -1
  349. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/overview-4e30fb5b18383b71.js +1 -0
  350. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipeline-runs-5d31c3aace39182d.js +1 -0
  351. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-85a80ee66f60a65c.js +1 -0
  352. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-0bd74047e257e6d9.js +1 -0
  353. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-80619dc504d0103b.js +1 -0
  354. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-3cc8d74ff8525bfd.js +1 -0
  355. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/logs-cdc379ff24ff8858.js +1 -0
  356. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-03396d6086003e16.js +1 -0
  357. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-d6d920758654f6d9.js +1 -0
  358. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors-27727bb87be506c3.js +1 -0
  359. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-16aab67743651a0b.js +1 -0
  360. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs-e3ca1bedb660b252.js +1 -0
  361. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-9d58701fe7213727.js +1 -0
  362. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/syncs-0041fd76ee15e49f.js +1 -0
  363. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-780be9a2da697915.js +1 -0
  364. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers-db8bb970b1f2273f.js +1 -0
  365. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-a3422b0ab1dbacd7.js +1 -0
  366. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/platform/global-hooks/[...slug]-987a1603f4201943.js +1 -0
  367. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/platform/global-hooks-3dc8bf89cab2722b.js +1 -0
  368. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/account/profile-43d3f2a5071b9537.js +1 -0
  369. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/platform/preferences-c97b1a39b22c112a.js +1 -0
  370. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/platform/settings-49efb66da67554ca.js +1 -0
  371. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/permissions/{[...slug]-be6aaec07c138656.js → [...slug]-5117d3555972484c.js} +1 -1
  372. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/permissions-ee1c19d4a192ae4d.js +1 -0
  373. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-4dc5724486ee3396.js +1 -0
  374. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/roles/{[...slug]-f380d293cff7592b.js → [...slug]-fa095aac732368c3.js} +1 -1
  375. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{roles-ddce04fae28bd7f6.js → roles-db6d71f8692a33e7.js} +1 -1
  376. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/sync-data-99c6a263d2ab9553.js +1 -0
  377. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/users/{[...slug]-213a43564fdfbe17.js → [...slug]-9d881ac0a3db9baa.js} +1 -1
  378. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/users-bee414d57c4b55d7.js +1 -0
  379. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/sign-in-e7030e1a7a9e88e1.js +1 -0
  380. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/templates/[...slug]-312afc9a3f8d0a4f.js +1 -0
  381. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/templates-e5300c340aa94c6b.js +1 -0
  382. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/terminal-fa7ca0c86142d146.js +1 -0
  383. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/test-bd51b3918b39329e.js +1 -0
  384. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/triggers-5158a9d98d2459e8.js +1 -0
  385. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/version-control-5ce099a7abb354ff.js +1 -0
  386. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{webpack-d30cb09c85b4c4f0.js → webpack-bd35e1c7bd7b5a9a.js} +1 -1
  387. mage_ai/server/{frontend_dist/_next/static/css/d1e8e64d0b07af2f.css → frontend_dist_base_path_template/_next/static/css/b59541b123fd7191.css} +1 -1
  388. mage_ai/server/frontend_dist_base_path_template/_next/static/do4WOsw7lNhouR0mtPTFi/_buildManifest.js +1 -0
  389. mage_ai/server/frontend_dist_base_path_template/block-layout.html +3 -3
  390. mage_ai/server/frontend_dist_base_path_template/compute.html +11 -11
  391. mage_ai/server/frontend_dist_base_path_template/files.html +11 -11
  392. mage_ai/server/frontend_dist_base_path_template/global-data-products/[...slug].html +11 -11
  393. mage_ai/server/frontend_dist_base_path_template/global-data-products.html +11 -11
  394. mage_ai/server/frontend_dist_base_path_template/global-hooks/[...slug].html +11 -11
  395. mage_ai/server/frontend_dist_base_path_template/global-hooks.html +11 -11
  396. mage_ai/server/frontend_dist_base_path_template/index.html +3 -3
  397. mage_ai/server/frontend_dist_base_path_template/manage/files.html +11 -11
  398. mage_ai/server/frontend_dist_base_path_template/manage/settings.html +11 -11
  399. mage_ai/server/frontend_dist_base_path_template/manage/users/[user].html +11 -11
  400. mage_ai/server/frontend_dist_base_path_template/manage/users/new.html +11 -11
  401. mage_ai/server/frontend_dist_base_path_template/manage/users.html +11 -11
  402. mage_ai/server/frontend_dist_base_path_template/manage.html +11 -11
  403. mage_ai/server/frontend_dist_base_path_template/oauth.html +8 -8
  404. mage_ai/server/frontend_dist_base_path_template/overview.html +11 -11
  405. mage_ai/server/frontend_dist_base_path_template/pipeline-runs.html +11 -11
  406. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills/[...slug].html +11 -11
  407. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills.html +11 -11
  408. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/dashboard.html +11 -11
  409. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/edit.html +3 -3
  410. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/logs.html +11 -11
  411. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runs.html +11 -11
  412. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runtime.html +11 -11
  413. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors.html +11 -11
  414. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs/[run].html +11 -11
  415. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs.html +11 -11
  416. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/settings.html +11 -11
  417. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/syncs.html +11 -11
  418. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers/[...slug].html +11 -11
  419. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers.html +11 -11
  420. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline].html +3 -3
  421. mage_ai/server/frontend_dist_base_path_template/pipelines.html +11 -11
  422. mage_ai/server/frontend_dist_base_path_template/platform/global-hooks/[...slug].html +11 -11
  423. mage_ai/server/frontend_dist_base_path_template/platform/global-hooks.html +11 -11
  424. mage_ai/server/frontend_dist_base_path_template/settings/account/profile.html +11 -11
  425. mage_ai/server/frontend_dist_base_path_template/settings/platform/preferences.html +11 -11
  426. mage_ai/server/frontend_dist_base_path_template/settings/platform/settings.html +11 -11
  427. mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions/[...slug].html +11 -11
  428. mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions.html +11 -11
  429. mage_ai/server/frontend_dist_base_path_template/settings/workspace/preferences.html +11 -11
  430. mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles/[...slug].html +11 -11
  431. mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles.html +11 -11
  432. mage_ai/server/frontend_dist_base_path_template/settings/workspace/sync-data.html +11 -11
  433. mage_ai/server/frontend_dist_base_path_template/settings/workspace/users/[...slug].html +11 -11
  434. mage_ai/server/frontend_dist_base_path_template/settings/workspace/users.html +11 -11
  435. mage_ai/server/frontend_dist_base_path_template/settings.html +3 -3
  436. mage_ai/server/frontend_dist_base_path_template/sign-in.html +39 -39
  437. mage_ai/server/frontend_dist_base_path_template/templates/[...slug].html +11 -11
  438. mage_ai/server/frontend_dist_base_path_template/templates.html +11 -11
  439. mage_ai/server/frontend_dist_base_path_template/terminal.html +11 -11
  440. mage_ai/server/frontend_dist_base_path_template/test.html +3 -5
  441. mage_ai/server/frontend_dist_base_path_template/triggers.html +11 -11
  442. mage_ai/server/frontend_dist_base_path_template/version-control.html +11 -11
  443. mage_ai/server/logger.py +8 -2
  444. mage_ai/server/server.py +18 -1
  445. mage_ai/services/aws/ecs/config.py +3 -3
  446. mage_ai/services/aws/ecs/ecs.py +2 -2
  447. mage_ai/services/search/block_action_objects.py +59 -5
  448. mage_ai/settings/models/configuration_option.py +3 -1
  449. mage_ai/settings/platform/__init__.py +54 -18
  450. mage_ai/settings/repo.py +5 -4
  451. mage_ai/shared/custom_logger.py +213 -0
  452. mage_ai/shared/environments.py +4 -0
  453. mage_ai/shared/files.py +52 -1
  454. mage_ai/shared/models.py +2 -1
  455. mage_ai/shared/parsers.py +8 -1
  456. mage_ai/shared/path_fixer.py +62 -5
  457. mage_ai/shared/retry.py +4 -0
  458. mage_ai/shared/strings.py +4 -0
  459. mage_ai/tests/api/endpoints/test_blocks.py +101 -1
  460. mage_ai/tests/api/operations/base/test_base_with_user_permissions.py +4 -1
  461. mage_ai/tests/base_test.py +21 -2
  462. mage_ai/tests/cache/test_pipeline_cache.py +11 -8
  463. mage_ai/tests/data_preparation/executors/test_block_executor.py +55 -45
  464. mage_ai/tests/data_preparation/git/test_api.py +4 -4
  465. mage_ai/tests/data_preparation/models/block/dbt/test_block.py +75 -43
  466. mage_ai/tests/data_preparation/models/block/dbt/test_block_sql.py +329 -329
  467. mage_ai/tests/data_preparation/models/block/dbt/test_block_yaml.py +296 -296
  468. mage_ai/tests/data_preparation/models/block/dbt/test_dbt_adapter.py +2 -2
  469. mage_ai/tests/data_preparation/models/block/dbt/test_dbt_cli.py +4 -4
  470. mage_ai/tests/data_preparation/models/block/dbt/test_profiles.py +2 -2
  471. mage_ai/tests/data_preparation/models/block/dbt/test_project.py +2 -2
  472. mage_ai/tests/data_preparation/models/block/dbt/test_sources.py +2 -2
  473. mage_ai/tests/data_preparation/models/block/dynamic/test_dynamic_child_block_factory.py +477 -474
  474. mage_ai/tests/data_preparation/models/block/dynamic/test_dynamic_helpers.py +25 -24
  475. mage_ai/tests/data_preparation/models/block/platform/test_mixins.py +16 -25
  476. mage_ai/tests/data_preparation/models/block/test_utils.py +8 -8
  477. mage_ai/tests/data_preparation/models/test_block.py +6 -8
  478. mage_ai/tests/data_preparation/models/test_project.py +10 -5
  479. mage_ai/tests/data_preparation/models/test_variable.py +51 -4
  480. mage_ai/tests/orchestration/test_pipeline_scheduler_project_platform.py +1 -0
  481. mage_ai/version_control/__init__.py +0 -0
  482. mage_ai/version_control/models.py +288 -0
  483. {mage_ai-0.9.58.dist-info → mage_ai-0.9.59.dist-info}/METADATA +6 -6
  484. {mage_ai-0.9.58.dist-info → mage_ai-0.9.59.dist-info}/RECORD +490 -476
  485. mage_ai/server/frontend_dist/_next/static/0XnQ0C0nTr1w0o9CGC7wQ/_buildManifest.js +0 -1
  486. mage_ai/server/frontend_dist/_next/static/chunks/1124-d8fc76201b83b376.js +0 -1
  487. mage_ai/server/frontend_dist/_next/static/chunks/1154-2f262f7eb38ebaa1.js +0 -1
  488. mage_ai/server/frontend_dist/_next/static/chunks/1235.53172e14801844e5.js +0 -1
  489. mage_ai/server/frontend_dist/_next/static/chunks/1550-32333b36ac6b061b.js +0 -1
  490. mage_ai/server/frontend_dist/_next/static/chunks/1557-7cfe722a9b83b935.js +0 -1
  491. mage_ai/server/frontend_dist/_next/static/chunks/1598-dd776e3a92e9cccd.js +0 -1
  492. mage_ai/server/frontend_dist/_next/static/chunks/1751-5adf859690505d7b.js +0 -1
  493. mage_ai/server/frontend_dist/_next/static/chunks/1952-b2197a87dd67d8e0.js +0 -1
  494. mage_ai/server/frontend_dist/_next/static/chunks/2056-0ea1faa46646a77e.js +0 -1
  495. mage_ai/server/frontend_dist/_next/static/chunks/2213-52267f1e9ef5751c.js +0 -1
  496. mage_ai/server/frontend_dist/_next/static/chunks/2474-352ae192b826d896.js +0 -1
  497. mage_ai/server/frontend_dist/_next/static/chunks/2512-46141494a1b75897.js +0 -1
  498. mage_ai/server/frontend_dist/_next/static/chunks/2717-accc279ae116b1b9.js +0 -1
  499. mage_ai/server/frontend_dist/_next/static/chunks/2852872c-15b31a7081e6a868.js +0 -1
  500. mage_ai/server/frontend_dist/_next/static/chunks/2886-9e73e1f48f248741.js +0 -1
  501. mage_ai/server/frontend_dist/_next/static/chunks/2920.86a65e5f26ff1795.js +0 -1
  502. mage_ai/server/frontend_dist/_next/static/chunks/3437-6055fd5aa82880f6.js +0 -1
  503. mage_ai/server/frontend_dist/_next/static/chunks/3449-214fce1a0e623b47.js +0 -1
  504. mage_ai/server/frontend_dist/_next/static/chunks/3494-23a9cc2cd649abac.js +0 -1
  505. mage_ai/server/frontend_dist/_next/static/chunks/3745-3662911c364d917b.js +0 -1
  506. mage_ai/server/frontend_dist/_next/static/chunks/3763-70c7eb1fc203c903.js +0 -1
  507. mage_ai/server/frontend_dist/_next/static/chunks/3943-a49377acc514e77f.js +0 -1
  508. mage_ai/server/frontend_dist/_next/static/chunks/4052-f89c85d2c8f51931.js +0 -1
  509. mage_ai/server/frontend_dist/_next/static/chunks/4296-14eaf96d6479e673.js +0 -1
  510. mage_ai/server/frontend_dist/_next/static/chunks/4804-1254a474f238d078.js +0 -1
  511. mage_ai/server/frontend_dist/_next/static/chunks/5283-9df961e430a79bea.js +0 -1
  512. mage_ai/server/frontend_dist/_next/static/chunks/5457-b373ebdf4d05d8e2.js +0 -1
  513. mage_ai/server/frontend_dist/_next/static/chunks/5499-bc2528f8e18f61a6.js +0 -1
  514. mage_ai/server/frontend_dist/_next/static/chunks/5810-e66141c1271bced6.js +0 -1
  515. mage_ai/server/frontend_dist/_next/static/chunks/5849-f30d8694e3318a81.js +0 -1
  516. mage_ai/server/frontend_dist/_next/static/chunks/5896-7b8e36634d7d94eb.js +0 -1
  517. mage_ai/server/frontend_dist/_next/static/chunks/6043-728790621ca9014c.js +0 -1
  518. mage_ai/server/frontend_dist/_next/static/chunks/6050-e48b7f97e96bbcb6.js +0 -1
  519. mage_ai/server/frontend_dist/_next/static/chunks/6285-648f9a732e100b2f.js +0 -1
  520. mage_ai/server/frontend_dist/_next/static/chunks/6639-74eefed142e14ea6.js +0 -1
  521. mage_ai/server/frontend_dist/_next/static/chunks/6965-c613d1834c8ed92d.js +0 -1
  522. mage_ai/server/frontend_dist/_next/static/chunks/7022-ea92cb336bd1aab8.js +0 -1
  523. mage_ai/server/frontend_dist/_next/static/chunks/7361-06ef4c642a8fe8c4.js +0 -1
  524. mage_ai/server/frontend_dist/_next/static/chunks/7858-677c641010ac9160.js +0 -1
  525. mage_ai/server/frontend_dist/_next/static/chunks/8125-b9d53e425b6ddc7e.js +0 -1
  526. mage_ai/server/frontend_dist/_next/static/chunks/8146-fb8f445644e573b0.js +0 -1
  527. mage_ai/server/frontend_dist/_next/static/chunks/8432-0ace6fb7bdbc6864.js +0 -1
  528. mage_ai/server/frontend_dist/_next/static/chunks/844-1e171f361e63b36d.js +0 -1
  529. mage_ai/server/frontend_dist/_next/static/chunks/9269-40e2101f56399dcc.js +0 -1
  530. mage_ai/server/frontend_dist/_next/static/chunks/9302-913007e2f801ad65.js +0 -1
  531. mage_ai/server/frontend_dist/_next/static/chunks/9440-c51bf1e8f271cb25.js +0 -1
  532. mage_ai/server/frontend_dist/_next/static/chunks/9624-89a4b20eb3b3c754.js +0 -1
  533. mage_ai/server/frontend_dist/_next/static/chunks/976-0a8c2c4d7acd957b.js +0 -1
  534. mage_ai/server/frontend_dist/_next/static/chunks/9775-c1142b1312e8f95d.js +0 -1
  535. mage_ai/server/frontend_dist/_next/static/chunks/pages/404-5ddd12931e0e3e41.js +0 -1
  536. mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-ec5e62e8e5bb4e4c.js +0 -1
  537. mage_ai/server/frontend_dist/_next/static/chunks/pages/block-layout-44d7291d8f29eb36.js +0 -1
  538. mage_ai/server/frontend_dist/_next/static/chunks/pages/compute-a6661a9c3647532a.js +0 -1
  539. mage_ai/server/frontend_dist/_next/static/chunks/pages/files-26b899d3adb4ed19.js +0 -1
  540. mage_ai/server/frontend_dist/_next/static/chunks/pages/global-data-products/[...slug]-9bd164317e652311.js +0 -1
  541. mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks/[...slug]-c87d46dc53e35638.js +0 -1
  542. mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks-24785a5ed4eb340d.js +0 -1
  543. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/files-2c5fd116ecfacb33.js +0 -1
  544. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/settings-8c9285af31efa3fd.js +0 -1
  545. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/[user]-ec7e0419a64ae3b2.js +0 -1
  546. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/new-039e083cc068da54.js +0 -1
  547. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-8e4d4f6edc515265.js +0 -1
  548. mage_ai/server/frontend_dist/_next/static/chunks/pages/overview-b73185fdcb7a131c.js +0 -1
  549. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipeline-runs-97b3335bf60f8b07.js +0 -1
  550. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-83de126136539668.js +0 -1
  551. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-50f45e96892cfb63.js +0 -1
  552. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-5fe0f1de6fd365f8.js +0 -1
  553. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-306db9e11fa94d21.js +0 -1
  554. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-ebea4be0562b08e3.js +0 -1
  555. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-f09d21d5c2661504.js +0 -1
  556. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-61e770f155ae22ef.js +0 -1
  557. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors-d347a4614130e2ab.js +0 -1
  558. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-056c5e5080a3754f.js +0 -1
  559. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-208fa8de91f152bc.js +0 -1
  560. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-a32e02f46a816eb3.js +0 -1
  561. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-8012388b15f0e0a5.js +0 -1
  562. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-6714c72f90923cfb.js +0 -1
  563. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-afc0525ef27fe1f2.js +0 -1
  564. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-a91e7d86cd0540d9.js +0 -1
  565. mage_ai/server/frontend_dist/_next/static/chunks/pages/platform/global-hooks/[...slug]-7c8e5a8908fe9c83.js +0 -1
  566. mage_ai/server/frontend_dist/_next/static/chunks/pages/platform/global-hooks-be0684d1527587d8.js +0 -1
  567. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/account/profile-147660a34351147c.js +0 -1
  568. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/platform/preferences-ec5f01b683920ced.js +0 -1
  569. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/platform/settings-28aa4512c0e23ec5.js +0 -1
  570. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/permissions-a2850b2e0a282d16.js +0 -1
  571. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-b1df80674dca4713.js +0 -1
  572. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/sync-data-41abcd2241958dc8.js +0 -1
  573. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users-a2c5859f53b5e9e1.js +0 -1
  574. mage_ai/server/frontend_dist/_next/static/chunks/pages/sign-in-1aea2a0c373bc6ae.js +0 -1
  575. mage_ai/server/frontend_dist/_next/static/chunks/pages/templates/[...slug]-e7485742708215d2.js +0 -1
  576. mage_ai/server/frontend_dist/_next/static/chunks/pages/templates-b4086d30a89d6801.js +0 -1
  577. mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-3cd171f43f0a0df8.js +0 -1
  578. mage_ai/server/frontend_dist/_next/static/chunks/pages/test-6a22493285c47ba2.js +0 -1
  579. mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-ad20a31dde4fe59b.js +0 -1
  580. mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-267952b4c87927c7.js +0 -1
  581. mage_ai/server/frontend_dist_base_path_template/_next/static/RC0Yenm06LvZI-RWFoT5C/_buildManifest.js +0 -1
  582. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1124-d8fc76201b83b376.js +0 -1
  583. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1154-2f262f7eb38ebaa1.js +0 -1
  584. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1235.53172e14801844e5.js +0 -1
  585. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1550-32333b36ac6b061b.js +0 -1
  586. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1557-7cfe722a9b83b935.js +0 -1
  587. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1598-dd776e3a92e9cccd.js +0 -1
  588. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1751-5adf859690505d7b.js +0 -1
  589. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1952-b2197a87dd67d8e0.js +0 -1
  590. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2056-0ea1faa46646a77e.js +0 -1
  591. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2213-52267f1e9ef5751c.js +0 -1
  592. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2474-352ae192b826d896.js +0 -1
  593. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2512-46141494a1b75897.js +0 -1
  594. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2717-accc279ae116b1b9.js +0 -1
  595. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2852872c-15b31a7081e6a868.js +0 -1
  596. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2886-9e73e1f48f248741.js +0 -1
  597. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2920.86a65e5f26ff1795.js +0 -1
  598. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3437-6055fd5aa82880f6.js +0 -1
  599. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3449-214fce1a0e623b47.js +0 -1
  600. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3494-23a9cc2cd649abac.js +0 -1
  601. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3745-3662911c364d917b.js +0 -1
  602. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3763-70c7eb1fc203c903.js +0 -1
  603. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3943-a49377acc514e77f.js +0 -1
  604. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4052-f89c85d2c8f51931.js +0 -1
  605. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4296-14eaf96d6479e673.js +0 -1
  606. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4804-1254a474f238d078.js +0 -1
  607. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5283-9df961e430a79bea.js +0 -1
  608. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5457-b373ebdf4d05d8e2.js +0 -1
  609. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5499-bc2528f8e18f61a6.js +0 -1
  610. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5810-e66141c1271bced6.js +0 -1
  611. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5849-f30d8694e3318a81.js +0 -1
  612. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5896-7b8e36634d7d94eb.js +0 -1
  613. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6043-728790621ca9014c.js +0 -1
  614. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6050-e48b7f97e96bbcb6.js +0 -1
  615. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6285-648f9a732e100b2f.js +0 -1
  616. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6639-74eefed142e14ea6.js +0 -1
  617. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6965-c613d1834c8ed92d.js +0 -1
  618. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7022-ea92cb336bd1aab8.js +0 -1
  619. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7361-06ef4c642a8fe8c4.js +0 -1
  620. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7858-677c641010ac9160.js +0 -1
  621. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8125-b9d53e425b6ddc7e.js +0 -1
  622. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8146-fb8f445644e573b0.js +0 -1
  623. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8432-0ace6fb7bdbc6864.js +0 -1
  624. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/844-1e171f361e63b36d.js +0 -1
  625. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9269-40e2101f56399dcc.js +0 -1
  626. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9302-913007e2f801ad65.js +0 -1
  627. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9440-c51bf1e8f271cb25.js +0 -1
  628. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9624-89a4b20eb3b3c754.js +0 -1
  629. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/976-0a8c2c4d7acd957b.js +0 -1
  630. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9775-c1142b1312e8f95d.js +0 -1
  631. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/404-5ddd12931e0e3e41.js +0 -1
  632. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/_app-ec5e62e8e5bb4e4c.js +0 -1
  633. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/block-layout-44d7291d8f29eb36.js +0 -1
  634. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/compute-a6661a9c3647532a.js +0 -1
  635. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/files-26b899d3adb4ed19.js +0 -1
  636. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-data-products/[...slug]-9bd164317e652311.js +0 -1
  637. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks/[...slug]-c87d46dc53e35638.js +0 -1
  638. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks-24785a5ed4eb340d.js +0 -1
  639. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/files-2c5fd116ecfacb33.js +0 -1
  640. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/settings-8c9285af31efa3fd.js +0 -1
  641. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/[user]-ec7e0419a64ae3b2.js +0 -1
  642. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/new-039e083cc068da54.js +0 -1
  643. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage-8e4d4f6edc515265.js +0 -1
  644. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/overview-b73185fdcb7a131c.js +0 -1
  645. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipeline-runs-97b3335bf60f8b07.js +0 -1
  646. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-83de126136539668.js +0 -1
  647. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-50f45e96892cfb63.js +0 -1
  648. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-5fe0f1de6fd365f8.js +0 -1
  649. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-306db9e11fa94d21.js +0 -1
  650. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/logs-ebea4be0562b08e3.js +0 -1
  651. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-f09d21d5c2661504.js +0 -1
  652. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-61e770f155ae22ef.js +0 -1
  653. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors-d347a4614130e2ab.js +0 -1
  654. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-056c5e5080a3754f.js +0 -1
  655. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs-208fa8de91f152bc.js +0 -1
  656. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-a32e02f46a816eb3.js +0 -1
  657. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/syncs-8012388b15f0e0a5.js +0 -1
  658. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-6714c72f90923cfb.js +0 -1
  659. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers-afc0525ef27fe1f2.js +0 -1
  660. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-a91e7d86cd0540d9.js +0 -1
  661. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/platform/global-hooks/[...slug]-7c8e5a8908fe9c83.js +0 -1
  662. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/platform/global-hooks-be0684d1527587d8.js +0 -1
  663. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/account/profile-147660a34351147c.js +0 -1
  664. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/platform/preferences-ec5f01b683920ced.js +0 -1
  665. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/platform/settings-28aa4512c0e23ec5.js +0 -1
  666. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/permissions-a2850b2e0a282d16.js +0 -1
  667. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-b1df80674dca4713.js +0 -1
  668. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/sync-data-41abcd2241958dc8.js +0 -1
  669. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/users-a2c5859f53b5e9e1.js +0 -1
  670. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/sign-in-1aea2a0c373bc6ae.js +0 -1
  671. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/templates/[...slug]-e7485742708215d2.js +0 -1
  672. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/templates-b4086d30a89d6801.js +0 -1
  673. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/terminal-3cd171f43f0a0df8.js +0 -1
  674. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/test-6a22493285c47ba2.js +0 -1
  675. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/triggers-ad20a31dde4fe59b.js +0 -1
  676. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/version-control-267952b4c87927c7.js +0 -1
  677. /mage_ai/server/frontend_dist/_next/static/{0XnQ0C0nTr1w0o9CGC7wQ → PPQxHOmWVJ0iQFzG2rc8m}/_ssgManifest.js +0 -0
  678. /mage_ai/server/frontend_dist_base_path_template/_next/static/{RC0Yenm06LvZI-RWFoT5C → do4WOsw7lNhouR0mtPTFi}/_ssgManifest.js +0 -0
  679. {mage_ai-0.9.58.dist-info → mage_ai-0.9.59.dist-info}/LICENSE +0 -0
  680. {mage_ai-0.9.58.dist-info → mage_ai-0.9.59.dist-info}/WHEEL +0 -0
  681. {mage_ai-0.9.58.dist-info → mage_ai-0.9.59.dist-info}/entry_points.txt +0 -0
  682. {mage_ai-0.9.58.dist-info → mage_ai-0.9.59.dist-info}/top_level.txt +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9269],{79899:function(e,n,t){t.d(n,{Z:function(){return p}});var o=t(82684),r=t(39867),i=t(89706),l=t(44425),u=t(32929),c=t(72473),d=t(71953),a=t(55283),s=t(53005),f=t(81728);function p(e){var n=e.allowEmptyFolders,t=e.children,p=e.disabled,v=e.file,h=e.filePath,m=e.isInPipelinesFolder,b=e.isFileDisabled,g=e.isNotFolder,j=e.level,y=e.name,C=e.theme,w=e.useRootFolder,k=e.uuid,O=(0,o.useMemo)((function(){return h||(w?(0,s.a9)(v):(0,s.jN)(v))}),[v,h,w,,]),x=(0,o.useMemo)((function(){return!!t&&!g}),[t,g]),P=(0,o.useMemo)((function(){var e,n,t;return null===k||void 0===k||null===(e=k.split)||void 0===e||null===(n=e.call(k,"/"))||void 0===n||null===(t=n.find)||void 0===t?void 0:t.call(n,(function(e){return(0,f.C5)(e)in l.GJ}))}),[k]),E=(0,o.useMemo)((function(){return P?(0,f.C5)(P):null}),[P]),Z=(0,o.useMemo)((function(){return x&&P&&P===y}),[P,x,y]),F=(0,o.useMemo)((function(){return P&&!x&&(0,s.y)(y)&&(0,s.o$)(y,E)}),[E,P,x,y]),D=(0,o.useMemo)((function(){return P?(0,a.qn)(E,{theme:C}).accent:null}),[E,P]),I=y===i.oy,S=(0,o.useMemo)((function(){return b?b(O,t):p||m&&"__init__.py"===y||P&&"__init__.py"===y}),[t,p,,O,P,b,m,y]),T=(0,o.useMemo)((function(){var e,t=c.iU;if(!x&&g)t=c.mH;else if(I)t=c.vd;else if(y===i.PF)t=c.GQ;else if(x)t=Z&&(null===u.iK||void 0===u.iK?void 0:u.iK[E])||c.Bu;else if(!y&&n)t=c.mH;else if(m&&!x&&"metadata.yaml"===y)t=c.B_;else if(null!==y&&void 0!==y&&y.includes(".log"))t=c.UL;else if(!x){var o=(0,s.mD)(y);o&&o in d.T&&(t=d.T[o],e=d.k[o])}return{Icon:t,iconColor:e}}),[n,E,Z,x,m,g,j,y]),_=T.Icon,N=T.iconColor;return{BlockIcon:(0,o.useMemo)((function(){var e=r.Z;return l.tf.CHART===E&&(e=c.GQ),e}),[E]),Icon:_,blockType:E,color:D,disabled:S,filePathToUse:O,folderNameForBlock:P,iconColor:N,isBlockFile:F,isFirstParentFolderForBlock:Z,isFolder:x,isPipelineFolder:I}}},71953:function(e,n,t){t.d(n,{T:function(){return c},k:function(){return d}});var o,r,i=t(82394),l=t(72473),u=t(89706),c=(o={},(0,i.Z)(o,u.Lu.CSV,l.iA),(0,i.Z)(o,u.Lu.JSON,l.EK),(0,i.Z)(o,u.Lu.MD,l.$B),(0,i.Z)(o,u.Lu.PY,l.Bf),(0,i.Z)(o,u.Lu.R,l.u$),(0,i.Z)(o,u.Lu.SH,l.oI),(0,i.Z)(o,u.Lu.SQL,l.vo),(0,i.Z)(o,u.Lu.TXT,l.KJ),(0,i.Z)(o,u.Lu.YAML,l.aV),(0,i.Z)(o,u.Lu.YML,l.aV),o),d=(r={},(0,i.Z)(r,u.Lu.CSV,"#C7CDDA"),(0,i.Z)(r,u.Lu.JSON,"#6B50D7"),(0,i.Z)(r,u.Lu.MD,"#9B6CA7"),(0,i.Z)(r,u.Lu.PY,"#FFE873"),(0,i.Z)(r,u.Lu.R,"#FF144D"),(0,i.Z)(r,u.Lu.SH,"#CBFE00"),(0,i.Z)(r,u.Lu.SQL,"#00758F"),(0,i.Z)(r,u.Lu.TXT,"#C7CDDA"),(0,i.Z)(r,u.Lu.YAML,"#95ECE2"),(0,i.Z)(r,u.Lu.YML,"#95ECE2"),r)},46978:function(e,n,t){t.d(n,{Cl:function(){return u},Nk:function(){return c},ZG:function(){return l}});var o=t(38626),r=t(44897),i=t(70515),l=1.5*i.iI,u=1*l+i.iI/2,c=o.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-uvd91-0"})([".row:hover{","}"],(function(e){return"\n background-color: ".concat((e.theme.interactive||r.Z.interactive).hoverBackground,";\n ")}))},29269:function(e,n,t){t.d(n,{Z:function(){return Pe}});var o=t(82394),r=t(75582),i=t(82684),l=t(38626),u=t(69864),c=t(44425),d=t(71180),a=t(50724),s=t(55485),f=t(70374),p=t(38276),v=t(30160),h=t(44897),m=t(42631),b=t(70515),g=l.default.div.withConfig({displayName:"indexstyle__FileHeaderMenuContainerStyle",componentId:"sc-1lru5j9-0"})(["height:100%;width:100%;position:relative;padding:","px;",""],b.iI/2,(function(e){return"\n border-bottom: ".concat(m.YF,"px ").concat(m.M8," ").concat((e.theme||h.Z).borders.medium,";\n ")})),j=t(72473),y=t(26419),C=t(28598);function w(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function k(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?w(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):w(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var O=function(e){var n=e.setShowHiddenFiles,t=e.showHiddenFiles,o=(0,i.useState)(null),r=o[0],l=o[1],u=(0,i.useRef)(null),c=(0,i.useMemo)((function(){return[{label:function(){return(0,C.jsxs)(s.ZP,{alignItems:"center",children:[t?(0,C.jsx)(j.Db,{success:!0}):(0,C.jsx)(j.YM,{muted:!0}),(0,C.jsx)(p.Z,{mr:1}),(0,C.jsx)(v.ZP,{noWrapping:!0,children:"Hidden files"})]})},onClick:function(){n((function(e){return!e}))},uuid:"Hidden files"}]}),[n,t]);return(0,C.jsx)(g,{children:(0,C.jsx)(a.Z,{onClickOutside:function(){return l(null)},open:!0,style:{width:"fit-content"},children:(0,C.jsx)(s.ZP,{alignItems:"center",fullHeight:!0,children:(0,C.jsxs)("div",{style:{position:"relative"},children:[(0,C.jsx)(d.ZP,k(k({},y.a),{},{noBackground:0!==r,onClick:function(){return l((function(e){return 0===e?null:0}))},onMouseEnter:function(){return l((function(e){return null!==e?0:null}))},ref:u,children:(0,C.jsx)(v.ZP,{default:!0,children:"View"})})),(0,C.jsx)(f.Z,{alternateBackground:!0,items:c,onClickCallback:function(){return l(null)},open:0===r,parentRef:u,uuid:"FileBrowser/FileHeaderMenu/view"})]})})})})},x=t(78050),P=t(89706),E=t(97618),Z=t(79899),F="CUSTOM_EVENT_NAME_FOLDER_EXPAND",D=t(46978),I=t(85385),S=t(53808),T=t(53005),_=t(86735);function N(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function R(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?N(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):N(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var L="default_repo",M=l.default.div.withConfig({displayName:"Folder__ChildrenStyle",componentId:"sc-1gsjts-0"})([".expanded_children{display:block;}.collapsed_children{display:none;}"]),A=l.default.div.withConfig({displayName:"Folder__ChevronStyle",componentId:"sc-1gsjts-1"})([".expanded{.down{display:block;position:relative;}.right{display:none;position:absolute;}}.collapsed{.down{display:none;position:absolute;}.right{display:block;position:relative;}}"]);function B(e){var n=e.children,t=e.idleTimeout,o=(0,i.useState)(!1),r=o[0],l=o[1];return(0,i.useEffect)((function(){r&&l(!1);var e=requestIdleCallback((function(){return l(!0)}),{timeout:t});return function(){return cancelIdleCallback(e)}}),[t]),r?n:null}var U=function e(n){var t=n.allowEmptyFolders,r=n.allowSelectingFolders,l=n.containerRef,u=n.disableContextMenu,c=n.file,d=n.isFileDisabled,a=n.isInPipelinesFolder,s=n.isNotFolder,f=n.level,p=n.onClickFile,h=n.onClickFolder,m=n.onSelectBlockFile,g=n.onlyShowChildren,y=n.openFile,w=n.openSidekickView,k=n.reloadCount,O=n.renderAfterContent,N=n.selectFile,U=n.setContextItem,Y=n.setCoordinates,H=n.setDraggingFile,G=n.setSelectedFile,V=n.theme,Q=n.timeout,K=n.useRootFolder,$=n.uuidCombined,z=n.uuidContainer,q=(0,i.useRef)(null),W=c.children,X=c.disabled,J=c.name,ee=c.parent,ne=(0,i.useMemo)((function(){return W?(0,_.YC)(W,(function(e){return e.children?0:1})):W}),[W]),te=(0,i.useMemo)((function(){return[].concat($||[]).concat(J||L)}),[J,$,,]),oe=(0,i.useMemo)((function(){return null===te||void 0===te?void 0:te.join("/")}),[te]),re=(0,S.U2)(S.lQ,{}),ie=(0,i.useRef)(null),le=(0,i.useRef)(null),ue=(0,i.useRef)(oe in re?re[oe]:0===f),ce=(0,i.useRef)(0),de=ue.current;J||t||(c.name=L);var ae=(0,Z.Z)({allowEmptyFolders:t,children:ne,disabled:X,file:c,isInPipelinesFolder:a,isFileDisabled:d,isNotFolder:s,level:f,name:J,theme:V,useRootFolder:K,uuid:oe}),se=ae.BlockIcon,fe=ae.Icon,pe=(ae.blockType,ae.color),ve=ae.disabled,he=ae.filePathToUse,me=ae.folderNameForBlock,be=ae.iconColor,ge=ae.isBlockFile,je=ae.isFirstParentFolderForBlock,ye=ae.isFolder,Ce=ae.isPipelineFolder,we=(0,i.useCallback)((function(n){return null===n||void 0===n?void 0:n.map((function(n){return(0,C.jsx)(e,{allowEmptyFolders:t,allowSelectingFolders:r,containerRef:l,disableContextMenu:u,file:R(R({},n),{},{parent:c}),isFileDisabled:d,isNotFolder:null===n||void 0===n?void 0:n.isNotFolder,isInPipelinesFolder:a||Ce,level:g?f:f+1,onClickFile:p,onClickFolder:h,onSelectBlockFile:m,openFile:y,openSidekickView:w,reloadCount:k,renderAfterContent:O,selectFile:N,setContextItem:U,setCoordinates:Y,setDraggingFile:H,setSelectedFile:G,theme:V,timeout:Q,useRootFolder:K,uuidCombined:te,uuidContainer:z},"".concat(oe,"/").concat((null===n||void 0===n?void 0:n.name)||L,"-").concat(k))}))}),[t,r,ne,u,c,d,a,Ce,f,p,h,m,g,y,w,k,O,N,U,Y,H,G,K,oe,te,z]),ke=(0,i.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(ue.current="undefined"===typeof e||null===e?!ue.current:e,ie.current.className=ue.current?"expanded_children":"collapsed_children",le.current.className=ue.current?"expanded":"collapsed",0===ce.current){var t;if(null===q||void 0===q||!q.current){var r=document.getElementById(ie.current.id);q.current=(0,x.createRoot)(r)}null===q||void 0===q||null===(t=q.current)||void 0===t||t.render((null===ne||void 0===ne?void 0:ne.length)>=1?(0,C.jsx)(B,{idleTimeout:n||1,children:we(ne)}):ye?we(Oe):(0,C.jsx)("div",{}))}(0,S.rQ)(S.lQ,(0,o.Z)({},oe,ue.current)),ce.current+=1}),[ne,ye,oe]);(0,i.useEffect)((function(){var e=function(e){var n=e.detail,t=n.expand,r=(n.file,n.folder);ye&&r&&null!==oe&&void 0!==oe&&oe.startsWith(null===r||void 0===r?void 0:r.uuid)&&((0,S.rQ)(S.lQ,(0,o.Z)({},oe,t)),ke(t,100*f))};return window.addEventListener(F,e),function(){window.removeEventListener(F,e)}}),[ye,f,ke,oe]);var Oe=(0,i.useMemo)((function(){return[{disabled:!0,name:"Empty",parent:c,isNotFolder:!0,uuid:te}]}),[c,te]),xe=(0,i.useMemo)((function(){var e=[];return(0,_.w6)(f).forEach((function(n,t){var o,r=D.Cl-1;e.push((0,C.jsx)("div",{style:{borderLeft:"1px solid ".concat(null===V||void 0===V||null===(o=V.content)||void 0===o?void 0:o.disabled),height:22,marginLeft:r/2-2,paddingLeft:r/2+2}},"line-".concat(oe,"-").concat(t)))})),e}),[f,V,oe]);return(0,i.useEffect)((function(){setTimeout((function(){var e;if(de&&0===(null===ce||void 0===ce?void 0:ce.current)&&null!==ie&&void 0!==ie&&null!==(e=ie.current)&&void 0!==e&&e.id){ce.current=1;try{var n;if(null===q||void 0===q||!q.current){var t,o=document.getElementById(null===ie||void 0===ie||null===(t=ie.current)||void 0===t?void 0:t.id);q.current=(0,x.createRoot)(o)}null===q||void 0===q||null===(n=q.current)||void 0===n||n.render((null===ne||void 0===ne?void 0:ne.length)>=1?(0,C.jsx)(B,{idleTimeout:100*f,children:we(ne)}):null!==ne&&void 0!==ne&&ne.length?null:ye?we(Oe):(0,C.jsx)("div",{}))}catch(r){console.log(r)}}}),1)}),[]),(0,C.jsxs)(C.Fragment,{children:[!g&&(0,C.jsxs)("div",{className:"row",onClick:function(e){if(e.preventDefault(),!ve){if((null===ee||void 0===ee?void 0:ee.name)===P.PF){null===w||void 0===w||w(I.cH.CHARTS);var n=(0,T.lr)(c);n&&(null===m||void 0===m||m(n.uuid,n.type,(0,T.jN)(c)))}var t=(0,T.V3)(c);if(ne)r?N(he):ke(),null===h||void 0===h||h(he);else if(p)p(he);else if(t)null===m||void 0===m||m(t.uuid,t.type,(0,T.jN)(c),{file:c,path:he});else if(J.match(P.xF))null===y||void 0===y||y(he);else{var o=(0,T.lr)(c);o&&(null===m||void 0===m||m(o.uuid,o.type,(0,T.jN)(c)))}}},onContextMenu:function(e){var n;clearTimeout(Q.current),null!==l&&void 0!==l&&null!==(n=l.current)&&void 0!==n&&n.contains(e.target)&&!u&&(e.preventDefault(),Y({x:e.pageX,y:e.pageY}),H(null),G(R(R({},c),{},{uuid:oe})))},onMouseDown:function(e){var n,t=c?(0,T.lr)(c,null,!0):null;null===l||void 0===l||null===(n=l.current)||void 0===n||!n.contains(e.target)||!t||(null===ne||void 0===ne?void 0:ne.length)>=1||u||ve||a||(e.preventDefault(),clearTimeout(Q.current),Q.current=setTimeout((function(){Y({x:e.pageX,y:e.pageY}),H(c),G(null)}),300))},style:{alignItems:"center",cursor:"default",display:"flex",minWidth:f*D.Cl+c.name.length*b.Fo+2*b.iI,paddingRight:b.iI/4},children:[(0,C.jsxs)(E.Z,{alignItems:"center",flex:1,children:[xe,(0,C.jsxs)(A,{children:[ne&&(0,C.jsxs)("div",{className:de?"expanded":"collapsed",ref:le,children:[(0,C.jsx)("div",{className:"down",children:(0,C.jsx)(j._M,{muted:!0,size:D.ZG})}),(0,C.jsx)("div",{className:"right",children:(0,C.jsx)(j._Q,{muted:!0,size:D.ZG})})]}),!ne&&(0,C.jsx)("div",{style:{width:D.ZG}})]}),(0,C.jsx)("div",{style:{marginLeft:b.iI/2,marginRight:b.iI/2},children:me&&!ye&&ge?(0,C.jsx)(se,{color:pe,size:me&&!ye?.7*D.ZG:D.ZG,square:!0}):(0,C.jsx)(fe,{fill:be||(je?pe:null),disabled:ve,size:D.ZG})}),(0,C.jsx)(v.ZP,{default:!ve,disabled:ve,monospace:!0,small:!0,children:J})]}),O&&O(c)]}),(0,C.jsx)(M,{children:(0,C.jsx)("div",{className:de?"expanded_children":"collapsed_children",id:"".concat(z,"-").concat(oe),ref:ie})})]})},Y=t(65186),H=t(93369),G=t(65956),V=t(17488),Q=t(35686),K=t(42122),$=t(72619);var z=function(e){var n=e.fetchFileTree,t=e.file,o=e.moveFile,l=e.onCancel,c=e.onCreateFile,a=e.selectedFolder,f=e.showError,v=(0,i.useRef)(null),h=(0,K.Qr)(t)?null:t,m=(0,i.useState)(h?(0,T.jN)(h,null,!0):""),g=m[0],j=m[1],y=(0,i.useState)(h?null===h||void 0===h?void 0:h.name:""),w=y[0],k=y[1];(0,i.useEffect)((function(){var e;null===v||void 0===v||null===(e=v.current)||void 0===e||e.focus()}),[]),(0,i.useEffect)((function(){a&&j((0,T.eV)(null===a||void 0===a?void 0:a.uuid))}),[a]);var O=(0,u.Db)(Q.ZP.files.useCreate(),{onSuccess:function(e){return(0,$.wD)(e,{callback:function(e){var t=e.file;null===n||void 0===n||n(),l(),null===c||void 0===c||c(t)},onErrorCallback:function(e,n){return f({errors:n,response:e})}})}}),x=(0,r.Z)(O,1)[0],P=(0,u.Db)(Q.ZP.files.useUpdate(h&&encodeURIComponent((0,T.jN)(h))),{onSuccess:function(e){return(0,$.wD)(e,{callback:function(){null===n||void 0===n||n(),l()},onErrorCallback:function(e,n){return f({errors:n,response:e})}})}}),E=(0,r.Z)(P,1)[0];return(0,C.jsxs)(G.Z,{footer:(0,C.jsxs)(s.ZP,{children:[(0,C.jsxs)(H.ZP,{bold:!0,disabled:!w,inline:!0,onClick:function(){return h?E({file:{dir_path:g,name:w},file_json_only:!0}):x({file:{dir_path:g,name:w,overwrite:!1},file_json_only:!0})},primary:!0,tabIndex:0,uuid:"NewFile/create_file",children:[h?o?"Move":"Rename":"Create"," file"]}),(0,C.jsx)(p.Z,{ml:1,children:(0,C.jsx)(d.ZP,{onClick:function(){return l()},tabIndex:0,children:"Cancel"})})]}),headerTitle:h?o?"Move file":"Rename file":"New file",minWidth:50*b.iI,children:[(0,C.jsx)(V.Z,{disabled:!!h&&!o,label:"Directory",monospace:!0,onChange:function(e){return j(e.target.value)},setContentOnMount:!0,value:g}),(0,C.jsx)(p.Z,{mt:2,children:(0,C.jsx)(V.Z,{disabled:!!o,label:"Filename",monospace:!0,onChange:function(e){return k(e.target.value)},ref:v,required:!0,value:w})})]})},q=t(82359);var W=function(e){var n=e.fetchFileTree,t=e.file,o=e.moveFile,l=e.onCancel,c=e.onCreateFile,a=e.projectType,f=e.selectedFolder,v=e.setErrors,h=e.showError,m=(0,i.useRef)(null),g=(0,K.Qr)(t)?null:t,j=(0,i.useState)(g?(0,T.jN)(g,null,!0):""),y=j[0],w=j[1],k=(0,i.useState)(g?null===g||void 0===g?void 0:g.name:""),O=k[0],x=k[1];(0,i.useEffect)((function(){var e;null===m||void 0===m||null===(e=m.current)||void 0===e||e.focus()}),[]),(0,i.useEffect)((function(){f&&w((0,T.eV)(null===f||void 0===f?void 0:f.uuid))}),[f]);var P=(0,u.Db)(Q.ZP.folders.useCreate(),{onSuccess:function(e){return(0,$.wD)(e,{callback:function(e){var t=e.file;null===n||void 0===n||n(),l(),null===c||void 0===c||c(t)},onErrorCallback:function(e,n){return v?v({errors:n,response:e}):h({errors:n,response:e})}})}}),E=(0,r.Z)(P,1)[0],Z=(0,u.Db)(Q.ZP.folders.useUpdate(g&&encodeURIComponent((0,T.jN)(g))),{onSuccess:function(e){return(0,$.wD)(e,{callback:function(){null===n||void 0===n||n(),l()},onErrorCallback:function(e,n){return v?v({errors:n,response:e}):h({errors:n,response:e})}})}}),F=(0,r.Z)(Z,1)[0],D=(0,u.Db)(Q.ZP.projects.useCreate(),{onSuccess:function(e){return(0,$.wD)(e,{callback:function(){null===n||void 0===n||n(),l()},onErrorCallback:function(e,n){return v?v({errors:n,response:e}):h({errors:n,response:e})}})}}),I=(0,r.Z)(D,2),S=I[0],_=I[1].isLoading;return(0,C.jsxs)(G.Z,{footer:(0,C.jsxs)(s.ZP,{children:[(0,C.jsxs)(H.ZP,{bold:!0,disabled:!O,inline:!0,loading:_,onClick:function(){return g?F({folder:{name:O,path:y}}):a?S({project:{repo_path:y,type:a,uuid:O}}):E({folder:{name:O,overwrite:!1,path:y}})},primary:!0,tabIndex:0,uuid:"NewFolder/create_folder",children:[a&&"Create project",!a&&(0,C.jsxs)(C.Fragment,{children:[g?o?"Move":"Rename":"Create"," folder"]})]}),(0,C.jsx)(p.Z,{ml:1,children:(0,C.jsx)(d.ZP,{onClick:function(){return l()},tabIndex:0,children:"Cancel"})})]}),headerTitle:g?o?"Move folder":"Rename folder":a?q.k.STANDALONE===a?"New Mage project":q.k.DBT===a?"New dbt project":"New project":"New folder",minWidth:50*b.iI,children:[(0,C.jsx)(V.Z,{disabled:!!g&&!o,label:a?"Project directory":"Directory",monospace:!0,onChange:function(e){return w(e.target.value)},setContentOnMount:!0,value:y}),(0,C.jsx)(p.Z,{mt:2,children:(0,C.jsx)(V.Z,{disabled:!!o,label:a?"Project name":"Folder name",monospace:!0,onChange:function(e){return x(e.target.value)},ref:m,required:!0,value:O})})]})},X=t(57653),J=t(89515),ee=t(17717),ne=t(77011);function te(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function oe(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?te(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):te(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var re=l.default.div.withConfig({displayName:"MultiFileInput__DropzoneStyle",componentId:"sc-1l6yd2y-0"})(["&:hover{cursor:pointer;}"]);var ie=function(e){var n=e.children,t=e.inputOnChange,o=e.inputProps,r=e.onDragActiveChange,l=e.setFiles,u=(0,i.useCallback)((function(e){l(e)}),[l]),c=(0,ne.uI)({onDrop:u}),d=c.getInputProps,a=c.getRootProps,s=c.isDragActive,f=d(),p=f.accept,v=f.autoComplete,h=f.multiple,m=f.onChange,b=f.onClick,g=f.ref,j=f.style,y=f.tabIndex,w=f.type,k=oe(oe({},o),{},{accept:p,autoComplete:v,multiple:h,onChange:function(e){null===t||void 0===t||t(e),null===o||void 0===o||o.onChange(e),m(e)},onClick:b,ref:g,style:j,tabIndex:y,type:w});return(0,i.useEffect)((function(){null===r||void 0===r||r(s)}),[s,r]),(0,C.jsxs)(re,oe(oe({},a()),{},{children:[(0,C.jsx)("input",oe(oe({},k),{},{directory:"",webkitdirectory:""})),n]}))};function le(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function ue(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?le(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):le(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ce=function(e){var n=e.children,t=e.directoryPath,l=e.onDragActiveChange,c=e.setFileUploadProgress,d=e.setUploadedFiles,a=(0,u.Db)(Q.ZP.files.useCreate({onUploadProgress:function(e,n){var t,r=n.body,i=[null===r||void 0===r?void 0:r.dir_path,null===r||void 0===r||null===(t=r.file)||void 0===t?void 0:t.name].filter((function(e){return(null===e||void 0===e?void 0:e.length)>=1})).join(ee.sep);null===c||void 0===c||c((function(n){return ue(ue({},n),{},(0,o.Z)({},i,e.loaded/e.total))}))}})),s=(0,r.Z)(a,1)[0],f=(0,i.useCallback)((function(e){e.forEach((function(e){var n=e.name,r=e.path,i=[t],l=r.split(ee.sep).filter((function(e){return e&&e!==n})).join(ee.sep);l&&i.push(l);var u=[],a=i.join(ee.sep);(null===a||void 0===a?void 0:a.length)>=1&&i.push(a),u.push(n);var f=u.join(ee.sep);s({dir_path:a,file:e,overwrite:!1}).then((function(e){var n=e.data,t=n.error,r=n.file;d((function(e){return ue(ue({},e),{},(0,o.Z)({},f,r||t))}))})),c((function(e){return ue(ue({},e),{},(0,o.Z)({},f,0))}))}))}),[s,t,c,d]);return(0,C.jsx)(ie,{onDragActiveChange:l,setFiles:f,children:n})},de=t(35185),ae=t(75499),se=(b.iI,l.default.div.withConfig({displayName:"indexstyle__DropZoneStyle",componentId:"sc-1g3zz7z-0"})(["border-radius:","px;padding:","px;max-width:","px;min-width:","px;",""],m.n_,8*b.iI,100*b.iI,55*b.iI,(function(e){return"\n border: 1px dashed ".concat((e.theme.borders||h.Z.borders).contrast,";\n ")}))),fe=l.default.div.withConfig({displayName:"indexstyle__TableStyle",componentId:"sc-1g3zz7z-1"})(["max-width:","px;min-width:","px;"],100*b.iI,55*b.iI);var pe=function(e){var n=e.fetchFileTree,t=e.onCancel,o=e.selectedFolder,l=(0,i.useState)(!1),u=l[0],c=l[1],a=(0,i.useState)({}),f=a[0],h=a[1],m=(0,i.useState)({}),b=m[0],g=m[1],j=!(0,K.Qr)(f),y=(0,i.useMemo)((function(){var e=[];return(0,_.YC)(Object.entries(f),(function(e){var n=(0,r.Z)(e,2),t=n[0];n[1];return t})).forEach((function(n){var t=(0,r.Z)(n,2),o=t[0],i=t[1],l=b[o],u=null===l||void 0===l?void 0:l.message;e.push([(0,C.jsxs)("div",{children:[(0,C.jsx)(v.ZP,{overflowWrap:!0,preWrap:!0,children:o}),u&&(0,C.jsx)(p.Z,{mt:1,children:(0,C.jsx)(v.ZP,{danger:!0,small:!0,children:u})})]},"name-".concat(o)),(0,C.jsx)(de.Z,{danger:!!u,progress:100*i},"progress-".concat(o))])})),(0,C.jsx)(ae.Z,{columnFlex:[1,4],columns:[{uuid:"Filename"},{uuid:"Upload progress"}],rows:e,uuid:"block-runs"})}),[f,b]);return(0,C.jsxs)(G.Z,{footer:(0,C.jsxs)(s.ZP,{fullWidth:!0,children:[(0,C.jsx)(d.ZP,{onClick:function(){return t()},children:"Close"}),j&&(0,C.jsx)(p.Z,{ml:1,children:(0,C.jsx)(d.ZP,{onClick:function(){h({}),g({})},children:"Clear files and retry"})})]}),headerTitle:"Upload files",children:[j&&(0,C.jsx)(fe,{children:y}),!j&&(0,C.jsx)(ce,{directoryPath:o?(0,T.jN)(o):"",onDragActiveChange:c,setFileUploadProgress:h,setUploadedFiles:function(e){g(e),null===n||void 0===n||n()},children:(0,C.jsx)(se,{children:(0,C.jsxs)(v.ZP,{center:!0,children:[u&&"Drop to upload",!u&&"Click or drop files and folders to upload"]})})})]})},ve=t(77417),he=t(19698),me=t(31353),be=t(80330),ge=t(85202),je=t(44952),ye=t(89538);function Ce(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function we(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Ce(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ce(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ke,Oe=20*b.iI;function xe(e,n){var t=e.addNewBlock,o=(e.blocks,e.deleteWidget),d=e.disableContextMenu,a=(e.fetchAutocompleteItems,e.fetchFiles),s=e.fetchPipeline,p=e.files,h=e.onClickFile,m=e.onClickFolder,g=e.onSelectBlockFile,y=e.openFile,w=(e.openSidekickView,e.pipeline),k=e.showError,x=e.setSelectedBlock,P=e.setShowHiddenFiles,E=e.showHiddenFiles,Z=e.showHiddenFilesSetting,I=e.uuid,S=(e.widgets,(0,i.useRef)(null)),N=((0,i.useRef)(null),(0,i.useContext)(l.ThemeContext)),R=(0,i.useState)(null),L=R[0],M=R[1],A=(0,i.useState)(null),B=A[0],H=A[1],G=(0,i.useState)(null),V=G[0],K=G[1],ee=(0,i.useState)(0),ne=ee[0],te=ee[1],oe=(0,i.useState)(null);oe[0],oe[1];(0,i.useEffect)((function(){te((function(e){return e+1}))}),[p]);var re=(0,i.useMemo)((function(){return V&&"undefined"!==typeof(null===V||void 0===V?void 0:V.children)&&V}),[V]),ie=(0,ve.Z)(),le=ie.featureEnabled,ue=ie.featureUUIDs,ce=ie.project,de=(0,he.Z)().status,ae=(0,u.Db)((function(e){return Q.ZP.downloads.files.useCreate(e)()}),{onSuccess:function(e){return(0,$.wD)(e,{callback:function(){var n=e.data.download.token;(0,je.K)(n)},onErrorCallback:function(e,n){return k({errors:n,response:e})}})}}),se=(0,r.Z)(ae,1)[0],fe=(0,u.Db)((function(e){return Q.ZP.files.useDelete(e)()}),{onSuccess:function(e){return(0,$.wD)(e,{callback:function(){null===a||void 0===a||a()},onErrorCallback:function(e,n){return k({errors:n,response:e})}})}}),Ce=(0,r.Z)(fe,1)[0],ke=(0,u.Db)((function(e){return Q.ZP.folders.useDelete(e)()}),{onSuccess:function(e){return(0,$.wD)(e,{callback:function(){null===a||void 0===a||a()},onErrorCallback:function(e,n){return k({errors:n,response:e})}})}}),xe=(0,r.Z)(ke,1)[0],Pe=(0,u.Db)((function(e){var n=e.block,t=(n.language,n.type,n.uuid),o=e.file,r=e.force,i=void 0!==r&&r;return Q.ZP.blocks.useDelete(encodeURIComponent(t),{file_path:o?encodeURIComponent((0,T.jN)(o)):null,force:i})()}),{onSuccess:function(e){return(0,$.wD)(e,{callback:function(){null===a||void 0===a||a()},onErrorCallback:function(e,n){var t=e.error,o=t.exception;if(!t.message.includes("raise HasDownstreamDependencies"))return k({errors:n,response:e});De({block:Le,file:V,exception:o})}})}}),Ee=(0,r.Z)(Pe,1)[0],Ze=(0,ye.dd)((function(e){var n=e.block,t=e.file;return(0,C.jsx)(J.Z,{centerOnScreen:!0,danger:!0,onCancel:Ie,onClick:function(){return Ee({block:n,file:t,force:!0}).then((function(){return Ie()}))},subtitle:"Deleting this block file is dangerous. This block may have dependencies in active pipelines. Press confirm to delete this block anyway and remove it as a dependency from downstream blocks.",title:"Delete ".concat(n.uuid," anyway?"),width:34*b.iI})})),Fe=(0,r.Z)(Ze,2),De=Fe[0],Ie=Fe[1],Se=(0,_.sE)(null===w||void 0===w?void 0:w.blocks,(function(e){var n=e.type;return c.tf.DATA_EXPORTER===n})),Te=(0,u.Db)(Q.ZP.blocks.pipelines.useUpdate(encodeURIComponent(null===w||void 0===w?void 0:w.uuid),encodeURIComponent(null===Se||void 0===Se?void 0:Se.uuid)),{onSuccess:function(e){return(0,$.wD)(e,{callback:function(){null===s||void 0===s||s()},onErrorCallback:function(e,n){return k({errors:n,response:e})}})}}),_e=(0,r.Z)(Te,1)[0],Ne=(0,i.useCallback)((function(){return K(null)}),[K]);(0,i.useEffect)((function(){var e,o,r,i=function(e){if(clearTimeout(S.current),H(null),B&&w&&t){var o,r,i=(null===n||void 0===n||null===(o=n.current)||void 0===o||null===(r=o.getBoundingClientRect)||void 0===r?void 0:r.call(o))||{},l=i.width,u=i.x;if(e.pageX>u+l){var c=(null===w||void 0===w?void 0:w.type)===X.qL.INTEGRATION,d=(0,be.TU)(we(we({},B),{},{path:(0,T.jN)(B)}),de.repo_path,w);null===t||void 0===t||t(we(we({},d),{},{require_unique_name:!1}),(function(e){c&&Se&&_e({block:we(we({},Se),{},{upstream_blocks:[e.uuid]})}),null===x||void 0===x||x(e)}),{disableFetchingFiles:!0})}}},l=function(e){B&&M({x:e.pageX,y:e.pageY})};return null===(e=document)||void 0===e||e.addEventListener("click",Ne),null===(o=document)||void 0===o||o.addEventListener("mousemove",l),null===(r=document)||void 0===r||r.addEventListener("mouseup",i),function(){var e,n,t;null===(e=document)||void 0===e||e.removeEventListener("click",Ne),null===(n=document)||void 0===n||n.removeEventListener("mousemove",l),null===(t=document)||void 0===t||t.removeEventListener("mouseup",i)}}),[t,Se,B,Ne,w,n,x,de,S,_e]);var Re=(0,i.useMemo)((function(){return null===p||void 0===p?void 0:p.map((function(e){return(0,C.jsx)(U,{containerRef:n,disableContextMenu:d,file:e,level:0,onClickFile:h,onClickFolder:m,onSelectBlockFile:g,openFile:y,reloadCount:ne,setCoordinates:M,setDraggingFile:H,setSelectedFile:K,theme:N,timeout:S,uuidContainer:I},"".concat(e.name,"-").concat(ne))}))}),[d,p,h,m,y,g,ne,I]),Le=(0,i.useMemo)((function(){return V&&(0,T.lr)(V)}),[V]),Me=(0,i.useMemo)((function(){return B&&(0,T.lr)(B)}),[B]),Ae=(0,ye.dd)((function(){return(0,C.jsx)(pe,{fetchFileTree:a,onCancel:Ye,selectedFolder:re})}),{},[a,re],{background:!0,uuid:"upload_files"}),Be=(0,r.Z)(Ae,2),Ue=Be[0],Ye=Be[1],He=(0,ye.dd)((function(e){return(0,C.jsx)(z,{fetchFileTree:a,file:null===e||void 0===e?void 0:e.file,moveFile:null===e||void 0===e?void 0:e.moveFile,onCancel:Qe,selectedFolder:re,showError:k})}),{},[a,re,k],{background:!0,disableClickOutside:!0,uuid:"new_file"}),Ge=(0,r.Z)(He,2),Ve=Ge[0],Qe=Ge[1],Ke=(0,ye.dd)((function(e){return(0,C.jsx)(W,{fetchFileTree:a,file:null===e||void 0===e?void 0:e.file,moveFile:null===e||void 0===e?void 0:e.moveFile,onCancel:qe,projectType:null===e||void 0===e?void 0:e.projectType,selectedFolder:re,showError:k})}),{},[a,re,k,k],{background:!0,disableClickOutside:!0,uuid:"new_folder"}),$e=(0,r.Z)(Ke,2),ze=$e[0],qe=$e[1],We=(0,i.useMemo)((function(){var e;if(!Le&&!V&&!re)return(0,C.jsx)("div",{});var t=(null===n||void 0===n||null===(e=n.current)||void 0===e?void 0:e.getBoundingClientRect())||{},r=t.x,i=t.width,l=L||{},u=l.x,d=void 0===u?0:u,a=l.y,s=void 0===a?0:a,p=d+b.iI;d+Oe>=r+i&&(p=r+i-(Oe+b.iI)),p<0&&(p=0);var v=[];re?(v.push.apply(v,[{label:function(){return"New folder"},onClick:function(){ze()},uuid:"new_folder"},{label:function(){return"Rename folder"},onClick:function(){ze({file:re})},uuid:"rename_folder"},{label:function(){return"Move folder"},onClick:function(){ze({file:re,moveFile:!0})},uuid:"Move_folder"},{label:function(){return"Delete folder"},onClick:function(){var e=(0,T.jN)(re);window.confirm("Are you sure you want to delete folder ".concat(e," and all its subfolders and files?"))&&xe(encodeURIComponent(e))},uuid:"Delete_folder"},{label:function(){return"New file"},onClick:function(){Ve({file:{}})},uuid:"new_file"},{label:function(){return"Upload files"},onClick:function(){Ue()},uuid:"upload_files"},{label:function(){return"Expand all subfolders"},onClick:function(){var e=new CustomEvent(F,{detail:{expand:!0,file:V,folder:re}});window.dispatchEvent(e)},uuid:"Expand all subfolders"},{label:function(){return"Collapse all subfolders"},onClick:function(){var e=new CustomEvent(F,{detail:{expand:!1,file:V,folder:re}});window.dispatchEvent(e)},uuid:"Collapse all subfolders"}]),null!==le&&void 0!==le&&le(null===ue||void 0===ue?void 0:ue.PROJECT_PLATFORM)&&v.push({beforeIcon:(0,C.jsx)(Y.Z,{width:1.5*b.iI}),onClick:function(){ze({projectType:q.k.STANDALONE})},uuid:"New Mage project"}),null!==le&&void 0!==le&&le(null===ue||void 0===ue?void 0:ue.DBT_V2)&&v.push({beforeIcon:(0,C.jsx)(j.xE,{}),onClick:function(){ze({projectType:q.k.DBT})},uuid:"New dbt project"})):V&&(v.push.apply(v,[{label:function(){return"Rename file"},onClick:function(){Ve({file:V})},uuid:"rename_file"},{label:function(){return"Move file"},onClick:function(){Ve({file:V,moveFile:!0})},uuid:"move_file"},{label:function(){return"Download file"},onClick:function(){var e=(0,T.jN)(V);se(encodeURIComponent(e))},uuid:"download_file"}]),Le?v.push({label:function(){return"Delete file"},onClick:function(){Le.type===c.tf.CHART?window.confirm("Are you sure you want to delete widget ".concat(Le.uuid,"?"))&&o(Le):window.confirm("Are you sure you want to delete block ".concat(Le.uuid,"?"))&&Ee({block:Le,file:V})},uuid:"delete_block_file"}):v.push({label:function(){return"Delete file"},onClick:function(){var e=(0,T.jN)(V);window.confirm("Are you sure you want to delete file ".concat(e,"?"))&&Ce(encodeURIComponent(e))},uuid:"delete_file"}));var h=s+b.iI/2,m=36*v.length;return s+m>=window.innerHeight&&(h=s-m),(0,ge.createPortal)((0,C.jsx)("div",{style:{left:p,position:"fixed",top:h,zIndex:me.bf+100},children:(0,C.jsx)(f.Z,{items:v,open:!0,parentRef:void 0,uuid:"FileBrowser/ContextMenu",width:Oe})}),document.body)}),[L,Ee,Ce,xe,o,se,le,ue,ce,n,Ue,Ve,ze,Le,V,re]);return(0,C.jsxs)(D.Nk,{ref:n,children:[Z&&P&&"undefined"!==typeof E&&(0,C.jsx)(O,{setShowHiddenFiles:P,showHiddenFiles:E}),Re,(Le||V||re)&&We,Me&&(0,C.jsx)("div",{style:{left:(null===L||void 0===L?void 0:L.x)-b.iI,position:"fixed",top:(null===L||void 0===L?void 0:L.y)-b.iI,zIndex:me.bf+100},children:(0,C.jsx)(v.ZP,{cursor:"grabbing",monospace:!0,children:null===Me||void 0===Me?void 0:Me.uuid})})]})}!function(e){e.BLOCK_FILE="block_file",e.DISABLED="disabled",e.FILE="file",e.FOLDER="folder",e.PIPELINE="pipeline"}(ke||(ke={}));var Pe=i.forwardRef(xe)},53005:function(e,n,t){t.d(n,{IO:function(){return m},V3:function(){return h},a9:function(){return c},eV:function(){return d},jN:function(){return a},lr:function(){return v},mD:function(){return s},o$:function(){return p},u$:function(){return b},y:function(){return f}});var o=t(17717),r=t(44425),i=t(89706),l=t(81728),u=t(80330);function c(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=n||(t?null:null===e||void 0===e?void 0:e.name);if(null!==e&&void 0!==e&&e.parent){var i=[e.parent.name];return(null===r||void 0===r?void 0:r.length)>=1&&i.push(r),c(e.parent,i.join(o.sep))}return r}function d(e){return null===e||void 0===e?void 0:e.split(o.sep).slice(1).join(o.sep)}function a(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=c(e,n,t);return d(o)}function s(e){var n=null===e||void 0===e?void 0:e.match(i.d2);return(null===n||void 0===n?void 0:n.length)>=1?n[0].replace(".",""):null}function f(e){var n=["\\.".concat(i.Lu.PY),"\\.".concat(i.Lu.R),"\\.".concat(i.Lu.SQL),"\\.".concat(i.Lu.YAML),"\\.".concat(i.Lu.YML)].join("|"),t=new RegExp("".concat(n,"$")),o=e.match(t);return(null===o||void 0===o?void 0:o.length)>=1?o[0].replace(".",""):null}function p(e,n){var t=f(e);return!["__init__.py"].includes(e)&&(r.tf.DBT!==n||![i.Lu.YAML,i.Lu.YML].includes(t))}function v(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],l=c(e,n).split(o.sep);if(!l)return null;var d=(0,u.ck)(l);if(!l)return null;var a="";a=l.length>=3?l.slice(2,l.length).join(o.sep):l[l.length-1];var s=t?r.Q3:r.$W;if(s.concat(r.tf.DBT).includes(d)&&f(a)){var p=a.lastIndexOf("."),v=a.slice(p+1);return{language:i.nB[v],type:d,uuid:a.slice(0,p)}}}function h(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=c(e,n).split(o.sep);if(t[1]){var u=(0,l.C5)(t[n?0:1]);t[1]===r.tf.DBT&&(u=r.tf.DBT);var d=t[t.length-1],a=new RegExp(".".concat(i.Lu.YAML,"$")),s=new RegExp(".".concat(i.Lu.R,"$")),f=new RegExp(".".concat(i.Lu.SQL,"$")),p=new RegExp(".".concat(i.Lu.MD,"$"));if(d.match(a)&&r.VZ.includes(u))return{type:u,uuid:d.replace(a,"")};if(d.match(s)&&r.J8.includes(u))return{type:u,uuid:d.replace(s,"")};if(d.match(f)&&r.HX.includes(u)){var v=d.replace(/[.]/g,"_"),h=u===r.tf.DBT?t.slice(2,-1).join("_").concat("_".concat(v)):d.replace(f,"");return{type:u,uuid:h}}return d.match(p)&&u===r.tf.MARKDOWN?{type:u,uuid:d.replace(p,"")}:void 0}}function m(e,n){var t=e.split("."),r=t[t.length-1];i.n6.includes(r)&&t.pop();var l=t.join("").split(o.sep),u=l.slice(1,l.length).join("");return n.find((function(e){return e.uuid===u}))}function b(e){var n=e||{},t=n.language,o=n.name,u=n.type;if(o&&t&&u){var c=u===r.tf.CUSTOM?u:"".concat(u,"s"),d=i.JD[t],a=(0,l.kE)(o);return"".concat(c,"/").concat(a,".").concat(d)}}},80330:function(e,n,t){t.d(n,{TU:function(){return v},lU:function(){return p},ck:function(){return f}});var o=t(21831),r=t(17717),i=t(44425),l=t(57653),u=t(89706),c=t(86735);function d(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=n||(t?null:null===e||void 0===e?void 0:e.name);if(null!==e&&void 0!==e&&e.parent){var i=[e.parent.name];return(null===o||void 0===o?void 0:o.length)>=1&&i.push(o),d(e.parent,i.join(r.sep))}return null!==e&&void 0!==e&&e.path?null===e||void 0===e?void 0:e.path:o}var a=t(81728),s=t(42122),f=function(e){var n;if(null===e||void 0===e||e.forEach((function(e){if((null===e||void 0===e?void 0:e.length)>=1){var t=null===e||void 0===e?void 0:e.toLowerCase();(t in i.qC||(t=(0,a.C5)(t))in i.GJ)&&(n=t)}})),!n){var t=["\\.".concat(u.Lu.SQL),"\\.".concat(u.Lu.YAML),"\\.".concat(u.Lu.YML)].join("|"),o=new RegExp("".concat(t,"$"));if(e.join(r.sep).match(o))return i.tf.DBT}return n};function p(){return new RegExp(Object.keys(u.nB).map((function(e){return".(".concat(e,")$")})).join("|"))}function v(e,n,t){var v,h,m=null===e||void 0===e||null===(v=e.path.match(p())[0])||void 0===v?void 0:v.split(".")[1],b=t.type===l.qL.INTEGRATION,g=(0,c.sE)(null===t||void 0===t?void 0:t.blocks,(function(e){var n=e.type;return i.tf.DATA_EXPORTER===n})),j=e.path.replace(n,"").split(r.sep),y=f(e.path.split(r.sep)),C=i.tf.DBT===y,w=(h=j)[0]===i.tf.DBT?h.slice(1).join(r.sep):function(e){return e.at(-1)}(h).split(".")[0];if(j.length>=3&&!C){var k=j.slice(1,j.length-1).join(r.sep);w="".concat(k,"/").concat(w)}var O=u.nB[m],x={configuration:(0,s.hB)({file_path:C&&i.t6.SQL===O?w:null,file_source:{path:d(e)}}),language:O,name:(0,a.wE)(w),type:y};if(y===i.tf.CUSTOM&&(x.color=i.Lq.TEAL),b){var P=(0,c.sE)(t.blocks,(function(e){var n=e.type;return i.tf.DATA_LOADER===n})),E=(0,c.sE)(t.blocks,(function(e){var n=e.type;return i.tf.TRANSFORMER===n})),Z=[];E?Z.push(E.uuid):null!==g&&void 0!==g&&g.upstream_blocks?Z.push.apply(Z,(0,o.Z)(g.upstream_blocks)):P&&Z.push(P.uuid),x.upstream_blocks=Z}return x}},72098:function(e,n,t){var o;t.d(n,{U:function(){return o}}),function(e){e.PYSPARK="pysparkkernel",e.PYTHON3="python3"}(o||(o={}))},57653:function(e,n,t){t.d(n,{$1:function(){return h},G7:function(){return g},LM:function(){return j},Mj:function(){return y},QK:function(){return v},RH:function(){return b},a_:function(){return w},fj:function(){return k},kA:function(){return C},qL:function(){return u},r0:function(){return m}});var o,r,i,l,u,c=t(75582),d=t(82394),a=t(72473),s=t(72098);function f(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function p(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?f(Object(t),!0).forEach((function(n){(0,d.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}!function(e){e.INTEGRATION="integration",e.PYTHON="python",e.PYSPARK="pyspark",e.STREAMING="streaming"}(u||(u={}));var v,h,m,b=(o={},(0,d.Z)(o,u.INTEGRATION,"Integration"),(0,d.Z)(o,u.PYTHON,"Python"),(0,d.Z)(o,u.PYSPARK,"PySpark"),(0,d.Z)(o,u.STREAMING,"Streaming"),o),g=(r={},(0,d.Z)(r,u.INTEGRATION,"Integration"),(0,d.Z)(r,u.PYTHON,"Standard"),(0,d.Z)(r,u.PYSPARK,"PySpark"),(0,d.Z)(r,u.STREAMING,"Streaming"),r),j="all",y=(u.PYTHON,u.INTEGRATION,u.STREAMING,i={},(0,d.Z)(i,j,a.ie),(0,d.Z)(i,u.INTEGRATION,a.YC),(0,d.Z)(i,u.PYTHON,a.El),(0,d.Z)(i,u.STREAMING,a.dB),i);!function(e){e.ACTIVE="active",e.INACTIVE="inactive",e.NO_SCHEDULES="no_schedules",e.RETRY="retry",e.RETRY_INCOMPLETE_BLOCK_RUNS="retry_incomplete_block_runs"}(v||(v={})),function(e){e.GROUP="group_by",e.HISTORY_DAYS="from_history_days",e.NO_TAGS="no_tags",e.SEARCH="search",e.STATUS="status[]",e.TAG="tag[]",e.TYPE="type[]"}(h||(h={})),function(e){e.STATUS="status",e.TAG="tag",e.TYPE="type"}(m||(m={}));var C=[v.ACTIVE,v.INACTIVE,v.NO_SCHEDULES],w=(l={},(0,d.Z)(l,u.PYTHON,s.U.PYTHON3),(0,d.Z)(l,u.PYSPARK,s.U.PYSPARK),l),k=Object.entries(w).reduce((function(e,n){var t=(0,c.Z)(n,2),o=t[0],r=t[1];return p(p({},e),{},(0,d.Z)({},r,o))}),{})},44952:function(e,n,t){t.d(n,{K:function(){return r}});var o=t(4383);function r(e){var n=(0,o.ZP)("downloads",e),t=document.createElement("a");t.href=n,document.body.appendChild(t),t.click(),window.URL.revokeObjectURL(n),document.body.removeChild(t)}}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9302],{90659:function(t,e,n){"use strict";var r=n(67403),o={"text/plain":"Text","text/html":"Url",default:"Text"};t.exports=function(t,e){var n,i,a,s,c,u,p=!1;e||(e={}),n=e.debug||!1;try{if(a=r(),s=document.createRange(),c=document.getSelection(),(u=document.createElement("span")).textContent=t,u.ariaHidden="true",u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",(function(r){if(r.stopPropagation(),e.format)if(r.preventDefault(),"undefined"===typeof r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=o[e.format]||o.default;window.clipboardData.setData(i,t)}else r.clipboardData.clearData(),r.clipboardData.setData(e.format,t);e.onCopy&&(r.preventDefault(),e.onCopy(r.clipboardData))})),document.body.appendChild(u),s.selectNodeContents(u),c.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");p=!0}catch(f){n&&console.error("unable to copy using execCommand: ",f),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),e.onCopy&&e.onCopy(window.clipboardData),p=!0}catch(f){n&&console.error("unable to copy using clipboardData: ",f),n&&console.error("falling back to prompt"),i=function(t){var e=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return t.replace(/#{\s*key\s*}/g,e)}("message"in e?e.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,t)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(s):c.removeAllRanges()),u&&document.body.removeChild(u),a()}return p}},20026:function(t){var e;globalThis,e=()=>(()=>{"use strict";var t={794:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CronParser=void 0;var r=n(586),o=function(){function t(t,e,n){void 0===e&&(e=!0),void 0===n&&(n=!1),this.expression=t,this.dayOfWeekStartIndexZero=e,this.monthStartIndexZero=n}return t.prototype.parse=function(){var t=this.extractParts(this.expression);return this.normalize(t),this.validate(t),t},t.prototype.extractParts=function(t){if(!this.expression)throw new Error("Expression is empty");var e=t.trim().split(/[ ]+/);if(e.length<5)throw new Error("Expression has only ".concat(e.length," part").concat(1==e.length?"":"s",". At least 5 parts are required."));if(5==e.length)e.unshift(""),e.push("");else if(6==e.length)/\d{4}$/.test(e[5])||"?"==e[4]||"?"==e[2]?e.unshift(""):e.push("");else if(e.length>7)throw new Error("Expression has ".concat(e.length," parts; too many!"));return e},t.prototype.normalize=function(t){var e=this;if(t[3]=t[3].replace("?","*"),t[5]=t[5].replace("?","*"),t[2]=t[2].replace("?","*"),0==t[0].indexOf("0/")&&(t[0]=t[0].replace("0/","*/")),0==t[1].indexOf("0/")&&(t[1]=t[1].replace("0/","*/")),0==t[2].indexOf("0/")&&(t[2]=t[2].replace("0/","*/")),0==t[3].indexOf("1/")&&(t[3]=t[3].replace("1/","*/")),0==t[4].indexOf("1/")&&(t[4]=t[4].replace("1/","*/")),0==t[6].indexOf("1/")&&(t[6]=t[6].replace("1/","*/")),t[5]=t[5].replace(/(^\d)|([^#/\s]\d)/g,(function(t){var n=t.replace(/\D/,""),r=n;return e.dayOfWeekStartIndexZero?"7"==n&&(r="0"):r=(parseInt(n)-1).toString(),t.replace(n,r)})),"L"==t[5]&&(t[5]="6"),"?"==t[3]&&(t[3]="*"),t[3].indexOf("W")>-1&&(t[3].indexOf(",")>-1||t[3].indexOf("-")>-1))throw new Error("The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.");var n={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var r in n)t[5]=t[5].replace(new RegExp(r,"gi"),n[r].toString());t[4]=t[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,(function(t){var n=t.replace(/\D/,""),r=n;return e.monthStartIndexZero&&(r=(parseInt(n)+1).toString()),t.replace(n,r)}));var o={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12};for(var i in o)t[4]=t[4].replace(new RegExp(i,"gi"),o[i].toString());"0"==t[0]&&(t[0]=""),/\*|\-|\,|\//.test(t[2])||!/\*|\//.test(t[1])&&!/\*|\//.test(t[0])||(t[2]+="-".concat(t[2]));for(var a=0;a<t.length;a++)if(-1!=t[a].indexOf(",")&&(t[a]=t[a].split(",").filter((function(t){return""!==t})).join(",")||"*"),"*/1"==t[a]&&(t[a]="*"),t[a].indexOf("/")>-1&&!/^\*|\-|\,/.test(t[a])){var s=null;switch(a){case 4:s="12";break;case 5:s="6";break;case 6:s="9999";break;default:s=null}if(null!==s){var c=t[a].split("/");t[a]="".concat(c[0],"-").concat(s,"/").concat(c[1])}}},t.prototype.validate=function(t){this.assertNoInvalidCharacters("DOW",t[5]),this.assertNoInvalidCharacters("DOM",t[3]),this.validateRange(t)},t.prototype.validateRange=function(t){r.default.secondRange(t[0]),r.default.minuteRange(t[1]),r.default.hourRange(t[2]),r.default.dayOfMonthRange(t[3]),r.default.monthRange(t[4],this.monthStartIndexZero),r.default.dayOfWeekRange(t[5],this.dayOfWeekStartIndexZero)},t.prototype.assertNoInvalidCharacters=function(t,e){var n=e.match(/[A-KM-VX-Z]+/gi);if(n&&n.length)throw new Error("".concat(t," part contains invalid values: '").concat(n.toString(),"'"))},t}();e.CronParser=o},728:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ExpressionDescriptor=void 0;var r=n(910),o=n(794),i=function(){function t(e,n){if(this.expression=e,this.options=n,this.expressionParts=new Array(5),!this.options.locale&&t.defaultLocale&&(this.options.locale=t.defaultLocale),!t.locales[this.options.locale]){var r=Object.keys(t.locales)[0];console.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(r,"'.")),this.options.locale=r}this.i18n=t.locales[this.options.locale],void 0===n.use24HourTimeFormat&&(n.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return t.toString=function(e,n){var r=void 0===n?{}:n,o=r.throwExceptionOnParseError,i=void 0===o||o,a=r.verbose,s=void 0!==a&&a,c=r.dayOfWeekStartIndexZero,u=void 0===c||c,p=r.monthStartIndexZero,f=void 0!==p&&p,l=r.use24HourTimeFormat,h=r.locale,y=void 0===h?null:h,d=r.tzOffset;return new t(e,{throwExceptionOnParseError:i,verbose:s,dayOfWeekStartIndexZero:u,monthStartIndexZero:f,use24HourTimeFormat:l,locale:y,tzOffset:void 0===d?0:d}).getFullDescription()},t.initialize=function(e,n){void 0===n&&(n="en"),t.specialCharacters=["/","-",",","*"],t.defaultLocale=n,e.load(t.locales)},t.prototype.getFullDescription=function(){var t="";try{var e=new o.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);this.expressionParts=e.parse();var n=this.getTimeOfDayDescription(),r=this.getDayOfMonthDescription(),i=this.getMonthDescription();t+=n+r+this.getDayOfWeekDescription()+i+this.getYearDescription(),t=(t=this.transformVerbosity(t,!!this.options.verbose)).charAt(0).toLocaleUpperCase()+t.substr(1)}catch(a){if(this.options.throwExceptionOnParseError)throw"".concat(a);t=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD()}return t},t.prototype.getTimeOfDayDescription=function(){var e=this.expressionParts[0],n=this.expressionParts[1],o=this.expressionParts[2],i="";if(r.StringUtilities.containsAny(n,t.specialCharacters)||r.StringUtilities.containsAny(o,t.specialCharacters)||r.StringUtilities.containsAny(e,t.specialCharacters))if(e||!(n.indexOf("-")>-1)||n.indexOf(",")>-1||n.indexOf("/")>-1||r.StringUtilities.containsAny(o,t.specialCharacters))if(!e&&o.indexOf(",")>-1&&-1==o.indexOf("-")&&-1==o.indexOf("/")&&!r.StringUtilities.containsAny(n,t.specialCharacters)){var a=o.split(",");i+=this.i18n.at();for(var s=0;s<a.length;s++)i+=" ",i+=this.formatTime(a[s],n,""),s<a.length-2&&(i+=","),s==a.length-2&&(i+=this.i18n.spaceAnd())}else{var c=this.getSecondsDescription(),u=this.getMinutesDescription(),p=this.getHoursDescription();if((i+=c)&&u&&(i+=", "),i+=u,u===p)return i;i&&p&&(i+=", "),i+=p}else{var f=n.split("-");i+=r.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(o,f[0],""),this.formatTime(o,f[1],""))}else i+=this.i18n.atSpace()+this.formatTime(o,n,e);return i},t.prototype.getSecondsDescription=function(){var t=this;return this.getSegmentDescription(this.expressionParts[0],this.i18n.everySecond(),(function(t){return t}),(function(e){return r.StringUtilities.format(t.i18n.everyX0Seconds(e),e)}),(function(e){return t.i18n.secondsX0ThroughX1PastTheMinute()}),(function(e){return"0"==e?"":parseInt(e)<20?t.i18n.atX0SecondsPastTheMinute(e):t.i18n.atX0SecondsPastTheMinuteGt20()||t.i18n.atX0SecondsPastTheMinute(e)}))},t.prototype.getMinutesDescription=function(){var t=this,e=this.expressionParts[0],n=this.expressionParts[2];return this.getSegmentDescription(this.expressionParts[1],this.i18n.everyMinute(),(function(t){return t}),(function(e){return r.StringUtilities.format(t.i18n.everyX0Minutes(e),e)}),(function(e){return t.i18n.minutesX0ThroughX1PastTheHour()}),(function(r){try{return"0"==r&&-1==n.indexOf("/")&&""==e?t.i18n.everyHour():parseInt(r)<20?t.i18n.atX0MinutesPastTheHour(r):t.i18n.atX0MinutesPastTheHourGt20()||t.i18n.atX0MinutesPastTheHour(r)}catch(o){return t.i18n.atX0MinutesPastTheHour(r)}}))},t.prototype.getHoursDescription=function(){var t=this,e=this.expressionParts[2],n=this.getSegmentDescription(e,this.i18n.everyHour(),(function(e){return t.formatTime(e,"0","")}),(function(e){return r.StringUtilities.format(t.i18n.everyX0Hours(e),e)}),(function(e){return t.i18n.betweenX0AndX1()}),(function(e){return t.i18n.atX0()}));if(n&&e.includes("-")&&"0"!=this.expressionParts[1]){var o=Array.from(n.matchAll(/:00/g));if(o.length>1){var i=o[o.length-1].index;n=n.substring(0,i)+":59"+n.substring(i+3)}}return n},t.prototype.getDayOfWeekDescription=function(){var t=this,e=this.i18n.daysOfTheWeek();return"*"==this.expressionParts[5]?"":this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),(function(n,r){var o=n;n.indexOf("#")>-1?o=n.substring(0,n.indexOf("#")):n.indexOf("L")>-1&&(o=o.replace("L",""));var i=t.i18n.daysOfTheWeekInCase?t.i18n.daysOfTheWeekInCase(r)[parseInt(o)]:e[parseInt(o)];if(n.indexOf("#")>-1){var a=null,s=n.substring(n.indexOf("#")+1),c=n.substring(0,n.indexOf("#"));switch(s){case"1":a=t.i18n.first(c);break;case"2":a=t.i18n.second(c);break;case"3":a=t.i18n.third(c);break;case"4":a=t.i18n.fourth(c);break;case"5":a=t.i18n.fifth(c)}i=a+" "+i}return i}),(function(e){return 1==parseInt(e)?"":r.StringUtilities.format(t.i18n.commaEveryX0DaysOfTheWeek(e),e)}),(function(e){var n=e.substring(0,e.indexOf("-"));return"*"!=t.expressionParts[3]?t.i18n.commaAndX0ThroughX1(n):t.i18n.commaX0ThroughX1(n)}),(function(e){var n=null;if(e.indexOf("#")>-1){var r=e.substring(e.indexOf("#")+1);n=t.i18n.commaOnThe(r).trim()+t.i18n.spaceX0OfTheMonth()}else n=e.indexOf("L")>-1?t.i18n.commaOnTheLastX0OfTheMonth(e.replace("L","")):"*"!=t.expressionParts[3]?t.i18n.commaAndOnX0():t.i18n.commaOnlyOnX0(e);return n}))},t.prototype.getMonthDescription=function(){var t=this,e=this.i18n.monthsOfTheYear();return this.getSegmentDescription(this.expressionParts[4],"",(function(n,r){return r&&t.i18n.monthsOfTheYearInCase?t.i18n.monthsOfTheYearInCase(r)[parseInt(n)-1]:e[parseInt(n)-1]}),(function(e){return 1==parseInt(e)?"":r.StringUtilities.format(t.i18n.commaEveryX0Months(e),e)}),(function(e){return t.i18n.commaMonthX0ThroughMonthX1()||t.i18n.commaX0ThroughX1()}),(function(e){return t.i18n.commaOnlyInMonthX0?t.i18n.commaOnlyInMonthX0():t.i18n.commaOnlyInX0()}))},t.prototype.getDayOfMonthDescription=function(){var t=this,e=null,n=this.expressionParts[3];switch(n){case"L":e=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":e=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var o=n.match(/(\d{1,2}W)|(W\d{1,2})/);if(o){var i=parseInt(o[0].replace("W","")),a=1==i?this.i18n.firstWeekday():r.StringUtilities.format(this.i18n.weekdayNearestDayX0(),i.toString());e=r.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),a);break}var s=n.match(/L-(\d{1,2})/);if(s){var c=s[1];e=r.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(c),c);break}if("*"==n&&"*"!=this.expressionParts[5])return"";e=this.getSegmentDescription(n,this.i18n.commaEveryDay(),(function(e){return"L"==e?t.i18n.lastDay():t.i18n.dayX0?r.StringUtilities.format(t.i18n.dayX0(),e):e}),(function(e){return"1"==e?t.i18n.commaEveryDay():t.i18n.commaEveryX0Days(e)}),(function(e){return t.i18n.commaBetweenDayX0AndX1OfTheMonth(e)}),(function(e){return t.i18n.commaOnDayX0OfTheMonth(e)}))}return e},t.prototype.getYearDescription=function(){var t=this;return this.getSegmentDescription(this.expressionParts[6],"",(function(t){return/^\d+$/.test(t)?new Date(parseInt(t),1).getFullYear().toString():t}),(function(e){return r.StringUtilities.format(t.i18n.commaEveryX0Years(e),e)}),(function(e){return t.i18n.commaYearX0ThroughYearX1()||t.i18n.commaX0ThroughX1()}),(function(e){return t.i18n.commaOnlyInYearX0?t.i18n.commaOnlyInYearX0():t.i18n.commaOnlyInX0()}))},t.prototype.getSegmentDescription=function(t,e,n,o,i,a){var s=null,c=t.indexOf("/")>-1,u=t.indexOf("-")>-1,p=t.indexOf(",")>-1;if(t)if("*"===t)s=e;else if(c||u||p)if(p){for(var f=t.split(","),l="",h=0;h<f.length;h++)if(h>0&&f.length>2&&(l+=",",h<f.length-1&&(l+=" ")),h>0&&f.length>1&&(h==f.length-1||2==f.length)&&(l+="".concat(this.i18n.spaceAnd()," ")),f[h].indexOf("/")>-1||f[h].indexOf("-")>-1){var y=f[h].indexOf("-")>-1&&-1==f[h].indexOf("/"),d=this.getSegmentDescription(f[h],e,n,o,y?this.i18n.commaX0ThroughX1:i,a);y&&(d=d.replace(", ","")),l+=d}else l+=c?this.getSegmentDescription(f[h],e,n,o,i,a):n(f[h]);s=c?l:r.StringUtilities.format(a(t),l)}else if(c){if(f=t.split("/"),s=r.StringUtilities.format(o(f[1]),f[1]),f[0].indexOf("-")>-1){var m=this.generateRangeSegmentDescription(f[0],i,n);0!=m.indexOf(", ")&&(s+=", "),s+=m}else if(-1==f[0].indexOf("*")){var g=r.StringUtilities.format(a(f[0]),n(f[0]));g=g.replace(", ",""),s+=r.StringUtilities.format(this.i18n.commaStartingX0(),g)}}else u&&(s=this.generateRangeSegmentDescription(t,i,n));else s=r.StringUtilities.format(a(t),n(t));else s="";return s},t.prototype.generateRangeSegmentDescription=function(t,e,n){var o="",i=t.split("-"),a=n(i[0],1),s=n(i[1],2),c=e(t);return o+=r.StringUtilities.format(c,a,s)},t.prototype.formatTime=function(t,e,n){var r=parseInt(t)+(this.options.tzOffset?this.options.tzOffset:0);r>=24?r-=24:r<0&&(r=24+r);var o="",i=!1;this.options.use24HourTimeFormat||(o=(i=!(!this.i18n.setPeriodBeforeTime||!this.i18n.setPeriodBeforeTime()))?"".concat(this.getPeriod(r)," "):" ".concat(this.getPeriod(r)),r>12&&(r-=12),0===r&&(r=12));var a=e,s="";return n&&(s=":".concat(("00"+n).substring(n.length))),"".concat(i?o:"").concat(("00"+r.toString()).substring(r.toString().length),":").concat(("00"+a.toString()).substring(a.toString().length)).concat(s).concat(i?"":o)},t.prototype.transformVerbosity=function(t,e){return e||(t=(t=(t=(t=t.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),"")).replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),"")).replace(new RegExp(this.i18n.commaEveryDay(),"g"),"")).replace(/\, ?$/,"")),t},t.prototype.getPeriod=function(t){return t>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},t.locales={},t}();e.ExpressionDescriptor=i},336:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.enLocaleLoader=void 0;var r=n(751),o=function(){function t(){}return t.prototype.load=function(t){t.en=new r.en},t}();e.enLocaleLoader=o},751:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.en=void 0;var n=function(){function t(){}return t.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},t.prototype.atX0MinutesPastTheHourGt20=function(){return null},t.prototype.commaMonthX0ThroughMonthX1=function(){return null},t.prototype.commaYearX0ThroughYearX1=function(){return null},t.prototype.use24HourTimeFormatByDefault=function(){return!1},t.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occured when generating the expression description. Check the cron expression syntax."},t.prototype.everyMinute=function(){return"every minute"},t.prototype.everyHour=function(){return"every hour"},t.prototype.atSpace=function(){return"At "},t.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},t.prototype.at=function(){return"At"},t.prototype.spaceAnd=function(){return" and"},t.prototype.everySecond=function(){return"every second"},t.prototype.everyX0Seconds=function(){return"every %s seconds"},t.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},t.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},t.prototype.everyX0Minutes=function(){return"every %s minutes"},t.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},t.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},t.prototype.everyX0Hours=function(){return"every %s hours"},t.prototype.betweenX0AndX1=function(){return"between %s and %s"},t.prototype.atX0=function(){return"at %s"},t.prototype.commaEveryDay=function(){return", every day"},t.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},t.prototype.commaX0ThroughX1=function(){return", %s through %s"},t.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},t.prototype.first=function(){return"first"},t.prototype.second=function(){return"second"},t.prototype.third=function(){return"third"},t.prototype.fourth=function(){return"fourth"},t.prototype.fifth=function(){return"fifth"},t.prototype.commaOnThe=function(){return", on the "},t.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},t.prototype.lastDay=function(){return"the last day"},t.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},t.prototype.commaOnlyOnX0=function(){return", only on %s"},t.prototype.commaAndOnX0=function(){return", and on %s"},t.prototype.commaEveryX0Months=function(){return", every %s months"},t.prototype.commaOnlyInX0=function(){return", only in %s"},t.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},t.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},t.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},t.prototype.firstWeekday=function(){return"first weekday"},t.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},t.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},t.prototype.commaEveryX0Days=function(){return", every %s days"},t.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},t.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},t.prototype.commaEveryHour=function(){return", every hour"},t.prototype.commaEveryX0Years=function(){return", every %s years"},t.prototype.commaStartingX0=function(){return", starting %s"},t.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},t.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},t}();e.en=n},586:(t,e)=>{function n(t,e){if(!t)throw new Error(e)}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){}return t.secondRange=function(t){for(var e=t.split(","),r=0;r<e.length;r++)if(!isNaN(parseInt(e[r],10))){var o=parseInt(e[r],10);n(o>=0&&o<=59,"seconds part must be >= 0 and <= 59")}},t.minuteRange=function(t){for(var e=t.split(","),r=0;r<e.length;r++)if(!isNaN(parseInt(e[r],10))){var o=parseInt(e[r],10);n(o>=0&&o<=59,"minutes part must be >= 0 and <= 59")}},t.hourRange=function(t){for(var e=t.split(","),r=0;r<e.length;r++)if(!isNaN(parseInt(e[r],10))){var o=parseInt(e[r],10);n(o>=0&&o<=23,"hours part must be >= 0 and <= 23")}},t.dayOfMonthRange=function(t){for(var e=t.split(","),r=0;r<e.length;r++)if(!isNaN(parseInt(e[r],10))){var o=parseInt(e[r],10);n(o>=1&&o<=31,"DOM part must be >= 1 and <= 31")}},t.monthRange=function(t,e){for(var r=t.split(","),o=0;o<r.length;o++)if(!isNaN(parseInt(r[o],10))){var i=parseInt(r[o],10);n(i>=1&&i<=12,e?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},t.dayOfWeekRange=function(t,e){for(var r=t.split(","),o=0;o<r.length;o++)if(!isNaN(parseInt(r[o],10))){var i=parseInt(r[o],10);n(i>=0&&i<=6,e?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},t}();e.default=r},910:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.StringUtilities=void 0;var n=function(){function t(){}return t.format=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return t.replace(/%s/g,(function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return e.shift()}))},t.containsAny=function(t,e){return e.some((function(e){return t.indexOf(e)>-1}))},t}();e.StringUtilities=n}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}var r={};return(()=>{var t=r;Object.defineProperty(t,"__esModule",{value:!0}),t.toString=void 0;var e=n(728),o=n(336);e.ExpressionDescriptor.initialize(new o.enLocaleLoader),t.default=e.ExpressionDescriptor;var i=e.ExpressionDescriptor.toString;t.toString=i})(),r})(),t.exports=e()},11984:function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.CopyToClipboard=void 0;var o=s(n(82684)),i=s(n(90659)),a=["text","onCopy","options","children"];function s(t){return t&&t.__esModule?t:{default:t}}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){v(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function h(t,e){return h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},h(t,e)}function y(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=g(t);if(e){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(t,e){if(e&&("object"===r(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return m(t)}function m(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function g(t){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},g(t)}function v(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var O=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(c,t);var e,n,r,s=y(c);function c(){var t;f(this,c);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return v(m(t=s.call.apply(s,[this].concat(n))),"onClick",(function(e){var n=t.props,r=n.text,a=n.onCopy,s=n.children,c=n.options,u=o.default.Children.only(s),p=(0,i.default)(r,c);a&&a(r,p),u&&u.props&&"function"===typeof u.props.onClick&&u.props.onClick(e)})),t}return e=c,(n=[{key:"render",value:function(){var t=this.props,e=(t.text,t.onCopy,t.options,t.children),n=p(t,a),r=o.default.Children.only(e);return o.default.cloneElement(r,u(u({},n),{},{onClick:this.onClick}))}}])&&l(e.prototype,n),r&&l(e,r),Object.defineProperty(e,"prototype",{writable:!1}),c}(o.default.PureComponent);e.CopyToClipboard=O,v(O,"defaultProps",{onCopy:void 0,options:void 0})},64866:function(t,e,n){"use strict";var r=n(11984).CopyToClipboard;r.CopyToClipboard=r,t.exports=r},67403:function(t){t.exports=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,n=[],r=0;r<t.rangeCount;r++)n.push(t.getRangeAt(r));switch(e.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":e.blur();break;default:e=null}return t.removeAllRanges(),function(){"Caret"===t.type&&t.removeAllRanges(),t.rangeCount||n.forEach((function(e){t.addRange(e)})),e&&e.focus()}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9440],{39440:function(e,n,t){t.d(n,{Z:function(){return fe}});var o=t(21831),i=t(82394),l=t(75582),r=t(65701),u=t(1254),c=t(82684),a=t(69864),d=t(10975),s=t(14567),h=t(47041),f=t(70515),v=t(28598),m=3*f.iI;var p=function(e){e.blockLayoutItem;var n=e.buildChart,t=e.height,o=e.width,i=(0,c.useMemo)((function(){return t-(h.nn+m)}),[t]),l=(0,c.useMemo)((function(){return null===n||void 0===n?void 0:n({height:i,width:o})}),[n,i,o]);return(0,v.jsx)(v.Fragment,{children:l})},x=t(75399),g=t(71180),b=t(4006),j=t(97618),y=t(55485),Z=t(46732),k=t(72473),_=t(38626),C=t(44897),P=t(42631),I=3*f.iI,w=_.default.div.withConfig({displayName:"indexstyle__DividerStyle",componentId:"sc-17acf36-0"})(["display:flex;position:relative;",";",";"],(function(e){return!e.horizontal&&"\n height: 100%;\n justify-content: center;\n width: ".concat(I,"px;\n ")}),(function(e){return e.horizontal&&"\n align-items: center;\n height: ".concat(I,"px;\n margin-left: ").concat(I,"px;\n margin-right: ").concat(I,"px;\n width: calc(100% - ").concat(2*I,"px);\n ")})),O=_.default.div.withConfig({displayName:"indexstyle__BarStyle",componentId:"sc-17acf36-1"})(["border-radius:","px;"," ",";",";"],P.Ro,(function(e){return"\n background-color: ".concat((e.theme||C.Z).accent.blueLight,";\n ")}),(function(e){return!e.horizontal&&"\n height: 100%;\n width: ".concat(.5*f.iI,"px;\n ")}),(function(e){return e.horizontal&&"\n height: ".concat(.5*f.iI,"px;\n width: 100%;\n ")})),M=_.default.a.withConfig({displayName:"indexstyle__ButtonStyle",componentId:"sc-17acf36-2"})(["align-items:center;border-radius:50%;display:flex;height:","px;justify-content:center;position:absolute;width:","px;"," ",";",";"],3*f.iI,3*f.iI,(function(e){return"\n background-color: ".concat((e.theme||C.Z).background.page,";\n border: ").concat(P.mP,"px solid ").concat((e.theme||C.Z).accent.blueLight,";\n box-shadow:\n 0 0 0 ").concat(P.mP,"px ").concat((e.theme||C.Z).background.page,";\n\n &:hover {\n background-color: ").concat((e.theme||C.Z).interactive.linkPrimary,";\n border: ").concat(P.mP,"px solid ").concat((e.theme||C.Z).interactive.linkPrimary,";\n cursor: pointer;\n }\n ")}),(function(e){return!e.horizontal&&"\n top: ".concat(3*f.iI,"px;\n ")}),(function(e){return e.horizontal&&"\n left: ".concat(3*f.iI,"px;\n ")}));var S=function(e){var n=e.horizontal,t=e.onClickAdd,o=(0,c.useState)(!1),i=o[0],l=o[1];return(0,v.jsx)(w,{horizontal:n,onMouseEnter:function(){return l(!0)},onMouseLeave:function(){return l(!1)},children:i&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(M,{horizontal:n,href:"#",onClick:function(e){e.preventDefault(),null===t||void 0===t||t()},children:(0,v.jsx)(k.mm,{size:2*f.iI})}),(0,v.jsx)(O,{horizontal:n})]})})},E=t(38276),L=t(4190),N=t(30160),R=t(17488),D=t(35686),U=2*(P.YF+f.cd*f.iI)+I,B=_.default.div.withConfig({displayName:"indexstyle__ItemStyle",componentId:"sc-rcft6g-0"})(["border-radius:","px;padding:","px;",""],P.Ro,f.cd*f.iI,(function(e){return"\n border: ".concat(P.YF,"px ").concat(P.M8," ").concat((e.theme||C.Z).interactive.defaultBorder,";\n background-color: ").concat((e.theme||C.Z).background.chartBlock,";\n ")})),H=t(35058);function A(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function F(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?A(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):A(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var q=function(e){var n,t,o=e.block,r=e.blockLayoutItem,u=void 0===r?null:r,a=e.blockUUID,h=e.columnIndex,m=e.columnLayoutSettings,_=e.columnsInRow,C=e.createNewBlockItem,P=e.detail,w=e.disableDrag,O=e.first,M=e.height,A=e.onDrop,q=e.onSave,W=e.pageBlockLayoutUUID,z=e.removeBlockLayoutItem,T=e.rowIndex,J=e.setSelectedBlockItem,K=e.updateLayout,V=e.width,Y=(0,c.useRef)(null),G=(0,c.useState)(!1),X=G[0],Q=G[1],$=(0,c.useState)(!1),ee=$[0],ne=$[1],te=(0,c.useState)(!1),oe=te[0],ie=te[1],le=(0,c.useState)(m)[0],re=(0,c.useState)(null),ue=re[0],ce=re[1],ae=(0,c.useMemo)((function(){return u||ue}),[u,ue]),de=(0,c.useState)(null),se=de[0],he=de[1],fe=(0,c.useMemo)((function(){return(null===ae||void 0===ae?void 0:ae.data)||se}),[ae,se]),ve=(0,c.useMemo)((function(){var e,n=null===ae||void 0===ae||null===(e=ae.data_source)||void 0===e?void 0:e.refresh_interval;return n?Math.max(n,1e3):n}),[ae]),me=D.ZP.block_layout_items.page_block_layouts.detail(!u&&encodeURIComponent(W),!u&&encodeURIComponent(a),{},{refreshInterval:ve,revalidateOnFocus:!ve}).data;(0,c.useEffect)((function(){ae||(o?ce(o):null!==me&&void 0!==me&&me.block_layout_item&&ce(null===me||void 0===me?void 0:me.block_layout_item))}),[o,ae,me]),(0,c.useEffect)((function(){var e,n;null!==me&&void 0!==me&&null!==(e=me.block_layout_item)&&void 0!==e&&e.data&&he(null===me||void 0===me||null===(n=me.block_layout_item)||void 0===n?void 0:n.data)}),[null===me||void 0===me||null===(n=me.block_layout_item)||void 0===n?void 0:n.data]);var pe=(0,c.useCallback)((function(e){var n,t=e.height,o=e.width;if(!fe)return null;var l=null===fe||void 0===fe?void 0:fe.render;if(l){var r=null===fe||void 0===fe?void 0:fe.render_type;if(x.hN.JPEG===r||x.hN.JPG===r)return(0,v.jsx)("img",{height:t,src:"data:image/jpeg;base64,".concat(l),width:o});if(x.hN.PNG===r)return(0,v.jsx)("img",{height:t,src:"data:image/png;base64,".concat(l),width:o});if(x.hN.HTML===r)return(0,v.jsx)("iframe",{srcdoc:l,style:{height:t,width:o}})}return(0,v.jsx)(b.Z,{block:F(F({},ae),{},{configuration:F(F({},null===ae||void 0===ae?void 0:ae.configuration),{},(0,i.Z)({},H.JJ,t))}),data:fe,width:o,xAxisLabel:null===ae||void 0===ae||null===(n=ae.configuration)||void 0===n?void 0:n.x_axis_label})}),[ae,fe]),xe=(0,d.c)((function(){return{collect:function(e){return{isDragging:!!e.isDragging()}},item:{blockLayoutItem:ae,columnIndex:h,rowIndex:T},type:"BlockLayoutItem"}}),[ae,h,T]),ge=(0,l.Z)(xe,2),be=ge[0],je=ge[1],ye=(0,s.L)((function(){return{accept:"BlockLayoutItem",drop:function(e){return null===A||void 0===A?void 0:A(e)}}}),[A]),Ze=(0,l.Z)(ye,2)[1];return P?(0,v.jsx)(p,{blockLayoutItem:ae,buildChart:pe,height:M,width:V}):(0,v.jsxs)(v.Fragment,{children:[O&&(0,v.jsx)(S,{onClickAdd:function(){return C({columnIndex:h,rowIndex:T})}}),(0,v.jsx)(j.Z,{flex:1,flexDirection:"column",children:(0,v.jsx)("div",{onMouseEnter:function(){return ie(!0)},onMouseLeave:function(){return ie(!1)},ref:Ze,children:(0,v.jsxs)(B,F(F({},be),{},{ref:w?null:je,children:[(0,v.jsx)(E.Z,{mb:1,children:(0,v.jsxs)(y.ZP,{alignContent:"center",justifyContent:"space-between",children:[(0,v.jsx)(E.Z,{py:1,children:(0,v.jsx)(N.ZP,{bold:!0,default:!0,children:(null===ae||void 0===ae?void 0:ae.name)||a})}),(0,v.jsx)("div",{children:(0,v.jsx)(Z.Z,{items:[{label:function(){return"Edit content"},onClick:function(){return null===J||void 0===J?void 0:J(ae)},uuid:"Edit content"},{label:function(){return"Change height and/or width"},onClick:function(){return ne(!0)},uuid:"Change"},{label:function(){return"Remove chart"},onClick:function(){return null===z||void 0===z?void 0:z()},uuid:"Remove chart"}],onClickCallback:function(){return Q(!1)},onClickOutside:function(){return Q(!1)},open:X,parentRef:Y,rightOffset:0,uuid:"BlockLayoutItem/".concat(a),children:(oe||X)&&(0,v.jsx)(g.ZP,{iconOnly:!0,noBackground:!0,onClick:function(){Q(!0)},children:(0,v.jsx)(k.mH,{default:!0,size:2*f.iI})})})})]})}),ee&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)(y.ZP,{alignItems:"center",fullWidth:!0,children:[(0,v.jsxs)(j.Z,{flex:1,flexDirection:"column",children:[(0,v.jsx)(N.ZP,{bold:!0,muted:!0,small:!0,children:"Width (flex box)"}),(0,v.jsx)(R.Z,{compact:!0,fullWidth:!0,onChange:function(e){return null===K||void 0===K?void 0:K(F(F({},m),{},{width:"undefined"!==typeof e.target.value?Number(e.target.value):e.target.value}))},primary:!0,setContentOnMount:!0,small:!0,type:"number",value:(null===m||void 0===m?void 0:m.width)||""})]}),(0,v.jsx)(E.Z,{mr:1}),(0,v.jsxs)(j.Z,{flex:1,flexDirection:"column",children:[(0,v.jsx)(N.ZP,{bold:!0,muted:!0,small:!0,children:"Max width (%)"}),(0,v.jsx)(R.Z,{compact:!0,fullWidth:!0,label:"Max width percentage",onChange:function(e){return null===K||void 0===K?void 0:K(F(F({},m),{},{max_width_percentage:"undefined"!==typeof e.target.value?Number(e.target.value):e.target.value}))},primary:!0,setContentOnMount:!0,small:!0,type:"number",value:(null===m||void 0===m?void 0:m.max_width_percentage)||""})]}),(0,v.jsx)(E.Z,{mr:1}),(0,v.jsxs)(j.Z,{flex:1,flexDirection:"column",children:[(0,v.jsx)(N.ZP,{bold:!0,muted:!0,small:!0,children:"Height (pixels)"}),(0,v.jsx)(R.Z,{compact:!0,fullWidth:!0,onChange:function(e){return null===K||void 0===K?void 0:K(F(F({},m),{},{height:"undefined"!==typeof e.target.value?Number(e.target.value):e.target.value}))},primary:!0,setContentOnMount:!0,small:!0,type:"number",value:(null===m||void 0===m?void 0:m.height)||""})]})]}),(0,v.jsx)(E.Z,{mt:f.cd,children:(0,v.jsxs)(y.ZP,{alignItems:"center",justifyContent:"flex-end",children:[(0,v.jsx)(g.ZP,{compact:!0,onClick:function(){null===q||void 0===q||q(),ne(!1)},primary:!0,small:!0,children:"Save"}),(0,v.jsx)(E.Z,{mr:1}),(0,v.jsx)(g.ZP,{compact:!0,onClick:function(){ne(!1),null===K||void 0===K||K(le)},small:!0,children:"Cancel"})]})})]}),!me&&!fe&&(0,v.jsx)(L.Z,{inverted:!0}),fe&&pe({height:M||(null===ae||void 0===ae||null===(t=ae.configuration)||void 0===t?void 0:t[H.JJ]),width:V-(U+1)-(_?I/_:0)})]}))})}),(0,v.jsx)(S,{onClickAdd:function(){return C({columnIndex:h+1,rowIndex:T})}})]})},W=t(44425),z=t(54750),T=t(31882),J=t(10305),K=t(44085),V=t(85108),Y=t(81728),G=t(86735);function X(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function Q(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?X(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):X(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var $=function(e){var n=e.block,t=e.updateConfiguration,o=n||{},r=o.data,u=o.configuration,a=(u||{}).chart_type,d=(r||{}).columns,s=V.G8[a],h=(0,c.useMemo)((function(){return Object.entries(s||{}).reduce((function(e,n){var o=(0,l.Z)(n,2),r=o[0],c=o[1];return Q(Q({},e),{},(0,i.Z)({},r,c.map((function(e){var n,o=e.autoRun,l=e.label,r=e.monospace,c=e.options,a=e.settings,s=void 0===a?{}:a,h=e.type,f=e.uuid,m={fullWidth:!0,key:f,label:(0,Y.kC)(l()),monospace:r,onChange:function(e){return t((0,i.Z)({},f,e.target.value),{autoRun:o})},value:(null===u||void 0===u?void 0:u[f])||""};if(V.VR.COLUMNS===h){var p=u[f]||[];n=(0,v.jsxs)(v.Fragment,{children:[(!s.maxValues||p.length<s.maxValues)&&(0,v.jsx)(K.Z,Q(Q({},m),{},{onChange:function(e){var n=u[f]||[],l=e.target.value;n.includes(l)?n=(0,G.Od)(n,(function(e){return e===l})):n.push(l),t((0,i.Z)({},f,n),{autoRun:o})},value:null,children:(0,G.YC)((d||[]).filter((function(e){return!p.includes(e)})),(function(e){return e})).map((function(e){return(0,v.jsx)("option",{value:e,children:e},e)}))})),p.map((function(e){return(0,v.jsx)("div",{style:{display:"inline-block",marginRight:2,marginTop:2},children:(0,v.jsx)(T.Z,{label:e,onClick:function(){t((0,i.Z)({},f,(0,G.Od)(p,(function(n){return n===e}))),{autoRun:o})}})},e)}))]})}else if(V.VR.METRICS===h){var x=u[f]||[];n=(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(N.ZP,{bold:!0,children:"Metrics"}),(0,v.jsx)(N.ZP,{muted:!0,small:!0,children:"Select a column and an aggregation function."}),(0,v.jsxs)(J.Z,{onChange:function(e,n){var l=n.resetValues,r=n.setValues;2===e.filter((function(e){return!!e})).length&&(x.find((function(n){var t=n.aggregation;return n.column===e[1]&&t===e[0]}))||(t((0,i.Z)({},f,x.concat({aggregation:e[0],column:e[1]})),{autoRun:o}),r([null,null]),l()))},children:[(0,v.jsx)(K.Z,Q(Q({},m),{},{label:"aggregation",children:(0,G.YC)(H.bn,(function(e){return e})).map((function(e){return(0,v.jsx)("option",{value:e,children:e},e)}))})),(0,v.jsx)(K.Z,Q(Q({},m),{},{label:"column",children:(0,G.YC)(d||[],(function(e){return e})).map((function(e){return(0,v.jsx)("option",{value:e,children:e},e)}))}))]}),x.map((function(e){var n=e.aggregation,l=e.column;return(0,v.jsx)("div",{style:{display:"inline-block",marginRight:2,marginTop:2},children:(0,v.jsx)(T.Z,{label:(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)(N.ZP,{inline:!0,monospace:!0,children:[n,"("]}),l,(0,v.jsx)(N.ZP,{inline:!0,monospace:!0,children:")"})]}),onClick:function(){t((0,i.Z)({},f,(0,G.Od)(x,(function(e){var t=e.aggregation,o=e.column;return n===t&&l===o}))),{autoRun:o})}})},"".concat(n,"(").concat(l,")"))}))]})}else n=c?(0,v.jsx)(K.Z,Q(Q({},m),{},{children:c.map((function(e){return(0,v.jsx)("option",{value:e,children:e},e)}))})):(0,v.jsx)(R.Z,Q(Q({},m),{},{type:h}));return(0,v.jsx)(E.Z,{mb:1,children:n},f)}))))}),{noCode:[]})}),[d,u,s,t]),f=(h.code,h.noCode);return(0,v.jsx)(v.Fragment,{children:f})},ee=t(75810),ne=t(15338),te=t(85854),oe=t(48670),ie=t(62547),le=t(2842),re=t(53808),ue=t(42122),ce=t(72619),ae=t(23780),de=t(19183);function se(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function he(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?se(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):se(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var fe=function(e){var n,t=e.leftOffset,d=e.pageBlockLayoutTemplate,s=e.topOffset,m=e.uuid,p=(0,ae.VI)(null,{},[],{uuid:"BlockLayout/".concat(m)}),b=(0,l.Z)(p,1)[0],Z=(0,c.useState)({}),_=(Z[0],Z[1],(0,c.useState)(null)),C=_[0],P=_[1],I=(0,c.useState)(!1),w=(I[0],I[1],(0,c.useRef)(null),"block_layout_after_width_".concat(m)),O="block_layout_before_width_".concat(m),M=(0,c.useRef)(null),U=(0,c.useState)((0,re.U2)(w,40*f.iI)),B=U[0],A=U[1],F=(0,c.useState)(!1),T=F[0],J=F[1],V=(0,c.useState)(Math.max((0,re.U2)(O),50*f.iI)),X=V[0],Q=V[1],se=(0,c.useState)(!1),fe=se[0],ve=se[1],me=(0,c.useRef)(null),pe=(0,de.i)(),xe=(0,c.useState)(null),ge=xe[0],be=xe[1],je=(0,c.useMemo)((function(){var e;return null===ge||void 0===ge||null===(e=ge.data_source)||void 0===e?void 0:e.refresh_interval}),[ge]),ye=D.ZP.block_layout_items.page_block_layouts.detail(ge&&encodeURIComponent(m),ge&&encodeURIComponent(null===ge||void 0===ge?void 0:ge.uuid),{configuration_override:encodeURIComponent(JSON.stringify((null===C||void 0===C?void 0:C.configuration)||"")),data_source_override:encodeURIComponent(JSON.stringify((null===C||void 0===C?void 0:C.data_source)||""))},{refreshInterval:je,revalidateOnFocus:!je}),Ze=ye.data,ke=ye.mutate,_e=(0,c.useMemo)((function(){return null===Ze||void 0===Ze?void 0:Ze.block_layout_item}),[Ze]);(0,c.useEffect)((function(){var e;null!==_e&&void 0!==_e&&null!==(e=_e.data)&&void 0!==e&&e.error&&b({response:null===_e||void 0===_e?void 0:_e.data})}),[_e,b]);var Ce=(0,c.useCallback)((function(e){ke(),P(e)}),[ke,P]),Pe=(0,c.useCallback)((function(e){Ce((function(n){var t=he(he({},n),e);return"undefined"===typeof(null===t||void 0===t?void 0:t.name_new)&&(t.name_new=null===t||void 0===t?void 0:t.name),t})),be(e)}),[Ce,be]),Ie=D.ZP.page_block_layouts.detail(encodeURIComponent(m)).data,we=(0,c.useState)(null),Oe=we[0],Me=we[1],Se=(0,c.useMemo)((function(){return null===Oe||void 0===Oe?void 0:Oe.layout}),[Oe]),Ee=(0,c.useCallback)((function(e){Me((function(n){return he(he({},n),{},{layout:e})}))}),[Me]);(0,c.useEffect)((function(){null!==Ie&&void 0!==Ie&&Ie.page_block_layout&&Me(null===Ie||void 0===Ie?void 0:Ie.page_block_layout)}),[Ie]);var Le=(0,a.Db)(D.ZP.page_block_layouts.useUpdate(encodeURIComponent(m)),{onSuccess:function(e){return(0,ce.wD)(e,{callback:function(e){var n=e.page_block_layout,t=n.blocks;Me(n);var o=Object.values(t).find((function(e){return e.name===(null===C||void 0===C?void 0:C.name_new)}));o&&Pe(o),ke()},onErrorCallback:function(e,n){return b({errors:n,response:e})}})}}),Ne=(0,l.Z)(Le,2),Re=Ne[0],De=Ne[1].isLoading,Ue=(0,c.useCallback)((function(e){return Re({page_block_layout:{blocks:he(he({},null===Oe||void 0===Oe?void 0:Oe.blocks),{},(0,i.Z)({},null===e||void 0===e?void 0:e.uuid,(0,ue.gR)(e,["data"]))),layout:null===Oe||void 0===Oe?void 0:Oe.layout}})}),[Oe,Re]),Be=(0,c.useCallback)((function(){return Re({page_block_layout:{blocks:null===Oe||void 0===Oe?void 0:Oe.blocks,layout:null===Oe||void 0===Oe?void 0:Oe.layout}})}),[Oe,Re]),He=(0,c.useMemo)((function(){return null===Oe||void 0===Oe?void 0:Oe.blocks}),[Oe]),Ae=(0,c.useCallback)((function(e,n,t){var i=(0,o.Z)(Se);i[e][n]=t,Ee(i)}),[Se,Ee]),Fe=(0,c.useState)(null),qe=Fe[0],We=Fe[1],ze=(0,c.useState)(null),Te=ze[0],Je=ze[1];(0,c.useEffect)((function(){var e;null===M||void 0===M||!M.current||T||fe||We(null===M||void 0===M||null===(e=M.current)||void 0===e?void 0:e.getBoundingClientRect())}),[T,fe,M,ge,pe]),(0,c.useEffect)((function(){var e;null!==me&&void 0!==me&&me.current&&Je(null===me||void 0===me||null===(e=me.current)||void 0===e?void 0:e.getBoundingClientRect())}),[me,ge,pe]),(0,c.useEffect)((function(){T||(0,re.t8)(w,B)}),[T,B,w]),(0,c.useEffect)((function(){fe||(0,re.t8)(O,X)}),[fe,X,O]);var Ke=(0,c.useCallback)((function(e,n,t){var i=he({},null===Oe||void 0===Oe?void 0:Oe.blocks);null===i||void 0===i||delete i[e];var l=(0,o.Z)(null===Oe||void 0===Oe?void 0:Oe.layout),r=l[n]||[],u=(0,G.oM)(r,t);0===(null===u||void 0===u?void 0:u.length)?l=(0,G.oM)(l,n):l[n]=u,Re({page_block_layout:{blocks:i,layout:l}})}),[Oe,Re]),Ve=(0,c.useCallback)((function(e,n,t,i){var l=(0,o.Z)(Se||[]),r=l[e]||[],u=r[n];if(e===t&&n!==i){var c=(0,G.oM)(r,n);l[e]=(0,G.Hk)(u,i>n?i:i-1,c)}else{var a=(0,G.oM)(r,n);l[e]=a;var d=(0,G.Hk)(u,i,l[t]);l[t]=d,0===(null===a||void 0===a?void 0:a.length)&&(l=(0,G.oM)(l,e))}e===t&&n===i||Re({page_block_layout:{blocks:null===Oe||void 0===Oe?void 0:Oe.blocks,layout:l}})}),[Se,Oe,Re]),Ye=(0,c.useCallback)((function(e){var n=(0,Y.Y6)(),t={name:n,type:W.tf.CHART,uuid:(0,Y.kE)(n)},l=(0,o.Z)(Se||[]),r={block_uuid:t.uuid,width:1};if(e){var u=e||{},c=u.columnIndex,a=void 0===c?0:c,d=u.rowIndex,s=u.rowIndexInsert;"undefined"!==typeof s?l=(0,G.Hk)([r],s,l):l[d]=(0,G.Hk)(r,a,l[d])}else l.push([r]);Re({page_block_layout:{blocks:he(he({},null===Oe||void 0===Oe?void 0:Oe.blocks),{},(0,i.Z)({},t.uuid,t)),layout:l}}),Pe(t)}),[Se,Oe,Pe,Re]),Ge=(0,c.useMemo)((function(){var e=[];return null===Se||void 0===Se||Se.forEach((function(n,t){var o=[],i=(0,G.Sm)(null===n||void 0===n?void 0:n.map((function(e){return e.width||0})));n.forEach((function(e,l){var r=e.block_uuid,u=e.height,c=e.max_width_percentage,a=e.width,d=null===He||void 0===He?void 0:He[r],s="undefined"!==typeof c&&null!==c?c>=0?c/100:c:null,f=a/i,p=s&&f>s?s:f,x=(null===qe||void 0===qe?void 0:qe.width)-h.nn;o.push((0,v.jsx)(j.Z,{flexBasis:"".concat(Math.floor(100*p),"%"),children:(0,v.jsx)(q,{block:d,blockUUID:r,columnIndex:l,columnLayoutSettings:e,columnsInRow:null===n||void 0===n?void 0:n.length,createNewBlockItem:Ye,first:0===l,height:u,onDrop:function(e){var n=e.columnIndex,o=e.rowIndex;Ve(o,n,t,l)},onSave:Be,pageBlockLayoutUUID:m,removeBlockLayoutItem:function(){return Ke(r,t,l)},rowIndex:t,setSelectedBlockItem:Pe,updateLayout:function(e){return Ae(t,l,e)},width:Math.floor(p*x)})},"row-".concat(t,"-column-").concat(l,"-").concat(r)))})),0===t&&e.push((0,v.jsx)(S,{horizontal:!0,onClickAdd:function(){return Ye({rowIndexInsert:t})}},"layout-divider-".concat(t,"-top"))),e.push((0,v.jsx)(y.ZP,{children:o},"row-".concat(t))),e.push((0,v.jsx)(S,{horizontal:!0,onClickAdd:function(){return Ye({rowIndexInsert:t+1})}},"layout-divider-".concat(t,"-bottom")))})),e}),[He,qe,Ye,Se,Ve,Ke,Be,Pe,Ae,m]),Xe=(0,c.useMemo)((function(){return Ie&&0===(null===Se||void 0===Se?void 0:Se.length)}),[Ie,Se]),Qe=(0,c.useMemo)((function(){return(0,v.jsx)(y.ZP,{justifyContent:"center",children:(0,v.jsxs)(E.Z,{my:3*f.HN,px:f.cd,children:[(0,v.jsxs)(E.Z,{mb:f.Mq,children:[(0,v.jsx)(E.Z,{mb:1,children:(0,v.jsx)(te.Z,{center:!0,children:"Create a custom dashboard"})}),(0,v.jsx)(N.ZP,{center:!0,default:!0,children:"Add customizable charts with the exact insights you need."}),d&&(0,v.jsx)(N.ZP,{center:!0,default:!0,children:"Start with a recommended set or freely define your own."})]}),(0,v.jsxs)(y.ZP,{alignContent:"center",justifyContent:"center",children:[d&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(g.ZP,{onClick:function(){return Re({page_block_layout:d})},primary:!0,children:"Add recommended charts"}),(0,v.jsx)(E.Z,{mr:1})]}),(0,v.jsx)(g.ZP,{onClick:function(){return Ye()},primary:!d,secondary:!!d,children:"Create new chart"})]})]})})}),[Ye,d,Re]),$e=(0,c.useMemo)((function(){return(null===qe||void 0===qe?void 0:qe.height)-(null===Te||void 0===Te?void 0:Te.height)}),[qe,Te]),en=(0,c.useMemo)((function(){return!ge}),[ge]),nn=D.ZP.pipelines.detail(null===C||void 0===C||null===(n=C.data_source)||void 0===n?void 0:n.pipeline_uuid).data,tn=(0,c.useMemo)((function(){return null===nn||void 0===nn?void 0:nn.pipeline}),[nn]),on=(0,c.useMemo)((function(){return(0,G.YC)((null===tn||void 0===tn?void 0:tn.blocks)||[],"uuid")}),[tn]),ln=D.ZP.pipelines.list().data,rn=(0,c.useMemo)((function(){return(0,G.YC)((null===ln||void 0===ln?void 0:ln.pipelines)||[],"uuid")}),[ln]),un=D.ZP.pipeline_schedules.pipelines.list(null===tn||void 0===tn?void 0:tn.uuid).data,cn=(0,c.useMemo)((function(){return null===un||void 0===un?void 0:un.pipeline_schedules}),[un]),an=(0,c.useMemo)((function(){return he(he(he({},ge),C),{},{data:he(he(he({},null===ge||void 0===ge?void 0:ge.data),null===C||void 0===C?void 0:C.data),null===_e||void 0===_e?void 0:_e.data)})}),[_e,C,ge]),dn=(0,c.useMemo)((function(){var e,n,t,o,i,l,r,u,c,a,d,h,m;return(0,v.jsxs)("div",{style:{paddingBottom:f.Mq*f.iI,paddingTop:"undefined"===typeof s?le.Wi:0},children:[(0,v.jsxs)(E.Z,{mt:f.Mq,px:f.cd,children:[(0,v.jsxs)(E.Z,{mb:1,children:[(0,v.jsx)(N.ZP,{bold:!0,children:"Chart name"}),(0,v.jsx)(N.ZP,{muted:!0,small:!0,children:"Human readable name for your chart."})]}),(0,v.jsx)(R.Z,{onChange:function(e){return Ce((function(n){return he(he({},n),{},{name_new:e.target.value})}))},placeholder:"Type name for chart...",primary:!0,setContentOnMount:!0,value:(null===C||void 0===C?void 0:C.name_new)||""})]}),(0,v.jsxs)(E.Z,{mt:f.Mq,px:f.cd,children:[(0,v.jsxs)(E.Z,{mb:1,children:[(0,v.jsx)(N.ZP,{bold:!0,children:"Chart type"}),(0,v.jsx)(N.ZP,{muted:!0,small:!0,children:"Choose how you want to display your data."})]}),(0,v.jsx)(K.Z,{onChange:function(e){return Ce((function(n){return he(he({},n),{},{configuration:{chart_type:e.target.value}})}))},placeholder:"Select chart type",primary:!0,value:(null===C||void 0===C||null===(e=C.configuration)||void 0===e?void 0:e.chart_type)||"",children:H.CK.concat(H.oV.CUSTOM).map((function(e){return(0,v.jsx)("option",{value:e,children:(0,Y.kC)(e)},e)}))})]}),(0,v.jsx)(E.Z,{mt:f.Mq,children:(0,v.jsx)(ne.Z,{light:!0})}),(0,v.jsx)(E.Z,{mt:f.Mq,px:f.cd,children:(0,v.jsx)(te.Z,{children:"Data source"})}),(0,v.jsxs)(E.Z,{mt:f.Mq,px:f.cd,children:[(0,v.jsxs)(E.Z,{mb:1,children:[(0,v.jsx)(N.ZP,{bold:!0,children:"Data source type"}),(0,v.jsx)(N.ZP,{muted:!0,small:!0,children:"Configure where the data for this chart comes from."})]}),(0,v.jsx)(K.Z,{onChange:function(e){return Ce((function(n){return he(he({},n),{},{data_source:he(he({},null===n||void 0===n?void 0:n.data_source),{},{type:e.target.value})})}))},placeholder:"Select data source type",primary:!0,value:(null===C||void 0===C||null===(n=C.data_source)||void 0===n?void 0:n.type)||"",children:x.tW.map((function(e){return(0,v.jsx)("option",{value:e,children:(0,Y.kC)(x.Qj[e])},e)}))})]}),[x.XO.BLOCK,x.XO.BLOCK_RUNS,x.XO.PIPELINE_RUNS,x.XO.PIPELINE_SCHEDULES].includes(null===C||void 0===C||null===(t=C.data_source)||void 0===t?void 0:t.type)&&(0,v.jsx)(v.Fragment,{children:(0,v.jsxs)(E.Z,{mt:f.Mq,px:f.cd,children:[(0,v.jsxs)(E.Z,{mb:1,children:[(0,v.jsx)(N.ZP,{bold:!0,children:"Pipeline UUID"}),(0,v.jsx)(N.ZP,{muted:!0,small:!0,children:"Select the pipeline the data source comes from."})]}),(0,v.jsxs)(K.Z,{monospace:!0,onChange:function(e){return Ce((function(n){return he(he({},n),{},{data_source:he(he({},null===n||void 0===n?void 0:n.data_source),{},{block_uuid:null,pipeline_schedule_id:null,pipeline_uuid:e.target.value})})}))},primary:!0,value:(null===C||void 0===C||null===(o=C.data_source)||void 0===o?void 0:o.pipeline_uuid)||"",children:[(0,v.jsx)("option",{value:null}),null===rn||void 0===rn?void 0:rn.map((function(e){var n=e.uuid;return(0,v.jsx)("option",{value:n,children:n},n)}))]})]})}),[x.XO.PIPELINE_RUNS].includes(null===C||void 0===C||null===(i=C.data_source)||void 0===i?void 0:i.type)&&(0,v.jsx)(v.Fragment,{children:(0,v.jsxs)(E.Z,{mt:f.Mq,px:f.cd,children:[(0,v.jsxs)(E.Z,{mb:1,children:[(0,v.jsx)(N.ZP,{bold:!0,children:"Trigger"}),(0,v.jsx)(N.ZP,{muted:!0,small:!0,children:"Select the trigger that the pipeline runs should belong to."})]}),(0,v.jsxs)(K.Z,{monospace:!0,onChange:function(e){return Ce((function(n){return he(he({},n),{},{data_source:he(he({},null===n||void 0===n?void 0:n.data_source),{},{pipeline_schedule_id:e.target.value})})}))},primary:!0,value:(null===C||void 0===C||null===(l=C.data_source)||void 0===l?void 0:l.pipeline_schedule_id)||"",children:[(0,v.jsx)("option",{value:null}),null===cn||void 0===cn?void 0:cn.map((function(e){var n=e.id,t=e.name;return(0,v.jsx)("option",{value:n,children:t},n)}))]})]})}),x.XO.BLOCK===(null===C||void 0===C||null===(r=C.data_source)||void 0===r?void 0:r.type)&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)(E.Z,{mt:f.Mq,px:f.cd,children:[(0,v.jsxs)(E.Z,{mb:1,children:[(0,v.jsx)(N.ZP,{bold:!0,children:"Block UUID"}),(0,v.jsx)(N.ZP,{muted:!0,small:!0,children:"Select the block the data source comes from."})]}),(0,v.jsxs)(K.Z,{monospace:!0,onChange:function(e){return Ce((function(n){return he(he({},n),{},{data_source:he(he({},null===n||void 0===n?void 0:n.data_source),{},{block_uuid:e.target.value})})}))},primary:!0,value:(null===C||void 0===C||null===(u=C.data_source)||void 0===u?void 0:u.block_uuid)||"",children:[(0,v.jsx)("option",{value:null}),null===on||void 0===on?void 0:on.map((function(e){var n=e.uuid;return(0,v.jsx)("option",{value:n,children:n},n)}))]})]}),(0,v.jsxs)(E.Z,{mt:f.Mq,px:f.cd,children:[(0,v.jsxs)(E.Z,{mb:1,children:[(0,v.jsx)(N.ZP,{bold:!0,children:"Partitions"}),(0,v.jsx)(N.ZP,{muted:!0,small:!0,children:"Enter a positive or a negative number. If positive, then data from the block will be the most recent N partitions. If negative, then data from the block will be the oldest N partitions."}),(0,v.jsx)(E.Z,{mt:1,children:(0,v.jsx)(N.ZP,{muted:!0,small:!0,children:"Leave blank if you want the chart to execute the block and display the data produced from that ad hoc block execution."})})]}),(0,v.jsx)(R.Z,{monospace:!0,onChange:function(e){return Ce((function(n){return he(he({},n),{},{data_source:he(he({},null===n||void 0===n?void 0:n.data_source),{},{partitions:"undefined"!==typeof e.target.value?Number(e.target.value):e.target.value})})}))},placeholder:"Enter number of partitions",primary:!0,setContentOnMount:!0,type:"number",value:(null===C||void 0===C||null===(c=C.data_source)||void 0===c?void 0:c.partitions)||""})]})]}),(0,v.jsxs)(E.Z,{mt:f.Mq,px:f.cd,children:[(0,v.jsxs)(E.Z,{mb:1,children:[(0,v.jsx)(N.ZP,{bold:!0,children:"Refresh interval"}),(0,v.jsx)(N.ZP,{muted:!0,small:!0,children:"How frequent do you want this chart to automatically fetch new data from its data source? Enter a number in milliseconds (e.g. 1000ms is 1 second)."})]}),(0,v.jsx)(R.Z,{monospace:!0,onChange:function(e){return Ce((function(n){return he(he({},n),{},{data_source:he(he({},null===n||void 0===n?void 0:n.data_source),{},{refresh_interval:e.target.value})})}))},placeholder:"Enter number for refresh interval",primary:!0,setContentOnMount:!0,type:"number",value:(null===C||void 0===C||null===(a=C.data_source)||void 0===a?void 0:a.refresh_interval)||6e4})]}),(0,v.jsx)(E.Z,{mt:f.Mq,children:(0,v.jsx)(ne.Z,{light:!0})}),(0,v.jsx)(E.Z,{mt:f.Mq,px:f.cd,children:(0,v.jsx)(te.Z,{children:"Chart display settings"})}),(0,v.jsx)(E.Z,{mt:f.Mq,px:f.cd,children:(0,v.jsxs)(N.ZP,{default:!0,children:["Number of columns from data source: ","undefined"!==typeof(null===an||void 0===an||null===(d=an.data)||void 0===d?void 0:d.columns)?(0,v.jsx)(N.ZP,{bold:!0,inline:!0,monospace:!0,children:null===an||void 0===an||null===(h=an.data)||void 0===h||null===(m=h.columns)||void 0===m?void 0:m.length}):(0,v.jsx)(E.Z,{mt:1,children:(0,v.jsx)(L.Z,{inverted:!0,small:!0})})]})}),(0,v.jsx)(E.Z,{mt:f.Mq,px:f.cd,children:(0,v.jsx)($,{block:an,updateConfiguration:function(e){Ce((function(n){return he(he({},n),{},{configuration:he(he({},null===n||void 0===n?void 0:n.configuration),e)})}))}})})]})}),[an,on,C,cn,rn,Ce,s]),sn=(0,c.useMemo)((function(){return ge&&(0,v.jsxs)(E.Z,{py:f.cd,children:[(0,v.jsxs)(E.Z,{mb:f.Mq,px:f.cd,children:[(0,v.jsx)(E.Z,{mb:1,children:(0,v.jsx)(te.Z,{children:"Custom code"})}),(0,v.jsxs)(N.ZP,{default:!0,children:["Write code for custom data sources, parsing, etc. For more information on what is possible, please check out the ",(0,v.jsx)(oe.Z,{href:"https://docs.mage.ai/visualizations/dashboards#custom-code-for-chart",openNewWindow:!0,children:"chart documentation"}),"."]})]}),(0,v.jsx)(ee.Z,{autoHeight:!0,block:ge,onChange:function(e){Ce((function(n){return he(he({},n),{},{content:e})}))},value:(null===C||void 0===C?void 0:C.content)||(null===_e||void 0===_e?void 0:_e.content)||"",width:"100%"})]})}),[_e,C,ge,Ce]);return(0,v.jsxs)(ie.Z,{after:sn,afterHeightOffset:s||0,afterHidden:en,afterMousedownActive:T,afterWidth:B,before:dn,beforeFooter:!en&&(0,v.jsx)(E.Z,{p:f.cd,children:(0,v.jsxs)(y.ZP,{children:[(0,v.jsx)(g.ZP,{fullWidth:!0,loading:De,onClick:function(){return Ue(C)},primary:!0,children:"Save changes"}),(0,v.jsx)(E.Z,{mr:1}),(0,v.jsx)(g.ZP,{fullWidth:!0,onClick:function(){return Pe(null)},secondary:!0,children:"Back to dashboard"})]})}),beforeHeader:(0,v.jsx)(v.Fragment,{children:(0,v.jsx)(z.Z,{breadcrumbs:[{label:function(){return"Back to dashboard"},onClick:function(){return Pe(null)}},{bold:!0,label:function(){return(null===ge||void 0===ge?void 0:ge.name)||(null===ge||void 0===ge?void 0:ge.uuid)}}]})}),beforeHeaderOffset:6*f.iI,beforeHeightOffset:s||0,beforeHidden:en,beforeMousedownActive:fe,beforeWidth:X,contained:!0,headerOffset:s||0,hideAfterCompletely:!0,hideBeforeCompletely:!0,leftOffset:t||0,mainContainerRef:M,setAfterMousedownActive:J,setAfterWidth:A,setBeforeMousedownActive:ve,setBeforeWidth:Q,children:[(0,v.jsx)("div",{ref:me,children:(0,v.jsxs)(y.ZP,{justifyContent:"space-between",children:[(0,v.jsx)(j.Z,{flex:1}),en&&!Xe&&(0,v.jsx)(E.Z,{p:f.cd,children:(0,v.jsx)(g.ZP,{beforeIcon:(0,v.jsx)(k.mm,{size:2*f.iI}),onClick:function(){return Ye()},primary:!0,children:"Create new chart"})})]})}),(0,v.jsxs)(r.W,{backend:u.PD,children:[ge&&(0,v.jsx)(q,{block:ge,blockLayoutItem:he(he({},_e),{},{configuration:he(he({},null===_e||void 0===_e?void 0:_e.configuration),null===C||void 0===C?void 0:C.configuration),data_source:he(he({},null===_e||void 0===_e?void 0:_e.data_source),null===C||void 0===C?void 0:C.data_source)}),blockUUID:null===ge||void 0===ge?void 0:ge.uuid,detail:!0,disableDrag:!0,height:$e,pageBlockLayoutUUID:m,setSelectedBlockItem:Pe,width:null===qe||void 0===qe?void 0:qe.width}),!ge&&!Xe&&Ge,!ge&&Xe&&Qe]})]})}},75399:function(e,n,t){t.d(n,{Qj:function(){return c},XO:function(){return i},hN:function(){return l},tW:function(){return u}});var o,i,l,r=t(82394);!function(e){e.BLOCK="block",e.BLOCK_RUNS="block_runs",e.CHART_CODE="chart_code",e.PIPELINES="pipelines",e.PIPELINE_RUNS="pipeline_runs",e.PIPELINE_SCHEDULES="pipeline_schedules"}(i||(i={})),function(e){e.HTML="html",e.JPEG="jpeg",e.JPG="jpg",e.PNG="png"}(l||(l={}));var u=[i.BLOCK,i.BLOCK_RUNS,i.CHART_CODE,i.PIPELINES,i.PIPELINE_RUNS,i.PIPELINE_SCHEDULES],c=(o={},(0,r.Z)(o,i.BLOCK,"Block data output"),(0,r.Z)(o,i.BLOCK_RUNS,"Block runs"),(0,r.Z)(o,i.CHART_CODE,"Custom code"),(0,r.Z)(o,i.PIPELINES,"Pipelines"),(0,r.Z)(o,i.PIPELINE_RUNS,"Pipeline runs"),(0,r.Z)(o,i.PIPELINE_SCHEDULES,"Triggers"),o)}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9624],{29624:function(e,n,t){t.d(n,{Z:function(){return Q}});var i=t(82394),l=t(75582),r=t(12691),u=t.n(r),o=t(82684),c=t(69864),s=t(34376),p=t(71180),d=t(50724),a=t(30160),f=t(44897),h=t(42631),g=t(70515),v=t(38626),_=v.default.div.withConfig({displayName:"indexstyle__ModalStyle",componentId:"sc-qldrgc-0"})(["position:absolute;"," "," display:flex;flex-direction:column;width:","px;overflow:hidden;background-color:",";border:1px solid ",";border-radius:","px;box-shadow:",";"],(function(e){return e.top&&"\n top: ".concat(e.top,"px;\n ")}),(function(e){return e.left&&"\n left: ".concat(e.left,"px;\n ")}),39*g.iI,(function(e){return(e.theme||f.Z).background.dashboard}),(function(e){return(e.theme||f.Z).borders.darkLight}),h.n_,(function(e){return(e.theme||f.Z).shadow.popup})),x=v.default.div.withConfig({displayName:"indexstyle__ContentStyle",componentId:"sc-qldrgc-1"})(["display:flex;flex-direction:column;gap:","px;padding:","px ","px;"],2*g.iI,2.5*g.iI,2*g.iI),j=v.default.div.withConfig({displayName:"indexstyle__ActionsStyle",componentId:"sc-qldrgc-2"})(["display:flex;gap:","px;padding:","px;background-color:",";border-top:1px solid ",";& > *{flex:1;}"],g.iI,2*g.iI,(function(e){return(e.theme||f.Z).background.panel}),(function(e){return(e.theme||f.Z).borders.darkLight})),y=t(72473),b=t(72191),Z=t(79633),m=t(81728),C=t(28598);var P=function(e){var n=e.inProgressRunsCount,t=e.left,i=void 0===t?0:t,l=e.onAllow,r=e.onStop,u=e.pipelineScheduleId,c=e.pipelineUuid,s=e.top,d=void 0===s?0:s,f=e.topOffset,h=void 0===f?0:f,v=(0,o.useRef)(null),P=(0,o.useState)(d+h),k=P[0],w=P[1];return(0,o.useEffect)((function(){var e=null!==v&&void 0!==v&&v.current?v.current.getBoundingClientRect().height:32*g.iI,n=d+h+e>window.innerHeight;w(n?d-e:d+h)}),[i,d,h]),(0,C.jsxs)(_,{left:i,ref:v,top:k,children:[(0,C.jsxs)(x,{children:[(0,C.jsx)(y.uy,{fill:Z.$R,size:b.nz}),(0,C.jsx)(a.ZP,{bold:!0,large:!0,warning:!0,children:"There ".concat(1===n?"is":"are"," currently ").concat((0,m._6)("run",n,!0)," in progress.")}),(0,C.jsx)(a.ZP,{large:!0,children:"Do you want to stop or allow the ".concat((0,m._6)("run",n,!0,!0)," to complete?")})]}),(0,C.jsxs)(j,{children:[(0,C.jsx)(p.ZP,{large:!0,onClick:function(){return r(u,c)},children:"Stop"}),(0,C.jsx)(p.ZP,{large:!0,onClick:function(){return l(u)},children:"Allow"})]})]})},k=t(55485),w=t(48670),I=t(30229),O=t(89515),S=t(38276),R=t(75499),E=t(48381),A=t(69650),D=t(12468),N=t(35686),T=t(77417),q=t(19698),L=t(81655),U=t(41143),z=t(31608),B=t(16488),F=t(3917),V=t(50178),H=t(72619),X=t(95924),$=t(70320),G=t(89538);function K(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function M(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?K(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):K(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var J=1.5*g.iI;var Q=function(e){var n=e.disableActions,t=e.fetchPipelineSchedules,i=e.highlightRowOnHover,r=e.includeCreatedAtColumn,f=e.includePipelineColumn,h=e.pipeline,g=e.pipelineSchedules,v=e.pipelineTriggersByName,_=e.selectedSchedule,x=e.setErrors,j=e.setSelectedSchedule,Z=e.stickyHeader,m=null===h||void 0===h?void 0:h.uuid,K=(0,s.useRouter)(),Q=(0,T.Z)().projectPlatformActivated,W=(0,q.Z)().status,Y=(0,o.useRef)({}),ee=(0,o.useRef)({}),ne=(0,o.useState)(null),te=ne[0],ie=ne[1],le=(0,o.useState)(0),re=le[0],ue=le[1],oe=(0,o.useState)(0),ce=oe[0],se=oe[1],pe=(0,$.qB)(),de=pe?L.O$:{},ae=(0,c.Db)((function(e){return N.ZP.pipelines.useUpdate(e.uuid)({pipeline:e})}),{onSuccess:function(e){return(0,H.wD)(e,{callback:function(){null===t||void 0===t||t()},onErrorCallback:function(e,n){return null===x||void 0===x?void 0:x({errors:n,response:e})}})}}),fe=(0,l.Z)(ae,1)[0],he=(0,c.Db)((function(e){return N.ZP.pipeline_schedules.useUpdate(e.id)({pipeline_schedule:e})}),{onSuccess:function(e){return(0,H.wD)(e,{callback:function(){null===t||void 0===t||t()},onErrorCallback:function(e,n){return null===x||void 0===x?void 0:x({errors:n,response:e})}})}}),ge=(0,l.Z)(he,1)[0],ve=(0,c.Db)((function(e){return N.ZP.pipeline_schedules.useDelete(e)()}),{onSuccess:function(e){return(0,H.wD)(e,{callback:function(){null===t||void 0===t||t(),m?K.push("/pipelines/[pipeline]/triggers","/pipelines/".concat(m,"/triggers")):null===t||void 0===t||t()},onErrorCallback:function(e,n){return x({errors:n,response:e})}})}}),_e=(0,l.Z)(ve,1)[0],xe=[],je=[];n||(xe.push.apply(xe,[null,null]),je.push.apply(je,[{uuid:"Active"},{uuid:"Type"}])),Q&&(xe.push.apply(xe,[null]),je.push.apply(je,[{uuid:"Project"}])),xe.push.apply(xe,[1,2]),je.push.apply(je,[{uuid:"Name"},{uuid:"Description"}]),n||(xe.push.apply(xe,[null]),je.push({uuid:"Frequency"})),xe.push.apply(xe,[1,1,null]),je.push.apply(je,[M(M({},de),{},{uuid:"Next run date"}),{uuid:"Latest status"},{uuid:"Runs"}]),n||(xe.push.apply(xe,[1]),je.push({uuid:"Tags"})),xe.push.apply(xe,[null]),je.push({uuid:"Logs"}),n||(0,V.Ct)()||(xe.push.apply(xe,[null]),je.push({label:function(){return""},uuid:"edit/delete"})),!n&&f&&(je.splice(2,0,{uuid:"Pipeline"}),xe.splice(2,0,1)),!n&&r&&(je.splice(5,0,M(M({},de),{},{uuid:"Created at"})),xe.splice(5,0,null));var ye=(0,G.dd)((function(e){var n=e.inProgressRunsCount,t=e.left,i=e.pipelineScheduleId,l=e.pipelineUuid,r=e.top,u=e.topOffset;return(0,C.jsx)(P,{inProgressRunsCount:n,left:t,onAllow:function(e){me(),ge({id:e,status:I.fq.INACTIVE})},onStop:function(e,n){me(),fe({pipeline_schedule_id:e,status:U.V.CANCELLED,uuid:n}),ge({id:e,status:I.fq.INACTIVE})},pipelineScheduleId:i,pipelineUuid:l,top:r,topOffset:u})}),{},[],{background:!0,uuid:"disable_trigger"}),be=(0,l.Z)(ye,2),Ze=be[0],me=be[1];return(0,C.jsx)(z.cl,{overflowVisible:!0,children:0===g.length?(0,C.jsx)(S.Z,{px:3,py:1,children:(0,C.jsx)(a.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:"No triggers available"})}):(0,C.jsx)(R.Z,{columnFlex:xe,columns:je,highlightRowOnHover:i,isSelectedRow:function(e){return g[e].id===(null===_||void 0===_?void 0:_.id)},onClickRow:j?function(e){return null===j||void 0===j?void 0:j(g[e])}:null,rowVerticalPadding:6,rows:g.map((function(e,t){var i=e.id,l=e.created_at,c=e.description,s=e.next_pipeline_run_date,h=e.pipeline_in_progress_runs_count,g=e.pipeline_runs_count,_=e.pipeline_uuid,x=e.last_pipeline_run_status,j=e.name,Z=e.repo_path,P=e.schedule_interval,R=e.status,N=e.tags,T=I.fq.ACTIVE===R,q=(0,B._U)(P),U=m||_;Y.current[i]=(0,o.createRef)(),ee.current[i]=(0,o.createRef)();var z=null!==v&&void 0!==v&&v[j]?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(S.Z,{mr:1}),(0,C.jsx)(D.Z,{block:!0,label:"This trigger is saved in code.",size:J,widthFitContent:!0,children:(0,C.jsx)(y.EK,{default:!0,size:J})})]}):null,H=[];if(n)H.push.apply(H,[(0,C.jsxs)(k.ZP,{alignItems:"center",children:[(0,C.jsx)(a.ZP,{bold:!0,children:j}),z]},"trigger_name_".concat(t))]);else{var $,G;if(H.push.apply(H,[(0,C.jsx)(D.Z,{block:!0,label:R,size:20,widthFitContent:!0,children:(0,C.jsx)("div",{ref:Y.current[i],style:{position:"relative"},children:(0,C.jsx)(A.Z,{checked:T,compact:!0,onCheck:function(e){return function(e){var n=e.event,t=e.inProgressRunsCount,i=e.pipelineIsActive,l=e.pipelineScheduleId,r=e.pipelineUuid;if((0,X.j)(n),i&&t>0){var u,o=null===(u=Y.current[l])||void 0===u?void 0:u.current,c=null===o||void 0===o?void 0:o.getBoundingClientRect(),s=c.height,p=c.left,d=c.top;Ze({inProgressRunsCount:t,left:p,pipelineScheduleId:l,pipelineUuid:r,top:d,topOffset:s})}else ge({id:l,status:i?I.fq.INACTIVE:I.fq.ACTIVE})}({event:e,inProgressRunsCount:h,pipelineIsActive:T,pipelineScheduleId:i,pipelineUuid:_})},purpleBackground:!0})})},"trigger_enabled_".concat(t)),(0,C.jsx)(a.ZP,{default:!0,monospace:!0,children:null===($=I.Z4[e.schedule_type])||void 0===$?void 0:$.call(I.Z4)},"trigger_type_".concat(t))]),Q)H.push.apply(H,[(0,C.jsx)(a.ZP,{default:!0,monospace:!0,children:null===Z||void 0===Z||null===(G=Z.replace((null===W||void 0===W?void 0:W.repo_path_root)||"",""))||void 0===G?void 0:G.slice(1)},"project_".concat(t))]);H.push.apply(H,[(0,C.jsxs)(k.ZP,{alignItems:"center",children:[(0,C.jsx)(u(),{as:"/pipelines/".concat(U,"/triggers/").concat(i),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,C.jsx)(w.Z,{bold:!0,onClick:function(e){(0,X.j)(e),K.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(U,"/triggers/").concat(i))},sky:!0,children:j})}),z]},"trigger_name_".concat(t))])}return H.push.apply(H,[(0,C.jsx)(a.ZP,{default:!0,children:c},"trigger_description_".concat(t))]),n||H.push((0,C.jsx)(a.ZP,{default:!0,monospace:!0,children:pe&&q?(0,B.lO)(P):P},"trigger_frequency_".concat(t))),H.push.apply(H,[(0,C.jsx)(a.ZP,{monospace:!0,small:!0,title:s?"UTC: ".concat(s.slice(0,19)):null,children:s?pe?(0,F.XG)(s,pe):(0,F.d$)(s,{includeSeconds:!0,utcFormat:!0}):(0,C.jsx)(C.Fragment,{children:"\u2014"})},"trigger_next_run_date_".concat(t)),(0,o.createElement)(a.ZP,M(M({},(0,L.NC)(x)),{},{key:"latest_run_status_".concat(t)}),x||"N/A"),(0,C.jsx)(a.ZP,{default:!0,monospace:!0,children:g||"0"},"trigger_run_count_".concat(t))]),n||H.push((0,C.jsx)("div",{children:(0,C.jsx)(E.Z,{tags:null===N||void 0===N?void 0:N.map((function(e){return{uuid:e}}))})},"pipeline_tags_".concat(t))),H.push((0,C.jsx)(p.ZP,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return K.push("/pipelines/".concat(U,"/logs?pipeline_schedule_id[]=").concat(i))},children:(0,C.jsx)(y.UL,{default:!0,size:b.bL})},"logs_button_".concat(t))),n||(0,V.Ct)()||H.push((0,C.jsxs)(k.ZP,{children:[(0,C.jsx)(p.ZP,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return K.push("/pipelines/".concat(U,"/triggers/").concat(i,"/edit"))},title:"Edit",children:(0,C.jsx)(y.I8,{default:!0,size:b.bL})}),(0,C.jsx)(S.Z,{mr:1}),(0,C.jsx)(p.ZP,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){var e,n,t,l;ie(i),ue((null===(e=ee.current[i])||void 0===e||null===(n=e.current)||void 0===n?void 0:n.offsetTop)||0),se((null===(t=ee.current[i])||void 0===t||null===(l=t.current)||void 0===l?void 0:l.offsetLeft)||0)},ref:ee.current[i],title:"Delete",children:(0,C.jsx)(y.rF,{default:!0,size:b.bL})}),(0,C.jsx)(d.Z,{onClickOutside:function(){return ie(null)},open:te===i,children:(0,C.jsx)(O.Z,{danger:!0,left:(ce||0)-L.nH,onCancel:function(){return ie(null)},onClick:function(){ie(null),_e(i)},title:"Are you sure you want to delete the trigger ".concat(j,"?"),top:(re||0)-(t<=1?L.oz:L.OK),width:L.Xx})})]},"edit_delete_buttons_".concat(t))),!n&&f&&H.splice(2,0,(0,C.jsx)(a.ZP,{default:!0,monospace:!0,children:U},"pipeline_name_".concat(t))),!n&&r&&H.splice(5,0,(0,C.jsx)(a.ZP,{default:!0,monospace:!0,small:!0,title:l?(0,F._6)(l):null,children:(0,F.XG)(null===l||void 0===l?void 0:l.slice(0,19),pe)},"created_at_".concat(t))),H})),stickyHeader:Z,uuid:"pipeline-triggers"})})}},19698:function(e,n,t){var i=t(82684),l=t(35686);n.Z=function(){var e=l.ZP.statuses.list().data;return{status:(0,i.useMemo)((function(){var n;return null===e||void 0===e||null===(n=e.statuses)||void 0===n?void 0:n[0]}),[e])}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[976],{4006:function(t,e,n){n.d(e,{Z:function(){return dt}});var r=n(75582),i=n(82394),o=n(92083),a=n.n(o),l=n(26304),c=n(26226),u=n(84969),d=n(90948),s=n(65743),h=n(39048),f=n(79487),p=n(29989),m=n(61655),g=n(16853),x=n(65376),y=n(55485),v=n(30160),b=n(94035),j=n(95363),k=n(70515),Z=n(21831),w=n(82684),O=n(38626),S=n(48072),P=n(24903),A=n(98677),I=n(84181),L=n(44897),T=n(79633),C=n(61896),M=n(81728);function D(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function E(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?D(Object(n),!0).forEach((function(e){(0,i.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var F={bottom:k.iI*(3+k.cd),left:k.iI*k.cd,right:k.iI*k.cd,top:k.iI*k.cd};function N(t,e){return Math.max.apply(Math,(0,Z.Z)(t.map(e)))}function _(t){var e=t.data,n=t.height,r=t.keyForYData,i=t.large,o=t.margin,a=void 0===o?{}:o,l=t.orientationVertical,c=void 0!==l&&l,u=t.showTooltip,d=t.width,s=t.yLabelFormat,h=(0,w.useContext)(O.ThemeContext),f=(0,w.useCallback)((function(t){return t[r]}),[r]),p=s;p||(p=function(t){return t.length>20?"".concat(t.substring(0,20),"..."):t});var m=i?C.iD:C.J5,g=E(E({},F),a),x=e.slice(Math.max(0,e.length-50)),y=(0,w.useMemo)((function(){return Object.keys((null===x||void 0===x?void 0:x[0])||{}).filter((function(t){return t!==r}))}),[x,r]),v=(0,P.Z)({domain:y,range:[T.a$,T.Ej,T.hM,T.ZA,T.$R,T.X_,T.er,T.hl,T.nQ]}),b=(0,w.useMemo)((function(){return x.map(f)}),[x,f]),j=(0,A.Z)({domain:b,padding:.1}),k=(0,A.Z)({domain:y,padding:.1}),D=(0,I.Z)({domain:[0,N(x,(function(t){return N(y,(function(e){return Number(t[e])}))}))]}),_={active:(null===h||void 0===h?void 0:h.content.default)||L.Z.content.default,backgroundPrimary:(null===h||void 0===h?void 0:h.chart.backgroundPrimary)||L.Z.chart.backgroundPrimary,backgroundSecondary:(null===h||void 0===h?void 0:h.chart.backgroundSecondary)||L.Z.chart.backgroundSecondary,muted:(null===h||void 0===h?void 0:h.content.muted)||L.Z.content.muted,primary:(null===h||void 0===h?void 0:h.chart.primary)||L.Z.chart.primary,tooltipBackground:(null===h||void 0===h?void 0:h.background.navigation)||L.Z.background.navigation},R=b;c&&(R=x.reduce((function(t,e){return t.concat(y.map((function(t){var n=e[t];return(0,M.HW)(n)?parseInt(String(n)):n})))}),[]));var B=Math.min(Math.max.apply(Math,(0,Z.Z)(R.map((function(t){return String(t).length})))),20);g.left+=7*B;var V=d-(g.left+g.right),z=n-(g.top+g.bottom);c?(j.rangeRound([0,V]),D.rangeRound([z,0])):(j.rangeRound([z,0]),D.rangeRound([0,V])),k.rangeRound([0,j.bandwidth()]);var Y=x.map(f).length,H=0;c||(H=j(R[Y-1]));var J=(0,w.useCallback)((function(t){var e=(0,S.Z)(t)||{x:0,y:0},n=e.x,r=e.y,i=n-g.left,o=r-g.top,a=0;a=c?(i-H/2)/(V-H):1-(o-H/2)/(z-H);var l=Math.floor(a*Y),d=x[l];"undefined"===typeof d&&(d=x[l-1]),c?i>H&&i<V+g.left-H&&u({tooltipData:d,tooltipLeft:n,tooltipTop:r}):o>H&&o<z-H&&u({tooltipData:d,tooltipLeft:n,tooltipTop:r})}),[x,Y,g.left,g.top,c,u,H,V,z]);return{colorScale:v,colors:_,data:x,fontSize:m,handleTooltip:J,margin:g,tempScale:D,tickValues:R,xKeys:y,xMax:V,y1Scale:k,yLabelFormat:p,yMax:z,yScale:j,ySerialize:f}}var R=n(28598),B=["height","width","xAxisLabel","yAxisLabel"];function V(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function z(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?V(Object(n),!0).forEach((function(e){(0,i.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):V(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Y=3*k.iI,H=(k.iI,k.iI,k.iI,(0,m.Z)((function(t){var e=t.data,n=t.height,i=t.hideTooltip,o=t.keyForYData,a=void 0===o?"__y":o,l=t.large,c=t.margin,m=void 0===c?{}:c,y=t.renderNoDataText,b=t.renderTooltipContent,k=t.showTooltip,Z=t.tooltipData,w=t.tooltipLeft,O=t.tooltipOpen,S=t.tooltipTop,P=t.width,A=t.xAxisLabel,I=t.xNumTicks,L=t.yLabelFormat,T=_({data:e,height:n,keyForYData:a,large:l,margin:m,showTooltip:k,width:P,yLabelFormat:L}),C=T.colorScale,D=T.colors,E=T.data,F=T.fontSize,N=T.handleTooltip,B=T.margin,V=T.tempScale,H=T.tickValues,J=T.xKeys,W=T.xMax,X=T.y1Scale,K=T.yLabelFormat,G=T.yMax,U=T.yScale,q=T.ySerialize,Q=[];Math.min((null===H||void 0===H?void 0:H.length)||0,Math.floor(n/Y));return null===H||void 0===H||H.forEach((function(t){Q.push(t)})),P<10?null:(0,R.jsxs)("div",{children:[(0,R.jsxs)("svg",{height:n,width:P,children:[y&&!(null!==E&&void 0!==E&&E.length)&&(0,R.jsx)("text",{fill:D.active,dominantBaseline:"middle",textAnchor:"middle",fontFamily:j.ry,fontSize:F,x:"50%",y:"50%",children:y()}),(0,R.jsx)(s.Z,{fill:"transparent",height:n-(B.top+B.bottom),onMouseLeave:function(){return i()},onMouseMove:N,onTouchMove:N,onTouchStart:N,rx:14,width:P-(B.left+B.right),x:B.left,y:B.top}),(null===E||void 0===E?void 0:E.length)&&(0,R.jsxs)(p.Z,{left:B.left,top:B.top,children:[(0,R.jsx)(h.Z,{color:C,data:E,keys:J,width:W,xScale:V,y0:q,y0Scale:U,y1Scale:X,children:function(t){return t.map((function(t){return(0,R.jsx)(p.Z,{top:t.y0,children:t.bars.map((function(e){return(0,R.jsx)("g",{children:(0,R.jsx)(R.Fragment,{children:(0,R.jsx)("rect",{fill:e.color,height:e.height,pointerEvents:"none",rx:4,width:e.width,x:e.x,y:e.y})})},"".concat(t.index,"-").concat(e.index,"-").concat(e.key))}))},"bar-group-horizontal-".concat(t.index,"-").concat(t.y0))}))}}),(0,R.jsx)(u.Z,{hideTicks:!0,scale:U,stroke:D.muted,tickFormat:function(t){return K(t)},tickLabelProps:function(){return{fill:D.active,fontFamily:j.ry,fontSize:F,style:{width:"10px"},textAnchor:"end"}},tickStroke:D.muted,tickValues:Q,top:2}),(0,R.jsx)(d.Z,{label:A,labelProps:{fill:D.muted,fontFamily:j.ry,fontSize:F,textAnchor:"middle"},numTicks:I,scale:V,stroke:D.muted,tickLabelProps:function(){return{fill:D.active,fontFamily:j.ry,fontSize:F,textAnchor:"middle"}},tickStroke:D.muted,top:G})]}),Z&&(0,R.jsx)("g",{children:(0,R.jsx)(f.Z,{from:{x:B.left,y:S},pointerEvents:"none",stroke:D.active,strokeDasharray:"5,2",strokeWidth:1,to:{x:W+B.left,y:S}})})]}),O&&Z&&(0,R.jsxs)(g.Z,{left:w,style:z(z({},x.j),{},{backgroundColor:D.tooltipBackground}),top:S,children:[b&&b(Z),!b&&Object.entries(Z).map((function(t){var e=(0,r.Z)(t,2),n=e[0],i=e[1];if(a!==n){var o=i;return(0,M.HW)(o)&&String(o).split(".").length>=2&&(o=o.toFixed(4)),(0,R.jsxs)(v.ZP,{inverted:!0,small:!0,children:[n,": ",o]},n)}}))]})]})})));var J=function(t){var e,n=t.height,r=t.width,i=t.xAxisLabel,o=t.yAxisLabel,a=(0,l.Z)(t,B);return e="undefined"===typeof r?"100%":o?0===r?r:r-28:r,(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)("div",{style:{display:"flex",height:n,marginBottom:i?k.iI:null,width:"100%"},children:[o&&(0,R.jsx)(y.ZP,{alignItems:"center",fullHeight:!0,justifyContent:"center",width:28,children:(0,R.jsx)(b.Z,{children:(0,R.jsx)(v.ZP,{center:!0,muted:!0,small:!0,children:o})})}),(0,R.jsx)("div",{style:{height:n,width:e},children:(0,R.jsx)(c.Z,{children:function(t){var e=t.width,n=t.height;return(0,R.jsx)(H,z(z({},a),{},{height:n,width:e}))}})})]}),i&&(0,R.jsx)("div",{style:{paddingLeft:o?36:0,paddingTop:4},children:(0,R.jsx)(v.ZP,{center:!0,muted:!0,small:!0,children:i})})]})},W=n(95422),X=["keyForYData"],K=["height","width","xAxisLabel","yAxisLabel"];function G(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function U(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?G(Object(n),!0).forEach((function(e){(0,i.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var q=6*k.iI,Q=(0,m.Z)((function(t){var e=t.keyForYData,n=void 0===e?"__y":e,i=(0,l.Z)(t,X),o=i.height,a=i.hideTooltip,c=i.renderNoDataText,h=i.renderTooltipContent,m=i.tooltipData,y=i.tooltipLeft,b=i.tooltipOpen,k=i.tooltipTop,Z=i.width,w=i.xLabelFormat,O=i.xNumTicks,S=i.yNumTicks,P=_(U(U({},i),{},{keyForYData:n,orientationVertical:!0})),A=P.colorScale,I=P.colors,L=P.data,T=P.fontSize,C=P.handleTooltip,D=P.margin,E=P.tempScale,F=(P.tickValues,P.xKeys),N=(P.xMax,P.y1Scale),B=P.yLabelFormat,V=P.yMax,z=P.yScale,Y=P.ySerialize,H=Math.min(O,Z/q);return Z<10?null:(0,R.jsxs)("div",{children:[(0,R.jsxs)("svg",{height:o,width:Z,children:[c&&!(null!==L&&void 0!==L&&L.length)&&(0,R.jsx)("text",{fill:I.active,dominantBaseline:"middle",textAnchor:"middle",fontFamily:j.ry,fontSize:T,x:"50%",y:"50%",children:c()}),(null===L||void 0===L?void 0:L.length)&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(s.Z,{fill:"transparent",height:o-(D.top+D.bottom),onMouseLeave:function(){return a()},onMouseMove:C,onTouchMove:C,onTouchStart:C,rx:14,width:Z-(D.left+D.right),x:D.left,y:2*D.top}),(0,R.jsxs)(p.Z,{top:D.top,children:[(0,R.jsx)(W.Z,{color:A,data:L,height:V,keys:F,x0:Y,x0Scale:z,x1Scale:N,yScale:E,children:function(t){return t.map((function(t){return(0,R.jsx)(p.Z,{left:t.x0+D.left,top:D.top,children:t.bars.map((function(e){return(0,R.jsx)("g",{children:(0,R.jsx)("rect",{fill:e.color,height:e.height,pointerEvents:"none",rx:4,width:e.width,x:e.x,y:e.y})},"".concat(t.index,"-").concat(e.index,"-").concat(e.key))}))},"bar-group-horizontal-".concat(t.index,"-").concat(t.x0))}))}}),(0,R.jsx)(u.Z,{left:D.left,numTicks:S,scale:E,stroke:I.muted,tickFormat:function(t){return B(t)},tickLabelProps:function(){return{fill:I.active,fontFamily:j.ry,fontSize:T,textAnchor:"end",transform:"translate(-2,2.5)"}},tickStroke:I.muted,top:D.top}),(0,R.jsx)(d.Z,{hideTicks:!0,left:D.left,numTicks:H,scale:z,stroke:I.muted,tickFormat:w,tickLabelProps:function(){return{fill:I.active,fontFamily:j.ry,fontSize:T,textAnchor:"middle"}},tickStroke:I.muted,top:V+D.top})]})]}),m&&(0,R.jsx)("g",{children:(0,R.jsx)(f.Z,{from:{x:y,y:2*D.top},pointerEvents:"none",stroke:I.active,strokeDasharray:"5,2",strokeWidth:1,to:{x:y,y:V+2*D.top}})})]}),b&&m&&(0,R.jsxs)(g.Z,{left:y,style:U(U({},x.j),{},{backgroundColor:I.tooltipBackground}),top:k,children:[h&&h(m),!h&&Object.entries(m).map((function(t){var e=(0,r.Z)(t,2),i=e[0],o=e[1];if(n!==i){var a=o;return(0,M.HW)(a)&&String(a).split(".").length>=2&&(a=a.toFixed(4)),(0,R.jsxs)(v.ZP,{inverted:!0,small:!0,children:[i,": ",a]},i)}})),(0,R.jsx)("br",{}),(0,R.jsxs)(v.ZP,{inverted:!0,small:!0,children:[w&&w(Y(m)),!w&&Y(m)]})]})]})}));var $=function(t){var e=t.height,n=t.width,r=t.xAxisLabel,i=t.yAxisLabel,o=(0,l.Z)(t,K);return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)("div",{style:{display:"flex",height:e,marginBottom:r?k.iI:null,width:"100%"},children:[i&&(0,R.jsx)(y.ZP,{alignItems:"center",fullHeight:!0,justifyContent:"center",width:28,children:(0,R.jsx)(b.Z,{children:(0,R.jsx)(v.ZP,{center:!0,muted:!0,small:!0,children:i})})}),(0,R.jsx)("div",{style:{height:e,width:i?0===n?n:n-28:n},children:(0,R.jsx)(c.Z,{children:function(t){var e=t.height,n=t.width;return(0,R.jsx)(Q,U(U({},o),{},{height:e,width:n}))}})})]}),r&&(0,R.jsx)("div",{style:{paddingLeft:i?36:0,paddingTop:4},children:(0,R.jsx)(v.ZP,{center:!0,muted:!0,small:!0,children:r})})]})},tt=n(93859),et=n(52729),nt=n(74168),rt=n(87862),it=n(97301),ot=n(35058),at=n(3917),lt=n(86735);function ct(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ut(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ct(Object(n),!0).forEach((function(e){(0,i.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ct(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var dt=function(t){var e,n=t.block,o=t.data,l=t.width,c=t.xAxisLabel,u=n.configuration,d=void 0===u?{}:u,s=d||{},h=s.chart_style,f=s.chart_type,p=s.y_sort_order,m=d[ot.JJ]||it.lA,g=(null===d||void 0===d||null===(e=d[ot.bE])||void 0===e?void 0:e.map((function(t){return(0,ot.c0)(t)})))||[],x=at.n1,y=d[ot.Yg];if([ot.aE.HOUR,ot.aE.MINUTE,ot.aE.SECOND].includes(y)&&(x=at.OC),ot.oV.BAR_CHART===f||ot.oV.TIME_SERIES_BAR_CHART===f){var b=o.x,j=o.y,Z=ot.oV.TIME_SERIES_BAR_CHART===f;if(b&&j&&Array.isArray(b)&&Array.isArray(j)){var w,O=null===(w=d[ot.eN])||void 0===w?void 0:w.join(", "),S=null===g||void 0===g?void 0:g.join(", ");g.length||g.push(ot.rj);var P=g[0],A=b.map((function(t,e){return ut({__y:t},g.reduce((function(t,n,r){var o,a=null===j||void 0===j||null===(o=j[r])||void 0===o?void 0:o[e];return"undefined"===typeof a?t:ut(ut({},t),{},(0,i.Z)({},n,a))}),{}))}));ot.JT.HORIZONTAL===h?ot.MP.ASCENDING===p?A=(0,lt.YC)(A,(function(t){return t[P]}),{ascending:!1}):ot.MP.DESCENDING===p&&(A=(0,lt.YC)(A,(function(t){return t[P]}),{ascending:!0})):ot.JT.VERTICAL===h&&(ot.MP.ASCENDING===p?A=(0,lt.YC)(A,(function(t){return t[P]}),{ascending:!0}):ot.MP.DESCENDING===p&&(A=(0,lt.YC)(A,(function(t){return t[P]}),{ascending:!1})));var I={data:A,height:m,renderNoDataText:function(){return"No data matching query"},width:l,xNumTicks:3};return ot.JT.HORIZONTAL===h?(0,R.jsx)(J,ut(ut({},I),{},{xAxisLabel:S||d[ot.rj],yAxisLabel:c||O||d[ot.a3]})):(0,R.jsx)($,ut(ut({},I),{},{xAxisLabel:c||O,xLabelFormat:function(t){return Z?a()(1e3*t).format(at.n1):t},xNumTicks:A.length,yAxisLabel:S,yNumTicks:5}))}}else if(ot.oV.HISTOGRAM===f){var L,T=o.x,C=o.y,D=null===(L=d[ot.eN])||void 0===L?void 0:L.join(", ");if(T&&C&&Array.isArray(T))return(0,R.jsx)(et.Z,{data:T.map((function(t,e){var n,r=t.max,i=t.min;return[r,null===C||void 0===C||null===(n=C[e])||void 0===n?void 0:n.value,i]})),height:m,width:l,large:!0,margin:{left:5*k.iI,right:1*k.iI,top:3*k.iI},noPadding:!0,renderTooltipContent:function(t){var e=(0,r.Z)(t,3),n=e[0],i=e[1],o=e[2];return(0,R.jsxs)(v.ZP,{inverted:!0,monospace:!0,small:!0,children:["Count : ",i,(0,R.jsx)("br",{}),"Bucket: ",o,"-",n]})},showAxisLabels:!0,showYAxisLabels:!0,showZeroes:!0,sortData:function(t){return(0,lt.YC)(t,"[0]")},xAxisLabel:c||D||d[ot.a3],yAxisLabel:D?"count(".concat(D,")"):d[ot.rj]})}else if(ot.oV.LINE_CHART===f||ot.oV.TIME_SERIES_LINE_CHART===f){var E=o.x,F=o.y,N=ot.oV.TIME_SERIES_LINE_CHART===f;if(E&&F&&Array.isArray(E)&&Array.isArray(F)&&Array.isArray(null===F||void 0===F?void 0:F[0])){var _,B=g;d[ot.e]&&(B=d[ot.e].split(",").map((function(t){return t.trim()})));var V=E.map((function(t,e){return{x:t,y:(0,lt.w6)(F.length).map((function(t,n){var r=F[n][e];return"undefined"===typeof r||null===r?0:r}))}})),z=null===(_=d[ot.eN])||void 0===_?void 0:_.join(", "),Y=g.join(", ");return(0,R.jsx)(nt.Z,{data:V,height:m,lineLegendNames:B,margin:{bottom:8*k.iI,left:5*k.iI},noCurve:!0,renderXTooltipContent:function(t){t.index;var e=t.x,n=d[ot.a3],r=e;return d[ot.eN]&&(n=d[ot.eN].map(String).join(", ")),N&&(r=a()(1e3*e).format(x)),(0,R.jsxs)(v.ZP,{inverted:!0,small:!0,children:[n,": ",r]})},renderYTooltipContent:function(t,e){var n=t.y;return(0,R.jsxs)(v.ZP,{inverted:!0,small:!0,children:[B&&B[e]&&"".concat(B[e],": "),n&&(0,M.x6)((0,M.QV)(n[e],4))]})},width:l?l-(3*k.iI+3):l,xAxisLabel:c||z||String(d[ot.a3]||""),xLabelFormat:function(t){return N?a()(1e3*t).format(at.n1):t},yAxisLabel:Y||String(d[ot.rj]),yLabelFormat:function(t){return t}})}}else if(ot.oV.PIE_CHART===f){var H,W=o[String(d[ot.a3]||ot.a3)],X=null===(H=d[ot.eN])||void 0===H?void 0:H.join(", ");if(W)return(0,R.jsx)(rt.Z,{data:Object.entries(W),getX:function(t){var e=(0,r.Z)(t,2),n=e[0],i=e[1];return"".concat(n," (").concat((0,M.x6)(i),")")},getY:function(t){return(0,r.Z)(t,2)[1]},height:m,width:l,xAxisLabel:c||X||String(d[ot.a3]||"")})}else if(ot.oV.TABLE===f){var K=o.index,G=o.x,U=o.y;return Array.isArray(G)&&Array.isArray(U)&&Array.isArray(U[0])&&(0,R.jsx)(tt.Z,{columns:G,height:d[ot.JJ]?null:m,index:K,maxHeight:d[ot.JJ]?m:null,noBorderBottom:!0,noBorderLeft:!0,noBorderRight:!0,noBorderTop:!0,rows:U,width:l})}return(0,R.jsx)("div",{})}},97301:function(t,e,n){n.d(e,{T7:function(){return d},Tb:function(){return u},lA:function(){return l},pM:function(){return c},y9:function(){return s}});var r=n(38626),i=n(44897),o=n(42631),a=n(70515),l=40*a.iI,c=r.default.div.withConfig({displayName:"indexstyle__ChartBlockStyle",componentId:"sc-1c3ufnj-0"})(["border-radius:","px;margin-left:","px;margin-right:","px;margin-top:","px;",""],o.n_,.5*a.iI,.5*a.iI,1*a.iI,(function(t){return"\n background-color: ".concat((t.theme.background||i.Z.background).codeArea,";\n ")})),u=r.default.div.withConfig({displayName:"indexstyle__ConfigurationOptionsStyle",componentId:"sc-1c3ufnj-1"})(["flex:4;padding-left:","px;padding-right:","px;"],1*a.iI,1*a.iI),d=r.default.div.withConfig({displayName:"indexstyle__CodeStyle",componentId:"sc-1c3ufnj-2"})(["padding-top:","px;",""],a.iI/2,(function(t){return"\n background-color: ".concat((t.theme.background||i.Z.background).codeTextarea,";\n ")})),s=r.default.div.withConfig({displayName:"indexstyle__CodeHelperStyle",componentId:"sc-1c3ufnj-3"})(["margin-bottom:","px;padding-bottom:","px;padding-left:","px;",""],a.cd*a.iI,a.iI,a.iI,(function(t){return"\n border-bottom: 1px solid ".concat((t.theme.borders||i.Z.borders).medium,";\n ")}))},52729:function(t,e,n){n.d(e,{Z:function(){return V}});var r=n(26304),i=n(21831),o=n(82394),a=n(82684),l=n(26226),c=n(84969),u=n(90948),d=n(65743),s=n(29989),h=n(38626),f=n(61655),p=n(16853),m=n(65376),g=n(48072),x=n(98677),y=n(84181),v=n(55485),b=n(4190),j=n(30160),k=n(94035),Z=n(70987),w=n(79633),O=n(89370),S=n(95363),P=n(61896),A=n(70515),I=n(38469),L=n(6568),T=function(t){return t.slice(0,10)},C=function(t,e){var n=t.toISOString().slice(0,10),r=e.toISOString().slice(0,10);return"".concat(n,":").concat(r)},M=n(79221),D=n(98684),E=n(28598),F=["height","loading","selected","width","xAxisLabel","yAxisLabel"];function N(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function _(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?N(Object(n),!0).forEach((function(e){(0,o.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var R={bottom:A.iI,left:3*A.iI,right:0,top:1*A.iI},B=(0,f.Z)((function(t){var e=t.columnType,n=t.data,r=void 0===n?[]:n,o=t.getBarColor,l=t.getXValue,f=t.getYValue,v=t.height,b=t.hideTooltip,k=t.large,F=t.margin,N=void 0===F?{}:F,B=t.muted,V=t.noPadding,z=t.numberOfXTicks,Y=t.renderTooltipContent,H=t.selected,J=t.showAxisLabels,W=t.showTooltip,X=t.showYAxisLabels,K=t.showZeroes,G=t.sortData,U=t.tooltipData,q=t.tooltipLeft,Q=t.tooltipOpen,$=t.tooltipTop,tt=t.width,et=t.xLabelFormat,nt=t.yLabelFormat,rt=k?P.J5:P.VK,it=(0,a.useCallback)((function(t){return l?l(t):t[0]}),[l]),ot=(0,a.useCallback)((function(t){return f?f(t):t[1]}),[f]),at=(0,a.useContext)(h.ThemeContext),lt=e===O.RL.DATETIME,ct=_(_({},R),N);J&&(ct=_(_({},ct),{},{left:ct.left+A.iI}));var ut=G?G(r):r.sort((function(t,e){return e[1]-t[1]})),dt=lt?r.sort((function(t,e){return new Date(t[0])-new Date(e[0])})).filter((function(t){return!!t[0]})):ut.slice(0,60),st=tt-(ct.left+ct.right),ht=v-(ct.bottom+ct.top),ft=lt?function(t,e){var n,r=t.map((function(t){return new Date(t[0])})).sort((function(t,e){return t-e}));return(0,L.Z)({domain:(n=r,[(0,I.Z)(n[0]),(0,I.Z)(n[n.length-1])]),nice:!0,range:[0,e]})}(dt,st):null,pt=function(t,e){if(null===e)return{};var n=e.ticks().map((function(t){return t.toISOString()})),r={},i=0,o=1;return t.forEach((function(t){var e=new Date(t[0]),a=t[1],l=n[i],c=n[o];if(l&&c){var u=new Date(l),d=new Date(c),s=C(u,d);if(e>=u&&e<d)r[s]=(r[s]||0)+a;else for(;o<n.length||!r[s];)if(i+=1,o+=1,u=new Date(n[i]),d=new Date(n[o]),s=C(u,d),e>=u&&e<d)return void(r[s]=(r[s]||0)+a)}})),n.reduce((function(t,e,n,r){if(0===n)return t;var i=T(e),o=T(r[n-1]);return t.push("".concat(o,":").concat(i)),t}),[]).forEach((function(t){r[t]=r[t]||0})),r}(dt,ft);dt=ft?Object.entries(pt).sort((function(t,e){return new Date(T(t[0]))-new Date(T(e[0]))})):dt;var mt=ft?Math.max.apply(Math,(0,i.Z)(Object.values(pt))):0,gt=dt.reduce((function(t,e){return(0!==ot(e)||lt||K)&&t.push(it(e)),t}),[]),xt=gt.length,yt=function(t,e,n){return n?.05:t>=30&&e<300?.5:t>=15?.3:t>=5?.1:t>2?.05:2===t?.025:0}(xt,tt,lt),vt=(0,x.Z)({domain:gt,paddingInner:V?null:yt,range:[0,st],round:!1}),bt=(0,y.Z)({domain:[0,Math.max.apply(Math,(0,i.Z)(dt.map(ot)))],range:[ht,0],round:!0}),jt=(0,D.K)(at),kt={active:((null===at||void 0===at?void 0:at.content)||Z.Z.content).active,default:jt[0],muted:((null===at||void 0===at?void 0:at.monotone)||Z.Z.monotone).gray,selected:((null===at||void 0===at?void 0:at.elevation)||Z.Z.elevation).visualizationAccent},Zt=kt.default;B?Zt=kt.muted:H&&(Zt=kt.selected);var wt=xt?lt?mt:Math.max.apply(Math,(0,i.Z)(dt.map((function(t){return ot(t)})))):0,Ot=Math.floor(wt/6),St=[0],Pt=0;if(wt>6)for(;Pt<wt;)St.push(Pt+Ot),Pt+=Ot;else for(;Pt<=wt;)St.push(Pt+1),Pt+=1;wt>9999?ct=_(_({},ct),{},{left:k?8*A.iI:4.1*A.iI}):wt>999&&(ct=_(_({},ct),{},{left:k?5*A.iI:3.6*A.iI}));var At=lt?2.25:0,It=xt<10||e===O.RL.NUMBER||e===O.RL.NUMBER_WITH_DECIMALS||lt||X,Lt=(0,a.useCallback)((function(t){var e=(0,g.Z)(t)||{x:0,y:0},n=e.x,r=e.y,i=(n-(J?ct.left:0))/st,o=Math.floor(xt*i),a=dt[o];"undefined"===typeof a&&(a=dt[0]);var l=it(a);l=l.length>15?"".concat(l.slice(0,21)):l;var c=Y?Y(a):"".concat(l," (").concat(ot(a),")");W({tooltipData:c,tooltipLeft:n-ct.left,tooltipTop:r+ct.top})}),[dt,xt,it,ot,ct.left,ct.top,Y,J,W,tt]);return tt<10||!r.length?null:(0,E.jsxs)("div",{children:[(0,E.jsxs)("svg",{height:v+ct.bottom*(lt?7.5:3),width:tt,children:[(0,E.jsx)(s.Z,{left:J?ct.left:0,top:ct.top+At,children:dt.reduce((function(t,e){var n=it(e),r=ot(e);if(0!==r){var i,a=vt.bandwidth(),l=ht-(null!==(i=bt(r))&&void 0!==i?i:0),c=vt(n),u=ht-l;t.push((0,E.jsx)(d.Z,{fill:o?o(e):Zt,height:l,onMouseLeave:function(){return b()},onMouseMove:Lt,onTouchMove:Lt,onTouchStart:Lt,width:a,x:c,y:u},"bar-".concat(n)))}return t}),[])}),J&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(c.Z,{left:ct.left,scale:bt,stroke:kt.muted,tickFormat:function(t){return nt?nt(t):(0,M.P5)(t)},tickLabelProps:function(){return{fill:kt.active,fontFamily:S.ry,fontSize:rt,textAnchor:"end",transform:"translate(-2,2.5)"}},tickStroke:kt.muted,tickValues:St,top:ct.top+At}),(0,E.jsx)(u.Z,{left:ct.left,numTicks:lt?void 0:z||6,orientation:"top",scale:ft||vt,stroke:kt.muted,tickFormat:function(t){return et?et(String(t)):lt?t.toISOString().slice(0,10):String(t)},tickLabelProps:function(t){return{fill:It?kt.active:"transparent",fontFamily:S.ry,fontSize:rt,textAnchor:"middle",transform:lt?"rotate(-90,".concat(ft(t),",0) translate(-33,10)"):"translate(0, ".concat(3*ct.bottom,")")}},tickLineProps:{transform:"translate(0,".concat(A.iI,")")},tickStroke:It?kt.muted:"transparent",top:ht+ct.top+At})]})]}),Q&&U&&(0,E.jsx)(p.Z,{left:q,style:m.j,top:$,children:(0,E.jsx)(j.ZP,{color:w.E5,small:!0,children:U})})]})}));var V=function(t){var e=t.height,n=t.loading,i=t.selected,o=t.width,a=t.xAxisLabel,c=t.yAxisLabel,u=(0,r.Z)(t,F);return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)("div",{style:{display:"flex",height:e,marginBottom:A.iI,width:"100%"},children:[c&&(0,E.jsx)(v.ZP,{alignItems:"center",fullHeight:!0,justifyContent:"center",width:28,children:(0,E.jsx)(k.Z,{children:(0,E.jsx)(j.ZP,{center:!0,muted:!0,small:!0,children:c})})}),(0,E.jsxs)("div",{style:{height:e,width:c?0===o?o:o-28:o},children:[n&&(0,E.jsx)(b.Z,{}),!n&&(0,E.jsx)(l.Z,{children:function(t){var e=t.height,n=t.width;return(0,E.jsx)(B,_(_({},u),{},{height:e,selected:i,width:n}))}})]})]}),a&&(0,E.jsx)("div",{style:{paddingLeft:c?36:0,paddingTop:4},children:(0,E.jsx)(j.ZP,{center:!0,muted:!0,small:!0,children:a})})]})}},74168:function(t,e,n){var r=n(26304),i=n(21831),o=n(82394),a=n(82684),l=n(26226),c=n(38626),u=n(90948),d=n(84969),s=n(65743),h=n(85587),f=n(79487),p=n(52136),m=n(67778),g=n(29989),x=n(17066),y=n(84482),v=n(76771),b=n(98889),j=n(65376),k=n(61655),Z=n(97745),w=n(48072),O=n(10103),S=n(84181),P=n(24903),A=n(55485),I=n(30160),L=n(94035),T=n(44897),C=n(8454),M=n(79633),D=n(95363),E=n(61896),F=n(70515),N=n(86735),_=n(79221),R=n(98684),B=n(28598),V=["areaBetweenLines","data","events","height","lineLegendNames","margin","width","xAxisLabel","xLabelFormat","yAxisLabel","yLabelFormat"];function z(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Y(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?z(Object(n),!0).forEach((function(e){(0,o.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var H=Y(Y({},j.j),{},{backgroundColor:T.Z.background.muted,border:"none"}),J=(0,k.Z)((function(t){var e=t.areaBetweenLines,n=t.data,r=t.events,o=void 0!==r&&r,l=t.getX,k=t.getY,A=t.getYScaleValues,L=t.gridProps,V=void 0===L?{}:L,z=t.height,J=t.hideGridX,W=t.hideTooltip,X=t.increasedXTicks,K=t.lineLegendNames,G=t.margin,U=t.noCurve,q=t.numYTicks,Q=t.renderXTooltipContent,$=t.renderYTooltipContent,tt=t.showTooltip,et=t.thickStroke,nt=t.tooltipData,rt=t.tooltipLeft,it=void 0===rt?0:rt,ot=t.tooltipTop,at=void 0===ot?[]:ot,lt=t.width,ct=t.xLabelFormat,ut=t.xLabelRotate,dt=void 0===ut||ut,st=t.yLabelFormat,ht=(0,a.useContext)(c.ThemeContext),ft=l||function(t){return null===t||void 0===t?void 0:t.x},pt=k||function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return null===t||void 0===t||null===(e=t.y)||void 0===e?void 0:e[n]},mt=T.Z.monotone.gray,gt=T.Z.brand.wind200,xt=T.Z.content.muted,yt=T.Z.monotone.gray,vt=n.map((function(t){return Number(ft(t))}));if(lt<10)return null;var bt=lt-G.left-G.right,jt=z-G.top-G.bottom,kt=bt/2,Zt=0===n.length?0:Math.max.apply(Math,(0,i.Z)(n.map((function(t){var e=t.y;return(null===e||void 0===e?void 0:e.length)||0})))),wt=(0,a.useMemo)((function(){return(0,S.Z)({domain:[Math.min.apply(Math,(0,i.Z)(vt)),Math.max.apply(Math,(0,i.Z)(vt))],range:[0,bt]})}),[bt,vt]),Ot=Math.min.apply(Math,(0,i.Z)(n.map((function(t){var e=t.y;return Math.min.apply(Math,(0,i.Z)(A?A(e):e||[]))})))),St=Math.max.apply(Math,(0,i.Z)(n.map((function(t){var e=t.y;return Math.max.apply(Math,(0,i.Z)(A?A(e):e||[]))})))),Pt=(0,a.useMemo)((function(){return(0,S.Z)({domain:[Ot,St],nice:!0,range:[jt,0]})}),[jt,St,Ot]),At=lt>520?X?20:10:X?10:5,It=(0,R.K)(ht),Lt=xt,Tt=It.map((function(t){return{stroke:t}})),Ct=(0,P.Z)({domain:K||[],range:Tt.map((function(t){return t.stroke}))}),Mt=(0,a.useCallback)((function(t){var e=((0,w.Z)(t)||{x:0}).x,r=wt.invert(e-G.left),i=(0,N.ry)(vt,(function(t){return r>=t})),o=n[i-1],a=n[i],l=o;a&&(r-ft(o)>ft(a)-r?l=a:(l=o,i-=1));var c=(0,O.range)(0,Zt).map((function(t){return Pt(pt(l,t))})),u=c.some((function(t){return"undefined"===typeof t}));(pt(l)||A&&!u)&&tt({tooltipData:Y(Y({},l),{},{index:i}),tooltipLeft:e,tooltipTop:c})}),[n,ft,pt,A,G,tt,wt,vt,Pt]),Dt={};return U||(Dt.curve=Z.ZP),(0,B.jsxs)(B.Fragment,{children:[K&&(0,B.jsx)("div",{style:{marginLeft:null===G||void 0===G?void 0:G.left},children:(0,B.jsx)(x.Z,{labelFormat:function(t){return t},scale:Ct,children:function(t){return(0,B.jsx)("div",{style:{display:"flex",flexDirection:C.qs.ROW},children:t.map((function(t,e){return(0,B.jsxs)(y.Z,{margin:"0 5px",onClick:function(){o&&alert("clicked: ".concat(JSON.stringify(t)))},children:[(0,B.jsx)("svg",{height:15,width:15,children:(0,B.jsx)("rect",{fill:t.value,height:15,width:15})}),(0,B.jsx)(v.Z,{align:"left",margin:"0 0 0 4px",children:(0,B.jsx)(I.ZP,{small:!0,children:t.text})})]},"legend-quantile-".concat(e))}))})}})}),(0,B.jsxs)("svg",{height:z,width:lt,children:[!e&&(0,B.jsx)(s.Z,{fill:"transparent",height:z,onMouseLeave:function(){return W()},onMouseMove:Mt,onTouchMove:Mt,onTouchStart:Mt,rx:14,width:lt-(G.left+G.right),x:G.left,y:0}),(0,B.jsxs)(g.Z,{left:G.left,top:G.top,children:[!J&&(0,B.jsx)(p.Z,Y({height:jt,pointerEvents:"none",scale:wt,stroke:mt,strokeDasharray:"3,3",strokeOpacity:.4,width:bt},V)),(0,B.jsx)(m.Z,Y({height:jt,pointerEvents:"none",scale:Pt,stroke:mt,strokeDasharray:"3,3",strokeOpacity:.4,width:bt},V)),(0,B.jsx)("line",{stroke:mt,x1:bt,x2:bt,y1:0,y2:jt}),(0,B.jsx)(u.Z,{numTicks:At,scale:wt,stroke:Lt,tickFormat:function(t){return ct?ct(t):t},tickLabelProps:function(t){return{fill:xt,fontFamily:D.ry,fontSize:E.J5,textAnchor:"middle",transform:dt&&"rotate(-45, ".concat(wt(t),", 0) translate(-32, 4)")}},tickStroke:Lt,top:jt}),(0,B.jsx)(d.Z,{hideTicks:!0,numTicks:q,scale:Pt,stroke:Lt,tickFormat:function(t){return st?st(t):(0,_.P5)(t)},tickLabelProps:function(t){return{dx:String(t).length>4?3:0,fill:xt,fontFamily:D.ry,fontSize:E.J5,textAnchor:"end",transform:"translate(0,2.5)"}},tickStroke:Lt}),e&&e.map((function(t){var e=t[0],r=t[1];return(0,a.createElement)(b.Z,Y(Y({},Dt),{},{aboveAreaProps:{fill:T.Z.brand.earth400,fillOpacity:.3},belowAreaProps:{fill:gt,fillOpacity:.2},clipAboveTo:0,clipBelowTo:jt,data:n,id:"".concat(Math.random()),key:"".concat(e,"-").concat(r),x:function(t){return wt(ft(t))},y0:function(t){return Pt("undefined"===typeof r?Ot:pt(t,r))},y1:function(t){return Pt(pt(t,e))}}))})),(0,O.range)(0,Zt).map((function(t){return(0,a.createElement)(h.Z,Y(Y({},Dt),{},{data:n.filter((function(t){return void 0!=t.y})),key:t,pointerEvents:"none",strokeWidth:et?2:1,x:function(t){return wt(ft(t))},y:function(e){return Pt(e.y&&(t>=e.y.length?Ot:pt(e,t)))}},Tt[t]))}))]}),nt&&(0,B.jsxs)("g",{children:[(0,B.jsx)(f.Z,{from:{x:it,y:G.top},pointerEvents:"none",stroke:M.Ej,strokeDasharray:"5,2",strokeWidth:1,to:{x:it,y:jt+G.top}}),at.map((function(t,e){return(0,B.jsx)("circle",{cx:it,cy:t+1+G.top,fill:Tt[e].stroke,fillOpacity:.1,pointerEvents:"none",r:4,stroke:yt,strokeOpacity:.1,strokeWidth:1},e)})),at.map((function(t,e){return(0,B.jsx)("circle",{cx:it,cy:t+G.top,fill:Tt[e].stroke,pointerEvents:"none",r:4,stroke:Tt[e].stroke,strokeWidth:2},e)}))]})]}),nt&&(0,B.jsxs)("div",{children:[at.map((function(t,e){var n=pt(nt,e);return e>=1&&Math.abs(at[e-1]-t)<5*F.iI&&(t+=3*F.iI),(0,B.jsxs)(j.Z,{left:it>kt?it-(0,_.Vs)($,nt,e)*F.iI:it+F.iI,style:H,top:t-2*F.iI,children:[$&&$(nt,e),!$&&(0,B.jsxs)(I.ZP,{center:!0,small:!0,children:[n.toFixed?n.toFixed(3):n," ",null===K||void 0===K?void 0:K[e]]})]},e)})),(0,B.jsxs)(j.Z,{left:it>kt?it-4*(0,_.Vs)(Q,nt):it,style:Y(Y({},H),{},{transform:"translateX(-65%)"}),top:jt+G.top,children:[Q&&Q(nt),!Q&&(0,B.jsx)(I.ZP,{center:!0,small:!0,children:ft(nt).toFixed(3)})]})]})]})}));e.Z=function(t){var e=t.areaBetweenLines,n=t.data,i=(t.events,t.height),o=t.lineLegendNames,a=t.margin,c=void 0===a?{}:a,u=t.width,d=t.xAxisLabel,s=t.xLabelFormat,h=t.yAxisLabel,f=t.yLabelFormat,p=(0,r.Z)(t,V),m=Y(Y({},{bottom:3*F.iI,left:5*F.iI,right:3*F.iI,top:3*F.iI}),c);return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)("div",{style:{display:"flex",height:i,marginBottom:F.iI,width:"100%"},children:[h&&(0,B.jsx)(A.ZP,{alignItems:"center",fullHeight:!0,justifyContent:"center",width:28,children:(0,B.jsx)(L.Z,{children:(0,B.jsx)(I.ZP,{center:!0,muted:!0,small:!0,children:h})})}),(0,B.jsx)("div",{style:{height:i,width:"undefined"===typeof u?"100%":u},children:(0,B.jsx)(l.Z,{children:function(t){var r=t.width,i=t.height;return(0,B.jsx)(J,Y(Y({},p),{},{areaBetweenLines:e,data:n,height:i,lineLegendNames:o,margin:m,width:r,xLabelFormat:s,yLabelFormat:f}))}})})]}),d&&(0,B.jsx)("div",{style:{paddingLeft:h?36:0,paddingTop:4},children:(0,B.jsx)(I.ZP,{center:!0,muted:!0,small:!0,children:d})})]})}},87862:function(t,e,n){n.d(e,{Z:function(){return A}});var r=n(26304),i=n(82394),o=n(75582),a=n(26226),l=n(28940),c=n(82684),u=n(29989),d=n(38626),s=n(11684),h=n(24903),f=n(30160),p=n(44897),m=n(95363),g=n(61896),x=n(70515),y=n(98684),v=n(28598),b=["height","width","xAxisLabel"];function j(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function k(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?j(Object(n),!0).forEach((function(e){(0,i.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Z={bottom:0,left:0,right:0,top:0},w=function(t){var e=t.endAngle;return{endAngle:e>Math.PI?2*Math.PI:0,opacity:0,startAngle:e>Math.PI?2*Math.PI:0}},O=function(t){var e=t.startAngle;return{endAngle:t.endAngle,opacity:1,startAngle:e}};function S(t){var e=t.animate,n=t.arcs,r=t.path,i=t.getKey,a=t.getColor,l=t.onClickDatum,c=t.textColor;return(0,s.useTransition)(n,{enter:O,from:e?w:O,keys:i,leave:e?w:O,update:O})((function(t,e,n){var u=n.key,d=r.centroid(e),h=(0,o.Z)(d,2),f=h[0],p=h[1],x=e.endAngle-e.startAngle>=.1;return(0,v.jsxs)("g",{children:[(0,v.jsx)(s.animated.path,{d:(0,s.to)([t.startAngle,t.endAngle],(function(t,n){return r(k(k({},e),{},{endAngle:n,startAngle:t}))})),fill:a(e),onClick:function(){return l(e)},onTouchStart:function(){return l(e)}}),x&&(0,v.jsx)(s.animated.g,{style:{opacity:t.opacity},children:(0,v.jsx)("text",{dy:".33em",fill:c,fontFamily:m.ry,fontSize:g.J5,pointerEvents:"none",textAnchor:"middle",x:f,y:p,children:i(e)})})]},u)}))}function P(t){var e=t.animate,n=void 0===e||e,r=t.data,i=t.getX,o=t.getY,a=t.height,s=t.margin,f=void 0===s?Z:s,m=t.textColor,g=t.width,b=(0,c.useState)(null),j=b[0],w=b[1],O=(0,c.useContext)(d.ThemeContext),P=m||(null===O||void 0===O?void 0:O.content.active)||p.Z.content.active;if(g<10)return null;var A=(0,h.Z)({domain:r.map((function(t){return i(t)})),range:(0,y.K)(O)}),I=g-f.left-f.right,L=a-f.top-f.bottom,T=Math.min(I,L)/2,C=L/2,M=I/2,D=Math.min(I/4,12*x.iI);return(0,v.jsx)("svg",{height:a,width:g,children:(0,v.jsx)(u.Z,{left:M+f.left,top:C+f.top,children:(0,v.jsx)(l.Z,{cornerRadius:x.iI/2,data:j?r.filter((function(t){return JSON.stringify(t)===JSON.stringify(j)})):r,innerRadius:Math.max(T-D,12.25),outerRadius:T,padAngle:.005,pieValue:o,children:function(t){return(0,v.jsx)(S,k(k({},t),{},{animate:n,getColor:function(t){var e=t.data;return A(i(e))},getKey:function(t){var e=t.data;return i(e)},onClickDatum:function(t){var e=t.data;return n&&w(j&&JSON.stringify(j)===JSON.stringify(e)?null:e)},textColor:P}))}})})})}function A(t){var e=t.height,n=t.width,i=t.xAxisLabel,o=(0,r.Z)(t,b),l={};return"undefined"!==typeof e&&(l.height=e),"undefined"!==typeof n&&(l.width=n),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{style:l,children:(0,v.jsx)(a.Z,{children:function(t){var e=t.width,n=t.height;return(0,v.jsx)(P,k(k({},o),{},{height:n,width:e}))}})}),i&&(0,v.jsx)("div",{style:{paddingTop:4},children:(0,v.jsx)(f.ZP,{center:!0,muted:!0,small:!0,children:i})})]})}},98684:function(t,e,n){n.d(e,{K:function(){return i}});var r=n(70987),i=function(t){var e=t||r.Z,n=e.brand,i=n.earth200,o=n.earth300,a=n.earth400,l=n.energy200,c=n.energy300,u=n.energy400,d=n.fire200,s=n.fire300,h=n.fire400,f=n.water200,p=n.water300,m=n.water400,g=n.wind200,x=n.wind300,y=n.wind400,v=e.chart;return[v.backgroundPrimary,v.backgroundSecondary,v.backgroundTertiary].concat([y,m,h,u,a,x,p,s,c,o,g,f,d,l,i])}},94035:function(t,e,n){var r=n(38626).default.div.withConfig({displayName:"YAxisLabelContainer",componentId:"sc-qwp21x-0"})(["-webkit-transform:rotate(-90deg);-moz-transform:rotate(-90deg);-o-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg);white-space:nowrap;"]);e.Z=r},79221:function(t,e,n){n.d(e,{P5:function(){return r},Vs:function(){return i}});n(81728);function r(t,e){var n=e||{},r=n.maxFractionDigits,i=n.minAmount,o=Intl.NumberFormat("en-US",{maximumFractionDigits:r||2,notation:"compact"});return"number"!==typeof t?t:t>=(i||1e4)?o.format(t):t.toString()}function i(t,e,n){var r,i;if("undefined"===typeof t||"undefined"===typeof e)return 0;var o=null===t||void 0===t||null===(r=t(e,n))||void 0===r||null===(i=r.props)||void 0===i?void 0:i.children;return(Array.isArray(o)?o:[o]).join("").length}},31882:function(t,e,n){var r=n(38626),i=n(71180),o=n(55485),a=n(30160),l=n(44897),c=n(72473),u=n(70515),d=n(61896),s=n(28598),h=r.default.div.withConfig({displayName:"Chip__ChipStyle",componentId:"sc-1ok73g-0"})(["display:inline-block;"," "," "," "," "," ",""],(function(t){return!t.primary&&"\n background-color: ".concat((t.theme.background||l.Z.background).tag,";\n ")}),(function(t){return t.primary&&"\n background-color: ".concat((t.theme.chart||l.Z.chart).primary,";\n ")}),(function(t){return!t.small&&"\n border-radius: ".concat((u.iI+d.Al)/2,"px;\n height: ").concat(1.5*u.iI+d.Al,"px;\n padding: ").concat(u.iI/1.5,"px ").concat(1.25*u.iI,"px;\n ")}),(function(t){return t.small&&"\n border-radius: ".concat((u.iI/2+d.Al)/2,"px;\n height: ").concat(d.Al+u.iI/2+2,"px;\n padding: ").concat(u.iI/4,"px ").concat(u.iI,"px;\n ")}),(function(t){return t.xsmall&&"\n border-radius: ".concat((u.iI/1+d.Al)/1,"px;\n height: ").concat(20,"px;\n padding: 4px 6px;\n ")}),(function(t){return t.border&&"\n border: 1px solid ".concat((t.theme.content||l.Z.content).muted,";\n ")}));e.Z=function(t){var e=t.border,n=t.children,r=t.disabled,l=t.label,d=t.monospace,f=t.onClick,p=t.primary,m=t.small,g=t.xsmall;return(0,s.jsx)(h,{border:e,primary:p,small:m,xsmall:g,children:(0,s.jsx)(i.ZP,{basic:!0,disabled:r,noBackground:!0,noPadding:!0,onClick:f,transparent:!0,children:(0,s.jsxs)(o.ZP,{alignItems:"center",children:[n,l&&(0,s.jsx)(a.ZP,{monospace:d,small:m,xsmall:g,children:l}),!r&&f&&(0,s.jsx)("div",{style:{marginLeft:2}}),!r&&f&&(0,s.jsx)(c.x8,{default:p,muted:!p,size:m?u.iI:1.25*u.iI})]})})})}},10305:function(t,e,n){var r=n(82684),i=n(55485),o=n(38276),a=n(28598);e.Z=function(t){var e=t.children,n=t.onChange,l=(0,r.useState)(r.Children.map(e,(function(){return null}))),c=l[0],u=l[1],d=(0,r.useState)(0),s=d[0],h=d[1];return(0,a.jsx)(i.ZP,{children:r.Children.map(e,(function(t,e){return(0,a.jsx)(o.Z,{ml:e>=1?1:0,style:{display:"flex",flex:1},children:r.cloneElement(t,{onChange:function(t){u((function(r){return r[e]=t.target.value,n(r,{resetValues:function(){return h((function(t){return t+1}))},setValues:u}),r}))},value:c[e]})},"multi-select-child-".concat(e,"-").concat(s))}))})}}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9775],{90857:function(e){"use strict";e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(i=n;0!==i--;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(o=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(i=n;0!==i--;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;0!==i--;){var s=o[i];if(!e(t[s],r[s]))return!1}return!0}return t!==t&&r!==r}},59739:function(e,t,r){"use strict";var n=r(56669);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,o,s){if(s!==n){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return r.PropTypes=r,r}},47329:function(e,t,r){e.exports=r(59739)()},56669:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},55021:function(e,t,r){"use strict";r.d(t,{k:function(){return i}});var n=r(554);function i(e,t,...r){if("undefined"!==typeof n&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){let e;if(void 0===t)e=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let n=0;e=new Error(t.replace(/%s/g,(function(){return r[n++]}))),e.name="Invariant Violation"}throw e.framesToPop=1,e}}},33382:function(e,t,r){"use strict";function n(e,t,r,n){let i=r?r.call(n,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;const o=Object.keys(e),s=Object.keys(t);if(o.length!==s.length)return!1;const a=Object.prototype.hasOwnProperty.bind(t);for(let c=0;c<o.length;c++){const s=o[c];if(!a(s))return!1;const u=e[s],d=t[s];if(i=r?r.call(n,u,d,s):void 0,!1===i||void 0===i&&u!==d)return!1}return!0}r.d(t,{w:function(){return n}})},80022:function(e,t,r){"use strict";function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.d(t,{Z:function(){return n}})},15544:function(e,t,r){"use strict";function n(e){return n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(e)}r.d(t,{Z:function(){return n}})},13692:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(61049);function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&(0,n.Z)(e,t)}},93189:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(12539),i=r(80022);function o(e,t){if(t&&("object"===n(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.Z)(e)}},61049:function(e,t,r){"use strict";function n(e,t){return n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(e,t)}r.d(t,{Z:function(){return n}})},1254:function(e,t,r){"use strict";r.d(t,{PD:function(){return I}});var n={};function i(e){let t=null;return()=>(null==t&&(t=e()),t)}r.r(n),r.d(n,{FILE:function(){return a},HTML:function(){return d},TEXT:function(){return u},URL:function(){return c}});class o{enter(e){const t=this.entered.length;return this.entered=function(e,t){const r=new Set,n=e=>r.add(e);e.forEach(n),t.forEach(n);const i=[];return r.forEach((e=>i.push(e))),i}(this.entered.filter((t=>this.isNodeInDocument(t)&&(!t.contains||t.contains(e)))),[e]),0===t&&this.entered.length>0}leave(e){const t=this.entered.length;var r,n;return this.entered=(r=this.entered.filter(this.isNodeInDocument),n=e,r.filter((e=>e!==n))),t>0&&0===this.entered.length}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class s{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach((e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get:()=>(console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null)})}))}loadDataTransfer(e){if(e){const t={};Object.keys(this.config.exposeProperties).forEach((r=>{const n=this.config.exposeProperties[r];null!=n&&(t[r]={value:n(e,this.config.matchesTypes),configurable:!0,enumerable:!0})})),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}const a="__NATIVE_FILE__",c="__NATIVE_URL__",u="__NATIVE_TEXT__",d="__NATIVE_HTML__";function l(e,t,r){const n=t.reduce(((t,r)=>t||e.getData(r)),"");return null!=n?n:r}const g={[a]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[d]:{exposeProperties:{html:(e,t)=>l(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[c]:{exposeProperties:{urls:(e,t)=>l(e,t,"").split("\n"),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[u]:{exposeProperties:{text:(e,t)=>l(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function h(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(g).filter((e=>{const r=g[e];return!!(null===r||void 0===r?void 0:r.matchesTypes)&&r.matchesTypes.some((e=>t.indexOf(e)>-1))}))[0]||null}const f=i((()=>/firefox/i.test(navigator.userAgent))),p=i((()=>Boolean(window.safari)));class v{interpolate(e){const{xs:t,ys:r,c1s:n,c2s:i,c3s:o}=this;let s=t.length-1;if(e===t[s])return r[s];let a,c=0,u=o.length-1;for(;c<=u;){a=Math.floor(.5*(c+u));const n=t[a];if(n<e)c=a+1;else{if(!(n>e))return r[a];u=a-1}}s=Math.max(0,u);const d=e-t[s],l=d*d;return r[s]+n[s]*d+i[s]*l+o[s]*d*l}constructor(e,t){const{length:r}=e,n=[];for(let h=0;h<r;h++)n.push(h);n.sort(((t,r)=>e[t]<e[r]?-1:1));const i=[],o=[],s=[];let a,c;for(let h=0;h<r-1;h++)a=e[h+1]-e[h],c=t[h+1]-t[h],o.push(a),i.push(c),s.push(c/a);const u=[s[0]];for(let h=0;h<o.length-1;h++){const e=s[h],t=s[h+1];if(e*t<=0)u.push(0);else{a=o[h];const r=o[h+1],n=a+r;u.push(3*n/((n+r)/e+(n+a)/t))}}u.push(s[s.length-1]);const d=[],l=[];let g;for(let h=0;h<u.length-1;h++){g=s[h];const e=u[h],t=1/o[h],r=e+u[h+1]-g-g;d.push((g-e-r)*t),l.push(r*t*t)}this.xs=e,this.ys=t,this.c1s=u,this.c2s=d,this.c3s=l}}function y(e){const t=1===e.nodeType?e:e.parentElement;if(!t)return null;const{top:r,left:n}=t.getBoundingClientRect();return{x:n,y:r}}function D(e){return{x:e.clientX,y:e.clientY}}function m(e,t,r,n,i){const o=function(e){var t;return"IMG"===e.nodeName&&(f()||!(null===(t=document.documentElement)||void 0===t?void 0:t.contains(e)))}(t),s=y(o?e:t),a={x:r.x-s.x,y:r.y-s.y},{offsetWidth:c,offsetHeight:u}=e,{anchorX:d,anchorY:l}=n,{dragPreviewWidth:g,dragPreviewHeight:h}=function(e,t,r,n){let i=e?t.width:r,o=e?t.height:n;return p()&&e&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}(o,t,c,u),{offsetX:D,offsetY:m}=i,O=0===m||m;return{x:0===D||D?D:new v([0,.5,1],[a.x,a.x/c*g,a.x+g-c]).interpolate(d),y:O?m:(()=>{let e=new v([0,.5,1],[a.y,a.y/u*h,a.y+h-u]).interpolate(l);return p()&&o&&(e+=(window.devicePixelRatio-1)*h),e})()}}class O{get window(){return this.globalContext?this.globalContext:"undefined"!==typeof window?window:void 0}get document(){var e;return(null===(e=this.globalContext)||void 0===e?void 0:e.document)?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return(null===(e=this.optionsArgs)||void 0===e?void 0:e.rootElement)||this.window}constructor(e,t){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=t}}function T(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){T(e,t,r[t])}))}return e}class S{profile(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(e=this.dragStartSourceIds)||void 0===e?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const e=this.rootElement;if(void 0!==e){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){const e=this.rootElement;var t;void 0!==e&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(t=this.window)||void 0===t||t.cancelAnimationFrame(this.asyncEndDragFrameId)))}connectDragPreview(e,t,r){return this.sourcePreviewNodeOptions.set(e,r),this.sourcePreviewNodes.set(e,t),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,t,r){this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,r);const n=t=>this.handleDragStart(t,e),i=e=>this.handleSelectStart(e);return t.setAttribute("draggable","true"),t.addEventListener("dragstart",n),t.addEventListener("selectstart",i),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",n),t.removeEventListener("selectstart",i),t.setAttribute("draggable","false")}}connectDropTarget(e,t){const r=t=>this.handleDragEnter(t,e),n=t=>this.handleDragOver(t,e),i=t=>this.handleDrop(t,e);return t.addEventListener("dragenter",r),t.addEventListener("dragover",n),t.addEventListener("drop",i),()=>{t.removeEventListener("dragenter",r),t.removeEventListener("dragover",n),t.removeEventListener("drop",i)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return b({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId();return b({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(n).some((t=>n[t]===e))}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){const r=g[e];if(!r)throw new Error(`native type ${e} has no configuration`);const n=new s(r);return n.loadDataTransfer(t),n}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e;this.mouseMoveTimeoutTimer=setTimeout((()=>{var e;return null===(e=this.rootElement)||void 0===e?void 0:e.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){var e;if(this.currentDragSourceNode=null,this.rootElement)null===(e=this.window)||void 0===e||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0);return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}handleDragEnter(e,t){this.dragEnterTargetIds.unshift(t)}handleDragOver(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}handleDrop(e,t){this.dropTargetIds.unshift(t)}constructor(e,t,r){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=e=>{const t=this.sourceNodes.get(e);return t&&y(t)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=e=>Boolean(e&&this.document&&this.document.body&&this.document.body.contains(e)),this.endDragIfSourceWasRemovedFromDOM=()=>{const e=this.currentDragSourceNode;null==e||this.isNodeInDocument(e)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=e=>{null===this.hoverRafId&&"undefined"!==typeof requestAnimationFrame&&(this.hoverRafId=requestAnimationFrame((()=>{this.monitor.isDragging()&&this.actions.hover(e||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null})))},this.cancelHover=()=>{null!==this.hoverRafId&&"undefined"!==typeof cancelAnimationFrame&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=e=>{if(e.defaultPrevented)return;const{dragStartSourceIds:t}=this;this.dragStartSourceIds=null;const r=D(e);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:r});const{dataTransfer:n}=e,i=h(n);if(this.monitor.isDragging()){if(n&&"function"===typeof n.setDragImage){const e=this.monitor.getSourceId(),t=this.sourceNodes.get(e),i=this.sourcePreviewNodes.get(e)||t;if(i){const{anchorX:e,anchorY:o,offsetX:s,offsetY:a}=this.getCurrentSourcePreviewNodeOptions(),c=m(t,i,r,{anchorX:e,anchorY:o},{offsetX:s,offsetY:a});n.setDragImage(i,c.x,c.y)}}try{null===n||void 0===n||n.setData("application/json",{})}catch(o){}this.setCurrentDragSourceNode(e.target);const{captureDraggingState:t}=this.getCurrentSourcePreviewNodeOptions();t?this.actions.publishDragSource():setTimeout((()=>this.actions.publishDragSource()),0)}else if(i)this.beginDragNativeItem(i);else{if(n&&!n.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=e=>{var t;(this.dragEnterTargetIds=[],this.isDraggingNativeItem())&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer));if(!this.enterLeaveCounter.enter(e.target)||this.monitor.isDragging())return;const{dataTransfer:r}=e,n=h(r);n&&this.beginDragNativeItem(n,r)},this.handleTopDragEnter=e=>{const{dragEnterTargetIds:t}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=e.altKey,t.length>0&&this.actions.hover(t,{clientOffset:D(e)});t.some((e=>this.monitor.canDropOnTarget(e)))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=e=>{var t;(this.dragOverTargetIds=[],this.isDraggingNativeItem())&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer))},this.handleTopDragOver=e=>{const{dragOverTargetIds:t}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));this.altKeyPressed=e.altKey,this.lastClientOffset=D(e),this.scheduleHover(t);(t||[]).some((e=>this.monitor.canDropOnTarget(e)))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=e=>{this.isDraggingNativeItem()&&e.preventDefault();this.enterLeaveCounter.leave(e.target)&&(this.isDraggingNativeItem()&&setTimeout((()=>this.endDragNativeItem()),0),this.cancelHover())},this.handleTopDropCapture=e=>{var t;(this.dropTargetIds=[],this.isDraggingNativeItem())?(e.preventDefault(),null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)):h(e.dataTransfer)&&e.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=e=>{const{dropTargetIds:t}=this;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:D(e)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=e=>{const t=e.target;"function"===typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new O(t,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new o(this.isNodeInDocument)}}const I=function(e,t,r){return new S(e,t,r)}},733:function(e,t,r){"use strict";r.d(t,{L:function(){return n}});const n=(0,r(82684).createContext)({dragDropManager:void 0})},65701:function(e,t,r){"use strict";r.d(t,{W:function(){return ye}});var n=r(28598);function i(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var o="function"===typeof Symbol&&Symbol.observable||"@@observable",s=function(){return Math.random().toString(36).substring(7).split("").join(".")},a={INIT:"@@redux/INIT"+s(),REPLACE:"@@redux/REPLACE"+s(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+s()}};function c(e){if("object"!==typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function u(e,t,r){var n;if("function"===typeof t&&"function"===typeof r||"function"===typeof r&&"function"===typeof arguments[3])throw new Error(i(0));if("function"===typeof t&&"undefined"===typeof r&&(r=t,t=void 0),"undefined"!==typeof r){if("function"!==typeof r)throw new Error(i(1));return r(u)(e,t)}if("function"!==typeof e)throw new Error(i(2));var s=e,d=t,l=[],g=l,h=!1;function f(){g===l&&(g=l.slice())}function p(){if(h)throw new Error(i(3));return d}function v(e){if("function"!==typeof e)throw new Error(i(4));if(h)throw new Error(i(5));var t=!0;return f(),g.push(e),function(){if(t){if(h)throw new Error(i(6));t=!1,f();var r=g.indexOf(e);g.splice(r,1),l=null}}}function y(e){if(!c(e))throw new Error(i(7));if("undefined"===typeof e.type)throw new Error(i(8));if(h)throw new Error(i(9));try{h=!0,d=s(d,e)}finally{h=!1}for(var t=l=g,r=0;r<t.length;r++){(0,t[r])()}return e}function D(e){if("function"!==typeof e)throw new Error(i(10));s=e,y({type:a.REPLACE})}function m(){var e,t=v;return(e={subscribe:function(e){if("object"!==typeof e||null===e)throw new Error(i(11));function r(){e.next&&e.next(p())}return r(),{unsubscribe:t(r)}}})[o]=function(){return this},e}return y({type:a.INIT}),(n={dispatch:y,subscribe:v,getState:p,replaceReducer:D})[o]=m,n}var d=r(55021);function l(e){return"object"===typeof e}const g="dnd-core/INIT_COORDS",h="dnd-core/BEGIN_DRAG",f="dnd-core/PUBLISH_DRAG_SOURCE",p="dnd-core/HOVER",v="dnd-core/DROP",y="dnd-core/END_DRAG";function D(e,t){return{type:g,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const m={type:g,payload:{clientOffset:null,sourceClientOffset:null}};function O(e){return function(t=[],r={publishSource:!0}){const{publishSource:n=!0,clientOffset:i,getSourceClientOffset:o}=r,s=e.getMonitor(),a=e.getRegistry();e.dispatch(D(i)),function(e,t,r){(0,d.k)(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach((function(e){(0,d.k)(r.getSource(e),"Expected sourceIds to be registered.")}))}(t,s,a);const c=function(e,t){let r=null;for(let n=e.length-1;n>=0;n--)if(t.canDragSource(e[n])){r=e[n];break}return r}(t,s);if(null==c)return void e.dispatch(m);let u=null;if(i){if(!o)throw new Error("getSourceClientOffset must be defined");!function(e){(0,d.k)("function"===typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(o),u=o(c)}e.dispatch(D(i,u));const g=a.getSource(c).beginDrag(s,c);if(null==g)return;!function(e){(0,d.k)(l(e),"Item must be an object.")}(g),a.pinSource(c);const f=a.getSourceType(c);return{type:h,payload:{itemType:f,item:g,sourceId:c,clientOffset:i||null,sourceClientOffset:u||null,isSourcePublic:!!n}}}}function T(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){T(e,t,r[t])}))}return e}function S(e){return function(t={}){const r=e.getMonitor(),n=e.getRegistry();!function(e){(0,d.k)(e.isDragging(),"Cannot call drop while not dragging."),(0,d.k)(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(r);const i=function(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(r);i.forEach(((i,o)=>{const s=function(e,t,r,n){const i=r.getTarget(e);let o=i?i.drop(n,e):void 0;(function(e){(0,d.k)("undefined"===typeof e||l(e),"Drop result must either be an object or undefined.")})(o),"undefined"===typeof o&&(o=0===t?{}:n.getDropResult());return o}(i,o,n,r),a={type:v,payload:{dropResult:b({},t,s)}};e.dispatch(a)}))}}function I(e){return function(){const t=e.getMonitor(),r=e.getRegistry();!function(e){(0,d.k)(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);const n=t.getSourceId();if(null!=n){r.getSource(n,!0).endDrag(t,n),r.unpinSource()}return{type:y}}}function w(e,t){return null===t?null===e:Array.isArray(e)?e.some((e=>e===t)):e===t}function E(e){return function(t,{clientOffset:r}={}){!function(e){(0,d.k)(Array.isArray(e),"Expected targetIds to be an array.")}(t);const n=t.slice(0),i=e.getMonitor(),o=e.getRegistry();return function(e,t,r){for(let n=e.length-1;n>=0;n--){const i=e[n];w(t.getTargetType(i),r)||e.splice(n,1)}}(n,o,i.getItemType()),function(e,t,r){(0,d.k)(t.isDragging(),"Cannot call hover while not dragging."),(0,d.k)(!t.didDrop(),"Cannot call hover after drop.");for(let n=0;n<e.length;n++){const t=e[n];(0,d.k)(e.lastIndexOf(t)===n,"Expected targetIds to be unique in the passed array.");const i=r.getTarget(t);(0,d.k)(i,"Expected targetIds to be registered.")}}(n,i,o),function(e,t,r){e.forEach((function(e){r.getTarget(e).hover(t,e)}))}(n,i,o),{type:p,payload:{targetIds:n,clientOffset:r||null}}}}function C(e){return function(){if(e.getMonitor().isDragging())return{type:f}}}class P{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:t}=this.store;const r=function(e){return{beginDrag:O(e),publishDragSource:C(e),hover:E(e),drop:S(e),endDrag:I(e)}}(this);return Object.keys(r).reduce(((n,i)=>{const o=r[i];var s;return n[i]=(s=o,(...r)=>{const n=s.apply(e,r);"undefined"!==typeof n&&t(n)}),n}),{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=!1,this.handleRefCountChange=()=>{const e=this.store.getState().refCount>0;this.backend&&(e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}}function N(e,t){return{x:e.x-t.x,y:e.y-t.y}}const R=[],x=[];R.__IS_NONE__=!0,x.__IS_ALL__=!0;class k{subscribeToStateChange(e,t={}){const{handlerIds:r}=t;(0,d.k)("function"===typeof e,"listener must be a function."),(0,d.k)("undefined"===typeof r||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");let n=this.store.getState().stateId;return this.store.subscribe((()=>{const t=this.store.getState(),i=t.stateId;try{const o=i===n||i===n+1&&!function(e,t){return e!==R&&(e===x||"undefined"===typeof t||(r=e,t.filter((e=>r.indexOf(e)>-1))).length>0);var r}(t.dirtyHandlerIds,r);o||e()}finally{n=i}}))}subscribeToOffsetChange(e){(0,d.k)("function"===typeof e,"listener must be a function.");let t=this.store.getState().dragOffset;return this.store.subscribe((()=>{const r=this.store.getState().dragOffset;r!==t&&(t=r,e())}))}canDragSource(e){if(!e)return!1;const t=this.registry.getSource(e);return(0,d.k)(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()&&t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const t=this.registry.getTarget(e);if((0,d.k)(t,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;return w(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}isDragging(){return Boolean(this.getItemType())}isDraggingSource(e){if(!e)return!1;const t=this.registry.getSource(e,!0);if((0,d.k)(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;return this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}isOverTarget(e,t={shallow:!1}){if(!e)return!1;const{shallow:r}=t;if(!this.isDragging())return!1;const n=this.registry.getTargetType(e),i=this.getItemType();if(i&&!w(n,i))return!1;const o=this.getTargetIds();if(!o.length)return!1;const s=o.indexOf(e);return r?s===o.length-1:s>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return function(e){const{clientOffset:t,initialClientOffset:r,initialSourceClientOffset:n}=e;return t&&r&&n?N((o=n,{x:(i=t).x+o.x,y:i.y+o.y}),r):null;var i,o}(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return function(e){const{clientOffset:t,initialClientOffset:r}=e;return t&&r?N(t,r):null}(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}}const M="undefined"!==typeof global?global:self,_=M.MutationObserver||M.WebKitMutationObserver;function j(e){return function(){const t=setTimeout(n,0),r=setInterval(n,50);function n(){clearTimeout(t),clearInterval(r),e()}}}const L="function"===typeof _?function(e){let t=1;const r=new _(e),n=document.createTextNode("");return r.observe(n,{characterData:!0}),function(){t=-t,n.data=t}}:j;class A{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}const H=new class{enqueueTask(e){const{queue:t,requestFlush:r}=this;t.length||(r(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,r=e.length-this.index;t<r;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=L(this.flush),this.requestErrorThrow=j((()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()}))}},U=new class{create(e){const t=this.freeTasks,r=t.length?t.pop():new A(this.onError,(e=>t[t.length]=e));return r.task=e,r}constructor(e){this.onError=e,this.freeTasks=[]}}(H.registerPendingError);const F="dnd-core/ADD_SOURCE",B="dnd-core/ADD_TARGET",W="dnd-core/REMOVE_SOURCE",q="dnd-core/REMOVE_TARGET";function G(e,t){t&&Array.isArray(e)?e.forEach((e=>G(e,!1))):(0,d.k)("string"===typeof e||"symbol"===typeof e,t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var X;!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(X||(X={}));let Y=0;function V(e){const t=(Y++).toString();switch(e){case X.SOURCE:return`S${t}`;case X.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function $(e){switch(e[0]){case"S":return X.SOURCE;case"T":return X.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function K(e,t){const r=e.entries();let n=!1;do{const{done:e,value:[,i]}=r.next();if(i===t)return!0;n=!!e}while(!n);return!1}class Z{addSource(e,t){G(e),function(e){(0,d.k)("function"===typeof e.canDrag,"Expected canDrag to be a function."),(0,d.k)("function"===typeof e.beginDrag,"Expected beginDrag to be a function."),(0,d.k)("function"===typeof e.endDrag,"Expected endDrag to be a function.")}(t);const r=this.addHandler(X.SOURCE,e,t);return this.store.dispatch(function(e){return{type:F,payload:{sourceId:e}}}(r)),r}addTarget(e,t){G(e,!0),function(e){(0,d.k)("function"===typeof e.canDrop,"Expected canDrop to be a function."),(0,d.k)("function"===typeof e.hover,"Expected hover to be a function."),(0,d.k)("function"===typeof e.drop,"Expected beginDrag to be a function.")}(t);const r=this.addHandler(X.TARGET,e,t);return this.store.dispatch(function(e){return{type:B,payload:{targetId:e}}}(r)),r}containsHandler(e){return K(this.dragSources,e)||K(this.dropTargets,e)}getSource(e,t=!1){(0,d.k)(this.isSourceId(e),"Expected a valid source ID.");return t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return(0,d.k)(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return(0,d.k)(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return(0,d.k)(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return $(e)===X.SOURCE}isTargetId(e){return $(e)===X.TARGET}removeSource(e){var t;(0,d.k)(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:W,payload:{sourceId:e}}}(e)),t=()=>{this.dragSources.delete(e),this.types.delete(e)},H.enqueueTask(U.create(t))}removeTarget(e){(0,d.k)(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:q,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const t=this.getSource(e);(0,d.k)(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){(0,d.k)(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,r){const n=V(e);return this.types.set(n,t),e===X.SOURCE?this.dragSources.set(n,r):e===X.TARGET&&this.dropTargets.set(n,r),n}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const z=(e,t)=>e===t;function J(e=R,t){switch(t.type){case p:break;case F:case B:case q:case W:return R;default:return x}const{targetIds:r=[],prevTargetIds:n=[]}=t.payload,i=function(e,t){const r=new Map,n=e=>{r.set(e,r.has(e)?r.get(e)+1:1)};e.forEach(n),t.forEach(n);const i=[];return r.forEach(((e,t)=>{1===e&&i.push(t)})),i}(r,n);if(!(i.length>0||!function(e,t,r=z){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!r(e[n],t[n]))return!1;return!0}(r,n)))return R;const o=n[n.length-1],s=r[r.length-1];return o!==s&&(o&&i.push(o),s&&i.push(s)),i}function Q(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ee={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function te(e=ee,t){const{payload:r}=t;switch(t.type){case g:case h:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case p:return n=e.clientOffset,i=r.clientOffset,!n&&!i||n&&i&&n.x===i.x&&n.y===i.y?e:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){Q(e,t,r[t])}))}return e}({},e,{clientOffset:r.clientOffset});case y:case v:return ee;default:return e}var n,i}function re(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ne(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){re(e,t,r[t])}))}return e}const ie={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function oe(e=ie,t){const{payload:r}=t;switch(t.type){case h:return ne({},e,{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case f:return ne({},e,{isSourcePublic:!0});case p:return ne({},e,{targetIds:r.targetIds});case q:return-1===e.targetIds.indexOf(r.targetId)?e:ne({},e,{targetIds:(n=e.targetIds,i=r.targetId,n.filter((e=>e!==i)))});case v:return ne({},e,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case y:return ne({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}var n,i}function se(e=0,t){switch(t.type){case F:case B:return e+1;case W:case q:return e-1;default:return e}}function ae(e=0){return e+1}function ce(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ue(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){ce(e,t,r[t])}))}return e}function de(e={},t){return{dirtyHandlerIds:J(e.dirtyHandlerIds,{type:t.type,payload:ue({},t.payload,{prevTargetIds:(r=e,n="dragOperation.targetIds",i=[],n.split(".").reduce(((e,t)=>e&&e[t]?e[t]:i||null),r))})}),dragOffset:te(e.dragOffset,t),refCount:se(e.refCount,t),dragOperation:oe(e.dragOperation,t),stateId:ae(e.stateId)};var r,n,i}function le(e,t,r={},n=!1){const i=function(e){const t="undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return u(de,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(n),o=new k(i,new Z(i)),s=new P(i,o),a=e(s,t,r);return s.receiveBackend(a),s}var ge=r(82684),he=r(733);function fe(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}let pe=0;const ve=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var ye=(0,ge.memo)((function(e){var{children:t}=e,r=fe(e,["children"]);const[i,o]=function(e){if("manager"in e){return[{dragDropManager:e.manager},!1]}const t=function(e,t=De(),r,n){const i=t;i[ve]||(i[ve]={dragDropManager:le(e,t,r,n)});return i[ve]}(e.backend,e.context,e.options,e.debugMode),r=!e.context;return[t,r]}(r);return(0,ge.useEffect)((()=>{if(o){const e=De();return++pe,()=>{0===--pe&&(e[ve]=null)}}}),[]),(0,n.jsx)(he.L.Provider,{value:i,children:t})}));function De(){return"undefined"!==typeof global?global:window}},15716:function(e,t,r){"use strict";r.d(t,{J:function(){return a}});var n=r(90857),i=r(82684),o=r(42738);function s(e,t,r){const[s,a]=function(e,t,r){const[s,a]=(0,i.useState)((()=>t(e))),c=(0,i.useCallback)((()=>{const i=t(e);n(s,i)||(a(i),r&&r())}),[s,e,r]);return(0,o.L)(c),[s,c]}(e,t,r);return(0,o.L)((function(){const t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(a,{handlerIds:[t]})}),[e,a]),s}function a(e,t,r){return s(t,e||(()=>({})),(()=>r.reconnect()))}},10975:function(e,t,r){"use strict";r.d(t,{c:function(){return T}});var n=r(55021),i=r(15716),o=r(60452),s=r(82684);function a(e){return(0,s.useMemo)((()=>e.hooks.dragSource()),[e])}function c(e){return(0,s.useMemo)((()=>e.hooks.dragPreview()),[e])}var u=r(33382),d=r(20941),l=r(92963);class g{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){const e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){const e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t}reconnectDragPreview(e=!1){const t=this.dragPreview,r=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();r&&this.disconnectDragPreview(),this.handlerId&&(t?r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)):this.lastConnectedDragPreview=t)}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!(0,u.w)(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!(0,u.w)(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=(0,l.p)({dragSource:(e,t)=>{this.clearDragSource(),this.dragSourceOptions=t||null,(0,d.d)(e)?this.dragSourceRef=e:this.dragSourceNode=e,this.reconnectDragSource()},dragPreview:(e,t)=>{this.clearDragPreview(),this.dragPreviewOptions=t||null,(0,d.d)(e)?this.dragPreviewRef=e:this.dragPreviewNode=e,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}}var h=r(77655),f=r(42738);let p=!1,v=!1;class y{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){(0,n.k)(!p,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return p=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{p=!1}}isDragging(){if(!this.sourceId)return!1;(0,n.k)(!v,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return v=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{v=!1}}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,t){return this.internalMonitor.isOverTarget(e,t)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}}var D=r(99130);class m{beginDrag(){const e=this.spec,t=this.monitor;let r=null;return r="object"===typeof e.item?e.item:"function"===typeof e.item?e.item(t):{},null!==r&&void 0!==r?r:null}canDrag(){const e=this.spec,t=this.monitor;return"boolean"===typeof e.canDrag?e.canDrag:"function"!==typeof e.canDrag||e.canDrag(t)}isDragging(e,t){const r=this.spec,n=this.monitor,{isDragging:i}=r;return i?i(n):t===e.getSourceId()}endDrag(){const e=this.spec,t=this.monitor,r=this.connector,{end:n}=e;n&&n(t.getItem(),t),r.reconnect()}constructor(e,t,r){this.spec=e,this.monitor=t,this.connector=r}}function O(e,t,r){const i=(0,h.N)(),o=function(e,t,r){const n=(0,s.useMemo)((()=>new m(e,t,r)),[t,r]);return(0,s.useEffect)((()=>{n.spec=e}),[e]),n}(e,t,r),a=function(e){return(0,s.useMemo)((()=>{const t=e.type;return(0,n.k)(null!=t,"spec.type must be defined"),t}),[e])}(e);(0,f.L)((function(){if(null!=a){const[e,n]=(0,D.w)(a,o,i);return t.receiveHandlerId(e),r.receiveHandlerId(e),n}}),[i,t,r,o,a])}function T(e,t){const r=(0,o.w)(e,t);(0,n.k)(!r.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const u=function(){const e=(0,h.N)();return(0,s.useMemo)((()=>new y(e)),[e])}(),d=function(e,t){const r=(0,h.N)(),n=(0,s.useMemo)((()=>new g(r.getBackend())),[r]);return(0,f.L)((()=>(n.dragSourceOptions=e||null,n.reconnect(),()=>n.disconnectDragSource())),[n,e]),(0,f.L)((()=>(n.dragPreviewOptions=t||null,n.reconnect(),()=>n.disconnectDragPreview())),[n,t]),n}(r.options,r.previewOptions);return O(r,u,d),[(0,i.J)(r.collect,u,d),a(d),c(d)]}},77655:function(e,t,r){"use strict";r.d(t,{N:function(){return s}});var n=r(55021),i=r(82684),o=r(733);function s(){const{dragDropManager:e}=(0,i.useContext)(o.L);return(0,n.k)(null!=e,"Expected drag drop context"),e}},14567:function(e,t,r){"use strict";r.d(t,{L:function(){return m}});var n=r(15716),i=r(60452),o=r(82684);function s(e){return(0,o.useMemo)((()=>e.hooks.dropTarget()),[e])}var a=r(33382),c=r(20941),u=r(92963);class d{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();const t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!(0,a.w)(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=(0,u.p)({dropTarget:(e,t)=>{this.clearDropTarget(),this.dropTargetOptions=t,(0,c.d)(e)?this.dropTargetRef=e:this.dropTargetNode=e,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}var l=r(77655),g=r(42738);var h=r(55021);let f=!1;class p{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}canDrop(){if(!this.targetId)return!1;(0,h.k)(!f,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return f=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{f=!1}}isOver(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}var v=r(99130);class y{canDrop(){const e=this.spec,t=this.monitor;return!e.canDrop||e.canDrop(t.getItem(),t)}hover(){const e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}drop(){const e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}constructor(e,t){this.spec=e,this.monitor=t}}function D(e,t,r){const n=(0,l.N)(),i=function(e,t){const r=(0,o.useMemo)((()=>new y(e,t)),[t]);return(0,o.useEffect)((()=>{r.spec=e}),[e]),r}(e,t),s=function(e){const{accept:t}=e;return(0,o.useMemo)((()=>((0,h.k)(null!=e.accept,"accept must be defined"),Array.isArray(t)?t:[t])),[t])}(e);(0,g.L)((function(){const[e,o]=(0,v.n)(s,i,n);return t.receiveHandlerId(e),r.receiveHandlerId(e),o}),[n,t,i,r,s.map((e=>e.toString())).join("|")])}function m(e,t){const r=(0,i.w)(e,t),a=function(){const e=(0,l.N)();return(0,o.useMemo)((()=>new p(e)),[e])}(),c=function(e){const t=(0,l.N)(),r=(0,o.useMemo)((()=>new d(t.getBackend())),[t]);return(0,g.L)((()=>(r.dropTargetOptions=e||null,r.reconnect(),()=>r.disconnectDropTarget())),[e]),r}(r.options);return D(r,a,c),[(0,n.J)(r.collect,a,c),s(c)]}},42738:function(e,t,r){"use strict";r.d(t,{L:function(){return i}});var n=r(82684);const i="undefined"!==typeof window?n.useLayoutEffect:n.useEffect},60452:function(e,t,r){"use strict";r.d(t,{w:function(){return i}});var n=r(82684);function i(e,t){const r=[...t||[]];return null==t&&"function"!==typeof e&&r.push(e),(0,n.useMemo)((()=>"function"===typeof e?e():e),r)}},20941:function(e,t,r){"use strict";function n(e){return null!==e&&"object"===typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}r.d(t,{d:function(){return n}})},99130:function(e,t,r){"use strict";function n(e,t,r){const n=r.getRegistry(),i=n.addTarget(e,t);return[i,()=>n.removeTarget(i)]}function i(e,t,r){const n=r.getRegistry(),i=n.addSource(e,t);return[i,()=>n.removeSource(i)]}r.d(t,{n:function(){return n},w:function(){return i}})},92963:function(e,t,r){"use strict";r.d(t,{p:function(){return s}});var n=r(55021),i=r(82684);function o(e){return(t=null,r=null)=>{if(!(0,i.isValidElement)(t)){const n=t;return e(n,r),n}const o=t;!function(e){if("string"===typeof e.type)return;const t=e.type.displayName||e.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}(o);return function(e,t){const r=e.ref;return(0,n.k)("string"!==typeof r,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),r?(0,i.cloneElement)(e,{ref:e=>{a(r,e),a(t,e)}}):(0,i.cloneElement)(e,{ref:t})}(o,r?t=>e(t,r):e)}}function s(e){const t={};return Object.keys(e).forEach((r=>{const n=e[r];if(r.endsWith("Ref"))t[r]=e[r];else{const e=o(n);t[r]=()=>e}})),t}function a(e,t){"function"===typeof e?e(t):e.current=t}}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2197],{85854:function(e,n,t){"use strict";var i,o,r,l,a,c,s,f,u=t(82394),p=t(26304),d=t(26653),h=t(38626),m=t(33591),g=t(44897),y=t(95363),x=t(61896),_=t(30160),w=t(70515),j=t(38276),b=t(28598),v=["children","condensed","inline","level","marketing","spacingBelow"];function N(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function S(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?N(Object(t),!0).forEach((function(n){(0,u.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):N(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var I=(0,h.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," "," ",""],_.IH,(function(e){return e.color&&"\n color: ".concat(e.color,"\n ")}),(function(e){return e.yellow&&"\n color: ".concat((e.theme.accent||g.Z.accent).yellow,";\n ")}),(function(e){return e.center&&"\n text-align: center;\n "}),(function(e){return!e.monospace&&0===Number(e.weightStyle)&&"\n font-family: ".concat(y.iI,";\n ")}),(function(e){return!e.monospace&&1===Number(e.weightStyle)&&"\n font-family: ".concat(y.LX,";\n ")}),(function(e){return!e.monospace&&2===Number(e.weightStyle)&&"\n font-family: ".concat(y.LX,";\n ")}),(function(e){return!e.monospace&&3===Number(e.weightStyle)&&"\n font-family: ".concat(y.ry,";\n ")}),(function(e){return!e.monospace&&4===Number(e.weightStyle)&&"\n font-family: ".concat(y.YC,";\n ")}),(function(e){return!e.monospace&&5===Number(e.weightStyle)&&"\n font-family: ".concat(y.nF,";\n ")}),(function(e){return!e.monospace&&(6===Number(e.weightStyle)||e.bold)&&"\n font-family: ".concat(y.nF,";\n ")}),(function(e){return!e.monospace&&7===Number(e.weightStyle)&&"\n font-family: ".concat(y.nF,";\n ")}),(function(e){return!e.monospace&&8===Number(e.weightStyle)&&"\n font-family: ".concat(y.nF,";\n ")}),(function(e){return e.lineHeightAuto&&"\n line-height: normal !important;\n "}),(function(e){return e.strikethrough&&"\n text-decoration: line-through;\n "})),H=h.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(e){return"\n color: ".concat((e.theme.content||g.Z.content).active,";\n ")})),C=h.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],I,m.media.md(i||(i=(0,d.Z)(["\n ","\n "])),x.aQ),m.media.lg(o||(o=(0,d.Z)(["\n ","\n "])),x.aQ),m.media.xl(r||(r=(0,d.Z)(["\n ","\n "])),x.aQ)),O=h.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],I,x.MJ),Z=h.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],I,m.media.xs(l||(l=(0,d.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),m.media.sm(a||(a=(0,d.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),m.media.md(c||(c=(0,d.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),m.media.lg(s||(s=(0,d.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),m.media.xl(f||(f=(0,d.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI)),z=h.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],I,x.BL),E=h.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],I),L=h.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],I),P=h.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],I),k=h.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],I,(function(e){return 1===e.level&&"\n ".concat(x.MJ,"\n ")}),(function(e){return 2===e.level&&"\n ".concat(x.BL,"\n ")}),(function(e){return 3===e.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(e){return 4===e.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),B=function(e){var n,t=e.children,i=e.condensed,o=e.inline,r=e.level,l=e.marketing,a=e.spacingBelow,c=(0,p.Z)(e,v);o?n=k:0===Number(r)?n=C:1===Number(r)?n=l?Z:O:2===Number(r)?n=z:3===Number(r)?n=E:4===Number(r)?n=L:5===Number(r)&&(n=P);var s=(0,b.jsxs)(n,S(S({},c),{},{level:r,children:[a&&(0,b.jsx)(j.Z,{mb:i?2:3,children:t}),!a&&t]}));return o?s:(0,b.jsx)(H,{children:s})};B.defaultProps={level:3,weightStyle:6},n.Z=B},65186:function(e,n,t){"use strict";var i=t(28598),o=18.53/14;n.Z=function(e){var n=e.height,t=e.width,r=n||(t?t*(1/o):14),l=t||(n?n*o:18.53);return(0,i.jsxs)("svg",{width:l,height:r,viewBox:"0 0 20 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{opacity:"0.4",d:"M15.3266 0L19.2641 1.82961e-06L11.9687 14L8.03125 14L15.3266 0Z",fill:"url(#paint0_linear_1303_5)"}),(0,i.jsx)("path",{d:"M11.9692 1.82961e-06L8.03164 0L0.736328 14L4.67383 14L8.03164 7.55626V14H11.9691V8.38194e-05L11.9692 1.82961e-06Z",fill:"url(#paint1_linear_1303_5)"}),(0,i.jsx)("path",{d:"M15.3269 2.57679e-06H19.2644V14H15.3269V2.57679e-06Z",fill:"url(#paint2_linear_1303_5)"}),(0,i.jsxs)("defs",{children:[(0,i.jsxs)("linearGradient",{id:"paint0_linear_1303_5",x1:"8.03125",y1:"7",x2:"19.2641",y2:"7",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]}),(0,i.jsxs)("linearGradient",{id:"paint1_linear_1303_5",x1:"0.736328",y1:"7",x2:"19.2644",y2:"7",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]}),(0,i.jsxs)("linearGradient",{id:"paint2_linear_1303_5",x1:"0.736328",y1:"7",x2:"19.2644",y2:"7",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})]})]})}},35987:function(e,n,t){"use strict";t.r(n);var i=t(82684),o=t(69419),r=t(85854),l=t(30160),a=t(38276),c=t(65186),s=t(28598);n.default=function(){var e=(0,i.useState)(5),n=e[0],t=e[1];return(0,i.useEffect)((function(){var e=setInterval((function(){n>0?t(n-1):(0,o.nL)("/pipelines")}),1e3);return function(){return clearInterval(e)}}),[n]),(0,s.jsxs)("main",{style:{alignItems:"center",display:"flex",flexDirection:"column",height:"100vh",marginTop:"16rem"},children:[(0,s.jsx)(c.Z,{height:64}),(0,s.jsx)(a.Z,{my:2,children:(0,s.jsx)(r.Z,{level:1,children:"404 - Page Not Found"})}),(0,s.jsxs)(l.ZP,{large:!0,children:["You will be redirected to the Pipelines dashboard in ",n," seconds."]})]})}},6141:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/404",function(){return t(35987)}])}},function(e){e.O(0,[9774,2888,179],(function(){return n=6141,e(e.s=n);var n}));var n=e.O();_N_E=n}]);