mage-ai 0.9.14__py3-none-any.whl → 0.9.15__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 (138) hide show
  1. mage_ai/api/resources/PipelineRunResource.py +8 -5
  2. mage_ai/data_preparation/executors/block_executor.py +5 -7
  3. mage_ai/data_preparation/templates/constants.py +16 -0
  4. mage_ai/data_preparation/templates/data_exporters/mssql.py +32 -0
  5. mage_ai/data_preparation/templates/data_loaders/mssql.py +27 -0
  6. mage_ai/io/base.py +5 -0
  7. mage_ai/io/mssql.py +1 -0
  8. mage_ai/orchestration/db/models/base.py +15 -15
  9. mage_ai/orchestration/db/models/oauth.py +35 -4
  10. mage_ai/orchestration/pipeline_scheduler.py +12 -6
  11. mage_ai/server/constants.py +1 -1
  12. mage_ai/server/frontend_dist/404.html +2 -2
  13. mage_ai/server/frontend_dist/404.html.html +2 -2
  14. mage_ai/server/frontend_dist/_next/static/chunks/{2786-f71862671f66d948.js → 2786-756b3834d10b8711.js} +1 -1
  15. mage_ai/server/frontend_dist/_next/static/chunks/3391-e1578fe1bdb5a557.js +1 -0
  16. mage_ai/server/frontend_dist/_next/static/chunks/6299-9b785c07dacf22b3.js +1 -0
  17. mage_ai/server/frontend_dist/_next/static/chunks/8952-050e60a8b1eaa32a.js +1 -0
  18. mage_ai/server/frontend_dist/_next/static/chunks/pages/files-03841b6dd7d240f6.js +1 -0
  19. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/settings-6e2c0e3f818fd4de.js +1 -0
  20. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-6e59dc4e57dd2680.js +1 -0
  21. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-02295848c811e26a.js +1 -0
  22. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/{[...slug]-ce11db27e4af7869.js → [...slug]-91889109af36a793.js} +1 -1
  23. mage_ai/server/frontend_dist/_next/static/{CNjkRIWPaAu1yJUmIaX_q → h5mR3pjfn_EQy348CZ_ok}/_buildManifest.js +1 -1
  24. mage_ai/server/frontend_dist/files.html +2 -2
  25. mage_ai/server/frontend_dist/global-data-products/[...slug].html +2 -2
  26. mage_ai/server/frontend_dist/global-data-products.html +2 -2
  27. mage_ai/server/frontend_dist/index.html +2 -2
  28. mage_ai/server/frontend_dist/manage/settings.html +2 -2
  29. mage_ai/server/frontend_dist/manage/users/[user].html +2 -2
  30. mage_ai/server/frontend_dist/manage/users/new.html +2 -2
  31. mage_ai/server/frontend_dist/manage/users.html +2 -2
  32. mage_ai/server/frontend_dist/manage.html +2 -2
  33. mage_ai/server/frontend_dist/overview.html +2 -2
  34. mage_ai/server/frontend_dist/pipeline-runs.html +2 -2
  35. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +2 -2
  36. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +2 -2
  37. mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +2 -2
  38. mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +2 -2
  39. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +2 -2
  40. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +2 -2
  41. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +2 -2
  42. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +2 -2
  43. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +2 -2
  44. mage_ai/server/frontend_dist/pipelines/[pipeline]/settings.html +2 -2
  45. mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +2 -2
  46. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +2 -2
  47. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +2 -2
  48. mage_ai/server/frontend_dist/pipelines/[pipeline].html +2 -2
  49. mage_ai/server/frontend_dist/pipelines.html +2 -2
  50. mage_ai/server/frontend_dist/settings/account/profile.html +2 -2
  51. mage_ai/server/frontend_dist/settings/workspace/preferences.html +2 -2
  52. mage_ai/server/frontend_dist/settings/workspace/sync-data.html +2 -2
  53. mage_ai/server/frontend_dist/settings/workspace/users.html +2 -2
  54. mage_ai/server/frontend_dist/settings.html +2 -2
  55. mage_ai/server/frontend_dist/sign-in.html +2 -2
  56. mage_ai/server/frontend_dist/templates/[...slug].html +2 -2
  57. mage_ai/server/frontend_dist/templates.html +2 -2
  58. mage_ai/server/frontend_dist/terminal.html +2 -2
  59. mage_ai/server/frontend_dist/test.html +2 -2
  60. mage_ai/server/frontend_dist/triggers.html +2 -2
  61. mage_ai/server/frontend_dist/version-control.html +2 -2
  62. mage_ai/server/frontend_dist_base_path_template/404.html +2 -2
  63. mage_ai/server/frontend_dist_base_path_template/404.html.html +2 -2
  64. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{2786-f71862671f66d948.js → 2786-756b3834d10b8711.js} +1 -1
  65. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3391-e1578fe1bdb5a557.js +1 -0
  66. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6299-9b785c07dacf22b3.js +1 -0
  67. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8952-050e60a8b1eaa32a.js +1 -0
  68. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/files-03841b6dd7d240f6.js +1 -0
  69. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/settings-6e2c0e3f818fd4de.js +1 -0
  70. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-6e59dc4e57dd2680.js +1 -0
  71. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/logs-02295848c811e26a.js +1 -0
  72. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers/{[...slug]-ce11db27e4af7869.js → [...slug]-91889109af36a793.js} +1 -1
  73. mage_ai/server/frontend_dist_base_path_template/_next/static/{yJvL-3bfsNF3WCStZ10Dm → xykYLW_ARw5SevdiponLI}/_buildManifest.js +1 -1
  74. mage_ai/server/frontend_dist_base_path_template/files.html +2 -2
  75. mage_ai/server/frontend_dist_base_path_template/global-data-products/[...slug].html +2 -2
  76. mage_ai/server/frontend_dist_base_path_template/global-data-products.html +2 -2
  77. mage_ai/server/frontend_dist_base_path_template/index.html +2 -2
  78. mage_ai/server/frontend_dist_base_path_template/manage/settings.html +2 -2
  79. mage_ai/server/frontend_dist_base_path_template/manage/users/[user].html +2 -2
  80. mage_ai/server/frontend_dist_base_path_template/manage/users/new.html +2 -2
  81. mage_ai/server/frontend_dist_base_path_template/manage/users.html +2 -2
  82. mage_ai/server/frontend_dist_base_path_template/manage.html +2 -2
  83. mage_ai/server/frontend_dist_base_path_template/overview.html +2 -2
  84. mage_ai/server/frontend_dist_base_path_template/pipeline-runs.html +2 -2
  85. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills/[...slug].html +2 -2
  86. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills.html +2 -2
  87. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/edit.html +2 -2
  88. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/logs.html +2 -2
  89. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runs.html +2 -2
  90. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runtime.html +2 -2
  91. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors.html +2 -2
  92. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs/[run].html +2 -2
  93. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs.html +2 -2
  94. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/settings.html +2 -2
  95. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/syncs.html +2 -2
  96. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers/[...slug].html +2 -2
  97. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers.html +2 -2
  98. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline].html +2 -2
  99. mage_ai/server/frontend_dist_base_path_template/pipelines.html +2 -2
  100. mage_ai/server/frontend_dist_base_path_template/settings/account/profile.html +2 -2
  101. mage_ai/server/frontend_dist_base_path_template/settings/workspace/preferences.html +2 -2
  102. mage_ai/server/frontend_dist_base_path_template/settings/workspace/sync-data.html +2 -2
  103. mage_ai/server/frontend_dist_base_path_template/settings/workspace/users.html +2 -2
  104. mage_ai/server/frontend_dist_base_path_template/settings.html +2 -2
  105. mage_ai/server/frontend_dist_base_path_template/sign-in.html +2 -2
  106. mage_ai/server/frontend_dist_base_path_template/templates/[...slug].html +2 -2
  107. mage_ai/server/frontend_dist_base_path_template/templates.html +2 -2
  108. mage_ai/server/frontend_dist_base_path_template/terminal.html +2 -2
  109. mage_ai/server/frontend_dist_base_path_template/test.html +2 -2
  110. mage_ai/server/frontend_dist_base_path_template/triggers.html +2 -2
  111. mage_ai/server/frontend_dist_base_path_template/version-control.html +2 -2
  112. mage_ai/server/server.py +12 -1
  113. mage_ai/shared/retry.py +1 -1
  114. {mage_ai-0.9.14.dist-info → mage_ai-0.9.15.dist-info}/METADATA +1 -1
  115. {mage_ai-0.9.14.dist-info → mage_ai-0.9.15.dist-info}/RECORD +123 -122
  116. mage_ai/server/frontend_dist/_next/static/chunks/3391-6f0a0a5c254cd7f2.js +0 -1
  117. mage_ai/server/frontend_dist/_next/static/chunks/6299-fcb702d0f3d3291b.js +0 -1
  118. mage_ai/server/frontend_dist/_next/static/chunks/8952-9d6fa18fa9378989.js +0 -1
  119. mage_ai/server/frontend_dist/_next/static/chunks/pages/files-2dc2a0dfc0ff620d.js +0 -1
  120. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/settings-6577159a0af52a78.js +0 -1
  121. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-54cb4936accdd2d9.js +0 -1
  122. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-d331e98ad103b13e.js +0 -1
  123. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3391-6f0a0a5c254cd7f2.js +0 -1
  124. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6299-fcb702d0f3d3291b.js +0 -1
  125. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8952-9d6fa18fa9378989.js +0 -1
  126. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/files-2dc2a0dfc0ff620d.js +0 -1
  127. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/settings-6577159a0af52a78.js +0 -1
  128. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-54cb4936accdd2d9.js +0 -1
  129. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/logs-d331e98ad103b13e.js +0 -1
  130. mage_ai/tests/orchestration/db/test_models.py +0 -710
  131. /mage_ai/server/frontend_dist/_next/static/{CNjkRIWPaAu1yJUmIaX_q → h5mR3pjfn_EQy348CZ_ok}/_middlewareManifest.js +0 -0
  132. /mage_ai/server/frontend_dist/_next/static/{CNjkRIWPaAu1yJUmIaX_q → h5mR3pjfn_EQy348CZ_ok}/_ssgManifest.js +0 -0
  133. /mage_ai/server/frontend_dist_base_path_template/_next/static/{yJvL-3bfsNF3WCStZ10Dm → xykYLW_ARw5SevdiponLI}/_middlewareManifest.js +0 -0
  134. /mage_ai/server/frontend_dist_base_path_template/_next/static/{yJvL-3bfsNF3WCStZ10Dm → xykYLW_ARw5SevdiponLI}/_ssgManifest.js +0 -0
  135. {mage_ai-0.9.14.dist-info → mage_ai-0.9.15.dist-info}/LICENSE +0 -0
  136. {mage_ai-0.9.14.dist-info → mage_ai-0.9.15.dist-info}/WHEEL +0 -0
  137. {mage_ai-0.9.14.dist-info → mage_ai-0.9.15.dist-info}/entry_points.txt +0 -0
  138. {mage_ai-0.9.14.dist-info → mage_ai-0.9.15.dist-info}/top_level.txt +0 -0
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4794],{59739:function(e,n,t){"use strict";var r=t(56669);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,n,t,i,o,l){if(l!==r){var c=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 c.name="Invariant Violation",c}}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 o}});var r=t(38626),i=t(3055),o=34*t(49125).iI,l=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);"],i.Mz)},18025:function(e,n,t){"use strict";t.d(n,{J:function(){return u},U:function(){return c}});var r=t(38626),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 ")})),u=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),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,v=e.topPosition;return(0,p.jsxs)(a.J,{absolute:!0,topPosition:v,children:[(0,p.jsx)(i.ZP,{onChange:r,value:n}),(0,p.jsx)(c.Z,{mb:2}),(0,p.jsxs)(o.ZP,{alignItems:"center",children:[(0,p.jsx)(u.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*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)(c.Z,{px:1,children:(0,p.jsx)(u.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*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))}))})]})]})}},91780:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return an}});var r,i=t(77837),o=t(82394),l=t(38860),c=t.n(l),u=t(38626),a=t(4804),s=t(82684),d=t(86422),p=t(34744),f=t(60328),h=t(38341),v=t(16634),m=t(67971),g=t(86673),j=t(19711),b=t(2850),x=t(49125),_=u.default.div.withConfig({displayName:"indexstyle__FilterRowStyle",componentId:"sc-kvapsi-0"})(["padding-bottom:","px;padding-top:","px;"],x.iI/2,x.iI/2);!function(e){e.CRITICAL="CRITICAL",e.DEBUG="DEBUG",e.ERROR="ERROR",e.EXCEPTION="EXCEPTION",e.INFO="INFO",e.LOG="LOG",e.WARNING="WARNING"}(r||(r={}));var y,O=[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"}(y||(y={}));var Z=t(73942),P=t(73899);var S,k=(0,u.css)(["",""],(function(e){return"\n background-color: ".concat(function(e){var n=e.critical,t=e.debug,r=e.error,i=e.exception,o=e.info,l=e.log,c=e.warning;return n?P.Zl:t?P.EG:r?P.hl:i?P.hM:o?P.gN:l?P.Wd:c?P.$R:"transparent"}(e),";\n ")})),I=u.default.div.withConfig({displayName:"indexstyle__LogLevelIndicatorStyle",componentId:"sc-1e2zh7m-0"})([""," border-radius:","px;height:12px;width:5px;"],k,Z.n_),w=t(90211),C=t(44162),E=t(33766),D=t(28598);function L(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 T(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?L(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):L(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}!function(e){e.BLOCK_RUN_ID="block_run_id[]",e.BLOCK_TYPE="block_type[]",e.BLOCK_UUID="block_uuid[]",e.LEVEL="level[]",e.PIPELINE_RUN_ID="pipeline_run_id[]",e.PIPELINE_SCHEDULE_ID="pipeline_schedule_id[]"}(S||(S={}));var A=function(e){var n=e.blocks,t=e.query,r=(0,s.useContext)(u.ThemeContext),i=(0,s.useMemo)((function(){return t[S.LEVEL]}),[t]),l=(0,s.useMemo)((function(){return t[S.BLOCK_TYPE]}),[t]),c=(0,s.useMemo)((function(){return t[S.BLOCK_UUID]}),[t]),a=(0,s.useMemo)((function(){return t[S.PIPELINE_SCHEDULE_ID]}),[t]),p=(0,s.useMemo)((function(){return t[S.PIPELINE_RUN_ID]}),[t]),y=(0,s.useMemo)((function(){return t[S.BLOCK_RUN_ID]}),[t]);return(0,D.jsx)(b.M,{children:(0,D.jsxs)(g.Z,{p:x.cd,children:[(0,D.jsxs)(g.Z,{mb:3,children:[(0,D.jsx)(g.Z,{mb:1,children:(0,D.jsx)(j.ZP,{bold:!0,default:!0,large:!0,children:"Log level"})}),O.map((function(e){return(0,D.jsx)(f.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return(0,E.g_)(t,{level:e},{isList:!0})},children:(0,D.jsx)(_,{children:(0,D.jsxs)(m.ZP,{alignItems:"center",children:[(0,D.jsx)(h.Z,{checked:Array.isArray(i)&&(null===i||void 0===i?void 0:i.includes(String(e)))}),(0,D.jsx)(g.Z,{mr:1}),(0,D.jsx)(I,T({},(0,o.Z)({},e.toLowerCase(),!0))),(0,D.jsx)(g.Z,{mr:1}),(0,D.jsx)(j.ZP,{disableWordBreak:!0,children:(0,w.kC)(e.toLowerCase())})]})})},e)}))]}),(0,D.jsxs)(g.Z,{mb:3,children:[(0,D.jsx)(g.Z,{mb:1,children:(0,D.jsx)(j.ZP,{bold:!0,default:!0,large:!0,children:"Block type"})}),[d.tf.DATA_LOADER,d.tf.TRANSFORMER,d.tf.DATA_EXPORTER].map((function(e){return(0,D.jsx)(f.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return(0,E.g_)(t,{block_type:e},{isList:!0})},children:(0,D.jsx)(_,{children:(0,D.jsxs)(m.ZP,{alignItems:"center",children:[(0,D.jsx)(h.Z,{checked:Array.isArray(l)&&(null===l||void 0===l?void 0:l.includes(String(e)))}),(0,D.jsx)(g.Z,{mr:1}),(0,D.jsx)(v.Z,{color:(0,C.qn)(e,{theme:r}).accent,size:1.5*x.iI,square:!0}),(0,D.jsx)(g.Z,{mr:1}),(0,D.jsx)(j.ZP,{disableWordBreak:!0,muted:!0,monospace:!0,children:e})]})})},e)}))]}),(0,D.jsxs)(g.Z,{mb:3,children:[(0,D.jsx)(g.Z,{mb:1,children:(0,D.jsx)(j.ZP,{bold:!0,default:!0,large:!0,children:"Block"})}),n.filter((function(e){var n=e.type;return d.tf.SCRATCHPAD!==n})).map((function(e){return(0,D.jsx)(f.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return(0,E.g_)(t,{block_uuid:e.uuid},{isList:!0,resetLimitParams:!0})},children:(0,D.jsx)(_,{children:(0,D.jsxs)(m.ZP,{alignItems:"center",children:[(0,D.jsx)(h.Z,{checked:Array.isArray(c)&&(null===c||void 0===c?void 0:c.includes(String(e.uuid)))}),(0,D.jsx)(g.Z,{mr:1}),(0,D.jsx)(v.Z,{color:(0,C.qn)(e.type,{blockColor:e.color,theme:r}).accent,size:1.5*x.iI,square:!0}),(0,D.jsx)(g.Z,{mr:1}),(0,D.jsx)(j.ZP,{disableWordBreak:!0,monospace:!0,muted:!0,children:e.uuid})]})})},e.uuid)}))]}),(null===a||void 0===a?void 0:a.length)&&(0,D.jsxs)(g.Z,{mb:3,children:[(0,D.jsx)(g.Z,{mb:1,children:(0,D.jsx)(j.ZP,{bold:!0,default:!0,large:!0,children:"Trigger"})}),a.map((function(e){return(0,D.jsx)(f.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return(0,E.g_)(t,{pipeline_schedule_id:e},{isList:!0})},children:(0,D.jsx)(_,{children:(0,D.jsxs)(m.ZP,{alignItems:"center",children:[(0,D.jsx)(h.Z,{checked:Array.isArray(a)&&(null===a||void 0===a?void 0:a.includes(e))}),(0,D.jsx)(g.Z,{mr:1}),(0,D.jsx)(j.ZP,{disableWordBreak:!0,monospace:!0,children:e})]})})},"pipeline-schedule-".concat(e))}))]}),(null===p||void 0===p?void 0:p.length)&&(0,D.jsxs)(g.Z,{mb:3,children:[(0,D.jsx)(g.Z,{mb:1,children:(0,D.jsx)(j.ZP,{bold:!0,default:!0,large:!0,children:"Pipeline run"})}),p.map((function(e){return(0,D.jsx)(f.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return(0,E.g_)(t,{pipeline_run_id:e},{isList:!0})},children:(0,D.jsx)(_,{children:(0,D.jsxs)(m.ZP,{alignItems:"center",children:[(0,D.jsx)(h.Z,{checked:Array.isArray(p)&&(null===p||void 0===p?void 0:p.includes(e))}),(0,D.jsx)(g.Z,{mr:1}),(0,D.jsx)(j.ZP,{disableWordBreak:!0,monospace:!0,children:e})]})})},"pipeline-run-".concat(e))}))]}),(null===y||void 0===y?void 0:y.length)&&(0,D.jsxs)(g.Z,{mb:3,children:[(0,D.jsx)(g.Z,{mb:1,children:(0,D.jsx)(j.ZP,{bold:!0,default:!0,large:!0,children:"Block run"})}),y.map((function(e){return(0,D.jsx)(f.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return(0,E.g_)(t,{block_run_id:e},{isList:!0})},children:(0,D.jsx)(_,{children:(0,D.jsxs)(m.ZP,{alignItems:"center",children:[(0,D.jsx)(h.Z,{checked:Array.isArray(y)&&(null===y||void 0===y?void 0:y.includes(e))}),(0,D.jsx)(g.Z,{mr:1}),(0,D.jsx)(j.ZP,{disableWordBreak:!0,monospace:!0,children:e})]})})},"block-run-".concat(e))}))]})]})})},R=t(93461),N=t(11135),M=t(75582),B=t(32316),Y=t(10919),U=t(87815),W=u.default.div.withConfig({displayName:"indexstyle__BarStyle",componentId:"sc-1r43sbu-0"})([""," height:","px;width:100%;"],k,.5*x.iI),H=u.default.div.withConfig({displayName:"indexstyle__BadgeStyle",componentId:"sc-1r43sbu-1"})([""," border-radius:","px;display:inline-block;padding:","px ","px;"],k,Z.BG,.25*x.iI,.5*x.iI),J=t(22341),K=t(92083),G=t.n(K);function q(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function z(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?q(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):q(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var F=/^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}$/,V=/([0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}) (.+)/;function X(e){var n=e.content.trim().split(V),t=[],r=[];return n.forEach((function(e){var n=e.trim();F.test(e)?(r.length>=1&&t.push(r.join(" ").trim()),r=[e]):r.filter((function(e){return e})).length<=1&&n&&r.push(n)})),t.push(r.join(" ").trim()),t.map((function(n){return function(e){var n=e.content.trim().match(V),t=null===n||void 0===n?void 0:n[1],r=null===n||void 0===n?void 0:n[2],i={};return r&&(0,w.Pb)(r)&&(i=JSON.parse(r)),z(z({},e),{},{createdAt:t,data:i})}(z(z({},e),{},{content:n}))}))}function Q(e){return e&&G().unix(e).utc().format("YYYY-MM-DD HH:mm:ss.SSS")}var $=t(24224);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 ne(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 te=["error","error_stack","error_stacktrace"],re={uuid:"Details"},ie={uuid:"Errors"};var oe=function(e){var n=e.log,t=e.onClose,r=e.selectedTab,i=e.setSelectedTab,l=(0,s.useState)(!1),c=l[0],u=l[1],a=n.data,d=n.name,h=n.path,v=a||{},b=v.error,_=v.error_stack,y=v.error_stacktrace,O=v.level,Z=v.timestamp,P=(0,o.Z)({},O.toLowerCase(),!0),S=(0,s.useMemo)((function(){var e=[["file name",d],["file path",h]];return Object.entries(a).forEach((function(n){var t=(0,M.Z)(n,2),r=t[0],i=t[1];te.includes(r)||e.push([r,i])})),y&&e.push(["error",y]),(0,$.YC)(e,(function(e){var n=(0,M.Z)(e,2),t=n[0];n[1];return t}))}),[a,y,d,h]),k=(0,s.useMemo)((function(){var e=[re];return b&&e.push(ie),(0,D.jsx)(B.Z,{onClickTab:i,selectedTabUUID:null===r||void 0===r?void 0:r.uuid,tabs:e})}),[b,r,i]);return(0,D.jsxs)("div",{children:[(0,D.jsx)(W,ne({},P)),(0,D.jsx)(g.Z,{p:x.cd,children:(0,D.jsxs)(m.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,D.jsxs)(R.Z,{alignItems:"center",children:[(0,D.jsx)(H,ne(ne({},P),{},{children:(0,D.jsx)(j.ZP,{bold:!0,inverted:!0,monospace:!0,small:!0,children:O})})),(0,D.jsx)(g.Z,{mr:x.cd}),(0,D.jsx)(j.ZP,{monospace:!0,children:Q(Z)})]}),(0,D.jsx)(f.Z,{iconOnly:!0,noBackground:!0,onClick:function(){return t()},children:(0,D.jsx)(J.x8,{size:1.5*x.iI})})]})}),(0,D.jsx)(p.Z,{medium:!0}),(0,D.jsx)(g.Z,{py:x.cd,children:k}),re.uuid===(null===r||void 0===r?void 0:r.uuid)&&(0,D.jsx)(U.Z,{columnFlex:[null,1],columnMaxWidth:function(e){return 1===e?"100px":null},rows:null===S||void 0===S?void 0:S.map((function(e,n){var t=(0,M.Z)(e,2),r=t[0],i=t[1],o="message"===r,l="tags"===r,a=i,s=i;return l?s=a=(0,w.Pb)(i)?JSON.parse(JSON.stringify(i,null,2)):JSON.stringify(i,null,2):o&&c&&(0,w.Pb)(i)&&(s=JSON.stringify(JSON.parse(i),null,2),a=(0,D.jsx)("pre",{children:s})),"object"===typeof a&&(a=JSON.stringify(a,null,2),a=(0,D.jsx)("pre",{children:a})),"object"===typeof s&&(s=JSON.stringify(s)),[(0,D.jsx)(j.ZP,{monospace:!0,muted:!0,children:r},"".concat(r,"_").concat(n,"_key")),(0,D.jsxs)(D.Fragment,{children:[(0,D.jsxs)(j.ZP,{monospace:!0,textOverflow:!0,title:s,whiteSpaceNormal:o&&c||l,wordBreak:o&&c||l,children:[!l&&a,l&&(0,D.jsx)("pre",{children:a})]},"".concat(r,"_").concat(n,"_val")),o&&(0,D.jsx)(Y.Z,{muted:!0,onClick:function(){return u((function(e){return!e}))},children:c?"Click to hide log":"Click to show full log message"})]})]})),uuid:"LogDetail"}),ie.uuid===(null===r||void 0===r?void 0:r.uuid)&&(0,D.jsxs)(g.Z,{mb:5,px:x.cd,children:[(0,D.jsx)(g.Z,{mb:1,children:(0,D.jsx)(j.ZP,{bold:!0,children:"Error"})}),null===b||void 0===b?void 0:b.map((function(e){return e.split("\n").map((function(e){return e.split("\\n").map((function(e){return(0,D.jsx)(j.ZP,{default:!0,monospace:!0,preWrap:!0,small:!0,children:e},e)}))}))})),_&&(0,D.jsxs)(g.Z,{mt:3,children:[(0,D.jsx)(g.Z,{mb:1,children:(0,D.jsx)(j.ZP,{bold:!0,children:"Stack trace"})}),null===_||void 0===_?void 0:_.map((function(e){return null===e||void 0===e?void 0:e.map((function(e){return(0,D.jsx)(j.ZP,{default:!0,monospace:!0,preWrap:!0,small:!0,children:e},e)}))}))]})]})]})},le=t(21831),ce=t(89565),ue=t.n(ce),ae=t(12691),se=t.n(ae),de=t(72487),pe=t(98781),fe=t(66166),he=t(3055),ve=t(23831),me=t(37391),ge=u.default.div.withConfig({displayName:"indexstyle__TableContainer",componentId:"sc-16j4vp6-0"})([".table_row > div{margin:","px ","px;}div{","}"],.5*x.iI,x.iI,me.w5),je=u.default.div.withConfig({displayName:"indexstyle__TableHeadStyle",componentId:"sc-16j4vp6-1"})(["display:flex;align-items:center;overflow:hidden;",""],(function(e){return"\n border-bottom: 1px solid ".concat((e.theme||ve.Z).borders.medium2,";\n ")})),be=u.default.div.withConfig({displayName:"indexstyle__TableRowStyle",componentId:"sc-16j4vp6-2"})(["display:flex;align-items:center;"," "," ",""],(function(e){return"\n border-bottom: 1px solid ".concat((e.theme||ve.Z).borders.light,";\n\n &:hover {\n cursor: pointer;\n }\n ")}),(function(e){return!e.selected&&"\n &:hover {\n background: ".concat((e.theme.interactive||ve.Z.interactive).rowHoverBackground,";\n cursor: pointer;\n }\n ")}),(function(e){return e.selected&&"\n background-color: ".concat((e.theme.interactive||ve.Z.interactive).activeBorder,";\n ")})),xe=t(62976),_e=t(91427),ye=t(59e3),Oe=function(e){var n=(0,ye.iV)(),t=((null===n||void 0===n?void 0:n[S.PIPELINE_SCHEDULE_ID])||[]).join(",");return"".concat(e,"/logs/triggers/").concat(t)},Ze=t(24141);function Pe(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?Pe(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Pe(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ke="log_uuid";var Ie,we,Ce,Ee=function(e){var n=e.autoScrollLogs,t=e.blocksByUUID,r=e.tableInnerRef,i=e.logs,l=e.onRowClick,c=e.pipeline,u=e.query,a=e.saveScrollPosition,d=e.setSelectedLog,p=e.themeContext,f=(0,Ze.i)().height,h=(0,s.useRef)(null),b=(0,s.useMemo)((function(){return pe.qL.INTEGRATION===(null===c||void 0===c?void 0:c.type)}),[c.type]),_=(0,fe.Z)(i);(0,s.useEffect)((function(){var e;n&&(_||[]).length!==(i||[]).length&&(null===r||void 0===r||null===(e=r.current)||void 0===e||e.scrollIntoView(!1))}),[n,i,_,r]);var y=(0,s.useMemo)((function(){return Oe(null===c||void 0===c?void 0:c.uuid)}),[null===c||void 0===c?void 0:c.uuid]);(0,s.useEffect)((function(){var e;a&&(null===h||void 0===h||null===(e=h.current)||void 0===e||e.scrollTo((0,_e.U2)(y,0)))}),[a,y]);var O=Object.keys(t||{});if(b){var Z,P,S=((null===c||void 0===c||null===(Z=c.data_integration)||void 0===Z||null===(P=Z.catalog)||void 0===P?void 0:P.streams)||[]).map((function(e){return e.tap_stream_id})),k=new Set;O.forEach((function(e){S.forEach((function(n){return k.add("".concat(e,":").concat(n,":0"))}))})),O=Array.from(k)}var w=Math.max.apply(Math,(0,le.Z)(O.map((function(e){return e.length})))),L=Math.min(w*xe.r+12+8,50*x.iI),T=[{uuid:"_",width:28},{uuid:"Date",width:214},{uuid:"Block",width:L+16},{uuid:"Message"},{uuid:"_"}],A=(0,s.useCallback)((function(e){var n,t,r,i=e.data,c=e.index,a=e.style,s=i.blocksByUUID,p=i.logs,f=i.themeContext,h=p[c],_=h.content,y=h.data,O=h.name,Z=y||{},P=Z.block_uuid,S=Z.level,k=Z.message,w=Z.pipeline_uuid,T=Z.timestamp,A=Z.uuid,N=P||O.split(".log")[0],M=N.split(":");b&&(N=M[0],t=M[1],r=M[2]);var B=s[N];if(B||(B=s[M[0]]),B){var U=(0,C.qn)(B.type,{blockColor:B.color,theme:f}).accent;n=(0,D.jsx)(m.ZP,{alignItems:"center",children:(0,D.jsx)(se(),{as:"/pipelines/".concat(w,"/edit?block_uuid=").concat(N),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,D.jsxs)(Y.Z,{block:!0,fullWidth:!0,sameColorAsText:!0,verticalAlignContent:!0,children:[(0,D.jsx)(v.Z,{color:U,size:1.5*x.iI,square:!0}),(0,D.jsx)(g.Z,{mr:1}),(0,D.jsxs)(j.ZP,{disableWordBreak:!0,monospace:!0,noWrapping:!0,title:P,width:L-16,children:[N,t&&":",t&&(0,D.jsx)(j.ZP,{default:!0,inline:!0,monospace:!0,children:t}),r>=0&&":",r>=0&&(0,D.jsx)(j.ZP,{default:!0,inline:!0,monospace:!0,children:r})]})]})})})}return(0,D.jsxs)(be,{className:"table_row",onClick:function(){var e,n,t=p[c],r=null===(e=t.data)||void 0===e?void 0:e.uuid;u.log_uuid===r&&(r=null),null!==(n=t.data)&&void 0!==n&&n.error?null===l||void 0===l||l(ie):null===l||void 0===l||l(re),(0,E.u7)((0,o.Z)({},ke,r)),d(r?t:null)},selected:(null===u||void 0===u?void 0:u.log_uuid)&&(null===u||void 0===u?void 0:u.log_uuid)===A,style:Se({},a),children:[(0,D.jsx)(R.Z,{alignItems:"center",justifyContent:"center",children:(0,D.jsx)(I,Se({},(0,o.Z)({},null===S||void 0===S?void 0:S.toLowerCase(),!0)))},"log_type"),(0,D.jsx)(R.Z,{children:(0,D.jsx)(j.ZP,{default:!0,monospace:!0,noWrapping:!0,children:Q(T)},"log_timestamp")}),(0,D.jsx)(R.Z,{style:{minWidth:L,width:L},children:n}),(0,D.jsx)(R.Z,{style:{overflow:"auto"},children:(0,D.jsx)(j.ZP,{monospace:!0,textOverflow:!0,title:k||_,children:(0,D.jsx)(ue(),{children:k||_})},"log_message")}),(0,D.jsx)(R.Z,{flex:"1",justifyContent:"flex-end",children:(0,D.jsx)(J._Q,{default:!0,size:2*x.iI})},"chevron_right_icon")]})}),[L,b,l,u,d]);return(0,D.jsxs)(ge,{children:[(0,D.jsx)(je,{children:T.map((function(e,n){return(0,D.jsx)(R.Z,{alignItems:"center",style:{height:4*x.iI,minWidth:e.width||null,width:e.width||null},children:"_"!==e.uuid&&(0,D.jsx)(j.ZP,{bold:!0,leftAligned:!0,monospace:!0,muted:!0,children:e.uuid})},"".concat(e,"_").concat(n))}))}),(0,D.jsx)(de.t7,{height:f-he.Mz-86-34-58,innerRef:r,itemCount:i.length,itemData:{blocksByUUID:t,logs:i,pipeline:c,themeContext:p},itemSize:3.75*x.iI,onScroll:function(e){var n=e.scrollOffset,t=e.scrollDirection;!a||"forward"===t&&0===n||(0,_e.t8)(y,n)},ref:h,width:"100%",children:A})]})},De=t(34376),Le=t(2713),Te=t(47999),Ae=t(55378),Re=t(82944),Ne="_limit",Me="_offset",Be=20,Ye=[y.LAST_HOUR,y.LAST_DAY,y.LAST_WEEK,y.LAST_30_DAYS],Ue=(Ie={},(0,o.Z)(Ie,y.LAST_HOUR,3600),(0,o.Z)(Ie,y.LAST_DAY,86400),(0,o.Z)(Ie,y.LAST_WEEK,604800),(0,o.Z)(Ie,y.LAST_30_DAYS,2592e3),Ie),We=t(84779),He=t(42305),Je=t(7715);function Ke(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Ge(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Ke(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ke(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}!function(e){e.START="start_timestamp",e.END="end_timestamp"}(Ce||(Ce={}));var qe=(we={},(0,o.Z)(we,Ne,Be),(0,o.Z)(we,Me,0),we),ze={blackBorder:!0,inline:!0,paddingBottom:.75*x.iI,paddingTop:.75*x.iI};var Fe=function(e){var n=e.allPastLogsLoaded,t=e.loadNewerLogInterval,r=e.loadPastLogInterval,i=e.saveScrollPosition,l=e.selectedRange,c=e.setSelectedRange,u=(0,s.useState)(null),a=u[0],d=u[1],p=(0,s.useState)(null),h=p[0],v=p[1],b=(0,s.useState)({hour:"00",minute:"00"}),_=b[0],O=b[1],Z=(0,s.useState)(new Date),P=Z[0],S=Z[1],k=(0,s.useState)({hour:(0,He.lJ)(String((new Date).getUTCHours())),minute:(0,He.lJ)(String((new Date).getUTCMinutes()))}),I=k[0],w=k[1],C=(0,De.useRouter)().query.pipeline,L=(0,ye.iV)(),T=(0,fe.Z)(L);(0,s.useEffect)((function(){if(!(0,Je.Xy)(L,T)){var e=L.start_timestamp,n=L.end_timestamp;if(e){var t=(0,He.Pc)(e),r=t.date,i=t.hour,o=t.minute;v(r),O({hour:(0,He.lJ)(i),minute:(0,He.lJ)(o)});var l=Math.ceil(Date.now()/1e3)-e;Math.abs(l-Ue[y.LAST_DAY])<=60&&c(y.LAST_DAY)}if(n){var u=(0,He.Pc)(n),a=u.date,s=u.hour,d=u.minute;S(a),w({hour:(0,He.lJ)(s),minute:(0,He.lJ)(d)})}}}),[L,T]);var A=(0,s.useCallback)((function(){if(i){var e=Oe(C);(0,_e.t8)(e,0)}}),[C,i]);return(0,D.jsx)(g.Z,{py:1,children:(0,D.jsxs)(m.ZP,{alignItems:"center",children:[(0,D.jsx)(N.ZP,Ge(Ge({},ze),{},{disabled:n,onClick:function(){A(),r()},uuid:"logs/load_older_logs",children:n?"All past logs within range loaded":"Load older logs"})),(0,D.jsx)(g.Z,{mr:1}),(0,D.jsx)(N.ZP,Ge(Ge({},ze),{},{disabled:(null===L||void 0===L?void 0:L._offset)<=0,onClick:function(){A(),t()},uuid:"logs/load_newer_logs",children:"Load newer logs"})),(0,D.jsx)(g.Z,{mr:2}),(0,D.jsx)(Ae.Z,{compact:!0,defaultColor:!0,onChange:function(e){e.preventDefault();var n=e.target.value;if(A(),c(n),Ye.includes(n)){var t,r=(0,We.JI)(Ue[n]);(0,E.u7)(Ge((t={},(0,o.Z)(t,Ce.START,r),(0,o.Z)(t,Ce.END,null),t),qe))}},paddingRight:4*x.iI,placeholder:"Select time range",value:l,children:Object.values(y).map((function(e){return(0,D.jsx)("option",{value:e,children:e},e)}))}),(0,D.jsx)(g.Z,{mr:1}),l===y.CUSTOM_RANGE&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(Re.Z,{compact:!0,defaultColor:!0,onClick:function(){return d(0)},paddingRight:0,placeholder:"Start",value:h?(0,He.AY)(h,null===_||void 0===_?void 0:_.hour,null===_||void 0===_?void 0:_.minute):""}),(0,D.jsx)(Te.Z,{onClickOutside:function(){return d(null)},open:0===a,style:{position:"relative"},children:(0,D.jsx)(Le.Z,{selectedDate:h,selectedTime:_,setSelectedDate:v,setSelectedTime:O})}),(0,D.jsx)(g.Z,{px:1,children:(0,D.jsx)(j.ZP,{children:"to"})}),(0,D.jsx)(Re.Z,{compact:!0,defaultColor:!0,onClick:function(){return d(1)},paddingRight:0,placeholder:"End",value:P?(0,He.AY)(P,null===I||void 0===I?void 0:I.hour,null===I||void 0===I?void 0:I.minute):""}),(0,D.jsx)(Te.Z,{onClickOutside:function(){return d(null)},open:1===a,style:{position:"relative"},children:(0,D.jsx)(Le.Z,{selectedDate:P,selectedTime:I,setSelectedDate:S,setSelectedTime:w})}),(0,D.jsx)(g.Z,{mr:1}),(0,D.jsx)(f.Z,{borderRadius:x.iI/2,onClick:function(){var e;A();var n=(0,He.BP)(h,_.hour,_.minute),t=(0,He.BP)(P,I.hour,I.minute);(0,E.u7)(Ge((e={},(0,o.Z)(e,Ce.START,(0,He.A5)(n)),(0,o.Z)(e,Ce.END,(0,He.A5)(t)),e),qe))},padding:"".concat(x.iI/2,"px"),primary:!0,children:"Search"})]})]})})},Ve=t(60547),Xe=t(41788),Qe=t(54283),$e=t(70902),en=t(82531),nn=t(11366),tn=t(59920);function rn(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 on(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?rn(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):rn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ln="pipeline_run_id[]",cn="block_run_id[]";function un(e){var n=e.pipeline,t=(0,s.useContext)(u.ThemeContext),r=(0,s.useRef)(null),i=n.uuid,l=(0,s.useState)(null),c=l[0],f=l[1],h=(0,s.useState)(null),v=h[0],b=h[1],_=(0,s.useState)(null),O=_[0],Z=_[1],P=(0,s.useState)(null),k=P[0],I=P[1],C=(0,s.useState)(re),L=C[0],T=C[1],M=(0,s.useState)((0,_e.U2)(nn.Tz,!0)),B=M[0],Y=M[1],U=en.ZP.pipelines.detail(i,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,W=(0,s.useMemo)((function(){return on(on({},null===U||void 0===U?void 0:U.pipeline),{},{uuid:i})}),[U,i]),H=(null===W||void 0===W?void 0:W.type)===pe.qL.INTEGRATION,J=(0,s.useMemo)((function(){return W.blocks||[]}),[W]),K=(0,s.useMemo)((function(){var e=(0,$.HK)(J,(function(e){return e.uuid}));if(H){var n,t=(0,$.sE)(J,(function(e){var n=e.type;return d.tf.DATA_LOADER===n})),r=t?(0,a.Qc)(t.content):{},i=((null===r||void 0===r||null===(n=r.catalog)||void 0===n?void 0:n.streams)||[]).reduce((function(e,n){var t=n.tap_stream_id,r={};return J.forEach((function(e){var n=e.uuid,i=e.type,o="".concat(n,":").concat(t);r[o]={type:i}})),on(on({},e),r)}),{});e=on(on({},i),e)}return e}),[J,H]),G=(0,ye.iV)(),q=(0,s.useMemo)((function(){return(null===G||void 0===G?void 0:G.hasOwnProperty(S.PIPELINE_SCHEDULE_ID))&&!(null!==G&&void 0!==G&&G.hasOwnProperty(S.LEVEL))&&!(null!==G&&void 0!==G&&G.hasOwnProperty(S.BLOCK_TYPE))&&!(null!==G&&void 0!==G&&G.hasOwnProperty(S.BLOCK_UUID))}),[G]),z=!(null!==G&&void 0!==G&&G.start_timestamp)&&!(null!==G&&void 0!==G&&G.hasOwnProperty(ln)||null!==G&&void 0!==G&&G.hasOwnProperty(cn)),F=(0,We.JI)(Ue[y.LAST_DAY]),V=en.ZP.logs.pipelines.list(c?i:null,(0,Je.gR)(z?on(on({},c),{},{start_timestamp:F}):c,[ke]),{refreshInterval:5e3}),Q=V.data,ee=V.mutate,ne=!Q,te=(0,s.useMemo)((function(){var e;if(null!==Q&&void 0!==Q&&null!==(e=Q.logs)&&void 0!==e&&e[0]){var n,t=(null===(n=Q.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}}),[Q]),ie=te.blockRunLogs,le=te.pipelineRunLogs,ce=te.totalBlockRunLogCount,ue=te.totalPipelineRunLogCount,ae=+(null===G||void 0===G?void 0:G._limit)>=ce&&+(null===G||void 0===G?void 0:G._limit)>=ue,se=(0,s.useMemo)((function(){return(0,$.YC)(ie.concat(le).reduce((function(e,n){return e.concat(X(n))}),[]),(function(e){var n=e.data;return(null===n||void 0===n?void 0:n.timestamp)||0}))}),[ie,le]),de=(0,s.useMemo)((function(){return se.filter((function(e){var n=e.data,t=[];if(!c)return!0;if(t.push(!(0,Je.Qr)(n)),c["level[]"]&&t.push(c["level[]"].includes(null===n||void 0===n?void 0:n.level)),c["block_type[]"]){var r,i,o=null===n||void 0===n?void 0:n.block_uuid;if(H)o=null===n||void 0===n||null===(i=n.block_uuid)||void 0===i?void 0:i.split(":").slice(0,2).join(":");t.push(c["block_type[]"].includes(null===(r=K[o])||void 0===r?void 0:r.type))}if(c["pipeline_run_id[]"]){var l=null===n||void 0===n?void 0:n.pipeline_run_id;t.push(c["pipeline_run_id[]"].includes(String(l)))}if(c["block_run_id[]"]){var u=null===n||void 0===n?void 0:n.block_run_id;t.push(c["block_run_id[]"].includes(String(u)))}return t.every((function(e){return e}))}))}),[K,H,se,c]),he=de.length,me=(0,fe.Z)(G);(0,s.useEffect)((function(){var e;z&&(0,E.u7)((e={},(0,o.Z)(e,Ne,Be),(0,o.Z)(e,Me,0),(0,o.Z)(e,"start_timestamp",F),e))}),[z]),(0,s.useEffect)((function(){(0,Je.Xy)(G,me)||f(G)}),[G,me]);var ge=(0,fe.Z)(v);(0,s.useEffect)((function(){var e=G.log_uuid;!e||v||ge||b(se.find((function(n){var t=n.data;return(null===t||void 0===t?void 0:t.uuid)===e})))}),[se,G,v,ge]);var je=G._limit,be=G._offset,xe=+(je||0),Oe=+(be||0),Ze=Math.max(ce,ue),Pe=(0,s.useCallback)((function(){var e,n=xe,t=Oe;(ce>xe||ue>xe)&&(n=Math.min(Ze,xe+Be),t=Math.min(Oe+Be,Ze-Ze%Be),(0,E.u7)(on(on({},G),{},(e={},(0,o.Z)(e,Ne,n),(0,o.Z)(e,Me,t),e))))}),[Ze,xe,Oe,G,ce,ue]),Se=(0,s.useCallback)((function(){var e,n=xe,t=Oe;xe>=Be&&(n=Math.max(Be,xe-Be),xe>=Ze&&Ze%Be!==0&&(n=Ze-Ze%Be),t=Math.max(0,Oe-Be),(0,E.u7)(on(on({},G),{},(e={},(0,o.Z)(e,Ne,n),(0,o.Z)(e,Me,t),e))))}),[Ze,xe,Oe,G]),Ie=(0,s.useCallback)((function(){var e=!B;Y(e),(0,_e.t8)(nn.Tz,e)}),[B]),we=(0,s.useMemo)((function(){return(0,D.jsx)(Ee,{autoScrollLogs:B,blocksByUUID:K,logs:de,onRowClick:T,pipeline:W,query:c,saveScrollPosition:q,setSelectedLog:b,tableInnerRef:r,themeContext:t})}),[B,K,de,W,c,q,t]);return(0,D.jsxs)(Ve.Z,{after:v&&(0,D.jsx)(oe,{log:v,onClose:function(){(0,E.u7)((0,o.Z)({},ke,null)),b(null)},selectedTab:L,setSelectedTab:T}),afterHidden:!v,afterWidth:80*x.iI,before:(0,D.jsx)(A,{blocks:J,query:c}),beforeWidth:20*x.iI,breadcrumbs:[{label:function(){return"Logs"}}],errors:k,pageName:tn.M.PIPELINE_LOGS,pipeline:W,setErrors:I,subheader:null,title:function(e){var n=e.name;return"".concat(n," logs")},uuid:"pipeline/logs",children:[(0,D.jsx)(g.Z,{px:x.cd,py:1,children:(0,D.jsxs)(j.ZP,{children:[!ne&&(0,D.jsxs)(D.Fragment,{children:[(0,w.x6)(he)," logs found",(0,D.jsx)(Fe,{allPastLogsLoaded:ae,loadNewerLogInterval:Se,loadPastLogInterval:Pe,saveScrollPosition:q,selectedRange:O,setSelectedRange:Z})]}),ne&&"Searching..."]})}),(0,D.jsx)(p.Z,{light:!0}),ne&&(0,D.jsx)(g.Z,{p:x.cd,children:(0,D.jsx)(Qe.Z,{})}),!ne&&de.length>=1&&we,(0,D.jsx)(g.Z,{p:"".concat(1.5*x.iI,"px"),children:(0,D.jsxs)(m.ZP,{alignItems:"center",children:[(0,D.jsx)(N.ZP,on(on({},ze),{},{onClick:function(){"0"===(null===G||void 0===G?void 0:G._offset)&&(null===G||void 0===G?void 0:G._limit)===String(Be)?ee(null):(0,E.u7)({_limit:Be,_offset:0})},uuid:"logs/toolbar/load_newest",children:"Load latest logs"})),(0,D.jsx)(g.Z,{mr:1}),(0,D.jsx)(N.ZP,on(on({},ze),{},{backgroundColor:ve.Z.background.page,onClick:function(){var e;null===r||void 0===r||null===(e=r.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"})},uuid:"logs/toolbar/scroll_to_bottomt",children:"Scroll to bottom"})),(0,D.jsx)(g.Z,{mr:1}),(0,D.jsxs)(R.Z,{children:[(0,D.jsx)(j.ZP,{noWrapping:!0,children:"Auto-scroll to new logs"}),(0,D.jsx)(g.Z,{mr:1}),(0,D.jsx)($e.Z,{checked:B,compact:!0,onCheck:Ie})]})]})})]})}un.getInitialProps=function(){var e=(0,i.Z)(c().mark((function e(n){var t;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.query.pipeline,e.abrupt("return",{pipeline:{uuid:t}});case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();var an=(0,Xe.Z)(un)},11366:function(e,n,t){"use strict";t.d(n,{Ch:function(){return l},H8:function(){return r},Tz:function(){return c},g6:function(){return i},vF:function(){return o}});var r="pipeline_edit_before_tab_selected",i="pipeline_edit_hidden_blocks",o="pipeline_edit_block_output_logs",l="setup_ai_later",c="auto_scroll_logs"},42305:function(e,n,t){"use strict";t.d(n,{A5:function(){return b},AY:function(){return x},BP:function(){return j},JX:function(){return g},OC:function(){return d},Pc:function(){return _},Ro:function(){return y},Tz:function(){return m},Y_:function(){return Z},d$:function(){return v},jV:function(){return O},lJ:function(){return P},n1:function(){return f},s8:function(){return a},vk:function(){return o},yD:function(){return s}});var r,i,o,l=t(82394),c=t(92083),u=t.n(c);!function(e){e.TODAY="today",e.WEEK="week",e.MONTH="month"}(o||(o={}));var a=(r={},(0,l.Z)(r,o.TODAY,"today"),(0,l.Z)(r,o.WEEK,"last 7 days"),(0,l.Z)(r,o.MONTH,"last 30 days"),r),s=(i={},(0,l.Z)(i,o.TODAY,0),(0,l.Z)(i,o.WEEK,6),(0,l.Z)(i,o.MONTH,29),i),d="YYYY-MM-DD HH:mm:ss",p="YYYY-MM-DD HH:mm",f="YYYY-MM-DD",h="MMMM D, YYYY";function v(e,n){var t=n.dayAgo,r=n.includeSeconds,i=n.utcFormat,o=u()(e),l=p;return i&&(o=o.utc()),t&&(o=o.subtract(1,"days")),r&&(l=d),o.format(l)}function m(e){var n=v((new Date).toISOString(),{includeSeconds:!0,utcFormat:!0});return null!==e&&void 0!==e&&e.dateObj?new Date(n):n}function g(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return u().unix(e).format(null!==n&&void 0!==n&&n.withSeconds?d:p)}function j(e,n,t){return u()(e).utc().hours(+n).minutes(+t).format()}function b(e){return u()(e).unix()}function x(e,n,t,r){var i="".concat(e.toISOString().split("T")[0]," ").concat(n,":").concat(t);return r?"".concat(i,":").concat(r):i}function _(e){var n=u().unix(+e).utc();return{date:n.toDate(),hour:String(n.hour()),minute:String(n.minute())}}function y(e,n){var t=u().utc(),r=u().utc();null!==n&&void 0!==n&&n.localTime&&(t=u()().local(),r=u()().local());var i=(t=t.subtract(e,"days")).format(h),o=r.format(h);return null!==n&&void 0!==n&&n.endDateOnly?o:"".concat(i," - ").concat(o)}function O(e,n){var t=null!==n&&void 0!==n&&n.localTime?u()().local():u().utc();if(e===o.WEEK){var r=s[o.WEEK];t=t.subtract(r,"days")}else if(e===o.MONTH){var i=s[o.MONTH];t=t.subtract(i,"days")}return null!==n&&void 0!==n&&n.isoString?t.startOf("day").toISOString():t.startOf("day").format(d)}function Z(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:90,n=new Date,t=[],r=0;r<e;r++)t.unshift(n.toISOString().split("T")[0]),n.setDate(n.getDate()-1);return t}function P(e){return e.padStart(2,"0")}},84779:function(e,n,t){"use strict";t.d(n,{JI:function(){return o},uf:function(){return i}});var r=t(75582),i=function(e){var n=String(e).split("."),t=(0,r.Z)(n,2),i=t[0],o=t[1];return"".concat(i.replace(/\B(?=(\d{3})+(?!\d))/g,",")).concat(o?".".concat(o):"")};function o(e){var n=Math.floor(Date.now()/1e3);return e>0?n-e:n}},62453:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/logs",function(){return t(91780)}])}},function(e){e.O(0,[844,9902,426,4259,4495,1424,1005,7815,6422,547,4822,9774,2888,179],(function(){return n=62453,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[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=g(e);if(n){var i=g(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 v(e)}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(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(v(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()}}},70543:function(e,n,t){"use strict";t.d(n,{IY:function(){return l},Jf:function(){return o},LR:function(){return i},NR:function(){return c},b7:function(){return r}});var r="edit",i="[ERR_BLOCK_EXISTS]",o={uuid:"All files"},l={uuid:"Files in pipeline"},c=[o,l]},2850:function(e,n,t){"use strict";t.d(n,{M:function(){return l},W:function(){return o}});var r=t(38626),i=t(3055),o=34*t(49125).iI,l=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);"],i.Mz)},56681:function(e,n,t){"use strict";t.d(n,{G7:function(){return y},ZP:function(){return P},u$:function(){return x}});var r=t(75582),i=t(82394),o=t(26304),l=t(32316),c=t(22673),s=t(48952),u=t(86673),a=t(19711),d=t(87815),p=t(49125),f=t(19395),h=t(7715),m=t(28598),v=["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 j(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 x=76,b={uuid:"Run details"},Z={uuid:"Dependency tree"},y=[Z,b];function P(e){var n=e.height,t=e.heightOffset,i=e.pipeline,g=e.selectedRun,P=e.selectedTab,_=e.setSelectedTab,O=j({},(0,o.Z)(e,v));g?O.blockStatus=(0,f.IJ)(null===g||void 0===g?void 0:g.block_runs):O.noStatus=!0;var w=(0,h.Kn)(null===g||void 0===g?void 0:g.variables)?j({},null===g||void 0===g?void 0:g.variables):(null===g||void 0===g?void 0:g.variables)||{},S=null===g||void 0===g?void 0:g.event_variables;if(S&&(0,h.Kn)(S)&&!(0,h.Qr)(S))if((0,h.Kn)(w)&&w.hasOwnProperty("event")){var I=(0,h.Kn)(w.event)?w.event:{};w.event=j(j({},I),S)}else w.event=j({},S);var k=[];w&&JSON.stringify(w,null,2).split("\n").forEach((function(e){k.push(" ".concat(e))}));var C=g&&[["Run ID",null===g||void 0===g?void 0:g.id],["Variables",(0,m.jsx)(c.Z,{language:"json",small:!0,source:k.join("\n")},"variable_value")]],E=g&&(0,m.jsx)(u.Z,{pb:p.cd,px:p.cd,children:(0,m.jsx)(d.Z,{alignTop:!0,columnFlex:[null,1],columnMaxWidth:function(e){return 1===e?"100px":null},rows:C.map((function(e,n){var t=(0,r.Z)(e,2),i=t[0],o=t[1];return[(0,m.jsx)(a.ZP,{monospace:!0,muted:!0,children:i},"key_".concat(n)),(0,m.jsx)(a.ZP,{monospace:!0,textOverflow:!0,children:o},"val_".concat(n))]})),uuid:"LogDetail"})}),T=P&&_;return(0,m.jsxs)(m.Fragment,{children:[T&&(0,m.jsx)(u.Z,{py:p.cd,children:(0,m.jsx)(l.Z,{onClickTab:_,selectedTabUUID:null===P||void 0===P?void 0:P.uuid,tabs:y})}),(!T||Z.uuid===(null===P||void 0===P?void 0:P.uuid))&&(0,m.jsx)(s.Z,j(j({},O),{},{height:n,heightOffset:(t||0)+(T?x:0),pipeline:i})),b.uuid===(null===P||void 0===P?void 0:P.uuid)&&E]})}},58122:function(e,n,t){"use strict";t.d(n,{FS:function(){return s},JZ:function(){return a},e7:function(){return d},wx:function(){return u}});var r=t(75582),i=t(82394),o=t(93348);function l(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function c(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?l(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):l(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function s(e){return"string"===typeof e?e:JSON.stringify(e)}function u(e,n){var t,r;return null===e||void 0===e||null===(t=e.find((function(e){var t=e.block;return n(t)})))||void 0===t||null===(r=t.variables)||void 0===r?void 0:r.map((function(e){var n=e.value;return c(c({},e),{},{value:s(n)})}))}function a(e,n){return n===o.Xm.TIME?e.push({uuid:"execution_date",value:"<run datetime>"}):n===o.Xm.EVENT&&e.push({uuid:"event",value:"<trigger event>"}),e}function d(e){return e?Object.entries(e).reduce((function(e,n){var t=(0,r.Z)(n,2),o=t[0],l=t[1],s=l;try{s=JSON.parse(l)}catch(u){}return c(c({},e),{},(0,i.Z)({},o,s))}),{}):e}},18025:function(e,n,t){"use strict";t.d(n,{J:function(){return s},U:function(){return c}});var r=t(38626),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 ")}))},51099:function(e,n,t){"use strict";t.d(n,{Q:function(){return a}});t(82684);var r=t(60328),i=t(67971),o=t(86673),l=t(22341),c=t(73899),s=t(49125),u=t(28598),a=22;n.Z=function(e){var n=e.page,t=e.maxPages,a=e.onUpdate,d=e.totalPages,p=[],f=t;if(f>d)p=Array.from({length:d},(function(e,n){return n}));else{var h=Math.floor(f/2),m=n-h;n+h>=d?(m=d-f+2,f-=2):n-h<=0?(m=0,f-=2):(f-=4,m=n-Math.floor(f/2)),p=Array.from({length:f},(function(e,n){return n+m}))}return(0,u.jsx)(u.Fragment,{children:d>0&&(0,u.jsxs)(i.ZP,{alignItems:"center",children:[(0,u.jsx)(r.Z,{disabled:0===n,onClick:function(){return a(n-1)},children:(0,u.jsx)(l.Hd,{size:1.5*s.iI,stroke:"#AEAEAE"})}),!p.includes(0)&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(o.Z,{ml:1,children:(0,u.jsx)(r.Z,{onClick:function(){return a(0)},borderLess:!0,noBackground:!0,children:1})},0),!p.includes(1)&&(0,u.jsx)(o.Z,{ml:1,children:(0,u.jsx)(r.Z,{notClickable:!0,noBackground:!0,noPadding:!0,children:"..."})},0)]}),p.map((function(e){return(0,u.jsx)(o.Z,{ml:1,children:(0,u.jsx)(r.Z,{onClick:function(){e!==n&&a(e)},notClickable:e===n,backgroundColor:e===n&&c.a$,borderLess:!0,noBackground:!0,children:e+1})},e)})),!p.includes(d-1)&&(0,u.jsxs)(u.Fragment,{children:[!p.includes(d-2)&&(0,u.jsx)(o.Z,{ml:1,children:(0,u.jsx)(r.Z,{notClickable:!0,noBackground:!0,noPadding:!0,children:"..."})},0),(0,u.jsx)(o.Z,{ml:1,children:(0,u.jsx)(r.Z,{onClick:function(){return a(d-1)},borderLess:!0,noBackground:!0,children:d})},d-1)]}),(0,u.jsx)(o.Z,{ml:1}),(0,u.jsx)(r.Z,{disabled:n===d-1,onClick:function(){return a(n+1)},children:(0,u.jsx)(l.Kw,{size:1.5*s.iI,stroke:"#AEAEAE"})})]})})}},52769:function(e,n,t){"use strict";t.d(n,{C:function(){return r}});var r="global"},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.ZP,{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))}))})]})]})}},22673:function(e,n,t){"use strict";var r=t(82684),i=t(68792),o=t(31811),l=t(38626),c=t(65292),s=t(23831),u=t(2005),a=t(49125),d=t(28598);n.Z=function(e){var n=e.language,t=e.maxWidth,p=e.showLineNumbers,f=e.small,h=e.source,m=e.wrapLines,v=(0,r.useContext)(l.ThemeContext);function g(e){var r=e.value;return(0,d.jsx)(o.Z,{customStyle:{backgroundColor:(v.background||s.Z.background).popup,border:"none",borderRadius:"none",boxShadow:"none",fontFamily:u.Vp,fontSize:f?12:14,marginBottom:0,marginTop:0,maxWidth:t,paddingBottom:2*a.iI,paddingTop:2*a.iI},language:n,lineNumberStyle:{color:(v.content||s.Z.content).muted},showLineNumbers:p,style:c._4,useInlineStyles:!0,wrapLines:m,children:r})}return(0,d.jsx)(i.D,{components:{code:function(e){var n=e.children;return(0,d.jsx)(g,{value:n})}},children:h})}},65730:function(e,n,t){"use strict";var r,i=t(82394),o=(t(82684),t(64866)),l=t(21764),c=t(67971),s=t(10919),u=t(86673),a=t(19711),d=t(46261),p=t(22341),f=t(49125),h=t(28598);function m(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function v(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?m(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}!function(e){e.LEFT="left",e.RIGHT="right"}(r||(r={})),n.Z=function(e){var n,t=e.children,i=e.copiedText,m=e.iconPosition,g=void 0===m?r.LEFT:m,j=e.inverted,x=e.linkProps,b=e.linkText,Z=e.monospace,y=e.muted,P=e.small,_=e.toastMessage,O=e.withCopyIcon;return t?n=(0,h.jsx)("span",{children:t}):O&&(n=(0,h.jsx)(s.Z,v(v({href:"#",inline:!0,muted:y,preventDefault:!0,sameColorAsText:!0,small:P},x),{},{children:(0,h.jsxs)(c.ZP,{alignItems:"center",children:[g===r.LEFT&&(0,h.jsx)(u.Z,{mr:b?1:0,children:(0,h.jsx)(c.ZP,{alignItems:"center",children:(0,h.jsx)(p.CK,{inverted:j,muted:y,size:2*f.iI})})}),b&&(0,h.jsx)(a.ZP,{inverted:j,monospace:Z,muted:y,small:P,children:b}),g===r.RIGHT&&(0,h.jsx)(u.Z,{ml:b?1:0,children:(0,h.jsx)(c.ZP,{alignItems:"center",children:(0,h.jsx)(p.CK,{inverted:j,muted:y})})})]})}))),(0,h.jsx)(d.Z,{block:!0,label:"Copy",size:null,widthFitContent:!0,children:(0,h.jsx)(o.CopyToClipboard,{onCopy:function(){return l.Am.success(_||"Successfully copied to clipboard.",{position:l.Am.POSITION.BOTTOM_RIGHT,toastId:i})},text:i,children:n})})}},32316:function(e,n,t){"use strict";t.d(n,{Z:function(){return v}});var r=t(82684),i=t(60328),o=t(67971),l=t(882),c=t(86673),s=t(19711),u=t(99994),a=t(38626),d=t(49125),p=t(37391),f=a.default.div.withConfig({displayName:"indexstyle__TabsContainerStyle",componentId:"sc-segf7l-0"})(["padding-left:","px;padding-right:","px;"," "," ",""],d.cd*d.iI,d.cd*d.iI,(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.allowScroll&&"\n overflow: auto;\n "}),p.w5),h=t(66653),m=t(28598);var v=function(e){var n=e.allowScroll,t=e.compact,a=e.contained,p=e.noPadding,v=e.onClickTab,g=e.regularSizeText,j=e.selectedTabUUID,x=e.small,b=e.tabs,Z=(0,r.useMemo)((function(){var e=b.length,n=[];return b.forEach((function(r,a){var p=r.Icon,f=r.IconSelected,b=r.label,Z=r.uuid,y=Z===j,P=y&&f||p,_=b?b():Z,O=(0,m.jsxs)(o.ZP,{alignItems:"center",children:[P&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(P,{default:!y,size:2*d.iI}),(0,m.jsx)(c.Z,{mr:1})]}),(0,m.jsx)(s.ZP,{bold:!0,default:!y,noWrapping:!0,small:!g,children:_})]});a>=1&&e>=2&&n.push((0,m.jsx)("div",{style:{marginLeft:1.5*d.iI}},"spacing-".concat(Z))),y?n.push((0,m.jsx)(l.Z,{backgroundGradient:u.yr,backgroundPanel:!0,borderLess:!0,borderWidth:2,compact:t||x,onClick:function(e){(0,h.j)(e),v(r)},paddingUnitsHorizontal:1.75,paddingUnitsVertical:1.25,small:x,children:O},Z)):n.push((0,m.jsx)("div",{style:{padding:2},children:(0,m.jsx)(i.Z,{borderLess:!0,compact:t||x,default:!0,onClick:function(e){(0,h.j)(e),v(r)},outline:!0,small:x,children:O})},"button-tab-".concat(Z)))})),n}),[t,v,j,x,b]),y=(0,m.jsx)(o.ZP,{alignItems:"center",children:Z});return a?y:(0,m.jsx)(f,{allowScroll:n,noPadding:p,children:y})}},70422:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return We}});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(65730),h=t(34744),m=t(67971),v=t(87372),g=t(10919),j=t(51099),x=t(60547),b=t(97496),Z=t(47409),y=t(93348),P=t(52769),_=t(55378),O=t(86673),w=t(54283),S=t(87815),I=t(55264),k=t(19711),C=t(46261),E=t(82531),T=t(56681),D=t(2850),M=t(86422),N=t(22341),A=t(49125),U=t(59920),R=t(24224);!function(e){e.AWS="aws_event"}(r||(r={}));var H=[{label:function(){return"AWS"},uuid:r.AWS}],L=(0,R.HK)(H,(function(e){return e.uuid})),F=t(58122),W=t(19395),z=t(25958),q=t(33766),X=t(7715),B=t(9736),K=t(96510),V=t(66653),Y=t(59e3),J=t(28598);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 Q(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?G(Object(t),!0).forEach((function(n){(0,l.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):G(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var $=function(e){var n=e.errors,t=e.fetchPipelineSchedule,r=e.pipeline,o=e.pipelineSchedule,l=e.setErrors,c=e.variables,s=(0,d.useRouter)(),H=(0,B.Ct)(),G=(r||{}).uuid,$=o||{},ee=$.id,ne=$.event_matchers,te=$.name,re=$.schedule_interval,ie=$.schedule_type,oe=$.settings,le=$.sla,ce=$.start_time,se=$.status,ue=$.tags,ae=$.variables,de=void 0===ae?{}:ae,pe=(0,Y.iV)(),fe={_limit:30,_offset:30*(null!==pe&&void 0!==pe&&pe.page?pe.page:0)};null!==pe&&void 0!==pe&&pe.status&&(fe.status=pe.status),null!==o&&void 0!==o&&o.global_data_product_uuid&&(fe.global_data_product_uuid=null===o||void 0===o?void 0:o.global_data_product_uuid);var he=E.ZP.pipeline_runs.pipeline_schedules.list(ee,fe,{refreshInterval:3e3,revalidateOnFocus:!0}),me=he.data,ve=he.mutate,ge=(0,u.useMemo)((function(){return(null===me||void 0===me?void 0:me.pipeline_runs)||[]}),[me]),je=(0,u.useMemo)((function(){var e;return(null===me||void 0===me||null===(e=me.metadata)||void 0===e?void 0:e.count)||[]}),[me]),xe=(0,u.useState)(null),be=xe[0],Ze=xe[1],ye=(0,u.useMemo)((function(){var e=null!==pe&&void 0!==pe&&pe.page?pe.page:0;return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(b.Z,{fetchPipelineRuns:ve,onClickRow:function(e){return Ze((function(n){var t=ge[e];return(null===n||void 0===n?void 0:n.id)!==t.id?t:null}))},pipelineRuns:ge,selectedRun:be,setErrors:l}),(0,J.jsx)(O.Z,{p:2,children:(0,J.jsx)(j.Z,{maxPages:9,onUpdate:function(e){var n=Number(e),t=Q(Q({},pe),{},{page:n>=0?n:0});s.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(G,"/triggers/").concat(ee,"?").concat((0,Y.uM)(t)))},page:Number(e),totalPages:Math.ceil(je/30)})})]})}),[ve,ge,ee,G,pe,s,be,l,je]),Pe=(0,u.useState)(T.G7[0]),_e=Pe[0],Oe=Pe[1],we=(0,a.Db)((function(e){return E.ZP.pipeline_schedules.useUpdate(e.id)({pipeline_schedule:(0,X.gR)(e,["id"])})}),{onSuccess:function(e){return(0,K.wD)(e,{callback:function(){t()},onErrorCallback:function(e,n){return l({errors:n,response:e})}})}}),Se=(0,i.Z)(we,2),Ie=Se[0],ke=Se[1].isLoading,Ce=E.ZP.pipeline_triggers.pipelines.list(G),Ee=Ce.data,Te=Ce.mutate,De=(0,u.useMemo)((function(){return(0,R.HK)((null===Ee||void 0===Ee?void 0:Ee.pipeline_triggers)||[],(function(e){return e.name}))}),[Ee]),Me=(0,u.useMemo)((function(){return!(null===De||void 0===De||!De[null===o||void 0===o?void 0:o.name])}),[o,De]),Ne=(0,a.Db)(E.ZP.pipeline_triggers.pipelines.useCreate(G),{onSuccess:function(e){return(0,K.wD)(e,{callback:function(){Te()},onErrorCallback:function(e,n){return l({errors:n,response:e})}})}}),Ae=(0,i.Z)(Ne,2),Ue=Ae[0],Re=Ae[1].isLoading,He=(0,u.useMemo)((function(){return y.fq.ACTIVE===se}),[se]),Le=(0,u.useMemo)((function(){var e,n,t={default:!0,size:1.5*A.iI},r=[[(0,J.jsxs)(m.ZP,{alignItems:"center",children:[(0,J.jsx)(N.VW,Q({},t)),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(k.ZP,{default:!0,children:"Trigger type"})]},"trigger_type_label"),(0,J.jsx)(k.ZP,{monospace:!0,children:null===(e=y.Z4[ie])||void 0===e?void 0:e.call(y.Z4)},"trigger_type")],[(0,J.jsxs)(m.ZP,{alignItems:"center",children:[(0,J.jsx)(N.rs,Q({},t)),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(k.ZP,{default:!0,children:"Status"})]},"trigger_status_label"),(0,J.jsx)(k.ZP,{danger:!He,monospace:!0,success:He,children:se},"trigger_status")]];if(le){var i=(0,W.gU)(le),l=i.time,c=i.unit,s=1===l?c:"".concat(c,"s");r.push([(0,J.jsxs)(m.ZP,{alignItems:"center",children:[(0,J.jsx)(N.kI,Q({},t)),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(k.ZP,{default:!0,children:"SLA"})]},"trigger_sla_label"),(0,J.jsx)(k.ZP,{monospace:!0,children:"".concat(l," ").concat(s)},"trigger_sla")])}if(re&&r.push([(0,J.jsxs)(m.ZP,{alignItems:"center",children:[(0,J.jsx)(N.Pf,Q({},t)),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(k.ZP,{default:!0,children:"Frequency"})]},"trigger_frequency_label"),(0,J.jsx)(k.ZP,{monospace:!0,children:re.replace("@","")},"trigger_frequency")]),ce&&r.push([(0,J.jsxs)(m.ZP,{alignItems:"center",children:[(0,J.jsx)(N.aw,Q({},t)),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(k.ZP,{default:!0,children:"Start date"})]},"trigger_start_date_label"),(0,J.jsx)(k.ZP,{monospace:!0,children:ce},"trigger_start_date")]),y.Xm.API===ie){var u=(0,W.M8)(o);r.push([(0,J.jsxs)(m.ZP,{alignItems:"center",children:[(0,J.jsx)(N.Ae,Q({},t)),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(k.ZP,{default:!0,children:"API endpoint"})]},"trigger_api_endpoint_label"),(0,J.jsx)(f.Z,{copiedText:u,children:(0,J.jsx)(k.ZP,{monospace:!0,small:!0,children:u})},"trigger_api_endpoint")])}null!==oe&&void 0!==oe&&oe.skip_if_previous_running&&r.push([(0,J.jsxs)(m.ZP,{alignItems:"center",children:[(0,J.jsx)(C.Z,{default:!0,label:"Skip current run if any previous runs are still in progress",size:1.5*A.iI,widthFitContent:!0}),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(k.ZP,{default:!0,children:"Skip if running"})]},"trigger_skip_if_running"),(0,J.jsx)(k.ZP,{monospace:!0,children:null===(n=oe.skip_if_previous_running)||void 0===n?void 0:n.toString()},"trigger_skip_if_running_label")]);return null!==oe&&void 0!==oe&&oe.allow_blocks_to_fail&&r.push([(0,J.jsxs)(m.ZP,{alignItems:"center",children:[(0,J.jsx)(C.Z,{default:!0,label:"Trigger runs will continue running blocks if other unrelated blocks fail",size:1.5*A.iI,widthFitContent:!0}),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(k.ZP,{default:!0,children:"Allow blocks to fail"})]},"trigger_allow_blocks_to_fail"),(0,J.jsx)(k.ZP,{monospace:!0,children:oe.allow_blocks_to_fail.toString()},"trigger_allow_blocks_to_fail_label")]),(0,J.jsx)(S.Z,{columnFlex:[null,1],rows:r})}),[He,o,re,ie,oe,le,ce,se]),Fe=(0,u.useMemo)((function(){return de||{}}),[de]),We=(0,u.useMemo)((function(){var e,n=[];return(0,X.Qr)(Fe)?n=(0,F.wx)(c,(function(e){return e.uuid===P.C})):Object.entries(Fe).forEach((function(e){var t=(0,i.Z)(e,2),r=t[0],o=t[1];Z.sZ!==r&&n.push({uuid:r,value:(0,F.FS)(o)})})),"undefined"!==typeof(n=(0,F.JZ)(n||[],ie))&&null!==(e=n)&&void 0!==e&&e.length?(0,J.jsx)(S.Z,{columnFlex:[null,1],rows:n.map((function(e){var n=e.uuid,t=e.value;return[(0,J.jsx)(k.ZP,{default:!0,monospace:!0,children:n},"settings_variable_label_".concat(n)),(0,J.jsx)(k.ZP,{monospace:!0,children:t},"settings_variable_".concat(n))]}))}):null}),[ie,Fe,c]),ze=(0,u.useMemo)((function(){var e,n,t=[],i=null===Fe||void 0===Fe||null===(e=Fe[Z.sZ])||void 0===e?void 0:e.blocks;return null===r||void 0===r||null===(n=r.blocks)||void 0===n||n.forEach((function(e){var n=e.type,r=e.uuid;if(M.tf.DBT===n){var o,l=(null===i||void 0===i||null===(o=i[r])||void 0===o?void 0:o.configuration)||{},c=l.flags,s=l.prefix,u=l.suffix,a=(0,z.IU)(e).name;(c||s||u)&&t.push({flags:c,prefix:s,suffix:u,uuid:a})}})),"undefined"!==typeof t&&null!==t&&void 0!==t&&t.length?(0,J.jsx)(S.Z,{columnFlex:[1,null],rows:t.map((function(e){var n=e.flags,t=e.prefix,r=e.suffix,i=e.uuid;return[(0,J.jsxs)(k.ZP,{monospace:!0,small:!0,children:[t&&(0,J.jsx)(k.ZP,{inline:!0,monospace:!0,muted:!0,small:!0,children:t}),i,r&&(0,J.jsx)(k.ZP,{inline:!0,monospace:!0,muted:!0,small:!0,children:r})]},"settings_variable_label_".concat(i)),(0,J.jsx)(k.ZP,{monospace:!0,muted:!0,small:!0,children:n&&n.join(", ")},"settings_variable_".concat(i))]}))}):null}),[r,Fe]),qe=(0,u.useMemo)((function(){return(0,J.jsx)(S.Z,{columnFlex:[null,1],columns:[{uuid:"Provider"},{uuid:"Event"}],rows:null===ne||void 0===ne?void 0:ne.map((function(e,n){var t=e.event_type,r=e.name;return[(0,J.jsx)(k.ZP,{default:!0,monospace:!0,children:L[t].label()},"".concat(t,"_").concat(n,"_label")),(0,J.jsx)(k.ZP,{monospace:!0,children:r},"".concat(t,"_").concat(n,"_name"))]}))})}),[ne]);return(0,J.jsxs)(x.Z,{afterHidden:!be,before:(0,J.jsxs)(D.M,{children:[(0,J.jsxs)(O.Z,{mb:A.HN,pt:A.cd,px:A.cd,children:[(0,J.jsxs)(O.Z,{mb:A.cd,children:[y.Xm.TIME===ie&&(0,J.jsx)(N.kO,{size:5*A.iI}),y.Xm.EVENT===ie&&(0,J.jsx)(N.Jp,{size:5*A.iI}),y.Xm.API===ie&&(0,J.jsx)(N.Bf,{size:5*A.iI}),!ie&&(0,J.jsx)(N.VW,{size:5*A.iI})]}),(0,J.jsx)(v.Z,{children:te})]}),(0,J.jsx)(O.Z,{px:A.cd,children:(0,J.jsx)(v.Z,{level:5,children:"Settings"})}),(0,J.jsx)(h.Z,{light:!0,mt:1,short:!0}),Le,(null===ne||void 0===ne?void 0:ne.length)>=1&&(0,J.jsxs)(O.Z,{my:A.HN,children:[(0,J.jsx)(O.Z,{px:A.cd,children:(0,J.jsx)(v.Z,{level:5,children:"Events"})}),(0,J.jsx)(h.Z,{light:!0,mt:1,short:!0}),qe]}),We&&(0,J.jsxs)(O.Z,{my:A.HN,children:[(0,J.jsx)(O.Z,{px:A.cd,children:(0,J.jsx)(v.Z,{level:5,children:"Runtime variables"})}),(0,J.jsx)(h.Z,{light:!0,mt:1,short:!0}),We]}),ze&&(0,J.jsxs)(O.Z,{my:A.HN,children:[(0,J.jsx)(O.Z,{px:A.cd,children:(0,J.jsx)(v.Z,{level:5,children:"dbt runtime settings"})}),(0,J.jsx)(h.Z,{light:!0,mt:1,short:!0}),ze]}),(null===ue||void 0===ue?void 0:ue.length)>=1&&(0,J.jsxs)(O.Z,{my:A.HN,children:[(0,J.jsx)(O.Z,{px:A.cd,children:(0,J.jsx)(v.Z,{level:5,children:"Tags"})}),(0,J.jsx)(h.Z,{light:!0,mt:1,short:!0}),(0,J.jsx)(O.Z,{mt:A.cd,px:A.cd,children:(0,J.jsx)(I.Z,{tags:null===ue||void 0===ue?void 0:ue.map((function(e){return{uuid:e}}))})})]}),(0,J.jsx)(O.Z,{my:A.HN,children:(0,J.jsxs)(O.Z,{px:A.cd,children:[(0,J.jsxs)(v.Z,{level:5,children:[Me&&"Trigger exists in code",!Me&&"Store trigger in code"]}),(0,J.jsx)(O.Z,{mt:1,children:(0,J.jsxs)(k.ZP,{default:!0,children:["Save or update the trigger and its settings in the pipeline\u2019s metadata and version control the trigger using Git. For more information, please read the ",(0,J.jsx)(g.Z,{href:"https://docs.mage.ai/guides/triggers/configure-triggers-in-code",openNewWindow:!0,children:"documentation"}),"."]})}),(0,J.jsxs)(O.Z,{mt:A.cd,children:[!Ee&&(0,J.jsx)(w.Z,{inverted:!0}),Ee&&(0,J.jsxs)(p.Z,{disabled:!(null!==o&&void 0!==o&&o.id),loading:Re,onClick:function(){Ue({pipeline_trigger:{pipeline_schedule_id:null===o||void 0===o?void 0:o.id}})},secondary:!0,children:[Me&&"Update trigger in code",!Me&&"Save trigger in code"]})]})]})})]}),beforeWidth:D.W,breadcrumbs:[{label:function(){return"Triggers"},linkProps:{as:"/pipelines/".concat(G,"/triggers"),href:"/pipelines/[pipeline]/triggers"}},{label:function(){return te},linkProps:{as:"/pipelines/".concat(G,"/triggers/").concat(ee),href:"/pipelines/[pipeline]/triggers/[...slug]"}}],buildSidekick:function(e){return(0,T.ZP)(Q(Q({},e),{},{selectedRun:be,selectedTab:_e,setSelectedTab:Oe}))},errors:n,pageName:U.M.TRIGGERS,pipeline:r,setErrors:l,subheader:(0,J.jsxs)(m.ZP,{alignItems:"center",children:[(0,J.jsx)(p.Z,{beforeIcon:He?(0,J.jsx)(N.dz,{size:2*A.iI}):(0,J.jsx)(N.Py,{inverted:!H,size:2*A.iI}),danger:He&&!H,loading:ke,onClick:function(e){(0,V.j)(e),Ie({id:ee,status:He?y.fq.INACTIVE:y.fq.ACTIVE})},outline:!0,success:!He&&!H,children:He?"Pause trigger":"Start trigger"}),(0,J.jsx)(O.Z,{mr:A.cd}),!H&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(p.Z,{linkProps:{as:"/pipelines/".concat(G,"/triggers/").concat(ee,"/edit"),href:"/pipelines/[pipeline]/triggers/[...slug]"},noHoverUnderline:!0,outline:!0,sameColorAsText:!0,children:"Edit trigger"}),(0,J.jsx)(O.Z,{mr:A.cd})]}),(0,J.jsxs)(_.Z,{compact:!0,defaultColor:!0,onChange:function(e){e.preventDefault(),"all"===e.target.value?s.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(G,"/triggers/").concat(ee)):(0,q.u7)({page:0,status:e.target.value})},paddingRight:4*A.iI,placeholder:"Select run status",value:(null===pe||void 0===pe?void 0:pe.status)||"all",children:[(0,J.jsx)("option",{value:"all",children:"All statuses"},"all_statuses"),Z.IK.map((function(e){return(0,J.jsx)("option",{value:e,children:Z.Do[e]},e)}))]})]}),title:function(){return te},uuid:"triggers/detail",children:[(0,J.jsx)(O.Z,{mt:A.cd,px:A.cd,children:(0,J.jsx)(v.Z,{level:5,children:"Runs for this trigger"})}),(0,J.jsx)(h.Z,{light:!0,mt:A.cd,short:!0}),ye]})},ee=t(21831),ne=t(92083),te=t.n(ne),re=t(21764),ie=t(2713),oe=t(38341),le=t(47999),ce=t(22673),se=t(38626),ue=t(16634),ae=t(82944),de=t(44162);function pe(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 fe(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?pe(Object(t),!0).forEach((function(n){(0,l.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):pe(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var he=function(e){var n=e.blocks,t=e.updateVariables,r=e.variables,i=(0,u.useContext)(se.ThemeContext),o=(0,u.useCallback)((function(e,n){return t((function(){var t=(null===r||void 0===r?void 0:r.__mage_variables)||{},i=(null===t||void 0===t?void 0:t.blocks)||{},o=i[e]||{},c=(null===o||void 0===o?void 0:o.configuration)||{};return fe(fe({},r),{},{__mage_variables:fe(fe({},t),{},{blocks:fe(fe({},i),{},(0,l.Z)({},e,fe(fe({},o),{},{configuration:fe(fe({},c),n)})))})})}))}),[t,r]);return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(v.Z,{children:"dbt runtime settings"}),(0,J.jsx)(O.Z,{mt:A.Mq,children:(0,J.jsx)(S.Z,{columnFlex:[1,null,null,null],columns:[{uuid:"Block"},{uuid:"Flags"},{uuid:"Prefix"},{uuid:"Suffix"}],compact:!0,rows:null===n||void 0===n?void 0:n.map((function(e){var n,t,l,c=e.type,s=e.uuid,u=(0,z.IU)(e).name,a=(0,de.qn)(c,{blockColor:e.color,theme:i}).accent,d=null===r||void 0===r||null===(n=r.__mage_variables)||void 0===n||null===(t=n.blocks)||void 0===t||null===(l=t[s])||void 0===l?void 0:l.configuration,p=d||{},f=p.prefix,h=p.suffix,v=(null===d||void 0===d?void 0:d.flags)||[],g=!(null===v||void 0===v||!v.includes(z.Dy));return[(0,J.jsx)(C.Z,{block:!0,label:(0,J.jsx)(k.ZP,{monospace:!0,small:!0,children:s}),size:null,widthFitContent:!0,children:(0,J.jsxs)(m.ZP,{alignItems:"center",children:[(0,J.jsx)(ue.Z,{color:a,size:1.5*A.iI,square:!0}),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsxs)(k.ZP,{monospace:!0,small:!0,children:[f&&(0,J.jsx)(k.ZP,{default:!0,inline:!0,monospace:!0,small:!0,children:f}),u,h&&(0,J.jsx)(k.ZP,{default:!0,inline:!0,monospace:!0,small:!0,children:h})]})]})},"uuid-".concat(s)),(0,J.jsx)(m.ZP,{alignItems:"center",children:(0,J.jsx)(oe.Z,{checked:g,label:z.Dy,monospace:!0,onClick:function(){return o(s,{flags:g?(0,R.Od)(v,(function(e){return z.Dy===e})):v.concat(z.Dy)})},small:!0})},"flags-".concat(s)),(0,J.jsx)(ae.Z,{compact:!0,monospace:!0,onChange:function(e){return o(s,{prefix:e.target.value})},placeholder:"N+, +",small:!0,value:f,width:10*A.iI},"prefix-".concat(s)),(0,J.jsx)(ae.Z,{compact:!0,monospace:!0,onChange:function(e){return o(s,{suffix:e.target.value})},placeholder:"+, +N",small:!0,value:h,width:10*A.iI},"suffix-".concat(s))]}))})})]})},me=t(93461),ve=t(26304),ge=t(23831),je=t(2005),xe=t(31012),be=["children","large","lineHeight","ordered"];function Ze(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function ye(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Ze(Object(t),!0).forEach((function(n){(0,l.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ze(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Pe=(0,se.css)([""," "," "," "," "," "," "," "," "," ",""],(function(e){return!e.muted&&"\n color: ".concat((e.theme.content||ge.Z.content).default,";\n ")}),(function(e){return e.muted&&"\n color: ".concat((e.theme.content||ge.Z.content).muted,";\n ")}),(function(e){return e.inverted&&"\n color: ".concat((e.theme.content||ge.Z.content).inverted,";\n ")}),(function(e){return e.color&&"\n color: ".concat(e.color,";\n ")}),(function(e){return!e.monospace&&"\n font-family: ".concat(je.ry,";\n ")}),(function(e){return e.monospace&&"\n font-family: ".concat(je.Vp,";\n ")}),(function(e){return e.large&&"\n ".concat(xe.x_,"\n ")}),(function(e){return!e.large&&!e.small&&"\n ".concat(xe.i3,"\n ")}),(function(e){return e.small&&"\n ".concat(xe.J5,"\n ")}),(function(e){return e.lineHeight&&"\n line-height: ".concat(e.lineHeight,"px !important;\n ")})),_e=se.default.ul.withConfig({displayName:"List__UnorderedListStyle",componentId:"sc-1f6yhbi-0"})(["",""],Pe),Oe=se.default.ol.withConfig({displayName:"List__OrderedListStyle",componentId:"sc-1f6yhbi-1"})(["",""],Pe),we=se.default.li.withConfig({displayName:"List__ListItemStyle",componentId:"sc-1f6yhbi-2"})(["",""],(function(e){return e.large&&e.marginTop&&"\n margin-top: ".concat(1*A.iI,"px;\n ")}));var Se=function(e){var n=e.children,t=e.large,r=e.lineHeight,i=e.ordered,o=(0,ve.Z)(e,be),l=i?Oe:_e;return(0,J.jsx)(l,ye(ye({large:t,lineHeight:r},o),{},{children:u.Children.map(n,(function(e,n){var r;return(0,J.jsx)(we,ye(ye({large:t,marginTop:n>=1},o),{},{children:u.cloneElement(e)}),(null===(r=e.props)||void 0===r?void 0:r.key)||n)}))}))},Ie=t(98781),ke=t(18190),Ce=t(70902),Ee=t(18025),Te=t(90211);function De(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 Me(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?De(Object(t),!0).forEach((function(n){(0,l.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):De(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Ne=function(e){var n=[{description:function(){return"This pipeline will run continuously on an interval or just once."},label:function(){return"Schedule"},uuid:y.Xm.TIME},{description:function(){return"This pipeline will run when a specific event occurs."},label:function(){return"Event"},uuid:y.Xm.EVENT},{description:function(){return"Run this pipeline when you make an API call."},label:function(){return"API"},uuid:y.Xm.API}];return e?n.slice(0,1):n};var Ae=function(e){var n=e.errors,t=e.fetchPipelineSchedule,r=e.pipeline,o=e.pipelineSchedule,c=e.setErrors,s=e.variables,j=(0,d.useRouter)(),b=null===r||void 0===r?void 0:r.uuid,w=null===o||void 0===o?void 0:o.id,I=(null===r||void 0===r?void 0:r.type)===Ie.qL.STREAMING,C=(0,u.useState)([]),T=C[0],D=C[1],L=(0,u.useState)(!1),z=L[0],q=L[1],B=(0,u.useState)(!1),V=B[0],Y=B[1],G=(0,u.useState)(),Q=G[0],$=G[1],ne=(0,u.useState)({}),se=ne[0],ue=ne[1],de=(0,u.useState)(null),pe=de[0],fe=de[1],ve=(0,u.useState)(!1),ge=ve[0],je=ve[1],xe=(0,u.useState)(null),be=xe[0],Ze=xe[1],ye=(0,u.useMemo)((function(){return(0,F.wx)(s,(function(e){return e.uuid===P.C}))}),[s]),Pe=pe||{},_e=Pe.name,Oe=Pe.schedule_interval,we=Pe.schedule_type,De=Pe.settings,Ae=void 0===De?{}:De,Ue=(Pe.sla,Pe.start_time),Re=Pe.tags,He=Pe.variables,Le=void 0===He?{}:He;(0,u.useEffect)((function(){Ae&&$(Ae)}),[Ae]);var Fe=(0,u.useState)(null),We=Fe[0],ze=Fe[1],qe=(0,u.useState)({hour:"00",minute:"00"}),Xe=qe[0],Be=qe[1],Ke=(0,u.useState)({dayOfMonth:null,dayOfWeek:null,hour:null,minute:null,second:null}),Ve=Ke[0],Ye=Ke[1],Je=E.ZP.event_rules.detail(y.Xm.EVENT===we?"aws":null).data,Ge=(0,u.useMemo)((function(){var e;return(null===Je||void 0===Je||null===(e=Je.event_rule)||void 0===e?void 0:e.rules)||[]}),[Je]),Qe=(0,u.useMemo)((function(){return(0,R.HK)(Ge,(function(e){return e.name}))}),[Ge]),$e=(0,a.Db)(E.ZP.pipeline_schedules.useUpdate(w),{onSuccess:function(e){return(0,K.wD)(e,{callback:function(){t(),j.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(b,"/triggers/").concat(w))},onErrorCallback:function(e,n){return c({errors:n,response:e})}})}}),en=(0,i.Z)($e,2),nn=en[0],tn=en[1].isLoading,rn=(0,u.useMemo)((function(){return Le||{}}),[Le]);(0,u.useEffect)((function(){if(Ue){var e=Ue.split(" ")[1];ze((0,W.eI)(Ue)),Be({hour:e.substring(0,2),minute:e.substring(3,5)});var n=te()(Ue).utc();Ye({dayOfMonth:n.date(),dayOfWeek:n.day(),hour:n.hours(),minute:n.minutes(),second:n.seconds()})}else{var t=new Date;ze(t),Be({hour:String(t.getUTCHours()).padStart(2,"0"),minute:String(t.getUTCMinutes()).padStart(2,"0")})}}),[Ue]),(0,u.useEffect)((function(){rn&&Object.keys(rn).length>0&&q(!0)}),[rn]),(0,u.useEffect)((function(){ue(z?null===ye||void 0===ye?void 0:ye.reduce((function(e,n){var t=n.uuid,r=n.value;return Me(Me({},e),{},(0,l.Z)({},t,rn[t]||r))}),{}):null)}),[ye,z,rn]);var on=(0,u.useMemo)((function(){return Oe&&!Object.values(y.U5).includes(Oe)}),[Oe]);(0,u.useEffect)((function(){if(o&&!pe){D(o.event_matchers),(null===o||void 0===o?void 0:o.schedule_interval)&&!Object.values(y.U5).includes(null===o||void 0===o?void 0:o.schedule_interval)?(Ze(null===o||void 0===o?void 0:o.schedule_interval),fe(Me(Me({},o),{},{schedule_interval:"custom"}))):fe(I?Me(Me({},o),{},{schedule_interval:y.U5.ONCE}):o);var e=o.sla;if(e){Y(!0);var n=(0,W.gU)(e),t=n.time,r=n.unit;fe((function(e){return Me(Me({},e),{},{slaAmount:t,slaUnit:r})}))}}}),[I,o,pe,Oe]);var ln=(0,u.useMemo)((function(){return!(null===Q||void 0===Q||!Q.landing_time_enabled)}),[Q]),cn=(0,u.useMemo)((function(){return y.Xm.TIME!==we||![y.U5.DAILY,y.U5.HOURLY,y.U5.MONTHLY,y.U5.WEEKLY].includes(Oe)}),[Oe,we]),sn=(0,u.useMemo)((function(){return ln&&!cn}),[cn,ln]),un=(0,u.useCallback)((function(){var e=Me(Me({},(0,X.GL)(pe,["name","schedule_type","tags"])),{},{event_matchers:[],schedule_interval:null,start_time:null,variables:(0,F.e7)(se)});if(sn){var n=Ve.dayOfMonth,t=Ve.dayOfWeek,r=Ve.hour,i=Ve.minute,l=Ve.second,c=te()("2023-07-01").utc();(0,Te.HW)(n)&&(c=c.date(n)),(0,Te.HW)(t)&&(c=c.day(t)),(0,Te.HW)(r)&&(c=c.hours(r)),(0,Te.HW)(i)&&(c=c.minutes(i)),(0,Te.HW)(l)&&(c=c.seconds(l)),e.schedule_interval=on?be:pe.schedule_interval,e.start_time=c.toISOString()}else y.Xm.EVENT===pe.schedule_type?e.event_matchers=T:(e.schedule_interval=on?be:pe.schedule_interval,e.start_time=We&&null!==Xe&&void 0!==Xe&&Xe.hour&&null!==Xe&&void 0!==Xe&&Xe.minute?"".concat(We.toISOString().split("T")[0]," ").concat(null===Xe||void 0===Xe?void 0:Xe.hour,":").concat(null===Xe||void 0===Xe?void 0:Xe.minute,":00"):null);if(V){var s=null===pe||void 0===pe?void 0:pe.slaAmount,u=null===pe||void 0===pe?void 0:pe.slaUnit;if(!s||isNaN(s)||!u)return void re.Am.error("Please enter a valid SLA",{position:re.Am.POSITION.BOTTOM_RIGHT,toastId:"sla_error"});e.sla=(0,W.vJ)(s,u)}else null!==o&&void 0!==o&&o.sla&&(e.sla=0);e.settings=Q,nn({pipeline_schedule:e})}),[be,We,V,T,on,Ve,o,se,pe,Q,sn,Xe,nn]),an=(0,u.useMemo)((function(){if(null===o||void 0===o||!o.runtime_average)return"Trigger doesn\u2019t have enough history to estimate runtime.";var e=Number(null===o||void 0===o?void 0:o.runtime_average),n=Math.max(Math.floor(e/3600),0),t=Math.max(Math.floor((e-60*n*60)/60),0),r=Math.max(Math.floor(e-(60*n*60+60*t)),0),i=[];return n>=1&&i.push((0,Te._6)("hour",n,!0)),t>=1&&i.push((0,Te._6)("minute",t,!0)),r>=1&&i.push((0,Te._6)("second",r,!0)),i.join(" ")}),[o]),dn=(0,u.useMemo)((function(){if(!sn)return null;var e=[(0,J.jsxs)(O.Z,{mr:1,children:[(0,J.jsx)(O.Z,{mb:1,children:(0,J.jsx)(k.ZP,{bold:!0,default:!0,small:!0,children:"Minute"})}),(0,J.jsxs)(_.Z,{compact:!0,monospace:!0,onChange:function(e){Ye((function(n){return Me(Me({},n),{},{minute:e.target.value})}))},value:(null===Ve||void 0===Ve?void 0:Ve.minute)||"",children:[(0,J.jsx)("option",{value:""}),(0,R.w6)(60).map((function(e,n){return(0,J.jsx)("option",{value:n,children:n>=10?String(n):"0".concat(n)},n)}))]})]},"Minute"),(0,J.jsxs)(O.Z,{mr:1,children:[(0,J.jsx)(O.Z,{mb:1,children:(0,J.jsx)(k.ZP,{bold:!0,default:!0,small:!0,children:"Second"})}),(0,J.jsxs)(_.Z,{compact:!0,monospace:!0,onChange:function(e){Ye((function(n){return Me(Me({},n),{},{second:e.target.value})}))},value:(null===Ve||void 0===Ve?void 0:Ve.second)||"",children:[(0,J.jsx)("option",{value:""}),(0,R.w6)(60).map((function(e,n){return(0,J.jsx)("option",{value:n,children:n>=10?String(n):"0".concat(n)},n)}))]})]},"Second")];return[y.U5.DAILY,y.U5.MONTHLY,y.U5.WEEKLY].includes(Oe)&&e.unshift((0,J.jsxs)(O.Z,{mr:1,children:[(0,J.jsx)(O.Z,{mb:1,children:(0,J.jsx)(k.ZP,{bold:!0,default:!0,small:!0,children:"Hour"})}),(0,J.jsxs)(_.Z,{compact:!0,monospace:!0,onChange:function(e){Ye((function(n){return Me(Me({},n),{},{hour:e.target.value})}))},value:(null===Ve||void 0===Ve?void 0:Ve.hour)||"",children:[(0,J.jsx)("option",{value:""}),(0,R.w6)(24).map((function(e,n){return(0,J.jsx)("option",{value:n,children:n>=10?String(n):"0".concat(n)},n)}))]})]},"Hour")),y.U5.WEEKLY===Oe?e.unshift((0,J.jsxs)(O.Z,{mr:1,children:[(0,J.jsx)(O.Z,{mb:1,children:(0,J.jsx)(k.ZP,{bold:!0,default:!0,small:!0,children:"Day of the week"})}),(0,J.jsxs)(_.Z,{compact:!0,monospace:!0,onChange:function(e){Ye((function(n){return Me(Me({},n),{},{dayOfWeek:e.target.value})}))},value:(null===Ve||void 0===Ve?void 0:Ve.dayOfWeek)||"",children:[(0,J.jsx)("option",{value:""}),(0,J.jsx)("option",{value:6,children:"Sunday"}),(0,J.jsx)("option",{value:0,children:"Monday"}),(0,J.jsx)("option",{value:1,children:"Tuesday"}),(0,J.jsx)("option",{value:2,children:"Wednesday"}),(0,J.jsx)("option",{value:3,children:"Thursday"}),(0,J.jsx)("option",{value:4,children:"Friday"}),(0,J.jsx)("option",{value:5,children:"Saturday"})]})]},"Day of the week")):y.U5.MONTHLY===Oe&&e.unshift((0,J.jsxs)(O.Z,{mr:1,children:[(0,J.jsx)(O.Z,{mb:1,children:(0,J.jsx)(k.ZP,{bold:!0,default:!0,small:!0,children:"Day of the month"})}),(0,J.jsxs)(_.Z,{compact:!0,monospace:!0,onChange:function(e){Ye((function(n){return Me(Me({},n),{},{dayOfMonth:e.target.value})}))},value:(null===Ve||void 0===Ve?void 0:Ve.dayOfMonth)||"",children:[(0,J.jsx)("option",{value:""}),(0,R.w6)(31).map((function(e,n){return(0,J.jsx)("option",{value:n+1,children:n+1>=10?String(n+1):"0".concat(n+1)},n+1)}))]})]},"Day of the month")),(0,J.jsx)(m.ZP,{children:e})}),[Ve,Oe,sn]),pn=(0,u.useMemo)((function(){var e=[[(0,J.jsxs)(m.ZP,{alignItems:"center",children:[(0,J.jsx)(N.KJ,{default:!0,size:1.5*A.iI}),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(k.ZP,{default:!0,children:"Trigger name"})]},"trigger_name_detail"),(0,J.jsx)(ae.Z,{monospace:!0,onChange:function(e){e.preventDefault(),fe((function(n){return Me(Me({},n),{},{name:e.target.value})}))},placeholder:"Name this trigger",value:_e},"trigger_name_input_detail")],[(0,J.jsxs)(m.ZP,{alignItems:"center",children:[(0,J.jsx)(N.Pf,{default:!0,size:1.5*A.iI}),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(k.ZP,{default:!0,children:"Frequency"})]},"frequency"),(0,J.jsxs)("div",{children:[(0,J.jsxs)(_.Z,{monospace:!0,onChange:function(e){e.preventDefault();var n=e.target.value;fe((function(e){return Me(Me({},e),{},{schedule_interval:n})}))},placeholder:"Choose the frequency to run",value:Oe,children:[Object.values(y.U5).map((function(e){return(0,J.jsx)("option",{value:e,children:e.substring(1)},e)})),(0,J.jsx)("option",{value:"custom",children:"custom"},"custom")]}),(0,J.jsx)(O.Z,{mt:1,p:1,children:(0,J.jsxs)(k.ZP,{muted:!0,small:!0,children:["If you don\u2019t see the frequency option you need, select ",(0,J.jsx)(k.ZP,{inline:!0,monospace:!0,small:!0,children:"custom"})," and enter CRON syntax."]})})]},"frequency_input")]];return sn&&(e.push([(0,J.jsxs)(m.ZP,{alignItems:"center",children:[(0,J.jsx)(N.rs,{default:!0,size:1.5*A.iI}),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(k.ZP,{default:!0,children:"Enable landing time"})]},"frequency"),(0,J.jsxs)("div",{children:[(0,J.jsx)(Ce.Z,{checked:ln,disabled:cn,onCheck:function(){$((function(e){return Me(Me({},e),{},{landing_time_enabled:!ln})}))}}),(0,J.jsxs)(O.Z,{mt:1,p:1,children:[cn&&(0,J.jsxs)(k.ZP,{muted:!0,small:!0,children:["In order to enable landing time, the trigger\u2019s frequency must be ",y.U5.HOURLY,", ",y.U5.DAILY,", ",y.U5.WEEKLY,", or ",y.U5.MONTHLY,"."]}),!cn&&(0,J.jsx)(k.ZP,{muted:!0,small:!0,children:"Instead of starting at a specific time, this trigger will schedule pipeline runs at a time where it will finish by the specified time below."})]})]},"frequency_input")]),e.push([(0,J.jsxs)(m.ZP,{alignItems:"center",children:[(0,J.jsx)(N.Pf,{default:!0,size:1.5*A.iI}),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(k.ZP,{default:!0,children:"Average runtime"})]},"runtime_average"),(0,J.jsx)(m.ZP,{alignItems:"center",style:{minHeight:"".concat(5.75*A.iI,"px")},children:(0,J.jsx)(k.ZP,{monospace:!0,children:an})},"runtime_average_value")])),e.push([(0,J.jsxs)(m.ZP,{alignItems:"center",children:[(0,J.jsx)(N.aw,{default:!0,size:1.5*A.iI}),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsxs)(k.ZP,{default:!0,children:[sn&&"Pipeline complete by",!sn&&"Start date and time"]})]},"start_time"),sn?dn:(0,J.jsxs)("div",{style:{minHeight:"".concat(5.75*A.iI,"px")},children:[!ge&&(0,J.jsx)(ae.Z,{monospace:!0,onClick:function(){return je((function(e){return!e}))},placeholder:"YYYY-MM-DD HH:MM",value:We?"".concat(We.toISOString().split("T")[0]," ").concat(null===Xe||void 0===Xe?void 0:Xe.hour,":").concat(null===Xe||void 0===Xe?void 0:Xe.minute):""}),(0,J.jsx)("div",{style:{width:"400px"},children:(0,J.jsx)(le.Z,{disableEscape:!0,onClickOutside:function(){return je(!1)},open:ge,style:{position:"relative"},children:(0,J.jsx)(ie.Z,{selectedDate:We,selectedTime:Xe,setSelectedDate:ze,setSelectedTime:Be,topPosition:!0})})})]},"start_time_input")]),I&&e.splice(1,1),on&&e.splice(2,0,[(0,J.jsxs)(m.ZP,{alignItems:"center",children:[(0,J.jsx)(N.EK,{default:!0,size:1.5*A.iI}),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(k.ZP,{default:!0,children:"Cron expression"})]},"cron_expression"),(0,J.jsxs)("div",{children:[(0,J.jsx)(ae.Z,{monospace:!0,onChange:function(e){e.preventDefault(),Ze(e.target.value)},placeholder:"* * * * *",value:be}),(0,J.jsxs)(O.Z,{mt:1,p:1,children:[(0,J.jsxs)(k.ZP,{muted:!0,small:!0,children:["If you want this pipeline to trigger every 1 minute, the CRON syntax is ",(0,J.jsx)(k.ZP,{inline:!0,monospace:!0,small:!0,children:"*/1 * * * *"}),"."]}),(0,J.jsxs)(k.ZP,{muted:!0,small:!0,children:["For more CRON syntax examples, check out this ",(0,J.jsx)(g.Z,{href:"https://crontab.guru/",openNewWindow:!0,small:!0,children:"resource"}),"."]})]})]},"cron_expression_input")]),(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(O.Z,{mb:2,px:A.cd,children:(0,J.jsx)(v.Z,{children:"Settings"})}),(0,J.jsx)(h.Z,{light:!0,short:!0}),(0,J.jsx)(S.Z,{columnFlex:[null,1],rows:e})]})}),[be,We,on,I,cn,ln,dn,_e,an,Oe,ge,sn,Xe]),fn=(0,u.useCallback)((function(e,n){D((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,ee.Z)(t)}))}),[D]),hn=(0,u.useMemo)((function(){return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(O.Z,{mb:A.cd,px:A.cd,children:(0,J.jsx)(v.Z,{children:"Settings"})}),(0,J.jsx)(h.Z,{light:!0,short:!0}),(0,J.jsx)(S.Z,{columnFlex:[null,1],rows:[[(0,J.jsxs)(m.ZP,{alignItems:"center",children:[(0,J.jsx)(N.KJ,{default:!0,size:1.5*A.iI}),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(k.ZP,{default:!0,children:"Trigger name"})]},"trigger_name_event"),(0,J.jsx)(ae.Z,{monospace:!0,onChange:function(e){e.preventDefault(),fe((function(n){return Me(Me({},n),{},{name:e.target.value})}))},placeholder:"Name this trigger",value:_e},"trigger_name_input_event")]]}),(0,J.jsxs)(O.Z,{mb:2,mt:5,px:A.cd,children:[(0,J.jsx)(v.Z,{children:"Events"}),(0,J.jsxs)(k.ZP,{muted:!0,children:["Add 1 or more event that will trigger this pipeline to run.",(0,J.jsx)("br",{}),"If you add more than 1 event, this pipeline will trigger if any of the events are received."]}),(0,J.jsxs)(O.Z,{mt:A.Mq,children:[(0,J.jsx)(k.ZP,{bold:!0,large:!0,children:"AWS events"}),(0,J.jsxs)(k.ZP,{muted:!0,children:["In order to retrieve all the possible AWS events you can trigger your pipeline from,",(0,J.jsx)("br",{}),"you\u2019ll need to set 3 environment variables (",(0,J.jsx)(g.Z,{href:"https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html",openNewWindow:!0,underline:!0,children:"more info here"}),"):"]}),(0,J.jsx)(O.Z,{mt:1,children:(0,J.jsxs)(Se,{monospace:!0,ordered:!0,children:[(0,J.jsx)(k.ZP,{monospace:!0,children:"AWS_REGION_NAME"}),(0,J.jsx)(k.ZP,{monospace:!0,children:"AWS_ACCESS_KEY_ID"}),(0,J.jsx)(k.ZP,{monospace:!0,children:"AWS_SECRET_ACCESS_KEY"})]})})]})]}),(0,J.jsx)(h.Z,{light:!0,short:!0}),(null===T||void 0===T?void 0:T.length)>=1&&(0,J.jsx)(S.Z,{alignTop:!0,columnFlex:[1,1,2,null],columns:[{uuid:"Provider"},{uuid:"Event"},{uuid:"Pattern"},{label:function(){return""},uuid:"delete"}],rows:null===T||void 0===T?void 0:T.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,J.jsx)(_.Z,{monospace:!0,onChange:function(e){return fn(n,{event_type:e.target.value})},placeholder:"Event provider",value:t||"",children:H.map((function(e){var n=e.label,t=e.uuid;return(0,J.jsx)("option",{value:t,children:n()},t)}))},"event-provider-".concat(o)),(0,J.jsx)(_.Z,{monospace:!0,onChange:function(e){var t,r=e.target.value,i=null===(t=Qe[r])||void 0===t?void 0:t.event_pattern;fn(n,{name:r,pattern:i?JSON.parse(i):null})},placeholder:"Event name",value:r,children:Ge.map((function(e){var n=e.name;return(0,J.jsx)("option",{value:n,children:n},n)}))},"event-name-".concat(o)),i&&(0,J.jsx)(ce.Z,{language:"json",small:!0,source:l.join("\n")}),(0,J.jsx)(p.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return D((function(e){return(0,R.oM)(e,n)}))},children:(0,J.jsx)(N.rF,{default:!0,size:2*A.iI})},"remove_event")]}))}),(0,J.jsx)(O.Z,{p:A.cd,children:(0,J.jsx)(p.Z,{beforeIcon:(0,J.jsx)(N.mm,{size:2*A.iI}),onClick:function(){return D((function(e){return e.concat({})}))},outline:!0,children:"Add event matcher"})})]})}),[T,Ge,Qe,_e,fn]),mn=(0,u.useMemo)((function(){var e=(0,W.M8)(o);return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(O.Z,{mb:A.cd,px:A.cd,children:(0,J.jsx)(v.Z,{children:"Settings"})}),(0,J.jsx)(h.Z,{light:!0,short:!0}),(0,J.jsx)(S.Z,{columnFlex:[null,1],rows:[[(0,J.jsxs)(m.ZP,{alignItems:"center",children:[(0,J.jsx)(N.KJ,{default:!0,size:1.5*A.iI}),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(k.ZP,{default:!0,children:"Trigger name"})]},"trigger_name_api"),(0,J.jsx)(ae.Z,{monospace:!0,onChange:function(e){e.preventDefault(),fe((function(n){return Me(Me({},n),{},{name:e.target.value})}))},placeholder:"Name this trigger",value:_e},"trigger_name_input_api")]]}),(0,J.jsxs)(O.Z,{mb:2,mt:5,px:A.cd,children:[(0,J.jsx)(v.Z,{children:"Endpoint"}),(0,J.jsxs)(k.ZP,{muted:!0,children:["Make a ",(0,J.jsx)(k.ZP,{bold:!0,inline:!0,monospace:!0,children:"POST"})," request to the following endpoint:"]}),(0,J.jsx)(O.Z,{mt:A.Mq,children:(0,J.jsx)(f.Z,{copiedText:e,linkText:e,monospace:!0,withCopyIcon:!0})})]}),(0,J.jsxs)(O.Z,{mb:2,mt:5,px:A.cd,children:[(0,J.jsx)(v.Z,{children:"Payload"}),(0,J.jsx)(k.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,J.jsx)(O.Z,{mt:A.Mq,children:(0,J.jsx)(f.Z,{copiedText:'{\n "pipeline_run": {\n "variables": {\n "key1": "value1",\n "key2": "value2"\n }\n }\n}\n',withCopyIcon:!0,children:(0,J.jsx)(ce.Z,{language:"json",small:!0,source:'\n {\n "pipeline_run": {\n "variables": {\n "key1": "value1",\n "key2": "value2"\n }\n }\n }\n'})})})]}),(0,J.jsxs)(O.Z,{mb:2,mt:5,px:A.cd,children:[(0,J.jsx)(v.Z,{children:"Sample cURL command"}),(0,J.jsx)(O.Z,{mt:A.Mq,children:(0,J.jsx)(ce.Z,{language:"bash",small:!0,source:"\n curl -X POST ".concat(e,' \\\n --header \'Content-Type: application/json\' \\\n --data \'\n {\n "pipeline_run": {\n "variables": {\n "key1": "value1",\n "key2": "value2"\n }\n }\n }\'\n')})})]})]})}),[_e,o]),vn=!we||y.Xm.TIME===we&&!(I&&We||!I&&We&&Oe)||y.Xm.EVENT===we&&(!(null!==T&&void 0!==T&&T.length)||!T.every((function(e){var n=e.event_type,t=e.name;return n&&t}))),gn=(0,u.useMemo)((function(){var e;return(null===r||void 0===r||null===(e=r.blocks)||void 0===e?void 0:e.filter((function(e){var n=e.type;return M.tf.DBT===n})))||[]}),[r]),jn=(0,u.useMemo)((function(){return(0,J.jsxs)(O.Z,{p:A.cd,children:[(0,J.jsxs)(O.Z,{mb:A.HN,children:[(0,J.jsx)(v.Z,{children:"Pipeline run settings"}),(0,J.jsx)(O.Z,{mt:A.Mq,children:(0,J.jsx)(m.ZP,{alignItems:"center",children:(0,J.jsx)(oe.Z,{checked:null===Q||void 0===Q?void 0:Q.allow_blocks_to_fail,label:"Keep running pipeline even if blocks fail",onClick:function(){return $((function(e){return Me(Me({},e),{},{allow_blocks_to_fail:!(null!==Q&&void 0!==Q&&Q.allow_blocks_to_fail)})}))}})})}),y.Xm.TIME===we&&(0,J.jsx)(O.Z,{mt:A.Mq,children:(0,J.jsx)(m.ZP,{alignItems:"center",children:(0,J.jsx)(oe.Z,{checked:null===Q||void 0===Q?void 0:Q.skip_if_previous_running,label:"Skip run if previous run still in progress",onClick:function(){return $((function(e){return Me(Me({},e),{},{skip_if_previous_running:!(null!==Q&&void 0!==Q&&Q.skip_if_previous_running)})}))}})})}),(0,J.jsxs)(O.Z,{mt:A.Mq,children:[(0,J.jsxs)(m.ZP,{alignItems:"center",children:[(0,J.jsx)(O.Z,{mr:2,children:(0,J.jsx)(Ce.Z,{checked:V,onCheck:function(e){Y(e),e||fe((function(e){return Me(Me({},e),{},{slaAmount:0})}))}})}),(0,J.jsx)(k.ZP,{default:!0,monospace:!0,children:"Configure trigger SLA"})]}),V&&(0,J.jsx)(S.Z,{columnFlex:[null,1],rows:[[(0,J.jsxs)(m.ZP,{alignItems:"center",children:[(0,J.jsx)(N.aw,{default:!0,size:1.5*A.iI}),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(k.ZP,{default:!0,children:"SLA"})]},"sla_detail"),(0,J.jsxs)(m.ZP,{children:[(0,J.jsx)(me.Z,{flex:1,children:(0,J.jsx)(ae.Z,{fullWidth:!0,monospace:!0,noBorder:!0,onChange:function(e){e.preventDefault(),fe((function(n){return Me(Me({},n),{},{slaAmount:e.target.value})}))},placeholder:"Time",value:null===pe||void 0===pe?void 0:pe.slaAmount})}),(0,J.jsx)(me.Z,{flex:1,children:(0,J.jsx)(_.Z,{fullWidth:!0,monospace:!0,noBorder:!0,onChange:function(e){e.preventDefault(),fe((function(n){return Me(Me({},n),{},{slaUnit:e.target.value})}))},placeholder:"Select time unit",small:!0,value:null===pe||void 0===pe?void 0:pe.slaUnit,children:Object.keys(W.tL).map((function(e){return(0,J.jsx)("option",{value:e,children:"".concat(e,"(s)")},e)}))})})]},"sla_input_detail")]]})]})]}),(0,J.jsxs)(O.Z,{mb:A.HN,children:[(0,J.jsx)(v.Z,{children:"Runtime variables"}),!(0,X.Qr)(ye)&&(0,J.jsxs)(O.Z,{mt:A.Mq,children:[(0,J.jsxs)(m.ZP,{alignItems:"center",children:[(0,J.jsx)(O.Z,{mr:2,children:(0,J.jsx)(Ce.Z,{checked:z,onCheck:q})}),(0,J.jsx)(k.ZP,{monospace:!0,muted:!0,children:"Overwrite global variables"})]}),z&&se&&Object.entries(se).length>0&&(0,J.jsx)(O.Z,{mt:1,children:(0,J.jsx)(S.Z,{columnFlex:[null,1],columns:[{uuid:"Variable"},{uuid:"Value"}],rows:Object.entries(se).reduce((function(e,n){var t=(0,i.Z)(n,2),r=t[0],o=t[1];return Z.sZ===r?e:e.concat([[(0,J.jsx)(k.ZP,{default:!0,monospace:!0,children:r},"variable_".concat(r)),(0,J.jsx)(ae.Z,{borderless:!0,monospace:!0,onChange:function(e){e.preventDefault(),ue((function(n){return Me(Me({},n),{},(0,l.Z)({},r,e.target.value))}))},paddingHorizontal:0,placeholder:"Variable value",value:o},"variable_uuid_input_".concat(r))]])}),[])})})]})]}),(null===gn||void 0===gn?void 0:gn.length)>=1&&(0,J.jsx)(O.Z,{mb:A.HN,children:(0,J.jsx)(he,{blocks:gn,updateVariables:ue,variables:Me(Me({},rn),se)})})]})}),[gn,V,ye,z,se,pe,we,rn,Y,q,ue,Q]),xn=E.ZP.tags.list().data,bn=(0,u.useMemo)((function(){return((null===xn||void 0===xn?void 0:xn.tags)||[]).filter((function(e){var n=e.uuid;return!(null!==Re&&void 0!==Re&&Re.includes(n))}))}),[xn,Re]);return(0,J.jsx)(J.Fragment,{children:(0,J.jsxs)(x.Z,{after:jn,breadcrumbs:[{label:function(){return"Triggers"},linkProps:{as:"/pipelines/".concat(b,"/triggers"),href:"/pipelines/[pipeline]/triggers"}},{label:function(){return null===o||void 0===o?void 0:o.name},linkProps:{as:"/pipelines/".concat(b,"/triggers/").concat(w),href:"/pipelines/[pipeline]/triggers/[...slug]"}}],errors:n,pageName:U.M.TRIGGERS,pipeline:r,setErrors:c,subheader:(0,J.jsxs)(m.ZP,{alignItems:"center",children:[(0,J.jsx)(p.Z,{disabled:vn,loading:tn,onClick:un,outline:!0,primary:!0,children:"Save changes"}),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(p.Z,{linkProps:{as:"/pipelines/".concat(b,"/triggers/").concat(w),href:"/pipelines/[pipeline]/triggers/[...slug]"},noHoverUnderline:!0,outline:!0,sameColorAsText:!0,children:"Cancel"})]}),title:function(){return"Edit ".concat(null===o||void 0===o?void 0:o.name)},uuid:"triggers/edit",children:[(0,J.jsxs)(O.Z,{p:A.cd,children:[(0,J.jsxs)(O.Z,{mb:2,children:[(0,J.jsx)(v.Z,{children:"Trigger type"}),(0,J.jsx)(k.ZP,{muted:!0,children:"How would you like this pipeline to be triggered?"})]}),(0,J.jsx)(m.ZP,{children:Ne(I).map((function(e){var n=e.label,t=e.description,r=e.uuid,i=we===r,o=we&&!i;return(0,J.jsx)(p.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){y.Xm.EVENT!==r||null!==T&&void 0!==T&&T.length||D([{}]),fe((function(e){return Me(Me({},e),{},{schedule_type:r})}))},children:(0,J.jsx)(Ee.U,{selected:i,children:(0,J.jsxs)(m.ZP,{alignItems:"center",children:[(0,J.jsx)(me.Z,{children:(0,J.jsx)("input",{checked:i,type:"radio"})}),(0,J.jsx)(O.Z,{mr:A.cd}),(0,J.jsxs)(me.Z,{alignItems:"flex-start",flexDirection:"column",children:[(0,J.jsx)(v.Z,{bold:!0,default:!i&&!o,level:5,muted:!i&&o,children:n()}),(0,J.jsx)(k.ZP,{default:!i&&!o,leftAligned:!0,muted:o,children:t()})]})]})})},r)}))})]}),(0,J.jsxs)(O.Z,{mt:A.HN,children:[y.Xm.TIME===we&&pn,y.Xm.EVENT===we&&hn,y.Xm.API===we&&mn]}),(0,J.jsxs)(O.Z,{mt:A.HN,px:A.cd,children:[(0,J.jsxs)(O.Z,{mb:2,children:[(0,J.jsx)(v.Z,{children:"Tags"}),(0,J.jsx)(k.ZP,{muted:!0,children:"Add or remove tags from this trigger."})]}),(0,J.jsx)(ke.Z,{removeTag:function(e){fe((function(n){return Me(Me({},n),{},{tags:null===Re||void 0===Re?void 0:Re.filter((function(n){return n!==e.uuid}))})}))},selectTag:function(e){fe((function(n){return Me(Me({},n),{},{tags:(0,R.$C)(e.uuid,Re,(function(n){return n===e.uuid}))})}))},selectedTags:null===Re||void 0===Re?void 0:Re.map((function(e){return{uuid:e}})),tags:bn,uuid:"TagsAutocompleteInputField-trigger-".concat(w)})]})]})})},Ue=t(41788),Re=t(70543);function He(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 Le(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?He(Object(t),!0).forEach((function(n){(0,l.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):He(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function Fe(e){var n=e.pipelineScheduleId,t=e.pipelineUUID,r=e.subpath,i=Re.b7===r,o=(0,u.useState)(null),l=o[0],c=o[1],s=E.ZP.variables.pipelines.list(t,{},{revalidateOnFocus:!1}).data,a=null===s||void 0===s?void 0:s.variables,d={};i&&(d._format="with_runtime_average");var p=E.ZP.pipeline_schedules.detail(n,d),f=p.data,h=p.mutate,m=null===f||void 0===f?void 0:f.pipeline_schedule,v=E.ZP.pipelines.detail(t,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,g=Le(Le({},null===v||void 0===v?void 0:v.pipeline),{},{uuid:t});return i?(0,J.jsx)(Ae,{errors:l,fetchPipelineSchedule:h,pipeline:g,pipelineSchedule:m,setErrors:c,variables:a}):(0,J.jsx)($,{errors:l,fetchPipelineSchedule:h,pipeline:g,pipelineSchedule:m,setErrors:c,variables:a})}Fe.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 We=(0,Ue.Z)(Fe)},95488:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/triggers/[...slug]",function(){return t(70422)}])}},function(e){e.O(0,[844,9902,426,1774,8792,7849,4495,1424,1005,7815,6422,547,8952,7496,8190,9774,2888,179],(function(){return n=95488,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
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,s,c,u,a=!1;n||(n={}),t=n.debug||!1;try{if(l=r(),s=document.createRange(),c=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),s.selectNodeContents(u),c.addRange(s),!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{c&&("function"==typeof c.removeRange?c.removeRange(s):c.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=s(t(82684)),o=s(t(90659)),l=["text","onCopy","options","children"];function s(e){return e&&e.__esModule?e:{default:e}}function c(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?c(Object(t),!0).forEach((function(n){j(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c(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=g(e);if(n){var i=g(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 v(e)}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(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)}(c,e);var n,t,r,s=h(c);function c(){var e;d(this,c);for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];return j(v(e=s.call.apply(s,[this].concat(t))),"onClick",(function(n){var t=e.props,r=t.text,l=t.onCopy,s=t.children,c=t.options,u=i.default.Children.only(s),a=(0,o.default)(r,c);l&&l(r,a),u&&u.props&&"function"===typeof u.props.onClick&&u.props.onClick(n)})),e}return n=c,(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}),c}(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()}}},70543:function(e,n,t){"use strict";t.d(n,{IY:function(){return l},Jf:function(){return o},LR:function(){return i},NR:function(){return s},b7:function(){return r}});var r="edit",i="[ERR_BLOCK_EXISTS]",o={uuid:"All files"},l={uuid:"Files in pipeline"},s=[o,l]},2850:function(e,n,t){"use strict";t.d(n,{M:function(){return l},W:function(){return o}});var r=t(38626),i=t(3055),o=34*t(49125).iI,l=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);"],i.Mz)},56681:function(e,n,t){"use strict";t.d(n,{G7:function(){return y},ZP:function(){return P},u$:function(){return x}});var r=t(75582),i=t(82394),o=t(26304),l=t(32316),s=t(22673),c=t(48952),u=t(86673),a=t(19711),d=t(87815),p=t(49125),f=t(19395),h=t(7715),m=t(28598),v=["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 j(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 x=76,b={uuid:"Run details"},Z={uuid:"Dependency tree"},y=[Z,b];function P(e){var n=e.height,t=e.heightOffset,i=e.pipeline,g=e.selectedRun,P=e.selectedTab,_=e.setSelectedTab,O=j({},(0,o.Z)(e,v));g?O.blockStatus=(0,f.IJ)(null===g||void 0===g?void 0:g.block_runs):O.noStatus=!0;var w=(0,h.Kn)(null===g||void 0===g?void 0:g.variables)?j({},null===g||void 0===g?void 0:g.variables):(null===g||void 0===g?void 0:g.variables)||{},S=null===g||void 0===g?void 0:g.event_variables;if(S&&(0,h.Kn)(S)&&!(0,h.Qr)(S))if((0,h.Kn)(w)&&w.hasOwnProperty("event")){var I=(0,h.Kn)(w.event)?w.event:{};w.event=j(j({},I),S)}else w.event=j({},S);var k=[];w&&JSON.stringify(w,null,2).split("\n").forEach((function(e){k.push(" ".concat(e))}));var C=g&&[["Run ID",null===g||void 0===g?void 0:g.id],["Variables",(0,m.jsx)(s.Z,{language:"json",small:!0,source:k.join("\n")},"variable_value")]],E=g&&(0,m.jsx)(u.Z,{pb:p.cd,px:p.cd,children:(0,m.jsx)(d.Z,{alignTop:!0,columnFlex:[null,1],columnMaxWidth:function(e){return 1===e?"100px":null},rows:C.map((function(e,n){var t=(0,r.Z)(e,2),i=t[0],o=t[1];return[(0,m.jsx)(a.ZP,{monospace:!0,muted:!0,children:i},"key_".concat(n)),(0,m.jsx)(a.ZP,{monospace:!0,textOverflow:!0,children:o},"val_".concat(n))]})),uuid:"LogDetail"})}),T=P&&_;return(0,m.jsxs)(m.Fragment,{children:[T&&(0,m.jsx)(u.Z,{py:p.cd,children:(0,m.jsx)(l.Z,{onClickTab:_,selectedTabUUID:null===P||void 0===P?void 0:P.uuid,tabs:y})}),(!T||Z.uuid===(null===P||void 0===P?void 0:P.uuid))&&(0,m.jsx)(c.Z,j(j({},O),{},{height:n,heightOffset:(t||0)+(T?x:0),pipeline:i})),b.uuid===(null===P||void 0===P?void 0:P.uuid)&&E]})}},58122:function(e,n,t){"use strict";t.d(n,{FS:function(){return c},JZ:function(){return a},e7:function(){return d},wx:function(){return u}});var r=t(75582),i=t(82394),o=t(93348);function l(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?l(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):l(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function c(e){return"string"===typeof e?e:JSON.stringify(e)}function u(e,n){var t,r;return null===e||void 0===e||null===(t=e.find((function(e){var t=e.block;return n(t)})))||void 0===t||null===(r=t.variables)||void 0===r?void 0:r.map((function(e){var n=e.value;return s(s({},e),{},{value:c(n)})}))}function a(e,n){return n===o.Xm.TIME?e.push({uuid:"execution_date",value:"<run datetime>"}):n===o.Xm.EVENT&&e.push({uuid:"event",value:"<trigger event>"}),e}function d(e){return e?Object.entries(e).reduce((function(e,n){var t=(0,r.Z)(n,2),o=t[0],l=t[1],c=l;try{c=JSON.parse(l)}catch(u){}return s(s({},e),{},(0,i.Z)({},o,c))}),{}):e}},18025:function(e,n,t){"use strict";t.d(n,{J:function(){return c},U:function(){return s}});var r=t(38626),i=t(23831),o=t(73942),l=t(49125),s=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 ")})),c=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 ")}))},51099:function(e,n,t){"use strict";t.d(n,{Q:function(){return a}});t(82684);var r=t(60328),i=t(67971),o=t(86673),l=t(22341),s=t(73899),c=t(49125),u=t(28598),a=22;n.Z=function(e){var n=e.page,t=e.maxPages,a=e.onUpdate,d=e.totalPages,p=[],f=t;if(f>d)p=Array.from({length:d},(function(e,n){return n}));else{var h=Math.floor(f/2),m=n-h;n+h>=d?(m=d-f+2,f-=2):n-h<=0?(m=0,f-=2):(f-=4,m=n-Math.floor(f/2)),p=Array.from({length:f},(function(e,n){return n+m}))}return(0,u.jsx)(u.Fragment,{children:d>0&&(0,u.jsxs)(i.ZP,{alignItems:"center",children:[(0,u.jsx)(r.Z,{disabled:0===n,onClick:function(){return a(n-1)},children:(0,u.jsx)(l.Hd,{size:1.5*c.iI,stroke:"#AEAEAE"})}),!p.includes(0)&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(o.Z,{ml:1,children:(0,u.jsx)(r.Z,{onClick:function(){return a(0)},borderLess:!0,noBackground:!0,children:1})},0),!p.includes(1)&&(0,u.jsx)(o.Z,{ml:1,children:(0,u.jsx)(r.Z,{notClickable:!0,noBackground:!0,noPadding:!0,children:"..."})},0)]}),p.map((function(e){return(0,u.jsx)(o.Z,{ml:1,children:(0,u.jsx)(r.Z,{onClick:function(){e!==n&&a(e)},notClickable:e===n,backgroundColor:e===n&&s.a$,borderLess:!0,noBackground:!0,children:e+1})},e)})),!p.includes(d-1)&&(0,u.jsxs)(u.Fragment,{children:[!p.includes(d-2)&&(0,u.jsx)(o.Z,{ml:1,children:(0,u.jsx)(r.Z,{notClickable:!0,noBackground:!0,noPadding:!0,children:"..."})},0),(0,u.jsx)(o.Z,{ml:1,children:(0,u.jsx)(r.Z,{onClick:function(){return a(d-1)},borderLess:!0,noBackground:!0,children:d})},d-1)]}),(0,u.jsx)(o.Z,{ml:1}),(0,u.jsx)(r.Z,{disabled:n===d-1,onClick:function(){return a(n+1)},children:(0,u.jsx)(l.Kw,{size:1.5*c.iI,stroke:"#AEAEAE"})})]})})}},52769:function(e,n,t){"use strict";t.d(n,{C:function(){return r}});var r="global"},2713:function(e,n,t){"use strict";var r=t(82394),i=t(44495),o=t(67971),l=t(55378),s=t(86673),c=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)(s.Z,{mb:2}),(0,p.jsxs)(o.ZP,{alignItems:"center",children:[(0,p.jsx)(c.ZP,{default:!0,large:!0,children:"Time (UTC):"}),(0,p.jsx)(s.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)(s.Z,{px:1,children:(0,p.jsx)(c.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))}))})]})]})}},22673:function(e,n,t){"use strict";var r=t(82684),i=t(68792),o=t(31811),l=t(38626),s=t(65292),c=t(23831),u=t(2005),a=t(49125),d=t(28598);n.Z=function(e){var n=e.language,t=e.maxWidth,p=e.showLineNumbers,f=e.small,h=e.source,m=e.wrapLines,v=(0,r.useContext)(l.ThemeContext);function g(e){var r=e.value;return(0,d.jsx)(o.Z,{customStyle:{backgroundColor:(v.background||c.Z.background).popup,border:"none",borderRadius:"none",boxShadow:"none",fontFamily:u.Vp,fontSize:f?12:14,marginBottom:0,marginTop:0,maxWidth:t,paddingBottom:2*a.iI,paddingTop:2*a.iI},language:n,lineNumberStyle:{color:(v.content||c.Z.content).muted},showLineNumbers:p,style:s._4,useInlineStyles:!0,wrapLines:m,children:r})}return(0,d.jsx)(i.D,{components:{code:function(e){var n=e.children;return(0,d.jsx)(g,{value:n})}},children:h})}},65730:function(e,n,t){"use strict";var r,i=t(82394),o=(t(82684),t(64866)),l=t(21764),s=t(67971),c=t(10919),u=t(86673),a=t(19711),d=t(46261),p=t(22341),f=t(49125),h=t(28598);function m(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function v(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?m(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}!function(e){e.LEFT="left",e.RIGHT="right"}(r||(r={})),n.Z=function(e){var n,t=e.children,i=e.copiedText,m=e.iconPosition,g=void 0===m?r.LEFT:m,j=e.inverted,x=e.linkProps,b=e.linkText,Z=e.monospace,y=e.muted,P=e.small,_=e.toastMessage,O=e.withCopyIcon;return t?n=(0,h.jsx)("span",{children:t}):O&&(n=(0,h.jsx)(c.Z,v(v({href:"#",inline:!0,muted:y,preventDefault:!0,sameColorAsText:!0,small:P},x),{},{children:(0,h.jsxs)(s.ZP,{alignItems:"center",children:[g===r.LEFT&&(0,h.jsx)(u.Z,{mr:b?1:0,children:(0,h.jsx)(s.ZP,{alignItems:"center",children:(0,h.jsx)(p.CK,{inverted:j,muted:y,size:2*f.iI})})}),b&&(0,h.jsx)(a.ZP,{inverted:j,monospace:Z,muted:y,small:P,children:b}),g===r.RIGHT&&(0,h.jsx)(u.Z,{ml:b?1:0,children:(0,h.jsx)(s.ZP,{alignItems:"center",children:(0,h.jsx)(p.CK,{inverted:j,muted:y})})})]})}))),(0,h.jsx)(d.Z,{block:!0,label:"Copy",size:null,widthFitContent:!0,children:(0,h.jsx)(o.CopyToClipboard,{onCopy:function(){return l.Am.success(_||"Successfully copied to clipboard.",{position:l.Am.POSITION.BOTTOM_RIGHT,toastId:i})},text:i,children:n})})}},32316:function(e,n,t){"use strict";t.d(n,{Z:function(){return v}});var r=t(82684),i=t(60328),o=t(67971),l=t(882),s=t(86673),c=t(19711),u=t(99994),a=t(38626),d=t(49125),p=t(37391),f=a.default.div.withConfig({displayName:"indexstyle__TabsContainerStyle",componentId:"sc-segf7l-0"})(["padding-left:","px;padding-right:","px;"," "," ",""],d.cd*d.iI,d.cd*d.iI,(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.allowScroll&&"\n overflow: auto;\n "}),p.w5),h=t(66653),m=t(28598);var v=function(e){var n=e.allowScroll,t=e.compact,a=e.contained,p=e.noPadding,v=e.onClickTab,g=e.regularSizeText,j=e.selectedTabUUID,x=e.small,b=e.tabs,Z=(0,r.useMemo)((function(){var e=b.length,n=[];return b.forEach((function(r,a){var p=r.Icon,f=r.IconSelected,b=r.label,Z=r.uuid,y=Z===j,P=y&&f||p,_=b?b():Z,O=(0,m.jsxs)(o.ZP,{alignItems:"center",children:[P&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(P,{default:!y,size:2*d.iI}),(0,m.jsx)(s.Z,{mr:1})]}),(0,m.jsx)(c.ZP,{bold:!0,default:!y,noWrapping:!0,small:!g,children:_})]});a>=1&&e>=2&&n.push((0,m.jsx)("div",{style:{marginLeft:1.5*d.iI}},"spacing-".concat(Z))),y?n.push((0,m.jsx)(l.Z,{backgroundGradient:u.yr,backgroundPanel:!0,borderLess:!0,borderWidth:2,compact:t||x,onClick:function(e){(0,h.j)(e),v(r)},paddingUnitsHorizontal:1.75,paddingUnitsVertical:1.25,small:x,children:O},Z)):n.push((0,m.jsx)("div",{style:{padding:2},children:(0,m.jsx)(i.Z,{borderLess:!0,compact:t||x,default:!0,onClick:function(e){(0,h.j)(e),v(r)},outline:!0,small:x,children:O})},"button-tab-".concat(Z)))})),n}),[t,v,j,x,b]),y=(0,m.jsx)(o.ZP,{alignItems:"center",children:Z});return a?y:(0,m.jsx)(f,{allowScroll:n,noPadding:p,children:y})}},70422:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return We}});var r,i=t(75582),o=t(77837),l=t(82394),s=t(38860),c=t.n(s),u=t(82684),a=t(83455),d=t(34376),p=t(60328),f=t(65730),h=t(34744),m=t(67971),v=t(87372),g=t(10919),j=t(51099),x=t(60547),b=t(97496),Z=t(47409),y=t(93348),P=t(52769),_=t(55378),O=t(86673),w=t(54283),S=t(87815),I=t(55264),k=t(19711),C=t(46261),E=t(82531),T=t(56681),D=t(2850),M=t(86422),N=t(22341),A=t(49125),U=t(59920),R=t(24224);!function(e){e.AWS="aws_event"}(r||(r={}));var H=[{label:function(){return"AWS"},uuid:r.AWS}],L=(0,R.HK)(H,(function(e){return e.uuid})),F=t(58122),W=t(19395),z=t(25958),q=t(33766),X=t(7715),B=t(9736),K=t(96510),V=t(66653),Y=t(59e3),J=t(28598);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 Q(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?G(Object(t),!0).forEach((function(n){(0,l.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):G(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var $=function(e){var n=e.errors,t=e.fetchPipelineSchedule,r=e.pipeline,o=e.pipelineSchedule,l=e.setErrors,s=e.variables,c=(0,d.useRouter)(),H=(0,B.Ct)(),G=(r||{}).uuid,$=o||{},ee=$.id,ne=$.event_matchers,te=$.name,re=$.schedule_interval,ie=$.schedule_type,oe=$.settings,le=$.sla,se=$.start_time,ce=$.status,ue=$.tags,ae=$.variables,de=void 0===ae?{}:ae,pe=(0,Y.iV)(),fe={_limit:30,_offset:30*(null!==pe&&void 0!==pe&&pe.page?pe.page:0)};null!==pe&&void 0!==pe&&pe.status&&(fe.status=pe.status),null!==o&&void 0!==o&&o.global_data_product_uuid&&(fe.global_data_product_uuid=null===o||void 0===o?void 0:o.global_data_product_uuid);var he=E.ZP.pipeline_runs.pipeline_schedules.list(ee,fe,{refreshInterval:3e3,revalidateOnFocus:!0}),me=he.data,ve=he.mutate,ge=(0,u.useMemo)((function(){return(null===me||void 0===me?void 0:me.pipeline_runs)||[]}),[me]),je=(0,u.useMemo)((function(){var e;return(null===me||void 0===me||null===(e=me.metadata)||void 0===e?void 0:e.count)||[]}),[me]),xe=(0,u.useState)(null),be=xe[0],Ze=xe[1],ye=(0,u.useMemo)((function(){var e=null!==pe&&void 0!==pe&&pe.page?pe.page:0;return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(b.Z,{fetchPipelineRuns:ve,onClickRow:function(e){return Ze((function(n){var t=ge[e];return(null===n||void 0===n?void 0:n.id)!==t.id?t:null}))},pipelineRuns:ge,selectedRun:be,setErrors:l}),(0,J.jsx)(O.Z,{p:2,children:(0,J.jsx)(j.Z,{maxPages:9,onUpdate:function(e){var n=Number(e),t=Q(Q({},pe),{},{page:n>=0?n:0});c.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(G,"/triggers/").concat(ee,"?").concat((0,Y.uM)(t)))},page:Number(e),totalPages:Math.ceil(je/30)})})]})}),[ve,ge,ee,G,pe,c,be,l,je]),Pe=(0,u.useState)(T.G7[0]),_e=Pe[0],Oe=Pe[1],we=(0,a.Db)((function(e){return E.ZP.pipeline_schedules.useUpdate(e.id)({pipeline_schedule:(0,X.gR)(e,["id"])})}),{onSuccess:function(e){return(0,K.wD)(e,{callback:function(){t()},onErrorCallback:function(e,n){return l({errors:n,response:e})}})}}),Se=(0,i.Z)(we,2),Ie=Se[0],ke=Se[1].isLoading,Ce=E.ZP.pipeline_triggers.pipelines.list(G),Ee=Ce.data,Te=Ce.mutate,De=(0,u.useMemo)((function(){return(0,R.HK)((null===Ee||void 0===Ee?void 0:Ee.pipeline_triggers)||[],(function(e){return e.name}))}),[Ee]),Me=(0,u.useMemo)((function(){return!(null===De||void 0===De||!De[null===o||void 0===o?void 0:o.name])}),[o,De]),Ne=(0,a.Db)(E.ZP.pipeline_triggers.pipelines.useCreate(G),{onSuccess:function(e){return(0,K.wD)(e,{callback:function(){Te()},onErrorCallback:function(e,n){return l({errors:n,response:e})}})}}),Ae=(0,i.Z)(Ne,2),Ue=Ae[0],Re=Ae[1].isLoading,He=(0,u.useMemo)((function(){return y.fq.ACTIVE===ce}),[ce]),Le=(0,u.useMemo)((function(){var e,n,t={default:!0,size:1.5*A.iI},r=[[(0,J.jsxs)(m.ZP,{alignItems:"center",children:[(0,J.jsx)(N.VW,Q({},t)),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(k.ZP,{default:!0,children:"Trigger type"})]},"trigger_type_label"),(0,J.jsx)(k.ZP,{monospace:!0,children:null===(e=y.Z4[ie])||void 0===e?void 0:e.call(y.Z4)},"trigger_type")],[(0,J.jsxs)(m.ZP,{alignItems:"center",children:[(0,J.jsx)(N.rs,Q({},t)),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(k.ZP,{default:!0,children:"Status"})]},"trigger_status_label"),(0,J.jsx)(k.ZP,{danger:!He,monospace:!0,success:He,children:ce},"trigger_status")]];if(le){var i=(0,W.gU)(le),l=i.time,s=i.unit,c=1===l?s:"".concat(s,"s");r.push([(0,J.jsxs)(m.ZP,{alignItems:"center",children:[(0,J.jsx)(N.kI,Q({},t)),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(k.ZP,{default:!0,children:"SLA"})]},"trigger_sla_label"),(0,J.jsx)(k.ZP,{monospace:!0,children:"".concat(l," ").concat(c)},"trigger_sla")])}if(re&&r.push([(0,J.jsxs)(m.ZP,{alignItems:"center",children:[(0,J.jsx)(N.Pf,Q({},t)),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(k.ZP,{default:!0,children:"Frequency"})]},"trigger_frequency_label"),(0,J.jsx)(k.ZP,{monospace:!0,children:re.replace("@","")},"trigger_frequency")]),se&&r.push([(0,J.jsxs)(m.ZP,{alignItems:"center",children:[(0,J.jsx)(N.aw,Q({},t)),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(k.ZP,{default:!0,children:"Start date"})]},"trigger_start_date_label"),(0,J.jsx)(k.ZP,{monospace:!0,children:se},"trigger_start_date")]),y.Xm.API===ie){var u=(0,W.M8)(o);r.push([(0,J.jsxs)(m.ZP,{alignItems:"center",children:[(0,J.jsx)(N.Ae,Q({},t)),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(k.ZP,{default:!0,children:"API endpoint"})]},"trigger_api_endpoint_label"),(0,J.jsx)(f.Z,{copiedText:u,children:(0,J.jsx)(k.ZP,{monospace:!0,small:!0,children:u})},"trigger_api_endpoint")])}null!==oe&&void 0!==oe&&oe.skip_if_previous_running&&r.push([(0,J.jsxs)(m.ZP,{alignItems:"center",children:[(0,J.jsx)(C.Z,{default:!0,label:"Skip current run if any previous runs are still in progress",size:1.5*A.iI,widthFitContent:!0}),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(k.ZP,{default:!0,children:"Skip if running"})]},"trigger_skip_if_running"),(0,J.jsx)(k.ZP,{monospace:!0,children:null===(n=oe.skip_if_previous_running)||void 0===n?void 0:n.toString()},"trigger_skip_if_running_label")]);return null!==oe&&void 0!==oe&&oe.allow_blocks_to_fail&&r.push([(0,J.jsxs)(m.ZP,{alignItems:"center",children:[(0,J.jsx)(C.Z,{default:!0,label:"Trigger runs will continue running blocks if other unrelated blocks fail",size:1.5*A.iI,widthFitContent:!0}),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(k.ZP,{default:!0,children:"Allow blocks to fail"})]},"trigger_allow_blocks_to_fail"),(0,J.jsx)(k.ZP,{monospace:!0,children:oe.allow_blocks_to_fail.toString()},"trigger_allow_blocks_to_fail_label")]),(0,J.jsx)(S.Z,{columnFlex:[null,1],rows:r})}),[He,o,re,ie,oe,le,se,ce]),Fe=(0,u.useMemo)((function(){return de||{}}),[de]),We=(0,u.useMemo)((function(){var e,n=[];return(0,X.Qr)(Fe)?n=(0,F.wx)(s,(function(e){return e.uuid===P.C})):Object.entries(Fe).forEach((function(e){var t=(0,i.Z)(e,2),r=t[0],o=t[1];Z.sZ!==r&&n.push({uuid:r,value:(0,F.FS)(o)})})),"undefined"!==typeof(n=(0,F.JZ)(n||[],ie))&&null!==(e=n)&&void 0!==e&&e.length?(0,J.jsx)(S.Z,{columnFlex:[null,1],rows:n.map((function(e){var n=e.uuid,t=e.value;return[(0,J.jsx)(k.ZP,{default:!0,monospace:!0,children:n},"settings_variable_label_".concat(n)),(0,J.jsx)(k.ZP,{monospace:!0,children:t},"settings_variable_".concat(n))]}))}):null}),[ie,Fe,s]),ze=(0,u.useMemo)((function(){var e,n,t=[],i=null===Fe||void 0===Fe||null===(e=Fe[Z.sZ])||void 0===e?void 0:e.blocks;return null===r||void 0===r||null===(n=r.blocks)||void 0===n||n.forEach((function(e){var n=e.type,r=e.uuid;if(M.tf.DBT===n){var o,l=(null===i||void 0===i||null===(o=i[r])||void 0===o?void 0:o.configuration)||{},s=l.flags,c=l.prefix,u=l.suffix,a=(0,z.IU)(e).name;(s||c||u)&&t.push({flags:s,prefix:c,suffix:u,uuid:a})}})),"undefined"!==typeof t&&null!==t&&void 0!==t&&t.length?(0,J.jsx)(S.Z,{columnFlex:[1,null],rows:t.map((function(e){var n=e.flags,t=e.prefix,r=e.suffix,i=e.uuid;return[(0,J.jsxs)(k.ZP,{monospace:!0,small:!0,children:[t&&(0,J.jsx)(k.ZP,{inline:!0,monospace:!0,muted:!0,small:!0,children:t}),i,r&&(0,J.jsx)(k.ZP,{inline:!0,monospace:!0,muted:!0,small:!0,children:r})]},"settings_variable_label_".concat(i)),(0,J.jsx)(k.ZP,{monospace:!0,muted:!0,small:!0,children:n&&n.join(", ")},"settings_variable_".concat(i))]}))}):null}),[r,Fe]),qe=(0,u.useMemo)((function(){return(0,J.jsx)(S.Z,{columnFlex:[null,1],columns:[{uuid:"Provider"},{uuid:"Event"}],rows:null===ne||void 0===ne?void 0:ne.map((function(e,n){var t=e.event_type,r=e.name;return[(0,J.jsx)(k.ZP,{default:!0,monospace:!0,children:L[t].label()},"".concat(t,"_").concat(n,"_label")),(0,J.jsx)(k.ZP,{monospace:!0,children:r},"".concat(t,"_").concat(n,"_name"))]}))})}),[ne]);return(0,J.jsxs)(x.Z,{afterHidden:!be,before:(0,J.jsxs)(D.M,{children:[(0,J.jsxs)(O.Z,{mb:A.HN,pt:A.cd,px:A.cd,children:[(0,J.jsxs)(O.Z,{mb:A.cd,children:[y.Xm.TIME===ie&&(0,J.jsx)(N.kO,{size:5*A.iI}),y.Xm.EVENT===ie&&(0,J.jsx)(N.Jp,{size:5*A.iI}),y.Xm.API===ie&&(0,J.jsx)(N.Bf,{size:5*A.iI}),!ie&&(0,J.jsx)(N.VW,{size:5*A.iI})]}),(0,J.jsx)(v.Z,{children:te})]}),(0,J.jsx)(O.Z,{px:A.cd,children:(0,J.jsx)(v.Z,{level:5,children:"Settings"})}),(0,J.jsx)(h.Z,{light:!0,mt:1,short:!0}),Le,(null===ne||void 0===ne?void 0:ne.length)>=1&&(0,J.jsxs)(O.Z,{my:A.HN,children:[(0,J.jsx)(O.Z,{px:A.cd,children:(0,J.jsx)(v.Z,{level:5,children:"Events"})}),(0,J.jsx)(h.Z,{light:!0,mt:1,short:!0}),qe]}),We&&(0,J.jsxs)(O.Z,{my:A.HN,children:[(0,J.jsx)(O.Z,{px:A.cd,children:(0,J.jsx)(v.Z,{level:5,children:"Runtime variables"})}),(0,J.jsx)(h.Z,{light:!0,mt:1,short:!0}),We]}),ze&&(0,J.jsxs)(O.Z,{my:A.HN,children:[(0,J.jsx)(O.Z,{px:A.cd,children:(0,J.jsx)(v.Z,{level:5,children:"dbt runtime settings"})}),(0,J.jsx)(h.Z,{light:!0,mt:1,short:!0}),ze]}),(null===ue||void 0===ue?void 0:ue.length)>=1&&(0,J.jsxs)(O.Z,{my:A.HN,children:[(0,J.jsx)(O.Z,{px:A.cd,children:(0,J.jsx)(v.Z,{level:5,children:"Tags"})}),(0,J.jsx)(h.Z,{light:!0,mt:1,short:!0}),(0,J.jsx)(O.Z,{mt:A.cd,px:A.cd,children:(0,J.jsx)(I.Z,{tags:null===ue||void 0===ue?void 0:ue.map((function(e){return{uuid:e}}))})})]}),(0,J.jsx)(O.Z,{my:A.HN,children:(0,J.jsxs)(O.Z,{px:A.cd,children:[(0,J.jsxs)(v.Z,{level:5,children:[Me&&"Trigger exists in code",!Me&&"Store trigger in code"]}),(0,J.jsx)(O.Z,{mt:1,children:(0,J.jsxs)(k.ZP,{default:!0,children:["Save or update the trigger and its settings in the pipeline\u2019s metadata and version control the trigger using Git. For more information, please read the ",(0,J.jsx)(g.Z,{href:"https://docs.mage.ai/guides/triggers/configure-triggers-in-code",openNewWindow:!0,children:"documentation"}),"."]})}),(0,J.jsxs)(O.Z,{mt:A.cd,children:[!Ee&&(0,J.jsx)(w.Z,{inverted:!0}),Ee&&(0,J.jsxs)(p.Z,{disabled:!(null!==o&&void 0!==o&&o.id),loading:Re,onClick:function(){Ue({pipeline_trigger:{pipeline_schedule_id:null===o||void 0===o?void 0:o.id}})},secondary:!0,children:[Me&&"Update trigger in code",!Me&&"Save trigger in code"]})]})]})})]}),beforeWidth:D.W,breadcrumbs:[{label:function(){return"Triggers"},linkProps:{as:"/pipelines/".concat(G,"/triggers"),href:"/pipelines/[pipeline]/triggers"}},{label:function(){return te},linkProps:{as:"/pipelines/".concat(G,"/triggers/").concat(ee),href:"/pipelines/[pipeline]/triggers/[...slug]"}}],buildSidekick:function(e){return(0,T.ZP)(Q(Q({},e),{},{selectedRun:be,selectedTab:_e,setSelectedTab:Oe}))},errors:n,pageName:U.M.TRIGGERS,pipeline:r,setErrors:l,subheader:(0,J.jsxs)(m.ZP,{alignItems:"center",children:[(0,J.jsx)(p.Z,{beforeIcon:He?(0,J.jsx)(N.dz,{size:2*A.iI}):(0,J.jsx)(N.Py,{inverted:!H,size:2*A.iI}),danger:He&&!H,loading:ke,onClick:function(e){(0,V.j)(e),Ie({id:ee,status:He?y.fq.INACTIVE:y.fq.ACTIVE})},outline:!0,success:!He&&!H,children:He?"Pause trigger":"Start trigger"}),(0,J.jsx)(O.Z,{mr:A.cd}),!H&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(p.Z,{linkProps:{as:"/pipelines/".concat(G,"/triggers/").concat(ee,"/edit"),href:"/pipelines/[pipeline]/triggers/[...slug]"},noHoverUnderline:!0,outline:!0,sameColorAsText:!0,children:"Edit trigger"}),(0,J.jsx)(O.Z,{mr:A.cd})]}),(0,J.jsxs)(_.Z,{compact:!0,defaultColor:!0,onChange:function(e){e.preventDefault(),"all"===e.target.value?c.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(G,"/triggers/").concat(ee)):(0,q.u7)({page:0,status:e.target.value})},paddingRight:4*A.iI,placeholder:"Select run status",value:(null===pe||void 0===pe?void 0:pe.status)||"all",children:[(0,J.jsx)("option",{value:"all",children:"All statuses"},"all_statuses"),Z.IK.map((function(e){return(0,J.jsx)("option",{value:e,children:Z.Do[e]},e)}))]})]}),title:function(){return te},uuid:"triggers/detail",children:[(0,J.jsx)(O.Z,{mt:A.cd,px:A.cd,children:(0,J.jsx)(v.Z,{level:5,children:"Runs for this trigger"})}),(0,J.jsx)(h.Z,{light:!0,mt:A.cd,short:!0}),ye]})},ee=t(21831),ne=t(92083),te=t.n(ne),re=t(21764),ie=t(2713),oe=t(38341),le=t(47999),se=t(22673),ce=t(38626),ue=t(16634),ae=t(82944),de=t(44162);function pe(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 fe(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?pe(Object(t),!0).forEach((function(n){(0,l.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):pe(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var he=function(e){var n=e.blocks,t=e.updateVariables,r=e.variables,i=(0,u.useContext)(ce.ThemeContext),o=(0,u.useCallback)((function(e,n){return t((function(){var t=(null===r||void 0===r?void 0:r.__mage_variables)||{},i=(null===t||void 0===t?void 0:t.blocks)||{},o=i[e]||{},s=(null===o||void 0===o?void 0:o.configuration)||{};return fe(fe({},r),{},{__mage_variables:fe(fe({},t),{},{blocks:fe(fe({},i),{},(0,l.Z)({},e,fe(fe({},o),{},{configuration:fe(fe({},s),n)})))})})}))}),[t,r]);return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(v.Z,{children:"dbt runtime settings"}),(0,J.jsx)(O.Z,{mt:A.Mq,children:(0,J.jsx)(S.Z,{columnFlex:[1,null,null,null],columns:[{uuid:"Block"},{uuid:"Flags"},{uuid:"Prefix"},{uuid:"Suffix"}],compact:!0,rows:null===n||void 0===n?void 0:n.map((function(e){var n,t,l,s=e.type,c=e.uuid,u=(0,z.IU)(e).name,a=(0,de.qn)(s,{blockColor:e.color,theme:i}).accent,d=null===r||void 0===r||null===(n=r.__mage_variables)||void 0===n||null===(t=n.blocks)||void 0===t||null===(l=t[c])||void 0===l?void 0:l.configuration,p=d||{},f=p.prefix,h=p.suffix,v=(null===d||void 0===d?void 0:d.flags)||[],g=!(null===v||void 0===v||!v.includes(z.Dy));return[(0,J.jsx)(C.Z,{block:!0,label:(0,J.jsx)(k.ZP,{monospace:!0,small:!0,children:c}),size:null,widthFitContent:!0,children:(0,J.jsxs)(m.ZP,{alignItems:"center",children:[(0,J.jsx)(ue.Z,{color:a,size:1.5*A.iI,square:!0}),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsxs)(k.ZP,{monospace:!0,small:!0,children:[f&&(0,J.jsx)(k.ZP,{default:!0,inline:!0,monospace:!0,small:!0,children:f}),u,h&&(0,J.jsx)(k.ZP,{default:!0,inline:!0,monospace:!0,small:!0,children:h})]})]})},"uuid-".concat(c)),(0,J.jsx)(m.ZP,{alignItems:"center",children:(0,J.jsx)(oe.Z,{checked:g,label:z.Dy,monospace:!0,onClick:function(){return o(c,{flags:g?(0,R.Od)(v,(function(e){return z.Dy===e})):v.concat(z.Dy)})},small:!0})},"flags-".concat(c)),(0,J.jsx)(ae.Z,{compact:!0,monospace:!0,onChange:function(e){return o(c,{prefix:e.target.value})},placeholder:"N+, +",small:!0,value:f,width:10*A.iI},"prefix-".concat(c)),(0,J.jsx)(ae.Z,{compact:!0,monospace:!0,onChange:function(e){return o(c,{suffix:e.target.value})},placeholder:"+, +N",small:!0,value:h,width:10*A.iI},"suffix-".concat(c))]}))})})]})},me=t(93461),ve=t(26304),ge=t(23831),je=t(2005),xe=t(31012),be=["children","large","lineHeight","ordered"];function Ze(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function ye(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Ze(Object(t),!0).forEach((function(n){(0,l.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ze(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Pe=(0,ce.css)([""," "," "," "," "," "," "," "," "," ",""],(function(e){return!e.muted&&"\n color: ".concat((e.theme.content||ge.Z.content).default,";\n ")}),(function(e){return e.muted&&"\n color: ".concat((e.theme.content||ge.Z.content).muted,";\n ")}),(function(e){return e.inverted&&"\n color: ".concat((e.theme.content||ge.Z.content).inverted,";\n ")}),(function(e){return e.color&&"\n color: ".concat(e.color,";\n ")}),(function(e){return!e.monospace&&"\n font-family: ".concat(je.ry,";\n ")}),(function(e){return e.monospace&&"\n font-family: ".concat(je.Vp,";\n ")}),(function(e){return e.large&&"\n ".concat(xe.x_,"\n ")}),(function(e){return!e.large&&!e.small&&"\n ".concat(xe.i3,"\n ")}),(function(e){return e.small&&"\n ".concat(xe.J5,"\n ")}),(function(e){return e.lineHeight&&"\n line-height: ".concat(e.lineHeight,"px !important;\n ")})),_e=ce.default.ul.withConfig({displayName:"List__UnorderedListStyle",componentId:"sc-1f6yhbi-0"})(["",""],Pe),Oe=ce.default.ol.withConfig({displayName:"List__OrderedListStyle",componentId:"sc-1f6yhbi-1"})(["",""],Pe),we=ce.default.li.withConfig({displayName:"List__ListItemStyle",componentId:"sc-1f6yhbi-2"})(["",""],(function(e){return e.large&&e.marginTop&&"\n margin-top: ".concat(1*A.iI,"px;\n ")}));var Se=function(e){var n=e.children,t=e.large,r=e.lineHeight,i=e.ordered,o=(0,ve.Z)(e,be),l=i?Oe:_e;return(0,J.jsx)(l,ye(ye({large:t,lineHeight:r},o),{},{children:u.Children.map(n,(function(e,n){var r;return(0,J.jsx)(we,ye(ye({large:t,marginTop:n>=1},o),{},{children:u.cloneElement(e)}),(null===(r=e.props)||void 0===r?void 0:r.key)||n)}))}))},Ie=t(98781),ke=t(18190),Ce=t(70902),Ee=t(18025),Te=t(90211);function De(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 Me(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?De(Object(t),!0).forEach((function(n){(0,l.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):De(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Ne=function(e){var n=[{description:function(){return"This pipeline will run continuously on an interval or just once."},label:function(){return"Schedule"},uuid:y.Xm.TIME},{description:function(){return"This pipeline will run when a specific event occurs."},label:function(){return"Event"},uuid:y.Xm.EVENT},{description:function(){return"Run this pipeline when you make an API call."},label:function(){return"API"},uuid:y.Xm.API}];return e?n.slice(0,1):n};var Ae=function(e){var n=e.errors,t=e.fetchPipelineSchedule,r=e.pipeline,o=e.pipelineSchedule,s=e.setErrors,c=e.variables,j=(0,d.useRouter)(),b=null===r||void 0===r?void 0:r.uuid,w=null===o||void 0===o?void 0:o.id,I=(null===r||void 0===r?void 0:r.type)===Ie.qL.STREAMING,C=(0,u.useState)([]),T=C[0],D=C[1],L=(0,u.useState)(!1),z=L[0],q=L[1],B=(0,u.useState)(!1),V=B[0],Y=B[1],G=(0,u.useState)(),Q=G[0],$=G[1],ne=(0,u.useState)({}),ce=ne[0],ue=ne[1],de=(0,u.useState)(null),pe=de[0],fe=de[1],ve=(0,u.useState)(!1),ge=ve[0],je=ve[1],xe=(0,u.useState)(null),be=xe[0],Ze=xe[1],ye=(0,u.useMemo)((function(){return(0,F.wx)(c,(function(e){return e.uuid===P.C}))}),[c]),Pe=pe||{},_e=Pe.name,Oe=Pe.schedule_interval,we=Pe.schedule_type,De=Pe.settings,Ae=void 0===De?{}:De,Ue=(Pe.sla,Pe.start_time),Re=Pe.tags,He=Pe.variables,Le=void 0===He?{}:He;(0,u.useEffect)((function(){Ae&&$(Ae)}),[Ae]);var Fe=(0,u.useState)(null),We=Fe[0],ze=Fe[1],qe=(0,u.useState)({hour:"00",minute:"00"}),Xe=qe[0],Be=qe[1],Ke=(0,u.useState)({dayOfMonth:null,dayOfWeek:null,hour:null,minute:null,second:null}),Ve=Ke[0],Ye=Ke[1],Je=E.ZP.event_rules.detail(y.Xm.EVENT===we?"aws":null).data,Ge=(0,u.useMemo)((function(){var e;return(null===Je||void 0===Je||null===(e=Je.event_rule)||void 0===e?void 0:e.rules)||[]}),[Je]),Qe=(0,u.useMemo)((function(){return(0,R.HK)(Ge,(function(e){return e.name}))}),[Ge]),$e=(0,a.Db)(E.ZP.pipeline_schedules.useUpdate(w),{onSuccess:function(e){return(0,K.wD)(e,{callback:function(){t(),j.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(b,"/triggers/").concat(w))},onErrorCallback:function(e,n){return s({errors:n,response:e})}})}}),en=(0,i.Z)($e,2),nn=en[0],tn=en[1].isLoading,rn=(0,u.useMemo)((function(){return Le||{}}),[Le]);(0,u.useEffect)((function(){if(Ue){var e=Ue.split(" ")[1];ze((0,W.eI)(Ue)),Be({hour:e.substring(0,2),minute:e.substring(3,5)});var n=te()(Ue).utc();Ye({dayOfMonth:n.date(),dayOfWeek:n.day(),hour:n.hours(),minute:n.minutes(),second:n.seconds()})}else{var t=new Date;ze(t),Be({hour:String(t.getUTCHours()).padStart(2,"0"),minute:String(t.getUTCMinutes()).padStart(2,"0")})}}),[Ue]),(0,u.useEffect)((function(){rn&&Object.keys(rn).length>0&&q(!0)}),[rn]),(0,u.useEffect)((function(){ue(z?null===ye||void 0===ye?void 0:ye.reduce((function(e,n){var t=n.uuid,r=n.value;return Me(Me({},e),{},(0,l.Z)({},t,rn[t]||r))}),{}):null)}),[ye,z,rn]);var on=(0,u.useMemo)((function(){return Oe&&!Object.values(y.U5).includes(Oe)}),[Oe]);(0,u.useEffect)((function(){if(o&&!pe){D(o.event_matchers),(null===o||void 0===o?void 0:o.schedule_interval)&&!Object.values(y.U5).includes(null===o||void 0===o?void 0:o.schedule_interval)?(Ze(null===o||void 0===o?void 0:o.schedule_interval),fe(Me(Me({},o),{},{schedule_interval:"custom"}))):fe(I?Me(Me({},o),{},{schedule_interval:y.U5.ONCE}):o);var e=o.sla;if(e){Y(!0);var n=(0,W.gU)(e),t=n.time,r=n.unit;fe((function(e){return Me(Me({},e),{},{slaAmount:t,slaUnit:r})}))}}}),[I,o,pe,Oe]);var ln=(0,u.useMemo)((function(){return!(null===Q||void 0===Q||!Q.landing_time_enabled)}),[Q]),sn=(0,u.useMemo)((function(){return y.Xm.TIME!==we||![y.U5.DAILY,y.U5.HOURLY,y.U5.MONTHLY,y.U5.WEEKLY].includes(Oe)}),[Oe,we]),cn=(0,u.useMemo)((function(){return ln&&!sn}),[sn,ln]),un=(0,u.useCallback)((function(){var e=Me(Me({},(0,X.GL)(pe,["name","schedule_type","tags"])),{},{event_matchers:[],schedule_interval:null,start_time:null,variables:(0,F.e7)(ce)});if(cn){var n=Ve.dayOfMonth,t=Ve.dayOfWeek,r=Ve.hour,i=Ve.minute,l=Ve.second,s=te()("2023-07-01").utc();(0,Te.HW)(n)&&(s=s.date(n)),(0,Te.HW)(t)&&(s=s.day(t)),(0,Te.HW)(r)&&(s=s.hours(r)),(0,Te.HW)(i)&&(s=s.minutes(i)),(0,Te.HW)(l)&&(s=s.seconds(l)),e.schedule_interval=on?be:pe.schedule_interval,e.start_time=s.toISOString()}else y.Xm.EVENT===pe.schedule_type?e.event_matchers=T:(e.schedule_interval=on?be:pe.schedule_interval,e.start_time=We&&null!==Xe&&void 0!==Xe&&Xe.hour&&null!==Xe&&void 0!==Xe&&Xe.minute?"".concat(We.toISOString().split("T")[0]," ").concat(null===Xe||void 0===Xe?void 0:Xe.hour,":").concat(null===Xe||void 0===Xe?void 0:Xe.minute,":00"):null);if(V){var c=null===pe||void 0===pe?void 0:pe.slaAmount,u=null===pe||void 0===pe?void 0:pe.slaUnit;if(!c||isNaN(c)||!u)return void re.Am.error("Please enter a valid SLA",{position:re.Am.POSITION.BOTTOM_RIGHT,toastId:"sla_error"});e.sla=(0,W.vJ)(c,u)}else null!==o&&void 0!==o&&o.sla&&(e.sla=0);e.settings=Q,nn({pipeline_schedule:e})}),[be,We,V,T,on,Ve,o,ce,pe,Q,cn,Xe,nn]),an=(0,u.useMemo)((function(){if(null===o||void 0===o||!o.runtime_average)return"Trigger doesn\u2019t have enough history to estimate runtime.";var e=Number(null===o||void 0===o?void 0:o.runtime_average),n=Math.max(Math.floor(e/3600),0),t=Math.max(Math.floor((e-60*n*60)/60),0),r=Math.max(Math.floor(e-(60*n*60+60*t)),0),i=[];return n>=1&&i.push((0,Te._6)("hour",n,!0)),t>=1&&i.push((0,Te._6)("minute",t,!0)),r>=1&&i.push((0,Te._6)("second",r,!0)),i.join(" ")}),[o]),dn=(0,u.useMemo)((function(){if(!cn)return null;var e=[(0,J.jsxs)(O.Z,{mr:1,children:[(0,J.jsx)(O.Z,{mb:1,children:(0,J.jsx)(k.ZP,{bold:!0,default:!0,small:!0,children:"Minute"})}),(0,J.jsxs)(_.Z,{compact:!0,monospace:!0,onChange:function(e){Ye((function(n){return Me(Me({},n),{},{minute:e.target.value})}))},value:(null===Ve||void 0===Ve?void 0:Ve.minute)||"",children:[(0,J.jsx)("option",{value:""}),(0,R.w6)(60).map((function(e,n){return(0,J.jsx)("option",{value:n,children:n>=10?String(n):"0".concat(n)},n)}))]})]},"Minute"),(0,J.jsxs)(O.Z,{mr:1,children:[(0,J.jsx)(O.Z,{mb:1,children:(0,J.jsx)(k.ZP,{bold:!0,default:!0,small:!0,children:"Second"})}),(0,J.jsxs)(_.Z,{compact:!0,monospace:!0,onChange:function(e){Ye((function(n){return Me(Me({},n),{},{second:e.target.value})}))},value:(null===Ve||void 0===Ve?void 0:Ve.second)||"",children:[(0,J.jsx)("option",{value:""}),(0,R.w6)(60).map((function(e,n){return(0,J.jsx)("option",{value:n,children:n>=10?String(n):"0".concat(n)},n)}))]})]},"Second")];return[y.U5.DAILY,y.U5.MONTHLY,y.U5.WEEKLY].includes(Oe)&&e.unshift((0,J.jsxs)(O.Z,{mr:1,children:[(0,J.jsx)(O.Z,{mb:1,children:(0,J.jsx)(k.ZP,{bold:!0,default:!0,small:!0,children:"Hour"})}),(0,J.jsxs)(_.Z,{compact:!0,monospace:!0,onChange:function(e){Ye((function(n){return Me(Me({},n),{},{hour:e.target.value})}))},value:(null===Ve||void 0===Ve?void 0:Ve.hour)||"",children:[(0,J.jsx)("option",{value:""}),(0,R.w6)(24).map((function(e,n){return(0,J.jsx)("option",{value:n,children:n>=10?String(n):"0".concat(n)},n)}))]})]},"Hour")),y.U5.WEEKLY===Oe?e.unshift((0,J.jsxs)(O.Z,{mr:1,children:[(0,J.jsx)(O.Z,{mb:1,children:(0,J.jsx)(k.ZP,{bold:!0,default:!0,small:!0,children:"Day of the week"})}),(0,J.jsxs)(_.Z,{compact:!0,monospace:!0,onChange:function(e){Ye((function(n){return Me(Me({},n),{},{dayOfWeek:e.target.value})}))},value:(null===Ve||void 0===Ve?void 0:Ve.dayOfWeek)||"",children:[(0,J.jsx)("option",{value:""}),(0,J.jsx)("option",{value:6,children:"Sunday"}),(0,J.jsx)("option",{value:0,children:"Monday"}),(0,J.jsx)("option",{value:1,children:"Tuesday"}),(0,J.jsx)("option",{value:2,children:"Wednesday"}),(0,J.jsx)("option",{value:3,children:"Thursday"}),(0,J.jsx)("option",{value:4,children:"Friday"}),(0,J.jsx)("option",{value:5,children:"Saturday"})]})]},"Day of the week")):y.U5.MONTHLY===Oe&&e.unshift((0,J.jsxs)(O.Z,{mr:1,children:[(0,J.jsx)(O.Z,{mb:1,children:(0,J.jsx)(k.ZP,{bold:!0,default:!0,small:!0,children:"Day of the month"})}),(0,J.jsxs)(_.Z,{compact:!0,monospace:!0,onChange:function(e){Ye((function(n){return Me(Me({},n),{},{dayOfMonth:e.target.value})}))},value:(null===Ve||void 0===Ve?void 0:Ve.dayOfMonth)||"",children:[(0,J.jsx)("option",{value:""}),(0,R.w6)(31).map((function(e,n){return(0,J.jsx)("option",{value:n+1,children:n+1>=10?String(n+1):"0".concat(n+1)},n+1)}))]})]},"Day of the month")),(0,J.jsx)(m.ZP,{children:e})}),[Ve,Oe,cn]),pn=(0,u.useMemo)((function(){var e=[[(0,J.jsxs)(m.ZP,{alignItems:"center",children:[(0,J.jsx)(N.KJ,{default:!0,size:1.5*A.iI}),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(k.ZP,{default:!0,children:"Trigger name"})]},"trigger_name_detail"),(0,J.jsx)(ae.Z,{monospace:!0,onChange:function(e){e.preventDefault(),fe((function(n){return Me(Me({},n),{},{name:e.target.value})}))},placeholder:"Name this trigger",value:_e},"trigger_name_input_detail")],[(0,J.jsxs)(m.ZP,{alignItems:"center",children:[(0,J.jsx)(N.Pf,{default:!0,size:1.5*A.iI}),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(k.ZP,{default:!0,children:"Frequency"})]},"frequency"),(0,J.jsxs)("div",{children:[(0,J.jsxs)(_.Z,{monospace:!0,onChange:function(e){e.preventDefault();var n=e.target.value;fe((function(e){return Me(Me({},e),{},{schedule_interval:n})}))},placeholder:"Choose the frequency to run",value:Oe,children:[Object.values(y.U5).map((function(e){return(0,J.jsx)("option",{value:e,children:e.substring(1)},e)})),(0,J.jsx)("option",{value:"custom",children:"custom"},"custom")]}),(0,J.jsx)(O.Z,{mt:1,p:1,children:(0,J.jsxs)(k.ZP,{muted:!0,small:!0,children:["If you don\u2019t see the frequency option you need, select ",(0,J.jsx)(k.ZP,{inline:!0,monospace:!0,small:!0,children:"custom"})," and enter CRON syntax."]})})]},"frequency_input")]];return e.push([(0,J.jsxs)(m.ZP,{alignItems:"center",children:[(0,J.jsx)(N.rs,{default:!0,size:1.5*A.iI}),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(k.ZP,{default:!0,children:"Enable landing time"})]},"frequency"),(0,J.jsxs)("div",{children:[(0,J.jsx)(Ce.Z,{checked:ln,disabled:sn,onCheck:function(){$((function(e){return Me(Me({},e),{},{landing_time_enabled:!ln})}))}}),(0,J.jsxs)(O.Z,{mt:1,p:1,children:[sn&&(0,J.jsxs)(k.ZP,{muted:!0,small:!0,children:["In order to enable landing time, the trigger\u2019s frequency must be ",(0,J.jsx)(k.ZP,{inline:!0,monospace:!0,small:!0,children:y.U5.HOURLY}),", ",(0,J.jsx)(k.ZP,{inline:!0,monospace:!0,small:!0,children:y.U5.DAILY}),", ",(0,J.jsx)(k.ZP,{inline:!0,monospace:!0,small:!0,children:y.U5.WEEKLY}),", or ",(0,J.jsx)(k.ZP,{inline:!0,monospace:!0,small:!0,children:y.U5.MONTHLY}),"."]}),!sn&&(0,J.jsx)(k.ZP,{muted:!0,small:!0,children:"Instead of starting at a specific time, this trigger will schedule pipeline runs at a time where it will finish by the specified time below."})]})]},"frequency_input")]),cn&&e.push([(0,J.jsxs)(m.ZP,{alignItems:"center",children:[(0,J.jsx)(N.Pf,{default:!0,size:1.5*A.iI}),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(k.ZP,{default:!0,children:"Average runtime"})]},"runtime_average"),(0,J.jsx)(m.ZP,{alignItems:"center",style:{minHeight:"".concat(5.75*A.iI,"px")},children:(0,J.jsx)(k.ZP,{monospace:!0,children:an})},"runtime_average_value")]),e.push([(0,J.jsxs)(m.ZP,{alignItems:"center",children:[(0,J.jsx)(N.aw,{default:!0,size:1.5*A.iI}),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsxs)(k.ZP,{default:!0,children:[cn&&"Pipeline complete by",!cn&&"Start date and time"]})]},"start_time"),cn?dn:(0,J.jsxs)("div",{style:{minHeight:"".concat(5.75*A.iI,"px")},children:[!ge&&(0,J.jsx)(ae.Z,{monospace:!0,onClick:function(){return je((function(e){return!e}))},placeholder:"YYYY-MM-DD HH:MM",value:We?"".concat(We.toISOString().split("T")[0]," ").concat(null===Xe||void 0===Xe?void 0:Xe.hour,":").concat(null===Xe||void 0===Xe?void 0:Xe.minute):""}),(0,J.jsx)("div",{style:{width:"400px"},children:(0,J.jsx)(le.Z,{disableEscape:!0,onClickOutside:function(){return je(!1)},open:ge,style:{position:"relative"},children:(0,J.jsx)(ie.Z,{selectedDate:We,selectedTime:Xe,setSelectedDate:ze,setSelectedTime:Be,topPosition:!0})})})]},"start_time_input")]),I&&e.splice(1,1),on&&e.splice(2,0,[(0,J.jsxs)(m.ZP,{alignItems:"center",children:[(0,J.jsx)(N.EK,{default:!0,size:1.5*A.iI}),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(k.ZP,{default:!0,children:"Cron expression"})]},"cron_expression"),(0,J.jsxs)("div",{children:[(0,J.jsx)(ae.Z,{monospace:!0,onChange:function(e){e.preventDefault(),Ze(e.target.value)},placeholder:"* * * * *",value:be}),(0,J.jsxs)(O.Z,{mt:1,p:1,children:[(0,J.jsxs)(k.ZP,{muted:!0,small:!0,children:["If you want this pipeline to trigger every 1 minute, the CRON syntax is ",(0,J.jsx)(k.ZP,{inline:!0,monospace:!0,small:!0,children:"*/1 * * * *"}),"."]}),(0,J.jsxs)(k.ZP,{muted:!0,small:!0,children:["For more CRON syntax examples, check out this ",(0,J.jsx)(g.Z,{href:"https://crontab.guru/",openNewWindow:!0,small:!0,children:"resource"}),"."]})]})]},"cron_expression_input")]),(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(O.Z,{mb:2,px:A.cd,children:(0,J.jsx)(v.Z,{children:"Settings"})}),(0,J.jsx)(h.Z,{light:!0,short:!0}),(0,J.jsx)(S.Z,{columnFlex:[null,1],rows:e})]})}),[be,We,on,I,sn,ln,dn,_e,an,Oe,ge,cn,Xe]),fn=(0,u.useCallback)((function(e,n){D((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,ee.Z)(t)}))}),[D]),hn=(0,u.useMemo)((function(){return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(O.Z,{mb:A.cd,px:A.cd,children:(0,J.jsx)(v.Z,{children:"Settings"})}),(0,J.jsx)(h.Z,{light:!0,short:!0}),(0,J.jsx)(S.Z,{columnFlex:[null,1],rows:[[(0,J.jsxs)(m.ZP,{alignItems:"center",children:[(0,J.jsx)(N.KJ,{default:!0,size:1.5*A.iI}),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(k.ZP,{default:!0,children:"Trigger name"})]},"trigger_name_event"),(0,J.jsx)(ae.Z,{monospace:!0,onChange:function(e){e.preventDefault(),fe((function(n){return Me(Me({},n),{},{name:e.target.value})}))},placeholder:"Name this trigger",value:_e},"trigger_name_input_event")]]}),(0,J.jsxs)(O.Z,{mb:2,mt:5,px:A.cd,children:[(0,J.jsx)(v.Z,{children:"Events"}),(0,J.jsxs)(k.ZP,{muted:!0,children:["Add 1 or more event that will trigger this pipeline to run.",(0,J.jsx)("br",{}),"If you add more than 1 event, this pipeline will trigger if any of the events are received."]}),(0,J.jsxs)(O.Z,{mt:A.Mq,children:[(0,J.jsx)(k.ZP,{bold:!0,large:!0,children:"AWS events"}),(0,J.jsxs)(k.ZP,{muted:!0,children:["In order to retrieve all the possible AWS events you can trigger your pipeline from,",(0,J.jsx)("br",{}),"you\u2019ll need to set 3 environment variables (",(0,J.jsx)(g.Z,{href:"https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html",openNewWindow:!0,underline:!0,children:"more info here"}),"):"]}),(0,J.jsx)(O.Z,{mt:1,children:(0,J.jsxs)(Se,{monospace:!0,ordered:!0,children:[(0,J.jsx)(k.ZP,{monospace:!0,children:"AWS_REGION_NAME"}),(0,J.jsx)(k.ZP,{monospace:!0,children:"AWS_ACCESS_KEY_ID"}),(0,J.jsx)(k.ZP,{monospace:!0,children:"AWS_SECRET_ACCESS_KEY"})]})})]})]}),(0,J.jsx)(h.Z,{light:!0,short:!0}),(null===T||void 0===T?void 0:T.length)>=1&&(0,J.jsx)(S.Z,{alignTop:!0,columnFlex:[1,1,2,null],columns:[{uuid:"Provider"},{uuid:"Event"},{uuid:"Pattern"},{label:function(){return""},uuid:"delete"}],rows:null===T||void 0===T?void 0:T.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,J.jsx)(_.Z,{monospace:!0,onChange:function(e){return fn(n,{event_type:e.target.value})},placeholder:"Event provider",value:t||"",children:H.map((function(e){var n=e.label,t=e.uuid;return(0,J.jsx)("option",{value:t,children:n()},t)}))},"event-provider-".concat(o)),(0,J.jsx)(_.Z,{monospace:!0,onChange:function(e){var t,r=e.target.value,i=null===(t=Qe[r])||void 0===t?void 0:t.event_pattern;fn(n,{name:r,pattern:i?JSON.parse(i):null})},placeholder:"Event name",value:r,children:Ge.map((function(e){var n=e.name;return(0,J.jsx)("option",{value:n,children:n},n)}))},"event-name-".concat(o)),i&&(0,J.jsx)(se.Z,{language:"json",small:!0,source:l.join("\n")}),(0,J.jsx)(p.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return D((function(e){return(0,R.oM)(e,n)}))},children:(0,J.jsx)(N.rF,{default:!0,size:2*A.iI})},"remove_event")]}))}),(0,J.jsx)(O.Z,{p:A.cd,children:(0,J.jsx)(p.Z,{beforeIcon:(0,J.jsx)(N.mm,{size:2*A.iI}),onClick:function(){return D((function(e){return e.concat({})}))},outline:!0,children:"Add event matcher"})})]})}),[T,Ge,Qe,_e,fn]),mn=(0,u.useMemo)((function(){var e=(0,W.M8)(o);return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(O.Z,{mb:A.cd,px:A.cd,children:(0,J.jsx)(v.Z,{children:"Settings"})}),(0,J.jsx)(h.Z,{light:!0,short:!0}),(0,J.jsx)(S.Z,{columnFlex:[null,1],rows:[[(0,J.jsxs)(m.ZP,{alignItems:"center",children:[(0,J.jsx)(N.KJ,{default:!0,size:1.5*A.iI}),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(k.ZP,{default:!0,children:"Trigger name"})]},"trigger_name_api"),(0,J.jsx)(ae.Z,{monospace:!0,onChange:function(e){e.preventDefault(),fe((function(n){return Me(Me({},n),{},{name:e.target.value})}))},placeholder:"Name this trigger",value:_e},"trigger_name_input_api")]]}),(0,J.jsxs)(O.Z,{mb:2,mt:5,px:A.cd,children:[(0,J.jsx)(v.Z,{children:"Endpoint"}),(0,J.jsxs)(k.ZP,{muted:!0,children:["Make a ",(0,J.jsx)(k.ZP,{bold:!0,inline:!0,monospace:!0,children:"POST"})," request to the following endpoint:"]}),(0,J.jsx)(O.Z,{mt:A.Mq,children:(0,J.jsx)(f.Z,{copiedText:e,linkText:e,monospace:!0,withCopyIcon:!0})})]}),(0,J.jsxs)(O.Z,{mb:2,mt:5,px:A.cd,children:[(0,J.jsx)(v.Z,{children:"Payload"}),(0,J.jsx)(k.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,J.jsx)(O.Z,{mt:A.Mq,children:(0,J.jsx)(f.Z,{copiedText:'{\n "pipeline_run": {\n "variables": {\n "key1": "value1",\n "key2": "value2"\n }\n }\n}\n',withCopyIcon:!0,children:(0,J.jsx)(se.Z,{language:"json",small:!0,source:'\n {\n "pipeline_run": {\n "variables": {\n "key1": "value1",\n "key2": "value2"\n }\n }\n }\n'})})})]}),(0,J.jsxs)(O.Z,{mb:2,mt:5,px:A.cd,children:[(0,J.jsx)(v.Z,{children:"Sample cURL command"}),(0,J.jsx)(O.Z,{mt:A.Mq,children:(0,J.jsx)(se.Z,{language:"bash",small:!0,source:"\n curl -X POST ".concat(e,' \\\n --header \'Content-Type: application/json\' \\\n --data \'\n {\n "pipeline_run": {\n "variables": {\n "key1": "value1",\n "key2": "value2"\n }\n }\n }\'\n')})})]})]})}),[_e,o]),vn=!we||y.Xm.TIME===we&&!(I&&We||!I&&We&&Oe)||y.Xm.EVENT===we&&(!(null!==T&&void 0!==T&&T.length)||!T.every((function(e){var n=e.event_type,t=e.name;return n&&t}))),gn=(0,u.useMemo)((function(){var e;return(null===r||void 0===r||null===(e=r.blocks)||void 0===e?void 0:e.filter((function(e){var n=e.type;return M.tf.DBT===n})))||[]}),[r]),jn=(0,u.useMemo)((function(){return(0,J.jsxs)(O.Z,{p:A.cd,children:[(0,J.jsxs)(O.Z,{mb:A.HN,children:[(0,J.jsx)(v.Z,{children:"Pipeline run settings"}),(0,J.jsx)(O.Z,{mt:A.Mq,children:(0,J.jsx)(m.ZP,{alignItems:"center",children:(0,J.jsx)(oe.Z,{checked:null===Q||void 0===Q?void 0:Q.allow_blocks_to_fail,label:"Keep running pipeline even if blocks fail",onClick:function(){return $((function(e){return Me(Me({},e),{},{allow_blocks_to_fail:!(null!==Q&&void 0!==Q&&Q.allow_blocks_to_fail)})}))}})})}),y.Xm.TIME===we&&(0,J.jsx)(O.Z,{mt:A.Mq,children:(0,J.jsx)(m.ZP,{alignItems:"center",children:(0,J.jsx)(oe.Z,{checked:null===Q||void 0===Q?void 0:Q.skip_if_previous_running,label:"Skip run if previous run still in progress",onClick:function(){return $((function(e){return Me(Me({},e),{},{skip_if_previous_running:!(null!==Q&&void 0!==Q&&Q.skip_if_previous_running)})}))}})})}),(0,J.jsxs)(O.Z,{mt:A.Mq,children:[(0,J.jsxs)(m.ZP,{alignItems:"center",children:[(0,J.jsx)(O.Z,{mr:2,children:(0,J.jsx)(Ce.Z,{checked:V,onCheck:function(e){Y(e),e||fe((function(e){return Me(Me({},e),{},{slaAmount:0})}))}})}),(0,J.jsx)(k.ZP,{default:!0,monospace:!0,children:"Configure trigger SLA"})]}),V&&(0,J.jsx)(S.Z,{columnFlex:[null,1],rows:[[(0,J.jsxs)(m.ZP,{alignItems:"center",children:[(0,J.jsx)(N.aw,{default:!0,size:1.5*A.iI}),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(k.ZP,{default:!0,children:"SLA"})]},"sla_detail"),(0,J.jsxs)(m.ZP,{children:[(0,J.jsx)(me.Z,{flex:1,children:(0,J.jsx)(ae.Z,{fullWidth:!0,monospace:!0,noBorder:!0,onChange:function(e){e.preventDefault(),fe((function(n){return Me(Me({},n),{},{slaAmount:e.target.value})}))},placeholder:"Time",value:null===pe||void 0===pe?void 0:pe.slaAmount})}),(0,J.jsx)(me.Z,{flex:1,children:(0,J.jsx)(_.Z,{fullWidth:!0,monospace:!0,noBorder:!0,onChange:function(e){e.preventDefault(),fe((function(n){return Me(Me({},n),{},{slaUnit:e.target.value})}))},placeholder:"Select time unit",small:!0,value:null===pe||void 0===pe?void 0:pe.slaUnit,children:Object.keys(W.tL).map((function(e){return(0,J.jsx)("option",{value:e,children:"".concat(e,"(s)")},e)}))})})]},"sla_input_detail")]]})]})]}),(0,J.jsxs)(O.Z,{mb:A.HN,children:[(0,J.jsx)(v.Z,{children:"Runtime variables"}),!(0,X.Qr)(ye)&&(0,J.jsxs)(O.Z,{mt:A.Mq,children:[(0,J.jsxs)(m.ZP,{alignItems:"center",children:[(0,J.jsx)(O.Z,{mr:2,children:(0,J.jsx)(Ce.Z,{checked:z,onCheck:q})}),(0,J.jsx)(k.ZP,{monospace:!0,muted:!0,children:"Overwrite global variables"})]}),z&&ce&&Object.entries(ce).length>0&&(0,J.jsx)(O.Z,{mt:1,children:(0,J.jsx)(S.Z,{columnFlex:[null,1],columns:[{uuid:"Variable"},{uuid:"Value"}],rows:Object.entries(ce).reduce((function(e,n){var t=(0,i.Z)(n,2),r=t[0],o=t[1];return Z.sZ===r?e:e.concat([[(0,J.jsx)(k.ZP,{default:!0,monospace:!0,children:r},"variable_".concat(r)),(0,J.jsx)(ae.Z,{borderless:!0,monospace:!0,onChange:function(e){e.preventDefault(),ue((function(n){return Me(Me({},n),{},(0,l.Z)({},r,e.target.value))}))},paddingHorizontal:0,placeholder:"Variable value",value:o},"variable_uuid_input_".concat(r))]])}),[])})})]})]}),(null===gn||void 0===gn?void 0:gn.length)>=1&&(0,J.jsx)(O.Z,{mb:A.HN,children:(0,J.jsx)(he,{blocks:gn,updateVariables:ue,variables:Me(Me({},rn),ce)})})]})}),[gn,V,ye,z,ce,pe,we,rn,Y,q,ue,Q]),xn=E.ZP.tags.list().data,bn=(0,u.useMemo)((function(){return((null===xn||void 0===xn?void 0:xn.tags)||[]).filter((function(e){var n=e.uuid;return!(null!==Re&&void 0!==Re&&Re.includes(n))}))}),[xn,Re]);return(0,J.jsx)(J.Fragment,{children:(0,J.jsxs)(x.Z,{after:jn,breadcrumbs:[{label:function(){return"Triggers"},linkProps:{as:"/pipelines/".concat(b,"/triggers"),href:"/pipelines/[pipeline]/triggers"}},{label:function(){return null===o||void 0===o?void 0:o.name},linkProps:{as:"/pipelines/".concat(b,"/triggers/").concat(w),href:"/pipelines/[pipeline]/triggers/[...slug]"}}],errors:n,pageName:U.M.TRIGGERS,pipeline:r,setErrors:s,subheader:(0,J.jsxs)(m.ZP,{alignItems:"center",children:[(0,J.jsx)(p.Z,{disabled:vn,loading:tn,onClick:un,outline:!0,primary:!0,children:"Save changes"}),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(p.Z,{linkProps:{as:"/pipelines/".concat(b,"/triggers/").concat(w),href:"/pipelines/[pipeline]/triggers/[...slug]"},noHoverUnderline:!0,outline:!0,sameColorAsText:!0,children:"Cancel"})]}),title:function(){return"Edit ".concat(null===o||void 0===o?void 0:o.name)},uuid:"triggers/edit",children:[(0,J.jsxs)(O.Z,{p:A.cd,children:[(0,J.jsxs)(O.Z,{mb:2,children:[(0,J.jsx)(v.Z,{children:"Trigger type"}),(0,J.jsx)(k.ZP,{muted:!0,children:"How would you like this pipeline to be triggered?"})]}),(0,J.jsx)(m.ZP,{children:Ne(I).map((function(e){var n=e.label,t=e.description,r=e.uuid,i=we===r,o=we&&!i;return(0,J.jsx)(p.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){y.Xm.EVENT!==r||null!==T&&void 0!==T&&T.length||D([{}]),fe((function(e){return Me(Me({},e),{},{schedule_type:r})}))},children:(0,J.jsx)(Ee.U,{selected:i,children:(0,J.jsxs)(m.ZP,{alignItems:"center",children:[(0,J.jsx)(me.Z,{children:(0,J.jsx)("input",{checked:i,type:"radio"})}),(0,J.jsx)(O.Z,{mr:A.cd}),(0,J.jsxs)(me.Z,{alignItems:"flex-start",flexDirection:"column",children:[(0,J.jsx)(v.Z,{bold:!0,default:!i&&!o,level:5,muted:!i&&o,children:n()}),(0,J.jsx)(k.ZP,{default:!i&&!o,leftAligned:!0,muted:o,children:t()})]})]})})},r)}))})]}),(0,J.jsxs)(O.Z,{mt:A.HN,children:[y.Xm.TIME===we&&pn,y.Xm.EVENT===we&&hn,y.Xm.API===we&&mn]}),(0,J.jsxs)(O.Z,{mt:A.HN,px:A.cd,children:[(0,J.jsxs)(O.Z,{mb:2,children:[(0,J.jsx)(v.Z,{children:"Tags"}),(0,J.jsx)(k.ZP,{muted:!0,children:"Add or remove tags from this trigger."})]}),(0,J.jsx)(ke.Z,{removeTag:function(e){fe((function(n){return Me(Me({},n),{},{tags:null===Re||void 0===Re?void 0:Re.filter((function(n){return n!==e.uuid}))})}))},selectTag:function(e){fe((function(n){return Me(Me({},n),{},{tags:(0,R.$C)(e.uuid,Re,(function(n){return n===e.uuid}))})}))},selectedTags:null===Re||void 0===Re?void 0:Re.map((function(e){return{uuid:e}})),tags:bn,uuid:"TagsAutocompleteInputField-trigger-".concat(w)})]})]})})},Ue=t(41788),Re=t(70543);function He(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 Le(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?He(Object(t),!0).forEach((function(n){(0,l.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):He(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function Fe(e){var n=e.pipelineScheduleId,t=e.pipelineUUID,r=e.subpath,i=Re.b7===r,o=(0,u.useState)(null),l=o[0],s=o[1],c=E.ZP.variables.pipelines.list(t,{},{revalidateOnFocus:!1}).data,a=null===c||void 0===c?void 0:c.variables,d={};i&&(d._format="with_runtime_average");var p=E.ZP.pipeline_schedules.detail(n,d),f=p.data,h=p.mutate,m=null===f||void 0===f?void 0:f.pipeline_schedule,v=E.ZP.pipelines.detail(t,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,g=Le(Le({},null===v||void 0===v?void 0:v.pipeline),{},{uuid:t});return i?(0,J.jsx)(Ae,{errors:l,fetchPipelineSchedule:h,pipeline:g,pipelineSchedule:m,setErrors:s,variables:a}):(0,J.jsx)($,{errors:l,fetchPipelineSchedule:h,pipeline:g,pipelineSchedule:m,setErrors:s,variables:a})}Fe.getInitialProps=function(){var e=(0,o.Z)(c().mark((function e(n){var t,r,o,l,s,u;return c().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),s=l[0],u=l[1],e.abrupt("return",{pipelineScheduleId:s,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 We=(0,Ue.Z)(Fe)},95488:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/triggers/[...slug]",function(){return t(70422)}])}},function(e){e.O(0,[844,9902,426,1774,8792,7849,4495,1424,1005,7815,6422,547,8952,7496,8190,9774,2888,179],(function(){return n=95488,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
@@ -1 +1 @@
1
- self.__BUILD_MANIFEST=function(s,e,i,a,c,t,n,p,l,u,g,r,f,k,d,b,h,j,o,m,_,w,v,y,I,B,F,A,D,E,L,M,N,S){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":["static/chunks/pages/index-32917acd76697307.js"],"/_error":["static/chunks/pages/_error-235304e5badb19eb.js"],"/files":[s,a,r,v,"static/chunks/5643-1f8a6d8a392fe96b.js",e,i,c,t,f,k,I,"static/chunks/pages/files-2dc2a0dfc0ff620d.js"],"/global-data-products":[s,a,e,i,c,h,A,"static/chunks/pages/global-data-products-2756fe6d9decae4a.js"],"/global-data-products/[...slug]":[s,a,e,i,c,h,A,"static/chunks/pages/global-data-products/[...slug]-6d3d53624debede6.js"],"/manage":[s,a,r,e,i,c,t,f,"static/chunks/pages/manage-6815a3ece7dc1678.js"],"/manage/settings":[s,a,r,"static/chunks/4398-5d5c07021ccd37b8.js",e,i,t,f,"static/chunks/pages/manage/settings-6577159a0af52a78.js"],"/manage/users":[s,e,i,c,"static/chunks/pages/manage/users-ec748f838b7b8fad.js"],"/manage/users/new":[s,e,i,y,"static/chunks/pages/manage/users/new-dd41d718cbb5990c.js"],"/manage/users/[user]":[s,e,i,c,y,"static/chunks/pages/manage/users/[user]-3b502aa6d1a04cad.js"],"/overview":[s,a,p,l,g,r,d,j,o,m,e,i,c,t,u,f,b,k,_,B,D,"static/chunks/pages/overview-7f790238fe70d9ab.js"],"/pipeline-runs":[s,a,e,i,c,h,"static/chunks/pages/pipeline-runs-33c7f2550add0719.js"],"/pipelines":[s,a,p,l,g,r,d,o,e,i,c,t,u,f,b,k,_,B,"static/chunks/pages/pipelines-1169f4eecf752033.js"],"/pipelines/[pipeline]":["static/chunks/pages/pipelines/[pipeline]-ca9457e1a6bced4b.js"],"/pipelines/[pipeline]/backfills":[s,a,e,i,c,n,"static/chunks/pages/pipelines/[pipeline]/backfills-b8b4bed1e8e50068.js"],"/pipelines/[pipeline]/backfills/[...slug]":[s,a,p,l,g,w,F,e,i,c,t,n,u,h,"static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-07e4a3a674e83578.js"],"/pipelines/[pipeline]/edit":[E,s,a,p,l,g,r,d,j,w,o,m,v,L,"static/chunks/2991-d0b13a172f9c1dcd.js",e,i,c,t,u,f,b,k,_,I,M,"static/chunks/pages/pipelines/[pipeline]/edit-54cb4936accdd2d9.js"],"/pipelines/[pipeline]/logs":[s,a,p,d,F,e,i,c,t,n,b,"static/chunks/pages/pipelines/[pipeline]/logs-d331e98ad103b13e.js"],"/pipelines/[pipeline]/monitors":[s,a,j,m,"static/chunks/2834-d2a1c03968995e8e.js",e,i,n,D,"static/chunks/pages/pipelines/[pipeline]/monitors-9fa0c4ce1c921a41.js"],"/pipelines/[pipeline]/monitors/block-runs":[s,a,j,m,"static/chunks/9404-1fb0792716d46efc.js",e,i,t,n,"static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-d87d0c21758a2d7c.js"],"/pipelines/[pipeline]/monitors/block-runtime":[E,s,a,j,m,"static/chunks/9464-84f4879568c00a93.js",e,i,t,n,"static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-68e1b861ef4fc0d7.js"],"/pipelines/[pipeline]/runs":[s,a,p,l,g,w,e,i,c,t,n,u,h,N,"static/chunks/pages/pipelines/[pipeline]/runs-4a2671811a153411.js"],"/pipelines/[pipeline]/runs/[run]":[s,a,p,l,g,d,j,w,L,e,i,c,t,n,u,b,M,N,"static/chunks/pages/pipelines/[pipeline]/runs/[run]-d5ef19ca1f9931de.js"],"/pipelines/[pipeline]/settings":[s,a,e,i,n,S,"static/chunks/pages/pipelines/[pipeline]/settings-8872a6e00280f58c.js"],"/pipelines/[pipeline]/syncs":[s,a,e,i,c,n,"static/chunks/pages/pipelines/[pipeline]/syncs-484581ae34a1c596.js"],"/pipelines/[pipeline]/triggers":[s,a,p,l,e,i,c,t,n,u,"static/chunks/pages/pipelines/[pipeline]/triggers-624a2d7cbe6303b4.js"],"/pipelines/[pipeline]/triggers/[...slug]":[s,a,p,l,g,w,F,e,i,c,t,n,u,h,S,"static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-ce11db27e4af7869.js"],"/settings":["static/chunks/pages/settings-d594a66a568306da.js"],"/settings/account/profile":[s,e,i,y,"static/chunks/pages/settings/account/profile-c3ff06a12baa40a2.js"],"/settings/workspace/preferences":[s,e,i,"static/chunks/pages/settings/workspace/preferences-60b4398d7ae00206.js"],"/settings/workspace/sync-data":[s,e,i,"static/chunks/pages/settings/workspace/sync-data-05b53444f0e7449b.js"],"/settings/workspace/users":[s,e,i,c,y,"static/chunks/pages/settings/workspace/users-89429fea9d64e29d.js"],"/sign-in":[s,e,"static/chunks/pages/sign-in-a5e9561a6c0d2e38.js"],"/templates":[s,a,p,l,g,r,d,o,e,i,c,t,u,f,b,k,_,B,"static/chunks/pages/templates-ce2a29d477a6ce94.js"],"/templates/[...slug]":[s,a,p,l,g,r,d,o,e,i,c,t,u,f,b,k,_,"static/chunks/pages/templates/[...slug]-c21b269750441494.js"],"/terminal":[s,e,i,"static/chunks/pages/terminal-d483cf913167fd8d.js"],"/test":[v,"static/chunks/pages/test-b24d77dc84843924.js"],"/triggers":[s,e,i,c,"static/chunks/pages/triggers-71bbb30dd9b57f80.js"],"/version-control":[s,a,v,"static/chunks/7768-2325216ed654ad05.js",e,i,c,t,k,I,"static/chunks/pages/version-control-1dc780d52fbd1573.js"],sortedPages:["/","/_app","/_error","/files","/global-data-products","/global-data-products/[...slug]","/manage","/manage/settings","/manage/users","/manage/users/new","/manage/users/[user]","/overview","/pipeline-runs","/pipelines","/pipelines/[pipeline]","/pipelines/[pipeline]/backfills","/pipelines/[pipeline]/backfills/[...slug]","/pipelines/[pipeline]/edit","/pipelines/[pipeline]/logs","/pipelines/[pipeline]/monitors","/pipelines/[pipeline]/monitors/block-runs","/pipelines/[pipeline]/monitors/block-runtime","/pipelines/[pipeline]/runs","/pipelines/[pipeline]/runs/[run]","/pipelines/[pipeline]/settings","/pipelines/[pipeline]/syncs","/pipelines/[pipeline]/triggers","/pipelines/[pipeline]/triggers/[...slug]","/settings","/settings/account/profile","/settings/workspace/preferences","/settings/workspace/sync-data","/settings/workspace/users","/sign-in","/templates","/templates/[...slug]","/terminal","/test","/triggers","/version-control"]}}("static/chunks/844-1e171f361e63b36d.js","static/chunks/1424-fca78f21a81a7183.js","static/chunks/1005-a2f0e3ee378ef02b.js","static/chunks/9902-b7981346a40ecdc3.js","static/chunks/7815-8b68b0eb665fcd2d.js","static/chunks/6422-0cdd6e596dcd43b6.js","static/chunks/547-bd961ea93f3eb98b.js","static/chunks/426-df62b0bd693bbb87.js","static/chunks/1774-aa51ef1da7217ff9.js","static/chunks/8952-9d6fa18fa9378989.js","static/chunks/8792-10e45963e2486454.js","static/chunks/8789-4f858e520d46973b.js","static/chunks/7722-76c724a66240561b.js","static/chunks/3391-6f0a0a5c254cd7f2.js","static/chunks/4259-b71c17f69499f7bd.js","static/chunks/4822-ee62acb1927c8150.js","static/chunks/7496-7e4dd11e3f3b8e79.js","static/chunks/5896-42c94d54cd2c5706.js","static/chunks/9055-d0d25298cb5f4e45.js","static/chunks/2714-1e79e9f2e998b544.js","static/chunks/1484-87d4d4a698ac63dc.js","static/chunks/7849-1081cd94cceb0227.js","static/chunks/7011-81dd8269c4806d26.js","static/chunks/3881-131cf690e54c23a3.js","static/chunks/6299-fcb702d0f3d3291b.js","static/chunks/2485-39885e5335888821.js","static/chunks/4495-4f0340aa82e0c623.js","static/chunks/9605-9332e1686c46da7d.js","static/chunks/6786-55e1bca3c897d5ee.js","static/chunks/29107295-989a0767a635d9d5.js","static/chunks/5872-1767c45ee6690ae5.js","static/chunks/437-331193bd9b2fe777.js","static/chunks/2786-f71862671f66d948.js","static/chunks/8190-d38ed1133030797d.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
1
+ self.__BUILD_MANIFEST=function(s,e,i,a,c,t,n,p,l,u,g,r,d,k,f,b,h,j,o,m,_,w,v,y,I,B,F,A,D,E,L,M,N,S){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":["static/chunks/pages/index-32917acd76697307.js"],"/_error":["static/chunks/pages/_error-235304e5badb19eb.js"],"/files":[s,a,r,v,"static/chunks/5643-1f8a6d8a392fe96b.js",e,i,c,t,d,k,I,"static/chunks/pages/files-03841b6dd7d240f6.js"],"/global-data-products":[s,a,e,i,c,h,A,"static/chunks/pages/global-data-products-2756fe6d9decae4a.js"],"/global-data-products/[...slug]":[s,a,e,i,c,h,A,"static/chunks/pages/global-data-products/[...slug]-6d3d53624debede6.js"],"/manage":[s,a,r,e,i,c,t,d,"static/chunks/pages/manage-6815a3ece7dc1678.js"],"/manage/settings":[s,a,r,"static/chunks/4398-5d5c07021ccd37b8.js",e,i,t,d,"static/chunks/pages/manage/settings-6e2c0e3f818fd4de.js"],"/manage/users":[s,e,i,c,"static/chunks/pages/manage/users-ec748f838b7b8fad.js"],"/manage/users/new":[s,e,i,y,"static/chunks/pages/manage/users/new-dd41d718cbb5990c.js"],"/manage/users/[user]":[s,e,i,c,y,"static/chunks/pages/manage/users/[user]-3b502aa6d1a04cad.js"],"/overview":[s,a,p,l,g,r,f,j,o,m,e,i,c,t,u,d,b,k,_,B,D,"static/chunks/pages/overview-7f790238fe70d9ab.js"],"/pipeline-runs":[s,a,e,i,c,h,"static/chunks/pages/pipeline-runs-33c7f2550add0719.js"],"/pipelines":[s,a,p,l,g,r,f,o,e,i,c,t,u,d,b,k,_,B,"static/chunks/pages/pipelines-1169f4eecf752033.js"],"/pipelines/[pipeline]":["static/chunks/pages/pipelines/[pipeline]-ca9457e1a6bced4b.js"],"/pipelines/[pipeline]/backfills":[s,a,e,i,c,n,"static/chunks/pages/pipelines/[pipeline]/backfills-b8b4bed1e8e50068.js"],"/pipelines/[pipeline]/backfills/[...slug]":[s,a,p,l,g,w,F,e,i,c,t,n,u,h,"static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-07e4a3a674e83578.js"],"/pipelines/[pipeline]/edit":[E,s,a,p,l,g,r,f,j,w,o,m,v,L,"static/chunks/2991-d0b13a172f9c1dcd.js",e,i,c,t,u,d,b,k,_,I,M,"static/chunks/pages/pipelines/[pipeline]/edit-6e59dc4e57dd2680.js"],"/pipelines/[pipeline]/logs":[s,a,p,f,F,e,i,c,t,n,b,"static/chunks/pages/pipelines/[pipeline]/logs-02295848c811e26a.js"],"/pipelines/[pipeline]/monitors":[s,a,j,m,"static/chunks/2834-d2a1c03968995e8e.js",e,i,n,D,"static/chunks/pages/pipelines/[pipeline]/monitors-9fa0c4ce1c921a41.js"],"/pipelines/[pipeline]/monitors/block-runs":[s,a,j,m,"static/chunks/9404-1fb0792716d46efc.js",e,i,t,n,"static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-d87d0c21758a2d7c.js"],"/pipelines/[pipeline]/monitors/block-runtime":[E,s,a,j,m,"static/chunks/9464-84f4879568c00a93.js",e,i,t,n,"static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-68e1b861ef4fc0d7.js"],"/pipelines/[pipeline]/runs":[s,a,p,l,g,w,e,i,c,t,n,u,h,N,"static/chunks/pages/pipelines/[pipeline]/runs-4a2671811a153411.js"],"/pipelines/[pipeline]/runs/[run]":[s,a,p,l,g,f,j,w,L,e,i,c,t,n,u,b,M,N,"static/chunks/pages/pipelines/[pipeline]/runs/[run]-d5ef19ca1f9931de.js"],"/pipelines/[pipeline]/settings":[s,a,e,i,n,S,"static/chunks/pages/pipelines/[pipeline]/settings-8872a6e00280f58c.js"],"/pipelines/[pipeline]/syncs":[s,a,e,i,c,n,"static/chunks/pages/pipelines/[pipeline]/syncs-484581ae34a1c596.js"],"/pipelines/[pipeline]/triggers":[s,a,p,l,e,i,c,t,n,u,"static/chunks/pages/pipelines/[pipeline]/triggers-624a2d7cbe6303b4.js"],"/pipelines/[pipeline]/triggers/[...slug]":[s,a,p,l,g,w,F,e,i,c,t,n,u,h,S,"static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-91889109af36a793.js"],"/settings":["static/chunks/pages/settings-d594a66a568306da.js"],"/settings/account/profile":[s,e,i,y,"static/chunks/pages/settings/account/profile-c3ff06a12baa40a2.js"],"/settings/workspace/preferences":[s,e,i,"static/chunks/pages/settings/workspace/preferences-60b4398d7ae00206.js"],"/settings/workspace/sync-data":[s,e,i,"static/chunks/pages/settings/workspace/sync-data-05b53444f0e7449b.js"],"/settings/workspace/users":[s,e,i,c,y,"static/chunks/pages/settings/workspace/users-89429fea9d64e29d.js"],"/sign-in":[s,e,"static/chunks/pages/sign-in-a5e9561a6c0d2e38.js"],"/templates":[s,a,p,l,g,r,f,o,e,i,c,t,u,d,b,k,_,B,"static/chunks/pages/templates-ce2a29d477a6ce94.js"],"/templates/[...slug]":[s,a,p,l,g,r,f,o,e,i,c,t,u,d,b,k,_,"static/chunks/pages/templates/[...slug]-c21b269750441494.js"],"/terminal":[s,e,i,"static/chunks/pages/terminal-d483cf913167fd8d.js"],"/test":[v,"static/chunks/pages/test-b24d77dc84843924.js"],"/triggers":[s,e,i,c,"static/chunks/pages/triggers-71bbb30dd9b57f80.js"],"/version-control":[s,a,v,"static/chunks/7768-2325216ed654ad05.js",e,i,c,t,k,I,"static/chunks/pages/version-control-1dc780d52fbd1573.js"],sortedPages:["/","/_app","/_error","/files","/global-data-products","/global-data-products/[...slug]","/manage","/manage/settings","/manage/users","/manage/users/new","/manage/users/[user]","/overview","/pipeline-runs","/pipelines","/pipelines/[pipeline]","/pipelines/[pipeline]/backfills","/pipelines/[pipeline]/backfills/[...slug]","/pipelines/[pipeline]/edit","/pipelines/[pipeline]/logs","/pipelines/[pipeline]/monitors","/pipelines/[pipeline]/monitors/block-runs","/pipelines/[pipeline]/monitors/block-runtime","/pipelines/[pipeline]/runs","/pipelines/[pipeline]/runs/[run]","/pipelines/[pipeline]/settings","/pipelines/[pipeline]/syncs","/pipelines/[pipeline]/triggers","/pipelines/[pipeline]/triggers/[...slug]","/settings","/settings/account/profile","/settings/workspace/preferences","/settings/workspace/sync-data","/settings/workspace/users","/sign-in","/templates","/templates/[...slug]","/terminal","/test","/triggers","/version-control"]}}("static/chunks/844-1e171f361e63b36d.js","static/chunks/1424-fca78f21a81a7183.js","static/chunks/1005-a2f0e3ee378ef02b.js","static/chunks/9902-b7981346a40ecdc3.js","static/chunks/7815-8b68b0eb665fcd2d.js","static/chunks/6422-0cdd6e596dcd43b6.js","static/chunks/547-bd961ea93f3eb98b.js","static/chunks/426-df62b0bd693bbb87.js","static/chunks/1774-aa51ef1da7217ff9.js","static/chunks/8952-050e60a8b1eaa32a.js","static/chunks/8792-10e45963e2486454.js","static/chunks/8789-4f858e520d46973b.js","static/chunks/7722-76c724a66240561b.js","static/chunks/3391-e1578fe1bdb5a557.js","static/chunks/4259-b71c17f69499f7bd.js","static/chunks/4822-ee62acb1927c8150.js","static/chunks/7496-7e4dd11e3f3b8e79.js","static/chunks/5896-42c94d54cd2c5706.js","static/chunks/9055-d0d25298cb5f4e45.js","static/chunks/2714-1e79e9f2e998b544.js","static/chunks/1484-87d4d4a698ac63dc.js","static/chunks/7849-1081cd94cceb0227.js","static/chunks/7011-81dd8269c4806d26.js","static/chunks/3881-131cf690e54c23a3.js","static/chunks/6299-9b785c07dacf22b3.js","static/chunks/2485-39885e5335888821.js","static/chunks/4495-4f0340aa82e0c623.js","static/chunks/9605-9332e1686c46da7d.js","static/chunks/6786-55e1bca3c897d5ee.js","static/chunks/29107295-989a0767a635d9d5.js","static/chunks/5872-1767c45ee6690ae5.js","static/chunks/437-331193bd9b2fe777.js","static/chunks/2786-756b3834d10b8711.js","static/chunks/8190-d38ed1133030797d.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
@@ -1,4 +1,4 @@
1
- <!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta content="width=device-width, initial-scale=1.0, maximum-scale=5.0, user-scalable=0" name="viewport"/><title>Files | Mage</title><meta name="next-head-count" content="3"/><link href="/favicon.ico" rel="icon"/><link rel="preload" href="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/css/d1e8e64d0b07af2f.css" as="style"/><link rel="stylesheet" href="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/css/d1e8e64d0b07af2f.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/chunks/polyfills-5cd94c89d3acac5f.js"></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/chunks/webpack-75e5c97f3bafcfc3.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/chunks/framework-7c365855dab1bf41.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/chunks/main-028c1a54af29300e.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/chunks/pages/_app-9dae6fa5126cf001.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/chunks/844-1e171f361e63b36d.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/chunks/9902-b7981346a40ecdc3.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/chunks/8789-4f858e520d46973b.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/chunks/7011-81dd8269c4806d26.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/chunks/5643-1f8a6d8a392fe96b.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/chunks/1424-fca78f21a81a7183.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/chunks/1005-a2f0e3ee378ef02b.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/chunks/7815-8b68b0eb665fcd2d.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/chunks/6422-0cdd6e596dcd43b6.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/chunks/7722-76c724a66240561b.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/chunks/3391-6f0a0a5c254cd7f2.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/chunks/6299-fcb702d0f3d3291b.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/chunks/pages/files-2dc2a0dfc0ff620d.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/yJvL-3bfsNF3WCStZ10Dm/_buildManifest.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/yJvL-3bfsNF3WCStZ10Dm/_ssgManifest.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/yJvL-3bfsNF3WCStZ10Dm/_middlewareManifest.js" defer=""></script><style data-styled="" data-styled-version="5.3.6">html{-webkit-box-sizing:border-box;box-sizing:border-box;-ms-overflow-style:scrollbar;}/*!sc*/
1
+ <!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta content="width=device-width, initial-scale=1.0, maximum-scale=5.0, user-scalable=0" name="viewport"/><title>Files | Mage</title><meta name="next-head-count" content="3"/><link href="/favicon.ico" rel="icon"/><link rel="preload" href="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/css/d1e8e64d0b07af2f.css" as="style"/><link rel="stylesheet" href="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/css/d1e8e64d0b07af2f.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/chunks/polyfills-5cd94c89d3acac5f.js"></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/chunks/webpack-75e5c97f3bafcfc3.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/chunks/framework-7c365855dab1bf41.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/chunks/main-028c1a54af29300e.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/chunks/pages/_app-9dae6fa5126cf001.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/chunks/844-1e171f361e63b36d.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/chunks/9902-b7981346a40ecdc3.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/chunks/8789-4f858e520d46973b.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/chunks/7011-81dd8269c4806d26.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/chunks/5643-1f8a6d8a392fe96b.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/chunks/1424-fca78f21a81a7183.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/chunks/1005-a2f0e3ee378ef02b.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/chunks/7815-8b68b0eb665fcd2d.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/chunks/6422-0cdd6e596dcd43b6.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/chunks/7722-76c724a66240561b.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/chunks/3391-e1578fe1bdb5a557.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/chunks/6299-9b785c07dacf22b3.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/chunks/pages/files-03841b6dd7d240f6.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/xykYLW_ARw5SevdiponLI/_buildManifest.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/xykYLW_ARw5SevdiponLI/_ssgManifest.js" defer=""></script><script src="/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_/_next/static/xykYLW_ARw5SevdiponLI/_middlewareManifest.js" defer=""></script><style data-styled="" data-styled-version="5.3.6">html{-webkit-box-sizing:border-box;box-sizing:border-box;-ms-overflow-style:scrollbar;}/*!sc*/
2
2
  *,*::before,*::after{-webkit-box-sizing:inherit;box-sizing:inherit;}/*!sc*/
3
3
  data-styled.g4[id="sc-global-czSCUT1"]{content:"sc-global-czSCUT1,"}/*!sc*/
4
4
  .kOVcuR .Toastify__toast-container{margin-top:24px;padding:0 !important;width:500px !important;}/*!sc*/
@@ -21,4 +21,4 @@ data-styled.g72[id="indexstyle__ContainerStyle-sc-ecogjt-0"]{content:"ijwRXz,"}/
21
21
  @-webkit-keyframes animate-in{0%{width:168px;}100%{width:272px;}}/*!sc*/
22
22
  @keyframes animate-in{0%{width:168px;}100%{width:272px;}}/*!sc*/
23
23
  data-styled.g73[id="indexstyle__VerticalNavigationStyleComponent-sc-ecogjt-1"]{content:"jQArIy,"}/*!sc*/
24
- </style></head><body><div id="__next"><div class="" style="position:fixed;top:0;left:0;height:2px;background:transparent;z-index:99999999999;width:100%"><div class="" style="height:100%;background:#FF144D;transition:all 500ms ease;width:0%"><div style="box-shadow:0 0 10px #FF144D, 0 0 10px #FF144D;width:5%;opacity:1;position:absolute;height:100%;transition:all 500ms ease;transform:rotate(3deg) translate(0px, -4px);left:-10rem"></div></div></div><div class="indexstyle__HeaderStyle-sc-1bk8irg-0 gbXfes"><div></div></div><div class="indexstyle__ContainerStyle-sc-ecogjt-0 ijwRXz"><div class="indexstyle__VerticalNavigationStyleComponent-sc-ecogjt-1 jQArIy"><div class="Spacing__SpacingStyle-sc-1mpmtgj-0 hDBiHu"><div></div></div></div><div class="Flex-sc-sgfnl9-0 dKQluW"><div></div></div></div><div></div><div></div><div></div><div class="ToastWrapper-sc-1a33ph1-0 kOVcuR"><div class="Toastify"></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"auth":{"decodedToken":{"expires":0,"token":null}}},"currentTheme":{"accent":{"alert":"#F6540B","blue":"#4877FF","blueLight":"rgba(72, 119, 255, 0.5)","contentDefaultTransparent":"rgba(174, 174, 174, 0.5)","cyan":"#65E3FF","cyanLight":"rgba(101, 227, 255, 0.3)","cyanTransparent":"rgba(101, 227, 255, 0.12)","dbt":"#fc6949","dbtLight":"rgba(252, 105, 73, 0.5)","info":"#00ABFF","infoTransparent":"rgba(0, 171, 255, 0.5)","negative":"#FF1E59","negativeTransparent":"rgba(255, 30, 89, 0.3)","pink":"#FF4FF8","pinkLight":"rgb(255, 79, 248, 0.5)","positive":"#00A81A","primaryTransparent":"rgba(155, 108, 167, 0.5)","purple":"#7D55EC","purpleLight":"rgba(125, 85, 236, 0.5)","rose":"#D1A2AB","roseLight":"rgba(209, 162, 171, 0.5)","sky":"#6AA1E0","skyLight":"rgba(106, 161, 224, 0.05)","teal":"#00B4CC","tealLight":"rgba(0, 180, 204, 0.5)","warning":"#DD9900","warningTransparent":"rgba(221, 153, 0, 0.5)","yellow":"#FFCC19","yellowLight":"rgba(255, 204, 25, 0.5)"},"background":{"chartBlock":"#2E3036","codeArea":"#1E1F24","codeTextarea":"#000000","content":"#1B1C20","danger":"#FFD0DB","dark":"#B1B8C3","dashboard":"#18181C","header":"#1B1B1B","menu":"#0F4CFF","muted":"#F9FAFC","navigation":"#EDEDED","output":"#2E3036","page":"#1E1F24","panel":"#232429","popup":"#27292E","row":"#2C2C2C","row2":"#51535C","scrollbarThumb":"rgba(100, 100, 100, 0.5)","scrollbarThumbHover":"rgba(255, 255, 255, 0.3)","scrollbarTrack":"#2E3036","success":"#8ADE00","successLight":"rgb(138, 222, 0, 0.3)","table":"#292A2F","tag":"#3A4550"},"borders":{"button":"#454850","contrast":"#FFFFFF","danger":"#FF144D","dark":"#000000","info":"#FFCC19","light":"#2F3034","medium":"#1C1C1C","medium2":"#141414","success":"#2FCB52"},"brand":{"earth100":"#C6EEDB","earth200":"#9DDFBF","earth300":"#6BBF96","earth400":"#37A46F","earth400Transparent":"rgba(55, 164, 111, 0.4)","earth500":"#00954C","energy100":"#FFF4BA","energy200":"#FFED92","energy300":"#FFE662","energy400":"#FFDA19","energy400Transparent":"rgba(255, 218, 25, 0.04)","energy500":"#F6C000","fire100":"#FFD7E0","fire200":"#FFA3B9","fire300":"#FF547D","fire400":"#FF144D","fire400Transparent":"rgba(255, 20, 77, 0.4)","fire500":"#EB0032","stone100":"#F3E6D7","stone200":"#E3D4C2","stone400":"#BFA78B","stone500":"#AF8859","water100":"#BDCEFF","water200":"#81A1FF","water300":"#517DFF","water400":"#2A60FE","water400Transparent":"rgba(42, 96, 254, 0.4)","water500":"#0F4CFF","wind100":"#EEEAFF","wind200":"#CCC1F4","wind300":"#A698DD","wind400":"#6B50D7","wind400SuperTransparent":"rgba(107, 80, 215, 0.12)","wind400Transparent":"rgba(107, 80, 215, 0.4)","wind500":"#4E32BC"},"chart":{"backgroundPrimary":"#7D55EC","backgroundSecondary":"#FF144D","backgroundTertiary":"#86E2FF","button1":"#4877FF","button2":"#FFCC19","button3":"#8ADE00","button4":"#FF4FF8","button5":"#B98D95","lines":"#9B6CA7","primary":"#6B50D7","secondary":"#FF144D","tertiary":"#2A60FE"},"content":{"active":"#FFFFFF","default":"#AEAEAE","disabled":"rgba(255, 255, 255, 0.3)","inverted":"#2C2C2C","muted":"#787A85"},"elevation":{"visualizationAccent":"#996CFF","visualizationAccentAlt":"#C1ACF7"},"feature":{"active":"rgba(250, 248, 254, 0.14)","disabled":"rgba(201, 206, 218, 0.12)"},"icons":{"neutral":"#787878"},"interactive":{"activeBorder":"#060606","checked":"#060606","dangerBorder":"#FF144D","defaultBackground":"#36383F","defaultBorder":"#2E3036","disabledBorder":"#B1B8C3","focusBackground":"#B1B8C3","focusBorder":"#86E2FF","hoverBackground":"#4E4E4E","hoverBorder":"#B9BFCA","hoverOverlay":"rgba(255, 255, 255, 0.1)","linkPrimary":"#1752FF","linkPrimaryHover":"#4877FF","linkPrimaryLight":"#5982ff","linkSecondary":"#6B50D7","linkSecondaryDisabled":"#C4B9EF","linkText":"#6AA1E0","linkTextLight":"#9ECBFF","rowHoverBackground":"rgba(0, 0, 0, 0.1)","transparent":"rgba(255, 255, 255, 0)"},"loader":{"color":"#EB0032","colorInverted":"#8ADE00"},"logo":{"color":"#FFFFFF"},"monotone":{"black":"#060606","blackTransparent":"rgba(0, 0, 0, 0.6)","gray":"#B1B8C3","grey100":"#F2F2F2","grey200":"#D5D7DC","grey300":"#B4B8C0","grey400":"#70747C","grey500":"#51535C","purple":"#6B50D7","white":"#FFFFFF","whiteTransparent":"rgba(255, 255, 255, 0.6)"},"neutral":{"n100":"#E7E8EA","n200":"#D8DADE","n300":"#CBCCD0","n400":"#BCBEC4","n500":"#AEB0B6"},"progress":{"negative":"#FF144D","positive":"#6B50D7"},"shadow":{"base":"12px 40px 120px rgba(106, 117, 139, 0.4)","frame":"0px 10px 40px rgba(0, 0, 0, 0.26)","menu":"4px 10px 20px rgba(6, 6, 6, 0.12)","popup":"10px 20px 40px rgba(0, 0, 0, 0.2)","small":"0px, 4px, rgba(0, 0, 0, 0.25)","window":"0px 10px 60px rgba(0, 0, 0, 0.7)"},"status":{"negative":"#FF144D","positive":"#24B400"},"text":{"fileBrowser":"#787A85"}}},"page":"/files","query":{},"buildId":"yJvL-3bfsNF3WCStZ10Dm","assetPrefix":"/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_","nextExport":true,"isFallback":false,"gip":true,"appGip":true,"scriptLoader":[]}</script></body></html>
24
+ </style></head><body><div id="__next"><div class="" style="position:fixed;top:0;left:0;height:2px;background:transparent;z-index:99999999999;width:100%"><div class="" style="height:100%;background:#FF144D;transition:all 500ms ease;width:0%"><div style="box-shadow:0 0 10px #FF144D, 0 0 10px #FF144D;width:5%;opacity:1;position:absolute;height:100%;transition:all 500ms ease;transform:rotate(3deg) translate(0px, -4px);left:-10rem"></div></div></div><div class="indexstyle__HeaderStyle-sc-1bk8irg-0 gbXfes"><div></div></div><div class="indexstyle__ContainerStyle-sc-ecogjt-0 ijwRXz"><div class="indexstyle__VerticalNavigationStyleComponent-sc-ecogjt-1 jQArIy"><div class="Spacing__SpacingStyle-sc-1mpmtgj-0 hDBiHu"><div></div></div></div><div class="Flex-sc-sgfnl9-0 dKQluW"><div></div></div></div><div></div><div></div><div></div><div class="ToastWrapper-sc-1a33ph1-0 kOVcuR"><div class="Toastify"></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"auth":{"decodedToken":{"expires":0,"token":null}}},"currentTheme":{"accent":{"alert":"#F6540B","blue":"#4877FF","blueLight":"rgba(72, 119, 255, 0.5)","contentDefaultTransparent":"rgba(174, 174, 174, 0.5)","cyan":"#65E3FF","cyanLight":"rgba(101, 227, 255, 0.3)","cyanTransparent":"rgba(101, 227, 255, 0.12)","dbt":"#fc6949","dbtLight":"rgba(252, 105, 73, 0.5)","info":"#00ABFF","infoTransparent":"rgba(0, 171, 255, 0.5)","negative":"#FF1E59","negativeTransparent":"rgba(255, 30, 89, 0.3)","pink":"#FF4FF8","pinkLight":"rgb(255, 79, 248, 0.5)","positive":"#00A81A","primaryTransparent":"rgba(155, 108, 167, 0.5)","purple":"#7D55EC","purpleLight":"rgba(125, 85, 236, 0.5)","rose":"#D1A2AB","roseLight":"rgba(209, 162, 171, 0.5)","sky":"#6AA1E0","skyLight":"rgba(106, 161, 224, 0.05)","teal":"#00B4CC","tealLight":"rgba(0, 180, 204, 0.5)","warning":"#DD9900","warningTransparent":"rgba(221, 153, 0, 0.5)","yellow":"#FFCC19","yellowLight":"rgba(255, 204, 25, 0.5)"},"background":{"chartBlock":"#2E3036","codeArea":"#1E1F24","codeTextarea":"#000000","content":"#1B1C20","danger":"#FFD0DB","dark":"#B1B8C3","dashboard":"#18181C","header":"#1B1B1B","menu":"#0F4CFF","muted":"#F9FAFC","navigation":"#EDEDED","output":"#2E3036","page":"#1E1F24","panel":"#232429","popup":"#27292E","row":"#2C2C2C","row2":"#51535C","scrollbarThumb":"rgba(100, 100, 100, 0.5)","scrollbarThumbHover":"rgba(255, 255, 255, 0.3)","scrollbarTrack":"#2E3036","success":"#8ADE00","successLight":"rgb(138, 222, 0, 0.3)","table":"#292A2F","tag":"#3A4550"},"borders":{"button":"#454850","contrast":"#FFFFFF","danger":"#FF144D","dark":"#000000","info":"#FFCC19","light":"#2F3034","medium":"#1C1C1C","medium2":"#141414","success":"#2FCB52"},"brand":{"earth100":"#C6EEDB","earth200":"#9DDFBF","earth300":"#6BBF96","earth400":"#37A46F","earth400Transparent":"rgba(55, 164, 111, 0.4)","earth500":"#00954C","energy100":"#FFF4BA","energy200":"#FFED92","energy300":"#FFE662","energy400":"#FFDA19","energy400Transparent":"rgba(255, 218, 25, 0.04)","energy500":"#F6C000","fire100":"#FFD7E0","fire200":"#FFA3B9","fire300":"#FF547D","fire400":"#FF144D","fire400Transparent":"rgba(255, 20, 77, 0.4)","fire500":"#EB0032","stone100":"#F3E6D7","stone200":"#E3D4C2","stone400":"#BFA78B","stone500":"#AF8859","water100":"#BDCEFF","water200":"#81A1FF","water300":"#517DFF","water400":"#2A60FE","water400Transparent":"rgba(42, 96, 254, 0.4)","water500":"#0F4CFF","wind100":"#EEEAFF","wind200":"#CCC1F4","wind300":"#A698DD","wind400":"#6B50D7","wind400SuperTransparent":"rgba(107, 80, 215, 0.12)","wind400Transparent":"rgba(107, 80, 215, 0.4)","wind500":"#4E32BC"},"chart":{"backgroundPrimary":"#7D55EC","backgroundSecondary":"#FF144D","backgroundTertiary":"#86E2FF","button1":"#4877FF","button2":"#FFCC19","button3":"#8ADE00","button4":"#FF4FF8","button5":"#B98D95","lines":"#9B6CA7","primary":"#6B50D7","secondary":"#FF144D","tertiary":"#2A60FE"},"content":{"active":"#FFFFFF","default":"#AEAEAE","disabled":"rgba(255, 255, 255, 0.3)","inverted":"#2C2C2C","muted":"#787A85"},"elevation":{"visualizationAccent":"#996CFF","visualizationAccentAlt":"#C1ACF7"},"feature":{"active":"rgba(250, 248, 254, 0.14)","disabled":"rgba(201, 206, 218, 0.12)"},"icons":{"neutral":"#787878"},"interactive":{"activeBorder":"#060606","checked":"#060606","dangerBorder":"#FF144D","defaultBackground":"#36383F","defaultBorder":"#2E3036","disabledBorder":"#B1B8C3","focusBackground":"#B1B8C3","focusBorder":"#86E2FF","hoverBackground":"#4E4E4E","hoverBorder":"#B9BFCA","hoverOverlay":"rgba(255, 255, 255, 0.1)","linkPrimary":"#1752FF","linkPrimaryHover":"#4877FF","linkPrimaryLight":"#5982ff","linkSecondary":"#6B50D7","linkSecondaryDisabled":"#C4B9EF","linkText":"#6AA1E0","linkTextLight":"#9ECBFF","rowHoverBackground":"rgba(0, 0, 0, 0.1)","transparent":"rgba(255, 255, 255, 0)"},"loader":{"color":"#EB0032","colorInverted":"#8ADE00"},"logo":{"color":"#FFFFFF"},"monotone":{"black":"#060606","blackTransparent":"rgba(0, 0, 0, 0.6)","gray":"#B1B8C3","grey100":"#F2F2F2","grey200":"#D5D7DC","grey300":"#B4B8C0","grey400":"#70747C","grey500":"#51535C","purple":"#6B50D7","white":"#FFFFFF","whiteTransparent":"rgba(255, 255, 255, 0.6)"},"neutral":{"n100":"#E7E8EA","n200":"#D8DADE","n300":"#CBCCD0","n400":"#BCBEC4","n500":"#AEB0B6"},"progress":{"negative":"#FF144D","positive":"#6B50D7"},"shadow":{"base":"12px 40px 120px rgba(106, 117, 139, 0.4)","frame":"0px 10px 40px rgba(0, 0, 0, 0.26)","menu":"4px 10px 20px rgba(6, 6, 6, 0.12)","popup":"10px 20px 40px rgba(0, 0, 0, 0.2)","small":"0px, 4px, rgba(0, 0, 0, 0.25)","window":"0px 10px 60px rgba(0, 0, 0, 0.7)"},"status":{"negative":"#FF144D","positive":"#24B400"},"text":{"fileBrowser":"#787A85"}}},"page":"/files","query":{},"buildId":"xykYLW_ARw5SevdiponLI","assetPrefix":"/CLOUD_NOTEBOOK_BASE_PATH_PLACEHOLDER_","nextExport":true,"isFallback":false,"gip":true,"appGip":true,"scriptLoader":[]}</script></body></html>