mage-ai 0.8.26__py3-none-any.whl → 0.8.27__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of mage-ai might be problematic. Click here for more details.

Files changed (107) hide show
  1. mage_ai/data_preparation/executors/streaming_pipeline_executor.py +2 -1
  2. mage_ai/data_preparation/logging/logger_manager.py +7 -1
  3. mage_ai/data_preparation/models/block/__init__.py +60 -29
  4. mage_ai/data_preparation/models/block/sql/__init__.py +25 -8
  5. mage_ai/data_preparation/models/block/sql/utils/shared.py +49 -3
  6. mage_ai/data_preparation/models/variable.py +6 -1
  7. mage_ai/data_preparation/repo_manager.py +5 -2
  8. mage_ai/data_preparation/shared/secrets.py +6 -3
  9. mage_ai/data_preparation/templates/sensors/bigquery.py +32 -0
  10. mage_ai/data_preparation/templates/sensors/mysql.py +33 -0
  11. mage_ai/data_preparation/templates/sensors/postgres.py +33 -0
  12. mage_ai/data_preparation/templates/sensors/redshift.py +33 -0
  13. mage_ai/data_preparation/templates/sensors/s3.py +11 -7
  14. mage_ai/data_preparation/templates/sensors/snowflake.py +33 -0
  15. mage_ai/io/postgres.py +13 -1
  16. mage_ai/server/constants.py +1 -1
  17. mage_ai/server/frontend_dist/404.html +2 -2
  18. mage_ai/server/frontend_dist/404.html.html +2 -2
  19. mage_ai/server/frontend_dist/_next/static/WbTBCvyjQQ9UFFLZOU1E5/_buildManifest.js +1 -0
  20. mage_ai/server/frontend_dist/_next/static/chunks/2344-f8ae030d6a6863ae.js +1 -0
  21. mage_ai/server/frontend_dist/_next/static/chunks/2626-e7fa4f83f8214c97.js +1 -0
  22. mage_ai/server/frontend_dist/_next/static/chunks/{4178-663d9f70bffc7a47.js → 4178-a6d1bd2be4706f51.js} +1 -1
  23. mage_ai/server/frontend_dist/_next/static/chunks/4261-88b0103fad331620.js +1 -0
  24. mage_ai/server/frontend_dist/_next/static/chunks/5141-57c3868a80196da8.js +1 -0
  25. mage_ai/server/frontend_dist/_next/static/chunks/6166-705b4fdecaf11e63.js +1 -0
  26. mage_ai/server/frontend_dist/_next/static/chunks/6532-b1bd0b3f422abec8.js +1 -0
  27. mage_ai/server/frontend_dist/_next/static/chunks/8180-8de652170ea5ed93.js +1 -0
  28. mage_ai/server/frontend_dist/_next/static/chunks/839-15c54471a9a9bf2e.js +1 -0
  29. mage_ai/server/frontend_dist/_next/static/chunks/{9386-9d6a4e5836229264.js → 9386-d4cc11bab74eec8d.js} +1 -1
  30. mage_ai/server/frontend_dist/_next/static/chunks/pages/{_app-624f87faa4b5ee9a.js → _app-5f3dbed367342a3d.js} +1 -1
  31. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-3046bc53d24917c7.js +1 -0
  32. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipeline-runs-f6059e27e601627c.js +1 -0
  33. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/{[...slug]-123556bdfe2e194b.js → [...slug]-050ef37b6672100a.js} +1 -1
  34. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-5f95bb4c3a2d7d46.js +1 -0
  35. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-270c0198eeef1542.js +1 -0
  36. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-c9f1df40e0aa6981.js +1 -0
  37. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/{block-runs-e0eb0098dcbf27ac.js → block-runs-d74850779dbe87b3.js} +1 -1
  38. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-848544a58563dbec.js +1 -0
  39. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{monitors-204daac985c03b62.js → monitors-675171cfd7d7b346.js} +1 -1
  40. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/{[run]-44533e244974a422.js → [run]-b2955f0ff960894e.js} +1 -1
  41. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{runs-2d41695001370abc.js → runs-219960b3cc4742e3.js} +1 -1
  42. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-1767a2f57f887ef7.js +1 -0
  43. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-0f373aaa7deb98c9.js +1 -0
  44. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{triggers-181343d8eb894426.js → triggers-bea0439ca2a862ba.js} +1 -1
  45. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-7446a70bdd8381a5.js +1 -0
  46. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users-d72dfc596e943cc4.js +1 -0
  47. mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-4c9ad80f8f9d1074.js +1 -0
  48. mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-783b9526167f1249.js +1 -0
  49. mage_ai/server/frontend_dist/index.html +2 -2
  50. mage_ai/server/frontend_dist/manage.html +4 -4
  51. mage_ai/server/frontend_dist/pipeline-runs.html +5 -5
  52. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +5 -5
  53. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +5 -5
  54. mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +2 -2
  55. mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +5 -5
  56. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +5 -5
  57. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +5 -5
  58. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +5 -5
  59. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +5 -5
  60. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +5 -5
  61. mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +5 -5
  62. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +5 -5
  63. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +5 -5
  64. mage_ai/server/frontend_dist/pipelines/[pipeline].html +2 -2
  65. mage_ai/server/frontend_dist/pipelines.html +5 -5
  66. mage_ai/server/frontend_dist/settings/account/profile.html +5 -5
  67. mage_ai/server/frontend_dist/settings/workspace/preferences.html +5 -5
  68. mage_ai/server/frontend_dist/settings/workspace/sync-data.html +5 -5
  69. mage_ai/server/frontend_dist/settings/workspace/users.html +5 -5
  70. mage_ai/server/frontend_dist/settings.html +2 -2
  71. mage_ai/server/frontend_dist/sign-in.html +9 -9
  72. mage_ai/server/frontend_dist/terminal.html +5 -5
  73. mage_ai/server/frontend_dist/test.html +3 -3
  74. mage_ai/server/frontend_dist/triggers.html +5 -5
  75. mage_ai/server/server.py +1 -6
  76. mage_ai/shared/security.py +9 -2
  77. mage_ai/shared/utils.py +7 -0
  78. mage_ai/tests/shared/test_security.py +6 -6
  79. {mage_ai-0.8.26.dist-info → mage_ai-0.8.27.dist-info}/METADATA +1 -1
  80. {mage_ai-0.8.26.dist-info → mage_ai-0.8.27.dist-info}/RECORD +86 -81
  81. mage_ai/server/frontend_dist/_next/static/chunks/1830-3882c19d710feadd.js +0 -1
  82. mage_ai/server/frontend_dist/_next/static/chunks/2344-a82a406b72fe782b.js +0 -1
  83. mage_ai/server/frontend_dist/_next/static/chunks/2626-30c0fab7c3926578.js +0 -1
  84. mage_ai/server/frontend_dist/_next/static/chunks/3688-562e0f129b09d1cd.js +0 -1
  85. mage_ai/server/frontend_dist/_next/static/chunks/3699-dcc0946dd0709216.js +0 -1
  86. mage_ai/server/frontend_dist/_next/static/chunks/4463-777e71000be29fc4.js +0 -1
  87. mage_ai/server/frontend_dist/_next/static/chunks/6532-baf1818fbc89e6c1.js +0 -1
  88. mage_ai/server/frontend_dist/_next/static/chunks/6567-2488118bb39a9d99.js +0 -1
  89. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-c580ee38f5442bef.js +0 -1
  90. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipeline-runs-dd72d2f3375064cf.js +0 -1
  91. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-26974ca695994804.js +0 -1
  92. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-df603787c041cd8a.js +0 -1
  93. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-72011b08ef047531.js +0 -1
  94. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-3b17a6d28cdde471.js +0 -1
  95. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-c31fec2be1160dbe.js +0 -1
  96. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-3a60003fce7dfb93.js +0 -1
  97. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-ebb4a57934e4fa52.js +0 -1
  98. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users-ff24167e21f2f0cf.js +0 -1
  99. mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-be9eab29e8ed712b.js +0 -1
  100. mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-e9c1789f6d5a0429.js +0 -1
  101. mage_ai/server/frontend_dist/_next/static/kiWhqtXdRSgsbVPwfDLY4/_buildManifest.js +0 -1
  102. /mage_ai/server/frontend_dist/_next/static/{kiWhqtXdRSgsbVPwfDLY4 → WbTBCvyjQQ9UFFLZOU1E5}/_middlewareManifest.js +0 -0
  103. /mage_ai/server/frontend_dist/_next/static/{kiWhqtXdRSgsbVPwfDLY4 → WbTBCvyjQQ9UFFLZOU1E5}/_ssgManifest.js +0 -0
  104. {mage_ai-0.8.26.dist-info → mage_ai-0.8.27.dist-info}/LICENSE +0 -0
  105. {mage_ai-0.8.26.dist-info → mage_ai-0.8.27.dist-info}/WHEEL +0 -0
  106. {mage_ai-0.8.26.dist-info → mage_ai-0.8.27.dist-info}/entry_points.txt +0 -0
  107. {mage_ai-0.8.26.dist-info → mage_ai-0.8.27.dist-info}/top_level.txt +0 -0
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4261],{7432:function(n,e,t){var o={"./Active4D.json":[266,266],"./All Hallows Eve.json":[4450,4450],"./Amy.json":[88849,8849],"./Birds of Paradise.json":[78097,8097],"./Blackboard.json":[88018,6115],"./Brilliance Black.json":[73835,3835],"./Brilliance Dull.json":[6507,6507],"./Chrome DevTools.json":[22508,2508],"./Clouds Midnight.json":[49566,9566],"./Clouds.json":[57951,7951],"./Cobalt.json":[80826,826],"./Cobalt2.json":[98256,8256],"./Dawn.json":[76958,6958],"./Dominion Day.json":[89307,9307],"./Dracula.json":[33453,3453],"./Dreamweaver.json":[19363,9363],"./Eiffel.json":[82481,2481],"./Espresso Libre.json":[44776,4776],"./GitHub Dark.json":[792,792],"./GitHub Light.json":[61450,1450],"./GitHub.json":[10739,739],"./IDLE.json":[67947,7947],"./Katzenmilch.json":[81240,1240],"./Kuroir Theme.json":[4388,4388],"./LAZY.json":[25164,5164],"./MagicWB (Amiga).json":[76443,6443],"./Merbivore Soft.json":[99361,9361],"./Merbivore.json":[86042,6042],"./Monokai Bright.json":[14883,4883],"./Monokai.json":[34454,4454],"./Night Owl.json":[60261,261],"./Nord.json":[59785,9785],"./Oceanic Next.json":[58920,8920],"./Pastels on Dark.json":[38901,8901],"./Slush and Poppies.json":[26434,6434],"./Solarized-dark.json":[36116,6116],"./Solarized-light.json":[5008,5008],"./SpaceCadet.json":[20440,440],"./Sunburst.json":[68018,8018],"./Textmate (Mac Classic).json":[15824,5824],"./Tomorrow-Night-Blue.json":[81150,1150],"./Tomorrow-Night-Bright.json":[8762,8762],"./Tomorrow-Night-Eighties.json":[82545,2545],"./Tomorrow-Night.json":[99855,9855],"./Tomorrow.json":[34092,4092],"./Twilight.json":[93898,3898],"./Upstream Sunburst.json":[98807,8807],"./Vibrant Ink.json":[89927,9927],"./Xcode_default.json":[64042,4042],"./Zenburnesque.json":[33467,3467],"./iPlastic.json":[88277,8277],"./idleFingers.json":[5104,5104],"./krTheme.json":[9633,9633],"./monoindustrial.json":[15729,5729],"./themelist.json":[79437,9437]};function i(n){if(!t.o(o,n))return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+n+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=o[n],i=e[0];return t.e(e[1]).then((function(){return t.t(i,19)}))}i.keys=function(){return Object.keys(o)},i.id=7432,n.exports=i},5677:function(n,e,t){"use strict";t.d(e,{M4:function(){return d},S0:function(){return l},S_:function(){return u},Yn:function(){return f},rW:function(){return s}});var o=t(82394),i=t(21831),r=t(75582);function c(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?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 u(n,e){return Object.entries(e).map((function(e){var t=(0,r.Z)(e,2),o=t[0],i=t[1];return n.languages.registerCompletionItemProvider(o,{provideCompletionItems:i(n)})}))}function l(n){var e=function(n){var e="[\\w.]+",t=["import ".concat(e," as ").concat(e),"import ".concat(e),"from ".concat(e," import ").concat(e," as ").concat(e),"from ".concat(e," import ").concat(e)],o=new RegExp("(".concat(t.join("|"),")"),"g");return(0,i.Z)(n.matchAll(o)).map((function(n){return n[1]}))}(n),t="[\\w.]+",r=["from ".concat(t," import ").concat(t," as (").concat(t,")"),"from ".concat(t," import (").concat(t,")"),"import ".concat(t," as (").concat(t,")"),"import (".concat(t,")")],c=new RegExp("(".concat(r.join("|"),")"));return e.reduce((function(n,e){var t=e.match(c);if(!t)return n;var r=(0,i.Z)(t),u=r[2],l=r[3],s=r[4],d=r[5],f=u||l||s||d;return a(a({},n),{},(0,o.Z)({},f,e))}),{})}function s(n,e){var t=n;e&&(t=t.split(" as ".concat(e))[0]);var o="[\\w.]+",c=["from ".concat(o," import (").concat(o,")"),"import (".concat(o,")")],a=new RegExp("(".concat(c.join("|"),")"),"g"),u=(0,i.Z)(t.matchAll(a))[0];if(u){var l=(0,r.Z)(u,4),s=l[2],d=l[3];return s||d}}function d(n,e){return function(n,e){return n.split("\n")[e.startLineNumber-1]}(n,e).slice(0,e.startColumn-1)}function f(n){var e=new RegExp("([\\w_]+)[ ]*=[ ]*([\\w_]+)","g");return(0,i.Z)(n.matchAll(e)).map((function(n){return{assignmentValue:n[2],variableName:n[1]}}))}},32365:function(n,e,t){"use strict";t.d(e,{Ep:function(){return c},KT:function(){return l},Nk:function(){return u},aU:function(){return a}});var o=t(9518),i=t(23831),r=t(49125),c=2,a=21,u=o.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-w2hta3-0"})(["",""],(function(n){return n.padding&&"\n padding-top: ".concat(2*r.iI,"px;\n background-color: ").concat((n.theme.background||i.Z.background).codeTextarea,";\n ")})),l=o.default.div.withConfig({displayName:"indexstyle__PlaceholderStyle",componentId:"sc-w2hta3-1"})(["padding-left:67px;position:absolute;z-index:1;"])},57722:function(n,e,t){"use strict";t.d(e,{Z:function(){return b}});var o=t(82684),i=t(85202),r=t(38789),c=t(19711),a=t(66166),u="twilight",l=t(2005),s=t(31012),d=t(32365),f=t(5677);var p=t(75582),h={"all-hallows-eve":"All Hallows Eve","birds-of-paradise":"Birds of Paradise","brilliance-black":"Brilliance Black","brilliance-dull":"Brilliance Dull","chrome-devtools":"Chrome DevTools","clouds-midnight":"Clouds Midnight","espresso-libre":"Espresso Libre","kuroir-theme":"Kuroir Theme","magicwb--amiga-":"MagicWB (Amiga)","merbivore-soft":"Merbivore Soft","monokai-bright":"Monokai Bright","night-owl":"Night Owl","oceanic-next":"Oceanic Next","pastels-on-dark":"Pastels on Dark","slush-and-poppies":"Slush and Poppies","solarized-dark":"Solarized-dark","solarized-light":"Solarized-light","textmate--mac-classic-":"Textmate (Mac Classic)","tomorrow-night":"Tomorrow-Night","tomorrow-night-blue":"Tomorrow-Night-Blue","tomorrow-night-bright":"Tomorrow-Night-Bright","tomorrow-night-eighties":"Tomorrow-Night-Eighties","upstream-sunburst":"Upstream Sunburst","vibrant-ink":"Vibrant Ink","xcode-default":"Xcode_default",active4d:"Active4D",amy:"Amy",blackboard:"Blackboard",clouds:"Clouds",cobalt:"Cobalt",dawn:"Dawn",dreamweaver:"Dreamweaver",eiffel:"Eiffel",github:"GitHub",idle:"IDLE",idlefingers:"idleFingers",iplastic:"iPlastic",katzenmilch:"Katzenmilch",krtheme:"krTheme",lazy:"LAZY",merbivore:"Merbivore",monoindustrial:"monoindustrial",monokai:"Monokai",spacecadet:"SpaceCadet",sunburst:"Sunburst",tomorrow:"Tomorrow",twilight:"Twilight",zenburnesque:"Zenburnesque"};var m=t(80636),g=t(28598);var b=function(n){var e=n.autocompleteProviders,b=n.autoHeight,y=n.autoSave,v=n.fontSize,w=void 0===v?s.i3:v,j=n.height,x=n.language,k=n.onChange,S=n.onDidChangeCursorPosition,O=n.onSave,C=n.padding,N=n.placeholder,_=n.readOnly,Z=n.selected,E=n.setSelected,I=n.setTextareaFocused,P=n.shortcuts,z=n.showLineNumbers,D=void 0===z||z,H=n.tabSize,M=void 0===H?4:H,T=n.textareaFocused,B=n.theme,F=n.value,A=n.width,L=void 0===A?"100%":A,R=(0,o.useRef)(null),K=(0,o.useRef)(null),U=(0,o.useRef)(null),W=(0,o.useState)([]),G=W[0],V=W[1],X=(0,o.useState)(null),Y=X[0],Q=X[1],q=(0,o.useState)(!1),J=q[0],$=q[1],nn=(0,o.useState)(j),en=(nn[0],nn[1],(0,o.useState)(B||u)),tn=en[0],on=en[1],rn=(0,o.useCallback)((function(n){n.languages.typescript.javascriptDefaults.setEagerModelSync(!0),Q(n)}),[]),cn=(0,o.useCallback)((function(n,e){R.current=n,K.current=e;var t=[];null===P||void 0===P||P.forEach((function(o){t.push(o(e,n))})),O&&t.push((0,m.e)(e,(function(){O(n.getValue())}))),function(n,e,t){t.forEach((function(n){e.addAction(n)}))}(0,n,t),n.getModel().updateOptions({tabSize:M}),b&&!j&&(n._domElement.style.height="".concat(((F||"").split("\n").length+d.Ep)*d.aU,"px")),n.onDidFocusEditorWidget((function(){null===E||void 0===E||E(!0),null===I||void 0===I||I(!0)})),n.onDidContentSizeChange((function(e){var t=e.contentHeight,o=e.contentHeightChanged;b&&o&&(n._domElement.style.height="".concat(t+2*d.aU,"px"))})),Z&&T&&setTimeout((function(){n.focus()}),1),S&&n.onDidChangeCursorPosition((function(e){var t=e.position.lineNumber,o=n._domElement.getBoundingClientRect(),i=o.height,r=o.top;S({editorRect:{height:Number(i),top:Number(r)},position:{lineNumber:Number(t)}})})),$(!0)}),[b,j,S,O,Z,$,E,I,P,M,T,F]);(0,o.useEffect)((function(){(function(n){return new Promise((function(e){Promise.all([r._m.init(),t(7432)("./".concat(h[n],".json"))]).then((function(t){var o=(0,p.Z)(t,2),i=o[0],r=o[1];r.colors["editor.background"]="#000000",r.colors["editor.foreground"]="#FFFFFF",i.editor.defineTheme(n,r),e()}))}))})(u).then((function(){on(u)}))}),[]),(0,o.useEffect)((function(){var n;return y&&O&&(n=setInterval((function(){O(R.current.getValue())}),5e3)),function(){y&&n&&clearInterval(n)}}),[y,R,O]);var an=(0,a.Z)(Z),un=(0,a.Z)(T);return(0,o.useEffect)((function(){null!==R&&void 0!==R&&R.current&&(Z&&T?setTimeout((function(){R.current.focus()}),1):i.findDOMNode(R.current._domElement).getElementsByClassName("inputarea")[0].blur())}),[R,Z,an,T,un]),(0,o.useEffect)((function(){return function(){G.map((function(n){return n.dispose()}))}}),[G]),(0,o.useEffect)((function(){Y&&e&&(0===G.length&&T||!un&&T?V((0,f.S_)(Y,e)):un&&!T&&G.map((function(n){return n.dispose()})))}),[e,G,Y,T,un]),(0,g.jsxs)(d.Nk,{padding:C,style:{display:J?null:"none"},children:[N&&!(null!==F&&void 0!==F&&F.length)&&(0,g.jsx)(d.KT,{children:(0,g.jsx)(c.ZP,{monospace:!0,muted:!0,children:N})}),(0,g.jsx)(r.ZP,{beforeMount:rn,height:j,language:x||"python",onChange:function(n){null===k||void 0===k||k(n)},onMount:cn,options:{domReadOnly:_,fontFamily:l.Vp,fontLigatures:!0,fontSize:w,hideCursorInOverviewRuler:!0,lineNumbers:D,minimap:{enabled:!1},overviewRulerBorder:!1,readOnly:_,renderLineHighlightOnlyWhenFocus:!0,scrollBeyondLastLine:!1,scrollbar:{alwaysConsumeMouseWheel:!1,vertical:"hidden"},wordBasedSuggestions:!1},theme:tn,value:F,width:L}),(0,g.jsx)("div",{ref:U})]})}},80636:function(n,e,t){"use strict";function o(n,e){return{contextMenuGroupId:"navigation",contextMenuOrder:1.5,id:"saveCode",keybindingContext:null,keybindings:[n.KeyMod.CtrlCmd|n.KeyCode.KeyS],label:"Save",precondition:null,run:function(n){e()}}}function i(n,e){return{contextMenuGroupId:"navigation",contextMenuOrder:1.5,id:"executeCode",keybindingContext:null,keybindings:[n.KeyMod.CtrlCmd|n.KeyCode.Enter],label:"Run selected block",precondition:null,run:function(){return e()}}}t.d(e,{Q:function(){return i},e:function(){return o}})},85307:function(n,e,t){"use strict";t.d(e,{$W:function(){return l},cl:function(){return s},cv:function(){return d},dE:function(){return u}});var o=t(9518),i=t(23831),r=t(73942),c=t(49125),a=t(37391),u=o.default.div.withConfig({displayName:"indexstyle__SectionStyle",componentId:"sc-7a1uhf-0"})(["border-radius:","px;padding:","px;",""],r.n_,c.cd*c.iI,(function(n){return"\n background-color: ".concat((n.theme.background||i.Z.background).popup,";\n ")})),l=o.default.div.withConfig({displayName:"indexstyle__CodeEditorStyle",componentId:"sc-7a1uhf-1"})(["padding-top:","px;",""],c.cd*c.iI,(function(n){return"\n background-color: ".concat((n.theme.background||i.Z.background).codeTextarea,";\n ")})),s=o.default.div.withConfig({displayName:"indexstyle__TableContainerStyle",componentId:"sc-7a1uhf-2"})(["overflow:auto;max-height:90vh;width:100%;"," "," "," "," ",""],a.w5,(function(n){return n.hideHorizontalScrollbar&&"\n overflow-x: hidden;\n "}),(function(n){return n.width&&"\n width: ".concat(n.width,";\n ")}),(function(n){return n.height&&"\n height: ".concat(n.height,";\n ")}),(function(n){return n.maxHeight&&"\n max-height: ".concat(n.maxHeight,";\n ")})),d=o.default.div.withConfig({displayName:"indexstyle__HeaderRowStyle",componentId:"sc-7a1uhf-3"})(["padding:","px;"," "," ",""],2*c.iI,(function(n){return"\n background-color: ".concat((n.theme||i.Z).interactive.defaultBackground,";\n border-bottom: ").concat(r.YF,"px ").concat(r.M8," ").concat((n.theme||i.Z).borders.medium,";\n ")}),(function(n){return n.padding&&"\n padding: ".concat(n.padding,"px;\n ")}),(function(n){return n.rounded&&"\n border-top-left-radius: ".concat(r.n_,"px;\n border-top-right-radius: ").concat(r.n_,"px;\n ")}))},87372:function(n,e,t){"use strict";var o,i,r,c,a,u,l,s,d=t(82394),f=t(26304),p=t(26653),h=t(9518),m=t(33591),g=t(23831),b=t(2005),y=t(31012),v=t(19711),w=t(49125),j=t(86673),x=t(28598),k=["children","condensed","inline","level","marketing","spacingBelow"];function S(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 O(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,d.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):S(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var C=(0,h.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],v.IH,(function(n){return n.color&&"\n color: ".concat(n.color,"\n ")}),(function(n){return n.yellow&&"\n color: ".concat((n.theme.accent||g.Z.accent).yellow,";\n ")}),(function(n){return n.center&&"\n text-align: center;\n "}),(function(n){return!n.monospace&&0===Number(n.weightStyle)&&"\n font-family: ".concat(b.iI,";\n ")}),(function(n){return!n.monospace&&1===Number(n.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(n){return!n.monospace&&2===Number(n.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(n){return!n.monospace&&3===Number(n.weightStyle)&&"\n font-family: ".concat(b.ry,";\n ")}),(function(n){return!n.monospace&&4===Number(n.weightStyle)&&"\n font-family: ".concat(b.YC,";\n ")}),(function(n){return!n.monospace&&5===Number(n.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(n){return!n.monospace&&(6===Number(n.weightStyle)||n.bold)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(n){return!n.monospace&&7===Number(n.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(n){return!n.monospace&&8===Number(n.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(n){return n.lineHeightAuto&&"\n line-height: normal !important;\n "})),N=h.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(n){return"\n color: ".concat((n.theme.content||g.Z.content).active,";\n ")})),_=h.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],C,m.media.md(o||(o=(0,p.Z)(["\n ","\n "])),y.aQ),m.media.lg(i||(i=(0,p.Z)(["\n ","\n "])),y.aQ),m.media.xl(r||(r=(0,p.Z)(["\n ","\n "])),y.aQ)),Z=h.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],C,y.MJ),E=h.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],C,m.media.xs(c||(c=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),m.media.sm(a||(a=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),m.media.md(u||(u=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),m.media.lg(l||(l=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),m.media.xl(s||(s=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI)),I=h.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],C,y.BL),P=h.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],C),z=h.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],C),D=h.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],C),H=h.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],C,(function(n){return 1===n.level&&"\n ".concat(y.MJ,"\n ")}),(function(n){return 2===n.level&&"\n ".concat(y.BL,"\n ")}),(function(n){return 3===n.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(n){return 4===n.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),M=function(n){var e,t=n.children,o=n.condensed,i=n.inline,r=n.level,c=n.marketing,a=n.spacingBelow,u=(0,f.Z)(n,k);i?e=H:0===Number(r)?e=_:1===Number(r)?e=c?E:Z:2===Number(r)?e=I:3===Number(r)?e=P:4===Number(r)?e=z:5===Number(r)&&(e=D);var l=(0,x.jsxs)(e,O(O({},u),{},{level:r,children:[a&&(0,x.jsx)(j.Z,{mb:o?2:3,children:t}),!a&&t]}));return i?l:(0,x.jsx)(N,{children:l})};M.defaultProps={level:3,weightStyle:6},e.Z=M},70902:function(n,e,t){"use strict";var o=t(82394),i=t(26304),r=t(82684),c=t(9518),a=t(69898),u=t(23831),l=t(28598),s=["checked","disabled","onCheck"];function d(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 f(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?d(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var p=c.default.label.withConfig({displayName:"ToggleSwitch__ToggleSwitchStyle",componentId:"sc-179r5zs-0"})([""," position:relative;display:inline-block;width:","px;min-width:","px;height:",'px;& input[type="checkbox"]{display:none;}& span{position:absolute;cursor:',";background-color:",";border-radius:13px;",';top:0;right:0;bottom:0;left:0;transition:background-color 0.2s ease;}& span::before{position:absolute;content:"";left:2px;top:2px;width:22px;height:22px;background-color:#787A85;border-radius:50%;transition:transform 0.3s ease;}& input[type="checkbox"]:checked + span::before{transform:translateX(20px);}',""],a.p,46,46,26,(function(n){return n.disabled?"not-allowed":"pointer"}),(function(n){return n.disabled?u.Z.monotone.white:u.Z.monotone.black}),(function(n){return n.disabled&&"border: 1px solid ".concat(u.Z.monotone.grey200)}),(function(n){return!n.disabled&&'\n & input[type="checkbox"]:checked + span {\n background-color: #6AA1E0;\n }\n\n & input[type="checkbox"]:checked + span::before {\n background-color: '.concat(u.Z.monotone.white,";\n }\n ")})),h=function(n,e){var t=n.checked,o=n.disabled,r=n.onCheck,c=(0,i.Z)(n,s);return(0,l.jsx)(a.Z,f(f({},c),{},{disabled:o,input:(0,l.jsxs)(p,f(f({},c),{},{disabled:o,noBackground:!0,noBorder:!0,children:[(0,l.jsx)("input",{checked:t,type:"checkbox"}),(0,l.jsx)("span",{onClick:o?null:function(){return null===r||void 0===r?void 0:r((function(n){return!n}))}})]})),noBackground:!0,ref:e}))};e.Z=r.forwardRef(h)}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5141],{33699:function(n,t,e){e.d(t,{y:function(){return O},Z:function(){return R}});var r=e(89565),i=e.n(r),o=e(56085),a=e(82684),c=e(35490),u=e(47999),l=e(67971),s=e(82635),d=e(86673),f=e(54283),p=e(19711),h=e(9518),g=e(23831),y=e(49125),v=e(37391),m=(0,h.css)([""," ",""],(function(n){return!n.width&&"\n width: 100%;\n "}),(function(n){return n.width&&"\n width: ".concat(n.width,"px;\n ")})),b=h.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-11d4rgl-0"})([""," "," height:100%;overflow:auto;position:absolute;",""],m,v.w5,(function(n){return"\n background-color: ".concat((n.theme.background||g.Z.background).codeTextarea,";\n ")})),S=h.default.div.withConfig({displayName:"indexstyle__InnerStyle",componentId:"sc-11d4rgl-1"})([""," padding:","px;"],m,y.cd*y.iI),x=h.default.div.withConfig({displayName:"indexstyle__LineStyle",componentId:"sc-11d4rgl-2"})(["height:","px;"],20),T=(0,h.css)(["@keyframes cursor-blink{0%{opacity:0;}}::before{","}::after{","}"],(function(n){return n.focusBeginning&&"\n position: absolute;\n background-color: ".concat((n.theme.accent||g.Z.accent).warning,';\n content: "";\n display: inline-block;\n height: ').concat(20,"px;\n width: ").concat(y.iI,"px;\n opacity: 0.3;\n ")}),(function(n){return n.focused&&"\n background-color: ".concat((n.theme.accent||g.Z.accent).warning,';\n content: "";\n display: inline-block;\n height: ').concat(20,"px;\n width: ").concat(y.iI,"px;\n opacity: 0.3;\n ")})),w=h.default.div.withConfig({displayName:"indexstyle__InputStyle",componentId:"sc-11d4rgl-3"})(["align-items:center;display:flex;gap:2px;",""],T),I=h.default.span.withConfig({displayName:"indexstyle__CharacterStyle",componentId:"sc-11d4rgl-4"})([""," ::after{","}"],T,(function(n){return n.focused&&"\n position: absolute;\n "})),P=e(16115),E=e(94353),k=e(28799),A=e(51504),_=e(66653),j=e(41150),C=e(28598);function N(n,t){var e="undefined"!==typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(!e){if(Array.isArray(n)||(e=function(n,t){if(!n)return;if("string"===typeof n)return Z(n,t);var e=Object.prototype.toString.call(n).slice(8,-1);"Object"===e&&n.constructor&&(e=n.constructor.name);if("Map"===e||"Set"===e)return Array.from(n);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return Z(n,t)}(n))||t&&n&&"number"===typeof n.length){e&&(n=e);var r=0,i=function(){};return{s:i,n:function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(n){throw n},f:i}}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 o,a=!0,c=!1;return{s:function(){e=e.call(n)},n:function(){var n=e.next();return a=n.done,n},e:function(n){c=!0,o=n},f:function(){try{a||null==e.return||e.return()}finally{if(c)throw o}}}}function Z(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,r=new Array(t);e<t;e++)r[e]=n[e];return r}var O="terminal";var R=function(n){var t=n.interruptKernel,e=n.onFocus,r=n.uuid,h=void 0===r?O:r,g=n.width,y=(0,a.useRef)(null),v=(0,a.useRef)(null),m=(0,a.useState)(!1),T=m[0],Z=m[1],R=(0,a.useState)(""),F=R[0],G=R[1],M=(0,a.useState)(0),U=M[0],X=M[1],Y=(0,a.useState)(""),D=Y[0],L=Y[1],K=(0,a.useState)(0),Q=K[0],B=K[1],H=(0,a.useState)([]),z=H[0],V=H[1],q=(0,a.useState)(!1),J=q[0],$=q[1],W=(0,a.useState)([]),nn=W[0],tn=W[1],en=(0,o.ZP)((0,k.Ib)(),{shouldReconnect:function(){return!0}}),rn=en.lastMessage,on=(en.readyState,en.sendMessage);(0,a.useEffect)((function(){if(rn){var n=null!==rn&&void 0!==rn&&rn.data?JSON.parse(rn.data):null;(null===n||void 0===n?void 0:n.uuid)===h&&(s.uF.BUSY===(null===n||void 0===n?void 0:n.execution_state)?Z(!0):s.uF.IDLE===(null===n||void 0===n?void 0:n.execution_state)&&Z(!1),tn((function(t){return n?t.concat(n):t})))}}),[rn,Z,tn,h]),(0,a.useEffect)((function(){if(y.current&&v.current){var n=v.current.getBoundingClientRect().height;y.current.scrollTo(0,n)}}),[nn,y,v]);var an=(0,j.y)(),cn=an.registerOnKeyDown,un=an.setDisableGlobalKeyboardShortcuts,ln=an.unregisterOnKeyDown;(0,a.useEffect)((function(){return function(){ln(h)}}),[ln,h]);var sn=(0,a.useCallback)((function(){B((function(n){return n>0?n-1:n}))}),[]),dn=(0,a.useCallback)((function(){B((function(n){return n<=F.length?n+1:n}))}),[F]),fn=(0,a.useCallback)((function(n){var t=(null===n||void 0===n?void 0:n.split(/\n/))||[];if(t.length>1){var e=t.slice(0,-1);e[0]=F+e[0];var r=e.map((function(n,t){return{command:0===t,data:n,type:s.Gi.TEXT}}));X(z.length+e.length),V((function(n){return n.concat(e)})),tn((function(n){return n.concat(r)})),L((function(n){return n+e.join("\n")}));var i=(t.slice(-1)[0]||"").trim();G(i),B(i.length)}else G((function(t){return t+n})),B(F.length+n.length)}),[F,z]);return cn(h,(function(n,e,r){var i=n.code,o=n.key;if(J)if((0,_.j)(n),(0,A.y)([P.PQ,P.VS],e))Z(!1),tn((function(n){var t;return n.concat({command:!0,data:(null===F||void 0===F||null===(t=F.trim())||void 0===t?void 0:t.length)>=1?F:"\n",type:s.Gi.TEXT})})),G(""),t();else if(!T)if(P.Qj!==i||e[P.zX])if((0,A.y)([P.QK],e))sn();else if((0,A.y)([P.DY],e))dn();else if((0,A.y)([P.Bu],e)){if(z.length>=1){var a,u=Math.max(0,U-1);G(z[u]),X(u),B((null===(a=z[u])||void 0===a?void 0:a.length)||0)}}else if((0,A.y)([P.kD],e)){if(z.length>=1){var l=Math.min(z.length,U+1),d=z[l]||"";G(d),X(l),B(d.length)}}else if((0,A.y)([P.Uq],e)){var f=D+F;(null===f||void 0===f?void 0:f.length)>=1&&(Z(!0),on(JSON.stringify({api_key:E.l,code:"!".concat(f),token:(new c.Z).decodedToken.token,uuid:h})),X(z.length+1),V((function(n){return n.concat(F)})),B(0)),tn((function(n){var t;return n.concat({command:!0,data:(null===F||void 0===F||null===(t=F.trim())||void 0===t?void 0:t.length)>=1?F:"\n",type:s.Gi.TEXT})})),L(""),G("")}else if((0,A.y)([P.zX,P.VS],e))navigator.clipboard.writeText(window.getSelection().toString());else if((0,A.y)([P.zX,P.Pd],e)||(0,A.y)([P.PQ,P.Pd],e)){var p,g,y,v,m;"undefined"===typeof(null===(p=navigator)||void 0===p?void 0:p.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!==(g=navigator)&&void 0!==g&&null!==(y=g.clipboard)&&void 0!==y&&y.readText?navigator.clipboard.readText().then(fn).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!==(v=navigator)&&void 0!==v&&null!==(m=v.clipboard)&&void 0!==m&&m.read?navigator.clipboard.read().then((function(n){var t,e=N(n);try{for(e.s();!(t=e.n()).done;){var r,i=t.value,o=N(i.types);try{for(o.s();!(r=o.n()).done;){var a=r.value;if("text/plain"===a)return i.getType(a)}}catch(c){o.e(c)}finally{o.f()}}}catch(c){e.e(c)}finally{e.f()}})).then((function(n){return n.text()})).then(fn).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[P.zX]||e[P.PQ]||1!==o.length||(G((function(n){return n.slice(0,Q)+o+n.slice(Q)})),dn());else{var b=Math.max(0,Q-1);G((function(n){return n.slice(0,b)+n.slice(Q)})),B((function(n){return Math.max(0,n-1)}))}}),[T,F,z,U,J,t,Z,G,V,X,tn,h]),(0,C.jsx)(b,{ref:y,width:g,children:(0,C.jsx)(u.Z,{isOpen:!0,onClick:function(){null===e||void 0===e||e(),$(!0),un(!0)},onClickOutside:function(){$(!1),un(!1)},style:{minHeight:"100%"},children:(0,C.jsxs)(S,{ref:v,width:g,children:[null===nn||void 0===nn?void 0:nn.reduce((function(n,t,e){var r=t||{},o=r.command,a=r.data,c=r.type,u=[];u=(u=Array.isArray(a)?a:[a]).filter((function(n){return n}));var d=[];return u.forEach((function(n,t){var r;if(s.jU.includes(c)&&(r=(0,C.jsxs)(p.ZP,{monospace:!0,noWrapping:!0,pre:!0,children:[n&&(0,C.jsx)(i(),{children:n}),!n&&(0,C.jsx)(C.Fragment,{children:"\xa0"})]})),r){var a="command-".concat(e,"-").concat(t,"-").concat(n);o?d.push((0,C.jsx)(x,{children:(0,C.jsxs)(l.Z,{alignItems:"center",children:[(0,C.jsx)(p.ZP,{inline:!0,monospace:!0,warning:!0,children:"\u2192\xa0"}),r]})},a)):d.push((0,C.jsx)(x,{children:r},a))}})),n.concat(d)}),[]),T&&(0,C.jsx)(d.Z,{mt:1,children:(0,C.jsx)(f.Z,{})}),!T&&(0,C.jsx)(w,{focused:J&&(0===F.length||Q>F.length),children:(0,C.jsxs)(p.ZP,{monospace:!0,children:[(0,C.jsx)(p.ZP,{inline:!0,monospace:!0,warning:!0,children:"\u2192\xa0"}),null===F||void 0===F?void 0:F.split("").map((function(n,t){return(0,C.jsxs)(I,{focusBeginning:J&&0===Q&&0===t,focused:J&&Q===t+1,children:[" "===n&&(0,C.jsx)(C.Fragment,{children:"\xa0"})," "!==n&&n]},"command-".concat(t,"-").concat(n))}))]})})]})})})}},82635:function(n,t,e){var r,i;e.d(t,{Gi:function(){return i},jU:function(){return a},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"}(i||(i={}));var o,a=[i.TEXT,i.TEXT_PLAIN];!function(n){n.DISPLAY_DATA="display_data",n.STATUS="status",n.STREAM="stream",n.STREAM_PIPELINE="stream_pipeline"}(o||(o={}))},98781:function(n,t,e){e.d(t,{$1:function(){return u},G7:function(){return s},QK:function(){return c},a_:function(){return d},qL:function(){return o},r0:function(){return l}});var r,i,o,a=e(82394);!function(n){n.INTEGRATION="integration",n.PYTHON="python",n.PYSPARK="pyspark",n.STREAMING="streaming"}(o||(o={}));var c,u,l,s=(r={},(0,a.Z)(r,o.INTEGRATION,"Integration"),(0,a.Z)(r,o.PYTHON,"Standard"),(0,a.Z)(r,o.PYSPARK,"PySpark"),(0,a.Z)(r,o.STREAMING,"Streaming"),r);!function(n){n.ACTIVE="active",n.INACTIVE="inactive",n.NO_SCHEDULES="no_schedules"}(c||(c={})),function(n){n.GROUP="group_by",n.STATUS="status[]",n.TYPE="type[]"}(u||(u={})),function(n){n.STATUS="status",n.TYPE="type"}(l||(l={}));var d=(i={},(0,a.Z)(i,o.PYTHON,"python3"),(0,a.Z)(i,o.PYSPARK,"pysparkkernel"),i)},51504:function(n,t,e){e.d(t,{y:function(){return o}});var r=e(75582),i=e(16115);function o(n,t){var e=n.map((function(n){return String(n)})),o=n.includes(i.PQ),a=n.includes(i.zX),c=n.includes(i.XR),u=i.xU.map((function(n){return String(n)})),l=i.vk.map((function(n){return String(n)})),s=i.Tr.map((function(n){return String(n)})),d=Object.entries(t).find((function(n){var t=(0,r.Z)(n,2),i=t[0];return t[1]&&!e.includes(String(i))&&(!a||!l.includes(String(i)))&&(!o||!u.includes(String(i)))&&(!c||!s.includes(String(i)))}));return n.every((function(n){return t[n]}))&&!d}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6166],{34744:function(n,r,t){var e=t(82394),o=t(26304),i=(t(82684),t(9518)),u=t(86673),c=t(23831),a=t(49125),f=t(28598),l=["short"];function s(n,r){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);r&&(e=e.filter((function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),t.push.apply(t,e)}return t}function d(n){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?s(Object(t),!0).forEach((function(r){(0,e.Z)(n,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))}))}return n}var h=i.default.div.withConfig({displayName:"Divider__DividerContainerStyle",componentId:"sc-1m7lqco-0"})([""," ",""],(function(n){return n.short&&"\n width: ".concat(21*a.iI,"px;\n ")}),(function(n){return!n.short&&"\n width: 100%;\n "})),g=i.default.div.withConfig({displayName:"Divider__DividerStyle",componentId:"sc-1m7lqco-1"})(["height:1px;"," "," "," "," "," ",""],(function(n){return!(n.light||n.medium)&&"\n background-color: ".concat((n.theme.monotone||c.Z.monotone).grey200,";\n ")}),(function(n){return n.muted&&"\n background-color: ".concat((n.theme.monotone||c.Z.monotone).grey500,";\n ")}),(function(n){return n.light&&"\n background-color: ".concat((n.theme.borders||c.Z.borders).light,";\n ")}),(function(n){return n.medium&&"\n background-color: ".concat((n.theme.borders||c.Z.borders).medium,";\n ")}),(function(n){return n.prominent&&"\n background-color: ".concat((n.theme.monotone||c.Z.monotone).grey300,";\n ")}),(function(n){return n.black&&"\n background-color: ".concat((n.theme.monotone||c.Z.monotone).black,";\n ")})),p=function(n){var r=n.short,t=(0,o.Z)(n,l);return(0,f.jsx)(h,{short:r,children:(0,f.jsx)(u.Z,d(d({},t),{},{children:(0,f.jsx)(g,d({},t))}))})};p.defaultProps={short:!1},r.Z=p},24224:function(n,r,t){t.d(r,{HK:function(){return f},Hk:function(){return c},IN:function(){return O},Od:function(){return h},Qj:function(){return m},Sm:function(){return w},YC:function(){return l},fS:function(){return p},m5:function(){return y},mp:function(){return j},mr:function(){return s},oM:function(){return g},ry:function(){return d},sE:function(){return a},tS:function(){return v},w6:function(){return b}});var e=t(82394),o=t(7715);function i(n,r){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);r&&(e=e.filter((function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable}))),t.push.apply(t,e)}return t}function u(n){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?i(Object(t),!0).forEach((function(r){(0,e.Z)(n,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach((function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))}))}return n}function c(n,r,t){var e=t.slice();return e.splice(r,0,n),e}function a(n,r){return null===n||void 0===n?void 0:n.find(r)}function f(n,r){return null===n||void 0===n?void 0:n.reduce((function(n,t){return u(u({},n),{},(0,e.Z)({},r(t),t))}),{})}function l(n,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},e=t.ascending,i=void 0===e||e,u=t.absoluteValue,c=void 0!==u&&u,a="string"===typeof r||"number"===typeof r?function(n){return c?Math.abs((0,o.t2)(n,r)):(0,o.t2)(n,r)}:function(n){return c?Math.abs(r(n)):r(n)};return n.sort((function(n,r){var t=0;return a(n)>a(r)?t=i?1:-1:a(n)<a(r)&&(t=i?-1:1),t}))}function s(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=r.ascending,e=void 0===t||t;return n.sort((function(n,r){var t=0;return n[0]>r[0]?t=e?1:-1:n[0]<r[0]&&(t=e?-1:1),t}))}function d(n,r){for(var t=-1,e=n.length;1+t<e;){var o=t+(e-t>>1);r(n[o])?t=o:e=o}return e}function h(n,r){var t=n.findIndex(r);return g(n,t)}function g(n,r){return n.slice(0,r).concat(n.slice(r+1,n.length))}function p(n,r){return n.map((function(n){return String(n)})).join()===r.map((function(n){return String(n)})).join()}function v(n,r){return n>r}function m(n,r){return n<r}function b(n){return Array(n).fill(0)}function y(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=Array.from(Array(n).keys());return 0!==r&&(t=t.map((function(n){return n+r}))),t}function w(n){return n.reduce((function(n,r){return n+r}),0)}function O(n){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=n.reduce((function(n,r){return n+r}),0)/n.length;return Math.sqrt(n.reduce((function(n,r){return n.concat(Math.pow(r-t,2))}),[]).reduce((function(n,r){return n+r}),0)/(n.length-(r?0:1)))}function j(n){return n[Math.floor(Math.random()*n.length)]}},90211:function(n,r,t){t.d(r,{RA:function(){return f},kC:function(){return l},vg:function(){return m},T3:function(){return w},Mp:function(){return s},Pb:function(){return c},HW:function(){return y},wX:function(){return d},x6:function(){return h},_6:function(){return g},zf:function(){return b},Y6:function(){return j},wE:function(){return k},J3:function(){return p},We:function(){return a},QV:function(){return O},C5:function(){return v}});var e=t(75582),o=["aged","ancient","autumn","billowing","bitter","black","blue","bold","broken","cold","cool","crimson","damp","dark","dawn","delicate","divine","dry","empty","falling","floral","fragrant","frosty","green","hidden","holy","icy","late","lingering","little","lively","long","misty","morning","muddy","nameless","old","patient","polished","proud","purple","quiet","red","restless","rough","shy","silent","small","snowy","solitary","sparkling","spring","still","summer","throbbing","twilight","wandering","weathered","white","wild","winter","wispy","withered","young"],i=(t(92083),["bird","breeze","brook","bush","butterfly","cherry","cloud","darkness","dawn","dew","dream","dust","feather","field","fire","firefly","flower","fog","forest","frog","frost","glade","glitter","grass","haze","hill","lake","leaf","meadow","moon","morning","mountain","night","paper","pine","pond","rain","resonance","river","sea","shadow","shape","silence","sky","smoke","snow","snowflake","sound","star","sun","sun","sunset","surf","thunder","tree","violet","voice","water","water","waterfall","wave","wildflower","wind","wood"]),u=t(24224);function c(n){if(!n)return!1;try{JSON.parse(n)}catch(r){return!1}return!0}function a(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";return n.split(" ").join(r)}function f(n){return n.split(" ").join("_")}function l(n){return n?n.charAt(0).toUpperCase()+n.slice(1):""}function s(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return String((new Date).getTime()*n)}function d(n){return n.charAt(0).toLowerCase()+n.slice(1)}function h(n){if(null===n||"undefined"===typeof n)return"";var r=n.toString().split("."),t=(0,e.Z)(r,2),o=t[0],i=t[1],u=o.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",");return i?"".concat(u,".").concat(i):u}function g(n,r){var t,e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=r,i=void 0!==o&&null!==o;if(i||(o=2),1===o)t=n;else{var u=n.length,c=n[u-1];t="y"===c&&"day"!==n?"".concat(n.slice(0,u-1),"ies"):"".concat(n,"s"===c?"es":"s")}if(i){var a=e?h(o):o;return"".concat(a," ").concat(t)}return t}function p(n){return null===n||void 0===n?void 0:n.replace(/_/g," ")}function v(n){var r=n.length;return"ies"===n.slice(r-3,r)?"".concat(n.slice(0,r-3),"y"):"es"===n.slice(r-2,r)&&"ces"!==n.slice(r-3,r)?n.slice(0,r-2):n.slice(0,r-1)}function m(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return l(p(n.toLowerCase()))}function b(n){var r,t=[["second",60],["minute",60],["hour",24],["day",7],["week",4],["month",12],["year",null]];return t.forEach((function(o,i){if(!r){var u=(0,e.Z)(o,2),c=u[0],a=u[1],f=t.slice(0,i).reduce((function(n,r){return n*Number(r[1])}),1);n<Number(a)*f&&(r=g(c,Math.round(n/f)))}})),r}function y(n){return!isNaN(n)}function w(n){return"".concat(h(function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return Math.round((n||0)*Math.pow(100,r))/100}(n)),"%")}function O(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,t=Math.pow(10,r);return Math.round((n||0)*t)/t}function j(){return"".concat((0,u.mp)(o)," ").concat((0,u.mp)(i))}function k(n){var r=n.split("/"),t=r[r.length-1].split(".")[0];return r.slice(0,r.length-1).concat(t).join("/")}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6532],{44162:function(n,e,t){t.d(e,{HC:function(){return E},Kf:function(){return s},Nk:function(){return f},gE:function(){return h},jv:function(){return v},nz:function(){return p},oh:function(){return l},qn:function(){return a},t1:function(){return m},y9:function(){return b}});var o=t(9518),i=t(23831),r=t(86422),u=t(73942),c=t(49125),d=t(90880),l=68;function a(n,e){var t,o,u=((null===e||void 0===e||null===(t=e.theme)||void 0===t?void 0:t.borders)||i.Z.borders).light,c=((null===e||void 0===e||null===(o=e.theme)||void 0===o?void 0:o.monotone)||i.Z.monotone).grey500,d=e||{},l=d.blockColor,a=d.isSelected,s=d.theme;return a?u=((null===s||void 0===s?void 0:s.content)||i.Z.content).active:r.tf.TRANSFORMER===n||l===r.Lq.PURPLE?(u=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).purple,c=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).purpleLight):r.tf.DATA_EXPORTER===n||l===r.Lq.YELLOW?(u=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).yellow,c=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).yellowLight):r.tf.DATA_LOADER===n||l===r.Lq.BLUE?(u=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).blue,c=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).blueLight):r.tf.SENSOR===n||l===r.Lq.PINK?(u=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).pink,c=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).pinkLight):r.tf.DBT===n?(u=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).dbt,c=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).dbtLight):r.tf.EXTENSION===n||l===r.Lq.TEAL?(u=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).teal,c=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).tealLight):(r.tf.SCRATCHPAD===n||l===r.Lq.GREY||r.tf.CUSTOM===n&&!l)&&(u=((null===s||void 0===s?void 0:s.content)||i.Z.content).default,c=((null===s||void 0===s?void 0:s.accent)||i.Z.accent).contentDefaultTransparent),{accent:u,accentLight:c}}var s=(0,o.css)([""," "," "," "," "," "," ",""],(0,d.eR)(),(function(n){return!n.selected&&!n.hasError&&"\n border-color: ".concat(a(n.blockType,n).accentLight,";\n ")}),(function(n){return n.selected&&!n.hasError&&"\n border-color: ".concat(a(n.blockType,n).accent,";\n ")}),(function(n){return!n.selected&&n.hasError&&"\n border-color: ".concat((n.theme.accent||i.Z.accent).negativeTransparent,";\n ")}),(function(n){return n.selected&&n.hasError&&"\n border-color: ".concat((n.theme.borders||i.Z.borders).danger,";\n ")}),(function(n){return n.dynamicBlock&&"\n border-style: dashed !important;\n "}),(function(n){return n.dynamicChildBlock&&"\n border-style: dotted !important;\n "})),f=o.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-s5rj34-0"})(["border-radius:","px;position:relative;"],u.n_),p=o.default.div.withConfig({displayName:"indexstyle__BlockHeaderStyle",componentId:"sc-s5rj34-1"})([""," border-top-left-radius:","px;border-top-right-radius:","px;border-top-style:",";border-top-width:","px;border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding:","px;position:sticky;top:-5px;"," ",""],s,u.n_,u.n_,u.M8,u.mP,u.M8,u.mP,u.M8,u.mP,c.iI,(function(n){return"\n background-color: ".concat((n.theme||i.Z).background.content,";\n ")}),(function(n){return n.zIndex&&"\n z-index: ".concat(6+(n.zIndex||0),";\n ")})),v=o.default.div.withConfig({displayName:"indexstyle__CodeContainerStyle",componentId:"sc-s5rj34-2"})([""," border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding-bottom:","px;padding-top:","px;position:relative;"," "," .line-numbers{opacity:0;}&.selected{.line-numbers{opacity:1 !important;}}"],s,u.M8,u.mP,u.M8,u.mP,c.iI,c.iI,(function(n){return"\n background-color: ".concat((n.theme.background||i.Z.background).codeTextarea,";\n ")}),(function(n){return!n.hasOutput&&"\n border-bottom-left-radius: ".concat(u.n_,"px;\n border-bottom-right-radius: ").concat(u.n_,"px;\n border-bottom-style: ").concat(u.M8,";\n border-bottom-width: ").concat(u.mP,"px;\n ")})),h=o.default.div.withConfig({displayName:"indexstyle__BlockDivider",componentId:"sc-s5rj34-3"})(["align-items:center;display:flex;height:","px;justify-content:center;position:relative;z-index:8;bottom:","px;&:hover{"," .block-divider-inner{","}}"],2*c.iI,.5*c.iI,(function(n){return n.additionalZIndex>0&&"\n z-index: ".concat(8+n.additionalZIndex,";\n ")}),(function(n){return"\n background-color: ".concat((n.theme.text||i.Z.text).fileBrowser,";\n ")})),m=o.default.div.withConfig({displayName:"indexstyle__BlockDividerInner",componentId:"sc-s5rj34-4"})(["height 1px;width:100%;position:absolute;z-index:-1;top:","px;"],1.5*c.iI),b=o.default.div.withConfig({displayName:"indexstyle__CodeHelperStyle",componentId:"sc-s5rj34-5"})(["margin-bottom:","px;padding-bottom:","px;",""],c.cd*c.iI,c.iI,(function(n){return"\n border-bottom: 1px solid ".concat((n.theme.borders||i.Z.borders).medium,";\n padding-left: ").concat(n.normalPadding?c.iI:l,"px;\n ")})),E=o.default.div.withConfig({displayName:"indexstyle__TimeTrackerStyle",componentId:"sc-s5rj34-6"})(["bottom:","px;left:","px;position:absolute;"],1*c.iI,l)},86532:function(n,e,t){t.d(e,{Z:function(){return J}});var o,i=t(21831),r=t(82394),u=t(75582),c=t(77837),d=t(38860),l=t.n(d),a=t(51774),s=t.n(a),f=t(9518),p=t(4804),v=t(82684),h=t(83455),m=t(86422),b=t(67971),E=t(16634),k=t(86673),g=t(54283),x=t(19711),A=t(23831),y=t(10503),T=t(49125),R=(T.iI,{height:10,width:10}),O=[m.tf.DATA_EXPORTER,m.tf.SENSOR],C=[m.Lq.GREY,m.Lq.PINK,m.Lq.TEAL,m.Lq.YELLOW];!function(n){n.NORTH="NORTH",n.SOUTH="SOUTH"}(o||(o={}));var D=t(73942),S=t(37391),Z=f.default.div.withConfig({displayName:"indexstyle__GraphContainerStyle",componentId:"sc-bc2ei5-0"})(["div:only-child{","}",""],S.w5,(function(n){return n.height&&"\n height: ".concat(n.height,"px;\n ")})),P=f.default.div.withConfig({displayName:"indexstyle__NodeStyle",componentId:"sc-bc2ei5-1"})(["border-radius:","px;border:1px solid transparent;min-width:fit-content;"," "," "," ",""],D.BG,(function(n){return n.selected&&"\n border-color: ".concat((n.theme.content||A.Z.content).active,";\n ")}),(function(n){return n.backgroundColor&&"\n background-color: ".concat(n.backgroundColor,";\n ")}),(function(n){return(n.isCancelled||n.disabled)&&"\n // opacity doesn\u2019t work on Safari\n border-color: ".concat((n.theme.content||A.Z.content).active,";\n border-style: dashed;\n cursor: not-allowed;\n ")}),(function(n){return n.disabled&&"\n &:hover {\n cursor: not-allowed;\n }\n "})),_=f.default.div.withConfig({displayName:"indexstyle__RuntimeStyle",componentId:"sc-bc2ei5-2"})(["margin-right:","px;padding:12px 4px;height:100%;width:50px;background:rgba(0,0,0,0.2);background-blend-mode:soft-light;"],2*T.iI),N=t(44162),L=t(90211),I=function(n){var e=n/1e3,t=4-Math.floor(e).toString().length,o=(0,L.QV)(e,t>=0?t:0),i="s";return o>1e3&&(o=(0,L.QV)(o/60,0),i="m"),"".concat(o).concat(i)},w=function(n,e){var t=n||{},i=t.id,r=t.side,u=null===e||void 0===e?void 0:e.id;return r===o.NORTH?null===i||void 0===i?void 0:i.endsWith("".concat(u,"-to")):r===o.SOUTH&&(null===i||void 0===i?void 0:i.startsWith(u))},j=t(28598);var B=function(n){var e=n.block,t=n.children,o=n.disabled,i=n.hasFailed,r=n.hideStatus,u=n.isCancelled,c=n.isInProgress,d=n.isQueued,l=n.isSuccessful,a=(n.onClick,n.runtime),s=n.selected,p=(0,v.useContext)(f.ThemeContext),h=e.color,m=e.type,R=e.uuid,D=!(c||d||i||l||u),S=l&&!(c||d),Z=i&&!(c||d),L="";return D?L="No status":S?L="Successful execution":Z?L="Failed execution":c?L="Currently executiing":u&&(L="Cancelled execution"),(0,j.jsx)(P,{backgroundColor:(0,N.qn)(m,{blockColor:h,theme:p}).accent,disabled:o,isCancelled:u,selected:s,children:(0,j.jsxs)(b.Z,{alignItems:"center",children:[a&&(0,j.jsx)(_,{backgroundColor:(0,N.qn)(m,{blockColor:h,theme:p}).accent,children:(0,j.jsx)(b.Z,{justifyContent:"center",children:(0,j.jsx)(x.ZP,{inverted:O.includes(m)||C.includes(h),xsmall:!0,children:I(a)})})}),!a&&(0,j.jsx)(k.Z,{ml:2}),!r&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(b.Z,{alignItems:"center",justifyContent:"center",style:{height:2*T.iI,width:2*T.iI},title:L,children:[c&&(0,j.jsx)(g.Z,{color:(p||A.Z).content.active,small:!0}),S&&(0,j.jsx)(y.Jr,{size:2*T.iI,success:!0}),Z&&(0,j.jsx)(y.x8,{danger:!0,size:1.5*T.iI}),D&&(0,j.jsx)(E.Z,{borderSize:1,size:1*T.iI})]}),(0,j.jsx)(k.Z,{ml:1})]}),(0,j.jsx)(b.Z,{alignItems:"center",justifyContent:"center",style:{padding:"8px 0",height:"100%"},children:(0,j.jsx)(x.ZP,{inverted:O.includes(m)||C.includes(h),monospace:!0,small:!0,children:t})})]})},R)},M=t(11135),U=t(98781),H=t(82531),F=t(66050),X=t(24224),q=t(25958),G=t(96510),z=t(87323);function Y(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 Q(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?Y(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Y(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var V=s()((0,c.Z)(l().mark((function n(){var e;return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all([t.e(4434),t.e(5987),t.e(3873)]).then(t.t.bind(t,74529,23));case 2:return e=n.sent,n.abrupt("return",e.Canvas);case 4:case"end":return n.stop()}}),n)}))),{ssr:!1,loadableGenerated:{webpack:function(){return[74529]}}}),K=s()((0,c.Z)(l().mark((function n(){var e;return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all([t.e(4434),t.e(5987),t.e(3873)]).then(t.t.bind(t,74529,23));case 2:return e=n.sent,n.abrupt("return",e.Node);case 4:case"end":return n.stop()}}),n)}))),{ssr:!1,loadableGenerated:{webpack:function(){return[74529]}}}),W=s()((0,c.Z)(l().mark((function n(){var e;return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all([t.e(4434),t.e(5987),t.e(3873)]).then(t.t.bind(t,74529,23));case 2:return e=n.sent,n.abrupt("return",e.Edge);case 4:case"end":return n.stop()}}),n)}))),{ssr:!1,loadableGenerated:{webpack:function(){return[74529]}}}),$=(s()((0,c.Z)(l().mark((function n(){var e;return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all([t.e(4434),t.e(5987),t.e(3873)]).then(t.t.bind(t,74529,23));case 2:return e=n.sent,n.abrupt("return",e.MarkerArrow);case 4:case"end":return n.stop()}}),n)}))),{ssr:!1,loadableGenerated:{webpack:function(){return[74529]}}}),s()((0,c.Z)(l().mark((function n(){var e;return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all([t.e(4434),t.e(5987),t.e(3873)]).then(t.t.bind(t,74529,23));case 2:return e=n.sent,n.abrupt("return",e.Port);case 4:case"end":return n.stop()}}),n)}))),{ssr:!1,loadableGenerated:{webpack:function(){return[74529]}}}));var J=function(n){var e=n.blockRefs,t=n.blockStatus,r=n.disabled,c=n.editingBlock,d=n.enablePorts,l=void 0!==d&&d,a=n.fetchPipeline,s=n.height,E=n.heightOffset,g=void 0===E?10*T.iI:E,A=n.noStatus,y=n.pannable,O=void 0===y||y,C=n.pipeline,D=n.runningBlocks,S=void 0===D?[]:D,P=n.selectedBlock,_=n.setEditingBlock,L=n.setErrors,I=n.setSelectedBlock,Y=n.showDynamicBlocks,J=void 0!==Y&&Y,nn=n.zoomable,en=void 0===nn||nn,tn=(0,v.useContext)(f.ThemeContext),on=(0,v.useState)([]),rn=on[0],un=on[1],cn=(0,v.useState)(!1),dn=cn[0],ln=cn[1],an=(0,v.useState)(null),sn=an[0],fn=an[1],pn=l&&dn,vn=(null===c||void 0===c?void 0:c.upstreamBlocks)||{},hn=vn.block,mn=vn.values,bn=void 0===mn?[]:mn,En=(0,v.useMemo)((function(){return bn.length}),[bn]),kn=(0,v.useMemo)((function(){var n;return(null===C||void 0===C||null===(n=C.blocks)||void 0===n?void 0:n.filter((function(n){var e=n.type;return m.tf.SCRATCHPAD!==e})))||[]}),[null===C||void 0===C?void 0:C.blocks]),gn=(0,X.HK)((0,z.cU)(kn,kn),(function(n){return n.block.uuid})),xn=(0,v.useMemo)((function(){return kn}),[kn,J]),An=(0,v.useMemo)((function(){return(0,X.HK)(xn,(function(n){return n.uuid}))}),[xn]),yn=(0,v.useMemo)((function(){return(0,X.HK)(S,(function(n){return n.uuid}))}),[S]),Tn=(0,h.Db)(H.ZP.blocks.pipelines.useUpdate(null===C||void 0===C?void 0:C.uuid,encodeURIComponent(null===hn||void 0===hn?void 0:hn.uuid)),{onSuccess:function(n){return(0,G.wD)(n,{callback:function(){_({upstreamBlocks:null}),null===a||void 0===a||a()},onErrorCallback:function(n,e){return null===L||void 0===L?void 0:L({errors:e,response:n})}})}}),Rn=(0,u.Z)(Tn,2),On=Rn[0],Cn=Rn[1].isLoading,Dn=(0,h.Db)((function(n){var e=n.fromBlock,t=n.toBlock,o=n.removeDependency;return H.ZP.blocks.pipelines.useUpdate(null===C||void 0===C?void 0:C.uuid,encodeURIComponent(t.uuid))({block:Q(Q({},t),{},{upstream_blocks:o?t.upstream_blocks.filter((function(n){return n!==e.uuid})):t.upstream_blocks.concat(e.uuid)})})}),{onSuccess:function(n){return(0,G.wD)(n,{callback:function(){null===a||void 0===a||a()},onErrorCallback:function(n,e){return null===L||void 0===L?void 0:L({errors:e,response:n})}})}}),Sn=(0,u.Z)(Dn,1)[0],Zn=(0,v.useCallback)((function(n){var t=n.type,o=n.uuid;if(null===I||void 0===I||I(n),un([]),null!==e&&void 0!==e&&e.current){var i,r=e.current["".concat(t,"s/").concat(o,".py")];null===r||void 0===r||null===(i=r.current)||void 0===i||i.scrollIntoView()}}),[e,I]),Pn=(0,v.useCallback)((function(n){un([]),_((function(e){var t=e.upstreamBlocks.values||[],o=t.findIndex((function(e){var t=e.uuid;return n.uuid===t}));return Q(Q({},e),{},{upstreamBlocks:Q(Q({},e.upstreamBlocks),{},{values:o>=0?(0,X.oM)(t,o):t.concat(n)})})}))}),[_]),_n=(0,v.useMemo)((function(){var n={};return xn.forEach((function(e){e.upstream_blocks.forEach((function(t){n[t]||(n[t]=[]),n[t].push(e)}))})),n}),[xn]),Nn=(0,v.useCallback)((function(n){var e;if(U.qL.INTEGRATION===(null===C||void 0===C?void 0:C.type)&&m.tf.TRANSFORMER!==n.type){var t,o={};if(m.t6.YAML===n.language&&(o=(0,p.Qc)(n.content)),m.tf.DATA_LOADER===n.type)e="".concat(n.uuid,": ").concat(null===(t=o)||void 0===t?void 0:t.source);else if(m.tf.DATA_EXPORTER===n.type){var i;e="".concat(n.uuid,": ").concat(null===(i=o)||void 0===i?void 0:i.destination)}}else m.tf.DBT===n.type&&m.t6.SQL===n.language&&(e=(0,q.$)(n,{fullPath:!0}));var r=(null===gn||void 0===gn?void 0:gn[n.uuid])||{},u=r.dynamic,c=r.dynamicUpstreamBlock,d=(r.reduceOutput,r.reduceOutputUpstreamBlock);return e||(e=n.uuid,u?e="[dynamic] ".concat(e):c&&!d&&(e="[dynamic child] ".concat(e))),e}),[gn,C]),Ln=(0,v.useMemo)((function(){var n=[],e=[];return xn.forEach((function(u){var c,d=Nn(u),l=u.type,a=u.upstream_blocks,s=void 0===a?[]:a,f=u.uuid,p=_n[f],v=[];p?v.push.apply(v,(0,i.Z)(p.map((function(n){return Q(Q({},R),{},{id:"".concat(f,"-").concat(n.uuid,"-from"),side:o.SOUTH})})))):l!==m.tf.DATA_EXPORTER&&v.push(Q(Q({},R),{},{id:"".concat(f,"-from"),side:o.SOUTH})),0===s.length&&l!==m.tf.DATA_LOADER&&v.push(Q(Q({},R),{},{id:"".concat(f,"-to"),side:o.NORTH})),null===s||void 0===s||s.forEach((function(n){v.push(Q(Q({},R),{},{id:"".concat(n,"-").concat(f,"-to"),side:o.NORTH})),e.push({from:n,fromPort:"".concat(n,"-").concat(f,"-from"),id:"".concat(n,"-").concat(f),to:f,toPort:"".concat(n,"-").concat(f,"-to")})})),n.push({data:{block:u},height:37,id:f,ports:v,width:d.length*T.KF+(r?0:5*T.iI)+((null===hn||void 0===hn?void 0:hn.uuid)===u.uuid?19*T.KF:0)+(null!==t&&void 0!==t&&null!==(c=t[u.uuid])&&void 0!==c&&c.runtime?50:0)})})),{edges:e,nodes:n}}),[null===hn||void 0===hn?void 0:hn.uuid,t,xn,r,Nn,_n]),In=Ln.edges,wn=Ln.nodes,jn=(0,v.useCallback)((function(n){if(A)return{};if(t){var e=t[n.uuid]||{},o=e.status,i=e.runtime;return{hasFailed:F.V.FAILED===o,isCancelled:F.V.CANCELLED===o,isInProgress:F.V.RUNNING===o,isQueued:F.V.INITIAL===o,isSuccessful:F.V.COMPLETED===o,runtime:i}}var r;return{hasFailed:m.DA.FAILED===n.status,isInProgress:yn[n.uuid],isQueued:yn[n.uuid]&&(null===(r=S[0])||void 0===r?void 0:r.uuid)!==n.uuid,isSuccessful:m.DA.EXECUTED===n.status}}),[t,A,S,yn]);return(0,j.jsxs)(j.Fragment,{children:[hn&&(0,j.jsxs)(k.Z,{my:3,px:T.cd,children:[(0,j.jsxs)(k.Z,{mb:T.cd,children:[(0,j.jsxs)(x.ZP,{children:["Select parent block(s) for ",(0,j.jsx)(x.ZP,{color:(0,N.qn)(hn.type,{blockColor:hn.color,theme:tn}).accent,inline:!0,monospace:!0,children:hn.uuid}),":"]}),(0,j.jsx)(k.Z,{mt:1,children:bn.map((function(n,e){var t,o,i=n.uuid;return(0,j.jsxs)(x.ZP,{color:(0,N.qn)(null===(t=An[i])||void 0===t?void 0:t.type,{blockColor:null===(o=An[i])||void 0===o?void 0:o.type,theme:tn}).accent,inline:!0,monospace:!0,children:[i,En>=2&&e<=En-2?(0,j.jsx)(x.ZP,{inline:!0,children:",\xa0"}):null]},i)}))})]}),(0,j.jsxs)(b.Z,{alignItems:"center",children:[(0,j.jsx)(M.ZP,{compact:!0,inline:!0,loading:Cn,onClick:function(){return On({block:Q(Q({},hn),{},{upstream_blocks:bn.map((function(n){return n.uuid}))})})},uuid:"DependencyGraph/save_parents",children:"Save dependencies"}),(0,j.jsx)(k.Z,{ml:1}),(0,j.jsx)(M.ZP,{compact:!0,inline:!0,noBackground:!0,onClick:function(){un([]),_({upstreamBlocks:null})},uuid:"DependencyGraph/cancel_save_parents",children:"Cancel"})]})]}),(0,j.jsx)(Z,{height:s-g,children:(0,j.jsx)(V,{arrow:null,disabled:r,edge:function(n){var e,t=An[n.source];return(0,j.jsx)(W,Q(Q({},n),{},{onClick:function(n,e){fn(null),un([e.id])},onRemove:function(n,e){var t=An[e.from],o=An[e.to];Sn({fromBlock:t,removeDependency:!0,toBlock:o}),un([])},removable:l&&!(null!==c&&void 0!==c&&c.upstreamBlocks),style:{stroke:null===(e=(0,N.qn)(null===t||void 0===t?void 0:t.type,{blockColor:null===t||void 0===t?void 0:t.color,theme:tn}))||void 0===e?void 0:e.accent}}))},edges:In,fit:!0,node:function(n){var e,t,o,i,u,d;return(0,j.jsx)(K,Q(Q({},n),{},{dragType:"port",linkable:!0,onClick:function(n,e){var t=e.data.block;fn(null),(null===hn||void 0===hn?void 0:hn.uuid)===t.uuid||(hn?Pn(t):Zn(t))},onEnter:function(){null!==c&&void 0!==c&&c.upstreamBlocks||ln(!0)},onLeave:function(){return ln(!1)},port:pn&&(null===sn||w(sn,n))?(0,j.jsx)($,{onDrag:function(){return ln(!0)},onDragEnd:function(){ln(!1),fn(null)},onDragStart:function(n,e,t){fn({id:null===t||void 0===t?void 0:t.id,side:null===t||void 0===t?void 0:t.side})},onEnter:function(){return ln(!0)},rx:10,ry:10,style:{fill:(0,N.qn)(null===n||void 0===n||null===(e=n.properties)||void 0===e||null===(t=e.data)||void 0===t||null===(o=t.block)||void 0===o?void 0:o.type,{blockColor:null===n||void 0===n||null===(i=n.properties)||void 0===i||null===(u=i.data)||void 0===u||null===(d=u.block)||void 0===d?void 0:d.color,theme:tn}).accent,stroke:"white",strokeWidth:"1px"}}):null,style:{fill:"transparent",stroke:"transparent",strokeWidth:0},children:function(n){var e=n.node.data.block,t=jn(e);return(0,j.jsx)("foreignObject",{height:n.height,style:{pointerEvents:"none"},width:n.width,x:0,y:0,children:(0,j.jsxs)(B,Q(Q({block:e,disabled:(null===hn||void 0===hn?void 0:hn.uuid)===e.uuid,hideStatus:r,selected:hn?!!(0,X.sE)(bn,(function(n){return n.uuid===e.uuid})):(null===P||void 0===P?void 0:P.uuid)===e.uuid},t),{},{children:[Nn(e),(null===hn||void 0===hn?void 0:hn.uuid)===e.uuid&&" (editing)"]}),e.uuid)})}}))},nodes:wn,onNodeLink:function(n,e,t,o){var i,r=An[e.id],u=An[t.id],c=(null===C||void 0===C?void 0:C.type)===U.qL.INTEGRATION&&((null===r||void 0===r?void 0:r.type)===m.tf.DATA_EXPORTER||(null===r||void 0===r?void 0:r.type)===m.tf.DATA_LOADER&&(null===u||void 0===u?void 0:u.type)===m.tf.DATA_EXPORTER);null!==r&&void 0!==r&&null!==(i=r.upstream_blocks)&&void 0!==i&&i.includes(u.uuid)||e.id===t.id||c||Sn({fromBlock:r,toBlock:u})},onNodeLinkCheck:function(n,e,t){return!In.some((function(n){return n.from===e.id&&n.to===t.id}))},pannable:O,selections:rn,zoomable:en})})]})}},66050:function(n,e,t){var o;t.d(e,{V:function(){return o}}),function(n){n.CANCELLED="cancelled",n.COMPLETED="completed",n.FAILED="failed",n.INITIAL="initial",n.RUNNING="running"}(o||(o={}))},86422:function(n,e,t){t.d(e,{$W:function(){return f},DA:function(){return s},HX:function(){return h},J8:function(){return v},Lq:function(){return l},Qj:function(){return m},Ut:function(){return g},V4:function(){return k},VZ:function(){return p},dO:function(){return a},f2:function(){return E},iZ:function(){return b},t6:function(){return u},tf:function(){return d}});var o,i,r,u,c=t(82394);!function(n){n.PYTHON="python",n.R="r",n.SQL="sql",n.YAML="yaml"}(u||(u={}));var d,l,a=(o={},(0,c.Z)(o,u.PYTHON,"PY"),(0,c.Z)(o,u.R,"R"),(0,c.Z)(o,u.SQL,"SQL"),(0,c.Z)(o,u.YAML,"YAML"),o);!function(n){n.CHART="chart",n.CUSTOM="custom",n.DATA_EXPORTER="data_exporter",n.DATA_LOADER="data_loader",n.DBT="dbt",n.EXTENSION="extension",n.SCRATCHPAD="scratchpad",n.SENSOR="sensor",n.TRANSFORMER="transformer"}(d||(d={})),function(n){n.BLUE="blue",n.GREY="grey",n.PINK="pink",n.PURPLE="purple",n.TEAL="teal",n.YELLOW="yellow"}(l||(l={}));var s,f=[d.CHART,d.CUSTOM,d.DATA_EXPORTER,d.DATA_LOADER,d.SCRATCHPAD,d.SENSOR,d.TRANSFORMER],p=[d.DATA_EXPORTER,d.DATA_LOADER],v=[d.DATA_EXPORTER,d.DATA_LOADER,d.TRANSFORMER],h=[d.DATA_EXPORTER,d.DATA_LOADER,d.DBT,d.TRANSFORMER],m=[d.CHART,d.SCRATCHPAD,d.SENSOR],b=[d.EXTENSION,d.SCRATCHPAD];!function(n){n.EXECUTED="executed",n.FAILED="failed",n.NOT_EXECUTED="not_executed",n.UPDATED="updated"}(s||(s={}));var E=[d.CUSTOM,d.DATA_EXPORTER,d.TRANSFORMER],k=(i={},(0,c.Z)(i,d.CUSTOM,"Custom"),(0,c.Z)(i,d.DATA_EXPORTER,"Data exporter"),(0,c.Z)(i,d.DATA_LOADER,"Data loader"),(0,c.Z)(i,d.EXTENSION,"Extension"),(0,c.Z)(i,d.SCRATCHPAD,"Scratchpad"),(0,c.Z)(i,d.SENSOR,"Sensor"),(0,c.Z)(i,d.TRANSFORMER,"Transformer"),i),g=[d.DATA_LOADER,d.TRANSFORMER,d.DATA_EXPORTER,d.SENSOR];r={},(0,c.Z)(r,d.DATA_EXPORTER,"DE"),(0,c.Z)(r,d.DATA_LOADER,"DL"),(0,c.Z)(r,d.SCRATCHPAD,"SP"),(0,c.Z)(r,d.SENSOR,"SR"),(0,c.Z)(r,d.TRANSFORMER,"TF")},87323:function(n,e,t){t.d(e,{cU:function(){return u}});var o=t(82684),i=t(24224);function r(n,e){return function(n,e,t){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{includeAllNodes:!1},r=(0,i.HK)(t,(function(n){return n.uuid})),u=(o||{}).includeAllNodes,c=[];function d(t){if(t){var o=(t[e]||[]).reduce((function(e,t){return n.uuid===t?e:e.concat(r[t])}),[]);(0===o.length||u&&n.uuid!==t.uuid)&&c.push(t),o.forEach((function(n){d(n)}))}}return d(n),c}(n,"upstream_blocks",e,{includeAllNodes:!0})}function u(n,e){return(0,o.useMemo)((function(){return n.map((function(n){var t=function(n,e){var t=r(n,e);return{dynamicUpstreamBlock:t.find((function(e){var t=e.configuration,o=e.uuid;return(null===t||void 0===t?void 0:t.dynamic)&&o!==(null===n||void 0===n?void 0:n.uuid)})),reduceOutputUpstreamBlock:t.find((function(e){var t=e.configuration,o=e.uuid;return(null===t||void 0===t?void 0:t.reduce_output)&&o!==(null===n||void 0===n?void 0:n.uuid)}))}}(n,e),o=t.dynamicUpstreamBlock,i=t.reduceOutputUpstreamBlock,u=(n||{}).configuration||{};return{block:n,dynamic:!!u.dynamic,dynamicUpstreamBlock:o,reduceOutput:!!u.reduce_output,reduceOutputUpstreamBlock:i}}))}),[e,null===e||void 0===e?void 0:e.map((function(n){var e=n.configuration;return null===e||void 0===e?void 0:e.dynamic})),null===e||void 0===e?void 0:e.map((function(n){var e=n.configuration;return null===e||void 0===e?void 0:e.reduce_output})),null===e||void 0===e?void 0:e.map((function(n){return n.upstream_blocks}))])}},25958:function(n,e,t){function o(n,e){var t,o=null===e||void 0===e?void 0:e.fullPath,i=null===n||void 0===n||null===(t=n.configuration)||void 0===t?void 0:t.file_path;if(o)return null===n||void 0===n?void 0:n.uuid;if(i){var r=i.split("/"),u=r[r.length-1].split(".");return u.pop(),u.join(".")}}t.d(e,{$:function(){return o}})}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8180],{45838:function(n,e,t){t.d(e,{GZ:function(){return u},Vq:function(){return d},cE:function(){return p},cl:function(){return l},kA:function(){return a}});var o=t(9518),r=t(23831),i=t(37391),c=t(49125),l=o.default.div.withConfig({displayName:"indexstyle__TableContainerStyle",componentId:"sc-1wzfyed-0"})(["position:relative;overflow:auto;"," "," "," "," ",""],i.w5,(function(n){return n.includePadding&&"\n padding: ".concat(2*c.iI,"px;\n ")}),(function(n){return n.maxHeight&&"\n max-height: ".concat(n.maxHeight,";\n ")}),(function(n){return n.minHeight&&"\n min-height: ".concat(n.minHeight,"px;\n ")}),(function(n){return n.overflowVisible&&"\n overflow: visible;\n "})),a=o.default.table.withConfig({displayName:"indexstyle__TableStyle",componentId:"sc-1wzfyed-1"})(["contain:size;width:100%;",""],(function(n){return(n.columnBorders||n.borderCollapseSeparate)&&"\n border-collapse: separate;\n "})),d=o.default.tr.withConfig({displayName:"indexstyle__TableRowStyle",componentId:"sc-1wzfyed-2"})([""," ",""],(function(n){return n.highlightOnHover&&"\n &:hover {\n background: ".concat((n.theme.interactive||r.Z.interactive).rowHoverBackground,";\n }\n ")}),(function(n){return!n.noHover&&"\n &:hover {\n background: ".concat((n.theme.interactive||r.Z.interactive).rowHoverBackground,";\n cursor: pointer;\n }\n ")})),s=(0,o.css)(["text-overflow:ellipsis;white-space:nowrap;"," "," "," "," "," ",""],(function(n){return!n.alignTop&&"\n vertical-align: middle;\n "}),(function(n){return n.alignTop&&"\n vertical-align: top;\n "}),(function(n){return!n.noBorder&&"\n border-bottom: 1px solid ".concat((n.theme.borders||r.Z.borders).light,";\n ")}),(function(n){return n.compact&&"\n padding: ".concat(c.iI/2,"px ").concat(c.iI,"px;\n ")}),(function(n){return!n.compact&&"\n padding: ".concat(c.iI,"px ").concat(2*c.iI,"px;\n ")}),(function(n){return n.maxWidth&&"\n max-width: ".concat(n.maxWidth,";\n ")})),u=o.default.th.withConfig({displayName:"indexstyle__TableHeadStyle",componentId:"sc-1wzfyed-3"})([""," "," "," ",""],s,(function(n){return n.columnBorders&&"\n border: 1px solid ".concat((n.theme.borders||r.Z.borders).light,";\n border-right: none;\n ")}),(function(n){return n.columnBorders&&n.last&&"\n border-right: 1px solid ".concat((n.theme.borders||r.Z.borders).light,";\n ")}),(function(n){return n.sticky&&"\n background-color: ".concat((n.theme||r.Z).background.panel,";\n border-bottom: 1px solid ").concat((n.theme.borders||r.Z.borders).medium,";\n z-index: 2;\n position: sticky;\n top: 0;\n\n &:first-child {\n left: 0;\n z-index: 2;\n }\n ")})),p=o.default.td.withConfig({displayName:"indexstyle__TableDataStyle",componentId:"sc-1wzfyed-4"})([""," "," "," "," "," "," ",""],s,(function(n){return n.rowVerticalPadding&&"\n padding-top: ".concat(n.rowVerticalPadding,"px;\n padding-bottom: ").concat(n.rowVerticalPadding,"px;\n ")}),(function(n){return n.columnBorders&&"\n border-left: 1px solid ".concat((n.theme.borders||r.Z.borders).light,";\n ")}),(function(n){return n.columnBorders&&n.last&&"\n border-right: 1px solid ".concat((n.theme.borders||r.Z.borders).light,";\n ")}),(function(n){return n.stickyFirstColumn&&"\n background-color: ".concat((n.theme||r.Z).background.panel,";\n z-index: 1;\n position: sticky;\n left: 0;\n ")}),(function(n){return n.selected&&"\n background-color: ".concat((n.theme.interactive||r.Z.interactive).activeBorder,";\n ")}),(function(n){return n.wrapColumns&&"\n white-space: break-spaces;\n "}))},58180:function(n,e,t){t.d(e,{Z:function(){return W}});var o=t(75582),r=t(82394),i=t(12691),c=t.n(i),l=t(82684),a=t(26304),d=t(9518),s=t(16910),u=t(93461),p=t(67971),h=t(86673),f=t(19711),g=t(23831),b=t(10503),m=t(73942),v=t(37391),x=t(10919),w=t(49125),y=t(90880),j=t(28598),k=["beforeTitleElement","children","contentOverflowVisible","first","hideScrollbar","highlighted","last","maxHeight","noBackground","noPaddingContent","onClick","onEntered","onExited","singlePanel","title","titleXPadding","visible","visibleCount","visibleHighlightDisabled"];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 P(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 C=d.default.div.withConfig({displayName:"AccordionPanel__AccordionPanelStyle",componentId:"sc-sf242a-0"})([".accordion-panel-chevron-down-exit-done{transform:rotate(0deg);transition:all 200ms;}.accordion-panel-chevron-down-enter-active{transform:rotate(180deg);transition:all 200ms;}.accordion-panel-chevron-down-enter-done,.accordion-panel-chevron-down-enter-done-visible{transform:rotate(180deg);transition:all 300ms;}.accordion-panel-chevron-down-exit{transform:rotate(0deg);transition:all 300ms;}.accordion-panel-content-enter{display:block;max-height:0px;overflow:hidden;transition:max-height 400ms ease-in-out;}.accordion-panel-content-enter-active{max-height:100vh;","}.accordion-panel-content-enter-done{display:block;}.accordion-panel-content-exit{display:block;max-height:100vh;"," overflow:hidden;}.accordion-panel-content-exit-active{max-height:0px;transition:max-height 300ms cubic-bezier(0,1,0,1);}.accordion-panel-content-exit-done{display:none;}"],(function(n){return n.maxHeight&&"\n max-height: ".concat(n.maxHeight,"px;\n ")}),(function(n){return n.maxHeight&&"\n max-height: ".concat(n.maxHeight,"px;\n ")})),Z=d.default.a.withConfig({displayName:"AccordionPanel__TitleStyle",componentId:"sc-sf242a-1"})([""," display:block;position:relative;padding:","px ","px;z-index:1;"," "," "," "," "," ",""],x.R,2*w.iI,2*w.iI,(function(n){return"\n &:hover,\n &:focus {\n outline: none;\n }\n ".concat((0,y.Kl)(n),"\n\n background-color: ").concat((n.theme.background||g.Z.background).table,";\n\n &:hover {\n background-color: ").concat((n.theme||g.Z).background.page,";\n }\n\n &:active {\n background-color: ").concat((n.theme||g.Z).background.page,";\n }\n ")}),(function(n){return n.visible&&"\n border-bottom: 1px solid ".concat((n.theme||g.Z).borders.medium2,";\n ")}),(function(n){return!n.first&&n.visible&&"\n border-top: 1px solid ".concat((n.theme||g.Z).borders.medium2,";\n ")}),(function(n){return n.first&&"\n border-top-left-radius: ".concat(m.n_,"px;\n border-top-right-radius: ").concat(m.n_,"px;\n ")}),(function(n){return(n.last||n.singlePanel)&&!n.visible&&"\n border-bottom-left-radius: ".concat(m.n_,"px;\n border-bottom-right-radius: ").concat(m.n_,"px;\n ")}),(function(n){return n.titleXPadding&&"\n padding-left: ".concat(n.titleXPadding,"px;\n padding-right: ").concat(n.titleXPadding,"px;\n ")})),I=d.default.div.withConfig({displayName:"AccordionPanel__ContentStyle",componentId:"sc-sf242a-2"})(["padding-left:","px;padding-right:","px;"," "," "," "," "," "," ",""],2*w.iI,2*w.iI,v.w5,(function(n){return n.hideScrollbar&&"\n ::-webkit-scrollbar {\n display: none;\n }\n "}),(function(n){return!n.visible&&"\n display: none;\n "}),(function(n){return!n.contentOverflowVisible&&"\n overflow-y: auto;\n "}),(function(n){return n.contentOverflowVisible&&"\n overflow-y: visible;\n "}),(function(n){return n.maxHeight&&"\n max-height: ".concat(n.maxHeight,"px;\n ")}),(function(n){return n.noPaddingContent&&"\n padding: 0;\n "})),_=d.default.div.withConfig({displayName:"AccordionPanel__ContentInnerStyle",componentId:"sc-sf242a-3"})(["padding-bottom:","px;padding-top:","px;",""],2*w.iI,2*w.iI,(function(n){return n.noPaddingContent&&"\n padding: 0;\n "})),H=function(n,e){var t=n.beforeTitleElement,o=n.children,r=n.contentOverflowVisible,i=n.first,c=n.hideScrollbar,l=n.highlighted,d=n.last,g=n.maxHeight,m=n.noBackground,v=n.noPaddingContent,x=n.onClick,y=n.onEntered,O=n.onExited,H=n.singlePanel,S=n.title,B=n.titleXPadding,D=n.visible,E=n.visibleCount,N=n.visibleHighlightDisabled,A=(0,a.Z)(n,k);return(0,j.jsxs)(C,P(P({},A),{},{maxHeight:g,children:[(0,j.jsx)(Z,{first:i,href:"#",last:d,noHoverUnderline:!0,onClick:function(n){n.preventDefault(),x&&x(n)},onKeyPress:function(n){" "===n.key&&x&&x(n)},singlePanel:H,titleXPadding:B,visible:D&&!N,children:(0,j.jsxs)(p.Z,{alignItems:"center",children:[(0,j.jsx)(h.Z,{mr:1,children:(0,j.jsxs)(p.Z,{alignItems:"center",children:[t,t&&(0,j.jsx)(h.Z,{ml:1}),(0,j.jsx)(f.ZP,{bold:!0,default:!D,large:!0,wind:l,children:S})]})}),(0,j.jsx)(s.Z,{classNames:"accordion-panel-chevron-down",in:D,timeout:400,children:(0,j.jsx)(u.Z,{className:D&&0===E&&"accordion-panel-chevron-down-enter-done-visible",children:(0,j.jsx)(b._M,{default:!0,size:2*w.iI})})})]})}),(0,j.jsx)(s.Z,{classNames:"accordion-panel-content",in:D,onEntered:function(n){return y&&y(n)},onExited:function(n){return O&&O(n)},timeout:300,children:(0,j.jsx)(I,{contentOverflowVisible:r,hideScrollbar:c,maxHeight:g,noBackground:m,noPaddingContent:v,visible:D,children:(0,j.jsx)(_,{noPaddingContent:v,ref:e,children:o})})})]}))},S=l.forwardRef(H),B=t(34744),D=["activeItemIndex","children","onClick","showDividers","visibleMapping","visibleMappingForced"];function E(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 N(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?E(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):E(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var A=d.default.div.withConfig({displayName:"Accordion__AccordionStyle",componentId:"sc-1xr4nou-0"})(["border-radius:","px;overflow:hidden;border-width:","px;border-style:",";"," "," ",""],m.n_,m.YF,m.M8,(function(n){return"\n background-color: ".concat((n.theme.background||g.Z.background).content,";\n box-shadow: ").concat((n.theme||g.Z).shadow.frame,";\n ")}),(function(n){return!n.highlighted&&"\n border-color: ".concat((n.theme||g.Z).background.panel,";\n ")}),(function(n){return n.highlighted&&"\n border-color: ".concat((n.theme||g.Z).brand.wind400,";\n ")})),M=d.default.div.withConfig({displayName:"Accordion__AccordionPanelContainerStyle",componentId:"sc-1xr4nou-1"})([""]),V=function(n){var e=n.activeItemIndex,t=n.children,o=n.onClick,i=n.showDividers,c=n.visibleMapping,d=n.visibleMappingForced,s=(0,a.Z)(n,D),u=(0,l.useState)(c||{}),p=u[0],h=u[1],f=(0,l.useState)({}),g=f[0],b=f[1],m=N(N({},p),d);return(0,j.jsx)(A,N(N({},s),{},{children:l.Children.map(t,(function(n,c){var a=l.Children.count(t),d=c===a-1,u=m[c];return(0,j.jsxs)("div",{children:[(0,j.jsx)(M,{index:c,showDividers:i,children:l.cloneElement(n,N(N({},s),{},{first:0===c,last:d,onClick:function(){var n;b(N(N({},g),{},(0,r.Z)({},c,g[c]?g[c]+1:1))),n=N(N({},m),{},(0,r.Z)({},c,!u)),h(n),o&&o(n)},singlePanel:1===a,visible:u,visibleCount:g[c]||0,visibleHighlightDisabled:"undefined"!==typeof e&&c!==e}))}),i&&(0,j.jsx)(B.Z,{})]},c)}))}))},z=t(46261),T=t(45838),R=t(90211);function F(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 X(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 W=function(n){var e=n.alignTop,t=n.borderCollapseSeparate,r=n.buildLinkProps,i=n.buildRowProps,a=n.columnBorders,d=n.columnFlex,s=n.columnMaxWidth,u=n.columns,g=void 0===u?[]:u,b=n.compact,m=n.grouping,v=n.highlightRowOnHover,w=n.isSelectedRow,y=n.noBorder,k=n.noHeader,O=n.onClickRow,P=n.onDoubleClickRow,C=n.rows,Z=n.rowVerticalPadding,I=n.stickyFirstColumn,_=n.stickyHeader,H=n.uuid,B=n.wrapColumns,D=(0,l.useMemo)((function(){return d.reduce((function(n,e){return n+(e||0)}),0)}),[d]),E=(0,l.useCallback)((function(n){if(d[n]){var e=Math.round(d[n]/D*100);return"".concat(e,"%")}return null}),[d,D]),N=(0,l.useMemo)((function(){return null===C||void 0===C?void 0:C.map((function(n,t){var o,d=null===r||void 0===r?void 0:r(t),u=(null===i||void 0===i?void 0:i(t))||{renderCell:null,renderRow:null},p=u.renderCell,h=u.renderRow,f=[];if(n.forEach((function(o,r){var i;p&&(i=p(o,r)),i||(i=(0,j.jsx)(T.cE,{alignTop:e,columnBorders:a,compact:b,last:r===n.length-1,maxWidth:null===s||void 0===s?void 0:s(r),noBorder:y,rowVerticalPadding:Z,selected:null===w||void 0===w?void 0:w(t),stickyFirstColumn:I&&0===r,width:E(r),wrapColumns:B,children:o},"".concat(H,"-row-").concat(t,"-cell-").concat(r))),f.push(i)})),h)o=h(f);else{o=(0,j.jsx)(T.Vq,{highlightOnHover:v,noHover:!(d||O),onClick:O?function(n){return function(n,e){1===(null===e||void 0===e?void 0:e.detail)?O(n):P&&2===(null===e||void 0===e?void 0:e.detail)&&P(n)}(t,n)}:null,children:f},"".concat(H,"-row-").concat(t))}return d?(0,l.createElement)(c(),X(X({},d),{},{key:"".concat(H,"-row-link-").concat(t),passHref:!0}),(0,j.jsx)(x.Z,{fullWidth:!0,noHoverUnderline:!0,noOutline:!0,style:{display:"table-row-group"},verticalAlignContent:!0,children:o})):o}))}),[e,r,E,a,s,b,i,v,w,y,O,P,Z,C,I,H,B]),A=(0,l.useMemo)((function(){return(0,j.jsx)(T.Vq,{noHover:!0,children:null===g||void 0===g?void 0:g.map((function(n,e){return(0,j.jsx)(T.GZ,{columnBorders:a,compact:b,last:e===g.length-1,noBorder:y,sticky:_,children:(0,j.jsxs)(p.Z,{alignItems:"center",justifyContent:n.center?"center":"flex-start",children:[(0,j.jsx)(f.ZP,{bold:!0,leftAligned:!0,monospace:!0,muted:!0,children:n.label?n.label():n.uuid}),n.tooltipMessage&&(0,j.jsx)(h.Z,{ml:"4px",children:(0,j.jsx)(z.Z,{appearBefore:!0,label:(0,j.jsx)(f.ZP,{leftAligned:!0,children:n.tooltipMessage}),lightBackground:!0,primary:!0})})]})},"".concat(H,"-col-").concat(n.uuid,"-").concat(e))}))})}),[a,g,b,y,_,H]);return(0,l.useMemo)((function(){var n;if(m&&null!==m&&void 0!==m&&m.column&&(null===m||void 0===m||null===(n=m.values)||void 0===n?void 0:n.length)>0){var e=m.columnIndex,r=m.values,i=null===N||void 0===N?void 0:N.reduce((function(n,t){var o,i,c,l,a,d,s=null===t||void 0===t||null===(o=t.props)||void 0===o||null===(i=o.children)||void 0===i||null===(c=i[e])||void 0===c||null===(l=c.props)||void 0===l||null===(a=l.children)||void 0===a||null===(d=a.props)||void 0===d?void 0:d.children,u=(0,R.kC)(s);return r.includes(s)&&(n[u]=(n[u]||[]).concat(t)),n}),{}),c=Object.entries(i).sort((function(n,e){return n[0].localeCompare(e[0])}));return(0,j.jsx)(j.Fragment,{children:c.map((function(n,e){var r=(0,o.Z)(n,2),i=r[0],l=r[1];return(0,j.jsx)(h.Z,{mb:e===c.length-1?0:2,children:(0,j.jsx)(V,{visibleMapping:{0:!0},children:(0,j.jsx)(S,{noPaddingContent:!0,title:i,children:(0,j.jsx)(T.kA,{borderCollapseSeparate:t,columnBorders:a,children:(0,j.jsxs)(j.Fragment,{children:[(null===g||void 0===g?void 0:g.length)>=1&&!k&&A,l]})})})})},i)}))})}return(0,j.jsxs)(T.kA,{borderCollapseSeparate:t,columnBorders:a,children:[(null===g||void 0===g?void 0:g.length)>=1&&!k&&A,N]})}),[t,a,null===g||void 0===g?void 0:g.length,m,A,k,N])}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[839],{70543:function(e,n,t){t.d(n,{b:function(){return r}});var r="edit"},58122:function(e,n,t){t.d(n,{CL:function(){return f},FS:function(){return b},JZ:function(){return m},e7:function(){return g},v0:function(){return p},wx:function(){return h}});var r=t(75582),o=t(82394),c=t(43313),i=t(93348),a=t(1286),l=t(90211),s=t(84779);function u(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function d(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?u(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function p(e){var n=e.statistics,t=Object.keys(n),r=Array(c.Dy.length).fill(0);return 0===t.length?null:(t.forEach((function(e){if(c.Dy.includes(e)){var t=c.CC[e],o=n[e],i=o,a=!1,l=[2,3],u=c.Ub[e],d=c.oH[e],p=c.OD[e];if(c.y_.includes(e))a=!0,l=[2,1,2];else if(e in c.Sq){o=(0,s.Jw)(o,0);var f=c.Sq[e];i=n[f]}var b={columnFlexNumbers:l,name:t,progress:a,rate:i,successDirection:d,warning:p};c.y_.includes(e)||(b.value=o),r[u]=b}})),r)}function f(e){var n=e.columnTypes,t=void 0===n?{}:n,r=e.statistics,o=Object.keys(r);if(0===o.length)return null;var i=Object.values(t),s=i.length,u=[];u.push({name:"Column count",successDirection:c.oH.column_count,value:(0,l.x6)(s)}),o.forEach((function(e){if(c.Zu.includes(e)){var n=c.CC[e],t=r[e],o=c.OD[e];u.push({name:n,successDirection:c.oH[e],value:(0,l.x6)(t),warning:o})}}));var d=(0,a.QO)(i),p=d.countCategory,f=d.countDatetime,b=d.countNumerical;return u.push({name:"Categorical Features",rate:p/s,value:(0,l.x6)(p)},{name:"Numerical Features",rate:b/s,value:(0,l.x6)(b)},{name:"Datetime Features",rate:f/s,value:(0,l.x6)(f)}),u}function b(e){return"string"===typeof e?e:JSON.stringify(e)}function h(e,n){var t,r;return null===e||void 0===e||null===(t=e.find((function(e){var t=e.block;return n(t)})))||void 0===t||null===(r=t.variables)||void 0===r?void 0:r.map((function(e){var n=e.value;return d(d({},e),{},{value:b(n)})}))}function m(e,n){return n===i.Xm.TIME?e.push({uuid:"execution_date",value:"<run datetime>"}):n===i.Xm.EVENT&&e.push({uuid:"event",value:"<trigger event>"}),e}function g(e){return e?Object.entries(e).reduce((function(e,n){var t=(0,r.Z)(n,2),c=t[0],i=t[1],a=i;try{a=JSON.parse(i)}catch(l){}return d(d({},e),{},(0,o.Z)({},c,a))}),{}):e}},22673:function(e,n,t){var r=t(82684),o=t(73199),c=t.n(o),i=t(71593),a=t(9518),l=t(65292),s=t(23831),u=t(2005),d=t(49125),p=t(28598);n.Z=function(e){var n=e.language,t=e.maxWidth,o=e.showLineNumbers,f=e.small,b=e.source,h=e.wrapLines,m=(0,r.useContext)(a.ThemeContext);return(0,p.jsx)(c(),{source:b,renderers:{code:function(e){var r=e.value;return(0,p.jsx)(i.Z,{customStyle:{backgroundColor:(m.background||s.Z.background).popup,border:"none",borderRadius:"none",boxShadow:"none",fontFamily:u.Vp,fontSize:f?12:14,marginBottom:0,marginTop:0,paddingBottom:2*d.iI,paddingTop:2*d.iI,maxWidth:t},lineNumberStyle:{color:(m.content||s.Z.content).muted},language:n,showLineNumbers:o,style:l._4,useInlineStyles:!0,wrapLines:h,children:r})}}})}},65730:function(e,n,t){var r,o=t(82394),c=(t(82684),t(64866)),i=t(21764),a=t(67971),l=t(10919),s=t(86673),u=t(19711),d=t(46261),p=t(10503),f=t(49125),b=t(28598);function h(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function m(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?h(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):h(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}!function(e){e.LEFT="left",e.RIGHT="right"}(r||(r={})),n.Z=function(e){var n,t=e.children,o=e.copiedText,h=e.iconPosition,g=void 0===h?r.LEFT:h,v=e.inverted,x=e.linkProps,j=e.linkText,y=e.monospace,O=e.muted,w=e.small,k=e.toastMessage,C=e.withCopyIcon;return t?n=(0,b.jsx)("span",{children:t}):C&&(n=(0,b.jsx)(l.Z,m(m({href:"#",inline:!0,muted:O,preventDefault:!0,sameColorAsText:!0,small:w},x),{},{children:(0,b.jsxs)(a.Z,{alignItems:"center",children:[g===r.LEFT&&(0,b.jsx)(s.Z,{mr:j?1:0,children:(0,b.jsx)(a.Z,{alignItems:"center",children:(0,b.jsx)(p.CK,{inverted:v,muted:O,size:2*f.iI})})}),j&&(0,b.jsx)(u.ZP,{inverted:v,monospace:y,muted:O,small:w,children:j}),g===r.RIGHT&&(0,b.jsx)(s.Z,{ml:j?1:0,children:(0,b.jsx)(a.Z,{alignItems:"center",children:(0,b.jsx)(p.CK,{inverted:v,muted:O})})})]})}))),(0,b.jsx)(d.Z,{block:!0,label:"Copy",size:null,widthFitContent:!0,children:(0,b.jsx)(c.CopyToClipboard,{onCopy:function(){return i.Am.success(k||"Successfully copied to clipboard.",{position:i.Am.POSITION.BOTTOM_RIGHT,toastId:o})},text:o,children:n})})}},32316:function(e,n,t){t.d(n,{Z:function(){return h}});var r=t(82684),o=t(60328),c=t(67971),i=t(882),a=t(86673),l=t(99994),s=t(9518),u=t(49125),d=t(37391),p=s.default.div.withConfig({displayName:"indexstyle__TabsContainerStyle",componentId:"sc-segf7l-0"})(["padding-left:","px;padding-right:","px;"," "," ",""],u.cd*u.iI,u.cd*u.iI,(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.allowScroll&&"\n overflow: auto;\n "}),d.w5),f=t(66653),b=t(28598);var h=function(e){var n=e.allowScroll,t=e.contained,s=e.noPadding,d=e.onClickTab,h=e.selectedTabUUID,m=e.small,g=e.tabs,v=(0,r.useMemo)((function(){var e=g.length,n=[];return g.forEach((function(t,r){var s=t.Icon,p=t.IconSelected,g=t.label,v=t.uuid,x=v===h,j=x&&p||s,y=g?g():v,O=(0,b.jsxs)(c.Z,{alignItems:"center",children:[j&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(j,{default:!x,size:2*u.iI}),(0,b.jsx)(a.Z,{mr:1})]}),y]});r>=1&&e>=2&&n.push((0,b.jsx)("div",{style:{marginLeft:1.5*u.iI}},"spacing-".concat(v))),x?n.push((0,b.jsx)(i.Z,{backgroundGradient:l.yr,backgroundPanel:!0,borderLess:!0,borderWidth:2,compact:m,onClick:function(e){(0,f.j)(e),d(t)},paddingUnitsHorizontal:2,paddingUnitsVertical:1.25,small:m,children:O},v)):n.push((0,b.jsx)("div",{style:{padding:4},children:(0,b.jsx)(o.Z,{borderLess:!0,compact:m,default:!0,onClick:function(e){(0,f.j)(e),d(t)},outline:!0,small:m,children:O},"button-tab-".concat(v))}))})),n}),[d,h,g]),x=(0,b.jsx)(c.Z,{alignItems:"center",children:v});return t?x:(0,b.jsx)(p,{allowScroll:n,noPadding:s,children:x})}},38341:function(e,n,t){var r=t(21831),o=t(82394),c=t(26304),i=(t(82684),t(9518)),a=t(67971),l=t(86673),s=t(19711),u=t(23831),d=t(10503),p=t(73942),f=t(49125),b=t(28598),h=["beforeIcon","checked","disabled","errorMessage","label","labelDescription","large","meta","monospace","onClick","required","small","warning","xsmall"];function m(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function g(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?m(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var v=i.default.div.withConfig({displayName:"Checkbox__CheckboxContainer",componentId:"sc-ujqx42-0"})(["display:inline-block;vertical-align:middle;cursor:pointer;"]),x=i.default.div.withConfig({displayName:"Checkbox__ErrorContainer",componentId:"sc-ujqx42-1"})(["margin-top:4px;"]),j=i.default.input.withConfig({displayName:"Checkbox__HiddenCheckbox",componentId:"sc-ujqx42-2"})(["border:0;clip:rect(0 0 0 0);clippath:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;",""],(function(e){return e.notClickable&&"\n background-color: ".concat((e.theme.content||u.Z.content).disabled,"\n border-color: ").concat((e.theme.content||u.Z.content).disabled,"\n\n &:hover {\n cursor: not-allowed;\n }\n ")})),y=i.default.div.withConfig({displayName:"Checkbox__StyledCheckbox",componentId:"sc-ujqx42-3"})(["border-radius:","px;height:","px;transition:all 150ms;width:","px;svg{position:relative;visibility:",";}"," "," "," "," input[disabled]{cursor:default;}"," ",""],.5*f.iI,2*f.iI,2*f.iI,(function(e){return e.checked||e.required?"visible":"hidden"}),(function(e){return e.large&&"\n svg {\n left: -4px;\n top: -8px;\n }\n "}),(function(e){return!e.checked&&"\n background-color: ".concat((e.theme.background||u.Z.background).popup,";\n border: ").concat(p.PV,"px ").concat(p.M8," ").concat((e.theme.content||u.Z.content).muted,";\n ")}),(function(e){return e.checked&&"\n background-color: ".concat((e.theme.interactive||u.Z.interactive).checked,";\n border: ").concat(p.YF,"px ").concat(p.M8," transparent;\n ")}),(function(e){return e.required&&"\n background-color: ".concat((e.theme.content||u.Z.content).disabled,";\n border: ").concat(p.YF,"px ").concat(p.M8," transparent;\n ")}),(function(e){return e.disabled&&"\n background-color: ".concat((e.theme.content||u.Z.content).disabled,";\n border-color: ").concat((e.theme.content||u.Z.content).disabled,";\n\n &:hover {\n cursor: not-allowed;\n }\n ")}),(function(e){return e.warning&&"\n background-color: ".concat((e.theme.accent||u.Z.accent).warning,";\n border-color: ").concat((e.theme.interactive||u.Z.interactive).defaultBorder,"\n ")})),O=i.default.label.withConfig({displayName:"Checkbox__LabelStyle",componentId:"sc-ujqx42-4"})(["-ms-flex-direction:column;align-items:center;display:flex;flex-direction:column;flex-direction:row;&:hover{cursor:pointer;}"]);n.Z=function(e){var n=e.beforeIcon,t=e.checked,o=e.disabled,i=e.errorMessage,u=e.label,p=e.labelDescription,m=e.large,w=e.meta,k=e.monospace,C=void 0!==k&&k,Z=e.onClick,I=e.required,P=e.small,D=void 0!==P&&P,S=e.warning,T=e.xsmall,_=void 0!==T&&T,E=(0,c.Z)(e,h),N=S||!!(i||w&&w.touched&&w.error);return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(O,{onClick:function(e){e.preventDefault(),Z&&Z(e)},children:[(0,b.jsxs)(v,{children:[(0,b.jsx)(j,g(g({},E),{},{disabled:o?"disabled":void 0,notClickable:o})),(0,b.jsx)(y,{checked:t,disabled:o,large:m,required:I,warning:N,children:(0,b.jsx)(d.Jr,{size:f.iI*(m?3:2)})})]}),n&&(0,b.jsx)(l.Z,{ml:1,children:(0,b.jsx)(a.Z,{children:n})}),u&&(0,b.jsxs)(l.Z,{pl:1,children:["string"===typeof u&&(0,b.jsx)(s.ZP,{disabled:o,lineThrough:o,monospace:C,small:D,xsmall:_,children:u}),"string"!==typeof u&&u,p&&(0,b.jsx)(s.ZP,{muted:!0,small:!0,children:p})]})]}),(i||w&&w.touched&&w.error)&&(0,b.jsx)(x,{children:(0,b.jsx)(s.ZP,{small:!0,warning:!0,children:i?(0,r.Z)(i):w.error})})]})}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9386],{15270:function(e,n,t){t.d(n,{Z:function(){return j}});var r=t(82684),i=t(34376),o=t(61519),d=t(57639),l=t(882),c=t(11135),a=t(28598);var s=function(e){var n=e.size;return(0,a.jsxs)("svg",{width:n,height:n,viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.86364 2.5H4.13636C3.68449 2.5 3.31818 2.94772 3.31818 3.5V7.5C3.31818 8.05228 3.68449 8.5 4.13636 8.5H9.86364C10.3155 8.5 10.6818 8.05228 10.6818 7.5V3.5C10.6818 2.94772 10.3155 2.5 9.86364 2.5ZM4.13636 1.5C3.23263 1.5 2.5 2.39543 2.5 3.5V7.5C2.5 8.60457 3.23263 9.5 4.13636 9.5H5.5V16.1667V16.5H4.13636C3.23263 16.5 2.5 17.3954 2.5 18.5V22.5C2.5 23.6046 3.23263 24.5 4.13636 24.5H9.86364C10.7674 24.5 11.5 23.6046 11.5 22.5V18.5C11.5 17.3954 10.7674 16.5 9.86364 16.5H6.5V16.1667C6.5 14.9394 7.61929 13.9444 9 13.9444H16C17.933 13.9444 19.5 12.5516 19.5 10.8333V9.5H21.8636C22.7674 9.5 23.5 8.60457 23.5 7.5V3.5C23.5 2.39543 22.7674 1.5 21.8636 1.5H16.1364C15.2326 1.5 14.5 2.39543 14.5 3.5V7.5C14.5 8.60457 15.2326 9.5 16.1364 9.5H18.5V10.8333C18.5 12.0606 17.3807 13.0556 16 13.0556H9C8.02066 13.0556 7.13526 13.4131 6.5 13.9893V9.5H9.86364C10.7674 9.5 11.5 8.60457 11.5 7.5V3.5C11.5 2.39543 10.7674 1.5 9.86364 1.5H4.13636ZM9.86364 17.5H6.5H5.5H4.13636C3.68449 17.5 3.31818 17.9477 3.31818 18.5V22.5C3.31818 23.0523 3.68449 23.5 4.13636 23.5H9.86364C10.3155 23.5 10.6818 23.0523 10.6818 22.5V18.5C10.6818 17.9477 10.3155 17.5 9.86364 17.5ZM16.1364 2.5H21.8636C22.3155 2.5 22.6818 2.94772 22.6818 3.5V7.5C22.6818 8.05228 22.3155 8.5 21.8636 8.5H16.1364C15.6845 8.5 15.3182 8.05228 15.3182 7.5V3.5C15.3182 2.94772 15.6845 2.5 16.1364 2.5Z",fill:"url(#paint0_linear_2738_141228)"}),(0,a.jsx)("defs",{children:(0,a.jsxs)("linearGradient",{id:"paint0_linear_2738_141228",x1:"2.5",y1:"13",x2:"23.5",y2:"13",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,a.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})},u=t(29664);var f=function(e){var n=e.size;return(0,a.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.65256 15.8011L4.68226 20.7714C4.14193 21.3117 3.26588 21.3117 2.72556 20.7714C2.18523 20.231 2.18523 19.355 2.72556 18.8147L7.60553 13.9347C9.03 12.5102 9.91996 10.6383 10.1255 8.6343L10.3663 6.28587C10.4455 5.51385 10.7884 4.7927 11.3371 4.24393L11.9728 3.60825C13.233 2.34803 15.1222 2.10014 16.6299 2.86457L13.621 5.87349C12.7214 6.77304 12.7214 8.23149 13.621 9.13104L13.9934 9.50349C14.893 10.403 16.3514 10.403 17.251 9.50349L20.2599 6.49457C21.0243 8.00224 20.7764 9.89143 19.5162 11.1516L18.786 11.8818C18.2751 12.3928 17.6175 12.7318 16.9049 12.8515L14.634 13.2332C12.7469 13.5504 11.0056 14.448 9.65256 15.8011ZM11.0889 2.72437C12.8414 0.971949 15.5214 0.712489 17.5485 1.94599C17.9008 2.16036 18.2333 2.41982 18.5379 2.72436L14.5049 6.75738C14.0935 7.16877 14.0935 7.83577 14.5049 8.24716L14.8773 8.61961C15.2887 9.031 15.9557 9.031 16.3671 8.61961L20.4001 4.5866C20.7046 4.89114 20.9641 5.22371 21.1785 5.57599C22.412 7.60309 22.1525 10.2831 20.4001 12.0355L19.6699 12.7657C18.9751 13.4605 18.081 13.9214 17.1121 14.0842L14.8412 14.4659C13.2104 14.74 11.7057 15.5157 10.5364 16.6849L5.56614 21.6552C4.53766 22.6837 2.87016 22.6837 1.84167 21.6552C0.81319 20.6268 0.813193 18.9593 1.84168 17.9308L6.72165 13.0508C7.94285 11.8296 8.70581 10.2248 8.88201 8.50678L9.12286 6.15835C9.23136 5.10035 9.70121 4.11209 10.4533 3.36005L11.0889 2.72437ZM4.88014 19.3535C5.0754 19.1582 5.0754 18.8417 4.88014 18.6464C4.68488 18.4511 4.3683 18.4511 4.17303 18.6464L3.64631 19.1731C3.45105 19.3684 3.45105 19.685 3.64631 19.8802C3.84158 20.0755 4.15816 20.0755 4.35342 19.8802L4.88014 19.3535Z",fill:"url(#paint0_linear_7839_33197)"}),(0,a.jsx)("defs",{children:(0,a.jsxs)("linearGradient",{id:"paint0_linear_7839_33197",x1:"1.07031",y1:"11.8041",x2:"21.9428",y2:"11.8041",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,a.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})};var p=function(e){var n=e.size;return(0,a.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.5 18V6c0-1.38071 1.11929-2.5 2.5-2.5h12c1.3807 0 2.5 1.11929 2.5 2.5v12c0 1.3807-1.1193 2.5-2.5 2.5H6c-1.38071 0-2.5-1.1193-2.5-2.5zM2 18V6c0-2.20914 1.79086-4 4-4h12c2.2091 0 4 1.79086 4 4v12c0 2.2091-1.7909 4-4 4H6c-2.20914 0-4-1.7909-4-4zm9.0935-8.41432c.3235-.25876.3759-.73073.1172-1.05417-.2588-.32345-.7308-.37589-1.0542-.11713L7.03148 10.9144c-.17791.1423-.28148.3578-.28148.5856 0 .2279.10357.4433.28148.5857l3.12502 2.5c.3234.2587.7954.2063 1.0542-.1172.2587-.3234.2063-.7954-.1172-1.0541L8.70058 11.5l2.39292-1.91432zM14.5 13.25c-.4142 0-.75.3358-.75.75s.3358.75.75.75H17c.4142 0 .75-.3358.75-.75s-.3358-.75-.75-.75h-2.5z",fill:"url(#paint0_linear_1244_32583)"}),(0,a.jsxs)("defs",{children:[(0,a.jsx)("clipPath",{id:"clip0_5247_222548",children:(0,a.jsx)("rect",{width:"24",height:"24",fill:"white"})}),(0,a.jsxs)("linearGradient",{id:"paint0_linear_1244_32583",x1:"1.07031",y1:"11.8041",x2:"21.9428",y2:"11.8041",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,a.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})]})]})},h=t(86673),g=t(19711),x=t(46261),v=t(10503),m=t(72454),b=t(99994),y=t(49125),C=3*y.iI;var j=function(e){var n=e.aligned,t=e.navigationItems,j=(0,i.useRouter)().pathname,w=(0,r.useMemo)((function(){var e=[{Icon:v.rV,IconSelected:s,id:"pipelines",label:function(){return"Pipelines"},linkProps:{href:"/pipelines"}},{Icon:v.Pf,IconSelected:u.Z,id:"triggers",label:function(){return"Triggers"},linkProps:{href:"/triggers"}},{Icon:v.pd,IconSelected:o.Z,id:"pipeline-runs",label:function(){return"Pipelines runs"},linkProps:{href:"/pipeline-runs"}},{Icon:v.oI,IconSelected:p,id:"terminal",label:function(){return"Terminal"},linkProps:{href:"/terminal"}},{Icon:v.Zr,IconSelected:f,id:"settings",label:function(){return"Settings"},linkProps:{href:"/settings"}}];return(t||e).map((function(e,t){var r=e.Icon,i=e.IconSelected,o=e.id,d=e.isSelected,s=e.label,u=e.linkProps,f=e.onClick,p=d?d(j,e):!!j.match(new RegExp("^/".concat(o,"[/]*"))),v=p&&i?i:r;return(0,a.jsx)(h.Z,{mt:t>=1?y.cd:0,children:(0,a.jsxs)(x.Z,{appearBefore:"right"===n,height:5*y.iI,label:s(),size:null,widthFitContent:!0,children:[p&&i&&(0,a.jsx)(l.Z,{backgroundGradient:b.yr,backgroundPanel:!0,basic:!0,borderWidth:2,linkProps:u,onClick:f,paddingUnits:1,children:(0,a.jsx)("div",{style:{height:C,width:C},children:(0,a.jsx)(v,{muted:!0,size:C})})}),(!p||p&&!i)&&(0,a.jsx)(c.ZP,{block:!0,linkProps:u,noHoverUnderline:!0,noPadding:!0,onClick:f,primary:p,sameColorAsText:!0,uuid:"VerticalNavigation/".concat(o),children:(0,a.jsx)(m.E7,{primary:!v,children:v?(0,a.jsx)(v,{muted:!p,size:C}):(0,a.jsx)(g.ZP,{children:"Edit"})})})]})},"button-".concat(o))}))}),[n,t,j]);return(0,a.jsx)(d.Z,{children:w})}},72454:function(e,n,t){t.d(n,{E7:function(){return h},HS:function(){return p},Nk:function(){return u},k1:function(){return s},lm:function(){return f}});var r=t(9518),i=t(23831),o=t(73942),d=t(3055),l=t(49125),c=t(37391),a=t(90880),s=l.cd*l.iI+5*l.iI+l.cd*l.iI+1,u=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-ecogjt-0"})(["display:flex;flex-direction:row;height:calc(100vh - ","px);position:fixed;top:","px;width:100%;",""],d.Mz,d.Mz,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).page,";\n ")})),f=r.default.div.withConfig({displayName:"indexstyle__VerticalNavigationStyle",componentId:"sc-ecogjt-1"})(["padding:","px;"," "," ",""],l.cd*l.iI,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).panel,";\n ")}),(function(e){return e.borderLeft&&"\n border-left: 1px solid ".concat((e.theme.borders||i.Z.borders).medium,";\n ")}),(function(e){return!e.borderLeft&&"\n border-left: 1px solid ".concat((e.theme.borders||i.Z.borders).medium,";\n ")})),p=r.default.div.withConfig({displayName:"indexstyle__SubheaderStyle",componentId:"sc-ecogjt-2"})(["width:100%;padding:","px;position:sticky;top:0;z-index:2;",""],l.cd*l.iI,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).page,";\n border-bottom: 1px solid ").concat((e.theme.borders||i.Z.borders).medium,";\n ")})),h=(r.default.div.withConfig({displayName:"indexstyle__ContentStyle",componentId:"sc-ecogjt-3"})([""," overflow:auto;",""],c.w5,(function(e){return"\n height: calc(100vh - ".concat(d.Mz+(e.heightOffset||0),"px);\n ")})),r.default.div.withConfig({displayName:"indexstyle__NavigationItemStyle",componentId:"sc-ecogjt-4"})(["display:flex;align-items:center;justify-content:center;padding:","px;border-radius:","px;",""],l.iI,o.n_,(function(e){return e.primary&&"\n ".concat((0,a.eR)(),"\n background: ").concat((e.theme||i.Z).chart.backgroundPrimary,";\n border: 1px solid ").concat((e.theme||i.Z).feature.active,";\n\n &:hover {\n background-color: ").concat((e.theme||i.Z).interactive.linkSecondary,";\n }\n ")})))},49894:function(e,n,t){t.d(n,{Z:function(){return v}});var r=t(82684),i=t(60328),o=t(10919),d=t(86673),l=t(19711),c=t(10503),a=t(9518),s=t(23831),u=t(73942),f=t(49125),p=t(37391),h=a.default.div.withConfig({displayName:"indexstyle__ErrorPopupStyle",componentId:"sc-aqfw6f-0"})(["top:50%;left:50%;transform:translate(-50%,-50%);max-height:95vh;max-width:95vw;overflow:auto;padding:","px;position:fixed;z-index:9999;border-radius:","px;"," ",""],f.iI*f.cd,u.n_,(function(e){return"\n background-color: ".concat((e.theme||s.Z).background.page,";\n border: 1px solid ").concat((e.theme||s.Z).accent.negative,";\n box-shadow: ").concat((e.theme||s.Z).shadow.window,";\n ")}),p.w5),g=a.default.div.withConfig({displayName:"indexstyle__CloseButtonContainerStyle",componentId:"sc-aqfw6f-1"})(["display:flex;justify-content:flex-end;position:sticky;top:0;"]),x=t(28598);var v=function(e){var n,t,a=e.displayMessage,s=e.errors,u=e.links,f=e.onClose,p=e.response,v=(0,r.useState)(!1),m=v[0],b=v[1],y=(0,r.useState)(!1),C=y[0],j=y[1],w=(s||{}).messages,Z=(null===p||void 0===p?void 0:p.error)||{},k=Z.errors,_=Z.exception,I=Z.message,H=a,O=w;return I&&(O=I.split("\n")),_||H||null===(n=O)||void 0===n||!n[0]||(H=O[0],O=null),(0,x.jsxs)(h,{children:[(0,x.jsx)(g,{children:(0,x.jsx)(i.Z,{iconOnly:!0,noBackground:!0,noBorder:!0,noPadding:!0,onClick:f,title:"Close errors",children:(0,x.jsx)(c.x8,{})})}),(0,x.jsx)(l.ZP,{bold:!0,large:!0,children:"Error"}),H&&(0,x.jsx)(d.Z,{mt:1,children:(0,x.jsx)(l.ZP,{default:!0,children:H})}),_&&(0,x.jsx)(d.Z,{mt:1,children:(0,x.jsx)(l.ZP,{default:!0,disableWordBreak:!0,monospace:!0,children:_})}),(null===(t=O)||void 0===t?void 0:t.length)>0&&(0,x.jsxs)(d.Z,{mt:2,children:[(0,x.jsxs)(l.ZP,{bold:!0,large:!0,children:["Traceback (",(0,x.jsxs)(o.Z,{onClick:function(){return j((function(e){return!e}))},preventDefault:!0,warning:!0,children:[C?"hide":"show"," traceback"]}),")"]}),C&&(0,x.jsx)(d.Z,{mt:1,children:O.map((function(e){return(0,x.jsx)(l.ZP,{dangerouslySetInnerHTML:{__html:e.replaceAll(" ","&nbsp;")},default:!0,disableWordBreak:!0,monospace:!0},e)}))})]}),k&&(0,x.jsxs)(d.Z,{mt:2,children:[(0,x.jsxs)(l.ZP,{bold:!0,large:!0,children:["Stack trace (",(0,x.jsxs)(o.Z,{onClick:function(){return b((function(e){return!e}))},preventDefault:!0,warning:!0,children:[m?"hide":"show"," stack trace"]}),")"]}),m&&(0,x.jsx)(d.Z,{mt:1,children:k.map((function(e){return(0,x.jsx)(l.ZP,{dangerouslySetInnerHTML:{__html:e.replaceAll(" ","&nbsp;")},default:!0,disableWordBreak:!0,monospace:!0},e)}))})]}),null===u||void 0===u?void 0:u.map((function(e,n){var t=e.label,r=e.onClick;return(0,x.jsx)(d.Z,{mt:2,children:(0,x.jsx)(o.Z,{large:!0,onClick:r,underline:!0,warning:!0,children:t})},t)}))]})}},82386:function(e,n,t){t.d(n,{E$:function(){return I},MK:function(){return m},MP:function(){return Z},Md:function(){return s},OM:function(){return x},Ru:function(){return k},VW:function(){return p},W7:function(){return j},Wi:function(){return g},YJ:function(){return w},Zj:function(){return S},Zt:function(){return a},aH:function(){return P},dN:function(){return u},ff:function(){return _},l8:function(){return h},rS:function(){return O},uX:function(){return v},v7:function(){return H},ve:function(){return f}});var r=t(9518),i=t(23831),o=t(73942),d=t(3055),l=t(49125),c=t(37391),a=64*l.iI,s=3*l.cd*l.iI,u=s,f=35*l.iI,p=.5*l.iI,h=13*l.iI,g=3*l.cd*l.iI,x=6*l.iI,v=2*l.cd*3*l.iI,m=(r.default.div.withConfig({displayName:"indexstyle__HeaderStyle",componentId:"sc-1lxpneo-0"})(["position:fixed;z-index:2;"," "," ",""],(function(e){return"\n border-bottom: 1px solid ".concat((e.theme.monotone||i.Z.monotone).grey200,";\n ")}),(function(e){return!e.beforeVisible&&"\n width: 100%;\n "}),(function(e){return e.beforeVisible&&"\n left: ".concat(f,"px;\n width: calc(100% - ").concat(f,"px);\n ")})),r.default.div.withConfig({displayName:"indexstyle__NewHeaderStyle",componentId:"sc-1lxpneo-1"})(["height:","px;position:fixed;top:0;width:100%;z-index:4;"],d.Mz)),b=(r.default.div.withConfig({displayName:"indexstyle__TabStyle",componentId:"sc-1lxpneo-2"})(["border-top-left-radius:","px;border-top-right-radius:","px;padding:","px ","px;position:relative;top:1px;"," "," ",""],o.n_,o.n_,1*l.iI,2*l.iI,(function(e){return"\n border-left: 1px solid ".concat((e.theme.monotone||i.Z.monotone).grey200,";\n border-right: 1px solid ").concat((e.theme.monotone||i.Z.monotone).grey200,";\n border-top: 1px solid ").concat((e.theme.monotone||i.Z.monotone).grey200,";\n ")}),(function(e){return!e.first&&"\n margin-left: ".concat(1*l.iI,"px;\n ")}),(function(e){return e.selected&&"\n border-bottom: 1px solid ".concat((e.theme.monotone||i.Z.monotone).white,";\n ")})),(0,r.css)(["position:fixed;z-index:2;",""],(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).panel,";\n height: calc(100% - ").concat("undefined"===typeof e.heightOffset?v:e.heightOffset,"px);\n top: ").concat("undefined"===typeof e.heightOffset?v:e.heightOffset,"px;\n ")}))),y=(0,r.css)([""," height:100%;overflow:auto;position:relative;z-index:2;"],c.w5),C=(0,r.css)(["height:calc(100% + ","px);position:absolute;top:-","px;width:","px;z-index:6;&:hover{","}"," ",""],g,g,p,(function(e){return!e.disabled&&"\n border-color: ".concat((e.theme.text||i.Z.text).fileBrowser," !important;\n ")}),(function(e){return!e.disabled&&"\n cursor: col-resize;\n "}),(function(e){return e.active&&!e.disabled&&"\n border-color: ".concat((e.theme.text||i.Z.text).fileBrowser," !important;\n ")})),j=r.default.div.withConfig({displayName:"indexstyle__AsideHeaderStyle",componentId:"sc-1lxpneo-3"})(["border-bottom:1px solid transparent;height:","px;position:fixed;top:","px;z-index:4;"," "," ",""],g,g,(0,c.y$)(),(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).panel,";\n ")}),(function(e){return!e.visible&&"\n border-left: 1px solid transparent;\n border-right: 1px solid transparent;\n border-color: ".concat((e.theme.borders||i.Z.borders).medium," !important;\n ")})),w=r.default.div.withConfig({displayName:"indexstyle__AsideSubheaderStyle",componentId:"sc-1lxpneo-4"})(["border-bottom:1px solid transparent;height:","px;overflow-x:auto;"," "," ",""],g,(0,c.y$)(),(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).table,";\n ")}),(function(e){return!e.visible&&"\n border-color: ".concat((e.theme.borders||i.Z.borders).medium," !important;\n ")})),Z=r.default.aside.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-1lxpneo-5"})([""," left:0;"],b),k=r.default.div.withConfig({displayName:"indexstyle__BeforeInnerStyle",componentId:"sc-1lxpneo-6"})([""," overflow:hidden;&:hover{overflow:auto;}"],y),_=r.default.aside.withConfig({displayName:"indexstyle__AfterStyle",componentId:"sc-1lxpneo-7"})([""," right:0;"],b),I=r.default.div.withConfig({displayName:"indexstyle__AfterInnerStyle",componentId:"sc-1lxpneo-8"})(["",""],y),H=r.default.div.withConfig({displayName:"indexstyle__DraggableStyle",componentId:"sc-1lxpneo-9"})([""," "," ",""],C,(function(e){return"undefined"!==typeof e.left&&"\n border-left: 1px solid ".concat((e.theme.borders||i.Z.borders).medium,";\n left: ").concat(e.left,"px;\n ")}),(function(e){return"undefined"!==typeof e.right&&"\n border-right: 1px solid ".concat((e.theme.borders||i.Z.borders).medium,";\n right: ").concat(e.right,"px;\n ")})),O=r.default.div.withConfig({displayName:"indexstyle__MainWrapper",componentId:"sc-1lxpneo-10"})(["height:100%;position:fixed;z-index:1;",""],(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).codeArea,";\n ")})),P=r.default.div.withConfig({displayName:"indexstyle__MainContentStyle",componentId:"sc-1lxpneo-11"})(["position:fixed;z-index:2;",""],(function(e){return"\n height: calc(100% - ".concat(e.headerOffset||0,"px);\n top: ").concat(e.headerOffset||0,"px;\n ")})),S=r.default.div.withConfig({displayName:"indexstyle__MainContentInnerStyle",componentId:"sc-1lxpneo-12"})([""," height:100%;overflow:auto;"],c.w5)},32063:function(e,n,t){var r=t(82684),i=t(1887),o=t.n(i),d=t(60328),l=t(57639),c=t(93461),a=t(67971),s=t(86673),u=t(46261),f=t(82386),p=t(10503),h=t(91427),g=t(49125),x=t(24141),v=t(28598);n.Z=function(e){var n=e.after,t=e.afterHeader,i=e.afterHeightOffset,m=e.afterHidden,b=e.afterMousedownActive,y=e.afterSubheader,C=e.afterWidth,j=void 0===C?0:C,w=e.before,Z=e.beforeHeader,k=e.beforeHeightOffset,_=e.beforeHidden,I=e.beforeMousedownActive,H=e.beforeWidth,O=void 0===H?0:H,P=e.children,S=e.header,V=e.headerOffset,E=void 0===V?0:V,M=e.hideAfterCompletely,B=e.leftOffset,L=void 0===B?0:B,z=e.mainContainerHeader,N=e.mainContainerRef,R=e.setAfterHidden,A=e.setAfterMousedownActive,D=e.setAfterWidth,W=e.setBeforeHidden,F=e.setBeforeMousedownActive,U=e.setBeforeWidth,T=(e.uuid,(0,x.i)().width),G=(0,r.useRef)(null),X=(0,r.useRef)(null),$=(0,r.useRef)(null),q=(0,r.useRef)(null),Y=(0,r.useCallback)((function(){var e=!m;null===R||void 0===R||R(e),(0,h.t8)(h.zg,e)}),[m,R]),J=(0,r.useCallback)((function(){var e=!_;W(e),(0,h.t8)(h.Uu,e)}),[_,W]);(0,r.useEffect)((function(){var e,n,t,r,i=function(e){var n,t;((null===$||void 0===$||null===(n=$.current)||void 0===n||null===(t=n.getBoundingClientRect)||void 0===t?void 0:t.call(n))||{}).x;if(T){var r=e.x;r+f.l8>T-j&&(r=T-j-f.l8),r-=2*L,U(Math.max(r,f.dN))}},o=function(e){var n,t;e.offsetX>=e.target.offsetWidth-f.VW&&e.offsetX<=e.target.offsetWidth+f.VW&&(null===F||void 0===F||F(!0),e.preventDefault(),null===(n=document)||void 0===n||null===(t=n.addEventListener)||void 0===t||t.call(n,"mousemove",i,!1))},d=function(){var e,n;null===F||void 0===F||F(!1),null===(e=document)||void 0===e||null===(n=e.removeEventListener)||void 0===n||n.call(e,"mousemove",i,!1)};return null===q||void 0===q||null===(e=q.current)||void 0===e||null===(n=e.addEventListener)||void 0===n||n.call(e,"mousedown",o,!1),null===(t=document)||void 0===t||null===(r=t.addEventListener)||void 0===r||r.call(t,"mouseup",d,!1),function(){var e,n,t,r;null===q||void 0===q||null===(e=q.current)||void 0===e||null===(n=e.removeEventListener)||void 0===n||n.call(e,"mousedown",o,!1),null===(t=document)||void 0===t||null===(r=t.removeEventListener)||void 0===r||r.call(t,"mouseup",d,!1),d()}}),[j,_,L,$,q,F,U,T]),(0,r.useEffect)((function(){var e,n,t,r,i=function(e){var n,t;((null===G||void 0===G||null===(n=G.current)||void 0===n||null===(t=n.getBoundingClientRect)||void 0===t?void 0:t.call(n))||{}).x;if(T){var r=T-e.x;r+f.l8>T-O&&(r=T-O-f.l8),D(Math.max(r,f.Md))}},o=function(e){var n,t;e.offsetX>=-1*f.VW&&e.offsetX<=f.VW&&(null===A||void 0===A||A(!0),e.preventDefault(),null===(n=document)||void 0===n||null===(t=n.addEventListener)||void 0===t||t.call(n,"mousemove",i,!1))},d=function(){var e,n;null===A||void 0===A||A(!1),null===(e=document)||void 0===e||null===(n=e.removeEventListener)||void 0===n||n.call(e,"mousemove",i,!1)};return null===X||void 0===X||null===(e=X.current)||void 0===e||null===(n=e.addEventListener)||void 0===n||n.call(e,"mousedown",o,!1),null===(t=document)||void 0===t||null===(r=t.addEventListener)||void 0===r||r.call(t,"mouseup",d,!1),function(){var e,n,t,r;null===X||void 0===X||null===(e=X.current)||void 0===e||null===(n=e.removeEventListener)||void 0===n||n.call(e,"mousedown",o,!1),null===(t=document)||void 0===t||null===(r=t.removeEventListener)||void 0===r||r.call(t,"mouseup",d,!1),d()}}),[m,O,G,X,A,D,T]);var K=M&&m,Q=K?0:m?4*g.iI:j,ee=_?4*g.iI:O,ne="calc(100% - ".concat(ee+Q+L,"px)");return(0,v.jsxs)(l.Z,{children:[(b&&!m||I&&!_)&&(0,v.jsx)(o(),{children:(0,v.jsx)("style",{dangerouslySetInnerHTML:{__html:"\n body {\n cursor: col-resize;\n }\n "}})}),S&&(0,v.jsx)(f.MK,{children:S}),w&&(0,v.jsxs)(f.MP,{heightOffset:k,style:{left:L,width:ee},children:[(0,v.jsx)(f.v7,{active:I,disabled:_,ref:q,right:0}),W&&(0,v.jsx)(f.W7,{style:{width:ee},visible:_,children:(0,v.jsxs)(a.Z,{alignItems:"center",fullHeight:!0,fullWidth:!0,justifyContent:"space-between",children:[(0,v.jsxs)(c.Z,{children:[(0,v.jsx)(s.Z,{pl:_?1:0}),!_&&Z]}),(0,v.jsxs)(c.Z,{children:[(0,v.jsx)(u.Z,{block:!0,label:_?"Show sidebar":"Hide sidebar",size:null,widthFitContent:!0,children:(0,v.jsxs)(d.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return J()},children:[_&&(0,v.jsx)(p._Q,{neutral:!0,size:2*g.iI}),!_&&(0,v.jsx)(p.s$,{neutral:!0,size:2*g.iI})]})},_?"before-is-hidden":"before-is-visible"),(0,v.jsx)(s.Z,{pr:_?1:2})]})]})}),(0,v.jsx)(f.Ru,{noScrollbarTrackBackground:!0,ref:$,children:!_&&w})]}),(0,v.jsxs)(f.rS,{style:{left:ee+L,width:ne},children:[z,(0,v.jsx)(f.aH,{headerOffset:(z?f.uX:f.Wi)+E,style:{width:ne},children:(0,v.jsx)(f.Zj,{noScrollbarTrackBackground:!0,ref:N,children:P})})]}),n&&!K&&(0,v.jsxs)(f.ff,{heightOffset:i,style:{width:Q},children:[(0,v.jsx)(f.v7,{active:b,disabled:m,left:0,ref:X}),R&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(f.W7,{style:{width:Q},visible:m,children:(0,v.jsxs)(a.Z,{alignItems:"center",fullHeight:!0,fullWidth:!0,children:[(0,v.jsxs)(c.Z,{children:[(0,v.jsx)(s.Z,{pl:m?1:2}),(0,v.jsxs)(d.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return Y()},children:[m&&(0,v.jsx)(p.s$,{neutral:!0,size:2*g.iI}),!m&&(0,v.jsx)(p._Q,{neutral:!0,size:2*g.iI})]})]}),!m&&t]})}),!m&&y&&(0,v.jsx)(f.YJ,{style:{width:Q},visible:m,children:y})]}),(0,v.jsx)(f.E$,{noScrollbarTrackBackground:!0,ref:G,children:!m&&n})]})]})}},41788:function(e,n,t){t.d(n,{Z:function(){return I}});var r=t(77837),i=t(26304),o=t(62243),d=t(29385),l=t(80022),c=t(99177),a=t(93189),s=t(15544),u=t(82394),f=t(38860),p=t.n(f),h=t(82684),g=t(56663),x=t.n(g),v=t(35490),m=t(55361),b=t(30332),y=t(9736),C=t(59e3),j=t(28598),w=["auth"];function Z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function k(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach((function(n){(0,u.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function _(e){var n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,r=(0,s.Z)(e);if(n){var i=(0,s.Z)(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return(0,a.Z)(this,t)}}function I(e){return function(n){(0,c.Z)(a,n);var t=_(a);function a(){var e;(0,o.Z)(this,a);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e=t.call.apply(t,[this].concat(r)),(0,u.Z)((0,l.Z)(e),"state",{auth:new v.Z(e.props.token)}),e}return(0,d.Z)(a,[{key:"componentDidMount",value:function(){this.setState({auth:new v.Z(this.props.token)})}},{key:"render",value:function(){var n=this.props,t=(n.auth,(0,i.Z)(n,w));return(0,j.jsx)(e,k({auth:this.state.auth},t))}}],[{key:"getInitialProps",value:function(){var n=(0,r.Z)(p().mark((function n(t){var r,i,o,d,l,c,a,s,u;return p().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=x()(t),i=(0,y.ex)(t),o=i.id,d=r[m.Mv],l=r[b.qt],c=new v.Z(d),a=k(k({},t),{},{auth:c,currentGroupId:o,theme:l}),(0,y.YB)(t)&&c.isExpired&&(console.log("OAuth token has expired."),s=k(k({},t.query),{},{redirect_url:t.asPath}),(0,C.nL)("/sign-in?".concat((0,C.uM)(s)),t.res)),!e.getInitialProps){n.next=12;break}return n.next=10,e.getInitialProps(a);case 10:return u=n.sent,n.abrupt("return",k(k({},u),{},{auth:c,currentGroupId:o,theme:l}));case 12:return n.abrupt("return",a);case 13:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}()}]),a}(h.Component)}},882:function(e,n,t){var r=t(82394),i=t(26304),o=t(9518),d=t(60328),l=t(23831),c=t(73942),a=t(99994),s=t(49125),u=t(28598),f=["backgroundGradient","backgroundPanel","borderWidth","children","compact","paddingUnits","paddingUnitsHorizontal","paddingUnitsVertical"];function p(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function h(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?p(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):p(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var g=o.default.div.withConfig({displayName:"GradientButton__ButtonContentStyle",componentId:"sc-1gzx4r1-0"})(["border-radius:","px;height:fit-content;"," ",""],c.n_,(function(e){return!e.backgroundPanel&&"\n background-color: ".concat((e.theme.background||l.Z.background).page,";\n ")}),(function(e){return e.backgroundPanel&&"\n background-color: ".concat((e.theme.background||l.Z.background).panel,";\n ")}));n.Z=function(e){var n=e.backgroundGradient,t=void 0===n?a.TD:n,r=e.backgroundPanel,o=e.borderWidth,l=void 0===o?1:o,c=e.children,p=e.compact,x=e.paddingUnits,v=e.paddingUnitsHorizontal,m=void 0===v?1.5:v,b=e.paddingUnitsVertical,y=void 0===b?1.25:b,C=(0,i.Z)(e,f),j=m,w=y;return x&&(j=x,w=x),p&&(j*=.75,w*=.75),(0,u.jsx)(d.Z,h(h({},C),{},{backgroundGradient:t,noPadding:!0,padding:"".concat(l,"px"),pointerEventsEnabled:!0,children:(0,u.jsx)(g,{backgroundPanel:r,children:(0,u.jsx)("div",{style:{paddingBottom:w*s.iI-l,paddingLeft:j*s.iI-l,paddingRight:j*s.iI-l,paddingTop:w*s.iI-l},children:c})})}))}},61519:function(e,n,t){var r=t(28598);n.Z=function(e){var n=e.size;return(0,r.jsxs)("svg",{width:n,height:n,viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 3H9V9H3V3ZM10 2V9H17V16H24V24H17H16H10H9H2V17V16V10V9V2H10ZM16 23V17H10V23H16ZM17 23H23V17H17V23ZM16 16V10H10V16H16ZM9 10V16H3V10H9ZM9 17V23H3V17H9Z",fill:"url(#paint0_linear_2738_140355)"}),(0,r.jsx)("defs",{children:(0,r.jsxs)("linearGradient",{id:"paint0_linear_2738_140355",x1:"2",y1:"13",x2:"24",y2:"13",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})}},29664:function(e,n,t){var r=t(28598);n.Z=function(e){var n=e.size;return(0,r.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.5 12C21.5 17.2467 17.2467 21.5 12 21.5C6.75329 21.5 2.5 17.2467 2.5 12C2.5 6.75329 6.75329 2.5 12 2.5C17.2467 2.5 21.5 6.75329 21.5 12ZM23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM12.75 7C12.75 6.58579 12.4142 6.25 12 6.25C11.5858 6.25 11.25 6.58579 11.25 7V13C11.25 13.4142 11.5858 13.75 12 13.75H16C16.4142 13.75 16.75 13.4142 16.75 13C16.75 12.5858 16.4142 12.25 16 12.25H12.75V7Z",fill:"url(#paint0_linear_2798_59379)"}),(0,r.jsx)("defs",{children:(0,r.jsxs)("linearGradient",{id:"paint0_linear_2798_59379",x1:"1",y1:"12",x2:"23",y2:"12",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})}},99994:function(e,n,t){t.d(n,{eW:function(){return a},TD:function(){return l},yr:function(){return c}});var r=t(73899),i="#FF144D",o="#DEBB92",d="#2A60FE",l=("linear-gradient(90deg, ".concat(o,", ").concat("#CBFE00",")"),"linear-gradient(90deg, ".concat(i,", #C86DD7)")),c=("linear-gradient(90deg, ".concat("#95ECE2",", ").concat(d,")"),"linear-gradient(90deg, ".concat("#9B6CA7",", ").concat(o,")"),"linear-gradient(90deg, ".concat("#C72400",", ").concat(o,")"),"linear-gradient(100.38deg, ".concat(i," 41.11%, #FF9559 86.99%)"),"linear-gradient(100.38deg, ".concat("#6B50D7"," 41.11%, #677FFF 86.99%)"),"linear-gradient(100.38deg, ".concat(d," 41.11%, #B880FF 86.99%)"),"linear-gradient(90deg, ".concat(r.t4," 20.13%, #2AB2FE)")),a="linear-gradient(90deg, ".concat(r.Ck," 0%, ").concat(r.t4," 53.13%, ").concat(r.X_," 100%)")},66166:function(e,n,t){var r=t(82684);n.Z=function(e){var n=(0,r.useRef)();return(0,r.useEffect)((function(){n.current=e}),[e]),n.current}}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9386],{15270:function(e,n,t){t.d(n,{Z:function(){return j}});var r=t(82684),i=t(34376),o=t(61519),d=t(57639),l=t(882),c=t(11135),a=t(28598);var s=function(e){var n=e.size;return(0,a.jsxs)("svg",{width:n,height:n,viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.86364 2.5H4.13636C3.68449 2.5 3.31818 2.94772 3.31818 3.5V7.5C3.31818 8.05228 3.68449 8.5 4.13636 8.5H9.86364C10.3155 8.5 10.6818 8.05228 10.6818 7.5V3.5C10.6818 2.94772 10.3155 2.5 9.86364 2.5ZM4.13636 1.5C3.23263 1.5 2.5 2.39543 2.5 3.5V7.5C2.5 8.60457 3.23263 9.5 4.13636 9.5H5.5V16.1667V16.5H4.13636C3.23263 16.5 2.5 17.3954 2.5 18.5V22.5C2.5 23.6046 3.23263 24.5 4.13636 24.5H9.86364C10.7674 24.5 11.5 23.6046 11.5 22.5V18.5C11.5 17.3954 10.7674 16.5 9.86364 16.5H6.5V16.1667C6.5 14.9394 7.61929 13.9444 9 13.9444H16C17.933 13.9444 19.5 12.5516 19.5 10.8333V9.5H21.8636C22.7674 9.5 23.5 8.60457 23.5 7.5V3.5C23.5 2.39543 22.7674 1.5 21.8636 1.5H16.1364C15.2326 1.5 14.5 2.39543 14.5 3.5V7.5C14.5 8.60457 15.2326 9.5 16.1364 9.5H18.5V10.8333C18.5 12.0606 17.3807 13.0556 16 13.0556H9C8.02066 13.0556 7.13526 13.4131 6.5 13.9893V9.5H9.86364C10.7674 9.5 11.5 8.60457 11.5 7.5V3.5C11.5 2.39543 10.7674 1.5 9.86364 1.5H4.13636ZM9.86364 17.5H6.5H5.5H4.13636C3.68449 17.5 3.31818 17.9477 3.31818 18.5V22.5C3.31818 23.0523 3.68449 23.5 4.13636 23.5H9.86364C10.3155 23.5 10.6818 23.0523 10.6818 22.5V18.5C10.6818 17.9477 10.3155 17.5 9.86364 17.5ZM16.1364 2.5H21.8636C22.3155 2.5 22.6818 2.94772 22.6818 3.5V7.5C22.6818 8.05228 22.3155 8.5 21.8636 8.5H16.1364C15.6845 8.5 15.3182 8.05228 15.3182 7.5V3.5C15.3182 2.94772 15.6845 2.5 16.1364 2.5Z",fill:"url(#paint0_linear_2738_141228)"}),(0,a.jsx)("defs",{children:(0,a.jsxs)("linearGradient",{id:"paint0_linear_2738_141228",x1:"2.5",y1:"13",x2:"23.5",y2:"13",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,a.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})},u=t(29664);var f=function(e){var n=e.size;return(0,a.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.65256 15.8011L4.68226 20.7714C4.14193 21.3117 3.26588 21.3117 2.72556 20.7714C2.18523 20.231 2.18523 19.355 2.72556 18.8147L7.60553 13.9347C9.03 12.5102 9.91996 10.6383 10.1255 8.6343L10.3663 6.28587C10.4455 5.51385 10.7884 4.7927 11.3371 4.24393L11.9728 3.60825C13.233 2.34803 15.1222 2.10014 16.6299 2.86457L13.621 5.87349C12.7214 6.77304 12.7214 8.23149 13.621 9.13104L13.9934 9.50349C14.893 10.403 16.3514 10.403 17.251 9.50349L20.2599 6.49457C21.0243 8.00224 20.7764 9.89143 19.5162 11.1516L18.786 11.8818C18.2751 12.3928 17.6175 12.7318 16.9049 12.8515L14.634 13.2332C12.7469 13.5504 11.0056 14.448 9.65256 15.8011ZM11.0889 2.72437C12.8414 0.971949 15.5214 0.712489 17.5485 1.94599C17.9008 2.16036 18.2333 2.41982 18.5379 2.72436L14.5049 6.75738C14.0935 7.16877 14.0935 7.83577 14.5049 8.24716L14.8773 8.61961C15.2887 9.031 15.9557 9.031 16.3671 8.61961L20.4001 4.5866C20.7046 4.89114 20.9641 5.22371 21.1785 5.57599C22.412 7.60309 22.1525 10.2831 20.4001 12.0355L19.6699 12.7657C18.9751 13.4605 18.081 13.9214 17.1121 14.0842L14.8412 14.4659C13.2104 14.74 11.7057 15.5157 10.5364 16.6849L5.56614 21.6552C4.53766 22.6837 2.87016 22.6837 1.84167 21.6552C0.81319 20.6268 0.813193 18.9593 1.84168 17.9308L6.72165 13.0508C7.94285 11.8296 8.70581 10.2248 8.88201 8.50678L9.12286 6.15835C9.23136 5.10035 9.70121 4.11209 10.4533 3.36005L11.0889 2.72437ZM4.88014 19.3535C5.0754 19.1582 5.0754 18.8417 4.88014 18.6464C4.68488 18.4511 4.3683 18.4511 4.17303 18.6464L3.64631 19.1731C3.45105 19.3684 3.45105 19.685 3.64631 19.8802C3.84158 20.0755 4.15816 20.0755 4.35342 19.8802L4.88014 19.3535Z",fill:"url(#paint0_linear_7839_33197)"}),(0,a.jsx)("defs",{children:(0,a.jsxs)("linearGradient",{id:"paint0_linear_7839_33197",x1:"1.07031",y1:"11.8041",x2:"21.9428",y2:"11.8041",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,a.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})};var p=function(e){var n=e.size;return(0,a.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.5 18V6c0-1.38071 1.11929-2.5 2.5-2.5h12c1.3807 0 2.5 1.11929 2.5 2.5v12c0 1.3807-1.1193 2.5-2.5 2.5H6c-1.38071 0-2.5-1.1193-2.5-2.5zM2 18V6c0-2.20914 1.79086-4 4-4h12c2.2091 0 4 1.79086 4 4v12c0 2.2091-1.7909 4-4 4H6c-2.20914 0-4-1.7909-4-4zm9.0935-8.41432c.3235-.25876.3759-.73073.1172-1.05417-.2588-.32345-.7308-.37589-1.0542-.11713L7.03148 10.9144c-.17791.1423-.28148.3578-.28148.5856 0 .2279.10357.4433.28148.5857l3.12502 2.5c.3234.2587.7954.2063 1.0542-.1172.2587-.3234.2063-.7954-.1172-1.0541L8.70058 11.5l2.39292-1.91432zM14.5 13.25c-.4142 0-.75.3358-.75.75s.3358.75.75.75H17c.4142 0 .75-.3358.75-.75s-.3358-.75-.75-.75h-2.5z",fill:"url(#paint0_linear_1244_32583)"}),(0,a.jsxs)("defs",{children:[(0,a.jsx)("clipPath",{id:"clip0_5247_222548",children:(0,a.jsx)("rect",{width:"24",height:"24",fill:"white"})}),(0,a.jsxs)("linearGradient",{id:"paint0_linear_1244_32583",x1:"1.07031",y1:"11.8041",x2:"21.9428",y2:"11.8041",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,a.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})]})]})},h=t(86673),g=t(19711),x=t(46261),v=t(10503),m=t(72454),b=t(99994),y=t(49125),C=3*y.iI;var j=function(e){var n=e.aligned,t=e.navigationItems,j=(0,i.useRouter)().pathname,w=(0,r.useMemo)((function(){var e=[{Icon:v.rV,IconSelected:s,id:"pipelines",label:function(){return"Pipelines"},linkProps:{href:"/pipelines"}},{Icon:v.Pf,IconSelected:u.Z,id:"triggers",label:function(){return"Triggers"},linkProps:{href:"/triggers"}},{Icon:v.pd,IconSelected:o.Z,id:"pipeline-runs",label:function(){return"Pipelines runs"},linkProps:{href:"/pipeline-runs"}},{Icon:v.oI,IconSelected:p,id:"terminal",label:function(){return"Terminal"},linkProps:{href:"/terminal"}},{Icon:v.Zr,IconSelected:f,id:"settings",label:function(){return"Settings"},linkProps:{href:"/settings"}}];return(t||e).map((function(e,t){var r=e.Icon,i=e.IconSelected,o=e.id,d=e.isSelected,s=e.label,u=e.linkProps,f=e.onClick,p=d?d(j,e):!!j.match(new RegExp("^/".concat(o,"[/]*"))),v=p&&i?i:r;return(0,a.jsx)(h.Z,{mt:t>=1?y.cd:0,children:(0,a.jsxs)(x.Z,{appearBefore:"right"===n,height:5*y.iI,label:s(),size:null,widthFitContent:!0,children:[p&&i&&(0,a.jsx)(l.Z,{backgroundGradient:b.yr,backgroundPanel:!0,basic:!0,borderWidth:2,linkProps:u,onClick:f,paddingUnits:1,children:(0,a.jsx)("div",{style:{height:C,width:C},children:(0,a.jsx)(v,{muted:!0,size:C})})}),(!p||p&&!i)&&(0,a.jsx)(c.ZP,{block:!0,linkProps:u,noHoverUnderline:!0,noPadding:!0,onClick:f,primary:p,sameColorAsText:!0,uuid:"VerticalNavigation/".concat(o),children:(0,a.jsx)(m.E7,{primary:!v,children:v?(0,a.jsx)(v,{muted:!p,size:C}):(0,a.jsx)(g.ZP,{children:"Edit"})})})]})},"button-".concat(o))}))}),[n,t,j]);return(0,a.jsx)(d.Z,{children:w})}},72454:function(e,n,t){t.d(n,{E7:function(){return h},HS:function(){return p},Nk:function(){return u},k1:function(){return s},lm:function(){return f}});var r=t(9518),i=t(23831),o=t(73942),d=t(3055),l=t(49125),c=t(37391),a=t(90880),s=l.cd*l.iI+5*l.iI+l.cd*l.iI+1,u=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-ecogjt-0"})(["display:flex;flex-direction:row;height:calc(100vh - ","px);position:fixed;top:","px;width:100%;",""],d.Mz,d.Mz,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).page,";\n ")})),f=r.default.div.withConfig({displayName:"indexstyle__VerticalNavigationStyle",componentId:"sc-ecogjt-1"})(["padding:","px;"," "," ",""],l.cd*l.iI,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).panel,";\n ")}),(function(e){return e.borderLeft&&"\n border-left: 1px solid ".concat((e.theme.borders||i.Z.borders).medium,";\n ")}),(function(e){return!e.borderLeft&&"\n border-left: 1px solid ".concat((e.theme.borders||i.Z.borders).medium,";\n ")})),p=r.default.div.withConfig({displayName:"indexstyle__SubheaderStyle",componentId:"sc-ecogjt-2"})(["width:100%;padding:","px;position:sticky;top:0;z-index:3;",""],l.cd*l.iI,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).page,";\n border-bottom: 1px solid ").concat((e.theme.borders||i.Z.borders).medium,";\n ")})),h=(r.default.div.withConfig({displayName:"indexstyle__ContentStyle",componentId:"sc-ecogjt-3"})([""," overflow:auto;",""],c.w5,(function(e){return"\n height: calc(100vh - ".concat(d.Mz+(e.heightOffset||0),"px);\n ")})),r.default.div.withConfig({displayName:"indexstyle__NavigationItemStyle",componentId:"sc-ecogjt-4"})(["display:flex;align-items:center;justify-content:center;padding:","px;border-radius:","px;",""],l.iI,o.n_,(function(e){return e.primary&&"\n ".concat((0,a.eR)(),"\n background: ").concat((e.theme||i.Z).chart.backgroundPrimary,";\n border: 1px solid ").concat((e.theme||i.Z).feature.active,";\n\n &:hover {\n background-color: ").concat((e.theme||i.Z).interactive.linkSecondary,";\n }\n ")})))},49894:function(e,n,t){t.d(n,{Z:function(){return v}});var r=t(82684),i=t(60328),o=t(10919),d=t(86673),l=t(19711),c=t(10503),a=t(9518),s=t(23831),u=t(73942),f=t(49125),p=t(37391),h=a.default.div.withConfig({displayName:"indexstyle__ErrorPopupStyle",componentId:"sc-aqfw6f-0"})(["top:50%;left:50%;transform:translate(-50%,-50%);max-height:95vh;max-width:95vw;overflow:auto;padding:","px;position:fixed;z-index:9999;border-radius:","px;"," ",""],f.iI*f.cd,u.n_,(function(e){return"\n background-color: ".concat((e.theme||s.Z).background.page,";\n border: 1px solid ").concat((e.theme||s.Z).accent.negative,";\n box-shadow: ").concat((e.theme||s.Z).shadow.window,";\n ")}),p.w5),g=a.default.div.withConfig({displayName:"indexstyle__CloseButtonContainerStyle",componentId:"sc-aqfw6f-1"})(["display:flex;justify-content:flex-end;position:sticky;top:0;"]),x=t(28598);var v=function(e){var n,t,a=e.displayMessage,s=e.errors,u=e.links,f=e.onClose,p=e.response,v=(0,r.useState)(!1),m=v[0],b=v[1],y=(0,r.useState)(!1),C=y[0],j=y[1],w=(s||{}).messages,Z=(null===p||void 0===p?void 0:p.error)||{},k=Z.errors,_=Z.exception,I=Z.message,H=a,O=w;return I&&(O=I.split("\n")),_||H||null===(n=O)||void 0===n||!n[0]||(H=O[0],O=null),(0,x.jsxs)(h,{children:[(0,x.jsx)(g,{children:(0,x.jsx)(i.Z,{iconOnly:!0,noBackground:!0,noBorder:!0,noPadding:!0,onClick:f,title:"Close errors",children:(0,x.jsx)(c.x8,{})})}),(0,x.jsx)(l.ZP,{bold:!0,large:!0,children:"Error"}),H&&(0,x.jsx)(d.Z,{mt:1,children:(0,x.jsx)(l.ZP,{default:!0,children:H})}),_&&(0,x.jsx)(d.Z,{mt:1,children:(0,x.jsx)(l.ZP,{default:!0,disableWordBreak:!0,monospace:!0,children:_})}),(null===(t=O)||void 0===t?void 0:t.length)>0&&(0,x.jsxs)(d.Z,{mt:2,children:[(0,x.jsxs)(l.ZP,{bold:!0,large:!0,children:["Traceback (",(0,x.jsxs)(o.Z,{onClick:function(){return j((function(e){return!e}))},preventDefault:!0,warning:!0,children:[C?"hide":"show"," traceback"]}),")"]}),C&&(0,x.jsx)(d.Z,{mt:1,children:O.map((function(e){return(0,x.jsx)(l.ZP,{dangerouslySetInnerHTML:{__html:e.replaceAll(" ","&nbsp;")},default:!0,disableWordBreak:!0,monospace:!0},e)}))})]}),k&&(0,x.jsxs)(d.Z,{mt:2,children:[(0,x.jsxs)(l.ZP,{bold:!0,large:!0,children:["Stack trace (",(0,x.jsxs)(o.Z,{onClick:function(){return b((function(e){return!e}))},preventDefault:!0,warning:!0,children:[m?"hide":"show"," stack trace"]}),")"]}),m&&(0,x.jsx)(d.Z,{mt:1,children:k.map((function(e){return(0,x.jsx)(l.ZP,{dangerouslySetInnerHTML:{__html:e.replaceAll(" ","&nbsp;")},default:!0,disableWordBreak:!0,monospace:!0},e)}))})]}),null===u||void 0===u?void 0:u.map((function(e,n){var t=e.label,r=e.onClick;return(0,x.jsx)(d.Z,{mt:2,children:(0,x.jsx)(o.Z,{large:!0,onClick:r,underline:!0,warning:!0,children:t})},t)}))]})}},82386:function(e,n,t){t.d(n,{E$:function(){return I},MK:function(){return m},MP:function(){return Z},Md:function(){return s},OM:function(){return x},Ru:function(){return k},VW:function(){return p},W7:function(){return j},Wi:function(){return g},YJ:function(){return w},Zj:function(){return S},Zt:function(){return a},aH:function(){return P},dN:function(){return u},ff:function(){return _},l8:function(){return h},rS:function(){return O},uX:function(){return v},v7:function(){return H},ve:function(){return f}});var r=t(9518),i=t(23831),o=t(73942),d=t(3055),l=t(49125),c=t(37391),a=64*l.iI,s=3*l.cd*l.iI,u=s,f=35*l.iI,p=.5*l.iI,h=13*l.iI,g=3*l.cd*l.iI,x=6*l.iI,v=2*l.cd*3*l.iI,m=(r.default.div.withConfig({displayName:"indexstyle__HeaderStyle",componentId:"sc-1lxpneo-0"})(["position:fixed;z-index:2;"," "," ",""],(function(e){return"\n border-bottom: 1px solid ".concat((e.theme.monotone||i.Z.monotone).grey200,";\n ")}),(function(e){return!e.beforeVisible&&"\n width: 100%;\n "}),(function(e){return e.beforeVisible&&"\n left: ".concat(f,"px;\n width: calc(100% - ").concat(f,"px);\n ")})),r.default.div.withConfig({displayName:"indexstyle__NewHeaderStyle",componentId:"sc-1lxpneo-1"})(["height:","px;position:fixed;top:0;width:100%;z-index:4;"],d.Mz)),b=(r.default.div.withConfig({displayName:"indexstyle__TabStyle",componentId:"sc-1lxpneo-2"})(["border-top-left-radius:","px;border-top-right-radius:","px;padding:","px ","px;position:relative;top:1px;"," "," ",""],o.n_,o.n_,1*l.iI,2*l.iI,(function(e){return"\n border-left: 1px solid ".concat((e.theme.monotone||i.Z.monotone).grey200,";\n border-right: 1px solid ").concat((e.theme.monotone||i.Z.monotone).grey200,";\n border-top: 1px solid ").concat((e.theme.monotone||i.Z.monotone).grey200,";\n ")}),(function(e){return!e.first&&"\n margin-left: ".concat(1*l.iI,"px;\n ")}),(function(e){return e.selected&&"\n border-bottom: 1px solid ".concat((e.theme.monotone||i.Z.monotone).white,";\n ")})),(0,r.css)(["position:fixed;z-index:2;",""],(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).panel,";\n height: calc(100% - ").concat("undefined"===typeof e.heightOffset?v:e.heightOffset,"px);\n top: ").concat("undefined"===typeof e.heightOffset?v:e.heightOffset,"px;\n ")}))),y=(0,r.css)([""," height:100%;overflow:auto;position:relative;z-index:2;"],c.w5),C=(0,r.css)(["height:calc(100% + ","px);position:absolute;top:-","px;width:","px;z-index:6;&:hover{","}"," ",""],g,g,p,(function(e){return!e.disabled&&"\n border-color: ".concat((e.theme.text||i.Z.text).fileBrowser," !important;\n ")}),(function(e){return!e.disabled&&"\n cursor: col-resize;\n "}),(function(e){return e.active&&!e.disabled&&"\n border-color: ".concat((e.theme.text||i.Z.text).fileBrowser," !important;\n ")})),j=r.default.div.withConfig({displayName:"indexstyle__AsideHeaderStyle",componentId:"sc-1lxpneo-3"})(["border-bottom:1px solid transparent;height:","px;position:fixed;top:","px;z-index:4;"," "," ",""],g,g,(0,c.y$)(),(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).panel,";\n ")}),(function(e){return!e.visible&&"\n border-left: 1px solid transparent;\n border-right: 1px solid transparent;\n border-color: ".concat((e.theme.borders||i.Z.borders).medium," !important;\n ")})),w=r.default.div.withConfig({displayName:"indexstyle__AsideSubheaderStyle",componentId:"sc-1lxpneo-4"})(["border-bottom:1px solid transparent;height:","px;overflow-x:auto;"," "," ",""],g,(0,c.y$)(),(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).table,";\n ")}),(function(e){return!e.visible&&"\n border-color: ".concat((e.theme.borders||i.Z.borders).medium," !important;\n ")})),Z=r.default.aside.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-1lxpneo-5"})([""," left:0;"],b),k=r.default.div.withConfig({displayName:"indexstyle__BeforeInnerStyle",componentId:"sc-1lxpneo-6"})([""," overflow:hidden;&:hover{overflow:auto;}"],y),_=r.default.aside.withConfig({displayName:"indexstyle__AfterStyle",componentId:"sc-1lxpneo-7"})([""," right:0;"],b),I=r.default.div.withConfig({displayName:"indexstyle__AfterInnerStyle",componentId:"sc-1lxpneo-8"})(["",""],y),H=r.default.div.withConfig({displayName:"indexstyle__DraggableStyle",componentId:"sc-1lxpneo-9"})([""," "," ",""],C,(function(e){return"undefined"!==typeof e.left&&"\n border-left: 1px solid ".concat((e.theme.borders||i.Z.borders).medium,";\n left: ").concat(e.left,"px;\n ")}),(function(e){return"undefined"!==typeof e.right&&"\n border-right: 1px solid ".concat((e.theme.borders||i.Z.borders).medium,";\n right: ").concat(e.right,"px;\n ")})),O=r.default.div.withConfig({displayName:"indexstyle__MainWrapper",componentId:"sc-1lxpneo-10"})(["height:100%;position:fixed;z-index:1;",""],(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).codeArea,";\n ")})),P=r.default.div.withConfig({displayName:"indexstyle__MainContentStyle",componentId:"sc-1lxpneo-11"})(["position:fixed;z-index:2;",""],(function(e){return"\n height: calc(100% - ".concat(e.headerOffset||0,"px);\n top: ").concat(e.headerOffset||0,"px;\n ")})),S=r.default.div.withConfig({displayName:"indexstyle__MainContentInnerStyle",componentId:"sc-1lxpneo-12"})([""," height:100%;overflow:auto;"],c.w5)},32063:function(e,n,t){var r=t(82684),i=t(1887),o=t.n(i),d=t(60328),l=t(57639),c=t(93461),a=t(67971),s=t(86673),u=t(46261),f=t(82386),p=t(10503),h=t(91427),g=t(49125),x=t(24141),v=t(28598);n.Z=function(e){var n=e.after,t=e.afterHeader,i=e.afterHeightOffset,m=e.afterHidden,b=e.afterMousedownActive,y=e.afterSubheader,C=e.afterWidth,j=void 0===C?0:C,w=e.before,Z=e.beforeHeader,k=e.beforeHeightOffset,_=e.beforeHidden,I=e.beforeMousedownActive,H=e.beforeWidth,O=void 0===H?0:H,P=e.children,S=e.header,V=e.headerOffset,E=void 0===V?0:V,M=e.hideAfterCompletely,B=e.leftOffset,L=void 0===B?0:B,z=e.mainContainerHeader,N=e.mainContainerRef,R=e.setAfterHidden,A=e.setAfterMousedownActive,D=e.setAfterWidth,W=e.setBeforeHidden,F=e.setBeforeMousedownActive,U=e.setBeforeWidth,T=(e.uuid,(0,x.i)().width),G=(0,r.useRef)(null),X=(0,r.useRef)(null),$=(0,r.useRef)(null),q=(0,r.useRef)(null),Y=(0,r.useCallback)((function(){var e=!m;null===R||void 0===R||R(e),(0,h.t8)(h.zg,e)}),[m,R]),J=(0,r.useCallback)((function(){var e=!_;W(e),(0,h.t8)(h.Uu,e)}),[_,W]);(0,r.useEffect)((function(){var e,n,t,r,i=function(e){var n,t;((null===$||void 0===$||null===(n=$.current)||void 0===n||null===(t=n.getBoundingClientRect)||void 0===t?void 0:t.call(n))||{}).x;if(T){var r=e.x;r+f.l8>T-j&&(r=T-j-f.l8),r-=2*L,U(Math.max(r,f.dN))}},o=function(e){var n,t;e.offsetX>=e.target.offsetWidth-f.VW&&e.offsetX<=e.target.offsetWidth+f.VW&&(null===F||void 0===F||F(!0),e.preventDefault(),null===(n=document)||void 0===n||null===(t=n.addEventListener)||void 0===t||t.call(n,"mousemove",i,!1))},d=function(){var e,n;null===F||void 0===F||F(!1),null===(e=document)||void 0===e||null===(n=e.removeEventListener)||void 0===n||n.call(e,"mousemove",i,!1)};return null===q||void 0===q||null===(e=q.current)||void 0===e||null===(n=e.addEventListener)||void 0===n||n.call(e,"mousedown",o,!1),null===(t=document)||void 0===t||null===(r=t.addEventListener)||void 0===r||r.call(t,"mouseup",d,!1),function(){var e,n,t,r;null===q||void 0===q||null===(e=q.current)||void 0===e||null===(n=e.removeEventListener)||void 0===n||n.call(e,"mousedown",o,!1),null===(t=document)||void 0===t||null===(r=t.removeEventListener)||void 0===r||r.call(t,"mouseup",d,!1),d()}}),[j,_,L,$,q,F,U,T]),(0,r.useEffect)((function(){var e,n,t,r,i=function(e){var n,t;((null===G||void 0===G||null===(n=G.current)||void 0===n||null===(t=n.getBoundingClientRect)||void 0===t?void 0:t.call(n))||{}).x;if(T){var r=T-e.x;r+f.l8>T-O&&(r=T-O-f.l8),D(Math.max(r,f.Md))}},o=function(e){var n,t;e.offsetX>=-1*f.VW&&e.offsetX<=f.VW&&(null===A||void 0===A||A(!0),e.preventDefault(),null===(n=document)||void 0===n||null===(t=n.addEventListener)||void 0===t||t.call(n,"mousemove",i,!1))},d=function(){var e,n;null===A||void 0===A||A(!1),null===(e=document)||void 0===e||null===(n=e.removeEventListener)||void 0===n||n.call(e,"mousemove",i,!1)};return null===X||void 0===X||null===(e=X.current)||void 0===e||null===(n=e.addEventListener)||void 0===n||n.call(e,"mousedown",o,!1),null===(t=document)||void 0===t||null===(r=t.addEventListener)||void 0===r||r.call(t,"mouseup",d,!1),function(){var e,n,t,r;null===X||void 0===X||null===(e=X.current)||void 0===e||null===(n=e.removeEventListener)||void 0===n||n.call(e,"mousedown",o,!1),null===(t=document)||void 0===t||null===(r=t.removeEventListener)||void 0===r||r.call(t,"mouseup",d,!1),d()}}),[m,O,G,X,A,D,T]);var K=M&&m,Q=K?0:m?4*g.iI:j,ee=_?4*g.iI:O,ne="calc(100% - ".concat(ee+Q+L,"px)");return(0,v.jsxs)(l.Z,{children:[(b&&!m||I&&!_)&&(0,v.jsx)(o(),{children:(0,v.jsx)("style",{dangerouslySetInnerHTML:{__html:"\n body {\n cursor: col-resize;\n }\n "}})}),S&&(0,v.jsx)(f.MK,{children:S}),w&&(0,v.jsxs)(f.MP,{heightOffset:k,style:{left:L,width:ee},children:[(0,v.jsx)(f.v7,{active:I,disabled:_,ref:q,right:0}),W&&(0,v.jsx)(f.W7,{style:{width:ee},visible:_,children:(0,v.jsxs)(a.Z,{alignItems:"center",fullHeight:!0,fullWidth:!0,justifyContent:"space-between",children:[(0,v.jsxs)(c.Z,{children:[(0,v.jsx)(s.Z,{pl:_?1:0}),!_&&Z]}),(0,v.jsxs)(c.Z,{children:[(0,v.jsx)(u.Z,{block:!0,label:_?"Show sidebar":"Hide sidebar",size:null,widthFitContent:!0,children:(0,v.jsxs)(d.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return J()},children:[_&&(0,v.jsx)(p._Q,{neutral:!0,size:2*g.iI}),!_&&(0,v.jsx)(p.s$,{neutral:!0,size:2*g.iI})]})},_?"before-is-hidden":"before-is-visible"),(0,v.jsx)(s.Z,{pr:_?1:2})]})]})}),(0,v.jsx)(f.Ru,{noScrollbarTrackBackground:!0,ref:$,children:!_&&w})]}),(0,v.jsxs)(f.rS,{style:{left:ee+L,width:ne},children:[z,(0,v.jsx)(f.aH,{headerOffset:(z?f.uX:f.Wi)+E,style:{width:ne},children:(0,v.jsx)(f.Zj,{noScrollbarTrackBackground:!0,ref:N,children:P})})]}),n&&!K&&(0,v.jsxs)(f.ff,{heightOffset:i,style:{width:Q},children:[(0,v.jsx)(f.v7,{active:b,disabled:m,left:0,ref:X}),R&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(f.W7,{style:{width:Q},visible:m,children:(0,v.jsxs)(a.Z,{alignItems:"center",fullHeight:!0,fullWidth:!0,children:[(0,v.jsxs)(c.Z,{children:[(0,v.jsx)(s.Z,{pl:m?1:2}),(0,v.jsxs)(d.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return Y()},children:[m&&(0,v.jsx)(p.s$,{neutral:!0,size:2*g.iI}),!m&&(0,v.jsx)(p._Q,{neutral:!0,size:2*g.iI})]})]}),!m&&t]})}),!m&&y&&(0,v.jsx)(f.YJ,{style:{width:Q},visible:m,children:y})]}),(0,v.jsx)(f.E$,{noScrollbarTrackBackground:!0,ref:G,children:!m&&n})]})]})}},41788:function(e,n,t){t.d(n,{Z:function(){return I}});var r=t(77837),i=t(26304),o=t(62243),d=t(29385),l=t(80022),c=t(99177),a=t(93189),s=t(15544),u=t(82394),f=t(38860),p=t.n(f),h=t(82684),g=t(56663),x=t.n(g),v=t(35490),m=t(55361),b=t(30332),y=t(9736),C=t(59e3),j=t(28598),w=["auth"];function Z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function k(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach((function(n){(0,u.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function _(e){var n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,r=(0,s.Z)(e);if(n){var i=(0,s.Z)(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return(0,a.Z)(this,t)}}function I(e){return function(n){(0,c.Z)(a,n);var t=_(a);function a(){var e;(0,o.Z)(this,a);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e=t.call.apply(t,[this].concat(r)),(0,u.Z)((0,l.Z)(e),"state",{auth:new v.Z(e.props.token)}),e}return(0,d.Z)(a,[{key:"componentDidMount",value:function(){this.setState({auth:new v.Z(this.props.token)})}},{key:"render",value:function(){var n=this.props,t=(n.auth,(0,i.Z)(n,w));return(0,j.jsx)(e,k({auth:this.state.auth},t))}}],[{key:"getInitialProps",value:function(){var n=(0,r.Z)(p().mark((function n(t){var r,i,o,d,l,c,a,s,u;return p().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=x()(t),i=(0,y.ex)(t),o=i.id,d=r[m.Mv],l=r[b.qt],c=new v.Z(d),a=k(k({},t),{},{auth:c,currentGroupId:o,theme:l}),(0,y.YB)(t)&&c.isExpired&&(console.log("OAuth token has expired."),s=k(k({},t.query),{},{redirect_url:t.asPath}),(0,C.nL)("/sign-in?".concat((0,C.uM)(s)),t.res)),!e.getInitialProps){n.next=12;break}return n.next=10,e.getInitialProps(a);case 10:return u=n.sent,n.abrupt("return",k(k({},u),{},{auth:c,currentGroupId:o,theme:l}));case 12:return n.abrupt("return",a);case 13:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}()}]),a}(h.Component)}},882:function(e,n,t){var r=t(82394),i=t(26304),o=t(9518),d=t(60328),l=t(23831),c=t(73942),a=t(99994),s=t(49125),u=t(28598),f=["backgroundGradient","backgroundPanel","borderWidth","children","compact","paddingUnits","paddingUnitsHorizontal","paddingUnitsVertical"];function p(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function h(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?p(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):p(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var g=o.default.div.withConfig({displayName:"GradientButton__ButtonContentStyle",componentId:"sc-1gzx4r1-0"})(["border-radius:","px;height:fit-content;"," ",""],c.n_,(function(e){return!e.backgroundPanel&&"\n background-color: ".concat((e.theme.background||l.Z.background).page,";\n ")}),(function(e){return e.backgroundPanel&&"\n background-color: ".concat((e.theme.background||l.Z.background).panel,";\n ")}));n.Z=function(e){var n=e.backgroundGradient,t=void 0===n?a.TD:n,r=e.backgroundPanel,o=e.borderWidth,l=void 0===o?1:o,c=e.children,p=e.compact,x=e.paddingUnits,v=e.paddingUnitsHorizontal,m=void 0===v?1.5:v,b=e.paddingUnitsVertical,y=void 0===b?1.25:b,C=(0,i.Z)(e,f),j=m,w=y;return x&&(j=x,w=x),p&&(j*=.75,w*=.75),(0,u.jsx)(d.Z,h(h({},C),{},{backgroundGradient:t,noPadding:!0,padding:"".concat(l,"px"),pointerEventsEnabled:!0,children:(0,u.jsx)(g,{backgroundPanel:r,children:(0,u.jsx)("div",{style:{paddingBottom:w*s.iI-l,paddingLeft:j*s.iI-l,paddingRight:j*s.iI-l,paddingTop:w*s.iI-l},children:c})})}))}},61519:function(e,n,t){var r=t(28598);n.Z=function(e){var n=e.size;return(0,r.jsxs)("svg",{width:n,height:n,viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 3H9V9H3V3ZM10 2V9H17V16H24V24H17H16H10H9H2V17V16V10V9V2H10ZM16 23V17H10V23H16ZM17 23H23V17H17V23ZM16 16V10H10V16H16ZM9 10V16H3V10H9ZM9 17V23H3V17H9Z",fill:"url(#paint0_linear_2738_140355)"}),(0,r.jsx)("defs",{children:(0,r.jsxs)("linearGradient",{id:"paint0_linear_2738_140355",x1:"2",y1:"13",x2:"24",y2:"13",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})}},29664:function(e,n,t){var r=t(28598);n.Z=function(e){var n=e.size;return(0,r.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.5 12C21.5 17.2467 17.2467 21.5 12 21.5C6.75329 21.5 2.5 17.2467 2.5 12C2.5 6.75329 6.75329 2.5 12 2.5C17.2467 2.5 21.5 6.75329 21.5 12ZM23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM12.75 7C12.75 6.58579 12.4142 6.25 12 6.25C11.5858 6.25 11.25 6.58579 11.25 7V13C11.25 13.4142 11.5858 13.75 12 13.75H16C16.4142 13.75 16.75 13.4142 16.75 13C16.75 12.5858 16.4142 12.25 16 12.25H12.75V7Z",fill:"url(#paint0_linear_2798_59379)"}),(0,r.jsx)("defs",{children:(0,r.jsxs)("linearGradient",{id:"paint0_linear_2798_59379",x1:"1",y1:"12",x2:"23",y2:"12",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})}},99994:function(e,n,t){t.d(n,{eW:function(){return a},TD:function(){return l},yr:function(){return c}});var r=t(73899),i="#FF144D",o="#DEBB92",d="#2A60FE",l=("linear-gradient(90deg, ".concat(o,", ").concat("#CBFE00",")"),"linear-gradient(90deg, ".concat(i,", #C86DD7)")),c=("linear-gradient(90deg, ".concat("#95ECE2",", ").concat(d,")"),"linear-gradient(90deg, ".concat("#9B6CA7",", ").concat(o,")"),"linear-gradient(90deg, ".concat("#C72400",", ").concat(o,")"),"linear-gradient(100.38deg, ".concat(i," 41.11%, #FF9559 86.99%)"),"linear-gradient(100.38deg, ".concat("#6B50D7"," 41.11%, #677FFF 86.99%)"),"linear-gradient(100.38deg, ".concat(d," 41.11%, #B880FF 86.99%)"),"linear-gradient(90deg, ".concat(r.t4," 20.13%, #2AB2FE)")),a="linear-gradient(90deg, ".concat(r.Ck," 0%, ").concat(r.t4," 53.13%, ").concat(r.X_," 100%)")},66166:function(e,n,t){var r=t(82684);n.Z=function(e){var n=(0,r.useRef)();return(0,r.useEffect)((function(){n.current=e}),[e]),n.current}}}]);