mage-ai 0.8.80__py3-none-any.whl → 0.8.82__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.
- mage_ai/api/presenters/SyncPresenter.py +1 -0
- mage_ai/api/resources/GitBranchResource.py +1 -1
- mage_ai/api/resources/SyncResource.py +83 -41
- mage_ai/data_preparation/executors/block_executor.py +9 -0
- mage_ai/data_preparation/models/block/__init__.py +40 -3
- mage_ai/data_preparation/models/pipelines/integration_pipeline.py +21 -9
- mage_ai/data_preparation/models/utils.py +5 -3
- mage_ai/data_preparation/models/variable.py +59 -26
- mage_ai/data_preparation/preferences.py +24 -16
- mage_ai/data_preparation/sync/__init__.py +23 -4
- mage_ai/data_preparation/sync/git_sync.py +7 -0
- mage_ai/data_preparation/templates/callbacks/base.jinja +2 -2
- mage_ai/data_preparation/templates/callbacks/orchestration/triggers/default.jinja +1 -1
- mage_ai/data_preparation/templates/repo/.gitignore +13 -0
- mage_ai/orchestration/db/models/oauth.py +16 -7
- mage_ai/orchestration/pipeline_scheduler.py +17 -1
- mage_ai/server/constants.py +1 -1
- mage_ai/server/frontend_dist/404.html +2 -2
- mage_ai/server/frontend_dist/404.html.html +2 -2
- mage_ai/server/frontend_dist/_next/static/QB08hs4sID1RqTCyVc19P/_buildManifest.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/1005-2ad5a1b201c2e742.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{1424-fbc7f741303c0aa0.js → 1424-c6b0d89ffb4a10b9.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3077-5a56c22fbc5626c8.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/3714-d472531256ed5cf5.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/547-f3f2ccd9dcde9459.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/7400-e5e39ae07de554b2.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{8180-325d712ecbed97ce.js → 8180-0c53312021451bb7.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/8735-1a3d39946add4aea.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/894-6290def8665695eb.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/8957-6d3f5778166f4294.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/9270-e35a5eb3dae4c3ca.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{_app-b25383366d854e8e.js → _app-13fb8342c87983a1.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/files-8b81ef90680f3f72.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-9e96b956c26fbc92.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipeline-runs-3260a2dac8df672e.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/{[...slug]-9e519ad50f639e00.js → [...slug]-a4fbf12642923051.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-fe65c89f1e86b4b8.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/{block-runs-302e1bd9fbf39994.js → block-runs-5c02b08404dbdd20.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-25a125d43569c70d.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{monitors-5244d6c5d80af010.js → monitors-092f364100995ba6.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/{[run]-90170de1e6fe8f04.js → [run]-50e60f6b49eed3f0.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{runs-88994d0bcf41cf9e.js → runs-ed9903520a27f4c8.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-55748e7fcf738d91.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/{[...slug]-456d84426ffe5025.js → [...slug]-1725c0871027ae05.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{triggers-05f43f9eaf6528db.js → triggers-0d2c9f28ae21cde8.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-2f4b987a8dba3484.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/account/profile-3ca183fdcb571bde.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-3b26db0dd0962783.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/sync-data-bd5e22e49c1f7bc2.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users-85073f9cc09fabf7.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-0d2260ad08dfe44a.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-d74d0f163157ba65.js +1 -0
- mage_ai/server/frontend_dist/files.html +25 -0
- mage_ai/server/frontend_dist/index.html +2 -2
- mage_ai/server/frontend_dist/manage.html +5 -5
- mage_ai/server/frontend_dist/pipeline-runs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/settings.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline].html +2 -2
- mage_ai/server/frontend_dist/pipelines.html +5 -5
- mage_ai/server/frontend_dist/settings/account/profile.html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/preferences.html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/sync-data.html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/users.html +5 -5
- mage_ai/server/frontend_dist/settings.html +2 -2
- mage_ai/server/frontend_dist/sign-in.html +14 -14
- mage_ai/server/frontend_dist/terminal.html +5 -5
- mage_ai/server/frontend_dist/test.html +3 -3
- mage_ai/server/frontend_dist/triggers.html +5 -5
- mage_ai/tests/api/operations/test_syncs.py +97 -0
- mage_ai/tests/data_preparation/models/test_block.py +20 -14
- mage_ai/tests/orchestration/test_pipeline_scheduler.py +23 -2
- {mage_ai-0.8.80.dist-info → mage_ai-0.8.82.dist-info}/METADATA +2 -1
- {mage_ai-0.8.80.dist-info → mage_ai-0.8.82.dist-info}/RECORD +91 -85
- mage_ai/server/frontend_dist/_next/static/K62oaHK5x3k16vVxdvIWf/_buildManifest.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1005-38fa861ca54679db.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3077-187a4db6073d95df.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/547-833b70469e82cb2b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5540-1025c6b3e65558b3.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/6567-2488118bb39a9d99.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/8957-6edafc5a2521efdf.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/9129-8ae88897c3817909.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-eba67ac0edfdea1b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipeline-runs-128dd171c6fff7ac.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-d90d32812b2be89e.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-7635e7031335de0f.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-3c42f05001416811.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-c73dab1d63317556.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/account/profile-f5626eb662337ad5.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-292e840e9386335e.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/sync-data-353dc1ef2fadf70b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users-cd838435ed1b8383.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-d15ea617ef145b32.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-df30a0006fd775b8.js +0 -1
- /mage_ai/server/frontend_dist/_next/static/{K62oaHK5x3k16vVxdvIWf → QB08hs4sID1RqTCyVc19P}/_middlewareManifest.js +0 -0
- /mage_ai/server/frontend_dist/_next/static/{K62oaHK5x3k16vVxdvIWf → QB08hs4sID1RqTCyVc19P}/_ssgManifest.js +0 -0
- {mage_ai-0.8.80.dist-info → mage_ai-0.8.82.dist-info}/LICENSE +0 -0
- {mage_ai-0.8.80.dist-info → mage_ai-0.8.82.dist-info}/WHEEL +0 -0
- {mage_ai-0.8.80.dist-info → mage_ai-0.8.82.dist-info}/entry_points.txt +0 -0
- {mage_ai-0.8.80.dist-info → mage_ai-0.8.82.dist-info}/top_level.txt +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4947],{44162:function(n,e,t){"use strict";t.d(e,{HC:function(){return y},Kf:function(){return s},Nk:function(){return f},PY:function(){return p},gE:function(){return b},jv:function(){return h},nz:function(){return m},oh:function(){return l},qn:function(){return d},t1:function(){return v},y9:function(){return g}});var r=t(9518),o=t(23831),i=t(86422),c=t(73942),u=t(49125),a=t(90880),l=68;function d(n,e){var t,r,c=((null===e||void 0===e||null===(t=e.theme)||void 0===t?void 0:t.borders)||o.Z.borders).light,u=((null===e||void 0===e||null===(r=e.theme)||void 0===r?void 0:r.monotone)||o.Z.monotone).grey500,a=e||{},l=a.blockColor,d=a.isSelected,s=a.theme;return d?c=(s||o.Z).content.active:i.tf.TRANSFORMER===n||l===i.Lq.PURPLE?(c=(s||o.Z).accent.purple,u=(s||o.Z).accent.purpleLight):i.tf.DATA_EXPORTER===n||l===i.Lq.YELLOW?(c=(s||o.Z).accent.yellow,u=(s||o.Z).accent.yellowLight):i.tf.DATA_LOADER===n||l===i.Lq.BLUE?(c=(s||o.Z).accent.blue,u=(s||o.Z).accent.blueLight):i.tf.MARKDOWN===n?(c=(s||o.Z).accent.sky,u=(s||o.Z).accent.skyLight):i.tf.SENSOR===n||l===i.Lq.PINK?(c=(s||o.Z).accent.pink,u=(s||o.Z).accent.pinkLight):i.tf.DBT===n?(c=(s||o.Z).accent.dbt,u=(s||o.Z).accent.dbtLight):i.tf.EXTENSION===n||l===i.Lq.TEAL?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).teal,u=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).tealLight):i.tf.CALLBACK===n?(c=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).rose,u=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).roseLight):(i.tf.SCRATCHPAD===n||l===i.Lq.GREY||i.tf.CUSTOM===n&&!l)&&(c=(s||o.Z).content.default,u=(s||o.Z).accent.contentDefaultTransparent),{accent:c,accentLight:u}}var s=(0,r.css)([""," "," "," "," "," "," ",""],(0,a.eR)(),(function(n){return!n.selected&&!n.hasError&&"\n border-color: ".concat(d(n.blockType,n).accentLight,";\n ")}),(function(n){return n.selected&&!n.hasError&&"\n border-color: ".concat(d(n.blockType,n).accent,";\n ")}),(function(n){return!n.selected&&n.hasError&&"\n border-color: ".concat((n.theme.accent||o.Z.accent).negativeTransparent,";\n ")}),(function(n){return n.selected&&n.hasError&&"\n border-color: ".concat((n.theme.borders||o.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=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-s5rj34-0"})(["border-radius:","px;position:relative;"],c.n_),p=r.default.div.withConfig({displayName:"indexstyle__HiddenBlockContainerStyle",componentId:"sc-s5rj34-1"})([""," border-radius:","px;border-style:",";border-width:","px;",""],s,c.n_,c.M8,c.mP,(function(n){return"\n background-color: ".concat((n.theme||o.Z).background.content,";\n\n &:hover {\n border-color: ").concat(d(n.blockType,n).accent,";\n }\n ")})),m=r.default.div.withConfig({displayName:"indexstyle__BlockHeaderStyle",componentId:"sc-s5rj34-2"})([""," border-top-left-radius:","px;border-top-right-radius:","px;border-top-style:",";border-top-width:","px;border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding:","px;position:sticky;top:-5px;"," "," ",""],s,c.n_,c.n_,c.M8,c.mP,c.M8,c.mP,c.M8,c.mP,u.iI,(function(n){return"\n background-color: ".concat((n.theme||o.Z).background.content,";\n ")}),(function(n){return n.bottomBorder&&"\n border-bottom: ".concat(c.YF,"px ").concat(c.M8," ").concat((n.theme||o.Z).borders.medium2,";\n ")}),(function(n){return n.zIndex&&"\n z-index: ".concat(6+(n.zIndex||0),";\n ")})),h=r.default.div.withConfig({displayName:"indexstyle__CodeContainerStyle",componentId:"sc-s5rj34-3"})([""," border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding-bottom:","px;padding-top:","px;position:relative;"," "," "," .line-numbers{opacity:0;}&.selected{.line-numbers{opacity:1 !important;}}"],s,c.M8,c.mP,c.M8,c.mP,u.iI,u.iI,(function(n){return"\n background-color: ".concat((n.theme.background||o.Z.background).codeTextarea,";\n ")}),(function(n){return n.lightBackground&&"\n background-color: ".concat((n.theme||o.Z).background.content,";\n ")}),(function(n){return!n.hasOutput&&"\n border-bottom-left-radius: ".concat(c.n_,"px;\n border-bottom-right-radius: ").concat(c.n_,"px;\n border-bottom-style: ").concat(c.M8,";\n border-bottom-width: ").concat(c.mP,"px;\n ")})),b=r.default.div.withConfig({displayName:"indexstyle__BlockDivider",componentId:"sc-s5rj34-4"})(["align-items:center;display:flex;height:","px;justify-content:center;position:relative;z-index:8;bottom:","px;&:hover{"," .block-divider-inner{","}}"],2*u.iI,.5*u.iI,(function(n){return n.additionalZIndex>0&&"\n z-index: ".concat(8+n.additionalZIndex,";\n ")}),(function(n){return"\n background-color: ".concat((n.theme.text||o.Z.text).fileBrowser,";\n ")})),v=r.default.div.withConfig({displayName:"indexstyle__BlockDividerInner",componentId:"sc-s5rj34-5"})(["height 1px;width:100%;position:absolute;z-index:-1;top:","px;"],1.5*u.iI),g=r.default.div.withConfig({displayName:"indexstyle__CodeHelperStyle",componentId:"sc-s5rj34-6"})(["margin-bottom:","px;padding-bottom:","px;",""],u.cd*u.iI,u.iI,(function(n){return"\n border-bottom: 1px solid ".concat((n.theme.borders||o.Z.borders).medium,";\n padding-left: ").concat(n.normalPadding?u.iI:l,"px;\n ")})),y=r.default.div.withConfig({displayName:"indexstyle__TimeTrackerStyle",componentId:"sc-s5rj34-7"})(["bottom:","px;left:","px;position:absolute;"],1*u.iI,l)},92953:function(n,e,t){"use strict";var r;t.d(e,{C:function(){return o},a:function(){return r}}),function(n){n.BLOCK_RUNS="block_runs",n.BLOCK_RUNTIME="block_runtime",n.PIPELINE_RUNS="pipeline_runs"}(r||(r={}));var o=-50},87465:function(n,e,t){"use strict";t.d(e,{Z:function(){return b}});t(82684);var r=t(34376),o=t(87372),i=t(60547),c=t(86673),u=t(19711),a=t(2850),l=t(9518),d=t(23831),s=t(49125),f=l.default.div.withConfig({displayName:"indexstyle__LinkStyle",componentId:"sc-1in9sst-0"})(["padding:","px ","px;"," ",""],s.iI,s.tr,(function(n){return n.selected&&"\n background-color: ".concat((n.theme.interactive||d.Z.interactive).checked,";\n ")}),(function(n){return!n.selected&&"\n cursor: pointer;\n "})),p=t(92953),m=t(59920),h=t(28598);var b=function(n){var e=n.breadcrumbs,t=n.children,l=n.errors,d=n.monitorType,b=n.pipeline,v=n.setErrors,g=n.subheader,y=(0,r.useRouter)();return(0,h.jsx)(i.Z,{before:(0,h.jsxs)(a.M,{children:[(0,h.jsx)(c.Z,{p:s.cd,children:(0,h.jsx)(o.Z,{level:4,muted:!0,children:"Insights"})}),(0,h.jsx)(f,{onClick:function(n){n.preventDefault(),y.push("/pipelines/[pipeline]/monitors","/pipelines/".concat(null===b||void 0===b?void 0:b.uuid,"/monitors"))},selected:p.a.PIPELINE_RUNS==d,children:(0,h.jsx)(u.ZP,{children:"Pipeline runs"})}),(0,h.jsx)(f,{onClick:function(n){n.preventDefault(),y.push("/pipelines/[pipeline]/monitors/block-runs","/pipelines/".concat(null===b||void 0===b?void 0:b.uuid,"/monitors/block-runs"))},selected:p.a.BLOCK_RUNS==d,children:(0,h.jsx)(u.ZP,{children:"Block runs"})}),(0,h.jsx)(f,{onClick:function(n){n.preventDefault(),y.push("/pipelines/[pipeline]/monitors/block-runtime","/pipelines/".concat(null===b||void 0===b?void 0:b.uuid,"/monitors/block-runtime"))},selected:p.a.BLOCK_RUNTIME==d,children:(0,h.jsx)(u.ZP,{children:"Block runtime"})})]}),breadcrumbs:e,errors:l,pageName:m.M.MONITOR,pipeline:b,setErrors:v,subheader:g,uuid:"pipeline/monitor",children:t})}},2850:function(n,e,t){"use strict";t.d(e,{M:function(){return c},W:function(){return i}});var r=t(9518),o=t(3055),i=34*t(49125).iI,c=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);"],o.Mz)},45739:function(n,e,t){"use strict";t.d(e,{K:function(){return o}});var r=t(31969),o=function(n){var e=n||r.Z,t=e.brand,o=t.earth200,i=t.earth300,c=t.earth400,u=t.energy200,a=t.energy300,l=t.energy400,d=t.fire200,s=t.fire300,f=t.fire400,p=t.water200,m=t.water300,h=t.water400,b=t.wind200,v=t.wind300,g=t.wind400,y=e.chart;return[y.backgroundPrimary,y.backgroundSecondary,y.backgroundTertiary].concat([g,h,f,l,c,v,m,s,a,i,b,p,d,u,o])}},52359:function(n,e,t){"use strict";var r=t(9518).default.div.withConfig({displayName:"YAxisLabelContainer",componentId:"sc-qwp21x-0"})(["-webkit-transform:rotate(-90deg);-moz-transform:rotate(-90deg);-o-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg);white-space:nowrap;"]);e.Z=r},344:function(n,e,t){"use strict";t.d(e,{P5:function(){return o},Vs:function(){return i}});t(90211);var r=Intl.NumberFormat("en-US",{notation:"compact",maximumFractionDigits:2});function o(n){return"number"!==typeof n?n:n>=1e4?r.format(n):n.toString()}function i(n,e,t){var r,o;if("undefined"===typeof n||"undefined"===typeof e)return 0;var i=null===n||void 0===n||null===(r=n(e,t))||void 0===r||null===(o=r.props)||void 0===o?void 0:o.children;return(Array.isArray(i)?i:[i]).join("").length}},86422:function(n,e,t){"use strict";t.d(e,{$W:function(){return p},DA:function(){return f},HX:function(){return b},J8:function(){return h},L8:function(){return c},Lq:function(){return d},Qj:function(){return v},Ut:function(){return A},V4:function(){return O},VZ:function(){return m},dO:function(){return s},f2:function(){return y},iZ:function(){return g},t6:function(){return u},tf:function(){return l}});var r,o,i,c,u,a=t(82394);!function(n){n.DYNAMIC="dynamic",n.DYNAMIC_CHILD="dynamic_child",n.REDUCE_OUTPUT="reduce_output"}(c||(c={})),function(n){n.MARKDOWN="markdown",n.PYTHON="python",n.R="r",n.SQL="sql",n.YAML="yaml"}(u||(u={}));var l,d,s=(r={},(0,a.Z)(r,u.MARKDOWN,"MD"),(0,a.Z)(r,u.PYTHON,"PY"),(0,a.Z)(r,u.R,"R"),(0,a.Z)(r,u.SQL,"SQL"),(0,a.Z)(r,u.YAML,"YAML"),r);!function(n){n.CALLBACK="callback",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.MARKDOWN="markdown",n.TRANSFORMER="transformer"}(l||(l={})),function(n){n.BLUE="blue",n.GREY="grey",n.PINK="pink",n.PURPLE="purple",n.TEAL="teal",n.YELLOW="yellow"}(d||(d={}));var f,p=[l.CHART,l.CUSTOM,l.DATA_EXPORTER,l.DATA_LOADER,l.SCRATCHPAD,l.SENSOR,l.MARKDOWN,l.TRANSFORMER],m=[l.DATA_EXPORTER,l.DATA_LOADER],h=[l.DATA_EXPORTER,l.DATA_LOADER,l.TRANSFORMER],b=[l.DATA_EXPORTER,l.DATA_LOADER,l.DBT,l.TRANSFORMER],v=[l.CHART,l.SCRATCHPAD,l.SENSOR,l.MARKDOWN],g=[l.CALLBACK,l.CHART,l.EXTENSION,l.SCRATCHPAD,l.MARKDOWN];!function(n){n.EXECUTED="executed",n.FAILED="failed",n.NOT_EXECUTED="not_executed",n.UPDATED="updated"}(f||(f={}));var y=[l.CUSTOM,l.DATA_EXPORTER,l.DATA_LOADER,l.TRANSFORMER],O=(o={},(0,a.Z)(o,l.EXTENSION,"Callback"),(0,a.Z)(o,l.CUSTOM,"Custom"),(0,a.Z)(o,l.DATA_EXPORTER,"Data exporter"),(0,a.Z)(o,l.DATA_LOADER,"Data loader"),(0,a.Z)(o,l.EXTENSION,"Extension"),(0,a.Z)(o,l.SCRATCHPAD,"Scratchpad"),(0,a.Z)(o,l.SENSOR,"Sensor"),(0,a.Z)(o,l.MARKDOWN,"Markdown"),(0,a.Z)(o,l.TRANSFORMER,"Transformer"),o),A=[l.DATA_LOADER,l.TRANSFORMER,l.DATA_EXPORTER,l.SENSOR];i={},(0,a.Z)(i,l.DATA_EXPORTER,"DE"),(0,a.Z)(i,l.DATA_LOADER,"DL"),(0,a.Z)(i,l.SCRATCHPAD,"SP"),(0,a.Z)(i,l.SENSOR,"SR"),(0,a.Z)(i,l.MARKDOWN,"MD"),(0,a.Z)(i,l.TRANSFORMER,"TF")},34744:function(n,e,t){"use strict";var r=t(82394),o=t(26304),i=(t(82684),t(9518)),c=t(86673),u=t(23831),a=t(49125),l=t(28598),d=["short"];function s(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function f(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?s(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var p=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 "})),m=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||u.Z.monotone).grey200,";\n ")}),(function(n){return n.muted&&"\n background-color: ".concat((n.theme.monotone||u.Z.monotone).grey500,";\n ")}),(function(n){return n.light&&"\n background-color: ".concat((n.theme.borders||u.Z.borders).light,";\n ")}),(function(n){return n.medium&&"\n background-color: ".concat((n.theme.borders||u.Z.borders).medium,";\n ")}),(function(n){return n.prominent&&"\n background-color: ".concat((n.theme.monotone||u.Z.monotone).grey300,";\n ")}),(function(n){return n.black&&"\n background-color: ".concat((n.theme.monotone||u.Z.monotone).black,";\n ")})),h=function(n){var e=n.short,t=(0,o.Z)(n,d);return(0,l.jsx)(p,{short:e,children:(0,l.jsx)(c.Z,f(f({},t),{},{children:(0,l.jsx)(m,f({},t))}))})};h.defaultProps={short:!1},e.Z=h},68805:function(n,e,t){"use strict";t.r(e);var r=t(77837),o=t(75582),i=t(82394),c=t(38860),u=t.n(c),a=t(82684),l=t(92083),d=t.n(l),s=t(16634),f=t(67971),p=t(87372),m=t(68735),h=t(87465),b=t(41788),v=t(86673),g=t(55378),y=t(19711),O=t(82531),A=t(23831),x=t(73942),R=t(43032),E=t(92953),T=t(9518),Z=t(44162),_=t(24224),k=t(28598);function w(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function D(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?w(Object(t),!0).forEach((function(e){(0,i.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):w(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function C(n){var e=n.pipeline,t=(0,a.useContext)(T.ThemeContext),r=(0,a.useState)(null),c=r[0],u=r[1],l=e.uuid,b=O.ZP.pipelines.detail(l,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,w=(0,a.useMemo)((function(){return D(D({},null===b||void 0===b?void 0:b.pipeline),{},{uuid:l})}),[b,l]),C=O.ZP.pipeline_schedules.pipelines.list(l).data,N=(0,a.useMemo)((function(){return null===C||void 0===C?void 0:C.pipeline_schedules}),[C]),S=(0,a.useMemo)((function(){return(0,_.HK)(null===w||void 0===w?void 0:w.blocks,(function(n){return n.uuid}))||{}}),[w]),P={pipeline_uuid:l};(c||0===c)&&(P.pipeline_schedule_id=Number(c));var j=O.ZP.monitor_stats.detail("block_run_time",P),L=j.data,M=j.mutate;(0,a.useEffect)((function(){M(c)}),[M,c]);var I=((null===L||void 0===L?void 0:L.monitor_stat)||{}).stats,B=(0,a.useMemo)((function(){for(var n=new Date,e=[],t=0;t<90;t++)e.unshift(n.toISOString().split("T")[0]),n.setDate(n.getDate()-1);return e}),[]),U=(0,a.useMemo)((function(){if(I)return Object.entries(I).reduce((function(n,e){var t=(0,o.Z)(e,2),r=t[0],c=t[1].data;return D(D({},n),{},(0,i.Z)({},r,B.map((function(n){return{x:n,y:n in c?[c[n]]:null}}))))}),{})}),[I]),X=(0,a.useMemo)((function(){var n=[];return n.push({bold:!0,label:function(){return"Monitors"}}),n}),[w]);return(0,k.jsx)(h.Z,{breadcrumbs:X,monitorType:E.a.BLOCK_RUNTIME,pipeline:w,subheader:(0,k.jsx)(f.Z,{children:(0,k.jsxs)(g.Z,{backgroundColor:A.Z.interactive.defaultBackground,label:"Trigger:",onChange:function(n){var e=n.target.value;"initial"!==e?(u(e),M(e)):(M(),u(null))},value:c||"initial",children:[(0,k.jsx)("option",{value:"initial",children:"All"}),N&&N.map((function(n){return(0,k.jsx)("option",{value:n.id,children:n.name},n.id)}))]})}),children:(0,k.jsx)(v.Z,{mx:2,children:U&&Object.entries(U).map((function(n,e){var r,i,c=(0,o.Z)(n,2),u=c[0],a=c[1];return(0,k.jsxs)(v.Z,{mt:2,children:[(0,k.jsxs)(f.Z,{alignItems:"center",children:[(0,k.jsx)(v.Z,{mx:1,children:(0,k.jsx)(s.Z,{color:(0,Z.qn)(null===(r=S[u])||void 0===r?void 0:r.type,{blockColor:null===(i=S[u])||void 0===i?void 0:i.color,theme:t}).accent,size:R.ZG,square:!0})}),(0,k.jsx)(p.Z,{level:4,children:u})]}),(0,k.jsx)("div",{style:{backgroundColor:A.Z.background.chartBlock,borderRadius:"".concat(x.TR,"px"),marginTop:"8px"},children:(0,k.jsx)(m.Z,{data:a,getX:function(n){return d()(n.x).valueOf()},gridProps:{stroke:"black",strokeDasharray:null,strokeOpacity:.2},height:200,hideGridX:!0,margin:{top:10,bottom:30,left:35,right:-1},noCurve:!0,renderXTooltipContent:function(n){return(0,k.jsx)(y.ZP,{center:!0,inverted:!0,small:!0,children:d()(n.x).format("MMM DD")})},renderYTooltipContent:function(n){var e,t=null===n||void 0===n||null===(e=n.y)||void 0===e?void 0:e[0];return void 0!==t&&(0,k.jsxs)(y.ZP,{center:!0,inverted:!0,small:!0,children:[t.toFixed?t.toFixed(3):t,"s"]})},thickStroke:!0,xLabelFormat:function(n){return d()(n).format("MMM DD")},xLabelRotate:!1})})]},"".concat(u,"_").concat(e))}))})})}C.getInitialProps=function(){var n=(0,r.Z)(u().mark((function n(e){var t;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.query.pipeline,n.abrupt("return",{pipeline:{uuid:t}});case 2:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),e.default=(0,b.Z)(C)},90211:function(n,e,t){"use strict";t.d(e,{RA:function(){return d},kC:function(){return s},vg:function(){return g},kE:function(){return E},T3:function(){return A},Mp:function(){return f},Pb:function(){return a},HW:function(){return O},wX:function(){return p},x6:function(){return m},_6:function(){return h},zf:function(){return y},Y6:function(){return R},wE:function(){return T},J3:function(){return b},We:function(){return l},QV:function(){return x},C5:function(){return v}});var r=t(75582),o=t(17717),i=["aged","ancient","autumn","billowing","bitter","black","blue","bold","broken","cold","cool","crimson","damp","dark","dawn","delicate","divine","dry","empty","falling","floral","fragrant","frosty","green","hidden","holy","icy","late","lingering","little","lively","long","misty","morning","muddy","nameless","old","patient","polished","proud","purple","quiet","red","restless","rough","shy","silent","small","snowy","solitary","sparkling","spring","still","summer","throbbing","twilight","wandering","weathered","white","wild","winter","wispy","withered","young"],c=(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 a(n){if(!n)return!1;try{JSON.parse(n)}catch(e){return!1}return!0}function l(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";return n.split(" ").join(e)}function d(n){return n.split(" ").join("_")}function s(n){return n?n.charAt(0).toUpperCase()+n.slice(1):""}function f(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return String((new Date).getTime()*n)}function p(n){return n.charAt(0).toLowerCase()+n.slice(1)}function m(n){if(null===n||"undefined"===typeof n)return"";var e=n.toString().split("."),t=(0,r.Z)(e,2),o=t[0],i=t[1],c=o.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",");return i?"".concat(c,".").concat(i):c}function h(n,e){var t,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=e,i=void 0!==o&&null!==o;if(i||(o=2),1===o)t=n;else{var c=n.length,u=n[c-1];t="y"===u&&"day"!==n?"".concat(n.slice(0,c-1),"ies"):"".concat(n,"s"===u?"es":"s")}if(i){var a=r?m(o):o;return"".concat(a," ").concat(t)}return t}function b(n){return null===n||void 0===n?void 0:n.replace(/_/g," ")}function v(n){var e=n.length;return"ies"===n.slice(e-3,e)?"".concat(n.slice(0,e-3),"y"):"es"===n.slice(e-2,e)&&"ces"!==n.slice(e-3,e)?n.slice(0,e-2):n.slice(0,e-1)}function g(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return s(b(n.toLowerCase()))}function y(n){var e,t=[["second",60],["minute",60],["hour",24],["day",7],["week",4],["month",12],["year",null]];return t.forEach((function(o,i){if(!e){var c=(0,r.Z)(o,2),u=c[0],a=c[1],l=t.slice(0,i).reduce((function(n,e){return n*Number(e[1])}),1);n<Number(a)*l&&(e=h(u,Math.round(n/l)))}})),e}function O(n){return!isNaN(n)}function A(n){return"".concat(m(function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return Math.round((n||0)*Math.pow(100,e))/100}(n)),"%")}function x(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,t=Math.pow(10,e);return Math.round((n||0)*t)/t}function R(){return"".concat((0,u.mp)(i)," ").concat((0,u.mp)(c))}function E(n){return null===n||void 0===n?void 0:n.toLowerCase().replace(/\W+/g,"_")}function T(n){var e,t=n.split(o.sep),r=t[t.length-1].split(".");return e=1===r.length?r[0]:r.slice(0,-1).join("."),t.slice(0,t.length-1).concat(e).join(o.sep)}},76017:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/monitors/block-runtime",function(){return t(68805)}])}},function(n){n.O(0,[3662,844,7607,5896,2714,9832,1424,1005,547,6567,9774,2888,179],(function(){return e=76017,n(n.s=e);var e}));var e=n.O();_N_E=e}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8170],{34744:function(n,e,t){"use strict";var r=t(82394),i=t(26304),o=(t(82684),t(9518)),u=t(86673),c=t(23831),l=t(49125),a=t(28598),s=["short"];function f(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function d(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 p=o.default.div.withConfig({displayName:"Divider__DividerContainerStyle",componentId:"sc-1m7lqco-0"})([""," ",""],(function(n){return n.short&&"\n width: ".concat(21*l.iI,"px;\n ")}),(function(n){return!n.short&&"\n width: 100%;\n "})),g=o.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 ")})),h=function(n){var e=n.short,t=(0,i.Z)(n,s);return(0,a.jsx)(p,{short:e,children:(0,a.jsx)(u.Z,d(d({},t),{},{children:(0,a.jsx)(g,d({},t))}))})};h.defaultProps={short:!1},e.Z=h},70814:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return N}});var r=t(77837),i=t(75582),o=t(82394),u=t(38860),c=t.n(u),l=t(82684),a=t(60547),s=t(41788),f=t(60328),d=t(38341),p=t(67971),g=t(86673),h=t(82944),v=t(11366),b=t(49125),m=t(91427),y=t(90211),w=t(28598);function O(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function j(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?O(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):O(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var k=function(n){var e=n.isPipelineUpdating,t=n.pipeline,r=n.updatePipeline,i=null===t||void 0===t?void 0:t.uuid,u=(0,l.useMemo)((function(){return(null===t||void 0===t?void 0:t.blocks)||[]}),[t]),c=(0,l.useState)((null===t||void 0===t?void 0:t.name)||""),a=c[0],s=c[1],O="".concat(v.g6,"_").concat(i),k=(0,l.useState)({}),P=k[0],_=k[1],Z=(0,l.useCallback)((function(n){_((function(e){var t=n(e);return(0,m.t8)(O,JSON.stringify(t)),t}))}),[O,_]);(0,l.useEffect)((function(){var n=(0,m.U2)(O);n&&(0,y.Pb)(n)&&_(JSON.parse(n))}),[O,_]);var S=(0,l.useMemo)((function(){return(null===u||void 0===u?void 0:u.filter((function(n){var e=n.uuid;return!(null===P||void 0===P||!P[e])}))).length===u.length}),[u,P]),D=(0,l.useMemo)((function(){return!(null!==u&&void 0!==u&&u.length)}),[u]);return(0,w.jsxs)(g.Z,{p:b.cd,children:[(0,w.jsx)(h.Z,{label:"Pipeline name",onChange:function(n){return s(n.target.value)},primary:!0,required:!0,setContentOnMount:!0,value:a}),(0,w.jsx)(g.Z,{mt:5,children:(0,w.jsx)(p.Z,{children:(0,w.jsx)(f.Z,{disabled:a===(null===t||void 0===t?void 0:t.name),loading:e,onClick:function(){return r({name:a})},primary:!0,children:"Save pipeline settings"})})}),(0,w.jsx)(g.Z,{mt:5,children:(0,w.jsx)(d.Z,{checked:S&&!D,disabled:D,label:"Hide all blocks in notebook",onClick:function(){return Z((function(){return S?{}:null===u||void 0===u?void 0:u.reduce((function(n,e){var t=e.uuid;return j(j({},n),{},(0,o.Z)({},t,!0))}),{})}))}})})]})},P=t(82531),_=t(59920),Z=t(83455),S=t(96510);function D(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function E(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}function C(n){var e=n.pipeline,t=(0,l.useState)(null),r=t[0],o=t[1],u=null===e||void 0===e?void 0:e.uuid,c=P.ZP.pipelines.detail(u).data,s=E(E({},null===c||void 0===c?void 0:c.pipeline),e),f=(0,Z.Db)(P.ZP.pipelines.useUpdate(u,{update_content:!0}),{onSuccess:function(n){return(0,S.wD)(n,{callback:function(n){if(null!==n&&void 0!==n&&n.pipeline){var e=n.pipeline.uuid;u!==e&&(window.location.href="/pipelines/".concat(e,"/settings"))}},onErrorCallback:function(n,e){return console.log({errors:e,response:n})}})}}),d=(0,i.Z)(f,2),p=d[0],g=d[1].isLoading;return(0,w.jsx)(a.Z,{breadcrumbs:[{label:function(){return"Settings"}}],errors:r,pageName:_.M.SETTINGS,pipeline:s,setErrors:o,title:function(n){var e=n.name;return"".concat(e," settings")},uuid:"".concat(_.M.SETTINGS,"_").concat(u),children:c&&(0,w.jsx)(k,{isPipelineUpdating:g,pipeline:s,updatePipeline:function(n){return p({pipeline:n})}})})}C.getInitialProps=function(){var n=(0,r.Z)(c().mark((function n(e){var t;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.query.pipeline,n.abrupt("return",{pipeline:{uuid:t}});case 2:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}();var N=(0,s.Z)(C)},11366:function(n,e,t){"use strict";t.d(e,{H8:function(){return i},g6:function(){return o},kY:function(){return r}});var r="automatically_name_blocks",i="pipeline_edit_before_tab_selected",o="pipeline_edit_hidden_blocks"},90211:function(n,e,t){"use strict";t.d(e,{RA:function(){return s},kC:function(){return f},vg:function(){return m},kE:function(){return P},T3:function(){return O},Mp:function(){return d},Pb:function(){return l},HW:function(){return w},wX:function(){return p},x6:function(){return g},_6:function(){return h},zf:function(){return y},Y6:function(){return k},wE:function(){return _},J3:function(){return v},We:function(){return a},QV:function(){return j},C5:function(){return b}});var r=t(75582),i=t(17717),o=["aged","ancient","autumn","billowing","bitter","black","blue","bold","broken","cold","cool","crimson","damp","dark","dawn","delicate","divine","dry","empty","falling","floral","fragrant","frosty","green","hidden","holy","icy","late","lingering","little","lively","long","misty","morning","muddy","nameless","old","patient","polished","proud","purple","quiet","red","restless","rough","shy","silent","small","snowy","solitary","sparkling","spring","still","summer","throbbing","twilight","wandering","weathered","white","wild","winter","wispy","withered","young"],u=(t(92083),["bird","breeze","brook","bush","butterfly","cherry","cloud","darkness","dawn","dew","dream","dust","feather","field","fire","firefly","flower","fog","forest","frog","frost","glade","glitter","grass","haze","hill","lake","leaf","meadow","moon","morning","mountain","night","paper","pine","pond","rain","resonance","river","sea","shadow","shape","silence","sky","smoke","snow","snowflake","sound","star","sun","sun","sunset","surf","thunder","tree","violet","voice","water","water","waterfall","wave","wildflower","wind","wood"]),c=t(24224);function l(n){if(!n)return!1;try{JSON.parse(n)}catch(e){return!1}return!0}function a(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";return n.split(" ").join(e)}function s(n){return n.split(" ").join("_")}function f(n){return n?n.charAt(0).toUpperCase()+n.slice(1):""}function d(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return String((new Date).getTime()*n)}function p(n){return n.charAt(0).toLowerCase()+n.slice(1)}function g(n){if(null===n||"undefined"===typeof n)return"";var e=n.toString().split("."),t=(0,r.Z)(e,2),i=t[0],o=t[1],u=i.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",");return o?"".concat(u,".").concat(o):u}function h(n,e){var t,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=e,o=void 0!==i&&null!==i;if(o||(i=2),1===i)t=n;else{var 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(o){var l=r?g(i):i;return"".concat(l," ").concat(t)}return t}function v(n){return null===n||void 0===n?void 0:n.replace(/_/g," ")}function b(n){var e=n.length;return"ies"===n.slice(e-3,e)?"".concat(n.slice(0,e-3),"y"):"es"===n.slice(e-2,e)&&"ces"!==n.slice(e-3,e)?n.slice(0,e-2):n.slice(0,e-1)}function m(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return f(v(n.toLowerCase()))}function y(n){var e,t=[["second",60],["minute",60],["hour",24],["day",7],["week",4],["month",12],["year",null]];return t.forEach((function(i,o){if(!e){var u=(0,r.Z)(i,2),c=u[0],l=u[1],a=t.slice(0,o).reduce((function(n,e){return n*Number(e[1])}),1);n<Number(l)*a&&(e=h(c,Math.round(n/a)))}})),e}function w(n){return!isNaN(n)}function O(n){return"".concat(g(function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return Math.round((n||0)*Math.pow(100,e))/100}(n)),"%")}function j(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,t=Math.pow(10,e);return Math.round((n||0)*t)/t}function k(){return"".concat((0,c.mp)(o)," ").concat((0,c.mp)(u))}function P(n){return null===n||void 0===n?void 0:n.toLowerCase().replace(/\W+/g,"_")}function _(n){var e,t=n.split(i.sep),r=t[t.length-1].split(".");return e=1===r.length?r[0]:r.slice(0,-1).join("."),t.slice(0,t.length-1).concat(e).join(i.sep)}},59606:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/settings",function(){return t(70814)}])}},function(n){n.O(0,[844,7607,1424,1005,547,9774,2888,179],(function(){return e=59606,n(n.s=e);var e}));var e=n.O();_N_E=e}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1221],{1210:function(e,n,t){"use strict";t.d(n,{Z:function(){return P}});var i=t(82394),r=t(21831),o=t(82684),c=t(47999),l=t(49894),u=t(93461),a=t(57384),s=t(41424),d=t(72454),p=t(28598);function f(e,n){var t=e.children;return(0,p.jsx)(d.HS,{ref:n,children:t})}var h=o.forwardRef(f),m=t(32063),b=t(85019),g=t(82531),v=t(66166),x=t(3055),y=t(49125),j=t(91427),O=t(24141);function Z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function w(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,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var P=function(e){var n,t=e.after,i=e.afterHidden,f=e.afterWidth,Z=e.afterWidthOverride,P=e.before,C=e.beforeWidth,k=e.breadcrumbs,E=e.children,S=e.errors,T=e.headerMenuItems,A=e.navigationItems,I=e.setErrors,R=e.subheaderChildren,_=e.title,D=e.uuid,N=(0,O.i)().width,M="dashboard_after_width_".concat(D),L="dashboard_before_width_".concat(D),H=(0,o.useRef)(null),B=(0,o.useState)(Z?f:(0,j.U2)(M,f)),Y=B[0],W=B[1],V=(0,o.useState)(!1),z=V[0],U=V[1],F=(0,o.useState)(P?Math.max((0,j.U2)(L,C),13*y.iI):null),G=F[0],K=F[1],X=(0,o.useState)(!1),q=X[0],Q=X[1],J=(0,o.useState)(null)[1],$=g.ZP.projects.list({},{revalidateOnFocus:!1}).data,ee=null===$||void 0===$?void 0:$.projects,ne=[];k?ne.push.apply(ne,(0,r.Z)(k)):(null===ee||void 0===ee?void 0:ee.length)>=1&&ne.push.apply(ne,[{label:function(){var e;return null===(e=ee[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},{bold:!0,label:function(){return _}}]),(0,o.useEffect)((function(){null===H||void 0===H||!H.current||z||q||null===J||void 0===J||J(H.current.getBoundingClientRect().width)}),[z,Y,q,G,H,J,N]),(0,o.useEffect)((function(){z||(0,j.t8)(M,Y)}),[i,z,Y,M]),(0,o.useEffect)((function(){q||(0,j.t8)(L,G)}),[q,G,L]);var te=(0,v.Z)(f);return(0,o.useEffect)((function(){Z&&te!==f&&W(f)}),[Z,f,te]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(a.Z,{title:_}),(0,p.jsx)(s.Z,{breadcrumbs:ne,menuItems:T,project:null===ee||void 0===ee?void 0:ee[0],version:null===ee||void 0===ee||null===(n=ee[0])||void 0===n?void 0:n.version}),(0,p.jsxs)(d.Nk,{children:[0!==(null===A||void 0===A?void 0:A.length)&&(0,p.jsx)(d.lm,{showMore:!0,children:(0,p.jsx)(b.Z,{navigationItems:A,showMore:!0})}),(0,p.jsx)(u.Z,{flex:1,flexDirection:"column",children:(0,p.jsxs)(m.Z,{after:t,afterHeightOffset:x.Mz,afterHidden:i,afterMousedownActive:z,afterWidth:Y,before:P,beforeHeightOffset:x.Mz,beforeMousedownActive:q,beforeWidth:d.k1+(P?G:0),hideAfterCompletely:!0,leftOffset:P?d.k1:null,mainContainerRef:H,setAfterMousedownActive:U,setAfterWidth:W,setBeforeMousedownActive:Q,setBeforeWidth:K,children:[R&&(0,p.jsx)(h,{children:R}),E]})})]}),S&&(0,p.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===I||void 0===I?void 0:I(null)},children:(0,p.jsx)(l.Z,w(w({},S),{},{onClose:function(){return null===I||void 0===I?void 0:I(null)}}))})]})}},86422:function(e,n,t){"use strict";t.d(n,{$W:function(){return f},DA:function(){return p},HX:function(){return b},J8:function(){return m},L8:function(){return c},Lq:function(){return s},Qj:function(){return g},Ut:function(){return j},V4:function(){return y},VZ:function(){return h},dO:function(){return d},f2:function(){return x},iZ:function(){return v},t6:function(){return l},tf:function(){return a}});var i,r,o,c,l,u=t(82394);!function(e){e.DYNAMIC="dynamic",e.DYNAMIC_CHILD="dynamic_child",e.REDUCE_OUTPUT="reduce_output"}(c||(c={})),function(e){e.MARKDOWN="markdown",e.PYTHON="python",e.R="r",e.SQL="sql",e.YAML="yaml"}(l||(l={}));var a,s,d=(i={},(0,u.Z)(i,l.MARKDOWN,"MD"),(0,u.Z)(i,l.PYTHON,"PY"),(0,u.Z)(i,l.R,"R"),(0,u.Z)(i,l.SQL,"SQL"),(0,u.Z)(i,l.YAML,"YAML"),i);!function(e){e.CALLBACK="callback",e.CHART="chart",e.CUSTOM="custom",e.DATA_EXPORTER="data_exporter",e.DATA_LOADER="data_loader",e.DBT="dbt",e.EXTENSION="extension",e.SCRATCHPAD="scratchpad",e.SENSOR="sensor",e.MARKDOWN="markdown",e.TRANSFORMER="transformer"}(a||(a={})),function(e){e.BLUE="blue",e.GREY="grey",e.PINK="pink",e.PURPLE="purple",e.TEAL="teal",e.YELLOW="yellow"}(s||(s={}));var p,f=[a.CHART,a.CUSTOM,a.DATA_EXPORTER,a.DATA_LOADER,a.SCRATCHPAD,a.SENSOR,a.MARKDOWN,a.TRANSFORMER],h=[a.DATA_EXPORTER,a.DATA_LOADER],m=[a.DATA_EXPORTER,a.DATA_LOADER,a.TRANSFORMER],b=[a.DATA_EXPORTER,a.DATA_LOADER,a.DBT,a.TRANSFORMER],g=[a.CHART,a.SCRATCHPAD,a.SENSOR,a.MARKDOWN],v=[a.CALLBACK,a.CHART,a.EXTENSION,a.SCRATCHPAD,a.MARKDOWN];!function(e){e.EXECUTED="executed",e.FAILED="failed",e.NOT_EXECUTED="not_executed",e.UPDATED="updated"}(p||(p={}));var x=[a.CUSTOM,a.DATA_EXPORTER,a.DATA_LOADER,a.TRANSFORMER],y=(r={},(0,u.Z)(r,a.EXTENSION,"Callback"),(0,u.Z)(r,a.CUSTOM,"Custom"),(0,u.Z)(r,a.DATA_EXPORTER,"Data exporter"),(0,u.Z)(r,a.DATA_LOADER,"Data loader"),(0,u.Z)(r,a.EXTENSION,"Extension"),(0,u.Z)(r,a.SCRATCHPAD,"Scratchpad"),(0,u.Z)(r,a.SENSOR,"Sensor"),(0,u.Z)(r,a.MARKDOWN,"Markdown"),(0,u.Z)(r,a.TRANSFORMER,"Transformer"),r),j=[a.DATA_LOADER,a.TRANSFORMER,a.DATA_EXPORTER,a.SENSOR];o={},(0,u.Z)(o,a.DATA_EXPORTER,"DE"),(0,u.Z)(o,a.DATA_LOADER,"DL"),(0,u.Z)(o,a.SCRATCHPAD,"SP"),(0,u.Z)(o,a.SENSOR,"SR"),(0,u.Z)(o,a.MARKDOWN,"MD"),(0,u.Z)(o,a.TRANSFORMER,"TF")},93348:function(e,n,t){"use strict";t.d(n,{TR:function(){return d},U5:function(){return u},Xm:function(){return o},Z4:function(){return s},fq:function(){return l},kJ:function(){return a}});var i,r,o,c=t(82394);!function(e){e.API="api",e.EVENT="event",e.TIME="time"}(o||(o={}));var l,u,a,s=(i={},(0,c.Z)(i,o.API,(function(){return"API"})),(0,c.Z)(i,o.EVENT,(function(){return"event"})),(0,c.Z)(i,o.TIME,(function(){return"schedule"})),i);!function(e){e.ACTIVE="active",e.INACTIVE="inactive"}(l||(l={})),function(e){e.ONCE="@once",e.HOURLY="@hourly",e.DAILY="@daily",e.WEEKLY="@weekly",e.MONTHLY="@monthly"}(u||(u={})),function(e){e.CREATED_AT="created_at",e.NAME="name",e.PIPELINE="pipeline_uuid",e.STATUS="status",e.TYPE="schedule_type"}(a||(a={}));var d=(r={},(0,c.Z)(r,a.CREATED_AT,"Created at"),(0,c.Z)(r,a.NAME,"Name"),(0,c.Z)(r,a.PIPELINE,"Pipeline"),(0,c.Z)(r,a.STATUS,"Status"),(0,c.Z)(r,a.TYPE,"Type"),r)},98781:function(e,n,t){"use strict";t.d(n,{$1:function(){return u},G7:function(){return s},QK:function(){return l},a_:function(){return d},qL:function(){return o},r0:function(){return a}});var i,r,o,c=t(82394);!function(e){e.INTEGRATION="integration",e.PYTHON="python",e.PYSPARK="pyspark",e.STREAMING="streaming"}(o||(o={}));var l,u,a,s=(i={},(0,c.Z)(i,o.INTEGRATION,"Integration"),(0,c.Z)(i,o.PYTHON,"Standard"),(0,c.Z)(i,o.PYSPARK,"PySpark"),(0,c.Z)(i,o.STREAMING,"Streaming"),i);!function(e){e.ACTIVE="active",e.INACTIVE="inactive",e.NO_SCHEDULES="no_schedules",e.RETRY="retry"}(l||(l={})),function(e){e.GROUP="group_by",e.STATUS="status[]",e.TYPE="type[]"}(u||(u={})),function(e){e.STATUS="status",e.TYPE="type"}(a||(a={}));var d=(r={},(0,c.Z)(r,o.PYTHON,"python3"),(0,c.Z)(r,o.PYSPARK,"pysparkkernel"),r)},18283:function(e,n,t){"use strict";var i=t(82394),r=t(26304),o=(t(82684),t(9518)),c=t(23831),l=t(73942),u=t(2005),a=t(49125),s=t(31012),d=t(28598),p=["children"];function f(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function h(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?f(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var m=o.default.p.withConfig({displayName:"Badge__BadgeStyle",componentId:"sc-tfqsp0-0"})(["border-radius:","px;display:inline;font-family:",";margin:0;",";"," "," ",";",";"," "," "," "," "," "," ",""],l.BG,u.ry,s.iD,(function(e){return e.small&&"\n ".concat(s.HC,";\n ")}),(function(e){return e.xxsmall&&"\n font-size: ".concat(s.VK,"px;\n line-height: ").concat(s.VK,"px;\n ")}),(function(e){return!e.regular&&"\n padding: 2px 4px;\n "}),(function(e){return e.regular&&"\n padding: ".concat(1*a.iI,"px ").concat(1.25*a.iI,"px;\n ")}),(function(e){return e.noVerticalPadding&&"\n padding-bottom: 0;\n padding-top: 0;\n "}),(function(e){return!e.disabled&&!e.inverted&&"\n background-color: ".concat((e.theme||c.Z).background.row,";\n color: ").concat((e.theme||c.Z).content.default,";\n ")}),(function(e){return!e.disabled&&e.inverted&&"\n background-color: ".concat((e.theme||c.Z).background.dark,";\n color: ").concat((e.theme||c.Z).content.inverted,";\n ")}),(function(e){return e.cyan&&"\n background-color: ".concat((e.theme||c.Z).accent.cyan,";\n color: ").concat((e.theme||c.Z).monotone.black,";\n ")}),(function(e){return e.disabled&&"\n background-color: ".concat((e.theme||c.Z).feature.disabled,";\n color: ").concat((e.theme||c.Z).content.disabled,";\n ")}),(function(e){return e.quantifier&&"\n border-radius: 34px;\n line-height: 10px;\n padding: 4px 6px;\n "}),(function(e){return e.monospace&&"\n font-family: ".concat(u.Vp,";\n word-break: break-all;\n ")}));n.Z=function(e){var n=e.children,t=(0,r.Z)(e,p);return(0,d.jsx)(m,h(h({},t),{},{children:n}))}},30264:function(e,n,t){"use strict";var i=t(82394),r=t(26304),o=(t(82684),t(47999)),c=t(62084),l=t(28598),u=["children","items","open","onClickCallback","onClickOutside","parentRef","uuid"];function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.children,t=e.items,i=e.open,a=e.onClickCallback,d=e.onClickOutside,p=e.parentRef,f=e.uuid,h=(0,r.Z)(e,u),m=(0,l.jsxs)("div",{style:{position:"relative",zIndex:d?3:2},children:[(0,l.jsx)("div",{ref:p,children:n}),(0,l.jsx)(c.Z,s(s({},h),{},{items:t,onClickCallback:a,open:i,parentRef:p,uuid:f}))]});return d?(0,l.jsx)(o.Z,{onClickOutside:d,open:!0,children:m}):m}},29237:function(e,n,t){"use strict";var i=t(9518),r=t(67971),o=t(86673),c=t(19711),l=t(23831),u=t(73942),a=t(37391),s=t(49125),d=t(28598),p=(0,i.css)(["padding:","px;padding-bottom:","px;padding-top:","px;"],2*s.iI,1.5*s.iI,1.5*s.iI),f=i.default.div.withConfig({displayName:"Panel__PanelStyle",componentId:"sc-1ct8cgl-0"})(["border-radius:","px;overflow:hidden;"," "," "," "," "," "," "," "," "," "," "," ",""],u.n_,(function(e){return e.fullWidth&&"\n width: 100%;\n "}),(function(e){return!e.borderless&&"\n border: 1px solid ".concat((e.theme.interactive||l.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.success&&"\n background-color: ".concat((e.theme.background||l.Z.background).successLight,";\n ")}),(function(e){return e.success&&!e.borderless&&"\n border: 1px solid ".concat((e.theme.background||l.Z.background).success,";\n ")}),(function(e){return!e.dark&&!e.success&&"\n background-color: ".concat((e.theme.background||l.Z.background).panel,";\n ")}),(function(e){return e.dark&&"\n background-color: ".concat((e.theme.background||l.Z.background).content,";\n ")}),(function(e){return!e.fullHeight&&"\n height: fit-content;\n "}),(function(e){return e.maxHeight&&"\n max-height: ".concat(e.maxHeight,";\n ")}),(function(e){return e.maxWidth&&"\n max-width: ".concat(e.maxWidth,"px;\n ")}),(function(e){return e.minWidth&&"\n min-width: ".concat(e.minWidth,"px;\n\n @media (max-width: ").concat(e.minWidth,"px) {\n min-width: 0;\n }\n ")}),(function(e){return e.borderless&&"\n border: none;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),h=i.default.div.withConfig({displayName:"Panel__HeaderStyle",componentId:"sc-1ct8cgl-1"})(["border-top-left-radius:","px;border-top-right-radius:","px;"," "," "," ",""],u.n_,u.n_,(function(e){return"\n background-color: ".concat((e.theme.background||l.Z.background).chartBlock,";\n border-bottom: 1px solid ").concat((e.theme.interactive||l.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),p,(function(e){return e.headerPaddingVertical&&"\n padding-bottom: ".concat(e.headerPaddingVertical,"px;\n padding-top: ").concat(e.headerPaddingVertical,"px;\n ")})),m=i.default.div.withConfig({displayName:"Panel__ContentStyle",componentId:"sc-1ct8cgl-2"})(["overflow-y:auto;padding:","px;height:100%;"," "," "," "," ",""],1.75*s.iI,a.w5,(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),(function(e){return e.maxHeight&&"\n max-height: calc(".concat(e.maxHeight," - ").concat(15*s.iI,"px);\n ")}),(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),b=i.default.div.withConfig({displayName:"Panel__FooterStyle",componentId:"sc-1ct8cgl-3"})(["border-style:",";border-top-width:","px;padding:","px;"],u.M8,u.YF,1.75*s.iI);n.Z=function(e){var n=e.borderless,t=e.children,i=e.containerRef,l=e.contentContainerRef,u=e.dark,a=e.footer,s=e.fullHeight,p=void 0===s||s,g=e.fullWidth,v=void 0===g||g,x=e.header,y=e.headerHeight,j=e.headerIcon,O=e.headerPaddingVertical,Z=e.headerTitle,w=e.maxHeight,P=e.maxWidth,C=e.minWidth,k=e.noPadding,E=e.overflowVisible,S=e.subtitle,T=e.success;return(0,d.jsxs)(f,{borderless:n,dark:u,fullHeight:p,fullWidth:v,maxHeight:w,maxWidth:P,minWidth:C,overflowVisible:E,ref:i,success:T,children:[(x||Z)&&(0,d.jsxs)(h,{headerPaddingVertical:O,height:y,children:[x&&x,Z&&(0,d.jsx)(r.Z,{alignItems:"center",justifyContent:"space-between",children:(0,d.jsxs)(r.Z,{alignItems:"center",children:[j&&j,(0,d.jsx)(o.Z,{ml:j?1:0,children:(0,d.jsx)(c.ZP,{bold:!0,default:!0,children:Z})})]})})]}),(0,d.jsxs)(m,{maxHeight:w,noPadding:k,overflowVisible:E,ref:l,children:[S&&(0,d.jsx)(o.Z,{mb:2,children:(0,d.jsx)(c.ZP,{default:!0,children:S})}),t]}),a&&(0,d.jsx)(b,{children:a})]})}},87372:function(e,n,t){"use strict";var i,r,o,c,l,u,a,s,d=t(82394),p=t(26304),f=t(26653),h=t(9518),m=t(33591),b=t(23831),g=t(2005),v=t(31012),x=t(19711),y=t(49125),j=t(86673),O=t(28598),Z=["children","condensed","inline","level","marketing","spacingBelow"];function w(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function P(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?w(Object(t),!0).forEach((function(n){(0,d.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):w(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var C=(0,h.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],x.IH,(function(e){return e.color&&"\n color: ".concat(e.color,"\n ")}),(function(e){return e.yellow&&"\n color: ".concat((e.theme.accent||b.Z.accent).yellow,";\n ")}),(function(e){return e.center&&"\n text-align: center;\n "}),(function(e){return!e.monospace&&0===Number(e.weightStyle)&&"\n font-family: ".concat(g.iI,";\n ")}),(function(e){return!e.monospace&&1===Number(e.weightStyle)&&"\n font-family: ".concat(g.LX,";\n ")}),(function(e){return!e.monospace&&2===Number(e.weightStyle)&&"\n font-family: ".concat(g.LX,";\n ")}),(function(e){return!e.monospace&&3===Number(e.weightStyle)&&"\n font-family: ".concat(g.ry,";\n ")}),(function(e){return!e.monospace&&4===Number(e.weightStyle)&&"\n font-family: ".concat(g.YC,";\n ")}),(function(e){return!e.monospace&&5===Number(e.weightStyle)&&"\n font-family: ".concat(g.nF,";\n ")}),(function(e){return!e.monospace&&(6===Number(e.weightStyle)||e.bold)&&"\n font-family: ".concat(g.nF,";\n ")}),(function(e){return!e.monospace&&7===Number(e.weightStyle)&&"\n font-family: ".concat(g.nF,";\n ")}),(function(e){return!e.monospace&&8===Number(e.weightStyle)&&"\n font-family: ".concat(g.nF,";\n ")}),(function(e){return e.lineHeightAuto&&"\n line-height: normal !important;\n "})),k=h.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(e){return"\n color: ".concat((e.theme.content||b.Z.content).active,";\n ")})),E=h.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],C,m.media.md(i||(i=(0,f.Z)(["\n ","\n "])),v.aQ),m.media.lg(r||(r=(0,f.Z)(["\n ","\n "])),v.aQ),m.media.xl(o||(o=(0,f.Z)(["\n ","\n "])),v.aQ)),S=h.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],C,v.MJ),T=h.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],C,m.media.xs(c||(c=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*y.iI,7*y.iI),m.media.sm(l||(l=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*y.iI,7*y.iI),m.media.md(u||(u=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*y.iI,7*y.iI),m.media.lg(a||(a=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*y.iI,7*y.iI),m.media.xl(s||(s=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*y.iI,7*y.iI)),A=h.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],C,v.BL),I=h.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],C),R=h.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],C),_=h.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],C),D=h.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],C,(function(e){return 1===e.level&&"\n ".concat(v.MJ,"\n ")}),(function(e){return 2===e.level&&"\n ".concat(v.BL,"\n ")}),(function(e){return 3===e.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(e){return 4===e.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),N=function(e){var n,t=e.children,i=e.condensed,r=e.inline,o=e.level,c=e.marketing,l=e.spacingBelow,u=(0,p.Z)(e,Z);r?n=D:0===Number(o)?n=E:1===Number(o)?n=c?T:S:2===Number(o)?n=A:3===Number(o)?n=I:4===Number(o)?n=R:5===Number(o)&&(n=_);var a=(0,O.jsxs)(n,P(P({},u),{},{level:o,children:[l&&(0,O.jsx)(j.Z,{mb:i?2:3,children:t}),!l&&t]}));return r?a:(0,O.jsx)(k,{children:a})};N.defaultProps={level:3,weightStyle:6},n.Z=N},46614:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return Ee}});var i=t(77837),r=t(75582),o=t(82394),c=t(38860),l=t.n(c),u=t(12691),a=t.n(u),s=t(83455),d=t(82684),p=t(34376),f=t(60328),h=t(1210),m=t(93461),b=t(67971),g=t(11135),v=t(29237),x=t(86673),y=t(19711),j=t(38435),O=t(82944),Z=t(28598);var w=function(e){var n=e.description,t=e.isLoading,i=e.maxWidth,r=e.minWidth,o=e.noEmptyValue,c=e.onClose,l=e.onSave,u=e.textArea,a=e.title,s=e.value,p=(0,d.useRef)(null),h=(0,d.useState)(s),m=h[0],w=h[1],P=u?j.Z:O.Z;return(0,d.useEffect)((function(){var e;null===p||void 0===p||null===(e=p.current)||void 0===e||e.focus()}),[]),(0,Z.jsxs)(v.Z,{maxWidth:i,minWidth:r,children:[(0,Z.jsx)(y.ZP,{bold:!0,children:a}),(0,Z.jsx)(x.Z,{mt:1,children:(0,Z.jsx)(P,{monospace:!0,onChange:function(e){return w(e.target.value)},ref:p,rows:u?7:null,value:m})}),n&&(0,Z.jsx)(x.Z,{mt:2,children:(0,Z.jsx)(y.ZP,{muted:!0,small:!0,children:n})}),(0,Z.jsx)(x.Z,{mt:3,children:(0,Z.jsxs)(b.Z,{children:[(0,Z.jsx)(g.ZP,{bold:!0,inline:!0,loading:t,onClick:function(){m===s||o&&!m?c():l(m)},outline:!0,primary:!0,uuid:"Inputs/InputModal/SaveInput",children:"Save"}),(0,Z.jsx)(x.Z,{ml:1}),(0,Z.jsx)(f.Z,{onClick:c,children:"Cancel"})]})})]})},P=t(87372),C=t(10919),k=t(98781),E=t(41788),S=t(54283),T=t(58180),A=t(70902),I=t(18283),R=t(47999),_=t(30264),D=t(62609),N=t(9518),M=t(23831),L=t(73942),H=t(37391),B=t(49125),Y=74*B.iI,W=48*B.iI,V=N.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-18n432u-0"})(["position:absolute;border-radius:","px;overflow:hidden;width:","px;display:none;"," "," "," "," ",""],L.n_,Y,(function(e){return"\n background-color: ".concat((e.theme||M.Z).background.panel,";\n border: ").concat(L.mP,"px ").concat(L.M8," ").concat((e.theme||M.Z).interactive.defaultBackground,";\n box-shadow: ").concat((e.theme.shadow||M.Z.shadow).window,";\n ")}),(function(e){return e.display&&"\n display: block;\n "}),(function(e){return e.compact&&"\n width: ".concat(.75*Y,"px;\n ")}),(function(e){return"undefined"!==typeof e.left&&"\n left: ".concat(e.left,"px;\n ")}),(function(e){return"undefined"!==typeof e.top&&"\n top: ".concat(e.top,"px;\n ")})),z=N.default.div.withConfig({displayName:"indexstyle__MainStyle",componentId:"sc-18n432u-1"})(["display:flex;border-radius:","px;overflow:hidden;height:","px;"," ",""],L.n_,W,(function(e){return"\n background-color: ".concat((e.theme||M.Z).background.content,";\n border: ").concat(L.YF,"px ").concat(L.M8," ").concat((e.theme||M.Z).interactive.defaultBackground,";\n ")}),(function(e){return e.compact&&"\n height: ".concat(W/2,"px;\n ")})),U=N.default.aside.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-18n432u-2"})(["width:100%;overflow:auto;"," ",""],H.w5,(function(e){return"\n border-right: ".concat(L.YF,"px ").concat(L.M8," ").concat((e.theme||M.Z).background.panel,";\n ")})),F=N.default.div.withConfig({displayName:"indexstyle__ContentStyle",componentId:"sc-18n432u-3"})(["width:100%;overflow:auto;",""],H.w5),G=(0,N.css)(["display:flex;align-items:center;justify-content:space-between;padding:","px ","px;"],B.iI,2*B.iI),K=N.default.div.withConfig({displayName:"indexstyle__OptionStyle",componentId:"sc-18n432u-4"})([""," padding-top:","px;padding-bottom:","px;&:hover{cursor:pointer;","}",""],G,1.5*B.iI,1.5*B.iI,(function(e){return"\n background-color: ".concat((e.theme||M.Z).monotone.black,";\n ")}),(function(e){return e.highlighted&&"\n background-color: ".concat((e.theme||M.Z).monotone.black,";\n ")})),X=N.default.div.withConfig({displayName:"indexstyle__ToggleValueStyle",componentId:"sc-18n432u-5"})([""," ",""],G,(function(e){return"\n border-bottom: ".concat(L.YF,"px ").concat(L.M8," ").concat((e.theme||M.Z).borders.medium2,";\n ")})),q=t(10503),Q=t(33766),J=t(90211);function $(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function ee(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?$(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):$(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ne,te=function(e){var n,t,i,c=e.children,l=e.compact,u=e.onClickCallback,a=e.onClickOutside,s=e.onSecondaryClick,p=e.open,h=e.options,g=void 0===h?{}:h,v=e.parentRef,j=e.query,O=e.setOpen,w=e.toggleValueMapping,P=(0,d.useState)(null),C=P[0],k=P[1],E=(0,d.useState)(g),S=E[0],T=E[1];(0,d.useEffect)((function(){T(g)}),[g]);var I=((null===v||void 0===v||null===(n=v.current)||void 0===n||null===(t=n.getBoundingClientRect)||void 0===t?void 0:t.call(n))||{}).top,_=void 0===I?0:I,D=Object.keys(g);return(0,Z.jsxs)(R.Z,{onClickOutside:a,open:!0,children:[(0,Z.jsx)("div",{ref:v,children:c}),(0,Z.jsxs)(V,{compact:l,display:p,top:_-5,children:[(0,Z.jsxs)(z,{compact:l,children:[(0,Z.jsx)(m.Z,{flex:"1",children:(0,Z.jsx)(U,{children:D.map((function(e){return(0,Z.jsxs)(K,{highlighted:C===e,onMouseEnter:function(){return k(e)},children:[(0,Z.jsx)(y.ZP,{children:(0,J.kC)(e)}),(0,Z.jsx)(q._Q,{})]},e)}))})}),(0,Z.jsx)(m.Z,{flex:"2",children:(0,Z.jsx)(F,{children:C&&Object.entries((null===(i=S||g)||void 0===i?void 0:i[C])||{}).map((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1];return(0,Z.jsxs)(X,{children:[(0,Z.jsx)(y.ZP,{children:(null===w||void 0===w?void 0:w[t])||(0,J.J3)((0,J.kC)(t))}),(0,Z.jsx)(A.Z,{checked:i,onCheck:function(){return T((function(e){return ee(ee({},e),{},(0,o.Z)({},C,ee(ee({},null===e||void 0===e?void 0:e[C]),{},(0,o.Z)({},t,!i))))}))}})]},t)}))})})]}),(0,Z.jsx)(x.Z,{m:1,children:(0,Z.jsxs)(b.Z,{children:[(0,Z.jsx)(f.Z,{onClick:function(){var e=Object.entries(S).reduce((function(e,n){var t=(0,r.Z)(n,2),i=t[0],o=t[1],c=[];return Object.entries(o).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0];return n[1]&&c.push(t)})),e[i]=c,e}),{});null===u||void 0===u||u(),(0,Q.g_)(j,e,{addingMultipleValues:!0,pushHistory:!0})},secondary:!0,children:"Apply"}),(0,Z.jsx)(x.Z,{mr:1}),(0,Z.jsx)(f.Z,{noBackground:!0,onClick:function(){O(!1),null===s||void 0===s||s()},children:"Defaults"})]})})]})]})},ie=t(46261),re=t(99994),oe="".concat(1.5*B.iI,"px"),ce=40*B.iI,le={bold:!0,greyBorder:!0,paddingBottom:9,paddingTop:9};!function(e){e[e.SECONDARY=1]="SECONDARY",e[e.DELETE=2]="DELETE"}(ne||(ne={}));var ue={autoHide:!0,size:null,widthFitContent:!0},ae=t(7715),se=t(9736);function de(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function pe(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?de(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):de(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var fe=function(e){var n=e.addButtonProps,t=e.deleteRowProps,i=e.filterOptions,o=void 0===i?{}:i,c=e.filterValueLabelMapping,l=e.groupButtonProps,u=e.moreActionsMenuItems,a=e.query,s=void 0===a?{}:a,f=e.searchProps,h=e.secondaryActionButtonProps,v=e.selectedRowId,j=e.setSelectedRow,w=(0,se.Ct)(),P=(0,p.useRouter)(),C=(0,d.useRef)(null),k=(0,d.useRef)(null),E=(0,d.useRef)(null),S=(0,d.useRef)(null),T=(0,d.useRef)(null),A=(0,d.useState)(!1),N=A[0],M=A[1],H=(0,d.useState)(!1),Y=H[0],W=H[1],V=(0,d.useState)(!1),z=V[0],U=V[1],F=(0,d.useState)(!1),G=F[0],K=F[1],X=(0,d.useState)(null),Q=X[0],J=X[1],$=!v,ee=(0,d.useCallback)((function(){return M(!1)}),[]),de=(0,d.useCallback)((function(){return W(!1)}),[]),fe=(0,d.useCallback)((function(){return U(!1)}),[]),he=(0,d.useCallback)((function(){return K(null)}),[]),me=(0,d.useCallback)((function(){return J(null)}),[]),be=h||{},ge=be.Icon,ve=be.confirmationDescription,xe=be.confirmationMessage,ye=be.isLoading,je=be.label,Oe=be.onClick,Ze=be.openConfirmationDialogue,we=be.tooltip,Pe=t||{},Ce=Pe.confirmationMessage,ke=Pe.isLoading,Ee=Pe.item,Se=Pe.onDelete,Te=f||{},Ae=Te.placeholder,Ie=Te.onChange,Re=Te.value,_e=(0,d.useMemo)((function(){return Object.entries(o).reduce((function(e,n){var t=(0,r.Z)(n,2),i=t[0],o=t[1];return e[i]={},o.forEach((function(n){var t,r=(null===(t=s["".concat(i,"[]")])||void 0===t?void 0:t.includes(n))||!1;e[i][n]=r})),e}),{})}),[o,s]),De=n||{},Ne=De.label,Me=De.menuItems,Le=De.isLoading,He=(0,d.useMemo)((function(){return(0,Z.jsx)(_.Z,{disableKeyboardShortcuts:!0,items:Me,onClickCallback:ee,onClickOutside:ee,open:N,parentRef:C,roundedStyle:!0,topOffset:1,uuid:"Table/Toolbar/NewItemMenu",children:(0,Z.jsx)(g.ZP,pe(pe({},le),{},{background:re.eW,beforeElement:(0,Z.jsx)(q.mm,{size:2.5*B.iI}),loading:Le,onClick:function(e){e.preventDefault(),M((function(e){return!e}))},uuid:"Table/Toolbar/AddButton",children:Ne}))})}),[Ne,Me,N,ee,Le]),Be=(0,d.useMemo)((function(){return(0,ae.dw)(_e)}),[_e]),Ye=(0,d.useMemo)((function(){return(0,Z.jsx)(te,{compact:!0,onClickCallback:de,onClickOutside:de,onSecondaryClick:function(){return P.push("/pipelines")},open:Y,options:_e,parentRef:k,query:s,setOpen:W,toggleValueMapping:c,children:(0,Z.jsx)(g.ZP,pe(pe({},le),{},{afterElement:Be>0?(0,Z.jsx)(I.Z,{cyan:!0,noVerticalPadding:!0,children:(0,Z.jsx)(y.ZP,{bold:!0,inverted:!0,children:Be})}):null,beforeElement:(0,Z.jsx)(q.wn,{size:2*B.iI}),onClick:function(){return W((function(e){return!e}))},uuid:"Table/Toolbar/FilterButton",children:"Filter"}))})}),[de,Y,_e,c,Be,s,P]),We=l||{},Ve=We.groupByLabel,ze=We.menuItems,Ue=(0,d.useMemo)((function(){return(0,Z.jsx)(_.Z,{disableKeyboardShortcuts:!0,items:ze,onClickCallback:fe,onClickOutside:fe,open:z,parentRef:E,roundedStyle:!0,topOffset:1,uuid:"Table/Toolbar/GroupMenu",children:(0,Z.jsx)(g.ZP,pe(pe({},le),{},{beforeElement:(0,Z.jsx)(q.ZA,{size:2.5*B.iI}),onClick:function(){U((function(e){return!e}))},uuid:"Table/Toolbar/GroupButton",children:Ve?"Grouped by ".concat(Ve):"Group"}))})}),[fe,z,ze]),Fe=(0,d.useMemo)((function(){return(0,Z.jsx)(_.Z,{disableKeyboardShortcuts:!0,items:u,onClickCallback:he,onClickOutside:he,open:G,parentRef:S,roundedStyle:!0,topOffset:1,uuid:"Table/Toolbar/MoreActionsMenu",children:(0,Z.jsx)(ie.Z,pe(pe({},ue),{},{label:"More actions",children:(0,Z.jsx)(g.ZP,{Icon:q.mH,bold:!0,disabled:$,greyBorder:!0,onClick:function(){return K((function(e){return!e}))},smallIcon:!0,uuid:"Table/Toolbar/MoreActionsButton"})}))})}),[he,$,G,u]);return(0,Z.jsxs)(b.Z,{alignItems:"center",children:[He,(0,Z.jsx)(x.Z,{mr:oe}),Ye,(null===ze||void 0===ze?void 0:ze.length)>0&&(0,Z.jsx)(x.Z,{ml:oe,children:Ue}),!w&&Oe&&(0,Z.jsxs)(x.Z,{ml:oe,children:[(0,Z.jsx)(ie.Z,pe(pe({},ue),{},{label:we,children:(0,Z.jsx)(g.ZP,{Icon:!ye&&ge,bold:!0,disabled:$,greyBorder:!0,loading:ye,onClick:Ze?function(){return J(ne.SECONDARY)}:Oe,smallIcon:!0,uuid:"Table/Toolbar/SecondaryActionButton",children:je})})),(0,Z.jsx)(R.Z,{onClickOutside:me,open:Q===ne.SECONDARY,children:(0,Z.jsx)(D.Z,{onCancel:me,onClick:function(){Oe(),me(),j(null)},subtitle:ve,title:xe,top:58,width:ce})})]}),!w&&Se&&(0,Z.jsxs)(x.Z,{ml:oe,children:[(0,Z.jsx)(ie.Z,pe(pe({},ue),{},{label:"Delete ".concat(Ee),children:(0,Z.jsx)(g.ZP,{Icon:!ke&&q.rF,bold:!0,disabled:$,greyBorder:!0,loading:ke,onClick:function(){return J(ne.DELETE)},smallIcon:!0,uuid:"Table/Toolbar/DeleteButton"})})),(0,Z.jsx)(R.Z,{onClickOutside:me,open:Q===ne.DELETE,children:(0,Z.jsx)(D.Z,{danger:!0,onCancel:me,onClick:function(){Se(v),me(),j(null)},subtitle:Ce,title:"Are you sure you want to delete the ".concat(Ee," ").concat(v,"?"),top:58,width:ce})})]}),!w&&(null===u||void 0===u?void 0:u.length)>0&&(0,Z.jsx)(x.Z,{ml:oe,children:Fe}),Ie&&(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(x.Z,{ml:oe}),(0,Z.jsx)(m.Z,{flex:1,children:(0,Z.jsx)(O.Z,{afterIcon:Re?(0,Z.jsx)(q.x8,{}):null,afterIconClick:function(){var e;Ie(""),null===T||void 0===T||null===(e=T.current)||void 0===e||e.focus()},afterIconSize:1.5*B.iI,beforeIcon:(0,Z.jsx)(q.HN,{}),borderRadius:L.n_,defaultColor:!0,fullWidth:!0,greyBorder:!0,maxWidth:60*B.iI,onChange:function(e){return Ie(e.target.value)},paddingVertical:9,placeholder:Ae||null,ref:T,value:Re})})]})]})},he=t(82531),me=t(86422),be=t(93348),ge=t(3055),ve=t(45838),xe=t(96510),ye=t(59e3),je=t(66653),Oe=t(99497),Ze=t(9728);function we(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function Pe(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?we(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):we(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Ce={borderRadius:L.BG,iconOnly:!0,noBackground:!0,noBorder:!0,outline:!0,padding:"4px"};function ke(){var e=(0,p.useRouter)(),n=(0,d.useRef)(null),t=(0,d.useState)(null),i=t[0],c=t[1],l=(0,d.useState)(null),u=l[0],g=l[1],j=(0,d.useState)({}),O=j[0],E=j[1],I=(0,d.useState)(null),R=I[0],_=I[1],D=(0,ye.iV)(),N=(0,ye.DQ)(D,[k.$1.STATUS,k.$1.TYPE]),L=null===D||void 0===D?void 0:D[k.$1.GROUP],H=he.ZP.pipelines.list(Pe(Pe({},N),{},{include_schedules:1})),Y=H.data,W=H.mutate,V=(0,d.useMemo)((function(){var e=(null===Y||void 0===Y?void 0:Y.pipelines)||[];if(u){var n=u.toLowerCase();e=e.filter((function(e){var t=e.name,i=e.description,r=e.uuid;return(null===t||void 0===t?void 0:t.toLowerCase().includes(n))||(null===r||void 0===r?void 0:r.toLowerCase().includes(n))||(null===i||void 0===i?void 0:i.toLowerCase().includes(n))}))}return e}),[null===Y||void 0===Y?void 0:Y.pipelines,u]),z=he.ZP.projects.list(),U=z.data,F=z.mutate,G=(0,d.useMemo)((function(){var e;return null===U||void 0===U||null===(e=U.projects)||void 0===e?void 0:e[0]}),[U]);(0,d.useEffect)((function(){var e,n;if(null!==Y&&void 0!==Y&&null!==(e=Y.error)&&void 0!==e&&null!==(n=e.exception)&&void 0!==n&&n.includes("Too many open files")){(0,xe.bB)(Y,_,[{href:"https://docs.mage.ai/production/configuring-production-settings/overview#ulimit",label:"Refer to the docs for troubleshooting this error."}])}else(0,xe.bB)(Y,_)}),[Y]);var K=function(e){return(0,s.Db)(he.ZP.pipelines.useCreate(),{onSuccess:function(n){return(0,xe.wD)(n,{callback:function(n){var t=n.pipeline.uuid;null===e||void 0===e||e(t)},onErrorCallback:function(e,n){return _({errors:n,response:e})}})}})},X=K((function(n){return e.push("/pipelines/[pipeline]/edit","/pipelines/".concat(n,"/edit"))})),$=(0,r.Z)(X,2),ee=$[0],ne=$[1].isLoading,te=K((function(){return null===W||void 0===W?void 0:W()})),ie=(0,r.Z)(te,2),re=ie[0],oe=ie[1].isLoading,ce=(0,s.Db)((function(e){return he.ZP.pipelines.useUpdate(e.uuid)({pipeline:e})}),{onSuccess:function(e){return(0,xe.wD)(e,{callback:function(e){var n=e.pipeline.uuid;E((function(e){return Pe(Pe({},e),{},(0,o.Z)({},n,!1))})),W(),null===Te||void 0===Te||Te(),c(null)},onErrorCallback:function(e,n){var t,i=null===e||void 0===e||null===(t=e.url_parameters)||void 0===t?void 0:t.pk;E((function(e){return Pe(Pe({},e),{},(0,o.Z)({},i,!1))})),_({errors:n,response:e})}})}}),le=(0,r.Z)(ce,2),ue=le[0],ae=le[1].isLoading,se=(0,s.Db)((function(e){return he.ZP.pipelines.useDelete(e)()}),{onSuccess:function(e){return(0,xe.wD)(e,{callback:function(){null===W||void 0===W||W()},onErrorCallback:function(e,n){return _({errors:n,response:e})}})}}),de=(0,r.Z)(se,2),pe=de[0],we=de[1].isLoading,ke=(0,Oe.dd)((function(e){var n=e.pipeline,t=e.pipelineDescription,r=e.pipelineName;return(0,Z.jsx)(w,{isLoading:ae,minWidth:55*B.iI,noEmptyValue:!!r,onClose:Te,onSave:function(e){var t=n||i;if(t){var c=t.uuid,l={uuid:c};r?l.name=e:l.description=e,E((function(e){return Pe(Pe({},e),{},(0,o.Z)({},c,!0))})),ue(l)}},textArea:!r,title:r?"Rename pipeline":"Edit description",value:r||t})}),{},[ae,i],{background:!0,uuid:"rename_pipeline_and_save"}),Ee=(0,r.Z)(ke,2),Se=Ee[0],Te=Ee[1],Ae=(0,d.useMemo)((function(){return(0,Z.jsx)(fe,{addButtonProps:{isLoading:ne,label:"New",menuItems:[{label:function(){return"Standard (batch)"},onClick:function(){return ee({pipeline:{name:(0,J.Y6)()}})},uuid:"Pipelines/NewPipelineMenu/standard"},{label:function(){return"Data integration"},onClick:function(){return ee({pipeline:{name:(0,J.Y6)(),type:k.qL.INTEGRATION}})},uuid:"Pipelines/NewPipelineMenu/integration"},{label:function(){return"Streaming"},onClick:function(){return ee({pipeline:{name:(0,J.Y6)(),type:k.qL.STREAMING}})},uuid:"Pipelines/NewPipelineMenu/streaming"}]},deleteRowProps:{confirmationMessage:"This is irreversible and will immediately delete everything associated with the pipeline, including its blocks, triggers, runs, logs, and history.",isLoading:we,item:"pipeline",onDelete:function(){return pe(null===i||void 0===i?void 0:i.uuid)}},filterOptions:{status:Object.values(k.QK),type:Object.values(k.qL)},filterValueLabelMapping:k.G7,groupButtonProps:{groupByLabel:L,menuItems:[{beforeIcon:(0,Z.jsx)(q.Jr,{fill:L===k.r0.STATUS?M.Z.content.default:M.Z.interactive.transparent,size:2*B.iI}),label:function(){return(0,J.kC)(k.r0.STATUS)},onClick:function(){return(0,Q.u7)((0,o.Z)({},k.$1.GROUP,L===k.r0.STATUS?null:k.r0.STATUS),{pushHistory:!0})},uuid:"Pipelines/GroupMenu/Status"},{beforeIcon:(0,Z.jsx)(q.Jr,{fill:L===k.r0.TYPE?M.Z.content.default:M.Z.interactive.transparent,size:2*B.iI}),label:function(){return(0,J.kC)(k.r0.TYPE)},onClick:function(){return(0,Q.u7)((0,o.Z)({},k.$1.GROUP,L===k.r0.TYPE?null:k.r0.TYPE),{pushHistory:!0})},uuid:"Pipelines/GroupMenu/Type"}]},moreActionsMenuItems:[{label:function(){return"Rename pipeline"},onClick:function(){return Se({pipelineName:null===i||void 0===i?void 0:i.name})},uuid:"Pipelines/MoreActionsMenu/Rename"},{label:function(){return"Edit description"},onClick:function(){return Se({pipelineDescription:null===i||void 0===i?void 0:i.description})},uuid:"Pipelines/MoreActionsMenu/EditDescription"}],query:N,searchProps:{onChange:g,value:u},secondaryActionButtonProps:{Icon:q.oX,confirmationDescription:"Cloning the selected pipeline will create a new pipeline with the same configuration and code blocks. The blocks use the same block files as the original pipeline. Pipeline triggers, runs, backfills, and logs are not copied over to the new pipeline.",confirmationMessage:"Do you want to clone the pipeline ".concat(null===i||void 0===i?void 0:i.uuid,"?"),isLoading:oe,onClick:function(){return re({pipeline:{clone_pipeline_uuid:null===i||void 0===i?void 0:i.uuid}})},openConfirmationDialogue:!0,tooltip:"Clone pipeline"},selectedRowId:null===i||void 0===i?void 0:i.uuid,setSelectedRow:c})}),[re,ee,pe,L,oe,ne,we,N,u,null===i||void 0===i?void 0:i.description,null===i||void 0===i?void 0:i.name,null===i||void 0===i?void 0:i.uuid,Se]),Ie=(0,Ze.VI)(null,{},[],{uuid:"pipelines/list"}),Re=(0,r.Z)(Ie,1)[0],_e=(0,s.Db)(he.ZP.projects.useUpdate(null===G||void 0===G?void 0:G.name),{onSuccess:function(e){return(0,xe.wD)(e,{callback:function(){F()},onErrorCallback:function(e,n){return Re({errors:n,response:e})}})}}),De=(0,r.Z)(_e,2),Ne=De[0],Me=De[1].isLoading,Le=(0,d.useCallback)((function(e){return Ne({project:e})}),[Ne]),He=(0,Oe.dd)((function(){return(0,Z.jsxs)(v.Z,{maxWidth:60*B.iI,children:[(0,Z.jsx)(x.Z,{mb:1,children:(0,Z.jsx)(P.Z,{children:"Help improve Mage"})}),(0,Z.jsx)(x.Z,{mb:B.cd,children:(0,Z.jsx)(y.ZP,{default:!0,children:"Please contribute usage statistics to help improve the developer experience for you and everyone in the community \ud83e\udd1d."})}),(0,Z.jsx)(x.Z,{mb:B.cd,children:(0,Z.jsx)(v.Z,{success:!0,children:(0,Z.jsxs)(b.Z,{alignItems:"center",children:[(0,Z.jsx)(q.Yo,{size:5*B.iI,success:!0}),(0,Z.jsx)(x.Z,{mr:1}),(0,Z.jsx)(m.Z,{children:(0,Z.jsx)(y.ZP,{children:"All usage statistics are completely anonymous. It\u2019s impossible for Mage to know which statistics belongs to whom."})})]})})}),(0,Z.jsx)(x.Z,{mb:B.cd,children:(0,Z.jsxs)(y.ZP,{default:!0,children:["By opting into sending usage statistics to ",(0,Z.jsx)(C.Z,{href:"https://www.mage.ai",openNewWindow:!0,children:"Mage"}),", it\u2019ll help the team and community of contributors (",(0,Z.jsx)(C.Z,{href:"https://www.mage.ai/chat",openNewWindow:!0,children:"Magers"}),") learn what\u2019s going wrong with the tool and what improvements can be made."]})}),(0,Z.jsx)(x.Z,{mb:B.cd,children:(0,Z.jsx)(y.ZP,{default:!0,children:"In addition to helping reduce potential errors, you\u2019ll help inform which features are useful and which need work."})}),(0,Z.jsx)(x.Z,{mb:B.cd,children:(0,Z.jsxs)(b.Z,{alignItems:"center",justifyContent:"space-between",children:[(0,Z.jsx)(y.ZP,{bold:!0,children:"I want to help make Mage more powerful for everyone"}),(0,Z.jsx)(x.Z,{mr:B.cd}),(0,Z.jsx)(A.Z,{checked:!0,onCheck:function(){window.confirm("Are you sure you don\u2019t want to help everyone in the community?")&&Le({help_improve_mage:!1}).then((function(){return We()}))}})]})}),Me&&(0,Z.jsx)(x.Z,{mb:B.cd,children:(0,Z.jsx)(S.Z,{inverted:!0})}),(0,Z.jsx)(x.Z,{mb:B.cd,children:(0,Z.jsxs)(y.ZP,{muted:!0,small:!0,children:["To learn more about how this works, please check out the ",(0,Z.jsx)(C.Z,{href:"https://docs.mage.ai/contributing/statistics/overview",openNewWindow:!0,small:!0,children:"documentation"}),"."]})}),(0,Z.jsx)(f.Z,{onClick:function(){return Le({help_improve_mage:!0}).then((function(){return We()}))},secondary:!0,children:"Close"})]})}),{},[G],{background:!0,hideCallback:function(){Le({help_improve_mage:!0})},uuid:"help_mage"}),Be=(0,r.Z)(He,2),Ye=Be[0],We=Be[1];return(0,d.useEffect)((function(){G&&null===(null===G||void 0===G?void 0:G.help_improve_mage)&&Ye()}),[G,Ye]),(0,Z.jsx)(h.Z,{errors:R,setErrors:_,subheaderChildren:Ae,title:"Pipelines",uuid:"pipelines/index",children:0===(null===V||void 0===V?void 0:V.length)?(0,Z.jsx)(x.Z,{px:3,py:1,children:Y?(0,Z.jsx)(y.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:"No pipelines available"}):(0,Z.jsx)(S.Z,{inverted:!0,large:!0})}):(0,Z.jsx)(ve.cl,{includePadding:!!L,maxHeight:"calc(100vh - ".concat(ge.Mz+74,"px)"),children:(0,Z.jsx)(T.Z,{columnFlex:[null,1,3,4,1,1,1,null],columns:[{label:function(){return""},uuid:"action"},{uuid:(0,J.kC)(k.r0.STATUS)},{uuid:"Name"},{uuid:"Description"},{uuid:(0,J.kC)(k.r0.TYPE)},{uuid:"Blocks"},{uuid:"Triggers"},{center:!0,uuid:"Actions"}],grouping:{column:(0,J.kC)(L),columnIndex:L===k.r0.STATUS?1:L===k.r0.TYPE?4:null,values:L===k.r0.STATUS?Object.values(k.QK).map((function(e){return(0,J.J3)(e)})):L===k.r0.TYPE?Object.values(k.qL).map((function(e){return k.G7[e]})):[]},isSelectedRow:function(e){var n;return(null===(n=V[e])||void 0===n?void 0:n.uuid)===(null===i||void 0===i?void 0:i.uuid)},onClickRow:function(e){return c((function(n){var t=V[e];return(null===n||void 0===n?void 0:n.uuid)!==(null===t||void 0===t?void 0:t.uuid)?t:null}))},onDoubleClickRow:function(n){e.push("/pipelines/[pipeline]/edit","/pipelines/".concat(V[n].uuid,"/edit"))},ref:n,renderRightClickMenuItems:function(e){var n=V[e];return[{label:function(){return"Edit description"},onClick:function(){return Se({pipeline:n,pipelineDescription:null===n||void 0===n?void 0:n.description})},uuid:"edit_description"},{label:function(){return"Rename"},onClick:function(){return Se({pipeline:n,pipelineName:null===n||void 0===n?void 0:n.name})},uuid:"rename"},{label:function(){return"Clone"},onClick:function(){return re({pipeline:{clone_pipeline_uuid:null===n||void 0===n?void 0:n.uuid}})},uuid:"clone"},{label:function(){return"Delete"},onClick:function(){return pe(null===n||void 0===n?void 0:n.uuid)},uuid:"delete"}]},rows:V.map((function(n,t){var i=n.blocks,r=n.description,c=n.schedules,l=n.type,u=n.uuid,s=i.filter((function(e){var n=e.type;return me.tf.SCRATCHPAD!==n})).length,d=c.length,p=c.find((function(e){var n=e.status;return be.fq.ACTIVE===n}));return[d>=1||O[u]?(0,Z.jsx)(f.Z,{iconOnly:!0,loading:!!O[u],noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(e){(0,je.j)(e),E((function(e){return Pe(Pe({},e),{},(0,o.Z)({},u,!0))})),ue(Pe(Pe({},n),{},{status:p?be.fq.INACTIVE:be.fq.ACTIVE}))},children:p?(0,Z.jsx)(q.dz,{muted:!0,size:2*B.iI}):(0,Z.jsx)(q.Py,{default:!0,size:2*B.iI})}):null,(0,Z.jsx)(y.ZP,{default:!p,monospace:!0,success:!!p,children:p?be.fq.ACTIVE:d>=1?be.fq.INACTIVE:"no schedules"},"pipeline_status_".concat(t)),(0,Z.jsx)(a(),{as:"/pipelines/".concat(u),href:"/pipelines/[pipeline]",passHref:!0,children:(0,Z.jsx)(C.Z,{sameColorAsText:!0,children:u})},"pipeline_name_".concat(t)),(0,Z.jsx)(y.ZP,{default:!0,title:r,width:90*B.iI,children:r},"pipeline_description_".concat(t)),(0,Z.jsx)(y.ZP,{children:k.G7[l]},"pipeline_type_".concat(t)),(0,Z.jsx)(y.ZP,{default:0===s,monospace:!0,children:s},"pipeline_block_count_".concat(t)),(0,Z.jsx)(y.ZP,{default:0===d,monospace:!0,children:d},"pipeline_trigger_count_".concat(t)),(0,Z.jsxs)(m.Z,{flex:1,justifyContent:"flex-end",children:[(0,Z.jsx)(f.Z,Pe(Pe({},Ce),{},{onClick:function(){e.push("/pipelines/[pipeline]","/pipelines/".concat(u))},title:"Detail",children:(0,Z.jsx)(q.UY,{default:!0,size:2*B.iI})})),(0,Z.jsx)(x.Z,{mr:1}),(0,Z.jsx)(f.Z,Pe(Pe({},Ce),{},{onClick:function(){e.push("/pipelines/[pipeline]/logs","/pipelines/".concat(u,"/logs"))},title:"Logs",children:(0,Z.jsx)(q.$B,{default:!0,size:2*B.iI})}))]},"chevron_icon_".concat(t))]})),stickyHeader:!0})})})}ke.getInitialProps=(0,i.Z)(l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)})));var Ee=(0,E.Z)(ke)},33766:function(e,n,t){"use strict";t.d(n,{O2:function(){return d},g_:function(){return f},u7:function(){return p}});var i=t(75582),r=t(82394),o=t(34376),c=t.n(o),l=t(59e3),u=t(24224);function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var d="_offset";function p(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.preserveParams,r=n.pushHistory,o=n.replaceParams,u=(0,l.iV)(),a={};t&&t.forEach((function(e){u[e]&&(a[e]=u[e])}));var d,p=o?a:u;d=window.location.pathname;var f=r?c().push:c().replace,h=s(s({},p),e);Object.entries(e).forEach((function(e){var n=(0,i.Z)(e,2),t=n[0],r=n[1];"undefined"!==typeof r&&null!==r||delete h[t]}));var m=(0,l.uM)(h);m.length>=1&&(m="?".concat(m));var b="".concat(d.split("?")[0]).concat(m);return f(c().router.pathname,b,{shallow:!0})}function f(e,n,t){var r=t.addingMultipleValues,o=t.isList,c=t.itemsPerPage,l=t.pushHistory,a=void 0!==l&&l,f=t.resetLimitParams,h=s({},e);r?Object.entries(n).forEach((function(e){var n=(0,i.Z)(e,2),t=n[0],r=n[1];if(Array.isArray(r)){var o="".concat(t,"[]");h[o]=r.map(String)}})):o?Object.entries(n).forEach((function(e){var n=(0,i.Z)(e,2),t=n[0],r=n[1],o=String(r),c="".concat(t,"[]"),l=h[c];l&&Array.isArray(l)?(l=l.map(String)).includes(o)?h[c]=(0,u.Od)(l,(function(e){return e===o})):h[c]=l.concat(o):h[c]=[o]})):h=s(s({},h),n),f&&(h._limit=c||20,h[d]=0),p(h,{pushHistory:a})}},79274:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines",function(){return t(46614)}])}},function(e){e.O(0,[844,7607,1424,1005,8180,9774,2888,179],(function(){return n=79274,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/account/profile-f5626eb662337ad5.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6308],{63153:function(e,n,r){"use strict";r.d(n,{Z3:function(){return t},ms:function(){return i},s7:function(){return o}});var t=[{autoComplete:"username",label:"Username",required:!0,uuid:"username"},{autoComplete:"email",disabled:!1,label:"Email",required:!0,type:"email",uuid:"email"}],o="password_current",i=[{autoComplete:"current-password",label:"Current password",type:"password",uuid:o},{autoComplete:"new-password",label:"New password",type:"password",uuid:"password"},{autoComplete:"new-password",label:"Confirm new password",type:"password",uuid:"password_confirmation"}]},20582:function(e,n,r){"use strict";var t=r(82394),o=r(21831),i=r(75582),u=r(21764),d=r(82684),c=r(83455),s=r(60328),a=r(67971),l=r(87372),f=r(55378),p=r(86673),h=r(82944),m=r(81132),v=r(82531),b=r(66166),g=r(63153),w=r(9736),x=r(7715),Z=r(96510),j=r(28598);function y(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function _(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?y(Object(r),!0).forEach((function(n){(0,t.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}n.Z=function(e){var n=e.disabledFields,r=e.hideFields,y=e.newUser,O=e.onDeleteSuccess,P=e.onSaveSuccess,C=e.showDelete,k=e.title,I=e.user,N=(0,d.useState)(!0),S=N[0],E=N[1],W=(0,d.useState)({}),D=W[0],T=W[1],H=(0,d.useState)(null),R=H[0],V=H[1],q=(0,w.PR)()||{},M=q.id,A=q.owner,F=q.roles,G=m.K$.filter((function(e){return F!==m.No.ADMIN||M===(null===I||void 0===I?void 0:I.id)||e>m.No.ADMIN})),B=(0,c.Db)(y?v.ZP.users.useCreate():v.ZP.users.useUpdate(null===I||void 0===I?void 0:I.id),{onSuccess:function(e){return(0,Z.wD)(e,{callback:function(e){var n=e.user,r=(0,x.GL)(n,g.Z3.concat(g.ms).map((function(e){return e.uuid})));V(r),u.Am.success(y?"New user created successfully.":"User profile successfully updated.",{position:u.Am.POSITION.BOTTOM_RIGHT,toastId:"user-update-success-".concat(n.id)}),null===P||void 0===P||P(r)},onErrorCallback:function(e){var n=e.error,r=n.errors,t=n.exception,o=n.message,i=n.type;u.Am.error((null===r||void 0===r?void 0:r.error)||t||o,{position:u.Am.POSITION.BOTTOM_RIGHT,toastId:i})}})}}),L=(0,i.Z)(B,2),U=L[0],Q=L[1].isLoading,X=(0,c.Db)(v.ZP.users.useDelete(null===I||void 0===I?void 0:I.id),{onSuccess:function(e){return(0,Z.wD)(e,{callback:function(){null===O||void 0===O||O()},onErrorCallback:function(e){var n=e.error,r=n.errors,t=n.message;alert(t),console.log(r)}})}}),K=(0,i.Z)(X,2),Y=K[0],$=K[1].isLoading,z=r?(0,o.Z)(r):[];y&&z.push(g.s7);var J=!z||!z.includes(g.s7),ee=(0,b.Z)(I);return(0,d.useEffect)((function(){!I||R&&(null===ee||void 0===ee?void 0:ee.id)===(null===I||void 0===I?void 0:I.id)||V((0,x.GL)(I,g.Z3.concat(g.ms).map((function(e){return e.uuid})))),null!==R&&void 0!==R&&R.password||null!==R&&void 0!==R&&R.password_confirmation?(null===R||void 0===R?void 0:R.password)!==(null===R||void 0===R?void 0:R.password_confirmation)?T({password_confirmation:"Password confirmation does not match."}):!J||null!==R&&void 0!==R&&R.password_current?T(null):T({password_current:"This field is required."}):null!==R&&void 0!==R&&R.password_current&&J?null!==R&&void 0!==R&&R.password&&null!==R&&void 0!==R&&R.password_confirmation?T(null):T({password:"This field is required.",password_confirmation:"This field is required."}):null!==R&&void 0!==R&&R.password_current||null!==R&&void 0!==R&&R.password||null!==R&&void 0!==R&&R.password_confirmation||T(null)}),[R,J,I,ee]),(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(l.Z,{children:k||"Edit profile"}),(0,j.jsxs)("form",{children:[g.Z3.filter((function(e){var n=e.uuid;return!z||!z.includes(n)})).map((function(e){var n=e.autoComplete,r=e.disabled,o=e.label,i=e.required,u=e.type,d=e.uuid;return(0,j.jsx)(p.Z,{mt:2,children:(0,j.jsx)(h.Z,{autoComplete:n,disabled:r&&!y,label:o,onChange:function(e){E(!1),V((function(n){return _(_({},n),{},(0,t.Z)({},d,e.target.value))}))},primary:!0,required:i,setContentOnMount:!0,type:u,value:(null===R||void 0===R?void 0:R[d])||""})},d)})),!(null!==I&&void 0!==I&&I.owner)&&(0,j.jsx)(p.Z,{mt:2,children:(0,j.jsxs)(f.Z,{disabled:null===n||void 0===n?void 0:n.includes("roles"),label:"Roles",onChange:function(e){if(E(!1),e.target.value===m.No.OWNER)V((function(e){return _(_({},e),{},{owner:!0,roles:null})}));else{var n={roles:e.target.value};A&&(n.owner=!1),V((function(e){return _(_({},e),n)}))}},primary:!0,setContentOnMount:!0,value:(null!==R&&void 0!==R&&R.owner?m.No.OWNER:null===R||void 0===R?void 0:R.roles)||(null===I||void 0===I?void 0:I.roles)||"",children:[(0,j.jsx)("option",{value:""}),G.map((function(e){return(0,j.jsx)("option",{value:e,children:m.gG[e]},e)})),!y&&A&&(0,j.jsx)("option",{value:m.No.OWNER,children:m.gG[m.No.OWNER]},"owner_role")]})}),(0,j.jsxs)(p.Z,{mt:5,children:[(0,j.jsx)(l.Z,{children:y?"Password":"Change password"}),g.ms.filter((function(e){var n=e.uuid;return!z||!z.includes(n)})).map((function(e){var n=e.autoComplete,r=e.disabled,o=e.label,i=e.required,u=e.type,d=e.uuid;return(0,j.jsx)(p.Z,{mt:2,children:(0,j.jsx)(h.Z,{autoComplete:n,disabled:r,label:o,meta:{error:null===D||void 0===D?void 0:D[d],touched:!(null===D||void 0===D||!D[d])},onChange:function(e){E(!1),V((function(n){return _(_({},n),{},(0,t.Z)({},d,e.target.value))}))},primary:!0,required:i,setContentOnMount:!0,type:u,value:(null===R||void 0===R?void 0:R[d])||""})},d)}))]}),(0,j.jsx)(p.Z,{mt:5,children:(0,j.jsxs)(a.Z,{children:[(0,j.jsx)(s.Z,{disabled:S||D&&!(0,x.Qr)(D),loading:Q,onClick:function(){return U({user:R})},primary:!0,children:y?"Create new user":"Update user profile"}),C&&A&&(0,j.jsx)(p.Z,{ml:1,children:(0,j.jsx)(s.Z,{danger:!0,loading:$,onClick:function(){window.confirm("Are you sure you want to delete ".concat(R.username||R.email,"?"))&&Y()},children:"Delete user"})})]})})]})]})}},29237:function(e,n,r){"use strict";var t=r(9518),o=r(67971),i=r(86673),u=r(19711),d=r(23831),c=r(73942),s=r(37391),a=r(49125),l=r(28598),f=(0,t.css)(["padding:","px;padding-bottom:","px;padding-top:","px;"],2*a.iI,1.5*a.iI,1.5*a.iI),p=t.default.div.withConfig({displayName:"Panel__PanelStyle",componentId:"sc-1ct8cgl-0"})(["border-radius:","px;overflow:hidden;"," "," "," "," "," "," "," "," "," "," "," ",""],c.n_,(function(e){return e.fullWidth&&"\n width: 100%;\n "}),(function(e){return!e.borderless&&"\n border: 1px solid ".concat((e.theme.interactive||d.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.success&&"\n background-color: ".concat((e.theme.background||d.Z.background).successLight,";\n ")}),(function(e){return e.success&&!e.borderless&&"\n border: 1px solid ".concat((e.theme.background||d.Z.background).success,";\n ")}),(function(e){return!e.dark&&!e.success&&"\n background-color: ".concat((e.theme.background||d.Z.background).panel,";\n ")}),(function(e){return e.dark&&"\n background-color: ".concat((e.theme.background||d.Z.background).content,";\n ")}),(function(e){return!e.fullHeight&&"\n height: fit-content;\n "}),(function(e){return e.maxHeight&&"\n max-height: ".concat(e.maxHeight,";\n ")}),(function(e){return e.maxWidth&&"\n max-width: ".concat(e.maxWidth,"px;\n ")}),(function(e){return e.minWidth&&"\n min-width: ".concat(e.minWidth,"px;\n\n @media (max-width: ").concat(e.minWidth,"px) {\n min-width: 0;\n }\n ")}),(function(e){return e.borderless&&"\n border: none;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),h=t.default.div.withConfig({displayName:"Panel__HeaderStyle",componentId:"sc-1ct8cgl-1"})(["border-top-left-radius:","px;border-top-right-radius:","px;"," "," "," ",""],c.n_,c.n_,(function(e){return"\n background-color: ".concat((e.theme.background||d.Z.background).chartBlock,";\n border-bottom: 1px solid ").concat((e.theme.interactive||d.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),f,(function(e){return e.headerPaddingVertical&&"\n padding-bottom: ".concat(e.headerPaddingVertical,"px;\n padding-top: ").concat(e.headerPaddingVertical,"px;\n ")})),m=t.default.div.withConfig({displayName:"Panel__ContentStyle",componentId:"sc-1ct8cgl-2"})(["overflow-y:auto;padding:","px;height:100%;"," "," "," "," ",""],1.75*a.iI,s.w5,(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),(function(e){return e.maxHeight&&"\n max-height: calc(".concat(e.maxHeight," - ").concat(15*a.iI,"px);\n ")}),(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),v=t.default.div.withConfig({displayName:"Panel__FooterStyle",componentId:"sc-1ct8cgl-3"})(["border-style:",";border-top-width:","px;padding:","px;"],c.M8,c.YF,1.75*a.iI);n.Z=function(e){var n=e.borderless,r=e.children,t=e.containerRef,d=e.contentContainerRef,c=e.dark,s=e.footer,a=e.fullHeight,f=void 0===a||a,b=e.fullWidth,g=void 0===b||b,w=e.header,x=e.headerHeight,Z=e.headerIcon,j=e.headerPaddingVertical,y=e.headerTitle,_=e.maxHeight,O=e.maxWidth,P=e.minWidth,C=e.noPadding,k=e.overflowVisible,I=e.subtitle,N=e.success;return(0,l.jsxs)(p,{borderless:n,dark:c,fullHeight:f,fullWidth:g,maxHeight:_,maxWidth:O,minWidth:P,overflowVisible:k,ref:t,success:N,children:[(w||y)&&(0,l.jsxs)(h,{headerPaddingVertical:j,height:x,children:[w&&w,y&&(0,l.jsx)(o.Z,{alignItems:"center",justifyContent:"space-between",children:(0,l.jsxs)(o.Z,{alignItems:"center",children:[Z&&Z,(0,l.jsx)(i.Z,{ml:Z?1:0,children:(0,l.jsx)(u.ZP,{bold:!0,default:!0,children:y})})]})})]}),(0,l.jsxs)(m,{maxHeight:_,noPadding:C,overflowVisible:k,ref:d,children:[I&&(0,l.jsx)(i.Z,{mb:2,children:(0,l.jsx)(u.ZP,{default:!0,children:I})}),r]}),s&&(0,l.jsx)(v,{children:s})]})}},96283:function(e,n,r){"use strict";r.r(n);var t=r(77837),o=r(38860),i=r.n(o),u=r(29237),d=r(41788),c=r(30775),s=r(86673),a=r(20582),l=r(82531),f=r(49125),p=r(79585),h=r(9736),m=r(28598);function v(){var e=((0,h.PR)()||{}).id,n=l.ZP.users.detail(e),r=n.data,t=n.mutate,o=null===r||void 0===r?void 0:r.user;return(0,m.jsx)(c.Z,{uuidItemSelected:p.DQ,uuidWorkspaceSelected:p.tC,children:(0,m.jsx)(s.Z,{p:f.cd,children:(0,m.jsx)(u.Z,{children:(0,m.jsx)(a.Z,{disabledFields:["roles"],onSaveSuccess:t,user:o})})})})}v.getInitialProps=(0,t.Z)(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)}))),n.default=(0,d.Z)(v)},10736:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/account/profile",function(){return r(96283)}])},80022:function(e,n,r){"use strict";function t(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.d(n,{Z:function(){return t}})},15544:function(e,n,r){"use strict";function t(e){return t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},t(e)}r.d(n,{Z:function(){return t}})},99177:function(e,n,r){"use strict";function t(e,n){return t=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},t(e,n)}function o(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&t(e,n)}r.d(n,{Z:function(){return o}})},93189:function(e,n,r){"use strict";r.d(n,{Z:function(){return i}});var t=r(12539),o=r(80022);function i(e,n){if(n&&("object"===t(n)||"function"===typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(e)}}},function(e){e.O(0,[844,1424,1005,3077,9774,2888,179],(function(){return n=10736,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3853],{76096:function(e,n,t){"use strict";var r=t(82394),o=t(26304),i=(t(82684),t(33591)),c=t(28598),u=["children","fullHeight","gutter","style"];function d(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?d(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.children,t=e.fullHeight,r=e.gutter,d=e.style,a=void 0===d?{}:d,l=(0,o.Z)(e,u),h=s({},a);return r&&(h.paddingLeft=r,h.paddingRight=h.paddingLeft),t&&(h.height="100%"),(0,c.jsx)(i.Col,s(s({},l),{},{style:h,children:n}))}},97361:function(e,n,t){"use strict";var r=t(82394),o=t(26304),i=t(82684),c=t(33591),u=t(28598),d=["children","fullHeight","gutter","justifyContent","style"];function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?s(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.children,t=e.fullHeight,r=e.gutter,s=e.justifyContent,l=e.style,h=void 0===l?{}:l,f=(0,o.Z)(e,d),p=a({},h);return r&&(p.marginLeft=-1*r,p.marginRight=p.marginLeft),t&&(p.height="100%"),(0,u.jsx)(c.Row,a(a({},f),{},{justifyContent:s,style:p,children:i.Children.map(n,(function(e,n){return e&&i.cloneElement(e,{gutter:r,key:n})}))}))}},29237:function(e,n,t){"use strict";var r=t(9518),o=t(67971),i=t(86673),c=t(19711),u=t(23831),d=t(73942),s=t(37391),a=t(49125),l=t(28598),h=(0,r.css)(["padding:","px;padding-bottom:","px;padding-top:","px;"],2*a.iI,1.5*a.iI,1.5*a.iI),f=r.default.div.withConfig({displayName:"Panel__PanelStyle",componentId:"sc-1ct8cgl-0"})(["border-radius:","px;overflow:hidden;"," "," "," "," "," "," "," "," "," "," "," ",""],d.n_,(function(e){return e.fullWidth&&"\n width: 100%;\n "}),(function(e){return!e.borderless&&"\n border: 1px solid ".concat((e.theme.interactive||u.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.success&&"\n background-color: ".concat((e.theme.background||u.Z.background).successLight,";\n ")}),(function(e){return e.success&&!e.borderless&&"\n border: 1px solid ".concat((e.theme.background||u.Z.background).success,";\n ")}),(function(e){return!e.dark&&!e.success&&"\n background-color: ".concat((e.theme.background||u.Z.background).panel,";\n ")}),(function(e){return e.dark&&"\n background-color: ".concat((e.theme.background||u.Z.background).content,";\n ")}),(function(e){return!e.fullHeight&&"\n height: fit-content;\n "}),(function(e){return e.maxHeight&&"\n max-height: ".concat(e.maxHeight,";\n ")}),(function(e){return e.maxWidth&&"\n max-width: ".concat(e.maxWidth,"px;\n ")}),(function(e){return e.minWidth&&"\n min-width: ".concat(e.minWidth,"px;\n\n @media (max-width: ").concat(e.minWidth,"px) {\n min-width: 0;\n }\n ")}),(function(e){return e.borderless&&"\n border: none;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),p=r.default.div.withConfig({displayName:"Panel__HeaderStyle",componentId:"sc-1ct8cgl-1"})(["border-top-left-radius:","px;border-top-right-radius:","px;"," "," "," ",""],d.n_,d.n_,(function(e){return"\n background-color: ".concat((e.theme.background||u.Z.background).chartBlock,";\n border-bottom: 1px solid ").concat((e.theme.interactive||u.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),h,(function(e){return e.headerPaddingVertical&&"\n padding-bottom: ".concat(e.headerPaddingVertical,"px;\n padding-top: ").concat(e.headerPaddingVertical,"px;\n ")})),g=r.default.div.withConfig({displayName:"Panel__ContentStyle",componentId:"sc-1ct8cgl-2"})(["overflow-y:auto;padding:","px;height:100%;"," "," "," "," ",""],1.75*a.iI,s.w5,(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),(function(e){return e.maxHeight&&"\n max-height: calc(".concat(e.maxHeight," - ").concat(15*a.iI,"px);\n ")}),(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),b=r.default.div.withConfig({displayName:"Panel__FooterStyle",componentId:"sc-1ct8cgl-3"})(["border-style:",";border-top-width:","px;padding:","px;"],d.M8,d.YF,1.75*a.iI);n.Z=function(e){var n=e.borderless,t=e.children,r=e.containerRef,u=e.contentContainerRef,d=e.dark,s=e.footer,a=e.fullHeight,h=void 0===a||a,m=e.fullWidth,j=void 0===m||m,x=e.header,y=e.headerHeight,v=e.headerIcon,Z=e.headerPaddingVertical,w=e.headerTitle,O=e.maxHeight,P=e.maxWidth,k=e.minWidth,_=e.noPadding,C=e.overflowVisible,I=e.subtitle,D=e.success;return(0,l.jsxs)(f,{borderless:n,dark:d,fullHeight:h,fullWidth:j,maxHeight:O,maxWidth:P,minWidth:k,overflowVisible:C,ref:r,success:D,children:[(x||w)&&(0,l.jsxs)(p,{headerPaddingVertical:Z,height:y,children:[x&&x,w&&(0,l.jsx)(o.Z,{alignItems:"center",justifyContent:"space-between",children:(0,l.jsxs)(o.Z,{alignItems:"center",children:[v&&v,(0,l.jsx)(i.Z,{ml:v?1:0,children:(0,l.jsx)(c.ZP,{bold:!0,default:!0,children:w})})]})})]}),(0,l.jsxs)(g,{maxHeight:O,noPadding:_,overflowVisible:C,ref:u,children:[I&&(0,l.jsx)(i.Z,{mb:2,children:(0,l.jsx)(c.ZP,{default:!0,children:I})}),t]}),s&&(0,l.jsx)(b,{children:s})]})}},34744:function(e,n,t){"use strict";var r=t(82394),o=t(26304),i=(t(82684),t(9518)),c=t(86673),u=t(23831),d=t(49125),s=t(28598),a=["short"];function l(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function h(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?l(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):l(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var f=i.default.div.withConfig({displayName:"Divider__DividerContainerStyle",componentId:"sc-1m7lqco-0"})([""," ",""],(function(e){return e.short&&"\n width: ".concat(21*d.iI,"px;\n ")}),(function(e){return!e.short&&"\n width: 100%;\n "})),p=i.default.div.withConfig({displayName:"Divider__DividerStyle",componentId:"sc-1m7lqco-1"})(["height:1px;"," "," "," "," "," ",""],(function(e){return!(e.light||e.medium)&&"\n background-color: ".concat((e.theme.monotone||u.Z.monotone).grey200,";\n ")}),(function(e){return e.muted&&"\n background-color: ".concat((e.theme.monotone||u.Z.monotone).grey500,";\n ")}),(function(e){return e.light&&"\n background-color: ".concat((e.theme.borders||u.Z.borders).light,";\n ")}),(function(e){return e.medium&&"\n background-color: ".concat((e.theme.borders||u.Z.borders).medium,";\n ")}),(function(e){return e.prominent&&"\n background-color: ".concat((e.theme.monotone||u.Z.monotone).grey300,";\n ")}),(function(e){return e.black&&"\n background-color: ".concat((e.theme.monotone||u.Z.monotone).black,";\n ")})),g=function(e){var n=e.short,t=(0,o.Z)(e,a);return(0,s.jsx)(f,{short:n,children:(0,s.jsx)(c.Z,h(h({},t),{},{children:(0,s.jsx)(p,h({},t))}))})};g.defaultProps={short:!1},n.Z=g},42949:function(e,n,t){"use strict";t.r(n);var r=t(77837),o=t(75582),i=t(38860),c=t.n(i),u=t(82684),d=t(83455),s=t(38341),a=t(76096),l=t(34744),h=t(93461),f=t(67971),p=t(87372),g=t(10919),b=t(29237),m=t(41788),j=t(97361),x=t(30775),y=t(86673),v=t(54283),Z=t(19711),w=t(70902),O=t(82531),P=t(11366),k=t(49125),_=t(79585),C=t(91427),I=t(96510),D=t(9728),H=t(28598);function S(){var e=(0,u.useState)(!!(0,C.U2)(P.kY)),n=e[0],t=e[1],r=(0,D.VI)(null,{},[],{uuid:"settings/workspace/preferences"}),i=(0,o.Z)(r,1)[0],c=O.ZP.projects.list(),m=c.data,S=c.mutate,E=(0,u.useMemo)((function(){var e;return null===m||void 0===m||null===(e=m.projects)||void 0===e?void 0:e[0]}),[m])||{},W=E.help_improve_mage,N=E.name,V=E.project_uuid,L=(0,d.Db)(O.ZP.projects.useUpdate(N),{onSuccess:function(e){return(0,I.wD)(e,{callback:function(){S()},onErrorCallback:function(e,n){return i({errors:n,response:e})}})}}),R=(0,o.Z)(L,2),T=R[0],U=R[1].isLoading,Y=(0,u.useCallback)((function(e){return T({project:e})}),[T]);return(0,H.jsx)(x.Z,{uuidItemSelected:_.HY,uuidWorkspaceSelected:_.WH,children:(0,H.jsx)(y.Z,{p:k.cd,children:(0,H.jsx)(j.Z,{justifyContent:"center",children:(0,H.jsx)(a.Z,{xl:8,xxl:6,children:(0,H.jsxs)(b.Z,{noPadding:!0,children:[(0,H.jsxs)(y.Z,{p:k.cd,children:[(0,H.jsx)(y.Z,{mb:1,children:(0,H.jsx)(p.Z,{level:5,children:"Project name"})}),(0,H.jsx)(Z.ZP,{default:!0,monospace:!0,children:N})]}),(0,H.jsx)(l.Z,{light:!0}),(0,H.jsxs)(y.Z,{p:k.cd,children:[(0,H.jsx)(y.Z,{mb:1,children:(0,H.jsx)(p.Z,{level:5,children:"Project UUID"})}),(0,H.jsx)(Z.ZP,{default:!!V,monospace:!0,muted:!V,children:V||"Not required"})]}),(0,H.jsx)(l.Z,{light:!0}),(0,H.jsx)(y.Z,{p:k.cd,children:(0,H.jsxs)(f.Z,{alignItems:"center",justifyContent:"space-between",children:[(0,H.jsxs)(h.Z,{flexDirection:"column",children:[(0,H.jsx)(y.Z,{mb:1,children:(0,H.jsx)(p.Z,{level:5,children:"Help improve Mage"})}),(0,H.jsxs)(Z.ZP,{default:!0,children:["Please contribute usage statistics to help improve the developer experience for you and everyone in the community. Learn more ",(0,H.jsx)(g.Z,{href:"https://docs.mage.ai/contributing/statistics/overview",openNewWindow:!0,children:"here"}),"."]})]}),(0,H.jsx)(y.Z,{mr:k.cd}),(0,H.jsx)(w.Z,{checked:W,onCheck:function(){Y({help_improve_mage:!W})}})]})}),(0,H.jsx)(l.Z,{light:!0}),(0,H.jsxs)(y.Z,{p:k.cd,children:[(0,H.jsx)(y.Z,{mb:1,children:(0,H.jsx)(p.Z,{level:5,children:"Automatically generate block names"})}),(0,H.jsx)(f.Z,{alignItems:"center",children:(0,H.jsx)(s.Z,{checked:n,label:"Use randomly generated names for blocks created in the future",onClick:function(){t(!n),(0,C.t8)(P.kY,!n)}})})]}),U&&(0,H.jsx)(y.Z,{p:k.cd,children:(0,H.jsx)(v.Z,{inverted:!0})})]})})})})})}S.getInitialProps=(0,r.Z)(c().mark((function e(){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)}))),n.default=(0,m.Z)(S)},11366:function(e,n,t){"use strict";t.d(n,{H8:function(){return o},g6:function(){return i},kY:function(){return r}});var r="automatically_name_blocks",o="pipeline_edit_before_tab_selected",i="pipeline_edit_hidden_blocks"},33323:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/preferences",function(){return t(42949)}])},80022:function(e,n,t){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}t.d(n,{Z:function(){return r}})},15544:function(e,n,t){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}t.d(n,{Z:function(){return r}})},99177:function(e,n,t){"use strict";function r(e,n){return r=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},r(e,n)}function o(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&r(e,n)}t.d(n,{Z:function(){return o}})},93189:function(e,n,t){"use strict";t.d(n,{Z:function(){return i}});var r=t(12539),o=t(80022);function i(e,n){if(n&&("object"===r(n)||"function"===typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(e)}}},function(e){e.O(0,[844,1424,1005,3077,9774,2888,179],(function(){return n=33323,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2403],{10831:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return I}});var r,i=n(77837),o=n(82394),s=n(75582),u=n(38860),c=n.n(u),a=n(82684),l=n(21764),d=n(83455),p=n(60328),h=n(38341),f=n(67971),y=n(87372),b=n(10919),m=n(41788),j=n(55378),v=n(30775),Z=n(86673);!function(e){e.SSH="ssh",e.HTTPS="https"}(r||(r={}));var g=[{autoComplete:"remote_repo_link",label:"Remote repo url",required:!0,uuid:"remote_repo_link"},{autoComplete:"repo_path",label:"Local directory path",labelDescription:"Defaults to Python's os.getcwd() if omitted. Mage will create this local directory if it doesn't already exist.",uuid:"repo_path"}],_=[{autoComplete:"username",label:"Username",uuid:"username"},{autoComplete:"email",label:"Email",uuid:"email"},{autoComplete:"ssh_public_key",label:"SSH public key in base64",labelDescription:'Run "cat ~/.ssh/id_rsa.pub | base64 | tr -d \\\\n && echo" in terminal to get base64 encoded public key and paste the result here. The key will be stored as a Mage secret.',type:"password",uuid:"ssh_public_key"},{autoComplete:"ssh_private_key",label:"SSH private key in base64",labelDescription:'Follow same steps as the public key, but run "cat ~/.ssh/id_rsa | base64 | tr -d \\\\n && echo" instead. The key will be stored as a Mage secret.',type:"password",uuid:"ssh_private_key"}],x=[{autoComplete:"username",label:"Username",required:!0,uuid:"username"},{autoComplete:"email",label:"Email",required:!0,uuid:"email"},{autoComplete:"access_token",label:"Access token",labelDescription:"Add your Git access token to authenticate with your provided username. The access token will be stored as a Mage secret.",required:!0,type:"password",uuid:"access_token"}],w=[{autoComplete:"branch",label:"Branch name",required:!0,uuid:"branch"}],O=n(19711),k=n(82944),P=n(70902),S=n(82531),C=n(49125),T=n(79585),D=n(96510),E=n(28598);function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function H(){var e=S.ZP.syncs.list().data,t=(0,a.useState)(null),n=t[0],i=t[1],u=(0,a.useState)(null),c=u[0],m=u[1],q=(0,a.useState)(null),H=q[0],I=q[1];(0,a.useEffect)((function(){if(e){var t,n=null===e||void 0===e||null===(t=e.syncs)||void 0===t?void 0:t[0];i(n),I(!(null===n||void 0===n||!n.branch))}}),[e]);var N=(0,d.Db)(S.ZP.syncs.useCreate(),{onSuccess:function(e){return(0,D.wD)(e,{callback:function(e){var t=e.sync;t&&(i(t),window.location.reload(),l.Am.success("Sync saved",{position:l.Am.POSITION.BOTTOM_RIGHT,toastId:"data_sync_success"}))},onErrorCallback:function(e){var t=e.error,n=t.exception;t.message;return m(n)}})}}),A=(0,s.Z)(N,2),G=A[0],R=A[1].isLoading,L=(0,d.Db)(S.ZP.syncs.useUpdate("git"),{onSuccess:function(e){return(0,D.wD)(e,{callback:function(e){e.sync&&l.Am.success("Data synced!",{position:l.Am.POSITION.BOTTOM_RIGHT,toastId:"data_sync_success"})},onErrorCallback:function(e){var t=e.error,n=t.exception;t.message;return m(n)}})}}),U=(0,s.Z)(L,2),W=U[0],B=U[1].isLoading,F=(0,a.useMemo)((function(){return(null===n||void 0===n?void 0:n.auth_type)||r.SSH}),[null===n||void 0===n?void 0:n.auth_type]),Y=(0,a.useMemo)((function(){return F===r.HTTPS?x:_}),[F]);return(0,E.jsx)(v.Z,{uuidItemSelected:T.fF,uuidWorkspaceSelected:T.WH,children:(0,E.jsxs)(Z.Z,{p:C.cd,style:{width:"600px"},children:[(0,E.jsx)(y.Z,{children:"Git repository settings"}),(0,E.jsx)(Z.Z,{mt:1,children:(0,E.jsx)(O.ZP,{bold:!0,children:"Authentication type"})}),(0,E.jsx)(Z.Z,{mt:1,children:(0,E.jsx)(j.Z,{compact:!0,label:"Authentication type",onChange:function(e){var t=e.target.value;i((function(e){return M(M({},e),{},{auth_type:t})}))},value:F,children:Object.entries(r).map((function(e){var t=(0,s.Z)(e,2),n=t[0],r=t[1];return(0,E.jsx)("option",{value:r,children:n},r)}))})}),(0,E.jsxs)(Z.Z,{mt:1,children:[(0,E.jsx)(O.ZP,{bold:!0,children:"You can enable the Git integration by supplying the url for your remote repository."}),F===r.SSH&&(0,E.jsxs)(O.ZP,{bold:!0,children:["You will need to ",(0,E.jsx)(b.Z,{href:"https://docs.mage.ai/developing-in-the-cloud/setting-up-git",openNewWindow:!0,children:"set up your SSH key"})," if you have not done so already."]})]}),(0,E.jsx)("form",{children:g.map((function(e){var t=e.autoComplete,r=e.disabled,s=e.label,u=e.labelDescription,c=e.required,a=e.type,l=e.uuid;return(0,E.jsxs)(Z.Z,{mt:2,children:[u&&(0,E.jsx)(Z.Z,{mb:1,children:(0,E.jsx)(O.ZP,{small:!0,children:u})}),(0,E.jsx)(k.Z,{autoComplete:t,disabled:r,label:s,onChange:function(e){i((function(t){return M(M({},t),{},(0,o.Z)({},l,e.target.value))}))},primary:!0,required:c,setContentOnMount:!0,type:a,value:(null===n||void 0===n?void 0:n[l])||""})]},l)}))}),(0,E.jsx)(Z.Z,{mt:C.Mq,children:(0,E.jsxs)(O.ZP,{bold:!0,children:["These fields are ",F===r.HTTPS?"required":"recommended"," to help Mage configure your Git settings."]})}),(0,E.jsx)("form",{children:Y.map((function(e){var t=e.autoComplete,r=e.disabled,s=e.label,u=e.labelDescription,c=e.required,a=e.type,l=e.uuid;return(0,E.jsxs)(Z.Z,{mt:2,children:[u&&(0,E.jsx)(Z.Z,{mb:1,children:(0,E.jsx)(O.ZP,{small:!0,children:u})}),(0,E.jsx)(k.Z,{autoComplete:t,disabled:r,label:s,onChange:function(e){i((function(t){return M(M({},t),{},(0,o.Z)({},l,e.target.value))}))},primary:!0,required:c,setContentOnMount:!0,type:a,value:(null===n||void 0===n?void 0:n[l])||""})]},l)}))}),(0,E.jsx)(Z.Z,{mt:C.Mq,children:(0,E.jsxs)(f.Z,{alignItems:"center",children:[(0,E.jsx)(Z.Z,{mr:2,children:(0,E.jsx)(P.Z,{checked:!!H,onCheck:function(){return I((function(e){var t=!e;return t||i((function(e){return M(M({},e),{},{branch:null,sync_on_pipeline_run:!1})})),t}))}})}),(0,E.jsxs)(O.ZP,{bold:!0,large:!0,children:["Use ",(0,E.jsx)(b.Z,{bold:!0,href:"https://docs.mage.ai/production/data-sync/git#git-sync",large:!0,openNewWindow:!0,children:"Git Sync"})]})]})}),H&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(Z.Z,{mt:1,children:(0,E.jsx)(O.ZP,{bold:!0,children:"(OPTIONAL) You can also set up your project to only sync with a specified branch."})}),(0,E.jsx)("form",{children:w.map((function(e){var t=e.autoComplete,r=e.disabled,s=e.label,u=e.required,c=e.type,a=e.uuid;return(0,E.jsx)(Z.Z,{mt:2,children:(0,E.jsx)(k.Z,{autoComplete:t,disabled:r,label:s,onChange:function(e){i((function(t){return M(M({},t),{},(0,o.Z)({},a,e.target.value))}))},primary:!0,required:u,setContentOnMount:!0,type:c,value:(null===n||void 0===n?void 0:n[a])||""})},a)}))}),(0,E.jsx)(f.Z,{alignItems:"center",children:(0,E.jsx)(Z.Z,{mt:2,children:(0,E.jsx)(h.Z,{checked:null===n||void 0===n?void 0:n.sync_on_pipeline_run,label:"Sync before each trigger run",onClick:function(){i((function(e){return M(M({},e),{},{sync_on_pipeline_run:!(null!==n&&void 0!==n&&n.sync_on_pipeline_run)})}))}})})})]}),(0,E.jsx)(Z.Z,{mt:2,children:(0,E.jsx)(p.Z,{loading:R,onClick:function(){return G({sync:n})},primary:!0,children:"Save repository settings"})}),c&&(0,E.jsx)(Z.Z,{mt:1,children:(0,E.jsx)(O.ZP,{danger:!0,children:c})}),H&&(0,E.jsxs)(Z.Z,{mt:C.HN,children:[(0,E.jsx)(y.Z,{children:"Synchronize code from remote repository"}),(0,E.jsx)(Z.Z,{mt:1,children:(0,E.jsxs)(O.ZP,{children:["Running the sync from this page will run a one time sync with the remote repository.",(0,E.jsx)("br",{}),"This may ",(0,E.jsx)(O.ZP,{bold:!0,danger:!0,inline:!0,children:"overwrite"})," your existing data, so make sure you\u2019ve committed or backed up your current changes."]})}),(0,E.jsx)(Z.Z,{mt:2,children:(0,E.jsx)(p.Z,{loading:B,onClick:function(){return W({sync:{action_type:"sync_data"}})},warning:!0,children:"Synchronize code"})})]})]})})}H.getInitialProps=(0,i.Z)(c().mark((function e(){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)})));var I=(0,m.Z)(H)},37056:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/sync-data",function(){return n(10831)}])},80022:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return r}})},15544:function(e,t,n){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{Z:function(){return r}})},99177:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}n.d(t,{Z:function(){return i}})},93189:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(12539),i=n(80022);function o(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.Z)(e)}}},function(e){e.O(0,[844,1424,1005,3077,9774,2888,179],(function(){return t=37056,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
|
mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users-cd838435ed1b8383.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2287],{63153:function(e,r,n){"use strict";n.d(r,{Z3:function(){return t},ms:function(){return u},s7:function(){return o}});var t=[{autoComplete:"username",label:"Username",required:!0,uuid:"username"},{autoComplete:"email",disabled:!1,label:"Email",required:!0,type:"email",uuid:"email"}],o="password_current",u=[{autoComplete:"current-password",label:"Current password",type:"password",uuid:o},{autoComplete:"new-password",label:"New password",type:"password",uuid:"password"},{autoComplete:"new-password",label:"Confirm new password",type:"password",uuid:"password_confirmation"}]},20582:function(e,r,n){"use strict";var t=n(82394),o=n(21831),u=n(75582),i=n(21764),s=n(82684),l=n(83455),a=n(60328),d=n(67971),c=n(87372),p=n(55378),f=n(86673),v=n(82944),w=n(81132),m=n(82531),O=n(66166),b=n(63153),h=n(9736),j=n(7715),y=n(96510),_=n(28598);function Z(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,t)}return n}function g(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?Z(Object(n),!0).forEach((function(r){(0,t.Z)(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}r.Z=function(e){var r=e.disabledFields,n=e.hideFields,Z=e.newUser,P=e.onDeleteSuccess,x=e.onSaveSuccess,C=e.showDelete,S=e.title,E=e.user,D=(0,s.useState)(!0),N=D[0],k=D[1],A=(0,s.useState)({}),I=A[0],R=A[1],T=(0,s.useState)(null),M=T[0],q=T[1],U=(0,h.PR)()||{},F=U.id,H=U.owner,G=U.roles,L=w.K$.filter((function(e){return G!==w.No.ADMIN||F===(null===E||void 0===E?void 0:E.id)||e>w.No.ADMIN})),W=(0,l.Db)(Z?m.ZP.users.useCreate():m.ZP.users.useUpdate(null===E||void 0===E?void 0:E.id),{onSuccess:function(e){return(0,y.wD)(e,{callback:function(e){var r=e.user,n=(0,j.GL)(r,b.Z3.concat(b.ms).map((function(e){return e.uuid})));q(n),i.Am.success(Z?"New user created successfully.":"User profile successfully updated.",{position:i.Am.POSITION.BOTTOM_RIGHT,toastId:"user-update-success-".concat(r.id)}),null===x||void 0===x||x(n)},onErrorCallback:function(e){var r=e.error,n=r.errors,t=r.exception,o=r.message,u=r.type;i.Am.error((null===n||void 0===n?void 0:n.error)||t||o,{position:i.Am.POSITION.BOTTOM_RIGHT,toastId:u})}})}}),V=(0,u.Z)(W,2),X=V[0],B=V[1].isLoading,K=(0,l.Db)(m.ZP.users.useDelete(null===E||void 0===E?void 0:E.id),{onSuccess:function(e){return(0,y.wD)(e,{callback:function(){null===P||void 0===P||P()},onErrorCallback:function(e){var r=e.error,n=r.errors,t=r.message;alert(t),console.log(n)}})}}),Q=(0,u.Z)(K,2),$=Q[0],z=Q[1].isLoading,J=n?(0,o.Z)(n):[];Z&&J.push(b.s7);var Y=!J||!J.includes(b.s7),ee=(0,O.Z)(E);return(0,s.useEffect)((function(){!E||M&&(null===ee||void 0===ee?void 0:ee.id)===(null===E||void 0===E?void 0:E.id)||q((0,j.GL)(E,b.Z3.concat(b.ms).map((function(e){return e.uuid})))),null!==M&&void 0!==M&&M.password||null!==M&&void 0!==M&&M.password_confirmation?(null===M||void 0===M?void 0:M.password)!==(null===M||void 0===M?void 0:M.password_confirmation)?R({password_confirmation:"Password confirmation does not match."}):!Y||null!==M&&void 0!==M&&M.password_current?R(null):R({password_current:"This field is required."}):null!==M&&void 0!==M&&M.password_current&&Y?null!==M&&void 0!==M&&M.password&&null!==M&&void 0!==M&&M.password_confirmation?R(null):R({password:"This field is required.",password_confirmation:"This field is required."}):null!==M&&void 0!==M&&M.password_current||null!==M&&void 0!==M&&M.password||null!==M&&void 0!==M&&M.password_confirmation||R(null)}),[M,Y,E,ee]),(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(c.Z,{children:S||"Edit profile"}),(0,_.jsxs)("form",{children:[b.Z3.filter((function(e){var r=e.uuid;return!J||!J.includes(r)})).map((function(e){var r=e.autoComplete,n=e.disabled,o=e.label,u=e.required,i=e.type,s=e.uuid;return(0,_.jsx)(f.Z,{mt:2,children:(0,_.jsx)(v.Z,{autoComplete:r,disabled:n&&!Z,label:o,onChange:function(e){k(!1),q((function(r){return g(g({},r),{},(0,t.Z)({},s,e.target.value))}))},primary:!0,required:u,setContentOnMount:!0,type:i,value:(null===M||void 0===M?void 0:M[s])||""})},s)})),!(null!==E&&void 0!==E&&E.owner)&&(0,_.jsx)(f.Z,{mt:2,children:(0,_.jsxs)(p.Z,{disabled:null===r||void 0===r?void 0:r.includes("roles"),label:"Roles",onChange:function(e){if(k(!1),e.target.value===w.No.OWNER)q((function(e){return g(g({},e),{},{owner:!0,roles:null})}));else{var r={roles:e.target.value};H&&(r.owner=!1),q((function(e){return g(g({},e),r)}))}},primary:!0,setContentOnMount:!0,value:(null!==M&&void 0!==M&&M.owner?w.No.OWNER:null===M||void 0===M?void 0:M.roles)||(null===E||void 0===E?void 0:E.roles)||"",children:[(0,_.jsx)("option",{value:""}),L.map((function(e){return(0,_.jsx)("option",{value:e,children:w.gG[e]},e)})),!Z&&H&&(0,_.jsx)("option",{value:w.No.OWNER,children:w.gG[w.No.OWNER]},"owner_role")]})}),(0,_.jsxs)(f.Z,{mt:5,children:[(0,_.jsx)(c.Z,{children:Z?"Password":"Change password"}),b.ms.filter((function(e){var r=e.uuid;return!J||!J.includes(r)})).map((function(e){var r=e.autoComplete,n=e.disabled,o=e.label,u=e.required,i=e.type,s=e.uuid;return(0,_.jsx)(f.Z,{mt:2,children:(0,_.jsx)(v.Z,{autoComplete:r,disabled:n,label:o,meta:{error:null===I||void 0===I?void 0:I[s],touched:!(null===I||void 0===I||!I[s])},onChange:function(e){k(!1),q((function(r){return g(g({},r),{},(0,t.Z)({},s,e.target.value))}))},primary:!0,required:u,setContentOnMount:!0,type:i,value:(null===M||void 0===M?void 0:M[s])||""})},s)}))]}),(0,_.jsx)(f.Z,{mt:5,children:(0,_.jsxs)(d.Z,{children:[(0,_.jsx)(a.Z,{disabled:N||I&&!(0,j.Qr)(I),loading:B,onClick:function(){return X({user:M})},primary:!0,children:Z?"Create new user":"Update user profile"}),C&&H&&(0,_.jsx)(f.Z,{ml:1,children:(0,_.jsx)(a.Z,{danger:!0,loading:z,onClick:function(){window.confirm("Are you sure you want to delete ".concat(M.username||M.email,"?"))&&$()},children:"Delete user"})})]})})]})]})}},60921:function(e,r,n){"use strict";n.r(r);var t=n(77837),o=n(82394),u=n(38860),i=n.n(u),s=n(82684),l=n(34376),a=n(60328),d=n(87372),c=n(41788),p=n(30775),f=n(86673),v=n(58180),w=n(19711),m=n(20582),O=n(82531),b=n(66166),h=n(10503),j=n(49125),y=n(79585),_=n(63153),Z=n(9736),g=n(33766),P=n(7715),x=n(59e3),C=n(28598);function S(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,t)}return n}function E(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?S(Object(n),!0).forEach((function(r){(0,o.Z)(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}function D(){var e=(0,l.useRouter)(),r=(0,Z.PR)()||{},n=r.id,t=r.owner,o=(0,s.useState)(null),u=o[0],i=o[1],c=O.ZP.users.list({},{revalidateOnFocus:!1}),S=c.data,D=c.mutate,N=(0,s.useMemo)((function(){return(null===S||void 0===S?void 0:S.users)||[]}),[null===S||void 0===S?void 0:S.users]),k=O.ZP.users.detail(null===u||void 0===u?void 0:u.user_id,{},{revalidateOnFocus:!1}),A=k.data,I=k.mutate,R=null===A||void 0===A?void 0:A.user,T=(0,x.iV)(),M=(0,b.Z)(T);(0,s.useEffect)((function(){var e=T.add_new_user,r=T.user_id;if(!(0,P.Xy)(T,M)){var n=E(E({},M),T);r?n.user_id=r:delete n.user_id,e?n.add_new_user=e:delete n.add_new_user,i(n)}}),[T,M]);var q=null===u||void 0===u?void 0:u.add_new_user,U=(0,s.useMemo)((function(){return q?(0,C.jsx)(f.Z,{p:j.cd,children:(0,C.jsx)(m.Z,{newUser:!0,onSaveSuccess:function(){(0,g.u7)({add_new_user:null,user_id:null}),D()},title:"Add new user",user:{}})}):R?(0,C.jsx)(f.Z,{p:j.cd,children:(0,C.jsx)(m.Z,{hideFields:[_.s7],onDeleteSuccess:function(){(0,g.u7)({add_new_user:null,user_id:null}),D()},onSaveSuccess:function(){(0,g.u7)({add_new_user:null,user_id:null}),I(),D()},showDelete:!0,title:"Edit user",user:R})}):null}),[I,D,q,R]);return(0,C.jsxs)(p.Z,{after:U,afterHidden:!R&&!q,uuidItemSelected:y.eC,uuidWorkspaceSelected:y.WH,children:[t&&(0,C.jsx)(f.Z,{p:j.cd,children:(0,C.jsx)(a.Z,{beforeIcon:(0,C.jsx)(h.mm,{}),onClick:function(){return(0,g.u7)({add_new_user:1,user_id:null})},primary:!0,children:"Add new user"})}),(0,C.jsx)(f.Z,{p:j.cd,children:(0,C.jsx)(d.Z,{children:"Users"})}),(0,C.jsx)(v.Z,{columnFlex:[1,1,1],columns:[{uuid:"Username"},{uuid:"Email"},{uuid:"Role"}],isSelectedRow:function(e){var r;return(null===(r=N[e])||void 0===r?void 0:r.id)===(null===R||void 0===R?void 0:R.id)},onClickRow:function(r){var t,o=null===(t=N[r])||void 0===t?void 0:t.id;o===n?e.push("/settings/account/profile"):+(null===u||void 0===u?void 0:u.user_id)===o?(0,g.u7)({user_id:null}):(0,g.u7)({add_new_user:null,user_id:o})},rows:N.map((function(e){var r=e.email,n=e.roles_display,t=e.username;return[(0,C.jsx)(w.ZP,{bold:!0,children:t},"username"),(0,C.jsx)(w.ZP,{default:!0,children:r},"email"),(0,C.jsx)(w.ZP,{default:!0,children:n},"roles")]})),uuid:"pipeline-runs"})]})}D.getInitialProps=(0,t.Z)(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)}))),r.default=(0,c.Z)(D)},33766:function(e,r,n){"use strict";n.d(r,{O2:function(){return c},g_:function(){return f},u7:function(){return p}});var t=n(75582),o=n(82394),u=n(34376),i=n.n(u),s=n(59e3),l=n(24224);function a(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,t)}return n}function d(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?a(Object(n),!0).forEach((function(r){(0,o.Z)(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var c="_offset";function p(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.preserveParams,o=r.pushHistory,u=r.replaceParams,l=(0,s.iV)(),a={};n&&n.forEach((function(e){l[e]&&(a[e]=l[e])}));var c,p=u?a:l;c=window.location.pathname;var f=o?i().push:i().replace,v=d(d({},p),e);Object.entries(e).forEach((function(e){var r=(0,t.Z)(e,2),n=r[0],o=r[1];"undefined"!==typeof o&&null!==o||delete v[n]}));var w=(0,s.uM)(v);w.length>=1&&(w="?".concat(w));var m="".concat(c.split("?")[0]).concat(w);return f(i().router.pathname,m,{shallow:!0})}function f(e,r,n){var o=n.addingMultipleValues,u=n.isList,i=n.itemsPerPage,s=n.pushHistory,a=void 0!==s&&s,f=n.resetLimitParams,v=d({},e);o?Object.entries(r).forEach((function(e){var r=(0,t.Z)(e,2),n=r[0],o=r[1];if(Array.isArray(o)){var u="".concat(n,"[]");v[u]=o.map(String)}})):u?Object.entries(r).forEach((function(e){var r=(0,t.Z)(e,2),n=r[0],o=r[1],u=String(o),i="".concat(n,"[]"),s=v[i];s&&Array.isArray(s)?(s=s.map(String)).includes(u)?v[i]=(0,l.Od)(s,(function(e){return e===u})):v[i]=s.concat(u):v[i]=[u]})):v=d(d({},v),r),f&&(v._limit=i||20,v[c]=0),p(v,{pushHistory:a})}},48673:function(e,r,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/users",function(){return n(60921)}])}},function(e){e.O(0,[844,7607,1424,1005,8180,3077,9774,2888,179],(function(){return r=48673,e(e.s=r);var r}));var r=e.O();_N_E=r}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4841],{1210:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var r=n(82394),o=n(21831),i=n(82684),u=n(47999),c=n(49894),s=n(93461),f=n(57384),l=n(41424),a=n(72454),d=n(28598);function h(e,t){var n=e.children;return(0,d.jsx)(a.HS,{ref:t,children:n})}var p=i.forwardRef(h),v=n(32063),b=n(85019),O=n(82531),j=n(66166),w=n(3055),y=n(49125),m=n(91427),_=n(24141);function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var x=function(e){var t,n=e.after,r=e.afterHidden,h=e.afterWidth,g=e.afterWidthOverride,x=e.before,P=e.beforeWidth,k=e.breadcrumbs,M=e.children,E=e.errors,C=e.headerMenuItems,S=e.navigationItems,A=e.setErrors,I=e.subheaderChildren,W=e.title,D=e.uuid,N=(0,_.i)().width,R="dashboard_after_width_".concat(D),T="dashboard_before_width_".concat(D),H=(0,i.useRef)(null),B=(0,i.useState)(g?h:(0,m.U2)(R,h)),z=B[0],F=B[1],U=(0,i.useState)(!1),X=U[0],q=U[1],G=(0,i.useState)(x?Math.max((0,m.U2)(T,P),13*y.iI):null),J=G[0],K=G[1],L=(0,i.useState)(!1),Q=L[0],V=L[1],Y=(0,i.useState)(null)[1],$=O.ZP.projects.list({},{revalidateOnFocus:!1}).data,ee=null===$||void 0===$?void 0:$.projects,te=[];k?te.push.apply(te,(0,o.Z)(k)):(null===ee||void 0===ee?void 0:ee.length)>=1&&te.push.apply(te,[{label:function(){var e;return null===(e=ee[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},{bold:!0,label:function(){return W}}]),(0,i.useEffect)((function(){null===H||void 0===H||!H.current||X||Q||null===Y||void 0===Y||Y(H.current.getBoundingClientRect().width)}),[X,z,Q,J,H,Y,N]),(0,i.useEffect)((function(){X||(0,m.t8)(R,z)}),[r,X,z,R]),(0,i.useEffect)((function(){Q||(0,m.t8)(T,J)}),[Q,J,T]);var ne=(0,j.Z)(h);return(0,i.useEffect)((function(){g&&ne!==h&&F(h)}),[g,h,ne]),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(f.Z,{title:W}),(0,d.jsx)(l.Z,{breadcrumbs:te,menuItems:C,project:null===ee||void 0===ee?void 0:ee[0],version:null===ee||void 0===ee||null===(t=ee[0])||void 0===t?void 0:t.version}),(0,d.jsxs)(a.Nk,{children:[0!==(null===S||void 0===S?void 0:S.length)&&(0,d.jsx)(a.lm,{showMore:!0,children:(0,d.jsx)(b.Z,{navigationItems:S,showMore:!0})}),(0,d.jsx)(s.Z,{flex:1,flexDirection:"column",children:(0,d.jsxs)(v.Z,{after:n,afterHeightOffset:w.Mz,afterHidden:r,afterMousedownActive:X,afterWidth:z,before:x,beforeHeightOffset:w.Mz,beforeMousedownActive:Q,beforeWidth:a.k1+(x?J:0),hideAfterCompletely:!0,leftOffset:x?a.k1:null,mainContainerRef:H,setAfterMousedownActive:q,setAfterWidth:F,setBeforeMousedownActive:V,setBeforeWidth:K,children:[I&&(0,d.jsx)(p,{children:I}),M]})})]}),E&&(0,d.jsx)(u.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===A||void 0===A?void 0:A(null)},children:(0,d.jsx)(c.Z,Z(Z({},E),{},{onClose:function(){return null===A||void 0===A?void 0:A(null)}}))})]})}},72433:function(e,t,n){"use strict";n.r(t);var r=n(77837),o=n(38860),i=n.n(o),u=n(82684),c=n(56085),s=n(35490),f=n(1210),l=n(41788),a=n(33699),d=n(94353),h=n(28799),p=n(28598);function v(){var e=(0,u.useMemo)((function(){return new s.Z}),[]),t=(0,u.useMemo)((function(){return{api_key:d.l,token:e.decodedToken.token}}),[e]),n=(0,c.ZP)((0,h.Ib)("terminal"),{shouldReconnect:function(){return!0},queryParams:t}),r=n.lastMessage,o=n.sendMessage;return(0,p.jsx)(f.Z,{title:"Terminal",uuid:"terminal/index",children:(0,p.jsx)(a.Z,{lastMessage:r,sendMessage:o})})}v.getInitialProps=(0,r.Z)(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)}))),t.default=(0,l.Z)(v)},27271:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/terminal",function(){return n(72433)}])},80022:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return r}})},15544:function(e,t,n){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{Z:function(){return r}})},99177:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}n.d(t,{Z:function(){return o}})},93189:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(12539),o=n(80022);function i(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(e)}}},function(e){e.O(0,[844,1424,1005,9774,2888,179],(function(){return t=27271,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[585],{1210:function(e,n,t){"use strict";t.d(n,{Z:function(){return P}});var r=t(82394),i=t(21831),o=t(82684),c=t(47999),u=t(49894),l=t(93461),s=t(57384),a=t(41424),d=t(72454),f=t(28598);function p(e,n){var t=e.children;return(0,f.jsx)(d.HS,{ref:n,children:t})}var h=o.forwardRef(p),g=t(32063),v=t(85019),j=t(82531),b=t(66166),m=t(3055),Z=t(49125),O=t(91427),x=t(24141);function _(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 y(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?_(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):_(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var P=function(e){var n,t=e.after,r=e.afterHidden,p=e.afterWidth,_=e.afterWidthOverride,P=e.before,E=e.beforeWidth,C=e.breadcrumbs,w=e.children,k=e.errors,A=e.headerMenuItems,I=e.navigationItems,S=e.setErrors,T=e.subheaderChildren,D=e.title,M=e.uuid,N=(0,x.i)().width,R="dashboard_after_width_".concat(M),H="dashboard_before_width_".concat(M),V=(0,o.useRef)(null),B=(0,o.useState)(_?p:(0,O.U2)(R,p)),L=B[0],z=B[1],q=(0,o.useState)(!1),F=q[0],U=q[1],W=(0,o.useState)(P?Math.max((0,O.U2)(H,E),13*Z.iI):null),Y=W[0],Q=W[1],J=(0,o.useState)(!1),X=J[0],K=J[1],$=(0,o.useState)(null)[1],G=j.ZP.projects.list({},{revalidateOnFocus:!1}).data,ee=null===G||void 0===G?void 0:G.projects,ne=[];C?ne.push.apply(ne,(0,i.Z)(C)):(null===ee||void 0===ee?void 0:ee.length)>=1&&ne.push.apply(ne,[{label:function(){var e;return null===(e=ee[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},{bold:!0,label:function(){return D}}]),(0,o.useEffect)((function(){null===V||void 0===V||!V.current||F||X||null===$||void 0===$||$(V.current.getBoundingClientRect().width)}),[F,L,X,Y,V,$,N]),(0,o.useEffect)((function(){F||(0,O.t8)(R,L)}),[r,F,L,R]),(0,o.useEffect)((function(){X||(0,O.t8)(H,Y)}),[X,Y,H]);var te=(0,b.Z)(p);return(0,o.useEffect)((function(){_&&te!==p&&z(p)}),[_,p,te]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(s.Z,{title:D}),(0,f.jsx)(a.Z,{breadcrumbs:ne,menuItems:A,project:null===ee||void 0===ee?void 0:ee[0],version:null===ee||void 0===ee||null===(n=ee[0])||void 0===n?void 0:n.version}),(0,f.jsxs)(d.Nk,{children:[0!==(null===I||void 0===I?void 0:I.length)&&(0,f.jsx)(d.lm,{showMore:!0,children:(0,f.jsx)(v.Z,{navigationItems:I,showMore:!0})}),(0,f.jsx)(l.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(g.Z,{after:t,afterHeightOffset:m.Mz,afterHidden:r,afterMousedownActive:F,afterWidth:L,before:P,beforeHeightOffset:m.Mz,beforeMousedownActive:X,beforeWidth:d.k1+(P?Y:0),hideAfterCompletely:!0,leftOffset:P?d.k1:null,mainContainerRef:V,setAfterMousedownActive:U,setAfterWidth:z,setBeforeMousedownActive:K,setBeforeWidth:Q,children:[T&&(0,f.jsx)(h,{children:T}),w]})})]}),k&&(0,f.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===S||void 0===S?void 0:S(null)},children:(0,f.jsx)(u.Z,y(y({},k),{},{onClose:function(){return null===S||void 0===S?void 0:S(null)}}))})]})}},97225:function(e,n,t){"use strict";var r=t(75582),i=t(12691),o=t.n(i),c=t(82684),u=t(83455),l=t(34376),s=t(60328),a=t(47999),d=t(67971),f=t(10919),p=t(93348),h=t(62609),g=t(86673),v=t(58180),j=t(19711),b=t(82531),m=t(10503),Z=t(49125),O=t(45838),x=t(9736),_=t(96510),y=t(66653),P=t(28598);n.Z=function(e){var n=e.fetchPipelineSchedules,t=e.highlightRowOnHover,i=e.includeCreatedAtColumn,E=e.includePipelineColumn,C=e.pipeline,w=e.pipelineSchedules,k=e.selectedSchedule,A=e.setErrors,I=e.setSelectedSchedule,S=e.stickyHeader,T=null===C||void 0===C?void 0:C.uuid,D=(0,l.useRouter)(),M=(0,c.useRef)({}),N=(0,c.useState)(null),R=N[0],H=N[1],V=(0,c.useState)(0),B=V[0],L=V[1],z=(0,c.useState)(0),q=z[0],F=z[1],U=(0,u.Db)((function(e){return b.ZP.pipeline_schedules.useUpdate(e.id)({pipeline_schedule:e})}),{onSuccess:function(e){return(0,_.wD)(e,{callback:function(){n()},onErrorCallback:function(e,n){return A({errors:n,response:e})}})}}),W=(0,r.Z)(U,1)[0],Y=(0,u.Db)((function(e){return b.ZP.pipeline_schedules.useDelete(e)()}),{onSuccess:function(e){return(0,_.wD)(e,{callback:function(){n(),T?D.push("/pipelines/[pipeline]/triggers","/pipelines/".concat(T,"/triggers")):n()},onErrorCallback:function(e,n){return A({errors:n,response:e})}})}}),Q=(0,r.Z)(Y,1)[0],J=[{label:function(){return""},uuid:"action"},{uuid:"Status"},{uuid:"Type"},{uuid:"Name"},{uuid:"Frequency"},{uuid:"Runs"},{uuid:"Latest run status"},{uuid:"Logs"}];(0,x.Ct)()||J.push({label:function(){return""},uuid:"edit/delete"});var X=[null,1,1,3,1,null,null,null,null];return E&&(J.splice(2,0,{uuid:"Pipeline"}),X.splice(2,0,2)),i&&(J.splice(3,0,{uuid:"Created at"}),X.splice(3,0,null)),(0,P.jsx)(O.cl,{overflowVisible:!0,children:0===w.length?(0,P.jsx)(g.Z,{px:3,py:1,children:(0,P.jsx)(j.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:"No triggers available"})}):(0,P.jsx)(v.Z,{columnFlex:X,columns:J,highlightRowOnHover:t,isSelectedRow:function(e){return w[e].id===(null===k||void 0===k?void 0:k.id)},onClickRow:I?function(e){return null===I||void 0===I?void 0:I(w[e])}:null,rowVerticalPadding:6,rows:w.map((function(e,n){var t,r=e.id,u=e.created_at,l=e.pipeline_runs_count,v=e.pipeline_uuid,b=e.last_pipeline_run_status,O=e.name,_=e.schedule_interval,C=e.status,w=T||v;M.current[r]=(0,c.createRef)();var k=[(0,P.jsx)(s.Z,{iconOnly:!0,noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(n){(0,y.j)(n),W({id:e.id,status:p.fq.ACTIVE===C?p.fq.INACTIVE:p.fq.ACTIVE})},children:p.fq.ACTIVE===C?(0,P.jsx)(m.dz,{muted:!0,size:2*Z.iI}):(0,P.jsx)(m.Py,{default:!0,size:2*Z.iI})},"toggle_trigger_".concat(n)),(0,P.jsx)(j.ZP,{default:p.fq.INACTIVE===C,monospace:!0,success:p.fq.ACTIVE===C,children:C},"trigger_status_".concat(n)),(0,P.jsx)(j.ZP,{default:!0,monospace:!0,children:null===(t=p.Z4[e.schedule_type])||void 0===t?void 0:t.call(p.Z4)},"trigger_type_".concat(n)),(0,P.jsx)(o(),{as:"/pipelines/".concat(w,"/triggers/").concat(r),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,P.jsx)(f.Z,{bold:!0,onClick:function(e){(0,y.j)(e),D.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(w,"/triggers/").concat(r))},sameColorAsText:!0,children:O})},"trigger_name_".concat(n)),(0,P.jsx)(j.ZP,{default:!0,monospace:!0,children:_},"trigger_frequency_".concat(n)),(0,P.jsx)(j.ZP,{default:!0,monospace:!0,children:l},"trigger_run_count_".concat(n)),(0,P.jsx)(j.ZP,{default:!0,monospace:!0,children:b||"N/A"},"latest_run_status_".concat(n)),(0,P.jsx)(s.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return D.push("/pipelines/".concat(w,"/logs?pipeline_schedule_id[]=").concat(r))},children:(0,P.jsx)(m.B4,{default:!0,size:2*Z.iI})},"logs_button_".concat(n))];return(0,x.Ct)()||k.push((0,P.jsxs)(d.Z,{children:[(0,P.jsx)(s.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return D.push("/pipelines/".concat(w,"/triggers/").concat(r,"/edit"))},title:"Edit",children:(0,P.jsx)(m.I8,{default:!0,size:2*Z.iI})}),(0,P.jsx)(g.Z,{mr:1}),(0,P.jsx)(s.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){var e,n,t,i;H(r),L((null===(e=M.current[r])||void 0===e||null===(n=e.current)||void 0===n?void 0:n.offsetTop)||0),F((null===(t=M.current[r])||void 0===t||null===(i=t.current)||void 0===i?void 0:i.offsetLeft)||0)},ref:M.current[r],title:"Delete",children:(0,P.jsx)(m.rF,{default:!0,size:2*Z.iI})}),(0,P.jsx)(a.Z,{onClickOutside:function(){return H(null)},open:R===r,children:(0,P.jsx)(h.Z,{danger:!0,left:(q||0)-286,onCancel:function(){return H(null)},onClick:function(){H(null),Q(r)},title:"Are you sure you want to delete the trigger ".concat(O,"?"),top:(B||0)-(n<=1?40:96),width:40*Z.iI})})]},"edit_delete_buttons_".concat(n))),E&&k.splice(2,0,(0,P.jsx)(j.ZP,{default:!0,monospace:!0,children:w},"pipeline_name_".concat(n))),i&&k.splice(3,0,(0,P.jsx)(j.ZP,{default:!0,monospace:!0,children:u},"created_at_".concat(n))),k})),stickyHeader:S,uuid:"pipeline-triggers"})})}},51099:function(e,n,t){"use strict";t.d(n,{Q:function(){return a}});t(82684);var r=t(60328),i=t(67971),o=t(86673),c=t(10503),u=t(73899),l=t(49125),s=t(28598),a=22;n.Z=function(e){var n=e.page,t=e.maxPages,a=e.onUpdate,d=e.totalPages,f=[],p=t;if(p>d)f=Array.from({length:d},(function(e,n){return n}));else{var h=Math.floor(p/2),g=n-h;n+h>=d?(g=d-p+2,p-=2):n-h<=0?(g=0,p-=2):(p-=4,g=n-Math.floor(p/2)),f=Array.from({length:p},(function(e,n){return n+g}))}return(0,s.jsx)(s.Fragment,{children:d>0&&(0,s.jsxs)(i.Z,{alignItems:"center",children:[(0,s.jsx)(r.Z,{disabled:0===n,onClick:function(){return a(n-1)},children:(0,s.jsx)(c.Hd,{size:1.5*l.iI,stroke:"#AEAEAE"})}),!f.includes(0)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(r.Z,{onClick:function(){return a(0)},borderLess:!0,noBackground:!0,children:1})},0),!f.includes(1)&&(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(r.Z,{notClickable:!0,noBackground:!0,noPadding:!0,children:"..."})},0)]}),f.map((function(e){return(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(r.Z,{onClick:function(){e!==n&&a(e)},notClickable:e===n,backgroundColor:e===n&&u.a$,borderLess:!0,noBackground:!0,children:e+1})},e)})),!f.includes(d-1)&&(0,s.jsxs)(s.Fragment,{children:[!f.includes(d-2)&&(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(r.Z,{notClickable:!0,noBackground:!0,noPadding:!0,children:"..."})},0),(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(r.Z,{onClick:function(){return a(d-1)},borderLess:!0,noBackground:!0,children:d})},d-1)]}),(0,s.jsx)(o.Z,{ml:1}),(0,s.jsx)(r.Z,{disabled:n===d-1,onClick:function(){return a(n+1)},children:(0,s.jsx)(c.Kw,{size:1.5*l.iI,stroke:"#AEAEAE"})})]})})}},93348:function(e,n,t){"use strict";t.d(n,{TR:function(){return d},U5:function(){return l},Xm:function(){return o},Z4:function(){return a},fq:function(){return u},kJ:function(){return s}});var r,i,o,c=t(82394);!function(e){e.API="api",e.EVENT="event",e.TIME="time"}(o||(o={}));var u,l,s,a=(r={},(0,c.Z)(r,o.API,(function(){return"API"})),(0,c.Z)(r,o.EVENT,(function(){return"event"})),(0,c.Z)(r,o.TIME,(function(){return"schedule"})),r);!function(e){e.ACTIVE="active",e.INACTIVE="inactive"}(u||(u={})),function(e){e.ONCE="@once",e.HOURLY="@hourly",e.DAILY="@daily",e.WEEKLY="@weekly",e.MONTHLY="@monthly"}(l||(l={})),function(e){e.CREATED_AT="created_at",e.NAME="name",e.PIPELINE="pipeline_uuid",e.STATUS="status",e.TYPE="schedule_type"}(s||(s={}));var d=(i={},(0,c.Z)(i,s.CREATED_AT,"Created at"),(0,c.Z)(i,s.NAME,"Name"),(0,c.Z)(i,s.PIPELINE,"Pipeline"),(0,c.Z)(i,s.STATUS,"Status"),(0,c.Z)(i,s.TYPE,"Type"),i)},46756:function(e,n,t){"use strict";t.r(n);var r=t(77837),i=t(82394),o=t(75582),c=t(38860),u=t.n(c),l=t(82684),s=t(34376),a=t(1210),d=t(67971),f=t(51099),p=t(41788),h=t(55378),g=t(86673),v=t(19711),j=t(97225),b=t(82531),m=t(93348),Z=t(49125),O=t(33766),x=t(59e3),_=t(28598);function y(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 P(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?y(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):y(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function E(){var e=(0,s.useRouter)(),n=(0,x.iV)(),t=null!==n&&void 0!==n&&n.page?n.page:0,r=(null===n||void 0===n?void 0:n.order_by)||m.kJ.CREATED_AT,i={_limit:f.Q,_offset:t*f.Q,order_by:r},c=b.ZP.pipeline_schedules.list(i,{refreshInterval:7500,revalidateOnFocus:!0}),u=c.data,p=c.mutate,y=(0,l.useMemo)((function(){return(null===u||void 0===u?void 0:u.pipeline_schedules)||[]}),[u]),E=(0,l.useMemo)((function(){var e;return(null===u||void 0===u||null===(e=u.metadata)||void 0===e?void 0:e.count)||[]}),[u]);return(0,_.jsxs)(a.Z,{title:"Triggers",uuid:"triggers/index",children:[(0,_.jsx)(g.Z,{mx:2,my:1,children:(0,_.jsxs)(d.Z,{alignItems:"center",children:[(0,_.jsx)(v.ZP,{bold:!0,default:!0,large:!0,children:"Sort runs by:"}),(0,_.jsx)(g.Z,{mr:1}),(0,_.jsx)(h.Z,{compact:!0,defaultColor:!0,fitContent:!0,onChange:function(e){e.preventDefault(),(0,O.u7)({order_by:e.target.value,page:0})},paddingRight:4*Z.iI,placeholder:"Select column",value:r||m.kJ.CREATED_AT,children:Object.entries(m.TR).map((function(e){var n=(0,o.Z)(e,2),t=n[0],r=n[1];return(0,_.jsx)("option",{value:t,children:r},t)}))})]})}),(0,_.jsx)(j.Z,{fetchPipelineSchedules:p,highlightRowOnHover:!0,includeCreatedAtColumn:!0,includePipelineColumn:!0,pipelineSchedules:y,stickyHeader:!0}),(0,_.jsx)(g.Z,{p:2,children:(0,_.jsx)(f.Z,{maxPages:9,onUpdate:function(t){var r=Number(t),i=P(P({},n),{},{page:r>=0?r:0});e.push("/triggers","/triggers?".concat((0,x.uM)(i)))},page:Number(t),totalPages:Math.ceil(E/f.Q)})})]})}E.getInitialProps=(0,r.Z)(u().mark((function e(){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)}))),n.default=(0,p.Z)(E)},33766:function(e,n,t){"use strict";t.d(n,{O2:function(){return d},g_:function(){return p},u7:function(){return f}});var r=t(75582),i=t(82394),o=t(34376),c=t.n(o),u=t(59e3),l=t(24224);function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?s(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var d="_offset";function f(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.preserveParams,i=n.pushHistory,o=n.replaceParams,l=(0,u.iV)(),s={};t&&t.forEach((function(e){l[e]&&(s[e]=l[e])}));var d,f=o?s:l;d=window.location.pathname;var p=i?c().push:c().replace,h=a(a({},f),e);Object.entries(e).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1];"undefined"!==typeof i&&null!==i||delete h[t]}));var g=(0,u.uM)(h);g.length>=1&&(g="?".concat(g));var v="".concat(d.split("?")[0]).concat(g);return p(c().router.pathname,v,{shallow:!0})}function p(e,n,t){var i=t.addingMultipleValues,o=t.isList,c=t.itemsPerPage,u=t.pushHistory,s=void 0!==u&&u,p=t.resetLimitParams,h=a({},e);i?Object.entries(n).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1];if(Array.isArray(i)){var o="".concat(t,"[]");h[o]=i.map(String)}})):o?Object.entries(n).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1],o=String(i),c="".concat(t,"[]"),u=h[c];u&&Array.isArray(u)?(u=u.map(String)).includes(o)?h[c]=(0,l.Od)(u,(function(e){return e===o})):h[c]=u.concat(o):h[c]=[o]})):h=a(a({},h),n),p&&(h._limit=c||20,h[d]=0),f(h,{pushHistory:s})}},59733:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/triggers",function(){return t(46756)}])}},function(e){e.O(0,[844,7607,1424,1005,8180,9774,2888,179],(function(){return n=59733,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|