mage-ai 0.9.45__py3-none-any.whl → 0.9.47__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (566) hide show
  1. mage_ai/api/constants.py +2 -0
  2. mage_ai/api/operations/base.py +230 -12
  3. mage_ai/api/policies/BasePolicy.py +3 -3
  4. mage_ai/api/policies/ComputeClusterPolicy.py +96 -0
  5. mage_ai/api/policies/ComputeConnectionPolicy.py +74 -0
  6. mage_ai/api/policies/ComputeServicePolicy.py +50 -0
  7. mage_ai/api/policies/DownloadPolicy.py +29 -0
  8. mage_ai/api/policies/GlobalHookPolicy.py +126 -0
  9. mage_ai/api/policies/IntegrationSourcePolicy.py +62 -0
  10. mage_ai/api/policies/OauthPolicy.py +56 -4
  11. mage_ai/api/policies/ProjectPolicy.py +1 -0
  12. mage_ai/api/presenters/ComputeClusterPresenter.py +19 -0
  13. mage_ai/api/presenters/ComputeConnectionPresenter.py +26 -0
  14. mage_ai/api/presenters/ComputeServicePresenter.py +15 -0
  15. mage_ai/api/presenters/DownloadPresenter.py +13 -0
  16. mage_ai/api/presenters/GlobalHookPresenter.py +74 -0
  17. mage_ai/api/presenters/IntegrationSourcePresenter.py +9 -2
  18. mage_ai/api/presenters/PipelinePresenter.py +3 -0
  19. mage_ai/api/presenters/PipelineRunPresenter.py +8 -3
  20. mage_ai/api/presenters/PipelineSchedulePresenter.py +22 -1
  21. mage_ai/api/presenters/ProjectPresenter.py +1 -0
  22. mage_ai/api/presenters/SparkApplicationPresenter.py +2 -0
  23. mage_ai/api/presenters/WorkspacePresenter.py +22 -22
  24. mage_ai/api/resources/AsyncBaseResource.py +39 -0
  25. mage_ai/api/resources/BlockResource.py +5 -0
  26. mage_ai/api/resources/ClusterResource.py +1 -1
  27. mage_ai/api/resources/ComputeClusterResource.py +109 -0
  28. mage_ai/api/resources/ComputeConnectionResource.py +103 -0
  29. mage_ai/api/resources/ComputeServiceResource.py +35 -0
  30. mage_ai/api/resources/DataProviderResource.py +2 -0
  31. mage_ai/api/resources/DownloadResource.py +56 -0
  32. mage_ai/api/resources/ExecutionStateResource.py +1 -1
  33. mage_ai/api/resources/GlobalHookResource.py +192 -0
  34. mage_ai/api/resources/IntegrationSourceResource.py +149 -2
  35. mage_ai/api/resources/KernelResource.py +10 -0
  36. mage_ai/api/resources/OauthResource.py +28 -33
  37. mage_ai/api/resources/PipelineResource.py +4 -4
  38. mage_ai/api/resources/PipelineScheduleResource.py +37 -16
  39. mage_ai/api/resources/ProjectResource.py +5 -3
  40. mage_ai/api/resources/SessionResource.py +0 -9
  41. mage_ai/api/resources/SparkApplicationResource.py +5 -5
  42. mage_ai/api/resources/SparkEnvironmentResource.py +1 -2
  43. mage_ai/api/resources/SparkExecutorResource.py +1 -2
  44. mage_ai/api/resources/SparkJobResource.py +3 -6
  45. mage_ai/api/resources/SparkSqlResource.py +6 -11
  46. mage_ai/api/resources/SparkStageAttemptResource.py +2 -3
  47. mage_ai/api/resources/SparkStageAttemptTaskResource.py +1 -2
  48. mage_ai/api/resources/SparkStageAttemptTaskSummaryResource.py +1 -2
  49. mage_ai/api/resources/SparkStageResource.py +3 -6
  50. mage_ai/api/resources/SparkThreadResource.py +1 -2
  51. mage_ai/api/resources/mixins/spark.py +25 -4
  52. mage_ai/authentication/oauth2.py +1 -3
  53. mage_ai/authentication/permissions/constants.py +4 -0
  54. mage_ai/authentication/providers/active_directory.py +136 -0
  55. mage_ai/authentication/providers/constants.py +3 -0
  56. mage_ai/authentication/providers/ghe.py +24 -25
  57. mage_ai/authentication/providers/google.py +25 -26
  58. mage_ai/authentication/providers/oauth.py +2 -2
  59. mage_ai/authentication/providers/okta.py +28 -29
  60. mage_ai/authentication/providers/sso.py +2 -2
  61. mage_ai/cluster_manager/aws/emr_cluster_manager.py +2 -1
  62. mage_ai/cluster_manager/workspace/base.py +7 -3
  63. mage_ai/data_integrations/destinations/constants.py +1 -0
  64. mage_ai/data_integrations/sources/constants.py +5 -0
  65. mage_ai/data_integrations/utils/scheduler.py +57 -2
  66. mage_ai/data_preparation/executors/block_executor.py +9 -1
  67. mage_ai/data_preparation/executors/pipeline_executor.py +9 -0
  68. mage_ai/data_preparation/models/block/__init__.py +82 -17
  69. mage_ai/data_preparation/models/block/data_integration/constants.py +3 -0
  70. mage_ai/data_preparation/models/block/data_integration/data.py +1 -1
  71. mage_ai/data_preparation/models/block/data_integration/utils.py +196 -37
  72. mage_ai/data_preparation/models/block/spark/mixins.py +82 -34
  73. mage_ai/data_preparation/models/block/sql/utils/shared.py +18 -1
  74. mage_ai/data_preparation/models/block/utils.py +28 -13
  75. mage_ai/data_preparation/models/download/__init__.py +8 -0
  76. mage_ai/data_preparation/models/global_hooks/__init__.py +0 -0
  77. mage_ai/data_preparation/models/global_hooks/constants.py +93 -0
  78. mage_ai/data_preparation/models/global_hooks/models.py +992 -0
  79. mage_ai/data_preparation/models/global_hooks/predicates.py +316 -0
  80. mage_ai/data_preparation/models/global_hooks/utils.py +21 -0
  81. mage_ai/data_preparation/models/pipeline.py +84 -6
  82. mage_ai/data_preparation/models/pipelines/integration_pipeline.py +0 -1
  83. mage_ai/data_preparation/models/pipelines/models.py +16 -0
  84. mage_ai/data_preparation/models/project/__init__.py +6 -0
  85. mage_ai/data_preparation/models/project/constants.py +1 -0
  86. mage_ai/data_preparation/models/project/models.py +12 -0
  87. mage_ai/data_preparation/preferences.py +29 -18
  88. mage_ai/data_preparation/repo_manager.py +35 -3
  89. mage_ai/data_preparation/sync/__init__.py +2 -0
  90. mage_ai/data_preparation/templates/constants.py +14 -0
  91. mage_ai/data_preparation/templates/data_exporters/chroma.py +24 -0
  92. mage_ai/data_preparation/templates/data_exporters/streaming/rabbitmq.yaml +7 -0
  93. mage_ai/data_preparation/templates/data_loaders/chroma.py +27 -0
  94. mage_ai/data_preparation/templates/data_loaders/streaming/activemq.yaml +6 -0
  95. mage_ai/data_preparation/templates/data_loaders/streaming/nats.yaml +20 -0
  96. mage_ai/data_preparation/templates/repo/io_config.yaml +3 -0
  97. mage_ai/io/base.py +1 -0
  98. mage_ai/io/chroma.py +153 -0
  99. mage_ai/io/config.py +8 -0
  100. mage_ai/orchestration/db/models/schedules.py +100 -36
  101. mage_ai/orchestration/pipeline_scheduler.py +58 -19
  102. mage_ai/orchestration/queue/process_queue.py +9 -1
  103. mage_ai/orchestration/triggers/api.py +11 -3
  104. mage_ai/orchestration/triggers/constants.py +1 -0
  105. mage_ai/server/active_kernel.py +37 -4
  106. mage_ai/server/api/downloads.py +76 -1
  107. mage_ai/server/constants.py +1 -1
  108. mage_ai/server/frontend_dist/404.html +2 -2
  109. mage_ai/server/frontend_dist/_next/static/N3FS4bHv0jpYeeg672uYK/_buildManifest.js +1 -0
  110. mage_ai/server/frontend_dist/_next/static/chunks/1749-bf512b4dabbab7fa.js +1 -0
  111. mage_ai/server/frontend_dist/_next/static/chunks/{7519-8c29bbb92e03cc77.js → 1845-5ce774d5ab81ed57.js} +1 -1
  112. mage_ai/server/frontend_dist/_next/static/chunks/1952-57858e7445d24413.js +1 -0
  113. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/2714-1e79e9f2e998b544.js → frontend_dist/_next/static/chunks/2714-68fef54789d7eaeb.js} +1 -1
  114. mage_ai/server/frontend_dist/_next/static/chunks/2717-92cdffd87b6f6e05.js +1 -0
  115. mage_ai/server/frontend_dist/_next/static/chunks/3419-715ca383fa15a5ef.js +1 -0
  116. mage_ai/server/frontend_dist/_next/static/chunks/3437-b4d6a037cf5781f8.js +1 -0
  117. mage_ai/server/frontend_dist/_next/static/chunks/3943-c9fb980f03df6450.js +1 -0
  118. mage_ai/server/frontend_dist/_next/static/chunks/4267-cb102e060a43d9bd.js +1 -0
  119. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/3932-0ceca9599d6e6d00.js → frontend_dist/_next/static/chunks/4366-3e52497942acbafe.js} +1 -1
  120. mage_ai/server/frontend_dist/_next/static/chunks/{4783-1a21d9be47574bba.js → 4783-422429203610c318.js} +1 -1
  121. mage_ai/server/frontend_dist/_next/static/chunks/5457-949640f4037bf12f.js +1 -0
  122. mage_ai/server/frontend_dist/_next/static/chunks/5499-76cf8f023c6b0985.js +1 -0
  123. mage_ai/server/frontend_dist/_next/static/chunks/553-7f7919e14392ca67.js +1 -0
  124. mage_ai/server/frontend_dist/_next/static/chunks/5638-a65610405a70961c.js +1 -0
  125. mage_ai/server/frontend_dist/_next/static/chunks/5810-e26a0768db1cfdba.js +1 -0
  126. mage_ai/server/frontend_dist/_next/static/chunks/5820-28adeabb5cda2b96.js +1 -0
  127. mage_ai/server/frontend_dist/_next/static/chunks/{5896-14e5a23b1c6a0769.js → 5896-7b8e36634d7d94eb.js} +1 -1
  128. mage_ai/server/frontend_dist/_next/static/chunks/600-705fe234320ec5de.js +1 -0
  129. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/3122-f27de34d0b5426af.js → frontend_dist/_next/static/chunks/6285-648f9a732e100b2f.js} +1 -1
  130. mage_ai/server/frontend_dist/_next/static/chunks/6798-b904395b0c18647b.js +1 -0
  131. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/5397-b5f2e477acc6bd6b.js → frontend_dist/_next/static/chunks/6965-c613d1834c8ed92d.js} +1 -1
  132. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/7022-18fde36eb46e1d65.js → frontend_dist/_next/static/chunks/7022-e76cae3ba5ee5312.js} +1 -1
  133. mage_ai/server/frontend_dist/_next/static/chunks/722-900f786d24f91b2e.js +1 -0
  134. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/7361-694e1e4fb9c97d68.js → frontend_dist/_next/static/chunks/7361-6c5c9063b9f91700.js} +1 -1
  135. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/7858-c83d25349d0e980f.js → frontend_dist/_next/static/chunks/7858-d9df72e95e438284.js} +1 -1
  136. mage_ai/server/frontend_dist/_next/static/chunks/{8146-92e7ccfed169ee9c.js → 8146-27f0e31f309897a5.js} +1 -1
  137. mage_ai/server/frontend_dist/_next/static/chunks/8264-0d582a6ca33c3dfa.js +1 -0
  138. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/3684-cbda680fd8927d07.js → frontend_dist/_next/static/chunks/8432-f191e39f9b5893f2.js} +1 -1
  139. mage_ai/server/frontend_dist/_next/static/chunks/845-9a73c65fe3fdc328.js +1 -0
  140. mage_ai/server/frontend_dist/_next/static/chunks/8487-8e1c09546dff4dbf.js +1 -0
  141. mage_ai/server/frontend_dist/_next/static/chunks/90-a7308bae028d7001.js +1 -0
  142. mage_ai/server/frontend_dist/_next/static/chunks/9264-cc44b07f248707b0.js +1 -0
  143. mage_ai/server/frontend_dist/_next/static/chunks/9618-4eb49cdbd1ba11d7.js +1 -0
  144. mage_ai/server/frontend_dist/_next/static/chunks/{976-18c98af60b76f1a7.js → 976-0a8c2c4d7acd957b.js} +1 -1
  145. mage_ai/server/frontend_dist/_next/static/chunks/framework-22b71764bf44ede4.js +1 -0
  146. mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-78c4a077a2f279c2.js +1 -0
  147. mage_ai/server/frontend_dist/_next/static/chunks/pages/block-layout-a24cb24b6f08bbc9.js +1 -0
  148. mage_ai/server/frontend_dist/_next/static/chunks/pages/compute-419775ca1293b354.js +1 -0
  149. mage_ai/server/frontend_dist/_next/static/chunks/pages/files-b37d221eb5ddc248.js +1 -0
  150. mage_ai/server/frontend_dist/_next/static/chunks/pages/global-data-products/{[...slug]-3f6fc312f67ff72e.js → [...slug]-cfd68e760ae00958.js} +1 -1
  151. mage_ai/server/frontend_dist/_next/static/chunks/pages/{global-data-products-f4cd03036c3e8723.js → global-data-products-c3b79ef31007f95b.js} +1 -1
  152. mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks/[...slug]-7adc543fc490367a.js +1 -0
  153. mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks-51d366993f6dd449.js +1 -0
  154. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/files-fe6e73463a20d67c.js +1 -0
  155. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/settings-60845f0b59142f32.js +1 -0
  156. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/[user]-1d9b298fdceabbf1.js → frontend_dist/_next/static/chunks/pages/manage/users/[user]-9384c5f1efa2ac18.js} +1 -1
  157. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/new-abd8571907664fdf.js +1 -0
  158. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/{users-a7c970122a10afdc.js → users-28a930b148d99766.js} +1 -1
  159. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-d8a38b5d1f50e798.js +1 -0
  160. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/overview-a4647a274cf4dffa.js → frontend_dist/_next/static/chunks/pages/overview-f0c40645f385f23f.js} +1 -1
  161. mage_ai/server/frontend_dist/_next/static/chunks/pages/{pipeline-runs-c79819d6826e5416.js → pipeline-runs-b35d37bfba8fbccc.js} +1 -1
  162. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-9adc2974aada27ba.js +1 -0
  163. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-51b1311dff2a974e.js +1 -0
  164. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-571c0962333b92f0.js +1 -0
  165. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-2333e524d34b474a.js +1 -0
  166. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{logs-a52d2d3e0c2978f4.js → logs-ef680455ae54ccbe.js} +1 -1
  167. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-ddddcddd2f74b4f6.js +1 -0
  168. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-4a238307feddb522.js +1 -0
  169. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors-6d1afeb4a84f50f7.js +1 -0
  170. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-1ff9bb8e22ca1e75.js +1 -0
  171. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs-ce717786f31e8f04.js → frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-2d20b2cd08907afd.js} +1 -1
  172. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-11363aa58d51f4e1.js +1 -0
  173. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-b75bf17498e87354.js +1 -0
  174. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-779c3ef0676a12ac.js +1 -0
  175. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-bbea9a088657404a.js +1 -0
  176. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/{[pipeline]-35fe7762cb83a733.js → [pipeline]-02c843b9c8418bb5.js} +1 -1
  177. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-3737f2b0afc2ede3.js +1 -0
  178. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/account/profile-3c8f062913c66f3e.js +1 -0
  179. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/permissions/{[...slug]-d6a62284c7c99cb3.js → [...slug]-b78b1be5b9ed84b9.js} +1 -1
  180. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{permissions-b1389695f758c32b.js → permissions-37b78a436eeab258.js} +1 -1
  181. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-c1f4ed17d501ccca.js +1 -0
  182. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/roles/{[...slug]-0bdb66265286ab22.js → [...slug]-db05a80d18c168e5.js} +1 -1
  183. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{roles-e04e18fc295ca76a.js → roles-f55c77e4f46c8d33.js} +1 -1
  184. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/sync-data-2a1f8737561fdd94.js +1 -0
  185. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users/{[...slug]-0267358c91122109.js → [...slug]-e3bf6e5d8bb250c4.js} +1 -1
  186. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{users-50fed18bb9b8d142.js → users-20f0a050a42a015d.js} +1 -1
  187. mage_ai/server/frontend_dist/_next/static/chunks/pages/{settings-56f83205752b1323.js → settings-0f0121db7f5ff93d.js} +1 -1
  188. mage_ai/server/frontend_dist/_next/static/chunks/pages/sign-in-99e2748e3c1d57a3.js +1 -0
  189. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/templates/[...slug]-9370551ffa462144.js → frontend_dist/_next/static/chunks/pages/templates/[...slug]-f44ccd1499ffd23a.js} +1 -1
  190. mage_ai/server/frontend_dist/_next/static/chunks/pages/{templates-3cff90df13a1a755.js → templates-1bfaa1c50e844813.js} +1 -1
  191. mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-ed121e305169cf1c.js +1 -0
  192. mage_ai/server/frontend_dist/_next/static/chunks/pages/test-9ae68758102cc843.js +1 -0
  193. mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-8bdd858240d5dbf6.js +1 -0
  194. mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-dd4fb405695f74bf.js +1 -0
  195. mage_ai/server/frontend_dist/_next/static/chunks/{webpack-8af2b89c5a3779fc.js → webpack-fea697dd168c6d0c.js} +1 -1
  196. mage_ai/server/frontend_dist/block-layout.html +2 -2
  197. mage_ai/server/frontend_dist/compute.html +5 -5
  198. mage_ai/server/frontend_dist/files.html +5 -5
  199. mage_ai/server/frontend_dist/global-data-products/[...slug].html +5 -5
  200. mage_ai/server/frontend_dist/global-data-products.html +5 -5
  201. mage_ai/server/frontend_dist/global-hooks/[...slug].html +24 -0
  202. mage_ai/server/frontend_dist/global-hooks.html +24 -0
  203. mage_ai/server/frontend_dist/index.html +2 -2
  204. mage_ai/server/frontend_dist/manage/files.html +5 -5
  205. mage_ai/server/frontend_dist/manage/settings.html +5 -5
  206. mage_ai/server/frontend_dist/manage/users/[user].html +5 -5
  207. mage_ai/server/frontend_dist/manage/users/new.html +5 -5
  208. mage_ai/server/frontend_dist/manage/users.html +5 -5
  209. mage_ai/server/frontend_dist/manage.html +5 -5
  210. mage_ai/server/frontend_dist/oauth.html +4 -4
  211. mage_ai/server/frontend_dist/overview.html +5 -5
  212. mage_ai/server/frontend_dist/pipeline-runs.html +5 -5
  213. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +5 -5
  214. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +5 -5
  215. mage_ai/server/frontend_dist/pipelines/[pipeline]/dashboard.html +5 -5
  216. mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +2 -2
  217. mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +5 -5
  218. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +5 -5
  219. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +5 -5
  220. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +5 -5
  221. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +5 -5
  222. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +5 -5
  223. mage_ai/server/frontend_dist/pipelines/[pipeline]/settings.html +5 -5
  224. mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +5 -5
  225. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +5 -5
  226. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +5 -5
  227. mage_ai/server/frontend_dist/pipelines/[pipeline].html +2 -2
  228. mage_ai/server/frontend_dist/pipelines.html +5 -5
  229. mage_ai/server/frontend_dist/settings/account/profile.html +5 -5
  230. mage_ai/server/frontend_dist/settings/workspace/permissions/[...slug].html +5 -5
  231. mage_ai/server/frontend_dist/settings/workspace/permissions.html +5 -5
  232. mage_ai/server/frontend_dist/settings/workspace/preferences.html +5 -5
  233. mage_ai/server/frontend_dist/settings/workspace/roles/[...slug].html +5 -5
  234. mage_ai/server/frontend_dist/settings/workspace/roles.html +5 -5
  235. mage_ai/server/frontend_dist/settings/workspace/sync-data.html +5 -5
  236. mage_ai/server/frontend_dist/settings/workspace/users/[...slug].html +5 -5
  237. mage_ai/server/frontend_dist/settings/workspace/users.html +5 -5
  238. mage_ai/server/frontend_dist/settings.html +2 -2
  239. mage_ai/server/frontend_dist/sign-in.html +24 -25
  240. mage_ai/server/frontend_dist/templates/[...slug].html +5 -5
  241. mage_ai/server/frontend_dist/templates.html +5 -5
  242. mage_ai/server/frontend_dist/terminal.html +5 -5
  243. mage_ai/server/frontend_dist/test.html +15 -15
  244. mage_ai/server/frontend_dist/triggers.html +5 -5
  245. mage_ai/server/frontend_dist/version-control.html +5 -5
  246. mage_ai/server/frontend_dist_base_path_template/404.html +2 -2
  247. mage_ai/server/frontend_dist_base_path_template/_next/static/aoO6jYZLVlUGCCdY-wmy8/_buildManifest.js +1 -0
  248. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1749-bf512b4dabbab7fa.js +1 -0
  249. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{7519-8c29bbb92e03cc77.js → 1845-5ce774d5ab81ed57.js} +1 -1
  250. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1952-57858e7445d24413.js +1 -0
  251. mage_ai/server/{frontend_dist/_next/static/chunks/2714-1e79e9f2e998b544.js → frontend_dist_base_path_template/_next/static/chunks/2714-68fef54789d7eaeb.js} +1 -1
  252. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2717-92cdffd87b6f6e05.js +1 -0
  253. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3419-715ca383fa15a5ef.js +1 -0
  254. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3437-b4d6a037cf5781f8.js +1 -0
  255. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3943-c9fb980f03df6450.js +1 -0
  256. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4267-cb102e060a43d9bd.js +1 -0
  257. mage_ai/server/{frontend_dist/_next/static/chunks/3932-0ceca9599d6e6d00.js → frontend_dist_base_path_template/_next/static/chunks/4366-3e52497942acbafe.js} +1 -1
  258. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{4783-1a21d9be47574bba.js → 4783-422429203610c318.js} +1 -1
  259. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5457-949640f4037bf12f.js +1 -0
  260. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5499-76cf8f023c6b0985.js +1 -0
  261. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/553-7f7919e14392ca67.js +1 -0
  262. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5638-a65610405a70961c.js +1 -0
  263. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5810-e26a0768db1cfdba.js +1 -0
  264. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5820-28adeabb5cda2b96.js +1 -0
  265. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{5896-14e5a23b1c6a0769.js → 5896-7b8e36634d7d94eb.js} +1 -1
  266. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/600-705fe234320ec5de.js +1 -0
  267. mage_ai/server/{frontend_dist/_next/static/chunks/3122-f27de34d0b5426af.js → frontend_dist_base_path_template/_next/static/chunks/6285-648f9a732e100b2f.js} +1 -1
  268. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6798-b904395b0c18647b.js +1 -0
  269. mage_ai/server/{frontend_dist/_next/static/chunks/5397-b5f2e477acc6bd6b.js → frontend_dist_base_path_template/_next/static/chunks/6965-c613d1834c8ed92d.js} +1 -1
  270. mage_ai/server/{frontend_dist/_next/static/chunks/7022-18fde36eb46e1d65.js → frontend_dist_base_path_template/_next/static/chunks/7022-e76cae3ba5ee5312.js} +1 -1
  271. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/722-900f786d24f91b2e.js +1 -0
  272. mage_ai/server/{frontend_dist/_next/static/chunks/7361-694e1e4fb9c97d68.js → frontend_dist_base_path_template/_next/static/chunks/7361-6c5c9063b9f91700.js} +1 -1
  273. mage_ai/server/{frontend_dist/_next/static/chunks/7858-c83d25349d0e980f.js → frontend_dist_base_path_template/_next/static/chunks/7858-d9df72e95e438284.js} +1 -1
  274. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{8146-92e7ccfed169ee9c.js → 8146-27f0e31f309897a5.js} +1 -1
  275. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8264-0d582a6ca33c3dfa.js +1 -0
  276. mage_ai/server/{frontend_dist/_next/static/chunks/3684-cbda680fd8927d07.js → frontend_dist_base_path_template/_next/static/chunks/8432-f191e39f9b5893f2.js} +1 -1
  277. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/845-9a73c65fe3fdc328.js +1 -0
  278. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8487-8e1c09546dff4dbf.js +1 -0
  279. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/90-a7308bae028d7001.js +1 -0
  280. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9264-cc44b07f248707b0.js +1 -0
  281. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9618-4eb49cdbd1ba11d7.js +1 -0
  282. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{976-18c98af60b76f1a7.js → 976-0a8c2c4d7acd957b.js} +1 -1
  283. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/framework-22b71764bf44ede4.js +1 -0
  284. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/_app-78c4a077a2f279c2.js +1 -0
  285. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/block-layout-a24cb24b6f08bbc9.js +1 -0
  286. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/compute-419775ca1293b354.js +1 -0
  287. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/files-b37d221eb5ddc248.js +1 -0
  288. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-data-products/{[...slug]-3f6fc312f67ff72e.js → [...slug]-cfd68e760ae00958.js} +1 -1
  289. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{global-data-products-f4cd03036c3e8723.js → global-data-products-c3b79ef31007f95b.js} +1 -1
  290. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks/[...slug]-7adc543fc490367a.js +1 -0
  291. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks-51d366993f6dd449.js +1 -0
  292. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/files-fe6e73463a20d67c.js +1 -0
  293. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/settings-60845f0b59142f32.js +1 -0
  294. mage_ai/server/{frontend_dist/_next/static/chunks/pages/manage/users/[user]-1d9b298fdceabbf1.js → frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/[user]-9384c5f1efa2ac18.js} +1 -1
  295. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/new-abd8571907664fdf.js +1 -0
  296. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/{users-a7c970122a10afdc.js → users-28a930b148d99766.js} +1 -1
  297. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage-d8a38b5d1f50e798.js +1 -0
  298. mage_ai/server/{frontend_dist/_next/static/chunks/pages/overview-a4647a274cf4dffa.js → frontend_dist_base_path_template/_next/static/chunks/pages/overview-f0c40645f385f23f.js} +1 -1
  299. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{pipeline-runs-c79819d6826e5416.js → pipeline-runs-b35d37bfba8fbccc.js} +1 -1
  300. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-9adc2974aada27ba.js +1 -0
  301. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-51b1311dff2a974e.js +1 -0
  302. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-571c0962333b92f0.js +1 -0
  303. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-2333e524d34b474a.js +1 -0
  304. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/{logs-a52d2d3e0c2978f4.js → logs-ef680455ae54ccbe.js} +1 -1
  305. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-ddddcddd2f74b4f6.js +1 -0
  306. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-4a238307feddb522.js +1 -0
  307. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors-6d1afeb4a84f50f7.js +1 -0
  308. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-1ff9bb8e22ca1e75.js +1 -0
  309. mage_ai/server/{frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-ce717786f31e8f04.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs-2d20b2cd08907afd.js} +1 -1
  310. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-11363aa58d51f4e1.js +1 -0
  311. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/syncs-b75bf17498e87354.js +1 -0
  312. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-779c3ef0676a12ac.js +1 -0
  313. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers-bbea9a088657404a.js +1 -0
  314. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/{[pipeline]-35fe7762cb83a733.js → [pipeline]-02c843b9c8418bb5.js} +1 -1
  315. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-3737f2b0afc2ede3.js +1 -0
  316. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/account/profile-3c8f062913c66f3e.js +1 -0
  317. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/permissions/{[...slug]-d6a62284c7c99cb3.js → [...slug]-b78b1be5b9ed84b9.js} +1 -1
  318. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{permissions-b1389695f758c32b.js → permissions-37b78a436eeab258.js} +1 -1
  319. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-c1f4ed17d501ccca.js +1 -0
  320. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/roles/{[...slug]-0bdb66265286ab22.js → [...slug]-db05a80d18c168e5.js} +1 -1
  321. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{roles-e04e18fc295ca76a.js → roles-f55c77e4f46c8d33.js} +1 -1
  322. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/sync-data-2a1f8737561fdd94.js +1 -0
  323. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/users/{[...slug]-0267358c91122109.js → [...slug]-e3bf6e5d8bb250c4.js} +1 -1
  324. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{users-50fed18bb9b8d142.js → users-20f0a050a42a015d.js} +1 -1
  325. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{settings-56f83205752b1323.js → settings-0f0121db7f5ff93d.js} +1 -1
  326. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/sign-in-99e2748e3c1d57a3.js +1 -0
  327. mage_ai/server/{frontend_dist/_next/static/chunks/pages/templates/[...slug]-9370551ffa462144.js → frontend_dist_base_path_template/_next/static/chunks/pages/templates/[...slug]-f44ccd1499ffd23a.js} +1 -1
  328. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{templates-3cff90df13a1a755.js → templates-1bfaa1c50e844813.js} +1 -1
  329. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/terminal-ed121e305169cf1c.js +1 -0
  330. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/test-9ae68758102cc843.js +1 -0
  331. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/triggers-8bdd858240d5dbf6.js +1 -0
  332. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/version-control-dd4fb405695f74bf.js +1 -0
  333. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{webpack-074f3eb2281fba79.js → webpack-d30cb09c85b4c4f0.js} +1 -1
  334. mage_ai/server/frontend_dist_base_path_template/block-layout.html +2 -2
  335. mage_ai/server/frontend_dist_base_path_template/compute.html +5 -5
  336. mage_ai/server/frontend_dist_base_path_template/files.html +5 -5
  337. mage_ai/server/frontend_dist_base_path_template/global-data-products/[...slug].html +5 -5
  338. mage_ai/server/frontend_dist_base_path_template/global-data-products.html +5 -5
  339. mage_ai/server/frontend_dist_base_path_template/global-hooks/[...slug].html +24 -0
  340. mage_ai/server/frontend_dist_base_path_template/global-hooks.html +24 -0
  341. mage_ai/server/frontend_dist_base_path_template/index.html +2 -2
  342. mage_ai/server/frontend_dist_base_path_template/manage/files.html +5 -5
  343. mage_ai/server/frontend_dist_base_path_template/manage/settings.html +5 -5
  344. mage_ai/server/frontend_dist_base_path_template/manage/users/[user].html +5 -5
  345. mage_ai/server/frontend_dist_base_path_template/manage/users/new.html +5 -5
  346. mage_ai/server/frontend_dist_base_path_template/manage/users.html +5 -5
  347. mage_ai/server/frontend_dist_base_path_template/manage.html +5 -5
  348. mage_ai/server/frontend_dist_base_path_template/oauth.html +4 -4
  349. mage_ai/server/frontend_dist_base_path_template/overview.html +5 -5
  350. mage_ai/server/frontend_dist_base_path_template/pipeline-runs.html +5 -5
  351. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills/[...slug].html +5 -5
  352. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills.html +5 -5
  353. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/dashboard.html +5 -5
  354. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/edit.html +2 -2
  355. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/logs.html +5 -5
  356. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runs.html +5 -5
  357. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runtime.html +5 -5
  358. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors.html +5 -5
  359. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs/[run].html +5 -5
  360. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs.html +5 -5
  361. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/settings.html +5 -5
  362. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/syncs.html +5 -5
  363. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers/[...slug].html +5 -5
  364. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers.html +5 -5
  365. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline].html +2 -2
  366. mage_ai/server/frontend_dist_base_path_template/pipelines.html +5 -5
  367. mage_ai/server/frontend_dist_base_path_template/settings/account/profile.html +5 -5
  368. mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions/[...slug].html +5 -5
  369. mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions.html +5 -5
  370. mage_ai/server/frontend_dist_base_path_template/settings/workspace/preferences.html +5 -5
  371. mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles/[...slug].html +5 -5
  372. mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles.html +5 -5
  373. mage_ai/server/frontend_dist_base_path_template/settings/workspace/sync-data.html +5 -5
  374. mage_ai/server/frontend_dist_base_path_template/settings/workspace/users/[...slug].html +5 -5
  375. mage_ai/server/frontend_dist_base_path_template/settings/workspace/users.html +5 -5
  376. mage_ai/server/frontend_dist_base_path_template/settings.html +2 -2
  377. mage_ai/server/frontend_dist_base_path_template/sign-in.html +28 -29
  378. mage_ai/server/frontend_dist_base_path_template/templates/[...slug].html +5 -5
  379. mage_ai/server/frontend_dist_base_path_template/templates.html +5 -5
  380. mage_ai/server/frontend_dist_base_path_template/terminal.html +5 -5
  381. mage_ai/server/frontend_dist_base_path_template/test.html +15 -15
  382. mage_ai/server/frontend_dist_base_path_template/triggers.html +5 -5
  383. mage_ai/server/frontend_dist_base_path_template/version-control.html +5 -5
  384. mage_ai/server/server.py +44 -12
  385. mage_ai/server/utils/output_display.py +6 -0
  386. mage_ai/server/websocket_server.py +14 -0
  387. mage_ai/services/aws/emr/config.py +1 -0
  388. mage_ai/services/aws/emr/constants.py +1 -0
  389. mage_ai/services/aws/emr/emr.py +20 -7
  390. mage_ai/services/compute/__init__.py +0 -0
  391. mage_ai/services/compute/aws/__init__.py +0 -0
  392. mage_ai/services/compute/aws/constants.py +21 -0
  393. mage_ai/services/compute/aws/models.py +459 -0
  394. mage_ai/services/compute/aws/steps.py +482 -0
  395. mage_ai/services/compute/constants.py +27 -0
  396. mage_ai/services/compute/models.py +212 -0
  397. mage_ai/services/k8s/job_manager.py +4 -0
  398. mage_ai/services/spark/api/aws_emr.py +38 -0
  399. mage_ai/services/spark/api/base.py +7 -4
  400. mage_ai/services/spark/api/constants.py +4 -0
  401. mage_ai/services/spark/api/local.py +25 -24
  402. mage_ai/services/spark/api/service.py +15 -5
  403. mage_ai/services/spark/constants.py +1 -1
  404. mage_ai/services/spark/models/applications.py +45 -3
  405. mage_ai/services/spark/models/base.py +3 -19
  406. mage_ai/services/spark/models/environments.py +16 -11
  407. mage_ai/services/spark/models/executors.py +2 -2
  408. mage_ai/services/spark/models/sqls.py +46 -15
  409. mage_ai/services/spark/models/stages.py +55 -32
  410. mage_ai/services/spark/models/threads.py +2 -2
  411. mage_ai/services/spark/utils.py +22 -6
  412. mage_ai/services/ssh/__init__.py +0 -0
  413. mage_ai/services/ssh/aws/__init__.py +0 -0
  414. mage_ai/services/ssh/aws/emr/__init__.py +0 -0
  415. mage_ai/services/ssh/aws/emr/constants.py +10 -0
  416. mage_ai/services/ssh/aws/emr/models.py +326 -0
  417. mage_ai/services/ssh/aws/emr/utils.py +151 -0
  418. mage_ai/settings/__init__.py +8 -1
  419. mage_ai/settings/repo.py +3 -0
  420. mage_ai/settings/secret_generation.py +7 -0
  421. mage_ai/settings/sso.py +8 -0
  422. mage_ai/shared/files.py +47 -0
  423. mage_ai/shared/hash.py +16 -0
  424. mage_ai/shared/models.py +254 -0
  425. mage_ai/streaming/constants.py +3 -0
  426. mage_ai/streaming/sinks/postgres.py +2 -0
  427. mage_ai/streaming/sinks/rabbitmq.py +76 -0
  428. mage_ai/streaming/sinks/sink_factory.py +4 -0
  429. mage_ai/streaming/sources/activemq.py +89 -0
  430. mage_ai/streaming/sources/nats_js.py +182 -0
  431. mage_ai/streaming/sources/source_factory.py +8 -0
  432. mage_ai/tests/ai/test_ai_functions.py +53 -8
  433. mage_ai/tests/api/endpoints/test_oauths.py +33 -0
  434. mage_ai/tests/api/endpoints/test_projects.py +1 -0
  435. mage_ai/tests/api/endpoints/test_workspaces.py +55 -0
  436. mage_ai/tests/api/operations/test_base.py +7 -5
  437. mage_ai/tests/api/operations/test_operations.py +0 -1
  438. mage_ai/tests/api/operations/test_operations_with_hooks.py +622 -0
  439. mage_ai/tests/api/operations/test_syncs.py +0 -1
  440. mage_ai/tests/api/operations/test_users.py +13 -2
  441. mage_ai/tests/api/policies/test_oauth_policy.py +38 -0
  442. mage_ai/tests/data_preparation/models/global_hooks/__init__.py +0 -0
  443. mage_ai/tests/data_preparation/models/global_hooks/test_global_hooks.py +600 -0
  444. mage_ai/tests/data_preparation/models/global_hooks/test_hook.py +804 -0
  445. mage_ai/tests/data_preparation/models/global_hooks/test_predicates.py +803 -0
  446. mage_ai/tests/data_preparation/models/global_hooks/test_utils.py +38 -0
  447. mage_ai/tests/data_preparation/models/test_block.py +26 -0
  448. mage_ai/tests/data_preparation/models/test_pipeline.py +15 -0
  449. mage_ai/tests/data_preparation/test_repo_manager.py +11 -0
  450. mage_ai/tests/factory.py +105 -5
  451. mage_ai/tests/orchestration/queue/test_process_queue.py +15 -2
  452. mage_ai/tests/orchestration/test_pipeline_scheduler.py +82 -1
  453. mage_ai/tests/services/k8s/test_job_manager.py +38 -1
  454. mage_ai/tests/shared/mixins.py +328 -0
  455. mage_ai/tests/shared/test_hash.py +17 -1
  456. mage_ai/tests/streaming/sinks/test_rabbitmq.py +36 -0
  457. mage_ai/tests/streaming/sources/test_activemq.py +32 -0
  458. mage_ai/tests/streaming/sources/test_nats_js.py +32 -0
  459. mage_ai/tests/streaming/sources/test_source_factory.py +26 -1
  460. {mage_ai-0.9.45.dist-info → mage_ai-0.9.47.dist-info}/METADATA +14 -4
  461. {mage_ai-0.9.45.dist-info → mage_ai-0.9.47.dist-info}/RECORD +467 -386
  462. {mage_ai-0.9.45.dist-info → mage_ai-0.9.47.dist-info}/WHEEL +1 -1
  463. mage_ai/authentication/oauth/active_directory.py +0 -17
  464. mage_ai/server/frontend_dist/_next/static/chunks/1125-91d3ce33140ef041.js +0 -1
  465. mage_ai/server/frontend_dist/_next/static/chunks/1749-607014ecf28268bf.js +0 -1
  466. mage_ai/server/frontend_dist/_next/static/chunks/1952-573c7fc7ad84da6e.js +0 -1
  467. mage_ai/server/frontend_dist/_next/static/chunks/3004-231cad9039ae5dcb.js +0 -1
  468. mage_ai/server/frontend_dist/_next/static/chunks/3419-0873e170ef7d6303.js +0 -1
  469. mage_ai/server/frontend_dist/_next/static/chunks/3943-9e1105393a3be0de.js +0 -1
  470. mage_ai/server/frontend_dist/_next/static/chunks/4267-335766a915ee2fa9.js +0 -1
  471. mage_ai/server/frontend_dist/_next/static/chunks/5457-8be2e0a3fe0ba64b.js +0 -1
  472. mage_ai/server/frontend_dist/_next/static/chunks/5499-bca977f466e259e1.js +0 -1
  473. mage_ai/server/frontend_dist/_next/static/chunks/553-edf533e634e85192.js +0 -1
  474. mage_ai/server/frontend_dist/_next/static/chunks/5810-37c6091b29a1fe53.js +0 -1
  475. mage_ai/server/frontend_dist/_next/static/chunks/600-0733eb84f0a0a9e0.js +0 -1
  476. mage_ai/server/frontend_dist/_next/static/chunks/6333-95ad799d13326dce.js +0 -1
  477. mage_ai/server/frontend_dist/_next/static/chunks/722-2a171fe616310f60.js +0 -1
  478. mage_ai/server/frontend_dist/_next/static/chunks/8224-39a93ee1058b6069.js +0 -1
  479. mage_ai/server/frontend_dist/_next/static/chunks/8264-6ef8fdb195694807.js +0 -1
  480. mage_ai/server/frontend_dist/_next/static/chunks/8487-032ef9b17d20aad9.js +0 -1
  481. mage_ai/server/frontend_dist/_next/static/chunks/9264-1b5c4b071ed544c3.js +0 -1
  482. mage_ai/server/frontend_dist/_next/static/chunks/framework-7c365855dab1bf41.js +0 -1
  483. mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-1203afde83fa2d6e.js +0 -1
  484. mage_ai/server/frontend_dist/_next/static/chunks/pages/block-layout-c465c14d48392b11.js +0 -1
  485. mage_ai/server/frontend_dist/_next/static/chunks/pages/compute-b1f8d5a7a9a30f2d.js +0 -1
  486. mage_ai/server/frontend_dist/_next/static/chunks/pages/files-93c094bad0f299fb.js +0 -1
  487. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/files-891e5bd5935f7473.js +0 -1
  488. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/settings-d2e4ee4e68d36807.js +0 -1
  489. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/new-4a49126fcfe8ced0.js +0 -1
  490. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-5f8c5d0bc6ad1113.js +0 -1
  491. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-b4c0a36c69c346a4.js +0 -1
  492. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-a9266d353f288e8c.js +0 -1
  493. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-b5c29c852262312e.js +0 -1
  494. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-9f233917aa72ad82.js +0 -1
  495. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-5af599da035252a7.js +0 -1
  496. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-8597f8e13d80ee48.js +0 -1
  497. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors-5e0d047a6c9cb1fc.js +0 -1
  498. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-b0a508aa52914dad.js +0 -1
  499. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-074c32397d341de9.js +0 -1
  500. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-50f5d8706ed0bc73.js +0 -1
  501. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-e151c1552fcb67bd.js +0 -1
  502. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-95394769a783c6c7.js +0 -1
  503. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-8336c4326f1e7d96.js +0 -1
  504. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/account/profile-01dd679e4a21e0d9.js +0 -1
  505. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-4d9051c073a9b2ff.js +0 -1
  506. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/sync-data-5a306deca6717862.js +0 -1
  507. mage_ai/server/frontend_dist/_next/static/chunks/pages/sign-in-0dbc5b11019e78a0.js +0 -1
  508. mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-578d862f3e56e6e6.js +0 -1
  509. mage_ai/server/frontend_dist/_next/static/chunks/pages/test-1c0588d685b909b9.js +0 -1
  510. mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-ffaab4c013e62ba1.js +0 -1
  511. mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-114000e84313994f.js +0 -1
  512. mage_ai/server/frontend_dist/_next/static/icIDjCezcfhiKL87kgeSY/_buildManifest.js +0 -1
  513. mage_ai/server/frontend_dist_base_path_template/_next/static/_O1kJQLGtZmoBMyWpQrea/_buildManifest.js +0 -1
  514. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1125-91d3ce33140ef041.js +0 -1
  515. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1749-607014ecf28268bf.js +0 -1
  516. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1952-573c7fc7ad84da6e.js +0 -1
  517. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3004-231cad9039ae5dcb.js +0 -1
  518. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3419-0873e170ef7d6303.js +0 -1
  519. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3943-9e1105393a3be0de.js +0 -1
  520. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4267-335766a915ee2fa9.js +0 -1
  521. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5457-8be2e0a3fe0ba64b.js +0 -1
  522. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5499-bca977f466e259e1.js +0 -1
  523. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/553-edf533e634e85192.js +0 -1
  524. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5810-37c6091b29a1fe53.js +0 -1
  525. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/600-0733eb84f0a0a9e0.js +0 -1
  526. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6333-95ad799d13326dce.js +0 -1
  527. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/722-2a171fe616310f60.js +0 -1
  528. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8224-39a93ee1058b6069.js +0 -1
  529. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8264-6ef8fdb195694807.js +0 -1
  530. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8487-032ef9b17d20aad9.js +0 -1
  531. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9264-1b5c4b071ed544c3.js +0 -1
  532. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/framework-7c365855dab1bf41.js +0 -1
  533. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/_app-1203afde83fa2d6e.js +0 -1
  534. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/block-layout-c465c14d48392b11.js +0 -1
  535. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/compute-b1f8d5a7a9a30f2d.js +0 -1
  536. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/files-93c094bad0f299fb.js +0 -1
  537. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/files-891e5bd5935f7473.js +0 -1
  538. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/settings-d2e4ee4e68d36807.js +0 -1
  539. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/new-4a49126fcfe8ced0.js +0 -1
  540. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage-5f8c5d0bc6ad1113.js +0 -1
  541. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-b4c0a36c69c346a4.js +0 -1
  542. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-a9266d353f288e8c.js +0 -1
  543. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-b5c29c852262312e.js +0 -1
  544. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-9f233917aa72ad82.js +0 -1
  545. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-5af599da035252a7.js +0 -1
  546. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-8597f8e13d80ee48.js +0 -1
  547. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors-5e0d047a6c9cb1fc.js +0 -1
  548. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-b0a508aa52914dad.js +0 -1
  549. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-074c32397d341de9.js +0 -1
  550. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/syncs-50f5d8706ed0bc73.js +0 -1
  551. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-e151c1552fcb67bd.js +0 -1
  552. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers-95394769a783c6c7.js +0 -1
  553. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-8336c4326f1e7d96.js +0 -1
  554. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/account/profile-01dd679e4a21e0d9.js +0 -1
  555. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-4d9051c073a9b2ff.js +0 -1
  556. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/sync-data-5a306deca6717862.js +0 -1
  557. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/sign-in-0dbc5b11019e78a0.js +0 -1
  558. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/terminal-578d862f3e56e6e6.js +0 -1
  559. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/test-1c0588d685b909b9.js +0 -1
  560. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/triggers-ffaab4c013e62ba1.js +0 -1
  561. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/version-control-114000e84313994f.js +0 -1
  562. /mage_ai/server/frontend_dist/_next/static/{icIDjCezcfhiKL87kgeSY → N3FS4bHv0jpYeeg672uYK}/_ssgManifest.js +0 -0
  563. /mage_ai/server/frontend_dist_base_path_template/_next/static/{_O1kJQLGtZmoBMyWpQrea → aoO6jYZLVlUGCCdY-wmy8}/_ssgManifest.js +0 -0
  564. {mage_ai-0.9.45.dist-info → mage_ai-0.9.47.dist-info}/LICENSE +0 -0
  565. {mage_ai-0.9.45.dist-info → mage_ai-0.9.47.dist-info}/entry_points.txt +0 -0
  566. {mage_ai-0.9.45.dist-info → mage_ai-0.9.47.dist-info}/top_level.txt +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3437],{55283:function(e,n,t){t.d(n,{HC:function(){return S},HS:function(){return y},IN:function(){return p},Kf:function(){return m},Nk:function(){return g},PB:function(){return b},PY:function(){return x},WC:function(){return f},fk:function(){return P},gE:function(){return Z},j1:function(){return k},jv:function(){return _},nz:function(){return j},oh:function(){return s},qn:function(){return v},t1:function(){return O},u2:function(){return h},y9:function(){return A}});var o=t(38626),i=t(44897),r=t(44425),l=t(42631),c=t(8059),d=t(70515),a=t(47041),u=t(91437),s=68,p=1.5*d.iI,f=3*d.iI;function h(e){var n=c.eW;return r.tf.CALLBACK===e?n=c.J:r.tf.CHART===e||r.tf.CONDITIONAL===e?n=c.Hv:r.tf.CUSTOM===e?n=c.AK:r.tf.DATA_EXPORTER===e?n=c.Sr:r.tf.DATA_LOADER===e?n=c.R2:r.tf.DBT===e?n=c.J:r.tf.EXTENSION===e?n=c.FI:r.tf.GLOBAL_DATA_PRODUCT===e?n=c.yr:r.tf.SCRATCHPAD===e?n=c.Hv:r.tf.SENSOR===e?n=c.rK:r.tf.MARKDOWN===e?n=c.RK:r.tf.TRANSFORMER===e&&(n=c.eW),n}function v(e,n){var t,o,l=((null===n||void 0===n||null===(t=n.theme)||void 0===t?void 0:t.borders)||i.Z.borders).light,c=((null===n||void 0===n||null===(o=n.theme)||void 0===o?void 0:o.monotone)||i.Z.monotone).grey500,d=n||{},a=d.blockColor,u=d.isSelected,s=d.theme;return u?l=(s||i.Z).content.active:r.tf.TRANSFORMER===e||a===r.Lq.PURPLE?(l=(s||i.Z).accent.purple,c=(s||i.Z).accent.purpleLight):r.tf.DATA_EXPORTER===e||a===r.Lq.YELLOW?(l=(s||i.Z).accent.yellow,c=(s||i.Z).accent.yellowLight):r.tf.DATA_LOADER===e||a===r.Lq.BLUE?(l=(s||i.Z).accent.blue,c=(s||i.Z).accent.blueLight):r.tf.MARKDOWN===e?(l=(s||i.Z).accent.sky,c=(s||i.Z).accent.skyLight):r.tf.SENSOR===e||a===r.Lq.PINK?(l=(s||i.Z).accent.pink,c=(s||i.Z).accent.pinkLight):r.tf.DBT===e?(l=(s||i.Z).accent.dbt,c=(s||i.Z).accent.dbtLight):r.tf.EXTENSION===e||a===r.Lq.TEAL?(l=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).teal,c=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).tealLight):r.tf.CALLBACK===e?(l=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).rose,c=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).roseLight):r.tf.CONDITIONAL===e||r.tf.SCRATCHPAD===e||a===r.Lq.GREY||r.tf.CUSTOM===e&&!a?(l=(s||i.Z).content.default,c=(s||i.Z).accent.contentDefaultTransparent):r.tf.GLOBAL_DATA_PRODUCT!==e||a||(l=(s||i.Z).monotone.white,c=(s||i.Z).monotone.whiteTransparent),{accent:l,accentLight:c}}var m=(0,o.css)([""," "," "," "," "," "," ",""],(0,u.eR)(),(function(e){return!e.selected&&!e.hasError&&"\n border-color: ".concat(v(e.blockType,e).accentLight,";\n ")}),(function(e){return e.selected&&!e.hasError&&"\n border-color: ".concat(v(e.blockType,e).accent,";\n ")}),(function(e){return!e.selected&&e.hasError&&"\n border-color: ".concat((e.theme.accent||i.Z.accent).negativeTransparent,";\n ")}),(function(e){return e.selected&&e.hasError&&"\n border-color: ".concat((e.theme.borders||i.Z.borders).danger,";\n ")}),(function(e){return e.dynamicBlock&&"\n border-style: dashed !important;\n "}),(function(e){return e.dynamicChildBlock&&"\n border-style: dotted !important;\n "})),g=o.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-s5rj34-0"})(["border-radius:","px;position:relative;"],l.n_),x=o.default.div.withConfig({displayName:"indexstyle__HiddenBlockContainerStyle",componentId:"sc-s5rj34-1"})([""," border-radius:","px;border-style:",";border-width:","px;",""],m,l.n_,l.M8,l.mP,(function(e){return"\n background-color: ".concat((e.theme||i.Z).background.content,";\n\n &:hover {\n border-color: ").concat(v(e.blockType,e).accent,";\n }\n ")})),b=o.default.div.withConfig({displayName:"indexstyle__HeaderHorizontalBorder",componentId:"sc-s5rj34-2"})(["",""],(function(e){return"\n border-bottom: 1px solid ".concat((e.theme||i.Z).borders.darkLight,";\n ")})),j=o.default.div.withConfig({displayName:"indexstyle__BlockHeaderStyle",componentId:"sc-s5rj34-3"})([""," border-top-left-radius:","px;border-top-right-radius:","px;border-top-style:",";border-top-width:","px;border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding-bottom:","px;padding-top:","px;"," "," "," ",""],m,l.n_,l.n_,l.M8,l.mP,l.M8,l.mP,l.M8,l.mP,1*d.iI,1*d.iI,(function(e){return"\n background-color: ".concat((e.theme||i.Z).background.dashboard,";\n ")}),(function(e){return"undefined"!==typeof e.zIndex&&null!==e.zIndex&&"\n z-index: ".concat(6+(e.zIndex||0),";\n ")}),(function(e){return!e.noSticky&&"\n // This is to hide the horizontal scrollbar in the block header when sideBySide is enabled,\n // and the screen width is too small.\n position: sticky;\n top: -5px;\n "}),(function(e){return e.noSticky&&"\n ".concat((0,a.y$)(),"\n\n overflow-x: auto;\n overflow-y: visible;\n ")})),y=o.default.div.withConfig({displayName:"indexstyle__SubheaderStyle",componentId:"sc-s5rj34-4"})([""," "," ",""],(function(e){return!e.darkBorder&&"\n border-bottom: 1px solid ".concat((e.theme.borders||i.Z.borders).darkLight,";\n ")}),(function(e){return e.darkBorder&&"\n border-bottom: 1px solid ".concat((e.theme.borders||i.Z.borders).medium,";\n ")}),(function(e){return!e.noBackground&&"\n background-color: ".concat((e.theme||i.Z).background.dashboard,";\n ")})),_=o.default.div.withConfig({displayName:"indexstyle__CodeContainerStyle",componentId:"sc-s5rj34-5"})([""," border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;position:relative;"," "," "," "," .line-numbers{opacity:0;}&.selected{.line-numbers{opacity:1 !important;}}"],m,l.M8,l.mP,l.M8,l.mP,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).codeTextarea,";\n ")}),(function(e){return!e.noPadding&&"\n padding-bottom: ".concat(d.iI,"px;\n padding-top: ").concat(d.iI,"px;\n ")}),(function(e){return e.lightBackground&&"\n background-color: ".concat((e.theme||i.Z).background.content,";\n ")}),(function(e){return!e.hideBorderBottom&&"\n border-bottom-left-radius: ".concat(l.n_,"px;\n border-bottom-right-radius: ").concat(l.n_,"px;\n border-bottom-style: ").concat(l.M8,";\n border-bottom-width: ").concat(l.mP,"px;\n overflow: hidden;\n ")})),Z=o.default.div.withConfig({displayName:"indexstyle__BlockDivider",componentId:"sc-s5rj34-6"})(["align-items:center;display:flex;height:","px;justify-content:center;position:relative;z-index:8;&:hover{"," .block-divider-inner{","}}"," "," "," ",""],2*d.iI,(function(e){return e.additionalZIndex>0&&"\n z-index: ".concat(8+e.additionalZIndex,";\n ")}),(function(e){return"\n background-color: ".concat((e.theme.text||i.Z.text).fileBrowser,";\n ")}),(function(e){return!e.height&&"\n height: ".concat(2*d.iI,"px;\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),(function(e){return!e.bottom&&"\n bottom: ".concat(.5*d.iI,"px;\n ")}),(function(e){return"undefined"!==typeof e.bottom&&"\n bottom: ".concat(e.bottom,"px;\n ")})),O=o.default.div.withConfig({displayName:"indexstyle__BlockDividerInner",componentId:"sc-s5rj34-7"})(["height 1px;width:100%;position:absolute;z-index:-1;"," ",""],(function(e){return!e.top&&"\n top: ".concat(1.5*d.iI,"px;\n ")}),(function(e){return"undefined"!==typeof e.top&&"\n top: ".concat(e.top,"px;\n ")})),A=o.default.div.withConfig({displayName:"indexstyle__CodeHelperStyle",componentId:"sc-s5rj34-8"})([""," ",""],(function(e){return"\n border-bottom: 1px solid ".concat((e.theme.borders||i.Z.borders).medium,";\n padding-left: ").concat(e.normalPadding?d.iI:s,"px;\n ")}),(function(e){return!e.noMargin&&"\n margin-bottom: ".concat(1*d.iI,"px;\n padding-bottom: ").concat(1*d.iI,"px;\n ")})),S=o.default.div.withConfig({displayName:"indexstyle__TimeTrackerStyle",componentId:"sc-s5rj34-9"})(["bottom:","px;left:","px;position:absolute;"],1*d.iI,s),P=o.default.div.withConfig({displayName:"indexstyle__ScrollColunnsContainerStyle",componentId:"sc-s5rj34-10"})(["position:relative;",""],(function(e){return"\n z-index: ".concat((null===e||void 0===e?void 0:e.zIndex)||1,";\n ")})),k=o.default.div.attrs((function(e){var n=e.height,t=e.left,o=e.right,i=e.top;return{style:{position:"fixed",height:n,width:e.width,left:t,right:o,top:i,zIndex:(e.zIndex||0)+2}}})).withConfig({displayName:"indexstyle__ScrollColunnStyle",componentId:"sc-s5rj34-11"})([""])},94629:function(e,n,t){t.d(n,{Z:function(){return S}});var o=t(82394),i=t(21831),r=t(82684),l=t(50724),c=t(82555),d=t(97618),a=t(70613),u=t(68487),s=t(68899),p=t(28598);function f(e,n){var t=e.children,o=e.noPadding;return(0,p.jsx)(s.HS,{noPadding:o,ref:n,children:t})}var h=r.forwardRef(f),v=t(62547),m=t(82571),g=t(35686),x=t(98464),b=t(46684),j=t(70515),y=t(53808),_=t(19183);function Z(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 O(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function A(e,n){var t,o=e.addProjectBreadcrumbToCustomBreadcrumbs,f=e.after,Z=e.afterHeader,A=e.afterHidden,S=e.afterWidth,P=e.afterWidthOverride,k=e.appendBreadcrumbs,E=e.before,R=e.beforeWidth,T=e.breadcrumbs,C=e.children,I=e.errors,w=e.headerMenuItems,D=e.headerOffset,N=e.hideAfterCompletely,L=e.mainContainerHeader,M=e.navigationItems,B=e.setAfterHidden,H=e.setErrors,U=e.subheaderChildren,F=e.subheaderNoPadding,W=e.title,K=e.uuid,Y=(0,_.i)().width,G="dashboard_after_width_".concat(K),Q="dashboard_before_width_".concat(K),z=(0,r.useRef)(null),X=(0,r.useState)(P?S:(0,y.U2)(G,S)),V=X[0],q=X[1],J=(0,r.useState)(!1),$=J[0],ee=J[1],ne=(0,r.useState)(E?Math.max((0,y.U2)(Q,R),13*j.iI):null),te=ne[0],oe=ne[1],ie=(0,r.useState)(!1),re=ie[0],le=ie[1],ce=(0,r.useState)(null)[1],de=g.ZP.projects.list({},{revalidateOnFocus:!1}).data,ae=null===de||void 0===de?void 0:de.projects,ue={label:function(){var e;return null===ae||void 0===ae||null===(e=ae[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},se=[];T&&(o&&se.push(ue),se.push.apply(se,(0,i.Z)(T))),(null===T||void 0===T||!T.length||k)&&(null===ae||void 0===ae?void 0:ae.length)>=1&&(null!==T&&void 0!==T&&T.length||se.unshift({bold:!k,label:function(){return W}}),se.unshift(ue)),(0,r.useEffect)((function(){null===z||void 0===z||!z.current||$||re||null===ce||void 0===ce||ce(z.current.getBoundingClientRect().width)}),[$,V,re,te,z,ce,Y]),(0,r.useEffect)((function(){$||(0,y.t8)(G,V)}),[A,$,V,G]),(0,r.useEffect)((function(){re||(0,y.t8)(Q,te)}),[re,te,Q]);var pe=(0,x.Z)(S);return(0,r.useEffect)((function(){P&&pe!==S&&q(S)}),[P,S,pe]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(a.Z,{title:W}),(0,p.jsx)(u.Z,{breadcrumbs:se,menuItems:w,project:null===ae||void 0===ae?void 0:ae[0],version:null===ae||void 0===ae||null===(t=ae[0])||void 0===t?void 0:t.version}),(0,p.jsxs)(s.Nk,{ref:n,children:[0!==(null===M||void 0===M?void 0:M.length)&&(0,p.jsx)(s.lm,{showMore:!0,children:(0,p.jsx)(m.Z,{navigationItems:M,showMore:!0})}),(0,p.jsx)(d.Z,{flex:1,flexDirection:"column",children:(0,p.jsxs)(v.Z,{after:f,afterHeader:Z,afterHeightOffset:b.Mz,afterHidden:A,afterMousedownActive:$,afterWidth:V,before:E,beforeHeightOffset:b.Mz,beforeMousedownActive:re,beforeWidth:s.k1+(E?te:0),headerOffset:D,hideAfterCompletely:!B||N,leftOffset:E?s.k1:null,mainContainerHeader:L,mainContainerRef:z,setAfterHidden:B,setAfterMousedownActive:ee,setAfterWidth:q,setBeforeMousedownActive:le,setBeforeWidth:oe,children:[U&&(0,p.jsx)(h,{noPadding:F,children:U}),C]})})]}),I&&(0,p.jsx)(l.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===H||void 0===H?void 0:H(null)},children:(0,p.jsx)(c.Z,O(O({},I),{},{onClose:function(){return null===H||void 0===H?void 0:H(null)}}))})]})}var S=r.forwardRef(A)},8569:function(e,n,t){t.d(n,{Z:function(){return ve}});var o=t(61049);function i(){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(e){return!1}}function r(e,n,t){return r=i()?Reflect.construct:function(e,n,t){var i=[null];i.push.apply(i,n);var r=new(Function.bind.apply(e,i));return t&&(0,o.Z)(r,t.prototype),r},r.apply(null,arguments)}var l=t(21831),c=t(82394),d=t(75582),a=t(12691),u=t.n(a),s=t(38626),p=t(21764),f=t(82684),h=t(69864),v=t(34376),m=t(32013),g=t(98777),x=t(71180),b=t(31882),j=t(97618),y=t(55485),_=t(14466),Z=t(48670),O=t(88543),A=t(38276),S=t(30160),P=t(35686),k=t(72473),E=t(8193),R=t(70515),T=t(81728),C=t(3917),I=t(55283),w=t(50178),D=t(86735),N=t(72619),L=t(44085),M=t(17488),B=t(28598);function H(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 U(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?H(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):H(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var F="CUSTOM_VALUE_TYPE",W={compact:!0,monospace:!0,small:!0};var K=function(e){var n=e.leftKey,t=e.leftObjectKeys,o=e.leftObjectType,i=e.leftObjectTypeState,r=e.leftValue,l=e.leftValueType,d=e.rightAligned,a=e.setLeftKey,u=e.setLeftObjectTypeState,s=e.updatePredicate,p=(0,f.useRef)(null),h=(0,f.useState)(),v=h[0],m=h[1];(0,f.useEffect)((function(){var e,n;m(null===p||void 0===p||null===(e=p.current)||void 0===e||null===(n=e.getBoundingClientRect())||void 0===n?void 0:n.width)}),[]),(0,f.useEffect)((function(){var e,n;m(null===p||void 0===p||null===(e=p.current)||void 0===e||null===(n=e.getBoundingClientRect())||void 0===n?void 0:n.width)}),[o,i]);var g=(0,f.useMemo)((function(){return{alignItems:"center",justifyContent:d?"flex-start":"flex-end"}}),[d]),b=(0,f.useMemo)((function(){var e=(0,B.jsx)(S.ZP,{default:!0,small:!0,children:"Value data type"}),n=(0,B.jsx)(L.Z,{compact:!0,onChange:function(e){return s((0,c.Z)({},d?"right_value_type":"left_value_type",U(U({},l),{},{value_data_type:e.target.value})))},placeholder:"required",small:!0,value:null===l||void 0===l?void 0:l.value_data_type,children:Object.values(_.t4).map((function(e){return(0,B.jsx)("option",{value:e,children:e.toLowerCase()},e)}))});return(0,B.jsxs)(y.ZP,U(U({},g),{},{children:[d?n:e,(0,B.jsx)(A.Z,{mr:1}),d?e:n]}))}),[l,d,g,s]),j=(0,f.useMemo)((function(){var e=(0,B.jsx)(S.ZP,{default:!0,small:!0,children:"Get value from"}),n=(0,B.jsxs)(L.Z,U(U({},W),{},{onChange:function(e){var n,t,o=e.target.value;(u(o),F===o)?s((n={},(0,c.Z)(n,d?"right_object_keys":"left_object_keys",null),(0,c.Z)(n,d?"right_object_type":"left_object_type",null),n)):s((t={},(0,c.Z)(t,d?"right_object_type":"left_object_type",o),(0,c.Z)(t,d?"right_value":"left_value",null),t))},placeholder:"required",value:F===String(i)?F:o,children:[(0,B.jsx)("option",{value:F,children:"Custom value"}),Object.values(_.XG).map((function(e){return(0,B.jsx)("option",{value:e,children:e.toLowerCase()},e)}))]})),t=F===String(i)&&(0,B.jsxs)(B.Fragment,{children:[!d&&(0,B.jsx)(A.Z,{mr:1}),(0,B.jsx)(M.Z,U(U({},W),{},{onChange:function(e){return s((0,c.Z)({},d?"right_value":"left_value",e.target.value))},value:r||""})),d&&(0,B.jsx)(A.Z,{mr:1})]});return(0,B.jsxs)(y.ZP,U(U({},g),{},{children:[!d&&e,d&&t,d&&n,(0,B.jsx)(A.Z,{mr:1}),!d&&n,!d&&t,d&&e]}))}),[o,i,r,u,g,s]),Z=(0,f.useMemo)((function(){return(0,B.jsxs)(B.Fragment,{children:[d&&(0,B.jsx)("div",{style:{paddingRight:4}}),(0,B.jsx)(x.ZP,{compact:!0,disabled:!n,onClick:function(){s((0,c.Z)({},d?"right_object_keys":"left_object_keys",(t||[]).concat(n))),a(null)},padding:"2px 6px",ref:p,small:!0,children:"Add key"}),!d&&(0,B.jsx)("div",{style:{paddingRight:4}})]})}),[n,t,d,a,s]),O=(0,f.useMemo)((function(){var e=(0,B.jsx)(S.ZP,{default:!0,small:!0,children:"Value extraction keys"}),i=(0,B.jsx)(M.Z,U(U({},W),{},{buttonAfter:!d&&Z,buttonAfterWidth:d||"undefined"===typeof v?null:v+10,buttonBefore:d&&Z,buttonBeforeWidth:d&&"undefined"!==typeof v?v+10:null,onChange:function(e){a(e.target.value)},placeholder:"Enter key...",value:n||""}));B.Fragment,B.Fragment;return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)(y.ZP,U(U({},g),{},{children:[d?i:e,(0,B.jsx)(A.Z,{mr:1}),d?e:i]})),(null===t||void 0===t?void 0:t.length)>=1&&(0,B.jsx)(A.Z,{mt:1,children:(0,B.jsxs)(y.ZP,U(U({},g),{},{children:[(0,B.jsx)(S.ZP,{default:!0,monospace:!0,xsmall:!0,children:o}),!(null!==t&&void 0!==t&&t.length)&&(0,B.jsxs)(S.ZP,{monospace:!0,muted:!0,xsmall:!0,children:["['",(0,B.jsx)(S.ZP,{default:!0,inline:!0,monospace:!0,xsmall:!0,children:"..."}),"']"]}),null===t||void 0===t?void 0:t.map((function(e){return(0,B.jsxs)(S.ZP,{monospace:!0,muted:!0,xsmall:!0,children:["['",(0,B.jsx)(S.ZP,{default:!0,inline:!0,monospace:!0,xsmall:!0,children:e}),"']"]})})),(0,B.jsx)("div",{style:{marginRight:4}}),(0,B.jsx)(x.ZP,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){s((0,c.Z)({},d?"right_object_keys":"left_object_keys",(t||[]).slice(0,Math.max(0,(null===t||void 0===t?void 0:t.length)-1))))},children:(0,B.jsxs)(y.ZP,{alignItems:"center",children:[(0,B.jsx)(k.x8,{danger:!0,size:1.25*R.iI}),(0,B.jsx)("div",{style:{marginRight:2}}),(0,B.jsx)(S.ZP,{default:!0,xsmall:!0,children:"Delete key"})]})})]}))})]})}),[v,Z,n,t,o,d,g]);return(0,B.jsxs)(B.Fragment,{children:[b,(0,B.jsx)(A.Z,{mt:1}),j,(0,B.jsx)(A.Z,{mt:1}),o&&F!==String(i)&&O]})},Y=t(65956),G=t(44897),Q=t(61896),z=1.25*R.iI,X=1.5*R.iI,V=R.iI/4,q=.75*R.iI,J=R.iI/2,$=(0,s.css)([""," ",""],(function(e){return!e.default&&"\n background-color: ".concat((e.theme.accent||G.Z.accent).purple,";\n ")}),(function(e){return e.default&&"\n background-color: ".concat((e.theme.content||G.Z.content).muted,";\n ")})),ee=s.default.div.withConfig({displayName:"indexstyle__LabelStyle",componentId:"sc-1v7t9a0-0"})(["border-radius:100px;padding:","px ","px;",""],V,X,(function(e){return"\n background-color: ".concat((e.theme.background||G.Z.background).chartBlock,";\n border: ").concat(1,"px solid ").concat((e.theme.interactive||G.Z.interactive).defaultBorder,";\n ")})),ne=s.default.div.withConfig({displayName:"indexstyle__CircleStyle",componentId:"sc-1v7t9a0-1"})(["",";border-radius:","px;height:","px;width:","px;",""],$,1.25*R.iI,z,z,(function(e){return"\n border: 1px solid ".concat((e.theme.interactive||G.Z.interactive).hoverBorder,";\n ")})),te=s.default.div.withConfig({displayName:"indexstyle__OperatorStyle",componentId:"sc-1v7t9a0-2"})(["",";min-width:","px;padding-bottom:","px;padding-left:","px;padding-right:","px;padding-top:","px;"],$,z+2*(1+X),R.iI/4,J,J,R.iI/4+1),oe=s.default.div.withConfig({displayName:"indexstyle__VerticalLineStyle",componentId:"sc-1v7t9a0-3"})(["",";width:","px;margin-right:","px;"," ",""],$,q,X+1+z/2-q/2,(function(e){return e.last&&"\n height: calc(50% - ".concat(V+1+Q.dN/2,"px);\n ")}),(function(e){return!e.last&&"\n height: 100%;\n "}));var ie=function(e){var n=e.andOrOperator,t=e.children,o=e.first,i=e.last,r=e.level,l=e.predicate,c=e.removePredicate,d=e.title,a=e.updatePredicate,u=(0,f.useRef)(null),s=(0,f.useState)(null),p=s[0],h=s[1],v=(0,f.useState)(null),m=v[0],g=v[1],b=(0,f.useState)(null),Z=b[0],O=b[1],P=(0,f.useState)(null),E=P[0],T=P[1],C=(0,f.useState)(null),I=(C[0],C[1]),w=(l.and_or_operator,l.left_object_keys),D=l.left_object_type,N=l.left_value,M=l.left_value_type,H=l.operator,U=l.right_object_keys,F=l.right_object_type,W=l.right_value,G=l.right_value_type;(0,f.useEffect)((function(){var e,n;I(null===u||void 0===u||null===(e=u.current)||void 0===e||null===(n=e.getBoundingClientRect())||void 0===n?void 0:n.height)}),[]),(0,f.useEffect)((function(){var e,n;I(null===u||void 0===u||null===(e=u.current)||void 0===e||null===(n=e.getBoundingClientRect())||void 0===n?void 0:n.height)}),[D,F]);var Q=(0,f.useMemo)((function(){if(!n)return null;var e=(0,B.jsx)(S.ZP,{bold:!0,center:!0,monospace:!0,uppercase:!0,children:n});return(0,B.jsx)(te,{default:_.YB.OR===n,children:e})}),[n,r]);return(0,B.jsxs)(y.ZP,{children:[(0,B.jsxs)(y.ZP,{alignItems:"flex-end",flexDirection:"column",children:[!o&&i&&(0,B.jsx)(oe,{default:_.YB.OR===n,last:!0}),(0,B.jsx)(ee,{children:(0,B.jsxs)(y.ZP,{alignItems:"center",children:[(0,B.jsx)(S.ZP,{monospace:!0,children:d}),(0,B.jsx)(A.Z,{mr:1}),(0,B.jsx)(ne,{default:_.YB.OR===n})]})}),!i&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(oe,{default:_.YB.OR===n}),Q,(0,B.jsx)(oe,{default:_.YB.OR===n})]})]}),(0,B.jsx)(A.Z,{mr:R.cd}),(0,B.jsx)(j.Z,{flex:1,children:(0,B.jsxs)(y.ZP,{flexDirection:"column",fullWidth:!0,ref:u,children:[(0,B.jsxs)(Y.Z,{dark:!!(r%2),children:[(0,B.jsxs)(y.ZP,{children:[(0,B.jsxs)(j.Z,{flex:1,flexDirection:"column",children:[(0,B.jsxs)(y.ZP,{justifyContent:"center",children:[(0,B.jsxs)(y.ZP,{alignItems:"center",justifyContent:"flex-end",children:[!D&&"undefined"===typeof N&&(0,B.jsx)(S.ZP,{monospace:!0,muted:!0,small:!0,children:"Left expression"}),!D&&N&&(0,B.jsx)(S.ZP,{default:!0,monospace:!0,small:!0,children:_.t4.STRING===(null===M||void 0===M?void 0:M.value_data_type)?"'".concat(N,"'"):N}),D&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(S.ZP,{default:!0,monospace:!0,small:!0,children:D}),!(null!==w&&void 0!==w&&w.length)&&(0,B.jsxs)(S.ZP,{monospace:!0,muted:!0,small:!0,children:["['",(0,B.jsx)(S.ZP,{default:!0,inline:!0,monospace:!0,small:!0,children:"..."}),"']"]}),null===w||void 0===w?void 0:w.map((function(e){return(0,B.jsxs)(S.ZP,{monospace:!0,muted:!0,small:!0,children:["['",(0,B.jsx)(S.ZP,{default:!0,inline:!0,monospace:!0,small:!0,children:e}),"']"]})}))]})]}),(0,B.jsx)(A.Z,{mr:1}),(0,B.jsx)(S.ZP,{default:!0,monospace:!0,small:!0,children:H?_.N_[H]:"operator"}),(!H||!_.i9.includes(H))&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(A.Z,{mr:1}),(0,B.jsxs)(y.ZP,{alignItems:"center",justifyContent:"flex-start",children:[!F&&"undefined"===typeof W&&(0,B.jsx)(S.ZP,{monospace:!0,muted:!0,small:!0,children:"Right expression"}),!F&&W&&(0,B.jsx)(S.ZP,{default:!0,monospace:!0,small:!0,children:_.t4.STRING===(null===G||void 0===G?void 0:G.value_data_type)?"'".concat(W,"'"):W}),F&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(S.ZP,{default:!0,monospace:!0,small:!0,children:F}),!(null!==U&&void 0!==U&&U.length)&&(0,B.jsxs)(S.ZP,{monospace:!0,muted:!0,small:!0,children:["['",(0,B.jsx)(S.ZP,{default:!0,inline:!0,monospace:!0,small:!0,children:"..."}),"']"]}),null===U||void 0===U?void 0:U.map((function(e){return(0,B.jsxs)(S.ZP,{monospace:!0,muted:!0,small:!0,children:["['",(0,B.jsx)(S.ZP,{default:!0,inline:!0,monospace:!0,small:!0,children:e}),"']"]})}))]})]})]})]}),(0,B.jsx)(A.Z,{mb:R.cd}),(0,B.jsxs)(y.ZP,{alignItems:"center",children:[(0,B.jsx)(j.Z,{flex:1,flexDirection:"column",children:(0,B.jsx)(K,{leftKey:m,leftObjectKeys:w,leftObjectType:D,leftObjectTypeState:p,leftValue:N,leftValueType:M,setLeftKey:g,setLeftObjectTypeState:h,updatePredicate:a})}),(0,B.jsx)(A.Z,{mr:R.cd}),(0,B.jsx)("div",{children:(0,B.jsx)(L.Z,{alignCenter:!0,compact:!0,onChange:function(e){return a({operator:e.target.value})},placeholder:"required",small:!0,value:H,children:Object.values(_.W6).map((function(e){return(0,B.jsx)("option",{value:e,children:_.N_[e]},e)}))})}),(0,B.jsx)(A.Z,{mr:R.cd}),(0,B.jsx)(j.Z,{flex:1,flexDirection:"column",children:(0,B.jsx)(K,{leftKey:E,leftObjectKeys:U,leftObjectType:F,leftObjectTypeState:Z,leftValue:W,leftValueType:G,rightAligned:!0,setLeftKey:T,setLeftObjectTypeState:O,updatePredicate:a})})]})]}),(0,B.jsx)("div",{children:(0,B.jsx)(x.ZP,{beforeIcon:(0,B.jsx)(k.rF,{muted:!0,size:1.25*R.iI}),compact:!0,onClick:function(){return c()},small:!0,children:(0,B.jsxs)(S.ZP,{default:!0,monospace:!0,small:!0,children:["Delete ",d]})})})]}),t]}),!i&&(0,B.jsx)(A.Z,{mb:R.cd})]})})]})};function re(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 le(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?re(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):re(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ce={and_or_operator:_.YB.AND,left_value_type:{value_data_type:_.t4.STRING},operator:_.W6.EQUALS,right_value_type:{value_data_type:_.t4.STRING}};var de=function(e){var n=e.index,t=e.level,o=e.predicate,i=e.renderPredicate,r=e.setPredicate,c=(0,f.useMemo)((function(){return(null===o||void 0===o?void 0:o.predicates)||[]}),[o]),d=((0,f.useCallback)((function(e){r({predicates:e})}),[r]),(0,f.useCallback)((function(){r({predicates:(c||[]).concat(ce)})}),[c,r])),a=(0,f.useCallback)((function(e,n){var t=(0,l.Z)(c);t[n]=e,r({predicates:t})}),[c,r]),u=(0,f.useMemo)((function(){return(null===c||void 0===c?void 0:c.length)||0}),[c]),s=(0,f.useCallback)((function(e,n){if(!(e<0)){var t=(0,T.bH)()[n];return 0===e||(t=t.toLowerCase(),e>=2&&(t="".concat(t).concat(e-1))),t}}),[]),p=(0,f.useMemo)((function(){return s(t,n)}),[s,n,t]);return(0,B.jsxs)(B.Fragment,{children:[null===c||void 0===c?void 0:c.map((function(e,n){var l,d=function(t){return a(le(le({},e),t),n)};return(0,B.jsx)(ie,{andOrOperator:null===o||void 0===o?void 0:o.and_or_operator,first:0===n,last:n===u-1,level:t+1,predicate:e,removePredicate:function(){r(le(le({},e),{},{predicates:(0,D.oM)(c,n)}))},title:s(t+1,n),updatePredicate:d,children:(0,B.jsx)(A.Z,{mt:(null===e||void 0===e||null===(l=e.predicates)||void 0===l?void 0:l.length)>=1?R.cd:0,children:i({index:n,level:t+1,predicate:e,renderPredicate:i,setPredicate:d})})},"predicate-".concat(n))})),(0,B.jsx)(A.Z,{mt:R.cd,children:(0,B.jsxs)(y.ZP,{alignItems:"center",children:[t>=0&&(null===c||void 0===c?void 0:c.length)>=2&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(L.Z,{compact:!0,monospace:!0,onChange:function(e){return r(le(le({},o),{},{and_or_operator:e.target.value}))},small:!0,paddingVertical:3,value:null===o||void 0===o?void 0:o.and_or_operator,children:Object.values(_.YB).map((function(e){return(0,B.jsx)("option",{value:e,children:(_.YB.OR===e?"".concat(e," "):e).toUpperCase()},e)}))}),(0,B.jsx)(A.Z,{mr:1})]}),(0,B.jsxs)(x.ZP,{compact:t>=0,beforeIcon:(0,B.jsx)(k.mm,{}),onClick:function(){return d()},secondary:!0,small:t>=0,children:["Add predicate",p&&" in ".concat(p)]})]})})]})};function ae(e){var n=e.index,t=e.level,o=e.predicate,i=e.renderPredicate,r=e.setPredicate;return(0,B.jsx)(de,{index:n,level:t,predicate:o,renderPredicate:i,setPredicate:r})}var ue=t(42122),se=t(70320),pe=t(23780);function fe(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?fe(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):fe(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ve=function(e){var n,t,o,i,c,a,L,M,H,U,F,W,K,Y,G,Q,z,X,V,q,J,$,ee,ne,te,oe=e.isNew,ie=e.operationType,re=e.resourceType,le=e.uuid,ce=(0,se.q)(),de=(0,w.PR)(),fe=(0,v.useRouter)(),ve="GlobalHookDetail/".concat(le),me=(0,f.useContext)(s.ThemeContext),ge=(0,f.useState)(null),xe=ge[0],be=ge[1],je=(0,f.useState)(!1),ye=je[0],_e=je[1],Ze=(0,f.useState)(ie),Oe=Ze[0],Ae=(Ze[1],(0,f.useState)(re)),Se=Ae[0],Pe=(Ae[1],(0,pe.VI)(null,{},[],{uuid:ve})),ke=(0,d.Z)(Pe,1)[0],Ee=(0,f.useMemo)((function(){return(0,ue.hB)({include_operation_types:1,include_resource_types:1,include_snapshot_validation:1,operation_type:"undefined"===typeof Oe?null:Oe,resource_type:"undefined"===typeof Se?null:Se})}),[Oe,Se]),Re=P.ZP.global_hooks.detail(oe?"__new__":le,Ee).data,Te=(0,f.useMemo)((function(){return null===Re||void 0===Re?void 0:Re.global_hook}),[Re]),Ce=(0,f.useMemo)((function(){return{onErrorCallback:function(e){var n=e.error,t=n.errors,o=n.exception,i=n.message,r=n.type,l=e.response;return p.Am.error((null===t||void 0===t?void 0:t.error)||o||i,{position:p.Am.POSITION.BOTTOM_RIGHT,toastId:r}),ke({errors:t,response:l})}}}),[]),Ie=(0,h.Db)(P.ZP.global_hooks.useCreate(),{onSuccess:function(e){return(0,N.wD)(e,he({callback:function(e){var n=e.global_hook;fe.replace("/global-hooks/".concat(n.uuid,"?operation_type=").concat(n.operation_type,"&resource_type=").concat(n.resource_type))}},Ce))}}),we=(0,d.Z)(Ie,2),De=we[0],Ne=we[1].isLoading,Le=(0,h.Db)(P.ZP.global_hooks.useUpdate(null===Te||void 0===Te?void 0:Te.uuid,Ee),{onSuccess:function(e){return(0,N.wD)(e,he({callback:function(e){var n=e.global_hook;Je((function(e){return he(he({},e),n)})),p.Am.success("Global hook changes successfully saved.",{position:p.Am.POSITION.BOTTOM_RIGHT,toastId:"global-hooks-success-".concat(n.uuid)})}},Ce))}}),Me=(0,d.Z)(Le,2),Be=Me[0],He=Me[1].isLoading,Ue=(0,h.Db)((function(e){var n=e.pipeline;return P.ZP.global_hooks.useUpdate(null===Te||void 0===Te?void 0:Te.uuid,Ee)({global_hook:{pipeline:n,snapshot:1}})}),{onSuccess:function(e){return(0,N.wD)(e,he({callback:function(e){var n=e.global_hook;Je((function(e){return he(he({},e),{},{metadata:he(he({},null===e||void 0===e?void 0:e.metadata),null===n||void 0===n?void 0:n.metadata),pipeline:he(he({},null===e||void 0===e?void 0:e.pipeline),null===n||void 0===n?void 0:n.pipeline)})})),p.Am.success("Snapshot successfully created.",{position:p.Am.POSITION.BOTTOM_RIGHT,toastId:"global-hooks-snapshot-success-".concat(n.uuid)})}},Ce))}}),Fe=(0,d.Z)(Ue,2),We=Fe[0],Ke=Fe[1].isLoading,Ye=(0,h.Db)(P.ZP.global_hooks.useDelete(null===Te||void 0===Te?void 0:Te.uuid,Ee),{onSuccess:function(e){return(0,N.wD)(e,he({callback:function(e){var n=e.global_hook;p.Am.success("Global hook changes successfully saved.",{position:p.Am.POSITION.BOTTOM_RIGHT,toastId:"global-hooks-success-".concat(n.uuid)}),fe.replace("/global-hooks")}},Ce))}}),Ge=(0,d.Z)(Ye,2),Qe=Ge[0],ze=Ge[1].isLoading,Xe=P.ZP.pipelines.list().data,Ve=(0,f.useMemo)((function(){return(0,D.YC)((null===Xe||void 0===Xe?void 0:Xe.pipelines)||[],(function(e){return e.name}))}),[Xe]),qe=(0,f.useMemo)((function(){return(0,D.HK)(Ve||[],(function(e){return e.uuid}))}),[Ve]),Je=(0,f.useCallback)((function(e){be(e),_e(!0)}),[be,_e]);(0,f.useEffect)((function(){Te&&!xe&&be(Te)}),[xe,Te,be]);var $e=(0,f.useMemo)((function(){return null!==xe&&void 0!==xe&&xe.operation_type&&null!==xe&&void 0!==xe&&xe.resource_type?"".concat((0,T.vg)(null===xe||void 0===xe?void 0:xe.operation_type)," ").concat(null===xe||void 0===xe?void 0:xe.resource_type," operation"):null!==xe&&void 0!==xe&&xe.resource_type?"".concat(null===xe||void 0===xe?void 0:xe.resource_type," operation"):null!==xe&&void 0!==xe&&xe.operation_type?"".concat(null===xe||void 0===xe?void 0:xe.operation_type," operation"):"operation"}),[xe]),en=(0,f.useMemo)((function(){var e;return null===qe||void 0===qe?void 0:qe[null===xe||void 0===xe||null===(e=xe.pipeline)||void 0===e?void 0:e.uuid]}),[xe,qe]),nn=(0,f.useMemo)((function(){return(null===en||void 0===en?void 0:en.blocks)||[]}),[en]),tn=(0,f.useMemo)((function(){return(0,D.HK)(nn||[],(function(e){return e.uuid}))}),[nn]),on=(0,f.useMemo)((function(){return(null===xe||void 0===xe?void 0:xe.outputs)||[]}),[xe]),rn=(0,f.useCallback)((function(e,n){var t=(0,l.Z)(on||[]);t[n]=e,Je((function(e){return he(he({},e),{},{outputs:t})}))}),[on,Je]),ln=(0,f.useMemo)((function(){return(0,B.jsx)(x.ZP,{beforeIcon:(0,B.jsx)(k.mm,{}),compact:(null===on||void 0===on?void 0:on.length)>=1,small:(null===on||void 0===on?void 0:on.length)>=1,onClick:function(){return Je((function(e){return he(he({},e),{},{outputs:((null===e||void 0===e?void 0:e.outputs)||[]).concat({block:{uuid:null},key:_.TT.PAYLOAD})})}))},secondary:!0,children:"Add block output"})}),[on,Je]),cn=(0,f.useMemo)((function(){return null===on||void 0===on?void 0:on.map((function(e,n){var t,o,i=e.block,r=e.key,l=e.keyMore,c=e.keys,d=null===tn||void 0===tn?void 0:tn[null===i||void 0===i?void 0:i.uuid];return o=d?(0,B.jsx)(u(),{as:"/pipelines/".concat(null===en||void 0===en?void 0:en.uuid,"/edit?block_uuid=").concat(null===d||void 0===d?void 0:d.uuid),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,B.jsx)(Z.Z,{block:!0,openNewWindow:!0,children:(0,B.jsx)(S.ZP,{color:(0,I.qn)(null===d||void 0===d?void 0:d.type,{blockColor:null===d||void 0===d?void 0:d.color,theme:me}).accent,monospace:!0,children:(null===d||void 0===d?void 0:d.uuid)||"[select a block]"})})}):(0,B.jsx)(S.ZP,{default:!0,monospace:!0,children:(null===d||void 0===d?void 0:d.uuid)||(null===i||void 0===i?void 0:i.uuid)||"[select a block]"}),(0,B.jsxs)(g.Z,{noBorderRadius:!0,noPaddingContent:!0,title:(0,B.jsxs)(y.ZP,{alignItems:"center",children:[o,(0,B.jsx)(A.Z,{mr:1}),(0,B.jsx)(k.Kw,{muted:!0}),(0,B.jsx)(A.Z,{mr:1}),(0,B.jsxs)(S.ZP,{default:!0,monospace:!0,children:[r||"{object}",(null===c||void 0===c?void 0:c.length)>=1&&(null===c||void 0===c?void 0:c.map((function(e){return(0,B.jsxs)(S.ZP,{default:!0,inline:!0,monospace:!0,children:["['",e,"']"]})})))]})]}),titleXPadding:R.cd*R.iI,titleYPadding:R.cd*R.iI,children:[(0,B.jsx)(O.S,{title:"Block to extract data from",description:"The output data from this block will be merged into the ".concat($e,"\u2019s data."),selectInput:{monospace:!0,onChange:function(t){return rn(he(he({},e),{},{block:he(he({},d),{},{uuid:t.target.value})}),n)},options:null===nn||void 0===nn?void 0:nn.map((function(e){return{label:e.name,value:e.uuid}})),placeholder:"Select a block",value:null===d||void 0===d?void 0:d.uuid}},"block-uuid-".concat(n)),(0,B.jsx)(O.S,{title:"Object to merge block output data into",description:"Select the ".concat($e," object to merge the block output data into."),selectInput:{monospace:!0,onChange:function(t){return rn(he(he({},e),{},{key:t.target.value}),n)},options:null===(t=Object.values(_.TT))||void 0===t?void 0:t.map((function(e){return{label:e,value:e}})),placeholder:"Select an object",value:r}},"key-".concat(n)),(0,B.jsxs)(O.S,{title:"Additional dictionary keys",description:(0,B.jsxs)(S.ZP,{muted:!0,small:!0,children:["If there is a nested object or value in the $",$e," data that you want to merge the block output data into,",(0,B.jsx)("br",{}),"use these additional keys to instruct the hook on how nested you want to merge the block output data."]}),textInput:{fullWidth:!1,monospace:!0,placeholder:"optional",onChange:function(t){return rn(he(he({},e),{},{keyMore:t.target.value}),n)},value:l},children:[null===c||void 0===c?void 0:c.map((function(t){return(0,B.jsx)(A.Z,{ml:1,children:(0,B.jsx)(b.Z,{border:!0,label:t,monospace:!0,onClick:function(){rn(he(he({},e),{},{keys:(c||[]).filter((function(e){return e!==t}))}),n)}})},"keys-".concat(n,"-").concat(t))})),(null===c||void 0===c?void 0:c.length)>=1&&(0,B.jsx)(A.Z,{mr:R.cd}),l&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)(x.ZP,{compact:!0,small:!0,onClick:function(){rn(he(he({},e),{},{keyMore:"",keys:(c||[]).concat(l)}),n)},children:["Add key ",l]}),(0,B.jsx)(A.Z,{mr:R.cd})]})]},"keys-".concat(n))]})}))}),[nn,tn,on,en,rn]),dn=(0,f.useMemo)((function(){return(0,ue.GL)(xe||{},["conditions","operation_type","outputs","pipeline","predicate","resource_type","run_settings","stages","strategies"])}),[xe]),an=(0,f.useMemo)((function(){return(null===xe||void 0===xe?void 0:xe.metadata)||{created_at:null,snapshot_hash:null,snapshot_valid:!1,snapshotted_at:null,updated_at:null,user:{id:null}}}),[xe]),un=(0,f.useMemo)((function(){return null===xe||void 0===xe?void 0:xe.predicate}),[xe]),sn=(0,f.useMemo)((function(){return(0,B.jsx)(A.Z,{p:R.cd,children:ae({level:-1,predicate:un,renderPredicate:ae,setPredicate:function(e){return Je((function(n){return he(he({},n),{},{predicate:he(he({},e),{},{and_or_operator:_.YB.OR})})}))}})})}),[un,Je]);return(0,B.jsxs)(A.Z,{mb:8,p:R.cd,children:[(0,B.jsxs)(O.Z,{title:"What to run hook for",children:[(0,B.jsx)(O.S,{description:"This hook\u2019s UUID must be unique across all hooks for the same resource type and operation type.",invalid:ye&&!(null!==xe&&void 0!==xe&&xe.uuid),textInput:oe?{monospace:!0,onChange:function(e){return Je((function(n){return he(he({},n),{},{uuid:e.target.value})}))},placeholder:"e.g. bootstrap pipeline blocks",value:null===xe||void 0===xe?void 0:xe.uuid}:null,title:"Hook UUID",children:!oe&&(0,B.jsx)(A.Z,{px:R.cd,children:(0,B.jsx)(S.ZP,{large:!0,monospace:!0,children:le})})}),(0,B.jsx)(O.S,{description:"Select the resource this hook should be attached to.",invalid:ye&&!(null!==xe&&void 0!==xe&&xe.resource_type),selectInput:{monospace:!0,onChange:function(e){return Je((function(n){return he(he({},n),{},{resource_type:e.target.value})}))},options:null===xe||void 0===xe||null===(n=xe.resource_types)||void 0===n?void 0:n.map((function(e){return{label:(0,T.j3)(e),value:e}})),placeholder:"e.g. Pipeline",value:null===xe||void 0===xe?void 0:xe.resource_type},title:"Resource type"}),(0,B.jsx)(O.S,{description:"When a specific operation occurs for a given resource, this hook will be invoked for that specific operation on the configured resource.",invalid:ye&&!(null!==xe&&void 0!==xe&&xe.operation_type),selectInput:{monospace:!0,onChange:function(e){return Je((function(n){return he(he({},n),{},{operation_type:e.target.value})}))},options:null===xe||void 0===xe||null===(t=xe.operation_types)||void 0===t?void 0:t.map((function(e){return{label:(0,T.vg)(e),value:e}})),placeholder:"e.g. Update",value:null===xe||void 0===xe?void 0:xe.operation_type},title:"Operation type"}),(0,B.jsx)(m.Z,{noBorder:!0,noBoxShadow:!0,visibleMappingForced:{0:!0},children:(0,B.jsxs)(g.Z,{noBorderRadius:!0,noPaddingContent:!0,title:"Targeting",titleXPadding:R.cd*R.iI,titleYPadding:R.cd*R.iI,children:[(0,B.jsx)(A.Z,{p:R.cd,children:(0,B.jsxs)(S.ZP,{default:!0,children:["Add targeting conditions to determine what subset of ",null!==xe&&void 0!==xe&&xe.resource_type?(0,T._6)((0,T.j3)(null===xe||void 0===xe?void 0:xe.resource_type),2,null,!0):"resources"," this hook should run for."]})}),sn]})})]}),!oe&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(A.Z,{mb:R.cd}),(0,B.jsxs)(O.Z,{title:"When to run hook",children:[(0,B.jsx)(O.S,{title:"Before operation starts",description:"If enabled, this hook will be invoked before the ".concat($e," starts."),toggleSwitch:{checked:null===xe||void 0===xe||null===(o=xe.stages)||void 0===o?void 0:o.includes(_.SQ.BEFORE),onCheck:function(e){return Je((function(n){var t,o;return he(he({},n),{},{stages:e(null===n||void 0===n||null===(t=n.stages)||void 0===t?void 0:t.includes(_.SQ.BEFORE))?Array.from(r(Set,[((null===n||void 0===n?void 0:n.stages)||[]).concat(_.SQ.BEFORE)])):(null===n||void 0===n||null===(o=n.stages)||void 0===o?void 0:o.filter((function(e){return e!==_.SQ.BEFORE})))||[]})}))}}}),(0,B.jsx)(O.S,{title:"After operation completes",description:"If enabled, this hook will be invoked after the ".concat($e," ends."),toggleSwitch:{checked:null===xe||void 0===xe||null===(i=xe.stages)||void 0===i?void 0:i.includes(_.SQ.AFTER),onCheck:function(e){return Je((function(n){var t,o;return he(he({},n),{},{stages:e(null===n||void 0===n||null===(t=n.stages)||void 0===t?void 0:t.includes(_.SQ.AFTER))?Array.from(r(Set,[((null===n||void 0===n?void 0:n.stages)||[]).concat(_.SQ.AFTER)])):(null===n||void 0===n||null===(o=n.stages)||void 0===o?void 0:o.filter((function(e){return e!==_.SQ.AFTER})))||[]})}))}}}),(0,B.jsx)(O.S,{title:"Run if ".concat($e," succeeds"),description:"If enabled, this hook will be invoked if the ".concat($e," is successful and doesn\u2019t error."),toggleSwitch:{checked:null===xe||void 0===xe||null===(c=xe.conditions)||void 0===c?void 0:c.includes(_.sw.SUCCESS),onCheck:function(e){return Je((function(n){var t,o;return he(he({},n),{},{conditions:e(null===n||void 0===n||null===(t=n.conditions)||void 0===t?void 0:t.includes(_.sw.SUCCESS))?Array.from(r(Set,[((null===n||void 0===n?void 0:n.conditions)||[]).concat(_.sw.SUCCESS)])):(null===n||void 0===n||null===(o=n.conditions)||void 0===o?void 0:o.filter((function(e){return e!==_.sw.SUCCESS})))||[]})}))}}}),(0,B.jsx)(O.S,{title:"Run if ".concat($e," fails"),description:"If enabled, this hook will be invoked if the ".concat($e," fails with an error."),toggleSwitch:{checked:null===xe||void 0===xe||null===(a=xe.conditions)||void 0===a?void 0:a.includes(_.sw.FAILURE),onCheck:function(e){return Je((function(n){var t,o;return he(he({},n),{},{conditions:e(null===n||void 0===n||null===(t=n.conditions)||void 0===t?void 0:t.includes(_.sw.FAILURE))?Array.from(r(Set,[((null===n||void 0===n?void 0:n.conditions)||[]).concat(_.sw.FAILURE)])):(null===n||void 0===n||null===(o=n.conditions)||void 0===o?void 0:o.filter((function(e){return e!==_.sw.FAILURE})))||[]})}))}}})]}),(0,B.jsx)(A.Z,{mb:R.cd}),(0,B.jsxs)(O.Z,{title:"Code to run",description:"When the current hook gets triggered, it will execute the associated pipeline.",children:[(0,B.jsx)(O.S,{title:"Pipeline to execute",description:"Select a pipeline that will be executed every time this hook is triggered.",invalid:ye&&!(null!==xe&&void 0!==xe&&null!==(L=xe.pipeline)&&void 0!==L&&L.uuid),selectInput:{fullWidth:!1,monospace:!0,onChange:function(e){return Je((function(n){return he(he({},n),{},{pipeline:he(he({},null===n||void 0===n?void 0:n.pipeline),{},{uuid:e.target.value})})}))},options:null===Ve||void 0===Ve?void 0:Ve.map((function(e){var n=e.name,t=e.uuid;return{label:n||t,value:t}})),placeholder:"Select a pipeline",value:null===xe||void 0===xe||null===(M=xe.pipeline)||void 0===M?void 0:M.uuid},children:(null===xe||void 0===xe||null===(H=xe.pipeline)||void 0===H?void 0:H.uuid)&&(0,B.jsx)("div",{children:(0,B.jsx)(u(),{as:"/pipelines/".concat(null===xe||void 0===xe||null===(U=xe.pipeline)||void 0===U?void 0:U.uuid,"/edit"),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,B.jsx)(Z.Z,{block:!0,openNewWindow:!0,children:"View pipeline"})})})}),(0,B.jsxs)(O.S,{title:null===xe||void 0===xe||null===(F=xe.pipeline)||void 0===F||!F.uuid||null!==an&&void 0!==an&&an.snapshot_hash||null!==an&&void 0!==an&&an.snapshot_valid?"Valid code snapshot":"Code snapshot hasn\u2019t been created yet",description:(0,B.jsx)(B.Fragment,{children:(0,B.jsxs)(S.ZP,{muted:!0,small:!0,children:["Take a snapshot of ",null!==xe&&void 0!==xe&&null!==(W=xe.pipeline)&&void 0!==W&&W.uuid?(0,B.jsx)(S.ZP,{default:!0,inline:!0,monospace:!0,small:!0,children:null===xe||void 0===xe||null===(K=xe.pipeline)||void 0===K?void 0:K.uuid}):"the associated pipeline","\u2019s code. The snapshot is used to validate the hook before it runs.",(0,B.jsx)("br",{}),"A hook cannot run if ",null!==xe&&void 0!==xe&&null!==(Y=xe.pipeline)&&void 0!==Y&&Y.uuid?(0,B.jsx)(S.ZP,{default:!0,inline:!0,monospace:!0,small:!0,children:null===xe||void 0===xe||null===(G=xe.pipeline)||void 0===G?void 0:G.uuid}):"the associated pipeline","\u2019s code has changed after the most recent snapshot has been made.",(0,B.jsx)("br",{}),"If the code changes, a new snapshot must be created."]})}),invalid:(null===xe||void 0===xe||null===(Q=xe.pipeline)||void 0===Q?void 0:Q.uuid)&&(null===an||void 0===an?void 0:an.snapshot_hash)&&!(null!==an&&void 0!==an&&an.snapshot_valid),warning:(null===xe||void 0===xe||null===(z=xe.pipeline)||void 0===z?void 0:z.uuid)&&!(null!==an&&void 0!==an&&an.snapshot_hash)&&!(null!==an&&void 0!==an&&an.snapshot_valid),children:[!(null!==an&&void 0!==an&&an.snapshot_hash)&&(0,B.jsx)(S.ZP,{default:!0,large:!0,children:null!==xe&&void 0!==xe&&null!==(X=xe.pipeline)&&void 0!==X&&X.uuid?"No snapshot has been created":"Select a pipeline before taking a snapshot"}),(null===an||void 0===an?void 0:an.snapshot_hash)&&(0,B.jsx)(y.ZP,{flexDirection:"column",children:(0,B.jsx)(S.ZP,{danger:!(null!==an&&void 0!==an&&an.snapshot_valid),large:!0,rightAligned:!0,success:null===an||void 0===an?void 0:an.snapshot_valid,children:null!==an&&void 0!==an&&an.snapshot_valid?"Snapshot valid":"Snapshot outdated"})})]}),(0,B.jsx)(A.Z,{p:R.cd,children:(0,B.jsx)(y.ZP,{alignItems:"center",justifyContent:"flex-end",children:(0,B.jsxs)(y.ZP,{alignItems:"center",children:[(null===an||void 0===an?void 0:an.snapshotted_at)&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)(S.ZP,{muted:!0,rightAligned:!0,small:!0,children:["Last snapshot at ",(0,B.jsx)(S.ZP,{inline:!0,muted:!0,small:!0,monospace:!0,children:null===an||void 0===an?void 0:an.snapshotted_at})]}),(0,B.jsx)(A.Z,{mr:R.cd})]}),(0,B.jsx)(x.ZP,{disabled:!(null!==xe&&void 0!==xe&&null!==(V=xe.pipeline)&&void 0!==V&&V.uuid),loading:Ke,onClick:function(){return We({pipeline:null===xe||void 0===xe?void 0:xe.pipeline})},primary:!(null!==an&&void 0!==an&&an.snapshot_valid),secondary:null===an||void 0===an?void 0:an.snapshot_valid,children:null!==an&&void 0!==an&&an.snapshot_hash?null!==an&&void 0!==an&&an.snapshot_valid?"Update snapshot even though it\u2019s valid":"Update snapshot to make it valid":"Create snapshot of code"})]})})})]}),(0,B.jsx)(A.Z,{mb:R.cd}),(0,B.jsxs)(O.Z,{title:"How to run hook",children:[(0,B.jsx)(O.S,{title:"Stop operation if hook fails",description:"If enabled, the ".concat($e," will be cancelled and an error will be raised."),toggleSwitch:{checked:null===xe||void 0===xe||null===(q=xe.strategies)||void 0===q?void 0:q.includes(_.Ij.RAISE),onCheck:function(e){return Je((function(n){var t,o;return he(he({},n),{},{strategies:e(null===n||void 0===n||null===(t=n.strategies)||void 0===t?void 0:t.includes(_.Ij.RAISE))?Array.from(r(Set,[((null===n||void 0===n?void 0:n.strategies)||[]).concat(_.Ij.RAISE)])):(null===n||void 0===n||null===(o=n.strategies)||void 0===o?void 0:o.filter((function(e){return e!==_.Ij.RAISE})))||[]})}))}}}),(0,B.jsx)(O.S,{title:"Execute hook with history and logging",description:(0,B.jsxs)(S.ZP,{muted:!0,small:!0,children:["If enabled, anytime this hook is executed an associated pipeline run and block runs will be created.",(0,B.jsx)("br",{}),"This will provide a history of the hook execution as well as logging for observability.",(0,B.jsx)("br",{}),"However, this will have a significant impact on the ",$e," resolution time.",(0,B.jsx)("br",{}),"This may cause very delayed API responsed and a degraded devloper experience."]}),toggleSwitch:{checked:!(null===xe||void 0===xe||null===(J=xe.run_settings)||void 0===J||!J.with_trigger),onCheck:function(e){return Je((function(n){var t;return he(he({},n),{},{run_settings:he(he({},null===n||void 0===n?void 0:n.run_settings),{},{with_trigger:e(null===n||void 0===n||null===(t=n.run_settings)||void 0===t?void 0:t.with_trigger)})})}))}}}),(0,B.jsx)(O.S,{title:"Run hook asynchronously",description:(0,B.jsxs)(S.ZP,{muted:!0,small:!0,children:["Hooks will execute the associated pipeline synchronously and prevent the current resource operation (e.g. API request) from resolving until all associated hooks for that resource operation are completed.",(0,B.jsx)("br",{}),"Hooks running synchronously can mutate the input data and output data. However, it can slow down the user experience in the application.",(0,B.jsx)("br",{}),"Enable this setting to run hooks asynchronously and not block the current resource operation from resolving.",(0,B.jsx)("br",{}),"However, asynchronous hooks cannot mutate the input data or output data. Use this asynchronous setting when hooks don\u2019t need to mutate data."]}),toggleSwitch:{checked:!(null===xe||void 0===xe||null===($=xe.run_settings)||void 0===$||!$.asynchronous),onCheck:function(e){return Je((function(n){var t;return he(he({},n),{},{run_settings:he(he({},null===n||void 0===n?void 0:n.run_settings),{},{asynchronous:e(null===n||void 0===n||null===(t=n.run_settings)||void 0===t?void 0:t.asynchronous)})})}))}}})]}),(0,B.jsx)(A.Z,{mb:R.cd}),(0,B.jsxs)(O.Z,{title:"Block outputs ".concat((null===on||void 0===on?void 0:on.length)>=1?"(".concat((null===on||void 0===on?void 0:on.length)||0,")"):""),description:(0,B.jsx)(A.Z,{mt:1,children:(0,B.jsxs)(S.ZP,{muted:!0,children:["When a hook runs and executes a pipeline, the output from the pipeline\u2019s blocks",(0,B.jsx)("br",{}),"can optionally be used to mutate the ",$e," input and output data."]})}),headerChildren:(null===on||void 0===on?void 0:on.length)>=1&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(A.Z,{ml:R.cd}),ln]}),children:[!(null!==on&&void 0!==on&&on.length)&&(0,B.jsx)(A.Z,{p:R.cd,children:ln}),(null===on||void 0===on?void 0:on.length)>=1&&(0,B.jsx)(m.Z,{noBorder:!0,noBoxShadow:!0,children:cn})]}),(0,B.jsx)(A.Z,{mb:R.cd}),(0,B.jsxs)(O.Z,{title:"Metadata",children:[(0,B.jsx)(O.S,{title:"Last updated",children:(0,B.jsxs)(j.Z,{alignItems:"center",flex:1,justifyContent:"flex-end",children:[(0,B.jsx)(S.ZP,{large:!0,monospace:!0,muted:!0,children:null!==an&&void 0!==an&&an.updated_at?(0,C.XG)(null===an||void 0===an?void 0:an.updated_at,ce):"-"}),(0,B.jsx)(A.Z,{mr:R.cd}),(0,B.jsx)(k.Pf,{muted:!0,size:E.Z}),(0,B.jsx)(A.Z,{mr:1})]})}),(0,B.jsx)(O.S,{title:"Created at",children:(0,B.jsxs)(j.Z,{alignItems:"center",flex:1,justifyContent:"flex-end",children:[(0,B.jsx)(S.ZP,{large:!0,monospace:!0,muted:!0,children:null!==an&&void 0!==an&&an.created_at?(0,C.XG)(null===an||void 0===an?void 0:an.created_at,ce):"-"}),(0,B.jsx)(A.Z,{mr:R.cd}),(0,B.jsx)(k.Pf,{muted:!0,size:E.Z}),(0,B.jsx)(A.Z,{mr:1})]})}),(0,B.jsx)(O.S,{title:"Snapshotted at",children:(0,B.jsxs)(j.Z,{alignItems:"center",flex:1,justifyContent:"flex-end",children:[(0,B.jsx)(S.ZP,{large:!0,monospace:!0,muted:!0,children:null!==an&&void 0!==an&&an.snapshotted_at?(0,C.XG)(null===an||void 0===an?void 0:an.snapshotted_at,ce):"-"}),(0,B.jsx)(A.Z,{mr:R.cd}),(0,B.jsx)(k.Pf,{muted:!0,size:E.Z}),(0,B.jsx)(A.Z,{mr:1})]})}),(0,B.jsx)(O.S,{title:"Snapshot valid",children:(0,B.jsxs)(j.Z,{alignItems:"center",flex:1,justifyContent:"flex-end",children:[(0,B.jsx)(S.ZP,{large:!0,danger:!(null!==an&&void 0!==an&&an.snapshot_valid),muted:null===an||void 0===an?void 0:an.snapshot_valid,children:null!==an&&void 0!==an&&an.snapshot_valid?"Valid":"Hook won\u2019t run until snapshot is valid"}),(0,B.jsx)(A.Z,{mr:R.cd}),null!==an&&void 0!==an&&an.snapshot_valid?(0,B.jsx)(k.Jr,{size:E.Z,success:!0}):(0,B.jsx)(k.uy,{danger:!0,size:E.Z}),(0,B.jsx)(A.Z,{mr:1})]})}),(0,B.jsx)(O.S,{title:"Created by",children:(0,B.jsxs)(j.Z,{alignItems:"center",flex:1,justifyContent:"flex-end",children:[(0,B.jsx)(S.ZP,{large:!0,monospace:!0,muted:!0,children:null!==an&&void 0!==an&&null!==(ee=an.user)&&void 0!==ee&&ee.id?String(null===an||void 0===an||null===(ne=an.user)||void 0===ne?void 0:ne.id)===String(null===de||void 0===de?void 0:de.id)?"You created this hook":"User ID ".concat(null===an||void 0===an||null===(te=an.user)||void 0===te?void 0:te.id):"-"}),(0,B.jsx)(A.Z,{mr:R.cd}),(0,B.jsx)(k.SC,{muted:!0,size:E.Z}),(0,B.jsx)(A.Z,{mr:1})]})})]})]}),(0,B.jsx)(A.Z,{mt:R.HN,children:(0,B.jsxs)(y.ZP,{alignItems:"center",justifyContent:"space-between",children:[!oe&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(x.ZP,{compact:!0,danger:!0,loading:ze,onClick:function(){window.confirm("Are you sure you wantt to delete this hook?")&&Qe()},small:!0,children:"Delete global hook"}),(0,B.jsx)(A.Z,{mr:R.cd})]}),(0,B.jsxs)(j.Z,{flex:1,justifyContent:"flex-end",children:[(0,B.jsx)(x.ZP,{beforeIcon:(0,B.jsx)(k.Hd,{}),disabled:Ne||He||ze,onClick:function(){return fe.push("/global-hooks")},secondary:!0,children:ye?"Cancel changes & go back":"Go back to all hooks"}),(0,B.jsx)(A.Z,{mr:R.cd}),(0,B.jsx)(x.ZP,{beforeIcon:(0,B.jsx)(k.vc,{}),disabled:ze,loading:Ne||He,onClick:function(){return(oe?De:Be)({global_hook:he(he({},dn),oe?{uuid:null===xe||void 0===xe?void 0:xe.uuid}:{})})},primary:!0,children:oe?"Create new global hook":"Save changes"})]})]})})]})}},70320:function(e,n,t){t.d(n,{h:function(){return l},q:function(){return r}});var o=t(78419),i=t(53808);function r(){return(0,i.U2)(o.am,null)||!1}function l(e){return"undefined"!==typeof e&&(0,i.t8)(o.am,e),e}},88543:function(e,n,t){t.d(n,{S:function(){return y},Z:function(){return _}});var o=t(82684),i=t(15338),r=t(97618),l=t(55485),c=t(85854),d=t(65956),a=t(82394),u=t(44085),s=t(38276),p=t(30160),f=t(17488),h=t(69650),v=t(72473),m=t(8193),g=t(70515),x=t(28598);function b(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 j(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?b(Object(t),!0).forEach((function(n){(0,a.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):b(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var y=function(e){var n,t=e.children,o=e.description,i=e.invalid,c=e.large,d=void 0===c||c,a=e.selectInput,b=e.textInput,y=e.title,_=e.toggleSwitch,Z=e.warning;return(0,x.jsx)(s.Z,{p:g.cd,children:(0,x.jsxs)(l.ZP,{alignItems:"center",children:[(0,x.jsxs)(l.ZP,{flexDirection:"column",children:[(0,x.jsxs)(p.ZP,{danger:i,default:!0,large:d,warning:Z,children:[y," ",i&&(0,x.jsx)(p.ZP,{danger:!0,inline:!0,large:d,children:"is required"})]}),o&&"string"===typeof o&&(0,x.jsx)(p.ZP,{muted:!0,small:!0,children:o}),o&&"string"!==typeof o&&o]}),(0,x.jsx)(s.Z,{mr:g.cd}),(0,x.jsxs)(r.Z,{flex:1,justifyContent:"flex-end",children:[t,b&&(0,x.jsx)(f.Z,j({afterIcon:(0,x.jsx)(v.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:m.Z,alignRight:!0,autoComplete:"off",large:d,noBackground:!0,noBorder:!0,fullWidth:!0,paddingHorizontal:0,paddingVertical:0,setContentOnMount:!0},b)),a&&(0,x.jsx)(u.Z,j(j({},a),{},{afterIcon:(0,x.jsx)(v._M,{}),afterIconSize:m.Z,alignRight:!0,autoComplete:"off",large:d,noBackground:!0,noBorder:!0,paddingHorizontal:0,paddingVertical:0,setContentOnMount:!0,children:null===a||void 0===a||null===(n=a.options)||void 0===n?void 0:n.map((function(e){var n=e.label,t=e.value;return(0,x.jsx)("option",{value:t,children:n||t},t)}))})),_&&(0,x.jsx)(h.Z,{checked:!(null===_||void 0===_||!_.checked),compact:!0,onCheck:null===_||void 0===_?void 0:_.onCheck})]})]})})},_=function(e){var n=e.children,t=e.description,a=e.headerChildren,u=e.title;return(0,x.jsxs)(d.Z,{noPadding:!0,children:[(0,x.jsx)(s.Z,{p:g.cd,children:(0,x.jsxs)(l.ZP,{alignItems:"center",children:[(0,x.jsxs)(r.Z,{flex:1,flexDirection:"column",children:[(0,x.jsx)(c.Z,{level:4,children:u}),t&&"string"===typeof t&&(0,x.jsx)(s.Z,{mt:1,children:(0,x.jsx)(p.ZP,{muted:!0,children:t})}),t&&"string"!==typeof t&&t]}),a]})}),o.Children.map(n,(function(e,n){return(0,x.jsxs)("div",{children:[(0,x.jsx)(i.Z,{light:!0}),e]},"".concat(u,"-").concat(n))}))]})}},8193:function(e,n,t){t.d(n,{N:function(){return d},Z:function(){return c}});var o=t(38626),i=t(44897),r=t(42631),l=t(70515),c=2*l.iI,d=o.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-1ck7mzt-0"})(["border-radius:","px;padding:","px;",""],r.n_,l.cd*l.iI,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).codeArea,";\n ")}))},44425:function(e,n,t){t.d(n,{$W:function(){return g},DA:function(){return v},HX:function(){return y},J8:function(){return j},L8:function(){return c},LE:function(){return p},Lk:function(){return O},Lq:function(){return f},M5:function(){return h},Q3:function(){return x},Qj:function(){return _},Ut:function(){return P},V4:function(){return S},VZ:function(){return b},dO:function(){return s},f2:function(){return A},iZ:function(){return Z},t6:function(){return d},tf:function(){return u}});var o,i,r,l,c,d,a=t(82394);!function(e){e.CONDITION="condition",e.DBT_SNAPSHOT="snapshot",e.DYNAMIC="dynamic",e.DYNAMIC_CHILD="dynamic_child",e.REDUCE_OUTPUT="reduce_output",e.REPLICA="replica"}(c||(c={})),function(e){e.MARKDOWN="markdown",e.PYTHON="python",e.R="r",e.SQL="sql",e.YAML="yaml"}(d||(d={}));var u,s=(o={},(0,a.Z)(o,d.MARKDOWN,"MD"),(0,a.Z)(o,d.PYTHON,"PY"),(0,a.Z)(o,d.R,"R"),(0,a.Z)(o,d.SQL,"SQL"),(0,a.Z)(o,d.YAML,"YAML"),o),p=(i={},(0,a.Z)(i,d.MARKDOWN,"Markdown"),(0,a.Z)(i,d.PYTHON,"Python"),(0,a.Z)(i,d.R,"R"),(0,a.Z)(i,d.SQL,"SQL"),(0,a.Z)(i,d.YAML,"YAML"),i);!function(e){e.CALLBACK="callback",e.CHART="chart",e.CONDITIONAL="conditional",e.CUSTOM="custom",e.DATA_EXPORTER="data_exporter",e.DATA_LOADER="data_loader",e.DBT="dbt",e.EXTENSION="extension",e.GLOBAL_DATA_PRODUCT="global_data_product",e.SCRATCHPAD="scratchpad",e.SENSOR="sensor",e.MARKDOWN="markdown",e.TRANSFORMER="transformer"}(u||(u={}));var f,h=[u.CALLBACK,u.CONDITIONAL,u.EXTENSION];!function(e){e.BLUE="blue",e.GREY="grey",e.PINK="pink",e.PURPLE="purple",e.TEAL="teal",e.YELLOW="yellow"}(f||(f={}));var v,m,g=[u.CHART,u.CUSTOM,u.DATA_EXPORTER,u.DATA_LOADER,u.SCRATCHPAD,u.SENSOR,u.MARKDOWN,u.TRANSFORMER],x=[u.CUSTOM,u.DATA_EXPORTER,u.DATA_LOADER,u.SCRATCHPAD,u.SENSOR,u.MARKDOWN,u.TRANSFORMER],b=[u.DATA_EXPORTER,u.DATA_LOADER],j=[u.DATA_EXPORTER,u.DATA_LOADER,u.TRANSFORMER],y=[u.DATA_EXPORTER,u.DATA_LOADER,u.DBT,u.TRANSFORMER],_=[u.CHART,u.SCRATCHPAD,u.SENSOR,u.MARKDOWN],Z=[u.CALLBACK,u.CHART,u.EXTENSION,u.SCRATCHPAD,u.MARKDOWN],O=[u.CUSTOM,u.DATA_EXPORTER,u.DATA_LOADER,u.SENSOR,u.TRANSFORMER];!function(e){e.EXECUTED="executed",e.FAILED="failed",e.NOT_EXECUTED="not_executed",e.UPDATED="updated"}(v||(v={})),function(e){e.BLOCK_FILE="block_file",e.CUSTOM_BLOCK_TEMPLATE="custom_block_template",e.MAGE_TEMPLATE="mage_template"}(m||(m={}));var A=[u.CUSTOM,u.DATA_EXPORTER,u.DATA_LOADER,u.TRANSFORMER],S=(r={},(0,a.Z)(r,u.CALLBACK,"Callback"),(0,a.Z)(r,u.CHART,"Chart"),(0,a.Z)(r,u.CONDITIONAL,"Conditional"),(0,a.Z)(r,u.CUSTOM,"Custom"),(0,a.Z)(r,u.DATA_EXPORTER,"Data exporter"),(0,a.Z)(r,u.DATA_LOADER,"Data loader"),(0,a.Z)(r,u.DBT,"DBT"),(0,a.Z)(r,u.EXTENSION,"Extension"),(0,a.Z)(r,u.GLOBAL_DATA_PRODUCT,"Global data product"),(0,a.Z)(r,u.MARKDOWN,"Markdown"),(0,a.Z)(r,u.SCRATCHPAD,"Scratchpad"),(0,a.Z)(r,u.SENSOR,"Sensor"),(0,a.Z)(r,u.TRANSFORMER,"Transformer"),r),P=[u.DATA_LOADER,u.TRANSFORMER,u.DATA_EXPORTER,u.SENSOR];l={},(0,a.Z)(l,u.DATA_EXPORTER,"DE"),(0,a.Z)(l,u.DATA_LOADER,"DL"),(0,a.Z)(l,u.SCRATCHPAD,"SP"),(0,a.Z)(l,u.SENSOR,"SR"),(0,a.Z)(l,u.MARKDOWN,"MD"),(0,a.Z)(l,u.TRANSFORMER,"TF")},14466:function(e,n,t){t.d(n,{Ij:function(){return r},N_:function(){return v},SQ:function(){return l},TT:function(){return c},W6:function(){return p},XG:function(){return u},YB:function(){return a},i9:function(){return h},sw:function(){return d},t4:function(){return s}});var o,i,r,l,c,d,a,u,s,p,f=t(82394);!function(e){e.CREATE="create",e.DELETE="delete",e.DETAIL="detail",e.EXECUTE="execute",e.LIST="list",e.UPDATE="update",e.UPDATE_ANYWHERE="update_anywhere"}(i||(i={})),function(e){e.BREAK="break",e.CONTINUE="continue",e.RAISE="raise"}(r||(r={})),function(e){e.AFTER="after",e.BEFORE="before"}(l||(l={})),function(e){e.ERROR="error",e.META="meta",e.METADATA="metadata",e.PAYLOAD="payload",e.QUERY="query",e.RESOURCE="resource",e.RESOURCES="resources"}(c||(c={})),function(e){e.FAILURE="failure",e.SUCCESS="success"}(d||(d={})),function(e){e.AND="and",e.OR="or"}(a||(a={})),function(e){e.ERROR="error",e.HOOK="hook",e.META="meta",e.METADATA="metadata",e.OPERATION_RESOURCE="operation_resource",e.PAYLOAD="payload",e.QUERY="query",e.RESOURCE="resource",e.RESOURCES="resources",e.RESOURCE_ID="resource_id",e.RESOURCE_PARENT_ID="resource_parent_id",e.USER="user"}(u||(u={})),function(e){e.BOOLEAN="BOOLEAN",e.DICTIONARY="DICTIONARY",e.FLOAT="FLOAT",e.INTEGER="INTEGER",e.LIST="LIST",e.STRING="STRING"}(s||(s={})),function(e){e.EQUALS="EQUALS",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUALS="GREATER_THAN_OR_EQUALS",e.INCLUDES="INCLUDES",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUALS="LESS_THAN_OR_EQUALS",e.NOT_EQUALS="NOT_EQUALS",e.NOT_INCLUDES="NOT_INCLUDES",e.NOT_PRESENT="NOT_PRESENT",e.PRESENT="PRESENT"}(p||(p={}));var h=[p.NOT_PRESENT,p.PRESENT],v=(o={},(0,f.Z)(o,p.EQUALS,"=="),(0,f.Z)(o,p.GREATER_THAN,">"),(0,f.Z)(o,p.GREATER_THAN_OR_EQUALS,">="),(0,f.Z)(o,p.INCLUDES,"includes"),(0,f.Z)(o,p.LESS_THAN,"<"),(0,f.Z)(o,p.LESS_THAN_OR_EQUALS,"<="),(0,f.Z)(o,p.NOT_EQUALS,"!="),(0,f.Z)(o,p.NOT_INCLUDES,"not includes"),(0,f.Z)(o,p.NOT_PRESENT,"is not present"),(0,f.Z)(o,p.PRESENT,"is present"),o)},31882:function(e,n,t){var o=t(38626),i=t(71180),r=t(55485),l=t(30160),c=t(44897),d=t(72473),a=t(70515),u=t(61896),s=t(28598),p=o.default.div.withConfig({displayName:"Chip__ChipStyle",componentId:"sc-1ok73g-0"})(["display:inline-block;"," "," "," "," "," ",""],(function(e){return!e.primary&&"\n background-color: ".concat((e.theme.background||c.Z.background).tag,";\n ")}),(function(e){return e.primary&&"\n background-color: ".concat((e.theme.chart||c.Z.chart).primary,";\n ")}),(function(e){return!e.small&&"\n border-radius: ".concat((a.iI+u.Al)/2,"px;\n height: ").concat(1.5*a.iI+u.Al,"px;\n padding: ").concat(a.iI/1.5,"px ").concat(1.25*a.iI,"px;\n ")}),(function(e){return e.small&&"\n border-radius: ".concat((a.iI/2+u.Al)/2,"px;\n height: ").concat(u.Al+a.iI/2+2,"px;\n padding: ").concat(a.iI/4,"px ").concat(a.iI,"px;\n ")}),(function(e){return e.xsmall&&"\n border-radius: ".concat((a.iI/1+u.Al)/1,"px;\n height: ").concat(20,"px;\n padding: 4px 6px;\n ")}),(function(e){return e.border&&"\n border: 1px solid ".concat((e.theme.content||c.Z.content).muted,";\n ")}));n.Z=function(e){var n=e.border,t=e.children,o=e.disabled,c=e.label,u=e.monospace,f=e.onClick,h=e.primary,v=e.small,m=e.xsmall;return(0,s.jsx)(p,{border:n,primary:h,small:v,xsmall:m,children:(0,s.jsx)(i.ZP,{basic:!0,disabled:o,noBackground:!0,noPadding:!0,onClick:f,transparent:!0,children:(0,s.jsxs)(r.ZP,{alignItems:"center",children:[t,c&&(0,s.jsx)(l.ZP,{monospace:u,small:v,xsmall:m,children:c}),!o&&f&&(0,s.jsx)("div",{style:{marginLeft:2}}),!o&&f&&(0,s.jsx)(d.x8,{default:h,muted:!h,size:v?a.iI:1.25*a.iI})]})})})}},65956:function(e,n,t){var o=t(38626),i=t(55485),r=t(38276),l=t(30160),c=t(44897),d=t(42631),a=t(47041),u=t(70515),s=t(28598),p=(0,o.css)(["padding:","px;padding-bottom:","px;padding-top:","px;"],2*u.iI,1.5*u.iI,1.5*u.iI),f=o.default.div.withConfig({displayName:"Panel__PanelStyle",componentId:"sc-1ct8cgl-0"})(["border-radius:","px;overflow:hidden;"," "," "," "," "," "," "," "," "," "," "," ",""],d.n_,(function(e){return e.fullWidth&&"\n width: 100%;\n "}),(function(e){return!e.borderless&&"\n border: 1px solid ".concat((e.theme.interactive||c.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.success&&"\n background-color: ".concat((e.theme.background||c.Z.background).successLight,";\n ")}),(function(e){return e.success&&!e.borderless&&"\n border: 1px solid ".concat((e.theme.background||c.Z.background).success,";\n ")}),(function(e){return!e.dark&&!e.success&&"\n background-color: ".concat((e.theme.background||c.Z.background).panel,";\n ")}),(function(e){return e.dark&&"\n background-color: ".concat((e.theme.background||c.Z.background).content,";\n ")}),(function(e){return!e.fullHeight&&"\n height: fit-content;\n "}),(function(e){return e.maxHeight&&"\n max-height: ".concat(e.maxHeight,";\n ")}),(function(e){return e.maxWidth&&"\n max-width: ".concat(e.maxWidth,"px;\n ")}),(function(e){return e.minWidth&&"\n min-width: ".concat(e.minWidth,"px;\n\n @media (max-width: ").concat(e.minWidth,"px) {\n min-width: 0;\n }\n ")}),(function(e){return e.borderless&&"\n border: none;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),h=o.default.div.withConfig({displayName:"Panel__HeaderStyle",componentId:"sc-1ct8cgl-1"})(["border-top-left-radius:","px;border-top-right-radius:","px;"," "," "," ",""],d.n_,d.n_,(function(e){return"\n background-color: ".concat((e.theme.background||c.Z.background).chartBlock,";\n border-bottom: 1px solid ").concat((e.theme.interactive||c.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),p,(function(e){return e.headerPaddingVertical&&"\n padding-bottom: ".concat(e.headerPaddingVertical,"px;\n padding-top: ").concat(e.headerPaddingVertical,"px;\n ")})),v=o.default.div.withConfig({displayName:"Panel__ContentStyle",componentId:"sc-1ct8cgl-2"})(["overflow-y:auto;padding:","px;height:100%;"," "," "," "," ",""],1.75*u.iI,a.w5,(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),(function(e){return e.maxHeight&&"\n max-height: calc(".concat(e.maxHeight," - ").concat(15*u.iI,"px);\n ")}),(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),m=o.default.div.withConfig({displayName:"Panel__FooterStyle",componentId:"sc-1ct8cgl-3"})(["border-style:",";border-top-width:","px;padding:","px;"],d.M8,d.YF,1.75*u.iI);n.Z=function(e){var n=e.borderless,t=e.children,o=e.containerRef,c=e.contentContainerRef,d=e.dark,a=e.footer,u=e.fullHeight,p=void 0===u||u,g=e.fullWidth,x=void 0===g||g,b=e.header,j=e.headerHeight,y=e.headerIcon,_=e.headerPaddingVertical,Z=e.headerTitle,O=e.maxHeight,A=e.maxWidth,S=e.minWidth,P=e.noPadding,k=e.overflowVisible,E=e.subtitle,R=e.success;return(0,s.jsxs)(f,{borderless:n,dark:d,fullHeight:p,fullWidth:x,maxHeight:O,maxWidth:A,minWidth:S,overflowVisible:k,ref:o,success:R,children:[(b||Z)&&(0,s.jsxs)(h,{headerPaddingVertical:_,height:j,children:[b&&b,Z&&(0,s.jsx)(i.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,s.jsxs)(i.ZP,{alignItems:"center",children:[y&&y,(0,s.jsx)(r.Z,{ml:y?1:0,children:(0,s.jsx)(l.ZP,{bold:!0,default:!0,children:Z})})]})})]}),(0,s.jsxs)(v,{maxHeight:O,noPadding:P,overflowVisible:k,ref:c,children:[E&&"string"===typeof E&&(0,s.jsx)(r.Z,{mb:2,children:(0,s.jsx)(l.ZP,{default:!0,children:E})}),E&&"string"!==typeof E&&E,t]}),a&&(0,s.jsx)(m,{children:a})]})}},80022:function(e,n,t){function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}t.d(n,{Z:function(){return o}})},15544:function(e,n,t){function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}t.d(n,{Z:function(){return o}})},13692:function(e,n,t){t.d(n,{Z:function(){return i}});var o=t(61049);function i(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&(0,o.Z)(e,n)}},93189:function(e,n,t){t.d(n,{Z:function(){return r}});var o=t(12539),i=t(80022);function r(e,n){if(n&&("object"===o(n)||"function"===typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.Z)(e)}},61049:function(e,n,t){function o(e,n){return o=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},o(e,n)}t.d(n,{Z:function(){return o}})}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3943],{4611:function(e,n,t){t.d(n,{f:function(){return o}});var i=t(38626),r=t(44897),u=t(70515),l=t(42631),o=i.default.div.withConfig({displayName:"Tablestyle__PopupContainerStyle",componentId:"sc-8ammqd-0"})(["position:absolute;max-height:","px;z-index:10;border-radius:","px;padding:","px;"," "," "," ",""],58*u.iI,l.TR,2*u.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||r.Z.shadow).popup,";\n background-color: ").concat((e.theme.interactive||r.Z.interactive).defaultBackground,";\n ")}),(function(e){return e.leftOffset&&"\n left: ".concat(e.leftOffset,"px;\n ")}),(function(e){return e.topOffset&&"\n top: ".concat(e.topOffset,"px;\n ")}),(function(e){return e.width&&"\n width: ".concat(e.width,"px;\n ")}))},53943:function(e,n,t){var i=t(82394),r=t(75582),u=t(12691),l=t.n(u),o=t(69864),c=t(82684),a=t(34376),s=t(71180),d=t(70652),p=t(50724),f=t(97618),h=t(55485),m=t(48670),v=t(44265),g=t(89515),x=t(38276),_=t(4190),b=t(75499),j=t(48381),E=t(30160),y=t(35686),I=t(44897),P=t(42631),O=t(72473),Z=t(81655),C=t(72191),w=t(39643),k=t(4611),N=t(30229),D=t(31608),T=t(70515),L=t(3917),A=t(16488),R=t(86735),S=t(50178),V=t(72619),F=t(3314),U=t(69419),M=t(70320),Y=t(44688),G=t(28598);function H(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 B(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?H(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):H(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var z={monospace:!0,small:!0};function X(e){var n=e.cancelingRunId,t=e.disabled,i=e.isLoadingCancelPipeline,u=e.onCancel,l=e.onSuccess,a=e.pipelineRun,d=e.setCancelingRunId,f=e.setErrors,m=e.setShowConfirmationId,g=e.showConfirmationId,b=(0,S.Ct)(),j=a||{},Z=j.id,w=j.pipeline_schedule_id,D=j.pipeline_schedule_token,T=j.pipeline_schedule_type,L=j.status,A=i&&Z===n&&v.VO.RUNNING===L,R=(0,U.iV)(),F=(0,c.useMemo)((function(){return(null!==R&&void 0!==R&&R.page?+R.page:0)>0}),[null===R||void 0===R?void 0:R.page]),M=(0,o.Db)(N.Xm.API===T&&D?y.ZP.pipeline_runs.pipeline_schedules.useCreateWithParent(w,D):y.ZP.pipeline_runs.pipeline_schedules.useCreate(w),{onSuccess:function(e){return(0,V.wD)(e,{callback:function(){l()},onErrorCallback:function(e,n){return null===f||void 0===f?void 0:f({errors:n,response:e})}})}}),Y=(0,r.Z)(M,1)[0],H=(0,c.useCallback)((function(){m(null),Y({pipeline_run:{backfill_id:null===a||void 0===a?void 0:a.backfill_id,event_variables:(null===a||void 0===a?void 0:a.event_variables)||{},execution_date:null===a||void 0===a?void 0:a.execution_date,pipeline_schedule_id:null===a||void 0===a?void 0:a.pipeline_schedule_id,pipeline_uuid:null===a||void 0===a?void 0:a.pipeline_uuid,variables:(null===a||void 0===a?void 0:a.variables)||{}}})}),[Y,a,m]),B=(0,c.useCallback)((function(){m(null),d(Z),u({id:Z,status:v.VO.CANCELLED})}),[u,Z,d,m]);return(0,G.jsxs)("div",{style:{position:"relative"},children:[(0,G.jsx)(s.ZP,{backgroundColor:A&&I.Z.accent.yellow,beforeIcon:v.VO.INITIAL!==L&&!t&&(0,G.jsxs)(G.Fragment,{children:[v.VO.COMPLETED===L&&(0,G.jsx)(O.Jr,{size:C.bL}),[v.VO.FAILED,v.VO.CANCELLED].includes(L)&&(0,G.jsx)(O.Py,{inverted:v.VO.CANCELLED===L&&!b,size:C.bL}),[v.VO.RUNNING].includes(L)&&(0,G.jsx)(_.Z,{color:A?I.Z.status.negative:I.Z.monotone.white,small:!0})]}),borderRadius:"".concat(P.D7,"px"),danger:v.VO.FAILED===L&&!b,default:v.VO.INITIAL===L,disabled:t||b,loading:!a,onClick:function(e){e.stopPropagation(),m(Z)},padding:"6px",primary:v.VO.RUNNING===L&&!A&&!b,warning:v.VO.CANCELLED===L&&!b,children:t?"Ready":A?"Canceling":v.Do[L]}),(0,G.jsx)(p.Z,{onClickOutside:function(){return m(null)},open:g===Z,children:(0,G.jsxs)(k.f,{children:[[v.VO.RUNNING,v.VO.INITIAL].includes(L)&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(E.ZP,{bold:!0,color:"#9ECBFF",children:"Run is in progress"}),(0,G.jsx)(x.Z,{mb:1}),(0,G.jsxs)(E.ZP,{children:["This pipeline run is currently ongoing. Retrying will cancel",(0,G.jsx)("br",{}),"the current pipeline run."]}),(0,G.jsx)(E.ZP,{}),(0,G.jsx)(x.Z,{mt:1,children:(0,G.jsxs)(h.ZP,{children:[(0,G.jsx)(s.ZP,{onClick:function(){B(),H()},children:"Retry run"}),(0,G.jsx)(x.Z,{ml:1}),(0,G.jsx)(s.ZP,{onClick:B,children:"Cancel run"})]})})]}),[v.VO.CANCELLED,v.VO.FAILED,v.VO.COMPLETED].includes(L)&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(E.ZP,{bold:!0,color:"#9ECBFF",children:["Run ",L]}),(0,G.jsx)(x.Z,{mb:1}),(0,G.jsxs)(E.ZP,{children:["Retry the run with changes you have made to the pipeline.",F?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)("br",{}),"Note that the retried run may appear on a previous page."]}):null]}),(0,G.jsx)(x.Z,{mb:1}),(0,G.jsx)(s.ZP,{onClick:H,children:"Retry run"})]})]})})]})}n.Z=function(e){var n=e.allowBulkSelect,t=e.allowDelete,u=e.deletePipelineRun,_=e.disableKeyboardNav,I=e.disableRowSelect,k=e.emptyMessage,N=void 0===k?"No runs available":k,U=e.fetchPipelineRuns,H=e.hideTriggerColumn,K=e.includePipelineTags,Q=e.onClickRow,W=e.pipelineRuns,q=e.selectedRun,J=e.selectedRuns,$=e.setSelectedRun,ee=e.setSelectedRuns,ne=e.setErrors,te=(0,a.useRouter)(),ie=(0,S.Ct)(),re=(0,M.q)(),ue=(0,c.useRef)({}),le=(0,c.useState)(null),oe=le[0],ce=le[1],ae=(0,c.useState)(null),se=ae[0],de=ae[1],pe=(0,c.useState)(null),fe=pe[0],he=pe[1],me=(0,c.useState)(0),ve=me[0],ge=me[1],xe=(0,c.useState)(0),_e=xe[0],be=xe[1],je=(0,o.Db)((function(e){var n=e.id,t=e.status;return y.ZP.pipeline_runs.useUpdate(n)({pipeline_run:{status:t}})}),{onSuccess:function(e){return(0,V.wD)(e,{callback:function(){ce(null),null===U||void 0===U||U()},onErrorCallback:function(e,n){ce(null),null===ne||void 0===ne||ne({errors:n,response:e})}})}}),Ee=(0,r.Z)(je,2),ye=Ee[0],Ie=Ee[1].isLoading,Pe="PipelineDetail/Runs/Table",Oe="pipeline-runs",Ze=(0,c.useCallback)((function(e){if(!e)return null;var n=W.findIndex((function(n){return n.id===e.id}));return n>=0?n:null}),[W]),Ce=(0,Y.y)(),we=Ce.registerOnKeyDown,ke=Ce.unregisterOnKeyDown;(0,c.useEffect)((function(){return function(){ke(Pe)}}),[ke,Pe]),we(Pe,(function(e,n){var t=n[w.Bu],i=n[w.kD];$&&!_&&(t||i)&&$((function(n){var r=Ze(n);if(null!==r){if(e.repeat)return e.preventDefault(),n;if(t){var u=r-1;return u<0&&(u=W.length-1),W[u]}if(i){var l=r+1;return l>=W.length&&(l=0),W[l]}}return n}))}),[W,$]),(0,c.useEffect)((function(){var e=Ze(q);if(null!==e){var n=(0,Z.w4)({rowIndex:e,uuid:Oe}),t=document.getElementById(n);t&&t.scrollIntoView({behavior:"smooth",block:"center"})}}),[Ze,q]);var Ne=re?Z.O$:{},De=[null,1],Te=[{uuid:"Status"},{uuid:"Pipeline"}];H||(De.push(1),Te.push({uuid:"Trigger"})),K&&(De.push(null),Te.push({uuid:"Pipeline tags"})),De.push.apply(De,[1,1,1,null,null]),Te.push.apply(Te,[B(B({},Ne),{},{uuid:"Execution date"}),B(B({},Ne),{},{uuid:"Started at"}),B(B({},Ne),{},{uuid:"Completed at"}),{uuid:"Execution time"},{uuid:"Block runs"},{uuid:"Logs"}]),t&&!ie&&(De.push.apply(De,[null]),Te.push({label:function(){return""},uuid:"Delete"}));var Le=(0,c.useMemo)((function(){return W.every((function(e){var n=e.id;return!(null===J||void 0===J||!J[n])}))}),[W,J]);n&&(De.unshift(null),Te.unshift({label:function(){return(0,G.jsx)(d.Z,{checked:Le,onClick:function(){var e=(0,R.HK)(W||[],(function(e){return e.id}));ee(Le?{}:e)}})},uuid:"Selected"})),!I&&Q&&(De.push(null),Te.push({label:function(){return""},uuid:"action"}));var Ae=(0,c.useCallback)((function(e,n){if(Q&&ee&&n&&n.metaKey){var t=W[e];ee((function(e){var n=!(null===e||void 0===e||!e[t.id]);return B(B({},e),{},(0,i.Z)({},t.id,n?null:t))}))}else Q&&Q(e)}),[Q,W,ee]);return(0,G.jsx)(D.cl,{minHeight:30*T.iI,overflowVisible:!!se,children:0===(null===W||void 0===W?void 0:W.length)?(0,G.jsx)(x.Z,{px:3,py:1,children:(0,G.jsx)(E.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:N})}):(0,G.jsx)(b.Z,{columnFlex:De,columns:Te,isSelectedRow:function(e){return!I&&W[e].id===(null===q||void 0===q?void 0:q.id)},onClickRow:I?null:Ae,rowVerticalPadding:6,rows:null===W||void 0===W?void 0:W.map((function(e,r){var o=e.block_runs_count,a=e.completed_block_runs_count,_=e.completed_at,b=e.execution_date,y=e.id,w=e.pipeline_schedule_id,k=e.pipeline_schedule_name,N=e.pipeline_tags,D=e.pipeline_uuid,T=e.started_at,R=e.status;ue.current[y]=(0,c.createRef)();var S,V,M=!y&&!R,Y="".concat(a," out of ").concat(o," block runs completed"),q=(0,G.jsx)(j.Z,{tags:null===N||void 0===N?void 0:N.map((function(e){return{uuid:e}}))},"row_pipeline_tags_".concat(r)),$=[];r>0&&W[r-1].execution_date===e.execution_date&&W[r-1].pipeline_schedule_id===e.pipeline_schedule_id?($=[(0,G.jsx)(x.Z,{ml:1,children:(0,G.jsxs)(h.ZP,{alignItems:"center",children:[(0,G.jsx)(O.TT,{size:C.bL,useStroke:!0}),(0,G.jsx)(s.ZP,{borderRadius:"".concat(P.D7,"px"),notClickable:!0,padding:"6px",children:(0,G.jsx)(E.ZP,{muted:!0,children:v.Do[R]})})]})},"row_status"),(0,G.jsx)(E.ZP,{default:!0,monospace:!0,muted:!0,children:D},"row_pipeline_uuid")],H||$.push((0,G.jsx)(E.ZP,{default:!0,monospace:!0,muted:!0,children:"-"},"row_trigger_retry")),K&&$.push(q),(S=$).push.apply(S,[(0,G.jsx)(E.ZP,{default:!0,monospace:!0,muted:!0,children:"-"},"row_date_retry"),(0,c.createElement)(E.ZP,B(B({},z),{},{key:"row_started_at",muted:!0,title:T?(0,L._6)(T):null}),T?re?(0,L.XG)(T,re):(0,A.Vx)(T):(0,G.jsx)(G.Fragment,{children:"\u2014"})),(0,c.createElement)(E.ZP,B(B({},z),{},{key:"row_completed_at",muted:!0,title:_?(0,L._6)(_):null}),_?re?(0,L.XG)(_,re):(0,A.Vx)(_):(0,G.jsx)(G.Fragment,{children:"\u2014"})),(0,c.createElement)(E.ZP,B(B({},z),{},{default:!0,key:"row_execution_time",title:T&&_?(0,L.Qf)({endDatetime:_,showFullFormat:!0,startDatetime:T}):null}),T&&_?(0,L.Qf)({endDatetime:_,startDatetime:T}):(0,G.jsx)(G.Fragment,{children:"\u2014"})),(0,G.jsx)(l(),{as:"/pipelines/".concat(D,"/runs/").concat(y),href:"/pipelines/[pipeline]/runs/[run]",passHref:!0,children:(0,G.jsx)(m.Z,{bold:!0,muted:!0,title:Y,children:"".concat(a," / ").concat(o)})},"row_block_runs"),(0,G.jsx)(s.ZP,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(e){e.stopPropagation(),te.push("/pipelines/".concat(D,"/logs?pipeline_run_id[]=").concat(y))},children:(0,G.jsx)(O.UL,{default:!0,size:C.bL})},"row_logs")])):($=[(0,G.jsx)(X,{cancelingRunId:oe,disabled:M,isLoadingCancelPipeline:Ie,onCancel:ye,onSuccess:U,pipelineRun:e,setCancelingRunId:ce,setErrors:ne,setShowConfirmationId:de,showConfirmationId:se},"row_retry_button"),(0,G.jsx)(E.ZP,{default:!0,monospace:!0,children:D},"row_pipeline_uuid")],H||$.push((0,G.jsx)(l(),{as:"/pipelines/".concat(D,"/triggers/").concat(w),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,G.jsx)(m.Z,{bold:!0,sky:!0,children:k})},"row_trigger")),K&&$.push(q),(V=$).push.apply(V,[(0,c.createElement)(E.ZP,B(B({},z),{},{default:!0,key:"row_date",title:b?(0,L._6)(b):null}),b?re?(0,L.XG)(b,re):(0,A.Vx)(b):(0,G.jsx)(G.Fragment,{children:"\u2014"})),(0,c.createElement)(E.ZP,B(B({},z),{},{default:!0,key:"row_started_at",title:T?(0,L._6)(T):null}),T?re?(0,L.XG)(T,re):(0,A.Vx)(T):(0,G.jsx)(G.Fragment,{children:"\u2014"})),(0,c.createElement)(E.ZP,B(B({},z),{},{default:!0,key:"row_completed_at",title:_?(0,L._6)(_):null}),_?re?(0,L.XG)(_,re):(0,A.Vx)(_):(0,G.jsx)(G.Fragment,{children:"\u2014"})),(0,c.createElement)(E.ZP,B(B({},z),{},{default:!0,key:"row_execution_time",title:T&&_?(0,L.Qf)({endDatetime:_,showFullFormat:!0,startDatetime:T}):null}),T&&_?(0,L.Qf)({endDatetime:_,startDatetime:T}):(0,G.jsx)(G.Fragment,{children:"\u2014"})),(0,G.jsx)(l(),{as:"/pipelines/".concat(D,"/runs/").concat(y),href:"/pipelines/[pipeline]/runs/[run]",passHref:!0,children:(0,G.jsx)(m.Z,{bold:!0,disabled:M,sky:!0,title:Y,children:M?"":"".concat(a," / ").concat(o)})},"row_block_runs"),(0,G.jsx)(s.ZP,{default:!0,disabled:M,iconOnly:!0,noBackground:!0,onClick:function(e){e.stopPropagation(),te.push("/pipelines/".concat(D,"/logs?pipeline_run_id[]=").concat(y))},children:(0,G.jsx)(O.UL,{default:!0,size:C.bL})},"row_logs")]));if(t&&!ie&&$.push((0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(s.ZP,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(e){var n,t,i,r;(0,F.j)(e),he(y),ge((null===(n=ue.current[y])||void 0===n||null===(t=n.current)||void 0===t?void 0:t.offsetTop)||0),be((null===(i=ue.current[y])||void 0===i||null===(r=i.current)||void 0===r?void 0:r.offsetLeft)||0)},ref:ue.current[y],title:"Delete",children:(0,G.jsx)(O.rF,{default:!0,size:C.bL})}),(0,G.jsx)(p.Z,{onClickOutside:function(){return he(null)},open:fe===y,children:(0,G.jsx)(g.Z,{danger:!0,left:(_e||0)-Z.nH,onCancel:function(){return he(null)},onClick:function(){he(null),u(y)},title:"Are you sure you want to delete this run (id ".concat(y,' for trigger "').concat(k,'")?'),top:(ve||0)-(r<=1?Z.oz:Z.OK),width:Z.Xx})})]})),n){var le=!(null===J||void 0===J||!J[y]);$.unshift((0,G.jsx)(d.Z,{checked:le,onClick:function(n){n.stopPropagation(),ee((function(n){return B(B({},n),{},(0,i.Z)({},y,le?null:e))}))}},"selected-pipeline-run-".concat(y)))}return!I&&Q&&$.push((0,G.jsx)(f.Z,{flex:1,justifyContent:"flex-end",children:(0,G.jsx)(O._Q,{default:!0,size:C.bL})})),$})),uuid:Oe})})}},48381:function(e,n,t){var i=t(82684),r=t(31882),u=t(55485),l=t(30160),o=t(86735),c=t(28598);n.Z=function(e){var n=e.onClickTag,t=e.tags,a=void 0===t?[]:t,s=(0,i.useMemo)((function(){return(null===a||void 0===a?void 0:a.length)||0}),[a]),d=(0,i.useMemo)((function(){return(0,o.YC)(a||[],"uuid")}),[a]);return(0,c.jsx)(u.ZP,{alignItems:"center",flexWrap:"wrap",children:null===d||void 0===d?void 0:d.reduce((function(e,t){return e.push((0,c.jsx)("div",{style:{marginBottom:2,marginRight:s>=2?4:0,marginTop:2},children:(0,c.jsx)(r.Z,{onClick:n?function(){return n(t)}:null,small:!0,children:(0,c.jsx)(l.ZP,{children:t.uuid})})},"tag-".concat(t.uuid))),e}),[])})}},16488:function(e,n,t){t.d(n,{IJ:function(){return m},M8:function(){return P},Vx:function(){return b},XM:function(){return I},_U:function(){return h},eI:function(){return _},gU:function(){return E},lO:function(){return k},ri:function(){return g},tL:function(){return j},vJ:function(){return y},xH:function(){return x}});var i,r=t(82394),u=t(92083),l=t.n(u),o=t(3917),c=t(4383),a=t(30229),s=t(42122),d=t(86735);function p(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 f(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?p(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):p(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var h=function(e){return!!e&&!Object.values(a.U5).includes(e)};function m(e){return null===e||void 0===e?void 0:e.reduce((function(e,n){var t=n.block_uuid,i=n.completed_at,u=n.started_at,o=n.status,c=null;u&&i&&(c=l()(i).valueOf()-l()(u).valueOf());return f(f({},e),{},(0,r.Z)({},t,{runtime:c,status:o}))}),{})}var v,g=function(e){var n=[{description:function(){return"This pipeline will run continuously on an interval or just once."},label:function(){return"Schedule"},uuid:a.Xm.TIME},{description:function(){return"This pipeline will run when a specific event occurs."},label:function(){return"Event"},uuid:a.Xm.EVENT},{description:function(){return"Run this pipeline when you make an API call."},label:function(){return"API"},uuid:a.Xm.API}];return e?n.slice(0,1):n};function x(e){var n=(0,s.gR)(e,[a.gm.INTERVAL,a.gm.TYPE]),t=e[a.gm.INTERVAL];t&&(n["schedule_interval[]"]=encodeURIComponent(t));var i=e[a.gm.TYPE];return i&&(n["schedule_type[]"]=i),n}function _(e){return e?new Date(l()(e).valueOf()):null}function b(e){if("string"!==typeof e)return e;var n=e.split("+")[0];return l()(_(n)).format(o.Nx)}!function(e){e.DAY="day",e.HOUR="hour",e.MINUTE="minute",e.SECOND="second"}(v||(v={}));var j=(i={},(0,r.Z)(i,v.DAY,86400),(0,r.Z)(i,v.HOUR,3600),(0,r.Z)(i,v.MINUTE,60),(0,r.Z)(i,v.SECOND,1),i);function E(e){var n=v.SECOND,t=e;return e%86400===0?(t/=86400,n=v.DAY):e%3600===0?(t/=3600,n=v.HOUR):e%60===0&&(t/=60,n=v.MINUTE),{time:t,unit:n}}function y(e,n){return e*j[n]}function I(e,n,t){var i,r=l()(e);return r.set("hour",+(null===n||void 0===n?void 0:n.hour)||0),r.set("minute",+(null===n||void 0===n?void 0:n.minute)||0),r.set("second",0),i=r.format(o.TD),null!==t&&void 0!==t&&t.includeSeconds&&(i=i.concat(":00")),null!==t&&void 0!==t&&t.localTimezone&&(i=r.format(o.lE),null!==t&&void 0!==t&&t.convertToUtc&&(i=(0,o.d$)(i,{includeSeconds:null===t||void 0===t?void 0:t.includeSeconds,utcFormat:!0}))),i}function P(e){var n,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i="",r=!0;return r&&(t?i="".concat(window.origin,"/api/pipeline_schedules/").concat(null===e||void 0===e?void 0:e.id,"/api_trigger"):(i="".concat(window.origin,"/api/pipeline_schedules/").concat(null===e||void 0===e?void 0:e.id,"/pipeline_runs"),null!==e&&void 0!==e&&e.token&&(i="".concat(i,"/").concat(e.token)))),r&&(n=window.location.port)&&(i=i.replace(n,c.QT)),i}function O(e,n,t){return e.match(/[*,-/]/)?{additionalOffset:0,cronValue:e}:function(e,n,t){var i=t.indexOf(e),r=0;if(n<0)for(var u=0;u>n;u--)0===i?(i=t.length-1,r-=1):i-=1;else if(n>0)for(var l=0;l<n;l++)i===t.length-1?(i=0,r+=1):i+=1;return{additionalOffset:r,cronValue:String(t[i]||e)}}(+e,n,t)}var Z=(0,d.m5)(60),C=(0,d.m5)(24),w=(0,o.Cs)();function k(e,n){if(!e)return e;var t=l()().local().format("Z"),i=t.split(":"),r="-"===t[0],u=3===i[0].length?Number(i[0].slice(1)):Number(i[0]),o=Number(i[1]);(r&&!n||!r&&n)&&(u=-u,o=-o);var c=e.split(" "),a=c[0],s=c[1],d=c[2],p=O(a,o,Z),f=O(s,u+p.additionalOffset,C);if(c[0]=p.cronValue,c[1]=f.cronValue,0!==(null===f||void 0===f?void 0:f.additionalOffset)){var h=O(d,f.additionalOffset,w);c[2]=h.cronValue}return c.join(" ")}},44265:function(e,n,t){t.d(n,{Az:function(){return a},BF:function(){return c},Do:function(){return d},IK:function(){return o},P0:function(){return r},VO:function(){return l},sZ:function(){return s}});var i,r,u=t(82394),l=t(41143).V,o=[l.FAILED,l.COMPLETED,l.RUNNING,l.CANCELLED,l.INITIAL],c=[l.INITIAL,l.RUNNING],a=[l.CANCELLED,l.COMPLETED,l.FAILED],s="__mage_variables",d=(i={},(0,u.Z)(i,l.CANCELLED,"Cancelled"),(0,u.Z)(i,l.COMPLETED,"Done"),(0,u.Z)(i,l.FAILED,"Failed"),(0,u.Z)(i,l.INITIAL,"Ready"),(0,u.Z)(i,l.RUNNING,"Running"),i);!function(e){e.PIPELINE_UUID="pipeline_uuid[]",e.STATUS="status[]",e.TAG="pipeline_tag[]"}(r||(r={}))},30229:function(e,n,t){t.d(n,{PN:function(){return o},TR:function(){return h},U5:function(){return a},Wb:function(){return f},Xm:function(){return u},Z4:function(){return s},fq:function(){return c},gm:function(){return d},kJ:function(){return p}});var i,r,u,l=t(82394),o="__bookmark_values__";!function(e){e.API="api",e.EVENT="event",e.TIME="time"}(u||(u={}));var c,a,s=(i={},(0,l.Z)(i,u.API,(function(){return"API"})),(0,l.Z)(i,u.EVENT,(function(){return"event"})),(0,l.Z)(i,u.TIME,(function(){return"schedule"})),i);!function(e){e.ACTIVE="active",e.INACTIVE="inactive"}(c||(c={})),function(e){e.ONCE="@once",e.HOURLY="@hourly",e.DAILY="@daily",e.WEEKLY="@weekly",e.MONTHLY="@monthly",e.ALWAYS_ON="@always_on"}(a||(a={}));var d,p,f=[a.ONCE,a.HOURLY,a.DAILY,a.WEEKLY,a.MONTHLY];!function(e){e.INTERVAL="frequency[]",e.STATUS="status[]",e.TAG="tag[]",e.TYPE="type[]"}(d||(d={})),function(e){e.CREATED_AT="created_at",e.NAME="name",e.PIPELINE="pipeline_uuid",e.STATUS="status",e.TYPE="schedule_type"}(p||(p={}));var h=(r={},(0,l.Z)(r,p.CREATED_AT,"Created at"),(0,l.Z)(r,p.NAME,"Name"),(0,l.Z)(r,p.PIPELINE,"Pipeline"),(0,l.Z)(r,p.STATUS,"Active"),(0,l.Z)(r,p.TYPE,"Type"),r)},31882:function(e,n,t){var i=t(38626),r=t(71180),u=t(55485),l=t(30160),o=t(44897),c=t(72473),a=t(70515),s=t(61896),d=t(28598),p=i.default.div.withConfig({displayName:"Chip__ChipStyle",componentId:"sc-1ok73g-0"})(["display:inline-block;"," "," "," "," "," ",""],(function(e){return!e.primary&&"\n background-color: ".concat((e.theme.background||o.Z.background).tag,";\n ")}),(function(e){return e.primary&&"\n background-color: ".concat((e.theme.chart||o.Z.chart).primary,";\n ")}),(function(e){return!e.small&&"\n border-radius: ".concat((a.iI+s.Al)/2,"px;\n height: ").concat(1.5*a.iI+s.Al,"px;\n padding: ").concat(a.iI/1.5,"px ").concat(1.25*a.iI,"px;\n ")}),(function(e){return e.small&&"\n border-radius: ".concat((a.iI/2+s.Al)/2,"px;\n height: ").concat(s.Al+a.iI/2+2,"px;\n padding: ").concat(a.iI/4,"px ").concat(a.iI,"px;\n ")}),(function(e){return e.xsmall&&"\n border-radius: ".concat((a.iI/1+s.Al)/1,"px;\n height: ").concat(20,"px;\n padding: 4px 6px;\n ")}),(function(e){return e.border&&"\n border: 1px solid ".concat((e.theme.content||o.Z.content).muted,";\n ")}));n.Z=function(e){var n=e.border,t=e.children,i=e.disabled,o=e.label,s=e.monospace,f=e.onClick,h=e.primary,m=e.small,v=e.xsmall;return(0,d.jsx)(p,{border:n,primary:h,small:m,xsmall:v,children:(0,d.jsx)(r.ZP,{basic:!0,disabled:i,noBackground:!0,noPadding:!0,onClick:f,transparent:!0,children:(0,d.jsxs)(u.ZP,{alignItems:"center",children:[t,o&&(0,d.jsx)(l.ZP,{monospace:s,small:m,xsmall:v,children:o}),!i&&f&&(0,d.jsx)("div",{style:{marginLeft:2}}),!i&&f&&(0,d.jsx)(c.x8,{default:h,muted:!h,size:m?a.iI:1.25*a.iI})]})})})}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4267],{28968:function(n,t,e){e.d(t,{p:function(){return k}});var r=e(82394),o=e(26304),i=e(82684),c=e(38626),a=e(65976),u=e(30160),l=e(44897),d=e(42631),s=e(95363),f=e(61896),p=e(70515),m=e(91437),h=e(28598),g=["afterIcon","afterIconSize","afterIconClick","autoGenerated","beforeIcon","beforeIconSize","buttonAfter","buttonBefore","compact","dynamicSizing","fitContent","fullWidth","input","invertedTheme","label","labelDescription","labelFixed","maxWidth","meta","name","onChange","onClick","passwordrules","placeholder","readOnly","required","setContentOnMount","showLabelRequirement","small","topPosition","type","value","visible","width"];function b(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}function v(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?b(Object(e),!0).forEach((function(t){(0,r.Z)(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):b(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}var y=c.default.div.withConfig({displayName:"InputWrapper__ContainerStyle",componentId:"sc-aepxnk-0"})(["display:flex;align-items:center;.label-enter{opacity:0;transform:translate(0,","px);}.label-enter-active{opacity:1;transform:translate(0,0);transition:all 200ms;}.label-exit{opacity:1;transform:translate(0,0);}.label-exit-active{opacity:0;transform:translate(0,13px);transition:all 100ms;}"," "," "," "," ",""],p.iI,(function(n){return n.visible&&"\n position: relative;\n "}),(function(n){return!n.visible&&"\n opacity: 0;\n position: absolute;\n z-index: 0;\n "}),(function(n){return n.fitContent&&"\n width: fit-content;\n "}),(function(n){return n.maxWidth&&"\n max-width: ".concat(n.maxWidth,"px;\n ")}),(function(n){return n.fullWidth&&"\n width: 100%;\n "})),w=c.default.div.withConfig({displayName:"InputWrapper__LabelContainerStyle",componentId:"sc-aepxnk-1"})(["position:absolute;"," ",""],(function(n){return!n.compact&&!n.beforeIcon&&"\n left: ".concat(2*p.iI,"px;\n top: ").concat(.75*p.iI,"px;\n ")}),(function(n){return!n.compact&&n.beforeIcon&&"\n left: ".concat(5*p.iI,"px;\n top: ").concat(.5*p.iI,"px;\n ")})),x=c.default.div.withConfig({displayName:"InputWrapper__IconContainerStyle",componentId:"sc-aepxnk-2"})(["align-items:center;display:flex;height:100%;position:absolute;top:","px;"," "," "," ",""],(function(n){return n.top?0:d.YF}),(function(n){return n.noPointerEvents&&"\n pointer-events: none;\n "}),(function(n){return!n.compact&&"\n padding: ".concat(p.iI,"px;\n ")}),(function(n){return n.compact&&"\n padding: ".concat(.75*p.iI,"px;\n ")}),(function(n){return n.right&&"\n right: 0;\n "})),O=c.default.div.withConfig({displayName:"InputWrapper__ButtonContainerStyle",componentId:"sc-aepxnk-3"})(["align-items:center;display:flex;height:100%;position:absolute;"," ",""],(function(n){return n.right&&"\n right: 0;\n "}),(function(n){return!n.right&&"\n left: 0;\n "})),k=(0,c.css)([""," "," "," -moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;background-color:transparent;box-sizing:border-box;outline-style:none;"," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," ",""],(0,m.Xh)("appearance","none"),(0,m.Xh)("transition","background 300ms ease 0s, border 300ms ease 0s, color 300ms ease 0s"),(0,m.eR)("200ms box-shadow linear"),u.G,(function(n){return!n.small&&!n.large&&"\n ".concat(f.iD,"\n ")}),(function(n){return n.small&&"\n ".concat(f.HC,"\n line-height: 20px !important;\n ")}),(function(n){return!n.monospace&&"\n font-family: ".concat(s.YC,";\n ")}),(function(n){return n.monospace&&"\n font-family: ".concat(s.Vp,";\n ")}),(function(n){return n.bold&&"\n font-family: ".concat(s.nF,";\n ")}),(function(n){return!n.borderless&&"\n border-radius: ".concat(d.n_,"px;\n border-style: ").concat(d.M8,";\n border-width: ").concat(d.YF,"px};\n ")}),(function(n){return n.noBorderRadiusBottom&&"\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n "}),(function(n){return n.noBorderRadiusBottom&&"\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n "}),(function(n){return n.borderRadius&&"\n border-radius: ".concat(n.borderRadius,"px;\n ")}),(function(n){return n.borderless&&"\n border-style: none;\n "}),(function(n){return n.noBorder&&"\n border-style: none;\n "}),(function(n){return!n.noBorder&&n.noBorderUntilFocus&&"\n border-style: none;\n\n &:focus {\n border-style: ".concat(d.M8,";\n }\n ")}),(function(n){return!n.noBorder&&n.noBorderUntilHover&&"\n border-style: none;\n\n &:hover {\n border-style: ".concat(d.M8,";\n }\n ")}),(function(n){return!n.disabled&&!n.invertedTheme&&"\n border-color: ".concat((n.theme.interactive||l.Z.interactive).defaultBorder,";\n color: ").concat((n.theme.content||l.Z.content).active,";\n\n ::placeholder {\n color: ").concat((n.theme.content||l.Z.content).default,";\n }\n ")}),(function(n){return!n.disabled&&!n.noBackground&&"\n &:hover {\n background-color: ".concat((n.theme.interactive||l.Z.interactive).hoverOverlay,";\n border-color: ").concat((n.theme.interactive||l.Z.interactive).hoverBorder,";\n }\n\n &:focus {\n background-color: ").concat((n.theme.interactive||l.Z.interactive).hoverBackground,";\n border-color: ").concat((n.theme.interactive||l.Z.interactive).focusBorder,";\n color: ").concat((n.theme.content||l.Z.content).active,";\n }\n\n &:active {\n background-color: ").concat((n.theme.interactive||l.Z.interactive).activeOverlay,";\n }\n ")}),(function(n){return n.noBlinkingCursor&&"\n &:focus {\n text-indent: -9999em;\n text-shadow : 9999em 0 0 #000;\n }\n "}),(function(n){return n.shadow&&"\n &:focus {\n box-shadow:\n 0 0 0 1px ".concat((n.theme.interactive||l.Z.interactive).focusBorder," inset,\n 0 0 0 1px ").concat((n.theme.interactive||l.Z.interactive).focusBorder,"\n ;\n }\n ")}),(function(n){return n.disabled&&"\n border-color: ".concat((n.theme.interactive||l.Z.interactive).disabledBorder,";\n color: ").concat((n.theme.content||l.Z.content).disabled,";\n\n ::placeholder {\n color: ").concat((n.theme.content||l.Z.content).disabled,";\n }\n ")}),(function(n){return n.danger&&"\n border-color: ".concat((n.theme.interactive||l.Z.interactive).dangerBorder," !important;\n\n &:active,\n &:focus,\n &:hover {\n border-color: ").concat((n.theme.interactive||l.Z.interactive).dangerBorder," !important;\n }\n ")}),(function(n){return!n.compact&&"\n padding-left: ".concat(2*p.iI,"px;\n padding-right: ").concat(2*p.iI,"px;\n ")}),(function(n){return!n.compact&&!(n.label&&n.isFocused)&&"\n padding-bottom: ".concat(1.5*p.iI,"px;\n padding-top: ").concat(1.5*p.iI,"px;\n ")}),(function(n){return!n.compact&&n.label&&n.isFocused&&"\n padding-bottom: ".concat(.75*p.iI,"px;\n padding-top: ").concat(.75*p.iI+12,"px;\n ")}),(function(n){return n.beforeIcon&&!n.compact&&"\n padding-left: ".concat(5*p.iI,"px !important;\n ")}),(function(n){return n.afterIcon&&!n.compact&&"\n padding-right: ".concat(5*p.iI,"px !important;\n ")}),(function(n){return n.compact&&"\n padding-bottom: ".concat(.75*p.iI,"px;\n padding-left: ").concat(1.25*p.iI,"px;\n padding-right: ").concat(1.25*p.iI,"px;\n padding-top: ").concat(.75*p.iI,"px;\n ")}),(function(n){return n.beforeIcon&&n.compact&&"\n padding-left: ".concat(4*p.iI,"px !important;\n ")}),(function(n){return n.afterIcon&&n.compact&&"\n padding-right: ".concat(4*p.iI,"px !important;\n ")}),(function(n){return!n.inputWidth&&!n.minWidth&&"\n width: 100%;\n "}),(function(n){return n.maxHeight&&"\n max-height: ".concat(n.maxHeight,"px;\n ")}),(function(n){return n.minWidth&&"\n min-width: ".concat(n.minWidth,"px;\n ")}),(function(n){return n.inputWidth&&"\n width: ".concat(n.inputWidth,"px;\n ")}),(function(n){return n.alignCenter&&"\n text-align: center;\n "}),(function(n){return n.alignRight&&"\n text-align: right;\n "}),(function(n){return n.basic&&"\n border: none;\n padding: 0 ".concat(.25*p.iI,"px;\n ")}),(function(n){return n.basicPadding&&"\n border: none;\n padding: ".concat(.5*p.iI,"px ").concat(1*p.iI,"px !important;\n ")}),(function(n){return"undefined"!==typeof n.paddingHorizontal&&"\n padding-left: ".concat(n.paddingHorizontal,"px;\n padding-right: ").concat(n.paddingHorizontal,"px;\n ")}),(function(n){return"undefined"!==typeof n.paddingVertical&&"\n padding-bottom: ".concat(n.paddingVertical,"px;\n padding-top: ").concat(n.paddingVertical,"px;\n ")}),(function(n){return"undefined"!==typeof n.paddingRight&&"\n padding-right: ".concat(n.paddingRight,"px !important;\n ")}),(function(n){return n.basic&&!n.noBackground&&"\n background-color: ".concat((n.theme.monotone||l.Z.monotone).grey500,";\n\n &:active,\n &:focus,\n &:hover {\n background-color: ").concat((n.theme.monotone||l.Z.monotone).grey500,";\n }\n ")}),(function(n){return n.basic&&n.noBackground&&"\n background-color: none;\n\n &:active,\n &:focus,\n &:hover {\n background-color: ".concat((n.theme.monotone||l.Z.monotone).grey200,";\n }\n ")}),(function(n){return n.primary&&!n.swapBackgroundAndTextColor&&"\n border-color: ".concat((n.theme.accent||l.Z.accent).purpleLight,";\n\n &:active,\n &:focus {\n border-color: ").concat((n.theme.accent||l.Z.accent).purple," !important;\n }\n\n &:hover {\n border-color: ").concat((n.theme.chart||l.Z.chart).primary," !important;\n }\n ")}),(function(n){return n.swapBackgroundAndTextColor&&"\n background-color: transparent;\n\n &:active,\n &:focus,\n &:hover {\n background-color: transparent;\n }\n "}),(function(n){return n.earth&&n.swapBackgroundAndTextColor&&"\n color: ".concat((n.theme.brand||l.Z.brand).earth500," !important;\n\n &:active,\n &:focus,\n &:hover {\n color: ").concat((n.theme.brand||l.Z.brand).earth500," !important;\n }\n\n ::placeholder {\n color: ").concat((n.theme.brand||l.Z.brand).earth300,";\n }\n ")}),(function(n){return n.fire&&n.swapBackgroundAndTextColor&&"\n color: ".concat((n.theme.brand||l.Z.brand).fire500," !important;\n\n &:active,\n &:focus,\n &:hover {\n color: ").concat((n.theme.brand||l.Z.brand).fire500," !important;\n }\n\n ::placeholder {\n color: ").concat((n.theme.brand||l.Z.brand).fire300,";\n }\n ")}),(function(n){return n.primary&&n.swapBackgroundAndTextColor&&"\n color: ".concat((n.theme.brand||l.Z.brand).wind500," !important;\n\n &:active,\n &:focus,\n &:hover {\n color: ").concat((n.theme.brand||l.Z.brand).wind500," !important;\n }\n\n ::placeholder {\n color: ").concat((n.theme.brand||l.Z.brand).wind300,";\n }\n ")}),(function(n){return n.warning&&!n.swapBackgroundAndTextColor&&"\n background-color: ".concat((n.theme.brand||l.Z.brand).energy200," !important;\n\n &:active,\n &:focus,\n &:hover {\n background-color: ").concat((n.theme.brand||l.Z.brand).energy200," !important;\n }\n ")}),(function(n){return n.warning&&n.swapBackgroundAndTextColor&&"\n color: ".concat((n.theme.brand||l.Z.brand).energy500," !important;\n\n &:active,\n &:focus,\n &:hover {\n color: ").concat((n.theme.brand||l.Z.brand).energy500," !important;\n }\n ")}),(function(n){return n.water&&n.swapBackgroundAndTextColor&&"\n color: ".concat((n.theme.brand||l.Z.brand).water500," !important;\n\n &:active,\n &:focus,\n &:hover {\n color: ").concat((n.theme.brand||l.Z.brand).water500," !important;\n }\n ")}),(function(n){return n.earth&&n.borderTheme&&"\n &:focus,\n &:active {\n border-color: ".concat((n.theme.brand||l.Z.brand).earth300,";\n border-width: ").concat(d.mP,"px;\n }\n ")}),(function(n){return n.fire&&n.borderTheme&&"\n &:focus,\n &:active {\n border-color: ".concat((n.theme.brand||l.Z.brand).fire300,";\n border-width: ").concat(d.mP,"px;\n }\n ")}),(function(n){return n.water&&n.borderTheme&&"\n &:focus,\n &:active {\n border-color: ".concat((n.theme.brand||l.Z.brand).water300,";\n border-width: ").concat(d.mP,"px;\n }\n ")}),(function(n){return n.wind&&n.borderTheme&&"\n &:focus,\n &:active {\n border-color: ".concat((n.theme.brand||l.Z.brand).wind300,";\n border-width: ").concat(d.mP,"px;\n }\n ")}),(function(n){return n.info&&"\n background-color: ".concat((n.theme.brand||l.Z.brand).water100," !important;\n\n &:active,\n &:focus,\n &:hover {\n background-color: ").concat((n.theme.brand||l.Z.brand).water100," !important;\n }\n ")}),(function(n){return n.negative&&"\n background-color: ".concat((n.theme.accent||l.Z.accent).negativeTransparent," !important;\n\n &:active,\n &:focus,\n &:hover {\n background-color: ").concat((n.theme.accent||l.Z.accent).negativeTransparent," !important;\n }\n ")}),(function(n){return n.defaultColor&&"\n background-color: ".concat((n.theme.interactive||l.Z.interactive).defaultBackground," !important;\n border: ").concat(d.YF,"px ").concat(d.M8," ").concat((n.theme.monotone||l.Z.monotone).black,";\n\n &:active,\n &:focus,\n &:hover {\n background-color: ").concat((n.theme.interactive||l.Z.interactive).hoverBackground," !important;\n }\n ")}),(function(n){return n.greyBorder&&"\n border: ".concat(d.YF,"px ").concat(d.M8," ").concat((n.theme||l.Z).borders.button,";\n ")}),(function(n){return n.width&&"\n width: ".concat(n.width,"px;\n ")}),(function(n){return n.disablePointerEvents&&"\n pointer-events: none;\n "}),(function(n){return"undefined"!==typeof(null===n||void 0===n?void 0:n.buttonAfterWidth)&&"\n padding-right: ".concat(n.buttonAfterWidth,"px !important;\n ")}),(function(n){return"undefined"!==typeof(null===n||void 0===n?void 0:n.buttonBeforeWidth)&&"\n padding-left: ".concat(n.buttonBeforeWidth,"px !important;\n ")})),Z=c.default.div.withConfig({displayName:"InputWrapper__LabelWrapperStyle",componentId:"sc-aepxnk-4"})(["margin-bottom:","px;"],.75*p.iI),j=c.default.span.withConfig({displayName:"InputWrapper__SpanStyle",componentId:"sc-aepxnk-5"})(["position:absolute;opacity:0;"]),I=function(n,t){var e=n.afterIcon,r=n.afterIconSize,c=n.afterIconClick,l=n.autoGenerated,d=n.beforeIcon,s=n.beforeIconSize,f=n.buttonAfter,m=n.buttonBefore,b=n.compact,k=n.dynamicSizing,I=n.fitContent,S=n.fullWidth,C=n.input,D=n.invertedTheme,P=n.label,M=n.labelDescription,Y=n.labelFixed,_=n.maxWidth,B=n.meta,T=n.name,W=n.onChange,H=n.onClick,E=n.passwordrules,z=n.placeholder,A=n.readOnly,L=n.required,N=n.setContentOnMount,F=n.showLabelRequirement,R=n.small,q=n.topPosition,V=n.type,U=n.value,K=n.visible,G=void 0===K||K,X=n.width,J=(0,o.Z)(n,g),$=!!(B&&B.touched&&B.error),Q=(0,i.useRef)(null),nn=(0,i.useRef)(null),tn={muted:!0,size:p.iI*(b?2.5:3)},en=e&&(0,h.jsx)(x,{compact:b,noPointerEvents:!c,right:!0,children:i.cloneElement(e,r?v(v({},tn),{},{size:r}):tn)}),rn=(0,i.useState)(U),on=rn[0],cn=rn[1],an=(0,i.useState)(!1),un=an[0],ln=an[1],dn=(0,i.useState)(!1),sn=dn[0],fn=dn[1],pn=(0,i.useState)(10),mn=pn[0],hn=pn[1],gn=F?F({content:on,isFocused:un}):un||!!on;return(0,i.useEffect)((function(){N&&!on&&U&&cn(U)}),[on,cn,N,U]),(0,i.useEffect)((function(){var n;k&&hn(((null===nn||void 0===nn||null===(n=nn.current)||void 0===n?void 0:n.offsetWidth)||25*p.iI)+p.iI)}),[on,k,t]),(0,h.jsxs)(y,{fitContent:I,fullWidth:S,maxWidth:_,visible:G,children:[(Y||M)&&(0,h.jsxs)(Z,{children:[(0,h.jsx)("div",{children:Y&&(0,h.jsxs)(u.ZP,{bold:!0,inline:!0,inverted:D,small:R,children:[Y," ",L&&(0,h.jsx)(u.ZP,{inline:!0,inverted:D,muted:!D,small:!0,children:"(required)"})," ",l&&(0,h.jsx)(u.ZP,{inline:!0,inverted:D,muted:!D,small:!0,children:"(auto-generated)"})]})}),M&&(0,h.jsx)(u.ZP,{inverted:D,muted:!D,small:!0,children:M})]}),(P||0===P)&&!b&&(0,h.jsx)(a.Z,{classNames:"label",in:(P||0===P)&&gn,timeout:200,unmountOnExit:!0,children:(0,h.jsx)(w,{beforeIcon:d,children:(0,h.jsx)(u.ZP,{muted:!0,xsmall:!0,children:P})})}),m&&(0,h.jsx)(O,{children:m}),d&&(0,h.jsx)(x,{compact:b,top:q,children:i.cloneElement(d,v(v({},s?v(v(v({},tn),null===d||void 0===d?void 0:d.props),{},{size:s}):tn),null===d||void 0===d?void 0:d.props))}),c&&(0,h.jsx)("a",{href:"#",onClick:function(n){n.preventDefault(),c(n,t||Q)},children:en}),!c&&en,f&&(0,h.jsx)(O,{right:!0,children:f}),k&&(0,h.jsx)(j,{ref:nn,children:on}),i.cloneElement(C,{afterIcon:e,beforeIcon:d,compact:b,danger:$,fullWidth:S,hasContent:!!on,isFocused:gn,label:0===P?"0":P,name:T,onBlur:function(n){J.onBlur&&J.onBlur(n),ln(!1),fn(!0)},onChange:function(n){cn(n.target.value),W&&W(n)},onClick:H,onFocus:function(n){J.onFocus&&J.onFocus(n),ln(!0)},passwordrules:E,placeholder:P||0===P?gn?"":P:z,readOnly:A,ref:t||Q,type:V,value:U,width:k?mn:X}),((null===B||void 0===B?void 0:B.touched)&&(null===B||void 0===B?void 0:B.error)||!un&&sn&&!on&&L)&&(0,h.jsx)(u.ZP,{danger:!0,noWrapping:!0,small:!0,style:{marginLeft:12},children:(null===B||void 0===B?void 0:B.error)||"This field is required."})]})};t.Z=i.forwardRef(I)},44085:function(n,t,e){var r=e(82394),o=e(26304),i=e(82684),c=e(38626),a=e(28968),u=e(70987),l=e(70515),d=e(28598),s=["beforeIcon","children","label","multiple","placeholder"];function f(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}function p(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?f(Object(e),!0).forEach((function(t){(0,r.Z)(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):f(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}var m=c.default.select.withConfig({displayName:"Select__SelectStyle",componentId:"sc-q6ezu2-0"})([""," padding-right:","px;&:hover{cursor:pointer;}"," "," "," "," ",""],a.p,3*l.iI,(function(n){return!n.afterIcon&&'\n background-image: url("data:image/svg+xml;utf8,'.concat("\n <svg width='12' height='12' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'>\n <path\n clip-rule='evenodd'\n d='M8.0015 11.7109L14.0022 5.71017L12.588 4.29597L7.99485 8.88914L3.40754 4.34482L2 5.76567L8.0015 11.7109Z'\n fill='%23B4B8C0'\n fill-rule='evenodd'\n />\n </svg>",'");\n background-repeat: no-repeat;\n background-position: -webkit-calc(100% - ').concat(l.iI,"px) center;\n background-position: calc(100% - ").concat(l.iI,"px) center;\n ")}),(function(n){return!n.hasContent&&!n.showPlaceholder&&"\n color: ".concat((n.theme.content||u.Z.content).muted,";\n ")}),(function(n){return n.backgroundColor&&"\n background-color: ".concat(n.backgroundColor,";\n ")}),(function(n){return n.color&&"\n color: ".concat(n.color,";\n ")}),(function(n){return n.showPlaceholder&&"\n color: ".concat((n.theme.content||u.Z.content).inverted,";\n ")})),h=function(n,t){var e=n.beforeIcon,r=n.children,i=n.label,c=n.multiple,u=n.placeholder,l=(0,o.Z)(n,s);return(0,d.jsx)(a.Z,p(p({},l),{},{beforeIcon:e,input:(0,d.jsxs)(m,p(p({multiple:c},l),{},{children:[(i||u)&&(0,d.jsx)("option",{disabled:!(null===l||void 0===l||!l.value),value:"",children:i||u}),r]})),label:i,placeholder:u,ref:t,setContentOnMount:!0,showLabelRequirement:function(n){return!!n.content}}))};t.Z=i.forwardRef(h)},17488:function(n,t,e){var r=e(82394),o=e(91835),i=e(82684),c=e(38626),a=e(28968),u=e(28598);function l(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}function d(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?l(Object(e),!0).forEach((function(t){(0,r.Z)(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):l(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}var s=c.default.input.withConfig({displayName:"TextInput__TextInputStyle",componentId:"sc-1ii4qtc-0"})(["",""],a.p),f=function(n,t){var e=(0,o.Z)({},n);return(0,u.jsx)(a.Z,d(d({},e),{},{input:(0,u.jsx)(s,d({},e)),ref:t}))};t.Z=i.forwardRef(f)},86735:function(n,t,e){e.d(t,{$C:function(){return d},HK:function(){return m},Hk:function(){return l},Hl:function(){return s},IN:function(){return S},Od:function(){return y},Qj:function(){return k},Sm:function(){return I},Tw:function(){return b},VS:function(){return u},YC:function(){return h},fS:function(){return x},jV:function(){return D},m5:function(){return j},mp:function(){return C},mr:function(){return g},oM:function(){return w},ry:function(){return v},sE:function(){return f},tS:function(){return O},vM:function(){return p},w6:function(){return Z}});var r=e(82394),o=e(21831),i=e(42122);function c(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}function a(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?c(Object(e),!0).forEach((function(t){(0,r.Z)(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):c(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}function u(n,t,e){var r=e.slice(0,t),i=e.slice(t,null===e||void 0===e?void 0:e.length),c=[];return c.push.apply(c,(0,o.Z)(r)),c.push(n),c.push.apply(c,(0,o.Z)(i)),c}function l(n,t,e){var r=e.slice();return r.splice(t,0,n),r}function d(n,t,e){var r=t.slice();return f(t,e)||r.push(n),r}function s(n,t){var e=t.slice();return e.push(n),e}function f(n,t){return null===n||void 0===n?void 0:n.find(t)}function p(n,t){return null===n||void 0===n?void 0:n.reduce((function(n,e){var r=t(e);return n[r]||(n[r]=[]),n[r].push(e),n}),{})}function m(n,t){return null===n||void 0===n?void 0:n.reduce((function(n,e){return a(a({},n),{},(0,r.Z)({},t(e),e))}),{})}function h(n,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.ascending,c=void 0===r||r,a=e.absoluteValue,u=void 0!==a&&a,l="string"===typeof t||"number"===typeof t?function(n){return u?Math.abs((0,i.t2)(n,t)):(0,i.t2)(n,t)}:function(n){return u?Math.abs(t(n)):t(n)};return(0,o.Z)(n).sort((function(n,t){var e=0;return l(n)>l(t)?e=c?1:-1:l(n)<l(t)&&(e=c?-1:1),e}))}function g(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=t.ascending,r=void 0===e||e;return n.sort((function(n,t){var e=0;return n[0]>t[0]?e=r?1:-1:n[0]<t[0]&&(e=r?-1:1),e}))}function b(n,t){return n.reduce((function(n,e){return n.map(t).includes(t(e))?n:[].concat((0,o.Z)(n),[e])}),[])}function v(n,t){for(var e=-1,r=n.length;1+e<r;){var o=e+(r-e>>1);t(n[o])?e=o:r=o}return r}function y(n,t){var e=n.findIndex(t);return w(n,e)}function w(n,t){return n.slice(0,t).concat(n.slice(t+1,n.length))}function x(n,t){return n.map((function(n){return String(n)})).join()===t.map((function(n){return String(n)})).join()}function O(n,t){return n>t}function k(n,t){return n<t}function Z(n){return Array(n).fill(0)}function j(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=Array.from(Array(n).keys());return 0!==t&&(e=e.map((function(n){return n+t}))),e}function I(n){return n.reduce((function(n,t){return n+t}),0)}function S(n){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=n.reduce((function(n,t){return n+t}),0)/n.length;return Math.sqrt(n.reduce((function(n,t){return n.concat(Math.pow(t-e,2))}),[]).reduce((function(n,t){return n+t}),0)/(n.length-(t?0:1)))}function C(n){return n[Math.floor(Math.random()*n.length)]}function D(n,t,e){var r=e?t.map(e):t;return n.filter((function(n){var t=e?e(n):n;return r.includes(t)}))}},3917:function(n,t,e){e.d(t,{A5:function(){return E},AY:function(){return z},BL:function(){return y},BP:function(){return H},Cs:function(){return R},JX:function(){return W},Mg:function(){return T},Nx:function(){return b},OC:function(){return v},Oh:function(){return a},Pc:function(){return A},Qf:function(){return D},Ro:function(){return L},TD:function(){return w},Tz:function(){return Y},WT:function(){return B},XG:function(){return C},Y_:function(){return F},_6:function(){return P},d$:function(){return S},e:function(){return _},jV:function(){return N},kE:function(){return k},lE:function(){return x},lJ:function(){return q},mi:function(){return I},n$:function(){return M},n1:function(){return O},s8:function(){return h},vk:function(){return c},yD:function(){return g},yd:function(){return j}});var r,o,i,c,a,u=e(82394),l=e(92083),d=e.n(l),s=e(83991),f=e.n(s),p=(e(15135),e(81728)),m=e(86735);!function(n){n.TODAY="today",n.WEEK="week",n.MONTH="month"}(c||(c={})),function(n){n.LOCAL="LOCAL",n.UTC="UTC"}(a||(a={}));var h=(r={},(0,u.Z)(r,c.TODAY,"today"),(0,u.Z)(r,c.WEEK,"last 7 days"),(0,u.Z)(r,c.MONTH,"last 30 days"),r),g=(o={},(0,u.Z)(o,c.TODAY,0),(0,u.Z)(o,c.WEEK,6),(0,u.Z)(o,c.MONTH,29),o),b="YYYY-MM-DDTHH:mm:ss",v="YYYY-MM-DD HH:mm:ss",y="YYYY-MM-DD HH:mm:ss.SSS",w="YYYY-MM-DD HH:mm",x="YYYY-MM-DD HH:mmZ",O="YYYY-MM-DD",k="YYYY-MM-DDTHH:mm:ss.SSSGMT",Z="MMMM D, YYYY",j=Intl.DateTimeFormat().resolvedOptions().timeZone,I=(i={},(0,u.Z)(i,a.LOCAL,j),(0,u.Z)(i,a.UTC,"Etc/Universal"),i);function S(n,t){var e=t||{},r=e.dayAgo,o=e.includeSeconds,i=e.utcFormat,c=d()(n),a=(null===t||void 0===t?void 0:t.dateFormat)||w;return i&&(c=c.utc()),r&&(c=c.subtract(1,"days")),o&&(a=v),c.format(a)}function C(n,t){return t?d().utc(n).local().format():n}function D(n){var t=n.startDatetime,e=n.endDatetime,r=n.showFullFormat,o=void 0!==r&&r,i=d().utc(t),c=d().utc(e),a=d().duration(c.diff(i));return o?a.format("Y __, M __, W __, D __, H __, m __, s __, S __"):a.asWeeks()>=1?"> 1 week":a.asDays()>=1?a.format("d[d],HH:mm:ss.SS",{trim:!1}):a.format("HH:mm:ss.SS",{trim:!1})}function P(n){var t=d().utc(n),e=d().utc(),r=d().duration(e.diff(t));return r.years()>=1?"".concat((0,p._6)("year",r.years(),!0)," ago"):r.months()>=1?"".concat((0,p._6)("month",r.months(),!0)," ago"):r.days()>=1?"".concat((0,p._6)("day",r.days(),!0)," ago"):r.hours()>=1?"".concat((0,p._6)("hr",r.hours(),!0)," ")+"".concat((0,p._6)("min",r.minutes(),!0)," ago"):"".concat((0,p._6)("min",r.minutes(),!0)," ago")}function M(n){return d().utc(n).local().toDate()}function Y(n){var t=S((new Date).toISOString(),{includeSeconds:!0,utcFormat:!0});return null!==n&&void 0!==n&&n.dateObj?new Date(t):t}function _(n){var t=n.timeZones,e=n.includeSeconds,r=void 0!==e&&e,o=f().utc();return new Map(t.map((function(n){var t=o;if(n===a.LOCAL)t=o.local();return[n,t.format(r?"HH:mm:ss":"HH:mm")]})))}function B(n){return f().tz(I[n]).zoneAbbr()}function T(n,t){return null!==t&&void 0!==t&&t.withMilliseconds?d().unix(n/1e3):d().unix(n)}function W(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return d().unix(n).format(null!==t&&void 0!==t&&t.withSeconds?v:w)}function H(n,t,e){return d()(n).utc().hours(+t).minutes(+e).format()}function E(n){return d()(n).unix()}function z(n,t,e,r){var o="".concat(n.toISOString().split("T")[0]," ").concat(t,":").concat(e);return r?"".concat(o,":").concat(r):o}function A(n){var t=d().unix(+n).utc();return{date:t.toDate(),hour:String(t.hour()),minute:String(t.minute())}}function L(n,t){var e=d().utc(),r=d().utc();null!==t&&void 0!==t&&t.localTime&&(e=d()().local(),r=d()().local());var o=(e=e.subtract(n,"days")).format(Z),i=r.format(Z);return null!==t&&void 0!==t&&t.endDateOnly?i:"".concat(o," - ").concat(i)}function N(n,t){var e=null!==t&&void 0!==t&&t.localTime?d()().local():d().utc();if(n===c.WEEK){var r=g[c.WEEK];e=e.subtract(r,"days")}else if(n===c.MONTH){var o=g[c.MONTH];e=e.subtract(o,"days")}return null!==t&&void 0!==t&&t.isoString?e.startOf("day").toISOString():e.startOf("day").format(v)}function F(){for(var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:90,t=new Date,e=[],r=0;r<n;r++)e.unshift(t.toISOString().split("T")[0]),t.setDate(t.getDate()-1);return e}function R(){var n=new Date,t=String(n.getMonth()+1).padStart(2,"0"),e=n.getFullYear(),r=d()("".concat(e,"-").concat(t),"YYYY-MM").daysInMonth();return(0,m.m5)(r,1)}function q(n){return n.padStart(2,"0")}},3314:function(n,t,e){function r(n){return n.stopPropagation&&n.stopPropagation(),n.preventDefault&&n.preventDefault(),n.cancelBubble=!0,n.returnValue=!1,!1}e.d(t,{j:function(){return r}})},81728:function(n,t,e){e.d(t,{RA:function(){return p},bH:function(){return Y},j3:function(){return O},kC:function(){return m},vg:function(){return x},kE:function(){return D},NR:function(){return M},Mp:function(){return h},Pb:function(){return d},HW:function(){return Z},HD:function(){return s},wX:function(){return g},x6:function(){return b},_6:function(){return v},zf:function(){return k},Y6:function(){return S},Lo:function(){return C},wE:function(){return P},Tz:function(){return j},J3:function(){return y},We:function(){return f},QV:function(){return I},C5:function(){return w}});var r=e(75582),o=e(17717),i=["aged","amazing","ancient","arcane","artistic","astonishing","astral","autumn","beaming","beautiful","billowing","bitter","black","blue","bold","brave","bright","brilliant","broken","carefree","celestial","charismatic","charmed","cheerful","chromatic","cold","colorful","colossal","confident","cool","cosmic","cozy","creative","crimson","crystal","curious","damp","daring","dark","dauntless","dawn","dazzling","delicate","delightful","divine","draconic","dramatic","dreamy","dry","dwarven","eccentric","eclipsing","effortless","elden","electrifying","elemental","elusive","elven","enchanted","enchanting","endearing","endless","energetic","enigmatic","ephemeral","epic","esoteric","ethereal","exciting","exquisite","fabled","falling","fanciful","fancy","fantastic","festive","flawless","floral","friendly","frosty","gallant","genuine","gleaming","gleeful","glorious","golden","good","graceful","gracious","great","grateful","green","happy","harmonic","heroic","hidden","halcyon","honorable","hopeful","humble","hypnotic","holy","icy","idyllic","illuminated","illusory","impressive","indigo","insightful","inspiring","intriguing","intuitive","iridescent","jazzy","jeweled","joyful","joyous","kind","kinetic","knightly","late","legendary","limitless","lingering","little","lively","lucid","luminous","lyrical","magical","magnificent","majestic","marvelous","masterful","meditative","mellow","melodic","melodious","mindful","misty","moonlit","morning","musical","mysterious","mystic","mystical","nameless","natural","nebulous","nimble","noble","old","opaque","organic","original","ornate","outgoing","outstanding","pastel","patient","peaceful","phenomenal","playful","pleasant","poetic","polished","precise","primal","prismatic","pristine","profound","prosperous","proud","purple","quaint","quiet","quixotic","radiant","red","refined","relaxed","remarkable","renewed","resilient","resolute","resonant","resounding","resplendent","restless","revered","rhapsodic","righteous","rough","royal","scenic","serene","shining","shy","silent","silver","sincere","small","snowy","solitary","sorcerous","soulful","sparkling","spectacular","spellbinding","spirited","spiritual","splendid","spring","starry","stellar","still","stylish","sublime","summer","super","superlative","surreal","sweet","symmetrical","thoughtful","thrilling","timeless","towering","tranquil","twilight","uncharted","unifying","unstoppable","uplifting","utopian","valiant","valorous","vast","veiled","verdant","versatile","vibrant","victorious","virtuous","visionary","vivid","volcanic","wandering","wavy","weathered","whimsical","white","wild","windy","winter","wise","wispy","wistful","withered","wizardly","wonderful","wondrous","zesty"],c=["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],a=(e(92083),["alchemist","amulet","ancient","arcanist","artifact","artificer","ash","aspen","astronomer","aurora","bard","bird","bonsai","breeze","brook","butterfly","byte","cedar","charm","cleric","cloud","core","crafter","crystal","dawn","destiny","dew","dream","druid","echo","elixir","elm","enchanter","explorer","familiar","feather","field","fire","firefly","flower","fog","forest","frog","frost","glacier","glade","glitter","grass","grace","grimoire","haiku","haze","healer","herald","herbalist","hill","illusion","inventor","knight","labyrinth","lake","leaf","magic","mana","maple","meadow","melody","merchant","monk","moon","morning","mountain","music","mystic","myth","nexus","night","noble","oak","oracle","paladin","paper","phoenix","pine","pond","portal","potion","prophecy","quest","rain","ranger","realm","resonance","ring","river","rogue","ronin","rune","runesmith","scholar","scroll","sea","shadow","shape","shield","silence","silversmith","sky","smoke","snow","snowflake","song","sorcerer","sound","spell","spellcaster","star","sun","sumo","sunrise","sunset","surf","sword","talisman","thunder","tome","treasure","tree","violet","voice","warrior","water","waterfall","wave","wildflower","willow","wind","wizard"]),u=["0","1","2","3","4","5","6","7","8","9"],l=e(86735);function d(n){if(!n)return!1;try{JSON.parse(n)}catch(t){return!1}return!0}function s(n){return"string"===typeof n}function f(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";return n.split(" ").join(t)}function p(n){return n.split(" ").join("_")}function m(n){return n?n.charAt(0).toUpperCase()+n.slice(1):""}function h(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return String((new Date).getTime()*n)}function g(n){return n.charAt(0).toLowerCase()+n.slice(1)}function b(n){if(null===n||"undefined"===typeof n)return"";var t=n.toString().split("."),e=(0,r.Z)(t,2),o=e[0],i=e[1],c=o.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",");return i?"".concat(c,".").concat(i):c}function v(n,t){var e,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=t,c=void 0!==i&&null!==i;if(c||(i=2),1===i)e=n;else{var a=n.length,u=n[a-1];e="y"===u&&"day"!==n?"".concat(n.slice(0,a-1),"ies"):"".concat(n,"s"===u?"es":"s")}if(c&&!o){var l=r?b(i):i;return"".concat(l," ").concat(e)}return e}function y(n){return null===n||void 0===n?void 0:n.replace(/_/g," ")}function w(n){var t=n.length;return"ies"===n.slice(t-3,t)?"".concat(n.slice(0,t-3),"y"):"es"===n.slice(t-2,t)&&"ces"!==n.slice(t-3,t)?n.slice(0,t-2):n.slice(0,t-1)}function x(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return m(y(n.toLowerCase()))}function O(n){return n.replace(/([A-Z])/g," $1")}function k(n){var t,e=[["second",60],["minute",60],["hour",24],["day",7],["week",4],["month",12],["year",null]];return e.forEach((function(o,i){if(!t){var c=(0,r.Z)(o,2),a=c[0],u=c[1],l=e.slice(0,i).reduce((function(n,t){return n*Number(t[1])}),1);n<Number(u)*l&&(t=v(a,Math.round(n/l)))}})),t}function Z(n){return"undefined"!==typeof n&&null!==n&&!isNaN(n)}function j(n){var t,e=n.match(/\d+(\.?\d*)%/)||[];return Number(null===(t=e[0])||void 0===t?void 0:t.slice(0,-1))}function I(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,e=Math.pow(10,t);return Math.round((n||0)*e)/e}function S(){return"".concat((0,l.mp)(i)," ").concat((0,l.mp)(a))}function C(){return"".concat((0,l.mp)(c)).concat((0,l.mp)(u))}function D(n){return null===n||void 0===n?void 0:n.toLowerCase().replace(/\W+/g,"_")}function P(n){var t,e=n.split(o.sep),r=e[e.length-1].split(".");return t=1===r.length?r[0]:r.slice(0,-1).join("."),e.slice(0,e.length-1).concat(t).join(o.sep)}function M(n){var t=String(n);return n&&(t=n>=36e5?"".concat(I(n/36e5,2),"h"):n>=6e4?"".concat(I(n/6e4,2),"m"):n>=1e3?"".concat(I(n/1e3,2),"s"):"".concat(n,"ms")),t}function Y(){return Array.from(Array(26)).map((function(n,t){return t+65})).map((function(n){return String.fromCharCode(n)}))}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3932],{55283:function(n,t,e){e.d(t,{HC:function(){return y},HS:function(){return g},IN:function(){return f},Kf:function(){return R},Nk:function(){return h},PB:function(){return b},PY:function(){return O},WC:function(){return A},fk:function(){return D},gE:function(){return S},j1:function(){return _},jv:function(){return m},nz:function(){return E},oh:function(){return s},qn:function(){return T},t1:function(){return N},u2:function(){return p},y9:function(){return C}});var o=e(38626),r=e(44897),i=e(44425),c=e(42631),d=e(8059),a=e(70515),u=e(47041),l=e(91437),s=68,f=1.5*a.iI,A=3*a.iI;function p(n){var t=d.eW;return i.tf.CALLBACK===n?t=d.J:i.tf.CHART===n||i.tf.CONDITIONAL===n?t=d.Hv:i.tf.CUSTOM===n?t=d.AK:i.tf.DATA_EXPORTER===n?t=d.Sr:i.tf.DATA_LOADER===n?t=d.R2:i.tf.DBT===n?t=d.J:i.tf.EXTENSION===n?t=d.FI:i.tf.GLOBAL_DATA_PRODUCT===n?t=d.yr:i.tf.SCRATCHPAD===n?t=d.Hv:i.tf.SENSOR===n?t=d.rK:i.tf.MARKDOWN===n?t=d.RK:i.tf.TRANSFORMER===n&&(t=d.eW),t}function T(n,t){var e,o,c=((null===t||void 0===t||null===(e=t.theme)||void 0===e?void 0:e.borders)||r.Z.borders).light,d=((null===t||void 0===t||null===(o=t.theme)||void 0===o?void 0:o.monotone)||r.Z.monotone).grey500,a=t||{},u=a.blockColor,l=a.isSelected,s=a.theme;return l?c=(s||r.Z).content.active:i.tf.TRANSFORMER===n||u===i.Lq.PURPLE?(c=(s||r.Z).accent.purple,d=(s||r.Z).accent.purpleLight):i.tf.DATA_EXPORTER===n||u===i.Lq.YELLOW?(c=(s||r.Z).accent.yellow,d=(s||r.Z).accent.yellowLight):i.tf.DATA_LOADER===n||u===i.Lq.BLUE?(c=(s||r.Z).accent.blue,d=(s||r.Z).accent.blueLight):i.tf.MARKDOWN===n?(c=(s||r.Z).accent.sky,d=(s||r.Z).accent.skyLight):i.tf.SENSOR===n||u===i.Lq.PINK?(c=(s||r.Z).accent.pink,d=(s||r.Z).accent.pinkLight):i.tf.DBT===n?(c=(s||r.Z).accent.dbt,d=(s||r.Z).accent.dbtLight):i.tf.EXTENSION===n||u===i.Lq.TEAL?(c=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).teal,d=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).tealLight):i.tf.CALLBACK===n?(c=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).rose,d=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).roseLight):i.tf.CONDITIONAL===n||i.tf.SCRATCHPAD===n||u===i.Lq.GREY||i.tf.CUSTOM===n&&!u?(c=(s||r.Z).content.default,d=(s||r.Z).accent.contentDefaultTransparent):i.tf.GLOBAL_DATA_PRODUCT!==n||u||(c=(s||r.Z).monotone.white,d=(s||r.Z).monotone.whiteTransparent),{accent:c,accentLight:d}}var R=(0,o.css)([""," "," "," "," "," "," ",""],(0,l.eR)(),(function(n){return!n.selected&&!n.hasError&&"\n border-color: ".concat(T(n.blockType,n).accentLight,";\n ")}),(function(n){return n.selected&&!n.hasError&&"\n border-color: ".concat(T(n.blockType,n).accent,";\n ")}),(function(n){return!n.selected&&n.hasError&&"\n border-color: ".concat((n.theme.accent||r.Z.accent).negativeTransparent,";\n ")}),(function(n){return n.selected&&n.hasError&&"\n border-color: ".concat((n.theme.borders||r.Z.borders).danger,";\n ")}),(function(n){return n.dynamicBlock&&"\n border-style: dashed !important;\n "}),(function(n){return n.dynamicChildBlock&&"\n border-style: dotted !important;\n "})),h=o.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-s5rj34-0"})(["border-radius:","px;position:relative;"],c.n_),O=o.default.div.withConfig({displayName:"indexstyle__HiddenBlockContainerStyle",componentId:"sc-s5rj34-1"})([""," border-radius:","px;border-style:",";border-width:","px;",""],R,c.n_,c.M8,c.mP,(function(n){return"\n background-color: ".concat((n.theme||r.Z).background.content,";\n\n &:hover {\n border-color: ").concat(T(n.blockType,n).accent,";\n }\n ")})),b=o.default.div.withConfig({displayName:"indexstyle__HeaderHorizontalBorder",componentId:"sc-s5rj34-2"})(["",""],(function(n){return"\n border-bottom: 1px solid ".concat((n.theme||r.Z).borders.darkLight,";\n ")})),E=o.default.div.withConfig({displayName:"indexstyle__BlockHeaderStyle",componentId:"sc-s5rj34-3"})([""," border-top-left-radius:","px;border-top-right-radius:","px;border-top-style:",";border-top-width:","px;border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding-bottom:","px;padding-top:","px;"," "," "," ",""],R,c.n_,c.n_,c.M8,c.mP,c.M8,c.mP,c.M8,c.mP,1*a.iI,1*a.iI,(function(n){return"\n background-color: ".concat((n.theme||r.Z).background.dashboard,";\n ")}),(function(n){return"undefined"!==typeof n.zIndex&&null!==n.zIndex&&"\n z-index: ".concat(6+(n.zIndex||0),";\n ")}),(function(n){return!n.noSticky&&"\n // This is to hide the horizontal scrollbar in the block header when sideBySide is enabled,\n // and the screen width is too small.\n position: sticky;\n top: -5px;\n "}),(function(n){return n.noSticky&&"\n ".concat((0,u.y$)(),"\n\n overflow-x: auto;\n overflow-y: visible;\n ")})),g=o.default.div.withConfig({displayName:"indexstyle__SubheaderStyle",componentId:"sc-s5rj34-4"})([""," "," ",""],(function(n){return!n.darkBorder&&"\n border-bottom: 1px solid ".concat((n.theme.borders||r.Z.borders).darkLight,";\n ")}),(function(n){return n.darkBorder&&"\n border-bottom: 1px solid ".concat((n.theme.borders||r.Z.borders).medium,";\n ")}),(function(n){return!n.noBackground&&"\n background-color: ".concat((n.theme||r.Z).background.dashboard,";\n ")})),m=o.default.div.withConfig({displayName:"indexstyle__CodeContainerStyle",componentId:"sc-s5rj34-5"})([""," border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;position:relative;"," "," "," "," .line-numbers{opacity:0;}&.selected{.line-numbers{opacity:1 !important;}}"],R,c.M8,c.mP,c.M8,c.mP,(function(n){return"\n background-color: ".concat((n.theme.background||r.Z.background).codeTextarea,";\n ")}),(function(n){return!n.noPadding&&"\n padding-bottom: ".concat(a.iI,"px;\n padding-top: ").concat(a.iI,"px;\n ")}),(function(n){return n.lightBackground&&"\n background-color: ".concat((n.theme||r.Z).background.content,";\n ")}),(function(n){return!n.hideBorderBottom&&"\n border-bottom-left-radius: ".concat(c.n_,"px;\n border-bottom-right-radius: ").concat(c.n_,"px;\n border-bottom-style: ").concat(c.M8,";\n border-bottom-width: ").concat(c.mP,"px;\n overflow: hidden;\n ")})),S=o.default.div.withConfig({displayName:"indexstyle__BlockDivider",componentId:"sc-s5rj34-6"})(["align-items:center;display:flex;height:","px;justify-content:center;position:relative;z-index:8;&:hover{"," .block-divider-inner{","}}"," "," "," ",""],2*a.iI,(function(n){return n.additionalZIndex>0&&"\n z-index: ".concat(8+n.additionalZIndex,";\n ")}),(function(n){return"\n background-color: ".concat((n.theme.text||r.Z.text).fileBrowser,";\n ")}),(function(n){return!n.height&&"\n height: ".concat(2*a.iI,"px;\n ")}),(function(n){return n.height&&"\n height: ".concat(n.height,"px;\n ")}),(function(n){return!n.bottom&&"\n bottom: ".concat(.5*a.iI,"px;\n ")}),(function(n){return"undefined"!==typeof n.bottom&&"\n bottom: ".concat(n.bottom,"px;\n ")})),N=o.default.div.withConfig({displayName:"indexstyle__BlockDividerInner",componentId:"sc-s5rj34-7"})(["height 1px;width:100%;position:absolute;z-index:-1;"," ",""],(function(n){return!n.top&&"\n top: ".concat(1.5*a.iI,"px;\n ")}),(function(n){return"undefined"!==typeof n.top&&"\n top: ".concat(n.top,"px;\n ")})),C=o.default.div.withConfig({displayName:"indexstyle__CodeHelperStyle",componentId:"sc-s5rj34-8"})([""," ",""],(function(n){return"\n border-bottom: 1px solid ".concat((n.theme.borders||r.Z.borders).medium,";\n padding-left: ").concat(n.normalPadding?a.iI:s,"px;\n ")}),(function(n){return!n.noMargin&&"\n margin-bottom: ".concat(1*a.iI,"px;\n padding-bottom: ").concat(1*a.iI,"px;\n ")})),y=o.default.div.withConfig({displayName:"indexstyle__TimeTrackerStyle",componentId:"sc-s5rj34-9"})(["bottom:","px;left:","px;position:absolute;"],1*a.iI,s),D=o.default.div.withConfig({displayName:"indexstyle__ScrollColunnsContainerStyle",componentId:"sc-s5rj34-10"})(["position:relative;",""],(function(n){return"\n z-index: ".concat((null===n||void 0===n?void 0:n.zIndex)||1,";\n ")})),_=o.default.div.attrs((function(n){var t=n.height,e=n.left,o=n.right,r=n.top;return{style:{position:"fixed",height:t,width:n.width,left:e,right:o,top:r,zIndex:(n.zIndex||0)+2}}})).withConfig({displayName:"indexstyle__ScrollColunnStyle",componentId:"sc-s5rj34-11"})([""])},44425:function(n,t,e){e.d(t,{$W:function(){return h},DA:function(){return T},HX:function(){return g},J8:function(){return E},L8:function(){return d},LE:function(){return f},Lk:function(){return N},Lq:function(){return A},M5:function(){return p},Q3:function(){return O},Qj:function(){return m},Ut:function(){return D},V4:function(){return y},VZ:function(){return b},dO:function(){return s},f2:function(){return C},iZ:function(){return S},t6:function(){return a},tf:function(){return l}});var o,r,i,c,d,a,u=e(82394);!function(n){n.CONDITION="condition",n.DBT_SNAPSHOT="snapshot",n.DYNAMIC="dynamic",n.DYNAMIC_CHILD="dynamic_child",n.REDUCE_OUTPUT="reduce_output",n.REPLICA="replica"}(d||(d={})),function(n){n.MARKDOWN="markdown",n.PYTHON="python",n.R="r",n.SQL="sql",n.YAML="yaml"}(a||(a={}));var l,s=(o={},(0,u.Z)(o,a.MARKDOWN,"MD"),(0,u.Z)(o,a.PYTHON,"PY"),(0,u.Z)(o,a.R,"R"),(0,u.Z)(o,a.SQL,"SQL"),(0,u.Z)(o,a.YAML,"YAML"),o),f=(r={},(0,u.Z)(r,a.MARKDOWN,"Markdown"),(0,u.Z)(r,a.PYTHON,"Python"),(0,u.Z)(r,a.R,"R"),(0,u.Z)(r,a.SQL,"SQL"),(0,u.Z)(r,a.YAML,"YAML"),r);!function(n){n.CALLBACK="callback",n.CHART="chart",n.CONDITIONAL="conditional",n.CUSTOM="custom",n.DATA_EXPORTER="data_exporter",n.DATA_LOADER="data_loader",n.DBT="dbt",n.EXTENSION="extension",n.GLOBAL_DATA_PRODUCT="global_data_product",n.SCRATCHPAD="scratchpad",n.SENSOR="sensor",n.MARKDOWN="markdown",n.TRANSFORMER="transformer"}(l||(l={}));var A,p=[l.CALLBACK,l.CONDITIONAL,l.EXTENSION];!function(n){n.BLUE="blue",n.GREY="grey",n.PINK="pink",n.PURPLE="purple",n.TEAL="teal",n.YELLOW="yellow"}(A||(A={}));var T,R,h=[l.CHART,l.CUSTOM,l.DATA_EXPORTER,l.DATA_LOADER,l.SCRATCHPAD,l.SENSOR,l.MARKDOWN,l.TRANSFORMER],O=[l.CUSTOM,l.DATA_EXPORTER,l.DATA_LOADER,l.SCRATCHPAD,l.SENSOR,l.MARKDOWN,l.TRANSFORMER],b=[l.DATA_EXPORTER,l.DATA_LOADER],E=[l.DATA_EXPORTER,l.DATA_LOADER,l.TRANSFORMER],g=[l.DATA_EXPORTER,l.DATA_LOADER,l.DBT,l.TRANSFORMER],m=[l.CHART,l.SCRATCHPAD,l.SENSOR,l.MARKDOWN],S=[l.CALLBACK,l.CHART,l.EXTENSION,l.SCRATCHPAD,l.MARKDOWN],N=[l.CUSTOM,l.DATA_EXPORTER,l.DATA_LOADER,l.SENSOR,l.TRANSFORMER];!function(n){n.EXECUTED="executed",n.FAILED="failed",n.NOT_EXECUTED="not_executed",n.UPDATED="updated"}(T||(T={})),function(n){n.BLOCK_FILE="block_file",n.CUSTOM_BLOCK_TEMPLATE="custom_block_template",n.MAGE_TEMPLATE="mage_template"}(R||(R={}));var C=[l.CUSTOM,l.DATA_EXPORTER,l.DATA_LOADER,l.TRANSFORMER],y=(i={},(0,u.Z)(i,l.CALLBACK,"Callback"),(0,u.Z)(i,l.CHART,"Chart"),(0,u.Z)(i,l.CONDITIONAL,"Conditional"),(0,u.Z)(i,l.CUSTOM,"Custom"),(0,u.Z)(i,l.DATA_EXPORTER,"Data exporter"),(0,u.Z)(i,l.DATA_LOADER,"Data loader"),(0,u.Z)(i,l.DBT,"DBT"),(0,u.Z)(i,l.EXTENSION,"Extension"),(0,u.Z)(i,l.GLOBAL_DATA_PRODUCT,"Global data product"),(0,u.Z)(i,l.MARKDOWN,"Markdown"),(0,u.Z)(i,l.SCRATCHPAD,"Scratchpad"),(0,u.Z)(i,l.SENSOR,"Sensor"),(0,u.Z)(i,l.TRANSFORMER,"Transformer"),i),D=[l.DATA_LOADER,l.TRANSFORMER,l.DATA_EXPORTER,l.SENSOR];c={},(0,u.Z)(c,l.DATA_EXPORTER,"DE"),(0,u.Z)(c,l.DATA_LOADER,"DL"),(0,u.Z)(c,l.SCRATCHPAD,"SP"),(0,u.Z)(c,l.SENSOR,"SR"),(0,u.Z)(c,l.MARKDOWN,"MD"),(0,u.Z)(c,l.TRANSFORMER,"TF")},72098:function(n,t,e){var o;e.d(t,{U:function(){return o}}),function(n){n.PYSPARK="pysparkkernel",n.PYTHON3="python3"}(o||(o={}))},57653:function(n,t,e){e.d(t,{$1:function(){return T},G7:function(){return O},LM:function(){return b},Mj:function(){return E},QK:function(){return p},RH:function(){return h},a_:function(){return m},fj:function(){return S},kA:function(){return g},qL:function(){return d},r0:function(){return R}});var o,r,i,c,d,a=e(75582),u=e(82394),l=e(72473),s=e(72098);function f(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,o)}return e}function A(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?f(Object(e),!0).forEach((function(t){(0,u.Z)(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):f(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}!function(n){n.INTEGRATION="integration",n.PYTHON="python",n.PYSPARK="pyspark",n.STREAMING="streaming"}(d||(d={}));var p,T,R,h=(o={},(0,u.Z)(o,d.INTEGRATION,"Integration"),(0,u.Z)(o,d.PYTHON,"Python"),(0,u.Z)(o,d.PYSPARK,"PySpark"),(0,u.Z)(o,d.STREAMING,"Streaming"),o),O=(r={},(0,u.Z)(r,d.INTEGRATION,"Integration"),(0,u.Z)(r,d.PYTHON,"Standard"),(0,u.Z)(r,d.PYSPARK,"PySpark"),(0,u.Z)(r,d.STREAMING,"Streaming"),r),b="all",E=(d.PYTHON,d.INTEGRATION,d.STREAMING,i={},(0,u.Z)(i,b,l.ie),(0,u.Z)(i,d.INTEGRATION,l.YC),(0,u.Z)(i,d.PYTHON,l.El),(0,u.Z)(i,d.STREAMING,l.dB),i);!function(n){n.ACTIVE="active",n.INACTIVE="inactive",n.NO_SCHEDULES="no_schedules",n.RETRY="retry",n.RETRY_INCOMPLETE_BLOCK_RUNS="retry_incomplete_block_runs"}(p||(p={})),function(n){n.GROUP="group_by",n.HISTORY_DAYS="from_history_days",n.NO_TAGS="no_tags",n.STATUS="status[]",n.TAG="tag[]",n.TYPE="type[]"}(T||(T={})),function(n){n.STATUS="status",n.TAG="tag",n.TYPE="type"}(R||(R={}));var g=[p.ACTIVE,p.INACTIVE,p.NO_SCHEDULES],m=(c={},(0,u.Z)(c,d.PYTHON,s.U.PYTHON3),(0,u.Z)(c,d.PYSPARK,s.U.PYSPARK),c),S=Object.entries(m).reduce((function(n,t){var e=(0,a.Z)(t,2),o=e[0],r=e[1];return A(A({},n),{},(0,u.Z)({},r,o))}),{})},90299:function(n,t,e){e.d(t,{Z:function(){return b}});var o=e(82684),r=e(71180),i=e(55485),c=e(64888),d=e(38276),a=e(30160),u=e(8059),l=e(38626),s=e(44897),f=e(70515),A=e(47041),p=l.default.div.withConfig({displayName:"indexstyle__TabsContainerStyle",componentId:"sc-segf7l-0"})(["padding-left:","px;padding-right:","px;"," "," ",""],f.cd*f.iI,f.cd*f.iI,(function(n){return n.noPadding&&"\n padding: 0;\n "}),(function(n){return n.allowScroll&&"\n overflow: auto;\n "}),A.w5),T=l.default.div.withConfig({displayName:"indexstyle__SelectedUnderlineStyle",componentId:"sc-segf7l-1"})(["border-radius:6px;height:","px;"," "," ",""],2,(function(n){return!n.selected&&"\n background-color: transparent;\n "}),(function(n){return n.selected&&!n.backgroundColor&&"\n background-color: ".concat((n.theme||s.Z).borders.darkLight,";\n ")}),(function(n){return n.selected&&n.backgroundColor&&"\n background-color: ".concat(n.backgroundColor,";\n ")})),R=e(3314),h=e(28598);function O(n,t){var e=n.allowScroll,l=n.compact,s=n.contained,A=n.noPadding,O=n.onClickTab,b=n.regularSizeText,E=n.selectedTabUUID,g=n.small,m=n.tabs,S=n.underlineColor,N=n.underlineStyle,C=(0,o.useMemo)((function(){var n=m.length,t=[];return m.forEach((function(e,o){var s=e.Icon,A=e.IconSelected,p=e.label,m=e.uuid,C=m===E,y=C&&A||s,D=p?p():m,_=(0,h.jsxs)(i.ZP,{alignItems:"center",children:[y&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(y,{default:!C,size:2*f.iI}),(0,h.jsx)(d.Z,{mr:1})]}),(0,h.jsx)(a.ZP,{bold:!0,default:!C,noWrapping:!0,small:!b,children:D})]});o>=1&&n>=2&&t.push((0,h.jsx)("div",{style:{marginLeft:(b?2:1.5)*f.iI}},"spacing-".concat(m))),C&&!N?t.push((0,h.jsx)(c.Z,{backgroundGradient:u.yr,backgroundPanel:!0,borderLess:!0,borderWidth:2,compact:l||g,onClick:function(n){(0,R.j)(n),O(e)},paddingUnitsHorizontal:1.75,paddingUnitsVertical:1.25,small:g,children:_},m)):t.push((0,h.jsxs)(i.ZP,{flexDirection:"column",style:{paddingLeft:2,paddingRight:2,paddingBottom:N?0:2,paddingTop:N?0:2},children:[(0,h.jsxs)(r.ZP,{borderLess:!0,compact:l||g,default:!0,noBackground:N,noPadding:N,onClick:function(n){(0,R.j)(n),O(e)},outline:!N,small:g,children:[!N&&_,N&&(0,h.jsx)("div",{style:{paddingBottom:(l||g?f.iI/2:f.iI)+2,paddingTop:(l||g?f.iI/2:f.iI)+2+2},children:_})]}),N&&(0,h.jsx)(T,{backgroundColor:S,selected:C})]},"button-tab-".concat(m)))})),t}),[l,O,E,g,m,N]),y=(0,h.jsx)(i.ZP,{alignItems:"center",children:C});return s?y:(0,h.jsx)(p,{allowScroll:e,noPadding:A,ref:t,children:y})}var b=o.forwardRef(O)}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4366],{55283:function(n,t,e){e.d(t,{HC:function(){return x},HS:function(){return E},IN:function(){return f},Kf:function(){return h},Nk:function(){return R},PB:function(){return m},PY:function(){return b},WC:function(){return p},fk:function(){return L},gE:function(){return C},j1:function(){return _},jv:function(){return O},nz:function(){return g},oh:function(){return s},qn:function(){return T},t1:function(){return D},u2:function(){return A},y9:function(){return S}});var o=e(38626),r=e(44897),i=e(44425),c=e(42631),d=e(8059),a=e(70515),u=e(47041),l=e(91437),s=68,f=1.5*a.iI,p=3*a.iI;function A(n){var t=d.eW;return i.tf.CALLBACK===n?t=d.J:i.tf.CHART===n||i.tf.CONDITIONAL===n?t=d.Hv:i.tf.CUSTOM===n?t=d.AK:i.tf.DATA_EXPORTER===n?t=d.Sr:i.tf.DATA_LOADER===n?t=d.R2:i.tf.DBT===n?t=d.J:i.tf.EXTENSION===n?t=d.FI:i.tf.GLOBAL_DATA_PRODUCT===n?t=d.yr:i.tf.SCRATCHPAD===n?t=d.Hv:i.tf.SENSOR===n?t=d.rK:i.tf.MARKDOWN===n?t=d.RK:i.tf.TRANSFORMER===n&&(t=d.eW),t}function T(n,t){var e,o,c=((null===t||void 0===t||null===(e=t.theme)||void 0===e?void 0:e.borders)||r.Z.borders).light,d=((null===t||void 0===t||null===(o=t.theme)||void 0===o?void 0:o.monotone)||r.Z.monotone).grey500,a=t||{},u=a.blockColor,l=a.isSelected,s=a.theme;return l?c=(s||r.Z).content.active:i.tf.TRANSFORMER===n||u===i.Lq.PURPLE?(c=(s||r.Z).accent.purple,d=(s||r.Z).accent.purpleLight):i.tf.DATA_EXPORTER===n||u===i.Lq.YELLOW?(c=(s||r.Z).accent.yellow,d=(s||r.Z).accent.yellowLight):i.tf.DATA_LOADER===n||u===i.Lq.BLUE?(c=(s||r.Z).accent.blue,d=(s||r.Z).accent.blueLight):i.tf.MARKDOWN===n?(c=(s||r.Z).accent.sky,d=(s||r.Z).accent.skyLight):i.tf.SENSOR===n||u===i.Lq.PINK?(c=(s||r.Z).accent.pink,d=(s||r.Z).accent.pinkLight):i.tf.DBT===n?(c=(s||r.Z).accent.dbt,d=(s||r.Z).accent.dbtLight):i.tf.EXTENSION===n||u===i.Lq.TEAL?(c=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).teal,d=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).tealLight):i.tf.CALLBACK===n?(c=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).rose,d=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).roseLight):i.tf.CONDITIONAL===n||i.tf.SCRATCHPAD===n||u===i.Lq.GREY||i.tf.CUSTOM===n&&!u?(c=(s||r.Z).content.default,d=(s||r.Z).accent.contentDefaultTransparent):i.tf.GLOBAL_DATA_PRODUCT!==n||u||(c=(s||r.Z).monotone.white,d=(s||r.Z).monotone.whiteTransparent),{accent:c,accentLight:d}}var h=(0,o.css)([""," "," "," "," "," "," ",""],(0,l.eR)(),(function(n){return!n.selected&&!n.hasError&&"\n border-color: ".concat(T(n.blockType,n).accentLight,";\n ")}),(function(n){return n.selected&&!n.hasError&&"\n border-color: ".concat(T(n.blockType,n).accent,";\n ")}),(function(n){return!n.selected&&n.hasError&&"\n border-color: ".concat((n.theme.accent||r.Z.accent).negativeTransparent,";\n ")}),(function(n){return n.selected&&n.hasError&&"\n border-color: ".concat((n.theme.borders||r.Z.borders).danger,";\n ")}),(function(n){return n.dynamicBlock&&"\n border-style: dashed !important;\n "}),(function(n){return n.dynamicChildBlock&&"\n border-style: dotted !important;\n "})),R=o.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-s5rj34-0"})(["border-radius:","px;position:relative;"],c.n_),b=o.default.div.withConfig({displayName:"indexstyle__HiddenBlockContainerStyle",componentId:"sc-s5rj34-1"})([""," border-radius:","px;border-style:",";border-width:","px;",""],h,c.n_,c.M8,c.mP,(function(n){return"\n background-color: ".concat((n.theme||r.Z).background.content,";\n\n &:hover {\n border-color: ").concat(T(n.blockType,n).accent,";\n }\n ")})),m=o.default.div.withConfig({displayName:"indexstyle__HeaderHorizontalBorder",componentId:"sc-s5rj34-2"})(["",""],(function(n){return"\n border-bottom: 1px solid ".concat((n.theme||r.Z).borders.darkLight,";\n ")})),g=o.default.div.withConfig({displayName:"indexstyle__BlockHeaderStyle",componentId:"sc-s5rj34-3"})([""," border-top-left-radius:","px;border-top-right-radius:","px;border-top-style:",";border-top-width:","px;border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding-bottom:","px;padding-top:","px;"," "," "," ",""],h,c.n_,c.n_,c.M8,c.mP,c.M8,c.mP,c.M8,c.mP,1*a.iI,1*a.iI,(function(n){return"\n background-color: ".concat((n.theme||r.Z).background.dashboard,";\n ")}),(function(n){return"undefined"!==typeof n.zIndex&&null!==n.zIndex&&"\n z-index: ".concat(6+(n.zIndex||0),";\n ")}),(function(n){return!n.noSticky&&"\n // This is to hide the horizontal scrollbar in the block header when sideBySide is enabled,\n // and the screen width is too small.\n position: sticky;\n top: -5px;\n "}),(function(n){return n.noSticky&&"\n ".concat((0,u.y$)(),"\n\n overflow-x: auto;\n overflow-y: visible;\n ")})),E=o.default.div.withConfig({displayName:"indexstyle__SubheaderStyle",componentId:"sc-s5rj34-4"})([""," "," ",""],(function(n){return!n.darkBorder&&"\n border-bottom: 1px solid ".concat((n.theme.borders||r.Z.borders).darkLight,";\n ")}),(function(n){return n.darkBorder&&"\n border-bottom: 1px solid ".concat((n.theme.borders||r.Z.borders).medium,";\n ")}),(function(n){return!n.noBackground&&"\n background-color: ".concat((n.theme||r.Z).background.dashboard,";\n ")})),O=o.default.div.withConfig({displayName:"indexstyle__CodeContainerStyle",componentId:"sc-s5rj34-5"})([""," border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;position:relative;"," "," "," "," .line-numbers{opacity:0;}&.selected{.line-numbers{opacity:1 !important;}}"],h,c.M8,c.mP,c.M8,c.mP,(function(n){return"\n background-color: ".concat((n.theme.background||r.Z.background).codeTextarea,";\n ")}),(function(n){return!n.noPadding&&"\n padding-bottom: ".concat(a.iI,"px;\n padding-top: ").concat(a.iI,"px;\n ")}),(function(n){return n.lightBackground&&"\n background-color: ".concat((n.theme||r.Z).background.content,";\n ")}),(function(n){return!n.hideBorderBottom&&"\n border-bottom-left-radius: ".concat(c.n_,"px;\n border-bottom-right-radius: ").concat(c.n_,"px;\n border-bottom-style: ").concat(c.M8,";\n border-bottom-width: ").concat(c.mP,"px;\n overflow: hidden;\n ")})),C=o.default.div.withConfig({displayName:"indexstyle__BlockDivider",componentId:"sc-s5rj34-6"})(["align-items:center;display:flex;height:","px;justify-content:center;position:relative;z-index:8;&:hover{"," .block-divider-inner{","}}"," "," "," ",""],2*a.iI,(function(n){return n.additionalZIndex>0&&"\n z-index: ".concat(8+n.additionalZIndex,";\n ")}),(function(n){return"\n background-color: ".concat((n.theme.text||r.Z.text).fileBrowser,";\n ")}),(function(n){return!n.height&&"\n height: ".concat(2*a.iI,"px;\n ")}),(function(n){return n.height&&"\n height: ".concat(n.height,"px;\n ")}),(function(n){return!n.bottom&&"\n bottom: ".concat(.5*a.iI,"px;\n ")}),(function(n){return"undefined"!==typeof n.bottom&&"\n bottom: ".concat(n.bottom,"px;\n ")})),D=o.default.div.withConfig({displayName:"indexstyle__BlockDividerInner",componentId:"sc-s5rj34-7"})(["height 1px;width:100%;position:absolute;z-index:-1;"," ",""],(function(n){return!n.top&&"\n top: ".concat(1.5*a.iI,"px;\n ")}),(function(n){return"undefined"!==typeof n.top&&"\n top: ".concat(n.top,"px;\n ")})),S=o.default.div.withConfig({displayName:"indexstyle__CodeHelperStyle",componentId:"sc-s5rj34-8"})([""," ",""],(function(n){return"\n border-bottom: 1px solid ".concat((n.theme.borders||r.Z.borders).medium,";\n padding-left: ").concat(n.normalPadding?a.iI:s,"px;\n ")}),(function(n){return!n.noMargin&&"\n margin-bottom: ".concat(1*a.iI,"px;\n padding-bottom: ").concat(1*a.iI,"px;\n ")})),x=o.default.div.withConfig({displayName:"indexstyle__TimeTrackerStyle",componentId:"sc-s5rj34-9"})(["bottom:","px;left:","px;position:absolute;"],1*a.iI,s),L=o.default.div.withConfig({displayName:"indexstyle__ScrollColunnsContainerStyle",componentId:"sc-s5rj34-10"})(["position:relative;",""],(function(n){return"\n z-index: ".concat((null===n||void 0===n?void 0:n.zIndex)||1,";\n ")})),_=o.default.div.attrs((function(n){var t=n.height,e=n.left,o=n.right,r=n.top;return{style:{position:"fixed",height:t,width:n.width,left:e,right:o,top:r,zIndex:(n.zIndex||0)+2}}})).withConfig({displayName:"indexstyle__ScrollColunnStyle",componentId:"sc-s5rj34-11"})([""])},44425:function(n,t,e){e.d(t,{$W:function(){return R},DA:function(){return T},HX:function(){return E},J8:function(){return g},L8:function(){return d},LE:function(){return f},Lk:function(){return D},Lq:function(){return p},M5:function(){return A},Q3:function(){return b},Qj:function(){return O},Ut:function(){return L},V4:function(){return x},VZ:function(){return m},dO:function(){return s},f2:function(){return S},iZ:function(){return C},t6:function(){return a},tf:function(){return l}});var o,r,i,c,d,a,u=e(82394);!function(n){n.CONDITION="condition",n.DBT_SNAPSHOT="snapshot",n.DYNAMIC="dynamic",n.DYNAMIC_CHILD="dynamic_child",n.REDUCE_OUTPUT="reduce_output",n.REPLICA="replica"}(d||(d={})),function(n){n.MARKDOWN="markdown",n.PYTHON="python",n.R="r",n.SQL="sql",n.YAML="yaml"}(a||(a={}));var l,s=(o={},(0,u.Z)(o,a.MARKDOWN,"MD"),(0,u.Z)(o,a.PYTHON,"PY"),(0,u.Z)(o,a.R,"R"),(0,u.Z)(o,a.SQL,"SQL"),(0,u.Z)(o,a.YAML,"YAML"),o),f=(r={},(0,u.Z)(r,a.MARKDOWN,"Markdown"),(0,u.Z)(r,a.PYTHON,"Python"),(0,u.Z)(r,a.R,"R"),(0,u.Z)(r,a.SQL,"SQL"),(0,u.Z)(r,a.YAML,"YAML"),r);!function(n){n.CALLBACK="callback",n.CHART="chart",n.CONDITIONAL="conditional",n.CUSTOM="custom",n.DATA_EXPORTER="data_exporter",n.DATA_LOADER="data_loader",n.DBT="dbt",n.EXTENSION="extension",n.GLOBAL_DATA_PRODUCT="global_data_product",n.SCRATCHPAD="scratchpad",n.SENSOR="sensor",n.MARKDOWN="markdown",n.TRANSFORMER="transformer"}(l||(l={}));var p,A=[l.CALLBACK,l.CONDITIONAL,l.EXTENSION];!function(n){n.BLUE="blue",n.GREY="grey",n.PINK="pink",n.PURPLE="purple",n.TEAL="teal",n.YELLOW="yellow"}(p||(p={}));var T,h,R=[l.CHART,l.CUSTOM,l.DATA_EXPORTER,l.DATA_LOADER,l.SCRATCHPAD,l.SENSOR,l.MARKDOWN,l.TRANSFORMER],b=[l.CUSTOM,l.DATA_EXPORTER,l.DATA_LOADER,l.SCRATCHPAD,l.SENSOR,l.MARKDOWN,l.TRANSFORMER],m=[l.DATA_EXPORTER,l.DATA_LOADER],g=[l.DATA_EXPORTER,l.DATA_LOADER,l.TRANSFORMER],E=[l.DATA_EXPORTER,l.DATA_LOADER,l.DBT,l.TRANSFORMER],O=[l.CHART,l.SCRATCHPAD,l.SENSOR,l.MARKDOWN],C=[l.CALLBACK,l.CHART,l.EXTENSION,l.SCRATCHPAD,l.MARKDOWN],D=[l.CUSTOM,l.DATA_EXPORTER,l.DATA_LOADER,l.SENSOR,l.TRANSFORMER];!function(n){n.EXECUTED="executed",n.FAILED="failed",n.NOT_EXECUTED="not_executed",n.UPDATED="updated"}(T||(T={})),function(n){n.BLOCK_FILE="block_file",n.CUSTOM_BLOCK_TEMPLATE="custom_block_template",n.MAGE_TEMPLATE="mage_template"}(h||(h={}));var S=[l.CUSTOM,l.DATA_EXPORTER,l.DATA_LOADER,l.TRANSFORMER],x=(i={},(0,u.Z)(i,l.CALLBACK,"Callback"),(0,u.Z)(i,l.CHART,"Chart"),(0,u.Z)(i,l.CONDITIONAL,"Conditional"),(0,u.Z)(i,l.CUSTOM,"Custom"),(0,u.Z)(i,l.DATA_EXPORTER,"Data exporter"),(0,u.Z)(i,l.DATA_LOADER,"Data loader"),(0,u.Z)(i,l.DBT,"DBT"),(0,u.Z)(i,l.EXTENSION,"Extension"),(0,u.Z)(i,l.GLOBAL_DATA_PRODUCT,"Global data product"),(0,u.Z)(i,l.MARKDOWN,"Markdown"),(0,u.Z)(i,l.SCRATCHPAD,"Scratchpad"),(0,u.Z)(i,l.SENSOR,"Sensor"),(0,u.Z)(i,l.TRANSFORMER,"Transformer"),i),L=[l.DATA_LOADER,l.TRANSFORMER,l.DATA_EXPORTER,l.SENSOR];c={},(0,u.Z)(c,l.DATA_EXPORTER,"DE"),(0,u.Z)(c,l.DATA_LOADER,"DL"),(0,u.Z)(c,l.SCRATCHPAD,"SP"),(0,u.Z)(c,l.SENSOR,"SR"),(0,u.Z)(c,l.MARKDOWN,"MD"),(0,u.Z)(c,l.TRANSFORMER,"TF")},90299:function(n,t,e){e.d(t,{Z:function(){return m}});var o=e(82684),r=e(71180),i=e(55485),c=e(64888),d=e(38276),a=e(30160),u=e(8059),l=e(38626),s=e(44897),f=e(70515),p=e(47041),A=l.default.div.withConfig({displayName:"indexstyle__TabsContainerStyle",componentId:"sc-segf7l-0"})(["padding-left:","px;padding-right:","px;"," "," ",""],f.cd*f.iI,f.cd*f.iI,(function(n){return n.noPadding&&"\n padding: 0;\n "}),(function(n){return n.allowScroll&&"\n overflow: auto;\n "}),p.w5),T=l.default.div.withConfig({displayName:"indexstyle__SelectedUnderlineStyle",componentId:"sc-segf7l-1"})(["border-radius:6px;height:","px;"," "," ",""],2,(function(n){return!n.selected&&"\n background-color: transparent;\n "}),(function(n){return n.selected&&!n.backgroundColor&&"\n background-color: ".concat((n.theme||s.Z).accent.blue,";\n ")}),(function(n){return n.selected&&n.backgroundColor&&"\n background-color: ".concat(n.backgroundColor,";\n ")})),h=e(3314),R=e(28598);function b(n,t){var e=n.allowScroll,l=n.compact,s=n.contained,p=n.noPadding,b=n.onClickTab,m=n.regularSizeText,g=n.selectedTabUUID,E=n.small,O=n.tabs,C=n.underlineColor,D=n.underlineStyle,S=n.uppercase,x=void 0===S||S,L=(0,o.useMemo)((function(){var n=O.length,t=[];return O.forEach((function(e,o){var s=e.Icon,p=e.IconSelected,A=e.label,O=e.uuid,S=O===g,L=S&&p||s,_=A?A():O,y=(0,R.jsxs)(i.ZP,{alignItems:"center",children:[L&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(L,{default:!S,size:2*f.iI}),(0,R.jsx)(d.Z,{mr:1})]}),(0,R.jsx)(a.ZP,{bold:!0,default:!S,noWrapping:!0,small:!m,uppercase:x,children:_})]});o>=1&&n>=2&&t.push((0,R.jsx)("div",{style:{marginLeft:(m?2:1.5)*f.iI}},"spacing-".concat(O))),S&&!D?t.push((0,R.jsx)(c.Z,{backgroundGradient:u.yr,backgroundPanel:!0,borderLess:!0,borderWidth:2,compact:l||E,onClick:function(n){(0,h.j)(n),b(e)},paddingUnitsHorizontal:1.75,paddingUnitsVertical:1.25,small:E,children:y},O)):t.push((0,R.jsxs)(i.ZP,{flexDirection:"column",style:{paddingLeft:2,paddingRight:2,paddingBottom:D?0:2,paddingTop:D?0:2},children:[(0,R.jsxs)(r.ZP,{borderLess:!0,compact:l||E,default:!0,noBackground:D,noPadding:D,onClick:function(n){(0,h.j)(n),b(e)},outline:!D,small:E,children:[!D&&y,D&&(0,R.jsx)("div",{style:{paddingBottom:(l||E?f.iI/2:f.iI)+2,paddingTop:(l||E?f.iI/2:f.iI)+2+2},children:y})]}),D&&(0,R.jsx)(T,{backgroundColor:C,selected:S})]},"button-tab-".concat(O)))})),t}),[l,b,g,E,O,D]),_=(0,R.jsx)(i.ZP,{alignItems:"center",children:L});return s?_:(0,R.jsx)(A,{allowScroll:e,noPadding:p,ref:t,children:_})}var m=o.forwardRef(b)}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4783],{52136:function(e,r,n){n.d(r,{Z:function(){return v}});var t=n(47329),a=n.n(t),i=n(82684),l=n(63588),c=n.n(l),o=n(5237),u=n(29989),f=n(81352),s=n(46119),d=n(88543),y=n(12765),h=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function p(){return p=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e},p.apply(this,arguments)}function v(e){var r=e.top,n=void 0===r?0:r,t=e.left,a=void 0===t?0:t,l=e.scale,v=e.height,m=e.stroke,x=void 0===m?"#eaf0f6":m,b=e.strokeWidth,g=void 0===b?1:b,k=e.strokeDasharray,O=e.className,Z=e.numTicks,E=void 0===Z?10:Z,w=e.lineStyle,j=e.offset,N=e.tickValues,S=e.children,T=function(e,r){if(null==e)return{};var n,t,a={},i=Object.keys(e);for(t=0;t<i.length;t++)n=i[t],r.indexOf(n)>=0||(a[n]=e[n]);return a}(e,h),R=null!=N?N:(0,s.Z)(l,E),P=(null!=j?j:0)+(0,y.Z)(l)/2,q=R.map((function(e,r){var n,t=(null!=(n=(0,d.Z)(l(e)))?n:0)+P;return{index:r,from:new f.Z({x:t,y:0}),to:new f.Z({x:t,y:v})}}));return i.createElement(u.Z,{className:c()("visx-columns",O),top:n,left:a},S?S({lines:q}):q.map((function(e){var r=e.from,n=e.to,t=e.index;return i.createElement(o.Z,p({key:"column-line-"+t,from:r,to:n,stroke:x,strokeWidth:g,strokeDasharray:k,style:w},T))})))}v.propTypes={tickValues:a().array,height:a().number.isRequired}},95422:function(e,r,n){n.d(r,{Z:function(){return s}});var t=n(82684),a=n(63588),i=n.n(a),l=n(29989),c=n(65743),o=n(53989),u=["data","className","top","left","x0","x0Scale","x1Scale","yScale","color","keys","height","children"];function f(){return f=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e},f.apply(this,arguments)}function s(e){var r=e.data,n=e.className,a=e.top,s=e.left,d=e.x0,y=e.x0Scale,h=e.x1Scale,p=e.yScale,v=e.color,m=e.keys,x=e.height,b=e.children,g=function(e,r){if(null==e)return{};var n,t,a={},i=Object.keys(e);for(t=0;t<i.length;t++)n=i[t],r.indexOf(n)>=0||(a[n]=e[n]);return a}(e,u),k=(0,o.Z)(h),O=r.map((function(e,r){return{index:r,x0:y(d(e)),bars:m.map((function(r,n){var t=e[r];return{index:n,key:r,value:t,width:k,x:h(r)||0,y:p(t)||0,color:v(r,n),height:x-(p(t)||0)}}))}}));return b?t.createElement(t.Fragment,null,b(O)):t.createElement(l.Z,{className:i()("visx-bar-group",n),top:a,left:s},O.map((function(e){return t.createElement(l.Z,{key:"bar-group-"+e.index+"-"+e.x0,left:e.x0},e.bars.map((function(r){return t.createElement(c.Z,f({key:"bar-group-bar-"+e.index+"-"+r.index+"-"+r.value+"-"+r.key,x:r.x,y:r.y,width:r.width,height:r.height,fill:r.color},g))})))})))}},39048:function(e,r,n){n.d(r,{Z:function(){return s}});var t=n(82684),a=n(63588),i=n.n(a),l=n(29989),c=n(65743),o=n(53989),u=["data","className","top","left","x","y0","y0Scale","y1Scale","xScale","color","keys","width","children"];function f(){return f=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e},f.apply(this,arguments)}function s(e){var r=e.data,n=e.className,a=e.top,s=e.left,d=e.x,y=void 0===d?function(){return 0}:d,h=e.y0,p=e.y0Scale,v=e.y1Scale,m=e.xScale,x=e.color,b=e.keys,g=(e.width,e.children),k=function(e,r){if(null==e)return{};var n,t,a={},i=Object.keys(e);for(t=0;t<i.length;t++)n=i[t],r.indexOf(n)>=0||(a[n]=e[n]);return a}(e,u),O=(0,o.Z)(v),Z=r.map((function(e,r){return{index:r,y0:p(h(e))||0,bars:b.map((function(r,n){var t=e[r];return{index:n,key:r,value:t,height:O,x:y(t)||0,y:v(r)||0,color:x(r,n),width:m(t)||0}}))}}));return g?t.createElement(t.Fragment,null,g(Z)):t.createElement(l.Z,{className:i()("visx-bar-group-horizontal",n),top:a,left:s},Z.map((function(e){return t.createElement(l.Z,{key:"bar-group-"+e.index+"-"+e.y0,top:e.y0},e.bars.map((function(r){return t.createElement(c.Z,f({key:"bar-group-bar-"+e.index+"-"+r.index+"-"+r.value+"-"+r.key,x:r.x,y:r.y,width:r.width,height:r.height,fill:r.color},k))})))})))}},85587:function(e,r,n){n.d(r,{Z:function(){return u}});var t=n(82684),a=n(63588),i=n.n(a),l=n(39309),c=["children","data","x","y","fill","className","curve","innerRef","defined"];function o(){return o=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e},o.apply(this,arguments)}function u(e){var r=e.children,n=e.data,a=void 0===n?[]:n,u=e.x,f=e.y,s=e.fill,d=void 0===s?"transparent":s,y=e.className,h=e.curve,p=e.innerRef,v=e.defined,m=void 0===v?function(){return!0}:v,x=function(e,r){if(null==e)return{};var n,t,a={},i=Object.keys(e);for(t=0;t<i.length;t++)n=i[t],r.indexOf(n)>=0||(a[n]=e[n]);return a}(e,c),b=(0,l.jv)({x:u,y:f,defined:m,curve:h});return r?t.createElement(t.Fragment,null,r({path:b})):t.createElement("path",o({ref:p,className:i()("visx-linepath",y),d:b(a)||"",fill:d,strokeLinecap:"round"},x))}},39309:function(e,r,n){n.d(r,{SO:function(){return l},jv:function(){return c}});var t=n(48167),a=n(92201),i=n(49894);function l(e){var r=void 0===e?{}:e,n=r.x,a=r.x0,l=r.x1,c=r.y,o=r.y0,u=r.y1,f=r.defined,s=r.curve,d=(0,t.Z)();return n&&(0,i.Z)(d.x,n),a&&(0,i.Z)(d.x0,a),l&&(0,i.Z)(d.x1,l),c&&(0,i.Z)(d.y,c),o&&(0,i.Z)(d.y0,o),u&&(0,i.Z)(d.y1,u),f&&d.defined(f),s&&d.curve(s),d}function c(e){var r=void 0===e?{}:e,n=r.x,t=r.y,l=r.defined,c=r.curve,o=(0,a.Z)();return n&&(0,i.Z)(o.x,n),t&&(0,i.Z)(o.y,t),l&&o.defined(l),c&&o.curve(c),o}},98889:function(e,r,n){n.d(r,{Z:function(){return v}});var t=n(47329),a=n.n(t),i=n(82684),l=n(63588),c=n.n(l),o=n(39309),u=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function f(){return f=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e},f.apply(this,arguments)}function s(e){var r=e.children,n=e.x,t=e.x0,a=e.x1,l=e.y,s=e.y0,d=e.y1,y=e.data,h=void 0===y?[]:y,p=e.defined,v=void 0===p?function(){return!0}:p,m=e.className,x=e.curve,b=e.innerRef,g=function(e,r){if(null==e)return{};var n,t,a={},i=Object.keys(e);for(t=0;t<i.length;t++)n=i[t],r.indexOf(n)>=0||(a[n]=e[n]);return a}(e,u),k=(0,o.SO)({x:n,x0:t,x1:a,y:l,y0:s,y1:d,defined:v,curve:x});return r?i.createElement(i.Fragment,null,r({path:k})):i.createElement("path",f({ref:b,className:c()("visx-area",m),d:k(h)||""},g))}var d=["id","children"];function y(){return y=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e},y.apply(this,arguments)}function h(e){var r=e.id,n=e.children,t=function(e,r){if(null==e)return{};var n,t,a={},i=Object.keys(e);for(t=0;t<i.length;t++)n=i[t],r.indexOf(n)>=0||(a[n]=e[n]);return a}(e,d);return i.createElement("defs",null,i.createElement("clipPath",y({id:r},t),n))}function p(){return p=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e},p.apply(this,arguments)}function v(e){var r=e.className,n=e.curve,t=e.clipAboveTo,a=e.clipBelowTo,l=e.data,o=e.defined,u=e.x,f=e.y0,d=e.y1,y=e.aboveAreaProps,v=e.belowAreaProps,m=e.id,x=void 0===m?"":m;return i.createElement("g",{className:c()("visx-threshold",r)},i.createElement(s,{curve:n,data:l,x:u,y1:d,defined:o},(function(e){var r=e.path,n=null,c=null;return n=r.y0(a)(l),c=r.y0(t)(l),i.createElement("g",null,i.createElement(h,{id:"threshold-clip-below-"+x},i.createElement("path",{d:n||""})),i.createElement(h,{id:"threshold-clip-above-"+x},i.createElement("path",{d:c||""})))})),i.createElement(s,p({curve:n,data:l,defined:o,x:u,y0:f,y1:d,strokeWidth:0,clipPath:"url(#threshold-clip-below-"+x+")"},v)),i.createElement(s,p({curve:n,data:l,defined:o,x:u,y0:f,y1:d,strokeWidth:0,clipPath:"url(#threshold-clip-above-"+x+")"},y)))}h.propTypes={id:a().string.isRequired,children:a().node},v.propTypes={className:a().string,clipAboveTo:a().oneOfType([a().func,a().number]).isRequired,clipBelowTo:a().oneOfType([a().func,a().number]).isRequired,id:a().string.isRequired,data:a().array.isRequired,defined:a().func,x:a().oneOfType([a().func,a().number]).isRequired,y0:a().oneOfType([a().func,a().number]).isRequired,y1:a().oneOfType([a().func,a().number]).isRequired}}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4783],{52136:function(e,r,n){n.d(r,{Z:function(){return v}});var t=n(47329),a=n.n(t),i=n(82684),l=n(63588),c=n.n(l),o=n(5237),u=n(29989),f=n(81352),s=n(46119),d=n(38469),y=n(12765),h=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function p(){return p=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e},p.apply(this,arguments)}function v(e){var r=e.top,n=void 0===r?0:r,t=e.left,a=void 0===t?0:t,l=e.scale,v=e.height,m=e.stroke,x=void 0===m?"#eaf0f6":m,b=e.strokeWidth,g=void 0===b?1:b,k=e.strokeDasharray,O=e.className,Z=e.numTicks,E=void 0===Z?10:Z,w=e.lineStyle,j=e.offset,N=e.tickValues,S=e.children,T=function(e,r){if(null==e)return{};var n,t,a={},i=Object.keys(e);for(t=0;t<i.length;t++)n=i[t],r.indexOf(n)>=0||(a[n]=e[n]);return a}(e,h),R=null!=N?N:(0,s.Z)(l,E),P=(null!=j?j:0)+(0,y.Z)(l)/2,q=R.map((function(e,r){var n,t=(null!=(n=(0,d.Z)(l(e)))?n:0)+P;return{index:r,from:new f.Z({x:t,y:0}),to:new f.Z({x:t,y:v})}}));return i.createElement(u.Z,{className:c()("visx-columns",O),top:n,left:a},S?S({lines:q}):q.map((function(e){var r=e.from,n=e.to,t=e.index;return i.createElement(o.Z,p({key:"column-line-"+t,from:r,to:n,stroke:x,strokeWidth:g,strokeDasharray:k,style:w},T))})))}v.propTypes={tickValues:a().array,height:a().number.isRequired}},95422:function(e,r,n){n.d(r,{Z:function(){return s}});var t=n(82684),a=n(63588),i=n.n(a),l=n(29989),c=n(65743),o=n(53989),u=["data","className","top","left","x0","x0Scale","x1Scale","yScale","color","keys","height","children"];function f(){return f=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e},f.apply(this,arguments)}function s(e){var r=e.data,n=e.className,a=e.top,s=e.left,d=e.x0,y=e.x0Scale,h=e.x1Scale,p=e.yScale,v=e.color,m=e.keys,x=e.height,b=e.children,g=function(e,r){if(null==e)return{};var n,t,a={},i=Object.keys(e);for(t=0;t<i.length;t++)n=i[t],r.indexOf(n)>=0||(a[n]=e[n]);return a}(e,u),k=(0,o.Z)(h),O=r.map((function(e,r){return{index:r,x0:y(d(e)),bars:m.map((function(r,n){var t=e[r];return{index:n,key:r,value:t,width:k,x:h(r)||0,y:p(t)||0,color:v(r,n),height:x-(p(t)||0)}}))}}));return b?t.createElement(t.Fragment,null,b(O)):t.createElement(l.Z,{className:i()("visx-bar-group",n),top:a,left:s},O.map((function(e){return t.createElement(l.Z,{key:"bar-group-"+e.index+"-"+e.x0,left:e.x0},e.bars.map((function(r){return t.createElement(c.Z,f({key:"bar-group-bar-"+e.index+"-"+r.index+"-"+r.value+"-"+r.key,x:r.x,y:r.y,width:r.width,height:r.height,fill:r.color},g))})))})))}},39048:function(e,r,n){n.d(r,{Z:function(){return s}});var t=n(82684),a=n(63588),i=n.n(a),l=n(29989),c=n(65743),o=n(53989),u=["data","className","top","left","x","y0","y0Scale","y1Scale","xScale","color","keys","width","children"];function f(){return f=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e},f.apply(this,arguments)}function s(e){var r=e.data,n=e.className,a=e.top,s=e.left,d=e.x,y=void 0===d?function(){return 0}:d,h=e.y0,p=e.y0Scale,v=e.y1Scale,m=e.xScale,x=e.color,b=e.keys,g=(e.width,e.children),k=function(e,r){if(null==e)return{};var n,t,a={},i=Object.keys(e);for(t=0;t<i.length;t++)n=i[t],r.indexOf(n)>=0||(a[n]=e[n]);return a}(e,u),O=(0,o.Z)(v),Z=r.map((function(e,r){return{index:r,y0:p(h(e))||0,bars:b.map((function(r,n){var t=e[r];return{index:n,key:r,value:t,height:O,x:y(t)||0,y:v(r)||0,color:x(r,n),width:m(t)||0}}))}}));return g?t.createElement(t.Fragment,null,g(Z)):t.createElement(l.Z,{className:i()("visx-bar-group-horizontal",n),top:a,left:s},Z.map((function(e){return t.createElement(l.Z,{key:"bar-group-"+e.index+"-"+e.y0,top:e.y0},e.bars.map((function(r){return t.createElement(c.Z,f({key:"bar-group-bar-"+e.index+"-"+r.index+"-"+r.value+"-"+r.key,x:r.x,y:r.y,width:r.width,height:r.height,fill:r.color},k))})))})))}},85587:function(e,r,n){n.d(r,{Z:function(){return u}});var t=n(82684),a=n(63588),i=n.n(a),l=n(39309),c=["children","data","x","y","fill","className","curve","innerRef","defined"];function o(){return o=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e},o.apply(this,arguments)}function u(e){var r=e.children,n=e.data,a=void 0===n?[]:n,u=e.x,f=e.y,s=e.fill,d=void 0===s?"transparent":s,y=e.className,h=e.curve,p=e.innerRef,v=e.defined,m=void 0===v?function(){return!0}:v,x=function(e,r){if(null==e)return{};var n,t,a={},i=Object.keys(e);for(t=0;t<i.length;t++)n=i[t],r.indexOf(n)>=0||(a[n]=e[n]);return a}(e,c),b=(0,l.jv)({x:u,y:f,defined:m,curve:h});return r?t.createElement(t.Fragment,null,r({path:b})):t.createElement("path",o({ref:p,className:i()("visx-linepath",y),d:b(a)||"",fill:d,strokeLinecap:"round"},x))}},39309:function(e,r,n){n.d(r,{SO:function(){return l},jv:function(){return c}});var t=n(48167),a=n(92201),i=n(49894);function l(e){var r=void 0===e?{}:e,n=r.x,a=r.x0,l=r.x1,c=r.y,o=r.y0,u=r.y1,f=r.defined,s=r.curve,d=(0,t.Z)();return n&&(0,i.Z)(d.x,n),a&&(0,i.Z)(d.x0,a),l&&(0,i.Z)(d.x1,l),c&&(0,i.Z)(d.y,c),o&&(0,i.Z)(d.y0,o),u&&(0,i.Z)(d.y1,u),f&&d.defined(f),s&&d.curve(s),d}function c(e){var r=void 0===e?{}:e,n=r.x,t=r.y,l=r.defined,c=r.curve,o=(0,a.Z)();return n&&(0,i.Z)(o.x,n),t&&(0,i.Z)(o.y,t),l&&o.defined(l),c&&o.curve(c),o}},98889:function(e,r,n){n.d(r,{Z:function(){return v}});var t=n(47329),a=n.n(t),i=n(82684),l=n(63588),c=n.n(l),o=n(39309),u=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function f(){return f=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e},f.apply(this,arguments)}function s(e){var r=e.children,n=e.x,t=e.x0,a=e.x1,l=e.y,s=e.y0,d=e.y1,y=e.data,h=void 0===y?[]:y,p=e.defined,v=void 0===p?function(){return!0}:p,m=e.className,x=e.curve,b=e.innerRef,g=function(e,r){if(null==e)return{};var n,t,a={},i=Object.keys(e);for(t=0;t<i.length;t++)n=i[t],r.indexOf(n)>=0||(a[n]=e[n]);return a}(e,u),k=(0,o.SO)({x:n,x0:t,x1:a,y:l,y0:s,y1:d,defined:v,curve:x});return r?i.createElement(i.Fragment,null,r({path:k})):i.createElement("path",f({ref:b,className:c()("visx-area",m),d:k(h)||""},g))}var d=["id","children"];function y(){return y=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e},y.apply(this,arguments)}function h(e){var r=e.id,n=e.children,t=function(e,r){if(null==e)return{};var n,t,a={},i=Object.keys(e);for(t=0;t<i.length;t++)n=i[t],r.indexOf(n)>=0||(a[n]=e[n]);return a}(e,d);return i.createElement("defs",null,i.createElement("clipPath",y({id:r},t),n))}function p(){return p=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e},p.apply(this,arguments)}function v(e){var r=e.className,n=e.curve,t=e.clipAboveTo,a=e.clipBelowTo,l=e.data,o=e.defined,u=e.x,f=e.y0,d=e.y1,y=e.aboveAreaProps,v=e.belowAreaProps,m=e.id,x=void 0===m?"":m;return i.createElement("g",{className:c()("visx-threshold",r)},i.createElement(s,{curve:n,data:l,x:u,y1:d,defined:o},(function(e){var r=e.path,n=null,c=null;return n=r.y0(a)(l),c=r.y0(t)(l),i.createElement("g",null,i.createElement(h,{id:"threshold-clip-below-"+x},i.createElement("path",{d:n||""})),i.createElement(h,{id:"threshold-clip-above-"+x},i.createElement("path",{d:c||""})))})),i.createElement(s,p({curve:n,data:l,defined:o,x:u,y0:f,y1:d,strokeWidth:0,clipPath:"url(#threshold-clip-below-"+x+")"},v)),i.createElement(s,p({curve:n,data:l,defined:o,x:u,y0:f,y1:d,strokeWidth:0,clipPath:"url(#threshold-clip-above-"+x+")"},y)))}h.propTypes={id:a().string.isRequired,children:a().node},v.propTypes={className:a().string,clipAboveTo:a().oneOfType([a().func,a().number]).isRequired,clipBelowTo:a().oneOfType([a().func,a().number]).isRequired,id:a().string.isRequired,data:a().array.isRequired,defined:a().func,x:a().oneOfType([a().func,a().number]).isRequired,y0:a().oneOfType([a().func,a().number]).isRequired,y1:a().oneOfType([a().func,a().number]).isRequired}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5457],{94629:function(e,n,r){r.d(n,{Z:function(){return T}});var t=r(82394),i=r(21831),o=r(82684),u=r(50724),s=r(82555),l=r(97618),c=r(70613),a=r(68487),d=r(68899),f=r(28598);function p(e,n){var r=e.children,t=e.noPadding;return(0,f.jsx)(d.HS,{noPadding:t,ref:n,children:r})}var b=o.forwardRef(p),h=r(62547),O=r(82571),g=r(35686),v=r(98464),P=r(46684),S=r(70515),I=r(53808),j=r(19183);function m(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function y(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?m(Object(r),!0).forEach((function(n){(0,t.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function E(e,n){var r,t=e.addProjectBreadcrumbToCustomBreadcrumbs,p=e.after,m=e.afterHeader,E=e.afterHidden,T=e.afterWidth,N=e.afterWidthOverride,k=e.appendBreadcrumbs,R=e.before,A=e.beforeWidth,M=e.breadcrumbs,Z=e.children,_=e.errors,w=e.headerMenuItems,C=e.headerOffset,x=e.hideAfterCompletely,H=e.mainContainerHeader,G=e.navigationItems,D=e.setAfterHidden,Y=e.setErrors,L=e.subheaderChildren,B=e.subheaderNoPadding,U=e.title,K=e.uuid,W=(0,j.i)().width,F="dashboard_after_width_".concat(K),q="dashboard_before_width_".concat(K),z=(0,o.useRef)(null),V=(0,o.useState)(N?T:(0,I.U2)(F,T)),Q=V[0],$=V[1],J=(0,o.useState)(!1),X=J[0],ee=J[1],ne=(0,o.useState)(R?Math.max((0,I.U2)(q,A),13*S.iI):null),re=ne[0],te=ne[1],ie=(0,o.useState)(!1),oe=ie[0],ue=ie[1],se=(0,o.useState)(null)[1],le=g.ZP.projects.list({},{revalidateOnFocus:!1}).data,ce=null===le||void 0===le?void 0:le.projects,ae={label:function(){var e;return null===ce||void 0===ce||null===(e=ce[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},de=[];M&&(t&&de.push(ae),de.push.apply(de,(0,i.Z)(M))),(null===M||void 0===M||!M.length||k)&&(null===ce||void 0===ce?void 0:ce.length)>=1&&(null!==M&&void 0!==M&&M.length||de.unshift({bold:!k,label:function(){return U}}),de.unshift(ae)),(0,o.useEffect)((function(){null===z||void 0===z||!z.current||X||oe||null===se||void 0===se||se(z.current.getBoundingClientRect().width)}),[X,Q,oe,re,z,se,W]),(0,o.useEffect)((function(){X||(0,I.t8)(F,Q)}),[E,X,Q,F]),(0,o.useEffect)((function(){oe||(0,I.t8)(q,re)}),[oe,re,q]);var fe=(0,v.Z)(T);return(0,o.useEffect)((function(){N&&fe!==T&&$(T)}),[N,T,fe]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(c.Z,{title:U}),(0,f.jsx)(a.Z,{breadcrumbs:de,menuItems:w,project:null===ce||void 0===ce?void 0:ce[0],version:null===ce||void 0===ce||null===(r=ce[0])||void 0===r?void 0:r.version}),(0,f.jsxs)(d.Nk,{ref:n,children:[0!==(null===G||void 0===G?void 0:G.length)&&(0,f.jsx)(d.lm,{showMore:!0,children:(0,f.jsx)(O.Z,{navigationItems:G,showMore:!0})}),(0,f.jsx)(l.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(h.Z,{after:p,afterHeader:m,afterHeightOffset:P.Mz,afterHidden:E,afterMousedownActive:X,afterWidth:Q,before:R,beforeHeightOffset:P.Mz,beforeMousedownActive:oe,beforeWidth:d.k1+(R?re:0),headerOffset:C,hideAfterCompletely:!D||x,leftOffset:R?d.k1:null,mainContainerHeader:H,mainContainerRef:z,setAfterHidden:D,setAfterMousedownActive:ee,setAfterWidth:$,setBeforeMousedownActive:ue,setBeforeWidth:te,children:[L&&(0,f.jsx)(b,{noPadding:B,children:L}),Z]})})]}),_&&(0,f.jsx)(u.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===Y||void 0===Y?void 0:Y(null)},children:(0,f.jsx)(s.Z,y(y({},_),{},{onClose:function(){return null===Y||void 0===Y?void 0:Y(null)}}))})]})}var T=o.forwardRef(E)},28795:function(e,n,r){var t;r.d(n,{B:function(){return i},M:function(){return t}}),function(e){e.BACKFILLS="backfills",e.BLOCK_RUNS="block_runs",e.DASHBOARD="dashboard",e.EDIT="edit",e.MONITOR="monitor",e.PIPELINE_LOGS="pipeline_logs",e.PIPELINE_RUNS="pipeline_runs",e.RUNS="runs",e.SETTINGS="settings",e.SYNCS="syncs",e.TRIGGERS="triggers"}(t||(t={}));var i="cancel_all_running_pipeline_runs"},75457:function(e,n,r){r.d(n,{Z:function(){return k}});var t=r(82394),i=r(21831),o=r(82684),u=r(34376),s=r(50724),l=r(94629),c=r(15338),a=r(82555),d=r(55485),f=r(85854),p=r(38276),b=r(35686),h=r(38626),O=r(44897),g=r(42631),v=r(70515),P=h.default.div.withConfig({displayName:"indexstyle__BannerStyle",componentId:"sc-1te3pmf-0"})(["border-radius:","px;padding:","px;"," "," ",""],g.n_,3*v.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||O.Z.shadow).small,";\n ")}),(function(e){return e.background&&"\n background: ".concat(e.background,";\n ")}),(function(e){return e.backgroundImage&&'\n background-image: url("'.concat(e.backgroundImage,'");\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n ')})),S=r(46684),I=r(85010),j=r(72619),m=r(19183),y=r(28598);function E(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function T(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?E(Object(r),!0).forEach((function(n){(0,t.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function N(e,n){var r=e.after,t=e.afterHidden,h=e.afterWidth,O=e.before,g=e.beforeWidth,E=e.breadcrumbs,N=e.buildSidekick,k=e.children,R=e.errors,A=e.headline,M=e.pageName,Z=e.pipeline,_=e.setErrors,w=e.subheader,C=e.subheaderBackground,x=e.subheaderBackgroundImage,H=e.subheaderButton,G=e.subheaderNoPadding,D=e.subheaderText,Y=e.title,L=e.uuid,B=(0,m.i)().height,U=(0,u.useRouter)().query.pipeline,K=null===Z||void 0===Z?void 0:Z.uuid,W=b.ZP.pipelines.detail(K,{includes_outputs:!1},{revalidateOnFocus:!1}).data,F=null===W||void 0===W?void 0:W.pipeline;(0,o.useEffect)((function(){(0,j.bB)(W,_)}),[W,_]);var q=(0,o.useMemo)((function(){return r||(N?N({height:B,heightOffset:S.Mz,pipeline:F}):null)}),[r,N,B,F]),z=h||(q?50*v.iI:null),V=(0,o.useMemo)((function(){var e=[];return F?(e.push.apply(e,[{label:function(){return"Pipelines"},linkProps:{href:"/pipelines"}}]),E?(e.push({label:function(){return F.uuid},linkProps:{as:"/pipelines/".concat(K,"/triggers"),href:"/pipelines/[pipeline]/triggers"}}),e.push.apply(e,(0,i.Z)(E)),e[e.length-1].bold=!0):e.push({bold:!0,label:function(){return F.name}})):null!==W&&void 0!==W&&W.error&&e.push({bold:!0,danger:!0,label:function(){return"Error loading pipeline"}}),e}),[E,null===W||void 0===W?void 0:W.error,F,K]);return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(l.Z,{after:q,afterHidden:t,afterWidth:z,before:O,beforeWidth:g,breadcrumbs:V,navigationItems:(0,I.H)(M,F,U),ref:n,subheaderChildren:"undefined"!==typeof w&&w,subheaderNoPadding:G,title:F?Y?Y(F):F.name:null,uuid:L,children:[(H||D)&&(0,y.jsx)(p.Z,{mb:v.Mq,mt:v.cd,mx:v.cd,children:(0,y.jsx)(P,{background:C,backgroundImage:x,children:(0,y.jsxs)(d.ZP,{alignItems:"center",children:[H,D&&(0,y.jsx)(p.Z,{ml:3}),D]})})}),A&&(0,y.jsx)(p.Z,{p:v.cd,children:(0,y.jsxs)(p.Z,{mt:v.cd,px:v.cd,children:[(0,y.jsx)(f.Z,{level:5,children:A}),(0,y.jsx)(c.Z,{light:!0,mt:v.cd,short:!0})]})}),k]}),R&&(0,y.jsx)(s.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===_||void 0===_?void 0:_(null)},children:(0,y.jsx)(a.Z,T(T({},R),{},{onClose:function(){return null===_||void 0===_?void 0:_(null)}}))})]})}var k=o.forwardRef(N)},85010:function(e,n,r){r.d(n,{H:function(){return s}});var t=r(57653),i=r(72473),o=r(28795),u=r(50178);function s(e,n,r){var s=(n||{}).uuid||r,l=[{Icon:i.Bf,id:o.M.TRIGGERS,isSelected:function(){return o.M.TRIGGERS===e},label:function(){return"Triggers"},linkProps:{as:"/pipelines/".concat(s,"/triggers"),href:"/pipelines/[pipeline]/triggers"}},{Icon:i.Pf,id:o.M.RUNS,isSelected:function(){return o.M.RUNS===e},label:function(){return"Runs"},linkProps:{as:"/pipelines/".concat(s,"/runs"),href:"/pipelines/[pipeline]/runs"}},{Icon:i.UL,id:o.M.PIPELINE_LOGS,isSelected:function(){return o.M.PIPELINE_LOGS===e},label:function(){return"Logs"},linkProps:{as:"/pipelines/".concat(s,"/logs"),href:"/pipelines/[pipeline]/logs"}},{Icon:i.ug,id:o.M.MONITOR,isSelected:function(){return o.M.MONITOR===e},label:function(){return"Monitor"},linkProps:{as:"/pipelines/".concat(s,"/monitors"),href:"/pipelines/[pipeline]/monitors"}}];return t.qL.PYTHON===(null===n||void 0===n?void 0:n.type)&&l.splice(2,0,{Icon:i.dE,id:o.M.BACKFILLS,isSelected:function(){return o.M.BACKFILLS===e},label:function(){return"Backfills"},linkProps:{as:"/pipelines/".concat(s,"/backfills"),href:"/pipelines/[pipeline]/backfills"}}),t.qL.INTEGRATION===(null===n||void 0===n?void 0:n.type)&&l.unshift({Icon:i.Nt,id:o.M.SYNCS,isSelected:function(){return o.M.SYNCS===e},label:function(){return"Syncs"},linkProps:{as:"/pipelines/".concat(s,"/syncs"),href:"/pipelines/[pipeline]/syncs"}}),(0,u.Ct)()||(l.unshift({Icon:i.EK,disabled:!s,id:o.M.EDIT,isSelected:function(){return o.M.EDIT===e},label:function(){return"Edit pipeline"},linkProps:{as:"/pipelines/".concat(s,"/edit"),href:"/pipelines/[pipeline]/edit"}}),l.push({Icon:i.Zr,id:o.M.SETTINGS,isSelected:function(){return o.M.SETTINGS===e},label:function(){return"Pipeline settings"},linkProps:{as:"/pipelines/".concat(s,"/settings"),href:"/pipelines/[pipeline]/settings"}})),l.unshift({Icon:i.G6,id:o.M.DASHBOARD,isSelected:function(){return o.M.DASHBOARD===e},label:function(){return"Dashboard"},linkProps:{as:"/pipelines/".concat(s,"/dashboard"),href:"/pipelines/[pipeline]/dashboard"}}),l}},72098:function(e,n,r){var t;r.d(n,{U:function(){return t}}),function(e){e.PYSPARK="pysparkkernel",e.PYTHON3="python3"}(t||(t={}))},57653:function(e,n,r){r.d(n,{$1:function(){return h},G7:function(){return v},LM:function(){return P},Mj:function(){return S},QK:function(){return b},RH:function(){return g},a_:function(){return j},fj:function(){return m},kA:function(){return I},qL:function(){return s},r0:function(){return O}});var t,i,o,u,s,l=r(75582),c=r(82394),a=r(72473),d=r(72098);function f(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function p(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?f(Object(r),!0).forEach((function(n){(0,c.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}!function(e){e.INTEGRATION="integration",e.PYTHON="python",e.PYSPARK="pyspark",e.STREAMING="streaming"}(s||(s={}));var b,h,O,g=(t={},(0,c.Z)(t,s.INTEGRATION,"Integration"),(0,c.Z)(t,s.PYTHON,"Python"),(0,c.Z)(t,s.PYSPARK,"PySpark"),(0,c.Z)(t,s.STREAMING,"Streaming"),t),v=(i={},(0,c.Z)(i,s.INTEGRATION,"Integration"),(0,c.Z)(i,s.PYTHON,"Standard"),(0,c.Z)(i,s.PYSPARK,"PySpark"),(0,c.Z)(i,s.STREAMING,"Streaming"),i),P="all",S=(s.PYTHON,s.INTEGRATION,s.STREAMING,o={},(0,c.Z)(o,P,a.ie),(0,c.Z)(o,s.INTEGRATION,a.YC),(0,c.Z)(o,s.PYTHON,a.El),(0,c.Z)(o,s.STREAMING,a.dB),o);!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"}(b||(b={})),function(e){e.GROUP="group_by",e.HISTORY_DAYS="from_history_days",e.NO_TAGS="no_tags",e.STATUS="status[]",e.TAG="tag[]",e.TYPE="type[]"}(h||(h={})),function(e){e.STATUS="status",e.TAG="tag",e.TYPE="type"}(O||(O={}));var I=[b.ACTIVE,b.INACTIVE,b.NO_SCHEDULES],j=(u={},(0,c.Z)(u,s.PYTHON,d.U.PYTHON3),(0,c.Z)(u,s.PYSPARK,d.U.PYSPARK),u),m=Object.entries(j).reduce((function(e,n){var r=(0,l.Z)(n,2),t=r[0],i=r[1];return p(p({},e),{},(0,c.Z)({},i,t))}),{})}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5499],{81655:function(n,e,t){t.d(e,{NC:function(){return h},O$:function(){return p},OK:function(){return s},Xx:function(){return d},cg:function(){return u},lG:function(){return r},nH:function(){return f},oz:function(){return a},sh:function(){return o},w4:function(){return v}});var o,r,i=t(3917),l=t(41143),c=t(70515),u=20*c.iI,d=40*c.iI,a=40,s=96,f=286;!function(n){n.ASC="asc",n.DESC="desc"}(o||(o={})),function(n){n.SORT_COL_IDX="sort_column_index",n.SORT_DIRECTION="sort_direction"}(r||(r={}));var p={fitTooltipContentWidth:!0,tooltipMessage:"Timezone: ".concat(i.yd)},v=function(n){var e=n.uuid,t=n.rowIndex;return"".concat(e,"-row-").concat(t)},h=function(n){return{danger:l.V.FAILED===n,default:!n,info:l.V.RUNNING===n,monospace:!0,success:l.V.COMPLETED===n,warning:l.V.CANCELLED===n}}},31608:function(n,e,t){t.d(e,{A2:function(){return d},DI:function(){return c},GZ:function(){return v},Vq:function(){return f},cE:function(){return g},cl:function(){return a},kA:function(){return s},mB:function(){return h}});var o=t(38626),r=t(44897),i=t(47041),l=t(70515),c=2*l.iI,u=1*l.iI,d=o.default.div.withConfig({displayName:"indexstyle__TableWrapperStyle",componentId:"sc-1wzfyed-0"})(["position:relative;",""],(function(n){return n.fixed&&"\n table-layout: fixed;\n "})),a=o.default.div.withConfig({displayName:"indexstyle__TableContainerStyle",componentId:"sc-1wzfyed-1"})(["position:relative;overflow:auto;"," "," "," "," "," ",""],i.w5,(function(n){return n.includePadding&&"\n padding: ".concat(2*l.iI,"px;\n ")}),(function(n){return n.maxHeight&&"\n max-height: ".concat(n.maxHeight,";\n ")}),(function(n){return n.minHeight&&"\n min-height: ".concat(n.minHeight,"px;\n ")}),(function(n){return n.overflowVisible&&"\n overflow: visible;\n "}),(function(n){return n.hide&&"\n display: none;\n "})),s=o.default.table.withConfig({displayName:"indexstyle__TableStyle",componentId:"sc-1wzfyed-2"})(["contain:size;width:100%;"," ",""],(function(n){return(n.columnBorders||n.borderCollapseSeparate)&&"\n border-collapse: separate;\n "}),(function(n){return n.fixed&&"\n table-layout: fixed;\n "})),f=o.default.tr.withConfig({displayName:"indexstyle__TableRowStyle",componentId:"sc-1wzfyed-3"})([""," ",""],(function(n){return n.highlightOnHover&&"\n &:hover {\n background: ".concat((n.theme.interactive||r.Z.interactive).rowHoverBackground,";\n }\n ")}),(function(n){return!n.noHover&&"\n &:hover {\n background: ".concat((n.theme.interactive||r.Z.interactive).rowHoverBackground,";\n cursor: pointer;\n }\n ")})),p=(0,o.css)(["text-overflow:ellipsis;white-space:nowrap;"," "," "," "," "," "," "," "," ",""],(function(n){return!n.alignTop&&"\n vertical-align: middle;\n "}),(function(n){return n.alignTop&&"\n vertical-align: top;\n "}),(function(n){return!n.noBorder&&"\n border-bottom: 1px solid ".concat((n.theme.borders||r.Z.borders).light,";\n ")}),(function(n){return n.compact&&"\n padding-left: ".concat(l.iI,"px;\n padding-right: ").concat(l.iI,"px;\n ")}),(function(n){return n.compact&&("undefined"===typeof n.rowVerticalPadding||null===n.rowVerticalPadding)&&"\n padding-bottom: ".concat(l.iI/2,"px;\n padding-top: ").concat(l.iI/2,"px;\n ")}),(function(n){return!n.compact&&"\n padding-left: ".concat(c,"px;\n padding-right: ").concat(c,"px;\n ")}),(function(n){return!n.compact&&("undefined"===typeof n.rowVerticalPadding||null===n.rowVerticalPadding)&&"\n padding-bottom: ".concat(u,"px;\n padding-top: ").concat(u,"px;\n ")}),(function(n){return n.maxWidth&&"\n max-width: ".concat(n.maxWidth,";\n ")}),(function(n){return"undefined"!==typeof n.rowVerticalPadding&&null!==n.rowVerticalPadding&&"\n padding-top: ".concat(n.rowVerticalPadding,"px;\n padding-bottom: ").concat(n.rowVerticalPadding,"px;\n ")})),v=o.default.th.withConfig({displayName:"indexstyle__TableHeadStyle",componentId:"sc-1wzfyed-4"})([""," "," "," ",""],p,(function(n){return n.columnBorders&&"\n border: 1px solid ".concat((n.theme.borders||r.Z.borders).light,";\n border-right: none;\n ")}),(function(n){return n.columnBorders&&n.last&&"\n border-right: 1px solid ".concat((n.theme.borders||r.Z.borders).light,";\n ")}),(function(n){return n.sticky&&"\n background-color: ".concat((n.theme||r.Z).background.panel,";\n border-bottom: 1px solid ").concat((n.theme.borders||r.Z.borders).medium,";\n z-index: 2;\n position: sticky;\n top: 0;\n\n &:first-child {\n left: 0;\n z-index: 2;\n }\n ")})),h=o.default.div.withConfig({displayName:"indexstyle__SortIconContainerStyle",componentId:"sc-1wzfyed-5"})(["opacity:0;padding-left:","px;position:relative;top:1px;",""],l.iI,(function(n){return n.active&&"\n opacity: 1;\n "})),g=o.default.td.withConfig({displayName:"indexstyle__TableDataStyle",componentId:"sc-1wzfyed-6"})([""," "," "," "," "," ",""],p,(function(n){return n.columnBorders&&"\n border-left: 1px solid ".concat((n.theme.borders||r.Z.borders).light,";\n ")}),(function(n){return n.columnBorders&&n.last&&"\n border-right: 1px solid ".concat((n.theme.borders||r.Z.borders).light,";\n ")}),(function(n){return n.stickyFirstColumn&&"\n background-color: ".concat((n.theme||r.Z).background.panel,";\n z-index: 1;\n position: sticky;\n left: 0;\n ")}),(function(n){return n.selected&&"\n background-color: ".concat((n.theme.interactive||r.Z.interactive).activeBorder,";\n ")}),(function(n){return n.wrapColumns&&"\n white-space: break-spaces;\n "}))},75499:function(n,e,t){var o=t(82394),r=t(21831),i=t(12691),l=t.n(i),c=t(82684),u=t(32013),d=t(98777),a=t(15338),s=t(55485),f=t(70374),p=t(85854),v=t(48670),h=t(38276),g=t(30160),m=t(12468),x=t(44897),b=t(98464),y=t(81655),w=t(70515),C=t(72473),j=t(31608),O=t(15610),I=t(33834),S=t(53808),k=t(86735),P=t(28598);function E(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,o)}return t}function Z(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?E(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):E(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function D(n,e){var t=n.alignTop,i=n.apiForFetchingAfterAction,E=n.borderCollapseSeparate,D=n.buildApiOptionsFromObject,_=n.buildLinkProps,A=n.buildRowProps,R=n.columnBorders,H=n.columnFlex,M=n.columnMaxWidth,B=n.columns,N=void 0===B?[]:B,T=n.compact,V=n.defaultSortColumnIndex,F=n.getObjectAtRowIndex,L=n.getUUIDFromRow,z=n.getUniqueRowIdentifier,W=n.groupsInline,G=n.highlightRowOnHover,U=n.isSelectedRow,Y=n.localStorageKeySortColIdx,q=n.localStorageKeySortDirection,J=n.menu,X=n.noBorder,K=n.noHeader,$=n.onClickRow,Q=n.onDoubleClickRow,nn=n.onRightClickRow,en=n.renderExpandedRowWithObject,tn=n.renderRightClickMenu,on=n.renderRightClickMenuItems,rn=n.rightClickMenuHeight,ln=n.rightClickMenuWidth,cn=void 0===ln?y.cg:ln,un=n.rowGroupHeaders,dn=n.rowVerticalPadding,an=n.rows,sn=n.rowsGroupedByIndex,fn=n.selectedRowIndexInternal,pn=n.setRowsSorted,vn=n.sortableColumnIndexes,hn=n.sortedColumn,gn=n.stickyFirstColumn,mn=n.stickyHeader,xn=n.uuid,bn=n.uuidColumnIndex,yn=n.wrapColumns,wn=(0,c.useState)(null),Cn=wn[0],jn=wn[1],On=(0,c.useMemo)((function(){return"undefined"!==typeof fn?fn:Cn}),[fn,Cn]),In=(0,c.useCallback)((function(n,e){jn((function(e){return e===n?null:n}))}),[jn]),Sn=(0,c.useMemo)((function(){return null===On?null:null===F||void 0===F?void 0:F(On)}),[F,On]),kn=D&&Sn?D(Sn):[null],Pn=((null===i||void 0===i?void 0:i.apply(void 0,(0,r.Z)(kn)))||{}).data,En=(0,c.useState)(null),Zn=En[0],Dn=En[1],_n=(0,c.useState)(null),An=_n[0],Rn=_n[1],Hn=(0,c.useState)(null),Mn=Hn[0],Bn=Hn[1],Nn=(0,c.useState)(hn),Tn=Nn[0],Vn=Nn[1],Fn=(0,c.useMemo)((function(){return null===Tn||void 0===Tn?void 0:Tn.columnIndex}),[Tn]),Ln=(0,c.useMemo)((function(){return null===Tn||void 0===Tn?void 0:Tn.sortDirection}),[Tn]),zn=(0,c.useMemo)((function(){return H.reduce((function(n,e){return n+(e||0)}),0)}),[H]),Wn=(0,c.useCallback)((function(n){if(H[n]){var e=Math.round(H[n]/zn*100);return"".concat(e,"%")}return null}),[H,zn]),Gn=(0,c.useCallback)((function(){return Dn(null)}),[Dn]);(0,c.useEffect)((function(){var n;return null===(n=document)||void 0===n||n.addEventListener("click",Gn),function(){var n;null===(n=document)||void 0===n||n.removeEventListener("click",Gn)}}),[Gn]);var Un=(0,c.useMemo)((function(){return tn||on}),[tn,on]),Yn=(0,c.useMemo)((function(){var n;if(!Un)return null;var t=(null===e||void 0===e||null===(n=e.current)||void 0===n?void 0:n.getBoundingClientRect())||{},o=t.x,r=t.width,i=Zn||{},l=i.x,c=void 0===l?0:l,u=i.y,d=void 0===u?0:u,a=c;return c+cn>=o+r&&(a=o+r-(cn+w.iI)),a<0&&(a=0),(0,P.jsxs)("div",{style:{left:a,position:"fixed",top:d+w.iI/2,zIndex:100},children:[null===tn||void 0===tn?void 0:tn(An),on&&(0,P.jsx)(f.Z,{items:on(An)||[],open:!0,parentRef:void 0,uuid:"FileBrowser/ContextMenu",width:cn})]})}),[Zn,An,Un,e,tn,on,cn]),qn=(0,c.useMemo)((function(){return pn&&Tn?(0,k.YC)(an,(function(n){var e,t="number"===typeof Fn?Fn:V,o=null===n||void 0===n?void 0:n[t],r=null===o||void 0===o||null===(e=o.props)||void 0===e?void 0:e.children;if(L&&t===bn)r=null===L||void 0===L?void 0:L(n);else for(var i=0;"string"!==typeof r&&"number"!==typeof r&&i<10;){var l,c;i+=1,"undefined"===typeof(r=null===(l=r)||void 0===l||null===(c=l.props)||void 0===c?void 0:c.children)&&(r="")}return r}),{ascending:Ln!==y.sh.DESC}):an}),[V,L,an,pn,Tn,Ln,Fn,bn]),Jn=(0,c.useMemo)((function(){return z?null===qn||void 0===qn?void 0:qn.map((function(n){return null===z||void 0===z?void 0:z(n)})):void 0}),[z,qn]),Xn=(0,b.Z)(Tn),Kn=(0,b.Z)(Jn);(0,c.useEffect)((function(){if(vn&&(JSON.stringify(Tn)!==JSON.stringify(Xn)||JSON.stringify(Jn)!==JSON.stringify(Kn))){var n;null===pn||void 0===pn||pn(qn);var e="number"===typeof Fn?Fn:null,t=Ln||null;Y&&(0,S.t8)(Y,e),q&&(0,S.t8)(q,t),(0,O.u7)((n={},(0,o.Z)(n,y.lG.SORT_COL_IDX,e),(0,o.Z)(n,y.lG.SORT_DIRECTION,t),n),{pushHistory:!0})}}),[V,Y,q,qn,pn,vn,Tn,Fn,Ln,Xn,Jn,Kn]);var $n=(0,c.useMemo)((function(){return null===qn||void 0===qn?void 0:qn.map((function(n,e){var o,r=null===_||void 0===_?void 0:_(e),i=(null===A||void 0===A?void 0:A(e))||{renderCell:null,renderRow:null},u=i.renderCell,d=i.renderRow,a=[];if(n.forEach((function(o,r){var i;u&&(i=u(o,r)),i||(i=(0,P.jsx)(j.cE,{alignTop:t,columnBorders:R,compact:T,last:r===n.length-1,maxWidth:null===M||void 0===M?void 0:M(r),noBorder:X,rowVerticalPadding:dn,selected:U?null===U||void 0===U?void 0:U(e):en?On===e:null,stickyFirstColumn:gn&&0===r,width:Wn(r),wrapColumns:yn,children:o},"".concat(xn,"-row-").concat(e,"-cell-").concat(r))),a.push(i)})),d)o=d(a);else{var s=(0,y.w4)({rowIndex:e,uuid:xn});o=(0,P.jsx)(j.Vq,{highlightOnHover:G,id:s,noHover:!(r||$||en),onClick:function(n){(0,I.jF)(n)||($&&function(n,e){1===(null===e||void 0===e?void 0:e.detail)?$(n,e):Q&&2===(null===e||void 0===e?void 0:e.detail)&&Q(n)}(e,n),In(e,n))},onContextMenu:Un?function(n){n.preventDefault();var t=n.pageY;if(rn){var o=window.innerHeight;t=(o?o-n.pageY:0)-rn<0?n.pageY-rn:n.pageY}Dn({x:n.pageX,y:t}),Rn(e),null===nn||void 0===nn||nn(e,n)}:null,children:a},s)}return r?(0,c.createElement)(l(),Z(Z({},r),{},{key:"".concat(xn,"-row-link-").concat(e),passHref:!0}),(0,P.jsx)(v.Z,{fullWidth:!0,noHoverUnderline:!0,noOutline:!0,style:{display:"table-row-group"},verticalAlignContent:!0,children:o})):o}))}),[t,_,A,Wn,R,M,T,Un,G,U,X,$,In,Q,nn,en,dn,qn,On,Rn,Tn,gn,xn,yn]),Qn=(0,c.useCallback)((function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.groupIndex,t=n.showEmptyHeaderCells;return(0,P.jsx)(j.Vq,{noHover:!0,children:null===N||void 0===N?void 0:N.map((function(n,o){var r,i=n||{},l=i.center,c=i.fitTooltipContentWidth,u=i.label,d=i.rightAligned,a=i.tooltipAppearAfter,f=i.tooltipMessage,p=i.tooltipWidth,b=i.uuid,w=null===vn||void 0===vn?void 0:vn.includes(o),O={bold:!0,cyan:Fn===o,leftAligned:!0,monospace:!0,muted:!0},I=u?u({columnIndex:o,groupIndex:e}):b;return r=t?(0,P.jsx)(g.ZP,Z(Z({},O),{},{style:{opacity:0,height:0},children:I})):(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(g.ZP,Z(Z({},O),{},{children:I})),f&&(0,P.jsx)(h.Z,{ml:"4px",children:(0,P.jsx)(m.Z,{appearBefore:!a,label:(0,P.jsx)(g.ZP,{leftAligned:!0,children:f}),lightBackground:!0,maxWidth:p,muted:!0,widthFitContent:c})})]}),(0,P.jsx)(j.GZ,{columnBorders:R,compact:T,last:o===N.length-1,noBorder:X,onMouseEnter:w?function(){return Bn(o)}:null,onMouseLeave:w?function(){return Bn(null)}:null,rowVerticalPadding:t?0:null,sticky:mn,children:(0,P.jsx)(s.ZP,{alignItems:"center",justifyContent:l&&!d?"center":d?"flex-end":"flex-start",children:w?(0,P.jsx)(v.Z,{fullHeight:!0,fullWidth:!0,noHoverUnderline:!0,noOutline:!0,onClick:function(){Vn((function(n){var e=n||{},t=e.columnIndex,r=e.sortDirection,i={columnIndex:o,sortDirection:y.sh.ASC};return n&&t===o&&(r===y.sh.ASC?i.sortDirection=y.sh.DESC:r===y.sh.DESC&&(i=null)),i}))},preventDefault:!0,children:(0,P.jsxs)(s.ZP,{alignItems:"center",children:[r,(0,P.jsx)(j.mB,{active:o===Mn||o===Fn,children:y.sh.DESC===Ln&&o===Fn?(0,P.jsx)(C.Vh,{fill:x.Z.accent.cyan}):(0,P.jsx)(C.cg,{fill:x.Z.accent.cyan})})]})}):r})},"".concat(xn,"-col-").concat(b,"-").concat(o))}))})}),[R,N,T,Mn,X,vn,Ln,Fn,mn,xn]),ne=(0,c.useMemo)((function(){if((null===un||void 0===un?void 0:un.length)>=1&&(null===sn||void 0===sn?void 0:sn.length)>=1)return null===sn||void 0===sn?void 0:sn.reduce((function(n,e,t){var o=null===e||void 0===e?void 0:e.map((function(n){return null===$n||void 0===$n?void 0:$n[n]}));if((null===o||void 0===o?void 0:o.length)>=1){var r=un[t],i="table-group-".concat(t);W?n.push((0,P.jsxs)("div",{children:[r&&(0,P.jsxs)(P.Fragment,{children:["string"===typeof r&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(h.Z,{p:w.cd,children:(0,P.jsx)(p.Z,{level:5,children:r})}),(0,P.jsx)(a.Z,{light:!0})]}),"string"!==typeof r&&r]}),(0,P.jsx)(j.kA,{borderCollapseSeparate:E,columnBorders:R,children:(0,P.jsxs)(P.Fragment,{children:[(null===N||void 0===N?void 0:N.length)>=1&&!K&&Qn({groupIndex:t}),o]})})]},i)):n.push((0,P.jsx)(h.Z,{mt:t>=1?2:0,children:(0,P.jsx)(u.Z,{visibleMapping:{0:!0},children:(0,P.jsx)(d.Z,{noPaddingContent:!0,title:r,children:(0,P.jsx)(j.kA,{borderCollapseSeparate:E,columnBorders:R,children:(0,P.jsxs)(P.Fragment,{children:[(null===N||void 0===N?void 0:N.length)>=1&&!K&&Qn({groupIndex:t}),o]})})})})},i))}return n}),[]);if(en&&null!==On){var n=null===$n||void 0===$n?void 0:$n.slice(0,On+1),e=null===$n||void 0===$n?void 0:$n.slice(On+1,null===$n||void 0===$n?void 0:$n.length);return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(j.kA,{borderCollapseSeparate:E,columnBorders:R,children:[(null===N||void 0===N?void 0:N.length)>=1&&!K&&Qn(),n]}),null===en||void 0===en?void 0:en(On,Pn),(0,P.jsxs)(j.kA,{borderCollapseSeparate:E,columnBorders:R,children:[(null===N||void 0===N?void 0:N.length)>=1&&!K&&Qn({showEmptyHeaderCells:!0}),e]})]})}return(0,P.jsxs)(j.kA,{borderCollapseSeparate:E,columnBorders:R,children:[(null===N||void 0===N?void 0:N.length)>=1&&!K&&Qn(),$n]})}),[E,R,null===N||void 0===N?void 0:N.length,Pn,W,K,en,Qn,$n,un,sn,On]);return(0,P.jsxs)(j.A2,{children:[ne,J,Un&&Zn&&Yn]})}e.Z=c.forwardRef(D)},41143:function(n,e,t){var o;t.d(e,{V:function(){return o}}),function(n){n.CANCELLED="cancelled",n.COMPLETED="completed",n.FAILED="failed",n.INITIAL="initial",n.RUNNING="running",n.UPSTREAM_FAILED="upstream_failed",n.CONDITION_FAILED="condition_failed"}(o||(o={}))},15610:function(n,e,t){t.d(e,{O2:function(){return s},g_:function(){return p},u7:function(){return f}});var o=t(75582),r=t(82394),i=t(34376),l=t.n(i),c=t(69419),u=t(86735);function d(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,o)}return t}function a(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?d(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var s="_offset";function f(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e.preserveParams,r=e.pushHistory,i=e.replaceParams,u=(0,c.iV)(),d={};t&&t.forEach((function(n){u[n]&&(d[n]=u[n])}));var s,f=i?d:u;s=window.location.pathname;var p=r?l().push:l().replace,v=a(a({},f),n);Object.entries(n).forEach((function(n){var e=(0,o.Z)(n,2),t=e[0],r=e[1];"undefined"!==typeof r&&null!==r||delete v[t]}));var h=(0,c.uM)(v);h.length>=1&&(h="?".concat(h));var g="".concat(s.split("?")[0]).concat(h),m=l().router.basePath;return m&&g.startsWith(m)&&(g=g.replace(m,"")),p(l().router.pathname,g,{shallow:!0})}function p(n,e,t){var r=t.addingMultipleValues,i=t.isList,l=t.itemsPerPage,c=t.pushHistory,d=void 0!==c&&c,p=t.resetLimitParams,v=t.resetPage,h=void 0!==v&&v,g=a({},n);h&&(g.page=0),r?Object.entries(e).forEach((function(n){var e=(0,o.Z)(n,2),t=e[0],r=e[1];if(Array.isArray(r)){var i="".concat(t,"[]");g[i]=r.map(String)}})):i?Object.entries(e).forEach((function(n){var e=(0,o.Z)(n,2),t=e[0],r=e[1],i=String(r),l="".concat(t,"[]"),c=g[l];c&&Array.isArray(c)?(c=c.map(String)).includes(i)?g[l]=(0,u.Od)(c,(function(n){return n===i})):g[l]=c.concat(i):g[l]=[i]})):g=a(a({},g),e),p&&(g._limit=l||20,g[s]=0),f(g,{pushHistory:d})}}}]);