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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


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

Files changed (309) hide show
  1. mage_ai/api/presenters/PipelinePresenter.py +1 -0
  2. mage_ai/data_preparation/executors/block_executor.py +21 -1
  3. mage_ai/data_preparation/executors/pipeline_executor.py +19 -4
  4. mage_ai/data_preparation/models/block/__init__.py +50 -20
  5. mage_ai/data_preparation/models/block/data_integration/mixins.py +6 -6
  6. mage_ai/data_preparation/models/block/data_integration/utils.py +2 -2
  7. mage_ai/data_preparation/models/block/sql/bigquery.py +2 -2
  8. mage_ai/data_preparation/models/block/sql/snowflake.py +2 -2
  9. mage_ai/data_preparation/models/block/sql/trino.py +2 -2
  10. mage_ai/data_preparation/models/block/sql/utils/shared.py +2 -2
  11. mage_ai/data_preparation/models/block/utils.py +25 -16
  12. mage_ai/data_preparation/models/pipeline.py +5 -0
  13. mage_ai/data_preparation/models/project/__init__.py +0 -2
  14. mage_ai/io/chroma.py +13 -4
  15. mage_ai/orchestration/db/models/schedules.py +71 -0
  16. mage_ai/orchestration/pipeline_scheduler.py +1 -70
  17. mage_ai/server/constants.py +1 -1
  18. mage_ai/server/frontend_dist/404.html +2 -2
  19. mage_ai/server/frontend_dist/_next/static/chunks/1952-0f9a12782f0aaae6.js +1 -0
  20. mage_ai/server/frontend_dist/_next/static/chunks/2717-14191a781cf2f286.js +1 -0
  21. mage_ai/server/frontend_dist/_next/static/chunks/3419-a7a52bcaaa687b07.js +1 -0
  22. mage_ai/server/frontend_dist/_next/static/chunks/3437-e81a62f33337ca06.js +1 -0
  23. mage_ai/server/frontend_dist/_next/static/chunks/3943-3cb1f765210dd7a4.js +1 -0
  24. mage_ai/server/frontend_dist/_next/static/chunks/4138-2c16e6d2f22246cd.js +1 -0
  25. mage_ai/server/frontend_dist/_next/static/chunks/{5499-76cf8f023c6b0985.js → 5499-c2853ef57d39fde8.js} +1 -1
  26. mage_ai/server/frontend_dist/_next/static/chunks/6990-303bb87fc50f1755.js +1 -0
  27. mage_ai/server/frontend_dist/_next/static/chunks/{7858-d9df72e95e438284.js → 7858-26a5a5d04fa3c703.js} +1 -1
  28. mage_ai/server/frontend_dist/_next/static/chunks/8264-9d6a7cea289e29ff.js +1 -0
  29. mage_ai/server/frontend_dist/_next/static/chunks/8487-608d62c0eef1f29a.js +1 -0
  30. mage_ai/server/frontend_dist/_next/static/chunks/{1845-5ce774d5ab81ed57.js → 8731-2f78ec7b7760be8f.js} +1 -1
  31. mage_ai/server/frontend_dist/_next/static/chunks/90-93d18aaecef0685b.js +1 -0
  32. mage_ai/server/frontend_dist/_next/static/chunks/{9264-cc44b07f248707b0.js → 9264-727704fc34e74ae0.js} +1 -1
  33. mage_ai/server/frontend_dist/_next/static/chunks/9624-48fba6b4e6966fb7.js +1 -0
  34. mage_ai/server/frontend_dist/_next/static/chunks/pages/{_app-78c4a077a2f279c2.js → _app-8254de4f793643d0.js} +1 -1
  35. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/block-layout-a24cb24b6f08bbc9.js → frontend_dist/_next/static/chunks/pages/block-layout-b926f6eb1ee9a53b.js} +1 -1
  36. mage_ai/server/frontend_dist/_next/static/chunks/pages/compute-a9402b51e9fe748e.js +1 -0
  37. mage_ai/server/frontend_dist/_next/static/chunks/pages/{files-b37d221eb5ddc248.js → files-85cecae037fd7a70.js} +1 -1
  38. mage_ai/server/frontend_dist/_next/static/chunks/pages/global-data-products/{[...slug]-cfd68e760ae00958.js → [...slug]-c3c9523ea8072c11.js} +1 -1
  39. mage_ai/server/frontend_dist/_next/static/chunks/pages/{global-data-products-c3b79ef31007f95b.js → global-data-products-4d046f15202a1c8d.js} +1 -1
  40. mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks/{[...slug]-7adc543fc490367a.js → [...slug]-286133386c97a2b6.js} +1 -1
  41. mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks-3da370825153056c.js +1 -0
  42. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/{files-fe6e73463a20d67c.js → files-39b73da5a15590f6.js} +1 -1
  43. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/manage/settings-60845f0b59142f32.js → frontend_dist/_next/static/chunks/pages/manage/settings-666748ff5d101411.js} +1 -1
  44. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/[user]-9384c5f1efa2ac18.js → frontend_dist/_next/static/chunks/pages/manage/users/[user]-be27631e67dbe070.js} +1 -1
  45. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/{new-abd8571907664fdf.js → new-1932ce64823b372b.js} +1 -1
  46. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/manage/users-28a930b148d99766.js → frontend_dist/_next/static/chunks/pages/manage/users-ed509c75cf23f0f5.js} +1 -1
  47. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/manage-d8a38b5d1f50e798.js → frontend_dist/_next/static/chunks/pages/manage-1feebec1124123fc.js} +1 -1
  48. mage_ai/server/frontend_dist/_next/static/chunks/pages/{oauth-8bb62c4f6a511c43.js → oauth-e9b8f19c30381c28.js} +1 -1
  49. mage_ai/server/frontend_dist/_next/static/chunks/pages/{overview-f0c40645f385f23f.js → overview-7b2ba2d5405c05fe.js} +1 -1
  50. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipeline-runs-70fc3351bd11025f.js +1 -0
  51. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-6ee3b88a5bb4ce94.js +1 -0
  52. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-c9cf383bc13ce7b8.js +1 -0
  53. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{dashboard-571c0962333b92f0.js → dashboard-7bca6f718b939934.js} +1 -1
  54. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-c119f630038b0685.js +1 -0
  55. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-146051325c92d742.js +1 -0
  56. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-ddddcddd2f74b4f6.js → frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-15d307e6ba934a56.js} +1 -1
  57. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-4a238307feddb522.js → frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-f6196e563b960e5c.js} +1 -1
  58. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{monitors-6d1afeb4a84f50f7.js → monitors-25dbd73201d99e80.js} +1 -1
  59. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-06e55db757959ef8.js +1 -0
  60. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs-2d20b2cd08907afd.js → frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-ec3c45cfa027db58.js} +1 -1
  61. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-11363aa58d51f4e1.js → frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-495e877aa7ed709e.js} +1 -1
  62. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-49adfeed5157d92b.js +1 -0
  63. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-6143e028225390f5.js +1 -0
  64. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-0886f6320fef7131.js +1 -0
  65. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-e82a763d742cc034.js +1 -0
  66. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/settings/account/profile-3c8f062913c66f3e.js → frontend_dist/_next/static/chunks/pages/settings/account/profile-50d20fa715d454af.js} +1 -1
  67. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/permissions/{[...slug]-b78b1be5b9ed84b9.js → [...slug]-2bbd63b7e93a8600.js} +1 -1
  68. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{permissions-37b78a436eeab258.js → permissions-4ea156c39608caab.js} +1 -1
  69. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-f3c29ec53ee35795.js +1 -0
  70. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/roles/{[...slug]-db05a80d18c168e5.js → [...slug]-64ec8928d2542f3c.js} +1 -1
  71. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{roles-f55c77e4f46c8d33.js → roles-835e6ec2a48ec583.js} +1 -1
  72. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{sync-data-2a1f8737561fdd94.js → sync-data-0769149af025de30.js} +1 -1
  73. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users/{[...slug]-e3bf6e5d8bb250c4.js → [...slug]-612a65c42bcadef0.js} +1 -1
  74. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{users-20f0a050a42a015d.js → users-e3365b4029a8db33.js} +1 -1
  75. mage_ai/server/frontend_dist/_next/static/chunks/pages/{sign-in-99e2748e3c1d57a3.js → sign-in-f3a33e8f83abdb58.js} +1 -1
  76. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/templates/[...slug]-f44ccd1499ffd23a.js → frontend_dist/_next/static/chunks/pages/templates/[...slug]-f264097bf8120f31.js} +1 -1
  77. mage_ai/server/frontend_dist/_next/static/chunks/pages/{templates-1bfaa1c50e844813.js → templates-406e13cc5c4caab4.js} +1 -1
  78. mage_ai/server/frontend_dist/_next/static/chunks/pages/{terminal-ed121e305169cf1c.js → terminal-ef8ad878e5e7bb2f.js} +1 -1
  79. mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-a90728798f964700.js +1 -0
  80. mage_ai/server/frontend_dist/_next/static/chunks/pages/{version-control-dd4fb405695f74bf.js → version-control-0e0c2713a2922be7.js} +1 -1
  81. mage_ai/server/frontend_dist/_next/static/xxcdnITr3IkTdETH5ghqw/_buildManifest.js +1 -0
  82. mage_ai/server/frontend_dist/block-layout.html +2 -2
  83. mage_ai/server/frontend_dist/compute.html +5 -5
  84. mage_ai/server/frontend_dist/files.html +5 -5
  85. mage_ai/server/frontend_dist/global-data-products/[...slug].html +5 -5
  86. mage_ai/server/frontend_dist/global-data-products.html +5 -5
  87. mage_ai/server/frontend_dist/global-hooks/[...slug].html +5 -5
  88. mage_ai/server/frontend_dist/global-hooks.html +5 -5
  89. mage_ai/server/frontend_dist/index.html +2 -2
  90. mage_ai/server/frontend_dist/manage/files.html +5 -5
  91. mage_ai/server/frontend_dist/manage/settings.html +5 -5
  92. mage_ai/server/frontend_dist/manage/users/[user].html +5 -5
  93. mage_ai/server/frontend_dist/manage/users/new.html +5 -5
  94. mage_ai/server/frontend_dist/manage/users.html +5 -5
  95. mage_ai/server/frontend_dist/manage.html +5 -5
  96. mage_ai/server/frontend_dist/oauth.html +3 -3
  97. mage_ai/server/frontend_dist/overview.html +5 -5
  98. mage_ai/server/frontend_dist/pipeline-runs.html +5 -5
  99. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +5 -5
  100. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +5 -5
  101. mage_ai/server/frontend_dist/pipelines/[pipeline]/dashboard.html +5 -5
  102. mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +2 -2
  103. mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +5 -5
  104. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +5 -5
  105. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +5 -5
  106. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +5 -5
  107. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +5 -5
  108. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +5 -5
  109. mage_ai/server/frontend_dist/pipelines/[pipeline]/settings.html +5 -5
  110. mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +5 -5
  111. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +5 -5
  112. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +5 -5
  113. mage_ai/server/frontend_dist/pipelines/[pipeline].html +2 -2
  114. mage_ai/server/frontend_dist/pipelines.html +5 -5
  115. mage_ai/server/frontend_dist/settings/account/profile.html +5 -5
  116. mage_ai/server/frontend_dist/settings/workspace/permissions/[...slug].html +5 -5
  117. mage_ai/server/frontend_dist/settings/workspace/permissions.html +5 -5
  118. mage_ai/server/frontend_dist/settings/workspace/preferences.html +5 -5
  119. mage_ai/server/frontend_dist/settings/workspace/roles/[...slug].html +5 -5
  120. mage_ai/server/frontend_dist/settings/workspace/roles.html +5 -5
  121. mage_ai/server/frontend_dist/settings/workspace/sync-data.html +5 -5
  122. mage_ai/server/frontend_dist/settings/workspace/users/[...slug].html +5 -5
  123. mage_ai/server/frontend_dist/settings/workspace/users.html +5 -5
  124. mage_ai/server/frontend_dist/settings.html +2 -2
  125. mage_ai/server/frontend_dist/sign-in.html +11 -11
  126. mage_ai/server/frontend_dist/templates/[...slug].html +5 -5
  127. mage_ai/server/frontend_dist/templates.html +5 -5
  128. mage_ai/server/frontend_dist/terminal.html +5 -5
  129. mage_ai/server/frontend_dist/test.html +4 -4
  130. mage_ai/server/frontend_dist/triggers.html +5 -5
  131. mage_ai/server/frontend_dist/version-control.html +5 -5
  132. mage_ai/server/frontend_dist_base_path_template/404.html +2 -2
  133. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1952-0f9a12782f0aaae6.js +1 -0
  134. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2717-14191a781cf2f286.js +1 -0
  135. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3419-a7a52bcaaa687b07.js +1 -0
  136. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3437-e81a62f33337ca06.js +1 -0
  137. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3943-3cb1f765210dd7a4.js +1 -0
  138. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4138-2c16e6d2f22246cd.js +1 -0
  139. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{5499-76cf8f023c6b0985.js → 5499-c2853ef57d39fde8.js} +1 -1
  140. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6990-303bb87fc50f1755.js +1 -0
  141. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{7858-d9df72e95e438284.js → 7858-26a5a5d04fa3c703.js} +1 -1
  142. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8264-9d6a7cea289e29ff.js +1 -0
  143. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8487-608d62c0eef1f29a.js +1 -0
  144. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{1845-5ce774d5ab81ed57.js → 8731-2f78ec7b7760be8f.js} +1 -1
  145. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/90-93d18aaecef0685b.js +1 -0
  146. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{9264-cc44b07f248707b0.js → 9264-727704fc34e74ae0.js} +1 -1
  147. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9624-48fba6b4e6966fb7.js +1 -0
  148. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{_app-78c4a077a2f279c2.js → _app-8254de4f793643d0.js} +1 -1
  149. mage_ai/server/{frontend_dist/_next/static/chunks/pages/block-layout-a24cb24b6f08bbc9.js → frontend_dist_base_path_template/_next/static/chunks/pages/block-layout-b926f6eb1ee9a53b.js} +1 -1
  150. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/compute-a9402b51e9fe748e.js +1 -0
  151. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{files-b37d221eb5ddc248.js → files-85cecae037fd7a70.js} +1 -1
  152. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-data-products/{[...slug]-cfd68e760ae00958.js → [...slug]-c3c9523ea8072c11.js} +1 -1
  153. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{global-data-products-c3b79ef31007f95b.js → global-data-products-4d046f15202a1c8d.js} +1 -1
  154. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks/{[...slug]-7adc543fc490367a.js → [...slug]-286133386c97a2b6.js} +1 -1
  155. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks-3da370825153056c.js +1 -0
  156. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/{files-fe6e73463a20d67c.js → files-39b73da5a15590f6.js} +1 -1
  157. mage_ai/server/{frontend_dist/_next/static/chunks/pages/manage/settings-60845f0b59142f32.js → frontend_dist_base_path_template/_next/static/chunks/pages/manage/settings-666748ff5d101411.js} +1 -1
  158. mage_ai/server/{frontend_dist/_next/static/chunks/pages/manage/users/[user]-9384c5f1efa2ac18.js → frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/[user]-be27631e67dbe070.js} +1 -1
  159. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/{new-abd8571907664fdf.js → new-1932ce64823b372b.js} +1 -1
  160. mage_ai/server/{frontend_dist/_next/static/chunks/pages/manage/users-28a930b148d99766.js → frontend_dist_base_path_template/_next/static/chunks/pages/manage/users-ed509c75cf23f0f5.js} +1 -1
  161. mage_ai/server/{frontend_dist/_next/static/chunks/pages/manage-d8a38b5d1f50e798.js → frontend_dist_base_path_template/_next/static/chunks/pages/manage-1feebec1124123fc.js} +1 -1
  162. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{oauth-8bb62c4f6a511c43.js → oauth-e9b8f19c30381c28.js} +1 -1
  163. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{overview-f0c40645f385f23f.js → overview-7b2ba2d5405c05fe.js} +1 -1
  164. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipeline-runs-70fc3351bd11025f.js +1 -0
  165. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-6ee3b88a5bb4ce94.js +1 -0
  166. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-c9cf383bc13ce7b8.js +1 -0
  167. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/{dashboard-571c0962333b92f0.js → dashboard-7bca6f718b939934.js} +1 -1
  168. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-c119f630038b0685.js +1 -0
  169. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/logs-146051325c92d742.js +1 -0
  170. mage_ai/server/{frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-ddddcddd2f74b4f6.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-15d307e6ba934a56.js} +1 -1
  171. mage_ai/server/{frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-4a238307feddb522.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-f6196e563b960e5c.js} +1 -1
  172. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/{monitors-6d1afeb4a84f50f7.js → monitors-25dbd73201d99e80.js} +1 -1
  173. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-06e55db757959ef8.js +1 -0
  174. mage_ai/server/{frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-2d20b2cd08907afd.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs-ec3c45cfa027db58.js} +1 -1
  175. mage_ai/server/{frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-11363aa58d51f4e1.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-495e877aa7ed709e.js} +1 -1
  176. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/syncs-49adfeed5157d92b.js +1 -0
  177. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-6143e028225390f5.js +1 -0
  178. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers-0886f6320fef7131.js +1 -0
  179. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-e82a763d742cc034.js +1 -0
  180. mage_ai/server/{frontend_dist/_next/static/chunks/pages/settings/account/profile-3c8f062913c66f3e.js → frontend_dist_base_path_template/_next/static/chunks/pages/settings/account/profile-50d20fa715d454af.js} +1 -1
  181. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/permissions/{[...slug]-b78b1be5b9ed84b9.js → [...slug]-2bbd63b7e93a8600.js} +1 -1
  182. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{permissions-37b78a436eeab258.js → permissions-4ea156c39608caab.js} +1 -1
  183. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-f3c29ec53ee35795.js +1 -0
  184. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/roles/{[...slug]-db05a80d18c168e5.js → [...slug]-64ec8928d2542f3c.js} +1 -1
  185. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{roles-f55c77e4f46c8d33.js → roles-835e6ec2a48ec583.js} +1 -1
  186. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{sync-data-2a1f8737561fdd94.js → sync-data-0769149af025de30.js} +1 -1
  187. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/users/{[...slug]-e3bf6e5d8bb250c4.js → [...slug]-612a65c42bcadef0.js} +1 -1
  188. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{users-20f0a050a42a015d.js → users-e3365b4029a8db33.js} +1 -1
  189. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{sign-in-99e2748e3c1d57a3.js → sign-in-f3a33e8f83abdb58.js} +1 -1
  190. mage_ai/server/{frontend_dist/_next/static/chunks/pages/templates/[...slug]-f44ccd1499ffd23a.js → frontend_dist_base_path_template/_next/static/chunks/pages/templates/[...slug]-f264097bf8120f31.js} +1 -1
  191. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{templates-1bfaa1c50e844813.js → templates-406e13cc5c4caab4.js} +1 -1
  192. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{terminal-ed121e305169cf1c.js → terminal-ef8ad878e5e7bb2f.js} +1 -1
  193. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/triggers-a90728798f964700.js +1 -0
  194. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{version-control-dd4fb405695f74bf.js → version-control-0e0c2713a2922be7.js} +1 -1
  195. mage_ai/server/frontend_dist_base_path_template/_next/static/gDn6inKdLyj35NvURBSCV/_buildManifest.js +1 -0
  196. mage_ai/server/frontend_dist_base_path_template/block-layout.html +2 -2
  197. mage_ai/server/frontend_dist_base_path_template/compute.html +5 -5
  198. mage_ai/server/frontend_dist_base_path_template/files.html +5 -5
  199. mage_ai/server/frontend_dist_base_path_template/global-data-products/[...slug].html +5 -5
  200. mage_ai/server/frontend_dist_base_path_template/global-data-products.html +5 -5
  201. mage_ai/server/frontend_dist_base_path_template/global-hooks/[...slug].html +5 -5
  202. mage_ai/server/frontend_dist_base_path_template/global-hooks.html +5 -5
  203. mage_ai/server/frontend_dist_base_path_template/index.html +2 -2
  204. mage_ai/server/frontend_dist_base_path_template/manage/files.html +5 -5
  205. mage_ai/server/frontend_dist_base_path_template/manage/settings.html +5 -5
  206. mage_ai/server/frontend_dist_base_path_template/manage/users/[user].html +5 -5
  207. mage_ai/server/frontend_dist_base_path_template/manage/users/new.html +5 -5
  208. mage_ai/server/frontend_dist_base_path_template/manage/users.html +5 -5
  209. mage_ai/server/frontend_dist_base_path_template/manage.html +5 -5
  210. mage_ai/server/frontend_dist_base_path_template/oauth.html +3 -3
  211. mage_ai/server/frontend_dist_base_path_template/overview.html +5 -5
  212. mage_ai/server/frontend_dist_base_path_template/pipeline-runs.html +5 -5
  213. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills/[...slug].html +5 -5
  214. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills.html +5 -5
  215. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/dashboard.html +5 -5
  216. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/edit.html +2 -2
  217. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/logs.html +5 -5
  218. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runs.html +5 -5
  219. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runtime.html +5 -5
  220. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors.html +5 -5
  221. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs/[run].html +5 -5
  222. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs.html +5 -5
  223. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/settings.html +5 -5
  224. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/syncs.html +5 -5
  225. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers/[...slug].html +5 -5
  226. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers.html +5 -5
  227. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline].html +2 -2
  228. mage_ai/server/frontend_dist_base_path_template/pipelines.html +5 -5
  229. mage_ai/server/frontend_dist_base_path_template/settings/account/profile.html +5 -5
  230. mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions/[...slug].html +5 -5
  231. mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions.html +5 -5
  232. mage_ai/server/frontend_dist_base_path_template/settings/workspace/preferences.html +5 -5
  233. mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles/[...slug].html +5 -5
  234. mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles.html +5 -5
  235. mage_ai/server/frontend_dist_base_path_template/settings/workspace/sync-data.html +5 -5
  236. mage_ai/server/frontend_dist_base_path_template/settings/workspace/users/[...slug].html +5 -5
  237. mage_ai/server/frontend_dist_base_path_template/settings/workspace/users.html +5 -5
  238. mage_ai/server/frontend_dist_base_path_template/settings.html +2 -2
  239. mage_ai/server/frontend_dist_base_path_template/sign-in.html +10 -10
  240. mage_ai/server/frontend_dist_base_path_template/templates/[...slug].html +5 -5
  241. mage_ai/server/frontend_dist_base_path_template/templates.html +5 -5
  242. mage_ai/server/frontend_dist_base_path_template/terminal.html +5 -5
  243. mage_ai/server/frontend_dist_base_path_template/test.html +4 -4
  244. mage_ai/server/frontend_dist_base_path_template/triggers.html +5 -5
  245. mage_ai/server/frontend_dist_base_path_template/version-control.html +5 -5
  246. mage_ai/server/server.py +2 -0
  247. mage_ai/streaming/sources/nats_js.py +12 -1
  248. mage_ai/tests/data_preparation/executors/test_block_executor.py +2 -0
  249. mage_ai/tests/data_preparation/models/test_pipeline.py +5 -0
  250. {mage_ai-0.9.47.dist-info → mage_ai-0.9.48.dist-info}/METADATA +3 -3
  251. {mage_ai-0.9.47.dist-info → mage_ai-0.9.48.dist-info}/RECORD +257 -257
  252. mage_ai/server/frontend_dist/_next/static/N3FS4bHv0jpYeeg672uYK/_buildManifest.js +0 -1
  253. mage_ai/server/frontend_dist/_next/static/chunks/1952-57858e7445d24413.js +0 -1
  254. mage_ai/server/frontend_dist/_next/static/chunks/2717-92cdffd87b6f6e05.js +0 -1
  255. mage_ai/server/frontend_dist/_next/static/chunks/3419-715ca383fa15a5ef.js +0 -1
  256. mage_ai/server/frontend_dist/_next/static/chunks/3437-b4d6a037cf5781f8.js +0 -1
  257. mage_ai/server/frontend_dist/_next/static/chunks/3943-c9fb980f03df6450.js +0 -1
  258. mage_ai/server/frontend_dist/_next/static/chunks/600-705fe234320ec5de.js +0 -1
  259. mage_ai/server/frontend_dist/_next/static/chunks/722-900f786d24f91b2e.js +0 -1
  260. mage_ai/server/frontend_dist/_next/static/chunks/8264-0d582a6ca33c3dfa.js +0 -1
  261. mage_ai/server/frontend_dist/_next/static/chunks/8487-8e1c09546dff4dbf.js +0 -1
  262. mage_ai/server/frontend_dist/_next/static/chunks/90-a7308bae028d7001.js +0 -1
  263. mage_ai/server/frontend_dist/_next/static/chunks/9624-334e7db5c84cb4ea.js +0 -1
  264. mage_ai/server/frontend_dist/_next/static/chunks/pages/compute-419775ca1293b354.js +0 -1
  265. mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks-51d366993f6dd449.js +0 -1
  266. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipeline-runs-b35d37bfba8fbccc.js +0 -1
  267. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-9adc2974aada27ba.js +0 -1
  268. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-51b1311dff2a974e.js +0 -1
  269. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-2333e524d34b474a.js +0 -1
  270. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-ef680455ae54ccbe.js +0 -1
  271. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-1ff9bb8e22ca1e75.js +0 -1
  272. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-b75bf17498e87354.js +0 -1
  273. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-779c3ef0676a12ac.js +0 -1
  274. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-bbea9a088657404a.js +0 -1
  275. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-3737f2b0afc2ede3.js +0 -1
  276. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-c1f4ed17d501ccca.js +0 -1
  277. mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-8bdd858240d5dbf6.js +0 -1
  278. mage_ai/server/frontend_dist_base_path_template/_next/static/aoO6jYZLVlUGCCdY-wmy8/_buildManifest.js +0 -1
  279. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1952-57858e7445d24413.js +0 -1
  280. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2717-92cdffd87b6f6e05.js +0 -1
  281. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3419-715ca383fa15a5ef.js +0 -1
  282. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3437-b4d6a037cf5781f8.js +0 -1
  283. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3943-c9fb980f03df6450.js +0 -1
  284. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/600-705fe234320ec5de.js +0 -1
  285. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/722-900f786d24f91b2e.js +0 -1
  286. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8264-0d582a6ca33c3dfa.js +0 -1
  287. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8487-8e1c09546dff4dbf.js +0 -1
  288. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/90-a7308bae028d7001.js +0 -1
  289. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9624-334e7db5c84cb4ea.js +0 -1
  290. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/compute-419775ca1293b354.js +0 -1
  291. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks-51d366993f6dd449.js +0 -1
  292. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipeline-runs-b35d37bfba8fbccc.js +0 -1
  293. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-9adc2974aada27ba.js +0 -1
  294. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-51b1311dff2a974e.js +0 -1
  295. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-2333e524d34b474a.js +0 -1
  296. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/logs-ef680455ae54ccbe.js +0 -1
  297. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-1ff9bb8e22ca1e75.js +0 -1
  298. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/syncs-b75bf17498e87354.js +0 -1
  299. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-779c3ef0676a12ac.js +0 -1
  300. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers-bbea9a088657404a.js +0 -1
  301. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-3737f2b0afc2ede3.js +0 -1
  302. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-c1f4ed17d501ccca.js +0 -1
  303. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/triggers-8bdd858240d5dbf6.js +0 -1
  304. /mage_ai/server/frontend_dist/_next/static/{N3FS4bHv0jpYeeg672uYK → xxcdnITr3IkTdETH5ghqw}/_ssgManifest.js +0 -0
  305. /mage_ai/server/frontend_dist_base_path_template/_next/static/{aoO6jYZLVlUGCCdY-wmy8 → gDn6inKdLyj35NvURBSCV}/_ssgManifest.js +0 -0
  306. {mage_ai-0.9.47.dist-info → mage_ai-0.9.48.dist-info}/LICENSE +0 -0
  307. {mage_ai-0.9.47.dist-info → mage_ai-0.9.48.dist-info}/WHEEL +0 -0
  308. {mage_ai-0.9.47.dist-info → mage_ai-0.9.48.dist-info}/entry_points.txt +0 -0
  309. {mage_ai-0.9.47.dist-info → mage_ai-0.9.48.dist-info}/top_level.txt +0 -0
