mage-ai 0.9.56__py3-none-any.whl → 0.9.57__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 (340) hide show
  1. mage_ai/api/policies/GlobalHookPolicy.py +3 -0
  2. mage_ai/api/policies/ProjectPolicy.py +2 -0
  3. mage_ai/api/presenters/ProjectPresenter.py +3 -0
  4. mage_ai/api/resources/GlobalHookResource.py +55 -10
  5. mage_ai/api/resources/ProjectResource.py +15 -2
  6. mage_ai/cache/dbt/cache.py +1 -1
  7. mage_ai/cache/dbt/utils.py +22 -2
  8. mage_ai/data_preparation/models/block/__init__.py +15 -5
  9. mage_ai/data_preparation/models/block/dbt/block_sql.py +12 -3
  10. mage_ai/data_preparation/models/file.py +1 -1
  11. mage_ai/data_preparation/models/global_hooks/models.py +2 -2
  12. mage_ai/data_preparation/models/project/__init__.py +28 -1
  13. mage_ai/orchestration/db/models/schedules.py +64 -102
  14. mage_ai/orchestration/db/models/schedules_project_platform.py +365 -0
  15. mage_ai/orchestration/pipeline_scheduler.py +5 -1700
  16. mage_ai/orchestration/pipeline_scheduler_original.py +1635 -0
  17. mage_ai/orchestration/pipeline_scheduler_project_platform.py +1701 -0
  18. mage_ai/server/constants.py +1 -1
  19. mage_ai/server/frontend_dist/404.html +2 -2
  20. mage_ai/server/frontend_dist/_next/static/A7VXVGKgLQCukXcjdysDz/_buildManifest.js +1 -0
  21. mage_ai/server/frontend_dist/_next/static/chunks/1557-724bfc3eabd095f7.js +1 -0
  22. mage_ai/server/frontend_dist/_next/static/chunks/161-33f26e485ddef393.js +1 -0
  23. mage_ai/server/frontend_dist/_next/static/chunks/3437-ce26fc28e114b44e.js +1 -0
  24. mage_ai/server/frontend_dist/_next/static/chunks/3540-9bb48b08f439d0a0.js +1 -0
  25. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/3745-51be3a2b7cd04895.js → frontend_dist/_next/static/chunks/3745-61b1c63bb56bb670.js} +1 -1
  26. mage_ai/server/frontend_dist/_next/static/chunks/{5729.0f2748e9e6dab951.js → 5189.dca121eccea793be.js} +1 -1
  27. mage_ai/server/frontend_dist/_next/static/chunks/5457-b373ebdf4d05d8e2.js +1 -0
  28. mage_ai/server/frontend_dist/_next/static/chunks/5533-3455832bc3f8429b.js +1 -0
  29. mage_ai/server/frontend_dist/_next/static/chunks/5729-9d8204ab91da631d.js +1 -0
  30. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/5810-e26a0768db1cfdba.js → frontend_dist/_next/static/chunks/5810-addfa3491ae6b01c.js} +1 -1
  31. mage_ai/server/frontend_dist/_next/static/chunks/8264-68db2a8334ad48f1.js +1 -0
  32. mage_ai/server/frontend_dist/_next/static/chunks/8432-0ace6fb7bdbc6864.js +1 -0
  33. mage_ai/server/frontend_dist/_next/static/chunks/8731-82571147875a2d58.js +1 -0
  34. mage_ai/server/frontend_dist/_next/static/chunks/{9264-a5e8a0274efa2b14.js → 9264-5df6e4c7b1e85c02.js} +1 -1
  35. mage_ai/server/frontend_dist/_next/static/chunks/pages/{_app-cc7f5a0c2456bc03.js → _app-4c0239ca6203e827.js} +1 -1
  36. mage_ai/server/frontend_dist/_next/static/chunks/pages/compute-822e66aa2e90cf4c.js +1 -0
  37. mage_ai/server/frontend_dist/_next/static/chunks/pages/files-373217c5de51aeef.js +1 -0
  38. mage_ai/server/frontend_dist/_next/static/chunks/pages/global-data-products/{[...slug]-1e4838e534c8f31e.js → [...slug]-0325e76a2f3e08c1.js} +1 -1
  39. mage_ai/server/frontend_dist/_next/static/chunks/pages/{global-data-products-bb38f73540efeac4.js → global-data-products-927ebbdc29529765.js} +1 -1
  40. mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks/[...slug]-a172f5a447bd8925.js +1 -0
  41. mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks-97bec2ac883e0c26.js +1 -0
  42. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/files-02d001d99eeaae3f.js +1 -0
  43. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/settings-2e577bfd4f0db2b7.js +1 -0
  44. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/[user]-1827574a4ba95a72.js +1 -0
  45. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/new-a913c361bcc0d1a9.js +1 -0
  46. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users-4e6fdcbbfc931d67.js +1 -0
  47. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-1c327edcf05df9c9.js +1 -0
  48. mage_ai/server/frontend_dist/_next/static/chunks/pages/{oauth-eba7027969034415.js → oauth-bd8494f8875c5c97.js} +1 -1
  49. mage_ai/server/frontend_dist/_next/static/chunks/pages/overview-5a98e6a531410afb.js +1 -0
  50. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipeline-runs-1442183d13edec2e.js +1 -0
  51. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-b526282c8ac49986.js → frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-38b2241cdd10320c.js} +1 -1
  52. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-515eb343210aa1fb.js → frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-1c646dbef65d6a69.js} +1 -1
  53. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-fe4d1321da8291cb.js → frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-35cb916a18ac4e1f.js} +1 -1
  54. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-cd1918632dfef29d.js +1 -0
  55. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{logs-c011d465f61138ee.js → logs-67b0572c84db0940.js} +1 -1
  56. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/{block-runs-46c0dabd155581a0.js → block-runs-40201b626ea3a664.js} +1 -1
  57. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/{block-runtime-f2a052cb8a20fe47.js → block-runtime-d1f23308effebe03.js} +1 -1
  58. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors-579899cbaedcdefc.js → frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors-9a116d88f00916ff.js} +1 -1
  59. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-7a2265b7e44bed0b.js → frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-2d5abcd019d4bea1.js} +1 -1
  60. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs-9b53da919db959bd.js → frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-5363a7ae9afe8983.js} +1 -1
  61. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{settings-1839276725bfd757.js → settings-931a1b3112866a72.js} +1 -1
  62. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/syncs-68d779bc62185470.js → frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-5ec5367cb877db38.js} +1 -1
  63. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-01f4528602f4ba2a.js → frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-8366661f8e2b2959.js} +1 -1
  64. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{triggers-358523847fdbf547.js → triggers-378f8dada7d0c1dd.js} +1 -1
  65. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-627be24ef4963cfb.js +1 -0
  66. mage_ai/server/frontend_dist/_next/static/chunks/pages/platform/global-hooks/[...slug]-814bbd11e10c26dc.js +1 -0
  67. mage_ai/server/frontend_dist/_next/static/chunks/pages/platform/global-hooks-021ec25e05862f8f.js +1 -0
  68. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/settings/account/profile-00393e67ab1e6788.js → frontend_dist/_next/static/chunks/pages/settings/account/profile-2b0aa123043519b8.js} +1 -1
  69. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/platform/preferences-05186e17c94347c1.js +1 -0
  70. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/platform/settings-efe8bf1bf3177a7e.js +1 -0
  71. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/permissions/{[...slug]-eaeba99f9547a20a.js → [...slug]-aa5d871de1f3f7b0.js} +1 -1
  72. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{permissions-c3140516cc28e467.js → permissions-ce45aad47049d993.js} +1 -1
  73. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-1bc694b056ff0bcb.js +1 -0
  74. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/roles/{[...slug]-f6ff0e219a4b9ffd.js → [...slug]-88d29d1774db67e4.js} +1 -1
  75. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{roles-22ff9d862736b2ec.js → roles-d8ca763e405cd9d1.js} +1 -1
  76. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{sync-data-614925e838d1974c.js → sync-data-42bd909eb8951040.js} +1 -1
  77. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users/{[...slug]-5b88dfb1c6d0d16c.js → [...slug]-250dfdf22bfe67e9.js} +1 -1
  78. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{users-eb904db7ac7ea57c.js → users-97c4ce119f7238b5.js} +1 -1
  79. mage_ai/server/frontend_dist/_next/static/chunks/pages/{sign-in-c734db1d5834dda2.js → sign-in-1af3ba18ff646dd4.js} +1 -1
  80. mage_ai/server/frontend_dist/_next/static/chunks/pages/templates/[...slug]-ff9d49355393daea.js +1 -0
  81. mage_ai/server/frontend_dist/_next/static/chunks/pages/{templates-5ebfe79c24d8c4b4.js → templates-299a2c8f2dd89cf3.js} +1 -1
  82. mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-fb3f398009a02879.js +1 -0
  83. mage_ai/server/frontend_dist/_next/static/chunks/pages/test-59a08e06f4ef6c3a.js +1 -0
  84. mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-551b85802515e313.js +1 -0
  85. mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-1362aeda4a31dd41.js +1 -0
  86. mage_ai/server/frontend_dist/_next/static/chunks/{webpack-fea697dd168c6d0c.js → webpack-17c3a8f588f14cfd.js} +1 -1
  87. mage_ai/server/frontend_dist/block-layout.html +2 -2
  88. mage_ai/server/frontend_dist/compute.html +2 -2
  89. mage_ai/server/frontend_dist/files.html +2 -2
  90. mage_ai/server/frontend_dist/global-data-products/[...slug].html +2 -2
  91. mage_ai/server/frontend_dist/global-data-products.html +2 -2
  92. mage_ai/server/frontend_dist/global-hooks/[...slug].html +2 -2
  93. mage_ai/server/frontend_dist/global-hooks.html +2 -2
  94. mage_ai/server/frontend_dist/index.html +2 -2
  95. mage_ai/server/frontend_dist/manage/files.html +2 -2
  96. mage_ai/server/frontend_dist/manage/settings.html +2 -2
  97. mage_ai/server/frontend_dist/manage/users/[user].html +2 -2
  98. mage_ai/server/frontend_dist/manage/users/new.html +2 -2
  99. mage_ai/server/frontend_dist/manage/users.html +2 -2
  100. mage_ai/server/frontend_dist/manage.html +2 -2
  101. mage_ai/server/frontend_dist/oauth.html +3 -3
  102. mage_ai/server/frontend_dist/overview.html +2 -2
  103. mage_ai/server/frontend_dist/pipeline-runs.html +2 -2
  104. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +2 -2
  105. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +2 -2
  106. mage_ai/server/frontend_dist/pipelines/[pipeline]/dashboard.html +2 -2
  107. mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +2 -2
  108. mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +2 -2
  109. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +2 -2
  110. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +2 -2
  111. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +2 -2
  112. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +2 -2
  113. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +2 -2
  114. mage_ai/server/frontend_dist/pipelines/[pipeline]/settings.html +2 -2
  115. mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +2 -2
  116. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +2 -2
  117. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +2 -2
  118. mage_ai/server/frontend_dist/pipelines/[pipeline].html +2 -2
  119. mage_ai/server/frontend_dist/pipelines.html +2 -2
  120. mage_ai/server/frontend_dist/platform/global-hooks/[...slug].html +24 -0
  121. mage_ai/server/frontend_dist/platform/global-hooks.html +24 -0
  122. mage_ai/server/frontend_dist/settings/account/profile.html +2 -2
  123. mage_ai/server/frontend_dist/settings/platform/preferences.html +24 -0
  124. mage_ai/server/frontend_dist/settings/platform/settings.html +24 -0
  125. mage_ai/server/frontend_dist/settings/workspace/permissions/[...slug].html +2 -2
  126. mage_ai/server/frontend_dist/settings/workspace/permissions.html +2 -2
  127. mage_ai/server/frontend_dist/settings/workspace/preferences.html +2 -2
  128. mage_ai/server/frontend_dist/settings/workspace/roles/[...slug].html +2 -2
  129. mage_ai/server/frontend_dist/settings/workspace/roles.html +2 -2
  130. mage_ai/server/frontend_dist/settings/workspace/sync-data.html +2 -2
  131. mage_ai/server/frontend_dist/settings/workspace/users/[...slug].html +2 -2
  132. mage_ai/server/frontend_dist/settings/workspace/users.html +2 -2
  133. mage_ai/server/frontend_dist/settings.html +2 -2
  134. mage_ai/server/frontend_dist/sign-in.html +5 -5
  135. mage_ai/server/frontend_dist/templates/[...slug].html +2 -2
  136. mage_ai/server/frontend_dist/templates.html +2 -2
  137. mage_ai/server/frontend_dist/terminal.html +2 -2
  138. mage_ai/server/frontend_dist/test.html +2 -2
  139. mage_ai/server/frontend_dist/triggers.html +2 -2
  140. mage_ai/server/frontend_dist/version-control.html +2 -2
  141. mage_ai/server/frontend_dist_base_path_template/404.html +4 -4
  142. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1557-724bfc3eabd095f7.js +1 -0
  143. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/161-33f26e485ddef393.js +1 -0
  144. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3437-ce26fc28e114b44e.js +1 -0
  145. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3540-9bb48b08f439d0a0.js +1 -0
  146. mage_ai/server/{frontend_dist/_next/static/chunks/3745-51be3a2b7cd04895.js → frontend_dist_base_path_template/_next/static/chunks/3745-61b1c63bb56bb670.js} +1 -1
  147. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{5729.0f2748e9e6dab951.js → 5189.dca121eccea793be.js} +1 -1
  148. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5457-b373ebdf4d05d8e2.js +1 -0
  149. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5533-3455832bc3f8429b.js +1 -0
  150. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5729-9d8204ab91da631d.js +1 -0
  151. mage_ai/server/{frontend_dist/_next/static/chunks/5810-e26a0768db1cfdba.js → frontend_dist_base_path_template/_next/static/chunks/5810-addfa3491ae6b01c.js} +1 -1
  152. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8264-68db2a8334ad48f1.js +1 -0
  153. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8432-0ace6fb7bdbc6864.js +1 -0
  154. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8731-82571147875a2d58.js +1 -0
  155. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{9264-a5e8a0274efa2b14.js → 9264-5df6e4c7b1e85c02.js} +1 -1
  156. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{_app-cc7f5a0c2456bc03.js → _app-4c0239ca6203e827.js} +1 -1
  157. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/compute-822e66aa2e90cf4c.js +1 -0
  158. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/files-373217c5de51aeef.js +1 -0
  159. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-data-products/{[...slug]-1e4838e534c8f31e.js → [...slug]-0325e76a2f3e08c1.js} +1 -1
  160. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{global-data-products-bb38f73540efeac4.js → global-data-products-927ebbdc29529765.js} +1 -1
  161. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks/[...slug]-a172f5a447bd8925.js +1 -0
  162. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks-97bec2ac883e0c26.js +1 -0
  163. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/files-02d001d99eeaae3f.js +1 -0
  164. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/settings-2e577bfd4f0db2b7.js +1 -0
  165. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/[user]-1827574a4ba95a72.js +1 -0
  166. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/new-a913c361bcc0d1a9.js +1 -0
  167. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users-4e6fdcbbfc931d67.js +1 -0
  168. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage-1c327edcf05df9c9.js +1 -0
  169. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{oauth-eba7027969034415.js → oauth-bd8494f8875c5c97.js} +1 -1
  170. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/overview-5a98e6a531410afb.js +1 -0
  171. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipeline-runs-1442183d13edec2e.js +1 -0
  172. mage_ai/server/{frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-b526282c8ac49986.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-38b2241cdd10320c.js} +1 -1
  173. mage_ai/server/{frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-515eb343210aa1fb.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-1c646dbef65d6a69.js} +1 -1
  174. mage_ai/server/{frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-fe4d1321da8291cb.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-35cb916a18ac4e1f.js} +1 -1
  175. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-cd1918632dfef29d.js +1 -0
  176. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/{logs-c011d465f61138ee.js → logs-67b0572c84db0940.js} +1 -1
  177. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/{block-runs-46c0dabd155581a0.js → block-runs-40201b626ea3a664.js} +1 -1
  178. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/{block-runtime-f2a052cb8a20fe47.js → block-runtime-d1f23308effebe03.js} +1 -1
  179. mage_ai/server/{frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors-579899cbaedcdefc.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors-9a116d88f00916ff.js} +1 -1
  180. mage_ai/server/{frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-7a2265b7e44bed0b.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-2d5abcd019d4bea1.js} +1 -1
  181. mage_ai/server/{frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-9b53da919db959bd.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs-5363a7ae9afe8983.js} +1 -1
  182. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/{settings-1839276725bfd757.js → settings-931a1b3112866a72.js} +1 -1
  183. mage_ai/server/{frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-68d779bc62185470.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/syncs-5ec5367cb877db38.js} +1 -1
  184. mage_ai/server/{frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-01f4528602f4ba2a.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-8366661f8e2b2959.js} +1 -1
  185. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/{triggers-358523847fdbf547.js → triggers-378f8dada7d0c1dd.js} +1 -1
  186. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-627be24ef4963cfb.js +1 -0
  187. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/platform/global-hooks/[...slug]-814bbd11e10c26dc.js +1 -0
  188. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/platform/global-hooks-021ec25e05862f8f.js +1 -0
  189. mage_ai/server/{frontend_dist/_next/static/chunks/pages/settings/account/profile-00393e67ab1e6788.js → frontend_dist_base_path_template/_next/static/chunks/pages/settings/account/profile-2b0aa123043519b8.js} +1 -1
  190. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/platform/preferences-05186e17c94347c1.js +1 -0
  191. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/platform/settings-efe8bf1bf3177a7e.js +1 -0
  192. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/permissions/{[...slug]-eaeba99f9547a20a.js → [...slug]-aa5d871de1f3f7b0.js} +1 -1
  193. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{permissions-c3140516cc28e467.js → permissions-ce45aad47049d993.js} +1 -1
  194. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-1bc694b056ff0bcb.js +1 -0
  195. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/roles/{[...slug]-f6ff0e219a4b9ffd.js → [...slug]-88d29d1774db67e4.js} +1 -1
  196. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{roles-22ff9d862736b2ec.js → roles-d8ca763e405cd9d1.js} +1 -1
  197. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{sync-data-614925e838d1974c.js → sync-data-42bd909eb8951040.js} +1 -1
  198. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/users/{[...slug]-5b88dfb1c6d0d16c.js → [...slug]-250dfdf22bfe67e9.js} +1 -1
  199. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{users-eb904db7ac7ea57c.js → users-97c4ce119f7238b5.js} +1 -1
  200. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{sign-in-c734db1d5834dda2.js → sign-in-1af3ba18ff646dd4.js} +1 -1
  201. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/templates/[...slug]-ff9d49355393daea.js +1 -0
  202. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{templates-5ebfe79c24d8c4b4.js → templates-299a2c8f2dd89cf3.js} +1 -1
  203. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/terminal-fb3f398009a02879.js +1 -0
  204. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/test-59a08e06f4ef6c3a.js +1 -0
  205. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/triggers-551b85802515e313.js +1 -0
  206. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/version-control-1362aeda4a31dd41.js +1 -0
  207. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{webpack-d30cb09c85b4c4f0.js → webpack-b55fe1e575d8ac9d.js} +1 -1
  208. mage_ai/server/frontend_dist_base_path_template/_next/static/wSRrM15xnvA8lOWcaque7/_buildManifest.js +1 -0
  209. mage_ai/server/frontend_dist_base_path_template/block-layout.html +2 -2
  210. mage_ai/server/frontend_dist_base_path_template/compute.html +5 -5
  211. mage_ai/server/frontend_dist_base_path_template/files.html +5 -5
  212. mage_ai/server/frontend_dist_base_path_template/global-data-products/[...slug].html +5 -5
  213. mage_ai/server/frontend_dist_base_path_template/global-data-products.html +5 -5
  214. mage_ai/server/frontend_dist_base_path_template/global-hooks/[...slug].html +5 -5
  215. mage_ai/server/frontend_dist_base_path_template/global-hooks.html +5 -5
  216. mage_ai/server/frontend_dist_base_path_template/index.html +2 -2
  217. mage_ai/server/frontend_dist_base_path_template/manage/files.html +5 -5
  218. mage_ai/server/frontend_dist_base_path_template/manage/settings.html +5 -5
  219. mage_ai/server/frontend_dist_base_path_template/manage/users/[user].html +5 -5
  220. mage_ai/server/frontend_dist_base_path_template/manage/users/new.html +5 -5
  221. mage_ai/server/frontend_dist_base_path_template/manage/users.html +5 -5
  222. mage_ai/server/frontend_dist_base_path_template/manage.html +5 -5
  223. mage_ai/server/frontend_dist_base_path_template/oauth.html +4 -4
  224. mage_ai/server/frontend_dist_base_path_template/overview.html +5 -5
  225. mage_ai/server/frontend_dist_base_path_template/pipeline-runs.html +5 -5
  226. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills/[...slug].html +5 -5
  227. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills.html +5 -5
  228. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/dashboard.html +5 -5
  229. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/edit.html +2 -2
  230. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/logs.html +5 -5
  231. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runs.html +5 -5
  232. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runtime.html +5 -5
  233. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors.html +5 -5
  234. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs/[run].html +5 -5
  235. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs.html +5 -5
  236. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/settings.html +5 -5
  237. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/syncs.html +5 -5
  238. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers/[...slug].html +5 -5
  239. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers.html +5 -5
  240. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline].html +2 -2
  241. mage_ai/server/frontend_dist_base_path_template/pipelines.html +5 -5
  242. mage_ai/server/frontend_dist_base_path_template/platform/global-hooks/[...slug].html +24 -0
  243. mage_ai/server/frontend_dist_base_path_template/platform/global-hooks.html +24 -0
  244. mage_ai/server/frontend_dist_base_path_template/settings/account/profile.html +5 -5
  245. mage_ai/server/frontend_dist_base_path_template/settings/platform/preferences.html +24 -0
  246. mage_ai/server/frontend_dist_base_path_template/settings/platform/settings.html +24 -0
  247. mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions/[...slug].html +5 -5
  248. mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions.html +5 -5
  249. mage_ai/server/frontend_dist_base_path_template/settings/workspace/preferences.html +5 -5
  250. mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles/[...slug].html +5 -5
  251. mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles.html +5 -5
  252. mage_ai/server/frontend_dist_base_path_template/settings/workspace/sync-data.html +5 -5
  253. mage_ai/server/frontend_dist_base_path_template/settings/workspace/users/[...slug].html +5 -5
  254. mage_ai/server/frontend_dist_base_path_template/settings/workspace/users.html +5 -5
  255. mage_ai/server/frontend_dist_base_path_template/settings.html +2 -2
  256. mage_ai/server/frontend_dist_base_path_template/sign-in.html +14 -14
  257. mage_ai/server/frontend_dist_base_path_template/templates/[...slug].html +5 -5
  258. mage_ai/server/frontend_dist_base_path_template/templates.html +5 -5
  259. mage_ai/server/frontend_dist_base_path_template/terminal.html +5 -5
  260. mage_ai/server/frontend_dist_base_path_template/test.html +2 -2
  261. mage_ai/server/frontend_dist_base_path_template/triggers.html +5 -5
  262. mage_ai/server/frontend_dist_base_path_template/version-control.html +5 -5
  263. mage_ai/settings/models/configuration_option.py +15 -1
  264. mage_ai/settings/platform/__init__.py +29 -7
  265. mage_ai/streaming/sinks/rabbitmq.py +3 -1
  266. mage_ai/streaming/sources/rabbitmq.py +5 -2
  267. mage_ai/tests/api/endpoints/test_pipeline_runs.py +4 -0
  268. mage_ai/tests/data_preparation/models/test_project.py +27 -7
  269. mage_ai/tests/orchestration/db/models/test_schedules.py +25 -7
  270. mage_ai/tests/orchestration/test_pipeline_scheduler.py +6 -261
  271. mage_ai/tests/orchestration/test_pipeline_scheduler_project_platform.py +286 -0
  272. mage_ai/tests/shared/mixins.py +1 -0
  273. {mage_ai-0.9.56.dist-info → mage_ai-0.9.57.dist-info}/METADATA +1 -1
  274. {mage_ai-0.9.56.dist-info → mage_ai-0.9.57.dist-info}/RECORD +280 -258
  275. mage_ai/server/frontend_dist/_next/static/4hG0vHBR7gnry-ZWEsEF3/_buildManifest.js +0 -1
  276. mage_ai/server/frontend_dist/_next/static/chunks/1125-65883c05178efca1.js +0 -1
  277. mage_ai/server/frontend_dist/_next/static/chunks/1952-c4ba37bc172d7051.js +0 -1
  278. mage_ai/server/frontend_dist/_next/static/chunks/3437-91f6098316edaf17.js +0 -1
  279. mage_ai/server/frontend_dist/_next/static/chunks/5457-6e700aadac17ceec.js +0 -1
  280. mage_ai/server/frontend_dist/_next/static/chunks/7936-e25b6058d3f9b215.js +0 -1
  281. mage_ai/server/frontend_dist/_next/static/chunks/8264-dad1f090c4278137.js +0 -1
  282. mage_ai/server/frontend_dist/_next/static/chunks/8432-ec2b97cbf32ec5a7.js +0 -1
  283. mage_ai/server/frontend_dist/_next/static/chunks/8731-9e0ad513b0dfce83.js +0 -1
  284. mage_ai/server/frontend_dist/_next/static/chunks/9626-090ff01fd210431c.js +0 -1
  285. mage_ai/server/frontend_dist/_next/static/chunks/pages/compute-5ead3afa88d14721.js +0 -1
  286. mage_ai/server/frontend_dist/_next/static/chunks/pages/files-13a4f6d00e8a1c63.js +0 -1
  287. mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks/[...slug]-a7d74042d52c3c38.js +0 -1
  288. mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks-cf7f1ba0b44ec0fb.js +0 -1
  289. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/files-259dea0c7cb30d2a.js +0 -1
  290. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/settings-1fe2dfaa456529a6.js +0 -1
  291. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/[user]-1e8731ba2559fef4.js +0 -1
  292. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/new-a6307396dfa82c88.js +0 -1
  293. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users-fc5aafe5085739a9.js +0 -1
  294. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-8fad54817f356e9f.js +0 -1
  295. mage_ai/server/frontend_dist/_next/static/chunks/pages/overview-321f47b2dba4c780.js +0 -1
  296. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipeline-runs-bf4d162b5460acc6.js +0 -1
  297. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-ed8c521227dd326e.js +0 -1
  298. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-33d9fb90871be84c.js +0 -1
  299. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-f4ff09cfff8bad46.js +0 -1
  300. mage_ai/server/frontend_dist/_next/static/chunks/pages/templates/[...slug]-04b0a55e8ad6f814.js +0 -1
  301. mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-88025dd0ed3051a6.js +0 -1
  302. mage_ai/server/frontend_dist/_next/static/chunks/pages/test-5b316b190ff4b226.js +0 -1
  303. mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-e5e49ac3b9282aaa.js +0 -1
  304. mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-b52d3a07a13452ff.js +0 -1
  305. mage_ai/server/frontend_dist_base_path_template/_next/static/MKDICBWwxQowqsGfMukac/_buildManifest.js +0 -1
  306. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1125-65883c05178efca1.js +0 -1
  307. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1952-c4ba37bc172d7051.js +0 -1
  308. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3437-91f6098316edaf17.js +0 -1
  309. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5457-6e700aadac17ceec.js +0 -1
  310. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7936-e25b6058d3f9b215.js +0 -1
  311. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8264-dad1f090c4278137.js +0 -1
  312. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8432-ec2b97cbf32ec5a7.js +0 -1
  313. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8731-9e0ad513b0dfce83.js +0 -1
  314. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9626-090ff01fd210431c.js +0 -1
  315. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/compute-5ead3afa88d14721.js +0 -1
  316. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/files-13a4f6d00e8a1c63.js +0 -1
  317. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks/[...slug]-a7d74042d52c3c38.js +0 -1
  318. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks-cf7f1ba0b44ec0fb.js +0 -1
  319. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/files-259dea0c7cb30d2a.js +0 -1
  320. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/settings-1fe2dfaa456529a6.js +0 -1
  321. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/[user]-1e8731ba2559fef4.js +0 -1
  322. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/new-a6307396dfa82c88.js +0 -1
  323. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users-fc5aafe5085739a9.js +0 -1
  324. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage-8fad54817f356e9f.js +0 -1
  325. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/overview-321f47b2dba4c780.js +0 -1
  326. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipeline-runs-bf4d162b5460acc6.js +0 -1
  327. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-ed8c521227dd326e.js +0 -1
  328. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-33d9fb90871be84c.js +0 -1
  329. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-f4ff09cfff8bad46.js +0 -1
  330. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/templates/[...slug]-04b0a55e8ad6f814.js +0 -1
  331. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/terminal-88025dd0ed3051a6.js +0 -1
  332. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/test-5b316b190ff4b226.js +0 -1
  333. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/triggers-e5e49ac3b9282aaa.js +0 -1
  334. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/version-control-b52d3a07a13452ff.js +0 -1
  335. /mage_ai/server/frontend_dist/_next/static/{4hG0vHBR7gnry-ZWEsEF3 → A7VXVGKgLQCukXcjdysDz}/_ssgManifest.js +0 -0
  336. /mage_ai/server/frontend_dist_base_path_template/_next/static/{MKDICBWwxQowqsGfMukac → wSRrM15xnvA8lOWcaque7}/_ssgManifest.js +0 -0
  337. {mage_ai-0.9.56.dist-info → mage_ai-0.9.57.dist-info}/LICENSE +0 -0
  338. {mage_ai-0.9.56.dist-info → mage_ai-0.9.57.dist-info}/WHEEL +0 -0
  339. {mage_ai-0.9.56.dist-info → mage_ai-0.9.57.dist-info}/entry_points.txt +0 -0
  340. {mage_ai-0.9.56.dist-info → mage_ai-0.9.57.dist-info}/top_level.txt +0 -0
