mage-ai 0.9.13__py3-none-any.whl → 0.9.15__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/generator.py +1 -1
- mage_ai/ai/generator_cmds.py +1 -1
- mage_ai/ai/llm_pipeline_wizard.py +31 -17
- mage_ai/api/policies/PipelineRunPolicy.py +1 -0
- mage_ai/api/presenters/BlockRunPresenter.py +4 -1
- mage_ai/api/presenters/PipelineRunPresenter.py +2 -0
- mage_ai/api/resources/BlockRunResource.py +18 -12
- mage_ai/api/resources/GitBranchResource.py +8 -1
- mage_ai/api/resources/PipelineResource.py +30 -14
- mage_ai/api/resources/PipelineRunResource.py +8 -5
- mage_ai/data_integrations/sources/constants.py +1 -0
- mage_ai/data_preparation/executors/block_executor.py +5 -7
- mage_ai/data_preparation/git/__init__.py +18 -0
- mage_ai/data_preparation/models/block/__init__.py +13 -1
- mage_ai/data_preparation/models/block/dbt/utils/__init__.py +5 -2
- mage_ai/data_preparation/models/block/integration/__init__.py +1 -1
- mage_ai/data_preparation/models/custom_templates/utils.py +14 -4
- mage_ai/data_preparation/models/variable.py +5 -2
- mage_ai/data_preparation/templates/constants.py +16 -0
- mage_ai/data_preparation/templates/data_exporters/mssql.py +32 -0
- mage_ai/data_preparation/templates/data_loaders/mssql.py +27 -0
- mage_ai/io/base.py +5 -0
- mage_ai/io/mssql.py +1 -0
- mage_ai/orchestration/db/models/base.py +15 -15
- mage_ai/orchestration/db/models/oauth.py +35 -4
- mage_ai/orchestration/db/models/schedules.py +4 -0
- mage_ai/orchestration/pipeline_scheduler.py +12 -6
- 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/chunks/{1005-ee665ba499795660.js → 1005-a2f0e3ee378ef02b.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1424-fca78f21a81a7183.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/2786-756b3834d10b8711.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/3391-e1578fe1bdb5a557.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/6299-9b785c07dacf22b3.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/7496-7e4dd11e3f3b8e79.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/8952-050e60a8b1eaa32a.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/9605-e40d076d9fc36d83.js → frontend_dist/_next/static/chunks/9605-9332e1686c46da7d.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{_app-ccc78f4c29a2a431.js → _app-9dae6fa5126cf001.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/files-03841b6dd7d240f6.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/settings-6e2c0e3f818fd4de.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-6e59dc4e57dd2680.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-02295848c811e26a.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-4a2671811a153411.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{syncs-ddaca2c267def72a.js → syncs-484581ae34a1c596.js} +1 -1
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-ce11db27e4af7869.js → frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-91889109af36a793.js} +1 -1
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers-ff1faac7a72b1af1.js → frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-624a2d7cbe6303b4.js} +1 -1
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/triggers-eee16a91f281f92d.js → frontend_dist/_next/static/chunks/pages/triggers-71bbb30dd9b57f80.js} +1 -1
- mage_ai/server/{frontend_dist_base_path_template/_next/static/gJQ7p6K0VGDZzX1HXtRED → frontend_dist/_next/static/h5mR3pjfn_EQy348CZ_ok}/_buildManifest.js +1 -1
- 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/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 +11 -11
- 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 +3 -3
- mage_ai/server/frontend_dist/triggers.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/404.html.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{1005-ee665ba499795660.js → 1005-a2f0e3ee378ef02b.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1424-fca78f21a81a7183.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2786-756b3834d10b8711.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3391-e1578fe1bdb5a557.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6299-9b785c07dacf22b3.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7496-7e4dd11e3f3b8e79.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8952-050e60a8b1eaa32a.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/9605-e40d076d9fc36d83.js → frontend_dist_base_path_template/_next/static/chunks/9605-9332e1686c46da7d.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{_app-ccc78f4c29a2a431.js → _app-9dae6fa5126cf001.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/files-03841b6dd7d240f6.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/settings-6e2c0e3f818fd4de.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-6e59dc4e57dd2680.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/logs-02295848c811e26a.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs-4a2671811a153411.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/{syncs-ddaca2c267def72a.js → syncs-484581ae34a1c596.js} +1 -1
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-ce11db27e4af7869.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-91889109af36a793.js} +1 -1
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-ff1faac7a72b1af1.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers-624a2d7cbe6303b4.js} +1 -1
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/triggers-eee16a91f281f92d.js → frontend_dist_base_path_template/_next/static/chunks/pages/triggers-71bbb30dd9b57f80.js} +1 -1
- mage_ai/server/{frontend_dist/_next/static/O4HzlRY2U3Q47jF8s3D-E → frontend_dist_base_path_template/_next/static/xykYLW_ARw5SevdiponLI}/_buildManifest.js +1 -1
- 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/index.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/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]/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/settings/account/profile.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/sync-data.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 +11 -11
- 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 +3 -3
- mage_ai/server/frontend_dist_base_path_template/triggers.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/version-control.html +2 -2
- mage_ai/server/server.py +12 -1
- mage_ai/services/spark/spark.py +75 -2
- mage_ai/shared/retry.py +1 -1
- mage_ai/tests/data_preparation/models/custom_templates/__init__.py +0 -0
- mage_ai/tests/data_preparation/models/custom_templates/test_utils.py +36 -0
- mage_ai/tests/data_preparation/models/test_block.py +48 -0
- mage_ai/tests/services/spark/__init__.py +0 -0
- mage_ai/tests/services/spark/test_spark.py +52 -0
- {mage_ai-0.9.13.dist-info → mage_ai-0.9.15.dist-info}/METADATA +1 -1
- {mage_ai-0.9.13.dist-info → mage_ai-0.9.15.dist-info}/RECORD +164 -159
- mage_ai/server/frontend_dist/_next/static/chunks/1424-846b754e84e6eac1.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/2786-ba6f486fcaf52ba0.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3391-6f0a0a5c254cd7f2.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/6299-fcb702d0f3d3291b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/7496-7d0f9adf0b333801.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/8952-9d6fa18fa9378989.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/files-2dc2a0dfc0ff620d.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/settings-6577159a0af52a78.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-615ab9e61f0f39ed.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-d331e98ad103b13e.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-df014ddb14ebcef4.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1424-846b754e84e6eac1.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2786-ba6f486fcaf52ba0.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3391-6f0a0a5c254cd7f2.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6299-fcb702d0f3d3291b.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7496-7d0f9adf0b333801.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8952-9d6fa18fa9378989.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/files-2dc2a0dfc0ff620d.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/settings-6577159a0af52a78.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-615ab9e61f0f39ed.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/logs-d331e98ad103b13e.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs-df014ddb14ebcef4.js +0 -1
- mage_ai/tests/orchestration/db/test_models.py +0 -710
- /mage_ai/server/frontend_dist/_next/static/{O4HzlRY2U3Q47jF8s3D-E → h5mR3pjfn_EQy348CZ_ok}/_middlewareManifest.js +0 -0
- /mage_ai/server/frontend_dist/_next/static/{O4HzlRY2U3Q47jF8s3D-E → h5mR3pjfn_EQy348CZ_ok}/_ssgManifest.js +0 -0
- /mage_ai/server/frontend_dist_base_path_template/_next/static/{gJQ7p6K0VGDZzX1HXtRED → xykYLW_ARw5SevdiponLI}/_middlewareManifest.js +0 -0
- /mage_ai/server/frontend_dist_base_path_template/_next/static/{gJQ7p6K0VGDZzX1HXtRED → xykYLW_ARw5SevdiponLI}/_ssgManifest.js +0 -0
- {mage_ai-0.9.13.dist-info → mage_ai-0.9.15.dist-info}/LICENSE +0 -0
- {mage_ai-0.9.13.dist-info → mage_ai-0.9.15.dist-info}/WHEEL +0 -0
- {mage_ai-0.9.13.dist-info → mage_ai-0.9.15.dist-info}/entry_points.txt +0 -0
- {mage_ai-0.9.13.dist-info → mage_ai-0.9.15.dist-info}/top_level.txt +0 -0
mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-d331e98ad103b13e.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4794],{59739:function(e,n,t){"use strict";var r=t(56669);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,n,t,i,o,l){if(l!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function n(){return e}e.isRequired=e;var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:o,resetWarningCache:i};return t.PropTypes=t,t}},47329:function(e,n,t){e.exports=t(59739)()},56669:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},2850:function(e,n,t){"use strict";t.d(n,{M:function(){return l},W:function(){return o}});var r=t(38626),i=t(3055),o=34*t(49125).iI,l=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);"],i.Mz)},18025:function(e,n,t){"use strict";t.d(n,{J:function(){return u},U:function(){return c}});var r=t(38626),i=t(23831),o=t(73942),l=t(49125),c=r.default.div.withConfig({displayName:"indexstyle__CardStyle",componentId:"sc-m7tlau-0"})(["border-radius:","px;border-style:solid;border-width:2px;height:","px;margin-right:","px;padding:","px;width:","px;"," ",""],o.TR,14*l.iI,l.cd*l.iI,l.cd*l.iI,40*l.iI,(function(e){return!e.selected&&"\n border-color: ".concat((e.theme.borders||i.Z.borders).light,";\n ")}),(function(e){return e.selected&&"\n border-color: ".concat((e.theme.interactive||i.Z.interactive).linkPrimary,";\n ")})),u=r.default.div.withConfig({displayName:"indexstyle__DateSelectionContainer",componentId:"sc-m7tlau-1"})(["border-radius:","px;padding:","px;"," "," ",""],o.n_,l.tr,(function(e){return"\n background-color: ".concat((e.theme.interactive||i.Z.interactive).defaultBackground,";\n ")}),(function(e){return e.absolute&&"\n position: absolute;\n z-index: 2;\n right: 0;\n top: ".concat(2.5*l.iI,"px;\n ")}),(function(e){return e.topPosition&&"\n top: -".concat(42*l.iI,"px;\n ")}))},2713:function(e,n,t){"use strict";var r=t(82394),i=t(44495),o=t(67971),l=t(55378),c=t(86673),u=t(19711),a=t(18025),s=t(49125),d=t(24224),p=t(28598);function f(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function h(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?f(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.selectedDate,t=e.selectedTime,r=e.setSelectedDate,f=e.setSelectedTime,m=e.topPosition;return(0,p.jsxs)(a.J,{absolute:!0,topPosition:m,children:[(0,p.jsx)(i.ZP,{onChange:r,value:n}),(0,p.jsx)(c.Z,{mb:2}),(0,p.jsxs)(o.ZP,{alignItems:"center",children:[(0,p.jsx)(u.ZP,{default:!0,large:!0,children:"Time (UTC):"}),(0,p.jsx)(c.Z,{pr:2}),(0,p.jsx)(l.Z,{compact:!0,monospace:!0,onChange:function(e){e.preventDefault(),f((function(n){return h(h({},n),{},{hour:e.target.value})}))},paddingRight:5*s.iI,placeholder:"HH",value:null===t||void 0===t?void 0:t.hour,children:(0,d.m5)(24,0).map((function(e){return String(e).padStart(2,"0")})).map((function(e){return(0,p.jsx)("option",{value:e,children:e},"hour_".concat(e))}))}),(0,p.jsx)(c.Z,{px:1,children:(0,p.jsx)(u.ZP,{bold:!0,large:!0,children:":"})}),(0,p.jsx)(l.Z,{compact:!0,monospace:!0,onChange:function(e){e.preventDefault(),f((function(n){return h(h({},n),{},{minute:e.target.value})}))},paddingRight:5*s.iI,placeholder:"MM",value:null===t||void 0===t?void 0:t.minute,children:(0,d.m5)(60,0).map((function(e){return String(e).padStart(2,"0")})).map((function(e){return(0,p.jsx)("option",{value:e,children:e},"minute_".concat(e))}))})]})]})}},19464:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return ln}});var r,i=t(77837),o=t(82394),l=t(38860),c=t.n(l),u=t(38626),a=t(4804),s=t(82684),d=t(86422),p=t(34744),f=t(60328),h=t(38341),m=t(16634),v=t(67971),g=t(86673),j=t(19711),b=t(2850),x=t(49125),y=u.default.div.withConfig({displayName:"indexstyle__FilterRowStyle",componentId:"sc-kvapsi-0"})(["padding-bottom:","px;padding-top:","px;"],x.iI/2,x.iI/2);!function(e){e.CRITICAL="CRITICAL",e.DEBUG="DEBUG",e.ERROR="ERROR",e.EXCEPTION="EXCEPTION",e.INFO="INFO",e.LOG="LOG",e.WARNING="WARNING"}(r||(r={}));var _,Z=[r.CRITICAL,r.DEBUG,r.ERROR,r.EXCEPTION,r.INFO,r.LOG,r.WARNING];!function(e){e.LAST_HOUR="Last hour",e.LAST_DAY="Last day",e.LAST_WEEK="Last week",e.LAST_30_DAYS="Last 30 days",e.CUSTOM_RANGE="Custom range"}(_||(_={}));var O=t(73942),P=t(73899);var k=(0,u.css)(["",""],(function(e){return"\n background-color: ".concat(function(e){var n=e.critical,t=e.debug,r=e.error,i=e.exception,o=e.info,l=e.log,c=e.warning;return n?P.Zl:t?P.EG:r?P.hl:i?P.hM:o?P.gN:l?P.Wd:c?P.$R:"transparent"}(e),";\n ")})),S=u.default.div.withConfig({displayName:"indexstyle__LogLevelIndicatorStyle",componentId:"sc-1e2zh7m-0"})([""," border-radius:","px;height:12px;width:5px;"],k,O.n_),w=t(90211),C=t(44162),I=t(33766),D=t(28598);function T(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 E(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?T(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):T(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var A=function(e){var n=e.blocks,t=e.query,r=(0,s.useContext)(u.ThemeContext),i=(0,s.useMemo)((function(){return t["level[]"]}),[t]),l=(0,s.useMemo)((function(){return t["block_type[]"]}),[t]),c=(0,s.useMemo)((function(){return t["block_uuid[]"]}),[t]),a=(0,s.useMemo)((function(){return t["pipeline_schedule_id[]"]}),[t]),p=(0,s.useMemo)((function(){return t["pipeline_run_id[]"]}),[t]),_=(0,s.useMemo)((function(){return t["block_run_id[]"]}),[t]);return(0,D.jsx)(b.M,{children:(0,D.jsxs)(g.Z,{p:x.cd,children:[(0,D.jsxs)(g.Z,{mb:3,children:[(0,D.jsx)(g.Z,{mb:1,children:(0,D.jsx)(j.ZP,{bold:!0,default:!0,large:!0,children:"Log level"})}),Z.map((function(e){return(0,D.jsx)(f.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return(0,I.g_)(t,{level:e},{isList:!0})},children:(0,D.jsx)(y,{children:(0,D.jsxs)(v.ZP,{alignItems:"center",children:[(0,D.jsx)(h.Z,{checked:Array.isArray(i)&&(null===i||void 0===i?void 0:i.includes(String(e)))}),(0,D.jsx)(g.Z,{mr:1}),(0,D.jsx)(S,E({},(0,o.Z)({},e.toLowerCase(),!0))),(0,D.jsx)(g.Z,{mr:1}),(0,D.jsx)(j.ZP,{disableWordBreak:!0,children:(0,w.kC)(e.toLowerCase())})]})})},e)}))]}),(0,D.jsxs)(g.Z,{mb:3,children:[(0,D.jsx)(g.Z,{mb:1,children:(0,D.jsx)(j.ZP,{bold:!0,default:!0,large:!0,children:"Block type"})}),[d.tf.DATA_LOADER,d.tf.TRANSFORMER,d.tf.DATA_EXPORTER].map((function(e){return(0,D.jsx)(f.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return(0,I.g_)(t,{block_type:e},{isList:!0})},children:(0,D.jsx)(y,{children:(0,D.jsxs)(v.ZP,{alignItems:"center",children:[(0,D.jsx)(h.Z,{checked:Array.isArray(l)&&(null===l||void 0===l?void 0:l.includes(String(e)))}),(0,D.jsx)(g.Z,{mr:1}),(0,D.jsx)(m.Z,{color:(0,C.qn)(e,{theme:r}).accent,size:1.5*x.iI,square:!0}),(0,D.jsx)(g.Z,{mr:1}),(0,D.jsx)(j.ZP,{disableWordBreak:!0,muted:!0,monospace:!0,children:e})]})})},e)}))]}),(0,D.jsxs)(g.Z,{mb:3,children:[(0,D.jsx)(g.Z,{mb:1,children:(0,D.jsx)(j.ZP,{bold:!0,default:!0,large:!0,children:"Block"})}),n.filter((function(e){var n=e.type;return d.tf.SCRATCHPAD!==n})).map((function(e){return(0,D.jsx)(f.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return(0,I.g_)(t,{block_uuid:e.uuid},{isList:!0,resetLimitParams:!0})},children:(0,D.jsx)(y,{children:(0,D.jsxs)(v.ZP,{alignItems:"center",children:[(0,D.jsx)(h.Z,{checked:Array.isArray(c)&&(null===c||void 0===c?void 0:c.includes(String(e.uuid)))}),(0,D.jsx)(g.Z,{mr:1}),(0,D.jsx)(m.Z,{color:(0,C.qn)(e.type,{blockColor:e.color,theme:r}).accent,size:1.5*x.iI,square:!0}),(0,D.jsx)(g.Z,{mr:1}),(0,D.jsx)(j.ZP,{disableWordBreak:!0,monospace:!0,muted:!0,children:e.uuid})]})})},e.uuid)}))]}),(null===a||void 0===a?void 0:a.length)&&(0,D.jsxs)(g.Z,{mb:3,children:[(0,D.jsx)(g.Z,{mb:1,children:(0,D.jsx)(j.ZP,{bold:!0,default:!0,large:!0,children:"Trigger"})}),a.map((function(e){return(0,D.jsx)(f.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return(0,I.g_)(t,{pipeline_schedule_id:e},{isList:!0})},children:(0,D.jsx)(y,{children:(0,D.jsxs)(v.ZP,{alignItems:"center",children:[(0,D.jsx)(h.Z,{checked:Array.isArray(a)&&(null===a||void 0===a?void 0:a.includes(e))}),(0,D.jsx)(g.Z,{mr:1}),(0,D.jsx)(j.ZP,{disableWordBreak:!0,monospace:!0,children:e})]})})},"pipeline-schedule-".concat(e))}))]}),(null===p||void 0===p?void 0:p.length)&&(0,D.jsxs)(g.Z,{mb:3,children:[(0,D.jsx)(g.Z,{mb:1,children:(0,D.jsx)(j.ZP,{bold:!0,default:!0,large:!0,children:"Pipeline run"})}),p.map((function(e){return(0,D.jsx)(f.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return(0,I.g_)(t,{pipeline_run_id:e},{isList:!0})},children:(0,D.jsx)(y,{children:(0,D.jsxs)(v.ZP,{alignItems:"center",children:[(0,D.jsx)(h.Z,{checked:Array.isArray(p)&&(null===p||void 0===p?void 0:p.includes(e))}),(0,D.jsx)(g.Z,{mr:1}),(0,D.jsx)(j.ZP,{disableWordBreak:!0,monospace:!0,children:e})]})})},"pipeline-run-".concat(e))}))]}),(null===_||void 0===_?void 0:_.length)&&(0,D.jsxs)(g.Z,{mb:3,children:[(0,D.jsx)(g.Z,{mb:1,children:(0,D.jsx)(j.ZP,{bold:!0,default:!0,large:!0,children:"Block run"})}),_.map((function(e){return(0,D.jsx)(f.Z,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){return(0,I.g_)(t,{block_run_id:e},{isList:!0})},children:(0,D.jsx)(y,{children:(0,D.jsxs)(v.ZP,{alignItems:"center",children:[(0,D.jsx)(h.Z,{checked:Array.isArray(_)&&(null===_||void 0===_?void 0:_.includes(e))}),(0,D.jsx)(g.Z,{mr:1}),(0,D.jsx)(j.ZP,{disableWordBreak:!0,monospace:!0,children:e})]})})},"block-run-".concat(e))}))]})]})})},L=t(93461),R=t(11135),M=t(75582),N=t(32316),B=t(10919),Y=t(87815),W=u.default.div.withConfig({displayName:"indexstyle__BarStyle",componentId:"sc-1r43sbu-0"})([""," height:","px;width:100%;"],k,.5*x.iI),H=u.default.div.withConfig({displayName:"indexstyle__BadgeStyle",componentId:"sc-1r43sbu-1"})([""," border-radius:","px;display:inline-block;padding:","px ","px;"],k,O.BG,.25*x.iI,.5*x.iI),U=t(22341),J=t(92083),G=t.n(J);function q(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?q(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):q(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var F=/^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}$/,K=/([0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}) (.+)/;function X(e){var n=e.content.trim().split(K),t=[],r=[];return n.forEach((function(e){var n=e.trim();F.test(e)?(r.length>=1&&t.push(r.join(" ").trim()),r=[e]):r.filter((function(e){return e})).length<=1&&n&&r.push(n)})),t.push(r.join(" ").trim()),t.map((function(n){return function(e){var n=e.content.trim().match(K),t=null===n||void 0===n?void 0:n[1],r=null===n||void 0===n?void 0:n[2],i={};return r&&(0,w.Pb)(r)&&(i=JSON.parse(r)),z(z({},e),{},{createdAt:t,data:i})}(z(z({},e),{},{content:n}))}))}function V(e){return e&&G().unix(e).utc().format("YYYY-MM-DD HH:mm:ss.SSS")}var Q=t(24224);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 ee(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?$(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):$(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ne=["error","error_stack","error_stacktrace"],te={uuid:"Details"},re={uuid:"Errors"};var ie=function(e){var n=e.log,t=e.onClose,r=e.selectedTab,i=e.setSelectedTab,l=(0,s.useState)(!1),c=l[0],u=l[1],a=n.data,d=n.name,h=n.path,m=a||{},b=m.error,y=m.error_stack,_=m.error_stacktrace,Z=m.level,O=m.timestamp,P=(0,o.Z)({},Z.toLowerCase(),!0),k=(0,s.useMemo)((function(){var e=[["file name",d],["file path",h]];return Object.entries(a).forEach((function(n){var t=(0,M.Z)(n,2),r=t[0],i=t[1];ne.includes(r)||e.push([r,i])})),_&&e.push(["error",_]),(0,Q.YC)(e,(function(e){var n=(0,M.Z)(e,2),t=n[0];n[1];return t}))}),[a,_,d,h]),S=(0,s.useMemo)((function(){var e=[te];return b&&e.push(re),(0,D.jsx)(N.Z,{onClickTab:i,selectedTabUUID:null===r||void 0===r?void 0:r.uuid,tabs:e})}),[b,r,i]);return(0,D.jsxs)("div",{children:[(0,D.jsx)(W,ee({},P)),(0,D.jsx)(g.Z,{p:x.cd,children:(0,D.jsxs)(v.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,D.jsxs)(L.Z,{alignItems:"center",children:[(0,D.jsx)(H,ee(ee({},P),{},{children:(0,D.jsx)(j.ZP,{bold:!0,inverted:!0,monospace:!0,small:!0,children:Z})})),(0,D.jsx)(g.Z,{mr:x.cd}),(0,D.jsx)(j.ZP,{monospace:!0,children:V(O)})]}),(0,D.jsx)(f.Z,{iconOnly:!0,noBackground:!0,onClick:function(){return t()},children:(0,D.jsx)(U.x8,{size:1.5*x.iI})})]})}),(0,D.jsx)(p.Z,{medium:!0}),(0,D.jsx)(g.Z,{py:x.cd,children:S}),te.uuid===(null===r||void 0===r?void 0:r.uuid)&&(0,D.jsx)(Y.Z,{columnFlex:[null,1],columnMaxWidth:function(e){return 1===e?"100px":null},rows:null===k||void 0===k?void 0:k.map((function(e,n){var t=(0,M.Z)(e,2),r=t[0],i=t[1],o="message"===r,l="tags"===r,a=i,s=i;return l?s=a=(0,w.Pb)(i)?JSON.parse(JSON.stringify(i,null,2)):JSON.stringify(i,null,2):o&&c&&(0,w.Pb)(i)&&(s=JSON.stringify(JSON.parse(i),null,2),a=(0,D.jsx)("pre",{children:s})),"object"===typeof a&&(a=JSON.stringify(a,null,2),a=(0,D.jsx)("pre",{children:a})),"object"===typeof s&&(s=JSON.stringify(s)),[(0,D.jsx)(j.ZP,{monospace:!0,muted:!0,children:r},"".concat(r,"_").concat(n,"_key")),(0,D.jsxs)(D.Fragment,{children:[(0,D.jsxs)(j.ZP,{monospace:!0,textOverflow:!0,title:s,whiteSpaceNormal:o&&c||l,wordBreak:o&&c||l,children:[!l&&a,l&&(0,D.jsx)("pre",{children:a})]},"".concat(r,"_").concat(n,"_val")),o&&(0,D.jsx)(B.Z,{muted:!0,onClick:function(){return u((function(e){return!e}))},children:c?"Click to hide log":"Click to show full log message"})]})]})),uuid:"LogDetail"}),re.uuid===(null===r||void 0===r?void 0:r.uuid)&&(0,D.jsxs)(g.Z,{mb:5,px:x.cd,children:[(0,D.jsx)(g.Z,{mb:1,children:(0,D.jsx)(j.ZP,{bold:!0,children:"Error"})}),null===b||void 0===b?void 0:b.map((function(e){return e.split("\n").map((function(e){return e.split("\\n").map((function(e){return(0,D.jsx)(j.ZP,{default:!0,monospace:!0,preWrap:!0,small:!0,children:e},e)}))}))})),y&&(0,D.jsxs)(g.Z,{mt:3,children:[(0,D.jsx)(g.Z,{mb:1,children:(0,D.jsx)(j.ZP,{bold:!0,children:"Stack trace"})}),null===y||void 0===y?void 0:y.map((function(e){return null===e||void 0===e?void 0:e.map((function(e){return(0,D.jsx)(j.ZP,{default:!0,monospace:!0,preWrap:!0,small:!0,children:e},e)}))}))]})]})]})},oe=t(60547),le=t(98781),ce=t(41788),ue=t(54283),ae=t(21831),se=t(89565),de=t.n(se),pe=t(12691),fe=t.n(pe),he=t(72487),me=t(66166),ve=t(3055),ge=t(23831),je=t(37391),be=u.default.div.withConfig({displayName:"indexstyle__TableContainer",componentId:"sc-16j4vp6-0"})([".table_row > div{margin:","px ","px;}div{","}"],.5*x.iI,x.iI,je.w5),xe=u.default.div.withConfig({displayName:"indexstyle__TableHeadStyle",componentId:"sc-16j4vp6-1"})(["display:flex;align-items:center;overflow:hidden;",""],(function(e){return"\n border-bottom: 1px solid ".concat((e.theme||ge.Z).borders.medium2,";\n ")})),ye=u.default.div.withConfig({displayName:"indexstyle__TableRowStyle",componentId:"sc-16j4vp6-2"})(["display:flex;align-items:center;"," "," ",""],(function(e){return"\n border-bottom: 1px solid ".concat((e.theme||ge.Z).borders.light,";\n\n &:hover {\n cursor: pointer;\n }\n ")}),(function(e){return!e.selected&&"\n &:hover {\n background: ".concat((e.theme.interactive||ge.Z.interactive).rowHoverBackground,";\n cursor: pointer;\n }\n ")}),(function(e){return e.selected&&"\n background-color: ".concat((e.theme.interactive||ge.Z.interactive).activeBorder,";\n ")})),_e=t(62976),Ze=t(24141);function Oe(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Pe(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Oe(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Oe(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ke="log_uuid";var Se,we,Ce,Ie=function(e){var n=e.autoScrollLogs,t=e.blocksByUUID,r=e.tableInnerRef,i=e.logs,l=e.onRowClick,c=e.pipeline,u=e.query,a=e.setSelectedLog,d=e.themeContext,p=(0,Ze.i)().height,f=(0,s.useMemo)((function(){return le.qL.INTEGRATION===(null===c||void 0===c?void 0:c.type)}),[c.type]),h=(0,me.Z)(i);(0,s.useEffect)((function(){var e;n&&(h||[]).length!==(i||[]).length&&(null===r||void 0===r||null===(e=r.current)||void 0===e||e.scrollIntoView(!1))}),[n,i,h,r]);var b=Object.keys(t||{});if(f){var y,_,Z=((null===c||void 0===c||null===(y=c.data_integration)||void 0===y||null===(_=y.catalog)||void 0===_?void 0:_.streams)||[]).map((function(e){return e.tap_stream_id})),O=new Set;b.forEach((function(e){Z.forEach((function(n){return O.add("".concat(e,":").concat(n,":0"))}))})),b=Array.from(O)}var P=Math.max.apply(Math,(0,ae.Z)(b.map((function(e){return e.length})))),k=Math.min(P*_e.r+12+8,50*x.iI),w=[{uuid:"_",width:28},{uuid:"Date",width:214},{uuid:"Block",width:k+16},{uuid:"Message"},{uuid:"_"}],T=(0,s.useCallback)((function(e){var n,t,r,i=e.data,c=e.index,s=e.style,d=i.blocksByUUID,p=i.logs,h=i.themeContext,b=p[c],y=b.content,_=b.data,Z=b.name,O=_||{},P=O.block_uuid,w=O.level,T=O.message,E=O.pipeline_uuid,A=O.timestamp,R=O.uuid,M=P||Z.split(".log")[0],N=M.split(":");f&&(M=N[0],t=N[1],r=N[2]);var Y=d[M];if(Y||(Y=d[N[0]]),Y){var W=(0,C.qn)(Y.type,{blockColor:Y.color,theme:h}).accent;n=(0,D.jsx)(v.ZP,{alignItems:"center",children:(0,D.jsx)(fe(),{as:"/pipelines/".concat(E,"/edit?block_uuid=").concat(M),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,D.jsxs)(B.Z,{block:!0,fullWidth:!0,sameColorAsText:!0,verticalAlignContent:!0,children:[(0,D.jsx)(m.Z,{color:W,size:1.5*x.iI,square:!0}),(0,D.jsx)(g.Z,{mr:1}),(0,D.jsxs)(j.ZP,{disableWordBreak:!0,monospace:!0,noWrapping:!0,title:P,width:k-16,children:[M,t&&":",t&&(0,D.jsx)(j.ZP,{default:!0,inline:!0,monospace:!0,children:t}),r>=0&&":",r>=0&&(0,D.jsx)(j.ZP,{default:!0,inline:!0,monospace:!0,children:r})]})]})})})}return(0,D.jsxs)(ye,{className:"table_row",onClick:function(){var e,n,t=p[c],r=null===(e=t.data)||void 0===e?void 0:e.uuid;u.log_uuid===r&&(r=null),null!==(n=t.data)&&void 0!==n&&n.error?null===l||void 0===l||l(re):null===l||void 0===l||l(te),(0,I.u7)((0,o.Z)({},ke,r)),a(r?t:null)},selected:(null===u||void 0===u?void 0:u.log_uuid)&&(null===u||void 0===u?void 0:u.log_uuid)===R,style:Pe({},s),children:[(0,D.jsx)(L.Z,{alignItems:"center",justifyContent:"center",children:(0,D.jsx)(S,Pe({},(0,o.Z)({},null===w||void 0===w?void 0:w.toLowerCase(),!0)))},"log_type"),(0,D.jsx)(L.Z,{children:(0,D.jsx)(j.ZP,{default:!0,monospace:!0,noWrapping:!0,children:V(A)},"log_timestamp")}),(0,D.jsx)(L.Z,{style:{minWidth:k,width:k},children:n}),(0,D.jsx)(L.Z,{style:{overflow:"auto"},children:(0,D.jsx)(j.ZP,{monospace:!0,textOverflow:!0,title:T||y,children:(0,D.jsx)(de(),{children:T||y})},"log_message")}),(0,D.jsx)(L.Z,{flex:"1",justifyContent:"flex-end",children:(0,D.jsx)(U._Q,{default:!0,size:2*x.iI})},"chevron_right_icon")]})}),[k,f,l,u,a]);return(0,D.jsxs)(be,{children:[(0,D.jsx)(xe,{children:w.map((function(e,n){return(0,D.jsx)(L.Z,{alignItems:"center",style:{height:4*x.iI,minWidth:e.width||null,width:e.width||null},children:"_"!==e.uuid&&(0,D.jsx)(j.ZP,{bold:!0,leftAligned:!0,monospace:!0,muted:!0,children:e.uuid})},"".concat(e,"_").concat(n))}))}),(0,D.jsx)(he.t7,{height:p-ve.Mz-86-34-58,innerRef:r,itemCount:i.length,itemData:{blocksByUUID:t,logs:i,pipeline:c,themeContext:d},itemSize:3.75*x.iI,width:"100%",children:T})]})},De=t(2713),Te=t(47999),Ee=t(55378),Ae=t(82944),Le="_limit",Re="_offset",Me=20,Ne=[_.LAST_HOUR,_.LAST_DAY,_.LAST_WEEK,_.LAST_30_DAYS],Be=(Se={},(0,o.Z)(Se,_.LAST_HOUR,3600),(0,o.Z)(Se,_.LAST_DAY,86400),(0,o.Z)(Se,_.LAST_WEEK,604800),(0,o.Z)(Se,_.LAST_30_DAYS,2592e3),Se),Ye=t(84779),We=t(42305),He=t(7715),Ue=t(59e3);function Je(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Ge(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Je(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Je(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}!function(e){e.START="start_timestamp",e.END="end_timestamp"}(Ce||(Ce={}));var qe=(we={},(0,o.Z)(we,Le,Me),(0,o.Z)(we,Re,0),we),ze={blackBorder:!0,inline:!0,paddingBottom:.75*x.iI,paddingTop:.75*x.iI};var Fe=function(e){var n=e.allPastLogsLoaded,t=e.loadNewerLogInterval,r=e.loadPastLogInterval,i=e.selectedRange,l=e.setSelectedRange,c=(0,s.useState)(null),u=c[0],a=c[1],d=(0,s.useState)(null),p=d[0],h=d[1],m=(0,s.useState)({hour:"00",minute:"00"}),b=m[0],y=m[1],Z=(0,s.useState)(new Date),O=Z[0],P=Z[1],k=(0,s.useState)({hour:(0,We.lJ)(String((new Date).getUTCHours())),minute:(0,We.lJ)(String((new Date).getUTCMinutes()))}),S=k[0],w=k[1],C=(0,Ue.iV)(),T=(0,me.Z)(C);return(0,s.useEffect)((function(){if(!(0,He.Xy)(C,T)){var e=C.start_timestamp,n=C.end_timestamp;if(e){var t=(0,We.Pc)(e),r=t.date,i=t.hour,o=t.minute;h(r),y({hour:(0,We.lJ)(i),minute:(0,We.lJ)(o)});var c=Math.ceil(Date.now()/1e3)-e;Math.abs(c-Be[_.LAST_DAY])<=60&&l(_.LAST_DAY)}if(n){var u=(0,We.Pc)(n),a=u.date,s=u.hour,d=u.minute;P(a),w({hour:(0,We.lJ)(s),minute:(0,We.lJ)(d)})}}}),[C,T]),(0,D.jsx)(g.Z,{py:1,children:(0,D.jsxs)(v.ZP,{alignItems:"center",children:[(0,D.jsx)(R.ZP,Ge(Ge({},ze),{},{disabled:n,onClick:r,uuid:"logs/load_older_logs",children:n?"All past logs within range loaded":"Load older logs"})),(0,D.jsx)(g.Z,{mr:1}),(0,D.jsx)(R.ZP,Ge(Ge({},ze),{},{disabled:(null===C||void 0===C?void 0:C._offset)<=0,onClick:t,uuid:"logs/load_newer_logs",children:"Load newer logs"})),(0,D.jsx)(g.Z,{mr:2}),(0,D.jsx)(Ee.Z,{compact:!0,defaultColor:!0,onChange:function(e){e.preventDefault();var n=e.target.value;if(l(n),Ne.includes(n)){var t,r=(0,Ye.JI)(Be[n]);(0,I.u7)(Ge((t={},(0,o.Z)(t,Ce.START,r),(0,o.Z)(t,Ce.END,null),t),qe))}},paddingRight:4*x.iI,placeholder:"Select time range",value:i,children:Object.values(_).map((function(e){return(0,D.jsx)("option",{value:e,children:e},e)}))}),(0,D.jsx)(g.Z,{mr:1}),i===_.CUSTOM_RANGE&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(Ae.Z,{compact:!0,defaultColor:!0,onClick:function(){return a(0)},paddingRight:0,placeholder:"Start",value:p?(0,We.AY)(p,null===b||void 0===b?void 0:b.hour,null===b||void 0===b?void 0:b.minute):""}),(0,D.jsx)(Te.Z,{onClickOutside:function(){return a(null)},open:0===u,style:{position:"relative"},children:(0,D.jsx)(De.Z,{selectedDate:p,selectedTime:b,setSelectedDate:h,setSelectedTime:y})}),(0,D.jsx)(g.Z,{px:1,children:(0,D.jsx)(j.ZP,{children:"to"})}),(0,D.jsx)(Ae.Z,{compact:!0,defaultColor:!0,onClick:function(){return a(1)},paddingRight:0,placeholder:"End",value:O?(0,We.AY)(O,null===S||void 0===S?void 0:S.hour,null===S||void 0===S?void 0:S.minute):""}),(0,D.jsx)(Te.Z,{onClickOutside:function(){return a(null)},open:1===u,style:{position:"relative"},children:(0,D.jsx)(De.Z,{selectedDate:O,selectedTime:S,setSelectedDate:P,setSelectedTime:w})}),(0,D.jsx)(g.Z,{mr:1}),(0,D.jsx)(f.Z,{borderRadius:x.iI/2,onClick:function(){var e,n=(0,We.BP)(p,b.hour,b.minute),t=(0,We.BP)(O,S.hour,S.minute);(0,I.u7)(Ge((e={},(0,o.Z)(e,Ce.START,(0,We.A5)(n)),(0,o.Z)(e,Ce.END,(0,We.A5)(t)),e),qe))},padding:"".concat(x.iI/2,"px"),primary:!0,children:"Search"})]})]})})},Ke=t(70902),Xe=t(82531),Ve=t(11366),Qe=t(59920),$e=t(91427);function en(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 nn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?en(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):en(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var tn="pipeline_run_id[]",rn="block_run_id[]";function on(e){var n=e.pipeline,t=(0,s.useContext)(u.ThemeContext),r=(0,s.useRef)(null),i=n.uuid,l=(0,s.useState)(null),c=l[0],f=l[1],h=(0,s.useState)(null),m=h[0],b=h[1],y=(0,s.useState)(null),Z=y[0],O=y[1],P=(0,s.useState)(null),k=P[0],S=P[1],C=(0,s.useState)(te),T=C[0],E=C[1],M=(0,s.useState)((0,$e.U2)(Ve.Tz,!0)),N=M[0],B=M[1],Y=Xe.ZP.pipelines.detail(i,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,W=(0,s.useMemo)((function(){return nn(nn({},null===Y||void 0===Y?void 0:Y.pipeline),{},{uuid:i})}),[Y,i]),H=(null===W||void 0===W?void 0:W.type)===le.qL.INTEGRATION,U=(0,s.useMemo)((function(){return W.blocks||[]}),[W]),J=(0,s.useMemo)((function(){var e=(0,Q.HK)(U,(function(e){return e.uuid}));if(H){var n,t=(0,Q.sE)(U,(function(e){var n=e.type;return d.tf.DATA_LOADER===n})),r=t?(0,a.Qc)(t.content):{},i=((null===r||void 0===r||null===(n=r.catalog)||void 0===n?void 0:n.streams)||[]).reduce((function(e,n){var t=n.tap_stream_id,r={};return U.forEach((function(e){var n=e.uuid,i=e.type,o="".concat(n,":").concat(t);r[o]={type:i}})),nn(nn({},e),r)}),{});e=nn(nn({},i),e)}return e}),[U,H]),G=(0,Ue.iV)(),q=!(null!==G&&void 0!==G&&G.start_timestamp)&&!(null!==G&&void 0!==G&&G.hasOwnProperty(tn)||null!==G&&void 0!==G&&G.hasOwnProperty(rn)),z=(0,Ye.JI)(Be[_.LAST_DAY]),F=Xe.ZP.logs.pipelines.list(c?i:null,(0,He.gR)(q?nn(nn({},c),{},{start_timestamp:z}):c,[ke]),{refreshInterval:5e3}),K=F.data,V=F.mutate,$=!K,ee=(0,s.useMemo)((function(){var e;if(null!==K&&void 0!==K&&null!==(e=K.logs)&&void 0!==e&&e[0]){var n,t=(null===(n=K.logs)||void 0===n?void 0:n[0])||{};return{blockRunLogs:t.block_run_logs,pipelineRunLogs:t.pipeline_run_logs,totalBlockRunLogCount:t.total_block_run_log_count,totalPipelineRunLogCount:t.total_pipeline_run_log_count}}return{blockRunLogs:[],pipelineRunLogs:[],totalBlockRunLogCount:0,totalPipelineRunLogCount:0}}),[K]),ne=ee.blockRunLogs,re=ee.pipelineRunLogs,ce=ee.totalBlockRunLogCount,ae=ee.totalPipelineRunLogCount,se=+(null===G||void 0===G?void 0:G._limit)>=ce&&+(null===G||void 0===G?void 0:G._limit)>=ae,de=(0,s.useMemo)((function(){return(0,Q.YC)(ne.concat(re).reduce((function(e,n){return e.concat(X(n))}),[]),(function(e){var n=e.data;return(null===n||void 0===n?void 0:n.timestamp)||0}))}),[ne,re]),pe=(0,s.useMemo)((function(){return de.filter((function(e){var n=e.data,t=[];if(!c)return!0;if(t.push(!(0,He.Qr)(n)),c["level[]"]&&t.push(c["level[]"].includes(null===n||void 0===n?void 0:n.level)),c["block_type[]"]){var r,i,o=null===n||void 0===n?void 0:n.block_uuid;if(H)o=null===n||void 0===n||null===(i=n.block_uuid)||void 0===i?void 0:i.split(":").slice(0,2).join(":");t.push(c["block_type[]"].includes(null===(r=J[o])||void 0===r?void 0:r.type))}if(c["pipeline_run_id[]"]){var l=null===n||void 0===n?void 0:n.pipeline_run_id;t.push(c["pipeline_run_id[]"].includes(String(l)))}if(c["block_run_id[]"]){var u=null===n||void 0===n?void 0:n.block_run_id;t.push(c["block_run_id[]"].includes(String(u)))}return t.every((function(e){return e}))}))}),[J,H,de,c]),fe=pe.length,he=(0,me.Z)(G);(0,s.useEffect)((function(){var e;q&&(0,I.u7)((e={},(0,o.Z)(e,Le,Me),(0,o.Z)(e,Re,0),(0,o.Z)(e,"start_timestamp",z),e))}),[q]),(0,s.useEffect)((function(){(0,He.Xy)(G,he)||f(G)}),[G,he]);var ve=(0,me.Z)(m);(0,s.useEffect)((function(){var e=G.log_uuid;!e||m||ve||b(de.find((function(n){var t=n.data;return(null===t||void 0===t?void 0:t.uuid)===e})))}),[de,G,m,ve]);var je=G._limit,be=G._offset,xe=+(je||0),ye=+(be||0),_e=Math.max(ce,ae),Ze=(0,s.useCallback)((function(){var e,n=xe,t=ye;(ce>xe||ae>xe)&&(n=Math.min(_e,xe+Me),t=Math.min(ye+Me,_e-_e%Me),(0,I.u7)(nn(nn({},G),{},(e={},(0,o.Z)(e,Le,n),(0,o.Z)(e,Re,t),e))))}),[_e,xe,ye,G,ce,ae]),Oe=(0,s.useCallback)((function(){var e,n=xe,t=ye;xe>=Me&&(n=Math.max(Me,xe-Me),xe>=_e&&_e%Me!==0&&(n=_e-_e%Me),t=Math.max(0,ye-Me),(0,I.u7)(nn(nn({},G),{},(e={},(0,o.Z)(e,Le,n),(0,o.Z)(e,Re,t),e))))}),[_e,xe,ye,G]),Pe=(0,s.useCallback)((function(){var e=!N;B(e),(0,$e.t8)(Ve.Tz,e)}),[N]),Se=(0,s.useMemo)((function(){return(0,D.jsx)(Ie,{autoScrollLogs:N,blocksByUUID:J,logs:pe,onRowClick:E,pipeline:W,query:c,setSelectedLog:b,tableInnerRef:r,themeContext:t})}),[N,J,pe,W,c,t]);return(0,D.jsxs)(oe.Z,{after:m&&(0,D.jsx)(ie,{log:m,onClose:function(){(0,I.u7)((0,o.Z)({},ke,null)),b(null)},selectedTab:T,setSelectedTab:E}),afterHidden:!m,afterWidth:80*x.iI,before:(0,D.jsx)(A,{blocks:U,query:c}),beforeWidth:20*x.iI,breadcrumbs:[{label:function(){return"Logs"}}],errors:k,pageName:Qe.M.PIPELINE_LOGS,pipeline:W,setErrors:S,subheader:null,title:function(e){var n=e.name;return"".concat(n," logs")},uuid:"pipeline/logs",children:[(0,D.jsx)(g.Z,{px:x.cd,py:1,children:(0,D.jsxs)(j.ZP,{children:[!$&&(0,D.jsxs)(D.Fragment,{children:[(0,w.x6)(fe)," logs found",(0,D.jsx)(Fe,{allPastLogsLoaded:se,loadNewerLogInterval:Oe,loadPastLogInterval:Ze,selectedRange:Z,setSelectedRange:O})]}),$&&"Searching..."]})}),(0,D.jsx)(p.Z,{light:!0}),$&&(0,D.jsx)(g.Z,{p:x.cd,children:(0,D.jsx)(ue.Z,{})}),!$&&pe.length>=1&&Se,(0,D.jsx)(g.Z,{p:"".concat(1.5*x.iI,"px"),children:(0,D.jsxs)(v.ZP,{alignItems:"center",children:[(0,D.jsx)(R.ZP,nn(nn({},ze),{},{onClick:function(){"0"===(null===G||void 0===G?void 0:G._offset)&&(null===G||void 0===G?void 0:G._limit)===String(Me)?V(null):(0,I.u7)({_limit:Me,_offset:0})},uuid:"logs/toolbar/load_newest",children:"Load latest logs"})),(0,D.jsx)(g.Z,{mr:1}),(0,D.jsx)(R.ZP,nn(nn({},ze),{},{backgroundColor:ge.Z.background.page,onClick:function(){var e;null===r||void 0===r||null===(e=r.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"})},uuid:"logs/toolbar/scroll_to_bottomt",children:"Scroll to bottom"})),(0,D.jsx)(g.Z,{mr:1}),(0,D.jsxs)(L.Z,{children:[(0,D.jsx)(j.ZP,{noWrapping:!0,children:"Auto-scroll to new logs"}),(0,D.jsx)(g.Z,{mr:1}),(0,D.jsx)(Ke.Z,{checked:N,compact:!0,onCheck:Pe})]})]})})]})}on.getInitialProps=function(){var e=(0,i.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 ln=(0,ce.Z)(on)},11366:function(e,n,t){"use strict";t.d(n,{Ch:function(){return l},H8:function(){return r},Tz:function(){return c},g6:function(){return i},vF:function(){return o}});var r="pipeline_edit_before_tab_selected",i="pipeline_edit_hidden_blocks",o="pipeline_edit_block_output_logs",l="setup_ai_later",c="auto_scroll_logs"},42305:function(e,n,t){"use strict";t.d(n,{A5:function(){return b},AY:function(){return x},BP:function(){return j},JX:function(){return g},OC:function(){return d},Pc:function(){return y},Ro:function(){return _},Tz:function(){return v},Y_:function(){return O},d$:function(){return m},jV:function(){return Z},lJ:function(){return P},n1:function(){return f},s8:function(){return a},vk:function(){return o},yD:function(){return s}});var r,i,o,l=t(82394),c=t(92083),u=t.n(c);!function(e){e.TODAY="today",e.WEEK="week",e.MONTH="month"}(o||(o={}));var a=(r={},(0,l.Z)(r,o.TODAY,"today"),(0,l.Z)(r,o.WEEK,"last 7 days"),(0,l.Z)(r,o.MONTH,"last 30 days"),r),s=(i={},(0,l.Z)(i,o.TODAY,0),(0,l.Z)(i,o.WEEK,6),(0,l.Z)(i,o.MONTH,29),i),d="YYYY-MM-DD HH:mm:ss",p="YYYY-MM-DD HH:mm",f="YYYY-MM-DD",h="MMMM D, YYYY";function m(e,n){var t=n.dayAgo,r=n.includeSeconds,i=n.utcFormat,o=u()(e),l=p;return i&&(o=o.utc()),t&&(o=o.subtract(1,"days")),r&&(l=d),o.format(l)}function v(e){var n=m((new Date).toISOString(),{includeSeconds:!0,utcFormat:!0});return null!==e&&void 0!==e&&e.dateObj?new Date(n):n}function g(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return u().unix(e).format(null!==n&&void 0!==n&&n.withSeconds?d:p)}function j(e,n,t){return u()(e).utc().hours(+n).minutes(+t).format()}function b(e){return u()(e).unix()}function x(e,n,t,r){var i="".concat(e.toISOString().split("T")[0]," ").concat(n,":").concat(t);return r?"".concat(i,":").concat(r):i}function y(e){var n=u().unix(+e).utc();return{date:n.toDate(),hour:String(n.hour()),minute:String(n.minute())}}function _(e,n){var t=u().utc(),r=u().utc();null!==n&&void 0!==n&&n.localTime&&(t=u()().local(),r=u()().local());var i=(t=t.subtract(e,"days")).format(h),o=r.format(h);return null!==n&&void 0!==n&&n.endDateOnly?o:"".concat(i," - ").concat(o)}function Z(e,n){var t=null!==n&&void 0!==n&&n.localTime?u()().local():u().utc();if(e===o.WEEK){var r=s[o.WEEK];t=t.subtract(r,"days")}else if(e===o.MONTH){var i=s[o.MONTH];t=t.subtract(i,"days")}return null!==n&&void 0!==n&&n.isoString?t.startOf("day").toISOString():t.startOf("day").format(d)}function O(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:90,n=new Date,t=[],r=0;r<e;r++)t.unshift(n.toISOString().split("T")[0]),n.setDate(n.getDate()-1);return t}function P(e){return e.padStart(2,"0")}},84779:function(e,n,t){"use strict";t.d(n,{JI:function(){return o},uf:function(){return i}});var r=t(75582),i=function(e){var n=String(e).split("."),t=(0,r.Z)(n,2),i=t[0],o=t[1];return"".concat(i.replace(/\B(?=(\d{3})+(?!\d))/g,",")).concat(o?".".concat(o):"")};function o(e){var n=Math.floor(Date.now()/1e3);return e>0?n-e:n}},62453:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/logs",function(){return t(19464)}])}},function(e){e.O(0,[844,9902,426,4259,4495,1424,1005,7815,6422,547,4822,9774,2888,179],(function(){return n=62453,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-df014ddb14ebcef4.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[244],{51099:function(n,e,t){"use strict";t.d(e,{Q:function(){return a}});t(82684);var i=t(60328),r=t(67971),o=t(86673),l=t(22341),u=t(73899),c=t(49125),s=t(28598),a=22;e.Z=function(n){var e=n.page,t=n.maxPages,a=n.onUpdate,d=n.totalPages,p=[],f=t;if(f>d)p=Array.from({length:d},(function(n,e){return e}));else{var h=Math.floor(f/2),v=e-h;e+h>=d?(v=d-f+2,f-=2):e-h<=0?(v=0,f-=2):(f-=4,v=e-Math.floor(f/2)),p=Array.from({length:f},(function(n,e){return e+v}))}return(0,s.jsx)(s.Fragment,{children:d>0&&(0,s.jsxs)(r.ZP,{alignItems:"center",children:[(0,s.jsx)(i.Z,{disabled:0===e,onClick:function(){return a(e-1)},children:(0,s.jsx)(l.Hd,{size:1.5*c.iI,stroke:"#AEAEAE"})}),!p.includes(0)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(i.Z,{onClick:function(){return a(0)},borderLess:!0,noBackground:!0,children:1})},0),!p.includes(1)&&(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(i.Z,{notClickable:!0,noBackground:!0,noPadding:!0,children:"..."})},0)]}),p.map((function(n){return(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(i.Z,{onClick:function(){n!==e&&a(n)},notClickable:n===e,backgroundColor:n===e&&u.a$,borderLess:!0,noBackground:!0,children:n+1})},n)})),!p.includes(d-1)&&(0,s.jsxs)(s.Fragment,{children:[!p.includes(d-2)&&(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(i.Z,{notClickable:!0,noBackground:!0,noPadding:!0,children:"..."})},0),(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(i.Z,{onClick:function(){return a(d-1)},borderLess:!0,noBackground:!0,children:d})},d-1)]}),(0,s.jsx)(o.Z,{ml:1}),(0,s.jsx)(i.Z,{disabled:e===d-1,onClick:function(){return a(e+1)},children:(0,s.jsx)(l.Kw,{size:1.5*c.iI,stroke:"#AEAEAE"})})]})})}},40030:function(n,e,t){"use strict";var i=t(38626),r=t(23831),o=i.default.div.withConfig({displayName:"PageSectionHeader",componentId:"sc-1wznrcv-0"})(["left:0;position:sticky;top:0;width:100%;z-index:3;",""],(function(n){return"\n background-color: ".concat(n.backgroundColor||(n.theme.background||r.Z.background).page,";\n border-bottom: 1px solid ").concat((n.theme.borders||r.Z.borders).medium,";\n ")}));e.Z=o},22673:function(n,e,t){"use strict";var i=t(82684),r=t(68792),o=t(31811),l=t(38626),u=t(65292),c=t(23831),s=t(2005),a=t(49125),d=t(28598);e.Z=function(n){var e=n.language,t=n.maxWidth,p=n.showLineNumbers,f=n.small,h=n.source,v=n.wrapLines,g=(0,i.useContext)(l.ThemeContext);function m(n){var i=n.value;return(0,d.jsx)(o.Z,{customStyle:{backgroundColor:(g.background||c.Z.background).popup,border:"none",borderRadius:"none",boxShadow:"none",fontFamily:s.Vp,fontSize:f?12:14,marginBottom:0,marginTop:0,maxWidth:t,paddingBottom:2*a.iI,paddingTop:2*a.iI},language:e,lineNumberStyle:{color:(g.content||c.Z.content).muted},showLineNumbers:p,style:u._4,useInlineStyles:!0,wrapLines:v,children:i})}return(0,d.jsx)(r.D,{components:{code:function(n){var e=n.children;return(0,d.jsx)(m,{value:e})}},children:h})}},32316:function(n,e,t){"use strict";t.d(e,{Z:function(){return g}});var i=t(82684),r=t(60328),o=t(67971),l=t(882),u=t(86673),c=t(19711),s=t(99994),a=t(38626),d=t(49125),p=t(37391),f=a.default.div.withConfig({displayName:"indexstyle__TabsContainerStyle",componentId:"sc-segf7l-0"})(["padding-left:","px;padding-right:","px;"," "," ",""],d.cd*d.iI,d.cd*d.iI,(function(n){return n.noPadding&&"\n padding: 0;\n "}),(function(n){return n.allowScroll&&"\n overflow: auto;\n "}),p.w5),h=t(66653),v=t(28598);var g=function(n){var e=n.allowScroll,t=n.compact,a=n.contained,p=n.noPadding,g=n.onClickTab,m=n.regularSizeText,x=n.selectedTabUUID,b=n.small,j=n.tabs,Z=(0,i.useMemo)((function(){var n=j.length,e=[];return j.forEach((function(i,a){var p=i.Icon,f=i.IconSelected,j=i.label,Z=i.uuid,_=Z===x,C=_&&f||p,k=j?j():Z,w=(0,v.jsxs)(o.ZP,{alignItems:"center",children:[C&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(C,{default:!_,size:2*d.iI}),(0,v.jsx)(u.Z,{mr:1})]}),(0,v.jsx)(c.ZP,{bold:!0,default:!_,noWrapping:!0,small:!m,children:k})]});a>=1&&n>=2&&e.push((0,v.jsx)("div",{style:{marginLeft:1.5*d.iI}},"spacing-".concat(Z))),_?e.push((0,v.jsx)(l.Z,{backgroundGradient:s.yr,backgroundPanel:!0,borderLess:!0,borderWidth:2,compact:t||b,onClick:function(n){(0,h.j)(n),g(i)},paddingUnitsHorizontal:1.75,paddingUnitsVertical:1.25,small:b,children:w},Z)):e.push((0,v.jsx)("div",{style:{padding:2},children:(0,v.jsx)(r.Z,{borderLess:!0,compact:t||b,default:!0,onClick:function(n){(0,h.j)(n),g(i)},outline:!0,small:b,children:w})},"button-tab-".concat(Z)))})),e}),[t,g,x,b,j]),_=(0,v.jsx)(o.ZP,{alignItems:"center",children:Z});return a?_:(0,v.jsx)(f,{allowScroll:e,noPadding:p,children:_})}},95820:function(n,e,t){"use strict";t.d(e,{i:function(){return a}});t(82684);var i=t(38626),r=(t(93461),t(67971),t(10919),t(86673),t(47329)),o=t.n(r);o().node,o().node,o().node.isRequired,o().bool,o().string.isRequired;t(19711);var l=t(31969),u=t(2005),c=t(49125),s=t(73942),a=(t(28598),"tab");i.default.div.withConfig({displayName:"Tabs__TabHeaderContainerStyle",componentId:"sc-rojme5-0"})(["",""],(function(n){return n.containerWidthPercentage&&"\n width: ".concat(n.containerWidthPercentage,"%;\n ")})),i.default.div.withConfig({displayName:"Tabs__TabHeader",componentId:"sc-rojme5-1"})(["border-top-left-radius:","px;border-top-right-radius:","px;margin-right:","px;position:relative;z-index:2;"," "," ",""],s.BG,s.BG,6*c.iI,(function(n){return n.noBottomBorder&&"\n border-bottom: none;\n "}),(function(n){return n.active&&"\n border-bottom: ".concat(c.cd,"px solid;\n border-color: ").concat((n.theme.interactive||l.Z.interactive).linkPrimary,";\n ")}),(function(n){return n.fullWidth&&"\n width: 100%;\n "})),i.default.div.withConfig({displayName:"Tabs__LinkStyle",componentId:"sc-rojme5-2"})(["align-items:center;display:flex;"," "," ",""],(function(n){return n.bold&&"\n font-family: ".concat(u.nF,";\n ")}),(function(n){return n.fullWidth&&"\n justify-content: center;\n "}),(function(n){return!n.disabled&&"\n &:hover {\n path {\n fill: ".concat((n.theme.content||l.Z.interactive).linkPrimary," !important;\n }\n }\n ")}))},77492:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return W}});var i=t(77837),r=t(75582),o=t(82394),l=t(38860),u=t.n(l),c=t(82684),s=t(83455),a=t(34376),d=t(28598);var p=function(n){var e=n.size;return(0,d.jsxs)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,d.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.5 8.5H15.5V3.5H20.5V8.5ZM14 9V3C14 2.44772 14.4477 2 15 2H21C21.5523 2 22 2.44772 22 3V9C22 9.55229 21.5523 10 21 10H15C14.4477 10 14 9.55229 14 9ZM2 5V12.5V14V21.5C2 22.0523 2.44772 22.5 3 22.5H10.5H12H19.5C20.0523 22.5 20.5 22.0523 20.5 21.5V13.5C20.5 12.9477 20.0523 12.5 19.5 12.5H12V5C12 4.44772 11.5523 4 11 4H3C2.44772 4 2 4.44772 2 5ZM10.5 14V21H3.5V14H10.5ZM19 14V21H12V14H19ZM10.5 5.5V12.5H3.5V5.5H10.5Z",fill:"url(#paint0_linear_2842_55048)"}),(0,d.jsx)("defs",{children:(0,d.jsxs)("linearGradient",{id:"paint0_linear_2842_55048",x1:"2",y1:"12.25",x2:"22",y2:"12.25",gradientUnits:"userSpaceOnUse",children:[(0,d.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,d.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})},f=t(27125),h=t(60328),v=t(32316),g=t(67971),m=t(40030),x=t(51099);var b=function(n){var e=n.size;return(0,d.jsxs)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,d.jsx)("g",{clipPath:"url(#clip0_3007_70027)",children:(0,d.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.75 6.6859C1.75 3.95988 3.95988 1.75 6.6859 1.75h.98788c-.23022.41608-.36128.89466-.36128 1.40385s.13106.98777.36128 1.40384h-.71224c-1.32761 0-2.40385 1.07624-2.40385 2.40385 0 1.32761 1.07624 2.40385 2.40385 2.40385H15.609c3.3916 0 6.141 2.74941 6.141 6.14101 0 3.3916-2.7494 6.141-6.141 6.141H9.55584c.23019-.416.36123-.8946.36123-1.4037 0-.5092-.13108-.9879-.36134-1.404H15.609c1.8409 0 3.3333-1.4923 3.3333-3.3333 0-1.8409-1.4924-3.3333-3.3333-3.3333H6.96154C4.08329 12.1731 1.75 9.83979 1.75 6.96154V6.6859zM10.2163.25H6.6859C3.13145.25.25 3.13145.25 6.6859v.27564c0 3.70666 3.00486 6.71156 6.71154 6.71156H15.609c1.0125 0 1.8333.8208 1.8333 1.8333s-.8208 1.8333-1.8333 1.8333H7.01282c-1.60375 0-2.90385 1.3001-2.90385 2.9039 0 1.3248.88713 2.4423 2.09974 2.7911.06039.0173.12158.0328.18352.0463.20007.0436.40785.0665.62099.0665l.02449-.0001H15.609c4.22 0 7.641-3.421 7.641-7.641 0-4.22-3.421-7.64101-7.641-7.64101H6.96154c-.49918 0-.90385-.40467-.90385-.90385 0-.49918.40467-.90385.90385-.90385h3.25636c1.6038 0 2.9039-1.30009 2.9039-2.90384 0-1.60375-1.3001-2.903849-2.9039-2.90385h-.0016zm0 4.30769c-.77528 0-1.4038-.62852-1.4038-1.40384 0-.77505.62808-1.4034 1.403-1.40385h.0017c.7749.00045 1.403.6288 1.403 1.40385 0 .77532-.6285 1.40384-1.4039 1.40384zM7.01282 21.6474c-.10108 0-.19967-.0106-.29469-.0309-.03025-.0065-.06014-.0139-.08963-.0223-.58829-.1673-1.01912-.7086-1.01912-1.3505 0-.7753.62852-1.4039 1.40384-1.4039s1.40385.6286 1.40385 1.4039c0 .7696-.61935 1.3946-1.38683 1.4037h-.01742z",fill:"url(#paint0_linear_3007_70027)"})}),(0,d.jsxs)("defs",{children:[(0,d.jsxs)("linearGradient",{id:"paint0_linear_3007_70027",x1:"11.75",y1:".250001",x2:"11.75",y2:"23.1475",gradientUnits:"userSpaceOnUse",children:[(0,d.jsx)("stop",{offset:".28125",stopColor:"#7D55EC"}),(0,d.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]}),(0,d.jsx)("clipPath",{id:"clip0_3007_70027",children:(0,d.jsx)("path",{fill:"#fff",transform:"matrix(0 1 1 0 0 0)",d:"M0 0h24v24H0z"})})]})]})},j=t(60547),Z=t(47409),_=t(97496),C=t(41788),k=t(55378),w=t(86673),y=t(54283),P=t(82531),I=t(56681),S=t(66166),H=t(22341),R=t(33766),M=t(59920),E=t(98781),N=t(66050),O=t(95820),V=t(49125),T=t(7715),B=t(96510),z=t(59e3);function L(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,i)}return t}function U(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?L(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):L(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var A={Icon:H.Nt,IconSelected:b,label:function(){return"Pipeline runs"},uuid:"pipeline_runs"},D={Icon:H.Re,IconSelected:p,label:function(){return"Block runs"},uuid:"block_runs"},F=[A,D];function G(n){var e,t,i=n.pipeline,o=(0,a.useRouter)(),l=(0,c.useState)(null),u=l[0],p=l[1],b=(0,c.useState)(A),C=b[0],H=b[1],L=(0,c.useState)(I.G7[0]),G=L[0],W=L[1],q=(0,c.useState)({}),K=q[0],X=q[1],Q=(0,c.useState)(null),Y=Q[0],$=Q[1],J=(0,c.useMemo)((function(){return A.uuid===(null===C||void 0===C?void 0:C.uuid)}),[null===C||void 0===C?void 0:C.uuid]),nn=i.uuid,en=P.ZP.pipelines.detail(nn,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,tn=(0,c.useMemo)((function(){return U(U({},null===en||void 0===en?void 0:en.pipeline),{},{uuid:nn})}),[en,nn]),rn=(0,c.useState)(),on=rn[0],ln=rn[1],un=(0,z.iV)(),cn=(0,S.Z)(un),sn=null!==un&&void 0!==un&&un.page?un.page:0;(0,c.useEffect)((function(){var n=un.pipeline_run_id,e=un.status;if(!(0,T.Xy)(un,cn)){var t=U(U({},cn),un);n?t.pipeline_run_id=n:t.pipeline_uuid=nn,e?t.status=e:delete t.status,$(t),X({})}}),[nn,un,cn]);var an={_limit:30,_offset:30*sn,pipeline_uuid:nn},dn=(0,T.gR)(U(U({},Y),an),[O.i,"page"]);J&&(dn=(0,T.gR)(dn,[R.O2]));var pn=P.ZP.block_runs.list(dn,{},{pauseFetch:!Y}).data,fn=(0,c.useMemo)((function(){return(null===pn||void 0===pn?void 0:pn.block_runs)||[]}),[pn]),hn=U({},an);null!==un&&void 0!==un&&un.status&&(hn.status=un.status),J||(hn=(0,T.gR)(hn,[R.O2]));var vn=P.ZP.pipeline_runs.list(hn,{refreshInterval:5e3},{pauseFetch:!nn}),gn=vn.data,mn=vn.mutate,xn=(0,c.useMemo)((function(){return(null===gn||void 0===gn?void 0:gn.pipeline_runs)||[]}),[gn]),bn=(0,c.useMemo)((function(){var n,e;return J?(null===gn||void 0===gn||null===(n=gn.metadata)||void 0===n?void 0:n.count)||[]:(null===pn||void 0===pn||null===(e=pn.metadata)||void 0===e?void 0:e.count)||[]}),[null===pn||void 0===pn||null===(e=pn.metadata)||void 0===e?void 0:e.count,null===gn||void 0===gn||null===(t=gn.metadata)||void 0===t?void 0:t.count,J]),jn=(0,c.useMemo)((function(){return xn.some((function(n){var e=n.status;return e===N.V.INITIAL||e===N.V.RUNNING}))}),[xn]),Zn=(0,c.useMemo)((function(){return Object.values(K||{}).filter((function(n){return null!==n}))}),[K]),_n=(0,s.Db)(P.ZP.pipelines.useUpdate(nn),{onSuccess:function(n){return(0,B.wD)(n,{callback:function(){X({}),mn()},onErrorCallback:function(n,e){return p({errors:e,response:n})}})}}),Cn=(0,r.Z)(_n,2),kn=Cn[0],wn=Cn[1].isLoading,yn=(0,S.Z)(C);(0,c.useEffect)((function(){var n=un[O.i];n&&H(F.find((function(e){return e.uuid===n})))}),[un,C,yn]);var Pn=(0,c.useMemo)((function(){return(0,d.jsx)(w.Z,{p:2,children:(0,d.jsx)(x.Z,{maxPages:9,onUpdate:function(n){var e=Number(n),t=U(U({},un),{},{page:e>=0?e:0});o.push("/pipelines/[pipeline]/runs","/pipelines/".concat(nn,"/runs?").concat((0,z.uM)(t)))},page:Number(sn),totalPages:Math.ceil(bn/30)})})}),[sn,nn,un,o,bn]),In=(0,c.useMemo)((function(){return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(_.Z,{allowBulkSelect:(null===tn||void 0===tn?void 0:tn.type)!==E.qL.STREAMING,fetchPipelineRuns:mn,onClickRow:function(n){return ln((function(e){var t=xn[n];return(null===e||void 0===e?void 0:e.id)!==t.id?t:null}))},pipelineRuns:xn,selectedRun:on,selectedRuns:K,setErrors:p,setSelectedRuns:X}),Pn]})}),[mn,Pn,null===tn||void 0===tn?void 0:tn.type,xn,on,K]),Sn=(0,c.useMemo)((function(){return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(f.Z,{blockRuns:fn,pipeline:tn}),Pn]})}),[fn,Pn,tn]);return(0,d.jsxs)(j.Z,{afterHidden:J&&!on,breadcrumbs:[{label:function(){return"Runs"}}],buildSidekick:J?function(n){return(0,I.ZP)(U(U({},n),{},{selectedRun:on,selectedTab:G,setSelectedTab:W}))}:function(n){return(0,I.ZP)(n)},errors:u,pageName:M.M.RUNS,pipeline:tn,setErrors:p,title:function(n){var e=n.name;return"".concat(e," runs")},uuid:"".concat(M.M.RUNS,"_").concat(nn),children:[(0,d.jsx)(m.Z,{children:(0,d.jsx)(w.Z,{py:1,children:(0,d.jsxs)(g.ZP,{alignItems:"center",children:[jn&&J&&(0,d.jsx)(w.Z,{pl:2,children:(0,d.jsx)(h.Z,{danger:!0,loading:wn,onClick:function(){kn({pipeline:{status:N.V.CANCELLED}})},outline:!0,children:"Cancel running pipeline runs"})}),Zn.length>0&&(0,d.jsx)(w.Z,{pl:2,children:(0,d.jsxs)(h.Z,{loading:wn,onClick:function(){kn({pipeline:{pipeline_runs:Zn,status:E.QK.RETRY}})},primary:!0,children:["Retry selected runs (",Zn.length,")"]})}),(0,d.jsx)(v.Z,{onClickTab:function(n){var e=n.uuid;$(null),(0,R.u7)({tab:e},{replaceParams:!0})},selectedTabUUID:null===C||void 0===C?void 0:C.uuid,tabs:F}),J&&(0,d.jsxs)(k.Z,{compact:!0,defaultColor:!0,onChange:function(n){n.preventDefault(),"all"===n.target.value?($(null),(0,R.u7)({tab:A.uuid},{replaceParams:!0})):(0,R.u7)({page:0,status:n.target.value})},paddingRight:4*V.iI,placeholder:"Select run status",value:null===Y||void 0===Y?void 0:Y.status,children:[(0,d.jsx)("option",{value:"all",children:"All statuses"},"all_statuses"),Z.IK.map((function(n){return(0,d.jsx)("option",{value:n,children:Z.Do[n]},n)}))]})]})})}),gn||pn?(0,d.jsxs)(d.Fragment,{children:[J&&In,D.uuid===(null===C||void 0===C?void 0:C.uuid)&&Sn]}):(0,d.jsx)(w.Z,{m:3,children:(0,d.jsx)(y.Z,{inverted:!0})})]})}G.getInitialProps=function(){var n=(0,i.Z)(u().mark((function n(e){var t;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.query.pipeline,n.abrupt("return",{pipeline:{uuid:t}});case 2:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}();var W=(0,C.Z)(G)},79897:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/runs",function(){return t(77492)}])}},function(n){n.O(0,[844,9902,426,1774,8792,7849,1424,1005,7815,6422,547,8952,7496,2786,9774,2888,179],(function(){return e=79897,n(n.s=e);var e}));var e=n.O();_N_E=e}]);
|
mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1424-846b754e84e6eac1.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1424],{28413:function(n,e,t){var r=t(82394),o=t(12691),i=t.n(o),c=t(67971),a=t(10919),l=t(86673),u=t(19711),d=t(22341),s=t(28598),p=t(82684);function f(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function h(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?f(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}e.Z=function(n){var e=n.breadcrumbs,t=e.length,r=[];return e.forEach((function(n,e){var o=n.bold,c=n.danger,f=n.label,b=n.linkProps,m=n.onClick,g=f();t>=2&&e>=1&&r.push((0,s.jsx)(l.Z,{mx:1,children:(0,s.jsx)(d._Q,{muted:!0})},"divider-".concat(g)));var v=(0,s.jsx)(u.ZP,{bold:o,danger:c,default:!o,monospace:!0,children:g}),x=(0,s.jsx)(l.Z,{ml:0===e?2:0,children:v},"breadcrumb-".concat(g));b?x=(0,p.createElement)(i(),h(h({},b),{},{key:"breadcrumb-link-".concat(g),passHref:!0}),(0,s.jsx)(a.Z,{block:!0,default:!o,noOutline:!0,sameColorAsText:o,children:x})):m&&(x=(0,s.jsx)(a.Z,{block:!0,default:!o,noOutline:!0,onClick:m,preventDefault:!0,sameColorAsText:o,children:x})),r.push(x)})),(0,s.jsx)(c.ZP,{alignItems:"center",children:r})}},64318:function(n,e,t){t.d(e,{u:function(){return c}});var r=t(38626),o=t(23831),i=t(49125),c=r.default.div.withConfig({displayName:"indexstyle__LinkStyle",componentId:"sc-y3uzxv-0"})(["padding:","px;&:hover{cursor:pointer;","}",""],i.iI,(function(n){return"\n background-color: ".concat((n.theme.interactive||o.Z.interactive).hoverBackground,";\n ")}),(function(n){return n.highlighted&&"\n background-color: ".concat((n.theme.interactive||o.Z.interactive).hoverBackground,";\n ")}))},33699:function(n,e,t){t.d(e,{Z:function(){return M}});var r=t(82394),o=t(89565),i=t.n(o),c=t(82684),a=t(35490),l=t(47999),u=t(19711),d=t(38626),s=t(23831),p=t(49125),f=t(37391),h=(0,d.css)([""," ",""],(function(n){return!n.width&&"\n width: 100%;\n "}),(function(n){return n.width&&"\n width: ".concat(n.width,"px;\n ")})),b=d.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-11d4rgl-0"})([""," "," height:100%;overflow:auto;position:absolute;",""],h,f.w5,(function(n){return"\n background-color: ".concat((n.theme.background||s.Z.background).codeTextarea,";\n ")})),m=d.default.div.withConfig({displayName:"indexstyle__InnerStyle",componentId:"sc-11d4rgl-1"})([""," padding:","px;"],h,p.cd*p.iI),g=(d.default.div.withConfig({displayName:"indexstyle__LineStyle",componentId:"sc-11d4rgl-2"})(["height:","px;"],20),(0,d.css)(["@keyframes cursor-blink{0%{opacity:0;}}::before{","}::after{","}"],(function(n){return n.focusBeginning&&"\n position: absolute;\n background-color: ".concat((n.theme.accent||s.Z.accent).warning,';\n content: "";\n display: inline-block;\n height: ').concat(20,"px;\n width: ").concat(p.iI,"px;\n opacity: 0.3;\n ")}),(function(n){return n.focused&&"\n background-color: ".concat((n.theme.accent||s.Z.accent).warning,';\n content: "";\n display: inline-block;\n height: ').concat(20,"px;\n width: ").concat(p.iI,"px;\n opacity: 0.3;\n ")}))),v=d.default.div.withConfig({displayName:"indexstyle__InputStyle",componentId:"sc-11d4rgl-3"})(["align-items:center;display:flex;gap:2px;",""],g),x=d.default.span.withConfig({displayName:"indexstyle__CharacterStyle",componentId:"sc-11d4rgl-4"})([""," ::after{","}"],g,(function(n){return n.focused&&"\n position: absolute;\n "})),y=t(82635),j=t(16115),w=t(94353),O=t(51504),Z=t(66653),k=t(41150),P=t(28598);function C(n,e){var t="undefined"!==typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(!t){if(Array.isArray(n)||(t=function(n,e){if(!n)return;if("string"===typeof n)return I(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);"Object"===t&&n.constructor&&(t=n.constructor.name);if("Map"===t||"Set"===t)return Array.from(n);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return I(n,e)}(n))||e&&n&&"number"===typeof n.length){t&&(n=t);var r=0,o=function(){};return{s:o,n:function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(n){throw n},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,c=!0,a=!1;return{s:function(){t=t.call(n)},n:function(){var n=t.next();return c=n.done,n},e:function(n){a=!0,i=n},f:function(){try{c||null==t.return||t.return()}finally{if(a)throw i}}}}function I(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=n[t];return r}function _(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function S(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?_(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):_(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var M=function(n){var e=n.lastMessage,t=n.onFocus,r=n.sendMessage,o=n.uuid,d=void 0===o?"terminal":o,s=n.width,p=(0,c.useRef)(null),f=(0,c.useRef)(null),h=(0,c.useState)(""),g=h[0],I=h[1],_=(0,c.useState)(0),M=_[0],F=_[1],T=(0,c.useState)(0),D=T[0],E=T[1],z=(0,c.useState)([]),H=z[0],B=z[1],R=(0,c.useState)(!1),A=R[0],L=R[1],N=(0,c.useState)(),U=N[0],W=N[1],G=(0,c.useMemo)((function(){return new a.Z}),[]),q=(0,c.useMemo)((function(){return{api_key:w.l,token:G.decodedToken.token}}),[G]);(0,c.useEffect)((function(){if(e){var n=JSON.parse(e.data);W((function(e){var t=e||"";return"stdout"===n[0]?t+n[1]:t}))}}),[e]);var Y=(0,c.useMemo)((function(){return U?U.split("\n").filter((function(n){return!n.includes("# Mage terminal settings command")})).map((function(n){return{data:n,type:y.Gi.TEXT}})):[]}),[U]);(0,c.useEffect)((function(){if(p.current&&f.current){var n=f.current.getBoundingClientRect().height;p.current.scrollTo(0,n)}}),[g,Y,p,f]);var V=(0,k.y)(),K=V.registerOnKeyDown,X=V.setDisableGlobalKeyboardShortcuts,Q=V.unregisterOnKeyDown;(0,c.useEffect)((function(){return function(){Q(d)}}),[Q,d]);var J=(0,c.useCallback)((function(){E((function(n){return n>0?n-1:n}))}),[]),$=(0,c.useCallback)((function(){E((function(n){return n<g.length?n+1:n}))}),[g]),nn=(0,c.useCallback)((function(n){r(JSON.stringify(S(S({},q),{},{command:["stdin",n]}))),r(JSON.stringify(S(S({},q),{},{command:["stdin","\r"]}))),(null===n||void 0===n?void 0:n.length)>=2&&(F(H.length+1),B((function(e){return e.concat(n)})),E(0)),I("")}),[H,r,I,B,F,E]),en=(0,c.useCallback)((function(n){var e=(null===n||void 0===n?void 0:n.split(/\n/))||[];if(e.length>1){var t=e.slice(0,-1);nn(g+t.join("\n"));var r=(e.slice(-1)[0]||"").trim();I(r),E(r.length)}else I((function(e){return e+n})),E(g.length+n.length)}),[g,nn,I,E]);K(d,(function(n,e,t){var o=n.code,i=n.key;if(A)if((0,Z.j)(n),(0,O.y)([j.PQ,j.VS],e))(null===g||void 0===g?void 0:g.length)>=0&&(r(JSON.stringify(S(S({},q),{},{command:["stdin",g]}))),r(JSON.stringify(S(S({},q),{},{command:["stdin","\x03"]}))),E(0)),I("");else if(j.Qj!==o||e[j.zX])if((0,O.y)([j.QK],e))J();else if((0,O.y)([j.DY],e))$();else if((0,O.y)([j.Bu],e)){if(H.length>=1){var c,a=Math.max(0,M-1);I(H[a]),F(a),E((null===(c=H[a])||void 0===c?void 0:c.length)||0)}}else if((0,O.y)([j.kD],e)){if(H.length>=1){var l=Math.min(H.length,M+1),u=H[l]||"";I(u),F(l),E(u.length)}}else if((0,O.y)([j.Uq],e))nn(g);else if((0,O.y)([j.zX,j.VS],e))navigator.clipboard.writeText(window.getSelection().toString());else if((0,O.y)([j.zX,j.Pd],e)||(0,O.y)([j.PQ,j.Pd],e)){var d,s,p,f,h;"undefined"===typeof(null===(d=navigator)||void 0===d?void 0:d.clipboard)?alert('Clipboard pasting is not allowed in insecure contexts. If your Mage deployment is not secure but you still want to use clipboard paste, you can override this setting (which should only be done temporarily) on Chrome browsers by going to "chrome://flags/#unsafely-treat-insecure-origin-as-secure", adding your origin to "Insecure origins treated as secure", and enabling that setting.'):null!==(s=navigator)&&void 0!==s&&null!==(p=s.clipboard)&&void 0!==p&&p.readText?navigator.clipboard.readText().then(en).catch((function(n){return alert("".concat(n,'\n For Chrome, users need to allow clipboard permissions for this site under "Privacy and security" -> "Site settings".\n For Safari, users need to allow the clipboard paste by clicking "Paste" in the context menu that appears.'))})):null!==(f=navigator)&&void 0!==f&&null!==(h=f.clipboard)&&void 0!==h&&h.read?navigator.clipboard.read().then((function(n){var e,t=C(n);try{for(t.s();!(e=t.n()).done;){var r,o=e.value,i=C(o.types);try{for(i.s();!(r=i.n()).done;){var c=r.value;if("text/plain"===c)return o.getType(c)}}catch(a){i.e(a)}finally{i.f()}}}catch(a){t.e(a)}finally{t.f()}})).then((function(n){return n.text()})).then(en).catch((function(n){return alert("".concat(n,'\n For Firefox, users need to allow clipboard paste by setting the "dom.events.asyncClipboard.read" preference in "about:config" to "true" and clicking "Paste" in the context menu that appears.'))})):alert('If pasting is not working properly, you may need to adjust some settings in your browser.\n\n For Firefox, users need to allow clipboard paste by setting both the "dom.events.asyncClipboard.clipboardItem" and "dom.events.asyncClipboard.read" preferences in "about:config" to "true" and clicking "Paste" in the context menu that appears.\n For Chrome, users need to allow clipboard permissions for this site under "Privacy and security" -> "Site settings".\n For Safari, users need to allow the clipboard paste by clicking "Paste" in the context menu that appears.\n')}else e[j.zX]||e[j.PQ]||1!==i.length||(I((function(n){return n.slice(0,D)+i+n.slice(D)})),E((function(n){return n+1})));else{var b=Math.max(0,D-1);I((function(n){return n.slice(0,b)+n.slice(D)})),E((function(n){return Math.max(0,n-1)}))}}),[g,H,M,A,I,B,F,d]);var tn=(0,c.useMemo)((function(){var n;return null===(n=Y[Y.length-1])||void 0===n?void 0:n.data}),[Y]);return(0,P.jsx)(b,{ref:p,width:s,children:(0,P.jsx)(l.Z,{isOpen:!0,onClick:function(){null===t||void 0===t||t(),L(!0),X(!0)},onClickOutside:function(){L(!1),X(!1)},style:{minHeight:"100%"},children:(0,P.jsxs)(m,{ref:f,width:s,children:[null===Y||void 0===Y?void 0:Y.reduce((function(n,e,t){if(t==Y.length-1)return n;var r=e||{},o=r.command,c=r.data,a=r.type,l=[];l=(l=Array.isArray(c)?c:[c]).filter((function(n){return n}));var d=[];return l.forEach((function(n,e){var r;if(y.jU.includes(a)&&(r=(0,P.jsx)(u.ZP,{monospace:!0,preWrap:!0,children:n&&(0,P.jsx)(i(),{children:n})})),r){var c="command-".concat(t,"-").concat(e,"-").concat(n);o||d.push((0,P.jsx)("div",{children:r},c))}})),n.concat(d)}),[]),(0,P.jsx)(v,{focused:A&&0===(null===g||void 0===g?void 0:g.length),children:(0,P.jsxs)(u.ZP,{monospace:!0,children:[(0,P.jsx)(u.ZP,{inline:!0,monospace:!0,children:tn&&(0,P.jsx)(i(),{children:tn})}),null===g||void 0===g?void 0:g.split("").map((function(n,e,t){return(0,P.jsxs)(x,{focusBeginning:A&&0===D&&0===e,focused:A&&(D===e+1||D>=t.length&&e===t.length-1),children:[" "===n&&(0,P.jsx)(P.Fragment,{children:"\xa0"}),"\n"===n&&(0,P.jsx)("br",{})," "!==n&&n]},"command-".concat(e,"-").concat(n))}))]})})]})})})}},86585:function(n,e,t){t.d(e,{Mz:function(){return l},T5:function(){return d},bf:function(){return u}});var r,o=t(82394),i=t(22341),c=t(88560),a=t(49125),l=7*a.iI,u=22,d=(a.iI,a.iI,r={},(0,o.Z)(r,c.RL.CATEGORY,i.WD),(0,o.Z)(r,c.RL.CATEGORY_HIGH_CARDINALITY,i.Rj),(0,o.Z)(r,c.RL.DATETIME,i.aw),(0,o.Z)(r,c.RL.EMAIL,i.GT),(0,o.Z)(r,c.RL.LIST,i.aV),(0,o.Z)(r,c.RL.NUMBER,i.qZ),(0,o.Z)(r,c.RL.NUMBER_WITH_DECIMALS,i.As),(0,o.Z)(r,c.RL.PHONE_NUMBER,i.LP),(0,o.Z)(r,c.RL.TEXT,i.KJ),(0,o.Z)(r,c.RL.TRUE_OR_FALSE,i.Kb),(0,o.Z)(r,c.RL.UUID,i.SS),(0,o.Z)(r,c.RL.ZIP_CODE,i.$t),r)},3055:function(n,e,t){t.d(e,{I5:function(){return l},Mz:function(){return a},y7:function(){return c}});var r=t(38626),o=t(23831),i=t(49125),c=2.5*i.iI,a=6*i.iI,l=r.default.div.withConfig({displayName:"indexstyle__HeaderStyle",componentId:"sc-1bk8irg-0"})(["height:","px;left:0;padding-left:","px;padding-right:","px;position:fixed;top:0;width:100%;z-index:10;",""],a,2*i.iI,2*i.iI,(function(n){return"\n background-color: ".concat((n.theme.background||o.Z.background).panel,";\n border-bottom: 1px solid ").concat((n.theme.borders||o.Z.borders).medium,";\n ")}))},41424:function(n,e,t){t.d(e,{Z:function(){return sn}});var r=t(75582),o=t(12691),i=t.n(o),c=t(82684),a=t(34376),l=t(35490),u=t(28413),d=t(60328),s=t(16634),p=t(47999),f=t(57639),h=t(93461),b=t(67971),m=t(62084),g=t(82394),v=t(56085),x=t(83455),y=t(38341),j=t(55378),w=t(86673),O=t(54283),Z=t(33699),k=t(19711),P=t(38435),C=t(82944),I=t(70902),_=t(82531),S=t(22341),M=t(38626),F=t(23831),T=t(73942),D=t(86585),E=t(37391),z=t(49125),H=M.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;"],D.Mz),B=M.default.div.withConfig({displayName:"GitActionsstyle__TerminalStyle",componentId:"sc-ynrhio-1"})(["height:calc(75vh - ","px);position:relative;"],D.Mz),R=M.default.div.withConfig({displayName:"GitActionsstyle__PanelStyle",componentId:"sc-ynrhio-2"})(["height:75vh;min-height:300px;width:75vw;backgroundColor:#232429;border-radius:","px;",""],T.n_,(function(n){return"\n background-color: ".concat((n.theme.background||F.Z.background).panel,";\n ")})),A=M.default.div.withConfig({displayName:"GitActionsstyle__OutputStyle",componentId:"sc-ynrhio-3"})([""," padding:","px;height:calc(75vh - ","px);overflow-y:auto;"],E.w5,2*z.iI,D.Mz),L=t(94353),N=t(28799),U=t(96510),W=t(24224),G=t(28598);function q(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function Y(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?q(Object(t),!0).forEach((function(e){(0,g.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):q(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var V={clone:"Clone repository",new_branch:"Create new branch",commit:"Commit & push",pull:"Pull",reset_hard:"Hard reset"};var K=function(n){var e,t=n.branch,o=(n.fetchBranch,(0,c.useState)()),i=o[0],a=o[1],u=(0,c.useState)(),s=u[0],p=u[1],f=(0,c.useState)(),h=f[0],m=f[1],g=(0,c.useState)(),M=g[0],F=g[1],T=(0,c.useState)(),D=T[0],E=T[1],z=(0,c.useState)(),q=z[0],K=z[1],X=_.ZP.git_custom_branches.list(),Q=X.data,J=X.mutate,$=(0,c.useMemo)((function(){return null===Q||void 0===Q?void 0:Q.git_custom_branches}),[Q]),nn=_.ZP.syncs.list().data,en=(0,c.useMemo)((function(){var n;if(nn)return null===(n=nn.syncs)||void 0===n?void 0:n[0]}),[nn]),tn=(0,x.Db)(_.ZP.git_branches.useCreate(),{onSuccess:function(n){return(0,U.wD)(n,{callback:function(){J(),window.location.reload()},onErrorCallback:function(n){var e=n.error.exception;E(e)}})}}),rn=(0,r.Z)(tn,2),on=rn[0],cn=rn[1].isLoading,an=(0,x.Db)((function(){return _.ZP.git_branches.useUpdate(t)({git_branch:{action_type:"status"}})}),{onSuccess:function(n){return(0,U.wD)(n,{onErrorCallback:function(n){var e=n.error.exception;E(e)}})}}),ln=(0,r.Z)(an,1)[0],un=(0,x.Db)(_.ZP.git_branches.useUpdate(t),{onSuccess:function(n){return(0,U.wD)(n,{callback:function(){E(null),F("DONE")},onErrorCallback:function(n){var e=n.error.exception;E(e)}})}}),dn=(0,r.Z)(un,2),sn=dn[0],pn=dn[1].isLoading,fn=(0,x.Db)(_.ZP.git_branches.useUpdate(t),{onSuccess:function(n){return(0,U.wD)(n,{callback:function(){E(null),window.location.reload()},onErrorCallback:function(n){var e=n.error.exception;E(e)}})}}),hn=(0,r.Z)(fn,2),bn=hn[0],mn=hn[1].isLoading,gn=(0,c.useState)(),vn=gn[0],xn=gn[1],yn=(0,c.useState)([]),jn=yn[0],wn=yn[1],On=(0,c.useState)([]),Zn=On[0],kn=On[1],Pn=(0,c.useCallback)((function(){ln().then((function(n){var e=n.data,t=null===e||void 0===e?void 0:e.git_branch,r=null===t||void 0===t?void 0:t.status,o=null===t||void 0===t?void 0:t.modified_files,i=null===t||void 0===t?void 0:t.untracked_files;xn(r),wn(i),kn(o)}))}),[ln]),Cn=(0,c.useMemo)((function(){return cn||pn||mn}),[cn,pn,mn]);(0,c.useEffect)((function(){return Pn()}),[h,Pn]);var In=(0,c.useMemo)((function(){return new l.Z}),[]),_n=(0,c.useMemo)((function(){var n={api_key:L.l,term_name:"git",token:In.decodedToken.token};return null!==en&&void 0!==en&&en.repo_path&&(n.cwd=null===en||void 0===en?void 0:en.repo_path),n}),[In,null===en||void 0===en?void 0:en.repo_path]),Sn=(0,v.ZP)((0,N.Ib)("terminal"),{queryParams:_n,shouldReconnect:function(){return!0}},"cwd"in _n),Mn=Sn.lastMessage,Fn=Sn.sendMessage,Tn=function(n){return(0,G.jsx)(y.Z,{checked:((null===i||void 0===i?void 0:i.files)||[]).includes(n),label:(0,G.jsx)(k.ZP,{small:!0,children:n}),onClick:function(){a((function(e){var t=(null===e||void 0===e?void 0:e.files)||[];return t=t.includes(n)?(0,W.Od)(t,(function(e){return e===n})):[n].concat(t),Y(Y({},e),{},{files:t})}))},small:!0},n)},Dn=(0,c.useMemo)((function(){return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(d.Z,{onClick:function(){return a((function(n){return Y(Y({},n),{},{files:Zn.concat(jn)})}))},children:"Include all changes"}),Zn&&Zn.length>0&&(0,G.jsxs)(w.Z,{mb:1,children:[(0,G.jsx)(w.Z,{my:1,children:(0,G.jsx)(k.ZP,{children:"Modified files"})}),Zn.map(Tn)]}),jn&&jn.length>0&&(0,G.jsxs)(w.Z,{mb:1,children:[(0,G.jsx)(w.Z,{my:1,children:(0,G.jsx)(k.ZP,{children:"Untracked files"})}),jn.map(Tn)]})]})}),[Zn,i,jn]),En=(0,c.useMemo)((function(){return(0,G.jsx)(w.Z,{p:2,children:Cn?(0,G.jsx)(O.Z,{color:"white"}):(0,G.jsxs)(G.Fragment,{children:["commit"===h&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(P.Z,{compact:!0,fullWidth:!0,label:"Commit message",monospace:!0,onChange:function(n){return a((function(e){return Y(Y({},e),{},{message:n.target.value})}))},required:!0,value:null===i||void 0===i?void 0:i.message}),(0,G.jsx)(w.Z,{mt:1}),(0,G.jsxs)(b.ZP,{children:[(0,G.jsx)(d.Z,{borderLess:!0,onClick:function(){sn({git_branch:Y({action_type:"commit"},i)}).then((function(){Pn(),a(null)}))},success:!0,children:"Commit"}),(0,G.jsx)(w.Z,{mr:1}),(0,G.jsx)(d.Z,{borderLess:!0,onClick:function(){sn({git_branch:{action_type:"push"}})},primary:!0,children:"Push"})]})]}),"new_branch"===h&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(C.Z,{compact:!0,fullWidth:!0,label:"Branch name",monospace:!0,onChange:function(n){return a({name:n.target.value})},value:null===i||void 0===i?void 0:i.name}),(0,G.jsx)(w.Z,{mt:1}),(0,G.jsx)(d.Z,{borderLess:!0,onClick:function(){on({git_branch:i})},primary:!0,children:"Create"})]}),"clone"===h&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(k.ZP,{children:["Clone from ",(0,G.jsx)(k.ZP,{default:!0,inline:!0,children:null===en||void 0===en?void 0:en.remote_repo_link})," to ",(0,G.jsx)(k.ZP,{default:!0,inline:!0,children:null===en||void 0===en?void 0:en.repo_path}),". This ",(0,G.jsx)(k.ZP,{danger:!0,inline:!0,children:"will overwrite"})," any existing data in the local repository."]}),(0,G.jsx)(w.Z,{mt:1}),(0,G.jsx)(d.Z,{borderLess:!0,onClick:function(){bn({git_branch:{action_type:"clone"}})},primary:!0,children:"Clone"})]}),"pull"===h&&(0,G.jsx)(d.Z,{borderLess:!0,onClick:function(){bn({git_branch:{action_type:"pull"}})},primary:!0,children:"Pull"}),"reset_hard"===h&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(w.Z,{mb:1,children:(0,G.jsx)(k.ZP,{children:s||"This will reset your local branch to match the remote branch."})}),s?(0,G.jsx)(d.Z,{borderLess:!0,onClick:function(){p(null),bn({git_branch:{action_type:"reset"}})},warning:!0,children:"Confirm"}):(0,G.jsx)(d.Z,{borderLess:!0,onClick:function(){return p("Are you sure you want to reset your branch? Your local changes may be erased.")},primary:!0,children:"Reset branch"})]}),(0,G.jsx)(w.Z,{mt:1,children:!Cn&&(0,G.jsxs)(G.Fragment,{children:[!D&&M&&(0,G.jsx)(k.ZP,{children:M}),D&&(0,G.jsx)(k.ZP,{preWrap:!0,danger:!0,children:D})]})})]})})}),[Cn,h,D,en,M,i,s,vn]),zn=(0,c.useMemo)((function(){return(0,G.jsx)(Z.Z,{lastMessage:Mn,sendMessage:Fn})}),[Mn,Fn]);return(0,G.jsxs)(R,{children:[(0,G.jsxs)(H,{children:[(0,G.jsx)(w.Z,{m:2,children:(0,G.jsxs)(b.ZP,{children:[(0,G.jsx)(j.Z,{beforeIcon:(0,G.jsx)(S.I0,{}),compact:!0,onChange:function(n){n.preventDefault(),on({git_branch:{name:n.target.value}})},placeholder:"Select a branch",value:t,children:null===$||void 0===$?void 0:$.map((function(n){var e=n.name;return(0,G.jsx)("option",{value:e,children:e},e)}))},"select_branch"),(0,G.jsx)(w.Z,{ml:2}),(0,G.jsxs)(j.Z,{compact:!0,onChange:function(n){n.preventDefault(),m(n.target.value),K(!1),F(null),a(null)},value:h,children:[(0,G.jsx)("option",{value:"",children:"Select an action"}),Object.entries(V).map((function(n){var e=(0,r.Z)(n,2),t=e[0],o=e[1];return(0,G.jsx)("option",{value:t,children:o},t)}))]},"select_git_action")]})}),(0,G.jsx)(w.Z,{m:2,children:(0,G.jsxs)(b.ZP,{alignItems:"center",children:[(0,G.jsx)(k.ZP,{children:"UI"}),(0,G.jsx)(w.Z,{ml:1}),(0,G.jsx)(I.Z,{checked:!!q,monotone:!0,onCheck:function(){return K((function(n){return!n}))}}),(0,G.jsx)(w.Z,{ml:1}),(0,G.jsx)(k.ZP,{children:"Terminal"})]})})]}),(0,G.jsxs)(b.ZP,{children:[(0,G.jsx)("div",{style:{width:"50%"},children:(0,G.jsx)(A,{children:"commit"===h?Dn:(0,G.jsx)(G.Fragment,{children:null===vn||void 0===vn||null===(e=vn.split("\\n"))||void 0===e?void 0:e.map((function(n){return(0,G.jsx)(k.ZP,{monospace:!0,preWrap:!0,small:!0,children:n},n)}))})})}),(0,G.jsx)("div",{style:{width:"50%"},children:q?(0,G.jsx)(B,{children:zn}):En})]})]})},X=18.53/14;var Q=function(n){var e=n.height,t=n.width,r=e||(t?t*(1/X):14),o=t||(e?e*X:18.53);return(0,G.jsxs)("svg",{width:o,height:r,viewBox:"0 0 20 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,G.jsx)("path",{opacity:"0.4",d:"M15.3266 0L19.2641 1.82961e-06L11.9687 14L8.03125 14L15.3266 0Z",fill:"url(#paint0_linear_1303_5)"}),(0,G.jsx)("path",{d:"M11.9692 1.82961e-06L8.03164 0L0.736328 14L4.67383 14L8.03164 7.55626V14H11.9691V8.38194e-05L11.9692 1.82961e-06Z",fill:"url(#paint1_linear_1303_5)"}),(0,G.jsx)("path",{d:"M15.3269 2.57679e-06H19.2644V14H15.3269V2.57679e-06Z",fill:"url(#paint2_linear_1303_5)"}),(0,G.jsxs)("defs",{children:[(0,G.jsxs)("linearGradient",{id:"paint0_linear_1303_5",x1:"8.03125",y1:"7",x2:"19.2641",y2:"7",gradientUnits:"userSpaceOnUse",children:[(0,G.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,G.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]}),(0,G.jsxs)("linearGradient",{id:"paint1_linear_1303_5",x1:"0.736328",y1:"7",x2:"19.2644",y2:"7",gradientUnits:"userSpaceOnUse",children:[(0,G.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,G.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]}),(0,G.jsxs)("linearGradient",{id:"paint2_linear_1303_5",x1:"0.736328",y1:"7",x2:"19.2644",y2:"7",gradientUnits:"userSpaceOnUse",children:[(0,G.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,G.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})]})]})},J=t(11135),$=t(10919),nn=M.default.svg.withConfig({displayName:"Mage8Bit__SVGStyle",componentId:"sc-cj6ltf-0"})([""]),en=function(n){var e=n.size,t=void 0===e?20:e,r=n.viewBox,o=void 0===r?"0 0 20 20":r;return(0,G.jsxs)(nn,{height:t,viewBox:o,width:t,children:[(0,G.jsxs)("g",{clipPath:"url(#clip0_297_42814)",children:[(0,G.jsx)("path",{d:"M13.334 0h1.66667v1.66667H13.334zM11.666 1.6665h1.66667v1.66667H11.666z",fill:"#7949FF"}),(0,G.jsx)("path",{d:"M10 1.6665h1.66667v1.66667H10z",fill:"#7949FF"}),(0,G.jsx)("path",{d:"M8.33398 1.6665h1.66667v1.66667H8.33398z",fill:"#AF93FF"}),(0,G.jsx)("path",{d:"M8.33398 3.3335h1.66667v1.66667H8.33398z",fill:"#7949FF"}),(0,G.jsx)("path",{d:"M6.66602 3.3335h1.66667v1.66667H6.66602z",fill:"#AF93FF"}),(0,G.jsx)("path",{d:"M3.33398 5h1.66667v1.66667H3.33398z",fill:"#7949FF"}),(0,G.jsx)("path",{d:"M5 5h1.66667v1.66667H5z",fill:"#7949FF"}),(0,G.jsx)("path",{d:"M6.66602 5h1.66667v1.66667H6.66602z",fill:"#7949FF"}),(0,G.jsx)("path",{d:"M6.66602 5h1.66667v1.66667H6.66602z",fill:"#7949FF"}),(0,G.jsx)("path",{d:"M6.66602 8.3335h1.66667v1.66667H6.66602z",fill:"#000"}),(0,G.jsx)("path",{d:"M6.66602 6.6665h1.66667v1.66667H6.66602z",fill:"#AD8FFF"}),(0,G.jsx)("path",{d:"M6.66602 10h1.66667v1.66667H6.66602z",fill:"#C9B6FF"}),(0,G.jsx)("path",{d:"M8.33398 6.6665h1.66667v1.66667H8.33398z",fill:"#AD8FFF"}),(0,G.jsx)("path",{d:"M1.66602 13.3335h1.66667v1.66667H1.66602z",fill:"#C9B6FF"}),(0,G.jsx)("path",{d:"M1.66602 11.6665h1.66667v1.66667H1.66602z",fill:"#FFCC19"}),(0,G.jsx)("path",{d:"M1.66602 10h1.66667v1.66667H1.66602z",fill:"#FFCC19"}),(0,G.jsx)("path",{d:"M1.66602 8.3335h1.66667v1.66667H1.66602zM1.66602 6.6665h1.66667v1.66667H1.66602z",fill:"#FFCC19"}),(0,G.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,G.jsx)("path",{d:"M1.66602 16.6665h1.66667v1.66667H1.66602z",fill:"#FFCC19"}),(0,G.jsx)("path",{d:"M1.66602 16.6665h1.66667v1.66667H1.66602zM1.66602 18.3335h1.66667v1.66667H1.66602z",fill:"#FFCC19"}),(0,G.jsx)("path",{d:"M1.66602 15h1.66667v1.66667H1.66602zM3.33398 15h1.66667v1.66667H3.33398z",fill:"#C9B6FF"}),(0,G.jsx)("path",{d:"M3.33398 16.6665h1.66667v1.66667H3.33398z",fill:"#C9B6FF"}),(0,G.jsx)("path",{d:"M3.33398 13.3335h1.66667v1.66667H3.33398z",fill:"#AD8FFF"}),(0,G.jsx)("path",{d:"M8.33398 8.3335h1.66667v1.66667H8.33398z",fill:"#C9B6FF"}),(0,G.jsx)("path",{d:"M10 6.6665h1.66667v1.66667H10z",fill:"#AD8FFF"}),(0,G.jsx)("path",{d:"M10 10h1.66667v1.66667H10z",fill:"#C9B6FF"}),(0,G.jsx)("path",{d:"M11.666 6.6665h1.66667v1.66667H11.666z",fill:"#AD8FFF"}),(0,G.jsx)("path",{d:"M11.666 8.3335h1.66667v1.66667H11.666z",fill:"#C9B6FF"}),(0,G.jsx)("path",{d:"M8.33398 10h1.66667v1.66667H8.33398z",fill:"#FF8DA9"}),(0,G.jsx)("path",{d:"M8.33398 11.6665h1.66667v1.66667H8.33398z",fill:"#FF8DA9"}),(0,G.jsx)("path",{d:"M6.66602 11.6665h1.66667v1.66667H6.66602z",fill:"#D9D9D9"}),(0,G.jsx)("path",{d:"M6.66602 11.6665h1.66667v1.66667H6.66602z",fill:"#D9D9D9"}),(0,G.jsx)("path",{d:"M5 10h1.66667v1.66667H5z",fill:"#D9D9D9"}),(0,G.jsx)("path",{d:"M5 8.3335h1.66667v1.66667H5z",fill:"#232429"}),(0,G.jsx)("path",{d:"M8.33398 11.6665h1.66667v1.66667H8.33398zM8.33398 13.3335h1.66667v1.66667H8.33398z",fill:"#D9D9D9"}),(0,G.jsx)("path",{d:"M10 11.6665h1.66667v1.66667H10z",fill:"#D9D9D9"}),(0,G.jsx)("path",{d:"M11.666 10h1.66667v1.66667H11.666zM13.334 6.6665h1.66667v1.66667H13.334zM13.334 8.3335h1.66667v1.66667H13.334z",fill:"#D9D9D9"}),(0,G.jsx)("path",{d:"M15 8.3335h1.66667v1.66667H15z",fill:"#757575"}),(0,G.jsx)("path",{d:"M15 10h1.66667v1.66667H15z",fill:"#D9D9D9"}),(0,G.jsx)("path",{d:"M10 8.3335h1.66667v1.66667H10z",fill:"#000"}),(0,G.jsx)("path",{d:"M8.33398 5h1.66667v1.66667H8.33398zM11.666 5h1.66667v1.66667H11.666z",fill:"#7949FF"}),(0,G.jsx)("path",{d:"M13.334 10h1.66667v1.66667H13.334zM11.666 11.6665h1.66667v1.66667H11.666zM10 13.3335h1.66667v1.66667H10z",fill:"#501FD8"}),(0,G.jsx)("path",{d:"M8.33398 15h1.66667v1.66667H8.33398zM6.66602 13.3335h1.66667v1.66667H6.66602zM15 11.6665h1.66667v1.66667H15z",fill:"#501FD8"}),(0,G.jsx)("path",{d:"M16.666 11.6665h1.66667v1.66667H16.666zM16.666 13.3335h1.66667v1.66667H16.666z",fill:"#501FD8"}),(0,G.jsx)("path",{d:"M15 13.3335h1.66667v1.66667H15z",fill:"#7949FF"}),(0,G.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,G.jsx)("path",{d:"M11.666 15h1.66667v1.66667H11.666z",fill:"#7949FF"}),(0,G.jsx)("path",{d:"M10 15h1.66667v1.66667H10z",fill:"#7949FF"}),(0,G.jsx)("path",{d:"M8.33398 16.6665h1.66667v1.66667H8.33398z",fill:"#7949FF"}),(0,G.jsx)("path",{d:"M6.66602 15h1.66667v1.66667H6.66602z",fill:"#AF93FF"}),(0,G.jsx)("path",{d:"M6.66602 16.6665h1.66667v1.66667H6.66602z",fill:"#7949FF"}),(0,G.jsx)("path",{d:"M5 16.6665h1.66667v1.66667H5z",fill:"#AF93FF"}),(0,G.jsx)("path",{d:"M5 18.3335h1.66667v1.66667H5z",fill:"#7949FF"}),(0,G.jsx)("path",{d:"M6.66602 18.3335h1.66667v1.66667H6.66602zM8.33398 18.3335h1.66667v1.66667H8.33398z",fill:"#7949FF"}),(0,G.jsx)("path",{d:"M10 18.3335h1.66667v1.66667H10z",fill:"#7949FF"}),(0,G.jsx)("path",{d:"M11.666 18.3335h1.66667v1.66667H11.666zM13.334 18.3335h1.66667v1.66667H13.334z",fill:"#7949FF"}),(0,G.jsx)("path",{d:"M15 18.3335h1.66667v1.66667H15z",fill:"#7949FF"}),(0,G.jsx)("path",{d:"M16.666 18.3335h1.66667v1.66667H16.666z",fill:"#652EFF"}),(0,G.jsx)("path",{d:"M3.33398 18.3335h1.66667v1.66667H3.33398zM10 16.6665h1.66667v1.66667H10z",fill:"#7949FF"}),(0,G.jsx)("path",{d:"M11.666 16.6665h1.66667v1.66667H11.666zM13.334 15h1.66667v1.66667H13.334z",fill:"#7949FF"}),(0,G.jsx)("path",{d:"M13.334 16.6665h1.66667v1.66667H13.334z",fill:"#7949FF"}),(0,G.jsx)("path",{d:"M15 16.6665h1.66667v1.66667H15z",fill:"#7949FF"}),(0,G.jsx)("path",{d:"M15 15h1.66667v1.66667H15z",fill:"#7949FF"}),(0,G.jsx)("path",{d:"M16.666 15h1.66667v1.66667H16.666zM18.334 16.6665h1.66667v1.66667H18.334zM18.334 18.3335h1.66667v1.66667H18.334z",fill:"#501FD8"}),(0,G.jsx)("path",{d:"M16.666 16.6665h1.66667v1.66667H16.666z",fill:"#652EFF"}),(0,G.jsx)("path",{d:"M13.334 5h1.66667v1.66667H13.334z",fill:"#7949FF"}),(0,G.jsx)("path",{d:"M15 5h1.66667v1.66667H15zM10 5h1.66667v1.66667H10z",fill:"#7949FF"}),(0,G.jsx)("path",{d:"M10 3.3335h1.66667v1.66667H10z",fill:"#7949FF"}),(0,G.jsx)("path",{d:"M11.666 3.3335h1.66667v1.66667H11.666z",fill:"#7949FF"}),(0,G.jsx)("path",{d:"M11.666 0h1.66667v1.66667H11.666z",fill:"#AF93FF"})]}),(0,G.jsx)("defs",{children:(0,G.jsx)("clipPath",{id:"clip0_297_42814",children:(0,G.jsx)("path",{d:"M0 0h20v20H0z",fill:"#fff"})})})]})},tn=t(62609),rn=t(46261),on=t(73899),cn=t(3055),an=t(64318),ln=t(9736),un=t(59e3),dn=t(99497);var sn=function(n){var e=n.breadcrumbs,t=n.menuItems,o=n.project,g=n.version,v=(0,c.useState)(!1),x=v[0],y=v[1],j=(0,c.useState)(null),O=j[0],Z=j[1],P=(0,c.useState)(!1),C=P[0],I=P[1],M=(0,c.useState)(null),F=M[0],T=M[1],D=(0,c.useRef)(null),E=(0,c.useRef)(null),H=(0,a.useRouter)(),B=_.ZP.git_custom_branches.detail("test",{_format:"with_basic_details"},{revalidateOnFocus:!1}),R=B.data,A=B.mutate,L=(0,c.useMemo)((function(){var n;return null===R||void 0===R||null===(n=R.git_custom_branch)||void 0===n?void 0:n.name}),[R]),N=_.ZP.projects.list({},{revalidateOnFocus:!1},{pauseFetch:!!o}).data,U=(0,c.useMemo)((function(){var n;return o||(null===N||void 0===N||null===(n=N.projects)||void 0===n?void 0:n[0])}),[N,o]),W=(0,c.useMemo)((function(){return g||(null===U||void 0===U?void 0:U.version)}),[U,g]),q=l.Z.isLoggedIn(),Y=(0,c.useMemo)((function(){return e||[{bold:!0,label:function(){return null===U||void 0===U?void 0:U.name},linkProps:{href:"/",sameColorText:!0}}]}),[e,U]),V=H.query.pipeline,X=(U||{}).latest_version,nn=(0,c.useMemo)((function(){return(0,G.jsx)(i(),{as:"/",href:"/",passHref:!0,children:(0,G.jsx)($.Z,{block:!0,height:cn.y7,noHoverUnderline:!0,noOutline:!0,children:(0,G.jsx)(Q,{height:cn.y7})})})}),[]),sn=[{label:function(){return"Settings"},linkProps:{href:"/settings/workspace/preferences"},uuid:"user_settings"}];(0,ln.YB)()&&sn.push({label:function(){return"Sign out"},onClick:function(){l.Z.logout((function(){_.ZP.sessions.updateAsync(null,1).then((function(){(0,un.nL)("/sign-in")})).catch((function(){(0,un.nL)("/")}))}))},uuid:"sign_out"});var pn=(0,dn.dd)((function(){return(0,G.jsx)(K,{branch:L,fetchBranch:A})}),{},[L,A],{background:!0,uuid:"git_actions"}),fn=(0,r.Z)(pn,2),hn=fn[0],bn=(fn[1],(0,c.useMemo)((function(){return(null===L||void 0===L?void 0:L.length)>=21?"".concat(L.slice(0,21),"..."):L}),[L]));return(0,G.jsx)(cn.I5,{children:(0,G.jsx)(f.Z,{children:(0,G.jsxs)(b.ZP,{alignItems:"center",fullHeight:!0,justifyContent:"space-between",children:[(0,G.jsxs)(h.Z,{alignItems:"center",children:[W&&(0,G.jsx)(rn.Z,{height:cn.y7,label:"Version ".concat(W),size:null,visibleDelay:300,widthFitContent:!0,children:nn}),!W&&nn,(0,G.jsx)(u.Z,{breadcrumbs:Y})]}),(0,G.jsxs)(h.Z,{alignItems:"center",children:[X&&W&&X!==W&&(0,G.jsx)(w.Z,{ml:2,children:(0,G.jsx)(d.Z,{borderLess:!0,linkProps:{href:"https://docs.mage.ai/about/releases"},noHoverUnderline:!0,primary:!0,target:"_blank",children:(0,G.jsxs)(k.ZP,{children:["\ud83d\ude80 Download new version ",(0,G.jsx)(k.ZP,{bold:!0,inline:!0,monospace:!0,children:X})]})})}),L&&(0,G.jsx)(w.Z,{ml:2,children:(0,G.jsx)(J.ZP,{blackBorder:!0,block:!0,compact:!0,noHoverUnderline:!0,onClick:hn,sameColorAsText:!0,uuid:"Header/GitActions",children:(0,G.jsxs)(b.ZP,{alignItems:"center",children:[(0,G.jsx)(S.I0,{size:1.5*z.iI}),(0,G.jsx)(w.Z,{ml:1}),(0,G.jsx)(k.ZP,{monospace:!0,small:!0,children:bn})]})})}),W&&"undefined"!==typeof W&&(0,G.jsx)(w.Z,{ml:2,children:(0,G.jsx)($.Z,{default:!0,href:"https://www.mage.ai/changelog",monospace:!0,openNewWindow:!0,children:"v".concat(W)})}),(0,G.jsx)(w.Z,{ml:2,children:(0,G.jsx)(J.ZP,{beforeElement:(0,G.jsx)(S.jR,{}),blackBorder:!0,compact:!0,inline:!0,linkProps:{as:"https://www.mage.ai/chat",href:"https://www.mage.ai/chat"},noHoverUnderline:!0,openNewTab:!0,sameColorAsText:!0,uuid:"Header/live_chat",children:"Live help"})}),t&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(w.Z,{ml:2}),(0,G.jsx)(p.Z,{onClickOutside:function(){return Z(null)},open:!0,style:{position:"relative"},children:(0,G.jsxs)(b.ZP,{children:[(0,G.jsx)(an.u,{highlighted:0===O,onClick:function(){return Z((function(n){return 0===n?null:0}))},onMouseEnter:function(){return Z((function(n){return null!==n?0:null}))},ref:D,children:(0,G.jsx)(k.ZP,{children:"Menu"})}),(0,G.jsx)(m.Z,{alternateBackground:!0,items:t,onClickCallback:function(){return Z(null)},open:0===O,parentRef:D,rightOffset:0,setConfirmationAction:T,setConfirmationDialogueOpen:I,uuid:"PipelineDetail/Header/menu"})]})}),(0,G.jsx)(p.Z,{onClickOutside:function(){return I(!1)},open:C,children:(0,G.jsx)(tn.Z,{danger:!0,onCancel:function(){return I(!1)},onClick:F,right:16*z.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(V,"?"),width:40*z.iI})})]}),(q||!(0,ln.YB)())&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(w.Z,{ml:2}),(0,G.jsx)(p.Z,{onClickOutside:function(){return y(!1)},open:!0,style:{position:"relative"},children:(0,G.jsxs)(b.ZP,{children:[(0,G.jsx)(an.u,{onClick:function(){return y(!0)},ref:E,children:(0,G.jsx)(s.Z,{color:on.Jm,size:4*z.iI,children:(0,G.jsx)(en,{})})}),(0,G.jsx)(m.Z,{alternateBackground:!0,items:sn,onClickCallback:function(){return y(!1)},open:x,parentRef:E,rightOffset:0,uuid:"shared/Header/user_menu"})]})})]})]})]})})})}},57639:function(n,e,t){var r=t(82684),o=t(28598);e.Z=function(n){var e=n.children,t=(0,r.useState)(!1),i=t[0],c=t[1];return(0,r.useEffect)((function(){c(!0)}),[]),i?e:(0,o.jsx)("div",{})}},88560:function(n,e,t){t.d(e,{P_:function(){return c},RL:function(){return o},Rp:function(){return a}});var r,o,i=t(82394);!function(n){n.CATEGORY="category",n.CATEGORY_HIGH_CARDINALITY="category_high_cardinality",n.DATETIME="datetime",n.EMAIL="email",n.LIST="list",n.NUMBER="number",n.NUMBER_WITH_DECIMALS="number_with_decimals",n.PHONE_NUMBER="phone_number",n.TEXT="text",n.TRUE_OR_FALSE="true_or_false",n.UUID="uuid",n.ZIP_CODE="zip_code"}(o||(o={}));o.NUMBER,o.NUMBER_WITH_DECIMALS,o.NUMBER,o.NUMBER_WITH_DECIMALS,o.DATETIME,o.NUMBER,o.NUMBER_WITH_DECIMALS,o.CATEGORY,o.CATEGORY_HIGH_CARDINALITY,o.DATETIME,o.EMAIL,o.PHONE_NUMBER,o.TEXT,o.TRUE_OR_FALSE,o.CATEGORY,o.CATEGORY_HIGH_CARDINALITY,o.DATETIME,o.EMAIL,o.PHONE_NUMBER,o.TEXT;var c=[o.CATEGORY,o.CATEGORY_HIGH_CARDINALITY],a=(r={},(0,i.Z)(r,o.NUMBER,"Number"),(0,i.Z)(r,o.NUMBER_WITH_DECIMALS,"Decimal number"),(0,i.Z)(r,o.CATEGORY,"Category"),(0,i.Z)(r,o.CATEGORY_HIGH_CARDINALITY,"Category (high cardinality)"),(0,i.Z)(r,o.DATETIME,"Date/Time"),(0,i.Z)(r,o.EMAIL,"Email"),(0,i.Z)(r,o.LIST,"List"),(0,i.Z)(r,o.PHONE_NUMBER,"Phone number"),(0,i.Z)(r,o.TEXT,"Text"),(0,i.Z)(r,o.TRUE_OR_FALSE,"Boolean"),(0,i.Z)(r,o.ZIP_CODE,"Zip code"),r)},82635:function(n,e,t){var r,o;t.d(e,{Gi:function(){return o},jU:function(){return c},uF:function(){return r}}),function(n){n.BUSY="busy",n.IDLE="idle",n.QUEUED="queued"}(r||(r={})),function(n){n.IMAGE_PNG="image/png",n.PROGRESS="progress",n.TABLE="table",n.TEXT="text",n.TEXT_HTML="text/html",n.TEXT_PLAIN="text/plain"}(o||(o={}));var i,c=[o.TEXT,o.TEXT_PLAIN];!function(n){n.DISPLAY_DATA="display_data",n.STATUS="status",n.STREAM="stream",n.STREAM_PIPELINE="stream_pipeline"}(i||(i={}))},62084:function(n,e,t){t.d(e,{Z:function(){return S}});var r=t(82394),o=t(82684),i=t(12691),c=t.n(i),a=t(34376),l=t(93461),u=t(67971),d=t(79749),s=t(86673),p=t(19711),f=t(46261),h=t(22341),b=t(38626),m=t(23831),g=t(73942),v=t(49125),x=b.default.div.withConfig({displayName:"indexstyle__FlyoutMenuContainerStyle",componentId:"sc-1o7k6f4-0"})(["position:absolute;max-height:","px;"," "," ",""],58*v.iI,(function(n){return n.width&&"\n min-width: 0px;\n width: ".concat(n.width,"px;\n ")}),(function(n){return"\n box-shadow: ".concat((n.theme.shadow||m.Z.shadow).popup,";\n\n &:hover {\n background-color: ").concat((n.theme.interactive||m.Z.interactive).hoverBackground,";\n }\n ")}),(function(n){return n.roundedStyle&&"\n border: ".concat(g.YF,"px ").concat(g.M8," ").concat((n.theme||m.Z).borders.button,";\n border-radius: ").concat(g.n_,"px;\n\n div:first-child {\n border-top-left-radius: ").concat(g.n_,"px;\n border-top-right-radius: ").concat(g.n_,"px;\n }\n\n div:last-child {\n border-bottom-left-radius: ").concat(g.n_,"px;\n border-bottom-right-radius: ").concat(g.n_,"px;\n }\n ")})),y=b.default.div.withConfig({displayName:"indexstyle__TitleContainerStyle",componentId:"sc-1o7k6f4-1"})(["padding:","px;padding-bottom:0;",""],v.iI,(function(n){return"\n background-color: ".concat((n.theme.background||m.Z.background).popup,";\n ")})),j=(0,b.css)(["justify-content:space-between;padding:","px;"," "," "," "," "," "," ",""],v.iI,(function(n){return n.largePadding&&"\n padding: ".concat(1.5*v.iI,"px;\n padding-right: ").concat(6*v.iI,"px;\n ")}),(function(n){return!n.disabled&&"\n &:hover {\n background-color: ".concat((n.theme.interactive||m.Z.interactive).hoverBackground,";\n cursor: pointer;\n }\n ")}),(function(n){return"\n background-color: ".concat((n.theme.background||m.Z.background).popup,";\n ")}),(function(n){return n.alternateBackground&&"\n background-color: ".concat((n.theme.interactive||m.Z.interactive).defaultBackground,";\n ")}),(function(n){return n.disabled&&"\n color: ".concat((n.theme.content||m.Z.content).disabled,";\n cursor: not-allowed;\n\n &:hover {\n color: ").concat((n.theme.content||m.Z.content).disabled,";\n }\n ")}),(function(n){return n.indent&&"\n padding-left: ".concat(2*v.iI,"px;\n ")}),(function(n){return n.highlighted&&"\n background-color: ".concat((n.theme.interactive||m.Z.interactive).hoverBackground,";\n ")})),w=b.default.div.withConfig({displayName:"indexstyle__LinkStyle",componentId:"sc-1o7k6f4-2"})(["",""],j),O=b.default.a.withConfig({displayName:"indexstyle__LinkAnchorStyle",componentId:"sc-1o7k6f4-3"})([""," display:block;"],j),Z=t(16115),k=t(66653),P=t(41150),C=t(28598);function I(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function _(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?I(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):I(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var S=function(n){var e,t,i=n.alternateBackground,b=n.disableKeyboardShortcuts,m=n.items,g=n.left,v=n.onClickCallback,j=n.open,I=n.parentRef,S=n.rightOffset,M=n.roundedStyle,F=n.setConfirmationAction,T=n.setConfirmationDialogueOpen,D=n.topOffset,E=void 0===D?0:D,z=n.uuid,H=n.width,B=(0,o.useState)([]),R=B[0],A=B[1],L=(0,o.useState)({}),N=L[0],U=L[1],W=(0,o.useState)(0),G=W[0],q=W[1],Y=(0,o.useState)(0),V=Y[0],K=Y[1],X=(0,o.useState)(0),Q=X[0],J=X[1],$=((null===I||void 0===I||null===(e=I.current)||void 0===e||null===(t=e.getBoundingClientRect)||void 0===t?void 0:t.call(e))||{}).height,nn=(0,o.useRef)({}),en=(0,o.useRef)(null),tn=(0,a.useRouter)(),rn=(0,P.y)(),on=rn.registerOnKeyDown,cn=rn.unregisterOnKeyDown;return(0,o.useEffect)((function(){return function(){cn(z)}}),[cn,z]),on(z,(function(n,e,t){if(j)if(b)(0,k.j)(n);else{var r=R[0];if(e[Z.kD])(0,k.j)(n),"undefined"===typeof r||r===m.length-1?A([0]):A([r+1]);else if(e[Z.Bu])(0,k.j)(n),A("undefined"===typeof r||0===r?[m.length-1]:[r-1]);else if(e[Z.Uq]&&"undefined"!==typeof r){var o,i=m[r];if(i)if(null!==i&&void 0!==i&&i.onClick)null===i||void 0===i||null===(o=i.onClick)||void 0===o||o.call(i);else if(null!==i&&void 0!==i&&i.linkProps){var c,a;tn.push(null===i||void 0===i||null===(c=i.linkProps)||void 0===c?void 0:c.href,null===i||void 0===i||null===(a=i.linkProps)||void 0===a?void 0:a.as)}null===v||void 0===v||v()}else null===m||void 0===m||m.forEach((function(n){var r=n.keyboardShortcutValidation;null===r||void 0===r||r({keyHistory:t,keyMapping:e})}))}}),[R,m,v,j,A]),(0,o.useEffect)((function(){j||A([])}),[j]),m?function n(e,t,a){var b=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,m=arguments.length>4?arguments[4]:void 0;return b+=1,(0,C.jsx)(x,{roundedStyle:M,style:{display:a||N[t]?null:"none",left:"undefined"===typeof S&&(1===b?g||0:"100%"),right:1===b?S:null,top:1===b?($||0)+E:(2===b?G:3===b?V:Q)||0},width:H,children:null===e||void 0===e?void 0:e.map((function(e,t){var a=e.beforeIcon,g=e.bold,x=e.disabled,j=e.items,Z=e.indent,k=e.isGroupingTitle,P=e.keyTextGroups,I=e.label,S=e.leftAligned,D=e.linkProps,E=e.onClick,z=e.openConfirmationDialogue,H=e.tooltip,B=e.uuid;m.current[B]=(0,o.createRef)();var A=D?O:w,L=I();if(k)return(0,C.jsxs)(y,{children:["string"===typeof L&&(0,C.jsx)(p.ZP,{bold:!0,muted:!0,noWrapping:!0,children:L}),"string"!==typeof L&&L]},B);var N=(0,C.jsxs)(A,{alternateBackground:i||M,disabled:x,highlighted:R[0]===t,indent:Z,largePadding:M,onClick:function(n){D||n.preventDefault(),z?(T(!0),F((function(){return E})),null===v||void 0===v||v()):E&&!x&&(null===E||void 0===E||E(),null===v||void 0===v||v())},onMouseEnter:function(){var n,e;if(U((function(n){return _(_({},n),{},(0,r.Z)({},B,!0))})),1===b)q((null===(n=m.current[B])||void 0===n||null===(e=n.current)||void 0===e?void 0:e.offsetTop)||0);else if(2===b){var t,o;K((null===(t=m.current[B])||void 0===t||null===(o=t.current)||void 0===o?void 0:o.offsetTop)||0)}else if(3===b){var i,c;J((null===(i=m.current[B])||void 0===i||null===(c=i.current)||void 0===c?void 0:c.offsetTop)||0)}},onMouseLeave:function(){U((function(n){return _(_({},n),{},(0,r.Z)({},B,!1))}))},ref:m.current[B],children:[(0,C.jsxs)(u.ZP,{alignItems:"center",fullWidth:!0,justifyContent:S?"flex-start":"space-between",children:[(a||"string"===typeof L)&&(0,C.jsxs)(l.Z,{alignItems:"center",children:[a&&(0,C.jsxs)(C.Fragment,{children:[a,(0,C.jsx)(s.Z,{mr:1})]}),"string"===typeof L&&(0,C.jsx)(p.ZP,{bold:g,disabled:x,noWrapping:!0,children:(0,C.jsx)("div",{role:"menuitem",children:L})})]}),"string"!==typeof L&&L,j&&(0,C.jsx)(s.Z,{ml:2,children:(0,C.jsx)(h._Q,{})}),P&&(0,C.jsx)(s.Z,{ml:4,ref:en,children:(0,C.jsx)(d.Z,{keyTextGroups:P})})]}),j&&n(j,B,!1,b,m)]},B);return H&&(N=(0,C.jsx)(f.Z,{appearBefore:!0,block:!0,center:!0,description:H(),size:null,widthFitContent:!0,children:N})),D?(0,o.createElement)(c(),_(_({},D),{},{key:B,passHref:!0}),N):N}))})}(m,void 0,j,0,nn):null}},62609:function(n,e,t){t.d(e,{Z:function(){return m}});var r=t(60328),o=t(67971),i=t(38626),c=t(23831),a=t(73942),l=t(86585),u=t(49125),d=t(28598),s=i.default.div.withConfig({displayName:"PopupMenuContainer__ContainerStyle",componentId:"sc-lq9od4-0"})(["border-radius:","px;padding:","px;position:absolute;z-index:",";cursor:default;"," "," "," "," "," "," "," "," ",""],a.TR,2*u.iI,l.bf+100,(function(n){return"\n background-color: ".concat((n.theme.interactive||c.Z.interactive).defaultBackground,";\n box-shadow: ").concat((n.theme.shadow||c.Z.shadow).window,";\n ")}),(function(n){return"undefined"!==typeof n.left&&"\n left: ".concat(n.left,"px;\n ")}),(function(n){return"undefined"!==typeof n.right&&"\n right: ".concat(n.right,"px;\n ")}),(function(n){return"undefined"!==typeof n.top&&"\n top: ".concat(n.top,"px;\n ")}),(function(n){return"undefined"!==typeof n.bottom&&"\n bottom: ".concat(n.bottom,"px;\n ")}),(function(n){return"undefined"===typeof n.top&&"undefined"===typeof n.bottom&&"\n top: ".concat(l.Mz-1*u.iI,"px;\n ")}),(function(n){return n.centerOnScreen&&"\n top: 40%;\n left: 50%;\n transform: translate(-50%,-50%);\n "}),(function(n){return n.width&&"\n width: ".concat(n.width,"px;\n ")}),(function(n){return!n.width&&"\n min-width: ".concat(33*u.iI,"px;\n ")}));var p=function(n){var e=n.bottom,t=n.centerOnScreen,r=n.children,o=n.left,i=n.right,c=n.top,a=n.width;return(0,d.jsx)(s,{bottom:e,centerOnScreen:t,left:o,right:i,top:c,width:a,children:r})},f=t(86673),h=t(19711),b=32*u.iI;var m=function(n){var e=n.bottom,t=n.cancelText,i=n.centerOnScreen,c=n.confirmText,a=n.danger,l=n.left,u=n.isLoading,s=n.neutral,m=n.onCancel,g=n.onClick,v=n.right,x=n.subtitle,y=n.title,j=n.top,w=n.width;return(0,d.jsxs)(p,{bottom:e,centerOnScreen:i,left:l,right:v,top:j,width:w||b,children:[(0,d.jsxs)(o.ZP,{alignItems:"center",flexDirection:"column",children:[(0,d.jsx)(f.Z,{pb:1,children:(0,d.jsx)(h.ZP,{bold:!0,danger:a,large:!0,warning:!a,whiteSpaceNormal:!0,children:y})}),(0,d.jsx)(h.ZP,{small:!0,children:x})]}),(0,d.jsx)(f.Z,{mt:2,children:(0,d.jsxs)(o.ZP,{alignItems:"center",justifyContent:"center",children:[m&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(r.Z,{onClick:m,children:t||"Cancel"}),(0,d.jsx)(f.Z,{mr:1})]}),(0,d.jsx)(r.Z,{loading:u,onClick:g,children:(0,d.jsx)(h.ZP,{bold:!0,danger:a,success:!a&&!s,children:c||"Confirm"})})]})})]})}},46261:function(n,e,t){t.d(e,{Z:function(){return S}});var r=t(82394),o=t(26304),i=t(82684),c=t(38626),a=t(67971),l=t(19711),u=t(23831),d=t(73942),s=t(49125),p=t(60328),f=t(90880),h=t(28598),b=(0,c.css)(["position:relative;"," "," ",""],(function(n){return n.height&&"\n height: ".concat(n.height,"px;\n ")}),(function(n){return n.size&&"\n height: ".concat(n.size,"px;\n ")}),(function(n){return n.fullSize&&"\n height: 100%;\n "})),m=c.default.div.withConfig({displayName:"TooltipWrapper__ContainerStyle",componentId:"sc-1dd57l8-0"})(["",""],b),g=c.default.span.withConfig({displayName:"TooltipWrapper__ContainerSpanStyle",componentId:"sc-1dd57l8-1"})(["",""],b),v=c.default.a.withConfig({displayName:"TooltipWrapper__HoverStyle",componentId:"sc-1dd57l8-2"})([""," "," "," border-radius:50%;"," "," &:active,&:focus{outline:none;}",""],(0,f.eR)(),(function(n){return n.size&&"\n height: ".concat(n.size,"px;\n width: ").concat(n.size,"px;\n ")}),(function(n){return n.fullSize&&"\n height: 100%;\n width: 100%;\n "}),(function(n){return!n.block&&"\n display: inline-block;\n "}),(function(n){return n.block&&"\n display: block;\n "}),(function(n){return!n.noHoverOutline&&"\n &:hover {\n cursor: pointer;\n\n box-shadow:\n 0 0 0 ".concat(d.PV,"px ").concat((0,p.W)(n),",\n 0 0 0 ").concat(d.PV+d.q2,"px ").concat((n.theme.interactive||u.Z.interactive).hoverOverlay,";\n }\n ")})),x=c.default.span.withConfig({displayName:"TooltipWrapper__BasicStyle",componentId:"sc-1dd57l8-3"})([""]),y=c.default.div.withConfig({displayName:"TooltipWrapper__ContentStyle",componentId:"sc-1dd57l8-4"})(["position:absolute;z-index:3;"," "," "," "," "," "," "," "," "," ",""],(function(n){return"\n box-shadow: ".concat((n.theme.shadow||u.Z.shadow).base,";\n ")}),(function(n){return n.lightBackground&&"\n box-shadow: ".concat((n.theme.shadow||u.Z.shadow).window,";\n ")}),(function(n){return n.appearAbove&&!n.size&&"\n bottom: 0;\n "}),(function(n){return n.appearAbove&&n.size&&"\n bottom: ".concat(n.size+d.PV+d.q2,"px;\n ")}),(function(n){return n.appearBefore&&"\n right: ".concat(2*s.iI,"px;\n ")}),(function(n){return n.leftPosition&&"\n left: ".concat(n.leftPosition,"px;\n ")}),(function(n){return!n.leftPosition&&n.rightPosition&&"\n right: 0px;\n "}),(function(n){return n.minWidth&&"\n min-width: ".concat(n.minWidth,"px;\n ")}),(function(n){return n.widthFitContent&&"\n width: max-content;\n "}),(function(n){return n.topOffset&&"\n top: ".concat(n.topOffset,"px;\n ")}));var j=function(n){var e=n.alignLeft,t=n.appearAbove,r=n.appearBefore,o=n.autoHide,c=n.autoWidth,a=n.basic,l=n.block,u=n.center,d=n.children,p=n.content,f=n.forceVisible,b=void 0!==f&&f,j=n.fullSize,w=n.height,O=n.inline,Z=n.lightBackground,k=n.minWidth,P=n.noHoverOutline,C=n.size,I=void 0===C?2*s.iI:C,_=n.topOffset,S=n.visibleDelay,M=void 0===S?1e3:S,F=n.widthFitContent,T=(0,i.useState)(!1),D=T[0],E=T[1],z=(0,i.useState)(!1),H=z[0],B=z[1],R=(k-I)/-2,A=O?g:m,L=a?x:v,N=(0,h.jsx)(L,{block:l,fullSize:j,href:"#",noHoverOutline:P,onClick:function(n){return n.preventDefault()},onMouseEnter:function(){return E(!0)},size:I,children:d});return(0,i.useEffect)((function(){var n=setInterval((function(){return B(!0)}),M);return D||clearInterval(n),o&&setTimeout((function(){E(!1),B(!1)}),3*M),function(){return clearInterval(n)}}),[o,B,M,D]),(0,h.jsxs)(A,{fullSize:j,height:w,onMouseLeave:function(){E(!1),B(!1)},size:I,children:[N,(H||b)&&(0,h.jsx)(y,{appearAbove:t,appearBefore:r,leftPosition:u?R:null,lightBackground:Z,minWidth:c?k:null,rightPosition:e,size:I,topOffset:_,widthFitContent:F,children:p})]})},w=t(22341),O=["autoWidth","children","default","description","inverted","keyboardShortcuts","label","lightBackground","maxWidth","muted","primary","size","warning","widthFitContent"];function Z(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function k(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?Z(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var P=42*s.iI,C=(0,c.css)(["border-radius:","px;"," "," "," ",""],d.BG,(function(n){return"\n box-shadow: ".concat((n.theme.shadow||u.Z.shadow).popup,";\n background-color: ").concat((n.theme.background||u.Z.background).popup,";\n ")}),(function(n){return n.lightBackground&&"\n background-color: ".concat((n.theme.interactive||u.Z.interactive).defaultBackground,";\n ")}),(function(n){return n.width&&!(n.widthFitContent||n.autoWidth)&&"\n width: ".concat(n.width,"px;\n ")}),(function(n){return!n.width&&!(n.widthFitContent||n.autoWidth)&&"\n width: ".concat(P,"px;\n ")})),I=c.default.div.withConfig({displayName:"Tooltip__LabelStyle",componentId:"sc-allmdq-0"})([""," padding:","px ","px;"],C,.75*s.iI,1*s.iI),_=c.default.div.withConfig({displayName:"Tooltip__DescriptionStyle",componentId:"sc-allmdq-1"})([""," padding:","px ","px;"],C,1.5*s.iI,2*s.iI);var S=function(n){var e=n.autoWidth,t=n.children,r=n.default,c=n.description,u=n.inverted,d=n.keyboardShortcuts,p=n.label,f=n.lightBackground,b=n.maxWidth,m=n.muted,g=n.primary,v=n.size,x=void 0===v?2*s.iI:v,y=n.warning,Z=n.widthFitContent,C=(0,o.Z)(n,O),S=c||p||"",M=c?_:I,F=Math.min(b||P,S.length*s.Fo),T=[];null===d||void 0===d||d.forEach((function(n,e){e>=1&&T.push((0,h.jsx)(l.ZP,{default:!0,children:"+"})),T.push(n)}));var D=T.map((function(n,e){var t="keyboard-shortcut-".concat(e);return"string"===typeof n?(0,h.jsx)("span",{children:n},t):i.cloneElement(n,{key:t})}));return(0,h.jsx)(j,k(k({},C),{},{autoWidth:e,content:(0,h.jsx)(M,{autoWidth:e,lightBackground:f,width:b,widthFitContent:Z,children:(0,h.jsxs)(a.ZP,{alignItems:"center",children:[(0,h.jsx)(l.ZP,{whiteSpaceNormal:!0,children:S}),D.length>=1&&(0,h.jsx)(l.ZP,{muted:!0,children:"\xa0\xa0\xa0\u2022\xa0\xa0\xa0"}),D.length>=1&&D]})}),lightBackground:f,minWidth:F,noHoverOutline:!!t,size:x,widthFitContent:Z,children:t||(0,h.jsx)(w.kI,{default:r,inverted:u,muted:m,primary:g,size:x,warning:y})}))}},11135:function(n,e,t){t.d(e,{ZP:function(){return tn}});var r=t(82394),o=t(26304),i=t(82684),c=t(12691),a=t.n(c),l=t(38626),u=t(93461),d=t(79749),s=t(34376),p=t(9736);function f(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function h(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?f(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function b(){var n,e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return h(h({},t),{},{groupId:null===(n=(0,p.ex)())||void 0===n?void 0:n.id,id:null===(e=(0,p.PR)())||void 0===e?void 0:e.id})}var m=t(75582),g=t(39421),v=t(86954);function x(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function y(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?x(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):x(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function j(){return[[v.go,"initialAsPath"],[v.iT,"initialPathname"],[v.FT,"notificationTemplate"],[v.Ll,"notificationUUID"],[v.$m,"referringURL"]].reduce((function(n,e){var t=(0,m.Z)(e,2),o=t[0],i=t[1];return y(y({},n),{},(0,r.Z)({},i,g.Z.get(o,v.vZ)))}),{})}var w=t(36283);function O(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function Z(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?O(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):O(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var k="click",P="button";function C(n){var e,t,r=n.actionName,o=n.actionType,i=n.componentName,c=n.componentType,a=n.properties,l=n.screenName,u=(e=r||o,t=i||c,"".concat(l,".").concat(e,"_").concat(t)),d=function(){var n,e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=j(),o=(null!==t&&void 0!==t&&t.width,window.innerWidth);return Z(Z(Z({},t),r),{},{groupId:null===(n=(0,p.ex)())||void 0===n?void 0:n.id,partner_id:"Mage",screenSize:(0,w.Z3)(o),userId:null===(e=(0,p.PR)())||void 0===e?void 0:e.id})}(Z({actionType:o,componentType:c},a));return{eventProperties:d,eventType:u,userProperties:b()}}function I(n,e){null===n||void 0===n||n(e)}var _=function(n){var e=n.children;return n.eventProperties,n.userProperties,e((function(n){return!1}))},S=t(41150),M=t(28598);function F(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function T(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?F(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):F(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var D,E,z=function(n){var e,t=n.buildChildren,r=n.disabled,o=n.eventActionName,c=void 0===o?k:o,a=n.eventComponentName,l=void 0===a?P:a,u=n.eventProperties,d=void 0===u?{}:u,p=n.eventScreenName,f=void 0===p?"generic":p,h=n.keyboardShortcutValidation,b=n.linkProps,m=n.onClick,g=n.openNewTab,v=n.requireKeyUp,x=n.uuid,y=(0,s.useRouter)(),j=(0,S.y)(),w=j.registerOnKeyDown,O=j.registerOnKeyUp,Z=j.unregisterOnKeyDown,F=j.unregisterOnKeyUp;(0,i.useEffect)((function(){return function(){var n=v?F:Z;null===n||void 0===n||n(x)}}),[v,Z,F,x]),r||!m&&!b||(e=function(n){null===m||void 0===m||m(n),b&&(g?(window.open(b.as||b.href),n.preventDefault()):y.push(b.href,b.as))});var D=C({actionName:c,actionType:k,componentName:l,componentType:P,properties:d,screenName:f}),E=D.eventType,z=D.eventProperties,H=D.userProperties;return(0,M.jsx)(_,{eventProperties:z,userProperties:H,children:function(n){var r=n.logEvent;h&&e&&(v?O:w)(x,(function(n,t,o){h({keyHistory:o,keyMapping:t})&&(I(r,E,{eventProperties:T(T({},z),{},{usedKeyboardShortcut:!0}),userProperties:H}),e(n))}),[z,E,r,e,H]);return t({eventProperties:z,eventType:E,logEvent:r,onClick:e,userProperties:H})}})},H={chatBubbleProps:null,graphicButtonProps:null,logoProps:null,mageImageUrl:null,mascotImageUrls:{base:null,castingSpell:null,chargingUp:null,thinking:null},sharedProps:null},B=i.createContext(H),R=B,A=t(86673),L=t(54283),N=t(23831),U=t(73899),W=t(73942),G=t(2005),q=t(31012),Y=t(10919),V=t(49125),K=t(90880),X=["Icon","afterElement","beforeElement","bold","borderless","centerText","children","compact","disabled","fitContentWidth","inverted","keyTextGroups","keyTextsPosition","linkProps","loading","mutedDisabled","noHover","onClick","padding","smallIcon","type","useModelTheme"];function Q(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function J(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?Q(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Q(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}!function(n){n.LEFT="left",n.RIGHT="right"}(D||(D={})),function(n){n.BUTTON="button",n.SUBMIT="submit"}(E||(E={}));var $=(0,l.css)([""," align-items:center;border:none;display:flex;flex-direction:row;position:relative;text-align:left;z-index:0;"," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," ",""],(0,K.eR)(),(function(n){return!n.large1&&!n.large2&&"\n ".concat(q.iD,"\n ")}),(function(n){return n.small&&"\n ".concat(q.HC,"\n ")}),(function(n){return n.large1&&"\n ".concat(q.ln,"\n ")}),(function(n){return n.large2&&"\n ".concat(q.QU,"\n ")}),(function(n){return!n.inline&&"\n width: 100%;\n "}),(function(n){return n.shortWidth&&"\n min-width: ".concat(28*V.iI,"px;\n ")}),(function(n){return!n.wrapText&&"\n white-space: nowrap;\n "}),(function(n){return n.outline&&!n.disabled&&"\n &:hover {\n box-shadow:\n 0 0 0 ".concat(W.PV,"px ").concat((n.theme||N.Z).background.panel,",\n 0 0 0 ").concat(W.PV+W.q2,"px ").concat((n.theme.interactive||N.Z.interactive).hoverOverlay,";\n }\n\n &:focus {\n box-shadow:\n 0 0 0 ").concat(W.PV,"px ").concat((n.theme||N.Z).background.panel,",\n 0 0 0 ").concat(W.PV+W.q2,"px ").concat((n.theme.interactive||N.Z.interactive).focusBorder,";\n }\n\n &:active {\n box-shadow: none;\n }\n ")}),(function(n){return!n.secondary&&"\n font-family: ".concat(G.ry,";\n justify-content: space-between;\n ")}),(function(n){return n.primary&&!n.disabled&&"\n background-color: ".concat((n.theme.interactive||N.Z.interactive).linkPrimary,";\n border-color: ").concat((n.theme.interactive||N.Z.interactive).linkPrimary,";\n color: ").concat((n.theme.monotone||N.Z.monotone).white,";\n\n &:hover,\n &:focus,\n &:active {\n background-color: ").concat((n.theme.interactive||N.Z.interactive).linkPrimaryHover," !important;\n border-color: ").concat((n.theme.interactive||N.Z.interactive).linkPrimary," !important;\n }\n ")}),(function(n){return n.center&&"\n justify-content: center;\n "}),(function(n){return!n.noPadding&&!n.spacious&&!n.compact&&"\n padding: ".concat(1.25*V.iI,"px ").concat(1.5*V.iI,"px;\n ")}),(function(n){return n.compact&&"\n padding: ".concat(.5*V.iI,"px ").concat(.75*V.iI,"px;\n ")}),(function(n){return!n.noPadding&&!n.spacious&&n.paddingTop&&"\n padding-top: ".concat(n.paddingTop,"px;\n ")}),(function(n){return!n.noPadding&&!n.spacious&&n.halfPaddingTop&&"\n padding-top: ".concat(.625*V.iI,"px;\n ")}),(function(n){return!n.noPadding&&!n.spacious&&n.halfPaddingBottom&&"\n padding-bottom: ".concat(.625*V.iI,"px;\n ")}),(function(n){return!n.noPadding&&!n.spacious&&n.paddingBottom&&"\n padding-bottom: ".concat(n.paddingBottom,"px;\n ")}),(function(n){return!n.noPadding&&!n.spacious&&n.halfPaddingRight&&"\n padding-right: ".concat(.75*V.iI,"px;\n ")}),(function(n){return!n.noPadding&&!n.spacious&&n.halfPaddingLeft&&"\n padding-left: ".concat(.75*V.iI,"px;\n ")}),(function(n){return!n.noPadding&&n.spacious&&!n.marketing&&"\n padding: ".concat(2.25*V.iI,"px ").concat(3*V.iI,"px;\n ")}),(function(n){return!n.noPadding&&n.spacious&&n.marketing&&"\n padding: ".concat(2.25*V.iI-2,"px ").concat(3*V.iI-2,"px;\n ")}),(function(n){return!n.noPadding&&n.spacious&&n.halfPaddingTop&&"\n padding-top: ".concat(1.125*V.iI,"px;\n ")}),(function(n){return!n.noPadding&&n.spacious&&n.halfPaddingBottom&&"\n padding-bottom: ".concat(1.125*V.iI,"px;\n ")}),(function(n){return!n.noPadding&&n.spacious&&n.halfPaddingRight&&"\n padding-right: ".concat(1.5*V.iI,"px;\n ")}),(function(n){return!n.noPadding&&n.spacious&&n.halfPaddingLeft&&"\n padding-left: ".concat(1.5*V.iI,"px;\n ")}),(function(n){return n.secondary&&"\n flex-basis: content;\n font-family: ".concat(G.nF,";\n padding: 0;\n ")}),(function(n){return n.noPadding&&"\n padding: 0;\n "}),(function(n){return n.bold&&"\n font-family: ".concat(G.nF,";\n ")}),(function(n){return!n.muted&&!n.inverted&&"\n color: ".concat((n.theme.content||N.Z.content).active,";\n ")}),(function(n){return!n.muted&&n.inverted&&"\n color: ".concat((n.theme.content||N.Z.content).inverted,";\n ")}),(function(n){return n.muted&&"\n color: ".concat((n.theme.monotone||N.Z.monotone).grey300,";\n ")}),(function(n){return n.warning&&"\n color: ".concat((n.theme.brand||N.Z.brand).energy400,";\n ")}),(function(n){return n.noHover&&"\n &:hover {\n cursor: default;\n }\n "}),(function(n){return n.greyBorder&&"\n border: ".concat(W.YF,"px ").concat(W.M8," ").concat((n.theme||N.Z).borders.button,";\n ")}),(function(n){return n.blackBorder&&"\n border: ".concat(W.YF,"px ").concat(W.M8," ").concat((n.theme.monotone||N.Z.monotone).black,";\n ")}),(function(n){return!n.pill&&!n.borderless&&!n.compact&&"\n border-radius: ".concat(W.n_,"px;\n ")}),(function(n){return n.compact&&"\n border-radius: ".concat(W.BG,"px;\n ")}),(function(n){return!n.borderRadiusLeft&&!n.borderRadiusRight&&n.pill&&!n.spacious&&"\n border-radius: ".concat(5*V.iI,"px;\n ")}),(function(n){return n.borderRadiusLeft&&n.pill&&!n.spacious&&"\n border-bottom-left-radius: ".concat(5*V.iI,"px;\n border-top-left-radius: ").concat(5*V.iI,"px;\n ")}),(function(n){return n.borderRadiusRight&&n.pill&&!n.spacious&&"\n border-bottom-right-radius: ".concat(5*V.iI,"px;\n border-top-right-radius: ").concat(5*V.iI,"px;\n ")}),(function(n){return n.borderRadiusLeft&&n.pill&&n.spacious&&"\n border-bottom-left-radius: ".concat(8*V.iI,"px;\n border-top-left-radius: ").concat(8*V.iI,"px;\n ")}),(function(n){return n.borderRadiusRight&&n.pill&&n.spacious&&"\n border-bottom-right-radius: ".concat(8*V.iI,"px;\n border-top-right-radius: ").concat(8*V.iI,"px;\n ")}),(function(n){return n.inverted&&!n.noBackground&&!n.backgroundColor&&"\n background-color: ".concat((n.theme.monotone||N.Z.monotone).black,";\n ")}),(function(n){return!n.inverted&&!n.noBackground&&!n.primary&&"\n background-color: ".concat((n.theme.interactive||N.Z.interactive).defaultBackground,";\n\n &:hover {\n background-color: ").concat((n.theme.interactive||N.Z.interactive).hoverBackground,";\n }\n ")}),(function(n){return!n.noBackground&&n.backgroundColor&&"\n background-color: ".concat(n.backgroundColor,";\n ")}),(function(n){return n.noBackground&&"\n background-color: transparent !important;\n "}),(function(n){return n.disabled&&n.inverted&&"\n color: ".concat((n.theme.monotone||N.Z.monotone).grey400," !important;\n ")}),(function(n){return n.disabled&&!n.inverted&&"\n color: ".concat((n.theme.monotone||N.Z.monotone).grey300," !important;\n ")}),(function(n){return n.disabled&&"\n &:hover {\n cursor: not-allowed;\n }\n "}),(function(n){return n.selected&&"\n background-color: ".concat((n.theme.monotone||N.Z.monotone).black,";\n color: ").concat((n.theme.monotone||N.Z.monotone).white,";\n ")}),(function(n){return n.selected&&n.grey300&&"\n background-color: ".concat((n.theme.monotone||N.Z.monotone).grey300,";\n ")}),(function(n){return(n.selected||n.useModelTheme)&&n.fire&&"\n background-color: ".concat((n.theme.brand||N.Z.brand).fire400,";\n ")}),(function(n){return n.useModelTheme&&"\n color: ".concat((n.theme.monotone||N.Z.monotone).white,";\n ")}),(function(n){return(n.selected||n.useModelTheme)&&n.earth&&"\n background-color: ".concat((n.theme.brand||N.Z.brand).earth400,";\n ")}),(function(n){return n.primaryGradient&&"\n background: ".concat(U.uH," !important;\n ")}),(function(n){return n.background&&"\n background: ".concat(n.background," !important;\n ")}),(function(n){return(n.selected||n.useModelTheme)&&n.wind&&"\n background-color: ".concat((n.theme.brand||N.Z.brand).wind400,";\n\n &:hover,\n &:focus,\n &:active {\n background-color: ").concat((n.theme.brand||N.Z.brand).wind500,";\n }\n ")}),(function(n){return(n.selected||n.useModelTheme)&&n.water&&"\n background-color: ".concat((n.theme.brand||N.Z.brand).water400,";\n ")}),(function(n){return n.withIcon&&"\n padding: ".concat(1.25*V.iI-1,"px;\n ")}),(function(n){return n.padding>0&&"\n padding: ".concat(n.padding,"px;\n ")}),(function(n){return n.shadow&&"\n box-shadow: ".concat((n.theme.shadow||N.Z.shadow).large,";\n ")})),nn=l.default.button.withConfig({displayName:"KeyboardShortcutButton__ButtonStyle",componentId:"sc-10tm4pj-0"})(["",""],$),en=l.default.a.withConfig({displayName:"KeyboardShortcutButton__AnchorStyle",componentId:"sc-10tm4pj-1"})([""," ",""],$,Y.R);var tn=function(n){var e=n.Icon,t=n.afterElement,c=n.beforeElement,l=n.bold,s=n.borderless,p=n.centerText,f=n.children,h=n.compact,b=n.disabled,m=n.fitContentWidth,g=n.inverted,v=n.keyTextGroups,x=n.keyTextsPosition,y=void 0===x?D.RIGHT:x,j=n.linkProps,w=n.loading,O=n.mutedDisabled,Z=n.noHover,k=n.onClick,P=n.padding,C=n.smallIcon,_=n.type,S=void 0===_?E.BUTTON:_,F=n.useModelTheme,T=(0,o.Z)(n,X),H=j||{},B=H.as,N=H.href,U=B||N?en:nn,W=(0,i.useMemo)((function(){if(!v)return null;var n=(0,r.Z)({},y===D.RIGHT?"ml":"mr",f?1:0);return(0,M.jsx)(A.Z,J(J({},n),{},{children:(0,M.jsx)(d.Z,{borderless:g,disabled:b,keyTextGroups:v,mutedDisabled:O})}))}),[f,b,g,v,y,O]),G=((0,i.useContext)(R)||{}).sharedProps;return(0,M.jsx)(z,J(J({},T),{},{buildChildren:function(n){var r=n.eventProperties,o=n.eventType,i=n.logEvent,d=n.onClick,v=n.userProperties,x=(0,M.jsxs)(U,J(J(J({},T),F?G:{}),{},{bold:F||l,borderless:F||s,center:p,compact:h,disabled:b||O,fitContentWidth:m,inverted:g,noHover:(!d||Z)&&!(B||N)&&S===E.BUTTON,onClick:function(n){I(i,o,{eventProperties:r,userProperties:v}),null===d||void 0===d||d(n)},padding:C&&!f?11:P,type:B||N?null:S,useModelTheme:F,withIcon:!!e,children:[c&&!w&&(0,M.jsxs)(M.Fragment,{children:[c,(0,M.jsx)(A.Z,{mr:1})]}),y===D.LEFT&&W,(0,M.jsxs)(u.Z,{alignItems:"center",children:[e&&(0,M.jsx)(e,{muted:b||O,size:C?2*V.iI:2.5*V.iI}),e&&f&&(0,M.jsx)(A.Z,{mr:1}),w&&(0,M.jsx)(L.Z,{inverted:!g,small:C}),!w&&f]}),y===D.RIGHT&&W&&(0,M.jsx)(A.Z,{ml:1,children:W}),t&&!w&&(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(A.Z,{ml:t?1:0}),t]})]}));return!B&&!N||b||O?x:(0,M.jsx)(a(),J(J({},j),{},{passHref:!0,children:x}))},disabled:b||O,linkProps:j,onClick:k}))}},38341:function(n,e,t){var r=t(21831),o=t(82394),i=t(26304),c=(t(82684),t(38626)),a=t(67971),l=t(86673),u=t(19711),d=t(23831),s=t(22341),p=t(73942),f=t(49125),h=t(28598),b=["beforeIcon","checked","disabled","errorMessage","label","labelDescription","large","meta","monospace","onClick","required","small","warning","xsmall"];function m(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function g(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?m(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var v=c.default.div.withConfig({displayName:"Checkbox__CheckboxContainer",componentId:"sc-ujqx42-0"})(["display:inline-block;vertical-align:middle;cursor:pointer;"]),x=c.default.div.withConfig({displayName:"Checkbox__ErrorContainer",componentId:"sc-ujqx42-1"})(["margin-top:4px;"]),y=c.default.input.withConfig({displayName:"Checkbox__HiddenCheckbox",componentId:"sc-ujqx42-2"})(["border:0;clip:rect(0 0 0 0);clippath:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;",""],(function(n){return n.notClickable&&"\n background-color: ".concat((n.theme.content||d.Z.content).disabled,"\n border-color: ").concat((n.theme.content||d.Z.content).disabled,"\n\n &:hover {\n cursor: not-allowed;\n }\n ")})),j=c.default.div.withConfig({displayName:"Checkbox__StyledCheckbox",componentId:"sc-ujqx42-3"})(["border-radius:","px;height:","px;transition:all 150ms;width:","px;svg{position:relative;visibility:",";}"," "," "," "," input[disabled]{cursor:default;}"," ",""],.5*f.iI,2*f.iI,2*f.iI,(function(n){return n.checked||n.required?"visible":"hidden"}),(function(n){return n.large&&"\n svg {\n left: -4px;\n top: -8px;\n }\n "}),(function(n){return!n.checked&&"\n background-color: ".concat((n.theme.background||d.Z.background).popup,";\n border: ").concat(p.PV,"px ").concat(p.M8," ").concat((n.theme.content||d.Z.content).muted,";\n ")}),(function(n){return n.checked&&"\n background-color: ".concat((n.theme.interactive||d.Z.interactive).checked,";\n border: ").concat(p.YF,"px ").concat(p.M8," transparent;\n ")}),(function(n){return n.required&&"\n background-color: ".concat((n.theme.content||d.Z.content).disabled,";\n border: ").concat(p.YF,"px ").concat(p.M8," transparent;\n ")}),(function(n){return n.disabled&&"\n background-color: ".concat((n.theme.content||d.Z.content).disabled,";\n border-color: ").concat((n.theme.content||d.Z.content).disabled,";\n\n &:hover {\n cursor: not-allowed;\n }\n ")}),(function(n){return n.warning&&"\n background-color: ".concat((n.theme.accent||d.Z.accent).warning,";\n border-color: ").concat((n.theme.interactive||d.Z.interactive).defaultBorder,"\n ")})),w=c.default.label.withConfig({displayName:"Checkbox__LabelStyle",componentId:"sc-ujqx42-4"})(["-ms-flex-direction:column;align-items:center;display:flex;flex-direction:column;flex-direction:row;&:hover{cursor:pointer;}"]);e.Z=function(n){var e=n.beforeIcon,t=n.checked,o=n.disabled,c=n.errorMessage,d=n.label,p=n.labelDescription,m=n.large,O=n.meta,Z=n.monospace,k=void 0!==Z&&Z,P=n.onClick,C=n.required,I=n.small,_=void 0!==I&&I,S=n.warning,M=n.xsmall,F=void 0!==M&&M,T=(0,i.Z)(n,b),D=S||!!(c||O&&O.touched&&O.error);return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(w,{onClick:function(n){n.preventDefault(),P&&!o&&P(n)},children:[(0,h.jsxs)(v,{children:[(0,h.jsx)(y,g(g({},T),{},{disabled:o?"disabled":void 0,notClickable:o})),(0,h.jsx)(j,{checked:t,disabled:o,large:m,required:C,warning:D,children:(0,h.jsx)(s.Jr,{size:f.iI*(m?3:2)})})]}),e&&(0,h.jsx)(l.Z,{ml:1,children:(0,h.jsx)(a.ZP,{children:e})}),d&&(0,h.jsxs)(l.Z,{pl:1,children:["string"===typeof d&&(0,h.jsx)(u.ZP,{disabled:o,lineThrough:o,monospace:k,small:_,xsmall:F,children:d}),"string"!==typeof d&&d,p&&(0,h.jsx)(u.ZP,{muted:!0,small:!0,children:p})]})]}),(c||O&&O.touched&&O.error)&&(0,h.jsx)(x,{children:(0,h.jsx)(u.ZP,{small:!0,warning:!0,children:c?(0,r.Z)(c):O.error})})]})}},16634:function(n,e,t){var r=t(82394),o=t(26304),i=t(38626),c=t(93461),a=t(67971),l=t(23831),u=t(73942),d=t(49125),s=t(28598),p=["children"];function f(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function h(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?f(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var b=i.default.div.withConfig({displayName:"Circle__CircleStyle",componentId:"sc-1o70504-0"})([""," "," "," "," "," "," "," "," "," "," "," "," "," ",""],(function(n){return!n.square&&"\n border-radius: 50%;\n "}),(function(n){return n.square&&"\n border-radius: ".concat(n.size>=2*d.iI?u.BG:2,"px;\n ")}),(function(n){return!n.color&&!(n.borderSize||n.borderColor)&&"\n background-color: ".concat((n.theme.content||l.Z.content).muted,";\n ")}),(function(n){return n.success&&!n.borderSize&&"\n background-color: ".concat((n.theme.status||l.Z.status).positive,";\n ")}),(function(n){return n.warning&&!n.borderSize&&"\n background-color: ".concat((n.theme.accent||l.Z.accent).warning,";\n ")}),(function(n){return n.success&&n.borderSize&&"\n border-color: ".concat((n.theme.status||l.Z.status).positive," !important;\n ")}),(function(n){return n.warning&&n.borderSize&&"\n border-color: ".concat((n.theme.accent||l.Z.accent).warning," !important;\n ")}),(function(n){return n.borderSize&&"\n border-style: solid;\n border-width: ".concat(n.borderSize,"px;\n ")}),(function(n){return(n.borderSize||n.borderColor)&&"\n border: ".concat(n.borderSize||1,"px solid ").concat(n.borderColor||(n.theme.content||l.Z.content).active,";\n ")}),(function(n){return n.color&&"\n background-color: ".concat(n.color,";\n ")}),(function(n){return n.size&&"\n height: ".concat(n.size,"px;\n width: ").concat(n.size,"px;\n ")}),(function(n){return n.danger&&"\n background-color: ".concat((n.theme.borders||l.Z.borders).danger,";\n ")}),(function(n){return n.muted&&"\n border-color: ".concat((n.theme.content||l.Z.content).muted,";\n ")}),(function(n){return n.default&&"\n border-color: ".concat((n.theme.monotone||l.Z.monotone).gray,";\n ")}));e.Z=function(n){var e=n.children,t=(0,o.Z)(n,p);return(0,s.jsx)(b,h(h({},t),{},{children:(0,s.jsx)(a.ZP,{alignItems:"center",fullHeight:!0,fullWidth:!0,justifyContent:"center",children:e&&(0,s.jsx)(c.Z,{children:e})})}))}},69898:function(n,e,t){t.d(e,{p:function(){return w}});var r=t(82394),o=t(26304),i=t(82684),c=t(38626),a=t(16910),l=t(19711),u=t(23831),d=t(73942),s=t(2005),p=t(31012),f=t(49125),h=t(90880),b=t(28598),m=["afterIcon","afterIconSize","afterIconClick","autoGenerated","beforeIcon","beforeIconSize","compact","dynamicSizing","fitContent","fullWidth","input","invertedTheme","label","labelDescription","labelFixed","maxWidth","meta","name","onChange","onClick","passwordrules","placeholder","readOnly","required","setContentOnMount","showLabelRequirement","small","topPosition","type","value","visible","width"];function g(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function v(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?g(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):g(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var x=c.default.div.withConfig({displayName:"InputWrapper__ContainerStyle",componentId:"sc-aepxnk-0"})([".label-enter{opacity:0;transform:translate(0,","px);}.label-enter-active{opacity:1;transform:translate(0,0);transition:all 200ms;}.label-exit{opacity:1;transform:translate(0,0);}.label-exit-active{opacity:0;transform:translate(0,13px);transition:all 100ms;}"," "," "," "," ",""],f.iI,(function(n){return n.visible&&"\n position: relative;\n "}),(function(n){return!n.visible&&"\n opacity: 0;\n position: absolute;\n z-index: 0;\n "}),(function(n){return n.fitContent&&"\n width: fit-content;\n "}),(function(n){return n.maxWidth&&"\n max-width: ".concat(n.maxWidth,"px;\n ")}),(function(n){return n.fullWidth&&"\n width: 100%;\n "})),y=c.default.div.withConfig({displayName:"InputWrapper__LabelContainerStyle",componentId:"sc-aepxnk-1"})(["position:absolute;"," ",""],(function(n){return!n.compact&&!n.beforeIcon&&"\n left: ".concat(2*f.iI,"px;\n top: ").concat(.75*f.iI,"px;\n ")}),(function(n){return!n.compact&&n.beforeIcon&&"\n left: ".concat(5*f.iI,"px;\n top: ").concat(.5*f.iI,"px;\n ")})),j=c.default.div.withConfig({displayName:"InputWrapper__IconContainerStyle",componentId:"sc-aepxnk-2"})(["position:absolute;height:100%;display:flex;align-items:center;top:","px;"," "," ",""],(function(n){return n.top?0:d.YF}),(function(n){return!n.compact&&"\n padding: ".concat(f.iI,"px;\n ")}),(function(n){return n.compact&&"\n padding: ".concat(.75*f.iI,"px;\n ")}),(function(n){return n.right&&"\n right: 0;\n "})),w=(0,c.css)([""," "," "," -moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;background-color:transparent;box-sizing:border-box;outline-style:none;"," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," ",""],(0,h.Xh)("appearance","none"),(0,h.Xh)("transition","background 300ms ease 0s, border 300ms ease 0s, color 300ms ease 0s"),(0,h.eR)("200ms box-shadow linear"),l.G,(function(n){return!n.small&&!n.large&&"\n ".concat(p.iD,"\n ")}),(function(n){return n.small&&"\n ".concat(p.HC,"\n line-height: 20px !important;\n ")}),(function(n){return!n.monospace&&"\n font-family: ".concat(s.YC,";\n ")}),(function(n){return n.monospace&&"\n font-family: ".concat(s.Vp,";\n ")}),(function(n){return n.bold&&"\n font-family: ".concat(s.nF,";\n ")}),(function(n){return!n.borderless&&"\n border-radius: ".concat(d.BG,"px;\n border-style: ").concat(d.M8,";\n border-width: ").concat(d.YF,"px};\n ")}),(function(n){return n.noBorderRadiusBottom&&"\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n "}),(function(n){return n.borderRadius&&"\n border-radius: ".concat(n.borderRadius,"px;\n ")}),(function(n){return n.borderless&&"\n border-style: none;\n "}),(function(n){return n.noBorder&&"\n border-style: none;\n "}),(function(n){return!n.noBorder&&n.noBorderUntilFocus&&"\n border-style: none;\n\n &:focus {\n border-style: ".concat(d.M8,";\n }\n ")}),(function(n){return!n.noBorder&&n.noBorderUntilHover&&"\n border-style: none;\n\n &:hover {\n border-style: ".concat(d.M8,";\n }\n ")}),(function(n){return!n.disabled&&!n.invertedTheme&&"\n border-color: ".concat((n.theme.interactive||u.Z.interactive).defaultBorder,";\n color: ").concat((n.theme.content||u.Z.content).active,";\n\n ::placeholder {\n color: ").concat((n.theme.content||u.Z.content).default,";\n }\n ")}),(function(n){return!n.disabled&&!n.noBackground&&"\n &:hover {\n background-color: ".concat((n.theme.interactive||u.Z.interactive).hoverOverlay,";\n border-color: ").concat((n.theme.interactive||u.Z.interactive).hoverBorder,";\n }\n\n &:focus {\n background-color: ").concat((n.theme.interactive||u.Z.interactive).hoverBackground,";\n border-color: ").concat((n.theme.interactive||u.Z.interactive).focusBorder,";\n color: ").concat((n.theme.content||u.Z.content).active,";\n }\n\n &:active {\n background-color: ").concat((n.theme.interactive||u.Z.interactive).activeOverlay,";\n }\n ")}),(function(n){return n.noBlinkingCursor&&"\n &:focus {\n text-indent: -9999em;\n text-shadow : 9999em 0 0 #000;\n }\n "}),(function(n){return n.shadow&&"\n &:focus {\n box-shadow:\n 0 0 0 1px ".concat((n.theme.interactive||u.Z.interactive).focusBorder," inset,\n 0 0 0 1px ").concat((n.theme.interactive||u.Z.interactive).focusBorder,"\n ;\n }\n ")}),(function(n){return n.disabled&&"\n border-color: ".concat((n.theme.interactive||u.Z.interactive).disabledBorder,";\n color: ").concat((n.theme.content||u.Z.content).disabled,";\n\n ::placeholder {\n color: ").concat((n.theme.content||u.Z.content).disabled,";\n }\n ")}),(function(n){return n.danger&&"\n border-color: ".concat((n.theme.interactive||u.Z.interactive).dangerBorder," !important;\n\n &:active,\n &:focus,\n &:hover {\n border-color: ").concat((n.theme.interactive||u.Z.interactive).dangerBorder," !important;\n }\n ")}),(function(n){return!n.compact&&"\n padding-left: ".concat(2*f.iI,"px;\n padding-right: ").concat(2*f.iI,"px;\n ")}),(function(n){return!n.compact&&!(n.label&&n.isFocused)&&"\n padding-bottom: ".concat(1.5*f.iI,"px;\n padding-top: ").concat(1.5*f.iI,"px;\n ")}),(function(n){return!n.compact&&n.label&&n.isFocused&&"\n padding-bottom: ".concat(.75*f.iI,"px;\n padding-top: ").concat(.75*f.iI+12,"px;\n ")}),(function(n){return n.beforeIcon&&!n.compact&&"\n padding-left: ".concat(5*f.iI,"px !important;\n ")}),(function(n){return n.afterIcon&&!n.compact&&"\n padding-right: ".concat(5*f.iI,"px !important;\n ")}),(function(n){return n.compact&&"\n padding-bottom: ".concat(.75*f.iI,"px;\n padding-left: ").concat(1.25*f.iI,"px;\n padding-right: ").concat(1.25*f.iI,"px;\n padding-top: ").concat(.75*f.iI,"px;\n ")}),(function(n){return n.beforeIcon&&n.compact&&"\n padding-left: ".concat(4*f.iI,"px !important;\n ")}),(function(n){return n.afterIcon&&n.compact&&"\n padding-right: ".concat(4*f.iI,"px !important;\n ")}),(function(n){return!n.inputWidth&&!n.minWidth&&"\n width: 100%;\n "}),(function(n){return n.maxHeight&&"\n max-height: ".concat(n.maxHeight,"px;\n ")}),(function(n){return n.minWidth&&"\n min-width: ".concat(n.minWidth,"px;\n ")}),(function(n){return n.inputWidth&&"\n width: ".concat(n.inputWidth,"px;\n ")}),(function(n){return n.alignCenter&&"\n text-align: center;\n "}),(function(n){return n.alignRight&&"\n text-align: right;\n "}),(function(n){return n.basic&&"\n border: none;\n padding: 0 ".concat(.25*f.iI,"px;\n ")}),(function(n){return n.basicPadding&&"\n border: none;\n padding: ".concat(.5*f.iI,"px ").concat(1*f.iI,"px !important;\n ")}),(function(n){return"undefined"!==typeof n.paddingHorizontal&&"\n padding-left: ".concat(n.paddingHorizontal,"px;\n padding-right: ").concat(n.paddingHorizontal,"px;\n ")}),(function(n){return"undefined"!==typeof n.paddingVertical&&"\n padding-bottom: ".concat(n.paddingVertical,"px;\n padding-top: ").concat(n.paddingVertical,"px;\n ")}),(function(n){return"undefined"!==typeof n.paddingRight&&"\n padding-right: ".concat(n.paddingRight,"px !important;\n ")}),(function(n){return n.basic&&!n.noBackground&&"\n background-color: ".concat((n.theme.monotone||u.Z.monotone).grey500,";\n\n &:active,\n &:focus,\n &:hover {\n background-color: ").concat((n.theme.monotone||u.Z.monotone).grey500,";\n }\n ")}),(function(n){return n.basic&&n.noBackground&&"\n background-color: none;\n\n &:active,\n &:focus,\n &:hover {\n background-color: ".concat((n.theme.monotone||u.Z.monotone).grey200,";\n }\n ")}),(function(n){return n.primary&&!n.swapBackgroundAndTextColor&&"\n border-color: ".concat((n.theme.accent||u.Z.accent).purpleLight,";\n\n &:active,\n &:focus {\n border-color: ").concat((n.theme.accent||u.Z.accent).purple," !important;\n }\n\n &:hover {\n border-color: ").concat((n.theme.chart||u.Z.chart).primary," !important;\n }\n ")}),(function(n){return n.swapBackgroundAndTextColor&&"\n background-color: transparent;\n\n &:active,\n &:focus,\n &:hover {\n background-color: transparent;\n }\n "}),(function(n){return n.earth&&n.swapBackgroundAndTextColor&&"\n color: ".concat((n.theme.brand||u.Z.brand).earth500," !important;\n\n &:active,\n &:focus,\n &:hover {\n color: ").concat((n.theme.brand||u.Z.brand).earth500," !important;\n }\n\n ::placeholder {\n color: ").concat((n.theme.brand||u.Z.brand).earth300,";\n }\n ")}),(function(n){return n.fire&&n.swapBackgroundAndTextColor&&"\n color: ".concat((n.theme.brand||u.Z.brand).fire500," !important;\n\n &:active,\n &:focus,\n &:hover {\n color: ").concat((n.theme.brand||u.Z.brand).fire500," !important;\n }\n\n ::placeholder {\n color: ").concat((n.theme.brand||u.Z.brand).fire300,";\n }\n ")}),(function(n){return n.primary&&n.swapBackgroundAndTextColor&&"\n color: ".concat((n.theme.brand||u.Z.brand).wind500," !important;\n\n &:active,\n &:focus,\n &:hover {\n color: ").concat((n.theme.brand||u.Z.brand).wind500," !important;\n }\n\n ::placeholder {\n color: ").concat((n.theme.brand||u.Z.brand).wind300,";\n }\n ")}),(function(n){return n.warning&&!n.swapBackgroundAndTextColor&&"\n background-color: ".concat((n.theme.brand||u.Z.brand).energy200," !important;\n\n &:active,\n &:focus,\n &:hover {\n background-color: ").concat((n.theme.brand||u.Z.brand).energy200," !important;\n }\n ")}),(function(n){return n.warning&&n.swapBackgroundAndTextColor&&"\n color: ".concat((n.theme.brand||u.Z.brand).energy500," !important;\n\n &:active,\n &:focus,\n &:hover {\n color: ").concat((n.theme.brand||u.Z.brand).energy500," !important;\n }\n ")}),(function(n){return n.water&&n.swapBackgroundAndTextColor&&"\n color: ".concat((n.theme.brand||u.Z.brand).water500," !important;\n\n &:active,\n &:focus,\n &:hover {\n color: ").concat((n.theme.brand||u.Z.brand).water500," !important;\n }\n ")}),(function(n){return n.earth&&n.borderTheme&&"\n &:focus,\n &:active {\n border-color: ".concat((n.theme.brand||u.Z.brand).earth300,";\n border-width: ").concat(d.mP,"px;\n }\n ")}),(function(n){return n.fire&&n.borderTheme&&"\n &:focus,\n &:active {\n border-color: ".concat((n.theme.brand||u.Z.brand).fire300,";\n border-width: ").concat(d.mP,"px;\n }\n ")}),(function(n){return n.water&&n.borderTheme&&"\n &:focus,\n &:active {\n border-color: ".concat((n.theme.brand||u.Z.brand).water300,";\n border-width: ").concat(d.mP,"px;\n }\n ")}),(function(n){return n.wind&&n.borderTheme&&"\n &:focus,\n &:active {\n border-color: ".concat((n.theme.brand||u.Z.brand).wind300,";\n border-width: ").concat(d.mP,"px;\n }\n ")}),(function(n){return n.info&&"\n background-color: ".concat((n.theme.brand||u.Z.brand).water100," !important;\n\n &:active,\n &:focus,\n &:hover {\n background-color: ").concat((n.theme.brand||u.Z.brand).water100," !important;\n }\n ")}),(function(n){return n.negative&&"\n background-color: ".concat((n.theme.accent||u.Z.accent).negativeTransparent," !important;\n\n &:active,\n &:focus,\n &:hover {\n background-color: ").concat((n.theme.accent||u.Z.accent).negativeTransparent," !important;\n }\n ")}),(function(n){return n.defaultColor&&"\n background-color: ".concat((n.theme.interactive||u.Z.interactive).defaultBackground," !important;\n border: ").concat(d.YF,"px ").concat(d.M8," ").concat((n.theme.monotone||u.Z.monotone).black,";\n\n &:active,\n &:focus,\n &:hover {\n background-color: ").concat((n.theme.interactive||u.Z.interactive).hoverBackground," !important;\n }\n ")}),(function(n){return n.greyBorder&&"\n border: ".concat(d.YF,"px ").concat(d.M8," ").concat((n.theme||u.Z).borders.button,";\n ")}),(function(n){return n.width&&"\n width: ".concat(n.width,"px;\n ")}),(function(n){return n.disablePointerEvents&&"\n pointer-events: none;\n "})),O=c.default.div.withConfig({displayName:"InputWrapper__LabelWrapperStyle",componentId:"sc-aepxnk-3"})(["margin-bottom:","px;"],.75*f.iI),Z=c.default.span.withConfig({displayName:"InputWrapper__SpanStyle",componentId:"sc-aepxnk-4"})(["position:absolute;opacity:0;"]),k=function(n,e){var t=n.afterIcon,r=n.afterIconSize,c=n.afterIconClick,u=n.autoGenerated,d=n.beforeIcon,s=n.beforeIconSize,p=n.compact,h=n.dynamicSizing,g=n.fitContent,w=n.fullWidth,k=n.input,P=n.invertedTheme,C=n.label,I=n.labelDescription,_=n.labelFixed,S=n.maxWidth,M=n.meta,F=n.name,T=n.onChange,D=n.onClick,E=n.passwordrules,z=n.placeholder,H=n.readOnly,B=n.required,R=n.setContentOnMount,A=n.showLabelRequirement,L=n.small,N=n.topPosition,U=n.type,W=n.value,G=n.visible,q=void 0===G||G,Y=n.width,V=(0,o.Z)(n,m),K=!!(M&&M.touched&&M.error),X=(0,i.useRef)(null),Q={muted:!0,size:f.iI*(p?2.5:3)},J=t&&(0,b.jsx)(j,{compact:p,right:!0,children:i.cloneElement(t,r?v(v({},Q),{},{size:r}):Q)}),$=(0,i.useState)(W),nn=$[0],en=$[1],tn=(0,i.useState)(!1),rn=tn[0],on=tn[1],cn=(0,i.useState)(!1),an=cn[0],ln=cn[1],un=(0,i.useState)(10),dn=un[0],sn=un[1],pn=A?A({content:nn,isFocused:rn}):rn||!!nn;return(0,i.useEffect)((function(){R&&!nn&&W&&en(W)}),[nn,en,R,W]),(0,i.useEffect)((function(){var n;h&&sn(((null===X||void 0===X||null===(n=X.current)||void 0===n?void 0:n.offsetWidth)||25*f.iI)+f.iI)}),[nn,h,e]),(0,b.jsxs)(x,{fitContent:g,fullWidth:w,maxWidth:S,visible:q,children:[(_||I)&&(0,b.jsxs)(O,{children:[(0,b.jsx)("div",{children:_&&(0,b.jsxs)(l.ZP,{bold:!0,inline:!0,inverted:P,small:L,children:[_," ",B&&(0,b.jsx)(l.ZP,{inline:!0,inverted:P,muted:!P,small:!0,children:"(required)"})," ",u&&(0,b.jsx)(l.ZP,{inline:!0,inverted:P,muted:!P,small:!0,children:"(auto-generated)"})]})}),I&&(0,b.jsx)(l.ZP,{inverted:P,muted:!P,small:!0,children:I})]}),(C||0===C)&&!p&&(0,b.jsx)(a.Z,{classNames:"label",in:(C||0===C)&&pn,timeout:200,unmountOnExit:!0,children:(0,b.jsx)(y,{beforeIcon:d,children:(0,b.jsx)(l.ZP,{muted:!0,xsmall:!0,children:C})})}),d&&(0,b.jsx)(j,{compact:p,top:N,children:i.cloneElement(d,v(v({},s?v(v({},Q),{},{size:s}):Q),null===d||void 0===d?void 0:d.props))}),c&&(0,b.jsx)("a",{href:"#",onClick:function(n){n.preventDefault(),c()},children:J}),!c&&J,h&&(0,b.jsx)(Z,{ref:X,children:nn}),i.cloneElement(k,{afterIcon:t,beforeIcon:d,compact:p,danger:K,fullWidth:w,hasContent:!!nn,isFocused:pn,label:0===C?"0":C,name:F,onBlur:function(n){V.onBlur&&V.onBlur(n),on(!1),ln(!0)},onChange:function(n){en(n.target.value),T&&T(n)},onClick:D,onFocus:function(n){V.onFocus&&V.onFocus(n),on(!0)},passwordrules:E,placeholder:C||0===C?pn?"":C:z,readOnly:H,ref:e,type:U,value:W,width:h?dn:Y}),((null===M||void 0===M?void 0:M.touched)&&(null===M||void 0===M?void 0:M.error)||!rn&&an&&!nn&&B)&&(0,b.jsx)(l.ZP,{danger:!0,small:!0,children:(null===M||void 0===M?void 0:M.error)||"This field is required."})]})};e.Z=i.forwardRef(k)},55378:function(n,e,t){var r=t(82394),o=t(26304),i=t(82684),c=t(38626),a=t(69898),l=t(31969),u=t(49125),d=t(28598),s=["beforeIcon","children","label","multiple","placeholder"];function p(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function f(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?p(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):p(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var h=c.default.select.withConfig({displayName:"Select__SelectStyle",componentId:"sc-q6ezu2-0"})(["",' background-image:url("data:image/svg+xml;utf8,','");background-repeat:no-repeat;background-position:-webkit-calc(100% - ',"px) center;background-position:calc(100% - ","px) center;padding-right:","px;&:hover{cursor:pointer;}"," "," "," ",""],a.p,"\n <svg width='12' height='12' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'>\n <path\n clip-rule='evenodd'\n d='M8.0015 11.7109L14.0022 5.71017L12.588 4.29597L7.99485 8.88914L3.40754 4.34482L2 5.76567L8.0015 11.7109Z'\n fill='%23B4B8C0'\n fill-rule='evenodd'\n />\n </svg>",u.iI,u.iI,3*u.iI,(function(n){return!n.hasContent&&!n.showPlaceholder&&"\n color: ".concat((n.theme.content||l.Z.content).muted,";\n ")}),(function(n){return n.backgroundColor&&"\n background-color: ".concat(n.backgroundColor,";\n ")}),(function(n){return n.color&&"\n color: ".concat(n.color,";\n ")}),(function(n){return n.showPlaceholder&&"\n color: ".concat((n.theme.content||l.Z.content).inverted,";\n ")})),b=function(n,e){var t=n.beforeIcon,r=n.children,i=n.label,c=n.multiple,l=n.placeholder,u=(0,o.Z)(n,s);return(0,d.jsx)(a.Z,f(f({},u),{},{beforeIcon:t,input:(0,d.jsxs)(h,f(f({multiple:c},u),{},{children:[(i||l)&&(0,d.jsx)("option",{disabled:!(null===u||void 0===u||!u.value),value:"",children:i||l}),r]})),label:i,placeholder:l,ref:e,setContentOnMount:!0,showLabelRequirement:function(n){return!!n.content}}))};e.Z=i.forwardRef(b)},38435:function(n,e,t){var r=t(82394),o=t(26304),i=t(82684),c=t(38626),a=t(69898),l=t(28598),u=["rows"];function d(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function s(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?d(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var p=c.default.textarea.withConfig({displayName:"TextArea__TextInputStyle",componentId:"sc-112wx63-0"})(["",""],a.p),f=function(n,e){var t=n.rows,r=void 0===t?3:t,i=(0,o.Z)(n,u);return(0,l.jsx)(a.Z,s(s({},i),{},{input:(0,l.jsx)(p,s({rows:r},i)),ref:e}))};e.Z=i.forwardRef(f)},82944:function(n,e,t){var r=t(82394),o=t(91835),i=t(82684),c=t(38626),a=t(69898),l=t(28598);function u(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function d(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?u(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var s=c.default.input.withConfig({displayName:"TextInput__TextInputStyle",componentId:"sc-1ii4qtc-0"})(["",""],a.p),p=function(n,e){var t=(0,o.Z)({},n);return(0,l.jsx)(a.Z,d(d({},t),{},{input:(0,l.jsx)(s,d({},t)),ref:e}))};e.Z=i.forwardRef(p)},70902:function(n,e,t){var r=t(82394),o=t(26304),i=t(82684),c=t(38626),a=t(69898),l=t(23831),u=t(28598),d=["checked","disabled","onCheck"];function s(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function p(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?s(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var f=c.default.label.withConfig({displayName:"ToggleSwitch__ToggleSwitchStyle",componentId:"sc-179r5zs-0"})([""," position:relative;display:inline-block;width:","px;min-width:","px;height:","px;",' & input[type="checkbox"]{display:none;}& span{position:absolute;cursor:',";background-color:",";border-radius:13px;",';top:0;right:0;bottom:0;left:0;transition:background-color 0.2s ease;}& span::before{position:absolute;content:"";left:',"px;top:","px;width:","px;height:",'px;background-color:#787A85;border-radius:50%;transition:transform 0.3s ease;}& input[type="checkbox"]:checked + span::before{transform:',";}",""],a.p,46,46,26,(function(n){return n.compact&&"\n width: ".concat(35,"px;\n min-width: ").concat(35,"px;\n height: ").concat(20,"px;\n ")}),(function(n){return n.disabled?"not-allowed":"pointer"}),(function(n){return n.disabled?l.Z.monotone.white:l.Z.monotone.black}),(function(n){return n.disabled&&"border: 1px solid ".concat(l.Z.monotone.grey200)}),(function(n){return n.compact?"1":"2"}),(function(n){return n.compact?"1":"2"}),(function(n){return n.compact?"18":"22"}),(function(n){return n.compact?"18":"22"}),(function(n){return n.compact?"translateX(15px)":"translateX(20px)"}),(function(n){return!n.disabled&&!n.monotone&&'\n & input[type="checkbox"]:checked + span {\n background-color: #6AA1E0;\n }\n\n & input[type="checkbox"]:checked + span::before {\n background-color: '.concat(l.Z.monotone.white,";\n }\n ")})),h=function(n,e){var t=n.checked,r=n.disabled,i=n.onCheck,c=(0,o.Z)(n,d);return(0,u.jsx)(a.Z,p(p({},c),{},{disabled:r,input:(0,u.jsxs)(f,p(p({},c),{},{disabled:r,noBackground:!0,noBorder:!0,children:[(0,u.jsx)("input",{checked:t,type:"checkbox"}),(0,u.jsx)("span",{onClick:r?null:function(){return null===i||void 0===i?void 0:i((function(n){return!n}))}})]})),noBackground:!0,ref:e}))};e.Z=i.forwardRef(h)},90686:function(n,e,t){var r=t(82684),o=t(38626),i=t(19711),c=t(23831),a=t(73942),l=t(28598),u=(0,o.css)(["min-width:18px;padding-left:2px;padding-right:2px;"," "," "," "," "," ",""],(function(n){return!n.disabled&&"\n background-color: ".concat((n.theme.content||c.Z.content).inverted,";\n ")}),(function(n){return n.disabled&&"\n // background-color: ".concat((n.theme.monotone||c.Z.monotone).grey400," !important;\n ")}),(function(n){return n.mutedDisabled&&"\n opacity: 0.3;\n "}),(function(n){return!n.borderless&&"\n box-shadow: ".concat((n.theme.shadow||c.Z.shadow).tiny,";\n padding-bottom: 3px;\n padding-top: 3px;\n ")}),(function(n){return n.borderless&&"\n border-radius: ".concat(a.BG,"px;\n padding-bottom: 4px;\n padding-top: 4px;\n ")}),(function(n){return n.spacingLeft&&"\n margin-left: ".concat(n.spacingLeft,"px;\n ")})),d=o.default.kbd.withConfig({displayName:"KeyboardText__KbdStyle",componentId:"sc-18540m4-0"})(["",""],u),s=o.default.div.withConfig({displayName:"KeyboardText__DivStyle",componentId:"sc-18540m4-1"})(["",""],u);e.Z=function(n){var e=n.borderless,t=n.disabled,u=n.inline,p=n.keyText,f=n.monospace,h=n.mutedDisabled,b=n.spacingLeft,m=u?s:d,g=(0,r.useContext)(o.ThemeContext),v={};if(!e){var x,y;if(t)v.borderColor=null===(x=(null===g||void 0===g?void 0:g.monotone)||c.Z.monotone)||void 0===x?void 0:x.grey400;else v.borderColor=null===(y=(null===g||void 0===g?void 0:g.content)||c.Z.content)||void 0===y?void 0:y.active;v.borderRadius=a.BG,v.borderStyle="solid",v.borderWidth=1,v.overflow="hidden"}return(0,l.jsx)(i.ZP,{center:!0,inline:!0,monospace:f,muted:t||h,style:v,xsmall:!0,children:(0,l.jsx)(m,{borderless:e,disabled:t,mutedDisabled:h,spacingLeft:b,children:p})})}},79749:function(n,e,t){var r=t(38626),o=t(67971),i=t(90686),c=t(19711),a=t(49125),l=t(28598),u=r.default.div.withConfig({displayName:"KeyboardTextGroup__SpacingStyle",componentId:"sc-1bx41p7-0"})([""," "," ",""],(function(n){return n.small&&"\n margin-left: ".concat(.25*a.iI,"px;\n ")}),(function(n){return!n.small&&"\n margin-left: ".concat(.25*a.iI,"px;\n ")}),(function(n){return n.marginRight&&"\n margin-right: ".concat(.25*a.iI,"px;\n ")}));e.Z=function(n){var e=n.addPlusSignBetweenKeys,t=n.borderless,r=n.disabled,a=n.keyTextGroups,d=n.inline,s=n.monospace,p=n.mutedDisabled,f=n.small,h=n.uuidForKey,b=[],m=[];return a.forEach((function(n,o){var a=[];n.forEach((function(n,o){m.push(n),o>=1&&(a.push((0,l.jsx)(u,{small:f},"spacing-".concat(n))),e&&(a.push((0,l.jsx)(c.ZP,{disabled:r,monospace:s,small:f,children:"+"},"spacing-".concat(n,"-plus-sign"))),a.push((0,l.jsx)(u,{small:f},"spacing-".concat(n,"-after-plus-sign"))))),a.push((0,l.jsx)(i.Z,{borderless:t,disabled:r,inline:!0,keyText:n,monospace:s,mutedDisabled:p},"key-".concat(m.join("-"),"-").concat(h)))})),o>=1&&b.push((0,l.jsx)(u,{marginRight:!0,children:(0,l.jsx)(c.ZP,{monospace:s,muted:!0,small:!f,xsmall:f,children:"then"})},"then-".concat(o))),b.push.apply(b,a)})),(0,l.jsx)(o.ZP,{alignItems:"center",inline:d,children:b})}},24224:function(n,e,t){t.d(e,{$C:function(){return u},HK:function(){return p},Hk:function(){return l},IN:function(){return k},Od:function(){return g},Qj:function(){return j},Sm:function(){return Z},Tw:function(){return b},YC:function(){return f},fS:function(){return x},m5:function(){return O},mp:function(){return P},mr:function(){return h},oM:function(){return v},ry:function(){return m},sE:function(){return d},tS:function(){return y},vM:function(){return s},w6:function(){return w}});var r=t(21831),o=t(82394),i=t(7715);function c(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function a(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?c(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function l(n,e,t){var r=t.slice();return r.splice(e,0,n),r}function u(n,e,t){var r=e.slice();return d(e,t)||r.push(n),r}function d(n,e){return null===n||void 0===n?void 0:n.find(e)}function s(n,e){return null===n||void 0===n?void 0:n.reduce((function(n,t){var r=e(t);return n[r]||(n[r]=[]),n[r].push(t),n}),{})}function p(n,e){return null===n||void 0===n?void 0:n.reduce((function(n,t){return a(a({},n),{},(0,o.Z)({},e(t),t))}),{})}function f(n,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.ascending,o=void 0===r||r,c=t.absoluteValue,a=void 0!==c&&c,l="string"===typeof e||"number"===typeof e?function(n){return a?Math.abs((0,i.t2)(n,e)):(0,i.t2)(n,e)}:function(n){return a?Math.abs(e(n)):e(n)};return n.sort((function(n,e){var t=0;return l(n)>l(e)?t=o?1:-1:l(n)<l(e)&&(t=o?-1:1),t}))}function h(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e.ascending,r=void 0===t||t;return n.sort((function(n,e){var t=0;return n[0]>e[0]?t=r?1:-1:n[0]<e[0]&&(t=r?-1:1),t}))}function b(n,e){return n.reduce((function(n,t){return n.map(e).includes(e(t))?n:[].concat((0,r.Z)(n),[t])}),[])}function m(n,e){for(var t=-1,r=n.length;1+t<r;){var o=t+(r-t>>1);e(n[o])?t=o:r=o}return r}function g(n,e){var t=n.findIndex(e);return v(n,t)}function v(n,e){return n.slice(0,e).concat(n.slice(e+1,n.length))}function x(n,e){return n.map((function(n){return String(n)})).join()===e.map((function(n){return String(n)})).join()}function y(n,e){return n>e}function j(n,e){return n<e}function w(n){return Array(n).fill(0)}function O(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=Array.from(Array(n).keys());return 0!==e&&(t=t.map((function(n){return n+e}))),t}function Z(n){return n.reduce((function(n,e){return n+e}),0)}function k(n){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=n.reduce((function(n,e){return n+e}),0)/n.length;return Math.sqrt(n.reduce((function(n,e){return n.concat(Math.pow(e-t,2))}),[]).reduce((function(n,e){return n+e}),0)/(n.length-(e?0:1)))}function P(n){return n[Math.floor(Math.random()*n.length)]}},66653:function(n,e,t){function r(n){return n.stopPropagation&&n.stopPropagation(),n.preventDefault&&n.preventDefault(),n.cancelBubble=!0,n.returnValue=!1,!1}t.d(e,{j:function(){return r}})},51504:function(n,e,t){t.d(e,{y:function(){return i}});var r=t(75582),o=t(16115);function i(n,e){var t=n.map((function(n){return String(n)})),i=n.includes(o.PQ),c=n.includes(o.zX),a=n.includes(o.XR),l=o.xU.map((function(n){return String(n)})),u=o.vk.map((function(n){return String(n)})),d=o.Tr.map((function(n){return String(n)})),s=Object.entries(e).find((function(n){var e=(0,r.Z)(n,2),o=e[0];return e[1]&&!t.includes(String(o))&&(!c||!u.includes(String(o)))&&(!i||!l.includes(String(o)))&&(!a||!d.includes(String(o)))}));return n.every((function(n){return e[n]}))&&!s}}}]);
|
mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2786-ba6f486fcaf52ba0.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2786],{27125:function(n,e,t){var o=t(75582),u=t(82684),i=t(12691),r=t.n(i),c=t(34376),l=t.n(c),a=t(38626),s=t(83455),d=t(35490),p=t(66050),f=t(60328),v=t(16634),b=t(67971),h=t(10919),O=t(98781),j=t(86673),m=t(87815),g=t(19711),x=t(46261),Z=t(82531),_=t(73828),y=t(94353),P=t(22341),k=t(49125),T=t(44162),L=t(24224),w=t(96510),S=t(43482),D=t(28598);e.Z=function(n){var e=n.blockRuns,t=n.onClickRow,i=n.pipeline,c=n.selectedRun,C=n.setErrors,R=(0,u.useContext)(a.ThemeContext),M=(0,u.useState)(null),E=M[0],N=M[1],A=(0,u.useState)(null),I=A[0],Y=A[1],V=i||{},Q=V.uuid,U=V.type,F=(0,u.useMemo)((function(){return i.blocks||[]}),[i]),B=(0,u.useMemo)((function(){return(0,L.HK)(F,(function(n){return n.uuid}))}),[F]),H=(0,u.useMemo)((function(){return O.qL.INTEGRATION===U}),[U]),J=(0,u.useMemo)((function(){return O.qL.PYTHON===U}),[U]),K=(0,u.useMemo)((function(){var n,e;return null===(n=new d.Z)||void 0===n||null===(e=n.decodedToken)||void 0===e?void 0:e.token}),[]),q=(0,s.Db)((function(n){var e=n.blockUUID,t=n.pipelineRunId;return Z.ZP.block_outputs.pipelines.downloads.detailAsync(null===i||void 0===i?void 0:i.uuid,e,{pipeline_run_id:t,token:K},{onDownloadProgress:function(n){return N((Number((null===n||void 0===n?void 0:n.loaded)||0)/1e6).toFixed(3))},responseType:y.E.BLOB})}),{onSuccess:function(n){return(0,w.wD)(n,{callback:function(n){Y(null),(0,S.uS)(n,"block_output.".concat(_.Lu.CSV))},onErrorCallback:function(n,e){return null===C||void 0===C?void 0:C({errors:e,response:n})}})}}),X=(0,o.Z)(q,2),z=X[0],G=X[1].isLoading,W=[{uuid:"Date"},{uuid:"Status"},{uuid:"Trigger"},{uuid:"Block"},{uuid:"Completed"},{uuid:"Logs"}];return J&&W.push({uuid:"Output"}),(0,D.jsx)(m.Z,{columnFlex:[null,1,3,2,null,null,null],columns:W,isSelectedRow:function(n){return e[n].id===(null===c||void 0===c?void 0:c.id)},onClickRow:t,rows:null===e||void 0===e?void 0:e.map((function(n){var e,t,o,u,i=n||{},c=i.block_uuid,a=i.completed_at,s=i.created_at,d=i.id,O=i.pipeline_run_id,m=i.pipeline_schedule_id,Z=i.pipeline_schedule_name,_=i.status,y=c,L=y.split(":"),w=I===d&&G;H&&(y=L[0],o=L[1],u=L[2]);var S=B[y];S||(S=B[L[0]]);var C=[(0,D.jsx)(g.ZP,{default:!0,monospace:!0,children:s},"".concat(d,"_created_at")),(0,D.jsx)(g.ZP,{danger:p.V.FAILED===_,default:p.V.CANCELLED===_,info:p.V.INITIAL===_,monospace:!0,success:p.V.COMPLETED===_,warning:p.V.RUNNING===_,children:_},"".concat(d,"_status")),(0,D.jsx)(r(),{as:"/pipelines/".concat(Q,"/triggers/").concat(m),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,D.jsx)(h.Z,{bold:!0,sameColorAsText:!0,children:Z})},"".concat(d,"_trigger")),(0,D.jsx)(r(),{as:"/pipelines/".concat(Q,"/edit?block_uuid=").concat(y),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,D.jsxs)(h.Z,{bold:!0,sameColorAsText:!0,verticalAlignContent:!0,children:[(0,D.jsx)(v.Z,{color:(0,T.qn)(null===(e=S)||void 0===e?void 0:e.type,{blockColor:null===(t=S)||void 0===t?void 0:t.color,theme:R}).accent,size:1.5*k.iI,square:!0}),(0,D.jsx)(j.Z,{mr:1}),(0,D.jsxs)(g.ZP,{monospace:!0,children:[y,o&&": ",o&&(0,D.jsx)(g.ZP,{default:!0,inline:!0,monospace:!0,children:o}),u>=0&&": ",u>=0&&(0,D.jsx)(g.ZP,{default:!0,inline:!0,monospace:!0,children:u})]})]})},"".concat(d,"_block_uuid")),(0,D.jsx)(g.ZP,{default:!0,monospace:!0,children:a||"-"},"".concat(d,"_completed_at")),(0,D.jsx)(f.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return l().push("/pipelines/".concat(Q,"/logs?block_run_id[]=").concat(d))},children:(0,D.jsx)(P.B4,{default:!0,size:2*k.iI})},"".concat(d,"_logs"))];return J&&C.push((0,D.jsx)(b.ZP,{alignItems:"center",justifyContent:"center",children:(0,D.jsx)(x.Z,{appearBefore:!0,autoHide:!w,block:!0,forceVisible:w,label:w?"".concat(E||0,"mb downloaded..."):"Save block run output as CSV file",size:null,widthFitContent:!0,children:(0,D.jsx)(f.Z,{default:!0,disabled:!J||!(p.V.COMPLETED===_)||G,iconOnly:!0,loading:w,noBackground:!0,onClick:function(){N(null),Y(d),z({blockUUID:y,pipelineRunId:O})},children:(0,D.jsx)(P.vc,{default:!0,size:2*k.iI})})})},"".concat(d,"_save_output"))),C})),uuid:"block-runs"})}},43482:function(n,e,t){t.d(e,{Dp:function(){return f},OF:function(){return v},Q9:function(){return h},Rt:function(){return s},h8:function(){return b},k1:function(){return d},uS:function(){return O}});var o=t(21831),u=t(82394),i=t(91427),r=t(24224),c=t(90211);function l(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,o)}return t}function a(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?l(Object(t),!0).forEach((function(e){(0,u.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):l(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function s(n){var e={},t={};return null===n||void 0===n||n.forEach((function(n){var o=n.content,u=n.outputs,i=n.type,r=n.uuid;(null===u||void 0===u?void 0:u.length)>=1&&(e[r]=u.map((function(n){var e=n||{},t=e.sample_data,o=e.shape,u=e.text_data,i=e.type;return t?{data:a({shape:o},t),type:i}:u&&(0,c.Pb)(u)?JSON.parse(u):u}))),t[i]||(t[i]={}),t[i][r]=o})),{content:t,messages:e}}function d(n,e,t){n.forEach((function(n){(0,i.t8)("".concat(t,"/").concat(n.uuid,"/codeCollapsed"),(0,i.Od)("".concat(e,"/").concat(n.uuid,"/codeCollapsed"))),(0,i.t8)("".concat(t,"/").concat(n.uuid,"/outputCollapsed"),(0,i.Od)("".concat(e,"/").concat(n.uuid,"/outputCollapsed")))}))}function p(n){return"".concat(n,"/").concat(i.kP)}function f(n){return(0,i.U2)(p(n),[])}function v(n,e){var t=f(n);t.includes(e)||(0,i.t8)(p(n),[].concat((0,o.Z)(t),[e]))}function b(n,e){var t=f(n).filter((function(n){return n!==e}));(0,i.t8)(p(n),t)}function h(n,e){var t=(0,r.HK)(e,(function(n){return n.uuid}));return n.map((function(n){return t[n]})).filter((function(n){return!!n}))}var O=function(n,e){var t=window.URL.createObjectURL(n),o=document.createElement("a");o.href=t,o.download=e,document.body.appendChild(o),o.click(),o.remove()}},56681:function(n,e,t){t.d(e,{G7:function(){return Z},ZP:function(){return _},u$:function(){return m}});var o=t(75582),u=t(82394),i=t(26304),r=t(32316),c=t(22673),l=t(48952),a=t(86673),s=t(19711),d=t(87815),p=t(49125),f=t(19395),v=t(7715),b=t(28598),h=["height","heightOffset","pipeline","selectedRun","selectedTab","setSelectedTab"];function O(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,o)}return t}function j(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?O(Object(t),!0).forEach((function(e){(0,u.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):O(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var m=76,g={uuid:"Run details"},x={uuid:"Dependency tree"},Z=[x,g];function _(n){var e=n.height,t=n.heightOffset,u=n.pipeline,O=n.selectedRun,_=n.selectedTab,y=n.setSelectedTab,P=j({},(0,i.Z)(n,h));O?P.blockStatus=(0,f.IJ)(null===O||void 0===O?void 0:O.block_runs):P.noStatus=!0;var k=(0,v.Kn)(null===O||void 0===O?void 0:O.variables)?j({},null===O||void 0===O?void 0:O.variables):(null===O||void 0===O?void 0:O.variables)||{},T=null===O||void 0===O?void 0:O.event_variables;if(T&&(0,v.Kn)(T)&&!(0,v.Qr)(T))if((0,v.Kn)(k)&&k.hasOwnProperty("event")){var L=(0,v.Kn)(k.event)?k.event:{};k.event=j(j({},L),T)}else k.event=j({},T);var w=[];k&&JSON.stringify(k,null,2).split("\n").forEach((function(n){w.push(" ".concat(n))}));var S=O&&[["Run ID",null===O||void 0===O?void 0:O.id],["Variables",(0,b.jsx)(c.Z,{language:"json",small:!0,source:w.join("\n")},"variable_value")]],D=O&&(0,b.jsx)(a.Z,{pb:p.cd,px:p.cd,children:(0,b.jsx)(d.Z,{alignTop:!0,columnFlex:[null,1],columnMaxWidth:function(n){return 1===n?"100px":null},rows:S.map((function(n,e){var t=(0,o.Z)(n,2),u=t[0],i=t[1];return[(0,b.jsx)(s.ZP,{monospace:!0,muted:!0,children:u},"key_".concat(e)),(0,b.jsx)(s.ZP,{monospace:!0,textOverflow:!0,children:i},"val_".concat(e))]})),uuid:"LogDetail"})}),C=_&&y;return(0,b.jsxs)(b.Fragment,{children:[C&&(0,b.jsx)(a.Z,{py:p.cd,children:(0,b.jsx)(r.Z,{onClickTab:y,selectedTabUUID:null===_||void 0===_?void 0:_.uuid,tabs:Z})}),(!C||x.uuid===(null===_||void 0===_?void 0:_.uuid))&&(0,b.jsx)(l.Z,j(j({},P),{},{height:e,heightOffset:(t||0)+(C?m:0),pipeline:u})),g.uuid===(null===_||void 0===_?void 0:_.uuid)&&D]})}},73828:function(n,e,t){t.d(e,{JD:function(){return h},Lu:function(){return i},PF:function(){return f},d2:function(){return p},dT:function(){return r},n6:function(){return a},nB:function(){return b},oy:function(){return v},xF:function(){return d}});var o,u,i,r,c=t(82394),l=t(86422);!function(n){n.CSV="csv",n.JSON="json",n.MD="md",n.PY="py",n.R="r",n.SQL="sql",n.TXT="txt",n.YAML="yaml",n.YML="yml"}(i||(i={})),function(n){n.INIT_PY="__init__.py",n.METADATA_YAML="metadata.yaml",n.REQS_TXT="requirements.txt"}(r||(r={}));var a=[i.PY,i.SQL],s=[i.JSON,i.MD,i.PY,i.R,i.SQL,i.TXT,i.YAML,i.YML],d=new RegExp(s.map((function(n){return".".concat(n,"$")})).join("|")),p=new RegExp(s.map((function(n){return".".concat(n,"$")})).join("|")),f="charts",v="pipelines",b=(o={},(0,c.Z)(o,i.MD,l.t6.MARKDOWN),(0,c.Z)(o,i.JSON,i.JSON),(0,c.Z)(o,i.PY,l.t6.PYTHON),(0,c.Z)(o,i.R,l.t6.R),(0,c.Z)(o,i.SQL,l.t6.SQL),(0,c.Z)(o,i.TXT,"text"),(0,c.Z)(o,i.YAML,l.t6.YAML),(0,c.Z)(o,i.YML,l.t6.YAML),o),h=(u={},(0,c.Z)(u,l.t6.MARKDOWN,i.MD),(0,c.Z)(u,l.t6.PYTHON,i.PY),(0,c.Z)(u,l.t6.R,i.R),(0,c.Z)(u,l.t6.SQL,i.SQL),(0,c.Z)(u,l.t6.YAML,i.YAML),(0,c.Z)(u,"text",i.TXT),u)}}]);
|
mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3391-6f0a0a5c254cd7f2.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3391],{73828:function(n,e,t){t.d(e,{JD:function(){return m},Lu:function(){return o},PF:function(){return h},d2:function(){return f},dT:function(){return c},n6:function(){return d},nB:function(){return g},oy:function(){return p},xF:function(){return s}});var i,r,o,c,a=t(82394),l=t(86422);!function(n){n.CSV="csv",n.JSON="json",n.MD="md",n.PY="py",n.R="r",n.SQL="sql",n.TXT="txt",n.YAML="yaml",n.YML="yml"}(o||(o={})),function(n){n.INIT_PY="__init__.py",n.METADATA_YAML="metadata.yaml",n.REQS_TXT="requirements.txt"}(c||(c={}));var d=[o.PY,o.SQL],u=[o.JSON,o.MD,o.PY,o.R,o.SQL,o.TXT,o.YAML,o.YML],s=new RegExp(u.map((function(n){return".".concat(n,"$")})).join("|")),f=new RegExp(u.map((function(n){return".".concat(n,"$")})).join("|")),h="charts",p="pipelines",g=(i={},(0,a.Z)(i,o.MD,l.t6.MARKDOWN),(0,a.Z)(i,o.JSON,o.JSON),(0,a.Z)(i,o.PY,l.t6.PYTHON),(0,a.Z)(i,o.R,l.t6.R),(0,a.Z)(i,o.SQL,l.t6.SQL),(0,a.Z)(i,o.TXT,"text"),(0,a.Z)(i,o.YAML,l.t6.YAML),(0,a.Z)(i,o.YML,l.t6.YAML),i),m=(r={},(0,a.Z)(r,l.t6.MARKDOWN,o.MD),(0,a.Z)(r,l.t6.PYTHON,o.PY),(0,a.Z)(r,l.t6.R,o.R),(0,a.Z)(r,l.t6.SQL,o.SQL),(0,a.Z)(r,l.t6.YAML,o.YAML),(0,a.Z)(r,"text",o.TXT),r)},29237:function(n,e,t){var i=t(38626),r=t(67971),o=t(86673),c=t(19711),a=t(23831),l=t(73942),d=t(37391),u=t(49125),s=t(28598),f=(0,i.css)(["padding:","px;padding-bottom:","px;padding-top:","px;"],2*u.iI,1.5*u.iI,1.5*u.iI),h=i.default.div.withConfig({displayName:"Panel__PanelStyle",componentId:"sc-1ct8cgl-0"})(["border-radius:","px;overflow:hidden;"," "," "," "," "," "," "," "," "," "," "," ",""],l.n_,(function(n){return n.fullWidth&&"\n width: 100%;\n "}),(function(n){return!n.borderless&&"\n border: 1px solid ".concat((n.theme.interactive||a.Z.interactive).defaultBorder,";\n ")}),(function(n){return n.success&&"\n background-color: ".concat((n.theme.background||a.Z.background).successLight,";\n ")}),(function(n){return n.success&&!n.borderless&&"\n border: 1px solid ".concat((n.theme.background||a.Z.background).success,";\n ")}),(function(n){return!n.dark&&!n.success&&"\n background-color: ".concat((n.theme.background||a.Z.background).panel,";\n ")}),(function(n){return n.dark&&"\n background-color: ".concat((n.theme.background||a.Z.background).content,";\n ")}),(function(n){return!n.fullHeight&&"\n height: fit-content;\n "}),(function(n){return n.maxHeight&&"\n max-height: ".concat(n.maxHeight,";\n ")}),(function(n){return n.maxWidth&&"\n max-width: ".concat(n.maxWidth,"px;\n ")}),(function(n){return n.minWidth&&"\n min-width: ".concat(n.minWidth,"px;\n\n @media (max-width: ").concat(n.minWidth,"px) {\n min-width: 0;\n }\n ")}),(function(n){return n.borderless&&"\n border: none;\n "}),(function(n){return n.overflowVisible&&"\n overflow: visible;\n "})),p=i.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(n){return"\n background-color: ".concat((n.theme.background||a.Z.background).chartBlock,";\n border-bottom: 1px solid ").concat((n.theme.interactive||a.Z.interactive).defaultBorder,";\n ")}),(function(n){return n.height&&"\n height: ".concat(n.height,"px;\n ")}),f,(function(n){return n.headerPaddingVertical&&"\n padding-bottom: ".concat(n.headerPaddingVertical,"px;\n padding-top: ").concat(n.headerPaddingVertical,"px;\n ")})),g=i.default.div.withConfig({displayName:"Panel__ContentStyle",componentId:"sc-1ct8cgl-2"})(["overflow-y:auto;padding:","px;height:100%;"," "," "," "," ",""],1.75*u.iI,d.w5,(function(n){return n.height&&"\n height: ".concat(n.height,"px;\n ")}),(function(n){return n.maxHeight&&"\n max-height: calc(".concat(n.maxHeight," - ").concat(15*u.iI,"px);\n ")}),(function(n){return n.noPadding&&"\n padding: 0;\n "}),(function(n){return n.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;"],l.M8,l.YF,1.75*u.iI);e.Z=function(n){var e=n.borderless,t=n.children,i=n.containerRef,a=n.contentContainerRef,l=n.dark,d=n.footer,u=n.fullHeight,f=void 0===u||u,b=n.fullWidth,x=void 0===b||b,y=n.header,w=n.headerHeight,v=n.headerIcon,j=n.headerPaddingVertical,P=n.headerTitle,Z=n.maxHeight,_=n.maxWidth,S=n.minWidth,O=n.noPadding,N=n.overflowVisible,I=n.subtitle,H=n.success;return(0,s.jsxs)(h,{borderless:e,dark:l,fullHeight:f,fullWidth:x,maxHeight:Z,maxWidth:_,minWidth:S,overflowVisible:N,ref:i,success:H,children:[(y||P)&&(0,s.jsxs)(p,{headerPaddingVertical:j,height:w,children:[y&&y,P&&(0,s.jsx)(r.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,s.jsxs)(r.ZP,{alignItems:"center",children:[v&&v,(0,s.jsx)(o.Z,{ml:v?1:0,children:(0,s.jsx)(c.ZP,{bold:!0,default:!0,children:P})})]})})]}),(0,s.jsxs)(g,{maxHeight:Z,noPadding:O,overflowVisible:N,ref:a,children:[I&&(0,s.jsx)(o.Z,{mb:2,children:(0,s.jsx)(c.ZP,{default:!0,children:I})}),t]}),d&&(0,s.jsx)(m,{children:d})]})}},66176:function(n,e,t){var i=t(82394),r=t(91835),o=(t(82684),t(38626)),c=t(23831),a=t(73942),l=t(49125),d=t(28598);function u(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,i)}return t}function s(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?u(Object(t),!0).forEach((function(e){(0,i.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var f=o.default.div.withConfig({displayName:"ProgressBar__ProgressBarContainerStyle",componentId:"sc-10x9ojc-0"})(["border-radius:","px;height:","px;overflow:hidden;position:relative;width:100%;",""],a.BG,.75*l.iI,(function(n){return"\n background-color: ".concat((n.theme.monotone||c.Z.monotone).grey200,";\n ")})),h=o.default.div.withConfig({displayName:"ProgressBar__ProgressBarStyle",componentId:"sc-10x9ojc-1"})(["height:inherit;position:absolute;"," "," "," ",""],(function(n){return!n.danger&&"\n background-color: ".concat((n.theme.progress||c.Z.progress).positive,";\n ")}),(function(n){return n.progress&&"\n width: ".concat(n.progress,"%;\n ")}),(function(n){return n.danger&&"\n background-color: ".concat((n.theme.progress||c.Z.progress).negative,";\n ")}),(function(n){return n.animateProgress&&"\n animation: animate-progress ".concat(n.animateProgress.duration,"ms linear forwards;\n\n @keyframes animate-progress {\n 0% {\n width: ").concat(n.animateProgress.start,"%;\n }\n\n 100% {\n width: ").concat(n.animateProgress.end,"%;\n }\n }\n ")}));e.Z=function(n){var e=(0,r.Z)({},n);return(0,d.jsx)(f,s(s({},e),{},{children:(0,d.jsx)(h,s({},e))}))}},87372:function(n,e,t){var i,r,o,c,a,l,d,u,s=t(82394),f=t(26304),h=t(26653),p=t(38626),g=t(33591),m=t(23831),b=t(2005),x=t(31012),y=t(19711),w=t(49125),v=t(86673),j=t(28598),P=["children","condensed","inline","level","marketing","spacingBelow"];function Z(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,i)}return t}function _(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?Z(Object(t),!0).forEach((function(e){(0,s.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var S=(0,p.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],y.IH,(function(n){return n.color&&"\n color: ".concat(n.color,"\n ")}),(function(n){return n.yellow&&"\n color: ".concat((n.theme.accent||m.Z.accent).yellow,";\n ")}),(function(n){return n.center&&"\n text-align: center;\n "}),(function(n){return!n.monospace&&0===Number(n.weightStyle)&&"\n font-family: ".concat(b.iI,";\n ")}),(function(n){return!n.monospace&&1===Number(n.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(n){return!n.monospace&&2===Number(n.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(n){return!n.monospace&&3===Number(n.weightStyle)&&"\n font-family: ".concat(b.ry,";\n ")}),(function(n){return!n.monospace&&4===Number(n.weightStyle)&&"\n font-family: ".concat(b.YC,";\n ")}),(function(n){return!n.monospace&&5===Number(n.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(n){return!n.monospace&&(6===Number(n.weightStyle)||n.bold)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(n){return!n.monospace&&7===Number(n.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(n){return!n.monospace&&8===Number(n.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(n){return n.lineHeightAuto&&"\n line-height: normal !important;\n "})),O=p.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(n){return"\n color: ".concat((n.theme.content||m.Z.content).active,";\n ")})),N=p.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],S,g.media.md(i||(i=(0,h.Z)(["\n ","\n "])),x.aQ),g.media.lg(r||(r=(0,h.Z)(["\n ","\n "])),x.aQ),g.media.xl(o||(o=(0,h.Z)(["\n ","\n "])),x.aQ)),I=p.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],S,x.MJ),H=p.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],S,g.media.xs(c||(c=(0,h.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),g.media.sm(a||(a=(0,h.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),g.media.md(l||(l=(0,h.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),g.media.lg(d||(d=(0,h.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),g.media.xl(u||(u=(0,h.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI)),k=p.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],S,x.BL),C=p.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],S),L=p.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],S),M=p.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],S),Y=p.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],S,(function(n){return 1===n.level&&"\n ".concat(x.MJ,"\n ")}),(function(n){return 2===n.level&&"\n ".concat(x.BL,"\n ")}),(function(n){return 3===n.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(n){return 4===n.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),z=function(n){var e,t=n.children,i=n.condensed,r=n.inline,o=n.level,c=n.marketing,a=n.spacingBelow,l=(0,f.Z)(n,P);r?e=Y:0===Number(o)?e=N:1===Number(o)?e=c?H:I:2===Number(o)?e=k:3===Number(o)?e=C:4===Number(o)?e=L:5===Number(o)&&(e=M);var d=(0,j.jsxs)(e,_(_({},l),{},{level:o,children:[a&&(0,j.jsx)(v.Z,{mb:i?2:3,children:t}),!a&&t]}));return r?d:(0,j.jsx)(O,{children:d})};z.defaultProps={level:3,weightStyle:6},e.Z=z}}]);
|
mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6299-fcb702d0f3d3291b.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6299],{43032:function(e,n,t){t.d(n,{Cl:function(){return u},Nk:function(){return c},ZG:function(){return l}});var o=t(38626),r=t(23831),i=t(49125),l=1.5*i.iI,u=1*l+i.iI/2,c=o.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-uvd91-0"})([".row:hover{","}"],(function(e){return"\n background-color: ".concat((e.theme.interactive||r.Z.interactive).hoverBackground,";\n ")}))},46299:function(e,n,t){t.d(n,{Z:function(){return ie}});var o=t(82394),r=t(75582),i=t(26304),l=t(82684),u=t(38626),c=t(83455),a=t(86422),s=t(62084),d=t(16634),f=t(73828),p=t(93461),v=t(19711),h=t(22341),m=t(43032),b=t(49125),g=t(60701),j=t(91427),y=t(44162),C=t(32821),k=t(24224),x=t(90211),w=t(28598);function O(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function D(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,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):O(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Z="default_repo";var F=function e(n){var t=n.allowEmptyFolders,o=n.allowSelectingFolders,r=n.containerRef,i=n.disableContextMenu,u=n.file,c=n.isFileDisabled,s=n.level,O=n.onClickFile,F=n.onClickFolder,P=n.onSelectBlockFile,E=n.onlyShowChildren,_=n.openFile,I=n.openPipeline,S=n.openSidekickView,R=n.pipelineBlockUuids,T=n.renderAfterContent,N=n.selectFile,M=n.setContextItem,L=n.setCoordinates,A=n.setDraggingFile,U=n.setSelectedFile,B=n.theme,z=n.timeout,q=n.uncollapsed,W=n.useRootFolder,Y=u.children,$=u.disabled,G=u.name,H=u.parent;G||t||(u.name=Z);var Q,X=W?(0,C.a9)(u):(0,C.jN)(u),V=(null===H||void 0===H?void 0:H.name)===f.oy,J=(0,l.useMemo)((function(){return Y?(0,k.YC)(Y,(function(e){return e.children?0:1})):Y}),[Y]),K=c?c(X,J):$||"__init__.py"===G||!(null===G||void 0===G||!G.match(/^\./))||!G.match(f.d2)&&!Y,ee=c?c(X,J):$||"__init__.py"===G||!(null===G||void 0===G||!G.match(/^\./))&&!J||!G.match(f.d2)&&!Y,ne="".concat(s,"/").concat(G),te=(R.includes((0,C.dq)(u)),(0,l.useState)("undefined"===typeof q?(0,j.U2)(ne,!1):!q)),oe=te[0],re=te[1],ie=h.iU;1===s&&G===f.oy?ie=h.B_:G===f.PF?ie=h.er:J?ie=h.gt:!G&&t&&(ie=h.mH),J&&a.$W.includes((0,x.C5)(G))&&(0,x.C5)(G)!==a.tf.CHART&&(Q=(0,y.qn)((0,x.C5)(G),{theme:B}).accent);var le=(0,l.useMemo)((function(){return null===J||void 0===J?void 0:J.map((function(n){return(0,w.jsx)(e,{allowEmptyFolders:t,allowSelectingFolders:o,containerRef:r,disableContextMenu:i,file:D(D({},n),{},{parent:u}),isFileDisabled:c,level:E?s:s+1,onClickFile:O,onClickFolder:F,onSelectBlockFile:P,openFile:_,openPipeline:I,openSidekickView:S,pipelineBlockUuids:R,renderAfterContent:T,selectFile:N,setContextItem:M,setCoordinates:L,setDraggingFile:A,setSelectedFile:U,theme:B,timeout:z,uncollapsed:q,useRootFolder:W},"".concat(ne,"/").concat((null===n||void 0===n?void 0:n.name)||Z))}))}),[t,o,J,r,i,u,c,s,O,F,P,E,_,I,S,R,T,N,M,L,A,U,B,z,q,W,ne]),ue=(0,l.useMemo)((function(){var e=[];return(0,k.w6)(s).forEach((function(n,t){var o,r=m.Cl-1;e.push((0,w.jsx)("div",{style:{borderLeft:"1px solid ".concat(null===B||void 0===B||null===(o=B.content)||void 0===o?void 0:o.disabled),height:22,marginLeft:r/2-2,paddingLeft:r/2+2}},"line-".concat(ne,"-").concat(t)))})),e}),[s,B,ne]);return(0,w.jsxs)(w.Fragment,{children:[!E&&(0,w.jsxs)("div",{className:"row",onClick:function(e){if(e.preventDefault(),!ee){if((null===H||void 0===H?void 0:H.name)===f.PF){null===S||void 0===S||S(g.cH.CHARTS);var n=(0,C.lr)(u);n&&(null===P||void 0===P||P(n.uuid,n.type,(0,C.jN)(u)))}var t=(0,C.V3)(u);if(J)o?N(X):re((function(e){return(0,j.t8)(ne,!e),!e})),null===F||void 0===F||F(X);else if(O)O(X);else if(t)null===P||void 0===P||P(t.uuid,t.type,(0,C.jN)(u));else if(G.match(f.xF))null===_||void 0===_||_(X);else{var r=(0,C.lr)(u);r&&(null===P||void 0===P||P(r.uuid,r.type,(0,C.jN)(u)))}}},onContextMenu:function(e){var n;clearTimeout(z.current),null!==r&&void 0!==r&&null!==(n=r.current)&&void 0!==n&&n.contains(e.target)&&!i&&(e.preventDefault(),L({x:e.pageX,y:e.pageY}),A(null),U(u))},onMouseDown:function(e){var n,t=u?(0,C.lr)(u,null,!0):null;null===r||void 0===r||null===(n=r.current)||void 0===n||!n.contains(e.target)||!t||(null===J||void 0===J?void 0:J.length)>=1||i||ee||V||(e.preventDefault(),clearTimeout(z.current),z.current=setTimeout((function(){L({x:e.pageX,y:e.pageY}),A(u),U(null)}),300))},style:{alignItems:"center",cursor:"default",display:"flex",minWidth:s*m.Cl+u.name.length*b.Fo+2*b.iI,paddingRight:b.iI/4},children:[(0,w.jsxs)(p.Z,{alignItems:"center",flex:1,children:[ue,J&&!oe&&(0,w.jsx)(h._M,{muted:!0,size:m.ZG}),J&&oe&&(0,w.jsx)(h._Q,{muted:!0,size:m.ZG}),!J&&(0,w.jsx)("div",{style:{width:m.ZG}}),(0,w.jsxs)("div",{style:{marginLeft:b.iI/2,marginRight:b.iI/2},children:[!Q&&(0,w.jsx)(ie,{disabled:K,size:m.ZG}),Q&&(0,w.jsx)(d.Z,{color:Q,size:m.ZG,square:!0})]}),(0,w.jsx)(v.ZP,{color:Q,default:!Q&&!ee,disabled:ee,monospace:!0,small:!0,children:G})]}),T&&T(u)]}),(0,w.jsx)("div",{style:{display:oe?"none":"block"},children:le})]})},P=t(60328),E=t(67971),_=t(11135),I=t(29237),S=t(86673),R=t(82944),T=t(82531),N=t(7715),M=t(96510);var L=function(e){var n=e.fetchFileTree,t=e.file,o=e.moveFile,i=e.onCancel,u=e.onCreateFile,a=e.selectedFolder,s=e.setErrors,d=(0,l.useRef)(null),f=(0,N.Qr)(t)?null:t,p=(0,l.useState)(f?(0,C.jN)(f,null,!0):""),v=p[0],h=p[1],m=(0,l.useState)(f?null===f||void 0===f?void 0:f.name:""),b=m[0],g=m[1];(0,l.useEffect)((function(){var e;null===d||void 0===d||null===(e=d.current)||void 0===e||e.focus()}),[]),(0,l.useEffect)((function(){a&&h((0,C.jN)(a))}),[a]);var j=(0,c.Db)(T.ZP.files.useCreate(),{onSuccess:function(e){return(0,M.wD)(e,{callback:function(e){var t=e.file;null===n||void 0===n||n(),i(),null===u||void 0===u||u(t)},onErrorCallback:function(e,n){return s({errors:n,response:e})}})}}),y=(0,r.Z)(j,1)[0],k=(0,c.Db)(T.ZP.files.useUpdate(f&&encodeURIComponent((0,C.jN)(f))),{onSuccess:function(e){return(0,M.wD)(e,{callback:function(){null===n||void 0===n||n(),i()},onErrorCallback:function(e,n){return s({errors:n,response:e})}})}}),x=(0,r.Z)(k,1)[0];return(0,w.jsxs)(I.Z,{footer:(0,w.jsxs)(E.ZP,{children:[(0,w.jsxs)(_.ZP,{bold:!0,disabled:!b,inline:!0,onClick:function(){return f?x({file:{dir_path:v,name:b},file_json_only:!0}):y({file:{dir_path:v,name:b,overwrite:!1},file_json_only:!0})},primary:!0,tabIndex:0,uuid:"NewFile/create_file",children:[f?o?"Move":"Rename":"Create"," file"]}),(0,w.jsx)(S.Z,{ml:1,children:(0,w.jsx)(P.Z,{onClick:function(){return i()},tabIndex:0,children:"Cancel"})})]}),headerTitle:f?o?"Move file":"Rename file":"New file",children:[(0,w.jsx)(R.Z,{disabled:!!f&&!o,label:"Directory",monospace:!0,onChange:function(e){return h(e.target.value)},setContentOnMount:!0,value:v}),(0,w.jsx)(S.Z,{mt:2,children:(0,w.jsx)(R.Z,{disabled:!!o,label:"Filename",monospace:!0,onChange:function(e){return g(e.target.value)},ref:d,required:!0,value:b})})]})};var A=function(e){var n=e.fetchFileTree,t=e.file,o=e.moveFile,i=e.onCancel,u=e.onCreateFile,a=e.selectedFolder,s=e.setErrors,d=(0,l.useRef)(null),f=(0,N.Qr)(t)?null:t,p=(0,l.useState)(f?(0,C.jN)(f,null,!0):""),v=p[0],h=p[1],m=(0,l.useState)(f?null===f||void 0===f?void 0:f.name:""),b=m[0],g=m[1];(0,l.useEffect)((function(){var e;null===d||void 0===d||null===(e=d.current)||void 0===e||e.focus()}),[]),(0,l.useEffect)((function(){a&&h((0,C.jN)(a,null,!0))}),[a]);var j=(0,c.Db)(T.ZP.folders.useCreate(),{onSuccess:function(e){return(0,M.wD)(e,{callback:function(e){var t=e.file;null===n||void 0===n||n(),i(),null===u||void 0===u||u(t)},onErrorCallback:function(e,n){return s({errors:n,response:e})}})}}),y=(0,r.Z)(j,1)[0],k=(0,c.Db)(T.ZP.folders.useUpdate(f&&encodeURIComponent((0,C.jN)(f))),{onSuccess:function(e){return(0,M.wD)(e,{callback:function(){null===n||void 0===n||n(),i()},onErrorCallback:function(e,n){return s({errors:n,response:e})}})}}),x=(0,r.Z)(k,1)[0];return(0,w.jsxs)(I.Z,{footer:(0,w.jsxs)(E.ZP,{children:[(0,w.jsxs)(_.ZP,{bold:!0,disabled:!b,inline:!0,onClick:function(){return f?x({folder:{name:b,path:v}}):y({folder:{name:b,overwrite:!1,path:v}})},primary:!0,tabIndex:0,uuid:"NewFolder/create_folder",children:[f?o?"Move":"Rename":"Create"," folder"]}),(0,w.jsx)(S.Z,{ml:1,children:(0,w.jsx)(P.Z,{onClick:function(){return i()},tabIndex:0,children:"Cancel"})})]}),headerTitle:f?o?"Move folder":"Rename folder":"New folder",children:[(0,w.jsx)(R.Z,{disabled:!!f&&!o,label:"Directory",monospace:!0,onChange:function(e){return h(e.target.value)},setContentOnMount:!0,value:v}),(0,w.jsx)(S.Z,{mt:2,children:(0,w.jsx)(R.Z,{disabled:!!o,label:"Folder name",monospace:!0,onChange:function(e){return g(e.target.value)},ref:d,required:!0,value:b})})]})},U=t(98781),B=t(62609),z=t(55106),q=t(66176),W=t(87815),Y=t(23831),$=t(73942),G=(b.iI,u.default.div.withConfig({displayName:"indexstyle__DropZoneStyle",componentId:"sc-1g3zz7z-0"})(["border-radius:","px;padding:","px;max-width:","px;min-width:","px;",""],$.n_,8*b.iI,100*b.iI,55*b.iI,(function(e){return"\n border: 1px dashed ".concat((e.theme.borders||Y.Z.borders).contrast,";\n ")}))),H=u.default.div.withConfig({displayName:"indexstyle__TableStyle",componentId:"sc-1g3zz7z-1"})(["max-width:","px;min-width:","px;"],100*b.iI,55*b.iI);var Q=function(e){var n=e.fetchFileTree,t=e.onCancel,o=e.selectedFolder,i=(0,l.useState)(!1),u=i[0],c=i[1],a=(0,l.useState)({}),s=a[0],d=a[1],f=(0,l.useState)({}),p=f[0],h=f[1],m=!(0,N.Qr)(s),b=(0,l.useMemo)((function(){var e=[];return(0,k.YC)(Object.entries(s),(function(e){var n=(0,r.Z)(e,2),t=n[0];n[1];return t})).forEach((function(n){var t=(0,r.Z)(n,2),o=t[0],i=t[1],l=p[o],u=null===l||void 0===l?void 0:l.message;e.push([(0,w.jsxs)("div",{children:[(0,w.jsx)(v.ZP,{overflowWrap:!0,preWrap:!0,children:o}),u&&(0,w.jsx)(S.Z,{mt:1,children:(0,w.jsx)(v.ZP,{danger:!0,small:!0,children:u})})]},"name-".concat(o)),(0,w.jsx)(q.Z,{danger:!!u,progress:100*i},"progress-".concat(o))])})),(0,w.jsx)(W.Z,{columnFlex:[1,4],columns:[{uuid:"Filename"},{uuid:"Upload progress"}],rows:e,uuid:"block-runs"})}),[s,p]);return(0,w.jsxs)(I.Z,{footer:(0,w.jsxs)(E.ZP,{fullWidth:!0,children:[(0,w.jsx)(P.Z,{onClick:function(){return t()},children:"Close"}),m&&(0,w.jsx)(S.Z,{ml:1,children:(0,w.jsx)(P.Z,{onClick:function(){d({}),h({})},children:"Clear files and retry"})})]}),headerTitle:"Upload files",children:[m&&(0,w.jsx)(H,{children:b}),!m&&(0,w.jsx)(z.Z,{directoryPath:o?(0,C.jN)(o):"",onDragActiveChange:c,setFileUploadProgress:d,setUploadedFiles:function(e){h(e),null===n||void 0===n||n()},children:(0,w.jsx)(G,{children:(0,w.jsxs)(v.ZP,{center:!0,children:[u&&"Drop to upload",!u&&"Click or drop files and folders to upload"]})})})]})},X=t(86585),V=t(55512),J=t(99497),K=["addNewBlock","blocks","deleteWidget","fetchAutocompleteItems","fetchFileTree","fetchPipeline","files","onCreateFile","pipeline","setErrors","setSelectedBlock","widgets"];function ee(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}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}var te,oe=20*b.iI;function re(e,n){var t=e.addNewBlock,o=e.blocks,d=void 0===o?[]:o,p=e.deleteWidget,h=e.fetchAutocompleteItems,g=e.fetchFileTree,j=e.fetchPipeline,y=e.files,x=e.onCreateFile,O=e.pipeline,D=e.setErrors,Z=e.setSelectedBlock,P=e.widgets,E=void 0===P?[]:P,_=(0,i.Z)(e,K),I=(0,l.useRef)(null),S=(0,l.useContext)(u.ThemeContext),R=(0,l.useState)(null),N=R[0],z=R[1],q=(0,l.useState)(null),W=q[0],Y=q[1],$=(0,l.useState)(null),G=$[0],H=$[1],ee=T.ZP.statuses.list().data,te=(0,l.useMemo)((function(){var e,n;return null===ee||void 0===ee||null===(e=ee.statuses)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.repo_path}),[ee]),re=(0,c.Db)((function(e){return T.ZP.files.useDelete(e)()}),{onSuccess:function(e){return(0,M.wD)(e,{callback:function(){null===g||void 0===g||g()},onErrorCallback:function(e,n){return D({errors:n,response:e})}})}}),ie=(0,r.Z)(re,1)[0],le=(0,c.Db)((function(e){return T.ZP.folders.useDelete(e)()}),{onSuccess:function(e){return(0,M.wD)(e,{callback:function(){null===g||void 0===g||g()},onErrorCallback:function(e,n){return D({errors:n,response:e})}})}}),ue=(0,r.Z)(le,1)[0],ce=(0,J.dd)((function(e){var n=e.block;return(0,w.jsx)(B.Z,{centerOnScreen:!0,danger:!0,onCancel:de,onClick:function(){return pe({block:n,force:!0}).then((function(){return de()}))},subtitle:"Deleting this block file is dangerous. This block may have dependencies in active pipelines. Press confirm to delete this block anyway and remove it as a dependency from downstream blocks.",title:"Delete ".concat(n.uuid," anyway?"),width:34*b.iI})})),ae=(0,r.Z)(ce,2),se=ae[0],de=ae[1],fe=(0,c.Db)((function(e){var n=e.block,t=n.language,o=n.type,r=n.uuid,i=e.force,l=void 0!==i&&i,u="".concat(o,"/").concat(r);return t&&f.JD[t]&&(u="".concat(u,".").concat(f.JD[t].toLowerCase())),T.ZP.blocks.useDelete(encodeURIComponent(u),{force:l})()}),{onSuccess:function(e){return(0,M.wD)(e,{callback:function(){h(),j(),g()},onErrorCallback:function(e){var n=e.error,t=n.exception;n.message.includes("raise HasDownstreamDependencies")&&se({block:ye,exception:t})}})}}),pe=(0,r.Z)(fe,1)[0],ve=(0,k.sE)(null===O||void 0===O?void 0:O.blocks,(function(e){var n=e.type;return a.tf.DATA_EXPORTER===n})),he=(0,c.Db)(T.ZP.blocks.pipelines.useUpdate(null===O||void 0===O?void 0:O.uuid,null===ve||void 0===ve?void 0:ve.uuid),{onSuccess:function(e){return(0,M.wD)(e,{callback:function(){null===j||void 0===j||j()},onErrorCallback:function(e,n){return D({errors:n,response:e})}})}}),me=(0,r.Z)(he,1)[0],be=(0,l.useCallback)((function(){return H(null)}),[H]);(0,l.useEffect)((function(){var e,o,r,i=function(e){if(clearTimeout(I.current),Y(null),W&&O&&t){var o,r,i=(null===n||void 0===n||null===(o=n.current)||void 0===o||null===(r=o.getBoundingClientRect)||void 0===r?void 0:r.call(o))||{},l=i.width,u=i.x;if(e.pageX>u+l){var c=(null===O||void 0===O?void 0:O.type)===U.qL.INTEGRATION,a=(0,V.TU)(ne(ne({},W),{},{path:(0,C.jN)(W)}),te,O);null===t||void 0===t||t(ne(ne({},a),{},{require_unique_name:!1}),(function(e){c&&ve&&me({block:ne(ne({},ve),{},{upstream_blocks:[e.uuid]})}),null===Z||void 0===Z||Z(e)}))}}},l=function(e){W&&z({x:e.pageX,y:e.pageY})};return null===(e=document)||void 0===e||e.addEventListener("click",be),null===(o=document)||void 0===o||o.addEventListener("mousemove",l),null===(r=document)||void 0===r||r.addEventListener("mouseup",i),function(){var e,n,t;null===(e=document)||void 0===e||e.removeEventListener("click",be),null===(n=document)||void 0===n||n.removeEventListener("mousemove",l),null===(t=document)||void 0===t||t.removeEventListener("mouseup",i)}}),[t,ve,W,be,O,n,te,Z,I,me]);var ge=(0,l.useMemo)((function(){return d.concat(E).map((function(e){return e.uuid}))}),[d,E]),je=(0,l.useMemo)((function(){return null===y||void 0===y?void 0:y.map((function(e){return(0,l.createElement)(F,ne(ne({},_),{},{containerRef:n,file:e,key:e.name,level:0,pipelineBlockUuids:ge,setCoordinates:z,setDraggingFile:Y,setSelectedFile:H,theme:S,timeout:I}))}))}),[y,ge,_,n,S,I]),ye=(0,l.useMemo)((function(){return G&&(0,C.lr)(G)}),[G]),Ce=(0,l.useMemo)((function(){return W&&(0,C.lr)(W)}),[W]),ke=(0,l.useMemo)((function(){return G&&"undefined"!==typeof(null===G||void 0===G?void 0:G.children)&&G}),[G]),xe=(0,J.dd)((function(){return(0,w.jsx)(Q,{fetchFileTree:g,onCancel:De,selectedFolder:ke})}),{},[g,ke],{background:!0,uuid:"upload_files"}),we=(0,r.Z)(xe,2),Oe=we[0],De=we[1],Ze=(0,J.dd)((function(e){return(0,w.jsx)(L,{fetchFileTree:g,file:null===e||void 0===e?void 0:e.file,moveFile:null===e||void 0===e?void 0:e.moveFile,onCancel:Ee,onCreateFile:x,selectedFolder:ke,setErrors:D})}),{},[g,x,ke,D],{background:!0,disableClickOutside:!0,uuid:"new_file"}),Fe=(0,r.Z)(Ze,2),Pe=Fe[0],Ee=Fe[1],_e=(0,J.dd)((function(e){return(0,w.jsx)(A,{fetchFileTree:g,file:null===e||void 0===e?void 0:e.file,moveFile:null===e||void 0===e?void 0:e.moveFile,onCancel:Re,selectedFolder:ke,setErrors:D})}),{},[g,ke,D],{background:!0,disableClickOutside:!0,uuid:"new_folder"}),Ie=(0,r.Z)(_e,2),Se=Ie[0],Re=Ie[1],Te=(0,l.useMemo)((function(){var e;if(!ye&&!G&&!ke)return(0,w.jsx)("div",{});var t=(null===n||void 0===n||null===(e=n.current)||void 0===e?void 0:e.getBoundingClientRect())||{},o=t.x,r=t.width,i=N||{},l=i.x,u=void 0===l?0:l,c=i.y,d=void 0===c?0:c,f=u;u+oe>=o+r&&(f=o+r-(oe+b.iI)),f<0&&(f=0);var v=[];return ke?v.push.apply(v,[{label:function(){return"New folder"},onClick:function(){Se()},uuid:"new_folder"},{label:function(){return"Rename folder"},onClick:function(){Se({file:ke})},uuid:"rename_folder"},{label:function(){return"Move folder"},onClick:function(){Se({file:ke,moveFile:!0})},uuid:"Move_folder"},{label:function(){return"Delete folder"},onClick:function(){var e=(0,C.jN)(ke);window.confirm("Are you sure you want to delete folder ".concat(e," and all its subfolders and files?"))&&ue(encodeURIComponent(e))},uuid:"Delete_folder"},{label:function(){return"New file"},onClick:function(){Pe({file:{}})},uuid:"new_file"},{label:function(){return"Upload files"},onClick:function(){Oe()},uuid:"upload_files"}]):G&&(v.push.apply(v,[{label:function(){return"Rename file"},onClick:function(){Pe({file:G})},uuid:"rename_file"},{label:function(){return"Move file"},onClick:function(){Pe({file:G,moveFile:!0})},uuid:"move_file"}]),ye?v.push({label:function(){return"Delete block file"},onClick:function(){ye.type===a.tf.CHART?window.confirm("Are you sure you want to delete widget ".concat(ye.uuid,"?"))&&p(ye):window.confirm("Are you sure you want to delete block ".concat(ye.uuid,"?"))&&pe({block:ye})},uuid:"delete_block_file"}):v.push({label:function(){return"Delete file"},onClick:function(){var e=(0,C.jN)(G);window.confirm("Are you sure you want to delete file ".concat(e,"?"))&&ie(encodeURIComponent(e))},uuid:"delete_file"})),(0,w.jsx)("div",{style:{left:f,position:"fixed",top:d+b.iI/2,zIndex:X.bf+100},children:(0,w.jsx)(s.Z,{items:v,open:!0,parentRef:void 0,uuid:"FileBrowser/ContextMenu",width:oe})})}),[N,pe,ie,ue,p,n,Oe,Pe,Se,ye,G,ke]);return(0,w.jsxs)(m.Nk,{ref:n,children:[je,(ye||G||ke)&&Te,Ce&&(0,w.jsx)("div",{style:{left:(null===N||void 0===N?void 0:N.x)-b.iI,position:"fixed",top:(null===N||void 0===N?void 0:N.y)-b.iI,zIndex:X.bf+100},children:(0,w.jsx)(v.ZP,{cursor:"grabbing",monospace:!0,children:null===Ce||void 0===Ce?void 0:Ce.uuid})})]})}!function(e){e.BLOCK_FILE="block_file",e.DISABLED="disabled",e.FILE="file",e.FOLDER="folder",e.PIPELINE="pipeline"}(te||(te={}));var ie=l.forwardRef(re)},32821:function(e,n,t){t.d(n,{IO:function(){return p},V3:function(){return d},a9:function(){return u},dq:function(){return f},jN:function(){return a},lr:function(){return s},u$:function(){return v}});var o=t(17717),r=t(86422),i=t(73828),l=t(90211);function u(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=n||(t?null:null===e||void 0===e?void 0:e.name);if(null!==e&&void 0!==e&&e.parent){var i=[e.parent.name];return(null===r||void 0===r?void 0:r.length)>=1&&i.push(r),u(e.parent,i.join(o.sep))}return r}function c(e){return null===e||void 0===e?void 0:e.split(o.sep).slice(1).join(o.sep)}function a(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=u(e,n,t);return c(o)}function s(e){var n,t,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=u(e,c).split(o.sep);if(!s)return null;if(1===s.length)(s=null===e||void 0===e||null===(t=e.path)||void 0===t?void 0:t.split(o.sep))&&(n=s[0]===r.tf.CUSTOM?s[0]:(0,l.C5)(s[0]||""));else if(s[1]===r.tf.CUSTOM)n=s[1];else{var d=s[1];n=r.tf.DBT===d?d:(0,l.C5)(d||"")}if(!s||r.tf.DBT===n)return null;var f="";f=s.length>=3?s.slice(2,s.length).join(o.sep):s[s.length-1];var p=["\\.".concat(i.Lu.PY),"\\.".concat(i.Lu.R),"\\.".concat(i.Lu.SQL),"\\.".concat(i.Lu.YAML),"\\.".concat(i.Lu.YML)].join("|"),v=new RegExp("".concat(p,"$")),h=a?r.Q3:r.$W;if(h.concat(r.tf.DBT).includes(n)&&f.match(v)){var m=f.lastIndexOf("."),b=f.slice(m+1);return{language:i.nB[b],type:n,uuid:f.slice(0,m)}}}function d(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=u(e,n).split(o.sep);if(t[1]){var c=(0,l.C5)(t[n?0:1]);t[1]===r.tf.DBT&&(c=r.tf.DBT);var a=t[t.length-1],s=new RegExp(".".concat(i.Lu.YAML,"$")),d=new RegExp(".".concat(i.Lu.R,"$")),f=new RegExp(".".concat(i.Lu.SQL,"$")),p=new RegExp(".".concat(i.Lu.MD,"$"));if(a.match(s)&&r.VZ.includes(c))return{type:c,uuid:a.replace(s,"")};if(a.match(d)&&r.J8.includes(c))return{type:c,uuid:a.replace(d,"")};if(a.match(f)&&r.HX.includes(c)){var v=a.replace(/[.]/g,"_"),h=c===r.tf.DBT?t.slice(2,-1).join("_").concat("_".concat(v)):a.replace(f,"");return{type:c,uuid:h}}return a.match(p)&&c===r.tf.MARKDOWN?{type:c,uuid:a.replace(p,"")}:void 0}}function f(e){var n=e.name.split("."),t=n[n.length-1];return i.n6.includes(t)&&n.pop(),n.join("")}function p(e,n){var t=e.split("."),r=t[t.length-1];i.n6.includes(r)&&t.pop();var l=t.join("").split(o.sep),u=l.slice(1,l.length).join("");return n.find((function(e){return e.uuid===u}))}function v(e){var n=e||{},t=n.language,o=n.name,u=n.type;if(o&&t&&u){var c=u===r.tf.CUSTOM?u:"".concat(u,"s"),a=i.JD[t],s=(0,l.kE)(o);return"".concat(c,"/").concat(s,".").concat(a)}}},55512:function(e,n,t){t.d(n,{TU:function(){return f},ck:function(){return s},lU:function(){return d}});var o=t(21831),r=t(17717),i=t(86422),l=t(98781),u=t(73828),c=t(24224),a=t(90211),s=function(e){var n=e[0];return n===i.tf.DBT||n===i.tf.CUSTOM?n:e[0].slice(0,-1)};function d(){return new RegExp(Object.keys(u.nB).map((function(e){return".(".concat(e,")$")})).join("|"))}function f(e,n,t){var f,p,v=null===e||void 0===e||null===(f=e.path.match(d())[0])||void 0===f?void 0:f.split(".")[1],h=t.type===l.qL.INTEGRATION,m=(0,c.sE)(null===t||void 0===t?void 0:t.blocks,(function(e){var n=e.type;return i.tf.DATA_EXPORTER===n})),b=e.path.replace(n,"").split(r.sep),g=e.path.split(r.sep)[0]===i.tf.DBT,j=(p=b)[0]===i.tf.DBT?p.slice(1).join(r.sep):function(e){return e.at(-1)}(p).split(".")[0];if(b.length>=3&&!g){var y=b.slice(1,b.length-1).join(r.sep);j="".concat(y,"/").concat(j)}var C=s(e.path.split(r.sep)),k={configuration:{file_path:g?j:null},language:u.nB[v],name:(0,a.wE)(j),type:C};if(C===i.tf.CUSTOM&&(k.color=i.Lq.TEAL),h){var x=(0,c.sE)(t.blocks,(function(e){var n=e.type;return i.tf.DATA_LOADER===n})),w=(0,c.sE)(t.blocks,(function(e){var n=e.type;return i.tf.TRANSFORMER===n})),O=[];w?O.push(w.uuid):null!==m&&void 0!==m&&m.upstream_blocks?O.push.apply(O,(0,o.Z)(m.upstream_blocks)):x&&O.push(x.uuid),k.upstream_blocks=O}return k}},55106:function(e,n,t){t.d(n,{Z:function(){return g}});var o=t(82394),r=t(75582),i=t(17717),l=t(82684),u=t(83455),c=t(38626),a=t(77011),s=t(28598);function d(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function f(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 p=c.default.div.withConfig({displayName:"MultiFileInput__DropzoneStyle",componentId:"sc-1l6yd2y-0"})(["&:hover{cursor:pointer;}"]);var v=function(e){var n=e.children,t=e.inputOnChange,o=e.inputProps,r=e.onDragActiveChange,i=e.setFiles,u=(0,l.useCallback)((function(e){i(e)}),[i]),c=(0,a.uI)({onDrop:u}),d=c.getInputProps,v=c.getRootProps,h=c.isDragActive,m=d(),b=m.accept,g=m.autoComplete,j=m.multiple,y=m.onChange,C=m.onClick,k=m.ref,x=m.style,w=m.tabIndex,O=m.type,D=f(f({},o),{},{accept:b,autoComplete:g,multiple:j,onChange:function(e){null===t||void 0===t||t(e),null===o||void 0===o||o.onChange(e),y(e)},onClick:C,ref:k,style:x,tabIndex:w,type:O});return(0,l.useEffect)((function(){null===r||void 0===r||r(h)}),[h,r]),(0,s.jsxs)(p,f(f({},v()),{},{children:[(0,s.jsx)("input",f(f({},D),{},{directory:"",webkitdirectory:""})),n]}))},h=t(82531);function m(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function b(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?m(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var g=function(e){var n=e.children,t=e.directoryPath,c=e.onDragActiveChange,a=e.setFileUploadProgress,d=e.setUploadedFiles,f=(0,u.Db)(h.ZP.files.useCreate({onUploadProgress:function(e,n){var t,r=n.body,l=[null===r||void 0===r?void 0:r.dir_path,null===r||void 0===r||null===(t=r.file)||void 0===t?void 0:t.name].filter((function(e){return(null===e||void 0===e?void 0:e.length)>=1})).join(i.sep);null===a||void 0===a||a((function(n){return b(b({},n),{},(0,o.Z)({},l,e.loaded/e.total))}))}})),p=(0,r.Z)(f,1)[0],m=(0,l.useCallback)((function(e){e.forEach((function(e){var n=e.name,r=e.path,l=[t],u=r.split(i.sep).filter((function(e){return e&&e!==n})).join(i.sep);u&&l.push(u);var c=[],s=l.join(i.sep);(null===s||void 0===s?void 0:s.length)>=1&&l.push(s),c.push(n);var f=c.join(i.sep);p({dir_path:s,file:e,overwrite:!1}).then((function(e){var n=e.data,t=n.error,r=n.file;d((function(e){return b(b({},e),{},(0,o.Z)({},f,r||t))}))})),a((function(e){return b(b({},e),{},(0,o.Z)({},f,0))}))}))}),[p,t,a,d]);return(0,s.jsx)(v,{onDragActiveChange:c,setFiles:m,children:n})}}}]);
|