mage-ai 0.9.13__py3-none-any.whl → 0.9.14__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 (148) hide show
  1. mage_ai/ai/generator.py +1 -1
  2. mage_ai/ai/generator_cmds.py +1 -1
  3. mage_ai/ai/llm_pipeline_wizard.py +31 -17
  4. mage_ai/api/policies/PipelineRunPolicy.py +1 -0
  5. mage_ai/api/presenters/BlockRunPresenter.py +4 -1
  6. mage_ai/api/presenters/PipelineRunPresenter.py +2 -0
  7. mage_ai/api/resources/BlockRunResource.py +18 -12
  8. mage_ai/api/resources/GitBranchResource.py +8 -1
  9. mage_ai/api/resources/PipelineResource.py +30 -14
  10. mage_ai/data_integrations/sources/constants.py +1 -0
  11. mage_ai/data_preparation/git/__init__.py +18 -0
  12. mage_ai/data_preparation/models/block/__init__.py +13 -1
  13. mage_ai/data_preparation/models/block/dbt/utils/__init__.py +5 -2
  14. mage_ai/data_preparation/models/block/integration/__init__.py +1 -1
  15. mage_ai/data_preparation/models/custom_templates/utils.py +14 -4
  16. mage_ai/data_preparation/models/variable.py +5 -2
  17. mage_ai/orchestration/db/models/schedules.py +4 -0
  18. mage_ai/server/constants.py +1 -1
  19. mage_ai/server/frontend_dist/404.html +2 -2
  20. mage_ai/server/frontend_dist/404.html.html +2 -2
  21. mage_ai/server/frontend_dist/_next/static/{O4HzlRY2U3Q47jF8s3D-E → CNjkRIWPaAu1yJUmIaX_q}/_buildManifest.js +1 -1
  22. mage_ai/server/frontend_dist/_next/static/chunks/{1005-ee665ba499795660.js → 1005-a2f0e3ee378ef02b.js} +1 -1
  23. mage_ai/server/frontend_dist/_next/static/chunks/1424-fca78f21a81a7183.js +1 -0
  24. mage_ai/server/frontend_dist/_next/static/chunks/2786-f71862671f66d948.js +1 -0
  25. mage_ai/server/frontend_dist/_next/static/chunks/7496-7e4dd11e3f3b8e79.js +1 -0
  26. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/9605-e40d076d9fc36d83.js → frontend_dist/_next/static/chunks/9605-9332e1686c46da7d.js} +1 -1
  27. mage_ai/server/frontend_dist/_next/static/chunks/pages/{_app-ccc78f4c29a2a431.js → _app-9dae6fa5126cf001.js} +1 -1
  28. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-54cb4936accdd2d9.js +1 -0
  29. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-4a2671811a153411.js +1 -0
  30. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{syncs-ddaca2c267def72a.js → syncs-484581ae34a1c596.js} +1 -1
  31. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{triggers-ff1faac7a72b1af1.js → triggers-624a2d7cbe6303b4.js} +1 -1
  32. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/triggers-eee16a91f281f92d.js → frontend_dist/_next/static/chunks/pages/triggers-71bbb30dd9b57f80.js} +1 -1
  33. mage_ai/server/frontend_dist/files.html +2 -2
  34. mage_ai/server/frontend_dist/global-data-products/[...slug].html +2 -2
  35. mage_ai/server/frontend_dist/global-data-products.html +2 -2
  36. mage_ai/server/frontend_dist/index.html +2 -2
  37. mage_ai/server/frontend_dist/manage/settings.html +2 -2
  38. mage_ai/server/frontend_dist/manage/users/[user].html +2 -2
  39. mage_ai/server/frontend_dist/manage/users/new.html +2 -2
  40. mage_ai/server/frontend_dist/manage/users.html +2 -2
  41. mage_ai/server/frontend_dist/manage.html +2 -2
  42. mage_ai/server/frontend_dist/overview.html +2 -2
  43. mage_ai/server/frontend_dist/pipeline-runs.html +2 -2
  44. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +2 -2
  45. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +2 -2
  46. mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +2 -2
  47. mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +2 -2
  48. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +2 -2
  49. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +2 -2
  50. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +2 -2
  51. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +2 -2
  52. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +2 -2
  53. mage_ai/server/frontend_dist/pipelines/[pipeline]/settings.html +2 -2
  54. mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +2 -2
  55. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +2 -2
  56. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +2 -2
  57. mage_ai/server/frontend_dist/pipelines/[pipeline].html +2 -2
  58. mage_ai/server/frontend_dist/pipelines.html +2 -2
  59. mage_ai/server/frontend_dist/settings/account/profile.html +2 -2
  60. mage_ai/server/frontend_dist/settings/workspace/preferences.html +2 -2
  61. mage_ai/server/frontend_dist/settings/workspace/sync-data.html +2 -2
  62. mage_ai/server/frontend_dist/settings/workspace/users.html +2 -2
  63. mage_ai/server/frontend_dist/settings.html +2 -2
  64. mage_ai/server/frontend_dist/sign-in.html +11 -11
  65. mage_ai/server/frontend_dist/templates/[...slug].html +2 -2
  66. mage_ai/server/frontend_dist/templates.html +2 -2
  67. mage_ai/server/frontend_dist/terminal.html +2 -2
  68. mage_ai/server/frontend_dist/test.html +3 -3
  69. mage_ai/server/frontend_dist/triggers.html +2 -2
  70. mage_ai/server/frontend_dist/version-control.html +2 -2
  71. mage_ai/server/frontend_dist_base_path_template/404.html +2 -2
  72. mage_ai/server/frontend_dist_base_path_template/404.html.html +2 -2
  73. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{1005-ee665ba499795660.js → 1005-a2f0e3ee378ef02b.js} +1 -1
  74. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1424-fca78f21a81a7183.js +1 -0
  75. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2786-f71862671f66d948.js +1 -0
  76. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7496-7e4dd11e3f3b8e79.js +1 -0
  77. mage_ai/server/{frontend_dist/_next/static/chunks/9605-e40d076d9fc36d83.js → frontend_dist_base_path_template/_next/static/chunks/9605-9332e1686c46da7d.js} +1 -1
  78. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{_app-ccc78f4c29a2a431.js → _app-9dae6fa5126cf001.js} +1 -1
  79. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-54cb4936accdd2d9.js +1 -0
  80. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs-4a2671811a153411.js +1 -0
  81. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/{syncs-ddaca2c267def72a.js → syncs-484581ae34a1c596.js} +1 -1
  82. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/{triggers-ff1faac7a72b1af1.js → triggers-624a2d7cbe6303b4.js} +1 -1
  83. mage_ai/server/{frontend_dist/_next/static/chunks/pages/triggers-eee16a91f281f92d.js → frontend_dist_base_path_template/_next/static/chunks/pages/triggers-71bbb30dd9b57f80.js} +1 -1
  84. mage_ai/server/frontend_dist_base_path_template/_next/static/{gJQ7p6K0VGDZzX1HXtRED → yJvL-3bfsNF3WCStZ10Dm}/_buildManifest.js +1 -1
  85. mage_ai/server/frontend_dist_base_path_template/files.html +2 -2
  86. mage_ai/server/frontend_dist_base_path_template/global-data-products/[...slug].html +2 -2
  87. mage_ai/server/frontend_dist_base_path_template/global-data-products.html +2 -2
  88. mage_ai/server/frontend_dist_base_path_template/index.html +2 -2
  89. mage_ai/server/frontend_dist_base_path_template/manage/settings.html +2 -2
  90. mage_ai/server/frontend_dist_base_path_template/manage/users/[user].html +2 -2
  91. mage_ai/server/frontend_dist_base_path_template/manage/users/new.html +2 -2
  92. mage_ai/server/frontend_dist_base_path_template/manage/users.html +2 -2
  93. mage_ai/server/frontend_dist_base_path_template/manage.html +2 -2
  94. mage_ai/server/frontend_dist_base_path_template/overview.html +2 -2
  95. mage_ai/server/frontend_dist_base_path_template/pipeline-runs.html +2 -2
  96. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills/[...slug].html +2 -2
  97. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills.html +2 -2
  98. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/edit.html +2 -2
  99. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/logs.html +2 -2
  100. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runs.html +2 -2
  101. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runtime.html +2 -2
  102. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors.html +2 -2
  103. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs/[run].html +2 -2
  104. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs.html +2 -2
  105. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/settings.html +2 -2
  106. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/syncs.html +2 -2
  107. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers/[...slug].html +2 -2
  108. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers.html +2 -2
  109. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline].html +2 -2
  110. mage_ai/server/frontend_dist_base_path_template/pipelines.html +2 -2
  111. mage_ai/server/frontend_dist_base_path_template/settings/account/profile.html +2 -2
  112. mage_ai/server/frontend_dist_base_path_template/settings/workspace/preferences.html +2 -2
  113. mage_ai/server/frontend_dist_base_path_template/settings/workspace/sync-data.html +2 -2
  114. mage_ai/server/frontend_dist_base_path_template/settings/workspace/users.html +2 -2
  115. mage_ai/server/frontend_dist_base_path_template/settings.html +2 -2
  116. mage_ai/server/frontend_dist_base_path_template/sign-in.html +11 -11
  117. mage_ai/server/frontend_dist_base_path_template/templates/[...slug].html +2 -2
  118. mage_ai/server/frontend_dist_base_path_template/templates.html +2 -2
  119. mage_ai/server/frontend_dist_base_path_template/terminal.html +2 -2
  120. mage_ai/server/frontend_dist_base_path_template/test.html +3 -3
  121. mage_ai/server/frontend_dist_base_path_template/triggers.html +2 -2
  122. mage_ai/server/frontend_dist_base_path_template/version-control.html +2 -2
  123. mage_ai/services/spark/spark.py +75 -2
  124. mage_ai/tests/data_preparation/models/custom_templates/__init__.py +0 -0
  125. mage_ai/tests/data_preparation/models/custom_templates/test_utils.py +36 -0
  126. mage_ai/tests/data_preparation/models/test_block.py +48 -0
  127. mage_ai/tests/services/spark/__init__.py +0 -0
  128. mage_ai/tests/services/spark/test_spark.py +52 -0
  129. {mage_ai-0.9.13.dist-info → mage_ai-0.9.14.dist-info}/METADATA +1 -1
  130. {mage_ai-0.9.13.dist-info → mage_ai-0.9.14.dist-info}/RECORD +138 -134
  131. mage_ai/server/frontend_dist/_next/static/chunks/1424-846b754e84e6eac1.js +0 -1
  132. mage_ai/server/frontend_dist/_next/static/chunks/2786-ba6f486fcaf52ba0.js +0 -1
  133. mage_ai/server/frontend_dist/_next/static/chunks/7496-7d0f9adf0b333801.js +0 -1
  134. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-615ab9e61f0f39ed.js +0 -1
  135. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-df014ddb14ebcef4.js +0 -1
  136. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1424-846b754e84e6eac1.js +0 -1
  137. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2786-ba6f486fcaf52ba0.js +0 -1
  138. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7496-7d0f9adf0b333801.js +0 -1
  139. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-615ab9e61f0f39ed.js +0 -1
  140. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs-df014ddb14ebcef4.js +0 -1
  141. /mage_ai/server/frontend_dist/_next/static/{O4HzlRY2U3Q47jF8s3D-E → CNjkRIWPaAu1yJUmIaX_q}/_middlewareManifest.js +0 -0
  142. /mage_ai/server/frontend_dist/_next/static/{O4HzlRY2U3Q47jF8s3D-E → CNjkRIWPaAu1yJUmIaX_q}/_ssgManifest.js +0 -0
  143. /mage_ai/server/frontend_dist_base_path_template/_next/static/{gJQ7p6K0VGDZzX1HXtRED → yJvL-3bfsNF3WCStZ10Dm}/_middlewareManifest.js +0 -0
  144. /mage_ai/server/frontend_dist_base_path_template/_next/static/{gJQ7p6K0VGDZzX1HXtRED → yJvL-3bfsNF3WCStZ10Dm}/_ssgManifest.js +0 -0
  145. {mage_ai-0.9.13.dist-info → mage_ai-0.9.14.dist-info}/LICENSE +0 -0
  146. {mage_ai-0.9.13.dist-info → mage_ai-0.9.14.dist-info}/WHEEL +0 -0
  147. {mage_ai-0.9.13.dist-info → mage_ai-0.9.14.dist-info}/entry_points.txt +0 -0
  148. {mage_ai-0.9.13.dist-info → mage_ai-0.9.14.dist-info}/top_level.txt +0 -0
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9605],{17717:function(e,n,t){var i=t(554);!function(){"use strict";var n={977:function(e){function n(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function t(e,n){for(var t,i="",r=0,o=-1,l=0,u=0;u<=e.length;++u){if(u<e.length)t=e.charCodeAt(u);else{if(47===t)break;t=47}if(47===t){if(o===u-1||1===l);else if(o!==u-1&&2===l){if(i.length<2||2!==r||46!==i.charCodeAt(i.length-1)||46!==i.charCodeAt(i.length-2))if(i.length>2){var c=i.lastIndexOf("/");if(c!==i.length-1){-1===c?(i="",r=0):r=(i=i.slice(0,c)).length-1-i.lastIndexOf("/"),o=u,l=0;continue}}else if(2===i.length||1===i.length){i="",r=0,o=u,l=0;continue}n&&(i.length>0?i+="/..":i="..",r=2)}else i.length>0?i+="/"+e.slice(o+1,u):i=e.slice(o+1,u),r=u-o-1;o=u,l=0}else 46===t&&-1!==l?++l:l=-1}return i}var r={resolve:function(){for(var e,r="",o=!1,l=arguments.length-1;l>=-1&&!o;l--){var u;l>=0?u=arguments[l]:(void 0===e&&(e=i.cwd()),u=e),n(u),0!==u.length&&(r=u+"/"+r,o=47===u.charCodeAt(0))}return r=t(r,!o),o?r.length>0?"/"+r:"/":r.length>0?r:"."},normalize:function(e){if(n(e),0===e.length)return".";var i=47===e.charCodeAt(0),r=47===e.charCodeAt(e.length-1);return 0!==(e=t(e,!i)).length||i||(e="."),e.length>0&&r&&(e+="/"),i?"/"+e:e},isAbsolute:function(e){return n(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t<arguments.length;++t){var i=arguments[t];n(i),i.length>0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":r.normalize(e)},relative:function(e,t){if(n(e),n(t),e===t)return"";if((e=r.resolve(e))===(t=r.resolve(t)))return"";for(var i=1;i<e.length&&47===e.charCodeAt(i);++i);for(var o=e.length,l=o-i,u=1;u<t.length&&47===t.charCodeAt(u);++u);for(var c=t.length-u,a=l<c?l:c,d=-1,s=0;s<=a;++s){if(s===a){if(c>a){if(47===t.charCodeAt(u+s))return t.slice(u+s+1);if(0===s)return t.slice(u+s)}else l>a&&(47===e.charCodeAt(i+s)?d=s:0===s&&(d=0));break}var p=e.charCodeAt(i+s);if(p!==t.charCodeAt(u+s))break;47===p&&(d=s)}var f="";for(s=i+d+1;s<=o;++s)s!==o&&47!==e.charCodeAt(s)||(0===f.length?f+="..":f+="/..");return f.length>0?f+t.slice(u+d):(u+=d,47===t.charCodeAt(u)&&++u,t.slice(u))},_makeLong:function(e){return e},dirname:function(e){if(n(e),0===e.length)return".";for(var t=e.charCodeAt(0),i=47===t,r=-1,o=!0,l=e.length-1;l>=1;--l)if(47===(t=e.charCodeAt(l))){if(!o){r=l;break}}else o=!1;return-1===r?i?"/":".":i&&1===r?"//":e.slice(0,r)},basename:function(e,t){if(void 0!==t&&"string"!==typeof t)throw new TypeError('"ext" argument must be a string');n(e);var i,r=0,o=-1,l=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var u=t.length-1,c=-1;for(i=e.length-1;i>=0;--i){var a=e.charCodeAt(i);if(47===a){if(!l){r=i+1;break}}else-1===c&&(l=!1,c=i+1),u>=0&&(a===t.charCodeAt(u)?-1===--u&&(o=i):(u=-1,o=c))}return r===o?o=c:-1===o&&(o=e.length),e.slice(r,o)}for(i=e.length-1;i>=0;--i)if(47===e.charCodeAt(i)){if(!l){r=i+1;break}}else-1===o&&(l=!1,o=i+1);return-1===o?"":e.slice(r,o)},extname:function(e){n(e);for(var t=-1,i=0,r=-1,o=!0,l=0,u=e.length-1;u>=0;--u){var c=e.charCodeAt(u);if(47!==c)-1===r&&(o=!1,r=u+1),46===c?-1===t?t=u:1!==l&&(l=1):-1!==t&&(l=-1);else if(!o){i=u+1;break}}return-1===t||-1===r||0===l||1===l&&t===r-1&&t===i+1?"":e.slice(t,r)},format:function(e){if(null===e||"object"!==typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,n){var t=n.dir||n.root,i=n.base||(n.name||"")+(n.ext||"");return t?t===n.root?t+i:t+e+i:i}("/",e)},parse:function(e){n(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var i,r=e.charCodeAt(0),o=47===r;o?(t.root="/",i=1):i=0;for(var l=-1,u=0,c=-1,a=!0,d=e.length-1,s=0;d>=i;--d)if(47!==(r=e.charCodeAt(d)))-1===c&&(a=!1,c=d+1),46===r?-1===l?l=d:1!==s&&(s=1):-1!==l&&(s=-1);else if(!a){u=d+1;break}return-1===l||-1===c||0===s||1===s&&l===c-1&&l===u+1?-1!==c&&(t.base=t.name=0===u&&o?e.slice(1,c):e.slice(u,c)):(0===u&&o?(t.name=e.slice(1,l),t.base=e.slice(1,c)):(t.name=e.slice(u,l),t.base=e.slice(u,c)),t.ext=e.slice(l,c)),u>0?t.dir=e.slice(0,u-1):o&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,e.exports=r}},t={};function r(e){var i=t[e];if(void 0!==i)return i.exports;var o=t[e]={exports:{}},l=!0;try{n[e](o,o.exports,r),l=!1}finally{l&&delete t[e]}return o.exports}r.ab="//";var o=r(977);e.exports=o}()},38639:function(e,n,t){"use strict";t.d(n,{EN:function(){return k},FX:function(){return C},HS:function(){return j},Nk:function(){return h},Rd:function(){return f},SL:function(){return O},Tj:function(){return Z},UE:function(){return _},Yf:function(){return m},ZG:function(){return d},bC:function(){return g},n5:function(){return p},n8:function(){return w},w5:function(){return x},wj:function(){return b},wl:function(){return v},ze:function(){return y}});var i=t(38626),r=t(23831),o=t(73942),l=t(3055),u=t(49125),c=t(90880),a=t(37391),d=2.5*u.iI,s=40*u.iI,p=10*u.iI,f=i.default.div.withConfig({displayName:"indexstyle__ContainedStyle",componentId:"sc-8sk2qr-0"})([""," overflow:auto;"," "," ",""],a.w5,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).page,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height-p,"px;\n ")}),(function(e){return e.width&&"\n width: ".concat(e.width-p,"px;\n ")})),h=i.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-8sk2qr-1"})(["height:100%;position:relative;"]),g=i.default.div.withConfig({displayName:"indexstyle__NavigationStyle",componentId:"sc-8sk2qr-2"})(["position:fixed;width:","px;z-index:1;"," "," ",""],s,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).panel,";\n border-right: 1px solid ").concat((e.theme.borders||r.Z.borders).light,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height-p,"px;\n ")}),(function(e){return!e.height&&"\n height: 100%;\n "})),m=i.default.div.withConfig({displayName:"indexstyle__TabsStyle",componentId:"sc-8sk2qr-3"})(["padding-bottom:","px;padding-left:","px;padding-right:","px;padding-top:","px;",""],1*u.iI,u.cd*u.iI,u.cd*u.iI,1*u.iI,(function(e){return"\n border-bottom: 1px solid ".concat((e.theme.borders||r.Z.borders).light,";\n ")})),v=i.default.div.withConfig({displayName:"indexstyle__LinksContainerStyle",componentId:"sc-8sk2qr-4"})([""," overflow:auto;position:fixed;width:","px;",""],a.w5,s,(function(e){return"\n height: calc(100% - ".concat(55+(null!==e&&void 0!==e&&e.contained?p:l.Mz)+((null===e||void 0===e?void 0:e.heightOffset)||0),"px);\n ")})),b=i.default.div.withConfig({displayName:"indexstyle__NavLinkStyle",componentId:"sc-8sk2qr-5"})([""," padding-bottom:","px;padding-left:","px;padding-right:","px;padding-top:","px;&:hover{cursor:pointer;}",""],(0,c.eR)(),1*u.iI,u.cd*u.iI,u.cd*u.iI,1*u.iI,(function(e){return e.selected&&"\n background-color: ".concat((e.theme.background||r.Z.background).codeTextarea,";\n ")})),y=i.default.div.withConfig({displayName:"indexstyle__IconStyle",componentId:"sc-8sk2qr-6"})([""," border-radius:","px;height:","px;margin-right:","px;padding:","px;width:","px;"," ",""],(0,c.eR)(),o.n_,5*u.iI,1.25*u.iI,1.25*u.iI,5*u.iI,(function(e){return!e.backgroundColor&&"\n background-color: ".concat((e.theme.background||r.Z.background).chartBlock,";\n ")}),(function(e){return e.backgroundColor&&"\n background-color: ".concat(e.backgroundColor,";\n ")})),x=i.default.div.withConfig({displayName:"indexstyle__ContentStyle",componentId:"sc-8sk2qr-7"})(["margin-left:","px;"],s),j=i.default.div.withConfig({displayName:"indexstyle__SubheaderStyle",componentId:"sc-8sk2qr-8"})(["padding:","px;",""],u.cd*u.iI,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).panel,";\n border-bottom: 1px solid ").concat((e.theme.borders||r.Z.borders).light,";\n ")})),w=i.default.div.withConfig({displayName:"indexstyle__CardsStyle",componentId:"sc-8sk2qr-9"})(["display:flex;flex-wrap:wrap;padding:","px;"],.75*u.iI),_=i.default.div.withConfig({displayName:"indexstyle__CardStyle",componentId:"sc-8sk2qr-10"})(["border-radius:","px;margin:","px;padding:","px;width:","px;&:hover{cursor:pointer;}",""],o.n_,.75*u.iI,2.5*u.iI,50*u.iI,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).panel,";\n border: 1px solid ").concat((e.theme.background||r.Z.background).chartBlock,";\n box-shadow: ").concat((e.theme.shadow||r.Z.shadow).frame,";\n ")})),Z=i.default.div.withConfig({displayName:"indexstyle__CardTitleStyle",componentId:"sc-8sk2qr-11"})(["height:","px;"],2.5*u.iI),O=i.default.div.withConfig({displayName:"indexstyle__CardDescriptionStyle",componentId:"sc-8sk2qr-12"})(["height:","px;margin-top:","px;"],2.5*u.iI*2,1*u.iI),k=i.default.div.withConfig({displayName:"indexstyle__TagsStyle",componentId:"sc-8sk2qr-13"})(["height:","px;margin-top:","px;overflow:hidden;"],3.5*u.iI,.5*u.iI),C=i.default.div.withConfig({displayName:"indexstyle__BreadcrumbsStyle",componentId:"sc-8sk2qr-14"})(["padding-bottom:","px;padding-top:","px;",""],1*u.iI,1*u.iI,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).panel,";\n border-bottom: 1px solid ").concat((e.theme.borders||r.Z.borders).light,";\n ")}))},41422:function(e,n,t){"use strict";t.d(n,{Nk:function(){return c},Yf:function(){return d},bC:function(){return a},ig:function(){return s},w5:function(){return p}});var i=t(38626),r=t(23831),o=t(49125),l=t(38639),u=(o.iI,40*o.iI),c=i.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-axgvn9-0"})(["height:100%;position:relative;"]),a=i.default.div.withConfig({displayName:"indexstyle__NavigationStyle",componentId:"sc-axgvn9-1"})(["overflow:auto;position:fixed;width:","px;z-index:1;"," "," ",""],u,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).panel,";\n border-right: 1px solid ").concat((e.theme.borders||r.Z.borders).light,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height-l.n5,"px;\n ")}),(function(e){return!e.height&&"\n height: 100%;\n "})),d=i.default.div.withConfig({displayName:"indexstyle__TabsStyle",componentId:"sc-axgvn9-2"})(["padding-bottom:","px;padding-left:","px;padding-right:","px;padding-top:","px;width:100%;",""],1*o.iI,o.cd*o.iI,o.cd*o.iI,1*o.iI,(function(e){return"\n border-bottom: 1px solid ".concat((e.theme.borders||r.Z.borders).light,";\n ")})),s=i.default.div.withConfig({displayName:"indexstyle__ButtonsStyle",componentId:"sc-axgvn9-3"})(["margin-top:","px;width:100%;",""],o.cd*o.iI,(function(e){return"\n border-top: 1px solid ".concat((e.theme.borders||r.Z.borders).light,";\n ")})),p=i.default.div.withConfig({displayName:"indexstyle__ContentStyle",componentId:"sc-axgvn9-4"})(["margin-left:","px;"],u)},1210:function(e,n,t){"use strict";t.d(n,{Z:function(){return O}});var i=t(82394),r=t(21831),o=t(82684),l=t(47999),u=t(49894),c=t(93461),a=t(57384),d=t(41424),s=t(72454),p=t(28598);function f(e,n){var t=e.children;return(0,p.jsx)(s.HS,{ref:n,children:t})}var h=o.forwardRef(f),g=t(32063),m=t(85019),v=t(82531),b=t(66166),y=t(3055),x=t(49125),j=t(91427),w=t(24141);function _(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function Z(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?_(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):_(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var O=function(e){var n,t=e.addProjectBreadcrumbToCustomBreadcrumbs,i=e.after,f=e.afterHidden,_=e.afterWidth,O=e.afterWidthOverride,k=e.before,C=e.beforeWidth,I=e.breadcrumbs,P=e.children,S=e.errors,N=e.headerMenuItems,A=e.headerOffset,E=e.mainContainerHeader,D=e.navigationItems,T=e.setErrors,z=e.subheaderChildren,M=e.title,H=e.uuid,q=(0,w.i)().width,F="dashboard_after_width_".concat(H),L="dashboard_before_width_".concat(H),B=(0,o.useRef)(null),R=(0,o.useState)(O?_:(0,j.U2)(F,_)),U=R[0],W=R[1],V=(0,o.useState)(!1),J=V[0],G=V[1],Y=(0,o.useState)(k?Math.max((0,j.U2)(L,C),13*x.iI):null),Q=Y[0],X=Y[1],K=(0,o.useState)(!1),$=K[0],ee=K[1],ne=(0,o.useState)(null)[1],te=v.ZP.projects.list({},{revalidateOnFocus:!1}).data,ie=null===te||void 0===te?void 0:te.projects,re={label:function(){var e;return null===ie||void 0===ie||null===(e=ie[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},oe=[];I?(t&&oe.push(re),oe.push.apply(oe,(0,r.Z)(I))):(null===ie||void 0===ie?void 0:ie.length)>=1&&oe.push.apply(oe,[re,{bold:!0,label:function(){return M}}]),(0,o.useEffect)((function(){null===B||void 0===B||!B.current||J||$||null===ne||void 0===ne||ne(B.current.getBoundingClientRect().width)}),[J,U,$,Q,B,ne,q]),(0,o.useEffect)((function(){J||(0,j.t8)(F,U)}),[f,J,U,F]),(0,o.useEffect)((function(){$||(0,j.t8)(L,Q)}),[$,Q,L]);var le=(0,b.Z)(_);return(0,o.useEffect)((function(){O&&le!==_&&W(_)}),[O,_,le]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(a.Z,{title:M}),(0,p.jsx)(d.Z,{breadcrumbs:oe,menuItems:N,project:null===ie||void 0===ie?void 0:ie[0],version:null===ie||void 0===ie||null===(n=ie[0])||void 0===n?void 0:n.version}),(0,p.jsxs)(s.Nk,{children:[0!==(null===D||void 0===D?void 0:D.length)&&(0,p.jsx)(s.lm,{showMore:!0,children:(0,p.jsx)(m.Z,{navigationItems:D,showMore:!0})}),(0,p.jsx)(c.Z,{flex:1,flexDirection:"column",children:(0,p.jsxs)(g.Z,{after:i,afterHeightOffset:y.Mz,afterHidden:f,afterMousedownActive:J,afterWidth:U,before:k,beforeHeightOffset:y.Mz,beforeMousedownActive:$,beforeWidth:s.k1+(k?Q:0),headerOffset:A,hideAfterCompletely:!0,leftOffset:k?s.k1:null,mainContainerHeader:E,mainContainerRef:B,setAfterMousedownActive:G,setAfterWidth:W,setBeforeMousedownActive:ee,setBeforeWidth:X,children:[z&&(0,p.jsx)(h,{children:z}),P]})})]}),S&&(0,p.jsx)(l.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===T||void 0===T?void 0:T(null)},children:(0,p.jsx)(u.Z,Z(Z({},S),{},{onClose:function(){return null===T||void 0===T?void 0:T(null)}}))})]})}},83766:function(e,n,t){"use strict";var i=t(82394),r=t(86673),o=t(87815),l=t(19711),u=t(82944),c=t(49125),a=t(28598);function d(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?d(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.objectAttributes,t=e.originalAttributes,d=e.setObjectAttributes;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(r.Z,{mb:1,px:c.cd,children:[(0,a.jsx)(l.ZP,{bold:!0,children:"Outdated after"}),(0,a.jsx)(l.ZP,{muted:!0,small:!0,children:"After the global data product successfully completes running, how long after that will the global data product be outdated?"})]}),(0,a.jsx)(o.Z,{columnFlex:[null,1],columns:[{uuid:"Unit"},{uuid:"Value"}],rows:[{uuid:"seconds"},{uuid:"weeks"},{uuid:"months"},{uuid:"years"}].map((function(e){var r,o,c=e.uuid,p=null===n||void 0===n||null===(r=n.outdated_after)||void 0===r?void 0:r[c],f=null===t||void 0===t||null===(o=t.outdated_after)||void 0===o?void 0:o[c];return[(0,a.jsxs)(l.ZP,{default:!0,monospace:!0,children:[c," ",f&&(0,a.jsxs)(l.ZP,{inline:!0,monospace:!0,muted:!0,children:["(default: ",f,")"]})]},"label-".concat(c)),(0,a.jsx)(u.Z,{compact:!0,monospace:!0,onChange:function(e){return d((function(n){var t;return s(s({},n),{},{outdated_after:s(s({},null===n||void 0===n?void 0:n.outdated_after),{},(0,i.Z)({},c,0===(null===(t=e.target.value)||void 0===t?void 0:t.length)?null:Number(e.target.value)))})}))},placeholder:"Enter a number",primary:!0,setContentOnMount:!0,small:!0,type:"number",value:"undefined"===typeof p||null===p?"":p},"input-".concat(c))]}))})]})}},31682:function(e,n,t){"use strict";var i=t(82394),r=t(55378),o=t(86673),l=t(87815),u=t(19711),c=t(82944),a=t(49125),d=t(90211),s=t(24224),p=t(28598);function f(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function 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,i.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.objectAttributes,t=e.originalAttributes,f=e.setObjectAttributes;return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(o.Z,{mb:1,px:a.cd,children:[(0,p.jsxs)(u.ZP,{bold:!0,children:["Outdated starting at ",(0,p.jsx)(u.ZP,{inline:!0,muted:!0,children:"(optional)"})]}),(0,p.jsx)(u.ZP,{muted:!0,small:!0,children:"If enough time has passed since the last global data product has ran successfully and the global data product is determined to be outdated, then you can configure it to be outdated at a specific date or time."}),(0,p.jsx)("div",{style:{marginTop:4},children:(0,p.jsxs)(u.ZP,{muted:!0,small:!0,children:["For example, let\u2019s say the global data product is outdated after 12 hours. The last successful run was yesterday at 18:00. The global data product will be outdated today at 06:00. However, if the ",(0,p.jsx)(u.ZP,{bold:!0,inline:!0,muted:!0,small:!0,children:"Outdated starting at"})," has a value of 17 for ",(0,p.jsx)(u.ZP,{bold:!0,inline:!0,muted:!0,small:!0,children:"Hour of day"}),", then the global data product won\u2019t run again until today at 17:00."]})})]}),(0,p.jsx)(l.Z,{columnFlex:[null,1],columns:[{uuid:"Unit"},{uuid:"Value"}],rows:[{uuid:"second_of_minute",values:(0,s.w6)(60).map((function(e,n){return{uuid:n,value:n}}))},{uuid:"minute_of_hour",values:(0,s.w6)(60).map((function(e,n){return{uuid:n,value:n}}))},{uuid:"hour_of_day",values:(0,s.w6)(24).map((function(e,n){return{uuid:n,value:n}}))},{uuid:"day_of_week",values:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"].map((function(e,n){return{uuid:e,value:n}}))},{uuid:"day_of_month",values:(0,s.w6)(31).map((function(e,n){return{uuid:n+1,value:n+1}}))},{uuid:"day_of_year",values:(0,s.w6)(365).map((function(e,n){return{uuid:n+1,value:n+1}}))},{uuid:"week_of_month",values:(0,s.w6)(5).map((function(e,n){return{uuid:n+1,value:n+1}}))},{uuid:"week_of_year",values:(0,s.w6)(52).map((function(e,n){return{uuid:n+1,value:n+1}}))},{uuid:"month_of_year",values:["January","February","March","April","May","June","July","August","September","October","November","December"].map((function(e,n){return{uuid:e,value:n+1}}))}].map((function(e){var o,l,a,s=e.uuid,g=e.values,m=null===n||void 0===n||null===(o=n.outdated_starting_at)||void 0===o?void 0:o[s],v=null===t||void 0===t||null===(l=t.outdated_starting_at)||void 0===l?void 0:l[s],b={compact:!0,key:"outdated-starting-at-input-".concat(s),monospace:!0,onChange:function(e){return f((function(n){var t;return h(h({},n),{},{outdated_starting_at:h(h({},null===n||void 0===n?void 0:n.outdated_starting_at),{},(0,i.Z)({},s,0===(null===(t=e.target.value)||void 0===t?void 0:t.length)?null:Number(e.target.value)))})}))},primary:!0,small:!0,value:"undefined"===typeof m||null===m?"":m};return a=g?(0,p.jsx)(r.Z,h(h({},b),{},{placeholder:"Select a value",children:g.map((function(e){var n=e.uuid,t=e.value;return(0,p.jsx)("option",{value:t,children:n},t)}))})):(0,p.jsx)(c.Z,h(h({},b),{},{placeholder:"Enter a number",setContentOnMount:!0,type:"number"})),[(0,p.jsxs)(u.ZP,{default:!0,monospace:!0,children:[(0,d.vg)(s)," ",v&&(0,p.jsxs)(u.ZP,{inline:!0,monospace:!0,muted:!0,children:["(default: ",v,")"]})]},"outdated-starting-at-label-".concat(s)),a]}))})]})}},21978:function(e,n,t){"use strict";var i=t(82394),r=t(12691),o=t.n(r),l=t(38341),u=t(10919),c=t(86673),a=t(87815),d=t(19711),s=t(82944),p=t(49125),f=t(28598);function h(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function g(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?h(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):h(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.blocks,t=e.objectAttributes,r=e.originalAttributes,h=e.setObjectAttributes;return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(c.Z,{mb:1,px:p.cd,children:[(0,f.jsx)(d.ZP,{bold:!0,children:"Block data to output"}),(0,f.jsx)(d.ZP,{muted:!0,small:!0,children:"The data output from the block(s) you select below will be the data product that is returned when a downstream entity is requesting data from this global data product."}),(0,f.jsx)("div",{style:{marginTop:4},children:(0,f.jsx)(d.ZP,{muted:!0,small:!0,children:"When requesting data from this global data product, the selected block(s) will return data from its most recent partition. You can override this by adding a value in the partitions setting. For example, if you set the partitions value to 5, then the selected block will return data from its 5 most recent partitions. If you set the partitions value to 0, then all the partitions will be returned."})})]}),(0,f.jsx)(a.Z,{columnFlex:[null,1,null],columns:[{label:function(){return""},uuid:"selected"},{uuid:"Block UUID"},{uuid:"Partitions"}],rows:null===n||void 0===n?void 0:n.map((function(e){var n,c=e.uuid,a=null===t||void 0===t?void 0:t.settings,p=null===a||void 0===a?void 0:a[c],m=null===p||void 0===p?void 0:p.partitions,v=null===r||void 0===r||null===(n=r.settings)||void 0===n?void 0:n[c],b=null===v||void 0===v?void 0:v.partitions,y=!!p||!!v;return[(0,f.jsx)(l.Z,{checked:y,onClick:function(){return function(e){h((function(n){var t=(null===n||void 0===n?void 0:n.settings)||{};return e?t[c]={}:null===t||void 0===t||delete t[c],g(g({},n),{},{settings:t})}))}(!y)}},"selected--".concat(c)),(0,f.jsxs)("div",{children:[(0,f.jsx)(o(),{as:"/pipelines/".concat(null===t||void 0===t?void 0:t.object_uuid,"/edit?block_uuid=").concat(c),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,f.jsx)(u.Z,{monospace:!0,openNewWindow:!0,sameColorAsText:!0,children:c})})," ",b&&(0,f.jsxs)(d.ZP,{inline:!0,monospace:!0,muted:!0,children:["(default: ",b,")"]})]},"block-uuid-".concat(c)),(0,f.jsx)(s.Z,{compact:!0,monospace:!0,onChange:function(e){return h((function(n){var t,r;return g(g({},n),{},{settings:g(g({},null===n||void 0===n?void 0:n.settings),{},(0,i.Z)({},c,g(g({},null===n||void 0===n||null===(t=n.settings)||void 0===t?void 0:t[c]),{},{partitions:0===(null===(r=e.target.value)||void 0===r?void 0:r.length)?null:Number(e.target.value)})))})}))},placeholder:"1",primary:!0,setContentOnMount:!0,small:!0,type:"number",value:"undefined"===typeof m||null===m?"":m},"input-".concat(c))]}))})]})}},7952:function(e,n,t){"use strict";var i=t(82394),r=t(75582),o=t(12691),l=t.n(o),u=t(21764),c=t(82684),a=t(83455),d=t(34376),s=t(60328),p=t(34744),f=t(93461),h=t(67971),g=t(30119),m=t(87372),v=t(10919),b=t(83766),y=t(31682),x=t(97496),j=t(55378),w=t(21978),_=t(86673),Z=t(19711),O=t(82944),k=t(97225),C=t(32063),I=t(82531),P=t(66166),S=t(41422),N=t(49125),A=t(72454),E=t(90211),D=t(96510),T=t(9728),z=t(28598);function M(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function H(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}n.Z=function(e){var n=e.globalDataProduct,t=e.isNew,i=(0,d.useRouter)(),o=(0,T.VI)(null,{},[],{uuid:"GlobalDataProductDetail"}),M=(0,r.Z)(o,1)[0],q=(0,c.useState)(!1),F=q[0],L=q[1],B=(0,c.useState)(600),R=B[0],U=B[1],W=(0,c.useState)(!1),V=(W[0],W[1]),J=(0,c.useState)(null),G=J[0],Y=J[1],Q=(0,c.useCallback)((function(e){V(!0),Y(e)}),[]),X=(0,P.Z)(n);(0,c.useEffect)((function(){null!==n&&void 0!==n&&n.uuid&&(null===X||void 0===X?void 0:X.uuid)===(null===n||void 0===n?void 0:n.uuid)||Y(n)}),[n,X]);var K=(0,c.useMemo)((function(){return!(null!==G&&void 0!==G&&G.uuid)}),[G]),$=(0,a.Db)(I.ZP.global_data_products.useUpdate(t?null===G||void 0===G?void 0:G.uuid:null===n||void 0===n?void 0:n.uuid),{onSuccess:function(e){return(0,D.wD)(e,{callback:function(e){var r=e.global_data_product;t||null!==n&&void 0!==n&&n.uuid&&(null===r||void 0===r?void 0:r.uuid)!==(null===n||void 0===n?void 0:n.uuid)?i.replace("/global-data-products/[...slug]","/global-data-products/".concat(null===r||void 0===r?void 0:r.uuid)):(Y(r),V(!1),u.Am.success("Global data product successfully saved.",{position:u.Am.POSITION.BOTTOM_RIGHT,toastId:"custom_pipeline_template"}))},onErrorCallback:function(e,n){return M({errors:n,response:e})}})}}),ee=(0,r.Z)($,2),ne=ee[0],te=ee[1].isLoading,ie=I.ZP.pipelines.detail(g.b.PIPELINE===(null===n||void 0===n?void 0:n.object_type)?null===n||void 0===n?void 0:n.object_uuid:null).data,re=(0,c.useMemo)((function(){return null===ie||void 0===ie?void 0:ie.pipeline}),[ie]),oe=(0,c.useMemo)((function(){return(null===re||void 0===re?void 0:re.blocks)||[]}),[re]),le=I.ZP.pipelines.list().data,ue=(0,c.useMemo)((function(){return(null===le||void 0===le?void 0:le.pipelines)||[]}),[le]),ce=(0,c.useMemo)((function(){return(0,z.jsxs)(h.ZP,{flexDirection:"column",fullHeight:!0,children:[(0,z.jsxs)(f.Z,{flexDirection:"column",children:[(0,z.jsxs)(_.Z,{mt:N.Mq,px:N.cd,children:[(0,z.jsxs)(_.Z,{mb:1,children:[(0,z.jsx)(Z.ZP,{bold:!0,children:"UUID"}),(0,z.jsx)(Z.ZP,{muted:!0,small:!0,children:"Unique identifier for this global data product. This value must be unique across all global data products."})]}),(0,z.jsx)(O.Z,{monospace:!0,onChange:function(e){return Q((function(n){return H(H({},n),{},{uuid:e.target.value})}))},placeholder:"e.g. a unique identifier",primary:!0,setContentOnMount:!0,value:(null===G||void 0===G?void 0:G.uuid)||""})]}),(0,z.jsxs)(_.Z,{mt:N.Mq,px:N.cd,children:[(0,z.jsxs)(_.Z,{mb:1,children:[(0,z.jsx)(Z.ZP,{bold:!0,children:"Object type"}),(0,z.jsx)(Z.ZP,{muted:!0,small:!0,children:"Pipeline, block, etc. Currently, only pipeline is supported."})]}),(0,z.jsx)(j.Z,{onChange:function(e){return Q((function(n){return H(H({},n),{},{object_type:e.target.value})}))},placeholder:"Only pipeline is currently supported",primary:!0,value:(null===G||void 0===G?void 0:G.object_type)||"",children:[g.b.PIPELINE].map((function(e){return(0,z.jsx)("option",{value:e,children:(0,E.kC)(e)},e)}))})]}),(0,z.jsxs)(_.Z,{mt:N.Mq,px:N.cd,children:[(0,z.jsxs)(_.Z,{mb:1,children:[(0,z.jsx)(Z.ZP,{bold:!0,children:"Object UUID"}),(0,z.jsxs)(Z.ZP,{muted:!0,small:!0,children:["The UUID of the ",(null===G||void 0===G?void 0:G.object_type)||"object type"," that this global data product represents."]})]}),(0,z.jsx)(j.Z,{monospace:!0,onChange:function(e){return Q((function(n){return H(H({},n),{},{object_uuid:e.target.value})}))},placeholder:"Select object UUID",primary:!0,value:(null===G||void 0===G?void 0:G.object_uuid)||"",children:null===ue||void 0===ue?void 0:ue.map((function(e){var n=e.uuid;return(0,z.jsx)("option",{value:n,children:n},n)}))}),g.b.PIPELINE===(null===G||void 0===G?void 0:G.object_type)&&(null===G||void 0===G?void 0:G.object_uuid)&&(0,z.jsx)(_.Z,{mt:1,children:(0,z.jsxs)(Z.ZP,{muted:!0,small:!0,children:["View pipeline ",(0,z.jsx)(l(),{as:"/pipelines/".concat(null===G||void 0===G?void 0:G.object_uuid,"/edit"),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,z.jsx)(v.Z,{bold:!0,inline:!0,monospace:!0,openNewWindow:!0,small:!0,children:null===G||void 0===G?void 0:G.object_uuid})}),"."]})})]}),!t&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(_.Z,{mt:N.Mq,children:(0,z.jsx)(b.Z,{objectAttributes:G,setObjectAttributes:Q})}),(0,z.jsx)(_.Z,{mt:N.Mq,children:(0,z.jsx)(y.Z,{objectAttributes:G,setObjectAttributes:Q})}),(null===oe||void 0===oe?void 0:oe.length)>=1&&(0,z.jsx)(_.Z,{mt:N.Mq,children:(0,z.jsx)(w.Z,{blocks:oe,objectAttributes:G,setObjectAttributes:Q})})]})]}),(0,z.jsx)(S.ig,{children:(0,z.jsx)(_.Z,{p:N.cd,children:(0,z.jsx)(h.ZP,{children:(0,z.jsxs)(s.Z,{disabled:K,fullWidth:!0,loading:te,onClick:function(){return ne({global_data_product:G})},primary:!0,children:[t&&"Create global data product",!t&&"Save global data product"]})})})})]})}),[oe,K,te,t,G,ue,Q,ne]),ae=I.ZP.pipeline_schedules.list({global_data_product_uuid:null===n||void 0===n?void 0:n.uuid},{},{pauseFetch:!(null!==n&&void 0!==n&&n.uuid)}).data,de=(0,c.useMemo)((function(){return(null===ae||void 0===ae?void 0:ae.pipeline_schedules)||[]}),[ae]),se=I.ZP.pipeline_runs.list({global_data_product_uuid:null===n||void 0===n?void 0:n.uuid},{},{pauseFetch:!(null!==n&&void 0!==n&&n.uuid)}).data,pe=(0,c.useMemo)((function(){return(null===se||void 0===se?void 0:se.pipeline_runs)||[]}),[se]);return(0,z.jsx)(C.Z,{before:ce,beforeHeader:(0,z.jsx)(_.Z,{px:N.cd,children:(0,z.jsx)(Z.ZP,{children:"Global data product attributes"})}),beforeHidden:F,beforeWidth:R,leftOffset:A.k1,setBeforeHidden:L,setBeforeWidth:U,children:!t&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(_.Z,{p:N.cd,children:(0,z.jsx)(m.Z,{children:"Triggers"})}),(0,z.jsx)(p.Z,{light:!0}),(0,z.jsx)(k.Z,{disableActions:!0,pipeline:re,pipelineSchedules:de}),(0,z.jsx)(_.Z,{p:N.cd,children:(0,z.jsx)(m.Z,{children:"Runs"})}),(0,z.jsx)(p.Z,{light:!0}),(0,z.jsx)(x.Z,{hideTriggerColumn:!0,pipelineRuns:pe})]})})}},55264:function(e,n,t){"use strict";var i=t(82684),r=t(79891),o=t(67971),l=t(19711),u=t(24224),c=t(28598);n.Z=function(e){var n=e.onClickTag,t=e.tags,a=void 0===t?[]:t,d=(0,i.useMemo)((function(){return(null===a||void 0===a?void 0:a.length)||0}),[a]),s=(0,i.useMemo)((function(){return(0,u.YC)(a||[],"uuid")}),[a]);return(0,c.jsx)(o.ZP,{alignItems:"center",flexWrap:"wrap",children:null===s||void 0===s?void 0:s.reduce((function(e,t){return e.push((0,c.jsx)("div",{style:{marginBottom:2,marginRight:d>=2?4:0,marginTop:2},children:(0,c.jsx)(r.Z,{onClick:n?function(){return n(t)}:null,small:!0,children:(0,c.jsx)(l.ZP,{children:t.uuid})})},"tag-".concat(t.uuid))),e}),[])})}},97225:function(e,n,t){"use strict";var i=t(75582),r=t(12691),o=t.n(r),l=t(82684),u=t(83455),c=t(34376),a=t(60328),d=t(16634),s=t(47999),p=t(67971),f=t(10919),h=t(93348),g=t(62609),m=t(86673),v=t(87815),b=t(55264),y=t(19711),x=t(46261),j=t(82531),w=t(22341),_=t(66050),Z=t(49125),O=t(45838),k=t(9736),C=t(96510),I=t(66653),P=t(28598),S=1.5*Z.iI;n.Z=function(e){var n=e.disableActions,t=e.fetchPipelineSchedules,r=e.highlightRowOnHover,N=e.includeCreatedAtColumn,A=e.includePipelineColumn,E=e.pipeline,D=e.pipelineSchedules,T=e.pipelineTriggersByName,z=e.selectedSchedule,M=e.setErrors,H=e.setSelectedSchedule,q=e.stickyHeader,F=null===E||void 0===E?void 0:E.uuid,L=(0,c.useRouter)(),B=(0,l.useRef)({}),R=(0,l.useState)(null),U=R[0],W=R[1],V=(0,l.useState)(0),J=V[0],G=V[1],Y=(0,l.useState)(0),Q=Y[0],X=Y[1],K=(0,u.Db)((function(e){return j.ZP.pipeline_schedules.useUpdate(e.id)({pipeline_schedule:e})}),{onSuccess:function(e){return(0,C.wD)(e,{callback:function(){null===t||void 0===t||t()},onErrorCallback:function(e,n){return M({errors:n,response:e})}})}}),$=(0,i.Z)(K,1)[0],ee=(0,u.Db)((function(e){return j.ZP.pipeline_schedules.useDelete(e)()}),{onSuccess:function(e){return(0,C.wD)(e,{callback:function(){null===t||void 0===t||t(),F?L.push("/pipelines/[pipeline]/triggers","/pipelines/".concat(F,"/triggers")):null===t||void 0===t||t()},onErrorCallback:function(e,n){return M({errors:n,response:e})}})}}),ne=(0,i.Z)(ee,1)[0],te=[],ie=[];return n||(te.push.apply(te,[null,null,null]),ie.push.apply(ie,[{label:function(){return""},uuid:"action"},{uuid:"Info"},{uuid:"Type"}])),te.push.apply(te,[1]),ie.push.apply(ie,[{uuid:"Name"}]),n||(te.push.apply(te,[null,2]),ie.push.apply(ie,[{uuid:"Frequency"},{uuid:"Tags"}])),te.push.apply(te,[null,null,null]),ie.push.apply(ie,[{uuid:"Runs"},{uuid:"Latest status"},{uuid:"Logs"}]),n||(0,k.Ct)()||(te.push.apply(te,[null]),ie.push({label:function(){return""},uuid:"edit/delete"})),!n&&A&&(ie.splice(2,0,{uuid:"Pipeline"}),te.splice(2,0,2)),!n&&N&&(ie.splice(3,0,{uuid:"Created at"}),te.splice(3,0,null)),(0,P.jsx)(O.cl,{overflowVisible:!0,children:0===D.length?(0,P.jsx)(m.Z,{px:3,py:1,children:(0,P.jsx)(y.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:"No triggers available"})}):(0,P.jsx)(v.Z,{columnFlex:te,columns:ie,highlightRowOnHover:r,isSelectedRow:function(e){return D[e].id===(null===z||void 0===z?void 0:z.id)},onClickRow:H?function(e){return null===H||void 0===H?void 0:H(D[e])}:null,rowVerticalPadding:6,rows:D.map((function(e,t){var i,r=e.id,u=e.created_at,c=e.pipeline_runs_count,v=e.pipeline_uuid,j=e.last_pipeline_run_status,O=e.name,C=e.schedule_interval,E=e.status,D=e.tags,z=F||v;B.current[r]=(0,l.createRef)(),h.fq.ACTIVE===E?i=(0,P.jsx)(d.Z,{size:S,success:!0}):h.fq.INACTIVE===E&&(i=(0,P.jsx)(d.Z,{borderSize:1,size:S,square:!0,warning:!0}));var M,H=[];n?H.push.apply(H,[(0,P.jsx)(y.ZP,{bold:!0,children:O},"trigger_name_".concat(t))]):H.push.apply(H,[(0,P.jsx)(a.Z,{iconOnly:!0,noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(n){(0,I.j)(n),$({id:e.id,status:h.fq.ACTIVE===E?h.fq.INACTIVE:h.fq.ACTIVE})},children:h.fq.ACTIVE===E?(0,P.jsx)(w.dz,{muted:!0,size:2*Z.iI}):(0,P.jsx)(w.Py,{default:!0,size:2*Z.iI})},"toggle_trigger_".concat(t)),(0,P.jsxs)(p.ZP,{alignItems:"center",flexDirection:"row",children:[(0,P.jsx)(x.Z,{block:!0,label:E,size:S,widthFitContent:!0,children:i}),(null===T||void 0===T?void 0:T[O])&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(m.Z,{mr:1}),(0,P.jsx)(x.Z,{block:!0,label:"This trigger is saved in code.",size:S,widthFitContent:!0,children:(0,P.jsx)(w.EK,{default:!0,size:S})})]})]},"trigger_status_".concat(t)),(0,P.jsx)(y.ZP,{default:!0,monospace:!0,children:null===(M=h.Z4[e.schedule_type])||void 0===M?void 0:M.call(h.Z4)},"trigger_type_".concat(t)),(0,P.jsx)(o(),{as:"/pipelines/".concat(z,"/triggers/").concat(r),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,P.jsx)(f.Z,{bold:!0,onClick:function(e){(0,I.j)(e),L.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(z,"/triggers/").concat(r))},sameColorAsText:!0,children:O})},"trigger_name_".concat(t))]);return n||H.push.apply(H,[(0,P.jsx)(y.ZP,{default:!0,monospace:!0,children:C},"trigger_frequency_".concat(t)),(0,P.jsx)("div",{children:(0,P.jsx)(b.Z,{tags:null===D||void 0===D?void 0:D.map((function(e){return{uuid:e}}))})},"pipeline_tags_".concat(t))]),H.push.apply(H,[(0,P.jsx)(y.ZP,{default:!0,monospace:!0,children:c},"trigger_run_count_".concat(t)),(0,P.jsx)(y.ZP,{danger:_.V.FAILED===j,default:!j,monospace:!0,success:_.V.COMPLETED===j,warning:_.V.CANCELLED===j,children:j||"N/A"},"latest_run_status_".concat(t)),(0,P.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return L.push("/pipelines/".concat(z,"/logs?pipeline_schedule_id[]=").concat(r))},children:(0,P.jsx)(w.B4,{default:!0,size:2*Z.iI})},"logs_button_".concat(t))]),n||(0,k.Ct)()||H.push((0,P.jsxs)(p.ZP,{children:[(0,P.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return L.push("/pipelines/".concat(z,"/triggers/").concat(r,"/edit"))},title:"Edit",children:(0,P.jsx)(w.I8,{default:!0,size:2*Z.iI})}),(0,P.jsx)(m.Z,{mr:1}),(0,P.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){var e,n,t,i;W(r),G((null===(e=B.current[r])||void 0===e||null===(n=e.current)||void 0===n?void 0:n.offsetTop)||0),X((null===(t=B.current[r])||void 0===t||null===(i=t.current)||void 0===i?void 0:i.offsetLeft)||0)},ref:B.current[r],title:"Delete",children:(0,P.jsx)(w.rF,{default:!0,size:2*Z.iI})}),(0,P.jsx)(s.Z,{onClickOutside:function(){return W(null)},open:U===r,children:(0,P.jsx)(g.Z,{danger:!0,left:(Q||0)-286,onCancel:function(){return W(null)},onClick:function(){W(null),ne(r)},title:"Are you sure you want to delete the trigger ".concat(O,"?"),top:(J||0)-(t<=1?40:96),width:40*Z.iI})})]},"edit_delete_buttons_".concat(t))),!n&&A&&H.splice(2,0,(0,P.jsx)(y.ZP,{default:!0,monospace:!0,children:z},"pipeline_name_".concat(t))),!n&&N&&H.splice(3,0,(0,P.jsx)(y.ZP,{default:!0,monospace:!0,children:u},"created_at_".concat(t))),H})),stickyHeader:q,uuid:"pipeline-triggers"})})}},66050:function(e,n,t){"use strict";var i;t.d(n,{V:function(){return i}}),function(e){e.CANCELLED="cancelled",e.COMPLETED="completed",e.FAILED="failed",e.INITIAL="initial",e.RUNNING="running",e.UPSTREAM_FAILED="upstream_failed",e.CONDITION_FAILED="condition_failed"}(i||(i={}))},30119:function(e,n,t){"use strict";var i;t.d(n,{b:function(){return i}}),function(e){e.BLOCK="block",e.PIPELINE="pipeline"}(i||(i={}))},79891:function(e,n,t){"use strict";var i=t(38626),r=t(60328),o=t(67971),l=t(86673),u=t(19711),c=t(23831),a=t(22341),d=t(49125),s=t(31012),p=t(28598),f=i.default.div.withConfig({displayName:"Chip__ChipStyle",componentId:"sc-1ok73g-0"})(["display:inline-block;"," "," "," "," ",""],(function(e){return!e.primary&&"\n background-color: ".concat((e.theme.background||c.Z.background).tag,";\n ")}),(function(e){return e.primary&&"\n background-color: ".concat((e.theme.chart||c.Z.chart).primary,";\n ")}),(function(e){return!e.small&&"\n border-radius: ".concat((d.iI+s.Al)/2,"px;\n height: ").concat(1.5*d.iI+s.Al,"px;\n padding: ").concat(d.iI/1.5,"px ").concat(1.25*d.iI,"px;\n ")}),(function(e){return e.small&&"\n border-radius: ".concat((d.iI/2+s.Al)/2,"px;\n height: ").concat(s.Al+d.iI/2+2,"px;\n padding: ").concat(d.iI/4,"px ").concat(d.iI,"px;\n ")}),(function(e){return e.border&&"\n border: 1px solid ".concat((e.theme.content||c.Z.content).muted,";\n ")}));n.Z=function(e){var n=e.border,t=e.children,i=e.disabled,c=e.label,s=e.onClick,h=e.primary,g=e.small;return(0,p.jsx)(f,{border:n,primary:h,small:g,children:(0,p.jsx)(r.Z,{basic:!0,disabled:i,noBackground:!0,noPadding:!0,onClick:s,transparent:!0,children:(0,p.jsxs)(o.ZP,{alignItems:"center",children:[t,c&&(0,p.jsx)(u.ZP,{small:g,children:c}),!i&&s&&(0,p.jsx)(l.Z,{ml:1,children:(0,p.jsx)(a.x8,{default:h,muted:!h,size:g?d.iI:1.25*d.iI})})]})})})}},87372:function(e,n,t){"use strict";var i,r,o,l,u,c,a,d,s=t(82394),p=t(26304),f=t(26653),h=t(38626),g=t(33591),m=t(23831),v=t(2005),b=t(31012),y=t(19711),x=t(49125),j=t(86673),w=t(28598),_=["children","condensed","inline","level","marketing","spacingBelow"];function Z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function O(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach((function(n){(0,s.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var k=(0,h.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],y.IH,(function(e){return e.color&&"\n color: ".concat(e.color,"\n ")}),(function(e){return e.yellow&&"\n color: ".concat((e.theme.accent||m.Z.accent).yellow,";\n ")}),(function(e){return e.center&&"\n text-align: center;\n "}),(function(e){return!e.monospace&&0===Number(e.weightStyle)&&"\n font-family: ".concat(v.iI,";\n ")}),(function(e){return!e.monospace&&1===Number(e.weightStyle)&&"\n font-family: ".concat(v.LX,";\n ")}),(function(e){return!e.monospace&&2===Number(e.weightStyle)&&"\n font-family: ".concat(v.LX,";\n ")}),(function(e){return!e.monospace&&3===Number(e.weightStyle)&&"\n font-family: ".concat(v.ry,";\n ")}),(function(e){return!e.monospace&&4===Number(e.weightStyle)&&"\n font-family: ".concat(v.YC,";\n ")}),(function(e){return!e.monospace&&5===Number(e.weightStyle)&&"\n font-family: ".concat(v.nF,";\n ")}),(function(e){return!e.monospace&&(6===Number(e.weightStyle)||e.bold)&&"\n font-family: ".concat(v.nF,";\n ")}),(function(e){return!e.monospace&&7===Number(e.weightStyle)&&"\n font-family: ".concat(v.nF,";\n ")}),(function(e){return!e.monospace&&8===Number(e.weightStyle)&&"\n font-family: ".concat(v.nF,";\n ")}),(function(e){return e.lineHeightAuto&&"\n line-height: normal !important;\n "})),C=h.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(e){return"\n color: ".concat((e.theme.content||m.Z.content).active,";\n ")})),I=h.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],k,g.media.md(i||(i=(0,f.Z)(["\n ","\n "])),b.aQ),g.media.lg(r||(r=(0,f.Z)(["\n ","\n "])),b.aQ),g.media.xl(o||(o=(0,f.Z)(["\n ","\n "])),b.aQ)),P=h.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],k,b.MJ),S=h.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],k,g.media.xs(l||(l=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI),g.media.sm(u||(u=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI),g.media.md(c||(c=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI),g.media.lg(a||(a=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI),g.media.xl(d||(d=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI)),N=h.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],k,b.BL),A=h.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],k),E=h.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],k),D=h.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],k),T=h.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],k,(function(e){return 1===e.level&&"\n ".concat(b.MJ,"\n ")}),(function(e){return 2===e.level&&"\n ".concat(b.BL,"\n ")}),(function(e){return 3===e.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(e){return 4===e.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),z=function(e){var n,t=e.children,i=e.condensed,r=e.inline,o=e.level,l=e.marketing,u=e.spacingBelow,c=(0,p.Z)(e,_);r?n=T:0===Number(o)?n=I:1===Number(o)?n=l?S:P:2===Number(o)?n=N:3===Number(o)?n=A:4===Number(o)?n=E:5===Number(o)&&(n=D);var a=(0,w.jsxs)(n,O(O({},c),{},{level:o,children:[u&&(0,w.jsx)(j.Z,{mb:i?2:3,children:t}),!u&&t]}));return r?a:(0,w.jsx)(C,{children:a})};z.defaultProps={level:3,weightStyle:6},n.Z=z},90211:function(e,n,t){"use strict";t.d(n,{RA:function(){return d},kC:function(){return s},vg:function(){return b},kE:function(){return _},Mp:function(){return p},Pb:function(){return c},HW:function(){return x},wX:function(){return f},x6:function(){return h},_6:function(){return g},zf:function(){return y},Y6:function(){return w},wE:function(){return Z},J3:function(){return m},We:function(){return a},QV:function(){return j},C5:function(){return v}});var i=t(75582),r=t(17717),o=["aged","ancient","autumn","billowing","bitter","black","blue","bold","broken","cold","cool","crimson","damp","dark","dawn","delicate","divine","dry","empty","falling","floral","fragrant","frosty","green","hidden","holy","icy","late","lingering","little","lively","long","misty","morning","muddy","nameless","old","patient","polished","proud","purple","quiet","red","restless","rough","shy","silent","small","snowy","solitary","sparkling","spring","still","summer","throbbing","twilight","wandering","weathered","white","wild","winter","wispy","withered","young"],l=(t(92083),["bird","breeze","brook","bush","butterfly","cherry","cloud","darkness","dawn","dew","dream","dust","feather","field","fire","firefly","flower","fog","forest","frog","frost","glade","glitter","grass","haze","hill","lake","leaf","meadow","moon","morning","mountain","night","paper","pine","pond","rain","resonance","river","sea","shadow","shape","silence","sky","smoke","snow","snowflake","sound","star","sun","sun","sunset","surf","thunder","tree","violet","voice","water","water","waterfall","wave","wildflower","wind","wood"]),u=t(24224);function c(e){if(!e)return!1;try{JSON.parse(e)}catch(n){return!1}return!0}function a(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";return e.split(" ").join(n)}function d(e){return e.split(" ").join("_")}function s(e){return e?e.charAt(0).toUpperCase()+e.slice(1):""}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return String((new Date).getTime()*e)}function f(e){return e.charAt(0).toLowerCase()+e.slice(1)}function h(e){if(null===e||"undefined"===typeof e)return"";var n=e.toString().split("."),t=(0,i.Z)(n,2),r=t[0],o=t[1],l=r.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",");return o?"".concat(l,".").concat(o):l}function g(e,n){var t,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=n,o=void 0!==r&&null!==r;if(o||(r=2),1===r)t=e;else{var l=e.length,u=e[l-1];t="y"===u&&"day"!==e?"".concat(e.slice(0,l-1),"ies"):"".concat(e,"s"===u?"es":"s")}if(o){var c=i?h(r):r;return"".concat(c," ").concat(t)}return t}function m(e){return null===e||void 0===e?void 0:e.replace(/_/g," ")}function v(e){var n=e.length;return"ies"===e.slice(n-3,n)?"".concat(e.slice(0,n-3),"y"):"es"===e.slice(n-2,n)&&"ces"!==e.slice(n-3,n)?e.slice(0,n-2):e.slice(0,n-1)}function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return s(m(e.toLowerCase()))}function y(e){var n,t=[["second",60],["minute",60],["hour",24],["day",7],["week",4],["month",12],["year",null]];return t.forEach((function(r,o){if(!n){var l=(0,i.Z)(r,2),u=l[0],c=l[1],a=t.slice(0,o).reduce((function(e,n){return e*Number(n[1])}),1);e<Number(c)*a&&(n=g(u,Math.round(e/a)))}})),n}function x(e){return"undefined"!==typeof e&&null!==e&&!isNaN(e)}function j(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,t=Math.pow(10,n);return Math.round((e||0)*t)/t}function w(){return"".concat((0,u.mp)(o)," ").concat((0,u.mp)(l))}function _(e){return null===e||void 0===e?void 0:e.toLowerCase().replace(/\W+/g,"_")}function Z(e){var n,t=e.split(r.sep),i=t[t.length-1].split(".");return n=1===i.length?i[0]:i.slice(0,-1).join("."),t.slice(0,t.length-1).concat(n).join(r.sep)}}}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9605],{17717:function(e,n,t){var i=t(554);!function(){"use strict";var n={977:function(e){function n(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function t(e,n){for(var t,i="",r=0,o=-1,l=0,u=0;u<=e.length;++u){if(u<e.length)t=e.charCodeAt(u);else{if(47===t)break;t=47}if(47===t){if(o===u-1||1===l);else if(o!==u-1&&2===l){if(i.length<2||2!==r||46!==i.charCodeAt(i.length-1)||46!==i.charCodeAt(i.length-2))if(i.length>2){var c=i.lastIndexOf("/");if(c!==i.length-1){-1===c?(i="",r=0):r=(i=i.slice(0,c)).length-1-i.lastIndexOf("/"),o=u,l=0;continue}}else if(2===i.length||1===i.length){i="",r=0,o=u,l=0;continue}n&&(i.length>0?i+="/..":i="..",r=2)}else i.length>0?i+="/"+e.slice(o+1,u):i=e.slice(o+1,u),r=u-o-1;o=u,l=0}else 46===t&&-1!==l?++l:l=-1}return i}var r={resolve:function(){for(var e,r="",o=!1,l=arguments.length-1;l>=-1&&!o;l--){var u;l>=0?u=arguments[l]:(void 0===e&&(e=i.cwd()),u=e),n(u),0!==u.length&&(r=u+"/"+r,o=47===u.charCodeAt(0))}return r=t(r,!o),o?r.length>0?"/"+r:"/":r.length>0?r:"."},normalize:function(e){if(n(e),0===e.length)return".";var i=47===e.charCodeAt(0),r=47===e.charCodeAt(e.length-1);return 0!==(e=t(e,!i)).length||i||(e="."),e.length>0&&r&&(e+="/"),i?"/"+e:e},isAbsolute:function(e){return n(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t<arguments.length;++t){var i=arguments[t];n(i),i.length>0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":r.normalize(e)},relative:function(e,t){if(n(e),n(t),e===t)return"";if((e=r.resolve(e))===(t=r.resolve(t)))return"";for(var i=1;i<e.length&&47===e.charCodeAt(i);++i);for(var o=e.length,l=o-i,u=1;u<t.length&&47===t.charCodeAt(u);++u);for(var c=t.length-u,a=l<c?l:c,d=-1,s=0;s<=a;++s){if(s===a){if(c>a){if(47===t.charCodeAt(u+s))return t.slice(u+s+1);if(0===s)return t.slice(u+s)}else l>a&&(47===e.charCodeAt(i+s)?d=s:0===s&&(d=0));break}var p=e.charCodeAt(i+s);if(p!==t.charCodeAt(u+s))break;47===p&&(d=s)}var f="";for(s=i+d+1;s<=o;++s)s!==o&&47!==e.charCodeAt(s)||(0===f.length?f+="..":f+="/..");return f.length>0?f+t.slice(u+d):(u+=d,47===t.charCodeAt(u)&&++u,t.slice(u))},_makeLong:function(e){return e},dirname:function(e){if(n(e),0===e.length)return".";for(var t=e.charCodeAt(0),i=47===t,r=-1,o=!0,l=e.length-1;l>=1;--l)if(47===(t=e.charCodeAt(l))){if(!o){r=l;break}}else o=!1;return-1===r?i?"/":".":i&&1===r?"//":e.slice(0,r)},basename:function(e,t){if(void 0!==t&&"string"!==typeof t)throw new TypeError('"ext" argument must be a string');n(e);var i,r=0,o=-1,l=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var u=t.length-1,c=-1;for(i=e.length-1;i>=0;--i){var a=e.charCodeAt(i);if(47===a){if(!l){r=i+1;break}}else-1===c&&(l=!1,c=i+1),u>=0&&(a===t.charCodeAt(u)?-1===--u&&(o=i):(u=-1,o=c))}return r===o?o=c:-1===o&&(o=e.length),e.slice(r,o)}for(i=e.length-1;i>=0;--i)if(47===e.charCodeAt(i)){if(!l){r=i+1;break}}else-1===o&&(l=!1,o=i+1);return-1===o?"":e.slice(r,o)},extname:function(e){n(e);for(var t=-1,i=0,r=-1,o=!0,l=0,u=e.length-1;u>=0;--u){var c=e.charCodeAt(u);if(47!==c)-1===r&&(o=!1,r=u+1),46===c?-1===t?t=u:1!==l&&(l=1):-1!==t&&(l=-1);else if(!o){i=u+1;break}}return-1===t||-1===r||0===l||1===l&&t===r-1&&t===i+1?"":e.slice(t,r)},format:function(e){if(null===e||"object"!==typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,n){var t=n.dir||n.root,i=n.base||(n.name||"")+(n.ext||"");return t?t===n.root?t+i:t+e+i:i}("/",e)},parse:function(e){n(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var i,r=e.charCodeAt(0),o=47===r;o?(t.root="/",i=1):i=0;for(var l=-1,u=0,c=-1,a=!0,d=e.length-1,s=0;d>=i;--d)if(47!==(r=e.charCodeAt(d)))-1===c&&(a=!1,c=d+1),46===r?-1===l?l=d:1!==s&&(s=1):-1!==l&&(s=-1);else if(!a){u=d+1;break}return-1===l||-1===c||0===s||1===s&&l===c-1&&l===u+1?-1!==c&&(t.base=t.name=0===u&&o?e.slice(1,c):e.slice(u,c)):(0===u&&o?(t.name=e.slice(1,l),t.base=e.slice(1,c)):(t.name=e.slice(u,l),t.base=e.slice(u,c)),t.ext=e.slice(l,c)),u>0?t.dir=e.slice(0,u-1):o&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,e.exports=r}},t={};function r(e){var i=t[e];if(void 0!==i)return i.exports;var o=t[e]={exports:{}},l=!0;try{n[e](o,o.exports,r),l=!1}finally{l&&delete t[e]}return o.exports}r.ab="//";var o=r(977);e.exports=o}()},38639:function(e,n,t){"use strict";t.d(n,{EN:function(){return k},FX:function(){return C},HS:function(){return j},Nk:function(){return h},Rd:function(){return f},SL:function(){return O},Tj:function(){return Z},UE:function(){return _},Yf:function(){return m},ZG:function(){return d},bC:function(){return g},n5:function(){return p},n8:function(){return w},w5:function(){return x},wj:function(){return b},wl:function(){return v},ze:function(){return y}});var i=t(38626),r=t(23831),o=t(73942),l=t(3055),u=t(49125),c=t(90880),a=t(37391),d=2.5*u.iI,s=40*u.iI,p=10*u.iI,f=i.default.div.withConfig({displayName:"indexstyle__ContainedStyle",componentId:"sc-8sk2qr-0"})([""," overflow:auto;"," "," ",""],a.w5,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).page,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height-p,"px;\n ")}),(function(e){return e.width&&"\n width: ".concat(e.width-p,"px;\n ")})),h=i.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-8sk2qr-1"})(["height:100%;position:relative;"]),g=i.default.div.withConfig({displayName:"indexstyle__NavigationStyle",componentId:"sc-8sk2qr-2"})(["position:fixed;width:","px;z-index:1;"," "," ",""],s,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).panel,";\n border-right: 1px solid ").concat((e.theme.borders||r.Z.borders).light,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height-p,"px;\n ")}),(function(e){return!e.height&&"\n height: 100%;\n "})),m=i.default.div.withConfig({displayName:"indexstyle__TabsStyle",componentId:"sc-8sk2qr-3"})(["padding-bottom:","px;padding-left:","px;padding-right:","px;padding-top:","px;",""],1*u.iI,u.cd*u.iI,u.cd*u.iI,1*u.iI,(function(e){return"\n border-bottom: 1px solid ".concat((e.theme.borders||r.Z.borders).light,";\n ")})),v=i.default.div.withConfig({displayName:"indexstyle__LinksContainerStyle",componentId:"sc-8sk2qr-4"})([""," overflow:auto;position:fixed;width:","px;",""],a.w5,s,(function(e){return"\n height: calc(100% - ".concat(55+(null!==e&&void 0!==e&&e.contained?p:l.Mz)+((null===e||void 0===e?void 0:e.heightOffset)||0),"px);\n ")})),b=i.default.div.withConfig({displayName:"indexstyle__NavLinkStyle",componentId:"sc-8sk2qr-5"})([""," padding-bottom:","px;padding-left:","px;padding-right:","px;padding-top:","px;&:hover{cursor:pointer;}",""],(0,c.eR)(),1*u.iI,u.cd*u.iI,u.cd*u.iI,1*u.iI,(function(e){return e.selected&&"\n background-color: ".concat((e.theme.background||r.Z.background).codeTextarea,";\n ")})),y=i.default.div.withConfig({displayName:"indexstyle__IconStyle",componentId:"sc-8sk2qr-6"})([""," border-radius:","px;height:","px;margin-right:","px;padding:","px;width:","px;"," ",""],(0,c.eR)(),o.n_,5*u.iI,1.25*u.iI,1.25*u.iI,5*u.iI,(function(e){return!e.backgroundColor&&"\n background-color: ".concat((e.theme.background||r.Z.background).chartBlock,";\n ")}),(function(e){return e.backgroundColor&&"\n background-color: ".concat(e.backgroundColor,";\n ")})),x=i.default.div.withConfig({displayName:"indexstyle__ContentStyle",componentId:"sc-8sk2qr-7"})(["margin-left:","px;"],s),j=i.default.div.withConfig({displayName:"indexstyle__SubheaderStyle",componentId:"sc-8sk2qr-8"})(["padding:","px;",""],u.cd*u.iI,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).panel,";\n border-bottom: 1px solid ").concat((e.theme.borders||r.Z.borders).light,";\n ")})),w=i.default.div.withConfig({displayName:"indexstyle__CardsStyle",componentId:"sc-8sk2qr-9"})(["display:flex;flex-wrap:wrap;padding:","px;"],.75*u.iI),_=i.default.div.withConfig({displayName:"indexstyle__CardStyle",componentId:"sc-8sk2qr-10"})(["border-radius:","px;margin:","px;padding:","px;width:","px;&:hover{cursor:pointer;}",""],o.n_,.75*u.iI,2.5*u.iI,50*u.iI,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).panel,";\n border: 1px solid ").concat((e.theme.background||r.Z.background).chartBlock,";\n box-shadow: ").concat((e.theme.shadow||r.Z.shadow).frame,";\n ")})),Z=i.default.div.withConfig({displayName:"indexstyle__CardTitleStyle",componentId:"sc-8sk2qr-11"})(["height:","px;"],2.5*u.iI),O=i.default.div.withConfig({displayName:"indexstyle__CardDescriptionStyle",componentId:"sc-8sk2qr-12"})(["height:","px;margin-top:","px;"],2.5*u.iI*2,1*u.iI),k=i.default.div.withConfig({displayName:"indexstyle__TagsStyle",componentId:"sc-8sk2qr-13"})(["height:","px;margin-top:","px;overflow:hidden;"],3.5*u.iI,.5*u.iI),C=i.default.div.withConfig({displayName:"indexstyle__BreadcrumbsStyle",componentId:"sc-8sk2qr-14"})(["padding-bottom:","px;padding-top:","px;",""],1*u.iI,1*u.iI,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).panel,";\n border-bottom: 1px solid ").concat((e.theme.borders||r.Z.borders).light,";\n ")}))},41422:function(e,n,t){"use strict";t.d(n,{Nk:function(){return c},Yf:function(){return d},bC:function(){return a},ig:function(){return s},w5:function(){return p}});var i=t(38626),r=t(23831),o=t(49125),l=t(38639),u=(o.iI,40*o.iI),c=i.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-axgvn9-0"})(["height:100%;position:relative;"]),a=i.default.div.withConfig({displayName:"indexstyle__NavigationStyle",componentId:"sc-axgvn9-1"})(["overflow:auto;position:fixed;width:","px;z-index:1;"," "," ",""],u,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).panel,";\n border-right: 1px solid ").concat((e.theme.borders||r.Z.borders).light,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height-l.n5,"px;\n ")}),(function(e){return!e.height&&"\n height: 100%;\n "})),d=i.default.div.withConfig({displayName:"indexstyle__TabsStyle",componentId:"sc-axgvn9-2"})(["padding-bottom:","px;padding-left:","px;padding-right:","px;padding-top:","px;width:100%;",""],1*o.iI,o.cd*o.iI,o.cd*o.iI,1*o.iI,(function(e){return"\n border-bottom: 1px solid ".concat((e.theme.borders||r.Z.borders).light,";\n ")})),s=i.default.div.withConfig({displayName:"indexstyle__ButtonsStyle",componentId:"sc-axgvn9-3"})(["margin-top:","px;width:100%;",""],o.cd*o.iI,(function(e){return"\n border-top: 1px solid ".concat((e.theme.borders||r.Z.borders).light,";\n ")})),p=i.default.div.withConfig({displayName:"indexstyle__ContentStyle",componentId:"sc-axgvn9-4"})(["margin-left:","px;"],u)},1210:function(e,n,t){"use strict";t.d(n,{Z:function(){return O}});var i=t(82394),r=t(21831),o=t(82684),l=t(47999),u=t(49894),c=t(93461),a=t(57384),d=t(41424),s=t(72454),p=t(28598);function f(e,n){var t=e.children;return(0,p.jsx)(s.HS,{ref:n,children:t})}var h=o.forwardRef(f),g=t(32063),m=t(85019),v=t(82531),b=t(66166),y=t(3055),x=t(49125),j=t(91427),w=t(24141);function _(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function Z(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?_(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):_(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var O=function(e){var n,t=e.addProjectBreadcrumbToCustomBreadcrumbs,i=e.after,f=e.afterHidden,_=e.afterWidth,O=e.afterWidthOverride,k=e.before,C=e.beforeWidth,I=e.breadcrumbs,P=e.children,S=e.errors,N=e.headerMenuItems,A=e.headerOffset,E=e.mainContainerHeader,D=e.navigationItems,T=e.setErrors,z=e.subheaderChildren,M=e.title,H=e.uuid,q=(0,w.i)().width,L="dashboard_after_width_".concat(H),F="dashboard_before_width_".concat(H),B=(0,o.useRef)(null),R=(0,o.useState)(O?_:(0,j.U2)(L,_)),U=R[0],W=R[1],V=(0,o.useState)(!1),J=V[0],G=V[1],Y=(0,o.useState)(k?Math.max((0,j.U2)(F,C),13*x.iI):null),Q=Y[0],X=Y[1],K=(0,o.useState)(!1),$=K[0],ee=K[1],ne=(0,o.useState)(null)[1],te=v.ZP.projects.list({},{revalidateOnFocus:!1}).data,ie=null===te||void 0===te?void 0:te.projects,re={label:function(){var e;return null===ie||void 0===ie||null===(e=ie[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},oe=[];I?(t&&oe.push(re),oe.push.apply(oe,(0,r.Z)(I))):(null===ie||void 0===ie?void 0:ie.length)>=1&&oe.push.apply(oe,[re,{bold:!0,label:function(){return M}}]),(0,o.useEffect)((function(){null===B||void 0===B||!B.current||J||$||null===ne||void 0===ne||ne(B.current.getBoundingClientRect().width)}),[J,U,$,Q,B,ne,q]),(0,o.useEffect)((function(){J||(0,j.t8)(L,U)}),[f,J,U,L]),(0,o.useEffect)((function(){$||(0,j.t8)(F,Q)}),[$,Q,F]);var le=(0,b.Z)(_);return(0,o.useEffect)((function(){O&&le!==_&&W(_)}),[O,_,le]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(a.Z,{title:M}),(0,p.jsx)(d.Z,{breadcrumbs:oe,menuItems:N,project:null===ie||void 0===ie?void 0:ie[0],version:null===ie||void 0===ie||null===(n=ie[0])||void 0===n?void 0:n.version}),(0,p.jsxs)(s.Nk,{children:[0!==(null===D||void 0===D?void 0:D.length)&&(0,p.jsx)(s.lm,{showMore:!0,children:(0,p.jsx)(m.Z,{navigationItems:D,showMore:!0})}),(0,p.jsx)(c.Z,{flex:1,flexDirection:"column",children:(0,p.jsxs)(g.Z,{after:i,afterHeightOffset:y.Mz,afterHidden:f,afterMousedownActive:J,afterWidth:U,before:k,beforeHeightOffset:y.Mz,beforeMousedownActive:$,beforeWidth:s.k1+(k?Q:0),headerOffset:A,hideAfterCompletely:!0,leftOffset:k?s.k1:null,mainContainerHeader:E,mainContainerRef:B,setAfterMousedownActive:G,setAfterWidth:W,setBeforeMousedownActive:ee,setBeforeWidth:X,children:[z&&(0,p.jsx)(h,{children:z}),P]})})]}),S&&(0,p.jsx)(l.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===T||void 0===T?void 0:T(null)},children:(0,p.jsx)(u.Z,Z(Z({},S),{},{onClose:function(){return null===T||void 0===T?void 0:T(null)}}))})]})}},83766:function(e,n,t){"use strict";var i=t(82394),r=t(86673),o=t(87815),l=t(19711),u=t(82944),c=t(49125),a=t(28598);function d(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?d(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.objectAttributes,t=e.originalAttributes,d=e.setObjectAttributes;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(r.Z,{mb:1,px:c.cd,children:[(0,a.jsx)(l.ZP,{bold:!0,children:"Outdated after"}),(0,a.jsx)(l.ZP,{muted:!0,small:!0,children:"After the global data product successfully completes running, how long after that will the global data product be outdated?"})]}),(0,a.jsx)(o.Z,{columnFlex:[null,1],columns:[{uuid:"Unit"},{uuid:"Value"}],rows:[{uuid:"seconds"},{uuid:"weeks"},{uuid:"months"},{uuid:"years"}].map((function(e){var r,o,c=e.uuid,p=null===n||void 0===n||null===(r=n.outdated_after)||void 0===r?void 0:r[c],f=null===t||void 0===t||null===(o=t.outdated_after)||void 0===o?void 0:o[c];return[(0,a.jsxs)(l.ZP,{default:!0,monospace:!0,children:[c," ",f&&(0,a.jsxs)(l.ZP,{inline:!0,monospace:!0,muted:!0,children:["(default: ",f,")"]})]},"label-".concat(c)),(0,a.jsx)(u.Z,{compact:!0,monospace:!0,onChange:function(e){return d((function(n){var t;return s(s({},n),{},{outdated_after:s(s({},null===n||void 0===n?void 0:n.outdated_after),{},(0,i.Z)({},c,0===(null===(t=e.target.value)||void 0===t?void 0:t.length)?null:Number(e.target.value)))})}))},placeholder:"Enter a number",primary:!0,setContentOnMount:!0,small:!0,type:"number",value:"undefined"===typeof p||null===p?"":p},"input-".concat(c))]}))})]})}},31682:function(e,n,t){"use strict";var i=t(82394),r=t(55378),o=t(86673),l=t(87815),u=t(19711),c=t(82944),a=t(49125),d=t(90211),s=t(24224),p=t(28598);function f(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function 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,i.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.objectAttributes,t=e.originalAttributes,f=e.setObjectAttributes;return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(o.Z,{mb:1,px:a.cd,children:[(0,p.jsxs)(u.ZP,{bold:!0,children:["Outdated starting at ",(0,p.jsx)(u.ZP,{inline:!0,muted:!0,children:"(optional)"})]}),(0,p.jsx)(u.ZP,{muted:!0,small:!0,children:"If enough time has passed since the last global data product has ran successfully and the global data product is determined to be outdated, then you can configure it to be outdated at a specific date or time."}),(0,p.jsx)("div",{style:{marginTop:4},children:(0,p.jsxs)(u.ZP,{muted:!0,small:!0,children:["For example, let\u2019s say the global data product is outdated after 12 hours. The last successful run was yesterday at 18:00. The global data product will be outdated today at 06:00. However, if the ",(0,p.jsx)(u.ZP,{bold:!0,inline:!0,muted:!0,small:!0,children:"Outdated starting at"})," has a value of 17 for ",(0,p.jsx)(u.ZP,{bold:!0,inline:!0,muted:!0,small:!0,children:"Hour of day"}),", then the global data product won\u2019t run again until today at 17:00."]})})]}),(0,p.jsx)(l.Z,{columnFlex:[null,1],columns:[{uuid:"Unit"},{uuid:"Value"}],rows:[{uuid:"second_of_minute",values:(0,s.w6)(60).map((function(e,n){return{uuid:n,value:n}}))},{uuid:"minute_of_hour",values:(0,s.w6)(60).map((function(e,n){return{uuid:n,value:n}}))},{uuid:"hour_of_day",values:(0,s.w6)(24).map((function(e,n){return{uuid:n,value:n}}))},{uuid:"day_of_week",values:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"].map((function(e,n){return{uuid:e,value:n}}))},{uuid:"day_of_month",values:(0,s.w6)(31).map((function(e,n){return{uuid:n+1,value:n+1}}))},{uuid:"day_of_year",values:(0,s.w6)(365).map((function(e,n){return{uuid:n+1,value:n+1}}))},{uuid:"week_of_month",values:(0,s.w6)(5).map((function(e,n){return{uuid:n+1,value:n+1}}))},{uuid:"week_of_year",values:(0,s.w6)(52).map((function(e,n){return{uuid:n+1,value:n+1}}))},{uuid:"month_of_year",values:["January","February","March","April","May","June","July","August","September","October","November","December"].map((function(e,n){return{uuid:e,value:n+1}}))}].map((function(e){var o,l,a,s=e.uuid,g=e.values,m=null===n||void 0===n||null===(o=n.outdated_starting_at)||void 0===o?void 0:o[s],v=null===t||void 0===t||null===(l=t.outdated_starting_at)||void 0===l?void 0:l[s],b={compact:!0,key:"outdated-starting-at-input-".concat(s),monospace:!0,onChange:function(e){return f((function(n){var t;return h(h({},n),{},{outdated_starting_at:h(h({},null===n||void 0===n?void 0:n.outdated_starting_at),{},(0,i.Z)({},s,0===(null===(t=e.target.value)||void 0===t?void 0:t.length)?null:Number(e.target.value)))})}))},primary:!0,small:!0,value:"undefined"===typeof m||null===m?"":m};return a=g?(0,p.jsx)(r.Z,h(h({},b),{},{placeholder:"Select a value",children:g.map((function(e){var n=e.uuid,t=e.value;return(0,p.jsx)("option",{value:t,children:n},t)}))})):(0,p.jsx)(c.Z,h(h({},b),{},{placeholder:"Enter a number",setContentOnMount:!0,type:"number"})),[(0,p.jsxs)(u.ZP,{default:!0,monospace:!0,children:[(0,d.vg)(s)," ",v&&(0,p.jsxs)(u.ZP,{inline:!0,monospace:!0,muted:!0,children:["(default: ",v,")"]})]},"outdated-starting-at-label-".concat(s)),a]}))})]})}},21978:function(e,n,t){"use strict";var i=t(82394),r=t(12691),o=t.n(r),l=t(38341),u=t(10919),c=t(86673),a=t(87815),d=t(19711),s=t(82944),p=t(49125),f=t(28598);function h(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function g(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?h(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):h(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.blocks,t=e.objectAttributes,r=e.originalAttributes,h=e.setObjectAttributes;return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(c.Z,{mb:1,px:p.cd,children:[(0,f.jsx)(d.ZP,{bold:!0,children:"Block data to output"}),(0,f.jsx)(d.ZP,{muted:!0,small:!0,children:"The data output from the block(s) you select below will be the data product that is returned when a downstream entity is requesting data from this global data product."}),(0,f.jsx)("div",{style:{marginTop:4},children:(0,f.jsx)(d.ZP,{muted:!0,small:!0,children:"When requesting data from this global data product, the selected block(s) will return data from its most recent partition. You can override this by adding a value in the partitions setting. For example, if you set the partitions value to 5, then the selected block will return data from its 5 most recent partitions. If you set the partitions value to 0, then all the partitions will be returned."})})]}),(0,f.jsx)(a.Z,{columnFlex:[null,1,null],columns:[{label:function(){return""},uuid:"selected"},{uuid:"Block UUID"},{uuid:"Partitions"}],rows:null===n||void 0===n?void 0:n.map((function(e){var n,c=e.uuid,a=null===t||void 0===t?void 0:t.settings,p=null===a||void 0===a?void 0:a[c],m=null===p||void 0===p?void 0:p.partitions,v=null===r||void 0===r||null===(n=r.settings)||void 0===n?void 0:n[c],b=null===v||void 0===v?void 0:v.partitions,y=!!p||!!v;return[(0,f.jsx)(l.Z,{checked:y,onClick:function(){return function(e){h((function(n){var t=(null===n||void 0===n?void 0:n.settings)||{};return e?t[c]={}:null===t||void 0===t||delete t[c],g(g({},n),{},{settings:t})}))}(!y)}},"selected--".concat(c)),(0,f.jsxs)("div",{children:[(0,f.jsx)(o(),{as:"/pipelines/".concat(null===t||void 0===t?void 0:t.object_uuid,"/edit?block_uuid=").concat(c),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,f.jsx)(u.Z,{monospace:!0,openNewWindow:!0,sameColorAsText:!0,children:c})})," ",b&&(0,f.jsxs)(d.ZP,{inline:!0,monospace:!0,muted:!0,children:["(default: ",b,")"]})]},"block-uuid-".concat(c)),(0,f.jsx)(s.Z,{compact:!0,monospace:!0,onChange:function(e){return h((function(n){var t,r;return g(g({},n),{},{settings:g(g({},null===n||void 0===n?void 0:n.settings),{},(0,i.Z)({},c,g(g({},null===n||void 0===n||null===(t=n.settings)||void 0===t?void 0:t[c]),{},{partitions:0===(null===(r=e.target.value)||void 0===r?void 0:r.length)?null:Number(e.target.value)})))})}))},placeholder:"1",primary:!0,setContentOnMount:!0,small:!0,type:"number",value:"undefined"===typeof m||null===m?"":m},"input-".concat(c))]}))})]})}},7952:function(e,n,t){"use strict";var i=t(82394),r=t(75582),o=t(12691),l=t.n(o),u=t(21764),c=t(82684),a=t(83455),d=t(34376),s=t(60328),p=t(34744),f=t(93461),h=t(67971),g=t(30119),m=t(87372),v=t(10919),b=t(83766),y=t(31682),x=t(97496),j=t(55378),w=t(21978),_=t(86673),Z=t(19711),O=t(82944),k=t(97225),C=t(32063),I=t(82531),P=t(66166),S=t(41422),N=t(49125),A=t(72454),E=t(90211),D=t(96510),T=t(9728),z=t(28598);function M(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function H(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}n.Z=function(e){var n=e.globalDataProduct,t=e.isNew,i=(0,d.useRouter)(),o=(0,T.VI)(null,{},[],{uuid:"GlobalDataProductDetail"}),M=(0,r.Z)(o,1)[0],q=(0,c.useState)(!1),L=q[0],F=q[1],B=(0,c.useState)(600),R=B[0],U=B[1],W=(0,c.useState)(!1),V=(W[0],W[1]),J=(0,c.useState)(null),G=J[0],Y=J[1],Q=(0,c.useCallback)((function(e){V(!0),Y(e)}),[]),X=(0,P.Z)(n);(0,c.useEffect)((function(){null!==n&&void 0!==n&&n.uuid&&(null===X||void 0===X?void 0:X.uuid)===(null===n||void 0===n?void 0:n.uuid)||Y(n)}),[n,X]);var K=(0,c.useMemo)((function(){return!(null!==G&&void 0!==G&&G.uuid)}),[G]),$=(0,a.Db)(I.ZP.global_data_products.useUpdate(t?null===G||void 0===G?void 0:G.uuid:null===n||void 0===n?void 0:n.uuid),{onSuccess:function(e){return(0,D.wD)(e,{callback:function(e){var r=e.global_data_product;t||null!==n&&void 0!==n&&n.uuid&&(null===r||void 0===r?void 0:r.uuid)!==(null===n||void 0===n?void 0:n.uuid)?i.replace("/global-data-products/[...slug]","/global-data-products/".concat(null===r||void 0===r?void 0:r.uuid)):(Y(r),V(!1),u.Am.success("Global data product successfully saved.",{position:u.Am.POSITION.BOTTOM_RIGHT,toastId:"custom_pipeline_template"}))},onErrorCallback:function(e,n){return M({errors:n,response:e})}})}}),ee=(0,r.Z)($,2),ne=ee[0],te=ee[1].isLoading,ie=I.ZP.pipelines.detail(g.b.PIPELINE===(null===n||void 0===n?void 0:n.object_type)?null===n||void 0===n?void 0:n.object_uuid:null).data,re=(0,c.useMemo)((function(){return null===ie||void 0===ie?void 0:ie.pipeline}),[ie]),oe=(0,c.useMemo)((function(){return(null===re||void 0===re?void 0:re.blocks)||[]}),[re]),le=I.ZP.pipelines.list().data,ue=(0,c.useMemo)((function(){return(null===le||void 0===le?void 0:le.pipelines)||[]}),[le]),ce=(0,c.useMemo)((function(){return(0,z.jsxs)(h.ZP,{flexDirection:"column",fullHeight:!0,children:[(0,z.jsxs)(f.Z,{flexDirection:"column",children:[(0,z.jsxs)(_.Z,{mt:N.Mq,px:N.cd,children:[(0,z.jsxs)(_.Z,{mb:1,children:[(0,z.jsx)(Z.ZP,{bold:!0,children:"UUID"}),(0,z.jsx)(Z.ZP,{muted:!0,small:!0,children:"Unique identifier for this global data product. This value must be unique across all global data products."})]}),(0,z.jsx)(O.Z,{monospace:!0,onChange:function(e){return Q((function(n){return H(H({},n),{},{uuid:e.target.value})}))},placeholder:"e.g. a unique identifier",primary:!0,setContentOnMount:!0,value:(null===G||void 0===G?void 0:G.uuid)||""})]}),(0,z.jsxs)(_.Z,{mt:N.Mq,px:N.cd,children:[(0,z.jsxs)(_.Z,{mb:1,children:[(0,z.jsx)(Z.ZP,{bold:!0,children:"Object type"}),(0,z.jsx)(Z.ZP,{muted:!0,small:!0,children:"Pipeline, block, etc. Currently, only pipeline is supported."})]}),(0,z.jsx)(j.Z,{onChange:function(e){return Q((function(n){return H(H({},n),{},{object_type:e.target.value})}))},placeholder:"Only pipeline is currently supported",primary:!0,value:(null===G||void 0===G?void 0:G.object_type)||"",children:[g.b.PIPELINE].map((function(e){return(0,z.jsx)("option",{value:e,children:(0,E.kC)(e)},e)}))})]}),(0,z.jsxs)(_.Z,{mt:N.Mq,px:N.cd,children:[(0,z.jsxs)(_.Z,{mb:1,children:[(0,z.jsx)(Z.ZP,{bold:!0,children:"Object UUID"}),(0,z.jsxs)(Z.ZP,{muted:!0,small:!0,children:["The UUID of the ",(null===G||void 0===G?void 0:G.object_type)||"object type"," that this global data product represents."]})]}),(0,z.jsx)(j.Z,{monospace:!0,onChange:function(e){return Q((function(n){return H(H({},n),{},{object_uuid:e.target.value})}))},placeholder:"Select object UUID",primary:!0,value:(null===G||void 0===G?void 0:G.object_uuid)||"",children:null===ue||void 0===ue?void 0:ue.map((function(e){var n=e.uuid;return(0,z.jsx)("option",{value:n,children:n},n)}))}),g.b.PIPELINE===(null===G||void 0===G?void 0:G.object_type)&&(null===G||void 0===G?void 0:G.object_uuid)&&(0,z.jsx)(_.Z,{mt:1,children:(0,z.jsxs)(Z.ZP,{muted:!0,small:!0,children:["View pipeline ",(0,z.jsx)(l(),{as:"/pipelines/".concat(null===G||void 0===G?void 0:G.object_uuid,"/edit"),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,z.jsx)(v.Z,{bold:!0,inline:!0,monospace:!0,openNewWindow:!0,small:!0,children:null===G||void 0===G?void 0:G.object_uuid})}),"."]})})]}),!t&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(_.Z,{mt:N.Mq,children:(0,z.jsx)(b.Z,{objectAttributes:G,setObjectAttributes:Q})}),(0,z.jsx)(_.Z,{mt:N.Mq,children:(0,z.jsx)(y.Z,{objectAttributes:G,setObjectAttributes:Q})}),(null===oe||void 0===oe?void 0:oe.length)>=1&&(0,z.jsx)(_.Z,{mt:N.Mq,children:(0,z.jsx)(w.Z,{blocks:oe,objectAttributes:G,setObjectAttributes:Q})})]})]}),(0,z.jsx)(S.ig,{children:(0,z.jsx)(_.Z,{p:N.cd,children:(0,z.jsx)(h.ZP,{children:(0,z.jsxs)(s.Z,{disabled:K,fullWidth:!0,loading:te,onClick:function(){return ne({global_data_product:G})},primary:!0,children:[t&&"Create global data product",!t&&"Save global data product"]})})})})]})}),[oe,K,te,t,G,ue,Q,ne]),ae=I.ZP.pipeline_schedules.list({global_data_product_uuid:null===n||void 0===n?void 0:n.uuid},{},{pauseFetch:!(null!==n&&void 0!==n&&n.uuid)}).data,de=(0,c.useMemo)((function(){return(null===ae||void 0===ae?void 0:ae.pipeline_schedules)||[]}),[ae]),se=I.ZP.pipeline_runs.list({global_data_product_uuid:null===n||void 0===n?void 0:n.uuid},{},{pauseFetch:!(null!==n&&void 0!==n&&n.uuid)}).data,pe=(0,c.useMemo)((function(){return(null===se||void 0===se?void 0:se.pipeline_runs)||[]}),[se]);return(0,z.jsx)(C.Z,{before:ce,beforeHeader:(0,z.jsx)(_.Z,{px:N.cd,children:(0,z.jsx)(Z.ZP,{children:"Global data product attributes"})}),beforeHidden:L,beforeWidth:R,leftOffset:A.k1,setBeforeHidden:F,setBeforeWidth:U,children:!t&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(_.Z,{p:N.cd,children:(0,z.jsx)(m.Z,{children:"Triggers"})}),(0,z.jsx)(p.Z,{light:!0}),(0,z.jsx)(k.Z,{disableActions:!0,pipeline:re,pipelineSchedules:de}),(0,z.jsx)(_.Z,{p:N.cd,children:(0,z.jsx)(m.Z,{children:"Runs"})}),(0,z.jsx)(p.Z,{light:!0}),(0,z.jsx)(x.Z,{hideTriggerColumn:!0,pipelineRuns:pe})]})})}},55264:function(e,n,t){"use strict";var i=t(82684),r=t(79891),o=t(67971),l=t(19711),u=t(24224),c=t(28598);n.Z=function(e){var n=e.onClickTag,t=e.tags,a=void 0===t?[]:t,d=(0,i.useMemo)((function(){return(null===a||void 0===a?void 0:a.length)||0}),[a]),s=(0,i.useMemo)((function(){return(0,u.YC)(a||[],"uuid")}),[a]);return(0,c.jsx)(o.ZP,{alignItems:"center",flexWrap:"wrap",children:null===s||void 0===s?void 0:s.reduce((function(e,t){return e.push((0,c.jsx)("div",{style:{marginBottom:2,marginRight:d>=2?4:0,marginTop:2},children:(0,c.jsx)(r.Z,{onClick:n?function(){return n(t)}:null,small:!0,children:(0,c.jsx)(l.ZP,{children:t.uuid})})},"tag-".concat(t.uuid))),e}),[])})}},97225:function(e,n,t){"use strict";var i=t(75582),r=t(12691),o=t.n(r),l=t(82684),u=t(83455),c=t(34376),a=t(60328),d=t(16634),s=t(47999),p=t(67971),f=t(10919),h=t(93348),g=t(62609),m=t(86673),v=t(87815),b=t(55264),y=t(19711),x=t(46261),j=t(82531),w=t(22341),_=t(66050),Z=t(49125),O=t(45838),k=t(9736),C=t(96510),I=t(66653),P=t(28598),S=1.5*Z.iI;n.Z=function(e){var n=e.disableActions,t=e.fetchPipelineSchedules,r=e.highlightRowOnHover,N=e.includeCreatedAtColumn,A=e.includePipelineColumn,E=e.pipeline,D=e.pipelineSchedules,T=e.pipelineTriggersByName,z=e.selectedSchedule,M=e.setErrors,H=e.setSelectedSchedule,q=e.stickyHeader,L=null===E||void 0===E?void 0:E.uuid,F=(0,c.useRouter)(),B=(0,l.useRef)({}),R=(0,l.useState)(null),U=R[0],W=R[1],V=(0,l.useState)(0),J=V[0],G=V[1],Y=(0,l.useState)(0),Q=Y[0],X=Y[1],K=(0,u.Db)((function(e){return j.ZP.pipeline_schedules.useUpdate(e.id)({pipeline_schedule:e})}),{onSuccess:function(e){return(0,C.wD)(e,{callback:function(){null===t||void 0===t||t()},onErrorCallback:function(e,n){return M({errors:n,response:e})}})}}),$=(0,i.Z)(K,1)[0],ee=(0,u.Db)((function(e){return j.ZP.pipeline_schedules.useDelete(e)()}),{onSuccess:function(e){return(0,C.wD)(e,{callback:function(){null===t||void 0===t||t(),L?F.push("/pipelines/[pipeline]/triggers","/pipelines/".concat(L,"/triggers")):null===t||void 0===t||t()},onErrorCallback:function(e,n){return M({errors:n,response:e})}})}}),ne=(0,i.Z)(ee,1)[0],te=[],ie=[];return n||(te.push.apply(te,[null,null,null]),ie.push.apply(ie,[{label:function(){return""},uuid:"action"},{uuid:"Info"},{uuid:"Type"}])),te.push.apply(te,[1]),ie.push.apply(ie,[{uuid:"Name"}]),n||(te.push.apply(te,[null,2]),ie.push.apply(ie,[{uuid:"Frequency"},{uuid:"Tags"}])),te.push.apply(te,[null,null,null]),ie.push.apply(ie,[{uuid:"Runs"},{uuid:"Latest status"},{uuid:"Logs"}]),n||(0,k.Ct)()||(te.push.apply(te,[null]),ie.push({label:function(){return""},uuid:"edit/delete"})),!n&&A&&(ie.splice(2,0,{uuid:"Pipeline"}),te.splice(2,0,2)),!n&&N&&(ie.splice(3,0,{uuid:"Created at"}),te.splice(3,0,null)),(0,P.jsx)(O.cl,{overflowVisible:!0,children:0===D.length?(0,P.jsx)(m.Z,{px:3,py:1,children:(0,P.jsx)(y.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:"No triggers available"})}):(0,P.jsx)(v.Z,{columnFlex:te,columns:ie,highlightRowOnHover:r,isSelectedRow:function(e){return D[e].id===(null===z||void 0===z?void 0:z.id)},onClickRow:H?function(e){return null===H||void 0===H?void 0:H(D[e])}:null,rowVerticalPadding:6,rows:D.map((function(e,t){var i,r=e.id,u=e.created_at,c=e.pipeline_runs_count,v=e.pipeline_uuid,j=e.last_pipeline_run_status,O=e.name,C=e.schedule_interval,E=e.status,D=e.tags,z=L||v;B.current[r]=(0,l.createRef)(),h.fq.ACTIVE===E?i=(0,P.jsx)(d.Z,{size:S,success:!0}):h.fq.INACTIVE===E&&(i=(0,P.jsx)(d.Z,{borderSize:1,size:S,square:!0,warning:!0}));var M,H=[];n?H.push.apply(H,[(0,P.jsx)(y.ZP,{bold:!0,children:O},"trigger_name_".concat(t))]):H.push.apply(H,[(0,P.jsx)(a.Z,{iconOnly:!0,noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(n){(0,I.j)(n),$({id:e.id,status:h.fq.ACTIVE===E?h.fq.INACTIVE:h.fq.ACTIVE})},children:h.fq.ACTIVE===E?(0,P.jsx)(w.dz,{muted:!0,size:2*Z.iI}):(0,P.jsx)(w.Py,{default:!0,size:2*Z.iI})},"toggle_trigger_".concat(t)),(0,P.jsxs)(p.ZP,{alignItems:"center",flexDirection:"row",children:[(0,P.jsx)(x.Z,{block:!0,label:E,size:S,widthFitContent:!0,children:i}),(null===T||void 0===T?void 0:T[O])&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(m.Z,{mr:1}),(0,P.jsx)(x.Z,{block:!0,label:"This trigger is saved in code.",size:S,widthFitContent:!0,children:(0,P.jsx)(w.EK,{default:!0,size:S})})]})]},"trigger_status_".concat(t)),(0,P.jsx)(y.ZP,{default:!0,monospace:!0,children:null===(M=h.Z4[e.schedule_type])||void 0===M?void 0:M.call(h.Z4)},"trigger_type_".concat(t)),(0,P.jsx)(o(),{as:"/pipelines/".concat(z,"/triggers/").concat(r),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,P.jsx)(f.Z,{bold:!0,onClick:function(e){(0,I.j)(e),F.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(z,"/triggers/").concat(r))},sameColorAsText:!0,children:O})},"trigger_name_".concat(t))]);return n||H.push.apply(H,[(0,P.jsx)(y.ZP,{default:!0,monospace:!0,children:C},"trigger_frequency_".concat(t)),(0,P.jsx)("div",{children:(0,P.jsx)(b.Z,{tags:null===D||void 0===D?void 0:D.map((function(e){return{uuid:e}}))})},"pipeline_tags_".concat(t))]),H.push.apply(H,[(0,P.jsx)(y.ZP,{default:!0,monospace:!0,children:c},"trigger_run_count_".concat(t)),(0,P.jsx)(y.ZP,{danger:_.V.FAILED===j,default:!j,monospace:!0,success:_.V.COMPLETED===j,warning:_.V.CANCELLED===j,children:j||"N/A"},"latest_run_status_".concat(t)),(0,P.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return F.push("/pipelines/".concat(z,"/logs?pipeline_schedule_id[]=").concat(r))},children:(0,P.jsx)(w.UL,{default:!0,size:2*Z.iI})},"logs_button_".concat(t))]),n||(0,k.Ct)()||H.push((0,P.jsxs)(p.ZP,{children:[(0,P.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return F.push("/pipelines/".concat(z,"/triggers/").concat(r,"/edit"))},title:"Edit",children:(0,P.jsx)(w.I8,{default:!0,size:2*Z.iI})}),(0,P.jsx)(m.Z,{mr:1}),(0,P.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){var e,n,t,i;W(r),G((null===(e=B.current[r])||void 0===e||null===(n=e.current)||void 0===n?void 0:n.offsetTop)||0),X((null===(t=B.current[r])||void 0===t||null===(i=t.current)||void 0===i?void 0:i.offsetLeft)||0)},ref:B.current[r],title:"Delete",children:(0,P.jsx)(w.rF,{default:!0,size:2*Z.iI})}),(0,P.jsx)(s.Z,{onClickOutside:function(){return W(null)},open:U===r,children:(0,P.jsx)(g.Z,{danger:!0,left:(Q||0)-286,onCancel:function(){return W(null)},onClick:function(){W(null),ne(r)},title:"Are you sure you want to delete the trigger ".concat(O,"?"),top:(J||0)-(t<=1?40:96),width:40*Z.iI})})]},"edit_delete_buttons_".concat(t))),!n&&A&&H.splice(2,0,(0,P.jsx)(y.ZP,{default:!0,monospace:!0,children:z},"pipeline_name_".concat(t))),!n&&N&&H.splice(3,0,(0,P.jsx)(y.ZP,{default:!0,monospace:!0,children:u},"created_at_".concat(t))),H})),stickyHeader:q,uuid:"pipeline-triggers"})})}},66050:function(e,n,t){"use strict";var i;t.d(n,{V:function(){return i}}),function(e){e.CANCELLED="cancelled",e.COMPLETED="completed",e.FAILED="failed",e.INITIAL="initial",e.RUNNING="running",e.UPSTREAM_FAILED="upstream_failed",e.CONDITION_FAILED="condition_failed"}(i||(i={}))},30119:function(e,n,t){"use strict";var i;t.d(n,{b:function(){return i}}),function(e){e.BLOCK="block",e.PIPELINE="pipeline"}(i||(i={}))},79891:function(e,n,t){"use strict";var i=t(38626),r=t(60328),o=t(67971),l=t(86673),u=t(19711),c=t(23831),a=t(22341),d=t(49125),s=t(31012),p=t(28598),f=i.default.div.withConfig({displayName:"Chip__ChipStyle",componentId:"sc-1ok73g-0"})(["display:inline-block;"," "," "," "," ",""],(function(e){return!e.primary&&"\n background-color: ".concat((e.theme.background||c.Z.background).tag,";\n ")}),(function(e){return e.primary&&"\n background-color: ".concat((e.theme.chart||c.Z.chart).primary,";\n ")}),(function(e){return!e.small&&"\n border-radius: ".concat((d.iI+s.Al)/2,"px;\n height: ").concat(1.5*d.iI+s.Al,"px;\n padding: ").concat(d.iI/1.5,"px ").concat(1.25*d.iI,"px;\n ")}),(function(e){return e.small&&"\n border-radius: ".concat((d.iI/2+s.Al)/2,"px;\n height: ").concat(s.Al+d.iI/2+2,"px;\n padding: ").concat(d.iI/4,"px ").concat(d.iI,"px;\n ")}),(function(e){return e.border&&"\n border: 1px solid ".concat((e.theme.content||c.Z.content).muted,";\n ")}));n.Z=function(e){var n=e.border,t=e.children,i=e.disabled,c=e.label,s=e.onClick,h=e.primary,g=e.small;return(0,p.jsx)(f,{border:n,primary:h,small:g,children:(0,p.jsx)(r.Z,{basic:!0,disabled:i,noBackground:!0,noPadding:!0,onClick:s,transparent:!0,children:(0,p.jsxs)(o.ZP,{alignItems:"center",children:[t,c&&(0,p.jsx)(u.ZP,{small:g,children:c}),!i&&s&&(0,p.jsx)(l.Z,{ml:1,children:(0,p.jsx)(a.x8,{default:h,muted:!h,size:g?d.iI:1.25*d.iI})})]})})})}},87372:function(e,n,t){"use strict";var i,r,o,l,u,c,a,d,s=t(82394),p=t(26304),f=t(26653),h=t(38626),g=t(33591),m=t(23831),v=t(2005),b=t(31012),y=t(19711),x=t(49125),j=t(86673),w=t(28598),_=["children","condensed","inline","level","marketing","spacingBelow"];function Z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function O(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach((function(n){(0,s.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var k=(0,h.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],y.IH,(function(e){return e.color&&"\n color: ".concat(e.color,"\n ")}),(function(e){return e.yellow&&"\n color: ".concat((e.theme.accent||m.Z.accent).yellow,";\n ")}),(function(e){return e.center&&"\n text-align: center;\n "}),(function(e){return!e.monospace&&0===Number(e.weightStyle)&&"\n font-family: ".concat(v.iI,";\n ")}),(function(e){return!e.monospace&&1===Number(e.weightStyle)&&"\n font-family: ".concat(v.LX,";\n ")}),(function(e){return!e.monospace&&2===Number(e.weightStyle)&&"\n font-family: ".concat(v.LX,";\n ")}),(function(e){return!e.monospace&&3===Number(e.weightStyle)&&"\n font-family: ".concat(v.ry,";\n ")}),(function(e){return!e.monospace&&4===Number(e.weightStyle)&&"\n font-family: ".concat(v.YC,";\n ")}),(function(e){return!e.monospace&&5===Number(e.weightStyle)&&"\n font-family: ".concat(v.nF,";\n ")}),(function(e){return!e.monospace&&(6===Number(e.weightStyle)||e.bold)&&"\n font-family: ".concat(v.nF,";\n ")}),(function(e){return!e.monospace&&7===Number(e.weightStyle)&&"\n font-family: ".concat(v.nF,";\n ")}),(function(e){return!e.monospace&&8===Number(e.weightStyle)&&"\n font-family: ".concat(v.nF,";\n ")}),(function(e){return e.lineHeightAuto&&"\n line-height: normal !important;\n "})),C=h.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(e){return"\n color: ".concat((e.theme.content||m.Z.content).active,";\n ")})),I=h.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],k,g.media.md(i||(i=(0,f.Z)(["\n ","\n "])),b.aQ),g.media.lg(r||(r=(0,f.Z)(["\n ","\n "])),b.aQ),g.media.xl(o||(o=(0,f.Z)(["\n ","\n "])),b.aQ)),P=h.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],k,b.MJ),S=h.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],k,g.media.xs(l||(l=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI),g.media.sm(u||(u=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI),g.media.md(c||(c=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI),g.media.lg(a||(a=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI),g.media.xl(d||(d=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI)),N=h.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],k,b.BL),A=h.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],k),E=h.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],k),D=h.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],k),T=h.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],k,(function(e){return 1===e.level&&"\n ".concat(b.MJ,"\n ")}),(function(e){return 2===e.level&&"\n ".concat(b.BL,"\n ")}),(function(e){return 3===e.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(e){return 4===e.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),z=function(e){var n,t=e.children,i=e.condensed,r=e.inline,o=e.level,l=e.marketing,u=e.spacingBelow,c=(0,p.Z)(e,_);r?n=T:0===Number(o)?n=I:1===Number(o)?n=l?S:P:2===Number(o)?n=N:3===Number(o)?n=A:4===Number(o)?n=E:5===Number(o)&&(n=D);var a=(0,w.jsxs)(n,O(O({},c),{},{level:o,children:[u&&(0,w.jsx)(j.Z,{mb:i?2:3,children:t}),!u&&t]}));return r?a:(0,w.jsx)(C,{children:a})};z.defaultProps={level:3,weightStyle:6},n.Z=z},90211:function(e,n,t){"use strict";t.d(n,{RA:function(){return d},kC:function(){return s},vg:function(){return b},kE:function(){return _},Mp:function(){return p},Pb:function(){return c},HW:function(){return x},wX:function(){return f},x6:function(){return h},_6:function(){return g},zf:function(){return y},Y6:function(){return w},wE:function(){return Z},J3:function(){return m},We:function(){return a},QV:function(){return j},C5:function(){return v}});var i=t(75582),r=t(17717),o=["aged","ancient","autumn","billowing","bitter","black","blue","bold","broken","cold","cool","crimson","damp","dark","dawn","delicate","divine","dry","empty","falling","floral","fragrant","frosty","green","hidden","holy","icy","late","lingering","little","lively","long","misty","morning","muddy","nameless","old","patient","polished","proud","purple","quiet","red","restless","rough","shy","silent","small","snowy","solitary","sparkling","spring","still","summer","throbbing","twilight","wandering","weathered","white","wild","winter","wispy","withered","young"],l=(t(92083),["bird","breeze","brook","bush","butterfly","cherry","cloud","darkness","dawn","dew","dream","dust","feather","field","fire","firefly","flower","fog","forest","frog","frost","glade","glitter","grass","haze","hill","lake","leaf","meadow","moon","morning","mountain","night","paper","pine","pond","rain","resonance","river","sea","shadow","shape","silence","sky","smoke","snow","snowflake","sound","star","sun","sun","sunset","surf","thunder","tree","violet","voice","water","water","waterfall","wave","wildflower","wind","wood"]),u=t(24224);function c(e){if(!e)return!1;try{JSON.parse(e)}catch(n){return!1}return!0}function a(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";return e.split(" ").join(n)}function d(e){return e.split(" ").join("_")}function s(e){return e?e.charAt(0).toUpperCase()+e.slice(1):""}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return String((new Date).getTime()*e)}function f(e){return e.charAt(0).toLowerCase()+e.slice(1)}function h(e){if(null===e||"undefined"===typeof e)return"";var n=e.toString().split("."),t=(0,i.Z)(n,2),r=t[0],o=t[1],l=r.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",");return o?"".concat(l,".").concat(o):l}function g(e,n){var t,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=n,o=void 0!==r&&null!==r;if(o||(r=2),1===r)t=e;else{var l=e.length,u=e[l-1];t="y"===u&&"day"!==e?"".concat(e.slice(0,l-1),"ies"):"".concat(e,"s"===u?"es":"s")}if(o){var c=i?h(r):r;return"".concat(c," ").concat(t)}return t}function m(e){return null===e||void 0===e?void 0:e.replace(/_/g," ")}function v(e){var n=e.length;return"ies"===e.slice(n-3,n)?"".concat(e.slice(0,n-3),"y"):"es"===e.slice(n-2,n)&&"ces"!==e.slice(n-3,n)?e.slice(0,n-2):e.slice(0,n-1)}function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return s(m(e.toLowerCase()))}function y(e){var n,t=[["second",60],["minute",60],["hour",24],["day",7],["week",4],["month",12],["year",null]];return t.forEach((function(r,o){if(!n){var l=(0,i.Z)(r,2),u=l[0],c=l[1],a=t.slice(0,o).reduce((function(e,n){return e*Number(n[1])}),1);e<Number(c)*a&&(n=g(u,Math.round(e/a)))}})),n}function x(e){return"undefined"!==typeof e&&null!==e&&!isNaN(e)}function j(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,t=Math.pow(10,n);return Math.round((e||0)*t)/t}function w(){return"".concat((0,u.mp)(o)," ").concat((0,u.mp)(l))}function _(e){return null===e||void 0===e?void 0:e.toLowerCase().replace(/\W+/g,"_")}function Z(e){var n,t=e.split(r.sep),i=t[t.length-1].split(".");return n=1===i.length?i[0]:i.slice(0,-1).join("."),t.slice(0,t.length-1).concat(n).join(r.sep)}}}]);