mage-ai 0.8.80__py3-none-any.whl → 0.8.82__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of mage-ai might be problematic. Click here for more details.
- mage_ai/api/presenters/SyncPresenter.py +1 -0
- mage_ai/api/resources/GitBranchResource.py +1 -1
- mage_ai/api/resources/SyncResource.py +83 -41
- mage_ai/data_preparation/executors/block_executor.py +9 -0
- mage_ai/data_preparation/models/block/__init__.py +40 -3
- mage_ai/data_preparation/models/pipelines/integration_pipeline.py +21 -9
- mage_ai/data_preparation/models/utils.py +5 -3
- mage_ai/data_preparation/models/variable.py +59 -26
- mage_ai/data_preparation/preferences.py +24 -16
- mage_ai/data_preparation/sync/__init__.py +23 -4
- mage_ai/data_preparation/sync/git_sync.py +7 -0
- mage_ai/data_preparation/templates/callbacks/base.jinja +2 -2
- mage_ai/data_preparation/templates/callbacks/orchestration/triggers/default.jinja +1 -1
- mage_ai/data_preparation/templates/repo/.gitignore +13 -0
- mage_ai/orchestration/db/models/oauth.py +16 -7
- mage_ai/orchestration/pipeline_scheduler.py +17 -1
- mage_ai/server/constants.py +1 -1
- mage_ai/server/frontend_dist/404.html +2 -2
- mage_ai/server/frontend_dist/404.html.html +2 -2
- mage_ai/server/frontend_dist/_next/static/QB08hs4sID1RqTCyVc19P/_buildManifest.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/1005-2ad5a1b201c2e742.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{1424-fbc7f741303c0aa0.js → 1424-c6b0d89ffb4a10b9.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3077-5a56c22fbc5626c8.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/3714-d472531256ed5cf5.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/547-f3f2ccd9dcde9459.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/7400-e5e39ae07de554b2.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{8180-325d712ecbed97ce.js → 8180-0c53312021451bb7.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/8735-1a3d39946add4aea.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/894-6290def8665695eb.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/8957-6d3f5778166f4294.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/9270-e35a5eb3dae4c3ca.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{_app-b25383366d854e8e.js → _app-13fb8342c87983a1.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/files-8b81ef90680f3f72.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-9e96b956c26fbc92.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipeline-runs-3260a2dac8df672e.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/{[...slug]-9e519ad50f639e00.js → [...slug]-a4fbf12642923051.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-fe65c89f1e86b4b8.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/{block-runs-302e1bd9fbf39994.js → block-runs-5c02b08404dbdd20.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-25a125d43569c70d.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{monitors-5244d6c5d80af010.js → monitors-092f364100995ba6.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/{[run]-90170de1e6fe8f04.js → [run]-50e60f6b49eed3f0.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{runs-88994d0bcf41cf9e.js → runs-ed9903520a27f4c8.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-55748e7fcf738d91.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/{[...slug]-456d84426ffe5025.js → [...slug]-1725c0871027ae05.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{triggers-05f43f9eaf6528db.js → triggers-0d2c9f28ae21cde8.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-2f4b987a8dba3484.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/account/profile-3ca183fdcb571bde.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-3b26db0dd0962783.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/sync-data-bd5e22e49c1f7bc2.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users-85073f9cc09fabf7.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-0d2260ad08dfe44a.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-d74d0f163157ba65.js +1 -0
- mage_ai/server/frontend_dist/files.html +25 -0
- mage_ai/server/frontend_dist/index.html +2 -2
- mage_ai/server/frontend_dist/manage.html +5 -5
- mage_ai/server/frontend_dist/pipeline-runs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/settings.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline].html +2 -2
- mage_ai/server/frontend_dist/pipelines.html +5 -5
- mage_ai/server/frontend_dist/settings/account/profile.html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/preferences.html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/sync-data.html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/users.html +5 -5
- mage_ai/server/frontend_dist/settings.html +2 -2
- mage_ai/server/frontend_dist/sign-in.html +14 -14
- mage_ai/server/frontend_dist/terminal.html +5 -5
- mage_ai/server/frontend_dist/test.html +3 -3
- mage_ai/server/frontend_dist/triggers.html +5 -5
- mage_ai/tests/api/operations/test_syncs.py +97 -0
- mage_ai/tests/data_preparation/models/test_block.py +20 -14
- mage_ai/tests/orchestration/test_pipeline_scheduler.py +23 -2
- {mage_ai-0.8.80.dist-info → mage_ai-0.8.82.dist-info}/METADATA +2 -1
- {mage_ai-0.8.80.dist-info → mage_ai-0.8.82.dist-info}/RECORD +91 -85
- mage_ai/server/frontend_dist/_next/static/K62oaHK5x3k16vVxdvIWf/_buildManifest.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1005-38fa861ca54679db.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3077-187a4db6073d95df.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/547-833b70469e82cb2b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5540-1025c6b3e65558b3.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/6567-2488118bb39a9d99.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/8957-6edafc5a2521efdf.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/9129-8ae88897c3817909.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-eba67ac0edfdea1b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipeline-runs-128dd171c6fff7ac.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-d90d32812b2be89e.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-7635e7031335de0f.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-3c42f05001416811.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-c73dab1d63317556.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/account/profile-f5626eb662337ad5.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-292e840e9386335e.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/sync-data-353dc1ef2fadf70b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users-cd838435ed1b8383.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-d15ea617ef145b32.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-df30a0006fd775b8.js +0 -1
- /mage_ai/server/frontend_dist/_next/static/{K62oaHK5x3k16vVxdvIWf → QB08hs4sID1RqTCyVc19P}/_middlewareManifest.js +0 -0
- /mage_ai/server/frontend_dist/_next/static/{K62oaHK5x3k16vVxdvIWf → QB08hs4sID1RqTCyVc19P}/_ssgManifest.js +0 -0
- {mage_ai-0.8.80.dist-info → mage_ai-0.8.82.dist-info}/LICENSE +0 -0
- {mage_ai-0.8.80.dist-info → mage_ai-0.8.82.dist-info}/WHEEL +0 -0
- {mage_ai-0.8.80.dist-info → mage_ai-0.8.82.dist-info}/entry_points.txt +0 -0
- {mage_ai-0.8.80.dist-info → mage_ai-0.8.82.dist-info}/top_level.txt +0 -0
|
@@ -1 +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=g(e);if(n){var i=g(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return m(this,t)}}function m(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 v(e)}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(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 x=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(v(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=x,j(x,"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()}}},70543:function(e,n,t){"use strict";t.d(n,{IY:function(){return o},Jf:function(){return i},NR:function(){return l},b7:function(){return r}});var r="edit",i={uuid:"All files"},o={uuid:"Files in pipeline"},l=[i,o]},2850:function(e,n,t){"use strict";t.d(n,{M:function(){return l},W:function(){return o}});var r=t(9518),i=t(3055),o=34*t(49125).iI,l=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);"],i.Mz)},56681:function(e,n,t){"use strict";t.d(n,{G7:function(){return Z},ZP:function(){return O},u$:function(){return x}});var r=t(75582),i=t(82394),o=t(26304),l=t(32316),c=t(22673),s=t(48957),u=t(86673),a=t(19711),d=t(58180),p=t(49125),f=t(19395),h=t(7715),m=t(28598),v=["height","heightOffset","pipeline","selectedRun","selectedTab","setSelectedTab"];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 j(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 x=76,b={uuid:"Run details"},y={uuid:"Dependency tree"},Z=[y,b];function O(e){var n=e.height,t=e.heightOffset,i=e.pipeline,g=e.selectedRun,O=e.selectedTab,_=e.setSelectedTab,P=j({},(0,o.Z)(e,v));g?P.blockStatus=(0,f.IJ)(null===g||void 0===g?void 0:g.block_runs):P.noStatus=!0;var w=(0,h.Kn)(null===g||void 0===g?void 0:g.variables)?j({},null===g||void 0===g?void 0:g.variables):(null===g||void 0===g?void 0:g.variables)||{},S=null===g||void 0===g?void 0:g.event_variables;if(S&&(0,h.Kn)(S)&&!(0,h.Qr)(S))if((0,h.Kn)(w)&&w.hasOwnProperty("event")){var C=(0,h.Kn)(w.event)?w.event:{};w.event=j(j({},C),S)}else w.event=j({},S);var I=[];w&&JSON.stringify(w,null,2).split("\n").forEach((function(e){I.push(" ".concat(e))}));var k=g&&[["Run ID",null===g||void 0===g?void 0:g.id],["Variables",(0,m.jsx)(c.Z,{language:"json",small:!0,source:I.join("\n")},"variable_value")]],E=g&&(0,m.jsx)(u.Z,{pb:p.cd,px:p.cd,children:(0,m.jsx)(d.Z,{alignTop:!0,columnFlex:[null,1],columnMaxWidth:function(e){return 1===e?"100px":null},rows:k.map((function(e,n){var t=(0,r.Z)(e,2),i=t[0],o=t[1];return[(0,m.jsx)(a.ZP,{monospace:!0,muted:!0,children:i},"key_".concat(n)),(0,m.jsx)(a.ZP,{monospace:!0,textOverflow:!0,children:o},"val_".concat(n))]})),uuid:"LogDetail"})}),D=O&&_;return(0,m.jsxs)(m.Fragment,{children:[D&&(0,m.jsx)(u.Z,{py:p.cd,children:(0,m.jsx)(l.Z,{onClickTab:_,selectedTabUUID:null===O||void 0===O?void 0:O.uuid,tabs:Z})}),(!D||y.uuid===(null===O||void 0===O?void 0:O.uuid))&&(0,m.jsx)(s.Z,j(j({},P),{},{height:n,heightOffset:(t||0)+(D?x:0),pipeline:i})),b.uuid===(null===O||void 0===O?void 0:O.uuid)&&E]})}},58122:function(e,n,t){"use strict";t.d(n,{CL:function(){return f},FS:function(){return h},JZ:function(){return v},e7:function(){return g},v0:function(){return p},wx:function(){return m}});var r=t(75582),i=t(82394),o=t(43313),l=t(93348),c=t(1286),s=t(90211),u=t(84779);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 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],l=i,c=!1,s=[2,3],a=o.Ub[e],d=o.oH[e],p=o.OD[e];if(o.y_.includes(e))c=!0,s=[2,1,2];else if(e in o.Sq){i=(0,u.Jw)(i,0);var f=o.Sq[e];l=n[f]}var h={columnFlexNumbers:s,name:t,progress:c,rate:l,successDirection:d,warning:p};o.y_.includes(e)||(h.value=i),r[a]=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 l=Object.values(t),u=l.length,a=[];a.push({name:"Column count",successDirection:o.oH.column_count,value:(0,s.x6)(u)}),i.forEach((function(e){if(o.Zu.includes(e)){var n=o.CC[e],t=r[e],i=o.OD[e];a.push({name:n,successDirection:o.oH[e],value:(0,s.x6)(t),warning:i})}}));var d=(0,c.QO)(l),p=d.countCategory,f=d.countDatetime,h=d.countNumerical;return a.push({name:"Categorical Features",rate:p/u,value:(0,s.x6)(p)},{name:"Numerical Features",rate:h/u,value:(0,s.x6)(h)},{name:"Datetime Features",rate:f/u,value:(0,s.x6)(f)}),a}function h(e){return"string"===typeof e?e:JSON.stringify(e)}function m(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 v(e,n){return n===l.Xm.TIME?e.push({uuid:"execution_date",value:"<run datetime>"}):n===l.Xm.EVENT&&e.push({uuid:"event",value:"<trigger event>"}),e}function g(e){return e?Object.entries(e).reduce((function(e,n){var t=(0,r.Z)(n,2),o=t[0],l=t[1],c=l;try{c=JSON.parse(l)}catch(s){}return d(d({},e),{},(0,i.Z)({},o,c))}),{}):e}},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 ")}))},52769:function(e,n,t){"use strict";t.d(n,{C:function(){return r}});var r="global"},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,m=e.topPosition;return(0,p.jsxs)(u.J,{absolute:!0,topPosition:m,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))}))})]})]})}},22673:function(e,n,t){"use strict";var r=t(82684),i=t(68792),o=t(31811),l=t(9518),c=t(65292),s=t(23831),u=t(2005),a=t(49125),d=t(28598);n.Z=function(e){var n=e.language,t=e.maxWidth,p=e.showLineNumbers,f=e.small,h=e.source,m=e.wrapLines,v=(0,r.useContext)(l.ThemeContext);function g(e){var r=e.value;return(0,d.jsx)(o.Z,{customStyle:{backgroundColor:(v.background||s.Z.background).popup,border:"none",borderRadius:"none",boxShadow:"none",fontFamily:u.Vp,fontSize:f?12:14,marginBottom:0,marginTop:0,maxWidth:t,paddingBottom:2*a.iI,paddingTop:2*a.iI},language:n,lineNumberStyle:{color:(v.content||s.Z.content).muted},showLineNumbers:p,style:c._4,useInlineStyles:!0,wrapLines:m,children:r})}return(0,d.jsx)(i.D,{components:{code:function(e){var n=e.children;return(0,d.jsx)(g,{value:n})}},children:h})}},65730:function(e,n,t){"use strict";var r,i=t(82394),o=(t(82684),t(64866)),l=t(21764),c=t(67971),s=t(10919),u=t(86673),a=t(19711),d=t(46261),p=t(10503),f=t(49125),h=t(28598);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}!function(e){e.LEFT="left",e.RIGHT="right"}(r||(r={})),n.Z=function(e){var n,t=e.children,i=e.copiedText,m=e.iconPosition,g=void 0===m?r.LEFT:m,j=e.inverted,x=e.linkProps,b=e.linkText,y=e.monospace,Z=e.muted,O=e.small,_=e.toastMessage,P=e.withCopyIcon;return t?n=(0,h.jsx)("span",{children:t}):P&&(n=(0,h.jsx)(s.Z,v(v({href:"#",inline:!0,muted:Z,preventDefault:!0,sameColorAsText:!0,small:O},x),{},{children:(0,h.jsxs)(c.Z,{alignItems:"center",children:[g===r.LEFT&&(0,h.jsx)(u.Z,{mr:b?1:0,children:(0,h.jsx)(c.Z,{alignItems:"center",children:(0,h.jsx)(p.CK,{inverted:j,muted:Z,size:2*f.iI})})}),b&&(0,h.jsx)(a.ZP,{inverted:j,monospace:y,muted:Z,small:O,children:b}),g===r.RIGHT&&(0,h.jsx)(u.Z,{ml:b?1:0,children:(0,h.jsx)(c.Z,{alignItems:"center",children:(0,h.jsx)(p.CK,{inverted:j,muted:Z})})})]})}))),(0,h.jsx)(d.Z,{block:!0,label:"Copy",size:null,widthFitContent:!0,children:(0,h.jsx)(o.CopyToClipboard,{onCopy:function(){return l.Am.success(_||"Successfully copied to clipboard.",{position:l.Am.POSITION.BOTTOM_RIGHT,toastId:i})},text:i,children:n})})}},32316:function(e,n,t){"use strict";t.d(n,{Z:function(){return v}});var r=t(82684),i=t(60328),o=t(67971),l=t(882),c=t(86673),s=t(19711),u=t(99994),a=t(9518),d=t(49125),p=t(37391),f=a.default.div.withConfig({displayName:"indexstyle__TabsContainerStyle",componentId:"sc-segf7l-0"})(["padding-left:","px;padding-right:","px;"," "," ",""],d.cd*d.iI,d.cd*d.iI,(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.allowScroll&&"\n overflow: auto;\n "}),p.w5),h=t(66653),m=t(28598);var v=function(e){var n=e.allowScroll,t=e.contained,a=e.noPadding,p=e.onClickTab,v=e.selectedTabUUID,g=e.small,j=e.tabs,x=(0,r.useMemo)((function(){var e=j.length,n=[];return j.forEach((function(t,r){var a=t.Icon,f=t.IconSelected,j=t.label,x=t.uuid,b=x===v,y=b&&f||a,Z=j?j():x,O=(0,m.jsxs)(o.Z,{alignItems:"center",children:[y&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(y,{default:!b,size:2*d.iI}),(0,m.jsx)(c.Z,{mr:1})]}),(0,m.jsx)(s.ZP,{bold:!0,default:!b,noWrapping:!0,small:!0,children:Z})]});r>=1&&e>=2&&n.push((0,m.jsx)("div",{style:{marginLeft:1.5*d.iI}},"spacing-".concat(x))),b?n.push((0,m.jsx)(l.Z,{backgroundGradient:u.yr,backgroundPanel:!0,borderLess:!0,borderWidth:2,compact:g,onClick:function(e){(0,h.j)(e),p(t)},paddingUnitsHorizontal:2,paddingUnitsVertical:1.25,small:g,children:O},x)):n.push((0,m.jsx)("div",{style:{padding:2},children:(0,m.jsx)(i.Z,{borderLess:!0,compact:g,default:!0,onClick:function(e){(0,h.j)(e),p(t)},outline:!0,small:g,children:O})},"button-tab-".concat(x)))})),n}),[p,v,g,j]),b=(0,m.jsx)(o.Z,{alignItems:"center",children:x});return t?b:(0,m.jsx)(f,{allowScroll:n,noPadding:a,children:b})}},70422:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return Re}});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),m=t(87372),v=t(51099),g=t(60547),j=t(97496),x=t(47409),b=t(93348),y=t(52769),Z=t(55378),O=t(86673),_=t(58180),P=t(19711),w=t(46261),S=t(82531),C=t(56681),I=t(2850),k=t(86422),E=t(10503),D=t(49125),T=t(59920),N=t(24224);!function(e){e.AWS="aws_event"}(r||(r={}));var M=[{label:function(){return"AWS"},uuid:r.AWS}],A=(0,N.HK)(M,(function(e){return e.uuid})),R=t(66050),F=t(58122),U=t(19395),H=t(25958),z=t(33766),L=t(7715),q=t(9736),V=t(96510),W=t(66653),X=t(59e3),J=t(28598);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 K(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,l.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=function(e){var n=e.errors,t=e.fetchPipelineSchedule,r=e.pipeline,o=e.pipelineSchedule,l=e.setErrors,c=e.variables,s=(0,d.useRouter)(),N=(0,q.Ct)(),M=(r||{}).uuid,B=o||{},G=B.id,Y=B.event_matchers,Q=B.name,$=B.schedule_interval,ee=B.schedule_type,ne=B.settings,te=B.sla,re=B.start_time,ie=B.status,oe=B.variables,le=void 0===oe?{}:oe,ce=(0,X.iV)(),se={_limit:30,_offset:30*(null!==ce&&void 0!==ce&&ce.page?ce.page:0)};null!==ce&&void 0!==ce&&ce.status&&(se.status=ce.status);var ue=S.ZP.pipeline_runs.pipeline_schedules.list(G,se,{refreshInterval:3e3,revalidateOnFocus:!0}),ae=ue.data,de=ue.mutate,pe=(0,u.useMemo)((function(){return(null===ae||void 0===ae?void 0:ae.pipeline_runs)||[]}),[ae]),fe=(0,u.useMemo)((function(){var e;return(null===ae||void 0===ae||null===(e=ae.metadata)||void 0===e?void 0:e.count)||[]}),[ae]),he=(0,u.useState)(null),me=he[0],ve=he[1],ge=(0,u.useMemo)((function(){var e=null!==ce&&void 0!==ce&&ce.page?ce.page:0;return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(j.Z,{fetchPipelineRuns:de,onClickRow:function(e){return ve((function(n){var t=pe[e];return(null===n||void 0===n?void 0:n.id)!==t.id?t:null}))},pipelineRuns:pe,selectedRun:me,setErrors:l}),(0,J.jsx)(O.Z,{p:2,children:(0,J.jsx)(v.Z,{maxPages:9,onUpdate:function(e){var n=Number(e),t=K(K({},ce),{},{page:n>=0?n:0});s.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(M,"/triggers/").concat(G,"?").concat((0,X.uM)(t)))},page:Number(e),totalPages:Math.ceil(fe/30)})})]})}),[de,r,pe,me]),je=(0,u.useState)(C.G7[0]),xe=je[0],be=je[1],ye=(0,a.Db)((function(e){return S.ZP.pipeline_schedules.useUpdate(e.id)({pipeline_schedule:(0,L.gR)(e,["id"])})}),{onSuccess:function(e){return(0,V.wD)(e,{callback:function(){t()},onErrorCallback:function(e,n){return l({errors:n,response:e})}})}}),Ze=(0,i.Z)(ye,2),Oe=Ze[0],_e=Ze[1].isLoading,Pe=(0,u.useMemo)((function(){return b.fq.ACTIVE===ie}),[ie]),we=(0,u.useMemo)((function(){var e,n,t={default:!0,size:1.5*D.iI},r=[[(0,J.jsxs)(h.Z,{alignItems:"center",children:[(0,J.jsx)(E.VW,K({},t)),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(P.ZP,{default:!0,children:"Trigger type"})]},"trigger_type_label"),(0,J.jsx)(P.ZP,{monospace:!0,children:null===(e=b.Z4[ee])||void 0===e?void 0:e.call(b.Z4)},"trigger_type")],[(0,J.jsxs)(h.Z,{alignItems:"center",children:[(0,J.jsx)(E.rs,K({},t)),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(P.ZP,{default:!0,children:"Status"})]},"trigger_status_label"),(0,J.jsx)(P.ZP,{danger:!Pe,monospace:!0,success:Pe,children:ie},"trigger_status")]];if(te){var i=(0,U.gU)(te),o=i.time,l=i.unit,c=1===o?l:"".concat(l,"s");r.push([(0,J.jsxs)(h.Z,{alignItems:"center",children:[(0,J.jsx)(E.kI,K({},t)),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(P.ZP,{default:!0,children:"SLA"})]},"trigger_sla_label"),(0,J.jsx)(P.ZP,{monospace:!0,children:"".concat(o," ").concat(c)},"trigger_sla")])}($&&r.push([(0,J.jsxs)(h.Z,{alignItems:"center",children:[(0,J.jsx)(E.Pf,K({},t)),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(P.ZP,{default:!0,children:"Frequency"})]},"trigger_frequency_label"),(0,J.jsx)(P.ZP,{monospace:!0,children:$.replace("@","")},"trigger_frequency")]),re&&r.push([(0,J.jsxs)(h.Z,{alignItems:"center",children:[(0,J.jsx)(E.aw,K({},t)),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(P.ZP,{default:!0,children:"Start date"})]},"trigger_start_date_label"),(0,J.jsx)(P.ZP,{monospace:!0,children:re},"trigger_start_date")]),null!==ne&&void 0!==ne&&ne.skip_if_previous_running)&&r.push([(0,J.jsxs)(h.Z,{alignItems:"center",children:[(0,J.jsx)(w.Z,{default:!0,label:"Skip current run if any previous runs are still in progress",size:1.5*D.iI,widthFitContent:!0}),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(P.ZP,{default:!0,children:"Skip if running"})]},"trigger_skip_if_running"),(0,J.jsx)(P.ZP,{monospace:!0,children:null===(n=ne.skip_if_previous_running)||void 0===n?void 0:n.toString()},"trigger_skip_if_running_label")]);return null!==ne&&void 0!==ne&&ne.allow_blocks_to_fail&&r.push([(0,J.jsxs)(h.Z,{alignItems:"center",children:[(0,J.jsx)(w.Z,{default:!0,label:"Trigger runs will continue running blocks if other unrelated blocks fail",size:1.5*D.iI,widthFitContent:!0}),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(P.ZP,{default:!0,children:"Allow blocks to fail"})]},"trigger_allow_blocks_to_fail"),(0,J.jsx)(P.ZP,{monospace:!0,children:ne.allow_blocks_to_fail.toString()},"trigger_allow_blocks_to_fail_label")]),(0,J.jsx)(_.Z,{columnFlex:[null,1],rows:r})}),[Pe,$,ee,ne,te,re,ie]),Se=(0,u.useMemo)((function(){return le||{}}),[le]),Ce=(0,u.useMemo)((function(){var e,n=[];return(0,L.Qr)(Se)?n=(0,F.wx)(c,(function(e){return e.uuid===y.C})):Object.entries(Se).forEach((function(e){var t=(0,i.Z)(e,2),r=t[0],o=t[1];x.sZ!==r&&n.push({uuid:r,value:(0,F.FS)(o)})})),"undefined"!==typeof(n=(0,F.JZ)(n||[],ee))&&null!==(e=n)&&void 0!==e&&e.length?(0,J.jsx)(_.Z,{columnFlex:[null,1],rows:n.map((function(e){var n=e.uuid,t=e.value;return[(0,J.jsx)(P.ZP,{default:!0,monospace:!0,small:!0,children:n},"settings_variable_label_".concat(n)),(0,J.jsx)(P.ZP,{monospace:!0,small:!0,children:t},"settings_variable_".concat(n))]}))}):null}),[ee,Se,c]),Ie=(0,u.useMemo)((function(){var e,n,t=[],i=null===Se||void 0===Se||null===(e=Se[x.sZ])||void 0===e?void 0:e.blocks;return null===r||void 0===r||null===(n=r.blocks)||void 0===n||n.forEach((function(e){var n=e.type,r=e.uuid;if(k.tf.DBT===n){var o,l=(null===i||void 0===i||null===(o=i[r])||void 0===o?void 0:o.configuration)||{},c=l.flags,s=l.prefix,u=l.suffix,a=(0,H.IU)(e).name;(c||s||u)&&t.push({flags:c,prefix:s,suffix:u,uuid:a})}})),"undefined"!==typeof t&&null!==t&&void 0!==t&&t.length?(0,J.jsx)(_.Z,{columnFlex:[1,null],rows:t.map((function(e){var n=e.flags,t=e.prefix,r=e.suffix,i=e.uuid;return[(0,J.jsxs)(P.ZP,{monospace:!0,small:!0,children:[t&&(0,J.jsx)(P.ZP,{inline:!0,monospace:!0,muted:!0,small:!0,children:t}),i,r&&(0,J.jsx)(P.ZP,{inline:!0,monospace:!0,muted:!0,small:!0,children:r})]},"settings_variable_label_".concat(i)),(0,J.jsx)(P.ZP,{monospace:!0,muted:!0,small:!0,children:n&&n.join(", ")},"settings_variable_".concat(i))]}))}):null}),[r,Se]),ke=(0,u.useMemo)((function(){return(0,J.jsx)(_.Z,{columnFlex:[null,1],columns:[{uuid:"Provider"},{uuid:"Event"}],rows:null===Y||void 0===Y?void 0:Y.map((function(e,n){var t=e.event_type,r=e.name;return[(0,J.jsx)(P.ZP,{default:!0,monospace:!0,children:A[t].label()},"".concat(t,"_").concat(n,"_label")),(0,J.jsx)(P.ZP,{monospace:!0,children:r},"".concat(t,"_").concat(n,"_name"))]}))})}),[Y]);return(0,J.jsxs)(g.Z,{afterHidden:!me,before:(0,J.jsxs)(I.M,{children:[(0,J.jsxs)(O.Z,{mb:D.HN,pt:D.cd,px:D.cd,children:[(0,J.jsxs)(O.Z,{mb:D.cd,children:[b.Xm.TIME===ee&&(0,J.jsx)(E.kO,{size:5*D.iI}),b.Xm.EVENT===ee&&(0,J.jsx)(E.Jp,{size:5*D.iI}),b.Xm.API===ee&&(0,J.jsx)(E.Bf,{size:5*D.iI}),!ee&&(0,J.jsx)(E.VW,{size:5*D.iI})]}),(0,J.jsx)(m.Z,{children:Q})]}),(0,J.jsx)(O.Z,{px:D.cd,children:(0,J.jsx)(m.Z,{level:5,children:"Settings"})}),(0,J.jsx)(f.Z,{light:!0,mt:1,short:!0}),we,(null===Y||void 0===Y?void 0:Y.length)>=1&&(0,J.jsxs)(O.Z,{my:D.HN,children:[(0,J.jsx)(O.Z,{px:D.cd,children:(0,J.jsx)(m.Z,{level:5,children:"Events"})}),(0,J.jsx)(f.Z,{light:!0,mt:1,short:!0}),ke]}),Ce&&(0,J.jsxs)(O.Z,{my:D.HN,children:[(0,J.jsx)(O.Z,{px:D.cd,children:(0,J.jsx)(m.Z,{level:5,children:"Runtime variables"})}),(0,J.jsx)(f.Z,{light:!0,mt:1,short:!0}),Ce]}),Ie&&(0,J.jsxs)(O.Z,{my:D.HN,children:[(0,J.jsx)(O.Z,{px:D.cd,children:(0,J.jsx)(m.Z,{level:5,children:"dbt runtime settings"})}),(0,J.jsx)(f.Z,{light:!0,mt:1,short:!0}),Ie]})]}),beforeWidth:I.W,breadcrumbs:[{label:function(){return"Triggers"},linkProps:{as:"/pipelines/".concat(M,"/triggers"),href:"/pipelines/[pipeline]/triggers"}},{label:function(){return Q},linkProps:{as:"/pipelines/".concat(M,"/triggers/").concat(G),href:"/pipelines/[pipeline]/triggers/[...slug]"}}],buildSidekick:function(e){return(0,C.ZP)(K(K({},e),{},{selectedRun:me,selectedTab:xe,setSelectedTab:be}))},errors:n,pageName:T.M.TRIGGERS,pipeline:r,setErrors:l,subheader:(0,J.jsxs)(h.Z,{alignItems:"center",children:[(0,J.jsx)(p.Z,{beforeIcon:Pe?(0,J.jsx)(E.dz,{size:2*D.iI}):(0,J.jsx)(E.Py,{inverted:!N,size:2*D.iI}),danger:Pe&&!N,loading:_e,onClick:function(e){(0,W.j)(e),Oe({id:G,status:Pe?b.fq.INACTIVE:b.fq.ACTIVE})},outline:!0,success:!Pe&&!N,children:Pe?"Pause trigger":"Start trigger"}),(0,J.jsx)(O.Z,{mr:D.cd}),!N&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(p.Z,{linkProps:{as:"/pipelines/".concat(M,"/triggers/").concat(G,"/edit"),href:"/pipelines/[pipeline]/triggers/[...slug]"},noHoverUnderline:!0,outline:!0,sameColorAsText:!0,children:"Edit trigger"}),(0,J.jsx)(O.Z,{mr:D.cd})]}),(0,J.jsxs)(Z.Z,{compact:!0,defaultColor:!0,onChange:function(e){e.preventDefault(),"all"===e.target.value?s.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(M,"/triggers/").concat(G)):(0,z.u7)({page:0,status:e.target.value})},paddingRight:4*D.iI,placeholder:"Select run status",value:(null===ce||void 0===ce?void 0:ce.status)||"all",children:[(0,J.jsx)("option",{value:"all",children:"All statuses"},"all_statuses"),Object.values(R.V).map((function(e){return(0,J.jsx)("option",{value:e,children:x.Do[e]},e)}))]})]}),title:function(){return Q},uuid:"triggers/detail",children:[(0,J.jsx)(O.Z,{mt:D.cd,px:D.cd,children:(0,J.jsx)(m.Z,{level:5,children:"Runs for this trigger"})}),(0,J.jsx)(f.Z,{light:!0,mt:D.cd,short:!0}),ge]})},Y=t(21831),Q=t(21764),$=t(2713),ee=t(38341),ne=t(47999),te=t(22673),re=t(65730),ie=t(9518),oe=t(16634),le=t(82944),ce=t(44162);function se(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 ue(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?se(Object(t),!0).forEach((function(n){(0,l.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):se(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ae=function(e){var n=e.blocks,t=e.updateVariables,r=e.variables,i=(0,u.useContext)(ie.ThemeContext),o=(0,u.useCallback)((function(e,n){return t((function(){var t=(null===r||void 0===r?void 0:r.__mage_variables)||{},i=(null===t||void 0===t?void 0:t.blocks)||{},o=i[e]||{},c=(null===o||void 0===o?void 0:o.configuration)||{};return ue(ue({},r),{},{__mage_variables:ue(ue({},t),{},{blocks:ue(ue({},i),{},(0,l.Z)({},e,ue(ue({},o),{},{configuration:ue(ue({},c),n)})))})})}))}),[t,r]);return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(m.Z,{children:"dbt runtime settings"}),(0,J.jsx)(O.Z,{mt:D.Mq,children:(0,J.jsx)(_.Z,{columnFlex:[1,null,null,null],columns:[{uuid:"Block"},{uuid:"Flags"},{uuid:"Prefix"},{uuid:"Suffix"}],compact:!0,rows:null===n||void 0===n?void 0:n.map((function(e){var n,t,l,c=e.type,s=e.uuid,u=(0,H.IU)(e).name,a=(0,ce.qn)(c,{blockColor:e.color,theme:i}).accent,d=null===r||void 0===r||null===(n=r.__mage_variables)||void 0===n||null===(t=n.blocks)||void 0===t||null===(l=t[s])||void 0===l?void 0:l.configuration,p=d||{},f=p.prefix,m=p.suffix,v=(null===d||void 0===d?void 0:d.flags)||[],g=!(null===v||void 0===v||!v.includes(H.Dy));return[(0,J.jsx)(w.Z,{block:!0,label:(0,J.jsx)(P.ZP,{monospace:!0,small:!0,children:s}),size:null,widthFitContent:!0,children:(0,J.jsxs)(h.Z,{alignItems:"center",children:[(0,J.jsx)(oe.Z,{color:a,size:1.5*D.iI,square:!0}),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsxs)(P.ZP,{monospace:!0,small:!0,children:[f&&(0,J.jsx)(P.ZP,{default:!0,inline:!0,monospace:!0,small:!0,children:f}),u,m&&(0,J.jsx)(P.ZP,{default:!0,inline:!0,monospace:!0,small:!0,children:m})]})]})},"uuid-".concat(s)),(0,J.jsx)(h.Z,{alignItems:"center",children:(0,J.jsx)(ee.Z,{checked:g,label:H.Dy,monospace:!0,onClick:function(){return o(s,{flags:g?(0,N.Od)(v,(function(e){return H.Dy===e})):v.concat(H.Dy)})},small:!0})},"flags-".concat(s)),(0,J.jsx)(le.Z,{compact:!0,monospace:!0,onChange:function(e){return o(s,{prefix:e.target.value})},placeholder:"N+, +",small:!0,value:f,width:10*D.iI},"prefix-".concat(s)),(0,J.jsx)(le.Z,{compact:!0,monospace:!0,onChange:function(e){return o(s,{suffix:e.target.value})},placeholder:"+, +N",small:!0,value:m,width:10*D.iI},"suffix-".concat(s))]}))})})]})},de=t(93461),pe=t(10919),fe=t(26304),he=t(23831),me=t(2005),ve=t(31012),ge=["children","large","lineHeight","ordered"];function je(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 xe(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?je(Object(t),!0).forEach((function(n){(0,l.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):je(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var be=(0,ie.css)([""," "," "," "," "," "," "," "," "," ",""],(function(e){return!e.muted&&"\n color: ".concat((e.theme.content||he.Z.content).default,";\n ")}),(function(e){return e.muted&&"\n color: ".concat((e.theme.content||he.Z.content).muted,";\n ")}),(function(e){return e.inverted&&"\n color: ".concat((e.theme.content||he.Z.content).inverted,";\n ")}),(function(e){return e.color&&"\n color: ".concat(e.color,";\n ")}),(function(e){return!e.monospace&&"\n font-family: ".concat(me.ry,";\n ")}),(function(e){return e.monospace&&"\n font-family: ".concat(me.Vp,";\n ")}),(function(e){return e.large&&"\n ".concat(ve.x_,"\n ")}),(function(e){return!e.large&&!e.small&&"\n ".concat(ve.i3,"\n ")}),(function(e){return e.small&&"\n ".concat(ve.J5,"\n ")}),(function(e){return e.lineHeight&&"\n line-height: ".concat(e.lineHeight,"px !important;\n ")})),ye=ie.default.ul.withConfig({displayName:"List__UnorderedListStyle",componentId:"sc-1f6yhbi-0"})(["",""],be),Ze=ie.default.ol.withConfig({displayName:"List__OrderedListStyle",componentId:"sc-1f6yhbi-1"})(["",""],be),Oe=ie.default.li.withConfig({displayName:"List__ListItemStyle",componentId:"sc-1f6yhbi-2"})(["",""],(function(e){return e.large&&e.marginTop&&"\n margin-top: ".concat(1*D.iI,"px;\n ")}));var _e=function(e){var n=e.children,t=e.large,r=e.lineHeight,i=e.ordered,o=(0,fe.Z)(e,ge),l=i?Ze:ye;return(0,J.jsx)(l,xe(xe({large:t,lineHeight:r},o),{},{children:u.Children.map(n,(function(e,n){var r;return(0,J.jsx)(Oe,xe(xe({large:t,marginTop:n>=1},o),{},{children:u.cloneElement(e)}),(null===(r=e.props)||void 0===r?void 0:r.key)||n)}))}))},Pe=t(98781),we=t(70902),Se=t(18025);function Ce(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 Ie(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Ce(Object(t),!0).forEach((function(n){(0,l.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ce(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ke=function(e){var n=[{description:function(){return"This pipeline will run continuously on an interval or just once."},label:function(){return"Schedule"},uuid:b.Xm.TIME},{description:function(){return"This pipeline will run when a specific event occurs."},label:function(){return"Event"},uuid:b.Xm.EVENT},{description:function(){return"Run this pipeline when you make an API call."},label:function(){return"API"},uuid:b.Xm.API}];return e?n.slice(0,1):n};var Ee=function(e){var n=e.errors,t=e.fetchPipelineSchedule,r=e.pipeline,o=e.pipelineSchedule,c=e.setErrors,s=e.variables,v=(0,d.useRouter)(),j=null===r||void 0===r?void 0:r.uuid,w=null===o||void 0===o?void 0:o.id,C=(null===r||void 0===r?void 0:r.type)===Pe.qL.STREAMING,I=(0,u.useState)([]),A=I[0],R=I[1],H=(0,u.useState)(!1),z=H[0],q=H[1],W=(0,u.useState)(!1),X=W[0],B=W[1],K=(0,u.useState)(),G=K[0],ie=K[1],oe=(0,u.useState)({}),ce=oe[0],se=oe[1],ue=(0,u.useState)(o),fe=ue[0],he=ue[1],me=(0,u.useState)(!1),ve=me[0],ge=me[1],je=(0,u.useState)(null),xe=je[0],be=je[1],ye=(0,u.useMemo)((function(){return(0,F.wx)(s,(function(e){return e.uuid===y.C}))}),[s]),Ze=fe||{},Oe=Ze.name,Ce=Ze.schedule_interval,Ee=Ze.schedule_type,De=Ze.settings,Te=void 0===De?{}:De,Ne=Ze.sla,Me=Ze.start_time,Ae=Ze.variables,Re=void 0===Ae?{}:Ae;(0,u.useEffect)((function(){Te&&ie(Te)}),[Te]);var Fe=(0,u.useState)(null),Ue=Fe[0],He=Fe[1],ze=(0,u.useState)({hour:"00",minute:"00"}),Le=ze[0],qe=ze[1],Ve=S.ZP.event_rules.detail("aws").data,We=(0,u.useMemo)((function(){var e;return(null===Ve||void 0===Ve||null===(e=Ve.event_rule)||void 0===e?void 0:e.rules)||[]}),[Ve]),Xe=(0,u.useMemo)((function(){return(0,N.HK)(We,(function(e){return e.name}))}),[We]),Je=(0,a.Db)(S.ZP.pipeline_schedules.useUpdate(w),{onSuccess:function(e){return(0,V.wD)(e,{callback:function(){t(),v.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(j,"/triggers/").concat(w))},onErrorCallback:function(e,n){return c({errors:n,response:e})}})}}),Be=(0,i.Z)(Je,2),Ke=Be[0],Ge=Be[1].isLoading,Ye=(0,u.useMemo)((function(){return Re||{}}),[Re]);(0,u.useEffect)((function(){if(Me){var e=Me.split(" ")[1];He((0,U.eI)(Me)),qe({hour:e.substring(0,2),minute:e.substring(3,5)})}else{var n=new Date;He(n),qe({hour:String(n.getUTCHours()).padStart(2,"0"),minute:String(n.getUTCMinutes()).padStart(2,"0")})}}),[Me]),(0,u.useEffect)((function(){Ye&&Object.keys(Ye).length>0&&q(!0)}),[Ye]),(0,u.useEffect)((function(){se(z?null===ye||void 0===ye?void 0:ye.reduce((function(e,n){var t=n.uuid,r=n.value;return Ie(Ie({},e),{},(0,l.Z)({},t,Ye[t]||r))}),{}):null)}),[ye,z]),(0,u.useEffect)((function(){if(o&&(R(o.event_matchers),$e?(he(Ie(Ie({},o),{},{schedule_interval:"custom"})),be(Ce)):he(C?Ie(Ie({},o),{},{schedule_interval:b.U5.ONCE}):o),o.sla)){B(!0);var e=(0,U.gU)(Ne),n=e.time,t=e.unit;he((function(e){return Ie(Ie({},e),{},{slaAmount:n,slaUnit:t})}))}}),[o]);var Qe=(0,u.useCallback)((function(){var e=Ie(Ie({},(0,L.GL)(fe,["name","schedule_type"])),{},{event_matchers:[],schedule_interval:null,start_time:null,variables:(0,F.e7)(ce)});if(b.Xm.EVENT===fe.schedule_type?e.event_matchers=A:(e.schedule_interval=$e?xe:fe.schedule_interval,e.start_time=Ue&&null!==Le&&void 0!==Le&&Le.hour&&null!==Le&&void 0!==Le&&Le.minute?"".concat(Ue.toISOString().split("T")[0]," ").concat(null===Le||void 0===Le?void 0:Le.hour,":").concat(null===Le||void 0===Le?void 0:Le.minute,":00"):null),X){var n=null===fe||void 0===fe?void 0:fe.slaAmount,t=null===fe||void 0===fe?void 0:fe.slaUnit;if(!n||isNaN(n)||!t)return void Q.Am.error("Please enter a valid SLA",{position:Q.Am.POSITION.BOTTOM_RIGHT,toastId:"sla_error"});e.sla=(0,U.vJ)(n,t)}else null!==o&&void 0!==o&&o.sla&&(e.sla=0);e.settings=G,Ke({pipeline_schedule:e})}),[xe,Ue,X,A,o,ce,fe,G,Le,Ke]),$e=(0,u.useMemo)((function(){return Ce&&!Object.values(b.U5).includes(Ce)}),[Ce]),en=(0,u.useMemo)((function(){var e=[[(0,J.jsxs)(h.Z,{alignItems:"center",children:[(0,J.jsx)(E.KJ,{default:!0,size:1.5*D.iI}),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(P.ZP,{default:!0,children:"Trigger name"})]},"trigger_name_detail"),(0,J.jsx)(le.Z,{monospace:!0,onChange:function(e){e.preventDefault(),he((function(n){return Ie(Ie({},n),{},{name:e.target.value})}))},placeholder:"Name this trigger",value:Oe},"trigger_name_input_detail")],[(0,J.jsxs)(h.Z,{alignItems:"center",children:[(0,J.jsx)(E.Pf,{default:!0,size:1.5*D.iI}),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(P.ZP,{default:!0,children:"Frequency"})]},"frequency"),(0,J.jsxs)("div",{children:[(0,J.jsxs)(Z.Z,{monospace:!0,onChange:function(e){e.preventDefault();var n=e.target.value;he((function(e){return Ie(Ie({},e),{},{schedule_interval:n})}))},placeholder:"Choose the frequency to run",value:Ce,children:[!Ce&&(0,J.jsx)("option",{value:""}),Object.values(b.U5).map((function(e){return(0,J.jsx)("option",{value:e,children:e.substring(1)},e)})),(0,J.jsx)("option",{value:"custom",children:"custom"},"custom")]}),(0,J.jsx)(O.Z,{mt:1,p:1,children:(0,J.jsxs)(P.ZP,{muted:!0,small:!0,children:["If you don\u2019t see the frequency option you need, select ",(0,J.jsx)(P.ZP,{inline:!0,monospace:!0,small:!0,children:"custom"})," and enter CRON syntax."]})})]},"frequency_input")],[(0,J.jsxs)(h.Z,{alignItems:"center",children:[(0,J.jsx)(E.aw,{default:!0,size:1.5*D.iI}),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(P.ZP,{default:!0,children:"Start date and time"})]},"start_time"),(0,J.jsxs)("div",{style:{minHeight:"".concat(5.75*D.iI,"px")},children:[!ve&&(0,J.jsx)(le.Z,{monospace:!0,onClick:function(){return ge((function(e){return!e}))},placeholder:"YYYY-MM-DD HH:MM",value:Ue?"".concat(Ue.toISOString().split("T")[0]," ").concat(null===Le||void 0===Le?void 0:Le.hour,":").concat(null===Le||void 0===Le?void 0:Le.minute):""}),(0,J.jsx)("div",{style:{width:"400px"},children:(0,J.jsx)(ne.Z,{disableEscape:!0,onClickOutside:function(){return ge(!1)},open:ve,style:{position:"relative"},children:(0,J.jsx)($.Z,{selectedDate:Ue,selectedTime:Le,setSelectedDate:He,setSelectedTime:qe,topPosition:!0})})})]},"start_time_input")]];return C&&e.splice(1,1),$e&&e.splice(2,0,[(0,J.jsxs)(h.Z,{alignItems:"center",children:[(0,J.jsx)(E.EK,{default:!0,size:1.5*D.iI}),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(P.ZP,{default:!0,children:"Cron expression"})]},"cron_expression"),(0,J.jsxs)("div",{children:[(0,J.jsx)(le.Z,{monospace:!0,onChange:function(e){e.preventDefault(),be(e.target.value)},placeholder:"* * * * *",value:xe}),(0,J.jsxs)(O.Z,{mt:1,p:1,children:[(0,J.jsxs)(P.ZP,{muted:!0,small:!0,children:["If you want this pipeline to trigger every 1 minute, the CRON syntax is ",(0,J.jsx)(P.ZP,{inline:!0,monospace:!0,small:!0,children:"*/1 * * * *"}),"."]}),(0,J.jsxs)(P.ZP,{muted:!0,small:!0,children:["For more CRON syntax examples, check out this ",(0,J.jsx)(pe.Z,{href:"https://crontab.guru/",openNewWindow:!0,small:!0,children:"resource"}),"."]})]})]},"cron_expression_input")]),(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(O.Z,{mb:2,px:D.cd,children:(0,J.jsx)(m.Z,{children:"Settings"})}),(0,J.jsx)(f.Z,{light:!0,short:!0}),(0,J.jsx)(_.Z,{columnFlex:[null,1],rows:e})]})}),[xe,Ue,$e,C,Oe,Ce,ve,Le]),nn=(0,u.useCallback)((function(e,n){R((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,Y.Z)(t)}))}),[R]),tn=(0,u.useMemo)((function(){return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(O.Z,{mb:D.cd,px:D.cd,children:(0,J.jsx)(m.Z,{children:"Settings"})}),(0,J.jsx)(f.Z,{light:!0,short:!0}),(0,J.jsx)(_.Z,{columnFlex:[null,1],rows:[[(0,J.jsxs)(h.Z,{alignItems:"center",children:[(0,J.jsx)(E.KJ,{default:!0,size:1.5*D.iI}),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(P.ZP,{default:!0,children:"Trigger name"})]},"trigger_name_event"),(0,J.jsx)(le.Z,{monospace:!0,onChange:function(e){e.preventDefault(),he((function(n){return Ie(Ie({},n),{},{name:e.target.value})}))},placeholder:"Name this trigger",value:Oe},"trigger_name_input_event")]]}),(0,J.jsxs)(O.Z,{mb:2,mt:5,px:D.cd,children:[(0,J.jsx)(m.Z,{children:"Events"}),(0,J.jsxs)(P.ZP,{muted:!0,children:["Add 1 or more event that will trigger this pipeline to run.",(0,J.jsx)("br",{}),"If you add more than 1 event, this pipeline will trigger if any of the events are received."]}),(0,J.jsxs)(O.Z,{mt:D.Mq,children:[(0,J.jsx)(P.ZP,{bold:!0,large:!0,children:"AWS events"}),(0,J.jsxs)(P.ZP,{muted:!0,children:["In order to retrieve all the possible AWS events you can trigger your pipeline from,",(0,J.jsx)("br",{}),"you\u2019ll need to set 3 environment variables (",(0,J.jsx)(pe.Z,{href:"https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html",openNewWindow:!0,underline:!0,children:"more info here"}),"):"]}),(0,J.jsx)(O.Z,{mt:1,children:(0,J.jsxs)(_e,{monospace:!0,ordered:!0,children:[(0,J.jsx)(P.ZP,{monospace:!0,children:"AWS_REGION_NAME"}),(0,J.jsx)(P.ZP,{monospace:!0,children:"AWS_ACCESS_KEY_ID"}),(0,J.jsx)(P.ZP,{monospace:!0,children:"AWS_SECRET_ACCESS_KEY"})]})})]})]}),(0,J.jsx)(f.Z,{light:!0,short:!0}),(null===A||void 0===A?void 0:A.length)>=1&&(0,J.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,J.jsxs)(Z.Z,{monospace:!0,onChange:function(e){return nn(n,{event_type:e.target.value})},placeholder:"Event provider",value:t||"",children:[!t&&(0,J.jsx)("option",{value:""}),M.map((function(e){var n=e.label,t=e.uuid;return(0,J.jsx)("option",{value:t,children:n()},t)}))]},"event-provider-".concat(o)),(0,J.jsxs)(Z.Z,{monospace:!0,onChange:function(e){var t,r=e.target.value,i=null===(t=Xe[r])||void 0===t?void 0:t.event_pattern;nn(n,{name:r,pattern:i?JSON.parse(i):null})},placeholder:"Event name",value:r,children:[!r&&(0,J.jsx)("option",{value:""}),We.map((function(e){var n=e.name;return(0,J.jsx)("option",{value:n,children:n},n)}))]},"event-name-".concat(o)),i&&(0,J.jsx)(te.Z,{language:"json",small:!0,source:l.join("\n")}),(0,J.jsx)(p.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return R((function(e){return(0,N.oM)(e,n)}))},children:(0,J.jsx)(E.rF,{default:!0,size:2*D.iI})},"remove_event")]}))}),(0,J.jsx)(O.Z,{p:D.cd,children:(0,J.jsx)(p.Z,{beforeIcon:(0,J.jsx)(E.mm,{size:2*D.iI}),onClick:function(){return R((function(e){return e.concat({})}))},outline:!0,children:"Add event matcher"})})]})}),[A,We,Xe,Oe,nn]),rn=!0,on=(0,u.useMemo)((function(){var e,n="";return n="".concat(window.origin,"/api/pipeline_schedules/").concat(null===o||void 0===o?void 0:o.id,"/pipeline_runs"),null!==o&&void 0!==o&&o.token&&(n="".concat(n,"/").concat(o.token)),(e=window.location.port)&&(n=n.replace(e,"6789")),(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(O.Z,{mb:D.cd,px:D.cd,children:(0,J.jsx)(m.Z,{children:"Settings"})}),(0,J.jsx)(f.Z,{light:!0,short:!0}),(0,J.jsx)(_.Z,{columnFlex:[null,1],rows:[[(0,J.jsxs)(h.Z,{alignItems:"center",children:[(0,J.jsx)(E.KJ,{default:!0,size:1.5*D.iI}),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(P.ZP,{default:!0,children:"Trigger name"})]},"trigger_name_api"),(0,J.jsx)(le.Z,{monospace:!0,onChange:function(e){e.preventDefault(),he((function(n){return Ie(Ie({},n),{},{name:e.target.value})}))},placeholder:"Name this trigger",value:Oe},"trigger_name_input_api")]]}),(0,J.jsxs)(O.Z,{mb:2,mt:5,px:D.cd,children:[(0,J.jsx)(m.Z,{children:"Endpoint"}),(0,J.jsxs)(P.ZP,{muted:!0,children:["Make a ",(0,J.jsx)(P.ZP,{bold:!0,inline:!0,monospace:!0,children:"POST"})," request to the following endpoint:"]}),(0,J.jsx)(O.Z,{mt:D.Mq,children:(0,J.jsx)(re.Z,{copiedText:n,linkText:n,monospace:!0,withCopyIcon:!0})})]}),(0,J.jsxs)(O.Z,{mb:2,mt:5,px:D.cd,children:[(0,J.jsx)(m.Z,{children:"Payload"}),(0,J.jsx)(P.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,J.jsx)(O.Z,{mt:D.Mq,children:(0,J.jsx)(re.Z,{withCopyIcon:!0,copiedText:'{\n "pipeline_run": {\n "variables": {\n "key1": "value1",\n "key2": "value2"\n }\n }\n}\n',children:(0,J.jsx)(te.Z,{language:"json",small:!0,source:'\n {\n "pipeline_run": {\n "variables": {\n "key1": "value1",\n "key2": "value2"\n }\n }\n }\n'})})})]}),(0,J.jsxs)(O.Z,{mb:2,mt:5,px:D.cd,children:[(0,J.jsx)(m.Z,{children:"Sample cURL command"}),(0,J.jsx)(O.Z,{mt:D.Mq,children:(0,J.jsx)(te.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')})})]})]})}),[Oe,o,rn]),ln=!Ee||b.Xm.TIME===Ee&&!(C&&Ue||!C&&Ue&&Ce)||b.Xm.EVENT===Ee&&(!(null!==A&&void 0!==A&&A.length)||!A.every((function(e){var n=e.event_type,t=e.name;return n&&t}))),cn=(0,u.useMemo)((function(){var e;return(null===r||void 0===r||null===(e=r.blocks)||void 0===e?void 0:e.filter((function(e){var n=e.type;return k.tf.DBT===n})))||[]}),[r]),sn=(0,u.useMemo)((function(){return(0,J.jsxs)(O.Z,{p:D.cd,children:[(0,J.jsxs)(O.Z,{mb:D.HN,children:[(0,J.jsx)(m.Z,{children:"Pipeline run settings"}),(0,J.jsx)(O.Z,{mt:D.Mq,children:(0,J.jsx)(h.Z,{alignItems:"center",children:(0,J.jsx)(ee.Z,{checked:null===G||void 0===G?void 0:G.allow_blocks_to_fail,label:"Keep running pipeline even if blocks fail",onClick:function(){return ie((function(e){return Ie(Ie({},e),{},{allow_blocks_to_fail:!(null!==G&&void 0!==G&&G.allow_blocks_to_fail)})}))}})})}),b.Xm.TIME===Ee&&(0,J.jsx)(O.Z,{mt:D.Mq,children:(0,J.jsx)(h.Z,{alignItems:"center",children:(0,J.jsx)(ee.Z,{checked:null===G||void 0===G?void 0:G.skip_if_previous_running,label:"Skip run if previous run still in progress",onClick:function(){return ie((function(e){return Ie(Ie({},e),{},{skip_if_previous_running:!(null!==G&&void 0!==G&&G.skip_if_previous_running)})}))}})})}),(0,J.jsxs)(O.Z,{mt:D.Mq,children:[(0,J.jsxs)(h.Z,{alignItems:"center",children:[(0,J.jsx)(O.Z,{mr:2,children:(0,J.jsx)(we.Z,{checked:X,onCheck:function(e){B(e),e||he((function(e){return Ie(Ie({},e),{},{slaAmount:0})}))}})}),(0,J.jsx)(P.ZP,{default:!0,monospace:!0,children:"Configure trigger SLA"})]}),X&&(0,J.jsx)(_.Z,{columnFlex:[null,1],rows:[[(0,J.jsxs)(h.Z,{alignItems:"center",children:[(0,J.jsx)(E.aw,{default:!0,size:1.5*D.iI}),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(P.ZP,{default:!0,children:"SLA"})]},"sla_detail"),(0,J.jsxs)(h.Z,{children:[(0,J.jsx)(de.Z,{flex:1,children:(0,J.jsx)(le.Z,{fullWidth:!0,monospace:!0,noBorder:!0,onChange:function(e){e.preventDefault(),he((function(n){return Ie(Ie({},n),{},{slaAmount:e.target.value})}))},placeholder:"Time",value:null===fe||void 0===fe?void 0:fe.slaAmount})}),(0,J.jsx)(de.Z,{flex:1,children:(0,J.jsx)(Z.Z,{fullWidth:!0,monospace:!0,noBorder:!0,onChange:function(e){e.preventDefault(),he((function(n){return Ie(Ie({},n),{},{slaUnit:e.target.value})}))},placeholder:"Select time unit",small:!0,value:null===fe||void 0===fe?void 0:fe.slaUnit,children:Object.keys(U.tL).map((function(e){return(0,J.jsx)("option",{value:e,children:"".concat(e,"(s)")},e)}))})})]},"sla_input_detail")]]})]})]}),(0,J.jsxs)(O.Z,{mb:D.HN,children:[(0,J.jsx)(m.Z,{children:"Runtime variables"}),!(0,L.Qr)(ye)&&(0,J.jsxs)(O.Z,{mt:D.Mq,children:[(0,J.jsxs)(h.Z,{alignItems:"center",children:[(0,J.jsx)(O.Z,{mr:2,children:(0,J.jsx)(we.Z,{checked:z,onCheck:q})}),(0,J.jsx)(P.ZP,{monospace:!0,muted:!0,children:"Overwrite global variables"})]}),z&&ce&&Object.entries(ce).length>0&&(0,J.jsx)(O.Z,{mt:1,children:(0,J.jsx)(_.Z,{columnFlex:[null,1],columns:[{uuid:"Variable"},{uuid:"Value"}],rows:Object.entries(ce).reduce((function(e,n){var t=(0,i.Z)(n,2),r=t[0],o=t[1];return x.sZ===r?e:e.concat([[(0,J.jsx)(P.ZP,{default:!0,monospace:!0,children:r},"variable_".concat(r)),(0,J.jsx)(le.Z,{borderless:!0,monospace:!0,onChange:function(e){e.preventDefault(),se((function(n){return Ie(Ie({},n),{},(0,l.Z)({},r,e.target.value))}))},paddingHorizontal:0,placeholder:"Variable value",value:o},"variable_uuid_input_".concat(r))]])}),[])})})]})]}),(null===cn||void 0===cn?void 0:cn.length)>=1&&(0,J.jsx)(O.Z,{mb:D.HN,children:(0,J.jsx)(ae,{blocks:cn,updateVariables:se,variables:Ie(Ie({},Ye),ce)})})]})}),[cn,X,ye,z,ce,fe,Ee,Ye,B,q,se,G]);return(0,J.jsx)(J.Fragment,{children:(0,J.jsxs)(g.Z,{after:sn,breadcrumbs:[{label:function(){return"Triggers"},linkProps:{as:"/pipelines/".concat(j,"/triggers"),href:"/pipelines/[pipeline]/triggers"}},{label:function(){return null===o||void 0===o?void 0:o.name},linkProps:{as:"/pipelines/".concat(j,"/triggers/").concat(w),href:"/pipelines/[pipeline]/triggers/[...slug]"}}],errors:n,pageName:T.M.TRIGGERS,pipeline:r,setErrors:c,subheader:(0,J.jsxs)(h.Z,{alignItems:"center",children:[(0,J.jsx)(p.Z,{disabled:ln,loading:Ge,onClick:Qe,outline:!0,primary:!0,children:"Save changes"}),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(p.Z,{linkProps:{href:"/pipelines/[pipeline]/triggers/[...slug]",as:"/pipelines/".concat(j,"/triggers/").concat(w)},noHoverUnderline:!0,outline:!0,sameColorAsText:!0,children:"Cancel"})]}),title:function(){return"Edit ".concat(null===o||void 0===o?void 0:o.name)},uuid:"triggers/edit",children:[(0,J.jsxs)(O.Z,{p:D.cd,children:[(0,J.jsxs)(O.Z,{mb:2,children:[(0,J.jsx)(m.Z,{children:"Trigger type"}),(0,J.jsx)(P.ZP,{muted:!0,children:"How would you like this pipeline to be triggered?"})]}),(0,J.jsx)(h.Z,{children:ke(C).map((function(e){var n=e.label,t=e.description,r=e.uuid,i=Ee===r,o=Ee&&!i;return(0,J.jsx)(p.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){b.Xm.EVENT!==r||null!==A&&void 0!==A&&A.length||R([{}]),he((function(e){return Ie(Ie({},e),{},{schedule_type:r})}))},children:(0,J.jsx)(Se.U,{selected:i,children:(0,J.jsxs)(h.Z,{alignItems:"center",children:[(0,J.jsx)(de.Z,{children:(0,J.jsx)("input",{checked:i,type:"radio"})}),(0,J.jsx)(O.Z,{mr:D.cd}),(0,J.jsxs)(de.Z,{alignItems:"flex-start",flexDirection:"column",children:[(0,J.jsx)(m.Z,{bold:!0,default:!i&&!o,level:5,muted:!i&&o,children:n()}),(0,J.jsx)(P.ZP,{default:!i&&!o,leftAligned:!0,muted:o,children:t()})]})]})})},r)}))})]}),(0,J.jsxs)(O.Z,{mt:5,children:[b.Xm.TIME===Ee&&en,b.Xm.EVENT===Ee&&tn,b.Xm.API===Ee&&on]})]})})},De=t(41788),Te=t(70543);function Ne(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 Me(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Ne(Object(t),!0).forEach((function(n){(0,l.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ne(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function Ae(e){var n=e.pipelineScheduleId,t=e.pipelineUUID,r=e.subpath,i=(0,u.useState)(null),o=i[0],l=i[1],c=S.ZP.variables.pipelines.list(t,{},{revalidateOnFocus:!1}).data,s=null===c||void 0===c?void 0:c.variables,a=S.ZP.pipeline_schedules.detail(n),d=a.data,p=a.mutate,f=null===d||void 0===d?void 0:d.pipeline_schedule,h=S.ZP.pipelines.detail(t,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,m=Me(Me({},null===h||void 0===h?void 0:h.pipeline),{},{uuid:t});return Te.b7===r?(0,J.jsx)(Ee,{errors:o,fetchPipelineSchedule:p,pipeline:m,pipelineSchedule:f,setErrors:l,variables:s}):(0,J.jsx)(G,{errors:o,fetchPipelineSchedule:p,pipeline:m,pipelineSchedule:f,setErrors:l,variables:s})}Ae.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 Re=(0,De.Z)(Ae)},95488:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/triggers/[...slug]",function(){return t(70422)}])}},function(e){e.O(0,[844,7607,5896,4804,1774,9350,5872,4495,1424,1005,8180,547,8957,1286,8312,9774,2888,179],(function(){return n=95488,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
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=g(e);if(n){var i=g(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return m(this,t)}}function m(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 v(e)}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(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 x=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(v(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=x,j(x,"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()}}},70543:function(e,n,t){"use strict";t.d(n,{IY:function(){return o},Jf:function(){return i},NR:function(){return l},b7:function(){return r}});var r="edit",i={uuid:"All files"},o={uuid:"Files in pipeline"},l=[i,o]},2850:function(e,n,t){"use strict";t.d(n,{M:function(){return l},W:function(){return o}});var r=t(9518),i=t(3055),o=34*t(49125).iI,l=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);"],i.Mz)},56681:function(e,n,t){"use strict";t.d(n,{G7:function(){return Z},ZP:function(){return O},u$:function(){return x}});var r=t(75582),i=t(82394),o=t(26304),l=t(32316),c=t(22673),s=t(48957),u=t(86673),a=t(19711),d=t(58180),p=t(49125),f=t(19395),h=t(7715),m=t(28598),v=["height","heightOffset","pipeline","selectedRun","selectedTab","setSelectedTab"];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 j(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 x=76,b={uuid:"Run details"},y={uuid:"Dependency tree"},Z=[y,b];function O(e){var n=e.height,t=e.heightOffset,i=e.pipeline,g=e.selectedRun,O=e.selectedTab,_=e.setSelectedTab,P=j({},(0,o.Z)(e,v));g?P.blockStatus=(0,f.IJ)(null===g||void 0===g?void 0:g.block_runs):P.noStatus=!0;var w=(0,h.Kn)(null===g||void 0===g?void 0:g.variables)?j({},null===g||void 0===g?void 0:g.variables):(null===g||void 0===g?void 0:g.variables)||{},S=null===g||void 0===g?void 0:g.event_variables;if(S&&(0,h.Kn)(S)&&!(0,h.Qr)(S))if((0,h.Kn)(w)&&w.hasOwnProperty("event")){var C=(0,h.Kn)(w.event)?w.event:{};w.event=j(j({},C),S)}else w.event=j({},S);var I=[];w&&JSON.stringify(w,null,2).split("\n").forEach((function(e){I.push(" ".concat(e))}));var k=g&&[["Run ID",null===g||void 0===g?void 0:g.id],["Variables",(0,m.jsx)(c.Z,{language:"json",small:!0,source:I.join("\n")},"variable_value")]],E=g&&(0,m.jsx)(u.Z,{pb:p.cd,px:p.cd,children:(0,m.jsx)(d.Z,{alignTop:!0,columnFlex:[null,1],columnMaxWidth:function(e){return 1===e?"100px":null},rows:k.map((function(e,n){var t=(0,r.Z)(e,2),i=t[0],o=t[1];return[(0,m.jsx)(a.ZP,{monospace:!0,muted:!0,children:i},"key_".concat(n)),(0,m.jsx)(a.ZP,{monospace:!0,textOverflow:!0,children:o},"val_".concat(n))]})),uuid:"LogDetail"})}),D=O&&_;return(0,m.jsxs)(m.Fragment,{children:[D&&(0,m.jsx)(u.Z,{py:p.cd,children:(0,m.jsx)(l.Z,{onClickTab:_,selectedTabUUID:null===O||void 0===O?void 0:O.uuid,tabs:Z})}),(!D||y.uuid===(null===O||void 0===O?void 0:O.uuid))&&(0,m.jsx)(s.Z,j(j({},P),{},{height:n,heightOffset:(t||0)+(D?x:0),pipeline:i})),b.uuid===(null===O||void 0===O?void 0:O.uuid)&&E]})}},58122:function(e,n,t){"use strict";t.d(n,{CL:function(){return f},FS:function(){return h},JZ:function(){return v},e7:function(){return g},v0:function(){return p},wx:function(){return m}});var r=t(75582),i=t(82394),o=t(43313),l=t(93348),c=t(1286),s=t(90211),u=t(84779);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 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],l=i,c=!1,s=[2,3],a=o.Ub[e],d=o.oH[e],p=o.OD[e];if(o.y_.includes(e))c=!0,s=[2,1,2];else if(e in o.Sq){i=(0,u.Jw)(i,0);var f=o.Sq[e];l=n[f]}var h={columnFlexNumbers:s,name:t,progress:c,rate:l,successDirection:d,warning:p};o.y_.includes(e)||(h.value=i),r[a]=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 l=Object.values(t),u=l.length,a=[];a.push({name:"Column count",successDirection:o.oH.column_count,value:(0,s.x6)(u)}),i.forEach((function(e){if(o.Zu.includes(e)){var n=o.CC[e],t=r[e],i=o.OD[e];a.push({name:n,successDirection:o.oH[e],value:(0,s.x6)(t),warning:i})}}));var d=(0,c.QO)(l),p=d.countCategory,f=d.countDatetime,h=d.countNumerical;return a.push({name:"Categorical Features",rate:p/u,value:(0,s.x6)(p)},{name:"Numerical Features",rate:h/u,value:(0,s.x6)(h)},{name:"Datetime Features",rate:f/u,value:(0,s.x6)(f)}),a}function h(e){return"string"===typeof e?e:JSON.stringify(e)}function m(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 v(e,n){return n===l.Xm.TIME?e.push({uuid:"execution_date",value:"<run datetime>"}):n===l.Xm.EVENT&&e.push({uuid:"event",value:"<trigger event>"}),e}function g(e){return e?Object.entries(e).reduce((function(e,n){var t=(0,r.Z)(n,2),o=t[0],l=t[1],c=l;try{c=JSON.parse(l)}catch(s){}return d(d({},e),{},(0,i.Z)({},o,c))}),{}):e}},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 ")}))},52769:function(e,n,t){"use strict";t.d(n,{C:function(){return r}});var r="global"},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,m=e.topPosition;return(0,p.jsxs)(u.J,{absolute:!0,topPosition:m,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))}))})]})]})}},22673:function(e,n,t){"use strict";var r=t(82684),i=t(68792),o=t(31811),l=t(9518),c=t(65292),s=t(23831),u=t(2005),a=t(49125),d=t(28598);n.Z=function(e){var n=e.language,t=e.maxWidth,p=e.showLineNumbers,f=e.small,h=e.source,m=e.wrapLines,v=(0,r.useContext)(l.ThemeContext);function g(e){var r=e.value;return(0,d.jsx)(o.Z,{customStyle:{backgroundColor:(v.background||s.Z.background).popup,border:"none",borderRadius:"none",boxShadow:"none",fontFamily:u.Vp,fontSize:f?12:14,marginBottom:0,marginTop:0,maxWidth:t,paddingBottom:2*a.iI,paddingTop:2*a.iI},language:n,lineNumberStyle:{color:(v.content||s.Z.content).muted},showLineNumbers:p,style:c._4,useInlineStyles:!0,wrapLines:m,children:r})}return(0,d.jsx)(i.D,{components:{code:function(e){var n=e.children;return(0,d.jsx)(g,{value:n})}},children:h})}},65730:function(e,n,t){"use strict";var r,i=t(82394),o=(t(82684),t(64866)),l=t(21764),c=t(67971),s=t(10919),u=t(86673),a=t(19711),d=t(46261),p=t(10503),f=t(49125),h=t(28598);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}!function(e){e.LEFT="left",e.RIGHT="right"}(r||(r={})),n.Z=function(e){var n,t=e.children,i=e.copiedText,m=e.iconPosition,g=void 0===m?r.LEFT:m,j=e.inverted,x=e.linkProps,b=e.linkText,y=e.monospace,Z=e.muted,O=e.small,_=e.toastMessage,P=e.withCopyIcon;return t?n=(0,h.jsx)("span",{children:t}):P&&(n=(0,h.jsx)(s.Z,v(v({href:"#",inline:!0,muted:Z,preventDefault:!0,sameColorAsText:!0,small:O},x),{},{children:(0,h.jsxs)(c.Z,{alignItems:"center",children:[g===r.LEFT&&(0,h.jsx)(u.Z,{mr:b?1:0,children:(0,h.jsx)(c.Z,{alignItems:"center",children:(0,h.jsx)(p.CK,{inverted:j,muted:Z,size:2*f.iI})})}),b&&(0,h.jsx)(a.ZP,{inverted:j,monospace:y,muted:Z,small:O,children:b}),g===r.RIGHT&&(0,h.jsx)(u.Z,{ml:b?1:0,children:(0,h.jsx)(c.Z,{alignItems:"center",children:(0,h.jsx)(p.CK,{inverted:j,muted:Z})})})]})}))),(0,h.jsx)(d.Z,{block:!0,label:"Copy",size:null,widthFitContent:!0,children:(0,h.jsx)(o.CopyToClipboard,{onCopy:function(){return l.Am.success(_||"Successfully copied to clipboard.",{position:l.Am.POSITION.BOTTOM_RIGHT,toastId:i})},text:i,children:n})})}},32316:function(e,n,t){"use strict";t.d(n,{Z:function(){return v}});var r=t(82684),i=t(60328),o=t(67971),l=t(882),c=t(86673),s=t(19711),u=t(99994),a=t(9518),d=t(49125),p=t(37391),f=a.default.div.withConfig({displayName:"indexstyle__TabsContainerStyle",componentId:"sc-segf7l-0"})(["padding-left:","px;padding-right:","px;"," "," ",""],d.cd*d.iI,d.cd*d.iI,(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.allowScroll&&"\n overflow: auto;\n "}),p.w5),h=t(66653),m=t(28598);var v=function(e){var n=e.allowScroll,t=e.contained,a=e.noPadding,p=e.onClickTab,v=e.selectedTabUUID,g=e.small,j=e.tabs,x=(0,r.useMemo)((function(){var e=j.length,n=[];return j.forEach((function(t,r){var a=t.Icon,f=t.IconSelected,j=t.label,x=t.uuid,b=x===v,y=b&&f||a,Z=j?j():x,O=(0,m.jsxs)(o.Z,{alignItems:"center",children:[y&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(y,{default:!b,size:2*d.iI}),(0,m.jsx)(c.Z,{mr:1})]}),(0,m.jsx)(s.ZP,{bold:!0,default:!b,noWrapping:!0,small:!0,children:Z})]});r>=1&&e>=2&&n.push((0,m.jsx)("div",{style:{marginLeft:1.5*d.iI}},"spacing-".concat(x))),b?n.push((0,m.jsx)(l.Z,{backgroundGradient:u.yr,backgroundPanel:!0,borderLess:!0,borderWidth:2,compact:g,onClick:function(e){(0,h.j)(e),p(t)},paddingUnitsHorizontal:2,paddingUnitsVertical:1.25,small:g,children:O},x)):n.push((0,m.jsx)("div",{style:{padding:2},children:(0,m.jsx)(i.Z,{borderLess:!0,compact:g,default:!0,onClick:function(e){(0,h.j)(e),p(t)},outline:!0,small:g,children:O})},"button-tab-".concat(x)))})),n}),[p,v,g,j]),b=(0,m.jsx)(o.Z,{alignItems:"center",children:x});return t?b:(0,m.jsx)(f,{allowScroll:n,noPadding:a,children:b})}},70422:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return Re}});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),m=t(87372),v=t(51099),g=t(60547),j=t(97496),x=t(47409),b=t(93348),y=t(52769),Z=t(55378),O=t(86673),_=t(58180),P=t(19711),w=t(46261),S=t(82531),C=t(56681),I=t(2850),k=t(86422),E=t(10503),D=t(49125),T=t(59920),N=t(24224);!function(e){e.AWS="aws_event"}(r||(r={}));var M=[{label:function(){return"AWS"},uuid:r.AWS}],A=(0,N.HK)(M,(function(e){return e.uuid})),R=t(66050),F=t(58122),U=t(19395),H=t(25958),z=t(33766),L=t(7715),q=t(9736),V=t(96510),W=t(66653),X=t(59e3),J=t(28598);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 K(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,l.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=function(e){var n=e.errors,t=e.fetchPipelineSchedule,r=e.pipeline,o=e.pipelineSchedule,l=e.setErrors,c=e.variables,s=(0,d.useRouter)(),N=(0,q.Ct)(),M=(r||{}).uuid,B=o||{},G=B.id,Y=B.event_matchers,Q=B.name,$=B.schedule_interval,ee=B.schedule_type,ne=B.settings,te=B.sla,re=B.start_time,ie=B.status,oe=B.variables,le=void 0===oe?{}:oe,ce=(0,X.iV)(),se={_limit:30,_offset:30*(null!==ce&&void 0!==ce&&ce.page?ce.page:0)};null!==ce&&void 0!==ce&&ce.status&&(se.status=ce.status);var ue=S.ZP.pipeline_runs.pipeline_schedules.list(G,se,{refreshInterval:3e3,revalidateOnFocus:!0}),ae=ue.data,de=ue.mutate,pe=(0,u.useMemo)((function(){return(null===ae||void 0===ae?void 0:ae.pipeline_runs)||[]}),[ae]),fe=(0,u.useMemo)((function(){var e;return(null===ae||void 0===ae||null===(e=ae.metadata)||void 0===e?void 0:e.count)||[]}),[ae]),he=(0,u.useState)(null),me=he[0],ve=he[1],ge=(0,u.useMemo)((function(){var e=null!==ce&&void 0!==ce&&ce.page?ce.page:0;return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(j.Z,{fetchPipelineRuns:de,onClickRow:function(e){return ve((function(n){var t=pe[e];return(null===n||void 0===n?void 0:n.id)!==t.id?t:null}))},pipelineRuns:pe,selectedRun:me,setErrors:l}),(0,J.jsx)(O.Z,{p:2,children:(0,J.jsx)(v.Z,{maxPages:9,onUpdate:function(e){var n=Number(e),t=K(K({},ce),{},{page:n>=0?n:0});s.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(M,"/triggers/").concat(G,"?").concat((0,X.uM)(t)))},page:Number(e),totalPages:Math.ceil(fe/30)})})]})}),[de,r,pe,me]),je=(0,u.useState)(C.G7[0]),xe=je[0],be=je[1],ye=(0,a.Db)((function(e){return S.ZP.pipeline_schedules.useUpdate(e.id)({pipeline_schedule:(0,L.gR)(e,["id"])})}),{onSuccess:function(e){return(0,V.wD)(e,{callback:function(){t()},onErrorCallback:function(e,n){return l({errors:n,response:e})}})}}),Ze=(0,i.Z)(ye,2),Oe=Ze[0],_e=Ze[1].isLoading,Pe=(0,u.useMemo)((function(){return b.fq.ACTIVE===ie}),[ie]),we=(0,u.useMemo)((function(){var e,n,t={default:!0,size:1.5*D.iI},r=[[(0,J.jsxs)(h.Z,{alignItems:"center",children:[(0,J.jsx)(E.VW,K({},t)),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(P.ZP,{default:!0,children:"Trigger type"})]},"trigger_type_label"),(0,J.jsx)(P.ZP,{monospace:!0,children:null===(e=b.Z4[ee])||void 0===e?void 0:e.call(b.Z4)},"trigger_type")],[(0,J.jsxs)(h.Z,{alignItems:"center",children:[(0,J.jsx)(E.rs,K({},t)),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(P.ZP,{default:!0,children:"Status"})]},"trigger_status_label"),(0,J.jsx)(P.ZP,{danger:!Pe,monospace:!0,success:Pe,children:ie},"trigger_status")]];if(te){var i=(0,U.gU)(te),o=i.time,l=i.unit,c=1===o?l:"".concat(l,"s");r.push([(0,J.jsxs)(h.Z,{alignItems:"center",children:[(0,J.jsx)(E.kI,K({},t)),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(P.ZP,{default:!0,children:"SLA"})]},"trigger_sla_label"),(0,J.jsx)(P.ZP,{monospace:!0,children:"".concat(o," ").concat(c)},"trigger_sla")])}($&&r.push([(0,J.jsxs)(h.Z,{alignItems:"center",children:[(0,J.jsx)(E.Pf,K({},t)),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(P.ZP,{default:!0,children:"Frequency"})]},"trigger_frequency_label"),(0,J.jsx)(P.ZP,{monospace:!0,children:$.replace("@","")},"trigger_frequency")]),re&&r.push([(0,J.jsxs)(h.Z,{alignItems:"center",children:[(0,J.jsx)(E.aw,K({},t)),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(P.ZP,{default:!0,children:"Start date"})]},"trigger_start_date_label"),(0,J.jsx)(P.ZP,{monospace:!0,children:re},"trigger_start_date")]),null!==ne&&void 0!==ne&&ne.skip_if_previous_running)&&r.push([(0,J.jsxs)(h.Z,{alignItems:"center",children:[(0,J.jsx)(w.Z,{default:!0,label:"Skip current run if any previous runs are still in progress",size:1.5*D.iI,widthFitContent:!0}),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(P.ZP,{default:!0,children:"Skip if running"})]},"trigger_skip_if_running"),(0,J.jsx)(P.ZP,{monospace:!0,children:null===(n=ne.skip_if_previous_running)||void 0===n?void 0:n.toString()},"trigger_skip_if_running_label")]);return null!==ne&&void 0!==ne&&ne.allow_blocks_to_fail&&r.push([(0,J.jsxs)(h.Z,{alignItems:"center",children:[(0,J.jsx)(w.Z,{default:!0,label:"Trigger runs will continue running blocks if other unrelated blocks fail",size:1.5*D.iI,widthFitContent:!0}),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(P.ZP,{default:!0,children:"Allow blocks to fail"})]},"trigger_allow_blocks_to_fail"),(0,J.jsx)(P.ZP,{monospace:!0,children:ne.allow_blocks_to_fail.toString()},"trigger_allow_blocks_to_fail_label")]),(0,J.jsx)(_.Z,{columnFlex:[null,1],rows:r})}),[Pe,$,ee,ne,te,re,ie]),Se=(0,u.useMemo)((function(){return le||{}}),[le]),Ce=(0,u.useMemo)((function(){var e,n=[];return(0,L.Qr)(Se)?n=(0,F.wx)(c,(function(e){return e.uuid===y.C})):Object.entries(Se).forEach((function(e){var t=(0,i.Z)(e,2),r=t[0],o=t[1];x.sZ!==r&&n.push({uuid:r,value:(0,F.FS)(o)})})),"undefined"!==typeof(n=(0,F.JZ)(n||[],ee))&&null!==(e=n)&&void 0!==e&&e.length?(0,J.jsx)(_.Z,{columnFlex:[null,1],rows:n.map((function(e){var n=e.uuid,t=e.value;return[(0,J.jsx)(P.ZP,{default:!0,monospace:!0,small:!0,children:n},"settings_variable_label_".concat(n)),(0,J.jsx)(P.ZP,{monospace:!0,small:!0,children:t},"settings_variable_".concat(n))]}))}):null}),[ee,Se,c]),Ie=(0,u.useMemo)((function(){var e,n,t=[],i=null===Se||void 0===Se||null===(e=Se[x.sZ])||void 0===e?void 0:e.blocks;return null===r||void 0===r||null===(n=r.blocks)||void 0===n||n.forEach((function(e){var n=e.type,r=e.uuid;if(k.tf.DBT===n){var o,l=(null===i||void 0===i||null===(o=i[r])||void 0===o?void 0:o.configuration)||{},c=l.flags,s=l.prefix,u=l.suffix,a=(0,H.IU)(e).name;(c||s||u)&&t.push({flags:c,prefix:s,suffix:u,uuid:a})}})),"undefined"!==typeof t&&null!==t&&void 0!==t&&t.length?(0,J.jsx)(_.Z,{columnFlex:[1,null],rows:t.map((function(e){var n=e.flags,t=e.prefix,r=e.suffix,i=e.uuid;return[(0,J.jsxs)(P.ZP,{monospace:!0,small:!0,children:[t&&(0,J.jsx)(P.ZP,{inline:!0,monospace:!0,muted:!0,small:!0,children:t}),i,r&&(0,J.jsx)(P.ZP,{inline:!0,monospace:!0,muted:!0,small:!0,children:r})]},"settings_variable_label_".concat(i)),(0,J.jsx)(P.ZP,{monospace:!0,muted:!0,small:!0,children:n&&n.join(", ")},"settings_variable_".concat(i))]}))}):null}),[r,Se]),ke=(0,u.useMemo)((function(){return(0,J.jsx)(_.Z,{columnFlex:[null,1],columns:[{uuid:"Provider"},{uuid:"Event"}],rows:null===Y||void 0===Y?void 0:Y.map((function(e,n){var t=e.event_type,r=e.name;return[(0,J.jsx)(P.ZP,{default:!0,monospace:!0,children:A[t].label()},"".concat(t,"_").concat(n,"_label")),(0,J.jsx)(P.ZP,{monospace:!0,children:r},"".concat(t,"_").concat(n,"_name"))]}))})}),[Y]);return(0,J.jsxs)(g.Z,{afterHidden:!me,before:(0,J.jsxs)(I.M,{children:[(0,J.jsxs)(O.Z,{mb:D.HN,pt:D.cd,px:D.cd,children:[(0,J.jsxs)(O.Z,{mb:D.cd,children:[b.Xm.TIME===ee&&(0,J.jsx)(E.kO,{size:5*D.iI}),b.Xm.EVENT===ee&&(0,J.jsx)(E.Jp,{size:5*D.iI}),b.Xm.API===ee&&(0,J.jsx)(E.Bf,{size:5*D.iI}),!ee&&(0,J.jsx)(E.VW,{size:5*D.iI})]}),(0,J.jsx)(m.Z,{children:Q})]}),(0,J.jsx)(O.Z,{px:D.cd,children:(0,J.jsx)(m.Z,{level:5,children:"Settings"})}),(0,J.jsx)(f.Z,{light:!0,mt:1,short:!0}),we,(null===Y||void 0===Y?void 0:Y.length)>=1&&(0,J.jsxs)(O.Z,{my:D.HN,children:[(0,J.jsx)(O.Z,{px:D.cd,children:(0,J.jsx)(m.Z,{level:5,children:"Events"})}),(0,J.jsx)(f.Z,{light:!0,mt:1,short:!0}),ke]}),Ce&&(0,J.jsxs)(O.Z,{my:D.HN,children:[(0,J.jsx)(O.Z,{px:D.cd,children:(0,J.jsx)(m.Z,{level:5,children:"Runtime variables"})}),(0,J.jsx)(f.Z,{light:!0,mt:1,short:!0}),Ce]}),Ie&&(0,J.jsxs)(O.Z,{my:D.HN,children:[(0,J.jsx)(O.Z,{px:D.cd,children:(0,J.jsx)(m.Z,{level:5,children:"dbt runtime settings"})}),(0,J.jsx)(f.Z,{light:!0,mt:1,short:!0}),Ie]})]}),beforeWidth:I.W,breadcrumbs:[{label:function(){return"Triggers"},linkProps:{as:"/pipelines/".concat(M,"/triggers"),href:"/pipelines/[pipeline]/triggers"}},{label:function(){return Q},linkProps:{as:"/pipelines/".concat(M,"/triggers/").concat(G),href:"/pipelines/[pipeline]/triggers/[...slug]"}}],buildSidekick:function(e){return(0,C.ZP)(K(K({},e),{},{selectedRun:me,selectedTab:xe,setSelectedTab:be}))},errors:n,pageName:T.M.TRIGGERS,pipeline:r,setErrors:l,subheader:(0,J.jsxs)(h.Z,{alignItems:"center",children:[(0,J.jsx)(p.Z,{beforeIcon:Pe?(0,J.jsx)(E.dz,{size:2*D.iI}):(0,J.jsx)(E.Py,{inverted:!N,size:2*D.iI}),danger:Pe&&!N,loading:_e,onClick:function(e){(0,W.j)(e),Oe({id:G,status:Pe?b.fq.INACTIVE:b.fq.ACTIVE})},outline:!0,success:!Pe&&!N,children:Pe?"Pause trigger":"Start trigger"}),(0,J.jsx)(O.Z,{mr:D.cd}),!N&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(p.Z,{linkProps:{as:"/pipelines/".concat(M,"/triggers/").concat(G,"/edit"),href:"/pipelines/[pipeline]/triggers/[...slug]"},noHoverUnderline:!0,outline:!0,sameColorAsText:!0,children:"Edit trigger"}),(0,J.jsx)(O.Z,{mr:D.cd})]}),(0,J.jsxs)(Z.Z,{compact:!0,defaultColor:!0,onChange:function(e){e.preventDefault(),"all"===e.target.value?s.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(M,"/triggers/").concat(G)):(0,z.u7)({page:0,status:e.target.value})},paddingRight:4*D.iI,placeholder:"Select run status",value:(null===ce||void 0===ce?void 0:ce.status)||"all",children:[(0,J.jsx)("option",{value:"all",children:"All statuses"},"all_statuses"),Object.values(R.V).map((function(e){return(0,J.jsx)("option",{value:e,children:x.Do[e]},e)}))]})]}),title:function(){return Q},uuid:"triggers/detail",children:[(0,J.jsx)(O.Z,{mt:D.cd,px:D.cd,children:(0,J.jsx)(m.Z,{level:5,children:"Runs for this trigger"})}),(0,J.jsx)(f.Z,{light:!0,mt:D.cd,short:!0}),ge]})},Y=t(21831),Q=t(21764),$=t(2713),ee=t(38341),ne=t(47999),te=t(22673),re=t(65730),ie=t(9518),oe=t(16634),le=t(82944),ce=t(44162);function se(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 ue(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?se(Object(t),!0).forEach((function(n){(0,l.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):se(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ae=function(e){var n=e.blocks,t=e.updateVariables,r=e.variables,i=(0,u.useContext)(ie.ThemeContext),o=(0,u.useCallback)((function(e,n){return t((function(){var t=(null===r||void 0===r?void 0:r.__mage_variables)||{},i=(null===t||void 0===t?void 0:t.blocks)||{},o=i[e]||{},c=(null===o||void 0===o?void 0:o.configuration)||{};return ue(ue({},r),{},{__mage_variables:ue(ue({},t),{},{blocks:ue(ue({},i),{},(0,l.Z)({},e,ue(ue({},o),{},{configuration:ue(ue({},c),n)})))})})}))}),[t,r]);return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(m.Z,{children:"dbt runtime settings"}),(0,J.jsx)(O.Z,{mt:D.Mq,children:(0,J.jsx)(_.Z,{columnFlex:[1,null,null,null],columns:[{uuid:"Block"},{uuid:"Flags"},{uuid:"Prefix"},{uuid:"Suffix"}],compact:!0,rows:null===n||void 0===n?void 0:n.map((function(e){var n,t,l,c=e.type,s=e.uuid,u=(0,H.IU)(e).name,a=(0,ce.qn)(c,{blockColor:e.color,theme:i}).accent,d=null===r||void 0===r||null===(n=r.__mage_variables)||void 0===n||null===(t=n.blocks)||void 0===t||null===(l=t[s])||void 0===l?void 0:l.configuration,p=d||{},f=p.prefix,m=p.suffix,v=(null===d||void 0===d?void 0:d.flags)||[],g=!(null===v||void 0===v||!v.includes(H.Dy));return[(0,J.jsx)(w.Z,{block:!0,label:(0,J.jsx)(P.ZP,{monospace:!0,small:!0,children:s}),size:null,widthFitContent:!0,children:(0,J.jsxs)(h.Z,{alignItems:"center",children:[(0,J.jsx)(oe.Z,{color:a,size:1.5*D.iI,square:!0}),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsxs)(P.ZP,{monospace:!0,small:!0,children:[f&&(0,J.jsx)(P.ZP,{default:!0,inline:!0,monospace:!0,small:!0,children:f}),u,m&&(0,J.jsx)(P.ZP,{default:!0,inline:!0,monospace:!0,small:!0,children:m})]})]})},"uuid-".concat(s)),(0,J.jsx)(h.Z,{alignItems:"center",children:(0,J.jsx)(ee.Z,{checked:g,label:H.Dy,monospace:!0,onClick:function(){return o(s,{flags:g?(0,N.Od)(v,(function(e){return H.Dy===e})):v.concat(H.Dy)})},small:!0})},"flags-".concat(s)),(0,J.jsx)(le.Z,{compact:!0,monospace:!0,onChange:function(e){return o(s,{prefix:e.target.value})},placeholder:"N+, +",small:!0,value:f,width:10*D.iI},"prefix-".concat(s)),(0,J.jsx)(le.Z,{compact:!0,monospace:!0,onChange:function(e){return o(s,{suffix:e.target.value})},placeholder:"+, +N",small:!0,value:m,width:10*D.iI},"suffix-".concat(s))]}))})})]})},de=t(93461),pe=t(10919),fe=t(26304),he=t(23831),me=t(2005),ve=t(31012),ge=["children","large","lineHeight","ordered"];function je(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 xe(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?je(Object(t),!0).forEach((function(n){(0,l.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):je(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var be=(0,ie.css)([""," "," "," "," "," "," "," "," "," ",""],(function(e){return!e.muted&&"\n color: ".concat((e.theme.content||he.Z.content).default,";\n ")}),(function(e){return e.muted&&"\n color: ".concat((e.theme.content||he.Z.content).muted,";\n ")}),(function(e){return e.inverted&&"\n color: ".concat((e.theme.content||he.Z.content).inverted,";\n ")}),(function(e){return e.color&&"\n color: ".concat(e.color,";\n ")}),(function(e){return!e.monospace&&"\n font-family: ".concat(me.ry,";\n ")}),(function(e){return e.monospace&&"\n font-family: ".concat(me.Vp,";\n ")}),(function(e){return e.large&&"\n ".concat(ve.x_,"\n ")}),(function(e){return!e.large&&!e.small&&"\n ".concat(ve.i3,"\n ")}),(function(e){return e.small&&"\n ".concat(ve.J5,"\n ")}),(function(e){return e.lineHeight&&"\n line-height: ".concat(e.lineHeight,"px !important;\n ")})),ye=ie.default.ul.withConfig({displayName:"List__UnorderedListStyle",componentId:"sc-1f6yhbi-0"})(["",""],be),Ze=ie.default.ol.withConfig({displayName:"List__OrderedListStyle",componentId:"sc-1f6yhbi-1"})(["",""],be),Oe=ie.default.li.withConfig({displayName:"List__ListItemStyle",componentId:"sc-1f6yhbi-2"})(["",""],(function(e){return e.large&&e.marginTop&&"\n margin-top: ".concat(1*D.iI,"px;\n ")}));var _e=function(e){var n=e.children,t=e.large,r=e.lineHeight,i=e.ordered,o=(0,fe.Z)(e,ge),l=i?Ze:ye;return(0,J.jsx)(l,xe(xe({large:t,lineHeight:r},o),{},{children:u.Children.map(n,(function(e,n){var r;return(0,J.jsx)(Oe,xe(xe({large:t,marginTop:n>=1},o),{},{children:u.cloneElement(e)}),(null===(r=e.props)||void 0===r?void 0:r.key)||n)}))}))},Pe=t(98781),we=t(70902),Se=t(18025);function Ce(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 Ie(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Ce(Object(t),!0).forEach((function(n){(0,l.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ce(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ke=function(e){var n=[{description:function(){return"This pipeline will run continuously on an interval or just once."},label:function(){return"Schedule"},uuid:b.Xm.TIME},{description:function(){return"This pipeline will run when a specific event occurs."},label:function(){return"Event"},uuid:b.Xm.EVENT},{description:function(){return"Run this pipeline when you make an API call."},label:function(){return"API"},uuid:b.Xm.API}];return e?n.slice(0,1):n};var Ee=function(e){var n=e.errors,t=e.fetchPipelineSchedule,r=e.pipeline,o=e.pipelineSchedule,c=e.setErrors,s=e.variables,v=(0,d.useRouter)(),j=null===r||void 0===r?void 0:r.uuid,w=null===o||void 0===o?void 0:o.id,C=(null===r||void 0===r?void 0:r.type)===Pe.qL.STREAMING,I=(0,u.useState)([]),A=I[0],R=I[1],H=(0,u.useState)(!1),z=H[0],q=H[1],W=(0,u.useState)(!1),X=W[0],B=W[1],K=(0,u.useState)(),G=K[0],ie=K[1],oe=(0,u.useState)({}),ce=oe[0],se=oe[1],ue=(0,u.useState)(o),fe=ue[0],he=ue[1],me=(0,u.useState)(!1),ve=me[0],ge=me[1],je=(0,u.useState)(null),xe=je[0],be=je[1],ye=(0,u.useMemo)((function(){return(0,F.wx)(s,(function(e){return e.uuid===y.C}))}),[s]),Ze=fe||{},Oe=Ze.name,Ce=Ze.schedule_interval,Ee=Ze.schedule_type,De=Ze.settings,Te=void 0===De?{}:De,Ne=Ze.sla,Me=Ze.start_time,Ae=Ze.variables,Re=void 0===Ae?{}:Ae;(0,u.useEffect)((function(){Te&&ie(Te)}),[Te]);var Fe=(0,u.useState)(null),Ue=Fe[0],He=Fe[1],ze=(0,u.useState)({hour:"00",minute:"00"}),Le=ze[0],qe=ze[1],Ve=S.ZP.event_rules.detail("aws").data,We=(0,u.useMemo)((function(){var e;return(null===Ve||void 0===Ve||null===(e=Ve.event_rule)||void 0===e?void 0:e.rules)||[]}),[Ve]),Xe=(0,u.useMemo)((function(){return(0,N.HK)(We,(function(e){return e.name}))}),[We]),Je=(0,a.Db)(S.ZP.pipeline_schedules.useUpdate(w),{onSuccess:function(e){return(0,V.wD)(e,{callback:function(){t(),v.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(j,"/triggers/").concat(w))},onErrorCallback:function(e,n){return c({errors:n,response:e})}})}}),Be=(0,i.Z)(Je,2),Ke=Be[0],Ge=Be[1].isLoading,Ye=(0,u.useMemo)((function(){return Re||{}}),[Re]);(0,u.useEffect)((function(){if(Me){var e=Me.split(" ")[1];He((0,U.eI)(Me)),qe({hour:e.substring(0,2),minute:e.substring(3,5)})}else{var n=new Date;He(n),qe({hour:String(n.getUTCHours()).padStart(2,"0"),minute:String(n.getUTCMinutes()).padStart(2,"0")})}}),[Me]),(0,u.useEffect)((function(){Ye&&Object.keys(Ye).length>0&&q(!0)}),[Ye]),(0,u.useEffect)((function(){se(z?null===ye||void 0===ye?void 0:ye.reduce((function(e,n){var t=n.uuid,r=n.value;return Ie(Ie({},e),{},(0,l.Z)({},t,Ye[t]||r))}),{}):null)}),[ye,z]),(0,u.useEffect)((function(){if(o&&(R(o.event_matchers),$e?(he(Ie(Ie({},o),{},{schedule_interval:"custom"})),be(Ce)):he(C?Ie(Ie({},o),{},{schedule_interval:b.U5.ONCE}):o),o.sla)){B(!0);var e=(0,U.gU)(Ne),n=e.time,t=e.unit;he((function(e){return Ie(Ie({},e),{},{slaAmount:n,slaUnit:t})}))}}),[o]);var Qe=(0,u.useCallback)((function(){var e=Ie(Ie({},(0,L.GL)(fe,["name","schedule_type"])),{},{event_matchers:[],schedule_interval:null,start_time:null,variables:(0,F.e7)(ce)});if(b.Xm.EVENT===fe.schedule_type?e.event_matchers=A:(e.schedule_interval=$e?xe:fe.schedule_interval,e.start_time=Ue&&null!==Le&&void 0!==Le&&Le.hour&&null!==Le&&void 0!==Le&&Le.minute?"".concat(Ue.toISOString().split("T")[0]," ").concat(null===Le||void 0===Le?void 0:Le.hour,":").concat(null===Le||void 0===Le?void 0:Le.minute,":00"):null),X){var n=null===fe||void 0===fe?void 0:fe.slaAmount,t=null===fe||void 0===fe?void 0:fe.slaUnit;if(!n||isNaN(n)||!t)return void Q.Am.error("Please enter a valid SLA",{position:Q.Am.POSITION.BOTTOM_RIGHT,toastId:"sla_error"});e.sla=(0,U.vJ)(n,t)}else null!==o&&void 0!==o&&o.sla&&(e.sla=0);e.settings=G,Ke({pipeline_schedule:e})}),[xe,Ue,X,A,o,ce,fe,G,Le,Ke]),$e=(0,u.useMemo)((function(){return Ce&&!Object.values(b.U5).includes(Ce)}),[Ce]),en=(0,u.useMemo)((function(){var e=[[(0,J.jsxs)(h.Z,{alignItems:"center",children:[(0,J.jsx)(E.KJ,{default:!0,size:1.5*D.iI}),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(P.ZP,{default:!0,children:"Trigger name"})]},"trigger_name_detail"),(0,J.jsx)(le.Z,{monospace:!0,onChange:function(e){e.preventDefault(),he((function(n){return Ie(Ie({},n),{},{name:e.target.value})}))},placeholder:"Name this trigger",value:Oe},"trigger_name_input_detail")],[(0,J.jsxs)(h.Z,{alignItems:"center",children:[(0,J.jsx)(E.Pf,{default:!0,size:1.5*D.iI}),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(P.ZP,{default:!0,children:"Frequency"})]},"frequency"),(0,J.jsxs)("div",{children:[(0,J.jsxs)(Z.Z,{monospace:!0,onChange:function(e){e.preventDefault();var n=e.target.value;he((function(e){return Ie(Ie({},e),{},{schedule_interval:n})}))},placeholder:"Choose the frequency to run",value:Ce,children:[Object.values(b.U5).map((function(e){return(0,J.jsx)("option",{value:e,children:e.substring(1)},e)})),(0,J.jsx)("option",{value:"custom",children:"custom"},"custom")]}),(0,J.jsx)(O.Z,{mt:1,p:1,children:(0,J.jsxs)(P.ZP,{muted:!0,small:!0,children:["If you don\u2019t see the frequency option you need, select ",(0,J.jsx)(P.ZP,{inline:!0,monospace:!0,small:!0,children:"custom"})," and enter CRON syntax."]})})]},"frequency_input")],[(0,J.jsxs)(h.Z,{alignItems:"center",children:[(0,J.jsx)(E.aw,{default:!0,size:1.5*D.iI}),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(P.ZP,{default:!0,children:"Start date and time"})]},"start_time"),(0,J.jsxs)("div",{style:{minHeight:"".concat(5.75*D.iI,"px")},children:[!ve&&(0,J.jsx)(le.Z,{monospace:!0,onClick:function(){return ge((function(e){return!e}))},placeholder:"YYYY-MM-DD HH:MM",value:Ue?"".concat(Ue.toISOString().split("T")[0]," ").concat(null===Le||void 0===Le?void 0:Le.hour,":").concat(null===Le||void 0===Le?void 0:Le.minute):""}),(0,J.jsx)("div",{style:{width:"400px"},children:(0,J.jsx)(ne.Z,{disableEscape:!0,onClickOutside:function(){return ge(!1)},open:ve,style:{position:"relative"},children:(0,J.jsx)($.Z,{selectedDate:Ue,selectedTime:Le,setSelectedDate:He,setSelectedTime:qe,topPosition:!0})})})]},"start_time_input")]];return C&&e.splice(1,1),$e&&e.splice(2,0,[(0,J.jsxs)(h.Z,{alignItems:"center",children:[(0,J.jsx)(E.EK,{default:!0,size:1.5*D.iI}),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(P.ZP,{default:!0,children:"Cron expression"})]},"cron_expression"),(0,J.jsxs)("div",{children:[(0,J.jsx)(le.Z,{monospace:!0,onChange:function(e){e.preventDefault(),be(e.target.value)},placeholder:"* * * * *",value:xe}),(0,J.jsxs)(O.Z,{mt:1,p:1,children:[(0,J.jsxs)(P.ZP,{muted:!0,small:!0,children:["If you want this pipeline to trigger every 1 minute, the CRON syntax is ",(0,J.jsx)(P.ZP,{inline:!0,monospace:!0,small:!0,children:"*/1 * * * *"}),"."]}),(0,J.jsxs)(P.ZP,{muted:!0,small:!0,children:["For more CRON syntax examples, check out this ",(0,J.jsx)(pe.Z,{href:"https://crontab.guru/",openNewWindow:!0,small:!0,children:"resource"}),"."]})]})]},"cron_expression_input")]),(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(O.Z,{mb:2,px:D.cd,children:(0,J.jsx)(m.Z,{children:"Settings"})}),(0,J.jsx)(f.Z,{light:!0,short:!0}),(0,J.jsx)(_.Z,{columnFlex:[null,1],rows:e})]})}),[xe,Ue,$e,C,Oe,Ce,ve,Le]),nn=(0,u.useCallback)((function(e,n){R((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,Y.Z)(t)}))}),[R]),tn=(0,u.useMemo)((function(){return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(O.Z,{mb:D.cd,px:D.cd,children:(0,J.jsx)(m.Z,{children:"Settings"})}),(0,J.jsx)(f.Z,{light:!0,short:!0}),(0,J.jsx)(_.Z,{columnFlex:[null,1],rows:[[(0,J.jsxs)(h.Z,{alignItems:"center",children:[(0,J.jsx)(E.KJ,{default:!0,size:1.5*D.iI}),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(P.ZP,{default:!0,children:"Trigger name"})]},"trigger_name_event"),(0,J.jsx)(le.Z,{monospace:!0,onChange:function(e){e.preventDefault(),he((function(n){return Ie(Ie({},n),{},{name:e.target.value})}))},placeholder:"Name this trigger",value:Oe},"trigger_name_input_event")]]}),(0,J.jsxs)(O.Z,{mb:2,mt:5,px:D.cd,children:[(0,J.jsx)(m.Z,{children:"Events"}),(0,J.jsxs)(P.ZP,{muted:!0,children:["Add 1 or more event that will trigger this pipeline to run.",(0,J.jsx)("br",{}),"If you add more than 1 event, this pipeline will trigger if any of the events are received."]}),(0,J.jsxs)(O.Z,{mt:D.Mq,children:[(0,J.jsx)(P.ZP,{bold:!0,large:!0,children:"AWS events"}),(0,J.jsxs)(P.ZP,{muted:!0,children:["In order to retrieve all the possible AWS events you can trigger your pipeline from,",(0,J.jsx)("br",{}),"you\u2019ll need to set 3 environment variables (",(0,J.jsx)(pe.Z,{href:"https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html",openNewWindow:!0,underline:!0,children:"more info here"}),"):"]}),(0,J.jsx)(O.Z,{mt:1,children:(0,J.jsxs)(_e,{monospace:!0,ordered:!0,children:[(0,J.jsx)(P.ZP,{monospace:!0,children:"AWS_REGION_NAME"}),(0,J.jsx)(P.ZP,{monospace:!0,children:"AWS_ACCESS_KEY_ID"}),(0,J.jsx)(P.ZP,{monospace:!0,children:"AWS_SECRET_ACCESS_KEY"})]})})]})]}),(0,J.jsx)(f.Z,{light:!0,short:!0}),(null===A||void 0===A?void 0:A.length)>=1&&(0,J.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,J.jsx)(Z.Z,{monospace:!0,onChange:function(e){return nn(n,{event_type:e.target.value})},placeholder:"Event provider",value:t||"",children:M.map((function(e){var n=e.label,t=e.uuid;return(0,J.jsx)("option",{value:t,children:n()},t)}))},"event-provider-".concat(o)),(0,J.jsx)(Z.Z,{monospace:!0,onChange:function(e){var t,r=e.target.value,i=null===(t=Xe[r])||void 0===t?void 0:t.event_pattern;nn(n,{name:r,pattern:i?JSON.parse(i):null})},placeholder:"Event name",value:r,children:We.map((function(e){var n=e.name;return(0,J.jsx)("option",{value:n,children:n},n)}))},"event-name-".concat(o)),i&&(0,J.jsx)(te.Z,{language:"json",small:!0,source:l.join("\n")}),(0,J.jsx)(p.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return R((function(e){return(0,N.oM)(e,n)}))},children:(0,J.jsx)(E.rF,{default:!0,size:2*D.iI})},"remove_event")]}))}),(0,J.jsx)(O.Z,{p:D.cd,children:(0,J.jsx)(p.Z,{beforeIcon:(0,J.jsx)(E.mm,{size:2*D.iI}),onClick:function(){return R((function(e){return e.concat({})}))},outline:!0,children:"Add event matcher"})})]})}),[A,We,Xe,Oe,nn]),rn=!0,on=(0,u.useMemo)((function(){var e,n="";return n="".concat(window.origin,"/api/pipeline_schedules/").concat(null===o||void 0===o?void 0:o.id,"/pipeline_runs"),null!==o&&void 0!==o&&o.token&&(n="".concat(n,"/").concat(o.token)),(e=window.location.port)&&(n=n.replace(e,"6789")),(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(O.Z,{mb:D.cd,px:D.cd,children:(0,J.jsx)(m.Z,{children:"Settings"})}),(0,J.jsx)(f.Z,{light:!0,short:!0}),(0,J.jsx)(_.Z,{columnFlex:[null,1],rows:[[(0,J.jsxs)(h.Z,{alignItems:"center",children:[(0,J.jsx)(E.KJ,{default:!0,size:1.5*D.iI}),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(P.ZP,{default:!0,children:"Trigger name"})]},"trigger_name_api"),(0,J.jsx)(le.Z,{monospace:!0,onChange:function(e){e.preventDefault(),he((function(n){return Ie(Ie({},n),{},{name:e.target.value})}))},placeholder:"Name this trigger",value:Oe},"trigger_name_input_api")]]}),(0,J.jsxs)(O.Z,{mb:2,mt:5,px:D.cd,children:[(0,J.jsx)(m.Z,{children:"Endpoint"}),(0,J.jsxs)(P.ZP,{muted:!0,children:["Make a ",(0,J.jsx)(P.ZP,{bold:!0,inline:!0,monospace:!0,children:"POST"})," request to the following endpoint:"]}),(0,J.jsx)(O.Z,{mt:D.Mq,children:(0,J.jsx)(re.Z,{copiedText:n,linkText:n,monospace:!0,withCopyIcon:!0})})]}),(0,J.jsxs)(O.Z,{mb:2,mt:5,px:D.cd,children:[(0,J.jsx)(m.Z,{children:"Payload"}),(0,J.jsx)(P.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,J.jsx)(O.Z,{mt:D.Mq,children:(0,J.jsx)(re.Z,{withCopyIcon:!0,copiedText:'{\n "pipeline_run": {\n "variables": {\n "key1": "value1",\n "key2": "value2"\n }\n }\n}\n',children:(0,J.jsx)(te.Z,{language:"json",small:!0,source:'\n {\n "pipeline_run": {\n "variables": {\n "key1": "value1",\n "key2": "value2"\n }\n }\n }\n'})})})]}),(0,J.jsxs)(O.Z,{mb:2,mt:5,px:D.cd,children:[(0,J.jsx)(m.Z,{children:"Sample cURL command"}),(0,J.jsx)(O.Z,{mt:D.Mq,children:(0,J.jsx)(te.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')})})]})]})}),[Oe,o,rn]),ln=!Ee||b.Xm.TIME===Ee&&!(C&&Ue||!C&&Ue&&Ce)||b.Xm.EVENT===Ee&&(!(null!==A&&void 0!==A&&A.length)||!A.every((function(e){var n=e.event_type,t=e.name;return n&&t}))),cn=(0,u.useMemo)((function(){var e;return(null===r||void 0===r||null===(e=r.blocks)||void 0===e?void 0:e.filter((function(e){var n=e.type;return k.tf.DBT===n})))||[]}),[r]),sn=(0,u.useMemo)((function(){return(0,J.jsxs)(O.Z,{p:D.cd,children:[(0,J.jsxs)(O.Z,{mb:D.HN,children:[(0,J.jsx)(m.Z,{children:"Pipeline run settings"}),(0,J.jsx)(O.Z,{mt:D.Mq,children:(0,J.jsx)(h.Z,{alignItems:"center",children:(0,J.jsx)(ee.Z,{checked:null===G||void 0===G?void 0:G.allow_blocks_to_fail,label:"Keep running pipeline even if blocks fail",onClick:function(){return ie((function(e){return Ie(Ie({},e),{},{allow_blocks_to_fail:!(null!==G&&void 0!==G&&G.allow_blocks_to_fail)})}))}})})}),b.Xm.TIME===Ee&&(0,J.jsx)(O.Z,{mt:D.Mq,children:(0,J.jsx)(h.Z,{alignItems:"center",children:(0,J.jsx)(ee.Z,{checked:null===G||void 0===G?void 0:G.skip_if_previous_running,label:"Skip run if previous run still in progress",onClick:function(){return ie((function(e){return Ie(Ie({},e),{},{skip_if_previous_running:!(null!==G&&void 0!==G&&G.skip_if_previous_running)})}))}})})}),(0,J.jsxs)(O.Z,{mt:D.Mq,children:[(0,J.jsxs)(h.Z,{alignItems:"center",children:[(0,J.jsx)(O.Z,{mr:2,children:(0,J.jsx)(we.Z,{checked:X,onCheck:function(e){B(e),e||he((function(e){return Ie(Ie({},e),{},{slaAmount:0})}))}})}),(0,J.jsx)(P.ZP,{default:!0,monospace:!0,children:"Configure trigger SLA"})]}),X&&(0,J.jsx)(_.Z,{columnFlex:[null,1],rows:[[(0,J.jsxs)(h.Z,{alignItems:"center",children:[(0,J.jsx)(E.aw,{default:!0,size:1.5*D.iI}),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(P.ZP,{default:!0,children:"SLA"})]},"sla_detail"),(0,J.jsxs)(h.Z,{children:[(0,J.jsx)(de.Z,{flex:1,children:(0,J.jsx)(le.Z,{fullWidth:!0,monospace:!0,noBorder:!0,onChange:function(e){e.preventDefault(),he((function(n){return Ie(Ie({},n),{},{slaAmount:e.target.value})}))},placeholder:"Time",value:null===fe||void 0===fe?void 0:fe.slaAmount})}),(0,J.jsx)(de.Z,{flex:1,children:(0,J.jsx)(Z.Z,{fullWidth:!0,monospace:!0,noBorder:!0,onChange:function(e){e.preventDefault(),he((function(n){return Ie(Ie({},n),{},{slaUnit:e.target.value})}))},placeholder:"Select time unit",small:!0,value:null===fe||void 0===fe?void 0:fe.slaUnit,children:Object.keys(U.tL).map((function(e){return(0,J.jsx)("option",{value:e,children:"".concat(e,"(s)")},e)}))})})]},"sla_input_detail")]]})]})]}),(0,J.jsxs)(O.Z,{mb:D.HN,children:[(0,J.jsx)(m.Z,{children:"Runtime variables"}),!(0,L.Qr)(ye)&&(0,J.jsxs)(O.Z,{mt:D.Mq,children:[(0,J.jsxs)(h.Z,{alignItems:"center",children:[(0,J.jsx)(O.Z,{mr:2,children:(0,J.jsx)(we.Z,{checked:z,onCheck:q})}),(0,J.jsx)(P.ZP,{monospace:!0,muted:!0,children:"Overwrite global variables"})]}),z&&ce&&Object.entries(ce).length>0&&(0,J.jsx)(O.Z,{mt:1,children:(0,J.jsx)(_.Z,{columnFlex:[null,1],columns:[{uuid:"Variable"},{uuid:"Value"}],rows:Object.entries(ce).reduce((function(e,n){var t=(0,i.Z)(n,2),r=t[0],o=t[1];return x.sZ===r?e:e.concat([[(0,J.jsx)(P.ZP,{default:!0,monospace:!0,children:r},"variable_".concat(r)),(0,J.jsx)(le.Z,{borderless:!0,monospace:!0,onChange:function(e){e.preventDefault(),se((function(n){return Ie(Ie({},n),{},(0,l.Z)({},r,e.target.value))}))},paddingHorizontal:0,placeholder:"Variable value",value:o},"variable_uuid_input_".concat(r))]])}),[])})})]})]}),(null===cn||void 0===cn?void 0:cn.length)>=1&&(0,J.jsx)(O.Z,{mb:D.HN,children:(0,J.jsx)(ae,{blocks:cn,updateVariables:se,variables:Ie(Ie({},Ye),ce)})})]})}),[cn,X,ye,z,ce,fe,Ee,Ye,B,q,se,G]);return(0,J.jsx)(J.Fragment,{children:(0,J.jsxs)(g.Z,{after:sn,breadcrumbs:[{label:function(){return"Triggers"},linkProps:{as:"/pipelines/".concat(j,"/triggers"),href:"/pipelines/[pipeline]/triggers"}},{label:function(){return null===o||void 0===o?void 0:o.name},linkProps:{as:"/pipelines/".concat(j,"/triggers/").concat(w),href:"/pipelines/[pipeline]/triggers/[...slug]"}}],errors:n,pageName:T.M.TRIGGERS,pipeline:r,setErrors:c,subheader:(0,J.jsxs)(h.Z,{alignItems:"center",children:[(0,J.jsx)(p.Z,{disabled:ln,loading:Ge,onClick:Qe,outline:!0,primary:!0,children:"Save changes"}),(0,J.jsx)(O.Z,{mr:1}),(0,J.jsx)(p.Z,{linkProps:{href:"/pipelines/[pipeline]/triggers/[...slug]",as:"/pipelines/".concat(j,"/triggers/").concat(w)},noHoverUnderline:!0,outline:!0,sameColorAsText:!0,children:"Cancel"})]}),title:function(){return"Edit ".concat(null===o||void 0===o?void 0:o.name)},uuid:"triggers/edit",children:[(0,J.jsxs)(O.Z,{p:D.cd,children:[(0,J.jsxs)(O.Z,{mb:2,children:[(0,J.jsx)(m.Z,{children:"Trigger type"}),(0,J.jsx)(P.ZP,{muted:!0,children:"How would you like this pipeline to be triggered?"})]}),(0,J.jsx)(h.Z,{children:ke(C).map((function(e){var n=e.label,t=e.description,r=e.uuid,i=Ee===r,o=Ee&&!i;return(0,J.jsx)(p.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){b.Xm.EVENT!==r||null!==A&&void 0!==A&&A.length||R([{}]),he((function(e){return Ie(Ie({},e),{},{schedule_type:r})}))},children:(0,J.jsx)(Se.U,{selected:i,children:(0,J.jsxs)(h.Z,{alignItems:"center",children:[(0,J.jsx)(de.Z,{children:(0,J.jsx)("input",{checked:i,type:"radio"})}),(0,J.jsx)(O.Z,{mr:D.cd}),(0,J.jsxs)(de.Z,{alignItems:"flex-start",flexDirection:"column",children:[(0,J.jsx)(m.Z,{bold:!0,default:!i&&!o,level:5,muted:!i&&o,children:n()}),(0,J.jsx)(P.ZP,{default:!i&&!o,leftAligned:!0,muted:o,children:t()})]})]})})},r)}))})]}),(0,J.jsxs)(O.Z,{mt:5,children:[b.Xm.TIME===Ee&&en,b.Xm.EVENT===Ee&&tn,b.Xm.API===Ee&&on]})]})})},De=t(41788),Te=t(70543);function Ne(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 Me(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Ne(Object(t),!0).forEach((function(n){(0,l.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ne(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function Ae(e){var n=e.pipelineScheduleId,t=e.pipelineUUID,r=e.subpath,i=(0,u.useState)(null),o=i[0],l=i[1],c=S.ZP.variables.pipelines.list(t,{},{revalidateOnFocus:!1}).data,s=null===c||void 0===c?void 0:c.variables,a=S.ZP.pipeline_schedules.detail(n),d=a.data,p=a.mutate,f=null===d||void 0===d?void 0:d.pipeline_schedule,h=S.ZP.pipelines.detail(t,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,m=Me(Me({},null===h||void 0===h?void 0:h.pipeline),{},{uuid:t});return Te.b7===r?(0,J.jsx)(Ee,{errors:o,fetchPipelineSchedule:p,pipeline:m,pipelineSchedule:f,setErrors:l,variables:s}):(0,J.jsx)(G,{errors:o,fetchPipelineSchedule:p,pipeline:m,pipelineSchedule:f,setErrors:l,variables:s})}Ae.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 Re=(0,De.Z)(Ae)},95488:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/triggers/[...slug]",function(){return t(70422)}])}},function(e){e.O(0,[844,7607,5896,4804,1774,9350,5872,4495,1424,1005,8180,547,3714,8957,1286,8312,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 v},e7:function(){return m},v0:function(){return p},wx:function(){return g}});var r=t(75582),i=t(82394),c=t(43313),u=t(93348),o=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(c.Dy.length).fill(0);return 0===t.length?null:(t.forEach((function(e){if(c.Dy.includes(e)){var t=c.CC[e],i=n[e],u=i,o=!1,l=[2,3],s=c.Ub[e],d=c.oH[e],p=c.OD[e];if(c.y_.includes(e))o=!0,l=[2,1,2];else if(e in c.Sq){i=(0,a.Jw)(i,0);var f=c.Sq[e];u=n[f]}var h={columnFlexNumbers:l,name:t,progress:o,rate:u,successDirection:d,warning:p};c.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 u=Object.values(t),a=u.length,s=[];s.push({name:"Column count",successDirection:c.oH.column_count,value:(0,l.x6)(a)}),i.forEach((function(e){if(c.Zu.includes(e)){var n=c.CC[e],t=r[e],i=c.OD[e];s.push({name:n,successDirection:c.oH[e],value:(0,l.x6)(t),warning:i})}}));var d=(0,o.QO)(u),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 v(e,n){return n===u.Xm.TIME?e.push({uuid:"execution_date",value:"<run datetime>"}):n===u.Xm.EVENT&&e.push({uuid:"event",value:"<trigger event>"}),e}function m(e){return e?Object.entries(e).reduce((function(e,n){var t=(0,r.Z)(n,2),c=t[0],u=t[1],o=u;try{o=JSON.parse(u)}catch(l){}return d(d({},e),{},(0,i.Z)({},c,o))}),{}):e}},97225:function(e,n,t){"use strict";var r=t(75582),i=t(12691),c=t.n(i),u=t(82684),o=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),v=t(58180),m=t(19711),b=t(82531),x=t(10503),j=t(49125),Z=t(45838),y=t(9736),_=t(96510),P=t(66653),O=t(28598);n.Z=function(e){var n=e.fetchPipelineSchedules,t=e.highlightRowOnHover,i=e.includeCreatedAtColumn,k=e.includePipelineColumn,w=e.pipeline,C=e.pipelineSchedules,S=e.selectedSchedule,I=e.setErrors,E=e.setSelectedSchedule,T=e.stickyHeader,D=null===w||void 0===w?void 0:w.uuid,A=(0,l.useRouter)(),N=(0,u.useRef)({}),H=(0,u.useState)(null),V=H[0],M=H[1],R=(0,u.useState)(0),F=R[0],Y=R[1],B=(0,u.useState)(0),L=B[0],W=B[1],q=(0,o.Db)((function(e){return b.ZP.pipeline_schedules.useUpdate(e.id)({pipeline_schedule:e})}),{onSuccess:function(e){return(0,_.wD)(e,{callback:function(){n()},onErrorCallback:function(e,n){return I({errors:n,response:e})}})}}),z=(0,r.Z)(q,1)[0],J=(0,o.Db)((function(e){return b.ZP.pipeline_schedules.useDelete(e)()}),{onSuccess:function(e){return(0,_.wD)(e,{callback:function(){n(),D?A.push("/pipelines/[pipeline]/triggers","/pipelines/".concat(D,"/triggers")):n()},onErrorCallback:function(e,n){return I({errors:n,response:e})}})}}),U=(0,r.Z)(J,1)[0],Q=[{label:function(){return""},uuid:"action"},{uuid:"Status"},{uuid:"Type"},{uuid:"Name"},{uuid:"Frequency"},{uuid:"Runs"},{uuid:"Latest run status"},{uuid:"Logs"}];(0,y.Ct)()||Q.push({label:function(){return""},uuid:"edit/delete"});var X=[null,1,1,3,1,null,null,null,null];return k&&(Q.splice(2,0,{uuid:"Pipeline"}),X.splice(2,0,2)),i&&(Q.splice(3,0,{uuid:"Created at"}),X.splice(3,0,null)),(0,O.jsx)(Z.cl,{overflowVisible:!0,children:0===C.length?(0,O.jsx)(g.Z,{px:3,py:1,children:(0,O.jsx)(m.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:"No triggers available"})}):(0,O.jsx)(v.Z,{columnFlex:X,columns:Q,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,o=e.created_at,l=e.pipeline_runs_count,v=e.pipeline_uuid,b=e.last_pipeline_run_status,Z=e.name,_=e.schedule_interval,w=e.status,C=D||v;N.current[r]=(0,u.createRef)();var S=[(0,O.jsx)(a.Z,{iconOnly:!0,noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(n){(0,P.j)(n),z({id:e.id,status:f.fq.ACTIVE===w?f.fq.INACTIVE:f.fq.ACTIVE})},children:f.fq.ACTIVE===w?(0,O.jsx)(x.dz,{muted:!0,size:2*j.iI}):(0,O.jsx)(x.Py,{default:!0,size:2*j.iI})},"toggle_trigger_".concat(n)),(0,O.jsx)(m.ZP,{default:f.fq.INACTIVE===w,monospace:!0,success:f.fq.ACTIVE===w,children:w},"trigger_status_".concat(n)),(0,O.jsx)(m.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,O.jsx)(c(),{as:"/pipelines/".concat(C,"/triggers/").concat(r),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,O.jsx)(p.Z,{bold:!0,onClick:function(e){(0,P.j)(e),A.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(C,"/triggers/").concat(r))},sameColorAsText:!0,children:Z})},"trigger_name_".concat(n)),(0,O.jsx)(m.ZP,{default:!0,monospace:!0,children:_},"trigger_frequency_".concat(n)),(0,O.jsx)(m.ZP,{default:!0,monospace:!0,children:l},"trigger_run_count_".concat(n)),(0,O.jsx)(m.ZP,{default:!0,monospace:!0,children:b||"N/A"},"latest_run_status_".concat(n)),(0,O.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return A.push("/pipelines/".concat(C,"/logs?pipeline_schedule_id[]=").concat(r))},children:(0,O.jsx)(x.B4,{default:!0,size:2*j.iI})},"logs_button_".concat(n))];return(0,y.Ct)()||S.push((0,O.jsxs)(d.Z,{children:[(0,O.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return A.push("/pipelines/".concat(C,"/triggers/").concat(r,"/edit"))},title:"Edit",children:(0,O.jsx)(x.I8,{default:!0,size:2*j.iI})}),(0,O.jsx)(g.Z,{mr:1}),(0,O.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){var e,n,t,i;M(r),Y((null===(e=N.current[r])||void 0===e||null===(n=e.current)||void 0===n?void 0:n.offsetTop)||0),W((null===(t=N.current[r])||void 0===t||null===(i=t.current)||void 0===i?void 0:i.offsetLeft)||0)},ref:N.current[r],title:"Delete",children:(0,O.jsx)(x.rF,{default:!0,size:2*j.iI})}),(0,O.jsx)(s.Z,{onClickOutside:function(){return M(null)},open:V===r,children:(0,O.jsx)(h.Z,{danger:!0,left:(L||0)-286,onCancel:function(){return M(null)},onClick:function(){M(null),U(r)},title:"Are you sure you want to delete the trigger ".concat(Z,"?"),top:(F||0)-(n<=1?40:96),width:40*j.iI})})]},"edit_delete_buttons_".concat(n))),k&&S.splice(2,0,(0,O.jsx)(m.ZP,{default:!0,monospace:!0,children:C},"pipeline_name_".concat(n))),i&&S.splice(3,0,(0,O.jsx)(m.ZP,{default:!0,monospace:!0,children:o},"created_at_".concat(n))),S})),stickyHeader:T,uuid:"pipeline-triggers"})})}},51099:function(e,n,t){"use strict";t.d(n,{Q:function(){return s}});t(82684);var r=t(60328),i=t(67971),c=t(86673),u=t(10503),o=t(73899),l=t(49125),a=t(28598),s=22;n.Z=function(e){var n=e.page,t=e.maxPages,s=e.onUpdate,d=e.totalPages,p=[],f=t;if(f>d)p=Array.from({length:d},(function(e,n){return n}));else{var h=Math.floor(f/2),g=n-h;n+h>=d?(g=d-f+2,f-=2):n-h<=0?(g=0,f-=2):(f-=4,g=n-Math.floor(f/2)),p=Array.from({length:f},(function(e,n){return n+g}))}return(0,a.jsx)(a.Fragment,{children:d>0&&(0,a.jsxs)(i.Z,{alignItems:"center",children:[(0,a.jsx)(r.Z,{disabled:0===n,onClick:function(){return s(n-1)},children:(0,a.jsx)(u.Hd,{size:1.5*l.iI,stroke:"#AEAEAE"})}),!p.includes(0)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c.Z,{ml:1,children:(0,a.jsx)(r.Z,{onClick:function(){return s(0)},borderLess:!0,noBackground:!0,children:1})},0),!p.includes(1)&&(0,a.jsx)(c.Z,{ml:1,children:(0,a.jsx)(r.Z,{notClickable:!0,noBackground:!0,noPadding:!0,children:"..."})},0)]}),p.map((function(e){return(0,a.jsx)(c.Z,{ml:1,children:(0,a.jsx)(r.Z,{onClick:function(){e!==n&&s(e)},notClickable:e===n,backgroundColor:e===n&&o.a$,borderLess:!0,noBackground:!0,children:e+1})},e)})),!p.includes(d-1)&&(0,a.jsxs)(a.Fragment,{children:[!p.includes(d-2)&&(0,a.jsx)(c.Z,{ml:1,children:(0,a.jsx)(r.Z,{notClickable:!0,noBackground:!0,noPadding:!0,children:"..."})},0),(0,a.jsx)(c.Z,{ml:1,children:(0,a.jsx)(r.Z,{onClick:function(){return s(d-1)},borderLess:!0,noBackground:!0,children:d})},d-1)]}),(0,a.jsx)(c.Z,{ml:1}),(0,a.jsx)(r.Z,{disabled:n===d-1,onClick:function(){return s(n+1)},children:(0,a.jsx)(u.Kw,{size:1.5*l.iI,stroke:"#AEAEAE"})})]})})}},93348:function(e,n,t){"use strict";t.d(n,{TR:function(){return d},U5:function(){return l},Xm:function(){return c},Z4:function(){return s},fq:function(){return o},kJ:function(){return a}});var r,i,c,u=t(82394);!function(e){e.API="api",e.EVENT="event",e.TIME="time"}(c||(c={}));var o,l,a,s=(r={},(0,u.Z)(r,c.API,(function(){return"API"})),(0,u.Z)(r,c.EVENT,(function(){return"event"})),(0,u.Z)(r,c.TIME,(function(){return"schedule"})),r);!function(e){e.ACTIVE="active",e.INACTIVE="inactive"}(o||(o={})),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,u.Z)(i,a.CREATED_AT,"Created at"),(0,u.Z)(i,a.NAME,"Name"),(0,u.Z)(i,a.PIPELINE,"Pipeline"),(0,u.Z)(i,a.STATUS,"Status"),(0,u.Z)(i,a.TYPE,"Type"),i)},52769:function(e,n,t){"use strict";t.d(n,{C:function(){return r}});var r="global"},29237:function(e,n,t){"use strict";var r=t(9518),i=t(67971),c=t(86673),u=t(19711),o=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!e.borderless&&"\n border: 1px solid ".concat((e.theme.interactive||o.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.success&&"\n background-color: ".concat((e.theme.background||o.Z.background).successLight,";\n ")}),(function(e){return e.success&&!e.borderless&&"\n border: 1px solid ".concat((e.theme.background||o.Z.background).success,";\n ")}),(function(e){return!e.dark&&!e.success&&"\n background-color: ".concat((e.theme.background||o.Z.background).panel,";\n ")}),(function(e){return e.dark&&"\n background-color: ".concat((e.theme.background||o.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||o.Z.background).chartBlock,";\n border-bottom: 1px solid ").concat((e.theme.interactive||o.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 "})),v=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,o=e.contentContainerRef,l=e.dark,a=e.footer,s=e.fullHeight,p=void 0===s||s,m=e.fullWidth,b=void 0===m||m,x=e.header,j=e.headerHeight,Z=e.headerIcon,y=e.headerPaddingVertical,_=e.headerTitle,P=e.maxHeight,O=e.maxWidth,k=e.minWidth,w=e.noPadding,C=e.overflowVisible,S=e.subtitle,I=e.success;return(0,d.jsxs)(f,{borderless:n,dark:l,fullHeight:p,fullWidth:b,maxHeight:P,maxWidth:O,minWidth:k,overflowVisible:C,ref:r,success:I,children:[(x||_)&&(0,d.jsxs)(h,{headerPaddingVertical:y,height:j,children:[x&&x,_&&(0,d.jsx)(i.Z,{alignItems:"center",justifyContent:"space-between",children:(0,d.jsxs)(i.Z,{alignItems:"center",children:[Z&&Z,(0,d.jsx)(c.Z,{ml:Z?1:0,children:(0,d.jsx)(u.ZP,{bold:!0,default:!0,children:_})})]})})]}),(0,d.jsxs)(g,{maxHeight:P,noPadding:w,overflowVisible:C,ref:o,children:[S&&(0,d.jsx)(c.Z,{mb:2,children:(0,d.jsx)(u.ZP,{default:!0,children:S})}),t]}),a&&(0,d.jsx)(v,{children:a})]})}},6087:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return de}});var r=t(77837),i=t(82394),c=t(75582),u=t(38860),o=t.n(u),l=t(12691),a=t.n(l),s=t(82684),d=t(83455),p=t(34376),f=t(60328),h=t(48957),g=t(34744),v=t(67971),m=t(87372),b=t(11135),x=t(10919),j=t(51099),Z=t(60547),y=t(93348),_=t(41788),P=t(29237),O=t(86673),k=t(58180),w=t(19711),C=t(38435),S=t(82944),I=t(70902),E=t(23831),T=t(9518),D=t(73942),A=t(49125),N=T.default.div.withConfig({displayName:"indexstyle__ToggleStyle",componentId:"sc-f9kt7n-0"})(["padding:","px ","px;border-radius:","px;",""],1.5*A.iI,2*A.iI,D.n_,(function(e){return"\n border: 1px solid ".concat((e.theme||E.Z).borders.light,";\n background-color: ").concat((e.theme||E.Z).background.popup,";\n ")})),H=t(90211),V=t(58122),M=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 F(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 Y="".concat(A.iI,"px ").concat(3*A.iI,"px");var B=function(e){var n=e.initialPipelineSchedulePayload,t=e.onCancel,r=e.onSuccess,u=e.variables,o=(0,s.useState)(!1),l=o[0],a=o[1],d=(0,s.useState)({}),p=d[0],h=d[1],g=(0,s.useState)(u||{}),b=g[0],x=g[1],j=(0,s.useMemo)((function(){return F(F({},n),{},{name:(0,H.Y6)(),variables:l?(0,V.e7)(b):null})}),[n,l,b]),Z=function(e,n){var t={borderless:!0,key:"variable_uuid_input_".concat(e),monospace:!0,onChange:function(n){n.preventDefault(),x((function(t){return F(F({},t),{},(0,i.Z)({},e,n.target.value))}))},paddingHorizontal:0,placeholder:"Variable value",value:n};return p[e]?(0,M.jsx)(C.Z,F(F({},t),{},{rows:1,value:n})):(0,M.jsx)(S.Z,F({},t))};return(0,s.useEffect)((function(){var e=Object.entries(b).reduce((function(e,n){var t=(0,c.Z)(n,2),r=t[0],u=t[1],o=(0,H.Pb)(u)&&"object"===typeof JSON.parse(u)&&!Array.isArray(JSON.parse(u))&&null!==JSON.parse(u);return F(F({},e),{},(0,i.Z)({},r,o))}),{});h(e)}),[]),(0,M.jsxs)(P.Z,{footer:(0,M.jsxs)(v.Z,{alignItems:"center",fullWidth:!0,justifyContent:"flex-end",children:[(0,M.jsx)(f.Z,{onClick:function(){r({pipeline_schedule:j}),t()},padding:Y,primaryAlternate:!0,children:"Run now"}),(0,M.jsx)(O.Z,{mr:1}),(0,M.jsx)(f.Z,{borderColor:E.Z.background.page,onClick:t,padding:Y,secondary:!0,children:"Cancel"})]}),header:(0,M.jsx)(m.Z,{level:5,children:"Run pipeline now"}),maxHeight:"90vh",minWidth:85*A.iI,subtitle:"Creates a new trigger and immediately runs the current pipeline once.",children:[(0,M.jsx)(N,{children:(0,M.jsxs)(v.Z,{alignItems:"center",children:[(0,M.jsx)(O.Z,{mr:2,children:(0,M.jsx)(I.Z,{checked:l,onCheck:a})}),(0,M.jsx)(w.ZP,{bold:!0,large:!0,children:"Overwrite runtime variables"})]})}),l&&b&&Object.entries(b).length>0&&(0,M.jsx)(O.Z,{mt:2,children:(0,M.jsx)(k.Z,{columnFlex:[null,1],columns:[{uuid:"Variable"},{uuid:"Value"}],rows:Object.entries(b).map((function(e){var n=(0,c.Z)(e,2),t=n[0],r=n[1];return[(0,M.jsx)(w.ZP,{default:!0,monospace:!0,children:t},"variable_".concat(t)),Z(t,r)]}))})})]})},L=t(37391),W=T.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-1xgfh62-0"})(["border-bottom:1px solid ",";padding:","px;"],E.Z.borders.medium,A.tr),q=T.default.div.withConfig({displayName:"indexstyle__CardsStyle",componentId:"sc-1xgfh62-1"})([""," height:80px;display:flex;overflow-x:scroll;"],L.w5),z=T.default.div.withConfig({displayName:"indexstyle__VariableCardStyle",componentId:"sc-1xgfh62-2"})(["background-color:",";border-radius:","px;flex-shrink:0;margin-right:","px;padding:","px;"],E.Z.background.output,D.n_,A.iI,A.tr),J=t(73899);var U=function(e){var n=e.hasOverride,t=e.scheduleType,r=e.variables,i=e.variablesOverride,u=[];return Object.entries(r).forEach((function(e){var n=(0,c.Z)(e,2),t=n[0],r=n[1],o=null===i||void 0===i?void 0:i[t];u.push({uuid:t,value:(0,V.FS)(o||r)})})),(0,V.JZ)(u,t),(0,M.jsxs)(W,{children:[(0,M.jsx)(O.Z,{mb:2,children:(0,M.jsxs)(w.ZP,{bold:!0,large:!0,monospace:!0,muted:!0,children:["Runtime variables",n&&" (override)"]})}),(0,M.jsx)(q,{noScrollbarTrackBackground:!0,children:r&&u.map((function(e){var n=e.uuid,t=e.value;return(0,M.jsxs)(z,{children:[(0,M.jsx)(w.ZP,{monospace:!0,small:!0,children:n}),(0,M.jsx)(w.ZP,{color:J.Or,monospace:!0,small:!0,children:(0,V.FS)(t)})]})}))})]})},Q=t(54283),X=t(46261),G=t(97225),$=t(82531),K=t(10503),ee=t(52769),ne=t(59920),te=t(42305),re=t(7715),ie=t(9736),ce=t(96510),ue=t(59e3),oe=t(99497);function le(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?le(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):le(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function se(e){var n=e.pipeline,t=(0,p.useRouter)(),r=(0,ie.Ct)(),u=n.uuid,o=(0,s.useState)(null),l=o[0],_=o[1],P=$.ZP.variables.pipelines.list(u,{},{revalidateOnFocus:!1}).data,k=null===P||void 0===P?void 0:P.variables,C=(0,ue.iV)(),S=null!==C&&void 0!==C&&C.page?C.page:0,I=$.ZP.pipeline_schedules.pipelines.list(u,{_limit:j.Q,_offset:(null!==C&&void 0!==C&&C.page?C.page:0)*j.Q},{refreshInterval:7500}),E=I.data,T=I.mutate,D=(0,s.useMemo)((function(){return(null===E||void 0===E?void 0:E.pipeline_schedules)||[]}),[E]),N=function(e){return(0,d.Db)($.ZP.pipeline_schedules.pipelines.useCreate(u),{onSuccess:function(n){return(0,ce.wD)(n,{callback:function(n){var t=n.pipeline_schedule.id;null===e||void 0===e||e(t)},onErrorCallback:function(e,n){return _({errors:n,response:e})}})}})},R=N((function(e){return t.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(null===n||void 0===n?void 0:n.uuid,"/triggers/").concat(e,"/edit"))})),F=(0,c.Z)(R,2),Y=F[0],L=F[1].isLoading,W=N(T),q=(0,c.Z)(W,2),z=q[0],J=q[1].isLoading,le=(0,s.useMemo)((function(){var e;return null===(e=(0,V.wx)(k,(function(e){return e.uuid===ee.C})))||void 0===e?void 0:e.reduce((function(e,n){var t=n.uuid,r=n.value;return ae(ae({},e),{},(0,i.Z)({},t,r))}),{})}),[k]),se={name:(0,H.Y6)(),schedule_interval:y.U5.ONCE,schedule_type:y.Xm.TIME,start_time:(0,te.d$)((new Date).toISOString(),{dayAgo:!0,utcFormat:!0}),status:y.fq.ACTIVE},de=(0,oe.dd)((function(){return(0,M.jsx)(B,{initialPipelineSchedulePayload:se,onCancel:he,onSuccess:z,variables:le})}),{},[k,le],{background:!0,uuid:"run_pipeline_now_popup"}),pe=(0,c.Z)(de,2),fe=pe[0],he=pe[1],ge=(0,s.useState)(),ve=ge[0],me=ge[1],be=(0,s.useMemo)((function(){var e=null===ve||void 0===ve?void 0:ve.variables,n=!(0,re.Qr)(e),t=n?null===ve||void 0===ve?void 0:ve.variables:(0,re.Qr)(le)?null:le;return function(i){var c=i.height-(t?151:80);return(0,M.jsxs)(M.Fragment,{children:[t&&(0,M.jsx)(U,{hasOverride:n,scheduleType:null===ve||void 0===ve?void 0:ve.schedule_type,variables:le,variablesOverride:e}),!t&&(0,M.jsxs)(O.Z,{p:A.cd,children:[(0,M.jsx)(w.ZP,{children:"This pipeline has no runtime variables."}),!r&&(0,M.jsxs)(O.Z,{mt:1,children:[(0,M.jsx)(a(),{as:"/pipelines/".concat(u,"/edit?sideview=variables"),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,M.jsx)(x.Z,{primary:!0,children:"Click here"})})," ",(0,M.jsx)(w.ZP,{inline:!0,children:"to add variables to this pipeline."})]})]}),(0,M.jsx)(h.Z,ae(ae({},i),{},{height:c,noStatus:!0}))]})}}),[r,u,null===ve||void 0===ve?void 0:ve.schedule_type,null===ve||void 0===ve?void 0:ve.variables,le]),xe=(0,s.useMemo)((function(){var e;return(null===E||void 0===E||null===(e=E.metadata)||void 0===e?void 0:e.count)||[]}),[E]);return(0,M.jsxs)(Z.Z,{breadcrumbs:[{label:function(){return"Triggers"}}],buildSidekick:be,errors:l,pageName:ne.M.TRIGGERS,pipeline:n,setErrors:_,subheaderBackgroundImage:"/images/banner-shape-purple-peach.jpg",subheaderButton:(0,M.jsx)(b.ZP,{beforeElement:(0,M.jsx)(K.mm,{size:2.5*A.iI}),blackBorder:!0,inline:!0,loading:L,noHoverUnderline:!0,onClick:function(){return Y({pipeline_schedule:{name:(0,H.Y6)()}})},sameColorAsText:!0,uuid:"PipelineDetailPage/add_new_schedule",children:"Create new trigger"}),subheaderText:(0,M.jsx)(w.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(ne.M.TRIGGERS,"_").concat(u),children:[(0,M.jsx)(O.Z,{mt:A.cd,px:A.cd,children:(0,M.jsxs)(v.Z,{justifyContent:"space-between",children:[(0,M.jsx)(m.Z,{level:5,children:"Pipeline triggers"}),(0,M.jsx)(X.Z,{appearBefore:!0,default:!0,fullSize:!0,label:"Creates an @once trigger and runs pipeline immediately",widthFitContent:!0,children:(0,M.jsx)(f.Z,{beforeIcon:(0,M.jsx)(K.JM,{inverted:!0,size:2*A.iI}),disabled:r,loading:J,onClick:(0,re.Qr)(le)?function(){return z({pipeline_schedule:se})}:fe,outline:!0,success:!r,children:"Run pipeline now"})})]})}),(0,M.jsx)(g.Z,{light:!0,mt:A.cd,short:!0}),E?(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(G.Z,{fetchPipelineSchedules:T,pipeline:n,pipelineSchedules:D,selectedSchedule:ve,setErrors:_,setSelectedSchedule:me}),(0,M.jsx)(O.Z,{p:2,children:(0,M.jsx)(j.Z,{maxPages:9,onUpdate:function(e){var n=Number(e),r=ae(ae({},C),{},{page:n>=0?n:0});t.push("/pipelines/[pipeline]/triggers","/pipelines/".concat(u,"/triggers?").concat((0,ue.uM)(r)))},page:Number(S),totalPages:Math.ceil(xe/j.Q)})})]}):(0,M.jsx)(O.Z,{m:2,children:(0,M.jsx)(Q.Z,{inverted:!0})})]})}se.getInitialProps=function(){var e=(0,r.Z)(o().mark((function e(n){var t;return o().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 de=(0,_.Z)(se)},42305:function(e,n,t){"use strict";t.d(n,{A5:function(){return p},AY:function(){return f},BP:function(){return d},JX:function(){return s},OC:function(){return c},Pc:function(){return h},Tz:function(){return a},d$:function(){return l},lJ:function(){return g},n1:function(){return o}});var r=t(92083),i=t.n(r),c="YYYY-MM-DD HH:mm:ss",u="YYYY-MM-DD HH:mm",o="YYYY-MM-DD";function l(e,n){var t=n.dayAgo,r=n.includeSeconds,o=n.utcFormat,l=i()(e),a=u;return o&&(l=l.utc()),t&&(l=l.subtract(1,"days")),r&&(a=c),l.format(a)}function a(e){var n=l((new Date).toISOString(),{includeSeconds:!0,utcFormat:!0});return null!==e&&void 0!==e&&e.dateObj?new Date(n):n}function s(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i().unix(e).format(null!==n&&void 0!==n&&n.withSeconds?c:u)}function d(e,n,t){return i()(e).utc().hours(+n).minutes(+t).format()}function p(e){return i()(e).unix()}function f(e,n,t,r){var i="".concat(e.toISOString().split("T")[0]," ").concat(n,":").concat(t);return r?"".concat(i,":").concat(r):i}function h(e){var n=i().unix(+e).utc();return{date:n.toDate(),hour:String(n.hour()),minute:String(n.minute())}}function g(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,[844,7607,5896,4804,1774,5872,1424,1005,8180,547,8957,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 v},e7:function(){return m},v0:function(){return p},wx:function(){return g}});var r=t(75582),i=t(82394),c=t(43313),u=t(93348),o=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(c.Dy.length).fill(0);return 0===t.length?null:(t.forEach((function(e){if(c.Dy.includes(e)){var t=c.CC[e],i=n[e],u=i,o=!1,l=[2,3],s=c.Ub[e],d=c.oH[e],p=c.OD[e];if(c.y_.includes(e))o=!0,l=[2,1,2];else if(e in c.Sq){i=(0,a.Jw)(i,0);var f=c.Sq[e];u=n[f]}var h={columnFlexNumbers:l,name:t,progress:o,rate:u,successDirection:d,warning:p};c.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 u=Object.values(t),a=u.length,s=[];s.push({name:"Column count",successDirection:c.oH.column_count,value:(0,l.x6)(a)}),i.forEach((function(e){if(c.Zu.includes(e)){var n=c.CC[e],t=r[e],i=c.OD[e];s.push({name:n,successDirection:c.oH[e],value:(0,l.x6)(t),warning:i})}}));var d=(0,o.QO)(u),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 v(e,n){return n===u.Xm.TIME?e.push({uuid:"execution_date",value:"<run datetime>"}):n===u.Xm.EVENT&&e.push({uuid:"event",value:"<trigger event>"}),e}function m(e){return e?Object.entries(e).reduce((function(e,n){var t=(0,r.Z)(n,2),c=t[0],u=t[1],o=u;try{o=JSON.parse(u)}catch(l){}return d(d({},e),{},(0,i.Z)({},c,o))}),{}):e}},97225:function(e,n,t){"use strict";var r=t(75582),i=t(12691),c=t.n(i),u=t(82684),o=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),v=t(58180),m=t(19711),b=t(82531),x=t(10503),j=t(49125),Z=t(45838),y=t(9736),_=t(96510),P=t(66653),O=t(28598);n.Z=function(e){var n=e.fetchPipelineSchedules,t=e.highlightRowOnHover,i=e.includeCreatedAtColumn,k=e.includePipelineColumn,w=e.pipeline,C=e.pipelineSchedules,S=e.selectedSchedule,I=e.setErrors,E=e.setSelectedSchedule,T=e.stickyHeader,D=null===w||void 0===w?void 0:w.uuid,A=(0,l.useRouter)(),N=(0,u.useRef)({}),H=(0,u.useState)(null),V=H[0],M=H[1],R=(0,u.useState)(0),F=R[0],Y=R[1],B=(0,u.useState)(0),L=B[0],W=B[1],q=(0,o.Db)((function(e){return b.ZP.pipeline_schedules.useUpdate(e.id)({pipeline_schedule:e})}),{onSuccess:function(e){return(0,_.wD)(e,{callback:function(){n()},onErrorCallback:function(e,n){return I({errors:n,response:e})}})}}),z=(0,r.Z)(q,1)[0],J=(0,o.Db)((function(e){return b.ZP.pipeline_schedules.useDelete(e)()}),{onSuccess:function(e){return(0,_.wD)(e,{callback:function(){n(),D?A.push("/pipelines/[pipeline]/triggers","/pipelines/".concat(D,"/triggers")):n()},onErrorCallback:function(e,n){return I({errors:n,response:e})}})}}),U=(0,r.Z)(J,1)[0],Q=[{label:function(){return""},uuid:"action"},{uuid:"Status"},{uuid:"Type"},{uuid:"Name"},{uuid:"Frequency"},{uuid:"Runs"},{uuid:"Latest run status"},{uuid:"Logs"}];(0,y.Ct)()||Q.push({label:function(){return""},uuid:"edit/delete"});var X=[null,1,1,3,1,null,null,null,null];return k&&(Q.splice(2,0,{uuid:"Pipeline"}),X.splice(2,0,2)),i&&(Q.splice(3,0,{uuid:"Created at"}),X.splice(3,0,null)),(0,O.jsx)(Z.cl,{overflowVisible:!0,children:0===C.length?(0,O.jsx)(g.Z,{px:3,py:1,children:(0,O.jsx)(m.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:"No triggers available"})}):(0,O.jsx)(v.Z,{columnFlex:X,columns:Q,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,o=e.created_at,l=e.pipeline_runs_count,v=e.pipeline_uuid,b=e.last_pipeline_run_status,Z=e.name,_=e.schedule_interval,w=e.status,C=D||v;N.current[r]=(0,u.createRef)();var S=[(0,O.jsx)(a.Z,{iconOnly:!0,noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(n){(0,P.j)(n),z({id:e.id,status:f.fq.ACTIVE===w?f.fq.INACTIVE:f.fq.ACTIVE})},children:f.fq.ACTIVE===w?(0,O.jsx)(x.dz,{muted:!0,size:2*j.iI}):(0,O.jsx)(x.Py,{default:!0,size:2*j.iI})},"toggle_trigger_".concat(n)),(0,O.jsx)(m.ZP,{default:f.fq.INACTIVE===w,monospace:!0,success:f.fq.ACTIVE===w,children:w},"trigger_status_".concat(n)),(0,O.jsx)(m.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,O.jsx)(c(),{as:"/pipelines/".concat(C,"/triggers/").concat(r),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,O.jsx)(p.Z,{bold:!0,onClick:function(e){(0,P.j)(e),A.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(C,"/triggers/").concat(r))},sameColorAsText:!0,children:Z})},"trigger_name_".concat(n)),(0,O.jsx)(m.ZP,{default:!0,monospace:!0,children:_},"trigger_frequency_".concat(n)),(0,O.jsx)(m.ZP,{default:!0,monospace:!0,children:l},"trigger_run_count_".concat(n)),(0,O.jsx)(m.ZP,{default:!0,monospace:!0,children:b||"N/A"},"latest_run_status_".concat(n)),(0,O.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return A.push("/pipelines/".concat(C,"/logs?pipeline_schedule_id[]=").concat(r))},children:(0,O.jsx)(x.B4,{default:!0,size:2*j.iI})},"logs_button_".concat(n))];return(0,y.Ct)()||S.push((0,O.jsxs)(d.Z,{children:[(0,O.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return A.push("/pipelines/".concat(C,"/triggers/").concat(r,"/edit"))},title:"Edit",children:(0,O.jsx)(x.I8,{default:!0,size:2*j.iI})}),(0,O.jsx)(g.Z,{mr:1}),(0,O.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){var e,n,t,i;M(r),Y((null===(e=N.current[r])||void 0===e||null===(n=e.current)||void 0===n?void 0:n.offsetTop)||0),W((null===(t=N.current[r])||void 0===t||null===(i=t.current)||void 0===i?void 0:i.offsetLeft)||0)},ref:N.current[r],title:"Delete",children:(0,O.jsx)(x.rF,{default:!0,size:2*j.iI})}),(0,O.jsx)(s.Z,{onClickOutside:function(){return M(null)},open:V===r,children:(0,O.jsx)(h.Z,{danger:!0,left:(L||0)-286,onCancel:function(){return M(null)},onClick:function(){M(null),U(r)},title:"Are you sure you want to delete the trigger ".concat(Z,"?"),top:(F||0)-(n<=1?40:96),width:40*j.iI})})]},"edit_delete_buttons_".concat(n))),k&&S.splice(2,0,(0,O.jsx)(m.ZP,{default:!0,monospace:!0,children:C},"pipeline_name_".concat(n))),i&&S.splice(3,0,(0,O.jsx)(m.ZP,{default:!0,monospace:!0,children:o},"created_at_".concat(n))),S})),stickyHeader:T,uuid:"pipeline-triggers"})})}},51099:function(e,n,t){"use strict";t.d(n,{Q:function(){return s}});t(82684);var r=t(60328),i=t(67971),c=t(86673),u=t(10503),o=t(73899),l=t(49125),a=t(28598),s=22;n.Z=function(e){var n=e.page,t=e.maxPages,s=e.onUpdate,d=e.totalPages,p=[],f=t;if(f>d)p=Array.from({length:d},(function(e,n){return n}));else{var h=Math.floor(f/2),g=n-h;n+h>=d?(g=d-f+2,f-=2):n-h<=0?(g=0,f-=2):(f-=4,g=n-Math.floor(f/2)),p=Array.from({length:f},(function(e,n){return n+g}))}return(0,a.jsx)(a.Fragment,{children:d>0&&(0,a.jsxs)(i.Z,{alignItems:"center",children:[(0,a.jsx)(r.Z,{disabled:0===n,onClick:function(){return s(n-1)},children:(0,a.jsx)(u.Hd,{size:1.5*l.iI,stroke:"#AEAEAE"})}),!p.includes(0)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c.Z,{ml:1,children:(0,a.jsx)(r.Z,{onClick:function(){return s(0)},borderLess:!0,noBackground:!0,children:1})},0),!p.includes(1)&&(0,a.jsx)(c.Z,{ml:1,children:(0,a.jsx)(r.Z,{notClickable:!0,noBackground:!0,noPadding:!0,children:"..."})},0)]}),p.map((function(e){return(0,a.jsx)(c.Z,{ml:1,children:(0,a.jsx)(r.Z,{onClick:function(){e!==n&&s(e)},notClickable:e===n,backgroundColor:e===n&&o.a$,borderLess:!0,noBackground:!0,children:e+1})},e)})),!p.includes(d-1)&&(0,a.jsxs)(a.Fragment,{children:[!p.includes(d-2)&&(0,a.jsx)(c.Z,{ml:1,children:(0,a.jsx)(r.Z,{notClickable:!0,noBackground:!0,noPadding:!0,children:"..."})},0),(0,a.jsx)(c.Z,{ml:1,children:(0,a.jsx)(r.Z,{onClick:function(){return s(d-1)},borderLess:!0,noBackground:!0,children:d})},d-1)]}),(0,a.jsx)(c.Z,{ml:1}),(0,a.jsx)(r.Z,{disabled:n===d-1,onClick:function(){return s(n+1)},children:(0,a.jsx)(u.Kw,{size:1.5*l.iI,stroke:"#AEAEAE"})})]})})}},93348:function(e,n,t){"use strict";t.d(n,{TR:function(){return d},U5:function(){return l},Xm:function(){return c},Z4:function(){return s},fq:function(){return o},kJ:function(){return a}});var r,i,c,u=t(82394);!function(e){e.API="api",e.EVENT="event",e.TIME="time"}(c||(c={}));var o,l,a,s=(r={},(0,u.Z)(r,c.API,(function(){return"API"})),(0,u.Z)(r,c.EVENT,(function(){return"event"})),(0,u.Z)(r,c.TIME,(function(){return"schedule"})),r);!function(e){e.ACTIVE="active",e.INACTIVE="inactive"}(o||(o={})),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,u.Z)(i,a.CREATED_AT,"Created at"),(0,u.Z)(i,a.NAME,"Name"),(0,u.Z)(i,a.PIPELINE,"Pipeline"),(0,u.Z)(i,a.STATUS,"Status"),(0,u.Z)(i,a.TYPE,"Type"),i)},52769:function(e,n,t){"use strict";t.d(n,{C:function(){return r}});var r="global"},29237:function(e,n,t){"use strict";var r=t(9518),i=t(67971),c=t(86673),u=t(19711),o=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!e.borderless&&"\n border: 1px solid ".concat((e.theme.interactive||o.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.success&&"\n background-color: ".concat((e.theme.background||o.Z.background).successLight,";\n ")}),(function(e){return e.success&&!e.borderless&&"\n border: 1px solid ".concat((e.theme.background||o.Z.background).success,";\n ")}),(function(e){return!e.dark&&!e.success&&"\n background-color: ".concat((e.theme.background||o.Z.background).panel,";\n ")}),(function(e){return e.dark&&"\n background-color: ".concat((e.theme.background||o.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||o.Z.background).chartBlock,";\n border-bottom: 1px solid ").concat((e.theme.interactive||o.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 "})),v=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,o=e.contentContainerRef,l=e.dark,a=e.footer,s=e.fullHeight,p=void 0===s||s,m=e.fullWidth,b=void 0===m||m,x=e.header,j=e.headerHeight,Z=e.headerIcon,y=e.headerPaddingVertical,_=e.headerTitle,P=e.maxHeight,O=e.maxWidth,k=e.minWidth,w=e.noPadding,C=e.overflowVisible,S=e.subtitle,I=e.success;return(0,d.jsxs)(f,{borderless:n,dark:l,fullHeight:p,fullWidth:b,maxHeight:P,maxWidth:O,minWidth:k,overflowVisible:C,ref:r,success:I,children:[(x||_)&&(0,d.jsxs)(h,{headerPaddingVertical:y,height:j,children:[x&&x,_&&(0,d.jsx)(i.Z,{alignItems:"center",justifyContent:"space-between",children:(0,d.jsxs)(i.Z,{alignItems:"center",children:[Z&&Z,(0,d.jsx)(c.Z,{ml:Z?1:0,children:(0,d.jsx)(u.ZP,{bold:!0,default:!0,children:_})})]})})]}),(0,d.jsxs)(g,{maxHeight:P,noPadding:w,overflowVisible:C,ref:o,children:[S&&(0,d.jsx)(c.Z,{mb:2,children:(0,d.jsx)(u.ZP,{default:!0,children:S})}),t]}),a&&(0,d.jsx)(v,{children:a})]})}},6087:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return de}});var r=t(77837),i=t(82394),c=t(75582),u=t(38860),o=t.n(u),l=t(12691),a=t.n(l),s=t(82684),d=t(83455),p=t(34376),f=t(60328),h=t(48957),g=t(34744),v=t(67971),m=t(87372),b=t(11135),x=t(10919),j=t(51099),Z=t(60547),y=t(93348),_=t(41788),P=t(29237),O=t(86673),k=t(58180),w=t(19711),C=t(38435),S=t(82944),I=t(70902),E=t(23831),T=t(9518),D=t(73942),A=t(49125),N=T.default.div.withConfig({displayName:"indexstyle__ToggleStyle",componentId:"sc-f9kt7n-0"})(["padding:","px ","px;border-radius:","px;",""],1.5*A.iI,2*A.iI,D.n_,(function(e){return"\n border: 1px solid ".concat((e.theme||E.Z).borders.light,";\n background-color: ").concat((e.theme||E.Z).background.popup,";\n ")})),H=t(90211),V=t(58122),M=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 F(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 Y="".concat(A.iI,"px ").concat(3*A.iI,"px");var B=function(e){var n=e.initialPipelineSchedulePayload,t=e.onCancel,r=e.onSuccess,u=e.variables,o=(0,s.useState)(!1),l=o[0],a=o[1],d=(0,s.useState)({}),p=d[0],h=d[1],g=(0,s.useState)(u||{}),b=g[0],x=g[1],j=(0,s.useMemo)((function(){return F(F({},n),{},{name:(0,H.Y6)(),variables:l?(0,V.e7)(b):null})}),[n,l,b]),Z=function(e,n){var t={borderless:!0,key:"variable_uuid_input_".concat(e),monospace:!0,onChange:function(n){n.preventDefault(),x((function(t){return F(F({},t),{},(0,i.Z)({},e,n.target.value))}))},paddingHorizontal:0,placeholder:"Variable value",value:n};return p[e]?(0,M.jsx)(C.Z,F(F({},t),{},{rows:1,value:n})):(0,M.jsx)(S.Z,F({},t))};return(0,s.useEffect)((function(){var e=Object.entries(b).reduce((function(e,n){var t=(0,c.Z)(n,2),r=t[0],u=t[1],o=(0,H.Pb)(u)&&"object"===typeof JSON.parse(u)&&!Array.isArray(JSON.parse(u))&&null!==JSON.parse(u);return F(F({},e),{},(0,i.Z)({},r,o))}),{});h(e)}),[]),(0,M.jsxs)(P.Z,{footer:(0,M.jsxs)(v.Z,{alignItems:"center",fullWidth:!0,justifyContent:"flex-end",children:[(0,M.jsx)(f.Z,{onClick:function(){r({pipeline_schedule:j}),t()},padding:Y,primaryAlternate:!0,children:"Run now"}),(0,M.jsx)(O.Z,{mr:1}),(0,M.jsx)(f.Z,{borderColor:E.Z.background.page,onClick:t,padding:Y,secondary:!0,children:"Cancel"})]}),header:(0,M.jsx)(m.Z,{level:5,children:"Run pipeline now"}),maxHeight:"90vh",minWidth:85*A.iI,subtitle:"Creates a new trigger and immediately runs the current pipeline once.",children:[(0,M.jsx)(N,{children:(0,M.jsxs)(v.Z,{alignItems:"center",children:[(0,M.jsx)(O.Z,{mr:2,children:(0,M.jsx)(I.Z,{checked:l,onCheck:a})}),(0,M.jsx)(w.ZP,{bold:!0,large:!0,children:"Overwrite runtime variables"})]})}),l&&b&&Object.entries(b).length>0&&(0,M.jsx)(O.Z,{mt:2,children:(0,M.jsx)(k.Z,{columnFlex:[null,1],columns:[{uuid:"Variable"},{uuid:"Value"}],rows:Object.entries(b).map((function(e){var n=(0,c.Z)(e,2),t=n[0],r=n[1];return[(0,M.jsx)(w.ZP,{default:!0,monospace:!0,children:t},"variable_".concat(t)),Z(t,r)]}))})})]})},L=t(37391),W=T.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-1xgfh62-0"})(["border-bottom:1px solid ",";padding:","px;"],E.Z.borders.medium,A.tr),q=T.default.div.withConfig({displayName:"indexstyle__CardsStyle",componentId:"sc-1xgfh62-1"})([""," height:80px;display:flex;overflow-x:scroll;"],L.w5),z=T.default.div.withConfig({displayName:"indexstyle__VariableCardStyle",componentId:"sc-1xgfh62-2"})(["background-color:",";border-radius:","px;flex-shrink:0;margin-right:","px;padding:","px;"],E.Z.background.output,D.n_,A.iI,A.tr),J=t(73899);var U=function(e){var n=e.hasOverride,t=e.scheduleType,r=e.variables,i=e.variablesOverride,u=[];return Object.entries(r).forEach((function(e){var n=(0,c.Z)(e,2),t=n[0],r=n[1],o=null===i||void 0===i?void 0:i[t];u.push({uuid:t,value:(0,V.FS)(o||r)})})),(0,V.JZ)(u,t),(0,M.jsxs)(W,{children:[(0,M.jsx)(O.Z,{mb:2,children:(0,M.jsxs)(w.ZP,{bold:!0,large:!0,monospace:!0,muted:!0,children:["Runtime variables",n&&" (override)"]})}),(0,M.jsx)(q,{noScrollbarTrackBackground:!0,children:r&&u.map((function(e){var n=e.uuid,t=e.value;return(0,M.jsxs)(z,{children:[(0,M.jsx)(w.ZP,{monospace:!0,small:!0,children:n}),(0,M.jsx)(w.ZP,{color:J.Or,monospace:!0,small:!0,children:(0,V.FS)(t)})]})}))})]})},Q=t(54283),X=t(46261),G=t(97225),$=t(82531),K=t(10503),ee=t(52769),ne=t(59920),te=t(42305),re=t(7715),ie=t(9736),ce=t(96510),ue=t(59e3),oe=t(99497);function le(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?le(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):le(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function se(e){var n=e.pipeline,t=(0,p.useRouter)(),r=(0,ie.Ct)(),u=n.uuid,o=(0,s.useState)(null),l=o[0],_=o[1],P=$.ZP.variables.pipelines.list(u,{},{revalidateOnFocus:!1}).data,k=null===P||void 0===P?void 0:P.variables,C=(0,ue.iV)(),S=null!==C&&void 0!==C&&C.page?C.page:0,I=$.ZP.pipeline_schedules.pipelines.list(u,{_limit:j.Q,_offset:(null!==C&&void 0!==C&&C.page?C.page:0)*j.Q},{refreshInterval:7500}),E=I.data,T=I.mutate,D=(0,s.useMemo)((function(){return(null===E||void 0===E?void 0:E.pipeline_schedules)||[]}),[E]),N=function(e){return(0,d.Db)($.ZP.pipeline_schedules.pipelines.useCreate(u),{onSuccess:function(n){return(0,ce.wD)(n,{callback:function(n){var t=n.pipeline_schedule.id;null===e||void 0===e||e(t)},onErrorCallback:function(e,n){return _({errors:n,response:e})}})}})},R=N((function(e){return t.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(null===n||void 0===n?void 0:n.uuid,"/triggers/").concat(e,"/edit"))})),F=(0,c.Z)(R,2),Y=F[0],L=F[1].isLoading,W=N(T),q=(0,c.Z)(W,2),z=q[0],J=q[1].isLoading,le=(0,s.useMemo)((function(){var e;return null===(e=(0,V.wx)(k,(function(e){return e.uuid===ee.C})))||void 0===e?void 0:e.reduce((function(e,n){var t=n.uuid,r=n.value;return ae(ae({},e),{},(0,i.Z)({},t,r))}),{})}),[k]),se={name:(0,H.Y6)(),schedule_interval:y.U5.ONCE,schedule_type:y.Xm.TIME,start_time:(0,te.d$)((new Date).toISOString(),{dayAgo:!0,utcFormat:!0}),status:y.fq.ACTIVE},de=(0,oe.dd)((function(){return(0,M.jsx)(B,{initialPipelineSchedulePayload:se,onCancel:he,onSuccess:z,variables:le})}),{},[k,le],{background:!0,uuid:"run_pipeline_now_popup"}),pe=(0,c.Z)(de,2),fe=pe[0],he=pe[1],ge=(0,s.useState)(),ve=ge[0],me=ge[1],be=(0,s.useMemo)((function(){var e=null===ve||void 0===ve?void 0:ve.variables,n=!(0,re.Qr)(e),t=n?null===ve||void 0===ve?void 0:ve.variables:(0,re.Qr)(le)?null:le;return function(i){var c=i.height-(t?151:80);return(0,M.jsxs)(M.Fragment,{children:[t&&(0,M.jsx)(U,{hasOverride:n,scheduleType:null===ve||void 0===ve?void 0:ve.schedule_type,variables:le,variablesOverride:e}),!t&&(0,M.jsxs)(O.Z,{p:A.cd,children:[(0,M.jsx)(w.ZP,{children:"This pipeline has no runtime variables."}),!r&&(0,M.jsxs)(O.Z,{mt:1,children:[(0,M.jsx)(a(),{as:"/pipelines/".concat(u,"/edit?sideview=variables"),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,M.jsx)(x.Z,{primary:!0,children:"Click here"})})," ",(0,M.jsx)(w.ZP,{inline:!0,children:"to add variables to this pipeline."})]})]}),(0,M.jsx)(h.Z,ae(ae({},i),{},{height:c,noStatus:!0}))]})}}),[r,u,null===ve||void 0===ve?void 0:ve.schedule_type,null===ve||void 0===ve?void 0:ve.variables,le]),xe=(0,s.useMemo)((function(){var e;return(null===E||void 0===E||null===(e=E.metadata)||void 0===e?void 0:e.count)||[]}),[E]);return(0,M.jsxs)(Z.Z,{breadcrumbs:[{label:function(){return"Triggers"}}],buildSidekick:be,errors:l,pageName:ne.M.TRIGGERS,pipeline:n,setErrors:_,subheaderBackgroundImage:"/images/banner-shape-purple-peach.jpg",subheaderButton:(0,M.jsx)(b.ZP,{beforeElement:(0,M.jsx)(K.mm,{size:2.5*A.iI}),blackBorder:!0,inline:!0,loading:L,noHoverUnderline:!0,onClick:function(){return Y({pipeline_schedule:{name:(0,H.Y6)()}})},sameColorAsText:!0,uuid:"PipelineDetailPage/add_new_schedule",children:"Create new trigger"}),subheaderText:(0,M.jsx)(w.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(ne.M.TRIGGERS,"_").concat(u),children:[(0,M.jsx)(O.Z,{mt:A.cd,px:A.cd,children:(0,M.jsxs)(v.Z,{justifyContent:"space-between",children:[(0,M.jsx)(m.Z,{level:5,children:"Pipeline triggers"}),(0,M.jsx)(X.Z,{appearBefore:!0,default:!0,fullSize:!0,label:"Creates an @once trigger and runs pipeline immediately",widthFitContent:!0,children:(0,M.jsx)(f.Z,{beforeIcon:(0,M.jsx)(K.JM,{inverted:!0,size:2*A.iI}),disabled:r,loading:J,onClick:(0,re.Qr)(le)?function(){return z({pipeline_schedule:se})}:fe,outline:!0,success:!r,children:"Run pipeline now"})})]})}),(0,M.jsx)(g.Z,{light:!0,mt:A.cd,short:!0}),E?(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(G.Z,{fetchPipelineSchedules:T,pipeline:n,pipelineSchedules:D,selectedSchedule:ve,setErrors:_,setSelectedSchedule:me}),(0,M.jsx)(O.Z,{p:2,children:(0,M.jsx)(j.Z,{maxPages:9,onUpdate:function(e){var n=Number(e),r=ae(ae({},C),{},{page:n>=0?n:0});t.push("/pipelines/[pipeline]/triggers","/pipelines/".concat(u,"/triggers?").concat((0,ue.uM)(r)))},page:Number(S),totalPages:Math.ceil(xe/j.Q)})})]}):(0,M.jsx)(O.Z,{m:2,children:(0,M.jsx)(Q.Z,{inverted:!0})})]})}se.getInitialProps=function(){var e=(0,r.Z)(o().mark((function e(n){var t;return o().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 de=(0,_.Z)(se)},42305:function(e,n,t){"use strict";t.d(n,{A5:function(){return p},AY:function(){return f},BP:function(){return d},JX:function(){return s},OC:function(){return c},Pc:function(){return h},Tz:function(){return a},d$:function(){return l},lJ:function(){return g},n1:function(){return o}});var r=t(92083),i=t.n(r),c="YYYY-MM-DD HH:mm:ss",u="YYYY-MM-DD HH:mm",o="YYYY-MM-DD";function l(e,n){var t=n.dayAgo,r=n.includeSeconds,o=n.utcFormat,l=i()(e),a=u;return o&&(l=l.utc()),t&&(l=l.subtract(1,"days")),r&&(a=c),l.format(a)}function a(e){var n=l((new Date).toISOString(),{includeSeconds:!0,utcFormat:!0});return null!==e&&void 0!==e&&e.dateObj?new Date(n):n}function s(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i().unix(e).format(null!==n&&void 0!==n&&n.withSeconds?c:u)}function d(e,n,t){return i()(e).utc().hours(+n).minutes(+t).format()}function p(e){return i()(e).unix()}function f(e,n,t,r){var i="".concat(e.toISOString().split("T")[0]," ").concat(n,":").concat(t);return r?"".concat(i,":").concat(r):i}function h(e){var n=i().unix(+e).utc();return{date:n.toDate(),hour:String(n.hour()),minute:String(n.minute())}}function g(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,[844,7607,5896,4804,1774,5872,1424,1005,8180,547,3714,8957,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 P}});var i=t(82394),r=t(21831),o=t(82684),c=t(47999),l=t(49894),u=t(93461),a=t(57384),s=t(41424),d=t(72454),p=t(28598);function f(e,n){var t=e.children;return(0,p.jsx)(d.HS,{ref:n,children:t})}var h=o.forwardRef(f),m=t(32063),b=t(85019),g=t(82531),v=t(66166),x=t(3055),y=t(49125),j=t(91427),O=t(24141);function Z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function w(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var P=function(e){var n,t=e.after,i=e.afterHidden,f=e.afterWidth,Z=e.afterWidthOverride,P=e.before,C=e.beforeWidth,k=e.breadcrumbs,E=e.children,S=e.errors,T=e.headerMenuItems,A=e.headerOffset,I=e.mainContainerHeader,R=e.navigationItems,_=e.setErrors,D=e.subheaderChildren,N=e.title,M=e.uuid,H=(0,O.i)().width,L="dashboard_after_width_".concat(M),B="dashboard_before_width_".concat(M),Y=(0,o.useRef)(null),W=(0,o.useState)(Z?f:(0,j.U2)(L,f)),V=W[0],z=W[1],U=(0,o.useState)(!1),F=U[0],G=U[1],K=(0,o.useState)(P?Math.max((0,j.U2)(B,C),13*y.iI):null),X=K[0],q=K[1],Q=(0,o.useState)(!1),J=Q[0],$=Q[1],ee=(0,o.useState)(null)[1],ne=g.ZP.projects.list({},{revalidateOnFocus:!1}).data,te=null===ne||void 0===ne?void 0:ne.projects,ie=[];k?ie.push.apply(ie,(0,r.Z)(k)):(null===te||void 0===te?void 0:te.length)>=1&&ie.push.apply(ie,[{label:function(){var e;return null===(e=te[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},{bold:!0,label:function(){return N}}]),(0,o.useEffect)((function(){null===Y||void 0===Y||!Y.current||F||J||null===ee||void 0===ee||ee(Y.current.getBoundingClientRect().width)}),[F,V,J,X,Y,ee,H]),(0,o.useEffect)((function(){F||(0,j.t8)(L,V)}),[i,F,V,L]),(0,o.useEffect)((function(){J||(0,j.t8)(B,X)}),[J,X,B]);var re=(0,v.Z)(f);return(0,o.useEffect)((function(){Z&&re!==f&&z(f)}),[Z,f,re]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(a.Z,{title:N}),(0,p.jsx)(s.Z,{breadcrumbs:ie,menuItems:T,project:null===te||void 0===te?void 0:te[0],version:null===te||void 0===te||null===(n=te[0])||void 0===n?void 0:n.version}),(0,p.jsxs)(d.Nk,{children:[0!==(null===R||void 0===R?void 0:R.length)&&(0,p.jsx)(d.lm,{showMore:!0,children:(0,p.jsx)(b.Z,{navigationItems:R,showMore:!0})}),(0,p.jsx)(u.Z,{flex:1,flexDirection:"column",children:(0,p.jsxs)(m.Z,{after:t,afterHeightOffset:x.Mz,afterHidden:i,afterMousedownActive:F,afterWidth:V,before:P,beforeHeightOffset:x.Mz,beforeMousedownActive:J,beforeWidth:d.k1+(P?X:0),headerOffset:A,hideAfterCompletely:!0,leftOffset:P?d.k1:null,mainContainerHeader:I,mainContainerRef:Y,setAfterMousedownActive:G,setAfterWidth:z,setBeforeMousedownActive:$,setBeforeWidth:q,children:[D&&(0,p.jsx)(h,{children:D}),E]})})]}),S&&(0,p.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===_||void 0===_?void 0:_(null)},children:(0,p.jsx)(l.Z,w(w({},S),{},{onClose:function(){return null===_||void 0===_?void 0:_(null)}}))})]})}},86422:function(e,n,t){"use strict";t.d(n,{$W:function(){return f},DA:function(){return p},HX:function(){return b},J8:function(){return m},L8:function(){return c},Lq:function(){return s},Qj:function(){return g},Ut:function(){return j},V4:function(){return y},VZ:function(){return h},dO:function(){return d},f2:function(){return x},iZ:function(){return v},t6:function(){return l},tf:function(){return a}});var i,r,o,c,l,u=t(82394);!function(e){e.DYNAMIC="dynamic",e.DYNAMIC_CHILD="dynamic_child",e.REDUCE_OUTPUT="reduce_output"}(c||(c={})),function(e){e.MARKDOWN="markdown",e.PYTHON="python",e.R="r",e.SQL="sql",e.YAML="yaml"}(l||(l={}));var a,s,d=(i={},(0,u.Z)(i,l.MARKDOWN,"MD"),(0,u.Z)(i,l.PYTHON,"PY"),(0,u.Z)(i,l.R,"R"),(0,u.Z)(i,l.SQL,"SQL"),(0,u.Z)(i,l.YAML,"YAML"),i);!function(e){e.CALLBACK="callback",e.CHART="chart",e.CUSTOM="custom",e.DATA_EXPORTER="data_exporter",e.DATA_LOADER="data_loader",e.DBT="dbt",e.EXTENSION="extension",e.SCRATCHPAD="scratchpad",e.SENSOR="sensor",e.MARKDOWN="markdown",e.TRANSFORMER="transformer"}(a||(a={})),function(e){e.BLUE="blue",e.GREY="grey",e.PINK="pink",e.PURPLE="purple",e.TEAL="teal",e.YELLOW="yellow"}(s||(s={}));var p,f=[a.CHART,a.CUSTOM,a.DATA_EXPORTER,a.DATA_LOADER,a.SCRATCHPAD,a.SENSOR,a.MARKDOWN,a.TRANSFORMER],h=[a.DATA_EXPORTER,a.DATA_LOADER],m=[a.DATA_EXPORTER,a.DATA_LOADER,a.TRANSFORMER],b=[a.DATA_EXPORTER,a.DATA_LOADER,a.DBT,a.TRANSFORMER],g=[a.CHART,a.SCRATCHPAD,a.SENSOR,a.MARKDOWN],v=[a.CALLBACK,a.CHART,a.EXTENSION,a.SCRATCHPAD,a.MARKDOWN];!function(e){e.EXECUTED="executed",e.FAILED="failed",e.NOT_EXECUTED="not_executed",e.UPDATED="updated"}(p||(p={}));var x=[a.CUSTOM,a.DATA_EXPORTER,a.DATA_LOADER,a.TRANSFORMER],y=(r={},(0,u.Z)(r,a.EXTENSION,"Callback"),(0,u.Z)(r,a.CUSTOM,"Custom"),(0,u.Z)(r,a.DATA_EXPORTER,"Data exporter"),(0,u.Z)(r,a.DATA_LOADER,"Data loader"),(0,u.Z)(r,a.EXTENSION,"Extension"),(0,u.Z)(r,a.SCRATCHPAD,"Scratchpad"),(0,u.Z)(r,a.SENSOR,"Sensor"),(0,u.Z)(r,a.MARKDOWN,"Markdown"),(0,u.Z)(r,a.TRANSFORMER,"Transformer"),r),j=[a.DATA_LOADER,a.TRANSFORMER,a.DATA_EXPORTER,a.SENSOR];o={},(0,u.Z)(o,a.DATA_EXPORTER,"DE"),(0,u.Z)(o,a.DATA_LOADER,"DL"),(0,u.Z)(o,a.SCRATCHPAD,"SP"),(0,u.Z)(o,a.SENSOR,"SR"),(0,u.Z)(o,a.MARKDOWN,"MD"),(0,u.Z)(o,a.TRANSFORMER,"TF")},93348:function(e,n,t){"use strict";t.d(n,{TR:function(){return d},U5:function(){return u},Xm:function(){return o},Z4:function(){return s},fq:function(){return l},kJ:function(){return a}});var i,r,o,c=t(82394);!function(e){e.API="api",e.EVENT="event",e.TIME="time"}(o||(o={}));var l,u,a,s=(i={},(0,c.Z)(i,o.API,(function(){return"API"})),(0,c.Z)(i,o.EVENT,(function(){return"event"})),(0,c.Z)(i,o.TIME,(function(){return"schedule"})),i);!function(e){e.ACTIVE="active",e.INACTIVE="inactive"}(l||(l={})),function(e){e.ONCE="@once",e.HOURLY="@hourly",e.DAILY="@daily",e.WEEKLY="@weekly",e.MONTHLY="@monthly"}(u||(u={})),function(e){e.CREATED_AT="created_at",e.NAME="name",e.PIPELINE="pipeline_uuid",e.STATUS="status",e.TYPE="schedule_type"}(a||(a={}));var d=(r={},(0,c.Z)(r,a.CREATED_AT,"Created at"),(0,c.Z)(r,a.NAME,"Name"),(0,c.Z)(r,a.PIPELINE,"Pipeline"),(0,c.Z)(r,a.STATUS,"Status"),(0,c.Z)(r,a.TYPE,"Type"),r)},98781:function(e,n,t){"use strict";t.d(n,{$1:function(){return u},G7:function(){return s},QK:function(){return l},a_:function(){return d},qL:function(){return o},r0:function(){return a}});var i,r,o,c=t(82394);!function(e){e.INTEGRATION="integration",e.PYTHON="python",e.PYSPARK="pyspark",e.STREAMING="streaming"}(o||(o={}));var l,u,a,s=(i={},(0,c.Z)(i,o.INTEGRATION,"Integration"),(0,c.Z)(i,o.PYTHON,"Standard"),(0,c.Z)(i,o.PYSPARK,"PySpark"),(0,c.Z)(i,o.STREAMING,"Streaming"),i);!function(e){e.ACTIVE="active",e.INACTIVE="inactive",e.NO_SCHEDULES="no_schedules",e.RETRY="retry"}(l||(l={})),function(e){e.GROUP="group_by",e.STATUS="status[]",e.TYPE="type[]"}(u||(u={})),function(e){e.STATUS="status",e.TYPE="type"}(a||(a={}));var d=(r={},(0,c.Z)(r,o.PYTHON,"python3"),(0,c.Z)(r,o.PYSPARK,"pysparkkernel"),r)},18283:function(e,n,t){"use strict";var i=t(82394),r=t(26304),o=(t(82684),t(9518)),c=t(23831),l=t(73942),u=t(2005),a=t(49125),s=t(31012),d=t(28598),p=["children"];function f(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function h(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?f(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var m=o.default.p.withConfig({displayName:"Badge__BadgeStyle",componentId:"sc-tfqsp0-0"})(["border-radius:","px;display:inline;font-family:",";margin:0;",";"," "," ",";",";"," "," "," "," "," "," ",""],l.BG,u.ry,s.iD,(function(e){return e.small&&"\n ".concat(s.HC,";\n ")}),(function(e){return e.xxsmall&&"\n font-size: ".concat(s.VK,"px;\n line-height: ").concat(s.VK,"px;\n ")}),(function(e){return!e.regular&&"\n padding: 2px 4px;\n "}),(function(e){return e.regular&&"\n padding: ".concat(1*a.iI,"px ").concat(1.25*a.iI,"px;\n ")}),(function(e){return e.noVerticalPadding&&"\n padding-bottom: 0;\n padding-top: 0;\n "}),(function(e){return!e.disabled&&!e.inverted&&"\n background-color: ".concat((e.theme||c.Z).background.row,";\n color: ").concat((e.theme||c.Z).content.default,";\n ")}),(function(e){return!e.disabled&&e.inverted&&"\n background-color: ".concat((e.theme||c.Z).background.dark,";\n color: ").concat((e.theme||c.Z).content.inverted,";\n ")}),(function(e){return e.cyan&&"\n background-color: ".concat((e.theme||c.Z).accent.cyan,";\n color: ").concat((e.theme||c.Z).monotone.black,";\n ")}),(function(e){return e.disabled&&"\n background-color: ".concat((e.theme||c.Z).feature.disabled,";\n color: ").concat((e.theme||c.Z).content.disabled,";\n ")}),(function(e){return e.quantifier&&"\n border-radius: 34px;\n line-height: 10px;\n padding: 4px 6px;\n "}),(function(e){return e.monospace&&"\n font-family: ".concat(u.Vp,";\n word-break: break-all;\n ")}));n.Z=function(e){var n=e.children,t=(0,r.Z)(e,p);return(0,d.jsx)(m,h(h({},t),{},{children:n}))}},30264:function(e,n,t){"use strict";var i=t(82394),r=t(26304),o=(t(82684),t(47999)),c=t(62084),l=t(28598),u=["children","items","open","onClickCallback","onClickOutside","parentRef","uuid"];function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.children,t=e.items,i=e.open,a=e.onClickCallback,d=e.onClickOutside,p=e.parentRef,f=e.uuid,h=(0,r.Z)(e,u),m=(0,l.jsxs)("div",{style:{position:"relative",zIndex:d?3:2},children:[(0,l.jsx)("div",{ref:p,children:n}),(0,l.jsx)(c.Z,s(s({},h),{},{items:t,onClickCallback:a,open:i,parentRef:p,uuid:f}))]});return d?(0,l.jsx)(o.Z,{onClickOutside:d,open:!0,children:m}):m}},29237:function(e,n,t){"use strict";var i=t(9518),r=t(67971),o=t(86673),c=t(19711),l=t(23831),u=t(73942),a=t(37391),s=t(49125),d=t(28598),p=(0,i.css)(["padding:","px;padding-bottom:","px;padding-top:","px;"],2*s.iI,1.5*s.iI,1.5*s.iI),f=i.default.div.withConfig({displayName:"Panel__PanelStyle",componentId:"sc-1ct8cgl-0"})(["border-radius:","px;overflow:hidden;"," "," "," "," "," "," "," "," "," "," "," ",""],u.n_,(function(e){return e.fullWidth&&"\n width: 100%;\n "}),(function(e){return!e.borderless&&"\n border: 1px solid ".concat((e.theme.interactive||l.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.success&&"\n background-color: ".concat((e.theme.background||l.Z.background).successLight,";\n ")}),(function(e){return e.success&&!e.borderless&&"\n border: 1px solid ".concat((e.theme.background||l.Z.background).success,";\n ")}),(function(e){return!e.dark&&!e.success&&"\n background-color: ".concat((e.theme.background||l.Z.background).panel,";\n ")}),(function(e){return e.dark&&"\n background-color: ".concat((e.theme.background||l.Z.background).content,";\n ")}),(function(e){return!e.fullHeight&&"\n height: fit-content;\n "}),(function(e){return e.maxHeight&&"\n max-height: ".concat(e.maxHeight,";\n ")}),(function(e){return e.maxWidth&&"\n max-width: ".concat(e.maxWidth,"px;\n ")}),(function(e){return e.minWidth&&"\n min-width: ".concat(e.minWidth,"px;\n\n @media (max-width: ").concat(e.minWidth,"px) {\n min-width: 0;\n }\n ")}),(function(e){return e.borderless&&"\n border: none;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),h=i.default.div.withConfig({displayName:"Panel__HeaderStyle",componentId:"sc-1ct8cgl-1"})(["border-top-left-radius:","px;border-top-right-radius:","px;"," "," "," ",""],u.n_,u.n_,(function(e){return"\n background-color: ".concat((e.theme.background||l.Z.background).chartBlock,";\n border-bottom: 1px solid ").concat((e.theme.interactive||l.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),p,(function(e){return e.headerPaddingVertical&&"\n padding-bottom: ".concat(e.headerPaddingVertical,"px;\n padding-top: ").concat(e.headerPaddingVertical,"px;\n ")})),m=i.default.div.withConfig({displayName:"Panel__ContentStyle",componentId:"sc-1ct8cgl-2"})(["overflow-y:auto;padding:","px;height:100%;"," "," "," "," ",""],1.75*s.iI,a.w5,(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),(function(e){return e.maxHeight&&"\n max-height: calc(".concat(e.maxHeight," - ").concat(15*s.iI,"px);\n ")}),(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),b=i.default.div.withConfig({displayName:"Panel__FooterStyle",componentId:"sc-1ct8cgl-3"})(["border-style:",";border-top-width:","px;padding:","px;"],u.M8,u.YF,1.75*s.iI);n.Z=function(e){var n=e.borderless,t=e.children,i=e.containerRef,l=e.contentContainerRef,u=e.dark,a=e.footer,s=e.fullHeight,p=void 0===s||s,g=e.fullWidth,v=void 0===g||g,x=e.header,y=e.headerHeight,j=e.headerIcon,O=e.headerPaddingVertical,Z=e.headerTitle,w=e.maxHeight,P=e.maxWidth,C=e.minWidth,k=e.noPadding,E=e.overflowVisible,S=e.subtitle,T=e.success;return(0,d.jsxs)(f,{borderless:n,dark:u,fullHeight:p,fullWidth:v,maxHeight:w,maxWidth:P,minWidth:C,overflowVisible:E,ref:i,success:T,children:[(x||Z)&&(0,d.jsxs)(h,{headerPaddingVertical:O,height:y,children:[x&&x,Z&&(0,d.jsx)(r.Z,{alignItems:"center",justifyContent:"space-between",children:(0,d.jsxs)(r.Z,{alignItems:"center",children:[j&&j,(0,d.jsx)(o.Z,{ml:j?1:0,children:(0,d.jsx)(c.ZP,{bold:!0,default:!0,children:Z})})]})})]}),(0,d.jsxs)(m,{maxHeight:w,noPadding:k,overflowVisible:E,ref:l,children:[S&&(0,d.jsx)(o.Z,{mb:2,children:(0,d.jsx)(c.ZP,{default:!0,children:S})}),t]}),a&&(0,d.jsx)(b,{children:a})]})}},87372:function(e,n,t){"use strict";var i,r,o,c,l,u,a,s,d=t(82394),p=t(26304),f=t(26653),h=t(9518),m=t(33591),b=t(23831),g=t(2005),v=t(31012),x=t(19711),y=t(49125),j=t(86673),O=t(28598),Z=["children","condensed","inline","level","marketing","spacingBelow"];function w(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function P(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?w(Object(t),!0).forEach((function(n){(0,d.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):w(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var C=(0,h.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],x.IH,(function(e){return e.color&&"\n color: ".concat(e.color,"\n ")}),(function(e){return e.yellow&&"\n color: ".concat((e.theme.accent||b.Z.accent).yellow,";\n ")}),(function(e){return e.center&&"\n text-align: center;\n "}),(function(e){return!e.monospace&&0===Number(e.weightStyle)&&"\n font-family: ".concat(g.iI,";\n ")}),(function(e){return!e.monospace&&1===Number(e.weightStyle)&&"\n font-family: ".concat(g.LX,";\n ")}),(function(e){return!e.monospace&&2===Number(e.weightStyle)&&"\n font-family: ".concat(g.LX,";\n ")}),(function(e){return!e.monospace&&3===Number(e.weightStyle)&&"\n font-family: ".concat(g.ry,";\n ")}),(function(e){return!e.monospace&&4===Number(e.weightStyle)&&"\n font-family: ".concat(g.YC,";\n ")}),(function(e){return!e.monospace&&5===Number(e.weightStyle)&&"\n font-family: ".concat(g.nF,";\n ")}),(function(e){return!e.monospace&&(6===Number(e.weightStyle)||e.bold)&&"\n font-family: ".concat(g.nF,";\n ")}),(function(e){return!e.monospace&&7===Number(e.weightStyle)&&"\n font-family: ".concat(g.nF,";\n ")}),(function(e){return!e.monospace&&8===Number(e.weightStyle)&&"\n font-family: ".concat(g.nF,";\n ")}),(function(e){return e.lineHeightAuto&&"\n line-height: normal !important;\n "})),k=h.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(e){return"\n color: ".concat((e.theme.content||b.Z.content).active,";\n ")})),E=h.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],C,m.media.md(i||(i=(0,f.Z)(["\n ","\n "])),v.aQ),m.media.lg(r||(r=(0,f.Z)(["\n ","\n "])),v.aQ),m.media.xl(o||(o=(0,f.Z)(["\n ","\n "])),v.aQ)),S=h.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],C,v.MJ),T=h.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],C,m.media.xs(c||(c=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*y.iI,7*y.iI),m.media.sm(l||(l=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*y.iI,7*y.iI),m.media.md(u||(u=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*y.iI,7*y.iI),m.media.lg(a||(a=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*y.iI,7*y.iI),m.media.xl(s||(s=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*y.iI,7*y.iI)),A=h.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],C,v.BL),I=h.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],C),R=h.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],C),_=h.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],C),D=h.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],C,(function(e){return 1===e.level&&"\n ".concat(v.MJ,"\n ")}),(function(e){return 2===e.level&&"\n ".concat(v.BL,"\n ")}),(function(e){return 3===e.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(e){return 4===e.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),N=function(e){var n,t=e.children,i=e.condensed,r=e.inline,o=e.level,c=e.marketing,l=e.spacingBelow,u=(0,p.Z)(e,Z);r?n=D:0===Number(o)?n=E:1===Number(o)?n=c?T:S:2===Number(o)?n=A:3===Number(o)?n=I:4===Number(o)?n=R:5===Number(o)&&(n=_);var a=(0,O.jsxs)(n,P(P({},u),{},{level:o,children:[l&&(0,O.jsx)(j.Z,{mb:i?2:3,children:t}),!l&&t]}));return r?a:(0,O.jsx)(k,{children:a})};N.defaultProps={level:3,weightStyle:6},n.Z=N},46614:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return Ee}});var i=t(77837),r=t(75582),o=t(82394),c=t(38860),l=t.n(c),u=t(12691),a=t.n(u),s=t(83455),d=t(82684),p=t(34376),f=t(60328),h=t(1210),m=t(93461),b=t(67971),g=t(11135),v=t(29237),x=t(86673),y=t(19711),j=t(38435),O=t(82944),Z=t(28598);var w=function(e){var n=e.description,t=e.isLoading,i=e.maxWidth,r=e.minWidth,o=e.noEmptyValue,c=e.onClose,l=e.onSave,u=e.textArea,a=e.title,s=e.value,p=(0,d.useRef)(null),h=(0,d.useState)(s),m=h[0],w=h[1],P=u?j.Z:O.Z;return(0,d.useEffect)((function(){var e;null===p||void 0===p||null===(e=p.current)||void 0===e||e.focus()}),[]),(0,Z.jsxs)(v.Z,{maxWidth:i,minWidth:r,children:[(0,Z.jsx)(y.ZP,{bold:!0,children:a}),(0,Z.jsx)(x.Z,{mt:1,children:(0,Z.jsx)(P,{monospace:!0,onChange:function(e){return w(e.target.value)},ref:p,rows:u?7:null,value:m})}),n&&(0,Z.jsx)(x.Z,{mt:2,children:(0,Z.jsx)(y.ZP,{muted:!0,small:!0,children:n})}),(0,Z.jsx)(x.Z,{mt:3,children:(0,Z.jsxs)(b.Z,{children:[(0,Z.jsx)(g.ZP,{bold:!0,inline:!0,loading:t,onClick:function(){m===s||o&&!m?c():l(m)},outline:!0,primary:!0,uuid:"Inputs/InputModal/SaveInput",children:"Save"}),(0,Z.jsx)(x.Z,{ml:1}),(0,Z.jsx)(f.Z,{onClick:c,children:"Cancel"})]})})]})},P=t(87372),C=t(10919),k=t(98781),E=t(41788),S=t(54283),T=t(58180),A=t(70902),I=t(18283),R=t(47999),_=t(30264),D=t(62609),N=t(9518),M=t(23831),H=t(73942),L=t(37391),B=t(49125),Y=74*B.iI,W=48*B.iI,V=N.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-18n432u-0"})(["position:absolute;border-radius:","px;overflow:hidden;width:","px;display:none;"," "," "," "," ",""],H.n_,Y,(function(e){return"\n background-color: ".concat((e.theme||M.Z).background.panel,";\n border: ").concat(H.mP,"px ").concat(H.M8," ").concat((e.theme||M.Z).interactive.defaultBackground,";\n box-shadow: ").concat((e.theme.shadow||M.Z.shadow).window,";\n ")}),(function(e){return e.display&&"\n display: block;\n "}),(function(e){return e.compact&&"\n width: ".concat(.75*Y,"px;\n ")}),(function(e){return"undefined"!==typeof e.left&&"\n left: ".concat(e.left,"px;\n ")}),(function(e){return"undefined"!==typeof e.top&&"\n top: ".concat(e.top,"px;\n ")})),z=N.default.div.withConfig({displayName:"indexstyle__MainStyle",componentId:"sc-18n432u-1"})(["display:flex;border-radius:","px;overflow:hidden;height:","px;"," ",""],H.n_,W,(function(e){return"\n background-color: ".concat((e.theme||M.Z).background.content,";\n border: ").concat(H.YF,"px ").concat(H.M8," ").concat((e.theme||M.Z).interactive.defaultBackground,";\n ")}),(function(e){return e.compact&&"\n height: ".concat(W/2,"px;\n ")})),U=N.default.aside.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-18n432u-2"})(["width:100%;overflow:auto;"," ",""],L.w5,(function(e){return"\n border-right: ".concat(H.YF,"px ").concat(H.M8," ").concat((e.theme||M.Z).background.panel,";\n ")})),F=N.default.div.withConfig({displayName:"indexstyle__ContentStyle",componentId:"sc-18n432u-3"})(["width:100%;overflow:auto;",""],L.w5),G=(0,N.css)(["display:flex;align-items:center;justify-content:space-between;padding:","px ","px;"],B.iI,2*B.iI),K=N.default.div.withConfig({displayName:"indexstyle__OptionStyle",componentId:"sc-18n432u-4"})([""," padding-top:","px;padding-bottom:","px;&:hover{cursor:pointer;","}",""],G,1.5*B.iI,1.5*B.iI,(function(e){return"\n background-color: ".concat((e.theme||M.Z).monotone.black,";\n ")}),(function(e){return e.highlighted&&"\n background-color: ".concat((e.theme||M.Z).monotone.black,";\n ")})),X=N.default.div.withConfig({displayName:"indexstyle__ToggleValueStyle",componentId:"sc-18n432u-5"})([""," ",""],G,(function(e){return"\n border-bottom: ".concat(H.YF,"px ").concat(H.M8," ").concat((e.theme||M.Z).borders.medium2,";\n ")})),q=t(10503),Q=t(33766),J=t(90211);function $(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function ee(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?$(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):$(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ne,te=function(e){var n,t,i,c=e.children,l=e.compact,u=e.onClickCallback,a=e.onClickOutside,s=e.onSecondaryClick,p=e.open,h=e.options,g=void 0===h?{}:h,v=e.parentRef,j=e.query,O=e.setOpen,w=e.toggleValueMapping,P=(0,d.useState)(null),C=P[0],k=P[1],E=(0,d.useState)(g),S=E[0],T=E[1];(0,d.useEffect)((function(){T(g)}),[g]);var I=((null===v||void 0===v||null===(n=v.current)||void 0===n||null===(t=n.getBoundingClientRect)||void 0===t?void 0:t.call(n))||{}).top,_=void 0===I?0:I,D=Object.keys(g);return(0,Z.jsxs)(R.Z,{onClickOutside:a,open:!0,children:[(0,Z.jsx)("div",{ref:v,children:c}),(0,Z.jsxs)(V,{compact:l,display:p,top:_-5,children:[(0,Z.jsxs)(z,{compact:l,children:[(0,Z.jsx)(m.Z,{flex:"1",children:(0,Z.jsx)(U,{children:D.map((function(e){return(0,Z.jsxs)(K,{highlighted:C===e,onMouseEnter:function(){return k(e)},children:[(0,Z.jsx)(y.ZP,{children:(0,J.kC)(e)}),(0,Z.jsx)(q._Q,{})]},e)}))})}),(0,Z.jsx)(m.Z,{flex:"2",children:(0,Z.jsx)(F,{children:C&&Object.entries((null===(i=S||g)||void 0===i?void 0:i[C])||{}).map((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1];return(0,Z.jsxs)(X,{children:[(0,Z.jsx)(y.ZP,{children:(null===w||void 0===w?void 0:w[t])||(0,J.J3)((0,J.kC)(t))}),(0,Z.jsx)(A.Z,{checked:i,onCheck:function(){return T((function(e){return ee(ee({},e),{},(0,o.Z)({},C,ee(ee({},null===e||void 0===e?void 0:e[C]),{},(0,o.Z)({},t,!i))))}))}})]},t)}))})})]}),(0,Z.jsx)(x.Z,{m:1,children:(0,Z.jsxs)(b.Z,{children:[(0,Z.jsx)(f.Z,{onClick:function(){var e=Object.entries(S).reduce((function(e,n){var t=(0,r.Z)(n,2),i=t[0],o=t[1],c=[];return Object.entries(o).forEach((function(e){var n=(0,r.Z)(e,2),t=n[0];return n[1]&&c.push(t)})),e[i]=c,e}),{});null===u||void 0===u||u(),(0,Q.g_)(j,e,{addingMultipleValues:!0,pushHistory:!0})},secondary:!0,children:"Apply"}),(0,Z.jsx)(x.Z,{mr:1}),(0,Z.jsx)(f.Z,{noBackground:!0,onClick:function(){O(!1),null===s||void 0===s||s()},children:"Defaults"})]})})]})]})},ie=t(46261),re=t(99994),oe="".concat(1.5*B.iI,"px"),ce=40*B.iI,le={bold:!0,greyBorder:!0,paddingBottom:9,paddingTop:9};!function(e){e[e.SECONDARY=1]="SECONDARY",e[e.DELETE=2]="DELETE"}(ne||(ne={}));var ue={autoHide:!0,size:null,widthFitContent:!0},ae=t(7715),se=t(9736);function de(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function pe(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?de(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):de(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var fe=function(e){var n=e.addButtonProps,t=e.deleteRowProps,i=e.filterOptions,o=void 0===i?{}:i,c=e.filterValueLabelMapping,l=e.groupButtonProps,u=e.moreActionsMenuItems,a=e.query,s=void 0===a?{}:a,f=e.searchProps,h=e.secondaryActionButtonProps,v=e.selectedRowId,j=e.setSelectedRow,w=(0,se.Ct)(),P=(0,p.useRouter)(),C=(0,d.useRef)(null),k=(0,d.useRef)(null),E=(0,d.useRef)(null),S=(0,d.useRef)(null),T=(0,d.useRef)(null),A=(0,d.useState)(!1),N=A[0],M=A[1],L=(0,d.useState)(!1),Y=L[0],W=L[1],V=(0,d.useState)(!1),z=V[0],U=V[1],F=(0,d.useState)(!1),G=F[0],K=F[1],X=(0,d.useState)(null),Q=X[0],J=X[1],$=!v,ee=(0,d.useCallback)((function(){return M(!1)}),[]),de=(0,d.useCallback)((function(){return W(!1)}),[]),fe=(0,d.useCallback)((function(){return U(!1)}),[]),he=(0,d.useCallback)((function(){return K(null)}),[]),me=(0,d.useCallback)((function(){return J(null)}),[]),be=h||{},ge=be.Icon,ve=be.confirmationDescription,xe=be.confirmationMessage,ye=be.isLoading,je=be.label,Oe=be.onClick,Ze=be.openConfirmationDialogue,we=be.tooltip,Pe=t||{},Ce=Pe.confirmationMessage,ke=Pe.isLoading,Ee=Pe.item,Se=Pe.onDelete,Te=f||{},Ae=Te.placeholder,Ie=Te.onChange,Re=Te.value,_e=(0,d.useMemo)((function(){return Object.entries(o).reduce((function(e,n){var t=(0,r.Z)(n,2),i=t[0],o=t[1];return e[i]={},o.forEach((function(n){var t,r=(null===(t=s["".concat(i,"[]")])||void 0===t?void 0:t.includes(n))||!1;e[i][n]=r})),e}),{})}),[o,s]),De=n||{},Ne=De.label,Me=De.menuItems,He=De.isLoading,Le=(0,d.useMemo)((function(){return(0,Z.jsx)(_.Z,{disableKeyboardShortcuts:!0,items:Me,onClickCallback:ee,onClickOutside:ee,open:N,parentRef:C,roundedStyle:!0,topOffset:1,uuid:"Table/Toolbar/NewItemMenu",children:(0,Z.jsx)(g.ZP,pe(pe({},le),{},{background:re.eW,beforeElement:(0,Z.jsx)(q.mm,{size:2.5*B.iI}),loading:He,onClick:function(e){e.preventDefault(),M((function(e){return!e}))},uuid:"Table/Toolbar/AddButton",children:Ne}))})}),[Ne,Me,N,ee,He]),Be=(0,d.useMemo)((function(){return(0,ae.dw)(_e)}),[_e]),Ye=(0,d.useMemo)((function(){return(0,Z.jsx)(te,{compact:!0,onClickCallback:de,onClickOutside:de,onSecondaryClick:function(){return P.push("/pipelines")},open:Y,options:_e,parentRef:k,query:s,setOpen:W,toggleValueMapping:c,children:(0,Z.jsx)(g.ZP,pe(pe({},le),{},{afterElement:Be>0?(0,Z.jsx)(I.Z,{cyan:!0,noVerticalPadding:!0,children:(0,Z.jsx)(y.ZP,{bold:!0,inverted:!0,children:Be})}):null,beforeElement:(0,Z.jsx)(q.wn,{size:2*B.iI}),onClick:function(){return W((function(e){return!e}))},uuid:"Table/Toolbar/FilterButton",children:"Filter"}))})}),[de,Y,_e,c,Be,s,P]),We=l||{},Ve=We.groupByLabel,ze=We.menuItems,Ue=(0,d.useMemo)((function(){return(0,Z.jsx)(_.Z,{disableKeyboardShortcuts:!0,items:ze,onClickCallback:fe,onClickOutside:fe,open:z,parentRef:E,roundedStyle:!0,topOffset:1,uuid:"Table/Toolbar/GroupMenu",children:(0,Z.jsx)(g.ZP,pe(pe({},le),{},{beforeElement:(0,Z.jsx)(q.ZA,{size:2.5*B.iI}),onClick:function(){U((function(e){return!e}))},uuid:"Table/Toolbar/GroupButton",children:Ve?"Grouped by ".concat(Ve):"Group"}))})}),[fe,z,ze]),Fe=(0,d.useMemo)((function(){return(0,Z.jsx)(_.Z,{disableKeyboardShortcuts:!0,items:u,onClickCallback:he,onClickOutside:he,open:G,parentRef:S,roundedStyle:!0,topOffset:1,uuid:"Table/Toolbar/MoreActionsMenu",children:(0,Z.jsx)(ie.Z,pe(pe({},ue),{},{label:"More actions",children:(0,Z.jsx)(g.ZP,{Icon:q.mH,bold:!0,disabled:$,greyBorder:!0,onClick:function(){return K((function(e){return!e}))},smallIcon:!0,uuid:"Table/Toolbar/MoreActionsButton"})}))})}),[he,$,G,u]);return(0,Z.jsxs)(b.Z,{alignItems:"center",children:[Le,(0,Z.jsx)(x.Z,{mr:oe}),Ye,(null===ze||void 0===ze?void 0:ze.length)>0&&(0,Z.jsx)(x.Z,{ml:oe,children:Ue}),!w&&Oe&&(0,Z.jsxs)(x.Z,{ml:oe,children:[(0,Z.jsx)(ie.Z,pe(pe({},ue),{},{label:we,children:(0,Z.jsx)(g.ZP,{Icon:!ye&&ge,bold:!0,disabled:$,greyBorder:!0,loading:ye,onClick:Ze?function(){return J(ne.SECONDARY)}:Oe,smallIcon:!0,uuid:"Table/Toolbar/SecondaryActionButton",children:je})})),(0,Z.jsx)(R.Z,{onClickOutside:me,open:Q===ne.SECONDARY,children:(0,Z.jsx)(D.Z,{onCancel:me,onClick:function(){Oe(),me(),j(null)},subtitle:ve,title:xe,top:58,width:ce})})]}),!w&&Se&&(0,Z.jsxs)(x.Z,{ml:oe,children:[(0,Z.jsx)(ie.Z,pe(pe({},ue),{},{label:"Delete ".concat(Ee),children:(0,Z.jsx)(g.ZP,{Icon:!ke&&q.rF,bold:!0,disabled:$,greyBorder:!0,loading:ke,onClick:function(){return J(ne.DELETE)},smallIcon:!0,uuid:"Table/Toolbar/DeleteButton"})})),(0,Z.jsx)(R.Z,{onClickOutside:me,open:Q===ne.DELETE,children:(0,Z.jsx)(D.Z,{danger:!0,onCancel:me,onClick:function(){Se(v),me(),j(null)},subtitle:Ce,title:"Are you sure you want to delete the ".concat(Ee," ").concat(v,"?"),top:58,width:ce})})]}),!w&&(null===u||void 0===u?void 0:u.length)>0&&(0,Z.jsx)(x.Z,{ml:oe,children:Fe}),Ie&&(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(x.Z,{ml:oe}),(0,Z.jsx)(m.Z,{flex:1,children:(0,Z.jsx)(O.Z,{afterIcon:Re?(0,Z.jsx)(q.x8,{}):null,afterIconClick:function(){var e;Ie(""),null===T||void 0===T||null===(e=T.current)||void 0===e||e.focus()},afterIconSize:1.5*B.iI,beforeIcon:(0,Z.jsx)(q.HN,{}),borderRadius:H.n_,defaultColor:!0,fullWidth:!0,greyBorder:!0,maxWidth:60*B.iI,onChange:function(e){return Ie(e.target.value)},paddingVertical:9,placeholder:Ae||null,ref:T,value:Re})})]})]})},he=t(82531),me=t(86422),be=t(93348),ge=t(3055),ve=t(45838),xe=t(96510),ye=t(59e3),je=t(66653),Oe=t(99497),Ze=t(9728);function we(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function Pe(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?we(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):we(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Ce={borderRadius:H.BG,iconOnly:!0,noBackground:!0,noBorder:!0,outline:!0,padding:"4px"};function ke(){var e=(0,p.useRouter)(),n=(0,d.useRef)(null),t=(0,d.useState)(null),i=t[0],c=t[1],l=(0,d.useState)(null),u=l[0],g=l[1],j=(0,d.useState)({}),O=j[0],E=j[1],I=(0,d.useState)(null),R=I[0],_=I[1],D=(0,ye.iV)(),N=(0,ye.DQ)(D,[k.$1.STATUS,k.$1.TYPE]),H=null===D||void 0===D?void 0:D[k.$1.GROUP],L=he.ZP.pipelines.list(Pe(Pe({},N),{},{include_schedules:1})),Y=L.data,W=L.mutate,V=(0,d.useMemo)((function(){var e=(null===Y||void 0===Y?void 0:Y.pipelines)||[];if(u){var n=u.toLowerCase();e=e.filter((function(e){var t=e.name,i=e.description,r=e.uuid;return(null===t||void 0===t?void 0:t.toLowerCase().includes(n))||(null===r||void 0===r?void 0:r.toLowerCase().includes(n))||(null===i||void 0===i?void 0:i.toLowerCase().includes(n))}))}return e}),[null===Y||void 0===Y?void 0:Y.pipelines,u]),z=he.ZP.projects.list(),U=z.data,F=z.mutate,G=(0,d.useMemo)((function(){var e;return null===U||void 0===U||null===(e=U.projects)||void 0===e?void 0:e[0]}),[U]);(0,d.useEffect)((function(){var e,n;if(null!==Y&&void 0!==Y&&null!==(e=Y.error)&&void 0!==e&&null!==(n=e.exception)&&void 0!==n&&n.includes("Too many open files")){(0,xe.bB)(Y,_,[{href:"https://docs.mage.ai/production/configuring-production-settings/overview#ulimit",label:"Refer to the docs for troubleshooting this error."}])}else(0,xe.bB)(Y,_)}),[Y]);var K=function(e){return(0,s.Db)(he.ZP.pipelines.useCreate(),{onSuccess:function(n){return(0,xe.wD)(n,{callback:function(n){var t=n.pipeline.uuid;null===e||void 0===e||e(t)},onErrorCallback:function(e,n){return _({errors:n,response:e})}})}})},X=K((function(n){return e.push("/pipelines/[pipeline]/edit","/pipelines/".concat(n,"/edit"))})),$=(0,r.Z)(X,2),ee=$[0],ne=$[1].isLoading,te=K((function(){return null===W||void 0===W?void 0:W()})),ie=(0,r.Z)(te,2),re=ie[0],oe=ie[1].isLoading,ce=(0,s.Db)((function(e){return he.ZP.pipelines.useUpdate(e.uuid)({pipeline:e})}),{onSuccess:function(e){return(0,xe.wD)(e,{callback:function(e){var n=e.pipeline.uuid;E((function(e){return Pe(Pe({},e),{},(0,o.Z)({},n,!1))})),W(),null===Te||void 0===Te||Te(),c(null)},onErrorCallback:function(e,n){var t,i=null===e||void 0===e||null===(t=e.url_parameters)||void 0===t?void 0:t.pk;E((function(e){return Pe(Pe({},e),{},(0,o.Z)({},i,!1))})),_({errors:n,response:e})}})}}),le=(0,r.Z)(ce,2),ue=le[0],ae=le[1].isLoading,se=(0,s.Db)((function(e){return he.ZP.pipelines.useDelete(e)()}),{onSuccess:function(e){return(0,xe.wD)(e,{callback:function(){null===W||void 0===W||W()},onErrorCallback:function(e,n){return _({errors:n,response:e})}})}}),de=(0,r.Z)(se,2),pe=de[0],we=de[1].isLoading,ke=(0,Oe.dd)((function(e){var n=e.pipeline,t=e.pipelineDescription,r=e.pipelineName;return(0,Z.jsx)(w,{isLoading:ae,minWidth:55*B.iI,noEmptyValue:!!r,onClose:Te,onSave:function(e){var t=n||i;if(t){var c=t.uuid,l={uuid:c};r?l.name=e:l.description=e,E((function(e){return Pe(Pe({},e),{},(0,o.Z)({},c,!0))})),ue(l)}},textArea:!r,title:r?"Rename pipeline":"Edit description",value:r||t})}),{},[ae,i],{background:!0,uuid:"rename_pipeline_and_save"}),Ee=(0,r.Z)(ke,2),Se=Ee[0],Te=Ee[1],Ae=(0,d.useMemo)((function(){return(0,Z.jsx)(fe,{addButtonProps:{isLoading:ne,label:"New",menuItems:[{label:function(){return"Standard (batch)"},onClick:function(){return ee({pipeline:{name:(0,J.Y6)()}})},uuid:"Pipelines/NewPipelineMenu/standard"},{label:function(){return"Data integration"},onClick:function(){return ee({pipeline:{name:(0,J.Y6)(),type:k.qL.INTEGRATION}})},uuid:"Pipelines/NewPipelineMenu/integration"},{label:function(){return"Streaming"},onClick:function(){return ee({pipeline:{name:(0,J.Y6)(),type:k.qL.STREAMING}})},uuid:"Pipelines/NewPipelineMenu/streaming"}]},deleteRowProps:{confirmationMessage:"This is irreversible and will immediately delete everything associated with the pipeline, including its blocks, triggers, runs, logs, and history.",isLoading:we,item:"pipeline",onDelete:function(){return pe(null===i||void 0===i?void 0:i.uuid)}},filterOptions:{status:Object.values(k.QK),type:Object.values(k.qL)},filterValueLabelMapping:k.G7,groupButtonProps:{groupByLabel:H,menuItems:[{beforeIcon:(0,Z.jsx)(q.Jr,{fill:H===k.r0.STATUS?M.Z.content.default:M.Z.interactive.transparent,size:2*B.iI}),label:function(){return(0,J.kC)(k.r0.STATUS)},onClick:function(){return(0,Q.u7)((0,o.Z)({},k.$1.GROUP,H===k.r0.STATUS?null:k.r0.STATUS),{pushHistory:!0})},uuid:"Pipelines/GroupMenu/Status"},{beforeIcon:(0,Z.jsx)(q.Jr,{fill:H===k.r0.TYPE?M.Z.content.default:M.Z.interactive.transparent,size:2*B.iI}),label:function(){return(0,J.kC)(k.r0.TYPE)},onClick:function(){return(0,Q.u7)((0,o.Z)({},k.$1.GROUP,H===k.r0.TYPE?null:k.r0.TYPE),{pushHistory:!0})},uuid:"Pipelines/GroupMenu/Type"}]},moreActionsMenuItems:[{label:function(){return"Rename pipeline"},onClick:function(){return Se({pipelineName:null===i||void 0===i?void 0:i.name})},uuid:"Pipelines/MoreActionsMenu/Rename"},{label:function(){return"Edit description"},onClick:function(){return Se({pipelineDescription:null===i||void 0===i?void 0:i.description})},uuid:"Pipelines/MoreActionsMenu/EditDescription"}],query:N,searchProps:{onChange:g,value:u},secondaryActionButtonProps:{Icon:q.oX,confirmationDescription:"Cloning the selected pipeline will create a new pipeline with the same configuration and code blocks. The blocks use the same block files as the original pipeline. Pipeline triggers, runs, backfills, and logs are not copied over to the new pipeline.",confirmationMessage:"Do you want to clone the pipeline ".concat(null===i||void 0===i?void 0:i.uuid,"?"),isLoading:oe,onClick:function(){return re({pipeline:{clone_pipeline_uuid:null===i||void 0===i?void 0:i.uuid}})},openConfirmationDialogue:!0,tooltip:"Clone pipeline"},selectedRowId:null===i||void 0===i?void 0:i.uuid,setSelectedRow:c})}),[re,ee,pe,H,oe,ne,we,N,u,null===i||void 0===i?void 0:i.description,null===i||void 0===i?void 0:i.name,null===i||void 0===i?void 0:i.uuid,Se]),Ie=(0,Ze.VI)(null,{},[],{uuid:"pipelines/list"}),Re=(0,r.Z)(Ie,1)[0],_e=(0,s.Db)(he.ZP.projects.useUpdate(null===G||void 0===G?void 0:G.name),{onSuccess:function(e){return(0,xe.wD)(e,{callback:function(){F()},onErrorCallback:function(e,n){return Re({errors:n,response:e})}})}}),De=(0,r.Z)(_e,2),Ne=De[0],Me=De[1].isLoading,He=(0,d.useCallback)((function(e){return Ne({project:e})}),[Ne]),Le=(0,Oe.dd)((function(){return(0,Z.jsxs)(v.Z,{maxWidth:60*B.iI,children:[(0,Z.jsx)(x.Z,{mb:1,children:(0,Z.jsx)(P.Z,{children:"Help improve Mage"})}),(0,Z.jsx)(x.Z,{mb:B.cd,children:(0,Z.jsx)(y.ZP,{default:!0,children:"Please contribute usage statistics to help improve the developer experience for you and everyone in the community \ud83e\udd1d."})}),(0,Z.jsx)(x.Z,{mb:B.cd,children:(0,Z.jsx)(v.Z,{success:!0,children:(0,Z.jsxs)(b.Z,{alignItems:"center",children:[(0,Z.jsx)(q.Yo,{size:5*B.iI,success:!0}),(0,Z.jsx)(x.Z,{mr:1}),(0,Z.jsx)(m.Z,{children:(0,Z.jsx)(y.ZP,{children:"All usage statistics are completely anonymous. It\u2019s impossible for Mage to know which statistics belongs to whom."})})]})})}),(0,Z.jsx)(x.Z,{mb:B.cd,children:(0,Z.jsxs)(y.ZP,{default:!0,children:["By opting into sending usage statistics to ",(0,Z.jsx)(C.Z,{href:"https://www.mage.ai",openNewWindow:!0,children:"Mage"}),", it\u2019ll help the team and community of contributors (",(0,Z.jsx)(C.Z,{href:"https://www.mage.ai/chat",openNewWindow:!0,children:"Magers"}),") learn what\u2019s going wrong with the tool and what improvements can be made."]})}),(0,Z.jsx)(x.Z,{mb:B.cd,children:(0,Z.jsx)(y.ZP,{default:!0,children:"In addition to helping reduce potential errors, you\u2019ll help inform which features are useful and which need work."})}),(0,Z.jsx)(x.Z,{mb:B.cd,children:(0,Z.jsxs)(b.Z,{alignItems:"center",justifyContent:"space-between",children:[(0,Z.jsx)(y.ZP,{bold:!0,children:"I want to help make Mage more powerful for everyone"}),(0,Z.jsx)(x.Z,{mr:B.cd}),(0,Z.jsx)(A.Z,{checked:!0,onCheck:function(){window.confirm("Are you sure you don\u2019t want to help everyone in the community?")&&He({help_improve_mage:!1}).then((function(){return We()}))}})]})}),Me&&(0,Z.jsx)(x.Z,{mb:B.cd,children:(0,Z.jsx)(S.Z,{inverted:!0})}),(0,Z.jsx)(x.Z,{mb:B.cd,children:(0,Z.jsxs)(y.ZP,{muted:!0,small:!0,children:["To learn more about how this works, please check out the ",(0,Z.jsx)(C.Z,{href:"https://docs.mage.ai/contributing/statistics/overview",openNewWindow:!0,small:!0,children:"documentation"}),"."]})}),(0,Z.jsx)(f.Z,{onClick:function(){return He({help_improve_mage:!0}).then((function(){return We()}))},secondary:!0,children:"Close"})]})}),{},[G],{background:!0,hideCallback:function(){He({help_improve_mage:!0})},uuid:"help_mage"}),Be=(0,r.Z)(Le,2),Ye=Be[0],We=Be[1];return(0,d.useEffect)((function(){G&&null===(null===G||void 0===G?void 0:G.help_improve_mage)&&Ye()}),[G,Ye]),(0,Z.jsx)(h.Z,{errors:R,setErrors:_,subheaderChildren:Ae,title:"Pipelines",uuid:"pipelines/index",children:0===(null===V||void 0===V?void 0:V.length)?(0,Z.jsx)(x.Z,{px:3,py:1,children:Y?(0,Z.jsx)(y.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:"No pipelines available"}):(0,Z.jsx)(S.Z,{inverted:!0,large:!0})}):(0,Z.jsx)(ve.cl,{includePadding:!!H,maxHeight:"calc(100vh - ".concat(ge.Mz+74,"px)"),children:(0,Z.jsx)(T.Z,{columnFlex:[null,1,3,4,1,1,1,null],columns:[{label:function(){return""},uuid:"action"},{uuid:(0,J.kC)(k.r0.STATUS)},{uuid:"Name"},{uuid:"Description"},{uuid:(0,J.kC)(k.r0.TYPE)},{uuid:"Blocks"},{uuid:"Triggers"},{center:!0,uuid:"Actions"}],grouping:{column:(0,J.kC)(H),columnIndex:H===k.r0.STATUS?1:H===k.r0.TYPE?4:null,values:H===k.r0.STATUS?Object.values(k.QK).map((function(e){return(0,J.J3)(e)})):H===k.r0.TYPE?Object.values(k.qL).map((function(e){return k.G7[e]})):[]},isSelectedRow:function(e){var n;return(null===(n=V[e])||void 0===n?void 0:n.uuid)===(null===i||void 0===i?void 0:i.uuid)},onClickRow:function(e){return c((function(n){var t=V[e];return(null===n||void 0===n?void 0:n.uuid)!==(null===t||void 0===t?void 0:t.uuid)?t:null}))},onDoubleClickRow:function(n){e.push("/pipelines/[pipeline]/edit","/pipelines/".concat(V[n].uuid,"/edit"))},ref:n,renderRightClickMenuItems:function(e){var n=V[e];return[{label:function(){return"Edit description"},onClick:function(){return Se({pipeline:n,pipelineDescription:null===n||void 0===n?void 0:n.description})},uuid:"edit_description"},{label:function(){return"Rename"},onClick:function(){return Se({pipeline:n,pipelineName:null===n||void 0===n?void 0:n.name})},uuid:"rename"},{label:function(){return"Clone"},onClick:function(){return re({pipeline:{clone_pipeline_uuid:null===n||void 0===n?void 0:n.uuid}})},uuid:"clone"},{label:function(){return"Delete"},onClick:function(){return pe(null===n||void 0===n?void 0:n.uuid)},uuid:"delete"}]},rows:V.map((function(n,t){var i=n.blocks,r=n.description,c=n.schedules,l=n.type,u=n.uuid,s=i.filter((function(e){var n=e.type;return me.tf.SCRATCHPAD!==n})).length,d=c.length,p=c.find((function(e){var n=e.status;return be.fq.ACTIVE===n}));return[d>=1||O[u]?(0,Z.jsx)(f.Z,{iconOnly:!0,loading:!!O[u],noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(e){(0,je.j)(e),E((function(e){return Pe(Pe({},e),{},(0,o.Z)({},u,!0))})),ue(Pe(Pe({},n),{},{status:p?be.fq.INACTIVE:be.fq.ACTIVE}))},children:p?(0,Z.jsx)(q.dz,{muted:!0,size:2*B.iI}):(0,Z.jsx)(q.Py,{default:!0,size:2*B.iI})}):null,(0,Z.jsx)(y.ZP,{default:!p,monospace:!0,success:!!p,children:p?be.fq.ACTIVE:d>=1?be.fq.INACTIVE:"no schedules"},"pipeline_status_".concat(t)),(0,Z.jsx)(a(),{as:"/pipelines/".concat(u),href:"/pipelines/[pipeline]",passHref:!0,children:(0,Z.jsx)(C.Z,{sameColorAsText:!0,children:u})},"pipeline_name_".concat(t)),(0,Z.jsx)(y.ZP,{default:!0,title:r,width:90*B.iI,children:r},"pipeline_description_".concat(t)),(0,Z.jsx)(y.ZP,{children:k.G7[l]},"pipeline_type_".concat(t)),(0,Z.jsx)(y.ZP,{default:0===s,monospace:!0,children:s},"pipeline_block_count_".concat(t)),(0,Z.jsx)(y.ZP,{default:0===d,monospace:!0,children:d},"pipeline_trigger_count_".concat(t)),(0,Z.jsxs)(m.Z,{flex:1,justifyContent:"flex-end",children:[(0,Z.jsx)(f.Z,Pe(Pe({},Ce),{},{onClick:function(){e.push("/pipelines/[pipeline]","/pipelines/".concat(u))},title:"Detail",children:(0,Z.jsx)(q.UY,{default:!0,size:2*B.iI})})),(0,Z.jsx)(x.Z,{mr:1}),(0,Z.jsx)(f.Z,Pe(Pe({},Ce),{},{onClick:function(){e.push("/pipelines/[pipeline]/logs","/pipelines/".concat(u,"/logs"))},title:"Logs",children:(0,Z.jsx)(q.$B,{default:!0,size:2*B.iI})}))]},"chevron_icon_".concat(t))]})),stickyHeader:!0})})})}ke.getInitialProps=(0,i.Z)(l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)})));var Ee=(0,E.Z)(ke)},33766:function(e,n,t){"use strict";t.d(n,{O2:function(){return d},g_:function(){return f},u7:function(){return p}});var i=t(75582),r=t(82394),o=t(34376),c=t.n(o),l=t(59e3),u=t(24224);function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var d="_offset";function p(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.preserveParams,r=n.pushHistory,o=n.replaceParams,u=(0,l.iV)(),a={};t&&t.forEach((function(e){u[e]&&(a[e]=u[e])}));var d,p=o?a:u;d=window.location.pathname;var f=r?c().push:c().replace,h=s(s({},p),e);Object.entries(e).forEach((function(e){var n=(0,i.Z)(e,2),t=n[0],r=n[1];"undefined"!==typeof r&&null!==r||delete h[t]}));var m=(0,l.uM)(h);m.length>=1&&(m="?".concat(m));var b="".concat(d.split("?")[0]).concat(m);return f(c().router.pathname,b,{shallow:!0})}function f(e,n,t){var r=t.addingMultipleValues,o=t.isList,c=t.itemsPerPage,l=t.pushHistory,a=void 0!==l&&l,f=t.resetLimitParams,h=s({},e);r?Object.entries(n).forEach((function(e){var n=(0,i.Z)(e,2),t=n[0],r=n[1];if(Array.isArray(r)){var o="".concat(t,"[]");h[o]=r.map(String)}})):o?Object.entries(n).forEach((function(e){var n=(0,i.Z)(e,2),t=n[0],r=n[1],o=String(r),c="".concat(t,"[]"),l=h[c];l&&Array.isArray(l)?(l=l.map(String)).includes(o)?h[c]=(0,u.Od)(l,(function(e){return e===o})):h[c]=l.concat(o):h[c]=[o]})):h=s(s({},h),n),f&&(h._limit=c||20,h[d]=0),p(h,{pushHistory:a})}},79274:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines",function(){return t(46614)}])}},function(e){e.O(0,[844,7607,1424,1005,8180,9774,2888,179],(function(){return n=79274,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/account/profile-3ca183fdcb571bde.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6308],{63153:function(e,n,r){"use strict";r.d(n,{Z3:function(){return t},ms:function(){return i},s7:function(){return o}});var t=[{autoComplete:"username",label:"Username",required:!0,uuid:"username"},{autoComplete:"email",disabled:!1,label:"Email",required:!0,type:"email",uuid:"email"}],o="password_current",i=[{autoComplete:"current-password",label:"Current password",type:"password",uuid:o},{autoComplete:"new-password",label:"New password",type:"password",uuid:"password"},{autoComplete:"new-password",label:"Confirm new password",type:"password",uuid:"password_confirmation"}]},20582:function(e,n,r){"use strict";var t=r(82394),o=r(21831),i=r(75582),u=r(21764),d=r(82684),c=r(83455),s=r(60328),a=r(67971),l=r(87372),f=r(55378),p=r(86673),h=r(82944),m=r(81132),v=r(82531),b=r(66166),g=r(63153),w=r(9736),x=r(7715),Z=r(96510),j=r(28598);function y(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function _(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?y(Object(r),!0).forEach((function(n){(0,t.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}n.Z=function(e){var n=e.disabledFields,r=e.hideFields,y=e.newUser,O=e.onDeleteSuccess,P=e.onSaveSuccess,C=e.showDelete,k=e.title,I=e.user,N=(0,d.useState)(!0),S=N[0],E=N[1],W=(0,d.useState)({}),D=W[0],T=W[1],H=(0,d.useState)(null),R=H[0],V=H[1],q=(0,w.PR)()||{},M=q.id,A=q.owner,F=q.roles,G=m.K$.filter((function(e){return F!==m.No.ADMIN||M===(null===I||void 0===I?void 0:I.id)||e>m.No.ADMIN})),B=(0,c.Db)(y?v.ZP.users.useCreate():v.ZP.users.useUpdate(null===I||void 0===I?void 0:I.id),{onSuccess:function(e){return(0,Z.wD)(e,{callback:function(e){var n=e.user,r=(0,x.GL)(n,g.Z3.concat(g.ms).map((function(e){return e.uuid})));V(r),u.Am.success(y?"New user created successfully.":"User profile successfully updated.",{position:u.Am.POSITION.BOTTOM_RIGHT,toastId:"user-update-success-".concat(n.id)}),null===P||void 0===P||P(r)},onErrorCallback:function(e){var n=e.error,r=n.errors,t=n.exception,o=n.message,i=n.type;u.Am.error((null===r||void 0===r?void 0:r.error)||t||o,{position:u.Am.POSITION.BOTTOM_RIGHT,toastId:i})}})}}),L=(0,i.Z)(B,2),U=L[0],Q=L[1].isLoading,X=(0,c.Db)(v.ZP.users.useDelete(null===I||void 0===I?void 0:I.id),{onSuccess:function(e){return(0,Z.wD)(e,{callback:function(){null===O||void 0===O||O()},onErrorCallback:function(e){var n=e.error,r=n.errors,t=n.message;alert(t),console.log(r)}})}}),K=(0,i.Z)(X,2),Y=K[0],$=K[1].isLoading,z=r?(0,o.Z)(r):[];y&&z.push(g.s7);var J=!z||!z.includes(g.s7),ee=(0,b.Z)(I);return(0,d.useEffect)((function(){!I||R&&(null===ee||void 0===ee?void 0:ee.id)===(null===I||void 0===I?void 0:I.id)||V((0,x.GL)(I,g.Z3.concat(g.ms).map((function(e){return e.uuid})))),null!==R&&void 0!==R&&R.password||null!==R&&void 0!==R&&R.password_confirmation?(null===R||void 0===R?void 0:R.password)!==(null===R||void 0===R?void 0:R.password_confirmation)?T({password_confirmation:"Password confirmation does not match."}):!J||null!==R&&void 0!==R&&R.password_current?T(null):T({password_current:"This field is required."}):null!==R&&void 0!==R&&R.password_current&&J?null!==R&&void 0!==R&&R.password&&null!==R&&void 0!==R&&R.password_confirmation?T(null):T({password:"This field is required.",password_confirmation:"This field is required."}):null!==R&&void 0!==R&&R.password_current||null!==R&&void 0!==R&&R.password||null!==R&&void 0!==R&&R.password_confirmation||T(null)}),[R,J,I,ee]),(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(l.Z,{children:k||"Edit profile"}),(0,j.jsxs)("form",{children:[g.Z3.filter((function(e){var n=e.uuid;return!z||!z.includes(n)})).map((function(e){var n=e.autoComplete,r=e.disabled,o=e.label,i=e.required,u=e.type,d=e.uuid;return(0,j.jsx)(p.Z,{mt:2,children:(0,j.jsx)(h.Z,{autoComplete:n,disabled:r&&!y,label:o,onChange:function(e){E(!1),V((function(n){return _(_({},n),{},(0,t.Z)({},d,e.target.value))}))},primary:!0,required:i,setContentOnMount:!0,type:u,value:(null===R||void 0===R?void 0:R[d])||""})},d)})),!(null!==I&&void 0!==I&&I.owner)&&(0,j.jsx)(p.Z,{mt:2,children:(0,j.jsxs)(f.Z,{disabled:null===n||void 0===n?void 0:n.includes("roles"),label:"Roles",onChange:function(e){if(E(!1),e.target.value===m.No.OWNER)V((function(e){return _(_({},e),{},{owner:!0,roles:null})}));else{var n={roles:e.target.value};A&&(n.owner=!1),V((function(e){return _(_({},e),n)}))}},primary:!0,setContentOnMount:!0,value:(null!==R&&void 0!==R&&R.owner?m.No.OWNER:null===R||void 0===R?void 0:R.roles)||(null===I||void 0===I?void 0:I.roles)||"",children:[G.map((function(e){return(0,j.jsx)("option",{value:e,children:m.gG[e]},e)})),!y&&A&&(0,j.jsx)("option",{value:m.No.OWNER,children:m.gG[m.No.OWNER]},"owner_role")]})}),(0,j.jsxs)(p.Z,{mt:5,children:[(0,j.jsx)(l.Z,{children:y?"Password":"Change password"}),g.ms.filter((function(e){var n=e.uuid;return!z||!z.includes(n)})).map((function(e){var n=e.autoComplete,r=e.disabled,o=e.label,i=e.required,u=e.type,d=e.uuid;return(0,j.jsx)(p.Z,{mt:2,children:(0,j.jsx)(h.Z,{autoComplete:n,disabled:r,label:o,meta:{error:null===D||void 0===D?void 0:D[d],touched:!(null===D||void 0===D||!D[d])},onChange:function(e){E(!1),V((function(n){return _(_({},n),{},(0,t.Z)({},d,e.target.value))}))},primary:!0,required:i,setContentOnMount:!0,type:u,value:(null===R||void 0===R?void 0:R[d])||""})},d)}))]}),(0,j.jsx)(p.Z,{mt:5,children:(0,j.jsxs)(a.Z,{children:[(0,j.jsx)(s.Z,{disabled:S||D&&!(0,x.Qr)(D),loading:Q,onClick:function(){return U({user:R})},primary:!0,children:y?"Create new user":"Update user profile"}),C&&A&&(0,j.jsx)(p.Z,{ml:1,children:(0,j.jsx)(s.Z,{danger:!0,loading:$,onClick:function(){window.confirm("Are you sure you want to delete ".concat(R.username||R.email,"?"))&&Y()},children:"Delete user"})})]})})]})]})}},29237:function(e,n,r){"use strict";var t=r(9518),o=r(67971),i=r(86673),u=r(19711),d=r(23831),c=r(73942),s=r(37391),a=r(49125),l=r(28598),f=(0,t.css)(["padding:","px;padding-bottom:","px;padding-top:","px;"],2*a.iI,1.5*a.iI,1.5*a.iI),p=t.default.div.withConfig({displayName:"Panel__PanelStyle",componentId:"sc-1ct8cgl-0"})(["border-radius:","px;overflow:hidden;"," "," "," "," "," "," "," "," "," "," "," ",""],c.n_,(function(e){return e.fullWidth&&"\n width: 100%;\n "}),(function(e){return!e.borderless&&"\n border: 1px solid ".concat((e.theme.interactive||d.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.success&&"\n background-color: ".concat((e.theme.background||d.Z.background).successLight,";\n ")}),(function(e){return e.success&&!e.borderless&&"\n border: 1px solid ".concat((e.theme.background||d.Z.background).success,";\n ")}),(function(e){return!e.dark&&!e.success&&"\n background-color: ".concat((e.theme.background||d.Z.background).panel,";\n ")}),(function(e){return e.dark&&"\n background-color: ".concat((e.theme.background||d.Z.background).content,";\n ")}),(function(e){return!e.fullHeight&&"\n height: fit-content;\n "}),(function(e){return e.maxHeight&&"\n max-height: ".concat(e.maxHeight,";\n ")}),(function(e){return e.maxWidth&&"\n max-width: ".concat(e.maxWidth,"px;\n ")}),(function(e){return e.minWidth&&"\n min-width: ".concat(e.minWidth,"px;\n\n @media (max-width: ").concat(e.minWidth,"px) {\n min-width: 0;\n }\n ")}),(function(e){return e.borderless&&"\n border: none;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),h=t.default.div.withConfig({displayName:"Panel__HeaderStyle",componentId:"sc-1ct8cgl-1"})(["border-top-left-radius:","px;border-top-right-radius:","px;"," "," "," ",""],c.n_,c.n_,(function(e){return"\n background-color: ".concat((e.theme.background||d.Z.background).chartBlock,";\n border-bottom: 1px solid ").concat((e.theme.interactive||d.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),f,(function(e){return e.headerPaddingVertical&&"\n padding-bottom: ".concat(e.headerPaddingVertical,"px;\n padding-top: ").concat(e.headerPaddingVertical,"px;\n ")})),m=t.default.div.withConfig({displayName:"Panel__ContentStyle",componentId:"sc-1ct8cgl-2"})(["overflow-y:auto;padding:","px;height:100%;"," "," "," "," ",""],1.75*a.iI,s.w5,(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),(function(e){return e.maxHeight&&"\n max-height: calc(".concat(e.maxHeight," - ").concat(15*a.iI,"px);\n ")}),(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),v=t.default.div.withConfig({displayName:"Panel__FooterStyle",componentId:"sc-1ct8cgl-3"})(["border-style:",";border-top-width:","px;padding:","px;"],c.M8,c.YF,1.75*a.iI);n.Z=function(e){var n=e.borderless,r=e.children,t=e.containerRef,d=e.contentContainerRef,c=e.dark,s=e.footer,a=e.fullHeight,f=void 0===a||a,b=e.fullWidth,g=void 0===b||b,w=e.header,x=e.headerHeight,Z=e.headerIcon,j=e.headerPaddingVertical,y=e.headerTitle,_=e.maxHeight,O=e.maxWidth,P=e.minWidth,C=e.noPadding,k=e.overflowVisible,I=e.subtitle,N=e.success;return(0,l.jsxs)(p,{borderless:n,dark:c,fullHeight:f,fullWidth:g,maxHeight:_,maxWidth:O,minWidth:P,overflowVisible:k,ref:t,success:N,children:[(w||y)&&(0,l.jsxs)(h,{headerPaddingVertical:j,height:x,children:[w&&w,y&&(0,l.jsx)(o.Z,{alignItems:"center",justifyContent:"space-between",children:(0,l.jsxs)(o.Z,{alignItems:"center",children:[Z&&Z,(0,l.jsx)(i.Z,{ml:Z?1:0,children:(0,l.jsx)(u.ZP,{bold:!0,default:!0,children:y})})]})})]}),(0,l.jsxs)(m,{maxHeight:_,noPadding:C,overflowVisible:k,ref:d,children:[I&&(0,l.jsx)(i.Z,{mb:2,children:(0,l.jsx)(u.ZP,{default:!0,children:I})}),r]}),s&&(0,l.jsx)(v,{children:s})]})}},96283:function(e,n,r){"use strict";r.r(n);var t=r(77837),o=r(38860),i=r.n(o),u=r(29237),d=r(41788),c=r(30775),s=r(86673),a=r(20582),l=r(82531),f=r(49125),p=r(79585),h=r(9736),m=r(28598);function v(){var e=((0,h.PR)()||{}).id,n=l.ZP.users.detail(e),r=n.data,t=n.mutate,o=null===r||void 0===r?void 0:r.user;return(0,m.jsx)(c.Z,{uuidItemSelected:p.DQ,uuidWorkspaceSelected:p.tC,children:(0,m.jsx)(s.Z,{p:f.cd,children:(0,m.jsx)(u.Z,{children:(0,m.jsx)(a.Z,{disabledFields:["roles"],onSaveSuccess:t,user:o})})})})}v.getInitialProps=(0,t.Z)(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)}))),n.default=(0,d.Z)(v)},10736:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/account/profile",function(){return r(96283)}])},80022:function(e,n,r){"use strict";function t(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.d(n,{Z:function(){return t}})},15544:function(e,n,r){"use strict";function t(e){return t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},t(e)}r.d(n,{Z:function(){return t}})},99177:function(e,n,r){"use strict";function t(e,n){return t=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},t(e,n)}function o(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&t(e,n)}r.d(n,{Z:function(){return o}})},93189:function(e,n,r){"use strict";r.d(n,{Z:function(){return i}});var t=r(12539),o=r(80022);function i(e,n){if(n&&("object"===t(n)||"function"===typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(e)}}},function(e){e.O(0,[844,1424,1005,3077,9774,2888,179],(function(){return n=10736,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|