@@ -1 +0,0 @@
1
- self.__BUILD_MANIFEST=function(s,e,i,a,c,t,n,p,l,u,g,k,r,b,o,f,d,h,j,m,w,_,v,y,I,B,F,A,D,E,L,M,N,S,T,U,C,x,P,q,z,G,H,J,K,O,Q,R,V){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":["static/chunks/pages/index-a22f976b85beef2d.js"],"/404":["static/chunks/pages/404-5ddd12931e0e3e41.js"],"/_error":["static/chunks/pages/_error-e989623bffcbf724.js"],"/block-layout":[s,F,e,k,f,d,j,_,A,N,i,t,b,m,S,C,"static/chunks/pages/block-layout-d40babdbf465a7e1.js"],"/compute":[s,e,a,g,i,c,t,n,p,l,r,y,"static/chunks/pages/compute-5ead3afa88d14721.js"],"/files":[s,e,a,k,D,i,c,t,n,p,l,b,w,E,q,"static/chunks/pages/files-13a4f6d00e8a1c63.js"],"/global-data-products":[s,e,a,i,c,t,n,p,I,T,z,"static/chunks/pages/global-data-products-bb38f73540efeac4.js"],"/global-data-products/[...slug]":[s,e,a,i,c,t,n,p,I,T,z,"static/chunks/pages/global-data-products/[...slug]-1e4838e534c8f31e.js"],"/global-hooks":[s,e,a,i,c,t,n,p,l,G,"static/chunks/pages/global-hooks-cf7f1ba0b44ec0fb.js"],"/global-hooks/[...slug]":[s,e,a,i,c,t,n,l,G,"static/chunks/pages/global-hooks/[...slug]-a7d74042d52c3c38.js"],"/manage":[s,e,a,k,D,i,c,t,n,p,l,b,w,E,"static/chunks/pages/manage-8fad54817f356e9f.js"],"/manage/files":[s,e,a,k,D,i,c,t,n,p,l,b,w,E,q,"static/chunks/pages/manage/files-259dea0c7cb30d2a.js"],"/manage/settings":[s,e,a,k,i,c,t,b,"static/chunks/pages/manage/settings-1fe2dfaa456529a6.js"],"/manage/users":[s,e,a,i,c,t,n,p,"static/chunks/pages/manage/users-fc5aafe5085739a9.js"],"/manage/users/new":[s,e,a,i,c,t,x,"static/chunks/pages/manage/users/new-a6307396dfa82c88.js"],"/manage/users/[user]":[s,e,a,i,c,t,n,p,x,"static/chunks/pages/manage/users/[user]-1e8731ba2559fef4.js"],"/oauth":[s,e,a,i,c,"static/chunks/pages/oauth-eba7027969034415.js"],"/overview":[s,F,e,a,g,k,o,f,d,j,_,L,A,N,i,c,t,n,p,l,r,b,m,w,v,y,M,S,C,H,"static/chunks/pages/overview-321f47b2dba4c780.js"],"/pipeline-runs":[s,e,a,i,c,t,n,p,I,P,"static/chunks/pages/pipeline-runs-bf4d162b5460acc6.js"],"/pipelines":[s,e,a,g,k,o,f,d,L,i,c,t,n,p,l,r,b,m,w,v,y,M,P,H,"static/chunks/pages/pipelines-33d9fb90871be84c.js"],"/pipelines/[pipeline]":["static/chunks/pages/pipelines/[pipeline]-02c843b9c8418bb5.js"],"/pipelines/[pipeline]/backfills":[s,e,a,i,c,t,n,p,u,"static/chunks/pages/pipelines/[pipeline]/backfills-515eb343210aa1fb.js"],"/pipelines/[pipeline]/backfills/[...slug]":[s,e,a,g,o,B,U,i,c,t,n,p,l,u,r,I,"static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-b526282c8ac49986.js"],"/pipelines/[pipeline]/dashboard":[s,F,e,a,k,f,d,j,_,A,N,i,c,t,u,b,m,S,C,"static/chunks/pages/pipelines/[pipeline]/dashboard-fe4d1321da8291cb.js"],"/pipelines/[pipeline]/edit":[s,F,e,a,g,k,o,f,d,j,_,B,L,A,D,N,"static/chunks/6563-5b3b97c9088baf69.js",i,c,t,n,p,l,r,v,y,M,E,S,"static/chunks/pages/pipelines/[pipeline]/edit-ed8c521227dd326e.js"],"/pipelines/[pipeline]/logs":[s,e,a,g,f,U,i,c,t,n,p,l,u,m,"static/chunks/pages/pipelines/[pipeline]/logs-c011d465f61138ee.js"],"/pipelines/[pipeline]/monitors":[s,e,a,j,_,i,c,t,u,"static/chunks/pages/pipelines/[pipeline]/monitors-579899cbaedcdefc.js"],"/pipelines/[pipeline]/monitors/block-runs":[s,e,a,j,_,i,c,t,l,u,"static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-46c0dabd155581a0.js"],"/pipelines/[pipeline]/monitors/block-runtime":[s,F,e,a,j,_,"static/chunks/6285-648f9a732e100b2f.js",i,c,t,l,u,"static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-f2a052cb8a20fe47.js"],"/pipelines/[pipeline]/runs":[s,e,a,g,o,B,i,c,t,n,p,l,u,r,I,J,"static/chunks/pages/pipelines/[pipeline]/runs-9b53da919db959bd.js"],"/pipelines/[pipeline]/runs/[run]":[s,e,a,g,o,f,j,B,A,i,c,t,n,p,l,u,r,m,J,"static/chunks/pages/pipelines/[pipeline]/runs/[run]-7a2265b7e44bed0b.js"],"/pipelines/[pipeline]/settings":[s,e,a,i,c,t,u,"static/chunks/pages/pipelines/[pipeline]/settings-1839276725bfd757.js"],"/pipelines/[pipeline]/syncs":[s,e,a,i,c,t,n,p,u,"static/chunks/pages/pipelines/[pipeline]/syncs-68d779bc62185470.js"],"/pipelines/[pipeline]/triggers":[s,e,a,g,o,d,B,U,K,i,c,t,n,p,l,u,r,v,T,P,O,"static/chunks/pages/pipelines/[pipeline]/triggers-358523847fdbf547.js"],"/pipelines/[pipeline]/triggers/[...slug]":[s,e,a,g,o,d,B,U,K,i,c,t,n,p,l,u,r,v,I,O,"static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-01f4528602f4ba2a.js"],"/settings":["static/chunks/pages/settings-0f0121db7f5ff93d.js"],"/settings/account/profile":[s,e,a,i,c,t,h,x,"static/chunks/pages/settings/account/profile-00393e67ab1e6788.js"],"/settings/workspace/permissions":[s,e,a,i,c,t,n,p,h,Q,"static/chunks/pages/settings/workspace/permissions-c3140516cc28e467.js"],"/settings/workspace/permissions/[...slug]":[s,e,a,i,c,t,n,p,h,Q,"static/chunks/pages/settings/workspace/permissions/[...slug]-eaeba99f9547a20a.js"],"/settings/workspace/preferences":[s,e,a,i,c,t,h,"static/chunks/pages/settings/workspace/preferences-f4ff09cfff8bad46.js"],"/settings/workspace/roles":[s,e,a,i,c,t,n,p,h,R,"static/chunks/pages/settings/workspace/roles-22ff9d862736b2ec.js"],"/settings/workspace/roles/[...slug]":[s,e,a,i,c,t,n,p,h,R,"static/chunks/pages/settings/workspace/roles/[...slug]-f6ff0e219a4b9ffd.js"],"/settings/workspace/sync-data":[s,e,a,i,c,t,h,"static/chunks/pages/settings/workspace/sync-data-614925e838d1974c.js"],"/settings/workspace/users":[s,e,a,i,c,t,n,p,h,V,"static/chunks/pages/settings/workspace/users-eb904db7ac7ea57c.js"],"/settings/workspace/users/[...slug]":[s,e,a,i,c,t,n,p,h,V,"static/chunks/pages/settings/workspace/users/[...slug]-5b88dfb1c6d0d16c.js"],"/sign-in":[s,e,a,i,c,"static/chunks/pages/sign-in-c734db1d5834dda2.js"],"/templates":[s,e,a,g,k,o,f,d,L,i,c,t,n,p,l,r,b,m,w,v,y,M,"static/chunks/pages/templates-5ebfe79c24d8c4b4.js"],"/templates/[...slug]":[s,e,a,g,k,o,f,d,L,i,c,t,n,p,l,r,b,m,w,v,y,M,"static/chunks/pages/templates/[...slug]-04b0a55e8ad6f814.js"],"/terminal":[s,e,a,i,c,t,"static/chunks/pages/terminal-88025dd0ed3051a6.js"],"/test":["static/chunks/pages/test-5b316b190ff4b226.js"],"/triggers":[s,e,a,i,c,t,n,p,T,"static/chunks/pages/triggers-e5e49ac3b9282aaa.js"],"/version-control":[s,e,a,D,"static/chunks/6965-c613d1834c8ed92d.js",i,c,t,n,p,l,w,E,"static/chunks/pages/version-control-b52d3a07a13452ff.js"],sortedPages:["/","/404","/_app","/_error","/block-layout","/compute","/files","/global-data-products","/global-data-products/[...slug]","/global-hooks","/global-hooks/[...slug]","/manage","/manage/files","/manage/settings","/manage/users","/manage/users/new","/manage/users/[user]","/oauth","/overview","/pipeline-runs","/pipelines","/pipelines/[pipeline]","/pipelines/[pipeline]/backfills","/pipelines/[pipeline]/backfills/[...slug]","/pipelines/[pipeline]/dashboard","/pipelines/[pipeline]/edit","/pipelines/[pipeline]/logs","/pipelines/[pipeline]/monitors","/pipelines/[pipeline]/monitors/block-runs","/pipelines/[pipeline]/monitors/block-runtime","/pipelines/[pipeline]/runs","/pipelines/[pipeline]/runs/[run]","/pipelines/[pipeline]/settings","/pipelines/[pipeline]/syncs","/pipelines/[pipeline]/triggers","/pipelines/[pipeline]/triggers/[...slug]","/settings","/settings/account/profile","/settings/workspace/permissions","/settings/workspace/permissions/[...slug]","/settings/workspace/preferences","/settings/workspace/roles","/settings/workspace/roles/[...slug]","/settings/workspace/sync-data","/settings/workspace/users","/settings/workspace/users/[...slug]","/sign-in","/templates","/templates/[...slug]","/terminal","/test","/triggers","/version-control"]}}("static/chunks/2852872c-15b31a7081e6a868.js","static/chunks/1154-2f262f7eb38ebaa1.js","static/chunks/874-d9e1b3c9c00ebac9.js","static/chunks/844-1e171f361e63b36d.js","static/chunks/9626-090ff01fd210431c.js","static/chunks/8264-dad1f090c4278137.js","static/chunks/7858-26a5a5d04fa3c703.js","static/chunks/5499-261cfa2410506eb4.js","static/chunks/5283-8d1dacb2eeb9e652.js","static/chunks/5457-6e700aadac17ceec.js","static/chunks/5820-28adeabb5cda2b96.js","static/chunks/6639-74eefed142e14ea6.js","static/chunks/3745-51be3a2b7cd04895.js","static/chunks/5810-e26a0768db1cfdba.js","static/chunks/1124-09b283a2f26cc576.js","static/chunks/1751-5adf859690505d7b.js","static/chunks/341-ef0f7b98b7f69802.js","static/chunks/8432-ec2b97cbf32ec5a7.js","static/chunks/5896-7b8e36634d7d94eb.js","static/chunks/3859-ba594d21a1260cd2.js","static/chunks/2646-78905b899b68f4eb.js","static/chunks/2714-68fef54789d7eaeb.js","static/chunks/8998-e46ae0a83be32d42.js","static/chunks/3004-9fff558eeede3a83.js","static/chunks/3943-a49377acc514e77f.js","static/chunks/9161-837b653aa849a76f.js","static/chunks/29107295-989a0767a635d9d5.js","static/chunks/2631-b9f9bea3f1cf906d.js","static/chunks/7011-81dd8269c4806d26.js","static/chunks/7936-e25b6058d3f9b215.js","static/chunks/1821-953efd0da290d25f.js","static/chunks/9264-a5e8a0274efa2b14.js","static/chunks/4783-422429203610c318.js","static/chunks/976-0a8c2c4d7acd957b.js","static/chunks/9624-89a4b20eb3b3c754.js","static/chunks/4495-4f0340aa82e0c623.js","static/chunks/9440-c51bf1e8f271cb25.js","static/chunks/6043-728790621ca9014c.js","static/chunks/2474-352ae192b826d896.js","static/chunks/1125-65883c05178efca1.js","static/chunks/8731-9e0ad513b0dfce83.js","static/chunks/3437-91f6098316edaf17.js","static/chunks/1952-c4ba37bc172d7051.js","static/chunks/3419-b8bd26f5946bec5a.js","static/chunks/9302-913007e2f801ad65.js","static/chunks/2717-477f64b5e272d5a3.js","static/chunks/8146-7fc9ef7d0202e6ab.js","static/chunks/7022-1c1c93b6222d48f9.js","static/chunks/7361-559f4d2eca379217.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1125],{65557:function(e,n,t){var i=t(21831),o=t(75582),r=t(82684),l=t(80329);n.Z=function(e){var n=e.children,t=e.uuid,c=e.uuids,u=void 0===c?[]:c,a=(0,l.j)("apiReloads"),s=(0,o.Z)(a,1)[0],d=(0,i.Z)(u);t&&d.push(t);var f=d.map((function(e){return String(s[e])||"-"})).join("_");return r.cloneElement(n,{key:f})}},29618:function(e,n,t){t.d(n,{Z:function(){return U}});var i=t(82394),o=t(75582),r=t(17717),l=t(82684),c=t(80329),u=t(69864),a=t(40761),s=t(44425),d=t(71180),f=t(38626),p=t(97618),v=t(55485),h=t(28598),m=f.default.div.withConfig({displayName:"ButtonGroup__ButtonGroupStyle",componentId:"sc-15vbmc8-0"})([""]),b=f.default.div.withConfig({displayName:"ButtonGroup__VerticalDivider",componentId:"sc-15vbmc8-1"})(["width:1px;"]),g=function(e){var n=e.children,t=e.divider,i=l.Children.toArray(n).length;return(0,h.jsx)(m,{children:(0,h.jsx)(v.ZP,{children:l.Children.map(n,(function(e,n){return e&&(0,h.jsxs)(p.Z,{children:[n>=1&&t&&(0,h.jsx)(b,{}),l.cloneElement(e,{borderRadiusLeft:i>=2&&0===n,borderRadiusRight:i>=2&&n===i-1,halfPaddingLeft:i>=2&&0!==n,halfPaddingRight:i>=2&&n!==i-1,noBorder:i>=2&&n>0&&n<i-1,noBorderRight:i>=2&&n!==i-1})]},"button-group-child-".concat(n))}))})})},y=t(75810),j=t(89706),x=t(93369),C=t(57653),k=t(38276),P=t(35686),Z=t(39643),O=t(11498),w=t(85385),S=t(80330),_=t(86735),I=t(81728),E=t(72619),T=t(42041),D=t(44688);function R(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 N(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?R(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):R(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var U=function(e){var n,t=e.active,f=e.addNewBlock,p=e.disableRefreshWarning,m=e.fetchPipeline,b=e.fetchVariables,R=e.filePath,U=e.hideHeaderButtons,F=e.onContentChange,M=e.onUpdateFileSuccess,z=e.openSidekickView,A=e.pipeline,H=e.saveFile,B=e.selectedFilePath,L=e.sendTerminalMessage,G=e.setDisableShortcuts,V=e.setErrors,X=e.setFilesTouched,W=e.setSelectedBlock,q=(0,c.j)("apiReloads"),J=(0,o.Z)(q,2)[1],K=(0,l.useState)(null),Q=K[0],$=K[1],Y=(0,l.useState)(!1),ee=Y[0],ne=(Y[1],(0,l.useRef)(null)),te=(0,l.useMemo)((function(){return new a.Z}),[]),ie=(0,l.useMemo)((function(){return{api_key:O.lG,token:te.decodedToken.token}}),[te]),oe=P.ZP.statuses.list().data,re=(0,l.useMemo)((function(){var e,n;return null===oe||void 0===oe||null===(e=oe.statuses)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.repo_path}),[oe]),le=P.ZP.file_contents.detail(R).data;(0,l.useEffect)((function(){null!==le&&void 0!==le&&le.file_content?$(le.file_content):null!==le&&void 0!==le&&le.error&&(0,E.h$)(le,{onErrorCallback:function(e,n){return V({errors:n,response:e})}})}),[le,V]);var ce=(0,l.useState)(null===Q||void 0===Q?void 0:Q.content),ue=ce[0],ae=ce[1],se=(0,l.useCallback)((function(e){ae(e),F&&(null===F||void 0===F||F(e))}),[F]),de=(0,l.useState)(!1),fe=de[0],pe=de[1];(0,l.useEffect)((function(){t&&G&&(null===G||void 0===G||G(!0))}),[t,G]),(0,l.useEffect)((function(){var e;B&&(null===ne||void 0===ne||null===(e=ne.current)||void 0===e||e.scrollIntoView())}),[B]);var ve=(0,u.Db)(P.ZP.file_contents.useUpdate((null===Q||void 0===Q?void 0:Q.path)&&encodeURIComponent(null===Q||void 0===Q?void 0:Q.path)),{onSuccess:function(e){return(0,E.wD)(e,{callback:function(e){var n=e.file_content;J((function(e){return N(N({},e),{},(0,i.Z)({},"FileVersions/".concat(null===Q||void 0===Q?void 0:Q.path),Number(new Date)))})),M&&(null===M||void 0===M||M(n))},onErrorCallback:function(e,n){return null===V||void 0===V?void 0:V({errors:n,response:e})}})}}),he=(0,o.Z)(ve,1)[0],me=(0,l.useCallback)((function(e,n){if(H)return H(e,n);he({file_content:N(N({},n),{},{content:e})}).then((function(){decodeURIComponent(R).split(r.sep).pop()===j.dT.METADATA_YAML&&b&&(null===b||void 0===b||b())})),X((function(e){return N(N({},e),{},(0,i.Z)({},null===n||void 0===n?void 0:n.path,!1))})),pe(!1)}),[b,R,H,X,he]),be=(0,l.useMemo)((function(){return(0,S.lU)()}),[]),ge=(0,l.useMemo)((function(){var e,n,t,i;return null===(null===Q||void 0===Q||null===(e=Q.path)||void 0===e?void 0:e.match(be))?j.Lu.TXT:null===Q||void 0===Q||null===(n=Q.path)||void 0===n||null===(t=n.match(be))||void 0===t||null===(i=t[0])||void 0===i?void 0:i.split(".")[1]}),[be,Q]),ye=(0,l.useMemo)((function(){if(null!==Q&&void 0!==Q&&Q.path)return(0,h.jsx)(y.Z,{autoHeight:!0,language:j.nB[ge],onChange:function(e){se(e),X((function(e){return N(N({},e),{},(0,i.Z)({},null===Q||void 0===Q?void 0:Q.path,!0))})),pe(!0)},onSave:function(e){me(e,Q)},padding:10,selected:!0,textareaFocused:!0,value:(0,I.Pb)(null===Q||void 0===Q?void 0:Q.content)?JSON.stringify(JSON.parse(null===Q||void 0===Q?void 0:Q.content),null,2):null===Q||void 0===Q?void 0:Q.content,width:"100%"})}),[Q,ge,me,se,X]),je=null!==A&&void 0!==A&&A.blocks?(0,_.sE)(null===A||void 0===A?void 0:A.blocks,(function(e){var n=e.type;return s.tf.DATA_EXPORTER===n})):null,xe=(0,u.Db)(P.ZP.blocks.pipelines.useUpdate(encodeURIComponent(null===A||void 0===A?void 0:A.uuid),encodeURIComponent(null===je||void 0===je?void 0:je.uuid)),{onSuccess:function(e){return(0,E.wD)(e,{callback:function(){null===m||void 0===m||m()}})}}),Ce=(0,o.Z)(xe,1)[0],ke=f&&A&&Q&&j.tE.includes(ge)&&(0,S.ck)(null===Q||void 0===Q||null===(n=Q.path)||void 0===n?void 0:n.split(r.sep))&&(0,h.jsx)(d.ZP,{onClick:function(){var e=(null===A||void 0===A?void 0:A.type)===C.qL.INTEGRATION,n=(0,S.TU)(Q,re,A);f(n,(function(n){e&&je&&Ce({block:N(N({},je),{},{upstream_blocks:[n.uuid]})}),null===W||void 0===W||W(n)}))},primary:!0,children:"Add to current pipeline"}),Pe=L&&(0,h.jsx)(k.Z,{m:2,children:(0,h.jsx)(x.ZP,{disabled:!re,inline:!0,loading:ee,onClick:function(){null===z||void 0===z||z(w.cH.TERMINAL),null===L||void 0===L||L(JSON.stringify(N(N({},ie),{},{command:["stdin","pip install -r ".concat(re,"/requirements.txt\r")]})))},title:re?"Pip install packages from your saved requirements.txt file (\u2318+S to save).":"Please use right panel terminal to install packages.",uuid:"FileEditor/InstallPackages",children:"Install packages"})}),Ze="FileEditor/".concat(null===Q||void 0===Q?void 0:Q.path),Oe=(0,D.y)(),we=Oe.registerOnKeyDown,Se=Oe.unregisterOnKeyDown;return(0,l.useEffect)((function(){return function(){Se(Ze)}}),[Se,Ze]),we(Ze,(function(e,n){if(t&&!p)if((0,T.y)([Z.zX,Z.Um],n)||(0,T.y)([Z.PQ,Z.Um],n))e.preventDefault(),me(ue,Q);else if(fe&&(0,T.y)([Z.zX,Z.hS],n)){e.preventDefault();var i="".concat(Q.path," has changes that are unsaved. ")+"Click cancel and save your changes before reloading page.";"undefined"!==typeof location&&window.confirm(i)&&location.reload()}}),[t,ue,p,Q,me,fe]),(0,h.jsxs)("div",{ref:ne,children:[!U&&(0,h.jsx)(k.Z,{p:2,children:(0,h.jsxs)(v.ZP,{justifyContent:"space-between",children:[(0,h.jsxs)(g,{children:[ke,(0,h.jsx)(d.ZP,{disabled:!ue,onClick:function(e){e.preventDefault(),me(ue,Q)},title:ue?null:"No changes have been made to this file.",children:"Save file content"})]}),z&&(0,h.jsx)(g,{children:(0,h.jsx)(d.ZP,{compact:!0,onClick:function(){z(w.cH.FILE_VERSIONS)},small:!0,title:"View previous changes to this file.",children:"Show versions"})})]})}),ye,R===j.dT.REQS_TXT&&Pe]})}},90758:function(e,n,t){t.d(n,{Z:function(){return Z}});var i=t(82394),o=t(26304),r=t(82684),l=t(38626),c=t(39867),u=t(55485),a=t(48670),s=t(38276),d=t(30160),f=t(12468),p=t(44897),v=t(72473),h=t(97133),m=t(70515),b=t(15610),g=t(95924),y=t(28598);var j=function(e){var n=e.filePath,t=e.filesTouched,i=void 0===t?{}:t,o=e.isLast,l=e.onClickTab,j=e.onClickTabClose,x=e.renderTabTitle,C=e.savePipelineContent,k=e.selected,P=e.themeContext,Z=(0,r.useState)(!1),O=Z[0],w=Z[1];return(0,y.jsx)(u.ZP,{flexDirection:"column",fullHeight:!0,onClick:function(e){e.preventDefault(),k||(l?l(n):(null===C||void 0===C||C(),(0,b.u)({file_path:encodeURIComponent(n)})))},onMouseEnter:function(){return w(!0)},onMouseLeave:function(){return w(!1)},children:(0,y.jsx)(h.Gb,{last:o,selected:k,children:(0,y.jsxs)(u.ZP,{alignItems:"center",fullHeight:!0,children:[(0,y.jsx)(f.Z,{appearAbove:!0,appearBefore:!0,label:n,size:null,widthFitContent:!0,children:(0,y.jsxs)(u.ZP,{alignItems:"center",fullHeight:!0,children:[!i[n]&&(0,y.jsx)(v.iU,{muted:!k,size:1.5*m.iI}),i[n]&&(0,y.jsx)(f.Z,{label:"Unsaved changes",size:null,widthFitContent:!0,children:(0,y.jsx)("div",{style:{padding:1},children:(0,y.jsx)(c.Z,{borderColor:(P||p.Z).borders.danger,size:1.25*m.iI})})}),(0,y.jsx)(s.Z,{mr:1}),(0,y.jsx)(d.ZP,{muted:!k,children:x?x(n):n})]})}),(0,y.jsx)(s.Z,{mr:2}),(0,y.jsx)(f.Z,{label:"Close",size:null,widthFitContent:!0,children:(0,y.jsxs)(a.Z,{autoHeight:!0,block:!0,noHoverUnderline:!0,noOutline:!0,onClick:function(e){(0,g.j)(e),null===j||void 0===j||j(n)},preventDefault:!0,children:[(O||k)&&(0,y.jsx)(v.x8,{muted:!k,size:1.25*m.iI}),!O&&!k&&(0,y.jsx)("div",{style:{width:1.25*m.iI}})]})})]})})})},x=t(86735),C=["filePaths","isSelectedFilePath","onClickTabClose","selectedFilePath"];function k(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function P(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?k(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):k(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Z=function(e){var n=e.filePaths,t=e.isSelectedFilePath,i=e.onClickTabClose,c=e.selectedFilePath,a=(0,o.Z)(e,C),s=(0,r.useContext)(l.ThemeContext),d=(0,r.useMemo)((function(){return n.map((function(e){return decodeURIComponent(e)}))}),[n]),f=(0,r.useMemo)((function(){return null===d||void 0===d?void 0:d.length}),[d]);return(0,y.jsx)(u.ZP,{alignItems:"center",justifyContent:"flex-start",children:null===d||void 0===d?void 0:d.map((function(e,n){var o=t?t(e,c):c===encodeURIComponent(e);return(0,r.createElement)(j,P(P({},a),{},{filePath:e,isLast:n===f-1,key:e,onClickTabClose:function(e){if(i)i(e);else{var n=(0,x.Od)(d,(function(n){return n===e})).map((function(e){return encodeURIComponent(e)}));(0,b.u)({file_path:n[n.length-1]||null,"file_paths[]":n},{pushHistory:!0})}},selected:o,themeContext:s}))}))})}},97133:function(e,n,t){t.d(n,{Gb:function(){return f},fm:function(){return s},lO:function(){return a},rK:function(){return d},zn:function(){return u}});var i=t(38626),o=t(44897),r=t(2842),l=t(70515),c=t(47041),u=300,a=i.default.div.withConfig({displayName:"indexstyle__PipelineContainerStyle",componentId:"sc-1sv9513-0"})([".pipeline-detail-enter-active{opacity:1;transition:opacity ","ms linear;}.pipeline-detail-enter-done{opacity:0;transition:opacity ","ms linear;}"],u,u),s=i.default.div.withConfig({displayName:"indexstyle__OverlayStyle",componentId:"sc-1sv9513-1"})(["height:100vh;opacity:1;position:fixed;width:100vw;z-index:9999;",""],(function(e){return"\n background-color: ".concat((e.theme.background||o.Z.background).codeArea,";\n ")})),d=i.default.div.withConfig({displayName:"indexstyle__PipelineHeaderStyle",componentId:"sc-1sv9513-2"})(["height:","px;position:sticky;top:","px;width:100%;z-index:5;"," "," "," ",""],r.Wi,r.Wi,(function(e){return"\n background-color: ".concat((e.theme.background||o.Z.background).panel,";\n border-bottom: 1px solid ").concat((e.theme.borders||o.Z.borders).medium,";\n ")}),(function(e){return e.relativePosition&&"\n position: relative;\n "}),(function(e){return e.secondary&&"\n height: ".concat(37,"px;\n top: ").concat(r.Wi,"px;\n overflow-x: auto;\n z-index: 3;\n ")}),(0,c.y$)()),f=i.default.div.withConfig({displayName:"indexstyle__FileTabStyle",componentId:"sc-1sv9513-3"})(["border-right:1px solid transparent;height:100%;padding:","px ","px;"," "," ",""],l.iI,l.cd*l.iI,(function(e){return"\n &:hover {\n cursor: default;\n\n p {\n color: ".concat((e.theme.content||o.Z.content).active," !important;\n cursor: default;\n }\n }\n ")}),(function(e){return e.selected&&"\n background-color: ".concat((e.theme.interactive||o.Z.interactive).hoverBackground,";\n ")}),(function(e){return!e.selected&&!e.last&&"\n border-color: ".concat((e.theme.borders||o.Z.borders).light," !important;\n ")}));i.default.div.withConfig({displayName:"indexstyle__HeaderViewOptionsStyle",componentId:"sc-1sv9513-4"})(["left:50%;position:absolute;transform:translateX(-50%);"])},80329:function(e,n,t){t.d(n,{j:function(){return i}});var i=(0,t(44152).r)({apiReloads:{}}).useGlobalState}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1952],{52749:function(e,n,t){var i=t(82394),r=t(82684),o=t(71180),l=t(55485),d=t(93369),c=t(7267),u=t(38276),s=t(30160),a=t(35576),p=t(17488),f=t(72473),h=t(4015),v=t(70515),j=t(81728),m=t(28598);function g(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 x(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?g(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):g(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n,t,i,g,b=e.createPipeline,Z=e.isLoading,y=e.onClose,P=(0,r.useRef)(null),O=(0,r.useState)(!1),w=O[0],I=O[1],k=(0,r.useState)({name:(0,j.Y6)()}),C=k[0],_=k[1];return(0,r.useEffect)((function(){var e;null===P||void 0===P||null===(e=P.current)||void 0===e||e.focus()}),[]),(0,m.jsxs)(h.Nk,{children:[(0,m.jsx)(h.I5,{children:(0,m.jsx)(l.ZP,{alignItems:"center",justifyContent:"center",children:(0,m.jsx)(f.xq,{size:5*v.iI,warning:!0})})}),(0,m.jsx)(h.gI,{children:(0,m.jsxs)(u.Z,{py:1,children:[(0,m.jsx)(u.Z,{mb:1,children:(0,m.jsx)(s.ZP,{default:!0,children:"New pipeline"})}),(0,m.jsx)(s.ZP,{textOverflow:!0,children:"Using AI"})]})}),(0,m.jsxs)(h.gI,{children:[(0,m.jsx)(s.ZP,{default:!0,children:"Name"}),(0,m.jsx)(p.Z,{alignRight:!0,noBackground:!0,noBorder:!0,onChange:function(e){return _((function(n){return x(x({},n),{},{name:e.target.value})}))},paddingVertical:v.iI,placeholder:"Enter pipeline name...",value:(null===C||void 0===C?void 0:C.name)||""})]}),(0,m.jsx)(h.gI,{children:(0,m.jsxs)(l.ZP,{flexDirection:"column",fullWidth:!0,children:[(0,m.jsx)(u.Z,{mb:2,pt:1,children:(0,m.jsx)(s.ZP,{default:!0,children:"Describe what the pipeline should do"})}),(0,m.jsxs)(u.Z,{pb:1,pr:v.cd,children:[(0,m.jsx)(a.Z,{fullWidth:!0,onChange:function(e){return _((function(n){return x(x({},n),{},{llm:{request:{pipeline_description:e.target.value},use_case:c.z.GENERATE_PIPELINE_WITH_DESCRIPTION}})}))},placeholder:"Type the pipeline purpose...",ref:P,rows:8,value:(null===C||void 0===C||null===(n=C.llm)||void 0===n||null===(t=n.request)||void 0===t?void 0:t.pipeline_description)||""}),(Z||w)&&(0,m.jsx)(u.Z,{mt:1,children:(0,m.jsx)(s.ZP,{warning:!0,children:"Pipeline is being generated using AI based on your description above..."})})]})]})}),(0,m.jsx)(h.$b,{children:(0,m.jsxs)(l.ZP,{fullWidth:!0,children:[(0,m.jsx)(d.ZP,{bold:!0,centerText:!0,disabled:!(null!==C&&void 0!==C&&C.name)||!(null!==C&&void 0!==C&&null!==(i=C.llm)&&void 0!==i&&null!==(g=i.request)&&void 0!==g&&g.pipeline_description),loading:Z||w,onClick:function(){I(!0),b({pipeline:C}).then((function(){return I(!1)}))},primary:!0,tabIndex:0,uuid:"AIControlPanel/CreatePipeline",children:"Create pipeline"}),y&&(0,m.jsx)(u.Z,{ml:1,children:(0,m.jsx)(o.ZP,{onClick:y,tabIndex:0,children:"Cancel"})})]})})]})}},60523:function(e,n,t){var i=t(21831),r=t(82394),o=t(82684),l=t(38626),d=t(34376),c=t(54750),u=t(71180),s=t(90299),a=t(44898),p=t(55485),f=t(88328),h=t(38276),v=t(4190),j=t(48381),m=t(5755),g=t(30160),x=t(35686),b=t(72473),Z=t(84649),y=t(32929),P=t(15610),O=t(19183),w=t(28598);function I(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 k(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?I(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):I(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n,t=e.contained,r=e.defaultLinkUUID,I=e.defaultTab,C=e.objectType,_=e.onClickCustomTemplate,S=e.pipelineUUID,N=e.showAddingNewTemplates,A=e.showBreadcrumbs,E=e.tabs,M=(0,d.useRouter)(),D=(0,o.useContext)(l.ThemeContext),T=(0,O.i)(),B=T.height,R=T.width,U=(0,o.useMemo)((function(){return E||y.dP}),[E]),H=(0,o.useState)(N||!1),q=H[0],L=H[1],z=(0,o.useState)(r?y.qy.find((function(e){return e.uuid===r})):y.qy[0]),W=z[0],F=z[1],G=(0,o.useState)(I?U.find((function(e){return e.uuid===(null===I||void 0===I?void 0:I.uuid)})):U[0]),V=G[0],Y=G[1],X=(0,o.useState)(null),$=X[0],K=X[1],Q=x.ZP.custom_templates.list({object_type:a.Z},{},{pauseFetch:y.n9.uuid!==(null===V||void 0===V?void 0:V.uuid)}),J=Q.data,ee=Q.mutate,ne=(0,o.useMemo)((function(){var e=(null===J||void 0===J?void 0:J.custom_templates)||[];return null!==W&&void 0!==W&&W.filterTemplates?null===W||void 0===W?void 0:W.filterTemplates(e):e}),[J,W]),te=x.ZP.custom_templates.list({object_type:a.R},{},{pauseFetch:y.A2.uuid!==(null===V||void 0===V?void 0:V.uuid)}),ie=te.data,re=te.mutate,oe=(0,o.useMemo)((function(){var e=(null===ie||void 0===ie?void 0:ie.custom_templates)||[];return null!==W&&void 0!==W&&W.filterTemplates?null===W||void 0===W?void 0:W.filterTemplates(e):e}),[ie,W]),le=(0,o.useMemo)((function(){return y.qy.map((function(e){var n=e.Icon,t=e.label,i=e.selectedBackgroundColor,r=e.selectedIconProps,o=e.uuid,l=(null===W||void 0===W?void 0:W.uuid)===o,d=k({size:Z.ZG},l&&r?r:{});return(0,w.jsx)(Z.wj,{onClick:function(){return F(e)},selected:l,children:(0,w.jsxs)(p.ZP,{alignItems:"center",children:[(0,w.jsx)(Z.ze,{backgroundColor:l&&i?i(D):null,children:n?(0,w.jsx)(n,k({},d)):(0,w.jsx)(b.pd,k({},d))}),(0,w.jsx)(g.ZP,{bold:!0,large:!0,children:t?t():o})]})},o)}))}),[W,D]),de=(0,o.useMemo)((function(){return y.hS.map((function(e){var n=e.Icon,t=e.label,i=e.selectedBackgroundColor,r=e.selectedIconProps,o=e.uuid,l=(null===W||void 0===W?void 0:W.uuid)===o,d=k({size:Z.ZG},l&&r?r:{});return(0,w.jsx)(Z.wj,{onClick:function(){return F(e)},selected:l,children:(0,w.jsxs)(p.ZP,{alignItems:"center",children:[(0,w.jsx)(Z.ze,{backgroundColor:l&&i?i(D):null,children:n?(0,w.jsx)(n,k({},d)):(0,w.jsx)(b.pd,k({},d))}),(0,w.jsx)(g.ZP,{bold:!0,large:!0,children:t?t():o})]})},o)}))}),[W,D]),ce=(0,o.useMemo)((function(){return null===ne||void 0===ne?void 0:ne.map((function(e){var n=e.description,t=e.name,r=e.tags,o=e.template_uuid,l=e.user,d=[];return null!==r&&void 0!==r&&r.length?d.push.apply(d,(0,i.Z)(r)):null!==l&&void 0!==l&&l.username&&d.push(null===l||void 0===l?void 0:l.username),(0,w.jsxs)(Z.UE,{onClick:function(){_?_(e):M.push("/templates/[...slug]","/templates/".concat(encodeURIComponent(o)))},children:[(0,w.jsx)(Z.Tj,{children:(0,w.jsx)(g.ZP,{bold:!0,monospace:!0,textOverflow:!0,children:t||o})}),(0,w.jsx)(Z.SL,{children:(0,w.jsx)(g.ZP,{default:!!n,italic:!n,muted:!n,textOverflowLines:2,children:n||"No description"})}),(0,w.jsx)(Z.EN,{children:(null===d||void 0===d?void 0:d.length)>=1&&(0,w.jsx)(j.Z,{tags:null===d||void 0===d?void 0:d.map((function(e){return{uuid:e}}))})})]},o)}))}),[ne,_,M]),ue=(0,o.useMemo)((function(){return null===oe||void 0===oe?void 0:oe.map((function(e){var n=e.description,t=e.name,r=e.tags,o=e.template_uuid,l=e.user,d=[];return null!==r&&void 0!==r&&r.length?d.push.apply(d,(0,i.Z)(r)):null!==l&&void 0!==l&&l.username&&d.push(null===l||void 0===l?void 0:l.username),(0,w.jsxs)(Z.UE,{onClick:function(){_?_(e):M.push("/templates/[...slug]","/templates/".concat(encodeURIComponent(o),"?object_type=").concat(a.R))},children:[(0,w.jsx)(Z.Tj,{children:(0,w.jsx)(g.ZP,{bold:!0,monospace:!0,textOverflow:!0,children:t||o})}),(0,w.jsx)(Z.SL,{children:(0,w.jsx)(g.ZP,{default:!!n,italic:!n,muted:!n,textOverflowLines:2,children:n||"No description"})}),(0,w.jsx)(Z.EN,{children:(null===d||void 0===d?void 0:d.length)>=1&&(0,w.jsx)(j.Z,{tags:null===d||void 0===d?void 0:d.map((function(e){return{uuid:e}}))})})]},o)}))}),[oe,_,M]),se=(0,o.useMemo)((function(){if(!A)return null;var e=[];return q?e.push.apply(e,[{label:function(){return"Templates"},onClick:function(){L(!1)}},{bold:!0,label:function(){return"New custom template"}}]):e.push({label:function(){return"Templates"}}),(0,w.jsx)(Z.FX,{children:(0,w.jsx)(c.Z,{breadcrumbs:e})})}),[q,A]),ae=(0,o.useMemo)((function(){return A?36:0}),[A]),pe=(0,o.useMemo)((function(){return B-ae}),[B,ae]);if(q)return n=a.R===C&&S?(0,w.jsx)(f.Z,{onMutateSuccess:re,pipelineUUID:S,templateAttributes:W&&(null===W||void 0===W?void 0:W.uuid)!==(null===y.qy||void 0===y.qy?void 0:y.qy[0].uuid)?{pipeline_type:null===W||void 0===W?void 0:W.uuid}:null,templateUUID:null===$||void 0===$?void 0:$.template_uuid}):(0,w.jsx)(m.Z,{contained:t,heightOffset:ae,onCreateCustomTemplate:t?function(e){K(e)}:null,onMutateSuccess:ee,templateAttributes:W&&(null===W||void 0===W?void 0:W.uuid)!==(null===y.qy||void 0===y.qy?void 0:y.qy[0].uuid)?{block_type:null===W||void 0===W?void 0:W.uuid}:null,templateUUID:null===$||void 0===$?void 0:$.template_uuid}),t?(0,w.jsxs)(w.Fragment,{children:[A&&se,(0,w.jsx)(Z.Rd,{height:pe,width:R,children:n})]}):n;var fe=(0,w.jsxs)(Z.Nk,{children:[(0,w.jsxs)(Z.bC,{height:t?pe:null,children:[(0,w.jsx)(Z.Yf,{children:(0,w.jsx)(s.Z,{noPadding:!0,onClickTab:function(e){t?Y(e):(0,P.u)({object_type:y.A2.uuid===e.uuid?a.R:a.Z})},selectedTabUUID:null===V||void 0===V?void 0:V.uuid,tabs:U})}),(0,w.jsxs)(Z.wl,{contained:t,heightOffset:ae,children:[y.n9.uuid===(null===V||void 0===V?void 0:V.uuid)&&le,y.A2.uuid===(null===V||void 0===V?void 0:V.uuid)&&de]})]}),(0,w.jsxs)(Z.w5,{children:[y.n9.uuid===(null===V||void 0===V?void 0:V.uuid)&&(0,w.jsx)(Z.HS,{children:(0,w.jsx)(u.ZP,{beforeIcon:(0,w.jsx)(b.mm,{size:Z.ZG}),onClick:function(){L(!0)},primary:!0,children:"New block template"})}),y.n9.uuid===(null===V||void 0===V?void 0:V.uuid)&&(0,w.jsxs)(w.Fragment,{children:[!J&&(0,w.jsx)(h.Z,{p:2,children:(0,w.jsx)(v.Z,{inverted:!0})}),J&&!(null!==ce&&void 0!==ce&&ce.length)&&(0,w.jsxs)(h.Z,{p:2,children:[(0,w.jsx)(g.ZP,{children:"There are currently no templates matching your search."}),(0,w.jsx)("br",{}),(0,w.jsx)(g.ZP,{children:"Add a new template by clicking the button above."})]}),(null===ce||void 0===ce?void 0:ce.length)>=1&&(0,w.jsx)(Z.n8,{children:ce})]}),y.A2.uuid===(null===V||void 0===V?void 0:V.uuid)&&(0,w.jsxs)(w.Fragment,{children:[!ie&&(0,w.jsx)(h.Z,{p:2,children:(0,w.jsx)(v.Z,{inverted:!0})}),ie&&!(null!==ue&&void 0!==ue&&ue.length)&&(0,w.jsxs)(h.Z,{p:2,children:[(0,w.jsx)(g.ZP,{children:"There are currently no templates matching your search."}),(0,w.jsx)("br",{}),(0,w.jsx)(g.ZP,{children:'Add a new template by right-clicking a pipeline row from the Pipelines page and selecting "Create template".'})]}),(null===ue||void 0===ue?void 0:ue.length)>=1&&(0,w.jsx)(Z.n8,{children:ue})]})]})]});return t?(0,w.jsxs)(w.Fragment,{children:[A&&se,(0,w.jsx)(Z.Rd,{height:pe,width:R,children:fe})]}):fe}},94629:function(e,n,t){t.d(n,{Z:function(){return I}});var i=t(82394),r=t(21831),o=t(82684),l=t(50724),d=t(82555),c=t(97618),u=t(70613),s=t(79626),a=t(68899),p=t(28598);function f(e,n){var t=e.children,i=e.noPadding;return(0,p.jsx)(a.HS,{noPadding:i,ref:n,children:t})}var h=o.forwardRef(f),v=t(62547),j=t(82571),m=t(98464),g=t(77417),x=t(46684),b=t(70515),Z=t(53808),y=t(19183);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 O(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,i.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}function w(e,n){e.addProjectBreadcrumbToCustomBreadcrumbs;var t=e.after,i=e.afterHeader,f=e.afterHidden,P=e.afterWidth,w=e.afterWidthOverride,I=e.appendBreadcrumbs,k=e.before,C=e.beforeWidth,_=e.breadcrumbs,S=e.children,N=e.errors,A=e.headerMenuItems,E=e.headerOffset,M=e.hideAfterCompletely,D=e.mainContainerHeader,T=e.navigationItems,B=e.setAfterHidden,R=e.setErrors,U=e.subheaderChildren,H=e.subheaderNoPadding,q=e.title,L=e.uuid,z=(0,y.i)().width,W="dashboard_after_width_".concat(L),F="dashboard_before_width_".concat(L),G=(0,o.useRef)(null),V=(0,o.useState)(w?P:(0,Z.U2)(W,P)),Y=V[0],X=V[1],$=(0,o.useState)(!1),K=$[0],Q=$[1],J=(0,o.useState)(k?Math.max((0,Z.U2)(F,C),13*b.iI):null),ee=J[0],ne=J[1],te=(0,o.useState)(!1),ie=te[0],re=te[1],oe=(0,o.useState)(null)[1],le=(0,g.Z)().project,de=[];_&&de.push.apply(de,(0,r.Z)(_)),null!==_&&void 0!==_&&_.length&&!I||!le||null!==_&&void 0!==_&&_.length||de.unshift({bold:!I,label:function(){return q}}),(0,o.useEffect)((function(){null===G||void 0===G||!G.current||K||ie||null===oe||void 0===oe||oe(G.current.getBoundingClientRect().width)}),[K,Y,ie,ee,G,oe,z]),(0,o.useEffect)((function(){K||(0,Z.t8)(W,Y)}),[f,K,Y,W]),(0,o.useEffect)((function(){ie||(0,Z.t8)(F,ee)}),[ie,ee,F]);var ce=(0,m.Z)(P);return(0,o.useEffect)((function(){w&&ce!==P&&X(P)}),[w,P,ce]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(u.Z,{title:q}),(0,p.jsx)(s.Z,{breadcrumbs:de,menuItems:A}),(0,p.jsxs)(a.Nk,{ref:n,children:[0!==(null===T||void 0===T?void 0:T.length)&&(0,p.jsx)(a.lm,{showMore:!0,children:(0,p.jsx)(j.Z,{navigationItems:T,showMore:!0})}),(0,p.jsx)(c.Z,{flex:1,flexDirection:"column",children:(0,p.jsxs)(v.Z,{after:t,afterHeader:i,afterHeightOffset:x.Mz,afterHidden:f,afterMousedownActive:K,afterWidth:Y,before:k,beforeHeightOffset:x.Mz,beforeMousedownActive:ie,beforeWidth:a.k1+(k?ee:0),headerOffset:E,hideAfterCompletely:!B||M,leftOffset:k?a.k1:null,mainContainerHeader:D,mainContainerRef:G,setAfterHidden:B,setAfterMousedownActive:Q,setAfterWidth:X,setBeforeMousedownActive:re,setBeforeWidth:ne,children:[U&&(0,p.jsx)(h,{noPadding:H,children:U}),S]})})]}),N&&(0,p.jsx)(l.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===R||void 0===R?void 0:R(null)},children:(0,p.jsx)(d.Z,O(O({},N),{},{onClose:function(){return null===R||void 0===R?void 0:R(null)}}))})]})}var I=o.forwardRef(w)},65458:function(e,n,t){t.d(n,{d:function(){return s}});var i=t(13507),r=t(72473),o=t(57653),l=t(70515),d=t(81728),c=t(28598),u=1.5*l.iI,s=function(e,n){var t=[{beforeIcon:(0,c.jsx)(r.X5,{}),label:function(){return"Standard (batch)"},onClick:function(){return e({pipeline:{name:(0,d.Y6)()}})},uuid:"Pipelines/NewPipelineMenu/standard"},{beforeIcon:(0,c.jsx)(r.ZG,{}),label:function(){return"Data integration"},onClick:function(){return e({pipeline:{name:(0,d.Y6)(),type:o.qL.INTEGRATION}})},uuid:"Pipelines/NewPipelineMenu/integration"},{beforeIcon:(0,c.jsx)(i.Z,{size:u}),label:function(){return"Streaming"},onClick:function(){return e({pipeline:{name:(0,d.Y6)(),type:o.qL.STREAMING}})},uuid:"Pipelines/NewPipelineMenu/streaming"}];return null!==n&&void 0!==n&&n.showBrowseTemplates&&t.push({beforeIcon:(0,c.jsx)(r.zQ,{}),label:function(){return"From a template"},onClick:function(){var e;return null===n||void 0===n||null===(e=n.showBrowseTemplates)||void 0===e?void 0:e.call(n)},uuid:"Pipelines/NewPipelineMenu/custom_template"}),null!==n&&void 0!==n&&n.showAIModal&&t.push({beforeIcon:(0,c.jsx)(r.xq,{}),label:function(){return"Using AI (beta)"},onClick:function(){var e;return null===n||void 0===n||null===(e=n.showAIModal)||void 0===e?void 0:e.call(n)},uuid:"Pipelines/NewPipelineMenu/AI_modal"}),t}},4015:function(e,n,t){t.d(n,{$b:function(){return s},I5:function(){return c},Nk:function(){return d},gI:function(){return u}});var i=t(38626),r=t(44897),o=t(42631),l=t(70515),d=i.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-h093u4-0"})([""," ",""],(function(e){return!e.width&&"\n width: ".concat(40*l.iI,"px;\n ")}),(function(e){return e.width&&"\n width: ".concat(e.width,"px;\n ")})),c=i.default.div.withConfig({displayName:"indexstyle__HeaderStyle",componentId:"sc-h093u4-1"})(["padding:","px;",""],2.5*l.iI,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).dashboard,";\n border-left: 1px solid ").concat((e.theme.interactive||r.Z.interactive).defaultBorder,";\n border-right: 1px solid ").concat((e.theme.interactive||r.Z.interactive).defaultBorder,";\n border-top-left-radius: ").concat(o.n_,"px;\n border-top-right-radius: ").concat(o.n_,"px;\n border-top: 1px solid ").concat((e.theme.interactive||r.Z.interactive).defaultBorder,";\n ")})),u=i.default.div.withConfig({displayName:"indexstyle__RowStyle",componentId:"sc-h093u4-2"})(["align-items:center;justify-content:space-between;",""],(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).dashboard,";\n border-left: 1px solid ").concat((e.theme.interactive||r.Z.interactive).defaultBorder,";\n border-right: 1px solid ").concat((e.theme.interactive||r.Z.interactive).defaultBorder,";\n border-top: 1px solid ").concat((e.theme.interactive||r.Z.interactive).defaultBorder,";\n display: ").concat((null===e||void 0===e?void 0:e.display)||"flex",";\n padding-bottom: ").concat(1*l.iI+((null===e||void 0===e?void 0:e.paddingVerticalAddition)||0),"px;\n padding-left: ").concat(l.cd*l.iI,"px;\n padding-top: ").concat(1*l.iI+((null===e||void 0===e?void 0:e.paddingVerticalAddition)||0),"px;\n ")})),s=i.default.div.withConfig({displayName:"indexstyle__FooterStyle",componentId:"sc-h093u4-3"})(["padding:","px ","px;",""],2.5*l.iI,2*l.iI,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).panel,";\n border-bottom-left-radius: ").concat(o.n_,"px;\n border-bottom-right-radius: ").concat(o.n_,"px;\n border-bottom: 1px solid ").concat((e.theme.interactive||r.Z.interactive).defaultBorder,";\n border-left: 1px solid ").concat((e.theme.interactive||r.Z.interactive).defaultBorder,";\n border-right: 1px solid ").concat((e.theme.interactive||r.Z.interactive).defaultBorder,";\n ")}))},48381:function(e,n,t){var i=t(82684),r=t(31882),o=t(55485),l=t(30160),d=t(86735),c=t(28598);n.Z=function(e){var n=e.onClickTag,t=e.tags,u=void 0===t?[]:t,s=(0,i.useMemo)((function(){return(null===u||void 0===u?void 0:u.length)||0}),[u]),a=(0,i.useMemo)((function(){return(0,d.YC)(u||[],"uuid")}),[u]);return(0,c.jsx)(o.ZP,{alignItems:"center",flexWrap:"wrap",children:null===a||void 0===a?void 0:a.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}),[])})}},55729:function(e,n,t){t.d(n,{Z:function(){return R}});var i=t(82394),r=t(75582),o=t(82684),l=t(69864),d=t(71180),c=t(15338),u=t(97618),s=t(55485),a=t(85854),p=t(48670),f=t(65956),h=t(82359),v=t(88543),j=t(38276),m=t(30160),g=t(17488),x=t(69650),b=t(12468),Z=t(35686),y=t(77417),P=t(38626),O=t(44897),w=t(42631),I=t(70515),k=P.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-1b0w59t-0"})(["border-radius:","px;padding:","px;",""],w.n_,I.cd*I.iI,(function(e){return"\n background-color: ".concat((e.theme.background||O.Z.background).codeArea,";\n ")})),C=t(72473),_=t(72191),S=t(70320),N=t(81728),A=t(42122),E=t(72619),M=t(23780),D=t(28598);function T(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?T(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):T(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var R=function(e){var n,t,P,O=e.cancelButtonText,w=e.contained,T=e.header,R=e.onCancel,U=e.onSaveSuccess,H=(0,M.VI)(null,{},[],{uuid:"settings/workspace/preferences"}),q=(0,r.Z)(H,1)[0],L=(0,o.useState)(null),z=L[0],W=L[1],F=(0,o.useState)(!1),G=F[0],V=F[1],Y=(0,y.Z)(),X=Y.project,$=Y.fetchProjects,K=X||{},Q=K.name,J=K.openai_api_key,ee=K.project_uuid,ne=(0,o.useMemo)((function(){return"demo.mage.ai"===window.location.hostname}),[]);(0,o.useEffect)((function(){z||W(X)}),[X,z]);var te=(0,l.Db)(Z.ZP.projects.useUpdate(Q),{onSuccess:function(e){return(0,E.wD)(e,{callback:function(e){var n,t=e.project;$(),W(t),V(!1),(0,S.hY)(null===t||void 0===t||null===(n=t.features)||void 0===n?void 0:n[h.d.LOCAL_TIMEZONE]),U&&(null===U||void 0===U||U(t))},onErrorCallback:function(e,n){return q({errors:n,response:e})}})}}),ie=(0,r.Z)(te,2),re=ie[0],oe=ie[1].isLoading,le=(0,o.useCallback)((function(e){return re({project:e})}),[re]),de=(0,D.jsxs)(D.Fragment,{children:[T,(0,D.jsxs)(f.Z,{noPadding:!0,children:[(0,D.jsxs)(j.Z,{p:I.cd,children:[(0,D.jsx)(j.Z,{mb:1,children:(0,D.jsx)(a.Z,{level:5,children:"Project name"})}),(0,D.jsx)(m.ZP,{default:!0,monospace:!0,children:Q})]}),(0,D.jsx)(c.Z,{light:!0}),(0,D.jsxs)(j.Z,{p:I.cd,children:[(0,D.jsx)(j.Z,{mb:1,children:(0,D.jsx)(a.Z,{level:5,children:"Project UUID"})}),(0,D.jsx)(m.ZP,{default:!!ee,monospace:!0,muted:!ee,children:ee||"Not required"})]}),(0,D.jsx)(c.Z,{light:!0}),(0,D.jsx)(j.Z,{p:I.cd,children:(0,D.jsxs)(s.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,D.jsxs)(u.Z,{flexDirection:"column",children:[(0,D.jsx)(j.Z,{mb:1,children:(0,D.jsx)(a.Z,{level:5,children:"Help improve Mage"})}),(0,D.jsxs)(m.ZP,{default:!0,children:["Please contribute usage statistics to help improve the developer experience for you and everyone in the community. Learn more ",(0,D.jsx)(p.Z,{href:"https://docs.mage.ai/contributing/statistics/overview",openNewWindow:!0,children:"here"}),"."]})]}),(0,D.jsx)(j.Z,{mr:I.cd}),(0,D.jsx)(x.Z,{compact:!0,checked:null===z||void 0===z?void 0:z.help_improve_mage,onCheck:function(){return W((function(e){return B(B({},e),{},{help_improve_mage:!(null!==z&&void 0!==z&&z.help_improve_mage)})}))}})]})})]}),(0,D.jsx)(j.Z,{mt:I.HN}),(0,D.jsx)(v.Z,{description:"Global settings that are applied to all pipelines in this project.",title:"Pipeline settings",children:(0,D.jsx)(v.S,{description:"Every time a trigger is created or updated in this pipeline, automatically persist it in code.",title:"Save triggers in code automatically",toggleSwitch:{checked:!(null===z||void 0===z||null===(n=z.pipelines)||void 0===n||null===(t=n.settings)||void 0===t||null===(P=t.triggers)||void 0===P||!P.save_in_code_automatically),onCheck:function(e){return W((function(n){var t,i,r,o,l,d;return B(B({},n),{},{pipelines:B(B({},null===n||void 0===n?void 0:n.pipelines),{},{settings:B(B({},null===n||void 0===n||null===(t=n.pipelines)||void 0===t?void 0:t.settings),{},{triggers:B(B({},null===n||void 0===n||null===(i=n.pipelines)||void 0===i||null===(r=i.settings)||void 0===r?void 0:r.triggers),{},{save_in_code_automatically:e(null===n||void 0===n||null===(o=n.pipelines)||void 0===o||null===(l=o.settings)||void 0===l||null===(d=l.triggers)||void 0===d?void 0:d.save_in_code_automatically)})})})})}))}}})}),(0,D.jsx)(j.Z,{mt:I.HN}),(0,D.jsx)(f.Z,{noPadding:!0,overflowVisible:!0,children:(0,D.jsxs)(j.Z,{p:I.cd,children:[(0,D.jsx)(j.Z,{mb:1,children:(0,D.jsx)(a.Z,{level:5,children:"Features"})}),Object.entries((0,A.gR)(null===z||void 0===z?void 0:z.features,[h.d.GLOBAL_HOOKS])||{}).map((function(e,n){var t=(0,r.Z)(e,2),o=t[0],l=t[1];return(0,D.jsx)(j.Z,{mt:0===n?0:1,children:(0,D.jsxs)(s.ZP,{alignItems:"center",children:[(0,D.jsx)(x.Z,{checked:!!l,compact:!0,onCheck:function(){return W((function(e){return B(B({},e),{},{features:B(B({},null===z||void 0===z?void 0:z.features),{},(0,i.Z)({},o,!l))})}))}}),(0,D.jsx)(j.Z,{mr:I.cd}),(0,D.jsxs)(u.Z,{children:[(0,D.jsx)(m.ZP,{default:!l,monospace:!0,children:(0,N.vg)(o)}),o===h.d.LOCAL_TIMEZONE&&(0,D.jsx)(j.Z,{ml:1,children:(0,D.jsx)(b.Z,B({},S.EB))})]})]})},o)}))]})}),(0,D.jsx)(j.Z,{mt:I.HN}),(0,D.jsx)(f.Z,{noPadding:!0,children:(0,D.jsxs)(j.Z,{p:I.cd,children:[(0,D.jsx)(j.Z,{mb:1,children:(0,D.jsx)(a.Z,{level:5,children:"OpenAI"})}),J&&!G?(0,D.jsxs)(s.ZP,B(B({},s.A0),{},{children:[(0,D.jsx)(m.ZP,{default:!0,monospace:!0,children:"API key: ********"}),(0,D.jsx)(d.ZP,{iconOnly:!0,onClick:function(){return V(!0)},secondary:!0,title:"Edit",children:(0,D.jsx)(C.I8,{size:_.bL})})]})):(0,D.jsx)(g.Z,{disabled:ne,label:ne?"Entering API key is disabled on demo":"API key",monospace:!0,onChange:function(e){return W((function(n){return B(B({},n),{},{openai_api_key:e.target.value})}))},primary:!0,setContentOnMount:!0,value:(null===z||void 0===z?void 0:z.openai_api_key)||""})]})}),(0,D.jsx)(j.Z,{mt:I.HN}),(0,D.jsxs)(s.ZP,{alignItems:"center",children:[(0,D.jsx)(d.ZP,{loading:oe,onClick:function(){le({features:null===z||void 0===z?void 0:z.features,help_improve_mage:null===z||void 0===z?void 0:z.help_improve_mage,openai_api_key:null===z||void 0===z?void 0:z.openai_api_key,pipelines:null===z||void 0===z?void 0:z.pipelines})},primary:!0,children:"Save project settings"}),R&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(j.Z,{mr:I.cd}),(0,D.jsx)(d.ZP,{onClick:R,secondary:!0,children:O||"Cancel"})]})]})]});return w?(0,D.jsx)(k,{children:de}):de}},88543:function(e,n,t){t.d(n,{S:function(){return Z},Z:function(){return y}});var i=t(82684),r=t(15338),o=t(97618),l=t(55485),d=t(85854),c=t(65956),u=t(82394),s=t(44085),a=t(38276),p=t(30160),f=t(17488),h=t(69650),v=t(72473),j=t(8193),m=t(70515),g=t(28598);function x(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?x(Object(t),!0).forEach((function(n){(0,u.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):x(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Z=function(e){var n,t=e.children,i=e.description,r=e.invalid,d=e.large,c=void 0===d||d,u=e.selectInput,x=e.textInput,Z=e.title,y=e.toggleSwitch,P=e.warning;return(0,g.jsx)(a.Z,{p:m.cd,children:(0,g.jsxs)(l.ZP,{alignItems:"center",children:[(0,g.jsxs)(l.ZP,{flexDirection:"column",children:[(0,g.jsxs)(p.ZP,{danger:r,default:!0,large:c,warning:P,children:[Z," ",r&&(0,g.jsx)(p.ZP,{danger:!0,inline:!0,large:c,children:"is required"})]}),i&&"string"===typeof i&&(0,g.jsx)(p.ZP,{muted:!0,small:!0,children:i}),i&&"string"!==typeof i&&i]}),(0,g.jsx)(a.Z,{mr:m.cd}),(0,g.jsxs)(o.Z,{flex:1,justifyContent:"flex-end",children:[t,x&&(0,g.jsx)(f.Z,b({afterIcon:(0,g.jsx)(v.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:j.Z,alignRight:!0,autoComplete:"off",large:c,noBackground:!0,noBorder:!0,fullWidth:!0,paddingHorizontal:0,paddingVertical:0,setContentOnMount:!0},x)),u&&(0,g.jsx)(s.Z,b(b({},u),{},{afterIcon:(0,g.jsx)(v._M,{}),afterIconSize:j.Z,alignRight:!0,autoComplete:"off",large:c,noBackground:!0,noBorder:!0,paddingHorizontal:0,paddingVertical:0,setContentOnMount:!0,children:null===u||void 0===u||null===(n=u.options)||void 0===n?void 0:n.map((function(e){var n=e.label,t=e.value;return(0,g.jsx)("option",{value:t,children:n||t},t)}))})),y&&(0,g.jsx)(h.Z,{checked:!(null===y||void 0===y||!y.checked),compact:!0,onCheck:null===y||void 0===y?void 0:y.onCheck})]})]})})},y=function(e){var n=e.children,t=e.description,u=e.headerChildren,s=e.title;return(0,g.jsxs)(c.Z,{noPadding:!0,children:[(0,g.jsx)(a.Z,{p:m.cd,children:(0,g.jsxs)(l.ZP,{alignItems:"center",children:[(0,g.jsxs)(o.Z,{flex:1,flexDirection:"column",children:[(0,g.jsx)(d.Z,{level:4,children:s}),t&&"string"===typeof t&&(0,g.jsx)(a.Z,{mt:1,children:(0,g.jsx)(p.ZP,{muted:!0,children:t})}),t&&"string"!==typeof t&&t]}),u]})}),i.Children.map(n,(function(e,n){return(0,g.jsxs)("div",{children:[(0,g.jsx)(r.Z,{light:!0}),e]},"".concat(s,"-").concat(n))}))]})}},8193:function(e,n,t){t.d(n,{N:function(){return c},Z:function(){return d}});var i=t(38626),r=t(44897),o=t(42631),l=t(70515),d=2*l.iI,c=i.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-1ck7mzt-0"})(["border-radius:","px;padding:","px;",""],o.n_,l.cd*l.iI,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).codeArea,";\n ")}))}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3437],{94629:function(e,n,t){t.d(n,{Z:function(){return O}});var o=t(82394),i=t(21831),r=t(82684),l=t(50724),c=t(82555),d=t(97618),a=t(70613),u=t(79626),s=t(68899),p=t(28598);function h(e,n){var t=e.children,o=e.noPadding;return(0,p.jsx)(s.HS,{noPadding:o,ref:n,children:t})}var f=r.forwardRef(h),v=t(62547),m=t(82571),g=t(98464),x=t(77417),j=t(46684),b=t(70515),y=t(53808),Z=t(19183);function _(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function P(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?_(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):_(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function k(e,n){e.addProjectBreadcrumbToCustomBreadcrumbs;var t=e.after,o=e.afterHeader,h=e.afterHidden,_=e.afterWidth,k=e.afterWidthOverride,O=e.appendBreadcrumbs,S=e.before,E=e.beforeWidth,I=e.breadcrumbs,w=e.children,C=e.errors,R=e.headerMenuItems,A=e.headerOffset,T=e.hideAfterCompletely,N=e.mainContainerHeader,D=e.navigationItems,L=e.setAfterHidden,U=e.setErrors,B=e.subheaderChildren,H=e.subheaderNoPadding,M=e.title,F=e.uuid,W=(0,Z.i)().width,G="dashboard_after_width_".concat(F),V="dashboard_before_width_".concat(F),Y=(0,r.useRef)(null),Q=(0,r.useState)(k?_:(0,y.U2)(G,_)),z=Q[0],K=Q[1],q=(0,r.useState)(!1),X=q[0],J=q[1],$=(0,r.useState)(S?Math.max((0,y.U2)(V,E),13*b.iI):null),ee=$[0],ne=$[1],te=(0,r.useState)(!1),oe=te[0],ie=te[1],re=(0,r.useState)(null)[1],le=(0,x.Z)().project,ce=[];I&&ce.push.apply(ce,(0,i.Z)(I)),null!==I&&void 0!==I&&I.length&&!O||!le||null!==I&&void 0!==I&&I.length||ce.unshift({bold:!O,label:function(){return M}}),(0,r.useEffect)((function(){null===Y||void 0===Y||!Y.current||X||oe||null===re||void 0===re||re(Y.current.getBoundingClientRect().width)}),[X,z,oe,ee,Y,re,W]),(0,r.useEffect)((function(){X||(0,y.t8)(G,z)}),[h,X,z,G]),(0,r.useEffect)((function(){oe||(0,y.t8)(V,ee)}),[oe,ee,V]);var de=(0,g.Z)(_);return(0,r.useEffect)((function(){k&&de!==_&&K(_)}),[k,_,de]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(a.Z,{title:M}),(0,p.jsx)(u.Z,{breadcrumbs:ce,menuItems:R}),(0,p.jsxs)(s.Nk,{ref:n,children:[0!==(null===D||void 0===D?void 0:D.length)&&(0,p.jsx)(s.lm,{showMore:!0,children:(0,p.jsx)(m.Z,{navigationItems:D,showMore:!0})}),(0,p.jsx)(d.Z,{flex:1,flexDirection:"column",children:(0,p.jsxs)(v.Z,{after:t,afterHeader:o,afterHeightOffset:j.Mz,afterHidden:h,afterMousedownActive:X,afterWidth:z,before:S,beforeHeightOffset:j.Mz,beforeMousedownActive:oe,beforeWidth:s.k1+(S?ee:0),headerOffset:A,hideAfterCompletely:!L||T,leftOffset:S?s.k1:null,mainContainerHeader:N,mainContainerRef:Y,setAfterHidden:L,setAfterMousedownActive:J,setAfterWidth:K,setBeforeMousedownActive:ie,setBeforeWidth:ne,children:[B&&(0,p.jsx)(f,{noPadding:H,children:B}),w]})})]}),C&&(0,p.jsx)(l.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===U||void 0===U?void 0:U(null)},children:(0,p.jsx)(c.Z,P(P({},C),{},{onClose:function(){return null===U||void 0===U?void 0:U(null)}}))})]})}var O=r.forwardRef(k)},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),h=t(82684),f=t(69864),v=t(34376),m=t(32013),g=t(98777),x=t(71180),j=t(31882),b=t(97618),y=t(55485),Z=t(14466),_=t(48670),P=t(88543),k=t(38276),O=t(30160),S=t(35686),E=t(72473),I=t(8193),w=t(70515),C=t(81728),R=t(3917),A=t(55283),T=t(50178),N=t(86735),D=t(72619),L=t(44085),U=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 M(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 G=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,h.useRef)(null),f=(0,h.useState)(),v=f[0],m=f[1];(0,h.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,h.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,h.useMemo)((function(){return{alignItems:"center",justifyContent:d?"flex-start":"flex-end"}}),[d]),j=(0,h.useMemo)((function(){var e=(0,B.jsx)(O.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",M(M({},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(Z.t4).map((function(e){return(0,B.jsx)("option",{value:e,children:e.toLowerCase()},e)}))});return(0,B.jsxs)(y.ZP,M(M({},g),{},{children:[d?n:e,(0,B.jsx)(k.Z,{mr:1}),d?e:n]}))}),[l,d,g,s]),b=(0,h.useMemo)((function(){var e=(0,B.jsx)(O.ZP,{default:!0,small:!0,children:"Get value from"}),n=F===String(i)||!o&&r,t=(0,B.jsxs)(L.Z,M(M({},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:n?F:o,children:[(0,B.jsx)("option",{value:F,children:"Custom value"}),Object.values(Z.XG).map((function(e){return(0,B.jsx)("option",{value:e,children:e.toLowerCase()},e)}))]})),l=n&&(0,B.jsxs)(B.Fragment,{children:[!d&&(0,B.jsx)(k.Z,{mr:1}),(0,B.jsx)(U.Z,M(M({},W),{},{onChange:function(e){return s((0,c.Z)({},d?"right_value":"left_value",e.target.value))},value:r||""})),d&&(0,B.jsx)(k.Z,{mr:1})]});return(0,B.jsxs)(y.ZP,M(M({},g),{},{children:[!d&&e,d&&l,d&&t,(0,B.jsx)(k.Z,{mr:1}),!d&&t,!d&&l,d&&e]}))}),[o,i,r,u,g,s]),_=(0,h.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]),P=(0,h.useMemo)((function(){var e=(0,B.jsx)(O.ZP,{default:!0,small:!0,children:"Value extraction keys"}),i=(0,B.jsx)(U.Z,M(M({},W),{},{buttonAfter:!d&&_,buttonAfterWidth:d||"undefined"===typeof v?null:v+10,buttonBefore:d&&_,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,M(M({},g),{},{children:[d?i:e,(0,B.jsx)(k.Z,{mr:1}),d?e:i]})),(null===t||void 0===t?void 0:t.length)>=1&&(0,B.jsx)(k.Z,{mt:1,children:(0,B.jsxs)(y.ZP,M(M({},g),{},{children:[(0,B.jsx)(O.ZP,{default:!0,monospace:!0,xsmall:!0,children:o}),!(null!==t&&void 0!==t&&t.length)&&(0,B.jsxs)(O.ZP,{monospace:!0,muted:!0,xsmall:!0,children:["['",(0,B.jsx)(O.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)(O.ZP,{monospace:!0,muted:!0,xsmall:!0,children:["['",(0,B.jsx)(O.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)(E.x8,{danger:!0,size:1.25*w.iI}),(0,B.jsx)("div",{style:{marginRight:2}}),(0,B.jsx)(O.ZP,{default:!0,xsmall:!0,children:"Delete key"})]})})]}))})]})}),[v,_,n,t,o,d,g]);return(0,B.jsxs)(B.Fragment,{children:[j,(0,B.jsx)(k.Z,{mt:1}),b,(0,B.jsx)(k.Z,{mt:1}),o&&F!==String(i)&&P]})},V=t(65956),Y=t(44897),Q=t(61896),z=1.25*w.iI,K=1.5*w.iI,q=w.iI/4,X=.75*w.iI,J=w.iI/2,$=(0,s.css)([""," ",""],(function(e){return!e.default&&"\n background-color: ".concat((e.theme.accent||Y.Z.accent).purple,";\n ")}),(function(e){return e.default&&"\n background-color: ".concat((e.theme.content||Y.Z.content).muted,";\n ")})),ee=s.default.div.withConfig({displayName:"indexstyle__LabelStyle",componentId:"sc-1v7t9a0-0"})(["border-radius:100px;padding:","px ","px;",""],q,K,(function(e){return"\n background-color: ".concat((e.theme.background||Y.Z.background).chartBlock,";\n border: ").concat(1,"px solid ").concat((e.theme.interactive||Y.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*w.iI,z,z,(function(e){return"\n border: 1px solid ".concat((e.theme.interactive||Y.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+K),w.iI/4,J,J,w.iI/4+1),oe=s.default.div.withConfig({displayName:"indexstyle__VerticalLineStyle",componentId:"sc-1v7t9a0-3"})(["",";width:","px;margin-right:","px;"," ",""],$,X,K+1+z/2-X/2,(function(e){return e.last&&"\n height: calc(50% - ".concat(q+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,h.useRef)(null),s=(0,h.useState)(null),p=s[0],f=s[1],v=(0,h.useState)(null),m=v[0],g=v[1],j=(0,h.useState)(null),_=j[0],P=j[1],S=(0,h.useState)(null),I=S[0],C=S[1],R=(0,h.useState)(null),A=(R[0],R[1]),T=(l.and_or_operator,l.left_object_keys),N=l.left_object_type,D=l.left_value,U=l.left_value_type,H=l.operator,M=l.right_object_keys,F=l.right_object_type,W=l.right_value,Y=l.right_value_type;(0,h.useEffect)((function(){var e,n;A(null===u||void 0===u||null===(e=u.current)||void 0===e||null===(n=e.getBoundingClientRect())||void 0===n?void 0:n.height)}),[]),(0,h.useEffect)((function(){var e,n;A(null===u||void 0===u||null===(e=u.current)||void 0===e||null===(n=e.getBoundingClientRect())||void 0===n?void 0:n.height)}),[N,F]);var Q=(0,h.useMemo)((function(){if(!n)return null;var e=(0,B.jsx)(O.ZP,{bold:!0,center:!0,monospace:!0,uppercase:!0,children:n});return(0,B.jsx)(te,{default:Z.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:Z.YB.OR===n,last:!0}),(0,B.jsx)(ee,{children:(0,B.jsxs)(y.ZP,{alignItems:"center",children:[(0,B.jsx)(O.ZP,{monospace:!0,children:d}),(0,B.jsx)(k.Z,{mr:1}),(0,B.jsx)(ne,{default:Z.YB.OR===n})]})}),!i&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(oe,{default:Z.YB.OR===n}),Q,(0,B.jsx)(oe,{default:Z.YB.OR===n})]})]}),(0,B.jsx)(k.Z,{mr:w.cd}),(0,B.jsx)(b.Z,{flex:1,children:(0,B.jsxs)(y.ZP,{flexDirection:"column",fullWidth:!0,ref:u,children:[(0,B.jsxs)(V.Z,{dark:!!(r%2),children:[(0,B.jsxs)(y.ZP,{children:[(0,B.jsxs)(b.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:[!N&&"undefined"===typeof D&&(0,B.jsx)(O.ZP,{monospace:!0,muted:!0,small:!0,children:"Left expression"}),!N&&D&&(0,B.jsx)(O.ZP,{default:!0,monospace:!0,small:!0,children:Z.t4.STRING===(null===U||void 0===U?void 0:U.value_data_type)?"'".concat(D,"'"):D}),N&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(O.ZP,{default:!0,monospace:!0,small:!0,children:N}),!(null!==T&&void 0!==T&&T.length)&&(0,B.jsxs)(O.ZP,{monospace:!0,muted:!0,small:!0,children:["['",(0,B.jsx)(O.ZP,{default:!0,inline:!0,monospace:!0,small:!0,children:"..."}),"']"]}),null===T||void 0===T?void 0:T.map((function(e){return(0,B.jsxs)(O.ZP,{monospace:!0,muted:!0,small:!0,children:["['",(0,B.jsx)(O.ZP,{default:!0,inline:!0,monospace:!0,small:!0,children:e}),"']"]})}))]})]}),(0,B.jsx)(k.Z,{mr:1}),(0,B.jsx)(O.ZP,{default:!0,monospace:!0,small:!0,children:H?Z.N_[H]:"operator"}),(!H||!Z.i9.includes(H))&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(k.Z,{mr:1}),(0,B.jsxs)(y.ZP,{alignItems:"center",justifyContent:"flex-start",children:[!F&&"undefined"===typeof W&&(0,B.jsx)(O.ZP,{monospace:!0,muted:!0,small:!0,children:"Right expression"}),!F&&W&&(0,B.jsx)(O.ZP,{default:!0,monospace:!0,small:!0,children:Z.t4.STRING===(null===Y||void 0===Y?void 0:Y.value_data_type)?"'".concat(W,"'"):W}),F&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(O.ZP,{default:!0,monospace:!0,small:!0,children:F}),!(null!==M&&void 0!==M&&M.length)&&(0,B.jsxs)(O.ZP,{monospace:!0,muted:!0,small:!0,children:["['",(0,B.jsx)(O.ZP,{default:!0,inline:!0,monospace:!0,small:!0,children:"..."}),"']"]}),null===M||void 0===M?void 0:M.map((function(e){return(0,B.jsxs)(O.ZP,{monospace:!0,muted:!0,small:!0,children:["['",(0,B.jsx)(O.ZP,{default:!0,inline:!0,monospace:!0,small:!0,children:e}),"']"]})}))]})]})]})]}),(0,B.jsx)(k.Z,{mb:w.cd}),(0,B.jsxs)(y.ZP,{alignItems:"center",children:[(0,B.jsx)(b.Z,{flex:1,flexDirection:"column",children:(0,B.jsx)(G,{leftKey:m,leftObjectKeys:T,leftObjectType:N,leftObjectTypeState:p,leftValue:D,leftValueType:U,setLeftKey:g,setLeftObjectTypeState:f,updatePredicate:a})}),(0,B.jsx)(k.Z,{mr:w.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(Z.W6).map((function(e){return(0,B.jsx)("option",{value:e,children:Z.N_[e]},e)}))})}),(0,B.jsx)(k.Z,{mr:w.cd}),(0,B.jsx)(b.Z,{flex:1,flexDirection:"column",children:(0,B.jsx)(G,{leftKey:I,leftObjectKeys:M,leftObjectType:F,leftObjectTypeState:_,leftValue:W,leftValueType:Y,rightAligned:!0,setLeftKey:C,setLeftObjectTypeState:P,updatePredicate:a})})]})]}),(0,B.jsx)("div",{children:(0,B.jsx)(x.ZP,{beforeIcon:(0,B.jsx)(E.rF,{muted:!0,size:1.25*w.iI}),compact:!0,onClick:function(){return c()},small:!0,children:(0,B.jsxs)(O.ZP,{default:!0,monospace:!0,small:!0,children:["Delete ",d]})})})]}),t]}),!i&&(0,B.jsx)(k.Z,{mb:w.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:Z.YB.AND,left_value_type:{value_data_type:Z.t4.STRING},operator:Z.W6.EQUALS,right_value_type:{value_data_type:Z.t4.STRING}};var de=function(e){var n=e.index,t=e.level,o=e.predicate,i=e.renderPredicate,r=e.setPredicate,c=(0,h.useMemo)((function(){return(null===o||void 0===o?void 0:o.predicates)||[]}),[o]),d=((0,h.useCallback)((function(e){r({predicates:e})}),[r]),(0,h.useCallback)((function(){r({predicates:(c||[]).concat(ce)})}),[c,r])),a=(0,h.useCallback)((function(e,n){var t=(0,l.Z)(c);t[n]=e,r({predicates:t})}),[c,r]),u=(0,h.useMemo)((function(){return(null===c||void 0===c?void 0:c.length)||0}),[c]),s=(0,h.useCallback)((function(e,n){if(!(e<0)){var t=(0,C.bH)()[n];return 0===e||(t=t.toLowerCase(),e>=2&&(t="".concat(t).concat(e-1))),t}}),[]),p=(0,h.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,N.oM)(c,n)}))},title:s(t+1,n),updatePredicate:d,children:(0,B.jsx)(k.Z,{mt:(null===e||void 0===e||null===(l=e.predicates)||void 0===l?void 0:l.length)>=1?w.cd:0,children:i({index:n,level:t+1,predicate:e,renderPredicate:i,setPredicate:d})})},"predicate-".concat(n))})),(0,B.jsx)(k.Z,{mt:w.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(Z.YB).map((function(e){return(0,B.jsx)("option",{value:e,children:(Z.YB.OR===e?"".concat(e," "):e).toUpperCase()},e)}))}),(0,B.jsx)(k.Z,{mr:1})]}),(0,B.jsxs)(x.ZP,{compact:t>=0,beforeIcon:(0,B.jsx)(E.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 he(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 fe(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?he(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):he(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,U,H,M,F,W,G,V,Y,Q,z,K,q,X,J,$,ee,ne,te,oe=e.isNew,ie=e.operationType,re=e.resourceType,le=e.uuid,ce=(0,se.qB)(),de=(0,T.PR)(),he=(0,v.useRouter)(),ve="GlobalHookDetail/".concat(le),me=(0,h.useContext)(s.ThemeContext),ge=(0,h.useState)(null),xe=ge[0],je=ge[1],be=(0,h.useState)(!1),ye=be[0],Ze=be[1],_e=(0,h.useState)(ie),Pe=_e[0],ke=(_e[1],(0,h.useState)(re)),Oe=ke[0],Se=(ke[1],(0,pe.VI)(null,{},[],{uuid:ve})),Ee=(0,d.Z)(Se,1)[0],Ie=(0,h.useMemo)((function(){return(0,ue.hB)({include_operation_types:1,include_resource_types:1,include_snapshot_validation:1,operation_type:"undefined"===typeof Pe?null:Pe,resource_type:"undefined"===typeof Oe?null:Oe})}),[Pe,Oe]),we=S.ZP.global_hooks.detail(oe?"__new__":le,Ie).data,Ce=(0,h.useMemo)((function(){return null===we||void 0===we?void 0:we.global_hook}),[we]),Re=(0,h.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}),Ee({errors:t,response:l})}}}),[]),Ae=(0,f.Db)(S.ZP.global_hooks.useCreate(),{onSuccess:function(e){return(0,D.wD)(e,fe({callback:function(e){var n=e.global_hook;he.replace("/global-hooks/".concat(n.uuid,"?operation_type=").concat(n.operation_type,"&resource_type=").concat(n.resource_type))}},Re))}}),Te=(0,d.Z)(Ae,2),Ne=Te[0],De=Te[1].isLoading,Le=(0,f.Db)(S.ZP.global_hooks.useUpdate(null===Ce||void 0===Ce?void 0:Ce.uuid,Ie),{onSuccess:function(e){return(0,D.wD)(e,fe({callback:function(e){var n=e.global_hook;Je((function(e){return fe(fe({},e),n)})),p.Am.success("Global hook changes successfully saved.",{position:p.Am.POSITION.BOTTOM_RIGHT,toastId:"global-hooks-success-".concat(n.uuid)})}},Re))}}),Ue=(0,d.Z)(Le,2),Be=Ue[0],He=Ue[1].isLoading,Me=(0,f.Db)((function(e){var n=e.pipeline;return S.ZP.global_hooks.useUpdate(null===Ce||void 0===Ce?void 0:Ce.uuid,Ie)({global_hook:{pipeline:n,snapshot:1}})}),{onSuccess:function(e){return(0,D.wD)(e,fe({callback:function(e){var n=e.global_hook;Je((function(e){return fe(fe({},e),{},{metadata:fe(fe({},null===e||void 0===e?void 0:e.metadata),null===n||void 0===n?void 0:n.metadata),pipeline:fe(fe({},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)})}},Re))}}),Fe=(0,d.Z)(Me,2),We=Fe[0],Ge=Fe[1].isLoading,Ve=(0,f.Db)(S.ZP.global_hooks.useDelete(null===Ce||void 0===Ce?void 0:Ce.uuid,Ie),{onSuccess:function(e){return(0,D.wD)(e,fe({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)}),he.replace("/global-hooks")}},Re))}}),Ye=(0,d.Z)(Ve,2),Qe=Ye[0],ze=Ye[1].isLoading,Ke=S.ZP.pipelines.list().data,qe=(0,h.useMemo)((function(){return(0,N.YC)((null===Ke||void 0===Ke?void 0:Ke.pipelines)||[],(function(e){return e.name}))}),[Ke]),Xe=(0,h.useMemo)((function(){return(0,N.HK)(qe||[],(function(e){return e.uuid}))}),[qe]),Je=(0,h.useCallback)((function(e){je(e),Ze(!0)}),[je,Ze]);(0,h.useEffect)((function(){Ce&&!xe&&je(Ce)}),[xe,Ce,je]);var $e=(0,h.useMemo)((function(){return null!==xe&&void 0!==xe&&xe.operation_type&&null!==xe&&void 0!==xe&&xe.resource_type?"".concat((0,C.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,h.useMemo)((function(){var e;return null===Xe||void 0===Xe?void 0:Xe[null===xe||void 0===xe||null===(e=xe.pipeline)||void 0===e?void 0:e.uuid]}),[xe,Xe]),nn=(0,h.useMemo)((function(){return(null===en||void 0===en?void 0:en.blocks)||[]}),[en]),tn=(0,h.useMemo)((function(){return(0,N.HK)(nn||[],(function(e){return e.uuid}))}),[nn]),on=(0,h.useMemo)((function(){return(null===xe||void 0===xe?void 0:xe.outputs)||[]}),[xe]),rn=(0,h.useCallback)((function(e,n){var t=(0,l.Z)(on||[]);t[n]=e,Je((function(e){return fe(fe({},e),{},{outputs:t})}))}),[on,Je]),ln=(0,h.useMemo)((function(){return(0,B.jsx)(x.ZP,{beforeIcon:(0,B.jsx)(E.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 fe(fe({},e),{},{outputs:((null===e||void 0===e?void 0:e.outputs)||[]).concat({block:{uuid:null},key:Z.TT.PAYLOAD})})}))},secondary:!0,children:"Add block output"})}),[on,Je]),cn=(0,h.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,{block:!0,openNewWindow:!0,children:(0,B.jsx)(O.ZP,{color:(0,A.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)(O.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)(k.Z,{mr:1}),(0,B.jsx)(E.Kw,{muted:!0}),(0,B.jsx)(k.Z,{mr:1}),(0,B.jsxs)(O.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)(O.ZP,{default:!0,inline:!0,monospace:!0,children:["['",e,"']"]})})))]})]}),titleXPadding:w.cd*w.iI,titleYPadding:w.cd*w.iI,children:[(0,B.jsx)(P.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(fe(fe({},e),{},{block:fe(fe({},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)(P.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(fe(fe({},e),{},{key:t.target.value}),n)},options:null===(t=Object.values(Z.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)(P.S,{title:"Additional dictionary keys",description:(0,B.jsxs)(O.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(fe(fe({},e),{},{keyMore:t.target.value}),n)},value:l},children:[null===c||void 0===c?void 0:c.map((function(t){return(0,B.jsx)(k.Z,{ml:1,children:(0,B.jsx)(j.Z,{border:!0,label:t,monospace:!0,onClick:function(){rn(fe(fe({},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)(k.Z,{mr:w.cd}),l&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)(x.ZP,{compact:!0,onClick:function(){rn(fe(fe({},e),{},{keyMore:"",keys:(c||[]).concat(l)}),n)},small:!0,children:["Add key ",l]}),(0,B.jsx)(k.Z,{mr:w.cd})]})]},"keys-".concat(n)),(0,B.jsx)(P.S,{title:"Remove block output",children:(0,B.jsx)(x.ZP,{compact:!0,onClick:function(){return Je((function(e){return fe(fe({},e),{},{outputs:(0,N.oM)((null===e||void 0===e?void 0:e.outputs)||[],n)})}))},small:!0,children:"Remove"})})]})}))}),[nn,tn,on,en,rn]),dn=(0,h.useMemo)((function(){return(0,ue.GL)(xe||{},["conditions","operation_type","outputs","pipeline","predicate","resource_type","run_settings","stages","strategies"])}),[xe]),an=(0,h.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,h.useMemo)((function(){return null===xe||void 0===xe?void 0:xe.predicate}),[xe]),sn=(0,h.useMemo)((function(){return(0,B.jsx)(k.Z,{p:w.cd,children:ae({level:-1,predicate:un,renderPredicate:ae,setPredicate:function(e){return Je((function(n){return fe(fe({},n),{},{predicate:fe(fe({},e),{},{and_or_operator:Z.YB.OR})})}))}})})}),[un,Je]);return(0,B.jsxs)(k.Z,{mb:8,p:w.cd,children:[(0,B.jsxs)(P.Z,{title:"What to run hook for",children:[(0,B.jsx)(P.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 fe(fe({},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)(k.Z,{px:w.cd,children:(0,B.jsx)(O.ZP,{large:!0,monospace:!0,children:le})})}),(0,B.jsx)(P.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 fe(fe({},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,C.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)(P.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 fe(fe({},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,C.vg)(e),value:e}})),placeholder:"e.g. Update",value:null===xe||void 0===xe?void 0:xe.operation_type},title:"Operation type"}),!oe&&(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:w.cd*w.iI,titleYPadding:w.cd*w.iI,children:[(0,B.jsx)(k.Z,{p:w.cd,children:(0,B.jsxs)(O.ZP,{default:!0,children:["Add targeting conditions to determine what subset of ",null!==xe&&void 0!==xe&&xe.resource_type?(0,C._6)((0,C.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)(k.Z,{mb:w.cd}),(0,B.jsxs)(P.Z,{title:"When to run hook",children:[(0,B.jsx)(P.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(Z.SQ.BEFORE),onCheck:function(e){return Je((function(n){var t,o;return fe(fe({},n),{},{stages:e(null===n||void 0===n||null===(t=n.stages)||void 0===t?void 0:t.includes(Z.SQ.BEFORE))?Array.from(r(Set,[((null===n||void 0===n?void 0:n.stages)||[]).concat(Z.SQ.BEFORE)])):(null===n||void 0===n||null===(o=n.stages)||void 0===o?void 0:o.filter((function(e){return e!==Z.SQ.BEFORE})))||[]})}))}}}),(0,B.jsx)(P.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(Z.SQ.AFTER),onCheck:function(e){return Je((function(n){var t,o;return fe(fe({},n),{},{stages:e(null===n||void 0===n||null===(t=n.stages)||void 0===t?void 0:t.includes(Z.SQ.AFTER))?Array.from(r(Set,[((null===n||void 0===n?void 0:n.stages)||[]).concat(Z.SQ.AFTER)])):(null===n||void 0===n||null===(o=n.stages)||void 0===o?void 0:o.filter((function(e){return e!==Z.SQ.AFTER})))||[]})}))}}}),(0,B.jsx)(P.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(Z.sw.SUCCESS),onCheck:function(e){return Je((function(n){var t,o;return fe(fe({},n),{},{conditions:e(null===n||void 0===n||null===(t=n.conditions)||void 0===t?void 0:t.includes(Z.sw.SUCCESS))?Array.from(r(Set,[((null===n||void 0===n?void 0:n.conditions)||[]).concat(Z.sw.SUCCESS)])):(null===n||void 0===n||null===(o=n.conditions)||void 0===o?void 0:o.filter((function(e){return e!==Z.sw.SUCCESS})))||[]})}))}}}),(0,B.jsx)(P.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(Z.sw.FAILURE),onCheck:function(e){return Je((function(n){var t,o;return fe(fe({},n),{},{conditions:e(null===n||void 0===n||null===(t=n.conditions)||void 0===t?void 0:t.includes(Z.sw.FAILURE))?Array.from(r(Set,[((null===n||void 0===n?void 0:n.conditions)||[]).concat(Z.sw.FAILURE)])):(null===n||void 0===n||null===(o=n.conditions)||void 0===o?void 0:o.filter((function(e){return e!==Z.sw.FAILURE})))||[]})}))}}})]}),(0,B.jsx)(k.Z,{mb:w.cd}),(0,B.jsxs)(P.Z,{title:"Code to run",description:"When the current hook gets triggered, it will execute the associated pipeline.",children:[(0,B.jsx)(P.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 fe(fe({},n),{},{pipeline:fe(fe({},null===n||void 0===n?void 0:n.pipeline),{},{uuid:e.target.value})})}))},options:null===qe||void 0===qe?void 0:qe.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===(U=xe.pipeline)||void 0===U?void 0:U.uuid},children:(null===xe||void 0===xe||null===(H=xe.pipeline)||void 0===H?void 0:H.uuid)&&(0,B.jsx)(k.Z,{mr:2,children:(0,B.jsx)(u(),{as:"/pipelines/".concat(null===xe||void 0===xe||null===(M=xe.pipeline)||void 0===M?void 0:M.uuid,"/edit"),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,B.jsx)(_.Z,{block:!0,openNewWindow:!0,children:"View pipeline"})})})}),(0,B.jsxs)(P.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)(O.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)(O.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. 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!==(V=xe.pipeline)&&void 0!==V&&V.uuid?(0,B.jsx)(O.ZP,{default:!0,inline:!0,monospace:!0,small:!0,children:null===xe||void 0===xe||null===(Y=xe.pipeline)||void 0===Y?void 0:Y.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)(O.ZP,{default:!0,large:!0,children:null!==xe&&void 0!==xe&&null!==(K=xe.pipeline)&&void 0!==K&&K.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)(O.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)(k.Z,{p:w.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)(O.ZP,{muted:!0,rightAligned:!0,small:!0,children:["Last snapshot at ",(0,B.jsx)(O.ZP,{inline:!0,muted:!0,small:!0,monospace:!0,children:null===an||void 0===an?void 0:an.snapshotted_at})]}),(0,B.jsx)(k.Z,{mr:w.cd})]}),(0,B.jsx)(x.ZP,{disabled:!(null!==xe&&void 0!==xe&&null!==(q=xe.pipeline)&&void 0!==q&&q.uuid),loading:Ge,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)(k.Z,{mb:w.cd}),(0,B.jsxs)(P.Z,{title:"How to run hook",children:[(0,B.jsx)(P.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===(X=xe.strategies)||void 0===X?void 0:X.includes(Z.Ij.RAISE),onCheck:function(e){return Je((function(n){var t,o;return fe(fe({},n),{},{strategies:e(null===n||void 0===n||null===(t=n.strategies)||void 0===t?void 0:t.includes(Z.Ij.RAISE))?Array.from(r(Set,[((null===n||void 0===n?void 0:n.strategies)||[]).concat(Z.Ij.RAISE)])):(null===n||void 0===n||null===(o=n.strategies)||void 0===o?void 0:o.filter((function(e){return e!==Z.Ij.RAISE})))||[]})}))}}}),(0,B.jsx)(P.S,{title:"Execute hook with history and logging",description:(0,B.jsxs)(O.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 fe(fe({},n),{},{run_settings:fe(fe({},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)(P.S,{title:"Run hook asynchronously",description:(0,B.jsxs)(O.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 fe(fe({},n),{},{run_settings:fe(fe({},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)(k.Z,{mb:w.cd}),(0,B.jsxs)(P.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)(k.Z,{mt:1,children:(0,B.jsxs)(O.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)(k.Z,{ml:w.cd}),ln]}),children:[!(null!==on&&void 0!==on&&on.length)&&(0,B.jsx)(k.Z,{p:w.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)(k.Z,{mb:w.cd}),(0,B.jsxs)(P.Z,{title:"Metadata",children:[(0,B.jsx)(P.S,{title:"Last updated",children:(0,B.jsxs)(b.Z,{alignItems:"center",flex:1,justifyContent:"flex-end",children:[(0,B.jsx)(O.ZP,{large:!0,monospace:!0,muted:!0,children:null!==an&&void 0!==an&&an.updated_at?(0,R.XG)(null===an||void 0===an?void 0:an.updated_at,ce):"-"}),(0,B.jsx)(k.Z,{mr:w.cd}),(0,B.jsx)(E.Pf,{muted:!0,size:I.Z}),(0,B.jsx)(k.Z,{mr:1})]})}),(0,B.jsx)(P.S,{title:"Created at",children:(0,B.jsxs)(b.Z,{alignItems:"center",flex:1,justifyContent:"flex-end",children:[(0,B.jsx)(O.ZP,{large:!0,monospace:!0,muted:!0,children:null!==an&&void 0!==an&&an.created_at?(0,R.XG)(null===an||void 0===an?void 0:an.created_at,ce):"-"}),(0,B.jsx)(k.Z,{mr:w.cd}),(0,B.jsx)(E.Pf,{muted:!0,size:I.Z}),(0,B.jsx)(k.Z,{mr:1})]})}),(0,B.jsx)(P.S,{title:"Snapshotted at",children:(0,B.jsxs)(b.Z,{alignItems:"center",flex:1,justifyContent:"flex-end",children:[(0,B.jsx)(O.ZP,{large:!0,monospace:!0,muted:!0,children:null!==an&&void 0!==an&&an.snapshotted_at?(0,R.XG)(null===an||void 0===an?void 0:an.snapshotted_at,ce):"-"}),(0,B.jsx)(k.Z,{mr:w.cd}),(0,B.jsx)(E.Pf,{muted:!0,size:I.Z}),(0,B.jsx)(k.Z,{mr:1})]})}),(0,B.jsx)(P.S,{title:"Snapshot valid",children:(0,B.jsxs)(b.Z,{alignItems:"center",flex:1,justifyContent:"flex-end",children:[(0,B.jsx)(O.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)(k.Z,{mr:w.cd}),null!==an&&void 0!==an&&an.snapshot_valid?(0,B.jsx)(E.Jr,{size:I.Z,success:!0}):(0,B.jsx)(E.uy,{danger:!0,size:I.Z}),(0,B.jsx)(k.Z,{mr:1})]})}),(0,B.jsx)(P.S,{title:"Created by",children:(0,B.jsxs)(b.Z,{alignItems:"center",flex:1,justifyContent:"flex-end",children:[(0,B.jsx)(O.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)(k.Z,{mr:w.cd}),(0,B.jsx)(E.SC,{muted:!0,size:I.Z}),(0,B.jsx)(k.Z,{mr:1})]})})]})]}),(0,B.jsx)(k.Z,{mt:w.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)(k.Z,{mr:w.cd})]}),(0,B.jsxs)(b.Z,{flex:1,justifyContent:"flex-end",children:[(0,B.jsx)(x.ZP,{beforeIcon:(0,B.jsx)(E.Hd,{}),disabled:De||He||ze,onClick:function(){return he.push("/global-hooks")},secondary:!0,children:ye?"Cancel changes & go back":"Go back to all hooks"}),(0,B.jsx)(k.Z,{mr:w.cd}),(0,B.jsx)(x.ZP,{beforeIcon:(0,B.jsx)(E.vc,{}),disabled:ze,loading:De||He,onClick:function(){return(oe?Ne:Be)({global_hook:fe(fe({},dn),oe?{uuid:null===xe||void 0===xe?void 0:xe.uuid}:{})})},primary:!0,children:oe?"Create new global hook":"Save changes"})]})]})})]})}},88543:function(e,n,t){t.d(n,{S:function(){return y},Z:function(){return Z}});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),h=t(17488),f=t(69650),v=t(72473),m=t(8193),g=t(70515),x=t(28598);function j(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 b(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?j(Object(t),!0).forEach((function(n){(0,a.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):j(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,j=e.textInput,y=e.title,Z=e.toggleSwitch,_=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:_,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,j&&(0,x.jsx)(h.Z,b({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},j)),a&&(0,x.jsx)(u.Z,b(b({},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)}))})),Z&&(0,x.jsx)(f.Z,{checked:!(null===Z||void 0===Z||!Z.checked),compact:!0,onCheck:null===Z||void 0===Z?void 0:Z.onCheck})]})]})})},Z=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 ")}))},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 f},sw:function(){return d},t4:function(){return s}});var o,i,r,l,c,d,a,u,s,p,h=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="resource_parent",e.RESOURCE_PARENT_ID="resource_parent_id",e.RESOURCE_PARENT_TYPE="resource_parent_type",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 f=[p.NOT_PRESENT,p.PRESENT],v=(o={},(0,h.Z)(o,p.EQUALS,"=="),(0,h.Z)(o,p.GREATER_THAN,">"),(0,h.Z)(o,p.GREATER_THAN_OR_EQUALS,">="),(0,h.Z)(o,p.INCLUDES,"includes"),(0,h.Z)(o,p.LESS_THAN,"<"),(0,h.Z)(o,p.LESS_THAN_OR_EQUALS,"<="),(0,h.Z)(o,p.NOT_EQUALS,"!="),(0,h.Z)(o,p.NOT_INCLUDES,"not includes"),(0,h.Z)(o,p.NOT_PRESENT,"is not present"),(0,h.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,h=e.onClick,f=e.primary,v=e.small,m=e.xsmall;return(0,s.jsx)(p,{border:n,primary:f,small:v,xsmall:m,children:(0,s.jsx)(i.ZP,{basic:!0,disabled:o,noBackground:!0,noPadding:!0,onClick:h,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&&h&&(0,s.jsx)("div",{style:{marginLeft:2}}),!o&&h&&(0,s.jsx)(d.x8,{default:f,muted:!f,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),h=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 "})),f=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,j=e.header,b=e.headerHeight,y=e.headerIcon,Z=e.headerPaddingVertical,_=e.headerTitle,P=e.maxHeight,k=e.maxWidth,O=e.minWidth,S=e.noPadding,E=e.overflowVisible,I=e.subtitle,w=e.success;return(0,s.jsxs)(h,{borderless:n,dark:d,fullHeight:p,fullWidth:x,maxHeight:P,maxWidth:k,minWidth:O,overflowVisible:E,ref:o,success:w,children:[(j||_)&&(0,s.jsxs)(f,{headerPaddingVertical:Z,height:b,children:[j&&j,_&&(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:_})})]})})]}),(0,s.jsxs)(v,{maxHeight:P,noPadding:S,overflowVisible:E,ref:c,children:[I&&"string"===typeof I&&(0,s.jsx)(r.Z,{mb:2,children:(0,s.jsx)(l.ZP,{default:!0,children:I})}),I&&"string"!==typeof I&&I,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([[5457],{94629:function(e,n,r){r.d(n,{Z:function(){return T}});var t=r(82394),i=r(21831),o=r(82684),u=r(50724),c=r(82555),s=r(97618),l=r(70613),a=r(79626),d=r(68899),f=r(28598);function p(e,n){var r=e.children,t=e.noPadding;return(0,f.jsx)(d.HS,{noPadding:t,ref:n,children:r})}var b=o.forwardRef(p),h=r(62547),O=r(82571),g=r(98464),P=r(77417),S=r(46684),I=r(70515),v=r(53808),m=r(19183);function y(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function E(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?y(Object(r),!0).forEach((function(n){(0,t.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function j(e,n){e.addProjectBreadcrumbToCustomBreadcrumbs;var r=e.after,t=e.afterHeader,p=e.afterHidden,y=e.afterWidth,j=e.afterWidthOverride,T=e.appendBreadcrumbs,N=e.before,k=e.beforeWidth,R=e.breadcrumbs,A=e.children,M=e.errors,Z=e.headerMenuItems,_=e.headerOffset,w=e.hideAfterCompletely,C=e.mainContainerHeader,x=e.navigationItems,H=e.setAfterHidden,G=e.setErrors,D=e.subheaderChildren,Y=e.subheaderNoPadding,L=e.title,B=e.uuid,U=(0,m.i)().width,K="dashboard_after_width_".concat(B),W="dashboard_before_width_".concat(B),F=(0,o.useRef)(null),q=(0,o.useState)(j?y:(0,v.U2)(K,y)),z=q[0],V=q[1],J=(0,o.useState)(!1),Q=J[0],$=J[1],X=(0,o.useState)(N?Math.max((0,v.U2)(W,k),13*I.iI):null),ee=X[0],ne=X[1],re=(0,o.useState)(!1),te=re[0],ie=re[1],oe=(0,o.useState)(null)[1],ue=(0,P.Z)().project,ce=[];R&&ce.push.apply(ce,(0,i.Z)(R)),null!==R&&void 0!==R&&R.length&&!T||!ue||null!==R&&void 0!==R&&R.length||ce.unshift({bold:!T,label:function(){return L}}),(0,o.useEffect)((function(){null===F||void 0===F||!F.current||Q||te||null===oe||void 0===oe||oe(F.current.getBoundingClientRect().width)}),[Q,z,te,ee,F,oe,U]),(0,o.useEffect)((function(){Q||(0,v.t8)(K,z)}),[p,Q,z,K]),(0,o.useEffect)((function(){te||(0,v.t8)(W,ee)}),[te,ee,W]);var se=(0,g.Z)(y);return(0,o.useEffect)((function(){j&&se!==y&&V(y)}),[j,y,se]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(l.Z,{title:L}),(0,f.jsx)(a.Z,{breadcrumbs:ce,menuItems:Z}),(0,f.jsxs)(d.Nk,{ref:n,children:[0!==(null===x||void 0===x?void 0:x.length)&&(0,f.jsx)(d.lm,{showMore:!0,children:(0,f.jsx)(O.Z,{navigationItems:x,showMore:!0})}),(0,f.jsx)(s.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(h.Z,{after:r,afterHeader:t,afterHeightOffset:S.Mz,afterHidden:p,afterMousedownActive:Q,afterWidth:z,before:N,beforeHeightOffset:S.Mz,beforeMousedownActive:te,beforeWidth:d.k1+(N?ee:0),headerOffset:_,hideAfterCompletely:!H||w,leftOffset:N?d.k1:null,mainContainerHeader:C,mainContainerRef:F,setAfterHidden:H,setAfterMousedownActive:$,setAfterWidth:V,setBeforeMousedownActive:ie,setBeforeWidth:ne,children:[D&&(0,f.jsx)(b,{noPadding:Y,children:D}),A]})})]}),M&&(0,f.jsx)(u.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===G||void 0===G?void 0:G(null)},children:(0,f.jsx)(c.Z,E(E({},M),{},{onClose:function(){return null===G||void 0===G?void 0:G(null)}}))})]})}var T=o.forwardRef(j)},28795:function(e,n,r){var t;r.d(n,{B:function(){return i},M:function(){return t}}),function(e){e.BACKFILLS="backfills",e.BLOCK_RUNS="block_runs",e.DASHBOARD="dashboard",e.EDIT="edit",e.MONITOR="monitor",e.PIPELINE_LOGS="pipeline_logs",e.PIPELINE_RUNS="pipeline_runs",e.RUNS="runs",e.SETTINGS="settings",e.SYNCS="syncs",e.TRIGGERS="triggers"}(t||(t={}));var i="cancel_all_running_pipeline_runs"},75457:function(e,n,r){r.d(n,{Z:function(){return k}});var t=r(82394),i=r(21831),o=r(82684),u=r(34376),c=r(50724),s=r(94629),l=r(15338),a=r(82555),d=r(55485),f=r(85854),p=r(38276),b=r(35686),h=r(38626),O=r(44897),g=r(42631),P=r(70515),S=h.default.div.withConfig({displayName:"indexstyle__BannerStyle",componentId:"sc-1te3pmf-0"})(["border-radius:","px;padding:","px;"," "," ",""],g.n_,3*P.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||O.Z.shadow).small,";\n ")}),(function(e){return e.background&&"\n background: ".concat(e.background,";\n ")}),(function(e){return e.backgroundImage&&'\n background-image: url("'.concat(e.backgroundImage,'");\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n ')})),I=r(46684),v=r(85010),m=r(72619),y=r(19183),E=r(28598);function j(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function T(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?j(Object(r),!0).forEach((function(n){(0,t.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function N(e,n){var r=e.after,t=e.afterHidden,h=e.afterWidth,O=e.before,g=e.beforeWidth,j=e.breadcrumbs,N=e.buildSidekick,k=e.children,R=e.errors,A=e.headline,M=e.pageName,Z=e.pipeline,_=e.setErrors,w=e.subheader,C=e.subheaderBackground,x=e.subheaderBackgroundImage,H=e.subheaderButton,G=e.subheaderNoPadding,D=e.subheaderText,Y=e.title,L=e.uuid,B=(0,y.i)().height,U=(0,u.useRouter)().query.pipeline,K=null===Z||void 0===Z?void 0:Z.uuid,W=b.ZP.pipelines.detail(K,{includes_outputs:!1},{revalidateOnFocus:!1}).data,F=null===W||void 0===W?void 0:W.pipeline;(0,o.useEffect)((function(){(0,m.bB)(W,_)}),[W,_]);var q=(0,o.useMemo)((function(){return r||(N?N({height:B,heightOffset:I.Mz,pipeline:F}):null)}),[r,N,B,F]),z=h||(q?50*P.iI:null),V=(0,o.useMemo)((function(){var e=[];return F?(e.push.apply(e,[{label:function(){return"Pipelines"},linkProps:{href:"/pipelines"}}]),j?(e.push({label:function(){return F.uuid},linkProps:{as:"/pipelines/".concat(K,"/triggers"),href:"/pipelines/[pipeline]/triggers"}}),e.push.apply(e,(0,i.Z)(j)),e[e.length-1].bold=!0):e.push({bold:!0,label:function(){return F.name}})):null!==W&&void 0!==W&&W.error&&e.push({bold:!0,danger:!0,label:function(){return"Error loading pipeline"}}),e}),[j,null===W||void 0===W?void 0:W.error,F,K]);return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)(s.Z,{after:q,afterHidden:t,afterWidth:z,before:O,beforeWidth:g,breadcrumbs:V,navigationItems:(0,v.H)(M,F,U),ref:n,subheaderChildren:"undefined"!==typeof w&&w,subheaderNoPadding:G,title:F?Y?Y(F):F.name:null,uuid:L,children:[(H||D)&&(0,E.jsx)(p.Z,{mb:P.Mq,mt:P.cd,mx:P.cd,children:(0,E.jsx)(S,{background:C,backgroundImage:x,children:(0,E.jsxs)(d.ZP,{alignItems:"center",children:[H,D&&(0,E.jsx)(p.Z,{ml:3}),D]})})}),A&&(0,E.jsx)(p.Z,{p:P.cd,children:(0,E.jsxs)(p.Z,{mt:P.cd,px:P.cd,children:[(0,E.jsx)(f.Z,{level:5,children:A}),(0,E.jsx)(l.Z,{light:!0,mt:P.cd,short:!0})]})}),k]}),R&&(0,E.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===_||void 0===_?void 0:_(null)},children:(0,E.jsx)(a.Z,T(T({},R),{},{onClose:function(){return null===_||void 0===_?void 0:_(null)}}))})]})}var k=o.forwardRef(N)},85010:function(e,n,r){r.d(n,{H:function(){return c}});var t=r(57653),i=r(72473),o=r(28795),u=r(50178);function c(e,n,r){var c=(n||{}).uuid||r,s=[{Icon:i.Bf,id:o.M.TRIGGERS,isSelected:function(){return o.M.TRIGGERS===e},label:function(){return"Triggers"},linkProps:{as:"/pipelines/".concat(c,"/triggers"),href:"/pipelines/[pipeline]/triggers"}},{Icon:i.Pf,id:o.M.RUNS,isSelected:function(){return o.M.RUNS===e},label:function(){return"Runs"},linkProps:{as:"/pipelines/".concat(c,"/runs"),href:"/pipelines/[pipeline]/runs"}},{Icon:i.UL,id:o.M.PIPELINE_LOGS,isSelected:function(){return o.M.PIPELINE_LOGS===e},label:function(){return"Logs"},linkProps:{as:"/pipelines/".concat(c,"/logs"),href:"/pipelines/[pipeline]/logs"}},{Icon:i.ug,id:o.M.MONITOR,isSelected:function(){return o.M.MONITOR===e},label:function(){return"Monitor"},linkProps:{as:"/pipelines/".concat(c,"/monitors"),href:"/pipelines/[pipeline]/monitors"}}];return t.qL.PYTHON===(null===n||void 0===n?void 0:n.type)&&s.splice(2,0,{Icon:i.dE,id:o.M.BACKFILLS,isSelected:function(){return o.M.BACKFILLS===e},label:function(){return"Backfills"},linkProps:{as:"/pipelines/".concat(c,"/backfills"),href:"/pipelines/[pipeline]/backfills"}}),t.qL.INTEGRATION===(null===n||void 0===n?void 0:n.type)&&s.unshift({Icon:i.Nt,id:o.M.SYNCS,isSelected:function(){return o.M.SYNCS===e},label:function(){return"Syncs"},linkProps:{as:"/pipelines/".concat(c,"/syncs"),href:"/pipelines/[pipeline]/syncs"}}),(0,u.Ct)()||(s.unshift({Icon:i.EK,disabled:!c,id:o.M.EDIT,isSelected:function(){return o.M.EDIT===e},label:function(){return"Edit pipeline"},linkProps:{as:"/pipelines/".concat(c,"/edit"),href:"/pipelines/[pipeline]/edit"}}),s.push({Icon:i.JG,id:o.M.SETTINGS,isSelected:function(){return o.M.SETTINGS===e},label:function(){return"Pipeline settings"},linkProps:{as:"/pipelines/".concat(c,"/settings"),href:"/pipelines/[pipeline]/settings"}})),s.unshift({Icon:i.G6,id:o.M.DASHBOARD,isSelected:function(){return o.M.DASHBOARD===e},label:function(){return"Dashboard"},linkProps:{as:"/pipelines/".concat(c,"/dashboard"),href:"/pipelines/[pipeline]/dashboard"}}),s}},72098:function(e,n,r){var t;r.d(n,{U:function(){return t}}),function(e){e.PYSPARK="pysparkkernel",e.PYTHON3="python3"}(t||(t={}))},57653:function(e,n,r){r.d(n,{$1:function(){return h},G7:function(){return P},LM:function(){return S},Mj:function(){return I},QK:function(){return b},RH:function(){return g},a_:function(){return m},fj:function(){return y},kA:function(){return v},qL:function(){return c},r0:function(){return O}});var t,i,o,u,c,s=r(75582),l=r(82394),a=r(72473),d=r(72098);function f(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function p(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?f(Object(r),!0).forEach((function(n){(0,l.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}!function(e){e.INTEGRATION="integration",e.PYTHON="python",e.PYSPARK="pyspark",e.STREAMING="streaming"}(c||(c={}));var b,h,O,g=(t={},(0,l.Z)(t,c.INTEGRATION,"Integration"),(0,l.Z)(t,c.PYTHON,"Python"),(0,l.Z)(t,c.PYSPARK,"PySpark"),(0,l.Z)(t,c.STREAMING,"Streaming"),t),P=(i={},(0,l.Z)(i,c.INTEGRATION,"Integration"),(0,l.Z)(i,c.PYTHON,"Standard"),(0,l.Z)(i,c.PYSPARK,"PySpark"),(0,l.Z)(i,c.STREAMING,"Streaming"),i),S="all",I=(c.PYTHON,c.INTEGRATION,c.STREAMING,o={},(0,l.Z)(o,S,a.ie),(0,l.Z)(o,c.INTEGRATION,a.YC),(0,l.Z)(o,c.PYTHON,a.El),(0,l.Z)(o,c.STREAMING,a.dB),o);!function(e){e.ACTIVE="active",e.INACTIVE="inactive",e.NO_SCHEDULES="no_schedules",e.RETRY="retry",e.RETRY_INCOMPLETE_BLOCK_RUNS="retry_incomplete_block_runs"}(b||(b={})),function(e){e.GROUP="group_by",e.HISTORY_DAYS="from_history_days",e.NO_TAGS="no_tags",e.SEARCH="search",e.STATUS="status[]",e.TAG="tag[]",e.TYPE="type[]"}(h||(h={})),function(e){e.STATUS="status",e.TAG="tag",e.TYPE="type"}(O||(O={}));var v=[b.ACTIVE,b.INACTIVE,b.NO_SCHEDULES],m=(u={},(0,l.Z)(u,c.PYTHON,d.U.PYTHON3),(0,l.Z)(u,c.PYSPARK,d.U.PYSPARK),u),y=Object.entries(m).reduce((function(e,n){var r=(0,s.Z)(n,2),t=r[0],i=r[1];return p(p({},e),{},(0,l.Z)({},i,t))}),{})}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7936],{46978:function(e,n,t){t.d(n,{Cl:function(){return u},Nk:function(){return c},ZG:function(){return l}});var o=t(38626),r=t(44897),i=t(70515),l=1.5*i.iI,u=1*l+i.iI/2,c=o.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-uvd91-0"})([".row:hover{","}"],(function(e){return"\n background-color: ".concat((e.theme.interactive||r.Z.interactive).hoverBackground,";\n ")}))},97936:function(e,n,t){t.d(n,{Z:function(){return Fe}});var o,r,i=t(82394),l=t(75582),u=t(82684),c=t(38626),d=t(69864),a=t(44425),s=t(70374),f=t(78050),v=t(39867),p=t(89706),h=t(97618),m=t(30160),b=t(32929),g=t(72473),j="CUSTOM_EVENT_NAME_FOLDER_EXPAND",C=(o={},(0,i.Z)(o,p.Lu.CSV,g.iA),(0,i.Z)(o,p.Lu.JSON,g.EK),(0,i.Z)(o,p.Lu.MD,g.$B),(0,i.Z)(o,p.Lu.PY,g.Bf),(0,i.Z)(o,p.Lu.R,g.u$),(0,i.Z)(o,p.Lu.SH,g.oI),(0,i.Z)(o,p.Lu.SQL,g.vo),(0,i.Z)(o,p.Lu.TXT,g.KJ),(0,i.Z)(o,p.Lu.YAML,g.aV),(0,i.Z)(o,p.Lu.YML,g.aV),o),y=(r={},(0,i.Z)(r,p.Lu.CSV,"#C7CDDA"),(0,i.Z)(r,p.Lu.JSON,"#6B50D7"),(0,i.Z)(r,p.Lu.MD,"#9B6CA7"),(0,i.Z)(r,p.Lu.PY,"#FFE873"),(0,i.Z)(r,p.Lu.R,"#FF144D"),(0,i.Z)(r,p.Lu.SH,"#CBFE00"),(0,i.Z)(r,p.Lu.SQL,"#00758F"),(0,i.Z)(r,p.Lu.TXT,"#C7CDDA"),(0,i.Z)(r,p.Lu.YAML,"#95ECE2"),(0,i.Z)(r,p.Lu.YML,"#95ECE2"),r),w=t(46978),k=t(70515),x=t(85385),Z=t(53808),E=t(55283),D=t(53005),F=t(86735),O=t(81728),_=t(28598);function P(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 L(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,i.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 I="default_repo",S=c.default.div.withConfig({displayName:"Folder__ChildrenStyle",componentId:"sc-jv4kg5-0"})([".expanded_children{display:block;}.collapsed_children{display:none;}"]),R=c.default.div.withConfig({displayName:"Folder__ChevronStyle",componentId:"sc-jv4kg5-1"})([".expanded{.down{display:block;position:relative;}.right{display:none;position:absolute;}}.collapsed{.down{display:none;position:absolute;}.right{display:block;position:relative;}}"]);function T(e){var n=e.children,t=e.idleTimeout,o=(0,u.useState)(!1),r=o[0],i=o[1];return(0,u.useEffect)((function(){r&&i(!1);var e=requestIdleCallback((function(){return i(!0)}),{timeout:t});return function(){return cancelIdleCallback(e)}}),[t]),r?n:null}var N=function e(n){var t=n.allowEmptyFolders,o=n.allowSelectingFolders,r=n.containerRef,l=n.disableContextMenu,c=n.file,d=n.isFileDisabled,s=n.isInPipelinesFolder,P=n.isNotFolder,N=n.level,M=n.onClickFile,A=n.onClickFolder,B=n.onSelectBlockFile,U=n.onlyShowChildren,Y=n.openFile,Q=n.openSidekickView,V=n.reloadCount,z=n.renderAfterContent,G=n.selectFile,$=n.setContextItem,q=n.setCoordinates,H=n.setDraggingFile,W=n.setSelectedFile,X=n.theme,K=n.timeout,J=n.useRootFolder,ee=n.uuidCombined,ne=c.children,te=c.disabled,oe=c.name,re=c.parent,ie=(0,u.useMemo)((function(){return ne?(0,F.YC)(ne,(function(e){return e.children?0:1})):ne}),[ne]),le=(0,u.useMemo)((function(){return[].concat(ee||[]).concat(oe||I)}),[oe,ee,,]),ue=(0,u.useMemo)((function(){return null===le||void 0===le?void 0:le.join("/")}),[le]),ce=(0,Z.U2)(Z.lQ,{}),de=(0,u.useRef)(null),ae=(0,u.useRef)(null),se=(0,u.useRef)(ue in ce?ce[ue]:0===N),fe=(0,u.useRef)(0),ve=se.current;oe||t||(c.name=I);var pe=J?(0,D.a9)(c):(0,D.jN)(c),he=(0,u.useMemo)((function(){return!!ie&&!P}),[ie,P]),me=(0,u.useMemo)((function(){var e;return null===le||void 0===le||null===(e=le.find)||void 0===e?void 0:e.call(le,(function(e){return(0,O.C5)(e)in a.GJ}))}),[le]),be=(0,u.useMemo)((function(){return me?(0,O.C5)(me):null}),[me]),ge=(0,u.useMemo)((function(){return he&&me&&me===oe}),[me,he,oe]),je=(0,u.useMemo)((function(){return me&&!he&&(0,D.y)(oe)&&(0,D.o$)(oe,be)}),[be,me,he,oe]),Ce=(0,u.useMemo)((function(){return me?(0,E.qn)(be,{theme:X}).accent:null}),[be,me]),ye=oe===p.oy,we=(0,u.useMemo)((function(){return d?d(pe,ie):te||s&&"__init__.py"===oe||me&&"__init__.py"===oe}),[ie,te,,pe,me,d,s,oe]),ke=(0,u.useMemo)((function(){var e,n=g.iU;if(!he&&P)n=g.mH;else if(ye)n=g.vd;else if(oe===p.PF)n=g.GQ;else if(he)n=ge&&(null===b.iK||void 0===b.iK?void 0:b.iK[be])||g.Bu;else if(!oe&&t)n=g.mH;else if(s&&!he&&"metadata.yaml"===oe)n=g.B_;else if(null!==oe&&void 0!==oe&&oe.includes(".log"))n=g.UL;else if(!he){var o=(0,D.mD)(oe);o&&o in C&&(n=C[o],e=y[o])}return{IconEl:n,fileIconColor:e}}),[t,be,ge,he,s,P,N,oe]),xe=ke.IconEl,Ze=ke.fileIconColor,Ee=(0,u.useMemo)((function(){var e=v.Z;return a.tf.CHART===be&&(e=g.GQ),e}),[be]),De=(0,u.useCallback)((function(n){return null===n||void 0===n?void 0:n.map((function(n){return(0,_.jsx)(e,{allowEmptyFolders:t,allowSelectingFolders:o,containerRef:r,disableContextMenu:l,file:L(L({},n),{},{parent:c}),isFileDisabled:d,isNotFolder:null===n||void 0===n?void 0:n.isNotFolder,isInPipelinesFolder:s||ye,level:U?N:N+1,onClickFile:M,onClickFolder:A,onSelectBlockFile:B,openFile:Y,openSidekickView:Q,reloadCount:V,renderAfterContent:z,selectFile:G,setContextItem:$,setCoordinates:q,setDraggingFile:H,setSelectedFile:W,theme:X,timeout:K,useRootFolder:J,uuidCombined:le},"".concat(ue,"/").concat((null===n||void 0===n?void 0:n.name)||I,"-").concat(V))}))}),[t,o,ie,l,c,d,s,ye,N,M,A,B,U,Y,Q,V,z,G,$,q,H,W,J,ue,le]),Fe=(0,u.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(se.current="undefined"===typeof e||null===e?!se.current:e,de.current.className=se.current?"expanded_children":"collapsed_children",ae.current.className=se.current?"expanded":"collapsed",0===fe.current){var t=document.getElementById(de.current.id),o=(0,f.createRoot)(t);o.render((null===ie||void 0===ie?void 0:ie.length)>=1?(0,_.jsx)(T,{idleTimeout:n||1,children:De(ie)}):he?De(Oe):(0,_.jsx)("div",{}))}(0,Z.rQ)(Z.lQ,(0,i.Z)({},ue,se.current)),fe.current+=1}),[ie,he,ue]);(0,u.useEffect)((function(){var e=function(e){var n=e.detail,t=n.expand,o=(n.file,n.folder);he&&o&&null!==ue&&void 0!==ue&&ue.startsWith(null===o||void 0===o?void 0:o.uuid)&&((0,Z.rQ)(Z.lQ,(0,i.Z)({},ue,t)),Fe(t,100*N))};return window.addEventListener(j,e),function(){window.removeEventListener(j,e)}}),[he,N,Fe,ue]);var Oe=(0,u.useMemo)((function(){return[{disabled:!0,name:"Empty",parent:c,isNotFolder:!0,uuid:le}]}),[c,le]),_e=(0,u.useMemo)((function(){var e=[];return(0,F.w6)(N).forEach((function(n,t){var o,r=w.Cl-1;e.push((0,_.jsx)("div",{style:{borderLeft:"1px solid ".concat(null===X||void 0===X||null===(o=X.content)||void 0===o?void 0:o.disabled),height:22,marginLeft:r/2-2,paddingLeft:r/2+2}},"line-".concat(ue,"-").concat(t)))})),e}),[N,X,ue]);return(0,u.useEffect)((function(){setTimeout((function(){var e;if(ve&&0===(null===fe||void 0===fe?void 0:fe.current)&&null!==de&&void 0!==de&&null!==(e=de.current)&&void 0!==e&&e.id){var n;fe.current=1;var t=document.getElementById(null===de||void 0===de||null===(n=de.current)||void 0===n?void 0:n.id);try{(0,f.createRoot)(t).render((null===ie||void 0===ie?void 0:ie.length)>=1?(0,_.jsx)(T,{idleTimeout:100*N,children:De(ie)}):null!==ie&&void 0!==ie&&ie.length?null:he?De(Oe):(0,_.jsx)("div",{}))}catch(o){console.log(o)}}}),1)}),[]),(0,_.jsxs)(_.Fragment,{children:[!U&&(0,_.jsxs)("div",{className:"row",onClick:function(e){if(e.preventDefault(),!we){if((null===re||void 0===re?void 0:re.name)===p.PF){null===Q||void 0===Q||Q(x.cH.CHARTS);var n=(0,D.lr)(c);n&&(null===B||void 0===B||B(n.uuid,n.type,(0,D.jN)(c)))}var t=(0,D.V3)(c);if(ie)o?G(pe):Fe(),null===A||void 0===A||A(pe);else if(M)M(pe);else if(t)null===B||void 0===B||B(t.uuid,t.type,(0,D.jN)(c),{file:c,path:pe});else if(oe.match(p.xF))null===Y||void 0===Y||Y(pe);else{var r=(0,D.lr)(c);r&&(null===B||void 0===B||B(r.uuid,r.type,(0,D.jN)(c)))}}},onContextMenu:function(e){var n;clearTimeout(K.current),null!==r&&void 0!==r&&null!==(n=r.current)&&void 0!==n&&n.contains(e.target)&&!l&&(e.preventDefault(),q({x:e.pageX,y:e.pageY}),H(null),W(L(L({},c),{},{uuid:ue})))},onMouseDown:function(e){var n,t=c?(0,D.lr)(c,null,!0):null;null===r||void 0===r||null===(n=r.current)||void 0===n||!n.contains(e.target)||!t||(null===ie||void 0===ie?void 0:ie.length)>=1||l||we||s||(e.preventDefault(),clearTimeout(K.current),K.current=setTimeout((function(){q({x:e.pageX,y:e.pageY}),H(c),W(null)}),300))},style:{alignItems:"center",cursor:"default",display:"flex",minWidth:N*w.Cl+c.name.length*k.Fo+2*k.iI,paddingRight:k.iI/4},children:[(0,_.jsxs)(h.Z,{alignItems:"center",flex:1,children:[_e,(0,_.jsxs)(R,{children:[ie&&(0,_.jsxs)("div",{className:ve?"expanded":"collapsed",ref:ae,children:[(0,_.jsx)("div",{className:"down",children:(0,_.jsx)(g._M,{muted:!0,size:w.ZG})}),(0,_.jsx)("div",{className:"right",children:(0,_.jsx)(g._Q,{muted:!0,size:w.ZG})})]}),!ie&&(0,_.jsx)("div",{style:{width:w.ZG}})]}),(0,_.jsx)("div",{style:{marginLeft:k.iI/2,marginRight:k.iI/2},children:me&&!he&&je?(0,_.jsx)(Ee,{color:Ce,size:me&&!he?.7*w.ZG:w.ZG,square:!0}):(0,_.jsx)(xe,{fill:Ze||(ge?Ce:null),disabled:we,size:w.ZG})}),(0,_.jsx)(m.ZP,{default:!we,disabled:we,monospace:!0,small:!0,children:oe})]}),z&&z(c)]}),(0,_.jsx)(S,{children:(0,_.jsx)("div",{className:ve?"expanded_children":"collapsed_children",id:ue,ref:de})})]})},M=t(65186),A=t(71180),B=t(55485),U=t(93369),Y=t(65956),Q=t(38276),V=t(17488),z=t(35686),G=t(42122),$=t(72619);var q=function(e){var n=e.fetchFileTree,t=e.file,o=e.moveFile,r=e.onCancel,i=e.onCreateFile,c=e.selectedFolder,a=e.setErrors,s=(0,u.useRef)(null),f=(0,G.Qr)(t)?null:t,v=(0,u.useState)(f?(0,D.jN)(f,null,!0):""),p=v[0],h=v[1],m=(0,u.useState)(f?null===f||void 0===f?void 0:f.name:""),b=m[0],g=m[1];(0,u.useEffect)((function(){var e;null===s||void 0===s||null===(e=s.current)||void 0===e||e.focus()}),[]),(0,u.useEffect)((function(){c&&h((0,D.eV)(null===c||void 0===c?void 0:c.uuid))}),[c]);var j=(0,d.Db)(z.ZP.files.useCreate(),{onSuccess:function(e){return(0,$.wD)(e,{callback:function(e){var t=e.file;null===n||void 0===n||n(),r(),null===i||void 0===i||i(t)},onErrorCallback:function(e,n){return a({errors:n,response:e})}})}}),C=(0,l.Z)(j,1)[0],y=(0,d.Db)(z.ZP.files.useUpdate(f&&encodeURIComponent((0,D.jN)(f))),{onSuccess:function(e){return(0,$.wD)(e,{callback:function(){null===n||void 0===n||n(),r()},onErrorCallback:function(e,n){return a({errors:n,response:e})}})}}),w=(0,l.Z)(y,1)[0];return(0,_.jsxs)(Y.Z,{footer:(0,_.jsxs)(B.ZP,{children:[(0,_.jsxs)(U.ZP,{bold:!0,disabled:!b,inline:!0,onClick:function(){return f?w({file:{dir_path:p,name:b},file_json_only:!0}):C({file:{dir_path:p,name:b,overwrite:!1},file_json_only:!0})},primary:!0,tabIndex:0,uuid:"NewFile/create_file",children:[f?o?"Move":"Rename":"Create"," file"]}),(0,_.jsx)(Q.Z,{ml:1,children:(0,_.jsx)(A.ZP,{onClick:function(){return r()},tabIndex:0,children:"Cancel"})})]}),headerTitle:f?o?"Move file":"Rename file":"New file",minWidth:50*k.iI,children:[(0,_.jsx)(V.Z,{disabled:!!f&&!o,label:"Directory",monospace:!0,onChange:function(e){return h(e.target.value)},setContentOnMount:!0,value:p}),(0,_.jsx)(Q.Z,{mt:2,children:(0,_.jsx)(V.Z,{disabled:!!o,label:"Filename",monospace:!0,onChange:function(e){return g(e.target.value)},ref:s,required:!0,value:b})})]})},H=t(82359);var W=function(e){var n=e.fetchFileTree,t=e.file,o=e.moveFile,r=e.onCancel,i=e.onCreateFile,c=e.projectType,a=e.selectedFolder,s=e.setErrors,f=e.showError,v=(0,u.useRef)(null),p=(0,G.Qr)(t)?null:t,h=(0,u.useState)(p?(0,D.jN)(p,null,!0):""),m=h[0],b=h[1],g=(0,u.useState)(p?null===p||void 0===p?void 0:p.name:""),j=g[0],C=g[1];(0,u.useEffect)((function(){var e;null===v||void 0===v||null===(e=v.current)||void 0===e||e.focus()}),[]),(0,u.useEffect)((function(){a&&b((0,D.eV)(null===a||void 0===a?void 0:a.uuid))}),[a]);var y=(0,d.Db)(z.ZP.folders.useCreate(),{onSuccess:function(e){return(0,$.wD)(e,{callback:function(e){var t=e.file;null===n||void 0===n||n(),r(),null===i||void 0===i||i(t)},onErrorCallback:function(e,n){return s?s({errors:n,response:e}):f({errors:n,response:e})}})}}),w=(0,l.Z)(y,1)[0],x=(0,d.Db)(z.ZP.folders.useUpdate(p&&encodeURIComponent((0,D.jN)(p))),{onSuccess:function(e){return(0,$.wD)(e,{callback:function(){null===n||void 0===n||n(),r()},onErrorCallback:function(e,n){return s?s({errors:n,response:e}):f({errors:n,response:e})}})}}),Z=(0,l.Z)(x,1)[0],E=(0,d.Db)(z.ZP.projects.useCreate(),{onSuccess:function(e){return(0,$.wD)(e,{callback:function(){null===n||void 0===n||n(),r()},onErrorCallback:function(e,n){return s?s({errors:n,response:e}):f({errors:n,response:e})}})}}),F=(0,l.Z)(E,2),O=F[0],P=F[1].isLoading;return(0,_.jsxs)(Y.Z,{footer:(0,_.jsxs)(B.ZP,{children:[(0,_.jsxs)(U.ZP,{bold:!0,disabled:!j,inline:!0,loading:P,onClick:function(){return p?Z({folder:{name:j,path:m}}):c?O({project:{repo_path:m,type:c,uuid:j}}):w({folder:{name:j,overwrite:!1,path:m}})},primary:!0,tabIndex:0,uuid:"NewFolder/create_folder",children:[c&&"Create project",!c&&(0,_.jsxs)(_.Fragment,{children:[p?o?"Move":"Rename":"Create"," folder"]})]}),(0,_.jsx)(Q.Z,{ml:1,children:(0,_.jsx)(A.ZP,{onClick:function(){return r()},tabIndex:0,children:"Cancel"})})]}),headerTitle:p?o?"Move folder":"Rename folder":c?H.k.STANDALONE===c?"New Mage project":H.k.DBT===c?"New dbt project":"New project":"New folder",minWidth:50*k.iI,children:[(0,_.jsx)(V.Z,{disabled:!!p&&!o,label:c?"Project directory":"Directory",monospace:!0,onChange:function(e){return b(e.target.value)},setContentOnMount:!0,value:m}),(0,_.jsx)(Q.Z,{mt:2,children:(0,_.jsx)(V.Z,{disabled:!!o,label:c?"Project name":"Folder name",monospace:!0,onChange:function(e){return C(e.target.value)},ref:v,required:!0,value:j})})]})},X=t(57653),K=t(89515),J=t(17717),ee=t(77011);function ne(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 te(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ne(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ne(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var oe=c.default.div.withConfig({displayName:"MultiFileInput__DropzoneStyle",componentId:"sc-1l6yd2y-0"})(["&:hover{cursor:pointer;}"]);var re=function(e){var n=e.children,t=e.inputOnChange,o=e.inputProps,r=e.onDragActiveChange,i=e.setFiles,l=(0,u.useCallback)((function(e){i(e)}),[i]),c=(0,ee.uI)({onDrop:l}),d=c.getInputProps,a=c.getRootProps,s=c.isDragActive,f=d(),v=f.accept,p=f.autoComplete,h=f.multiple,m=f.onChange,b=f.onClick,g=f.ref,j=f.style,C=f.tabIndex,y=f.type,w=te(te({},o),{},{accept:v,autoComplete:p,multiple:h,onChange:function(e){null===t||void 0===t||t(e),null===o||void 0===o||o.onChange(e),m(e)},onClick:b,ref:g,style:j,tabIndex:C,type:y});return(0,u.useEffect)((function(){null===r||void 0===r||r(s)}),[s,r]),(0,_.jsxs)(oe,te(te({},a()),{},{children:[(0,_.jsx)("input",te(te({},w),{},{directory:"",webkitdirectory:""})),n]}))};function ie(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?ie(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ie(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ue=function(e){var n=e.children,t=e.directoryPath,o=e.onDragActiveChange,r=e.setFileUploadProgress,c=e.setUploadedFiles,a=(0,d.Db)(z.ZP.files.useCreate({onUploadProgress:function(e,n){var t,o=n.body,l=[null===o||void 0===o?void 0:o.dir_path,null===o||void 0===o||null===(t=o.file)||void 0===t?void 0:t.name].filter((function(e){return(null===e||void 0===e?void 0:e.length)>=1})).join(J.sep);null===r||void 0===r||r((function(n){return le(le({},n),{},(0,i.Z)({},l,e.loaded/e.total))}))}})),s=(0,l.Z)(a,1)[0],f=(0,u.useCallback)((function(e){e.forEach((function(e){var n=e.name,o=e.path,l=[t],u=o.split(J.sep).filter((function(e){return e&&e!==n})).join(J.sep);u&&l.push(u);var d=[],a=l.join(J.sep);(null===a||void 0===a?void 0:a.length)>=1&&l.push(a),d.push(n);var f=d.join(J.sep);s({dir_path:a,file:e,overwrite:!1}).then((function(e){var n=e.data,t=n.error,o=n.file;c((function(e){return le(le({},e),{},(0,i.Z)({},f,o||t))}))})),r((function(e){return le(le({},e),{},(0,i.Z)({},f,0))}))}))}),[s,t,r,c]);return(0,_.jsx)(re,{onDragActiveChange:o,setFiles:f,children:n})},ce=t(35185),de=t(75499),ae=t(44897),se=t(42631),fe=(k.iI,c.default.div.withConfig({displayName:"indexstyle__DropZoneStyle",componentId:"sc-1g3zz7z-0"})(["border-radius:","px;padding:","px;max-width:","px;min-width:","px;",""],se.n_,8*k.iI,100*k.iI,55*k.iI,(function(e){return"\n border: 1px dashed ".concat((e.theme.borders||ae.Z.borders).contrast,";\n ")}))),ve=c.default.div.withConfig({displayName:"indexstyle__TableStyle",componentId:"sc-1g3zz7z-1"})(["max-width:","px;min-width:","px;"],100*k.iI,55*k.iI);var pe=function(e){var n=e.fetchFileTree,t=e.onCancel,o=e.selectedFolder,r=(0,u.useState)(!1),i=r[0],c=r[1],d=(0,u.useState)({}),a=d[0],s=d[1],f=(0,u.useState)({}),v=f[0],p=f[1],h=!(0,G.Qr)(a),b=(0,u.useMemo)((function(){var e=[];return(0,F.YC)(Object.entries(a),(function(e){var n=(0,l.Z)(e,2),t=n[0];n[1];return t})).forEach((function(n){var t=(0,l.Z)(n,2),o=t[0],r=t[1],i=v[o],u=null===i||void 0===i?void 0:i.message;e.push([(0,_.jsxs)("div",{children:[(0,_.jsx)(m.ZP,{overflowWrap:!0,preWrap:!0,children:o}),u&&(0,_.jsx)(Q.Z,{mt:1,children:(0,_.jsx)(m.ZP,{danger:!0,small:!0,children:u})})]},"name-".concat(o)),(0,_.jsx)(ce.Z,{danger:!!u,progress:100*r},"progress-".concat(o))])})),(0,_.jsx)(de.Z,{columnFlex:[1,4],columns:[{uuid:"Filename"},{uuid:"Upload progress"}],rows:e,uuid:"block-runs"})}),[a,v]);return(0,_.jsxs)(Y.Z,{footer:(0,_.jsxs)(B.ZP,{fullWidth:!0,children:[(0,_.jsx)(A.ZP,{onClick:function(){return t()},children:"Close"}),h&&(0,_.jsx)(Q.Z,{ml:1,children:(0,_.jsx)(A.ZP,{onClick:function(){s({}),p({})},children:"Clear files and retry"})})]}),headerTitle:"Upload files",children:[h&&(0,_.jsx)(ve,{children:b}),!h&&(0,_.jsx)(ue,{directoryPath:o?(0,D.jN)(o):"",onDragActiveChange:c,setFileUploadProgress:s,setUploadedFiles:function(e){p(e),null===n||void 0===n||n()},children:(0,_.jsx)(fe,{children:(0,_.jsxs)(m.ZP,{center:!0,children:[i&&"Drop to upload",!i&&"Click or drop files and folders to upload"]})})})]})},he=t(77417),me=t(19698),be=t(31353),ge=t(80330),je=t(85202),Ce=t(44952),ye=t(23780),we=t(89538);function ke(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 xe(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ke(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ke(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Ze,Ee=20*k.iI;function De(e,n){var t=e.addNewBlock,o=(e.blocks,e.deleteWidget),r=(e.fetchAutocompleteItems,e.fetchFileTree),i=e.fetchPipeline,f=e.files,v=e.onClickFile,p=e.onClickFolder,h=e.onSelectBlockFile,b=e.openFile,C=(e.openSidekickView,e.pipeline),y=e.setErrors,x=e.setSelectedBlock,Z=(e.widgets,(0,u.useRef)(null)),E=(0,u.useContext)(c.ThemeContext),O=(0,u.useState)(null),P=O[0],L=O[1],I=(0,u.useState)(null),S=I[0],R=I[1],T=(0,u.useState)(null),A=T[0],B=T[1],U=(0,u.useState)(0),Y=U[0],Q=U[1];(0,u.useEffect)((function(){Q((function(e){return e+1}))}),[f]);var V=(0,u.useMemo)((function(){return A&&"undefined"!==typeof(null===A||void 0===A?void 0:A.children)&&A}),[A]),G=(0,ye.VI)(null,{},[],{uuid:"FileBrowser"}),J=(0,l.Z)(G,1)[0],ee=(0,he.Z)(),ne=ee.featureEnabled,te=ee.featureUUIDs,oe=ee.project,re=(0,me.Z)().status,ie=(0,d.Db)((function(e){return z.ZP.downloads.files.useCreate(e)()}),{onSuccess:function(e){return(0,$.wD)(e,{callback:function(){var n=e.data.download.token;(0,Ce.K)(n)},onErrorCallback:function(e,n){return y?y({errors:n,response:e}):J({errors:n,response:e})}})}}),le=(0,l.Z)(ie,1)[0],ue=(0,d.Db)((function(e){return z.ZP.files.useDelete(e)()}),{onSuccess:function(e){return(0,$.wD)(e,{callback:function(){null===r||void 0===r||r()},onErrorCallback:function(e,n){return y?y({errors:n,response:e}):J({errors:n,response:e})}})}}),ce=(0,l.Z)(ue,1)[0],de=(0,d.Db)((function(e){return z.ZP.folders.useDelete(e)()}),{onSuccess:function(e){return(0,$.wD)(e,{callback:function(){null===r||void 0===r||r()},onErrorCallback:function(e,n){return y?y({errors:n,response:e}):J({errors:n,response:e})}})}}),ae=(0,l.Z)(de,1)[0],se=(0,d.Db)((function(e){var n=e.block,t=(n.language,n.type,n.uuid),o=e.file,r=e.force,i=void 0!==r&&r;return z.ZP.blocks.useDelete(encodeURIComponent(t),{file_path:o?encodeURIComponent((0,D.jN)(o)):null,force:i})()}),{onSuccess:function(e){return(0,$.wD)(e,{callback:function(){null===r||void 0===r||r()},onErrorCallback:function(e){var n=e.error,t=n.exception;n.message.includes("raise HasDownstreamDependencies")&&Ze({block:Ie,file:A,exception:t})}})}}),fe=(0,l.Z)(se,1)[0],ve=(0,we.dd)((function(e){var n=e.block,t=e.file;return(0,_.jsx)(K.Z,{centerOnScreen:!0,danger:!0,onCancel:De,onClick:function(){return fe({block:n,file:t,force:!0}).then((function(){return De()}))},subtitle:"Deleting this block file is dangerous. This block may have dependencies in active pipelines. Press confirm to delete this block anyway and remove it as a dependency from downstream blocks.",title:"Delete ".concat(n.uuid," anyway?"),width:34*k.iI})})),ke=(0,l.Z)(ve,2),Ze=ke[0],De=ke[1],Fe=(0,F.sE)(null===C||void 0===C?void 0:C.blocks,(function(e){var n=e.type;return a.tf.DATA_EXPORTER===n})),Oe=(0,d.Db)(z.ZP.blocks.pipelines.useUpdate(encodeURIComponent(null===C||void 0===C?void 0:C.uuid),encodeURIComponent(null===Fe||void 0===Fe?void 0:Fe.uuid)),{onSuccess:function(e){return(0,$.wD)(e,{callback:function(){null===i||void 0===i||i()},onErrorCallback:function(e,n){return y?y({errors:n,response:e}):J({errors:n,response:e})}})}}),_e=(0,l.Z)(Oe,1)[0],Pe=(0,u.useCallback)((function(){return B(null)}),[B]);(0,u.useEffect)((function(){var e,o,r,i=function(e){if(clearTimeout(Z.current),R(null),S&&C&&t){var o,r,i=(null===n||void 0===n||null===(o=n.current)||void 0===o||null===(r=o.getBoundingClientRect)||void 0===r?void 0:r.call(o))||{},l=i.width,u=i.x;if(e.pageX>u+l){var c=(null===C||void 0===C?void 0:C.type)===X.qL.INTEGRATION,d=(0,ge.TU)(xe(xe({},S),{},{path:(0,D.jN)(S)}),re.repo_path,C);null===t||void 0===t||t(xe(xe({},d),{},{require_unique_name:!1}),(function(e){c&&Fe&&_e({block:xe(xe({},Fe),{},{upstream_blocks:[e.uuid]})}),null===x||void 0===x||x(e)}),{disableFetchingFiles:!0})}}},l=function(e){S&&L({x:e.pageX,y:e.pageY})};return null===(e=document)||void 0===e||e.addEventListener("click",Pe),null===(o=document)||void 0===o||o.addEventListener("mousemove",l),null===(r=document)||void 0===r||r.addEventListener("mouseup",i),function(){var e,n,t;null===(e=document)||void 0===e||e.removeEventListener("click",Pe),null===(n=document)||void 0===n||n.removeEventListener("mousemove",l),null===(t=document)||void 0===t||t.removeEventListener("mouseup",i)}}),[t,Fe,S,Pe,C,n,x,re,Z,_e]);var Le=(0,u.useMemo)((function(){return null===f||void 0===f?void 0:f.map((function(e){return(0,_.jsx)(N,{containerRef:n,file:e,level:0,onClickFile:v,onClickFolder:p,onSelectBlockFile:h,openFile:b,reloadCount:Y,setCoordinates:L,setDraggingFile:R,setSelectedFile:B,theme:E,timeout:Z},"".concat(e.name,"-").concat(Y))}))}),[f,v,p,b,h,Y]),Ie=(0,u.useMemo)((function(){return A&&(0,D.lr)(A)}),[A]),Se=(0,u.useMemo)((function(){return S&&(0,D.lr)(S)}),[S]),Re=(0,we.dd)((function(){return(0,_.jsx)(pe,{fetchFileTree:r,onCancel:Me,selectedFolder:V})}),{},[r,V],{background:!0,uuid:"upload_files"}),Te=(0,l.Z)(Re,2),Ne=Te[0],Me=Te[1],Ae=(0,we.dd)((function(e){return(0,_.jsx)(q,{fetchFileTree:r,file:null===e||void 0===e?void 0:e.file,moveFile:null===e||void 0===e?void 0:e.moveFile,onCancel:Ye,selectedFolder:V,setErrors:y})}),{},[r,V,y],{background:!0,disableClickOutside:!0,uuid:"new_file"}),Be=(0,l.Z)(Ae,2),Ue=Be[0],Ye=Be[1],Qe=(0,we.dd)((function(e){return(0,_.jsx)(W,{fetchFileTree:r,file:null===e||void 0===e?void 0:e.file,moveFile:null===e||void 0===e?void 0:e.moveFile,onCancel:Ge,projectType:null===e||void 0===e?void 0:e.projectType,selectedFolder:V,setErrors:y,showError:J})}),{},[r,V,y,J],{background:!0,disableClickOutside:!0,uuid:"new_folder"}),Ve=(0,l.Z)(Qe,2),ze=Ve[0],Ge=Ve[1],$e=(0,u.useMemo)((function(){var e;if(!Ie&&!A&&!V)return(0,_.jsx)("div",{});var t=(null===n||void 0===n||null===(e=n.current)||void 0===e?void 0:e.getBoundingClientRect())||{},r=t.x,i=t.width,l=P||{},u=l.x,c=void 0===u?0:u,d=l.y,f=void 0===d?0:d,v=c+k.iI;c+Ee>=r+i&&(v=r+i-(Ee+k.iI)),v<0&&(v=0);var p=[];V?(p.push.apply(p,[{label:function(){return"New folder"},onClick:function(){ze()},uuid:"new_folder"},{label:function(){return"Rename folder"},onClick:function(){ze({file:V})},uuid:"rename_folder"},{label:function(){return"Move folder"},onClick:function(){ze({file:V,moveFile:!0})},uuid:"Move_folder"},{label:function(){return"Delete folder"},onClick:function(){var e=(0,D.jN)(V);window.confirm("Are you sure you want to delete folder ".concat(e," and all its subfolders and files?"))&&ae(encodeURIComponent(e))},uuid:"Delete_folder"},{label:function(){return"New file"},onClick:function(){Ue({file:{}})},uuid:"new_file"},{label:function(){return"Upload files"},onClick:function(){Ne()},uuid:"upload_files"},{label:function(){return"Expand all subfolders"},onClick:function(){var e=new CustomEvent(j,{detail:{expand:!0,file:A,folder:V}});window.dispatchEvent(e)},uuid:"Expand all subfolders"},{label:function(){return"Collapse all subfolders"},onClick:function(){var e=new CustomEvent(j,{detail:{expand:!1,file:A,folder:V}});window.dispatchEvent(e)},uuid:"Collapse all subfolders"}]),null!==ne&&void 0!==ne&&ne(null===te||void 0===te?void 0:te.PROJECT_PLATFORM)&&p.push({beforeIcon:(0,_.jsx)(M.Z,{width:1.5*k.iI}),onClick:function(){ze({projectType:H.k.STANDALONE})},uuid:"New Mage project"}),null!==ne&&void 0!==ne&&ne(null===te||void 0===te?void 0:te.DBT_V2)&&p.push({beforeIcon:(0,_.jsx)(g.xE,{}),onClick:function(){ze({projectType:H.k.DBT})},uuid:"New dbt project"})):A&&(p.push.apply(p,[{label:function(){return"Rename file"},onClick:function(){Ue({file:A})},uuid:"rename_file"},{label:function(){return"Move file"},onClick:function(){Ue({file:A,moveFile:!0})},uuid:"move_file"},{label:function(){return"Download file"},onClick:function(){var e=(0,D.jN)(A);le(encodeURIComponent(e))},uuid:"download_file"}]),Ie?p.push({label:function(){return"Delete file"},onClick:function(){Ie.type===a.tf.CHART?window.confirm("Are you sure you want to delete widget ".concat(Ie.uuid,"?"))&&o(Ie):window.confirm("Are you sure you want to delete block ".concat(Ie.uuid,"?"))&&fe({block:Ie,file:A})},uuid:"delete_block_file"}):p.push({label:function(){return"Delete file"},onClick:function(){var e=(0,D.jN)(A);window.confirm("Are you sure you want to delete file ".concat(e,"?"))&&ce(encodeURIComponent(e))},uuid:"delete_file"}));var h=f+k.iI/2,m=36*p.length;return f+m>=window.innerHeight&&(h=f-m),(0,je.createPortal)((0,_.jsx)("div",{style:{left:v,position:"fixed",top:h,zIndex:be.bf+100},children:(0,_.jsx)(s.Z,{items:p,open:!0,parentRef:void 0,uuid:"FileBrowser/ContextMenu",width:Ee})}),document.body)}),[P,fe,ce,ae,o,le,ne,te,oe,n,Ne,Ue,ze,Ie,A,V]);return(0,_.jsxs)(w.Nk,{ref:n,children:[Le,(Ie||A||V)&&$e,Se&&(0,_.jsx)("div",{style:{left:(null===P||void 0===P?void 0:P.x)-k.iI,position:"fixed",top:(null===P||void 0===P?void 0:P.y)-k.iI,zIndex:be.bf+100},children:(0,_.jsx)(m.ZP,{cursor:"grabbing",monospace:!0,children:null===Se||void 0===Se?void 0:Se.uuid})})]})}!function(e){e.BLOCK_FILE="block_file",e.DISABLED="disabled",e.FILE="file",e.FOLDER="folder",e.PIPELINE="pipeline"}(Ze||(Ze={}));var Fe=u.forwardRef(De)},53005:function(e,n,t){t.d(n,{IO:function(){return m},V3:function(){return h},a9:function(){return c},eV:function(){return d},jN:function(){return a},lr:function(){return p},mD:function(){return s},o$:function(){return v},u$:function(){return b},y:function(){return f}});var o=t(17717),r=t(44425),i=t(89706),l=t(81728),u=t(80330);function c(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=n||(t?null:null===e||void 0===e?void 0:e.name);if(null!==e&&void 0!==e&&e.parent){var i=[e.parent.name];return(null===r||void 0===r?void 0:r.length)>=1&&i.push(r),c(e.parent,i.join(o.sep))}return r}function d(e){return null===e||void 0===e?void 0:e.split(o.sep).slice(1).join(o.sep)}function a(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=c(e,n,t);return d(o)}function s(e){var n=e.match(i.d2);return(null===n||void 0===n?void 0:n.length)>=1?n[0].replace(".",""):null}function f(e){var n=["\\.".concat(i.Lu.PY),"\\.".concat(i.Lu.R),"\\.".concat(i.Lu.SQL),"\\.".concat(i.Lu.YAML),"\\.".concat(i.Lu.YML)].join("|"),t=new RegExp("".concat(n,"$")),o=e.match(t);return(null===o||void 0===o?void 0:o.length)>=1?o[0].replace(".",""):null}function v(e,n){var t=f(e);return!["__init__.py"].includes(e)&&(r.tf.DBT!==n||![i.Lu.YAML,i.Lu.YML].includes(t))}function p(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],l=c(e,n).split(o.sep);if(!l)return null;var d=(0,u.ck)(l);if(!l)return null;var a="";a=l.length>=3?l.slice(2,l.length).join(o.sep):l[l.length-1];var s=t?r.Q3:r.$W;if(s.concat(r.tf.DBT).includes(d)&&f(a)){var v=a.lastIndexOf("."),p=a.slice(v+1);return{language:i.nB[p],type:d,uuid:a.slice(0,v)}}}function h(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=c(e,n).split(o.sep);if(t[1]){var u=(0,l.C5)(t[n?0:1]);t[1]===r.tf.DBT&&(u=r.tf.DBT);var d=t[t.length-1],a=new RegExp(".".concat(i.Lu.YAML,"$")),s=new RegExp(".".concat(i.Lu.R,"$")),f=new RegExp(".".concat(i.Lu.SQL,"$")),v=new RegExp(".".concat(i.Lu.MD,"$"));if(d.match(a)&&r.VZ.includes(u))return{type:u,uuid:d.replace(a,"")};if(d.match(s)&&r.J8.includes(u))return{type:u,uuid:d.replace(s,"")};if(d.match(f)&&r.HX.includes(u)){var p=d.replace(/[.]/g,"_"),h=u===r.tf.DBT?t.slice(2,-1).join("_").concat("_".concat(p)):d.replace(f,"");return{type:u,uuid:h}}return d.match(v)&&u===r.tf.MARKDOWN?{type:u,uuid:d.replace(v,"")}:void 0}}function m(e,n){var t=e.split("."),r=t[t.length-1];i.n6.includes(r)&&t.pop();var l=t.join("").split(o.sep),u=l.slice(1,l.length).join("");return n.find((function(e){return e.uuid===u}))}function b(e){var n=e||{},t=n.language,o=n.name,u=n.type;if(o&&t&&u){var c=u===r.tf.CUSTOM?u:"".concat(u,"s"),d=i.JD[t],a=(0,l.kE)(o);return"".concat(c,"/").concat(a,".").concat(d)}}},80330:function(e,n,t){t.d(n,{TU:function(){return p},lU:function(){return v},ck:function(){return f}});var o=t(21831),r=t(17717),i=t(44425),l=t(57653),u=t(89706),c=t(86735);function d(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=n||(t?null:null===e||void 0===e?void 0:e.name);if(null!==e&&void 0!==e&&e.parent){var i=[e.parent.name];return(null===o||void 0===o?void 0:o.length)>=1&&i.push(o),d(e.parent,i.join(r.sep))}return null!==e&&void 0!==e&&e.path?null===e||void 0===e?void 0:e.path:o}var a=t(81728),s=t(42122),f=function(e){var n;if(null===e||void 0===e||e.forEach((function(e){if((null===e||void 0===e?void 0:e.length)>=1){var t=null===e||void 0===e?void 0:e.toLowerCase();(t in i.qC||(t=(0,a.C5)(t))in i.GJ)&&(n=t)}})),!n){var t=["\\.".concat(u.Lu.SQL),"\\.".concat(u.Lu.YAML),"\\.".concat(u.Lu.YML)].join("|"),o=new RegExp("".concat(t,"$"));if(e.join(r.sep).match(o))return i.tf.DBT}return n};function v(){return new RegExp(Object.keys(u.nB).map((function(e){return".(".concat(e,")$")})).join("|"))}function p(e,n,t){var p,h,m=null===e||void 0===e||null===(p=e.path.match(v())[0])||void 0===p?void 0:p.split(".")[1],b=t.type===l.qL.INTEGRATION,g=(0,c.sE)(null===t||void 0===t?void 0:t.blocks,(function(e){var n=e.type;return i.tf.DATA_EXPORTER===n})),j=e.path.replace(n,"").split(r.sep),C=f(e.path.split(r.sep)),y=i.tf.DBT===C,w=(h=j)[0]===i.tf.DBT?h.slice(1).join(r.sep):function(e){return e.at(-1)}(h).split(".")[0];if(j.length>=3&&!y){var k=j.slice(1,j.length-1).join(r.sep);w="".concat(k,"/").concat(w)}var x=u.nB[m],Z={configuration:(0,s.hB)({file_path:y&&i.t6.SQL===x?w:null,file_source:{path:d(e)}}),language:x,name:(0,a.wE)(w),type:C};if(C===i.tf.CUSTOM&&(Z.color=i.Lq.TEAL),b){var E=(0,c.sE)(t.blocks,(function(e){var n=e.type;return i.tf.DATA_LOADER===n})),D=(0,c.sE)(t.blocks,(function(e){var n=e.type;return i.tf.TRANSFORMER===n})),F=[];D?F.push(D.uuid):null!==g&&void 0!==g&&g.upstream_blocks?F.push.apply(F,(0,o.Z)(g.upstream_blocks)):E&&F.push(E.uuid),Z.upstream_blocks=F}return Z}},44952:function(e,n,t){t.d(n,{K:function(){return r}});var o=t(4383);function r(e){var n=(0,o.ZP)("downloads",e),t=document.createElement("a");t.href=n,document.body.appendChild(t),t.click(),window.URL.revokeObjectURL(n),document.body.removeChild(t)}},19698:function(e,n,t){var o=t(82684),r=t(35686);n.Z=function(){var e=r.ZP.statuses.list().data;return{status:(0,o.useMemo)((function(){var n;return null===e||void 0===e||null===(n=e.statuses)||void 0===n?void 0:n[0]}),[e])}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8264],{82571:function(e,n,t){var r=t(21831),o=t(82394),i=t(12691),c=t.n(i),l=t(82684),d=t(34376),a=t(58036),u=t(15338),s=t(97618),f=t(55485),h=t(64888),p=t(93369),g=t(82359),m=t(38276),b=t(30160),v=t(12468),x=t(77417),y=t(72473),w=t(68899),j=t(8059),k=t(70515),O=t(86735),Z=t(28598);function I(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function P(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?I(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):I(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var C=3*k.iI;n.Z=function(e){var n=e.aligned,t=e.navigationItems,o=e.showMore,i=e.visible,I=(0,d.useRouter)().pathname,_=(0,x.Z)(),S=_.project,M=_.featureEnabled,E=(0,l.useMemo)((function(){return function(e){var n=e.featureEnabled,t=(e.project,[{Icon:y.$l,id:"files",label:function(){return"Files"},linkProps:{href:"/files"}},{Icon:y.zQ,id:"templates",label:function(){return"Templates"},linkProps:{href:"/templates"}},{Icon:y.Pt,id:"version-control",label:function(){return"Version control"},linkProps:{href:"/version-control"}},{Icon:y.oI,id:"terminal",label:function(){return"Terminal"},linkProps:{href:"/terminal"}},{Icon:y.Zr,id:"settings",label:function(){return"Settings"},linkProps:{href:"/settings"}}]);return n(g.d.COMPUTE_MANAGEMENT)&&(t=(0,O.Hk)({Icon:y.Hm,id:"compute",label:function(){return"Compute management (beta)"},linkProps:{href:"/compute"}},4,t)),n(g.d.GLOBAL_HOOKS)&&(t=(0,O.Hk)({Icon:y.u$,id:"global-hooks",label:function(){return"Global hooks (beta)"},linkProps:{href:"/global-hooks"}},4,t)),[{id:"main",items:[{Icon:y.G6,id:"overview",label:function(){return"Overview"},linkProps:{href:"/overview"}},{Icon:y.vd,id:"pipelines",label:function(){return"Pipelines"},linkProps:{href:"/pipelines"}},{Icon:y.Bf,id:"triggers",label:function(){return"Triggers"},linkProps:{href:"/triggers"}},{Icon:y.Pf,id:"pipeline-runs",label:function(){return"Pipeline runs"},linkProps:{href:"/pipeline-runs"}},{Icon:y.ie,id:"global-data-products",label:function(){return"Global data products"},linkProps:{href:"/global-data-products"}}]},{id:"misc",items:t}]}({project:S,featureEnabled:M})}),[S]),N=(0,l.useCallback)((function(e,t){var r,l,d,a=e.Icon,u=e.IconSelected,g=e.disabled,x=e.id,y=e.isSelected,O=e.label,_=e.linkProps,S=e.onClick,M=y?y(I,e):!!I.match(new RegExp("^/".concat(x,"[/]*"))),E=M&&u?u:a,N=null===O||void 0===O?void 0:O(),B={primary:!E,selected:o&&M,showMore:o,withGradient:u};M&&u?(l=(0,Z.jsx)("div",{style:{height:C,width:C},children:(0,Z.jsx)(E,{muted:!0,size:C})}),(o||i)&&(l=(0,Z.jsx)(w.E7,P(P({},B),{},{children:(0,Z.jsx)(E,{muted:!0,size:C})}))),r=(0,Z.jsx)(h.Z,{backgroundGradient:j.yr,backgroundPanel:!0,basic:!0,borderWidth:2,disabled:g,linkProps:_,onClick:S,paddingUnits:1,children:l}),o&&(r=l)):(!M||M&&!u)&&(l=(0,Z.jsx)(w.E7,P(P({},B),{},{children:E?(0,Z.jsx)(E,{muted:!M,size:C}):(0,Z.jsx)(b.ZP,{children:"Edit"})})),r=(0,Z.jsx)(p.ZP,{disabled:g,inline:!0,linkProps:_,noHoverUnderline:!0,noPadding:!0,onClick:S,primary:M,sameColorAsText:!0,uuid:"VerticalNavigation/".concat(x),children:l}),o&&(r=l)),d="right"===n?(0,Z.jsxs)(f.ZP,{alignItems:"center",fullWidth:!0,justifyContent:"flex-end",children:[(0,Z.jsx)(s.Z,{flex:1,justifyContent:"flex-end",children:(0,Z.jsx)(b.ZP,{noWrapping:!0,children:N})}),(0,Z.jsx)(m.Z,{mr:2}),l]}):(0,Z.jsxs)(f.ZP,{alignItems:"center",children:[l,(0,Z.jsx)(m.Z,{mr:2}),(0,Z.jsx)(s.Z,{flex:1,children:(0,Z.jsx)(b.ZP,{noWrapping:!0,children:N})})]});var z,H=(0,Z.jsx)(w.J8,{href:"#",onClick:S,selected:M,children:d});return _&&(H=(0,Z.jsx)(c(),P(P({},_),{},{passHref:!0,children:H}))),"right"===n&&(r=(0,Z.jsx)(f.ZP,{alignItems:"center",fullWidth:!0,justifyContent:"flex-end",children:r})),z=i?H:o?r:(0,Z.jsx)(v.Z,{appearBefore:"right"===n,height:5*k.iI,label:N,size:null,widthFitContent:!0,children:r}),(0,Z.jsx)(m.Z,{mt:o&&i?0:t>=1?k.cd:0,children:z},"button-".concat(x))}),[n,I,o,i]),B=(0,l.useMemo)((function(){var e=[];return(t||E).forEach((function(n,t){var o=n.id,c=n.items;(null===c||void 0===c?void 0:c.length)>=1?(t>=1&&e.push((0,Z.jsx)(m.Z,{my:i?k.cd:k.cd+1,children:(0,Z.jsx)(u.Z,{light:!0})},o)),e.push.apply(e,(0,r.Z)(c.map((function(e,n){return N(e,n)}))))):e.push(N(n,t))})),e}),[N,E,t,i]);return(0,Z.jsx)(a.Z,{children:B})}},68899:function(e,n,t){t.d(n,{E7:function(){return v},HS:function(){return b},Hn:function(){return y},J8:function(){return x},Nk:function(){return p},k1:function(){return h},lm:function(){return m}});var r=t(82684),o=t(38626),i=t(38276),c=t(44897),l=t(42631),d=t(46684),a=t(70515),u=t(47041),s=t(91437),f=t(28598),h=a.cd*a.iI+5*a.iI+a.cd*a.iI+1,p=o.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-ecogjt-0"})(["display:flex;flex-direction:row;height:calc(100vh - ","px);position:fixed;top:","px;width:100%;",""],d.Mz,d.Mz,(function(e){return"\n background-color: ".concat((e.theme.background||c.Z.background).page,";\n ")})),g=o.default.div.withConfig({displayName:"indexstyle__VerticalNavigationStyleComponent",componentId:"sc-ecogjt-1"})(["height:100%;"," "," "," @keyframes animate-in{0%{width:","px;}100%{width:","px;}}"," ",""],(function(e){return"\n background-color: ".concat((e.theme.background||c.Z.background).panel,";\n ")}),(function(e){return!e.borderless&&"right"!==e.aligned&&"\n border-right: 1px solid ".concat((e.theme.borders||c.Z.borders).medium,";\n ")}),(function(e){return!e.borderless&&"right"===e.aligned&&"\n border-left: 1px solid ".concat((e.theme.borders||c.Z.borders).medium,";\n ")}),21*a.iI,34*a.iI,(function(e){return e.showMore&&e.visible&&"\n &:hover {\n animation: animate-in 100ms linear forwards;\n position: fixed;\n z-index: 100;\n }\n "}),(function(e){return e.showMore&&e.visible&&"right"===e.aligned&&"\n &:hover {\n right: 0;\n top: ".concat(d.Mz,"px;\n }\n ")}));function m(e){var n=e.aligned,t=e.borderless,o=e.children,c=e.showMore,l=(0,r.useRef)(null),d=(0,r.useState)(!1),u=d[0],s=d[1];return(0,f.jsx)(g,{aligned:n,borderless:t&&!u,onMouseEnter:c?function(){clearTimeout(l.current),l.current=setTimeout((function(){s(!0)}),300)}:null,onMouseLeave:c?function(){clearTimeout(l.current),s(!1)}:null,showMore:c,visible:u,children:(0,f.jsx)(i.Z,{px:c&&u?0:a.cd,py:c&&u?1:a.cd,children:r.cloneElement(o,{showMore:c,visible:u})})})}var b=o.default.div.withConfig({displayName:"indexstyle__SubheaderStyle",componentId:"sc-ecogjt-2"})(["position:sticky;top:0;width:100%;z-index:3;"," ",""],(function(e){return"\n background-color: ".concat((e.theme.background||c.Z.background).page,";\n border-bottom: 1px solid ").concat((e.theme.borders||c.Z.borders).light,";\n ")}),(function(e){return!e.noPadding&&"\n padding: ".concat(a.cd*a.iI,"px;\n ")})),v=(o.default.div.withConfig({displayName:"indexstyle__ContentStyle",componentId:"sc-ecogjt-3"})([""," overflow:auto;",""],u.w5,(function(e){return"\n height: calc(100vh - ".concat(d.Mz+(e.heightOffset||0),"px);\n ")})),o.default.div.withConfig({displayName:"indexstyle__NavigationItemStyle",componentId:"sc-ecogjt-4"})(["align-items:center;border-radius:","px;display:flex;height:","px;justify-content:center;padding:","px;width:","px;"," "," "," ",""],l.n_,5*a.iI,a.iI,5*a.iI,(function(e){return e.primary&&"\n ".concat((0,s.eR)(),"\n background: ").concat((e.theme||c.Z).chart.backgroundPrimary,";\n border: 1px solid ").concat((e.theme||c.Z).feature.active,";\n\n &:hover {\n background-color: ").concat((e.theme||c.Z).interactive.linkSecondary,";\n }\n ")}),(function(e){return e.selected&&!e.withGradient&&"\n background-color: ".concat((e.theme.interactive||c.Z.interactive).linkPrimary,";\n ")}),(function(e){return e.selected&&e.withGradient&&"\n background-color: ".concat((e.theme.background||c.Z.background).codeTextarea,";\n ")}),(function(e){return!e.selected&&e.showMore&&"\n background-color: ".concat((e.theme.interactive||c.Z.interactive).defaultBackground,";\n ")}))),x=o.default.a.withConfig({displayName:"indexstyle__NavigationLinkStyle",componentId:"sc-ecogjt-5"})([""," display:block;padding:","px ","px;"," ",""],(0,s.eR)(),1*a.iI,a.iI*a.cd,(function(e){return!e.selected&&"\n &:hover {\n background-color: ".concat((e.theme.interactive||c.Z.interactive).hoverBackground,";\n }\n ")}),(function(e){return e.selected&&"\n background-color: ".concat((e.theme.interactive||c.Z.interactive).linkPrimaryHover,";\n ")})),y=o.default.div.withConfig({displayName:"indexstyle__ImageStyle",componentId:"sc-ecogjt-6"})(["background-position:0 0;background-repeat:no-repeat;background-size:contain;height:","px;width:","px;"," ",""],12*a.iI,12*a.iI,(function(e){return"\n background-image: url(".concat(e.imageUrl,");\n ")}),(function(e){return e.size&&"\n height: ".concat(e.size,"px;\n width: ").concat(e.size,"px;\n ")}))},2842:function(e,n,t){t.d(n,{E$:function(){return _},MK:function(){return x},MP:function(){return I},Md:function(){return u},OM:function(){return m},On:function(){return W},PZ:function(){return v},Ru:function(){return P},S9:function(){return H},VW:function(){return h},W7:function(){return k},Wi:function(){return g},YJ:function(){return Z},Zj:function(){return N},Zt:function(){return a},aH:function(){return E},bC:function(){return B},dN:function(){return s},ff:function(){return C},l8:function(){return p},lU:function(){return z},rS:function(){return M},uX:function(){return b},v7:function(){return S},ve:function(){return f},ym:function(){return O}});var r=t(38626),o=t(44897),i=t(42631),c=t(46684),l=t(70515),d=t(47041),a=64*l.iI,u=30*l.iI,s=21.25*l.iI,f=35*l.iI,h=.5*l.iI,p=13*l.iI,g=3*l.cd*l.iI,m=6*l.iI,b=2*l.cd*3*l.iI,v=r.default.div.withConfig({displayName:"indexstyle__InlineContainerStyle",componentId:"sc-1lxpneo-0"})(["position:relative;",""],(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")})),x=(r.default.div.withConfig({displayName:"indexstyle__HeaderStyle",componentId:"sc-1lxpneo-1"})(["position:fixed;z-index:3;"," "," ",""],(function(e){return"\n border-bottom: 1px solid ".concat((e.theme.monotone||o.Z.monotone).grey200,";\n ")}),(function(e){return!e.beforeVisible&&"\n width: 100%;\n "}),(function(e){return e.beforeVisible&&"\n left: ".concat(f,"px;\n width: calc(100% - ").concat(f,"px);\n ")})),r.default.div.withConfig({displayName:"indexstyle__NewHeaderStyle",componentId:"sc-1lxpneo-2"})(["height:","px;position:fixed;top:0;width:100%;z-index:4;"],c.Mz)),y=(r.default.div.withConfig({displayName:"indexstyle__TabStyle",componentId:"sc-1lxpneo-3"})(["border-top-left-radius:","px;border-top-right-radius:","px;padding:","px ","px;position:relative;top:1px;"," "," ",""],i.n_,i.n_,1*l.iI,2*l.iI,(function(e){return"\n border-left: 1px solid ".concat((e.theme.monotone||o.Z.monotone).grey200,";\n border-right: 1px solid ").concat((e.theme.monotone||o.Z.monotone).grey200,";\n border-top: 1px solid ").concat((e.theme.monotone||o.Z.monotone).grey200,";\n ")}),(function(e){return!e.first&&"\n margin-left: ".concat(1*l.iI,"px;\n ")}),(function(e){return e.selected&&"\n border-bottom: 1px solid ".concat((e.theme.monotone||o.Z.monotone).white,";\n ")})),(0,r.css)(["z-index:2;"," "," ",""],(function(e){return"\n height: calc(100% - ".concat("undefined"===typeof e.heightOffset?b:e.heightOffset,"px);\n ")}),(function(e){return e.inline&&"\n position: absolute;\n "}),(function(e){return!e.inline&&"\n background-color: ".concat((e.theme.background||o.Z.background).panel,";\n position: fixed;\n top: ").concat("undefined"===typeof e.heightOffset?b:e.heightOffset,"px;\n ")}))),w=(0,r.css)([""," height:100%;overflow:auto;position:relative;z-index:2;",""],d.w5,(function(e){return"undefined"!==typeof e.verticalOffset&&null!==e.verticalOffset&&"\n height: calc(100% - ".concat(e.verticalOffset+(e.heightOffset||0),"px);\n top: ").concat(e.verticalOffset,"px;\n ")})),j=(0,r.css)(["position:absolute;width:","px;z-index:6;&:hover{","}"," "," ",""],h,(function(e){return!e.disabled&&"\n border-color: ".concat((e.theme.text||o.Z.text).fileBrowser," !important;\n ")}),(function(e){return"\n height: calc(100% + ".concat((null===e||void 0===e?void 0:e.top)||0,"px);\n top: -").concat((null===e||void 0===e?void 0:e.top)||0,"px;\n ")}),(function(e){return!e.disabled&&"\n cursor: col-resize;\n "}),(function(e){return e.active&&!e.disabled&&"\n border-color: ".concat((e.theme.text||o.Z.text).fileBrowser," !important;\n ")})),k=r.default.div.withConfig({displayName:"indexstyle__AsideHeaderStyle",componentId:"sc-1lxpneo-4"})(["border-bottom:1px solid transparent;height:","px;z-index:4;"," "," "," "," ",""],m,(0,d.y$)(),(function(e){return"\n background-color: ".concat((e.theme.background||o.Z.background).panel,";\n top: ").concat((null===e||void 0===e?void 0:e.top)||0,"px;\n ")}),(function(e){return!e.visible&&"\n border-left: 1px solid transparent;\n border-right: 1px solid transparent;\n border-bottom-color: ".concat((e.theme.borders||o.Z.borders).medium," !important;\n ")}),(function(e){return e.contained&&"\n border-left-color: ".concat((e.theme.borders||o.Z.borders).medium," !important;\n ")}),(function(e){return!e.inline&&"\n position: fixed;\n "})),O=r.default.div.withConfig({displayName:"indexstyle__AsideHeaderInnerStyle",componentId:"sc-1lxpneo-5"})(["display:flex;flex:1;overflow:auto;padding:0 ","px;"," ",""],2*l.iI,(0,d.y$)(),(function(e){return e.noPadding&&"\n padding: 0;\n "})),Z=r.default.div.withConfig({displayName:"indexstyle__AsideSubheaderStyle",componentId:"sc-1lxpneo-6"})(["border-bottom:1px solid transparent;height:","px;overflow-x:auto;position:absolute;top:","px;"," "," ",""],g,g,(0,d.y$)(),(function(e){return"\n background-color: ".concat((e.theme.background||o.Z.background).table,";\n ")}),(function(e){return!e.visible&&"\n border-color: ".concat((e.theme.borders||o.Z.borders).medium," !important;\n ")})),I=r.default.aside.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-1lxpneo-7"})([""," left:0;"],y),P=r.default.div.withConfig({displayName:"indexstyle__BeforeInnerStyle",componentId:"sc-1lxpneo-8"})([""," overflow:hidden;&:hover{overflow:auto;}",""],w,(function(e){return e.contained&&"\n border-left: 1px solid ".concat((e.theme.borders||o.Z.borders).medium," !important;\n ")})),C=r.default.aside.withConfig({displayName:"indexstyle__AfterStyle",componentId:"sc-1lxpneo-9"})([""," right:0;"],y),_=r.default.div.withConfig({displayName:"indexstyle__AfterInnerStyle",componentId:"sc-1lxpneo-10"})([""," "," ",""],w,(function(e){return e.overflow&&"\n overflow: ".concat(e.overflow,";\n ")}),(function(e){return e.heightMinus&&"\n height: calc(100% - ".concat(e.heightMinus,"px);\n ")})),S=r.default.div.withConfig({displayName:"indexstyle__DraggableStyle",componentId:"sc-1lxpneo-11"})([""," "," "," "," ",""],j,(function(e){return"undefined"!==typeof e.left&&"\n border-left-style: solid;\n border-left-width: 1px;\n left: ".concat(e.left,"px;\n ")}),(function(e){return"undefined"!==typeof e.right&&"\n border-right-style: solid;\n border-right-width: 1px;\n right: ".concat(e.right,"px;\n ")}),(function(e){return!e.contrast&&"\n border-color: ".concat((e.theme.borders||o.Z.borders).medium,";\n ")}),(function(e){return e.contrast&&"\n border-color: ".concat((e.theme.borders||o.Z.borders).light,";\n ")})),M=r.default.div.withConfig({displayName:"indexstyle__MainWrapper",componentId:"sc-1lxpneo-12"})(["height:100%;z-index:1;",""],(function(e){return"\n background-color: ".concat((e.theme.background||o.Z.background).codeArea,";\n position: ").concat(e.inline?"absolute":"fixed",";\n ")})),E=r.default.div.withConfig({displayName:"indexstyle__MainContentStyle",componentId:"sc-1lxpneo-13"})(["z-index:2;"," ",""],(function(e){return"\n height: calc(100% - ".concat((e.headerOffset||0)+(e.footerOffset||0),"px);\n position: ").concat(e.inline?"relative":"fixed",";\n ")}),(function(e){return!e.inline&&"\n top: ".concat(e.headerOffset||0,"px;\n ")})),N=r.default.div.withConfig({displayName:"indexstyle__MainContentInnerStyle",componentId:"sc-1lxpneo-14"})([""," height:100%;overflow:auto;"],d.w5),B=r.default.div.withConfig({displayName:"indexstyle__NavigationStyle",componentId:"sc-1lxpneo-15"})(["position:relative;"]),z=r.default.div.withConfig({displayName:"indexstyle__NavigationInnerStyle",componentId:"sc-1lxpneo-16"})(["height:100%;position:fixed;z-index:6;"," ",""],(function(e){return"left"===e.aligned&&"\n border-right: 1px solid ".concat((e.theme.borders||o.Z.borders).medium,";\n left: 0;\n ")}),(function(e){return"right"===e.aligned&&"\n border-left: 1px solid ".concat((e.theme.borders||o.Z.borders).medium,";\n right: 0;\n ")})),H=r.default.div.withConfig({displayName:"indexstyle__NavigationContainerStyle",componentId:"sc-1lxpneo-17"})([""," overflow:auto;position:absolute;width:fit-content;"," "," "," ",""],d.w5,(function(e){return"\n height: calc(100vh - ".concat(e.heightOffset,"px);\n ")}),(function(e){return e.fullWidth&&"\n width: calc(100% - ".concat(e.widthOffset||0,"px);\n ")}),(function(e){return e.widthOffset&&"left"===e.aligned&&"\n left: ".concat(e.widthOffset,"px;\n ")}),(function(e){return e.widthOffset&&"right"===e.aligned&&"\n right: ".concat(e.widthOffset,"px;\n ")})),W=r.default.div.withConfig({displayName:"indexstyle__AsideFooterStyle",componentId:"sc-1lxpneo-18"})(["border-left:1px solid transparent;border-right:1px solid transparent;border-top:1px solid transparent;position:fixed;z-index:3;"," "," "," "," ",""],(function(e){return"\n border-top-color: ".concat((e.theme.borders||o.Z.borders).medium," !important;\n ")}),(function(e){return!e.inline&&"\n background-color: ".concat((e.theme.background||o.Z.background).panel,";\n ")}),(function(e){return e.contained&&"\n border-left-color: ".concat((e.theme.borders||o.Z.borders).medium," !important;\n ")}),(function(e){return("undefined"===typeof e.bottom||null===e.bottom)&&"\n bottom: 0;\n "}),(function(e){return"undefined"!==typeof e.bottom&&null!==e.bottom&&"\n bottom: ".concat(e.bottom,"px;\n ")}))},62547:function(e,n,t){var r=t(82684),o=t(1887),i=t.n(o),c=t(71180),l=t(58036),d=t(97618),a=t(55485),u=t(38276),s=t(12468),f=t(82571),h=t(2842),p=t(72473),g=t(53808),m=t(70515),b=t(68899),v=t(19183),x=t(28598);n.Z=function(e){var n=e.after,t=e.afterDividerContrast,o=e.afterFooter,y=e.afterFooterBottomOffset,w=e.afterHeader,j=e.afterHeaderOffset,k=e.afterHeightOffset,O=e.afterHidden,Z=e.afterInnerHeightMinus,I=e.afterMousedownActive,P=e.afterNavigationItems,C=e.afterOverflow,_=e.afterSubheader,S=e.afterWidth,M=void 0===S?0:S,E=e.before,N=e.beforeDividerContrast,B=e.beforeFooter,z=e.beforeHeader,H=e.beforeHeaderOffset,W=e.beforeHeightOffset,F=e.beforeHidden,D=e.beforeMousedownActive,A=e.beforeNavigationItems,R=e.beforeWidth,L=void 0===R?0:R,T=e.children,G=e.contained,U=e.footerOffset,V=e.header,$=e.headerOffset,q=void 0===$?0:$,X=e.height,K=e.hideAfterCompletely,J=e.hideBeforeCompletely,Y=e.inline,Q=e.leftOffset,ee=void 0===Q?0:Q,ne=e.mainContainerFooter,te=e.mainContainerHeader,re=e.mainContainerRef,oe=e.navigationShowMore,ie=e.setAfterHidden,ce=e.setAfterMousedownActive,le=e.setAfterWidth,de=e.setBeforeHidden,ae=e.setBeforeMousedownActive,ue=e.setBeforeWidth,se=e.uuid,fe=(0,v.i)().width,he=(0,r.useRef)(null),pe=(0,r.useRef)(null),ge=(0,r.useRef)(null),me=(0,r.useRef)(null),be=(0,r.useCallback)((function(){var e=!O;null===ie||void 0===ie||ie(e),(0,g.t8)(se||g.zg,e)}),[O,ie,se]),ve=(0,r.useCallback)((function(){var e=!F;null===de||void 0===de||de(e),(0,g.t8)(se||g.Uu,e)}),[F,de,se]);(0,r.useEffect)((function(){var e,n,t,r,o=function(e){var n,t;((null===ge||void 0===ge||null===(n=ge.current)||void 0===n||null===(t=n.getBoundingClientRect)||void 0===t?void 0:t.call(n))||{}).x;if(fe){var r=e.x;r+h.l8>fe-M&&(r=fe-M-h.l8),r-=2*ee,ue(Math.max(r,h.dN))}},i=function(e){var n,t;e.offsetX>=e.target.offsetWidth-h.VW&&e.offsetX<=e.target.offsetWidth+h.VW&&(null===ae||void 0===ae||ae(!0),e.preventDefault(),null===(n=document)||void 0===n||null===(t=n.addEventListener)||void 0===t||t.call(n,"mousemove",o,!1))},c=function(){var e,n;null===ae||void 0===ae||ae(!1),null===(e=document)||void 0===e||null===(n=e.removeEventListener)||void 0===n||n.call(e,"mousemove",o,!1)};return null===me||void 0===me||null===(e=me.current)||void 0===e||null===(n=e.addEventListener)||void 0===n||n.call(e,"mousedown",i,!1),null===(t=document)||void 0===t||null===(r=t.addEventListener)||void 0===r||r.call(t,"mouseup",c,!1),function(){var e,n,t,r;null===me||void 0===me||null===(e=me.current)||void 0===e||null===(n=e.removeEventListener)||void 0===n||n.call(e,"mousedown",i,!1),null===(t=document)||void 0===t||null===(r=t.removeEventListener)||void 0===r||r.call(t,"mouseup",c,!1),c()}}),[M,F,ee,ge,me,ae,ue,fe]),(0,r.useEffect)((function(){var e,n,t,r,o=function(e){var n,t;((null===he||void 0===he||null===(n=he.current)||void 0===n||null===(t=n.getBoundingClientRect)||void 0===t?void 0:t.call(n))||{}).x;if(fe){var r=fe-e.x;r+h.l8>fe-L&&(r=fe-L-h.l8),le(Math.max(r,h.Md))}},i=function(e){var n,t;e.offsetX>=-1*h.VW&&e.offsetX<=h.VW&&(null===ce||void 0===ce||ce(!0),e.preventDefault(),null===(n=document)||void 0===n||null===(t=n.addEventListener)||void 0===t||t.call(n,"mousemove",o,!1))},c=function(){var e,n;null===ce||void 0===ce||ce(!1),null===(e=document)||void 0===e||null===(n=e.removeEventListener)||void 0===n||n.call(e,"mousemove",o,!1)};return null===pe||void 0===pe||null===(e=pe.current)||void 0===e||null===(n=e.addEventListener)||void 0===n||n.call(e,"mousedown",i,!1),null===(t=document)||void 0===t||null===(r=t.addEventListener)||void 0===r||r.call(t,"mouseup",c,!1),function(){var e,n,t,r;null===pe||void 0===pe||null===(e=pe.current)||void 0===e||null===(n=e.removeEventListener)||void 0===n||n.call(e,"mousedown",i,!1),null===(t=document)||void 0===t||null===(r=t.removeEventListener)||void 0===r||r.call(t,"mouseup",c,!1),c()}}),[O,L,he,pe,ce,le,fe]);var xe=K&&O,ye=xe?0:O?4*m.iI:M,we=J&&F?0:F?4*m.iI:L,je="calc(100% - ".concat(we+ye+ee,"px)"),ke=(0,r.useMemo)((function(){return(null===P||void 0===P?void 0:P.length)>=1}),[P]),Oe=(0,r.useMemo)((function(){return(0,x.jsxs)(x.Fragment,{children:[(ie||w)&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(h.W7,{inline:Y,style:{width:ke?ye-(b.k1-1):ye},top:G?q:h.Wi,visible:O,children:(0,x.jsxs)(a.ZP,{alignItems:"center",fullHeight:!0,fullWidth:!0,children:[(0,x.jsxs)(d.Z,{children:[(0,x.jsx)(u.Z,{pl:O?1:2}),(0,x.jsxs)(c.ZP,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return be()},children:[O&&(0,x.jsx)(p.s$,{neutral:!0,size:2*m.iI}),!O&&(0,x.jsx)(p._Q,{neutral:!0,size:2*m.iI})]})]}),!O&&w]})}),!O&&_&&(0,x.jsx)(h.YJ,{style:{width:ke?ye-(b.k1+1):ye},visible:O,children:_})]}),(0,x.jsx)(h.E$,{heightMinus:Z,noScrollbarTrackBackground:!0,overflow:C,ref:he,verticalOffset:w?_?h.Wi+k:j||k:null,children:!O&&n}),o&&!O&&(0,x.jsx)(h.On,{bottom:Y?y:null,inline:Y,style:{overflow:O?"visible":"hidden",width:ye},children:o})]})}),[n,o,y,w,j,k,O,C,_,ye,G,ke,q,Y,he,ie,be]),Ze=(0,r.useMemo)((function(){return(null===A||void 0===A?void 0:A.length)>=1}),[A]),Ie=(0,r.useRef)(null),Pe=(0,r.useMemo)((function(){var e,n;return(0,x.jsxs)(x.Fragment,{children:[(de||z)&&(0,x.jsx)(h.W7,{contained:G,inline:Y,style:{overflow:F?"visible":"hidden",width:Ze?we-(b.k1+2):we},top:G?q:h.Wi,visible:F,children:(0,x.jsxs)(a.ZP,{alignItems:"center",fullHeight:!0,fullWidth:!0,justifyContent:"space-between",children:[(0,x.jsxs)(h.ym,{noPadding:!0,children:[(0,x.jsx)(u.Z,{pl:F?1:0}),!F&&z]}),(0,x.jsxs)(d.Z,{children:[de&&(0,x.jsx)(s.Z,{appearAbove:!F,appearBefore:!F,block:!0,label:F?"Show sidebar":"Hide sidebar",size:null,widthFitContent:!0,children:(0,x.jsxs)(c.ZP,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return ve()},children:[F&&(0,x.jsx)(p._Q,{neutral:!0,size:2*m.iI}),!F&&(0,x.jsx)(p.s$,{neutral:!0,size:2*m.iI})]})},F?"before-is-hidden":"before-is-visible"),(0,x.jsx)(u.Z,{pr:F?1:2})]})]})}),(0,x.jsx)(h.Ru,{contained:G&&!Y,heightOffset:B?null===Ie||void 0===Ie||null===(e=Ie.current)||void 0===e||null===(n=e.getBoundingClientRect())||void 0===n?void 0:n.height:null,noScrollbarTrackBackground:!0,ref:ge,verticalOffset:z?H||W:null,children:!F&&E}),B&&(0,x.jsx)(h.On,{contained:G,ref:Ie,style:{overflow:F?"visible":"hidden",width:we},children:B})]})}),[E,B,Ie,z,H,W,F,we,G,q,Ze,Y,ge,de,ve]),Ce=(0,r.useMemo)((function(){return(0,x.jsxs)(x.Fragment,{children:[(I&&!O||D&&!F)&&(0,x.jsx)(i(),{children:(0,x.jsx)("style",{dangerouslySetInnerHTML:{__html:"\n body {\n cursor: col-resize;\n }\n "}})}),V&&(0,x.jsx)(h.MK,{children:V}),E&&(0,x.jsxs)(h.MP,{heightOffset:W,inline:Y,style:{left:ee,width:we},children:[(0,x.jsx)(h.v7,{active:D,disabled:F,contrast:N,ref:me,right:0,top:G?0:h.Wi}),Ze&&(0,x.jsxs)(h.bC,{children:[!F&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(h.lU,{aligned:"left",children:(0,x.jsx)(b.lm,{aligned:"left",borderless:!0,showMore:oe,children:(0,x.jsx)(f.Z,{aligned:"left",navigationItems:A})})}),(0,x.jsx)(h.S9,{aligned:"left",fullWidth:!0,heightOffset:W,widthOffset:b.k1+1,children:Pe})]}),F&&Pe]}),!Ze&&Pe]}),(0,x.jsxs)(h.rS,{inline:Y,style:{left:we+ee,width:je},children:[te,(0,x.jsx)(h.aH,{headerOffset:G?q:(te?h.uX:h.Wi)+q,footerOffset:U,inline:Y,style:{width:Y?null:je},children:(0,x.jsx)(h.Zj,{noScrollbarTrackBackground:!0,ref:re,children:T})}),ne]}),n&&!xe&&(0,x.jsxs)(h.ff,{heightOffset:k,inline:Y,style:{width:ye},children:[(0,x.jsx)(h.v7,{active:I,contrast:t,disabled:O,left:0,ref:pe,top:G?0:h.Wi}),ke&&(0,x.jsxs)(h.bC,{children:[!O&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(h.lU,{aligned:"right",children:(0,x.jsx)(b.lm,{aligned:"right",borderless:!0,showMore:oe,children:(0,x.jsx)(f.Z,{aligned:"right",navigationItems:P})})}),(0,x.jsx)(h.S9,{aligned:"right",fullWidth:!0,heightOffset:k,widthOffset:b.k1+1,children:Oe})]}),O&&Oe]}),!ke&&Oe]})]})}),[n,Oe,t,k,O,I,P,ye,Pe,N,W,F,D,A,we,T,G,U,ke,Ze,V,q,Y,ee,ne,te,re,je,oe,pe,me,xe]);return(0,x.jsxs)(l.Z,{children:[Y&&(0,x.jsx)(h.PZ,{height:X,children:Ce}),!Y&&Ce]})}},93808:function(e,n,t){t.d(n,{Z:function(){return P}});var r=t(77837),o=t(26304),i=t(62243),c=t(29385),l=t(80022),d=t(13692),a=t(93189),u=t(15544),s=t(82394),f=t(38860),h=t.n(f),p=t(82684),g=t(56663),m=t.n(g),b=t(40761),v=t(34661),x=t(36105),y=t(50178),w=t(69419),j=t(28598),k=["auth"];function O(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Z(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?O(Object(t),!0).forEach((function(n){(0,s.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):O(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function I(e){var n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,r=(0,u.Z)(e);if(n){var o=(0,u.Z)(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return(0,a.Z)(this,t)}}function P(e){return function(n){(0,d.Z)(a,n);var t=I(a);function a(){var e;(0,i.Z)(this,a);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return e=t.call.apply(t,[this].concat(r)),(0,s.Z)((0,l.Z)(e),"state",{auth:new b.Z(e.props.token)}),e}return(0,c.Z)(a,[{key:"componentDidMount",value:function(){this.setState({auth:new b.Z(this.props.token)})}},{key:"render",value:function(){var n=this.props,t=(n.auth,(0,o.Z)(n,k));return(0,j.jsx)(e,Z({auth:this.state.auth},t))}}],[{key:"getInitialProps",value:function(){var n=(0,r.Z)(h().mark((function n(t){var r,o,i,c,l,d,a,u,s;return h().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=m()(t),o=(0,y.ex)(t),i=o.id,c=r[v.Mv],l=r[x.qt],d=new b.Z(c),a=Z(Z({},t),{},{auth:d,currentGroupId:i,theme:l}),(0,y.YB)(t)&&d.isExpired&&(console.log("OAuth token has expired."),u=Z(Z({},t.query),{},{redirect_url:t.asPath}),(0,w.nL)("/sign-in?".concat((0,w.uM)(u)),t.res)),!e.getInitialProps){n.next=12;break}return n.next=10,e.getInitialProps(a);case 10:return s=n.sent,n.abrupt("return",Z(Z({},s),{},{auth:d,currentGroupId:i,theme:l}));case 12:return n.abrupt("return",a);case 13:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}()}]),a}(p.Component)}},64888:function(e,n,t){var r=t(82394),o=t(26304),i=t(38626),c=t(71180),l=t(44897),d=t(42631),a=t(8059),u=t(70515),s=t(28598),f=["backgroundGradient","backgroundPanel","borderWidth","children","compact","paddingUnits","paddingUnitsHorizontal","paddingUnitsVertical"];function h(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function p(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,r.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 g=i.default.div.withConfig({displayName:"GradientButton__ButtonContentStyle",componentId:"sc-1gzx4r1-0"})(["border-radius:","px;height:fit-content;"," ",""],d.n_,(function(e){return!e.backgroundPanel&&"\n background-color: ".concat((e.theme.background||l.Z.background).page,";\n ")}),(function(e){return e.backgroundPanel&&"\n background-color: ".concat((e.theme.background||l.Z.background).panel,";\n ")}));n.Z=function(e){var n=e.backgroundGradient,t=void 0===n?a.TD:n,r=e.backgroundPanel,i=e.borderWidth,l=void 0===i?1:i,d=e.children,h=e.compact,m=e.paddingUnits,b=e.paddingUnitsHorizontal,v=void 0===b?1.5:b,x=e.paddingUnitsVertical,y=void 0===x?1.25:x,w=(0,o.Z)(e,f),j=v,k=y;return m&&(j=m,k=m),h&&(j*=.75,k*=.75),(0,s.jsx)(c.ZP,p(p({},w),{},{backgroundGradient:t,noPadding:!0,padding:"".concat(l,"px"),pointerEventsEnabled:!0,children:(0,s.jsx)(g,{backgroundPanel:r,children:(0,s.jsx)("div",{style:{paddingBottom:k*u.iI-l,paddingLeft:j*u.iI-l,paddingRight:j*u.iI-l,paddingTop:k*u.iI-l},children:d})})}))}},24944:function(e,n,t){t.d(n,{HL:function(){return d},lZ:function(){return a},qZ:function(){return l}});var r=t(38626),o=t(44897),i=t(42631),c=t(70515),l=r.default.div.withConfig({displayName:"indexstyle__DividerContainerStyle",componentId:"sc-uiq3r3-0"})([""," ",""],(function(e){return e.short&&"\n width: ".concat(21*c.iI,"px;\n ")}),(function(e){return!e.short&&"\n width: 100%;\n "})),d=r.default.div.withConfig({displayName:"indexstyle__DividerStyle",componentId:"sc-uiq3r3-1"})(["height:1px;"," "," "," "," "," ",""],(function(e){return!(e.light||e.medium)&&"\n background-color: ".concat((e.theme.monotone||o.Z.monotone).grey200,";\n ")}),(function(e){return e.muted&&"\n background-color: ".concat((e.theme.monotone||o.Z.monotone).grey500,";\n ")}),(function(e){return e.light&&"\n background-color: ".concat((e.theme.borders||o.Z.borders).light,";\n ")}),(function(e){return e.medium&&"\n background-color: ".concat((e.theme.borders||o.Z.borders).medium,";\n ")}),(function(e){return e.prominent&&"\n background-color: ".concat((e.theme.monotone||o.Z.monotone).grey300,";\n ")}),(function(e){return e.black&&"\n background-color: ".concat((e.theme.monotone||o.Z.monotone).black,";\n ")})),a=r.default.div.withConfig({displayName:"indexstyle__VerticalDividerStyle",componentId:"sc-uiq3r3-2"})(["width:1px;align-self:stretch;"," ",""],(function(e){return"\n border-left: ".concat(i.YF,"px ").concat(i.M8," ").concat((e.theme||o.Z).interactive.defaultBorder,";\n ")}),(function(e){var n=e.right;return"number"===typeof n&&"\n position: relative;\n right: ".concat(n,"px;\n ")}))},15338:function(e,n,t){var r=t(82394),o=t(26304),i=(t(82684),t(38276)),c=t(24944),l=t(28598),d=["short"];function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function u(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.short,t=void 0!==n&&n,r=(0,o.Z)(e,d);return(0,l.jsx)(c.qZ,{short:t,children:(0,l.jsx)(i.Z,u(u({},r),{},{children:(0,l.jsx)(c.HL,u({},r))}))})}},8059:function(e,n,t){t.d(n,{eW:function(){return b},Hv:function(){return l},FI:function(){return p},Sr:function(){return d},rK:function(){return h},TD:function(){return a},R2:function(){return u},AK:function(){return s},yr:function(){return m},J:function(){return f},RK:function(){return g}});var r=t(79633),o="#FF144D",i="#DEBB92",c="#2A60FE",l="linear-gradient(90deg, #4F49F1, #A260F5)",d="linear-gradient(90deg, ".concat(i,", ").concat("#CBFE00",")"),a="linear-gradient(90deg, ".concat(o,", #C86DD7)"),u="linear-gradient(90deg, ".concat("#95ECE2",", ").concat(c,")"),s="linear-gradient(90deg, ".concat("#9B6CA7",", ").concat(i,")"),f="linear-gradient(90deg, ".concat("#C72400",", ").concat(i,")"),h="linear-gradient(100.38deg, ".concat(o," 41.11%, #FF9559 86.99%)"),p="linear-gradient(100.38deg, #37A46F 41.11%, #67B2F8 86.99%)",g=("linear-gradient(100.38deg, ".concat("#6B50D7"," 41.11%, #677FFF 86.99%)"),"linear-gradient(100.38deg, ".concat(c," 41.11%, #B880FF 86.99%)")),m="linear-gradient(90deg, ".concat(r.t4," 20.13%, #2AB2FE)"),b="linear-gradient(90deg, ".concat(r.Ck," 0%, ").concat(r.t4," 53.13%, ").concat(r.X_," 100%)")},98464:function(e,n,t){var r=t(82684);n.Z=function(e){var n=(0,r.useRef)();return(0,r.useEffect)((function(){n.current=e}),[e]),n.current}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8432],{94629:function(e,t,r){r.d(t,{Z:function(){return S}});var n=r(82394),i=r(21831),o=r(82684),u=r(50724),c=r(82555),s=r(97618),d=r(70613),f=r(79626),a=r(68899),l=r(28598);function p(e,t){var r=e.children,n=e.noPadding;return(0,l.jsx)(a.HS,{noPadding:n,ref:t,children:r})}var h=o.forwardRef(p),b=r(62547),m=r(82571),v=r(98464),O=r(77417),j=r(46684),g=r(70515),y=r(53808),w=r(19183);function x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function P(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?x(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function k(e,t){e.addProjectBreadcrumbToCustomBreadcrumbs;var r=e.after,n=e.afterHeader,p=e.afterHidden,x=e.afterWidth,k=e.afterWidthOverride,S=e.appendBreadcrumbs,I=e.before,Z=e.beforeWidth,E=e.breadcrumbs,_=e.children,A=e.errors,C=e.headerMenuItems,H=e.headerOffset,M=e.hideAfterCompletely,W=e.mainContainerHeader,R=e.navigationItems,N=e.setAfterHidden,D=e.setErrors,B=e.subheaderChildren,U=e.subheaderNoPadding,T=e.title,z=e.uuid,G=(0,w.i)().width,F="dashboard_after_width_".concat(z),L="dashboard_before_width_".concat(z),Q=(0,o.useRef)(null),Y=(0,o.useState)(k?x:(0,y.U2)(F,x)),K=Y[0],V=Y[1],q=(0,o.useState)(!1),J=q[0],X=q[1],$=(0,o.useState)(I?Math.max((0,y.U2)(L,Z),13*g.iI):null),ee=$[0],te=$[1],re=(0,o.useState)(!1),ne=re[0],ie=re[1],oe=(0,o.useState)(null)[1],ue=(0,O.Z)().project,ce=[];E&&ce.push.apply(ce,(0,i.Z)(E)),null!==E&&void 0!==E&&E.length&&!S||!ue||null!==E&&void 0!==E&&E.length||ce.unshift({bold:!S,label:function(){return T}}),(0,o.useEffect)((function(){null===Q||void 0===Q||!Q.current||J||ne||null===oe||void 0===oe||oe(Q.current.getBoundingClientRect().width)}),[J,K,ne,ee,Q,oe,G]),(0,o.useEffect)((function(){J||(0,y.t8)(F,K)}),[p,J,K,F]),(0,o.useEffect)((function(){ne||(0,y.t8)(L,ee)}),[ne,ee,L]);var se=(0,v.Z)(x);return(0,o.useEffect)((function(){k&&se!==x&&V(x)}),[k,x,se]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d.Z,{title:T}),(0,l.jsx)(f.Z,{breadcrumbs:ce,menuItems:C}),(0,l.jsxs)(a.Nk,{ref:t,children:[0!==(null===R||void 0===R?void 0:R.length)&&(0,l.jsx)(a.lm,{showMore:!0,children:(0,l.jsx)(m.Z,{navigationItems:R,showMore:!0})}),(0,l.jsx)(s.Z,{flex:1,flexDirection:"column",children:(0,l.jsxs)(b.Z,{after:r,afterHeader:n,afterHeightOffset:j.Mz,afterHidden:p,afterMousedownActive:J,afterWidth:K,before:I,beforeHeightOffset:j.Mz,beforeMousedownActive:ne,beforeWidth:a.k1+(I?ee:0),headerOffset:H,hideAfterCompletely:!N||M,leftOffset:I?a.k1:null,mainContainerHeader:W,mainContainerRef:Q,setAfterHidden:N,setAfterMousedownActive:X,setAfterWidth:V,setBeforeMousedownActive:ie,setBeforeWidth:te,children:[B&&(0,l.jsx)(h,{noPadding:U,children:B}),_]})})]}),A&&(0,l.jsx)(u.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===D||void 0===D?void 0:D(null)},children:(0,l.jsx)(c.Z,P(P({},A),{},{onClose:function(){return null===D||void 0===D?void 0:D(null)}}))})]})}var S=o.forwardRef(k)},74395:function(e,t,r){r.d(t,{M:function(){return u},W:function(){return o}});var n=r(38626),i=r(46684),o=34*r(70515).iI,u=n.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);"],i.Mz)},24755:function(e,t,r){r.d(t,{B2:function(){return i},DQ:function(){return l},HY:function(){return d},Pl:function(){return n},SA:function(){return p},WH:function(){return s},fF:function(){return f},tC:function(){return a}});var n,i,o=r(19452),u=r(50178),c=r(72473),s="Workspace",d="Preferences",f="Git settings";!function(e){e.WORKSPACE="Workspace",e.USER_MANAGEMENT="User management"}(n||(n={})),function(e){e.ROLES="Roles",e.PERMISSIONS="Permissions",e.USERS="Users"}(i||(i={}));var a="Account",l="Profile",p=function(e){var t=e.owner,r=e.roles,p=e.project_access,h=[{items:[{Icon:c.Vz,linkProps:{href:"/settings/workspace/preferences"},uuid:d},{Icon:c.Zr,linkProps:{href:"/settings/workspace/sync-data"},uuid:f}],uuid:s}];if(!(0,u.YB)())return h;if(t||r===o.No.ADMIN||0!==(3&p)){var b=[{Icon:c.NO,linkProps:{href:"/settings/workspace/users"},uuid:i.USERS}];(0,u.Bw)()&&b.push.apply(b,[{Icon:c.G8,linkProps:{href:"/settings/workspace/roles"},uuid:i.ROLES},{Icon:c.QM,linkProps:{href:"/settings/workspace/permissions"},uuid:i.PERMISSIONS}]),h.push({items:b,uuid:n.USER_MANAGEMENT})}return h.concat([{items:[{Icon:c.kO,linkProps:{href:"/settings/account/profile"},uuid:l}],uuid:a}])}},28274:function(e,t,r){r.d(t,{Z:function(){return k}});var n=r(94629),i=r(82394),o=r(12691),u=r.n(o),c=r(55485),s=r(48670),d=r(38276),f=r(30160),a=r(38626),l=r(44897),p=r(70515),h=r(91437),b=(p.iI,a.default.div.withConfig({displayName:"indexstyle__SectionTitleStyle",componentId:"sc-1y8dyue-0"})(["padding:","px ","px;"],1*p.iI,2.5*p.iI)),m=a.default.div.withConfig({displayName:"indexstyle__ItemStyle",componentId:"sc-1y8dyue-1"})([""," padding:","px ","px;"," ",""],(0,h.eR)(),1.5*p.iI,2.5*p.iI,(function(e){return!e.selected&&"\n &:hover {\n background-color: ".concat((e.theme.background||l.Z.background).codeArea,";\n }\n ")}),(function(e){return e.selected&&"\n background-color: ".concat((e.theme.background||l.Z.background).codeTextarea,";\n ")})),v=r(28598),O=r(82684);function j(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?j(Object(r),!0).forEach((function(t){(0,i.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var y=function(e){var t=e.isItemSelected,r=e.sections;return(0,v.jsx)(d.Z,{py:p.Gg,children:null===r||void 0===r?void 0:r.map((function(e){var r=e.items,n=e.title,i=e.uuid;return(0,v.jsxs)(d.Z,{children:[(0,v.jsx)(b,{children:(0,v.jsx)(f.ZP,{bold:!0,muted:!0,small:!0,uppercase:!0,children:n?n():i})}),null===r||void 0===r?void 0:r.map((function(e){var r=e.Icon,n=e.label,o=e.linkProps,f=e.onClick,a=e.uuid,l=null===t||void 0===t?void 0:t(g(g({},e),{},{uuidWorkspace:i})),h=n?n():a,b=(0,v.jsx)(m,{selected:l,children:(0,v.jsxs)(c.ZP,{alignItems:"center",children:[r&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(r,{default:!l,size:1.75*p.iI}),(0,v.jsx)(d.Z,{mr:1})]}),h]})});return o?(0,O.createElement)(u(),g(g({},o),{},{key:a,passHref:!0}),(0,v.jsx)(s.Z,{block:!0,default:!l,noHoverUnderline:!0,noOutline:!0,sameColorAsText:l,children:b})):(0,v.jsx)(s.Z,{block:!0,noHoverUnderline:!0,noOutline:!0,onClick:f,preventDefault:!0,sameColorAsText:!0,children:b},a)}))]},i)}))})},w=r(74395),x=r(24755),P=r(50178);var k=function(e){var t=e.after,r=e.afterHeader,i=e.afterHidden,o=e.afterWidth,u=e.appendBreadcrumbs,c=e.breadcrumbs,s=e.children,d=e.hideAfterCompletely,f=e.setAfterHidden,a=e.title,l=e.uuidItemSelected,h=e.uuidWorkspaceSelected,b=(0,P.PR)()||{};return(0,v.jsx)(n.Z,{after:t,afterHeader:r,afterHidden:!t||i,afterWidth:t?o||50*p.iI:0,afterWidthOverride:!0,appendBreadcrumbs:u,before:(0,v.jsx)(w.M,{children:(0,v.jsx)(y,{isItemSelected:function(e){var t=e.uuid,r=e.uuidWorkspace;return h===r&&l===t},sections:(0,x.SA)(b)})}),beforeWidth:w.W,breadcrumbs:c,hideAfterCompletely:d,setAfterHidden:f,title:a||"Settings",uuid:"".concat(a||"settings","/index"),children:s})}},80022:function(e,t,r){function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.d(t,{Z:function(){return n}})},15544:function(e,t,r){function n(e){return n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(e)}r.d(t,{Z:function(){return n}})},13692:function(e,t,r){r.d(t,{Z:function(){return i}});var n=r(61049);function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&(0,n.Z)(e,t)}},93189:function(e,t,r){r.d(t,{Z:function(){return o}});var n=r(12539),i=r(80022);function o(e,t){if(t&&("object"===n(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.Z)(e)}},61049:function(e,t,r){function n(e,t){return n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(e,t)}r.d(t,{Z:function(){return n}})}}]);