@@ -1 +0,0 @@
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}})}}]);
@@ -1 +0,0 @@
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})]})})})}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[600],{54750:function(n,e,t){var o=t(82394),r=t(12691),i=t.n(r),c=t(55485),a=t(48670),u=t(38276),d=t(30160),l=t(72473),s=t(28598),p=t(82684);function f(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 h(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?f(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}e.Z=function(n){var e=n.breadcrumbs,t=n.noMarginLeft,o=e.length,r=[];return e.forEach((function(n,e){var c=n.bold,f=n.danger,g=n.label,b=n.linkProps,m=n.monospace,v=void 0===m||m,y=n.onClick,x=g();o>=2&&e>=1&&r.push((0,s.jsx)(u.Z,{mx:1,children:(0,s.jsx)(l._Q,{muted:!0})},"divider-".concat(x)));var O=(0,s.jsx)(d.ZP,{bold:c,danger:f,default:!c,monospace:v,children:x}),P=(0,s.jsx)(u.Z,{ml:t||0!==e?0:2,children:O},"breadcrumb-".concat(x));b?P=(0,p.createElement)(i(),h(h({},b),{},{key:"breadcrumb-link-".concat(x),passHref:!0}),(0,s.jsx)(a.Z,{block:!0,default:!c,noOutline:!0,sameColorAsText:c,children:P})):y&&(P=(0,s.jsx)(a.Z,{block:!0,default:!c,noOutline:!0,onClick:y,preventDefault:!0,sameColorAsText:c,children:P})),r.push(P)})),(0,s.jsx)(c.ZP,{alignItems:"center",children:r})}},46684:function(n,e,t){t.d(e,{I5:function(){return u},Mz:function(){return a},y7:function(){return c}});var o=t(38626),r=t(44897),i=t(70515),c=2.5*i.iI,a=6*i.iI,u=o.default.div.withConfig({displayName:"indexstyle__HeaderStyle",componentId:"sc-1bk8irg-0"})(["height:","px;left:0;padding-left:","px;padding-right:","px;position:fixed;top:0;width:100%;z-index:10;",""],a,2*i.iI,2*i.iI,(function(n){return"\n background-color: ".concat((n.theme.background||r.Z.background).panel,";\n border-bottom: 1px solid ").concat((n.theme.borders||r.Z.borders).medium,";\n ")}))},58036:function(n,e,t){var o=t(82684),r=t(28598);e.Z=function(n){var e=n.children,t=(0,o.useState)(!1),i=t[0],c=t[1];return(0,o.useEffect)((function(){c(!0)}),[]),i?e:(0,r.jsx)("div",{})}},89370:function(n,e,t){t.d(e,{P_:function(){return c},RL:function(){return r},Rp:function(){return a}});var o,r,i=t(82394);!function(n){n.CATEGORY="category",n.CATEGORY_HIGH_CARDINALITY="category_high_cardinality",n.DATETIME="datetime",n.EMAIL="email",n.LIST="list",n.NUMBER="number",n.NUMBER_WITH_DECIMALS="number_with_decimals",n.PHONE_NUMBER="phone_number",n.TEXT="text",n.TRUE_OR_FALSE="true_or_false",n.UUID="uuid",n.ZIP_CODE="zip_code"}(r||(r={}));r.NUMBER,r.NUMBER_WITH_DECIMALS,r.NUMBER,r.NUMBER_WITH_DECIMALS,r.DATETIME,r.NUMBER,r.NUMBER_WITH_DECIMALS,r.CATEGORY,r.CATEGORY_HIGH_CARDINALITY,r.DATETIME,r.EMAIL,r.PHONE_NUMBER,r.TEXT,r.TRUE_OR_FALSE,r.CATEGORY,r.CATEGORY_HIGH_CARDINALITY,r.DATETIME,r.EMAIL,r.PHONE_NUMBER,r.TEXT;var c=[r.CATEGORY,r.CATEGORY_HIGH_CARDINALITY],a=(o={},(0,i.Z)(o,r.NUMBER,"Number"),(0,i.Z)(o,r.NUMBER_WITH_DECIMALS,"Decimal number"),(0,i.Z)(o,r.CATEGORY,"Category"),(0,i.Z)(o,r.CATEGORY_HIGH_CARDINALITY,"Category (high cardinality)"),(0,i.Z)(o,r.DATETIME,"Date/Time"),(0,i.Z)(o,r.EMAIL,"Email"),(0,i.Z)(o,r.LIST,"List"),(0,i.Z)(o,r.PHONE_NUMBER,"Phone number"),(0,i.Z)(o,r.TEXT,"Text"),(0,i.Z)(o,r.TRUE_OR_FALSE,"Boolean"),(0,i.Z)(o,r.ZIP_CODE,"Zip code"),o)},70374:function(n,e,t){t.d(e,{Z:function(){return S}});var o=t(82394),r=t(82684),i=t(12691),c=t.n(i),a=t(34376),u=t(97618),d=t(55485),l=t(49130),s=t(38276),p=t(30160),f=t(12468),h=t(72473),g=t(38626),b=t(44897),m=t(42631),v=t(47041),y=t(70515),x=g.default.div.withConfig({displayName:"indexstyle__FlyoutMenuContainerStyle",componentId:"sc-1o7k6f4-0"})([""," position:absolute;max-height:","px;z-index:1;"," "," "," ",""],v.w5,58*y.iI,(function(n){return n.width&&"\n min-width: 0px;\n width: ".concat(n.width,"px;\n ")}),(function(n){var e=n.maxHeight;return e&&"\n max-height: ".concat(e,"px;\n overflow: auto;\n ")}),(function(n){return"\n box-shadow: ".concat((n.theme.shadow||b.Z.shadow).popup,";\n\n &:hover {\n background-color: ").concat((n.theme.interactive||b.Z.interactive).hoverBackground,";\n }\n ")}),(function(n){return n.roundedStyle&&"\n border: ".concat(m.YF,"px ").concat(m.M8," ").concat((n.theme||b.Z).borders.button,";\n border-radius: ").concat(m.n_,"px;\n\n div:first-child {\n border-top-left-radius: ").concat(m.n_,"px;\n border-top-right-radius: ").concat(m.n_,"px;\n }\n\n div:last-child {\n border-bottom-left-radius: ").concat(m.n_,"px;\n border-bottom-right-radius: ").concat(m.n_,"px;\n }\n ")})),O=g.default.div.withConfig({displayName:"indexstyle__TitleContainerStyle",componentId:"sc-1o7k6f4-1"})(["padding:","px;padding-bottom:0;"," ",""],y.iI,(function(n){return"\n background-color: ".concat((n.theme||b.Z).background.popup,";\n ")}),(function(n){return n.roundedStyle&&"\n background-color: ".concat((n.theme||b.Z).interactive.defaultBackground,";\n border-bottom: ").concat(m.YF,"px ").concat(m.M8," ").concat((n.theme||b.Z).borders.medium,";\n padding-bottom: ").concat(y.iI,"px;\n ")})),P=(0,g.css)(["justify-content:space-between;padding:","px;"," "," "," "," "," "," ",""],y.iI,(function(n){return n.largePadding&&"\n padding: ".concat(1.5*y.iI,"px;\n padding-right: ").concat(6*y.iI,"px;\n ")}),(function(n){return!n.disabled&&"\n &:hover {\n background-color: ".concat((n.theme.interactive||b.Z.interactive).hoverBackground,";\n cursor: pointer;\n }\n ")}),(function(n){return"\n background-color: ".concat((n.theme.background||b.Z.background).popup,";\n ")}),(function(n){return n.alternateBackground&&"\n background-color: ".concat((n.theme.interactive||b.Z.interactive).defaultBackground,";\n ")}),(function(n){return n.disabled&&"\n color: ".concat((n.theme.content||b.Z.content).disabled,";\n cursor: not-allowed;\n\n &:hover {\n color: ").concat((n.theme.content||b.Z.content).disabled,";\n }\n ")}),(function(n){return n.indent&&"\n padding-left: ".concat(2*y.iI,"px;\n ")}),(function(n){return n.highlighted&&"\n background-color: ".concat((n.theme.interactive||b.Z.interactive).hoverBackground,";\n ")})),w=g.default.div.withConfig({displayName:"indexstyle__LinkStyle",componentId:"sc-1o7k6f4-2"})(["",""],P),k=g.default.a.withConfig({displayName:"indexstyle__LinkAnchorStyle",componentId:"sc-1o7k6f4-3"})([""," display:block;"],P),j=t(39643),I=t(3314),Z=t(44688),T=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 C(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}var _=4.5*y.iI;var S=function(n){var e,t,i=n.alternateBackground,g=n.customSubmenuHeights,b=n.disableKeyboardShortcuts,m=n.items,v=n.left,y=n.multipleConfirmDialogues,P=n.onClickCallback,E=n.open,S=n.parentRef,D=n.rightOffset,B=n.roundedStyle,R=n.setConfirmationAction,N=n.setConfirmationDialogueOpen,M=n.topOffset,A=void 0===M?0:M,H=n.uuid,L=n.width,U=(0,r.useState)([]),W=U[0],G=U[1],z=(0,r.useState)({}),F=z[0],Y=z[1],K=(0,r.useState)(0),V=K[0],q=K[1],X=(0,r.useState)(0),Q=X[0],$=X[1],J=(0,r.useState)(0),nn=J[0],en=J[1],tn=((null===S||void 0===S||null===(e=S.current)||void 0===e||null===(t=e.getBoundingClientRect)||void 0===t?void 0:t.call(e))||{}).height,on=(0,r.useRef)({}),rn=(0,r.useRef)(null),cn=(0,a.useRouter)(),an=(0,Z.y)(),un=an.registerOnKeyDown,dn=an.unregisterOnKeyDown;return(0,r.useEffect)((function(){return function(){dn(H)}}),[dn,H]),un(H,(function(n,e,t){if(E)if(b)(0,I.j)(n);else{var o=W[0];if(e[j.kD])(0,I.j)(n),"undefined"===typeof o||o===m.length-1?G([0]):G([o+1]);else if(e[j.Bu])(0,I.j)(n),G("undefined"===typeof o||0===o?[m.length-1]:[o-1]);else if(e[j.Uq]&&"undefined"!==typeof o){var r,i=m[o];if(i)if(null!==i&&void 0!==i&&i.onClick)null===i||void 0===i||null===(r=i.onClick)||void 0===r||r.call(i);else if(null!==i&&void 0!==i&&i.linkProps){var c,a;cn.push(null===i||void 0===i||null===(c=i.linkProps)||void 0===c?void 0:c.href,null===i||void 0===i||null===(a=i.linkProps)||void 0===a?void 0:a.as)}null===P||void 0===P||P()}else null===m||void 0===m||m.forEach((function(n){var o=n.keyboardShortcutValidation;null===o||void 0===o||o({keyHistory:t,keyMapping:e})}))}}),[W,m,P,E,G]),(0,r.useEffect)((function(){E||G([])}),[E]),m?function n(e,t,a){var b=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,m=arguments.length>4?arguments[4]:void 0;b+=1;var j=null===g||void 0===g?void 0:g.hasOwnProperty(t),I=j?null===g||void 0===g?void 0:g[t]:null,Z=j?(null===g||void 0===g?void 0:g[t])-_:0;return(0,T.jsx)(x,{maxHeight:I,roundedStyle:B,style:{display:a||F[t]?null:"none",left:"undefined"===typeof D&&(1===b?v||0:"100%"),right:1===b?D:null,top:(1===b?(tn||0)+A:(2===b?V:3===b?Q:nn)||0)-Z},width:L,children:null===e||void 0===e?void 0:e.map((function(e,t){var a=e.beforeIcon,g=e.bold,v=e.disabled,x=e.items,j=e.indent,I=e.isGroupingTitle,Z=e.keyTextGroups,E=e.label,_=e.leftAligned,S=e.linkProps,D=e.onClick,M=e.openConfirmationDialogue,A=e.tooltip,H=e.uuid;m.current[H]=(0,r.createRef)();var L=S?k:w,U=E();if(I)return(0,T.jsxs)(O,{roundedStyle:B,children:["string"===typeof U&&(0,T.jsx)(p.ZP,{bold:!0,muted:!0,noWrapping:!0,children:U}),"string"!==typeof U&&U]},H);var G=(0,T.jsxs)(L,{alternateBackground:i||B,disabled:v,highlighted:W[0]===t,indent:j,largePadding:B,onClick:function(n){S||n.preventDefault(),M&&!v?(null===N||void 0===N||N(!y||H),null===R||void 0===R||R((function(){return D})),null===P||void 0===P||P()):D&&!v&&(null===D||void 0===D||D(),null===P||void 0===P||P())},onMouseEnter:function(){var n,e;if(Y((function(n){return C(C({},n),{},(0,o.Z)({},H,!0))})),1===b)q((null===(n=m.current[H])||void 0===n||null===(e=n.current)||void 0===e?void 0:e.offsetTop)||0);else if(2===b){var t,r;$((null===(t=m.current[H])||void 0===t||null===(r=t.current)||void 0===r?void 0:r.offsetTop)||0)}else if(3===b){var i,c;en((null===(i=m.current[H])||void 0===i||null===(c=i.current)||void 0===c?void 0:c.offsetTop)||0)}},onMouseLeave:function(){Y((function(n){return C(C({},n),{},(0,o.Z)({},H,!1))}))},ref:m.current[H],children:[(0,T.jsxs)(d.ZP,{alignItems:"center",fullWidth:!0,justifyContent:_?"flex-start":"space-between",children:[(a||"string"===typeof U)&&(0,T.jsxs)(u.Z,{alignItems:"center",children:[a&&(0,T.jsxs)(T.Fragment,{children:[a,(0,T.jsx)(s.Z,{mr:1})]}),"string"===typeof U&&(0,T.jsx)(p.ZP,{bold:g,disabled:v,noWrapping:!0,children:(0,T.jsx)("div",{role:"menuitem",children:U})})]}),"string"!==typeof U&&U,x&&(0,T.jsx)(s.Z,{ml:2,children:(0,T.jsx)(h._Q,{})}),Z&&(0,T.jsx)(s.Z,{ml:4,ref:rn,children:(0,T.jsx)(l.Z,{keyTextGroups:Z})})]}),x&&n(x,H,!1,b,m)]},H);return A&&(G=(0,T.jsx)(f.Z,{appearBefore:!0,block:!0,center:!0,description:A(),size:null,widthFitContent:!0,children:G})),S?(0,r.createElement)(c(),C(C({},S),{},{key:H,passHref:!0}),G):G}))})}(m,void 0,E,0,on):null}},12468:function(n,e,t){t.d(e,{Z:function(){return C}});var o=t(82394),r=t(26304),i=t(82684),c=t(38626),a=t(55485),u=t(30160),d=t(44897),l=t(42631),s=t(70515),p=t(71180),f=t(91437),h=t(28598),g=(0,c.css)(["position:static;"," "," "," ",""],(function(n){return n.relativePosition&&"\n position: relative;\n "}),(function(n){return n.height&&"\n height: ".concat(n.height,"px;\n ")}),(function(n){return n.size&&"\n height: ".concat(n.size,"px;\n ")}),(function(n){return n.fullSize&&"\n height: 100%;\n "})),b=c.default.div.withConfig({displayName:"TooltipWrapper__ContainerStyle",componentId:"sc-1dd57l8-0"})(["",""],g),m=c.default.span.withConfig({displayName:"TooltipWrapper__ContainerSpanStyle",componentId:"sc-1dd57l8-1"})(["",""],g),v=c.default.div.withConfig({displayName:"TooltipWrapper__HoverStyle",componentId:"sc-1dd57l8-2"})([""," "," "," border-radius:50%;"," "," &:active,&:focus{outline:none;}"," ",""],(0,f.eR)(),(function(n){return n.size&&"\n height: ".concat(n.size,"px;\n width: ").concat(n.size,"px;\n ")}),(function(n){return n.fullSize&&"\n height: 100%;\n width: 100%;\n "}),(function(n){return!n.block&&"\n display: inline-block;\n "}),(function(n){return n.block&&"\n display: block;\n "}),(function(n){return n.noHoverOutline&&"\n &:hover {\n cursor: pointer;\n }\n "}),(function(n){return!n.noHoverOutline&&"\n &:hover {\n cursor: pointer;\n\n box-shadow:\n 0 0 0 ".concat(l.PV,"px ").concat((0,p.W5)(n),",\n 0 0 0 ").concat(l.PV+l.q2,"px ").concat((n.theme.interactive||d.Z.interactive).hoverOverlay,";\n }\n ")})),y=c.default.span.withConfig({displayName:"TooltipWrapper__BasicStyle",componentId:"sc-1dd57l8-3"})([""]),x=c.default.div.withConfig({displayName:"TooltipWrapper__ContentStyle",componentId:"sc-1dd57l8-4"})(["position:absolute;z-index:3;"," "," "," "," "," "," "," "," "," "," ",""],(function(n){return"\n box-shadow: ".concat((n.theme.shadow||d.Z.shadow).base,";\n ")}),(function(n){return n.lightBackground&&"\n box-shadow: ".concat((n.theme.shadow||d.Z.shadow).window,";\n ")}),(function(n){return n.appearAbove&&!n.size&&"\n bottom: 0;\n "}),(function(n){return n.appearAbove&&n.size&&"\n bottom: ".concat(n.size+l.PV+l.q2,"px;\n ")}),(function(n){return n.appearBefore&&"\n right: ".concat(2*s.iI,"px;\n ")}),(function(n){return n.leftPosition&&"\n left: ".concat(n.leftPosition,"px;\n ")}),(function(n){return!n.leftPosition&&n.rightPosition&&"\n right: 0px;\n "}),(function(n){return n.minWidth&&"\n min-width: ".concat(n.minWidth,"px;\n ")}),(function(n){return n.widthFitContent&&"\n width: max-content;\n "}),(function(n){return n.topOffset&&"\n top: ".concat(n.topOffset,"px;\n ")}),(function(n){return n.bottomOffset&&"\n bottom: ".concat(n.bottomOffset,"px;\n ")}));var O=function(n){var e=n.alignLeft,t=n.appearAbove,o=n.appearBefore,r=n.autoHide,c=n.autoWidth,a=n.basic,u=n.block,d=n.bottomOffset,l=n.center,p=n.children,f=n.content,g=n.forceVisible,O=void 0!==g&&g,P=n.fullSize,w=n.height,k=n.inline,j=n.lightBackground,I=n.minWidth,Z=n.noHoverOutline,T=n.relativePosition,E=n.size,C=void 0===E?2*s.iI:E,_=n.topOffset,S=n.visibleDelay,D=void 0===S?1e3:S,B=n.widthFitContent,R=(0,i.useState)(!1),N=R[0],M=R[1],A=(0,i.useState)(!1),H=A[0],L=A[1],U=(I-C)/-2,W=k?m:b,G=a?y:v,z=(0,h.jsx)(G,{block:u,fullSize:P,href:"#",noHoverOutline:Z,onClick:function(n){return n.preventDefault()},onMouseEnter:function(){return M(!0)},size:C,children:p});return(0,i.useEffect)((function(){var n=setInterval((function(){return L(!0)}),D);return N||clearInterval(n),r&&setTimeout((function(){M(!1),L(!1)}),3*D),function(){return clearInterval(n)}}),[r,L,D,N]),(0,h.jsxs)(W,{fullSize:P,height:w,onMouseLeave:function(){M(!1),L(!1)},relativePosition:T,size:C,children:[z,(H||O)&&(0,h.jsx)(x,{appearAbove:t,appearBefore:o,bottomOffset:d,leftPosition:l?U:null,lightBackground:j,minWidth:c?I:null,rightPosition:e,size:C,topOffset:_,widthFitContent:B,children:f})]})},P=t(72473),w=["autoWidth","children","default","description","inverted","keyboardShortcuts","label","lightBackground","maxWidth","muted","primary","size","warning","widthFitContent"];function k(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 j(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?k(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):k(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var I=42*s.iI,Z=(0,c.css)(["border-radius:","px;"," "," "," ",""],l.BG,(function(n){return"\n box-shadow: ".concat((n.theme.shadow||d.Z.shadow).popup,";\n background-color: ").concat((n.theme.background||d.Z.background).popup,";\n ")}),(function(n){return n.lightBackground&&"\n background-color: ".concat((n.theme.interactive||d.Z.interactive).defaultBackground,";\n ")}),(function(n){return n.width&&!(n.widthFitContent||n.autoWidth)&&"\n width: ".concat(n.width,"px;\n ")}),(function(n){return!n.width&&!(n.widthFitContent||n.autoWidth)&&"\n width: ".concat(I,"px;\n ")})),T=c.default.div.withConfig({displayName:"Tooltip__LabelStyle",componentId:"sc-allmdq-0"})([""," padding:","px ","px;"],Z,.75*s.iI,1*s.iI),E=c.default.div.withConfig({displayName:"Tooltip__DescriptionStyle",componentId:"sc-allmdq-1"})([""," padding:","px ","px;"],Z,1.5*s.iI,2*s.iI);var C=function(n){var e=n.autoWidth,t=n.children,o=n.default,c=n.description,d=n.inverted,l=n.keyboardShortcuts,p=n.label,f=n.lightBackground,g=n.maxWidth,b=n.muted,m=n.primary,v=n.size,y=void 0===v?2*s.iI:v,x=n.warning,k=n.widthFitContent,Z=(0,r.Z)(n,w),C=c||p||"",_=c?E:T,S=Math.min(g||I,C.length*s.Fo),D=[];null===l||void 0===l||l.forEach((function(n,e){e>=1&&D.push((0,h.jsx)(u.ZP,{default:!0,children:"+"})),D.push(n)}));var B=D.map((function(n,e){var t="keyboard-shortcut-".concat(e);return"string"===typeof n?(0,h.jsx)("span",{children:n},t):i.cloneElement(n,{key:t})}));return(0,h.jsx)(O,j(j({},Z),{},{autoWidth:e,content:(0,h.jsx)(_,{autoWidth:e,lightBackground:f,width:g,widthFitContent:k,children:(0,h.jsxs)(a.ZP,{alignItems:"center",children:[(0,h.jsx)(u.ZP,{whiteSpaceNormal:!0,children:C}),B.length>=1&&(0,h.jsx)(u.ZP,{muted:!0,children:"\xa0\xa0\xa0\u2022\xa0\xa0\xa0"}),B.length>=1&&B]})}),lightBackground:f,minWidth:S,noHoverOutline:!!t,size:y,widthFitContent:k,children:t||(0,h.jsx)(P.kI,{default:o,inverted:d,muted:b,primary:m,size:y,warning:x})}))}},93369:function(n,e,t){t.d(e,{ZP:function(){return on}});var o=t(82394),r=t(26304),i=t(82684),c=t(12691),a=t.n(c),u=t(38626),d=t(97618),l=t(49130),s=t(34376),p=t(50178);function f(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 h(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?f(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function g(){var n,e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return h(h({},t),{},{groupId:null===(n=(0,p.ex)())||void 0===n?void 0:n.id,id:null===(e=(0,p.PR)())||void 0===e?void 0:e.id})}var b=t(75582),m=t(39421),v=t(39487);function y(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 x(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?y(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):y(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function O(){return[[v.go,"initialAsPath"],[v.iT,"initialPathname"],[v.FT,"notificationTemplate"],[v.Ll,"notificationUUID"],[v.$m,"referringURL"]].reduce((function(n,e){var t=(0,b.Z)(e,2),r=t[0],i=t[1];return x(x({},n),{},(0,o.Z)({},i,m.Z.get(r,v.vZ)))}),{})}var P=t(63055);function w(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 k(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?w(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):w(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var j="click",I="button";function Z(n){var e,t,o=n.actionName,r=n.actionType,i=n.componentName,c=n.componentType,a=n.properties,u=n.screenName,d=(e=o||r,t=i||c,"".concat(u,".").concat(e,"_").concat(t)),l=function(){var n,e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=O(),r=(null!==t&&void 0!==t&&t.width,window.innerWidth);return k(k(k({},t),o),{},{groupId:null===(n=(0,p.ex)())||void 0===n?void 0:n.id,partner_id:"Mage",screenSize:(0,P.Z3)(r),userId:null===(e=(0,p.PR)())||void 0===e?void 0:e.id})}(k({actionType:r,componentType:c},a));return{eventProperties:l,eventType:d,userProperties:g()}}function T(n,e){null===n||void 0===n||n(e)}var E=function(n){var e=n.children;return n.eventProperties,n.userProperties,e((function(n){return!1}))},C=t(44688),_=t(28598);function S(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 D(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?S(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):S(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var B,R,N=function(n){var e,t=n.buildChildren,o=n.disabled,r=n.eventActionName,c=void 0===r?j:r,a=n.eventComponentName,u=void 0===a?I:a,d=n.eventProperties,l=void 0===d?{}:d,p=n.eventScreenName,f=void 0===p?"generic":p,h=n.keyboardShortcutValidation,g=n.linkProps,b=n.onClick,m=n.openNewTab,v=n.requireKeyUp,y=n.uuid,x=(0,s.useRouter)(),O=(0,C.y)(),P=O.registerOnKeyDown,w=O.registerOnKeyUp,k=O.unregisterOnKeyDown,S=O.unregisterOnKeyUp;(0,i.useEffect)((function(){return function(){var n=v?S:k;null===n||void 0===n||n(y)}}),[v,k,S,y]),o||!b&&!g||(e=function(n){null===b||void 0===b||b(n),g&&(m?(window.open(g.as||g.href),n.preventDefault()):x.push(g.href,g.as))});var B=Z({actionName:c,actionType:j,componentName:u,componentType:I,properties:l,screenName:f}),R=B.eventType,N=B.eventProperties,M=B.userProperties;return(0,_.jsx)(E,{eventProperties:N,userProperties:M,children:function(n){var o=n.logEvent;h&&e&&(v?w:P)(y,(function(n,t,r){h({keyHistory:r,keyMapping:t})&&(T(o,R,{eventProperties:D(D({},N),{},{usedKeyboardShortcut:!0}),userProperties:M}),e(n))}),[N,R,o,e,M]);return t({eventProperties:N,eventType:R,logEvent:o,onClick:e,userProperties:M})}})},M={chatBubbleProps:null,graphicButtonProps:null,logoProps:null,mageImageUrl:null,mascotImageUrls:{base:null,castingSpell:null,chargingUp:null,thinking:null},sharedProps:null},A=i.createContext(M),H=A,L=t(38276),U=t(4190),W=t(44897),G=t(79633),z=t(42631),F=t(71180),Y=t(95363),K=t(61896),V=t(48670),q=t(70515),X=t(91437),Q=["Icon","afterElement","beforeElement","bold","borderless","centerText","children","compact","disabled","fitContentWidth","inverted","keyTextGroups","keyTextsPosition","linkProps","loading","mutedDisabled","noHover","onClick","padding","smallIcon","type","useModelTheme"];function $(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 J(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?$(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):$(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}!function(n){n.LEFT="left",n.RIGHT="right"}(B||(B={})),function(n){n.BUTTON="button",n.SUBMIT="submit"}(R||(R={}));var nn=(0,u.css)([""," "," align-items:center;border:none;display:flex;flex-direction:row;position:relative;text-align:left;z-index:0;"," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," ",""],(0,X.eR)(),F.MY,(function(n){return!n.large1&&!n.large2&&"\n ".concat(K.iD,"\n ")}),(function(n){return n.small&&"\n ".concat(K.HC,"\n ")}),(function(n){return n.large1&&"\n ".concat(K.ln,"\n ")}),(function(n){return n.large2&&"\n ".concat(K.QU,"\n ")}),(function(n){return!n.inline&&"\n width: 100%;\n "}),(function(n){return n.shortWidth&&"\n min-width: ".concat(28*q.iI,"px;\n ")}),(function(n){return!n.wrapText&&"\n white-space: nowrap;\n "}),(function(n){return n.outline&&!n.disabled&&"\n &:hover {\n box-shadow:\n 0 0 0 ".concat(z.PV,"px ").concat((n.theme||W.Z).background.panel,",\n 0 0 0 ").concat(z.PV+z.q2,"px ").concat((n.theme.interactive||W.Z.interactive).hoverOverlay,";\n }\n\n &:focus {\n box-shadow:\n 0 0 0 ").concat(z.PV,"px ").concat((n.theme||W.Z).background.panel,",\n 0 0 0 ").concat(z.PV+z.q2,"px ").concat((n.theme.interactive||W.Z.interactive).focusBorder,";\n }\n\n &:active {\n box-shadow: none;\n }\n ")}),(function(n){return!n.secondary&&"\n font-family: ".concat(Y.ry,";\n justify-content: space-between;\n ")}),(function(n){return n.primary&&!n.disabled&&"\n background-color: ".concat((n.theme.interactive||W.Z.interactive).linkPrimary,";\n border-color: ").concat((n.theme.interactive||W.Z.interactive).linkPrimary,";\n color: ").concat((n.theme.monotone||W.Z.monotone).white,";\n\n &:hover,\n &:focus,\n &:active {\n background-color: ").concat((n.theme.interactive||W.Z.interactive).linkPrimaryHover," !important;\n border-color: ").concat((n.theme.interactive||W.Z.interactive).linkPrimary," !important;\n }\n ")}),(function(n){return n.center&&"\n justify-content: center;\n "}),(function(n){return!n.noPadding&&!n.spacious&&!n.compact&&"\n padding: ".concat(1.25*q.iI,"px ").concat(1.5*q.iI,"px;\n ")}),(function(n){return n.compact&&"\n padding: ".concat(.5*q.iI,"px ").concat(.75*q.iI,"px;\n ")}),(function(n){return n.withIcon&&"\n padding: ".concat(1.25*q.iI-1,"px;\n ")}),(function(n){return!n.noPadding&&!n.spacious&&n.paddingTop&&"\n padding-top: ".concat(n.paddingTop,"px;\n ")}),(function(n){return!n.noPadding&&!n.spacious&&n.halfPaddingTop&&"\n padding-top: ".concat(.625*q.iI,"px;\n ")}),(function(n){return!n.noPadding&&!n.spacious&&n.halfPaddingBottom&&"\n padding-bottom: ".concat(.625*q.iI,"px;\n ")}),(function(n){return!n.noPadding&&!n.spacious&&n.paddingBottom&&"\n padding-bottom: ".concat(n.paddingBottom,"px;\n ")}),(function(n){return!n.noPadding&&!n.spacious&&n.halfPaddingRight&&"\n padding-right: ".concat(.75*q.iI,"px;\n ")}),(function(n){return!n.noPadding&&!n.spacious&&n.halfPaddingLeft&&"\n padding-left: ".concat(.75*q.iI,"px;\n ")}),(function(n){return!n.noPadding&&n.spacious&&!n.marketing&&"\n padding: ".concat(2.25*q.iI,"px ").concat(3*q.iI,"px;\n ")}),(function(n){return!n.noPadding&&n.spacious&&n.marketing&&"\n padding: ".concat(2.25*q.iI-2,"px ").concat(3*q.iI-2,"px;\n ")}),(function(n){return!n.noPadding&&n.spacious&&n.halfPaddingTop&&"\n padding-top: ".concat(1.125*q.iI,"px;\n ")}),(function(n){return!n.noPadding&&n.spacious&&n.halfPaddingBottom&&"\n padding-bottom: ".concat(1.125*q.iI,"px;\n ")}),(function(n){return!n.noPadding&&n.spacious&&n.halfPaddingRight&&"\n padding-right: ".concat(1.5*q.iI,"px;\n ")}),(function(n){return!n.noPadding&&n.spacious&&n.halfPaddingLeft&&"\n padding-left: ".concat(1.5*q.iI,"px;\n ")}),(function(n){return n.secondary&&"\n flex-basis: content;\n font-family: ".concat(Y.nF,";\n padding: 0;\n ")}),(function(n){return n.noPadding&&"\n padding: 0;\n "}),(function(n){return n.bold&&"\n font-family: ".concat(Y.nF,";\n ")}),(function(n){return!n.muted&&!n.inverted&&"\n color: ".concat((n.theme.content||W.Z.content).active,";\n ")}),(function(n){return!n.muted&&n.inverted&&"\n color: ".concat((n.theme.content||W.Z.content).inverted,";\n ")}),(function(n){return n.muted&&"\n color: ".concat((n.theme.monotone||W.Z.monotone).grey300,";\n ")}),(function(n){return n.warning&&"\n color: ".concat((n.theme.brand||W.Z.brand).energy400,";\n ")}),(function(n){return n.noHover&&"\n &:hover {\n cursor: default;\n }\n "}),(function(n){return n.greyBorder&&"\n border: ".concat(z.YF,"px ").concat(z.M8," ").concat((n.theme||W.Z).borders.button,";\n ")}),(function(n){return n.blackBorder&&"\n border: ".concat(z.YF,"px ").concat(z.M8," ").concat((n.theme.monotone||W.Z.monotone).black,";\n ")}),(function(n){return!n.pill&&!n.borderless&&!n.compact&&"\n border-radius: ".concat(z.n_,"px;\n ")}),(function(n){return n.compact&&"\n border-radius: ".concat(z.BG,"px;\n ")}),(function(n){return!n.borderRadiusLeft&&!n.borderRadiusRight&&n.pill&&!n.spacious&&"\n border-radius: ".concat(5*q.iI,"px;\n ")}),(function(n){return n.borderRadiusLeft&&n.pill&&!n.spacious&&"\n border-bottom-left-radius: ".concat(5*q.iI,"px;\n border-top-left-radius: ").concat(5*q.iI,"px;\n ")}),(function(n){return n.borderRadiusRight&&n.pill&&!n.spacious&&"\n border-bottom-right-radius: ".concat(5*q.iI,"px;\n border-top-right-radius: ").concat(5*q.iI,"px;\n ")}),(function(n){return n.borderRadiusLeft&&n.pill&&n.spacious&&"\n border-bottom-left-radius: ".concat(8*q.iI,"px;\n border-top-left-radius: ").concat(8*q.iI,"px;\n ")}),(function(n){return n.borderRadiusRight&&n.pill&&n.spacious&&"\n border-bottom-right-radius: ".concat(8*q.iI,"px;\n border-top-right-radius: ").concat(8*q.iI,"px;\n ")}),(function(n){return n.inverted&&!n.noBackground&&!n.backgroundColor&&"\n background-color: ".concat((n.theme.monotone||W.Z.monotone).black,";\n ")}),(function(n){return!n.inverted&&!n.noBackground&&!n.primary&&!n.noHover&&"\n background-color: ".concat((n.theme.interactive||W.Z.interactive).defaultBackground,";\n\n &:hover {\n background-color: ").concat((n.theme.interactive||W.Z.interactive).hoverBackground,";\n }\n ")}),(function(n){return!n.inverted&&!n.noBackground&&!n.primary&&n.noHover&&"\n background-color: ".concat((n.theme.interactive||W.Z.interactive).defaultBackground,";\n ")}),(function(n){return!n.noBackground&&n.backgroundColor&&"\n background-color: ".concat(n.backgroundColor,";\n ")}),(function(n){return n.noBackground&&"\n background-color: transparent !important;\n "}),(function(n){return n.disabled&&n.inverted&&"\n color: ".concat((n.theme.monotone||W.Z.monotone).grey400," !important;\n ")}),(function(n){return n.disabled&&!n.inverted&&"\n color: ".concat((n.theme.monotone||W.Z.monotone).grey300," !important;\n ")}),(function(n){return n.disabled&&"\n &:hover {\n cursor: not-allowed;\n }\n "}),(function(n){return n.selected&&"\n background-color: ".concat((n.theme.monotone||W.Z.monotone).black,";\n color: ").concat((n.theme.monotone||W.Z.monotone).white,";\n ")}),(function(n){return n.selected&&n.grey300&&"\n background-color: ".concat((n.theme.monotone||W.Z.monotone).grey300,";\n ")}),(function(n){return(n.selected||n.useModelTheme)&&n.fire&&"\n background-color: ".concat((n.theme.brand||W.Z.brand).fire400,";\n ")}),(function(n){return n.useModelTheme&&"\n color: ".concat((n.theme.monotone||W.Z.monotone).white,";\n ")}),(function(n){return(n.selected||n.useModelTheme)&&n.earth&&"\n background-color: ".concat((n.theme.brand||W.Z.brand).earth400,";\n ")}),(function(n){return n.primaryGradient&&"\n background: ".concat(G.uH," !important;\n ")}),(function(n){return n.background&&"\n background: ".concat(n.background," !important;\n ")}),(function(n){return(n.selected||n.useModelTheme)&&n.wind&&"\n background-color: ".concat((n.theme.brand||W.Z.brand).wind400,";\n\n &:hover,\n &:focus,\n &:active {\n background-color: ").concat((n.theme.brand||W.Z.brand).wind500,";\n }\n ")}),(function(n){return(n.selected||n.useModelTheme)&&n.water&&"\n background-color: ".concat((n.theme.brand||W.Z.brand).water400,";\n ")}),(function(n){return n.padding>0&&"\n padding: ".concat(n.padding,"px;\n ")}),(function(n){return n.shadow&&"\n box-shadow: ".concat((n.theme.shadow||W.Z.shadow).large,";\n ")})),en=u.default.button.withConfig({displayName:"KeyboardShortcutButton__ButtonStyle",componentId:"sc-10tm4pj-0"})(["",""],nn),tn=u.default.a.withConfig({displayName:"KeyboardShortcutButton__AnchorStyle",componentId:"sc-10tm4pj-1"})([""," ",""],nn,V.R);var on=function(n){var e=n.Icon,t=n.afterElement,c=n.beforeElement,u=n.bold,s=n.borderless,p=n.centerText,f=n.children,h=n.compact,g=n.disabled,b=n.fitContentWidth,m=n.inverted,v=n.keyTextGroups,y=n.keyTextsPosition,x=void 0===y?B.RIGHT:y,O=n.linkProps,P=n.loading,w=n.mutedDisabled,k=n.noHover,j=n.onClick,I=n.padding,Z=n.smallIcon,E=n.type,C=void 0===E?R.BUTTON:E,S=n.useModelTheme,D=(0,r.Z)(n,Q),M=O||{},A=M.as,W=M.href,G=A||W?tn:en,z=(0,i.useMemo)((function(){if(!v)return null;var n=(0,o.Z)({},x===B.RIGHT?"ml":"mr",f?1:0);return(0,_.jsx)(L.Z,J(J({},n),{},{children:(0,_.jsx)(l.Z,{borderless:m,disabled:g,keyTextGroups:v,mutedDisabled:w})}))}),[f,g,m,v,x,w]),F=((0,i.useContext)(H)||{}).sharedProps;return(0,_.jsx)(N,J(J({},D),{},{buildChildren:function(n){var o=n.eventProperties,r=n.eventType,i=n.logEvent,l=n.onClick,v=n.userProperties,y=(0,_.jsxs)(G,J(J(J({},D),S?F:{}),{},{bold:S||u,borderless:S||s,center:p,compact:h,disabled:g||w,fitContentWidth:b,inverted:m,noHover:(!l||k)&&!(A||W)&&C===R.BUTTON,onClick:function(n){T(i,r,{eventProperties:o,userProperties:v}),null===l||void 0===l||l(n)},padding:Z&&!f?11:I,type:A||W?null:C,useModelTheme:S,withIcon:!!e,children:[c&&!P&&(0,_.jsxs)(_.Fragment,{children:[c,(0,_.jsx)(L.Z,{mr:1})]}),x===B.LEFT&&z,(0,_.jsxs)(d.Z,{alignItems:"center",children:[e&&(0,_.jsx)(e,{muted:g||w,size:Z?2*q.iI:2.5*q.iI}),e&&f&&(0,_.jsx)(L.Z,{mr:1}),P&&(0,_.jsx)(U.Z,{inverted:!m,small:Z}),!P&&f]}),x===B.RIGHT&&z&&(0,_.jsx)(L.Z,{ml:1,children:z}),t&&!P&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(L.Z,{ml:t?1:0}),t]})]}));return!A&&!W||g||w?y:(0,_.jsx)(a(),J(J({},O),{},{passHref:!0,children:y}))},disabled:g||w,linkProps:O,onClick:j}))}},16756:function(n,e,t){var o=t(82684),r=t(38626),i=t(30160),c=t(44897),a=t(42631),u=t(28598),d=(0,r.css)(["min-width:18px;padding-left:2px;padding-right:2px;"," "," "," "," "," ",""],(function(n){return!n.disabled&&"\n background-color: ".concat((n.theme.content||c.Z.content).inverted,";\n ")}),(function(n){return n.disabled&&"\n // background-color: ".concat((n.theme.monotone||c.Z.monotone).grey400," !important;\n ")}),(function(n){return n.mutedDisabled&&"\n opacity: 0.3;\n "}),(function(n){return!n.borderless&&"\n box-shadow: ".concat((n.theme.shadow||c.Z.shadow).tiny,";\n padding-bottom: 3px;\n padding-top: 3px;\n ")}),(function(n){return n.borderless&&"\n border-radius: ".concat(a.BG,"px;\n padding-bottom: 4px;\n padding-top: 4px;\n ")}),(function(n){return n.spacingLeft&&"\n margin-left: ".concat(n.spacingLeft,"px;\n ")})),l=r.default.kbd.withConfig({displayName:"KeyboardText__KbdStyle",componentId:"sc-18540m4-0"})(["",""],d),s=r.default.div.withConfig({displayName:"KeyboardText__DivStyle",componentId:"sc-18540m4-1"})(["",""],d);e.Z=function(n){var e=n.borderless,t=n.disabled,d=n.inline,p=n.keyText,f=n.monospace,h=n.mutedDisabled,g=n.spacingLeft,b=d?s:l,m=(0,o.useContext)(r.ThemeContext),v={};if(!e){var y,x;if(t)v.borderColor=null===(y=(null===m||void 0===m?void 0:m.monotone)||c.Z.monotone)||void 0===y?void 0:y.grey400;else v.borderColor=null===(x=(null===m||void 0===m?void 0:m.content)||c.Z.content)||void 0===x?void 0:x.active;v.borderRadius=a.BG,v.borderStyle="solid",v.borderWidth=1,v.overflow="hidden"}return(0,u.jsx)(i.ZP,{center:!0,inline:!0,monospace:f,muted:t||h,style:v,xsmall:!0,children:(0,u.jsx)(b,{borderless:e,disabled:t,mutedDisabled:h,spacingLeft:g,children:p})})}},49130:function(n,e,t){var o=t(38626),r=t(55485),i=t(16756),c=t(30160),a=t(70515),u=t(28598),d=o.default.div.withConfig({displayName:"KeyboardTextGroup__SpacingStyle",componentId:"sc-1bx41p7-0"})([""," "," ",""],(function(n){return n.small&&"\n margin-left: ".concat(.25*a.iI,"px;\n ")}),(function(n){return!n.small&&"\n margin-left: ".concat(.25*a.iI,"px;\n ")}),(function(n){return n.marginRight&&"\n margin-right: ".concat(.25*a.iI,"px;\n ")}));e.Z=function(n){var e=n.addPlusSignBetweenKeys,t=n.borderless,o=n.disabled,a=n.keyTextGroups,l=n.inline,s=n.monospace,p=n.mutedDisabled,f=n.small,h=n.uuidForKey,g=[],b=[];return a.forEach((function(n,r){var a=[];n.forEach((function(n,r){b.push(n),r>=1&&(a.push((0,u.jsx)(d,{small:f},"spacing-".concat(n))),e&&(a.push((0,u.jsx)(c.ZP,{disabled:o,monospace:s,small:f,children:"+"},"spacing-".concat(n,"-plus-sign"))),a.push((0,u.jsx)(d,{small:f},"spacing-".concat(n,"-after-plus-sign"))))),a.push((0,u.jsx)(i.Z,{borderless:t,disabled:o,inline:!0,keyText:n,monospace:s,mutedDisabled:p},"key-".concat(b.join("-"),"-").concat(h)))})),r>=1&&g.push((0,u.jsx)(d,{marginRight:!0,children:(0,u.jsx)(c.ZP,{monospace:s,muted:!0,small:!f,xsmall:f,children:"then"})},"then-".concat(r))),g.push.apply(g,a)})),(0,u.jsx)(r.ZP,{alignItems:"center",inline:l,children:g})}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[722],{61709:function(n,o,e){e.d(o,{IT:function(){return w},J8:function(){return k},MS:function(){return g},Ts:function(){return b},YW:function(){return C},_o:function(){return m},eY:function(){return p},fA:function(){return h},h5:function(){return x},oI:function(){return y}});var i=e(82394),t=e(44425),l=e(48339),r=e(57653),u=e(82359),d=e(85385),c=e(81728),a=e(55283),s=e(15610);function v(n,o){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);o&&(i=i.filter((function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),e.push.apply(e,i)}return e}function f(n){for(var o=1;o<arguments.length;o++){var e=null!=arguments[o]?arguments[o]:{};o%2?v(Object(e),!0).forEach((function(o){(0,i.Z)(n,o,e[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):v(Object(e)).forEach((function(o){Object.defineProperty(n,o,Object.getOwnPropertyDescriptor(e,o))}))}return n}var p=function(n,o){var e=(null===o||void 0===o?void 0:o.upstream_blocks)||[];return t.iZ.includes(null===n||void 0===n?void 0:n.type)||t.iZ.includes(null===o||void 0===o?void 0:o.type)||t.tf.DATA_LOADER===(null===o||void 0===o?void 0:o.type)&&t.tf.SENSOR!==n.type||e.push(n.uuid),e},h=function(n,o,e){var i=[];return(null===n||void 0===n?void 0:n.type)!==r.qL.STREAMING||t.iZ.includes(null===o||void 0===o?void 0:o.type)||t.iZ.includes(null===e||void 0===e?void 0:e.type)||(i=i.concat((null===o||void 0===o?void 0:o.downstream_blocks)||[])),i},b=function(n,o,e,i){for(var l,r=[],u=o.findIndex((function(o){return o.uuid===n.uuid}));!l&&u>=0;){var d;l=o[u-1],t.tf.SCRATCHPAD===(null===(d=l)||void 0===d?void 0:d.type)&&(l=null),u-=1}return l&&r.push(l.uuid),t.Ut.map((function(o){return{label:function(){return"Convert to ".concat((0,c.wX)(t.V4[o]))},onClick:function(){return i({converted_from_type:o,converted_from_uuid:n.uuid,type:o,upstream_blocks:r})},uuid:"".concat(e,"/convert_to/").concat(o)}}))},k=function(n,o,e,i,l,r){var c,a,v=n||{},p=v.configuration,h=v.downstream_blocks,b=v.has_callback,k=v.language,g=v.metadata,m=v.replicated_block,x=v.type,y=v.upstream_blocks,C=v.uuid,w=p||{},O=w.dynamic,S=w.reduce_output,j=t.tf.DBT===x,B=[],E=!(null===r||void 0===r||null===(c=r.project)||void 0===c||null===(a=c.features)||void 0===a||!a[u.d.INTERACTIONS]);if(t.tf.SCRATCHPAD!==x&&![t.tf.CALLBACK,t.tf.EXTENSION,t.tf.MARKDOWN].includes(x)){B.push.apply(B,[{label:function(){return j?"Execute and run all upstream blocks":"Execute with all upstream blocks"},onClick:function(){return o({block:n,runUpstream:!0})},uuid:"execute_upstream"},{label:function(){return j?"Execute and run incomplete upstream blocks":"Execute with incomplete upstream blocks"},onClick:function(){return o({block:n,runIncompleteUpstream:!0})},uuid:"execute_incomplete_upstream"}]),j||t.tf.GLOBAL_DATA_PRODUCT===x||B.push({label:function(){return"Execute block and run tests"},onClick:function(){return o({block:n,runTests:!0})},uuid:"run_tests"});var I,T,_,Z,D,P=r||{},A=P.addNewBlock,R=P.blocksMapping,N=P.fetchFileTree,L=P.fetchPipeline,M=P.savePipelineContent,H=P.updatePipeline,U=[];if(null===h||void 0===h||h.forEach((function(n){var o=null===R||void 0===R?void 0:R[n];o&&o.upstream_blocks.forEach((function(n){var o,e;null!==R&&void 0!==R&&null!==(o=R[n])&&void 0!==o&&null!==(e=o.configuration)&&void 0!==e&&e.dynamic&&U.push(R[n])}))})),j&&t.t6.SQL===k)B.unshift.apply(B,[{label:function(){return"Test model"},onClick:function(){return o({block:n,runSettings:{test_model:!0}})},tooltip:function(){return"Execute command dbt test."},uuid:"test_model"},{label:function(){return"Build model"},onClick:function(){return o({block:n,runSettings:{build_model:!0}})},tooltip:function(){return"Execute command dbt build."},uuid:"build_model"},{label:function(){return"Add upstream models"},onClick:function(){H({pipeline:{add_upstream_for_block_uuid:null===n||void 0===n?void 0:n.uuid}})},tooltip:function(){return"Add upstream models for this model to the pipeline."},uuid:"add_upstream_models"}]),null!==g&&void 0!==g&&null!==(I=g.dbt)&&void 0!==I&&null!==(T=I.block)&&void 0!==T&&T.snapshot||B.unshift.apply(B,[{label:function(){return"Run model"},onClick:function(){return o({block:n,runSettings:{run_model:!0}})},tooltip:function(){return"Execute command dbt run."},uuid:"run_model"}]),null!==g&&void 0!==g&&null!==(_=g.dbt)&&void 0!==_&&null!==(Z=_.block)&&void 0!==Z&&Z.snapshot&&B.unshift.apply(B,[{label:function(){return"Run snapshot"},onClick:function(){return o({block:n,runSettings:{run_model:!0}})},tooltip:function(){return"Execute command dbt snapshot."},uuid:"run_model"}]);if(j||t.tf.GLOBAL_DATA_PRODUCT===x||!M||!O&&0!==U.length||B.push({label:function(){return O?"Disable block as dynamic":"Set block as dynamic"},onClick:function(){return M({block:f(f({},n),{},{configuration:f(f({},p),{},{dynamic:!O})})})},uuid:"dynamic"}),R||null!==n&&void 0!==n&&n.tags)((null===y||void 0===y?void 0:y.find((function(n){var o,e;return null===R||void 0===R||null===(o=R[n])||void 0===o||null===(e=o.configuration)||void 0===e?void 0:e.dynamic})))||null!==n&&void 0!==n&&null!==(D=n.tags)&&void 0!==D&&D.includes(t.L8.DYNAMIC_CHILD))&&B.push({label:function(){return S?"Don\u2019t reduce output":"Reduce output"},onClick:function(){return M({block:f(f({},n),{},{configuration:f(f({},p),{},{reduce_output:!S})})})},uuid:"reduce_output"});B.push({label:function(){return b?"Remove callback":"Add callback"},onClick:function(){if(b)return M({block:f(f({},n),{},{has_callback:!b})}).then((function(){N(),L()}));(0,s.u7)({addon:d.cH.CALLBACKS,sideview:d.cH.ADDON_BLOCKS})},uuid:"has_callback"}),j||B.push({disabled:!!m,label:function(){return"Replicate block"},onClick:function(){return A({replicated_block:C})},uuid:"Replicate block"})}return E&&B.push({label:function(){return"Add / Edit interactions"},onClick:function(){var n;null===r||void 0===r||null===(n=r.openSidekickView)||void 0===n||n.call(r,d.cH.INTERACTIONS)},uuid:"Add interactions"}),B.push({label:function(){return"Delete block"},onClick:function(){e(n),i(!1)},uuid:"delete_block"}),l?[B.pop()]:B};function g(n){var o=n.tags,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=[],l=e.conditionFailed;return null===o||void 0===o||o.forEach((function(n){t.L8.DBT_SNAPSHOT===n?i.push({description:"This is a dbt snapshot file.",title:(0,c.vg)(t.L8.DBT_SNAPSHOT)}):t.L8.DYNAMIC===n?i.push({description:"This block will create N blocks for each of its downstream blocks.",title:(0,c.vg)(t.L8.DYNAMIC)}):t.L8.DYNAMIC_CHILD===n?i.push({description:"This block is dynamically created by its upstream parent block that is dynamic.",title:(0,c.vg)(t.L8.DYNAMIC_CHILD)}):t.L8.REDUCE_OUTPUT===n?i.push({description:"Reduce output from all dynamically created blocks into a single array output.",title:(0,c.vg)(t.L8.REDUCE_OUTPUT)}):t.L8.REPLICA===n?i.push({description:"This block is a replica of another block in the current pipeline.",title:(0,c.vg)(t.L8.REPLICA)}):t.L8.CONDITION===n?l?i.push({description:"This block condition evaluated as false.",title:"Condition unmet"}):i.push({description:"This block has a condition that will be run before its execution.",title:(0,c.vg)(t.L8.CONDITION)}):i.push({title:n})})),i}function m(n){var o=n.block,e=n.dynamic,i=n.dynamicUpstreamBlock,t=n.hasError,l=(n.reduceOutput,n.reduceOutputUpstreamBlock),r=n.selected,u=i&&!l;return{borderColorShareProps:{blockColor:null===o||void 0===o?void 0:o.color,blockType:null===o||void 0===o?void 0:o.type,dynamicBlock:e,dynamicChildBlock:u,hasError:t,selected:r},tags:g(o)}}function x(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o&&(null===o||void 0===o?void 0:o.length)>=0?o.map((function(n){return{data:n,execution_state:l.uF.IDLE,type:l.Gi.TEXT_PLAIN}})):n.filter((function(n){return null===n||void 0===n?void 0:n.type}))}function y(n){return{hasError:!!n.find((function(n){return n.error})),hasOutput:n.length>=1}}var C=function(){return Object.values(t.Lq).reduce((function(n,o){return f(f({},n),{},(0,i.Z)({},o,(0,a.qn)(t.tf.CUSTOM,{blockColor:o}).accent))}),{})};function w(n,o,e){var i=null===n||void 0===n?void 0:n.reduce((function(n,o){return o?n.concat(o):n}),[]),t=(null===i||void 0===i?void 0:i[(null===i||void 0===i?void 0:i.length)-1])||0;return(.25*Math.min(t,e)||0)/o}},47001:function(n,o,e){e.d(o,{Gi:function(){return c},Go:function(){return p},I5:function(){return f},Pq:function(){return s},RJ:function(){return a},YF:function(){return d},ZG:function(){return u},ze:function(){return v}});var i=e(38626),t=e(44897),l=e(42631),r=e(70515),u=3*r.iI,d=2,c=i.default.div.withConfig({displayName:"indexstyle__NodeContainerStyle",componentId:"sc-kc7274-0"})(["min-width:fit-content;"," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," ",""],(function(n){return!n.isDragging&&"\n &:hover {\n cursor: pointer;\n }\n "}),(function(n){return n.isDragging&&"\n cursor: grab;\n "}),(function(n){return!n.active&&(n.isCancelled||n.disabled)&&"\n // opacity doesn\u2019t work on Safari\n border: ".concat(d,"px dotted ").concat((n.theme.content||t.Z.content).muted,";\n cursor: not-allowed;\n opacity: 0.5;\n ")}),(function(n){return(!n.selected||!n.backgroundGradient)&&!n.active&&n.borderColorBottom&&"\n border-bottom-color: ".concat(n.borderColorBottom,";\n border-width: ").concat(d,"px;\n ")}),(function(n){return(!n.selected||!n.backgroundGradient)&&!n.active&&n.borderColorLeft&&"\n border-left-color: ".concat(n.borderColorLeft,";\n border-width: ").concat(d,"px;\n ")}),(function(n){return(!n.selected||!n.backgroundGradient)&&!n.active&&n.borderColorRight&&"\n border-right-color: ".concat(n.borderColorRight,";\n border-width: ").concat(d,"px;\n ")}),(function(n){return(!n.selected||!n.backgroundGradient)&&!n.active&&n.borderColorTop&&"\n border-top-color: ".concat(n.borderColorTop,";\n border-width: ").concat(d,"px;\n ")}),(function(n){return n.selected&&!n.active&&n.backgroundGradient&&"\n background: ".concat(n.backgroundGradient,";\n padding: ").concat(d,"px;\n ")}),(function(n){return!n.borderDeemphasized&&"\n border-style: solid;\n "}),(function(n){return n.borderDeemphasized&&"\n border-style: double;\n "}),(function(n){return!n.borderRadiusLarge&&"\n border-radius: ".concat(l.n_,"px;\n ")}),(function(n){return n.borderRadiusLarge&&"\n border-radius: ".concat(l.Ro,"px;\n ")}),(function(n){return n.active&&(n.borderColorBottom||n.borderColorLeft||n.borderColorRight||n.borderColorTop)&&"\n animation: border-dance ".concat(null!==n&&void 0!==n&&n.activeSlow?"2s":".5s"," infinite linear;\n background: linear-gradient(90deg, ").concat(n.borderColorTop||n.borderColorBottom||n.borderColorLeft||n.borderColorRight," 50%, transparent 50%),\n linear-gradient(90deg, ").concat(n.borderColorRight||n.borderColorTop||n.borderColorBottom||n.borderColorLeft," 50%, transparent 50%),\n linear-gradient(0deg, ").concat(n.borderColorLeft||n.borderColorRight||n.borderColorTop||n.borderColorBottom," 50%, transparent 50%),\n linear-gradient(0deg, ").concat(n.borderColorBottom||n.borderColorLeft||n.borderColorRight||n.borderColorTop," 50%, transparent 50%);\n background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;\n padding: ").concat(d,"px;\n\n @keyframes border-dance {\n 0% {\n background-position: left top,\n right bottom,\n left bottom,\n right top;\n }\n 100% {\n background-position: left 15px top,\n right 15px bottom,\n left bottom 15px,\n right top 15px;\n }\n }\n ")}),(function(n){return n.active&&(n.borderColorBottom||n.borderColorLeft||n.borderColorRight||n.borderColorTop)&&!n.noBackground&&"\n background-size: 15px 4px, 15px 4px, 4px 15px, 4px 15px;\n "}),(function(n){return n.active&&(n.borderColorBottom||n.borderColorLeft||n.borderColorRight||n.borderColorTop)&&n.noBackground&&"\n background-size: 15px 1.5px, 15px 1.5px, 1.5px 15px, 1.5px 15px;\n "}),(function(n){return n.height&&"\n height: ".concat(n.height,"px;\n ")}),(function(n){return n.opacity&&"\n opacity: ".concat(n.opacity,";\n ")})),a=i.default.div.withConfig({displayName:"indexstyle__NodeStyle",componentId:"sc-kc7274-1"})(["border-radius:","px;min-width:fit-content;overflow:hidden;"," "," "," "," ",""],l.n_,(function(n){return!n.noBackground&&"\n background-color: ".concat((n.theme.background||t.Z.background).codeTextarea,";\n ")}),(function(n){return n.isConditionFailed&&"\n background-color: ".concat((n.theme.content||t.Z.content).disabled,";\n cursor: not-allowed;\n ")}),(function(n){return n.isConditionFailed&&"\n background-color: ".concat((n.theme.content||t.Z.content).disabled,";\n cursor: not-allowed;\n ")}),(function(n){return n.disabled&&"\n &:hover {\n cursor: not-allowed;\n }\n "}),(function(n){return n.height&&"\n height: ".concat(n.height,"px;\n ")})),s=i.default.div.withConfig({displayName:"indexstyle__StatusStyle",componentId:"sc-kc7274-2"})(["height:","px;width:","px;"],2*r.iI,2*r.iI),v=i.default.div.withConfig({displayName:"indexstyle__IconStyle",componentId:"sc-kc7274-3"})(["align-items:center;border-radius:","px;border:2px solid transparent;display:flex;height:","px;justify-content:center;width:","px;"," ",""],l.BG,5*r.iI,5*r.iI,(function(n){return n.backgroundColor&&"\n background-color: ".concat(n.backgroundColor,";\n border-color: ").concat(n.backgroundColor,";\n ")}),(function(n){return n.borderColor&&"\n border-color: ".concat(n.borderColor,";\n ")})),f=i.default.div.withConfig({displayName:"indexstyle__HeaderStyle",componentId:"sc-kc7274-4"})(["padding:","px;",""],1*r.iI,(function(n){return"\n background-color: ".concat((n.theme.background||t.Z.background).dashboard,";\n ")})),p=i.default.div.withConfig({displayName:"indexstyle__BodyStyle",componentId:"sc-kc7274-5"})(["padding-left:","px;padding-right:","px;"],1*r.iI,1*r.iI);i.default.div.withConfig({displayName:"indexstyle__RuntimeStyle",componentId:"sc-kc7274-6"})(["margin-right:","px;padding:12px 4px;height:100%;width:50px;background:rgba(0,0,0,0.2);background-blend-mode:soft-light;"],2*r.iI)},99543:function(n,o,e){e.d(o,{DS:function(){return s},HI:function(){return B},SX:function(){return f},YE:function(){return p},_7:function(){return w},p1:function(){return j},qj:function(){return O},rQ:function(){return y}});var i=e(21831),t=e(44425),l=e(57653),r=e(47001),u=e(70515),d=e(61709),c=e(44375),a=e(4804),s=u.cd,v=u.cd*u.iI,f=2*u.iI,p=8.62,h=7.43,b=2*r.YF,k=2*r.YF,g=2*u.iI+5*u.iI,m=2*u.iI+5*u.iI+v+v+f,x=30*u.iI;function y(n){var o=(0,d.MS)(n);if((null===o||void 0===o?void 0:o.length)>=1)return(null===o||void 0===o?void 0:o.map((function(n){return n.title})).join(", "))||"";if(t.tf.GLOBAL_DATA_PRODUCT===(null===n||void 0===n?void 0:n.type)){var e,i=null===n||void 0===n||null===(e=n.configuration)||void 0===e?void 0:e.global_data_product;if(null!==i&&void 0!==i&&i.uuid)return null===i||void 0===i?void 0:i.uuid}return t.dO[null===n||void 0===n?void 0:n.language]||""}function C(n,o){var e,i,r,u=n.description,d=n.name,s=n.type,v=u||(null===t.V4||void 0===t.V4?void 0:t.V4[s])||s;if(l.qL.INTEGRATION===(null===o||void 0===o?void 0:o.type)&&t.tf.TRANSFORMER!==n.type){var f,p,h={};if(t.t6.YAML===n.language&&(null===n||void 0===n||null===(f=n.content)||void 0===f?void 0:f.length)>=1&&(h=(0,a.Qc)(n.content)),t.tf.DATA_LOADER===n.type)r="".concat(n.uuid,": ").concat(null===(p=h)||void 0===p?void 0:p.source);else if(t.tf.DATA_EXPORTER===n.type){var b;r="".concat(n.uuid,": ").concat(null===(b=h)||void 0===b?void 0:b.destination)}}else if(t.tf.DBT===n.type&&t.t6.SQL===n.language){var k=(0,c.IU)(n),g=k.name,m=k.project;r=g,v="".concat(v,"/").concat(m)}return null!==n&&void 0!==n&&n.replicated_block&&(r=d&&u?d:null===n||void 0===n?void 0:n.uuid,u||(v=null===n||void 0===n?void 0:n.replicated_block)),(null===n||void 0===n||null===(e=n.uuid)||void 0===e||null===(i=e.split(":"))||void 0===i?void 0:i.length)>=2&&d&&(r=d),r||(r=n.uuid),{displayText:r,subtitle:v}}function w(n,o){return C(n,o).displayText||""}function O(n,o){return C(n,o).subtitle||""}function S(n){var o=0;return null===n||void 0===n||n.forEach((function(n,e){var i=n.uuid;o+=4+i.length*h,e>=1&&(o+=4)})),o}function j(n,o,e){var i,t=0,l=b+g,r=B(n,o,e)-(k+2*u.iI),d=y(n),c=(null===d||void 0===d?void 0:d.length)*h;if(c>=1){var a=1;c>r&&(a=Math.ceil(c/r)),t+=1,l+=18*a}var s=e||{},v=s.blockStatus;return[s.callbackBlocks,s.conditionalBlocks,s.extensionBlocks].forEach((function(n){if((null===n||void 0===n?void 0:n.length)>=1){var o=S(n),e=1;o>r&&(e=Math.ceil(o/r)),t+=1,l+=18.5*e+4*(e-1)}})),"undefined"!==typeof(null===v||void 0===v||null===(i=v[n.uuid])||void 0===i?void 0:i.runtime)&&(l+=18,t+=1),l+=(t+=1)*(1*u.iI)}function B(n,o,e){var t,l,r=Math.max((null===(t=w(n,o))||void 0===t?void 0:t.length)*p,(null===(l=O(n,o))||void 0===l?void 0:l.length)*h),u=y(n),d=(null===u||void 0===u?void 0:u.length)*h,c=e||{},a=c.callbackBlocks,s=c.conditionalBlocks,v=c.extensionBlocks,f=Math.max.apply(Math,(0,i.Z)([a,s,v].map((function(n){return S(n)})).concat(d)));return f>r&&(r=Math.min(x,f)),k+m+r}},21978:function(n,o,e){e.d(o,{Jo:function(){return l},WN:function(){return u},bJ:function(){return r},rl:function(){return i}});var i,t=e(44425),l=(e(70515).iI,1e4),r={height:10,width:10},u={height:6,width:6};t.tf.DATA_EXPORTER,t.tf.SENSOR,t.Lq.GREY,t.Lq.PINK,t.Lq.TEAL,t.Lq.YELLOW;!function(n){n.NORTH="NORTH",n.SOUTH="SOUTH"}(i||(i={}))},55187:function(n,o,e){e.d(o,{$4:function(){return v},dg:function(){return c},ki:function(){return a}});var i=e(75582),t=e(38626),l=e(44897),r=e(42631),u=e(47041),d=e(70515),c=2;function a(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.Z,o={};return[null===n||void 0===n?void 0:n.accent,null===n||void 0===n?void 0:n.content,null===n||void 0===n?void 0:n.monotone].forEach((function(n){Object.entries(n).forEach((function(n){var e=(0,i.Z)(n,2),t=e[0],l=e[1];o[l]=t}))})),o}var s=Object.entries(a()).reduce((function(n,o){var e=(0,i.Z)(o,2),t=e[0],l=e[1];return n.concat("\n .edge-rect-".concat(l," {\n rect {\n fill: ").concat(t,";\n }\n }\n\n .edge-line-").concat(l," {\n line {\n stroke: ").concat(t,";\n }\n }\n "))}),[]),v=t.default.div.withConfig({displayName:"indexstyle__GraphContainerStyle",componentId:"sc-bc2ei5-0"})(["position:relative;div{","}"," .edge{&.activeSlow{animation:dashdraw 2s linear infinite;stroke-dasharray:5;stroke-width:",";}&.active{animation:dashdraw .5s linear infinite;stroke-dasharray:5;stroke-width:",";}&.inactive{}&.selected-twice{stroke-dasharray:4 2 4 2 4 8;stroke-width:",";}&.selected-twice.group{stroke-dasharray:8 24;stroke-width:",";}}@keyframes dashdraw{0%{stroke-dashoffset:10;}}.edge-rect{rect{fill:none;}}.edge-line{line{stroke-width:","px;}}.edge-line-remove{line{","}}",""],u.w5,(function(n){return n.height&&"\n height: ".concat(n.height,"px;\n ")}),c,c,c,c,d.iI/4,(function(n){return"\n stroke: ".concat((n.theme.accent||l.Z.accent).negative,";\n ")}),s.join("\n"));t.default.div.withConfig({displayName:"indexstyle__NodeStyle",componentId:"sc-bc2ei5-1"})(["border-radius:","px;border:1px solid transparent;min-width:fit-content;"," "," "," "," "," ",""],r.BG,(function(n){return n.selected&&"\n border-color: ".concat((n.theme.content||l.Z.content).active,";\n ")}),(function(n){return n.backgroundColor&&"\n background-color: ".concat(n.backgroundColor,";\n ")}),(function(n){return(n.isCancelled||n.disabled)&&"\n // opacity doesn\u2019t work on Safari\n border-color: ".concat((n.theme.content||l.Z.content).active,";\n border-style: dashed;\n cursor: not-allowed;\n ")}),(function(n){return n.isConditionFailed&&"\n background-color: ".concat((n.theme.content||l.Z.content).disabled,";\n cursor: not-allowed;\n ")}),(function(n){return n.disabled&&"\n &:hover {\n cursor: not-allowed;\n }\n "}),(function(n){return n.height&&"\n height: ".concat(n.height,"px;\n ")})),t.default.div.withConfig({displayName:"indexstyle__RuntimeStyle",componentId:"sc-bc2ei5-2"})(["margin-right:","px;padding:12px 4px;height:100%;width:50px;background:rgba(0,0,0,0.2);background-blend-mode:soft-light;"],2*d.iI)},24138:function(n,o,e){e.d(o,{Xz:function(){return En},kS:function(){return Tn},NB:function(){return In},GR:function(){return _n},ZP:function(){return Zn}});var i=e(75582),t=e(21831),l=e(82394),r=e(26304),u=e(77837),d=e(38860),c=e.n(d),a=e(51774),s=e.n(a),v=e(38626),f=e(82684),p=e(69864),h=e(79757),b=e(44425),k=e(39867),g=e(97618),m=e(55485),x=e(38276),y=e(30160),C=e(72473),w=e(47001),O=e(99543),S=e(55283),j=e(21978),B=e(41143),E=e(70515),I=e(86735);var T=e(61709),_=e(81728);function Z(n,o){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);o&&(i=i.filter((function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),e.push.apply(e,i)}return e}function D(n){for(var o=1;o<arguments.length;o++){var e=null!=arguments[o]?arguments[o]:{};o%2?Z(Object(e),!0).forEach((function(o){(0,l.Z)(n,o,e[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):Z(Object(e)).forEach((function(o){Object.defineProperty(n,o,Object.getOwnPropertyDescriptor(e,o))}))}return n}var P=function(n){var o=n/1e3,e=4-Math.floor(o).toString().length,i=(0,_.QV)(o,e>=0?e:0),t="s";return i>1e3&&(i=(0,_.QV)(i/60,0),t="m"),"".concat(i).concat(t)};function A(n){return"parent:".concat(n)}function R(n){return["parent"].concat((0,I.YC)(n,(function(n){return n}))).join(":")}function N(n,o){return"".concat(o,":").concat(n)}function L(n,o){return{from:o,fromPort:"".concat(o,":").concat(n,":from"),id:N(n,o),to:n,toPort:"".concat(o,":").concat(n,":to")}}function M(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return[n,o,"from"].filter((function(n){return n})).join(":")}function H(n,o,e){var i,t={},l=D(D({},j.WN),{},{disabled:!0});if(null!==e&&void 0!==e&&null!==(i=e.activeNodes)&&void 0!==i&&i[n]&&(l.height=0,l.width=0),(null===o||void 0===o?void 0:o.length)>=1)o.forEach((function(o){var e=M(n,o);t[e]=D(D({},l),{},{id:e,side:j.rl.SOUTH})}));else{var r=M(n);t[r]=D(D({},l),{},{id:r,side:j.rl.SOUTH})}return t}function U(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return[o,n,"to"].filter((function(n){return n})).join(":")}function G(n,o,e){var i,t={},l=D(D({},j.WN),{},{disabled:!0});if(null!==e&&void 0!==e&&null!==(i=e.activeNodes)&&void 0!==i&&i[n]&&(l.height=0,l.width=0),(null===o||void 0===o?void 0:o.length)>=1)o.forEach((function(o){var e=U(n,o);t[e]=D(D({},l),{},{id:e,side:j.rl.NORTH})}));else{var r=U(n);t[r]=D(D({},l),{},{id:r,side:j.rl.NORTH})}return t}function W(n){var o,e=n.activeNodes,r=n.blockStatus,u=(n.blockUUIDMapping,n.blocks),d=n.callbackBlocksByBlockUUID,c=n.conditionalBlocksByBlockUUID,a=n.downstreamBlocksMapping,s=n.enablePorts,v=n.extensionBlocksByBlockUUID,f=n.nodeHovering,p=n.pipeline,h=n.selectedBlock,b=D({},e);f&&(b[null===f||void 0===f?void 0:f.id]=f);var k={},g={},m={},x=(0,I.HK)(u||[],(function(n){return n.uuid})),y={};null===u||void 0===u||u.forEach((function(n){var o;if((null===n||void 0===n||null===(o=n.upstream_blocks)||void 0===o?void 0:o.length)>=1){var e=(null===n||void 0===n?void 0:n.upstream_blocks)||[],i=(0,I.YC)(e,(function(n){return n})).join(",");i in y||(y[i]={downstreamBlocks:[],upstreamBlocks:null===e||void 0===e?void 0:e.reduce((function(n,o){var e=null===x||void 0===x?void 0:x[o];return e?n.concat(e):n}),[])}),y[i].downstreamBlocks.push(n)}}));var C={},w={};Object.values(y||{}).forEach((function(n){var o=n.downstreamBlocks,e=n.upstreamBlocks;if((null===o||void 0===o?void 0:o.length)>=2){var i={};null===o||void 0===o||o.forEach((function(n){var o=n.downstream_blocks;if((null===o||void 0===o?void 0:o.length)>=1){var e=(0,I.YC)(o||[],(function(n){return n})).join(",");e in i||(i[e]=0),i[e]+=1}}));var l=Object.values(i||{})||[],r=Math.max.apply(Math,(0,t.Z)(l));(null===l||void 0===l||!l.length||r>=2)&&(null===o||void 0===o||o.forEach((function(o){var e=null===o||void 0===o?void 0:o.uuid;e in C||(C[e]=[]),C[e].push(n)})),null===e||void 0===e||e.forEach((function(o){var e=null===o||void 0===o?void 0:o.uuid;e in w||(w[e]=[]),w[e].push(n)})))}})),null===u||void 0===u||u.forEach((function(n){n.tags;var o=n.upstream_blocks,e=void 0===o?[]:o,i=n.uuid,t=a[i];i in m||(m[i]={});var u=null===d||void 0===d?void 0:d[null===n||void 0===n?void 0:n.uuid],s=null===c||void 0===c?void 0:c[null===n||void 0===n?void 0:n.uuid],f=null===v||void 0===v?void 0:v[null===n||void 0===n?void 0:n.uuid];k[i]={data:{block:n},height:(0,O.p1)(n,p,{blockStatus:r,callbackBlocks:u,conditionalBlocks:s,extensionBlocks:f}),id:i,width:(0,O.HI)(n,p,{blockStatus:r,callbackBlocks:u,conditionalBlocks:s,extensionBlocks:f})};var h={height:null!==b&&void 0!==b&&b[i]?2*E.iI:0,width:null!==b&&void 0!==b&&b[i]?2*E.iI:0},x="".concat(i,"-upstream-add"),y=function(n){return"".concat(n,"-dowstream-add")}(i);if(m[i][x]=D(D({},h),{},{id:x,side:j.rl.NORTH}),m[i][y]=D(D({},h),{},{id:y,side:j.rl.SOUTH}),!(i in C)){(null===e||void 0===e?void 0:e.length)>=1&&(m[i]=D(D({},null===m||void 0===m?void 0:m[i]),G(i,e,{activeNodes:b})),null===e||void 0===e||e.forEach((function(n){var o=L(i,n);g[o.id]=o})));var S=(null===w||void 0===w?void 0:w[i])||[],B=null===S||void 0===S?void 0:S.reduce((function(n,o){var e;return D(D({},n),null===o||void 0===o||null===(e=o.downstreamBlocks)||void 0===e?void 0:e.reduce((function(n,o){return D(D({},n),{},(0,l.Z)({},null===o||void 0===o?void 0:o.uuid,o))}),{}))}),{});null===t||void 0===t||t.forEach((function(n){var o=n.uuid;o in B||(m[i]=D(D({},null===m||void 0===m?void 0:m[i]),H(i,[o],{activeNodes:b})))}))}}));var S={};null===(o=Object.entries(w||{}))||void 0===o||o.forEach((function(n){var o=(0,i.Z)(n,2),e=(o[0],o[1]);null===e||void 0===e||e.forEach((function(n){var o=n.downstreamBlocks,e=n.upstreamBlocks,i=R(null===e||void 0===e?void 0:e.reduce((function(n,o){return o&&null!==o&&void 0!==o&&o.uuid?n.concat(null===o||void 0===o?void 0:o.uuid):n}),[]));i in S||(S[i]={downstreamBlocks:o,upstreamBlocks:e})}))}));var B={};return Object.entries(S||{}).forEach((function(n){var o,e=(0,i.Z)(n,2),t=e[0],l=e[1],r=l.downstreamBlocks,u=l.upstreamBlocks,d={data:{block:null===u||void 0===u?void 0:u[0],blocks:u,children:r},id:t};k[t]=d;var c=function(n,o,e,t,l){(0,I.YC)((null===n||void 0===n?void 0:n.map((function(n){return n.uuid})))||[],(function(n){return n.uuid}));var r,u={};null===n||void 0===n||n.forEach((function(n){var e=n.uuid,i=null===o||void 0===o?void 0:o[e];null===i||void 0===i||i.forEach((function(o){o.downstreamBlocks;var e=o.upstreamBlocks,i=R((0,I.YC)((null===e||void 0===e?void 0:e.map((function(n){return n.uuid})))||[],(function(n){return n.uuid})));i in u||(u[i]=[]),u[i].push(n)}))}));var d={};if(Object.entries(u||{}).forEach((function(n){var o=(0,i.Z)(n,2),l=(o[0],o[1]),r=null===l||void 0===l?void 0:l.filter((function(n){var o=n.uuid;return null===e||void 0===e?void 0:e[o]})),u=R(null===r||void 0===r?void 0:r.map((function(n){return n.uuid})));if(u in t){var c=null===t||void 0===t?void 0:t[u];d[u]=c}})),(null===(r=Object.keys(d))||void 0===r?void 0:r.length)>=1)return d}(r,C,w,S);c&&(B[t]=c);var a=null===(o=Object.values(c||{}))||void 0===o?void 0:o.reduce((function(n,o){var e=o.upstreamBlocks;return n.concat(null===e||void 0===e?void 0:e.map((function(n){return n.uuid})))}),[]);null===r||void 0===r||r.forEach((function(n){var o=n.uuid;null!==a&&void 0!==a&&a.includes(o)||!(o in k)||(k[o].parent=t)})),null===u||void 0===u||u.forEach((function(n){var o=null===n||void 0===n?void 0:n.uuid;null===r||void 0===r||r.forEach((function(n){var e=n.uuid;if((null===h||void 0===h?void 0:h.uuid)===o||(null===h||void 0===h?void 0:h.uuid)===e){var i=L(e,o);g[i.id]=i,m[o]=D(D({},null===m||void 0===m?void 0:m[o]),H(o,[e],{activeNodes:b})),m[e]=D(D({},null===m||void 0===m?void 0:m[e]),G(e,[o],{activeNodes:b}))}}));var e=L(t,o);g[e.id]=e,m[o]=D(D({},null===m||void 0===m?void 0:m[o]),H(o,[t],{activeNodes:b})),m[t]=D(D({},null===m||void 0===m?void 0:m[t]),G(t,[o],{activeNodes:b}))}))})),Object.entries(B||{}).forEach((function(n){var o=(0,i.Z)(n,2),e=o[0],t=o[1];Object.entries(t||{}).forEach((function(n){var o=(0,i.Z)(n,2),t=o[0],l=o[1],r=l.downstreamBlocks,u=l.upstreamBlocks,d=R([e,t]),c={data:{block:null===u||void 0===u?void 0:u[0],blocks:u,children:r},id:d,parent:e};k[d]=c,null===u||void 0===u||u.forEach((function(n){var o=n.uuid;o in k&&(k[o].parent=d);var e=N(t,o);if(e in g&&delete g[e],o in m){var i=M(o,t);i in(null===m||void 0===m?void 0:m[o])&&delete m[o][i]}if(t in m){var l=U(t,o);l in(null===m||void 0===m?void 0:m[t])&&delete m[t][l]}}));var a=L(t,d);g[a.id]=a,m[d]=D(D({},null===m||void 0===m?void 0:m[d]),H(d,[t],{activeNodes:b})),m[t]=D(D({},null===m||void 0===m?void 0:m[t]),G(t,[d],{activeNodes:b}))}))})),s&&Object.entries(m).forEach((function(n){var o=(0,i.Z)(n,2),e=o[0],t=o[1],l=null===k||void 0===k?void 0:k[e];l&&(l.ports=Object.values(t))})),{blocksWithDownstreamBlockSet:w,edges:Object.values(g||{}),nodes:Object.values(k||{}),ports:m}}function F(n){var o=n.block,e=n.blockStatus,i=n.messages,t=n.noStatus,l=n.runningBlocks,r=n.runningBlocksMapping;if(t||!o)return{};if(e){var u=(null===e||void 0===e?void 0:e[function(n){var o=n.uuid,e=n.replicated_block;return e?"".concat(o,":").concat(e):o}(o)])||{},d=u.status,c=u.runtime;return{hasFailed:B.V.FAILED===d,isCancelled:B.V.CANCELLED===d,isConditionFailed:B.V.CONDITION_FAILED===d,isInProgress:B.V.RUNNING===d,isQueued:B.V.INITIAL===d,isSuccessful:B.V.COMPLETED===d,runtime:c}}var a,s=(0,T.h5)((null===i||void 0===i?void 0:i[null===o||void 0===o?void 0:o.uuid])||[]),v=(0,T.oI)(s),f=v.hasError,p=v.hasOutput,h=!(null===r||void 0===r||!r[null===o||void 0===o?void 0:o.uuid]);return{hasFailed:!h&&(f||b.DA.FAILED===o.status),isInProgress:h,isQueued:h&&(null===(a=l[0])||void 0===a?void 0:a.uuid)!==o.uuid,isSuccessful:!h&&(!f&&p||b.DA.EXECUTED===o.status)}}var V,Y=e(28598);function q(n,o){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);o&&(i=i.filter((function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),e.push.apply(e,i)}return e}function X(n){for(var o=1;o<arguments.length;o++){var e=null!=arguments[o]?arguments[o]:{};o%2?q(Object(e),!0).forEach((function(o){(0,l.Z)(n,o,e[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):q(Object(e)).forEach((function(o){Object.defineProperty(n,o,Object.getOwnPropertyDescriptor(e,o))}))}return n}var K=(V={},(0,l.Z)(V,b.tf.DATA_EXPORTER,C.zS),(0,l.Z)(V,b.tf.DATA_LOADER,C.rH),(0,l.Z)(V,b.tf.DBT,C.xE),(0,l.Z)(V,b.tf.GLOBAL_DATA_PRODUCT,C.ie),(0,l.Z)(V,b.tf.SENSOR,C.LM),(0,l.Z)(V,b.tf.TRANSFORMER,C.Sv),V);var z=function(n){var o=n.anotherBlockSelected,e=n.block,i=n.blocksWithSameDownstreamBlocks,r=n.callbackBlocks,u=n.children,d=n.conditionalBlocks,c=n.disabled,a=n.downstreamBlocks,s=n.extensionBlocks,p=n.hasFailed,j=n.height,B=n.hideNoStatus,E=n.hideStatus,T=n.isCancelled,_=n.isConditionFailed,Z=n.isDragging,D=n.isInProgress,A=n.isQueued,R=n.isSuccessful,N=n.opacity,L=n.pipeline,M=n.runtime,H=n.selected,U=n.selectedBlock,G=(0,f.useContext)(v.ThemeContext),W=!(D||A||p||R||T||_),F=p&&!(D||A),V=!F&&R&&!(D||A),q="";W?q="No status":V?q="Successful execution":F?q="Failed execution":D?q="Currently executiing":T&&(q="Cancelled execution");var z=e.color,Q=e.runtime,J=e.type,$=(0,S.qn)(J,{blockColor:z,theme:G}),nn=$.accent,on=$.accentLight,en=(0,f.useMemo)((function(){return(0,O.rQ)(e)}),[e]),tn=(0,f.useMemo)((function(){var n,o,e=K[J]||C.EJ,i=!1;return[b.tf.CALLBACK,b.tf.CHART,b.tf.CONDITIONAL,b.tf.CUSTOM,b.tf.DATA_EXPORTER,b.tf.DATA_LOADER,b.tf.EXTENSION,b.tf.SCRATCHPAD,b.tf.SENSOR,b.tf.MARKDOWN,b.tf.TRANSFORMER].includes(J)?n=nn:[b.tf.DBT].includes(J)&&(o=nn),[b.tf.DATA_EXPORTER].includes(J)&&(i=!0),(0,Y.jsx)(w.ze,{backgroundColor:n,borderColor:o,children:(0,Y.jsx)("div",{style:{height:w.ZG,width:w.ZG},children:(0,Y.jsx)(e,{inverted:i,size:w.ZG})})})}),[nn,J]),ln=(0,f.useMemo)((function(){var n=[],e=[];if(A)(0,I.w6)(4).forEach((function(){var o,i;n.push(null===G||void 0===G||null===(o=G.content)||void 0===o?void 0:o.muted),e.push(null===G||void 0===G||null===(i=G.content)||void 0===i?void 0:i.muted)}));else if((null===i||void 0===i?void 0:i.length)>=2&&(null===a||void 0===a?void 0:a.length)>=1){var r,u=[];null!==i&&void 0!==i&&i.find((function(n){var o=n.uuid;return(null===U||void 0===U?void 0:U.uuid)===o}))?u.push(U):u.push.apply(u,(0,t.Z)(i)),null===u||void 0===u||null===(r=u.slice(0,4))||void 0===r||r.forEach((function(o){var i=(0,S.qn)(null===o||void 0===o?void 0:o.type,{blockColor:null===o||void 0===o?void 0:o.color,theme:G}),t=i.accent,l=i.accentLight;n.push(l),e.push(t)}))}else n.push.apply(n,[on,on,on,on]),e.push.apply(e,[nn,nn,nn,nn]);if((null===n||void 0===n?void 0:n.length)<4)for(var d=0,c=(null===n||void 0===n?void 0:n.length)||0;(null===n||void 0===n?void 0:n.length)<4;)n.push(null===n||void 0===n?void 0:n[d]),(d+=1)===c&&(d=0);if((null===e||void 0===e?void 0:e.length)<4)for(var s=0,v=(null===e||void 0===e?void 0:e.length)||0;(null===e||void 0===e?void 0:e.length)<4;)e.push(null===e||void 0===e?void 0:e[s]),(s+=1)===v&&(s=0);return["borderColorBottom","borderColorLeft","borderColorRight","borderColorTop"].reduce((function(i,t,r){return X(X({},i),{},(0,l.Z)({},t,!H&&o?null===n||void 0===n?void 0:n[r]:null===e||void 0===e?void 0:e[r]))}),{})}),[nn,on,o,i,a,A,H,U,G]),rn=ln.borderColorBottom,un=ln.borderColorLeft,dn=ln.borderColorRight,cn=ln.borderColorTop;return(0,Y.jsx)(w.Gi,{active:D,activeSlow:A,backgroundGradient:!(null!==a&&void 0!==a&&a.length)&&(0,S.u2)(J),borderColorBottom:rn,borderColorLeft:un,borderColorRight:dn,borderColorTop:cn,borderDeemphasized:(null===a||void 0===a?void 0:a.length)>=1,borderRadiusLarge:(null===a||void 0===a?void 0:a.length)>=1,disabled:c,height:j,isCancelled:T,isDragging:Z,noBackground:(null===a||void 0===a?void 0:a.length)>=1,opacity:N,selected:H,children:(0,Y.jsxs)(w.RJ,{disabled:c,height:j-2*w.YF,isConditionFailed:_,noBackground:(null===a||void 0===a?void 0:a.length)>=1,children:[!(null!==a&&void 0!==a&&a.length)&&(0,Y.jsx)(w.I5,{children:(0,Y.jsxs)(m.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,Y.jsxs)(g.Z,{flex:1,children:[tn,(0,Y.jsx)(x.Z,{mr:O.DS}),(0,Y.jsxs)(g.Z,{flexDirection:"column",children:[(0,Y.jsx)(y.ZP,{bold:!0,monospace:!0,children:(0,O._7)(e,L)}),(0,Y.jsx)(y.ZP,{default:!0,monospace:!0,small:!0,children:(0,O.qj)(e,L)})]})]}),(0,Y.jsx)(x.Z,{mr:"15px"}),(0,Y.jsx)(w.Pq,{title:q,children:!E&&(0,Y.jsxs)(Y.Fragment,{children:[V&&(0,Y.jsx)(C.Jr,{size:O.SX,success:!0}),F&&(0,Y.jsx)(C.x8,{danger:!0,size:O.SX}),W&&!B&&(0,Y.jsx)(k.Z,{borderSize:1,muted:!0,size:O.SX})]})})]})}),(0,Y.jsxs)(w.Go,{children:[!(null!==a&&void 0!==a&&a.length)&&(0,Y.jsxs)(Y.Fragment,{children:[(null===en||void 0===en?void 0:en.length)>=1&&(0,Y.jsx)(x.Z,{mt:1,children:(0,Y.jsx)(y.ZP,{default:!0,monospace:!0,small:!0,children:en})}),[d,r,s].map((function(n,o){if((null===n||void 0===n?void 0:n.length)>=1)return(0,Y.jsx)("div",{style:{marginTop:4},children:(0,Y.jsx)(m.ZP,{alignItems:"center",flexWrap:"wrap",children:n.reduce((function(n,o,e){return e>=1&&n.push((0,Y.jsx)("div",{style:{width:4}},"space-".concat(o.uuid))),n.push((0,Y.jsx)("div",{style:{marginTop:4},children:(0,Y.jsx)(h.Z,{color:(0,S.qn)(o.type,{blockColor:o.color,theme:G}).accentLight,monospace:!0,small:!0,children:o.uuid})},"badge-".concat(o.uuid))),n}),[])})},"badge-blocks-".concat(o))})),(Q||M)&&(0,Y.jsx)(x.Z,{mt:1,children:(0,Y.jsx)(y.ZP,{monospace:!0,muted:!0,small:!0,children:P(Q||M)})})]}),u]})]})})},Q=e(50724),J=e(15338),$=e(93369),nn=e(48670),on=e(65956),en=e(57653),tn=e(71180),ln=e(12468),rn=e(42631),un=e(72191),dn=e(44897),cn=v.default.div.withConfig({displayName:"indexstyle__ZoomControlsStyle",componentId:"sc-1usy46j-0"})(["position:absolute;bottom:","px;left:50%;transform:translateX(-50%);display:flex;justify-content:center;background-color:",";border:1px solid ",";border-radius:","px;box-shadow:",";"],3*E.iI,(function(n){return(n.theme.background||dn.Z.background).panel}),(function(n){return(n.theme.borders||dn.Z.borders).darkLight}),rn.g5,(function(n){return(n.theme.shadow||dn.Z.shadow).frame})),an=v.default.div.withConfig({displayName:"indexstyle__ZoomDisplayStyle",componentId:"sc-1usy46j-1"})(["padding:","px ","px ","px ","px;border-radius:0 ","px ","px 0;cursor:default;",""],1.5*E.iI,3.25*E.iI,1.5*E.iI,1.875*E.iI,rn.g5,rn.g5,(function(n){return n.minimizeControls&&"\n padding: ".concat(1.5*E.iI,"px ").concat(1.875*E.iI,"px;\n border-radius: ").concat(rn.g5,"px;\n ")}));function sn(n,o){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);o&&(i=i.filter((function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),e.push.apply(e,i)}return e}function vn(n){for(var o=1;o<arguments.length;o++){var e=null!=arguments[o]?arguments[o]:{};o%2?sn(Object(e),!0).forEach((function(o){(0,l.Z)(n,o,e[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):sn(Object(e)).forEach((function(o){Object.defineProperty(n,o,Object.getOwnPropertyDescriptor(e,o))}))}return n}var fn=35*E.iI,pn={bottomOffset:6.5*E.iI,size:null,widthFitContent:!0},hn={highlightOnHoverAlt:!0,iconOnly:!0,noBorder:!0,padding:"".concat(1.5*E.iI,"px ").concat(1.875*E.iI,"px"),transparent:!0},bn={size:un._k};function kn(n){var o=n.canvasRef,e=n.containerRef,i=n.zoomLevel,t=(0,f.useState)(!1),l=t[0],r=t[1];return(0,f.useEffect)((function(){if(null!==e&&void 0!==e&&e.current){var n=new ResizeObserver((function(){var n=e.current.offsetWidth;r(n<fn)}));return n.observe(e.current),function(){return n.disconnect()}}}),[e]),(0,Y.jsxs)(cn,{onDoubleClick:function(n){n.stopPropagation()},children:[!l&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(ln.Z,vn(vn({},pn),{},{label:"Reset (shortcut: double-click canvas)",children:(0,Y.jsx)(tn.ZP,vn(vn({},hn),{},{borderRadius:"".concat(rn.g5,"px 0 0 ").concat(rn.g5,"px"),onClick:function(){var n,e;return null===o||void 0===o||null===(n=o.current)||void 0===n||null===(e=n.fitCanvas)||void 0===e?void 0:e.call(n)},padding:"".concat(1.5*E.iI,"px ").concat(1.875*E.iI,"px ").concat(1.5*E.iI,"px ").concat(3.25*E.iI,"px"),children:(0,Y.jsx)(C.Qc,vn({},bn))}))})),(0,Y.jsx)(ln.Z,vn(vn({},pn),{},{label:"Zoom in",children:(0,Y.jsx)(tn.ZP,vn(vn({},hn),{},{onClick:function(){var n,e;return null===o||void 0===o||null===(n=o.current)||void 0===n||null===(e=n.setZoom)||void 0===e?void 0:e.call(n,i-1+.5)},children:(0,Y.jsx)(C.DY,vn({},bn))}))})),(0,Y.jsx)(ln.Z,vn(vn({},pn),{},{label:"Zoom out",children:(0,Y.jsx)(tn.ZP,vn(vn({},hn),{},{onClick:function(){var n,e;return null===o||void 0===o||null===(n=o.current)||void 0===n||null===(e=n.setZoom)||void 0===e?void 0:e.call(n,i-1-.5)},children:(0,Y.jsx)(C.H9,vn({},bn))}))}))]}),(0,Y.jsx)(ln.Z,vn(vn({},pn),{},{label:"Zoom level",children:(0,Y.jsx)(an,{minimizeControls:l,children:(0,Y.jsx)(y.ZP,{center:!0,large:!0,minWidth:5*E.iI,children:"".concat(Math.round(100*i),"%")})})}))]})}var gn=(0,f.memo)(kn),mn=e(35686),xn=e(77417),yn=e(55187),Cn=e(85385),wn=e(72619),On=e(3314),Sn=["forwardedRef"];function jn(n,o){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);o&&(i=i.filter((function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),e.push.apply(e,i)}return e}function Bn(n){for(var o=1;o<arguments.length;o++){var e=null!=arguments[o]?arguments[o]:{};o%2?jn(Object(e),!0).forEach((function(o){(0,l.Z)(n,o,e[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):jn(Object(e)).forEach((function(o){Object.defineProperty(n,o,Object.getOwnPropertyDescriptor(e,o))}))}return n}var En=s()((0,u.Z)(c().mark((function n(){var o,i;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all([e.e(4434),e.e(5987),e.e(2920)]).then(e.t.bind(e,74529,23));case 2:return o=n.sent,i=o.Canvas,n.abrupt("return",(function(n){var o=n.forwardedRef,e=(0,r.Z)(n,Sn);return(0,Y.jsx)(i,Bn({ref:o},e))}));case 5:case"end":return n.stop()}}),n)}))),{ssr:!1,loadableGenerated:{webpack:function(){return[74529]}}}),In=s()((0,u.Z)(c().mark((function n(){var o;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all([e.e(4434),e.e(5987),e.e(2920)]).then(e.t.bind(e,74529,23));case 2:return o=n.sent,n.abrupt("return",o.Node);case 4:case"end":return n.stop()}}),n)}))),{ssr:!1,loadableGenerated:{webpack:function(){return[74529]}}}),Tn=s()((0,u.Z)(c().mark((function n(){var o;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all([e.e(4434),e.e(5987),e.e(2920)]).then(e.t.bind(e,74529,23));case 2:return o=n.sent,n.abrupt("return",o.Edge);case 4:case"end":return n.stop()}}),n)}))),{ssr:!1,loadableGenerated:{webpack:function(){return[74529]}}}),_n=s()((0,u.Z)(c().mark((function n(){var o;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all([e.e(4434),e.e(5987),e.e(2920)]).then(e.t.bind(e,74529,23));case 2:return o=n.sent,n.abrupt("return",o.Port);case 4:case"end":return n.stop()}}),n)}))),{ssr:!1,loadableGenerated:{webpack:function(){return[74529]}}});s()((0,u.Z)(c().mark((function n(){var o;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all([e.e(4434),e.e(5987),e.e(2920)]).then(e.t.bind(e,74529,23));case 2:return o=n.sent,n.abrupt("return",o.Add);case 4:case"end":return n.stop()}}),n)}))),{ssr:!1,loadableGenerated:{webpack:function(){return[74529]}}}),s()((0,u.Z)(c().mark((function n(){var o;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all([e.e(4434),e.e(5987),e.e(2920)]).then(e.t.bind(e,74529,23));case 2:return o=n.sent,n.abrupt("return",o.Remove);case 4:case"end":return n.stop()}}),n)}))),{ssr:!1,loadableGenerated:{webpack:function(){return[74529]}}}),s()((0,u.Z)(c().mark((function n(){var o;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all([e.e(4434),e.e(5987),e.e(2920)]).then(e.t.bind(e,74529,23));case 2:return o=n.sent,n.abrupt("return",o.MarkerArrow);case 4:case"end":return n.stop()}}),n)}))),{ssr:!1,loadableGenerated:{webpack:function(){return[74529]}}});var Zn=function(n){var o=n.addNewBlockAtIndex,e=n.blockRefs,r=n.blockStatus,u=n.blocksOverride,d=n.blocks,c=n.contentByBlockUUID,a=n.contextMenuEnabled,s=n.deleteBlock,h=n.disabled,k=n.dragEnabled,g=n.editingBlock,C=n.enablePorts,w=void 0!==C&&C,B=n.fetchPipeline,T=n.height,_=n.heightOffset,Z=void 0===_?10*E.iI:_,D=n.messages,P=n.noStatus,N=n.onClickNode,L=n.runBlock,H=n.pannable,U=void 0===H||H,G=n.pipeline,V=n.runningBlocks,q=void 0===V?[]:V,X=n.selectedBlock,K=n.setActiveSidekickView,tn=n.setEditingBlock,ln=n.setErrors,rn=n.setSelectedBlock,un=n.setZoom,dn=n.showDynamicBlocks,cn=void 0!==dn&&dn,an=n.showUpdateBlockModal,sn=n.treeRef,vn=n.zoomable,fn=void 0===vn||vn,pn=(0,xn.Z)(),hn=pn.featureEnabled,bn=pn.featureUUIDs,kn=(0,f.useContext)(v.ThemeContext),Sn=((0,f.useMemo)((function(){return(0,yn.ki)(kn)}),[kn]),(0,f.useRef)(null)),jn=((0,f.useRef)({}),(0,f.useRef)({})),Zn=(0,f.useRef)({}),Dn=(0,f.useRef)(null),Pn=sn||Dn,An=(0,f.useState)(1),Rn=An[0],Nn=An[1],Ln=(0,f.useState)(null),Mn=Ln[0],Hn=Ln[1],Un=(0,f.useState)({}),Gn=Un[0],Wn=Un[1],Fn=(0,f.useState)({}),Vn=Fn[0],Yn=Fn[1],qn=(0,f.useState)(null),Xn=qn[0],Kn=qn[1],zn=(0,f.useState)(!1),Qn=zn[0],Jn=zn[1],$n=(0,f.useState)(null),no=$n[0],oo=$n[1],eo=(0,f.useState)(null),io=eo[0],to=eo[1],lo=(0,f.useState)(null),ro=lo[0],uo=lo[1];(0,f.useEffect)((function(){var n=function(n){Qn&&no&&oo((function(o){return Bn(Bn({},o),{},{event:n})}))},o=function(n){Qn&&no&&(Jn(!1),setTimeout((function(){return oo(null)}),1))};return window.addEventListener("mousemove",n),window.addEventListener("mouseup",o),function(){window.removeEventListener("mousemove",n),window.removeEventListener("mouseup",o)}}),[Qn,no]);var co=(0,f.useState)(null),ao=co[0],so=co[1],vo=(0,f.useState)([]),fo=vo[0],po=vo[1],ho=(0,f.useState)(!1),bo=(ho[0],ho[1],(null===g||void 0===g?void 0:g.upstreamBlocks)||{}),ko=bo.block,go=bo.values,mo=void 0===go?[]:go,xo=(0,f.useMemo)((function(){return mo.length}),[mo]),yo=(0,f.useMemo)((function(){var n;return(null===(n=u||(null===G||void 0===G?void 0:G.blocks))||void 0===n?void 0:n.filter((function(n){var o=n.type;return!b.iZ.includes(o)})))||[]}),[u,null===G||void 0===G?void 0:G.blocks]),Co=(0,f.useMemo)((function(){return yo}),[yo,cn]),wo=(0,f.useMemo)((function(){if(u)return u;if(d)return d;if(G){var n={},o=[];return o.push.apply(o,(0,t.Z)(null===G||void 0===G?void 0:G.blocks)),o.push.apply(o,(0,t.Z)(null===G||void 0===G?void 0:G.callbacks)),o.push.apply(o,(0,t.Z)(null===G||void 0===G?void 0:G.conditionals)),Object.values(null===G||void 0===G?void 0:G.extensions).forEach((function(n){var e=n.blocks;o.push.apply(o,(0,t.Z)(e))})),o.reduce((function(o,e){return n[e.uuid]||o.push(e),o}),[])}return[]}),[d,u,G]),Oo=(0,f.useMemo)((function(){return(0,I.HK)(wo||[],(function(n){return n.uuid}))}),[wo]),So=(0,f.useMemo)((function(){var n={};return null===Co||void 0===Co||Co.map((function(o){var e;n[o.uuid]=null===o||void 0===o||null===(e=o.callback_blocks)||void 0===e?void 0:e.reduce((function(n,o){var e=null===Oo||void 0===Oo?void 0:Oo[o];return e?n.concat(e):n}),[])})),n}),[Co,Oo]),jo=(0,f.useMemo)((function(){var n={};return null===Co||void 0===Co||Co.map((function(o){var e;n[o.uuid]=null===o||void 0===o||null===(e=o.conditional_blocks)||void 0===e?void 0:e.reduce((function(n,o){var e=null===Oo||void 0===Oo?void 0:Oo[o];return e?n.concat(e):n}),[])})),n}),[Co,Oo]),Bo=(0,f.useMemo)((function(){var n={};return null===Co||void 0===Co||Co.map((function(o){var e,t=[];null===(e=Object.entries((null===G||void 0===G?void 0:G.extensions)||{}))||void 0===e||e.forEach((function(n){var e=(0,i.Z)(n,2),l=e[0],r=e[1].blocks;null===r||void 0===r||r.forEach((function(n){var e=n.upstream_blocks,i=n.uuid;if(null!==e&&void 0!==e&&e.includes(null===o||void 0===o?void 0:o.uuid)){var r=null===Oo||void 0===Oo?void 0:Oo[i];r&&t.push(Bn(Bn({},r),{},{extension_uuid:l}))}}))})),n[o.uuid]=t})),n}),[Co,Oo,G]),Eo=(0,f.useMemo)((function(){return(0,I.HK)(q,(function(n){return n.uuid}))}),[q]);(0,f.useEffect)((function(){setTimeout((function(){var n,o,e,i,t;0===(null===Pn||void 0===Pn||null===(n=Pn.current)||void 0===n||null===(o=n.containerRef)||void 0===o||null===(e=o.current)||void 0===e?void 0:e.scrollTop)&&(null===Pn||void 0===Pn||null===(i=Pn.current)||void 0===i||null===(t=i.fitCanvas)||void 0===t||t.call(i))}),1e3)}),[Pn]);var Io=(0,p.Db)(mn.ZP.blocks.pipelines.useUpdate(null===G||void 0===G?void 0:G.uuid,encodeURIComponent(null===ko||void 0===ko?void 0:ko.uuid)),{onSuccess:function(n){return(0,wn.wD)(n,{callback:function(){tn({upstreamBlocks:null}),null===B||void 0===B||B()},onErrorCallback:function(n,o){return null===ln||void 0===ln?void 0:ln({errors:o,response:n})}})}}),To=(0,i.Z)(Io,2),_o=To[0],Zo=To[1].isLoading,Do=(0,p.Db)((function(n){var o=n.block,e=n.downstreamBlocks,i=n.upstreamBlocks,t=Bn({},o);return"undefined"!==typeof e&&(t.downstream_blocks=e),"undefined"!==typeof i&&(t.upstream_blocks=i),mn.ZP.blocks.pipelines.useUpdate(null===G||void 0===G?void 0:G.uuid,encodeURIComponent(null===o||void 0===o?void 0:o.uuid))({block:t})}),{onSuccess:function(n){return(0,wn.wD)(n,{callback:function(){null===B||void 0===B||B()},onErrorCallback:function(n,o){return null===ln||void 0===ln?void 0:ln({errors:o,response:n})}})}}),Po=(0,i.Z)(Do,1)[0],Ao=(0,f.useCallback)((function(n){var o=n.type,i=n.uuid;if(null===rn||void 0===rn||rn(n),po([]),null!==e&&void 0!==e&&e.current){var t,l=e.current["".concat(o,"s/").concat(i,".py")];null===l||void 0===l||null===(t=l.current)||void 0===t||t.scrollIntoView()}}),[e,rn]),Ro=(0,f.useCallback)((function(n){po([]),tn((function(o){var e=o.upstreamBlocks.values||[],i=e.findIndex((function(o){var e=o.uuid;return n.uuid===e}));return Bn(Bn({},o),{},{upstreamBlocks:Bn(Bn({},o.upstreamBlocks),{},{values:i>=0?(0,I.oM)(e,i):e.concat(n)})})}))}),[tn]),No=(0,f.useMemo)((function(){var n={};return Co.forEach((function(o){o.upstream_blocks.forEach((function(e){n[e]||(n[e]=[]),n[e].push(o)}))})),n}),[Co]),Lo=(0,f.useMemo)((function(){return W({activeNodes:Gn,blockStatus:r,blockUUIDMapping:Oo,blocks:Co,callbackBlocksByBlockUUID:So,conditionalBlocksByBlockUUID:jo,downstreamBlocksMapping:No,enablePorts:w,extensionBlocksByBlockUUID:Bo,nodeHovering:io,pipeline:G,selectedBlock:ao})}),[Gn,r,Oo,Co,So,jo,No,w,Bo,io,G,ao]),Mo=Lo.edges,Ho=Lo.nodes,Uo=(Lo.ports,Lo.blocksWithDownstreamBlockSet),Go=(0,f.useMemo)((function(){var n=0;return T&&(n+=T),Z&&(n-=Z),Math.max(0,n)}),[T,Z]),Wo=(0,f.useCallback)((function(n,o){(0,On.j)(n);var e,i,t,l,r,u=o.data,d=u.block,c=u.blocks,a=d;if((null===c||void 0===c?void 0:c.length)>=2&&X){var s=null===c||void 0===c?void 0:c.findIndex((function(n){var o=n.uuid;return(null===X||void 0===X?void 0:X.uuid)===o}));a=s<(null===c||void 0===c?void 0:c.length)-1?null===c||void 0===c?void 0:c[s+1]:null===c||void 0===c?void 0:c[0]}if(!((null===ko||void 0===ko?void 0:ko.uuid)===a.uuid))if(ko)Ro(a);else if(null===N||void 0===N||N({block:a}),X&&(null===X||void 0===X?void 0:X.uuid)===(null===(e=a)||void 0===e?void 0:e.uuid)&&(((null===(i=a)||void 0===i||null===(t=i.downstream_blocks)||void 0===t?void 0:t.length)||0)<=1&&(null===(l=a)||void 0===l||null===(r=l.upstream_blocks)||void 0===r||!r.length)||ao&&(null===ao||void 0===ao?void 0:ao.uuid)===(null===X||void 0===X?void 0:X.uuid)))null===rn||void 0===rn||rn(null),so(null);else{var v;if(X)(null===X||void 0===X?void 0:X.uuid)===(null===(v=a)||void 0===v?void 0:v.uuid)?so(a):so(null);setTimeout((function(){Ao(a)}),1)}}),[ko,Ao,N,Ro,X,ao,so]),Fo=(0,f.useCallback)((function(n){var o,e=null===n||void 0===n?void 0:n.id;e in jn.current&&clearTimeout(null===jn||void 0===jn||null===(o=jn.current)||void 0===o?void 0:o[e])}),[Gn]),Vo=(0,f.useCallback)((function(n){var o=null===n||void 0===n?void 0:n.id;jn.current[o]=setTimeout((function(){Wn((function(n){var e=Bn({},n);return null===e||void 0===e||delete e[o],e}))}),1e3)}),[Wn]),Yo=(0,f.useCallback)((function(n,o,e){var i;if((0,On.j)(n),!Qn&&no){var t,r,u,d,c,a,s,v,f,p=null===o||void 0===o||null===(t=o.data)||void 0===t?void 0:t.block,h=null===no||void 0===no||null===(r=no.node)||void 0===r||null===(u=r.data)||void 0===u?void 0:u.block;if(!((null===G||void 0===G?void 0:G.type)===en.qL.INTEGRATION&&((null===p||void 0===p?void 0:p.type)===b.tf.DATA_EXPORTER||(null===p||void 0===p?void 0:p.type)===b.tf.DATA_LOADER&&(null===h||void 0===h?void 0:h.type)===b.tf.DATA_EXPORTER))&&(null===p||void 0===p||null===(d=p.upstream_blocks)||void 0===d||!d.includes(null===h||void 0===h?void 0:h.uuid))&&(null===p||void 0===p?void 0:p.uuid)!==(null===h||void 0===h?void 0:h.uuid))if((null===o||void 0===o||null===(c=o.data)||void 0===c||null===(a=c.children)||void 0===a?void 0:a.length)>=1){var k,m=null===p||void 0===p||null===(k=p.downstream_blocks)||void 0===k?void 0:k.filter((function(n){var o;return!(null!==h&&void 0!==h&&null!==(o=h.upstream_blocks)&&void 0!==o&&o.includes(n))}));Po({block:h,upstreamBlocks:m})}else if((null===no||void 0===no||null===(s=no.node)||void 0===s||null===(v=s.data)||void 0===v||null===(f=v.children)||void 0===f?void 0:f.length)>=1){var x,y=null===h||void 0===h||null===(x=h.downstream_blocks)||void 0===x?void 0:x.filter((function(n){var o;return!(null!==p&&void 0!==p&&null!==(o=p.downstream_blocks)&&void 0!==o&&o.includes(n))}));Po({block:p,downstreamBlocks:y})}else Po({block:h,upstreamBlocks:((null===h||void 0===h?void 0:h.upstream_blocks)||[]).concat(null===p||void 0===p?void 0:p.uuid)})}if(null===g||void 0===g||!g.upstreamBlocks){Fo(o),to(o);var C=null===o||void 0===o?void 0:o.id;null===(i=Object.keys(Vn||{}))||void 0===i||!i.length||C in Vn?Wn((function(n){return Object.values(n||{}).forEach((function(n){Vo(n)})),Bn(Bn({},n),{},(0,l.Z)({},C,o))})):uo(o)}}),[Vn,Fo,g,Qn,no,G,Wn,to,uo,Vo]),qo=(0,f.useCallback)((function(n,o,e){(0,On.j)(n),to(null),Vo(o)}),[to,Vo]),Xo=(0,f.useCallback)((function(n,o,e){if((0,On.j)(n),!Xn){var i=null===o||void 0===o?void 0:o.id;Zn.current[i]=setTimeout((function(){Xn||(Hn(null),Wn({}),Jn(!0),oo({data:e,event:n,node:o}))}),500)}}),[Xn,Wn,Hn,Jn,oo]),Ko=(0,f.useCallback)((function(n,o,e){(0,On.j)(n);var i,t=null===o||void 0===o?void 0:o.id;t in Zn.current&&clearTimeout(null===Zn||void 0===Zn||null===(i=Zn.current)||void 0===i?void 0:i[t])}),[]),zo=(0,f.useCallback)((function(n,o,e){var i;(0,On.j)(n);var t=null===o||void 0===o?void 0:o.id;clearTimeout(null===(i=Zn.current)||void 0===i?void 0:i[t]),Kn({data:e,event:n,node:o}),Hn(null)}),[Hn,Kn]),Qo=(0,f.useCallback)((function(n){var o=n.event,e=n.node;n.port;(0,On.j)(o),Fo(e),to(e)}),[Fo,to]),Jo=(0,f.useCallback)((function(n){var o=n.event,e=n.node;n.port;(0,On.j)(o),to(null),Vo(e)}),[to,Vo]),$o=(0,f.useCallback)((function(n){var o=n.event,e=n.node,i=n.port;Yn((function(n){return Bn(Bn({},n),{},(0,l.Z)({},null===e||void 0===e?void 0:e.id,{event:o,node:e,port:i}))}))}),[Yn]),ne=(0,f.useCallback)((function(n){n.event;var o=n.node,e=n.port,i=null===o||void 0===o?void 0:o.id;null===e||void 0===e||e.side;if(ro){var t,l,r,u,d=null===o||void 0===o||null===(t=o.properties)||void 0===t||null===(l=t.data)||void 0===l?void 0:l.block,c=null===ro||void 0===ro||null===(r=ro.data)||void 0===r?void 0:r.block;if(!((null===G||void 0===G?void 0:G.type)===en.qL.INTEGRATION&&((null===d||void 0===d?void 0:d.type)===b.tf.DATA_EXPORTER||(null===d||void 0===d?void 0:d.type)===b.tf.DATA_LOADER&&(null===c||void 0===c?void 0:c.type)===b.tf.DATA_EXPORTER))&&(null===d||void 0===d||null===(u=d.upstream_blocks)||void 0===u||!u.includes(c.uuid))&&(null===o||void 0===o?void 0:o.id)!==(null===ro||void 0===ro?void 0:ro.id)){var a={};j.rl.SOUTH===(null===e||void 0===e?void 0:e.side)?a.upstreamBlocks=((null===c||void 0===c?void 0:c.upstream_blocks)||[]).concat(null===d||void 0===d?void 0:d.uuid):a.downstreamBlocks=((null===c||void 0===c?void 0:c.downstream_blocks)||[]).concat(null===d||void 0===d?void 0:d.uuid),Po(Bn({block:c},a))}}Yn((function(n){var o=Bn({},n);return null===o||void 0===o||delete o[i],o})),Vo(o)}),[G,Yn,Vo,ro]),oe=(0,f.useCallback)((function(n,o,e){var i,t;if(no)return{anotherBlockSelected:!0,selected:!1};var l=(null===(i=Object.values(Vn||{}))||void 0===i?void 0:i.length)>=1,r=null===Vn||void 0===Vn?void 0:Vn[null===n||void 0===n?void 0:n.id],u=!1;if(ko)u=!!(0,I.sE)(mo,(function(n){return n.uuid===(null===o||void 0===o?void 0:o.uuid)}));else if(l)u=!!r;else if((null===e||void 0===e||null===(t=e.blocksWithSameDownstreamBlocks)||void 0===t?void 0:t.length)>=2){var d,c;u=null===e||void 0===e||null===(d=e.blocksWithSameDownstreamBlocks)||void 0===d||null===(c=d.map((function(n){return n.uuid})))||void 0===c?void 0:c.includes(null===X||void 0===X?void 0:X.uuid)}else u=(null===X||void 0===X?void 0:X.uuid)===(null===o||void 0===o?void 0:o.uuid);return{anotherBlockSelected:l?!r:!!X,selected:u}}),[Vn,ko,no,X,mo]),ee=(0,f.useCallback)((function(n,o,e){var i,t=e.isDragging,l=e.nodeHeight,u=e.nodeWidth,d=e.opacity,c=n.data,a=c.blocks,s=c.children;if((null===s||void 0===s?void 0:s.length)>=1){var v=[];null===s||void 0===s||s.forEach((function(o){var e=oe(n,o),i=e.anotherBlockSelected,l=e.selected,u=F({block:o,blockStatus:r,messages:D,noStatus:P,runningBlocks:q,runningBlocksMapping:Eo}),c=u.hasFailed,a=u.isInProgress,s=u.isQueued,f=u.isSuccessful,p=null===So||void 0===So?void 0:So[null===o||void 0===o?void 0:o.uuid],b=null===jo||void 0===jo?void 0:jo[null===o||void 0===o?void 0:o.uuid],k=null===Bo||void 0===Bo?void 0:Bo[null===o||void 0===o?void 0:o.uuid];v.push((0,Y.jsx)(z,{anotherBlockSelected:i,block:o,callbackBlocks:null===So||void 0===So?void 0:So[null===o||void 0===o?void 0:o.uuid],conditionalBlocks:null===jo||void 0===jo?void 0:jo[null===o||void 0===o?void 0:o.uuid],disabled:(null===ko||void 0===ko?void 0:ko.uuid)===(null===o||void 0===o?void 0:o.uuid),extensionBlocks:null===Bo||void 0===Bo?void 0:Bo[null===o||void 0===o?void 0:o.uuid],hasFailed:c,height:(0,O.p1)(o,G,{blockStatus:r,callbackBlocks:p,conditionalBlocks:b,extensionBlocks:k}),hideNoStatus:!0,hideStatus:h||P,isDragging:t,isInProgress:a,isQueued:s,isSuccessful:f,opacity:d,pipeline:G,selected:l},null===o||void 0===o?void 0:o.uuid))})),i=(0,Y.jsxs)(m.ZP,{alignItems:"center",justifyContent:"space-between",style:{height:l,width:u},children:[(0,Y.jsx)(x.Z,{pr:E.cd}),v,(0,Y.jsx)(x.Z,{pr:E.cd})]})}var f,p=oe(n,o,{blocksWithSameDownstreamBlocks:a}),b=p.anotherBlockSelected,k=p.selected,g=F({block:o,blockStatus:r,messages:D,noStatus:P,runningBlocks:q,runningBlocksMapping:Eo}),y=g.hasFailed,C=g.isInProgress,w=g.isQueued,S=g.isSuccessful;return f=(null===s||void 0===s?void 0:s.length)>=1?null===s||void 0===s?void 0:s.some((function(n){var e;return n&&(null===(e=F({block:o,blockStatus:r,messages:D,noStatus:P,runningBlocks:q,runningBlocksMapping:Eo}))||void 0===e?void 0:e.isInProgress)})):C,(0,Y.jsx)(z,{anotherBlockSelected:b,block:o,blocksWithSameDownstreamBlocks:a,callbackBlocks:null===So||void 0===So?void 0:So[null===o||void 0===o?void 0:o.uuid],conditionalBlocks:null===jo||void 0===jo?void 0:jo[null===o||void 0===o?void 0:o.uuid],disabled:(null===ko||void 0===ko?void 0:ko.uuid)===(null===o||void 0===o?void 0:o.uuid),downstreamBlocks:s,extensionBlocks:null===Bo||void 0===Bo?void 0:Bo[null===o||void 0===o?void 0:o.uuid],hasFailed:y,height:l,hideNoStatus:!0,hideStatus:h||P,isDragging:t,isInProgress:f,isQueued:w,isSuccessful:S,opacity:d,pipeline:G,selected:k,children:i},null===o||void 0===o?void 0:o.uuid)}),[ko,r,So,jo,h,Bo,D,P,G,q,Eo]),ie=(0,f.useMemo)((function(){var n,o;if(Qn&&no){var e=no.event,i=no.node,t=no.data,l=e.clientX,u=e.clientY,d=(null===Sn||void 0===Sn||null===(n=Sn.current)||void 0===n?void 0:n.getBoundingClientRect())||{},c=d.x,a=d.y,s=null===i||void 0===i||null===(o=i.data)||void 0===o?void 0:o.block;if(s){var v=F({block:s,blockStatus:r,messages:D,noStatus:P,runningBlocks:q,runningBlocksMapping:Eo}),f=(v.hasFailed,v.isInProgress,v.isQueued,v.isSuccessful,null===So||void 0===So?void 0:So[null===s||void 0===s?void 0:s.uuid]),p=null===jo||void 0===jo?void 0:jo[null===s||void 0===s?void 0:s.uuid],h=null===Bo||void 0===Bo?void 0:Bo[null===s||void 0===s?void 0:s.uuid],b={blockStatus:r,callbackBlocks:f,conditionalBlocks:p,extensionBlocks:h},k=(0,O.p1)(s,G,b),g=(0,O.HI)(s,G,b),m=ee(i,s,{isDragging:!0,nodeHeight:null===t||void 0===t?void 0:t.nodeHeight,nodeWidth:null===t||void 0===t?void 0:t.nodeWidth,opacity:.5});return(0,Y.jsx)("div",{style:{left:l-c-g/2,position:"absolute",top:u-a-k/2},children:m})}}}),[r,ee,So,jo,Bo,Qn,D,P,no,G,q,Eo]),te=(0,f.useMemo)((function(){var n,e,i,t;if(Mn){var l,r=Mn.edge,u=Oo[null===r||void 0===r?void 0:r.from],d=Oo[null===r||void 0===r?void 0:r.to],c=null===(n=event)||void 0===n?void 0:n.clientX,a=null===(e=event)||void 0===e?void 0:e.clientY,s=(null===Sn||void 0===Sn||null===(i=Sn.current)||void 0===i?void 0:i.getBoundingClientRect())||{},v=s.x,f=s.y;u&&!d?l=null===Uo||void 0===Uo?void 0:Uo[null===u||void 0===u?void 0:u.uuid]:!u&&d&&(l=null===Uo||void 0===Uo?void 0:Uo[null===d||void 0===d?void 0:d.uuid]);var p,h=function(){Po({block:d,upstreamBlocks:((null===d||void 0===d?void 0:d.upstream_blocks)||[]).filter((function(n){return n!==(null===u||void 0===u?void 0:u.uuid)}))})};if((null===(t=l)||void 0===t?void 0:t.length)>=1)null===(p=l)||void 0===p||p.forEach((function(n){var o=n.downstreamBlocks,e=n.upstreamBlocks,i=R(null===e||void 0===e?void 0:e.map((function(n){return n.uuid})));if(u&&!d&&(null===r||void 0===r?void 0:r.to)===i){var t=(0,I.HK)(o||[],(function(n){return n.uuid}));h=function(){Po({block:u,downstreamBlocks:((null===u||void 0===u?void 0:u.downstream_blocks)||[]).filter((function(n){return!(n in t)}))})}}else if(!u&&d&&(null===r||void 0===r?void 0:r.from)===i){var l=(0,I.HK)(e||[],(function(n){return n.uuid}));h=function(){Po({block:d,upstreamBlocks:((null===d||void 0===d?void 0:d.upstream_blocks)||[]).filter((function(n){return!(n in l)}))})}}}));else if(!u&&!d){var k,g,m=[];null===r||void 0===r||null===(k=r.to)||void 0===k||null===(g=k.split(":"))||void 0===g||g.forEach((function(n){if((null===n||void 0===n?void 0:n.length)>=1&&"parent"!==n){var o=null===Oo||void 0===Oo?void 0:Oo[n];o&&m.push(o)}})),h=function(){null===m||void 0===m||m.forEach((function(n){return Po({block:n,downstreamBlocks:[]})}))}}return(0,Y.jsx)("div",{style:{left:c-v,position:"absolute",top:a-f},children:(0,Y.jsx)(Q.Z,{disableEscape:!0,onClickOutside:function(){return Hn(null)},open:!0,children:(0,Y.jsxs)(on.Z,{noPadding:!0,children:[(0,Y.jsx)(x.Z,{px:E.cd,py:1,children:(0,Y.jsx)(nn.Z,{block:!0,onClick:function(){var n=null===Co||void 0===Co?void 0:Co.findIndex((function(n){return n.uuid===(null===d||void 0===d?void 0:d.uuid)}));null===o||void 0===o||o({downstream_blocks:d?[null===d||void 0===d?void 0:d.uuid]:null,language:null===d||void 0===d?void 0:d.language,type:b.tf.CUSTOM,upstream_blocks:u?[null===u||void 0===u?void 0:u.uuid]:null},n,(function(){Hn(null)}))},preventDefault:!0,sameColorAsText:!0,children:"Add new block between"})}),(0,Y.jsx)(J.Z,{light:!0}),(0,Y.jsx)(x.Z,{px:E.cd,py:1,children:(0,Y.jsx)(nn.Z,{block:!0,onClick:function(){var n;null===(n=h)||void 0===n||n(),Hn(null)},preventDefault:!0,sameColorAsText:!0,children:"Remove connection"})})]})})})}}),[Mn,Co,Hn,Po]),le=(0,f.useMemo)((function(){return null===hn||void 0===hn?void 0:hn(bn.INTERACTIONS)}),[hn,bn]),re=(0,f.useMemo)((function(){var n;if(Xn){var e,i,t,l,r=Xn.event,u=Xn.node,d=(Xn.data,u.data),a=d.block,v=d.blocks,f=(d.children,r.clientX),p=r.clientY,h=(null===Sn||void 0===Sn||null===(n=Sn.current)||void 0===n?void 0:n.getBoundingClientRect())||{},k=h.x,g=h.y,m=X&&(null===X||void 0===X?void 0:X.uuid)===(null===a||void 0===a?void 0:a.uuid)&&ao&&(null===ao||void 0===ao?void 0:ao.uuid)===(null===a||void 0===a?void 0:a.uuid),y=null===v||void 0===v?void 0:v.findIndex((function(n){return n.uuid===(null===a||void 0===a?void 0:a.uuid)})),C=en.qL.INTEGRATION===(null===G||void 0===G?void 0:G.type),w=[];if(C||w.push({onClick:function(){var n,o;null===L||void 0===L||L({block:a,code:null===c||void 0===c||null===(n=c.current)||void 0===n||null===(o=n[null===a||void 0===a?void 0:a.type])||void 0===o?void 0:o[null===a||void 0===a?void 0:a.uuid]})},uuid:"Run block"}),w.push.apply(w,[{onClick:function(){an(a,null===a||void 0===a?void 0:a.name)},uuid:"Rename block"}]),!C)w.push.apply(w,[{disabled:((null===a||void 0===a||null===(e=a.downstream_blocks)||void 0===e?void 0:e.length)||0)<=1&&!(null!==a&&void 0!==a&&null!==(i=a.upstream_blocks)&&void 0!==i&&i.length),onClick:function(){null===rn||void 0===rn||rn(m?null:a),so(m?null:a)},uuid:m?"Hide all dependencies":"Show all dependencies"},{onClick:function(){null===o||void 0===o||o({downstream_blocks:a?[null===a||void 0===a?void 0:a.uuid]:null,language:b.t6.YAML===(null===a||void 0===a?void 0:a.language)?b.t6.PYTHON:null===a||void 0===a?void 0:a.language,type:b.tf.CUSTOM},Math.max(0,y-1))},uuid:"Add upstream block"},{onClick:function(){null===o||void 0===o||o({language:b.t6.YAML===(null===a||void 0===a?void 0:a.language)?b.t6.PYTHON:null===a||void 0===a?void 0:a.language,type:b.tf.CUSTOM,upstream_blocks:a?[null===a||void 0===a?void 0:a.uuid]:null},y+1)},uuid:"Add downstream block"},{disabled:!(null!==a&&void 0!==a&&null!==(t=a.upstream_blocks)&&void 0!==t&&t.length),onClick:function(){Po({block:a,upstreamBlocks:[]})},uuid:"Remove upstream dependencies"},{disabled:!(null!==a&&void 0!==a&&null!==(l=a.downstream_blocks)&&void 0!==l&&l.length),onClick:function(){Po({block:a,downstreamBlocks:[]})},uuid:"Remove downstream dependencies"}]);return le&&w.push({onClick:function(){null===Ao||void 0===Ao||Ao(a),null===K||void 0===K||K(Cn.cH.INTERACTIONS)},uuid:"Add / Edit interactions"}),w.push.apply(w,[{onClick:function(){null===s||void 0===s||s(a)},uuid:"Delete block"},{onClick:function(){null===s||void 0===s||s(Bn(Bn({},a),{},{force:!0}))},uuid:"Delete block (ignore dependencies)"},{onClick:function(){null===Ao||void 0===Ao||Ao(a),null===K||void 0===K||K(Cn.cH.FILE_VERSIONS)},uuid:"View file versions"}]),(0,Y.jsx)("div",{style:{left:f-k,position:"absolute",top:p-g},children:(0,Y.jsx)(Q.Z,{disableEscape:!0,onClickOutside:function(){return Kn(null)},open:!0,children:(0,Y.jsx)(on.Z,{noPadding:!0,children:w.map((function(n){var o=n.disabled,e=n.onClick,i=n.uuid;return(0,Y.jsx)(x.Z,{px:E.cd,py:1,children:(0,Y.jsx)(nn.Z,{block:!0,disabled:o,onClick:function(){e(),Kn(null)},preventDefault:!0,sameColorAsText:!0,children:i})},i)}))})})})}}),[o,Co,c,Xn,s,le,Ao,G,L,K,Kn,rn,so]);return(0,Y.jsxs)("div",{ref:Sn,style:{position:"relative"},children:[ko&&(0,Y.jsxs)(x.Z,{my:3,px:E.cd,children:[(0,Y.jsxs)(x.Z,{mb:E.cd,children:[(0,Y.jsxs)(y.ZP,{children:["Select parent block(s) for ",(0,Y.jsx)(y.ZP,{color:(0,S.qn)(ko.type,{blockColor:ko.color,theme:kn}).accent,inline:!0,monospace:!0,children:ko.uuid}),":"]}),(0,Y.jsx)(x.Z,{mt:1,children:mo.map((function(n,o){var e,i,t=n.uuid;return(0,Y.jsxs)(y.ZP,{color:(0,S.qn)(null===(e=Oo[t])||void 0===e?void 0:e.type,{blockColor:null===(i=Oo[t])||void 0===i?void 0:i.type,theme:kn}).accent,inline:!0,monospace:!0,children:[t,xo>=2&&o<=xo-2?(0,Y.jsx)(y.ZP,{inline:!0,children:",\xa0"}):null]},t)}))})]}),(0,Y.jsxs)(m.ZP,{alignItems:"center",children:[(0,Y.jsx)($.ZP,{compact:!0,inline:!0,loading:Zo,onClick:function(){return _o({block:Bn(Bn({},ko),{},{upstream_blocks:mo.map((function(n){return n.uuid}))})})},uuid:"DependencyGraph/save_parents",children:"Save dependencies"}),(0,Y.jsx)(x.Z,{ml:1}),(0,Y.jsx)($.ZP,{compact:!0,inline:!0,noBackground:!0,onClick:function(){po([]),tn({upstreamBlocks:null})},uuid:"DependencyGraph/cancel_save_parents",children:"Cancel"})]})]}),(0,Y.jsxs)(yn.$4,{height:Go,onDoubleClick:function(){var n,o;return null===Pn||void 0===Pn||null===(n=Pn.current)||void 0===n||null===(o=n.fitCanvas)||void 0===o?void 0:o.call(n)},children:[(0,Y.jsx)(gn,{canvasRef:Pn,containerRef:Sn,zoomLevel:Rn}),(0,Y.jsx)(En,{arrow:null,disabled:h,edge:function(n){var o,e,i,l,u,d,c,s=Oo[null===n||void 0===n?void 0:n.source],v=[];s||(null===n||void 0===n||null===(u=n.id)||void 0===u||null===(d=u.replace(null===n||void 0===n?void 0:n.source,""))||void 0===d||null===(c=d.split(":"))||void 0===c||c.forEach((function(n){if((null===n||void 0===n?void 0:n.length)>=1&&"parent"!==n){var o=null===Oo||void 0===Oo?void 0:Oo[n];o&&v.push(o)}})),null!==v&&void 0!==v&&v.length&&(s=v[0]));var f,p,h,b=null===(o=s)||void 0===o?void 0:o.uuid,k=[];if(b in(Uo||{})){var g=null===Uo||void 0===Uo?void 0:Uo[b];null===g||void 0===g||g.map((function(o){var e=o.downstreamBlocks,i=o.upstreamBlocks;R((0,I.YC)((null===i||void 0===i?void 0:i.map((function(n){return n.uuid})))||[],(function(n){return n})))===(null===n||void 0===n?void 0:n.target)&&(k.push.apply(k,(0,t.Z)(e)),f=i)}))}if(null===k||void 0===k||!k.length)if(A(b)===(null===n||void 0===n?void 0:n.target)){var m,x;k.push.apply(k,(0,t.Z)(null===(m=s)||void 0===m||null===(x=m.downstream_blocks)||void 0===x?void 0:x.map((function(n){return null===Oo||void 0===Oo?void 0:Oo[n]}))))}else{var y,C,w=null===(y=s)||void 0===y||null===(C=y.downstream_blocks)||void 0===C?void 0:C.find((function(o){return M(b,o)===(null===n||void 0===n?void 0:n.sourcePort)||A(b)===n.target})),O=null===Oo||void 0===Oo?void 0:Oo[w];k.push(O)}null===k||void 0===k||k.forEach((function(n){if(!p&&!h&&n){var o=F({block:n,blockStatus:r,messages:D,noStatus:P,runningBlocks:q,runningBlocksMapping:Eo});null!==o&&void 0!==o&&o.isInProgress&&(p=null===o||void 0===o?void 0:o.isInProgress),null!==o&&void 0!==o&&o.isQueued&&(h=null===o||void 0===o?void 0:o.isQueued)}}));var j,B=oe({id:b},s,{blocksWithSameDownstreamBlocks:f}),E=B.anotherBlockSelected,T=B.selected,_=(0,S.qn)(null===(e=s)||void 0===e?void 0:e.type,{blockColor:null===(i=s)||void 0===i?void 0:i.color,theme:kn}),Z=["edge",p?h?"activeSlow":"active":"inactive"],N=v.map((function(n){return n.uuid}));ao&&(((null===ao||void 0===ao?void 0:ao.uuid)===b||null!==N&&void 0!==N&&N.includes(null===ao||void 0===ao?void 0:ao.uuid)||null!==k&&void 0!==k&&null!==(j=k.map((function(n){return n.uuid})))&&void 0!==j&&j.includes(null===ao||void 0===ao?void 0:ao.uuid))&&Z.push("selected-twice"));return null!==n&&void 0!==n&&null!==(l=n.target)&&void 0!==l&&l.startsWith("parent")&&Z.push("group"),(0,Y.jsx)(Tn,Bn(Bn({},n),{},{className:Z.join(" "),onClick:a?function(n,o){Hn((function(e){var i;return(null===e||void 0===e||null===(i=e.edge)||void 0===i?void 0:i.id)===(null===o||void 0===o?void 0:o.id)?null:{block:s,edge:o,event:n}})),Kn(null)}:null,style:{stroke:E&&!T?null===_||void 0===_?void 0:_.accentLight:null===_||void 0===_?void 0:_.accent,strokeWidth:yn.dg}}))},edges:Mo,fit:!0,forwardedRef:Pn,layoutOptions:{"elk.hierarchyHandling":"INCLUDE_CHILDREN"},maxHeight:j.Jo,maxWidth:j.Jo,maxZoom:1,minZoom:-.7,node:function(n){null===n||void 0===n||n.id;var o,e=(null===n||void 0===n||null===(o=n.properties)||void 0===o?void 0:o.data)||{},i=e.block,t=e.blocks,l=null===i||void 0===i?void 0:i.uuid,u=(0,S.qn)(null===i||void 0===i?void 0:i.type,{blockColor:null===i||void 0===i?void 0:i.color,theme:kn}),d=(null===io||void 0===io?void 0:io.id)===(null===n||void 0===n?void 0:n.id)||!(null===Gn||void 0===Gn||!Gn[l]),c=oe(n,i,{blocksWithSameDownstreamBlocks:t}),s=c.anotherBlockSelected,v=c.selected;return(0,Y.jsx)(In,Bn(Bn({},n),{},{dragType:"port",linkable:!0,port:(0,Y.jsx)(_n,{onDrag:function(){Hn(null),Fo(n)},onDragEnd:function(o,e,i){ne({event:o,node:n,port:i})},onDragStart:function(o,e,i){$o({event:o,node:n,port:i})},onEnter:function(o,e){Qo({event:o,node:n,port:e})},onLeave:function(o,e){Jo({event:o,node:n,port:e})},rx:d?10:0,ry:d?10:0,style:{fill:null===u||void 0===u?void 0:u.accentLight,stroke:s&&!v?null===u||void 0===u?void 0:u.accentLight:null===u||void 0===u?void 0:u.accent,strokeWidth:1}}),style:{fill:"transparent",stroke:"transparent",strokeWidth:0},children:function(n){var o,e=n.height,i=n.node,t=n.width,l=i.data,u=l.block,d=l.blocks,c=l.children,s=oe(i,u,{blocksWithSameDownstreamBlocks:d}),v=s.anotherBlockSelected,f=s.selected,p=F({block:u,blockStatus:r,messages:D,noStatus:P,runningBlocks:q,runningBlocksMapping:Eo}),b=p.hasFailed,g=p.isInProgress,m=p.isQueued,x=p.isSuccessful;return o=(null===c||void 0===c?void 0:c.length)>=1?null===c||void 0===c?void 0:c.some((function(n){var o;return n&&(null===(o=F({block:n,blockStatus:r,messages:D,noStatus:P,runningBlocks:q,runningBlocksMapping:Eo}))||void 0===o?void 0:o.isInProgress)})):g,(0,Y.jsx)("foreignObject",{height:e,onClick:function(n){return Wo(n,i)},onContextMenu:a?function(n){return zo(n,i,{nodeHeight:e,nodeWidth:t})}:null,onMouseDown:k?function(n){return Xo(n,i,{nodeHeight:e,nodeWidth:t})}:null,onMouseEnter:function(n){return Yo(n,i,{nodeHeight:e,nodeWidth:t})},onMouseLeave:function(n){return qo(n,i,{nodeHeight:e,nodeWidth:t})},onMouseUp:k?function(n){return Ko(n,i,{nodeHeight:e,nodeWidth:t})}:null,style:{},width:n.width,x:0,y:0,children:(0,Y.jsx)(z,{anotherBlockSelected:v,block:u,blocksWithSameDownstreamBlocks:d,callbackBlocks:null===So||void 0===So?void 0:So[null===u||void 0===u?void 0:u.uuid],conditionalBlocks:null===jo||void 0===jo?void 0:jo[null===u||void 0===u?void 0:u.uuid],disabled:(null===ko||void 0===ko?void 0:ko.uuid)===u.uuid,downstreamBlocks:c,extensionBlocks:null===Bo||void 0===Bo?void 0:Bo[null===u||void 0===u?void 0:u.uuid],hasFailed:b,height:e,hideNoStatus:!0,hideStatus:h||P,isInProgress:o,isQueued:m,isSuccessful:x,pipeline:G,selected:f,selectedBlock:X},u.uuid)})}}))},nodes:Ho,onNodeLinkCheck:function(n,o,e){return!Mo.some((function(n){return n.from===o.id&&n.to===e.id}))},onZoomChange:function(n){null===un||void 0===un||un(n),Nn(n)},pannable:U,selections:fo,zoomable:fn})]}),te,re,ie]})}},85385:function(n,o,e){e.d(o,{Qq:function(){return p},Z7:function(){return h},cH:function(){return t},du:function(){return v},fp:function(){return s},j5:function(){return f},uM:function(){return a}});var i,t,l=e(82394),r=e(57653),u=e(82359),d=e(72473),c=e(86735),a="sideview",s=90;!function(n){n.ADDON_BLOCKS="addon_blocks",n.BLOCK_SETTINGS="block_settings",n.CALLBACKS="callbacks",n.CHARTS="charts",n.DATA="data",n.EXTENSIONS="power_ups",n.FILE_VERSIONS="file_versions",n.GRAPHS="graphs",n.INTERACTIONS="interactions",n.REPORTS="reports",n.SECRETS="secrets",n.SETTINGS="settings",n.TERMINAL="terminal",n.TREE="tree",n.VARIABLES="variables"}(t||(t={}));t.BLOCK_SETTINGS,t.CALLBACKS,t.CHARTS,t.DATA,t.EXTENSIONS,t.TREE;var v=[t.DATA];function f(n){var o,e,i,l=[{key:t.TREE,label:"Tree"},{buildLabel:function(n){var o=(n.pipeline||{}).widgets,e=void 0===o?[]:o;return(null===e||void 0===e?void 0:e.length)>=1?"Charts (".concat(e.length,")"):"Charts"},key:t.CHARTS},{buildLabel:function(n){var o=n.variables;return(null===o||void 0===o?void 0:o.length)>=1?"Variables (".concat(o.length,")"):"Variables"},key:t.VARIABLES},{buildLabel:function(n){var o=n.secrets;return(null===o||void 0===o?void 0:o.length)>=1?"Secrets (".concat(o.length,")"):"Secrets"},key:t.SECRETS}];return r.qL.PYSPARK!==(null===n||void 0===n||null===(o=n.pipeline)||void 0===o?void 0:o.type)&&l.push.apply(l,[{buildLabel:function(n){n.pipeline;return"Add-on blocks"},key:t.ADDON_BLOCKS},{buildLabel:function(n){var o=(n.pipeline||{}).extensions,e=void 0===o?{}:o,i=0;return Object.values(e).forEach((function(n){var o=n.blocks;i+=(null===o||void 0===o?void 0:o.length)||0})),i>=1?"Power ups (".concat(i,")"):"Power ups"},key:t.EXTENSIONS}]),l.push.apply(l,[{key:t.DATA,label:"Data"},{key:t.TERMINAL,label:"Terminal"},{key:t.BLOCK_SETTINGS,label:"Block settings"}]),null!==n&&void 0!==n&&null!==(e=n.project)&&void 0!==e&&null!==(i=e.features)&&void 0!==i&&i[u.d.INTERACTIONS]&&l.push({key:t.INTERACTIONS,label:"Interactions"}),l}function p(n){return(0,c.HK)(f(n),(function(n){return n.key}))}var h=(i={},(0,l.Z)(i,t.ADDON_BLOCKS,d.EJ),(0,l.Z)(i,t.BLOCK_SETTINGS,d.JG),(0,l.Z)(i,t.CALLBACKS,d.AQ),(0,l.Z)(i,t.CHARTS,d.GQ),(0,l.Z)(i,t.DATA,d.iA),(0,l.Z)(i,t.EXTENSIONS,d.Bf),(0,l.Z)(i,t.INTERACTIONS,d.yd),(0,l.Z)(i,t.SECRETS,d.Yo),(0,l.Z)(i,t.SETTINGS,d.Zr),(0,l.Z)(i,t.TERMINAL,d.oI),(0,l.Z)(i,t.TREE,d.mp),(0,l.Z)(i,t.VARIABLES,d.LO),i)},70320:function(n,o,e){e.d(o,{h:function(){return r},q:function(){return l}});var i=e(78419),t=e(53808);function l(){return(0,t.U2)(i.am,null)||!1}function r(n){return"undefined"!==typeof n&&(0,t.t8)(i.am,n),n}},79757:function(n,o,e){var i=e(82394),t=e(26304),l=(e(82684),e(38626)),r=e(44897),u=e(42631),d=e(95363),c=e(70515),a=e(61896),s=e(28598),v=["children"];function f(n,o){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);o&&(i=i.filter((function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),e.push.apply(e,i)}return e}function p(n){for(var o=1;o<arguments.length;o++){var e=null!=arguments[o]?arguments[o]:{};o%2?f(Object(e),!0).forEach((function(o){(0,i.Z)(n,o,e[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):f(Object(e)).forEach((function(o){Object.defineProperty(n,o,Object.getOwnPropertyDescriptor(e,o))}))}return n}var h=l.default.p.withConfig({displayName:"Badge__BadgeStyle",componentId:"sc-tfqsp0-0"})(["border-radius:","px;display:inline;font-family:",";margin:0;white-space:nowrap;",";"," "," ",";",";"," "," "," "," "," "," "," ",""],u.BG,d.ry,a.iD,(function(n){return n.small&&"\n ".concat(a.HC,";\n ")}),(function(n){return n.xxsmall&&"\n font-size: ".concat(a.VK,"px;\n line-height: ").concat(a.VK,"px;\n ")}),(function(n){return!n.regular&&"\n padding: 2px 4px;\n "}),(function(n){return n.regular&&"\n padding: ".concat(1*c.iI,"px ").concat(1.25*c.iI,"px;\n ")}),(function(n){return n.noVerticalPadding&&"\n padding-bottom: 0;\n padding-top: 0;\n "}),(function(n){return!n.disabled&&!n.inverted&&"\n background-color: ".concat((n.theme||r.Z).background.row,";\n color: ").concat((n.theme||r.Z).content.default,";\n ")}),(function(n){return!n.disabled&&n.inverted&&"\n background-color: ".concat((n.theme||r.Z).background.dark,";\n color: ").concat((n.theme||r.Z).content.inverted,";\n ")}),(function(n){return n.cyan&&"\n background-color: ".concat((n.theme||r.Z).accent.cyan,";\n color: ").concat((n.theme||r.Z).monotone.black,";\n ")}),(function(n){return n.disabled&&"\n background-color: ".concat((n.theme||r.Z).feature.disabled,";\n color: ").concat((n.theme||r.Z).content.disabled,";\n ")}),(function(n){return n.color&&"\n background-color: ".concat(n.color," !important;\n color: ").concat((n.theme||r.Z).content.active,";\n ")}),(function(n){return n.quantifier&&"\n border-radius: 34px;\n line-height: 10px;\n padding: 4px 6px;\n "}),(function(n){return n.monospace&&"\n font-family: ".concat(d.Vp,";\n word-break: break-all;\n ")}));o.Z=function(n){var o=n.children,e=(0,t.Z)(n,v);return(0,s.jsx)(h,p(p({},e),{},{children:o}))}},65956:function(n,o,e){var i=e(38626),t=e(55485),l=e(38276),r=e(30160),u=e(44897),d=e(42631),c=e(47041),a=e(70515),s=e(28598),v=(0,i.css)(["padding:","px;padding-bottom:","px;padding-top:","px;"],2*a.iI,1.5*a.iI,1.5*a.iI),f=i.default.div.withConfig({displayName:"Panel__PanelStyle",componentId:"sc-1ct8cgl-0"})(["border-radius:","px;overflow:hidden;"," "," "," "," "," "," "," "," "," "," "," ",""],d.n_,(function(n){return n.fullWidth&&"\n width: 100%;\n "}),(function(n){return!n.borderless&&"\n border: 1px solid ".concat((n.theme.interactive||u.Z.interactive).defaultBorder,";\n ")}),(function(n){return n.success&&"\n background-color: ".concat((n.theme.background||u.Z.background).successLight,";\n ")}),(function(n){return n.success&&!n.borderless&&"\n border: 1px solid ".concat((n.theme.background||u.Z.background).success,";\n ")}),(function(n){return!n.dark&&!n.success&&"\n background-color: ".concat((n.theme.background||u.Z.background).panel,";\n ")}),(function(n){return n.dark&&"\n background-color: ".concat((n.theme.background||u.Z.background).content,";\n ")}),(function(n){return!n.fullHeight&&"\n height: fit-content;\n "}),(function(n){return n.maxHeight&&"\n max-height: ".concat(n.maxHeight,";\n ")}),(function(n){return n.maxWidth&&"\n max-width: ".concat(n.maxWidth,"px;\n ")}),(function(n){return n.minWidth&&"\n min-width: ".concat(n.minWidth,"px;\n\n @media (max-width: ").concat(n.minWidth,"px) {\n min-width: 0;\n }\n ")}),(function(n){return n.borderless&&"\n border: none;\n "}),(function(n){return n.overflowVisible&&"\n overflow: visible;\n "})),p=i.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(n){return"\n background-color: ".concat((n.theme.background||u.Z.background).chartBlock,";\n border-bottom: 1px solid ").concat((n.theme.interactive||u.Z.interactive).defaultBorder,";\n ")}),(function(n){return n.height&&"\n height: ".concat(n.height,"px;\n ")}),v,(function(n){return n.headerPaddingVertical&&"\n padding-bottom: ".concat(n.headerPaddingVertical,"px;\n padding-top: ").concat(n.headerPaddingVertical,"px;\n ")})),h=i.default.div.withConfig({displayName:"Panel__ContentStyle",componentId:"sc-1ct8cgl-2"})(["overflow-y:auto;padding:","px;height:100%;"," "," "," "," ",""],1.75*a.iI,c.w5,(function(n){return n.height&&"\n height: ".concat(n.height,"px;\n ")}),(function(n){return n.maxHeight&&"\n max-height: calc(".concat(n.maxHeight," - ").concat(15*a.iI,"px);\n ")}),(function(n){return n.noPadding&&"\n padding: 0;\n "}),(function(n){return n.overflowVisible&&"\n overflow: visible;\n "})),b=i.default.div.withConfig({displayName:"Panel__FooterStyle",componentId:"sc-1ct8cgl-3"})(["border-style:",";border-top-width:","px;padding:","px;"],d.M8,d.YF,1.75*a.iI);o.Z=function(n){var o=n.borderless,e=n.children,i=n.containerRef,u=n.contentContainerRef,d=n.dark,c=n.footer,a=n.fullHeight,v=void 0===a||a,k=n.fullWidth,g=void 0===k||k,m=n.header,x=n.headerHeight,y=n.headerIcon,C=n.headerPaddingVertical,w=n.headerTitle,O=n.maxHeight,S=n.maxWidth,j=n.minWidth,B=n.noPadding,E=n.overflowVisible,I=n.subtitle,T=n.success;return(0,s.jsxs)(f,{borderless:o,dark:d,fullHeight:v,fullWidth:g,maxHeight:O,maxWidth:S,minWidth:j,overflowVisible:E,ref:i,success:T,children:[(m||w)&&(0,s.jsxs)(p,{headerPaddingVertical:C,height:x,children:[m&&m,w&&(0,s.jsx)(t.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,s.jsxs)(t.ZP,{alignItems:"center",children:[y&&y,(0,s.jsx)(l.Z,{ml:y?1:0,children:(0,s.jsx)(r.ZP,{bold:!0,default:!0,children:w})})]})})]}),(0,s.jsxs)(h,{maxHeight:O,noPadding:B,overflowVisible:E,ref:u,children:[I&&"string"===typeof I&&(0,s.jsx)(l.Z,{mb:2,children:(0,s.jsx)(r.ZP,{default:!0,children:I})}),I&&"string"!==typeof I&&I,e]}),c&&(0,s.jsx)(b,{children:c})]})}},72191:function(n,o,e){e.d(o,{_k:function(){return l},bL:function(){return t},l2:function(){return r},nz:function(){return u}});var i=e(70515),t=(i.iI,2*i.iI),l=2.5*i.iI,r=3*i.iI,u=3.5*i.iI},44375:function(n,o,e){e.d(o,{$1:function(){return l},Dy:function(){return t},IU:function(){return r}});var i=e(17717),t="--full-refresh";function l(n,o){var e,t=null===o||void 0===o?void 0:o.fullPath,l=null===n||void 0===n||null===(e=n.configuration)||void 0===e?void 0:e.file_path;if(t)return null===n||void 0===n?void 0:n.uuid;if(l){var r=l.split(i.sep),u=r[r.length-1].split(".");return u.pop(),u.join(".")}}function r(n){var o,e=null===n||void 0===n||null===(o=n.configuration)||void 0===o?void 0:o.file_path;if(e){var t=e.split(i.sep),l=t[0],r=t[t.length-1].split(".");return r.pop(),{directory:t.slice(1,t.length-1).join(i.sep),filePath:e,name:r.join("."),project:l}}return{filePath:e}}}}]);