mage-ai 0.8.25__py3-none-any.whl → 0.8.27__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of mage-ai might be problematic. Click here for more details.
- mage_ai/data_integrations/sources/constants.py +1 -0
- mage_ai/data_preparation/executors/streaming_pipeline_executor.py +2 -1
- mage_ai/data_preparation/logging/logger_manager.py +7 -1
- mage_ai/data_preparation/models/block/__init__.py +60 -17
- mage_ai/data_preparation/models/block/sql/__init__.py +64 -17
- mage_ai/data_preparation/models/block/sql/utils/shared.py +49 -3
- mage_ai/data_preparation/models/variable.py +6 -1
- mage_ai/data_preparation/repo_manager.py +5 -2
- mage_ai/data_preparation/shared/secrets.py +6 -3
- mage_ai/data_preparation/templates/sensors/bigquery.py +32 -0
- mage_ai/data_preparation/templates/sensors/mysql.py +33 -0
- mage_ai/data_preparation/templates/sensors/postgres.py +33 -0
- mage_ai/data_preparation/templates/sensors/redshift.py +33 -0
- mage_ai/data_preparation/templates/sensors/s3.py +11 -7
- mage_ai/data_preparation/templates/sensors/snowflake.py +33 -0
- mage_ai/io/postgres.py +13 -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/WbTBCvyjQQ9UFFLZOU1E5/_buildManifest.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/2344-f8ae030d6a6863ae.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/2626-e7fa4f83f8214c97.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{4178-663d9f70bffc7a47.js → 4178-a6d1bd2be4706f51.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/4261-88b0103fad331620.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{4538-8a3c3e47be976ede.js → 4538-347283088b83c6bf.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5141-57c3868a80196da8.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{5477-e2cc1ca7108ebc6b.js → 5477-b439f211b6146a11.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{5872-103815a4a043489b.js → 5872-1767c45ee6690ae5.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{5896-f84e336fb8877027.js → 5896-10a676bcc86978cc.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/6166-705b4fdecaf11e63.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/6532-b1bd0b3f422abec8.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{7400-26ce25ec46728ef7.js → 7400-a48b270726b9eef5.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/8180-8de652170ea5ed93.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/839-15c54471a9a9bf2e.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{9386-4b9e157e18dd2c65.js → 9386-d4cc11bab74eec8d.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{9832-c8b8970bb522f302.js → 9832-f97919376d52e3bf.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{_app-624f87faa4b5ee9a.js → _app-5f3dbed367342a3d.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-3046bc53d24917c7.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipeline-runs-f6059e27e601627c.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/{[...slug]-123556bdfe2e194b.js → [...slug]-050ef37b6672100a.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-5f95bb4c3a2d7d46.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-270c0198eeef1542.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-c9f1df40e0aa6981.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/{block-runs-e0eb0098dcbf27ac.js → block-runs-d74850779dbe87b3.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-848544a58563dbec.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{monitors-204daac985c03b62.js → monitors-675171cfd7d7b346.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/{[run]-44533e244974a422.js → [run]-b2955f0ff960894e.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{runs-2d41695001370abc.js → runs-219960b3cc4742e3.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-1767a2f57f887ef7.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-0f373aaa7deb98c9.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{triggers-181343d8eb894426.js → triggers-bea0439ca2a862ba.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-7446a70bdd8381a5.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{preferences-cd6121ffe82e3834.js → preferences-997acba85f777259.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/sync-data-91fbb84976467947.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users-d72dfc596e943cc4.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/sign-in-c99e74aa506a6cfd.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-4c9ad80f8f9d1074.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-783b9526167f1249.js +1 -0
- mage_ai/server/frontend_dist/index.html +2 -2
- mage_ai/server/frontend_dist/manage.html +4 -4
- 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]/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 → 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 +9 -9
- 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/server/server.py +1 -6
- mage_ai/shared/security.py +9 -2
- mage_ai/shared/utils.py +7 -0
- mage_ai/tests/data_preparation/models/block/__init__.py +0 -0
- mage_ai/tests/data_preparation/models/block/test_sql.py +42 -0
- mage_ai/tests/data_preparation/models/test_block.py +63 -0
- mage_ai/tests/shared/test_security.py +6 -6
- {mage_ai-0.8.25.dist-info → mage_ai-0.8.27.dist-info}/METADATA +1 -1
- {mage_ai-0.8.25.dist-info → mage_ai-0.8.27.dist-info}/RECORD +99 -92
- mage_ai/server/frontend_dist/_next/static/ErmV1Ii-luEqAYMZkbkmO/_buildManifest.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1830-3882c19d710feadd.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/2344-a82a406b72fe782b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/2626-501fffa58c71ee7c.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3688-562e0f129b09d1cd.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3699-dcc0946dd0709216.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/4463-777e71000be29fc4.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/6532-baf1818fbc89e6c1.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/6567-2488118bb39a9d99.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-11d6cbf2313f0689.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipeline-runs-c226d1e215d66129.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-26974ca695994804.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-1de289b75e9c5bf1.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-72011b08ef047531.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-3b17a6d28cdde471.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-c31fec2be1160dbe.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-3a60003fce7dfb93.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-0e88f39d4980fc10.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/sync_data-64e03c3a285d301e.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users-ff24167e21f2f0cf.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/sign-in-404d934deb8950d5.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-90abd9c4dfca2556.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-6540e41d09691d6b.js +0 -1
- /mage_ai/server/frontend_dist/_next/static/{ErmV1Ii-luEqAYMZkbkmO → WbTBCvyjQQ9UFFLZOU1E5}/_middlewareManifest.js +0 -0
- /mage_ai/server/frontend_dist/_next/static/{ErmV1Ii-luEqAYMZkbkmO → WbTBCvyjQQ9UFFLZOU1E5}/_ssgManifest.js +0 -0
- {mage_ai-0.8.25.dist-info → mage_ai-0.8.27.dist-info}/LICENSE +0 -0
- {mage_ai-0.8.25.dist-info → mage_ai-0.8.27.dist-info}/WHEEL +0 -0
- {mage_ai-0.8.25.dist-info → mage_ai-0.8.27.dist-info}/entry_points.txt +0 -0
- {mage_ai-0.8.25.dist-info → mage_ai-0.8.27.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[643],{90659:function(e,n,t){"use strict";var r=t(67403),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,n){var t,o,l,c,s,u,a=!1;n||(n={}),t=n.debug||!1;try{if(l=r(),c=document.createRange(),s=document.getSelection(),(u=document.createElement("span")).textContent=e,u.ariaHidden="true",u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",(function(r){if(r.stopPropagation(),n.format)if(r.preventDefault(),"undefined"===typeof r.clipboardData){t&&console.warn("unable to use e.clipboardData"),t&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=i[n.format]||i.default;window.clipboardData.setData(o,e)}else r.clipboardData.clearData(),r.clipboardData.setData(n.format,e);n.onCopy&&(r.preventDefault(),n.onCopy(r.clipboardData))})),document.body.appendChild(u),c.selectNodeContents(u),s.addRange(c),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");a=!0}catch(d){t&&console.error("unable to copy using execCommand: ",d),t&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(n.format||"text",e),n.onCopy&&n.onCopy(window.clipboardData),a=!0}catch(d){t&&console.error("unable to copy using clipboardData: ",d),t&&console.error("falling back to prompt"),o=function(e){var n=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,n)}("message"in n?n.message:"Copy to clipboard: #{key}, Enter"),window.prompt(o,e)}}finally{s&&("function"==typeof s.removeRange?s.removeRange(c):s.removeAllRanges()),u&&document.body.removeChild(u),l()}return a}},11984:function(e,n,t){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(n,"__esModule",{value:!0}),n.CopyToClipboard=void 0;var i=c(t(82684)),o=c(t(90659)),l=["text","onCopy","options","children"];function c(e){return e&&e.__esModule?e:{default:e}}function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function u(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?s(Object(t),!0).forEach((function(n){j(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function a(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function d(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function p(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,n){return f=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},f(e,n)}function h(e){var n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,r=v(e);if(n){var i=v(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return g(this,t)}}function g(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 m(e)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function j(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var b=function(e){!function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&f(e,n)}(s,e);var n,t,r,c=h(s);function s(){var e;d(this,s);for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];return j(m(e=c.call.apply(c,[this].concat(t))),"onClick",(function(n){var t=e.props,r=t.text,l=t.onCopy,c=t.children,s=t.options,u=i.default.Children.only(c),a=(0,o.default)(r,s);l&&l(r,a),u&&u.props&&"function"===typeof u.props.onClick&&u.props.onClick(n)})),e}return n=s,(t=[{key:"render",value:function(){var e=this.props,n=(e.text,e.onCopy,e.options,e.children),t=a(e,l),r=i.default.Children.only(n);return i.default.cloneElement(r,u(u({},t),{},{onClick:this.onClick}))}}])&&p(n.prototype,t),r&&p(n,r),Object.defineProperty(n,"prototype",{writable:!1}),s}(i.default.PureComponent);n.CopyToClipboard=b,j(b,"defaultProps",{onCopy:void 0,options:void 0})},64866:function(e,n,t){"use strict";var r=t(11984).CopyToClipboard;r.CopyToClipboard=r,e.exports=r},67403:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var n=document.activeElement,t=[],r=0;r<e.rangeCount;r++)t.push(e.getRangeAt(r));switch(n.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":n.blur();break;default:n=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||t.forEach((function(n){e.addRange(n)})),n&&n.focus()}}},2850:function(e,n,t){"use strict";t.d(n,{M:function(){return c},W:function(){return l}});var r=t(9518),i=t(23831),o=t(3055),l=34*t(49125).iI,c=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);",""],o.Mz,(function(e){return"\n border-left: 1px solid ".concat((e.theme.borders||i.Z.borders).medium,";\n ")}))},56681:function(e,n,t){"use strict";t.d(n,{G:function(){return x},Z:function(){return y}});var r=t(75582),i=t(82394),o=t(26304),l=t(32316),c=t(22673),s=t(86532),u=t(86673),a=t(19711),d=t(58180),p=t(49125),f=t(19395),h=t(28598),g=["height","heightOffset","pipeline","selectedRun","selectedTab","setSelectedTab"];function m(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function v(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?m(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var j={uuid:"Run details"},b={uuid:"Dependency tree"},x=[b,j];function y(e){var n=e.height,t=e.heightOffset,i=e.pipeline,m=e.selectedRun,y=e.selectedTab,Z=e.setSelectedTab,_=v({},(0,o.Z)(e,g));m?_.blockStatus=(0,f.IJ)(null===m||void 0===m?void 0:m.block_runs):_.noStatus=!0;var O=(null===m||void 0===m?void 0:m.variables)||{};null!==m&&void 0!==m&&m.event_variables&&(O.event=m.event_variables);var P=[];O&&JSON.stringify(O,null,2).split("\n").forEach((function(e){P.push(" ".concat(e))}));var w=m&&[["Run ID",null===m||void 0===m?void 0:m.id],["Variables",(0,h.jsx)(c.Z,{language:"json",small:!0,source:P.join("\n")})]],S=m&&(0,h.jsx)(u.Z,{pb:p.cd,px:p.cd,children:(0,h.jsx)(d.Z,{alignTop:!0,columnFlex:[null,1],columnMaxWidth:function(e){return 1===e?"100px":null},rows:w.map((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1];return[(0,h.jsx)(a.ZP,{monospace:!0,muted:!0,children:t}),(0,h.jsx)(a.ZP,{monospace:!0,textOverflow:!0,children:i})]})),uuid:"LogDetail"})}),k=y&&Z;return(0,h.jsxs)(h.Fragment,{children:[k&&(0,h.jsx)(u.Z,{py:p.cd,children:(0,h.jsx)(l.Z,{onClickTab:Z,selectedTabUUID:null===y||void 0===y?void 0:y.uuid,tabs:x})}),(!k||b.uuid===(null===y||void 0===y?void 0:y.uuid))&&(0,h.jsx)(s.Z,v(v({},_),{},{height:n,heightOffset:(t||0)+(k?76:0),pipeline:i})),j.uuid===(null===y||void 0===y?void 0:y.uuid)&&S]})}},18025:function(e,n,t){"use strict";t.d(n,{J:function(){return s},U:function(){return c}});var r=t(9518),i=t(23831),o=t(73942),l=t(49125),c=r.default.div.withConfig({displayName:"indexstyle__CardStyle",componentId:"sc-m7tlau-0"})(["border-radius:","px;border-style:solid;border-width:2px;height:","px;margin-right:","px;padding:","px;width:","px;"," ",""],o.TR,14*l.iI,l.cd*l.iI,l.cd*l.iI,40*l.iI,(function(e){return!e.selected&&"\n border-color: ".concat((e.theme.borders||i.Z.borders).light,";\n ")}),(function(e){return e.selected&&"\n border-color: ".concat((e.theme.interactive||i.Z.interactive).linkPrimary,";\n ")})),s=r.default.div.withConfig({displayName:"indexstyle__DateSelectionContainer",componentId:"sc-m7tlau-1"})(["border-radius:","px;padding:","px;"," "," ",""],o.n_,l.tr,(function(e){return"\n background-color: ".concat((e.theme.interactive||i.Z.interactive).defaultBackground,";\n ")}),(function(e){return e.absolute&&"\n position: absolute;\n z-index: 2;\n right: 0;\n top: ".concat(2.5*l.iI,"px;\n ")}),(function(e){return e.topPosition&&"\n top: -".concat(42*l.iI,"px;\n ")}))},2713:function(e,n,t){"use strict";var r=t(82394),i=t(44495),o=t(67971),l=t(55378),c=t(86673),s=t(19711),u=t(18025),a=t(49125),d=t(24224),p=t(28598);function f(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function h(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?f(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.selectedDate,t=e.selectedTime,r=e.setSelectedDate,f=e.setSelectedTime,g=e.topPosition;return(0,p.jsxs)(u.J,{absolute:!0,topPosition:g,children:[(0,p.jsx)(i.ZP,{onChange:r,value:n}),(0,p.jsx)(c.Z,{mb:2}),(0,p.jsxs)(o.Z,{alignItems:"center",children:[(0,p.jsx)(s.ZP,{default:!0,large:!0,children:"Time (UTC):"}),(0,p.jsx)(c.Z,{pr:2}),(0,p.jsx)(l.Z,{compact:!0,monospace:!0,onChange:function(e){e.preventDefault(),f((function(n){return h(h({},n),{},{hour:e.target.value})}))},paddingRight:5*a.iI,placeholder:"HH",value:null===t||void 0===t?void 0:t.hour,children:(0,d.m5)(24,0).map((function(e){return String(e).padStart(2,"0")})).map((function(e){return(0,p.jsx)("option",{value:e,children:e},"hour_".concat(e))}))}),(0,p.jsx)(c.Z,{px:1,children:(0,p.jsx)(s.ZP,{bold:!0,large:!0,children:":"})}),(0,p.jsx)(l.Z,{compact:!0,monospace:!0,onChange:function(e){e.preventDefault(),f((function(n){return h(h({},n),{},{minute:e.target.value})}))},paddingRight:5*a.iI,placeholder:"MM",value:null===t||void 0===t?void 0:t.minute,children:(0,d.m5)(60,0).map((function(e){return String(e).padStart(2,"0")})).map((function(e){return(0,p.jsx)("option",{value:e,children:e},"minute_".concat(e))}))})]})]})}},70902:function(e,n,t){"use strict";var r=t(82394),i=t(26304),o=t(82684),l=t(9518),c=t(69898),s=t(23831),u=t(28598),a=["checked","disabled","onCheck"];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 p(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}var f=l.default.label.withConfig({displayName:"ToggleSwitch__ToggleSwitchStyle",componentId:"sc-179r5zs-0"})([""," position:relative;display:inline-block;width:","px;min-width:","px;height:",'px;& input[type="checkbox"]{display:none;}& span{position:absolute;cursor:',";background-color:",";border-radius:13px;",';top:0;right:0;bottom:0;left:0;transition:background-color 0.2s ease;}& span::before{position:absolute;content:"";left:2px;top:2px;width:22px;height:22px;background-color:#787A85;border-radius:50%;transition:transform 0.3s ease;}& input[type="checkbox"]:checked + span::before{transform:translateX(20px);}',""],c.p,46,46,26,(function(e){return e.disabled?"not-allowed":"pointer"}),(function(e){return e.disabled?s.Z.monotone.white:s.Z.monotone.black}),(function(e){return e.disabled&&"border: 1px solid ".concat(s.Z.monotone.grey200)}),(function(e){return!e.disabled&&'\n & input[type="checkbox"]:checked + span {\n background-color: #6AA1E0;\n }\n\n & input[type="checkbox"]:checked + span::before {\n background-color: '.concat(s.Z.monotone.white,";\n }\n ")})),h=function(e,n){var t=e.checked,r=e.disabled,o=e.onCheck,l=(0,i.Z)(e,a);return(0,u.jsx)(c.Z,p(p({},l),{},{disabled:r,input:(0,u.jsxs)(f,p(p({},l),{},{disabled:r,noBackground:!0,noBorder:!0,children:[(0,u.jsx)("input",{checked:t,type:"checkbox"}),(0,u.jsx)("span",{onClick:r?null:function(){return null===o||void 0===o?void 0:o((function(e){return!e}))}})]})),noBackground:!0,ref:n}))};n.Z=o.forwardRef(h)},54183:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return Ce}});var r,i=t(75582),o=t(77837),l=t(82394),c=t(38860),s=t.n(c),u=t(82684),a=t(83455),d=t(34376),p=t(60328),f=t(34744),h=t(67971),g=t(87372),m=t(51099),v=t(2626),j=t(97496),b=t(47409),x=t(93348),y=t(55378),Z=t(86673),_=t(58180),O=t(19711),P=t(46261),w=t(82531),S=t(56681),k=t(2850),C=t(10503),I=t(49125),E=t(59920),D=t(24224);!function(e){e.AWS="aws_event"}(r||(r={}));var T=[{label:function(){return"AWS"},uuid:r.AWS}],A=(0,D.HK)(T,(function(e){return e.uuid})),M=t(66050),R=t(58122),N=t(19395),U=t(33766),F=t(7715),z=t(9736),H=t(96510),q=t(66653),L=t(59e3),V=t(28598);function X(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 W(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?X(Object(t),!0).forEach((function(n){(0,l.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):X(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var J=function(e){var n=e.fetchPipelineSchedule,t=e.pipeline,r=e.pipelineSchedule,o=e.variables,l=(0,d.useRouter)(),c=(0,z.Ct)(),s=(0,u.useState)(null),D=s[0],T=s[1],X=(t||{}).uuid,J=r||{},B=J.id,G=J.event_matchers,K=J.name,Y=J.schedule_interval,Q=J.schedule_type,$=J.settings,ee=J.sla,ne=J.start_time,te=J.status,re=J.variables,ie=void 0===re?{}:re,oe=(0,L.iV)(),le={_limit:30,_offset:30*(null!==oe&&void 0!==oe&&oe.page?oe.page:0)};null!==oe&&void 0!==oe&&oe.status&&(le.status=oe.status);var ce=w.ZP.pipeline_runs.pipeline_schedules.list(B,le,{refreshInterval:3e3,revalidateOnFocus:!0}),se=ce.data,ue=ce.mutate,ae=(0,u.useMemo)((function(){return(null===se||void 0===se?void 0:se.pipeline_runs)||[]}),[se]),de=(0,u.useMemo)((function(){var e;return(null===se||void 0===se||null===(e=se.metadata)||void 0===e?void 0:e.count)||[]}),[se]),pe=(0,u.useState)(null),fe=pe[0],he=pe[1],ge=(0,u.useMemo)((function(){var e=null!==oe&&void 0!==oe&&oe.page?oe.page:0;return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(j.Z,{fetchPipelineRuns:ue,onClickRow:function(e){return he((function(n){var t=ae[e];return(null===n||void 0===n?void 0:n.id)!==t.id?t:null}))},pipelineRuns:ae,selectedRun:fe}),(0,V.jsx)(Z.Z,{p:2,children:(0,V.jsx)(m.Z,{page:Number(e),maxPages:9,onUpdate:function(e){var n=Number(e),t=W(W({},oe),{},{page:n>=0?n:0});l.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(X,"/triggers/").concat(B,"?").concat((0,L.uM)(t)))},totalPages:Math.ceil(de/30)})})]})}),[ue,t,ae,fe]),me=(0,u.useState)(S.G[0]),ve=me[0],je=me[1],be=(0,a.Db)((function(e){return w.ZP.pipeline_schedules.useUpdate(e.id)({pipeline_schedule:(0,F.gR)(e,["id"])})}),{onSuccess:function(e){return(0,H.wD)(e,{callback:function(){n()},onErrorCallback:function(e,n){return T({errors:n,response:e})}})}}),xe=(0,i.Z)(be,2),ye=xe[0],Ze=xe[1].isLoading,_e=(0,u.useMemo)((function(){return x.fq.ACTIVE===te}),[te]),Oe=(0,u.useMemo)((function(){var e,n,t={default:!0,size:1.5*I.iI},r=[[(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(C.VW,W({},t)),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(O.ZP,{default:!0,children:"Trigger type"})]},"trigger_type_label"),(0,V.jsx)(O.ZP,{monospace:!0,children:null===(e=x.Z4[Q])||void 0===e?void 0:e.call(x.Z4)},"trigger_type")],[(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(C.rs,W({},t)),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(O.ZP,{default:!0,children:"Status"})]},"trigger_status_label"),(0,V.jsx)(O.ZP,{danger:!_e,monospace:!0,success:_e,children:te},"trigger_status")]];if(ee){var i=(0,N.gU)(ee),o=i.time,l=i.unit,c=1===o?l:"".concat(l,"s");r.push([(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(C.kI,W({},t)),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(O.ZP,{default:!0,children:"SLA"})]},"trigger_sla_label"),(0,V.jsx)(O.ZP,{monospace:!0,children:"".concat(o," ").concat(c)},"trigger_sla")])}(Y&&r.push([(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(C.Pf,W({},t)),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(O.ZP,{default:!0,children:"Frequency"})]},"trigger_frequency_label"),(0,V.jsx)(O.ZP,{monospace:!0,children:Y.replace("@","")},"trigger_frequency")]),ne&&r.push([(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(C.aw,W({},t)),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(O.ZP,{default:!0,children:"Start date"})]},"trigger_start_date_label"),(0,V.jsx)(O.ZP,{monospace:!0,children:ne},"trigger_start_date")]),null!==$&&void 0!==$&&$.skip_if_previous_running)&&r.push([(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(P.Z,{default:!0,label:"Skip current run if any previous runs are still in progress",size:1.5*I.iI,widthFitContent:!0}),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(O.ZP,{default:!0,children:"Skip if running"})]},"trigger_skip_if_running"),(0,V.jsx)(O.ZP,{monospace:!0,children:null===(n=$.skip_if_previous_running)||void 0===n?void 0:n.toString()},"trigger_skip_if_running_label")]);return null!==$&&void 0!==$&&$.allow_blocks_to_fail&&r.push([(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(P.Z,{default:!0,label:"Trigger runs will continue running blocks if other unrelated blocks fail",size:1.5*I.iI,widthFitContent:!0}),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(O.ZP,{default:!0,children:"Allow blocks to fail"})]},"trigger_allow_blocks_to_fail"),(0,V.jsx)(O.ZP,{monospace:!0,children:$.allow_blocks_to_fail.toString()},"trigger_allow_blocks_to_fail_label")]),(0,V.jsx)(_.Z,{columnFlex:[null,1],rows:r})}),[_e,Y,$,ee,ne,Q]),Pe=(0,u.useMemo)((function(){return ie||{}}),[ie]),we=(0,u.useMemo)((function(){var e,n=[];return(0,F.Qr)(Pe)?n=(0,R.wx)(o,(function(e){return"global"===e.uuid})):Object.entries(Pe).forEach((function(e){var t=(0,i.Z)(e,2),r=t[0],o=t[1];n.push({uuid:r,value:(0,R.FS)(o)})})),"undefined"!==typeof(n=(0,R.JZ)(n||[],Q))&&null!==(e=n)&&void 0!==e&&e.length?(0,V.jsx)(_.Z,{columnFlex:[null,1],rows:n.map((function(e){var n=e.uuid,t=e.value;return[(0,V.jsx)(O.ZP,{default:!0,monospace:!0,small:!0,children:n},"settings_variable_label_".concat(n)),(0,V.jsx)(O.ZP,{monospace:!0,small:!0,children:t},"settings_variable_".concat(n))]}))}):null}),[Q,ie,o]),Se=(0,u.useMemo)((function(){return(0,V.jsx)(_.Z,{columnFlex:[null,1],columns:[{uuid:"Provider"},{uuid:"Event"}],rows:null===G||void 0===G?void 0:G.map((function(e,n){var t=e.event_type,r=e.name;return[(0,V.jsx)(O.ZP,{default:!0,monospace:!0,children:A[t].label()},"".concat(t,"_").concat(n,"_label")),(0,V.jsx)(O.ZP,{monospace:!0,children:r},"".concat(t,"_").concat(n,"_name"))]}))})}),[G]);return(0,V.jsxs)(v.Z,{afterHidden:!fe,before:(0,V.jsxs)(k.M,{children:[(0,V.jsxs)(Z.Z,{mb:I.HN,pt:I.cd,px:I.cd,children:[(0,V.jsxs)(Z.Z,{mb:I.cd,children:[x.Xm.TIME===Q&&(0,V.jsx)(C.kO,{size:5*I.iI}),x.Xm.EVENT===Q&&(0,V.jsx)(C.Jp,{size:5*I.iI}),!Q&&(0,V.jsx)(C.VW,{size:5*I.iI})]}),(0,V.jsx)(g.Z,{children:K})]}),(0,V.jsx)(Z.Z,{px:I.cd,children:(0,V.jsx)(g.Z,{level:5,children:"Settings"})}),(0,V.jsx)(f.Z,{light:!0,mt:1,short:!0}),Oe,(null===G||void 0===G?void 0:G.length)>=1&&(0,V.jsxs)(Z.Z,{my:I.HN,children:[(0,V.jsx)(Z.Z,{px:I.cd,children:(0,V.jsx)(g.Z,{level:5,children:"Events"})}),(0,V.jsx)(f.Z,{light:!0,mt:1,short:!0}),Se]}),we&&(0,V.jsxs)(Z.Z,{my:I.HN,children:[(0,V.jsx)(Z.Z,{px:I.cd,children:(0,V.jsx)(g.Z,{level:5,children:"Runtime variables"})}),(0,V.jsx)(f.Z,{light:!0,mt:1,short:!0}),we]})]}),beforeWidth:k.W,breadcrumbs:[{label:function(){return"Triggers"},linkProps:{as:"/pipelines/".concat(X,"/triggers"),href:"/pipelines/[pipeline]/triggers"}},{label:function(){return K},linkProps:{as:"/pipelines/".concat(X,"/triggers/").concat(B),href:"/pipelines/[pipeline]/triggers/[...slug]"}}],buildSidekick:function(e){return(0,S.Z)(W(W({},e),{},{selectedRun:fe,selectedTab:ve,setSelectedTab:je}))},errors:D,pageName:E.M.TRIGGERS,pipeline:t,setErrors:T,subheader:(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(p.Z,{beforeIcon:_e?(0,V.jsx)(C.dz,{size:2*I.iI}):(0,V.jsx)(C.Py,{inverted:!c,size:2*I.iI}),danger:_e&&!c,loading:Ze,onClick:function(e){(0,q.j)(e),ye({id:B,status:_e?x.fq.INACTIVE:x.fq.ACTIVE})},outline:!0,success:!_e&&!c,children:_e?"Pause trigger":"Start trigger"}),(0,V.jsx)(Z.Z,{mr:I.cd}),!c&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(p.Z,{linkProps:{as:"/pipelines/".concat(X,"/triggers/").concat(B,"/edit"),href:"/pipelines/[pipeline]/triggers/[...slug]"},noHoverUnderline:!0,outline:!0,sameColorAsText:!0,children:"Edit trigger"}),(0,V.jsx)(Z.Z,{mr:I.cd})]}),(0,V.jsxs)(y.Z,{compact:!0,defaultColor:!0,onChange:function(e){e.preventDefault(),"all"===e.target.value?l.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(X,"/triggers/").concat(B)):(0,U.u7)({page:0,status:e.target.value})},paddingRight:4*I.iI,placeholder:"Select run status",value:(null===oe||void 0===oe?void 0:oe.status)||"all",children:[(0,V.jsx)("option",{value:"all",children:"All statuses"},"all_statuses"),Object.values(M.V).map((function(e){return(0,V.jsx)("option",{value:e,children:b.D[e]},e)}))]})]}),title:function(){return K},uuid:"triggers/detail",children:[(0,V.jsx)(Z.Z,{mt:I.cd,px:I.cd,children:(0,V.jsx)(g.Z,{level:5,children:"Runs for this trigger"})}),(0,V.jsx)(f.Z,{light:!0,mt:I.cd,short:!0}),ge]})},B=t(21831),G=t(21764),K=t(2713),Y=t(38341),Q=t(47999),$=t(22673),ee=t(65730),ne=t(93461),te=t(10919),re=t(26304),ie=t(9518),oe=t(23831),le=t(2005),ce=t(31012),se=["children","large","lineHeight","ordered"];function ue(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 ae(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ue(Object(t),!0).forEach((function(n){(0,l.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ue(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var de=(0,ie.css)([""," "," "," "," "," "," "," "," "," ",""],(function(e){return!e.muted&&"\n color: ".concat((e.theme.content||oe.Z.content).default,";\n ")}),(function(e){return e.muted&&"\n color: ".concat((e.theme.content||oe.Z.content).muted,";\n ")}),(function(e){return e.inverted&&"\n color: ".concat((e.theme.content||oe.Z.content).inverted,";\n ")}),(function(e){return e.color&&"\n color: ".concat(e.color,";\n ")}),(function(e){return!e.monospace&&"\n font-family: ".concat(le.ry,";\n ")}),(function(e){return e.monospace&&"\n font-family: ".concat(le.Vp,";\n ")}),(function(e){return e.large&&"\n ".concat(ce.x_,"\n ")}),(function(e){return!e.large&&!e.small&&"\n ".concat(ce.i3,"\n ")}),(function(e){return e.small&&"\n ".concat(ce.J5,"\n ")}),(function(e){return e.lineHeight&&"\n line-height: ".concat(e.lineHeight,"px !important;\n ")})),pe=ie.default.ul.withConfig({displayName:"List__UnorderedListStyle",componentId:"sc-1f6yhbi-0"})(["",""],de),fe=ie.default.ol.withConfig({displayName:"List__OrderedListStyle",componentId:"sc-1f6yhbi-1"})(["",""],de),he=ie.default.li.withConfig({displayName:"List__ListItemStyle",componentId:"sc-1f6yhbi-2"})(["",""],(function(e){return e.large&&e.marginTop&&"\n margin-top: ".concat(1*I.iI,"px;\n ")}));var ge=function(e){var n=e.children,t=e.large,r=e.lineHeight,i=e.ordered,o=(0,re.Z)(e,se),l=i?fe:pe;return(0,V.jsx)(l,ae(ae({large:t,lineHeight:r},o),{},{children:u.Children.map(n,(function(e,n){return(0,V.jsx)(he,ae(ae({large:t,marginTop:n>=1},o),{},{children:u.cloneElement(e)}),e.props.key)}))}))},me=t(98781),ve=t(82944),je=t(70902),be=t(18025);function xe(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function ye(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?xe(Object(t),!0).forEach((function(n){(0,l.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):xe(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Ze=function(e){var n=[{description:function(){return"This pipeline will run continuously on an interval or just once."},label:function(){return"Schedule"},uuid:x.Xm.TIME},{description:function(){return"This pipeline will run when a specific event occurs."},label:function(){return"Event"},uuid:x.Xm.EVENT},{description:function(){return"Run this pipeline when you make an API call."},label:function(){return"API"},uuid:x.Xm.API}];return e?n.slice(0,1):n};var _e=function(e){var n=e.fetchPipelineSchedule,t=e.pipeline,r=e.pipelineSchedule,o=e.variables,c=(0,d.useRouter)(),s=null===t||void 0===t?void 0:t.uuid,m=null===r||void 0===r?void 0:r.id,j=(null===t||void 0===t?void 0:t.type)===me.qL.STREAMING,b=(0,u.useState)(null),P=b[0],S=b[1],k=(0,u.useState)([]),A=k[0],M=k[1],U=(0,u.useState)(!1),z=U[0],q=U[1],L=(0,u.useState)(!1),X=L[0],W=L[1],J=(0,u.useState)(),re=J[0],ie=J[1],oe=(0,u.useState)({}),le=oe[0],ce=oe[1],se=(0,u.useState)(r),ue=se[0],ae=se[1],de=(0,u.useState)(!1),pe=de[0],fe=de[1],he=(0,u.useState)(null),xe=he[0],_e=he[1],Oe=(0,u.useMemo)((function(){return(0,R.wx)(o,(function(e){return"global"===e.uuid}))}),[o]),Pe=ue||{},we=Pe.name,Se=Pe.schedule_interval,ke=Pe.schedule_type,Ce=Pe.settings,Ie=void 0===Ce?{}:Ce,Ee=Pe.sla,De=Pe.start_time,Te=(Pe.token,Pe.variables),Ae=void 0===Te?{}:Te;(0,u.useEffect)((function(){Ie&&ie(Ie)}),[Ie]);var Me=(0,u.useState)(null),Re=Me[0],Ne=Me[1],Ue=(0,u.useState)({hour:"00",minute:"00"}),Fe=Ue[0],ze=Ue[1],He=w.ZP.event_rules.detail("aws").data,qe=(0,u.useMemo)((function(){var e;return(null===He||void 0===He||null===(e=He.event_rule)||void 0===e?void 0:e.rules)||[]}),[He]),Le=(0,u.useMemo)((function(){return(0,D.HK)(qe,(function(e){return e.name}))}),[qe]),Ve=(0,a.Db)(w.ZP.pipeline_schedules.useUpdate(m),{onSuccess:function(e){return(0,H.wD)(e,{callback:function(){n(),c.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(s,"/triggers/").concat(m))},onErrorCallback:function(e,n){return S({errors:n,response:e})}})}}),Xe=(0,i.Z)(Ve,2),We=Xe[0],Je=Xe[1].isLoading,Be=(0,u.useMemo)((function(){return Ae||{}}),[Ae]);(0,u.useEffect)((function(){if(De){var e=De.split(" ")[1];Ne((0,N.eI)(De)),ze({hour:e.substring(0,2),minute:e.substring(3,5)})}else{var n=new Date;Ne(n),ze({hour:String(n.getUTCHours()).padStart(2,"0"),minute:String(n.getUTCMinutes()).padStart(2,"0")})}}),[De]),(0,u.useEffect)((function(){Be&&Object.keys(Be).length>0&&q(!0)}),[Be]),(0,u.useEffect)((function(){ce(z?null===Oe||void 0===Oe?void 0:Oe.reduce((function(e,n){var t=n.uuid,r=n.value;return ye(ye({},e),{},(0,l.Z)({},t,Be[t]||r))}),{}):null)}),[Oe,z]),(0,u.useEffect)((function(){if(r&&(M(r.event_matchers),Ke?(ae(ye(ye({},r),{},{schedule_interval:"custom"})),_e(Se)):ae(j?ye(ye({},r),{},{schedule_interval:x.U5.ONCE}):r),r.sla)){W(!0);var e=(0,N.gU)(Ee),n=e.time,t=e.unit;ae((function(e){return ye(ye({},e),{},{slaAmount:n,slaUnit:t})}))}}),[r]);var Ge=(0,u.useCallback)((function(){var e=ye(ye({},(0,F.GL)(ue,["name","schedule_type"])),{},{event_matchers:[],schedule_interval:null,start_time:null,variables:(0,R.e7)(le)});if(x.Xm.EVENT===ue.schedule_type?e.event_matchers=A:(e.schedule_interval=Ke?xe:ue.schedule_interval,e.start_time=Re&&null!==Fe&&void 0!==Fe&&Fe.hour&&null!==Fe&&void 0!==Fe&&Fe.minute?"".concat(Re.toISOString().split("T")[0]," ").concat(null===Fe||void 0===Fe?void 0:Fe.hour,":").concat(null===Fe||void 0===Fe?void 0:Fe.minute,":00"):null),X){var n=null===ue||void 0===ue?void 0:ue.slaAmount,t=null===ue||void 0===ue?void 0:ue.slaUnit;if(!n||isNaN(n)||!t)return void G.Am.error("Please enter a valid SLA",{position:G.Am.POSITION.BOTTOM_RIGHT,toastId:"sla_error"});e.sla=(0,N.vJ)(n,t)}else null!==r&&void 0!==r&&r.sla&&(e.sla=0);e.settings=re,We({pipeline_schedule:e})}),[xe,Re,X,A,r,le,ue,re,Fe,We]),Ke=(0,u.useMemo)((function(){return Se&&!Object.values(x.U5).includes(Se)}),[Se]),Ye=(0,u.useMemo)((function(){var e=[[(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(C.KJ,{default:!0,size:1.5*I.iI}),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(O.ZP,{default:!0,children:"Trigger name"})]},"trigger_name_detail"),(0,V.jsx)(ve.Z,{monospace:!0,onChange:function(e){e.preventDefault(),ae((function(n){return ye(ye({},n),{},{name:e.target.value})}))},placeholder:"Name this trigger",value:we},"trigger_name_input_detail")],[(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(C.Pf,{default:!0,size:1.5*I.iI}),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(O.ZP,{default:!0,children:"Frequency"})]},"frequency"),(0,V.jsxs)(y.Z,{monospace:!0,onChange:function(e){e.preventDefault();var n=e.target.value;ae((function(e){return ye(ye({},e),{},{schedule_interval:n})}))},placeholder:"Choose the frequency to run",value:Se,children:[!Se&&(0,V.jsx)("option",{value:""}),Object.values(x.U5).map((function(e){return(0,V.jsx)("option",{value:e,children:e.substring(1)},e)})),(0,V.jsx)("option",{value:"custom",children:"custom"},"custom")]},"frequency_input")],[(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(C.aw,{default:!0,size:1.5*I.iI}),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(O.ZP,{default:!0,children:"Start date and time"})]},"start_time"),(0,V.jsxs)("div",{style:{minHeight:"".concat(5.75*I.iI,"px")},children:[!pe&&(0,V.jsx)(ve.Z,{monospace:!0,onClick:function(){return fe((function(e){return!e}))},placeholder:"YYYY-MM-DD HH:MM",value:Re?"".concat(Re.toISOString().split("T")[0]," ").concat(null===Fe||void 0===Fe?void 0:Fe.hour,":").concat(null===Fe||void 0===Fe?void 0:Fe.minute):""}),(0,V.jsx)("div",{style:{width:"400px"},children:(0,V.jsx)(Q.Z,{disableEscape:!0,onClickOutside:function(){return fe(!1)},open:pe,style:{position:"relative"},children:(0,V.jsx)(K.Z,{selectedDate:Re,selectedTime:Fe,setSelectedDate:Ne,setSelectedTime:ze,topPosition:!0})})})]},"start_time_input")]];return j&&e.splice(1,1),Ke&&e.splice(2,0,[(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(C.EK,{default:!0,size:1.5*I.iI}),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(O.ZP,{default:!0,children:"Cron expression"})]},"cron_expression"),(0,V.jsx)(ve.Z,{monospace:!0,onChange:function(e){e.preventDefault(),_e(e.target.value)},placeholder:"* * * * *",value:xe},"cron_expression_input")]),(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(Z.Z,{mb:2,px:I.cd,children:(0,V.jsx)(g.Z,{children:"Settings"})}),(0,V.jsx)(f.Z,{light:!0,short:!0}),(0,V.jsx)(_.Z,{columnFlex:[null,1],rows:e})]})}),[xe,Re,ue,pe,Fe]),Qe=(0,u.useCallback)((function(e,n){M((function(t){return Object.entries(n).forEach((function(n){var r=(0,i.Z)(n,2),o=r[0],l=r[1];t[e][o]=l})),(0,B.Z)(t)}))}),[M]),$e=(0,u.useMemo)((function(){return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(Z.Z,{mb:I.cd,px:I.cd,children:(0,V.jsx)(g.Z,{children:"Settings"})}),(0,V.jsx)(f.Z,{light:!0,short:!0}),(0,V.jsx)(_.Z,{columnFlex:[null,1],rows:[[(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(C.KJ,{default:!0,size:1.5*I.iI}),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(O.ZP,{default:!0,children:"Trigger name"})]},"trigger_name_event"),(0,V.jsx)(ve.Z,{monospace:!0,onChange:function(e){e.preventDefault(),ae((function(n){return ye(ye({},n),{},{name:e.target.value})}))},placeholder:"Name this trigger",value:we},"trigger_name_input_event")]]}),(0,V.jsxs)(Z.Z,{mb:2,mt:5,px:I.cd,children:[(0,V.jsx)(g.Z,{children:"Events"}),(0,V.jsxs)(O.ZP,{muted:!0,children:["Add 1 or more event that will trigger this pipeline to run.",(0,V.jsx)("br",{}),"If you add more than 1 event, this pipeline will trigger if any of the events are received."]}),(0,V.jsxs)(Z.Z,{mt:I.Mq,children:[(0,V.jsx)(O.ZP,{bold:!0,large:!0,children:"AWS events"}),(0,V.jsxs)(O.ZP,{muted:!0,children:["In order to retrieve all the possible AWS events you can trigger your pipeline from,",(0,V.jsx)("br",{}),"you\u2019ll need to set 3 environment variables (",(0,V.jsx)(te.Z,{href:"https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html",openNewWindow:!0,underline:!0,children:"more info here"}),"):"]}),(0,V.jsx)(Z.Z,{mt:1,children:(0,V.jsxs)(ge,{monospace:!0,ordered:!0,children:[(0,V.jsx)(O.ZP,{monospace:!0,children:"AWS_REGION_NAME"}),(0,V.jsx)(O.ZP,{monospace:!0,children:"AWS_ACCESS_KEY_ID"}),(0,V.jsx)(O.ZP,{monospace:!0,children:"AWS_SECRET_ACCESS_KEY"})]})})]})]}),(0,V.jsx)(f.Z,{light:!0,short:!0}),(null===A||void 0===A?void 0:A.length)>=1&&(0,V.jsx)(_.Z,{alignTop:!0,columnFlex:[1,1,2,null],columns:[{uuid:"Provider"},{uuid:"Event"},{uuid:"Pattern"},{label:function(){return""},uuid:"delete"}],rows:null===A||void 0===A?void 0:A.map((function(e,n){var t=e.event_type,r=e.name,i=e.pattern,o=e.id||"".concat(t,"-").concat(r,"-").concat(n,"-").concat(JSON.stringify(i)),l=[];return i&&JSON.stringify(i,null,2).split("\n").forEach((function(e){l.push(" ".concat(e))})),[(0,V.jsxs)(y.Z,{monospace:!0,onChange:function(e){return Qe(n,{event_type:e.target.value})},placeholder:"Event provider",value:t||"",children:[!t&&(0,V.jsx)("option",{value:""}),T.map((function(e){var n=e.label,t=e.uuid;return(0,V.jsx)("option",{value:t,children:n()},t)}))]},"event-provider-".concat(o)),(0,V.jsxs)(y.Z,{monospace:!0,onChange:function(e){var t,r=e.target.value,i=null===(t=Le[r])||void 0===t?void 0:t.event_pattern;Qe(n,{name:r,pattern:i?JSON.parse(i):null})},placeholder:"Event name",value:r,children:[!r&&(0,V.jsx)("option",{value:""}),qe.map((function(e){var n=e.name;return(0,V.jsx)("option",{value:n,children:n},n)}))]},"event-name-".concat(o)),i&&(0,V.jsx)($.Z,{language:"json",small:!0,source:l.join("\n")}),(0,V.jsx)(p.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return M((function(e){return(0,D.oM)(e,n)}))},children:(0,V.jsx)(C.rF,{default:!0,size:2*I.iI})},"remove_event")]}))}),(0,V.jsx)(Z.Z,{p:I.cd,children:(0,V.jsx)(p.Z,{beforeIcon:(0,V.jsx)(C.mm,{size:2*I.iI}),onClick:function(){return M((function(e){return e.concat({})}))},outline:!0,children:"Add event matcher"})})]})}),[A,qe,we]),en=(0,u.useMemo)((function(){var e,n="";return n="".concat(window.origin,"/api/pipeline_schedules/").concat(null===r||void 0===r?void 0:r.id,"/pipeline_runs"),null!==r&&void 0!==r&&r.token&&(n="".concat(n,"/").concat(r.token)),(e=window.location.port)&&(n=n.replace(e,"6789")),(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(Z.Z,{mb:I.cd,px:I.cd,children:(0,V.jsx)(g.Z,{children:"Settings"})}),(0,V.jsx)(f.Z,{light:!0,short:!0}),(0,V.jsx)(_.Z,{columnFlex:[null,1],rows:[[(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(C.KJ,{default:!0,size:1.5*I.iI}),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(O.ZP,{default:!0,children:"Trigger name"})]},"trigger_name_api"),(0,V.jsx)(ve.Z,{monospace:!0,onChange:function(e){e.preventDefault(),ae((function(n){return ye(ye({},n),{},{name:e.target.value})}))},placeholder:"Name this trigger",value:we},"trigger_name_input_api")]]}),(0,V.jsxs)(Z.Z,{mb:2,mt:5,px:I.cd,children:[(0,V.jsx)(g.Z,{children:"Endpoint"}),(0,V.jsxs)(O.ZP,{muted:!0,children:["Make a ",(0,V.jsx)(O.ZP,{bold:!0,inline:!0,monospace:!0,children:"POST"})," request to the following endpoint:"]}),(0,V.jsx)(Z.Z,{mt:I.Mq,children:(0,V.jsx)(ee.Z,{copiedText:n,linkText:n,monospace:!0,withCopyIcon:!0})})]}),(0,V.jsxs)(Z.Z,{mb:2,mt:5,px:I.cd,children:[(0,V.jsx)(g.Z,{children:"Payload"}),(0,V.jsx)(O.ZP,{muted:!0,children:"You can optionally include runtime variables in your request payload. These runtime variables are accessible from within each pipeline block."}),(0,V.jsx)(Z.Z,{mt:I.Mq,children:(0,V.jsx)(ee.Z,{withCopyIcon:!0,copiedText:'{\n "pipeline_run": {\n "variables": {\n "key1": "value1",\n "key2": "value2"\n }\n }\n}\n',children:(0,V.jsx)($.Z,{language:"json",small:!0,source:'\n {\n "pipeline_run": {\n "variables": {\n "key1": "value1",\n "key2": "value2"\n }\n }\n }\n'})})})]}),(0,V.jsxs)(Z.Z,{mb:2,mt:5,px:I.cd,children:[(0,V.jsx)(g.Z,{children:"Sample cURL command"}),(0,V.jsx)(Z.Z,{mt:I.Mq,children:(0,V.jsx)($.Z,{language:"bash",small:!0,source:"\n curl -X POST ".concat(n,' \\\n --header \'Content-Type: application/json\' \\\n --data \'\n {\n "pipeline_run": {\n "variables": {\n "key1": "value1",\n "key2": "value2"\n }\n }\n }\'\n')})})]})]})}),[we,r,"object"]),nn=!ke||x.Xm.TIME===ke&&!(j&&Re||!j&&Re&&Se)||x.Xm.EVENT===ke&&(!(null!==A&&void 0!==A&&A.length)||!A.every((function(e){var n=e.event_type,t=e.name;return n&&t}))),tn=(0,u.useMemo)((function(){return(0,V.jsxs)(Z.Z,{p:I.cd,children:[!(0,F.Qr)(Oe)&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(Z.Z,{mr:2,children:(0,V.jsx)(je.Z,{checked:z,onCheck:q})}),(0,V.jsx)(O.ZP,{monospace:!0,muted:!0,children:"Overwrite global variables"})]}),z&&le&&Object.entries(le).length>0&&(0,V.jsx)(Z.Z,{mt:2,children:(0,V.jsx)(_.Z,{columnFlex:[null,1],columns:[{uuid:"Variable"},{uuid:"Value"}],rows:Object.entries(le).map((function(e){var n=(0,i.Z)(e,2),t=n[0],r=n[1];return[(0,V.jsx)(O.ZP,{default:!0,monospace:!0,children:t},"variable_".concat(t)),(0,V.jsx)(ve.Z,{borderless:!0,monospace:!0,onChange:function(e){e.preventDefault(),ce((function(n){return ye(ye({},n),{},(0,l.Z)({},t,e.target.value))}))},paddingHorizontal:0,placeholder:"Variable value",value:r},"variable_uuid_input_".concat(t))]}))})})]}),(0,V.jsxs)(Z.Z,{mt:2,children:[(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(Z.Z,{mr:2,children:(0,V.jsx)(je.Z,{checked:X,onCheck:function(e){W(e),e||ae((function(e){return ye(ye({},e),{},{slaAmount:0})}))}})}),(0,V.jsx)(O.ZP,{default:!0,monospace:!0,children:"Configure trigger SLA"})]}),X&&(0,V.jsx)(Z.Z,{mt:2,children:(0,V.jsx)(_.Z,{columnFlex:[null,1],rows:[[(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(C.aw,{default:!0,size:1.5*I.iI}),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(O.ZP,{default:!0,children:"SLA"})]},"sla_detail"),(0,V.jsxs)(h.Z,{children:[(0,V.jsx)(ne.Z,{flex:1,children:(0,V.jsx)(ve.Z,{fullWidth:!0,monospace:!0,noBorder:!0,onChange:function(e){e.preventDefault(),ae((function(n){return ye(ye({},n),{},{slaAmount:e.target.value})}))},placeholder:"Time",value:null===ue||void 0===ue?void 0:ue.slaAmount})}),(0,V.jsx)(ne.Z,{flex:1,children:(0,V.jsx)(y.Z,{fullWidth:!0,monospace:!0,noBorder:!0,onChange:function(e){e.preventDefault(),ae((function(n){return ye(ye({},n),{},{slaUnit:e.target.value})}))},placeholder:"Select time unit",small:!0,value:null===ue||void 0===ue?void 0:ue.slaUnit,children:Object.keys(N.tL).map((function(e){return(0,V.jsx)("option",{value:e,children:"".concat(e,"(s)")},e)}))})})]},"sla_input_detail")]]})}),(0,V.jsxs)(Z.Z,{mt:2,children:[(0,V.jsx)(g.Z,{level:5,monospace:!0,children:"Additional settings"}),x.Xm.TIME===ke&&(0,V.jsx)(Z.Z,{mt:2,children:(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(Y.Z,{checked:null===re||void 0===re?void 0:re.skip_if_previous_running,onClick:function(){return ie((function(e){return ye(ye({},e),{},{skip_if_previous_running:!(null!==re&&void 0!==re&&re.skip_if_previous_running)})}))}}),(0,V.jsx)(Z.Z,{ml:2}),(0,V.jsx)(O.ZP,{default:!0,monospace:!0,small:!0,children:"Skip run if previous run still in progress"})]})}),(0,V.jsx)(Z.Z,{mt:2,children:(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(Y.Z,{checked:null===re||void 0===re?void 0:re.allow_blocks_to_fail,onClick:function(){return ie((function(e){return ye(ye({},e),{},{allow_blocks_to_fail:!(null!==re&&void 0!==re&&re.allow_blocks_to_fail)})}))}}),(0,V.jsx)(Z.Z,{ml:2}),(0,V.jsx)(O.ZP,{default:!0,monospace:!0,small:!0,children:"Keep running pipeline even if blocks fail"})]})})]})]})]})}),[X,Oe,z,le,ue,W,q,re]);return(0,V.jsx)(V.Fragment,{children:(0,V.jsxs)(v.Z,{after:tn,breadcrumbs:[{label:function(){return"Triggers"},linkProps:{as:"/pipelines/".concat(s,"/triggers"),href:"/pipelines/[pipeline]/triggers"}},{label:function(){return null===r||void 0===r?void 0:r.name},linkProps:{as:"/pipelines/".concat(s,"/triggers/").concat(m),href:"/pipelines/[pipeline]/triggers/[...slug]"}}],errors:P,pageName:E.M.TRIGGERS,pipeline:t,setErrors:S,subheader:(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(p.Z,{disabled:nn,loading:Je,onClick:Ge,outline:!0,primary:!0,children:"Save changes"}),(0,V.jsx)(Z.Z,{mr:1}),(0,V.jsx)(p.Z,{linkProps:{href:"/pipelines/[pipeline]/triggers/[...slug]",as:"/pipelines/".concat(s,"/triggers/").concat(m)},noHoverUnderline:!0,outline:!0,sameColorAsText:!0,children:"Cancel"})]}),title:function(){return"Edit ".concat(null===r||void 0===r?void 0:r.name)},uuid:"triggers/edit",children:[(0,V.jsxs)(Z.Z,{p:I.cd,children:[(0,V.jsxs)(Z.Z,{mb:2,children:[(0,V.jsx)(g.Z,{children:"Trigger type"}),(0,V.jsx)(O.ZP,{muted:!0,children:"How would you like this pipeline to be triggered?"})]}),(0,V.jsx)(h.Z,{children:Ze(j).map((function(e){var n=e.label,t=e.description,r=e.uuid,i=ke===r,o=ke&&!i;return(0,V.jsx)(p.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){x.Xm.EVENT!==r||null!==A&&void 0!==A&&A.length||M([{}]),ae((function(e){return ye(ye({},e),{},{schedule_type:r})}))},children:(0,V.jsx)(be.U,{selected:i,children:(0,V.jsxs)(h.Z,{alignItems:"center",children:[(0,V.jsx)(ne.Z,{children:(0,V.jsx)("input",{checked:i,type:"radio"})}),(0,V.jsx)(Z.Z,{mr:I.cd}),(0,V.jsxs)(ne.Z,{alignItems:"flex-start",flexDirection:"column",children:[(0,V.jsx)(g.Z,{bold:!0,default:!i&&!o,level:5,muted:!i&&o,children:n()}),(0,V.jsx)(O.ZP,{default:!i&&!o,leftAligned:!0,muted:o,children:t()})]})]})})},r)}))})]}),(0,V.jsxs)(Z.Z,{mt:5,children:[x.Xm.TIME===ke&&Ye,x.Xm.EVENT===ke&&$e,x.Xm.API===ke&&en]})]})})},Oe=t(41788),Pe=t(70543);function we(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Se(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?we(Object(t),!0).forEach((function(n){(0,l.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}function ke(e){var n=e.pipelineScheduleId,t=e.pipelineUUID,r=e.subpath,i=w.ZP.variables.pipelines.list(t).data,o=null===i||void 0===i?void 0:i.variables,l=w.ZP.pipeline_schedules.detail(n),c=l.data,s=l.mutate,u=null===c||void 0===c?void 0:c.pipeline_schedule,a=w.ZP.pipelines.detail(t,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,d=Se(Se({},null===a||void 0===a?void 0:a.pipeline),{},{uuid:t});return Pe.b===r?(0,V.jsx)(_e,{fetchPipelineSchedule:s,pipeline:d,pipelineSchedule:u,variables:o}):(0,V.jsx)(J,{fetchPipelineSchedule:s,pipeline:d,pipelineSchedule:u,variables:o})}ke.getInitialProps=function(){var e=(0,o.Z)(s().mark((function e(n){var t,r,o,l,c,u;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.query,r=t.pipeline,o=t.slug,!Array.isArray(o)){e.next=4;break}return l=(0,i.Z)(o,2),c=l[0],u=l[1],e.abrupt("return",{pipelineScheduleId:c,pipelineUUID:r,subpath:u});case 4:return e.abrupt("return",{pipelineUUID:r});case 5:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();var Ce=(0,Oe.Z)(ke)},95488:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/triggers/[...slug]",function(){return t(54183)}])}},function(e){e.O(0,[3850,2083,5896,4804,1774,5872,2524,4495,2344,9386,6166,8180,2626,6532,1286,4178,839,9774,2888,179],(function(){return n=95488,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4249],{58122:function(e,n,t){"use strict";t.d(n,{CL:function(){return f},FS:function(){return h},JZ:function(){return b},e7:function(){return v},v0:function(){return p},wx:function(){return g}});var r=t(75582),i=t(82394),o=t(43313),c=t(93348),u=t(1286),l=t(90211),a=t(84779);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 d(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}function p(e){var n=e.statistics,t=Object.keys(n),r=Array(o.Dy.length).fill(0);return 0===t.length?null:(t.forEach((function(e){if(o.Dy.includes(e)){var t=o.CC[e],i=n[e],c=i,u=!1,l=[2,3],s=o.Ub[e],d=o.oH[e],p=o.OD[e];if(o.y_.includes(e))u=!0,l=[2,1,2];else if(e in o.Sq){i=(0,a.Jw)(i,0);var f=o.Sq[e];c=n[f]}var h={columnFlexNumbers:l,name:t,progress:u,rate:c,successDirection:d,warning:p};o.y_.includes(e)||(h.value=i),r[s]=h}})),r)}function f(e){var n=e.columnTypes,t=void 0===n?{}:n,r=e.statistics,i=Object.keys(r);if(0===i.length)return null;var c=Object.values(t),a=c.length,s=[];s.push({name:"Column count",successDirection:o.oH.column_count,value:(0,l.x6)(a)}),i.forEach((function(e){if(o.Zu.includes(e)){var n=o.CC[e],t=r[e],i=o.OD[e];s.push({name:n,successDirection:o.oH[e],value:(0,l.x6)(t),warning:i})}}));var d=(0,u.QO)(c),p=d.countCategory,f=d.countDatetime,h=d.countNumerical;return s.push({name:"Categorical Features",rate:p/a,value:(0,l.x6)(p)},{name:"Numerical Features",rate:h/a,value:(0,l.x6)(h)},{name:"Datetime Features",rate:f/a,value:(0,l.x6)(f)}),s}function h(e){return"string"===typeof e?e:JSON.stringify(e)}function g(e,n){var t,r;return null===e||void 0===e||null===(t=e.find((function(e){var t=e.block;return n(t)})))||void 0===t||null===(r=t.variables)||void 0===r?void 0:r.map((function(e){var n=e.value;return d(d({},e),{},{value:h(n)})}))}function b(e,n){return n===c.Xm.TIME?e.push({uuid:"execution_date",value:"<run datetime>"}):n===c.Xm.EVENT&&e.push({uuid:"event",value:"<trigger event>"}),e}function v(e){return e?Object.entries(e).reduce((function(e,n){var t=(0,r.Z)(n,2),o=t[0],c=t[1],u=c;try{u=JSON.parse(c)}catch(l){}return d(d({},e),{},(0,i.Z)({},o,u))}),{}):e}},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),a=t(60328),s=t(47999),d=t(67971),p=t(10919),f=t(93348),h=t(62609),g=t(86673),b=t(87815),v=t(19711),m=t(82531),x=t(10503),j=t(49125),y=t(45838),O=t(9736),Z=t(96510),w=t(66653),P=t(28598);n.Z=function(e){var n=e.fetchPipelineSchedules,t=e.highlightRowOnHover,i=e.includeCreatedAtColumn,_=e.includePipelineColumn,k=e.pipeline,C=e.pipelineSchedules,S=e.selectedSchedule,I=e.setErrors,E=e.setSelectedSchedule,T=e.stickyHeader,D=null===k||void 0===k?void 0:k.uuid,N=(0,l.useRouter)(),A=(0,c.useRef)({}),H=(0,c.useState)(null),V=H[0],R=H[1],Y=(0,c.useState)(0),M=Y[0],B=Y[1],F=(0,c.useState)(0),W=F[0],q=F[1],J=(0,u.Db)((function(e){return m.ZP.pipeline_schedules.useUpdate(e.id)({pipeline_schedule:e})}),{onSuccess:function(e){return(0,Z.wD)(e,{callback:function(){n()},onErrorCallback:function(e,n){return I({errors:n,response:e})}})}}),L=(0,r.Z)(J,1)[0],z=(0,u.Db)((function(e){return m.ZP.pipeline_schedules.useDelete(e)()}),{onSuccess:function(e){return(0,Z.wD)(e,{callback:function(){n(),D?N.push("/pipelines/[pipeline]/triggers","/pipelines/".concat(D,"/triggers")):n()},onErrorCallback:function(e,n){return I({errors:n,response:e})}})}}),U=(0,r.Z)(z,1)[0],X=[{label:function(){return""},uuid:"action"},{uuid:"Status"},{uuid:"Type"},{uuid:"Name"},{uuid:"Frequency"},{uuid:"Runs"},{uuid:"Latest run status"},{uuid:"Logs"}];(0,O.Ct)()||X.push({label:function(){return""},uuid:"edit/delete"});var G=[null,1,1,3,1,null,null,null,null];return _&&(X.splice(2,0,{uuid:"Pipeline"}),G.splice(2,0,2)),i&&(X.splice(3,0,{uuid:"Created at"}),G.splice(3,0,null)),(0,P.jsx)(y.cl,{overflowVisible:!0,children:0===C.length?(0,P.jsx)(g.Z,{px:3,py:1,children:(0,P.jsx)(v.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:"No triggers available"})}):(0,P.jsx)(b.Z,{columnFlex:G,columns:X,highlightRowOnHover:t,isSelectedRow:function(e){return C[e].id===(null===S||void 0===S?void 0:S.id)},onClickRow:E?function(e){return null===E||void 0===E?void 0:E(C[e])}:null,rowVerticalPadding:6,rows:C.map((function(e,n){var t,r=e.id,u=e.created_at,l=e.pipeline_runs_count,b=e.pipeline_uuid,m=e.last_pipeline_run_status,y=e.name,Z=e.schedule_interval,k=e.status,C=D||b;A.current[r]=(0,c.createRef)();var S=[(0,P.jsx)(a.Z,{iconOnly:!0,noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(n){(0,w.j)(n),L({id:e.id,status:f.fq.ACTIVE===k?f.fq.INACTIVE:f.fq.ACTIVE})},children:f.fq.ACTIVE===k?(0,P.jsx)(x.dz,{muted:!0,size:2*j.iI}):(0,P.jsx)(x.Py,{default:!0,size:2*j.iI})},"toggle_trigger_".concat(n)),(0,P.jsx)(v.ZP,{default:f.fq.INACTIVE===k,monospace:!0,success:f.fq.ACTIVE===k,children:k},"trigger_status_".concat(n)),(0,P.jsx)(v.ZP,{default:!0,monospace:!0,children:null===(t=f.Z4[e.schedule_type])||void 0===t?void 0:t.call(f.Z4)},"trigger_type_".concat(n)),(0,P.jsx)(o(),{as:"/pipelines/".concat(C,"/triggers/").concat(r),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,P.jsx)(p.Z,{bold:!0,onClick:function(e){(0,w.j)(e),N.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(C,"/triggers/").concat(r))},sameColorAsText:!0,children:y})},"trigger_name_".concat(n)),(0,P.jsx)(v.ZP,{default:!0,monospace:!0,children:Z},"trigger_frequency_".concat(n)),(0,P.jsx)(v.ZP,{default:!0,monospace:!0,children:l},"trigger_run_count_".concat(n)),(0,P.jsx)(v.ZP,{default:!0,monospace:!0,children:m||"N/A"},"latest_run_status_".concat(n)),(0,P.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return N.push("/pipelines/".concat(C,"/logs?pipeline_schedule_id[]=").concat(r))},children:(0,P.jsx)(x.B4,{default:!0,size:2*j.iI})},"logs_button_".concat(n))];return(0,O.Ct)()||S.push((0,P.jsxs)(d.Z,{children:[(0,P.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return N.push("/pipelines/".concat(C,"/triggers/").concat(r,"/edit"))},title:"Edit",children:(0,P.jsx)(x.I8,{default:!0,size:2*j.iI})}),(0,P.jsx)(g.Z,{mr:1}),(0,P.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){var e,n,t,i;R(r),B((null===(e=A.current[r])||void 0===e||null===(n=e.current)||void 0===n?void 0:n.offsetTop)||0),q((null===(t=A.current[r])||void 0===t||null===(i=t.current)||void 0===i?void 0:i.offsetLeft)||0)},ref:A.current[r],title:"Delete",children:(0,P.jsx)(x.rF,{default:!0,size:2*j.iI})}),(0,P.jsx)(s.Z,{onClickOutside:function(){return R(null)},open:V===r,children:(0,P.jsx)(h.Z,{danger:!0,left:(W||0)-286,onCancel:function(){return R(null)},onClick:function(){R(null),U(r)},title:"Are you sure you want to delete the trigger ".concat(y,"?"),top:(M||0)-(n<=1?40:96),width:40*j.iI})})]},"edit_delete_buttons_".concat(n))),_&&S.splice(2,0,(0,P.jsx)(v.ZP,{default:!0,monospace:!0,children:C},"pipeline_name_".concat(n))),i&&S.splice(3,0,(0,P.jsx)(v.ZP,{default:!0,monospace:!0,children:u},"created_at_".concat(n))),S})),stickyHeader:T,uuid:"pipeline-triggers"})})}},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 s},fq:function(){return u},kJ:function(){return a}});var r,i,o,c=t(82394);!function(e){e.API="api",e.EVENT="event",e.TIME="time"}(o||(o={}));var u,l,a,s=(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"}(a||(a={}));var d=(i={},(0,c.Z)(i,a.CREATED_AT,"Created at"),(0,c.Z)(i,a.NAME,"Name"),(0,c.Z)(i,a.PIPELINE,"Pipeline"),(0,c.Z)(i,a.STATUS,"Status"),(0,c.Z)(i,a.TYPE,"Type"),i)},29237:function(e,n,t){"use strict";var r=t(9518),i=t(67971),o=t(86673),c=t(19711),u=t(23831),l=t(73942),a=t(37391),s=t(49125),d=t(28598),p=(0,r.css)(["padding:","px;padding-bottom:","px;padding-top:","px;"],2*s.iI,1.5*s.iI,1.5*s.iI),f=r.default.div.withConfig({displayName:"Panel__PanelStyle",componentId:"sc-1ct8cgl-0"})(["border-radius:","px;overflow:hidden;"," "," "," "," "," "," "," "," "," ",""],l.n_,(function(e){return e.fullWidth&&"\n width: 100%;\n "}),(function(e){return"\n border: 1px solid ".concat((e.theme.interactive||u.Z.interactive).defaultBorder,";\n ")}),(function(e){return!e.dark&&"\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 "})),h=r.default.div.withConfig({displayName:"Panel__HeaderStyle",componentId:"sc-1ct8cgl-1"})(["border-top-left-radius:","px;border-top-right-radius:","px;"," "," "," ",""],l.n_,l.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 ")}),p,(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*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=r.default.div.withConfig({displayName:"Panel__FooterStyle",componentId:"sc-1ct8cgl-3"})(["border-style:",";border-top-width:","px;padding:","px;"],l.M8,l.YF,1.75*s.iI);n.Z=function(e){var n=e.borderless,t=e.children,r=e.containerRef,u=e.contentContainerRef,l=e.dark,a=e.footer,s=e.fullHeight,p=void 0===s||s,v=e.fullWidth,m=void 0===v||v,x=e.header,j=e.headerHeight,y=e.headerIcon,O=e.headerPaddingVertical,Z=e.headerTitle,w=e.maxHeight,P=e.maxWidth,_=e.minWidth,k=e.noPadding,C=e.overflowVisible,S=e.subtitle;return(0,d.jsxs)(f,{borderless:n,dark:l,fullHeight:p,fullWidth:m,maxHeight:w,maxWidth:P,minWidth:_,overflowVisible:C,ref:r,children:[(x||Z)&&(0,d.jsxs)(h,{headerPaddingVertical:O,height:j,children:[x&&x,Z&&(0,d.jsx)(i.Z,{alignItems:"center",justifyContent:"space-between",children:(0,d.jsxs)(i.Z,{alignItems:"center",children:[y&&y,(0,d.jsx)(o.Z,{ml:y?1:0,children:(0,d.jsx)(c.ZP,{bold:!0,default:!0,children:Z})})]})})]}),(0,d.jsxs)(g,{maxHeight:w,noPadding:k,overflowVisible:C,ref:u,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})]})}},38435:function(e,n,t){"use strict";var r=t(82394),i=t(26304),o=t(82684),c=t(9518),u=t(69898),l=t(28598),a=["rows"];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 d(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}var p=c.default.textarea.withConfig({displayName:"TextArea__TextInputStyle",componentId:"sc-112wx63-0"})(["",""],u.p),f=function(e,n){var t=e.rows,r=void 0===t?3:t,o=(0,i.Z)(e,a);return(0,l.jsx)(u.Z,d(d({},o),{},{input:(0,l.jsx)(p,d({rows:r},o)),ref:n}))};n.Z=o.forwardRef(f)},70902:function(e,n,t){"use strict";var r=t(82394),i=t(26304),o=t(82684),c=t(9518),u=t(69898),l=t(23831),a=t(28598),s=["checked","disabled","onCheck"];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 p(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}var f=c.default.label.withConfig({displayName:"ToggleSwitch__ToggleSwitchStyle",componentId:"sc-179r5zs-0"})([""," position:relative;display:inline-block;width:","px;min-width:","px;height:",'px;& input[type="checkbox"]{display:none;}& span{position:absolute;cursor:',";background-color:",";border-radius:13px;",';top:0;right:0;bottom:0;left:0;transition:background-color 0.2s ease;}& span::before{position:absolute;content:"";left:2px;top:2px;width:22px;height:22px;background-color:#787A85;border-radius:50%;transition:transform 0.3s ease;}& input[type="checkbox"]:checked + span::before{transform:translateX(20px);}',""],u.p,46,46,26,(function(e){return e.disabled?"not-allowed":"pointer"}),(function(e){return e.disabled?l.Z.monotone.white:l.Z.monotone.black}),(function(e){return e.disabled&&"border: 1px solid ".concat(l.Z.monotone.grey200)}),(function(e){return!e.disabled&&'\n & input[type="checkbox"]:checked + span {\n background-color: #6AA1E0;\n }\n\n & input[type="checkbox"]:checked + span::before {\n background-color: '.concat(l.Z.monotone.white,";\n }\n ")})),h=function(e,n){var t=e.checked,r=e.disabled,o=e.onCheck,c=(0,i.Z)(e,s);return(0,a.jsx)(u.Z,p(p({},c),{},{disabled:r,input:(0,a.jsxs)(f,p(p({},c),{},{disabled:r,noBackground:!0,noBorder:!0,children:[(0,a.jsx)("input",{checked:t,type:"checkbox"}),(0,a.jsx)("span",{onClick:r?null:function(){return null===o||void 0===o?void 0:o((function(e){return!e}))}})]})),noBackground:!0,ref:n}))};n.Z=o.forwardRef(h)},6087:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return ue}});var r=t(77837),i=t(82394),o=t(75582),c=t(38860),u=t.n(c),l=t(12691),a=t.n(l),s=t(82684),d=t(83455),p=t(34376),f=t(60328),h=t(86532),g=t(34744),b=t(67971),v=t(87372),m=t(11135),x=t(10919),j=t(2626),y=t(93348),O=t(41788),Z=t(29237),w=t(86673),P=t(87815),_=t(19711),k=t(38435),C=t(82944),S=t(70902),I=t(23831),E=t(9518),T=t(73942),D=t(49125),N=E.default.div.withConfig({displayName:"indexstyle__ToggleStyle",componentId:"sc-f9kt7n-0"})(["padding:","px ","px;border-radius:","px;",""],1.5*D.iI,2*D.iI,T.n_,(function(e){return"\n border: 1px solid ".concat((e.theme||I.Z).borders.light,";\n background-color: ").concat((e.theme||I.Z).background.popup,";\n ")})),A=t(90211),H=t(58122),V=t(28598);function R(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?R(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):R(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var M="".concat(D.iI,"px ").concat(3*D.iI,"px");var B=function(e){var n=e.initialPipelineSchedulePayload,t=e.onCancel,r=e.onSuccess,c=e.variables,u=(0,s.useState)(!1),l=u[0],a=u[1],d=(0,s.useState)({}),p=d[0],h=d[1],g=(0,s.useState)(c||{}),m=g[0],x=g[1],j=(0,s.useMemo)((function(){return Y(Y({},n),{},{name:(0,A.Y6)(),variables:l?(0,H.e7)(m):null})}),[n,l,m]),y=function(e,n){var t={borderless:!0,key:"variable_uuid_input_".concat(e),monospace:!0,onChange:function(n){n.preventDefault(),x((function(t){return Y(Y({},t),{},(0,i.Z)({},e,n.target.value))}))},paddingHorizontal:0,placeholder:"Variable value",value:n};return p[e]?(0,V.jsx)(k.Z,Y(Y({},t),{},{rows:1,value:n})):(0,V.jsx)(C.Z,Y({},t))};return(0,s.useEffect)((function(){var e=Object.entries(m).reduce((function(e,n){var t=(0,o.Z)(n,2),r=t[0],c=t[1],u=(0,A.Pb)(c)&&"object"===typeof JSON.parse(c)&&!Array.isArray(JSON.parse(c))&&null!==JSON.parse(c);return Y(Y({},e),{},(0,i.Z)({},r,u))}),{});h(e)}),[]),(0,V.jsxs)(Z.Z,{footer:(0,V.jsxs)(b.Z,{alignItems:"center",fullWidth:!0,justifyContent:"flex-end",children:[(0,V.jsx)(f.Z,{onClick:function(){r({pipeline_schedule:j}),t()},padding:M,primaryAlternate:!0,children:"Run now"}),(0,V.jsx)(w.Z,{mr:1}),(0,V.jsx)(f.Z,{borderColor:I.Z.background.page,onClick:t,padding:M,secondary:!0,children:"Cancel"})]}),header:(0,V.jsx)(v.Z,{level:5,children:"Run pipeline now"}),maxHeight:"90vh",minWidth:85*D.iI,subtitle:"Creates a new trigger and immediately runs the current pipeline once.",children:[(0,V.jsx)(N,{children:(0,V.jsxs)(b.Z,{alignItems:"center",children:[(0,V.jsx)(w.Z,{mr:2,children:(0,V.jsx)(S.Z,{checked:l,onCheck:a})}),(0,V.jsx)(_.ZP,{bold:!0,large:!0,children:"Overwrite runtime variables"})]})}),l&&m&&Object.entries(m).length>0&&(0,V.jsx)(w.Z,{mt:2,children:(0,V.jsx)(P.Z,{columnFlex:[null,1],columns:[{uuid:"Variable"},{uuid:"Value"}],rows:Object.entries(m).map((function(e){var n=(0,o.Z)(e,2),t=n[0],r=n[1];return[(0,V.jsx)(_.ZP,{default:!0,monospace:!0,children:t},"variable_".concat(t)),y(t,r)]}))})})]})},F=t(37391),W=E.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-1xgfh62-0"})(["border-bottom:1px solid ",";padding:","px;"],I.Z.borders.medium,D.tr),q=E.default.div.withConfig({displayName:"indexstyle__CardsStyle",componentId:"sc-1xgfh62-1"})([""," height:80px;display:flex;overflow-x:scroll;"],F.w5),J=E.default.div.withConfig({displayName:"indexstyle__VariableCardStyle",componentId:"sc-1xgfh62-2"})(["background-color:",";border-radius:","px;flex-shrink:0;margin-right:","px;padding:","px;"],I.Z.background.output,T.n_,D.iI,D.tr),L=t(73899);var z=function(e){var n=e.hasOverride,t=e.scheduleType,r=e.variables,i=e.variablesOverride,c=[];return Object.entries(r).forEach((function(e){var n=(0,o.Z)(e,2),t=n[0],r=n[1],u=null===i||void 0===i?void 0:i[t];c.push({uuid:t,value:(0,H.FS)(u||r)})})),(0,H.JZ)(c,t),(0,V.jsxs)(W,{children:[(0,V.jsx)(w.Z,{mb:2,children:(0,V.jsxs)(_.ZP,{bold:!0,large:!0,monospace:!0,muted:!0,children:["Runtime variables",n&&" (override)"]})}),(0,V.jsx)(q,{noScrollbarTrackBackground:!0,children:r&&c.map((function(e){var n=e.uuid,t=e.value;return(0,V.jsxs)(J,{children:[(0,V.jsx)(_.ZP,{monospace:!0,small:!0,children:n}),(0,V.jsx)(_.ZP,{color:L.Or,monospace:!0,small:!0,children:(0,H.FS)(t)})]})}))})]})},U=t(46261),X=t(97225),G=t(82531),Q=t(10503),$=t(59920),K=t(42305),ee=t(7715),ne=t(9736),te=t(96510),re=t(83608);function ie(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 oe(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ie(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ie(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function ce(e){var n=e.pipeline,t=(0,p.useRouter)(),r=(0,ne.Ct)(),c=n.uuid,u=(0,s.useState)(null),l=u[0],O=u[1],Z=G.ZP.variables.pipelines.list(c).data,P=null===Z||void 0===Z?void 0:Z.variables,k=G.ZP.pipeline_schedules.pipelines.list(c,{},{refreshInterval:7500}),C=k.data,S=k.mutate,I=(0,s.useMemo)((function(){return(null===C||void 0===C?void 0:C.pipeline_schedules)||[]}),[C]),E=function(e){return(0,d.Db)(G.ZP.pipeline_schedules.pipelines.useCreate(c),{onSuccess:function(n){return(0,te.wD)(n,{callback:function(n){var t=n.pipeline_schedule.id;null===e||void 0===e||e(t)},onErrorCallback:function(e,n){return O({errors:n,response:e})}})}})},T=E((function(e){return t.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(null===n||void 0===n?void 0:n.uuid,"/triggers/").concat(e,"/edit"))})),N=(0,o.Z)(T,2),R=N[0],Y=N[1].isLoading,M=E(S),F=(0,o.Z)(M,2),W=F[0],q=F[1].isLoading,J=(0,s.useMemo)((function(){var e;return null===(e=(0,H.wx)(P,(function(e){return"global"===e.uuid})))||void 0===e?void 0:e.reduce((function(e,n){var t=n.uuid,r=n.value;return oe(oe({},e),{},(0,i.Z)({},t,r))}),{})}),[P]),L={name:(0,A.Y6)(),schedule_interval:y.U5.ONCE,schedule_type:y.Xm.TIME,start_time:(0,K.d$)((new Date).toISOString(),{dayAgo:!0,utcFormat:!0}),status:y.fq.ACTIVE},ie=(0,re.dd)((function(){return(0,V.jsx)(B,{initialPipelineSchedulePayload:L,onCancel:le,onSuccess:W,variables:J})}),{},[P,J],{background:!0,uuid:"run_pipeline_now_popup"}),ce=(0,o.Z)(ie,2),ue=ce[0],le=ce[1],ae=(0,s.useState)(),se=ae[0],de=ae[1],pe=(0,s.useMemo)((function(){var e=null===se||void 0===se?void 0:se.variables,n=!(0,ee.Qr)(e),t=n?null===se||void 0===se?void 0:se.variables:(0,ee.Qr)(J)?null:J;return function(i){var o=i.height-(t?151:0);return(0,V.jsxs)(V.Fragment,{children:[t&&(0,V.jsx)(z,{hasOverride:n,scheduleType:null===se||void 0===se?void 0:se.schedule_type,variables:J,variablesOverride:e}),!t&&(0,V.jsxs)(w.Z,{p:D.cd,children:[(0,V.jsx)(_.ZP,{children:"This pipeline has no runtime variables."}),!r&&(0,V.jsxs)(w.Z,{mt:1,children:[(0,V.jsx)(a(),{as:"/pipelines/".concat(c,"/edit?sideview=variables"),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,V.jsx)(x.Z,{primary:!0,children:"Click here"})})," ",(0,V.jsx)(_.ZP,{inline:!0,children:"to add variables to this pipeline."})]})]}),(0,V.jsx)(h.Z,oe(oe({},i),{},{height:o,noStatus:!0}))]})}}),[P,se]);return(0,V.jsxs)(j.Z,{breadcrumbs:[{label:function(){return"Triggers"}}],buildSidekick:pe,errors:l,pageName:$.M.TRIGGERS,pipeline:n,setErrors:O,subheaderBackgroundImage:"/images/banner-shape-purple-peach.jpg",subheaderButton:(0,V.jsx)(m.ZP,{beforeElement:(0,V.jsx)(Q.mm,{size:2.5*D.iI}),blackBorder:!0,inline:!0,loading:Y,noHoverUnderline:!0,onClick:function(){return R({pipeline_schedule:{name:(0,A.Y6)()}})},sameColorAsText:!0,uuid:"PipelineDetailPage/add_new_schedule",children:"Create new trigger"}),subheaderText:(0,V.jsx)(_.ZP,{bold:!0,large:!0,children:"Run this pipeline using a schedule, event, or API."}),title:function(e){var n=e.name;return"".concat(n," triggers")},uuid:"".concat($.M.TRIGGERS,"_").concat(c),children:[(0,V.jsx)(w.Z,{mt:D.cd,px:D.cd,children:(0,V.jsxs)(b.Z,{justifyContent:"space-between",children:[(0,V.jsx)(v.Z,{level:5,children:"Pipeline triggers"}),(0,V.jsx)(U.Z,{appearBefore:!0,default:!0,fullSize:!0,label:"Creates an @once trigger and runs pipeline immediately",widthFitContent:!0,children:(0,V.jsx)(f.Z,{beforeIcon:(0,V.jsx)(Q.JM,{inverted:!0,size:2*D.iI}),disabled:r,loading:q,onClick:(0,ee.Qr)(J)?function(){return W({pipeline_schedule:L})}:ue,outline:!0,success:!r,children:"Run pipeline now"})})]})}),(0,V.jsx)(g.Z,{light:!0,mt:D.cd,short:!0}),(0,V.jsx)(X.Z,{fetchPipelineSchedules:S,pipeline:n,pipelineSchedules:I,selectedSchedule:se,setErrors:O,setSelectedSchedule:de})]})}ce.getInitialProps=function(){var e=(0,r.Z)(u().mark((function e(n){var t;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.query.pipeline,e.abrupt("return",{pipeline:{uuid:t}});case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();var ue=(0,O.Z)(ce)},42305:function(e,n,t){"use strict";t.d(n,{A5:function(){return d},AY:function(){return p},BP:function(){return s},JX:function(){return a},OC:function(){return o},Pc:function(){return f},d$:function(){return l},lJ:function(){return h},n1:function(){return u}});var r=t(92083),i=t.n(r),o="YYYY-MM-DD HH:mm:ss",c="YYYY-MM-DD HH:mm",u="YYYY-MM-DD";function l(e,n){var t=n.utcFormat,r=n.dayAgo,o=i()(e);return t&&(o=o.utc()),r&&(o=o.subtract(1,"days")),o.format(c)}function a(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i().unix(e).format(null!==n&&void 0!==n&&n.withSeconds?o:c)}function s(e,n,t){return i()(e).utc().hours(+n).minutes(+t).format()}function d(e){return i()(e).unix()}function p(e,n,t){return"".concat(e.toISOString().split("T")[0]," ").concat(n,":").concat(t)}function f(e){var n=i().unix(+e).utc();return{date:n.toDate(),hour:String(n.hour()),minute:String(n.minute())}}function h(e){return e.padStart(2,"0")}},40183:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/triggers",function(){return t(6087)}])}},function(e){e.O(0,[3850,2083,5896,4804,1774,5872,2344,9386,1830,2626,4463,6532,1286,9774,2888,179],(function(){return n=40183,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4249],{58122:function(e,n,t){"use strict";t.d(n,{CL:function(){return f},FS:function(){return h},JZ:function(){return b},e7:function(){return v},v0:function(){return p},wx:function(){return g}});var r=t(75582),i=t(82394),o=t(43313),c=t(93348),u=t(1286),l=t(90211),a=t(84779);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 d(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}function p(e){var n=e.statistics,t=Object.keys(n),r=Array(o.Dy.length).fill(0);return 0===t.length?null:(t.forEach((function(e){if(o.Dy.includes(e)){var t=o.CC[e],i=n[e],c=i,u=!1,l=[2,3],s=o.Ub[e],d=o.oH[e],p=o.OD[e];if(o.y_.includes(e))u=!0,l=[2,1,2];else if(e in o.Sq){i=(0,a.Jw)(i,0);var f=o.Sq[e];c=n[f]}var h={columnFlexNumbers:l,name:t,progress:u,rate:c,successDirection:d,warning:p};o.y_.includes(e)||(h.value=i),r[s]=h}})),r)}function f(e){var n=e.columnTypes,t=void 0===n?{}:n,r=e.statistics,i=Object.keys(r);if(0===i.length)return null;var c=Object.values(t),a=c.length,s=[];s.push({name:"Column count",successDirection:o.oH.column_count,value:(0,l.x6)(a)}),i.forEach((function(e){if(o.Zu.includes(e)){var n=o.CC[e],t=r[e],i=o.OD[e];s.push({name:n,successDirection:o.oH[e],value:(0,l.x6)(t),warning:i})}}));var d=(0,u.QO)(c),p=d.countCategory,f=d.countDatetime,h=d.countNumerical;return s.push({name:"Categorical Features",rate:p/a,value:(0,l.x6)(p)},{name:"Numerical Features",rate:h/a,value:(0,l.x6)(h)},{name:"Datetime Features",rate:f/a,value:(0,l.x6)(f)}),s}function h(e){return"string"===typeof e?e:JSON.stringify(e)}function g(e,n){var t,r;return null===e||void 0===e||null===(t=e.find((function(e){var t=e.block;return n(t)})))||void 0===t||null===(r=t.variables)||void 0===r?void 0:r.map((function(e){var n=e.value;return d(d({},e),{},{value:h(n)})}))}function b(e,n){return n===c.Xm.TIME?e.push({uuid:"execution_date",value:"<run datetime>"}):n===c.Xm.EVENT&&e.push({uuid:"event",value:"<trigger event>"}),e}function v(e){return e?Object.entries(e).reduce((function(e,n){var t=(0,r.Z)(n,2),o=t[0],c=t[1],u=c;try{u=JSON.parse(c)}catch(l){}return d(d({},e),{},(0,i.Z)({},o,u))}),{}):e}},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),a=t(60328),s=t(47999),d=t(67971),p=t(10919),f=t(93348),h=t(62609),g=t(86673),b=t(58180),v=t(19711),m=t(82531),x=t(10503),j=t(49125),y=t(45838),O=t(9736),Z=t(96510),w=t(66653),P=t(28598);n.Z=function(e){var n=e.fetchPipelineSchedules,t=e.highlightRowOnHover,i=e.includeCreatedAtColumn,_=e.includePipelineColumn,k=e.pipeline,C=e.pipelineSchedules,S=e.selectedSchedule,I=e.setErrors,E=e.setSelectedSchedule,T=e.stickyHeader,D=null===k||void 0===k?void 0:k.uuid,N=(0,l.useRouter)(),A=(0,c.useRef)({}),H=(0,c.useState)(null),V=H[0],R=H[1],Y=(0,c.useState)(0),M=Y[0],B=Y[1],F=(0,c.useState)(0),W=F[0],q=F[1],J=(0,u.Db)((function(e){return m.ZP.pipeline_schedules.useUpdate(e.id)({pipeline_schedule:e})}),{onSuccess:function(e){return(0,Z.wD)(e,{callback:function(){n()},onErrorCallback:function(e,n){return I({errors:n,response:e})}})}}),L=(0,r.Z)(J,1)[0],z=(0,u.Db)((function(e){return m.ZP.pipeline_schedules.useDelete(e)()}),{onSuccess:function(e){return(0,Z.wD)(e,{callback:function(){n(),D?N.push("/pipelines/[pipeline]/triggers","/pipelines/".concat(D,"/triggers")):n()},onErrorCallback:function(e,n){return I({errors:n,response:e})}})}}),U=(0,r.Z)(z,1)[0],X=[{label:function(){return""},uuid:"action"},{uuid:"Status"},{uuid:"Type"},{uuid:"Name"},{uuid:"Frequency"},{uuid:"Runs"},{uuid:"Latest run status"},{uuid:"Logs"}];(0,O.Ct)()||X.push({label:function(){return""},uuid:"edit/delete"});var G=[null,1,1,3,1,null,null,null,null];return _&&(X.splice(2,0,{uuid:"Pipeline"}),G.splice(2,0,2)),i&&(X.splice(3,0,{uuid:"Created at"}),G.splice(3,0,null)),(0,P.jsx)(y.cl,{overflowVisible:!0,children:0===C.length?(0,P.jsx)(g.Z,{px:3,py:1,children:(0,P.jsx)(v.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:"No triggers available"})}):(0,P.jsx)(b.Z,{columnFlex:G,columns:X,highlightRowOnHover:t,isSelectedRow:function(e){return C[e].id===(null===S||void 0===S?void 0:S.id)},onClickRow:E?function(e){return null===E||void 0===E?void 0:E(C[e])}:null,rowVerticalPadding:6,rows:C.map((function(e,n){var t,r=e.id,u=e.created_at,l=e.pipeline_runs_count,b=e.pipeline_uuid,m=e.last_pipeline_run_status,y=e.name,Z=e.schedule_interval,k=e.status,C=D||b;A.current[r]=(0,c.createRef)();var S=[(0,P.jsx)(a.Z,{iconOnly:!0,noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(n){(0,w.j)(n),L({id:e.id,status:f.fq.ACTIVE===k?f.fq.INACTIVE:f.fq.ACTIVE})},children:f.fq.ACTIVE===k?(0,P.jsx)(x.dz,{muted:!0,size:2*j.iI}):(0,P.jsx)(x.Py,{default:!0,size:2*j.iI})},"toggle_trigger_".concat(n)),(0,P.jsx)(v.ZP,{default:f.fq.INACTIVE===k,monospace:!0,success:f.fq.ACTIVE===k,children:k},"trigger_status_".concat(n)),(0,P.jsx)(v.ZP,{default:!0,monospace:!0,children:null===(t=f.Z4[e.schedule_type])||void 0===t?void 0:t.call(f.Z4)},"trigger_type_".concat(n)),(0,P.jsx)(o(),{as:"/pipelines/".concat(C,"/triggers/").concat(r),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,P.jsx)(p.Z,{bold:!0,onClick:function(e){(0,w.j)(e),N.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(C,"/triggers/").concat(r))},sameColorAsText:!0,children:y})},"trigger_name_".concat(n)),(0,P.jsx)(v.ZP,{default:!0,monospace:!0,children:Z},"trigger_frequency_".concat(n)),(0,P.jsx)(v.ZP,{default:!0,monospace:!0,children:l},"trigger_run_count_".concat(n)),(0,P.jsx)(v.ZP,{default:!0,monospace:!0,children:m||"N/A"},"latest_run_status_".concat(n)),(0,P.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return N.push("/pipelines/".concat(C,"/logs?pipeline_schedule_id[]=").concat(r))},children:(0,P.jsx)(x.B4,{default:!0,size:2*j.iI})},"logs_button_".concat(n))];return(0,O.Ct)()||S.push((0,P.jsxs)(d.Z,{children:[(0,P.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return N.push("/pipelines/".concat(C,"/triggers/").concat(r,"/edit"))},title:"Edit",children:(0,P.jsx)(x.I8,{default:!0,size:2*j.iI})}),(0,P.jsx)(g.Z,{mr:1}),(0,P.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){var e,n,t,i;R(r),B((null===(e=A.current[r])||void 0===e||null===(n=e.current)||void 0===n?void 0:n.offsetTop)||0),q((null===(t=A.current[r])||void 0===t||null===(i=t.current)||void 0===i?void 0:i.offsetLeft)||0)},ref:A.current[r],title:"Delete",children:(0,P.jsx)(x.rF,{default:!0,size:2*j.iI})}),(0,P.jsx)(s.Z,{onClickOutside:function(){return R(null)},open:V===r,children:(0,P.jsx)(h.Z,{danger:!0,left:(W||0)-286,onCancel:function(){return R(null)},onClick:function(){R(null),U(r)},title:"Are you sure you want to delete the trigger ".concat(y,"?"),top:(M||0)-(n<=1?40:96),width:40*j.iI})})]},"edit_delete_buttons_".concat(n))),_&&S.splice(2,0,(0,P.jsx)(v.ZP,{default:!0,monospace:!0,children:C},"pipeline_name_".concat(n))),i&&S.splice(3,0,(0,P.jsx)(v.ZP,{default:!0,monospace:!0,children:u},"created_at_".concat(n))),S})),stickyHeader:T,uuid:"pipeline-triggers"})})}},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 s},fq:function(){return u},kJ:function(){return a}});var r,i,o,c=t(82394);!function(e){e.API="api",e.EVENT="event",e.TIME="time"}(o||(o={}));var u,l,a,s=(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"}(a||(a={}));var d=(i={},(0,c.Z)(i,a.CREATED_AT,"Created at"),(0,c.Z)(i,a.NAME,"Name"),(0,c.Z)(i,a.PIPELINE,"Pipeline"),(0,c.Z)(i,a.STATUS,"Status"),(0,c.Z)(i,a.TYPE,"Type"),i)},29237:function(e,n,t){"use strict";var r=t(9518),i=t(67971),o=t(86673),c=t(19711),u=t(23831),l=t(73942),a=t(37391),s=t(49125),d=t(28598),p=(0,r.css)(["padding:","px;padding-bottom:","px;padding-top:","px;"],2*s.iI,1.5*s.iI,1.5*s.iI),f=r.default.div.withConfig({displayName:"Panel__PanelStyle",componentId:"sc-1ct8cgl-0"})(["border-radius:","px;overflow:hidden;"," "," "," "," "," "," "," "," "," ",""],l.n_,(function(e){return e.fullWidth&&"\n width: 100%;\n "}),(function(e){return"\n border: 1px solid ".concat((e.theme.interactive||u.Z.interactive).defaultBorder,";\n ")}),(function(e){return!e.dark&&"\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 "})),h=r.default.div.withConfig({displayName:"Panel__HeaderStyle",componentId:"sc-1ct8cgl-1"})(["border-top-left-radius:","px;border-top-right-radius:","px;"," "," "," ",""],l.n_,l.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 ")}),p,(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*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=r.default.div.withConfig({displayName:"Panel__FooterStyle",componentId:"sc-1ct8cgl-3"})(["border-style:",";border-top-width:","px;padding:","px;"],l.M8,l.YF,1.75*s.iI);n.Z=function(e){var n=e.borderless,t=e.children,r=e.containerRef,u=e.contentContainerRef,l=e.dark,a=e.footer,s=e.fullHeight,p=void 0===s||s,v=e.fullWidth,m=void 0===v||v,x=e.header,j=e.headerHeight,y=e.headerIcon,O=e.headerPaddingVertical,Z=e.headerTitle,w=e.maxHeight,P=e.maxWidth,_=e.minWidth,k=e.noPadding,C=e.overflowVisible,S=e.subtitle;return(0,d.jsxs)(f,{borderless:n,dark:l,fullHeight:p,fullWidth:m,maxHeight:w,maxWidth:P,minWidth:_,overflowVisible:C,ref:r,children:[(x||Z)&&(0,d.jsxs)(h,{headerPaddingVertical:O,height:j,children:[x&&x,Z&&(0,d.jsx)(i.Z,{alignItems:"center",justifyContent:"space-between",children:(0,d.jsxs)(i.Z,{alignItems:"center",children:[y&&y,(0,d.jsx)(o.Z,{ml:y?1:0,children:(0,d.jsx)(c.ZP,{bold:!0,default:!0,children:Z})})]})})]}),(0,d.jsxs)(g,{maxHeight:w,noPadding:k,overflowVisible:C,ref:u,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})]})}},38435:function(e,n,t){"use strict";var r=t(82394),i=t(26304),o=t(82684),c=t(9518),u=t(69898),l=t(28598),a=["rows"];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 d(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}var p=c.default.textarea.withConfig({displayName:"TextArea__TextInputStyle",componentId:"sc-112wx63-0"})(["",""],u.p),f=function(e,n){var t=e.rows,r=void 0===t?3:t,o=(0,i.Z)(e,a);return(0,l.jsx)(u.Z,d(d({},o),{},{input:(0,l.jsx)(p,d({rows:r},o)),ref:n}))};n.Z=o.forwardRef(f)},70902:function(e,n,t){"use strict";var r=t(82394),i=t(26304),o=t(82684),c=t(9518),u=t(69898),l=t(23831),a=t(28598),s=["checked","disabled","onCheck"];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 p(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}var f=c.default.label.withConfig({displayName:"ToggleSwitch__ToggleSwitchStyle",componentId:"sc-179r5zs-0"})([""," position:relative;display:inline-block;width:","px;min-width:","px;height:",'px;& input[type="checkbox"]{display:none;}& span{position:absolute;cursor:',";background-color:",";border-radius:13px;",';top:0;right:0;bottom:0;left:0;transition:background-color 0.2s ease;}& span::before{position:absolute;content:"";left:2px;top:2px;width:22px;height:22px;background-color:#787A85;border-radius:50%;transition:transform 0.3s ease;}& input[type="checkbox"]:checked + span::before{transform:translateX(20px);}',""],u.p,46,46,26,(function(e){return e.disabled?"not-allowed":"pointer"}),(function(e){return e.disabled?l.Z.monotone.white:l.Z.monotone.black}),(function(e){return e.disabled&&"border: 1px solid ".concat(l.Z.monotone.grey200)}),(function(e){return!e.disabled&&'\n & input[type="checkbox"]:checked + span {\n background-color: #6AA1E0;\n }\n\n & input[type="checkbox"]:checked + span::before {\n background-color: '.concat(l.Z.monotone.white,";\n }\n ")})),h=function(e,n){var t=e.checked,r=e.disabled,o=e.onCheck,c=(0,i.Z)(e,s);return(0,a.jsx)(u.Z,p(p({},c),{},{disabled:r,input:(0,a.jsxs)(f,p(p({},c),{},{disabled:r,noBackground:!0,noBorder:!0,children:[(0,a.jsx)("input",{checked:t,type:"checkbox"}),(0,a.jsx)("span",{onClick:r?null:function(){return null===o||void 0===o?void 0:o((function(e){return!e}))}})]})),noBackground:!0,ref:n}))};n.Z=o.forwardRef(h)},6087:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return ue}});var r=t(77837),i=t(82394),o=t(75582),c=t(38860),u=t.n(c),l=t(12691),a=t.n(l),s=t(82684),d=t(83455),p=t(34376),f=t(60328),h=t(86532),g=t(34744),b=t(67971),v=t(87372),m=t(11135),x=t(10919),j=t(2626),y=t(93348),O=t(41788),Z=t(29237),w=t(86673),P=t(58180),_=t(19711),k=t(38435),C=t(82944),S=t(70902),I=t(23831),E=t(9518),T=t(73942),D=t(49125),N=E.default.div.withConfig({displayName:"indexstyle__ToggleStyle",componentId:"sc-f9kt7n-0"})(["padding:","px ","px;border-radius:","px;",""],1.5*D.iI,2*D.iI,T.n_,(function(e){return"\n border: 1px solid ".concat((e.theme||I.Z).borders.light,";\n background-color: ").concat((e.theme||I.Z).background.popup,";\n ")})),A=t(90211),H=t(58122),V=t(28598);function R(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?R(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):R(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var M="".concat(D.iI,"px ").concat(3*D.iI,"px");var B=function(e){var n=e.initialPipelineSchedulePayload,t=e.onCancel,r=e.onSuccess,c=e.variables,u=(0,s.useState)(!1),l=u[0],a=u[1],d=(0,s.useState)({}),p=d[0],h=d[1],g=(0,s.useState)(c||{}),m=g[0],x=g[1],j=(0,s.useMemo)((function(){return Y(Y({},n),{},{name:(0,A.Y6)(),variables:l?(0,H.e7)(m):null})}),[n,l,m]),y=function(e,n){var t={borderless:!0,key:"variable_uuid_input_".concat(e),monospace:!0,onChange:function(n){n.preventDefault(),x((function(t){return Y(Y({},t),{},(0,i.Z)({},e,n.target.value))}))},paddingHorizontal:0,placeholder:"Variable value",value:n};return p[e]?(0,V.jsx)(k.Z,Y(Y({},t),{},{rows:1,value:n})):(0,V.jsx)(C.Z,Y({},t))};return(0,s.useEffect)((function(){var e=Object.entries(m).reduce((function(e,n){var t=(0,o.Z)(n,2),r=t[0],c=t[1],u=(0,A.Pb)(c)&&"object"===typeof JSON.parse(c)&&!Array.isArray(JSON.parse(c))&&null!==JSON.parse(c);return Y(Y({},e),{},(0,i.Z)({},r,u))}),{});h(e)}),[]),(0,V.jsxs)(Z.Z,{footer:(0,V.jsxs)(b.Z,{alignItems:"center",fullWidth:!0,justifyContent:"flex-end",children:[(0,V.jsx)(f.Z,{onClick:function(){r({pipeline_schedule:j}),t()},padding:M,primaryAlternate:!0,children:"Run now"}),(0,V.jsx)(w.Z,{mr:1}),(0,V.jsx)(f.Z,{borderColor:I.Z.background.page,onClick:t,padding:M,secondary:!0,children:"Cancel"})]}),header:(0,V.jsx)(v.Z,{level:5,children:"Run pipeline now"}),maxHeight:"90vh",minWidth:85*D.iI,subtitle:"Creates a new trigger and immediately runs the current pipeline once.",children:[(0,V.jsx)(N,{children:(0,V.jsxs)(b.Z,{alignItems:"center",children:[(0,V.jsx)(w.Z,{mr:2,children:(0,V.jsx)(S.Z,{checked:l,onCheck:a})}),(0,V.jsx)(_.ZP,{bold:!0,large:!0,children:"Overwrite runtime variables"})]})}),l&&m&&Object.entries(m).length>0&&(0,V.jsx)(w.Z,{mt:2,children:(0,V.jsx)(P.Z,{columnFlex:[null,1],columns:[{uuid:"Variable"},{uuid:"Value"}],rows:Object.entries(m).map((function(e){var n=(0,o.Z)(e,2),t=n[0],r=n[1];return[(0,V.jsx)(_.ZP,{default:!0,monospace:!0,children:t},"variable_".concat(t)),y(t,r)]}))})})]})},F=t(37391),W=E.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-1xgfh62-0"})(["border-bottom:1px solid ",";padding:","px;"],I.Z.borders.medium,D.tr),q=E.default.div.withConfig({displayName:"indexstyle__CardsStyle",componentId:"sc-1xgfh62-1"})([""," height:80px;display:flex;overflow-x:scroll;"],F.w5),J=E.default.div.withConfig({displayName:"indexstyle__VariableCardStyle",componentId:"sc-1xgfh62-2"})(["background-color:",";border-radius:","px;flex-shrink:0;margin-right:","px;padding:","px;"],I.Z.background.output,T.n_,D.iI,D.tr),L=t(73899);var z=function(e){var n=e.hasOverride,t=e.scheduleType,r=e.variables,i=e.variablesOverride,c=[];return Object.entries(r).forEach((function(e){var n=(0,o.Z)(e,2),t=n[0],r=n[1],u=null===i||void 0===i?void 0:i[t];c.push({uuid:t,value:(0,H.FS)(u||r)})})),(0,H.JZ)(c,t),(0,V.jsxs)(W,{children:[(0,V.jsx)(w.Z,{mb:2,children:(0,V.jsxs)(_.ZP,{bold:!0,large:!0,monospace:!0,muted:!0,children:["Runtime variables",n&&" (override)"]})}),(0,V.jsx)(q,{noScrollbarTrackBackground:!0,children:r&&c.map((function(e){var n=e.uuid,t=e.value;return(0,V.jsxs)(J,{children:[(0,V.jsx)(_.ZP,{monospace:!0,small:!0,children:n}),(0,V.jsx)(_.ZP,{color:L.Or,monospace:!0,small:!0,children:(0,H.FS)(t)})]})}))})]})},U=t(46261),X=t(97225),G=t(82531),Q=t(10503),$=t(59920),K=t(42305),ee=t(7715),ne=t(9736),te=t(96510),re=t(83608);function ie(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 oe(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ie(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ie(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function ce(e){var n=e.pipeline,t=(0,p.useRouter)(),r=(0,ne.Ct)(),c=n.uuid,u=(0,s.useState)(null),l=u[0],O=u[1],Z=G.ZP.variables.pipelines.list(c).data,P=null===Z||void 0===Z?void 0:Z.variables,k=G.ZP.pipeline_schedules.pipelines.list(c,{},{refreshInterval:7500}),C=k.data,S=k.mutate,I=(0,s.useMemo)((function(){return(null===C||void 0===C?void 0:C.pipeline_schedules)||[]}),[C]),E=function(e){return(0,d.Db)(G.ZP.pipeline_schedules.pipelines.useCreate(c),{onSuccess:function(n){return(0,te.wD)(n,{callback:function(n){var t=n.pipeline_schedule.id;null===e||void 0===e||e(t)},onErrorCallback:function(e,n){return O({errors:n,response:e})}})}})},T=E((function(e){return t.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(null===n||void 0===n?void 0:n.uuid,"/triggers/").concat(e,"/edit"))})),N=(0,o.Z)(T,2),R=N[0],Y=N[1].isLoading,M=E(S),F=(0,o.Z)(M,2),W=F[0],q=F[1].isLoading,J=(0,s.useMemo)((function(){var e;return null===(e=(0,H.wx)(P,(function(e){return"global"===e.uuid})))||void 0===e?void 0:e.reduce((function(e,n){var t=n.uuid,r=n.value;return oe(oe({},e),{},(0,i.Z)({},t,r))}),{})}),[P]),L={name:(0,A.Y6)(),schedule_interval:y.U5.ONCE,schedule_type:y.Xm.TIME,start_time:(0,K.d$)((new Date).toISOString(),{dayAgo:!0,utcFormat:!0}),status:y.fq.ACTIVE},ie=(0,re.dd)((function(){return(0,V.jsx)(B,{initialPipelineSchedulePayload:L,onCancel:le,onSuccess:W,variables:J})}),{},[P,J],{background:!0,uuid:"run_pipeline_now_popup"}),ce=(0,o.Z)(ie,2),ue=ce[0],le=ce[1],ae=(0,s.useState)(),se=ae[0],de=ae[1],pe=(0,s.useMemo)((function(){var e=null===se||void 0===se?void 0:se.variables,n=!(0,ee.Qr)(e),t=n?null===se||void 0===se?void 0:se.variables:(0,ee.Qr)(J)?null:J;return function(i){var o=i.height-(t?151:0);return(0,V.jsxs)(V.Fragment,{children:[t&&(0,V.jsx)(z,{hasOverride:n,scheduleType:null===se||void 0===se?void 0:se.schedule_type,variables:J,variablesOverride:e}),!t&&(0,V.jsxs)(w.Z,{p:D.cd,children:[(0,V.jsx)(_.ZP,{children:"This pipeline has no runtime variables."}),!r&&(0,V.jsxs)(w.Z,{mt:1,children:[(0,V.jsx)(a(),{as:"/pipelines/".concat(c,"/edit?sideview=variables"),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,V.jsx)(x.Z,{primary:!0,children:"Click here"})})," ",(0,V.jsx)(_.ZP,{inline:!0,children:"to add variables to this pipeline."})]})]}),(0,V.jsx)(h.Z,oe(oe({},i),{},{height:o,noStatus:!0}))]})}}),[P,se]);return(0,V.jsxs)(j.Z,{breadcrumbs:[{label:function(){return"Triggers"}}],buildSidekick:pe,errors:l,pageName:$.M.TRIGGERS,pipeline:n,setErrors:O,subheaderBackgroundImage:"/images/banner-shape-purple-peach.jpg",subheaderButton:(0,V.jsx)(m.ZP,{beforeElement:(0,V.jsx)(Q.mm,{size:2.5*D.iI}),blackBorder:!0,inline:!0,loading:Y,noHoverUnderline:!0,onClick:function(){return R({pipeline_schedule:{name:(0,A.Y6)()}})},sameColorAsText:!0,uuid:"PipelineDetailPage/add_new_schedule",children:"Create new trigger"}),subheaderText:(0,V.jsx)(_.ZP,{bold:!0,large:!0,children:"Run this pipeline using a schedule, event, or API."}),title:function(e){var n=e.name;return"".concat(n," triggers")},uuid:"".concat($.M.TRIGGERS,"_").concat(c),children:[(0,V.jsx)(w.Z,{mt:D.cd,px:D.cd,children:(0,V.jsxs)(b.Z,{justifyContent:"space-between",children:[(0,V.jsx)(v.Z,{level:5,children:"Pipeline triggers"}),(0,V.jsx)(U.Z,{appearBefore:!0,default:!0,fullSize:!0,label:"Creates an @once trigger and runs pipeline immediately",widthFitContent:!0,children:(0,V.jsx)(f.Z,{beforeIcon:(0,V.jsx)(Q.JM,{inverted:!0,size:2*D.iI}),disabled:r,loading:q,onClick:(0,ee.Qr)(J)?function(){return W({pipeline_schedule:L})}:ue,outline:!0,success:!r,children:"Run pipeline now"})})]})}),(0,V.jsx)(g.Z,{light:!0,mt:D.cd,short:!0}),(0,V.jsx)(X.Z,{fetchPipelineSchedules:S,pipeline:n,pipelineSchedules:I,selectedSchedule:se,setErrors:O,setSelectedSchedule:de})]})}ce.getInitialProps=function(){var e=(0,r.Z)(u().mark((function e(n){var t;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.query.pipeline,e.abrupt("return",{pipeline:{uuid:t}});case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();var ue=(0,O.Z)(ce)},42305:function(e,n,t){"use strict";t.d(n,{A5:function(){return d},AY:function(){return p},BP:function(){return s},JX:function(){return a},OC:function(){return o},Pc:function(){return f},d$:function(){return l},lJ:function(){return h},n1:function(){return u}});var r=t(92083),i=t.n(r),o="YYYY-MM-DD HH:mm:ss",c="YYYY-MM-DD HH:mm",u="YYYY-MM-DD";function l(e,n){var t=n.utcFormat,r=n.dayAgo,o=i()(e);return t&&(o=o.utc()),r&&(o=o.subtract(1,"days")),o.format(c)}function a(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i().unix(e).format(null!==n&&void 0!==n&&n.withSeconds?o:c)}function s(e,n,t){return i()(e).utc().hours(+n).minutes(+t).format()}function d(e){return i()(e).unix()}function p(e,n,t){return"".concat(e.toISOString().split("T")[0]," ").concat(n,":").concat(t)}function f(e){var n=i().unix(+e).utc();return{date:n.toDate(),hour:String(n.hour()),minute:String(n.minute())}}function h(e){return e.padStart(2,"0")}},40183:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/triggers",function(){return t(6087)}])}},function(e){e.O(0,[3850,2083,5896,4804,1774,5872,2344,9386,6166,8180,2626,6532,1286,9774,2888,179],(function(){return n=40183,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1221],{1210:function(e,n,t){"use strict";t.d(n,{Z:function(){return E}});var r=t(82394),i=t(21831),o=t(82684),c=t(47999),u=t(49894),l=t(93461),a=t(57384),d=t(12344),s=t(72454),p=t(28598);function f(e,n){var t=e.children;return(0,p.jsx)(s.HS,{ref:n,children:t})}var h=o.forwardRef(f),b=t(32063),g=t(15270),v=t(82531),m=t(66166),O=t(3055),j=t(49125),x=t(91427),y=t(24141);function P(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Z(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?P(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):P(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var E=function(e){var n,t=e.after,r=e.afterHidden,f=e.afterWidth,P=e.afterWidthOverride,E=e.before,w=e.beforeWidth,k=e.breadcrumbs,C=e.children,T=e.errors,S=e.headerMenuItems,A=e.navigationItems,R=e.setErrors,D=e.subheaderChildren,I=e.title,_=e.uuid,N=(0,y.i)().width,M="dashboard_after_width_".concat(_),L="dashboard_before_width_".concat(_),H=(0,o.useRef)(null),B=(0,o.useState)(P?f:(0,x.U2)(M,f)),Y=B[0],V=B[1],U=(0,o.useState)(!1),W=U[0],F=U[1],G=(0,o.useState)(E?Math.max((0,x.U2)(L,w),13*j.iI):null),X=G[0],q=G[1],z=(0,o.useState)(!1),K=z[0],Q=z[1],$=(0,o.useState)(null)[1],J=v.ZP.projects.list({},{revalidateOnFocus:!1}).data,ee=null===J||void 0===J?void 0:J.projects,ne=[];k?ne.push.apply(ne,(0,i.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 I}}]),(0,o.useEffect)((function(){null===H||void 0===H||!H.current||W||K||null===$||void 0===$||$(H.current.getBoundingClientRect().width)}),[W,Y,K,X,H,$,N]),(0,o.useEffect)((function(){W||(0,x.t8)(M,Y)}),[r,W,Y,M]),(0,o.useEffect)((function(){K||(0,x.t8)(L,X)}),[K,X,L]);var te=(0,m.Z)(f);return(0,o.useEffect)((function(){P&&te!==f&&V(f)}),[P,f,te]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(a.Z,{title:I}),(0,p.jsx)(d.Z,{breadcrumbs:ne,menuItems:S,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)(s.Nk,{children:[0!==(null===A||void 0===A?void 0:A.length)&&(0,p.jsx)(s.lm,{children:(0,p.jsx)(g.Z,{navigationItems:A})}),(0,p.jsx)(l.Z,{flex:1,flexDirection:"column",children:(0,p.jsxs)(b.Z,{after:t,afterHeightOffset:O.Mz,afterHidden:r,afterMousedownActive:W,afterWidth:Y,before:E,beforeHeightOffset:O.Mz,beforeMousedownActive:K,beforeWidth:s.k1+(E?X:0),hideAfterCompletely:!0,leftOffset:E?s.k1:null,mainContainerRef:H,setAfterMousedownActive:F,setAfterWidth:V,setBeforeMousedownActive:Q,setBeforeWidth:q,children:[D&&(0,p.jsx)(h,{children:D}),C]})})]}),T&&(0,p.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===R||void 0===R?void 0:R(null)},children:(0,p.jsx)(u.Z,Z(Z({},T),{},{onClose:function(){return null===R||void 0===R?void 0:R(null)}}))})]})}},86422:function(e,n,t){"use strict";t.d(n,{$W:function(){return p},DA:function(){return s},HX:function(){return b},J8:function(){return h},Lq:function(){return a},Qj:function(){return g},Ut:function(){return j},V4:function(){return O},VZ:function(){return f},dO:function(){return d},f2:function(){return m},iZ:function(){return v},t6:function(){return c},tf:function(){return l}});var r,i,o,c,u=t(82394);!function(e){e.PYTHON="python",e.R="r",e.SQL="sql",e.YAML="yaml"}(c||(c={}));var l,a,d=(r={},(0,u.Z)(r,c.PYTHON,"PY"),(0,u.Z)(r,c.R,"R"),(0,u.Z)(r,c.SQL,"SQL"),(0,u.Z)(r,c.YAML,"YAML"),r);!function(e){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.TRANSFORMER="transformer"}(l||(l={})),function(e){e.BLUE="blue",e.GREY="grey",e.PINK="pink",e.PURPLE="purple",e.TEAL="teal",e.YELLOW="yellow"}(a||(a={}));var s,p=[l.CHART,l.CUSTOM,l.DATA_EXPORTER,l.DATA_LOADER,l.SCRATCHPAD,l.SENSOR,l.TRANSFORMER],f=[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],g=[l.CHART,l.SCRATCHPAD,l.SENSOR],v=[l.EXTENSION,l.SCRATCHPAD];!function(e){e.EXECUTED="executed",e.FAILED="failed",e.NOT_EXECUTED="not_executed",e.UPDATED="updated"}(s||(s={}));var m=[l.CUSTOM,l.DATA_EXPORTER,l.TRANSFORMER],O=(i={},(0,u.Z)(i,l.CUSTOM,"Custom"),(0,u.Z)(i,l.DATA_EXPORTER,"Data exporter"),(0,u.Z)(i,l.DATA_LOADER,"Data loader"),(0,u.Z)(i,l.EXTENSION,"Extension"),(0,u.Z)(i,l.SCRATCHPAD,"Scratchpad"),(0,u.Z)(i,l.SENSOR,"Sensor"),(0,u.Z)(i,l.TRANSFORMER,"Transformer"),i),j=[l.DATA_LOADER,l.TRANSFORMER,l.DATA_EXPORTER,l.SENSOR];o={},(0,u.Z)(o,l.DATA_EXPORTER,"DE"),(0,u.Z)(o,l.DATA_LOADER,"DL"),(0,u.Z)(o,l.SCRATCHPAD,"SP"),(0,u.Z)(o,l.SENSOR,"SR"),(0,u.Z)(o,l.TRANSFORMER,"TF")},93348:function(e,n,t){"use strict";t.d(n,{TR:function(){return s},U5:function(){return l},Xm:function(){return o},Z4:function(){return d},fq:function(){return u},kJ:function(){return a}});var r,i,o,c=t(82394);!function(e){e.API="api",e.EVENT="event",e.TIME="time"}(o||(o={}));var u,l,a,d=(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"}(a||(a={}));var s=(i={},(0,c.Z)(i,a.CREATED_AT,"Created at"),(0,c.Z)(i,a.NAME,"Name"),(0,c.Z)(i,a.PIPELINE,"Pipeline"),(0,c.Z)(i,a.STATUS,"Status"),(0,c.Z)(i,a.TYPE,"Type"),i)},98781:function(e,n,t){"use strict";t.d(n,{$1:function(){return l},G7:function(){return d},QK:function(){return u},a_:function(){return s},qL:function(){return o},r0:function(){return a}});var r,i,o,c=t(82394);!function(e){e.INTEGRATION="integration",e.PYTHON="python",e.PYSPARK="pyspark",e.STREAMING="streaming"}(o||(o={}));var u,l,a,d=(r={},(0,c.Z)(r,o.INTEGRATION,"Integration"),(0,c.Z)(r,o.PYTHON,"Standard"),(0,c.Z)(r,o.PYSPARK,"PySpark"),(0,c.Z)(r,o.STREAMING,"Streaming"),r);!function(e){e.ACTIVE="active",e.INACTIVE="inactive",e.NO_SCHEDULES="no_schedules"}(u||(u={})),function(e){e.GROUP="group_by",e.STATUS="status[]",e.TYPE="type[]"}(l||(l={})),function(e){e.STATUS="status",e.TYPE="type"}(a||(a={}));var s=(i={},(0,c.Z)(i,o.PYTHON,"python3"),(0,c.Z)(i,o.PYSPARK,"pysparkkernel"),i)},18283:function(e,n,t){"use strict";var r=t(82394),i=t(26304),o=(t(82684),t(9518)),c=t(23831),u=t(73942),l=t(2005),a=t(49125),d=t(31012),s=t(28598),p=["children"];function f(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function h(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?f(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var b=o.default.p.withConfig({displayName:"Badge__BadgeStyle",componentId:"sc-tfqsp0-0"})(["border-radius:","px;display:inline;font-family:",";margin:0;",";"," ",";",";"," "," "," "," ",""],u.BG,l.ry,d.iD,(function(e){return e.small&&"\n ".concat(d.HC,";\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&&"\n background-color: ".concat((e.theme||c.Z).background.row,";\n color: ").concat((e.theme||c.Z).content.muted,";\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 "}));n.Z=function(e){var n=e.children,t=(0,i.Z)(e,p);return(0,s.jsx)(b,h(h({},t),{},{children:n}))}},30264:function(e,n,t){"use strict";var r=t(82394),i=t(26304),o=(t(82684),t(47999)),c=t(62084),u=t(28598),l=["children","items","open","onClickCallback","onClickOutside","parentRef","uuid"];function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function d(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?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}n.Z=function(e){var n=e.children,t=e.items,r=e.open,a=e.onClickCallback,s=e.onClickOutside,p=e.parentRef,f=e.uuid,h=(0,i.Z)(e,l),b=(0,u.jsxs)("div",{style:{position:"relative",zIndex:s?3:2},children:[(0,u.jsx)("div",{ref:p,children:n}),(0,u.jsx)(c.Z,d(d({},h),{},{items:t,onClickCallback:a,open:r,parentRef:p,uuid:f}))]});return s?(0,u.jsx)(o.Z,{onClickOutside:s,open:!0,children:b}):b}},29237:function(e,n,t){"use strict";var r=t(9518),i=t(67971),o=t(86673),c=t(19711),u=t(23831),l=t(73942),a=t(37391),d=t(49125),s=t(28598),p=(0,r.css)(["padding:","px;padding-bottom:","px;padding-top:","px;"],2*d.iI,1.5*d.iI,1.5*d.iI),f=r.default.div.withConfig({displayName:"Panel__PanelStyle",componentId:"sc-1ct8cgl-0"})(["border-radius:","px;overflow:hidden;"," "," "," "," "," "," "," "," "," ",""],l.n_,(function(e){return e.fullWidth&&"\n width: 100%;\n "}),(function(e){return"\n border: 1px solid ".concat((e.theme.interactive||u.Z.interactive).defaultBorder,";\n ")}),(function(e){return!e.dark&&"\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 "})),h=r.default.div.withConfig({displayName:"Panel__HeaderStyle",componentId:"sc-1ct8cgl-1"})(["border-top-left-radius:","px;border-top-right-radius:","px;"," "," "," ",""],l.n_,l.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 ")}),p,(function(e){return e.headerPaddingVertical&&"\n padding-bottom: ".concat(e.headerPaddingVertical,"px;\n padding-top: ").concat(e.headerPaddingVertical,"px;\n ")})),b=r.default.div.withConfig({displayName:"Panel__ContentStyle",componentId:"sc-1ct8cgl-2"})(["overflow-y:auto;padding:","px;height:100%;"," "," "," "," ",""],1.75*d.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*d.iI,"px);\n ")}),(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),g=r.default.div.withConfig({displayName:"Panel__FooterStyle",componentId:"sc-1ct8cgl-3"})(["border-style:",";border-top-width:","px;padding:","px;"],l.M8,l.YF,1.75*d.iI);n.Z=function(e){var n=e.borderless,t=e.children,r=e.containerRef,u=e.contentContainerRef,l=e.dark,a=e.footer,d=e.fullHeight,p=void 0===d||d,v=e.fullWidth,m=void 0===v||v,O=e.header,j=e.headerHeight,x=e.headerIcon,y=e.headerPaddingVertical,P=e.headerTitle,Z=e.maxHeight,E=e.maxWidth,w=e.minWidth,k=e.noPadding,C=e.overflowVisible,T=e.subtitle;return(0,s.jsxs)(f,{borderless:n,dark:l,fullHeight:p,fullWidth:m,maxHeight:Z,maxWidth:E,minWidth:w,overflowVisible:C,ref:r,children:[(O||P)&&(0,s.jsxs)(h,{headerPaddingVertical:y,height:j,children:[O&&O,P&&(0,s.jsx)(i.Z,{alignItems:"center",justifyContent:"space-between",children:(0,s.jsxs)(i.Z,{alignItems:"center",children:[x&&x,(0,s.jsx)(o.Z,{ml:x?1:0,children:(0,s.jsx)(c.ZP,{bold:!0,default:!0,children:P})})]})})]}),(0,s.jsxs)(b,{maxHeight:Z,noPadding:k,overflowVisible:C,ref:u,children:[T&&(0,s.jsx)(o.Z,{mb:2,children:(0,s.jsx)(c.ZP,{default:!0,children:T})}),t]}),a&&(0,s.jsx)(g,{children:a})]})}},38435:function(e,n,t){"use strict";var r=t(82394),i=t(26304),o=t(82684),c=t(9518),u=t(69898),l=t(28598),a=["rows"];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}var p=c.default.textarea.withConfig({displayName:"TextArea__TextInputStyle",componentId:"sc-112wx63-0"})(["",""],u.p),f=function(e,n){var t=e.rows,r=void 0===t?3:t,o=(0,i.Z)(e,a);return(0,l.jsx)(u.Z,s(s({},o),{},{input:(0,l.jsx)(p,s({rows:r},o)),ref:n}))};n.Z=o.forwardRef(f)},70902:function(e,n,t){"use strict";var r=t(82394),i=t(26304),o=t(82684),c=t(9518),u=t(69898),l=t(23831),a=t(28598),d=["checked","disabled","onCheck"];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 p(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}var f=c.default.label.withConfig({displayName:"ToggleSwitch__ToggleSwitchStyle",componentId:"sc-179r5zs-0"})([""," position:relative;display:inline-block;width:","px;min-width:","px;height:",'px;& input[type="checkbox"]{display:none;}& span{position:absolute;cursor:',";background-color:",";border-radius:13px;",';top:0;right:0;bottom:0;left:0;transition:background-color 0.2s ease;}& span::before{position:absolute;content:"";left:2px;top:2px;width:22px;height:22px;background-color:#787A85;border-radius:50%;transition:transform 0.3s ease;}& input[type="checkbox"]:checked + span::before{transform:translateX(20px);}',""],u.p,46,46,26,(function(e){return e.disabled?"not-allowed":"pointer"}),(function(e){return e.disabled?l.Z.monotone.white:l.Z.monotone.black}),(function(e){return e.disabled&&"border: 1px solid ".concat(l.Z.monotone.grey200)}),(function(e){return!e.disabled&&'\n & input[type="checkbox"]:checked + span {\n background-color: #6AA1E0;\n }\n\n & input[type="checkbox"]:checked + span::before {\n background-color: '.concat(l.Z.monotone.white,";\n }\n ")})),h=function(e,n){var t=e.checked,r=e.disabled,o=e.onCheck,c=(0,i.Z)(e,d);return(0,a.jsx)(u.Z,p(p({},c),{},{disabled:r,input:(0,a.jsxs)(f,p(p({},c),{},{disabled:r,noBackground:!0,noBorder:!0,children:[(0,a.jsx)("input",{checked:t,type:"checkbox"}),(0,a.jsx)("span",{onClick:r?null:function(){return null===o||void 0===o?void 0:o((function(e){return!e}))}})]})),noBackground:!0,ref:n}))};n.Z=o.forwardRef(h)},46614:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return we}});var r=t(77837),i=t(75582),o=t(82394),c=t(38860),u=t.n(c),l=t(12691),a=t.n(l),d=t(83455),s=t(82684),p=t(34376),f=t(60328),h=t(1210),b=t(93461),g=t(67971),v=t(11135),m=t(29237),O=t(86673),j=t(19711),x=t(38435),y=t(82944),P=t(28598);var Z=function(e){var n=e.description,t=e.isLoading,r=e.maxWidth,i=e.minWidth,o=e.noEmptyValue,c=e.onClose,u=e.onSave,l=e.textArea,a=e.title,d=e.value,p=(0,s.useRef)(null),h=(0,s.useState)(d),b=h[0],Z=h[1],E=l?x.Z:y.Z;return(0,s.useEffect)((function(){var e;null===p||void 0===p||null===(e=p.current)||void 0===e||e.focus()}),[]),(0,P.jsxs)(m.Z,{maxWidth:r,minWidth:i,children:[(0,P.jsx)(j.ZP,{bold:!0,children:a}),(0,P.jsx)(O.Z,{mt:1,children:(0,P.jsx)(E,{monospace:!0,onChange:function(e){return Z(e.target.value)},ref:p,rows:l?7:null,value:b})}),n&&(0,P.jsx)(O.Z,{mt:2,children:(0,P.jsx)(j.ZP,{muted:!0,small:!0,children:n})}),(0,P.jsx)(O.Z,{mt:3,children:(0,P.jsxs)(g.Z,{children:[(0,P.jsx)(v.ZP,{bold:!0,inline:!0,loading:t,onClick:function(){b===d||o&&!b?c():u(b)},outline:!0,primary:!0,uuid:"Inputs/InputModal/SaveInput",children:"Save"}),(0,P.jsx)(O.Z,{ml:1}),(0,P.jsx)(f.Z,{onClick:c,children:"Cancel"})]})})]})},E=t(10919),w=t(98781),k=t(41788),C=t(54283),T=t(58180),S=t(18283),A=t(47999),R=t(30264),D=t(62609),I=t(70902),_=t(9518),N=t(23831),M=t(73942),L=t(37391),H=t(49125),B=74*H.iI,Y=48*H.iI,V=_.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-18n432u-0"})(["position:absolute;border-radius:","px;overflow:hidden;width:","px;display:none;"," "," "," "," ",""],M.n_,B,(function(e){return"\n background-color: ".concat((e.theme||N.Z).background.panel,";\n border: ").concat(M.mP,"px ").concat(M.M8," ").concat((e.theme||N.Z).interactive.defaultBackground,";\n box-shadow: ").concat((e.theme.shadow||N.Z.shadow).window,";\n ")}),(function(e){return e.display&&"\n display: block;\n "}),(function(e){return e.compact&&"\n width: ".concat(.75*B,"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 ")})),U=_.default.div.withConfig({displayName:"indexstyle__MainStyle",componentId:"sc-18n432u-1"})(["display:flex;border-radius:","px;overflow:hidden;height:","px;"," ",""],M.n_,Y,(function(e){return"\n background-color: ".concat((e.theme||N.Z).background.content,";\n border: ").concat(M.YF,"px ").concat(M.M8," ").concat((e.theme||N.Z).interactive.defaultBackground,";\n ")}),(function(e){return e.compact&&"\n height: ".concat(Y/2,"px;\n ")})),W=_.default.aside.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-18n432u-2"})(["width:100%;overflow:auto;"," ",""],L.w5,(function(e){return"\n border-right: ".concat(M.YF,"px ").concat(M.M8," ").concat((e.theme||N.Z).background.panel,";\n ")})),F=_.default.div.withConfig({displayName:"indexstyle__ContentStyle",componentId:"sc-18n432u-3"})(["width:100%;overflow:auto;",""],L.w5),G=(0,_.css)(["display:flex;align-items:center;justify-content:space-between;padding:","px ","px;"],H.iI,2*H.iI),X=_.default.div.withConfig({displayName:"indexstyle__OptionStyle",componentId:"sc-18n432u-4"})([""," padding-top:","px;padding-bottom:","px;&:hover{cursor:pointer;","}",""],G,1.5*H.iI,1.5*H.iI,(function(e){return"\n background-color: ".concat((e.theme||N.Z).monotone.black,";\n ")}),(function(e){return e.highlighted&&"\n background-color: ".concat((e.theme||N.Z).monotone.black,";\n ")})),q=_.default.div.withConfig({displayName:"indexstyle__ToggleValueStyle",componentId:"sc-18n432u-5"})([""," ",""],G,(function(e){return"\n border-bottom: ".concat(M.YF,"px ").concat(M.M8," ").concat((e.theme||N.Z).borders.medium2,";\n ")})),z=t(10503),K=t(33766),Q=t(90211);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 J(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 ee,ne=function(e){var n,t,r,c=e.children,u=e.compact,l=e.onClickCallback,a=e.onClickOutside,d=e.onSecondaryClick,p=e.open,h=e.options,v=void 0===h?{}:h,m=e.parentRef,x=e.query,y=e.setOpen,Z=e.toggleValueMapping,E=(0,s.useState)(null),w=E[0],k=E[1],C=(0,s.useState)(v),T=C[0],S=C[1];(0,s.useEffect)((function(){S(v)}),[v]);var R=((null===m||void 0===m||null===(n=m.current)||void 0===n||null===(t=n.getBoundingClientRect)||void 0===t?void 0:t.call(n))||{}).top,D=void 0===R?0:R,_=Object.keys(v);return(0,P.jsxs)(A.Z,{onClickOutside:a,open:!0,children:[(0,P.jsx)("div",{ref:m,children:c}),(0,P.jsxs)(V,{compact:u,display:p,top:D-5,children:[(0,P.jsxs)(U,{compact:u,children:[(0,P.jsx)(b.Z,{flex:"1",children:(0,P.jsx)(W,{children:_.map((function(e){return(0,P.jsxs)(X,{highlighted:w===e,onMouseEnter:function(){return k(e)},children:[(0,P.jsx)(j.ZP,{children:(0,Q.kC)(e)}),(0,P.jsx)(z._Q,{})]},e)}))})}),(0,P.jsx)(b.Z,{flex:"2",children:(0,P.jsx)(F,{children:w&&Object.entries((null===(r=T||v)||void 0===r?void 0:r[w])||{}).map((function(e){var n=(0,i.Z)(e,2),t=n[0],r=n[1];return(0,P.jsxs)(q,{children:[(0,P.jsx)(j.ZP,{children:(null===Z||void 0===Z?void 0:Z[t])||(0,Q.J3)((0,Q.kC)(t))}),(0,P.jsx)(I.Z,{checked:r,onCheck:function(){return S((function(e){return J(J({},e),{},(0,o.Z)({},w,J(J({},null===e||void 0===e?void 0:e[w]),{},(0,o.Z)({},t,!r))))}))}})]},t)}))})})]}),(0,P.jsx)(O.Z,{m:1,children:(0,P.jsxs)(g.Z,{children:[(0,P.jsx)(f.Z,{onClick:function(){var e=Object.entries(T).reduce((function(e,n){var t=(0,i.Z)(n,2),r=t[0],o=t[1],c=[];return Object.entries(o).forEach((function(e){var n=(0,i.Z)(e,2),t=n[0];return n[1]&&c.push(t)})),e[r]=c,e}),{});null===l||void 0===l||l(),(0,K.g_)(x,e,{addingMultipleValues:!0,pushHistory:!0})},secondary:!0,children:"Apply"}),(0,P.jsx)(O.Z,{mr:1}),(0,P.jsx)(f.Z,{noBackground:!0,onClick:function(){y(!1),null===d||void 0===d||d()},children:"Defaults"})]})})]})]})},te=t(46261),re=t(99994),ie="".concat(1.5*H.iI,"px"),oe=40*H.iI,ce={bold:!0,greyBorder:!0,paddingBottom:9,paddingTop:9};!function(e){e[e.SECONDARY=1]="SECONDARY",e[e.DELETE=2]="DELETE"}(ee||(ee={}));var ue={autoHide:!0,size:null,widthFitContent:!0},le=t(7715),ae=t(9736);function de(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function se(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 pe=function(e){var n=e.addButtonProps,t=e.deleteRowProps,r=e.filterOptions,o=void 0===r?{}:r,c=e.filterValueLabelMapping,u=e.groupButtonProps,l=e.moreActionsMenuItems,a=e.query,d=void 0===a?{}:a,f=e.searchProps,h=e.secondaryActionButtonProps,m=e.selectedRowId,x=e.setSelectedRow,Z=(0,ae.Ct)(),E=(0,p.useRouter)(),w=(0,s.useRef)(null),k=(0,s.useRef)(null),C=(0,s.useRef)(null),T=(0,s.useRef)(null),I=(0,s.useRef)(null),_=(0,s.useState)(!1),N=_[0],L=_[1],B=(0,s.useState)(!1),Y=B[0],V=B[1],U=(0,s.useState)(!1),W=U[0],F=U[1],G=(0,s.useState)(!1),X=G[0],q=G[1],K=(0,s.useState)(null),Q=K[0],$=K[1],J=!m,de=(0,s.useCallback)((function(){return L(!1)}),[]),pe=(0,s.useCallback)((function(){return V(!1)}),[]),fe=(0,s.useCallback)((function(){return F(!1)}),[]),he=(0,s.useCallback)((function(){return q(null)}),[]),be=(0,s.useCallback)((function(){return $(null)}),[]),ge=h||{},ve=ge.Icon,me=ge.confirmationDescription,Oe=ge.confirmationMessage,je=ge.isLoading,xe=ge.label,ye=ge.onClick,Pe=ge.openConfirmationDialogue,Ze=ge.tooltip,Ee=t||{},we=Ee.confirmationMessage,ke=Ee.isLoading,Ce=Ee.item,Te=Ee.onDelete,Se=f||{},Ae=Se.placeholder,Re=Se.onChange,De=Se.value,Ie=(0,s.useMemo)((function(){return Object.entries(o).reduce((function(e,n){var t=(0,i.Z)(n,2),r=t[0],o=t[1];return e[r]={},o.forEach((function(n){var t,i=(null===(t=d["".concat(r,"[]")])||void 0===t?void 0:t.includes(n))||!1;e[r][n]=i})),e}),{})}),[o,d]),_e=n||{},Ne=_e.label,Me=_e.menuItems,Le=_e.isLoading,He=(0,s.useMemo)((function(){return(0,P.jsx)(R.Z,{disableKeyboardShortcuts:!0,items:Me,onClickCallback:de,onClickOutside:de,open:N,parentRef:w,roundedStyle:!0,topOffset:1,uuid:"Table/Toolbar/NewItemMenu",children:(0,P.jsx)(v.ZP,se(se({},ce),{},{background:re.eW,beforeElement:(0,P.jsx)(z.mm,{size:2.5*H.iI}),loading:Le,onClick:function(e){e.preventDefault(),L((function(e){return!e}))},uuid:"Table/Toolbar/AddButton",children:Ne}))})}),[Ne,Me,N,de,Le]),Be=(0,s.useMemo)((function(){return(0,le.dw)(Ie)}),[Ie]),Ye=(0,s.useMemo)((function(){return(0,P.jsx)(ne,{compact:!0,onClickCallback:pe,onClickOutside:pe,onSecondaryClick:function(){return E.push("/pipelines")},open:Y,options:Ie,parentRef:k,query:d,setOpen:V,toggleValueMapping:c,children:(0,P.jsx)(v.ZP,se(se({},ce),{},{afterElement:Be>0?(0,P.jsx)(S.Z,{cyan:!0,noVerticalPadding:!0,children:(0,P.jsx)(j.ZP,{bold:!0,inverted:!0,children:Be})}):null,beforeElement:(0,P.jsx)(z.wn,{size:2*H.iI}),onClick:function(){return V((function(e){return!e}))},uuid:"Table/Toolbar/FilterButton",children:"Filter"}))})}),[pe,Y,Ie,c,Be,d,E]),Ve=u||{},Ue=Ve.groupByLabel,We=Ve.menuItems,Fe=(0,s.useMemo)((function(){return(0,P.jsx)(R.Z,{disableKeyboardShortcuts:!0,items:We,onClickCallback:fe,onClickOutside:fe,open:W,parentRef:C,roundedStyle:!0,topOffset:1,uuid:"Table/Toolbar/GroupMenu",children:(0,P.jsx)(v.ZP,se(se({},ce),{},{beforeElement:(0,P.jsx)(z.ZA,{size:2.5*H.iI}),onClick:function(){F((function(e){return!e}))},uuid:"Table/Toolbar/GroupButton",children:Ue?"Grouped by ".concat(Ue):"Group"}))})}),[fe,W,We]),Ge=(0,s.useMemo)((function(){return(0,P.jsx)(R.Z,{disableKeyboardShortcuts:!0,items:l,onClickCallback:he,onClickOutside:he,open:X,parentRef:T,roundedStyle:!0,topOffset:1,uuid:"Table/Toolbar/MoreActionsMenu",children:(0,P.jsx)(te.Z,se(se({},ue),{},{label:"More actions",children:(0,P.jsx)(v.ZP,{Icon:z.mH,bold:!0,disabled:J,greyBorder:!0,onClick:function(){return q((function(e){return!e}))},smallIcon:!0,uuid:"Table/Toolbar/MoreActionsButton"})}))})}),[he,J,X,l]);return(0,P.jsxs)(g.Z,{alignItems:"center",children:[He,(0,P.jsx)(O.Z,{mr:ie}),Ye,(null===We||void 0===We?void 0:We.length)>0&&(0,P.jsx)(O.Z,{ml:ie,children:Fe}),!Z&&ye&&(0,P.jsxs)(O.Z,{ml:ie,children:[(0,P.jsx)(te.Z,se(se({},ue),{},{label:Ze,children:(0,P.jsx)(v.ZP,{Icon:!je&&ve,bold:!0,disabled:J,greyBorder:!0,loading:je,onClick:Pe?function(){return $(ee.SECONDARY)}:ye,smallIcon:!0,uuid:"Table/Toolbar/SecondaryActionButton",children:xe})})),(0,P.jsx)(A.Z,{onClickOutside:be,open:Q===ee.SECONDARY,children:(0,P.jsx)(D.Z,{onCancel:be,onClick:function(){ye(),be(),x(null)},subtitle:me,title:Oe,top:58,width:oe})})]}),!Z&&Te&&(0,P.jsxs)(O.Z,{ml:ie,children:[(0,P.jsx)(te.Z,se(se({},ue),{},{label:"Delete ".concat(Ce),children:(0,P.jsx)(v.ZP,{Icon:!ke&&z.rF,bold:!0,disabled:J,greyBorder:!0,loading:ke,onClick:function(){return $(ee.DELETE)},smallIcon:!0,uuid:"Table/Toolbar/DeleteButton"})})),(0,P.jsx)(A.Z,{onClickOutside:be,open:Q===ee.DELETE,children:(0,P.jsx)(D.Z,{danger:!0,onCancel:be,onClick:function(){Te(m),be(),x(null)},subtitle:we,title:"Are you sure you want to delete the ".concat(Ce," ").concat(m,"?"),top:58,width:oe})})]}),!Z&&(null===l||void 0===l?void 0:l.length)>0&&(0,P.jsx)(O.Z,{ml:ie,children:Ge}),Re&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(O.Z,{ml:ie}),(0,P.jsx)(b.Z,{flex:1,children:(0,P.jsx)(y.Z,{afterIcon:De?(0,P.jsx)(z.x8,{}):null,afterIconClick:function(){var e;Re(""),null===I||void 0===I||null===(e=I.current)||void 0===e||e.focus()},afterIconSize:1.5*H.iI,beforeIcon:(0,P.jsx)(z.HN,{}),borderRadius:M.n_,defaultColor:!0,fullWidth:!0,greyBorder:!0,maxWidth:60*H.iI,onChange:function(e){return Re(e.target.value)},paddingVertical:9,placeholder:Ae||null,ref:I,value:De})})]})]})},fe=t(82531),he=t(86422),be=t(93348),ge=t(3055),ve=t(45838),me=t(59e3),Oe=t(96510),je=t(66653),xe=t(83608);function ye(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 Pe(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ye(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ye(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Ze={borderRadius:M.BG,iconOnly:!0,noBackground:!0,noBorder:!0,outline:!0,padding:"4px"};function Ee(){var e=(0,p.useRouter)(),n=(0,s.useState)(null),t=n[0],r=n[1],c=(0,s.useState)(null),u=c[0],l=c[1],g=(0,s.useState)({}),v=g[0],m=g[1],x=(0,s.useState)(null),y=x[0],k=x[1],S=(0,me.iV)(),A=(0,me.DQ)(S,[w.$1.STATUS,w.$1.TYPE]),R=null===S||void 0===S?void 0:S[w.$1.GROUP],D=fe.ZP.pipelines.list(Pe(Pe({},A),{},{include_schedules:1})),I=D.data,_=D.mutate,M=(0,s.useMemo)((function(){var e=(null===I||void 0===I?void 0:I.pipelines)||[];if(u){var n=u.toLowerCase();e=e.filter((function(e){var t=e.name,r=e.description,i=e.uuid;return(null===t||void 0===t?void 0:t.toLowerCase().includes(n))||(null===i||void 0===i?void 0:i.toLowerCase().includes(n))||(null===r||void 0===r?void 0:r.toLowerCase().includes(n))}))}return e}),[null===I||void 0===I?void 0:I.pipelines,u]),L=function(e){return(0,d.Db)(fe.ZP.pipelines.useCreate(),{onSuccess:function(n){return(0,Oe.wD)(n,{callback:function(n){var t=n.pipeline.uuid;null===e||void 0===e||e(t)},onErrorCallback:function(e,n){return k({errors:n,response:e})}})}})},B=L((function(n){return e.push("/pipelines/[pipeline]/edit","/pipelines/".concat(n,"/edit"))})),Y=(0,i.Z)(B,2),V=Y[0],U=Y[1].isLoading,W=L((function(){return null===_||void 0===_?void 0:_()})),F=(0,i.Z)(W,2),G=F[0],X=F[1].isLoading,q=(0,d.Db)((function(e){return fe.ZP.pipelines.useUpdate(e.uuid)({pipeline:e})}),{onSuccess:function(e){return(0,Oe.wD)(e,{callback:function(e){var n=e.pipeline.uuid;m((function(e){return Pe(Pe({},e),{},(0,o.Z)({},n,!1))})),_(),null===le||void 0===le||le(),r(null)},onErrorCallback:function(e,n){var t,r=null===e||void 0===e||null===(t=e.url_parameters)||void 0===t?void 0:t.pk;m((function(e){return Pe(Pe({},e),{},(0,o.Z)({},r,!1))})),k({errors:n,response:e})}})}}),$=(0,i.Z)(q,2),J=$[0],ee=$[1].isLoading,ne=(0,d.Db)((function(e){return fe.ZP.pipelines.useDelete(e)()}),{onSuccess:function(e){return(0,Oe.wD)(e,{callback:function(){null===_||void 0===_||_()},onErrorCallback:function(e,n){return k({errors:n,response:e})}})}}),te=(0,i.Z)(ne,2),re=te[0],ie=te[1].isLoading,oe=(0,xe.dd)((function(e){var n=e.pipelineDescription,r=e.pipelineName;return(0,P.jsx)(Z,{isLoading:ee,minWidth:55*H.iI,noEmptyValue:!!r,onClose:le,onSave:function(e){if(t){var n=t.uuid,i={uuid:n};r?i.name=e:i.description=e,m((function(e){return Pe(Pe({},e),{},(0,o.Z)({},n,!0))})),J(i)}},textArea:!r,title:r?"Rename pipeline":"Edit description",value:r||n})}),{},[ee,t],{background:!0,uuid:"rename_pipeline_and_save"}),ce=(0,i.Z)(oe,2),ue=ce[0],le=ce[1],ae=(0,s.useMemo)((function(){return(0,P.jsx)(pe,{addButtonProps:{isLoading:U,label:"New",menuItems:[{label:function(){return"Standard (batch)"},onClick:function(){return V({pipeline:{name:(0,Q.Y6)()}})},uuid:"Pipelines/NewPipelineMenu/standard"},{label:function(){return"Data integration"},onClick:function(){return V({pipeline:{name:(0,Q.Y6)(),type:w.qL.INTEGRATION}})},uuid:"Pipelines/NewPipelineMenu/integration"},{label:function(){return"Streaming"},onClick:function(){return V({pipeline:{name:(0,Q.Y6)(),type:w.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:ie,item:"pipeline",onDelete:function(){return re(null===t||void 0===t?void 0:t.uuid)}},filterOptions:{status:Object.values(w.QK),type:Object.values(w.qL)},filterValueLabelMapping:w.G7,groupButtonProps:{groupByLabel:R,menuItems:[{beforeIcon:(0,P.jsx)(z.Jr,{fill:R===w.r0.STATUS?N.Z.content.default:N.Z.interactive.transparent,size:2*H.iI}),label:function(){return(0,Q.kC)(w.r0.STATUS)},onClick:function(){return(0,K.u7)((0,o.Z)({},w.$1.GROUP,R===w.r0.STATUS?null:w.r0.STATUS),{pushHistory:!0})},uuid:"Pipelines/GroupMenu/Status"},{beforeIcon:(0,P.jsx)(z.Jr,{fill:R===w.r0.TYPE?N.Z.content.default:N.Z.interactive.transparent,size:2*H.iI}),label:function(){return(0,Q.kC)(w.r0.TYPE)},onClick:function(){return(0,K.u7)((0,o.Z)({},w.$1.GROUP,R===w.r0.TYPE?null:w.r0.TYPE),{pushHistory:!0})},uuid:"Pipelines/GroupMenu/Type"}]},moreActionsMenuItems:[{label:function(){return"Rename pipeline"},onClick:function(){return ue({pipelineName:null===t||void 0===t?void 0:t.name})},uuid:"Pipelines/MoreActionsMenu/Rename"},{label:function(){return"Edit description"},onClick:function(){return ue({pipelineDescription:null===t||void 0===t?void 0:t.description})},uuid:"Pipelines/MoreActionsMenu/EditDescription"}],query:A,searchProps:{onChange:l,value:u},secondaryActionButtonProps:{Icon:z.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===t||void 0===t?void 0:t.uuid,"?"),isLoading:X,onClick:function(){return G({pipeline:{clone_pipeline_uuid:null===t||void 0===t?void 0:t.uuid}})},openConfirmationDialogue:!0,tooltip:"Clone pipeline"},selectedRowId:null===t||void 0===t?void 0:t.uuid,setSelectedRow:r})}),[G,V,re,R,X,U,ie,A,u,null===t||void 0===t?void 0:t.description,null===t||void 0===t?void 0:t.name,null===t||void 0===t?void 0:t.uuid,ue]);return(0,P.jsx)(h.Z,{errors:y,setErrors:k,subheaderChildren:ae,title:"Pipelines",uuid:"pipelines/index",children:0===(null===M||void 0===M?void 0:M.length)?(0,P.jsx)(O.Z,{px:3,py:1,children:I?(0,P.jsx)(j.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:"No pipelines available"}):(0,P.jsx)(C.Z,{inverted:!0,large:!0})}):(0,P.jsx)(ve.cl,{includePadding:!!R,maxHeight:"calc(100vh - ".concat(ge.Mz+74,"px)"),children:(0,P.jsx)(T.Z,{columnFlex:[null,1,3,4,1,1,1,null],columns:[{label:function(){return""},uuid:"action"},{uuid:(0,Q.kC)(w.r0.STATUS)},{uuid:"Name"},{uuid:"Description"},{uuid:(0,Q.kC)(w.r0.TYPE)},{uuid:"Blocks"},{uuid:"Triggers"},{center:!0,uuid:"Actions"}],grouping:{column:(0,Q.kC)(R),columnIndex:R===w.r0.STATUS?1:R===w.r0.TYPE?4:null,values:R===w.r0.STATUS?Object.values(w.QK).map((function(e){return(0,Q.J3)(e)})):R===w.r0.TYPE?Object.values(w.qL).map((function(e){return w.G7[e]})):[]},isSelectedRow:function(e){var n;return(null===(n=M[e])||void 0===n?void 0:n.uuid)===(null===t||void 0===t?void 0:t.uuid)},onClickRow:function(e){return r((function(n){var t=M[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]","/pipelines/".concat(M[n].uuid))},rows:M.map((function(n,t){var r=n.blocks,i=n.description,c=n.schedules,u=n.type,l=n.uuid,d=r.filter((function(e){var n=e.type;return he.tf.SCRATCHPAD!==n})).length,s=c.length,p=c.find((function(e){var n=e.status;return be.fq.ACTIVE===n}));return[s>=1||v[l]?(0,P.jsx)(f.Z,{iconOnly:!0,loading:!!v[l],noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(e){(0,je.j)(e),m((function(e){return Pe(Pe({},e),{},(0,o.Z)({},l,!0))})),J(Pe(Pe({},n),{},{status:p?be.fq.INACTIVE:be.fq.ACTIVE}))},children:p?(0,P.jsx)(z.dz,{muted:!0,size:2*H.iI}):(0,P.jsx)(z.Py,{default:!0,size:2*H.iI})}):null,(0,P.jsx)(j.ZP,{default:!p,monospace:!0,success:!!p,children:p?be.fq.ACTIVE:s>=1?be.fq.INACTIVE:"no schedules"},"pipeline_status_".concat(t)),(0,P.jsx)(a(),{as:"/pipelines/".concat(l),href:"/pipelines/[pipeline]",passHref:!0,children:(0,P.jsx)(E.Z,{sameColorAsText:!0,children:l})},"pipeline_name_".concat(t)),(0,P.jsx)(j.ZP,{default:!0,title:i,width:90*H.iI,children:i},"pipeline_description_".concat(t)),(0,P.jsx)(j.ZP,{children:w.G7[u]},"pipeline_type_".concat(t)),(0,P.jsx)(j.ZP,{default:0===d,monospace:!0,children:d},"pipeline_block_count_".concat(t)),(0,P.jsx)(j.ZP,{default:0===s,monospace:!0,children:s},"pipeline_trigger_count_".concat(t)),(0,P.jsxs)(b.Z,{flex:1,justifyContent:"flex-end",children:[(0,P.jsx)(f.Z,Pe(Pe({},Ze),{},{onClick:function(){e.push("/pipelines/[pipeline]","/pipelines/".concat(l))},title:"Detail",children:(0,P.jsx)(z.UY,{default:!0,size:2*H.iI})})),(0,P.jsx)(O.Z,{mr:1}),(0,P.jsx)(f.Z,Pe(Pe({},Ze),{},{onClick:function(){e.push("/pipelines/[pipeline]/logs","/pipelines/".concat(l,"/logs"))},title:"Logs",children:(0,P.jsx)(z.$B,{default:!0,size:2*H.iI})}))]},"chevron_icon_".concat(t))]})),stickyHeader:!0})})})}Ee.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)})));var we=(0,k.Z)(Ee)},33766:function(e,n,t){"use strict";t.d(n,{g_:function(){return p},u7:function(){return s}});var r=t(75582),i=t(82394),o=t(34376),c=t.n(o),u=t(59e3),l=t(24224);function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function d(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?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}function s(e){var n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.replaceParams,o=t.pushHistory,l=i?{}:(0,u.iV)();n=window.location.pathname;var a=o?c().push:c().replace,s=d(d({},l),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 s[t]}));var p=(0,u.uM)(s);p.length>=1&&(p="?".concat(p));var f="".concat(n.split("?")[0]).concat(p);return a(c().router.pathname,f,{shallow:!0})}function p(e,n,t){var i=t.addingMultipleValues,o=t.isList,c=t.itemsPerPage,u=t.pushHistory,a=void 0!==u&&u,p=t.resetLimitParams,f=d({},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,"[]");f[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=f[c];u&&Array.isArray(u)?(u=u.map(String)).includes(o)?f[c]=(0,l.Od)(u,(function(e){return e===o})):f[c]=u.concat(o):f[c]=[o]})):f=d(d({},f),n),p&&(f._limit=c||20,f._offset=0),s(f,{pushHistory:a})}},79274:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines",function(){return t(46614)}])}},function(e){e.O(0,[3850,2083,2344,9386,6166,8180,9774,2888,179],(function(){return n=79274,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3853],{1210:function(e,n,t){"use strict";t.d(n,{Z:function(){return Z}});var r=t(82394),i=t(21831),o=t(82684),c=t(47999),l=t(28358),u=t(93461),d=t(57384),s=t(12344),a=t(72454),f=t(28598);function p(e,n){var t=e.children;return(0,f.jsx)(a.HS,{ref:n,children:t})}var h=o.forwardRef(p),b=t(32063),v=t(15270),m=t(82531),g=t(66166),x=t(3055),j=t(49125),k=t(91427),y=t(24141);function O(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 w(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?O(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):O(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Z=function(e){var n,t=e.after,r=e.afterHidden,p=e.afterWidth,O=e.afterWidthOverride,Z=e.before,P=e.beforeWidth,C=e.breadcrumbs,_=e.children,I=e.errors,S=e.headerMenuItems,D=e.navigationItems,E=e.setErrors,W=e.subheaderChildren,M=e.title,H=e.uuid,N=(0,y.i)().width,A="dashboard_after_width_".concat(H),q="dashboard_before_width_".concat(H),T=(0,o.useRef)(null),B=(0,o.useState)(O?p:(0,k.U2)(A,p)),R=B[0],F=B[1],U=(0,o.useState)(!1),Y=U[0],z=U[1],G=(0,o.useState)(Z?Math.max((0,k.U2)(q,P),13*j.iI):null),X=G[0],J=G[1],L=(0,o.useState)(!1),Q=L[0],V=L[1],K=(0,o.useState)(null)[1],$=m.ZP.projects.list({},{revalidateOnFocus:!1}).data,ee=null===$||void 0===$?void 0:$.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 M}}]),(0,o.useEffect)((function(){null===T||void 0===T||!T.current||Y||Q||null===K||void 0===K||K(T.current.getBoundingClientRect().width)}),[Y,R,Q,X,T,K,N]),(0,o.useEffect)((function(){Y||(0,k.t8)(A,R)}),[r,Y,R,A]),(0,o.useEffect)((function(){Q||(0,k.t8)(q,X)}),[Q,X,q]);var te=(0,g.Z)(p);return(0,o.useEffect)((function(){O&&te!==p&&F(p)}),[O,p,te]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(d.Z,{title:M}),(0,f.jsx)(s.Z,{breadcrumbs:ne,menuItems:S,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)(a.Nk,{children:[0!==(null===D||void 0===D?void 0:D.length)&&(0,f.jsx)(a.lm,{children:(0,f.jsx)(v.Z,{navigationItems:D})}),(0,f.jsx)(u.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(b.Z,{after:t,afterHeightOffset:x.Mz,afterHidden:r,afterMousedownActive:Y,afterWidth:R,before:Z,beforeHeightOffset:x.Mz,beforeMousedownActive:Q,beforeWidth:a.k1+(Z?X:0),hideAfterCompletely:!0,leftOffset:Z?a.k1:null,mainContainerRef:T,setAfterMousedownActive:z,setAfterWidth:F,setBeforeMousedownActive:V,setBeforeWidth:J,children:[W&&(0,f.jsx)(h,{children:W}),_]})})]}),I&&(0,f.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===E||void 0===E?void 0:E(null)},children:(0,f.jsx)(l.Z,w(w({},I),{},{onClose:function(){return null===E||void 0===E?void 0:E(null)}}))})]})}},2850:function(e,n,t){"use strict";t.d(n,{M:function(){return l},W:function(){return c}});var r=t(9518),i=t(23831),o=t(3055),c=34*t(49125).iI,l=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);",""],o.Mz,(function(e){return"\n border-left: 1px solid ".concat((e.theme.borders||i.Z.borders).medium,";\n ")}))},79585:function(e,n,t){"use strict";t.d(n,{DQ:function(){return s},HY:function(){return c},SA:function(){return a},WH:function(){return o},eC:function(){return u},fF:function(){return l},tC:function(){return d}});var r=t(81132),i=t(9736),o="Workspace",c="Preferences",l="Git settings",u="Users",d="Account",s="Profile",a=function(e){var n=e.owner,t=e.roles,a=[{linkProps:{href:"/settings/workspace/preferences"},uuid:c}];n&&a.push({linkProps:{href:"/settings/workspace/users"},uuid:u}),(!(0,i.YB)()||t<=r.No.EDITOR)&&a.push({linkProps:{href:"/settings/workspace/sync_data"},uuid:l});var f=[{items:a,uuid:o}];return(0,i.YB)()?f.concat([{items:[{linkProps:{href:"/settings/account/profile"},uuid:s}],uuid:d}]):f}},30775:function(e,n,t){"use strict";t.d(n,{Z:function(){return w}});var r=t(1210),i=t(82394),o=t(12691),c=t.n(o),l=t(10919),u=t(86673),d=t(19711),s=t(9518),a=t(23831),f=t(49125),p=t(90880),h=(f.iI,s.default.div.withConfig({displayName:"indexstyle__SectionTitleStyle",componentId:"sc-1y8dyue-0"})(["padding:","px ","px;"],1*f.iI,2.5*f.iI)),b=s.default.div.withConfig({displayName:"indexstyle__ItemStyle",componentId:"sc-1y8dyue-1"})([""," padding:","px ","px;"," ",""],(0,p.eR)(),1.5*f.iI,2.5*f.iI,(function(e){return!e.selected&&"\n &:hover {\n background-color: ".concat((e.theme.background||a.Z.background).codeArea,";\n }\n ")}),(function(e){return e.selected&&"\n background-color: ".concat((e.theme.background||a.Z.background).codeTextarea,";\n ")})),v=t(28598),m=t(82684);function g(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function x(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?g(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):g(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var j=function(e){var n=e.isItemSelected,t=e.sections;return(0,v.jsx)(u.Z,{py:f.Gg,children:null===t||void 0===t?void 0:t.map((function(e){var t=e.items,r=e.title,i=e.uuid;return(0,v.jsxs)(u.Z,{children:[(0,v.jsx)(h,{children:(0,v.jsx)(d.ZP,{bold:!0,muted:!0,small:!0,uppercase:!0,children:r?r():i})}),null===t||void 0===t?void 0:t.map((function(e){var t=e.label,r=e.linkProps,o=e.onClick,u=e.uuid,d=t?t():u,s=(0,v.jsx)(b,{selected:null===n||void 0===n?void 0:n(x(x({},e),{},{uuidWorkspace:i})),children:d});return r?(0,m.createElement)(c(),x(x({},r),{},{key:u,passHref:!0}),(0,v.jsx)(l.Z,{block:!0,noHoverUnderline:!0,noOutline:!0,sameColorAsText:!0,children:s})):(0,v.jsx)(l.Z,{block:!0,noHoverUnderline:!0,noOutline:!0,onClick:o,preventDefault:!0,sameColorAsText:!0,children:s},u)}))]},i)}))})},k=t(2850),y=t(79585),O=t(9736);var w=function(e){var n=e.after,t=e.afterHidden,i=e.children,o=e.uuidItemSelected,c=e.uuidWorkspaceSelected,l=(0,O.PR)()||{};return(0,v.jsx)(r.Z,{after:n,afterHidden:!n||t,afterWidth:n?50*f.iI:0,afterWidthOverride:!0,before:(0,v.jsx)(k.M,{children:(0,v.jsx)(j,{isItemSelected:function(e){var n=e.uuid,t=e.uuidWorkspace;return c===t&&o===n},sections:(0,y.SA)(l)})}),beforeWidth:k.W,title:"Settings",uuid:"settings/index",children:i})}},38341:function(e,n,t){"use strict";var r=t(21831),i=t(82394),o=t(26304),c=(t(82684),t(9518)),l=t(67971),u=t(86673),d=t(19711),s=t(23831),a=t(10503),f=t(73942),p=t(49125),h=t(28598),b=["beforeIcon","checked","disabled","errorMessage","label","labelDescription","large","meta","monospace","onClick","required","small","warning","xsmall"];function v(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function m(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?v(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):v(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var g=c.default.div.withConfig({displayName:"Checkbox__CheckboxContainer",componentId:"sc-ujqx42-0"})(["display:inline-block;vertical-align:middle;cursor:pointer;"]),x=c.default.div.withConfig({displayName:"Checkbox__ErrorContainer",componentId:"sc-ujqx42-1"})(["margin-top:4px;"]),j=c.default.input.withConfig({displayName:"Checkbox__HiddenCheckbox",componentId:"sc-ujqx42-2"})(["border:0;clip:rect(0 0 0 0);clippath:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;",""],(function(e){return e.notClickable&&"\n background-color: ".concat((e.theme.content||s.Z.content).disabled,"\n border-color: ").concat((e.theme.content||s.Z.content).disabled,"\n\n &:hover {\n cursor: not-allowed;\n }\n ")})),k=c.default.div.withConfig({displayName:"Checkbox__StyledCheckbox",componentId:"sc-ujqx42-3"})(["border-radius:","px;height:","px;transition:all 150ms;width:","px;svg{position:relative;visibility:",";}"," "," "," "," input[disabled]{cursor:default;}"," ",""],.5*p.iI,2*p.iI,2*p.iI,(function(e){return e.checked||e.required?"visible":"hidden"}),(function(e){return e.large&&"\n svg {\n left: -4px;\n top: -8px;\n }\n "}),(function(e){return!e.checked&&"\n background-color: ".concat((e.theme.background||s.Z.background).popup,";\n border: ").concat(f.PV,"px ").concat(f.M8," ").concat((e.theme.content||s.Z.content).muted,";\n ")}),(function(e){return e.checked&&"\n background-color: ".concat((e.theme.interactive||s.Z.interactive).checked,";\n border: ").concat(f.YF,"px ").concat(f.M8," transparent;\n ")}),(function(e){return e.required&&"\n background-color: ".concat((e.theme.content||s.Z.content).disabled,";\n border: ").concat(f.YF,"px ").concat(f.M8," transparent;\n ")}),(function(e){return e.disabled&&"\n background-color: ".concat((e.theme.content||s.Z.content).disabled,";\n border-color: ").concat((e.theme.content||s.Z.content).disabled,";\n\n &:hover {\n cursor: not-allowed;\n }\n ")}),(function(e){return e.warning&&"\n background-color: ".concat((e.theme.accent||s.Z.accent).warning,";\n border-color: ").concat((e.theme.interactive||s.Z.interactive).defaultBorder,"\n ")})),y=c.default.label.withConfig({displayName:"Checkbox__LabelStyle",componentId:"sc-ujqx42-4"})(["-ms-flex-direction:column;align-items:center;display:flex;flex-direction:column;flex-direction:row;&:hover{cursor:pointer;}"]);n.Z=function(e){var n=e.beforeIcon,t=e.checked,i=e.disabled,c=e.errorMessage,s=e.label,f=e.labelDescription,v=e.large,O=e.meta,w=e.monospace,Z=void 0!==w&&w,P=e.onClick,C=e.required,_=e.small,I=void 0!==_&&_,S=e.warning,D=e.xsmall,E=void 0!==D&&D,W=(0,o.Z)(e,b),M=S||!!(c||O&&O.touched&&O.error);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(y,{onClick:function(e){e.preventDefault(),P&&P(e)},children:[(0,h.jsxs)(g,{children:[(0,h.jsx)(j,m(m({},W),{},{disabled:i?"disabled":void 0,notClickable:i})),(0,h.jsx)(k,{checked:t,disabled:i,large:v,required:C,warning:M,children:(0,h.jsx)(a.Jr,{size:p.iI*(v?3:2)})})]}),n&&(0,h.jsx)(u.Z,{ml:1,children:(0,h.jsx)(l.Z,{children:n})}),s&&(0,h.jsxs)(u.Z,{pl:1,children:["string"===typeof s&&(0,h.jsx)(d.ZP,{disabled:i,lineThrough:i,monospace:Z,small:I,xsmall:E,children:s}),"string"!==typeof s&&s,f&&(0,h.jsx)(d.ZP,{muted:!0,small:!0,children:f})]})]}),(c||O&&O.touched&&O.error)&&(0,h.jsx)(x,{children:(0,h.jsx)(d.ZP,{small:!0,warning:!0,children:c?(0,r.Z)(c):O.error})})]})}},42949:function(e,n,t){"use strict";t.r(n);var r=t(77837),i=t(38860),o=t.n(i),c=t(82684),l=t(38341),u=t(67971),d=t(41788),s=t(30775),a=t(86673),f=t(11366),p=t(49125),h=t(79585),b=t(91427),v=t(28598);function m(){var e=(0,c.useState)(!!(0,b.U2)(f.k)),n=e[0],t=e[1];return(0,v.jsx)(s.Z,{uuidItemSelected:h.HY,uuidWorkspaceSelected:h.WH,children:(0,v.jsx)(a.Z,{p:p.cd,children:(0,v.jsx)(u.Z,{alignItems:"center",children:(0,v.jsx)(l.Z,{checked:n,label:"Automatically use randomly generated name for blocks created in the future",onClick:function(){t(!n),(0,b.t8)(f.k,!n)}})})})})}m.getInitialProps=(0,r.Z)(o().mark((function e(){return o().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)(m)},11366:function(e,n,t){"use strict";t.d(n,{k:function(){return r}});var r="automatically_name_blocks"},33323:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/preferences",function(){return t(42949)}])}},function(e){e.O(0,[3850,2344,9386,9774,2888,179],(function(){return n=33323,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3853],{1210:function(e,n,t){"use strict";t.d(n,{Z:function(){return Z}});var r=t(82394),i=t(21831),o=t(82684),c=t(47999),l=t(49894),u=t(93461),d=t(57384),s=t(12344),a=t(72454),f=t(28598);function p(e,n){var t=e.children;return(0,f.jsx)(a.HS,{ref:n,children:t})}var h=o.forwardRef(p),b=t(32063),v=t(15270),m=t(82531),g=t(66166),x=t(3055),j=t(49125),k=t(91427),y=t(24141);function O(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 w(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?O(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):O(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Z=function(e){var n,t=e.after,r=e.afterHidden,p=e.afterWidth,O=e.afterWidthOverride,Z=e.before,P=e.beforeWidth,C=e.breadcrumbs,_=e.children,I=e.errors,S=e.headerMenuItems,D=e.navigationItems,E=e.setErrors,W=e.subheaderChildren,M=e.title,H=e.uuid,N=(0,y.i)().width,A="dashboard_after_width_".concat(H),q="dashboard_before_width_".concat(H),T=(0,o.useRef)(null),B=(0,o.useState)(O?p:(0,k.U2)(A,p)),R=B[0],F=B[1],U=(0,o.useState)(!1),Y=U[0],z=U[1],G=(0,o.useState)(Z?Math.max((0,k.U2)(q,P),13*j.iI):null),X=G[0],J=G[1],L=(0,o.useState)(!1),Q=L[0],V=L[1],K=(0,o.useState)(null)[1],$=m.ZP.projects.list({},{revalidateOnFocus:!1}).data,ee=null===$||void 0===$?void 0:$.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 M}}]),(0,o.useEffect)((function(){null===T||void 0===T||!T.current||Y||Q||null===K||void 0===K||K(T.current.getBoundingClientRect().width)}),[Y,R,Q,X,T,K,N]),(0,o.useEffect)((function(){Y||(0,k.t8)(A,R)}),[r,Y,R,A]),(0,o.useEffect)((function(){Q||(0,k.t8)(q,X)}),[Q,X,q]);var te=(0,g.Z)(p);return(0,o.useEffect)((function(){O&&te!==p&&F(p)}),[O,p,te]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(d.Z,{title:M}),(0,f.jsx)(s.Z,{breadcrumbs:ne,menuItems:S,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)(a.Nk,{children:[0!==(null===D||void 0===D?void 0:D.length)&&(0,f.jsx)(a.lm,{children:(0,f.jsx)(v.Z,{navigationItems:D})}),(0,f.jsx)(u.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(b.Z,{after:t,afterHeightOffset:x.Mz,afterHidden:r,afterMousedownActive:Y,afterWidth:R,before:Z,beforeHeightOffset:x.Mz,beforeMousedownActive:Q,beforeWidth:a.k1+(Z?X:0),hideAfterCompletely:!0,leftOffset:Z?a.k1:null,mainContainerRef:T,setAfterMousedownActive:z,setAfterWidth:F,setBeforeMousedownActive:V,setBeforeWidth:J,children:[W&&(0,f.jsx)(h,{children:W}),_]})})]}),I&&(0,f.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===E||void 0===E?void 0:E(null)},children:(0,f.jsx)(l.Z,w(w({},I),{},{onClose:function(){return null===E||void 0===E?void 0:E(null)}}))})]})}},2850:function(e,n,t){"use strict";t.d(n,{M:function(){return l},W:function(){return c}});var r=t(9518),i=t(23831),o=t(3055),c=34*t(49125).iI,l=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);",""],o.Mz,(function(e){return"\n border-left: 1px solid ".concat((e.theme.borders||i.Z.borders).medium,";\n ")}))},79585:function(e,n,t){"use strict";t.d(n,{DQ:function(){return s},HY:function(){return c},SA:function(){return a},WH:function(){return o},eC:function(){return u},fF:function(){return l},tC:function(){return d}});var r=t(81132),i=t(9736),o="Workspace",c="Preferences",l="Git settings",u="Users",d="Account",s="Profile",a=function(e){var n=e.owner,t=e.roles,a=[{linkProps:{href:"/settings/workspace/preferences"},uuid:c}];n&&a.push({linkProps:{href:"/settings/workspace/users"},uuid:u}),(!(0,i.YB)()||t<=r.No.EDITOR)&&a.push({linkProps:{href:"/settings/workspace/sync-data"},uuid:l});var f=[{items:a,uuid:o}];return(0,i.YB)()?f.concat([{items:[{linkProps:{href:"/settings/account/profile"},uuid:s}],uuid:d}]):f}},30775:function(e,n,t){"use strict";t.d(n,{Z:function(){return w}});var r=t(1210),i=t(82394),o=t(12691),c=t.n(o),l=t(10919),u=t(86673),d=t(19711),s=t(9518),a=t(23831),f=t(49125),p=t(90880),h=(f.iI,s.default.div.withConfig({displayName:"indexstyle__SectionTitleStyle",componentId:"sc-1y8dyue-0"})(["padding:","px ","px;"],1*f.iI,2.5*f.iI)),b=s.default.div.withConfig({displayName:"indexstyle__ItemStyle",componentId:"sc-1y8dyue-1"})([""," padding:","px ","px;"," ",""],(0,p.eR)(),1.5*f.iI,2.5*f.iI,(function(e){return!e.selected&&"\n &:hover {\n background-color: ".concat((e.theme.background||a.Z.background).codeArea,";\n }\n ")}),(function(e){return e.selected&&"\n background-color: ".concat((e.theme.background||a.Z.background).codeTextarea,";\n ")})),v=t(28598),m=t(82684);function g(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function x(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?g(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):g(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var j=function(e){var n=e.isItemSelected,t=e.sections;return(0,v.jsx)(u.Z,{py:f.Gg,children:null===t||void 0===t?void 0:t.map((function(e){var t=e.items,r=e.title,i=e.uuid;return(0,v.jsxs)(u.Z,{children:[(0,v.jsx)(h,{children:(0,v.jsx)(d.ZP,{bold:!0,muted:!0,small:!0,uppercase:!0,children:r?r():i})}),null===t||void 0===t?void 0:t.map((function(e){var t=e.label,r=e.linkProps,o=e.onClick,u=e.uuid,d=t?t():u,s=(0,v.jsx)(b,{selected:null===n||void 0===n?void 0:n(x(x({},e),{},{uuidWorkspace:i})),children:d});return r?(0,m.createElement)(c(),x(x({},r),{},{key:u,passHref:!0}),(0,v.jsx)(l.Z,{block:!0,noHoverUnderline:!0,noOutline:!0,sameColorAsText:!0,children:s})):(0,v.jsx)(l.Z,{block:!0,noHoverUnderline:!0,noOutline:!0,onClick:o,preventDefault:!0,sameColorAsText:!0,children:s},u)}))]},i)}))})},k=t(2850),y=t(79585),O=t(9736);var w=function(e){var n=e.after,t=e.afterHidden,i=e.children,o=e.uuidItemSelected,c=e.uuidWorkspaceSelected,l=(0,O.PR)()||{};return(0,v.jsx)(r.Z,{after:n,afterHidden:!n||t,afterWidth:n?50*f.iI:0,afterWidthOverride:!0,before:(0,v.jsx)(k.M,{children:(0,v.jsx)(j,{isItemSelected:function(e){var n=e.uuid,t=e.uuidWorkspace;return c===t&&o===n},sections:(0,y.SA)(l)})}),beforeWidth:k.W,title:"Settings",uuid:"settings/index",children:i})}},38341:function(e,n,t){"use strict";var r=t(21831),i=t(82394),o=t(26304),c=(t(82684),t(9518)),l=t(67971),u=t(86673),d=t(19711),s=t(23831),a=t(10503),f=t(73942),p=t(49125),h=t(28598),b=["beforeIcon","checked","disabled","errorMessage","label","labelDescription","large","meta","monospace","onClick","required","small","warning","xsmall"];function v(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function m(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?v(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):v(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var g=c.default.div.withConfig({displayName:"Checkbox__CheckboxContainer",componentId:"sc-ujqx42-0"})(["display:inline-block;vertical-align:middle;cursor:pointer;"]),x=c.default.div.withConfig({displayName:"Checkbox__ErrorContainer",componentId:"sc-ujqx42-1"})(["margin-top:4px;"]),j=c.default.input.withConfig({displayName:"Checkbox__HiddenCheckbox",componentId:"sc-ujqx42-2"})(["border:0;clip:rect(0 0 0 0);clippath:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;",""],(function(e){return e.notClickable&&"\n background-color: ".concat((e.theme.content||s.Z.content).disabled,"\n border-color: ").concat((e.theme.content||s.Z.content).disabled,"\n\n &:hover {\n cursor: not-allowed;\n }\n ")})),k=c.default.div.withConfig({displayName:"Checkbox__StyledCheckbox",componentId:"sc-ujqx42-3"})(["border-radius:","px;height:","px;transition:all 150ms;width:","px;svg{position:relative;visibility:",";}"," "," "," "," input[disabled]{cursor:default;}"," ",""],.5*p.iI,2*p.iI,2*p.iI,(function(e){return e.checked||e.required?"visible":"hidden"}),(function(e){return e.large&&"\n svg {\n left: -4px;\n top: -8px;\n }\n "}),(function(e){return!e.checked&&"\n background-color: ".concat((e.theme.background||s.Z.background).popup,";\n border: ").concat(f.PV,"px ").concat(f.M8," ").concat((e.theme.content||s.Z.content).muted,";\n ")}),(function(e){return e.checked&&"\n background-color: ".concat((e.theme.interactive||s.Z.interactive).checked,";\n border: ").concat(f.YF,"px ").concat(f.M8," transparent;\n ")}),(function(e){return e.required&&"\n background-color: ".concat((e.theme.content||s.Z.content).disabled,";\n border: ").concat(f.YF,"px ").concat(f.M8," transparent;\n ")}),(function(e){return e.disabled&&"\n background-color: ".concat((e.theme.content||s.Z.content).disabled,";\n border-color: ").concat((e.theme.content||s.Z.content).disabled,";\n\n &:hover {\n cursor: not-allowed;\n }\n ")}),(function(e){return e.warning&&"\n background-color: ".concat((e.theme.accent||s.Z.accent).warning,";\n border-color: ").concat((e.theme.interactive||s.Z.interactive).defaultBorder,"\n ")})),y=c.default.label.withConfig({displayName:"Checkbox__LabelStyle",componentId:"sc-ujqx42-4"})(["-ms-flex-direction:column;align-items:center;display:flex;flex-direction:column;flex-direction:row;&:hover{cursor:pointer;}"]);n.Z=function(e){var n=e.beforeIcon,t=e.checked,i=e.disabled,c=e.errorMessage,s=e.label,f=e.labelDescription,v=e.large,O=e.meta,w=e.monospace,Z=void 0!==w&&w,P=e.onClick,C=e.required,_=e.small,I=void 0!==_&&_,S=e.warning,D=e.xsmall,E=void 0!==D&&D,W=(0,o.Z)(e,b),M=S||!!(c||O&&O.touched&&O.error);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(y,{onClick:function(e){e.preventDefault(),P&&P(e)},children:[(0,h.jsxs)(g,{children:[(0,h.jsx)(j,m(m({},W),{},{disabled:i?"disabled":void 0,notClickable:i})),(0,h.jsx)(k,{checked:t,disabled:i,large:v,required:C,warning:M,children:(0,h.jsx)(a.Jr,{size:p.iI*(v?3:2)})})]}),n&&(0,h.jsx)(u.Z,{ml:1,children:(0,h.jsx)(l.Z,{children:n})}),s&&(0,h.jsxs)(u.Z,{pl:1,children:["string"===typeof s&&(0,h.jsx)(d.ZP,{disabled:i,lineThrough:i,monospace:Z,small:I,xsmall:E,children:s}),"string"!==typeof s&&s,f&&(0,h.jsx)(d.ZP,{muted:!0,small:!0,children:f})]})]}),(c||O&&O.touched&&O.error)&&(0,h.jsx)(x,{children:(0,h.jsx)(d.ZP,{small:!0,warning:!0,children:c?(0,r.Z)(c):O.error})})]})}},42949:function(e,n,t){"use strict";t.r(n);var r=t(77837),i=t(38860),o=t.n(i),c=t(82684),l=t(38341),u=t(67971),d=t(41788),s=t(30775),a=t(86673),f=t(11366),p=t(49125),h=t(79585),b=t(91427),v=t(28598);function m(){var e=(0,c.useState)(!!(0,b.U2)(f.k)),n=e[0],t=e[1];return(0,v.jsx)(s.Z,{uuidItemSelected:h.HY,uuidWorkspaceSelected:h.WH,children:(0,v.jsx)(a.Z,{p:p.cd,children:(0,v.jsx)(u.Z,{alignItems:"center",children:(0,v.jsx)(l.Z,{checked:n,label:"Automatically use randomly generated name for blocks created in the future",onClick:function(){t(!n),(0,b.t8)(f.k,!n)}})})})})}m.getInitialProps=(0,r.Z)(o().mark((function e(){return o().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)(m)},11366:function(e,n,t){"use strict";t.d(n,{k:function(){return r}});var r="automatically_name_blocks"},33323:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/preferences",function(){return t(42949)}])}},function(e){e.O(0,[3850,2344,9386,9774,2888,179],(function(){return n=33323,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2403],{1210:function(e,n,t){"use strict";t.d(n,{Z:function(){return k}});var r=t(82394),i=t(21831),o=t(82684),c=t(47999),l=t(49894),a=t(93461),u=t(57384),s=t(12344),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),m=t(32063),b=t(15270),y=t(82531),g=t(66166),v=t(3055),j=t(49125),O=t(91427),x=t(24141);function w(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Z(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?w(Object(t),!0).forEach((function(n){(0,r.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 k=function(e){var n,t=e.after,r=e.afterHidden,p=e.afterWidth,w=e.afterWidthOverride,k=e.before,P=e.beforeWidth,_=e.breadcrumbs,I=e.children,S=e.errors,C=e.headerMenuItems,N=e.navigationItems,H=e.setErrors,D=e.subheaderChildren,E=e.title,z=e.uuid,M=(0,x.i)().width,T="dashboard_after_width_".concat(z),A="dashboard_before_width_".concat(z),W=(0,o.useRef)(null),q=(0,o.useState)(w?p:(0,O.U2)(T,p)),B=q[0],R=q[1],L=(0,o.useState)(!1),F=L[0],Y=L[1],G=(0,o.useState)(k?Math.max((0,O.U2)(A,P),13*j.iI):null),U=G[0],J=G[1],X=(0,o.useState)(!1),Q=X[0],V=X[1],K=(0,o.useState)(null)[1],$=y.ZP.projects.list({},{revalidateOnFocus:!1}).data,ee=null===$||void 0===$?void 0:$.projects,ne=[];_?ne.push.apply(ne,(0,i.Z)(_)):(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 E}}]),(0,o.useEffect)((function(){null===W||void 0===W||!W.current||F||Q||null===K||void 0===K||K(W.current.getBoundingClientRect().width)}),[F,B,Q,U,W,K,M]),(0,o.useEffect)((function(){F||(0,O.t8)(T,B)}),[r,F,B,T]),(0,o.useEffect)((function(){Q||(0,O.t8)(A,U)}),[Q,U,A]);var te=(0,g.Z)(p);return(0,o.useEffect)((function(){w&&te!==p&&R(p)}),[w,p,te]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(u.Z,{title:E}),(0,f.jsx)(s.Z,{breadcrumbs:ne,menuItems:C,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===N||void 0===N?void 0:N.length)&&(0,f.jsx)(d.lm,{children:(0,f.jsx)(b.Z,{navigationItems:N})}),(0,f.jsx)(a.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(m.Z,{after:t,afterHeightOffset:v.Mz,afterHidden:r,afterMousedownActive:F,afterWidth:B,before:k,beforeHeightOffset:v.Mz,beforeMousedownActive:Q,beforeWidth:d.k1+(k?U:0),hideAfterCompletely:!0,leftOffset:k?d.k1:null,mainContainerRef:W,setAfterMousedownActive:Y,setAfterWidth:R,setBeforeMousedownActive:V,setBeforeWidth:J,children:[D&&(0,f.jsx)(h,{children:D}),I]})})]}),S&&(0,f.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===H||void 0===H?void 0:H(null)},children:(0,f.jsx)(l.Z,Z(Z({},S),{},{onClose:function(){return null===H||void 0===H?void 0:H(null)}}))})]})}},2850:function(e,n,t){"use strict";t.d(n,{M:function(){return l},W:function(){return c}});var r=t(9518),i=t(23831),o=t(3055),c=34*t(49125).iI,l=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);",""],o.Mz,(function(e){return"\n border-left: 1px solid ".concat((e.theme.borders||i.Z.borders).medium,";\n ")}))},79585:function(e,n,t){"use strict";t.d(n,{DQ:function(){return s},HY:function(){return c},SA:function(){return d},WH:function(){return o},eC:function(){return a},fF:function(){return l},tC:function(){return u}});var r=t(81132),i=t(9736),o="Workspace",c="Preferences",l="Git settings",a="Users",u="Account",s="Profile",d=function(e){var n=e.owner,t=e.roles,d=[{linkProps:{href:"/settings/workspace/preferences"},uuid:c}];n&&d.push({linkProps:{href:"/settings/workspace/users"},uuid:a}),(!(0,i.YB)()||t<=r.No.EDITOR)&&d.push({linkProps:{href:"/settings/workspace/sync-data"},uuid:l});var f=[{items:d,uuid:o}];return(0,i.YB)()?f.concat([{items:[{linkProps:{href:"/settings/account/profile"},uuid:s}],uuid:u}]):f}},30775:function(e,n,t){"use strict";t.d(n,{Z:function(){return Z}});var r=t(1210),i=t(82394),o=t(12691),c=t.n(o),l=t(10919),a=t(86673),u=t(19711),s=t(9518),d=t(23831),f=t(49125),p=t(90880),h=(f.iI,s.default.div.withConfig({displayName:"indexstyle__SectionTitleStyle",componentId:"sc-1y8dyue-0"})(["padding:","px ","px;"],1*f.iI,2.5*f.iI)),m=s.default.div.withConfig({displayName:"indexstyle__ItemStyle",componentId:"sc-1y8dyue-1"})([""," padding:","px ","px;"," ",""],(0,p.eR)(),1.5*f.iI,2.5*f.iI,(function(e){return!e.selected&&"\n &:hover {\n background-color: ".concat((e.theme.background||d.Z.background).codeArea,";\n }\n ")}),(function(e){return e.selected&&"\n background-color: ".concat((e.theme.background||d.Z.background).codeTextarea,";\n ")})),b=t(28598),y=t(82684);function g(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function v(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?g(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):g(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var j=function(e){var n=e.isItemSelected,t=e.sections;return(0,b.jsx)(a.Z,{py:f.Gg,children:null===t||void 0===t?void 0:t.map((function(e){var t=e.items,r=e.title,i=e.uuid;return(0,b.jsxs)(a.Z,{children:[(0,b.jsx)(h,{children:(0,b.jsx)(u.ZP,{bold:!0,muted:!0,small:!0,uppercase:!0,children:r?r():i})}),null===t||void 0===t?void 0:t.map((function(e){var t=e.label,r=e.linkProps,o=e.onClick,a=e.uuid,u=t?t():a,s=(0,b.jsx)(m,{selected:null===n||void 0===n?void 0:n(v(v({},e),{},{uuidWorkspace:i})),children:u});return r?(0,y.createElement)(c(),v(v({},r),{},{key:a,passHref:!0}),(0,b.jsx)(l.Z,{block:!0,noHoverUnderline:!0,noOutline:!0,sameColorAsText:!0,children:s})):(0,b.jsx)(l.Z,{block:!0,noHoverUnderline:!0,noOutline:!0,onClick:o,preventDefault:!0,sameColorAsText:!0,children:s},a)}))]},i)}))})},O=t(2850),x=t(79585),w=t(9736);var Z=function(e){var n=e.after,t=e.afterHidden,i=e.children,o=e.uuidItemSelected,c=e.uuidWorkspaceSelected,l=(0,w.PR)()||{};return(0,b.jsx)(r.Z,{after:n,afterHidden:!n||t,afterWidth:n?50*f.iI:0,afterWidthOverride:!0,before:(0,b.jsx)(O.M,{children:(0,b.jsx)(j,{isItemSelected:function(e){var n=e.uuid,t=e.uuidWorkspace;return c===t&&o===n},sections:(0,x.SA)(l)})}),beforeWidth:O.W,title:"Settings",uuid:"settings/index",children:i})}},76096:function(e,n,t){"use strict";var r=t(82394),i=t(26304),o=(t(82684),t(33591)),c=t(28598),l=["children","fullHeight","gutter","style"];function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function u(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?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}n.Z=function(e){var n=e.children,t=e.fullHeight,r=e.gutter,a=e.style,s=void 0===a?{}:a,d=(0,i.Z)(e,l),f=u({},s);return r&&(f.paddingLeft=r,f.paddingRight=f.paddingLeft),t&&(f.height="100%"),(0,c.jsx)(o.Col,u(u({},d),{},{style:f,children:n}))}},97361:function(e,n,t){"use strict";var r=t(82394),i=t(26304),o=t(82684),c=t(33591),l=t(28598),a=["children","fullHeight","gutter","style"];function u(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?u(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.children,t=e.fullHeight,r=e.gutter,u=e.style,d=void 0===u?{}:u,f=(0,i.Z)(e,a),p=s({},d);return r&&(p.marginLeft=-1*r,p.marginRight=p.marginLeft),t&&(p.height="100%"),(0,l.jsx)(c.Row,s(s({},f),{},{style:p,children:o.Children.map(n,(function(e,n){return e&&o.cloneElement(e,{gutter:r,key:n})}))}))}},42008:function(e,n,t){"use strict";t.d(n,{J:function(){return o},X:function(){return c}});var r=t(76096),i=t(97361),o=r.Z,c=i.Z},38341:function(e,n,t){"use strict";var r=t(21831),i=t(82394),o=t(26304),c=(t(82684),t(9518)),l=t(67971),a=t(86673),u=t(19711),s=t(23831),d=t(10503),f=t(73942),p=t(49125),h=t(28598),m=["beforeIcon","checked","disabled","errorMessage","label","labelDescription","large","meta","monospace","onClick","required","small","warning","xsmall"];function b(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?b(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):b(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var g=c.default.div.withConfig({displayName:"Checkbox__CheckboxContainer",componentId:"sc-ujqx42-0"})(["display:inline-block;vertical-align:middle;cursor:pointer;"]),v=c.default.div.withConfig({displayName:"Checkbox__ErrorContainer",componentId:"sc-ujqx42-1"})(["margin-top:4px;"]),j=c.default.input.withConfig({displayName:"Checkbox__HiddenCheckbox",componentId:"sc-ujqx42-2"})(["border:0;clip:rect(0 0 0 0);clippath:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;",""],(function(e){return e.notClickable&&"\n background-color: ".concat((e.theme.content||s.Z.content).disabled,"\n border-color: ").concat((e.theme.content||s.Z.content).disabled,"\n\n &:hover {\n cursor: not-allowed;\n }\n ")})),O=c.default.div.withConfig({displayName:"Checkbox__StyledCheckbox",componentId:"sc-ujqx42-3"})(["border-radius:","px;height:","px;transition:all 150ms;width:","px;svg{position:relative;visibility:",";}"," "," "," "," input[disabled]{cursor:default;}"," ",""],.5*p.iI,2*p.iI,2*p.iI,(function(e){return e.checked||e.required?"visible":"hidden"}),(function(e){return e.large&&"\n svg {\n left: -4px;\n top: -8px;\n }\n "}),(function(e){return!e.checked&&"\n background-color: ".concat((e.theme.background||s.Z.background).popup,";\n border: ").concat(f.PV,"px ").concat(f.M8," ").concat((e.theme.content||s.Z.content).muted,";\n ")}),(function(e){return e.checked&&"\n background-color: ".concat((e.theme.interactive||s.Z.interactive).checked,";\n border: ").concat(f.YF,"px ").concat(f.M8," transparent;\n ")}),(function(e){return e.required&&"\n background-color: ".concat((e.theme.content||s.Z.content).disabled,";\n border: ").concat(f.YF,"px ").concat(f.M8," transparent;\n ")}),(function(e){return e.disabled&&"\n background-color: ".concat((e.theme.content||s.Z.content).disabled,";\n border-color: ").concat((e.theme.content||s.Z.content).disabled,";\n\n &:hover {\n cursor: not-allowed;\n }\n ")}),(function(e){return e.warning&&"\n background-color: ".concat((e.theme.accent||s.Z.accent).warning,";\n border-color: ").concat((e.theme.interactive||s.Z.interactive).defaultBorder,"\n ")})),x=c.default.label.withConfig({displayName:"Checkbox__LabelStyle",componentId:"sc-ujqx42-4"})(["-ms-flex-direction:column;align-items:center;display:flex;flex-direction:column;flex-direction:row;&:hover{cursor:pointer;}"]);n.Z=function(e){var n=e.beforeIcon,t=e.checked,i=e.disabled,c=e.errorMessage,s=e.label,f=e.labelDescription,b=e.large,w=e.meta,Z=e.monospace,k=void 0!==Z&&Z,P=e.onClick,_=e.required,I=e.small,S=void 0!==I&&I,C=e.warning,N=e.xsmall,H=void 0!==N&&N,D=(0,o.Z)(e,m),E=C||!!(c||w&&w.touched&&w.error);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(x,{onClick:function(e){e.preventDefault(),P&&P(e)},children:[(0,h.jsxs)(g,{children:[(0,h.jsx)(j,y(y({},D),{},{disabled:i?"disabled":void 0,notClickable:i})),(0,h.jsx)(O,{checked:t,disabled:i,large:b,required:_,warning:E,children:(0,h.jsx)(d.Jr,{size:p.iI*(b?3:2)})})]}),n&&(0,h.jsx)(a.Z,{ml:1,children:(0,h.jsx)(l.Z,{children:n})}),s&&(0,h.jsxs)(a.Z,{pl:1,children:["string"===typeof s&&(0,h.jsx)(u.ZP,{disabled:i,lineThrough:i,monospace:k,small:S,xsmall:H,children:s}),"string"!==typeof s&&s,f&&(0,h.jsx)(u.ZP,{muted:!0,small:!0,children:f})]})]}),(c||w&&w.touched&&w.error)&&(0,h.jsx)(v,{children:(0,h.jsx)(u.ZP,{small:!0,warning:!0,children:c?(0,r.Z)(c):w.error})})]})}},87372:function(e,n,t){"use strict";var r,i,o,c,l,a,u,s,d=t(82394),f=t(26304),p=t(26653),h=t(9518),m=t(33591),b=t(23831),y=t(2005),g=t(31012),v=t(19711),j=t(49125),O=t(86673),x=t(28598),w=["children","condensed","inline","level","marketing","spacingBelow"];function Z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function k(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach((function(n){(0,d.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=(0,h.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],v.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(y.iI,";\n ")}),(function(e){return!e.monospace&&1===Number(e.weightStyle)&&"\n font-family: ".concat(y.LX,";\n ")}),(function(e){return!e.monospace&&2===Number(e.weightStyle)&&"\n font-family: ".concat(y.LX,";\n ")}),(function(e){return!e.monospace&&3===Number(e.weightStyle)&&"\n font-family: ".concat(y.ry,";\n ")}),(function(e){return!e.monospace&&4===Number(e.weightStyle)&&"\n font-family: ".concat(y.YC,";\n ")}),(function(e){return!e.monospace&&5===Number(e.weightStyle)&&"\n font-family: ".concat(y.nF,";\n ")}),(function(e){return!e.monospace&&(6===Number(e.weightStyle)||e.bold)&&"\n font-family: ".concat(y.nF,";\n ")}),(function(e){return!e.monospace&&7===Number(e.weightStyle)&&"\n font-family: ".concat(y.nF,";\n ")}),(function(e){return!e.monospace&&8===Number(e.weightStyle)&&"\n font-family: ".concat(y.nF,";\n ")}),(function(e){return e.lineHeightAuto&&"\n line-height: normal !important;\n "})),_=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 ")})),I=h.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],P,m.media.md(r||(r=(0,p.Z)(["\n ","\n "])),g.aQ),m.media.lg(i||(i=(0,p.Z)(["\n ","\n "])),g.aQ),m.media.xl(o||(o=(0,p.Z)(["\n ","\n "])),g.aQ)),S=h.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],P,g.MJ),C=h.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],P,m.media.xs(c||(c=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*j.iI,7*j.iI),m.media.sm(l||(l=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*j.iI,7*j.iI),m.media.md(a||(a=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*j.iI,7*j.iI),m.media.lg(u||(u=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*j.iI,7*j.iI),m.media.xl(s||(s=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*j.iI,7*j.iI)),N=h.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],P,g.BL),H=h.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],P),D=h.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],P),E=h.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],P),z=h.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],P,(function(e){return 1===e.level&&"\n ".concat(g.MJ,"\n ")}),(function(e){return 2===e.level&&"\n ".concat(g.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 "})),M=function(e){var n,t=e.children,r=e.condensed,i=e.inline,o=e.level,c=e.marketing,l=e.spacingBelow,a=(0,f.Z)(e,w);i?n=z:0===Number(o)?n=I:1===Number(o)?n=c?C:S:2===Number(o)?n=N:3===Number(o)?n=H:4===Number(o)?n=D:5===Number(o)&&(n=E);var u=(0,x.jsxs)(n,k(k({},a),{},{level:o,children:[l&&(0,x.jsx)(O.Z,{mb:r?2:3,children:t}),!l&&t]}));return i?u:(0,x.jsx)(_,{children:u})};M.defaultProps={level:3,weightStyle:6},n.Z=M},10831:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return H}});var r=t(77837),i=t(82394),o=t(75582),c=t(38860),l=t.n(c),a=t(82684),u=t(21764),s=t(60328),d=t(38341),f=t(67971),p=t(87372),h=t(10919),m=t(41788),b=t(30775),y=t(42008),g=t(86673),v=[{autoComplete:"remote_repo_link",label:"Remote repo url",required:!0,uuid:"remote_repo_link"},{autoComplete:"repo_path",label:"Local directory path",uuid:"repo_path"}],j=[{autoComplete:"branch",label:"Branch name",uuid:"branch"}],O=t(19711),x=t(82944),w=t(82531),Z=t(49125),k=t(79585),P=t(96510),_=t(83455),I=t(28598);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 C(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}function N(){var e=w.ZP.syncs.list().data,n=(0,a.useState)(null),t=n[0],r=n[1];(0,a.useEffect)((function(){var n;e&&r(null===e||void 0===e||null===(n=e.syncs)||void 0===n?void 0:n[0])}),[e]);var c=(0,_.Db)(w.ZP.syncs.useCreate(),{onSuccess:function(e){return(0,P.wD)(e,{callback:function(e){var n=e.sync;n&&(r(n),window.location.reload(),u.Am.success("Sync saved",{position:u.Am.POSITION.BOTTOM_RIGHT,toastId:"data_sync_success"}))},onErrorCallback:function(e){var n=e.error,t=n.message,r=n.type;u.Am.error(t,{position:u.Am.POSITION.BOTTOM_RIGHT,toastId:r})}})}}),l=(0,o.Z)(c,2),m=l[0],S=l[1].isLoading,N=(0,_.Db)(w.ZP.syncs.useUpdate("git"),{onSuccess:function(e){return(0,P.wD)(e,{callback:function(e){e.sync&&u.Am.success("Data synced!",{position:u.Am.POSITION.BOTTOM_RIGHT,toastId:"data_sync_success"})},onErrorCallback:function(e){var n=e.error,t=n.message,r=n.type;u.Am.error(t,{position:u.Am.POSITION.BOTTOM_RIGHT,toastId:r})}})}}),H=(0,o.Z)(N,2),D=H[0],E=H[1].isLoading;return(0,I.jsx)(b.Z,{uuidItemSelected:k.fF,uuidWorkspaceSelected:k.WH,children:(0,I.jsxs)(g.Z,{p:Z.cd,children:[(0,I.jsx)(p.Z,{children:"Git repository settings"}),(0,I.jsx)(g.Z,{mt:1,children:(0,I.jsxs)(O.ZP,{children:["You can enable the Git integration by supplying the url for your remote repository. ",(0,I.jsxs)(O.ZP,{inline:!0,children:["You will need to ",(0,I.jsx)(h.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,I.jsx)(f.Z,{alignItems:"center",children:(0,I.jsx)("form",{children:v.map((function(e){var n=e.autoComplete,o=e.disabled,c=e.label,l=e.required,a=e.type,u=e.uuid;return(0,I.jsx)(g.Z,{mt:2,children:(0,I.jsx)(x.Z,{autoComplete:n,disabled:o,label:c,onChange:function(e){r((function(n){return C(C({},n),{},(0,i.Z)({},u,e.target.value))}))},primary:!0,required:l,setContentOnMount:!0,type:a,value:(null===t||void 0===t?void 0:t[u])||""})},u)}))})}),(0,I.jsx)(g.Z,{mt:Z.Mq,children:(0,I.jsx)(O.ZP,{children:"You can also set up your project to only sync with a specified branch."})}),(0,I.jsx)(f.Z,{children:(0,I.jsx)("form",{children:j.map((function(e){var n=e.autoComplete,o=e.disabled,c=e.label,l=e.required,a=e.type,u=e.uuid;return(0,I.jsx)(g.Z,{mt:2,children:(0,I.jsx)(x.Z,{autoComplete:n,disabled:o,label:c,onChange:function(e){r((function(n){return C(C({},n),{},(0,i.Z)({},u,e.target.value))}))},primary:!0,required:l,setContentOnMount:!0,type:a,value:(null===t||void 0===t?void 0:t[u])||""})},u)}))})}),(0,I.jsx)(f.Z,{alignItems:"center",children:(0,I.jsx)(g.Z,{mt:2,children:(0,I.jsx)(d.Z,{checked:null===t||void 0===t?void 0:t.sync_on_pipeline_run,label:"Sync before each trigger run",onClick:function(){r((function(e){return C(C({},e),{},{sync_on_pipeline_run:!(null!==t&&void 0!==t&&t.sync_on_pipeline_run)})}))}})})}),(0,I.jsx)(g.Z,{mt:2,children:(0,I.jsx)(s.Z,{loading:S,onClick:function(){return m({sync:t})},primary:!0,children:"Save repository settings"})}),(0,I.jsx)(g.Z,{mt:Z.HN,children:(0,I.jsxs)(y.J,{lg:6,children:[(0,I.jsx)(p.Z,{children:"Synchronize code from remote repository"}),(0,I.jsx)(g.Z,{mt:1,children:(0,I.jsxs)(O.ZP,{children:["Running the sync from this page will run a one time sync with the remote repository.",(0,I.jsx)("br",{}),"This may ",(0,I.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,I.jsx)(g.Z,{mt:2,children:(0,I.jsx)(s.Z,{loading:E,onClick:function(){return confirm("Are you sure you want to sync code from a remote repository and overwrite the current code base?",(function(){return D({sync:{action_type:"sync_data"}})}))},children:"Synchronize code"})})]})})]})})}N.getInitialProps=(0,r.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 H=(0,m.Z)(N)},37056:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/sync-data",function(){return t(10831)}])}},function(e){e.O(0,[3850,2344,9386,9774,2888,179],(function(){return n=37056,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users-d72dfc596e943cc4.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2287],{60921:function(e,r,n){"use strict";n.r(r);var t=n(77837),u=n(82394),i=n(38860),s=n.n(i),o=n(82684),c=n(34376),a=n(60328),l=n(87372),d=n(41788),f=n(30775),p=n(86673),v=n(58180),O=n(19711),_=n(20582),j=n(82531),w=n(66166),h=n(10503),b=n(49125),m=n(79585),y=n(63153),P=n(9736),g=n(33766),Z=n(7715),x=n(59e3),S=n(28598);function E(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 k(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?E(Object(n),!0).forEach((function(r){(0,u.Z)(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}function D(){var e=(0,c.useRouter)(),r=((0,P.PR)()||{}).id,n=(0,o.useState)(null),t=n[0],u=n[1],i=j.ZP.users.list({},{revalidateOnFocus:!1}),s=i.data,d=i.mutate,E=(0,o.useMemo)((function(){return(null===s||void 0===s?void 0:s.users)||[]}),[s]),D=j.ZP.users.detail(null===t||void 0===t?void 0:t.user_id,{},{revalidateOnFocus:!1}),A=D.data,C=D.mutate,H=null===A||void 0===A?void 0:A.user,N=(0,x.iV)(),R=(0,w.Z)(N);(0,o.useEffect)((function(){var e=N.add_new_user,r=N.user_id;if(!(0,Z.Xy)(N,R)){var n=k(k({},R),N);r?n.user_id=r:delete n.user_id,e?n.add_new_user=e:delete n.add_new_user,u(n)}}),[N,R]);var F=null===t||void 0===t?void 0:t.add_new_user,M=(0,o.useMemo)((function(){return F?(0,S.jsx)(p.Z,{p:b.cd,children:(0,S.jsx)(_.Z,{newUser:!0,onSaveSuccess:function(){(0,g.u7)({add_new_user:null,user_id:null}),d()},title:"Add new user",user:{}})}):H?(0,S.jsx)(p.Z,{p:b.cd,children:(0,S.jsx)(_.Z,{hideFields:[y.s7],onDeleteSuccess:function(){(0,g.u7)({add_new_user:null,user_id:null}),d()},onSaveSuccess:function(){C(),d()},showDelete:!0,title:"Edit user",user:H})}):null}),[C,d,F,H]);return(0,S.jsxs)(f.Z,{after:M,afterHidden:!H&&!F,uuidItemSelected:m.eC,uuidWorkspaceSelected:m.WH,children:[(0,S.jsx)(p.Z,{p:b.cd,children:(0,S.jsx)(a.Z,{beforeIcon:(0,S.jsx)(h.mm,{}),onClick:function(){return(0,g.u7)({add_new_user:1,user_id:null})},primary:!0,children:"Add new user"})}),(0,S.jsx)(p.Z,{p:b.cd,children:(0,S.jsx)(l.Z,{children:"Users"})}),(0,S.jsx)(v.Z,{columnFlex:[1,1,1],columns:[{uuid:"Username"},{uuid:"Email"},{uuid:"Role"}],isSelectedRow:function(e){var r;return(null===(r=E[e])||void 0===r?void 0:r.id)===(null===H||void 0===H?void 0:H.id)},onClickRow:function(n){var t,u=null===(t=E[n])||void 0===t?void 0:t.id;u===r?e.push("/settings/account/profile"):(0,g.u7)({add_new_user:null,user_id:u})},rows:E.map((function(e){var r=e.email,n=e.roles_display,t=e.username;return[(0,S.jsx)(O.ZP,{bold:!0,children:t},"username"),(0,S.jsx)(O.ZP,{default:!0,children:r},"email"),(0,S.jsx)(O.ZP,{default:!0,children:n},"roles")]})),uuid:"pipeline-runs"})]})}D.getInitialProps=(0,t.Z)(s().mark((function e(){return s().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,d.Z)(D)},33766:function(e,r,n){"use strict";n.d(r,{g_:function(){return f},u7:function(){return d}});var t=n(75582),u=n(82394),i=n(34376),s=n.n(i),o=n(59e3),c=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 l(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,u.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}function d(e){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=n.replaceParams,i=n.pushHistory,c=u?{}:(0,o.iV)();r=window.location.pathname;var a=i?s().push:s().replace,d=l(l({},c),e);Object.entries(e).forEach((function(e){var r=(0,t.Z)(e,2),n=r[0],u=r[1];"undefined"!==typeof u&&null!==u||delete d[n]}));var f=(0,o.uM)(d);f.length>=1&&(f="?".concat(f));var p="".concat(r.split("?")[0]).concat(f);return a(s().router.pathname,p,{shallow:!0})}function f(e,r,n){var u=n.addingMultipleValues,i=n.isList,s=n.itemsPerPage,o=n.pushHistory,a=void 0!==o&&o,f=n.resetLimitParams,p=l({},e);u?Object.entries(r).forEach((function(e){var r=(0,t.Z)(e,2),n=r[0],u=r[1];if(Array.isArray(u)){var i="".concat(n,"[]");p[i]=u.map(String)}})):i?Object.entries(r).forEach((function(e){var r=(0,t.Z)(e,2),n=r[0],u=r[1],i=String(u),s="".concat(n,"[]"),o=p[s];o&&Array.isArray(o)?(o=o.map(String)).includes(i)?p[s]=(0,c.Od)(o,(function(e){return e===i})):p[s]=o.concat(i):p[s]=[i]})):p=l(l({},p),r),f&&(p._limit=s||20,p._offset=0),d(p,{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,[3850,2083,2344,9386,6166,8180,5477,9774,2888,179],(function(){return r=48673,e(e.s=r);var r}));var r=e.O();_N_E=r}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1312],{76096:function(e,n,t){"use strict";var r=t(82394),i=t(26304),o=(t(82684),t(33591)),c=t(28598),u=["children","fullHeight","gutter","style"];function a(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 l(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}n.Z=function(e){var n=e.children,t=e.fullHeight,r=e.gutter,a=e.style,s=void 0===a?{}:a,f=(0,i.Z)(e,u),p=l({},s);return r&&(p.paddingLeft=r,p.paddingRight=p.paddingLeft),t&&(p.height="100%"),(0,c.jsx)(o.Col,l(l({},f),{},{style:p,children:n}))}},97361:function(e,n,t){"use strict";var r=t(82394),i=t(26304),o=t(82684),c=t(33591),u=t(28598),a=["children","fullHeight","gutter","style"];function l(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?l(Object(t),!0).forEach((function(n){(0,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}n.Z=function(e){var n=e.children,t=e.fullHeight,r=e.gutter,l=e.style,f=void 0===l?{}:l,p=(0,i.Z)(e,a),d=s({},f);return r&&(d.marginLeft=-1*r,d.marginRight=d.marginLeft),t&&(d.height="100%"),(0,u.jsx)(c.Row,s(s({},p),{},{style:d,children:o.Children.map(n,(function(e,n){return e&&o.cloneElement(e,{gutter:r,key:n})}))}))}},42008:function(e,n,t){"use strict";t.d(n,{J:function(){return o},X:function(){return c}});var r=t(76096),i=t(97361),o=r.Z,c=i.Z},87372:function(e,n,t){"use strict";var r,i,o,c,u,a,l,s,f=t(82394),p=t(26304),d=t(26653),h=t(9518),g=t(33591),y=t(23831),m=t(2005),b=t(31012),j=t(19711),O=t(49125),v=t(86673),w=t(28598),x=["children","condensed","inline","level","marketing","spacingBelow"];function P(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Z(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?P(Object(t),!0).forEach((function(n){(0,f.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):P(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var S=(0,h.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],j.IH,(function(e){return e.color&&"\n color: ".concat(e.color,"\n ")}),(function(e){return e.yellow&&"\n color: ".concat((e.theme.accent||y.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(m.iI,";\n ")}),(function(e){return!e.monospace&&1===Number(e.weightStyle)&&"\n font-family: ".concat(m.LX,";\n ")}),(function(e){return!e.monospace&&2===Number(e.weightStyle)&&"\n font-family: ".concat(m.LX,";\n ")}),(function(e){return!e.monospace&&3===Number(e.weightStyle)&&"\n font-family: ".concat(m.ry,";\n ")}),(function(e){return!e.monospace&&4===Number(e.weightStyle)&&"\n font-family: ".concat(m.YC,";\n ")}),(function(e){return!e.monospace&&5===Number(e.weightStyle)&&"\n font-family: ".concat(m.nF,";\n ")}),(function(e){return!e.monospace&&(6===Number(e.weightStyle)||e.bold)&&"\n font-family: ".concat(m.nF,";\n ")}),(function(e){return!e.monospace&&7===Number(e.weightStyle)&&"\n font-family: ".concat(m.nF,";\n ")}),(function(e){return!e.monospace&&8===Number(e.weightStyle)&&"\n font-family: ".concat(m.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||y.Z.content).active,";\n ")})),_=h.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],S,g.media.md(r||(r=(0,d.Z)(["\n ","\n "])),b.aQ),g.media.lg(i||(i=(0,d.Z)(["\n ","\n "])),b.aQ),g.media.xl(o||(o=(0,d.Z)(["\n ","\n "])),b.aQ)),C=h.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],S,b.MJ),I=h.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],S,g.media.xs(c||(c=(0,d.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*O.iI,7*O.iI),g.media.sm(u||(u=(0,d.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*O.iI,7*O.iI),g.media.md(a||(a=(0,d.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*O.iI,7*O.iI),g.media.lg(l||(l=(0,d.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*O.iI,7*O.iI),g.media.xl(s||(s=(0,d.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*O.iI,7*O.iI)),N=h.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],S,b.BL),z=h.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],S),D=h.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],S),H=h.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],S),E=h.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],S,(function(e){return 1===e.level&&"\n ".concat(b.MJ,"\n ")}),(function(e){return 2===e.level&&"\n ".concat(b.BL,"\n ")}),(function(e){return 3===e.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(e){return 4===e.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),L=function(e){var n,t=e.children,r=e.condensed,i=e.inline,o=e.level,c=e.marketing,u=e.spacingBelow,a=(0,p.Z)(e,x);i?n=E:0===Number(o)?n=_:1===Number(o)?n=c?I:C:2===Number(o)?n=N:3===Number(o)?n=z:4===Number(o)?n=D:5===Number(o)&&(n=H);var l=(0,w.jsxs)(n,Z(Z({},a),{},{level:o,children:[u&&(0,w.jsx)(v.Z,{mb:r?2:3,children:t}),!u&&t]}));return i?l:(0,w.jsx)(k,{children:l})};L.defaultProps={level:3,weightStyle:6},n.Z=L},98176:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return ae}});var r=t(77837),i=t(38860),o=t.n(i),c=t(82394),u=t(57384),a=t(12344),l=t(33591),s=t(86673),f=t(49125),p=t(28598);var d=function(e){var n=e.children,t=e.width,r=void 0===t?12:t;return(0,p.jsx)(s.Z,{px:f.zC,children:(0,p.jsx)(l.Row,{children:(0,p.jsx)(l.Col,{lg:r,md:Math.min(12,Math.round(1.5*(12-r))),sm:Math.min(12,Math.round(1.75*(12-r))),xs:12,children:n})})})},h=t(9518),g=t(3055),y=h.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-jcgu5l-0"})(["padding-top:","px;",""],g.Mz,(function(e){return e.fullHeight&&"\n height: calc(100vh);\n "}));function m(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function b(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?m(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var j=function(e){var n=e.children,t=e.headerProps,r=e.title;return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(u.Z,{title:r}),(0,p.jsx)(a.Z,b({},t)),(0,p.jsx)(d,{children:(0,p.jsx)(y,{fullHeight:!0,children:n})})]})},O=t(26304),v=t(62243),w=t(29385),x=t(80022),P=t(99177),Z=t(93189),S=t(15544),k=t(82684),_=t(56663),C=t.n(_),I=t(35490),N=t(55361),z=t(30332),D=t(9736),H=t(59e3),E=["auth"];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 M(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,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):L(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function R(e){var n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,r=(0,S.Z)(e);if(n){var i=(0,S.Z)(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return(0,Z.Z)(this,t)}}var X=t(75582),B=t(83455),F=t(34376),T=t(67971),V=t(87372),J=t(11135),U=t(19711),Q=t(82944),G=t(82531),q=t(23831),A=t(73942),W=h.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-641xul-0"})(["border-radius:","px;padding-bottom:","px;padding-left:","px;padding-right:","px;padding-top:","px;width:100%;",""],A.TR,21*f.iI,f.Vj,f.Vj,f.Vj,(function(e){return"\n background-color: ".concat((e.theme.background||q.Z.background).panel,";\n ")})),Y=h.default.div.withConfig({displayName:"indexstyle__BackgroundImageStyle",componentId:"sc-641xul-1"})(["border-radius:","px;font-size:0;overflow:hidden;",""],A.D7,(function(e){return e.src&&"\n background-image: url(".concat(e.src,");\n background-size: cover;\n background-repeat: no-repeat;\n height: 100%;\n width: 100%;\n ")})),K=t(42008),$=t(16115),ee=t(96510),ne=t(51504);function te(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 re(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?te(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):te(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ie="email",oe="password";var ce=function(e){var n=e.title,t=(0,F.useRouter)(),r=(0,k.useState)(null),i=r[0],o=r[1],u=(0,k.useState)({}),a=u[0],l=u[1],d=(0,B.Db)(G.ZP.sessions.useCreate(),{onSuccess:function(e){return(0,ee.wD)(e,{callback:function(e){var n=e.session,r=n.token,i=n.user;(0,D.av)(i),I.Z.storeToken(r,(function(){var e="/pipelines";(0,H.iV)(window.location.href).redirect_url&&(e=(0,H.iV)(window.location.href).redirect_url),t.push(e)}))},onErrorCallback:function(e){var n=e.error;o(n)}})}}),h=(0,X.Z)(d,2),g=h[0],y=h[1].isLoading;return(0,p.jsxs)(K.X,{fullHeight:!0,children:[(0,p.jsx)(K.J,{lg:6,md:12,children:(0,p.jsx)(T.Z,{flexDirection:"column",fullHeight:!0,fullWidth:!0,justifyContent:"center",children:(0,p.jsx)(s.Z,{px:{xl:5*f.zC,xs:f.zC},py:f.zC,children:(0,p.jsxs)(W,{children:[(0,p.jsx)(V.Z,{yellow:!0,children:n}),(0,p.jsxs)("form",{children:[(0,p.jsxs)(s.Z,{mt:3,children:[(0,p.jsx)(Q.Z,{autoComplete:"username",label:"Email",large:!0,meta:{error:" ",touched:!!i},onChange:function(e){return l((function(n){return re(re({},n),{},(0,c.Z)({},ie,e.target.value))}))},primary:!i,value:a.email}),(0,p.jsx)(s.Z,{mt:2,children:(0,p.jsx)(Q.Z,{autoComplete:"current-password",label:"Password",large:!0,meta:{error:" ",touched:!!i},onChange:function(e){return l((function(n){return re(re({},n),{},(0,c.Z)({},oe,e.target.value))}))},primary:!i,type:"password",value:a.password})})]}),i&&(0,p.jsx)(s.Z,{mt:2,children:(0,p.jsx)(U.ZP,{danger:!0,children:i.message})}),(0,p.jsx)(s.Z,{mt:3,children:(0,p.jsx)(J.ZP,{bold:!0,inline:!0,keyTextGroups:[[$.Lz]],keyboardShortcutValidation:function(e){var n=e.keyMapping;return(0,ne.y)([$.Uq],n)},large:!0,loading:y,noHoverUnderline:!0,onClick:function(){return g({session:a})},selected:!0,uuid:"SignForm/action",wind:!0,children:"Sign into Mage"})})]})]})})})}),(0,p.jsx)(K.J,{hiddenLgDown:!0,lg:6,style:{flex:1},children:(0,p.jsx)(s.Z,{fullHeight:!0,fullWidth:!0,px:f.zC,py:f.zC+8,children:(0,p.jsx)(Y,{src:"/images/sessions/abstract.png",children:"Sign in abstract image"})})})]})};function ue(){return(0,p.jsx)(j,{title:"Sign in",children:(0,p.jsx)(ce,{title:"\ud83d\udc4b Sign in"})})}ue.getInitialProps=(0,r.Z)(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)})));var ae=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(t){(0,P.Z)(u,t);var i=R(u);function u(){var e;(0,v.Z)(this,u);for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];return e=i.call.apply(i,[this].concat(t)),(0,c.Z)((0,x.Z)(e),"state",{auth:new I.Z(e.props.token)}),e}return(0,w.Z)(u,[{key:"componentDidMount",value:function(){this.setState({auth:new I.Z(this.props.token)})}},{key:"render",value:function(){var n=this.props,t=(n.auth,(0,O.Z)(n,E));return(0,p.jsx)(e,M({auth:this.state.auth},t))}}],[{key:"getInitialProps",value:function(){var t=(0,r.Z)(o().mark((function t(r){var i,c,u,a,l,s,f,p;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=C()(r),c=(0,D.ex)(r),u=c.id,a=i[N.Mv],l=i[z.qt],s=new I.Z(a),f=M(M({},r),{},{auth:s,currentGroupId:u,theme:l}),s.isExpired||(0,H.nL)((null===n||void 0===n?void 0:n.redirectUrl)||"/",r.res),!e.getInitialProps){t.next=12;break}return t.next=10,e.getInitialProps(f);case 10:return p=t.sent,t.abrupt("return",M(M({},p),{},{auth:s,currentGroupId:u,theme:l}));case 12:return t.abrupt("return",f);case 13:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}]),u}(k.Component)}(ue,{redirectUrl:"/"})},51504:function(e,n,t){"use strict";t.d(n,{y:function(){return o}});var r=t(75582),i=t(16115);function o(e,n){var t=e.map((function(e){return String(e)})),o=e.includes(i.PQ),c=e.includes(i.zX),u=e.includes(i.XR),a=i.xU.map((function(e){return String(e)})),l=i.vk.map((function(e){return String(e)})),s=i.Tr.map((function(e){return String(e)})),f=Object.entries(n).find((function(e){var n=(0,r.Z)(e,2),i=n[0];return n[1]&&!t.includes(String(i))&&(!c||!l.includes(String(i)))&&(!o||!a.includes(String(i)))&&(!u||!s.includes(String(i)))}));return e.every((function(e){return n[e]}))&&!f}},6821:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/sign-in",function(){return t(98176)}])}},function(e){e.O(0,[3850,2344,9774,2888,179],(function(){return n=6821,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4841],{1210:function(e,t,r){"use strict";r.d(t,{Z:function(){return k}});var n=r(82394),i=r(21831),o=r(82684),u=r(47999),l=r(49894),s=r(93461),c=r(57384),a=r(12344),f=r(72454),d=r(28598);function h(e,t){var r=e.children;return(0,d.jsx)(f.HS,{ref:t,children:r})}var v=o.forwardRef(h),p=r(32063),b=r(15270),j=r(82531),O=r(66166),w=r(3055),m=r(49125),_=r(91427),x=r(24141);function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Z(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var k=function(e){var t,r=e.after,n=e.afterHidden,h=e.afterWidth,g=e.afterWidthOverride,k=e.before,y=e.beforeWidth,P=e.breadcrumbs,E=e.children,C=e.errors,S=e.headerMenuItems,M=e.navigationItems,A=e.setErrors,D=e.subheaderChildren,N=e.title,W=e.uuid,H=(0,x.i)().width,I="dashboard_after_width_".concat(W),R="dashboard_before_width_".concat(W),T=(0,o.useRef)(null),B=(0,o.useState)(g?h:(0,_.U2)(I,h)),U=B[0],z=B[1],F=(0,o.useState)(!1),X=F[0],q=F[1],K=(0,o.useState)(k?Math.max((0,_.U2)(R,y),13*m.iI):null),L=K[0],Y=K[1],G=(0,o.useState)(!1),J=G[0],Q=G[1],V=(0,o.useState)(null)[1],$=j.ZP.projects.list({},{revalidateOnFocus:!1}).data,ee=null===$||void 0===$?void 0:$.projects,te=[];P?te.push.apply(te,(0,i.Z)(P)):(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 N}}]),(0,o.useEffect)((function(){null===T||void 0===T||!T.current||X||J||null===V||void 0===V||V(T.current.getBoundingClientRect().width)}),[X,U,J,L,T,V,H]),(0,o.useEffect)((function(){X||(0,_.t8)(I,U)}),[n,X,U,I]),(0,o.useEffect)((function(){J||(0,_.t8)(R,L)}),[J,L,R]);var re=(0,O.Z)(h);return(0,o.useEffect)((function(){g&&re!==h&&z(h)}),[g,h,re]),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(c.Z,{title:N}),(0,d.jsx)(a.Z,{breadcrumbs:te,menuItems:S,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)(f.Nk,{children:[0!==(null===M||void 0===M?void 0:M.length)&&(0,d.jsx)(f.lm,{children:(0,d.jsx)(b.Z,{navigationItems:M})}),(0,d.jsx)(s.Z,{flex:1,flexDirection:"column",children:(0,d.jsxs)(p.Z,{after:r,afterHeightOffset:w.Mz,afterHidden:n,afterMousedownActive:X,afterWidth:U,before:k,beforeHeightOffset:w.Mz,beforeMousedownActive:J,beforeWidth:f.k1+(k?L:0),hideAfterCompletely:!0,leftOffset:k?f.k1:null,mainContainerRef:T,setAfterMousedownActive:q,setAfterWidth:z,setBeforeMousedownActive:Q,setBeforeWidth:Y,children:[D&&(0,d.jsx)(v,{children:D}),E]})})]}),C&&(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)(l.Z,Z(Z({},C),{},{onClose:function(){return null===A||void 0===A?void 0:A(null)}}))})]})}},72433:function(e,t,r){"use strict";r.r(t);var n=r(77837),i=r(75582),o=r(38860),u=r.n(o),l=r(82684),s=r(83455),c=r(1210),a=r(41788),f=r(33699),d=r(82531),h=r(98781),v=r(96510),p=r(28598);function b(){var e=(0,s.Db)(d.ZP.kernels.useUpdate(h.a_[h.qL.PYTHON]),{onSuccess:function(e){return(0,v.wD)(e,{onErrorCallback:function(e,t){console.log(e),alert(t)}})}}),t=(0,i.Z)(e,1)[0],r=(0,l.useCallback)((function(){return t({kernel:{action_type:"interrupt"}})}),[t]);return(0,p.jsx)(c.Z,{title:"Terminal",uuid:"terminal/index",children:(0,p.jsx)(f.Z,{interruptKernel:r})})}b.getInitialProps=(0,n.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)}))),t.default=(0,a.Z)(b)},27271:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/terminal",function(){return r(72433)}])}},function(e){e.O(0,[3850,9565,6085,2344,9386,5141,9774,2888,179],(function(){return t=27271,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
|