mage-ai 0.8.26__py3-none-any.whl → 0.8.27__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 (107) hide show
  1. mage_ai/data_preparation/executors/streaming_pipeline_executor.py +2 -1
  2. mage_ai/data_preparation/logging/logger_manager.py +7 -1
  3. mage_ai/data_preparation/models/block/__init__.py +60 -29
  4. mage_ai/data_preparation/models/block/sql/__init__.py +25 -8
  5. mage_ai/data_preparation/models/block/sql/utils/shared.py +49 -3
  6. mage_ai/data_preparation/models/variable.py +6 -1
  7. mage_ai/data_preparation/repo_manager.py +5 -2
  8. mage_ai/data_preparation/shared/secrets.py +6 -3
  9. mage_ai/data_preparation/templates/sensors/bigquery.py +32 -0
  10. mage_ai/data_preparation/templates/sensors/mysql.py +33 -0
  11. mage_ai/data_preparation/templates/sensors/postgres.py +33 -0
  12. mage_ai/data_preparation/templates/sensors/redshift.py +33 -0
  13. mage_ai/data_preparation/templates/sensors/s3.py +11 -7
  14. mage_ai/data_preparation/templates/sensors/snowflake.py +33 -0
  15. mage_ai/io/postgres.py +13 -1
  16. mage_ai/server/constants.py +1 -1
  17. mage_ai/server/frontend_dist/404.html +2 -2
  18. mage_ai/server/frontend_dist/404.html.html +2 -2
  19. mage_ai/server/frontend_dist/_next/static/WbTBCvyjQQ9UFFLZOU1E5/_buildManifest.js +1 -0
  20. mage_ai/server/frontend_dist/_next/static/chunks/2344-f8ae030d6a6863ae.js +1 -0
  21. mage_ai/server/frontend_dist/_next/static/chunks/2626-e7fa4f83f8214c97.js +1 -0
  22. mage_ai/server/frontend_dist/_next/static/chunks/{4178-663d9f70bffc7a47.js → 4178-a6d1bd2be4706f51.js} +1 -1
  23. mage_ai/server/frontend_dist/_next/static/chunks/4261-88b0103fad331620.js +1 -0
  24. mage_ai/server/frontend_dist/_next/static/chunks/5141-57c3868a80196da8.js +1 -0
  25. mage_ai/server/frontend_dist/_next/static/chunks/6166-705b4fdecaf11e63.js +1 -0
  26. mage_ai/server/frontend_dist/_next/static/chunks/6532-b1bd0b3f422abec8.js +1 -0
  27. mage_ai/server/frontend_dist/_next/static/chunks/8180-8de652170ea5ed93.js +1 -0
  28. mage_ai/server/frontend_dist/_next/static/chunks/839-15c54471a9a9bf2e.js +1 -0
  29. mage_ai/server/frontend_dist/_next/static/chunks/{9386-9d6a4e5836229264.js → 9386-d4cc11bab74eec8d.js} +1 -1
  30. mage_ai/server/frontend_dist/_next/static/chunks/pages/{_app-624f87faa4b5ee9a.js → _app-5f3dbed367342a3d.js} +1 -1
  31. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-3046bc53d24917c7.js +1 -0
  32. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipeline-runs-f6059e27e601627c.js +1 -0
  33. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/{[...slug]-123556bdfe2e194b.js → [...slug]-050ef37b6672100a.js} +1 -1
  34. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-5f95bb4c3a2d7d46.js +1 -0
  35. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-270c0198eeef1542.js +1 -0
  36. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-c9f1df40e0aa6981.js +1 -0
  37. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/{block-runs-e0eb0098dcbf27ac.js → block-runs-d74850779dbe87b3.js} +1 -1
  38. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-848544a58563dbec.js +1 -0
  39. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{monitors-204daac985c03b62.js → monitors-675171cfd7d7b346.js} +1 -1
  40. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/{[run]-44533e244974a422.js → [run]-b2955f0ff960894e.js} +1 -1
  41. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{runs-2d41695001370abc.js → runs-219960b3cc4742e3.js} +1 -1
  42. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-1767a2f57f887ef7.js +1 -0
  43. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-0f373aaa7deb98c9.js +1 -0
  44. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{triggers-181343d8eb894426.js → triggers-bea0439ca2a862ba.js} +1 -1
  45. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-7446a70bdd8381a5.js +1 -0
  46. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users-d72dfc596e943cc4.js +1 -0
  47. mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-4c9ad80f8f9d1074.js +1 -0
  48. mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-783b9526167f1249.js +1 -0
  49. mage_ai/server/frontend_dist/index.html +2 -2
  50. mage_ai/server/frontend_dist/manage.html +4 -4
  51. mage_ai/server/frontend_dist/pipeline-runs.html +5 -5
  52. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +5 -5
  53. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +5 -5
  54. mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +2 -2
  55. mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +5 -5
  56. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +5 -5
  57. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +5 -5
  58. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +5 -5
  59. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +5 -5
  60. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +5 -5
  61. mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +5 -5
  62. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +5 -5
  63. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +5 -5
  64. mage_ai/server/frontend_dist/pipelines/[pipeline].html +2 -2
  65. mage_ai/server/frontend_dist/pipelines.html +5 -5
  66. mage_ai/server/frontend_dist/settings/account/profile.html +5 -5
  67. mage_ai/server/frontend_dist/settings/workspace/preferences.html +5 -5
  68. mage_ai/server/frontend_dist/settings/workspace/sync-data.html +5 -5
  69. mage_ai/server/frontend_dist/settings/workspace/users.html +5 -5
  70. mage_ai/server/frontend_dist/settings.html +2 -2
  71. mage_ai/server/frontend_dist/sign-in.html +9 -9
  72. mage_ai/server/frontend_dist/terminal.html +5 -5
  73. mage_ai/server/frontend_dist/test.html +3 -3
  74. mage_ai/server/frontend_dist/triggers.html +5 -5
  75. mage_ai/server/server.py +1 -6
  76. mage_ai/shared/security.py +9 -2
  77. mage_ai/shared/utils.py +7 -0
  78. mage_ai/tests/shared/test_security.py +6 -6
  79. {mage_ai-0.8.26.dist-info → mage_ai-0.8.27.dist-info}/METADATA +1 -1
  80. {mage_ai-0.8.26.dist-info → mage_ai-0.8.27.dist-info}/RECORD +86 -81
  81. mage_ai/server/frontend_dist/_next/static/chunks/1830-3882c19d710feadd.js +0 -1
  82. mage_ai/server/frontend_dist/_next/static/chunks/2344-a82a406b72fe782b.js +0 -1
  83. mage_ai/server/frontend_dist/_next/static/chunks/2626-30c0fab7c3926578.js +0 -1
  84. mage_ai/server/frontend_dist/_next/static/chunks/3688-562e0f129b09d1cd.js +0 -1
  85. mage_ai/server/frontend_dist/_next/static/chunks/3699-dcc0946dd0709216.js +0 -1
  86. mage_ai/server/frontend_dist/_next/static/chunks/4463-777e71000be29fc4.js +0 -1
  87. mage_ai/server/frontend_dist/_next/static/chunks/6532-baf1818fbc89e6c1.js +0 -1
  88. mage_ai/server/frontend_dist/_next/static/chunks/6567-2488118bb39a9d99.js +0 -1
  89. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-c580ee38f5442bef.js +0 -1
  90. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipeline-runs-dd72d2f3375064cf.js +0 -1
  91. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-26974ca695994804.js +0 -1
  92. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-df603787c041cd8a.js +0 -1
  93. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-72011b08ef047531.js +0 -1
  94. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-3b17a6d28cdde471.js +0 -1
  95. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-c31fec2be1160dbe.js +0 -1
  96. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-3a60003fce7dfb93.js +0 -1
  97. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-ebb4a57934e4fa52.js +0 -1
  98. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users-ff24167e21f2f0cf.js +0 -1
  99. mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-be9eab29e8ed712b.js +0 -1
  100. mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-e9c1789f6d5a0429.js +0 -1
  101. mage_ai/server/frontend_dist/_next/static/kiWhqtXdRSgsbVPwfDLY4/_buildManifest.js +0 -1
  102. /mage_ai/server/frontend_dist/_next/static/{kiWhqtXdRSgsbVPwfDLY4 → WbTBCvyjQQ9UFFLZOU1E5}/_middlewareManifest.js +0 -0
  103. /mage_ai/server/frontend_dist/_next/static/{kiWhqtXdRSgsbVPwfDLY4 → WbTBCvyjQQ9UFFLZOU1E5}/_ssgManifest.js +0 -0
  104. {mage_ai-0.8.26.dist-info → mage_ai-0.8.27.dist-info}/LICENSE +0 -0
  105. {mage_ai-0.8.26.dist-info → mage_ai-0.8.27.dist-info}/WHEEL +0 -0
  106. {mage_ai-0.8.26.dist-info → mage_ai-0.8.27.dist-info}/entry_points.txt +0 -0
  107. {mage_ai-0.8.26.dist-info → mage_ai-0.8.27.dist-info}/top_level.txt +0 -0
