mage-ai 0.9.8__py3-none-any.whl → 0.9.9__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/ai/constants.py +1 -0
- mage_ai/ai/generator.py +6 -0
- mage_ai/ai/{gen_doc_for_pipeline.py → generator_cmds.py} +5 -0
- mage_ai/ai/llm_pipeline_wizard.py +108 -3
- mage_ai/api/policies/BlockPolicy.py +1 -0
- mage_ai/api/policies/BlockTemplatePolicy.py +9 -0
- mage_ai/api/policies/LlmPolicy.py +3 -2
- mage_ai/api/policies/OauthAccessTokenPolicy.py +31 -0
- mage_ai/api/policies/PipelinePolicy.py +1 -0
- mage_ai/api/policies/ProjectPolicy.py +9 -0
- mage_ai/api/policies/SearchResultPolicy.py +32 -0
- mage_ai/api/policies/VariablePolicy.py +8 -0
- mage_ai/api/presenters/BlockTemplatePresenter.py +1 -0
- mage_ai/api/presenters/OauthAccessTokenPresenter.py +9 -0
- mage_ai/api/presenters/ProjectPresenter.py +2 -0
- mage_ai/api/presenters/SearchResultPresenter.py +73 -0
- mage_ai/api/resources/BlockResource.py +43 -4
- mage_ai/api/resources/BlockTemplateResource.py +15 -2
- mage_ai/api/resources/CustomTemplateResource.py +15 -3
- mage_ai/api/resources/FileContentResource.py +8 -1
- mage_ai/api/resources/FileResource.py +22 -2
- mage_ai/api/resources/OauthAccessTokenResource.py +24 -0
- mage_ai/api/resources/PipelineResource.py +70 -2
- mage_ai/api/resources/ProjectResource.py +15 -1
- mage_ai/api/resources/SearchResultResource.py +68 -0
- mage_ai/api/resources/VariableResource.py +25 -14
- mage_ai/cache/base.py +3 -0
- mage_ai/cache/block_action_object/__init__.py +282 -0
- mage_ai/cache/block_action_object/constants.py +4 -0
- mage_ai/cache/constants.py +1 -0
- mage_ai/data_integrations/destinations/constants.py +2 -0
- mage_ai/data_preparation/executors/k8s_pipeline_executor.py +1 -1
- mage_ai/data_preparation/models/block/__init__.py +20 -1
- mage_ai/data_preparation/models/block/dbt/utils/__init__.py +1 -0
- mage_ai/data_preparation/models/custom_templates/custom_block_template.py +8 -3
- mage_ai/data_preparation/models/custom_templates/utils.py +6 -3
- mage_ai/data_preparation/models/file.py +3 -0
- mage_ai/data_preparation/models/pipeline.py +10 -1
- mage_ai/data_preparation/models/{project.py → project/__init__.py} +17 -0
- mage_ai/data_preparation/models/project/constants.py +5 -0
- mage_ai/data_preparation/repo_manager.py +9 -6
- mage_ai/data_preparation/templates/constants.py +478 -1
- mage_ai/data_preparation/templates/template.py +9 -1
- mage_ai/orchestration/db/__init__.py +25 -0
- mage_ai/orchestration/pipeline_scheduler.py +23 -0
- 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/OwvTROmputQCA1Z9HEGDv/_buildManifest.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{1005-ce36fe7ed460d006.js → 1005-16c1a6678de5311e.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1424-e22139f33196c5c1.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/1484-a76b2c31e4808379.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/2485-b569baad92049d6b.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{2786-d8b593e5d7c42665.js → 2786-acce6ea0d9b4898e.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3654-573457b62efff6e2.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/3881-0eb04f7f7a244347.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{4317-b112fe7bb532b998.js → 4317-3fe63fc9401685d6.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{4822-52d9d661b6bd1ae9.js → 4822-045cc7cdd7c95163.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{547-14029bdacc0ed267.js → 547-4ad2cdae967055b6.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/6299-cf188c1b7a1bc33c.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{7815-6dc55b5fd5d1f48a.js → 7815-fbd99c8f259d9e8b.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{8312-cdc4d6c3b9f53099.js → 8312-c88a3b1012e5448b.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{8952-492bf0e29d215ddd.js → 8952-e94a7334fcd5c68b.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/9055-d0d25298cb5f4e45.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{_app-c7557dc9e725825e.js → _app-fa38a24707c76411.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/files-b9dac983c75798f2.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/{settings-17bb362b9683079c.js → settings-453aaa7bf78f8101.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/{[user]-bfa53c0ee79920a0.js → [user]-3b502aa6d1a04cad.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/{new-2f7e6bf8e2a37380.js → new-dd41d718cbb5990c.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users-ec748f838b7b8fad.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-bcc24120f5911f76.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{overview-8ffbc4b0e8a43266.js → overview-6f20b9e9cbec91d6.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/{[...slug]-373f6b8c9161e819.js → [...slug]-55212dfc15881ef2.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{backfills-226bf0c5c1bfe004.js → backfills-6b4a82cd0516e121.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-0705c99df236ec8a.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{logs-4ade07836fd577c9.js → logs-c294f5d74bd2d50f.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{monitors-fd9eb711e89425e9.js → monitors-1b9e4abc54842cdf.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{runs-027666ed18d3151e.js → runs-17ebe87e94242ae5.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-48b60ca236a26818.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{syncs-de58e6b91e5e4552.js → syncs-5153f4665aaf8b17.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/{[...slug]-432843576e1ed09e.js → [...slug]-1306e85191f6b47c.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{triggers-ae31b1d0d8a4634d.js → triggers-2e731d343a26d46a.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-0fab737dbc9074fc.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-b2354688508b0755.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{users-a4f01b5c429757cc.js → users-6522c963087f18e8.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{sign-in-1140f8ee7e89381a.js → sign-in-7dcd1257ca9660bb.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/templates/{[...slug]-f59b3f04c5a49351.js → [...slug]-78a07e7fe8973811.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{templates-dbb209ce131390a9.js → templates-19df643f52679d5a.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-a1cf445565b68809.js +1 -0
- mage_ai/server/frontend_dist/files.html +2 -2
- mage_ai/server/frontend_dist/index.html +2 -2
- mage_ai/server/frontend_dist/manage/settings.html +2 -2
- mage_ai/server/frontend_dist/manage/users/[user].html +2 -2
- mage_ai/server/frontend_dist/manage/users/new.html +2 -2
- mage_ai/server/frontend_dist/manage/users.html +2 -2
- mage_ai/server/frontend_dist/manage.html +2 -2
- mage_ai/server/frontend_dist/overview.html +2 -2
- mage_ai/server/frontend_dist/pipeline-runs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/settings.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline].html +2 -2
- mage_ai/server/frontend_dist/pipelines.html +2 -2
- mage_ai/server/frontend_dist/settings/account/profile.html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/preferences.html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/sync-data.html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/users.html +2 -2
- mage_ai/server/frontend_dist/settings.html +2 -2
- mage_ai/server/frontend_dist/sign-in.html +16 -16
- mage_ai/server/frontend_dist/templates/[...slug].html +2 -2
- mage_ai/server/frontend_dist/templates.html +2 -2
- mage_ai/server/frontend_dist/terminal.html +2 -2
- mage_ai/server/frontend_dist/test.html +2 -2
- mage_ai/server/frontend_dist/triggers.html +2 -2
- mage_ai/server/frontend_dist/version-control.html +2 -2
- mage_ai/server/server.py +5 -0
- mage_ai/services/search/__init__.py +0 -0
- mage_ai/services/search/block_action_objects.py +33 -0
- mage_ai/services/search/constants.py +1 -0
- mage_ai/shared/array.py +7 -0
- mage_ai/shared/parsers.py +11 -2
- mage_ai/tests/shared/test_parsers.py +73 -0
- mage_ai/usage_statistics/constants.py +1 -0
- mage_ai/usage_statistics/logger.py +19 -1
- {mage_ai-0.9.8.dist-info → mage_ai-0.9.9.dist-info}/METADATA +9 -7
- {mage_ai-0.9.8.dist-info → mage_ai-0.9.9.dist-info}/RECORD +142 -129
- mage_ai/server/frontend_dist/_next/static/RcIgkp9pBXE1Rb4tOGR1L/_buildManifest.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1424-de97c5aa0477894b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1484-c9d6bc33227070dd.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/2485-86c97f516c1abb9f.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3215-c2f5f19b650f9a50.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3654-bff4740b63cf280c.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3881-7f121dbbe6e273cd.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/6299-97f283be01adf6a8.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/files-0df5a20d6f1aa606.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users-1f6cb7656299cbd1.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-4894eabb442a039c.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-a9bd86bee73b5762.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-cf51793c2112915c.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-f1131ffe0d2a4a06.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-170943ca00445486.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-2ecda1f1437013f2.js +0 -1
- /mage_ai/server/frontend_dist/_next/static/{RcIgkp9pBXE1Rb4tOGR1L → OwvTROmputQCA1Z9HEGDv}/_middlewareManifest.js +0 -0
- /mage_ai/server/frontend_dist/_next/static/{RcIgkp9pBXE1Rb4tOGR1L → OwvTROmputQCA1Z9HEGDv}/_ssgManifest.js +0 -0
- {mage_ai-0.9.8.dist-info → mage_ai-0.9.9.dist-info}/LICENSE +0 -0
- {mage_ai-0.9.8.dist-info → mage_ai-0.9.9.dist-info}/WHEEL +0 -0
- {mage_ai-0.9.8.dist-info → mage_ai-0.9.9.dist-info}/entry_points.txt +0 -0
- {mage_ai-0.9.8.dist-info → mage_ai-0.9.9.dist-info}/top_level.txt +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8170],{17717:function(e,n,t){var r=t(554);!function(){"use strict";var n={977:function(e){function n(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function t(e,n){for(var t,r="",i=0,o=-1,u=0,c=0;c<=e.length;++c){if(c<e.length)t=e.charCodeAt(c);else{if(47===t)break;t=47}if(47===t){if(o===c-1||1===u);else if(o!==c-1&&2===u){if(r.length<2||2!==i||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(r.length>2){var l=r.lastIndexOf("/");if(l!==r.length-1){-1===l?(r="",i=0):i=(r=r.slice(0,l)).length-1-r.lastIndexOf("/"),o=c,u=0;continue}}else if(2===r.length||1===r.length){r="",i=0,o=c,u=0;continue}n&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(o+1,c):r=e.slice(o+1,c),i=c-o-1;o=c,u=0}else 46===t&&-1!==u?++u:u=-1}return r}var i={resolve:function(){for(var e,i="",o=!1,u=arguments.length-1;u>=-1&&!o;u--){var c;u>=0?c=arguments[u]:(void 0===e&&(e=r.cwd()),c=e),n(c),0!==c.length&&(i=c+"/"+i,o=47===c.charCodeAt(0))}return i=t(i,!o),o?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(e){if(n(e),0===e.length)return".";var r=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return 0!==(e=t(e,!r)).length||r||(e="."),e.length>0&&i&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return n(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t<arguments.length;++t){var r=arguments[t];n(r),r.length>0&&(void 0===e?e=r:e+="/"+r)}return void 0===e?".":i.normalize(e)},relative:function(e,t){if(n(e),n(t),e===t)return"";if((e=i.resolve(e))===(t=i.resolve(t)))return"";for(var r=1;r<e.length&&47===e.charCodeAt(r);++r);for(var o=e.length,u=o-r,c=1;c<t.length&&47===t.charCodeAt(c);++c);for(var l=t.length-c,a=u<l?u:l,s=-1,f=0;f<=a;++f){if(f===a){if(l>a){if(47===t.charCodeAt(c+f))return t.slice(c+f+1);if(0===f)return t.slice(c+f)}else u>a&&(47===e.charCodeAt(r+f)?s=f:0===f&&(s=0));break}var d=e.charCodeAt(r+f);if(d!==t.charCodeAt(c+f))break;47===d&&(s=f)}var p="";for(f=r+s+1;f<=o;++f)f!==o&&47!==e.charCodeAt(f)||(0===p.length?p+="..":p+="/..");return p.length>0?p+t.slice(c+s):(c+=s,47===t.charCodeAt(c)&&++c,t.slice(c))},_makeLong:function(e){return e},dirname:function(e){if(n(e),0===e.length)return".";for(var t=e.charCodeAt(0),r=47===t,i=-1,o=!0,u=e.length-1;u>=1;--u)if(47===(t=e.charCodeAt(u))){if(!o){i=u;break}}else o=!1;return-1===i?r?"/":".":r&&1===i?"//":e.slice(0,i)},basename:function(e,t){if(void 0!==t&&"string"!==typeof t)throw new TypeError('"ext" argument must be a string');n(e);var r,i=0,o=-1,u=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var c=t.length-1,l=-1;for(r=e.length-1;r>=0;--r){var a=e.charCodeAt(r);if(47===a){if(!u){i=r+1;break}}else-1===l&&(u=!1,l=r+1),c>=0&&(a===t.charCodeAt(c)?-1===--c&&(o=r):(c=-1,o=l))}return i===o?o=l:-1===o&&(o=e.length),e.slice(i,o)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!u){i=r+1;break}}else-1===o&&(u=!1,o=r+1);return-1===o?"":e.slice(i,o)},extname:function(e){n(e);for(var t=-1,r=0,i=-1,o=!0,u=0,c=e.length-1;c>=0;--c){var l=e.charCodeAt(c);if(47!==l)-1===i&&(o=!1,i=c+1),46===l?-1===t?t=c:1!==u&&(u=1):-1!==t&&(u=-1);else if(!o){r=c+1;break}}return-1===t||-1===i||0===u||1===u&&t===i-1&&t===r+1?"":e.slice(t,i)},format:function(e){if(null===e||"object"!==typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,n){var t=n.dir||n.root,r=n.base||(n.name||"")+(n.ext||"");return t?t===n.root?t+r:t+e+r:r}("/",e)},parse:function(e){n(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var r,i=e.charCodeAt(0),o=47===i;o?(t.root="/",r=1):r=0;for(var u=-1,c=0,l=-1,a=!0,s=e.length-1,f=0;s>=r;--s)if(47!==(i=e.charCodeAt(s)))-1===l&&(a=!1,l=s+1),46===i?-1===u?u=s:1!==f&&(f=1):-1!==u&&(f=-1);else if(!a){c=s+1;break}return-1===u||-1===l||0===f||1===f&&u===l-1&&u===c+1?-1!==l&&(t.base=t.name=0===c&&o?e.slice(1,l):e.slice(c,l)):(0===c&&o?(t.name=e.slice(1,u),t.base=e.slice(1,l)):(t.name=e.slice(c,u),t.base=e.slice(c,l)),t.ext=e.slice(u,l)),c>0?t.dir=e.slice(0,c-1):o&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};i.posix=i,e.exports=i}},t={};function i(e){var r=t[e];if(void 0!==r)return r.exports;var o=t[e]={exports:{}},u=!0;try{n[e](o,o.exports,i),u=!1}finally{u&&delete t[e]}return o.exports}i.ab="//";var o=i(977);e.exports=o}()},55264:function(e,n,t){"use strict";var r=t(82684),i=t(79891),o=t(67971),u=t(19711),c=t(24224),l=t(28598);n.Z=function(e){var n=e.onClickTag,t=e.tags,a=void 0===t?[]:t,s=(0,r.useMemo)((function(){return(null===a||void 0===a?void 0:a.length)||0}),[a]),f=(0,r.useMemo)((function(){return(0,c.YC)(a||[],"uuid")}),[a]);return(0,l.jsx)(o.Z,{alignItems:"center",flexWrap:"wrap",children:null===f||void 0===f?void 0:f.reduce((function(e,t){return e.push((0,l.jsx)("div",{style:{marginBottom:2,marginRight:s>=2?4:0,marginTop:2},children:(0,l.jsx)(i.Z,{onClick:n?function(){return n(t)}:null,small:!0,children:(0,l.jsx)(u.ZP,{children:t.uuid})})},"tag-".concat(t.uuid))),e}),[])})}},18221:function(e,n,t){"use strict";var r;t.d(n,{R:function(){return i}}),function(e){e.AZURE_CONTAINER_INSTANCE="azure_container_instance",e.ECS="ecs",e.GCP_CLOUD_RUN="gcp_cloud_run",e.K8S="k8s",e.LOCAL_PYTHON="local_python",e.PYSPARK="pyspark"}(r||(r={}));var i=[r.AZURE_CONTAINER_INSTANCE,r.ECS,r.GCP_CLOUD_RUN,r.K8S,r.LOCAL_PYTHON,r.PYSPARK]},98781:function(e,n,t){"use strict";t.d(n,{$1:function(){return s},G7:function(){return d},LM:function(){return p},Mj:function(){return h},QK:function(){return a},a_:function(){return g},qL:function(){return u},r0:function(){return f}});var r,i,o,u,c=t(82394),l=t(10503);!function(e){e.INTEGRATION="integration",e.PYTHON="python",e.PYSPARK="pyspark",e.STREAMING="streaming"}(u||(u={}));var a,s,f,d=(r={},(0,c.Z)(r,u.INTEGRATION,"Integration"),(0,c.Z)(r,u.PYTHON,"Standard"),(0,c.Z)(r,u.PYSPARK,"PySpark"),(0,c.Z)(r,u.STREAMING,"Streaming"),r),p="all",h=(u.PYTHON,u.INTEGRATION,u.STREAMING,i={},(0,c.Z)(i,p,l.ie),(0,c.Z)(i,u.INTEGRATION,l.YC),(0,c.Z)(i,u.PYTHON,l.El),(0,c.Z)(i,u.STREAMING,l.dB),i);!function(e){e.ACTIVE="active",e.INACTIVE="inactive",e.NO_SCHEDULES="no_schedules",e.RETRY="retry"}(a||(a={})),function(e){e.GROUP="group_by",e.STATUS="status[]",e.TAG="tag[]",e.TYPE="type[]"}(s||(s={})),function(e){e.STATUS="status",e.TAG="tag",e.TYPE="type"}(f||(f={}));var g=(o={},(0,c.Z)(o,u.PYTHON,"python3"),(0,c.Z)(o,u.PYSPARK,"pysparkkernel"),o)},79891:function(e,n,t){"use strict";var r=t(38626),i=t(60328),o=t(67971),u=t(86673),c=t(19711),l=t(23831),a=t(10503),s=t(49125),f=t(31012),d=t(28598),p=r.default.div.withConfig({displayName:"Chip__ChipStyle",componentId:"sc-1ok73g-0"})(["display:inline-block;"," "," "," "," ",""],(function(e){return!e.primary&&"\n background-color: ".concat((e.theme.background||l.Z.background).tag,";\n ")}),(function(e){return e.primary&&"\n background-color: ".concat((e.theme.chart||l.Z.chart).primary,";\n ")}),(function(e){return!e.small&&"\n border-radius: ".concat((s.iI+f.Al)/2,"px;\n height: ").concat(1.5*s.iI+f.Al,"px;\n padding: ").concat(s.iI/1.5,"px ").concat(1.25*s.iI,"px;\n ")}),(function(e){return e.small&&"\n border-radius: ".concat((s.iI/2+f.Al)/2,"px;\n height: ").concat(f.Al+s.iI/2+2,"px;\n padding: ").concat(s.iI/4,"px ").concat(s.iI,"px;\n ")}),(function(e){return e.border&&"\n border: 1px solid ".concat((e.theme.content||l.Z.content).muted,";\n ")}));n.Z=function(e){var n=e.border,t=e.children,r=e.disabled,l=e.label,f=e.onClick,h=e.primary,g=e.small;return(0,d.jsx)(p,{border:n,primary:h,small:g,children:(0,d.jsx)(i.Z,{basic:!0,disabled:r,noBackground:!0,noPadding:!0,onClick:f,transparent:!0,children:(0,d.jsxs)(o.Z,{alignItems:"center",children:[t,l&&(0,d.jsx)(c.ZP,{small:g,children:l}),!r&&f&&(0,d.jsx)(u.Z,{ml:1,children:(0,d.jsx)(a.x8,{default:h,muted:!h,size:g?s.iI:1.25*s.iI})})]})})})}},87372:function(e,n,t){"use strict";var r,i,o,u,c,l,a,s,f=t(82394),d=t(26304),p=t(26653),h=t(38626),g=t(33591),v=t(23831),m=t(2005),y=t(31012),b=t(19711),x=t(49125),j=t(86673),w=t(28598),O=["children","condensed","inline","level","marketing","spacingBelow"];function _(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function C(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,f.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 Z=(0,h.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],b.IH,(function(e){return e.color&&"\n color: ".concat(e.color,"\n ")}),(function(e){return e.yellow&&"\n color: ".concat((e.theme.accent||v.Z.accent).yellow,";\n ")}),(function(e){return e.center&&"\n text-align: center;\n "}),(function(e){return!e.monospace&&0===Number(e.weightStyle)&&"\n font-family: ".concat(m.iI,";\n ")}),(function(e){return!e.monospace&&1===Number(e.weightStyle)&&"\n font-family: ".concat(m.LX,";\n ")}),(function(e){return!e.monospace&&2===Number(e.weightStyle)&&"\n font-family: ".concat(m.LX,";\n ")}),(function(e){return!e.monospace&&3===Number(e.weightStyle)&&"\n font-family: ".concat(m.ry,";\n ")}),(function(e){return!e.monospace&&4===Number(e.weightStyle)&&"\n font-family: ".concat(m.YC,";\n ")}),(function(e){return!e.monospace&&5===Number(e.weightStyle)&&"\n font-family: ".concat(m.nF,";\n ")}),(function(e){return!e.monospace&&(6===Number(e.weightStyle)||e.bold)&&"\n font-family: ".concat(m.nF,";\n ")}),(function(e){return!e.monospace&&7===Number(e.weightStyle)&&"\n font-family: ".concat(m.nF,";\n ")}),(function(e){return!e.monospace&&8===Number(e.weightStyle)&&"\n font-family: ".concat(m.nF,";\n ")}),(function(e){return e.lineHeightAuto&&"\n line-height: normal !important;\n "})),k=h.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(e){return"\n color: ".concat((e.theme.content||v.Z.content).active,";\n ")})),S=h.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],Z,g.media.md(r||(r=(0,p.Z)(["\n ","\n "])),y.aQ),g.media.lg(i||(i=(0,p.Z)(["\n ","\n "])),y.aQ),g.media.xl(o||(o=(0,p.Z)(["\n ","\n "])),y.aQ)),P=h.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],Z,y.MJ),N=h.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],Z,g.media.xs(u||(u=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI),g.media.sm(c||(c=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI),g.media.md(l||(l=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI),g.media.lg(a||(a=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI),g.media.xl(s||(s=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI)),I=h.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],Z,y.BL),E=h.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],Z),A=h.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],Z),T=h.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],Z),M=h.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],Z,(function(e){return 1===e.level&&"\n ".concat(y.MJ,"\n ")}),(function(e){return 2===e.level&&"\n ".concat(y.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 "})),R=function(e){var n,t=e.children,r=e.condensed,i=e.inline,o=e.level,u=e.marketing,c=e.spacingBelow,l=(0,d.Z)(e,O);i?n=M:0===Number(o)?n=S:1===Number(o)?n=u?N:P:2===Number(o)?n=I:3===Number(o)?n=E:4===Number(o)?n=A:5===Number(o)&&(n=T);var a=(0,w.jsxs)(n,C(C({},l),{},{level:o,children:[c&&(0,w.jsx)(j.Z,{mb:r?2:3,children:t}),!c&&t]}));return i?a:(0,w.jsx)(k,{children:a})};R.defaultProps={level:3,weightStyle:6},n.Z=R},9031:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return re}});var r=t(77837),i=t(75582),o=t(82394),u=t(38860),c=t.n(u),l=t(82684),a=t(60547),s=t(41788),f=t(60328),d=t(38341),p=t(67971),h=t(87372),g=t(10919),v=t(55378),m=t(86673),y=t(21831),b=t(16115),x=t(41150),j=t(28598);function w(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function O(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,o.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 _=function(e){var n=e.highlightedItemIndexInitial,t=void 0===n?null:n,r=e.itemGroups,i=e.noResultGroups,o=e.onHighlightItemIndexChange,u=e.onMouseEnterItem,c=e.onMouseLeaveItem,a=e.onSelectItem,s=e.renderEmptyState,f=e.searchQuery,d=e.selectedItem,p=e.setItemRefs,h=e.uuid,g=(0,l.useState)(!0),v=g[0],m=g[1],w=(0,l.useMemo)((function(){var e=[],n=r.reduce((function(n,t){var r=t.items.filter((function(e){return!f||function(e,n){return e.searchQueries.filter((function(e){return String(e).toLowerCase().includes(n.toLowerCase())})).length>=1}(e,f)}));return 0===r.length?n:(e.push.apply(e,(0,y.Z)(r)),n.concat(O(O({},t),{},{items:r})))}),[]);return{itemGroups:n,itemsFlattened:e}}),[r,f]),_=w.itemGroups,C=w.itemsFlattened;i&&0===C.length&&(_.push.apply(_,(0,y.Z)(i)),C.push.apply(C,(0,y.Z)(i.reduce((function(e,n){var t=n.items;return e.concat(t)}),[]))));var Z=(0,l.useRef)(null);Z.current=C.map((function(){return(0,l.createRef)()}));var k=(0,l.useState)(t),S=k[0],P=k[1],N=(0,l.useCallback)((function(e){null===o||void 0===o||o(e),P(e)}),[o,P]),I=C[S],E=(0,x.y)(),A=E.registerOnKeyDown,T=E.unregisterOnKeyDown;(0,l.useEffect)((function(){return function(){return T(h)}}),[T,h]),null===A||void 0===A||A(h,(function(e,n,t){var r,i=!0,o=C.length,u=C.findIndex((function(e,r){var i=e.keyboardShortcutValidation;return null===i||void 0===i?void 0:i({keyHistory:t,keyMapping:n},r)})),c=n[b.Gs]&&!n[b.XR]&&!d;return-1!==u?(e.preventDefault(),a(C[u]),m(i),N(u)):(n[b.Uq]||c)&&C[S]?(c&&e.preventDefault(),a(C[S]),m(i),N(S)):(n[b.Bu]?(i=!1,r=null===S?o-1:S-1):n[b.kD]?(i=!1,r=null===S?0:S+1):n[b.vP]&&N(null),"undefined"!==typeof r&&(r>=o?r=0:r<=-1&&(r=o-1),r>=0&&r<=o-1?(N(r),e.preventDefault()):N(null)),void m(i))}),[S,C,d,N,m]),(0,l.useEffect)((function(){null===p||void 0===p||p(Z)}),[Z,C,p]),(0,l.useEffect)((function(){var e=null===S||"undefined"===typeof S||S>=C.length;(null===f||void 0===f?void 0:f.length)>=1&&e&&N(0)}),[S,C,f,N]);var M=(0,l.useCallback)((function(){return m(!0)}),[m]);return(0,l.useEffect)((function(){return window.addEventListener("mousemove",M),function(){window.removeEventListener("mousemove",M)}}),[M]),0===_.length&&s?s():(0,j.jsx)(j.Fragment,{children:_.map((function(e,n){var t=e.items,r=e.renderItem,i=e.renderGroupHeader,o=e.uuid,l=n>=1?_.slice(0,n).reduce((function(e,n){return e+n.items.length}),0):0,s=t.map((function(e,n){var t=e.itemObject,i=e.value,o=i===(null===I||void 0===I?void 0:I.value),s=n+l,f=(null===t||void 0===t?void 0:t.id)||(null===t||void 0===t?void 0:t.uuid);return(0,j.jsx)("div",{id:"item-".concat(i,"-").concat(f),onMouseMove:function(){return v&&N(s)},ref:Z.current[s],children:r(e,{highlighted:o,onClick:function(){return a(e)},onMouseEnter:function(){return null===u||void 0===u?void 0:u(e)},onMouseLeave:function(){return null===c||void 0===c?void 0:c(e)}},n,s)},"item-".concat(i,"-").concat(f))}));return s.length>=1&&(0,j.jsxs)("div",{children:[null===i||void 0===i?void 0:i(),s]},o||"group-uuid-".concat(n))}))})},C=t(79891),Z=t(55264),k=t(19711),S=t(82944),P=t(38626),N=t(23831),I=t(73942),E=t(37391),A=t(49125),T=P.default.div.withConfig({displayName:"indexstyle__DropdownStyle",componentId:"sc-suwkha-0"})([""," border-radius:","px;max-height:","px;overflow:auto;position:absolute;width:100%;z-index:1;"," ",""],E.w5,I.BG,40*A.iI,(function(e){return"\n background-color: ".concat((e.theme.background||N.Z.background).popup,";\n box-shadow: ").concat((e.theme.shadow||N.Z.shadow).popup,";\n ")}),(function(e){return e.topOffset&&"\n top: ".concat(e.topOffset-.5*A.iI,"px;\n ")})),M=P.default.div.withConfig({displayName:"indexstyle__RowStyle",componentId:"sc-suwkha-1"})(["padding:","px;position:relative;z-index:2;&:hover{cursor:pointer;}",""],.5*A.iI,(function(e){return e.highlighted&&"\n background-color: ".concat((e.theme.interactive||N.Z.interactive).hoverBackground,";\n ")})),R=t(66653),H=t(24224);function D(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function z(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?D(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):D(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var G=function(e){var n,t=e.removeTag,r=e.selectTag,i=e.selectedTags,o=void 0===i?[]:i,u=e.tags,c=void 0===u?[]:u,a=e.uuid,s=(0,l.useRef)(null),f=(0,l.useState)(!1),d=f[0],p=f[1],h=(0,l.useState)(null),g=h[0],v=h[1],y=(0,l.useMemo)((function(){return(0,H.YC)(c||[],"uuid")}),[c]),w=(0,l.useMemo)((function(){return null===y||void 0===y?void 0:y.map((function(e){return{itemObject:e,searchQueries:[e.uuid],value:e.uuid}}))}),[y]),O=(0,l.useMemo)((function(){return(null===g||void 0===g?void 0:g.length)>=1?w.concat({itemObject:{uuid:g},searchQueries:[g],value:"Add tag: ".concat(g)}):w}),[w,g]),P=(0,x.y)(),N=P.registerOnKeyDown,I=P.unregisterOnKeyDown;return(0,l.useEffect)((function(){return function(){return I(a)}}),[I,a]),null===N||void 0===N||N(a,(function(e,n){var t;d&&n[b.vP]&&(p(!1),null===s||void 0===s||null===(t=s.current)||void 0===t||t.blur())}),[d,s]),(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(Z.Z,{onClickTag:t,tags:o}),(0,j.jsxs)(m.Z,{mt:1,style:{position:"relative"},children:[(0,j.jsx)(S.Z,{onBlur:function(){return setTimeout((function(){return p(!1)}),150)},onChange:function(e){return v(e.target.value)},onFocus:function(){return p(!0)},ref:s,value:g||""}),(0,j.jsx)(T,{topOffset:null===s||void 0===s||null===(n=s.current)||void 0===n?void 0:n.getBoundingClientRect().height,children:(0,j.jsx)(_,{itemGroups:[{items:d?O:[],renderItem:function(e,n){var t=e.value;return(0,j.jsx)(M,z(z({},n),{},{onClick:function(e){var t;(0,R.j)(e),null===n||void 0===n||null===(t=n.onClick)||void 0===t||t.call(n,e)},children:(0,j.jsx)(C.Z,{small:!0,children:(0,j.jsx)(k.ZP,{children:t})})}))}}],onSelectItem:function(e){var n=e.itemObject;null===r||void 0===r||r(n),v(null)},searchQuery:g,uuid:a})})]})]})},L=t(82531),Y=t(66166),U=t(18221),F=t(11366),B=t(91427),K=t(7715),Q=t(90211);function J(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function W(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?J(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):J(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var X=function(e){var n,t,r,i,u=e.isPipelineUpdating,c=e.pipeline,a=e.updatePipeline,s=(0,l.useRef)(null),y=(0,l.useRef)(null),b=null===c||void 0===c?void 0:c.uuid,x=(0,l.useMemo)((function(){return(null===c||void 0===c?void 0:c.blocks)||[]}),[c]),w=(0,l.useState)(!1),O=w[0],_=w[1],C=(0,l.useState)(!1),Z=C[0],P=C[1],N=(0,l.useState)(null),I=N[0],E=N[1],T=(0,Y.Z)(c);(0,l.useEffect)((function(){(0,K.Xy)(c,T)||E(c)}),[c,T]);var M=(0,l.useCallback)((function(e){_(!0),E(e)}),[]),R="".concat(F.g6,"_").concat(b),D=(0,l.useState)({}),z=D[0],J=D[1],X="".concat(F.vF,"_").concat(b),q=(0,l.useState)(!1),V=q[0],$=q[1],ee=(0,l.useCallback)((function(e){J((function(n){var t=e(n);return(0,B.t8)(R,JSON.stringify(t)),t}))}),[R,J]),ne=(0,l.useCallback)((function(e){$((function(n){var t=e(n);return(0,B.t8)(X,t),t}))}),[X,$]);(0,l.useEffect)((function(){var e=(0,B.U2)(R);e&&(0,Q.Pb)(e)&&J(JSON.parse(e))}),[R,J]),(0,l.useEffect)((function(){var e=(0,B.U2)(X);e&&$(e)}),[X,$]);var te=(0,l.useMemo)((function(){return null===I||void 0===I?void 0:I.executor_type}),[I]);(0,l.useEffect)((function(){Z||!te||U.R.find((function(e){return e===te}))||P(!0)}),[Z,te]);var re=(0,l.useMemo)((function(){return(null===x||void 0===x?void 0:x.filter((function(e){var n=e.uuid;return!(null===z||void 0===z||!z[n])}))).length===x.length}),[x,z]),ie=(0,l.useMemo)((function(){return!(null!==x&&void 0!==x&&x.length)}),[x]),oe=(0,l.useMemo)((function(){return(null===I||void 0===I?void 0:I.tags)||[]}),[I]),ue=L.ZP.tags.list().data,ce=(0,l.useMemo)((function(){return((null===ue||void 0===ue?void 0:ue.tags)||[]).filter((function(e){var n=e.uuid;return!oe.includes(n)}))}),[ue,oe]);return(0,j.jsxs)(m.Z,{p:A.cd,children:[(0,j.jsx)(S.Z,{label:"Pipeline name",onChange:function(e){return M((function(n){return W(W({},n),{},{name:e.target.value})}))},primary:!0,required:!0,setContentOnMount:!0,value:(null===I||void 0===I?void 0:I.name)||""}),(0,j.jsxs)(m.Z,{mt:A.HN,children:[(0,j.jsx)(h.Z,{children:"Executor type"}),(0,j.jsxs)(k.ZP,{muted:!0,children:["For more information on this setting, please read the ",(0,j.jsx)(g.Z,{href:"https://docs.mage.ai/production/configuring-production-settings/compute-resource#2-set-executor-type-and-customize-the-compute-resource-of-the-mage-executor",openNewWindow:!0,children:"documentation"}),"."]}),(0,j.jsxs)(m.Z,{mt:1,children:[!Z&&(0,j.jsx)(v.Z,{label:"Executor type",onChange:function(e){return M((function(n){return W(W({},n),{},{executor_type:e.target.value})}))},primary:!0,ref:s,value:(null===I||void 0===I?void 0:I.executor_type)||"",children:U.R.map((function(e){return(0,j.jsx)("option",{value:e,children:e},e)}))}),Z&&(0,j.jsx)(S.Z,{label:"Executor type",monospace:!0,onChange:function(e){return M((function(n){return W(W({},n),{},{executor_type:e.target.value})}))},ref:y,setContentOnMount:!0,value:(null===I||void 0===I?void 0:I.executor_type)||""}),(0,j.jsx)(m.Z,{mt:1,children:(0,j.jsx)(g.Z,{muted:!0,onClick:function(){Z?(M((function(e){return W(W({},e),{},{executor_type:null===c||void 0===c?void 0:c.executor_type})})),setTimeout((function(){var e;return null===s||void 0===s||null===(e=s.current)||void 0===e?void 0:e.focus()}),1)):setTimeout((function(){var e;return null===y||void 0===y||null===(e=y.current)||void 0===e?void 0:e.focus()}),1),P(!Z)},preventDefault:!0,small:!0,children:Z?"Select a preset executor type":"Enter a custom executor type"})})]})]}),(0,j.jsxs)(m.Z,{mt:A.HN,children:[(0,j.jsx)(h.Z,{children:"Retry configuration"}),(0,j.jsxs)(k.ZP,{muted:!0,children:["For more information on this setting, please read the ",(0,j.jsx)(g.Z,{href:"https://docs.mage.ai/orchestration/pipeline-runs/retrying-block-runs",openNewWindow:!0,children:"documentation"}),"."]}),(0,j.jsx)(m.Z,{mt:1,children:(0,j.jsxs)(p.Z,{children:[(0,j.jsx)(S.Z,{label:"Retries",monospace:!0,onChange:function(e){return M((function(n){return W(W({},n),{},{retry_config:W(W({},null===n||void 0===n?void 0:n.retry_config),{},{retries:"undefined"!==typeof e.target.value&&null!==e.target.value?Number(e.target.value):e.target.value})})}))},setContentOnMount:!0,type:"number",value:(null===I||void 0===I||null===(n=I.retry_config)||void 0===n?void 0:n.retries)||""}),(0,j.jsx)(m.Z,{mr:1}),(0,j.jsx)(S.Z,{label:"Delay",monospace:!0,onChange:function(e){return M((function(n){return W(W({},n),{},{retry_config:W(W({},null===n||void 0===n?void 0:n.retry_config),{},{delay:"undefined"!==typeof e.target.value&&null!==e.target.value?Number(e.target.value):e.target.value})})}))},setContentOnMount:!0,type:"number",value:(null===I||void 0===I||null===(t=I.retry_config)||void 0===t?void 0:t.delay)||""}),(0,j.jsx)(m.Z,{mr:1}),(0,j.jsx)(S.Z,{label:"Max delay",monospace:!0,onChange:function(e){return M((function(n){return W(W({},n),{},{retry_config:W(W({},null===n||void 0===n?void 0:n.retry_config),{},{max_delay:"undefined"!==typeof e.target.value&&null!==e.target.value?Number(e.target.value):e.target.value})})}))},setContentOnMount:!0,type:"number",value:(null===I||void 0===I||null===(r=I.retry_config)||void 0===r?void 0:r.max_delay)||""}),(0,j.jsx)(m.Z,{mr:1}),(0,j.jsx)(d.Z,{checked:!(null===I||void 0===I||null===(i=I.retry_config)||void 0===i||!i.exponential_backoff),label:"Exponential backoff",onClick:function(){return M((function(e){var n;return W(W({},e),{},{retry_config:W(W({},null===e||void 0===e?void 0:e.retry_config),{},{exponential_backoff:!(null!==e&&void 0!==e&&null!==(n=e.retry_config)&&void 0!==n&&n.exponential_backoff)})})}))}})]})})]}),(0,j.jsxs)(m.Z,{mt:A.HN,children:[(0,j.jsx)(h.Z,{children:"Tags"}),(0,j.jsx)(m.Z,{mt:1,children:(0,j.jsx)(G,{removeTag:function(e){M((function(n){return W(W({},n),{},{tags:oe.filter((function(n){return n!==e.uuid}))})}))},selectTag:function(e){M((function(n){return W(W({},n),{},{tags:(0,H.$C)(e.uuid,oe,(function(n){return n===e.uuid}))})}))},selectedTags:null===oe||void 0===oe?void 0:oe.map((function(e){return{uuid:e}})),tags:ce,uuid:"TagsAutocompleteInputField-".concat(null===c||void 0===c?void 0:c.uuid)})})]}),(0,j.jsx)(m.Z,{mt:A.HN,children:(0,j.jsx)(p.Z,{children:(0,j.jsx)(f.Z,{disabled:!O,loading:u,onClick:function(){return a({executor_type:null===I||void 0===I?void 0:I.executor_type,name:null===I||void 0===I?void 0:I.name,retry_config:null===I||void 0===I?void 0:I.retry_config,tags:null===I||void 0===I?void 0:I.tags}).then((function(){return _(!1)}))},primary:!0,children:"Save pipeline settings"})})}),(0,j.jsx)(m.Z,{mt:A.HN,children:(0,j.jsx)(d.Z,{checked:re&&!ie,disabled:ie,label:"Hide all blocks in notebook",onClick:function(){return ee((function(){return re?{}:null===x||void 0===x?void 0:x.reduce((function(e,n){var t=n.uuid;return W(W({},e),{},(0,o.Z)({},t,!0))}),{})}))}})}),(0,j.jsx)(m.Z,{mt:A.Mq,children:(0,j.jsx)(d.Z,{checked:V,label:"When running a block while editing a pipeline, output the block messages to the logs",onClick:function(){return ne((function(e){return!e}))}})})]})},q=t(59920),V=t(83455),$=t(96510);function ee(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 ne(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ee(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ee(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function te(e){var n=e.pipeline,t=(0,l.useState)(null),r=t[0],o=t[1],u=null===n||void 0===n?void 0:n.uuid,c=L.ZP.pipelines.detail(u).data,s=ne(ne({},null===c||void 0===c?void 0:c.pipeline),n),f=(0,V.Db)(L.ZP.pipelines.useUpdate(u,{update_content:!0}),{onSuccess:function(e){return(0,$.wD)(e,{callback:function(e){if(null!==e&&void 0!==e&&e.pipeline){var n=e.pipeline.uuid;u!==n&&(window.location.href="/pipelines/".concat(n,"/settings"))}},onErrorCallback:function(e,n){return o({errors:n,response:e})}})}}),d=(0,i.Z)(f,2),p=d[0],h=d[1].isLoading;return(0,j.jsx)(a.Z,{breadcrumbs:[{label:function(){return"Settings"}}],errors:r,pageName:q.M.SETTINGS,pipeline:s,setErrors:o,title:function(e){var n=e.name;return"".concat(n," settings")},uuid:"".concat(q.M.SETTINGS,"_").concat(u),children:s&&(0,j.jsx)(X,{isPipelineUpdating:h,pipeline:s,updatePipeline:function(e){return p({pipeline:e})}})})}te.getInitialProps=function(){var e=(0,r.Z)(c().mark((function e(n){var t;return c().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 re=(0,s.Z)(te)},11366:function(e,n,t){"use strict";t.d(n,{H8:function(){return i},g6:function(){return o},kY:function(){return r},vF:function(){return u}});var r="automatically_name_blocks",i="pipeline_edit_before_tab_selected",o="pipeline_edit_hidden_blocks",u="pipeline_edit_block_output_logs"},90211:function(e,n,t){"use strict";t.d(n,{RA:function(){return s},kC:function(){return f},vg:function(){return y},kE:function(){return O},Mp:function(){return d},Pb:function(){return l},HW:function(){return x},wX:function(){return p},x6:function(){return h},_6:function(){return g},zf:function(){return b},Y6:function(){return w},wE:function(){return _},J3:function(){return v},We:function(){return a},QV:function(){return j},C5:function(){return m}});var r=t(75582),i=t(17717),o=["aged","ancient","autumn","billowing","bitter","black","blue","bold","broken","cold","cool","crimson","damp","dark","dawn","delicate","divine","dry","empty","falling","floral","fragrant","frosty","green","hidden","holy","icy","late","lingering","little","lively","long","misty","morning","muddy","nameless","old","patient","polished","proud","purple","quiet","red","restless","rough","shy","silent","small","snowy","solitary","sparkling","spring","still","summer","throbbing","twilight","wandering","weathered","white","wild","winter","wispy","withered","young"],u=(t(92083),["bird","breeze","brook","bush","butterfly","cherry","cloud","darkness","dawn","dew","dream","dust","feather","field","fire","firefly","flower","fog","forest","frog","frost","glade","glitter","grass","haze","hill","lake","leaf","meadow","moon","morning","mountain","night","paper","pine","pond","rain","resonance","river","sea","shadow","shape","silence","sky","smoke","snow","snowflake","sound","star","sun","sun","sunset","surf","thunder","tree","violet","voice","water","water","waterfall","wave","wildflower","wind","wood"]),c=t(24224);function l(e){if(!e)return!1;try{JSON.parse(e)}catch(n){return!1}return!0}function a(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";return e.split(" ").join(n)}function s(e){return e.split(" ").join("_")}function f(e){return e?e.charAt(0).toUpperCase()+e.slice(1):""}function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return String((new Date).getTime()*e)}function p(e){return e.charAt(0).toLowerCase()+e.slice(1)}function h(e){if(null===e||"undefined"===typeof e)return"";var n=e.toString().split("."),t=(0,r.Z)(n,2),i=t[0],o=t[1],u=i.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",");return o?"".concat(u,".").concat(o):u}function g(e,n){var t,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=n,o=void 0!==i&&null!==i;if(o||(i=2),1===i)t=e;else{var u=e.length,c=e[u-1];t="y"===c&&"day"!==e?"".concat(e.slice(0,u-1),"ies"):"".concat(e,"s"===c?"es":"s")}if(o){var l=r?h(i):i;return"".concat(l," ").concat(t)}return t}function v(e){return null===e||void 0===e?void 0:e.replace(/_/g," ")}function m(e){var n=e.length;return"ies"===e.slice(n-3,n)?"".concat(e.slice(0,n-3),"y"):"es"===e.slice(n-2,n)&&"ces"!==e.slice(n-3,n)?e.slice(0,n-2):e.slice(0,n-1)}function y(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return f(v(e.toLowerCase()))}function b(e){var n,t=[["second",60],["minute",60],["hour",24],["day",7],["week",4],["month",12],["year",null]];return t.forEach((function(i,o){if(!n){var u=(0,r.Z)(i,2),c=u[0],l=u[1],a=t.slice(0,o).reduce((function(e,n){return e*Number(n[1])}),1);e<Number(l)*a&&(n=g(c,Math.round(e/a)))}})),n}function x(e){return!isNaN(e)}function j(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,t=Math.pow(10,n);return Math.round((e||0)*t)/t}function w(){return"".concat((0,c.mp)(o)," ").concat((0,c.mp)(u))}function O(e){return null===e||void 0===e?void 0:e.toLowerCase().replace(/\W+/g,"_")}function _(e){var n,t=e.split(i.sep),r=t[t.length-1].split(".");return n=1===r.length?r[0]:r.slice(0,-1).join("."),t.slice(0,t.length-1).concat(n).join(i.sep)}},59606:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/settings",function(){return t(9031)}])}},function(e){e.O(0,[844,9902,1424,1005,547,9774,2888,179],(function(){return n=59606,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1221],{1210:function(e,n,t){"use strict";t.d(n,{Z:function(){return k}});var i=t(82394),o=t(21831),r=t(82684),u=t(47999),l=t(49894),c=t(93461),a=t(57384),d=t(41424),s=t(72454),p=t(28598);function f(e,n){var t=e.children;return(0,p.jsx)(s.HS,{ref:n,children:t})}var h=r.forwardRef(f),v=t(32063),m=t(85019),b=t(82531),g=t(66166),x=t(3055),j=t(49125),y=t(91427),Z=t(24141);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 C(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,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):w(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var k=function(e){var n,t=e.addProjectBreadcrumbToCustomBreadcrumbs,i=e.after,f=e.afterHidden,w=e.afterWidth,k=e.afterWidthOverride,P=e.before,O=e.beforeWidth,I=e.breadcrumbs,E=e.children,_=e.errors,T=e.headerMenuItems,S=e.headerOffset,A=e.mainContainerHeader,M=e.navigationItems,D=e.setErrors,B=e.subheaderChildren,R=e.title,N=e.uuid,L=(0,Z.i)().width,H="dashboard_after_width_".concat(N),V="dashboard_before_width_".concat(N),W=(0,r.useRef)(null),G=(0,r.useState)(k?w:(0,y.U2)(H,w)),Y=G[0],U=G[1],z=(0,r.useState)(!1),F=z[0],q=z[1],Q=(0,r.useState)(P?Math.max((0,y.U2)(V,O),13*j.iI):null),K=Q[0],$=Q[1],J=(0,r.useState)(!1),X=J[0],ee=J[1],ne=(0,r.useState)(null)[1],te=b.ZP.projects.list({},{revalidateOnFocus:!1}).data,ie=null===te||void 0===te?void 0:te.projects,oe={label:function(){var e;return null===ie||void 0===ie||null===(e=ie[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},re=[];I?(t&&re.push(oe),re.push.apply(re,(0,o.Z)(I))):(null===ie||void 0===ie?void 0:ie.length)>=1&&re.push.apply(re,[oe,{bold:!0,label:function(){return R}}]),(0,r.useEffect)((function(){null===W||void 0===W||!W.current||F||X||null===ne||void 0===ne||ne(W.current.getBoundingClientRect().width)}),[F,Y,X,K,W,ne,L]),(0,r.useEffect)((function(){F||(0,y.t8)(H,Y)}),[f,F,Y,H]),(0,r.useEffect)((function(){X||(0,y.t8)(V,K)}),[X,K,V]);var ue=(0,g.Z)(w);return(0,r.useEffect)((function(){k&&ue!==w&&U(w)}),[k,w,ue]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(a.Z,{title:R}),(0,p.jsx)(d.Z,{breadcrumbs:re,menuItems:T,project:null===ie||void 0===ie?void 0:ie[0],version:null===ie||void 0===ie||null===(n=ie[0])||void 0===n?void 0:n.version}),(0,p.jsxs)(s.Nk,{children:[0!==(null===M||void 0===M?void 0:M.length)&&(0,p.jsx)(s.lm,{showMore:!0,children:(0,p.jsx)(m.Z,{navigationItems:M,showMore:!0})}),(0,p.jsx)(c.Z,{flex:1,flexDirection:"column",children:(0,p.jsxs)(v.Z,{after:i,afterHeightOffset:x.Mz,afterHidden:f,afterMousedownActive:F,afterWidth:Y,before:P,beforeHeightOffset:x.Mz,beforeMousedownActive:X,beforeWidth:s.k1+(P?K:0),headerOffset:S,hideAfterCompletely:!0,leftOffset:P?s.k1:null,mainContainerHeader:A,mainContainerRef:W,setAfterMousedownActive:q,setAfterWidth:U,setBeforeMousedownActive:ee,setBeforeWidth:$,children:[B&&(0,p.jsx)(h,{children:B}),E]})})]}),_&&(0,p.jsx)(u.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===D||void 0===D?void 0:D(null)},children:(0,p.jsx)(l.Z,C(C({},_),{},{onClose:function(){return null===D||void 0===D?void 0:D(null)}}))})]})}},64651:function(e,n,t){"use strict";t.d(n,{d:function(){return r}});var i=t(98781),o=t(90211),r=function(e,n){var t=[{label:function(){return"Standard (batch)"},onClick:function(){return e({pipeline:{name:(0,o.Y6)()}})},uuid:"Pipelines/NewPipelineMenu/standard"},{label:function(){return"Data integration"},onClick:function(){return e({pipeline:{name:(0,o.Y6)(),type:i.qL.INTEGRATION}})},uuid:"Pipelines/NewPipelineMenu/integration"},{label:function(){return"Streaming"},onClick:function(){return e({pipeline:{name:(0,o.Y6)(),type:i.qL.STREAMING}})},uuid:"Pipelines/NewPipelineMenu/streaming"}];return null!==n&&void 0!==n&&n.showBrowseTemplates&&t.push({label:function(){return"From a template"},onClick:function(){var e;return null===n||void 0===n||null===(e=n.showBrowseTemplates)||void 0===e?void 0:e.call(n)},uuid:"Pipelines/NewPipelineMenu/custom_template"}),t}},50316:function(e,n,t){"use strict";t.d(n,{B:function(){return p}});var i=t(82394),o=t(30264),r=t(11135),u=t(10503),l=t(99994),c=t(49125),a=t(28598);function d(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?d(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var p={bold:!0,greyBorder:!0,paddingBottom:9,paddingTop:9};n.Z=function(e){var n=e.addButtonMenuOpen,t=e.addButtonMenuRef,i=e.isLoading,d=e.label,f=e.menuItems,h=e.onClick,v=e.onClickCallback;return(0,a.jsx)(o.Z,{disableKeyboardShortcuts:!0,items:f,onClickCallback:v,onClickOutside:v,open:n,parentRef:t,roundedStyle:!0,topOffset:1,uuid:"Table/Toolbar/NewItemMenu",children:(0,a.jsx)(r.ZP,s(s({},p),{},{background:l.eW,beforeElement:(0,a.jsx)(u.mm,{size:2.5*c.iI}),loading:i,onClick:function(e){e.preventDefault(),null===h||void 0===h||h()},uuid:"shared/AddButton/index",children:d}))})}},93348:function(e,n,t){"use strict";t.d(n,{TR:function(){return s},U5:function(){return c},Xm:function(){return r},Z4:function(){return d},fq:function(){return l},kJ:function(){return a}});var i,o,r,u=t(82394);!function(e){e.API="api",e.EVENT="event",e.TIME="time"}(r||(r={}));var l,c,a,d=(i={},(0,u.Z)(i,r.API,(function(){return"API"})),(0,u.Z)(i,r.EVENT,(function(){return"event"})),(0,u.Z)(i,r.TIME,(function(){return"schedule"})),i);!function(e){e.ACTIVE="active",e.INACTIVE="inactive"}(l||(l={})),function(e){e.ONCE="@once",e.HOURLY="@hourly",e.DAILY="@daily",e.WEEKLY="@weekly",e.MONTHLY="@monthly"}(c||(c={})),function(e){e.CREATED_AT="created_at",e.NAME="name",e.PIPELINE="pipeline_uuid",e.STATUS="status",e.TYPE="schedule_type"}(a||(a={}));var s=(o={},(0,u.Z)(o,a.CREATED_AT,"Created at"),(0,u.Z)(o,a.NAME,"Name"),(0,u.Z)(o,a.PIPELINE,"Pipeline"),(0,u.Z)(o,a.STATUS,"Status"),(0,u.Z)(o,a.TYPE,"Type"),o)},29237:function(e,n,t){"use strict";var i=t(38626),o=t(67971),r=t(86673),u=t(19711),l=t(23831),c=t(73942),a=t(37391),d=t(49125),s=t(28598),p=(0,i.css)(["padding:","px;padding-bottom:","px;padding-top:","px;"],2*d.iI,1.5*d.iI,1.5*d.iI),f=i.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||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;"," "," "," ",""],c.n_,c.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 ")})),v=i.default.div.withConfig({displayName:"Panel__ContentStyle",componentId:"sc-1ct8cgl-2"})(["overflow-y:auto;padding:","px;height:100%;"," "," "," "," ",""],1.75*d.iI,a.w5,(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),(function(e){return e.maxHeight&&"\n max-height: calc(".concat(e.maxHeight," - ").concat(15*d.iI,"px);\n ")}),(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),m=i.default.div.withConfig({displayName:"Panel__FooterStyle",componentId:"sc-1ct8cgl-3"})(["border-style:",";border-top-width:","px;padding:","px;"],c.M8,c.YF,1.75*d.iI);n.Z=function(e){var n=e.borderless,t=e.children,i=e.containerRef,l=e.contentContainerRef,c=e.dark,a=e.footer,d=e.fullHeight,p=void 0===d||d,b=e.fullWidth,g=void 0===b||b,x=e.header,j=e.headerHeight,y=e.headerIcon,Z=e.headerPaddingVertical,w=e.headerTitle,C=e.maxHeight,k=e.maxWidth,P=e.minWidth,O=e.noPadding,I=e.overflowVisible,E=e.subtitle,_=e.success;return(0,s.jsxs)(f,{borderless:n,dark:c,fullHeight:p,fullWidth:g,maxHeight:C,maxWidth:k,minWidth:P,overflowVisible:I,ref:i,success:_,children:[(x||w)&&(0,s.jsxs)(h,{headerPaddingVertical:Z,height:j,children:[x&&x,w&&(0,s.jsx)(o.Z,{alignItems:"center",justifyContent:"space-between",children:(0,s.jsxs)(o.Z,{alignItems:"center",children:[y&&y,(0,s.jsx)(r.Z,{ml:y?1:0,children:(0,s.jsx)(u.ZP,{bold:!0,default:!0,children:w})})]})})]}),(0,s.jsxs)(v,{maxHeight:C,noPadding:O,overflowVisible:I,ref:l,children:[E&&(0,s.jsx)(r.Z,{mb:2,children:(0,s.jsx)(u.ZP,{default:!0,children:E})}),t]}),a&&(0,s.jsx)(m,{children:a})]})}},12257:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return Le}});var i=t(77837),o=t(75582),r=t(82394),u=t(38860),l=t.n(u),c=t(12691),a=t.n(c),d=t(83455),s=t(82684),p=t(34376),f=t(2485),h=t(60328),v=t(79891),m=t(1210),b=t(93461),g=t(67971),x=t(87372),j=t(11135),y=t(29237),Z=t(86673),w=t(19711),C=t(38435),k=t(82944),P=t(28598);var O=function(e){var n=e.description,t=e.isLoading,i=e.maxWidth,o=e.minWidth,r=e.noEmptyValue,u=e.onClose,l=e.onSave,c=e.textArea,a=e.title,d=e.value,p=(0,s.useRef)(null),f=(0,s.useState)(d),v=f[0],m=f[1],b=c?C.Z:k.Z;return(0,s.useEffect)((function(){var e;null===p||void 0===p||null===(e=p.current)||void 0===e||e.focus()}),[]),(0,P.jsxs)(y.Z,{maxWidth:i,minWidth:o,children:[(0,P.jsx)(w.ZP,{bold:!0,children:a}),(0,P.jsx)(Z.Z,{mt:1,children:(0,P.jsx)(b,{monospace:!0,onChange:function(e){return m(e.target.value)},ref:p,rows:c?7:null,value:v})}),n&&(0,P.jsx)(Z.Z,{mt:2,children:(0,P.jsx)(w.ZP,{muted:!0,small:!0,children:n})}),(0,P.jsx)(Z.Z,{mt:3,children:(0,P.jsxs)(g.Z,{children:[(0,P.jsx)(j.ZP,{bold:!0,inline:!0,loading:t,onClick:function(){v===d||r&&!v?u():l(v)},outline:!0,primary:!0,uuid:"Inputs/InputModal/SaveInput",children:"Save"}),(0,P.jsx)(Z.Z,{ml:1}),(0,P.jsx)(h.Z,{onClick:u,children:"Cancel"})]})})]})},I=t(10919),E=t(98781),_=t(41788),T=t(54283),S=t(87815),A=t(55264),M=t(70902),D=t(50316),B=t(18283),R=t(47999),N=t(30264),L=t(62609),H=t(38626),V=t(23831),W=t(73942),G=t(37391),Y=t(49125),U=74*Y.iI,z=48*Y.iI,F=H.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-18n432u-0"})(["position:absolute;border-radius:","px;overflow:hidden;width:","px;display:none;"," "," "," "," ",""],W.n_,U,(function(e){return"\n background-color: ".concat((e.theme||V.Z).background.panel,";\n border: ").concat(W.mP,"px ").concat(W.M8," ").concat((e.theme||V.Z).interactive.defaultBackground,";\n box-shadow: ").concat((e.theme.shadow||V.Z.shadow).window,";\n ")}),(function(e){return e.display&&"\n display: block;\n "}),(function(e){return e.compact&&"\n width: ".concat(.75*U,"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 ")})),q=H.default.div.withConfig({displayName:"indexstyle__MainStyle",componentId:"sc-18n432u-1"})(["display:flex;border-radius:","px;overflow:hidden;height:","px;"," ",""],W.n_,z,(function(e){return"\n background-color: ".concat((e.theme||V.Z).background.content,";\n border: ").concat(W.YF,"px ").concat(W.M8," ").concat((e.theme||V.Z).interactive.defaultBackground,";\n ")}),(function(e){return e.compact&&"\n height: ".concat(z/2,"px;\n ")})),Q=H.default.aside.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-18n432u-2"})(["width:100%;overflow:auto;"," ",""],G.w5,(function(e){return"\n border-right: ".concat(W.YF,"px ").concat(W.M8," ").concat((e.theme||V.Z).background.panel,";\n ")})),K=H.default.div.withConfig({displayName:"indexstyle__ContentStyle",componentId:"sc-18n432u-3"})(["width:100%;overflow:auto;",""],G.w5),$=(0,H.css)(["display:flex;align-items:center;justify-content:space-between;padding:","px ","px;"],Y.iI,2*Y.iI),J=H.default.div.withConfig({displayName:"indexstyle__OptionStyle",componentId:"sc-18n432u-4"})([""," padding-top:","px;padding-bottom:","px;&:hover{cursor:pointer;","}",""],$,1.5*Y.iI,1.5*Y.iI,(function(e){return"\n background-color: ".concat((e.theme||V.Z).monotone.black,";\n ")}),(function(e){return e.highlighted&&"\n background-color: ".concat((e.theme||V.Z).monotone.black,";\n ")})),X=H.default.div.withConfig({displayName:"indexstyle__ToggleValueStyle",componentId:"sc-18n432u-5"})([""," ",""],$,(function(e){return"\n border-bottom: ".concat(W.YF,"px ").concat(W.M8," ").concat((e.theme||V.Z).borders.medium2,";\n ")})),ee=t(10503),ne=t(33766),te=t(90211);function ie(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 oe(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ie(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ie(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var re,ue=function(e){var n,t,i,u=e.children,l=e.compact,c=e.onClickCallback,a=e.onClickOutside,d=e.onSecondaryClick,p=e.open,f=e.options,v=void 0===f?{}:f,m=e.parentRef,x=e.query,j=e.setOpen,y=e.toggleValueMapping,C=(0,s.useState)(null),k=C[0],O=C[1],I=(0,s.useState)(v),E=I[0],_=I[1];(0,s.useEffect)((function(){_(v)}),[v]);var T=((null===m||void 0===m||null===(n=m.current)||void 0===n||null===(t=n.getBoundingClientRect)||void 0===t?void 0:t.call(n))||{}).top,S=void 0===T?0:T,A=Object.keys(v);return(0,P.jsxs)(R.Z,{onClickOutside:a,open:!0,children:[(0,P.jsx)("div",{ref:m,children:u}),(0,P.jsxs)(F,{compact:l,display:p,top:S-5,children:[(0,P.jsxs)(q,{compact:l,children:[(0,P.jsx)(b.Z,{flex:"1",children:(0,P.jsx)(Q,{children:A.map((function(e){return(0,P.jsxs)(J,{highlighted:k===e,onMouseEnter:function(){return O(e)},children:[(0,P.jsx)(w.ZP,{children:(0,te.kC)(e)}),(0,P.jsx)(ee._Q,{})]},e)}))})}),(0,P.jsx)(b.Z,{flex:"2",children:(0,P.jsx)(K,{children:k&&Object.entries((null===(i=E||v)||void 0===i?void 0:i[k])||{}).map((function(e){var n,t=(0,o.Z)(e,2),i=t[0],u=t[1];return(0,P.jsxs)(X,{children:[(0,P.jsx)(w.ZP,{children:(null===y||void 0===y||null===(n=y[k])||void 0===n?void 0:n[i])||(0,te.J3)((0,te.kC)(i))}),(0,P.jsx)(M.Z,{checked:u,onCheck:function(){return _((function(e){return oe(oe({},e),{},(0,r.Z)({},k,oe(oe({},null===e||void 0===e?void 0:e[k]),{},(0,r.Z)({},i,!u))))}))}})]},i)}))})})]}),(0,P.jsx)(Z.Z,{m:1,children:(0,P.jsxs)(g.Z,{children:[(0,P.jsx)(h.Z,{onClick:function(){var e=Object.entries(E).reduce((function(e,n){var t=(0,o.Z)(n,2),i=t[0],r=t[1],u=[];return Object.entries(r).forEach((function(e){var n=(0,o.Z)(e,2),t=n[0];return n[1]&&u.push(t)})),e[i]=u,e}),{});null===c||void 0===c||c(x,e),(0,ne.g_)(x,e,{addingMultipleValues:!0,pushHistory:!0})},secondary:!0,children:"Apply"}),(0,P.jsx)(Z.Z,{mr:1}),(0,P.jsx)(h.Z,{noBackground:!0,onClick:function(){j(!1),null===d||void 0===d||d()},children:"Defaults"})]})})]})]})},le=t(46261),ce="".concat(1.5*Y.iI,"px"),ae=40*Y.iI;!function(e){e[e.SECONDARY=1]="SECONDARY",e[e.DELETE=2]="DELETE"}(re||(re={}));var de={autoHide:!0,size:null,widthFitContent:!0},se=t(7715),pe=t(9736);function fe(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 he(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?fe(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):fe(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ve=function(e){var n=e.addButtonProps,t=e.deleteRowProps,i=e.filterOptions,r=void 0===i?{}:i,u=e.filterValueLabelMapping,l=e.groupButtonProps,c=e.moreActionsMenuItems,a=e.onFilterApply,d=e.query,f=void 0===d?{}:d,h=e.searchProps,v=e.secondaryActionButtonProps,m=e.selectedRowId,x=e.setSelectedRow,y=(0,pe.Ct)(),C=(0,p.useRouter)(),O=(0,s.useRef)(null),I=(0,s.useRef)(null),E=(0,s.useRef)(null),_=(0,s.useRef)(null),T=(0,s.useRef)(null),S=(0,s.useState)(!1),A=S[0],M=S[1],H=(0,s.useState)(!1),V=H[0],G=H[1],U=(0,s.useState)(!1),z=U[0],F=U[1],q=(0,s.useState)(!1),Q=q[0],K=q[1],$=(0,s.useState)(null),J=$[0],X=$[1],ne=!m,te=(0,s.useCallback)((function(){return M(!1)}),[]),ie=(0,s.useCallback)((function(){return G(!1)}),[]),oe=(0,s.useCallback)((function(){return F(!1)}),[]),fe=(0,s.useCallback)((function(){return K(null)}),[]),ve=(0,s.useCallback)((function(){return X(null)}),[]),me=v||{},be=me.Icon,ge=me.confirmationDescription,xe=me.confirmationMessage,je=me.isLoading,ye=me.label,Ze=me.onClick,we=me.openConfirmationDialogue,Ce=me.tooltip,ke=t||{},Pe=ke.confirmationMessage,Oe=ke.isLoading,Ie=ke.item,Ee=ke.onDelete,_e=h||{},Te=_e.placeholder,Se=_e.onChange,Ae=_e.value,Me=(0,s.useMemo)((function(){return Object.entries(r).reduce((function(e,n){var t=(0,o.Z)(n,2),i=t[0],r=t[1];return e[i]={},r.forEach((function(n){var t,o=(null===(t=f["".concat(i,"[]")])||void 0===t?void 0:t.includes(n))||!1;e[i][n]=o})),e}),{})}),[r,f]),De=n||{},Be=De.label,Re=De.menuItems,Ne=De.isLoading,Le=(0,s.useMemo)((function(){return(0,P.jsx)(D.Z,{addButtonMenuOpen:A,addButtonMenuRef:O,isLoading:Ne,label:Be,menuItems:Re,onClick:function(){return M((function(e){return!e}))},onClickCallback:te})}),[Be,Re,A,te,Ne]),He=(0,s.useMemo)((function(){return(0,se.dw)(Me)}),[Me]),Ve=(0,s.useMemo)((function(){return(0,P.jsx)(ue,{compact:!0,onClickCallback:function(e,n){a&&(null===a||void 0===a||a(e,n)),ie&&(null===ie||void 0===ie||ie())},onClickOutside:ie,onSecondaryClick:function(){return C.push("/pipelines")},open:V,options:Me,parentRef:I,query:f,setOpen:G,toggleValueMapping:u,children:(0,P.jsx)(j.ZP,he(he({},D.B),{},{afterElement:He>0?(0,P.jsx)(B.Z,{cyan:!0,noVerticalPadding:!0,children:(0,P.jsx)(w.ZP,{bold:!0,inverted:!0,children:He})}):null,beforeElement:(0,P.jsx)(ee.wn,{size:2*Y.iI}),onClick:function(){return G((function(e){return!e}))},uuid:"Table/Toolbar/FilterButton",children:"Filter"}))})}),[ie,V,Me,u,He,a,f,C]),We=l||{},Ge=We.groupByLabel,Ye=We.menuItems,Ue=(0,s.useMemo)((function(){return(0,P.jsx)(N.Z,{disableKeyboardShortcuts:!0,items:Ye,onClickCallback:oe,onClickOutside:oe,open:z,parentRef:E,roundedStyle:!0,topOffset:1,uuid:"Table/Toolbar/GroupMenu",children:(0,P.jsx)(j.ZP,he(he({},D.B),{},{beforeElement:(0,P.jsx)(ee.ZA,{size:2.5*Y.iI}),onClick:function(){F((function(e){return!e}))},uuid:"Table/Toolbar/GroupButton",children:Ge?"Grouped by ".concat(Ge):"Group"}))})}),[oe,z,Ge,Ye]),ze=(0,s.useMemo)((function(){return(0,P.jsx)(N.Z,{disableKeyboardShortcuts:!0,items:c,onClickCallback:fe,onClickOutside:fe,open:Q,parentRef:_,roundedStyle:!0,topOffset:1,uuid:"Table/Toolbar/MoreActionsMenu",children:(0,P.jsx)(le.Z,he(he({},de),{},{label:"More actions",children:(0,P.jsx)(j.ZP,{Icon:ee.mH,bold:!0,disabled:ne,greyBorder:!0,onClick:function(){return K((function(e){return!e}))},smallIcon:!0,uuid:"Table/Toolbar/MoreActionsButton"})}))})}),[fe,ne,Q,c]);return(0,P.jsxs)(g.Z,{alignItems:"center",children:[Le,(0,P.jsx)(Z.Z,{mr:ce}),Ve,(null===Ye||void 0===Ye?void 0:Ye.length)>0&&(0,P.jsx)(Z.Z,{ml:ce,children:Ue}),!y&&Ze&&(0,P.jsxs)(Z.Z,{ml:ce,children:[(0,P.jsx)(le.Z,he(he({},de),{},{label:Ce,children:(0,P.jsx)(j.ZP,{Icon:!je&&be,bold:!0,disabled:ne,greyBorder:!0,loading:je,onClick:we?function(){return X(re.SECONDARY)}:Ze,smallIcon:!0,uuid:"Table/Toolbar/SecondaryActionButton",children:ye})})),(0,P.jsx)(R.Z,{onClickOutside:ve,open:J===re.SECONDARY,children:(0,P.jsx)(L.Z,{onCancel:ve,onClick:function(){Ze(),ve(),x(null)},subtitle:ge,title:xe,top:58,width:ae})})]}),!y&&Ee&&(0,P.jsxs)(Z.Z,{ml:ce,children:[(0,P.jsx)(le.Z,he(he({},de),{},{label:"Delete ".concat(Ie),children:(0,P.jsx)(j.ZP,{Icon:!Oe&&ee.rF,bold:!0,disabled:ne,greyBorder:!0,loading:Oe,onClick:function(){return X(re.DELETE)},smallIcon:!0,uuid:"Table/Toolbar/DeleteButton"})})),(0,P.jsx)(R.Z,{onClickOutside:ve,open:J===re.DELETE,children:(0,P.jsx)(L.Z,{danger:!0,onCancel:ve,onClick:function(){Ee(m),ve(),x(null)},subtitle:Pe,title:"Are you sure you want to delete the ".concat(Ie," ").concat(m,"?"),top:58,width:ae})})]}),!y&&(null===c||void 0===c?void 0:c.length)>0&&(0,P.jsx)(Z.Z,{ml:ce,children:ze}),Se&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(Z.Z,{ml:ce}),(0,P.jsx)(b.Z,{flex:1,children:(0,P.jsx)(k.Z,{afterIcon:Ae?(0,P.jsx)(ee.x8,{}):null,afterIconClick:function(){var e;Se(""),null===T||void 0===T||null===(e=T.current)||void 0===e||e.focus()},afterIconSize:1.5*Y.iI,beforeIcon:(0,P.jsx)(ee.HN,{}),borderRadius:W.n_,defaultColor:!0,fullWidth:!0,greyBorder:!0,maxWidth:60*Y.iI,onChange:function(e){return Se(e.target.value)},paddingVertical:9,placeholder:Te||null,ref:T,value:Ae})})]})]})},me=t(82531),be=t(86422),ge=t(9728),xe=t(3055),je=t(27337),ye=t(18908),Ze=t(93348),we=t(45838),Ce=t(96510),ke=t(59e3),Pe=t(91427),Oe="pipeline_list_filters",Ie="pipeline_list_group_bys";function Ee(e){return(0,Pe.t8)(Oe,e),e}function _e(e){return(0,Pe.t8)(Ie,e),e}var Te=t(64651),Se=t(66653),Ae=t(24224),Me=t(99497);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 Be(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,r.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 Re={borderRadius:W.BG,iconOnly:!0,noBackground:!0,noBorder:!0,outline:!0,padding:"4px"};function Ne(){var e=(0,p.useRouter)(),n=(0,s.useRef)(null),t=(0,s.useState)(null),i=t[0],u=t[1],l=(0,s.useState)(null),c=l[0],j=l[1],C=(0,s.useState)({}),k=C[0],_=C[1],D=(0,s.useState)(null),B=D[0],R=D[1],N=(0,ke.iV)(),L=(0,ke.DQ)(N,[E.$1.STATUS,E.$1.TAG,E.$1.TYPE]),H=me.ZP.pipelines.list(Be(Be({},L),{},{include_schedules:1})),W=H.data,G=H.mutate,U=(0,s.useMemo)((function(){var e=(null===W||void 0===W?void 0:W.pipelines)||[];if(c){var n=c.toLowerCase();e=e.filter((function(e){var t=e.name,i=e.description,o=e.uuid;return(null===t||void 0===t?void 0:t.toLowerCase().includes(n))||(null===o||void 0===o?void 0:o.toLowerCase().includes(n))||(null===i||void 0===i?void 0:i.toLowerCase().includes(n))}))}return e}),[null===W||void 0===W?void 0:W.pipelines,c]),z=me.ZP.projects.list(),F=z.data,q=z.mutate,Q=(0,s.useMemo)((function(){var e;return null===F||void 0===F||null===(e=F.projects)||void 0===e?void 0:e[0]}),[F]),K=null===N||void 0===N?void 0:N[E.$1.GROUP];(0,s.useEffect)((function(){var e={};if(K)_e((0,r.Z)({},K,!0));else{var n,t=(0,Pe.U2)(Ie,{});t&&Object.entries(t).forEach((function(e){var t=(0,o.Z)(e,2),i=t[0],r=t[1];!n&&r&&(n=i)})),n&&(e[E.$1.GROUP]=n)}if((0,se.Qr)(L)){var i={},u=(0,Pe.U2)(Oe,{});u&&Object.entries(u).forEach((function(e){var n=(0,o.Z)(e,2),t=n[0],r=n[1];i[t]=[],Object.entries(r).forEach((function(e){var n=(0,o.Z)(e,2),r=n[0];n[1]&&i[t].push(r)}))})),(0,se.Qr)(i)||(e=Be(Be({},e),i))}else{var l={};Object.entries(L).forEach((function(e){var n=(0,o.Z)(e,2),t=n[0],i=n[1];l[t]={};var r,u=i;(Array.isArray(u)||(u=[u]),u&&Array.isArray(u))&&(null===(r=u)||void 0===r||r.forEach((function(e){l[t][e]=!0})))})),Ee(l)}(0,se.Qr)(e)||(0,ne.u7)(e,{pushHistory:!1})}),[K,L]),(0,s.useEffect)((function(){(0,Ce.bB)(W,R)}),[W]);var $=function(e){return(0,d.Db)(me.ZP.pipelines.useCreate(),{onSuccess:function(n){return(0,Ce.wD)(n,{callback:function(n){var t=n.pipeline.uuid;null===e||void 0===e||e(t)},onErrorCallback:function(e,n){return R({errors:n,response:e})}})}})},J=$((function(n){return e.push("/pipelines/[pipeline]/edit","/pipelines/".concat(n,"/edit"))})),X=(0,o.Z)(J,2),ie=X[0],oe=X[1].isLoading,re=$((function(){return null===G||void 0===G?void 0:G()})),ue=(0,o.Z)(re,2),le=ue[0],ce=ue[1].isLoading,ae=(0,d.Db)((function(e){return me.ZP.pipelines.useUpdate(e.uuid)({pipeline:e})}),{onSuccess:function(e){return(0,Ce.wD)(e,{callback:function(e){var n=e.pipeline.uuid;_((function(e){return Be(Be({},e),{},(0,r.Z)({},n,!1))})),G(),null===Ge||void 0===Ge||Ge(),u(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;_((function(e){return Be(Be({},e),{},(0,r.Z)({},i,!1))})),R({errors:n,response:e})}})}}),de=(0,o.Z)(ae,2),pe=de[0],fe=de[1].isLoading,he=(0,d.Db)((function(e){return me.ZP.pipelines.useDelete(e)()}),{onSuccess:function(e){return(0,Ce.wD)(e,{callback:function(){null===G||void 0===G||G()},onErrorCallback:function(e,n){return R({errors:n,response:e})}})}}),De=(0,o.Z)(he,2),Ne=De[0],Le=De[1].isLoading,He=(0,Me.dd)((function(e){var n=e.pipeline,t=e.pipelineDescription,o=e.pipelineName;return(0,P.jsx)(O,{isLoading:fe,minWidth:55*Y.iI,noEmptyValue:!!o,onClose:Ge,onSave:function(e){var t=n||i;if(t){var u=t.uuid,l={uuid:u};o?l.name=e:l.description=e,_((function(e){return Be(Be({},e),{},(0,r.Z)({},u,!0))})),pe(l)}},textArea:!o,title:o?"Rename pipeline":"Edit description",value:o||t})}),{},[fe,i],{background:!0,uuid:"rename_pipeline_and_save"}),Ve=(0,o.Z)(He,2),We=Ve[0],Ge=Ve[1],Ye=(0,Me.dd)((function(){return(0,P.jsx)(ge.BC,{children:(0,P.jsx)(f.Z,{contained:!0,onClickCustomTemplate:function(e){ie({pipeline:{custom_template_uuid:null===e||void 0===e?void 0:e.template_uuid,name:(0,te.Y6)()}}).then((function(){Fe()}))},showBreadcrumbs:!0,tabs:[je.A2]})})}),{},[],{background:!0,uuid:"browse_templates"}),Ue=(0,o.Z)(Ye,2),ze=Ue[0],Fe=Ue[1],qe=(0,s.useMemo)((function(){return(0,Te.d)(ie,{showBrowseTemplates:ze})}),[ie,ze]),Qe=me.ZP.tags.list().data,Ke=(0,s.useMemo)((function(){return(0,Ae.YC)((null===Qe||void 0===Qe?void 0:Qe.tags)||[],(function(e){return e.uuid}))}),[Qe]),$e=(0,s.useMemo)((function(){return(0,P.jsx)(ve,{addButtonProps:{isLoading:oe,label:"New",menuItems:qe},deleteRowProps:{confirmationMessage:"This is irreversible and will immediately delete everything associated with the pipeline, including its blocks, triggers, runs, logs, and history.",isLoading:Le,item:"pipeline",onDelete:function(){window.confirm("Are you sure you want to delete pipeline ".concat(null===i||void 0===i?void 0:i.uuid,"?"))&&Ne(null===i||void 0===i?void 0:i.uuid)}},filterOptions:{status:Object.values(E.QK),tag:Ke.map((function(e){return e.uuid})),type:Object.values(E.qL)},filterValueLabelMapping:{tag:Ke.reduce((function(e,n){var t=n.uuid;return Be(Be({},e),{},(0,r.Z)({},t,t))}),{}),type:E.G7},groupButtonProps:{groupByLabel:K,menuItems:[{beforeIcon:K===E.r0.STATUS?(0,P.jsx)(ee.Jr,{fill:V.Z.content.default,size:1.5*Y.iI}):(0,P.jsx)(ee.Cd,{muted:!0,size:1.5*Y.iI}),label:function(){return(0,te.kC)(E.r0.STATUS)},onClick:function(){var e=K===E.r0.STATUS?null:E.r0.STATUS;e||_e({}),(0,ne.u7)((0,r.Z)({},E.$1.GROUP,e),{pushHistory:!0})},uuid:"Pipelines/GroupMenu/Status"},{beforeIcon:K===E.r0.TAG?(0,P.jsx)(ee.Jr,{fill:V.Z.content.default,size:1.5*Y.iI}):(0,P.jsx)(ee.Cd,{muted:!0,size:1.5*Y.iI}),label:function(){return(0,te.kC)(E.r0.TAG)},onClick:function(){var e=K===E.r0.TAG?null:E.r0.TAG;e||_e({}),(0,ne.u7)((0,r.Z)({},E.$1.GROUP,e),{pushHistory:!0})},uuid:"Pipelines/GroupMenu/Tag"},{beforeIcon:K===E.r0.TYPE?(0,P.jsx)(ee.Jr,{fill:V.Z.content.default,size:1.5*Y.iI}):(0,P.jsx)(ee.Cd,{muted:!0,size:1.5*Y.iI}),label:function(){return(0,te.kC)(E.r0.TYPE)},onClick:function(){var e=K===E.r0.TYPE?null:E.r0.TYPE;e||_e({}),(0,ne.u7)((0,r.Z)({},E.$1.GROUP,e),{pushHistory:!0})},uuid:"Pipelines/GroupMenu/Type"}]},moreActionsMenuItems:[{label:function(){return"Rename pipeline"},onClick:function(){return We({pipelineName:null===i||void 0===i?void 0:i.name})},uuid:"Pipelines/MoreActionsMenu/Rename"},{label:function(){return"Edit description"},onClick:function(){return We({pipelineDescription:null===i||void 0===i?void 0:i.description})},uuid:"Pipelines/MoreActionsMenu/EditDescription"}],onFilterApply:function(e,n){Object.values(n).every((function(e){return!(null!==e&&void 0!==e&&e.length)}))&&Ee({})},query:L,searchProps:{onChange:j,value:c},secondaryActionButtonProps:{Icon:ee.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:ce,onClick:function(){return le({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:u})}),[le,Ne,K,ce,oe,Le,qe,L,c,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,We,Ke]),Je=(0,ge.VI)(null,{},[],{uuid:"pipelines/list"}),Xe=(0,o.Z)(Je,1)[0],en=(0,d.Db)(me.ZP.projects.useUpdate(null===Q||void 0===Q?void 0:Q.name),{onSuccess:function(e){return(0,Ce.wD)(e,{callback:function(){q()},onErrorCallback:function(e,n){return Xe({errors:n,response:e})}})}}),nn=(0,o.Z)(en,2),tn=nn[0],on=nn[1].isLoading,rn=(0,s.useCallback)((function(e){return tn({project:e})}),[tn]),un=(0,Me.dd)((function(){return(0,P.jsxs)(y.Z,{maxWidth:60*Y.iI,children:[(0,P.jsx)(Z.Z,{mb:1,children:(0,P.jsx)(x.Z,{children:"Help improve Mage"})}),(0,P.jsx)(Z.Z,{mb:Y.cd,children:(0,P.jsx)(w.ZP,{default:!0,children:"Please contribute usage statistics to help improve the developer experience for you and everyone in the community \ud83e\udd1d."})}),(0,P.jsx)(Z.Z,{mb:Y.cd,children:(0,P.jsx)(y.Z,{success:!0,children:(0,P.jsxs)(g.Z,{alignItems:"center",children:[(0,P.jsx)(ee.Yo,{size:5*Y.iI,success:!0}),(0,P.jsx)(Z.Z,{mr:1}),(0,P.jsx)(b.Z,{children:(0,P.jsx)(w.ZP,{children:"All usage statistics are completely anonymous. It\u2019s impossible for Mage to know which statistics belongs to whom."})})]})})}),(0,P.jsx)(Z.Z,{mb:Y.cd,children:(0,P.jsxs)(w.ZP,{default:!0,children:["By opting into sending usage statistics to ",(0,P.jsx)(I.Z,{href:"https://www.mage.ai",openNewWindow:!0,children:"Mage"}),", it\u2019ll help the team and community of contributors (",(0,P.jsx)(I.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,P.jsx)(Z.Z,{mb:Y.cd,children:(0,P.jsx)(w.ZP,{default:!0,children:"In addition to helping reduce potential errors, you\u2019ll help inform which features are useful and which need work."})}),(0,P.jsx)(Z.Z,{mb:Y.cd,children:(0,P.jsxs)(g.Z,{alignItems:"center",justifyContent:"space-between",children:[(0,P.jsx)(w.ZP,{bold:!0,children:"I want to help make Mage more powerful for everyone"}),(0,P.jsx)(Z.Z,{mr:Y.cd}),(0,P.jsx)(M.Z,{checked:!0,onCheck:function(){window.confirm("Are you sure you don\u2019t want to help everyone in the community?")&&rn({help_improve_mage:!1}).then((function(){return an()}))}})]})}),on&&(0,P.jsx)(Z.Z,{mb:Y.cd,children:(0,P.jsx)(T.Z,{inverted:!0})}),(0,P.jsx)(Z.Z,{mb:Y.cd,children:(0,P.jsxs)(w.ZP,{muted:!0,small:!0,children:["To learn more about how this works, please check out the ",(0,P.jsx)(I.Z,{href:"https://docs.mage.ai/contributing/statistics/overview",openNewWindow:!0,small:!0,children:"documentation"}),"."]})}),(0,P.jsx)(h.Z,{onClick:function(){return rn({help_improve_mage:!0}).then((function(){return an()}))},secondary:!0,children:"Close"})]})}),{},[Q],{background:!0,hideCallback:function(){rn({help_improve_mage:!0})},uuid:"help_mage"}),ln=(0,o.Z)(un,2),cn=ln[0],an=ln[1];(0,s.useEffect)((function(){Q&&null===(null===Q||void 0===Q?void 0:Q.help_improve_mage)&&cn()}),[Q,cn]);var dn=(0,s.useMemo)((function(){var e={};null===U||void 0===U||U.forEach((function(n,t){var i=n[K];if(E.r0.STATUS===K){var o=n.schedules,r=void 0===o?[]:o,u=r.length;i=r.find((function(e){var n=e.status;return Ze.fq.ACTIVE===n}))?E.QK.ACTIVE:u>=1?E.QK.INACTIVE:E.QK.NO_SCHEDULES}else if(E.r0.TAG===K){i=(null===n||void 0===n?void 0:n.tags)?(0,Ae.YC)(n.tags,(function(e){return e})).join(", "):""}e[i]||(e[i]=[]),e[i].push(t)}));var n=[],t=[];return E.r0.STATUS===K?Object.values(E.QK).forEach((function(i){n.push(e[i]),t.push((0,te.vg)(i))})):E.r0.TAG===K?(0,Ae.YC)(Object.keys(e),(function(e){return e})).forEach((function(i){n.push(e[i]),i?t.push(i.split(", ").map((function(e,n){return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("div",{style:{marginLeft:n>=1?4:0}},"".concat(e,"-").concat(n,"-spacing")),(0,P.jsx)(v.Z,{small:!0,children:(0,P.jsx)(w.ZP,{children:e})},"".concat(e,"-").concat(n))]})}))):t.push("No tags")})):E.r0.TYPE===K&&Object.values(E.qL).forEach((function(i){n.push(e[i]),t.push(E.G7[i])})),{rowGroupHeaders:t,rowsGroupedByIndex:n}}),[K,U]),sn=dn.rowGroupHeaders,pn=dn.rowsGroupedByIndex;return(0,P.jsx)(m.Z,{errors:B,setErrors:R,subheaderChildren:$e,title:"Pipelines",uuid:"pipelines/index",children:0===(null===U||void 0===U?void 0:U.length)?(0,P.jsx)(Z.Z,{px:3,py:1,children:W?(0,P.jsx)(w.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:"No pipelines available"}):(0,P.jsx)(T.Z,{inverted:!0,large:!0})}):(0,P.jsx)(we.cl,{includePadding:!!K,maxHeight:"calc(100vh - ".concat(xe.Mz+74,"px)"),children:(0,P.jsx)(S.Z,{columnFlex:[null,null,null,2,null,null,1,null,null,null],columns:[{label:function(){return""},uuid:"action"},{uuid:(0,te.kC)(E.r0.STATUS)},{uuid:"Name"},{uuid:"Description"},{uuid:(0,te.kC)(E.r0.TYPE)},{uuid:"Updated at"},{uuid:"Tags"},{uuid:"Blocks"},{uuid:"Triggers"},{center:!0,label:function(){return""},uuid:"Actions"}],isSelectedRow:function(e){var n;return(null===(n=U[e])||void 0===n?void 0:n.uuid)===(null===i||void 0===i?void 0:i.uuid)},onClickRow:function(e){return u((function(n){var t=U[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(U[n].uuid,"/edit"))},ref:n,renderRightClickMenuItems:function(n){var t=U[n];return[{label:function(){return"Edit description"},onClick:function(){return We({pipeline:t,pipelineDescription:null===t||void 0===t?void 0:t.description})},uuid:"edit_description"},{label:function(){return"Rename"},onClick:function(){return We({pipeline:t,pipelineName:null===t||void 0===t?void 0:t.name})},uuid:"rename"},{label:function(){return"Clone"},onClick:function(){return le({pipeline:{clone_pipeline_uuid:null===t||void 0===t?void 0:t.uuid}})},uuid:"clone"},{label:function(){return"Add/Remove tags"},onClick:function(){e.push("/pipelines/[pipeline]/settings","/pipelines/".concat(null===t||void 0===t?void 0:t.uuid,"/settings"))},uuid:"add_tags"},{label:function(){return"Create template"},onClick:function(){e.push("/templates?object_type=".concat(ye.R,"&new=1&pipeline_uuid=").concat(null===t||void 0===t?void 0:t.uuid))},uuid:"create_custom_template"},{label:function(){return"Delete"},onClick:function(){window.confirm("Are you sure you want to delete pipeline ".concat(null===t||void 0===t?void 0:t.uuid,"?"))&&Ne(null===t||void 0===t?void 0:t.uuid)},uuid:"delete"}]},rowGroupHeaders:sn,rows:U.map((function(n,t){var i=n.blocks,o=n.description,u=n.schedules,l=n.tags,c=n.type,d=n.updated_at,s=n.uuid,p=i.filter((function(e){var n=e.type;return be.tf.SCRATCHPAD!==n})).length,f=u.length,v=u.find((function(e){var n=e.status;return Ze.fq.ACTIVE===n})),m=(0,P.jsx)("div",{children:(0,P.jsx)(A.Z,{tags:null===l||void 0===l?void 0:l.map((function(e){return{uuid:e}}))})},"pipeline_tags_".concat(t));return[f>=1||k[s]?(0,P.jsx)(h.Z,{iconOnly:!0,loading:!!k[s],noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(e){(0,Se.j)(e),_((function(e){return Be(Be({},e),{},(0,r.Z)({},s,!0))})),pe(Be(Be({},n),{},{status:v?Ze.fq.INACTIVE:Ze.fq.ACTIVE}))},children:v?(0,P.jsx)(ee.dz,{muted:!0,size:2*Y.iI}):(0,P.jsx)(ee.Py,{default:!0,size:2*Y.iI})}):null,(0,P.jsx)(w.ZP,{default:!v,monospace:!0,success:!!v,children:v?Ze.fq.ACTIVE:f>=1?Ze.fq.INACTIVE:"no schedules"},"pipeline_status_".concat(t)),(0,P.jsx)(a(),{as:"/pipelines/".concat(s),href:"/pipelines/[pipeline]",passHref:!0,children:(0,P.jsx)(I.Z,{sameColorAsText:!0,children:s})},"pipeline_name_".concat(t)),(0,P.jsx)(w.ZP,{default:!0,title:o,width:90*Y.iI,children:o},"pipeline_description_".concat(t)),(0,P.jsx)(w.ZP,{children:E.G7[c]},"pipeline_type_".concat(t)),(0,P.jsx)(w.ZP,{title:d,children:d?d.slice(0,-3):(0,P.jsx)(P.Fragment,{children:"\u2014"})},"pipeline_updated_at_".concat(t)),m,(0,P.jsx)(w.ZP,{default:0===p,monospace:!0,children:p},"pipeline_block_count_".concat(t)),(0,P.jsx)(w.ZP,{default:0===f,monospace:!0,children:f},"pipeline_trigger_count_".concat(t)),(0,P.jsxs)(b.Z,{flex:1,justifyContent:"flex-end",children:[(0,P.jsx)(h.Z,Be(Be({},Re),{},{onClick:function(){e.push("/pipelines/[pipeline]","/pipelines/".concat(s))},title:"Detail",children:(0,P.jsx)(ee.UY,{default:!0,size:2*Y.iI})})),(0,P.jsx)(Z.Z,{mr:1}),(0,P.jsx)(h.Z,Be(Be({},Re),{},{onClick:function(){e.push("/pipelines/[pipeline]/logs","/pipelines/".concat(s,"/logs"))},title:"Logs",children:(0,P.jsx)(ee.$B,{default:!0,size:2*Y.iI})}))]},"chevron_icon_".concat(t))]})),rowsGroupedByIndex:pn,stickyHeader:!0})})})}Ne.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 Le=(0,_.Z)(Ne)},79274:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines",function(){return t(12257)}])}},function(e){e.O(0,[844,9902,426,1774,8792,8789,4259,3215,1424,1005,7815,3654,8952,7722,4822,1484,2485,9774,2888,179],(function(){return n=79274,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3853],{1210:function(e,n,t){"use strict";t.d(n,{Z:function(){return P}});var r=t(82394),i=t(21831),o=t(82684),c=t(47999),u=t(49894),l=t(93461),s=t(57384),a=t(41424),d=t(72454),f=t(28598);function h(e,n){var t=e.children;return(0,f.jsx)(d.HS,{ref:n,children:t})}var p=o.forwardRef(h),m=t(32063),g=t(85019),b=t(82531),j=t(66166),v=t(3055),y=t(49125),x=t(91427),w=t(24141);function O(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Z(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?O(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):O(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var P=function(e){var n,t=e.addProjectBreadcrumbToCustomBreadcrumbs,r=e.after,h=e.afterHidden,O=e.afterWidth,P=e.afterWidthOverride,k=e.before,_=e.beforeWidth,I=e.breadcrumbs,S=e.children,H=e.errors,C=e.headerMenuItems,N=e.headerOffset,W=e.mainContainerHeader,D=e.navigationItems,E=e.setErrors,z=e.subheaderChildren,M=e.title,A=e.uuid,B=(0,w.i)().width,R="dashboard_after_width_".concat(A),L="dashboard_before_width_".concat(A),T=(0,o.useRef)(null),V=(0,o.useState)(P?O:(0,x.U2)(R,O)),F=V[0],U=V[1],Y=(0,o.useState)(!1),Q=Y[0],X=Y[1],G=(0,o.useState)(k?Math.max((0,x.U2)(L,_),13*y.iI):null),J=G[0],q=G[1],K=(0,o.useState)(!1),$=K[0],ee=K[1],ne=(0,o.useState)(null)[1],te=b.ZP.projects.list({},{revalidateOnFocus:!1}).data,re=null===te||void 0===te?void 0:te.projects,ie={label:function(){var e;return null===re||void 0===re||null===(e=re[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},oe=[];I?(t&&oe.push(ie),oe.push.apply(oe,(0,i.Z)(I))):(null===re||void 0===re?void 0:re.length)>=1&&oe.push.apply(oe,[ie,{bold:!0,label:function(){return M}}]),(0,o.useEffect)((function(){null===T||void 0===T||!T.current||Q||$||null===ne||void 0===ne||ne(T.current.getBoundingClientRect().width)}),[Q,F,$,J,T,ne,B]),(0,o.useEffect)((function(){Q||(0,x.t8)(R,F)}),[h,Q,F,R]),(0,o.useEffect)((function(){$||(0,x.t8)(L,J)}),[$,J,L]);var ce=(0,j.Z)(O);return(0,o.useEffect)((function(){P&&ce!==O&&U(O)}),[P,O,ce]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(s.Z,{title:M}),(0,f.jsx)(a.Z,{breadcrumbs:oe,menuItems:C,project:null===re||void 0===re?void 0:re[0],version:null===re||void 0===re||null===(n=re[0])||void 0===n?void 0:n.version}),(0,f.jsxs)(d.Nk,{children:[0!==(null===D||void 0===D?void 0:D.length)&&(0,f.jsx)(d.lm,{showMore:!0,children:(0,f.jsx)(g.Z,{navigationItems:D,showMore:!0})}),(0,f.jsx)(l.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(m.Z,{after:r,afterHeightOffset:v.Mz,afterHidden:h,afterMousedownActive:Q,afterWidth:F,before:k,beforeHeightOffset:v.Mz,beforeMousedownActive:$,beforeWidth:d.k1+(k?J:0),headerOffset:N,hideAfterCompletely:!0,leftOffset:k?d.k1:null,mainContainerHeader:W,mainContainerRef:T,setAfterMousedownActive:X,setAfterWidth:U,setBeforeMousedownActive:ee,setBeforeWidth:q,children:[z&&(0,f.jsx)(p,{children:z}),S]})})]}),H&&(0,f.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===E||void 0===E?void 0:E(null)},children:(0,f.jsx)(u.Z,Z(Z({},H),{},{onClose:function(){return null===E||void 0===E?void 0:E(null)}}))})]})}},2850:function(e,n,t){"use strict";t.d(n,{M:function(){return c},W:function(){return o}});var r=t(38626),i=t(3055),o=34*t(49125).iI,c=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);"],i.Mz)},79585:function(e,n,t){"use strict";t.d(n,{DQ:function(){return a},HY:function(){return c},SA:function(){return d},WH:function(){return o},eC:function(){return l},fF:function(){return u},tC:function(){return s}});var r=t(81132),i=t(9736),o="Workspace",c="Preferences",u="Git settings",l="Users",s="Account",a="Profile",d=function(e){var n=e.owner,t=e.roles,d=e.project_access,f=[{linkProps:{href:"/settings/workspace/preferences"},uuid:c}];(n||t===r.No.ADMIN||0!==(2&d))&&f.push({linkProps:{href:"/settings/workspace/users"},uuid:l}),(!(0,i.YB)()||t<=r.No.EDITOR)&&f.push({linkProps:{href:"/settings/workspace/sync-data"},uuid:u});var h=[{items:f,uuid:o}];return(0,i.YB)()?h.concat([{items:[{linkProps:{href:"/settings/account/profile"},uuid:a}],uuid:s}]):h}},30775:function(e,n,t){"use strict";t.d(n,{Z:function(){return Z}});var r=t(1210),i=t(82394),o=t(12691),c=t.n(o),u=t(10919),l=t(86673),s=t(19711),a=t(38626),d=t(23831),f=t(49125),h=t(90880),p=(f.iI,a.default.div.withConfig({displayName:"indexstyle__SectionTitleStyle",componentId:"sc-1y8dyue-0"})(["padding:","px ","px;"],1*f.iI,2.5*f.iI)),m=a.default.div.withConfig({displayName:"indexstyle__ItemStyle",componentId:"sc-1y8dyue-1"})([""," padding:","px ","px;"," ",""],(0,h.eR)(),1.5*f.iI,2.5*f.iI,(function(e){return!e.selected&&"\n &:hover {\n background-color: ".concat((e.theme.background||d.Z.background).codeArea,";\n }\n ")}),(function(e){return e.selected&&"\n background-color: ".concat((e.theme.background||d.Z.background).codeTextarea,";\n ")})),g=t(28598),b=t(82684);function j(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?j(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):j(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var y=function(e){var n=e.isItemSelected,t=e.sections;return(0,g.jsx)(l.Z,{py:f.Gg,children:null===t||void 0===t?void 0:t.map((function(e){var t=e.items,r=e.title,i=e.uuid;return(0,g.jsxs)(l.Z,{children:[(0,g.jsx)(p,{children:(0,g.jsx)(s.ZP,{bold:!0,muted:!0,small:!0,uppercase:!0,children:r?r():i})}),null===t||void 0===t?void 0:t.map((function(e){var t=e.label,r=e.linkProps,o=e.onClick,l=e.uuid,s=t?t():l,a=(0,g.jsx)(m,{selected:null===n||void 0===n?void 0:n(v(v({},e),{},{uuidWorkspace:i})),children:s});return r?(0,b.createElement)(c(),v(v({},r),{},{key:l,passHref:!0}),(0,g.jsx)(u.Z,{block:!0,noHoverUnderline:!0,noOutline:!0,sameColorAsText:!0,children:a})):(0,g.jsx)(u.Z,{block:!0,noHoverUnderline:!0,noOutline:!0,onClick:o,preventDefault:!0,sameColorAsText:!0,children:a},l)}))]},i)}))})},x=t(2850),w=t(79585),O=t(9736);var Z=function(e){var n=e.after,t=e.afterHidden,i=e.children,o=e.uuidItemSelected,c=e.uuidWorkspaceSelected,u=(0,O.PR)()||{};return(0,g.jsx)(r.Z,{after:n,afterHidden:!n||t,afterWidth:n?50*f.iI:0,afterWidthOverride:!0,before:(0,g.jsx)(x.M,{children:(0,g.jsx)(y,{isItemSelected:function(e){var n=e.uuid,t=e.uuidWorkspace;return c===t&&o===n},sections:(0,w.SA)(u)})}),beforeWidth:x.W,title:"Settings",uuid:"settings/index",children:i})}},76096:function(e,n,t){"use strict";var r=t(82394),i=t(26304),o=(t(82684),t(33591)),c=t(28598),u=["children","fullHeight","gutter","style"];function l(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?l(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):l(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.children,t=e.fullHeight,r=e.gutter,l=e.style,a=void 0===l?{}:l,d=(0,i.Z)(e,u),f=s({},a);return r&&(f.paddingLeft=r,f.paddingRight=f.paddingLeft),t&&(f.height="100%"),(0,c.jsx)(o.Col,s(s({},d),{},{style:f,children:n}))}},97361:function(e,n,t){"use strict";var r=t(82394),i=t(26304),o=t(82684),c=t(33591),u=t(28598),l=["children","fullHeight","gutter","justifyContent","style"];function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?s(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.children,t=e.fullHeight,r=e.gutter,s=e.justifyContent,d=e.style,f=void 0===d?{}:d,h=(0,i.Z)(e,l),p=a({},f);return r&&(p.marginLeft=-1*r,p.marginRight=p.marginLeft),t&&(p.height="100%"),(0,u.jsx)(c.Row,a(a({},h),{},{justifyContent:s,style:p,children:o.Children.map(n,(function(e,n){return e&&o.cloneElement(e,{gutter:r,key:n})}))}))}},29237:function(e,n,t){"use strict";var r=t(38626),i=t(67971),o=t(86673),c=t(19711),u=t(23831),l=t(73942),s=t(37391),a=t(49125),d=t(28598),f=(0,r.css)(["padding:","px;padding-bottom:","px;padding-top:","px;"],2*a.iI,1.5*a.iI,1.5*a.iI),h=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||u.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.success&&"\n background-color: ".concat((e.theme.background||u.Z.background).successLight,";\n ")}),(function(e){return e.success&&!e.borderless&&"\n border: 1px solid ".concat((e.theme.background||u.Z.background).success,";\n ")}),(function(e){return!e.dark&&!e.success&&"\n background-color: ".concat((e.theme.background||u.Z.background).panel,";\n ")}),(function(e){return e.dark&&"\n background-color: ".concat((e.theme.background||u.Z.background).content,";\n ")}),(function(e){return!e.fullHeight&&"\n height: fit-content;\n "}),(function(e){return e.maxHeight&&"\n max-height: ".concat(e.maxHeight,";\n ")}),(function(e){return e.maxWidth&&"\n max-width: ".concat(e.maxWidth,"px;\n ")}),(function(e){return e.minWidth&&"\n min-width: ".concat(e.minWidth,"px;\n\n @media (max-width: ").concat(e.minWidth,"px) {\n min-width: 0;\n }\n ")}),(function(e){return e.borderless&&"\n border: none;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),p=r.default.div.withConfig({displayName:"Panel__HeaderStyle",componentId:"sc-1ct8cgl-1"})(["border-top-left-radius:","px;border-top-right-radius:","px;"," "," "," ",""],l.n_,l.n_,(function(e){return"\n background-color: ".concat((e.theme.background||u.Z.background).chartBlock,";\n border-bottom: 1px solid ").concat((e.theme.interactive||u.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),f,(function(e){return e.headerPaddingVertical&&"\n padding-bottom: ".concat(e.headerPaddingVertical,"px;\n padding-top: ").concat(e.headerPaddingVertical,"px;\n ")})),m=r.default.div.withConfig({displayName:"Panel__ContentStyle",componentId:"sc-1ct8cgl-2"})(["overflow-y:auto;padding:","px;height:100%;"," "," "," "," ",""],1.75*a.iI,s.w5,(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),(function(e){return e.maxHeight&&"\n max-height: calc(".concat(e.maxHeight," - ").concat(15*a.iI,"px);\n ")}),(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),g=r.default.div.withConfig({displayName:"Panel__FooterStyle",componentId:"sc-1ct8cgl-3"})(["border-style:",";border-top-width:","px;padding:","px;"],l.M8,l.YF,1.75*a.iI);n.Z=function(e){var n=e.borderless,t=e.children,r=e.containerRef,u=e.contentContainerRef,l=e.dark,s=e.footer,a=e.fullHeight,f=void 0===a||a,b=e.fullWidth,j=void 0===b||b,v=e.header,y=e.headerHeight,x=e.headerIcon,w=e.headerPaddingVertical,O=e.headerTitle,Z=e.maxHeight,P=e.maxWidth,k=e.minWidth,_=e.noPadding,I=e.overflowVisible,S=e.subtitle,H=e.success;return(0,d.jsxs)(h,{borderless:n,dark:l,fullHeight:f,fullWidth:j,maxHeight:Z,maxWidth:P,minWidth:k,overflowVisible:I,ref:r,success:H,children:[(v||O)&&(0,d.jsxs)(p,{headerPaddingVertical:w,height:y,children:[v&&v,O&&(0,d.jsx)(i.Z,{alignItems:"center",justifyContent:"space-between",children:(0,d.jsxs)(i.Z,{alignItems:"center",children:[x&&x,(0,d.jsx)(o.Z,{ml:x?1:0,children:(0,d.jsx)(c.ZP,{bold:!0,default:!0,children:O})})]})})]}),(0,d.jsxs)(m,{maxHeight:Z,noPadding:_,overflowVisible:I,ref:u,children:[S&&(0,d.jsx)(o.Z,{mb:2,children:(0,d.jsx)(c.ZP,{default:!0,children:S})}),t]}),s&&(0,d.jsx)(g,{children:s})]})}},87372:function(e,n,t){"use strict";var r,i,o,c,u,l,s,a,d=t(82394),f=t(26304),h=t(26653),p=t(38626),m=t(33591),g=t(23831),b=t(2005),j=t(31012),v=t(19711),y=t(49125),x=t(86673),w=t(28598),O=["children","condensed","inline","level","marketing","spacingBelow"];function Z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function P(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach((function(n){(0,d.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var k=(0,p.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],v.IH,(function(e){return e.color&&"\n color: ".concat(e.color,"\n ")}),(function(e){return e.yellow&&"\n color: ".concat((e.theme.accent||g.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(b.iI,";\n ")}),(function(e){return!e.monospace&&1===Number(e.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(e){return!e.monospace&&2===Number(e.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(e){return!e.monospace&&3===Number(e.weightStyle)&&"\n font-family: ".concat(b.ry,";\n ")}),(function(e){return!e.monospace&&4===Number(e.weightStyle)&&"\n font-family: ".concat(b.YC,";\n ")}),(function(e){return!e.monospace&&5===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&(6===Number(e.weightStyle)||e.bold)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&7===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&8===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return e.lineHeightAuto&&"\n line-height: normal !important;\n "})),_=p.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(e){return"\n color: ".concat((e.theme.content||g.Z.content).active,";\n ")})),I=p.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],k,m.media.md(r||(r=(0,h.Z)(["\n ","\n "])),j.aQ),m.media.lg(i||(i=(0,h.Z)(["\n ","\n "])),j.aQ),m.media.xl(o||(o=(0,h.Z)(["\n ","\n "])),j.aQ)),S=p.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],k,j.MJ),H=p.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],k,m.media.xs(c||(c=(0,h.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*y.iI,7*y.iI),m.media.sm(u||(u=(0,h.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*y.iI,7*y.iI),m.media.md(l||(l=(0,h.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*y.iI,7*y.iI),m.media.lg(s||(s=(0,h.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*y.iI,7*y.iI),m.media.xl(a||(a=(0,h.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*y.iI,7*y.iI)),C=p.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],k,j.BL),N=p.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],k),W=p.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],k),D=p.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],k),E=p.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],k,(function(e){return 1===e.level&&"\n ".concat(j.MJ,"\n ")}),(function(e){return 2===e.level&&"\n ".concat(j.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 "})),z=function(e){var n,t=e.children,r=e.condensed,i=e.inline,o=e.level,c=e.marketing,u=e.spacingBelow,l=(0,f.Z)(e,O);i?n=E:0===Number(o)?n=I:1===Number(o)?n=c?H:S:2===Number(o)?n=C:3===Number(o)?n=N:4===Number(o)?n=W:5===Number(o)&&(n=D);var s=(0,w.jsxs)(n,P(P({},l),{},{level:o,children:[u&&(0,w.jsx)(x.Z,{mb:r?2:3,children:t}),!u&&t]}));return i?s:(0,w.jsx)(_,{children:s})};z.defaultProps={level:3,weightStyle:6},n.Z=z},42949:function(e,n,t){"use strict";t.r(n);var r=t(77837),i=t(75582),o=t(38860),c=t.n(o),u=t(82684),l=t(83455),s=t(38341),a=t(76096),d=t(34744),f=t(93461),h=t(67971),p=t(87372),m=t(10919),g=t(29237),b=t(41788),j=t(97361),v=t(30775),y=t(86673),x=t(54283),w=t(19711),O=t(70902),Z=t(82531),P=t(11366),k=t(49125),_=t(79585),I=t(91427),S=t(96510),H=t(9728),C=t(28598);function N(){var e=(0,u.useState)(!!(0,I.U2)(P.kY)),n=e[0],t=e[1],r=(0,H.VI)(null,{},[],{uuid:"settings/workspace/preferences"}),o=(0,i.Z)(r,1)[0],c=Z.ZP.projects.list(),b=c.data,N=c.mutate,W=(0,u.useMemo)((function(){var e;return null===b||void 0===b||null===(e=b.projects)||void 0===e?void 0:e[0]}),[b])||{},D=W.help_improve_mage,E=W.name,z=W.project_uuid,M=(0,l.Db)(Z.ZP.projects.useUpdate(E),{onSuccess:function(e){return(0,S.wD)(e,{callback:function(){N()},onErrorCallback:function(e,n){return o({errors:n,response:e})}})}}),A=(0,i.Z)(M,2),B=A[0],R=A[1].isLoading,L=(0,u.useCallback)((function(e){return B({project:e})}),[B]);return(0,C.jsx)(v.Z,{uuidItemSelected:_.HY,uuidWorkspaceSelected:_.WH,children:(0,C.jsx)(y.Z,{p:k.cd,children:(0,C.jsx)(j.Z,{justifyContent:"center",children:(0,C.jsx)(a.Z,{xl:8,xxl:6,children:(0,C.jsxs)(g.Z,{noPadding:!0,children:[(0,C.jsxs)(y.Z,{p:k.cd,children:[(0,C.jsx)(y.Z,{mb:1,children:(0,C.jsx)(p.Z,{level:5,children:"Project name"})}),(0,C.jsx)(w.ZP,{default:!0,monospace:!0,children:E})]}),(0,C.jsx)(d.Z,{light:!0}),(0,C.jsxs)(y.Z,{p:k.cd,children:[(0,C.jsx)(y.Z,{mb:1,children:(0,C.jsx)(p.Z,{level:5,children:"Project UUID"})}),(0,C.jsx)(w.ZP,{default:!!z,monospace:!0,muted:!z,children:z||"Not required"})]}),(0,C.jsx)(d.Z,{light:!0}),(0,C.jsx)(y.Z,{p:k.cd,children:(0,C.jsxs)(h.Z,{alignItems:"center",justifyContent:"space-between",children:[(0,C.jsxs)(f.Z,{flexDirection:"column",children:[(0,C.jsx)(y.Z,{mb:1,children:(0,C.jsx)(p.Z,{level:5,children:"Help improve Mage"})}),(0,C.jsxs)(w.ZP,{default:!0,children:["Please contribute usage statistics to help improve the developer experience for you and everyone in the community. Learn more ",(0,C.jsx)(m.Z,{href:"https://docs.mage.ai/contributing/statistics/overview",openNewWindow:!0,children:"here"}),"."]})]}),(0,C.jsx)(y.Z,{mr:k.cd}),(0,C.jsx)(O.Z,{checked:D,onCheck:function(){L({help_improve_mage:!D})}})]})}),(0,C.jsx)(d.Z,{light:!0}),(0,C.jsxs)(y.Z,{p:k.cd,children:[(0,C.jsx)(y.Z,{mb:1,children:(0,C.jsx)(p.Z,{level:5,children:"Automatically generate block names"})}),(0,C.jsx)(h.Z,{alignItems:"center",children:(0,C.jsx)(s.Z,{checked:n,label:"Use randomly generated names for blocks created in the future",onClick:function(){t(!n),(0,I.t8)(P.kY,!n)}})})]}),R&&(0,C.jsx)(y.Z,{p:k.cd,children:(0,C.jsx)(x.Z,{inverted:!0})})]})})})})})}N.getInitialProps=(0,r.Z)(c().mark((function e(){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)}))),n.default=(0,b.Z)(N)},11366:function(e,n,t){"use strict";t.d(n,{H8:function(){return i},g6:function(){return o},kY:function(){return r},vF:function(){return c}});var r="automatically_name_blocks",i="pipeline_edit_before_tab_selected",o="pipeline_edit_hidden_blocks",c="pipeline_edit_block_output_logs"},33323:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/preferences",function(){return t(42949)}])},80022:function(e,n,t){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}t.d(n,{Z:function(){return r}})},15544:function(e,n,t){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}t.d(n,{Z:function(){return r}})},99177:function(e,n,t){"use strict";function r(e,n){return r=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},r(e,n)}function i(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&r(e,n)}t.d(n,{Z:function(){return i}})},93189:function(e,n,t){"use strict";t.d(n,{Z:function(){return o}});var r=t(12539),i=t(80022);function o(e,n){if(n&&("object"===r(n)||"function"===typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.Z)(e)}}},function(e){e.O(0,[844,1424,1005,9774,2888,179],(function(){return n=33323,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2858],{1210:function(e,n,r){"use strict";r.d(n,{Z:function(){return C}});var t=r(82394),o=r(21831),i=r(82684),l=r(47999),c=r(49894),s=r(93461),u=r(57384),a=r(41424),d=r(72454),f=r(28598);function h(e,n){var r=e.children;return(0,f.jsx)(d.HS,{ref:n,children:r})}var m=i.forwardRef(h),v=r(32063),j=r(85019),b=r(82531),p=r(66166),x=r(3055),g=r(49125),Z=r(91427),y=r(24141);function _(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 w(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?_(Object(r),!0).forEach((function(n){(0,t.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var C=function(e){var n,r=e.addProjectBreadcrumbToCustomBreadcrumbs,t=e.after,h=e.afterHidden,_=e.afterWidth,C=e.afterWidthOverride,P=e.before,k=e.beforeWidth,O=e.breadcrumbs,S=e.children,I=e.errors,E=e.headerMenuItems,M=e.headerOffset,D=e.mainContainerHeader,A=e.navigationItems,T=e.setErrors,B=e.subheaderChildren,N=e.title,R=e.uuid,L=(0,y.i)().width,F="dashboard_after_width_".concat(R),H="dashboard_before_width_".concat(R),G=(0,i.useRef)(null),U=(0,i.useState)(C?_:(0,Z.U2)(F,_)),V=U[0],q=U[1],z=(0,i.useState)(!1),Y=z[0],W=z[1],Q=(0,i.useState)(P?Math.max((0,Z.U2)(H,k),13*g.iI):null),K=Q[0],X=Q[1],J=(0,i.useState)(!1),$=J[0],ee=J[1],ne=(0,i.useState)(null)[1],re=b.ZP.projects.list({},{revalidateOnFocus:!1}).data,te=null===re||void 0===re?void 0:re.projects,oe={label:function(){var e;return null===te||void 0===te||null===(e=te[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},ie=[];O?(r&&ie.push(oe),ie.push.apply(ie,(0,o.Z)(O))):(null===te||void 0===te?void 0:te.length)>=1&&ie.push.apply(ie,[oe,{bold:!0,label:function(){return N}}]),(0,i.useEffect)((function(){null===G||void 0===G||!G.current||Y||$||null===ne||void 0===ne||ne(G.current.getBoundingClientRect().width)}),[Y,V,$,K,G,ne,L]),(0,i.useEffect)((function(){Y||(0,Z.t8)(F,V)}),[h,Y,V,F]),(0,i.useEffect)((function(){$||(0,Z.t8)(H,K)}),[$,K,H]);var le=(0,p.Z)(_);return(0,i.useEffect)((function(){C&&le!==_&&q(_)}),[C,_,le]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(u.Z,{title:N}),(0,f.jsx)(a.Z,{breadcrumbs:ie,menuItems:E,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,f.jsxs)(d.Nk,{children:[0!==(null===A||void 0===A?void 0:A.length)&&(0,f.jsx)(d.lm,{showMore:!0,children:(0,f.jsx)(j.Z,{navigationItems:A,showMore:!0})}),(0,f.jsx)(s.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(v.Z,{after:t,afterHeightOffset:x.Mz,afterHidden:h,afterMousedownActive:Y,afterWidth:V,before:P,beforeHeightOffset:x.Mz,beforeMousedownActive:$,beforeWidth:d.k1+(P?K:0),headerOffset:M,hideAfterCompletely:!0,leftOffset:P?d.k1:null,mainContainerHeader:D,mainContainerRef:G,setAfterMousedownActive:W,setAfterWidth:q,setBeforeMousedownActive:ee,setBeforeWidth:X,children:[B&&(0,f.jsx)(m,{children:B}),S]})})]}),I&&(0,f.jsx)(l.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===T||void 0===T?void 0:T(null)},children:(0,f.jsx)(c.Z,w(w({},I),{},{onClose:function(){return null===T||void 0===T?void 0:T(null)}}))})]})}},60701:function(e,n,r){"use strict";r.d(n,{Qq:function(){return f},Z7:function(){return h},cH:function(){return o},du:function(){return a},fp:function(){return u},j5:function(){return d},uM:function(){return s}});var t,o,i=r(82394),l=r(10503),c=r(24224),s="sideview",u=90;!function(e){e.ADDON_BLOCKS="addon_blocks",e.BLOCK_SETTINGS="block_settings",e.CALLBACKS="callbacks",e.CHARTS="charts",e.DATA="data",e.EXTENSIONS="power_ups",e.FILE_VERSIONS="file_versions",e.GRAPHS="graphs",e.REPORTS="reports",e.SECRETS="secrets",e.SETTINGS="settings",e.TERMINAL="terminal",e.TREE="tree",e.VARIABLES="variables"}(o||(o={}));o.BLOCK_SETTINGS,o.CALLBACKS,o.CHARTS,o.DATA,o.EXTENSIONS,o.TREE;var a=[o.DATA],d=[{key:o.TREE,label:"Tree"},{buildLabel:function(e){var n=(e.pipeline||{}).widgets,r=void 0===n?[]:n;return(null===r||void 0===r?void 0:r.length)>=1?"Charts (".concat(r.length,")"):"Charts"},key:o.CHARTS},{buildLabel:function(e){var n=e.variables;return(null===n||void 0===n?void 0:n.length)>=1?"Variables (".concat(n.length,")"):"Variables"},key:o.VARIABLES},{buildLabel:function(e){var n=e.secrets;return(null===n||void 0===n?void 0:n.length)>=1?"Secrets (".concat(n.length,")"):"Secrets"},key:o.SECRETS},{buildLabel:function(e){e.pipeline;return"Add-on blocks"},key:o.ADDON_BLOCKS},{buildLabel:function(e){var n=(e.pipeline||{}).extensions,r=void 0===n?{}:n,t=0;return Object.values(r).forEach((function(e){var n=e.blocks;t+=(null===n||void 0===n?void 0:n.length)||0})),t>=1?"Power ups (".concat(t,")"):"Power ups"},key:o.EXTENSIONS},{key:o.DATA,label:"Data"},{key:o.TERMINAL,label:"Terminal"},{key:o.BLOCK_SETTINGS,label:"Block settings"}],f=(0,c.HK)(d,(function(e){return e.key})),h=(t={},(0,i.Z)(t,o.ADDON_BLOCKS,l.EJ),(0,i.Z)(t,o.BLOCK_SETTINGS,l.JG),(0,i.Z)(t,o.CALLBACKS,l.AQ),(0,i.Z)(t,o.CHARTS,l.GQ),(0,i.Z)(t,o.DATA,l.iA),(0,i.Z)(t,o.EXTENSIONS,l.Bf),(0,i.Z)(t,o.SECRETS,l.Yo),(0,i.Z)(t,o.SETTINGS,l.Zr),(0,i.Z)(t,o.TERMINAL,l.oI),(0,i.Z)(t,o.TREE,l.mp),(0,i.Z)(t,o.VARIABLES,l.LO),t)},73828:function(e,n,r){"use strict";r.d(n,{JD:function(){return j},Lu:function(){return i},PF:function(){return h},d2:function(){return f},dT:function(){return l},n6:function(){return u},nB:function(){return v},oy:function(){return m},xF:function(){return d}});var t,o,i,l,c=r(82394),s=r(86422);!function(e){e.CSV="csv",e.JSON="json",e.MD="md",e.PY="py",e.R="r",e.SQL="sql",e.TXT="txt",e.YAML="yaml",e.YML="yml"}(i||(i={})),function(e){e.INIT_PY="__init__.py",e.METADATA_YAML="metadata.yaml",e.REQS_TXT="requirements.txt"}(l||(l={}));var u=[i.PY,i.SQL],a=[i.JSON,i.MD,i.PY,i.R,i.SQL,i.TXT,i.YAML,i.YML],d=new RegExp(a.map((function(e){return".".concat(e,"$")})).join("|")),f=new RegExp(a.map((function(e){return".".concat(e,"$")})).join("|")),h="charts",m="pipelines",v=(t={},(0,c.Z)(t,i.MD,s.t6.MARKDOWN),(0,c.Z)(t,i.JSON,i.JSON),(0,c.Z)(t,i.PY,s.t6.PYTHON),(0,c.Z)(t,i.R,s.t6.R),(0,c.Z)(t,i.SQL,s.t6.SQL),(0,c.Z)(t,i.TXT,"text"),(0,c.Z)(t,i.YAML,s.t6.YAML),(0,c.Z)(t,i.YML,s.t6.YAML),t),j=(o={},(0,c.Z)(o,s.t6.MARKDOWN,i.MD),(0,c.Z)(o,s.t6.PYTHON,i.PY),(0,c.Z)(o,s.t6.R,i.R),(0,c.Z)(o,s.t6.SQL,i.SQL),(0,c.Z)(o,s.t6.YAML,i.YAML),(0,c.Z)(o,"text",i.TXT),o)},55022:function(e,n,r){"use strict";var t;r.d(n,{G:function(){return t}}),function(e){e.ACTIVE_DIRECTORY="active_directory",e.GITHUB="github"}(t||(t={}))},66176:function(e,n,r){"use strict";var t=r(82394),o=r(91835),i=(r(82684),r(38626)),l=r(23831),c=r(73942),s=r(49125),u=r(28598);function a(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 d(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?a(Object(r),!0).forEach((function(n){(0,t.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var f=i.default.div.withConfig({displayName:"ProgressBar__ProgressBarContainerStyle",componentId:"sc-10x9ojc-0"})(["border-radius:","px;height:","px;overflow:hidden;position:relative;width:100%;",""],c.BG,.75*s.iI,(function(e){return"\n background-color: ".concat((e.theme.monotone||l.Z.monotone).grey200,";\n ")})),h=i.default.div.withConfig({displayName:"ProgressBar__ProgressBarStyle",componentId:"sc-10x9ojc-1"})(["height:inherit;position:absolute;"," "," "," ",""],(function(e){return!e.danger&&"\n background-color: ".concat((e.theme.progress||l.Z.progress).positive,";\n ")}),(function(e){return e.progress&&"\n width: ".concat(e.progress,"%;\n ")}),(function(e){return e.danger&&"\n background-color: ".concat((e.theme.progress||l.Z.progress).negative,";\n ")}),(function(e){return e.animateProgress&&"\n animation: animate-progress ".concat(e.animateProgress.duration,"ms linear forwards;\n\n @keyframes animate-progress {\n 0% {\n width: ").concat(e.animateProgress.start,"%;\n }\n\n 100% {\n width: ").concat(e.animateProgress.end,"%;\n }\n }\n ")}));n.Z=function(e){var n=(0,o.Z)({},e);return(0,u.jsx)(f,d(d({},n),{},{children:(0,u.jsx)(h,d({},n))}))}},32316:function(e,n,r){"use strict";r.d(n,{Z:function(){return j}});var t=r(82684),o=r(60328),i=r(67971),l=r(882),c=r(86673),s=r(19711),u=r(99994),a=r(38626),d=r(49125),f=r(37391),h=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 "}),f.w5),m=r(66653),v=r(28598);var j=function(e){var n=e.allowScroll,r=e.compact,a=e.contained,f=e.noPadding,j=e.onClickTab,b=e.regularSizeText,p=e.selectedTabUUID,x=e.small,g=e.tabs,Z=(0,t.useMemo)((function(){var e=g.length,n=[];return g.forEach((function(t,a){var f=t.Icon,h=t.IconSelected,g=t.label,Z=t.uuid,y=Z===p,_=y&&h||f,w=g?g():Z,C=(0,v.jsxs)(i.Z,{alignItems:"center",children:[_&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(_,{default:!y,size:2*d.iI}),(0,v.jsx)(c.Z,{mr:1})]}),(0,v.jsx)(s.ZP,{bold:!0,default:!y,noWrapping:!0,small:!b,children:w})]});a>=1&&e>=2&&n.push((0,v.jsx)("div",{style:{marginLeft:1.5*d.iI}},"spacing-".concat(Z))),y?n.push((0,v.jsx)(l.Z,{backgroundGradient:u.yr,backgroundPanel:!0,borderLess:!0,borderWidth:2,compact:r||x,onClick:function(e){(0,m.j)(e),j(t)},paddingUnitsHorizontal:1.75,paddingUnitsVertical:1.25,small:x,children:C},Z)):n.push((0,v.jsx)("div",{style:{padding:2},children:(0,v.jsx)(o.Z,{borderLess:!0,compact:r||x,default:!0,onClick:function(e){(0,m.j)(e),j(t)},outline:!0,small:x,children:C})},"button-tab-".concat(Z)))})),n}),[r,j,p,x,g]),y=(0,v.jsx)(i.Z,{alignItems:"center",children:Z});return a?y:(0,v.jsx)(h,{allowScroll:n,noPadding:f,children:y})}},92589:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return Pe}});var t=r(77837),o=r(38860),i=r.n(o),l=r(41788),c=r(82394),s=r(75582),u=r(54407),a=r.n(u),d=r(82684),f=r(83455),h=r(60328),m=r(34744),v=r(67971),j=r(87372),b=r(55378),p=r(86673),x=r(54283),g=r(19711),Z=r(38435),y=r(82944),_=r(46261),w=r(82531),C=r(10503),P="delete",k="merge",O="pull",S="push",I="rebase",E="git_remote_name",M="git_repository_name",D={uuid:"Branches"},A={uuid:"Files"},T={uuid:"Push"},B={uuid:"Setup"},N=[B,D,A,T],R=r(49125),L=r(90211),F=r(96510),H=r(28598);var G=function(e){var n=e.actionRemoteName,r=e.branch,t=e.branches,o=e.fetchBranch,i=e.fetchBranches,l=e.remotes,u=e.setActionRemoteName,a=e.showError,O=(0,d.useState)(""),S=O[0],E=O[1],M=(0,d.useState)(null),D=M[0],T=M[1],N=(0,d.useState)(null),G=N[0],U=N[1],V=(0,d.useState)(null),q=V[0],z=V[1],Y=(0,d.useState)(""),W=Y[0],Q=Y[1],K=(0,d.useMemo)((function(){return null===l||void 0===l?void 0:l.find((function(e){return e.name===n}))}),[n,l]),X=(0,d.useMemo)((function(){return(null===t||void 0===t?void 0:t.concat((null===K||void 0===K?void 0:K.refs)||[]))||[]}),[t,K]),J=(0,f.Db)(w.ZP.git_custom_branches.useCreate(),{onSuccess:function(e){return(0,F.wD)(e,{callback:function(){o(),i(),Q("")},onErrorCallback:function(e,n){return a({errors:n,response:e})}})}}),$=(0,s.Z)(J,2),ee=$[0],ne=$[1].isLoading,re=(0,f.Db)(w.ZP.git_custom_branches.useCreate(),{onSuccess:function(e){return(0,F.wD)(e,{callback:function(){o()},onErrorCallback:function(e,n){return a({errors:n,response:e})}})}}),te=(0,s.Z)(re,2),oe=te[0],ie=te[1].isLoading,le=(0,f.Db)(w.ZP.git_custom_branches.useUpdate(null===r||void 0===r?void 0:r.name),{onSuccess:function(e){return(0,F.wD)(e,{callback:function(e){var n=e.git_custom_branch.progress;o(),E(""),T(""),U(n),z("")},onErrorCallback:function(e,n){return a({errors:n,response:e})}})}}),ce=(0,s.Z)(le,2),se=ce[0],ue=ce[1].isLoading;return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)(p.Z,{mb:R.HN,children:[(0,H.jsxs)(j.Z,{children:["Branches",X?" (".concat(null===X||void 0===X?void 0:X.length,")"):""]}),(0,H.jsx)(p.Z,{mt:R.Mq,children:(0,H.jsxs)(v.Z,{children:[(0,H.jsxs)("div",{children:[(0,H.jsx)(p.Z,{mb:1,children:(0,H.jsx)(g.ZP,{bold:!0,muted:!0,children:"Remote"})}),(0,H.jsx)(b.Z,{beforeIcon:(0,H.jsx)(C.VW,{}),beforeIconSize:1.5*R.iI,monospace:!0,onChange:function(e){return u(e.target.value)},placeholder:"Choose a remote",value:n||"",children:null===l||void 0===l?void 0:l.map((function(e){var n=e.name;return(0,H.jsx)("option",{value:n,children:n},n)}))})]}),(0,H.jsx)(p.Z,{mr:1}),(0,H.jsxs)("div",{children:[(0,H.jsx)(p.Z,{mb:1,children:(0,H.jsx)(g.ZP,{bold:!0,muted:!0,children:"Current branch"})}),(0,H.jsxs)(v.Z,{alignItems:"center",children:[(0,H.jsx)(_.Z,{fullSize:!0,label:"Choose a different branch to switch branches",widthFitContent:!0,children:(0,H.jsx)(b.Z,{beforeIcon:(0,H.jsx)(C.I0,{muted:!1}),beforeIconSize:2*R.iI,monospace:!0,onChange:function(e){return oe({git_custom_branch:{name:e.target.value}})},value:null===r||void 0===r?void 0:r.name,children:(null===r||void 0===r?void 0:r.name)&&(null===X||void 0===X?void 0:X.map((function(e){var n=e.name;return(0,H.jsx)("option",{value:n,children:n},n)})))})}),(0,H.jsx)(p.Z,{mr:R.cd}),ie&&(0,H.jsx)(x.Z,{inverted:!0})]})]})]})}),(0,H.jsx)(p.Z,{mt:R.Mq,children:(0,H.jsxs)(v.Z,{alignItems:"center",children:[(0,H.jsx)(y.Z,{label:"New branch name",monospace:!0,onChange:function(e){var n;return Q(null===e||void 0===e||null===(n=e.target)||void 0===n?void 0:n.value)},value:W||""}),(0,H.jsx)(p.Z,{mr:1}),(0,H.jsx)(h.Z,{beforeIcon:(0,H.jsx)(C.mm,{size:2*R.iI}),disabled:!W,loading:ne,onClick:function(){ee({git_custom_branch:{name:W}})},primary:!0,children:"Create new branch"})]})})]}),(0,H.jsxs)(p.Z,{mb:R.HN,children:[(0,H.jsx)(j.Z,{children:"Actions"}),(0,H.jsxs)(p.Z,{mt:R.Mq,children:[(0,H.jsxs)(p.Z,{mb:R.Mq,children:[(0,H.jsx)(p.Z,{mb:1,children:(0,H.jsx)(g.ZP,{bold:!0,muted:!0,children:"Compare branch"})}),(null===r||void 0===r?void 0:r.name)&&(0,H.jsx)(g.ZP,{monospace:!0,children:null===r||void 0===r?void 0:r.name})]}),(0,H.jsxs)(v.Z,{alignItems:"center",children:[(0,H.jsxs)("div",{children:[(0,H.jsx)(p.Z,{mb:1,children:(0,H.jsx)(g.ZP,{bold:!0,muted:!0,children:"Base branch"})}),(0,H.jsx)(b.Z,{beforeIcon:(0,H.jsx)(C.I0,{}),beforeIconSize:1.5*R.iI,monospace:!0,onChange:function(e){return z(e.target.value)},placeholder:"Choose a branch",value:q,children:null===X||void 0===X?void 0:X.map((function(e){var n=e.name;return(0,H.jsx)("option",{value:n,children:n},n)}))})]}),(0,H.jsx)(p.Z,{mr:1}),(0,H.jsxs)("div",{children:[(0,H.jsx)(p.Z,{mb:1,children:(0,H.jsx)(g.ZP,{bold:!0,muted:!0,children:"Action"})}),(0,H.jsxs)(b.Z,{onChange:function(e){return T(e.target.value)},placeholder:"Choose action",value:D||"",children:[(0,H.jsx)("option",{value:k,children:(0,L.vg)(k)}),(0,H.jsx)("option",{value:I,children:(0,L.vg)(I)}),(0,H.jsx)("option",{value:P,children:(0,L.vg)(P)})]})]})]}),D&&[k,I].includes(D)&&(0,H.jsxs)(p.Z,{mt:R.cd,children:[(0,H.jsx)(p.Z,{mb:1,children:(0,H.jsxs)(g.ZP,{bold:!0,muted:!0,children:["Message for ",D]})}),(0,H.jsx)(Z.Z,{monospace:!0,onChange:function(e){return E(e.target.value)},value:S||""})]}),(0,H.jsxs)(p.Z,{mt:R.cd,children:[(0,H.jsx)(h.Z,{beforeIcon:(0,H.jsx)(C.Bf,{size:2*R.iI}),disabled:!D||!q,loading:ue,onClick:function(){(P!==D||"undefined"!==typeof location&&window.confirm("Are you sure you want to delete branch ".concat(q,"?")))&&se({git_custom_branch:(0,c.Z)({action_type:D,message:S},D,{base_branch:q})})},primary:!0,children:D?(0,L.vg)(D):"Execute action"}),G&&(0,H.jsx)(p.Z,{mt:R.cd,children:(0,H.jsx)(g.ZP,{default:!0,monospace:!0,preWrap:!0,children:G})})]})]})]}),(0,H.jsxs)(p.Z,{mb:R.HN,children:[(0,H.jsx)(p.Z,{mb:R.HN,children:(0,H.jsx)(m.Z,{light:!0})}),(0,H.jsxs)(v.Z,{children:[(0,H.jsx)(h.Z,{beforeIcon:(0,H.jsx)(C.Hd,{}),linkProps:{href:"/version-control?tab=".concat(B.uuid)},noBackground:!0,noHoverUnderline:!0,sameColorAsText:!0,children:B.uuid}),(0,H.jsx)(p.Z,{mr:1}),(0,H.jsxs)(h.Z,{afterIcon:(0,H.jsx)(C.Kw,{}),linkProps:{href:"/version-control?tab=".concat(A.uuid)},noHoverUnderline:!0,sameColorAsText:!0,secondary:!0,children:["Next: ",A.uuid]})]})]})]})},U=r(32316),V=r(44182),q=r(25880),z=r(10919),Y=r(87815);function W(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 Q(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?W(Object(r),!0).forEach((function(n){(0,c.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):W(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var K={base_branch:null,body:null,compare_branch:null,repository:null,title:null};var X=function(e){var n=e.actionRemoteName,r=e.branch,t=e.branches,o=e.fetchBranch,i=e.loading,l=e.remotes,u=e.repositories,a=e.repositoryName,_=e.setActionRemoteName,P=e.setRepositoryName,k=e.showError,O=(0,d.useState)((null===r||void 0===r?void 0:r.name)||""),I=O[0],E=O[1],M=(0,d.useState)(null),D=M[0],T=M[1],B=(0,d.useState)(null),N=B[0],G=B[1],U=(0,d.useState)(K),W=U[0],X=U[1],J=(0,f.Db)(w.ZP.git_custom_branches.useUpdate(null===r||void 0===r?void 0:r.name),{onSuccess:function(e){return(0,F.wD)(e,{callback:function(e){var n=e.git_custom_branch,r=n.error,t=n.progress;r?(T(r),G(null)):(o(),T(null),G(t))},onErrorCallback:function(e,n){return k({errors:n,response:e})}})}}),$=(0,s.Z)(J,2),ee=$[0],ne=$[1].isLoading,re=w.ZP.pull_requests.list({repository:a},{},{pauseFetch:!a}),te=re.data,oe=re.mutate,ie=(0,d.useMemo)((function(){return(null===te||void 0===te?void 0:te.pull_requests)||[]}),[te]),le=(0,d.useMemo)((function(){return(0,H.jsx)(Y.Z,{columnFlex:[null,null,null,null],columns:[{uuid:"Title"},{uuid:"Author"},{uuid:"Created"},{uuid:"Last modified"}],onClickRow:function(e){var n,r=null===ie||void 0===ie||null===(n=ie[e])||void 0===n?void 0:n.url;r&&window.open(r,"_blank")},rows:null===ie||void 0===ie?void 0:ie.map((function(e){var n=e.created_at,r=e.last_modified,t=e.title,o=e.url,i=e.user;return[(0,H.jsx)(z.Z,{default:!0,href:o,monospace:!0,openNewWindow:!0,small:!0,children:t},"title"),(0,H.jsx)(g.ZP,{default:!0,monospace:!0,small:!0,children:i},"user"),(0,H.jsx)(g.ZP,{default:!0,monospace:!0,small:!0,children:n},"createdAt"),(0,H.jsx)(g.ZP,{default:!0,monospace:!0,small:!0,children:r||"-"},"lastModified")]})),uuid:"pull-requests"})}),[ie]),ce=w.ZP.git_custom_branches.list({repository:a},{},{pauseFetch:!a}).data,se=(0,d.useMemo)((function(){return(null===ce||void 0===ce?void 0:ce.git_custom_branches)||[]}),[ce]);(0,d.useEffect)((function(){null!==W&&void 0!==W&&W.compare_branch||null===se||void 0===se||!se.find((function(e){return e.name===(null===r||void 0===r?void 0:r.name)}))||X((function(e){return Q(Q({},e),{},{compare_branch:null===r||void 0===r?void 0:r.name})}))}),[r,se,W]);var ue=(0,f.Db)(w.ZP.pull_requests.useCreate(),{onSuccess:function(e){return(0,F.wD)(e,{callback:function(){oe(),X(K)},onErrorCallback:function(e,n){return k({errors:n,response:e})}})}}),ae=(0,s.Z)(ue,2),de=ae[0],fe=ae[1].isLoading;return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)(p.Z,{mb:R.HN,children:[(0,H.jsx)(p.Z,{mb:1,children:(0,H.jsx)(j.Z,{children:(0,L.vg)(S)})}),(0,H.jsxs)(p.Z,{mt:R.Mq,children:[(0,H.jsxs)(v.Z,{children:[(0,H.jsxs)("div",{children:[(0,H.jsx)(p.Z,{mb:1,children:(0,H.jsx)(g.ZP,{bold:!0,muted:!0,children:"Remote"})}),i&&(0,H.jsx)(x.Z,{inverted:!0}),!i&&(0,H.jsx)(b.Z,{beforeIcon:(0,H.jsx)(C.VW,{}),beforeIconSize:1.5*R.iI,monospace:!0,onChange:function(e){return _(e.target.value)},placeholder:"Choose remote",value:n||"",children:null===l||void 0===l?void 0:l.map((function(e){var n=e.name;return(0,H.jsx)("option",{value:n,children:n},n)}))})]}),(0,H.jsx)(p.Z,{mr:1}),(0,H.jsxs)("div",{children:[(0,H.jsx)(p.Z,{mb:1,children:(0,H.jsx)(g.ZP,{bold:!0,muted:!0,children:"Branch"})}),(0,H.jsxs)(b.Z,{beforeIcon:(0,H.jsx)(C.I0,{}),beforeIconSize:1.5*R.iI,monospace:!0,onChange:function(e){return E(e.target.value)},placeholder:"Choose branch",value:I||"",children:[(0,H.jsx)("option",{value:""}),null===t||void 0===t?void 0:t.map((function(e){var n=e.name;return(0,H.jsx)("option",{value:n,children:n},n)}))]})]})]}),(0,H.jsx)(p.Z,{mt:R.cd,children:(0,H.jsxs)(h.Z,{beforeIcon:(0,H.jsx)(C.Bf,{size:2*R.iI}),disabled:!n||!I,loading:ne,onClick:function(){G(null),ee({git_custom_branch:(0,c.Z)({action_type:S},S,{branch:I,remote:n})})},primary:!0,children:[(0,L.vg)(S)," ",n," ",n&&I]})}),(N||D)&&(0,H.jsx)(p.Z,{mt:R.cd,children:(0,H.jsx)(g.ZP,{danger:!!D,default:!!N,monospace:!0,preWrap:!0,children:N||D})})]})]}),(0,H.jsxs)(p.Z,{mb:R.HN,children:[(0,H.jsx)(p.Z,{mb:1,children:(0,H.jsx)(j.Z,{children:"Create pull request"})}),(0,H.jsxs)(p.Z,{mt:R.Mq,children:[i&&(0,H.jsx)(x.Z,{inverted:!0}),!i&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)(v.Z,{children:[(0,H.jsxs)("div",{children:[(0,H.jsx)(p.Z,{mb:1,children:(0,H.jsx)(g.ZP,{bold:!0,muted:!0,children:"Repository"})}),(0,H.jsx)(b.Z,{beforeIcon:(0,H.jsx)(C.fy,{}),beforeIconSize:1.5*R.iI,monospace:!0,onChange:function(e){return P(e.target.value)},placeholder:"Choose repository",value:a||"",children:null===u||void 0===u?void 0:u.map((function(e){var n=e.name;return(0,H.jsx)("option",{value:n,children:n},n)}))})]}),(0,H.jsx)(p.Z,{mr:1}),(0,H.jsxs)("div",{children:[(0,H.jsx)(p.Z,{mb:1,children:(0,H.jsx)(g.ZP,{bold:!0,muted:!0,children:"Base branch"})}),a&&!ce&&(0,H.jsx)(x.Z,{inverted:!0}),(!a||ce)&&(0,H.jsx)(b.Z,{beforeIcon:(0,H.jsx)(C.I0,{}),beforeIconSize:1.5*R.iI,disabled:!a,monospace:!0,onChange:function(e){return X((function(n){return Q(Q({},n),{},{base_branch:e.target.value})}))},placeholder:"Choose branch",value:(null===W||void 0===W?void 0:W.base_branch)||"",children:null===se||void 0===se?void 0:se.map((function(e){var n=e.name;return(0,H.jsx)("option",{value:n,children:n},n)}))})]}),(0,H.jsx)(p.Z,{mr:1}),(0,H.jsxs)("div",{children:[(0,H.jsx)(p.Z,{mb:1,children:(0,H.jsx)(g.ZP,{bold:!0,muted:!0,children:"Compare branch"})}),a&&!ce&&(0,H.jsx)(x.Z,{inverted:!0}),(!a||ce||(null===W||void 0===W?void 0:W.compare_branch))&&(0,H.jsxs)(b.Z,{beforeIcon:(0,H.jsx)(C.I0,{}),beforeIconSize:1.5*R.iI,disabled:!a,monospace:!0,onChange:function(e){return X((function(n){return Q(Q({},n),{},{compare_branch:e.target.value})}))},placeholder:"Choose branch",value:(null===W||void 0===W?void 0:W.compare_branch)||"",children:[!(null!==se&&void 0!==se&&se.length)&&(null===W||void 0===W?void 0:W.compare_branch)&&(0,H.jsx)("option",{value:null===W||void 0===W?void 0:W.compare_branch,children:null===W||void 0===W?void 0:W.compare_branch}),null===se||void 0===se?void 0:se.map((function(e){var n=e.name;return(0,H.jsx)("option",{value:n,children:n},n)}))]})]})]}),(0,H.jsx)(p.Z,{mt:1,children:(0,H.jsx)(y.Z,{label:"Title",monospace:!0,onChange:function(e){return X((function(n){return Q(Q({},n),{},{title:e.target.value})}))},value:(null===W||void 0===W?void 0:W.title)||""})}),(0,H.jsx)(p.Z,{mt:1,children:(0,H.jsx)(Z.Z,{label:"Description",monospace:!0,onChange:function(e){return X((function(n){return Q(Q({},n),{},{body:e.target.value})}))},value:(null===W||void 0===W?void 0:W.body)||""})}),(0,H.jsx)(p.Z,{mt:R.cd,children:(0,H.jsx)(h.Z,{beforeIcon:(0,H.jsx)(C.Bf,{size:2*R.iI}),disabled:!a||!(null!==W&&void 0!==W&&W.title)||!(null!==W&&void 0!==W&&W.base_branch)||!(null!==W&&void 0!==W&&W.compare_branch),loading:fe,onClick:function(){de({pull_request:Q(Q({},W),{},{repository:a})})},primary:!0,children:"Create new pull request"})})]})]}),(0,H.jsx)(p.Z,{mt:R.Mq,children:(0,H.jsx)(V.Z,{visibleMapping:{0:!a},children:(0,H.jsxs)(q.Z,{noPaddingContent:!0,title:te?"Pull requests (".concat(null===ie||void 0===ie?void 0:ie.length,")"):"Pull requests",children:[!a&&(0,H.jsx)(p.Z,{p:R.cd,children:(0,H.jsx)(g.ZP,{muted:!0,children:"Please select a repository to view open pull requests."})}),a&&(0,H.jsxs)(H.Fragment,{children:[!te&&(0,H.jsx)(p.Z,{p:R.cd,children:(0,H.jsx)(x.Z,{inverted:!0})}),te&&le]})]})})})]}),(0,H.jsxs)(p.Z,{mb:R.HN,children:[(0,H.jsx)(p.Z,{mb:R.HN,children:(0,H.jsx)(m.Z,{light:!0})}),(0,H.jsx)(v.Z,{children:(0,H.jsx)(h.Z,{beforeIcon:(0,H.jsx)(C.Hd,{}),linkProps:{href:"/version-control?tab=".concat(A.uuid)},noBackground:!0,noHoverUnderline:!0,sameColorAsText:!0,children:A.uuid})})]})]})},J=r(1210),$=r(46299),ee=r(38341),ne=r(93461),re=r(38626),te=re.default.div.withConfig({displayName:"indexstyle__SpacingStyle",componentId:"sc-el09vr-0"})(["margin-top:","px;"],.5*R.iI),oe=r(7715);function ie(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 le(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?ie(Object(r),!0).forEach((function(n){(0,c.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ie(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var ce=function(e){var n=e.branch,r=e.fetchBranch,t=e.modifiedFiles,o=e.setSelectedFilePath,i=e.showError,l=e.stagedFiles,c=e.untrackedFiles,u=(0,d.useRef)(null),a=(0,d.useState)(""),b=a[0],y=a[1],_=(0,d.useState)({}),P=_[0],k=_[1],O=(0,d.useState)({}),S=O[0],I=O[1],E=(0,d.useMemo)((function(){return Object.keys(t).concat(Object.keys(c)).sort()}),[t,c]),M=(0,d.useMemo)((function(){return Object.keys(l||{})}),[l]),A=(0,d.useMemo)((function(){return M.length}),[M]),B=(0,d.useMemo)((function(){return Object.keys(P).length===(null===E||void 0===E?void 0:E.length)}),[P,E]),N=(0,d.useMemo)((function(){return Object.keys(S).length===(null===M||void 0===M?void 0:M.length)}),[S,M]),G=(0,d.useMemo)((function(){return{onErrorCallback:function(e,n){return i({errors:n,response:e})}}}),[i]),U=(0,d.useMemo)((function(){return{onSuccess:function(e){return(0,F.wD)(e,le({callback:function(){r(),k({})}},G))}}}),[r,G]),W=(0,d.useMemo)((function(){return w.ZP.git_custom_branches.useUpdate(null===n||void 0===n?void 0:n.name)}),[n]),Q=(0,f.Db)(W,U),K=(0,s.Z)(Q,2),X=K[0],J=K[1].isLoading,$=(0,f.Db)(W,U),re=(0,s.Z)($,2),ie=re[0],ce=re[1].isLoading,se=(0,f.Db)(W,{onSuccess:function(e){return(0,F.wD)(e,le({callback:function(){r(),I({})}},G))}}),ue=(0,s.Z)(se,2),ae=ue[0],de=ue[1].isLoading,fe=(0,d.useCallback)((function(e,n,r,t,o){var i=(null===e||void 0===e?void 0:e.length)>=1;return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(z.Z,{block:!0,noHoverUnderline:!0,onClick:function(){r(o?{}:t)},preventDefault:!0,children:(0,H.jsxs)(v.Z,{alignItems:"center",flexDirection:"row",children:[(0,H.jsx)(ee.Z,{checked:i&&o,disabled:!i}),(0,H.jsx)(p.Z,{mr:1}),(0,H.jsx)(g.ZP,{bold:!0,children:i&&o?"Unselect all":"Select all"})]})}),e.map((function(e){return(0,H.jsx)(te,{children:(0,H.jsx)(z.Z,{block:!0,noHoverUnderline:!0,onClick:function(){return r((function(n){var r=le({},n);return!(null!==r&&void 0!==r&&r[e])?r[e]=!0:delete r[e],r}))},preventDefault:!0,children:(0,H.jsxs)(v.Z,{alignItems:"center",flexDirection:"row",children:[(0,H.jsx)(ee.Z,{checked:!(null===n||void 0===n||!n[e])}),(0,H.jsx)(p.Z,{mr:1}),(0,H.jsx)(g.ZP,{default:!0,monospace:!0,children:e})]})})},e)}))]})}),[]),he=(0,d.useMemo)((function(){return(0,oe.Qr)(P)}),[P]),me=w.ZP.git_custom_branches.detail("with_logs",{_format:"with_logs"}),ve=me.data,je=me.mutate,be=(0,d.useMemo)((function(){var e;return(null===ve||void 0===ve||null===(e=ve.git_custom_branch)||void 0===e?void 0:e.logs)||[]}),[ve]),pe=(0,f.Db)(w.ZP.git_custom_branches.useUpdate(null===n||void 0===n?void 0:n.name),{onSuccess:function(e){return(0,F.wD)(e,{callback:function(){je(),r(),y("")},onErrorCallback:function(e,n){return i({errors:n,response:e})}})}}),xe=(0,s.Z)(pe,2),ge=xe[0],Ze=xe[1].isLoading,ye=(0,d.useMemo)((function(){return(0,H.jsx)(Y.Z,{columnFlex:[1,1,1],columns:[{uuid:"Author"},{uuid:"Date"},{uuid:"Message"}],rows:be.map((function(e){var n=e.author,r=e.date,t=e.message;return[(0,H.jsx)(g.ZP,{default:!0,monospace:!0,small:!0,children:null===n||void 0===n?void 0:n.name},"author"),(0,H.jsx)(g.ZP,{default:!0,monospace:!0,small:!0,children:r},"date"),(0,H.jsx)(g.ZP,{default:!0,monospace:!0,small:!0,children:t},"message")]})),uuid:"git-branch-logs"})}),[be]);return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(p.Z,{mb:R.HN,children:(0,H.jsxs)(v.Z,{children:[(0,H.jsxs)(ne.Z,{flex:1,flexDirection:"column",children:[(0,H.jsxs)(j.Z,{children:["Not staged ",(null===E||void 0===E?void 0:E.length)>=1&&"(".concat(null===E||void 0===E?void 0:E.length,")")]}),(0,H.jsx)(p.Z,{my:R.cd,children:(0,H.jsx)(m.Z,{light:!0})}),(0,H.jsx)(p.Z,{mb:R.cd,children:(0,H.jsxs)(v.Z,{flexDirection:"row",children:[(0,H.jsx)(h.Z,{compact:!0,disabled:he||de||ce,loading:J,onClick:function(){X({git_custom_branch:{action_type:"add",files:Object.keys(P)}}).then((function(e){var n,r=e.data;null!==r&&void 0!==r&&r.git_custom_branch&&(null===u||void 0===u||null===(n=u.current)||void 0===n||n.focus())}))},primary:!0,children:"Add files"}),(0,H.jsx)(p.Z,{mr:1}),(0,H.jsx)(h.Z,{compact:!0,disabled:he||J||de,loading:ce,noBackground:!0,onClick:function(){"undefined"!==typeof location&&window.confirm("Are you sure you want to undo all changes in the selected files?")&&ie({git_custom_branch:{action_type:"checkout",files:Object.keys(P)}})},children:"Checkout files"})]})}),fe(E,P,k,le(le({},t),c),B)]}),(0,H.jsx)(p.Z,{mr:R.cd}),(0,H.jsxs)(ne.Z,{flex:1,flexDirection:"column",children:[(0,H.jsxs)(j.Z,{children:["Staged files ",(null===M||void 0===M?void 0:M.length)>=1&&"(".concat(null===M||void 0===M?void 0:M.length,")")]}),(0,H.jsx)(p.Z,{my:R.cd,children:(0,H.jsx)(m.Z,{light:!0})}),(0,H.jsx)(p.Z,{mb:R.cd,children:(0,H.jsx)(v.Z,{flexDirection:"row",children:(0,H.jsx)(h.Z,{compact:!0,disabled:(0,oe.Qr)(S)||J||ce,loading:de,onClick:function(){ae({git_custom_branch:{action_type:"reset",files:Object.keys(S)}})},secondary:!0,children:"Reset files"})})}),fe(M,S,I,l,N)]})]})}),(0,H.jsxs)(p.Z,{mb:R.HN,children:[(0,H.jsx)(p.Z,{mb:1,children:(0,H.jsx)(j.Z,{children:"Commit"})}),(0,H.jsx)(p.Z,{mb:R.cd,children:(0,H.jsx)(V.Z,{children:(0,H.jsx)(q.Z,{noPaddingContent:!0,title:A>=1?"Staged files (".concat(A,")"):"No staged files",children:null===M||void 0===M?void 0:M.map((function(e){return(0,H.jsx)(p.Z,{my:1,px:R.cd,children:(0,H.jsxs)(v.Z,{justifyContent:"space-between",children:[(0,H.jsx)(z.Z,{default:!0,monospace:!0,onClick:function(){return o((function(n){return n===e?null:e}))},warning:null===t||void 0===t?void 0:t[e],children:e}),(0,H.jsx)(p.Z,{mr:1}),(null===t||void 0===t?void 0:t[e])&&(0,H.jsx)(g.ZP,{warning:!0,children:"Modified after staging"})]})},e)}))})})}),(0,H.jsx)(Z.Z,{label:"Commit message",monospace:!0,onChange:function(e){return y(e.target.value)},ref:u,value:b||""}),(0,H.jsx)(p.Z,{mt:R.cd,children:(0,H.jsxs)(v.Z,{alignItems:"center",children:[(0,H.jsxs)(h.Z,{disabled:0===A||!((null===b||void 0===b?void 0:b.length)>=1),loading:Ze,onClick:function(){ge({git_custom_branch:{action_type:"commit",files:M,message:b}})},primary:!0,children:["Commit ",(0,L._6)("file",A,!0)," with message"]}),0===A&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(p.Z,{mr:1}),(0,H.jsx)(g.ZP,{danger:!0,small:!0,children:"Please stage at least 1 file before committing."})]})]})})]}),(0,H.jsx)(p.Z,{mb:R.HN,children:(0,H.jsx)(V.Z,{children:(0,H.jsxs)(q.Z,{noPaddingContent:!0,title:"Logs",children:[!ve&&(0,H.jsx)(p.Z,{p:R.cd,children:(0,H.jsx)(x.Z,{inverted:!0})}),ve&&ye]})})}),(0,H.jsxs)(p.Z,{mb:R.HN,children:[(0,H.jsx)(p.Z,{mb:R.HN,children:(0,H.jsx)(m.Z,{light:!0})}),(0,H.jsxs)(v.Z,{children:[(0,H.jsx)(h.Z,{beforeIcon:(0,H.jsx)(C.Hd,{}),linkProps:{href:"/version-control?tab=".concat(D.uuid)},noBackground:!0,noHoverUnderline:!0,sameColorAsText:!0,children:D.uuid}),(0,H.jsx)(p.Z,{mr:1}),(0,H.jsxs)(h.Z,{afterIcon:(0,H.jsx)(C.Kw,{}),linkProps:he?{href:"/version-control?tab=".concat(T.uuid)}:null,noHoverUnderline:!0,primary:he,sameColorAsText:!0,secondary:!he,children:["Next: ",T.uuid]})]})]})]})},se=r(12691),ue=r.n(se),ae=r(34376),de=r(55022),fe=r(59e3);var he=function(e){var n=e.actionRemoteName,r=e.branch,t=e.fetchBranch,o=e.loading,i=e.remotes,l=e.setActionRemoteName,c=e.showError,u=(0,ae.useRouter)(),a=(0,d.useRef)(null),Z=(0,d.useState)(null),_=Z[0],P=Z[1],k=(0,d.useState)(null),S=k[0],I=k[1],E=(0,d.useState)(null),M=E[0],A=E[1],T=(0,d.useState)(null),B=T[0],N=T[1],G=(0,d.useState)(!1),U=G[0],W=G[1],Q=(0,d.useState)(null),K=Q[0],X=Q[1],J=(0,d.useState)(""),$=J[0],ee=J[1],re=(0,d.useState)(""),te=re[0],oe=re[1],ie=(0,d.useState)(null),le=ie[0],ce=ie[1],se=(0,d.useMemo)((function(){return!(null===r||void 0===r||!r.name)}),[r]);(0,d.useEffect)((function(){var e,n;null!==r&&void 0!==r&&null!==(e=r.sync_config)&&void 0!==e&&e.repo_path&&null===le&&ce(null===r||void 0===r||null===(n=r.sync_config)||void 0===n?void 0:n.repo_path)}),[r,le]);var he=(0,d.useMemo)((function(){var e,r;return null===i||void 0===i||null===(e=i.find((function(e){return e.name===n})))||void 0===e||null===(r=e.refs)||void 0===r?void 0:r.map((function(e){var n=e.name.split("/");return{name:n[n.length-1]}}))}),[n,i]),me=(0,f.Db)(w.ZP.syncs.useCreate(),{onSuccess:function(e){return(0,F.wD)(e,{callback:function(){t(),W(!1)},onErrorCallback:function(e,n){return c({errors:n,response:e})}})}}),ve=(0,s.Z)(me,2),je=ve[0],be=ve[1].isLoading,pe=(0,f.Db)(w.ZP.git_custom_branches.useUpdate(null===r||void 0===r?void 0:r.name),{onSuccess:function(e){return(0,F.wD)(e,{callback:function(e){var n=e.git_custom_branch,r=n.error,o=n.progress;r?(I(r),N(null)):(t(),P(null),I(null),A(null),N(o))},onErrorCallback:function(e,n){return c({errors:n,response:e})}})}}),xe=(0,s.Z)(pe,2),ge=xe[0],Ze=xe[1].isLoading,ye=(0,f.Db)(w.ZP.git_custom_branches.useUpdate(null===r||void 0===r?void 0:r.name),{onSuccess:function(e){return(0,F.wD)(e,{callback:function(){t(),ee(""),oe("")},onErrorCallback:function(e,n){return c({errors:n,response:e})}})}}),_e=(0,s.Z)(ye,2),we=_e[0],Ce=_e[1].isLoading,Pe=(0,f.Db)(w.ZP.git_custom_branches.useUpdate(null===r||void 0===r?void 0:r.name),{onSuccess:function(e){return(0,F.wD)(e,{callback:function(){t(),X(null)},onErrorCallback:function(e,n){X(null),c({errors:n,response:e})}})}}),ke=(0,s.Z)(Pe,2),Oe=ke[0],Se=ke[1].isLoading,Ie=w.ZP.oauths.detail(de.G.GITHUB,{redirect_uri:encodeURIComponent(window.location.href)}),Ee=Ie.data,Me=Ie.mutate,De=(0,d.useMemo)((function(){return(null===Ee||void 0===Ee?void 0:Ee.oauth)||{}}),[Ee]),Ae=(0,f.Db)(w.ZP.oauths.useCreate(),{onSuccess:function(e){return(0,F.wD)(e,{callback:function(){Me()},onErrorCallback:function(e,n){c({errors:n,response:e})}})}}),Te=(0,s.Z)(Ae,2),Be=Te[0],Ne=Te[1].isLoading,Re=((0,fe.iV)()||{}).access_token;(0,d.useEffect)((function(){!De||null!==De&&void 0!==De&&De.authenticated||!Re||Be({oauth:{provider:de.G.GITHUB,token:Re}})}),[Re,Be,De]);var Le=(0,d.useMemo)((function(){return null===i||void 0===i?void 0:i.map((function(e){var r=e.name,t=e.refs,o=e.urls;return(0,H.jsxs)(p.Z,{mt:R.Mq,children:[(0,H.jsx)(p.Z,{mb:1,children:(0,H.jsxs)(v.Z,{alignItems:"center",justifyContent:"space-between",children:[(0,H.jsxs)(ne.Z,{alignItems:"center",children:[(0,H.jsx)(g.ZP,{bold:!0,children:r}),(0,H.jsx)(p.Z,{mx:1,children:(0,H.jsx)(C._Q,{muted:!0})}),null===o||void 0===o?void 0:o.map((function(e){return(0,H.jsx)(p.Z,{mr:1,children:(0,H.jsx)(g.ZP,{default:!0,monospace:!0,small:!0,children:e})},e)}))]}),(0,H.jsx)(p.Z,{mr:1}),(0,H.jsx)(h.Z,{compact:!0,disabled:Se&&K!==r,iconOnly:!0,loading:Se&&K===r,noBackground:!0,onClick:function(){"undefined"!==typeof location&&window.confirm("Are you sure you want to remove remote ".concat(r,"?"))&&(X(r),Oe({git_custom_branch:{action_type:"remove_remote",remote:{name:r}}}).then((function(){n===r&&l(null)})))},small:!0,title:"Remote remote ".concat(r),children:(0,H.jsx)(C.rF,{})})]})}),(0,H.jsx)(V.Z,{children:(0,H.jsxs)(q.Z,{noPaddingContent:!0,smallTitle:!0,title:"Refs (".concat(null===t||void 0===t?void 0:t.length,")"),children:[0===(null===t||void 0===t?void 0:t.length)&&(0,H.jsx)(p.Z,{p:R.cd,children:(0,H.jsx)(g.ZP,{muted:!0,children:"This remote has no refs."})}),(null===t||void 0===t?void 0:t.length)>=1&&(0,H.jsx)(Y.Z,{columnFlex:[1,1,1],columns:[{uuid:"Ref"},{uuid:"Author"},{uuid:"Date"},{uuid:"Message"}],rows:t.map((function(e){var n,r=e.commit,t=e.name;return[(0,H.jsx)(g.ZP,{default:!0,monospace:!0,small:!0,children:t},"ref-name"),(0,H.jsx)(g.ZP,{default:!0,monospace:!0,small:!0,children:null===r||void 0===r||null===(n=r.author)||void 0===n?void 0:n.name},"author"),(0,H.jsx)(g.ZP,{default:!0,monospace:!0,small:!0,children:null===r||void 0===r?void 0:r.date},"date"),(0,H.jsx)(g.ZP,{default:!0,monospace:!0,small:!0,children:null===r||void 0===r?void 0:r.message},"message")]})),uuid:"git-branch-remotes-refs"})]})}),(0,H.jsx)(p.Z,{mt:R.Mq,children:(0,H.jsx)(m.Z,{light:!0})})]},r)}))}),[Se,K,i,Oe]);return(0,H.jsxs)(H.Fragment,{children:[Ee&&(0,H.jsxs)(p.Z,{mb:R.HN,children:[(null===De||void 0===De?void 0:De.authenticated)&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(h.Z,{beforeIcon:(0,H.jsx)(C.fy,{size:2*R.iI}),disabled:!0,children:"Successfully authenticated with GitHub"}),(0,H.jsx)(p.Z,{mt:1,children:(0,H.jsx)(g.ZP,{muted:!0,children:"You can pull, push, and create pull requests on GitHub."})})]}),!(null!==De&&void 0!==De&&De.authenticated)&&(null===De||void 0===De?void 0:De.url)&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(h.Z,{beforeIcon:(0,H.jsx)(C.fy,{size:2*R.iI}),loading:Ne,onClick:function(){return u.push(null===De||void 0===De?void 0:De.url)},primary:!0,children:"Authenticate with GitHub"}),(0,H.jsx)(p.Z,{mt:1,children:(0,H.jsx)(g.ZP,{muted:!0,children:"Authenticating with GitHub will allow you to pull, push, and create pull requests on GitHub."})})]})]}),(0,H.jsxs)(p.Z,{mb:R.HN,children:[(0,H.jsx)(j.Z,{children:"Setup"}),(0,H.jsxs)(p.Z,{mt:R.Mq,children:[(0,H.jsxs)(p.Z,{mb:1,children:[(0,H.jsx)(g.ZP,{bold:!0,large:!0,children:se?"Git init directory":"Initialize Git directory"}),!se&&(0,H.jsxs)(g.ZP,{muted:!0,children:["Enter the directory you want to initialize git in. For example, ",(0,H.jsx)(g.ZP,{bold:!0,inline:!0,monospace:!0,muted:!0,children:"/home/src/default_repo"}),"."]}),se&&(0,H.jsxs)(g.ZP,{muted:!0,children:["If the directory below is blank, then the current working directory will be used to initialize git.",(0,H.jsx)("br",{}),"If git hasn\u2019t been initialized in the directory below, Mage will automatically run git init for you."]})]}),(0,H.jsxs)(v.Z,{alignItems:"center",children:[(0,H.jsx)(y.Z,{disabled:se&&!U,label:"Git directory",monospace:!0,onChange:function(e){return ce(e.target.value)},ref:a,value:le||""}),(0,H.jsx)(p.Z,{mr:1}),(!se||U)&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(h.Z,{compact:!0,disabled:!se&&!le,loading:be,onClick:function(){je({sync:{repo_path:le}})},primary:!0,small:!0,children:"Save"}),se&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(p.Z,{mr:1}),(0,H.jsx)(z.Z,{onClick:function(){return W(!1)},preventDefault:!0,sameColorAsText:!0,small:!0,children:"Cancel"})]})]}),se&&!U&&(0,H.jsx)(z.Z,{onClick:function(){W(!0),setTimeout((function(){var e;return null===a||void 0===a||null===(e=a.current)||void 0===e?void 0:e.focus()}),1)},preventDefault:!0,sameColorAsText:!0,small:!0,children:"Edit"})]})]})]}),se&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)(p.Z,{mb:R.HN,children:[(0,H.jsxs)(j.Z,{children:["Remotes",!o&&i?" (".concat(null===i||void 0===i?void 0:i.length,")"):""]}),o&&(0,H.jsx)(p.Z,{mt:R.Mq,children:(0,H.jsx)(x.Z,{inverted:!0})}),!o&&Le,(0,H.jsx)(p.Z,{mt:R.Mq,children:(0,H.jsxs)(v.Z,{alignItems:"flex-start",children:[(0,H.jsx)(y.Z,{label:"New remote name",monospace:!0,onChange:function(e){var n;return ee(null===e||void 0===e||null===(n=e.target)||void 0===n?void 0:n.value)},value:$||""}),(0,H.jsx)(p.Z,{mr:1}),(0,H.jsxs)(v.Z,{flexDirection:"column",children:[(0,H.jsx)(y.Z,{label:"Remote URL",monospace:!0,onChange:function(e){var n;return oe(null===e||void 0===e||null===(n=e.target)||void 0===n?void 0:n.value)},value:te||""}),(0,H.jsx)(p.Z,{mt:1,children:(0,H.jsxs)(g.ZP,{muted:!0,small:!0,children:["Use the https URL if you",(0,H.jsx)("br",{}),"authenticated with GitHub above."]})})]}),(0,H.jsx)(p.Z,{mr:1}),(0,H.jsx)(h.Z,{beforeIcon:(0,H.jsx)(C.mm,{size:2*R.iI}),disabled:!$||!te,loading:Ce,onClick:function(){we({git_custom_branch:{action_type:"add_remote",remote:{name:$,url:te}}})},primary:!0,children:"Create new remote"})]})})]}),(0,H.jsxs)(p.Z,{mb:R.HN,children:[(0,H.jsx)(j.Z,{children:"Actions"}),(0,H.jsxs)(p.Z,{mt:R.Mq,children:[(0,H.jsxs)(p.Z,{mb:R.Mq,children:[(0,H.jsx)(p.Z,{mb:1,children:(0,H.jsx)(g.ZP,{bold:!0,muted:!0,children:"Current branch"})}),(null===r||void 0===r?void 0:r.name)&&(0,H.jsxs)(v.Z,{alignItems:"center",children:[(0,H.jsx)(g.ZP,{monospace:!0,children:null===r||void 0===r?void 0:r.name}),(0,H.jsx)(p.Z,{mr:R.cd}),(0,H.jsx)(ue(),{href:"/version-control?tab=".concat(D.uuid),passHref:!0,children:(0,H.jsx)(z.Z,{small:!0,children:"Switch branch"})})]})]}),(0,H.jsxs)(v.Z,{children:[(0,H.jsx)(b.Z,{onChange:function(e){return A(e.target.value)},placeholder:"Action",value:M||"",children:(0,H.jsx)("option",{value:O,children:(0,L.vg)(O)})}),(0,H.jsx)(p.Z,{mr:1}),(0,H.jsx)(b.Z,{beforeIcon:(0,H.jsx)(C.VW,{}),beforeIconSize:1.5*R.iI,monospace:!0,onChange:function(e){return l(e.target.value)},placeholder:"Remote",value:n||"",children:null===i||void 0===i?void 0:i.map((function(e){var n=e.name;return(0,H.jsx)("option",{value:n,children:n},n)}))}),(0,H.jsx)(p.Z,{mr:1}),(0,H.jsxs)(b.Z,{beforeIcon:(0,H.jsx)(C.I0,{}),beforeIconSize:1.5*R.iI,monospace:!0,onChange:function(e){return P(e.target.value)},value:_||"",children:[(0,H.jsx)("option",{value:"",children:"All branches"}),null===he||void 0===he?void 0:he.map((function(e){var n=e.name;return(0,H.jsx)("option",{value:n,children:n},n)}))]})]}),(0,H.jsxs)(p.Z,{mt:R.cd,children:[(0,H.jsx)(h.Z,{beforeIcon:(0,H.jsx)(C.Bf,{size:2*R.iI}),disabled:!M||!n,loading:Ze,onClick:function(){N(null),ge({git_custom_branch:{action_type:M,pull:{branch:_,remote:n}}})},primary:!0,children:M?(0,L.vg)(M):"Execute action"}),(B||S)&&(0,H.jsx)(p.Z,{mt:R.cd,children:(0,H.jsx)(g.ZP,{danger:!!S,default:!!B,monospace:!0,preWrap:!0,children:B||S})})]})]})]}),(0,H.jsxs)(p.Z,{mb:R.HN,children:[(0,H.jsx)(p.Z,{mb:R.HN,children:(0,H.jsx)(m.Z,{light:!0})}),(0,H.jsx)(v.Z,{children:(0,H.jsxs)(h.Z,{afterIcon:(0,H.jsx)(C.Kw,{}),linkProps:{href:"/version-control?tab=".concat(D.uuid)},noHoverUnderline:!0,sameColorAsText:!0,secondary:!0,children:["Next: ",D.uuid]})})]})]})]})},me=r(2005),ve=re.default.div.withConfig({displayName:"indexstyle__DiffContainerStyle",componentId:"sc-1fo4nus-0"})(["pre{font-family:",";}"],me.Vp),je={codeFoldGutter:{},content:{},contentText:{},diffAdded:{},diffContainer:{},diffRemoved:{},emptyGutter:{},emptyLine:{},gutter:{},highlightedGutter:{},highlightedLine:{},line:{},lineNumber:{},marker:{},splitView:{},titleBlock:{},variables:{dark:{addedBackground:"#044B53",addedColor:"white",addedGutterBackground:"#034148",addedGutterColor:"#8c8c8c",codeFoldBackground:"#262831",codeFoldContentColor:"#555a7b",codeFoldGutterBackground:"#21232b",diffViewerBackground:"#2e303c",diffViewerColor:"#FFF",diffViewerTitleBackground:"#2f323e",diffViewerTitleBorderColor:"#353846",diffViewerTitleColor:"#555a7b",emptyLineBackground:"#363946",gutterBackground:"#2c2f3a",gutterBackgroundDark:"#262933",gutterColor:"#464c67",highlightBackground:"#2a3967",highlightGutterBackground:"#2d4077",removedBackground:"#632F34",removedColor:"white",removedGutterBackground:"#632b30",removedGutterColor:"#8c8c8c",wordAddedBackground:"#055d67",wordRemovedBackground:"#7d383f"},light:{addedBackground:"#e6ffed",addedColor:"#24292e",addedGutterBackground:"#cdffd8",addedGutterColor:"#212529",codeFoldBackground:"#f1f8ff",codeFoldContentColor:"#212529",codeFoldGutterBackground:"#dbedff",diffViewerBackground:"#fff",diffViewerColor:"212529",diffViewerTitleBackground:"#fafbfc",diffViewerTitleBorderColor:"#eee",diffViewerTitleColor:"#212529",emptyLineBackground:"#fafbfc",gutterBackground:"#f7f7f7",gutterBackgroundDark:"#f3f1f1",gutterColor:"#212529",highlightBackground:"#fffbdd",highlightGutterBackground:"#fff5b1",removedBackground:"#ffeef0",removedColor:"#24292e",removedGutterBackground:"#ffdce0",removedGutterColor:"#212529",wordAddedBackground:"#acf2bd",wordRemovedBackground:"#fdb8c0"}},wordAdded:{},wordDiff:{},wordRemoved:{}},be=r(91427),pe=r(32821),xe=r(33766),ge=r(24224),Ze=r(9728);function ye(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(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?ye(Object(r),!0).forEach((function(n){(0,c.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ye(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var we=function(){var e=(0,d.useRef)(null),n=(0,d.useRef)(null),r=(0,Ze.VI)(null,{},[],{uuid:"VersionControlPage"}),t=(0,s.Z)(r,1)[0],o=(0,d.useState)(null),i=o[0],l=o[1],f=(0,d.useState)(null),h=f[0],v=f[1],j=(0,d.useState)(N[0]),Z=j[0],y=j[1],C=(0,fe.iV)();(0,d.useEffect)((function(){null!==C&&void 0!==C&&C.tab&&y(N.find((function(e){return e.uuid===(null===C||void 0===C?void 0:C.tab)})))}),[C]);var P=w.ZP.git_custom_branches.list({include_remote_branches:1}),k=P.data,O=P.mutate,S=(0,d.useMemo)((function(){return null===k||void 0===k?void 0:k.git_custom_branches}),[k]),I=w.ZP.git_custom_branches.detail("current",{_format:"with_files"}),L=I.data,F=I.mutate,V=(0,d.useMemo)((function(){return(null===L||void 0===L?void 0:L.git_custom_branch)||{}}),[L]),q=(0,d.useMemo)((function(){return(null===V||void 0===V?void 0:V.files)||[]}),[V]),z=w.ZP.git_custom_branches.detail("with_remotes",{_format:"with_remotes"}),Y=z.data,W=z.mutate,Q=(0,d.useMemo)((function(){return null===Y||void 0===Y?void 0:Y.git_custom_branch}),[Y]),K=(0,d.useMemo)((function(){return(null===Q||void 0===Q?void 0:Q.remotes)||[]}),[Q]),ee=(0,d.useState)(null),ne=ee[0],re=ee[1],te=(0,d.useCallback)((function(e){(0,be.t8)(E,e),re(e)}),[]);(0,d.useEffect)((function(){var e=(0,be.U2)(E,null);if(Y&&e){var n=null===K||void 0===K?void 0:K.find((function(n){return n.name===e}));te(n?null===n||void 0===n?void 0:n.name:null)}}),[Y,K,te]);var ie=(0,d.useState)((0,be.U2)(M,"")),le=ie[0],se=ie[1],ue=(0,d.useCallback)((function(e){(0,be.t8)(M,e),se(e)}),[]),ae=(0,d.useMemo)((function(){return(0,ge.Tw)(K.reduce((function(e,n){var r;return e.concat((null===n||void 0===n||null===(r=n.repository_names)||void 0===r?void 0:r.map((function(e){var r;return{name:e,url:null===n||void 0===n||null===(r=n.urls)||void 0===r?void 0:r[0]}})))||[])}),[]),(function(e){return e.name}))}),[K]);(0,d.useEffect)((function(){var e=(0,be.U2)(M,null);if(Y&&e){var n=null===ae||void 0===ae?void 0:ae.find((function(n){return n.name===e}));ue(n?null===n||void 0===n?void 0:n.name:null)}}),[Y,ae,ue]);var de=w.ZP.git_files.detail(h?encodeURIComponent(h):null,{base_branch:i}),me=de.data,ye=de.mutate,we=(0,d.useMemo)((function(){return null===me||void 0===me?void 0:me.git_file}),[me]);(0,d.useEffect)((function(){i&&ye()}),[i,ye]),(0,d.useEffect)((function(){null!==me&&void 0!==me&&me.error&&t({errors:null===me||void 0===me?void 0:me.error,response:me})}),[me,t]);var Ce=(0,d.useMemo)((function(){var e,n,r;return{modifiedFiles:null===V||void 0===V||null===(e=V.modified_files)||void 0===e?void 0:e.reduce((function(e,n){return _e(_e({},e),{},(0,c.Z)({},n,!0))}),{}),stagedFiles:null===V||void 0===V||null===(n=V.staged_files)||void 0===n?void 0:n.reduce((function(e,n){return _e(_e({},e),{},(0,c.Z)({},n,!0))}),{}),untrackedFiles:null===V||void 0===V||null===(r=V.untracked_files)||void 0===r?void 0:r.reduce((function(e,n){return _e(_e({},e),{},(0,c.Z)({},n,!0))}),{})}}),[V]),Pe=Ce.modifiedFiles,ke=void 0===Pe?{}:Pe,Oe=Ce.stagedFiles,Se=void 0===Oe?{}:Oe,Ie=Ce.untrackedFiles,Ee=void 0===Ie?{}:Ie;(0,d.useEffect)((function(){h&&(0,oe.Qr)(ke)&&(0,oe.Qr)(Se)&&(0,oe.Qr)(Ee)&&v(null)}),[ke,h,Se,Ee]);var Me=(0,d.useMemo)((function(){return(null===q||void 0===q?void 0:q.length)>=1?(0,H.jsx)($.Z,{allowEmptyFolders:!0,disableContextMenu:!0,fetchFileTree:F,files:q,isFileDisabled:function(){return!1},onClickFile:function(e){v((function(r){if(!r||r!==e){var t;if(!i)null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus();return e}return null}))},ref:e,renderAfterContent:function(e){var n,r,t=e.children,o=(null===t||void 0===t?void 0:t.length)>=1,i=(0,pe.a9)(e);o&&(i="".concat(i,"/"));var l={};return null!==ke&&void 0!==ke&&ke[i]?(n="M",r="Modified",l.warning=!0):null!==Ee&&void 0!==Ee&&Ee[i]?(n="U",r="Untracked",l.danger=!0):null!==Se&&void 0!==Se&&Se[i]&&(n="S",r="Staged",l.success=!0),o&&!n?null:(0,H.jsx)(p.Z,{mx:1,children:(0,H.jsx)(_.Z,{appearBefore:!0,label:r,widthFitContent:!0,children:(0,H.jsx)(g.ZP,_e(_e({},l),{},{monospace:!0,rightAligned:!0,small:!0,children:n}))})})},useRootFolder:!0}):(0,H.jsx)(p.Z,{p:R.cd,children:(0,H.jsx)(g.ZP,{monospace:!0,muted:!0,children:"No files modified"})})}),[i,F,e,q,ke,n,v,Se,Ee]),De=(0,d.useMemo)((function(){return!me||!we||h&&(null===we||void 0===we?void 0:we.filename)!==h}),[me,we,h]),Ae=(0,d.useMemo)((function(){if(!h)return null;var e=we||{},n=e.content,r=e.content_from_base;return(0,H.jsxs)(ve,{children:[!i&&(0,H.jsx)(p.Z,{p:R.cd,children:(0,H.jsx)(g.ZP,{muted:!0,children:"Please select a base branch to see the file diffs."})}),(null===we||void 0===we?void 0:we.error)&&(0,H.jsx)(p.Z,{p:R.cd,children:(0,H.jsx)(g.ZP,{danger:!0,monospace:!0,preWrap:!0,children:null===we||void 0===we?void 0:we.error})}),i&&!(null!==we&&void 0!==we&&we.error)&&(0,H.jsxs)(H.Fragment,{children:[De&&(0,H.jsx)(p.Z,{p:R.cd,children:(0,H.jsx)(x.Z,{inverted:!0})}),!De&&(0,H.jsx)(a(),{compareMethod:u.DiffMethod.WORDS,newValue:n||"",oldValue:r||"",renderContent:function(e){return(0,H.jsx)(g.ZP,{monospace:!0,children:e})},splitView:!0,styles:je,useDarkTheme:!0})]})]})}),[i,we,De,h]),Te=(0,d.useMemo)((function(){return L&&null!==V&&void 0!==V&&V.name?N:N.slice(0,1)}),[V,L]),Be=(0,d.useMemo)((function(){return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)("div",{style:{marginBottom:.5*R.iI,marginTop:.5*R.iI},children:(0,H.jsx)(U.Z,{compact:!0,onClickTab:function(e){var n=e.uuid;(0,xe.u7)({tab:n})},selectedTabUUID:null===Z||void 0===Z?void 0:Z.uuid,tabs:Te})}),(0,H.jsx)(m.Z,{light:!0})]})}),[Z,Te]),Ne=(0,d.useMemo)((function(){return(0,H.jsx)(he,{actionRemoteName:ne,branch:V,fetchBranch:function(){F(),W()},loading:!Y,remotes:K,setActionRemoteName:te,showError:t})}),[ne,V,Y,F,W,K,te,t]),Re=(0,d.useMemo)((function(){return(0,H.jsx)(G,{actionRemoteName:ne,branch:V,branches:S,fetchBranch:F,fetchBranches:O,remotes:K,setActionRemoteName:te,showError:t})}),[ne,V,S,F,O,K,te,t]),Le=(0,d.useMemo)((function(){return(0,H.jsx)(ce,{branch:V,fetchBranch:F,modifiedFiles:ke,setSelectedFilePath:v,showError:t,stagedFiles:Se,untrackedFiles:Ee})}),[V,F,ke,v,t,Se,Ee]),Fe=(0,d.useMemo)((function(){return(0,H.jsx)(X,{actionRemoteName:ne,branch:V,branches:S,fetchBranch:F,loading:!Y,modifiedFiles:ke,remotes:K,repositories:ae,repositoryName:le,setActionRemoteName:te,setRepositoryName:ue,showError:t,stagedFiles:Se})}),[ne,V,S,Y,F,ke,K,ae,le,te,ue,t,Se]);return(0,H.jsx)(J.Z,{after:Ae,afterHidden:!h,afterWidth:40*R.iI,before:(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(p.Z,{p:1,children:(0,H.jsx)(b.Z,{compact:!0,label:"Base branch",onChange:function(e){return l(e.target.value)},ref:n,small:!0,value:i||"",children:null===S||void 0===S?void 0:S.map((function(e){var n=e.name;return(0,H.jsx)("option",{value:n,children:n},n)}))})}),Me]}),mainContainerHeader:Be,title:"Version control",uuid:"Version control/index",children:(0,H.jsxs)(p.Z,{p:R.cd,children:[!L&&(0,H.jsx)(x.Z,{inverted:!0}),L&&(0,H.jsxs)(H.Fragment,{children:[B.uuid===(null===Z||void 0===Z?void 0:Z.uuid)&&Ne,D.uuid===(null===Z||void 0===Z?void 0:Z.uuid)&&Re,A.uuid===(null===Z||void 0===Z?void 0:Z.uuid)&&Le,T.uuid===(null===Z||void 0===Z?void 0:Z.uuid)&&Fe]})]})})};function Ce(){return(0,H.jsx)(we,{})}Ce.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)})));var Pe=(0,l.Z)(Ce)},33766:function(e,n,r){"use strict";r.d(n,{O2:function(){return d},g_:function(){return h},u7:function(){return f}});var t=r(75582),o=r(82394),i=r(34376),l=r.n(i),c=r(59e3),s=r(24224);function u(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 a(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?u(Object(r),!0).forEach((function(n){(0,o.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var d="_offset";function f(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.preserveParams,o=n.pushHistory,i=n.replaceParams,s=(0,c.iV)(),u={};r&&r.forEach((function(e){s[e]&&(u[e]=s[e])}));var d,f=i?u:s;d=window.location.pathname;var h=o?l().push:l().replace,m=a(a({},f),e);Object.entries(e).forEach((function(e){var n=(0,t.Z)(e,2),r=n[0],o=n[1];"undefined"!==typeof o&&null!==o||delete m[r]}));var v=(0,c.uM)(m);v.length>=1&&(v="?".concat(v));var j="".concat(d.split("?")[0]).concat(v);return h(l().router.pathname,j,{shallow:!0})}function h(e,n,r){var o=r.addingMultipleValues,i=r.isList,l=r.itemsPerPage,c=r.pushHistory,u=void 0!==c&&c,h=r.resetLimitParams,m=a({},e);o?Object.entries(n).forEach((function(e){var n=(0,t.Z)(e,2),r=n[0],o=n[1];if(Array.isArray(o)){var i="".concat(r,"[]");m[i]=o.map(String)}})):i?Object.entries(n).forEach((function(e){var n=(0,t.Z)(e,2),r=n[0],o=n[1],i=String(o),l="".concat(r,"[]"),c=m[l];c&&Array.isArray(c)?(c=c.map(String)).includes(i)?m[l]=(0,s.Od)(c,(function(e){return e===i})):m[l]=c.concat(i):m[l]=[i]})):m=a(a({},m),n),h&&(m._limit=l||20,m[d]=0),f(m,{pushHistory:u})}},75302:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/version-control",function(){return r(92589)}])}},function(e){e.O(0,[844,9902,7011,7768,1424,1005,7815,3654,6299,9774,2888,179],(function(){return n=75302,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|