mage-ai 0.8.11__py3-none-any.whl → 0.8.13__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 (120) hide show
  1. mage_ai/api/policies/BackfillPolicy.py +4 -1
  2. mage_ai/api/policies/BlockPolicy.py +13 -0
  3. mage_ai/api/policies/SyncPolicy.py +30 -0
  4. mage_ai/api/presenters/BlockPresenter.py +12 -1
  5. mage_ai/api/presenters/SyncPresenter.py +11 -0
  6. mage_ai/api/resources/BlockResource.py +8 -1
  7. mage_ai/api/resources/SyncResource.py +43 -0
  8. mage_ai/data_preparation/executors/pipeline_executor.py +9 -0
  9. mage_ai/data_preparation/executors/streaming_pipeline_executor.py +3 -1
  10. mage_ai/data_preparation/models/block/__init__.py +5 -3
  11. mage_ai/data_preparation/models/block/integration/__init__.py +59 -0
  12. mage_ai/data_preparation/models/constants.py +1 -0
  13. mage_ai/data_preparation/preferences.py +43 -0
  14. mage_ai/data_preparation/sync/__init__.py +17 -0
  15. mage_ai/data_preparation/sync/base_sync.py +7 -0
  16. mage_ai/data_preparation/sync/git_sync.py +26 -0
  17. mage_ai/data_preparation/templates/data_loaders/streaming/kafka.yaml +5 -0
  18. mage_ai/io/export_utils.py +1 -0
  19. mage_ai/io/postgres.py +46 -4
  20. mage_ai/orchestration/db/models.py +14 -0
  21. mage_ai/orchestration/pipeline_scheduler.py +12 -4
  22. mage_ai/server/constants.py +1 -1
  23. mage_ai/server/frontend_dist/404.html +2 -2
  24. mage_ai/server/frontend_dist/404.html.html +2 -2
  25. mage_ai/server/frontend_dist/_next/static/UuQKenirO2LDcepWvj6S9/_buildManifest.js +1 -0
  26. mage_ai/server/frontend_dist/_next/static/chunks/{1830-c3f709c7ca7f32ab.js → 1830-fbc03130dc8507d5.js} +1 -1
  27. mage_ai/server/frontend_dist/_next/static/chunks/2626-74904ade5b462127.js +1 -0
  28. mage_ai/server/frontend_dist/_next/static/chunks/3573-9b7b57411a327efa.js +1 -0
  29. mage_ai/server/frontend_dist/_next/static/chunks/434-b1cbc39e987f22cd.js +1 -0
  30. mage_ai/server/frontend_dist/_next/static/chunks/4846-688b5f0a015a543a.js +1 -0
  31. mage_ai/server/frontend_dist/_next/static/chunks/5477-4d9bab807c386355.js +1 -0
  32. mage_ai/server/frontend_dist/_next/static/chunks/7281-99f836e410857a68.js +1 -0
  33. mage_ai/server/frontend_dist/_next/static/chunks/7400-26ce25ec46728ef7.js +1 -0
  34. mage_ai/server/frontend_dist/_next/static/chunks/9767-30e239ed26aa848a.js +1 -0
  35. mage_ai/server/frontend_dist/_next/static/chunks/pages/{_app-44766f29c8c5b4ce.js → _app-169f9cc923ae39a5.js} +1 -1
  36. mage_ai/server/frontend_dist/_next/static/chunks/pages/{manage-14c743a0e2549486.js → manage-91c4fd203b4ac0e2.js} +1 -1
  37. mage_ai/server/frontend_dist/_next/static/chunks/pages/{pipeline-runs-21fe37061bdaaaea.js → pipeline-runs-10d54d54bfd9b39c.js} +1 -1
  38. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-971ea5bb26d66155.js +1 -0
  39. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-393cec015b843dd8.js +1 -0
  40. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-2963c971fdefd159.js +1 -0
  41. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-d1490dc3ea4f2e61.js +1 -0
  42. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/{block-runs-8f23f7ca9efcb069.js → block-runs-f513df1d43ba48f0.js} +1 -1
  43. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-393fa626a8873f74.js +1 -0
  44. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{monitors-8b08ec1aef4af4f2.js → monitors-d45f982e19978552.js} +1 -1
  45. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-463347405cafa133.js +1 -0
  46. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-a33f6fd5d91cd123.js +1 -0
  47. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-d4df695d51e01232.js +1 -0
  48. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-d83cf90749c8cd56.js +1 -0
  49. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-f6ee40bebf427cfa.js +1 -0
  50. mage_ai/server/frontend_dist/_next/static/chunks/pages/{pipelines-1c0627627c21667f.js → pipelines-db2903bdeeeae791.js} +1 -1
  51. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/account/profile-19a5aa2de681b54a.js +1 -0
  52. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-e1b34b9a44fc4688.js +1 -0
  53. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/sync_data-4ae244876881cfe1.js +1 -0
  54. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{users-c128672e053a4c30.js → users-b8aeca222449e041.js} +1 -1
  55. mage_ai/server/frontend_dist/_next/static/chunks/pages/{terminal-6feb9848233a6c6e.js → terminal-482bd79cb26b8f73.js} +1 -1
  56. mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-81b7327ed8e015a4.js +1 -0
  57. mage_ai/server/frontend_dist/index.html +2 -2
  58. mage_ai/server/frontend_dist/manage.html +4 -4
  59. mage_ai/server/frontend_dist/pipeline-runs.html +5 -5
  60. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +5 -5
  61. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +5 -5
  62. mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +2 -2
  63. mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +5 -5
  64. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +5 -5
  65. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +5 -5
  66. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +5 -5
  67. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +5 -5
  68. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +5 -5
  69. mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +5 -5
  70. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +5 -5
  71. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +5 -5
  72. mage_ai/server/frontend_dist/pipelines/[pipeline].html +2 -2
  73. mage_ai/server/frontend_dist/pipelines.html +5 -5
  74. mage_ai/server/frontend_dist/settings/account/profile.html +5 -5
  75. mage_ai/server/frontend_dist/settings/workspace/preferences.html +5 -5
  76. mage_ai/server/frontend_dist/settings/workspace/sync_data.html +20 -0
  77. mage_ai/server/frontend_dist/settings/workspace/users.html +5 -5
  78. mage_ai/server/frontend_dist/settings.html +2 -2
  79. mage_ai/server/frontend_dist/sign-in.html +4 -4
  80. mage_ai/server/frontend_dist/terminal.html +5 -5
  81. mage_ai/server/frontend_dist/test.html +3 -3
  82. mage_ai/server/frontend_dist/triggers.html +5 -5
  83. mage_ai/server/server.py +1 -0
  84. mage_ai/server/websocket_server.py +1 -1
  85. mage_ai/shared/config.py +4 -1
  86. mage_ai/streaming/sources/kafka.py +49 -3
  87. mage_ai/tests/data_preparation/test_templates.py +5 -0
  88. mage_ai/tests/streaming/sources/test_kafka.py +17 -0
  89. {mage_ai-0.8.11.dist-info → mage_ai-0.8.13.dist-info}/METADATA +3 -1
  90. {mage_ai-0.8.11.dist-info → mage_ai-0.8.13.dist-info}/RECORD +96 -89
  91. mage_ai/server/frontend_dist/_next/static/Bmwp0WdXRDJpCFVPOVdc9/_buildManifest.js +0 -1
  92. mage_ai/server/frontend_dist/_next/static/chunks/2249-70929b8c547bbc18.js +0 -1
  93. mage_ai/server/frontend_dist/_next/static/chunks/2426-115f8871a2e28f8c.js +0 -1
  94. mage_ai/server/frontend_dist/_next/static/chunks/434-69ddfacd3e93f2db.js +0 -1
  95. mage_ai/server/frontend_dist/_next/static/chunks/4846-b4ced91dc0e9fba9.js +0 -1
  96. mage_ai/server/frontend_dist/_next/static/chunks/5944-757b7898608a65e1.js +0 -1
  97. mage_ai/server/frontend_dist/_next/static/chunks/6579-2b5d8d39472d85c0.js +0 -1
  98. mage_ai/server/frontend_dist/_next/static/chunks/7400-1430ec3874c1fdee.js +0 -1
  99. mage_ai/server/frontend_dist/_next/static/chunks/8961-697fe5d4db44d909.js +0 -1
  100. mage_ai/server/frontend_dist/_next/static/chunks/9140-6f67e0879394373d.js +0 -1
  101. mage_ai/server/frontend_dist/_next/static/chunks/9767-3f852fd90cf7857f.js +0 -1
  102. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-678569cf24a2e10d.js +0 -1
  103. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-0ed0d70bc659c236.js +0 -1
  104. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-f96da0174abb54b5.js +0 -1
  105. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-5ccc75887776efb0.js +0 -1
  106. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-f83ab9de4094e1b0.js +0 -1
  107. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-73ced07cc98a4968.js +0 -1
  108. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-67d23509a0c9a1b8.js +0 -1
  109. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-4084a44baf91f30e.js +0 -1
  110. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-ae970171cfe98c51.js +0 -1
  111. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-b0b91245d3299bdf.js +0 -1
  112. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/account/profile-acd7ee47219fee3d.js +0 -1
  113. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-07bda506f68974fb.js +0 -1
  114. mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-e0172c422c95eda9.js +0 -1
  115. /mage_ai/server/frontend_dist/_next/static/{Bmwp0WdXRDJpCFVPOVdc9 → UuQKenirO2LDcepWvj6S9}/_middlewareManifest.js +0 -0
  116. /mage_ai/server/frontend_dist/_next/static/{Bmwp0WdXRDJpCFVPOVdc9 → UuQKenirO2LDcepWvj6S9}/_ssgManifest.js +0 -0
  117. {mage_ai-0.8.11.dist-info → mage_ai-0.8.13.dist-info}/LICENSE +0 -0
  118. {mage_ai-0.8.11.dist-info → mage_ai-0.8.13.dist-info}/WHEEL +0 -0
  119. {mage_ai-0.8.11.dist-info → mage_ai-0.8.13.dist-info}/entry_points.txt +0 -0
  120. {mage_ai-0.8.11.dist-info → mage_ai-0.8.13.dist-info}/top_level.txt +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[434],{72454:function(e,n,t){t.d(n,{E7:function(){return p},HS:function(){return h},Nk:function(){return u},k1:function(){return a},lm:function(){return f}});var i=t(9518),r=t(23831),o=t(73942),l=t(3055),s=t(49125),d=t(37391),c=t(90880),a=s.cd*s.iI+5*s.iI+s.cd*s.iI,u=i.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%;",""],l.Mz,l.Mz,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).page,";\n ")})),f=i.default.div.withConfig({displayName:"indexstyle__VerticalNavigationStyle",componentId:"sc-ecogjt-1"})(["padding:","px;",""],s.cd*s.iI,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).panel,";\n border-right: 1px solid ").concat((e.theme.borders||r.Z.borders).medium,";\n ")})),h=i.default.div.withConfig({displayName:"indexstyle__SubheaderStyle",componentId:"sc-ecogjt-2"})(["width:fit-content;padding:","px;position:relative;z-index:2;",""],s.cd*s.iI,(function(e){return"\n border-bottom: 1px solid ".concat((e.theme.borders||r.Z.borders).medium,";\n ")})),p=(i.default.div.withConfig({displayName:"indexstyle__ContentStyle",componentId:"sc-ecogjt-3"})([""," overflow:auto;",""],d.w5,(function(e){return"\n height: calc(100vh - ".concat(l.Mz+(e.heightOffset||0),"px);\n ")})),i.default.div.withConfig({displayName:"indexstyle__NavigationItemStyle",componentId:"sc-ecogjt-4"})(["display:flex;align-items:center;justify-content:center;padding:","px;border-radius:","px;",""],s.iI,o.n_,(function(e){return e.primary&&"\n ".concat((0,c.eR)(),"\n background: ").concat((e.theme||r.Z).chart.backgroundPrimary,";\n border: 1px solid ").concat((e.theme||r.Z).feature.active,";\n\n &:hover {\n background-color: ").concat((e.theme||r.Z).interactive.linkSecondary,";\n }\n ")})))},70434:function(e,n,t){t.d(n,{Z:function(){return z}});var i=t(21831),r=t(82684),o=t(93461),l=t(57384),s=t(19767),d=t(72454),c=t(28598);function a(e,n){var t=e.children;return(0,c.jsx)(d.HS,{ref:n,children:t})}var u=r.forwardRef(a),f=t(32063),h=t(34376),p=t(61519),x=t(57639),C=t(882),v=t(11135);var g=function(e){var n=e.size;return(0,c.jsxs)("svg",{width:n,height:n,viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.86364 2.5H4.13636C3.68449 2.5 3.31818 2.94772 3.31818 3.5V7.5C3.31818 8.05228 3.68449 8.5 4.13636 8.5H9.86364C10.3155 8.5 10.6818 8.05228 10.6818 7.5V3.5C10.6818 2.94772 10.3155 2.5 9.86364 2.5ZM4.13636 1.5C3.23263 1.5 2.5 2.39543 2.5 3.5V7.5C2.5 8.60457 3.23263 9.5 4.13636 9.5H5.5V16.1667V16.5H4.13636C3.23263 16.5 2.5 17.3954 2.5 18.5V22.5C2.5 23.6046 3.23263 24.5 4.13636 24.5H9.86364C10.7674 24.5 11.5 23.6046 11.5 22.5V18.5C11.5 17.3954 10.7674 16.5 9.86364 16.5H6.5V16.1667C6.5 14.9394 7.61929 13.9444 9 13.9444H16C17.933 13.9444 19.5 12.5516 19.5 10.8333V9.5H21.8636C22.7674 9.5 23.5 8.60457 23.5 7.5V3.5C23.5 2.39543 22.7674 1.5 21.8636 1.5H16.1364C15.2326 1.5 14.5 2.39543 14.5 3.5V7.5C14.5 8.60457 15.2326 9.5 16.1364 9.5H18.5V10.8333C18.5 12.0606 17.3807 13.0556 16 13.0556H9C8.02066 13.0556 7.13526 13.4131 6.5 13.9893V9.5H9.86364C10.7674 9.5 11.5 8.60457 11.5 7.5V3.5C11.5 2.39543 10.7674 1.5 9.86364 1.5H4.13636ZM9.86364 17.5H6.5H5.5H4.13636C3.68449 17.5 3.31818 17.9477 3.31818 18.5V22.5C3.31818 23.0523 3.68449 23.5 4.13636 23.5H9.86364C10.3155 23.5 10.6818 23.0523 10.6818 22.5V18.5C10.6818 17.9477 10.3155 17.5 9.86364 17.5ZM16.1364 2.5H21.8636C22.3155 2.5 22.6818 2.94772 22.6818 3.5V7.5C22.6818 8.05228 22.3155 8.5 21.8636 8.5H16.1364C15.6845 8.5 15.3182 8.05228 15.3182 7.5V3.5C15.3182 2.94772 15.6845 2.5 16.1364 2.5Z",fill:"url(#paint0_linear_2738_141228)"}),(0,c.jsx)("defs",{children:(0,c.jsxs)("linearGradient",{id:"paint0_linear_2738_141228",x1:"2.5",y1:"13",x2:"23.5",y2:"13",gradientUnits:"userSpaceOnUse",children:[(0,c.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,c.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})},j=t(29664);var m=function(e){var n=e.size;return(0,c.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.65256 15.8011L4.68226 20.7714C4.14193 21.3117 3.26588 21.3117 2.72556 20.7714C2.18523 20.231 2.18523 19.355 2.72556 18.8147L7.60553 13.9347C9.03 12.5102 9.91996 10.6383 10.1255 8.6343L10.3663 6.28587C10.4455 5.51385 10.7884 4.7927 11.3371 4.24393L11.9728 3.60825C13.233 2.34803 15.1222 2.10014 16.6299 2.86457L13.621 5.87349C12.7214 6.77304 12.7214 8.23149 13.621 9.13104L13.9934 9.50349C14.893 10.403 16.3514 10.403 17.251 9.50349L20.2599 6.49457C21.0243 8.00224 20.7764 9.89143 19.5162 11.1516L18.786 11.8818C18.2751 12.3928 17.6175 12.7318 16.9049 12.8515L14.634 13.2332C12.7469 13.5504 11.0056 14.448 9.65256 15.8011ZM11.0889 2.72437C12.8414 0.971949 15.5214 0.712489 17.5485 1.94599C17.9008 2.16036 18.2333 2.41982 18.5379 2.72436L14.5049 6.75738C14.0935 7.16877 14.0935 7.83577 14.5049 8.24716L14.8773 8.61961C15.2887 9.031 15.9557 9.031 16.3671 8.61961L20.4001 4.5866C20.7046 4.89114 20.9641 5.22371 21.1785 5.57599C22.412 7.60309 22.1525 10.2831 20.4001 12.0355L19.6699 12.7657C18.9751 13.4605 18.081 13.9214 17.1121 14.0842L14.8412 14.4659C13.2104 14.74 11.7057 15.5157 10.5364 16.6849L5.56614 21.6552C4.53766 22.6837 2.87016 22.6837 1.84167 21.6552C0.81319 20.6268 0.813193 18.9593 1.84168 17.9308L6.72165 13.0508C7.94285 11.8296 8.70581 10.2248 8.88201 8.50678L9.12286 6.15835C9.23136 5.10035 9.70121 4.11209 10.4533 3.36005L11.0889 2.72437ZM4.88014 19.3535C5.0754 19.1582 5.0754 18.8417 4.88014 18.6464C4.68488 18.4511 4.3683 18.4511 4.17303 18.6464L3.64631 19.1731C3.45105 19.3684 3.45105 19.685 3.64631 19.8802C3.84158 20.0755 4.15816 20.0755 4.35342 19.8802L4.88014 19.3535Z",fill:"url(#paint0_linear_7839_33197)"}),(0,c.jsx)("defs",{children:(0,c.jsxs)("linearGradient",{id:"paint0_linear_7839_33197",x1:"1.07031",y1:"11.8041",x2:"21.9428",y2:"11.8041",gradientUnits:"userSpaceOnUse",children:[(0,c.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,c.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})};var w=function(e){var n=e.size;return(0,c.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.5 18V6c0-1.38071 1.11929-2.5 2.5-2.5h12c1.3807 0 2.5 1.11929 2.5 2.5v12c0 1.3807-1.1193 2.5-2.5 2.5H6c-1.38071 0-2.5-1.1193-2.5-2.5zM2 18V6c0-2.20914 1.79086-4 4-4h12c2.2091 0 4 1.79086 4 4v12c0 2.2091-1.7909 4-4 4H6c-2.20914 0-4-1.7909-4-4zm9.0935-8.41432c.3235-.25876.3759-.73073.1172-1.05417-.2588-.32345-.7308-.37589-1.0542-.11713L7.03148 10.9144c-.17791.1423-.28148.3578-.28148.5856 0 .2279.10357.4433.28148.5857l3.12502 2.5c.3234.2587.7954.2063 1.0542-.1172.2587-.3234.2063-.7954-.1172-1.0541L8.70058 11.5l2.39292-1.91432zM14.5 13.25c-.4142 0-.75.3358-.75.75s.3358.75.75.75H17c.4142 0 .75-.3358.75-.75s-.3358-.75-.75-.75h-2.5z",fill:"url(#paint0_linear_1244_32583)"}),(0,c.jsxs)("defs",{children:[(0,c.jsx)("clipPath",{id:"clip0_5247_222548",children:(0,c.jsx)("rect",{width:"24",height:"24",fill:"white"})}),(0,c.jsxs)("linearGradient",{id:"paint0_linear_1244_32583",x1:"1.07031",y1:"11.8041",x2:"21.9428",y2:"11.8041",gradientUnits:"userSpaceOnUse",children:[(0,c.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,c.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})]})]})},_=t(86673),b=t(19711),H=t(46261),V=t(10503),Z=t(99994),y=t(49125),I=3*y.iI;var M=function(e){var n=e.navigationItems,t=(0,h.useRouter)().pathname,i=(0,r.useMemo)((function(){var e=[{Icon:V.rV,IconSelected:g,id:"pipelines",label:function(){return"Pipelines"},linkProps:{href:"/pipelines"}},{Icon:V.Pf,IconSelected:j.Z,id:"triggers",label:function(){return"Triggers"},linkProps:{href:"/triggers"}},{Icon:V.pd,IconSelected:p.Z,id:"pipeline-runs",label:function(){return"Pipelines runs"},linkProps:{href:"/pipeline-runs"}},{Icon:V.oI,IconSelected:w,id:"terminal",label:function(){return"Terminal"},linkProps:{href:"/terminal"}},{Icon:V.Zr,IconSelected:m,id:"settings",label:function(){return"Settings"},linkProps:{href:"/settings"}}];return(n||e).map((function(e,n){var i=e.Icon,r=e.IconSelected,o=e.id,l=e.isSelected,s=e.label,a=e.linkProps,u=l?l(t):!!t.match(new RegExp("^/".concat(o,"[/]*"))),f=u&&r?r:i;return(0,c.jsx)(_.Z,{mt:n>=1?y.cd:0,children:(0,c.jsxs)(H.Z,{height:5*y.iI,label:s(),size:null,widthFitContent:!0,children:[u&&r&&(0,c.jsx)(C.Z,{backgroundGradient:Z.yr,backgroundPanel:!0,basic:!0,borderWidth:2,linkProps:a,paddingUnits:1,children:(0,c.jsx)("div",{style:{height:I,width:I},children:(0,c.jsx)(f,{muted:!0,size:I})})}),!u&&(0,c.jsx)(v.ZP,{block:!0,noHoverUnderline:!0,noPadding:!0,linkProps:a,sameColorAsText:!0,uuid:"VerticalNavigation/".concat(o),children:(0,c.jsx)(d.E7,{primary:!f,children:f?(0,c.jsx)(f,{muted:!0,size:I}):(0,c.jsx)(b.ZP,{children:"Edit"})})})]})},"button-".concat(o))}))}),[n,t]);return(0,c.jsx)(x.Z,{children:i})},k=t(82531),S=t(66166),L=t(3055),E=t(91427),P=t(24141);var z=function(e){var n,t=e.after,a=e.afterHidden,h=e.afterWidth,p=e.afterWidthOverride,x=e.before,C=e.beforeWidth,v=e.breadcrumbs,g=e.children,j=e.headerMenuItems,m=e.navigationItems,w=e.subheaderChildren,_=e.title,b=e.uuid,H=(0,P.i)().width,V="dashboard_after_width_".concat(b),Z="dashboard_before_width_".concat(b),I=(0,r.useRef)(null),z=(0,r.useState)(p?h:(0,E.U2)(V,h)),R=z[0],U=z[1],A=(0,r.useState)(!1),B=A[0],N=A[1],O=(0,r.useState)(x?Math.max((0,E.U2)(Z,C),13*y.iI):null),F=O[0],W=O[1],D=(0,r.useState)(!1),G=D[0],T=D[1],q=(0,r.useState)(null)[1],J=k.ZP.projects.list({},{revalidateOnFocus:!1}).data,K=null===J||void 0===J?void 0:J.projects,Q=[];v?Q.push.apply(Q,(0,i.Z)(v)):(null===K||void 0===K?void 0:K.length)>=1&&Q.push.apply(Q,[{label:function(){var e;return null===(e=K[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},{bold:!0,label:function(){return _}}]),(0,r.useEffect)((function(){null===I||void 0===I||!I.current||B||G||null===q||void 0===q||q(I.current.getBoundingClientRect().width)}),[B,R,G,F,I,q,H]),(0,r.useEffect)((function(){B||(0,E.t8)(V,R)}),[a,B,R,V]),(0,r.useEffect)((function(){G||(0,E.t8)(Z,F)}),[G,F,Z]);var X=(0,S.Z)(h);return(0,r.useEffect)((function(){p&&X!==h&&U(h)}),[p,h,X]),(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(l.Z,{title:_}),(0,c.jsx)(s.Z,{breadcrumbs:Q,menuItems:j,project:null===K||void 0===K?void 0:K[0],version:null===K||void 0===K||null===(n=K[0])||void 0===n?void 0:n.version}),(0,c.jsxs)(d.Nk,{children:[0!==(null===m||void 0===m?void 0:m.length)&&(0,c.jsx)(d.lm,{children:(0,c.jsx)(M,{navigationItems:m})}),(0,c.jsx)(o.Z,{flex:1,flexDirection:"column",children:(0,c.jsxs)(f.Z,{after:t,afterHeightOffset:L.Mz,afterHidden:a,afterMousedownActive:B,afterWidth:R,before:x,beforeHeightOffset:L.Mz,beforeMousedownActive:G,beforeWidth:d.k1+(x?F:0),hideAfterCompletely:!0,leftOffset:x?d.k1:null,mainContainerRef:I,setAfterMousedownActive:N,setAfterWidth:U,setBeforeMousedownActive:T,setBeforeWidth:W,children:[w&&(0,c.jsx)(u,{children:w}),g]})})]})]})}},61519:function(e,n,t){var i=t(28598);n.Z=function(e){var n=e.size;return(0,i.jsxs)("svg",{width:n,height:n,viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 3H9V9H3V3ZM10 2V9H17V16H24V24H17H16H10H9H2V17V16V10V9V2H10ZM16 23V17H10V23H16ZM17 23H23V17H17V23ZM16 16V10H10V16H16ZM9 10V16H3V10H9ZM9 17V23H3V17H9Z",fill:"url(#paint0_linear_2738_140355)"}),(0,i.jsx)("defs",{children:(0,i.jsxs)("linearGradient",{id:"paint0_linear_2738_140355",x1:"2",y1:"13",x2:"24",y2:"13",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})}},29664:function(e,n,t){var i=t(28598);n.Z=function(e){var n=e.size;return(0,i.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.5 12C21.5 17.2467 17.2467 21.5 12 21.5C6.75329 21.5 2.5 17.2467 2.5 12C2.5 6.75329 6.75329 2.5 12 2.5C17.2467 2.5 21.5 6.75329 21.5 12ZM23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM12.75 7C12.75 6.58579 12.4142 6.25 12 6.25C11.5858 6.25 11.25 6.58579 11.25 7V13C11.25 13.4142 11.5858 13.75 12 13.75H16C16.4142 13.75 16.75 13.4142 16.75 13C16.75 12.5858 16.4142 12.25 16 12.25H12.75V7Z",fill:"url(#paint0_linear_2798_59379)"}),(0,i.jsx)("defs",{children:(0,i.jsxs)("linearGradient",{id:"paint0_linear_2798_59379",x1:"1",y1:"12",x2:"23",y2:"12",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4846],{65597:function(e,n,t){t.d(n,{f:function(){return l}});var r=t(9518),i=t(23831),o=t(49125),c=t(73942),l=r.default.div.withConfig({displayName:"Tablestyle__PopupContainerStyle",componentId:"sc-8ammqd-0"})(["position:absolute;max-height:","px;z-index:10;border-radius:","px;padding:","px;"," "," "," ",""],58*o.iI,c.TR,2*o.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||i.Z.shadow).popup,";\n background-color: ").concat((e.theme.interactive||i.Z.interactive).defaultBackground,";\n ")}),(function(e){return e.leftOffset&&"\n left: ".concat(e.leftOffset,"px;\n ")}),(function(e){return e.topOffset&&"\n top: ".concat(e.topOffset,"px;\n ")}),(function(e){return e.width&&"\n width: ".concat(e.width,"px;\n ")}))},97496:function(e,n,t){var r=t(75582),i=t(12691),o=t.n(i),c=t(34376),l=t.n(c),u=t(82684),s=t(83455),a=t(60328),d=t(47999),p=t(93461),f=t(67971),h=t(10919),g=t(47409),b=t(86673),j=t(54283),x=t(87815),m=t(19711),Z=t(82531),v=t(23831),C=t(73942),O=t(10503),_=t(65597),w=t(93348),I=t(45838),y=t(49125),E=t(19395),P=t(96510),k=t(28598);function D(e){var n=e.cancelingRunId,t=e.disabled,i=e.isLoadingCancelPipeline,o=e.onCancel,c=e.onSuccess,l=e.pipelineRun,p=e.setCancelingRunId,h=e.setShowConfirmationId,x=e.showConfirmationId,I=l||{},E=I.id,D=I.pipeline_schedule_id,N=I.pipeline_schedule_token,L=I.pipeline_schedule_type,A=I.status,S=i&&E===n&&g.V.RUNNING===A,R=(0,s.Db)(w.Xm.API===L&&N?Z.ZP.pipeline_runs.pipeline_schedules.useCreateWithParent(D,N):Z.ZP.pipeline_runs.pipeline_schedules.useCreate(D),{onSuccess:function(e){return(0,P.wD)(e,{callback:function(){c()},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.message;console.log(t,r)}})}}),T=(0,r.Z)(R,1)[0],V=(0,u.useCallback)((function(){h(null),T({pipeline_run:{execution_date:null===l||void 0===l?void 0:l.execution_date,pipeline_schedule_id:null===l||void 0===l?void 0:l.pipeline_schedule_id,pipeline_uuid:null===l||void 0===l?void 0:l.pipeline_uuid,variables:null===l||void 0===l?void 0:l.variables}})}),[T,l,h]),U=(0,u.useCallback)((function(){h(null),p(E),o({id:E,status:g.V.CANCELLED})}),[o,E,p,h]);return(0,k.jsxs)("div",{style:{position:"relative"},children:[(0,k.jsx)(a.Z,{backgroundColor:S&&v.Z.accent.yellow,beforeIcon:g.V.INITIAL!==A&&(0,k.jsxs)(k.Fragment,{children:[g.V.COMPLETED===A&&(0,k.jsx)(O.Jr,{size:2*y.iI}),[g.V.FAILED,g.V.CANCELLED].includes(A)&&(0,k.jsx)(O.Py,{inverted:g.V.CANCELLED===A,size:2*y.iI}),[g.V.RUNNING].includes(A)&&(0,k.jsx)(j.Z,{color:S?v.Z.status.negative:v.Z.monotone.white,small:!0})]}),borderRadius:C.D7,danger:g.V.FAILED===A,default:g.V.INITIAL===A,disabled:t,loading:!l,onClick:function(){return h(E)},padding:"6px",primary:g.V.RUNNING===A&&!S,warning:g.V.CANCELLED===A,children:t?"Ready":S?"Canceling":g.D[A]}),(0,k.jsx)(d.Z,{onClickOutside:function(){return h(null)},open:x===E,children:(0,k.jsxs)(_.f,{children:[[g.V.RUNNING,g.V.INITIAL].includes(A)&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(m.ZP,{bold:!0,color:"#9ECBFF",children:"Run is in progress"}),(0,k.jsx)(b.Z,{mb:1}),(0,k.jsxs)(m.ZP,{children:["This pipeline run is currently ongoing. Retrying will cancel",(0,k.jsx)("br",{}),"the current pipeline run."]}),(0,k.jsx)(m.ZP,{}),(0,k.jsx)(b.Z,{mt:1,children:(0,k.jsxs)(f.Z,{children:[(0,k.jsx)(a.Z,{onClick:function(){U(),V()},children:"Retry run"}),(0,k.jsx)(b.Z,{ml:1}),(0,k.jsx)(a.Z,{onClick:U,children:"Cancel run"})]})})]}),[g.V.CANCELLED,g.V.FAILED,g.V.COMPLETED].includes(A)&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)(m.ZP,{bold:!0,color:"#9ECBFF",children:["Run ",A]}),(0,k.jsx)(b.Z,{mb:1}),(0,k.jsx)(m.ZP,{children:"Retry the run with changes you have made to the pipeline."}),(0,k.jsx)(b.Z,{mb:1}),(0,k.jsx)(a.Z,{onClick:V,children:"Retry run"})]})]})})]})}n.Z=function(e){var n=e.disableRowSelect,t=e.emptyMessage,i=void 0===t?"No runs available":t,c=e.fetchPipelineRuns,d=e.onClickRow,j=e.pipelineRuns,v=e.selectedRun,_=(0,u.useState)(null),w=_[0],N=_[1],L=(0,u.useState)(null),A=L[0],S=L[1],R=(0,s.Db)((function(e){var n=e.id,t=e.status;return Z.ZP.pipeline_runs.useUpdate(n)({pipeline_run:{status:t}})}),{onSuccess:function(e){return(0,P.wD)(e,{callback:function(){N(null),c()},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.message;N(null),console.log(t,r)}})}}),T=(0,r.Z)(R,2),V=T[0],U=T[1].isLoading,M=[null,1,2,1,1,null],F=[{uuid:"Status"},{uuid:"Pipeline UUID"},{uuid:"Date"},{uuid:"Trigger"},{uuid:"Block runs"},{uuid:"Completed"},{uuid:"Logs"}];return!n&&d&&(M.push(null),F.push({label:function(){return""},uuid:"action"})),(0,k.jsx)(I.cl,{minHeight:30*y.iI,overflowVisible:!!A,children:0===(null===j||void 0===j?void 0:j.length)?(0,k.jsx)(b.Z,{px:3,py:1,children:(0,k.jsx)(m.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:i})}):(0,k.jsx)(x.Z,{columnFlex:M,columns:F,isSelectedRow:function(e){return!n&&j[e].id===(null===v||void 0===v?void 0:v.id)},onClickRow:n?null:d,rowVerticalPadding:6,rows:null===j||void 0===j?void 0:j.map((function(e,t){var r=e.block_runs_count,i=e.completed_at,u=e.execution_date,s=e.id,x=e.pipeline_schedule_id,Z=e.pipeline_schedule_name,v=e.pipeline_uuid,_=e.status,I=!s&&!_,P=[];return P=t>0&&j[t-1].execution_date===e.execution_date&&j[t-1].pipeline_schedule_id===e.pipeline_schedule_id?[(0,k.jsx)(b.Z,{ml:1,children:(0,k.jsxs)(f.Z,{alignItems:"center",children:[(0,k.jsx)(O.TT,{size:2*y.iI,useStroke:!0}),(0,k.jsx)(a.Z,{borderRadius:C.D7,notClickable:!0,padding:"6px",children:(0,k.jsx)(m.ZP,{muted:!0,children:g.D[_]})})]})},"row_status"),(0,k.jsx)(m.ZP,{default:!0,monospace:!0,muted:!0,children:v},"row_pipeline_uuid"),(0,k.jsx)(m.ZP,{default:!0,monospace:!0,muted:!0,children:"-"},"row_date_retry"),(0,k.jsx)(m.ZP,{default:!0,monospace:!0,muted:!0,children:"-"},"row_trigger_retry"),(0,k.jsx)(o(),{as:"/pipelines/".concat(v,"/runs/").concat(s),href:"/pipelines/[pipeline]/runs/[run]",passHref:!0,children:(0,k.jsx)(h.Z,{bold:!0,muted:!0,children:"See block runs (".concat(r,")")})},"row_block_runs"),(0,k.jsx)(m.ZP,{monospace:!0,muted:!0,children:i&&(0,E.eI)(i).toISOString().split(".")[0]||"-"},"row_completed"),(0,k.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return l().push("/pipelines/".concat(v,"/logs?pipeline_run_id[]=").concat(s))},children:(0,k.jsx)(O.B4,{default:!0,size:2*y.iI})},"row_logs")]:[(0,k.jsx)(D,{cancelingRunId:w,disabled:I,isLoadingCancelPipeline:U,onCancel:V,onSuccess:c,pipelineRun:e,setCancelingRunId:N,setShowConfirmationId:S,showConfirmationId:A},"row_retry_button"),(0,k.jsx)(m.ZP,{default:!0,monospace:!0,children:v},"row_pipeline_uuid"),(0,k.jsx)(m.ZP,{default:!0,monospace:!0,children:u&&(0,E.eI)(u).toISOString().split(".")[0]||"-"},"row_date"),(0,k.jsx)(o(),{as:"/pipelines/".concat(v,"/triggers/").concat(x),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,k.jsx)(h.Z,{bold:!0,sameColorAsText:!0,children:Z})},"row_trigger"),(0,k.jsx)(o(),{as:"/pipelines/".concat(v,"/runs/").concat(s),href:"/pipelines/[pipeline]/runs/[run]",passHref:!0,children:(0,k.jsx)(h.Z,{bold:!0,disabled:I,sameColorAsText:!0,children:I?"":"See block runs (".concat(r,")")})},"row_block_runs"),(0,k.jsx)(m.ZP,{default:!0,monospace:!0,children:i&&(0,E.eI)(i).toISOString().split(".")[0]||"-"},"row_completed"),(0,k.jsx)(a.Z,{default:!0,disabled:I,iconOnly:!0,noBackground:!0,onClick:function(){return l().push("/pipelines/".concat(v,"/logs?pipeline_run_id[]=").concat(s))},children:(0,k.jsx)(O.B4,{default:!0,size:2*y.iI})},"row_item_13")],!n&&d&&P.push((0,k.jsx)(p.Z,{flex:1,justifyContent:"flex-end",children:(0,k.jsx)(O._Q,{default:!0,size:2*y.iI})})),P})),uuid:"pipeline-runs"})})}},19395:function(e,n,t){t.d(n,{IJ:function(){return a},Vx:function(){return p},eI:function(){return d},gU:function(){return h},tL:function(){return f},vJ:function(){return g}});var r,i,o=t(82394),c=t(92083),l=t.n(c);function u(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 s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?u(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function a(e){return null===e||void 0===e?void 0:e.reduce((function(e,n){var t=n.block_uuid,r=n.completed_at,i=n.started_at,c=n.status,u=null;i&&r&&(u=l()(r).valueOf()-l()(i).valueOf());return s(s({},e),{},(0,o.Z)({},t,{runtime:u,status:c}))}),{})}function d(e){if(!e)return null;var n=new Date(l()(e).valueOf()),t=Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds());return new Date(t)}function p(e){return d(e).toISOString().split(".")[0]}!function(e){e.DAY="day",e.HOUR="hour",e.MINUTE="minute",e.SECOND="second"}(i||(i={}));var f=(r={},(0,o.Z)(r,i.DAY,86400),(0,o.Z)(r,i.HOUR,3600),(0,o.Z)(r,i.MINUTE,60),(0,o.Z)(r,i.SECOND,1),r);function h(e){var n=i.SECOND,t=e;return e%86400===0?(t/=86400,n=i.DAY):e%3600===0?(t/=3600,n=i.HOUR):e%60===0&&(t/=60,n=i.MINUTE),{time:t,unit:n}}function g(e,n){return e*f[n]}},51099:function(e,n,t){t.d(n,{Q:function(){return a}});t(82684);var r=t(60328),i=t(67971),o=t(86673),c=t(10503),l=t(73899),u=t(49125),s=t(28598),a=22;n.Z=function(e){var n=e.page,t=e.maxPages,a=e.onUpdate,d=e.totalPages,p=[],f=t;if(f>d)p=Array.from({length:d},(function(e,n){return n}));else{var h=Math.floor(f/2),g=n-h;n+h>=d?(g=d-f+2,f-=2):n-h<=0?(g=0,f-=2):(f-=4,g=n-Math.floor(f/2)),p=Array.from({length:f},(function(e,n){return n+g}))}return(0,s.jsx)(s.Fragment,{children:d>0&&(0,s.jsxs)(i.Z,{alignItems:"center",children:[(0,s.jsx)(r.Z,{disabled:0===n,onClick:function(){return a(n-1)},children:(0,s.jsx)(c.Hd,{size:1.5*u.iI,stroke:"#AEAEAE"})}),!p.includes(0)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(r.Z,{onClick:function(){return a(0)},borderLess:!0,noBackground:!0,children:1})},0),!p.includes(1)&&(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(r.Z,{notClickable:!0,noBackground:!0,noPadding:!0,children:"..."})},0)]}),p.map((function(e){return(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(r.Z,{onClick:function(){e!==n&&a(e)},notClickable:e===n,backgroundColor:e===n&&l.a$,borderLess:!0,noBackground:!0,children:e+1})},e)})),!p.includes(d-1)&&(0,s.jsxs)(s.Fragment,{children:[!p.includes(d-2)&&(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(r.Z,{notClickable:!0,noBackground:!0,noPadding:!0,children:"..."})},0),(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(r.Z,{onClick:function(){return a(d-1)},borderLess:!0,noBackground:!0,children:d})},d-1)]}),(0,s.jsx)(o.Z,{ml:1}),(0,s.jsx)(r.Z,{disabled:n===d-1,onClick:function(){return a(n+1)},children:(0,s.jsx)(c.Kw,{size:1.5*u.iI,stroke:"#AEAEAE"})})]})})}},47409:function(e,n,t){t.d(n,{D:function(){return c},V:function(){return o}});var r,i=t(82394),o=t(66050).V,c=(r={},(0,i.Z)(r,o.CANCELLED,"Cancelled"),(0,i.Z)(r,o.COMPLETED,"Done"),(0,i.Z)(r,o.FAILED,"Failed"),(0,i.Z)(r,o.INITIAL,"Ready"),(0,i.Z)(r,o.RUNNING,"Running"),r)},93348:function(e,n,t){t.d(n,{TR:function(){return d},U5:function(){return u},Xm:function(){return o},Z4:function(){return a},fq:function(){return l},kJ:function(){return s}});var r,i,o,c=t(82394);!function(e){e.API="api",e.EVENT="event",e.TIME="time"}(o||(o={}));var l,u,s,a=(r={},(0,c.Z)(r,o.API,(function(){return"API"})),(0,c.Z)(r,o.EVENT,(function(){return"event"})),(0,c.Z)(r,o.TIME,(function(){return"schedule"})),r);!function(e){e.ACTIVE="active",e.INACTIVE="inactive"}(l||(l={})),function(e){e.ONCE="@once",e.HOURLY="@hourly",e.DAILY="@daily",e.WEEKLY="@weekly",e.MONTHLY="@monthly"}(u||(u={})),function(e){e.CREATED_AT="created_at",e.NAME="name",e.PIPELINE="pipeline_uuid",e.STATUS="status",e.TYPE="schedule_type"}(s||(s={}));var d=(i={},(0,c.Z)(i,s.CREATED_AT,"Created at"),(0,c.Z)(i,s.NAME,"Name"),(0,c.Z)(i,s.PIPELINE,"Pipeline"),(0,c.Z)(i,s.STATUS,"Status"),(0,c.Z)(i,s.TYPE,"Type"),i)},55378:function(e,n,t){var r=t(82394),i=t(26304),o=t(82684),c=t(9518),l=t(69898),u=t(31969),s=t(49125),a=t(28598),d=["beforeIcon","children","label","multiple","placeholder"];function p(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 f(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?p(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):p(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var h=c.default.select.withConfig({displayName:"Select__SelectStyle",componentId:"sc-q6ezu2-0"})(["",' background-image:url("data:image/svg+xml;utf8,','");background-repeat:no-repeat;background-position:-webkit-calc(100% - ',"px) center;background-position:calc(100% - ","px) center;padding-right:","px;&:hover{cursor:pointer;}"," "," "," ",""],l.p,"\n <svg width='12' height='12' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'>\n <path\n clip-rule='evenodd'\n d='M8.0015 11.7109L14.0022 5.71017L12.588 4.29597L7.99485 8.88914L3.40754 4.34482L2 5.76567L8.0015 11.7109Z'\n fill='%23B4B8C0'\n fill-rule='evenodd'\n />\n </svg>",s.iI,s.iI,2.5*s.iI,(function(e){return!e.hasContent&&!e.showPlaceholder&&"\n color: ".concat((e.theme.content||u.Z.content).muted,";\n ")}),(function(e){return e.backgroundColor&&"\n background-color: ".concat(e.backgroundColor,";\n ")}),(function(e){return e.color&&"\n color: ".concat(e.color,";\n ")}),(function(e){return e.showPlaceholder&&"\n color: ".concat((e.theme.content||u.Z.content).inverted,";\n ")})),g=function(e,n){var t=e.beforeIcon,r=e.children,o=e.label,c=e.multiple,u=e.placeholder,s=(0,i.Z)(e,d);return(0,a.jsx)(l.Z,f(f({},s),{},{beforeIcon:t,input:(0,a.jsxs)(h,f(f({multiple:c},s),{},{children:[(o||u)&&(0,a.jsx)("option",{disabled:!0,selected:!0,value:"",children:o||u}),r]})),label:o,placeholder:u,ref:n,setContentOnMount:!0,showLabelRequirement:function(e){return!!e.content}}))};n.Z=o.forwardRef(g)},33766:function(e,n,t){t.d(n,{u:function(){return a}});var r=t(75582),i=t(82394),o=t(34376),c=t.n(o),l=t(59e3);function u(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 s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?u(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function a(e){var n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.replaceParams,o=t.pushHistory,u=i?{}:(0,l.iV)();n=window.location.pathname;var a=o?c().push:c().replace,d=s(s({},u),e);Object.entries(e).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1];"undefined"!==typeof i&&null!==i||delete d[t]}));var p=(0,l.uM)(d);p.length>=1&&(p="?".concat(p));var f="".concat(n.split("?")[0]).concat(p);return a(c().router.pathname,f,{shallow:!0})}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5944],{27125:function(e,n,i){var l=i(82684),t=i(12691),r=i.n(t),s=i(34376),o=i.n(s),c=i(9518),u=i(66050),d=i(60328),p=i(16634),a=i(10919),f=i(98781),h=i(86673),C=i(87815),g=i(19711),x=i(10503),b=i(49125),m=i(44162),_=i(24224),v=i(28598);n.Z=function(e){var n=e.blockRuns,i=e.onClickRow,t=e.pipeline,s=e.selectedRun,I=(0,l.useContext)(c.ThemeContext),k=(t||{}).uuid,j=(0,l.useMemo)((function(){return t.blocks||[]}),[t]),Z=(0,l.useMemo)((function(){return(0,_.HK)(j,(function(e){return e.uuid}))}),[j]);return(0,v.jsx)(C.Z,{columnFlex:[null,1,3,2,null,null],columns:[{uuid:"Date"},{uuid:"Status"},{uuid:"Trigger"},{uuid:"Block"},{uuid:"Completed"},{uuid:"Logs"}],isSelectedRow:function(e){return n[e].id===(null===s||void 0===s?void 0:s.id)},onClickRow:i,rows:null===n||void 0===n?void 0:n.map((function(e){var n,i,l,s,c=e.block_uuid,C=e.completed_at,_=e.created_at,j=e.id,S=e.pipeline_schedule_id,M=e.pipeline_schedule_name,w=e.status,R=c,V=R.split(":");f.q.INTEGRATION===t.type&&(R=V[0],l=V[1],s=V[2]);var P=Z[R];return P||(P=Z[V[0]]),[(0,v.jsx)(g.ZP,{monospace:!0,default:!0,children:_}),(0,v.jsx)(g.ZP,{danger:u.V.FAILED===w,default:u.V.CANCELLED===w,info:u.V.INITIAL===w,monospace:!0,success:u.V.COMPLETED===w,warning:u.V.RUNNING===w,children:w}),(0,v.jsx)(r(),{as:"/pipelines/".concat(k,"/triggers/").concat(S),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,v.jsx)(a.Z,{bold:!0,sameColorAsText:!0,children:M})}),(0,v.jsx)(r(),{as:"/pipelines/".concat(k,"/edit?block_uuid=").concat(R),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,v.jsxs)(a.Z,{bold:!0,sameColorAsText:!0,verticalAlignContent:!0,children:[(0,v.jsx)(p.Z,{color:(0,m.qn)(null===(n=P)||void 0===n?void 0:n.type,{blockColor:null===(i=P)||void 0===i?void 0:i.color,theme:I}).accent,size:1.5*b.iI,square:!0}),(0,v.jsx)(h.Z,{mr:1}),(0,v.jsxs)(g.ZP,{monospace:!0,children:[R,l&&": ",l&&(0,v.jsx)(g.ZP,{default:!0,inline:!0,monospace:!0,children:l}),s>=0&&": ",s>=0&&(0,v.jsx)(g.ZP,{default:!0,inline:!0,monospace:!0,children:s})]})]})}),(0,v.jsx)(g.ZP,{monospace:!0,default:!0,children:C||"-"}),(0,v.jsx)(d.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return o().push("/pipelines/".concat(k,"/logs?block_run_id[]=").concat(j))},children:(0,v.jsx)(x.B4,{default:!0,size:2*b.iI})})]})),uuid:"block-runs"})}},59920:function(e,n,i){var l;i.d(n,{M:function(){return l}}),function(e){e.BACKFILLS="backfills",e.BLOCK_RUNS="block_runs",e.EDIT="edit",e.MONITOR="monitor",e.PIPELINE_LOGS="pipeline_logs",e.PIPELINE_RUNS="pipeline_runs",e.RUNS="runs",e.SYNCS="syncs",e.TRIGGERS="triggers"}(l||(l={}))},2626:function(e,n,i){i.d(n,{Z:function(){return N}});var l=i(21831),t=i(75582),r=i(82684),s=i(83455),o=i(34376),c=i(28598);var u=function(e){var n=e.size;return(0,c.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.jsx)("g",{clipPath:"url(#clip0_7525_68660)",children:(0,c.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.67625 7.82429C8.48671 8.13404 8.61933 8.53116 8.9436 8.69464C9.26787 8.85812 9.6606 8.72561 9.85513 8.41896C10.5416 7.33682 11.5276 6.47056 12.6997 5.92987C14.0715 5.29701 15.6173 5.14749 17.085 5.50568C18.5526 5.86388 19.8557 6.70866 20.7818 7.90233C21.7079 9.096 22.2023 10.5682 22.1845 12.0788C22.1667 13.5895 21.6377 15.0496 20.6837 16.2211C19.7298 17.3926 18.4071 18.2064 16.9314 18.5299C15.4557 18.8534 13.9139 18.6675 12.5573 18.0024C11.3984 17.4343 10.433 16.545 9.77227 15.447C9.58502 15.1358 9.19553 14.9941 8.86749 15.1499C8.53946 15.3057 8.39751 15.6995 8.5797 16.0137C9.37152 17.379 10.5525 18.4842 11.9785 19.1832C13.6018 19.9791 15.4469 20.2016 17.213 19.8145C18.979 19.4273 20.5619 18.4534 21.7035 17.0514C22.8451 15.6495 23.4781 13.9022 23.4994 12.0943C23.5208 10.2865 22.9291 8.52472 21.8208 7.09623C20.7126 5.66774 19.1532 4.65677 17.3968 4.22811C15.6403 3.79945 13.7905 3.97839 12.1488 4.73574C10.7068 5.40099 9.50004 6.47805 8.67625 7.82429ZM0.219185 12.5303C-0.0737079 12.2375 -0.0737079 11.7626 0.219185 11.4697L4.71918 6.96968C5.01208 6.67679 5.48695 6.67679 5.77985 6.96968C6.07274 7.26258 6.07274 7.73745 5.77985 8.03034L2.56017 11.25L15.7495 11.25C16.1637 11.25 16.4995 11.5858 16.4995 12C16.4995 12.4142 16.1637 12.75 15.7495 12.75L2.56017 12.75L5.77985 15.9697C6.07274 16.2626 6.07274 16.7375 5.77985 17.0303C5.48695 17.3232 5.01208 17.3232 4.71918 17.0303L0.219185 12.5303Z",fill:"url(#paint0_linear_7525_68660)"})}),(0,c.jsx)("defs",{children:(0,c.jsxs)("linearGradient",{id:"paint0_linear_7525_68660",x1:"11.7498",y1:"4",x2:"11.7498",y2:"20",gradientUnits:"userSpaceOnUse",children:[(0,c.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,c.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})},d=i(16953),p=i(61519);var a=function(e){var n=e.size;return(0,c.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.25 1C23.25 0.585786 22.9142 0.25 22.5 0.25C22.0858 0.25 21.75 0.585786 21.75 1V15.5C21.75 15.9142 22.0858 16.25 22.5 16.25C22.9142 16.25 23.25 15.9142 23.25 15.5V1ZM5 4.25C5.41421 4.25 5.75 4.58579 5.75 5V15.5C5.75 15.9142 5.41421 16.25 5 16.25C4.58579 16.25 4.25 15.9142 4.25 15.5V5C4.25 4.58579 4.58579 4.25 5 4.25ZM1.5 7.25C1.91421 7.25 2.25 7.58579 2.25 8V15.5C2.25 15.9142 1.91421 16.25 1.5 16.25C1.08579 16.25 0.75 15.9142 0.75 15.5V8C0.75 7.58579 1.08579 7.25 1.5 7.25ZM9.25 7C9.25 6.58579 8.91421 6.25 8.5 6.25C8.08579 6.25 7.75 6.58579 7.75 7V15.5C7.75 15.9142 8.08579 16.25 8.5 16.25C8.91421 16.25 9.25 15.9142 9.25 15.5V7ZM12 8.75C12.4142 8.75 12.75 9.08579 12.75 9.5V15.5C12.75 15.9142 12.4142 16.25 12 16.25C11.5858 16.25 11.25 15.9142 11.25 15.5V9.5C11.25 9.08579 11.5858 8.75 12 8.75ZM16.25 11.5C16.25 11.0858 15.9142 10.75 15.5 10.75C15.0858 10.75 14.75 11.0858 14.75 11.5V15.5C14.75 15.9142 15.0858 16.25 15.5 16.25C15.9142 16.25 16.25 15.9142 16.25 15.5V11.5ZM19 9.25C19.4142 9.25 19.75 9.58579 19.75 10V15.5C19.75 15.9142 19.4142 16.25 19 16.25C18.5858 16.25 18.25 15.9142 18.25 15.5V10C18.25 9.58579 18.5858 9.25 19 9.25Z",fill:"url(#paint0_linear_2919_69883)"}),(0,c.jsx)("defs",{children:(0,c.jsxs)("linearGradient",{id:"paint0_linear_2919_69883",x1:"1.5",y1:"11.875",x2:"22.75",y2:"11.875",gradientUnits:"userSpaceOnUse",children:[(0,c.jsx)("stop",{offset:".28125",stopColor:"#7D55EC"}),(0,c.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})},f=i(70434),h=i(34744),C=i(67971),g=i(87372),x=i(98781),b=i(29664),m=i(86673);var _=function(e){var n=e.size;return(0,c.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 17c0 1.1046-.89543 2-2 2s-2-.8954-2-2 .89543-2 2-2 2 .8954 2 2zm1.5 0c0 1.933-1.567 3.5-3.5 3.5S1.5 18.933 1.5 17s1.567-3.5 3.5-3.5 3.5 1.567 3.5 3.5zm2.25-.5c0-.4142.3358-.75.75-.75H22c.4142 0 .75.3358.75.75s-.3358.75-.75.75H11.5c-.4142 0-.75-.3358-.75-.75zM8.68946 4.29563c.16317-.38072-.0132-.82163-.39392-.9848-.38072-.16316-.82163.0132-.9848.39392L5.06418 8.94674c-.07952.18554-.3348.2052-.44179.03402L3.1361 6.60269c-.21953-.35125-.68225-.45803-1.0335-.2385-.35125.21954-.45803.68225-.2385 1.0335l1.48629 2.37807c.74892 1.19824 2.53587 1.06064 3.0925-.23814l2.24657-5.24199zM11.5 6.75c-.4142 0-.75.33579-.75.75s.3358.75.75.75H22c.4142 0 .75-.33579.75-.75s-.3358-.75-.75-.75H11.5z",fill:"url(#paint0_linear_2919_69883)"}),(0,c.jsx)("defs",{children:(0,c.jsxs)("linearGradient",{id:"paint0_linear_2919_69883",x1:"1.5",y1:"11.875",x2:"22.75",y2:"11.875",gradientUnits:"userSpaceOnUse",children:[(0,c.jsx)("stop",{offset:".28125",stopColor:"#7D55EC"}),(0,c.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})},v=i(82531),I=i(10503),k=i(9518),j=i(23831),Z=i(73942),S=i(49125),M=k.default.div.withConfig({displayName:"indexstyle__BannerStyle",componentId:"sc-1te3pmf-0"})(["border-radius:","px;padding:","px;"," "," ",""],Z.n_,3*S.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||j.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 ')})),w=i(3055),R=i(59920),V=i(96510),P=i(90211),E=i(24141);var N=function(e){var n=e.after,i=e.afterHidden,k=e.afterWidth,j=e.before,Z=e.beforeWidth,N=e.breadcrumbs,L=e.buildSidekick,H=e.children,y=e.headline,B=e.pageName,T=e.pipeline,D=e.subheader,O=e.subheaderBackground,G=e.subheaderBackgroundImage,A=e.subheaderButton,U=e.subheaderText,z=e.title,F=e.uuid,q=(0,o.useRouter)(),K=(0,E.i)().height,Y=T.uuid,W=v.ZP.pipelines.detail(Y,{includes_outputs:!1},{revalidateOnFocus:!1}).data,J=null===W||void 0===W?void 0:W.pipeline,Q=(0,s.Db)(v.ZP.pipelines.useCreate(),{onSuccess:function(e){return(0,V.wD)(e,{callback:function(e){var n=e.pipeline.uuid;q.push("/pipelines/[pipeline]/edit","/pipelines/".concat(n,"/edit"))}})}}),X=(0,t.Z)(Q,1)[0],$=(0,s.Db)((function(e){return v.ZP.pipelines.useDelete(e)()}),{onSuccess:function(e){return(0,V.wD)(e,{callback:function(){q.push("/pipelines")}})}}),ee=(0,t.Z)($,1)[0],ne=[{label:function(){return"New standard pipeline"},onClick:function(){return X({pipeline:{name:(0,P.Y6)()}})},uuid:"PipelineDetail/Header/new_standard_pipeline"},{label:function(){return"New streaming pipeline"},onClick:function(){return X({pipeline:{name:(0,P.Y6)(),type:x.q.STREAMING}})},uuid:"PipelineDetail/Header/new_streaming_pipeline"},{label:function(){return"Delete current pipeline"},onClick:function(){return ee(Y)},openConfirmationDialogue:!0,uuid:"PipelineDetail/Header/delete_pipeline"}],ie=(0,r.useMemo)((function(){return n||(L?L({height:K,heightOffset:w.Mz,pipeline:J}):null)}),[n,L,K,J]),le=k||(ie?50*S.iI:null),te=(0,r.useMemo)((function(){var e=[];return J&&(e.push.apply(e,[{label:function(){return"Pipelines"},linkProps:{href:"/pipelines"}}]),N?(e.push({label:function(){return J.uuid},linkProps:{as:"/pipelines/".concat(Y,"/triggers"),href:"/pipelines/[pipeline]/triggers"}}),e.push.apply(e,(0,l.Z)(N)),e[e.length-1].bold=!0):e.push({bold:!0,label:function(){return J.name}})),e}),[N,J,Y]),re=[{Icon:I.Pf,IconSelected:b.Z,id:R.M.TRIGGERS,isSelected:function(){return R.M.TRIGGERS===B},label:function(){return"Triggers"},linkProps:{as:"/pipelines/".concat(Y,"/triggers"),href:"/pipelines/[pipeline]/triggers"}},{Icon:I.pd,IconSelected:p.Z,id:R.M.RUNS,isSelected:function(){return R.M.RUNS===B},label:function(){return"Runs"},linkProps:{as:"/pipelines/".concat(Y,"/runs"),href:"/pipelines/[pipeline]/runs"}},{Icon:I.yg,IconSelected:u,id:R.M.BACKFILLS,isSelected:function(){return R.M.BACKFILLS===B},label:function(){return"Backfills"},linkProps:{as:"/pipelines/".concat(Y,"/backfills"),href:"/pipelines/[pipeline]/backfills"}},{Icon:I.B4,IconSelected:_,id:R.M.PIPELINE_LOGS,isSelected:function(){return R.M.PIPELINE_LOGS===B},label:function(){return"Logs"},linkProps:{as:"/pipelines/".concat(Y,"/logs"),href:"/pipelines/[pipeline]/logs"}},{Icon:I.kL,IconSelected:a,id:R.M.MONITOR,isSelected:function(){return R.M.MONITOR===B},label:function(){return"Monitor"},linkProps:{as:"/pipelines/".concat(Y,"/monitors"),href:"/pipelines/[pipeline]/monitors"}}];return x.q.INTEGRATION===(null===J||void 0===J?void 0:J.type)&&re.unshift({Icon:I.Re,IconSelected:d.Z,id:R.M.SYNCS,isSelected:function(){return R.M.SYNCS===B},label:function(){return"Syncs"},linkProps:{as:"/pipelines/".concat(Y,"/syncs"),href:"/pipelines/[pipeline]/syncs"}}),re.unshift({Icon:null,IconSelected:null,id:R.M.EDIT,label:function(){return"Edit pipeline"},linkProps:{as:"/pipelines/".concat(Y,"/edit"),href:"/pipelines/[pipeline]/edit"}}),(0,c.jsxs)(f.Z,{after:ie,afterHidden:i,afterWidth:le,before:j,beforeWidth:Z,breadcrumbs:te,headerMenuItems:ne,navigationItems:re,subheaderChildren:"undefined"!==typeof D&&D,title:J?z?z(J):J.name:null,uuid:F,children:[(A||U)&&(0,c.jsx)(m.Z,{mb:S.Mq,mt:S.cd,mx:S.cd,children:(0,c.jsx)(M,{background:O,backgroundImage:G,children:(0,c.jsxs)(C.Z,{alignItems:"center",children:[A,U&&(0,c.jsx)(m.Z,{ml:3}),U]})})}),y&&(0,c.jsx)(m.Z,{p:S.cd,children:(0,c.jsxs)(m.Z,{mt:S.cd,px:S.cd,children:[(0,c.jsx)(g.Z,{level:5,children:y}),(0,c.jsx)(h.Z,{light:!0,mt:S.cd,short:!0})]})}),H]})}},16953:function(e,n,i){var l=i(28598);n.Z=function(e){var n=e.size;return(0,l.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.5 8.5H15.5V3.5H20.5V8.5ZM14 9V3C14 2.44772 14.4477 2 15 2H21C21.5523 2 22 2.44772 22 3V9C22 9.55229 21.5523 10 21 10H15C14.4477 10 14 9.55229 14 9ZM2 5V12.5V14V21.5C2 22.0523 2.44772 22.5 3 22.5H10.5H12H19.5C20.0523 22.5 20.5 22.0523 20.5 21.5V13.5C20.5 12.9477 20.0523 12.5 19.5 12.5H12V5C12 4.44772 11.5523 4 11 4H3C2.44772 4 2 4.44772 2 5ZM10.5 14V21H3.5V14H10.5ZM19 14V21H12V14H19ZM10.5 5.5V12.5H3.5V5.5H10.5Z",fill:"url(#paint0_linear_2842_55048)"}),(0,l.jsx)("defs",{children:(0,l.jsxs)("linearGradient",{id:"paint0_linear_2842_55048",x1:"2",y1:"12.25",x2:"22",y2:"12.25",gradientUnits:"userSpaceOnUse",children:[(0,l.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6579],{82386:function(n,e,t){t.d(e,{E$:function(){return _},MK:function(){return m},MP:function(){return Z},Md:function(){return u},OM:function(){return g},Ru:function(){return O},VW:function(){return p},W7:function(){return w},Wi:function(){return b},YJ:function(){return j},Zj:function(){return P},Zt:function(){return l},aH:function(){return B},dN:function(){return s},ff:function(){return I},l8:function(){return h},rS:function(){return E},uX:function(){return v},v7:function(){return C},ve:function(){return f}});var r=t(9518),o=t(23831),i=t(73942),c=t(3055),a=t(49125),d=t(37391),l=64*a.iI,u=3*a.cd*a.iI,s=u,f=35*a.iI,p=.5*a.iI,h=13*a.iI,b=3*a.cd*a.iI,g=6*a.iI,v=2*a.cd*3*a.iI,m=(r.default.div.withConfig({displayName:"indexstyle__HeaderStyle",componentId:"sc-1lxpneo-0"})(["position:fixed;z-index:2;"," "," ",""],(function(n){return"\n border-bottom: 1px solid ".concat((n.theme.monotone||o.Z.monotone).grey200,";\n ")}),(function(n){return!n.beforeVisible&&"\n width: 100%;\n "}),(function(n){return n.beforeVisible&&"\n left: ".concat(f,"px;\n width: calc(100% - ").concat(f,"px);\n ")})),r.default.div.withConfig({displayName:"indexstyle__NewHeaderStyle",componentId:"sc-1lxpneo-1"})(["height:","px;position:fixed;top:0;width:100%;z-index:4;"],c.Mz)),x=(r.default.div.withConfig({displayName:"indexstyle__TabStyle",componentId:"sc-1lxpneo-2"})(["border-top-left-radius:","px;border-top-right-radius:","px;padding:","px ","px;position:relative;top:1px;"," "," ",""],i.n_,i.n_,1*a.iI,2*a.iI,(function(n){return"\n border-left: 1px solid ".concat((n.theme.monotone||o.Z.monotone).grey200,";\n border-right: 1px solid ").concat((n.theme.monotone||o.Z.monotone).grey200,";\n border-top: 1px solid ").concat((n.theme.monotone||o.Z.monotone).grey200,";\n ")}),(function(n){return!n.first&&"\n margin-left: ".concat(1*a.iI,"px;\n ")}),(function(n){return n.selected&&"\n border-bottom: 1px solid ".concat((n.theme.monotone||o.Z.monotone).white,";\n ")})),(0,r.css)(["position:fixed;z-index:2;",""],(function(n){return"\n background-color: ".concat((n.theme.background||o.Z.background).panel,";\n height: calc(100% - ").concat("undefined"===typeof n.heightOffset?v:n.heightOffset,"px);\n top: ").concat("undefined"===typeof n.heightOffset?v:n.heightOffset,"px;\n ")}))),y=(0,r.css)([""," height:100%;overflow:auto;position:relative;z-index:2;"],d.w5),k=(0,r.css)(["height:calc(100% + ","px);position:absolute;top:-","px;width:","px;z-index:6;&:hover{","}"," ",""],b,b,p,(function(n){return!n.disabled&&"\n border-color: ".concat((n.theme.text||o.Z.text).fileBrowser," !important;\n ")}),(function(n){return!n.disabled&&"\n cursor: col-resize;\n "}),(function(n){return n.active&&!n.disabled&&"\n border-color: ".concat((n.theme.text||o.Z.text).fileBrowser," !important;\n ")})),w=r.default.div.withConfig({displayName:"indexstyle__AsideHeaderStyle",componentId:"sc-1lxpneo-3"})(["border-bottom:1px solid transparent;height:","px;position:fixed;top:","px;z-index:4;"," "," ",""],b,b,(0,d.y$)(),(function(n){return"\n background-color: ".concat((n.theme.background||o.Z.background).panel,";\n ")}),(function(n){return!n.visible&&"\n border-left: 1px solid transparent;\n border-right: 1px solid transparent;\n border-color: ".concat((n.theme.borders||o.Z.borders).medium," !important;\n ")})),j=r.default.div.withConfig({displayName:"indexstyle__AsideSubheaderStyle",componentId:"sc-1lxpneo-4"})(["border-bottom:1px solid transparent;height:","px;overflow-x:auto;"," "," ",""],b,(0,d.y$)(),(function(n){return"\n background-color: ".concat((n.theme.background||o.Z.background).table,";\n ")}),(function(n){return!n.visible&&"\n border-color: ".concat((n.theme.borders||o.Z.borders).medium," !important;\n ")})),Z=r.default.aside.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-1lxpneo-5"})([""," left:0;"],x),O=r.default.div.withConfig({displayName:"indexstyle__BeforeInnerStyle",componentId:"sc-1lxpneo-6"})([""," overflow:hidden;&:hover{overflow:auto;}"],y),I=r.default.aside.withConfig({displayName:"indexstyle__AfterStyle",componentId:"sc-1lxpneo-7"})([""," right:0;"],x),_=r.default.div.withConfig({displayName:"indexstyle__AfterInnerStyle",componentId:"sc-1lxpneo-8"})(["",""],y),C=r.default.div.withConfig({displayName:"indexstyle__DraggableStyle",componentId:"sc-1lxpneo-9"})([""," "," ",""],k,(function(n){return"undefined"!==typeof n.left&&"\n border-left: 1px solid ".concat((n.theme.borders||o.Z.borders).medium,";\n left: ").concat(n.left,"px;\n ")}),(function(n){return"undefined"!==typeof n.right&&"\n border-right: 1px solid ".concat((n.theme.borders||o.Z.borders).medium,";\n right: ").concat(n.right,"px;\n ")})),E=r.default.div.withConfig({displayName:"indexstyle__MainWrapper",componentId:"sc-1lxpneo-10"})(["height:100%;position:fixed;z-index:1;",""],(function(n){return"\n background-color: ".concat((n.theme.background||o.Z.background).codeArea,";\n ")})),B=r.default.div.withConfig({displayName:"indexstyle__MainContentStyle",componentId:"sc-1lxpneo-11"})(["position:fixed;z-index:2;",""],(function(n){return"\n height: calc(100% - ".concat(n.headerOffset||0,"px);\n top: ").concat(n.headerOffset||0,"px;\n ")})),P=r.default.div.withConfig({displayName:"indexstyle__MainContentInnerStyle",componentId:"sc-1lxpneo-12"})([""," height:100%;overflow:auto;"],d.w5)},32063:function(n,e,t){var r=t(82684),o=t(1887),i=t.n(o),c=t(60328),a=t(57639),d=t(93461),l=t(67971),u=t(86673),s=t(46261),f=t(82386),p=t(10503),h=t(91427),b=t(49125),g=t(24141),v=t(28598);e.Z=function(n){var e=n.after,t=n.afterHeader,o=n.afterHeightOffset,m=n.afterHidden,x=n.afterMousedownActive,y=n.afterSubheader,k=n.afterWidth,w=void 0===k?0:k,j=n.before,Z=n.beforeHeader,O=n.beforeHeightOffset,I=n.beforeHidden,_=n.beforeMousedownActive,C=n.beforeWidth,E=void 0===C?0:C,B=n.children,P=n.header,S=n.headerOffset,R=void 0===S?0:S,W=n.hideAfterCompletely,H=n.leftOffset,M=void 0===H?0:H,z=n.mainContainerHeader,D=n.mainContainerRef,N=n.setAfterHidden,A=n.setAfterMousedownActive,L=n.setAfterWidth,T=n.setBeforeHidden,F=n.setBeforeMousedownActive,V=n.setBeforeWidth,U=(n.uuid,(0,g.i)().width),X=(0,r.useRef)(null),$=(0,r.useRef)(null),G=(0,r.useRef)(null),Y=(0,r.useRef)(null),q=(0,r.useCallback)((function(){var n=!m;null===N||void 0===N||N(n),(0,h.t8)(h.zg,n)}),[m,N]),J=(0,r.useCallback)((function(){var n=!I;T(n),(0,h.t8)(h.Uu,n)}),[I,T]);(0,r.useEffect)((function(){var n,e,t,r,o=function(n){var e,t;((null===G||void 0===G||null===(e=G.current)||void 0===e||null===(t=e.getBoundingClientRect)||void 0===t?void 0:t.call(e))||{}).x;if(U){var r=n.x;r+f.l8>U-w&&(r=U-w-f.l8),r-=2*M,V(Math.max(r,f.dN))}},i=function(n){var e,t;n.offsetX>=n.target.offsetWidth-f.VW&&n.offsetX<=n.target.offsetWidth+f.VW&&(null===F||void 0===F||F(!0),n.preventDefault(),null===(e=document)||void 0===e||null===(t=e.addEventListener)||void 0===t||t.call(e,"mousemove",o,!1))},c=function(){var n,e;null===F||void 0===F||F(!1),null===(n=document)||void 0===n||null===(e=n.removeEventListener)||void 0===e||e.call(n,"mousemove",o,!1)};return null===Y||void 0===Y||null===(n=Y.current)||void 0===n||null===(e=n.addEventListener)||void 0===e||e.call(n,"mousedown",i,!1),null===(t=document)||void 0===t||null===(r=t.addEventListener)||void 0===r||r.call(t,"mouseup",c,!1),function(){var n,e,t,r;null===Y||void 0===Y||null===(n=Y.current)||void 0===n||null===(e=n.removeEventListener)||void 0===e||e.call(n,"mousedown",i,!1),null===(t=document)||void 0===t||null===(r=t.removeEventListener)||void 0===r||r.call(t,"mouseup",c,!1),c()}}),[w,I,M,G,Y,F,V,U]),(0,r.useEffect)((function(){var n,e,t,r,o=function(n){var e,t;((null===X||void 0===X||null===(e=X.current)||void 0===e||null===(t=e.getBoundingClientRect)||void 0===t?void 0:t.call(e))||{}).x;if(U){var r=U-n.x;r+f.l8>U-E&&(r=U-E-f.l8),L(Math.max(r,f.Md))}},i=function(n){var e,t;n.offsetX>=-1*f.VW&&n.offsetX<=f.VW&&(null===A||void 0===A||A(!0),n.preventDefault(),null===(e=document)||void 0===e||null===(t=e.addEventListener)||void 0===t||t.call(e,"mousemove",o,!1))},c=function(){var n,e;null===A||void 0===A||A(!1),null===(n=document)||void 0===n||null===(e=n.removeEventListener)||void 0===e||e.call(n,"mousemove",o,!1)};return null===$||void 0===$||null===(n=$.current)||void 0===n||null===(e=n.addEventListener)||void 0===e||e.call(n,"mousedown",i,!1),null===(t=document)||void 0===t||null===(r=t.addEventListener)||void 0===r||r.call(t,"mouseup",c,!1),function(){var n,e,t,r;null===$||void 0===$||null===(n=$.current)||void 0===n||null===(e=n.removeEventListener)||void 0===e||e.call(n,"mousedown",i,!1),null===(t=document)||void 0===t||null===(r=t.removeEventListener)||void 0===r||r.call(t,"mouseup",c,!1),c()}}),[m,E,X,$,A,L,U]);var K=W&&m,Q=K?0:m?4*b.iI:w,nn=I?4*b.iI:E,en="calc(100% - ".concat(nn+Q+M,"px)");return(0,v.jsxs)(a.Z,{children:[(x&&!m||_&&!I)&&(0,v.jsx)(i(),{children:(0,v.jsx)("style",{dangerouslySetInnerHTML:{__html:"\n body {\n cursor: col-resize;\n }\n "}})}),P&&(0,v.jsx)(f.MK,{children:P}),j&&(0,v.jsxs)(f.MP,{heightOffset:O,style:{left:M,width:nn},children:[(0,v.jsx)(f.v7,{active:_,disabled:I,ref:Y,right:0}),T&&(0,v.jsx)(f.W7,{style:{width:nn},visible:I,children:(0,v.jsxs)(l.Z,{alignItems:"center",fullHeight:!0,fullWidth:!0,justifyContent:"space-between",children:[(0,v.jsxs)(d.Z,{children:[(0,v.jsx)(u.Z,{pl:I?1:0}),!I&&Z]}),(0,v.jsxs)(d.Z,{children:[(0,v.jsx)(s.Z,{block:!0,label:I?"Show sidebar":"Hide sidebar",size:null,widthFitContent:!0,children:(0,v.jsxs)(c.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return J()},children:[I&&(0,v.jsx)(p._Q,{neutral:!0,size:2*b.iI}),!I&&(0,v.jsx)(p.s$,{neutral:!0,size:2*b.iI})]})},I?"before-is-hidden":"before-is-visible"),(0,v.jsx)(u.Z,{pr:I?1:2})]})]})}),(0,v.jsx)(f.Ru,{noScrollbarTrackBackground:!0,ref:G,children:!I&&j})]}),(0,v.jsxs)(f.rS,{style:{left:nn+M,width:en},children:[z,(0,v.jsx)(f.aH,{headerOffset:(z?f.uX:f.Wi)+R,style:{width:en},children:(0,v.jsx)(f.Zj,{noScrollbarTrackBackground:!0,ref:D,children:B})})]}),e&&!K&&(0,v.jsxs)(f.ff,{heightOffset:o,style:{width:Q},children:[(0,v.jsx)(f.v7,{active:x,disabled:m,left:0,ref:$}),N&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(f.W7,{style:{width:Q},visible:m,children:(0,v.jsxs)(l.Z,{alignItems:"center",fullHeight:!0,fullWidth:!0,children:[(0,v.jsxs)(d.Z,{children:[(0,v.jsx)(u.Z,{pl:m?1:2}),(0,v.jsxs)(c.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return q()},children:[m&&(0,v.jsx)(p.s$,{neutral:!0,size:2*b.iI}),!m&&(0,v.jsx)(p._Q,{neutral:!0,size:2*b.iI})]})]}),!m&&t]})}),!m&&y&&(0,v.jsx)(f.YJ,{style:{width:Q},visible:m,children:y})]}),(0,v.jsx)(f.E$,{noScrollbarTrackBackground:!0,ref:X,children:!m&&e})]})]})}},41788:function(n,e,t){t.d(e,{Z:function(){return _}});var r=t(77837),o=t(26304),i=t(62243),c=t(29385),a=t(80022),d=t(99177),l=t(93189),u=t(15544),s=t(82394),f=t(38860),p=t.n(f),h=t(82684),b=t(56663),g=t.n(b),v=t(35490),m=t(55361),x=t(30332),y=t(9736),k=t(59e3),w=t(28598),j=["auth"];function Z(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function O(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?Z(Object(t),!0).forEach((function(e){(0,s.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function I(n){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(n){return!1}}();return function(){var t,r=(0,u.Z)(n);if(e){var o=(0,u.Z)(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return(0,l.Z)(this,t)}}function _(n){return function(e){(0,d.Z)(l,e);var t=I(l);function l(){var n;(0,i.Z)(this,l);for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return n=t.call.apply(t,[this].concat(r)),(0,s.Z)((0,a.Z)(n),"state",{auth:new v.Z(n.props.token)}),n}return(0,c.Z)(l,[{key:"componentDidMount",value:function(){this.setState({auth:new v.Z(this.props.token)})}},{key:"render",value:function(){var e=this.props,t=(e.auth,(0,o.Z)(e,j));return(0,w.jsx)(n,O({auth:this.state.auth},t))}}],[{key:"getInitialProps",value:function(){var e=(0,r.Z)(p().mark((function e(t){var r,o,i,c,a,d,l,u,s;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=g()(t),o=(0,y.ex)(t),i=o.id,c=r[m.Mv],a=r[x.qt],d=new v.Z(c),l=O(O({},t),{},{auth:d,currentGroupId:i,theme:a}),(0,y.YB)(t)&&d.isExpired&&(console.log("OAuth token has expired."),u=O(O({},t.query),{},{redirect_url:t.asPath}),(0,k.nL)("/sign-in?".concat((0,k.uM)(u)),t.res)),!n.getInitialProps){e.next=12;break}return e.next=10,n.getInitialProps(l);case 10:return s=e.sent,e.abrupt("return",O(O({},s),{},{auth:d,currentGroupId:i,theme:a}));case 12:return e.abrupt("return",l);case 13:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()}]),l}(h.Component)}},882:function(n,e,t){var r=t(82394),o=t(26304),i=t(9518),c=t(60328),a=t(23831),d=t(73942),l=t(99994),u=t(49125),s=t(28598),f=["backgroundGradient","backgroundPanel","borderWidth","children","compact","paddingUnits","paddingUnitsHorizontal","paddingUnitsVertical"];function p(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function h(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?p(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):p(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var b=i.default.div.withConfig({displayName:"GradientButton__ButtonContentStyle",componentId:"sc-1gzx4r1-0"})(["border-radius:","px;height:fit-content;"," ",""],d.n_,(function(n){return!n.backgroundPanel&&"\n background-color: ".concat((n.theme.background||a.Z.background).page,";\n ")}),(function(n){return n.backgroundPanel&&"\n background-color: ".concat((n.theme.background||a.Z.background).panel,";\n ")}));e.Z=function(n){var e=n.backgroundGradient,t=void 0===e?l.TD:e,r=n.backgroundPanel,i=n.borderWidth,a=void 0===i?1:i,d=n.children,p=n.compact,g=n.paddingUnits,v=n.paddingUnitsHorizontal,m=void 0===v?1.5:v,x=n.paddingUnitsVertical,y=void 0===x?1.25:x,k=(0,o.Z)(n,f),w=m,j=y;return g&&(w=g,j=g),p&&(w*=.75,j*=.75),(0,s.jsx)(c.Z,h(h({},k),{},{backgroundGradient:t,noPadding:!0,padding:"".concat(a,"px"),pointerEventsEnabled:!0,children:(0,s.jsx)(b,{backgroundPanel:r,children:(0,s.jsx)("div",{style:{paddingBottom:j*u.iI-a,paddingLeft:w*u.iI-a,paddingRight:w*u.iI-a,paddingTop:j*u.iI-a},children:d})})}))}},99994:function(n,e,t){t.d(e,{eW:function(){return l},TD:function(){return a},yr:function(){return d}});var r=t(73899),o="#FF144D",i="#DEBB92",c="#2A60FE",a=("linear-gradient(90deg, ".concat(i,", ").concat("#CBFE00",")"),"linear-gradient(90deg, ".concat(o,", #C86DD7)")),d=("linear-gradient(90deg, ".concat("#95ECE2",", ").concat(c,")"),"linear-gradient(90deg, ".concat("#9B6CA7",", ").concat(i,")"),"linear-gradient(90deg, ".concat("#C72400",", ").concat(i,")"),"linear-gradient(100.38deg, ".concat(o," 41.11%, #FF9559 86.99%)"),"linear-gradient(100.38deg, ".concat("#6B50D7"," 41.11%, #677FFF 86.99%)"),"linear-gradient(100.38deg, ".concat(c," 41.11%, #B880FF 86.99%)"),"linear-gradient(90deg, ".concat(r.t4," 20.13%, #2AB2FE)")),l="linear-gradient(90deg, ".concat(r.Ck," 0%, ").concat(r.t4," 53.13%, ").concat(r.X_," 100%)")},37391:function(n,e,t){t.d(e,{nn:function(){return d},w5:function(){return u},y$:function(){return l}});var r=t(9518),o=t(23831),i=t(73942),c=t(49125),a=t(90880),d=1.25*c.iI;function l(){return"\n // for Internet Explorer, Edge\n -ms-overflow-style: none;\n // for Firefox\n scrollbar-width: none;\n // for Chrome, Safari, and Opera\n ::-webkit-scrollbar {\n display: none;\n }\n "}var u=(0,r.css)([""," "," "," ",""],(function(n){return"\n ::-webkit-scrollbar {\n height: ".concat(d,"px;\n width: ").concat(d,"px;\n }\n\n ::-webkit-scrollbar-track {\n }\n\n ::-webkit-scrollbar-thumb {\n ").concat((0,a.eR)(),"\n\n background: ").concat((n.theme.background||o.Z.background).scrollbarThumb,";\n border-radius: ").concat(i.n_,"px;\n }\n\n ::-webkit-scrollbar-thumb:hover {\n background: ").concat((n.theme.background||o.Z.background).scrollbarThumbHover,";\n }\n ::-webkit-scrollbar-corner {\n background: ").concat((n.theme.background||o.Z.background).scrollbarTrack,";\n }\n ")}),(function(n){return!n.scrollbarBorderRadiusLarge&&"\n ::-webkit-scrollbar-track {\n background: ".concat((n.theme.background||o.Z.background).scrollbarTrack,";\n }\n ")}),(function(n){return n.noScrollbarTrackBackground&&"\n ::-webkit-scrollbar-corner {\n background: transparent;\n }\n ::-webkit-scrollbar-track {\n background: transparent;\n }\n "}),(function(n){return n.scrollbarBorderRadiusLarge&&"\n ::-webkit-scrollbar {\n border-radius: ".concat(i.TR,"px !important;\n }\n\n ::-webkit-scrollbar-track {\n border-radius: ").concat(i.TR,"px !important;\n }\n\n ::-webkit-scrollbar-thumb {\n border-radius: ").concat(i.TR,"px !important;\n }\n ")}))},66166:function(n,e,t){var r=t(82684);e.Z=function(n){var e=(0,r.useRef)();return(0,r.useEffect)((function(){e.current=n}),[n]),e.current}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7400],{98677:function(n,t,e){function r(n,t,e){n=+n,t=+t,e=(i=arguments.length)<2?(t=n,n=0,1):i<3?1:+e;for(var r=-1,i=0|Math.max(0,Math.ceil((t-n)/e)),o=new Array(i);++r<i;)o[r]=n+r*e;return o}e.d(t,{Z:function(){return c}});var i=e(8208),o=e(8162);function u(){var n,t,e=(0,o.Z)().unknown(void 0),a=e.domain,c=e.range,l=0,f=1,d=!1,s=0,h=0,p=.5;function v(){var e=a().length,i=f<l,o=i?f:l,u=i?l:f;n=(u-o)/Math.max(1,e-s+2*h),d&&(n=Math.floor(n)),o+=(u-o-n*(e-s))*p,t=n*(1-s),d&&(o=Math.round(o),t=Math.round(t));var v=r(e).map((function(t){return o+n*t}));return c(i?v.reverse():v)}return delete e.unknown,e.domain=function(n){return arguments.length?(a(n),v()):a()},e.range=function(n){return arguments.length?([l,f]=n,l=+l,f=+f,v()):[l,f]},e.rangeRound=function(n){return[l,f]=n,l=+l,f=+f,d=!0,v()},e.bandwidth=function(){return t},e.step=function(){return n},e.round=function(n){return arguments.length?(d=!!n,v()):d},e.padding=function(n){return arguments.length?(s=Math.min(1,h=+n),v()):s},e.paddingInner=function(n){return arguments.length?(s=Math.min(1,n),v()):s},e.paddingOuter=function(n){return arguments.length?(h=+n,v()):h},e.align=function(n){return arguments.length?(p=Math.max(0,Math.min(1,n)),v()):p},e.copy=function(){return u(a(),[l,f]).round(d).paddingInner(s).paddingOuter(h).align(p)},i.o.apply(v(),arguments)}var a=(0,e(93342).Z)("domain","range","reverse","align","padding","round");function c(n){return a(u(),n)}},62072:function(n,t,e){function r(n){return null==n?void 0:n[0]}function i(n){return null==n?void 0:n[1]}e.d(t,{l8:function(){return r},xf:function(){return i}})},53989:function(n,t,e){function r(n){if("bandwidth"in n)return n.bandwidth();var t=n.range(),e=n.domain();return Math.abs(t[t.length-1]-t[0])/e.length}e.d(t,{Z:function(){return r}})},59309:function(n,t,e){e.d(t,{ZP:function(){return l}});var r=e(12759),i=e(27500),o=e(82610),u=e(34812),a=e(77944),c={expand:r.Z,diverging:i.Z,none:o.Z,silhouette:u.Z,wiggle:a.Z};Object.keys(c);function l(n){return n&&c[n]||c.none}},18246:function(n,t,e){e.d(t,{ZP:function(){return l}});var r=e(39586),i=e(25516),o=e(54164),u=e(8512),a=e(2010),c={ascending:r.Z,descending:i.Z,insideout:o.Z,none:u.Z,reverse:a.Z};Object.keys(c);function l(n){return n&&c[n]||c.none}},13946:function(n,t,e){e.d(t,{t:function(){return r}});var r=Array.prototype.slice},27500:function(n,t,e){function r(n,t){if((a=n.length)>0)for(var e,r,i,o,u,a,c=0,l=n[t[0]].length;c<l;++c)for(o=u=0,e=0;e<a;++e)(i=(r=n[t[e]][c])[1]-r[0])>0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=u,r[0]=u+=i):(r[0]=0,r[1]=i)}e.d(t,{Z:function(){return r}})},12759:function(n,t,e){e.d(t,{Z:function(){return i}});var r=e(82610);function i(n,t){if((i=n.length)>0){for(var e,i,o,u=0,a=n[0].length;u<a;++u){for(o=e=0;e<i;++e)o+=n[e][u][1]||0;if(o)for(e=0;e<i;++e)n[e][u][1]/=o}(0,r.Z)(n,t)}}},82610:function(n,t,e){function r(n,t){if((i=n.length)>1)for(var e,r,i,o=1,u=n[t[0]],a=u.length;o<i;++o)for(r=u,u=n[t[o]],e=0;e<a;++e)u[e][1]+=u[e][0]=isNaN(r[e][1])?r[e][0]:r[e][1]}e.d(t,{Z:function(){return r}})},34812:function(n,t,e){e.d(t,{Z:function(){return i}});var r=e(82610);function i(n,t){if((e=n.length)>0){for(var e,i=0,o=n[t[0]],u=o.length;i<u;++i){for(var a=0,c=0;a<e;++a)c+=n[a][i][1]||0;o[i][1]+=o[i][0]=-c/2}(0,r.Z)(n,t)}}},77944:function(n,t,e){e.d(t,{Z:function(){return i}});var r=e(82610);function i(n,t){if((o=n.length)>0&&(i=(e=n[t[0]]).length)>0){for(var e,i,o,u=0,a=1;a<i;++a){for(var c=0,l=0,f=0;c<o;++c){for(var d=n[t[c]],s=d[a][1]||0,h=(s-(d[a-1][1]||0))/2,p=0;p<c;++p){var v=n[t[p]];h+=(v[a][1]||0)-(v[a-1][1]||0)}l+=s,f+=h*s}e[a-1][1]+=e[a-1][0]=u,l&&(u-=f/l)}e[a-1][1]+=e[a-1][0]=u,(0,r.Z)(n,t)}}},34128:function(n,t,e){e.d(t,{Z:function(){return i}});var r=e(8512);function i(n){var t=n.map(o);return(0,r.Z)(n).sort((function(n,e){return t[n]-t[e]}))}function o(n){for(var t,e=-1,r=0,i=n.length,o=-1/0;++e<i;)(t=+n[e][1])>o&&(o=t,r=e);return r}},39586:function(n,t,e){e.d(t,{S:function(){return o},Z:function(){return i}});var r=e(8512);function i(n){var t=n.map(o);return(0,r.Z)(n).sort((function(n,e){return t[n]-t[e]}))}function o(n){for(var t,e=0,r=-1,i=n.length;++r<i;)(t=+n[r][1])&&(e+=t);return e}},25516:function(n,t,e){e.d(t,{Z:function(){return i}});var r=e(39586);function i(n){return(0,r.Z)(n).reverse()}},54164:function(n,t,e){e.d(t,{Z:function(){return o}});var r=e(34128),i=e(39586);function o(n){var t,e,o=n.length,u=n.map(i.S),a=(0,r.Z)(n),c=0,l=0,f=[],d=[];for(t=0;t<o;++t)e=a[t],c<l?(c+=u[e],f.push(e)):(l+=u[e],d.push(e));return d.reverse().concat(f)}},8512:function(n,t,e){function r(n){for(var t=n.length,e=new Array(t);--t>=0;)e[t]=t;return e}e.d(t,{Z:function(){return r}})},2010:function(n,t,e){e.d(t,{Z:function(){return i}});var r=e(8512);function i(n){return(0,r.Z)(n).reverse()}},75823:function(n,t,e){e.d(t,{Z:function(){return c}});var r=e(13946),i=e(90875),o=e(82610),u=e(8512);function a(n,t){return n[t]}function c(){var n=(0,i.Z)([]),t=u.Z,e=o.Z,c=a;function l(r){var i,o,u=n.apply(this,arguments),a=r.length,l=u.length,f=new Array(l);for(i=0;i<l;++i){for(var d,s=u[i],h=f[i]=new Array(a),p=0;p<a;++p)h[p]=d=[0,+c(r[p],s,p,r)],d.data=r[p];h.key=s}for(i=0,o=t(f);i<l;++i)f[o[i]].index=i;return e(f,o),f}return l.keys=function(t){return arguments.length?(n="function"===typeof t?t:(0,i.Z)(r.t.call(t)),l):n},l.value=function(n){return arguments.length?(c="function"===typeof n?n:(0,i.Z)(+n),l):c},l.order=function(n){return arguments.length?(t=null==n?u.Z:"function"===typeof n?n:(0,i.Z)(r.t.call(n)),l):t},l.offset=function(n){return arguments.length?(e=null==n?o.Z:n,l):e},l}},21679:function(n,t,e){e.d(t,{Z:function(){return B}});var r=e(26304),i=e(82394),o=e(21831),u=e(82684),a=e(84969),c=e(90948),l=e(63588),f=e.n(l),d=e(75823),s=e(29989),h=e(62072),p=e(53989),v=e(49894),g=e(18246),Z=e(59309),m=e(65743),y=["data","className","top","left","x","y0","y1","xScale","yScale","color","keys","value","order","offset","children"];function x(){return x=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},x.apply(this,arguments)}function b(n){var t=n.data,e=n.className,r=n.top,i=n.left,o=n.x,a=n.y0,c=void 0===a?h.l8:a,l=n.y1,b=void 0===l?h.xf:l,j=n.xScale,k=n.yScale,O=n.color,w=n.keys,P=n.value,E=n.order,M=n.offset,T=n.children,A=function(n,t){if(null==n)return{};var e,r,i={},o=Object.keys(n);for(r=0;r<o.length;r++)e=o[r],t.indexOf(e)>=0||(i[e]=n[e]);return i}(n,y),S=(0,d.Z)();w&&S.keys(w),P&&(0,v.Z)(S.value,P),E&&S.order((0,g.ZP)(E)),M&&S.offset((0,Z.ZP)(M));var _=S(t),I=(0,p.Z)(j),L=_.map((function(n,t){var e=n.key;return{index:t,key:e,bars:n.map((function(t,r){var i=(k(c(t))||0)-(k(b(t))||0),u=k(b(t)),a="bandwidth"in j?j(o(t.data)):Math.max((j(o(t.data))||0)-I/2);return{bar:t,key:e,index:r,height:i,width:I,x:a||0,y:u||0,color:O(n.key,r)}}))}}));return T?u.createElement(u.Fragment,null,T(L)):u.createElement(s.Z,{className:f()("visx-bar-stack",e),top:r,left:i},L.map((function(n){return n.bars.map((function(t){return u.createElement(m.Z,x({key:"bar-stack-"+n.index+"-"+t.index,x:t.x,y:t.y,height:t.height,width:t.width,fill:t.color},A))}))})))}var j=e(67778),k=e(17066),O=e(29179),w=e(65376),P=e(48072),E=e(98677),M=e(84181),T=e(24903),A=e(67971),S=e(26226),_=e(19711),I=e(52359),L=e(23831),N=e(73942),D=e(2005),C=e(49125),F=e(344),R=e(28598),V=["height","width","xAxisLabel","yAxisLabel"];function Y(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}function U(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(e),!0).forEach((function(t){(0,i.Z)(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):Y(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}function z(n){var t=n.colors,e=n.data,r=n.getXValue,i=(n.getYValue,n.height),u=n.keys,l=n.margin,f=n.numYTicks,d=n.showLegend,h=n.width,p=n.xLabelFormat,v=n.yLabelFormat,g=(0,O.Z)(),Z=g.hideTooltip,m=g.showTooltip,y=g.tooltipData,x=g.tooltipLeft,A=g.tooltipOpen,S=g.tooltipTop,I=h-(l.left+l.right),C=i-(l.bottom+l.top),V=e.reduce((function(n,t){var e=t,r=u.reduce((function(n,t){return Number(e[t])&&(n+=Number(e[t])),n}),0);return n.push(r),n}),[]),Y=(0,E.Z)({domain:e.map(r),padding:.4,range:[0,I],round:!1}),z=(0,M.Z)({domain:[0,Math.max.apply(Math,(0,o.Z)(V))],range:[C,0],round:!0}),B=(0,T.Z)({domain:u,range:t});return(0,R.jsxs)("div",{style:{position:"relative"},children:[(0,R.jsxs)("svg",{width:h,height:i,children:[(0,R.jsx)("rect",{x:0,y:0,width:h,height:i,fill:"#2E3036",rx:14}),(0,R.jsx)(j.Z,{top:l.top,left:l.left,scale:z,width:I,height:C,stroke:"black",strokeOpacity:.2}),(0,R.jsx)(s.Z,{top:l.top,children:(0,R.jsx)(b,{data:e,keys:u,value:function(n,t){return n[t]||0},x:r,xScale:Y,yScale:z,color:B,children:function(n){return n.map((function(n){return n.bars.map((function(t){return(0,R.jsx)("rect",{x:t.x,y:t.y,height:t.height,width:t.width,fill:t.color,onMouseLeave:Z,onMouseMove:function(n){var e=(0,P.Z)(n),r=t.x+t.width/2;m({tooltipData:t,tooltipTop:null===e||void 0===e?void 0:e.y,tooltipLeft:r})}},"bar-stack-".concat(n.index,"-").concat(t.index))}))}))}})}),(0,R.jsx)(a.Z,{hideTicks:!0,left:l.left,numTicks:f,scale:z,stroke:L.Z.content.muted,tickFormat:function(n){return v?v(n):(0,F.P5)(n)},tickLabelProps:function(){return{fill:L.Z.content.muted,fontFamily:D.ry,fontSize:11,textAnchor:"end",transform:"translate(0,2.5)"}},top:l.top}),(0,R.jsx)(c.Z,{hideTicks:!0,left:l.left,top:C+l.top,scale:Y,stroke:L.Z.content.muted,tickFormat:p,tickLabelProps:function(){return{fill:L.Z.content.muted,fontFamily:D.ry,fontSize:11,textAnchor:"middle"}}})]}),d&&(0,R.jsx)("div",{style:{position:"absolute",top:l.top/2-10,width:"100%",display:"flex",justifyContent:"center",fontSize:"14px"},children:(0,R.jsx)(k.Z,{scale:B,direction:"row",labelMargin:"0 15px 0 0"})}),A&&y&&(0,R.jsxs)(w.Z,{top:S,left:x,style:U(U({},w.j),{},{backgroundColor:L.Z.background.page,borderRadius:"".concat(N.TR,"px")}),children:[(0,R.jsx)(_.ZP,{bold:!0,color:B(y.key),children:y.key}),(0,R.jsx)(_.ZP,{children:y.bar.data[y.key]}),(0,R.jsx)(_.ZP,{children:r(y.bar.data)})]})]})}var B=function(n){var t=n.height,e=n.width,i=n.xAxisLabel,o=n.yAxisLabel,u=(0,r.Z)(n,V);return(0,R.jsx)(R.Fragment,{children:(0,R.jsxs)("div",{style:{height:t,marginBottom:C.iI,width:e},children:[o&&(0,R.jsx)(A.Z,{alignItems:"center",fullHeight:!0,justifyContent:"center",width:28,children:(0,R.jsx)(I.Z,{children:(0,R.jsx)(_.ZP,{center:!0,muted:!0,small:!0,children:o})})}),(0,R.jsx)("div",{style:{height:t,width:o?0===e?e:e-28:e},children:(0,R.jsx)(S.Z,{children:function(n){var t=n.height,e=n.width;return(0,R.jsx)(z,U(U({},u),{},{height:t,width:e}))}})}),i&&(0,R.jsx)("div",{style:{paddingLeft:o?36:0,paddingTop:4},children:(0,R.jsx)(_.ZP,{center:!0,muted:!0,small:!0,children:i})})]})})}},93348:function(n,t,e){e.d(t,{TR:function(){return d},U5:function(){return c},Xm:function(){return o},Z4:function(){return f},fq:function(){return a},kJ:function(){return l}});var r,i,o,u=e(82394);!function(n){n.API="api",n.EVENT="event",n.TIME="time"}(o||(o={}));var a,c,l,f=(r={},(0,u.Z)(r,o.API,(function(){return"API"})),(0,u.Z)(r,o.EVENT,(function(){return"event"})),(0,u.Z)(r,o.TIME,(function(){return"schedule"})),r);!function(n){n.ACTIVE="active",n.INACTIVE="inactive"}(a||(a={})),function(n){n.ONCE="@once",n.HOURLY="@hourly",n.DAILY="@daily",n.WEEKLY="@weekly",n.MONTHLY="@monthly"}(c||(c={})),function(n){n.CREATED_AT="created_at",n.NAME="name",n.PIPELINE="pipeline_uuid",n.STATUS="status",n.TYPE="schedule_type"}(l||(l={}));var d=(i={},(0,u.Z)(i,l.CREATED_AT,"Created at"),(0,u.Z)(i,l.NAME,"Name"),(0,u.Z)(i,l.PIPELINE,"Pipeline"),(0,u.Z)(i,l.STATUS,"Status"),(0,u.Z)(i,l.TYPE,"Type"),i)},67400:function(n,t,e){e.r(t),e.d(t,{BAR_STACK_COLORS:function(){return I},BAR_STACK_STATUSES:function(){return L}});var r=e(77837),i=e(75582),o=e(82394),u=e(38860),a=e.n(u),c=e(82684),l=e(12691),f=e.n(l),d=e(92083),s=e.n(d),h=e(9518),p=e(21679),v=e(67971),g=e(87372),Z=e(10919),m=e(87465),y=e(41788),x=e(86673),b=e(19711),j=e(82531),k=e(23831),O=e(10503),w=e(92953),P=e(93348),E=e(49125),M=e(90211),T=e(28598);function A(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}function S(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?A(Object(e),!0).forEach((function(t){(0,o.Z)(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):A(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}var _=h.default.div.withConfig({displayName:"monitors__GradientTextStyle",componentId:"sc-1is2m2l-0"})(["background:linear-gradient(90deg,#7D55EC 28.12%,#2AB2FE 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;text-fill-color:transparent;"]),I=[k.Z.accent.warning,k.Z.background.success,k.Z.accent.negative,k.Z.content.active,k.Z.interactive.linkPrimary],L=["cancelled","completed","failed","initial","running"];function N(n){var t=n.pipeline.uuid,e=j.ZP.pipeline_schedules.pipelines.list(t).data,r=(0,c.useMemo)((function(){return null===e||void 0===e?void 0:e.pipeline_schedules}),[e]),u=(0,c.useMemo)((function(){return null===r||void 0===r?void 0:r.reduce((function(n,t){return S(S({},n),{},(0,o.Z)({},null===t||void 0===t?void 0:t.id,t))}),{})}),[r]),a=j.ZP.pipelines.detail(t,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,l=(0,c.useMemo)((function(){return S(S({},null===a||void 0===a?void 0:a.pipeline),{},{uuid:t})}),[a,t]),d=j.ZP.monitor_stats.detail("pipeline_run_count",{pipeline_uuid:null===l||void 0===l?void 0:l.uuid}).data,h=((null===d||void 0===d?void 0:d.monitor_stat)||{}).stats,y=(0,c.useMemo)((function(){for(var n=new Date,t=[],e=0;e<90;e++)t.unshift(n.toISOString().split("T")[0]),n.setDate(n.getDate()-1);return t}),[]),k=(0,c.useMemo)((function(){if(h){var n=Object.entries(h).reduce((function(n,t){var e=(0,i.Z)(t,2),r=(e[0],e[1].data),o={};return Object.entries(r).forEach((function(t){var e=(0,i.Z)(t,2),r=e[0],u=e[1],a={};r in n&&(a=n[r]);var c={};Object.entries(u).forEach((function(n){var t,e=(0,i.Z)(n,2),r=e[0],o=e[1],u=null!==(t=a)&&void 0!==t&&t[r]?a[r]:0;c[r]=u+o})),o[r]=S(S({},a),c)})),S(S({},n),o)}),{});return y.map((function(t){return S({date:t},n[t]||{})}))}return[]}),[y,h]),A=(0,c.useMemo)((function(){if(h)return Object.entries(h).reduce((function(n,t){var e=(0,i.Z)(t,2),r=e[0],u=e[1].data,a=y.map((function(n){return S({date:n},u[n]||{})}));return S(S({},n),{},(0,o.Z)({},r,a))}),{})}),[y,h]),N=(0,c.useMemo)((function(){var n=[];return n.push({bold:!0,label:function(){return"Monitors"}}),n}),[l]);return(0,T.jsx)(m.Z,{breadcrumbs:N,monitorType:w.a.PIPELINE_RUNS,pipeline:l,children:(0,T.jsxs)(x.Z,{mt:2,mx:2,children:[(0,T.jsx)(x.Z,{ml:1,children:(0,T.jsx)(_,{children:(0,T.jsx)(g.Z,{children:"All pipeline runs"})})}),(0,T.jsx)(x.Z,{mt:1,children:(0,T.jsx)(p.Z,{colors:I,data:k,getXValue:function(n){return n.date},height:200,keys:L,margin:{top:10,bottom:30,left:35,right:0},xLabelFormat:function(n){return s()(n).format("MMM DD")}})}),A&&Object.entries(A).map((function(n){var e,r=(0,i.Z)(n,2),o=r[0],a=r[1],c=null===u||void 0===u?void 0:u[o];return(0,T.jsxs)(x.Z,{mt:3,children:[(0,T.jsxs)(v.Z,{alignItems:"center",children:[(0,T.jsx)(x.Z,{mx:1,children:(0,T.jsx)(_,{children:(0,T.jsx)(b.ZP,{bold:!0,large:!0,children:(0,M.kC)(null===(e=P.Z4[null===c||void 0===c?void 0:c.schedule_type])||void 0===e?void 0:e.call(P.Z4))})})}),(0,T.jsx)(f(),{as:"/pipelines/".concat(t,"/triggers/").concat(null===c||void 0===c?void 0:c.id),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,T.jsx)(Z.Z,{children:(0,T.jsxs)(v.Z,{alignItems:"center",children:[(0,T.jsx)(g.Z,{level:5,children:(null===c||void 0===c?void 0:c.name)||o}),(0,T.jsx)(x.Z,{ml:1}),(0,T.jsx)(O._Q,{default:!0,size:2*E.iI})]})})})]}),(0,T.jsx)(x.Z,{mt:1,children:(0,T.jsx)(p.Z,{colors:I,data:a,getXValue:function(n){return n.date},height:200,keys:L,margin:{top:10,bottom:30,left:35,right:0},xLabelFormat:function(n){return s()(n).format("MMM DD")}})})]})}))]})})}N.getInitialProps=function(){var n=(0,r.Z)(a().mark((function n(t){var e;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e=t.query.pipeline,n.abrupt("return",{pipeline:{uuid:e}});case 2:case"end":return n.stop()}}),n)})));return function(t){return n.apply(this,arguments)}}(),t.default=(0,y.Z)(N)}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8961],{2850:function(e,n,i){i.d(n,{M:function(){return c},W:function(){return l}});var t=i(9518),r=i(23831),o=i(3055),l=34*i(49125).iI,c=t.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);",""],o.Mz,(function(e){return"\n border-left: 1px solid ".concat((e.theme.borders||r.Z.borders).medium,";\n ")}))},59920:function(e,n,i){var t;i.d(n,{M:function(){return t}}),function(e){e.BACKFILLS="backfills",e.BLOCK_RUNS="block_runs",e.EDIT="edit",e.MONITOR="monitor",e.PIPELINE_LOGS="pipeline_logs",e.PIPELINE_RUNS="pipeline_runs",e.RUNS="runs",e.SYNCS="syncs",e.TRIGGERS="triggers"}(t||(t={}))},2626:function(e,n,i){i.d(n,{Z:function(){return R}});var t=i(21831),r=i(75582),o=i(82684),l=i(83455),c=i(34376),s=i(28598);var a=function(e){var n=e.size;return(0,s.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("g",{clipPath:"url(#clip0_7525_68660)",children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.67625 7.82429C8.48671 8.13404 8.61933 8.53116 8.9436 8.69464C9.26787 8.85812 9.6606 8.72561 9.85513 8.41896C10.5416 7.33682 11.5276 6.47056 12.6997 5.92987C14.0715 5.29701 15.6173 5.14749 17.085 5.50568C18.5526 5.86388 19.8557 6.70866 20.7818 7.90233C21.7079 9.096 22.2023 10.5682 22.1845 12.0788C22.1667 13.5895 21.6377 15.0496 20.6837 16.2211C19.7298 17.3926 18.4071 18.2064 16.9314 18.5299C15.4557 18.8534 13.9139 18.6675 12.5573 18.0024C11.3984 17.4343 10.433 16.545 9.77227 15.447C9.58502 15.1358 9.19553 14.9941 8.86749 15.1499C8.53946 15.3057 8.39751 15.6995 8.5797 16.0137C9.37152 17.379 10.5525 18.4842 11.9785 19.1832C13.6018 19.9791 15.4469 20.2016 17.213 19.8145C18.979 19.4273 20.5619 18.4534 21.7035 17.0514C22.8451 15.6495 23.4781 13.9022 23.4994 12.0943C23.5208 10.2865 22.9291 8.52472 21.8208 7.09623C20.7126 5.66774 19.1532 4.65677 17.3968 4.22811C15.6403 3.79945 13.7905 3.97839 12.1488 4.73574C10.7068 5.40099 9.50004 6.47805 8.67625 7.82429ZM0.219185 12.5303C-0.0737079 12.2375 -0.0737079 11.7626 0.219185 11.4697L4.71918 6.96968C5.01208 6.67679 5.48695 6.67679 5.77985 6.96968C6.07274 7.26258 6.07274 7.73745 5.77985 8.03034L2.56017 11.25L15.7495 11.25C16.1637 11.25 16.4995 11.5858 16.4995 12C16.4995 12.4142 16.1637 12.75 15.7495 12.75L2.56017 12.75L5.77985 15.9697C6.07274 16.2626 6.07274 16.7375 5.77985 17.0303C5.48695 17.3232 5.01208 17.3232 4.71918 17.0303L0.219185 12.5303Z",fill:"url(#paint0_linear_7525_68660)"})}),(0,s.jsx)("defs",{children:(0,s.jsxs)("linearGradient",{id:"paint0_linear_7525_68660",x1:"11.7498",y1:"4",x2:"11.7498",y2:"20",gradientUnits:"userSpaceOnUse",children:[(0,s.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,s.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})},u=i(16953),d=i(61519);var p=function(e){var n=e.size;return(0,s.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.25 1C23.25 0.585786 22.9142 0.25 22.5 0.25C22.0858 0.25 21.75 0.585786 21.75 1V15.5C21.75 15.9142 22.0858 16.25 22.5 16.25C22.9142 16.25 23.25 15.9142 23.25 15.5V1ZM5 4.25C5.41421 4.25 5.75 4.58579 5.75 5V15.5C5.75 15.9142 5.41421 16.25 5 16.25C4.58579 16.25 4.25 15.9142 4.25 15.5V5C4.25 4.58579 4.58579 4.25 5 4.25ZM1.5 7.25C1.91421 7.25 2.25 7.58579 2.25 8V15.5C2.25 15.9142 1.91421 16.25 1.5 16.25C1.08579 16.25 0.75 15.9142 0.75 15.5V8C0.75 7.58579 1.08579 7.25 1.5 7.25ZM9.25 7C9.25 6.58579 8.91421 6.25 8.5 6.25C8.08579 6.25 7.75 6.58579 7.75 7V15.5C7.75 15.9142 8.08579 16.25 8.5 16.25C8.91421 16.25 9.25 15.9142 9.25 15.5V7ZM12 8.75C12.4142 8.75 12.75 9.08579 12.75 9.5V15.5C12.75 15.9142 12.4142 16.25 12 16.25C11.5858 16.25 11.25 15.9142 11.25 15.5V9.5C11.25 9.08579 11.5858 8.75 12 8.75ZM16.25 11.5C16.25 11.0858 15.9142 10.75 15.5 10.75C15.0858 10.75 14.75 11.0858 14.75 11.5V15.5C14.75 15.9142 15.0858 16.25 15.5 16.25C15.9142 16.25 16.25 15.9142 16.25 15.5V11.5ZM19 9.25C19.4142 9.25 19.75 9.58579 19.75 10V15.5C19.75 15.9142 19.4142 16.25 19 16.25C18.5858 16.25 18.25 15.9142 18.25 15.5V10C18.25 9.58579 18.5858 9.25 19 9.25Z",fill:"url(#paint0_linear_2919_69883)"}),(0,s.jsx)("defs",{children:(0,s.jsxs)("linearGradient",{id:"paint0_linear_2919_69883",x1:"1.5",y1:"11.875",x2:"22.75",y2:"11.875",gradientUnits:"userSpaceOnUse",children:[(0,s.jsx)("stop",{offset:".28125",stopColor:"#7D55EC"}),(0,s.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})},f=i(70434),h=i(34744),g=i(67971),b=i(87372),C=i(98781),x=i(29664),m=i(86673);var v=function(e){var n=e.size;return(0,s.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 17c0 1.1046-.89543 2-2 2s-2-.8954-2-2 .89543-2 2-2 2 .8954 2 2zm1.5 0c0 1.933-1.567 3.5-3.5 3.5S1.5 18.933 1.5 17s1.567-3.5 3.5-3.5 3.5 1.567 3.5 3.5zm2.25-.5c0-.4142.3358-.75.75-.75H22c.4142 0 .75.3358.75.75s-.3358.75-.75.75H11.5c-.4142 0-.75-.3358-.75-.75zM8.68946 4.29563c.16317-.38072-.0132-.82163-.39392-.9848-.38072-.16316-.82163.0132-.9848.39392L5.06418 8.94674c-.07952.18554-.3348.2052-.44179.03402L3.1361 6.60269c-.21953-.35125-.68225-.45803-1.0335-.2385-.35125.21954-.45803.68225-.2385 1.0335l1.48629 2.37807c.74892 1.19824 2.53587 1.06064 3.0925-.23814l2.24657-5.24199zM11.5 6.75c-.4142 0-.75.33579-.75.75s.3358.75.75.75H22c.4142 0 .75-.33579.75-.75s-.3358-.75-.75-.75H11.5z",fill:"url(#paint0_linear_2919_69883)"}),(0,s.jsx)("defs",{children:(0,s.jsxs)("linearGradient",{id:"paint0_linear_2919_69883",x1:"1.5",y1:"11.875",x2:"22.75",y2:"11.875",gradientUnits:"userSpaceOnUse",children:[(0,s.jsx)("stop",{offset:".28125",stopColor:"#7D55EC"}),(0,s.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})},j=i(82531),I=i(10503),S=i(9518),w=i(23831),y=i(73942),Z=i(49125),_=S.default.div.withConfig({displayName:"indexstyle__BannerStyle",componentId:"sc-1te3pmf-0"})(["border-radius:","px;padding:","px;"," "," ",""],y.n_,3*Z.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||w.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 ')})),P=i(3055),O=i(59920),k=i(96510),M=i(90211),E=i(24141);var R=function(e){var n=e.after,i=e.afterHidden,S=e.afterWidth,w=e.before,y=e.beforeWidth,R=e.breadcrumbs,D=e.buildSidekick,V=e.children,N=e.headline,H=e.pageName,L=e.pipeline,T=e.subheader,B=e.subheaderBackground,U=e.subheaderBackgroundImage,G=e.subheaderButton,z=e.subheaderText,A=e.title,F=e.uuid,W=(0,c.useRouter)(),Y=(0,E.i)().height,q=L.uuid,K=j.ZP.pipelines.detail(q,{includes_outputs:!1},{revalidateOnFocus:!1}).data,J=null===K||void 0===K?void 0:K.pipeline,Q=(0,l.Db)(j.ZP.pipelines.useCreate(),{onSuccess:function(e){return(0,k.wD)(e,{callback:function(e){var n=e.pipeline.uuid;W.push("/pipelines/[pipeline]/edit","/pipelines/".concat(n,"/edit"))}})}}),X=(0,r.Z)(Q,1)[0],$=(0,l.Db)((function(e){return j.ZP.pipelines.useDelete(e)()}),{onSuccess:function(e){return(0,k.wD)(e,{callback:function(){W.push("/pipelines")}})}}),ee=(0,r.Z)($,1)[0],ne=[{label:function(){return"New standard pipeline"},onClick:function(){return X({pipeline:{name:(0,M.Y6)()}})},uuid:"PipelineDetail/Header/new_standard_pipeline"},{label:function(){return"New streaming pipeline"},onClick:function(){return X({pipeline:{name:(0,M.Y6)(),type:C.q.STREAMING}})},uuid:"PipelineDetail/Header/new_streaming_pipeline"},{label:function(){return"Delete current pipeline"},onClick:function(){return ee(q)},openConfirmationDialogue:!0,uuid:"PipelineDetail/Header/delete_pipeline"}],ie=(0,o.useMemo)((function(){return n||(D?D({height:Y,heightOffset:P.Mz,pipeline:J}):null)}),[n,D,Y,J]),te=S||(ie?50*Z.iI:null),re=(0,o.useMemo)((function(){var e=[];return J&&(e.push.apply(e,[{label:function(){return"Pipelines"},linkProps:{href:"/pipelines"}}]),R?(e.push({label:function(){return J.uuid},linkProps:{as:"/pipelines/".concat(q,"/triggers"),href:"/pipelines/[pipeline]/triggers"}}),e.push.apply(e,(0,t.Z)(R)),e[e.length-1].bold=!0):e.push({bold:!0,label:function(){return J.name}})),e}),[R,J,q]),oe=[{Icon:I.Pf,IconSelected:x.Z,id:O.M.TRIGGERS,isSelected:function(){return O.M.TRIGGERS===H},label:function(){return"Triggers"},linkProps:{as:"/pipelines/".concat(q,"/triggers"),href:"/pipelines/[pipeline]/triggers"}},{Icon:I.pd,IconSelected:d.Z,id:O.M.RUNS,isSelected:function(){return O.M.RUNS===H},label:function(){return"Runs"},linkProps:{as:"/pipelines/".concat(q,"/runs"),href:"/pipelines/[pipeline]/runs"}},{Icon:I.yg,IconSelected:a,id:O.M.BACKFILLS,isSelected:function(){return O.M.BACKFILLS===H},label:function(){return"Backfills"},linkProps:{as:"/pipelines/".concat(q,"/backfills"),href:"/pipelines/[pipeline]/backfills"}},{Icon:I.B4,IconSelected:v,id:O.M.PIPELINE_LOGS,isSelected:function(){return O.M.PIPELINE_LOGS===H},label:function(){return"Logs"},linkProps:{as:"/pipelines/".concat(q,"/logs"),href:"/pipelines/[pipeline]/logs"}},{Icon:I.kL,IconSelected:p,id:O.M.MONITOR,isSelected:function(){return O.M.MONITOR===H},label:function(){return"Monitor"},linkProps:{as:"/pipelines/".concat(q,"/monitors"),href:"/pipelines/[pipeline]/monitors"}}];return C.q.INTEGRATION===(null===J||void 0===J?void 0:J.type)&&oe.unshift({Icon:I.Re,IconSelected:u.Z,id:O.M.SYNCS,isSelected:function(){return O.M.SYNCS===H},label:function(){return"Syncs"},linkProps:{as:"/pipelines/".concat(q,"/syncs"),href:"/pipelines/[pipeline]/syncs"}}),oe.unshift({Icon:null,IconSelected:null,id:O.M.EDIT,label:function(){return"Edit pipeline"},linkProps:{as:"/pipelines/".concat(q,"/edit"),href:"/pipelines/[pipeline]/edit"}}),(0,s.jsxs)(f.Z,{after:ie,afterHidden:i,afterWidth:te,before:w,beforeWidth:y,breadcrumbs:re,headerMenuItems:ne,navigationItems:oe,subheaderChildren:"undefined"!==typeof T&&T,title:J?A?A(J):J.name:null,uuid:F,children:[(G||z)&&(0,s.jsx)(m.Z,{mb:Z.Mq,mt:Z.cd,mx:Z.cd,children:(0,s.jsx)(_,{background:B,backgroundImage:U,children:(0,s.jsxs)(g.Z,{alignItems:"center",children:[G,z&&(0,s.jsx)(m.Z,{ml:3}),z]})})}),N&&(0,s.jsx)(m.Z,{p:Z.cd,children:(0,s.jsxs)(m.Z,{mt:Z.cd,px:Z.cd,children:[(0,s.jsx)(b.Z,{level:5,children:N}),(0,s.jsx)(h.Z,{light:!0,mt:Z.cd,short:!0})]})}),V]})}},18025:function(e,n,i){i.d(n,{J:function(){return s},U:function(){return c}});var t=i(9518),r=i(23831),o=i(73942),l=i(49125),c=t.default.div.withConfig({displayName:"indexstyle__CardStyle",componentId:"sc-m7tlau-0"})(["border-radius:","px;border-style:solid;border-width:2px;height:","px;margin-right:","px;padding:","px;width:","px;"," ",""],o.TR,14*l.iI,l.cd*l.iI,l.cd*l.iI,40*l.iI,(function(e){return!e.selected&&"\n border-color: ".concat((e.theme.borders||r.Z.borders).light,";\n ")}),(function(e){return e.selected&&"\n border-color: ".concat((e.theme.interactive||r.Z.interactive).linkPrimary,";\n ")})),s=t.default.div.withConfig({displayName:"indexstyle__DateSelectionContainer",componentId:"sc-m7tlau-1"})(["border-radius:","px;padding:","px;"," "," ",""],o.n_,l.tr,(function(e){return"\n background-color: ".concat((e.theme.interactive||r.Z.interactive).defaultBackground,";\n ")}),(function(e){return e.absolute&&"\n position: absolute;\n z-index: 2;\n right: 0;\n top: ".concat(2.5*l.iI,"px;\n ")}),(function(e){return e.topPosition&&"\n top: -".concat(42*l.iI,"px;\n ")}))},2713:function(e,n,i){var t=i(82394),r=i(44495),o=i(67971),l=i(55378),c=i(86673),s=i(19711),a=i(18025),u=i(49125),d=i(24224),p=i(28598);function f(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,t)}return i}function h(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?f(Object(i),!0).forEach((function(n){(0,t.Z)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):f(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}n.Z=function(e){var n=e.selectedDate,i=e.selectedTime,t=e.setSelectedDate,f=e.setSelectedTime,g=e.topPosition;return(0,p.jsxs)(a.J,{absolute:!0,topPosition:g,children:[(0,p.jsx)(r.ZP,{onChange:t,value:n}),(0,p.jsx)(c.Z,{mb:2}),(0,p.jsxs)(o.Z,{alignItems:"center",children:[(0,p.jsx)(s.ZP,{default:!0,large:!0,children:"Time (UTC):"}),(0,p.jsx)(c.Z,{pr:2}),(0,p.jsx)(l.Z,{compact:!0,monospace:!0,onChange:function(e){e.preventDefault(),f((function(n){return h(h({},n),{},{hour:e.target.value})}))},paddingRight:5*u.iI,placeholder:"HH",value:null===i||void 0===i?void 0:i.hour,children:(0,d.m5)(24,0).map((function(e){return String(e).padStart(2,"0")})).map((function(e){return(0,p.jsx)("option",{value:e,children:e},"hour_".concat(e))}))}),(0,p.jsx)(c.Z,{px:1,children:(0,p.jsx)(s.ZP,{bold:!0,large:!0,children:":"})}),(0,p.jsx)(l.Z,{compact:!0,monospace:!0,onChange:function(e){e.preventDefault(),f((function(n){return h(h({},n),{},{minute:e.target.value})}))},paddingRight:5*u.iI,placeholder:"MM",value:null===i||void 0===i?void 0:i.minute,children:(0,d.m5)(60,0).map((function(e){return String(e).padStart(2,"0")})).map((function(e){return(0,p.jsx)("option",{value:e,children:e},"minute_".concat(e))}))})]})]})}},32316:function(e,n,i){i.d(n,{Z:function(){return g}});var t=i(82684),r=i(60328),o=i(67971),l=i(882),c=i(86673),s=i(99994),a=i(9518),u=i(49125),d=i(37391),p=a.default.div.withConfig({displayName:"indexstyle__TabsContainerStyle",componentId:"sc-segf7l-0"})(["padding-left:","px;padding-right:","px;"," "," ",""],u.cd*u.iI,u.cd*u.iI,(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.allowScroll&&"\n overflow: auto;\n "}),d.w5),f=i(66653),h=i(28598);var g=function(e){var n=e.allowScroll,i=e.contained,a=e.noPadding,d=e.onClickTab,g=e.selectedTabUUID,b=e.small,C=e.tabs,x=(0,t.useMemo)((function(){var e=C.length,n=[];return C.forEach((function(i,t){var a=i.Icon,p=i.IconSelected,C=i.label,x=i.uuid,m=x===g,v=m&&p||a,j=C?C():x,I=(0,h.jsxs)(o.Z,{alignItems:"center",children:[v&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(v,{default:!m,size:2*u.iI}),(0,h.jsx)(c.Z,{mr:1})]}),j]});t>=1&&e>=2&&n.push((0,h.jsx)("div",{style:{marginLeft:1.5*u.iI}},"spacing-".concat(x))),m?n.push((0,h.jsx)(l.Z,{backgroundGradient:s.yr,backgroundPanel:!0,borderLess:!0,borderWidth:2,compact:b,onClick:function(e){(0,f.j)(e),d(i)},paddingUnitsHorizontal:2,paddingUnitsVertical:1.25,small:b,children:I},x)):n.push((0,h.jsx)("div",{style:{padding:4},children:(0,h.jsx)(r.Z,{borderLess:!0,compact:b,default:!0,onClick:function(e){(0,f.j)(e),d(i)},outline:!0,small:b,children:I},"button-tab-".concat(x))}))})),n}),[d,g,C]),m=(0,h.jsx)(o.Z,{alignItems:"center",children:x});return i?m:(0,h.jsx)(p,{allowScroll:n,noPadding:a,children:m})}},82944:function(e,n,i){var t=i(82394),r=i(91835),o=i(82684),l=i(9518),c=i(69898),s=i(28598);function a(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,t)}return i}function u(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?a(Object(i),!0).forEach((function(n){(0,t.Z)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):a(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}var d=l.default.input.withConfig({displayName:"TextInput__TextInputStyle",componentId:"sc-1ii4qtc-0"})(["",""],c.p),p=function(e,n){var i=(0,r.Z)({},e);return(0,s.jsx)(c.Z,u(u({},i),{},{input:(0,s.jsx)(d,u({},i)),ref:n}))};n.Z=o.forwardRef(p)},16953:function(e,n,i){var t=i(28598);n.Z=function(e){var n=e.size;return(0,t.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.5 8.5H15.5V3.5H20.5V8.5ZM14 9V3C14 2.44772 14.4477 2 15 2H21C21.5523 2 22 2.44772 22 3V9C22 9.55229 21.5523 10 21 10H15C14.4477 10 14 9.55229 14 9ZM2 5V12.5V14V21.5C2 22.0523 2.44772 22.5 3 22.5H10.5H12H19.5C20.0523 22.5 20.5 22.0523 20.5 21.5V13.5C20.5 12.9477 20.0523 12.5 19.5 12.5H12V5C12 4.44772 11.5523 4 11 4H3C2.44772 4 2 4.44772 2 5ZM10.5 14V21H3.5V14H10.5ZM19 14V21H12V14H19ZM10.5 5.5V12.5H3.5V5.5H10.5Z",fill:"url(#paint0_linear_2842_55048)"}),(0,t.jsx)("defs",{children:(0,t.jsxs)("linearGradient",{id:"paint0_linear_2842_55048",x1:"2",y1:"12.25",x2:"22",y2:"12.25",gradientUnits:"userSpaceOnUse",children:[(0,t.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,t.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9140],{2850:function(e,n,t){t.d(n,{M:function(){return l},W:function(){return c}});var r=t(9518),o=t(23831),i=t(3055),c=34*t(49125).iI,l=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);",""],i.Mz,(function(e){return"\n border-left: 1px solid ".concat((e.theme.borders||o.Z.borders).medium,";\n ")}))},79585:function(e,n,t){t.d(n,{DQ:function(){return u},HY:function(){return i},SA:function(){return a},WH:function(){return o},eC:function(){return c},tC:function(){return l}});var r=t(9736),o="Workspace",i="Preferences",c="Users",l="Account",u="Profile",a=function(e){var n=e.owner,t=[{linkProps:{href:"/settings/workspace/preferences"},uuid:i}];n&&t.push({linkProps:{href:"/settings/workspace/users"},uuid:c});var a=[{items:t,uuid:o}];return(0,r.YB)()?a.concat([{items:[{linkProps:{href:"/settings/account/profile"},uuid:u}],uuid:l}]):a}},30775:function(e,n,t){t.d(n,{Z:function(){return Z}});var r=t(70434),o=t(82394),i=t(12691),c=t.n(i),l=t(10919),u=t(86673),a=t(19711),s=t(9518),d=t(23831),p=t(49125),f=t(90880),m=(p.iI,s.default.div.withConfig({displayName:"indexstyle__SectionTitleStyle",componentId:"sc-1y8dyue-0"})(["padding:","px ","px;"],1*p.iI,2.5*p.iI)),h=s.default.div.withConfig({displayName:"indexstyle__ItemStyle",componentId:"sc-1y8dyue-1"})([""," padding:","px ","px;"," ",""],(0,f.eR)(),1.5*p.iI,2.5*p.iI,(function(e){return!e.selected&&"\n &:hover {\n background-color: ".concat((e.theme.background||d.Z.background).codeArea,";\n }\n ")}),(function(e){return e.selected&&"\n background-color: ".concat((e.theme.background||d.Z.background).codeTextarea,";\n ")})),b=t(28598),v=t(82684);function y(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 g(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?y(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):y(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var w=function(e){var n=e.isItemSelected,t=e.sections;return(0,b.jsx)(u.Z,{py:p.Gg,children:null===t||void 0===t?void 0:t.map((function(e){var t=e.items,r=e.title,o=e.uuid;return(0,b.jsxs)(u.Z,{children:[(0,b.jsx)(m,{children:(0,b.jsx)(a.ZP,{bold:!0,muted:!0,small:!0,uppercase:!0,children:r?r():o})}),null===t||void 0===t?void 0:t.map((function(e){var t=e.label,r=e.linkProps,i=e.onClick,u=e.uuid,a=t?t():u,s=(0,b.jsx)(h,{selected:null===n||void 0===n?void 0:n(g(g({},e),{},{uuidWorkspace:o})),children:a});return r?(0,v.createElement)(c(),g(g({},r),{},{key:u,passHref:!0}),(0,b.jsx)(l.Z,{block:!0,noHoverUnderline:!0,noOutline:!0,sameColorAsText:!0,children:s})):(0,b.jsx)(l.Z,{block:!0,noHoverUnderline:!0,noOutline:!0,onClick:i,preventDefault:!0,sameColorAsText:!0,children:s},u)}))]},o)}))})},O=t(2850),j=t(79585),x=t(9736);var Z=function(e){var n=e.after,t=e.afterHidden,o=e.children,i=e.uuidItemSelected,c=e.uuidWorkspaceSelected,l=((0,x.PR)()||{}).owner;return(0,b.jsx)(r.Z,{after:n,afterHidden:!n||t,afterWidth:n?50*p.iI:0,afterWidthOverride:!0,before:(0,b.jsx)(O.M,{children:(0,b.jsx)(w,{isItemSelected:function(e){var n=e.uuid,t=e.uuidWorkspace;return c===t&&i===n},sections:(0,j.SA)({owner:l})})}),beforeWidth:O.W,title:"Settings",uuid:"settings/index",children:o})}},63153:function(e,n,t){t.d(n,{Z3:function(){return r},ms:function(){return i},s7:function(){return o}});var r=[{autoComplete:"username",label:"Username",required:!0,uuid:"username"},{autoComplete:"email",disabled:!0,label:"Email",required:!0,type:"email",uuid:"email"}],o="password_current",i=[{autoComplete:"current-password",label:"Current password",type:"password",uuid:o},{autoComplete:"new-password",label:"New password",type:"password",uuid:"password"},{autoComplete:"new-password",label:"Confirm new password",type:"password",uuid:"password_confirmation"}]},67867:function(e,n,t){t.d(n,{Z:function(){return S}});var r,o,i=t(82394),c=t(21831),l=t(75582),u=t(21764),a=t(82684),s=t(83455),d=t(60328),p=t(67971),f=t(87372),m=t(55378),h=t(86673),b=t(82944);!function(e){e[e.ADMIN=1]="ADMIN",e[e.EDITOR=2]="EDITOR",e[e.VIEWER=4]="VIEWER"}(o||(o={}));var v=(r={},(0,i.Z)(r,o.ADMIN,"Admin"),(0,i.Z)(r,o.EDITOR,"Editor"),(0,i.Z)(r,o.VIEWER,"Viewer"),r),y=[o.VIEWER,o.EDITOR,o.ADMIN],g=t(82531),w=t(66166),O=t(63153),j=t(7715),x=t(96510),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,i.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 S=function(e){var n=e.disabledFields,t=e.hideFields,r=e.newUser,o=e.onDeleteSuccess,I=e.onSaveSuccess,S=e.showDelete,C=e.title,k=e.user,_=(0,a.useState)(!0),N=_[0],D=_[1],E=(0,a.useState)({}),H=E[0],z=E[1],T=(0,a.useState)(null),A=T[0],M=T[1],R=(0,s.Db)(r?g.ZP.users.useCreate():g.ZP.users.useUpdate(null===k||void 0===k?void 0:k.id),{onSuccess:function(e){return(0,x.wD)(e,{callback:function(e){var n=e.user,t=(0,j.GL)(n,O.Z3.concat(O.ms).map((function(e){return e.uuid})));M(t),u.Am.success(r?"New user created successfully.":"User profile successfully updated.",{position:u.Am.POSITION.BOTTOM_RIGHT,toastId:"user-update-success-".concat(n.id)}),null===I||void 0===I||I(t)},onErrorCallback:function(e){var n=e.error,t=n.message,r=n.type;u.Am.error(t,{position:u.Am.POSITION.BOTTOM_RIGHT,toastId:r})}})}}),L=(0,l.Z)(R,2),W=L[0],q=L[1].isLoading,B=(0,s.Db)(g.ZP.users.useDelete(null===k||void 0===k?void 0:k.id),{onSuccess:function(e){return(0,x.wD)(e,{callback:function(){null===o||void 0===o||o()},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.message;alert(r),console.log(t)}})}}),U=(0,l.Z)(B,2),F=U[0],G=U[1].isLoading,Q=t?(0,c.Z)(t):[];r&&Q.push(O.s7);var V=!Q||!Q.includes(O.s7),Y=(0,w.Z)(k);return(0,a.useEffect)((function(){!k||A&&(null===Y||void 0===Y?void 0:Y.id)===(null===k||void 0===k?void 0:k.id)||M((0,j.GL)(k,O.Z3.concat(O.ms).map((function(e){return e.uuid})))),null!==A&&void 0!==A&&A.password||null!==A&&void 0!==A&&A.password_confirmation?(null===A||void 0===A?void 0:A.password)!==(null===A||void 0===A?void 0:A.password_confirmation)?z({password_confirmation:"Password confirmation does not match."}):!V||null!==A&&void 0!==A&&A.password_current?z(null):z({password_current:"This field is required."}):null!==A&&void 0!==A&&A.password_current&&V?null!==A&&void 0!==A&&A.password&&null!==A&&void 0!==A&&A.password_confirmation?z(null):z({password:"This field is required.",password_confirmation:"This field is required."}):null!==A&&void 0!==A&&A.password_current||null!==A&&void 0!==A&&A.password||null!==A&&void 0!==A&&A.password_confirmation||z(null)}),[A,V,k,Y]),(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(f.Z,{children:C||"Edit profile"}),(0,Z.jsxs)("form",{children:[O.Z3.filter((function(e){var n=e.uuid;return!Q||!Q.includes(n)})).map((function(e){var n=e.autoComplete,t=e.disabled,o=e.label,c=e.required,l=e.type,u=e.uuid;return(0,Z.jsx)(h.Z,{mt:2,children:(0,Z.jsx)(b.Z,{autoComplete:n,disabled:t&&!r,label:o,onChange:function(e){D(!1),M((function(n){return P(P({},n),{},(0,i.Z)({},u,e.target.value))}))},primary:!0,required:c,setContentOnMount:!0,type:l,value:(null===A||void 0===A?void 0:A[u])||""})},u)})),!(null!==k&&void 0!==k&&k.owner)&&(0,Z.jsx)(h.Z,{mt:2,children:(0,Z.jsxs)(m.Z,{disabled:null===n||void 0===n?void 0:n.includes("roles"),label:"Roles",onChange:function(e){D(!1),M((function(n){return P(P({},n),{},{roles:e.target.value})}))},primary:!0,setContentOnMount:!0,value:(null===A||void 0===A?void 0:A.roles)||(null===k||void 0===k?void 0:k.roles)||"",children:[(0,Z.jsx)("option",{value:""}),y.map((function(e){return(0,Z.jsx)("option",{value:e,children:v[e]},e)}))]})}),(0,Z.jsxs)(h.Z,{mt:5,children:[(0,Z.jsx)(f.Z,{children:r?"Password":"Change password"}),O.ms.filter((function(e){var n=e.uuid;return!Q||!Q.includes(n)})).map((function(e){var n=e.autoComplete,t=e.disabled,r=e.label,o=e.required,c=e.type,l=e.uuid;return(0,Z.jsx)(h.Z,{mt:2,children:(0,Z.jsx)(b.Z,{autoComplete:n,disabled:t,label:r,meta:{error:null===H||void 0===H?void 0:H[l],touched:!(null===H||void 0===H||!H[l])},onChange:function(e){D(!1),M((function(n){return P(P({},n),{},(0,i.Z)({},l,e.target.value))}))},primary:!0,required:o,setContentOnMount:!0,type:c,value:(null===A||void 0===A?void 0:A[l])||""})},l)}))]}),(0,Z.jsx)(h.Z,{mt:5,children:(0,Z.jsxs)(p.Z,{children:[(0,Z.jsx)(d.Z,{disabled:N||H&&!(0,j.Qr)(H),loading:q,onClick:function(){return W({user:A})},primary:!0,children:r?"Create new user":"Update user profile"}),S&&(0,Z.jsx)(h.Z,{ml:1,children:(0,Z.jsx)(d.Z,{danger:!0,loading:G,onClick:function(){window.confirm("Are you sure you want to delete ".concat(A.username||A.email,"?"))&&F()},children:"Delete user"})})]})})]})]})}},87372:function(e,n,t){var r,o,i,c,l,u,a,s,d=t(82394),p=t(26304),f=t(26653),m=t(9518),h=t(33591),b=t(23831),v=t(2005),y=t(31012),g=t(19711),w=t(49125),O=t(86673),j=t(28598),x=["children","condensed","inline","level","marketing","spacingBelow"];function Z(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 I(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach((function(n){(0,d.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var P=(0,m.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],g.IH,(function(e){return e.color&&"\n color: ".concat(e.color,"\n ")}),(function(e){return e.yellow&&"\n color: ".concat((e.theme.accent||b.Z.accent).yellow,";\n ")}),(function(e){return e.center&&"\n text-align: center;\n "}),(function(e){return!e.monospace&&0===Number(e.weightStyle)&&"\n font-family: ".concat(v.iI,";\n ")}),(function(e){return!e.monospace&&1===Number(e.weightStyle)&&"\n font-family: ".concat(v.LX,";\n ")}),(function(e){return!e.monospace&&2===Number(e.weightStyle)&&"\n font-family: ".concat(v.LX,";\n ")}),(function(e){return!e.monospace&&3===Number(e.weightStyle)&&"\n font-family: ".concat(v.ry,";\n ")}),(function(e){return!e.monospace&&4===Number(e.weightStyle)&&"\n font-family: ".concat(v.YC,";\n ")}),(function(e){return!e.monospace&&5===Number(e.weightStyle)&&"\n font-family: ".concat(v.nF,";\n ")}),(function(e){return!e.monospace&&(6===Number(e.weightStyle)||e.bold)&&"\n font-family: ".concat(v.nF,";\n ")}),(function(e){return!e.monospace&&7===Number(e.weightStyle)&&"\n font-family: ".concat(v.nF,";\n ")}),(function(e){return!e.monospace&&8===Number(e.weightStyle)&&"\n font-family: ".concat(v.nF,";\n ")}),(function(e){return e.lineHeightAuto&&"\n line-height: normal !important;\n "})),S=m.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(e){return"\n color: ".concat((e.theme.content||b.Z.content).active,";\n ")})),C=m.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],P,h.media.md(r||(r=(0,f.Z)(["\n ","\n "])),y.aQ),h.media.lg(o||(o=(0,f.Z)(["\n ","\n "])),y.aQ),h.media.xl(i||(i=(0,f.Z)(["\n ","\n "])),y.aQ)),k=m.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],P,y.MJ),_=m.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],P,h.media.xs(c||(c=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),h.media.sm(l||(l=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),h.media.md(u||(u=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),h.media.lg(a||(a=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),h.media.xl(s||(s=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI)),N=m.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],P,y.BL),D=m.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],P),E=m.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],P),H=m.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],P),z=m.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],P,(function(e){return 1===e.level&&"\n ".concat(y.MJ,"\n ")}),(function(e){return 2===e.level&&"\n ".concat(y.BL,"\n ")}),(function(e){return 3===e.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(e){return 4===e.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),T=function(e){var n,t=e.children,r=e.condensed,o=e.inline,i=e.level,c=e.marketing,l=e.spacingBelow,u=(0,p.Z)(e,x);o?n=z:0===Number(i)?n=C:1===Number(i)?n=c?_:k:2===Number(i)?n=N:3===Number(i)?n=D:4===Number(i)?n=E:5===Number(i)&&(n=H);var a=(0,j.jsxs)(n,I(I({},u),{},{level:i,children:[l&&(0,j.jsx)(O.Z,{mb:r?2:3,children:t}),!l&&t]}));return o?a:(0,j.jsx)(S,{children:a})};T.defaultProps={level:3,weightStyle:6},n.Z=T},55378:function(e,n,t){var r=t(82394),o=t(26304),i=t(82684),c=t(9518),l=t(69898),u=t(31969),a=t(49125),s=t(28598),d=["beforeIcon","children","label","multiple","placeholder"];function p(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 f(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?p(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):p(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var m=c.default.select.withConfig({displayName:"Select__SelectStyle",componentId:"sc-q6ezu2-0"})(["",' background-image:url("data:image/svg+xml;utf8,','");background-repeat:no-repeat;background-position:-webkit-calc(100% - ',"px) center;background-position:calc(100% - ","px) center;padding-right:","px;&:hover{cursor:pointer;}"," "," "," ",""],l.p,"\n <svg width='12' height='12' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'>\n <path\n clip-rule='evenodd'\n d='M8.0015 11.7109L14.0022 5.71017L12.588 4.29597L7.99485 8.88914L3.40754 4.34482L2 5.76567L8.0015 11.7109Z'\n fill='%23B4B8C0'\n fill-rule='evenodd'\n />\n </svg>",a.iI,a.iI,2.5*a.iI,(function(e){return!e.hasContent&&!e.showPlaceholder&&"\n color: ".concat((e.theme.content||u.Z.content).muted,";\n ")}),(function(e){return e.backgroundColor&&"\n background-color: ".concat(e.backgroundColor,";\n ")}),(function(e){return e.color&&"\n color: ".concat(e.color,";\n ")}),(function(e){return e.showPlaceholder&&"\n color: ".concat((e.theme.content||u.Z.content).inverted,";\n ")})),h=function(e,n){var t=e.beforeIcon,r=e.children,i=e.label,c=e.multiple,u=e.placeholder,a=(0,o.Z)(e,d);return(0,s.jsx)(l.Z,f(f({},a),{},{beforeIcon:t,input:(0,s.jsxs)(m,f(f({multiple:c},a),{},{children:[(i||u)&&(0,s.jsx)("option",{disabled:!0,selected:!0,value:"",children:i||u}),r]})),label:i,placeholder:u,ref:n,setContentOnMount:!0,showLabelRequirement:function(e){return!!e.content}}))};n.Z=i.forwardRef(h)},82944:function(e,n,t){var r=t(82394),o=t(91835),i=t(82684),c=t(9518),l=t(69898),u=t(28598);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 s(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}var d=c.default.input.withConfig({displayName:"TextInput__TextInputStyle",componentId:"sc-1ii4qtc-0"})(["",""],l.p),p=function(e,n){var t=(0,o.Z)({},e);return(0,u.jsx)(l.Z,s(s({},t),{},{input:(0,u.jsx)(d,s({},t)),ref:n}))};n.Z=i.forwardRef(p)}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9767],{64318:function(n,e,t){t.d(e,{u:function(){return c}});var r=t(9518),o=t(23831),i=t(49125),c=r.default.div.withConfig({displayName:"indexstyle__LinkStyle",componentId:"sc-y3uzxv-0"})(["padding:","px;&:hover{cursor:pointer;","}",""],i.iI,(function(n){return"\n background-color: ".concat((n.theme.interactive||o.Z.interactive).hoverBackground,";\n ")}),(function(n){return n.highlighted&&"\n background-color: ".concat((n.theme.interactive||o.Z.interactive).hoverBackground,";\n ")}))},86585:function(n,e,t){t.d(e,{Mz:function(){return l},T5:function(){return u},bf:function(){return d}});var r,o=t(82394),i=t(10503),c=t(88560),a=t(49125),l=7*a.iI,d=22,u=(a.iI,a.iI,r={},(0,o.Z)(r,c.RL.CATEGORY,i.WD),(0,o.Z)(r,c.RL.CATEGORY_HIGH_CARDINALITY,i.Rj),(0,o.Z)(r,c.RL.DATETIME,i.aw),(0,o.Z)(r,c.RL.EMAIL,i.GT),(0,o.Z)(r,c.RL.LIST,i.aV),(0,o.Z)(r,c.RL.NUMBER,i.qZ),(0,o.Z)(r,c.RL.NUMBER_WITH_DECIMALS,i.As),(0,o.Z)(r,c.RL.PHONE_NUMBER,i.LP),(0,o.Z)(r,c.RL.TEXT,i.KJ),(0,o.Z)(r,c.RL.TRUE_OR_FALSE,i.Kb),(0,o.Z)(r,c.RL.UUID,i.SS),(0,o.Z)(r,c.RL.ZIP_CODE,i.$t),r)},3055:function(n,e,t){t.d(e,{I5:function(){return l},Mz:function(){return a},y7:function(){return c}});var r=t(9518),o=t(23831),i=t(49125),c=2.5*i.iI,a=6*i.iI,l=r.default.div.withConfig({displayName:"indexstyle__HeaderStyle",componentId:"sc-1bk8irg-0"})(["height:","px;left:0;padding-left:","px;padding-right:","px;position:fixed;top:0;width:100%;z-index:10;",""],a,2*i.iI,2*i.iI,(function(n){return"\n background-color: ".concat((n.theme.background||o.Z.background).panel,";\n border-bottom: 1px solid ").concat((n.theme.borders||o.Z.borders).medium,";\n ")}))},19767:function(n,e,t){t.d(e,{Z:function(){return B}});var r=t(82394),o=t(12691),i=t.n(o),c=t(82684),a=t(34376),l=t(35490),d=t(60328),u=t(16634),s=t(47999),p=t(57639),f=t(93461),h=t(67971),g=t(62084),b=t(28598),v=18.53/14;var m=function(n){var e=n.height,t=n.width,r=e||(t?t*(1/v):14),o=t||(e?e*v:18.53);return(0,b.jsxs)("svg",{width:o,height:r,viewBox:"0 0 20 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,b.jsx)("path",{opacity:"0.4",d:"M15.3266 0L19.2641 1.82961e-06L11.9687 14L8.03125 14L15.3266 0Z",fill:"url(#paint0_linear_1303_5)"}),(0,b.jsx)("path",{d:"M11.9692 1.82961e-06L8.03164 0L0.736328 14L4.67383 14L8.03164 7.55626V14H11.9691V8.38194e-05L11.9692 1.82961e-06Z",fill:"url(#paint1_linear_1303_5)"}),(0,b.jsx)("path",{d:"M15.3269 2.57679e-06H19.2644V14H15.3269V2.57679e-06Z",fill:"url(#paint2_linear_1303_5)"}),(0,b.jsxs)("defs",{children:[(0,b.jsxs)("linearGradient",{id:"paint0_linear_1303_5",x1:"8.03125",y1:"7",x2:"19.2641",y2:"7",gradientUnits:"userSpaceOnUse",children:[(0,b.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,b.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]}),(0,b.jsxs)("linearGradient",{id:"paint1_linear_1303_5",x1:"0.736328",y1:"7",x2:"19.2644",y2:"7",gradientUnits:"userSpaceOnUse",children:[(0,b.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,b.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]}),(0,b.jsxs)("linearGradient",{id:"paint2_linear_1303_5",x1:"0.736328",y1:"7",x2:"19.2644",y2:"7",gradientUnits:"userSpaceOnUse",children:[(0,b.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,b.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})]})]})},x=t(9518),y=x.default.span.withConfig({displayName:"GradientText__SpanStyle",componentId:"sc-1q4m7d7-0"})([""," "," ",""],(function(n){return n.backgroundGradient&&"\n -webkit-background-clip: text !important;\n -webkit-text-fill-color: transparent;\n background: ".concat(n.backgroundGradient,";\n background-clip: text;\n display: inline-block;\n ")}),(function(n){return"undefined"!==typeof n.startingOpacity&&"\n opacity: ".concat(n.startingOpacity,";\n ")}),(function(n){return n.color&&"\n color: ".concat(n.color," !important;\n ")}));var j=function(n){var e=n.backgroundGradient,t=n.children,r=n.color,o=n.startingOpacity;return(0,b.jsx)(y,{backgroundGradient:e,color:r,startingOpacity:o,children:t})},w=t(11135),O=t(10919),k=x.default.svg.withConfig({displayName:"Mage8Bit__SVGStyle",componentId:"sc-cj6ltf-0"})([""]),Z=function(n){var e=n.size,t=void 0===e?20:e,r=n.viewBox,o=void 0===r?"0 0 20 20":r;return(0,b.jsxs)(k,{height:t,viewBox:o,width:t,children:[(0,b.jsxs)("g",{clipPath:"url(#clip0_297_42814)",children:[(0,b.jsx)("path",{d:"M13.334 0h1.66667v1.66667H13.334zM11.666 1.6665h1.66667v1.66667H11.666z",fill:"#7949FF"}),(0,b.jsx)("path",{d:"M10 1.6665h1.66667v1.66667H10z",fill:"#7949FF"}),(0,b.jsx)("path",{d:"M8.33398 1.6665h1.66667v1.66667H8.33398z",fill:"#AF93FF"}),(0,b.jsx)("path",{d:"M8.33398 3.3335h1.66667v1.66667H8.33398z",fill:"#7949FF"}),(0,b.jsx)("path",{d:"M6.66602 3.3335h1.66667v1.66667H6.66602z",fill:"#AF93FF"}),(0,b.jsx)("path",{d:"M3.33398 5h1.66667v1.66667H3.33398z",fill:"#7949FF"}),(0,b.jsx)("path",{d:"M5 5h1.66667v1.66667H5z",fill:"#7949FF"}),(0,b.jsx)("path",{d:"M6.66602 5h1.66667v1.66667H6.66602z",fill:"#7949FF"}),(0,b.jsx)("path",{d:"M6.66602 5h1.66667v1.66667H6.66602z",fill:"#7949FF"}),(0,b.jsx)("path",{d:"M6.66602 8.3335h1.66667v1.66667H6.66602z",fill:"#000"}),(0,b.jsx)("path",{d:"M6.66602 6.6665h1.66667v1.66667H6.66602z",fill:"#AD8FFF"}),(0,b.jsx)("path",{d:"M6.66602 10h1.66667v1.66667H6.66602z",fill:"#C9B6FF"}),(0,b.jsx)("path",{d:"M8.33398 6.6665h1.66667v1.66667H8.33398z",fill:"#AD8FFF"}),(0,b.jsx)("path",{d:"M1.66602 13.3335h1.66667v1.66667H1.66602z",fill:"#C9B6FF"}),(0,b.jsx)("path",{d:"M1.66602 11.6665h1.66667v1.66667H1.66602z",fill:"#FFCC19"}),(0,b.jsx)("path",{d:"M1.66602 10h1.66667v1.66667H1.66602z",fill:"#FFCC19"}),(0,b.jsx)("path",{d:"M1.66602 8.3335h1.66667v1.66667H1.66602zM1.66602 6.6665h1.66667v1.66667H1.66602z",fill:"#FFCC19"}),(0,b.jsx)("path",{d:"M1.66602 6.6665h1.66667v1.66667H1.66602zM0 0h1.66667v1.66667H0zM3.33398 1.6665h1.66667v1.66667H3.33398zM0 3.3335h1.66667v1.66667H0z",fill:"#2ECDF7"}),(0,b.jsx)("path",{d:"M1.66602 16.6665h1.66667v1.66667H1.66602z",fill:"#FFCC19"}),(0,b.jsx)("path",{d:"M1.66602 16.6665h1.66667v1.66667H1.66602zM1.66602 18.3335h1.66667v1.66667H1.66602z",fill:"#FFCC19"}),(0,b.jsx)("path",{d:"M1.66602 15h1.66667v1.66667H1.66602zM3.33398 15h1.66667v1.66667H3.33398z",fill:"#C9B6FF"}),(0,b.jsx)("path",{d:"M3.33398 16.6665h1.66667v1.66667H3.33398z",fill:"#C9B6FF"}),(0,b.jsx)("path",{d:"M3.33398 13.3335h1.66667v1.66667H3.33398z",fill:"#AD8FFF"}),(0,b.jsx)("path",{d:"M8.33398 8.3335h1.66667v1.66667H8.33398z",fill:"#C9B6FF"}),(0,b.jsx)("path",{d:"M10 6.6665h1.66667v1.66667H10z",fill:"#AD8FFF"}),(0,b.jsx)("path",{d:"M10 10h1.66667v1.66667H10z",fill:"#C9B6FF"}),(0,b.jsx)("path",{d:"M11.666 6.6665h1.66667v1.66667H11.666z",fill:"#AD8FFF"}),(0,b.jsx)("path",{d:"M11.666 8.3335h1.66667v1.66667H11.666z",fill:"#C9B6FF"}),(0,b.jsx)("path",{d:"M8.33398 10h1.66667v1.66667H8.33398z",fill:"#FF8DA9"}),(0,b.jsx)("path",{d:"M8.33398 11.6665h1.66667v1.66667H8.33398z",fill:"#FF8DA9"}),(0,b.jsx)("path",{d:"M6.66602 11.6665h1.66667v1.66667H6.66602z",fill:"#D9D9D9"}),(0,b.jsx)("path",{d:"M6.66602 11.6665h1.66667v1.66667H6.66602z",fill:"#D9D9D9"}),(0,b.jsx)("path",{d:"M5 10h1.66667v1.66667H5z",fill:"#D9D9D9"}),(0,b.jsx)("path",{d:"M5 8.3335h1.66667v1.66667H5z",fill:"#232429"}),(0,b.jsx)("path",{d:"M8.33398 11.6665h1.66667v1.66667H8.33398zM8.33398 13.3335h1.66667v1.66667H8.33398z",fill:"#D9D9D9"}),(0,b.jsx)("path",{d:"M10 11.6665h1.66667v1.66667H10z",fill:"#D9D9D9"}),(0,b.jsx)("path",{d:"M11.666 10h1.66667v1.66667H11.666zM13.334 6.6665h1.66667v1.66667H13.334zM13.334 8.3335h1.66667v1.66667H13.334z",fill:"#D9D9D9"}),(0,b.jsx)("path",{d:"M15 8.3335h1.66667v1.66667H15z",fill:"#757575"}),(0,b.jsx)("path",{d:"M15 10h1.66667v1.66667H15z",fill:"#D9D9D9"}),(0,b.jsx)("path",{d:"M10 8.3335h1.66667v1.66667H10z",fill:"#000"}),(0,b.jsx)("path",{d:"M8.33398 5h1.66667v1.66667H8.33398zM11.666 5h1.66667v1.66667H11.666z",fill:"#7949FF"}),(0,b.jsx)("path",{d:"M13.334 10h1.66667v1.66667H13.334zM11.666 11.6665h1.66667v1.66667H11.666zM10 13.3335h1.66667v1.66667H10z",fill:"#501FD8"}),(0,b.jsx)("path",{d:"M8.33398 15h1.66667v1.66667H8.33398zM6.66602 13.3335h1.66667v1.66667H6.66602zM15 11.6665h1.66667v1.66667H15z",fill:"#501FD8"}),(0,b.jsx)("path",{d:"M16.666 11.6665h1.66667v1.66667H16.666zM16.666 13.3335h1.66667v1.66667H16.666z",fill:"#501FD8"}),(0,b.jsx)("path",{d:"M15 13.3335h1.66667v1.66667H15z",fill:"#7949FF"}),(0,b.jsx)("path",{d:"M13.334 13.3335h1.66667v1.66667H13.334zM13.334 11.6665h1.66667v1.66667H13.334zM11.666 13.3335h1.66667v1.66667H11.666z",fill:"#7949FF"}),(0,b.jsx)("path",{d:"M11.666 15h1.66667v1.66667H11.666z",fill:"#7949FF"}),(0,b.jsx)("path",{d:"M10 15h1.66667v1.66667H10z",fill:"#7949FF"}),(0,b.jsx)("path",{d:"M8.33398 16.6665h1.66667v1.66667H8.33398z",fill:"#7949FF"}),(0,b.jsx)("path",{d:"M6.66602 15h1.66667v1.66667H6.66602z",fill:"#AF93FF"}),(0,b.jsx)("path",{d:"M6.66602 16.6665h1.66667v1.66667H6.66602z",fill:"#7949FF"}),(0,b.jsx)("path",{d:"M5 16.6665h1.66667v1.66667H5z",fill:"#AF93FF"}),(0,b.jsx)("path",{d:"M5 18.3335h1.66667v1.66667H5z",fill:"#7949FF"}),(0,b.jsx)("path",{d:"M6.66602 18.3335h1.66667v1.66667H6.66602zM8.33398 18.3335h1.66667v1.66667H8.33398z",fill:"#7949FF"}),(0,b.jsx)("path",{d:"M10 18.3335h1.66667v1.66667H10z",fill:"#7949FF"}),(0,b.jsx)("path",{d:"M11.666 18.3335h1.66667v1.66667H11.666zM13.334 18.3335h1.66667v1.66667H13.334z",fill:"#7949FF"}),(0,b.jsx)("path",{d:"M15 18.3335h1.66667v1.66667H15z",fill:"#7949FF"}),(0,b.jsx)("path",{d:"M16.666 18.3335h1.66667v1.66667H16.666z",fill:"#652EFF"}),(0,b.jsx)("path",{d:"M3.33398 18.3335h1.66667v1.66667H3.33398zM10 16.6665h1.66667v1.66667H10z",fill:"#7949FF"}),(0,b.jsx)("path",{d:"M11.666 16.6665h1.66667v1.66667H11.666zM13.334 15h1.66667v1.66667H13.334z",fill:"#7949FF"}),(0,b.jsx)("path",{d:"M13.334 16.6665h1.66667v1.66667H13.334z",fill:"#7949FF"}),(0,b.jsx)("path",{d:"M15 16.6665h1.66667v1.66667H15z",fill:"#7949FF"}),(0,b.jsx)("path",{d:"M15 15h1.66667v1.66667H15z",fill:"#7949FF"}),(0,b.jsx)("path",{d:"M16.666 15h1.66667v1.66667H16.666zM18.334 16.6665h1.66667v1.66667H18.334zM18.334 18.3335h1.66667v1.66667H18.334z",fill:"#501FD8"}),(0,b.jsx)("path",{d:"M16.666 16.6665h1.66667v1.66667H16.666z",fill:"#652EFF"}),(0,b.jsx)("path",{d:"M13.334 5h1.66667v1.66667H13.334z",fill:"#7949FF"}),(0,b.jsx)("path",{d:"M15 5h1.66667v1.66667H15zM10 5h1.66667v1.66667H10z",fill:"#7949FF"}),(0,b.jsx)("path",{d:"M10 3.3335h1.66667v1.66667H10z",fill:"#7949FF"}),(0,b.jsx)("path",{d:"M11.666 3.3335h1.66667v1.66667H11.666z",fill:"#7949FF"}),(0,b.jsx)("path",{d:"M11.666 0h1.66667v1.66667H11.666z",fill:"#AF93FF"})]}),(0,b.jsx)("defs",{children:(0,b.jsx)("clipPath",{id:"clip0_297_42814",children:(0,b.jsx)("path",{d:"M0 0h20v20H0z",fill:"#fff"})})})]})},P=t(62609),C=t(86673),I=t(19711),H=t(46261),M=t(82531),F=t(73899),z=t(3055),_=t(64318),D=t(9736),E=t(49125),T=t(59e3);function S(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function R(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?S(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):S(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var B=function(n){var e=n.breadcrumbs,t=n.menuItems,r=n.project,o=n.version,v=(0,c.useState)(!1),x=v[0],y=v[1],k=(0,c.useState)(null),S=k[0],B=k[1],A=(0,c.useState)(!1),L=A[0],N=A[1],G=(0,c.useState)(null),U=G[0],W=G[1],Y=(0,c.useRef)(null),K=(0,c.useRef)(null),V=(0,a.useRouter)(),q=M.ZP.projects.list({},{revalidateOnFocus:!1},{pauseFetch:!!r}).data,X=(0,c.useMemo)((function(){var n;return r||(null===q||void 0===q||null===(n=q.projects)||void 0===n?void 0:n[0])}),[q,r]),Q=(0,c.useMemo)((function(){return o||(null===X||void 0===X?void 0:X.version)}),[X,o]),J=l.Z.isLoggedIn(),$=(0,c.useMemo)((function(){return e||[{bold:!0,label:function(){return null===X||void 0===X?void 0:X.name},linkProps:{href:"/",sameColorText:!0}}]}),[e,X]),nn=V.query.pipeline,en=(0,c.useMemo)((function(){var n=$.length,e=[];return $.forEach((function(t,r){var o=t.bold,a=t.gradientColor,l=t.label,d=t.linkProps,u=l();n>=2&&r>=1&&e.push((0,b.jsx)(I.ZP,{inline:!0,monospace:!0,muted:!0,children:"\xa0 / \xa0"},"divider-".concat(u)));var s=(0,b.jsx)(I.ZP,{bold:o,default:!o,monospace:!0,children:u}),p=(0,b.jsxs)(C.Z,{ml:0===r?2:0,children:[a&&(0,b.jsx)(j,{backgroundGradient:a,children:s}),!a&&s]},"breadcrumb-".concat(u));d&&(p=(0,c.createElement)(i(),R(R({},d),{},{key:"breadcrumb-link-".concat(u),passHref:!0}),(0,b.jsx)(O.Z,{block:!0,default:!o,noOutline:!0,sameColorAsText:o,children:p}))),e.push(p)})),e}),[$]),tn=(X||{}).latest_version,rn=(0,c.useMemo)((function(){return(0,b.jsx)(i(),{as:"/",href:"/",passHref:!0,children:(0,b.jsx)(O.Z,{block:!0,height:z.y7,noHoverUnderline:!0,noOutline:!0,children:(0,b.jsx)(m,{height:z.y7})})})}),[]),on=[{label:function(){return"User settings"},linkProps:{href:"/settings/workspace/preferences"},uuid:"user_settings"}];return(0,D.YB)()&&on.push({label:function(){return"Sign out"},onClick:function(){l.Z.logout((function(){M.ZP.sessions.updateAsync(null,1).then((function(){(0,T.nL)("/sign-in")})).catch((function(){(0,T.nL)("/")}))}))},uuid:"sign_out"}),(0,b.jsx)(z.I5,{children:(0,b.jsx)(p.Z,{children:(0,b.jsxs)(h.Z,{alignItems:"center",fullHeight:!0,justifyContent:"space-between",children:[(0,b.jsxs)(f.Z,{alignItems:"center",children:[Q&&(0,b.jsx)(H.Z,{height:z.y7,label:"Version ".concat(Q),size:null,visibleDelay:300,widthFitContent:!0,children:rn}),!Q&&rn,en]}),(0,b.jsxs)(f.Z,{alignItems:"center",children:[tn&&Q&&tn!==Q&&(0,b.jsx)(C.Z,{ml:2,children:(0,b.jsx)(d.Z,{borderLess:!0,linkProps:{href:"https://docs.mage.ai/about/releases"},noHoverUnderline:!0,primary:!0,target:"_blank",children:(0,b.jsxs)(I.ZP,{children:["\ud83d\ude80 Download new version ",(0,b.jsx)(I.ZP,{bold:!0,inline:!0,monospace:!0,children:tn})]})})}),Q&&"undefined"!==typeof Q&&(0,b.jsx)(C.Z,{ml:2,children:(0,b.jsx)(O.Z,{default:!0,href:"https://www.mage.ai/changelog",monospace:!0,openNewWindow:!0,children:"v".concat(Q)})}),(0,b.jsx)(C.Z,{ml:2,children:(0,b.jsx)(w.ZP,{blackBorder:!0,block:!0,compact:!0,noHoverUnderline:!0,openNewTab:!0,linkProps:{as:"https://www.mage.ai/chat",href:"https://www.mage.ai/chat"},sameColorAsText:!0,uuid:"Header/live_chat",children:"Live chat"})}),t&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(C.Z,{ml:2}),(0,b.jsx)(s.Z,{onClickOutside:function(){return B(null)},open:!0,style:{position:"relative"},children:(0,b.jsxs)(h.Z,{children:[(0,b.jsx)(_.u,{highlighted:0===S,onClick:function(){return B((function(n){return 0===n?null:0}))},onMouseEnter:function(){return B((function(n){return null!==n?0:null}))},ref:Y,children:(0,b.jsx)(I.ZP,{children:"Menu"})}),(0,b.jsx)(g.Z,{alternateBackground:!0,items:t,onClickCallback:function(){return B(null)},open:0===S,parentRef:Y,rightOffset:0,setConfirmationAction:W,setConfirmationDialogueOpen:N,uuid:"PipelineDetail/Header/menu"})]})}),(0,b.jsx)(s.Z,{onClickOutside:function(){return N(!1)},open:L,children:(0,b.jsx)(P.Z,{danger:!0,onCancel:function(){return N(!1)},onClick:U,right:16*E.iI,subtitle:"This is irreversible and will immediately delete everything associated with the pipeline, including its blocks, triggers, runs, logs, and history.",title:"Are you sure you want to delete the pipeline ".concat(nn,"?"),width:40*E.iI})})]}),(J||!(0,D.YB)())&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(C.Z,{ml:2}),(0,b.jsx)(s.Z,{onClickOutside:function(){return y(!1)},open:!0,style:{position:"relative"},children:(0,b.jsxs)(h.Z,{children:[(0,b.jsx)(_.u,{onClick:function(){return y(!0)},ref:K,children:(0,b.jsx)(u.Z,{color:F.Jm,size:4*E.iI,children:(0,b.jsx)(Z,{})})}),(0,b.jsx)(g.Z,{alternateBackground:!0,items:on,onClickCallback:function(){return y(!1)},open:x,parentRef:K,rightOffset:0,uuid:"shared/Header/user_menu"})]})})]})]})]})})})}},57639:function(n,e,t){var r=t(82684),o=t(28598);e.Z=function(n){var e=n.children,t=(0,r.useState)(!1),i=t[0],c=t[1];return(0,r.useEffect)((function(){c(!0)}),[]),i?e:(0,o.jsx)("div",{})}},88560:function(n,e,t){t.d(e,{P_:function(){return c},RL:function(){return o},Rp:function(){return a}});var r,o,i=t(82394);!function(n){n.CATEGORY="category",n.CATEGORY_HIGH_CARDINALITY="category_high_cardinality",n.DATETIME="datetime",n.EMAIL="email",n.LIST="list",n.NUMBER="number",n.NUMBER_WITH_DECIMALS="number_with_decimals",n.PHONE_NUMBER="phone_number",n.TEXT="text",n.TRUE_OR_FALSE="true_or_false",n.UUID="uuid",n.ZIP_CODE="zip_code"}(o||(o={}));o.NUMBER,o.NUMBER_WITH_DECIMALS,o.NUMBER,o.NUMBER_WITH_DECIMALS,o.DATETIME,o.NUMBER,o.NUMBER_WITH_DECIMALS,o.CATEGORY,o.CATEGORY_HIGH_CARDINALITY,o.DATETIME,o.EMAIL,o.PHONE_NUMBER,o.TEXT,o.TRUE_OR_FALSE,o.CATEGORY,o.CATEGORY_HIGH_CARDINALITY,o.DATETIME,o.EMAIL,o.PHONE_NUMBER,o.TEXT;var c=[o.CATEGORY,o.CATEGORY_HIGH_CARDINALITY],a=(r={},(0,i.Z)(r,o.NUMBER,"Number"),(0,i.Z)(r,o.NUMBER_WITH_DECIMALS,"Decimal number"),(0,i.Z)(r,o.CATEGORY,"Category"),(0,i.Z)(r,o.CATEGORY_HIGH_CARDINALITY,"Category (high cardinality)"),(0,i.Z)(r,o.DATETIME,"Date/Time"),(0,i.Z)(r,o.EMAIL,"Email"),(0,i.Z)(r,o.LIST,"List"),(0,i.Z)(r,o.PHONE_NUMBER,"Phone number"),(0,i.Z)(r,o.TEXT,"Text"),(0,i.Z)(r,o.TRUE_OR_FALSE,"Boolean"),(0,i.Z)(r,o.ZIP_CODE,"Zip code"),r)},93461:function(n,e,t){var r=t(9518),o=t(25883),i=r.default.div.withConfig({displayName:"Flex",componentId:"sc-sgfnl9-0"})(["display:flex;"," "," "," "," ",""],o.GQ,o.Dh,(function(n){return n.position&&"\n position: ".concat(n.position,";\n ")}),(function(n){return n.right&&"\n right: ".concat(n.right,"px;\n ")}),(function(n){return n.textOverflow&&"\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n "}));e.Z=i},67971:function(n,e,t){var r,o,i,c,a=t(82394),l=t(26304),d=t(26653),u=(t(82684),t(9518)),s=t(25883),p=t(33591),f=t(28598),h=["children","fullHeight","verticalHeightOffset"];function g(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function b(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?g(Object(t),!0).forEach((function(e){(0,a.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):g(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var v=(0,u.css)(["flex-direction:column;"]),m=(0,u.css)([""," "," "," ",""],p.media.xs(r||(r=(0,d.Z)(["\n ","\n "])),(function(n){return n.responsive&&"\n ".concat(v,"\n ")})),p.media.sm(o||(o=(0,d.Z)(["\n ","\n "])),(function(n){return n.responsive&&"\n ".concat(v,"\n ")})),p.media.md(i||(i=(0,d.Z)(["\n ","\n "])),(function(n){return n.responsive&&"\n ".concat(v,"\n ")})),p.media.lg(c||(c=(0,d.Z)(["\n ","\n "])),(function(n){return n.responsive&&"\n flex-direction: row;\n "}))),x=u.default.div.withConfig({displayName:"FlexContainer__FlexContainerStyle",componentId:"sc-fv2cul-0"})([""," "," "," "," "," "," "," "," "," "," "," "," ",""],s.GQ,m,(function(n){return n.verticalHeight&&"\n height: calc(".concat(n.verticalHeight,"vh - ").concat(n.verticalHeightOffset,"px);\n ")}),(function(n){return!n.verticalHeight&&Number(n.offsetHeight)>0&&"\n height: calc(100% - ".concat(n.offsetHeight||0,"px);\n ")}),(function(n){return n.fullHeight&&!n.verticalHeight&&"\n height: calc(100% - ".concat(n.offsetHeight||0,"px);\n ")}),(function(n){return n.fullWidth&&"\n width: 100%;\n "}),(function(n){return!n.inline&&"\n display: flex;\n "}),(function(n){return n.inline&&"\n display: inline-flex;\n "}),(function(n){return n.fullScreenHeight&&!n.offsetHeight&&"\n min-height: 100vh;\n "}),(function(n){return n.fullScreenHeight&&n.offsetHeight&&"\n min-height: calc(100vh - ".concat(n.offsetHeight,"px);\n ")}),(function(n){return n.width&&"\n width: ".concat(n.width,"px;\n ")}),(function(n){return n.relative&&"\n position: relative;\n "}),(function(n){return n.textOverflow&&"\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n "}));e.Z=function(n){var e=n.children,t=n.fullHeight,r=n.verticalHeightOffset,o=void 0===r?0:r,i=(0,l.Z)(n,h);return(0,f.jsx)(x,b(b({},i),{},{fullHeight:t,verticalHeightOffset:o,children:e}))}},62084:function(n,e,t){t.d(e,{Z:function(){return I}});var r=t(82394),o=t(82684),i=t(12691),c=t.n(i),a=t(67971),l=t(79749),d=t(86673),u=t(19711),s=t(46261),p=t(10503),f=t(9518),h=t(23831),g=t(73942),b=t(49125),v=f.default.div.withConfig({displayName:"indexstyle__FlyoutMenuContainerStyle",componentId:"sc-1o7k6f4-0"})(["position:absolute;max-height:","px;"," "," ",""],58*b.iI,(function(n){return n.width&&"\n min-width: 0px;\n width: ".concat(n.width,"px;\n ")}),(function(n){return"\n box-shadow: ".concat((n.theme.shadow||h.Z.shadow).popup,";\n\n &:hover {\n background-color: ").concat((n.theme.interactive||h.Z.interactive).hoverBackground,";\n }\n ")}),(function(n){return n.roundedStyle&&"\n border-radius: ".concat(g.n_,"px;\n\n div:first-child {\n border-top-left-radius: ").concat(g.n_,"px;\n border-top-right-radius: ").concat(g.n_,"px;\n }\n\n div:last-child {\n border-bottom-left-radius: ").concat(g.n_,"px;\n border-bottom-right-radius: ").concat(g.n_,"px;\n }\n ")})),m=f.default.div.withConfig({displayName:"indexstyle__TitleContainerStyle",componentId:"sc-1o7k6f4-1"})(["padding:","px;padding-bottom:0;",""],b.iI,(function(n){return"\n background-color: ".concat((n.theme.background||h.Z.background).popup,";\n ")})),x=(0,f.css)(["justify-content:space-between;padding:","px;"," "," "," "," "," "," ",""],b.iI,(function(n){return n.largePadding&&"\n padding: ".concat(2*b.iI,"px;\n padding-right: ").concat(6*b.iI,"px;\n ")}),(function(n){return!n.disabled&&"\n &:hover {\n background-color: ".concat((n.theme.interactive||h.Z.interactive).hoverBackground,";\n cursor: pointer;\n }\n ")}),(function(n){return"\n background-color: ".concat((n.theme.background||h.Z.background).popup,";\n ")}),(function(n){return n.alternateBackground&&"\n background-color: ".concat((n.theme.interactive||h.Z.interactive).defaultBackground,";\n ")}),(function(n){return n.disabled&&"\n color: ".concat((n.theme.content||h.Z.content).disabled,";\n cursor: not-allowed;\n\n &:hover {\n color: ").concat((n.theme.content||h.Z.content).disabled,";\n }\n ")}),(function(n){return n.indent&&"\n padding-left: ".concat(2*b.iI,"px;\n ")}),(function(n){return n.highlighted&&"\n background-color: ".concat((n.theme.interactive||h.Z.interactive).hoverBackground,";\n ")})),y=f.default.div.withConfig({displayName:"indexstyle__LinkStyle",componentId:"sc-1o7k6f4-2"})(["",""],x),j=f.default.a.withConfig({displayName:"indexstyle__LinkAnchorStyle",componentId:"sc-1o7k6f4-3"})([""," display:block;"],x),w=t(16115),O=t(66653),k=t(41150),Z=t(28598);function P(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function C(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?P(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):P(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var I=function(n){var e,t,i=n.alternateBackground,f=n.disableKeyboardShortcuts,h=n.items,g=n.left,b=n.onClickCallback,x=n.open,P=n.parentRef,I=n.rightOffset,H=n.roundedStyle,M=n.setConfirmationAction,F=n.setConfirmationDialogueOpen,z=n.topOffset,_=void 0===z?0:z,D=n.uuid,E=n.width,T=(0,o.useState)([]),S=T[0],R=T[1],B=(0,o.useState)({}),A=B[0],L=B[1],N=(0,o.useState)(0),G=N[0],U=N[1],W=(0,o.useState)(0),Y=W[0],K=W[1],V=((null===P||void 0===P||null===(e=P.current)||void 0===e||null===(t=e.getBoundingClientRect)||void 0===t?void 0:t.call(e))||{}).height,q=(0,o.useRef)({}),X=(0,o.useRef)(null),Q=(0,k.y)(),J=Q.registerOnKeyDown,$=Q.unregisterOnKeyDown;return(0,o.useEffect)((function(){return function(){$(D)}}),[$,D]),J(D,(function(n,e,t){if(x)if(f)(0,O.j)(n);else{var r=S[0];if(e[w.kD])(0,O.j)(n),"undefined"===typeof r||r===h.length-1?R([0]):R([r+1]);else if(e[w.Bu])(0,O.j)(n),R("undefined"===typeof r||0===r?[h.length-1]:[r-1]);else if(e[w.Uq]&&"undefined"!==typeof r){var o,i;null===(o=h[r])||void 0===o||null===(i=o.onClick)||void 0===i||i.call(o),null===b||void 0===b||b()}else null===h||void 0===h||h.forEach((function(n){var r=n.keyboardShortcutValidation;null===r||void 0===r||r({keyHistory:t,keyMapping:e})}))}}),[S,h,b,x,R]),(0,o.useEffect)((function(){x||R([])}),[x]),h?function n(e,t,f){var h=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,x=arguments.length>4?arguments[4]:void 0;return h+=1,(0,Z.jsx)(v,{roundedStyle:H,style:{display:f||A[t]?null:"none",left:"undefined"===typeof I&&(1===h?g||0:"100%"),right:1===h?I:null,top:1===h?(V||0)+_:(2===h?G:Y)||0},width:E,children:null===e||void 0===e?void 0:e.map((function(e,t){var f=e.bold,g=e.disabled,v=e.items,w=e.indent,O=e.isGroupingTitle,k=e.keyTextGroups,P=e.label,I=e.linkProps,z=e.onClick,_=e.openConfirmationDialogue,D=e.tooltip,E=e.uuid;x.current[E]=(0,o.createRef)();var T=I?j:y,R=P();if(O)return(0,Z.jsxs)(m,{children:["string"===typeof R&&(0,Z.jsx)(u.ZP,{bold:!0,muted:!0,noWrapping:!0,children:R}),"string"!==typeof R&&R]},E);var B=(0,Z.jsxs)(T,{alternateBackground:i||H,disabled:g,highlighted:S[0]===t,indent:w,largePadding:H,onClick:function(n){I||n.preventDefault(),_?(F(!0),M((function(){return z})),null===b||void 0===b||b()):z&&!g&&(null===z||void 0===z||z(),null===b||void 0===b||b())},onMouseEnter:function(){var n,e;if(L((function(n){return C(C({},n),{},(0,r.Z)({},E,!0))})),1===h)U((null===(n=x.current[E])||void 0===n||null===(e=n.current)||void 0===e?void 0:e.offsetTop)||0);else if(2===h){var t,o;K((null===(t=x.current[E])||void 0===t||null===(o=t.current)||void 0===o?void 0:o.offsetTop)||0)}},onMouseLeave:function(){L((function(n){return C(C({},n),{},(0,r.Z)({},E,!1))}))},ref:x.current[E],children:[(0,Z.jsxs)(a.Z,{alignItems:"center",fullWidth:!0,justifyContent:"space-between",children:["string"===typeof R&&(0,Z.jsx)(u.ZP,{bold:f,disabled:g,noWrapping:!0,children:R}),"string"!==typeof R&&R,v&&(0,Z.jsx)(d.Z,{ml:2,children:(0,Z.jsx)(p.ol,{})}),k&&(0,Z.jsx)(d.Z,{ml:4,ref:X,children:(0,Z.jsx)(l.Z,{keyTextGroups:k})})]}),v&&n(v,E,!1,h,x)]},E);return D&&(B=(0,Z.jsx)(s.Z,{appearBefore:!0,block:!0,center:!0,description:D(),size:null,widthFitContent:!0,children:B})),I?(0,o.createElement)(c(),C(C({},I),{},{key:E,passHref:!0}),B):B}))})}(h,void 0,x,0,q):null}},62609:function(n,e,t){t.d(e,{Z:function(){return b}});var r=t(60328),o=t(67971),i=t(9518),c=t(23831),a=t(73942),l=t(86585),d=t(49125),u=t(28598),s=i.default.div.withConfig({displayName:"PopupMenuContainer__ContainerStyle",componentId:"sc-lq9od4-0"})(["border-radius:","px;padding:","px;position:absolute;z-index:",";cursor:default;"," "," "," "," "," "," "," ",""],a.TR,2*d.iI,l.bf+100,(function(n){return"\n background-color: ".concat((n.theme.interactive||c.Z.interactive).defaultBackground,";\n box-shadow: ").concat((n.theme.shadow||c.Z.shadow).window,";\n ")}),(function(n){return"undefined"!==typeof n.left&&"\n left: ".concat(n.left,"px;\n ")}),(function(n){return"undefined"!==typeof n.right&&"\n right: ".concat(n.right,"px;\n ")}),(function(n){return"undefined"!==typeof n.top&&"\n top: ".concat(n.top,"px;\n ")}),(function(n){return"undefined"!==typeof n.bottom&&"\n bottom: ".concat(n.bottom,"px;\n ")}),(function(n){return"undefined"===typeof n.top&&"undefined"===typeof n.bottom&&"\n top: ".concat(l.Mz-1*d.iI,"px;\n ")}),(function(n){return n.width&&"\n width: ".concat(n.width,"px;\n ")}),(function(n){return!n.width&&"\n min-width: ".concat(33*d.iI,"px;\n ")}));var p=function(n){var e=n.bottom,t=n.children,r=n.left,o=n.right,i=n.top,c=n.width;return(0,u.jsx)(s,{bottom:e,left:r,right:o,top:i,width:c,children:t})},f=t(86673),h=t(19711),g=32*d.iI;var b=function(n){var e=n.bottom,t=n.danger,i=n.left,c=n.isLoading,a=n.onCancel,l=n.onClick,d=n.right,s=n.subtitle,b=n.title,v=n.top,m=n.width;return(0,u.jsxs)(p,{bottom:e,left:i,right:d,top:v,width:m||g,children:[(0,u.jsxs)(o.Z,{alignItems:"center",flexDirection:"column",children:[(0,u.jsx)(f.Z,{pb:1,children:(0,u.jsx)(h.ZP,{bold:!0,large:!0,warning:!0,whiteSpaceNormal:!0,children:b})}),(0,u.jsx)(h.ZP,{small:!0,children:s})]}),(0,u.jsx)(f.Z,{mt:2,children:(0,u.jsxs)(o.Z,{alignItems:"center",justifyContent:"center",children:[(0,u.jsx)(r.Z,{onClick:a,children:"Cancel"}),(0,u.jsx)(f.Z,{mr:1}),(0,u.jsx)(r.Z,{loading:c,onClick:l,children:(0,u.jsx)(h.ZP,{bold:!0,danger:t,children:"Confirm"})})]})})]})}},54283:function(n,e,t){var r=t(82684),o=t(27601),i=t.n(o),c=t(23831),a=t(9518),l=t(49125),d=t(28598);e.Z=function(n){var e=n.color,t=n.fullScreen,o=n.inverted,u=n.large,s=n.left,p=void 0===s?0:s,f=n.relative,h=n.right,g=void 0===h?0:h,b=n.small,v=n.top,m=void 0===v?0:v,x=n.type,y=void 0===x?"spin":x,j=(0,r.useState)(void 0),w=j[0],O=j[1],k=(0,r.useState)(void 0),Z=k[0],P=k[1],C=(0,r.useContext)(a.ThemeContext),I=3*l.iI;u?I=5*l.iI:b&&(I=2*l.iI),(0,r.useEffect)((function(){O(window.document.body.offsetHeight),P(window.document.body.offsetWidth)}),[w,Z]);var H=(0,d.jsx)(i(),{color:e||(o?(C.loader||c.Z.loader).colorInverted:(C.loader||c.Z.loader).color),height:I,type:y,width:I});if(!t)return H;if(w&&Z){var M=w-l.tr;return(0,d.jsx)("div",{style:{left:f?null:p+(Z-I)/2-g,position:"fixed",top:m+M/2-I/2,zIndex:50},children:H})}return(0,d.jsx)("div",{})}},46261:function(n,e,t){t.d(e,{Z:function(){return M}});var r=t(82394),o=t(26304),i=t(82684),c=t(9518),a=t(67971),l=t(19711),d=t(23831),u=t(73942),s=t(49125),p=t(60328),f=t(90880),h=t(28598),g=(0,c.css)(["position:relative;"," "," ",""],(function(n){return n.height&&"\n height: ".concat(n.height,"px;\n ")}),(function(n){return n.size&&"\n height: ".concat(n.size,"px;\n ")}),(function(n){return n.fullSize&&"\n height: 100%;\n "})),b=c.default.div.withConfig({displayName:"TooltipWrapper__ContainerStyle",componentId:"sc-1dd57l8-0"})(["",""],g),v=c.default.span.withConfig({displayName:"TooltipWrapper__ContainerSpanStyle",componentId:"sc-1dd57l8-1"})(["",""],g),m=c.default.a.withConfig({displayName:"TooltipWrapper__HoverStyle",componentId:"sc-1dd57l8-2"})([""," "," "," border-radius:50%;"," "," &:active,&:focus{outline:none;}",""],(0,f.eR)(),(function(n){return n.size&&"\n height: ".concat(n.size,"px;\n width: ").concat(n.size,"px;\n ")}),(function(n){return n.fullSize&&"\n height: 100%;\n width: 100%;\n "}),(function(n){return!n.block&&"\n display: inline-block;\n "}),(function(n){return n.block&&"\n display: block;\n "}),(function(n){return!n.noHoverOutline&&"\n &:hover {\n cursor: pointer;\n\n box-shadow:\n 0 0 0 ".concat(u.PV,"px ").concat((0,p.W)(n),",\n 0 0 0 ").concat(u.PV+u.q2,"px ").concat((n.theme.interactive||d.Z.interactive).hoverOverlay,";\n }\n ")})),x=c.default.span.withConfig({displayName:"TooltipWrapper__BasicStyle",componentId:"sc-1dd57l8-3"})([""]),y=c.default.div.withConfig({displayName:"TooltipWrapper__ContentStyle",componentId:"sc-1dd57l8-4"})(["position:absolute;z-index:3;"," "," "," "," "," "," "," "," "," ",""],(function(n){return"\n box-shadow: ".concat((n.theme.shadow||d.Z.shadow).base,";\n ")}),(function(n){return n.lightBackground&&"\n box-shadow: ".concat((n.theme.shadow||d.Z.shadow).window,";\n ")}),(function(n){return n.appearAbove&&!n.size&&"\n bottom: 0;\n "}),(function(n){return n.appearAbove&&n.size&&"\n bottom: ".concat(n.size+u.PV+u.q2,"px;\n ")}),(function(n){return n.appearBefore&&"\n right: 0;\n "}),(function(n){return n.leftPosition&&"\n left: ".concat(n.leftPosition,"px;\n ")}),(function(n){return!n.leftPosition&&n.rightPosition&&"\n right: 0px;\n "}),(function(n){return n.minWidth&&"\n min-width: ".concat(n.minWidth,"px;\n ")}),(function(n){return n.widthFitContent&&"\n width: max-content;\n "}),(function(n){return n.topOffset&&"\n top: ".concat(n.topOffset,"px;\n ")}));var j=function(n){var e=n.alignLeft,t=n.appearAbove,r=n.appearBefore,o=n.autoWidth,c=n.basic,a=n.block,l=n.center,d=n.children,u=n.content,p=n.fullSize,f=n.height,g=n.inline,j=n.lightBackground,w=n.minWidth,O=n.noHoverOutline,k=n.size,Z=void 0===k?2*s.iI:k,P=n.topOffset,C=n.visibleDelay,I=void 0===C?1e3:C,H=n.widthFitContent,M=(0,i.useState)(!1),F=M[0],z=M[1],_=(0,i.useState)(!1),D=_[0],E=_[1],T=(w-Z)/-2,S=g?v:b,R=c?x:m,B=(0,h.jsx)(R,{block:a,fullSize:p,href:"#",noHoverOutline:O,onClick:function(n){return n.preventDefault()},onMouseEnter:function(){return z(!0)},size:Z,children:d});return(0,i.useEffect)((function(){var n=setInterval((function(){return E(!0)}),I);return F||clearInterval(n),function(){return clearInterval(n)}}),[E,F]),(0,h.jsxs)(S,{fullSize:p,height:f,onMouseLeave:function(){z(!1),E(!1)},size:Z,children:[B,D&&(0,h.jsx)(y,{appearAbove:t,appearBefore:r,leftPosition:l?T:null,lightBackground:j,minWidth:o?w:null,rightPosition:e,size:Z,topOffset:P,widthFitContent:H,children:u})]})},w=t(10503),O=["autoWidth","children","default","description","inverted","keyboardShortcuts","label","lightBackground","maxWidth","muted","primary","size","warning","widthFitContent"];function k(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function Z(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?k(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):k(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var P=42*s.iI,C=(0,c.css)(["border-radius:","px;"," "," "," ",""],u.BG,(function(n){return"\n box-shadow: ".concat((n.theme.shadow||d.Z.shadow).popup,";\n background-color: ").concat((n.theme.background||d.Z.background).popup,";\n ")}),(function(n){return n.lightBackground&&"\n background-color: ".concat((n.theme.interactive||d.Z.interactive).defaultBackground,";\n ")}),(function(n){return n.width&&!(n.widthFitContent||n.autoWidth)&&"\n width: ".concat(n.width,"px;\n ")}),(function(n){return!n.width&&!(n.widthFitContent||n.autoWidth)&&"\n width: ".concat(P,"px;\n ")})),I=c.default.div.withConfig({displayName:"Tooltip__LabelStyle",componentId:"sc-allmdq-0"})([""," padding:","px ","px;"],C,.75*s.iI,1*s.iI),H=c.default.div.withConfig({displayName:"Tooltip__DescriptionStyle",componentId:"sc-allmdq-1"})([""," padding:","px ","px;"],C,1.5*s.iI,2*s.iI);var M=function(n){var e=n.autoWidth,t=n.children,r=n.default,c=n.description,d=n.inverted,u=n.keyboardShortcuts,p=n.label,f=n.lightBackground,g=n.maxWidth,b=n.muted,v=n.primary,m=n.size,x=void 0===m?2*s.iI:m,y=n.warning,k=n.widthFitContent,C=(0,o.Z)(n,O),M=c||p||"",F=c?H:I,z=Math.min(g||P,M.length*s.Fo),_=[];null===u||void 0===u||u.forEach((function(n,e){e>=1&&_.push((0,h.jsx)(l.ZP,{default:!0,children:"+"})),_.push(n)}));var D=_.map((function(n,e){var t="keyboard-shortcut-".concat(e);return"string"===typeof n?(0,h.jsx)("span",{children:n},t):i.cloneElement(n,{key:t})}));return(0,h.jsx)(j,Z(Z({},C),{},{autoWidth:e,content:(0,h.jsx)(F,{autoWidth:e,lightBackground:f,width:g,widthFitContent:k,children:(0,h.jsxs)(a.Z,{alignItems:"center",children:[(0,h.jsx)(l.ZP,{whiteSpaceNormal:!0,children:M}),D.length>=1&&(0,h.jsx)(l.ZP,{muted:!0,children:"\xa0\xa0\xa0\u2022\xa0\xa0\xa0"}),D.length>=1&&D]})}),lightBackground:f,minWidth:z,noHoverOutline:!!t,size:x,widthFitContent:k,children:t||(0,h.jsx)(w.kI,{default:r,inverted:d,muted:b,primary:v,size:x,warning:y})}))}},11135:function(n,e,t){t.d(e,{ZP:function(){return tn}});var r=t(82394),o=t(26304),i=t(82684),c=t(12691),a=t.n(c),l=t(9518),d=t(93461),u=t(79749),s=t(34376),p=t(9736);function f(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function h(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?f(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function g(){var n,e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return h(h({},t),{},{groupId:null===(n=(0,p.ex)())||void 0===n?void 0:n.id,id:null===(e=(0,p.PR)())||void 0===e?void 0:e.id})}var b=t(75582),v=t(39421),m=t(86954);function x(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function y(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?x(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):x(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function j(){return[[m.go,"initialAsPath"],[m.iT,"initialPathname"],[m.FT,"notificationTemplate"],[m.Ll,"notificationUUID"],[m.$m,"referringURL"]].reduce((function(n,e){var t=(0,b.Z)(e,2),o=t[0],i=t[1];return y(y({},n),{},(0,r.Z)({},i,v.Z.get(o,m.vZ)))}),{})}var w=t(36283);function O(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function k(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?O(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):O(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var Z="click",P="button";function C(n){var e,t,r=n.actionName,o=n.actionType,i=n.componentName,c=n.componentType,a=n.properties,l=n.screenName,d=(e=r||o,t=i||c,"".concat(l,".").concat(e,"_").concat(t)),u=function(){var n,e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=j(),o=(null!==t&&void 0!==t&&t.width,window.innerWidth);return k(k(k({},t),r),{},{groupId:null===(n=(0,p.ex)())||void 0===n?void 0:n.id,partner_id:"Mage",screenSize:(0,w.Z3)(o),userId:null===(e=(0,p.PR)())||void 0===e?void 0:e.id})}(k({actionType:o,componentType:c},a));return{eventProperties:u,eventType:d,userProperties:g()}}function I(n,e){null===n||void 0===n||n(e)}var H=function(n){var e=n.children;return n.eventProperties,n.userProperties,e((function(n){return!1}))},M=t(41150),F=t(28598);function z(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function _(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?z(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):z(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var D,E,T=function(n){var e,t=n.buildChildren,r=n.disabled,o=n.eventActionName,c=void 0===o?Z:o,a=n.eventComponentName,l=void 0===a?P:a,d=n.eventProperties,u=void 0===d?{}:d,p=n.eventScreenName,f=void 0===p?"generic":p,h=n.keyboardShortcutValidation,g=n.linkProps,b=n.onClick,v=n.openNewTab,m=n.requireKeyUp,x=n.uuid,y=(0,s.useRouter)(),j=(0,M.y)(),w=j.registerOnKeyDown,O=j.registerOnKeyUp,k=j.unregisterOnKeyDown,z=j.unregisterOnKeyUp;(0,i.useEffect)((function(){return function(){var n=m?z:k;null===n||void 0===n||n(x)}}),[m,k,z,x]),r||!b&&!g||(e=function(n){null===b||void 0===b||b(n),g&&(v?(window.open(g.as||g.href),n.preventDefault()):y.push(g.href,g.as))});var D=C({actionName:c,actionType:Z,componentName:l,componentType:P,properties:u,screenName:f}),E=D.eventType,T=D.eventProperties,S=D.userProperties;return(0,F.jsx)(H,{eventProperties:T,userProperties:S,children:function(n){var r=n.logEvent;h&&e&&(m?O:w)(x,(function(n,t,o){h({keyHistory:o,keyMapping:t})&&(I(r,E,{eventProperties:_(_({},T),{},{usedKeyboardShortcut:!0}),userProperties:S}),e(n))}),[T,E,r,e,S]);return t({eventProperties:T,eventType:E,logEvent:r,onClick:e,userProperties:S})}})},S={chatBubbleProps:null,graphicButtonProps:null,logoProps:null,mageImageUrl:null,mascotImageUrls:{base:null,castingSpell:null,chargingUp:null,thinking:null},sharedProps:null},R=i.createContext(S),B=R,A=t(86673),L=t(54283),N=t(23831),G=t(73899),U=t(73942),W=t(2005),Y=t(31012),K=t(10919),V=t(49125),q=t(90880),X=["Icon","afterElement","beforeElement","bold","borderless","centerText","children","compact","disabled","fitContentWidth","inverted","keyTextGroups","keyTextsPosition","linkProps","loading","mutedDisabled","noHover","onClick","type","useModelTheme"];function Q(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function J(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?Q(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Q(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}!function(n){n.LEFT="left",n.RIGHT="right"}(D||(D={})),function(n){n.BUTTON="button",n.SUBMIT="submit"}(E||(E={}));var $=(0,l.css)([""," align-items:center;border:none;display:flex;flex-direction:row;position:relative;text-align:left;z-index:0;"," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," ",""],(0,q.eR)(),(function(n){return!n.large1&&!n.large2&&"\n ".concat(Y.iD,"\n ")}),(function(n){return n.small&&"\n ".concat(Y.HC,"\n ")}),(function(n){return n.large1&&"\n ".concat(Y.ln,"\n ")}),(function(n){return n.large2&&"\n ".concat(Y.QU,"\n ")}),(function(n){return!n.inline&&"\n width: 100%;\n "}),(function(n){return n.shortWidth&&"\n min-width: ".concat(28*V.iI,"px;\n ")}),(function(n){return!n.wrapText&&"\n white-space: nowrap;\n "}),(function(n){return!n.secondary&&"\n font-family: ".concat(W.ry,";\n justify-content: space-between;\n ")}),(function(n){return n.primary&&!n.disabled&&"\n background-color: ".concat((n.theme.interactive||N.Z.interactive).linkPrimary,";\n border-color: ").concat((n.theme.interactive||N.Z.interactive).linkPrimary,";\n color: ").concat((n.theme.monotone||N.Z.monotone).white,";\n\n &:hover,\n &:focus,\n &:active {\n background-color: ").concat((n.theme.interactive||N.Z.interactive).linkPrimaryHover," !important;\n border-color: ").concat((n.theme.interactive||N.Z.interactive).linkPrimary," !important;\n }\n ")}),(function(n){return n.center&&"\n justify-content: center;\n "}),(function(n){return!n.noPadding&&!n.spacious&&!n.compact&&"\n padding: ".concat(1.25*V.iI,"px ").concat(1.5*V.iI,"px;\n ")}),(function(n){return n.compact&&"\n padding: ".concat(.5*V.iI,"px ").concat(.75*V.iI,"px;\n ")}),(function(n){return!n.noPadding&&!n.spacious&&n.paddingTop&&"\n padding-top: ".concat(n.paddingTop,"px;\n ")}),(function(n){return!n.noPadding&&!n.spacious&&n.halfPaddingTop&&"\n padding-top: ".concat(.625*V.iI,"px;\n ")}),(function(n){return!n.noPadding&&!n.spacious&&n.halfPaddingBottom&&"\n padding-bottom: ".concat(.625*V.iI,"px;\n ")}),(function(n){return!n.noPadding&&!n.spacious&&n.paddingBottom&&"\n padding-bottom: ".concat(n.paddingBottom,"px;\n ")}),(function(n){return!n.noPadding&&!n.spacious&&n.halfPaddingRight&&"\n padding-right: ".concat(.75*V.iI,"px;\n ")}),(function(n){return!n.noPadding&&!n.spacious&&n.halfPaddingLeft&&"\n padding-left: ".concat(.75*V.iI,"px;\n ")}),(function(n){return!n.noPadding&&n.spacious&&!n.marketing&&"\n padding: ".concat(2.25*V.iI,"px ").concat(3*V.iI,"px;\n ")}),(function(n){return!n.noPadding&&n.spacious&&n.marketing&&"\n padding: ".concat(2.25*V.iI-2,"px ").concat(3*V.iI-2,"px;\n ")}),(function(n){return!n.noPadding&&n.spacious&&n.halfPaddingTop&&"\n padding-top: ".concat(1.125*V.iI,"px;\n ")}),(function(n){return!n.noPadding&&n.spacious&&n.halfPaddingBottom&&"\n padding-bottom: ".concat(1.125*V.iI,"px;\n ")}),(function(n){return!n.noPadding&&n.spacious&&n.halfPaddingRight&&"\n padding-right: ".concat(1.5*V.iI,"px;\n ")}),(function(n){return!n.noPadding&&n.spacious&&n.halfPaddingLeft&&"\n padding-left: ".concat(1.5*V.iI,"px;\n ")}),(function(n){return n.secondary&&"\n flex-basis: content;\n font-family: ".concat(W.nF,";\n padding: 0;\n ")}),(function(n){return n.noPadding&&"\n padding: 0;\n "}),(function(n){return n.bold&&"\n font-family: ".concat(W.nF,";\n ")}),(function(n){return!n.muted&&!n.inverted&&"\n color: ".concat((n.theme.content||N.Z.content).active,";\n ")}),(function(n){return!n.muted&&n.inverted&&"\n color: ".concat((n.theme.content||N.Z.content).inverted,";\n ")}),(function(n){return n.muted&&"\n color: ".concat((n.theme.monotone||N.Z.monotone).grey300,";\n ")}),(function(n){return n.warning&&"\n color: ".concat((n.theme.brand||N.Z.brand).energy400,";\n ")}),(function(n){return n.noHover&&"\n &:hover {\n cursor: default;\n }\n "}),(function(n){return n.blackBorder&&"\n border: ".concat(U.YF,"px ").concat(U.M8," ").concat((n.theme.monotone||N.Z.monotone).black,";\n ")}),(function(n){return!n.pill&&!n.borderless&&!n.compact&&"\n border-radius: ".concat(U.n_,"px;\n ")}),(function(n){return n.compact&&"\n border-radius: ".concat(U.BG,"px;\n ")}),(function(n){return!n.borderRadiusLeft&&!n.borderRadiusRight&&n.pill&&!n.spacious&&"\n border-radius: ".concat(5*V.iI,"px;\n ")}),(function(n){return n.borderRadiusLeft&&n.pill&&!n.spacious&&"\n border-bottom-left-radius: ".concat(5*V.iI,"px;\n border-top-left-radius: ").concat(5*V.iI,"px;\n ")}),(function(n){return n.borderRadiusRight&&n.pill&&!n.spacious&&"\n border-bottom-right-radius: ".concat(5*V.iI,"px;\n border-top-right-radius: ").concat(5*V.iI,"px;\n ")}),(function(n){return n.borderRadiusLeft&&n.pill&&n.spacious&&"\n border-bottom-left-radius: ".concat(8*V.iI,"px;\n border-top-left-radius: ").concat(8*V.iI,"px;\n ")}),(function(n){return n.borderRadiusRight&&n.pill&&n.spacious&&"\n border-bottom-right-radius: ".concat(8*V.iI,"px;\n border-top-right-radius: ").concat(8*V.iI,"px;\n ")}),(function(n){return n.inverted&&!n.noBackground&&!n.backgroundColor&&"\n background-color: ".concat((n.theme.monotone||N.Z.monotone).black,";\n ")}),(function(n){return!n.inverted&&!n.noBackground&&!n.primary&&"\n background-color: ".concat((n.theme.interactive||N.Z.interactive).defaultBackground,";\n\n &:hover {\n background-color: ").concat((n.theme.interactive||N.Z.interactive).hoverBackground,";\n }\n ")}),(function(n){return!n.noBackground&&n.backgroundColor&&"\n background-color: ".concat(n.backgroundColor,";\n ")}),(function(n){return n.noBackground&&"\n background-color: transparent !important;\n "}),(function(n){return n.disabled&&n.inverted&&"\n color: ".concat((n.theme.monotone||N.Z.monotone).grey400," !important;\n ")}),(function(n){return n.disabled&&!n.inverted&&"\n color: ".concat((n.theme.monotone||N.Z.monotone).grey300," !important;\n ")}),(function(n){return n.disabled&&"\n &:hover {\n cursor: not-allowed;\n }\n "}),(function(n){return n.selected&&"\n background-color: ".concat((n.theme.monotone||N.Z.monotone).black,";\n color: ").concat((n.theme.monotone||N.Z.monotone).white,";\n ")}),(function(n){return n.selected&&n.grey300&&"\n background-color: ".concat((n.theme.monotone||N.Z.monotone).grey300,";\n ")}),(function(n){return(n.selected||n.useModelTheme)&&n.fire&&"\n background-color: ".concat((n.theme.brand||N.Z.brand).fire400,";\n ")}),(function(n){return n.useModelTheme&&"\n color: ".concat((n.theme.monotone||N.Z.monotone).white,";\n ")}),(function(n){return(n.selected||n.useModelTheme)&&n.earth&&"\n background-color: ".concat((n.theme.brand||N.Z.brand).earth400,";\n ")}),(function(n){return n.primaryGradient&&"\n background: ".concat(G.uH," !important;\n ")}),(function(n){return n.background&&"\n background: ".concat(n.background," !important;\n ")}),(function(n){return(n.selected||n.useModelTheme)&&n.wind&&"\n background-color: ".concat((n.theme.brand||N.Z.brand).wind400,";\n\n &:hover,\n &:focus,\n &:active {\n background-color: ").concat((n.theme.brand||N.Z.brand).wind500,";\n }\n ")}),(function(n){return(n.selected||n.useModelTheme)&&n.water&&"\n background-color: ".concat((n.theme.brand||N.Z.brand).water400,";\n ")}),(function(n){return n.withIcon&&"\n padding: ".concat(1.25*V.iI-1,"px !important;\n ")}),(function(n){return n.shadow&&"\n box-shadow: ".concat((n.theme.shadow||N.Z.shadow).large,";\n ")})),nn=l.default.button.withConfig({displayName:"KeyboardShortcutButton__ButtonStyle",componentId:"sc-10tm4pj-0"})(["",""],$),en=l.default.a.withConfig({displayName:"KeyboardShortcutButton__AnchorStyle",componentId:"sc-10tm4pj-1"})([""," ",""],$,K.R);l.default.span.withConfig({displayName:"KeyboardShortcutButton__SpanStyle",componentId:"sc-10tm4pj-2"})(["margin-right:","px;"],1*V.iI);var tn=function(n){var e=n.Icon,t=n.afterElement,c=n.beforeElement,l=n.bold,s=n.borderless,p=n.centerText,f=n.children,h=n.compact,g=n.disabled,b=n.fitContentWidth,v=n.inverted,m=n.keyTextGroups,x=n.keyTextsPosition,y=void 0===x?D.RIGHT:x,j=n.linkProps,w=n.loading,O=n.mutedDisabled,k=n.noHover,Z=n.onClick,P=n.type,C=void 0===P?E.BUTTON:P,H=n.useModelTheme,M=(0,o.Z)(n,X),z=j||{},_=z.as,S=z.href,R=_||S?en:nn,N=(0,i.useMemo)((function(){if(!m)return null;var n=(0,r.Z)({},y===D.RIGHT?"ml":"mr",f?1:0);return(0,F.jsx)(A.Z,J(J({},n),{},{children:(0,F.jsx)(u.Z,{borderless:v,disabled:g,keyTextGroups:m,mutedDisabled:O})}))}),[f,g,v,m,y,O]),G=((0,i.useContext)(B)||{}).sharedProps;return(0,F.jsx)(T,J(J({},M),{},{buildChildren:function(n){var r=n.eventProperties,o=n.eventType,i=n.logEvent,u=n.onClick,m=n.userProperties,x=(0,F.jsxs)(R,J(J(J({},M),H?G:{}),{},{bold:H||l,borderless:H||s,center:p,compact:h,disabled:g||O,fitContentWidth:b,inverted:v,noHover:(!u||k)&&!(_||S)&&C===E.BUTTON,onClick:function(n){I(i,o,{eventProperties:r,userProperties:m}),null===u||void 0===u||u(n)},type:_||S?null:C,useModelTheme:H,withIcon:!!e,children:[c&&!w&&(0,F.jsxs)(F.Fragment,{children:[c,(0,F.jsx)(A.Z,{mr:1})]}),y===D.LEFT&&N,(0,F.jsxs)(d.Z,{alignItems:"center",children:[e&&(0,F.jsx)(e,{muted:g||O,size:2.5*V.iI}),e&&f&&(0,F.jsx)(A.Z,{mr:1}),w&&(0,F.jsx)(L.Z,{inverted:!v}),!w&&f]}),y===D.RIGHT&&N&&(0,F.jsx)(A.Z,{ml:1,children:N}),t&&!w&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(A.Z,{ml:t?1:0}),t]})]}));return!_&&!S||g||O?x:(0,F.jsx)(a(),J(J({},j),{},{passHref:!0,children:x}))},disabled:g||O,linkProps:j,onClick:Z}))}},60328:function(n,e,t){t.d(e,{W:function(){return Z}});var r=t(82394),o=t(26304),i=t(82684),c=t(12691),a=t.n(c),l=t(9518),d=t(93461),u=t(67971),s=t(86673),p=t(54283),f=t(23831),h=t(73899),g=t(73942),b=t(2005),v=t(31012),m=t(10919),x=t(49125),y=t(90880),j=t(28598),w=["afterIcon","beforeIcon","children","disabled","iconOnly","id","linkProps","loading","onClick"];function O(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function k(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?O(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):O(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function Z(n){return n.outlineBackgroundColorSelector?n.outlineBackgroundColorSelector(n.theme||f.Z):(n.theme.background||f.Z.background).panel}var P=(0,l.css)([""," border:none;display:block;font-family:",";padding:","px ","px;position:relative;z-index:0;"," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," ",""],(0,y.eR)(),b.nF,1*x.iI,1.5*x.iI,(function(n){return!n.hasOnClick&&"\n &:hover {\n cursor: default;\n }\n "}),(function(n){return"\n border-color: ".concat((n.theme.interactive||f.Z.interactive).defaultBorder,";\n ")}),(function(n){return!n.default&&"\n color: ".concat((n.theme.content||f.Z.content).active,";\n ")}),(function(n){return n.default&&"\n color: ".concat((n.theme.content||f.Z.content).default,";\n ")}),(function(n){return!n.noBackground&&"\n background-color: ".concat((n.theme.background||f.Z.background).row,";\n ")}),(function(n){return n.pointerEventsEnabled&&"\n pointer-events: all;\n "}),(function(n){return n.backgroundGradient&&"\n background: ".concat(n.backgroundGradient,";\n ")}),(function(n){return n.noBackground&&"\n background-color: transparent;\n "}),(function(n){return n.padding&&"\n padding: ".concat(n.padding," !important;\n ")}),(function(n){return!n.noPadding&&n.compact&&"\n padding: ".concat(x.iI/2,"px ").concat(x.iI,"px;\n ")}),(function(n){return n.noPadding&&"\n padding: 0;\n "}),(function(n){return n.notClickable&&"\n &:hover,\n &:focus {\n cursor: default;\n }\n "}),(function(n){return!n.basic&&"\n border-style: ".concat(g.M8,";\n border-width: 1px;\n ")}),(function(n){return!n.borderRadiusLeft&&!n.borderRadiusRight&&!n.noBorder&&"\n border-radius: ".concat(g.n_,"px;\n ")}),(function(n){return n.pill&&"\n border-radius: ".concat(3*x.iI,"px;\n ")}),(function(n){return(n.noBorder||n.borderLess)&&"\n border: none;\n "}),(function(n){return n.borderRadius&&"\n border-radius: ".concat(n.borderRadius,"px;\n ")}),(function(n){return!n.borderRadiusLeft&&n.borderRadiusRight&&"\n border-radius: 0px ".concat(g.n_,"px ").concat(g.n_,"px 0px;\n ")}),(function(n){return n.borderRadiusLeft&&!n.borderRadiusRight&&"\n border-radius: ".concat(g.n_,"px 0px 0px ").concat(g.n_,"px;\n ")}),(function(n){return n.noBorderRight&&"\n border-right: none;\n "}),(function(n){return n.backgroundColor&&"\n background-color: ".concat(n.backgroundColor,";\n ")}),(function(n){return n.danger&&"\n background-color: ".concat((n.theme.accent||f.Z.accent).negative,";\n ")}),(function(n){return n.success&&"\n background-color: ".concat((n.theme.background||f.Z.background).success,";\n color: ").concat((n.theme.content||f.Z.content).inverted,";\n ")}),(function(n){return n.warning&&"\n background-color: ".concat((n.theme.accent||f.Z.accent).warning,";\n color: ").concat((n.theme.content||f.Z.content).inverted,";\n ")}),(function(n){return!n.iconOnly&&n.large&&"\n ".concat(v.ln,"\n ")}),(function(n){return!n.iconOnly&&!n.large&&!n.small&&"\n ".concat(v.iD,"\n ")}),(function(n){return!n.iconOnly&&n.small&&"\n ".concat(v.HC,"\n ")}),(function(n){return!n.noPadding&&n.iconOnly&&"\n padding: ".concat(x.iI,"px;\n ")}),(function(n){return n.transparent&&"\n background-color: transparent;\n "}),(function(n){return n.highlightOnHover&&"\n &:hover {\n background-color: ".concat((n.theme.interactive||f.Z.interactive).hoverBorder,";\n }\n ")}),(function(n){return n.outline&&!n.disabled&&!n.notClickable&&"\n &:hover {\n box-shadow:\n 0 0 0 ".concat(g.PV,"px ").concat(Z(n),",\n 0 0 0 ").concat(g.PV+g.q2,"px ").concat((n.theme.interactive||f.Z.interactive).hoverOverlay,";\n }\n\n &:focus {\n box-shadow:\n 0 0 0 ").concat(g.PV,"px ").concat(Z(n),",\n 0 0 0 ").concat(g.PV+g.q2,"px ").concat((n.theme.interactive||f.Z.interactive).focusBorder,";\n }\n\n &:active {\n box-shadow: none;\n }\n ")}),(function(n){return!n.disabled&&!n.notClickable&&!n.outline&&"\n &:hover,\n &:focus {\n border-color: ".concat((n.theme.interactive||f.Z.interactive).hoverBorder,";\n }\n &:active {\n border-color: ").concat((n.theme.content||f.Z.content).active,";\n }\n ")}),(function(n){return n.secondary&&!n.disabled&&"\n background-color: ".concat((n.theme.interactive||f.Z.interactive).defaultBackground,";\n border-color: ").concat((n.theme||f.Z).borders.dark,";\n ")}),(function(n){return n.primary&&!n.disabled&&"\n background-color: ".concat((n.theme.interactive||f.Z.interactive).linkPrimary,";\n border-color: ").concat((n.theme.interactive||f.Z.interactive).linkPrimary,";\n color: ").concat((n.theme.monotone||f.Z.monotone).white,";\n\n &:hover,\n &:focus,\n &:active {\n background-color: ").concat((n.theme.interactive||f.Z.interactive).linkPrimaryHover," !important;\n border-color: ").concat((n.theme.interactive||f.Z.interactive).linkPrimary," !important;\n }\n ")}),(function(n){return n.primaryAlternate&&"\n background-color: ".concat((n.theme.brand||f.Z.brand).wind400,";\n ")}),(function(n){return n.borderColor&&"\n border-color: ".concat(n.borderColor,";\n ")}),(function(n){return n.secondaryGradient&&"\n background: ".concat(h.XV,";\n ")}),(function(n){return n.primaryGradient&&"\n background: ".concat(h.uH,";\n ")}),(function(n){return n.disabled&&"\n color: ".concat((n.theme.interactive||f.Z.interactive).disabledBorder,";\n &:hover {\n cursor: not-allowed;\n }\n ")}),(function(n){return n.selected&&"\n border-color: ".concat((n.theme.content||f.Z.content).active,";\n ")}),(function(n){return n.selectedAlt&&"\n border: ".concat(g.q2,"px ").concat(g.M8," ").concat((n.theme.monotone||f.Z.monotone).white,";\n box-shadow: 0 0 0 0.5px ").concat((n.theme.interactive||f.Z.interactive).defaultBorder,";\n ")}),(function(n){return n.width&&"\n width: ".concat(n.width,"px;\n ")}),(function(n){return n.minWidth&&"\n min-width: ".concat(n.minWidth,"px;\n ")}),(function(n){return n.fullWidth&&"\n width: 100%;\n "})),C=l.default.button.withConfig({displayName:"Button__ButtonStyle",componentId:"sc-1idlfoi-0"})(["",""],P),I=l.default.a.withConfig({displayName:"Button__AnchorStyle",componentId:"sc-1idlfoi-1"})([""," "," ",""],P,m.R,(function(n){return n.disabled&&"\n pointer-events: none;\n "})),H=function(n,e){var t,r,c,l=n.afterIcon,f=n.beforeIcon,h=n.children,g=n.disabled,b=n.iconOnly,v=n.id,m=n.linkProps,y=n.loading,O=n.onClick,Z=(0,o.Z)(n,w),P={disabled:g,size:1.5*x.iI},H=m||{},M=H.as,F=H.href,z=M||F?I:C,_=(0,j.jsx)(z,k(k({},Z),{},{disabled:g,hasOnClick:!!O||M||F,iconOnly:b,id:v,onClick:O?function(n){null===n||void 0===n||n.preventDefault(),null===O||void 0===O||O(n)}:null,ref:e,children:(0,j.jsxs)(u.Z,{alignItems:"center",justifyContent:"center",children:[!y&&f&&(0,j.jsx)(s.Z,{mr:1,children:(0,j.jsx)(d.Z,{children:i.cloneElement(f,k(k({},P),{},{size:(null===(t=f.props)||void 0===t?void 0:t.size)||P.size}))})}),y&&(0,j.jsx)(p.Z,{}),!y&&(0,j.jsxs)(d.Z,{children:[!b&&h,b&&i.cloneElement(h,k(k({},P),{},{size:(null===(r=h.props)||void 0===r?void 0:r.size)||P.size}))]}),!y&&l&&(0,j.jsx)(s.Z,{ml:1,children:(0,j.jsx)(d.Z,{children:i.cloneElement(l,k(k({},P),{},{size:(null===(c=l.props)||void 0===c?void 0:c.size)||P.size}))})})]})}));return M||F?(0,j.jsx)(a(),k(k({},m),{},{passHref:!0,children:_})):_};e.Z=i.forwardRef(H)},16634:function(n,e,t){var r=t(82394),o=t(26304),i=t(9518),c=t(93461),a=t(67971),l=t(23831),d=t(73942),u=t(28598),s=["children"];function p(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function f(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?p(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):p(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var h=i.default.div.withConfig({displayName:"Circle__CircleStyle",componentId:"sc-1o70504-0"})([""," "," "," "," "," "," ",""],(function(n){return!n.square&&"\n border-radius: 50%;\n "}),(function(n){return n.square&&"\n border-radius: ".concat(d.BG,"px;\n ")}),(function(n){return!n.color&&!(n.borderSize||n.borderColor)&&"\n background-color: ".concat((n.theme.content||l.Z.content).muted,";\n ")}),(function(n){return(n.borderSize||n.borderColor)&&"\n border: ".concat(n.borderSize||1,"px solid ").concat(n.borderColor||(n.theme.content||l.Z.content).active,";\n ")}),(function(n){return n.color&&"\n background-color: ".concat(n.color,";\n ")}),(function(n){return n.size&&"\n height: ".concat(n.size,"px;\n width: ").concat(n.size,"px;\n ")}),(function(n){return n.danger&&"\n background-color: ".concat((n.theme.borders||l.Z.borders).danger,";\n ")}));e.Z=function(n){var e=n.children,t=(0,o.Z)(n,s);return(0,u.jsx)(h,f(f({},t),{},{children:(0,u.jsx)(a.Z,{alignItems:"center",fullHeight:!0,fullWidth:!0,justifyContent:"center",children:e&&(0,u.jsx)(c.Z,{children:e})})}))}},90686:function(n,e,t){var r=t(82684),o=t(9518),i=t(19711),c=t(23831),a=t(73942),l=t(28598),d=(0,o.css)(["min-width:18px;padding-left:2px;padding-right:2px;"," "," "," "," "," ",""],(function(n){return!n.disabled&&"\n background-color: ".concat((n.theme.content||c.Z.content).inverted,";\n ")}),(function(n){return n.disabled&&"\n // background-color: ".concat((n.theme.monotone||c.Z.monotone).grey400," !important;\n ")}),(function(n){return n.mutedDisabled&&"\n opacity: 0.3;\n "}),(function(n){return!n.borderless&&"\n box-shadow: ".concat((n.theme.shadow||c.Z.shadow).tiny,";\n padding-bottom: 3px;\n padding-top: 3px;\n ")}),(function(n){return n.borderless&&"\n border-radius: ".concat(a.BG,"px;\n padding-bottom: 4px;\n padding-top: 4px;\n ")}),(function(n){return n.spacingLeft&&"\n margin-left: ".concat(n.spacingLeft,"px;\n ")})),u=o.default.kbd.withConfig({displayName:"KeyboardText__KbdStyle",componentId:"sc-18540m4-0"})(["",""],d),s=o.default.div.withConfig({displayName:"KeyboardText__DivStyle",componentId:"sc-18540m4-1"})(["",""],d);e.Z=function(n){var e=n.borderless,t=n.disabled,d=n.inline,p=n.keyText,f=n.monospace,h=n.mutedDisabled,g=n.spacingLeft,b=d?s:u,v=(0,r.useContext)(o.ThemeContext),m={};if(!e){var x,y;if(t)m.borderColor=null===(x=(null===v||void 0===v?void 0:v.monotone)||c.Z.monotone)||void 0===x?void 0:x.grey400;else m.borderColor=null===(y=(null===v||void 0===v?void 0:v.content)||c.Z.content)||void 0===y?void 0:y.active;m.borderRadius=a.BG,m.borderStyle="solid",m.borderWidth=1,m.overflow="hidden"}return(0,l.jsx)(i.ZP,{center:!0,inline:!0,monospace:f,muted:t||h,style:m,xsmall:!0,children:(0,l.jsx)(b,{borderless:e,disabled:t,mutedDisabled:h,spacingLeft:g,children:p})})}},79749:function(n,e,t){var r=t(9518),o=t(67971),i=t(90686),c=t(19711),a=t(49125),l=t(28598),d=r.default.div.withConfig({displayName:"KeyboardTextGroup__SpacingStyle",componentId:"sc-1bx41p7-0"})([""," "," ",""],(function(n){return n.small&&"\n margin-left: ".concat(.25*a.iI,"px;\n ")}),(function(n){return!n.small&&"\n margin-left: ".concat(.25*a.iI,"px;\n ")}),(function(n){return n.marginRight&&"\n margin-right: ".concat(.25*a.iI,"px;\n ")}));e.Z=function(n){var e=n.borderless,t=n.disabled,r=n.keyTextGroups,a=n.inline,u=n.monospace,s=n.mutedDisabled,p=n.small,f=n.uuidForKey,h=[],g=[];return r.forEach((function(n,r){var o=[];n.forEach((function(n,r){g.push(n),r>=1&&o.push((0,l.jsx)(d,{small:p},"spacing-".concat(n))),o.push((0,l.jsx)(i.Z,{borderless:e,disabled:t,inline:!0,keyText:n,monospace:u,mutedDisabled:s},"key-".concat(g.join("-"),"-").concat(f)))})),r>=1&&h.push((0,l.jsx)(d,{marginRight:!0,children:(0,l.jsx)(c.ZP,{monospace:u,muted:!0,small:!p,xsmall:p,children:"then"})},"then-".concat(r))),h.push.apply(h,o)})),(0,l.jsx)(o.Z,{alignItems:"center",inline:a,children:h})}},86673:function(n,e,t){var r=t(82394),o=t(26304),i=t(82684),c=t(9518),a=t(25883),l=t(28598),d=["children","inline"];function u(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function s(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?u(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var p=c.default.div.withConfig({displayName:"Spacing__SpacingStyle",componentId:"sc-1mpmtgj-0"})([""," "," "," ",""],a.Dh,(function(n){return n.inline&&"\n display: inline-block;\n "}),(function(n){return n.fullHeight&&"\n height: 100%;\n "}),(function(n){return n.fullWidth&&"\n width: 100%;\n "}));function f(n,e){var t=n.children,r=n.inline,i=(0,o.Z)(n,d);return(0,l.jsx)(p,s(s({},i),{},{inline:r,ref:e,children:t}))}e.Z=i.forwardRef(f)},66653:function(n,e,t){function r(n){return n.stopPropagation&&n.stopPropagation(),n.preventDefault&&n.preventDefault(),n.cancelBubble=!0,n.returnValue=!1,!1}t.d(e,{j:function(){return r}})}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6780],{28358:function(e,n,t){"use strict";t.d(n,{Z:function(){return m}});var i=t(82684),r=t(60328),l=t(10919),s=t(86673),a=t(19711),c=t(10503),u=t(9518),o=t(23831),d=t(73942),p=t(49125),f=t(37391),v=u.default.div.withConfig({displayName:"indexstyle__ErrorPopupStyle",componentId:"sc-aqfw6f-0"})(["top:50%;left:50%;transform:translate(-50%,-50%);max-height:95vh;max-width:95vw;overflow:auto;padding:","px;position:fixed;z-index:9999;border-radius:","px;"," ",""],p.iI*p.cd,d.n_,(function(e){return"\n background-color: ".concat((e.theme||o.Z).background.page,";\n border: 1px solid ").concat((e.theme||o.Z).accent.negative,";\n box-shadow: ").concat((e.theme||o.Z).shadow.window,";\n ")}),f.w5),h=u.default.div.withConfig({displayName:"indexstyle__CloseButtonContainerStyle",componentId:"sc-aqfw6f-1"})(["display:flex;justify-content:flex-end;position:sticky;top:0;"]),b=t(28598);var m=function(e){var n,t,u=e.displayMessage,o=e.errors,d=e.links,p=e.onClose,f=e.response,m=(0,i.useState)(!1),j=m[0],x=m[1],g=(0,i.useState)(!1),Z=g[0],y=g[1],k=(o||{}).messages,O=(null===f||void 0===f?void 0:f.error)||{},_=O.errors,P=O.exception,w=O.message,I=u,S=k;return w&&(S=w.split("\n")),P||I||null===(n=S)||void 0===n||!n[0]||(I=S[0],S=null),(0,b.jsxs)(v,{children:[(0,b.jsx)(h,{children:(0,b.jsx)(r.Z,{iconOnly:!0,noBackground:!0,noBorder:!0,noPadding:!0,onClick:p,title:"Close errors",children:(0,b.jsx)(c.x8,{})})}),(0,b.jsx)(a.ZP,{bold:!0,large:!0,children:"Error"}),I&&(0,b.jsx)(s.Z,{mt:1,children:(0,b.jsx)(a.ZP,{default:!0,children:I})}),P&&(0,b.jsx)(s.Z,{mt:1,children:(0,b.jsx)(a.ZP,{default:!0,disableWordBreak:!0,monospace:!0,children:P})}),(null===(t=S)||void 0===t?void 0:t.length)>0&&(0,b.jsxs)(s.Z,{mt:2,children:[(0,b.jsxs)(a.ZP,{bold:!0,large:!0,children:["Traceback (",(0,b.jsxs)(l.Z,{onClick:function(){return y((function(e){return!e}))},preventDefault:!0,warning:!0,children:[Z?"hide":"show"," traceback"]}),")"]}),Z&&(0,b.jsx)(s.Z,{mt:1,children:S.map((function(e){return(0,b.jsx)(a.ZP,{dangerouslySetInnerHTML:{__html:e.replaceAll(" ","&nbsp;")},default:!0,disableWordBreak:!0,monospace:!0},e)}))})]}),_&&(0,b.jsxs)(s.Z,{mt:2,children:[(0,b.jsxs)(a.ZP,{bold:!0,large:!0,children:["Stack trace (",(0,b.jsxs)(l.Z,{onClick:function(){return x((function(e){return!e}))},preventDefault:!0,warning:!0,children:[j?"hide":"show"," stack trace"]}),")"]}),j&&(0,b.jsx)(s.Z,{mt:1,children:_.map((function(e){return(0,b.jsx)(a.ZP,{dangerouslySetInnerHTML:{__html:e.replaceAll(" ","&nbsp;")},default:!0,disableWordBreak:!0,monospace:!0},e)}))})]}),null===d||void 0===d?void 0:d.map((function(e,n){var t=e.label,i=e.onClick;return(0,b.jsx)(s.Z,{mt:2,children:(0,b.jsx)(l.Z,{large:!0,onClick:i,underline:!0,warning:!0,children:t})},t)}))]})}},56681:function(e,n,t){"use strict";t.d(n,{G:function(){return g},Z:function(){return Z}});var i=t(75582),r=t(82394),l=t(26304),s=t(32316),a=t(22673),c=t(86532),u=t(86673),o=t(19711),d=t(87815),p=t(49125),f=t(19395),v=t(28598),h=["height","heightOffset","pipeline","selectedRun","selectedTab","setSelectedTab"];function b(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function m(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?b(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):b(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var j={uuid:"Run details"},x={uuid:"Dependency tree"},g=[x,j];function Z(e){var n=e.height,t=e.heightOffset,r=e.pipeline,b=e.selectedRun,Z=e.selectedTab,y=e.setSelectedTab,k=m({},(0,l.Z)(e,h));b?k.blockStatus=(0,f.IJ)(null===b||void 0===b?void 0:b.block_runs):k.noStatus=!0;var O=(null===b||void 0===b?void 0:b.variables)||{};null!==b&&void 0!==b&&b.event_variables&&(O.event=b.event_variables);var _=[];O&&JSON.stringify(O,null,2).split("\n").forEach((function(e){_.push(" ".concat(e))}));var P=b&&[["Run ID",null===b||void 0===b?void 0:b.id],["Variables",(0,v.jsx)(a.Z,{language:"json",small:!0,source:_.join("\n")})]],w=b&&(0,v.jsx)(u.Z,{pb:p.cd,px:p.cd,children:(0,v.jsx)(d.Z,{alignTop:!0,columnFlex:[null,1],columnMaxWidth:function(e){return 1===e?"100px":null},rows:P.map((function(e){var n=(0,i.Z)(e,2),t=n[0],r=n[1];return[(0,v.jsx)(o.ZP,{monospace:!0,muted:!0,children:t}),(0,v.jsx)(o.ZP,{monospace:!0,textOverflow:!0,children:r})]})),uuid:"LogDetail"})}),I=Z&&y;return(0,v.jsxs)(v.Fragment,{children:[I&&(0,v.jsx)(u.Z,{py:p.cd,children:(0,v.jsx)(s.Z,{onClickTab:y,selectedTabUUID:null===Z||void 0===Z?void 0:Z.uuid,tabs:g})}),(!I||x.uuid===(null===Z||void 0===Z?void 0:Z.uuid))&&(0,v.jsx)(c.Z,m(m({},k),{},{height:n,heightOffset:(t||0)+(I?76:0),pipeline:r})),j.uuid===(null===Z||void 0===Z?void 0:Z.uuid)&&w]})}},58122:function(e,n,t){"use strict";t.d(n,{CL:function(){return f},FS:function(){return v},JZ:function(){return b},e7:function(){return m},v0:function(){return p},wx:function(){return h}});var i=t(75582),r=t(82394),l=t(43313),s=t(93348),a=t(1286),c=t(90211),u=t(84779);function o(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 d(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,r.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 p(e){var n=e.statistics,t=Object.keys(n),i=Array(l.Dy.length).fill(0);return 0===t.length?null:(t.forEach((function(e){if(l.Dy.includes(e)){var t=l.CC[e],r=n[e],s=r,a=!1,c=[2,3],o=l.Ub[e],d=l.oH[e],p=l.OD[e];if(l.y_.includes(e))a=!0,c=[2,1,2];else if(e in l.Sq){r=(0,u.Jw)(r,0);var f=l.Sq[e];s=n[f]}var v={columnFlexNumbers:c,name:t,progress:a,rate:s,successDirection:d,warning:p};l.y_.includes(e)||(v.value=r),i[o]=v}})),i)}function f(e){var n=e.columnTypes,t=void 0===n?{}:n,i=e.statistics,r=Object.keys(i);if(0===r.length)return null;var s=Object.values(t),u=s.length,o=[];o.push({name:"Column count",successDirection:l.oH.column_count,value:(0,c.x6)(u)}),r.forEach((function(e){if(l.Zu.includes(e)){var n=l.CC[e],t=i[e],r=l.OD[e];o.push({name:n,successDirection:l.oH[e],value:(0,c.x6)(t),warning:r})}}));var d=(0,a.QO)(s),p=d.countCategory,f=d.countDatetime,v=d.countNumerical;return o.push({name:"Categorical Features",rate:p/u,value:(0,c.x6)(p)},{name:"Numerical Features",rate:v/u,value:(0,c.x6)(v)},{name:"Datetime Features",rate:f/u,value:(0,c.x6)(f)}),o}function v(e){return"string"===typeof e?e:JSON.stringify(e)}function h(e,n){var t,i;return null===e||void 0===e||null===(t=e.find((function(e){var t=e.block;return n(t)})))||void 0===t||null===(i=t.variables)||void 0===i?void 0:i.map((function(e){var n=e.value;return d(d({},e),{},{value:v(n)})}))}function b(e,n){return n===s.Xm.TIME?e.push({uuid:"execution_date",value:"<run datetime>"}):n===s.Xm.EVENT&&e.push({uuid:"event",value:"<trigger event>"}),e}function m(e){return e?Object.entries(e).reduce((function(e,n){var t=(0,i.Z)(n,2),l=t[0],s=t[1],a=s;try{a=JSON.parse(s)}catch(c){}return d(d({},e),{},(0,r.Z)({},l,a))}),{}):e}},43526:function(e,n,t){"use strict";t.d(n,{I7:function(){return i},IB:function(){return c},VV:function(){return l},_7:function(){return s},rn:function(){return a}});var i,r=t(66050),l="datetime",s="code",a=r.V;!function(e){e.SECOND="second",e.MINUTE="minute",e.HOUR="hour",e.DAY="day",e.WEEK="week",e.MONTH="month",e.YEAR="year",e.CUSTOM="custom"}(i||(i={}));var c=[i.SECOND,i.MINUTE,i.HOUR,i.DAY,i.WEEK,i.MONTH,i.YEAR,i.CUSTOM]},22673:function(e,n,t){"use strict";var i=t(82684),r=t(73199),l=t.n(r),s=t(71593),a=t(9518),c=t(65292),u=t(23831),o=t(2005),d=t(49125),p=t(28598);n.Z=function(e){var n=e.language,t=e.maxWidth,r=e.showLineNumbers,f=e.small,v=e.source,h=e.wrapLines,b=(0,i.useContext)(a.ThemeContext);return(0,p.jsx)(l(),{source:v,renderers:{code:function(e){var i=e.value;return(0,p.jsx)(s.Z,{customStyle:{backgroundColor:(b.background||u.Z.background).popup,border:"none",borderRadius:"none",boxShadow:"none",fontFamily:o.Vp,fontSize:f?12:14,marginBottom:0,marginTop:0,paddingBottom:2*d.iI,paddingTop:2*d.iI,maxWidth:t},lineNumberStyle:{color:(b.content||u.Z.content).muted},language:n,showLineNumbers:r,style:c._4,useInlineStyles:!0,wrapLines:h,children:i})}}})}},12625:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return te}});var i=t(75582),r=t(77837),l=t(82394),s=t(38860),a=t.n(s),c=t(82684),u=t(83455),o=t(34376),d=t(43526),p=t(60328),f=t(34744),v=t(67971),h=t(87372),b=t(51099),m=t(2626),j=t(97496),x=t(47409),g=t(55378),Z=t(86673),y=t(87815),k=t(19711),O=t(82531),_=t(56681),P=t(10503),w=t(2850),I=t(49125),S=t(59920),D=t(90211),C=t(58122),E=t(33766),N=t(7715),T=t(96510),M=t(66653),L=t(59e3),A=t(28598);function F(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?F(Object(t),!0).forEach((function(n){(0,l.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):F(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var U=function(e){var n=e.backfill,t=e.fetchBackfill,r=e.pipeline,l=e.variables,s=(0,o.useRouter)(),a=n||{},F=a.block_uuid,U=a.end_datetime,R=a.id,H=a.interval_type,V=a.interval_units,z=a.name,Y=a.pipeline_run_dates,W=a.start_datetime,q=a.status,J=a.total_run_count,G=a.variables,K=void 0===G?{}:G,X=r.uuid,Q=(0,L.iV)(),$={_limit:40,_offset:40*(null!==Q&&void 0!==Q&&Q.page?Q.page:0)};null!==Q&&void 0!==Q&&Q.status&&($.status=Q.status);var ee=O.ZP.pipeline_runs.list(B(B({},$),{},{backfill_id:R,order_by:["id DESC"]}),{refreshInterval:3e3,revalidateOnFocus:!0},{pauseFetch:!R}),ne=ee.data,te=ee.mutate,ie=!(W&&U&&H&&V),re=!q,le=(0,c.useMemo)((function(){return(re?Y:null===ne||void 0===ne?void 0:ne.pipeline_runs)||[]}),[ne,Y,re]),se=(0,c.useMemo)((function(){var e;return(null===ne||void 0===ne||null===(e=ne.metadata)||void 0===e?void 0:e.count)||[]}),[ne]),ae=(0,c.useState)(null),ce=ae[0],ue=ae[1],oe=(0,c.useMemo)((function(){var e=null!==Q&&void 0!==Q&&Q.page?Q.page:0;return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(j.Z,{disableRowSelect:re,emptyMessage:null!==Q&&void 0!==Q&&Q.status?"No runs available":'No runs available. Please complete backfill configuration by clicking "Edit backfill" above.',fetchPipelineRuns:te,onClickRow:function(e){return ue((function(n){var t=le[e];return(null===n||void 0===n?void 0:n.id)!==t.id?t:null}))},pipelineRuns:le,selectedRun:ce}),(0,A.jsx)(Z.Z,{p:2,children:(0,A.jsx)(b.Z,{page:Number(e),maxPages:9,onUpdate:function(e){var n=Number(e),t=B(B({},Q),{},{page:n>=0?n:0});s.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(X,"/triggers/").concat(R,"?").concat((0,L.uM)(t)))},totalPages:Math.ceil(se/40)})})]})}),[te,r,le,ce]),de=(0,c.useState)(_.G[0]),pe=de[0],fe=de[1],ve=(0,u.Db)(O.ZP.backfills.useUpdate(R),{onSuccess:function(e){return(0,T.wD)(e,{callback:function(){t(),te()},onErrorCallback:function(e,n){return console.log(n,e)}})}}),he=(0,i.Z)(ve,2),be=he[0],me=he[1].isLoading,je=(0,c.useMemo)((function(){return!!q&&(d.rn.CANCELLED!==q&&d.rn.FAILED!==q)}),[q]),xe=(0,c.useMemo)((function(){return q&&d.rn.CANCELLED!==q&&d.rn.FAILED!==q&&d.rn.INITIAL!==q&&d.rn.RUNNING!==q}),[q]),ge=(0,c.useMemo)((function(){var e={default:!0,size:1.5*I.iI},n=[[(0,A.jsxs)(v.Z,{alignItems:"center",children:[(0,A.jsx)(P.VW,B({},e)),(0,A.jsx)(Z.Z,{mr:1}),(0,A.jsx)(k.ZP,{default:!0,children:"Backfill type"})]},"backfill_type_label"),(0,A.jsx)(k.ZP,{monospace:!0,children:F?d._7:d.VV},"backfill_type")],[(0,A.jsxs)(v.Z,{alignItems:"center",children:[(0,A.jsx)(P.rs,B({},e)),(0,A.jsx)(Z.Z,{mr:1}),(0,A.jsx)(k.ZP,{default:!0,children:"Status"})]},"backfill_status_label"),(0,A.jsx)(k.ZP,{danger:d.rn.CANCELLED===q||d.rn.FAILED==q,default:d.rn.INITIAL===q,monospace:!0,muted:!q,success:d.rn.RUNNING===q||d.rn.COMPLETED===q,children:q||"inactive"},"backfill_status")]];return F||n.push.apply(n,[[(0,A.jsxs)(v.Z,{alignItems:"center",children:[(0,A.jsx)(P.aw,B({},e)),(0,A.jsx)(Z.Z,{mr:1}),(0,A.jsx)(k.ZP,{default:!0,children:"Start date and time"})]},"backfill_start_date_label"),(0,A.jsx)(k.ZP,{monospace:!0,children:W},"backfill_start_date")],[(0,A.jsxs)(v.Z,{alignItems:"center",children:[(0,A.jsx)(P.aw,B({},e)),(0,A.jsx)(Z.Z,{mr:1}),(0,A.jsx)(k.ZP,{default:!0,children:"End date and time"})]},"backfill_end_date_label"),(0,A.jsx)(k.ZP,{monospace:!0,children:U},"backfill_end_date")],[(0,A.jsxs)(v.Z,{alignItems:"center",children:[(0,A.jsx)(P.Pf,B({},e)),(0,A.jsx)(Z.Z,{mr:1}),(0,A.jsx)(k.ZP,{default:!0,children:"Interval type"})]},"interval_type_label"),(0,A.jsx)(k.ZP,{monospace:!0,children:H&&(0,D.kC)(H)},"interval_type")],[(0,A.jsxs)(v.Z,{alignItems:"center",children:[(0,A.jsx)(P.Pf,B({},e)),(0,A.jsx)(Z.Z,{mr:1}),(0,A.jsx)(k.ZP,{default:!0,children:"Interval units"})]},"interval_units_label"),(0,A.jsx)(k.ZP,{monospace:!0,children:V},"interval_units")],[(0,A.jsxs)(v.Z,{alignItems:"center",children:[(0,A.jsx)(P.qZ,B({},e)),(0,A.jsx)(Z.Z,{mr:1}),(0,A.jsx)(k.ZP,{default:!0,children:"Total runs"})]},"total_runs_label"),(0,A.jsx)(k.ZP,{monospace:!0,children:J},"total_runs")]]),(0,A.jsx)(y.Z,{columnFlex:[null,1],rows:n})}),[F,U,H,V,je,W,q]),Ze=(0,c.useMemo)((function(){return K||{}}),[K]),ye=(0,c.useMemo)((function(){var e,n=[];return(0,N.Qr)(Ze)?n=(0,C.wx)(l,(function(e){return"global"===e.uuid})):Object.entries(Ze).forEach((function(e){var t=(0,i.Z)(e,2),r=t[0],l=t[1];n.push({uuid:r,value:(0,C.FS)(l)})})),"undefined"!==typeof n&&null!==(e=n)&&void 0!==e&&e.length?(0,A.jsx)(y.Z,{columnFlex:[null,1],rows:n.map((function(e){var n=e.uuid,t=e.value;return[(0,A.jsx)(k.ZP,{default:!0,monospace:!0,small:!0,children:n},"settings_variable_label_".concat(n)),(0,A.jsx)(k.ZP,{monospace:!0,small:!0,children:t},"settings_variable_".concat(n))]}))}):null}),[Ze,l]);return(0,A.jsx)(A.Fragment,{children:(0,A.jsxs)(m.Z,{afterHidden:!ce,before:(0,A.jsxs)(w.M,{children:[(0,A.jsxs)(Z.Z,{mb:I.HN,pt:I.cd,px:I.cd,children:[(0,A.jsx)(Z.Z,{mb:I.cd,children:(0,A.jsx)(P.yg,{size:5*I.iI})}),(0,A.jsx)(h.Z,{children:z})]}),(0,A.jsx)(Z.Z,{px:I.cd,children:(0,A.jsx)(h.Z,{level:5,children:"Settings"})}),(0,A.jsx)(f.Z,{light:!0,mt:1,short:!0}),ge,ye&&(0,A.jsxs)(Z.Z,{my:I.HN,children:[(0,A.jsx)(Z.Z,{px:I.cd,children:(0,A.jsx)(h.Z,{level:5,children:"Runtime variables"})}),(0,A.jsx)(f.Z,{light:!0,mt:1,short:!0}),ye]})]}),beforeWidth:34*I.iI,breadcrumbs:[{label:function(){return"Backfills"},linkProps:{as:"/pipelines/".concat(X,"/backfills"),href:"/pipelines/[pipeline]/backfills"}},{label:function(){return z},linkProps:{as:"/pipelines/".concat(X,"/backfills/").concat(R),href:"/pipelines/[pipeline]/backfills/[...slug]"}}],buildSidekick:function(e){return(0,_.Z)(B(B({},e),{},{selectedRun:ce,selectedTab:pe,setSelectedTab:fe}))},pageName:S.M.BACKFILLS,pipeline:r,subheader:(0,A.jsxs)(v.Z,{alignItems:"center",children:[!xe&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(p.Z,{beforeIcon:je?(0,A.jsx)(P.dz,{size:2*I.iI}):(0,A.jsx)(P.Py,{inverted:!(d.rn.CANCELLED===q||d.rn.FAILED===q),size:2*I.iI}),danger:je,disabled:ie,loading:me,onClick:function(e){(0,M.j)(e),be({backfill:{status:je?d.rn.CANCELLED:d.rn.INITIAL}})},outline:!0,success:!je&&!(d.rn.CANCELLED===q||d.rn.FAILED===q)&&!ie,children:je?"Cancel backfill":d.rn.CANCELLED===q||d.rn.FAILED===q?"Retry backfill":"Start backfill"}),(0,A.jsx)(Z.Z,{mr:I.cd})]}),q===x.V.COMPLETED?(0,A.jsx)(k.ZP,{bold:!0,default:!0,large:!0,children:"Filter runs by status:"}):(0,A.jsx)(p.Z,{linkProps:{as:"/pipelines/".concat(X,"/backfills/").concat(R,"/edit"),href:"/pipelines/[pipeline]/backfills/[...slug]"},noHoverUnderline:!0,outline:!0,sameColorAsText:!0,children:"Edit backfill"}),(0,A.jsx)(Z.Z,{mr:I.cd}),!re&&(0,A.jsxs)(g.Z,{compact:!0,defaultColor:!0,onChange:function(e){e.preventDefault(),"all"===e.target.value?s.push("/pipelines/[pipeline]/backfills/[...slug]","/pipelines/".concat(X,"/backfills/").concat(R)):(0,E.u)({page:0,status:e.target.value})},paddingRight:4*I.iI,placeholder:"Select run status",value:(null===Q||void 0===Q?void 0:Q.status)||"all",children:[(0,A.jsx)("option",{value:"all",children:"All statuses"},"all_statuses"),Object.values(x.V).map((function(e){return(0,A.jsx)("option",{value:e,children:x.D[e]},e)}))]})]}),title:function(){return z},uuid:"backfill/detail",children:[(0,A.jsx)(Z.Z,{mt:I.cd,px:I.cd,children:(0,A.jsx)(h.Z,{level:5,children:"Runs for this backfill"})}),(0,A.jsx)(f.Z,{light:!0,mt:I.cd,short:!0}),oe]})})},R=t(2713),H=t(47999),V=t(28358),z=t(93461),Y=t(82944),W=[{label:function(){return"Date and time window"},description:function(){return"Backfill between a date and time range."},uuid:d.VV}],q=t(18025),J=t(19395);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 K(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,l.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}var X=function(e){var n=e.backfill,t=e.fetchBackfill,r=e.pipeline,l=(e.variables,(0,o.useRouter)()),s=(0,c.useState)(),a=s[0],b=s[1],j=a||{},x=j.block_uuid,_=j.id,w=j.interval_type,E=j.interval_units,M=(j.end_datetime,j.start_datetime,j.name),L=r.uuid,F=(0,c.useState)(null),B=F[0],U=F[1],G=(0,c.useState)({}),X=G[0],Q=(G[1],(0,c.useState)(x?d._7:d.VV)),$=Q[0],ee=Q[1],ne=(0,c.useState)(!1),te=ne[0],ie=ne[1],re=(0,c.useState)(!1),le=re[0],se=re[1],ae=(0,c.useState)(null),ce=ae[0],ue=ae[1],oe=(0,c.useState)(null),de=oe[0],pe=oe[1],fe=(0,c.useState)({hour:"00",minute:"00"}),ve=fe[0],he=fe[1],be=(0,c.useState)({hour:"00",minute:"00"}),me=be[0],je=be[1];(0,c.useEffect)((function(){if(n){b(n);var e=n.start_datetime;if(e){var t=e.split(" ")[1];pe((0,J.eI)(e)),je({hour:t.substring(0,2),minute:t.substring(3,5)})}var i=n.end_datetime;if(i){var r=i.split(" ")[1];ue((0,J.eI)(i)),he({hour:r.substring(0,2),minute:r.substring(3,5)})}}}),[n]);var xe=(0,c.useMemo)((function(){var e=[[(0,A.jsxs)(v.Z,{alignItems:"center",children:[(0,A.jsx)(P.KJ,{default:!0,size:1.5*I.iI}),(0,A.jsx)(Z.Z,{mr:1}),(0,A.jsx)(k.ZP,{default:!0,children:"Backfill name"})]},"model_name_detail"),(0,A.jsx)(Y.Z,{monospace:!0,onChange:function(e){e.preventDefault(),b((function(n){return K(K({},n),{},{name:e.target.value})}))},placeholder:"Name this backfill",value:M},"model_name_input_detail")]];return d.VV===$&&e.push.apply(e,[[(0,A.jsxs)(v.Z,{alignItems:"center",children:[(0,A.jsx)(P.aw,{default:!0,size:1.5*I.iI}),(0,A.jsx)(Z.Z,{mr:1}),(0,A.jsx)(k.ZP,{default:!0,children:"Start date and time"})]},"start_time"),(0,A.jsxs)("div",{style:{minHeight:"".concat(5.75*I.iI,"px")},children:[!te&&(0,A.jsx)(Y.Z,{monospace:!0,onClick:function(){return ie((function(e){return!e}))},onFocus:function(){return ie(!0)},placeholder:"YYYY-MM-DD HH:MM",value:de?"".concat(de.toISOString().split("T")[0]," ").concat(null===me||void 0===me?void 0:me.hour,":").concat(null===me||void 0===me?void 0:me.minute):""}),(0,A.jsx)("div",{style:{width:"400px"},children:(0,A.jsx)(H.Z,{disableEscape:!0,onClickOutside:function(){return ie(!1)},open:te,style:{position:"relative"},children:(0,A.jsx)(R.Z,{selectedDate:de,selectedTime:me,setSelectedDate:pe,setSelectedTime:je,topPosition:!0})})})]},"start_time_input")],[(0,A.jsxs)(v.Z,{alignItems:"center",children:[(0,A.jsx)(P.aw,{default:!0,size:1.5*I.iI}),(0,A.jsx)(Z.Z,{mr:1}),(0,A.jsx)(k.ZP,{default:!0,children:"End date and time"})]},"end_time"),(0,A.jsxs)("div",{style:{minHeight:"".concat(5.75*I.iI,"px")},children:[!le&&(0,A.jsx)(Y.Z,{monospace:!0,onClick:function(){return se((function(e){return!e}))},onFocus:function(){return se(!0)},placeholder:"YYYY-MM-DD HH:MM",value:ce?"".concat(ce.toISOString().split("T")[0]," ").concat(null===ve||void 0===ve?void 0:ve.hour,":").concat(null===ve||void 0===ve?void 0:ve.minute):""}),(0,A.jsx)("div",{style:{width:"400px"},children:(0,A.jsx)(H.Z,{disableEscape:!0,onClickOutside:function(){return se(!1)},open:le,style:{position:"relative"},children:(0,A.jsx)(R.Z,{selectedDate:ce,selectedTime:ve,setSelectedDate:ue,setSelectedTime:he,topPosition:!0})})})]},"end_time_input")],[(0,A.jsxs)(v.Z,{alignItems:"center",children:[(0,A.jsx)(P.Pf,{default:!0,size:1.5*I.iI}),(0,A.jsx)(Z.Z,{mr:1}),(0,A.jsx)(k.ZP,{default:!0,children:"Interval type"})]},"interval_type"),(0,A.jsxs)(g.Z,{monospace:!0,onChange:function(e){e.preventDefault(),b((function(n){return K(K({},n),{},{interval_type:e.target.value})}))},placeholder:"Time spacing between each backfill",value:w,children:[!w&&(0,A.jsx)("option",{value:""}),d.IB.map((function(e){return(0,A.jsx)("option",{value:e,children:(0,D.kC)(e)},e)}))]},"interval_type_input")],[(0,A.jsxs)(v.Z,{alignItems:"center",children:[(0,A.jsx)(P.Pf,{default:!0,size:1.5*I.iI}),(0,A.jsx)(Z.Z,{mr:1}),(0,A.jsx)(k.ZP,{default:!0,children:"Interval units"})]},"interval_units"),(0,A.jsx)(Y.Z,{disabled:!w,monospace:!0,onChange:function(e){e.preventDefault(),b((function(n){return K(K({},n),{},{interval_units:e.target.value})}))},placeholder:w?"Number of ".concat(w).concat(w!==d.I7.CUSTOM?"s":""," between each backfill"):"Interval type is required",type:"number",value:E},"interval_unit_input")]]),(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(Z.Z,{mb:2,px:I.cd,children:(0,A.jsx)(h.Z,{children:"Settings"})}),(0,A.jsx)(f.Z,{light:!0,short:!0}),(0,A.jsx)(y.Z,{columnFlex:[null,1],rows:e})]})}),[ce,de,w,E,M,$,te,le,ve,me]),ge=(0,u.Db)(O.ZP.backfills.useUpdate(_),{onSuccess:function(e){return(0,T.wD)(e,{callback:function(){t(),l.push("/pipelines/[pipeline]/backfills/[...slug]","/pipelines/".concat(L,"/backfills/").concat(_))},onErrorCallback:function(e,n){return U({errors:n,response:e})}})}}),Ze=(0,i.Z)(ge,2),ye=Ze[0],ke=Ze[1].isLoading,Oe=(0,c.useCallback)((function(){var e=K(K({},(0,N.GL)(a,["name"])),{},{end_datetime:null,interval_type:null,interval_units:null,start_datetime:null,variables:(0,C.e7)(X)});return d._7===$||(e.interval_type=w,e.interval_units=E,e.end_datetime=ce&&null!==ve&&void 0!==ve&&ve.hour&&null!==ve&&void 0!==ve&&ve.minute?"".concat(ce.toISOString().split("T")[0]," ").concat(null===ve||void 0===ve?void 0:ve.hour,":").concat(null===ve||void 0===ve?void 0:ve.minute,":00"):null,e.start_datetime=de&&null!==me&&void 0!==me&&me.hour&&null!==me&&void 0!==me&&me.minute?"".concat(de.toISOString().split("T")[0]," ").concat(null===me||void 0===me?void 0:me.hour,":").concat(null===me||void 0===me?void 0:me.minute,":00"):null),ye({backfill:e})}),[ce,de,w,E,a,X,$,ve,me]),_e=(0,c.useMemo)((function(){return d._7===$?!x:!(ce&&de&&w&&E)}),[x,ce,de,w,E,$,ve,me]);return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsxs)(m.Z,{breadcrumbs:[{label:function(){return"Backfills"},linkProps:{as:"/pipelines/".concat(L,"/backfills"),href:"/pipelines/[pipeline]/backfills"}},{label:function(){return null===a||void 0===a?void 0:a.name},linkProps:{as:"/pipelines/".concat(L,"/backfills/").concat(_),href:"/pipelines/[pipeline]/backfills/[...slug]"}}],pageName:S.M.BACKFILLS,pipeline:r,subheader:(0,A.jsxs)(v.Z,{alignItems:"center",children:[(0,A.jsx)(p.Z,{disabled:_e,loading:ke,onClick:Oe,outline:!0,primary:!0,children:"Save changes"}),(0,A.jsx)(Z.Z,{mr:1}),(0,A.jsx)(p.Z,{linkProps:{href:"/pipelines/[pipeline]/backfills/[...slug]",as:"/pipelines/".concat(L,"/backfills/").concat(_)},noHoverUnderline:!0,outline:!0,sameColorAsText:!0,children:"Cancel"})]}),title:function(){return"Edit ".concat(null===a||void 0===a?void 0:a.name)},uuid:"backfill/edit",children:[(0,A.jsxs)(Z.Z,{p:I.cd,children:[(0,A.jsxs)(Z.Z,{mb:2,children:[(0,A.jsx)(h.Z,{children:"Backfill type"}),(0,A.jsx)(k.ZP,{muted:!0,children:"How would you like this pipeline to be backfilled?"})]}),(0,A.jsx)(v.Z,{children:W.map((function(e){var n=e.label,t=e.description,i=e.uuid,r=$===i,l=$&&!r;return(0,A.jsx)(p.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){ee(i)},children:(0,A.jsx)(q.U,{selected:r,children:(0,A.jsxs)(v.Z,{alignItems:"center",children:[(0,A.jsx)(z.Z,{children:(0,A.jsx)("input",{checked:r,type:"radio"})}),(0,A.jsx)(Z.Z,{mr:I.cd}),(0,A.jsxs)(z.Z,{alignItems:"flex-start",flexDirection:"column",children:[(0,A.jsx)(h.Z,{bold:!0,default:!r&&!l,level:5,muted:!r&&l,children:n()}),(0,A.jsx)(k.ZP,{default:!r&&!l,leftAligned:!0,muted:l,children:t()})]})]})})},i)}))})]}),(0,A.jsx)(Z.Z,{mt:5,children:xe})]}),B&&(0,A.jsx)(H.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return U(null)},children:(0,A.jsx)(V.Z,K(K({},B),{},{onClose:function(){return U(null)}}))})]})},Q=t(41788);function $(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 ee(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,l.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 ne(e){var n=e.backfillId,t=e.pipelineUUID,i=e.subpath,r=O.ZP.variables.pipelines.list(t).data,l=(0,c.useMemo)((function(){return null===r||void 0===r?void 0:r.variables}),[r]),s=O.ZP.pipelines.detail(t,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,a=(0,c.useMemo)((function(){return ee(ee({},null===s||void 0===s?void 0:s.pipeline),{},{uuid:t})}),[s,t]),u=O.ZP.backfills.detail(n,{include_preview_runs:!0}),o=u.data,d=u.mutate,p=(0,c.useMemo)((function(){return null===o||void 0===o?void 0:o.backfill}),[o]);return"edit"===i?(0,A.jsx)(X,{backfill:p,fetchBackfill:d,pipeline:a,variables:l}):(0,A.jsx)(U,{backfill:p,fetchBackfill:d,pipeline:a,variables:l})}ne.getInitialProps=function(){var e=(0,r.Z)(a().mark((function e(n){var t,r,l,s,c,u;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.query,r=t.pipeline,l=t.slug,!Array.isArray(l)){e.next=4;break}return s=(0,i.Z)(l,2),c=s[0],u=s[1],e.abrupt("return",{backfillId:c,pipelineUUID:r,subpath:u});case 4:return e.abrupt("return",{pipelineUUID:r});case 5:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();var te=(0,Q.Z)(ne)},53664:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/backfills/[...slug]",function(){return t(12625)}])}},function(e){e.O(0,[3850,2083,5896,4804,1774,5872,2524,4495,9767,6579,434,9898,1830,4463,6532,1286,4846,8961,9774,2888,179],(function(){return n=53664,e(e.s=n);var n}));var n=e.O();_N_E=n}]);