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
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1424],{28413:function(n,e,t){var r=t(82394),o=t(12691),i=t.n(o),c=t(67971),a=t(10919),l=t(86673),u=t(19711),d=t(22341),s=t(28598),p=t(82684);function f(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function h(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?f(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}e.Z=function(n){var e=n.breadcrumbs,t=e.length,r=[];return e.forEach((function(n,e){var o=n.bold,c=n.danger,f=n.label,b=n.linkProps,m=n.onClick,g=f();t>=2&&e>=1&&r.push((0,s.jsx)(l.Z,{mx:1,children:(0,s.jsx)(d._Q,{muted:!0})},"divider-".concat(g)));var v=(0,s.jsx)(u.ZP,{bold:o,danger:c,default:!o,monospace:!0,children:g}),x=(0,s.jsx)(l.Z,{ml:0===e?2:0,children:v},"breadcrumb-".concat(g));b?x=(0,p.createElement)(i(),h(h({},b),{},{key:"breadcrumb-link-".concat(g),passHref:!0}),(0,s.jsx)(a.Z,{block:!0,default:!o,noOutline:!0,sameColorAsText:o,children:x})):m&&(x=(0,s.jsx)(a.Z,{block:!0,default:!o,noOutline:!0,onClick:m,preventDefault:!0,sameColorAsText:o,children:x})),r.push(x)})),(0,s.jsx)(c.ZP,{alignItems:"center",children:r})}},64318:function(n,e,t){t.d(e,{u:function(){return c}});var r=t(38626),o=t(23831),i=t(49125),c=r.default.div.withConfig({displayName:"indexstyle__LinkStyle",componentId:"sc-y3uzxv-0"})(["padding:","px;&:hover{cursor:pointer;","}",""],i.iI,(function(n){return"\n background-color: ".concat((n.theme.interactive||o.Z.interactive).hoverBackground,";\n ")}),(function(n){return n.highlighted&&"\n background-color: ".concat((n.theme.interactive||o.Z.interactive).hoverBackground,";\n ")}))},33699:function(n,e,t){t.d(e,{Z:function(){return M}});var r=t(82394),o=t(89565),i=t.n(o),c=t(82684),a=t(35490),l=t(47999),u=t(19711),d=t(38626),s=t(23831),p=t(49125),f=t(37391),h=(0,d.css)([""," ",""],(function(n){return!n.width&&"\n width: 100%;\n "}),(function(n){return n.width&&"\n width: ".concat(n.width,"px;\n ")})),b=d.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-11d4rgl-0"})([""," "," height:100%;overflow:auto;position:absolute;",""],h,f.w5,(function(n){return"\n background-color: ".concat((n.theme.background||s.Z.background).codeTextarea,";\n ")})),m=d.default.div.withConfig({displayName:"indexstyle__InnerStyle",componentId:"sc-11d4rgl-1"})([""," padding:","px;"],h,p.cd*p.iI),g=(d.default.div.withConfig({displayName:"indexstyle__LineStyle",componentId:"sc-11d4rgl-2"})(["height:","px;"],20),(0,d.css)(["@keyframes cursor-blink{0%{opacity:0;}}::before{","}::after{","}"],(function(n){return n.focusBeginning&&"\n position: absolute;\n background-color: ".concat((n.theme.accent||s.Z.accent).warning,';\n content: "";\n display: inline-block;\n height: ').concat(20,"px;\n width: ").concat(p.iI,"px;\n opacity: 0.3;\n ")}),(function(n){return n.focused&&"\n background-color: ".concat((n.theme.accent||s.Z.accent).warning,';\n content: "";\n display: inline-block;\n height: ').concat(20,"px;\n width: ").concat(p.iI,"px;\n opacity: 0.3;\n ")}))),v=d.default.div.withConfig({displayName:"indexstyle__InputStyle",componentId:"sc-11d4rgl-3"})(["align-items:center;display:flex;gap:2px;",""],g),x=d.default.span.withConfig({displayName:"indexstyle__CharacterStyle",componentId:"sc-11d4rgl-4"})([""," ::after{","}"],g,(function(n){return n.focused&&"\n position: absolute;\n "})),y=t(82635),j=t(16115),w=t(94353),O=t(51504),Z=t(66653),k=t(41150),P=t(28598);function C(n,e){var t="undefined"!==typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(!t){if(Array.isArray(n)||(t=function(n,e){if(!n)return;if("string"===typeof n)return I(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);"Object"===t&&n.constructor&&(t=n.constructor.name);if("Map"===t||"Set"===t)return Array.from(n);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return I(n,e)}(n))||e&&n&&"number"===typeof n.length){t&&(n=t);var r=0,o=function(){};return{s:o,n:function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(n){throw n},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,c=!0,a=!1;return{s:function(){t=t.call(n)},n:function(){var n=t.next();return c=n.done,n},e:function(n){a=!0,i=n},f:function(){try{c||null==t.return||t.return()}finally{if(a)throw i}}}}function I(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=n[t];return r}function _(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function S(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?_(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):_(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var M=function(n){var e=n.lastMessage,t=n.onFocus,r=n.sendMessage,o=n.uuid,d=void 0===o?"terminal":o,s=n.width,p=(0,c.useRef)(null),f=(0,c.useRef)(null),h=(0,c.useState)(""),g=h[0],I=h[1],_=(0,c.useState)(0),M=_[0],F=_[1],T=(0,c.useState)(0),D=T[0],E=T[1],z=(0,c.useState)([]),H=z[0],B=z[1],R=(0,c.useState)(!1),A=R[0],L=R[1],N=(0,c.useState)(),U=N[0],W=N[1],G=(0,c.useMemo)((function(){return new a.Z}),[]),q=(0,c.useMemo)((function(){return{api_key:w.l,token:G.decodedToken.token}}),[G]);(0,c.useEffect)((function(){if(e){var n=JSON.parse(e.data);W((function(e){var t=e||"";return"stdout"===n[0]?t+n[1]:t}))}}),[e]);var Y=(0,c.useMemo)((function(){return U?U.split("\n").filter((function(n){return!n.includes("# Mage terminal settings command")})).map((function(n){return{data:n,type:y.Gi.TEXT}})):[]}),[U]);(0,c.useEffect)((function(){if(p.current&&f.current){var n=f.current.getBoundingClientRect().height;p.current.scrollTo(0,n)}}),[g,Y,p,f]);var V=(0,k.y)(),K=V.registerOnKeyDown,X=V.setDisableGlobalKeyboardShortcuts,Q=V.unregisterOnKeyDown;(0,c.useEffect)((function(){return function(){Q(d)}}),[Q,d]);var J=(0,c.useCallback)((function(){E((function(n){return n>0?n-1:n}))}),[]),$=(0,c.useCallback)((function(){E((function(n){return n<g.length?n+1:n}))}),[g]),nn=(0,c.useCallback)((function(n){r(JSON.stringify(S(S({},q),{},{command:["stdin",n]}))),r(JSON.stringify(S(S({},q),{},{command:["stdin","\r"]}))),(null===n||void 0===n?void 0:n.length)>=2&&(F(H.length+1),B((function(e){return e.concat(n)})),E(0)),I("")}),[H,r,I,B,F,E]),en=(0,c.useCallback)((function(n){var e=(null===n||void 0===n?void 0:n.split(/\n/))||[];if(e.length>1){var t=e.slice(0,-1);nn(g+t.join("\n"));var r=(e.slice(-1)[0]||"").trim();I(r),E(r.length)}else I((function(e){return e+n})),E(g.length+n.length)}),[g,nn,I,E]);K(d,(function(n,e,t){var o=n.code,i=n.key;if(A)if((0,Z.j)(n),(0,O.y)([j.PQ,j.VS],e))(null===g||void 0===g?void 0:g.length)>=0&&(r(JSON.stringify(S(S({},q),{},{command:["stdin",g]}))),r(JSON.stringify(S(S({},q),{},{command:["stdin","\x03"]}))),E(0)),I("");else if(j.Qj!==o||e[j.zX])if((0,O.y)([j.QK],e))J();else if((0,O.y)([j.DY],e))$();else if((0,O.y)([j.Bu],e)){if(H.length>=1){var c,a=Math.max(0,M-1);I(H[a]),F(a),E((null===(c=H[a])||void 0===c?void 0:c.length)||0)}}else if((0,O.y)([j.kD],e)){if(H.length>=1){var l=Math.min(H.length,M+1),u=H[l]||"";I(u),F(l),E(u.length)}}else if((0,O.y)([j.Uq],e))nn(g);else if((0,O.y)([j.zX,j.VS],e))navigator.clipboard.writeText(window.getSelection().toString());else if((0,O.y)([j.zX,j.Pd],e)||(0,O.y)([j.PQ,j.Pd],e)){var d,s,p,f,h;"undefined"===typeof(null===(d=navigator)||void 0===d?void 0:d.clipboard)?alert('Clipboard pasting is not allowed in insecure contexts. If your Mage deployment is not secure but you still want to use clipboard paste, you can override this setting (which should only be done temporarily) on Chrome browsers by going to "chrome://flags/#unsafely-treat-insecure-origin-as-secure", adding your origin to "Insecure origins treated as secure", and enabling that setting.'):null!==(s=navigator)&&void 0!==s&&null!==(p=s.clipboard)&&void 0!==p&&p.readText?navigator.clipboard.readText().then(en).catch((function(n){return alert("".concat(n,'\n For Chrome, users need to allow clipboard permissions for this site under "Privacy and security" -> "Site settings".\n For Safari, users need to allow the clipboard paste by clicking "Paste" in the context menu that appears.'))})):null!==(f=navigator)&&void 0!==f&&null!==(h=f.clipboard)&&void 0!==h&&h.read?navigator.clipboard.read().then((function(n){var e,t=C(n);try{for(t.s();!(e=t.n()).done;){var r,o=e.value,i=C(o.types);try{for(i.s();!(r=i.n()).done;){var c=r.value;if("text/plain"===c)return o.getType(c)}}catch(a){i.e(a)}finally{i.f()}}}catch(a){t.e(a)}finally{t.f()}})).then((function(n){return n.text()})).then(en).catch((function(n){return alert("".concat(n,'\n For Firefox, users need to allow clipboard paste by setting the "dom.events.asyncClipboard.read" preference in "about:config" to "true" and clicking "Paste" in the context menu that appears.'))})):alert('If pasting is not working properly, you may need to adjust some settings in your browser.\n\n For Firefox, users need to allow clipboard paste by setting both the "dom.events.asyncClipboard.clipboardItem" and "dom.events.asyncClipboard.read" preferences in "about:config" to "true" and clicking "Paste" in the context menu that appears.\n For Chrome, users need to allow clipboard permissions for this site under "Privacy and security" -> "Site settings".\n For Safari, users need to allow the clipboard paste by clicking "Paste" in the context menu that appears.\n')}else e[j.zX]||e[j.PQ]||1!==i.length||(I((function(n){return n.slice(0,D)+i+n.slice(D)})),E((function(n){return n+1})));else{var b=Math.max(0,D-1);I((function(n){return n.slice(0,b)+n.slice(D)})),E((function(n){return Math.max(0,n-1)}))}}),[g,H,M,A,I,B,F,d]);var tn=(0,c.useMemo)((function(){var n;return null===(n=Y[Y.length-1])||void 0===n?void 0:n.data}),[Y]);return(0,P.jsx)(b,{ref:p,width:s,children:(0,P.jsx)(l.Z,{isOpen:!0,onClick:function(){null===t||void 0===t||t(),L(!0),X(!0)},onClickOutside:function(){L(!1),X(!1)},style:{minHeight:"100%"},children:(0,P.jsxs)(m,{ref:f,width:s,children:[null===Y||void 0===Y?void 0:Y.reduce((function(n,e,t){if(t==Y.length-1)return n;var r=e||{},o=r.command,c=r.data,a=r.type,l=[];l=(l=Array.isArray(c)?c:[c]).filter((function(n){return n}));var d=[];return l.forEach((function(n,e){var r;if(y.jU.includes(a)&&(r=(0,P.jsx)(u.ZP,{monospace:!0,preWrap:!0,children:n&&(0,P.jsx)(i(),{children:n})})),r){var c="command-".concat(t,"-").concat(e,"-").concat(n);o||d.push((0,P.jsx)("div",{children:r},c))}})),n.concat(d)}),[]),(0,P.jsx)(v,{focused:A&&0===(null===g||void 0===g?void 0:g.length),children:(0,P.jsxs)(u.ZP,{monospace:!0,children:[(0,P.jsx)(u.ZP,{inline:!0,monospace:!0,children:tn&&(0,P.jsx)(i(),{children:tn})}),null===g||void 0===g?void 0:g.split("").map((function(n,e,t){return(0,P.jsxs)(x,{focusBeginning:A&&0===D&&0===e,focused:A&&(D===e+1||D>=t.length&&e===t.length-1),children:[" "===n&&(0,P.jsx)(P.Fragment,{children:"\xa0"}),"\n"===n&&(0,P.jsx)("br",{})," "!==n&&n]},"command-".concat(e,"-").concat(n))}))]})})]})})})}},86585:function(n,e,t){t.d(e,{Mz:function(){return l},T5:function(){return d},bf:function(){return u}});var r,o=t(82394),i=t(22341),c=t(88560),a=t(49125),l=7*a.iI,u=22,d=(a.iI,a.iI,r={},(0,o.Z)(r,c.RL.CATEGORY,i.WD),(0,o.Z)(r,c.RL.CATEGORY_HIGH_CARDINALITY,i.Rj),(0,o.Z)(r,c.RL.DATETIME,i.aw),(0,o.Z)(r,c.RL.EMAIL,i.GT),(0,o.Z)(r,c.RL.LIST,i.aV),(0,o.Z)(r,c.RL.NUMBER,i.qZ),(0,o.Z)(r,c.RL.NUMBER_WITH_DECIMALS,i.As),(0,o.Z)(r,c.RL.PHONE_NUMBER,i.LP),(0,o.Z)(r,c.RL.TEXT,i.KJ),(0,o.Z)(r,c.RL.TRUE_OR_FALSE,i.Kb),(0,o.Z)(r,c.RL.UUID,i.SS),(0,o.Z)(r,c.RL.ZIP_CODE,i.$t),r)},3055:function(n,e,t){t.d(e,{I5:function(){return l},Mz:function(){return a},y7:function(){return c}});var r=t(38626),o=t(23831),i=t(49125),c=2.5*i.iI,a=6*i.iI,l=r.default.div.withConfig({displayName:"indexstyle__HeaderStyle",componentId:"sc-1bk8irg-0"})(["height:","px;left:0;padding-left:","px;padding-right:","px;position:fixed;top:0;width:100%;z-index:10;",""],a,2*i.iI,2*i.iI,(function(n){return"\n background-color: ".concat((n.theme.background||o.Z.background).panel,";\n border-bottom: 1px solid ").concat((n.theme.borders||o.Z.borders).medium,";\n ")}))},41424:function(n,e,t){t.d(e,{Z:function(){return sn}});var r=t(75582),o=t(12691),i=t.n(o),c=t(82684),a=t(34376),l=t(35490),u=t(28413),d=t(60328),s=t(16634),p=t(47999),f=t(57639),h=t(93461),b=t(67971),m=t(62084),g=t(82394),v=t(56085),x=t(83455),y=t(38341),j=t(55378),w=t(86673),O=t(54283),Z=t(33699),k=t(19711),P=t(38435),C=t(82944),I=t(70902),_=t(82531),S=t(22341),M=t(38626),F=t(23831),T=t(73942),D=t(86585),E=t(37391),z=t(49125),H=M.default.div.withConfig({displayName:"GitActionsstyle__HeaderStyle",componentId:"sc-ynrhio-0"})(["border-bottom:1px solid #1B1C20;height:","px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;"],D.Mz),B=M.default.div.withConfig({displayName:"GitActionsstyle__TerminalStyle",componentId:"sc-ynrhio-1"})(["height:calc(75vh - ","px);position:relative;"],D.Mz),R=M.default.div.withConfig({displayName:"GitActionsstyle__PanelStyle",componentId:"sc-ynrhio-2"})(["height:75vh;min-height:300px;width:75vw;backgroundColor:#232429;border-radius:","px;",""],T.n_,(function(n){return"\n background-color: ".concat((n.theme.background||F.Z.background).panel,";\n ")})),A=M.default.div.withConfig({displayName:"GitActionsstyle__OutputStyle",componentId:"sc-ynrhio-3"})([""," padding:","px;height:calc(75vh - ","px);overflow-y:auto;"],E.w5,2*z.iI,D.Mz),L=t(94353),N=t(28799),U=t(96510),W=t(24224),G=t(28598);function q(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function Y(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?q(Object(t),!0).forEach((function(e){(0,g.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):q(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var V={clone:"Clone repository",new_branch:"Create new branch",commit:"Commit & push",pull:"Pull",reset_hard:"Hard reset"};var K=function(n){var e,t=n.branch,o=(n.fetchBranch,(0,c.useState)()),i=o[0],a=o[1],u=(0,c.useState)(),s=u[0],p=u[1],f=(0,c.useState)(),h=f[0],m=f[1],g=(0,c.useState)(),M=g[0],F=g[1],T=(0,c.useState)(),D=T[0],E=T[1],z=(0,c.useState)(),q=z[0],K=z[1],X=_.ZP.git_custom_branches.list(),Q=X.data,J=X.mutate,$=(0,c.useMemo)((function(){return null===Q||void 0===Q?void 0:Q.git_custom_branches}),[Q]),nn=_.ZP.syncs.list().data,en=(0,c.useMemo)((function(){var n;if(nn)return null===(n=nn.syncs)||void 0===n?void 0:n[0]}),[nn]),tn=(0,x.Db)(_.ZP.git_branches.useCreate(),{onSuccess:function(n){return(0,U.wD)(n,{callback:function(){J(),window.location.reload()},onErrorCallback:function(n){var e=n.error.exception;E(e)}})}}),rn=(0,r.Z)(tn,2),on=rn[0],cn=rn[1].isLoading,an=(0,x.Db)((function(){return _.ZP.git_branches.useUpdate(t)({git_branch:{action_type:"status"}})}),{onSuccess:function(n){return(0,U.wD)(n,{onErrorCallback:function(n){var e=n.error.exception;E(e)}})}}),ln=(0,r.Z)(an,1)[0],un=(0,x.Db)(_.ZP.git_branches.useUpdate(t),{onSuccess:function(n){return(0,U.wD)(n,{callback:function(){E(null),F("DONE")},onErrorCallback:function(n){var e=n.error.exception;E(e)}})}}),dn=(0,r.Z)(un,2),sn=dn[0],pn=dn[1].isLoading,fn=(0,x.Db)(_.ZP.git_branches.useUpdate(t),{onSuccess:function(n){return(0,U.wD)(n,{callback:function(){E(null),window.location.reload()},onErrorCallback:function(n){var e=n.error.exception;E(e)}})}}),hn=(0,r.Z)(fn,2),bn=hn[0],mn=hn[1].isLoading,gn=(0,c.useState)(),vn=gn[0],xn=gn[1],yn=(0,c.useState)([]),jn=yn[0],wn=yn[1],On=(0,c.useState)([]),Zn=On[0],kn=On[1],Pn=(0,c.useCallback)((function(){ln().then((function(n){var e=n.data,t=null===e||void 0===e?void 0:e.git_branch,r=null===t||void 0===t?void 0:t.status,o=null===t||void 0===t?void 0:t.modified_files,i=null===t||void 0===t?void 0:t.untracked_files;xn(r),wn(i),kn(o)}))}),[ln]),Cn=(0,c.useMemo)((function(){return cn||pn||mn}),[cn,pn,mn]);(0,c.useEffect)((function(){return Pn()}),[h,Pn]);var In=(0,c.useMemo)((function(){return new l.Z}),[]),_n=(0,c.useMemo)((function(){var n={api_key:L.l,term_name:"git",token:In.decodedToken.token};return null!==en&&void 0!==en&&en.repo_path&&(n.cwd=null===en||void 0===en?void 0:en.repo_path),n}),[In,null===en||void 0===en?void 0:en.repo_path]),Sn=(0,v.ZP)((0,N.Ib)("terminal"),{queryParams:_n,shouldReconnect:function(){return!0}},"cwd"in _n),Mn=Sn.lastMessage,Fn=Sn.sendMessage,Tn=function(n){return(0,G.jsx)(y.Z,{checked:((null===i||void 0===i?void 0:i.files)||[]).includes(n),label:(0,G.jsx)(k.ZP,{small:!0,children:n}),onClick:function(){a((function(e){var t=(null===e||void 0===e?void 0:e.files)||[];return t=t.includes(n)?(0,W.Od)(t,(function(e){return e===n})):[n].concat(t),Y(Y({},e),{},{files:t})}))},small:!0},n)},Dn=(0,c.useMemo)((function(){return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(d.Z,{onClick:function(){return a((function(n){return Y(Y({},n),{},{files:Zn.concat(jn)})}))},children:"Include all changes"}),Zn&&Zn.length>0&&(0,G.jsxs)(w.Z,{mb:1,children:[(0,G.jsx)(w.Z,{my:1,children:(0,G.jsx)(k.ZP,{children:"Modified files"})}),Zn.map(Tn)]}),jn&&jn.length>0&&(0,G.jsxs)(w.Z,{mb:1,children:[(0,G.jsx)(w.Z,{my:1,children:(0,G.jsx)(k.ZP,{children:"Untracked files"})}),jn.map(Tn)]})]})}),[Zn,i,jn]),En=(0,c.useMemo)((function(){return(0,G.jsx)(w.Z,{p:2,children:Cn?(0,G.jsx)(O.Z,{color:"white"}):(0,G.jsxs)(G.Fragment,{children:["commit"===h&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(P.Z,{compact:!0,fullWidth:!0,label:"Commit message",monospace:!0,onChange:function(n){return a((function(e){return Y(Y({},e),{},{message:n.target.value})}))},required:!0,value:null===i||void 0===i?void 0:i.message}),(0,G.jsx)(w.Z,{mt:1}),(0,G.jsxs)(b.ZP,{children:[(0,G.jsx)(d.Z,{borderLess:!0,onClick:function(){sn({git_branch:Y({action_type:"commit"},i)}).then((function(){Pn(),a(null)}))},success:!0,children:"Commit"}),(0,G.jsx)(w.Z,{mr:1}),(0,G.jsx)(d.Z,{borderLess:!0,onClick:function(){sn({git_branch:{action_type:"push"}})},primary:!0,children:"Push"})]})]}),"new_branch"===h&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(C.Z,{compact:!0,fullWidth:!0,label:"Branch name",monospace:!0,onChange:function(n){return a({name:n.target.value})},value:null===i||void 0===i?void 0:i.name}),(0,G.jsx)(w.Z,{mt:1}),(0,G.jsx)(d.Z,{borderLess:!0,onClick:function(){on({git_branch:i})},primary:!0,children:"Create"})]}),"clone"===h&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(k.ZP,{children:["Clone from ",(0,G.jsx)(k.ZP,{default:!0,inline:!0,children:null===en||void 0===en?void 0:en.remote_repo_link})," to ",(0,G.jsx)(k.ZP,{default:!0,inline:!0,children:null===en||void 0===en?void 0:en.repo_path}),". This ",(0,G.jsx)(k.ZP,{danger:!0,inline:!0,children:"will overwrite"})," any existing data in the local repository."]}),(0,G.jsx)(w.Z,{mt:1}),(0,G.jsx)(d.Z,{borderLess:!0,onClick:function(){bn({git_branch:{action_type:"clone"}})},primary:!0,children:"Clone"})]}),"pull"===h&&(0,G.jsx)(d.Z,{borderLess:!0,onClick:function(){bn({git_branch:{action_type:"pull"}})},primary:!0,children:"Pull"}),"reset_hard"===h&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(w.Z,{mb:1,children:(0,G.jsx)(k.ZP,{children:s||"This will reset your local branch to match the remote branch."})}),s?(0,G.jsx)(d.Z,{borderLess:!0,onClick:function(){p(null),bn({git_branch:{action_type:"reset"}})},warning:!0,children:"Confirm"}):(0,G.jsx)(d.Z,{borderLess:!0,onClick:function(){return p("Are you sure you want to reset your branch? Your local changes may be erased.")},primary:!0,children:"Reset branch"})]}),(0,G.jsx)(w.Z,{mt:1,children:!Cn&&(0,G.jsxs)(G.Fragment,{children:[!D&&M&&(0,G.jsx)(k.ZP,{children:M}),D&&(0,G.jsx)(k.ZP,{preWrap:!0,danger:!0,children:D})]})})]})})}),[Cn,h,D,en,M,i,s,vn]),zn=(0,c.useMemo)((function(){return(0,G.jsx)(Z.Z,{lastMessage:Mn,sendMessage:Fn})}),[Mn,Fn]);return(0,G.jsxs)(R,{children:[(0,G.jsxs)(H,{children:[(0,G.jsx)(w.Z,{m:2,children:(0,G.jsxs)(b.ZP,{children:[(0,G.jsx)(j.Z,{beforeIcon:(0,G.jsx)(S.I0,{}),compact:!0,onChange:function(n){n.preventDefault(),on({git_branch:{name:n.target.value}})},placeholder:"Select a branch",value:t,children:null===$||void 0===$?void 0:$.map((function(n){var e=n.name;return(0,G.jsx)("option",{value:e,children:e},e)}))},"select_branch"),(0,G.jsx)(w.Z,{ml:2}),(0,G.jsxs)(j.Z,{compact:!0,onChange:function(n){n.preventDefault(),m(n.target.value),K(!1),F(null),a(null)},value:h,children:[(0,G.jsx)("option",{value:"",children:"Select an action"}),Object.entries(V).map((function(n){var e=(0,r.Z)(n,2),t=e[0],o=e[1];return(0,G.jsx)("option",{value:t,children:o},t)}))]},"select_git_action")]})}),(0,G.jsx)(w.Z,{m:2,children:(0,G.jsxs)(b.ZP,{alignItems:"center",children:[(0,G.jsx)(k.ZP,{children:"UI"}),(0,G.jsx)(w.Z,{ml:1}),(0,G.jsx)(I.Z,{checked:!!q,monotone:!0,onCheck:function(){return K((function(n){return!n}))}}),(0,G.jsx)(w.Z,{ml:1}),(0,G.jsx)(k.ZP,{children:"Terminal"})]})})]}),(0,G.jsxs)(b.ZP,{children:[(0,G.jsx)("div",{style:{width:"50%"},children:(0,G.jsx)(A,{children:"commit"===h?Dn:(0,G.jsx)(G.Fragment,{children:null===vn||void 0===vn||null===(e=vn.split("\\n"))||void 0===e?void 0:e.map((function(n){return(0,G.jsx)(k.ZP,{monospace:!0,preWrap:!0,small:!0,children:n},n)}))})})}),(0,G.jsx)("div",{style:{width:"50%"},children:q?(0,G.jsx)(B,{children:zn}):En})]})]})},X=18.53/14;var Q=function(n){var e=n.height,t=n.width,r=e||(t?t*(1/X):14),o=t||(e?e*X:18.53);return(0,G.jsxs)("svg",{width:o,height:r,viewBox:"0 0 20 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,G.jsx)("path",{opacity:"0.4",d:"M15.3266 0L19.2641 1.82961e-06L11.9687 14L8.03125 14L15.3266 0Z",fill:"url(#paint0_linear_1303_5)"}),(0,G.jsx)("path",{d:"M11.9692 1.82961e-06L8.03164 0L0.736328 14L4.67383 14L8.03164 7.55626V14H11.9691V8.38194e-05L11.9692 1.82961e-06Z",fill:"url(#paint1_linear_1303_5)"}),(0,G.jsx)("path",{d:"M15.3269 2.57679e-06H19.2644V14H15.3269V2.57679e-06Z",fill:"url(#paint2_linear_1303_5)"}),(0,G.jsxs)("defs",{children:[(0,G.jsxs)("linearGradient",{id:"paint0_linear_1303_5",x1:"8.03125",y1:"7",x2:"19.2641",y2:"7",gradientUnits:"userSpaceOnUse",children:[(0,G.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,G.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]}),(0,G.jsxs)("linearGradient",{id:"paint1_linear_1303_5",x1:"0.736328",y1:"7",x2:"19.2644",y2:"7",gradientUnits:"userSpaceOnUse",children:[(0,G.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,G.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]}),(0,G.jsxs)("linearGradient",{id:"paint2_linear_1303_5",x1:"0.736328",y1:"7",x2:"19.2644",y2:"7",gradientUnits:"userSpaceOnUse",children:[(0,G.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,G.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})]})]})},J=t(11135),$=t(10919),nn=M.default.svg.withConfig({displayName:"Mage8Bit__SVGStyle",componentId:"sc-cj6ltf-0"})([""]),en=function(n){var e=n.size,t=void 0===e?20:e,r=n.viewBox,o=void 0===r?"0 0 20 20":r;return(0,G.jsxs)(nn,{height:t,viewBox:o,width:t,children:[(0,G.jsxs)("g",{clipPath:"url(#clip0_297_42814)",children:[(0,G.jsx)("path",{d:"M13.334 0h1.66667v1.66667H13.334zM11.666 1.6665h1.66667v1.66667H11.666z",fill:"#7949FF"}),(0,G.jsx)("path",{d:"M10 1.6665h1.66667v1.66667H10z",fill:"#7949FF"}),(0,G.jsx)("path",{d:"M8.33398 1.6665h1.66667v1.66667H8.33398z",fill:"#AF93FF"}),(0,G.jsx)("path",{d:"M8.33398 3.3335h1.66667v1.66667H8.33398z",fill:"#7949FF"}),(0,G.jsx)("path",{d:"M6.66602 3.3335h1.66667v1.66667H6.66602z",fill:"#AF93FF"}),(0,G.jsx)("path",{d:"M3.33398 5h1.66667v1.66667H3.33398z",fill:"#7949FF"}),(0,G.jsx)("path",{d:"M5 5h1.66667v1.66667H5z",fill:"#7949FF"}),(0,G.jsx)("path",{d:"M6.66602 5h1.66667v1.66667H6.66602z",fill:"#7949FF"}),(0,G.jsx)("path",{d:"M6.66602 5h1.66667v1.66667H6.66602z",fill:"#7949FF"}),(0,G.jsx)("path",{d:"M6.66602 8.3335h1.66667v1.66667H6.66602z",fill:"#000"}),(0,G.jsx)("path",{d:"M6.66602 6.6665h1.66667v1.66667H6.66602z",fill:"#AD8FFF"}),(0,G.jsx)("path",{d:"M6.66602 10h1.66667v1.66667H6.66602z",fill:"#C9B6FF"}),(0,G.jsx)("path",{d:"M8.33398 6.6665h1.66667v1.66667H8.33398z",fill:"#AD8FFF"}),(0,G.jsx)("path",{d:"M1.66602 13.3335h1.66667v1.66667H1.66602z",fill:"#C9B6FF"}),(0,G.jsx)("path",{d:"M1.66602 11.6665h1.66667v1.66667H1.66602z",fill:"#FFCC19"}),(0,G.jsx)("path",{d:"M1.66602 10h1.66667v1.66667H1.66602z",fill:"#FFCC19"}),(0,G.jsx)("path",{d:"M1.66602 8.3335h1.66667v1.66667H1.66602zM1.66602 6.6665h1.66667v1.66667H1.66602z",fill:"#FFCC19"}),(0,G.jsx)("path",{d:"M1.66602 6.6665h1.66667v1.66667H1.66602zM0 0h1.66667v1.66667H0zM3.33398 1.6665h1.66667v1.66667H3.33398zM0 3.3335h1.66667v1.66667H0z",fill:"#2ECDF7"}),(0,G.jsx)("path",{d:"M1.66602 16.6665h1.66667v1.66667H1.66602z",fill:"#FFCC19"}),(0,G.jsx)("path",{d:"M1.66602 16.6665h1.66667v1.66667H1.66602zM1.66602 18.3335h1.66667v1.66667H1.66602z",fill:"#FFCC19"}),(0,G.jsx)("path",{d:"M1.66602 15h1.66667v1.66667H1.66602zM3.33398 15h1.66667v1.66667H3.33398z",fill:"#C9B6FF"}),(0,G.jsx)("path",{d:"M3.33398 16.6665h1.66667v1.66667H3.33398z",fill:"#C9B6FF"}),(0,G.jsx)("path",{d:"M3.33398 13.3335h1.66667v1.66667H3.33398z",fill:"#AD8FFF"}),(0,G.jsx)("path",{d:"M8.33398 8.3335h1.66667v1.66667H8.33398z",fill:"#C9B6FF"}),(0,G.jsx)("path",{d:"M10 6.6665h1.66667v1.66667H10z",fill:"#AD8FFF"}),(0,G.jsx)("path",{d:"M10 10h1.66667v1.66667H10z",fill:"#C9B6FF"}),(0,G.jsx)("path",{d:"M11.666 6.6665h1.66667v1.66667H11.666z",fill:"#AD8FFF"}),(0,G.jsx)("path",{d:"M11.666 8.3335h1.66667v1.66667H11.666z",fill:"#C9B6FF"}),(0,G.jsx)("path",{d:"M8.33398 10h1.66667v1.66667H8.33398z",fill:"#FF8DA9"}),(0,G.jsx)("path",{d:"M8.33398 11.6665h1.66667v1.66667H8.33398z",fill:"#FF8DA9"}),(0,G.jsx)("path",{d:"M6.66602 11.6665h1.66667v1.66667H6.66602z",fill:"#D9D9D9"}),(0,G.jsx)("path",{d:"M6.66602 11.6665h1.66667v1.66667H6.66602z",fill:"#D9D9D9"}),(0,G.jsx)("path",{d:"M5 10h1.66667v1.66667H5z",fill:"#D9D9D9"}),(0,G.jsx)("path",{d:"M5 8.3335h1.66667v1.66667H5z",fill:"#232429"}),(0,G.jsx)("path",{d:"M8.33398 11.6665h1.66667v1.66667H8.33398zM8.33398 13.3335h1.66667v1.66667H8.33398z",fill:"#D9D9D9"}),(0,G.jsx)("path",{d:"M10 11.6665h1.66667v1.66667H10z",fill:"#D9D9D9"}),(0,G.jsx)("path",{d:"M11.666 10h1.66667v1.66667H11.666zM13.334 6.6665h1.66667v1.66667H13.334zM13.334 8.3335h1.66667v1.66667H13.334z",fill:"#D9D9D9"}),(0,G.jsx)("path",{d:"M15 8.3335h1.66667v1.66667H15z",fill:"#757575"}),(0,G.jsx)("path",{d:"M15 10h1.66667v1.66667H15z",fill:"#D9D9D9"}),(0,G.jsx)("path",{d:"M10 8.3335h1.66667v1.66667H10z",fill:"#000"}),(0,G.jsx)("path",{d:"M8.33398 5h1.66667v1.66667H8.33398zM11.666 5h1.66667v1.66667H11.666z",fill:"#7949FF"}),(0,G.jsx)("path",{d:"M13.334 10h1.66667v1.66667H13.334zM11.666 11.6665h1.66667v1.66667H11.666zM10 13.3335h1.66667v1.66667H10z",fill:"#501FD8"}),(0,G.jsx)("path",{d:"M8.33398 15h1.66667v1.66667H8.33398zM6.66602 13.3335h1.66667v1.66667H6.66602zM15 11.6665h1.66667v1.66667H15z",fill:"#501FD8"}),(0,G.jsx)("path",{d:"M16.666 11.6665h1.66667v1.66667H16.666zM16.666 13.3335h1.66667v1.66667H16.666z",fill:"#501FD8"}),(0,G.jsx)("path",{d:"M15 13.3335h1.66667v1.66667H15z",fill:"#7949FF"}),(0,G.jsx)("path",{d:"M13.334 13.3335h1.66667v1.66667H13.334zM13.334 11.6665h1.66667v1.66667H13.334zM11.666 13.3335h1.66667v1.66667H11.666z",fill:"#7949FF"}),(0,G.jsx)("path",{d:"M11.666 15h1.66667v1.66667H11.666z",fill:"#7949FF"}),(0,G.jsx)("path",{d:"M10 15h1.66667v1.66667H10z",fill:"#7949FF"}),(0,G.jsx)("path",{d:"M8.33398 16.6665h1.66667v1.66667H8.33398z",fill:"#7949FF"}),(0,G.jsx)("path",{d:"M6.66602 15h1.66667v1.66667H6.66602z",fill:"#AF93FF"}),(0,G.jsx)("path",{d:"M6.66602 16.6665h1.66667v1.66667H6.66602z",fill:"#7949FF"}),(0,G.jsx)("path",{d:"M5 16.6665h1.66667v1.66667H5z",fill:"#AF93FF"}),(0,G.jsx)("path",{d:"M5 18.3335h1.66667v1.66667H5z",fill:"#7949FF"}),(0,G.jsx)("path",{d:"M6.66602 18.3335h1.66667v1.66667H6.66602zM8.33398 18.3335h1.66667v1.66667H8.33398z",fill:"#7949FF"}),(0,G.jsx)("path",{d:"M10 18.3335h1.66667v1.66667H10z",fill:"#7949FF"}),(0,G.jsx)("path",{d:"M11.666 18.3335h1.66667v1.66667H11.666zM13.334 18.3335h1.66667v1.66667H13.334z",fill:"#7949FF"}),(0,G.jsx)("path",{d:"M15 18.3335h1.66667v1.66667H15z",fill:"#7949FF"}),(0,G.jsx)("path",{d:"M16.666 18.3335h1.66667v1.66667H16.666z",fill:"#652EFF"}),(0,G.jsx)("path",{d:"M3.33398 18.3335h1.66667v1.66667H3.33398zM10 16.6665h1.66667v1.66667H10z",fill:"#7949FF"}),(0,G.jsx)("path",{d:"M11.666 16.6665h1.66667v1.66667H11.666zM13.334 15h1.66667v1.66667H13.334z",fill:"#7949FF"}),(0,G.jsx)("path",{d:"M13.334 16.6665h1.66667v1.66667H13.334z",fill:"#7949FF"}),(0,G.jsx)("path",{d:"M15 16.6665h1.66667v1.66667H15z",fill:"#7949FF"}),(0,G.jsx)("path",{d:"M15 15h1.66667v1.66667H15z",fill:"#7949FF"}),(0,G.jsx)("path",{d:"M16.666 15h1.66667v1.66667H16.666zM18.334 16.6665h1.66667v1.66667H18.334zM18.334 18.3335h1.66667v1.66667H18.334z",fill:"#501FD8"}),(0,G.jsx)("path",{d:"M16.666 16.6665h1.66667v1.66667H16.666z",fill:"#652EFF"}),(0,G.jsx)("path",{d:"M13.334 5h1.66667v1.66667H13.334z",fill:"#7949FF"}),(0,G.jsx)("path",{d:"M15 5h1.66667v1.66667H15zM10 5h1.66667v1.66667H10z",fill:"#7949FF"}),(0,G.jsx)("path",{d:"M10 3.3335h1.66667v1.66667H10z",fill:"#7949FF"}),(0,G.jsx)("path",{d:"M11.666 3.3335h1.66667v1.66667H11.666z",fill:"#7949FF"}),(0,G.jsx)("path",{d:"M11.666 0h1.66667v1.66667H11.666z",fill:"#AF93FF"})]}),(0,G.jsx)("defs",{children:(0,G.jsx)("clipPath",{id:"clip0_297_42814",children:(0,G.jsx)("path",{d:"M0 0h20v20H0z",fill:"#fff"})})})]})},tn=t(62609),rn=t(46261),on=t(73899),cn=t(3055),an=t(64318),ln=t(9736),un=t(59e3),dn=t(99497);var sn=function(n){var e=n.breadcrumbs,t=n.menuItems,o=n.project,g=n.version,v=(0,c.useState)(!1),x=v[0],y=v[1],j=(0,c.useState)(null),O=j[0],Z=j[1],P=(0,c.useState)(!1),C=P[0],I=P[1],M=(0,c.useState)(null),F=M[0],T=M[1],D=(0,c.useRef)(null),E=(0,c.useRef)(null),H=(0,a.useRouter)(),B=_.ZP.git_custom_branches.detail("test",{_format:"with_basic_details"},{revalidateOnFocus:!1}),R=B.data,A=B.mutate,L=(0,c.useMemo)((function(){var n;return null===R||void 0===R||null===(n=R.git_custom_branch)||void 0===n?void 0:n.name}),[R]),N=_.ZP.projects.list({},{revalidateOnFocus:!1},{pauseFetch:!!o}).data,U=(0,c.useMemo)((function(){var n;return o||(null===N||void 0===N||null===(n=N.projects)||void 0===n?void 0:n[0])}),[N,o]),W=(0,c.useMemo)((function(){return g||(null===U||void 0===U?void 0:U.version)}),[U,g]),q=l.Z.isLoggedIn(),Y=(0,c.useMemo)((function(){return e||[{bold:!0,label:function(){return null===U||void 0===U?void 0:U.name},linkProps:{href:"/",sameColorText:!0}}]}),[e,U]),V=H.query.pipeline,X=(U||{}).latest_version,nn=(0,c.useMemo)((function(){return(0,G.jsx)(i(),{as:"/",href:"/",passHref:!0,children:(0,G.jsx)($.Z,{block:!0,height:cn.y7,noHoverUnderline:!0,noOutline:!0,children:(0,G.jsx)(Q,{height:cn.y7})})})}),[]),sn=[{label:function(){return"Settings"},linkProps:{href:"/settings/workspace/preferences"},uuid:"user_settings"}];(0,ln.YB)()&&sn.push({label:function(){return"Sign out"},onClick:function(){l.Z.logout((function(){_.ZP.sessions.updateAsync(null,1).then((function(){(0,un.nL)("/sign-in")})).catch((function(){(0,un.nL)("/")}))}))},uuid:"sign_out"});var pn=(0,dn.dd)((function(){return(0,G.jsx)(K,{branch:L,fetchBranch:A})}),{},[L,A],{background:!0,uuid:"git_actions"}),fn=(0,r.Z)(pn,2),hn=fn[0],bn=(fn[1],(0,c.useMemo)((function(){return(null===L||void 0===L?void 0:L.length)>=21?"".concat(L.slice(0,21),"..."):L}),[L]));return(0,G.jsx)(cn.I5,{children:(0,G.jsx)(f.Z,{children:(0,G.jsxs)(b.ZP,{alignItems:"center",fullHeight:!0,justifyContent:"space-between",children:[(0,G.jsxs)(h.Z,{alignItems:"center",children:[W&&(0,G.jsx)(rn.Z,{height:cn.y7,label:"Version ".concat(W),size:null,visibleDelay:300,widthFitContent:!0,children:nn}),!W&&nn,(0,G.jsx)(u.Z,{breadcrumbs:Y})]}),(0,G.jsxs)(h.Z,{alignItems:"center",children:[X&&W&&X!==W&&(0,G.jsx)(w.Z,{ml:2,children:(0,G.jsx)(d.Z,{borderLess:!0,linkProps:{href:"https://docs.mage.ai/about/releases"},noHoverUnderline:!0,primary:!0,target:"_blank",children:(0,G.jsxs)(k.ZP,{children:["\ud83d\ude80 Download new version ",(0,G.jsx)(k.ZP,{bold:!0,inline:!0,monospace:!0,children:X})]})})}),L&&(0,G.jsx)(w.Z,{ml:2,children:(0,G.jsx)(J.ZP,{blackBorder:!0,block:!0,compact:!0,noHoverUnderline:!0,onClick:hn,sameColorAsText:!0,uuid:"Header/GitActions",children:(0,G.jsxs)(b.ZP,{alignItems:"center",children:[(0,G.jsx)(S.I0,{size:1.5*z.iI}),(0,G.jsx)(w.Z,{ml:1}),(0,G.jsx)(k.ZP,{monospace:!0,small:!0,children:bn})]})})}),W&&"undefined"!==typeof W&&(0,G.jsx)(w.Z,{ml:2,children:(0,G.jsx)($.Z,{default:!0,href:"https://www.mage.ai/changelog",monospace:!0,openNewWindow:!0,children:"v".concat(W)})}),(0,G.jsx)(w.Z,{ml:2,children:(0,G.jsx)(J.ZP,{beforeElement:(0,G.jsx)(S.jR,{}),blackBorder:!0,compact:!0,inline:!0,linkProps:{as:"https://www.mage.ai/chat",href:"https://www.mage.ai/chat"},noHoverUnderline:!0,openNewTab:!0,sameColorAsText:!0,uuid:"Header/live_chat",children:"Live help"})}),t&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(w.Z,{ml:2}),(0,G.jsx)(p.Z,{onClickOutside:function(){return Z(null)},open:!0,style:{position:"relative"},children:(0,G.jsxs)(b.ZP,{children:[(0,G.jsx)(an.u,{highlighted:0===O,onClick:function(){return Z((function(n){return 0===n?null:0}))},onMouseEnter:function(){return Z((function(n){return null!==n?0:null}))},ref:D,children:(0,G.jsx)(k.ZP,{children:"Menu"})}),(0,G.jsx)(m.Z,{alternateBackground:!0,items:t,onClickCallback:function(){return Z(null)},open:0===O,parentRef:D,rightOffset:0,setConfirmationAction:T,setConfirmationDialogueOpen:I,uuid:"PipelineDetail/Header/menu"})]})}),(0,G.jsx)(p.Z,{onClickOutside:function(){return I(!1)},open:C,children:(0,G.jsx)(tn.Z,{danger:!0,onCancel:function(){return I(!1)},onClick:F,right:16*z.iI,subtitle:"This is irreversible and will immediately delete everything associated with the pipeline, including its blocks, triggers, runs, logs, and history.",title:"Are you sure you want to delete the pipeline ".concat(V,"?"),width:40*z.iI})})]}),(q||!(0,ln.YB)())&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(w.Z,{ml:2}),(0,G.jsx)(p.Z,{onClickOutside:function(){return y(!1)},open:!0,style:{position:"relative"},children:(0,G.jsxs)(b.ZP,{children:[(0,G.jsx)(an.u,{onClick:function(){return y(!0)},ref:E,children:(0,G.jsx)(s.Z,{color:on.Jm,size:4*z.iI,children:(0,G.jsx)(en,{})})}),(0,G.jsx)(m.Z,{alternateBackground:!0,items:sn,onClickCallback:function(){return y(!1)},open:x,parentRef:E,rightOffset:0,uuid:"shared/Header/user_menu"})]})})]})]})]})})})}},57639:function(n,e,t){var r=t(82684),o=t(28598);e.Z=function(n){var e=n.children,t=(0,r.useState)(!1),i=t[0],c=t[1];return(0,r.useEffect)((function(){c(!0)}),[]),i?e:(0,o.jsx)("div",{})}},88560:function(n,e,t){t.d(e,{P_:function(){return c},RL:function(){return o},Rp:function(){return a}});var r,o,i=t(82394);!function(n){n.CATEGORY="category",n.CATEGORY_HIGH_CARDINALITY="category_high_cardinality",n.DATETIME="datetime",n.EMAIL="email",n.LIST="list",n.NUMBER="number",n.NUMBER_WITH_DECIMALS="number_with_decimals",n.PHONE_NUMBER="phone_number",n.TEXT="text",n.TRUE_OR_FALSE="true_or_false",n.UUID="uuid",n.ZIP_CODE="zip_code"}(o||(o={}));o.NUMBER,o.NUMBER_WITH_DECIMALS,o.NUMBER,o.NUMBER_WITH_DECIMALS,o.DATETIME,o.NUMBER,o.NUMBER_WITH_DECIMALS,o.CATEGORY,o.CATEGORY_HIGH_CARDINALITY,o.DATETIME,o.EMAIL,o.PHONE_NUMBER,o.TEXT,o.TRUE_OR_FALSE,o.CATEGORY,o.CATEGORY_HIGH_CARDINALITY,o.DATETIME,o.EMAIL,o.PHONE_NUMBER,o.TEXT;var c=[o.CATEGORY,o.CATEGORY_HIGH_CARDINALITY],a=(r={},(0,i.Z)(r,o.NUMBER,"Number"),(0,i.Z)(r,o.NUMBER_WITH_DECIMALS,"Decimal number"),(0,i.Z)(r,o.CATEGORY,"Category"),(0,i.Z)(r,o.CATEGORY_HIGH_CARDINALITY,"Category (high cardinality)"),(0,i.Z)(r,o.DATETIME,"Date/Time"),(0,i.Z)(r,o.EMAIL,"Email"),(0,i.Z)(r,o.LIST,"List"),(0,i.Z)(r,o.PHONE_NUMBER,"Phone number"),(0,i.Z)(r,o.TEXT,"Text"),(0,i.Z)(r,o.TRUE_OR_FALSE,"Boolean"),(0,i.Z)(r,o.ZIP_CODE,"Zip code"),r)},82635:function(n,e,t){var r,o;t.d(e,{Gi:function(){return o},jU:function(){return c},uF:function(){return r}}),function(n){n.BUSY="busy",n.IDLE="idle",n.QUEUED="queued"}(r||(r={})),function(n){n.IMAGE_PNG="image/png",n.PROGRESS="progress",n.TABLE="table",n.TEXT="text",n.TEXT_HTML="text/html",n.TEXT_PLAIN="text/plain"}(o||(o={}));var i,c=[o.TEXT,o.TEXT_PLAIN];!function(n){n.DISPLAY_DATA="display_data",n.STATUS="status",n.STREAM="stream",n.STREAM_PIPELINE="stream_pipeline"}(i||(i={}))},62084:function(n,e,t){t.d(e,{Z:function(){return S}});var r=t(82394),o=t(82684),i=t(12691),c=t.n(i),a=t(34376),l=t(93461),u=t(67971),d=t(79749),s=t(86673),p=t(19711),f=t(46261),h=t(22341),b=t(38626),m=t(23831),g=t(73942),v=t(49125),x=b.default.div.withConfig({displayName:"indexstyle__FlyoutMenuContainerStyle",componentId:"sc-1o7k6f4-0"})(["position:absolute;max-height:","px;"," "," ",""],58*v.iI,(function(n){return n.width&&"\n min-width: 0px;\n width: ".concat(n.width,"px;\n ")}),(function(n){return"\n box-shadow: ".concat((n.theme.shadow||m.Z.shadow).popup,";\n\n &:hover {\n background-color: ").concat((n.theme.interactive||m.Z.interactive).hoverBackground,";\n }\n ")}),(function(n){return n.roundedStyle&&"\n border: ".concat(g.YF,"px ").concat(g.M8," ").concat((n.theme||m.Z).borders.button,";\n border-radius: ").concat(g.n_,"px;\n\n div:first-child {\n border-top-left-radius: ").concat(g.n_,"px;\n border-top-right-radius: ").concat(g.n_,"px;\n }\n\n div:last-child {\n border-bottom-left-radius: ").concat(g.n_,"px;\n border-bottom-right-radius: ").concat(g.n_,"px;\n }\n ")})),y=b.default.div.withConfig({displayName:"indexstyle__TitleContainerStyle",componentId:"sc-1o7k6f4-1"})(["padding:","px;padding-bottom:0;"," ",""],v.iI,(function(n){return"\n background-color: ".concat((n.theme||m.Z).background.popup,";\n ")}),(function(n){return n.roundedStyle&&"\n background-color: ".concat((n.theme||m.Z).interactive.defaultBackground,";\n border-bottom: ").concat(g.YF,"px ").concat(g.M8," ").concat((n.theme||m.Z).borders.medium,";\n padding-bottom: ").concat(v.iI,"px;\n ")})),j=(0,b.css)(["justify-content:space-between;padding:","px;"," "," "," "," "," "," ",""],v.iI,(function(n){return n.largePadding&&"\n padding: ".concat(1.5*v.iI,"px;\n padding-right: ").concat(6*v.iI,"px;\n ")}),(function(n){return!n.disabled&&"\n &:hover {\n background-color: ".concat((n.theme.interactive||m.Z.interactive).hoverBackground,";\n cursor: pointer;\n }\n ")}),(function(n){return"\n background-color: ".concat((n.theme.background||m.Z.background).popup,";\n ")}),(function(n){return n.alternateBackground&&"\n background-color: ".concat((n.theme.interactive||m.Z.interactive).defaultBackground,";\n ")}),(function(n){return n.disabled&&"\n color: ".concat((n.theme.content||m.Z.content).disabled,";\n cursor: not-allowed;\n\n &:hover {\n color: ").concat((n.theme.content||m.Z.content).disabled,";\n }\n ")}),(function(n){return n.indent&&"\n padding-left: ".concat(2*v.iI,"px;\n ")}),(function(n){return n.highlighted&&"\n background-color: ".concat((n.theme.interactive||m.Z.interactive).hoverBackground,";\n ")})),w=b.default.div.withConfig({displayName:"indexstyle__LinkStyle",componentId:"sc-1o7k6f4-2"})(["",""],j),O=b.default.a.withConfig({displayName:"indexstyle__LinkAnchorStyle",componentId:"sc-1o7k6f4-3"})([""," display:block;"],j),Z=t(16115),k=t(66653),P=t(41150),C=t(28598);function I(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function _(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?I(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):I(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var S=function(n){var e,t,i=n.alternateBackground,b=n.disableKeyboardShortcuts,m=n.items,g=n.left,v=n.onClickCallback,j=n.open,I=n.parentRef,S=n.rightOffset,M=n.roundedStyle,F=n.setConfirmationAction,T=n.setConfirmationDialogueOpen,D=n.topOffset,E=void 0===D?0:D,z=n.uuid,H=n.width,B=(0,o.useState)([]),R=B[0],A=B[1],L=(0,o.useState)({}),N=L[0],U=L[1],W=(0,o.useState)(0),G=W[0],q=W[1],Y=(0,o.useState)(0),V=Y[0],K=Y[1],X=(0,o.useState)(0),Q=X[0],J=X[1],$=((null===I||void 0===I||null===(e=I.current)||void 0===e||null===(t=e.getBoundingClientRect)||void 0===t?void 0:t.call(e))||{}).height,nn=(0,o.useRef)({}),en=(0,o.useRef)(null),tn=(0,a.useRouter)(),rn=(0,P.y)(),on=rn.registerOnKeyDown,cn=rn.unregisterOnKeyDown;return(0,o.useEffect)((function(){return function(){cn(z)}}),[cn,z]),on(z,(function(n,e,t){if(j)if(b)(0,k.j)(n);else{var r=R[0];if(e[Z.kD])(0,k.j)(n),"undefined"===typeof r||r===m.length-1?A([0]):A([r+1]);else if(e[Z.Bu])(0,k.j)(n),A("undefined"===typeof r||0===r?[m.length-1]:[r-1]);else if(e[Z.Uq]&&"undefined"!==typeof r){var o,i=m[r];if(i)if(null!==i&&void 0!==i&&i.onClick)null===i||void 0===i||null===(o=i.onClick)||void 0===o||o.call(i);else if(null!==i&&void 0!==i&&i.linkProps){var c,a;tn.push(null===i||void 0===i||null===(c=i.linkProps)||void 0===c?void 0:c.href,null===i||void 0===i||null===(a=i.linkProps)||void 0===a?void 0:a.as)}null===v||void 0===v||v()}else null===m||void 0===m||m.forEach((function(n){var r=n.keyboardShortcutValidation;null===r||void 0===r||r({keyHistory:t,keyMapping:e})}))}}),[R,m,v,j,A]),(0,o.useEffect)((function(){j||A([])}),[j]),m?function n(e,t,a){var b=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,m=arguments.length>4?arguments[4]:void 0;return b+=1,(0,C.jsx)(x,{roundedStyle:M,style:{display:a||N[t]?null:"none",left:"undefined"===typeof S&&(1===b?g||0:"100%"),right:1===b?S:null,top:1===b?($||0)+E:(2===b?G:3===b?V:Q)||0},width:H,children:null===e||void 0===e?void 0:e.map((function(e,t){var a=e.beforeIcon,g=e.bold,x=e.disabled,j=e.items,Z=e.indent,k=e.isGroupingTitle,P=e.keyTextGroups,I=e.label,S=e.leftAligned,D=e.linkProps,E=e.onClick,z=e.openConfirmationDialogue,H=e.tooltip,B=e.uuid;m.current[B]=(0,o.createRef)();var A=D?O:w,L=I();if(k)return(0,C.jsxs)(y,{roundedStyle:M,children:["string"===typeof L&&(0,C.jsx)(p.ZP,{bold:!0,muted:!0,noWrapping:!0,children:L}),"string"!==typeof L&&L]},B);var N=(0,C.jsxs)(A,{alternateBackground:i||M,disabled:x,highlighted:R[0]===t,indent:Z,largePadding:M,onClick:function(n){D||n.preventDefault(),z&&!x?(null===T||void 0===T||T(!0),null===F||void 0===F||F((function(){return E})),null===v||void 0===v||v()):E&&!x&&(null===E||void 0===E||E(),null===v||void 0===v||v())},onMouseEnter:function(){var n,e;if(U((function(n){return _(_({},n),{},(0,r.Z)({},B,!0))})),1===b)q((null===(n=m.current[B])||void 0===n||null===(e=n.current)||void 0===e?void 0:e.offsetTop)||0);else if(2===b){var t,o;K((null===(t=m.current[B])||void 0===t||null===(o=t.current)||void 0===o?void 0:o.offsetTop)||0)}else if(3===b){var i,c;J((null===(i=m.current[B])||void 0===i||null===(c=i.current)||void 0===c?void 0:c.offsetTop)||0)}},onMouseLeave:function(){U((function(n){return _(_({},n),{},(0,r.Z)({},B,!1))}))},ref:m.current[B],children:[(0,C.jsxs)(u.ZP,{alignItems:"center",fullWidth:!0,justifyContent:S?"flex-start":"space-between",children:[(a||"string"===typeof L)&&(0,C.jsxs)(l.Z,{alignItems:"center",children:[a&&(0,C.jsxs)(C.Fragment,{children:[a,(0,C.jsx)(s.Z,{mr:1})]}),"string"===typeof L&&(0,C.jsx)(p.ZP,{bold:g,disabled:x,noWrapping:!0,children:(0,C.jsx)("div",{role:"menuitem",children:L})})]}),"string"!==typeof L&&L,j&&(0,C.jsx)(s.Z,{ml:2,children:(0,C.jsx)(h._Q,{})}),P&&(0,C.jsx)(s.Z,{ml:4,ref:en,children:(0,C.jsx)(d.Z,{keyTextGroups:P})})]}),j&&n(j,B,!1,b,m)]},B);return H&&(N=(0,C.jsx)(f.Z,{appearBefore:!0,block:!0,center:!0,description:H(),size:null,widthFitContent:!0,children:N})),D?(0,o.createElement)(c(),_(_({},D),{},{key:B,passHref:!0}),N):N}))})}(m,void 0,j,0,nn):null}},62609:function(n,e,t){t.d(e,{Z:function(){return m}});var r=t(60328),o=t(67971),i=t(38626),c=t(23831),a=t(73942),l=t(86585),u=t(49125),d=t(28598),s=i.default.div.withConfig({displayName:"PopupMenuContainer__ContainerStyle",componentId:"sc-lq9od4-0"})(["border-radius:","px;padding:","px;position:absolute;z-index:",";cursor:default;"," "," "," "," "," "," "," "," ",""],a.TR,2*u.iI,l.bf+100,(function(n){return"\n background-color: ".concat((n.theme.interactive||c.Z.interactive).defaultBackground,";\n box-shadow: ").concat((n.theme.shadow||c.Z.shadow).window,";\n ")}),(function(n){return"undefined"!==typeof n.left&&"\n left: ".concat(n.left,"px;\n ")}),(function(n){return"undefined"!==typeof n.right&&"\n right: ".concat(n.right,"px;\n ")}),(function(n){return"undefined"!==typeof n.top&&"\n top: ".concat(n.top,"px;\n ")}),(function(n){return"undefined"!==typeof n.bottom&&"\n bottom: ".concat(n.bottom,"px;\n ")}),(function(n){return"undefined"===typeof n.top&&"undefined"===typeof n.bottom&&"\n top: ".concat(l.Mz-1*u.iI,"px;\n ")}),(function(n){return n.centerOnScreen&&"\n top: 40%;\n left: 50%;\n transform: translate(-50%,-50%);\n "}),(function(n){return n.width&&"\n width: ".concat(n.width,"px;\n ")}),(function(n){return!n.width&&"\n min-width: ".concat(33*u.iI,"px;\n ")}));var p=function(n){var e=n.bottom,t=n.centerOnScreen,r=n.children,o=n.left,i=n.right,c=n.top,a=n.width;return(0,d.jsx)(s,{bottom:e,centerOnScreen:t,left:o,right:i,top:c,width:a,children:r})},f=t(86673),h=t(19711),b=32*u.iI;var m=function(n){var e=n.bottom,t=n.cancelText,i=n.centerOnScreen,c=n.confirmText,a=n.danger,l=n.left,u=n.isLoading,s=n.neutral,m=n.onCancel,g=n.onClick,v=n.right,x=n.subtitle,y=n.title,j=n.top,w=n.width;return(0,d.jsxs)(p,{bottom:e,centerOnScreen:i,left:l,right:v,top:j,width:w||b,children:[(0,d.jsxs)(o.ZP,{alignItems:"center",flexDirection:"column",children:[(0,d.jsx)(f.Z,{pb:1,children:(0,d.jsx)(h.ZP,{bold:!0,danger:a,large:!0,warning:!a,whiteSpaceNormal:!0,children:y})}),(0,d.jsx)(h.ZP,{small:!0,children:x})]}),(0,d.jsx)(f.Z,{mt:2,children:(0,d.jsxs)(o.ZP,{alignItems:"center",justifyContent:"center",children:[m&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(r.Z,{onClick:m,children:t||"Cancel"}),(0,d.jsx)(f.Z,{mr:1})]}),(0,d.jsx)(r.Z,{loading:u,onClick:g,children:(0,d.jsx)(h.ZP,{bold:!0,danger:a,success:!a&&!s,children:c||"Confirm"})})]})})]})}},46261:function(n,e,t){t.d(e,{Z:function(){return S}});var r=t(82394),o=t(26304),i=t(82684),c=t(38626),a=t(67971),l=t(19711),u=t(23831),d=t(73942),s=t(49125),p=t(60328),f=t(90880),h=t(28598),b=(0,c.css)(["position:relative;"," "," ",""],(function(n){return n.height&&"\n height: ".concat(n.height,"px;\n ")}),(function(n){return n.size&&"\n height: ".concat(n.size,"px;\n ")}),(function(n){return n.fullSize&&"\n height: 100%;\n "})),m=c.default.div.withConfig({displayName:"TooltipWrapper__ContainerStyle",componentId:"sc-1dd57l8-0"})(["",""],b),g=c.default.span.withConfig({displayName:"TooltipWrapper__ContainerSpanStyle",componentId:"sc-1dd57l8-1"})(["",""],b),v=c.default.a.withConfig({displayName:"TooltipWrapper__HoverStyle",componentId:"sc-1dd57l8-2"})([""," "," "," border-radius:50%;"," "," &:active,&:focus{outline:none;}",""],(0,f.eR)(),(function(n){return n.size&&"\n height: ".concat(n.size,"px;\n width: ").concat(n.size,"px;\n ")}),(function(n){return n.fullSize&&"\n height: 100%;\n width: 100%;\n "}),(function(n){return!n.block&&"\n display: inline-block;\n "}),(function(n){return n.block&&"\n display: block;\n "}),(function(n){return!n.noHoverOutline&&"\n &:hover {\n cursor: pointer;\n\n box-shadow:\n 0 0 0 ".concat(d.PV,"px ").concat((0,p.W)(n),",\n 0 0 0 ").concat(d.PV+d.q2,"px ").concat((n.theme.interactive||u.Z.interactive).hoverOverlay,";\n }\n ")})),x=c.default.span.withConfig({displayName:"TooltipWrapper__BasicStyle",componentId:"sc-1dd57l8-3"})([""]),y=c.default.div.withConfig({displayName:"TooltipWrapper__ContentStyle",componentId:"sc-1dd57l8-4"})(["position:absolute;z-index:3;"," "," "," "," "," "," "," "," "," ",""],(function(n){return"\n box-shadow: ".concat((n.theme.shadow||u.Z.shadow).base,";\n ")}),(function(n){return n.lightBackground&&"\n box-shadow: ".concat((n.theme.shadow||u.Z.shadow).window,";\n ")}),(function(n){return n.appearAbove&&!n.size&&"\n bottom: 0;\n "}),(function(n){return n.appearAbove&&n.size&&"\n bottom: ".concat(n.size+d.PV+d.q2,"px;\n ")}),(function(n){return n.appearBefore&&"\n right: ".concat(2*s.iI,"px;\n ")}),(function(n){return n.leftPosition&&"\n left: ".concat(n.leftPosition,"px;\n ")}),(function(n){return!n.leftPosition&&n.rightPosition&&"\n right: 0px;\n "}),(function(n){return n.minWidth&&"\n min-width: ".concat(n.minWidth,"px;\n ")}),(function(n){return n.widthFitContent&&"\n width: max-content;\n "}),(function(n){return n.topOffset&&"\n top: ".concat(n.topOffset,"px;\n ")}));var j=function(n){var e=n.alignLeft,t=n.appearAbove,r=n.appearBefore,o=n.autoHide,c=n.autoWidth,a=n.basic,l=n.block,u=n.center,d=n.children,p=n.content,f=n.forceVisible,b=void 0!==f&&f,j=n.fullSize,w=n.height,O=n.inline,Z=n.lightBackground,k=n.minWidth,P=n.noHoverOutline,C=n.size,I=void 0===C?2*s.iI:C,_=n.topOffset,S=n.visibleDelay,M=void 0===S?1e3:S,F=n.widthFitContent,T=(0,i.useState)(!1),D=T[0],E=T[1],z=(0,i.useState)(!1),H=z[0],B=z[1],R=(k-I)/-2,A=O?g:m,L=a?x:v,N=(0,h.jsx)(L,{block:l,fullSize:j,href:"#",noHoverOutline:P,onClick:function(n){return n.preventDefault()},onMouseEnter:function(){return E(!0)},size:I,children:d});return(0,i.useEffect)((function(){var n=setInterval((function(){return B(!0)}),M);return D||clearInterval(n),o&&setTimeout((function(){E(!1),B(!1)}),3*M),function(){return clearInterval(n)}}),[o,B,M,D]),(0,h.jsxs)(A,{fullSize:j,height:w,onMouseLeave:function(){E(!1),B(!1)},size:I,children:[N,(H||b)&&(0,h.jsx)(y,{appearAbove:t,appearBefore:r,leftPosition:u?R:null,lightBackground:Z,minWidth:c?k:null,rightPosition:e,size:I,topOffset:_,widthFitContent:F,children:p})]})},w=t(22341),O=["autoWidth","children","default","description","inverted","keyboardShortcuts","label","lightBackground","maxWidth","muted","primary","size","warning","widthFitContent"];function Z(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function k(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?Z(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var P=42*s.iI,C=(0,c.css)(["border-radius:","px;"," "," "," ",""],d.BG,(function(n){return"\n box-shadow: ".concat((n.theme.shadow||u.Z.shadow).popup,";\n background-color: ").concat((n.theme.background||u.Z.background).popup,";\n ")}),(function(n){return n.lightBackground&&"\n background-color: ".concat((n.theme.interactive||u.Z.interactive).defaultBackground,";\n ")}),(function(n){return n.width&&!(n.widthFitContent||n.autoWidth)&&"\n width: ".concat(n.width,"px;\n ")}),(function(n){return!n.width&&!(n.widthFitContent||n.autoWidth)&&"\n width: ".concat(P,"px;\n ")})),I=c.default.div.withConfig({displayName:"Tooltip__LabelStyle",componentId:"sc-allmdq-0"})([""," padding:","px ","px;"],C,.75*s.iI,1*s.iI),_=c.default.div.withConfig({displayName:"Tooltip__DescriptionStyle",componentId:"sc-allmdq-1"})([""," padding:","px ","px;"],C,1.5*s.iI,2*s.iI);var S=function(n){var e=n.autoWidth,t=n.children,r=n.default,c=n.description,u=n.inverted,d=n.keyboardShortcuts,p=n.label,f=n.lightBackground,b=n.maxWidth,m=n.muted,g=n.primary,v=n.size,x=void 0===v?2*s.iI:v,y=n.warning,Z=n.widthFitContent,C=(0,o.Z)(n,O),S=c||p||"",M=c?_:I,F=Math.min(b||P,S.length*s.Fo),T=[];null===d||void 0===d||d.forEach((function(n,e){e>=1&&T.push((0,h.jsx)(l.ZP,{default:!0,children:"+"})),T.push(n)}));var D=T.map((function(n,e){var t="keyboard-shortcut-".concat(e);return"string"===typeof n?(0,h.jsx)("span",{children:n},t):i.cloneElement(n,{key:t})}));return(0,h.jsx)(j,k(k({},C),{},{autoWidth:e,content:(0,h.jsx)(M,{autoWidth:e,lightBackground:f,width:b,widthFitContent:Z,children:(0,h.jsxs)(a.ZP,{alignItems:"center",children:[(0,h.jsx)(l.ZP,{whiteSpaceNormal:!0,children:S}),D.length>=1&&(0,h.jsx)(l.ZP,{muted:!0,children:"\xa0\xa0\xa0\u2022\xa0\xa0\xa0"}),D.length>=1&&D]})}),lightBackground:f,minWidth:F,noHoverOutline:!!t,size:x,widthFitContent:Z,children:t||(0,h.jsx)(w.kI,{default:r,inverted:u,muted:m,primary:g,size:x,warning:y})}))}},11135:function(n,e,t){t.d(e,{ZP:function(){return tn}});var r=t(82394),o=t(26304),i=t(82684),c=t(12691),a=t.n(c),l=t(38626),u=t(93461),d=t(79749),s=t(34376),p=t(9736);function f(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function h(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?f(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function b(){var n,e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return h(h({},t),{},{groupId:null===(n=(0,p.ex)())||void 0===n?void 0:n.id,id:null===(e=(0,p.PR)())||void 0===e?void 0:e.id})}var m=t(75582),g=t(39421),v=t(86954);function x(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function y(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?x(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):x(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function j(){return[[v.go,"initialAsPath"],[v.iT,"initialPathname"],[v.FT,"notificationTemplate"],[v.Ll,"notificationUUID"],[v.$m,"referringURL"]].reduce((function(n,e){var t=(0,m.Z)(e,2),o=t[0],i=t[1];return y(y({},n),{},(0,r.Z)({},i,g.Z.get(o,v.vZ)))}),{})}var w=t(36283);function O(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function Z(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?O(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):O(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var k="click",P="button";function C(n){var e,t,r=n.actionName,o=n.actionType,i=n.componentName,c=n.componentType,a=n.properties,l=n.screenName,u=(e=r||o,t=i||c,"".concat(l,".").concat(e,"_").concat(t)),d=function(){var n,e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=j(),o=(null!==t&&void 0!==t&&t.width,window.innerWidth);return Z(Z(Z({},t),r),{},{groupId:null===(n=(0,p.ex)())||void 0===n?void 0:n.id,partner_id:"Mage",screenSize:(0,w.Z3)(o),userId:null===(e=(0,p.PR)())||void 0===e?void 0:e.id})}(Z({actionType:o,componentType:c},a));return{eventProperties:d,eventType:u,userProperties:b()}}function I(n,e){null===n||void 0===n||n(e)}var _=function(n){var e=n.children;return n.eventProperties,n.userProperties,e((function(n){return!1}))},S=t(41150),M=t(28598);function F(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function T(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?F(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):F(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var D,E,z=function(n){var e,t=n.buildChildren,r=n.disabled,o=n.eventActionName,c=void 0===o?k:o,a=n.eventComponentName,l=void 0===a?P:a,u=n.eventProperties,d=void 0===u?{}:u,p=n.eventScreenName,f=void 0===p?"generic":p,h=n.keyboardShortcutValidation,b=n.linkProps,m=n.onClick,g=n.openNewTab,v=n.requireKeyUp,x=n.uuid,y=(0,s.useRouter)(),j=(0,S.y)(),w=j.registerOnKeyDown,O=j.registerOnKeyUp,Z=j.unregisterOnKeyDown,F=j.unregisterOnKeyUp;(0,i.useEffect)((function(){return function(){var n=v?F:Z;null===n||void 0===n||n(x)}}),[v,Z,F,x]),r||!m&&!b||(e=function(n){null===m||void 0===m||m(n),b&&(g?(window.open(b.as||b.href),n.preventDefault()):y.push(b.href,b.as))});var D=C({actionName:c,actionType:k,componentName:l,componentType:P,properties:d,screenName:f}),E=D.eventType,z=D.eventProperties,H=D.userProperties;return(0,M.jsx)(_,{eventProperties:z,userProperties:H,children:function(n){var r=n.logEvent;h&&e&&(v?O:w)(x,(function(n,t,o){h({keyHistory:o,keyMapping:t})&&(I(r,E,{eventProperties:T(T({},z),{},{usedKeyboardShortcut:!0}),userProperties:H}),e(n))}),[z,E,r,e,H]);return t({eventProperties:z,eventType:E,logEvent:r,onClick:e,userProperties:H})}})},H={chatBubbleProps:null,graphicButtonProps:null,logoProps:null,mageImageUrl:null,mascotImageUrls:{base:null,castingSpell:null,chargingUp:null,thinking:null},sharedProps:null},B=i.createContext(H),R=B,A=t(86673),L=t(54283),N=t(23831),U=t(73899),W=t(73942),G=t(2005),q=t(31012),Y=t(10919),V=t(49125),K=t(90880),X=["Icon","afterElement","beforeElement","bold","borderless","centerText","children","compact","disabled","fitContentWidth","inverted","keyTextGroups","keyTextsPosition","linkProps","loading","mutedDisabled","noHover","onClick","padding","smallIcon","type","useModelTheme"];function Q(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function J(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?Q(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Q(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}!function(n){n.LEFT="left",n.RIGHT="right"}(D||(D={})),function(n){n.BUTTON="button",n.SUBMIT="submit"}(E||(E={}));var $=(0,l.css)([""," align-items:center;border:none;display:flex;flex-direction:row;position:relative;text-align:left;z-index:0;"," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," ",""],(0,K.eR)(),(function(n){return!n.large1&&!n.large2&&"\n ".concat(q.iD,"\n ")}),(function(n){return n.small&&"\n ".concat(q.HC,"\n ")}),(function(n){return n.large1&&"\n ".concat(q.ln,"\n ")}),(function(n){return n.large2&&"\n ".concat(q.QU,"\n ")}),(function(n){return!n.inline&&"\n width: 100%;\n "}),(function(n){return n.shortWidth&&"\n min-width: ".concat(28*V.iI,"px;\n ")}),(function(n){return!n.wrapText&&"\n white-space: nowrap;\n "}),(function(n){return n.outline&&!n.disabled&&"\n &:hover {\n box-shadow:\n 0 0 0 ".concat(W.PV,"px ").concat((n.theme||N.Z).background.panel,",\n 0 0 0 ").concat(W.PV+W.q2,"px ").concat((n.theme.interactive||N.Z.interactive).hoverOverlay,";\n }\n\n &:focus {\n box-shadow:\n 0 0 0 ").concat(W.PV,"px ").concat((n.theme||N.Z).background.panel,",\n 0 0 0 ").concat(W.PV+W.q2,"px ").concat((n.theme.interactive||N.Z.interactive).focusBorder,";\n }\n\n &:active {\n box-shadow: none;\n }\n ")}),(function(n){return!n.secondary&&"\n font-family: ".concat(G.ry,";\n justify-content: space-between;\n ")}),(function(n){return n.primary&&!n.disabled&&"\n background-color: ".concat((n.theme.interactive||N.Z.interactive).linkPrimary,";\n border-color: ").concat((n.theme.interactive||N.Z.interactive).linkPrimary,";\n color: ").concat((n.theme.monotone||N.Z.monotone).white,";\n\n &:hover,\n &:focus,\n &:active {\n background-color: ").concat((n.theme.interactive||N.Z.interactive).linkPrimaryHover," !important;\n border-color: ").concat((n.theme.interactive||N.Z.interactive).linkPrimary," !important;\n }\n ")}),(function(n){return n.center&&"\n justify-content: center;\n "}),(function(n){return!n.noPadding&&!n.spacious&&!n.compact&&"\n padding: ".concat(1.25*V.iI,"px ").concat(1.5*V.iI,"px;\n ")}),(function(n){return n.compact&&"\n padding: ".concat(.5*V.iI,"px ").concat(.75*V.iI,"px;\n ")}),(function(n){return!n.noPadding&&!n.spacious&&n.paddingTop&&"\n padding-top: ".concat(n.paddingTop,"px;\n ")}),(function(n){return!n.noPadding&&!n.spacious&&n.halfPaddingTop&&"\n padding-top: ".concat(.625*V.iI,"px;\n ")}),(function(n){return!n.noPadding&&!n.spacious&&n.halfPaddingBottom&&"\n padding-bottom: ".concat(.625*V.iI,"px;\n ")}),(function(n){return!n.noPadding&&!n.spacious&&n.paddingBottom&&"\n padding-bottom: ".concat(n.paddingBottom,"px;\n ")}),(function(n){return!n.noPadding&&!n.spacious&&n.halfPaddingRight&&"\n padding-right: ".concat(.75*V.iI,"px;\n ")}),(function(n){return!n.noPadding&&!n.spacious&&n.halfPaddingLeft&&"\n padding-left: ".concat(.75*V.iI,"px;\n ")}),(function(n){return!n.noPadding&&n.spacious&&!n.marketing&&"\n padding: ".concat(2.25*V.iI,"px ").concat(3*V.iI,"px;\n ")}),(function(n){return!n.noPadding&&n.spacious&&n.marketing&&"\n padding: ".concat(2.25*V.iI-2,"px ").concat(3*V.iI-2,"px;\n ")}),(function(n){return!n.noPadding&&n.spacious&&n.halfPaddingTop&&"\n padding-top: ".concat(1.125*V.iI,"px;\n ")}),(function(n){return!n.noPadding&&n.spacious&&n.halfPaddingBottom&&"\n padding-bottom: ".concat(1.125*V.iI,"px;\n ")}),(function(n){return!n.noPadding&&n.spacious&&n.halfPaddingRight&&"\n padding-right: ".concat(1.5*V.iI,"px;\n ")}),(function(n){return!n.noPadding&&n.spacious&&n.halfPaddingLeft&&"\n padding-left: ".concat(1.5*V.iI,"px;\n ")}),(function(n){return n.secondary&&"\n flex-basis: content;\n font-family: ".concat(G.nF,";\n padding: 0;\n ")}),(function(n){return n.noPadding&&"\n padding: 0;\n "}),(function(n){return n.bold&&"\n font-family: ".concat(G.nF,";\n ")}),(function(n){return!n.muted&&!n.inverted&&"\n color: ".concat((n.theme.content||N.Z.content).active,";\n ")}),(function(n){return!n.muted&&n.inverted&&"\n color: ".concat((n.theme.content||N.Z.content).inverted,";\n ")}),(function(n){return n.muted&&"\n color: ".concat((n.theme.monotone||N.Z.monotone).grey300,";\n ")}),(function(n){return n.warning&&"\n color: ".concat((n.theme.brand||N.Z.brand).energy400,";\n ")}),(function(n){return n.noHover&&"\n &:hover {\n cursor: default;\n }\n "}),(function(n){return n.greyBorder&&"\n border: ".concat(W.YF,"px ").concat(W.M8," ").concat((n.theme||N.Z).borders.button,";\n ")}),(function(n){return n.blackBorder&&"\n border: ".concat(W.YF,"px ").concat(W.M8," ").concat((n.theme.monotone||N.Z.monotone).black,";\n ")}),(function(n){return!n.pill&&!n.borderless&&!n.compact&&"\n border-radius: ".concat(W.n_,"px;\n ")}),(function(n){return n.compact&&"\n border-radius: ".concat(W.BG,"px;\n ")}),(function(n){return!n.borderRadiusLeft&&!n.borderRadiusRight&&n.pill&&!n.spacious&&"\n border-radius: ".concat(5*V.iI,"px;\n ")}),(function(n){return n.borderRadiusLeft&&n.pill&&!n.spacious&&"\n border-bottom-left-radius: ".concat(5*V.iI,"px;\n border-top-left-radius: ").concat(5*V.iI,"px;\n ")}),(function(n){return n.borderRadiusRight&&n.pill&&!n.spacious&&"\n border-bottom-right-radius: ".concat(5*V.iI,"px;\n border-top-right-radius: ").concat(5*V.iI,"px;\n ")}),(function(n){return n.borderRadiusLeft&&n.pill&&n.spacious&&"\n border-bottom-left-radius: ".concat(8*V.iI,"px;\n border-top-left-radius: ").concat(8*V.iI,"px;\n ")}),(function(n){return n.borderRadiusRight&&n.pill&&n.spacious&&"\n border-bottom-right-radius: ".concat(8*V.iI,"px;\n border-top-right-radius: ").concat(8*V.iI,"px;\n ")}),(function(n){return n.inverted&&!n.noBackground&&!n.backgroundColor&&"\n background-color: ".concat((n.theme.monotone||N.Z.monotone).black,";\n ")}),(function(n){return!n.inverted&&!n.noBackground&&!n.primary&&"\n background-color: ".concat((n.theme.interactive||N.Z.interactive).defaultBackground,";\n\n &:hover {\n background-color: ").concat((n.theme.interactive||N.Z.interactive).hoverBackground,";\n }\n ")}),(function(n){return!n.noBackground&&n.backgroundColor&&"\n background-color: ".concat(n.backgroundColor,";\n ")}),(function(n){return n.noBackground&&"\n background-color: transparent !important;\n "}),(function(n){return n.disabled&&n.inverted&&"\n color: ".concat((n.theme.monotone||N.Z.monotone).grey400," !important;\n ")}),(function(n){return n.disabled&&!n.inverted&&"\n color: ".concat((n.theme.monotone||N.Z.monotone).grey300," !important;\n ")}),(function(n){return n.disabled&&"\n &:hover {\n cursor: not-allowed;\n }\n "}),(function(n){return n.selected&&"\n background-color: ".concat((n.theme.monotone||N.Z.monotone).black,";\n color: ").concat((n.theme.monotone||N.Z.monotone).white,";\n ")}),(function(n){return n.selected&&n.grey300&&"\n background-color: ".concat((n.theme.monotone||N.Z.monotone).grey300,";\n ")}),(function(n){return(n.selected||n.useModelTheme)&&n.fire&&"\n background-color: ".concat((n.theme.brand||N.Z.brand).fire400,";\n ")}),(function(n){return n.useModelTheme&&"\n color: ".concat((n.theme.monotone||N.Z.monotone).white,";\n ")}),(function(n){return(n.selected||n.useModelTheme)&&n.earth&&"\n background-color: ".concat((n.theme.brand||N.Z.brand).earth400,";\n ")}),(function(n){return n.primaryGradient&&"\n background: ".concat(U.uH," !important;\n ")}),(function(n){return n.background&&"\n background: ".concat(n.background," !important;\n ")}),(function(n){return(n.selected||n.useModelTheme)&&n.wind&&"\n background-color: ".concat((n.theme.brand||N.Z.brand).wind400,";\n\n &:hover,\n &:focus,\n &:active {\n background-color: ").concat((n.theme.brand||N.Z.brand).wind500,";\n }\n ")}),(function(n){return(n.selected||n.useModelTheme)&&n.water&&"\n background-color: ".concat((n.theme.brand||N.Z.brand).water400,";\n ")}),(function(n){return n.withIcon&&"\n padding: ".concat(1.25*V.iI-1,"px;\n ")}),(function(n){return n.padding>0&&"\n padding: ".concat(n.padding,"px;\n ")}),(function(n){return n.shadow&&"\n box-shadow: ".concat((n.theme.shadow||N.Z.shadow).large,";\n ")})),nn=l.default.button.withConfig({displayName:"KeyboardShortcutButton__ButtonStyle",componentId:"sc-10tm4pj-0"})(["",""],$),en=l.default.a.withConfig({displayName:"KeyboardShortcutButton__AnchorStyle",componentId:"sc-10tm4pj-1"})([""," ",""],$,Y.R);var tn=function(n){var e=n.Icon,t=n.afterElement,c=n.beforeElement,l=n.bold,s=n.borderless,p=n.centerText,f=n.children,h=n.compact,b=n.disabled,m=n.fitContentWidth,g=n.inverted,v=n.keyTextGroups,x=n.keyTextsPosition,y=void 0===x?D.RIGHT:x,j=n.linkProps,w=n.loading,O=n.mutedDisabled,Z=n.noHover,k=n.onClick,P=n.padding,C=n.smallIcon,_=n.type,S=void 0===_?E.BUTTON:_,F=n.useModelTheme,T=(0,o.Z)(n,X),H=j||{},B=H.as,N=H.href,U=B||N?en:nn,W=(0,i.useMemo)((function(){if(!v)return null;var n=(0,r.Z)({},y===D.RIGHT?"ml":"mr",f?1:0);return(0,M.jsx)(A.Z,J(J({},n),{},{children:(0,M.jsx)(d.Z,{borderless:g,disabled:b,keyTextGroups:v,mutedDisabled:O})}))}),[f,b,g,v,y,O]),G=((0,i.useContext)(R)||{}).sharedProps;return(0,M.jsx)(z,J(J({},T),{},{buildChildren:function(n){var r=n.eventProperties,o=n.eventType,i=n.logEvent,d=n.onClick,v=n.userProperties,x=(0,M.jsxs)(U,J(J(J({},T),F?G:{}),{},{bold:F||l,borderless:F||s,center:p,compact:h,disabled:b||O,fitContentWidth:m,inverted:g,noHover:(!d||Z)&&!(B||N)&&S===E.BUTTON,onClick:function(n){I(i,o,{eventProperties:r,userProperties:v}),null===d||void 0===d||d(n)},padding:C&&!f?11:P,type:B||N?null:S,useModelTheme:F,withIcon:!!e,children:[c&&!w&&(0,M.jsxs)(M.Fragment,{children:[c,(0,M.jsx)(A.Z,{mr:1})]}),y===D.LEFT&&W,(0,M.jsxs)(u.Z,{alignItems:"center",children:[e&&(0,M.jsx)(e,{muted:b||O,size:C?2*V.iI:2.5*V.iI}),e&&f&&(0,M.jsx)(A.Z,{mr:1}),w&&(0,M.jsx)(L.Z,{inverted:!g,small:C}),!w&&f]}),y===D.RIGHT&&W&&(0,M.jsx)(A.Z,{ml:1,children:W}),t&&!w&&(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(A.Z,{ml:t?1:0}),t]})]}));return!B&&!N||b||O?x:(0,M.jsx)(a(),J(J({},j),{},{passHref:!0,children:x}))},disabled:b||O,linkProps:j,onClick:k}))}},38341:function(n,e,t){var r=t(21831),o=t(82394),i=t(26304),c=(t(82684),t(38626)),a=t(67971),l=t(86673),u=t(19711),d=t(23831),s=t(22341),p=t(73942),f=t(49125),h=t(28598),b=["beforeIcon","checked","disabled","errorMessage","label","labelDescription","large","meta","monospace","onClick","required","small","warning","xsmall"];function m(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function g(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?m(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var v=c.default.div.withConfig({displayName:"Checkbox__CheckboxContainer",componentId:"sc-ujqx42-0"})(["display:inline-block;vertical-align:middle;cursor:pointer;"]),x=c.default.div.withConfig({displayName:"Checkbox__ErrorContainer",componentId:"sc-ujqx42-1"})(["margin-top:4px;"]),y=c.default.input.withConfig({displayName:"Checkbox__HiddenCheckbox",componentId:"sc-ujqx42-2"})(["border:0;clip:rect(0 0 0 0);clippath:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;",""],(function(n){return n.notClickable&&"\n background-color: ".concat((n.theme.content||d.Z.content).disabled,"\n border-color: ").concat((n.theme.content||d.Z.content).disabled,"\n\n &:hover {\n cursor: not-allowed;\n }\n ")})),j=c.default.div.withConfig({displayName:"Checkbox__StyledCheckbox",componentId:"sc-ujqx42-3"})(["border-radius:","px;height:","px;transition:all 150ms;width:","px;svg{position:relative;visibility:",";}"," "," "," "," input[disabled]{cursor:default;}"," ",""],.5*f.iI,2*f.iI,2*f.iI,(function(n){return n.checked||n.required?"visible":"hidden"}),(function(n){return n.large&&"\n svg {\n left: -4px;\n top: -8px;\n }\n "}),(function(n){return!n.checked&&"\n background-color: ".concat((n.theme.background||d.Z.background).popup,";\n border: ").concat(p.PV,"px ").concat(p.M8," ").concat((n.theme.content||d.Z.content).muted,";\n ")}),(function(n){return n.checked&&"\n background-color: ".concat((n.theme.interactive||d.Z.interactive).checked,";\n border: ").concat(p.YF,"px ").concat(p.M8," transparent;\n ")}),(function(n){return n.required&&"\n background-color: ".concat((n.theme.content||d.Z.content).disabled,";\n border: ").concat(p.YF,"px ").concat(p.M8," transparent;\n ")}),(function(n){return n.disabled&&"\n background-color: ".concat((n.theme.content||d.Z.content).disabled,";\n border-color: ").concat((n.theme.content||d.Z.content).disabled,";\n\n &:hover {\n cursor: not-allowed;\n }\n ")}),(function(n){return n.warning&&"\n background-color: ".concat((n.theme.accent||d.Z.accent).warning,";\n border-color: ").concat((n.theme.interactive||d.Z.interactive).defaultBorder,"\n ")})),w=c.default.label.withConfig({displayName:"Checkbox__LabelStyle",componentId:"sc-ujqx42-4"})(["-ms-flex-direction:column;align-items:center;display:flex;flex-direction:column;flex-direction:row;&:hover{cursor:pointer;}"]);e.Z=function(n){var e=n.beforeIcon,t=n.checked,o=n.disabled,c=n.errorMessage,d=n.label,p=n.labelDescription,m=n.large,O=n.meta,Z=n.monospace,k=void 0!==Z&&Z,P=n.onClick,C=n.required,I=n.small,_=void 0!==I&&I,S=n.warning,M=n.xsmall,F=void 0!==M&&M,T=(0,i.Z)(n,b),D=S||!!(c||O&&O.touched&&O.error);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(w,{onClick:function(n){n.preventDefault(),P&&!o&&P(n)},children:[(0,h.jsxs)(v,{children:[(0,h.jsx)(y,g(g({},T),{},{disabled:o?"disabled":void 0,notClickable:o})),(0,h.jsx)(j,{checked:t,disabled:o,large:m,required:C,warning:D,children:(0,h.jsx)(s.Jr,{size:f.iI*(m?3:2)})})]}),e&&(0,h.jsx)(l.Z,{ml:1,children:(0,h.jsx)(a.ZP,{children:e})}),d&&(0,h.jsxs)(l.Z,{pl:1,children:["string"===typeof d&&(0,h.jsx)(u.ZP,{disabled:o,lineThrough:o,monospace:k,small:_,xsmall:F,children:d}),"string"!==typeof d&&d,p&&(0,h.jsx)(u.ZP,{muted:!0,small:!0,children:p})]})]}),(c||O&&O.touched&&O.error)&&(0,h.jsx)(x,{children:(0,h.jsx)(u.ZP,{small:!0,warning:!0,children:c?(0,r.Z)(c):O.error})})]})}},16634:function(n,e,t){var r=t(82394),o=t(26304),i=t(38626),c=t(93461),a=t(67971),l=t(23831),u=t(73942),d=t(49125),s=t(28598),p=["children"];function f(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function h(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?f(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var b=i.default.div.withConfig({displayName:"Circle__CircleStyle",componentId:"sc-1o70504-0"})([""," "," "," "," "," "," "," "," "," "," "," "," "," ",""],(function(n){return!n.square&&"\n border-radius: 50%;\n "}),(function(n){return n.square&&"\n border-radius: ".concat(n.size>=2*d.iI?u.BG:2,"px;\n ")}),(function(n){return!n.color&&!(n.borderSize||n.borderColor)&&"\n background-color: ".concat((n.theme.content||l.Z.content).muted,";\n ")}),(function(n){return n.success&&!n.borderSize&&"\n background-color: ".concat((n.theme.status||l.Z.status).positive,";\n ")}),(function(n){return n.warning&&!n.borderSize&&"\n background-color: ".concat((n.theme.accent||l.Z.accent).warning,";\n ")}),(function(n){return n.success&&n.borderSize&&"\n border-color: ".concat((n.theme.status||l.Z.status).positive," !important;\n ")}),(function(n){return n.warning&&n.borderSize&&"\n border-color: ".concat((n.theme.accent||l.Z.accent).warning," !important;\n ")}),(function(n){return n.borderSize&&"\n border-style: solid;\n border-width: ".concat(n.borderSize,"px;\n ")}),(function(n){return(n.borderSize||n.borderColor)&&"\n border: ".concat(n.borderSize||1,"px solid ").concat(n.borderColor||(n.theme.content||l.Z.content).active,";\n ")}),(function(n){return n.color&&"\n background-color: ".concat(n.color,";\n ")}),(function(n){return n.size&&"\n height: ".concat(n.size,"px;\n width: ").concat(n.size,"px;\n ")}),(function(n){return n.danger&&"\n background-color: ".concat((n.theme.borders||l.Z.borders).danger,";\n ")}),(function(n){return n.muted&&"\n border-color: ".concat((n.theme.content||l.Z.content).muted,";\n ")}),(function(n){return n.default&&"\n border-color: ".concat((n.theme.monotone||l.Z.monotone).gray,";\n ")}));e.Z=function(n){var e=n.children,t=(0,o.Z)(n,p);return(0,s.jsx)(b,h(h({},t),{},{children:(0,s.jsx)(a.ZP,{alignItems:"center",fullHeight:!0,fullWidth:!0,justifyContent:"center",children:e&&(0,s.jsx)(c.Z,{children:e})})}))}},69898:function(n,e,t){t.d(e,{p:function(){return w}});var r=t(82394),o=t(26304),i=t(82684),c=t(38626),a=t(16910),l=t(19711),u=t(23831),d=t(73942),s=t(2005),p=t(31012),f=t(49125),h=t(90880),b=t(28598),m=["afterIcon","afterIconSize","afterIconClick","autoGenerated","beforeIcon","beforeIconSize","compact","dynamicSizing","fitContent","fullWidth","input","invertedTheme","label","labelDescription","labelFixed","maxWidth","meta","name","onChange","onClick","passwordrules","placeholder","readOnly","required","setContentOnMount","showLabelRequirement","small","topPosition","type","value","visible","width"];function g(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function v(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?g(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):g(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var x=c.default.div.withConfig({displayName:"InputWrapper__ContainerStyle",componentId:"sc-aepxnk-0"})([".label-enter{opacity:0;transform:translate(0,","px);}.label-enter-active{opacity:1;transform:translate(0,0);transition:all 200ms;}.label-exit{opacity:1;transform:translate(0,0);}.label-exit-active{opacity:0;transform:translate(0,13px);transition:all 100ms;}"," "," "," "," ",""],f.iI,(function(n){return n.visible&&"\n position: relative;\n "}),(function(n){return!n.visible&&"\n opacity: 0;\n position: absolute;\n z-index: 0;\n "}),(function(n){return n.fitContent&&"\n width: fit-content;\n "}),(function(n){return n.maxWidth&&"\n max-width: ".concat(n.maxWidth,"px;\n ")}),(function(n){return n.fullWidth&&"\n width: 100%;\n "})),y=c.default.div.withConfig({displayName:"InputWrapper__LabelContainerStyle",componentId:"sc-aepxnk-1"})(["position:absolute;"," ",""],(function(n){return!n.compact&&!n.beforeIcon&&"\n left: ".concat(2*f.iI,"px;\n top: ").concat(.75*f.iI,"px;\n ")}),(function(n){return!n.compact&&n.beforeIcon&&"\n left: ".concat(5*f.iI,"px;\n top: ").concat(.5*f.iI,"px;\n ")})),j=c.default.div.withConfig({displayName:"InputWrapper__IconContainerStyle",componentId:"sc-aepxnk-2"})(["position:absolute;height:100%;display:flex;align-items:center;top:","px;"," "," ",""],(function(n){return n.top?0:d.YF}),(function(n){return!n.compact&&"\n padding: ".concat(f.iI,"px;\n ")}),(function(n){return n.compact&&"\n padding: ".concat(.75*f.iI,"px;\n ")}),(function(n){return n.right&&"\n right: 0;\n "})),w=(0,c.css)([""," "," "," -moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;background-color:transparent;box-sizing:border-box;outline-style:none;"," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," ",""],(0,h.Xh)("appearance","none"),(0,h.Xh)("transition","background 300ms ease 0s, border 300ms ease 0s, color 300ms ease 0s"),(0,h.eR)("200ms box-shadow linear"),l.G,(function(n){return!n.small&&!n.large&&"\n ".concat(p.iD,"\n ")}),(function(n){return n.small&&"\n ".concat(p.HC,"\n line-height: 20px !important;\n ")}),(function(n){return!n.monospace&&"\n font-family: ".concat(s.YC,";\n ")}),(function(n){return n.monospace&&"\n font-family: ".concat(s.Vp,";\n ")}),(function(n){return n.bold&&"\n font-family: ".concat(s.nF,";\n ")}),(function(n){return!n.borderless&&"\n border-radius: ".concat(d.BG,"px;\n border-style: ").concat(d.M8,";\n border-width: ").concat(d.YF,"px};\n ")}),(function(n){return n.noBorderRadiusBottom&&"\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n "}),(function(n){return n.borderRadius&&"\n border-radius: ".concat(n.borderRadius,"px;\n ")}),(function(n){return n.borderless&&"\n border-style: none;\n "}),(function(n){return n.noBorder&&"\n border-style: none;\n "}),(function(n){return!n.noBorder&&n.noBorderUntilFocus&&"\n border-style: none;\n\n &:focus {\n border-style: ".concat(d.M8,";\n }\n ")}),(function(n){return!n.noBorder&&n.noBorderUntilHover&&"\n border-style: none;\n\n &:hover {\n border-style: ".concat(d.M8,";\n }\n ")}),(function(n){return!n.disabled&&!n.invertedTheme&&"\n border-color: ".concat((n.theme.interactive||u.Z.interactive).defaultBorder,";\n color: ").concat((n.theme.content||u.Z.content).active,";\n\n ::placeholder {\n color: ").concat((n.theme.content||u.Z.content).default,";\n }\n ")}),(function(n){return!n.disabled&&!n.noBackground&&"\n &:hover {\n background-color: ".concat((n.theme.interactive||u.Z.interactive).hoverOverlay,";\n border-color: ").concat((n.theme.interactive||u.Z.interactive).hoverBorder,";\n }\n\n &:focus {\n background-color: ").concat((n.theme.interactive||u.Z.interactive).hoverBackground,";\n border-color: ").concat((n.theme.interactive||u.Z.interactive).focusBorder,";\n color: ").concat((n.theme.content||u.Z.content).active,";\n }\n\n &:active {\n background-color: ").concat((n.theme.interactive||u.Z.interactive).activeOverlay,";\n }\n ")}),(function(n){return n.noBlinkingCursor&&"\n &:focus {\n text-indent: -9999em;\n text-shadow : 9999em 0 0 #000;\n }\n "}),(function(n){return n.shadow&&"\n &:focus {\n box-shadow:\n 0 0 0 1px ".concat((n.theme.interactive||u.Z.interactive).focusBorder," inset,\n 0 0 0 1px ").concat((n.theme.interactive||u.Z.interactive).focusBorder,"\n ;\n }\n ")}),(function(n){return n.disabled&&"\n border-color: ".concat((n.theme.interactive||u.Z.interactive).disabledBorder,";\n color: ").concat((n.theme.content||u.Z.content).disabled,";\n\n ::placeholder {\n color: ").concat((n.theme.content||u.Z.content).disabled,";\n }\n ")}),(function(n){return n.danger&&"\n border-color: ".concat((n.theme.interactive||u.Z.interactive).dangerBorder," !important;\n\n &:active,\n &:focus,\n &:hover {\n border-color: ").concat((n.theme.interactive||u.Z.interactive).dangerBorder," !important;\n }\n ")}),(function(n){return!n.compact&&"\n padding-left: ".concat(2*f.iI,"px;\n padding-right: ").concat(2*f.iI,"px;\n ")}),(function(n){return!n.compact&&!(n.label&&n.isFocused)&&"\n padding-bottom: ".concat(1.5*f.iI,"px;\n padding-top: ").concat(1.5*f.iI,"px;\n ")}),(function(n){return!n.compact&&n.label&&n.isFocused&&"\n padding-bottom: ".concat(.75*f.iI,"px;\n padding-top: ").concat(.75*f.iI+12,"px;\n ")}),(function(n){return n.beforeIcon&&!n.compact&&"\n padding-left: ".concat(5*f.iI,"px !important;\n ")}),(function(n){return n.afterIcon&&!n.compact&&"\n padding-right: ".concat(5*f.iI,"px !important;\n ")}),(function(n){return n.compact&&"\n padding-bottom: ".concat(.75*f.iI,"px;\n padding-left: ").concat(1.25*f.iI,"px;\n padding-right: ").concat(1.25*f.iI,"px;\n padding-top: ").concat(.75*f.iI,"px;\n ")}),(function(n){return n.beforeIcon&&n.compact&&"\n padding-left: ".concat(4*f.iI,"px !important;\n ")}),(function(n){return n.afterIcon&&n.compact&&"\n padding-right: ".concat(4*f.iI,"px !important;\n ")}),(function(n){return!n.inputWidth&&!n.minWidth&&"\n width: 100%;\n "}),(function(n){return n.maxHeight&&"\n max-height: ".concat(n.maxHeight,"px;\n ")}),(function(n){return n.minWidth&&"\n min-width: ".concat(n.minWidth,"px;\n ")}),(function(n){return n.inputWidth&&"\n width: ".concat(n.inputWidth,"px;\n ")}),(function(n){return n.alignCenter&&"\n text-align: center;\n "}),(function(n){return n.alignRight&&"\n text-align: right;\n "}),(function(n){return n.basic&&"\n border: none;\n padding: 0 ".concat(.25*f.iI,"px;\n ")}),(function(n){return n.basicPadding&&"\n border: none;\n padding: ".concat(.5*f.iI,"px ").concat(1*f.iI,"px !important;\n ")}),(function(n){return"undefined"!==typeof n.paddingHorizontal&&"\n padding-left: ".concat(n.paddingHorizontal,"px;\n padding-right: ").concat(n.paddingHorizontal,"px;\n ")}),(function(n){return"undefined"!==typeof n.paddingVertical&&"\n padding-bottom: ".concat(n.paddingVertical,"px;\n padding-top: ").concat(n.paddingVertical,"px;\n ")}),(function(n){return"undefined"!==typeof n.paddingRight&&"\n padding-right: ".concat(n.paddingRight,"px !important;\n ")}),(function(n){return n.basic&&!n.noBackground&&"\n background-color: ".concat((n.theme.monotone||u.Z.monotone).grey500,";\n\n &:active,\n &:focus,\n &:hover {\n background-color: ").concat((n.theme.monotone||u.Z.monotone).grey500,";\n }\n ")}),(function(n){return n.basic&&n.noBackground&&"\n background-color: none;\n\n &:active,\n &:focus,\n &:hover {\n background-color: ".concat((n.theme.monotone||u.Z.monotone).grey200,";\n }\n ")}),(function(n){return n.primary&&!n.swapBackgroundAndTextColor&&"\n border-color: ".concat((n.theme.accent||u.Z.accent).purpleLight,";\n\n &:active,\n &:focus {\n border-color: ").concat((n.theme.accent||u.Z.accent).purple," !important;\n }\n\n &:hover {\n border-color: ").concat((n.theme.chart||u.Z.chart).primary," !important;\n }\n ")}),(function(n){return n.swapBackgroundAndTextColor&&"\n background-color: transparent;\n\n &:active,\n &:focus,\n &:hover {\n background-color: transparent;\n }\n "}),(function(n){return n.earth&&n.swapBackgroundAndTextColor&&"\n color: ".concat((n.theme.brand||u.Z.brand).earth500," !important;\n\n &:active,\n &:focus,\n &:hover {\n color: ").concat((n.theme.brand||u.Z.brand).earth500," !important;\n }\n\n ::placeholder {\n color: ").concat((n.theme.brand||u.Z.brand).earth300,";\n }\n ")}),(function(n){return n.fire&&n.swapBackgroundAndTextColor&&"\n color: ".concat((n.theme.brand||u.Z.brand).fire500," !important;\n\n &:active,\n &:focus,\n &:hover {\n color: ").concat((n.theme.brand||u.Z.brand).fire500," !important;\n }\n\n ::placeholder {\n color: ").concat((n.theme.brand||u.Z.brand).fire300,";\n }\n ")}),(function(n){return n.primary&&n.swapBackgroundAndTextColor&&"\n color: ".concat((n.theme.brand||u.Z.brand).wind500," !important;\n\n &:active,\n &:focus,\n &:hover {\n color: ").concat((n.theme.brand||u.Z.brand).wind500," !important;\n }\n\n ::placeholder {\n color: ").concat((n.theme.brand||u.Z.brand).wind300,";\n }\n ")}),(function(n){return n.warning&&!n.swapBackgroundAndTextColor&&"\n background-color: ".concat((n.theme.brand||u.Z.brand).energy200," !important;\n\n &:active,\n &:focus,\n &:hover {\n background-color: ").concat((n.theme.brand||u.Z.brand).energy200," !important;\n }\n ")}),(function(n){return n.warning&&n.swapBackgroundAndTextColor&&"\n color: ".concat((n.theme.brand||u.Z.brand).energy500," !important;\n\n &:active,\n &:focus,\n &:hover {\n color: ").concat((n.theme.brand||u.Z.brand).energy500," !important;\n }\n ")}),(function(n){return n.water&&n.swapBackgroundAndTextColor&&"\n color: ".concat((n.theme.brand||u.Z.brand).water500," !important;\n\n &:active,\n &:focus,\n &:hover {\n color: ").concat((n.theme.brand||u.Z.brand).water500," !important;\n }\n ")}),(function(n){return n.earth&&n.borderTheme&&"\n &:focus,\n &:active {\n border-color: ".concat((n.theme.brand||u.Z.brand).earth300,";\n border-width: ").concat(d.mP,"px;\n }\n ")}),(function(n){return n.fire&&n.borderTheme&&"\n &:focus,\n &:active {\n border-color: ".concat((n.theme.brand||u.Z.brand).fire300,";\n border-width: ").concat(d.mP,"px;\n }\n ")}),(function(n){return n.water&&n.borderTheme&&"\n &:focus,\n &:active {\n border-color: ".concat((n.theme.brand||u.Z.brand).water300,";\n border-width: ").concat(d.mP,"px;\n }\n ")}),(function(n){return n.wind&&n.borderTheme&&"\n &:focus,\n &:active {\n border-color: ".concat((n.theme.brand||u.Z.brand).wind300,";\n border-width: ").concat(d.mP,"px;\n }\n ")}),(function(n){return n.info&&"\n background-color: ".concat((n.theme.brand||u.Z.brand).water100," !important;\n\n &:active,\n &:focus,\n &:hover {\n background-color: ").concat((n.theme.brand||u.Z.brand).water100," !important;\n }\n ")}),(function(n){return n.negative&&"\n background-color: ".concat((n.theme.accent||u.Z.accent).negativeTransparent," !important;\n\n &:active,\n &:focus,\n &:hover {\n background-color: ").concat((n.theme.accent||u.Z.accent).negativeTransparent," !important;\n }\n ")}),(function(n){return n.defaultColor&&"\n background-color: ".concat((n.theme.interactive||u.Z.interactive).defaultBackground," !important;\n border: ").concat(d.YF,"px ").concat(d.M8," ").concat((n.theme.monotone||u.Z.monotone).black,";\n\n &:active,\n &:focus,\n &:hover {\n background-color: ").concat((n.theme.interactive||u.Z.interactive).hoverBackground," !important;\n }\n ")}),(function(n){return n.greyBorder&&"\n border: ".concat(d.YF,"px ").concat(d.M8," ").concat((n.theme||u.Z).borders.button,";\n ")}),(function(n){return n.width&&"\n width: ".concat(n.width,"px;\n ")}),(function(n){return n.disablePointerEvents&&"\n pointer-events: none;\n "})),O=c.default.div.withConfig({displayName:"InputWrapper__LabelWrapperStyle",componentId:"sc-aepxnk-3"})(["margin-bottom:","px;"],.75*f.iI),Z=c.default.span.withConfig({displayName:"InputWrapper__SpanStyle",componentId:"sc-aepxnk-4"})(["position:absolute;opacity:0;"]),k=function(n,e){var t=n.afterIcon,r=n.afterIconSize,c=n.afterIconClick,u=n.autoGenerated,d=n.beforeIcon,s=n.beforeIconSize,p=n.compact,h=n.dynamicSizing,g=n.fitContent,w=n.fullWidth,k=n.input,P=n.invertedTheme,C=n.label,I=n.labelDescription,_=n.labelFixed,S=n.maxWidth,M=n.meta,F=n.name,T=n.onChange,D=n.onClick,E=n.passwordrules,z=n.placeholder,H=n.readOnly,B=n.required,R=n.setContentOnMount,A=n.showLabelRequirement,L=n.small,N=n.topPosition,U=n.type,W=n.value,G=n.visible,q=void 0===G||G,Y=n.width,V=(0,o.Z)(n,m),K=!!(M&&M.touched&&M.error),X=(0,i.useRef)(null),Q={muted:!0,size:f.iI*(p?2.5:3)},J=t&&(0,b.jsx)(j,{compact:p,right:!0,children:i.cloneElement(t,r?v(v({},Q),{},{size:r}):Q)}),$=(0,i.useState)(W),nn=$[0],en=$[1],tn=(0,i.useState)(!1),rn=tn[0],on=tn[1],cn=(0,i.useState)(!1),an=cn[0],ln=cn[1],un=(0,i.useState)(10),dn=un[0],sn=un[1],pn=A?A({content:nn,isFocused:rn}):rn||!!nn;return(0,i.useEffect)((function(){R&&!nn&&W&&en(W)}),[nn,en,R,W]),(0,i.useEffect)((function(){var n;h&&sn(((null===X||void 0===X||null===(n=X.current)||void 0===n?void 0:n.offsetWidth)||25*f.iI)+f.iI)}),[nn,h,e]),(0,b.jsxs)(x,{fitContent:g,fullWidth:w,maxWidth:S,visible:q,children:[(_||I)&&(0,b.jsxs)(O,{children:[(0,b.jsx)("div",{children:_&&(0,b.jsxs)(l.ZP,{bold:!0,inline:!0,inverted:P,small:L,children:[_," ",B&&(0,b.jsx)(l.ZP,{inline:!0,inverted:P,muted:!P,small:!0,children:"(required)"})," ",u&&(0,b.jsx)(l.ZP,{inline:!0,inverted:P,muted:!P,small:!0,children:"(auto-generated)"})]})}),I&&(0,b.jsx)(l.ZP,{inverted:P,muted:!P,small:!0,children:I})]}),(C||0===C)&&!p&&(0,b.jsx)(a.Z,{classNames:"label",in:(C||0===C)&&pn,timeout:200,unmountOnExit:!0,children:(0,b.jsx)(y,{beforeIcon:d,children:(0,b.jsx)(l.ZP,{muted:!0,xsmall:!0,children:C})})}),d&&(0,b.jsx)(j,{compact:p,top:N,children:i.cloneElement(d,v(v({},s?v(v({},Q),{},{size:s}):Q),null===d||void 0===d?void 0:d.props))}),c&&(0,b.jsx)("a",{href:"#",onClick:function(n){n.preventDefault(),c()},children:J}),!c&&J,h&&(0,b.jsx)(Z,{ref:X,children:nn}),i.cloneElement(k,{afterIcon:t,beforeIcon:d,compact:p,danger:K,fullWidth:w,hasContent:!!nn,isFocused:pn,label:0===C?"0":C,name:F,onBlur:function(n){V.onBlur&&V.onBlur(n),on(!1),ln(!0)},onChange:function(n){en(n.target.value),T&&T(n)},onClick:D,onFocus:function(n){V.onFocus&&V.onFocus(n),on(!0)},passwordrules:E,placeholder:C||0===C?pn?"":C:z,readOnly:H,ref:e,type:U,value:W,width:h?dn:Y}),((null===M||void 0===M?void 0:M.touched)&&(null===M||void 0===M?void 0:M.error)||!rn&&an&&!nn&&B)&&(0,b.jsx)(l.ZP,{danger:!0,small:!0,children:(null===M||void 0===M?void 0:M.error)||"This field is required."})]})};e.Z=i.forwardRef(k)},55378:function(n,e,t){var r=t(82394),o=t(26304),i=t(82684),c=t(38626),a=t(69898),l=t(31969),u=t(49125),d=t(28598),s=["beforeIcon","children","label","multiple","placeholder"];function p(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function f(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?p(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):p(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var h=c.default.select.withConfig({displayName:"Select__SelectStyle",componentId:"sc-q6ezu2-0"})(["",' background-image:url("data:image/svg+xml;utf8,','");background-repeat:no-repeat;background-position:-webkit-calc(100% - ',"px) center;background-position:calc(100% - ","px) center;padding-right:","px;&:hover{cursor:pointer;}"," "," "," ",""],a.p,"\n <svg width='12' height='12' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'>\n <path\n clip-rule='evenodd'\n d='M8.0015 11.7109L14.0022 5.71017L12.588 4.29597L7.99485 8.88914L3.40754 4.34482L2 5.76567L8.0015 11.7109Z'\n fill='%23B4B8C0'\n fill-rule='evenodd'\n />\n </svg>",u.iI,u.iI,3*u.iI,(function(n){return!n.hasContent&&!n.showPlaceholder&&"\n color: ".concat((n.theme.content||l.Z.content).muted,";\n ")}),(function(n){return n.backgroundColor&&"\n background-color: ".concat(n.backgroundColor,";\n ")}),(function(n){return n.color&&"\n color: ".concat(n.color,";\n ")}),(function(n){return n.showPlaceholder&&"\n color: ".concat((n.theme.content||l.Z.content).inverted,";\n ")})),b=function(n,e){var t=n.beforeIcon,r=n.children,i=n.label,c=n.multiple,l=n.placeholder,u=(0,o.Z)(n,s);return(0,d.jsx)(a.Z,f(f({},u),{},{beforeIcon:t,input:(0,d.jsxs)(h,f(f({multiple:c},u),{},{children:[(i||l)&&(0,d.jsx)("option",{disabled:!(null===u||void 0===u||!u.value),value:"",children:i||l}),r]})),label:i,placeholder:l,ref:e,setContentOnMount:!0,showLabelRequirement:function(n){return!!n.content}}))};e.Z=i.forwardRef(b)},38435:function(n,e,t){var r=t(82394),o=t(26304),i=t(82684),c=t(38626),a=t(69898),l=t(28598),u=["rows"];function d(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function s(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?d(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var p=c.default.textarea.withConfig({displayName:"TextArea__TextInputStyle",componentId:"sc-112wx63-0"})(["",""],a.p),f=function(n,e){var t=n.rows,r=void 0===t?3:t,i=(0,o.Z)(n,u);return(0,l.jsx)(a.Z,s(s({},i),{},{input:(0,l.jsx)(p,s({rows:r},i)),ref:e}))};e.Z=i.forwardRef(f)},82944:function(n,e,t){var r=t(82394),o=t(91835),i=t(82684),c=t(38626),a=t(69898),l=t(28598);function u(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function d(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?u(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var s=c.default.input.withConfig({displayName:"TextInput__TextInputStyle",componentId:"sc-1ii4qtc-0"})(["",""],a.p),p=function(n,e){var t=(0,o.Z)({},n);return(0,l.jsx)(a.Z,d(d({},t),{},{input:(0,l.jsx)(s,d({},t)),ref:e}))};e.Z=i.forwardRef(p)},70902:function(n,e,t){var r=t(82394),o=t(26304),i=t(82684),c=t(38626),a=t(69898),l=t(23831),u=t(28598),d=["checked","disabled","onCheck"];function s(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function p(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?s(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var f=c.default.label.withConfig({displayName:"ToggleSwitch__ToggleSwitchStyle",componentId:"sc-179r5zs-0"})([""," position:relative;display:inline-block;width:","px;min-width:","px;height:","px;",' & input[type="checkbox"]{display:none;}& span{position:absolute;cursor:',";background-color:",";border-radius:13px;",';top:0;right:0;bottom:0;left:0;transition:background-color 0.2s ease;}& span::before{position:absolute;content:"";left:',"px;top:","px;width:","px;height:",'px;background-color:#787A85;border-radius:50%;transition:transform 0.3s ease;}& input[type="checkbox"]:checked + span::before{transform:',";}",""],a.p,46,46,26,(function(n){return n.compact&&"\n width: ".concat(35,"px;\n min-width: ").concat(35,"px;\n height: ").concat(20,"px;\n ")}),(function(n){return n.disabled?"not-allowed":"pointer"}),(function(n){return n.disabled?l.Z.monotone.white:l.Z.monotone.black}),(function(n){return n.disabled&&"border: 1px solid ".concat(l.Z.monotone.grey200)}),(function(n){return n.compact?"1":"2"}),(function(n){return n.compact?"1":"2"}),(function(n){return n.compact?"18":"22"}),(function(n){return n.compact?"18":"22"}),(function(n){return n.compact?"translateX(15px)":"translateX(20px)"}),(function(n){return!n.disabled&&!n.monotone&&'\n & input[type="checkbox"]:checked + span {\n background-color: #6AA1E0;\n }\n\n & input[type="checkbox"]:checked + span::before {\n background-color: '.concat(l.Z.monotone.white,";\n }\n ")})),h=function(n,e){var t=n.checked,r=n.disabled,i=n.onCheck,c=(0,o.Z)(n,d);return(0,u.jsx)(a.Z,p(p({},c),{},{disabled:r,input:(0,u.jsxs)(f,p(p({},c),{},{disabled:r,noBackground:!0,noBorder:!0,children:[(0,u.jsx)("input",{checked:t,type:"checkbox"}),(0,u.jsx)("span",{onClick:r?null:function(){return null===i||void 0===i?void 0:i((function(n){return!n}))}})]})),noBackground:!0,ref:e}))};e.Z=i.forwardRef(h)},90686:function(n,e,t){var r=t(82684),o=t(38626),i=t(19711),c=t(23831),a=t(73942),l=t(28598),u=(0,o.css)(["min-width:18px;padding-left:2px;padding-right:2px;"," "," "," "," "," ",""],(function(n){return!n.disabled&&"\n background-color: ".concat((n.theme.content||c.Z.content).inverted,";\n ")}),(function(n){return n.disabled&&"\n // background-color: ".concat((n.theme.monotone||c.Z.monotone).grey400," !important;\n ")}),(function(n){return n.mutedDisabled&&"\n opacity: 0.3;\n "}),(function(n){return!n.borderless&&"\n box-shadow: ".concat((n.theme.shadow||c.Z.shadow).tiny,";\n padding-bottom: 3px;\n padding-top: 3px;\n ")}),(function(n){return n.borderless&&"\n border-radius: ".concat(a.BG,"px;\n padding-bottom: 4px;\n padding-top: 4px;\n ")}),(function(n){return n.spacingLeft&&"\n margin-left: ".concat(n.spacingLeft,"px;\n ")})),d=o.default.kbd.withConfig({displayName:"KeyboardText__KbdStyle",componentId:"sc-18540m4-0"})(["",""],u),s=o.default.div.withConfig({displayName:"KeyboardText__DivStyle",componentId:"sc-18540m4-1"})(["",""],u);e.Z=function(n){var e=n.borderless,t=n.disabled,u=n.inline,p=n.keyText,f=n.monospace,h=n.mutedDisabled,b=n.spacingLeft,m=u?s:d,g=(0,r.useContext)(o.ThemeContext),v={};if(!e){var x,y;if(t)v.borderColor=null===(x=(null===g||void 0===g?void 0:g.monotone)||c.Z.monotone)||void 0===x?void 0:x.grey400;else v.borderColor=null===(y=(null===g||void 0===g?void 0:g.content)||c.Z.content)||void 0===y?void 0:y.active;v.borderRadius=a.BG,v.borderStyle="solid",v.borderWidth=1,v.overflow="hidden"}return(0,l.jsx)(i.ZP,{center:!0,inline:!0,monospace:f,muted:t||h,style:v,xsmall:!0,children:(0,l.jsx)(m,{borderless:e,disabled:t,mutedDisabled:h,spacingLeft:b,children:p})})}},79749:function(n,e,t){var r=t(38626),o=t(67971),i=t(90686),c=t(19711),a=t(49125),l=t(28598),u=r.default.div.withConfig({displayName:"KeyboardTextGroup__SpacingStyle",componentId:"sc-1bx41p7-0"})([""," "," ",""],(function(n){return n.small&&"\n margin-left: ".concat(.25*a.iI,"px;\n ")}),(function(n){return!n.small&&"\n margin-left: ".concat(.25*a.iI,"px;\n ")}),(function(n){return n.marginRight&&"\n margin-right: ".concat(.25*a.iI,"px;\n ")}));e.Z=function(n){var e=n.addPlusSignBetweenKeys,t=n.borderless,r=n.disabled,a=n.keyTextGroups,d=n.inline,s=n.monospace,p=n.mutedDisabled,f=n.small,h=n.uuidForKey,b=[],m=[];return a.forEach((function(n,o){var a=[];n.forEach((function(n,o){m.push(n),o>=1&&(a.push((0,l.jsx)(u,{small:f},"spacing-".concat(n))),e&&(a.push((0,l.jsx)(c.ZP,{disabled:r,monospace:s,small:f,children:"+"},"spacing-".concat(n,"-plus-sign"))),a.push((0,l.jsx)(u,{small:f},"spacing-".concat(n,"-after-plus-sign"))))),a.push((0,l.jsx)(i.Z,{borderless:t,disabled:r,inline:!0,keyText:n,monospace:s,mutedDisabled:p},"key-".concat(m.join("-"),"-").concat(h)))})),o>=1&&b.push((0,l.jsx)(u,{marginRight:!0,children:(0,l.jsx)(c.ZP,{monospace:s,muted:!0,small:!f,xsmall:f,children:"then"})},"then-".concat(o))),b.push.apply(b,a)})),(0,l.jsx)(o.ZP,{alignItems:"center",inline:d,children:b})}},24224:function(n,e,t){t.d(e,{$C:function(){return u},HK:function(){return p},Hk:function(){return l},IN:function(){return k},Od:function(){return g},Qj:function(){return j},Sm:function(){return Z},Tw:function(){return b},YC:function(){return f},fS:function(){return x},m5:function(){return O},mp:function(){return P},mr:function(){return h},oM:function(){return v},ry:function(){return m},sE:function(){return d},tS:function(){return y},vM:function(){return s},w6:function(){return w}});var r=t(21831),o=t(82394),i=t(7715);function c(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function a(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?c(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function l(n,e,t){var r=t.slice();return r.splice(e,0,n),r}function u(n,e,t){var r=e.slice();return d(e,t)||r.push(n),r}function d(n,e){return null===n||void 0===n?void 0:n.find(e)}function s(n,e){return null===n||void 0===n?void 0:n.reduce((function(n,t){var r=e(t);return n[r]||(n[r]=[]),n[r].push(t),n}),{})}function p(n,e){return null===n||void 0===n?void 0:n.reduce((function(n,t){return a(a({},n),{},(0,o.Z)({},e(t),t))}),{})}function f(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.ascending,o=void 0===r||r,c=t.absoluteValue,a=void 0!==c&&c,l="string"===typeof e||"number"===typeof e?function(n){return a?Math.abs((0,i.t2)(n,e)):(0,i.t2)(n,e)}:function(n){return a?Math.abs(e(n)):e(n)};return n.sort((function(n,e){var t=0;return l(n)>l(e)?t=o?1:-1:l(n)<l(e)&&(t=o?-1:1),t}))}function h(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e.ascending,r=void 0===t||t;return n.sort((function(n,e){var t=0;return n[0]>e[0]?t=r?1:-1:n[0]<e[0]&&(t=r?-1:1),t}))}function b(n,e){return n.reduce((function(n,t){return n.map(e).includes(e(t))?n:[].concat((0,r.Z)(n),[t])}),[])}function m(n,e){for(var t=-1,r=n.length;1+t<r;){var o=t+(r-t>>1);e(n[o])?t=o:r=o}return r}function g(n,e){var t=n.findIndex(e);return v(n,t)}function v(n,e){return n.slice(0,e).concat(n.slice(e+1,n.length))}function x(n,e){return n.map((function(n){return String(n)})).join()===e.map((function(n){return String(n)})).join()}function y(n,e){return n>e}function j(n,e){return n<e}function w(n){return Array(n).fill(0)}function O(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=Array.from(Array(n).keys());return 0!==e&&(t=t.map((function(n){return n+e}))),t}function Z(n){return n.reduce((function(n,e){return n+e}),0)}function k(n){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=n.reduce((function(n,e){return n+e}),0)/n.length;return Math.sqrt(n.reduce((function(n,e){return n.concat(Math.pow(e-t,2))}),[]).reduce((function(n,e){return n+e}),0)/(n.length-(e?0:1)))}function P(n){return n[Math.floor(Math.random()*n.length)]}},66653:function(n,e,t){function r(n){return n.stopPropagation&&n.stopPropagation(),n.preventDefault&&n.preventDefault(),n.cancelBubble=!0,n.returnValue=!1,!1}t.d(e,{j:function(){return r}})},51504:function(n,e,t){t.d(e,{y:function(){return i}});var r=t(75582),o=t(16115);function i(n,e){var t=n.map((function(n){return String(n)})),i=n.includes(o.PQ),c=n.includes(o.zX),a=n.includes(o.XR),l=o.xU.map((function(n){return String(n)})),u=o.vk.map((function(n){return String(n)})),d=o.Tr.map((function(n){return String(n)})),s=Object.entries(e).find((function(n){var e=(0,r.Z)(n,2),o=e[0];return e[1]&&!t.includes(String(o))&&(!c||!u.includes(String(o)))&&(!i||!l.includes(String(o)))&&(!a||!d.includes(String(o)))}));return n.every((function(n){return e[n]}))&&!s}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2786],{27125:function(n,e,t){var o=t(75582),u=t(82684),i=t(12691),r=t.n(i),c=t(34376),l=t.n(c),a=t(38626),s=t(83455),d=t(35490),p=t(66050),f=t(60328),v=t(16634),b=t(67971),h=t(10919),O=t(98781),j=t(86673),m=t(87815),g=t(19711),Z=t(46261),y=t(82531),x=t(73828),_=t(94353),P=t(22341),k=t(49125),L=t(44162),w=t(24224),S=t(96510),T=t(43482),D=t(28598);e.Z=function(n){var e=n.blockRuns,t=n.onClickRow,i=n.pipeline,c=n.selectedRun,C=n.setErrors,R=(0,u.useContext)(a.ThemeContext),M=(0,u.useState)(null),E=M[0],N=M[1],I=(0,u.useState)(null),Y=I[0],A=I[1],U=i||{},V=U.uuid,Q=U.type,F=(0,u.useMemo)((function(){return i.blocks||[]}),[i]),H=(0,u.useMemo)((function(){return(0,w.HK)(F,(function(n){return n.uuid}))}),[F]),J=(0,u.useMemo)((function(){return O.qL.INTEGRATION===Q}),[Q]),K=(0,u.useMemo)((function(){return O.qL.PYTHON===Q}),[Q]),B=(0,u.useMemo)((function(){var n,e;return null===(n=new d.Z)||void 0===n||null===(e=n.decodedToken)||void 0===e?void 0:e.token}),[]),q=(0,s.Db)((function(n){var e=n.blockUUID,t=n.pipelineRunId;return y.ZP.block_outputs.pipelines.downloads.detailAsync(null===i||void 0===i?void 0:i.uuid,e,{pipeline_run_id:t,token:B},{onDownloadProgress:function(n){return N((Number((null===n||void 0===n?void 0:n.loaded)||0)/1e6).toFixed(3))},responseType:_.E.BLOB})}),{onSuccess:function(n){return(0,S.wD)(n,{callback:function(n){A(null),(0,T.uS)(n,"block_output.".concat(x.Lu.CSV))},onErrorCallback:function(n,e){return null===C||void 0===C?void 0:C({errors:e,response:n})}})}}),X=(0,o.Z)(q,2),z=X[0],W=X[1].isLoading,G=[{uuid:"Status"},{uuid:"Block"},{uuid:"Trigger"},{uuid:"Created at"},{uuid:"Completed at"},{uuid:"Logs"}];return K&&G.push({uuid:"Output"}),(0,D.jsx)(m.Z,{columnFlex:[1,2,2,1,1,null,null],columns:G,isSelectedRow:function(n){return e[n].id===(null===c||void 0===c?void 0:c.id)},onClickRow:t,rows:null===e||void 0===e?void 0:e.map((function(n){var e,t,o,u,i=n||{},c=i.block_uuid,a=i.completed_at,s=i.created_at,d=i.id,O=i.pipeline_run_id,m=i.pipeline_schedule_id,y=i.pipeline_schedule_name,x=i.status,_=c,w=_.split(":"),S=Y===d&&W;J&&(_=w[0],o=w[1],u=w[2]);var T=H[_];T||(T=H[w[0]]);var C=[(0,D.jsx)(g.ZP,{danger:p.V.FAILED===x,default:p.V.CANCELLED===x,info:p.V.INITIAL===x,monospace:!0,success:p.V.COMPLETED===x,warning:p.V.RUNNING===x,children:x},"".concat(d,"_status")),(0,D.jsx)(r(),{as:"/pipelines/".concat(V,"/edit?block_uuid=").concat(_),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,D.jsxs)(h.Z,{bold:!0,fitContentWidth:!0,verticalAlignContent:!0,children:[(0,D.jsx)(v.Z,{color:(0,L.qn)(null===(e=T)||void 0===e?void 0:e.type,{blockColor:null===(t=T)||void 0===t?void 0:t.color,theme:R}).accent,size:1.5*k.iI,square:!0}),(0,D.jsx)(j.Z,{mr:1}),(0,D.jsxs)(g.ZP,{monospace:!0,sky:!0,children:[_,o&&": ",o&&(0,D.jsx)(g.ZP,{default:!0,inline:!0,monospace:!0,children:o}),u>=0&&": ",u>=0&&(0,D.jsx)(g.ZP,{default:!0,inline:!0,monospace:!0,children:u})]})]})},"".concat(d,"_block_uuid")),(0,D.jsx)(r(),{as:"/pipelines/".concat(V,"/triggers/").concat(m),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,D.jsx)(h.Z,{bold:!0,sky:!0,children:y})},"".concat(d,"_trigger")),(0,D.jsx)(g.ZP,{default:!0,monospace:!0,small:!0,children:s},"".concat(d,"_created_at")),(0,D.jsx)(g.ZP,{default:!0,monospace:!0,small:!0,children:(null===a||void 0===a?void 0:a.slice(0,19))||"-"},"".concat(d,"_completed_at")),(0,D.jsx)(f.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return l().push("/pipelines/".concat(V,"/logs?block_run_id[]=").concat(d))},children:(0,D.jsx)(P.UL,{default:!0,size:2*k.iI})},"".concat(d,"_logs"))];return K&&C.push((0,D.jsx)(b.ZP,{alignItems:"center",justifyContent:"center",children:(0,D.jsx)(Z.Z,{appearBefore:!0,autoHide:!S,block:!0,forceVisible:S,label:S?"".concat(E||0,"mb downloaded..."):"Save block run output as CSV file",size:null,widthFitContent:!0,children:(0,D.jsx)(f.Z,{default:!0,disabled:!K||!(p.V.COMPLETED===x)||W,iconOnly:!0,loading:S,noBackground:!0,onClick:function(){N(null),A(d),z({blockUUID:_,pipelineRunId:O})},children:(0,D.jsx)(P.vc,{default:!0,size:2*k.iI})})})},"".concat(d,"_save_output"))),C})),uuid:"block-runs"})}},43482:function(n,e,t){t.d(e,{Dp:function(){return f},OF:function(){return v},Q9:function(){return h},Rt:function(){return s},h8:function(){return b},k1:function(){return d},uS:function(){return O}});var o=t(21831),u=t(82394),i=t(91427),r=t(24224),c=t(90211);function l(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,o)}return t}function a(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?l(Object(t),!0).forEach((function(e){(0,u.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):l(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function s(n){var e={},t={};return null===n||void 0===n||n.forEach((function(n){var o=n.content,u=n.outputs,i=n.type,r=n.uuid;(null===u||void 0===u?void 0:u.length)>=1&&(e[r]=u.map((function(n){var e=n||{},t=e.sample_data,o=e.shape,u=e.text_data,i=e.type;return t?{data:a({shape:o},t),type:i}:u&&(0,c.Pb)(u)?JSON.parse(u):u}))),t[i]||(t[i]={}),t[i][r]=o})),{content:t,messages:e}}function d(n,e,t){n.forEach((function(n){(0,i.t8)("".concat(t,"/").concat(n.uuid,"/codeCollapsed"),(0,i.Od)("".concat(e,"/").concat(n.uuid,"/codeCollapsed"))),(0,i.t8)("".concat(t,"/").concat(n.uuid,"/outputCollapsed"),(0,i.Od)("".concat(e,"/").concat(n.uuid,"/outputCollapsed")))}))}function p(n){return"".concat(n,"/").concat(i.kP)}function f(n){return(0,i.U2)(p(n),[])}function v(n,e){var t=f(n);t.includes(e)||(0,i.t8)(p(n),[].concat((0,o.Z)(t),[e]))}function b(n,e){var t=f(n).filter((function(n){return n!==e}));(0,i.t8)(p(n),t)}function h(n,e){var t=(0,r.HK)(e,(function(n){return n.uuid}));return n.map((function(n){return t[n]})).filter((function(n){return!!n}))}var O=function(n,e){var t=window.URL.createObjectURL(n),o=document.createElement("a");o.href=t,o.download=e,document.body.appendChild(o),o.click(),o.remove()}},56681:function(n,e,t){t.d(e,{G7:function(){return y},ZP:function(){return x},u$:function(){return m}});var o=t(75582),u=t(82394),i=t(26304),r=t(32316),c=t(22673),l=t(48952),a=t(86673),s=t(19711),d=t(87815),p=t(49125),f=t(19395),v=t(7715),b=t(28598),h=["height","heightOffset","pipeline","selectedRun","selectedTab","setSelectedTab"];function O(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,o)}return t}function j(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?O(Object(t),!0).forEach((function(e){(0,u.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):O(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var m=76,g={uuid:"Run details"},Z={uuid:"Dependency tree"},y=[Z,g];function x(n){var e=n.height,t=n.heightOffset,u=n.pipeline,O=n.selectedRun,x=n.selectedTab,_=n.setSelectedTab,P=j({},(0,i.Z)(n,h));O?P.blockStatus=(0,f.IJ)(null===O||void 0===O?void 0:O.block_runs):P.noStatus=!0;var k=(0,v.Kn)(null===O||void 0===O?void 0:O.variables)?j({},null===O||void 0===O?void 0:O.variables):(null===O||void 0===O?void 0:O.variables)||{},L=null===O||void 0===O?void 0:O.event_variables;if(L&&(0,v.Kn)(L)&&!(0,v.Qr)(L))if((0,v.Kn)(k)&&k.hasOwnProperty("event")){var w=(0,v.Kn)(k.event)?k.event:{};k.event=j(j({},w),L)}else k.event=j({},L);var S=[];k&&JSON.stringify(k,null,2).split("\n").forEach((function(n){S.push(" ".concat(n))}));var T=O&&[["Run ID",null===O||void 0===O?void 0:O.id],["Variables",(0,b.jsx)(c.Z,{language:"json",small:!0,source:S.join("\n")},"variable_value")]],D=O&&(0,b.jsx)(a.Z,{pb:p.cd,px:p.cd,children:(0,b.jsx)(d.Z,{alignTop:!0,columnFlex:[null,1],columnMaxWidth:function(n){return 1===n?"100px":null},rows:T.map((function(n,e){var t=(0,o.Z)(n,2),u=t[0],i=t[1];return[(0,b.jsx)(s.ZP,{monospace:!0,muted:!0,children:u},"key_".concat(e)),(0,b.jsx)(s.ZP,{monospace:!0,textOverflow:!0,children:i},"val_".concat(e))]})),uuid:"LogDetail"})}),C=x&&_;return(0,b.jsxs)(b.Fragment,{children:[C&&(0,b.jsx)(a.Z,{py:p.cd,children:(0,b.jsx)(r.Z,{onClickTab:_,selectedTabUUID:null===x||void 0===x?void 0:x.uuid,tabs:y})}),(!C||Z.uuid===(null===x||void 0===x?void 0:x.uuid))&&(0,b.jsx)(l.Z,j(j({},P),{},{height:e,heightOffset:(t||0)+(C?m:0),pipeline:u})),g.uuid===(null===x||void 0===x?void 0:x.uuid)&&D]})}},73828:function(n,e,t){t.d(e,{JD:function(){return h},Lu:function(){return i},PF:function(){return f},d2:function(){return p},dT:function(){return r},n6:function(){return a},nB:function(){return b},oy:function(){return v},xF:function(){return d}});var o,u,i,r,c=t(82394),l=t(86422);!function(n){n.CSV="csv",n.JSON="json",n.MD="md",n.PY="py",n.R="r",n.SQL="sql",n.TXT="txt",n.YAML="yaml",n.YML="yml"}(i||(i={})),function(n){n.INIT_PY="__init__.py",n.METADATA_YAML="metadata.yaml",n.REQS_TXT="requirements.txt"}(r||(r={}));var a=[i.PY,i.SQL],s=[i.JSON,i.MD,i.PY,i.R,i.SQL,i.TXT,i.YAML,i.YML],d=new RegExp(s.map((function(n){return".".concat(n,"$")})).join("|")),p=new RegExp(s.map((function(n){return".".concat(n,"$")})).join("|")),f="charts",v="pipelines",b=(o={},(0,c.Z)(o,i.MD,l.t6.MARKDOWN),(0,c.Z)(o,i.JSON,i.JSON),(0,c.Z)(o,i.PY,l.t6.PYTHON),(0,c.Z)(o,i.R,l.t6.R),(0,c.Z)(o,i.SQL,l.t6.SQL),(0,c.Z)(o,i.TXT,"text"),(0,c.Z)(o,i.YAML,l.t6.YAML),(0,c.Z)(o,i.YML,l.t6.YAML),o),h=(u={},(0,c.Z)(u,l.t6.MARKDOWN,i.MD),(0,c.Z)(u,l.t6.PYTHON,i.PY),(0,c.Z)(u,l.t6.R,i.R),(0,c.Z)(u,l.t6.SQL,i.SQL),(0,c.Z)(u,l.t6.YAML,i.YAML),(0,c.Z)(u,"text",i.TXT),u)}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7496],{65597:function(e,n,t){t.d(n,{f:function(){return l}});var i=t(38626),r=t(23831),u=t(49125),o=t(73942),l=i.default.div.withConfig({displayName:"Tablestyle__PopupContainerStyle",componentId:"sc-8ammqd-0"})(["position:absolute;max-height:","px;z-index:10;border-radius:","px;padding:","px;"," "," "," ",""],58*u.iI,o.TR,2*u.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||r.Z.shadow).popup,";\n background-color: ").concat((e.theme.interactive||r.Z.interactive).defaultBackground,";\n ")}),(function(e){return e.leftOffset&&"\n left: ".concat(e.leftOffset,"px;\n ")}),(function(e){return e.topOffset&&"\n top: ".concat(e.topOffset,"px;\n ")}),(function(e){return e.width&&"\n width: ".concat(e.width,"px;\n ")}))},97496:function(e,n,t){var i=t(82394),r=t(75582),u=t(12691),o=t.n(u),l=t(34376),c=t.n(l),s=t(82684),a=t(83455),d=t(60328),p=t(38341),f=t(47999),h=t(93461),_=t(67971),v=t(10919),b=t(47409),g=t(86673),x=t(54283),E=t(87815),O=t(19711),j=t(82531),m=t(23831),C=t(73942),Z=t(22341),I=t(65597),y=t(93348),w=t(45838),P=t(49125),N=t(19395),k=t(24224),D=t(9736),L=t(96510),T=t(28598);function R(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 A(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?R(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):R(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var S={monospace:!0,small:!0};function V(e){var n=e.cancelingRunId,t=e.disabled,i=e.isLoadingCancelPipeline,u=e.onCancel,o=e.onSuccess,l=e.pipelineRun,c=e.setCancelingRunId,p=e.setErrors,h=e.setShowConfirmationId,v=e.showConfirmationId,E=(0,D.Ct)(),w=l||{},N=w.id,k=w.pipeline_schedule_id,R=w.pipeline_schedule_token,A=w.pipeline_schedule_type,S=w.status,V=i&&N===n&&b.VO.RUNNING===S,U=(0,a.Db)(y.Xm.API===A&&R?j.ZP.pipeline_runs.pipeline_schedules.useCreateWithParent(k,R):j.ZP.pipeline_runs.pipeline_schedules.useCreate(k),{onSuccess:function(e){return(0,L.wD)(e,{callback:function(){o()},onErrorCallback:function(e,n){return null===p||void 0===p?void 0:p({errors:n,response:e})}})}}),M=(0,r.Z)(U,1)[0],F=(0,s.useCallback)((function(){h(null),M({pipeline_run:{backfill_id:null===l||void 0===l?void 0:l.backfill_id,event_variables:(null===l||void 0===l?void 0:l.event_variables)||{},execution_date:null===l||void 0===l?void 0:l.execution_date,pipeline_schedule_id:null===l||void 0===l?void 0:l.pipeline_schedule_id,pipeline_uuid:null===l||void 0===l?void 0:l.pipeline_uuid,variables:(null===l||void 0===l?void 0:l.variables)||{}}})}),[M,l,h]),H=(0,s.useCallback)((function(){h(null),c(N),u({id:N,status:b.VO.CANCELLED})}),[u,N,c,h]);return(0,T.jsxs)("div",{style:{position:"relative"},children:[(0,T.jsx)(d.Z,{backgroundColor:V&&m.Z.accent.yellow,beforeIcon:b.VO.INITIAL!==S&&!t&&(0,T.jsxs)(T.Fragment,{children:[b.VO.COMPLETED===S&&(0,T.jsx)(Z.Jr,{size:2*P.iI}),[b.VO.FAILED,b.VO.CANCELLED].includes(S)&&(0,T.jsx)(Z.Py,{inverted:b.VO.CANCELLED===S&&!E,size:2*P.iI}),[b.VO.RUNNING].includes(S)&&(0,T.jsx)(x.Z,{color:V?m.Z.status.negative:m.Z.monotone.white,small:!0})]}),borderRadius:C.D7,danger:b.VO.FAILED===S&&!E,default:b.VO.INITIAL===S,disabled:t||E,loading:!l,onClick:function(){return h(N)},padding:"6px",primary:b.VO.RUNNING===S&&!V&&!E,warning:b.VO.CANCELLED===S&&!E,children:t?"Ready":V?"Canceling":b.Do[S]}),(0,T.jsx)(f.Z,{onClickOutside:function(){return h(null)},open:v===N,children:(0,T.jsxs)(I.f,{children:[[b.VO.RUNNING,b.VO.INITIAL].includes(S)&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(O.ZP,{bold:!0,color:"#9ECBFF",children:"Run is in progress"}),(0,T.jsx)(g.Z,{mb:1}),(0,T.jsxs)(O.ZP,{children:["This pipeline run is currently ongoing. Retrying will cancel",(0,T.jsx)("br",{}),"the current pipeline run."]}),(0,T.jsx)(O.ZP,{}),(0,T.jsx)(g.Z,{mt:1,children:(0,T.jsxs)(_.ZP,{children:[(0,T.jsx)(d.Z,{onClick:function(){H(),F()},children:"Retry run"}),(0,T.jsx)(g.Z,{ml:1}),(0,T.jsx)(d.Z,{onClick:H,children:"Cancel run"})]})})]}),[b.VO.CANCELLED,b.VO.FAILED,b.VO.COMPLETED].includes(S)&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsxs)(O.ZP,{bold:!0,color:"#9ECBFF",children:["Run ",S]}),(0,T.jsx)(g.Z,{mb:1}),(0,T.jsx)(O.ZP,{children:"Retry the run with changes you have made to the pipeline."}),(0,T.jsx)(g.Z,{mb:1}),(0,T.jsx)(d.Z,{onClick:F,children:"Retry run"})]})]})})]})}n.Z=function(e){var n=e.allowBulkSelect,t=e.disableRowSelect,u=e.emptyMessage,l=void 0===u?"No runs available":u,f=e.fetchPipelineRuns,x=e.hideTriggerColumn,m=e.onClickRow,I=e.pipelineRuns,y=e.selectedRun,D=e.selectedRuns,R=e.setSelectedRuns,U=e.setErrors,M=(0,s.useState)(null),F=M[0],H=M[1],Y=(0,s.useState)(null),z=Y[0],B=Y[1],G=(0,a.Db)((function(e){var n=e.id,t=e.status;return j.ZP.pipeline_runs.useUpdate(n)({pipeline_run:{status:t}})}),{onSuccess:function(e){return(0,L.wD)(e,{callback:function(){H(null),null===f||void 0===f||f()},onErrorCallback:function(e,n){H(null),null===U||void 0===U||U({errors:n,response:e})}})}}),J=(0,r.Z)(G,2),K=J[0],q=J[1].isLoading,Q=[null,1],W=[{uuid:"Status"},{uuid:"Pipeline"}];x||(Q.push(1),W.push({uuid:"Trigger"})),Q.push.apply(Q,[1,1,null,null]),W.push.apply(W,[{uuid:"Execution date"},{uuid:"Completed at"},{uuid:"Block runs"},{uuid:"Logs"}]);var X=(0,s.useMemo)((function(){return I.every((function(e){var n=e.id;return!(null===D||void 0===D||!D[n])}))}),[I,D]);return n&&(Q.unshift(null),W.unshift({label:function(){return(0,T.jsx)(p.Z,{checked:X,onClick:function(){var e=(0,k.HK)(I||[],(function(e){return e.id}));R(X?{}:e)}})},uuid:"Selected"})),!t&&m&&(Q.push(null),W.push({label:function(){return""},uuid:"action"})),(0,T.jsx)(w.cl,{minHeight:30*P.iI,overflowVisible:!!z,children:0===(null===I||void 0===I?void 0:I.length)?(0,T.jsx)(g.Z,{px:3,py:1,children:(0,T.jsx)(O.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:l})}):(0,T.jsx)(E.Z,{columnFlex:Q,columns:W,isSelectedRow:function(e){return!t&&I[e].id===(null===y||void 0===y?void 0:y.id)},onClickRow:t?null:m,rowVerticalPadding:6,rows:null===I||void 0===I?void 0:I.map((function(e,r){var u,l,a=e.block_runs_count,E=e.completed_block_runs_count,j=e.completed_at,y=e.execution_date,w=e.id,k=e.pipeline_schedule_id,L=e.pipeline_schedule_name,M=e.pipeline_uuid,Y=e.status,G=!w&&!Y,J="".concat(E," out of ").concat(a," block runs completed"),Q=[];r>0&&I[r-1].execution_date===e.execution_date&&I[r-1].pipeline_schedule_id===e.pipeline_schedule_id?(Q=[(0,T.jsx)(g.Z,{ml:1,children:(0,T.jsxs)(_.ZP,{alignItems:"center",children:[(0,T.jsx)(Z.TT,{size:2*P.iI,useStroke:!0}),(0,T.jsx)(d.Z,{borderRadius:C.D7,notClickable:!0,padding:"6px",children:(0,T.jsx)(O.ZP,{muted:!0,children:b.Do[Y]})})]})},"row_status"),(0,T.jsx)(O.ZP,{default:!0,monospace:!0,muted:!0,children:M},"row_pipeline_uuid")],x||Q.push((0,T.jsx)(O.ZP,{default:!0,monospace:!0,muted:!0,children:"-"},"row_trigger_retry")),(u=Q).push.apply(u,[(0,T.jsx)(O.ZP,{default:!0,monospace:!0,muted:!0,children:"-"},"row_date_retry"),(0,s.createElement)(O.ZP,A(A({},S),{},{key:"row_completed",muted:!0}),j&&(0,N.Vx)(j)||"-"),(0,T.jsx)(o(),{as:"/pipelines/".concat(M,"/runs/").concat(w),href:"/pipelines/[pipeline]/runs/[run]",passHref:!0,children:(0,T.jsx)(v.Z,{bold:!0,muted:!0,title:J,children:"".concat(E," / ").concat(a)})},"row_block_runs"),(0,T.jsx)(d.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return c().push("/pipelines/".concat(M,"/logs?pipeline_run_id[]=").concat(w))},children:(0,T.jsx)(Z.UL,{default:!0,size:2*P.iI})},"row_logs")])):(Q=[(0,T.jsx)(V,{cancelingRunId:F,disabled:G,isLoadingCancelPipeline:q,onCancel:K,onSuccess:f,pipelineRun:e,setCancelingRunId:H,setErrors:U,setShowConfirmationId:B,showConfirmationId:z},"row_retry_button"),(0,T.jsx)(O.ZP,{default:!0,monospace:!0,children:M},"row_pipeline_uuid")],x||Q.push((0,T.jsx)(o(),{as:"/pipelines/".concat(M,"/triggers/").concat(k),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,T.jsx)(v.Z,{bold:!0,sky:!0,children:L})},"row_trigger")),(l=Q).push.apply(l,[(0,s.createElement)(O.ZP,A(A({},S),{},{default:!0,key:"row_date"}),y&&(0,N.Vx)(y)||"-"),(0,s.createElement)(O.ZP,A(A({},S),{},{default:!0,key:"row_completed"}),j&&(0,N.Vx)(j)||"-"),(0,T.jsx)(o(),{as:"/pipelines/".concat(M,"/runs/").concat(w),href:"/pipelines/[pipeline]/runs/[run]",passHref:!0,children:(0,T.jsx)(v.Z,{bold:!0,disabled:G,sky:!0,title:J,children:G?"":"".concat(E," / ").concat(a)})},"row_block_runs"),(0,T.jsx)(d.Z,{default:!0,disabled:G,iconOnly:!0,noBackground:!0,onClick:function(){return c().push("/pipelines/".concat(M,"/logs?pipeline_run_id[]=").concat(w))},children:(0,T.jsx)(Z.UL,{default:!0,size:2*P.iI})},"row_item_13")]));if(n){var W=!(null===D||void 0===D||!D[w]);Q.unshift((0,T.jsx)(p.Z,{checked:W,onClick:function(){R((function(n){return A(A({},n),{},(0,i.Z)({},w,W?null:e))}))}},"selected-pipeline-run-".concat(w)))}return!t&&m&&Q.push((0,T.jsx)(h.Z,{flex:1,justifyContent:"flex-end",children:(0,T.jsx)(Z._Q,{default:!0,size:2*P.iI})})),Q})),uuid:"pipeline-runs"})})}},19395:function(e,n,t){t.d(n,{IJ:function(){return d},M8:function(){return b},Vx:function(){return f},eI:function(){return p},gU:function(){return _},tL:function(){return h},vJ:function(){return v}});var i,r,u=t(82394),o=t(92083),l=t.n(o),c=t(28799);function s(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 a(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?s(Object(t),!0).forEach((function(n){(0,u.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function d(e){return null===e||void 0===e?void 0:e.reduce((function(e,n){var t=n.block_uuid,i=n.completed_at,r=n.started_at,o=n.status,c=null;r&&i&&(c=l()(i).valueOf()-l()(r).valueOf());return a(a({},e),{},(0,u.Z)({},t,{runtime:c,status:o}))}),{})}function p(e){if(!e)return null;var n=new Date(l()(e).valueOf()),t=Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds());return new Date(t)}function f(e){return"string"!==typeof e?e:p(e.split("+")[0]).toISOString().split(".")[0]}!function(e){e.DAY="day",e.HOUR="hour",e.MINUTE="minute",e.SECOND="second"}(r||(r={}));var h=(i={},(0,u.Z)(i,r.DAY,86400),(0,u.Z)(i,r.HOUR,3600),(0,u.Z)(i,r.MINUTE,60),(0,u.Z)(i,r.SECOND,1),i);function _(e){var n=r.SECOND,t=e;return e%86400===0?(t/=86400,n=r.DAY):e%3600===0?(t/=3600,n=r.HOUR):e%60===0&&(t/=60,n=r.MINUTE),{time:t,unit:n}}function v(e,n){return e*h[n]}function b(e){var n,t="";return t="".concat(window.origin,"/api/pipeline_schedules/").concat(null===e||void 0===e?void 0:e.id,"/pipeline_runs"),null!==e&&void 0!==e&&e.token&&(t="".concat(t,"/").concat(e.token)),(n=window.location.port)&&(t=t.replace(n,c.QT)),t}},47409:function(e,n,t){t.d(n,{Az:function(){return c},BF:function(){return l},Do:function(){return a},IK:function(){return o},VO:function(){return u},sZ:function(){return s}});var i,r=t(82394),u=t(66050).V,o=[u.FAILED,u.COMPLETED,u.RUNNING,u.CANCELLED,u.INITIAL],l=[u.INITIAL,u.RUNNING],c=[u.CANCELLED,u.COMPLETED,u.FAILED],s="__mage_variables",a=(i={},(0,r.Z)(i,u.CANCELLED,"Cancelled"),(0,r.Z)(i,u.COMPLETED,"Done"),(0,r.Z)(i,u.FAILED,"Failed"),(0,r.Z)(i,u.INITIAL,"Ready"),(0,r.Z)(i,u.RUNNING,"Running"),i)},93348:function(e,n,t){t.d(n,{TR:function(){return d},U5:function(){return c},Xm:function(){return u},Z4:function(){return a},fq:function(){return l},kJ:function(){return s}});var i,r,u,o=t(82394);!function(e){e.API="api",e.EVENT="event",e.TIME="time"}(u||(u={}));var l,c,s,a=(i={},(0,o.Z)(i,u.API,(function(){return"API"})),(0,o.Z)(i,u.EVENT,(function(){return"event"})),(0,o.Z)(i,u.TIME,(function(){return"schedule"})),i);!function(e){e.ACTIVE="active",e.INACTIVE="inactive"}(l||(l={})),function(e){e.ONCE="@once",e.HOURLY="@hourly",e.DAILY="@daily",e.WEEKLY="@weekly",e.MONTHLY="@monthly"}(c||(c={})),function(e){e.CREATED_AT="created_at",e.NAME="name",e.PIPELINE="pipeline_uuid",e.STATUS="status",e.TYPE="schedule_type"}(s||(s={}));var d=(r={},(0,o.Z)(r,s.CREATED_AT,"Created at"),(0,o.Z)(r,s.NAME,"Name"),(0,o.Z)(r,s.PIPELINE,"Pipeline"),(0,o.Z)(r,s.STATUS,"Status"),(0,o.Z)(r,s.TYPE,"Type"),r)}}]);