mage-ai 0.9.75__py3-none-any.whl → 0.9.76__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of mage-ai might be problematic. Click here for more details.
- mage_ai/api/policies/PipelineSchedulePolicy.py +1 -0
- mage_ai/api/presenters/PipelineSchedulePresenter.py +11 -2
- mage_ai/api/resources/PipelineScheduleResource.py +11 -3
- mage_ai/api/resources/PipelineTriggerResource.py +3 -1
- mage_ai/api/resources/SessionResource.py +2 -2
- mage_ai/api/resources/SyncResource.py +1 -1
- mage_ai/api/resources/UserResource.py +1 -1
- mage_ai/data_integrations/destinations/constants.py +2 -0
- mage_ai/data_integrations/sources/constants.py +2 -0
- mage_ai/data_preparation/models/block/__init__.py +0 -1
- mage_ai/data_preparation/models/block/dbt/dbt_adapter.py +20 -8
- mage_ai/data_preparation/models/block/dynamic/constants.py +0 -1
- mage_ai/data_preparation/models/block/dynamic/counter.py +1 -3
- mage_ai/data_preparation/models/block/r/__init__.py +16 -5
- mage_ai/data_preparation/models/block/sql/__init__.py +2 -0
- mage_ai/data_preparation/models/block/sql/mssql.py +8 -0
- mage_ai/data_preparation/models/block/sql/utils/shared.py +6 -2
- mage_ai/data_preparation/models/constants.py +1 -0
- mage_ai/data_preparation/models/pipeline.py +1 -1
- mage_ai/data_preparation/templates/constants.py +7 -0
- mage_ai/data_preparation/templates/data_loaders/airtable.py +28 -0
- mage_ai/data_preparation/templates/repo/io_config.yaml +2 -0
- mage_ai/io/airtable.py +104 -0
- mage_ai/io/base.py +1 -0
- mage_ai/io/bigquery.py +36 -0
- mage_ai/io/config.py +5 -0
- mage_ai/io/mssql.py +5 -0
- mage_ai/io/mysql.py +6 -1
- mage_ai/io/redshift.py +13 -0
- mage_ai/io/sql.py +1 -0
- mage_ai/orchestration/db/__init__.py +20 -0
- mage_ai/orchestration/db/models/schedules.py +2 -5
- mage_ai/orchestration/db/models/secrets.py +11 -1
- mage_ai/orchestration/metrics/pipeline_run.py +1 -1
- mage_ai/orchestration/pipeline_scheduler_original.py +4 -5
- mage_ai/orchestration/pipeline_scheduler_project_platform.py +4 -5
- mage_ai/orchestration/utils/distributed_lock.py +8 -1
- mage_ai/server/api/triggers.py +9 -0
- mage_ai/server/constants.py +1 -1
- mage_ai/server/frontend_dist/404.html +2 -2
- mage_ai/server/frontend_dist/_next/static/chunks/449-5e2253c6aba42557.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-782dd4a6b13e1c42.js +2 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users-5db54821a3059c69.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/overview-f65416f6dbe30ad3.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-03d9bca3bc5e6088.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-d25d07db166cbb04.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users-fa61dc6c1370e6a5.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{webpack-0bc44da590c7cf85.js → webpack-b9a067f3bd0a3a05.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/{38-PtskJFUTYUpRhT1qF_ → qR0jauUABqPaFMjUsYeoG}/_buildManifest.js +1 -1
- mage_ai/server/frontend_dist/block-layout.html +2 -2
- mage_ai/server/frontend_dist/compute.html +2 -2
- mage_ai/server/frontend_dist/files.html +2 -2
- mage_ai/server/frontend_dist/global-data-products/[...slug].html +2 -2
- mage_ai/server/frontend_dist/global-data-products.html +2 -2
- mage_ai/server/frontend_dist/global-hooks/[...slug].html +2 -2
- mage_ai/server/frontend_dist/global-hooks.html +2 -2
- mage_ai/server/frontend_dist/index.html +2 -2
- mage_ai/server/frontend_dist/manage/files.html +2 -2
- mage_ai/server/frontend_dist/manage/overview.html +2 -2
- mage_ai/server/frontend_dist/manage/pipeline-runs.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/oauth.html +3 -3
- 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]/dashboard.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/platform/global-hooks/[...slug].html +2 -2
- mage_ai/server/frontend_dist/platform/global-hooks.html +2 -2
- mage_ai/server/frontend_dist/settings/account/profile.html +2 -2
- mage_ai/server/frontend_dist/settings/platform/preferences.html +2 -2
- mage_ai/server/frontend_dist/settings/platform/settings.html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/permissions/[...slug].html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/permissions.html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/preferences.html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/roles/[...slug].html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/roles.html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/sync-data.html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/users/[...slug].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 +5 -5
- 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/v2/canvas.html +2 -2
- mage_ai/server/frontend_dist/v2.html +2 -2
- mage_ai/server/frontend_dist/version-control.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/404.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/449-5e2253c6aba42557.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/_app-ee5e328aaf51c698.js +2 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users-5db54821a3059c69.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/overview-f65416f6dbe30ad3.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-03d9bca3bc5e6088.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-d25d07db166cbb04.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/users-fa61dc6c1370e6a5.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{webpack-12ad70eb5c31aa92.js → webpack-5f4be622608d9267.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/{dxnSzgIvSG4Ke5LM-tPQX → iCySon3_GCldnbC5U7C-s}/_buildManifest.js +1 -1
- mage_ai/server/frontend_dist_base_path_template/block-layout.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/compute.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/files.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/global-data-products/[...slug].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/global-data-products.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/global-hooks/[...slug].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/global-hooks.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/index.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/manage/files.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/manage/overview.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/manage/pipeline-runs.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/manage/settings.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/manage/users/[user].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/manage/users/new.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/manage/users.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/manage.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/oauth.html +3 -3
- mage_ai/server/frontend_dist_base_path_template/overview.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipeline-runs.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills/[...slug].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/dashboard.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/edit.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/logs.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runs.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runtime.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs/[run].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/settings.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/syncs.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers/[...slug].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/platform/global-hooks/[...slug].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/platform/global-hooks.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/account/profile.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/platform/preferences.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/platform/settings.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions/[...slug].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/preferences.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles/[...slug].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/sync-data.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/users/[...slug].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/users.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/settings.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/sign-in.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/templates/[...slug].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/templates.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/terminal.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/test.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/triggers.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/v2/canvas.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/v2.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/version-control.html +2 -2
- mage_ai/settings/server.py +2 -0
- mage_ai/tests/data_preparation/models/block/dynamic/test_counter.py +1 -3
- mage_ai/usage_statistics/logger.py +99 -15
- {mage_ai-0.9.75.dist-info → mage_ai-0.9.76.dist-info}/METADATA +119 -103
- {mage_ai-0.9.75.dist-info → mage_ai-0.9.76.dist-info}/RECORD +188 -186
- {mage_ai-0.9.75.dist-info → mage_ai-0.9.76.dist-info}/WHEEL +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/449-f689774546860ca4.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-13bf3b7dcef50c29.js +0 -2
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users-b99379d0aa6a8c25.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/overview-e51cd04bd4d1fffe.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-0abf8a1b7243f93b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-38187954b6ec4b40.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users-3ee783f5139c76a1.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/449-f689774546860ca4.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/_app-0392ef723ea2c6f8.js +0 -2
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users-b99379d0aa6a8c25.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/overview-e51cd04bd4d1fffe.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-0abf8a1b7243f93b.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-38187954b6ec4b40.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/users-3ee783f5139c76a1.js +0 -1
- /mage_ai/server/frontend_dist/_next/static/chunks/pages/{_app-13bf3b7dcef50c29.js.LICENSE.txt → _app-782dd4a6b13e1c42.js.LICENSE.txt} +0 -0
- /mage_ai/server/frontend_dist/_next/static/{38-PtskJFUTYUpRhT1qF_ → qR0jauUABqPaFMjUsYeoG}/_ssgManifest.js +0 -0
- /mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{_app-0392ef723ea2c6f8.js.LICENSE.txt → _app-ee5e328aaf51c698.js.LICENSE.txt} +0 -0
- /mage_ai/server/frontend_dist_base_path_template/_next/static/{dxnSzgIvSG4Ke5LM-tPQX → iCySon3_GCldnbC5U7C-s}/_ssgManifest.js +0 -0
- {mage_ai-0.9.75.dist-info → mage_ai-0.9.76.dist-info}/entry_points.txt +0 -0
- {mage_ai-0.9.75.dist-info → mage_ai-0.9.76.dist-info/licenses}/LICENSE +0 -0
- {mage_ai-0.9.75.dist-info → mage_ai-0.9.76.dist-info}/top_level.txt +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[449],{54750:function(e,n,t){var r=t(82394),i=t(12691),l=t.n(i),o=t(55485),a=t(48670),c=t(44085),s=t(38276),u=t(4190),d=t(30160),h=t(72473),p=t(70515),f=t(28598),v=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 x(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,r.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}n.Z=function(e){var n=e.breadcrumbs,t=e.noMarginLeft,r=n.length,i=[];return n.forEach((function(e,n){var j=e.bold,m=e.danger,g=e.label,b=e.linkProps,y=e.loading,Z=e.monospace,C=void 0===Z||Z,M=e.onClick,F=e.options,O=g();r>=2&&n>=1&&i.push((0,f.jsx)(s.Z,{mx:1,children:(0,f.jsx)(h.ChevronRight,{muted:!0})},"divider-".concat(O)));var P=(0,f.jsx)(d.ZP,{bold:j,danger:m,default:!j,monospace:C,noWrapping:!0,children:O});if((null==F?void 0:F.length)>=1){var H,w,_=null==F?void 0:F.find((function(e){return!!e.selected}));if(_)(H=((null==_||null===(w=_.uuid)||void 0===w?void 0:w.length)||0)*p.ro)&&(H+=3*p.iI,y&&(H+=2*p.iI));P=(0,f.jsx)(o.ZP,{alignItems:"center",children:(0,f.jsx)(c.Z,{afterIcon:y?(0,f.jsx)(u.Z,{inverted:!0,small:!0}):null,danger:m,defaultTextColor:!j,maxWidth:H||null,monospace:C,noBackground:!0,noBorder:!0,onChange:function(e){var n,t=e.target.value,r=null==F?void 0:F.find((function(e){return e.uuid===t}));r&&null!=r&&r.onClick&&(null==r||null===(n=r.onClick)||void 0===n||n.call(r,t))},paddingHorizontal:0,paddingVertical:0,value:(null==_?void 0:_.uuid)||"",children:null==F?void 0:F.map((function(e){var n=e.label,t=e.selected,r=e.uuid,i=n?null==n?void 0:n():r;return(0,f.jsx)("option",{value:r,children:t?r:i},r)}))})})}var k=(0,f.jsx)(s.Z,{ml:t||0!==n?0:2,children:P},"breadcrumb-".concat(O));b?k=(0,v.createElement)(l(),x(x({},b),{},{key:"breadcrumb-link-".concat(O),passHref:!0}),(0,f.jsx)(a.Z,{block:!0,default:!j,noOutline:!0,sameColorAsText:j,children:k})):M&&(k=(0,f.jsx)(a.Z,{block:!0,default:!j,noOutline:!0,onClick:M,preventDefault:!0,sameColorAsText:j,children:k})),i.push(k)})),(0,f.jsx)(o.ZP,{alignItems:"center",children:i})}},92272:function(e,n,t){t.d(n,{Z:function(){return qe}});var r=t(21831),i=t(82394),l=t(75582),o=t(12691),a=t.n(o),c=t(9518),s=t(82684),u=t(34376),d=t(40761),h=t(54750),p=t(71180),f=t(39867),v=t(50724),j=t(58036),x=t(97618),m=t(55485),g=t(70374),b=t(56085),y=t(83455),Z=t(70652),C=t(44085),M=t(38276),F=t(4190),O=t(28026),P=t(30160),H=t(35576),w=t(17488),_=t(69650),k=t(35686),z=t(72473),D=t(44897),I=t(42631),S=t(31353),E=t(47041),A=t(70515),T=c.default.div.withConfig({displayName:"GitActionsstyle__HeaderStyle",componentId:"sc-ynrhio-0"})(["border-bottom:1px solid #1B1C20;height:","px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;"],S.Mz),L=c.default.div.withConfig({displayName:"GitActionsstyle__TerminalStyle",componentId:"sc-ynrhio-1"})(["height:calc(75vh - ","px);position:relative;"],S.Mz),N=c.default.div.withConfig({displayName:"GitActionsstyle__PanelStyle",componentId:"sc-ynrhio-2"})(["height:75vh;min-height:300px;width:75vw;backgroundColor:#232429;border-radius:","px;",""],I.n_,(function(e){return"\n background-color: ".concat((e.theme.background||D.Z.background).panel,";\n ")})),U=c.default.div.withConfig({displayName:"GitActionsstyle__OutputStyle",componentId:"sc-ynrhio-3"})([""," padding:","px;height:calc(75vh - ","px);overflow-y:auto;"],E.w5,2*A.iI,S.Mz),B=t(4383),R=t(72619),W=t(86735),G=t(50178),q=t(28598);function Y(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function J(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Y(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Y(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var V={clone:"Clone repository",new_branch:"Create new branch",commit:"Commit & push",pull:"Pull",reset_hard:"Hard reset"};var Q=function(e){var n,t=e.branch,r=(e.fetchBranch,(0,u.useRouter)()),i=(0,s.useState)(),o=i[0],a=i[1],c=(0,s.useState)(),d=c[0],h=c[1],f=(0,s.useState)(),v=f[0],j=f[1],x=(0,s.useState)(),g=x[0],D=x[1],I=(0,s.useState)(),S=I[0],E=I[1],A=(0,s.useState)(),Y=A[0],Q=A[1],$=k.ZP.git_branches.list({include_remote_branches:1}),X=$.data,K=$.isValidating,ee=$.mutate,ne=(0,s.useMemo)((function(){return null==X?void 0:X.git_branches}),[X]),te=k.ZP.syncs.list().data,re=(0,s.useMemo)((function(){var e;if(te)return null===(e=te.syncs)||void 0===e?void 0:e[0]}),[te]),ie=(0,y.Db)(k.ZP.git_branches.useCreate(),{onSuccess:function(e){return(0,R.wD)(e,{callback:function(){ee(),window.location.reload()},onErrorCallback:function(e){var n=e.error.exception;E(n)}})}}),le=(0,l.Z)(ie,2),oe=le[0],ae=le[1].isLoading,ce=(0,y.Db)((function(){return k.ZP.git_branches.useUpdate(encodeURIComponent(t))({git_branch:{action_type:"status"}})}),{onSuccess:function(e){return(0,R.wD)(e,{onErrorCallback:function(e){var n=e.error.exception;E(n)}})}}),se=(0,l.Z)(ce,1)[0],ue=(0,y.Db)(k.ZP.git_branches.useUpdate(encodeURIComponent(t)),{onSuccess:function(e){return(0,R.wD)(e,{callback:function(){E(null),D("DONE")},onErrorCallback:function(e){var n=e.error.exception;E(n)}})}}),de=(0,l.Z)(ue,2),he=de[0],pe=de[1].isLoading,fe=(0,y.Db)(k.ZP.git_branches.useUpdate(encodeURIComponent(t)),{onSuccess:function(e){return(0,R.wD)(e,{callback:function(){E(null),window.location.reload()},onErrorCallback:function(e){var n=e.error.exception;E(n)}})}}),ve=(0,l.Z)(fe,2),je=ve[0],xe=ve[1].isLoading,me=(0,s.useState)(),ge=me[0],be=me[1],ye=(0,s.useState)([]),Ze=ye[0],Ce=ye[1],Me=(0,s.useState)([]),Fe=Me[0],Oe=Me[1],Pe=(0,s.useCallback)((function(){se().then((function(e){var n=e.data,t=null==n?void 0:n.git_branch,r=null==t?void 0:t.status,i=null==t?void 0:t.modified_files,l=null==t?void 0:t.untracked_files;be(r),Ce(l),Oe(i)}))}),[se]),He=(0,s.useMemo)((function(){return ae||pe||xe}),[ae,pe,xe]);(0,s.useEffect)((function(){K||Pe()}),[v,K,Pe]);var we=(0,s.useMemo)((function(){return(0,G.PR)(null==r?void 0:r.basePath)||{}}),[null==r?void 0:r.basePath]),_e=(0,s.useMemo)((function(){var e={term_name:null!=we&&we.id?"git_".concat(null==we?void 0:we.id):"git"};return null!=re&&re.repo_path&&(e.cwd=null==re?void 0:re.repo_path),e}),[null==re?void 0:re.repo_path,we]),ke=(0,b.ZP)((0,B.Ib)("terminal"),{shouldReconnect:function(){return!0}},"cwd"in _e),ze=ke.lastMessage,De=ke.sendMessage,Ie=(0,s.useCallback)((function(e){return(0,q.jsx)(Z.Z,{checked:((null==o?void 0:o.files)||[]).includes(e),label:(0,q.jsx)(P.ZP,{small:!0,children:e}),onClick:function(){a((function(n){var t=(null==n?void 0:n.files)||[];return t=t.includes(e)?(0,W.Od)(t,(function(n){return n===e})):[e].concat(t),J(J({},n),{},{files:t})}))},small:!0},e)}),[o]),Se=(0,s.useMemo)((function(){return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(p.ZP,{onClick:function(){return a((function(e){return J(J({},e),{},{files:Fe.concat(Ze)})}))},children:"Include all changes"}),Fe&&Fe.length>0&&(0,q.jsxs)(M.Z,{mb:1,children:[(0,q.jsx)(M.Z,{my:1,children:(0,q.jsx)(P.ZP,{children:"Modified files"})}),Fe.map(Ie)]}),Ze&&Ze.length>0&&(0,q.jsxs)(M.Z,{mb:1,children:[(0,q.jsx)(M.Z,{my:1,children:(0,q.jsx)(P.ZP,{children:"Untracked files"})}),Ze.map(Ie)]})]})}),[Ie,Fe,Ze]),Ee=(0,s.useMemo)((function(){return(0,q.jsx)(M.Z,{p:2,children:He?(0,q.jsx)(F.Z,{color:"white"}):(0,q.jsxs)(q.Fragment,{children:["commit"===v&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(H.Z,{compact:!0,fullWidth:!0,label:"Commit message",monospace:!0,onChange:function(e){return a((function(n){return J(J({},n),{},{message:e.target.value})}))},required:!0,value:null==o?void 0:o.message}),(0,q.jsx)(M.Z,{mt:1}),(0,q.jsxs)(m.ZP,{children:[(0,q.jsx)(p.ZP,{borderLess:!0,onClick:function(){he({git_branch:J({action_type:"commit"},o)}).then((function(){Pe(),a(null)}))},success:!0,children:"Commit"}),(0,q.jsx)(M.Z,{mr:1}),(0,q.jsx)(p.ZP,{borderLess:!0,onClick:function(){he({git_branch:{action_type:"push"}})},primary:!0,children:"Push"})]})]}),"new_branch"===v&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(w.Z,{compact:!0,fullWidth:!0,label:"Branch name",monospace:!0,onChange:function(e){return a({name:e.target.value})},value:null==o?void 0:o.name}),(0,q.jsx)(M.Z,{mt:1}),(0,q.jsx)(p.ZP,{borderLess:!0,onClick:function(){oe({git_branch:o})},primary:!0,children:"Create"})]}),"clone"===v&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(P.ZP,{children:["Clone from ",(0,q.jsx)(P.ZP,{default:!0,inline:!0,children:null==re?void 0:re.remote_repo_link})," to ",(0,q.jsx)(P.ZP,{default:!0,inline:!0,children:null==re?void 0:re.repo_path}),". This ",(0,q.jsx)(P.ZP,{danger:!0,inline:!0,children:"will overwrite"})," any existing data in the local repository."]}),(0,q.jsx)(M.Z,{mt:1}),(0,q.jsx)(p.ZP,{borderLess:!0,onClick:function(){je({git_branch:{action_type:"clone"}})},primary:!0,children:"Clone"})]}),"pull"===v&&(0,q.jsx)(p.ZP,{borderLess:!0,onClick:function(){je({git_branch:{action_type:"pull"}})},primary:!0,children:"Pull"}),"reset_hard"===v&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(M.Z,{mb:1,children:(0,q.jsx)(P.ZP,{children:d||"This will reset your local branch to match the remote branch."})}),d?(0,q.jsx)(p.ZP,{borderLess:!0,onClick:function(){h(null),je({git_branch:{action_type:"reset"}})},warning:!0,children:"Confirm"}):(0,q.jsx)(p.ZP,{borderLess:!0,onClick:function(){return h("Are you sure you want to reset your branch? Your local changes may be erased.")},primary:!0,children:"Reset branch"})]}),(0,q.jsx)(M.Z,{mt:1,children:!He&&(0,q.jsxs)(q.Fragment,{children:[!S&&g&&(0,q.jsx)(P.ZP,{children:g}),S&&(0,q.jsx)(P.ZP,{preWrap:!0,danger:!0,children:S})]})})]})})}),[He,v,S,re,g,o,d,ge]),Ae=(0,s.useMemo)((function(){return(0,q.jsx)(O.Z,{lastMessage:ze,sendMessage:De})}),[ze,De]);return(0,q.jsxs)(N,{children:[(0,q.jsxs)(T,{children:[(0,q.jsx)(M.Z,{m:2,children:(0,q.jsxs)(m.ZP,{children:[(0,q.jsx)(C.Z,{beforeIcon:(0,q.jsx)(z.Branch,{}),compact:!0,onChange:function(e){e.preventDefault(),oe({git_branch:{name:e.target.value,remote:"mage-repo"}})},placeholder:"Select a branch",value:t,children:null==ne?void 0:ne.map((function(e){var n=e.name;return(0,q.jsx)("option",{value:n,children:n},n)}))},"select_branch"),(0,q.jsx)(M.Z,{ml:2}),(0,q.jsxs)(C.Z,{compact:!0,onChange:function(e){e.preventDefault(),j(e.target.value),Q(!1),D(null),a(null)},value:v,children:[(0,q.jsx)("option",{value:"",children:"Select an action"}),Object.entries(V).map((function(e){var n=(0,l.Z)(e,2),t=n[0],r=n[1];return(0,q.jsx)("option",{value:t,children:r},t)}))]},"select_git_action")]})}),(0,q.jsx)(M.Z,{m:2,children:(0,q.jsxs)(m.ZP,{alignItems:"center",children:[(0,q.jsx)(P.ZP,{children:"UI"}),(0,q.jsx)(M.Z,{ml:1}),(0,q.jsx)(_.Z,{checked:!!Y,monotone:!0,onCheck:function(){return Q((function(e){return!e}))}}),(0,q.jsx)(M.Z,{ml:1}),(0,q.jsx)(P.ZP,{children:"Terminal"})]})})]}),(0,q.jsxs)(m.ZP,{children:[(0,q.jsx)("div",{style:{width:"50%"},children:(0,q.jsx)(U,{children:"commit"===v?Se:(0,q.jsx)(q.Fragment,{children:null==ge||null===(n=ge.split("\\n"))||void 0===n?void 0:n.map((function(e){return(0,q.jsx)(P.ZP,{monospace:!0,preWrap:!0,small:!0,children:e},e)}))})})}),(0,q.jsx)("div",{style:{width:"50%"},children:Y?(0,q.jsx)(L,{children:Ae}):Ee})]})]})},$=t(65186),X=t(68562),K=t(48670),ee=t(63637),ne=t(89515),te=t(82359),re=t(26304),ie="12px 20px",le="1px",oe=(0,c.default)(p.ZP).withConfig({displayName:"indexstyle__ButtonStyle",componentId:"sc-hssntx-0"})(["",";"],(function(e){return e.active&&"\n background-color: ".concat((e.theme.background||D.Z.background).dashboard,";\n ")})),ae=c.default.div.withConfig({displayName:"indexstyle__DropdownContainerStyle",componentId:"sc-hssntx-1"})(["position:absolute;top:",";right:0;width:","px;display:flex;flex-direction:column;gap:",";overflow:hidden;background-color:",";border-radius:","px;border:1px solid ",";"],(function(e){return e.top||0}),45*A.iI,le,(function(e){return(e.theme.borders||D.Z.borders).darkLight}),I.n_,(function(e){return(e.theme.borders||D.Z.borders).darkLight})),ce=c.default.div.withConfig({displayName:"indexstyle__DropdownHeaderStyle",componentId:"sc-hssntx-2"})(["padding:",";background-color:",";"],ie,(function(e){return(e.theme.background||D.Z.background).panel})),se=c.default.div.withConfig({displayName:"indexstyle__TimeListContainerStyle",componentId:"sc-hssntx-3"})(["height:","px;display:flex;gap:",";"],20*A.iI,le),ue=c.default.div.withConfig({displayName:"indexstyle__TimeColumnStyle",componentId:"sc-hssntx-4"})(["display:flex;flex-direction:column;align-items:center;flex:1;gap:",";"],le),de=c.default.div.withConfig({displayName:"indexstyle__DropdownCellStyle",componentId:"sc-hssntx-5"})(["width:100%;padding:",";display:flex;flex-direction:",";flex-grow:",";justify-content:center;align-items:center;background-color:",";"],ie,(function(e){return e.flexDirection||"unset"}),(function(e){return e.flexGrow||"unset"}),(function(e){return(e.theme.background||D.Z.background).dashboard})),he=c.default.div.withConfig({displayName:"indexstyle__ToggleGroupStyle",componentId:"sc-hssntx-6"})(["display:flex;flex-direction:column;"]),pe=(0,c.default)(de).withConfig({displayName:"indexstyle__ToggleDropdownCellStyle",componentId:"sc-hssntx-7"})(["justify-content:flex-start;gap:12px;padding-right:","px;"],1.25*A.iI),fe=["active","mountedCallback","time","timeZone"];function ve(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 je(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ve(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ve(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function xe(e){var n=e.active,t=e.mountedCallback,r=e.time,i=e.timeZone,l=(0,re.Z)(e,fe),o=(0,s.useRef)(null);return(0,s.useEffect)((function(){null!=o&&o.current&&t(o.current.offsetHeight)}),[t]),(0,q.jsx)(oe,je(je({},l),{},{active:n,borderLess:!0,borderRadius:"".concat(I.BG,"px"),compact:!0,highlightOnHoverAlt:!0,ref:o,transparent:!0,children:(0,q.jsx)(P.ZP,{inline:!0,monospace:!0,noWrapping:!0,small:!0,children:"".concat(r," ").concat(i)})}))}var me=(0,s.memo)(xe),ge=t(12468),be=t(63055),ye=t(72191),Ze=t(70320),Ce=t(79633),Me=t(3917),Fe=t(78419),Oe=t(53808);var Pe=t(23780);function He(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 we(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?He(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):He(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var _e=[Me.Oh.UTC,Me.Oh.LOCAL];var ke=function(e){var n=e.disabled,t=e.disableTimezoneToggle,r=e.projectName,o=(0,s.useState)((0,Ze.qB)()),a=o[0],c=o[1],u=(0,s.useState)((0,Oe.U2)(Fe.kL,!1)),d=u[0],h=u[1],p=(0,s.useState)(!1),f=p[0],j=p[1],x=(0,s.useState)((0,Me.e)({includeSeconds:!0,timeZones:_e})),m=x[0],g=x[1],b=(0,s.useState)(0),Z=b[0],C=b[1],M=a?Me.Oh.LOCAL:Me.Oh.UTC,F=window.innerWidth<be.nc,O=(0,Pe.VI)(null,{},[],{uuid:"components/ServerTimeDropdown"}),H=(0,l.Z)(O,1)[0],w=(0,y.Db)(k.ZP.projects.useUpdate(r),{onSuccess:function(e){return(0,R.wD)(e,{onErrorCallback:function(e,n){return H({errors:n,response:e})}})}}),z=(0,l.Z)(w,1)[0],D=(0,s.useCallback)((function(){j((function(e){return!e}))}),[]),I=(0,s.useCallback)((function(e){C(e)}),[]),S=(0,s.useCallback)((function(){var e=(0,Me.e)({includeSeconds:d,timeZones:_e});g((function(n){return n.size===e.size&&n.get(Me.Oh.UTC)===e.get(Me.Oh.UTC)?n:e}))}),[d]),E=[{checked:a,disabled:t,label:t?"Display local timezone (must be changed in platform preferences)":"Display local timezone (requires refresh)",onCheck:function(){var e=!a;c((0,Ze.hY)(e)),z({project:{features:(0,i.Z)({},te.d.LOCAL_TIMEZONE,e)}})},uuid:te.d.LOCAL_TIMEZONE},{checked:d,label:"Include seconds in current time",onCheck:function(){var e;h((e=!d,!!(0,Oe.uN)(Fe.kL,e)))},uuid:"current_time_seconds"}];return(0,s.useEffect)((function(){var e=setInterval((function(){S()}),1e3);return function(){return clearInterval(e)}}),[S]),(0,s.useEffect)((function(){S()}),[d,S]),m?(0,q.jsx)(v.Z,{onClickOutside:function(){return j(!1)},open:!0,children:(0,q.jsxs)("div",{style:{position:"relative"},children:[(0,q.jsx)(me,{active:f,disabled:F||n,mountedCallback:I,onClick:D,time:m.get(M),timeZone:(0,Me.WT)(M)}),!F&&f&&(0,q.jsxs)(ae,{top:Z,children:[(0,q.jsx)(ce,{children:(0,q.jsx)(P.ZP,{bold:!0,muted:!0,uppercase:!0,children:"Current Time"})}),(0,q.jsx)(se,{children:_e.map((function(e){return(0,q.jsxs)(ue,{children:[(0,q.jsx)(de,{children:(0,q.jsx)(P.ZP,{bold:!0,center:!0,muted:!0,uppercase:!0,children:"".concat(e).concat(e===Me.Oh.LOCAL?" - ".concat((0,Me.WT)(e)):"")})}),(0,q.jsxs)(de,{flexDirection:"column",flexGrow:3,children:[(0,q.jsx)(P.ZP,{bold:!0,center:!0,color:Ce.J$,largeLg:!0,children:m.get(e)}),(0,q.jsx)(P.ZP,{center:!0,muted:!0,small:!0,children:e===Me.Oh.UTC?"Universal Time":Me.mi[e]})]})]},e)}))}),(0,q.jsx)(he,{children:E.map((function(e){return(0,q.jsxs)(pe,{children:[(0,q.jsx)(_.Z,{checked:e.checked,compact:!0,disabled:e.disabled,onCheck:e.onCheck,purpleBackground:!e.disabled}),(0,q.jsx)(P.ZP,{children:e.label}),e.uuid===te.d.LOCAL_TIMEZONE&&(0,q.jsx)(ge.Z,we(we({},Ze.EB),{},{appearAbove:!0,appearBefore:!0,size:ye.bL}))]},e.label)}))})]})]})}):null},ze=t(59457),De=t(77417),Ie=t(42122);var Se=function(e){var n,t=e||{operation:null,pageType:null,pageUUID:null,resource:null,resourceID:null,resourceParent:null,resourceParentID:null,useProjectData:null},r=t.operation,i=t.pageType,l=t.pageUUID,o=t.resource,a=t.resourceID,c=t.resourceParent,d=t.resourceParentID,h=t.useProjectData,p=(0,De.Z)({pauseFetch:!!h}),f=(0,s.useMemo)((function(){return null!=h?h:p}),[h,p])||{featureEnabled:null,featureUUIDs:null,project:null},v=f.featureEnabled,j=f.featureUUIDs,x=f.project,m=(0,s.useMemo)((function(){return v&&j&&x&&(null==v?void 0:v(null==j?void 0:j.CUSTOM_DESIGN))}),[v,j,x]),g=(0,u.useRouter)(),b=null==g?void 0:g.asPath,y=null==g||null===(n=g.pathname)||void 0===n?void 0:n.replace(/^\/{1}/i,""),Z=null==g?void 0:g.query,C=(0,ze.Z)(k.ZP.custom_designs.detail,encodeURIComponent(y),(0,Ie.hB)({operation:r,page_path:encodeURIComponent(b),page_query:Z?JSON.stringify(Z||""):null,page_type:i,page_uuid:l,resource:o,resource_id:a,resource_parent:c,resource_parent_id:d}),{},{condition:function(){return m},delay:5e3}),M=C.data,F=C.mutate;return{design:(0,s.useMemo)((function(){return(null==M?void 0:M.custom_design)||[]}),[M]),fetchDesign:F,router:g,routerDetails:{asPath:b,pathname:y,query:Z}}},Ee=t(46684),Ae=t(16682),Te=t(68804),Le=c.default.div.withConfig({displayName:"indexstyle__LinkStyle",componentId:"sc-y3uzxv-0"})(["padding:","px ","px;&:hover{cursor:pointer;","}",""],.5*A.iI,1.5*A.iI,(function(e){return"\n background-color: ".concat((e.theme.interactive||D.Z.interactive).hoverBackground,";\n ")}),(function(e){return e.highlighted&&"\n background-color: ".concat((e.theme.interactive||D.Z.interactive).hoverBackground,";\n ")})),Ne=t(95363),Ue=t(66472),Be=t(69419),Re=t(89538);function We(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Ge(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?We(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):We(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var qe=function(e){var n,t=e.breadcrumbs,o=e.hideActions,b=e.menuItems,y=e.project,Z=e.version,C=(0,Pe.VI)(null,{},[],{uuid:"shared/Header"}),F=(0,l.Z)(C,1)[0],O=(0,s.useContext)(c.ThemeContext),H=(0,u.useRouter)(),w=(0,G.PR)(null==H?void 0:H.basePath),_=(0,s.useState)(null),D=_[0],I=_[1],S=(0,s.useState)(!1),E=S[0],T=S[1],L=(0,s.useState)(!1),N=L[0],U=L[1],B=(0,s.useState)(null),R=B[0],W=B[1],Y=(0,s.useState)(!1),J=Y[0],V=Y[1],re=(0,s.useState)(null),ie=re[0],le=re[1],oe=(0,s.useRef)(null),ae=(0,s.useRef)(null),ce=(0,s.useRef)(null),se=d.Z.isLoggedIn(),ue=(0,ze.Z)(k.ZP.git_branches.detail,"test",{_format:"with_basic_details"},{revalidateOnFocus:!1},{pauseFetch:(0,G.YB)()&&!se},{delay:11e3}),de=ue.data,he=ue.mutate,pe=(0,s.useMemo)((function(){return(null==de?void 0:de.git_branch)||{}}),[de]),fe=pe.is_git_integration_enabled,ve=pe.name,je=Se().design,xe=(0,De.Z)({showError:o?null:F}),me=xe.featureEnabled,ge=xe.featureUUIDs,be=xe.isLoadingProject,ye=xe.isLoadingUpdate,Me=xe.project,Fe=xe.rootProject,Oe=xe.updateProject,He=(0,s.useMemo)((function(){return y||Me}),[Me,y]),we=(0,s.useMemo)((function(){return Z||(null==He?void 0:He.version)}),[He,Z]),_e=(0,s.useMemo)((function(){return Ae.WH.CLOSED===D||Ae.WH.OPEN===D||(null==me?void 0:me(null==ge?void 0:ge.COMMAND_CENTER))}),[D,me,ge]),We=!(0,Ie.Qr)(null==He?void 0:He.features_override);ae.current=He,(0,s.useCallback)((function(){_e?(0,Ue.WJ)():(T(!0),Oe({features:Ge(Ge({},(null==He?void 0:He.features)||{}),{},(0,i.Z)({},null==ge?void 0:ge.COMMAND_CENTER,!0))}).then((function(e){var n;if(null!=e&&null!==(n=e.data)&&void 0!==n&&n.error){var t;T(!1),F({errors:null==e||null===(t=e.data)||void 0===t?void 0:t.error,response:e})}else{var r=new CustomEvent(Te.YS.COMMAND_CENTER_ENABLED);window.dispatchEvent(r)}})))}),[_e,null==ge?void 0:ge.COMMAND_CENTER,null==He?void 0:He.features,F,Oe]);var qe=[];if(Fe&&qe.push({label:function(){return null==Fe?void 0:Fe.name},linkProps:{href:"/"}}),He){var Ye={label:function(){return null==He?void 0:He.name}};Fe?(Ye.loading=ye&&!E,Ye.options=Object.keys((null==Fe?void 0:Fe.projects)||{}).map((function(e){return{onClick:function(){Oe({activate_project:e}).then((function(e){var n;if(null!=e&&null!==(n=e.data)&&void 0!==n&&n.error){var t;F({errors:null==e||null===(t=e.data)||void 0===t?void 0:t.error,response:e})}else{var r,i,l,o=!(null==e||null===(r=e.data)||void 0===r||null===(i=r.project)||void 0===i||null===(l=i.features)||void 0===l||!l.display_local_timezone);(0,Ze.hY)(o),window.location.reload()}}))},selected:e===(null==He?void 0:He.name),uuid:e}}))):Ye.linkProps={href:"/"},qe.push(Ye)}else be||o||qe.push({bold:!0,danger:!0,label:function(){return"Error loading project configuration"}});var Je=(0,s.useMemo)((function(){return[].concat(qe,(0,r.Z)(t||[]))}),[qe,t,He]),Ve=H.query.pipeline,Qe=(He||{}).latest_version,$e=(0,s.useState)(null),Xe=$e[0],Ke=($e[1],(0,s.useMemo)((function(){var e,n,t=Ee.y7,r=(0,q.jsx)($.Z,{height:Ee.y7});if(null!=je&&null!==(e=je.components)&&void 0!==e&&null!==(n=e.header)&&void 0!==n&&n.media){var i,l,o=null==je||null===(i=je.components)||void 0===i||null===(l=i.header)||void 0===l?void 0:l.media;if(null!==Xe){var c=((null==Xe?void 0:Xe.width)||1)/((null==Xe?void 0:Xe.height)||1);t=Ee.sQ,r=(0,q.jsx)(Ee.XD,{height:Ee.sQ,width:Ee.sQ*c,url:(null==o?void 0:o.url)||(null==o?void 0:o.file_path)})}}return(0,q.jsx)(a(),{as:"/",href:"/",passHref:!0,children:(0,q.jsx)(K.Z,{block:!0,height:t,noHoverUnderline:!0,noOutline:!0,children:r})})}),[Xe,je])),en=o?[]:[{label:function(){return"Settings"},linkProps:{href:"/settings/workspace/preferences"},uuid:"user_settings"}];(0,G.YB)()&&en.push({label:function(){return"Sign out"},onClick:function(){d.Z.logout((function(){k.ZP.sessions.updateAsyncServer(null,1).then((function(){(0,Be.nL)("/sign-in")})).catch((function(){(0,Be.nL)("/")}))}),null==H?void 0:H.basePath)},uuid:"sign_out"});var nn=(0,Re.dd)((function(){return(0,q.jsx)(Q,{branch:ve,fetchBranch:he})}),{},[ve,he],{background:!0,uuid:"git_actions"}),tn=(0,l.Z)(nn,2),rn=tn[0],ln=(tn[1],(0,s.useMemo)((function(){return(null==ve?void 0:ve.length)>=21?"".concat(ve.slice(0,21),"..."):ve}),[ve])),on=(0,s.useMemo)((function(){return!(!w||null==w||!w.avatar)&&!/[A-Za-z0-9]+/.exec((null==w?void 0:w.avatar)||"")}),[w]),an=(0,s.useMemo)((function(){return!(!w||null==w||!w.avatar)&&!!/[A-Za-z0-9]+/.exec((null==w?void 0:w.avatar)||"")}),[w]),cn=(0,s.useMemo)((function(){var e;if(!w||null==w||!w.avatar)return(0,q.jsx)(ee.Z,{});var n={color:null==O||null===(e=O.content)||void 0===e?void 0:e.active,fontFamily:Ne.v$};return an?(n.fontSize=2*A.iI,n.lineHeight="".concat(2*A.iI,"px"),n.position="relative",n.top=1):n.fontSize=3*A.iI,(0,q.jsx)("div",{style:n,children:null==w?void 0:w.avatar})}),[an,w]);return(0,s.useEffect)((function(){var e=function(e){var n,t,r=e.detail;null!=r&&r.state&&(I(null==r?void 0:r.state),Ae.WH.MOUNTED===(null==r?void 0:r.state)&&(null!=ae&&null!==(n=ae.current)&&void 0!==n&&null!==(t=n.features)&&void 0!==t&&t[te.d.COMMAND_CENTER]||setTimeout((function(){(0,Ue.WJ)(),T(!1)}),1)))};return window.addEventListener(Te.Mt,e),function(){window.removeEventListener(Te.Mt,e)}}),[]),(0,q.jsx)(Ee.I5,{children:(0,q.jsx)(j.Z,{children:(0,q.jsxs)(m.ZP,{alignItems:"center",fullHeight:!0,justifyContent:"space-between",children:[(0,q.jsxs)(x.Z,{alignItems:"center",children:[Ke,(0,q.jsx)(h.Z,{breadcrumbs:Je})]}),(0,q.jsxs)(x.Z,{alignItems:"center",children:[fe&&ve&&(0,q.jsx)(M.Z,{mr:1,children:(0,q.jsx)(X.ZP,{compact:!0,highlightOnHoverAlt:!0,noBackground:!0,noHoverUnderline:!0,onClick:rn,sameColorAsText:!0,title:ve,uuid:"Header/GitActions",children:(0,q.jsxs)(m.ZP,{alignItems:"center",children:[(0,q.jsx)(z.BranchAlt,{size:1.5*A.iI}),(0,q.jsx)(M.Z,{ml:1}),(0,q.jsx)(P.ZP,{monospace:!0,noWrapping:!0,small:!0,children:ln})]})})}),Qe&&we&&Qe!==we&&(0,q.jsx)(p.ZP,{backgroundColor:Ce.$R,borderLess:!0,compact:!0,linkProps:{href:"https://docs.mage.ai/about/releases"},noHoverUnderline:!0,pill:!0,sameColorAsText:!0,target:"_blank",title:"Update to version ".concat(Qe),children:(0,q.jsx)(P.ZP,{black:!0,bold:!0,children:"Update"})}),we&&void 0!==we&&(0,q.jsx)(M.Z,{px:1,children:(0,q.jsx)(K.Z,{href:"https://www.mage.ai/changelog",monospace:!0,noWrapping:!0,openNewWindow:!0,sameColorAsText:!0,small:!0,children:"v".concat(we)})}),(0,q.jsx)(M.Z,{ml:1,children:(0,q.jsx)(ke,{disableTimezoneToggle:We,disabled:o,projectName:null==He?void 0:He.name})}),(0,q.jsx)(M.Z,{ml:1,children:(0,q.jsx)(X.ZP,{beforeElement:(0,q.jsx)(z.Slack,{}),compact:!0,highlightOnHoverAlt:!0,inline:!0,linkProps:{as:"https://www.mage.ai/chat",href:"https://www.mage.ai/chat"},noBackground:!0,noHoverUnderline:!0,openNewTab:!0,sameColorAsText:!0,uuid:"Header/live_chat",children:"Live help"})}),b&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(M.Z,{ml:2}),(0,q.jsx)(v.Z,{onClickOutside:function(){return W(null)},open:!0,style:{position:"relative"},children:(0,q.jsxs)(m.ZP,{children:[(0,q.jsx)(Le,{highlighted:0===R,onClick:function(){return W((function(e){return 0===e?null:0}))},onMouseEnter:function(){return W((function(e){return null!==e?0:null}))},ref:oe,children:(0,q.jsx)(P.ZP,{children:"Menu"})}),(0,q.jsx)(g.Z,{alternateBackground:!0,items:b,onClickCallback:function(){return W(null)},open:0===R,parentRef:oe,rightOffset:0,setConfirmationAction:le,setConfirmationDialogueOpen:V,uuid:"PipelineDetail/Header/menu"})]})}),(0,q.jsx)(v.Z,{onClickOutside:function(){return V(!1)},open:J,children:(0,q.jsx)(ne.Z,{danger:!0,onCancel:function(){return V(!1)},onClick:ie,right:16*A.iI,subtitle:"This is irreversible and will immediately delete everything associated with the pipeline, including its blocks, triggers, runs, logs, and history.",title:"Are you sure you want to delete the pipeline ".concat(Ve,"?"),width:40*A.iI})})]}),(se||!(0,G.YB)())&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(M.Z,{ml:1}),(0,q.jsx)(v.Z,{onClickOutside:function(){return U(!1)},open:!0,style:{position:"relative"},children:(0,q.jsxs)(m.ZP,{alignItems:"flex-end",flexDirection:"column",children:[(0,q.jsx)(X.ZP,{compact:!0,highlightOnHoverAlt:!0,inline:!0,noBackground:!0,noHoverUnderline:!0,onClick:function(){return U(!0)},ref:ce,uuid:"Header/menu",children:on&&(null==w||null===(n=w.avatar)||void 0===n?void 0:n.length)>=2?cn:(0,q.jsx)(f.Z,{color:Ce.Jm,size:4*A.iI,children:cn})}),(0,q.jsx)(g.Z,{alternateBackground:!0,items:en,onClickCallback:function(){return U(!1)},open:N,parentRef:ce,rightOffset:0,uuid:"shared/Header/user_menu"})]})})]})]})]})})})}},63637:function(e,n,t){var r=t(9518),i=t(28598),l=r.default.svg.withConfig({displayName:"Mage8Bit__SVGStyle",componentId:"sc-cj6ltf-0"})([""]);n.Z=function(e){var n=e.size,t=void 0===n?20:n,r=e.viewBox,o=void 0===r?"0 0 20 20":r;return(0,i.jsxs)(l,{height:t,viewBox:o,width:t,children:[(0,i.jsxs)("g",{clipPath:"url(#clip0_297_42814)",children:[(0,i.jsx)("path",{d:"M13.334 0h1.66667v1.66667H13.334zM11.666 1.6665h1.66667v1.66667H11.666z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M10 1.6665h1.66667v1.66667H10z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M8.33398 1.6665h1.66667v1.66667H8.33398z",fill:"#AF93FF"}),(0,i.jsx)("path",{d:"M8.33398 3.3335h1.66667v1.66667H8.33398z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M6.66602 3.3335h1.66667v1.66667H6.66602z",fill:"#AF93FF"}),(0,i.jsx)("path",{d:"M3.33398 5h1.66667v1.66667H3.33398z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M5 5h1.66667v1.66667H5z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M6.66602 5h1.66667v1.66667H6.66602z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M6.66602 5h1.66667v1.66667H6.66602z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M6.66602 8.3335h1.66667v1.66667H6.66602z",fill:"#000"}),(0,i.jsx)("path",{d:"M6.66602 6.6665h1.66667v1.66667H6.66602z",fill:"#AD8FFF"}),(0,i.jsx)("path",{d:"M6.66602 10h1.66667v1.66667H6.66602z",fill:"#C9B6FF"}),(0,i.jsx)("path",{d:"M8.33398 6.6665h1.66667v1.66667H8.33398z",fill:"#AD8FFF"}),(0,i.jsx)("path",{d:"M1.66602 13.3335h1.66667v1.66667H1.66602z",fill:"#C9B6FF"}),(0,i.jsx)("path",{d:"M1.66602 11.6665h1.66667v1.66667H1.66602z",fill:"#FFCC19"}),(0,i.jsx)("path",{d:"M1.66602 10h1.66667v1.66667H1.66602z",fill:"#FFCC19"}),(0,i.jsx)("path",{d:"M1.66602 8.3335h1.66667v1.66667H1.66602zM1.66602 6.6665h1.66667v1.66667H1.66602z",fill:"#FFCC19"}),(0,i.jsx)("path",{d:"M1.66602 6.6665h1.66667v1.66667H1.66602zM0 0h1.66667v1.66667H0zM3.33398 1.6665h1.66667v1.66667H3.33398zM0 3.3335h1.66667v1.66667H0z",fill:"#2ECDF7"}),(0,i.jsx)("path",{d:"M1.66602 16.6665h1.66667v1.66667H1.66602z",fill:"#FFCC19"}),(0,i.jsx)("path",{d:"M1.66602 16.6665h1.66667v1.66667H1.66602zM1.66602 18.3335h1.66667v1.66667H1.66602z",fill:"#FFCC19"}),(0,i.jsx)("path",{d:"M1.66602 15h1.66667v1.66667H1.66602zM3.33398 15h1.66667v1.66667H3.33398z",fill:"#C9B6FF"}),(0,i.jsx)("path",{d:"M3.33398 16.6665h1.66667v1.66667H3.33398z",fill:"#C9B6FF"}),(0,i.jsx)("path",{d:"M3.33398 13.3335h1.66667v1.66667H3.33398z",fill:"#AD8FFF"}),(0,i.jsx)("path",{d:"M8.33398 8.3335h1.66667v1.66667H8.33398z",fill:"#C9B6FF"}),(0,i.jsx)("path",{d:"M10 6.6665h1.66667v1.66667H10z",fill:"#AD8FFF"}),(0,i.jsx)("path",{d:"M10 10h1.66667v1.66667H10z",fill:"#C9B6FF"}),(0,i.jsx)("path",{d:"M11.666 6.6665h1.66667v1.66667H11.666z",fill:"#AD8FFF"}),(0,i.jsx)("path",{d:"M11.666 8.3335h1.66667v1.66667H11.666z",fill:"#C9B6FF"}),(0,i.jsx)("path",{d:"M8.33398 10h1.66667v1.66667H8.33398z",fill:"#FF8DA9"}),(0,i.jsx)("path",{d:"M8.33398 11.6665h1.66667v1.66667H8.33398z",fill:"#FF8DA9"}),(0,i.jsx)("path",{d:"M6.66602 11.6665h1.66667v1.66667H6.66602z",fill:"#D9D9D9"}),(0,i.jsx)("path",{d:"M6.66602 11.6665h1.66667v1.66667H6.66602z",fill:"#D9D9D9"}),(0,i.jsx)("path",{d:"M5 10h1.66667v1.66667H5z",fill:"#D9D9D9"}),(0,i.jsx)("path",{d:"M5 8.3335h1.66667v1.66667H5z",fill:"#232429"}),(0,i.jsx)("path",{d:"M8.33398 11.6665h1.66667v1.66667H8.33398zM8.33398 13.3335h1.66667v1.66667H8.33398z",fill:"#D9D9D9"}),(0,i.jsx)("path",{d:"M10 11.6665h1.66667v1.66667H10z",fill:"#D9D9D9"}),(0,i.jsx)("path",{d:"M11.666 10h1.66667v1.66667H11.666zM13.334 6.6665h1.66667v1.66667H13.334zM13.334 8.3335h1.66667v1.66667H13.334z",fill:"#D9D9D9"}),(0,i.jsx)("path",{d:"M15 8.3335h1.66667v1.66667H15z",fill:"#757575"}),(0,i.jsx)("path",{d:"M15 10h1.66667v1.66667H15z",fill:"#D9D9D9"}),(0,i.jsx)("path",{d:"M10 8.3335h1.66667v1.66667H10z",fill:"#000"}),(0,i.jsx)("path",{d:"M8.33398 5h1.66667v1.66667H8.33398zM11.666 5h1.66667v1.66667H11.666z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M13.334 10h1.66667v1.66667H13.334zM11.666 11.6665h1.66667v1.66667H11.666zM10 13.3335h1.66667v1.66667H10z",fill:"#501FD8"}),(0,i.jsx)("path",{d:"M8.33398 15h1.66667v1.66667H8.33398zM6.66602 13.3335h1.66667v1.66667H6.66602zM15 11.6665h1.66667v1.66667H15z",fill:"#501FD8"}),(0,i.jsx)("path",{d:"M16.666 11.6665h1.66667v1.66667H16.666zM16.666 13.3335h1.66667v1.66667H16.666z",fill:"#501FD8"}),(0,i.jsx)("path",{d:"M15 13.3335h1.66667v1.66667H15z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M13.334 13.3335h1.66667v1.66667H13.334zM13.334 11.6665h1.66667v1.66667H13.334zM11.666 13.3335h1.66667v1.66667H11.666z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M11.666 15h1.66667v1.66667H11.666z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M10 15h1.66667v1.66667H10z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M8.33398 16.6665h1.66667v1.66667H8.33398z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M6.66602 15h1.66667v1.66667H6.66602z",fill:"#AF93FF"}),(0,i.jsx)("path",{d:"M6.66602 16.6665h1.66667v1.66667H6.66602z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M5 16.6665h1.66667v1.66667H5z",fill:"#AF93FF"}),(0,i.jsx)("path",{d:"M5 18.3335h1.66667v1.66667H5z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M6.66602 18.3335h1.66667v1.66667H6.66602zM8.33398 18.3335h1.66667v1.66667H8.33398z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M10 18.3335h1.66667v1.66667H10z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M11.666 18.3335h1.66667v1.66667H11.666zM13.334 18.3335h1.66667v1.66667H13.334z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M15 18.3335h1.66667v1.66667H15z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M16.666 18.3335h1.66667v1.66667H16.666z",fill:"#652EFF"}),(0,i.jsx)("path",{d:"M3.33398 18.3335h1.66667v1.66667H3.33398zM10 16.6665h1.66667v1.66667H10z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M11.666 16.6665h1.66667v1.66667H11.666zM13.334 15h1.66667v1.66667H13.334z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M13.334 16.6665h1.66667v1.66667H13.334z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M15 16.6665h1.66667v1.66667H15z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M15 15h1.66667v1.66667H15z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M16.666 15h1.66667v1.66667H16.666zM18.334 16.6665h1.66667v1.66667H18.334zM18.334 18.3335h1.66667v1.66667H18.334z",fill:"#501FD8"}),(0,i.jsx)("path",{d:"M16.666 16.6665h1.66667v1.66667H16.666z",fill:"#652EFF"}),(0,i.jsx)("path",{d:"M13.334 5h1.66667v1.66667H13.334z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M15 5h1.66667v1.66667H15zM10 5h1.66667v1.66667H10z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M10 3.3335h1.66667v1.66667H10z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M11.666 3.3335h1.66667v1.66667H11.666z",fill:"#7949FF"}),(0,i.jsx)("path",{d:"M11.666 0h1.66667v1.66667H11.666z",fill:"#AF93FF"})]}),(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:"clip0_297_42814",children:(0,i.jsx)("path",{d:"M0 0h20v20H0z",fill:"#fff"})})})]})}}}]);
|