mage-ai 0.9.7__py3-none-any.whl → 0.9.9__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 (161) hide show
  1. mage_ai/ai/constants.py +1 -0
  2. mage_ai/ai/generator.py +6 -0
  3. mage_ai/ai/{gen_doc_for_pipeline.py → generator_cmds.py} +5 -0
  4. mage_ai/ai/llm_pipeline_wizard.py +108 -3
  5. mage_ai/api/policies/BlockPolicy.py +1 -0
  6. mage_ai/api/policies/BlockTemplatePolicy.py +9 -0
  7. mage_ai/api/policies/LlmPolicy.py +3 -2
  8. mage_ai/api/policies/OauthAccessTokenPolicy.py +31 -0
  9. mage_ai/api/policies/PipelinePolicy.py +1 -0
  10. mage_ai/api/policies/ProjectPolicy.py +9 -0
  11. mage_ai/api/policies/SearchResultPolicy.py +32 -0
  12. mage_ai/api/policies/VariablePolicy.py +8 -0
  13. mage_ai/api/presenters/BlockTemplatePresenter.py +1 -0
  14. mage_ai/api/presenters/OauthAccessTokenPresenter.py +9 -0
  15. mage_ai/api/presenters/ProjectPresenter.py +2 -0
  16. mage_ai/api/presenters/SearchResultPresenter.py +73 -0
  17. mage_ai/api/resources/BlockResource.py +43 -4
  18. mage_ai/api/resources/BlockTemplateResource.py +15 -2
  19. mage_ai/api/resources/CustomTemplateResource.py +15 -3
  20. mage_ai/api/resources/FileContentResource.py +8 -1
  21. mage_ai/api/resources/FileResource.py +22 -2
  22. mage_ai/api/resources/OauthAccessTokenResource.py +24 -0
  23. mage_ai/api/resources/PipelineResource.py +70 -2
  24. mage_ai/api/resources/ProjectResource.py +15 -1
  25. mage_ai/api/resources/SearchResultResource.py +68 -0
  26. mage_ai/api/resources/VariableResource.py +25 -14
  27. mage_ai/cache/base.py +3 -0
  28. mage_ai/cache/block_action_object/__init__.py +282 -0
  29. mage_ai/cache/block_action_object/constants.py +4 -0
  30. mage_ai/cache/constants.py +1 -0
  31. mage_ai/data_integrations/destinations/constants.py +2 -0
  32. mage_ai/data_preparation/executors/k8s_pipeline_executor.py +1 -1
  33. mage_ai/data_preparation/models/block/__init__.py +20 -1
  34. mage_ai/data_preparation/models/block/dbt/utils/__init__.py +1 -0
  35. mage_ai/data_preparation/models/custom_templates/custom_block_template.py +8 -3
  36. mage_ai/data_preparation/models/custom_templates/utils.py +6 -3
  37. mage_ai/data_preparation/models/file.py +3 -0
  38. mage_ai/data_preparation/models/pipeline.py +10 -1
  39. mage_ai/data_preparation/models/{project.py → project/__init__.py} +17 -0
  40. mage_ai/data_preparation/models/project/constants.py +5 -0
  41. mage_ai/data_preparation/repo_manager.py +9 -6
  42. mage_ai/data_preparation/templates/constants.py +478 -1
  43. mage_ai/data_preparation/templates/template.py +9 -1
  44. mage_ai/orchestration/backfills/service.py +20 -1
  45. mage_ai/orchestration/db/__init__.py +25 -0
  46. mage_ai/orchestration/db/models/schedules.py +20 -1
  47. mage_ai/orchestration/pipeline_scheduler.py +23 -0
  48. mage_ai/server/constants.py +1 -1
  49. mage_ai/server/frontend_dist/404.html +2 -2
  50. mage_ai/server/frontend_dist/404.html.html +2 -2
  51. mage_ai/server/frontend_dist/_next/static/OwvTROmputQCA1Z9HEGDv/_buildManifest.js +1 -0
  52. mage_ai/server/frontend_dist/_next/static/chunks/{1005-ce36fe7ed460d006.js → 1005-16c1a6678de5311e.js} +1 -1
  53. mage_ai/server/frontend_dist/_next/static/chunks/1424-e22139f33196c5c1.js +1 -0
  54. mage_ai/server/frontend_dist/_next/static/chunks/1484-a76b2c31e4808379.js +1 -0
  55. mage_ai/server/frontend_dist/_next/static/chunks/2485-b569baad92049d6b.js +1 -0
  56. mage_ai/server/frontend_dist/_next/static/chunks/{2786-d8b593e5d7c42665.js → 2786-acce6ea0d9b4898e.js} +1 -1
  57. mage_ai/server/frontend_dist/_next/static/chunks/3654-573457b62efff6e2.js +1 -0
  58. mage_ai/server/frontend_dist/_next/static/chunks/3881-0eb04f7f7a244347.js +1 -0
  59. mage_ai/server/frontend_dist/_next/static/chunks/{4317-b112fe7bb532b998.js → 4317-3fe63fc9401685d6.js} +1 -1
  60. mage_ai/server/frontend_dist/_next/static/chunks/{4822-52d9d661b6bd1ae9.js → 4822-045cc7cdd7c95163.js} +1 -1
  61. mage_ai/server/frontend_dist/_next/static/chunks/{547-14029bdacc0ed267.js → 547-4ad2cdae967055b6.js} +1 -1
  62. mage_ai/server/frontend_dist/_next/static/chunks/6299-cf188c1b7a1bc33c.js +1 -0
  63. mage_ai/server/frontend_dist/_next/static/chunks/{7815-6dc55b5fd5d1f48a.js → 7815-fbd99c8f259d9e8b.js} +1 -1
  64. mage_ai/server/frontend_dist/_next/static/chunks/{8312-cdc4d6c3b9f53099.js → 8312-c88a3b1012e5448b.js} +1 -1
  65. mage_ai/server/frontend_dist/_next/static/chunks/{8952-492bf0e29d215ddd.js → 8952-e94a7334fcd5c68b.js} +1 -1
  66. mage_ai/server/frontend_dist/_next/static/chunks/9055-d0d25298cb5f4e45.js +1 -0
  67. mage_ai/server/frontend_dist/_next/static/chunks/pages/{_app-c7557dc9e725825e.js → _app-fa38a24707c76411.js} +1 -1
  68. mage_ai/server/frontend_dist/_next/static/chunks/pages/files-b9dac983c75798f2.js +1 -0
  69. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/{settings-17bb362b9683079c.js → settings-453aaa7bf78f8101.js} +1 -1
  70. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/{[user]-bfa53c0ee79920a0.js → [user]-3b502aa6d1a04cad.js} +1 -1
  71. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/{new-2f7e6bf8e2a37380.js → new-dd41d718cbb5990c.js} +1 -1
  72. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users-ec748f838b7b8fad.js +1 -0
  73. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-bcc24120f5911f76.js +1 -0
  74. mage_ai/server/frontend_dist/_next/static/chunks/pages/{overview-8ffbc4b0e8a43266.js → overview-6f20b9e9cbec91d6.js} +1 -1
  75. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/{[...slug]-373f6b8c9161e819.js → [...slug]-55212dfc15881ef2.js} +1 -1
  76. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{backfills-226bf0c5c1bfe004.js → backfills-6b4a82cd0516e121.js} +1 -1
  77. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-0705c99df236ec8a.js +1 -0
  78. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{logs-4ade07836fd577c9.js → logs-c294f5d74bd2d50f.js} +1 -1
  79. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{monitors-fd9eb711e89425e9.js → monitors-1b9e4abc54842cdf.js} +1 -1
  80. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{runs-027666ed18d3151e.js → runs-17ebe87e94242ae5.js} +1 -1
  81. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-48b60ca236a26818.js +1 -0
  82. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{syncs-de58e6b91e5e4552.js → syncs-5153f4665aaf8b17.js} +1 -1
  83. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/{[...slug]-432843576e1ed09e.js → [...slug]-1306e85191f6b47c.js} +1 -1
  84. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{triggers-ae31b1d0d8a4634d.js → triggers-2e731d343a26d46a.js} +1 -1
  85. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-0fab737dbc9074fc.js +1 -0
  86. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-b2354688508b0755.js +1 -0
  87. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{users-a4f01b5c429757cc.js → users-6522c963087f18e8.js} +1 -1
  88. mage_ai/server/frontend_dist/_next/static/chunks/pages/{sign-in-1140f8ee7e89381a.js → sign-in-7dcd1257ca9660bb.js} +1 -1
  89. mage_ai/server/frontend_dist/_next/static/chunks/pages/templates/{[...slug]-f59b3f04c5a49351.js → [...slug]-78a07e7fe8973811.js} +1 -1
  90. mage_ai/server/frontend_dist/_next/static/chunks/pages/{templates-dbb209ce131390a9.js → templates-19df643f52679d5a.js} +1 -1
  91. mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-a1cf445565b68809.js +1 -0
  92. mage_ai/server/frontend_dist/files.html +2 -2
  93. mage_ai/server/frontend_dist/index.html +2 -2
  94. mage_ai/server/frontend_dist/manage/settings.html +2 -2
  95. mage_ai/server/frontend_dist/manage/users/[user].html +2 -2
  96. mage_ai/server/frontend_dist/manage/users/new.html +2 -2
  97. mage_ai/server/frontend_dist/manage/users.html +2 -2
  98. mage_ai/server/frontend_dist/manage.html +2 -2
  99. mage_ai/server/frontend_dist/overview.html +2 -2
  100. mage_ai/server/frontend_dist/pipeline-runs.html +2 -2
  101. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +2 -2
  102. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +2 -2
  103. mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +2 -2
  104. mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +2 -2
  105. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +2 -2
  106. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +2 -2
  107. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +2 -2
  108. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +2 -2
  109. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +2 -2
  110. mage_ai/server/frontend_dist/pipelines/[pipeline]/settings.html +2 -2
  111. mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +2 -2
  112. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +2 -2
  113. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +2 -2
  114. mage_ai/server/frontend_dist/pipelines/[pipeline].html +2 -2
  115. mage_ai/server/frontend_dist/pipelines.html +2 -2
  116. mage_ai/server/frontend_dist/settings/account/profile.html +2 -2
  117. mage_ai/server/frontend_dist/settings/workspace/preferences.html +2 -2
  118. mage_ai/server/frontend_dist/settings/workspace/sync-data.html +2 -2
  119. mage_ai/server/frontend_dist/settings/workspace/users.html +2 -2
  120. mage_ai/server/frontend_dist/settings.html +2 -2
  121. mage_ai/server/frontend_dist/sign-in.html +16 -16
  122. mage_ai/server/frontend_dist/templates/[...slug].html +2 -2
  123. mage_ai/server/frontend_dist/templates.html +2 -2
  124. mage_ai/server/frontend_dist/terminal.html +2 -2
  125. mage_ai/server/frontend_dist/test.html +2 -2
  126. mage_ai/server/frontend_dist/triggers.html +2 -2
  127. mage_ai/server/frontend_dist/version-control.html +2 -2
  128. mage_ai/server/server.py +5 -0
  129. mage_ai/server/websocket_server.py +1 -0
  130. mage_ai/services/search/__init__.py +0 -0
  131. mage_ai/services/search/block_action_objects.py +33 -0
  132. mage_ai/services/search/constants.py +1 -0
  133. mage_ai/shared/array.py +7 -0
  134. mage_ai/shared/parsers.py +11 -2
  135. mage_ai/tests/shared/test_parsers.py +73 -0
  136. mage_ai/usage_statistics/constants.py +1 -0
  137. mage_ai/usage_statistics/logger.py +19 -1
  138. {mage_ai-0.9.7.dist-info → mage_ai-0.9.9.dist-info}/METADATA +9 -7
  139. {mage_ai-0.9.7.dist-info → mage_ai-0.9.9.dist-info}/RECORD +145 -132
  140. mage_ai/server/frontend_dist/_next/static/chunks/1424-de97c5aa0477894b.js +0 -1
  141. mage_ai/server/frontend_dist/_next/static/chunks/1484-c9d6bc33227070dd.js +0 -1
  142. mage_ai/server/frontend_dist/_next/static/chunks/2485-86c97f516c1abb9f.js +0 -1
  143. mage_ai/server/frontend_dist/_next/static/chunks/3215-c2f5f19b650f9a50.js +0 -1
  144. mage_ai/server/frontend_dist/_next/static/chunks/3654-bff4740b63cf280c.js +0 -1
  145. mage_ai/server/frontend_dist/_next/static/chunks/3881-7f121dbbe6e273cd.js +0 -1
  146. mage_ai/server/frontend_dist/_next/static/chunks/6299-97f283be01adf6a8.js +0 -1
  147. mage_ai/server/frontend_dist/_next/static/chunks/pages/files-daf49c7c6f7e70f8.js +0 -1
  148. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users-1f6cb7656299cbd1.js +0 -1
  149. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-4894eabb442a039c.js +0 -1
  150. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-a9bd86bee73b5762.js +0 -1
  151. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-cf51793c2112915c.js +0 -1
  152. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-f1131ffe0d2a4a06.js +0 -1
  153. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-170943ca00445486.js +0 -1
  154. mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-2ecda1f1437013f2.js +0 -1
  155. mage_ai/server/frontend_dist/_next/static/tMZjCwLa1LRYRzhFRdKNf/_buildManifest.js +0 -1
  156. /mage_ai/server/frontend_dist/_next/static/{tMZjCwLa1LRYRzhFRdKNf → OwvTROmputQCA1Z9HEGDv}/_middlewareManifest.js +0 -0
  157. /mage_ai/server/frontend_dist/_next/static/{tMZjCwLa1LRYRzhFRdKNf → OwvTROmputQCA1Z9HEGDv}/_ssgManifest.js +0 -0
  158. {mage_ai-0.9.7.dist-info → mage_ai-0.9.9.dist-info}/LICENSE +0 -0
  159. {mage_ai-0.9.7.dist-info → mage_ai-0.9.9.dist-info}/WHEEL +0 -0
  160. {mage_ai-0.9.7.dist-info → mage_ai-0.9.9.dist-info}/entry_points.txt +0 -0
  161. {mage_ai-0.9.7.dist-info → mage_ai-0.9.9.dist-info}/top_level.txt +0 -0
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4794],{59739:function(e,n,t){"use strict";var r=t(56669);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,n,t,i,o,c){if(c!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function n(){return e}e.isRequired=e;var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:o,resetWarningCache:i};return t.PropTypes=t,t}},47329:function(e,n,t){e.exports=t(59739)()},56669:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},2850:function(e,n,t){"use strict";t.d(n,{M:function(){return c},W:function(){return o}});var r=t(38626),i=t(3055),o=34*t(49125).iI,c=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);"],i.Mz)},18025:function(e,n,t){"use strict";t.d(n,{J:function(){return u},U:function(){return l}});var r=t(38626),i=t(23831),o=t(73942),c=t(49125),l=r.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*c.iI,c.cd*c.iI,c.cd*c.iI,40*c.iI,(function(e){return!e.selected&&"\n border-color: ".concat((e.theme.borders||i.Z.borders).light,";\n ")}),(function(e){return e.selected&&"\n border-color: ".concat((e.theme.interactive||i.Z.interactive).linkPrimary,";\n ")})),u=r.default.div.withConfig({displayName:"indexstyle__DateSelectionContainer",componentId:"sc-m7tlau-1"})(["border-radius:","px;padding:","px;"," "," ",""],o.n_,c.tr,(function(e){return"\n background-color: ".concat((e.theme.interactive||i.Z.interactive).defaultBackground,";\n ")}),(function(e){return e.absolute&&"\n position: absolute;\n z-index: 2;\n right: 0;\n top: ".concat(2.5*c.iI,"px;\n ")}),(function(e){return e.topPosition&&"\n top: -".concat(42*c.iI,"px;\n ")}))},2713:function(e,n,t){"use strict";var r=t(82394),i=t(44495),o=t(67971),c=t(55378),l=t(86673),u=t(19711),a=t(18025),s=t(49125),d=t(24224),p=t(28598);function f(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 h(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,r.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}n.Z=function(e){var n=e.selectedDate,t=e.selectedTime,r=e.setSelectedDate,f=e.setSelectedTime,m=e.topPosition;return(0,p.jsxs)(a.J,{absolute:!0,topPosition:m,children:[(0,p.jsx)(i.ZP,{onChange:r,value:n}),(0,p.jsx)(l.Z,{mb:2}),(0,p.jsxs)(o.Z,{alignItems:"center",children:[(0,p.jsx)(u.ZP,{default:!0,large:!0,children:"Time (UTC):"}),(0,p.jsx)(l.Z,{pr:2}),(0,p.jsx)(c.Z,{compact:!0,monospace:!0,onChange:function(e){e.preventDefault(),f((function(n){return h(h({},n),{},{hour:e.target.value})}))},paddingRight:5*s.iI,placeholder:"HH",value:null===t||void 0===t?void 0:t.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)(l.Z,{px:1,children:(0,p.jsx)(u.ZP,{bold:!0,large:!0,children:":"})}),(0,p.jsx)(c.Z,{compact:!0,monospace:!0,onChange:function(e){e.preventDefault(),f((function(n){return h(h({},n),{},{minute:e.target.value})}))},paddingRight:5*s.iI,placeholder:"MM",value:null===t||void 0===t?void 0:t.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))}))})]})]})}},19464:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return nn}});var r,i=t(77837),o=t(82394),c=t(38860),l=t.n(c),u=t(38626),a=t(4804),s=t(82684),d=t(86422),p=t(34744),f=t(60328),h=t(38341),m=t(16634),v=t(67971),g=t(86673),j=t(19711),b=t(2850),x=t(49125),y=u.default.div.withConfig({displayName:"indexstyle__FilterRowStyle",componentId:"sc-kvapsi-0"})(["padding-bottom:","px;padding-top:","px;"],x.iI/2,x.iI/2);!function(e){e.CRITICAL="CRITICAL",e.DEBUG="DEBUG",e.ERROR="ERROR",e.EXCEPTION="EXCEPTION",e.INFO="INFO",e.LOG="LOG",e.WARNING="WARNING"}(r||(r={}));var O,Z=[r.CRITICAL,r.DEBUG,r.ERROR,r.EXCEPTION,r.INFO,r.LOG,r.WARNING];!function(e){e.LAST_HOUR="Last hour",e.LAST_DAY="Last day",e.LAST_WEEK="Last week",e.LAST_30_DAYS="Last 30 days",e.CUSTOM_RANGE="Custom range"}(O||(O={}));var _=t(73942),P=t(73899);var w=(0,u.css)(["",""],(function(e){return"\n background-color: ".concat(function(e){var n=e.critical,t=e.debug,r=e.error,i=e.exception,o=e.info,c=e.log,l=e.warning;return n?P.Zl:t?P.EG:r?P.hl:i?P.hM:o?P.gN:c?P.Wd:l?P.$R:"transparent"}(e),";\n ")})),S=u.default.div.withConfig({displayName:"indexstyle__LogLevelIndicatorStyle",componentId:"sc-1e2zh7m-0"})([""," border-radius:","px;height:12px;width:5px;"],w,_.n_),k=t(90211),I=t(44162),C=t(33766),D=t(28598);function T(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 E(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?T(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):T(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var A=function(e){var n=e.blocks,t=e.query,r=(0,s.useContext)(u.ThemeContext),i=(0,s.useMemo)((function(){return t["level[]"]}),[t]),c=(0,s.useMemo)((function(){return t["block_type[]"]}),[t]),l=(0,s.useMemo)((function(){return t["block_uuid[]"]}),[t]),a=(0,s.useMemo)((function(){return t["pipeline_schedule_id[]"]}),[t]),p=(0,s.useMemo)((function(){return t["pipeline_run_id[]"]}),[t]),O=(0,s.useMemo)((function(){return t["block_run_id[]"]}),[t]);return(0,D.jsx)(b.M,{children:(0,D.jsxs)(g.Z,{p:x.cd,children:[(0,D.jsxs)(g.Z,{mb:3,children:[(0,D.jsx)(g.Z,{mb:1,children:(0,D.jsx)(j.ZP,{bold:!0,default:!0,large:!0,children:"Log level"})}),Z.map((function(e){return(0,D.jsx)(f.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return(0,C.g_)(t,{level:e},{isList:!0})},children:(0,D.jsx)(y,{children:(0,D.jsxs)(v.Z,{alignItems:"center",children:[(0,D.jsx)(h.Z,{checked:Array.isArray(i)&&(null===i||void 0===i?void 0:i.includes(String(e)))}),(0,D.jsx)(g.Z,{mr:1}),(0,D.jsx)(S,E({},(0,o.Z)({},e.toLowerCase(),!0))),(0,D.jsx)(g.Z,{mr:1}),(0,D.jsx)(j.ZP,{disableWordBreak:!0,children:(0,k.kC)(e.toLowerCase())})]})})},e)}))]}),(0,D.jsxs)(g.Z,{mb:3,children:[(0,D.jsx)(g.Z,{mb:1,children:(0,D.jsx)(j.ZP,{bold:!0,default:!0,large:!0,children:"Block type"})}),[d.tf.DATA_LOADER,d.tf.TRANSFORMER,d.tf.DATA_EXPORTER].map((function(e){return(0,D.jsx)(f.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return(0,C.g_)(t,{block_type:e},{isList:!0})},children:(0,D.jsx)(y,{children:(0,D.jsxs)(v.Z,{alignItems:"center",children:[(0,D.jsx)(h.Z,{checked:Array.isArray(c)&&(null===c||void 0===c?void 0:c.includes(String(e)))}),(0,D.jsx)(g.Z,{mr:1}),(0,D.jsx)(m.Z,{color:(0,I.qn)(e,{theme:r}).accent,size:1.5*x.iI,square:!0}),(0,D.jsx)(g.Z,{mr:1}),(0,D.jsx)(j.ZP,{disableWordBreak:!0,muted:!0,monospace:!0,children:e})]})})},e)}))]}),(0,D.jsxs)(g.Z,{mb:3,children:[(0,D.jsx)(g.Z,{mb:1,children:(0,D.jsx)(j.ZP,{bold:!0,default:!0,large:!0,children:"Block"})}),n.filter((function(e){var n=e.type;return d.tf.SCRATCHPAD!==n})).map((function(e){return(0,D.jsx)(f.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return(0,C.g_)(t,{block_uuid:e.uuid},{isList:!0,resetLimitParams:!0})},children:(0,D.jsx)(y,{children:(0,D.jsxs)(v.Z,{alignItems:"center",children:[(0,D.jsx)(h.Z,{checked:Array.isArray(l)&&(null===l||void 0===l?void 0:l.includes(String(e.uuid)))}),(0,D.jsx)(g.Z,{mr:1}),(0,D.jsx)(m.Z,{color:(0,I.qn)(e.type,{blockColor:e.color,theme:r}).accent,size:1.5*x.iI,square:!0}),(0,D.jsx)(g.Z,{mr:1}),(0,D.jsx)(j.ZP,{disableWordBreak:!0,monospace:!0,muted:!0,children:e.uuid})]})})},e.uuid)}))]}),(null===a||void 0===a?void 0:a.length)&&(0,D.jsxs)(g.Z,{mb:3,children:[(0,D.jsx)(g.Z,{mb:1,children:(0,D.jsx)(j.ZP,{bold:!0,default:!0,large:!0,children:"Trigger"})}),a.map((function(e){return(0,D.jsx)(f.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return(0,C.g_)(t,{pipeline_schedule_id:e},{isList:!0})},children:(0,D.jsx)(y,{children:(0,D.jsxs)(v.Z,{alignItems:"center",children:[(0,D.jsx)(h.Z,{checked:Array.isArray(a)&&(null===a||void 0===a?void 0:a.includes(e))}),(0,D.jsx)(g.Z,{mr:1}),(0,D.jsx)(j.ZP,{disableWordBreak:!0,monospace:!0,children:e})]})})},"pipeline-schedule-".concat(e))}))]}),(null===p||void 0===p?void 0:p.length)&&(0,D.jsxs)(g.Z,{mb:3,children:[(0,D.jsx)(g.Z,{mb:1,children:(0,D.jsx)(j.ZP,{bold:!0,default:!0,large:!0,children:"Pipeline run"})}),p.map((function(e){return(0,D.jsx)(f.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return(0,C.g_)(t,{pipeline_run_id:e},{isList:!0})},children:(0,D.jsx)(y,{children:(0,D.jsxs)(v.Z,{alignItems:"center",children:[(0,D.jsx)(h.Z,{checked:Array.isArray(p)&&(null===p||void 0===p?void 0:p.includes(e))}),(0,D.jsx)(g.Z,{mr:1}),(0,D.jsx)(j.ZP,{disableWordBreak:!0,monospace:!0,children:e})]})})},"pipeline-run-".concat(e))}))]}),(null===O||void 0===O?void 0:O.length)&&(0,D.jsxs)(g.Z,{mb:3,children:[(0,D.jsx)(g.Z,{mb:1,children:(0,D.jsx)(j.ZP,{bold:!0,default:!0,large:!0,children:"Block run"})}),O.map((function(e){return(0,D.jsx)(f.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return(0,C.g_)(t,{block_run_id:e},{isList:!0})},children:(0,D.jsx)(y,{children:(0,D.jsxs)(v.Z,{alignItems:"center",children:[(0,D.jsx)(h.Z,{checked:Array.isArray(O)&&(null===O||void 0===O?void 0:O.includes(e))}),(0,D.jsx)(g.Z,{mr:1}),(0,D.jsx)(j.ZP,{disableWordBreak:!0,monospace:!0,children:e})]})})},"block-run-".concat(e))}))]})]})})},L=t(11135),R=t(75582),M=t(32316),N=t(93461),B=t(10919),Y=t(87815),W=u.default.div.withConfig({displayName:"indexstyle__BarStyle",componentId:"sc-1r43sbu-0"})([""," height:","px;width:100%;"],w,.5*x.iI),H=u.default.div.withConfig({displayName:"indexstyle__BadgeStyle",componentId:"sc-1r43sbu-1"})([""," border-radius:","px;display:inline-block;padding:","px ","px;"],w,_.BG,.25*x.iI,.5*x.iI),U=t(10503),J=t(92083),G=t.n(J);function q(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?q(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):q(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var z=/^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}$/,K=/([0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}) (.+)/;function X(e){var n=e.content.trim().split(K),t=[],r=[];return n.forEach((function(e){var n=e.trim();z.test(e)?(r.length>=1&&t.push(r.join(" ").trim()),r=[e]):r.filter((function(e){return e})).length<=1&&n&&r.push(n)})),t.push(r.join(" ").trim()),t.map((function(n){return function(e){var n=e.content.trim().match(K),t=null===n||void 0===n?void 0:n[1],r=null===n||void 0===n?void 0:n[2],i={};return r&&(0,k.Pb)(r)&&(i=JSON.parse(r)),F(F({},e),{},{createdAt:t,data:i})}(F(F({},e),{},{content:n}))}))}function V(e){return e&&G().unix(e).utc().format("YYYY-MM-DD HH:mm:ss.SSS")}var $=t(24224);function Q(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 ee(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Q(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Q(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ne=["error","error_stack","error_stacktrace"],te={uuid:"Details"},re={uuid:"Errors"};var ie=function(e){var n=e.log,t=e.onClose,r=e.selectedTab,i=e.setSelectedTab,c=(0,s.useState)(!1),l=c[0],u=c[1],a=n.data,d=n.name,h=n.path,m=a||{},b=m.error,y=m.error_stack,O=m.error_stacktrace,Z=m.level,_=m.timestamp,P=(0,o.Z)({},Z.toLowerCase(),!0),w=(0,s.useMemo)((function(){var e=[["file name",d],["file path",h]];return Object.entries(a).forEach((function(n){var t=(0,R.Z)(n,2),r=t[0],i=t[1];ne.includes(r)||e.push([r,i])})),O&&e.push(["error",O]),(0,$.YC)(e,(function(e){var n=(0,R.Z)(e,2),t=n[0];n[1];return t}))}),[a,O,d,h]),S=(0,s.useMemo)((function(){var e=[te];return b&&e.push(re),(0,D.jsx)(M.Z,{onClickTab:i,selectedTabUUID:null===r||void 0===r?void 0:r.uuid,tabs:e})}),[b,r,i]);return(0,D.jsxs)("div",{children:[(0,D.jsx)(W,ee({},P)),(0,D.jsx)(g.Z,{p:x.cd,children:(0,D.jsxs)(v.Z,{alignItems:"center",justifyContent:"space-between",children:[(0,D.jsxs)(N.Z,{alignItems:"center",children:[(0,D.jsx)(H,ee(ee({},P),{},{children:(0,D.jsx)(j.ZP,{bold:!0,inverted:!0,monospace:!0,small:!0,children:Z})})),(0,D.jsx)(g.Z,{mr:x.cd}),(0,D.jsx)(j.ZP,{monospace:!0,children:V(_)})]}),(0,D.jsx)(f.Z,{iconOnly:!0,noBackground:!0,onClick:function(){return t()},children:(0,D.jsx)(U.x8,{size:1.5*x.iI})})]})}),(0,D.jsx)(p.Z,{medium:!0}),(0,D.jsx)(g.Z,{py:x.cd,children:S}),te.uuid===(null===r||void 0===r?void 0:r.uuid)&&(0,D.jsx)(Y.Z,{columnFlex:[null,1],columnMaxWidth:function(e){return 1===e?"100px":null},rows:null===w||void 0===w?void 0:w.map((function(e,n){var t=(0,R.Z)(e,2),r=t[0],i=t[1],o="message"===r,c="tags"===r,a=i,s=i;return c?s=a=(0,k.Pb)(i)?JSON.parse(JSON.stringify(i,null,2)):JSON.stringify(i,null,2):o&&l&&(0,k.Pb)(i)&&(s=JSON.stringify(JSON.parse(i),null,2),a=(0,D.jsx)("pre",{children:s})),[(0,D.jsx)(j.ZP,{monospace:!0,muted:!0,children:r},"".concat(r,"_").concat(n,"_key")),(0,D.jsxs)(D.Fragment,{children:[(0,D.jsxs)(j.ZP,{monospace:!0,textOverflow:!0,title:s,whiteSpaceNormal:o&&l||c,wordBreak:o&&l||c,children:[!c&&a,c&&(0,D.jsx)("pre",{children:a})]},"".concat(r,"_").concat(n,"_val")),o&&(0,D.jsx)(B.Z,{muted:!0,onClick:function(){return u((function(e){return!e}))},children:l?"Click to hide log":"Click to show full log message"})]})]})),uuid:"LogDetail"}),re.uuid===(null===r||void 0===r?void 0:r.uuid)&&(0,D.jsxs)(g.Z,{mb:5,px:x.cd,children:[(0,D.jsx)(g.Z,{mb:1,children:(0,D.jsx)(j.ZP,{bold:!0,children:"Error"})}),null===b||void 0===b?void 0:b.map((function(e){return e.split("\n").map((function(e){return e.split("\\n").map((function(e){return(0,D.jsx)(j.ZP,{default:!0,monospace:!0,preWrap:!0,small:!0,children:e},e)}))}))})),y&&(0,D.jsxs)(g.Z,{mt:3,children:[(0,D.jsx)(g.Z,{mb:1,children:(0,D.jsx)(j.ZP,{bold:!0,children:"Stack trace"})}),null===y||void 0===y?void 0:y.map((function(e){return null===e||void 0===e?void 0:e.map((function(e){return(0,D.jsx)(j.ZP,{default:!0,monospace:!0,preWrap:!0,small:!0,children:e},e)}))}))]})]})]})},oe=t(60547),ce=t(98781),le=t(41788),ue=t(54283),ae=t(21831),se=t(89565),de=t.n(se),pe=t(12691),fe=t.n(pe),he=t(72487),me=t(3055),ve=t(23831),ge=t(37391),je=u.default.div.withConfig({displayName:"indexstyle__TableContainer",componentId:"sc-16j4vp6-0"})([".table_row > div{margin:","px ","px;}div{","}"],.5*x.iI,x.iI,ge.w5),be=u.default.div.withConfig({displayName:"indexstyle__TableHeadStyle",componentId:"sc-16j4vp6-1"})(["display:flex;align-items:center;overflow:hidden;",""],(function(e){return"\n border-bottom: 1px solid ".concat((e.theme||ve.Z).borders.medium2,";\n ")})),xe=u.default.div.withConfig({displayName:"indexstyle__TableRowStyle",componentId:"sc-16j4vp6-2"})(["display:flex;align-items:center;"," "," ",""],(function(e){return"\n border-bottom: 1px solid ".concat((e.theme||ve.Z).borders.light,";\n\n &:hover {\n cursor: pointer;\n }\n ")}),(function(e){return!e.selected&&"\n &:hover {\n background: ".concat((e.theme.interactive||ve.Z.interactive).rowHoverBackground,";\n cursor: pointer;\n }\n ")}),(function(e){return e.selected&&"\n background-color: ".concat((e.theme.interactive||ve.Z.interactive).activeBorder,";\n ")})),ye=t(62976),Oe=t(24141);function Ze(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 _e(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Ze(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ze(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Pe="log_uuid";var we,Se,ke,Ie=function(e){var n=e.blocksByUUID,t=e.logs,r=e.onRowClick,i=e.pipeline,c=e.query,l=e.setSelectedLog,u=e.themeContext,a=(0,Oe.i)().height,d=(0,s.useMemo)((function(){return ce.qL.INTEGRATION===(null===i||void 0===i?void 0:i.type)}),[i.type]),p=Object.keys(n||{});if(d){var f,h,b=((null===i||void 0===i||null===(f=i.data_integration)||void 0===f||null===(h=f.catalog)||void 0===h?void 0:h.streams)||[]).map((function(e){return e.tap_stream_id})),y=new Set;p.forEach((function(e){b.forEach((function(n){return y.add("".concat(e,":").concat(n,":0"))}))})),p=Array.from(y)}var O=Math.max.apply(Math,(0,ae.Z)(p.map((function(e){return e.length})))),Z=Math.min(O*ye.r+12+8,50*x.iI),_=[{uuid:"_",width:28},{uuid:"Date",width:214},{uuid:"Block",width:Z+16},{uuid:"Message"},{uuid:"_"}],P=(0,s.useCallback)((function(e){var n,t,i,u=e.data,a=e.index,s=e.style,p=u.blocksByUUID,f=u.logs,h=u.themeContext,b=f[a],y=b.content,O=b.data,_=b.name,P=O||{},w=P.block_uuid,k=P.level,T=P.message,E=P.pipeline_uuid,A=P.timestamp,L=P.uuid,R=w||_.split(".log")[0],M=R.split(":");d&&(R=M[0],t=M[1],i=M[2]);var Y=p[R];if(Y||(Y=p[M[0]]),Y){var W=(0,I.qn)(Y.type,{blockColor:Y.color,theme:h}).accent;n=(0,D.jsx)(v.Z,{alignItems:"center",children:(0,D.jsx)(fe(),{as:"/pipelines/".concat(E,"/edit?block_uuid=").concat(R),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,D.jsxs)(B.Z,{block:!0,fullWidth:!0,sameColorAsText:!0,verticalAlignContent:!0,children:[(0,D.jsx)(m.Z,{color:W,size:1.5*x.iI,square:!0}),(0,D.jsx)(g.Z,{mr:1}),(0,D.jsxs)(j.ZP,{disableWordBreak:!0,monospace:!0,noWrapping:!0,title:w,width:Z-16,children:[R,t&&":",t&&(0,D.jsx)(j.ZP,{default:!0,inline:!0,monospace:!0,children:t}),i>=0&&":",i>=0&&(0,D.jsx)(j.ZP,{default:!0,inline:!0,monospace:!0,children:i})]})]})})})}return(0,D.jsxs)(xe,{className:"table_row",onClick:function(){var e,n,t=f[a],i=null===(e=t.data)||void 0===e?void 0:e.uuid;c.log_uuid===i&&(i=null),null!==(n=t.data)&&void 0!==n&&n.error?null===r||void 0===r||r(re):null===r||void 0===r||r(te),(0,C.u7)((0,o.Z)({},Pe,i)),l(i?t:null)},selected:(null===c||void 0===c?void 0:c.log_uuid)&&(null===c||void 0===c?void 0:c.log_uuid)===L,style:_e({},s),children:[(0,D.jsx)(N.Z,{alignItems:"center",justifyContent:"center",children:(0,D.jsx)(S,_e({},(0,o.Z)({},null===k||void 0===k?void 0:k.toLowerCase(),!0)))},"log_type"),(0,D.jsx)(N.Z,{children:(0,D.jsx)(j.ZP,{default:!0,monospace:!0,noWrapping:!0,children:V(A)},"log_timestamp")}),(0,D.jsx)(N.Z,{style:{minWidth:Z,width:Z},children:n}),(0,D.jsx)(N.Z,{style:{overflow:"auto"},children:(0,D.jsx)(j.ZP,{monospace:!0,textOverflow:!0,title:T||y,children:(0,D.jsx)(de(),{children:T||y})},"log_message")}),(0,D.jsx)(N.Z,{flex:"1",justifyContent:"flex-end",children:(0,D.jsx)(U._Q,{default:!0,size:2*x.iI})},"chevron_right_icon")]})}),[Z,d,r,c,l]);return(0,D.jsxs)(je,{children:[(0,D.jsx)(be,{children:_.map((function(e,n){return(0,D.jsx)(N.Z,{alignItems:"center",style:{height:4*x.iI,minWidth:e.width||null,width:e.width||null},children:"_"!==e.uuid&&(0,D.jsx)(j.ZP,{bold:!0,leftAligned:!0,monospace:!0,muted:!0,children:e.uuid})},"".concat(e,"_").concat(n))}))}),(0,D.jsx)(he.t7,{height:a-me.Mz-86-34-58,itemCount:t.length,itemData:{blocksByUUID:n,logs:t,pipeline:i,themeContext:u},itemSize:3.75*x.iI,width:"100%",children:P})]})},Ce=t(2713),De=t(47999),Te=t(55378),Ee=t(82944),Ae=t(66166),Le="_limit",Re="_offset",Me=20,Ne=[O.LAST_HOUR,O.LAST_DAY,O.LAST_WEEK,O.LAST_30_DAYS],Be=(we={},(0,o.Z)(we,O.LAST_HOUR,3600),(0,o.Z)(we,O.LAST_DAY,86400),(0,o.Z)(we,O.LAST_WEEK,604800),(0,o.Z)(we,O.LAST_30_DAYS,2592e3),we),Ye=t(84779),We=t(42305),He=t(7715),Ue=t(59e3);function Je(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 Ge(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Je(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Je(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}!function(e){e.START="start_timestamp",e.END="end_timestamp"}(ke||(ke={}));var qe=(Se={},(0,o.Z)(Se,Le,Me),(0,o.Z)(Se,Re,0),Se);var Fe=function(e){var n=e.allPastLogsLoaded,t=e.loadNewerLogInterval,r=e.loadPastLogInterval,i=e.selectedRange,c=e.setSelectedRange,l=(0,s.useState)(null),u=l[0],a=l[1],d=(0,s.useState)(null),p=d[0],h=d[1],m=(0,s.useState)({hour:"00",minute:"00"}),b=m[0],y=m[1],Z=(0,s.useState)(new Date),_=Z[0],P=Z[1],w=(0,s.useState)({hour:(0,We.lJ)(String((new Date).getUTCHours())),minute:(0,We.lJ)(String((new Date).getUTCMinutes()))}),S=w[0],k=w[1],I=(0,Ue.iV)(),T=(0,Ae.Z)(I);return(0,s.useEffect)((function(){if(!(0,He.Xy)(I,T)){var e=I.start_timestamp,n=I.end_timestamp;if(e){var t=(0,We.Pc)(e),r=t.date,i=t.hour,o=t.minute;h(r),y({hour:(0,We.lJ)(i),minute:(0,We.lJ)(o)});var l=Math.ceil(Date.now()/1e3)-e;Math.abs(l-Be[O.LAST_DAY])<=60&&c(O.LAST_DAY)}if(n){var u=(0,We.Pc)(n),a=u.date,s=u.hour,d=u.minute;P(a),k({hour:(0,We.lJ)(s),minute:(0,We.lJ)(d)})}}}),[I,T]),(0,D.jsx)(g.Z,{py:1,children:(0,D.jsxs)(v.Z,{alignItems:"center",children:[(0,D.jsx)(L.ZP,{blackBorder:!0,disabled:n,inline:!0,onClick:r,paddingBottom:.75*x.iI,paddingTop:.75*x.iI,uuid:"logs/load_older_logs",children:n?"All past logs within range loaded":"Load older logs"}),(0,D.jsx)(g.Z,{mr:1}),(0,D.jsx)(L.ZP,{blackBorder:!0,disabled:(null===I||void 0===I?void 0:I._offset)<=0,inline:!0,onClick:t,paddingBottom:.75*x.iI,paddingTop:.75*x.iI,uuid:"logs/load_newer_logs",children:"Load newer logs"}),(0,D.jsx)(g.Z,{mr:2}),(0,D.jsx)(Te.Z,{compact:!0,defaultColor:!0,onChange:function(e){e.preventDefault();var n=e.target.value;if(c(n),Ne.includes(n)){var t,r=(0,Ye.JI)(Be[n]);(0,C.u7)(Ge((t={},(0,o.Z)(t,ke.START,r),(0,o.Z)(t,ke.END,null),t),qe))}},paddingRight:4*x.iI,placeholder:"Select time range",value:i,children:Object.values(O).map((function(e){return(0,D.jsx)("option",{value:e,children:e},e)}))}),(0,D.jsx)(g.Z,{mr:1}),i===O.CUSTOM_RANGE&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(Ee.Z,{compact:!0,defaultColor:!0,onClick:function(){return a(0)},paddingRight:0,placeholder:"Start",value:p?(0,We.AY)(p,null===b||void 0===b?void 0:b.hour,null===b||void 0===b?void 0:b.minute):""}),(0,D.jsx)(De.Z,{onClickOutside:function(){return a(null)},open:0===u,style:{position:"relative"},children:(0,D.jsx)(Ce.Z,{selectedDate:p,selectedTime:b,setSelectedDate:h,setSelectedTime:y})}),(0,D.jsx)(g.Z,{px:1,children:(0,D.jsx)(j.ZP,{children:"to"})}),(0,D.jsx)(Ee.Z,{compact:!0,defaultColor:!0,onClick:function(){return a(1)},paddingRight:0,placeholder:"End",value:_?(0,We.AY)(_,null===S||void 0===S?void 0:S.hour,null===S||void 0===S?void 0:S.minute):""}),(0,D.jsx)(De.Z,{onClickOutside:function(){return a(null)},open:1===u,style:{position:"relative"},children:(0,D.jsx)(Ce.Z,{selectedDate:_,selectedTime:S,setSelectedDate:P,setSelectedTime:k})}),(0,D.jsx)(g.Z,{mr:1}),(0,D.jsx)(f.Z,{borderRadius:x.iI/2,onClick:function(){var e,n=(0,We.BP)(p,b.hour,b.minute),t=(0,We.BP)(_,S.hour,S.minute);(0,C.u7)(Ge((e={},(0,o.Z)(e,ke.START,(0,We.A5)(n)),(0,o.Z)(e,ke.END,(0,We.A5)(t)),e),qe))},padding:"".concat(x.iI/2,"px"),primary:!0,children:"Search"})]})]})})},ze=t(82531),Ke=t(59920);function Xe(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 Ve(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Xe(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Xe(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var $e="pipeline_run_id[]",Qe="block_run_id[]";function en(e){var n=e.pipeline,t=(0,s.useContext)(u.ThemeContext),r=(0,s.useRef)(null),i=n.uuid,c=(0,s.useState)(null),l=c[0],f=c[1],h=(0,s.useState)(null),m=h[0],v=h[1],b=(0,s.useState)(null),y=b[0],Z=b[1],_=(0,s.useState)(!1),P=_[0],w=_[1],S=(0,s.useState)(null),I=S[0],T=S[1],E=(0,s.useState)(te),R=E[0],M=E[1],N=ze.ZP.pipelines.detail(i,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,B=(0,s.useMemo)((function(){return Ve(Ve({},null===N||void 0===N?void 0:N.pipeline),{},{uuid:i})}),[N,i]),Y=(null===B||void 0===B?void 0:B.type)===ce.qL.INTEGRATION,W=(0,s.useMemo)((function(){return B.blocks||[]}),[B]),H=(0,s.useMemo)((function(){var e=(0,$.HK)(W,(function(e){return e.uuid}));if(Y){var n,t=(0,$.sE)(W,(function(e){var n=e.type;return d.tf.DATA_LOADER===n})),r=t?(0,a.Qc)(t.content):{},i=((null===r||void 0===r||null===(n=r.catalog)||void 0===n?void 0:n.streams)||[]).reduce((function(e,n){var t=n.tap_stream_id,r={};return W.forEach((function(e){var n=e.uuid,i=e.type,o="".concat(n,":").concat(t);r[o]={type:i}})),Ve(Ve({},e),r)}),{});e=Ve(Ve({},i),e)}return e}),[W,Y]),U=(0,Ue.iV)(),J=!(null!==U&&void 0!==U&&U.start_timestamp)&&!(null!==U&&void 0!==U&&U.hasOwnProperty($e)||null!==U&&void 0!==U&&U.hasOwnProperty(Qe)),G=(0,Ye.JI)(Be[O.LAST_DAY]),q=ze.ZP.logs.pipelines.list(l?i:null,(0,He.gR)(J?Ve(Ve({},l),{},{start_timestamp:G}):l,[Pe]),{refreshInterval:5e3}),F=q.data,z=q.mutate,K=!F,V=(0,s.useMemo)((function(){var e;if(null!==F&&void 0!==F&&null!==(e=F.logs)&&void 0!==e&&e[0]){var n,t=(null===(n=F.logs)||void 0===n?void 0:n[0])||{};return{blockRunLogs:t.block_run_logs,pipelineRunLogs:t.pipeline_run_logs,totalBlockRunLogCount:t.total_block_run_log_count,totalPipelineRunLogCount:t.total_pipeline_run_log_count}}return{blockRunLogs:[],pipelineRunLogs:[],totalBlockRunLogCount:0,totalPipelineRunLogCount:0}}),[F]),Q=V.blockRunLogs,ee=V.pipelineRunLogs,ne=V.totalBlockRunLogCount,re=V.totalPipelineRunLogCount,le=+(null===U||void 0===U?void 0:U._limit)>=ne&&+(null===U||void 0===U?void 0:U._limit)>=re,ae=(0,s.useMemo)((function(){return(0,$.YC)(Q.concat(ee).reduce((function(e,n){return e.concat(X(n))}),[]),(function(e){var n=e.data;return(null===n||void 0===n?void 0:n.timestamp)||0}))}),[Q,ee]),se=(0,s.useMemo)((function(){return ae.filter((function(e){var n=e.data,t=[];if(!l)return!0;if(l["level[]"]&&t.push(l["level[]"].includes(null===n||void 0===n?void 0:n.level)),l["block_type[]"]){var r,i,o=null===n||void 0===n?void 0:n.block_uuid;if(Y)o=null===n||void 0===n||null===(i=n.block_uuid)||void 0===i?void 0:i.split(":").slice(0,2).join(":");t.push(l["block_type[]"].includes(null===(r=H[o])||void 0===r?void 0:r.type))}if(l["pipeline_run_id[]"]){var c=null===n||void 0===n?void 0:n.pipeline_run_id;t.push(l["pipeline_run_id[]"].includes(String(c)))}if(l["block_run_id[]"]){var u=null===n||void 0===n?void 0:n.block_run_id;t.push(l["block_run_id[]"].includes(String(u)))}return t.every((function(e){return e}))}))}),[H,Y,ae,l]),de=se.length,pe=(0,Ae.Z)(U);(0,s.useEffect)((function(){var e;J&&(0,C.u7)((e={},(0,o.Z)(e,Le,Me),(0,o.Z)(e,Re,0),(0,o.Z)(e,"start_timestamp",G),e))}),[J]),(0,s.useEffect)((function(){(0,He.Xy)(U,pe)||f(U)}),[U,pe]);var fe=(0,Ae.Z)(m);(0,s.useEffect)((function(){var e=U.log_uuid;!e||m||fe||v(ae.find((function(n){var t=n.data;return(null===t||void 0===t?void 0:t.uuid)===e})))}),[ae,U,m,fe]),(0,s.useEffect)((function(){var e;P&&!K&&(null===r||void 0===r||null===(e=r.current)||void 0===e||e.scrollIntoView(),w(!1))}),[P,K]);var he=U._limit,me=U._offset,ve=+(he||0),ge=+(me||0),je=Math.max(ne,re),be=(0,s.useCallback)((function(){var e,n=ve,t=ge;(ne>ve||re>ve)&&(n=Math.min(je,ve+Me),t=Math.min(ge+Me,je-je%Me),(0,C.u7)(Ve(Ve({},U),{},(e={},(0,o.Z)(e,Le,n),(0,o.Z)(e,Re,t),e))))}),[je,ve,ge,U,ne,re]),xe=(0,s.useCallback)((function(){var e,n=ve,t=ge;ve>=Me&&(n=Math.max(Me,ve-Me),ve>=je&&je%Me!==0&&(n=je-je%Me),t=Math.max(0,ge-Me),(0,C.u7)(Ve(Ve({},U),{},(e={},(0,o.Z)(e,Le,n),(0,o.Z)(e,Re,t),e))))}),[je,ve,ge,U]),ye=(0,s.useMemo)((function(){return(0,D.jsx)(Ie,{blocksByUUID:H,logs:se,onRowClick:M,pipeline:B,query:l,setSelectedLog:v,themeContext:t})}),[H,se,B,l,t]);return(0,D.jsxs)(oe.Z,{after:m&&(0,D.jsx)(ie,{log:m,onClose:function(){(0,C.u7)((0,o.Z)({},Pe,null)),v(null)},selectedTab:R,setSelectedTab:M}),afterHidden:!m,afterWidth:80*x.iI,before:(0,D.jsx)(A,{blocks:W,query:l}),beforeWidth:20*x.iI,breadcrumbs:[{label:function(){return"Logs"}}],errors:I,pageName:Ke.M.PIPELINE_LOGS,pipeline:B,setErrors:T,subheader:null,title:function(e){var n=e.name;return"".concat(n," logs")},uuid:"pipeline/logs",children:[(0,D.jsx)(g.Z,{px:x.cd,py:1,children:(0,D.jsxs)(j.ZP,{children:[!K&&(0,D.jsxs)(D.Fragment,{children:[(0,k.x6)(de)," logs found",(0,D.jsx)(Fe,{allPastLogsLoaded:le,loadNewerLogInterval:xe,loadPastLogInterval:be,selectedRange:y,setSelectedRange:Z})]}),K&&"Searching..."]})}),(0,D.jsx)(p.Z,{light:!0}),K&&(0,D.jsx)(g.Z,{p:x.cd,children:(0,D.jsx)(ue.Z,{})}),!K&&se.length>=1&&ye,(0,D.jsx)(g.Z,{p:"".concat(1.5*x.iI,"px"),ref:r,children:(0,D.jsx)(L.ZP,{blackBorder:!0,inline:!0,onClick:function(){w(!0),"0"===(null===U||void 0===U?void 0:U._offset)&&(null===U||void 0===U?void 0:U._limit)===String(Me)?z(null):(0,C.u7)({_limit:Me,_offset:0})},paddingBottom:.75*x.iI,paddingTop:.75*x.iI,uuid:"logs/toolbar/load_newest",children:"Load latest logs"})})]})}en.getInitialProps=function(){var e=(0,i.Z)(l().mark((function e(n){var t;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.query.pipeline,e.abrupt("return",{pipeline:{uuid:t}});case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();var nn=(0,le.Z)(en)},42305:function(e,n,t){"use strict";t.d(n,{A5:function(){return b},AY:function(){return x},BP:function(){return j},JX:function(){return g},OC:function(){return d},Pc:function(){return y},Ro:function(){return O},Tz:function(){return v},Y_:function(){return _},d$:function(){return m},jV:function(){return Z},lJ:function(){return P},n1:function(){return f},s8:function(){return a},vk:function(){return o},yD:function(){return s}});var r,i,o,c=t(82394),l=t(92083),u=t.n(l);!function(e){e.TODAY="today",e.WEEK="week",e.MONTH="month"}(o||(o={}));var a=(r={},(0,c.Z)(r,o.TODAY,"today"),(0,c.Z)(r,o.WEEK,"last 7 days"),(0,c.Z)(r,o.MONTH,"last 30 days"),r),s=(i={},(0,c.Z)(i,o.TODAY,0),(0,c.Z)(i,o.WEEK,6),(0,c.Z)(i,o.MONTH,29),i),d="YYYY-MM-DD HH:mm:ss",p="YYYY-MM-DD HH:mm",f="YYYY-MM-DD",h="MMMM D, YYYY";function m(e,n){var t=n.dayAgo,r=n.includeSeconds,i=n.utcFormat,o=u()(e),c=p;return i&&(o=o.utc()),t&&(o=o.subtract(1,"days")),r&&(c=d),o.format(c)}function v(e){var n=m((new Date).toISOString(),{includeSeconds:!0,utcFormat:!0});return null!==e&&void 0!==e&&e.dateObj?new Date(n):n}function g(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return u().unix(e).format(null!==n&&void 0!==n&&n.withSeconds?d:p)}function j(e,n,t){return u()(e).utc().hours(+n).minutes(+t).format()}function b(e){return u()(e).unix()}function x(e,n,t,r){var i="".concat(e.toISOString().split("T")[0]," ").concat(n,":").concat(t);return r?"".concat(i,":").concat(r):i}function y(e){var n=u().unix(+e).utc();return{date:n.toDate(),hour:String(n.hour()),minute:String(n.minute())}}function O(e,n){var t=u().utc(),r=u().utc();null!==n&&void 0!==n&&n.localTime&&(t=u()().local(),r=u()().local());var i=(t=t.subtract(e,"days")).format(h),o=r.format(h);return null!==n&&void 0!==n&&n.endDateOnly?o:"".concat(i," - ").concat(o)}function Z(e,n){var t=null!==n&&void 0!==n&&n.localTime?u()().local():u().utc();if(e===o.WEEK){var r=s[o.WEEK];t=t.subtract(r,"days")}else if(e===o.MONTH){var i=s[o.MONTH];t=t.subtract(i,"days")}return null!==n&&void 0!==n&&n.isoString?t.startOf("day").toISOString():t.startOf("day").format(d)}function _(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:90,n=new Date,t=[],r=0;r<e;r++)t.unshift(n.toISOString().split("T")[0]),n.setDate(n.getDate()-1);return t}function P(e){return e.padStart(2,"0")}},84779:function(e,n,t){"use strict";t.d(n,{JI:function(){return o},uf:function(){return i}});var r=t(75582),i=function(e){var n=String(e).split("."),t=(0,r.Z)(n,2),i=t[0],o=t[1];return"".concat(i.replace(/\B(?=(\d{3})+(?!\d))/g,",")).concat(o?".".concat(o):"")};function o(e){var n=Math.floor(Date.now()/1e3);return e>0?n-e:n}},33766:function(e,n,t){"use strict";t.d(n,{O2:function(){return d},g_:function(){return f},u7:function(){return p}});var r=t(75582),i=t(82394),o=t(34376),c=t.n(o),l=t(59e3),u=t(24224);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,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var d="_offset";function p(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.preserveParams,i=n.pushHistory,o=n.replaceParams,u=(0,l.iV)(),a={};t&&t.forEach((function(e){u[e]&&(a[e]=u[e])}));var d,p=o?a:u;d=window.location.pathname;var f=i?c().push:c().replace,h=s(s({},p),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 h[t]}));var m=(0,l.uM)(h);m.length>=1&&(m="?".concat(m));var v="".concat(d.split("?")[0]).concat(m);return f(c().router.pathname,v,{shallow:!0})}function f(e,n,t){var i=t.addingMultipleValues,o=t.isList,c=t.itemsPerPage,l=t.pushHistory,a=void 0!==l&&l,f=t.resetLimitParams,h=s({},e);i?Object.entries(n).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1];if(Array.isArray(i)){var o="".concat(t,"[]");h[o]=i.map(String)}})):o?Object.entries(n).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1],o=String(i),c="".concat(t,"[]"),l=h[c];l&&Array.isArray(l)?(l=l.map(String)).includes(o)?h[c]=(0,u.Od)(l,(function(e){return e===o})):h[c]=l.concat(o):h[c]=[o]})):h=s(s({},h),n),f&&(h._limit=c||20,h[d]=0),p(h,{pushHistory:a})}},62453:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/logs",function(){return t(19464)}])}},function(e){e.O(0,[844,9902,426,4259,4495,1424,1005,7815,3654,547,4822,9774,2888,179],(function(){return n=62453,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4794],{59739:function(e,n,t){"use strict";var r=t(56669);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,n,t,i,o,c){if(c!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function n(){return e}e.isRequired=e;var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:o,resetWarningCache:i};return t.PropTypes=t,t}},47329:function(e,n,t){e.exports=t(59739)()},56669:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},2850:function(e,n,t){"use strict";t.d(n,{M:function(){return c},W:function(){return o}});var r=t(38626),i=t(3055),o=34*t(49125).iI,c=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);"],i.Mz)},18025:function(e,n,t){"use strict";t.d(n,{J:function(){return u},U:function(){return l}});var r=t(38626),i=t(23831),o=t(73942),c=t(49125),l=r.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*c.iI,c.cd*c.iI,c.cd*c.iI,40*c.iI,(function(e){return!e.selected&&"\n border-color: ".concat((e.theme.borders||i.Z.borders).light,";\n ")}),(function(e){return e.selected&&"\n border-color: ".concat((e.theme.interactive||i.Z.interactive).linkPrimary,";\n ")})),u=r.default.div.withConfig({displayName:"indexstyle__DateSelectionContainer",componentId:"sc-m7tlau-1"})(["border-radius:","px;padding:","px;"," "," ",""],o.n_,c.tr,(function(e){return"\n background-color: ".concat((e.theme.interactive||i.Z.interactive).defaultBackground,";\n ")}),(function(e){return e.absolute&&"\n position: absolute;\n z-index: 2;\n right: 0;\n top: ".concat(2.5*c.iI,"px;\n ")}),(function(e){return e.topPosition&&"\n top: -".concat(42*c.iI,"px;\n ")}))},2713:function(e,n,t){"use strict";var r=t(82394),i=t(44495),o=t(67971),c=t(55378),l=t(86673),u=t(19711),a=t(18025),s=t(49125),d=t(24224),p=t(28598);function f(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 h(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,r.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}n.Z=function(e){var n=e.selectedDate,t=e.selectedTime,r=e.setSelectedDate,f=e.setSelectedTime,m=e.topPosition;return(0,p.jsxs)(a.J,{absolute:!0,topPosition:m,children:[(0,p.jsx)(i.ZP,{onChange:r,value:n}),(0,p.jsx)(l.Z,{mb:2}),(0,p.jsxs)(o.Z,{alignItems:"center",children:[(0,p.jsx)(u.ZP,{default:!0,large:!0,children:"Time (UTC):"}),(0,p.jsx)(l.Z,{pr:2}),(0,p.jsx)(c.Z,{compact:!0,monospace:!0,onChange:function(e){e.preventDefault(),f((function(n){return h(h({},n),{},{hour:e.target.value})}))},paddingRight:5*s.iI,placeholder:"HH",value:null===t||void 0===t?void 0:t.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)(l.Z,{px:1,children:(0,p.jsx)(u.ZP,{bold:!0,large:!0,children:":"})}),(0,p.jsx)(c.Z,{compact:!0,monospace:!0,onChange:function(e){e.preventDefault(),f((function(n){return h(h({},n),{},{minute:e.target.value})}))},paddingRight:5*s.iI,placeholder:"MM",value:null===t||void 0===t?void 0:t.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))}))})]})]})}},19464:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return nn}});var r,i=t(77837),o=t(82394),c=t(38860),l=t.n(c),u=t(38626),a=t(4804),s=t(82684),d=t(86422),p=t(34744),f=t(60328),h=t(38341),m=t(16634),v=t(67971),g=t(86673),j=t(19711),b=t(2850),x=t(49125),y=u.default.div.withConfig({displayName:"indexstyle__FilterRowStyle",componentId:"sc-kvapsi-0"})(["padding-bottom:","px;padding-top:","px;"],x.iI/2,x.iI/2);!function(e){e.CRITICAL="CRITICAL",e.DEBUG="DEBUG",e.ERROR="ERROR",e.EXCEPTION="EXCEPTION",e.INFO="INFO",e.LOG="LOG",e.WARNING="WARNING"}(r||(r={}));var O,Z=[r.CRITICAL,r.DEBUG,r.ERROR,r.EXCEPTION,r.INFO,r.LOG,r.WARNING];!function(e){e.LAST_HOUR="Last hour",e.LAST_DAY="Last day",e.LAST_WEEK="Last week",e.LAST_30_DAYS="Last 30 days",e.CUSTOM_RANGE="Custom range"}(O||(O={}));var _=t(73942),P=t(73899);var w=(0,u.css)(["",""],(function(e){return"\n background-color: ".concat(function(e){var n=e.critical,t=e.debug,r=e.error,i=e.exception,o=e.info,c=e.log,l=e.warning;return n?P.Zl:t?P.EG:r?P.hl:i?P.hM:o?P.gN:c?P.Wd:l?P.$R:"transparent"}(e),";\n ")})),S=u.default.div.withConfig({displayName:"indexstyle__LogLevelIndicatorStyle",componentId:"sc-1e2zh7m-0"})([""," border-radius:","px;height:12px;width:5px;"],w,_.n_),k=t(90211),I=t(44162),C=t(33766),D=t(28598);function T(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 E(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?T(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):T(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var A=function(e){var n=e.blocks,t=e.query,r=(0,s.useContext)(u.ThemeContext),i=(0,s.useMemo)((function(){return t["level[]"]}),[t]),c=(0,s.useMemo)((function(){return t["block_type[]"]}),[t]),l=(0,s.useMemo)((function(){return t["block_uuid[]"]}),[t]),a=(0,s.useMemo)((function(){return t["pipeline_schedule_id[]"]}),[t]),p=(0,s.useMemo)((function(){return t["pipeline_run_id[]"]}),[t]),O=(0,s.useMemo)((function(){return t["block_run_id[]"]}),[t]);return(0,D.jsx)(b.M,{children:(0,D.jsxs)(g.Z,{p:x.cd,children:[(0,D.jsxs)(g.Z,{mb:3,children:[(0,D.jsx)(g.Z,{mb:1,children:(0,D.jsx)(j.ZP,{bold:!0,default:!0,large:!0,children:"Log level"})}),Z.map((function(e){return(0,D.jsx)(f.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return(0,C.g_)(t,{level:e},{isList:!0})},children:(0,D.jsx)(y,{children:(0,D.jsxs)(v.Z,{alignItems:"center",children:[(0,D.jsx)(h.Z,{checked:Array.isArray(i)&&(null===i||void 0===i?void 0:i.includes(String(e)))}),(0,D.jsx)(g.Z,{mr:1}),(0,D.jsx)(S,E({},(0,o.Z)({},e.toLowerCase(),!0))),(0,D.jsx)(g.Z,{mr:1}),(0,D.jsx)(j.ZP,{disableWordBreak:!0,children:(0,k.kC)(e.toLowerCase())})]})})},e)}))]}),(0,D.jsxs)(g.Z,{mb:3,children:[(0,D.jsx)(g.Z,{mb:1,children:(0,D.jsx)(j.ZP,{bold:!0,default:!0,large:!0,children:"Block type"})}),[d.tf.DATA_LOADER,d.tf.TRANSFORMER,d.tf.DATA_EXPORTER].map((function(e){return(0,D.jsx)(f.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return(0,C.g_)(t,{block_type:e},{isList:!0})},children:(0,D.jsx)(y,{children:(0,D.jsxs)(v.Z,{alignItems:"center",children:[(0,D.jsx)(h.Z,{checked:Array.isArray(c)&&(null===c||void 0===c?void 0:c.includes(String(e)))}),(0,D.jsx)(g.Z,{mr:1}),(0,D.jsx)(m.Z,{color:(0,I.qn)(e,{theme:r}).accent,size:1.5*x.iI,square:!0}),(0,D.jsx)(g.Z,{mr:1}),(0,D.jsx)(j.ZP,{disableWordBreak:!0,muted:!0,monospace:!0,children:e})]})})},e)}))]}),(0,D.jsxs)(g.Z,{mb:3,children:[(0,D.jsx)(g.Z,{mb:1,children:(0,D.jsx)(j.ZP,{bold:!0,default:!0,large:!0,children:"Block"})}),n.filter((function(e){var n=e.type;return d.tf.SCRATCHPAD!==n})).map((function(e){return(0,D.jsx)(f.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return(0,C.g_)(t,{block_uuid:e.uuid},{isList:!0,resetLimitParams:!0})},children:(0,D.jsx)(y,{children:(0,D.jsxs)(v.Z,{alignItems:"center",children:[(0,D.jsx)(h.Z,{checked:Array.isArray(l)&&(null===l||void 0===l?void 0:l.includes(String(e.uuid)))}),(0,D.jsx)(g.Z,{mr:1}),(0,D.jsx)(m.Z,{color:(0,I.qn)(e.type,{blockColor:e.color,theme:r}).accent,size:1.5*x.iI,square:!0}),(0,D.jsx)(g.Z,{mr:1}),(0,D.jsx)(j.ZP,{disableWordBreak:!0,monospace:!0,muted:!0,children:e.uuid})]})})},e.uuid)}))]}),(null===a||void 0===a?void 0:a.length)&&(0,D.jsxs)(g.Z,{mb:3,children:[(0,D.jsx)(g.Z,{mb:1,children:(0,D.jsx)(j.ZP,{bold:!0,default:!0,large:!0,children:"Trigger"})}),a.map((function(e){return(0,D.jsx)(f.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return(0,C.g_)(t,{pipeline_schedule_id:e},{isList:!0})},children:(0,D.jsx)(y,{children:(0,D.jsxs)(v.Z,{alignItems:"center",children:[(0,D.jsx)(h.Z,{checked:Array.isArray(a)&&(null===a||void 0===a?void 0:a.includes(e))}),(0,D.jsx)(g.Z,{mr:1}),(0,D.jsx)(j.ZP,{disableWordBreak:!0,monospace:!0,children:e})]})})},"pipeline-schedule-".concat(e))}))]}),(null===p||void 0===p?void 0:p.length)&&(0,D.jsxs)(g.Z,{mb:3,children:[(0,D.jsx)(g.Z,{mb:1,children:(0,D.jsx)(j.ZP,{bold:!0,default:!0,large:!0,children:"Pipeline run"})}),p.map((function(e){return(0,D.jsx)(f.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return(0,C.g_)(t,{pipeline_run_id:e},{isList:!0})},children:(0,D.jsx)(y,{children:(0,D.jsxs)(v.Z,{alignItems:"center",children:[(0,D.jsx)(h.Z,{checked:Array.isArray(p)&&(null===p||void 0===p?void 0:p.includes(e))}),(0,D.jsx)(g.Z,{mr:1}),(0,D.jsx)(j.ZP,{disableWordBreak:!0,monospace:!0,children:e})]})})},"pipeline-run-".concat(e))}))]}),(null===O||void 0===O?void 0:O.length)&&(0,D.jsxs)(g.Z,{mb:3,children:[(0,D.jsx)(g.Z,{mb:1,children:(0,D.jsx)(j.ZP,{bold:!0,default:!0,large:!0,children:"Block run"})}),O.map((function(e){return(0,D.jsx)(f.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return(0,C.g_)(t,{block_run_id:e},{isList:!0})},children:(0,D.jsx)(y,{children:(0,D.jsxs)(v.Z,{alignItems:"center",children:[(0,D.jsx)(h.Z,{checked:Array.isArray(O)&&(null===O||void 0===O?void 0:O.includes(e))}),(0,D.jsx)(g.Z,{mr:1}),(0,D.jsx)(j.ZP,{disableWordBreak:!0,monospace:!0,children:e})]})})},"block-run-".concat(e))}))]})]})})},L=t(11135),R=t(75582),M=t(32316),N=t(93461),B=t(10919),Y=t(87815),W=u.default.div.withConfig({displayName:"indexstyle__BarStyle",componentId:"sc-1r43sbu-0"})([""," height:","px;width:100%;"],w,.5*x.iI),H=u.default.div.withConfig({displayName:"indexstyle__BadgeStyle",componentId:"sc-1r43sbu-1"})([""," border-radius:","px;display:inline-block;padding:","px ","px;"],w,_.BG,.25*x.iI,.5*x.iI),U=t(22341),J=t(92083),G=t.n(J);function q(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?q(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):q(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var z=/^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}$/,K=/([0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}) (.+)/;function X(e){var n=e.content.trim().split(K),t=[],r=[];return n.forEach((function(e){var n=e.trim();z.test(e)?(r.length>=1&&t.push(r.join(" ").trim()),r=[e]):r.filter((function(e){return e})).length<=1&&n&&r.push(n)})),t.push(r.join(" ").trim()),t.map((function(n){return function(e){var n=e.content.trim().match(K),t=null===n||void 0===n?void 0:n[1],r=null===n||void 0===n?void 0:n[2],i={};return r&&(0,k.Pb)(r)&&(i=JSON.parse(r)),F(F({},e),{},{createdAt:t,data:i})}(F(F({},e),{},{content:n}))}))}function V(e){return e&&G().unix(e).utc().format("YYYY-MM-DD HH:mm:ss.SSS")}var $=t(24224);function Q(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 ee(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Q(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Q(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ne=["error","error_stack","error_stacktrace"],te={uuid:"Details"},re={uuid:"Errors"};var ie=function(e){var n=e.log,t=e.onClose,r=e.selectedTab,i=e.setSelectedTab,c=(0,s.useState)(!1),l=c[0],u=c[1],a=n.data,d=n.name,h=n.path,m=a||{},b=m.error,y=m.error_stack,O=m.error_stacktrace,Z=m.level,_=m.timestamp,P=(0,o.Z)({},Z.toLowerCase(),!0),w=(0,s.useMemo)((function(){var e=[["file name",d],["file path",h]];return Object.entries(a).forEach((function(n){var t=(0,R.Z)(n,2),r=t[0],i=t[1];ne.includes(r)||e.push([r,i])})),O&&e.push(["error",O]),(0,$.YC)(e,(function(e){var n=(0,R.Z)(e,2),t=n[0];n[1];return t}))}),[a,O,d,h]),S=(0,s.useMemo)((function(){var e=[te];return b&&e.push(re),(0,D.jsx)(M.Z,{onClickTab:i,selectedTabUUID:null===r||void 0===r?void 0:r.uuid,tabs:e})}),[b,r,i]);return(0,D.jsxs)("div",{children:[(0,D.jsx)(W,ee({},P)),(0,D.jsx)(g.Z,{p:x.cd,children:(0,D.jsxs)(v.Z,{alignItems:"center",justifyContent:"space-between",children:[(0,D.jsxs)(N.Z,{alignItems:"center",children:[(0,D.jsx)(H,ee(ee({},P),{},{children:(0,D.jsx)(j.ZP,{bold:!0,inverted:!0,monospace:!0,small:!0,children:Z})})),(0,D.jsx)(g.Z,{mr:x.cd}),(0,D.jsx)(j.ZP,{monospace:!0,children:V(_)})]}),(0,D.jsx)(f.Z,{iconOnly:!0,noBackground:!0,onClick:function(){return t()},children:(0,D.jsx)(U.x8,{size:1.5*x.iI})})]})}),(0,D.jsx)(p.Z,{medium:!0}),(0,D.jsx)(g.Z,{py:x.cd,children:S}),te.uuid===(null===r||void 0===r?void 0:r.uuid)&&(0,D.jsx)(Y.Z,{columnFlex:[null,1],columnMaxWidth:function(e){return 1===e?"100px":null},rows:null===w||void 0===w?void 0:w.map((function(e,n){var t=(0,R.Z)(e,2),r=t[0],i=t[1],o="message"===r,c="tags"===r,a=i,s=i;return c?s=a=(0,k.Pb)(i)?JSON.parse(JSON.stringify(i,null,2)):JSON.stringify(i,null,2):o&&l&&(0,k.Pb)(i)&&(s=JSON.stringify(JSON.parse(i),null,2),a=(0,D.jsx)("pre",{children:s})),[(0,D.jsx)(j.ZP,{monospace:!0,muted:!0,children:r},"".concat(r,"_").concat(n,"_key")),(0,D.jsxs)(D.Fragment,{children:[(0,D.jsxs)(j.ZP,{monospace:!0,textOverflow:!0,title:s,whiteSpaceNormal:o&&l||c,wordBreak:o&&l||c,children:[!c&&a,c&&(0,D.jsx)("pre",{children:a})]},"".concat(r,"_").concat(n,"_val")),o&&(0,D.jsx)(B.Z,{muted:!0,onClick:function(){return u((function(e){return!e}))},children:l?"Click to hide log":"Click to show full log message"})]})]})),uuid:"LogDetail"}),re.uuid===(null===r||void 0===r?void 0:r.uuid)&&(0,D.jsxs)(g.Z,{mb:5,px:x.cd,children:[(0,D.jsx)(g.Z,{mb:1,children:(0,D.jsx)(j.ZP,{bold:!0,children:"Error"})}),null===b||void 0===b?void 0:b.map((function(e){return e.split("\n").map((function(e){return e.split("\\n").map((function(e){return(0,D.jsx)(j.ZP,{default:!0,monospace:!0,preWrap:!0,small:!0,children:e},e)}))}))})),y&&(0,D.jsxs)(g.Z,{mt:3,children:[(0,D.jsx)(g.Z,{mb:1,children:(0,D.jsx)(j.ZP,{bold:!0,children:"Stack trace"})}),null===y||void 0===y?void 0:y.map((function(e){return null===e||void 0===e?void 0:e.map((function(e){return(0,D.jsx)(j.ZP,{default:!0,monospace:!0,preWrap:!0,small:!0,children:e},e)}))}))]})]})]})},oe=t(60547),ce=t(98781),le=t(41788),ue=t(54283),ae=t(21831),se=t(89565),de=t.n(se),pe=t(12691),fe=t.n(pe),he=t(72487),me=t(3055),ve=t(23831),ge=t(37391),je=u.default.div.withConfig({displayName:"indexstyle__TableContainer",componentId:"sc-16j4vp6-0"})([".table_row > div{margin:","px ","px;}div{","}"],.5*x.iI,x.iI,ge.w5),be=u.default.div.withConfig({displayName:"indexstyle__TableHeadStyle",componentId:"sc-16j4vp6-1"})(["display:flex;align-items:center;overflow:hidden;",""],(function(e){return"\n border-bottom: 1px solid ".concat((e.theme||ve.Z).borders.medium2,";\n ")})),xe=u.default.div.withConfig({displayName:"indexstyle__TableRowStyle",componentId:"sc-16j4vp6-2"})(["display:flex;align-items:center;"," "," ",""],(function(e){return"\n border-bottom: 1px solid ".concat((e.theme||ve.Z).borders.light,";\n\n &:hover {\n cursor: pointer;\n }\n ")}),(function(e){return!e.selected&&"\n &:hover {\n background: ".concat((e.theme.interactive||ve.Z.interactive).rowHoverBackground,";\n cursor: pointer;\n }\n ")}),(function(e){return e.selected&&"\n background-color: ".concat((e.theme.interactive||ve.Z.interactive).activeBorder,";\n ")})),ye=t(62976),Oe=t(24141);function Ze(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 _e(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Ze(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ze(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Pe="log_uuid";var we,Se,ke,Ie=function(e){var n=e.blocksByUUID,t=e.logs,r=e.onRowClick,i=e.pipeline,c=e.query,l=e.setSelectedLog,u=e.themeContext,a=(0,Oe.i)().height,d=(0,s.useMemo)((function(){return ce.qL.INTEGRATION===(null===i||void 0===i?void 0:i.type)}),[i.type]),p=Object.keys(n||{});if(d){var f,h,b=((null===i||void 0===i||null===(f=i.data_integration)||void 0===f||null===(h=f.catalog)||void 0===h?void 0:h.streams)||[]).map((function(e){return e.tap_stream_id})),y=new Set;p.forEach((function(e){b.forEach((function(n){return y.add("".concat(e,":").concat(n,":0"))}))})),p=Array.from(y)}var O=Math.max.apply(Math,(0,ae.Z)(p.map((function(e){return e.length})))),Z=Math.min(O*ye.r+12+8,50*x.iI),_=[{uuid:"_",width:28},{uuid:"Date",width:214},{uuid:"Block",width:Z+16},{uuid:"Message"},{uuid:"_"}],P=(0,s.useCallback)((function(e){var n,t,i,u=e.data,a=e.index,s=e.style,p=u.blocksByUUID,f=u.logs,h=u.themeContext,b=f[a],y=b.content,O=b.data,_=b.name,P=O||{},w=P.block_uuid,k=P.level,T=P.message,E=P.pipeline_uuid,A=P.timestamp,L=P.uuid,R=w||_.split(".log")[0],M=R.split(":");d&&(R=M[0],t=M[1],i=M[2]);var Y=p[R];if(Y||(Y=p[M[0]]),Y){var W=(0,I.qn)(Y.type,{blockColor:Y.color,theme:h}).accent;n=(0,D.jsx)(v.Z,{alignItems:"center",children:(0,D.jsx)(fe(),{as:"/pipelines/".concat(E,"/edit?block_uuid=").concat(R),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,D.jsxs)(B.Z,{block:!0,fullWidth:!0,sameColorAsText:!0,verticalAlignContent:!0,children:[(0,D.jsx)(m.Z,{color:W,size:1.5*x.iI,square:!0}),(0,D.jsx)(g.Z,{mr:1}),(0,D.jsxs)(j.ZP,{disableWordBreak:!0,monospace:!0,noWrapping:!0,title:w,width:Z-16,children:[R,t&&":",t&&(0,D.jsx)(j.ZP,{default:!0,inline:!0,monospace:!0,children:t}),i>=0&&":",i>=0&&(0,D.jsx)(j.ZP,{default:!0,inline:!0,monospace:!0,children:i})]})]})})})}return(0,D.jsxs)(xe,{className:"table_row",onClick:function(){var e,n,t=f[a],i=null===(e=t.data)||void 0===e?void 0:e.uuid;c.log_uuid===i&&(i=null),null!==(n=t.data)&&void 0!==n&&n.error?null===r||void 0===r||r(re):null===r||void 0===r||r(te),(0,C.u7)((0,o.Z)({},Pe,i)),l(i?t:null)},selected:(null===c||void 0===c?void 0:c.log_uuid)&&(null===c||void 0===c?void 0:c.log_uuid)===L,style:_e({},s),children:[(0,D.jsx)(N.Z,{alignItems:"center",justifyContent:"center",children:(0,D.jsx)(S,_e({},(0,o.Z)({},null===k||void 0===k?void 0:k.toLowerCase(),!0)))},"log_type"),(0,D.jsx)(N.Z,{children:(0,D.jsx)(j.ZP,{default:!0,monospace:!0,noWrapping:!0,children:V(A)},"log_timestamp")}),(0,D.jsx)(N.Z,{style:{minWidth:Z,width:Z},children:n}),(0,D.jsx)(N.Z,{style:{overflow:"auto"},children:(0,D.jsx)(j.ZP,{monospace:!0,textOverflow:!0,title:T||y,children:(0,D.jsx)(de(),{children:T||y})},"log_message")}),(0,D.jsx)(N.Z,{flex:"1",justifyContent:"flex-end",children:(0,D.jsx)(U._Q,{default:!0,size:2*x.iI})},"chevron_right_icon")]})}),[Z,d,r,c,l]);return(0,D.jsxs)(je,{children:[(0,D.jsx)(be,{children:_.map((function(e,n){return(0,D.jsx)(N.Z,{alignItems:"center",style:{height:4*x.iI,minWidth:e.width||null,width:e.width||null},children:"_"!==e.uuid&&(0,D.jsx)(j.ZP,{bold:!0,leftAligned:!0,monospace:!0,muted:!0,children:e.uuid})},"".concat(e,"_").concat(n))}))}),(0,D.jsx)(he.t7,{height:a-me.Mz-86-34-58,itemCount:t.length,itemData:{blocksByUUID:n,logs:t,pipeline:i,themeContext:u},itemSize:3.75*x.iI,width:"100%",children:P})]})},Ce=t(2713),De=t(47999),Te=t(55378),Ee=t(82944),Ae=t(66166),Le="_limit",Re="_offset",Me=20,Ne=[O.LAST_HOUR,O.LAST_DAY,O.LAST_WEEK,O.LAST_30_DAYS],Be=(we={},(0,o.Z)(we,O.LAST_HOUR,3600),(0,o.Z)(we,O.LAST_DAY,86400),(0,o.Z)(we,O.LAST_WEEK,604800),(0,o.Z)(we,O.LAST_30_DAYS,2592e3),we),Ye=t(84779),We=t(42305),He=t(7715),Ue=t(59e3);function Je(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 Ge(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Je(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Je(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}!function(e){e.START="start_timestamp",e.END="end_timestamp"}(ke||(ke={}));var qe=(Se={},(0,o.Z)(Se,Le,Me),(0,o.Z)(Se,Re,0),Se);var Fe=function(e){var n=e.allPastLogsLoaded,t=e.loadNewerLogInterval,r=e.loadPastLogInterval,i=e.selectedRange,c=e.setSelectedRange,l=(0,s.useState)(null),u=l[0],a=l[1],d=(0,s.useState)(null),p=d[0],h=d[1],m=(0,s.useState)({hour:"00",minute:"00"}),b=m[0],y=m[1],Z=(0,s.useState)(new Date),_=Z[0],P=Z[1],w=(0,s.useState)({hour:(0,We.lJ)(String((new Date).getUTCHours())),minute:(0,We.lJ)(String((new Date).getUTCMinutes()))}),S=w[0],k=w[1],I=(0,Ue.iV)(),T=(0,Ae.Z)(I);return(0,s.useEffect)((function(){if(!(0,He.Xy)(I,T)){var e=I.start_timestamp,n=I.end_timestamp;if(e){var t=(0,We.Pc)(e),r=t.date,i=t.hour,o=t.minute;h(r),y({hour:(0,We.lJ)(i),minute:(0,We.lJ)(o)});var l=Math.ceil(Date.now()/1e3)-e;Math.abs(l-Be[O.LAST_DAY])<=60&&c(O.LAST_DAY)}if(n){var u=(0,We.Pc)(n),a=u.date,s=u.hour,d=u.minute;P(a),k({hour:(0,We.lJ)(s),minute:(0,We.lJ)(d)})}}}),[I,T]),(0,D.jsx)(g.Z,{py:1,children:(0,D.jsxs)(v.Z,{alignItems:"center",children:[(0,D.jsx)(L.ZP,{blackBorder:!0,disabled:n,inline:!0,onClick:r,paddingBottom:.75*x.iI,paddingTop:.75*x.iI,uuid:"logs/load_older_logs",children:n?"All past logs within range loaded":"Load older logs"}),(0,D.jsx)(g.Z,{mr:1}),(0,D.jsx)(L.ZP,{blackBorder:!0,disabled:(null===I||void 0===I?void 0:I._offset)<=0,inline:!0,onClick:t,paddingBottom:.75*x.iI,paddingTop:.75*x.iI,uuid:"logs/load_newer_logs",children:"Load newer logs"}),(0,D.jsx)(g.Z,{mr:2}),(0,D.jsx)(Te.Z,{compact:!0,defaultColor:!0,onChange:function(e){e.preventDefault();var n=e.target.value;if(c(n),Ne.includes(n)){var t,r=(0,Ye.JI)(Be[n]);(0,C.u7)(Ge((t={},(0,o.Z)(t,ke.START,r),(0,o.Z)(t,ke.END,null),t),qe))}},paddingRight:4*x.iI,placeholder:"Select time range",value:i,children:Object.values(O).map((function(e){return(0,D.jsx)("option",{value:e,children:e},e)}))}),(0,D.jsx)(g.Z,{mr:1}),i===O.CUSTOM_RANGE&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(Ee.Z,{compact:!0,defaultColor:!0,onClick:function(){return a(0)},paddingRight:0,placeholder:"Start",value:p?(0,We.AY)(p,null===b||void 0===b?void 0:b.hour,null===b||void 0===b?void 0:b.minute):""}),(0,D.jsx)(De.Z,{onClickOutside:function(){return a(null)},open:0===u,style:{position:"relative"},children:(0,D.jsx)(Ce.Z,{selectedDate:p,selectedTime:b,setSelectedDate:h,setSelectedTime:y})}),(0,D.jsx)(g.Z,{px:1,children:(0,D.jsx)(j.ZP,{children:"to"})}),(0,D.jsx)(Ee.Z,{compact:!0,defaultColor:!0,onClick:function(){return a(1)},paddingRight:0,placeholder:"End",value:_?(0,We.AY)(_,null===S||void 0===S?void 0:S.hour,null===S||void 0===S?void 0:S.minute):""}),(0,D.jsx)(De.Z,{onClickOutside:function(){return a(null)},open:1===u,style:{position:"relative"},children:(0,D.jsx)(Ce.Z,{selectedDate:_,selectedTime:S,setSelectedDate:P,setSelectedTime:k})}),(0,D.jsx)(g.Z,{mr:1}),(0,D.jsx)(f.Z,{borderRadius:x.iI/2,onClick:function(){var e,n=(0,We.BP)(p,b.hour,b.minute),t=(0,We.BP)(_,S.hour,S.minute);(0,C.u7)(Ge((e={},(0,o.Z)(e,ke.START,(0,We.A5)(n)),(0,o.Z)(e,ke.END,(0,We.A5)(t)),e),qe))},padding:"".concat(x.iI/2,"px"),primary:!0,children:"Search"})]})]})})},ze=t(82531),Ke=t(59920);function Xe(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 Ve(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Xe(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Xe(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var $e="pipeline_run_id[]",Qe="block_run_id[]";function en(e){var n=e.pipeline,t=(0,s.useContext)(u.ThemeContext),r=(0,s.useRef)(null),i=n.uuid,c=(0,s.useState)(null),l=c[0],f=c[1],h=(0,s.useState)(null),m=h[0],v=h[1],b=(0,s.useState)(null),y=b[0],Z=b[1],_=(0,s.useState)(!1),P=_[0],w=_[1],S=(0,s.useState)(null),I=S[0],T=S[1],E=(0,s.useState)(te),R=E[0],M=E[1],N=ze.ZP.pipelines.detail(i,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,B=(0,s.useMemo)((function(){return Ve(Ve({},null===N||void 0===N?void 0:N.pipeline),{},{uuid:i})}),[N,i]),Y=(null===B||void 0===B?void 0:B.type)===ce.qL.INTEGRATION,W=(0,s.useMemo)((function(){return B.blocks||[]}),[B]),H=(0,s.useMemo)((function(){var e=(0,$.HK)(W,(function(e){return e.uuid}));if(Y){var n,t=(0,$.sE)(W,(function(e){var n=e.type;return d.tf.DATA_LOADER===n})),r=t?(0,a.Qc)(t.content):{},i=((null===r||void 0===r||null===(n=r.catalog)||void 0===n?void 0:n.streams)||[]).reduce((function(e,n){var t=n.tap_stream_id,r={};return W.forEach((function(e){var n=e.uuid,i=e.type,o="".concat(n,":").concat(t);r[o]={type:i}})),Ve(Ve({},e),r)}),{});e=Ve(Ve({},i),e)}return e}),[W,Y]),U=(0,Ue.iV)(),J=!(null!==U&&void 0!==U&&U.start_timestamp)&&!(null!==U&&void 0!==U&&U.hasOwnProperty($e)||null!==U&&void 0!==U&&U.hasOwnProperty(Qe)),G=(0,Ye.JI)(Be[O.LAST_DAY]),q=ze.ZP.logs.pipelines.list(l?i:null,(0,He.gR)(J?Ve(Ve({},l),{},{start_timestamp:G}):l,[Pe]),{refreshInterval:5e3}),F=q.data,z=q.mutate,K=!F,V=(0,s.useMemo)((function(){var e;if(null!==F&&void 0!==F&&null!==(e=F.logs)&&void 0!==e&&e[0]){var n,t=(null===(n=F.logs)||void 0===n?void 0:n[0])||{};return{blockRunLogs:t.block_run_logs,pipelineRunLogs:t.pipeline_run_logs,totalBlockRunLogCount:t.total_block_run_log_count,totalPipelineRunLogCount:t.total_pipeline_run_log_count}}return{blockRunLogs:[],pipelineRunLogs:[],totalBlockRunLogCount:0,totalPipelineRunLogCount:0}}),[F]),Q=V.blockRunLogs,ee=V.pipelineRunLogs,ne=V.totalBlockRunLogCount,re=V.totalPipelineRunLogCount,le=+(null===U||void 0===U?void 0:U._limit)>=ne&&+(null===U||void 0===U?void 0:U._limit)>=re,ae=(0,s.useMemo)((function(){return(0,$.YC)(Q.concat(ee).reduce((function(e,n){return e.concat(X(n))}),[]),(function(e){var n=e.data;return(null===n||void 0===n?void 0:n.timestamp)||0}))}),[Q,ee]),se=(0,s.useMemo)((function(){return ae.filter((function(e){var n=e.data,t=[];if(!l)return!0;if(l["level[]"]&&t.push(l["level[]"].includes(null===n||void 0===n?void 0:n.level)),l["block_type[]"]){var r,i,o=null===n||void 0===n?void 0:n.block_uuid;if(Y)o=null===n||void 0===n||null===(i=n.block_uuid)||void 0===i?void 0:i.split(":").slice(0,2).join(":");t.push(l["block_type[]"].includes(null===(r=H[o])||void 0===r?void 0:r.type))}if(l["pipeline_run_id[]"]){var c=null===n||void 0===n?void 0:n.pipeline_run_id;t.push(l["pipeline_run_id[]"].includes(String(c)))}if(l["block_run_id[]"]){var u=null===n||void 0===n?void 0:n.block_run_id;t.push(l["block_run_id[]"].includes(String(u)))}return t.every((function(e){return e}))}))}),[H,Y,ae,l]),de=se.length,pe=(0,Ae.Z)(U);(0,s.useEffect)((function(){var e;J&&(0,C.u7)((e={},(0,o.Z)(e,Le,Me),(0,o.Z)(e,Re,0),(0,o.Z)(e,"start_timestamp",G),e))}),[J]),(0,s.useEffect)((function(){(0,He.Xy)(U,pe)||f(U)}),[U,pe]);var fe=(0,Ae.Z)(m);(0,s.useEffect)((function(){var e=U.log_uuid;!e||m||fe||v(ae.find((function(n){var t=n.data;return(null===t||void 0===t?void 0:t.uuid)===e})))}),[ae,U,m,fe]),(0,s.useEffect)((function(){var e;P&&!K&&(null===r||void 0===r||null===(e=r.current)||void 0===e||e.scrollIntoView(),w(!1))}),[P,K]);var he=U._limit,me=U._offset,ve=+(he||0),ge=+(me||0),je=Math.max(ne,re),be=(0,s.useCallback)((function(){var e,n=ve,t=ge;(ne>ve||re>ve)&&(n=Math.min(je,ve+Me),t=Math.min(ge+Me,je-je%Me),(0,C.u7)(Ve(Ve({},U),{},(e={},(0,o.Z)(e,Le,n),(0,o.Z)(e,Re,t),e))))}),[je,ve,ge,U,ne,re]),xe=(0,s.useCallback)((function(){var e,n=ve,t=ge;ve>=Me&&(n=Math.max(Me,ve-Me),ve>=je&&je%Me!==0&&(n=je-je%Me),t=Math.max(0,ge-Me),(0,C.u7)(Ve(Ve({},U),{},(e={},(0,o.Z)(e,Le,n),(0,o.Z)(e,Re,t),e))))}),[je,ve,ge,U]),ye=(0,s.useMemo)((function(){return(0,D.jsx)(Ie,{blocksByUUID:H,logs:se,onRowClick:M,pipeline:B,query:l,setSelectedLog:v,themeContext:t})}),[H,se,B,l,t]);return(0,D.jsxs)(oe.Z,{after:m&&(0,D.jsx)(ie,{log:m,onClose:function(){(0,C.u7)((0,o.Z)({},Pe,null)),v(null)},selectedTab:R,setSelectedTab:M}),afterHidden:!m,afterWidth:80*x.iI,before:(0,D.jsx)(A,{blocks:W,query:l}),beforeWidth:20*x.iI,breadcrumbs:[{label:function(){return"Logs"}}],errors:I,pageName:Ke.M.PIPELINE_LOGS,pipeline:B,setErrors:T,subheader:null,title:function(e){var n=e.name;return"".concat(n," logs")},uuid:"pipeline/logs",children:[(0,D.jsx)(g.Z,{px:x.cd,py:1,children:(0,D.jsxs)(j.ZP,{children:[!K&&(0,D.jsxs)(D.Fragment,{children:[(0,k.x6)(de)," logs found",(0,D.jsx)(Fe,{allPastLogsLoaded:le,loadNewerLogInterval:xe,loadPastLogInterval:be,selectedRange:y,setSelectedRange:Z})]}),K&&"Searching..."]})}),(0,D.jsx)(p.Z,{light:!0}),K&&(0,D.jsx)(g.Z,{p:x.cd,children:(0,D.jsx)(ue.Z,{})}),!K&&se.length>=1&&ye,(0,D.jsx)(g.Z,{p:"".concat(1.5*x.iI,"px"),ref:r,children:(0,D.jsx)(L.ZP,{blackBorder:!0,inline:!0,onClick:function(){w(!0),"0"===(null===U||void 0===U?void 0:U._offset)&&(null===U||void 0===U?void 0:U._limit)===String(Me)?z(null):(0,C.u7)({_limit:Me,_offset:0})},paddingBottom:.75*x.iI,paddingTop:.75*x.iI,uuid:"logs/toolbar/load_newest",children:"Load latest logs"})})]})}en.getInitialProps=function(){var e=(0,i.Z)(l().mark((function e(n){var t;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.query.pipeline,e.abrupt("return",{pipeline:{uuid:t}});case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();var nn=(0,le.Z)(en)},42305:function(e,n,t){"use strict";t.d(n,{A5:function(){return b},AY:function(){return x},BP:function(){return j},JX:function(){return g},OC:function(){return d},Pc:function(){return y},Ro:function(){return O},Tz:function(){return v},Y_:function(){return _},d$:function(){return m},jV:function(){return Z},lJ:function(){return P},n1:function(){return f},s8:function(){return a},vk:function(){return o},yD:function(){return s}});var r,i,o,c=t(82394),l=t(92083),u=t.n(l);!function(e){e.TODAY="today",e.WEEK="week",e.MONTH="month"}(o||(o={}));var a=(r={},(0,c.Z)(r,o.TODAY,"today"),(0,c.Z)(r,o.WEEK,"last 7 days"),(0,c.Z)(r,o.MONTH,"last 30 days"),r),s=(i={},(0,c.Z)(i,o.TODAY,0),(0,c.Z)(i,o.WEEK,6),(0,c.Z)(i,o.MONTH,29),i),d="YYYY-MM-DD HH:mm:ss",p="YYYY-MM-DD HH:mm",f="YYYY-MM-DD",h="MMMM D, YYYY";function m(e,n){var t=n.dayAgo,r=n.includeSeconds,i=n.utcFormat,o=u()(e),c=p;return i&&(o=o.utc()),t&&(o=o.subtract(1,"days")),r&&(c=d),o.format(c)}function v(e){var n=m((new Date).toISOString(),{includeSeconds:!0,utcFormat:!0});return null!==e&&void 0!==e&&e.dateObj?new Date(n):n}function g(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return u().unix(e).format(null!==n&&void 0!==n&&n.withSeconds?d:p)}function j(e,n,t){return u()(e).utc().hours(+n).minutes(+t).format()}function b(e){return u()(e).unix()}function x(e,n,t,r){var i="".concat(e.toISOString().split("T")[0]," ").concat(n,":").concat(t);return r?"".concat(i,":").concat(r):i}function y(e){var n=u().unix(+e).utc();return{date:n.toDate(),hour:String(n.hour()),minute:String(n.minute())}}function O(e,n){var t=u().utc(),r=u().utc();null!==n&&void 0!==n&&n.localTime&&(t=u()().local(),r=u()().local());var i=(t=t.subtract(e,"days")).format(h),o=r.format(h);return null!==n&&void 0!==n&&n.endDateOnly?o:"".concat(i," - ").concat(o)}function Z(e,n){var t=null!==n&&void 0!==n&&n.localTime?u()().local():u().utc();if(e===o.WEEK){var r=s[o.WEEK];t=t.subtract(r,"days")}else if(e===o.MONTH){var i=s[o.MONTH];t=t.subtract(i,"days")}return null!==n&&void 0!==n&&n.isoString?t.startOf("day").toISOString():t.startOf("day").format(d)}function _(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:90,n=new Date,t=[],r=0;r<e;r++)t.unshift(n.toISOString().split("T")[0]),n.setDate(n.getDate()-1);return t}function P(e){return e.padStart(2,"0")}},84779:function(e,n,t){"use strict";t.d(n,{JI:function(){return o},uf:function(){return i}});var r=t(75582),i=function(e){var n=String(e).split("."),t=(0,r.Z)(n,2),i=t[0],o=t[1];return"".concat(i.replace(/\B(?=(\d{3})+(?!\d))/g,",")).concat(o?".".concat(o):"")};function o(e){var n=Math.floor(Date.now()/1e3);return e>0?n-e:n}},33766:function(e,n,t){"use strict";t.d(n,{O2:function(){return d},g_:function(){return f},u7:function(){return p}});var r=t(75582),i=t(82394),o=t(34376),c=t.n(o),l=t(59e3),u=t(24224);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,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var d="_offset";function p(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.preserveParams,i=n.pushHistory,o=n.replaceParams,u=(0,l.iV)(),a={};t&&t.forEach((function(e){u[e]&&(a[e]=u[e])}));var d,p=o?a:u;d=window.location.pathname;var f=i?c().push:c().replace,h=s(s({},p),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 h[t]}));var m=(0,l.uM)(h);m.length>=1&&(m="?".concat(m));var v="".concat(d.split("?")[0]).concat(m);return f(c().router.pathname,v,{shallow:!0})}function f(e,n,t){var i=t.addingMultipleValues,o=t.isList,c=t.itemsPerPage,l=t.pushHistory,a=void 0!==l&&l,f=t.resetLimitParams,h=s({},e);i?Object.entries(n).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1];if(Array.isArray(i)){var o="".concat(t,"[]");h[o]=i.map(String)}})):o?Object.entries(n).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1],o=String(i),c="".concat(t,"[]"),l=h[c];l&&Array.isArray(l)?(l=l.map(String)).includes(o)?h[c]=(0,u.Od)(l,(function(e){return e===o})):h[c]=l.concat(o):h[c]=[o]})):h=s(s({},h),n),f&&(h._limit=c||20,h[d]=0),p(h,{pushHistory:a})}},62453:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/logs",function(){return t(19464)}])}},function(e){e.O(0,[844,9902,426,4259,4495,1424,1005,7815,3654,547,4822,9774,2888,179],(function(){return n=62453,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7713],{87465:function(n,e,t){"use strict";t.d(e,{Z:function(){return g}});t(82684);var i=t(34376),r=t(87372),o=t(60547),u=t(86673),c=t(19711),l=t(2850),a=t(38626),s=t(23831),d=t(49125),f=a.default.div.withConfig({displayName:"indexstyle__LinkStyle",componentId:"sc-1in9sst-0"})(["padding:","px ","px;"," ",""],d.iI,d.tr,(function(n){return n.selected&&"\n background-color: ".concat((n.theme.interactive||s.Z.interactive).checked,";\n ")}),(function(n){return!n.selected&&"\n cursor: pointer;\n "})),p=t(92953),h=t(59920),m=t(28598);var g=function(n){var e=n.breadcrumbs,t=n.children,a=n.errors,s=n.monitorType,g=n.pipeline,v=n.setErrors,y=n.subheader,b=(0,i.useRouter)();return(0,m.jsx)(o.Z,{before:(0,m.jsxs)(l.M,{children:[(0,m.jsx)(u.Z,{p:d.cd,children:(0,m.jsx)(r.Z,{level:4,muted:!0,children:"Insights"})}),(0,m.jsx)(f,{onClick:function(n){n.preventDefault(),b.push("/pipelines/[pipeline]/monitors","/pipelines/".concat(null===g||void 0===g?void 0:g.uuid,"/monitors"))},selected:p.a_.PIPELINE_RUNS==s,children:(0,m.jsx)(c.ZP,{children:"Pipeline runs"})}),(0,m.jsx)(f,{onClick:function(n){n.preventDefault(),b.push("/pipelines/[pipeline]/monitors/block-runs","/pipelines/".concat(null===g||void 0===g?void 0:g.uuid,"/monitors/block-runs"))},selected:p.a_.BLOCK_RUNS==s,children:(0,m.jsx)(c.ZP,{children:"Block runs"})}),(0,m.jsx)(f,{onClick:function(n){n.preventDefault(),b.push("/pipelines/[pipeline]/monitors/block-runtime","/pipelines/".concat(null===g||void 0===g?void 0:g.uuid,"/monitors/block-runtime"))},selected:p.a_.BLOCK_RUNTIME==s,children:(0,m.jsx)(c.ZP,{children:"Block runtime"})})]}),breadcrumbs:e,errors:a,pageName:h.M.MONITOR,pipeline:g,setErrors:v,subheader:y,uuid:"pipeline/monitor",children:t})}},2850:function(n,e,t){"use strict";t.d(e,{M:function(){return u},W:function(){return o}});var i=t(38626),r=t(3055),o=34*t(49125).iI,u=i.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);"],r.Mz)},66050:function(n,e,t){"use strict";var i;t.d(e,{V:function(){return i}}),function(n){n.CANCELLED="cancelled",n.COMPLETED="completed",n.FAILED="failed",n.INITIAL="initial",n.RUNNING="running",n.UPSTREAM_FAILED="upstream_failed",n.CONDITION_FAILED="condition_failed"}(i||(i={}))},93348:function(n,e,t){"use strict";t.d(e,{TR:function(){return d},U5:function(){return l},Xm:function(){return o},Z4:function(){return s},fq:function(){return c},kJ:function(){return a}});var i,r,o,u=t(82394);!function(n){n.API="api",n.EVENT="event",n.TIME="time"}(o||(o={}));var c,l,a,s=(i={},(0,u.Z)(i,o.API,(function(){return"API"})),(0,u.Z)(i,o.EVENT,(function(){return"event"})),(0,u.Z)(i,o.TIME,(function(){return"schedule"})),i);!function(n){n.ACTIVE="active",n.INACTIVE="inactive"}(c||(c={})),function(n){n.ONCE="@once",n.HOURLY="@hourly",n.DAILY="@daily",n.WEEKLY="@weekly",n.MONTHLY="@monthly"}(l||(l={})),function(n){n.CREATED_AT="created_at",n.NAME="name",n.PIPELINE="pipeline_uuid",n.STATUS="status",n.TYPE="schedule_type"}(a||(a={}));var d=(r={},(0,u.Z)(r,a.CREATED_AT,"Created at"),(0,u.Z)(r,a.NAME,"Name"),(0,u.Z)(r,a.PIPELINE,"Pipeline"),(0,u.Z)(r,a.STATUS,"Status"),(0,u.Z)(r,a.TYPE,"Type"),r)},98781:function(n,e,t){"use strict";t.d(e,{$1:function(){return s},G7:function(){return f},LM:function(){return p},Mj:function(){return h},QK:function(){return a},a_:function(){return m},qL:function(){return u},r0:function(){return d}});var i,r,o,u,c=t(82394),l=t(10503);!function(n){n.INTEGRATION="integration",n.PYTHON="python",n.PYSPARK="pyspark",n.STREAMING="streaming"}(u||(u={}));var a,s,d,f=(i={},(0,c.Z)(i,u.INTEGRATION,"Integration"),(0,c.Z)(i,u.PYTHON,"Standard"),(0,c.Z)(i,u.PYSPARK,"PySpark"),(0,c.Z)(i,u.STREAMING,"Streaming"),i),p="all",h=(u.PYTHON,u.INTEGRATION,u.STREAMING,r={},(0,c.Z)(r,p,l.ie),(0,c.Z)(r,u.INTEGRATION,l.YC),(0,c.Z)(r,u.PYTHON,l.El),(0,c.Z)(r,u.STREAMING,l.dB),r);!function(n){n.ACTIVE="active",n.INACTIVE="inactive",n.NO_SCHEDULES="no_schedules",n.RETRY="retry"}(a||(a={})),function(n){n.GROUP="group_by",n.STATUS="status[]",n.TAG="tag[]",n.TYPE="type[]"}(s||(s={})),function(n){n.STATUS="status",n.TAG="tag",n.TYPE="type"}(d||(d={}));var m=(o={},(0,c.Z)(o,u.PYTHON,"python3"),(0,c.Z)(o,u.PYSPARK,"pysparkkernel"),o)},87372:function(n,e,t){"use strict";var i,r,o,u,c,l,a,s,d=t(82394),f=t(26304),p=t(26653),h=t(38626),m=t(33591),g=t(23831),v=t(2005),y=t(31012),b=t(19711),w=t(49125),N=t(86673),x=t(28598),I=["children","condensed","inline","level","marketing","spacingBelow"];function _(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,i)}return t}function j(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?_(Object(t),!0).forEach((function(e){(0,d.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):_(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var Z=(0,h.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],b.IH,(function(n){return n.color&&"\n color: ".concat(n.color,"\n ")}),(function(n){return n.yellow&&"\n color: ".concat((n.theme.accent||g.Z.accent).yellow,";\n ")}),(function(n){return n.center&&"\n text-align: center;\n "}),(function(n){return!n.monospace&&0===Number(n.weightStyle)&&"\n font-family: ".concat(v.iI,";\n ")}),(function(n){return!n.monospace&&1===Number(n.weightStyle)&&"\n font-family: ".concat(v.LX,";\n ")}),(function(n){return!n.monospace&&2===Number(n.weightStyle)&&"\n font-family: ".concat(v.LX,";\n ")}),(function(n){return!n.monospace&&3===Number(n.weightStyle)&&"\n font-family: ".concat(v.ry,";\n ")}),(function(n){return!n.monospace&&4===Number(n.weightStyle)&&"\n font-family: ".concat(v.YC,";\n ")}),(function(n){return!n.monospace&&5===Number(n.weightStyle)&&"\n font-family: ".concat(v.nF,";\n ")}),(function(n){return!n.monospace&&(6===Number(n.weightStyle)||n.bold)&&"\n font-family: ".concat(v.nF,";\n ")}),(function(n){return!n.monospace&&7===Number(n.weightStyle)&&"\n font-family: ".concat(v.nF,";\n ")}),(function(n){return!n.monospace&&8===Number(n.weightStyle)&&"\n font-family: ".concat(v.nF,";\n ")}),(function(n){return n.lineHeightAuto&&"\n line-height: normal !important;\n "})),E=h.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(n){return"\n color: ".concat((n.theme.content||g.Z.content).active,";\n ")})),O=h.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],Z,m.media.md(i||(i=(0,p.Z)(["\n ","\n "])),y.aQ),m.media.lg(r||(r=(0,p.Z)(["\n ","\n "])),y.aQ),m.media.xl(o||(o=(0,p.Z)(["\n ","\n "])),y.aQ)),P=h.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],Z,y.MJ),T=h.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],Z,m.media.xs(u||(u=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),m.media.sm(c||(c=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),m.media.md(l||(l=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),m.media.lg(a||(a=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),m.media.xl(s||(s=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI)),S=h.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],Z,y.BL),k=h.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],Z),C=h.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],Z),A=h.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],Z),M=h.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],Z,(function(n){return 1===n.level&&"\n ".concat(y.MJ,"\n ")}),(function(n){return 2===n.level&&"\n ".concat(y.BL,"\n ")}),(function(n){return 3===n.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(n){return 4===n.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),L=function(n){var e,t=n.children,i=n.condensed,r=n.inline,o=n.level,u=n.marketing,c=n.spacingBelow,l=(0,f.Z)(n,I);r?e=M:0===Number(o)?e=O:1===Number(o)?e=u?T:P:2===Number(o)?e=S:3===Number(o)?e=k:4===Number(o)?e=C:5===Number(o)&&(e=A);var a=(0,x.jsxs)(e,j(j({},l),{},{level:o,children:[c&&(0,x.jsx)(N.Z,{mb:i?2:3,children:t}),!c&&t]}));return r?a:(0,x.jsx)(E,{children:a})};L.defaultProps={level:3,weightStyle:6},e.Z=L},67400:function(n,e,t){"use strict";t.r(e);var i=t(77837),r=t(75582),o=t(82394),u=t(38860),c=t.n(u),l=t(82684),a=t(12691),s=t.n(a),d=t(92083),f=t.n(d),p=t(38626),h=t(67591),m=t(67971),g=t(87372),v=t(10919),y=t(87465),b=t(41788),w=t(86673),N=t(19711),x=t(82531),I=t(92953),_=t(10503),j=t(93348),Z=t(49125),E=t(90211),O=t(17150),P=t(42305),T=t(28598);function S(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,i)}return t}function k(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?S(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):S(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var C=p.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;"]);function A(n){var e=n.pipeline.uuid,t=(0,l.useState)(null),i=t[0],u=t[1],c=x.ZP.pipeline_schedules.pipelines.list(e).data,a=(0,l.useMemo)((function(){return null===c||void 0===c?void 0:c.pipeline_schedules}),[c]),d=(0,l.useMemo)((function(){return null===a||void 0===a?void 0:a.reduce((function(n,e){return k(k({},n),{},(0,o.Z)({},null===e||void 0===e?void 0:e.id,e))}),{})}),[a]),p=x.ZP.pipelines.detail(e,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,b=(0,l.useMemo)((function(){return k(k({},null===p||void 0===p?void 0:p.pipeline),{},{uuid:e})}),[p,e]),S=x.ZP.monitor_stats.detail("pipeline_run_count",{pipeline_uuid:null===b||void 0===b?void 0:b.uuid}).data,A=((null===S||void 0===S?void 0:S.monitor_stat)||{}).stats,M=(0,l.useMemo)((function(){return(0,P.Y_)()}),[]),L=(0,l.useMemo)((function(){return(0,O.p)(A,M)}),[M,A]),H=(0,l.useMemo)((function(){if(A)return Object.entries(A).reduce((function(n,e){var t=(0,r.Z)(e,2),i=t[0],u=t[1].data,c=M.map((function(n){return k({date:n},u[n]||{})}));return k(k({},n),{},(0,o.Z)({},i,c))}),{})}),[M,A]),D=(0,l.useMemo)((function(){var n=[];return n.push({bold:!0,label:function(){return"Monitors"}}),n}),[]);return(0,T.jsx)(y.Z,{breadcrumbs:D,errors:i,monitorType:I.a_.PIPELINE_RUNS,pipeline:b,setErrors:u,children:(0,T.jsxs)(w.Z,{mt:2,mx:2,children:[(0,T.jsx)(w.Z,{ml:1,children:(0,T.jsx)(C,{children:(0,T.jsx)(g.Z,{children:"All pipeline runs"})})}),(0,T.jsx)(w.Z,{mt:1,children:(0,T.jsx)(h.Z,{colors:I.NU,data:L,getXValue:function(n){return n.date},height:200,keys:I.hu,margin:{bottom:30,left:35,right:0,top:10},tooltipLeftOffset:I.CD,xLabelFormat:function(n){return f()(n).format("MMM DD")}})}),H&&Object.entries(H).map((function(n){var t,i=(0,r.Z)(n,2),o=i[0],u=i[1],c=null===d||void 0===d?void 0:d[o];return(0,T.jsxs)(w.Z,{mt:3,children:[(0,T.jsxs)(m.Z,{alignItems:"center",children:[(0,T.jsx)(w.Z,{mx:1,children:(0,T.jsx)(C,{children:(0,T.jsx)(N.ZP,{bold:!0,large:!0,children:(0,E.kC)(null===(t=j.Z4[null===c||void 0===c?void 0:c.schedule_type])||void 0===t?void 0:t.call(j.Z4))})})}),(0,T.jsx)(s(),{as:"/pipelines/".concat(e,"/triggers/").concat(null===c||void 0===c?void 0:c.id),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,T.jsx)(v.Z,{children:(0,T.jsxs)(m.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)(w.Z,{ml:1}),(0,T.jsx)(_._Q,{default:!0,size:2*Z.iI})]})})})]}),(0,T.jsx)(w.Z,{mt:1,children:(0,T.jsx)(h.Z,{colors:I.NU,data:u,getXValue:function(n){return n.date},height:200,keys:I.hu,margin:{bottom:30,left:35,right:0,top:10},tooltipLeftOffset:I.CD,xLabelFormat:function(n){return f()(n).format("MMM DD")}})})]},o)}))]})})}A.getInitialProps=function(){var n=(0,i.Z)(c().mark((function n(e){var t;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.query.pipeline,n.abrupt("return",{pipeline:{uuid:t}});case 2:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),e.default=(0,b.Z)(A)},90211:function(n,e,t){"use strict";t.d(e,{RA:function(){return s},kC:function(){return d},vg:function(){return y},kE:function(){return I},Mp:function(){return f},Pb:function(){return l},HW:function(){return w},wX:function(){return p},x6:function(){return h},_6:function(){return m},zf:function(){return b},Y6:function(){return x},wE:function(){return _},J3:function(){return g},We:function(){return a},QV:function(){return N},C5:function(){return v}});var i=t(75582),r=t(17717),o=["aged","ancient","autumn","billowing","bitter","black","blue","bold","broken","cold","cool","crimson","damp","dark","dawn","delicate","divine","dry","empty","falling","floral","fragrant","frosty","green","hidden","holy","icy","late","lingering","little","lively","long","misty","morning","muddy","nameless","old","patient","polished","proud","purple","quiet","red","restless","rough","shy","silent","small","snowy","solitary","sparkling","spring","still","summer","throbbing","twilight","wandering","weathered","white","wild","winter","wispy","withered","young"],u=(t(92083),["bird","breeze","brook","bush","butterfly","cherry","cloud","darkness","dawn","dew","dream","dust","feather","field","fire","firefly","flower","fog","forest","frog","frost","glade","glitter","grass","haze","hill","lake","leaf","meadow","moon","morning","mountain","night","paper","pine","pond","rain","resonance","river","sea","shadow","shape","silence","sky","smoke","snow","snowflake","sound","star","sun","sun","sunset","surf","thunder","tree","violet","voice","water","water","waterfall","wave","wildflower","wind","wood"]),c=t(24224);function l(n){if(!n)return!1;try{JSON.parse(n)}catch(e){return!1}return!0}function a(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";return n.split(" ").join(e)}function s(n){return n.split(" ").join("_")}function d(n){return n?n.charAt(0).toUpperCase()+n.slice(1):""}function f(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return String((new Date).getTime()*n)}function p(n){return n.charAt(0).toLowerCase()+n.slice(1)}function h(n){if(null===n||"undefined"===typeof n)return"";var e=n.toString().split("."),t=(0,i.Z)(e,2),r=t[0],o=t[1],u=r.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",");return o?"".concat(u,".").concat(o):u}function m(n,e){var t,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e,o=void 0!==r&&null!==r;if(o||(r=2),1===r)t=n;else{var u=n.length,c=n[u-1];t="y"===c&&"day"!==n?"".concat(n.slice(0,u-1),"ies"):"".concat(n,"s"===c?"es":"s")}if(o){var l=i?h(r):r;return"".concat(l," ").concat(t)}return t}function g(n){return null===n||void 0===n?void 0:n.replace(/_/g," ")}function v(n){var e=n.length;return"ies"===n.slice(e-3,e)?"".concat(n.slice(0,e-3),"y"):"es"===n.slice(e-2,e)&&"ces"!==n.slice(e-3,e)?n.slice(0,e-2):n.slice(0,e-1)}function y(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return d(g(n.toLowerCase()))}function b(n){var e,t=[["second",60],["minute",60],["hour",24],["day",7],["week",4],["month",12],["year",null]];return t.forEach((function(r,o){if(!e){var u=(0,i.Z)(r,2),c=u[0],l=u[1],a=t.slice(0,o).reduce((function(n,e){return n*Number(e[1])}),1);n<Number(l)*a&&(e=m(c,Math.round(n/a)))}})),e}function w(n){return!isNaN(n)}function N(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,t=Math.pow(10,e);return Math.round((n||0)*t)/t}function x(){return"".concat((0,c.mp)(o)," ").concat((0,c.mp)(u))}function I(n){return null===n||void 0===n?void 0:n.toLowerCase().replace(/\W+/g,"_")}function _(n){var e,t=n.split(r.sep),i=t[t.length-1].split(".");return e=1===i.length?i[0]:i.slice(0,-1).join("."),t.slice(0,t.length-1).concat(e).join(r.sep)}},89677:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/monitors",function(){return t(67400)}])}},function(n){n.O(0,[844,9902,5896,2714,2834,1424,1005,547,6786,9774,2888,179],(function(){return e=89677,n(n.s=e);var e}));var e=n.O();_N_E=e}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7713],{87465:function(n,e,t){"use strict";t.d(e,{Z:function(){return g}});t(82684);var i=t(34376),r=t(87372),o=t(60547),u=t(86673),c=t(19711),l=t(2850),a=t(38626),s=t(23831),d=t(49125),f=a.default.div.withConfig({displayName:"indexstyle__LinkStyle",componentId:"sc-1in9sst-0"})(["padding:","px ","px;"," ",""],d.iI,d.tr,(function(n){return n.selected&&"\n background-color: ".concat((n.theme.interactive||s.Z.interactive).checked,";\n ")}),(function(n){return!n.selected&&"\n cursor: pointer;\n "})),p=t(92953),h=t(59920),m=t(28598);var g=function(n){var e=n.breadcrumbs,t=n.children,a=n.errors,s=n.monitorType,g=n.pipeline,v=n.setErrors,y=n.subheader,b=(0,i.useRouter)();return(0,m.jsx)(o.Z,{before:(0,m.jsxs)(l.M,{children:[(0,m.jsx)(u.Z,{p:d.cd,children:(0,m.jsx)(r.Z,{level:4,muted:!0,children:"Insights"})}),(0,m.jsx)(f,{onClick:function(n){n.preventDefault(),b.push("/pipelines/[pipeline]/monitors","/pipelines/".concat(null===g||void 0===g?void 0:g.uuid,"/monitors"))},selected:p.a_.PIPELINE_RUNS==s,children:(0,m.jsx)(c.ZP,{children:"Pipeline runs"})}),(0,m.jsx)(f,{onClick:function(n){n.preventDefault(),b.push("/pipelines/[pipeline]/monitors/block-runs","/pipelines/".concat(null===g||void 0===g?void 0:g.uuid,"/monitors/block-runs"))},selected:p.a_.BLOCK_RUNS==s,children:(0,m.jsx)(c.ZP,{children:"Block runs"})}),(0,m.jsx)(f,{onClick:function(n){n.preventDefault(),b.push("/pipelines/[pipeline]/monitors/block-runtime","/pipelines/".concat(null===g||void 0===g?void 0:g.uuid,"/monitors/block-runtime"))},selected:p.a_.BLOCK_RUNTIME==s,children:(0,m.jsx)(c.ZP,{children:"Block runtime"})})]}),breadcrumbs:e,errors:a,pageName:h.M.MONITOR,pipeline:g,setErrors:v,subheader:y,uuid:"pipeline/monitor",children:t})}},2850:function(n,e,t){"use strict";t.d(e,{M:function(){return u},W:function(){return o}});var i=t(38626),r=t(3055),o=34*t(49125).iI,u=i.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);"],r.Mz)},66050:function(n,e,t){"use strict";var i;t.d(e,{V:function(){return i}}),function(n){n.CANCELLED="cancelled",n.COMPLETED="completed",n.FAILED="failed",n.INITIAL="initial",n.RUNNING="running",n.UPSTREAM_FAILED="upstream_failed",n.CONDITION_FAILED="condition_failed"}(i||(i={}))},93348:function(n,e,t){"use strict";t.d(e,{TR:function(){return d},U5:function(){return l},Xm:function(){return o},Z4:function(){return s},fq:function(){return c},kJ:function(){return a}});var i,r,o,u=t(82394);!function(n){n.API="api",n.EVENT="event",n.TIME="time"}(o||(o={}));var c,l,a,s=(i={},(0,u.Z)(i,o.API,(function(){return"API"})),(0,u.Z)(i,o.EVENT,(function(){return"event"})),(0,u.Z)(i,o.TIME,(function(){return"schedule"})),i);!function(n){n.ACTIVE="active",n.INACTIVE="inactive"}(c||(c={})),function(n){n.ONCE="@once",n.HOURLY="@hourly",n.DAILY="@daily",n.WEEKLY="@weekly",n.MONTHLY="@monthly"}(l||(l={})),function(n){n.CREATED_AT="created_at",n.NAME="name",n.PIPELINE="pipeline_uuid",n.STATUS="status",n.TYPE="schedule_type"}(a||(a={}));var d=(r={},(0,u.Z)(r,a.CREATED_AT,"Created at"),(0,u.Z)(r,a.NAME,"Name"),(0,u.Z)(r,a.PIPELINE,"Pipeline"),(0,u.Z)(r,a.STATUS,"Status"),(0,u.Z)(r,a.TYPE,"Type"),r)},98781:function(n,e,t){"use strict";t.d(e,{$1:function(){return s},G7:function(){return f},LM:function(){return p},Mj:function(){return h},QK:function(){return a},a_:function(){return m},qL:function(){return u},r0:function(){return d}});var i,r,o,u,c=t(82394),l=t(22341);!function(n){n.INTEGRATION="integration",n.PYTHON="python",n.PYSPARK="pyspark",n.STREAMING="streaming"}(u||(u={}));var a,s,d,f=(i={},(0,c.Z)(i,u.INTEGRATION,"Integration"),(0,c.Z)(i,u.PYTHON,"Standard"),(0,c.Z)(i,u.PYSPARK,"PySpark"),(0,c.Z)(i,u.STREAMING,"Streaming"),i),p="all",h=(u.PYTHON,u.INTEGRATION,u.STREAMING,r={},(0,c.Z)(r,p,l.ie),(0,c.Z)(r,u.INTEGRATION,l.YC),(0,c.Z)(r,u.PYTHON,l.El),(0,c.Z)(r,u.STREAMING,l.dB),r);!function(n){n.ACTIVE="active",n.INACTIVE="inactive",n.NO_SCHEDULES="no_schedules",n.RETRY="retry"}(a||(a={})),function(n){n.GROUP="group_by",n.STATUS="status[]",n.TAG="tag[]",n.TYPE="type[]"}(s||(s={})),function(n){n.STATUS="status",n.TAG="tag",n.TYPE="type"}(d||(d={}));var m=(o={},(0,c.Z)(o,u.PYTHON,"python3"),(0,c.Z)(o,u.PYSPARK,"pysparkkernel"),o)},87372:function(n,e,t){"use strict";var i,r,o,u,c,l,a,s,d=t(82394),f=t(26304),p=t(26653),h=t(38626),m=t(33591),g=t(23831),v=t(2005),y=t(31012),b=t(19711),w=t(49125),N=t(86673),x=t(28598),I=["children","condensed","inline","level","marketing","spacingBelow"];function _(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,i)}return t}function j(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?_(Object(t),!0).forEach((function(e){(0,d.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):_(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var Z=(0,h.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],b.IH,(function(n){return n.color&&"\n color: ".concat(n.color,"\n ")}),(function(n){return n.yellow&&"\n color: ".concat((n.theme.accent||g.Z.accent).yellow,";\n ")}),(function(n){return n.center&&"\n text-align: center;\n "}),(function(n){return!n.monospace&&0===Number(n.weightStyle)&&"\n font-family: ".concat(v.iI,";\n ")}),(function(n){return!n.monospace&&1===Number(n.weightStyle)&&"\n font-family: ".concat(v.LX,";\n ")}),(function(n){return!n.monospace&&2===Number(n.weightStyle)&&"\n font-family: ".concat(v.LX,";\n ")}),(function(n){return!n.monospace&&3===Number(n.weightStyle)&&"\n font-family: ".concat(v.ry,";\n ")}),(function(n){return!n.monospace&&4===Number(n.weightStyle)&&"\n font-family: ".concat(v.YC,";\n ")}),(function(n){return!n.monospace&&5===Number(n.weightStyle)&&"\n font-family: ".concat(v.nF,";\n ")}),(function(n){return!n.monospace&&(6===Number(n.weightStyle)||n.bold)&&"\n font-family: ".concat(v.nF,";\n ")}),(function(n){return!n.monospace&&7===Number(n.weightStyle)&&"\n font-family: ".concat(v.nF,";\n ")}),(function(n){return!n.monospace&&8===Number(n.weightStyle)&&"\n font-family: ".concat(v.nF,";\n ")}),(function(n){return n.lineHeightAuto&&"\n line-height: normal !important;\n "})),E=h.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(n){return"\n color: ".concat((n.theme.content||g.Z.content).active,";\n ")})),O=h.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],Z,m.media.md(i||(i=(0,p.Z)(["\n ","\n "])),y.aQ),m.media.lg(r||(r=(0,p.Z)(["\n ","\n "])),y.aQ),m.media.xl(o||(o=(0,p.Z)(["\n ","\n "])),y.aQ)),P=h.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],Z,y.MJ),T=h.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],Z,m.media.xs(u||(u=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),m.media.sm(c||(c=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),m.media.md(l||(l=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),m.media.lg(a||(a=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),m.media.xl(s||(s=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI)),S=h.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],Z,y.BL),k=h.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],Z),C=h.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],Z),A=h.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],Z),M=h.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],Z,(function(n){return 1===n.level&&"\n ".concat(y.MJ,"\n ")}),(function(n){return 2===n.level&&"\n ".concat(y.BL,"\n ")}),(function(n){return 3===n.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(n){return 4===n.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),L=function(n){var e,t=n.children,i=n.condensed,r=n.inline,o=n.level,u=n.marketing,c=n.spacingBelow,l=(0,f.Z)(n,I);r?e=M:0===Number(o)?e=O:1===Number(o)?e=u?T:P:2===Number(o)?e=S:3===Number(o)?e=k:4===Number(o)?e=C:5===Number(o)&&(e=A);var a=(0,x.jsxs)(e,j(j({},l),{},{level:o,children:[c&&(0,x.jsx)(N.Z,{mb:i?2:3,children:t}),!c&&t]}));return r?a:(0,x.jsx)(E,{children:a})};L.defaultProps={level:3,weightStyle:6},e.Z=L},67400:function(n,e,t){"use strict";t.r(e);var i=t(77837),r=t(75582),o=t(82394),u=t(38860),c=t.n(u),l=t(82684),a=t(12691),s=t.n(a),d=t(92083),f=t.n(d),p=t(38626),h=t(67591),m=t(67971),g=t(87372),v=t(10919),y=t(87465),b=t(41788),w=t(86673),N=t(19711),x=t(82531),I=t(92953),_=t(22341),j=t(93348),Z=t(49125),E=t(90211),O=t(17150),P=t(42305),T=t(28598);function S(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,i)}return t}function k(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?S(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):S(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var C=p.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;"]);function A(n){var e=n.pipeline.uuid,t=(0,l.useState)(null),i=t[0],u=t[1],c=x.ZP.pipeline_schedules.pipelines.list(e).data,a=(0,l.useMemo)((function(){return null===c||void 0===c?void 0:c.pipeline_schedules}),[c]),d=(0,l.useMemo)((function(){return null===a||void 0===a?void 0:a.reduce((function(n,e){return k(k({},n),{},(0,o.Z)({},null===e||void 0===e?void 0:e.id,e))}),{})}),[a]),p=x.ZP.pipelines.detail(e,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,b=(0,l.useMemo)((function(){return k(k({},null===p||void 0===p?void 0:p.pipeline),{},{uuid:e})}),[p,e]),S=x.ZP.monitor_stats.detail("pipeline_run_count",{pipeline_uuid:null===b||void 0===b?void 0:b.uuid}).data,A=((null===S||void 0===S?void 0:S.monitor_stat)||{}).stats,M=(0,l.useMemo)((function(){return(0,P.Y_)()}),[]),L=(0,l.useMemo)((function(){return(0,O.p)(A,M)}),[M,A]),H=(0,l.useMemo)((function(){if(A)return Object.entries(A).reduce((function(n,e){var t=(0,r.Z)(e,2),i=t[0],u=t[1].data,c=M.map((function(n){return k({date:n},u[n]||{})}));return k(k({},n),{},(0,o.Z)({},i,c))}),{})}),[M,A]),D=(0,l.useMemo)((function(){var n=[];return n.push({bold:!0,label:function(){return"Monitors"}}),n}),[]);return(0,T.jsx)(y.Z,{breadcrumbs:D,errors:i,monitorType:I.a_.PIPELINE_RUNS,pipeline:b,setErrors:u,children:(0,T.jsxs)(w.Z,{mt:2,mx:2,children:[(0,T.jsx)(w.Z,{ml:1,children:(0,T.jsx)(C,{children:(0,T.jsx)(g.Z,{children:"All pipeline runs"})})}),(0,T.jsx)(w.Z,{mt:1,children:(0,T.jsx)(h.Z,{colors:I.NU,data:L,getXValue:function(n){return n.date},height:200,keys:I.hu,margin:{bottom:30,left:35,right:0,top:10},tooltipLeftOffset:I.CD,xLabelFormat:function(n){return f()(n).format("MMM DD")}})}),H&&Object.entries(H).map((function(n){var t,i=(0,r.Z)(n,2),o=i[0],u=i[1],c=null===d||void 0===d?void 0:d[o];return(0,T.jsxs)(w.Z,{mt:3,children:[(0,T.jsxs)(m.Z,{alignItems:"center",children:[(0,T.jsx)(w.Z,{mx:1,children:(0,T.jsx)(C,{children:(0,T.jsx)(N.ZP,{bold:!0,large:!0,children:(0,E.kC)(null===(t=j.Z4[null===c||void 0===c?void 0:c.schedule_type])||void 0===t?void 0:t.call(j.Z4))})})}),(0,T.jsx)(s(),{as:"/pipelines/".concat(e,"/triggers/").concat(null===c||void 0===c?void 0:c.id),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,T.jsx)(v.Z,{children:(0,T.jsxs)(m.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)(w.Z,{ml:1}),(0,T.jsx)(_._Q,{default:!0,size:2*Z.iI})]})})})]}),(0,T.jsx)(w.Z,{mt:1,children:(0,T.jsx)(h.Z,{colors:I.NU,data:u,getXValue:function(n){return n.date},height:200,keys:I.hu,margin:{bottom:30,left:35,right:0,top:10},tooltipLeftOffset:I.CD,xLabelFormat:function(n){return f()(n).format("MMM DD")}})})]},o)}))]})})}A.getInitialProps=function(){var n=(0,i.Z)(c().mark((function n(e){var t;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.query.pipeline,n.abrupt("return",{pipeline:{uuid:t}});case 2:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),e.default=(0,b.Z)(A)},90211:function(n,e,t){"use strict";t.d(e,{RA:function(){return s},kC:function(){return d},vg:function(){return y},kE:function(){return I},Mp:function(){return f},Pb:function(){return l},HW:function(){return w},wX:function(){return p},x6:function(){return h},_6:function(){return m},zf:function(){return b},Y6:function(){return x},wE:function(){return _},J3:function(){return g},We:function(){return a},QV:function(){return N},C5:function(){return v}});var i=t(75582),r=t(17717),o=["aged","ancient","autumn","billowing","bitter","black","blue","bold","broken","cold","cool","crimson","damp","dark","dawn","delicate","divine","dry","empty","falling","floral","fragrant","frosty","green","hidden","holy","icy","late","lingering","little","lively","long","misty","morning","muddy","nameless","old","patient","polished","proud","purple","quiet","red","restless","rough","shy","silent","small","snowy","solitary","sparkling","spring","still","summer","throbbing","twilight","wandering","weathered","white","wild","winter","wispy","withered","young"],u=(t(92083),["bird","breeze","brook","bush","butterfly","cherry","cloud","darkness","dawn","dew","dream","dust","feather","field","fire","firefly","flower","fog","forest","frog","frost","glade","glitter","grass","haze","hill","lake","leaf","meadow","moon","morning","mountain","night","paper","pine","pond","rain","resonance","river","sea","shadow","shape","silence","sky","smoke","snow","snowflake","sound","star","sun","sun","sunset","surf","thunder","tree","violet","voice","water","water","waterfall","wave","wildflower","wind","wood"]),c=t(24224);function l(n){if(!n)return!1;try{JSON.parse(n)}catch(e){return!1}return!0}function a(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";return n.split(" ").join(e)}function s(n){return n.split(" ").join("_")}function d(n){return n?n.charAt(0).toUpperCase()+n.slice(1):""}function f(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return String((new Date).getTime()*n)}function p(n){return n.charAt(0).toLowerCase()+n.slice(1)}function h(n){if(null===n||"undefined"===typeof n)return"";var e=n.toString().split("."),t=(0,i.Z)(e,2),r=t[0],o=t[1],u=r.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",");return o?"".concat(u,".").concat(o):u}function m(n,e){var t,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e,o=void 0!==r&&null!==r;if(o||(r=2),1===r)t=n;else{var u=n.length,c=n[u-1];t="y"===c&&"day"!==n?"".concat(n.slice(0,u-1),"ies"):"".concat(n,"s"===c?"es":"s")}if(o){var l=i?h(r):r;return"".concat(l," ").concat(t)}return t}function g(n){return null===n||void 0===n?void 0:n.replace(/_/g," ")}function v(n){var e=n.length;return"ies"===n.slice(e-3,e)?"".concat(n.slice(0,e-3),"y"):"es"===n.slice(e-2,e)&&"ces"!==n.slice(e-3,e)?n.slice(0,e-2):n.slice(0,e-1)}function y(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return d(g(n.toLowerCase()))}function b(n){var e,t=[["second",60],["minute",60],["hour",24],["day",7],["week",4],["month",12],["year",null]];return t.forEach((function(r,o){if(!e){var u=(0,i.Z)(r,2),c=u[0],l=u[1],a=t.slice(0,o).reduce((function(n,e){return n*Number(e[1])}),1);n<Number(l)*a&&(e=m(c,Math.round(n/a)))}})),e}function w(n){return!isNaN(n)}function N(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,t=Math.pow(10,e);return Math.round((n||0)*t)/t}function x(){return"".concat((0,c.mp)(o)," ").concat((0,c.mp)(u))}function I(n){return null===n||void 0===n?void 0:n.toLowerCase().replace(/\W+/g,"_")}function _(n){var e,t=n.split(r.sep),i=t[t.length-1].split(".");return e=1===i.length?i[0]:i.slice(0,-1).join("."),t.slice(0,t.length-1).concat(e).join(r.sep)}},89677:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/monitors",function(){return t(67400)}])}},function(n){n.O(0,[844,9902,5896,2714,2834,1424,1005,547,6786,9774,2888,179],(function(){return e=89677,n(n.s=e);var e}));var e=n.O();_N_E=e}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[244],{40030:function(n,e,t){"use strict";var i=t(38626),r=t(23831),o=i.default.div.withConfig({displayName:"PageSectionHeader",componentId:"sc-1wznrcv-0"})(["left:0;position:sticky;top:0;width:100%;z-index:2;",""],(function(n){return"\n background-color: ".concat(n.backgroundColor||(n.theme.background||r.Z.background).page,";\n border-bottom: 1px solid ").concat((n.theme.borders||r.Z.borders).medium,";\n ")}));e.Z=o},22673:function(n,e,t){"use strict";var i=t(82684),r=t(68792),o=t(31811),u=t(38626),l=t(65292),a=t(23831),s=t(2005),c=t(49125),d=t(28598);e.Z=function(n){var e=n.language,t=n.maxWidth,p=n.showLineNumbers,f=n.small,v=n.source,h=n.wrapLines,m=(0,i.useContext)(u.ThemeContext);function g(n){var i=n.value;return(0,d.jsx)(o.Z,{customStyle:{backgroundColor:(m.background||a.Z.background).popup,border:"none",borderRadius:"none",boxShadow:"none",fontFamily:s.Vp,fontSize:f?12:14,marginBottom:0,marginTop:0,maxWidth:t,paddingBottom:2*c.iI,paddingTop:2*c.iI},language:e,lineNumberStyle:{color:(m.content||a.Z.content).muted},showLineNumbers:p,style:l._4,useInlineStyles:!0,wrapLines:h,children:i})}return(0,d.jsx)(r.D,{components:{code:function(n){var e=n.children;return(0,d.jsx)(g,{value:e})}},children:v})}},32316:function(n,e,t){"use strict";t.d(e,{Z:function(){return m}});var i=t(82684),r=t(60328),o=t(67971),u=t(882),l=t(86673),a=t(19711),s=t(99994),c=t(38626),d=t(49125),p=t(37391),f=c.default.div.withConfig({displayName:"indexstyle__TabsContainerStyle",componentId:"sc-segf7l-0"})(["padding-left:","px;padding-right:","px;"," "," ",""],d.cd*d.iI,d.cd*d.iI,(function(n){return n.noPadding&&"\n padding: 0;\n "}),(function(n){return n.allowScroll&&"\n overflow: auto;\n "}),p.w5),v=t(66653),h=t(28598);var m=function(n){var e=n.allowScroll,t=n.compact,c=n.contained,p=n.noPadding,m=n.onClickTab,g=n.regularSizeText,b=n.selectedTabUUID,x=n.small,j=n.tabs,_=(0,i.useMemo)((function(){var n=j.length,e=[];return j.forEach((function(i,c){var p=i.Icon,f=i.IconSelected,j=i.label,_=i.uuid,Z=_===b,w=Z&&f||p,y=j?j():_,C=(0,h.jsxs)(o.Z,{alignItems:"center",children:[w&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(w,{default:!Z,size:2*d.iI}),(0,h.jsx)(l.Z,{mr:1})]}),(0,h.jsx)(a.ZP,{bold:!0,default:!Z,noWrapping:!0,small:!g,children:y})]});c>=1&&n>=2&&e.push((0,h.jsx)("div",{style:{marginLeft:1.5*d.iI}},"spacing-".concat(_))),Z?e.push((0,h.jsx)(u.Z,{backgroundGradient:s.yr,backgroundPanel:!0,borderLess:!0,borderWidth:2,compact:t||x,onClick:function(n){(0,v.j)(n),m(i)},paddingUnitsHorizontal:1.75,paddingUnitsVertical:1.25,small:x,children:C},_)):e.push((0,h.jsx)("div",{style:{padding:2},children:(0,h.jsx)(r.Z,{borderLess:!0,compact:t||x,default:!0,onClick:function(n){(0,v.j)(n),m(i)},outline:!0,small:x,children:C})},"button-tab-".concat(_)))})),e}),[t,m,b,x,j]),Z=(0,h.jsx)(o.Z,{alignItems:"center",children:_});return c?Z:(0,h.jsx)(f,{allowScroll:e,noPadding:p,children:Z})}},95820:function(n,e,t){"use strict";t.d(e,{i:function(){return c}});t(82684);var i=t(38626),r=(t(93461),t(67971),t(10919),t(86673),t(47329)),o=t.n(r);o().node,o().node,o().node.isRequired,o().bool,o().string.isRequired;t(19711);var u=t(31969),l=t(2005),a=t(49125),s=t(73942),c=(t(28598),"tab");i.default.div.withConfig({displayName:"Tabs__TabHeaderContainerStyle",componentId:"sc-rojme5-0"})(["",""],(function(n){return n.containerWidthPercentage&&"\n width: ".concat(n.containerWidthPercentage,"%;\n ")})),i.default.div.withConfig({displayName:"Tabs__TabHeader",componentId:"sc-rojme5-1"})(["border-top-left-radius:","px;border-top-right-radius:","px;margin-right:","px;position:relative;z-index:2;"," "," ",""],s.BG,s.BG,6*a.iI,(function(n){return n.noBottomBorder&&"\n border-bottom: none;\n "}),(function(n){return n.active&&"\n border-bottom: ".concat(a.cd,"px solid;\n border-color: ").concat((n.theme.interactive||u.Z.interactive).linkPrimary,";\n ")}),(function(n){return n.fullWidth&&"\n width: 100%;\n "})),i.default.div.withConfig({displayName:"Tabs__LinkStyle",componentId:"sc-rojme5-2"})(["align-items:center;display:flex;"," "," ",""],(function(n){return n.bold&&"\n font-family: ".concat(l.nF,";\n ")}),(function(n){return n.fullWidth&&"\n justify-content: center;\n "}),(function(n){return!n.disabled&&"\n &:hover {\n path {\n fill: ".concat((n.theme.content||u.Z.interactive).linkPrimary," !important;\n }\n }\n ")}))},77492:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return A}});var i=t(77837),r=t(75582),o=t(82394),u=t(38860),l=t.n(u),a=t(82684),s=t(83455),c=t(34376),d=t(28598);var p=function(n){var e=n.size;return(0,d.jsxs)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,d.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,d.jsx)("defs",{children:(0,d.jsxs)("linearGradient",{id:"paint0_linear_2842_55048",x1:"2",y1:"12.25",x2:"22",y2:"12.25",gradientUnits:"userSpaceOnUse",children:[(0,d.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,d.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})},f=t(27125),v=t(60328),h=t(32316),m=t(67971),g=t(40030),b=t(51099);var x=function(n){var e=n.size;return(0,d.jsxs)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,d.jsx)("g",{clipPath:"url(#clip0_3007_70027)",children:(0,d.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.75 6.6859C1.75 3.95988 3.95988 1.75 6.6859 1.75h.98788c-.23022.41608-.36128.89466-.36128 1.40385s.13106.98777.36128 1.40384h-.71224c-1.32761 0-2.40385 1.07624-2.40385 2.40385 0 1.32761 1.07624 2.40385 2.40385 2.40385H15.609c3.3916 0 6.141 2.74941 6.141 6.14101 0 3.3916-2.7494 6.141-6.141 6.141H9.55584c.23019-.416.36123-.8946.36123-1.4037 0-.5092-.13108-.9879-.36134-1.404H15.609c1.8409 0 3.3333-1.4923 3.3333-3.3333 0-1.8409-1.4924-3.3333-3.3333-3.3333H6.96154C4.08329 12.1731 1.75 9.83979 1.75 6.96154V6.6859zM10.2163.25H6.6859C3.13145.25.25 3.13145.25 6.6859v.27564c0 3.70666 3.00486 6.71156 6.71154 6.71156H15.609c1.0125 0 1.8333.8208 1.8333 1.8333s-.8208 1.8333-1.8333 1.8333H7.01282c-1.60375 0-2.90385 1.3001-2.90385 2.9039 0 1.3248.88713 2.4423 2.09974 2.7911.06039.0173.12158.0328.18352.0463.20007.0436.40785.0665.62099.0665l.02449-.0001H15.609c4.22 0 7.641-3.421 7.641-7.641 0-4.22-3.421-7.64101-7.641-7.64101H6.96154c-.49918 0-.90385-.40467-.90385-.90385 0-.49918.40467-.90385.90385-.90385h3.25636c1.6038 0 2.9039-1.30009 2.9039-2.90384 0-1.60375-1.3001-2.903849-2.9039-2.90385h-.0016zm0 4.30769c-.77528 0-1.4038-.62852-1.4038-1.40384 0-.77505.62808-1.4034 1.403-1.40385h.0017c.7749.00045 1.403.6288 1.403 1.40385 0 .77532-.6285 1.40384-1.4039 1.40384zM7.01282 21.6474c-.10108 0-.19967-.0106-.29469-.0309-.03025-.0065-.06014-.0139-.08963-.0223-.58829-.1673-1.01912-.7086-1.01912-1.3505 0-.7753.62852-1.4039 1.40384-1.4039s1.40385.6286 1.40385 1.4039c0 .7696-.61935 1.3946-1.38683 1.4037h-.01742z",fill:"url(#paint0_linear_3007_70027)"})}),(0,d.jsxs)("defs",{children:[(0,d.jsxs)("linearGradient",{id:"paint0_linear_3007_70027",x1:"11.75",y1:".250001",x2:"11.75",y2:"23.1475",gradientUnits:"userSpaceOnUse",children:[(0,d.jsx)("stop",{offset:".28125",stopColor:"#7D55EC"}),(0,d.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]}),(0,d.jsx)("clipPath",{id:"clip0_3007_70027",children:(0,d.jsx)("path",{fill:"#fff",transform:"matrix(0 1 1 0 0 0)",d:"M0 0h24v24H0z"})})]})]})},j=t(60547),_=t(47409),Z=t(97496),w=t(41788),y=t(55378),C=t(86673),k=t(54283),P=t(82531),S=t(56681),I=t(66166),H=t(10503),R=t(33766),M=t(59920),O=t(98781),N=t(66050),V=t(95820),E=t(49125),T=t(7715),U=t(96510),z=t(59e3);function D(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,i)}return t}function L(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?D(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):D(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var B={Icon:H.Nt,IconSelected:x,label:function(){return"Pipeline runs"},uuid:"pipeline_runs"},F={Icon:H.Re,IconSelected:p,label:function(){return"Block runs"},uuid:"block_runs"},G=[B,F];function W(n){var e,t,i=n.pipeline,o=(0,c.useRouter)(),u=(0,a.useState)(null),l=u[0],p=u[1],x=(0,a.useState)(B),w=x[0],H=x[1],D=(0,a.useState)(S.G7[0]),W=D[0],A=D[1],q=(0,a.useState)({}),X=q[0],K=q[1],Q=(0,a.useState)(null),Y=Q[0],J=Q[1],$=(0,a.useMemo)((function(){return B.uuid===(null===w||void 0===w?void 0:w.uuid)}),[null===w||void 0===w?void 0:w.uuid]),nn=i.uuid,en=P.ZP.pipelines.detail(nn,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,tn=(0,a.useMemo)((function(){return L(L({},null===en||void 0===en?void 0:en.pipeline),{},{uuid:nn})}),[en,nn]),rn=(0,a.useState)(),on=rn[0],un=rn[1],ln=(0,z.iV)(),an=(0,I.Z)(ln),sn=null!==ln&&void 0!==ln&&ln.page?ln.page:0;(0,a.useEffect)((function(){var n=ln.pipeline_run_id,e=ln.status;if(!(0,T.Xy)(ln,an)){var t=L(L({},an),ln);n?t.pipeline_run_id=n:t.pipeline_uuid=nn,e?t.status=e:delete t.status,J(t),K({})}}),[nn,ln,an]);var cn={_limit:30,_offset:30*sn,pipeline_uuid:nn},dn=(0,T.gR)(L(L({},Y),cn),[V.i,"page"]);$&&(dn=(0,T.gR)(dn,[R.O2]));var pn=P.ZP.block_runs.list(dn,{},{pauseFetch:!Y}).data,fn=(0,a.useMemo)((function(){return(null===pn||void 0===pn?void 0:pn.block_runs)||[]}),[pn]),vn=L({},cn);null!==ln&&void 0!==ln&&ln.status&&(vn.status=ln.status),$||(vn=(0,T.gR)(vn,[R.O2]));var hn=P.ZP.pipeline_runs.list(vn,{refreshInterval:5e3}),mn=hn.data,gn=hn.mutate,bn=(0,a.useMemo)((function(){return(null===mn||void 0===mn?void 0:mn.pipeline_runs)||[]}),[mn]),xn=(0,a.useMemo)((function(){var n,e;return $?(null===mn||void 0===mn||null===(n=mn.metadata)||void 0===n?void 0:n.count)||[]:(null===pn||void 0===pn||null===(e=pn.metadata)||void 0===e?void 0:e.count)||[]}),[null===pn||void 0===pn||null===(e=pn.metadata)||void 0===e?void 0:e.count,null===mn||void 0===mn||null===(t=mn.metadata)||void 0===t?void 0:t.count,$]),jn=(0,a.useMemo)((function(){return bn.some((function(n){var e=n.status;return e===N.V.INITIAL||e===N.V.RUNNING}))}),[bn]),_n=(0,a.useMemo)((function(){return Object.values(X||{}).filter((function(n){return null!==n}))}),[X]),Zn=(0,s.Db)(P.ZP.pipelines.useUpdate(nn),{onSuccess:function(n){return(0,U.wD)(n,{callback:function(){K({}),gn()},onErrorCallback:function(n,e){return p({errors:e,response:n})}})}}),wn=(0,r.Z)(Zn,2),yn=wn[0],Cn=wn[1].isLoading,kn=(0,I.Z)(w);(0,a.useEffect)((function(){var n=ln[V.i];n&&H(G.find((function(e){return e.uuid===n})))}),[ln,w,kn]);var Pn=(0,a.useMemo)((function(){return(0,d.jsx)(C.Z,{p:2,children:(0,d.jsx)(b.Z,{maxPages:9,onUpdate:function(n){var e=Number(n),t=L(L({},ln),{},{page:e>=0?e:0});o.push("/pipelines/[pipeline]/runs","/pipelines/".concat(nn,"/runs?").concat((0,z.uM)(t)))},page:Number(sn),totalPages:Math.ceil(xn/30)})})}),[sn,nn,ln,o,xn]),Sn=(0,a.useMemo)((function(){return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Z.Z,{allowBulkSelect:(null===tn||void 0===tn?void 0:tn.type)!==O.qL.STREAMING,fetchPipelineRuns:gn,onClickRow:function(n){return un((function(e){var t=bn[n];return(null===e||void 0===e?void 0:e.id)!==t.id?t:null}))},pipelineRuns:bn,selectedRun:on,selectedRuns:X,setErrors:p,setSelectedRuns:K}),Pn]})}),[gn,Pn,null===tn||void 0===tn?void 0:tn.type,bn,on,X]),In=(0,a.useMemo)((function(){return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(f.Z,{blockRuns:fn,pipeline:tn}),Pn]})}),[fn,Pn,tn]);return(0,d.jsxs)(j.Z,{afterHidden:$&&!on,breadcrumbs:[{label:function(){return"Runs"}}],buildSidekick:$?function(n){return(0,S.ZP)(L(L({},n),{},{selectedRun:on,selectedTab:W,setSelectedTab:A}))}:function(n){return(0,S.ZP)(n)},errors:l,pageName:M.M.RUNS,pipeline:tn,setErrors:p,title:function(n){var e=n.name;return"".concat(e," runs")},uuid:"".concat(M.M.RUNS,"_").concat(nn),children:[(0,d.jsx)(g.Z,{children:(0,d.jsx)(C.Z,{py:1,children:(0,d.jsxs)(m.Z,{alignItems:"center",children:[jn&&$&&(0,d.jsx)(C.Z,{pl:2,children:(0,d.jsx)(v.Z,{danger:!0,loading:Cn,onClick:function(){yn({pipeline:{status:N.V.CANCELLED}})},outline:!0,children:"Cancel running pipeline runs"})}),_n.length>0&&(0,d.jsx)(C.Z,{pl:2,children:(0,d.jsxs)(v.Z,{loading:Cn,onClick:function(){yn({pipeline:{pipeline_runs:_n,status:O.QK.RETRY}})},primary:!0,children:["Retry selected runs (",_n.length,")"]})}),(0,d.jsx)(h.Z,{onClickTab:function(n){var e=n.uuid;J(null),(0,R.u7)({tab:e},{replaceParams:!0})},selectedTabUUID:null===w||void 0===w?void 0:w.uuid,tabs:G}),$&&(0,d.jsxs)(y.Z,{compact:!0,defaultColor:!0,onChange:function(n){n.preventDefault(),"all"===n.target.value?(J(null),(0,R.u7)({tab:B.uuid},{replaceParams:!0})):(0,R.u7)({page:0,status:n.target.value})},paddingRight:4*E.iI,placeholder:"Select run status",value:null===Y||void 0===Y?void 0:Y.status,children:[(0,d.jsx)("option",{value:"all",children:"All statuses"},"all_statuses"),Object.values(N.V).map((function(n){return(0,d.jsx)("option",{value:n,children:_.Do[n]},n)}))]})]})})}),mn||pn?(0,d.jsxs)(d.Fragment,{children:[$&&Sn,F.uuid===(null===w||void 0===w?void 0:w.uuid)&&In]}):(0,d.jsx)(C.Z,{m:3,children:(0,d.jsx)(k.Z,{inverted:!0})})]})}W.getInitialProps=function(){var n=(0,i.Z)(l().mark((function n(e){var t;return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.query.pipeline,n.abrupt("return",{pipeline:{uuid:t}});case 2:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}();var A=(0,w.Z)(W)},79897:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/runs",function(){return t(77492)}])}},function(n){n.O(0,[844,9902,426,1774,8792,7849,1424,1005,7815,3654,547,8952,8312,2786,9774,2888,179],(function(){return e=79897,n(n.s=e);var e}));var e=n.O();_N_E=e}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[244],{40030:function(n,e,t){"use strict";var i=t(38626),r=t(23831),o=i.default.div.withConfig({displayName:"PageSectionHeader",componentId:"sc-1wznrcv-0"})(["left:0;position:sticky;top:0;width:100%;z-index:2;",""],(function(n){return"\n background-color: ".concat(n.backgroundColor||(n.theme.background||r.Z.background).page,";\n border-bottom: 1px solid ").concat((n.theme.borders||r.Z.borders).medium,";\n ")}));e.Z=o},22673:function(n,e,t){"use strict";var i=t(82684),r=t(68792),o=t(31811),u=t(38626),l=t(65292),a=t(23831),s=t(2005),c=t(49125),d=t(28598);e.Z=function(n){var e=n.language,t=n.maxWidth,p=n.showLineNumbers,f=n.small,v=n.source,h=n.wrapLines,m=(0,i.useContext)(u.ThemeContext);function g(n){var i=n.value;return(0,d.jsx)(o.Z,{customStyle:{backgroundColor:(m.background||a.Z.background).popup,border:"none",borderRadius:"none",boxShadow:"none",fontFamily:s.Vp,fontSize:f?12:14,marginBottom:0,marginTop:0,maxWidth:t,paddingBottom:2*c.iI,paddingTop:2*c.iI},language:e,lineNumberStyle:{color:(m.content||a.Z.content).muted},showLineNumbers:p,style:l._4,useInlineStyles:!0,wrapLines:h,children:i})}return(0,d.jsx)(r.D,{components:{code:function(n){var e=n.children;return(0,d.jsx)(g,{value:e})}},children:v})}},32316:function(n,e,t){"use strict";t.d(e,{Z:function(){return m}});var i=t(82684),r=t(60328),o=t(67971),u=t(882),l=t(86673),a=t(19711),s=t(99994),c=t(38626),d=t(49125),p=t(37391),f=c.default.div.withConfig({displayName:"indexstyle__TabsContainerStyle",componentId:"sc-segf7l-0"})(["padding-left:","px;padding-right:","px;"," "," ",""],d.cd*d.iI,d.cd*d.iI,(function(n){return n.noPadding&&"\n padding: 0;\n "}),(function(n){return n.allowScroll&&"\n overflow: auto;\n "}),p.w5),v=t(66653),h=t(28598);var m=function(n){var e=n.allowScroll,t=n.compact,c=n.contained,p=n.noPadding,m=n.onClickTab,g=n.regularSizeText,b=n.selectedTabUUID,x=n.small,j=n.tabs,_=(0,i.useMemo)((function(){var n=j.length,e=[];return j.forEach((function(i,c){var p=i.Icon,f=i.IconSelected,j=i.label,_=i.uuid,Z=_===b,w=Z&&f||p,y=j?j():_,C=(0,h.jsxs)(o.Z,{alignItems:"center",children:[w&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(w,{default:!Z,size:2*d.iI}),(0,h.jsx)(l.Z,{mr:1})]}),(0,h.jsx)(a.ZP,{bold:!0,default:!Z,noWrapping:!0,small:!g,children:y})]});c>=1&&n>=2&&e.push((0,h.jsx)("div",{style:{marginLeft:1.5*d.iI}},"spacing-".concat(_))),Z?e.push((0,h.jsx)(u.Z,{backgroundGradient:s.yr,backgroundPanel:!0,borderLess:!0,borderWidth:2,compact:t||x,onClick:function(n){(0,v.j)(n),m(i)},paddingUnitsHorizontal:1.75,paddingUnitsVertical:1.25,small:x,children:C},_)):e.push((0,h.jsx)("div",{style:{padding:2},children:(0,h.jsx)(r.Z,{borderLess:!0,compact:t||x,default:!0,onClick:function(n){(0,v.j)(n),m(i)},outline:!0,small:x,children:C})},"button-tab-".concat(_)))})),e}),[t,m,b,x,j]),Z=(0,h.jsx)(o.Z,{alignItems:"center",children:_});return c?Z:(0,h.jsx)(f,{allowScroll:e,noPadding:p,children:Z})}},95820:function(n,e,t){"use strict";t.d(e,{i:function(){return c}});t(82684);var i=t(38626),r=(t(93461),t(67971),t(10919),t(86673),t(47329)),o=t.n(r);o().node,o().node,o().node.isRequired,o().bool,o().string.isRequired;t(19711);var u=t(31969),l=t(2005),a=t(49125),s=t(73942),c=(t(28598),"tab");i.default.div.withConfig({displayName:"Tabs__TabHeaderContainerStyle",componentId:"sc-rojme5-0"})(["",""],(function(n){return n.containerWidthPercentage&&"\n width: ".concat(n.containerWidthPercentage,"%;\n ")})),i.default.div.withConfig({displayName:"Tabs__TabHeader",componentId:"sc-rojme5-1"})(["border-top-left-radius:","px;border-top-right-radius:","px;margin-right:","px;position:relative;z-index:2;"," "," ",""],s.BG,s.BG,6*a.iI,(function(n){return n.noBottomBorder&&"\n border-bottom: none;\n "}),(function(n){return n.active&&"\n border-bottom: ".concat(a.cd,"px solid;\n border-color: ").concat((n.theme.interactive||u.Z.interactive).linkPrimary,";\n ")}),(function(n){return n.fullWidth&&"\n width: 100%;\n "})),i.default.div.withConfig({displayName:"Tabs__LinkStyle",componentId:"sc-rojme5-2"})(["align-items:center;display:flex;"," "," ",""],(function(n){return n.bold&&"\n font-family: ".concat(l.nF,";\n ")}),(function(n){return n.fullWidth&&"\n justify-content: center;\n "}),(function(n){return!n.disabled&&"\n &:hover {\n path {\n fill: ".concat((n.theme.content||u.Z.interactive).linkPrimary," !important;\n }\n }\n ")}))},77492:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return A}});var i=t(77837),r=t(75582),o=t(82394),u=t(38860),l=t.n(u),a=t(82684),s=t(83455),c=t(34376),d=t(28598);var p=function(n){var e=n.size;return(0,d.jsxs)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,d.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,d.jsx)("defs",{children:(0,d.jsxs)("linearGradient",{id:"paint0_linear_2842_55048",x1:"2",y1:"12.25",x2:"22",y2:"12.25",gradientUnits:"userSpaceOnUse",children:[(0,d.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,d.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})},f=t(27125),v=t(60328),h=t(32316),m=t(67971),g=t(40030),b=t(51099);var x=function(n){var e=n.size;return(0,d.jsxs)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,d.jsx)("g",{clipPath:"url(#clip0_3007_70027)",children:(0,d.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.75 6.6859C1.75 3.95988 3.95988 1.75 6.6859 1.75h.98788c-.23022.41608-.36128.89466-.36128 1.40385s.13106.98777.36128 1.40384h-.71224c-1.32761 0-2.40385 1.07624-2.40385 2.40385 0 1.32761 1.07624 2.40385 2.40385 2.40385H15.609c3.3916 0 6.141 2.74941 6.141 6.14101 0 3.3916-2.7494 6.141-6.141 6.141H9.55584c.23019-.416.36123-.8946.36123-1.4037 0-.5092-.13108-.9879-.36134-1.404H15.609c1.8409 0 3.3333-1.4923 3.3333-3.3333 0-1.8409-1.4924-3.3333-3.3333-3.3333H6.96154C4.08329 12.1731 1.75 9.83979 1.75 6.96154V6.6859zM10.2163.25H6.6859C3.13145.25.25 3.13145.25 6.6859v.27564c0 3.70666 3.00486 6.71156 6.71154 6.71156H15.609c1.0125 0 1.8333.8208 1.8333 1.8333s-.8208 1.8333-1.8333 1.8333H7.01282c-1.60375 0-2.90385 1.3001-2.90385 2.9039 0 1.3248.88713 2.4423 2.09974 2.7911.06039.0173.12158.0328.18352.0463.20007.0436.40785.0665.62099.0665l.02449-.0001H15.609c4.22 0 7.641-3.421 7.641-7.641 0-4.22-3.421-7.64101-7.641-7.64101H6.96154c-.49918 0-.90385-.40467-.90385-.90385 0-.49918.40467-.90385.90385-.90385h3.25636c1.6038 0 2.9039-1.30009 2.9039-2.90384 0-1.60375-1.3001-2.903849-2.9039-2.90385h-.0016zm0 4.30769c-.77528 0-1.4038-.62852-1.4038-1.40384 0-.77505.62808-1.4034 1.403-1.40385h.0017c.7749.00045 1.403.6288 1.403 1.40385 0 .77532-.6285 1.40384-1.4039 1.40384zM7.01282 21.6474c-.10108 0-.19967-.0106-.29469-.0309-.03025-.0065-.06014-.0139-.08963-.0223-.58829-.1673-1.01912-.7086-1.01912-1.3505 0-.7753.62852-1.4039 1.40384-1.4039s1.40385.6286 1.40385 1.4039c0 .7696-.61935 1.3946-1.38683 1.4037h-.01742z",fill:"url(#paint0_linear_3007_70027)"})}),(0,d.jsxs)("defs",{children:[(0,d.jsxs)("linearGradient",{id:"paint0_linear_3007_70027",x1:"11.75",y1:".250001",x2:"11.75",y2:"23.1475",gradientUnits:"userSpaceOnUse",children:[(0,d.jsx)("stop",{offset:".28125",stopColor:"#7D55EC"}),(0,d.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]}),(0,d.jsx)("clipPath",{id:"clip0_3007_70027",children:(0,d.jsx)("path",{fill:"#fff",transform:"matrix(0 1 1 0 0 0)",d:"M0 0h24v24H0z"})})]})]})},j=t(60547),_=t(47409),Z=t(97496),w=t(41788),y=t(55378),C=t(86673),k=t(54283),P=t(82531),S=t(56681),I=t(66166),H=t(22341),R=t(33766),M=t(59920),O=t(98781),N=t(66050),V=t(95820),E=t(49125),T=t(7715),U=t(96510),z=t(59e3);function D(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,i)}return t}function L(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?D(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):D(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var B={Icon:H.Nt,IconSelected:x,label:function(){return"Pipeline runs"},uuid:"pipeline_runs"},F={Icon:H.Re,IconSelected:p,label:function(){return"Block runs"},uuid:"block_runs"},G=[B,F];function W(n){var e,t,i=n.pipeline,o=(0,c.useRouter)(),u=(0,a.useState)(null),l=u[0],p=u[1],x=(0,a.useState)(B),w=x[0],H=x[1],D=(0,a.useState)(S.G7[0]),W=D[0],A=D[1],q=(0,a.useState)({}),X=q[0],K=q[1],Q=(0,a.useState)(null),Y=Q[0],J=Q[1],$=(0,a.useMemo)((function(){return B.uuid===(null===w||void 0===w?void 0:w.uuid)}),[null===w||void 0===w?void 0:w.uuid]),nn=i.uuid,en=P.ZP.pipelines.detail(nn,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,tn=(0,a.useMemo)((function(){return L(L({},null===en||void 0===en?void 0:en.pipeline),{},{uuid:nn})}),[en,nn]),rn=(0,a.useState)(),on=rn[0],un=rn[1],ln=(0,z.iV)(),an=(0,I.Z)(ln),sn=null!==ln&&void 0!==ln&&ln.page?ln.page:0;(0,a.useEffect)((function(){var n=ln.pipeline_run_id,e=ln.status;if(!(0,T.Xy)(ln,an)){var t=L(L({},an),ln);n?t.pipeline_run_id=n:t.pipeline_uuid=nn,e?t.status=e:delete t.status,J(t),K({})}}),[nn,ln,an]);var cn={_limit:30,_offset:30*sn,pipeline_uuid:nn},dn=(0,T.gR)(L(L({},Y),cn),[V.i,"page"]);$&&(dn=(0,T.gR)(dn,[R.O2]));var pn=P.ZP.block_runs.list(dn,{},{pauseFetch:!Y}).data,fn=(0,a.useMemo)((function(){return(null===pn||void 0===pn?void 0:pn.block_runs)||[]}),[pn]),vn=L({},cn);null!==ln&&void 0!==ln&&ln.status&&(vn.status=ln.status),$||(vn=(0,T.gR)(vn,[R.O2]));var hn=P.ZP.pipeline_runs.list(vn,{refreshInterval:5e3}),mn=hn.data,gn=hn.mutate,bn=(0,a.useMemo)((function(){return(null===mn||void 0===mn?void 0:mn.pipeline_runs)||[]}),[mn]),xn=(0,a.useMemo)((function(){var n,e;return $?(null===mn||void 0===mn||null===(n=mn.metadata)||void 0===n?void 0:n.count)||[]:(null===pn||void 0===pn||null===(e=pn.metadata)||void 0===e?void 0:e.count)||[]}),[null===pn||void 0===pn||null===(e=pn.metadata)||void 0===e?void 0:e.count,null===mn||void 0===mn||null===(t=mn.metadata)||void 0===t?void 0:t.count,$]),jn=(0,a.useMemo)((function(){return bn.some((function(n){var e=n.status;return e===N.V.INITIAL||e===N.V.RUNNING}))}),[bn]),_n=(0,a.useMemo)((function(){return Object.values(X||{}).filter((function(n){return null!==n}))}),[X]),Zn=(0,s.Db)(P.ZP.pipelines.useUpdate(nn),{onSuccess:function(n){return(0,U.wD)(n,{callback:function(){K({}),gn()},onErrorCallback:function(n,e){return p({errors:e,response:n})}})}}),wn=(0,r.Z)(Zn,2),yn=wn[0],Cn=wn[1].isLoading,kn=(0,I.Z)(w);(0,a.useEffect)((function(){var n=ln[V.i];n&&H(G.find((function(e){return e.uuid===n})))}),[ln,w,kn]);var Pn=(0,a.useMemo)((function(){return(0,d.jsx)(C.Z,{p:2,children:(0,d.jsx)(b.Z,{maxPages:9,onUpdate:function(n){var e=Number(n),t=L(L({},ln),{},{page:e>=0?e:0});o.push("/pipelines/[pipeline]/runs","/pipelines/".concat(nn,"/runs?").concat((0,z.uM)(t)))},page:Number(sn),totalPages:Math.ceil(xn/30)})})}),[sn,nn,ln,o,xn]),Sn=(0,a.useMemo)((function(){return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(Z.Z,{allowBulkSelect:(null===tn||void 0===tn?void 0:tn.type)!==O.qL.STREAMING,fetchPipelineRuns:gn,onClickRow:function(n){return un((function(e){var t=bn[n];return(null===e||void 0===e?void 0:e.id)!==t.id?t:null}))},pipelineRuns:bn,selectedRun:on,selectedRuns:X,setErrors:p,setSelectedRuns:K}),Pn]})}),[gn,Pn,null===tn||void 0===tn?void 0:tn.type,bn,on,X]),In=(0,a.useMemo)((function(){return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(f.Z,{blockRuns:fn,pipeline:tn}),Pn]})}),[fn,Pn,tn]);return(0,d.jsxs)(j.Z,{afterHidden:$&&!on,breadcrumbs:[{label:function(){return"Runs"}}],buildSidekick:$?function(n){return(0,S.ZP)(L(L({},n),{},{selectedRun:on,selectedTab:W,setSelectedTab:A}))}:function(n){return(0,S.ZP)(n)},errors:l,pageName:M.M.RUNS,pipeline:tn,setErrors:p,title:function(n){var e=n.name;return"".concat(e," runs")},uuid:"".concat(M.M.RUNS,"_").concat(nn),children:[(0,d.jsx)(g.Z,{children:(0,d.jsx)(C.Z,{py:1,children:(0,d.jsxs)(m.Z,{alignItems:"center",children:[jn&&$&&(0,d.jsx)(C.Z,{pl:2,children:(0,d.jsx)(v.Z,{danger:!0,loading:Cn,onClick:function(){yn({pipeline:{status:N.V.CANCELLED}})},outline:!0,children:"Cancel running pipeline runs"})}),_n.length>0&&(0,d.jsx)(C.Z,{pl:2,children:(0,d.jsxs)(v.Z,{loading:Cn,onClick:function(){yn({pipeline:{pipeline_runs:_n,status:O.QK.RETRY}})},primary:!0,children:["Retry selected runs (",_n.length,")"]})}),(0,d.jsx)(h.Z,{onClickTab:function(n){var e=n.uuid;J(null),(0,R.u7)({tab:e},{replaceParams:!0})},selectedTabUUID:null===w||void 0===w?void 0:w.uuid,tabs:G}),$&&(0,d.jsxs)(y.Z,{compact:!0,defaultColor:!0,onChange:function(n){n.preventDefault(),"all"===n.target.value?(J(null),(0,R.u7)({tab:B.uuid},{replaceParams:!0})):(0,R.u7)({page:0,status:n.target.value})},paddingRight:4*E.iI,placeholder:"Select run status",value:null===Y||void 0===Y?void 0:Y.status,children:[(0,d.jsx)("option",{value:"all",children:"All statuses"},"all_statuses"),Object.values(N.V).map((function(n){return(0,d.jsx)("option",{value:n,children:_.Do[n]},n)}))]})]})})}),mn||pn?(0,d.jsxs)(d.Fragment,{children:[$&&Sn,F.uuid===(null===w||void 0===w?void 0:w.uuid)&&In]}):(0,d.jsx)(C.Z,{m:3,children:(0,d.jsx)(k.Z,{inverted:!0})})]})}W.getInitialProps=function(){var n=(0,i.Z)(l().mark((function n(e){var t;return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.query.pipeline,n.abrupt("return",{pipeline:{uuid:t}});case 2:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}();var A=(0,w.Z)(W)},79897:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/runs",function(){return t(77492)}])}},function(n){n.O(0,[844,9902,426,1774,8792,7849,1424,1005,7815,3654,547,8952,8312,2786,9774,2888,179],(function(){return e=79897,n(n.s=e);var e}));var e=n.O();_N_E=e}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8170],{17717:function(e,n,t){var r=t(554);!function(){"use strict";var n={977:function(e){function n(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function t(e,n){for(var t,r="",i=0,o=-1,u=0,c=0;c<=e.length;++c){if(c<e.length)t=e.charCodeAt(c);else{if(47===t)break;t=47}if(47===t){if(o===c-1||1===u);else if(o!==c-1&&2===u){if(r.length<2||2!==i||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(r.length>2){var l=r.lastIndexOf("/");if(l!==r.length-1){-1===l?(r="",i=0):i=(r=r.slice(0,l)).length-1-r.lastIndexOf("/"),o=c,u=0;continue}}else if(2===r.length||1===r.length){r="",i=0,o=c,u=0;continue}n&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(o+1,c):r=e.slice(o+1,c),i=c-o-1;o=c,u=0}else 46===t&&-1!==u?++u:u=-1}return r}var i={resolve:function(){for(var e,i="",o=!1,u=arguments.length-1;u>=-1&&!o;u--){var c;u>=0?c=arguments[u]:(void 0===e&&(e=r.cwd()),c=e),n(c),0!==c.length&&(i=c+"/"+i,o=47===c.charCodeAt(0))}return i=t(i,!o),o?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(e){if(n(e),0===e.length)return".";var r=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return 0!==(e=t(e,!r)).length||r||(e="."),e.length>0&&i&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return n(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t<arguments.length;++t){var r=arguments[t];n(r),r.length>0&&(void 0===e?e=r:e+="/"+r)}return void 0===e?".":i.normalize(e)},relative:function(e,t){if(n(e),n(t),e===t)return"";if((e=i.resolve(e))===(t=i.resolve(t)))return"";for(var r=1;r<e.length&&47===e.charCodeAt(r);++r);for(var o=e.length,u=o-r,c=1;c<t.length&&47===t.charCodeAt(c);++c);for(var l=t.length-c,a=u<l?u:l,s=-1,f=0;f<=a;++f){if(f===a){if(l>a){if(47===t.charCodeAt(c+f))return t.slice(c+f+1);if(0===f)return t.slice(c+f)}else u>a&&(47===e.charCodeAt(r+f)?s=f:0===f&&(s=0));break}var d=e.charCodeAt(r+f);if(d!==t.charCodeAt(c+f))break;47===d&&(s=f)}var p="";for(f=r+s+1;f<=o;++f)f!==o&&47!==e.charCodeAt(f)||(0===p.length?p+="..":p+="/..");return p.length>0?p+t.slice(c+s):(c+=s,47===t.charCodeAt(c)&&++c,t.slice(c))},_makeLong:function(e){return e},dirname:function(e){if(n(e),0===e.length)return".";for(var t=e.charCodeAt(0),r=47===t,i=-1,o=!0,u=e.length-1;u>=1;--u)if(47===(t=e.charCodeAt(u))){if(!o){i=u;break}}else o=!1;return-1===i?r?"/":".":r&&1===i?"//":e.slice(0,i)},basename:function(e,t){if(void 0!==t&&"string"!==typeof t)throw new TypeError('"ext" argument must be a string');n(e);var r,i=0,o=-1,u=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var c=t.length-1,l=-1;for(r=e.length-1;r>=0;--r){var a=e.charCodeAt(r);if(47===a){if(!u){i=r+1;break}}else-1===l&&(u=!1,l=r+1),c>=0&&(a===t.charCodeAt(c)?-1===--c&&(o=r):(c=-1,o=l))}return i===o?o=l:-1===o&&(o=e.length),e.slice(i,o)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!u){i=r+1;break}}else-1===o&&(u=!1,o=r+1);return-1===o?"":e.slice(i,o)},extname:function(e){n(e);for(var t=-1,r=0,i=-1,o=!0,u=0,c=e.length-1;c>=0;--c){var l=e.charCodeAt(c);if(47!==l)-1===i&&(o=!1,i=c+1),46===l?-1===t?t=c:1!==u&&(u=1):-1!==t&&(u=-1);else if(!o){r=c+1;break}}return-1===t||-1===i||0===u||1===u&&t===i-1&&t===r+1?"":e.slice(t,i)},format:function(e){if(null===e||"object"!==typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,n){var t=n.dir||n.root,r=n.base||(n.name||"")+(n.ext||"");return t?t===n.root?t+r:t+e+r:r}("/",e)},parse:function(e){n(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var r,i=e.charCodeAt(0),o=47===i;o?(t.root="/",r=1):r=0;for(var u=-1,c=0,l=-1,a=!0,s=e.length-1,f=0;s>=r;--s)if(47!==(i=e.charCodeAt(s)))-1===l&&(a=!1,l=s+1),46===i?-1===u?u=s:1!==f&&(f=1):-1!==u&&(f=-1);else if(!a){c=s+1;break}return-1===u||-1===l||0===f||1===f&&u===l-1&&u===c+1?-1!==l&&(t.base=t.name=0===c&&o?e.slice(1,l):e.slice(c,l)):(0===c&&o?(t.name=e.slice(1,u),t.base=e.slice(1,l)):(t.name=e.slice(c,u),t.base=e.slice(c,l)),t.ext=e.slice(u,l)),c>0?t.dir=e.slice(0,c-1):o&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};i.posix=i,e.exports=i}},t={};function i(e){var r=t[e];if(void 0!==r)return r.exports;var o=t[e]={exports:{}},u=!0;try{n[e](o,o.exports,i),u=!1}finally{u&&delete t[e]}return o.exports}i.ab="//";var o=i(977);e.exports=o}()},67429:function(e,n,t){"use strict";var r=t(82394),i=t(21831),o=t(82684),u=t(16115),c=t(41150),l=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}n.Z=function(e){var n=e.highlightedItemIndexInitial,t=void 0===n?null:n,r=e.itemGroups,a=e.noResultGroups,f=e.onHighlightItemIndexChange,d=e.onMouseEnterItem,p=e.onMouseLeaveItem,h=e.onSelectItem,g=e.renderEmptyState,v=e.searchQuery,m=e.selectedItem,y=e.setItemRefs,b=e.uuid,x=(0,o.useState)(!0),j=x[0],w=x[1],O=(0,o.useMemo)((function(){var e=[],n=r.reduce((function(n,t){var r=t.items.filter((function(e){return!v||function(e,n){return e.searchQueries.filter((function(e){return String(e).toLowerCase().includes(n.toLowerCase())})).length>=1}(e,v)}));return 0===r.length?n:(e.push.apply(e,(0,i.Z)(r)),n.concat(s(s({},t),{},{items:r})))}),[]);return{itemGroups:n,itemsFlattened:e}}),[r,v]),_=O.itemGroups,C=O.itemsFlattened;a&&0===C.length&&(_.push.apply(_,(0,i.Z)(a)),C.push.apply(C,(0,i.Z)(a.reduce((function(e,n){var t=n.items;return e.concat(t)}),[]))));var Z=(0,o.useRef)(null);Z.current=C.map((function(){return(0,o.createRef)()}));var k=(0,o.useState)(t),S=k[0],P=k[1],N=(0,o.useCallback)((function(e){null===f||void 0===f||f(e),P(e)}),[f,P]),I=C[S],E=(0,c.y)(),A=E.registerOnKeyDown,T=E.unregisterOnKeyDown;(0,o.useEffect)((function(){return function(){return T(b)}}),[T,b]),null===A||void 0===A||A(b,(function(e,n,t){var r,i=!0,o=C.length,c=C.findIndex((function(e,r){var i=e.keyboardShortcutValidation;return null===i||void 0===i?void 0:i({keyHistory:t,keyMapping:n},r)})),l=n[u.Gs]&&!n[u.XR]&&!m;return-1!==c?(e.preventDefault(),h(C[c]),w(i),N(c)):(n[u.Uq]||l)&&C[S]?(l&&e.preventDefault(),h(C[S]),w(i),N(S)):(n[u.Bu]?(i=!1,r=null===S?o-1:S-1):n[u.kD]?(i=!1,r=null===S?0:S+1):n[u.vP]&&N(null),"undefined"!==typeof r&&(r>=o?r=0:r<=-1&&(r=o-1),r>=0&&r<=o-1?(N(r),e.preventDefault()):N(null)),void w(i))}),[S,C,m,N,w]),(0,o.useEffect)((function(){null===y||void 0===y||y(Z)}),[Z,C,y]),(0,o.useEffect)((function(){var e=null===S||"undefined"===typeof S||S>=C.length;(null===v||void 0===v?void 0:v.length)>=1&&e&&N(0)}),[S,C,v,N]);var M=(0,o.useCallback)((function(){return w(!0)}),[w]);return(0,o.useEffect)((function(){return window.addEventListener("mousemove",M),function(){window.removeEventListener("mousemove",M)}}),[M]),0===_.length&&g?g():(0,l.jsx)(l.Fragment,{children:_.map((function(e,n){var t=e.items,r=e.renderItem,i=e.renderGroupHeader,o=e.uuid,u=n>=1?_.slice(0,n).reduce((function(e,n){return e+n.items.length}),0):0,c=t.map((function(e,n){var t=e.itemObject,i=e.value,o=i===(null===I||void 0===I?void 0:I.value),c=n+u,a=(null===t||void 0===t?void 0:t.id)||(null===t||void 0===t?void 0:t.uuid);return(0,l.jsx)("div",{id:"item-".concat(i,"-").concat(a),onMouseMove:function(){return j&&N(c)},ref:Z.current[c],children:r(e,{highlighted:o,onClick:function(){return h(e)},onMouseEnter:function(){return null===d||void 0===d?void 0:d(e)},onMouseLeave:function(){return null===p||void 0===p?void 0:p(e)}},n,c)},"item-".concat(i,"-").concat(a))}));return c.length>=1&&(0,l.jsxs)("div",{children:[null===i||void 0===i?void 0:i(),c]},o||"group-uuid-".concat(n))}))})}},55264:function(e,n,t){"use strict";var r=t(82684),i=t(79891),o=t(67971),u=t(19711),c=t(24224),l=t(28598);n.Z=function(e){var n=e.onClickTag,t=e.tags,a=void 0===t?[]:t,s=(0,r.useMemo)((function(){return(null===a||void 0===a?void 0:a.length)||0}),[a]),f=(0,r.useMemo)((function(){return(0,c.YC)(a||[],"uuid")}),[a]);return(0,l.jsx)(o.Z,{alignItems:"center",flexWrap:"wrap",children:null===f||void 0===f?void 0:f.reduce((function(e,t){return e.push((0,l.jsx)("div",{style:{marginBottom:2,marginRight:s>=2?4:0,marginTop:2},children:(0,l.jsx)(i.Z,{onClick:n?function(){return n(t)}:null,small:!0,children:(0,l.jsx)(u.ZP,{children:t.uuid})})},"tag-".concat(t.uuid))),e}),[])})}},18221:function(e,n,t){"use strict";var r;t.d(n,{R:function(){return i}}),function(e){e.AZURE_CONTAINER_INSTANCE="azure_container_instance",e.ECS="ecs",e.GCP_CLOUD_RUN="gcp_cloud_run",e.K8S="k8s",e.LOCAL_PYTHON="local_python",e.PYSPARK="pyspark"}(r||(r={}));var i=[r.AZURE_CONTAINER_INSTANCE,r.ECS,r.GCP_CLOUD_RUN,r.K8S,r.LOCAL_PYTHON,r.PYSPARK]},98781:function(e,n,t){"use strict";t.d(n,{$1:function(){return s},G7:function(){return d},LM:function(){return p},Mj:function(){return h},QK:function(){return a},a_:function(){return g},qL:function(){return u},r0:function(){return f}});var r,i,o,u,c=t(82394),l=t(22341);!function(e){e.INTEGRATION="integration",e.PYTHON="python",e.PYSPARK="pyspark",e.STREAMING="streaming"}(u||(u={}));var a,s,f,d=(r={},(0,c.Z)(r,u.INTEGRATION,"Integration"),(0,c.Z)(r,u.PYTHON,"Standard"),(0,c.Z)(r,u.PYSPARK,"PySpark"),(0,c.Z)(r,u.STREAMING,"Streaming"),r),p="all",h=(u.PYTHON,u.INTEGRATION,u.STREAMING,i={},(0,c.Z)(i,p,l.ie),(0,c.Z)(i,u.INTEGRATION,l.YC),(0,c.Z)(i,u.PYTHON,l.El),(0,c.Z)(i,u.STREAMING,l.dB),i);!function(e){e.ACTIVE="active",e.INACTIVE="inactive",e.NO_SCHEDULES="no_schedules",e.RETRY="retry"}(a||(a={})),function(e){e.GROUP="group_by",e.STATUS="status[]",e.TAG="tag[]",e.TYPE="type[]"}(s||(s={})),function(e){e.STATUS="status",e.TAG="tag",e.TYPE="type"}(f||(f={}));var g=(o={},(0,c.Z)(o,u.PYTHON,"python3"),(0,c.Z)(o,u.PYSPARK,"pysparkkernel"),o)},79891:function(e,n,t){"use strict";var r=t(38626),i=t(60328),o=t(67971),u=t(86673),c=t(19711),l=t(23831),a=t(22341),s=t(49125),f=t(31012),d=t(28598),p=r.default.div.withConfig({displayName:"Chip__ChipStyle",componentId:"sc-1ok73g-0"})(["display:inline-block;"," "," "," "," ",""],(function(e){return!e.primary&&"\n background-color: ".concat((e.theme.background||l.Z.background).tag,";\n ")}),(function(e){return e.primary&&"\n background-color: ".concat((e.theme.chart||l.Z.chart).primary,";\n ")}),(function(e){return!e.small&&"\n border-radius: ".concat((s.iI+f.Al)/2,"px;\n height: ").concat(1.5*s.iI+f.Al,"px;\n padding: ").concat(s.iI/1.5,"px ").concat(1.25*s.iI,"px;\n ")}),(function(e){return e.small&&"\n border-radius: ".concat((s.iI/2+f.Al)/2,"px;\n height: ").concat(f.Al+s.iI/2+2,"px;\n padding: ").concat(s.iI/4,"px ").concat(s.iI,"px;\n ")}),(function(e){return e.border&&"\n border: 1px solid ".concat((e.theme.content||l.Z.content).muted,";\n ")}));n.Z=function(e){var n=e.border,t=e.children,r=e.disabled,l=e.label,f=e.onClick,h=e.primary,g=e.small;return(0,d.jsx)(p,{border:n,primary:h,small:g,children:(0,d.jsx)(i.Z,{basic:!0,disabled:r,noBackground:!0,noPadding:!0,onClick:f,transparent:!0,children:(0,d.jsxs)(o.Z,{alignItems:"center",children:[t,l&&(0,d.jsx)(c.ZP,{small:g,children:l}),!r&&f&&(0,d.jsx)(u.Z,{ml:1,children:(0,d.jsx)(a.x8,{default:h,muted:!h,size:g?s.iI:1.25*s.iI})})]})})})}},87372:function(e,n,t){"use strict";var r,i,o,u,c,l,a,s,f=t(82394),d=t(26304),p=t(26653),h=t(38626),g=t(33591),v=t(23831),m=t(2005),y=t(31012),b=t(19711),x=t(49125),j=t(86673),w=t(28598),O=["children","condensed","inline","level","marketing","spacingBelow"];function _(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 C(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,f.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}var Z=(0,h.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],b.IH,(function(e){return e.color&&"\n color: ".concat(e.color,"\n ")}),(function(e){return e.yellow&&"\n color: ".concat((e.theme.accent||v.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(m.iI,";\n ")}),(function(e){return!e.monospace&&1===Number(e.weightStyle)&&"\n font-family: ".concat(m.LX,";\n ")}),(function(e){return!e.monospace&&2===Number(e.weightStyle)&&"\n font-family: ".concat(m.LX,";\n ")}),(function(e){return!e.monospace&&3===Number(e.weightStyle)&&"\n font-family: ".concat(m.ry,";\n ")}),(function(e){return!e.monospace&&4===Number(e.weightStyle)&&"\n font-family: ".concat(m.YC,";\n ")}),(function(e){return!e.monospace&&5===Number(e.weightStyle)&&"\n font-family: ".concat(m.nF,";\n ")}),(function(e){return!e.monospace&&(6===Number(e.weightStyle)||e.bold)&&"\n font-family: ".concat(m.nF,";\n ")}),(function(e){return!e.monospace&&7===Number(e.weightStyle)&&"\n font-family: ".concat(m.nF,";\n ")}),(function(e){return!e.monospace&&8===Number(e.weightStyle)&&"\n font-family: ".concat(m.nF,";\n ")}),(function(e){return e.lineHeightAuto&&"\n line-height: normal !important;\n "})),k=h.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(e){return"\n color: ".concat((e.theme.content||v.Z.content).active,";\n ")})),S=h.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],Z,g.media.md(r||(r=(0,p.Z)(["\n ","\n "])),y.aQ),g.media.lg(i||(i=(0,p.Z)(["\n ","\n "])),y.aQ),g.media.xl(o||(o=(0,p.Z)(["\n ","\n "])),y.aQ)),P=h.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],Z,y.MJ),N=h.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],Z,g.media.xs(u||(u=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI),g.media.sm(c||(c=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI),g.media.md(l||(l=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI),g.media.lg(a||(a=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI),g.media.xl(s||(s=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI)),I=h.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],Z,y.BL),E=h.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],Z),A=h.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],Z),T=h.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],Z),M=h.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],Z,(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 "})),R=function(e){var n,t=e.children,r=e.condensed,i=e.inline,o=e.level,u=e.marketing,c=e.spacingBelow,l=(0,d.Z)(e,O);i?n=M:0===Number(o)?n=S:1===Number(o)?n=u?N:P:2===Number(o)?n=I:3===Number(o)?n=E:4===Number(o)?n=A:5===Number(o)&&(n=T);var a=(0,w.jsxs)(n,C(C({},l),{},{level:o,children:[c&&(0,w.jsx)(j.Z,{mb:r?2:3,children:t}),!c&&t]}));return i?a:(0,w.jsx)(k,{children:a})};R.defaultProps={level:3,weightStyle:6},n.Z=R},75107:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return ee}});var r=t(77837),i=t(75582),o=t(82394),u=t(38860),c=t.n(u),l=t(82684),a=t(60547),s=t(41788),f=t(60328),d=t(38341),p=t(67971),h=t(87372),g=t(10919),v=t(55378),m=t(86673),y=t(67429),b=t(79891),x=t(55264),j=t(19711),w=t(82944),O=t(38626),_=t(23831),C=t(73942),Z=t(37391),k=t(49125),S=O.default.div.withConfig({displayName:"indexstyle__DropdownStyle",componentId:"sc-suwkha-0"})([""," border-radius:","px;max-height:","px;overflow:auto;position:absolute;width:100%;z-index:1;"," ",""],Z.w5,C.BG,40*k.iI,(function(e){return"\n background-color: ".concat((e.theme.background||_.Z.background).popup,";\n box-shadow: ").concat((e.theme.shadow||_.Z.shadow).popup,";\n ")}),(function(e){return e.topOffset&&"\n top: ".concat(e.topOffset-.5*k.iI,"px;\n ")})),P=O.default.div.withConfig({displayName:"indexstyle__RowStyle",componentId:"sc-suwkha-1"})(["padding:","px;position:relative;z-index:2;&:hover{cursor:pointer;}",""],.5*k.iI,(function(e){return e.highlighted&&"\n background-color: ".concat((e.theme.interactive||_.Z.interactive).hoverBackground,";\n ")})),N=t(16115),I=t(66653),E=t(24224),A=t(41150),T=t(28598);function M(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 R(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?M(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):M(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var H=function(e){var n,t=e.removeTag,r=e.selectTag,i=e.selectedTags,o=void 0===i?[]:i,u=e.tags,c=void 0===u?[]:u,a=e.uuid,s=(0,l.useRef)(null),f=(0,l.useState)(!1),d=f[0],p=f[1],h=(0,l.useState)(null),g=h[0],v=h[1],O=(0,l.useMemo)((function(){return(0,E.YC)(c||[],"uuid")}),[c]),_=(0,l.useMemo)((function(){return null===O||void 0===O?void 0:O.map((function(e){return{itemObject:e,searchQueries:[e.uuid],value:e.uuid}}))}),[O]),C=(0,l.useMemo)((function(){return(null===g||void 0===g?void 0:g.length)>=1?_.concat({itemObject:{uuid:g},searchQueries:[g],value:"Add tag: ".concat(g)}):_}),[_,g]),Z=(0,A.y)(),k=Z.registerOnKeyDown,M=Z.unregisterOnKeyDown;return(0,l.useEffect)((function(){return function(){return M(a)}}),[M,a]),null===k||void 0===k||k(a,(function(e,n){var t;d&&n[N.vP]&&(p(!1),null===s||void 0===s||null===(t=s.current)||void 0===t||t.blur())}),[d,s]),(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(x.Z,{onClickTag:t,tags:o}),(0,T.jsxs)(m.Z,{mt:1,style:{position:"relative"},children:[(0,T.jsx)(w.Z,{onBlur:function(){return setTimeout((function(){return p(!1)}),150)},onChange:function(e){return v(e.target.value)},onFocus:function(){return p(!0)},ref:s,value:g||""}),(0,T.jsx)(S,{topOffset:null===s||void 0===s||null===(n=s.current)||void 0===n?void 0:n.getBoundingClientRect().height,children:(0,T.jsx)(y.Z,{itemGroups:[{items:d?C:[],renderItem:function(e,n){var t=e.value;return(0,T.jsx)(P,R(R({},n),{},{onClick:function(e){var t;(0,I.j)(e),null===n||void 0===n||null===(t=n.onClick)||void 0===t||t.call(n,e)},children:(0,T.jsx)(b.Z,{small:!0,children:(0,T.jsx)(j.ZP,{children:t})})}))}}],onSelectItem:function(e){var n=e.itemObject;null===r||void 0===r||r(n),v(null)},searchQuery:g,uuid:a})})]})]})},D=t(82531),z=t(66166),G=t(18221),L=t(11366),Y=t(91427),U=t(7715),F=t(90211);function B(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 K(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,o.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 Q=function(e){var n,t,r,i,u=e.isPipelineUpdating,c=e.pipeline,a=e.updatePipeline,s=(0,l.useRef)(null),y=(0,l.useRef)(null),b=null===c||void 0===c?void 0:c.uuid,x=(0,l.useMemo)((function(){return(null===c||void 0===c?void 0:c.blocks)||[]}),[c]),O=(0,l.useState)(!1),_=O[0],C=O[1],Z=(0,l.useState)(!1),S=Z[0],P=Z[1],N=(0,l.useState)(null),I=N[0],A=N[1],M=(0,z.Z)(c);(0,l.useEffect)((function(){(0,U.Xy)(c,M)||A(c)}),[c,M]);var R=(0,l.useCallback)((function(e){C(!0),A(e)}),[]),B="".concat(L.g6,"_").concat(b),Q=(0,l.useState)({}),J=Q[0],W=Q[1],X="".concat(L.vF,"_").concat(b),q=(0,l.useState)(!1),V=q[0],$=q[1],ee=(0,l.useCallback)((function(e){W((function(n){var t=e(n);return(0,Y.t8)(B,JSON.stringify(t)),t}))}),[B,W]),ne=(0,l.useCallback)((function(e){$((function(n){var t=e(n);return(0,Y.t8)(X,t),t}))}),[X,$]);(0,l.useEffect)((function(){var e=(0,Y.U2)(B);e&&(0,F.Pb)(e)&&W(JSON.parse(e))}),[B,W]),(0,l.useEffect)((function(){var e=(0,Y.U2)(X);e&&$(e)}),[X,$]);var te=(0,l.useMemo)((function(){return null===I||void 0===I?void 0:I.executor_type}),[I]);(0,l.useEffect)((function(){S||!te||G.R.find((function(e){return e===te}))||P(!0)}),[S,te]);var re=(0,l.useMemo)((function(){return(null===x||void 0===x?void 0:x.filter((function(e){var n=e.uuid;return!(null===J||void 0===J||!J[n])}))).length===x.length}),[x,J]),ie=(0,l.useMemo)((function(){return!(null!==x&&void 0!==x&&x.length)}),[x]),oe=(0,l.useMemo)((function(){return(null===I||void 0===I?void 0:I.tags)||[]}),[I]),ue=D.ZP.tags.list().data,ce=(0,l.useMemo)((function(){return((null===ue||void 0===ue?void 0:ue.tags)||[]).filter((function(e){var n=e.uuid;return!oe.includes(n)}))}),[ue,oe]);return(0,T.jsxs)(m.Z,{p:k.cd,children:[(0,T.jsx)(w.Z,{label:"Pipeline name",onChange:function(e){return R((function(n){return K(K({},n),{},{name:e.target.value})}))},primary:!0,required:!0,setContentOnMount:!0,value:(null===I||void 0===I?void 0:I.name)||""}),(0,T.jsxs)(m.Z,{mt:k.HN,children:[(0,T.jsx)(h.Z,{children:"Executor type"}),(0,T.jsxs)(j.ZP,{muted:!0,children:["For more information on this setting, please read the ",(0,T.jsx)(g.Z,{href:"https://docs.mage.ai/production/configuring-production-settings/compute-resource#2-set-executor-type-and-customize-the-compute-resource-of-the-mage-executor",openNewWindow:!0,children:"documentation"}),"."]}),(0,T.jsxs)(m.Z,{mt:1,children:[!S&&(0,T.jsx)(v.Z,{label:"Executor type",onChange:function(e){return R((function(n){return K(K({},n),{},{executor_type:e.target.value})}))},primary:!0,ref:s,value:(null===I||void 0===I?void 0:I.executor_type)||"",children:G.R.map((function(e){return(0,T.jsx)("option",{value:e,children:e},e)}))}),S&&(0,T.jsx)(w.Z,{label:"Executor type",monospace:!0,onChange:function(e){return R((function(n){return K(K({},n),{},{executor_type:e.target.value})}))},ref:y,setContentOnMount:!0,value:(null===I||void 0===I?void 0:I.executor_type)||""}),(0,T.jsx)(m.Z,{mt:1,children:(0,T.jsx)(g.Z,{muted:!0,onClick:function(){S?(R((function(e){return K(K({},e),{},{executor_type:null===c||void 0===c?void 0:c.executor_type})})),setTimeout((function(){var e;return null===s||void 0===s||null===(e=s.current)||void 0===e?void 0:e.focus()}),1)):setTimeout((function(){var e;return null===y||void 0===y||null===(e=y.current)||void 0===e?void 0:e.focus()}),1),P(!S)},preventDefault:!0,small:!0,children:S?"Select a preset executor type":"Enter a custom executor type"})})]})]}),(0,T.jsxs)(m.Z,{mt:k.HN,children:[(0,T.jsx)(h.Z,{children:"Retry configuration"}),(0,T.jsxs)(j.ZP,{muted:!0,children:["For more information on this setting, please read the ",(0,T.jsx)(g.Z,{href:"https://docs.mage.ai/orchestration/pipeline-runs/retrying-block-runs",openNewWindow:!0,children:"documentation"}),"."]}),(0,T.jsx)(m.Z,{mt:1,children:(0,T.jsxs)(p.Z,{children:[(0,T.jsx)(w.Z,{label:"Retries",monospace:!0,onChange:function(e){return R((function(n){return K(K({},n),{},{retry_config:K(K({},null===n||void 0===n?void 0:n.retry_config),{},{retries:"undefined"!==typeof e.target.value&&null!==e.target.value?Number(e.target.value):e.target.value})})}))},setContentOnMount:!0,type:"number",value:(null===I||void 0===I||null===(n=I.retry_config)||void 0===n?void 0:n.retries)||""}),(0,T.jsx)(m.Z,{mr:1}),(0,T.jsx)(w.Z,{label:"Delay",monospace:!0,onChange:function(e){return R((function(n){return K(K({},n),{},{retry_config:K(K({},null===n||void 0===n?void 0:n.retry_config),{},{delay:"undefined"!==typeof e.target.value&&null!==e.target.value?Number(e.target.value):e.target.value})})}))},setContentOnMount:!0,type:"number",value:(null===I||void 0===I||null===(t=I.retry_config)||void 0===t?void 0:t.delay)||""}),(0,T.jsx)(m.Z,{mr:1}),(0,T.jsx)(w.Z,{label:"Max delay",monospace:!0,onChange:function(e){return R((function(n){return K(K({},n),{},{retry_config:K(K({},null===n||void 0===n?void 0:n.retry_config),{},{max_delay:"undefined"!==typeof e.target.value&&null!==e.target.value?Number(e.target.value):e.target.value})})}))},setContentOnMount:!0,type:"number",value:(null===I||void 0===I||null===(r=I.retry_config)||void 0===r?void 0:r.max_delay)||""}),(0,T.jsx)(m.Z,{mr:1}),(0,T.jsx)(d.Z,{checked:!(null===I||void 0===I||null===(i=I.retry_config)||void 0===i||!i.exponential_backoff),label:"Exponential backoff",onClick:function(){return R((function(e){var n;return K(K({},e),{},{retry_config:K(K({},null===e||void 0===e?void 0:e.retry_config),{},{exponential_backoff:!(null!==e&&void 0!==e&&null!==(n=e.retry_config)&&void 0!==n&&n.exponential_backoff)})})}))}})]})})]}),(0,T.jsxs)(m.Z,{mt:k.HN,children:[(0,T.jsx)(h.Z,{children:"Tags"}),(0,T.jsx)(m.Z,{mt:1,children:(0,T.jsx)(H,{removeTag:function(e){R((function(n){return K(K({},n),{},{tags:oe.filter((function(n){return n!==e.uuid}))})}))},selectTag:function(e){R((function(n){return K(K({},n),{},{tags:(0,E.$C)(e.uuid,oe,(function(n){return n===e.uuid}))})}))},selectedTags:null===oe||void 0===oe?void 0:oe.map((function(e){return{uuid:e}})),tags:ce,uuid:"TagsAutocompleteInputField-".concat(null===c||void 0===c?void 0:c.uuid)})})]}),(0,T.jsx)(m.Z,{mt:k.HN,children:(0,T.jsx)(p.Z,{children:(0,T.jsx)(f.Z,{disabled:!_,loading:u,onClick:function(){return a({executor_type:null===I||void 0===I?void 0:I.executor_type,name:null===I||void 0===I?void 0:I.name,retry_config:null===I||void 0===I?void 0:I.retry_config,tags:null===I||void 0===I?void 0:I.tags}).then((function(){return C(!1)}))},primary:!0,children:"Save pipeline settings"})})}),(0,T.jsx)(m.Z,{mt:k.HN,children:(0,T.jsx)(d.Z,{checked:re&&!ie,disabled:ie,label:"Hide all blocks in notebook",onClick:function(){return ee((function(){return re?{}:null===x||void 0===x?void 0:x.reduce((function(e,n){var t=n.uuid;return K(K({},e),{},(0,o.Z)({},t,!0))}),{})}))}})}),(0,T.jsx)(m.Z,{mt:k.Mq,children:(0,T.jsx)(d.Z,{checked:V,label:"When running a block while editing a pipeline, output the block messages to the logs",onClick:function(){return ne((function(e){return!e}))}})})]})},J=t(59920),W=t(83455),X=t(96510);function q(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 V(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?q(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):q(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function $(e){var n=e.pipeline,t=(0,l.useState)(null),r=t[0],o=t[1],u=null===n||void 0===n?void 0:n.uuid,c=D.ZP.pipelines.detail(u).data,s=V(V({},null===c||void 0===c?void 0:c.pipeline),n),f=(0,W.Db)(D.ZP.pipelines.useUpdate(u,{update_content:!0}),{onSuccess:function(e){return(0,X.wD)(e,{callback:function(e){if(null!==e&&void 0!==e&&e.pipeline){var n=e.pipeline.uuid;u!==n&&(window.location.href="/pipelines/".concat(n,"/settings"))}},onErrorCallback:function(e,n){return o({errors:n,response:e})}})}}),d=(0,i.Z)(f,2),p=d[0],h=d[1].isLoading;return(0,T.jsx)(a.Z,{breadcrumbs:[{label:function(){return"Settings"}}],errors:r,pageName:J.M.SETTINGS,pipeline:s,setErrors:o,title:function(e){var n=e.name;return"".concat(n," settings")},uuid:"".concat(J.M.SETTINGS,"_").concat(u),children:s&&(0,T.jsx)(Q,{isPipelineUpdating:h,pipeline:s,updatePipeline:function(e){return p({pipeline:e})}})})}$.getInitialProps=function(){var e=(0,r.Z)(c().mark((function e(n){var t;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.query.pipeline,e.abrupt("return",{pipeline:{uuid:t}});case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();var ee=(0,s.Z)($)},11366:function(e,n,t){"use strict";t.d(n,{Ch:function(){return u},H8:function(){return r},g6:function(){return i},vF:function(){return o}});var r="pipeline_edit_before_tab_selected",i="pipeline_edit_hidden_blocks",o="pipeline_edit_block_output_logs",u="setup_ai_later"},90211:function(e,n,t){"use strict";t.d(n,{RA:function(){return s},kC:function(){return f},vg:function(){return y},kE:function(){return O},Mp:function(){return d},Pb:function(){return l},HW:function(){return x},wX:function(){return p},x6:function(){return h},_6:function(){return g},zf:function(){return b},Y6:function(){return w},wE:function(){return _},J3:function(){return v},We:function(){return a},QV:function(){return j},C5:function(){return m}});var r=t(75582),i=t(17717),o=["aged","ancient","autumn","billowing","bitter","black","blue","bold","broken","cold","cool","crimson","damp","dark","dawn","delicate","divine","dry","empty","falling","floral","fragrant","frosty","green","hidden","holy","icy","late","lingering","little","lively","long","misty","morning","muddy","nameless","old","patient","polished","proud","purple","quiet","red","restless","rough","shy","silent","small","snowy","solitary","sparkling","spring","still","summer","throbbing","twilight","wandering","weathered","white","wild","winter","wispy","withered","young"],u=(t(92083),["bird","breeze","brook","bush","butterfly","cherry","cloud","darkness","dawn","dew","dream","dust","feather","field","fire","firefly","flower","fog","forest","frog","frost","glade","glitter","grass","haze","hill","lake","leaf","meadow","moon","morning","mountain","night","paper","pine","pond","rain","resonance","river","sea","shadow","shape","silence","sky","smoke","snow","snowflake","sound","star","sun","sun","sunset","surf","thunder","tree","violet","voice","water","water","waterfall","wave","wildflower","wind","wood"]),c=t(24224);function l(e){if(!e)return!1;try{JSON.parse(e)}catch(n){return!1}return!0}function a(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";return e.split(" ").join(n)}function s(e){return e.split(" ").join("_")}function f(e){return e?e.charAt(0).toUpperCase()+e.slice(1):""}function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return String((new Date).getTime()*e)}function p(e){return e.charAt(0).toLowerCase()+e.slice(1)}function h(e){if(null===e||"undefined"===typeof e)return"";var n=e.toString().split("."),t=(0,r.Z)(n,2),i=t[0],o=t[1],u=i.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",");return o?"".concat(u,".").concat(o):u}function g(e,n){var t,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=n,o=void 0!==i&&null!==i;if(o||(i=2),1===i)t=e;else{var u=e.length,c=e[u-1];t="y"===c&&"day"!==e?"".concat(e.slice(0,u-1),"ies"):"".concat(e,"s"===c?"es":"s")}if(o){var l=r?h(i):i;return"".concat(l," ").concat(t)}return t}function v(e){return null===e||void 0===e?void 0:e.replace(/_/g," ")}function m(e){var n=e.length;return"ies"===e.slice(n-3,n)?"".concat(e.slice(0,n-3),"y"):"es"===e.slice(n-2,n)&&"ces"!==e.slice(n-3,n)?e.slice(0,n-2):e.slice(0,n-1)}function y(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return f(v(e.toLowerCase()))}function b(e){var n,t=[["second",60],["minute",60],["hour",24],["day",7],["week",4],["month",12],["year",null]];return t.forEach((function(i,o){if(!n){var u=(0,r.Z)(i,2),c=u[0],l=u[1],a=t.slice(0,o).reduce((function(e,n){return e*Number(n[1])}),1);e<Number(l)*a&&(n=g(c,Math.round(e/a)))}})),n}function x(e){return!isNaN(e)}function j(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,t=Math.pow(10,n);return Math.round((e||0)*t)/t}function w(){return"".concat((0,c.mp)(o)," ").concat((0,c.mp)(u))}function O(e){return null===e||void 0===e?void 0:e.toLowerCase().replace(/\W+/g,"_")}function _(e){var n,t=e.split(i.sep),r=t[t.length-1].split(".");return n=1===r.length?r[0]:r.slice(0,-1).join("."),t.slice(0,t.length-1).concat(n).join(i.sep)}},59606:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/settings",function(){return t(75107)}])}},function(e){e.O(0,[844,9902,1424,1005,547,9774,2888,179],(function(){return n=59606,e(e.s=n);var n}));var n=e.O();_N_E=n}]);