@@ -1 +0,0 @@
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 l},W:function(){return c}});var r=t(9518),i=t(23831),o=t(3055),c=34*t(49125).iI,l=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);",""],o.Mz,(function(e){return"\n border-left: 1px solid ".concat((e.theme.borders||i.Z.borders).medium,";\n ")}))},18025:function(e,n,t){"use strict";t.d(n,{J:function(){return u},U:function(){return l}});var r=t(9518),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))}))})]})]})}},32316:function(e,n,t){"use strict";t.d(n,{Z:function(){return m}});var r=t(82684),i=t(60328),o=t(67971),c=t(882),l=t(86673),u=t(99994),a=t(9518),s=t(49125),d=t(37391),p=a.default.div.withConfig({displayName:"indexstyle__TabsContainerStyle",componentId:"sc-segf7l-0"})(["padding-left:","px;padding-right:","px;"," "," ",""],s.cd*s.iI,s.cd*s.iI,(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.allowScroll&&"\n overflow: auto;\n "}),d.w5),f=t(66653),h=t(28598);var m=function(e){var n=e.allowScroll,t=e.contained,a=e.noPadding,d=e.onClickTab,m=e.selectedTabUUID,g=e.small,v=e.tabs,b=(0,r.useMemo)((function(){var e=v.length,n=[];return v.forEach((function(t,r){var a=t.Icon,p=t.IconSelected,v=t.label,b=t.uuid,j=b===m,x=j&&p||a,y=v?v():b,Z=(0,h.jsxs)(o.Z,{alignItems:"center",children:[x&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(x,{default:!j,size:2*s.iI}),(0,h.jsx)(l.Z,{mr:1})]}),y]});r>=1&&e>=2&&n.push((0,h.jsx)("div",{style:{marginLeft:1.5*s.iI}},"spacing-".concat(b))),j?n.push((0,h.jsx)(c.Z,{backgroundGradient:u.yr,backgroundPanel:!0,borderLess:!0,borderWidth:2,compact:g,onClick:function(e){(0,f.j)(e),d(t)},paddingUnitsHorizontal:2,paddingUnitsVertical:1.25,small:g,children:Z},b)):n.push((0,h.jsx)("div",{style:{padding:4},children:(0,h.jsx)(i.Z,{borderLess:!0,compact:g,default:!0,onClick:function(e){(0,f.j)(e),d(t)},outline:!0,small:g,children:Z},"button-tab-".concat(b))}))})),n}),[d,m,v]),j=(0,h.jsx)(o.Z,{alignItems:"center",children:b});return t?j:(0,h.jsx)(p,{allowScroll:n,noPadding:a,children:j})}},38341:function(e,n,t){"use strict";var r=t(21831),i=t(82394),o=t(26304),c=(t(82684),t(9518)),l=t(67971),u=t(86673),a=t(19711),s=t(23831),d=t(10503),p=t(73942),f=t(49125),h=t(28598),m=["beforeIcon","checked","disabled","errorMessage","label","labelDescription","large","meta","monospace","onClick","required","small","warning","xsmall"];function g(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?g(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):g(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var b=c.default.div.withConfig({displayName:"Checkbox__CheckboxContainer",componentId:"sc-ujqx42-0"})(["display:inline-block;vertical-align:middle;cursor:pointer;"]),j=c.default.div.withConfig({displayName:"Checkbox__ErrorContainer",componentId:"sc-ujqx42-1"})(["margin-top:4px;"]),x=c.default.input.withConfig({displayName:"Checkbox__HiddenCheckbox",componentId:"sc-ujqx42-2"})(["border:0;clip:rect(0 0 0 0);clippath:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;",""],(function(e){return e.notClickable&&"\n background-color: ".concat((e.theme.content||s.Z.content).disabled,"\n border-color: ").concat((e.theme.content||s.Z.content).disabled,"\n\n &:hover {\n cursor: not-allowed;\n }\n ")})),y=c.default.div.withConfig({displayName:"Checkbox__StyledCheckbox",componentId:"sc-ujqx42-3"})(["border-radius:","px;height:","px;transition:all 150ms;width:","px;svg{position:relative;visibility:",";}"," "," "," "," input[disabled]{cursor:default;}"," ",""],.5*f.iI,2*f.iI,2*f.iI,(function(e){return e.checked||e.required?"visible":"hidden"}),(function(e){return e.large&&"\n svg {\n left: -4px;\n top: -8px;\n }\n "}),(function(e){return!e.checked&&"\n background-color: ".concat((e.theme.background||s.Z.background).popup,";\n border: ").concat(p.PV,"px ").concat(p.M8," ").concat((e.theme.content||s.Z.content).muted,";\n ")}),(function(e){return e.checked&&"\n background-color: ".concat((e.theme.interactive||s.Z.interactive).checked,";\n border: ").concat(p.YF,"px ").concat(p.M8," transparent;\n ")}),(function(e){return e.required&&"\n background-color: ".concat((e.theme.content||s.Z.content).disabled,";\n border: ").concat(p.YF,"px ").concat(p.M8," transparent;\n ")}),(function(e){return e.disabled&&"\n background-color: ".concat((e.theme.content||s.Z.content).disabled,";\n border-color: ").concat((e.theme.content||s.Z.content).disabled,";\n\n &:hover {\n cursor: not-allowed;\n }\n ")}),(function(e){return e.warning&&"\n background-color: ".concat((e.theme.accent||s.Z.accent).warning,";\n border-color: ").concat((e.theme.interactive||s.Z.interactive).defaultBorder,"\n ")})),Z=c.default.label.withConfig({displayName:"Checkbox__LabelStyle",componentId:"sc-ujqx42-4"})(["-ms-flex-direction:column;align-items:center;display:flex;flex-direction:column;flex-direction:row;&:hover{cursor:pointer;}"]);n.Z=function(e){var n=e.beforeIcon,t=e.checked,i=e.disabled,c=e.errorMessage,s=e.label,p=e.labelDescription,g=e.large,O=e.meta,_=e.monospace,P=void 0!==_&&_,k=e.onClick,w=e.required,S=e.small,C=void 0!==S&&S,I=e.warning,D=e.xsmall,L=void 0!==D&&D,A=(0,o.Z)(e,m),T=I||!!(c||O&&O.touched&&O.error);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(Z,{onClick:function(e){e.preventDefault(),k&&k(e)},children:[(0,h.jsxs)(b,{children:[(0,h.jsx)(x,v(v({},A),{},{disabled:i?"disabled":void 0,notClickable:i})),(0,h.jsx)(y,{checked:t,disabled:i,large:g,required:w,warning:T,children:(0,h.jsx)(d.Jr,{size:f.iI*(g?3:2)})})]}),n&&(0,h.jsx)(u.Z,{ml:1,children:(0,h.jsx)(l.Z,{children:n})}),s&&(0,h.jsxs)(u.Z,{pl:1,children:["string"===typeof s&&(0,h.jsx)(a.ZP,{disabled:i,lineThrough:i,monospace:P,small:C,xsmall:L,children:s}),"string"!==typeof s&&s,p&&(0,h.jsx)(a.ZP,{muted:!0,small:!0,children:p})]})]}),(c||O&&O.touched&&O.error)&&(0,h.jsx)(j,{children:(0,h.jsx)(a.ZP,{small:!0,warning:!0,children:c?(0,r.Z)(c):O.error})})]})}},44613:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return We}});var r,i=t(77837),o=t(82394),c=t(38860),l=t.n(c),u=t(89565),a=t.n(u),s=t(12691),d=t.n(s),p=t(9518),f=t(4804),h=t(82684),m=t(86422),g=t(16634),v=t(34744),b=t(60328),j=t(38341),x=t(67971),y=t(86673),Z=t(19711),O=t(2850),_=t(49125),P=p.default.div.withConfig({displayName:"indexstyle__FilterRowStyle",componentId:"sc-kvapsi-0"})(["padding-bottom:","px;padding-top:","px;"],_.iI/2,_.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 k,w=[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"}(k||(k={}));var S=t(73942),C=t(73899);var I=(0,p.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?C.Zl:t?C.EG:r?C.hl:i?C.hM:o?C.gN:c?C.Wd:l?C.$R:"transparent"}(e),";\n ")})),D=p.default.div.withConfig({displayName:"indexstyle__LogLevelIndicatorStyle",componentId:"sc-1e2zh7m-0"})([""," border-radius:","px;height:12px;width:5px;"],I,S.n_),L=t(90211),A=t(44162),T=t(33766),E=t(28598);function R(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 N(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?R(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):R(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var M=function(e){var n=e.blocks,t=e.query,r=(0,h.useContext)(p.ThemeContext),i=(0,h.useMemo)((function(){return t["level[]"]}),[t]),c=(0,h.useMemo)((function(){return t["block_type[]"]}),[t]),l=(0,h.useMemo)((function(){return t["block_uuid[]"]}),[t]),u=(0,h.useMemo)((function(){return t["pipeline_schedule_id[]"]}),[t]),a=(0,h.useMemo)((function(){return t["pipeline_run_id[]"]}),[t]),s=(0,h.useMemo)((function(){return t["block_run_id[]"]}),[t]);return(0,E.jsx)(O.M,{children:(0,E.jsxs)(y.Z,{p:_.cd,children:[(0,E.jsxs)(y.Z,{mb:3,children:[(0,E.jsx)(y.Z,{mb:1,children:(0,E.jsx)(Z.ZP,{bold:!0,default:!0,large:!0,children:"Log level"})}),w.map((function(e){return(0,E.jsx)(b.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return(0,T.g_)(t,{level:e},{isList:!0})},children:(0,E.jsx)(P,{children:(0,E.jsxs)(x.Z,{alignItems:"center",children:[(0,E.jsx)(j.Z,{checked:Array.isArray(i)&&(null===i||void 0===i?void 0:i.includes(String(e)))}),(0,E.jsx)(y.Z,{mr:1}),(0,E.jsx)(D,N({},(0,o.Z)({},e.toLowerCase(),!0))),(0,E.jsx)(y.Z,{mr:1}),(0,E.jsx)(Z.ZP,{disableWordBreak:!0,children:(0,L.kC)(e.toLowerCase())})]})})},e)}))]}),(0,E.jsxs)(y.Z,{mb:3,children:[(0,E.jsx)(y.Z,{mb:1,children:(0,E.jsx)(Z.ZP,{bold:!0,default:!0,large:!0,children:"Block type"})}),[m.tf.DATA_LOADER,m.tf.TRANSFORMER,m.tf.DATA_EXPORTER].map((function(e){return(0,E.jsx)(b.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return(0,T.g_)(t,{block_type:e},{isList:!0})},children:(0,E.jsx)(P,{children:(0,E.jsxs)(x.Z,{alignItems:"center",children:[(0,E.jsx)(j.Z,{checked:Array.isArray(c)&&(null===c||void 0===c?void 0:c.includes(String(e)))}),(0,E.jsx)(y.Z,{mr:1}),(0,E.jsx)(g.Z,{color:(0,A.qn)(e,{theme:r}).accent,size:1.5*_.iI,square:!0}),(0,E.jsx)(y.Z,{mr:1}),(0,E.jsx)(Z.ZP,{disableWordBreak:!0,muted:!0,monospace:!0,children:e})]})})},e)}))]}),(0,E.jsxs)(y.Z,{mb:3,children:[(0,E.jsx)(y.Z,{mb:1,children:(0,E.jsx)(Z.ZP,{bold:!0,default:!0,large:!0,children:"Block"})}),n.filter((function(e){var n=e.type;return m.tf.SCRATCHPAD!==n})).map((function(e){return(0,E.jsx)(b.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return(0,T.g_)(t,{block_uuid:e.uuid},{isList:!0,resetLimitParams:!0})},children:(0,E.jsx)(P,{children:(0,E.jsxs)(x.Z,{alignItems:"center",children:[(0,E.jsx)(j.Z,{checked:Array.isArray(l)&&(null===l||void 0===l?void 0:l.includes(String(e.uuid)))}),(0,E.jsx)(y.Z,{mr:1}),(0,E.jsx)(g.Z,{color:(0,A.qn)(e.type,{blockColor:e.color,theme:r}).accent,size:1.5*_.iI,square:!0}),(0,E.jsx)(y.Z,{mr:1}),(0,E.jsx)(Z.ZP,{disableWordBreak:!0,monospace:!0,muted:!0,children:e.uuid})]})})},e.uuid)}))]}),(null===u||void 0===u?void 0:u.length)&&(0,E.jsxs)(y.Z,{mb:3,children:[(0,E.jsx)(y.Z,{mb:1,children:(0,E.jsx)(Z.ZP,{bold:!0,default:!0,large:!0,children:"Trigger"})}),u.map((function(e){return(0,E.jsx)(b.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return(0,T.g_)(t,{pipeline_schedule_id:e},{isList:!0})},children:(0,E.jsx)(P,{children:(0,E.jsxs)(x.Z,{alignItems:"center",children:[(0,E.jsx)(j.Z,{checked:Array.isArray(u)&&(null===u||void 0===u?void 0:u.includes(e))}),(0,E.jsx)(y.Z,{mr:1}),(0,E.jsx)(Z.ZP,{disableWordBreak:!0,monospace:!0,children:e})]})})},"pipeline-schedule-".concat(e))}))]}),(null===a||void 0===a?void 0:a.length)&&(0,E.jsxs)(y.Z,{mb:3,children:[(0,E.jsx)(y.Z,{mb:1,children:(0,E.jsx)(Z.ZP,{bold:!0,default:!0,large:!0,children:"Pipeline run"})}),a.map((function(e){return(0,E.jsx)(b.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return(0,T.g_)(t,{pipeline_run_id:e},{isList:!0})},children:(0,E.jsx)(P,{children:(0,E.jsxs)(x.Z,{alignItems:"center",children:[(0,E.jsx)(j.Z,{checked:Array.isArray(a)&&(null===a||void 0===a?void 0:a.includes(e))}),(0,E.jsx)(y.Z,{mr:1}),(0,E.jsx)(Z.ZP,{disableWordBreak:!0,monospace:!0,children:e})]})})},"pipeline-run-".concat(e))}))]}),(null===s||void 0===s?void 0:s.length)&&(0,E.jsxs)(y.Z,{mb:3,children:[(0,E.jsx)(y.Z,{mb:1,children:(0,E.jsx)(Z.ZP,{bold:!0,default:!0,large:!0,children:"Block run"})}),s.map((function(e){return(0,E.jsx)(b.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return(0,T.g_)(t,{block_run_id:e},{isList:!0})},children:(0,E.jsx)(P,{children:(0,E.jsxs)(x.Z,{alignItems:"center",children:[(0,E.jsx)(j.Z,{checked:Array.isArray(s)&&(null===s||void 0===s?void 0:s.includes(e))}),(0,E.jsx)(y.Z,{mr:1}),(0,E.jsx)(Z.ZP,{disableWordBreak:!0,monospace:!0,children:e})]})})},"block-run-".concat(e))}))]})]})})},B=t(93461),Y=t(11135),W=t(10919),q=t(75582),F=t(32316),J=t(87815),U=p.default.div.withConfig({displayName:"indexstyle__BarStyle",componentId:"sc-1r43sbu-0"})([""," height:","px;width:100%;"],I,.5*_.iI),H=p.default.div.withConfig({displayName:"indexstyle__BadgeStyle",componentId:"sc-1r43sbu-1"})([""," border-radius:","px;display:inline-block;padding:","px ","px;"],I,S.BG,.25*_.iI,.5*_.iI),G=t(10503),z=t(92083),X=t.n(z);function V(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?V(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):V(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Q=/([0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}) (.+)/;function $(e){var n=e.content.trim().split(Q),t=[],r=[];return n.forEach((function(e){"\n"===e?(r.length>=1&&t.push(r.join(" ").trim()),r=[]):r.filter((function(e){return e})).length<=1&&r.push(e.trim())})),t.push(r.join(" ").trim()),t.map((function(n){return function(e){var n=e.content.trim().match(Q),t=null===n||void 0===n?void 0:n[1],r=null===n||void 0===n?void 0:n[2],i={};return r&&(0,L.Pb)(r)&&(i=JSON.parse(r)),K(K({},e),{},{createdAt:t,data:i})}(K(K({},e),{},{content:n}))}))}function ee(e){return e&&X().unix(e).utc().format("YYYY-MM-DD HH:mm:ss.SSS")}var ne=t(24224);function te(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 re(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?te(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):te(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ie=["error","error_stack","error_stacktrace"],oe={uuid:"Details"},ce={uuid:"Errors"};var le,ue,ae,se=function(e){var n=e.log,t=e.onClose,r=(0,h.useState)(oe),i=r[0],c=r[1],l=(0,h.useState)(!1),u=l[0],a=l[1],s=n.data,d=n.name,p=n.path,f=s||{},m=f.error,g=f.error_stack,j=f.error_stacktrace,O=f.level,P=f.timestamp,k=(0,o.Z)({},O.toLowerCase(),!0),w=(0,h.useMemo)((function(){var e=[["file name",d],["file path",p]];return Object.entries(s).forEach((function(n){var t=(0,q.Z)(n,2),r=t[0],i=t[1];ie.includes(r)||e.push([r,i])})),j&&e.push(["error",j]),(0,ne.YC)(e,(function(e){var n=(0,q.Z)(e,2),t=n[0];n[1];return t}))}),[s,j,d,p]),S=(0,h.useMemo)((function(){var e=[oe];return m&&e.push(ce),(0,E.jsx)(F.Z,{onClickTab:c,selectedTabUUID:null===i||void 0===i?void 0:i.uuid,tabs:e})}),[m,g,j,i,c]);return(0,E.jsxs)("div",{children:[(0,E.jsx)(U,re({},k)),(0,E.jsx)(y.Z,{p:_.cd,children:(0,E.jsxs)(x.Z,{alignItems:"center",justifyContent:"space-between",children:[(0,E.jsxs)(B.Z,{alignItems:"center",children:[(0,E.jsx)(H,re(re({},k),{},{children:(0,E.jsx)(Z.ZP,{bold:!0,inverted:!0,monospace:!0,small:!0,children:O})})),(0,E.jsx)(y.Z,{mr:_.cd}),(0,E.jsx)(Z.ZP,{monospace:!0,children:ee(P)})]}),(0,E.jsx)(b.Z,{iconOnly:!0,noBackground:!0,onClick:function(){return t()},children:(0,E.jsx)(G.x8,{size:1.5*_.iI})})]})}),(0,E.jsx)(v.Z,{medium:!0}),(0,E.jsx)(y.Z,{py:_.cd,children:S}),oe.uuid===(null===i||void 0===i?void 0:i.uuid)&&(0,E.jsx)(J.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,q.Z)(e,2),r=t[0],i=t[1],o="message"===r,c="tags"===r,l=i,s=i;return c?s=l=(0,L.Pb)(i)?JSON.parse(JSON.stringify(i,null,2)):JSON.stringify(i,null,2):o&&u&&(0,L.Pb)(i)&&(s=JSON.stringify(JSON.parse(i),null,2),l=(0,E.jsx)("pre",{children:s})),[(0,E.jsx)(Z.ZP,{monospace:!0,muted:!0,children:r},"".concat(r,"_").concat(n,"_key")),(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)(Z.ZP,{monospace:!0,textOverflow:!0,title:s,whiteSpaceNormal:o&&u||c,wordBreak:o&&u||c,children:[!c&&l,c&&(0,E.jsx)("pre",{children:l})]},"".concat(r,"_").concat(n,"_val")),o&&(0,E.jsx)(W.Z,{muted:!0,onClick:function(){return a((function(e){return!e}))},children:u?"Click to hide log":"Click to show full log message"})]})]})),uuid:"LogDetail"}),ce.uuid===(null===i||void 0===i?void 0:i.uuid)&&(0,E.jsxs)(y.Z,{mb:5,px:_.cd,children:[(0,E.jsx)(y.Z,{mb:1,children:(0,E.jsx)(Z.ZP,{bold:!0,children:"Error"})}),null===m||void 0===m?void 0:m.map((function(e){return e.split("\n").map((function(e){return e.split("\\n").map((function(e){return(0,E.jsx)(Z.ZP,{default:!0,monospace:!0,preWrap:!0,small:!0,children:e},e)}))}))})),g&&(0,E.jsxs)(y.Z,{mt:3,children:[(0,E.jsx)(y.Z,{mb:1,children:(0,E.jsx)(Z.ZP,{bold:!0,children:"Stack trace"})}),null===g||void 0===g?void 0:g.map((function(e){return null===e||void 0===e?void 0:e.map((function(e){return(0,E.jsx)(Z.ZP,{default:!0,monospace:!0,preWrap:!0,small:!0,children:e},e)}))}))]})]})]})},de=t(2626),pe=t(98781),fe=t(41788),he=t(54283),me=t(2713),ge=t(47999),ve=t(55378),be=t(82944),je=t(66166),xe="_limit",ye="_offset",Ze=20,Oe=[k.LAST_HOUR,k.LAST_DAY,k.LAST_WEEK,k.LAST_30_DAYS],_e=(le={},(0,o.Z)(le,k.LAST_HOUR,3600),(0,o.Z)(le,k.LAST_DAY,86400),(0,o.Z)(le,k.LAST_WEEK,604800),(0,o.Z)(le,k.LAST_30_DAYS,2592e3),le),Pe=t(84779),ke=t(42305),we=t(7715),Se=t(59e3);function Ce(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 Ie(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Ce(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ce(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"}(ae||(ae={}));var De=(ue={},(0,o.Z)(ue,xe,Ze),(0,o.Z)(ue,ye,0),ue);var Le=function(e){var n=e.allPastLogsLoaded,t=e.loadNewerLogInterval,r=e.loadPastLogInterval,i=e.selectedRange,c=e.setSelectedRange,l=(0,h.useState)(null),u=l[0],a=l[1],s=(0,h.useState)(null),d=s[0],p=s[1],f=(0,h.useState)({hour:"00",minute:"00"}),m=f[0],g=f[1],v=(0,h.useState)(new Date),j=v[0],O=v[1],P=(0,h.useState)({hour:(0,ke.lJ)(String((new Date).getUTCHours())),minute:(0,ke.lJ)(String((new Date).getUTCMinutes()))}),w=P[0],S=P[1],C=(0,Se.iV)(),I=(0,je.Z)(C);return(0,h.useEffect)((function(){if(!(0,we.Xy)(C,I)){var e=C.start_timestamp,n=C.end_timestamp;if(e){var t=(0,ke.Pc)(e),r=t.date,i=t.hour,o=t.minute;p(r),g({hour:(0,ke.lJ)(i),minute:(0,ke.lJ)(o)});var l=Math.ceil(Date.now()/1e3)-e;Math.abs(l-_e[k.LAST_DAY])<=60&&c(k.LAST_DAY)}if(n){var u=(0,ke.Pc)(n),a=u.date,s=u.hour,d=u.minute;O(a),S({hour:(0,ke.lJ)(s),minute:(0,ke.lJ)(d)})}}}),[C,I]),(0,E.jsx)(y.Z,{py:1,children:(0,E.jsxs)(x.Z,{alignItems:"center",children:[(0,E.jsx)(Y.ZP,{blackBorder:!0,disabled:n,inline:!0,onClick:r,paddingBottom:.75*_.iI,paddingTop:.75*_.iI,uuid:"logs/load_older_logs",children:n?"All past logs within range loaded":"Load older logs"}),(0,E.jsx)(y.Z,{mr:1}),(0,E.jsx)(Y.ZP,{blackBorder:!0,disabled:(null===C||void 0===C?void 0:C._offset)<=0,inline:!0,onClick:t,paddingBottom:.75*_.iI,paddingTop:.75*_.iI,uuid:"logs/load_newer_logs",children:"Load newer logs"}),(0,E.jsx)(y.Z,{mr:2}),(0,E.jsx)(ve.Z,{compact:!0,defaultColor:!0,onChange:function(e){e.preventDefault();var n=e.target.value;if(c(n),Oe.includes(n)){var t,r=(0,Pe.JI)(_e[n]);(0,T.u7)(Ie((t={},(0,o.Z)(t,ae.START,r),(0,o.Z)(t,ae.END,null),t),De))}},paddingRight:4*_.iI,placeholder:"Select time range",value:i,children:Object.values(k).map((function(e){return(0,E.jsx)("option",{value:e,children:e},e)}))}),(0,E.jsx)(y.Z,{mr:1}),i===k.CUSTOM_RANGE&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(be.Z,{compact:!0,defaultColor:!0,onClick:function(){return a(0)},paddingRight:0,placeholder:"Start",value:d?(0,ke.AY)(d,null===m||void 0===m?void 0:m.hour,null===m||void 0===m?void 0:m.minute):""}),(0,E.jsx)(ge.Z,{onClickOutside:function(){return a(null)},open:0===u,style:{position:"relative"},children:(0,E.jsx)(me.Z,{selectedDate:d,selectedTime:m,setSelectedDate:p,setSelectedTime:g})}),(0,E.jsx)(y.Z,{px:1,children:(0,E.jsx)(Z.ZP,{children:"to"})}),(0,E.jsx)(be.Z,{compact:!0,defaultColor:!0,onClick:function(){return a(1)},paddingRight:0,placeholder:"End",value:j?(0,ke.AY)(j,null===w||void 0===w?void 0:w.hour,null===w||void 0===w?void 0:w.minute):""}),(0,E.jsx)(ge.Z,{onClickOutside:function(){return a(null)},open:1===u,style:{position:"relative"},children:(0,E.jsx)(me.Z,{selectedDate:j,selectedTime:w,setSelectedDate:O,setSelectedTime:S})}),(0,E.jsx)(y.Z,{mr:1}),(0,E.jsx)(b.Z,{borderRadius:_.iI/2,onClick:function(){var e,n=(0,ke.BP)(d,m.hour,m.minute),t=(0,ke.BP)(j,w.hour,w.minute);(0,T.u7)(Ie((e={},(0,o.Z)(e,ae.START,(0,ke.A5)(n)),(0,o.Z)(e,ae.END,(0,ke.A5)(t)),e),De))},padding:"".concat(_.iI/2,"px"),primary:!0,children:"Search"})]})]})})},Ae=t(82531),Te=t(59920);function Ee(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 Re(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Ee(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ee(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Ne="log_uuid",Me="pipeline_run_id[]",Be="block_run_id[]";function Ye(e){var n=e.pipeline,t=(0,h.useContext)(p.ThemeContext),r=(0,h.useRef)(null),i=n.uuid,c=(0,h.useState)(null),l=c[0],u=c[1],s=(0,h.useState)(null),b=s[0],j=s[1],O=(0,h.useState)(null),P=O[0],w=O[1],S=(0,h.useState)(!1),C=S[0],I=S[1],R=Ae.ZP.pipelines.detail(i,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,N=(0,h.useMemo)((function(){return Re(Re({},null===R||void 0===R?void 0:R.pipeline),{},{uuid:i})}),[R,i]),q=(null===N||void 0===N?void 0:N.type)===pe.qL.INTEGRATION,F=(0,h.useMemo)((function(){return N.blocks||[]}),[N]),U=(0,h.useMemo)((function(){var e=(0,ne.HK)(F,(function(e){return e.uuid}));if(q){var n,t=(0,ne.sE)(F,(function(e){var n=e.type;return m.tf.DATA_LOADER===n})),r=t?(0,f.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 F.forEach((function(e){var n=e.uuid,i=e.type,o="".concat(n,":").concat(t);r[o]={type:i}})),Re(Re({},e),r)}),{});e=Re(Re({},i),e)}return e}),[F,q]),H=(0,Se.iV)(),z=!(null!==H&&void 0!==H&&H.start_timestamp)&&!(null!==H&&void 0!==H&&H.hasOwnProperty(Me)||null!==H&&void 0!==H&&H.hasOwnProperty(Be)),X=(0,Pe.JI)(_e[k.LAST_DAY]),V=Ae.ZP.logs.pipelines.list(l?i:null,(0,we.gR)(z?Re(Re({},l),{},{start_timestamp:X}):l,[Ne]),{refreshInterval:5e3}),K=V.data,Q=V.mutate,te=!K,re=(0,h.useMemo)((function(){var e;if(null!==K&&void 0!==K&&null!==(e=K.logs)&&void 0!==e&&e[0]){var n,t=(null===(n=K.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}}),[K]),ie=re.blockRunLogs,oe=re.pipelineRunLogs,ce=re.totalBlockRunLogCount,le=re.totalPipelineRunLogCount,ue=+(null===H||void 0===H?void 0:H._limit)>=ce&&+(null===H||void 0===H?void 0:H._limit)>=le,ae=(0,h.useMemo)((function(){return(0,ne.YC)(ie.concat(oe).reduce((function(e,n){return e.concat($(n))}),[]),(function(e){var n=e.data;return(null===n||void 0===n?void 0:n.timestamp)||0}))}),[ie,oe]),fe=(0,h.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(q)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=U[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}))}))}),[U,q,ae,l]),me=fe.length,ge=(0,je.Z)(H);(0,h.useEffect)((function(){var e;z&&(0,T.u7)((e={},(0,o.Z)(e,xe,Ze),(0,o.Z)(e,ye,0),(0,o.Z)(e,"start_timestamp",X),e))}),[z]),(0,h.useEffect)((function(){(0,we.Xy)(H,ge)||u(H)}),[H,ge]);var ve=(0,je.Z)(b);(0,h.useEffect)((function(){var e=H.log_uuid;!e||b||ve||j(ae.find((function(n){var t=n.data;return(null===t||void 0===t?void 0:t.uuid)===e})))}),[ae,H,b,ve]),(0,h.useEffect)((function(){var e;C&&!te&&(null===r||void 0===r||null===(e=r.current)||void 0===e||e.scrollIntoView(),I(!1))}),[C,te]);var be=H._limit,Oe=H._offset,ke=+(be||0),Ce=+(Oe||0),Ie=Math.max(ce,le),De=(0,h.useCallback)((function(){var e,n=ke,t=Ce;(ce>ke||le>ke)&&(n=Math.min(Ie,ke+Ze),t=Math.min(Ce+Ze,Ie-Ie%Ze),(0,T.u7)(Re(Re({},H),{},(e={},(0,o.Z)(e,xe,n),(0,o.Z)(e,ye,t),e))))}),[Ie,ke,Ce,H,ce,le]),Ee=(0,h.useCallback)((function(){var e,n=ke,t=Ce;ke>=Ze&&(n=Math.max(Ze,ke-Ze),ke>=Ie&&Ie%Ze!==0&&(n=Ie-Ie%Ze),t=Math.max(0,Ce-Ze),(0,T.u7)(Re(Re({},H),{},(e={},(0,o.Z)(e,xe,n),(0,o.Z)(e,ye,t),e))))}),[Ie,ke,Ce,H]);return(0,E.jsxs)(de.Z,{after:b&&(0,E.jsx)(se,{log:b,onClose:function(){(0,T.u7)((0,o.Z)({},Ne,null)),j(null)}}),afterHidden:!b,afterWidth:80*_.iI,before:(0,E.jsx)(M,{blocks:F,query:l}),beforeWidth:20*_.iI,breadcrumbs:[{label:function(){return"Logs"}}],pageName:Te.M.PIPELINE_LOGS,pipeline:N,subheader:null,title:function(e){var n=e.name;return"".concat(n," logs")},uuid:"pipeline/logs",children:[(0,E.jsx)(y.Z,{px:_.cd,py:1,children:(0,E.jsxs)(Z.ZP,{children:[!te&&(0,E.jsxs)(E.Fragment,{children:[(0,L.x6)(me)," logs found",(0,E.jsx)(Le,{allPastLogsLoaded:ue,loadNewerLogInterval:Ee,loadPastLogInterval:De,selectedRange:P,setSelectedRange:w})]}),te&&"Searching..."]})}),(0,E.jsx)(v.Z,{light:!0}),te&&(0,E.jsx)(y.Z,{p:_.cd,children:(0,E.jsx)(he.Z,{})}),!te&&fe.length>=1&&(0,E.jsx)(J.Z,{columnFlex:[null,null,1,9,null],columnMaxWidth:function(e){return 3===e?"100px":null},columns:[{label:function(){return""},uuid:"!"},{uuid:"Date"},{uuid:"Block"},{uuid:"Message"},{label:function(){return""},uuid:">"}],compact:!0,onClickRow:function(e){var n,t=fe[e],r=null===(n=t.data)||void 0===n?void 0:n.uuid;l.log_uuid===r&&(r=null),(0,T.u7)((0,o.Z)({},Ne,r)),j(r?t:null)},rows:null===fe||void 0===fe?void 0:fe.map((function(e){var n,r,c,l=e.content,u=(e.createdAt,e.data),s=e.name,p=u||{},f=p.block_uuid,h=p.level,m=p.message,v=(p.pipeline_uuid,p.timestamp),b=f||s.split(".log")[0],j=b.split(":");pe.qL.INTEGRATION===N.type&&(b=j[0],r=j[1],c=j[2]);var O=U[b];if(O||(O=U[j[0]]),O){var P=(0,A.qn)(O.type,{blockColor:O.color,theme:t}).accent;n=(0,E.jsx)(x.Z,{alignItems:"center",children:(0,E.jsx)(d(),{as:"/pipelines/".concat(i,"/edit?block_uuid=").concat(b),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,E.jsxs)(W.Z,{block:!0,fullWidth:!0,sameColorAsText:!0,verticalAlignContent:!0,children:[(0,E.jsx)(g.Z,{color:P,size:1.5*_.iI,square:!0}),(0,E.jsx)(y.Z,{mr:1}),(0,E.jsxs)(Z.ZP,{monospace:!0,children:[b,r&&": ",r&&(0,E.jsx)(Z.ZP,{default:!0,inline:!0,monospace:!0,children:r}),c>=0&&": ",c>=0&&(0,E.jsx)(Z.ZP,{default:!0,inline:!0,monospace:!0,children:c})]})]})})})}return[(0,E.jsx)(B.Z,{alignItems:"center",justifyContent:"center",children:(0,E.jsx)(D,Re({},(0,o.Z)({},null===h||void 0===h?void 0:h.toLowerCase(),!0)))},"log_type"),(0,E.jsx)(Z.ZP,{default:!0,monospace:!0,children:ee(v)},"log_timestamp"),n,(0,E.jsx)(Z.ZP,{monospace:!0,preWrap:!0,textOverflow:!0,title:m||l,children:(0,E.jsx)(a(),{children:m||l})},"log_message"),(0,E.jsx)(B.Z,{flex:1,justifyContent:"flex-end",children:(0,E.jsx)(G._Q,{default:!0,size:2*_.iI})},"chevron_right_icon")]})),uuid:"logs"}),(0,E.jsx)(y.Z,{p:_.cd,ref:r,children:(0,E.jsx)(Y.ZP,{blackBorder:!0,inline:!0,onClick:function(){I(!0),"0"===(null===H||void 0===H?void 0:H._offset)&&(null===H||void 0===H?void 0:H._limit)===String(Ze)?Q(null):(0,T.u7)({_limit:Ze,_offset:0})},paddingBottom:.75*_.iI,paddingTop:.75*_.iI,uuid:"logs/toolbar/load_newest",children:"Load latest logs"})})]})}Ye.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 We=(0,fe.Z)(Ye)},42305:function(e,n,t){"use strict";t.d(n,{A5:function(){return d},AY:function(){return p},BP:function(){return s},JX:function(){return a},OC:function(){return o},Pc:function(){return f},d$:function(){return u},lJ:function(){return h},n1:function(){return l}});var r=t(92083),i=t.n(r),o="YYYY-MM-DD HH:mm:ss",c="YYYY-MM-DD HH:mm",l="YYYY-MM-DD";function u(e,n){var t=n.utcFormat,r=n.dayAgo,o=i()(e);return t&&(o=o.utc()),r&&(o=o.subtract(1,"days")),o.format(c)}function a(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i().unix(e).format(null!==n&&void 0!==n&&n.withSeconds?o:c)}function s(e,n,t){return i()(e).utc().hours(+n).minutes(+t).format()}function d(e){return i()(e).unix()}function p(e,n,t){return"".concat(e.toISOString().split("T")[0]," ").concat(n,":").concat(t)}function f(e){var n=i().unix(+e).utc();return{date:n.toDate(),hour:String(n.hour()),minute:String(n.minute())}}function h(e){return e.padStart(2,"0")}},84779:function(e,n,t){"use strict";t.d(n,{DU:function(){return c},JI:function(){return l},Jw:function(){return o}});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):"")},o=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,t=parseFloat(e).toFixed(n);return 0===e&&(t=parseFloat(e).toFixed(0)),i(t)};function c(e){if(void 0===e)return"";var n=1===e||0===e?100*e:(100*e).toFixed(2);return"".concat(n,"%")}function l(e){var n=Math.floor(Date.now()/1e3);return e>0?n-e:n}},33766:function(e,n,t){"use strict";t.d(n,{g_:function(){return p},u7:function(){return d}});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}function d(e){var n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.replaceParams,o=t.pushHistory,u=i?{}:(0,l.iV)();n=window.location.pathname;var a=o?c().push:c().replace,d=s(s({},u),e);Object.entries(e).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1];"undefined"!==typeof i&&null!==i||delete d[t]}));var p=(0,l.uM)(d);p.length>=1&&(p="?".concat(p));var f="".concat(n.split("?")[0]).concat(p);return a(c().router.pathname,f,{shallow:!0})}function p(e,n,t){var i=t.addingMultipleValues,o=t.isList,c=t.itemsPerPage,l=t.resetLimitParams,a=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,"[]");a[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=a[c];l&&Array.isArray(l)?(l=l.map(String)).includes(o)?a[c]=(0,u.Od)(l,(function(e){return e===o})):a[c]=l.concat(o):a[c]=[o]})):a=s(s({},a),n),l&&(a._limit=c||20,a._offset=0),d(a)}},62453:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/logs",function(){return t(44613)}])}},function(e){e.O(0,[3850,2083,4804,9565,4495,2344,9386,1830,2626,4463,9774,2888,179],(function(){return n=62453,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4947],{44162:function(n,e,t){"use strict";t.d(e,{HC:function(){return x},Kf:function(){return s},Nk:function(){return p},gE:function(){return v},jv:function(){return m},nz:function(){return f},oh:function(){return a},qn:function(){return l},t1:function(){return h},y9:function(){return b}});var r=t(9518),i=t(23831),o=t(86422),c=t(73942),u=t(49125),d=t(90880),a=68;function l(n,e){var t,r,c=((null===e||void 0===e||null===(t=e.theme)||void 0===t?void 0:t.borders)||i.Z.borders).light,u=((null===e||void 0===e||null===(r=e.theme)||void 0===r?void 0:r.monotone)||i.Z.monotone).grey500,d=e||{},a=d.blockColor,l=d.isSelected,s=d.theme;return l?c=((null===s||void 0===s?void 0:s.content)||i.Z.content).active:o.tf.TRANSFORMER===n||a===o.Lq.PURPLE?(c=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).purple,u=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).purpleLight):o.tf.DATA_EXPORTER===n||a===o.Lq.YELLOW?(c=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).yellow,u=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).yellowLight):o.tf.DATA_LOADER===n||a===o.Lq.BLUE?(c=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).blue,u=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).blueLight):o.tf.SENSOR===n||a===o.Lq.PINK?(c=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).pink,u=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).pinkLight):o.tf.DBT===n?(c=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).dbt,u=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).dbtLight):o.tf.EXTENSION===n||a===o.Lq.TEAL?(c=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).teal,u=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).tealLight):(o.tf.SCRATCHPAD===n||a===o.Lq.GREY||o.tf.CUSTOM===n&&!a)&&(c=((null===s||void 0===s?void 0:s.content)||i.Z.content).default,u=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).contentDefaultTransparent),{accent:c,accentLight:u}}var s=(0,r.css)([""," "," "," "," "," "," ",""],(0,d.eR)(),(function(n){return!n.selected&&!n.hasError&&"\n border-color: ".concat(l(n.blockType,n).accentLight,";\n ")}),(function(n){return n.selected&&!n.hasError&&"\n border-color: ".concat(l(n.blockType,n).accent,";\n ")}),(function(n){return!n.selected&&n.hasError&&"\n border-color: ".concat((n.theme.accent||i.Z.accent).negativeTransparent,";\n ")}),(function(n){return n.selected&&n.hasError&&"\n border-color: ".concat((n.theme.borders||i.Z.borders).danger,";\n ")}),(function(n){return n.dynamicBlock&&"\n border-style: dashed !important;\n "}),(function(n){return n.dynamicChildBlock&&"\n border-style: dotted !important;\n "})),p=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-s5rj34-0"})(["border-radius:","px;position:relative;"],c.n_),f=r.default.div.withConfig({displayName:"indexstyle__BlockHeaderStyle",componentId:"sc-s5rj34-1"})([""," border-top-left-radius:","px;border-top-right-radius:","px;border-top-style:",";border-top-width:","px;border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding:","px;position:sticky;top:-5px;"," ",""],s,c.n_,c.n_,c.M8,c.mP,c.M8,c.mP,c.M8,c.mP,u.iI,(function(n){return"\n background-color: ".concat((n.theme||i.Z).background.content,";\n ")}),(function(n){return n.zIndex&&"\n z-index: ".concat(6+(n.zIndex||0),";\n ")})),m=r.default.div.withConfig({displayName:"indexstyle__CodeContainerStyle",componentId:"sc-s5rj34-2"})([""," border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding-bottom:","px;padding-top:","px;position:relative;"," "," .line-numbers{opacity:0;}&.selected{.line-numbers{opacity:1 !important;}}"],s,c.M8,c.mP,c.M8,c.mP,u.iI,u.iI,(function(n){return"\n background-color: ".concat((n.theme.background||i.Z.background).codeTextarea,";\n ")}),(function(n){return!n.hasOutput&&"\n border-bottom-left-radius: ".concat(c.n_,"px;\n border-bottom-right-radius: ").concat(c.n_,"px;\n border-bottom-style: ").concat(c.M8,";\n border-bottom-width: ").concat(c.mP,"px;\n ")})),v=r.default.div.withConfig({displayName:"indexstyle__BlockDivider",componentId:"sc-s5rj34-3"})(["align-items:center;display:flex;height:","px;justify-content:center;position:relative;z-index:8;bottom:","px;&:hover{"," .block-divider-inner{","}}"],2*u.iI,.5*u.iI,(function(n){return n.additionalZIndex>0&&"\n z-index: ".concat(8+n.additionalZIndex,";\n ")}),(function(n){return"\n background-color: ".concat((n.theme.text||i.Z.text).fileBrowser,";\n ")})),h=r.default.div.withConfig({displayName:"indexstyle__BlockDividerInner",componentId:"sc-s5rj34-4"})(["height 1px;width:100%;position:absolute;z-index:-1;top:","px;"],1.5*u.iI),b=r.default.div.withConfig({displayName:"indexstyle__CodeHelperStyle",componentId:"sc-s5rj34-5"})(["margin-bottom:","px;padding-bottom:","px;",""],u.cd*u.iI,u.iI,(function(n){return"\n border-bottom: 1px solid ".concat((n.theme.borders||i.Z.borders).medium,";\n padding-left: ").concat(n.normalPadding?u.iI:a,"px;\n ")})),x=r.default.div.withConfig({displayName:"indexstyle__TimeTrackerStyle",componentId:"sc-s5rj34-6"})(["bottom:","px;left:","px;position:absolute;"],1*u.iI,a)},92953:function(n,e,t){"use strict";var r;t.d(e,{a:function(){return r}}),function(n){n.BLOCK_RUNS="block_runs",n.BLOCK_RUNTIME="block_runtime",n.PIPELINE_RUNS="pipeline_runs"}(r||(r={}))},87465:function(n,e,t){"use strict";t.d(e,{Z:function(){return h}});t(82684);var r=t(34376),i=t(87372),o=t(2626),c=t(86673),u=t(19711),d=t(2850),a=t(9518),l=t(23831),s=t(49125),p=a.default.div.withConfig({displayName:"indexstyle__LinkStyle",componentId:"sc-1in9sst-0"})(["padding:","px ","px;"," ",""],s.iI,s.tr,(function(n){return n.selected&&"\n background-color: ".concat((n.theme.interactive||l.Z.interactive).checked,";\n ")}),(function(n){return!n.selected&&"\n cursor: pointer;\n "})),f=t(92953),m=t(59920),v=t(28598);var h=function(n){var e=n.breadcrumbs,t=n.children,a=n.monitorType,l=n.pipeline,h=n.subheader,b=(0,r.useRouter)();return(0,v.jsx)(o.Z,{before:(0,v.jsxs)(d.M,{children:[(0,v.jsx)(c.Z,{p:s.cd,children:(0,v.jsx)(i.Z,{level:4,muted:!0,children:"Insights"})}),(0,v.jsx)(p,{onClick:function(n){n.preventDefault(),b.push("/pipelines/[pipeline]/monitors","/pipelines/".concat(null===l||void 0===l?void 0:l.uuid,"/monitors"))},selected:f.a.PIPELINE_RUNS==a,children:(0,v.jsx)(u.ZP,{children:"Pipeline runs"})}),(0,v.jsx)(p,{onClick:function(n){n.preventDefault(),b.push("/pipelines/[pipeline]/monitors/block-runs","/pipelines/".concat(null===l||void 0===l?void 0:l.uuid,"/monitors/block-runs"))},selected:f.a.BLOCK_RUNS==a,children:(0,v.jsx)(u.ZP,{children:"Block runs"})}),(0,v.jsx)(p,{onClick:function(n){n.preventDefault(),b.push("/pipelines/[pipeline]/monitors/block-runtime","/pipelines/".concat(null===l||void 0===l?void 0:l.uuid,"/monitors/block-runtime"))},selected:f.a.BLOCK_RUNTIME==a,children:(0,v.jsx)(u.ZP,{children:"Block runtime"})})]}),breadcrumbs:e,pageName:m.M.MONITOR,pipeline:l,subheader:h,uuid:"pipeline/monitor",children:t})}},2850:function(n,e,t){"use strict";t.d(e,{M:function(){return u},W:function(){return c}});var r=t(9518),i=t(23831),o=t(3055),c=34*t(49125).iI,u=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);",""],o.Mz,(function(n){return"\n border-left: 1px solid ".concat((n.theme.borders||i.Z.borders).medium,";\n ")}))},45739:function(n,e,t){"use strict";t.d(e,{K:function(){return i}});var r=t(31969),i=function(n){var e=n||r.Z,t=e.brand,i=t.earth200,o=t.earth300,c=t.earth400,u=t.energy200,d=t.energy300,a=t.energy400,l=t.fire200,s=t.fire300,p=t.fire400,f=t.water200,m=t.water300,v=t.water400,h=t.wind200,b=t.wind300,x=t.wind400,R=e.chart;return[R.backgroundPrimary,R.backgroundSecondary,R.backgroundTertiary].concat([x,v,p,a,c,b,m,s,d,o,h,f,l,u,i])}},52359:function(n,e,t){"use strict";var r=t(9518).default.div.withConfig({displayName:"YAxisLabelContainer",componentId:"sc-qwp21x-0"})(["-webkit-transform:rotate(-90deg);-moz-transform:rotate(-90deg);-o-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg);white-space:nowrap;"]);e.Z=r},344:function(n,e,t){"use strict";t.d(e,{P5:function(){return i},Vs:function(){return o}});t(90211);var r=Intl.NumberFormat("en-US",{notation:"compact",maximumFractionDigits:2});function i(n){return"number"!==typeof n?n:n>=1e4?r.format(n):n.toString()}function o(n,e,t){var r,i;if("undefined"===typeof n||"undefined"===typeof e)return 0;var o=null===n||void 0===n||null===(r=n(e,t))||void 0===r||null===(i=r.props)||void 0===i?void 0:i.children;return(Array.isArray(o)?o:[o]).join("").length}},86422:function(n,e,t){"use strict";t.d(e,{$W:function(){return p},DA:function(){return s},HX:function(){return v},J8:function(){return m},Lq:function(){return a},Qj:function(){return h},Ut:function(){return T},V4:function(){return R},VZ:function(){return f},dO:function(){return l},f2:function(){return x},iZ:function(){return b},t6:function(){return c},tf:function(){return d}});var r,i,o,c,u=t(82394);!function(n){n.PYTHON="python",n.R="r",n.SQL="sql",n.YAML="yaml"}(c||(c={}));var d,a,l=(r={},(0,u.Z)(r,c.PYTHON,"PY"),(0,u.Z)(r,c.R,"R"),(0,u.Z)(r,c.SQL,"SQL"),(0,u.Z)(r,c.YAML,"YAML"),r);!function(n){n.CHART="chart",n.CUSTOM="custom",n.DATA_EXPORTER="data_exporter",n.DATA_LOADER="data_loader",n.DBT="dbt",n.EXTENSION="extension",n.SCRATCHPAD="scratchpad",n.SENSOR="sensor",n.TRANSFORMER="transformer"}(d||(d={})),function(n){n.BLUE="blue",n.GREY="grey",n.PINK="pink",n.PURPLE="purple",n.TEAL="teal",n.YELLOW="yellow"}(a||(a={}));var s,p=[d.CHART,d.CUSTOM,d.DATA_EXPORTER,d.DATA_LOADER,d.SCRATCHPAD,d.SENSOR,d.TRANSFORMER],f=[d.DATA_EXPORTER,d.DATA_LOADER],m=[d.DATA_EXPORTER,d.DATA_LOADER,d.TRANSFORMER],v=[d.DATA_EXPORTER,d.DATA_LOADER,d.DBT,d.TRANSFORMER],h=[d.CHART,d.SCRATCHPAD,d.SENSOR],b=[d.EXTENSION,d.SCRATCHPAD];!function(n){n.EXECUTED="executed",n.FAILED="failed",n.NOT_EXECUTED="not_executed",n.UPDATED="updated"}(s||(s={}));var x=[d.CUSTOM,d.DATA_EXPORTER,d.TRANSFORMER],R=(i={},(0,u.Z)(i,d.CUSTOM,"Custom"),(0,u.Z)(i,d.DATA_EXPORTER,"Data exporter"),(0,u.Z)(i,d.DATA_LOADER,"Data loader"),(0,u.Z)(i,d.EXTENSION,"Extension"),(0,u.Z)(i,d.SCRATCHPAD,"Scratchpad"),(0,u.Z)(i,d.SENSOR,"Sensor"),(0,u.Z)(i,d.TRANSFORMER,"Transformer"),i),T=[d.DATA_LOADER,d.TRANSFORMER,d.DATA_EXPORTER];o={},(0,u.Z)(o,d.DATA_EXPORTER,"DE"),(0,u.Z)(o,d.DATA_LOADER,"DL"),(0,u.Z)(o,d.SCRATCHPAD,"SP"),(0,u.Z)(o,d.SENSOR,"SR"),(0,u.Z)(o,d.TRANSFORMER,"TF")},68805:function(n,e,t){"use strict";t.r(e);var r=t(77837),i=t(75582),o=t(82394),c=t(38860),u=t.n(c),d=t(82684),a=t(92083),l=t.n(a),s=t(16634),p=t(67971),f=t(87372),m=t(68735),v=t(87465),h=t(41788),b=t(86673),x=t(55378),R=t(19711),T=t(82531),E=t(23831),g=t(73942),A=t(43032),y=t(92953),O=t(9518),_=t(44162),Z=t(24224),D=t(28598);function S(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function C(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}function P(n){var e=n.pipeline,t=(0,d.useContext)(O.ThemeContext),r=(0,d.useState)(null),c=r[0],u=r[1],a=e.uuid,h=T.ZP.pipelines.detail(a,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,S=(0,d.useMemo)((function(){return C(C({},null===h||void 0===h?void 0:h.pipeline),{},{uuid:a})}),[h,a]),P=T.ZP.pipeline_schedules.pipelines.list(a).data,k=(0,d.useMemo)((function(){return null===P||void 0===P?void 0:P.pipeline_schedules}),[P]),N=(0,d.useMemo)((function(){return(0,Z.HK)(null===S||void 0===S?void 0:S.blocks,(function(n){return n.uuid}))||{}}),[S]),L={pipeline_uuid:a};(c||0===c)&&(L.pipeline_schedule_id=Number(c));var j=T.ZP.monitor_stats.detail("block_run_time",L),I=j.data,w=j.mutate;(0,d.useEffect)((function(){w(c)}),[w,c]);var M=((null===I||void 0===I?void 0:I.monitor_stat)||{}).stats,X=(0,d.useMemo)((function(){for(var n=new Date,e=[],t=0;t<90;t++)e.unshift(n.toISOString().split("T")[0]),n.setDate(n.getDate()-1);return e}),[]),B=(0,d.useMemo)((function(){if(M)return Object.entries(M).reduce((function(n,e){var t=(0,i.Z)(e,2),r=t[0],c=t[1].data;return C(C({},n),{},(0,o.Z)({},r,X.map((function(n){return{x:n,y:n in c?[c[n]]:null}}))))}),{})}),[M]),U=(0,d.useMemo)((function(){var n=[];return n.push({bold:!0,label:function(){return"Monitors"}}),n}),[S]);return(0,D.jsx)(v.Z,{breadcrumbs:U,monitorType:y.a.BLOCK_RUNTIME,pipeline:S,subheader:(0,D.jsx)(p.Z,{children:(0,D.jsxs)(x.Z,{backgroundColor:E.Z.interactive.defaultBackground,label:"Trigger:",onChange:function(n){var e=n.target.value;"initial"!==e?(u(e),w(e)):(w(),u(null))},value:c||"initial",children:[(0,D.jsx)("option",{value:"initial",children:"All"}),k&&k.map((function(n){return(0,D.jsx)("option",{value:n.id,children:n.name},n.id)}))]})}),children:(0,D.jsx)(b.Z,{mx:2,children:B&&Object.entries(B).map((function(n,e){var r,o,c=(0,i.Z)(n,2),u=c[0],d=c[1];return(0,D.jsxs)(b.Z,{mt:2,children:[(0,D.jsxs)(p.Z,{alignItems:"center",children:[(0,D.jsx)(b.Z,{mx:1,children:(0,D.jsx)(s.Z,{color:(0,_.qn)(null===(r=N[u])||void 0===r?void 0:r.type,{blockColor:null===(o=N[u])||void 0===o?void 0:o.color,theme:t}).accent,size:A.ZG,square:!0})}),(0,D.jsx)(f.Z,{level:4,children:u})]}),(0,D.jsx)("div",{style:{backgroundColor:E.Z.background.chartBlock,borderRadius:"".concat(g.TR,"px"),marginTop:"8px"},children:(0,D.jsx)(m.Z,{data:d,getX:function(n){return l()(n.x).valueOf()},gridProps:{stroke:"black",strokeDasharray:null,strokeOpacity:.2},height:200,hideGridX:!0,margin:{top:10,bottom:30,left:35,right:-1},noCurve:!0,renderXTooltipContent:function(n){return(0,D.jsx)(R.ZP,{center:!0,inverted:!0,small:!0,children:l()(n.x).format("MMM DD")})},renderYTooltipContent:function(n){var e,t=null===n||void 0===n||null===(e=n.y)||void 0===e?void 0:e[0];return void 0!==t&&(0,D.jsxs)(R.ZP,{center:!0,inverted:!0,small:!0,children:[t.toFixed?t.toFixed(3):t,"s"]})},thickStroke:!0,xLabelFormat:function(n){return l()(n).format("MMM DD")},xLabelRotate:!1})})]},"".concat(u,"_").concat(e))}))})})}P.getInitialProps=function(){var n=(0,r.Z)(u().mark((function n(e){var t;return u().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,h.Z)(P)},76017:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/monitors/block-runtime",function(){return t(68805)}])}},function(n){n.O(0,[3662,3850,2083,5896,2714,9832,2344,9386,1830,2626,6567,9774,2888,179],(function(){return e=76017,n(n.s=e);var e}));var e=n.O();_N_E=e}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7803],{45838:function(n,e,t){"use strict";t.d(e,{GZ:function(){return d},Vq:function(){return s},cE:function(){return f},cl:function(){return l},kA:function(){return u}});var r=t(9518),o=t(23831),i=t(37391),c=t(49125),l=r.default.div.withConfig({displayName:"indexstyle__TableContainerStyle",componentId:"sc-1wzfyed-0"})(["position:relative;overflow:auto;"," "," ",""],i.w5,(function(n){return n.minHeight&&"\n min-height: ".concat(n.minHeight,"px;\n ")}),(function(n){return n.overflowVisible&&"\n overflow: visible;\n "})),u=r.default.table.withConfig({displayName:"indexstyle__TableStyle",componentId:"sc-1wzfyed-1"})(["contain:size;width:100%;",""],(function(n){return(n.columnBorders||n.borderCollapseSeparate)&&"\n border-collapse: separate;\n "})),s=r.default.tr.withConfig({displayName:"indexstyle__TableRowStyle",componentId:"sc-1wzfyed-2"})([""," ",""],(function(n){return n.highlightOnHover&&"\n &:hover {\n background: ".concat((n.theme.interactive||o.Z.interactive).rowHoverBackground,";\n }\n ")}),(function(n){return!n.noHover&&"\n &:hover {\n background: ".concat((n.theme.interactive||o.Z.interactive).rowHoverBackground,";\n cursor: pointer;\n }\n ")})),a=(0,r.css)(["text-overflow:ellipsis;white-space:nowrap;"," "," "," "," "," ",""],(function(n){return!n.alignTop&&"\n vertical-align: middle;\n "}),(function(n){return n.alignTop&&"\n vertical-align: top;\n "}),(function(n){return!n.noBorder&&"\n border-bottom: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.compact&&"\n padding: ".concat(c.iI/2,"px ").concat(c.iI,"px;\n ")}),(function(n){return!n.compact&&"\n padding: ".concat(c.iI,"px ").concat(2*c.iI,"px;\n ")}),(function(n){return n.maxWidth&&"\n max-width: ".concat(n.maxWidth,";\n ")})),d=r.default.th.withConfig({displayName:"indexstyle__TableHeadStyle",componentId:"sc-1wzfyed-3"})([""," "," "," ",""],a,(function(n){return n.columnBorders&&"\n border: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n border-right: none;\n ")}),(function(n){return n.columnBorders&&n.last&&"\n border-right: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.sticky&&"\n background-color: ".concat((n.theme||o.Z).background.panel,";\n border-bottom: 1px solid ").concat((n.theme.borders||o.Z.borders).medium,";\n z-index: 2;\n position: sticky;\n top: 0;\n\n &:first-child {\n left: 0;\n z-index: 2;\n }\n ")})),f=r.default.td.withConfig({displayName:"indexstyle__TableDataStyle",componentId:"sc-1wzfyed-4"})([""," "," "," "," "," "," ",""],a,(function(n){return n.rowVerticalPadding&&"\n padding-top: ".concat(n.rowVerticalPadding,"px;\n padding-bottom: ").concat(n.rowVerticalPadding,"px;\n ")}),(function(n){return n.columnBorders&&"\n border-left: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.columnBorders&&n.last&&"\n border-right: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.stickyFirstColumn&&"\n background-color: ".concat((n.theme||o.Z).background.panel,";\n z-index: 1;\n position: sticky;\n left: 0;\n ")}),(function(n){return n.selected&&"\n background-color: ".concat((n.theme.interactive||o.Z.interactive).activeBorder,";\n ")}),(function(n){return n.wrapColumns&&"\n white-space: break-spaces;\n "}))},87815:function(n,e,t){"use strict";var r=t(82394),o=t(12691),i=t.n(o),c=t(82684),l=t(67971),u=t(10919),s=t(86673),a=t(19711),d=t(46261),f=t(45838),p=t(28598);function v(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function m(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?v(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):v(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}e.Z=function(n){var e=n.alignTop,t=n.borderCollapseSeparate,r=n.buildLinkProps,o=n.buildRowProps,v=n.columnBorders,h=n.columnFlex,b=n.columnMaxWidth,x=n.columns,g=void 0===x?[]:x,j=n.compact,Z=n.highlightRowOnHover,y=n.isSelectedRow,k=n.noBorder,w=n.noHeader,_=n.onClickRow,I=n.onDoubleClickRow,P=n.rows,O=n.rowVerticalPadding,N=n.stickyFirstColumn,E=n.stickyHeader,C=n.uuid,M=n.wrapColumns,S=(0,c.useMemo)((function(){return h.reduce((function(n,e){return n+(e||0)}),0)}),[h]),V=(0,c.useCallback)((function(n){if(h[n]){var e=Math.round(h[n]/S*100);return"".concat(e,"%")}return null}),[h,S]),D=(0,c.useMemo)((function(){return null===P||void 0===P?void 0:P.map((function(n,t){var l,s=null===r||void 0===r?void 0:r(t),a=(null===o||void 0===o?void 0:o(t))||{renderCell:null,renderRow:null},d=a.renderCell,h=a.renderRow,x=[];if(n.forEach((function(r,o){var i;d&&(i=d(r,o)),i||(i=(0,p.jsx)(f.cE,{alignTop:e,columnBorders:v,compact:j,last:o===n.length-1,maxWidth:null===b||void 0===b?void 0:b(o),noBorder:k,rowVerticalPadding:O,selected:null===y||void 0===y?void 0:y(t),stickyFirstColumn:N&&0===o,width:V(o),wrapColumns:M,children:r},"".concat(C,"-row-").concat(t,"-cell-").concat(o))),x.push(i)})),h)l=h(x);else{l=(0,p.jsx)(f.Vq,{highlightOnHover:Z,noHover:!(s||_),onClick:_?function(n){return function(n,e){1===(null===e||void 0===e?void 0:e.detail)?_(n):I&&2===(null===e||void 0===e?void 0:e.detail)&&I(n)}(t,n)}:null,children:x},"".concat(C,"-row-").concat(t))}return s?(0,c.createElement)(i(),m(m({},s),{},{key:"".concat(C,"-row-link-").concat(t),passHref:!0}),(0,p.jsx)(u.Z,{fullWidth:!0,noHoverUnderline:!0,noOutline:!0,style:{display:"table-row-group"},verticalAlignContent:!0,children:l})):l}))}),[e,r,V,v,b,j,o,Z,y,k,_,I,O,P,N,C,M]);return(0,p.jsxs)(f.kA,{borderCollapseSeparate:t,columnBorders:v,children:[(null===g||void 0===g?void 0:g.length)>=1&&!w&&(0,p.jsx)(f.Vq,{noHover:!0,children:g.map((function(n,e){return(0,p.jsx)(f.GZ,{columnBorders:v,compact:j,last:e===g.length-1,noBorder:k,sticky:E,children:(0,p.jsxs)(l.Z,{alignItems:"center",justifyContent:n.center?"center":"flex-start",children:[(0,p.jsx)(a.ZP,{bold:!0,leftAligned:!0,monospace:!0,muted:!0,children:n.label?n.label():n.uuid}),n.tooltipMessage&&(0,p.jsx)(s.Z,{ml:"4px",children:(0,p.jsx)(d.Z,{appearBefore:!0,label:(0,p.jsx)(a.ZP,{leftAligned:!0,children:n.tooltipMessage}),lightBackground:!0,primary:!0})})]})},"".concat(C,"-col-").concat(n.uuid,"-").concat(e))}))}),D]})}},66050:function(n,e,t){"use strict";var r;t.d(e,{V:function(){return r}}),function(n){n.CANCELLED="cancelled",n.COMPLETED="completed",n.FAILED="failed",n.INITIAL="initial",n.RUNNING="running"}(r||(r={}))},47409:function(n,e,t){"use strict";t.d(e,{D:function(){return c},V:function(){return i}});var r,o=t(82394),i=t(66050).V,c=(r={},(0,o.Z)(r,i.CANCELLED,"Cancelled"),(0,o.Z)(r,i.COMPLETED,"Done"),(0,o.Z)(r,i.FAILED,"Failed"),(0,o.Z)(r,i.INITIAL,"Ready"),(0,o.Z)(r,i.RUNNING,"Running"),r)},89745:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return cn}});var r=t(77837),o=t(38860),i=t.n(o),c=t(82684),l=t(2626),u=t(41788),s=t(75582),a=t(82394),d=t(93461),f=t(67971),p=t(87372),v=t(47409),m=t(86673),h=t(54283),b=t(19711),x=t(23831),g=t(10503),j=t(9518),Z=t(73942),y=t(2005),k=t(49125),w=t(31012),_=j.default.div.withConfig({displayName:"indexstyle__RowStyle",componentId:"sc-15svh8z-0"})(["border-radius:","px;margin:","px;overflow:hidden;"," "," "," "," "," "," &:hover{"," "," "," "," ","}"],Z.n_,k.cd*k.iI,(function(n){return"\n background-color: ".concat((n.theme.background||x.Z.background).panel,";\n border: 1px solid ").concat((n.theme.borders||x.Z.borders).dark,";\n\n &:hover {\n cursor: pointer;\n }\n ")}),(function(n){return n.selected&&n.danger&&"\n border-color: ".concat((n.theme.accent||x.Z.accent).negative,";\n ")}),(function(n){return n.selected&&n.primary&&"\n border-color: ".concat((n.theme.interactive||x.Z.interactive).linkPrimary,";\n ")}),(function(n){return n.selected&&n.default&&"\n border-color: ".concat((n.theme.interactive||x.Z.interactive).focusBackground,";\n ")}),(function(n){return n.selected&&n.success&&"\n border-color: ".concat((n.theme.background||x.Z.background).success,";\n ")}),(function(n){return n.selected&&n.warning&&"\n border-color: ".concat((n.theme.accent||x.Z.accent).warning,";\n ")}),(function(n){return n.danger&&"\n border-color: ".concat((n.theme.accent||x.Z.accent).negative,";\n ")}),(function(n){return n.primary&&"\n border-color: ".concat((n.theme.interactive||x.Z.interactive).linkPrimary,";\n ")}),(function(n){return n.default&&"\n border-color: ".concat((n.theme.interactive||x.Z.interactive).focusBackground,";\n ")}),(function(n){return n.success&&"\n border-color: ".concat((n.theme.background||x.Z.background).success,";\n ")}),(function(n){return n.warning&&"\n border-color: ".concat((n.theme.accent||x.Z.accent).warning,";\n ")})),I=(0,j.css)([""," "," "," "," ",""],(function(n){return n.danger&&"\n background-color: ".concat((n.theme.accent||x.Z.accent).negative,";\n ")}),(function(n){return n.primary&&"\n background-color: ".concat((n.theme.interactive||x.Z.interactive).linkPrimary,";\n ")}),(function(n){return n.default&&"\n background-color: ".concat((n.theme.interactive||x.Z.interactive).defaultBackground,";\n ")}),(function(n){return n.success&&"\n background-color: ".concat((n.theme.background||x.Z.background).success,";\n ")}),(function(n){return n.warning&&"\n background-color: ".concat((n.theme.accent||x.Z.accent).warning,";\n ")})),P=j.default.div.withConfig({displayName:"indexstyle__StatusStyle",componentId:"sc-15svh8z-1"})([""," ",";border-radius:","px;display:inline-block;font-family:",";padding:6px;"," "," "," "," "," ",""],I,w.iD,Z.D7,y.ry,(function(n){return n.danger&&"\n color: ".concat((n.theme.content||x.Z.content).active,";\n ")}),(function(n){return n.primary&&"\n color: ".concat((n.theme.content||x.Z.content).active,";\n ")}),(function(n){return(n.default||n.success)&&"\n "}),(function(n){return n.default&&"\n color: ".concat((n.theme.content||x.Z.content).default,";\n ")}),(function(n){return n.success&&"\n color: ".concat((n.theme.content||x.Z.content).inverted,";\n ")}),(function(n){return n.warning&&"\n color: ".concat((n.theme.content||x.Z.content).inverted,";\n ")})),O=j.default.div.withConfig({displayName:"indexstyle__BarStyle",componentId:"sc-15svh8z-2"})([""," display:flex;height:auto;width:3px;",""],I,(function(n){return n.default&&"\n background-color: ".concat((n.theme.interactive||x.Z.interactive).focusBackground,";\n ")})),N=t(90211),E=t(92083),C=t.n(E),M=t(66050),S=t(24224);function V(n){var e;return Object.keys((null===n||void 0===n||null===(e=n.metrics)||void 0===e?void 0:e.blocks)||{}).sort()}function D(n){var e,t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=null,i=null,c=null,l=null,u={},a=(null===n||void 0===n?void 0:n.block_runs)||[],d=(null===n||void 0===n||null===(e=n.metrics)||void 0===e?void 0:e.blocks)||{},f=(null===n||void 0===n||null===(t=n.metrics)||void 0===t?void 0:t.pipeline)||{},p=A(n);return Object.entries(d).forEach((function(n){var e,t=(0,s.Z)(n,2),a=t[0],d=t[1];if(!r||r===a){var v,m=d||{},h=m.destinations,b=void 0===h?{records_affected:null,records_inserted:null,records_updated:null}:h,x=m.sources,g=void 0===x?{records:null}:x,j=p[a]||[];if(r&&r===a&&j.every((function(n){var e=n.status;return M.V.COMPLETED===e}))&&null===o&&(o=0),null!==f&&void 0!==f&&null!==(e=f[a])&&void 0!==e&&e.record_counts)null===o&&(o=0),o+=Number(null===f||void 0===f||null===(v=f[a])||void 0===v?void 0:v.record_counts);else null!==g&&void 0!==g&&g.records&&(null===o&&(o=0),o+=Number(g.records));null!==b&&void 0!==b&&b.records_updated?(null===c&&(c=0),c+=Number(b.records_updated),null===l&&(l=0),l+=Number(b.records_updated)):null!==b&&void 0!==b&&b.records_inserted?(null===c&&(c=0),c+=Number(b.records_inserted),null===i&&(i=0),i+=Number(b.records_inserted)):null!==b&&void 0!==b&&b.records_affected&&(null===c&&(c=0),c+=Number(b.records_affected)),["destinations","sources"].forEach((function(n){var e=d[n]||{};null!==e&&void 0!==e&&e.error&&(u[a]||(u[a]={}),u[a][n]={error:null===e||void 0===e?void 0:e.error,errors:null===e||void 0===e?void 0:e.errors,message:null===e||void 0===e?void 0:e.message})}))}})),null===a||void 0===a||a.forEach((function(n){var e=n.block_uuid,t=n.metrics,r=n.status;if(M.V.FAILED===r&&null!==t&&void 0!==t&&t.error&&e){var o=e.split(":"),i=(0,s.Z)(o,3),c=(i[0],i[1]);i[2];u[c]||(u[c]={}),u[c][""]=t.error}})),{errors:u,records:o,recordsInserted:i,recordsProcessed:c,recordsUpdated:l}}function A(n){var e=n.block_runs,t={};return null===e||void 0===e||e.forEach((function(n){var e=n.block_uuid.split(":"),r=(0,s.Z)(e,3),o=(r[0],r[1]);r[2];t[o]||(t[o]=[]),t[o].push(n)})),t}function L(n){var e=A(n),t={};return Object.entries(e).forEach((function(n){var e=(0,s.Z)(n,2),r=e[0],o=e[1],i=o.filter((function(n){var e=n.status;return M.V.COMPLETED===e})),c=i.map((function(n){var e=n.completed_at,t=n.started_at,r=C().utc(e),o=C().utc(t);return r.diff(o,"second")})),l=i.length,u=o.length;t[r]={completed:l,runtime:c.length>=1?(0,S.Sm)(c)/c.length:null,total:u}})),t}function T(n){var e=n.block_runs,t=(null===e||void 0===e?void 0:e.length)||1,r=function(n){var e=(null===n||void 0===n?void 0:n.block_runs)||[];return null===e||void 0===e?void 0:e.filter((function(n){var e=n.status;return M.V.COMPLETED===e}))}(n).length||0;return r/t}function R(n){var e=n.completed_at,t=n.block_runs,r=void 0===t?[]:t,o=n.status;if(null===r||void 0===r||!r.length)return 0;var i=C().utc();if(e)i=C().utc(e);else if([v.V.CANCELLED,v.V.FAILED].includes(o)){var c=(0,S.YC)(r,(function(n){return n.started_at}),{ascending:!1})[0];i=C().utc(c.updated_at)}var l=C().utc(n.created_at);return i.diff(l,"second")}function B(n,e){var t,r,o,i,c,l=A(n),u=L(n),s=(null===n||void 0===n?void 0:n.metrics)||{blocks:null,pipeline:null},a=s.blocks||{},d=s.pipeline||{},f=(a[e],d[e],u[e]||{completed:null,total:null}),p=f.completed,v=f.total,m=p&&v?p/v:0,h=l[e]||[],b=h.every((function(n){var e=n.status;return M.V.COMPLETED===e})),x=(0,S.YC)(h,(function(n){return n.updated_at}),{ascending:!1})[0],g=null===(t=(0,S.YC)(h,(function(n){return n.started_at}),{ascending:!0})[0])||void 0===t?void 0:t.started_at;b?r=null===(c=(0,S.YC)(h,(function(n){return n.completed_at}),{ascending:!1})[0])||void 0===c?void 0:c.completed_at:x&&(i=null===x||void 0===x?void 0:x.updated_at);var j=b?C().utc(r||i):C().utc(),Z=C().utc(g);return{completed:p,completedAt:r,done:b,progress:m,runtime:o=j.diff(Z,"second"),startedAt:g,status:null===x||void 0===x?void 0:x.status,timeText:(0,N.zf)(o),total:v,updatedAt:i}}var z=t(28598);function F(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function U(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?F(Object(t),!0).forEach((function(e){(0,a.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):F(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var H=function(n){var e=n.onSelect,t=n.pipelineRun,r=n.selected,o=(t.block_runs,t.created_at),i=t.status,l=(0,c.useMemo)((function(){return(null===t||void 0===t?void 0:t.metrics)||{blocks:{},destination:null,pipeline:{},source:null}}),[t]),u=((0,c.useMemo)((function(){return l.blocks||{}}),[l]),(0,c.useMemo)((function(){return l.pipeline||{}}),[l])),a=l.destination,j=l.source,Z=(0,c.useMemo)((function(){return Object.keys(u).length}),[u]),y=(0,c.useMemo)((function(){return D(t)}),[t]),w=y.errors,I=y.records,E=y.recordsProcessed,C=(0,c.useMemo)((function(){return T(t)}),[t]),M=(0,c.useMemo)((function(){return[v.V.COMPLETED].includes(i)}),[i]),S=(0,c.useMemo)((function(){return{danger:v.V.FAILED===i,default:v.V.INITIAL===i,primary:v.V.RUNNING===i,success:M,warning:v.V.CANCELLED===i}}),[M,i]),V=(0,c.useMemo)((function(){if(t){var n=R(t);return(0,N.zf)(n)}}),[t]);return(0,z.jsx)(_,U(U({},S),{},{onClick:function(){return e(r?null:t.id)},selected:r,children:(0,z.jsxs)(f.Z,{fullHeight:!0,justifyContent:"space-between",children:[(0,z.jsx)(O,U({},S)),(0,z.jsx)(d.Z,{flex:1,flexDirection:"column",children:(0,z.jsxs)(m.Z,{ml:3,py:3,children:[(0,z.jsx)(p.Z,{bold:!0,level:5,monospace:!0,children:o}),(0,z.jsx)(m.Z,{fullWidth:!1,mt:2,children:(0,z.jsx)(P,U(U({},S),{},{children:(0,z.jsxs)(f.Z,{alignItems:"center",children:[M&&(0,z.jsx)(g.Jr,{inverted:!0,size:2*k.iI}),[v.V.INITIAL,v.V.RUNNING].includes(i)&&(0,z.jsx)(h.Z,{color:v.V.INITIAL!==i?x.Z.monotone.white:null,inverted:v.V.INITIAL===i,small:!0}),"\xa0",v.V.RUNNING===i&&(0,z.jsxs)(z.Fragment,{children:["\xa0",Math.round(100*C),"%"]}),![v.V.INITIAL,v.V.RUNNING].includes(i)&&v.D[i],v.V.INITIAL===i&&"Starting"]})}))}),Object.values(w).length>=1&&(0,z.jsx)(m.Z,{mt:1,children:Object.entries(w).map((function(n,e){var t=(0,s.Z)(n,2),r=t[0];t[1];return(0,z.jsxs)(b.ZP,{monospace:!0,muted:!0,small:!0,children:[r," stream failed"]},r)}))})]})}),(0,z.jsxs)(d.Z,{flex:1,children:[(0,z.jsx)(d.Z,{flex:1,flexDirection:"column",children:(0,z.jsxs)(m.Z,{ml:3,py:3,children:[(0,z.jsxs)(m.Z,{mb:1,children:[(0,z.jsx)(b.ZP,{bold:!0,muted:!0,small:!0,children:"Rows processed"}),(0,z.jsx)(b.ZP,{monospace:!0,children:E>=1?(0,N.x6)(E):"-"})]}),(0,z.jsxs)(m.Z,{mb:1,children:[(0,z.jsx)(b.ZP,{bold:!0,muted:!0,small:!0,children:"Rows remaining"}),(0,z.jsx)(b.ZP,{monospace:!0,children:I>=1&&I>=E?(0,N.x6)(I-E):"-"})]}),v.V.RUNNING!==i&&(0,z.jsxs)(m.Z,{mb:1,children:[(0,z.jsx)(b.ZP,{bold:!0,muted:!0,small:!0,children:"Runtime"}),(0,z.jsx)(b.ZP,{monospace:!0,children:V})]})]})}),(0,z.jsx)(d.Z,{flex:1,flexDirection:"column",children:(0,z.jsxs)(m.Z,{ml:3,py:3,children:[(0,z.jsxs)(m.Z,{mb:1,children:[(0,z.jsx)(b.ZP,{bold:!0,muted:!0,small:!0,children:"Source"}),(0,z.jsx)(b.ZP,{monospace:!0,children:j||"-"})]}),(0,z.jsxs)(m.Z,{mb:1,children:[(0,z.jsx)(b.ZP,{bold:!0,muted:!0,small:!0,children:"Destination"}),(0,z.jsx)(b.ZP,{monospace:!0,children:a||"-"})]}),(0,z.jsxs)(m.Z,{mb:1,children:[(0,z.jsx)(b.ZP,{bold:!0,muted:!0,small:!0,children:"Streams"}),(0,z.jsx)(b.ZP,{monospace:!0,children:Z>=1?(0,N.x6)(Z):"-"})]})]})})]})]})}))},G=t(89565),W=t.n(G),Y=t(34376),q=t(60328),J=t(10919),X=t(87815),K=j.default.div.withConfig({displayName:"indexstyle__BarStyle",componentId:"sc-1thr560-0"})(["display:flex;flex:1;"," "," ",""],(function(n){return n.even&&n.fill&&"\n background-color: ".concat((n.theme.accent||x.Z.accent).cyan,";\n ")}),(function(n){return n.even&&!n.fill&&"\n background-color: ".concat((n.theme.accent||x.Z.accent).cyanTransparent,";\n ")}),(function(n){return"\n height: ".concat((n.small?1:2)*k.iI,"px;\n ")})),Q=t(66653);var $=function(n){var e=n.onClickRow,t=n.pipelineRun,r=n.selectedStream,o=(0,Y.useRouter)(),i=(0,c.useState)(null),l=i[0],u=i[1],a=(0,c.useState)(null),d=a[0],h=a[1],x=(0,c.useMemo)((function(){return t?A(t):{}}),[t]),j=(0,c.useMemo)((function(){return t?L(t):{}}),[t]),Z=(0,c.useMemo)((function(){var n=0,e=[],t=[];if(Object.entries(j).forEach((function(r){var o=(0,s.Z)(r,2),i=(o[0],o[1]),c=i.completed,l=i.runtime,u=i.total;null===l?t.push(i):(e.push(l),n+=l*(u-c))})),0===e.length)return null;var r=(0,S.Sm)(e)/e.length;return t.forEach((function(e){var t=e.completed,o=e.total;n+=r*(o-t)})),n}),[j]),y=(0,c.useMemo)((function(){return r?j[r]:null}),[j,r]),w=(0,c.useMemo)((function(){if(r&&j){var n=j[r]||{},e=n.completed,o=n.total;if(o>=1)return e/o}else if(t)return T(t);return 0}),[y,t,r]),_=(0,c.useMemo)((function(){return(0,z.jsx)(f.Z,{children:(0,S.w6)(101).map((function(n,e){return(0,z.jsx)(K,{even:e%2===0,fill:w>0&&Math.round(100*w)>=e},e)}))})}),[w]),I=(0,c.useMemo)((function(){if(r){var n=x[r]||[],e=n.every((function(n){var e=n.status;return M.V.COMPLETED===e})),o=(0,S.YC)(n,(function(n){return n.updated_at}),{ascending:!1})[0],i=null===o||void 0===o?void 0:o.status,c=y||{},l=c.completed,u=c.runtime,s=c.total;if(e)return"Sync complete for ".concat(r);if([M.V.CANCELLED,M.V.FAILED].includes(i))return v.D[i];if(u&&s>=1){var a=Math.ceil(u*(s-l)/60);return"".concat((0,N._6)("minute",a,!0)," to completion")}return"Estimating time remaining for stream..."}if(v.V.COMPLETED===(null===t||void 0===t?void 0:t.status))return"Sync complete";if(t){if([v.V.CANCELLED,v.V.FAILED].includes(null===t||void 0===t?void 0:t.status))return v.D[null===t||void 0===t?void 0:t.status];if(v.V.INITIAL===(null===t||void 0===t?void 0:t.status))return"Initializing sync (this can take several minutes)";if(null===Z)return"Estimating time remaining...";var d=Math.ceil(Z/60);return"".concat((0,N._6)("minute",d,!0)," to completion")}return"Select a sync"}),[x,Z,y,t,r]),P=(0,c.useMemo)((function(){return t&&r?B(t,r):{completed:null,completedAt:null,done:null,progress:null,runtime:null,startedAt:null,status:null,timeText:null,total:null,updatedAt:null}}),[t,r]);(0,c.useEffect)((function(){var n;if(t){var e=R(t);u(e),n=setInterval((function(){return u((function(n){return n+1}))}),1e3)}return function(){return clearInterval(n)}}),[t]),(0,c.useEffect)((function(){var n;if(t&&r&&P){var e=(null===P||void 0===P?void 0:P.runtime)||0;h(e),n=setInterval((function(){return h((function(n){return n+1}))}),1e3)}return function(){return clearInterval(n)}}),[t,r,P]);var O=(0,c.useMemo)((function(){if(t){if(r)return null===P||void 0===P?void 0:P.timeText;var n=R(t);return(0,N.zf)(n)}}),[t,r,P]),E=(0,c.useMemo)((function(){var n=Math.floor(l%86400/3600),e=Math.floor(l%3600/60),t=Math.floor(l%60/1);return[n>=10?String(n):"0".concat(n),e>=10?String(e):"0".concat(e),t>=10?String(t):"0".concat(t)].join(":")}),[l]),C=(0,c.useMemo)((function(){var n=Math.floor(d%86400/3600),e=Math.floor(d%3600/60),t=Math.floor(d%60/1);return[n>=10?String(n):"0".concat(n),e>=10?String(e):"0".concat(e),t>=10?String(t):"0".concat(t)].join(":")}),[d]),F=(0,c.useMemo)((function(){return t?D(t):{errors:null,records:null,recordsInserted:null,recordsProcessed:null,recordsUpdated:null}}),[t]),U=F.errors,H=F.records,G=F.recordsInserted,$=F.recordsProcessed,nn=F.recordsUpdated,en=(0,c.useMemo)((function(){return t&&r?D(t,r):{errors:null,records:null,recordsInserted:null,recordsProcessed:null,recordsUpdated:null}}),[t,r]),tn=(0,c.useMemo)((function(){var n=r?null===en||void 0===en?void 0:en.records:H,e=r?null===en||void 0===en?void 0:en.recordsInserted:G,t=r?null===en||void 0===en?void 0:en.recordsProcessed:$,o=r?null===en||void 0===en?void 0:en.recordsUpdated:nn,i=[{label:"Rows fetched",value:null===n?"-":(0,N.x6)(n)}];return null===e&&null===o?i.push({label:"Rows processed",value:null===t?"-":(0,N.x6)(t)}):null!==e?i.push({label:"Rows inserted",value:(0,N.x6)(e)}):null!==o&&i.push({label:"Rows updated",value:(0,N.x6)(o)}),i.map((function(n){var e=n.label,t=n.value;return(0,z.jsxs)("div",{children:[(0,z.jsx)(b.ZP,{bold:!0,large:!0,muted:!0,children:e}),(0,z.jsx)(b.ZP,{headline:!0,children:t})]},e)}))}),[H,en,G,$,nn,O,E,status]),rn=(0,c.useMemo)((function(){if(!t)return(0,z.jsx)("div",{});var n=V(t);return(0,z.jsx)(X.Z,{columnFlex:[null,null,null,null,null,null],columns:[{uuid:"Stream"},{uuid:"Start"},{uuid:"End"},{uuid:"Time"},{uuid:"Progress"},{uuid:"Logs"}],isSelectedRow:function(e){return r&&r===n[e]},onClickRow:e,rows:n.map((function(n){var e=B(t,n),r=(e.completed,e.completedAt),i=e.done,c=e.progress,l=e.startedAt,u=e.status,s=e.timeText,a=(e.total,!!U[n]);return[(0,z.jsx)(b.ZP,{danger:a,default:!a,monospace:!0,children:n},"stream"),(0,z.jsx)(b.ZP,{default:!0,monospace:!0,children:l?l.split(".")[0]:"-"},"started_at"),(0,z.jsx)(b.ZP,{default:!0,monospace:!0,children:r?r.split(".")[0]:"-"},"completed_at"),(0,z.jsx)(b.ZP,{default:!0,children:[M.V.INITIAL,M.V.RUNNING].includes(u)?"-":s},"runtime"),(0,z.jsxs)("div",{children:[i&&(0,z.jsx)(g.Jr,{default:!0,size:2*k.iI}),!i&&(0,z.jsx)(f.Z,{children:(0,S.w6)(51).map((function(n,e){return(0,z.jsx)(K,{fill:c>0&&Math.round(50*c)>=e,even:e%2===0,small:!0},e)}))})]},"progress"),(0,z.jsx)(q.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(n){o.push("/pipelines/".concat(t.pipeline_uuid,"/logs?pipeline_run_id[]=").concat(t.id)),(0,Q.j)(n)},children:(0,z.jsx)(g.B4,{default:!0,size:2*k.iI})},"logs")]})),uuid:"".concat(null===t||void 0===t?void 0:t.id,"-streams-table")})}),[U,j,t,r]),on=(0,c.useMemo)((function(){var n,e,o,i,c,l,u,a;if(t&&r){var d=(null===t||void 0===t?void 0:t.metrics)||{blocks:null,destination:null,pipeline:null,source:null},f=null===d||void 0===d||null===(n=d.pipeline)||void 0===n||null===(e=n[r])||void 0===e||null===(o=e.bookmarks)||void 0===o?void 0:o[r],p=null===d||void 0===d||null===(i=d.blocks)||void 0===i||null===(c=i[r])||void 0===c||null===(l=c.destinations)||void 0===l||null===(u=l.state)||void 0===u||null===(a=u.bookmarks)||void 0===a?void 0:a[r];if(f||p){var v=Array.from(new Set(Object.keys(f||{}).concat(Object.keys(p||{})))).sort(),m=[];v.forEach((function(n){var e=[(0,z.jsx)(b.ZP,{bold:!0,monospace:!0,muted:!0,small:!0,children:n},n)];[f,p].forEach((function(t,r){t&&e.push((0,z.jsx)(b.ZP,{monospace:!0,small:!0,children:t[n]},"".concat(n,"-").concat(r)))})),m.push(e)}));var h=[{label:function(){return""},uuid:"column"}];return[[null===d||void 0===d?void 0:d.source,"source",f],[null===d||void 0===d?void 0:d.destination,"destination",p]].forEach((function(n){var e=(0,s.Z)(n,3),t=e[0],r=e[1];e[2]&&h.push({uuid:"".concat(t," (").concat(r,")")})})),(0,z.jsx)(X.Z,{columnFlex:[null,1,1],columns:h,rows:m,uuid:"".concat(r,"-bookmark-table")})}}}),[t,r]),cn=(0,c.useMemo)((function(){var n,e,o,i,c,l;if(t&&r){var u=(null===t||void 0===t?void 0:t.metrics)||{blocks:null,destination:null,pipeline:null,source:null},a=null===u||void 0===u||null===(n=u.blocks)||void 0===n||null===(e=n[r])||void 0===e||null===(o=e.sources)||void 0===o?void 0:o.record,d=null===u||void 0===u||null===(i=u.blocks)||void 0===i||null===(c=i[r])||void 0===c||null===(l=c.destinations)||void 0===l?void 0:l.record;if(a||d){var f=Object.keys(d||a||{}).sort(),p=[];f.forEach((function(n){var e=[(0,z.jsx)(b.ZP,{bold:!0,monospace:!0,muted:!0,small:!0,children:n},n)];[a,d].forEach((function(t,r){if(t){var o=t[n],i="object"===typeof o;e.push((0,z.jsxs)(b.ZP,{monospace:!0,small:!0,textOverflow:!0,whiteSpaceNormal:!0,wordBreak:!0,children:[i&&(0,z.jsx)("pre",{children:JSON.stringify(o,null,2)}),!i&&o]},"".concat(n,"-").concat(r)))}})),p.push(e)}));var v=[{label:function(){return""},uuid:"column"}];return[[null===u||void 0===u?void 0:u.source,"source",a],[null===u||void 0===u?void 0:u.destination,"destination",d]].forEach((function(n){var e=(0,s.Z)(n,3),t=e[0],r=e[1];e[2]&&v.push({uuid:"".concat(t," (").concat(r,")")})})),(0,z.jsx)(X.Z,{columnFlex:[null,1,1],columns:v,rows:p.map((function(n){return n.map((function(n){return(0,z.jsx)(b.ZP,{default:!0,monospace:!0,children:n},n)}))})),uuid:"".concat(r,"-bookmark-table")})}}}),[t,r]),ln=(0,c.useMemo)((function(){var n,e,o,i,c,l,u=null===t||void 0===t||null===(n=t.metrics)||void 0===n||null===(e=n.blocks)||void 0===e?void 0:e[r];return(null===u||void 0===u||null===(o=u.sources)||void 0===o||null===(i=o.block_tags)||void 0===i?void 0:i.destination_table)||(null===u||void 0===u||null===(c=u.destinations)||void 0===c||null===(l=c.block_tags)||void 0===l?void 0:l.destination_table)}),[t,r]);return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(m.Z,{p:3,children:[r&&(0,z.jsx)(m.Z,{mb:3,children:(0,z.jsxs)(f.Z,{alignItems:"center",children:[(0,z.jsx)(J.Z,{block:!0,onClick:function(){return o.push("/pipelines/".concat(t.pipeline_uuid,"/syncs?pipeline_run_id=").concat(t.id))},preventDefault:!0,children:(0,z.jsxs)(f.Z,{alignItems:"center",children:[(0,z.jsx)(g.Xd,{default:!0,size:1.5*k.iI}),(0,z.jsx)(m.Z,{mr:1}),(0,z.jsx)(b.ZP,{default:!0,children:"Syncs"})]})}),(0,z.jsx)(m.Z,{mx:1,children:(0,z.jsx)(b.ZP,{default:!0,monospace:!0,children:"/"})}),(0,z.jsx)(b.ZP,{bold:!0,monospace:!0,children:r})]})}),(0,z.jsxs)(f.Z,{alignItems:"center",justifyContent:"space-between",children:[(0,z.jsx)(m.Z,{mr:2,my:1,children:(0,z.jsx)(p.Z,{level:5,muted:!t,children:I})}),t&&(0,z.jsx)(q.Z,{onClick:function(){return o.push("/pipelines/".concat(t.pipeline_uuid,"/logs?pipeline_run_id[]=").concat(t.id))},small:!0,children:"Logs"})]}),(0,z.jsx)(m.Z,{mt:2,children:_}),t&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(m.Z,{mt:3,children:(0,z.jsxs)(f.Z,{justifyContent:"space-between",children:[(0,z.jsxs)("div",{children:[(0,z.jsx)(b.ZP,{bold:!0,large:!0,muted:!0,children:"Runtime"}),(0,z.jsxs)(b.ZP,{headline:!0,children:[r&&[M.V.INITIAL,M.V.RUNNING].includes(null===P||void 0===P?void 0:P.status)&&C,r&&![M.V.INITIAL,M.V.RUNNING].includes(null===P||void 0===P?void 0:P.status)&&(null===P||void 0===P?void 0:P.timeText),!r&&[v.V.INITIAL,v.V.RUNNING].includes(null===t||void 0===t?void 0:t.status)&&E,!r&&![v.V.INITIAL,v.V.RUNNING].includes(null===t||void 0===t?void 0:t.status)&&O]})]}),tn]})}),Object.values(U).length>=1&&(0,z.jsxs)(m.Z,{mt:3,children:[(0,z.jsx)(p.Z,{level:5,muted:!0,children:"Errors"}),Object.entries(U).map((function(n,e){var t=(0,s.Z)(n,2),o=t[0],i=t[1];return(!r||r===o)&&(0,z.jsx)(m.Z,{mt:e>=1?1:0,children:Object.entries(i).map((function(n){var e=(0,s.Z)(n,2),t=e[0],r=e[1],i=r.error,c=r.errors,l=r.message,u=Array.isArray(i)?i.join(" "):i;return(0,z.jsxs)("div",{children:[(0,z.jsx)(m.Z,{mb:l||(null===c||void 0===c?void 0:c.length)>=1?2:0,children:(0,z.jsxs)(b.ZP,{monospace:!0,preWrap:!0,textOverflow:!0,children:[o,!!t&&(0,z.jsxs)(b.ZP,{inline:!0,monospace:!0,muted:!0,children:["\xa0(",t,")"]}),": ",(0,z.jsx)(b.ZP,{default:!0,inline:!0,monospace:!0,children:u&&(0,z.jsx)(W(),{children:u})})]})}),(0,z.jsx)(b.ZP,{default:!0,monospace:!0,preWrap:!0,small:!0,children:l}),c.map((function(n){return(0,z.jsx)(b.ZP,{default:!0,monospace:!0,preWrap:!0,small:!0,children:n},n)}))]},"".concat(o,"-").concat(t))}))},o)}))]})]})]}),t&&!r&&(0,z.jsx)(m.Z,{my:3,children:rn}),t&&r&&(0,z.jsxs)(z.Fragment,{children:[ln&&(0,z.jsx)(m.Z,{my:3,children:(0,z.jsxs)(m.Z,{px:3,children:[(0,z.jsx)(p.Z,{level:5,children:"Table name"}),(0,z.jsx)(m.Z,{mt:1,children:(0,z.jsx)(b.ZP,{default:!0,monospace:!0,children:ln})})]})}),on&&(0,z.jsxs)(m.Z,{my:3,children:[(0,z.jsx)(m.Z,{px:3,children:(0,z.jsx)(p.Z,{level:5,children:"Bookmarks"})}),(0,z.jsx)(m.Z,{px:1,children:on})]}),cn&&(0,z.jsxs)(m.Z,{my:3,children:[(0,z.jsx)(m.Z,{px:3,children:(0,z.jsx)(p.Z,{level:5,children:"Sample row"})}),(0,z.jsx)(m.Z,{px:1,children:cn})]})]})]})},nn=t(82531),en=t(59920),tn=t(33766),rn=t(59e3);function on(n){var e=n.pipeline,t=e.uuid,r=nn.ZP.pipeline_runs.list({_limit:20,_offset:0,pipeline_uuid:t},{refreshInterval:5e3}),o=r.data,i=(r.mutate,(0,c.useMemo)((function(){return(null===o||void 0===o?void 0:o.pipeline_runs)||[]}),[o])),u=(0,rn.iV)(),s=(0,c.useState)(null),a=s[0],d=s[1],f=(0,c.useState)(null),p=f[0],v=f[1];(0,c.useEffect)((function(){null!==u&&void 0!==u&&u.pipeline_run_id?v(null===i||void 0===i?void 0:i.find((function(n){return n.id===Number(u.pipeline_run_id)}))):p&&v(null),null!==u&&void 0!==u&&u.stream?d(u.stream):a&&d(null)}),[i,u,p,a]);var m=(0,c.useCallback)((function(){var n=p?V(p):[];return(0,z.jsx)($,{onClickRow:function(e){var t=n[e];(0,tn.u7)({stream:a===t?null:t})},pipelineRun:p,selectedStream:a})}),[p,a]),h=(0,c.useMemo)((function(){var n="/pipelines/".concat(t,"/syncs");p&&(n="".concat(n,"?pipeline_run_id=").concat(p.id));var e=[{label:function(){return"Syncs"},linkProps:a?{as:n,href:"/pipelines/[pipeline]/syncs"}:null}];return a&&e.push({label:function(){return a}}),e}),[p,a]);return(0,z.jsx)(l.Z,{breadcrumbs:h,buildSidekick:m,pageName:en.M.SYNCS,pipeline:e,title:function(n){var e=n.name;return"".concat(e," syncs")},uuid:"".concat(en.M.SYNCS,"_").concat(t),children:i.map((function(n){var e=(null===p||void 0===p?void 0:p.id)===n.id;return(0,z.jsx)(H,{onSelect:function(n){return(0,tn.u7)({pipeline_run_id:n,stream:null})},pipelineRun:n,selected:e},n.id)}))})}on.getInitialProps=function(){var n=(0,r.Z)(i().mark((function n(e){var t;return i().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 cn=(0,u.Z)(on)},33766:function(n,e,t){"use strict";t.d(e,{g_:function(){return f},u7:function(){return d}});var r=t(75582),o=t(82394),i=t(34376),c=t.n(i),l=t(59e3),u=t(24224);function s(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function a(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}function d(n){var e,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.replaceParams,i=t.pushHistory,u=o?{}:(0,l.iV)();e=window.location.pathname;var s=i?c().push:c().replace,d=a(a({},u),n);Object.entries(n).forEach((function(n){var e=(0,r.Z)(n,2),t=e[0],o=e[1];"undefined"!==typeof o&&null!==o||delete d[t]}));var f=(0,l.uM)(d);f.length>=1&&(f="?".concat(f));var p="".concat(e.split("?")[0]).concat(f);return s(c().router.pathname,p,{shallow:!0})}function f(n,e,t){var o=t.addingMultipleValues,i=t.isList,c=t.itemsPerPage,l=t.resetLimitParams,s=a({},n);o?Object.entries(e).forEach((function(n){var e=(0,r.Z)(n,2),t=e[0],o=e[1];if(Array.isArray(o)){var i="".concat(t,"[]");s[i]=o.map(String)}})):i?Object.entries(e).forEach((function(n){var e=(0,r.Z)(n,2),t=e[0],o=e[1],i=String(o),c="".concat(t,"[]"),l=s[c];l&&Array.isArray(l)?(l=l.map(String)).includes(i)?s[c]=(0,u.Od)(l,(function(n){return n===i})):s[c]=l.concat(i):s[c]=[i]})):s=a(a({},s),e),l&&(s._limit=c||20,s._offset=0),d(s)}},59416:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/syncs",function(){return t(89745)}])}},function(n){n.O(0,[3850,2083,9565,2344,9386,1830,2626,9774,2888,179],(function(){return e=59416,n(n.s=e);var e}));var e=n.O();_N_E=e}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[643],{90659:function(e,n,t){"use strict";var r=t(67403),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,n){var t,o,l,c,s,u,a=!1;n||(n={}),t=n.debug||!1;try{if(l=r(),c=document.createRange(),s=document.getSelection(),(u=document.createElement("span")).textContent=e,u.ariaHidden="true",u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",(function(r){if(r.stopPropagation(),n.format)if(r.preventDefault(),"undefined"===typeof r.clipboardData){t&&console.warn("unable to use e.clipboardData"),t&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=i[n.format]||i.default;window.clipboardData.setData(o,e)}else r.clipboardData.clearData(),r.clipboardData.setData(n.format,e);n.onCopy&&(r.preventDefault(),n.onCopy(r.clipboardData))})),document.body.appendChild(u),c.selectNodeContents(u),s.addRange(c),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");a=!0}catch(d){t&&console.error("unable to copy using execCommand: ",d),t&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(n.format||"text",e),n.onCopy&&n.onCopy(window.clipboardData),a=!0}catch(d){t&&console.error("unable to copy using clipboardData: ",d),t&&console.error("falling back to prompt"),o=function(e){var n=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,n)}("message"in n?n.message:"Copy to clipboard: #{key}, Enter"),window.prompt(o,e)}}finally{s&&("function"==typeof s.removeRange?s.removeRange(c):s.removeAllRanges()),u&&document.body.removeChild(u),l()}return a}},11984:function(e,n,t){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(n,"__esModule",{value:!0}),n.CopyToClipboard=void 0;var i=c(t(82684)),o=c(t(90659)),l=["text","onCopy","options","children"];function c(e){return e&&e.__esModule?e:{default:e}}function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function u(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?s(Object(t),!0).forEach((function(n){j(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function a(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function d(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function p(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,n){return f=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},f(e,n)}function h(e){var n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,r=v(e);if(n){var i=v(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return m(this,t)}}function m(e,n){if(n&&("object"===r(n)||"function"===typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return g(e)}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function j(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var x=function(e){!function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&f(e,n)}(s,e);var n,t,r,c=h(s);function s(){var e;d(this,s);for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];return j(g(e=c.call.apply(c,[this].concat(t))),"onClick",(function(n){var t=e.props,r=t.text,l=t.onCopy,c=t.children,s=t.options,u=i.default.Children.only(c),a=(0,o.default)(r,s);l&&l(r,a),u&&u.props&&"function"===typeof u.props.onClick&&u.props.onClick(n)})),e}return n=s,(t=[{key:"render",value:function(){var e=this.props,n=(e.text,e.onCopy,e.options,e.children),t=a(e,l),r=i.default.Children.only(n);return i.default.cloneElement(r,u(u({},t),{},{onClick:this.onClick}))}}])&&p(n.prototype,t),r&&p(n,r),Object.defineProperty(n,"prototype",{writable:!1}),s}(i.default.PureComponent);n.CopyToClipboard=x,j(x,"defaultProps",{onCopy:void 0,options:void 0})},64866:function(e,n,t){"use strict";var r=t(11984).CopyToClipboard;r.CopyToClipboard=r,e.exports=r},67403:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var n=document.activeElement,t=[],r=0;r<e.rangeCount;r++)t.push(e.getRangeAt(r));switch(n.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":n.blur();break;default:n=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||t.forEach((function(n){e.addRange(n)})),n&&n.focus()}}},2850:function(e,n,t){"use strict";t.d(n,{M:function(){return c},W:function(){return l}});var r=t(9518),i=t(23831),o=t(3055),l=34*t(49125).iI,c=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);",""],o.Mz,(function(e){return"\n border-left: 1px solid ".concat((e.theme.borders||i.Z.borders).medium,";\n ")}))},56681:function(e,n,t){"use strict";t.d(n,{G:function(){return b},Z:function(){return y}});var r=t(75582),i=t(82394),o=t(26304),l=t(32316),c=t(22673),s=t(86532),u=t(86673),a=t(19711),d=t(87815),p=t(49125),f=t(19395),h=t(28598),m=["height","heightOffset","pipeline","selectedRun","selectedTab","setSelectedTab"];function g(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?g(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):g(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var j={uuid:"Run details"},x={uuid:"Dependency tree"},b=[x,j];function y(e){var n=e.height,t=e.heightOffset,i=e.pipeline,g=e.selectedRun,y=e.selectedTab,Z=e.setSelectedTab,_=v({},(0,o.Z)(e,m));g?_.blockStatus=(0,f.IJ)(null===g||void 0===g?void 0:g.block_runs):_.noStatus=!0;var O=(null===g||void 0===g?void 0:g.variables)||{};null!==g&&void 0!==g&&g.event_variables&&(O.event=g.event_variables);var P=[];O&&JSON.stringify(O,null,2).split("\n").forEach((function(e){P.push(" ".concat(e))}));var w=g&&[["Run ID",null===g||void 0===g?void 0:g.id],["Variables",(0,h.jsx)(c.Z,{language:"json",small:!0,source:P.join("\n")})]],S=g&&(0,h.jsx)(u.Z,{pb:p.cd,px:p.cd,children:(0,h.jsx)(d.Z,{alignTop:!0,columnFlex:[null,1],columnMaxWidth:function(e){return 1===e?"100px":null},rows:w.map((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1];return[(0,h.jsx)(a.ZP,{monospace:!0,muted:!0,children:t}),(0,h.jsx)(a.ZP,{monospace:!0,textOverflow:!0,children:i})]})),uuid:"LogDetail"})}),C=y&&Z;return(0,h.jsxs)(h.Fragment,{children:[C&&(0,h.jsx)(u.Z,{py:p.cd,children:(0,h.jsx)(l.Z,{onClickTab:Z,selectedTabUUID:null===y||void 0===y?void 0:y.uuid,tabs:b})}),(!C||x.uuid===(null===y||void 0===y?void 0:y.uuid))&&(0,h.jsx)(s.Z,v(v({},_),{},{height:n,heightOffset:(t||0)+(C?76:0),pipeline:i})),j.uuid===(null===y||void 0===y?void 0:y.uuid)&&S]})}},18025:function(e,n,t){"use strict";t.d(n,{J:function(){return s},U:function(){return c}});var r=t(9518),i=t(23831),o=t(73942),l=t(49125),c=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*l.iI,l.cd*l.iI,l.cd*l.iI,40*l.iI,(function(e){return!e.selected&&"\n border-color: ".concat((e.theme.borders||i.Z.borders).light,";\n ")}),(function(e){return e.selected&&"\n border-color: ".concat((e.theme.interactive||i.Z.interactive).linkPrimary,";\n ")})),s=r.default.div.withConfig({displayName:"indexstyle__DateSelectionContainer",componentId:"sc-m7tlau-1"})(["border-radius:","px;padding:","px;"," "," ",""],o.n_,l.tr,(function(e){return"\n background-color: ".concat((e.theme.interactive||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*l.iI,"px;\n ")}),(function(e){return e.topPosition&&"\n top: -".concat(42*l.iI,"px;\n ")}))},2713:function(e,n,t){"use strict";var r=t(82394),i=t(44495),o=t(67971),l=t(55378),c=t(86673),s=t(19711),u=t(18025),a=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)(u.J,{absolute:!0,topPosition:m,children:[(0,p.jsx)(i.ZP,{onChange:r,value:n}),(0,p.jsx)(c.Z,{mb:2}),(0,p.jsxs)(o.Z,{alignItems:"center",children:[(0,p.jsx)(s.ZP,{default:!0,large:!0,children:"Time (UTC):"}),(0,p.jsx)(c.Z,{pr:2}),(0,p.jsx)(l.Z,{compact:!0,monospace:!0,onChange:function(e){e.preventDefault(),f((function(n){return h(h({},n),{},{hour:e.target.value})}))},paddingRight:5*a.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)(c.Z,{px:1,children:(0,p.jsx)(s.ZP,{bold:!0,large:!0,children:":"})}),(0,p.jsx)(l.Z,{compact:!0,monospace:!0,onChange:function(e){e.preventDefault(),f((function(n){return h(h({},n),{},{minute:e.target.value})}))},paddingRight:5*a.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))}))})]})]})}},54183:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return ke}});var r,i=t(75582),o=t(77837),l=t(82394),c=t(38860),s=t.n(c),u=t(82684),a=t(83455),d=t(34376),p=t(60328),f=t(34744),h=t(67971),m=t(87372),g=t(51099),v=t(2626),j=t(97496),x=t(47409),b=t(93348),y=t(55378),Z=t(86673),_=t(87815),O=t(19711),P=t(46261),w=t(82531),S=t(56681),C=t(2850),k=t(10503),I=t(49125),E=t(59920),D=t(24224);!function(e){e.AWS="aws_event"}(r||(r={}));var T=[{label:function(){return"AWS"},uuid:r.AWS}],M=(0,D.HK)(T,(function(e){return e.uuid})),A=t(66050),R=t(58122),N=t(19395),U=t(33766),F=t(7715),z=t(9736),H=t(96510),q=t(66653),L=t(59e3),V=t(28598);function W(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 X(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?W(Object(t),!0).forEach((function(n){(0,l.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):W(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var J=function(e){var n=e.fetchPipelineSchedule,t=e.pipeline,r=e.pipelineSchedule,o=e.variables,l=(0,d.useRouter)(),c=(0,z.Ct)(),s=(0,u.useState)(null),D=s[0],T=s[1],W=(t||{}).uuid,J=r||{},B=J.id,G=J.event_matchers,K=J.name,Y=J.schedule_interval,Q=J.schedule_type,$=J.settings,ee=J.sla,ne=J.start_time,te=J.status,re=J.variables,ie=void 0===re?{}:re,oe=(0,L.iV)(),le={_limit:30,_offset:30*(null!==oe&&void 0!==oe&&oe.page?oe.page:0)};null!==oe&&void 0!==oe&&oe.status&&(le.status=oe.status);var ce=w.ZP.pipeline_runs.pipeline_schedules.list(B,le,{refreshInterval:3e3,revalidateOnFocus:!0}),se=ce.data,ue=ce.mutate,ae=(0,u.useMemo)((function(){return(null===se||void 0===se?void 0:se.pipeline_runs)||[]}),[se]),de=(0,u.useMemo)((function(){var e;return(null===se||void 0===se||null===(e=se.metadata)||void 0===e?void 0:e.count)||[]}),[se]),pe=(0,u.useState)(null),fe=pe[0],he=pe[1],me=(0,u.useMemo)((function(){var e=null!==oe&&void 0!==oe&&oe.page?oe.page:0;return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(j.Z,{fetchPipelineRuns:ue,onClickRow:function(e){return he((function(n){var t=ae[e];return(null===n||void 0===n?void 0:n.id)!==t.id?t:null}))},pipelineRuns:ae,selectedRun:fe}),(0,V.jsx)(Z.Z,{p:2,children:(0,V.jsx)(g.Z,{page:Number(e),maxPages:9,onUpdate:function(e){var n=Number(e),t=X(X({},oe),{},{page:n>=0?n:0});l.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(W,"/triggers/").concat(B,"?").concat((0,L.uM)(t)))},totalPages:Math.ceil(de/30)})})]})}),[ue,t,ae,fe]),ge=(0,u.useState)(S.G[0]),ve=ge[0],je=ge[1],xe=(0,a.Db)((function(e){return w.ZP.pipeline_schedules.useUpdate(e.id)({pipeline_schedule:(0,F.gR)(e,["id"])})}),{onSuccess:function(e){return(0,H.wD)(e,{callback:function(){n()},onErrorCallback:function(e,n){return T({errors:n,response:e})}})}}),be=(0,i.Z)(xe,2),ye=be[0],Ze=be[1].isLoading,_e=(0,u.useMemo)((function(){return b.fq.ACTIVE===te}),[te]),Oe=(0,u.useMemo)((function(){var e,n,t={default:!0,size:1.5*I.iI},r=[[(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(k.VW,X({},t)),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(O.ZP,{default:!0,children:"Trigger type"})]},"trigger_type_label"),(0,V.jsx)(O.ZP,{monospace:!0,children:null===(e=b.Z4[Q])||void 0===e?void 0:e.call(b.Z4)},"trigger_type")],[(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(k.rs,X({},t)),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(O.ZP,{default:!0,children:"Status"})]},"trigger_status_label"),(0,V.jsx)(O.ZP,{danger:!_e,monospace:!0,success:_e,children:te},"trigger_status")]];if(ee){var i=(0,N.gU)(ee),o=i.time,l=i.unit,c=1===o?l:"".concat(l,"s");r.push([(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(k.kI,X({},t)),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(O.ZP,{default:!0,children:"SLA"})]},"trigger_sla_label"),(0,V.jsx)(O.ZP,{monospace:!0,children:"".concat(o," ").concat(c)},"trigger_sla")])}(Y&&r.push([(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(k.Pf,X({},t)),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(O.ZP,{default:!0,children:"Frequency"})]},"trigger_frequency_label"),(0,V.jsx)(O.ZP,{monospace:!0,children:Y.replace("@","")},"trigger_frequency")]),ne&&r.push([(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(k.aw,X({},t)),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(O.ZP,{default:!0,children:"Start date"})]},"trigger_start_date_label"),(0,V.jsx)(O.ZP,{monospace:!0,children:ne},"trigger_start_date")]),null!==$&&void 0!==$&&$.skip_if_previous_running)&&r.push([(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(P.Z,{default:!0,label:"Skip current run if any previous runs are still in progress",size:1.5*I.iI,widthFitContent:!0}),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(O.ZP,{default:!0,children:"Skip if running"})]},"trigger_skip_if_running"),(0,V.jsx)(O.ZP,{monospace:!0,children:null===(n=$.skip_if_previous_running)||void 0===n?void 0:n.toString()},"trigger_skip_if_running_label")]);return null!==$&&void 0!==$&&$.allow_blocks_to_fail&&r.push([(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(P.Z,{default:!0,label:"Trigger runs will continue running blocks if other unrelated blocks fail",size:1.5*I.iI,widthFitContent:!0}),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(O.ZP,{default:!0,children:"Allow blocks to fail"})]},"trigger_allow_blocks_to_fail"),(0,V.jsx)(O.ZP,{monospace:!0,children:$.allow_blocks_to_fail.toString()},"trigger_allow_blocks_to_fail_label")]),(0,V.jsx)(_.Z,{columnFlex:[null,1],rows:r})}),[_e,Y,$,ee,ne,Q]),Pe=(0,u.useMemo)((function(){return ie||{}}),[ie]),we=(0,u.useMemo)((function(){var e,n=[];return(0,F.Qr)(Pe)?n=(0,R.wx)(o,(function(e){return"global"===e.uuid})):Object.entries(Pe).forEach((function(e){var t=(0,i.Z)(e,2),r=t[0],o=t[1];n.push({uuid:r,value:(0,R.FS)(o)})})),"undefined"!==typeof(n=(0,R.JZ)(n||[],Q))&&null!==(e=n)&&void 0!==e&&e.length?(0,V.jsx)(_.Z,{columnFlex:[null,1],rows:n.map((function(e){var n=e.uuid,t=e.value;return[(0,V.jsx)(O.ZP,{default:!0,monospace:!0,small:!0,children:n},"settings_variable_label_".concat(n)),(0,V.jsx)(O.ZP,{monospace:!0,small:!0,children:t},"settings_variable_".concat(n))]}))}):null}),[Q,ie,o]),Se=(0,u.useMemo)((function(){return(0,V.jsx)(_.Z,{columnFlex:[null,1],columns:[{uuid:"Provider"},{uuid:"Event"}],rows:null===G||void 0===G?void 0:G.map((function(e,n){var t=e.event_type,r=e.name;return[(0,V.jsx)(O.ZP,{default:!0,monospace:!0,children:M[t].label()},"".concat(t,"_").concat(n,"_label")),(0,V.jsx)(O.ZP,{monospace:!0,children:r},"".concat(t,"_").concat(n,"_name"))]}))})}),[G]);return(0,V.jsxs)(v.Z,{afterHidden:!fe,before:(0,V.jsxs)(C.M,{children:[(0,V.jsxs)(Z.Z,{mb:I.HN,pt:I.cd,px:I.cd,children:[(0,V.jsxs)(Z.Z,{mb:I.cd,children:[b.Xm.TIME===Q&&(0,V.jsx)(k.kO,{size:5*I.iI}),b.Xm.EVENT===Q&&(0,V.jsx)(k.Jp,{size:5*I.iI}),!Q&&(0,V.jsx)(k.VW,{size:5*I.iI})]}),(0,V.jsx)(m.Z,{children:K})]}),(0,V.jsx)(Z.Z,{px:I.cd,children:(0,V.jsx)(m.Z,{level:5,children:"Settings"})}),(0,V.jsx)(f.Z,{light:!0,mt:1,short:!0}),Oe,(null===G||void 0===G?void 0:G.length)>=1&&(0,V.jsxs)(Z.Z,{my:I.HN,children:[(0,V.jsx)(Z.Z,{px:I.cd,children:(0,V.jsx)(m.Z,{level:5,children:"Events"})}),(0,V.jsx)(f.Z,{light:!0,mt:1,short:!0}),Se]}),we&&(0,V.jsxs)(Z.Z,{my:I.HN,children:[(0,V.jsx)(Z.Z,{px:I.cd,children:(0,V.jsx)(m.Z,{level:5,children:"Runtime variables"})}),(0,V.jsx)(f.Z,{light:!0,mt:1,short:!0}),we]})]}),beforeWidth:C.W,breadcrumbs:[{label:function(){return"Triggers"},linkProps:{as:"/pipelines/".concat(W,"/triggers"),href:"/pipelines/[pipeline]/triggers"}},{label:function(){return K},linkProps:{as:"/pipelines/".concat(W,"/triggers/").concat(B),href:"/pipelines/[pipeline]/triggers/[...slug]"}}],buildSidekick:function(e){return(0,S.Z)(X(X({},e),{},{selectedRun:fe,selectedTab:ve,setSelectedTab:je}))},errors:D,pageName:E.M.TRIGGERS,pipeline:t,setErrors:T,subheader:(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(p.Z,{beforeIcon:_e?(0,V.jsx)(k.dz,{size:2*I.iI}):(0,V.jsx)(k.Py,{inverted:!c,size:2*I.iI}),danger:_e&&!c,loading:Ze,onClick:function(e){(0,q.j)(e),ye({id:B,status:_e?b.fq.INACTIVE:b.fq.ACTIVE})},outline:!0,success:!_e&&!c,children:_e?"Pause trigger":"Start trigger"}),(0,V.jsx)(Z.Z,{mr:I.cd}),!c&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(p.Z,{linkProps:{as:"/pipelines/".concat(W,"/triggers/").concat(B,"/edit"),href:"/pipelines/[pipeline]/triggers/[...slug]"},noHoverUnderline:!0,outline:!0,sameColorAsText:!0,children:"Edit trigger"}),(0,V.jsx)(Z.Z,{mr:I.cd})]}),(0,V.jsxs)(y.Z,{compact:!0,defaultColor:!0,onChange:function(e){e.preventDefault(),"all"===e.target.value?l.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(W,"/triggers/").concat(B)):(0,U.u7)({page:0,status:e.target.value})},paddingRight:4*I.iI,placeholder:"Select run status",value:(null===oe||void 0===oe?void 0:oe.status)||"all",children:[(0,V.jsx)("option",{value:"all",children:"All statuses"},"all_statuses"),Object.values(A.V).map((function(e){return(0,V.jsx)("option",{value:e,children:x.D[e]},e)}))]})]}),title:function(){return K},uuid:"triggers/detail",children:[(0,V.jsx)(Z.Z,{mt:I.cd,px:I.cd,children:(0,V.jsx)(m.Z,{level:5,children:"Runs for this trigger"})}),(0,V.jsx)(f.Z,{light:!0,mt:I.cd,short:!0}),me]})},B=t(21831),G=t(21764),K=t(2713),Y=t(38341),Q=t(47999),$=t(22673),ee=t(65730),ne=t(93461),te=t(10919),re=t(26304),ie=t(9518),oe=t(23831),le=t(2005),ce=t(31012),se=["children","large","lineHeight","ordered"];function ue(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 ae(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ue(Object(t),!0).forEach((function(n){(0,l.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ue(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var de=(0,ie.css)([""," "," "," "," "," "," "," "," "," ",""],(function(e){return!e.muted&&"\n color: ".concat((e.theme.content||oe.Z.content).default,";\n ")}),(function(e){return e.muted&&"\n color: ".concat((e.theme.content||oe.Z.content).muted,";\n ")}),(function(e){return e.inverted&&"\n color: ".concat((e.theme.content||oe.Z.content).inverted,";\n ")}),(function(e){return e.color&&"\n color: ".concat(e.color,";\n ")}),(function(e){return!e.monospace&&"\n font-family: ".concat(le.ry,";\n ")}),(function(e){return e.monospace&&"\n font-family: ".concat(le.Vp,";\n ")}),(function(e){return e.large&&"\n ".concat(ce.x_,"\n ")}),(function(e){return!e.large&&!e.small&&"\n ".concat(ce.i3,"\n ")}),(function(e){return e.small&&"\n ".concat(ce.J5,"\n ")}),(function(e){return e.lineHeight&&"\n line-height: ".concat(e.lineHeight,"px !important;\n ")})),pe=ie.default.ul.withConfig({displayName:"List__UnorderedListStyle",componentId:"sc-1f6yhbi-0"})(["",""],de),fe=ie.default.ol.withConfig({displayName:"List__OrderedListStyle",componentId:"sc-1f6yhbi-1"})(["",""],de),he=ie.default.li.withConfig({displayName:"List__ListItemStyle",componentId:"sc-1f6yhbi-2"})(["",""],(function(e){return e.large&&e.marginTop&&"\n margin-top: ".concat(1*I.iI,"px;\n ")}));var me=function(e){var n=e.children,t=e.large,r=e.lineHeight,i=e.ordered,o=(0,re.Z)(e,se),l=i?fe:pe;return(0,V.jsx)(l,ae(ae({large:t,lineHeight:r},o),{},{children:u.Children.map(n,(function(e,n){return(0,V.jsx)(he,ae(ae({large:t,marginTop:n>=1},o),{},{children:u.cloneElement(e)}),e.props.key)}))}))},ge=t(98781),ve=t(82944),je=t(70902),xe=t(18025);function be(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 ye(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?be(Object(t),!0).forEach((function(n){(0,l.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):be(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Ze=function(e){var n=[{description:function(){return"This pipeline will run continuously on an interval or just once."},label:function(){return"Schedule"},uuid:b.Xm.TIME},{description:function(){return"This pipeline will run when a specific event occurs."},label:function(){return"Event"},uuid:b.Xm.EVENT},{description:function(){return"Run this pipeline when you make an API call."},label:function(){return"API"},uuid:b.Xm.API}];return e?n.slice(0,1):n};var _e=function(e){var n=e.fetchPipelineSchedule,t=e.pipeline,r=e.pipelineSchedule,o=e.variables,c=(0,d.useRouter)(),s=null===t||void 0===t?void 0:t.uuid,g=null===r||void 0===r?void 0:r.id,j=(null===t||void 0===t?void 0:t.type)===ge.qL.STREAMING,x=(0,u.useState)(null),P=x[0],S=x[1],C=(0,u.useState)([]),M=C[0],A=C[1],U=(0,u.useState)(!1),z=U[0],q=U[1],L=(0,u.useState)(!1),W=L[0],X=L[1],J=(0,u.useState)(),re=J[0],ie=J[1],oe=(0,u.useState)({}),le=oe[0],ce=oe[1],se=(0,u.useState)(r),ue=se[0],ae=se[1],de=(0,u.useState)(!1),pe=de[0],fe=de[1],he=(0,u.useState)(null),be=he[0],_e=he[1],Oe=(0,u.useMemo)((function(){return(0,R.wx)(o,(function(e){return"global"===e.uuid}))}),[o]),Pe=ue||{},we=Pe.name,Se=Pe.schedule_interval,Ce=Pe.schedule_type,ke=Pe.settings,Ie=void 0===ke?{}:ke,Ee=Pe.sla,De=Pe.start_time,Te=(Pe.token,Pe.variables),Me=void 0===Te?{}:Te;(0,u.useEffect)((function(){Ie&&ie(Ie)}),[Ie]);var Ae=(0,u.useState)(null),Re=Ae[0],Ne=Ae[1],Ue=(0,u.useState)({hour:"00",minute:"00"}),Fe=Ue[0],ze=Ue[1],He=w.ZP.event_rules.detail("aws").data,qe=(0,u.useMemo)((function(){var e;return(null===He||void 0===He||null===(e=He.event_rule)||void 0===e?void 0:e.rules)||[]}),[He]),Le=(0,u.useMemo)((function(){return(0,D.HK)(qe,(function(e){return e.name}))}),[qe]),Ve=(0,a.Db)(w.ZP.pipeline_schedules.useUpdate(g),{onSuccess:function(e){return(0,H.wD)(e,{callback:function(){n(),c.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(s,"/triggers/").concat(g))},onErrorCallback:function(e,n){return S({errors:n,response:e})}})}}),We=(0,i.Z)(Ve,2),Xe=We[0],Je=We[1].isLoading,Be=(0,u.useMemo)((function(){return Me||{}}),[Me]);(0,u.useEffect)((function(){if(De){var e=De.split(" ")[1];Ne((0,N.eI)(De)),ze({hour:e.substring(0,2),minute:e.substring(3,5)})}else{var n=new Date;Ne(n),ze({hour:String(n.getUTCHours()).padStart(2,"0"),minute:String(n.getUTCMinutes()).padStart(2,"0")})}}),[De]),(0,u.useEffect)((function(){Be&&Object.keys(Be).length>0&&q(!0)}),[Be]),(0,u.useEffect)((function(){ce(z?null===Oe||void 0===Oe?void 0:Oe.reduce((function(e,n){var t=n.uuid,r=n.value;return ye(ye({},e),{},(0,l.Z)({},t,Be[t]||r))}),{}):null)}),[Oe,z]),(0,u.useEffect)((function(){if(r&&(A(r.event_matchers),Ke?(ae(ye(ye({},r),{},{schedule_interval:"custom"})),_e(Se)):ae(j?ye(ye({},r),{},{schedule_interval:b.U5.ONCE}):r),r.sla)){X(!0);var e=(0,N.gU)(Ee),n=e.time,t=e.unit;ae((function(e){return ye(ye({},e),{},{slaAmount:n,slaUnit:t})}))}}),[r]);var Ge=(0,u.useCallback)((function(){var e=ye(ye({},(0,F.GL)(ue,["name","schedule_type"])),{},{event_matchers:[],schedule_interval:null,start_time:null,variables:(0,R.e7)(le)});if(b.Xm.EVENT===ue.schedule_type?e.event_matchers=M:(e.schedule_interval=Ke?be:ue.schedule_interval,e.start_time=Re&&null!==Fe&&void 0!==Fe&&Fe.hour&&null!==Fe&&void 0!==Fe&&Fe.minute?"".concat(Re.toISOString().split("T")[0]," ").concat(null===Fe||void 0===Fe?void 0:Fe.hour,":").concat(null===Fe||void 0===Fe?void 0:Fe.minute,":00"):null),W){var n=null===ue||void 0===ue?void 0:ue.slaAmount,t=null===ue||void 0===ue?void 0:ue.slaUnit;if(!n||isNaN(n)||!t)return void G.Am.error("Please enter a valid SLA",{position:G.Am.POSITION.BOTTOM_RIGHT,toastId:"sla_error"});e.sla=(0,N.vJ)(n,t)}else null!==r&&void 0!==r&&r.sla&&(e.sla=0);e.settings=re,Xe({pipeline_schedule:e})}),[be,Re,W,M,r,le,ue,re,Fe,Xe]),Ke=(0,u.useMemo)((function(){return Se&&!Object.values(b.U5).includes(Se)}),[Se]),Ye=(0,u.useMemo)((function(){var e=[[(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(k.KJ,{default:!0,size:1.5*I.iI}),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(O.ZP,{default:!0,children:"Trigger name"})]},"trigger_name_detail"),(0,V.jsx)(ve.Z,{monospace:!0,onChange:function(e){e.preventDefault(),ae((function(n){return ye(ye({},n),{},{name:e.target.value})}))},placeholder:"Name this trigger",value:we},"trigger_name_input_detail")],[(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(k.Pf,{default:!0,size:1.5*I.iI}),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(O.ZP,{default:!0,children:"Frequency"})]},"frequency"),(0,V.jsxs)(y.Z,{monospace:!0,onChange:function(e){e.preventDefault();var n=e.target.value;ae((function(e){return ye(ye({},e),{},{schedule_interval:n})}))},placeholder:"Choose the frequency to run",value:Se,children:[!Se&&(0,V.jsx)("option",{value:""}),Object.values(b.U5).map((function(e){return(0,V.jsx)("option",{value:e,children:e.substring(1)},e)})),(0,V.jsx)("option",{value:"custom",children:"custom"},"custom")]},"frequency_input")],[(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(k.aw,{default:!0,size:1.5*I.iI}),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(O.ZP,{default:!0,children:"Start date and time"})]},"start_time"),(0,V.jsxs)("div",{style:{minHeight:"".concat(5.75*I.iI,"px")},children:[!pe&&(0,V.jsx)(ve.Z,{monospace:!0,onClick:function(){return fe((function(e){return!e}))},placeholder:"YYYY-MM-DD HH:MM",value:Re?"".concat(Re.toISOString().split("T")[0]," ").concat(null===Fe||void 0===Fe?void 0:Fe.hour,":").concat(null===Fe||void 0===Fe?void 0:Fe.minute):""}),(0,V.jsx)("div",{style:{width:"400px"},children:(0,V.jsx)(Q.Z,{disableEscape:!0,onClickOutside:function(){return fe(!1)},open:pe,style:{position:"relative"},children:(0,V.jsx)(K.Z,{selectedDate:Re,selectedTime:Fe,setSelectedDate:Ne,setSelectedTime:ze,topPosition:!0})})})]},"start_time_input")]];return j&&e.splice(1,1),Ke&&e.splice(2,0,[(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(k.EK,{default:!0,size:1.5*I.iI}),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(O.ZP,{default:!0,children:"Cron expression"})]},"cron_expression"),(0,V.jsx)(ve.Z,{monospace:!0,onChange:function(e){e.preventDefault(),_e(e.target.value)},placeholder:"* * * * *",value:be},"cron_expression_input")]),(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(Z.Z,{mb:2,px:I.cd,children:(0,V.jsx)(m.Z,{children:"Settings"})}),(0,V.jsx)(f.Z,{light:!0,short:!0}),(0,V.jsx)(_.Z,{columnFlex:[null,1],rows:e})]})}),[be,Re,ue,pe,Fe]),Qe=(0,u.useCallback)((function(e,n){A((function(t){return Object.entries(n).forEach((function(n){var r=(0,i.Z)(n,2),o=r[0],l=r[1];t[e][o]=l})),(0,B.Z)(t)}))}),[A]),$e=(0,u.useMemo)((function(){return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(Z.Z,{mb:I.cd,px:I.cd,children:(0,V.jsx)(m.Z,{children:"Settings"})}),(0,V.jsx)(f.Z,{light:!0,short:!0}),(0,V.jsx)(_.Z,{columnFlex:[null,1],rows:[[(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(k.KJ,{default:!0,size:1.5*I.iI}),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(O.ZP,{default:!0,children:"Trigger name"})]},"trigger_name_event"),(0,V.jsx)(ve.Z,{monospace:!0,onChange:function(e){e.preventDefault(),ae((function(n){return ye(ye({},n),{},{name:e.target.value})}))},placeholder:"Name this trigger",value:we},"trigger_name_input_event")]]}),(0,V.jsxs)(Z.Z,{mb:2,mt:5,px:I.cd,children:[(0,V.jsx)(m.Z,{children:"Events"}),(0,V.jsxs)(O.ZP,{muted:!0,children:["Add 1 or more event that will trigger this pipeline to run.",(0,V.jsx)("br",{}),"If you add more than 1 event, this pipeline will trigger if any of the events are received."]}),(0,V.jsxs)(Z.Z,{mt:I.Mq,children:[(0,V.jsx)(O.ZP,{bold:!0,large:!0,children:"AWS events"}),(0,V.jsxs)(O.ZP,{muted:!0,children:["In order to retrieve all the possible AWS events you can trigger your pipeline from,",(0,V.jsx)("br",{}),"you\u2019ll need to set 3 environment variables (",(0,V.jsx)(te.Z,{href:"https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html",openNewWindow:!0,underline:!0,children:"more info here"}),"):"]}),(0,V.jsx)(Z.Z,{mt:1,children:(0,V.jsxs)(me,{monospace:!0,ordered:!0,children:[(0,V.jsx)(O.ZP,{monospace:!0,children:"AWS_REGION_NAME"}),(0,V.jsx)(O.ZP,{monospace:!0,children:"AWS_ACCESS_KEY_ID"}),(0,V.jsx)(O.ZP,{monospace:!0,children:"AWS_SECRET_ACCESS_KEY"})]})})]})]}),(0,V.jsx)(f.Z,{light:!0,short:!0}),(null===M||void 0===M?void 0:M.length)>=1&&(0,V.jsx)(_.Z,{alignTop:!0,columnFlex:[1,1,2,null],columns:[{uuid:"Provider"},{uuid:"Event"},{uuid:"Pattern"},{label:function(){return""},uuid:"delete"}],rows:null===M||void 0===M?void 0:M.map((function(e,n){var t=e.event_type,r=e.name,i=e.pattern,o=e.id||"".concat(t,"-").concat(r,"-").concat(n,"-").concat(JSON.stringify(i)),l=[];return i&&JSON.stringify(i,null,2).split("\n").forEach((function(e){l.push(" ".concat(e))})),[(0,V.jsxs)(y.Z,{monospace:!0,onChange:function(e){return Qe(n,{event_type:e.target.value})},placeholder:"Event provider",value:t||"",children:[!t&&(0,V.jsx)("option",{value:""}),T.map((function(e){var n=e.label,t=e.uuid;return(0,V.jsx)("option",{value:t,children:n()},t)}))]},"event-provider-".concat(o)),(0,V.jsxs)(y.Z,{monospace:!0,onChange:function(e){var t,r=e.target.value,i=null===(t=Le[r])||void 0===t?void 0:t.event_pattern;Qe(n,{name:r,pattern:i?JSON.parse(i):null})},placeholder:"Event name",value:r,children:[!r&&(0,V.jsx)("option",{value:""}),qe.map((function(e){var n=e.name;return(0,V.jsx)("option",{value:n,children:n},n)}))]},"event-name-".concat(o)),i&&(0,V.jsx)($.Z,{language:"json",small:!0,source:l.join("\n")}),(0,V.jsx)(p.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return A((function(e){return(0,D.oM)(e,n)}))},children:(0,V.jsx)(k.rF,{default:!0,size:2*I.iI})},"remove_event")]}))}),(0,V.jsx)(Z.Z,{p:I.cd,children:(0,V.jsx)(p.Z,{beforeIcon:(0,V.jsx)(k.mm,{size:2*I.iI}),onClick:function(){return A((function(e){return e.concat({})}))},outline:!0,children:"Add event matcher"})})]})}),[M,qe,we]),en=(0,u.useMemo)((function(){var e,n="";return n="".concat(window.origin,"/api/pipeline_schedules/").concat(null===r||void 0===r?void 0:r.id,"/pipeline_runs"),null!==r&&void 0!==r&&r.token&&(n="".concat(n,"/").concat(r.token)),(e=window.location.port)&&(n=n.replace(e,"6789")),(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(Z.Z,{mb:I.cd,px:I.cd,children:(0,V.jsx)(m.Z,{children:"Settings"})}),(0,V.jsx)(f.Z,{light:!0,short:!0}),(0,V.jsx)(_.Z,{columnFlex:[null,1],rows:[[(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(k.KJ,{default:!0,size:1.5*I.iI}),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(O.ZP,{default:!0,children:"Trigger name"})]},"trigger_name_api"),(0,V.jsx)(ve.Z,{monospace:!0,onChange:function(e){e.preventDefault(),ae((function(n){return ye(ye({},n),{},{name:e.target.value})}))},placeholder:"Name this trigger",value:we},"trigger_name_input_api")]]}),(0,V.jsxs)(Z.Z,{mb:2,mt:5,px:I.cd,children:[(0,V.jsx)(m.Z,{children:"Endpoint"}),(0,V.jsxs)(O.ZP,{muted:!0,children:["Make a ",(0,V.jsx)(O.ZP,{bold:!0,inline:!0,monospace:!0,children:"POST"})," request to the following endpoint:"]}),(0,V.jsx)(Z.Z,{mt:I.Mq,children:(0,V.jsx)(ee.Z,{copiedText:n,linkText:n,monospace:!0,withCopyIcon:!0})})]}),(0,V.jsxs)(Z.Z,{mb:2,mt:5,px:I.cd,children:[(0,V.jsx)(m.Z,{children:"Payload"}),(0,V.jsx)(O.ZP,{muted:!0,children:"You can optionally include runtime variables in your request payload. These runtime variables are accessible from within each pipeline block."}),(0,V.jsx)(Z.Z,{mt:I.Mq,children:(0,V.jsx)(ee.Z,{withCopyIcon:!0,copiedText:'{\n "pipeline_run": {\n "variables": {\n "key1": "value1",\n "key2": "value2"\n }\n }\n}\n',children:(0,V.jsx)($.Z,{language:"json",small:!0,source:'\n {\n "pipeline_run": {\n "variables": {\n "key1": "value1",\n "key2": "value2"\n }\n }\n }\n'})})})]}),(0,V.jsxs)(Z.Z,{mb:2,mt:5,px:I.cd,children:[(0,V.jsx)(m.Z,{children:"Sample cURL command"}),(0,V.jsx)(Z.Z,{mt:I.Mq,children:(0,V.jsx)($.Z,{language:"bash",small:!0,source:"\n curl -X POST ".concat(n,' \\\n --header \'Content-Type: application/json\' \\\n --data \'\n {\n "pipeline_run": {\n "variables": {\n "key1": "value1",\n "key2": "value2"\n }\n }\n }\'\n')})})]})]})}),[we,r,"object"]),nn=!Ce||b.Xm.TIME===Ce&&!(j&&Re||!j&&Re&&Se)||b.Xm.EVENT===Ce&&(!(null!==M&&void 0!==M&&M.length)||!M.every((function(e){var n=e.event_type,t=e.name;return n&&t}))),tn=(0,u.useMemo)((function(){return(0,V.jsxs)(Z.Z,{p:I.cd,children:[!(0,F.Qr)(Oe)&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(Z.Z,{mr:2,children:(0,V.jsx)(je.Z,{checked:z,onCheck:q})}),(0,V.jsx)(O.ZP,{monospace:!0,muted:!0,children:"Overwrite global variables"})]}),z&&le&&Object.entries(le).length>0&&(0,V.jsx)(Z.Z,{mt:2,children:(0,V.jsx)(_.Z,{columnFlex:[null,1],columns:[{uuid:"Variable"},{uuid:"Value"}],rows:Object.entries(le).map((function(e){var n=(0,i.Z)(e,2),t=n[0],r=n[1];return[(0,V.jsx)(O.ZP,{default:!0,monospace:!0,children:t},"variable_".concat(t)),(0,V.jsx)(ve.Z,{borderless:!0,monospace:!0,onChange:function(e){e.preventDefault(),ce((function(n){return ye(ye({},n),{},(0,l.Z)({},t,e.target.value))}))},paddingHorizontal:0,placeholder:"Variable value",value:r},"variable_uuid_input_".concat(t))]}))})})]}),(0,V.jsxs)(Z.Z,{mt:2,children:[(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(Z.Z,{mr:2,children:(0,V.jsx)(je.Z,{checked:W,onCheck:function(e){X(e),e||ae((function(e){return ye(ye({},e),{},{slaAmount:0})}))}})}),(0,V.jsx)(O.ZP,{default:!0,monospace:!0,children:"Configure trigger SLA"})]}),W&&(0,V.jsx)(Z.Z,{mt:2,children:(0,V.jsx)(_.Z,{columnFlex:[null,1],rows:[[(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(k.aw,{default:!0,size:1.5*I.iI}),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(O.ZP,{default:!0,children:"SLA"})]},"sla_detail"),(0,V.jsxs)(h.Z,{children:[(0,V.jsx)(ne.Z,{flex:1,children:(0,V.jsx)(ve.Z,{fullWidth:!0,monospace:!0,noBorder:!0,onChange:function(e){e.preventDefault(),ae((function(n){return ye(ye({},n),{},{slaAmount:e.target.value})}))},placeholder:"Time",value:null===ue||void 0===ue?void 0:ue.slaAmount})}),(0,V.jsx)(ne.Z,{flex:1,children:(0,V.jsx)(y.Z,{fullWidth:!0,monospace:!0,noBorder:!0,onChange:function(e){e.preventDefault(),ae((function(n){return ye(ye({},n),{},{slaUnit:e.target.value})}))},placeholder:"Select time unit",small:!0,value:null===ue||void 0===ue?void 0:ue.slaUnit,children:Object.keys(N.tL).map((function(e){return(0,V.jsx)("option",{value:e,children:"".concat(e,"(s)")},e)}))})})]},"sla_input_detail")]]})}),(0,V.jsxs)(Z.Z,{mt:2,children:[(0,V.jsx)(m.Z,{level:5,monospace:!0,children:"Additional settings"}),b.Xm.TIME===Ce&&(0,V.jsx)(Z.Z,{mt:2,children:(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(Y.Z,{checked:null===re||void 0===re?void 0:re.skip_if_previous_running,onClick:function(){return ie((function(e){return ye(ye({},e),{},{skip_if_previous_running:!(null!==re&&void 0!==re&&re.skip_if_previous_running)})}))}}),(0,V.jsx)(Z.Z,{ml:2}),(0,V.jsx)(O.ZP,{default:!0,monospace:!0,small:!0,children:"Skip run if previous run still in progress"})]})}),(0,V.jsx)(Z.Z,{mt:2,children:(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(Y.Z,{checked:null===re||void 0===re?void 0:re.allow_blocks_to_fail,onClick:function(){return ie((function(e){return ye(ye({},e),{},{allow_blocks_to_fail:!(null!==re&&void 0!==re&&re.allow_blocks_to_fail)})}))}}),(0,V.jsx)(Z.Z,{ml:2}),(0,V.jsx)(O.ZP,{default:!0,monospace:!0,small:!0,children:"Keep running pipeline even if blocks fail"})]})})]})]})]})}),[W,Oe,z,le,ue,X,q,re]);return(0,V.jsx)(V.Fragment,{children:(0,V.jsxs)(v.Z,{after:tn,breadcrumbs:[{label:function(){return"Triggers"},linkProps:{as:"/pipelines/".concat(s,"/triggers"),href:"/pipelines/[pipeline]/triggers"}},{label:function(){return null===r||void 0===r?void 0:r.name},linkProps:{as:"/pipelines/".concat(s,"/triggers/").concat(g),href:"/pipelines/[pipeline]/triggers/[...slug]"}}],errors:P,pageName:E.M.TRIGGERS,pipeline:t,setErrors:S,subheader:(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(p.Z,{disabled:nn,loading:Je,onClick:Ge,outline:!0,primary:!0,children:"Save changes"}),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(p.Z,{linkProps:{href:"/pipelines/[pipeline]/triggers/[...slug]",as:"/pipelines/".concat(s,"/triggers/").concat(g)},noHoverUnderline:!0,outline:!0,sameColorAsText:!0,children:"Cancel"})]}),title:function(){return"Edit ".concat(null===r||void 0===r?void 0:r.name)},uuid:"triggers/edit",children:[(0,V.jsxs)(Z.Z,{p:I.cd,children:[(0,V.jsxs)(Z.Z,{mb:2,children:[(0,V.jsx)(m.Z,{children:"Trigger type"}),(0,V.jsx)(O.ZP,{muted:!0,children:"How would you like this pipeline to be triggered?"})]}),(0,V.jsx)(h.Z,{children:Ze(j).map((function(e){var n=e.label,t=e.description,r=e.uuid,i=Ce===r,o=Ce&&!i;return(0,V.jsx)(p.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){b.Xm.EVENT!==r||null!==M&&void 0!==M&&M.length||A([{}]),ae((function(e){return ye(ye({},e),{},{schedule_type:r})}))},children:(0,V.jsx)(xe.U,{selected:i,children:(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(ne.Z,{children:(0,V.jsx)("input",{checked:i,type:"radio"})}),(0,V.jsx)(Z.Z,{mr:I.cd}),(0,V.jsxs)(ne.Z,{alignItems:"flex-start",flexDirection:"column",children:[(0,V.jsx)(m.Z,{bold:!0,default:!i&&!o,level:5,muted:!i&&o,children:n()}),(0,V.jsx)(O.ZP,{default:!i&&!o,leftAligned:!0,muted:o,children:t()})]})]})})},r)}))})]}),(0,V.jsxs)(Z.Z,{mt:5,children:[b.Xm.TIME===Ce&&Ye,b.Xm.EVENT===Ce&&$e,b.Xm.API===Ce&&en]})]})})},Oe=t(41788),Pe=t(70543);function we(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 Se(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?we(Object(t),!0).forEach((function(n){(0,l.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):we(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function Ce(e){var n=e.pipelineScheduleId,t=e.pipelineUUID,r=e.subpath,i=w.ZP.variables.pipelines.list(t).data,o=null===i||void 0===i?void 0:i.variables,l=w.ZP.pipeline_schedules.detail(n),c=l.data,s=l.mutate,u=null===c||void 0===c?void 0:c.pipeline_schedule,a=w.ZP.pipelines.detail(t,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,d=Se(Se({},null===a||void 0===a?void 0:a.pipeline),{},{uuid:t});return Pe.b===r?(0,V.jsx)(_e,{fetchPipelineSchedule:s,pipeline:d,pipelineSchedule:u,variables:o}):(0,V.jsx)(J,{fetchPipelineSchedule:s,pipeline:d,pipelineSchedule:u,variables:o})}Ce.getInitialProps=function(){var e=(0,o.Z)(s().mark((function e(n){var t,r,o,l,c,u;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.query,r=t.pipeline,o=t.slug,!Array.isArray(o)){e.next=4;break}return l=(0,i.Z)(o,2),c=l[0],u=l[1],e.abrupt("return",{pipelineScheduleId:c,pipelineUUID:r,subpath:u});case 4:return e.abrupt("return",{pipelineUUID:r});case 5:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();var ke=(0,Oe.Z)(Ce)},95488:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/triggers/[...slug]",function(){return t(54183)}])}},function(e){e.O(0,[3850,2083,5896,4804,1774,5872,2524,4495,2344,9386,1830,2626,4463,6532,1286,4178,3688,9774,2888,179],(function(){return n=95488,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1221],{1210:function(n,e,t){"use strict";t.d(e,{Z:function(){return Z}});var r=t(82394),i=t(21831),o=t(82684),c=t(47999),u=t(49894),l=t(93461),a=t(57384),d=t(12344),s=t(72454),f=t(28598);function p(n,e){var t=n.children;return(0,f.jsx)(s.HS,{ref:e,children:t})}var h=o.forwardRef(p),b=t(32063),g=t(15270),v=t(82531),m=t(66166),y=t(3055),O=t(49125),x=t(91427),j=t(24141);function w(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function P(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?w(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):w(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var Z=function(n){var e,t=n.after,r=n.afterHidden,p=n.afterWidth,w=n.afterWidthOverride,Z=n.before,k=n.beforeWidth,C=n.breadcrumbs,E=n.children,S=n.errors,A=n.headerMenuItems,R=n.navigationItems,_=n.setErrors,T=n.subheaderChildren,D=n.title,I=n.uuid,N=(0,j.i)().width,M="dashboard_after_width_".concat(I),L="dashboard_before_width_".concat(I),H=(0,o.useRef)(null),B=(0,o.useState)(w?p:(0,x.U2)(M,p)),V=B[0],W=B[1],Y=(0,o.useState)(!1),F=Y[0],z=Y[1],q=(0,o.useState)(Z?Math.max((0,x.U2)(L,k),13*O.iI):null),U=q[0],X=q[1],G=(0,o.useState)(!1),K=G[0],Q=G[1],J=(0,o.useState)(null)[1],$=v.ZP.projects.list({},{revalidateOnFocus:!1}).data,nn=null===$||void 0===$?void 0:$.projects,en=[];C?en.push.apply(en,(0,i.Z)(C)):(null===nn||void 0===nn?void 0:nn.length)>=1&&en.push.apply(en,[{label:function(){var n;return null===(n=nn[0])||void 0===n?void 0:n.name},linkProps:{href:"/"}},{bold:!0,label:function(){return D}}]),(0,o.useEffect)((function(){null===H||void 0===H||!H.current||F||K||null===J||void 0===J||J(H.current.getBoundingClientRect().width)}),[F,V,K,U,H,J,N]),(0,o.useEffect)((function(){F||(0,x.t8)(M,V)}),[r,F,V,M]),(0,o.useEffect)((function(){K||(0,x.t8)(L,U)}),[K,U,L]);var tn=(0,m.Z)(p);return(0,o.useEffect)((function(){w&&tn!==p&&W(p)}),[w,p,tn]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(a.Z,{title:D}),(0,f.jsx)(d.Z,{breadcrumbs:en,menuItems:A,project:null===nn||void 0===nn?void 0:nn[0],version:null===nn||void 0===nn||null===(e=nn[0])||void 0===e?void 0:e.version}),(0,f.jsxs)(s.Nk,{children:[0!==(null===R||void 0===R?void 0:R.length)&&(0,f.jsx)(s.lm,{children:(0,f.jsx)(g.Z,{navigationItems:R})}),(0,f.jsx)(l.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(b.Z,{after:t,afterHeightOffset:y.Mz,afterHidden:r,afterMousedownActive:F,afterWidth:V,before:Z,beforeHeightOffset:y.Mz,beforeMousedownActive:K,beforeWidth:s.k1+(Z?U:0),hideAfterCompletely:!0,leftOffset:Z?s.k1:null,mainContainerRef:H,setAfterMousedownActive:z,setAfterWidth:W,setBeforeMousedownActive:Q,setBeforeWidth:X,children:[T&&(0,f.jsx)(h,{children:T}),E]})})]}),S&&(0,f.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===_||void 0===_?void 0:_(null)},children:(0,f.jsx)(u.Z,P(P({},S),{},{onClose:function(){return null===_||void 0===_?void 0:_(null)}}))})]})}},45838:function(n,e,t){"use strict";t.d(e,{GZ:function(){return s},Vq:function(){return a},cE:function(){return f},cl:function(){return u},kA:function(){return l}});var r=t(9518),i=t(23831),o=t(37391),c=t(49125),u=r.default.div.withConfig({displayName:"indexstyle__TableContainerStyle",componentId:"sc-1wzfyed-0"})(["position:relative;overflow:auto;"," "," ",""],o.w5,(function(n){return n.minHeight&&"\n min-height: ".concat(n.minHeight,"px;\n ")}),(function(n){return n.overflowVisible&&"\n overflow: visible;\n "})),l=r.default.table.withConfig({displayName:"indexstyle__TableStyle",componentId:"sc-1wzfyed-1"})(["contain:size;width:100%;",""],(function(n){return(n.columnBorders||n.borderCollapseSeparate)&&"\n border-collapse: separate;\n "})),a=r.default.tr.withConfig({displayName:"indexstyle__TableRowStyle",componentId:"sc-1wzfyed-2"})([""," ",""],(function(n){return n.highlightOnHover&&"\n &:hover {\n background: ".concat((n.theme.interactive||i.Z.interactive).rowHoverBackground,";\n }\n ")}),(function(n){return!n.noHover&&"\n &:hover {\n background: ".concat((n.theme.interactive||i.Z.interactive).rowHoverBackground,";\n cursor: pointer;\n }\n ")})),d=(0,r.css)(["text-overflow:ellipsis;white-space:nowrap;"," "," "," "," "," ",""],(function(n){return!n.alignTop&&"\n vertical-align: middle;\n "}),(function(n){return n.alignTop&&"\n vertical-align: top;\n "}),(function(n){return!n.noBorder&&"\n border-bottom: 1px solid ".concat((n.theme.borders||i.Z.borders).light,";\n ")}),(function(n){return n.compact&&"\n padding: ".concat(c.iI/2,"px ").concat(c.iI,"px;\n ")}),(function(n){return!n.compact&&"\n padding: ".concat(c.iI,"px ").concat(2*c.iI,"px;\n ")}),(function(n){return n.maxWidth&&"\n max-width: ".concat(n.maxWidth,";\n ")})),s=r.default.th.withConfig({displayName:"indexstyle__TableHeadStyle",componentId:"sc-1wzfyed-3"})([""," "," "," ",""],d,(function(n){return n.columnBorders&&"\n border: 1px solid ".concat((n.theme.borders||i.Z.borders).light,";\n border-right: none;\n ")}),(function(n){return n.columnBorders&&n.last&&"\n border-right: 1px solid ".concat((n.theme.borders||i.Z.borders).light,";\n ")}),(function(n){return n.sticky&&"\n background-color: ".concat((n.theme||i.Z).background.panel,";\n border-bottom: 1px solid ").concat((n.theme.borders||i.Z.borders).medium,";\n z-index: 2;\n position: sticky;\n top: 0;\n\n &:first-child {\n left: 0;\n z-index: 2;\n }\n ")})),f=r.default.td.withConfig({displayName:"indexstyle__TableDataStyle",componentId:"sc-1wzfyed-4"})([""," "," "," "," "," "," ",""],d,(function(n){return n.rowVerticalPadding&&"\n padding-top: ".concat(n.rowVerticalPadding,"px;\n padding-bottom: ").concat(n.rowVerticalPadding,"px;\n ")}),(function(n){return n.columnBorders&&"\n border-left: 1px solid ".concat((n.theme.borders||i.Z.borders).light,";\n ")}),(function(n){return n.columnBorders&&n.last&&"\n border-right: 1px solid ".concat((n.theme.borders||i.Z.borders).light,";\n ")}),(function(n){return n.stickyFirstColumn&&"\n background-color: ".concat((n.theme||i.Z).background.panel,";\n z-index: 1;\n position: sticky;\n left: 0;\n ")}),(function(n){return n.selected&&"\n background-color: ".concat((n.theme.interactive||i.Z.interactive).activeBorder,";\n ")}),(function(n){return n.wrapColumns&&"\n white-space: break-spaces;\n "}))},87815:function(n,e,t){"use strict";var r=t(82394),i=t(12691),o=t.n(i),c=t(82684),u=t(67971),l=t(10919),a=t(86673),d=t(19711),s=t(46261),f=t(45838),p=t(28598);function h(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function b(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?h(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):h(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}e.Z=function(n){var e=n.alignTop,t=n.borderCollapseSeparate,r=n.buildLinkProps,i=n.buildRowProps,h=n.columnBorders,g=n.columnFlex,v=n.columnMaxWidth,m=n.columns,y=void 0===m?[]:m,O=n.compact,x=n.highlightRowOnHover,j=n.isSelectedRow,w=n.noBorder,P=n.noHeader,Z=n.onClickRow,k=n.onDoubleClickRow,C=n.rows,E=n.rowVerticalPadding,S=n.stickyFirstColumn,A=n.stickyHeader,R=n.uuid,_=n.wrapColumns,T=(0,c.useMemo)((function(){return g.reduce((function(n,e){return n+(e||0)}),0)}),[g]),D=(0,c.useCallback)((function(n){if(g[n]){var e=Math.round(g[n]/T*100);return"".concat(e,"%")}return null}),[g,T]),I=(0,c.useMemo)((function(){return null===C||void 0===C?void 0:C.map((function(n,t){var u,a=null===r||void 0===r?void 0:r(t),d=(null===i||void 0===i?void 0:i(t))||{renderCell:null,renderRow:null},s=d.renderCell,g=d.renderRow,m=[];if(n.forEach((function(r,i){var o;s&&(o=s(r,i)),o||(o=(0,p.jsx)(f.cE,{alignTop:e,columnBorders:h,compact:O,last:i===n.length-1,maxWidth:null===v||void 0===v?void 0:v(i),noBorder:w,rowVerticalPadding:E,selected:null===j||void 0===j?void 0:j(t),stickyFirstColumn:S&&0===i,width:D(i),wrapColumns:_,children:r},"".concat(R,"-row-").concat(t,"-cell-").concat(i))),m.push(o)})),g)u=g(m);else{u=(0,p.jsx)(f.Vq,{highlightOnHover:x,noHover:!(a||Z),onClick:Z?function(n){return function(n,e){1===(null===e||void 0===e?void 0:e.detail)?Z(n):k&&2===(null===e||void 0===e?void 0:e.detail)&&k(n)}(t,n)}:null,children:m},"".concat(R,"-row-").concat(t))}return a?(0,c.createElement)(o(),b(b({},a),{},{key:"".concat(R,"-row-link-").concat(t),passHref:!0}),(0,p.jsx)(l.Z,{fullWidth:!0,noHoverUnderline:!0,noOutline:!0,style:{display:"table-row-group"},verticalAlignContent:!0,children:u})):u}))}),[e,r,D,h,v,O,i,x,j,w,Z,k,E,C,S,R,_]);return(0,p.jsxs)(f.kA,{borderCollapseSeparate:t,columnBorders:h,children:[(null===y||void 0===y?void 0:y.length)>=1&&!P&&(0,p.jsx)(f.Vq,{noHover:!0,children:y.map((function(n,e){return(0,p.jsx)(f.GZ,{columnBorders:h,compact:O,last:e===y.length-1,noBorder:w,sticky:A,children:(0,p.jsxs)(u.Z,{alignItems:"center",justifyContent:n.center?"center":"flex-start",children:[(0,p.jsx)(d.ZP,{bold:!0,leftAligned:!0,monospace:!0,muted:!0,children:n.label?n.label():n.uuid}),n.tooltipMessage&&(0,p.jsx)(a.Z,{ml:"4px",children:(0,p.jsx)(s.Z,{appearBefore:!0,label:(0,p.jsx)(d.ZP,{leftAligned:!0,children:n.tooltipMessage}),lightBackground:!0,primary:!0})})]})},"".concat(R,"-col-").concat(n.uuid,"-").concat(e))}))}),I]})}},86422:function(n,e,t){"use strict";t.d(e,{$W:function(){return f},DA:function(){return s},HX:function(){return b},J8:function(){return h},Lq:function(){return a},Qj:function(){return g},Ut:function(){return O},V4:function(){return y},VZ:function(){return p},dO:function(){return d},f2:function(){return m},iZ:function(){return v},t6:function(){return c},tf:function(){return l}});var r,i,o,c,u=t(82394);!function(n){n.PYTHON="python",n.R="r",n.SQL="sql",n.YAML="yaml"}(c||(c={}));var l,a,d=(r={},(0,u.Z)(r,c.PYTHON,"PY"),(0,u.Z)(r,c.R,"R"),(0,u.Z)(r,c.SQL,"SQL"),(0,u.Z)(r,c.YAML,"YAML"),r);!function(n){n.CHART="chart",n.CUSTOM="custom",n.DATA_EXPORTER="data_exporter",n.DATA_LOADER="data_loader",n.DBT="dbt",n.EXTENSION="extension",n.SCRATCHPAD="scratchpad",n.SENSOR="sensor",n.TRANSFORMER="transformer"}(l||(l={})),function(n){n.BLUE="blue",n.GREY="grey",n.PINK="pink",n.PURPLE="purple",n.TEAL="teal",n.YELLOW="yellow"}(a||(a={}));var s,f=[l.CHART,l.CUSTOM,l.DATA_EXPORTER,l.DATA_LOADER,l.SCRATCHPAD,l.SENSOR,l.TRANSFORMER],p=[l.DATA_EXPORTER,l.DATA_LOADER],h=[l.DATA_EXPORTER,l.DATA_LOADER,l.TRANSFORMER],b=[l.DATA_EXPORTER,l.DATA_LOADER,l.DBT,l.TRANSFORMER],g=[l.CHART,l.SCRATCHPAD,l.SENSOR],v=[l.EXTENSION,l.SCRATCHPAD];!function(n){n.EXECUTED="executed",n.FAILED="failed",n.NOT_EXECUTED="not_executed",n.UPDATED="updated"}(s||(s={}));var m=[l.CUSTOM,l.DATA_EXPORTER,l.TRANSFORMER],y=(i={},(0,u.Z)(i,l.CUSTOM,"Custom"),(0,u.Z)(i,l.DATA_EXPORTER,"Data exporter"),(0,u.Z)(i,l.DATA_LOADER,"Data loader"),(0,u.Z)(i,l.EXTENSION,"Extension"),(0,u.Z)(i,l.SCRATCHPAD,"Scratchpad"),(0,u.Z)(i,l.SENSOR,"Sensor"),(0,u.Z)(i,l.TRANSFORMER,"Transformer"),i),O=[l.DATA_LOADER,l.TRANSFORMER,l.DATA_EXPORTER];o={},(0,u.Z)(o,l.DATA_EXPORTER,"DE"),(0,u.Z)(o,l.DATA_LOADER,"DL"),(0,u.Z)(o,l.SCRATCHPAD,"SP"),(0,u.Z)(o,l.SENSOR,"SR"),(0,u.Z)(o,l.TRANSFORMER,"TF")},93348:function(n,e,t){"use strict";t.d(e,{TR:function(){return s},U5:function(){return l},Xm:function(){return o},Z4:function(){return d},fq:function(){return u},kJ:function(){return a}});var r,i,o,c=t(82394);!function(n){n.API="api",n.EVENT="event",n.TIME="time"}(o||(o={}));var u,l,a,d=(r={},(0,c.Z)(r,o.API,(function(){return"API"})),(0,c.Z)(r,o.EVENT,(function(){return"event"})),(0,c.Z)(r,o.TIME,(function(){return"schedule"})),r);!function(n){n.ACTIVE="active",n.INACTIVE="inactive"}(u||(u={})),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 s=(i={},(0,c.Z)(i,a.CREATED_AT,"Created at"),(0,c.Z)(i,a.NAME,"Name"),(0,c.Z)(i,a.PIPELINE,"Pipeline"),(0,c.Z)(i,a.STATUS,"Status"),(0,c.Z)(i,a.TYPE,"Type"),i)},98781:function(n,e,t){"use strict";t.d(e,{G7:function(){return l},QK:function(){return u},a_:function(){return a},qL:function(){return o}});var r,i,o,c=t(82394);!function(n){n.INTEGRATION="integration",n.PYTHON="python",n.PYSPARK="pyspark",n.STREAMING="streaming"}(o||(o={}));var u,l=(r={},(0,c.Z)(r,o.INTEGRATION,"Integration"),(0,c.Z)(r,o.PYTHON,"Standard"),(0,c.Z)(r,o.PYSPARK,"PySpark"),(0,c.Z)(r,o.STREAMING,"Streaming"),r);!function(n){n.ACTIVE="active",n.INACTIVE="inactive",n.NO_SCHEDULES="no_schedules"}(u||(u={}));var a=(i={},(0,c.Z)(i,o.PYTHON,"python3"),(0,c.Z)(i,o.PYSPARK,"pysparkkernel"),i)},18283:function(n,e,t){"use strict";var r=t(82394),i=t(26304),o=(t(82684),t(9518)),c=t(23831),u=t(73942),l=t(2005),a=t(49125),d=t(31012),s=t(28598),f=["children"];function p(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function h(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?p(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):p(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var b=o.default.p.withConfig({displayName:"Badge__BadgeStyle",componentId:"sc-tfqsp0-0"})(["border-radius:","px;display:inline;font-family:",";margin:0;",";"," ",";",";"," "," "," "," ",""],u.BG,l.ry,d.iD,(function(n){return n.small&&"\n ".concat(d.HC,";\n ")}),(function(n){return!n.regular&&"\n padding: 2px 4px;\n "}),(function(n){return n.regular&&"\n padding: ".concat(1*a.iI,"px ").concat(1.25*a.iI,"px;\n ")}),(function(n){return n.noVerticalPadding&&"\n padding-bottom: 0;\n padding-top: 0;\n "}),(function(n){return!n.disabled&&"\n background-color: ".concat((n.theme||c.Z).background.row,";\n color: ").concat((n.theme||c.Z).content.muted,";\n ")}),(function(n){return n.cyan&&"\n background-color: ".concat((n.theme||c.Z).accent.cyan,";\n color: ").concat((n.theme||c.Z).monotone.black,";\n ")}),(function(n){return n.disabled&&"\n background-color: ".concat((n.theme||c.Z).feature.disabled,";\n color: ").concat((n.theme||c.Z).content.disabled,";\n ")}),(function(n){return n.quantifier&&"\n border-radius: 34px;\n line-height: 10px;\n padding: 4px 6px;\n "}));e.Z=function(n){var e=n.children,t=(0,i.Z)(n,f);return(0,s.jsx)(b,h(h({},t),{},{children:e}))}},30264:function(n,e,t){"use strict";var r=t(82394),i=t(26304),o=(t(82684),t(47999)),c=t(62084),u=t(28598),l=["children","items","open","onClickCallback","onClickOutside","parentRef","uuid"];function a(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function d(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?a(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}e.Z=function(n){var e=n.children,t=n.items,r=n.open,a=n.onClickCallback,s=n.onClickOutside,f=n.parentRef,p=n.uuid,h=(0,i.Z)(n,l),b=(0,u.jsxs)("div",{style:{position:"relative",zIndex:s?3:2},children:[(0,u.jsx)("div",{ref:f,children:e}),(0,u.jsx)(c.Z,d(d({},h),{},{items:t,onClickCallback:a,open:r,parentRef:f,uuid:p}))]});return s?(0,u.jsx)(o.Z,{onClickOutside:s,open:!0,children:b}):b}},29237:function(n,e,t){"use strict";var r=t(9518),i=t(67971),o=t(86673),c=t(19711),u=t(23831),l=t(73942),a=t(37391),d=t(49125),s=t(28598),f=(0,r.css)(["padding:","px;padding-bottom:","px;padding-top:","px;"],2*d.iI,1.5*d.iI,1.5*d.iI),p=r.default.div.withConfig({displayName:"Panel__PanelStyle",componentId:"sc-1ct8cgl-0"})(["border-radius:","px;overflow:hidden;"," "," "," "," "," "," "," "," "," ",""],l.n_,(function(n){return n.fullWidth&&"\n width: 100%;\n "}),(function(n){return"\n border: 1px solid ".concat((n.theme.interactive||u.Z.interactive).defaultBorder,";\n ")}),(function(n){return!n.dark&&"\n background-color: ".concat((n.theme.background||u.Z.background).panel,";\n ")}),(function(n){return n.dark&&"\n background-color: ".concat((n.theme.background||u.Z.background).content,";\n ")}),(function(n){return!n.fullHeight&&"\n height: fit-content;\n "}),(function(n){return n.maxHeight&&"\n max-height: ".concat(n.maxHeight,";\n ")}),(function(n){return n.maxWidth&&"\n max-width: ".concat(n.maxWidth,"px;\n ")}),(function(n){return n.minWidth&&"\n min-width: ".concat(n.minWidth,"px;\n\n @media (max-width: ").concat(n.minWidth,"px) {\n min-width: 0;\n }\n ")}),(function(n){return n.borderless&&"\n border: none;\n "}),(function(n){return n.overflowVisible&&"\n overflow: visible;\n "})),h=r.default.div.withConfig({displayName:"Panel__HeaderStyle",componentId:"sc-1ct8cgl-1"})(["border-top-left-radius:","px;border-top-right-radius:","px;"," "," "," ",""],l.n_,l.n_,(function(n){return"\n background-color: ".concat((n.theme.background||u.Z.background).chartBlock,";\n border-bottom: 1px solid ").concat((n.theme.interactive||u.Z.interactive).defaultBorder,";\n ")}),(function(n){return n.height&&"\n height: ".concat(n.height,"px;\n ")}),f,(function(n){return n.headerPaddingVertical&&"\n padding-bottom: ".concat(n.headerPaddingVertical,"px;\n padding-top: ").concat(n.headerPaddingVertical,"px;\n ")})),b=r.default.div.withConfig({displayName:"Panel__ContentStyle",componentId:"sc-1ct8cgl-2"})(["overflow-y:auto;padding:","px;height:100%;"," "," "," "," ",""],1.75*d.iI,a.w5,(function(n){return n.height&&"\n height: ".concat(n.height,"px;\n ")}),(function(n){return n.maxHeight&&"\n max-height: calc(".concat(n.maxHeight," - ").concat(15*d.iI,"px);\n ")}),(function(n){return n.noPadding&&"\n padding: 0;\n "}),(function(n){return n.overflowVisible&&"\n overflow: visible;\n "})),g=r.default.div.withConfig({displayName:"Panel__FooterStyle",componentId:"sc-1ct8cgl-3"})(["border-style:",";border-top-width:","px;padding:","px;"],l.M8,l.YF,1.75*d.iI);e.Z=function(n){var e=n.borderless,t=n.children,r=n.containerRef,u=n.contentContainerRef,l=n.dark,a=n.footer,d=n.fullHeight,f=void 0===d||d,v=n.fullWidth,m=void 0===v||v,y=n.header,O=n.headerHeight,x=n.headerIcon,j=n.headerPaddingVertical,w=n.headerTitle,P=n.maxHeight,Z=n.maxWidth,k=n.minWidth,C=n.noPadding,E=n.overflowVisible,S=n.subtitle;return(0,s.jsxs)(p,{borderless:e,dark:l,fullHeight:f,fullWidth:m,maxHeight:P,maxWidth:Z,minWidth:k,overflowVisible:E,ref:r,children:[(y||w)&&(0,s.jsxs)(h,{headerPaddingVertical:j,height:O,children:[y&&y,w&&(0,s.jsx)(i.Z,{alignItems:"center",justifyContent:"space-between",children:(0,s.jsxs)(i.Z,{alignItems:"center",children:[x&&x,(0,s.jsx)(o.Z,{ml:x?1:0,children:(0,s.jsx)(c.ZP,{bold:!0,default:!0,children:w})})]})})]}),(0,s.jsxs)(b,{maxHeight:P,noPadding:C,overflowVisible:E,ref:u,children:[S&&(0,s.jsx)(o.Z,{mb:2,children:(0,s.jsx)(c.ZP,{default:!0,children:S})}),t]}),a&&(0,s.jsx)(g,{children:a})]})}},38435:function(n,e,t){"use strict";var r=t(82394),i=t(26304),o=t(82684),c=t(9518),u=t(69898),l=t(28598),a=["rows"];function d(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function s(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?d(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var f=c.default.textarea.withConfig({displayName:"TextArea__TextInputStyle",componentId:"sc-112wx63-0"})(["",""],u.p),p=function(n,e){var t=n.rows,r=void 0===t?3:t,o=(0,i.Z)(n,a);return(0,l.jsx)(u.Z,s(s({},o),{},{input:(0,l.jsx)(f,s({rows:r},o)),ref:e}))};e.Z=o.forwardRef(p)},70902:function(n,e,t){"use strict";var r=t(82394),i=t(26304),o=t(82684),c=t(9518),u=t(69898),l=t(23831),a=t(28598),d=["checked","disabled","onCheck"];function s(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function f(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?s(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var p=c.default.label.withConfig({displayName:"ToggleSwitch__ToggleSwitchStyle",componentId:"sc-179r5zs-0"})([""," position:relative;display:inline-block;width:","px;min-width:","px;height:",'px;& input[type="checkbox"]{display:none;}& span{position:absolute;cursor:',";background-color:",";border-radius:13px;",';top:0;right:0;bottom:0;left:0;transition:background-color 0.2s ease;}& span::before{position:absolute;content:"";left:2px;top:2px;width:22px;height:22px;background-color:#787A85;border-radius:50%;transition:transform 0.3s ease;}& input[type="checkbox"]:checked + span::before{transform:translateX(20px);}',""],u.p,46,46,26,(function(n){return n.disabled?"not-allowed":"pointer"}),(function(n){return n.disabled?l.Z.monotone.white:l.Z.monotone.black}),(function(n){return n.disabled&&"border: 1px solid ".concat(l.Z.monotone.grey200)}),(function(n){return!n.disabled&&'\n & input[type="checkbox"]:checked + span {\n background-color: #6AA1E0;\n }\n\n & input[type="checkbox"]:checked + span::before {\n background-color: '.concat(l.Z.monotone.white,";\n }\n ")})),h=function(n,e){var t=n.checked,r=n.disabled,o=n.onCheck,c=(0,i.Z)(n,d);return(0,a.jsx)(u.Z,f(f({},c),{},{disabled:r,input:(0,a.jsxs)(p,f(f({},c),{},{disabled:r,noBackground:!0,noBorder:!0,children:[(0,a.jsx)("input",{checked:t,type:"checkbox"}),(0,a.jsx)("span",{onClick:r?null:function(){return null===o||void 0===o?void 0:o((function(n){return!n}))}})]})),noBackground:!0,ref:e}))};e.Z=o.forwardRef(h)},46614:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return Zn}});var r=t(77837),i=t(75582),o=t(82394),c=t(38860),u=t.n(c),l=t(12691),a=t.n(l),d=t(83455),s=t(82684),f=t(34376),p=t(60328),h=t(1210),b=t(93461),g=t(67971),v=t(11135),m=t(29237),y=t(86673),O=t(19711),x=t(38435),j=t(82944),w=t(28598);var P=function(n){var e=n.description,t=n.isLoading,r=n.maxWidth,i=n.minWidth,o=n.noEmptyValue,c=n.onClose,u=n.onSave,l=n.textArea,a=n.title,d=n.value,f=(0,s.useRef)(null),h=(0,s.useState)(d),b=h[0],P=h[1],Z=l?x.Z:j.Z;return(0,s.useEffect)((function(){var n;null===f||void 0===f||null===(n=f.current)||void 0===n||n.focus()}),[]),(0,w.jsxs)(m.Z,{maxWidth:r,minWidth:i,children:[(0,w.jsx)(O.ZP,{bold:!0,children:a}),(0,w.jsx)(y.Z,{mt:1,children:(0,w.jsx)(Z,{monospace:!0,onChange:function(n){return P(n.target.value)},ref:f,rows:l?7:null,value:b})}),e&&(0,w.jsx)(y.Z,{mt:2,children:(0,w.jsx)(O.ZP,{muted:!0,small:!0,children:e})}),(0,w.jsx)(y.Z,{mt:3,children:(0,w.jsxs)(g.Z,{children:[(0,w.jsx)(v.ZP,{bold:!0,inline:!0,loading:t,onClick:function(){b===d||o&&!b?c():u(b)},outline:!0,primary:!0,uuid:"Inputs/InputModal/SaveInput",children:"Save"}),(0,w.jsx)(y.Z,{ml:1}),(0,w.jsx)(p.Z,{onClick:c,children:"Cancel"})]})})]})},Z=t(10919),k=t(98781),C=t(41788),E=t(54283),S=t(87815),A=t(18283),R=t(47999),_=t(30264),T=t(62609),D=t(70902),I=t(9518),N=t(23831),M=t(73942),L=t(37391),H=t(49125),B=74*H.iI,V=48*H.iI,W=I.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-18n432u-0"})(["position:absolute;border-radius:","px;overflow:hidden;width:","px;display:none;"," "," "," "," ",""],M.n_,B,(function(n){return"\n background-color: ".concat((n.theme||N.Z).background.panel,";\n border: ").concat(M.mP,"px ").concat(M.M8," ").concat((n.theme||N.Z).interactive.defaultBackground,";\n box-shadow: ").concat((n.theme.shadow||N.Z.shadow).window,";\n ")}),(function(n){return n.display&&"\n display: block;\n "}),(function(n){return n.compact&&"\n width: ".concat(.75*B,"px;\n ")}),(function(n){return"undefined"!==typeof n.left&&"\n left: ".concat(n.left,"px;\n ")}),(function(n){return"undefined"!==typeof n.top&&"\n top: ".concat(n.top,"px;\n ")})),Y=I.default.div.withConfig({displayName:"indexstyle__MainStyle",componentId:"sc-18n432u-1"})(["display:flex;border-radius:","px;overflow:hidden;height:","px;"," ",""],M.n_,V,(function(n){return"\n background-color: ".concat((n.theme||N.Z).background.content,";\n border: ").concat(M.YF,"px ").concat(M.M8," ").concat((n.theme||N.Z).interactive.defaultBackground,";\n ")}),(function(n){return n.compact&&"\n height: ".concat(V/2,"px;\n ")})),F=I.default.aside.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-18n432u-2"})(["width:100%;overflow:auto;"," ",""],L.w5,(function(n){return"\n border-right: ".concat(M.YF,"px ").concat(M.M8," ").concat((n.theme||N.Z).background.panel,";\n ")})),z=I.default.div.withConfig({displayName:"indexstyle__ContentStyle",componentId:"sc-18n432u-3"})(["width:100%;overflow:auto;",""],L.w5),q=(0,I.css)(["display:flex;align-items:center;justify-content:space-between;padding:","px ","px;"],H.iI,2*H.iI),U=I.default.div.withConfig({displayName:"indexstyle__OptionStyle",componentId:"sc-18n432u-4"})([""," padding-top:","px;padding-bottom:","px;&:hover{cursor:pointer;","}",""],q,1.5*H.iI,1.5*H.iI,(function(n){return"\n background-color: ".concat((n.theme||N.Z).monotone.black,";\n ")}),(function(n){return n.highlighted&&"\n background-color: ".concat((n.theme||N.Z).monotone.black,";\n ")})),X=I.default.div.withConfig({displayName:"indexstyle__ToggleValueStyle",componentId:"sc-18n432u-5"})([""," ",""],q,(function(n){return"\n border-bottom: ".concat(M.YF,"px ").concat(M.M8," ").concat((n.theme||N.Z).borders.medium2,";\n ")})),G=t(10503),K=t(33766),Q=t(90211);function J(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function $(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?J(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):J(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var nn,en=function(n){var e,t,r,c=n.children,u=n.compact,l=n.onClickCallback,a=n.onClickOutside,d=n.open,h=n.options,v=void 0===h?{}:h,m=n.parentRef,x=n.query,j=n.setOpen,P=n.toggleValueMapping,Z=(0,f.useRouter)(),k=(0,s.useState)(null),C=k[0],E=k[1],S=(0,s.useState)(v),A=S[0],_=S[1];(0,s.useEffect)((function(){_(v)}),[v]);var T=((null===m||void 0===m||null===(e=m.current)||void 0===e||null===(t=e.getBoundingClientRect)||void 0===t?void 0:t.call(e))||{}).top,I=void 0===T?0:T,N=Object.keys(v);return(0,w.jsxs)(R.Z,{onClickOutside:a,open:!0,children:[(0,w.jsx)("div",{ref:m,children:c}),(0,w.jsxs)(W,{compact:u,display:d,top:I-5,children:[(0,w.jsxs)(Y,{compact:u,children:[(0,w.jsx)(b.Z,{flex:"1",children:(0,w.jsx)(F,{children:N.map((function(n){return(0,w.jsxs)(U,{highlighted:C===n,onMouseEnter:function(){return E(n)},children:[(0,w.jsx)(O.ZP,{children:(0,Q.kC)(n)}),(0,w.jsx)(G._Q,{})]},n)}))})}),(0,w.jsx)(b.Z,{flex:"2",children:(0,w.jsx)(z,{children:C&&Object.entries((null===(r=A||v)||void 0===r?void 0:r[C])||{}).map((function(n){var e=(0,i.Z)(n,2),t=e[0],r=e[1];return(0,w.jsxs)(X,{children:[(0,w.jsx)(O.ZP,{children:(null===P||void 0===P?void 0:P[t])||(0,Q.J3)((0,Q.kC)(t))}),(0,w.jsx)(D.Z,{checked:r,onCheck:function(){return _((function(n){return $($({},n),{},(0,o.Z)({},C,$($({},null===n||void 0===n?void 0:n[C]),{},(0,o.Z)({},t,!r))))}))}})]},t)}))})})]}),(0,w.jsx)(y.Z,{m:1,children:(0,w.jsxs)(g.Z,{children:[(0,w.jsx)(p.Z,{onClick:function(){var n=Object.entries(A).reduce((function(n,e){var t=(0,i.Z)(e,2),r=t[0],o=t[1],c=[];return Object.entries(o).forEach((function(n){var e=(0,i.Z)(n,2),t=e[0];return e[1]&&c.push(t)})),n[r]=c,n}),{});null===l||void 0===l||l(),(0,K.g_)(x,n,{addingMultipleValues:!0})},secondary:!0,children:"Apply"}),(0,w.jsx)(y.Z,{mr:1}),(0,w.jsx)(p.Z,{noBackground:!0,onClick:function(){j(!1),Z.push("/pipelines")},children:"Defaults"})]})})]})]})},tn=t(46261),rn=t(99994),on="".concat(1.5*H.iI,"px"),cn=40*H.iI,un={bold:!0,greyBorder:!0,paddingBottom:9,paddingTop:9};!function(n){n[n.SECONDARY=1]="SECONDARY",n[n.DELETE=2]="DELETE"}(nn||(nn={}));var ln={autoHide:!0,size:null,widthFitContent:!0},an=t(7715),dn=t(9736);function sn(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function fn(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?sn(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):sn(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var pn=function(n){var e=n.addButtonProps,t=n.deleteRowProps,r=n.filterOptions,o=void 0===r?{}:r,c=n.filterValueLabelMapping,u=n.moreActionsMenuItems,l=(n.groupings,n.query),a=void 0===l?{}:l,d=n.searchProps,f=n.secondaryActionButtonProps,p=n.selectedRowId,h=n.setSelectedRow,m=(0,dn.Ct)(),x=(0,s.useRef)(null),P=(0,s.useRef)(null),Z=(0,s.useRef)(null),k=(0,s.useRef)(null),C=(0,s.useState)(!1),E=C[0],S=C[1],D=(0,s.useState)(!1),I=D[0],N=D[1],L=(0,s.useState)(!1),B=L[0],V=L[1],W=(0,s.useState)(null),Y=W[0],F=W[1],z=!p,q=(0,s.useCallback)((function(){return S(!1)}),[]),U=(0,s.useCallback)((function(){return N(!1)}),[]),X=(0,s.useCallback)((function(){return V(null)}),[]),K=(0,s.useCallback)((function(){return F(null)}),[]),Q=f||{},J=Q.Icon,$=Q.confirmationDescription,sn=Q.confirmationMessage,pn=Q.isLoading,hn=Q.label,bn=Q.onClick,gn=Q.openConfirmationDialogue,vn=Q.tooltip,mn=t||{},yn=mn.confirmationMessage,On=mn.isLoading,xn=mn.item,jn=mn.onDelete,wn=d||{},Pn=wn.placeholder,Zn=wn.onChange,kn=wn.value,Cn=(0,s.useMemo)((function(){return Object.entries(o).reduce((function(n,e){var t=(0,i.Z)(e,2),r=t[0],o=t[1];return n[r]={},o.forEach((function(e){var t,i=(null===(t=a["".concat(r,"[]")])||void 0===t?void 0:t.includes(e))||!1;n[r][e]=i})),n}),{})}),[o,a]),En=e||{},Sn=En.label,An=En.menuItems,Rn=En.isLoading,_n=(0,s.useMemo)((function(){return(0,w.jsx)(_.Z,{disableKeyboardShortcuts:!0,items:An,onClickCallback:q,onClickOutside:q,open:E,parentRef:x,roundedStyle:!0,uuid:"table/toolbar/new_item_menu",children:(0,w.jsx)(v.ZP,fn(fn({},un),{},{background:rn.eW,beforeElement:(0,w.jsx)(G.mm,{size:2.5*H.iI}),loading:Rn,onClick:function(n){n.preventDefault(),S((function(n){return!n}))},uuid:"table/toolbar/add_button",children:Sn}))})}),[Sn,An,E,q,Rn]),Tn=(0,s.useMemo)((function(){return(0,an.dw)(Cn)}),[Cn]),Dn=(0,s.useMemo)((function(){return(0,w.jsx)(en,{compact:!0,onClickCallback:U,onClickOutside:U,open:I,options:Cn,parentRef:P,query:a,setOpen:N,toggleValueMapping:c,children:(0,w.jsx)(v.ZP,fn(fn({},un),{},{afterElement:Tn>0?(0,w.jsx)(A.Z,{cyan:!0,noVerticalPadding:!0,children:(0,w.jsx)(O.ZP,{bold:!0,inverted:!0,children:Tn})}):null,beforeElement:(0,w.jsx)(G.wn,{size:2*H.iI}),onClick:function(){return N((function(n){return!n}))},uuid:"table/toolbar/filter_button",children:"Filter"}))})}),[U,I,Cn,c,Tn,a]),In=(0,s.useMemo)((function(){return(0,w.jsx)(_.Z,{disableKeyboardShortcuts:!0,items:u,onClickCallback:X,onClickOutside:X,open:B,parentRef:Z,roundedStyle:!0,uuid:"table/toolbar/more_actions_menu",children:(0,w.jsx)(tn.Z,fn(fn({},ln),{},{label:"More actions",children:(0,w.jsx)(v.ZP,{Icon:G.mH,bold:!0,disabled:z,greyBorder:!0,onClick:function(){return V((function(n){return!n}))},smallIcon:!0,uuid:"table/toolbar/more_actions_button"})}))})}),[X,z,B,u]);return(0,w.jsxs)(g.Z,{alignItems:"center",children:[_n,(0,w.jsx)(y.Z,{mr:on}),Dn,!m&&bn&&(0,w.jsxs)(y.Z,{ml:on,children:[(0,w.jsx)(tn.Z,fn(fn({},ln),{},{label:vn,children:(0,w.jsx)(v.ZP,{Icon:!pn&&J,bold:!0,disabled:z,greyBorder:!0,loading:pn,onClick:gn?function(){return F(nn.SECONDARY)}:bn,smallIcon:!0,uuid:"table/toolbar/secondary_action_button",children:hn})})),(0,w.jsx)(R.Z,{onClickOutside:K,open:Y===nn.SECONDARY,children:(0,w.jsx)(T.Z,{onCancel:K,onClick:function(){bn(),K(),h(null)},subtitle:$,title:sn,top:58,width:cn})})]}),!m&&jn&&(0,w.jsxs)(y.Z,{ml:on,children:[(0,w.jsx)(tn.Z,fn(fn({},ln),{},{label:"Delete ".concat(xn),children:(0,w.jsx)(v.ZP,{Icon:!On&&G.rF,bold:!0,disabled:z,greyBorder:!0,loading:On,onClick:function(){return F(nn.DELETE)},smallIcon:!0,uuid:"table/toolbar/delete_button"})})),(0,w.jsx)(R.Z,{onClickOutside:K,open:Y===nn.DELETE,children:(0,w.jsx)(T.Z,{danger:!0,onCancel:K,onClick:function(){jn(p),K(),h(null)},subtitle:yn,title:"Are you sure you want to delete the ".concat(xn," ").concat(p,"?"),top:58,width:cn})})]}),!m&&(null===u||void 0===u?void 0:u.length)>0&&(0,w.jsx)(y.Z,{ml:on,children:In}),Zn&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(y.Z,{ml:on}),(0,w.jsx)(b.Z,{flex:1,children:(0,w.jsx)(j.Z,{afterIcon:kn?(0,w.jsx)(G.x8,{}):null,afterIconClick:function(){var n;Zn(""),null===k||void 0===k||null===(n=k.current)||void 0===n||n.focus()},afterIconSize:1.5*H.iI,beforeIcon:(0,w.jsx)(G.HN,{}),borderRadius:M.n_,defaultColor:!0,fullWidth:!0,greyBorder:!0,maxWidth:60*H.iI,onChange:function(n){return Zn(n.target.value)},paddingVertical:9,placeholder:Pn||null,ref:k,value:kn})})]})]})},hn=t(82531),bn=t(86422),gn=t(93348),vn=t(96510),mn=t(66653),yn=t(59e3),On=t(83608);function xn(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function jn(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?xn(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):xn(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var wn={borderRadius:M.BG,iconOnly:!0,noBackground:!0,noBorder:!0,outline:!0,padding:"4px"};function Pn(){var n=(0,f.useRouter)(),e=(0,s.useState)(null),t=e[0],r=e[1],c=(0,s.useState)(null),u=c[0],l=c[1],g=(0,s.useState)({}),v=g[0],m=g[1],x=(0,s.useState)(null),j=x[0],C=x[1],A=(0,yn.iV)(),R=hn.ZP.pipelines.list(jn(jn({},A),{},{include_schedules:1})),_=R.data,T=R.mutate,D=(0,s.useMemo)((function(){var n=(null===_||void 0===_?void 0:_.pipelines)||[];if(u){var e=u.toLowerCase();n=n.filter((function(n){var t=n.name,r=n.description,i=n.uuid;return(null===t||void 0===t?void 0:t.toLowerCase().includes(e))||(null===i||void 0===i?void 0:i.toLowerCase().includes(e))||(null===r||void 0===r?void 0:r.toLowerCase().includes(e))}))}return n}),[null===_||void 0===_?void 0:_.pipelines,u]),I=function(n){return(0,d.Db)(hn.ZP.pipelines.useCreate(),{onSuccess:function(e){return(0,vn.wD)(e,{callback:function(e){var t=e.pipeline.uuid;null===n||void 0===n||n(t)},onErrorCallback:function(n,e){return C({errors:e,response:n})}})}})},N=I((function(e){return n.push("/pipelines/[pipeline]/edit","/pipelines/".concat(e,"/edit"))})),M=(0,i.Z)(N,2),L=M[0],B=M[1].isLoading,V=I((function(){return null===T||void 0===T?void 0:T()})),W=(0,i.Z)(V,2),Y=W[0],F=W[1].isLoading,z=(0,d.Db)((function(n){return hn.ZP.pipelines.useUpdate(n.uuid)({pipeline:n})}),{onSuccess:function(n){return(0,vn.wD)(n,{callback:function(n){var e=n.pipeline.uuid;m((function(n){return jn(jn({},n),{},(0,o.Z)({},e,!1))})),T(),null===on||void 0===on||on(),r(null)},onErrorCallback:function(n,e){var t,r=null===n||void 0===n||null===(t=n.url_parameters)||void 0===t?void 0:t.pk;m((function(n){return jn(jn({},n),{},(0,o.Z)({},r,!1))})),C({errors:e,response:n})}})}}),q=(0,i.Z)(z,2),U=q[0],X=q[1].isLoading,K=(0,d.Db)((function(n){return hn.ZP.pipelines.useDelete(n)()}),{onSuccess:function(n){return(0,vn.wD)(n,{callback:function(){null===T||void 0===T||T()},onErrorCallback:function(n,e){return C({errors:e,response:n})}})}}),J=(0,i.Z)(K,2),$=J[0],nn=J[1].isLoading,en=(0,On.dd)((function(n){var e=n.pipelineDescription,r=n.pipelineName;return(0,w.jsx)(P,{isLoading:X,minWidth:55*H.iI,noEmptyValue:!!r,onClose:on,onSave:function(n){if(t){var e=t.uuid,i={uuid:e};r?i.name=n:i.description=n,m((function(n){return jn(jn({},n),{},(0,o.Z)({},e,!0))})),U(i)}},textArea:!r,title:r?"Rename pipeline":"Edit description",value:r||e})}),{},[X,t],{background:!0,uuid:"rename_pipeline_and_save"}),tn=(0,i.Z)(en,2),rn=tn[0],on=tn[1],cn=(0,s.useMemo)((function(){return(0,w.jsx)(pn,{addButtonProps:{isLoading:B,label:"New",menuItems:[{label:function(){return"Standard (batch)"},onClick:function(){return L({pipeline:{name:(0,Q.Y6)()}})},uuid:"Pipelines/NewPipelineMenu/standard"},{label:function(){return"Data integration"},onClick:function(){return L({pipeline:{name:(0,Q.Y6)(),type:k.qL.INTEGRATION}})},uuid:"Pipelines/NewPipelineMenu/integration"},{label:function(){return"Streaming"},onClick:function(){return L({pipeline:{name:(0,Q.Y6)(),type:k.qL.STREAMING}})},uuid:"Pipelines/NewPipelineMenu/streaming"}]},deleteRowProps:{confirmationMessage:"This is irreversible and will immediately delete everything associated with the pipeline, including its blocks, triggers, runs, logs, and history.",isLoading:nn,item:"pipeline",onDelete:function(){return $(null===t||void 0===t?void 0:t.uuid)}},filterOptions:{status:Object.values(k.QK),type:Object.values(k.qL)},filterValueLabelMapping:k.G7,moreActionsMenuItems:[{label:function(){return"Rename pipeline"},onClick:function(){return rn({pipelineName:null===t||void 0===t?void 0:t.name})},uuid:"Pipelines/MoreActionsMenu/Rename"},{label:function(){return"Edit description"},onClick:function(){return rn({pipelineDescription:null===t||void 0===t?void 0:t.description})},uuid:"Pipelines/MoreActionsMenu/EditDescription"}],query:A,searchProps:{onChange:l,value:u},secondaryActionButtonProps:{Icon:G.oX,confirmationDescription:"Cloning the selected pipeline will create a new pipeline with the same configuration and code blocks. The blocks use the same block files as the original pipeline. Pipeline triggers, runs, backfills, and logs are not copied over to the new pipeline.",confirmationMessage:"Do you want to clone the pipeline ".concat(null===t||void 0===t?void 0:t.uuid,"?"),isLoading:F,onClick:function(){return Y({pipeline:{clone_pipeline_uuid:null===t||void 0===t?void 0:t.uuid}})},openConfirmationDialogue:!0,tooltip:"Clone pipeline"},selectedRowId:null===t||void 0===t?void 0:t.uuid,setSelectedRow:r})}),[Y,L,$,F,B,nn,A,u,null===t||void 0===t?void 0:t.description,null===t||void 0===t?void 0:t.name,null===t||void 0===t?void 0:t.uuid,rn]);return(0,w.jsx)(h.Z,{errors:j,setErrors:C,subheaderChildren:cn,title:"Pipelines",uuid:"pipelines/index",children:0===(null===D||void 0===D?void 0:D.length)?(0,w.jsx)(y.Z,{px:3,py:1,children:_?(0,w.jsx)(O.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:"No pipelines available"}):(0,w.jsx)(E.Z,{inverted:!0,large:!0})}):(0,w.jsx)(S.Z,{columnFlex:[null,1,3,4,1,1,1,null],columns:[{label:function(){return""},uuid:"action"},{uuid:"Status"},{uuid:"Name"},{uuid:"Description"},{uuid:"Type"},{uuid:"Blocks"},{uuid:"Triggers"},{center:!0,uuid:"Actions"}],isSelectedRow:function(n){var e;return(null===(e=D[n])||void 0===e?void 0:e.uuid)===(null===t||void 0===t?void 0:t.uuid)},onClickRow:function(n){return r((function(e){var t=D[n];return(null===e||void 0===e?void 0:e.uuid)!==(null===t||void 0===t?void 0:t.uuid)?t:null}))},onDoubleClickRow:function(e){n.push("/pipelines/[pipeline]","/pipelines/".concat(D[e].uuid))},rows:D.map((function(e,t){var r=e.blocks,i=e.description,c=e.schedules,u=e.type,l=e.uuid,d=r.filter((function(n){var e=n.type;return bn.tf.SCRATCHPAD!==e})).length,s=c.length,f=c.find((function(n){var e=n.status;return gn.fq.ACTIVE===e}));return[s>=1||v[l]?(0,w.jsx)(p.Z,{iconOnly:!0,loading:!!v[l],noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(n){(0,mn.j)(n),m((function(n){return jn(jn({},n),{},(0,o.Z)({},l,!0))})),U(jn(jn({},e),{},{status:f?gn.fq.INACTIVE:gn.fq.ACTIVE}))},children:f?(0,w.jsx)(G.dz,{muted:!0,size:2*H.iI}):(0,w.jsx)(G.Py,{default:!0,size:2*H.iI})}):null,(0,w.jsx)(O.ZP,{default:!f,monospace:!0,success:!!f,children:f?gn.fq.ACTIVE:s>=1?gn.fq.INACTIVE:"no schedules"},"pipeline_status_".concat(t)),(0,w.jsx)(a(),{as:"/pipelines/".concat(l),href:"/pipelines/[pipeline]",passHref:!0,children:(0,w.jsx)(Z.Z,{sameColorAsText:!0,children:l})},"pipeline_name_".concat(t)),(0,w.jsx)(O.ZP,{default:!0,title:i,width:90*H.iI,children:i},"pipeline_description_".concat(t)),(0,w.jsx)(O.ZP,{children:u===k.qL.PYTHON?"Standard":(0,Q.kC)(u)},"pipeline_type_".concat(t)),(0,w.jsx)(O.ZP,{default:0===d,monospace:!0,children:d},"pipeline_block_count_".concat(t)),(0,w.jsx)(O.ZP,{default:0===s,monospace:!0,children:s},"pipeline_trigger_count_".concat(t)),(0,w.jsxs)(b.Z,{flex:1,justifyContent:"flex-end",children:[(0,w.jsx)(p.Z,jn(jn({},wn),{},{onClick:function(){n.push("/pipelines/[pipeline]","/pipelines/".concat(l))},title:"Detail",children:(0,w.jsx)(G.UY,{default:!0,size:2*H.iI})})),(0,w.jsx)(y.Z,{mr:1}),(0,w.jsx)(p.Z,jn(jn({},wn),{},{onClick:function(){n.push("/pipelines/[pipeline]/logs","/pipelines/".concat(l,"/logs"))},title:"Logs",children:(0,w.jsx)(G.$B,{default:!0,size:2*H.iI})}))]},"chevron_icon_".concat(t))]}))})})}Pn.getInitialProps=(0,r.Z)(u().mark((function n(){return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",{});case 1:case"end":return n.stop()}}),n)})));var Zn=(0,C.Z)(Pn)},24224:function(n,e,t){"use strict";t.d(e,{HK:function(){return a},Hk:function(){return u},IN:function(){return x},Od:function(){return p},Qj:function(){return v},Sm:function(){return O},YC:function(){return d},fS:function(){return b},m5:function(){return y},mp:function(){return j},mr:function(){return s},oM:function(){return h},ry:function(){return f},sE:function(){return l},tS:function(){return g},w6:function(){return m}});var r=t(82394),i=t(7715);function o(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function c(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?o(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):o(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function u(n,e,t){var r=t.slice();return r.splice(e,0,n),r}function l(n,e){return null===n||void 0===n?void 0:n.find(e)}function a(n,e){return null===n||void 0===n?void 0:n.reduce((function(n,t){return c(c({},n),{},(0,r.Z)({},e(t),t))}),{})}function d(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.ascending,o=void 0===r||r,c=t.absoluteValue,u=void 0!==c&&c,l="string"===typeof e||"number"===typeof e?function(n){return u?Math.abs((0,i.t2)(n,e)):(0,i.t2)(n,e)}:function(n){return u?Math.abs(e(n)):e(n)};return n.sort((function(n,e){var t=0;return l(n)>l(e)?t=o?1:-1:l(n)<l(e)&&(t=o?-1:1),t}))}function s(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e.ascending,r=void 0===t||t;return n.sort((function(n,e){var t=0;return n[0]>e[0]?t=r?1:-1:n[0]<e[0]&&(t=r?-1:1),t}))}function f(n,e){for(var t=-1,r=n.length;1+t<r;){var i=t+(r-t>>1);e(n[i])?t=i:r=i}return r}function p(n,e){var t=n.findIndex(e);return h(n,t)}function h(n,e){return n.slice(0,e).concat(n.slice(e+1,n.length))}function b(n,e){return n.map((function(n){return String(n)})).join()===e.map((function(n){return String(n)})).join()}function g(n,e){return n>e}function v(n,e){return n<e}function m(n){return Array(n).fill(0)}function y(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=Array.from(Array(n).keys());return 0!==e&&(t=t.map((function(n){return n+e}))),t}function O(n){return n.reduce((function(n,e){return n+e}),0)}function x(n){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=n.reduce((function(n,e){return n+e}),0)/n.length;return Math.sqrt(n.reduce((function(n,e){return n.concat(Math.pow(e-t,2))}),[]).reduce((function(n,e){return n+e}),0)/(n.length-(e?0:1)))}function j(n){return n[Math.floor(Math.random()*n.length)]}},33766:function(n,e,t){"use strict";t.d(e,{g_:function(){return f},u7:function(){return s}});var r=t(75582),i=t(82394),o=t(34376),c=t.n(o),u=t(59e3),l=t(24224);function a(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function d(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?a(Object(t),!0).forEach((function(e){(0,i.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function s(n){var e,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.replaceParams,o=t.pushHistory,l=i?{}:(0,u.iV)();e=window.location.pathname;var a=o?c().push:c().replace,s=d(d({},l),n);Object.entries(n).forEach((function(n){var e=(0,r.Z)(n,2),t=e[0],i=e[1];"undefined"!==typeof i&&null!==i||delete s[t]}));var f=(0,u.uM)(s);f.length>=1&&(f="?".concat(f));var p="".concat(e.split("?")[0]).concat(f);return a(c().router.pathname,p,{shallow:!0})}function f(n,e,t){var i=t.addingMultipleValues,o=t.isList,c=t.itemsPerPage,u=t.resetLimitParams,a=d({},n);i?Object.entries(e).forEach((function(n){var e=(0,r.Z)(n,2),t=e[0],i=e[1];if(Array.isArray(i)){var o="".concat(t,"[]");a[o]=i.map(String)}})):o?Object.entries(e).forEach((function(n){var e=(0,r.Z)(n,2),t=e[0],i=e[1],o=String(i),c="".concat(t,"[]"),u=a[c];u&&Array.isArray(u)?(u=u.map(String)).includes(o)?a[c]=(0,l.Od)(u,(function(n){return n===o})):a[c]=u.concat(o):a[c]=[o]})):a=d(d({},a),e),u&&(a._limit=c||20,a._offset=0),s(a)}},90211:function(n,e,t){"use strict";t.d(e,{RA:function(){return a},kC:function(){return d},vg:function(){return v},T3:function(){return O},Mp:function(){return s},Pb:function(){return u},HW:function(){return y},wX:function(){return f},x6:function(){return p},_6:function(){return h},zf:function(){return m},Y6:function(){return j},wE:function(){return w},J3:function(){return b},We:function(){return l},QV:function(){return x},C5:function(){return g}});var r=t(75582),i=["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"],o=(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 u(n){if(!n)return!1;try{JSON.parse(n)}catch(e){return!1}return!0}function l(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";return n.split(" ").join(e)}function a(n){return n.split(" ").join("_")}function d(n){return n?n.charAt(0).toUpperCase()+n.slice(1):""}function s(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return String((new Date).getTime()*n)}function f(n){return n.charAt(0).toLowerCase()+n.slice(1)}function p(n){if(null===n||"undefined"===typeof n)return"";var e=n.toString().split("."),t=(0,r.Z)(e,2),i=t[0],o=t[1],c=i.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",");return o?"".concat(c,".").concat(o):c}function h(n,e){var t,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=e,o=void 0!==i&&null!==i;if(o||(i=2),1===i)t=n;else{var c=n.length,u=n[c-1];t="y"===u&&"day"!==n?"".concat(n.slice(0,c-1),"ies"):"".concat(n,"s"===u?"es":"s")}if(o){var l=r?p(i):i;return"".concat(l," ").concat(t)}return t}function b(n){return null===n||void 0===n?void 0:n.replace(/_/g," ")}function g(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 v(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return d(b(n.toLowerCase()))}function m(n){var e,t=[["second",60],["minute",60],["hour",24],["day",7],["week",4],["month",12],["year",null]];return t.forEach((function(i,o){if(!e){var c=(0,r.Z)(i,2),u=c[0],l=c[1],a=t.slice(0,o).reduce((function(n,e){return n*Number(e[1])}),1);n<Number(l)*a&&(e=h(u,Math.round(n/a)))}})),e}function y(n){return!isNaN(n)}function O(n){return"".concat(p(function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return Math.round((n||0)*Math.pow(100,e))/100}(n)),"%")}function x(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 j(){return"".concat((0,c.mp)(i)," ").concat((0,c.mp)(o))}function w(n){var e=n.split("/"),t=e[e.length-1].split(".")[0];return e.slice(0,e.length-1).concat(t).join("/")}},79274:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines",function(){return t(46614)}])}},function(n){n.O(0,[3850,2083,2344,9386,9774,2888,179],(function(){return e=79274,n(n.s=e);var e}));var e=n.O();_N_E=e}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2287],{45838:function(n,e,r){"use strict";r.d(e,{GZ:function(){return d},Vq:function(){return a},cE:function(){return f},cl:function(){return u},kA:function(){return l}});var t=r(9518),o=r(23831),i=r(37391),c=r(49125),u=t.default.div.withConfig({displayName:"indexstyle__TableContainerStyle",componentId:"sc-1wzfyed-0"})(["position:relative;overflow:auto;"," "," ",""],i.w5,(function(n){return n.minHeight&&"\n min-height: ".concat(n.minHeight,"px;\n ")}),(function(n){return n.overflowVisible&&"\n overflow: visible;\n "})),l=t.default.table.withConfig({displayName:"indexstyle__TableStyle",componentId:"sc-1wzfyed-1"})(["contain:size;width:100%;",""],(function(n){return(n.columnBorders||n.borderCollapseSeparate)&&"\n border-collapse: separate;\n "})),a=t.default.tr.withConfig({displayName:"indexstyle__TableRowStyle",componentId:"sc-1wzfyed-2"})([""," ",""],(function(n){return n.highlightOnHover&&"\n &:hover {\n background: ".concat((n.theme.interactive||o.Z.interactive).rowHoverBackground,";\n }\n ")}),(function(n){return!n.noHover&&"\n &:hover {\n background: ".concat((n.theme.interactive||o.Z.interactive).rowHoverBackground,";\n cursor: pointer;\n }\n ")})),s=(0,t.css)(["text-overflow:ellipsis;white-space:nowrap;"," "," "," "," "," ",""],(function(n){return!n.alignTop&&"\n vertical-align: middle;\n "}),(function(n){return n.alignTop&&"\n vertical-align: top;\n "}),(function(n){return!n.noBorder&&"\n border-bottom: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.compact&&"\n padding: ".concat(c.iI/2,"px ").concat(c.iI,"px;\n ")}),(function(n){return!n.compact&&"\n padding: ".concat(c.iI,"px ").concat(2*c.iI,"px;\n ")}),(function(n){return n.maxWidth&&"\n max-width: ".concat(n.maxWidth,";\n ")})),d=t.default.th.withConfig({displayName:"indexstyle__TableHeadStyle",componentId:"sc-1wzfyed-3"})([""," "," "," ",""],s,(function(n){return n.columnBorders&&"\n border: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n border-right: none;\n ")}),(function(n){return n.columnBorders&&n.last&&"\n border-right: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.sticky&&"\n background-color: ".concat((n.theme||o.Z).background.panel,";\n border-bottom: 1px solid ").concat((n.theme.borders||o.Z.borders).medium,";\n z-index: 2;\n position: sticky;\n top: 0;\n\n &:first-child {\n left: 0;\n z-index: 2;\n }\n ")})),f=t.default.td.withConfig({displayName:"indexstyle__TableDataStyle",componentId:"sc-1wzfyed-4"})([""," "," "," "," "," "," ",""],s,(function(n){return n.rowVerticalPadding&&"\n padding-top: ".concat(n.rowVerticalPadding,"px;\n padding-bottom: ").concat(n.rowVerticalPadding,"px;\n ")}),(function(n){return n.columnBorders&&"\n border-left: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.columnBorders&&n.last&&"\n border-right: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.stickyFirstColumn&&"\n background-color: ".concat((n.theme||o.Z).background.panel,";\n z-index: 1;\n position: sticky;\n left: 0;\n ")}),(function(n){return n.selected&&"\n background-color: ".concat((n.theme.interactive||o.Z.interactive).activeBorder,";\n ")}),(function(n){return n.wrapColumns&&"\n white-space: break-spaces;\n "}))},87815:function(n,e,r){"use strict";var t=r(82394),o=r(12691),i=r.n(o),c=r(82684),u=r(67971),l=r(10919),a=r(86673),s=r(19711),d=r(46261),f=r(45838),p=r(28598);function v(n,e){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.push.apply(r,t)}return r}function h(n){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?v(Object(r),!0).forEach((function(e){(0,t.Z)(n,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}))}return n}e.Z=function(n){var e=n.alignTop,r=n.borderCollapseSeparate,t=n.buildLinkProps,o=n.buildRowProps,v=n.columnBorders,b=n.columnFlex,m=n.columnMaxWidth,g=n.columns,w=void 0===g?[]:g,y=n.compact,O=n.highlightRowOnHover,j=n.isSelectedRow,x=n.noBorder,P=n.noHeader,_=n.onClickRow,Z=n.onDoubleClickRow,k=n.rows,S=n.rowVerticalPadding,C=n.stickyFirstColumn,E=n.stickyHeader,D=n.uuid,H=n.wrapColumns,B=(0,c.useMemo)((function(){return b.reduce((function(n,e){return n+(e||0)}),0)}),[b]),M=(0,c.useCallback)((function(n){if(b[n]){var e=Math.round(b[n]/B*100);return"".concat(e,"%")}return null}),[b,B]),I=(0,c.useMemo)((function(){return null===k||void 0===k?void 0:k.map((function(n,r){var u,a=null===t||void 0===t?void 0:t(r),s=(null===o||void 0===o?void 0:o(r))||{renderCell:null,renderRow:null},d=s.renderCell,b=s.renderRow,g=[];if(n.forEach((function(t,o){var i;d&&(i=d(t,o)),i||(i=(0,p.jsx)(f.cE,{alignTop:e,columnBorders:v,compact:y,last:o===n.length-1,maxWidth:null===m||void 0===m?void 0:m(o),noBorder:x,rowVerticalPadding:S,selected:null===j||void 0===j?void 0:j(r),stickyFirstColumn:C&&0===o,width:M(o),wrapColumns:H,children:t},"".concat(D,"-row-").concat(r,"-cell-").concat(o))),g.push(i)})),b)u=b(g);else{u=(0,p.jsx)(f.Vq,{highlightOnHover:O,noHover:!(a||_),onClick:_?function(n){return function(n,e){1===(null===e||void 0===e?void 0:e.detail)?_(n):Z&&2===(null===e||void 0===e?void 0:e.detail)&&Z(n)}(r,n)}:null,children:g},"".concat(D,"-row-").concat(r))}return a?(0,c.createElement)(i(),h(h({},a),{},{key:"".concat(D,"-row-link-").concat(r),passHref:!0}),(0,p.jsx)(l.Z,{fullWidth:!0,noHoverUnderline:!0,noOutline:!0,style:{display:"table-row-group"},verticalAlignContent:!0,children:u})):u}))}),[e,t,M,v,m,y,o,O,j,x,_,Z,S,k,C,D,H]);return(0,p.jsxs)(f.kA,{borderCollapseSeparate:r,columnBorders:v,children:[(null===w||void 0===w?void 0:w.length)>=1&&!P&&(0,p.jsx)(f.Vq,{noHover:!0,children:w.map((function(n,e){return(0,p.jsx)(f.GZ,{columnBorders:v,compact:y,last:e===w.length-1,noBorder:x,sticky:E,children:(0,p.jsxs)(u.Z,{alignItems:"center",justifyContent:n.center?"center":"flex-start",children:[(0,p.jsx)(s.ZP,{bold:!0,leftAligned:!0,monospace:!0,muted:!0,children:n.label?n.label():n.uuid}),n.tooltipMessage&&(0,p.jsx)(a.Z,{ml:"4px",children:(0,p.jsx)(d.Z,{appearBefore:!0,label:(0,p.jsx)(s.ZP,{leftAligned:!0,children:n.tooltipMessage}),lightBackground:!0,primary:!0})})]})},"".concat(D,"-col-").concat(n.uuid,"-").concat(e))}))}),I]})}},60921:function(n,e,r){"use strict";r.r(e);var t=r(77837),o=r(82394),i=r(38860),c=r.n(i),u=r(82684),l=r(34376),a=r(60328),s=r(87372),d=r(41788),f=r(30775),p=r(86673),v=r(87815),h=r(19711),b=r(20582),m=r(82531),g=r(66166),w=r(10503),y=r(49125),O=r(79585),j=r(63153),x=r(9736),P=r(33766),_=r(7715),Z=r(59e3),k=r(28598);function S(n,e){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.push.apply(r,t)}return r}function C(n){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?S(Object(r),!0).forEach((function(e){(0,o.Z)(n,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):S(Object(r)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}))}return n}function E(){var n=(0,l.useRouter)(),e=((0,x.PR)()||{}).id,r=(0,u.useState)(null),t=r[0],o=r[1],i=m.ZP.users.list({},{revalidateOnFocus:!1}),c=i.data,d=i.mutate,S=(0,u.useMemo)((function(){return(null===c||void 0===c?void 0:c.users)||[]}),[c]),E=m.ZP.users.detail(null===t||void 0===t?void 0:t.user_id,{},{revalidateOnFocus:!1}),D=E.data,H=E.mutate,B=null===D||void 0===D?void 0:D.user,M=(0,Z.iV)(),I=(0,g.Z)(M);(0,u.useEffect)((function(){var n=M.add_new_user,e=M.user_id;if(!(0,_.Xy)(M,I)){var r=C(C({},I),M);e?r.user_id=e:delete r.user_id,n?r.add_new_user=n:delete r.add_new_user,o(r)}}),[M,I]);var A=null===t||void 0===t?void 0:t.add_new_user,R=(0,u.useMemo)((function(){return A?(0,k.jsx)(p.Z,{p:y.cd,children:(0,k.jsx)(b.Z,{newUser:!0,onSaveSuccess:function(){(0,P.u7)({add_new_user:null,user_id:null}),d()},title:"Add new user",user:{}})}):B?(0,k.jsx)(p.Z,{p:y.cd,children:(0,k.jsx)(b.Z,{hideFields:[j.s7],onDeleteSuccess:function(){(0,P.u7)({add_new_user:null,user_id:null}),d()},onSaveSuccess:function(){H(),d()},showDelete:!0,title:"Edit user",user:B})}):null}),[H,d,A,B]);return(0,k.jsxs)(f.Z,{after:R,afterHidden:!B&&!A,uuidItemSelected:O.eC,uuidWorkspaceSelected:O.WH,children:[(0,k.jsx)(p.Z,{p:y.cd,children:(0,k.jsx)(a.Z,{beforeIcon:(0,k.jsx)(w.mm,{}),onClick:function(){return(0,P.u7)({add_new_user:1,user_id:null})},primary:!0,children:"Add new user"})}),(0,k.jsx)(p.Z,{p:y.cd,children:(0,k.jsx)(s.Z,{children:"Users"})}),(0,k.jsx)(v.Z,{columnFlex:[1,1,1],columns:[{uuid:"Username"},{uuid:"Email"},{uuid:"Role"}],isSelectedRow:function(n){var e;return(null===(e=S[n])||void 0===e?void 0:e.id)===(null===B||void 0===B?void 0:B.id)},onClickRow:function(r){var t,o=null===(t=S[r])||void 0===t?void 0:t.id;o===e?n.push("/settings/account/profile"):(0,P.u7)({add_new_user:null,user_id:o})},rows:S.map((function(n){var e=n.email,r=n.roles_display,t=n.username;return[(0,k.jsx)(h.ZP,{bold:!0,children:t},"username"),(0,k.jsx)(h.ZP,{default:!0,children:e},"email"),(0,k.jsx)(h.ZP,{default:!0,children:r},"roles")]})),uuid:"pipeline-runs"})]})}E.getInitialProps=(0,t.Z)(c().mark((function n(){return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",{});case 1:case"end":return n.stop()}}),n)}))),e.default=(0,d.Z)(E)},24224:function(n,e,r){"use strict";r.d(e,{HK:function(){return a},Hk:function(){return u},IN:function(){return O},Od:function(){return p},Qj:function(){return m},Sm:function(){return y},YC:function(){return s},fS:function(){return h},m5:function(){return w},mp:function(){return j},mr:function(){return d},oM:function(){return v},ry:function(){return f},sE:function(){return l},tS:function(){return b},w6:function(){return g}});var t=r(82394),o=r(7715);function i(n,e){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.push.apply(r,t)}return r}function c(n){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(Object(r),!0).forEach((function(e){(0,t.Z)(n,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}))}return n}function u(n,e,r){var t=r.slice();return t.splice(e,0,n),t}function l(n,e){return null===n||void 0===n?void 0:n.find(e)}function a(n,e){return null===n||void 0===n?void 0:n.reduce((function(n,r){return c(c({},n),{},(0,t.Z)({},e(r),r))}),{})}function s(n,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},t=r.ascending,i=void 0===t||t,c=r.absoluteValue,u=void 0!==c&&c,l="string"===typeof e||"number"===typeof e?function(n){return u?Math.abs((0,o.t2)(n,e)):(0,o.t2)(n,e)}:function(n){return u?Math.abs(e(n)):e(n)};return n.sort((function(n,e){var r=0;return l(n)>l(e)?r=i?1:-1:l(n)<l(e)&&(r=i?-1:1),r}))}function d(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.ascending,t=void 0===r||r;return n.sort((function(n,e){var r=0;return n[0]>e[0]?r=t?1:-1:n[0]<e[0]&&(r=t?-1:1),r}))}function f(n,e){for(var r=-1,t=n.length;1+r<t;){var o=r+(t-r>>1);e(n[o])?r=o:t=o}return t}function p(n,e){var r=n.findIndex(e);return v(n,r)}function v(n,e){return n.slice(0,e).concat(n.slice(e+1,n.length))}function h(n,e){return n.map((function(n){return String(n)})).join()===e.map((function(n){return String(n)})).join()}function b(n,e){return n>e}function m(n,e){return n<e}function g(n){return Array(n).fill(0)}function w(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=Array.from(Array(n).keys());return 0!==e&&(r=r.map((function(n){return n+e}))),r}function y(n){return n.reduce((function(n,e){return n+e}),0)}function O(n){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=n.reduce((function(n,e){return n+e}),0)/n.length;return Math.sqrt(n.reduce((function(n,e){return n.concat(Math.pow(e-r,2))}),[]).reduce((function(n,e){return n+e}),0)/(n.length-(e?0:1)))}function j(n){return n[Math.floor(Math.random()*n.length)]}},33766:function(n,e,r){"use strict";r.d(e,{g_:function(){return f},u7:function(){return d}});var t=r(75582),o=r(82394),i=r(34376),c=r.n(i),u=r(59e3),l=r(24224);function a(n,e){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.push.apply(r,t)}return r}function s(n){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?a(Object(r),!0).forEach((function(e){(0,o.Z)(n,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}))}return n}function d(n){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.replaceParams,i=r.pushHistory,l=o?{}:(0,u.iV)();e=window.location.pathname;var a=i?c().push:c().replace,d=s(s({},l),n);Object.entries(n).forEach((function(n){var e=(0,t.Z)(n,2),r=e[0],o=e[1];"undefined"!==typeof o&&null!==o||delete d[r]}));var f=(0,u.uM)(d);f.length>=1&&(f="?".concat(f));var p="".concat(e.split("?")[0]).concat(f);return a(c().router.pathname,p,{shallow:!0})}function f(n,e,r){var o=r.addingMultipleValues,i=r.isList,c=r.itemsPerPage,u=r.resetLimitParams,a=s({},n);o?Object.entries(e).forEach((function(n){var e=(0,t.Z)(n,2),r=e[0],o=e[1];if(Array.isArray(o)){var i="".concat(r,"[]");a[i]=o.map(String)}})):i?Object.entries(e).forEach((function(n){var e=(0,t.Z)(n,2),r=e[0],o=e[1],i=String(o),c="".concat(r,"[]"),u=a[c];u&&Array.isArray(u)?(u=u.map(String)).includes(i)?a[c]=(0,l.Od)(u,(function(n){return n===i})):a[c]=u.concat(i):a[c]=[i]})):a=s(s({},a),e),u&&(a._limit=c||20,a._offset=0),d(a)}},48673:function(n,e,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/users",function(){return r(60921)}])}},function(n){n.O(0,[3850,2344,9386,5477,9774,2888,179],(function(){return e=48673,n(n.s=e);var e}));var e=n.O();_N_E=e}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4841],{1210:function(e,t,n){"use strict";n.d(t,{Z:function(){return E}});var r=n(82394),i=n(21831),o=n(82684),u=n(47999),c=n(49894),s=n(93461),a=n(57384),l=n(12344),f=n(72454),d=n(28598);function v(e,t){var n=e.children;return(0,d.jsx)(f.HS,{ref:t,children:n})}var h=o.forwardRef(v),p=n(32063),b=n(15270),O=n(82531),j=n(66166),P=n(3055),w=n(49125),Z=n(91427),m=n(24141);function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var E=function(e){var t,n=e.after,r=e.afterHidden,v=e.afterWidth,_=e.afterWidthOverride,E=e.before,k=e.beforeWidth,y=e.breadcrumbs,x=e.children,S=e.errors,N=e.headerMenuItems,A=e.navigationItems,I=e.setErrors,T=e.subheaderChildren,C=e.title,R=e.uuid,H=(0,m.i)().width,M="dashboard_after_width_".concat(R),D="dashboard_before_width_".concat(R),W=(0,o.useRef)(null),Y=(0,o.useState)(_?v:(0,Z.U2)(M,v)),G=Y[0],K=Y[1],U=(0,o.useState)(!1),B=U[0],L=U[1],q=(0,o.useState)(E?Math.max((0,Z.U2)(D,k),13*w.iI):null),z=q[0],F=q[1],V=(0,o.useState)(!1),X=V[0],Q=V[1],J=(0,o.useState)(null)[1],$=O.ZP.projects.list({},{revalidateOnFocus:!1}).data,ee=null===$||void 0===$?void 0:$.projects,te=[];y?te.push.apply(te,(0,i.Z)(y)):(null===ee||void 0===ee?void 0:ee.length)>=1&&te.push.apply(te,[{label:function(){var e;return null===(e=ee[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},{bold:!0,label:function(){return C}}]),(0,o.useEffect)((function(){null===W||void 0===W||!W.current||B||X||null===J||void 0===J||J(W.current.getBoundingClientRect().width)}),[B,G,X,z,W,J,H]),(0,o.useEffect)((function(){B||(0,Z.t8)(M,G)}),[r,B,G,M]),(0,o.useEffect)((function(){X||(0,Z.t8)(D,z)}),[X,z,D]);var ne=(0,j.Z)(v);return(0,o.useEffect)((function(){_&&ne!==v&&K(v)}),[_,v,ne]),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(a.Z,{title:C}),(0,d.jsx)(l.Z,{breadcrumbs:te,menuItems:N,project:null===ee||void 0===ee?void 0:ee[0],version:null===ee||void 0===ee||null===(t=ee[0])||void 0===t?void 0:t.version}),(0,d.jsxs)(f.Nk,{children:[0!==(null===A||void 0===A?void 0:A.length)&&(0,d.jsx)(f.lm,{children:(0,d.jsx)(b.Z,{navigationItems:A})}),(0,d.jsx)(s.Z,{flex:1,flexDirection:"column",children:(0,d.jsxs)(p.Z,{after:n,afterHeightOffset:P.Mz,afterHidden:r,afterMousedownActive:B,afterWidth:G,before:E,beforeHeightOffset:P.Mz,beforeMousedownActive:X,beforeWidth:f.k1+(E?z:0),hideAfterCompletely:!0,leftOffset:E?f.k1:null,mainContainerRef:W,setAfterMousedownActive:L,setAfterWidth:K,setBeforeMousedownActive:Q,setBeforeWidth:F,children:[T&&(0,d.jsx)(h,{children:T}),x]})})]}),S&&(0,d.jsx)(u.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===I||void 0===I?void 0:I(null)},children:(0,d.jsx)(c.Z,g(g({},S),{},{onClose:function(){return null===I||void 0===I?void 0:I(null)}}))})]})}},98781:function(e,t,n){"use strict";n.d(t,{G7:function(){return s},QK:function(){return c},a_:function(){return a},qL:function(){return o}});var r,i,o,u=n(82394);!function(e){e.INTEGRATION="integration",e.PYTHON="python",e.PYSPARK="pyspark",e.STREAMING="streaming"}(o||(o={}));var c,s=(r={},(0,u.Z)(r,o.INTEGRATION,"Integration"),(0,u.Z)(r,o.PYTHON,"Standard"),(0,u.Z)(r,o.PYSPARK,"PySpark"),(0,u.Z)(r,o.STREAMING,"Streaming"),r);!function(e){e.ACTIVE="active",e.INACTIVE="inactive",e.NO_SCHEDULES="no_schedules"}(c||(c={}));var a=(i={},(0,u.Z)(i,o.PYTHON,"python3"),(0,u.Z)(i,o.PYSPARK,"pysparkkernel"),i)},72433:function(e,t,n){"use strict";n.r(t);var r=n(77837),i=n(75582),o=n(38860),u=n.n(o),c=n(82684),s=n(83455),a=n(1210),l=n(41788),f=n(33699),d=n(82531),v=n(98781),h=n(96510),p=n(28598);function b(){var e=(0,s.Db)(d.ZP.kernels.useUpdate(v.a_[v.qL.PYTHON]),{onSuccess:function(e){return(0,h.wD)(e,{onErrorCallback:function(e,t){console.log(e),alert(t)}})}}),t=(0,i.Z)(e,1)[0],n=(0,c.useCallback)((function(){return t({kernel:{action_type:"interrupt"}})}),[t]);return(0,p.jsx)(a.Z,{title:"Terminal",uuid:"terminal/index",children:(0,p.jsx)(f.Z,{interruptKernel:n})})}b.getInitialProps=(0,r.Z)(u().mark((function e(){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)}))),t.default=(0,l.Z)(b)},27271:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/terminal",function(){return n(72433)}])}},function(e){e.O(0,[3850,9565,6085,2344,9386,3699,9774,2888,179],(function(){return t=27271,e(e.s=t);var t}));var t=e.O();_N_E=t}]);