mage-ai 0.9.8__py3-none-any.whl → 0.9.9__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of mage-ai might be problematic. Click here for more details.
- mage_ai/ai/constants.py +1 -0
- mage_ai/ai/generator.py +6 -0
- mage_ai/ai/{gen_doc_for_pipeline.py → generator_cmds.py} +5 -0
- mage_ai/ai/llm_pipeline_wizard.py +108 -3
- mage_ai/api/policies/BlockPolicy.py +1 -0
- mage_ai/api/policies/BlockTemplatePolicy.py +9 -0
- mage_ai/api/policies/LlmPolicy.py +3 -2
- mage_ai/api/policies/OauthAccessTokenPolicy.py +31 -0
- mage_ai/api/policies/PipelinePolicy.py +1 -0
- mage_ai/api/policies/ProjectPolicy.py +9 -0
- mage_ai/api/policies/SearchResultPolicy.py +32 -0
- mage_ai/api/policies/VariablePolicy.py +8 -0
- mage_ai/api/presenters/BlockTemplatePresenter.py +1 -0
- mage_ai/api/presenters/OauthAccessTokenPresenter.py +9 -0
- mage_ai/api/presenters/ProjectPresenter.py +2 -0
- mage_ai/api/presenters/SearchResultPresenter.py +73 -0
- mage_ai/api/resources/BlockResource.py +43 -4
- mage_ai/api/resources/BlockTemplateResource.py +15 -2
- mage_ai/api/resources/CustomTemplateResource.py +15 -3
- mage_ai/api/resources/FileContentResource.py +8 -1
- mage_ai/api/resources/FileResource.py +22 -2
- mage_ai/api/resources/OauthAccessTokenResource.py +24 -0
- mage_ai/api/resources/PipelineResource.py +70 -2
- mage_ai/api/resources/ProjectResource.py +15 -1
- mage_ai/api/resources/SearchResultResource.py +68 -0
- mage_ai/api/resources/VariableResource.py +25 -14
- mage_ai/cache/base.py +3 -0
- mage_ai/cache/block_action_object/__init__.py +282 -0
- mage_ai/cache/block_action_object/constants.py +4 -0
- mage_ai/cache/constants.py +1 -0
- mage_ai/data_integrations/destinations/constants.py +2 -0
- mage_ai/data_preparation/executors/k8s_pipeline_executor.py +1 -1
- mage_ai/data_preparation/models/block/__init__.py +20 -1
- mage_ai/data_preparation/models/block/dbt/utils/__init__.py +1 -0
- mage_ai/data_preparation/models/custom_templates/custom_block_template.py +8 -3
- mage_ai/data_preparation/models/custom_templates/utils.py +6 -3
- mage_ai/data_preparation/models/file.py +3 -0
- mage_ai/data_preparation/models/pipeline.py +10 -1
- mage_ai/data_preparation/models/{project.py → project/__init__.py} +17 -0
- mage_ai/data_preparation/models/project/constants.py +5 -0
- mage_ai/data_preparation/repo_manager.py +9 -6
- mage_ai/data_preparation/templates/constants.py +478 -1
- mage_ai/data_preparation/templates/template.py +9 -1
- mage_ai/orchestration/db/__init__.py +25 -0
- mage_ai/orchestration/pipeline_scheduler.py +23 -0
- mage_ai/server/constants.py +1 -1
- mage_ai/server/frontend_dist/404.html +2 -2
- mage_ai/server/frontend_dist/404.html.html +2 -2
- mage_ai/server/frontend_dist/_next/static/OwvTROmputQCA1Z9HEGDv/_buildManifest.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{1005-ce36fe7ed460d006.js → 1005-16c1a6678de5311e.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1424-e22139f33196c5c1.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/1484-a76b2c31e4808379.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/2485-b569baad92049d6b.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{2786-d8b593e5d7c42665.js → 2786-acce6ea0d9b4898e.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3654-573457b62efff6e2.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/3881-0eb04f7f7a244347.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{4317-b112fe7bb532b998.js → 4317-3fe63fc9401685d6.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{4822-52d9d661b6bd1ae9.js → 4822-045cc7cdd7c95163.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{547-14029bdacc0ed267.js → 547-4ad2cdae967055b6.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/6299-cf188c1b7a1bc33c.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{7815-6dc55b5fd5d1f48a.js → 7815-fbd99c8f259d9e8b.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{8312-cdc4d6c3b9f53099.js → 8312-c88a3b1012e5448b.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{8952-492bf0e29d215ddd.js → 8952-e94a7334fcd5c68b.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/9055-d0d25298cb5f4e45.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{_app-c7557dc9e725825e.js → _app-fa38a24707c76411.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/files-b9dac983c75798f2.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/{settings-17bb362b9683079c.js → settings-453aaa7bf78f8101.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/{[user]-bfa53c0ee79920a0.js → [user]-3b502aa6d1a04cad.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/{new-2f7e6bf8e2a37380.js → new-dd41d718cbb5990c.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users-ec748f838b7b8fad.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-bcc24120f5911f76.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{overview-8ffbc4b0e8a43266.js → overview-6f20b9e9cbec91d6.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/{[...slug]-373f6b8c9161e819.js → [...slug]-55212dfc15881ef2.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{backfills-226bf0c5c1bfe004.js → backfills-6b4a82cd0516e121.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-0705c99df236ec8a.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{logs-4ade07836fd577c9.js → logs-c294f5d74bd2d50f.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{monitors-fd9eb711e89425e9.js → monitors-1b9e4abc54842cdf.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{runs-027666ed18d3151e.js → runs-17ebe87e94242ae5.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-48b60ca236a26818.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{syncs-de58e6b91e5e4552.js → syncs-5153f4665aaf8b17.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/{[...slug]-432843576e1ed09e.js → [...slug]-1306e85191f6b47c.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{triggers-ae31b1d0d8a4634d.js → triggers-2e731d343a26d46a.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-0fab737dbc9074fc.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-b2354688508b0755.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{users-a4f01b5c429757cc.js → users-6522c963087f18e8.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{sign-in-1140f8ee7e89381a.js → sign-in-7dcd1257ca9660bb.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/templates/{[...slug]-f59b3f04c5a49351.js → [...slug]-78a07e7fe8973811.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{templates-dbb209ce131390a9.js → templates-19df643f52679d5a.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-a1cf445565b68809.js +1 -0
- mage_ai/server/frontend_dist/files.html +2 -2
- mage_ai/server/frontend_dist/index.html +2 -2
- mage_ai/server/frontend_dist/manage/settings.html +2 -2
- mage_ai/server/frontend_dist/manage/users/[user].html +2 -2
- mage_ai/server/frontend_dist/manage/users/new.html +2 -2
- mage_ai/server/frontend_dist/manage/users.html +2 -2
- mage_ai/server/frontend_dist/manage.html +2 -2
- mage_ai/server/frontend_dist/overview.html +2 -2
- mage_ai/server/frontend_dist/pipeline-runs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/settings.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline].html +2 -2
- mage_ai/server/frontend_dist/pipelines.html +2 -2
- mage_ai/server/frontend_dist/settings/account/profile.html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/preferences.html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/sync-data.html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/users.html +2 -2
- mage_ai/server/frontend_dist/settings.html +2 -2
- mage_ai/server/frontend_dist/sign-in.html +16 -16
- mage_ai/server/frontend_dist/templates/[...slug].html +2 -2
- mage_ai/server/frontend_dist/templates.html +2 -2
- mage_ai/server/frontend_dist/terminal.html +2 -2
- mage_ai/server/frontend_dist/test.html +2 -2
- mage_ai/server/frontend_dist/triggers.html +2 -2
- mage_ai/server/frontend_dist/version-control.html +2 -2
- mage_ai/server/server.py +5 -0
- mage_ai/services/search/__init__.py +0 -0
- mage_ai/services/search/block_action_objects.py +33 -0
- mage_ai/services/search/constants.py +1 -0
- mage_ai/shared/array.py +7 -0
- mage_ai/shared/parsers.py +11 -2
- mage_ai/tests/shared/test_parsers.py +73 -0
- mage_ai/usage_statistics/constants.py +1 -0
- mage_ai/usage_statistics/logger.py +19 -1
- {mage_ai-0.9.8.dist-info → mage_ai-0.9.9.dist-info}/METADATA +9 -7
- {mage_ai-0.9.8.dist-info → mage_ai-0.9.9.dist-info}/RECORD +142 -129
- mage_ai/server/frontend_dist/_next/static/RcIgkp9pBXE1Rb4tOGR1L/_buildManifest.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1424-de97c5aa0477894b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1484-c9d6bc33227070dd.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/2485-86c97f516c1abb9f.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3215-c2f5f19b650f9a50.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3654-bff4740b63cf280c.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3881-7f121dbbe6e273cd.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/6299-97f283be01adf6a8.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/files-0df5a20d6f1aa606.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users-1f6cb7656299cbd1.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-4894eabb442a039c.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-a9bd86bee73b5762.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-cf51793c2112915c.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-f1131ffe0d2a4a06.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-170943ca00445486.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-2ecda1f1437013f2.js +0 -1
- /mage_ai/server/frontend_dist/_next/static/{RcIgkp9pBXE1Rb4tOGR1L → OwvTROmputQCA1Z9HEGDv}/_middlewareManifest.js +0 -0
- /mage_ai/server/frontend_dist/_next/static/{RcIgkp9pBXE1Rb4tOGR1L → OwvTROmputQCA1Z9HEGDv}/_ssgManifest.js +0 -0
- {mage_ai-0.9.8.dist-info → mage_ai-0.9.9.dist-info}/LICENSE +0 -0
- {mage_ai-0.9.8.dist-info → mage_ai-0.9.9.dist-info}/WHEEL +0 -0
- {mage_ai-0.9.8.dist-info → mage_ai-0.9.9.dist-info}/entry_points.txt +0 -0
- {mage_ai-0.9.8.dist-info → mage_ai-0.9.9.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3654],{44162:function(n,e,t){t.d(e,{HC:function(){return T},Kf:function(){return f},Nk:function(){return s},PY:function(){return p},gE:function(){return g},jv:function(){return h},nz:function(){return m},oh:function(){return l},qn:function(){return d},t1:function(){return A},y9:function(){return y}});var r=t(38626),o=t(23831),i=t(86422),c=t(73942),a=t(49125),u=t(90880),l=68;function d(n,e){var t,r,c=((null===e||void 0===e||null===(t=e.theme)||void 0===t?void 0:t.borders)||o.Z.borders).light,a=((null===e||void 0===e||null===(r=e.theme)||void 0===r?void 0:r.monotone)||o.Z.monotone).grey500,u=e||{},l=u.blockColor,d=u.isSelected,f=u.theme;return d?c=(f||o.Z).content.active:i.tf.TRANSFORMER===n||l===i.Lq.PURPLE?(c=(f||o.Z).accent.purple,a=(f||o.Z).accent.purpleLight):i.tf.DATA_EXPORTER===n||l===i.Lq.YELLOW?(c=(f||o.Z).accent.yellow,a=(f||o.Z).accent.yellowLight):i.tf.DATA_LOADER===n||l===i.Lq.BLUE?(c=(f||o.Z).accent.blue,a=(f||o.Z).accent.blueLight):i.tf.MARKDOWN===n?(c=(f||o.Z).accent.sky,a=(f||o.Z).accent.skyLight):i.tf.SENSOR===n||l===i.Lq.PINK?(c=(f||o.Z).accent.pink,a=(f||o.Z).accent.pinkLight):i.tf.DBT===n?(c=(f||o.Z).accent.dbt,a=(f||o.Z).accent.dbtLight):i.tf.EXTENSION===n||l===i.Lq.TEAL?(c=((null===f||void 0===f?void 0:f.accent)||o.Z.accent).teal,a=((null===f||void 0===f?void 0:f.accent)||o.Z.accent).tealLight):i.tf.CALLBACK===n?(c=((null===f||void 0===f?void 0:f.accent)||o.Z.accent).rose,a=((null===f||void 0===f?void 0:f.accent)||o.Z.accent).roseLight):(i.tf.CONDITIONAL===n||i.tf.SCRATCHPAD===n||l===i.Lq.GREY||i.tf.CUSTOM===n&&!l)&&(c=(f||o.Z).content.default,a=(f||o.Z).accent.contentDefaultTransparent),{accent:c,accentLight:a}}var f=(0,r.css)([""," "," "," "," "," "," ",""],(0,u.eR)(),(function(n){return!n.selected&&!n.hasError&&"\n border-color: ".concat(d(n.blockType,n).accentLight,";\n ")}),(function(n){return n.selected&&!n.hasError&&"\n border-color: ".concat(d(n.blockType,n).accent,";\n ")}),(function(n){return!n.selected&&n.hasError&&"\n border-color: ".concat((n.theme.accent||o.Z.accent).negativeTransparent,";\n ")}),(function(n){return n.selected&&n.hasError&&"\n border-color: ".concat((n.theme.borders||o.Z.borders).danger,";\n ")}),(function(n){return n.dynamicBlock&&"\n border-style: dashed !important;\n "}),(function(n){return n.dynamicChildBlock&&"\n border-style: dotted !important;\n "})),s=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-s5rj34-0"})(["border-radius:","px;position:relative;"],c.n_),p=r.default.div.withConfig({displayName:"indexstyle__HiddenBlockContainerStyle",componentId:"sc-s5rj34-1"})([""," border-radius:","px;border-style:",";border-width:","px;",""],f,c.n_,c.M8,c.mP,(function(n){return"\n background-color: ".concat((n.theme||o.Z).background.content,";\n\n &:hover {\n border-color: ").concat(d(n.blockType,n).accent,";\n }\n ")})),m=r.default.div.withConfig({displayName:"indexstyle__BlockHeaderStyle",componentId:"sc-s5rj34-2"})([""," border-top-left-radius:","px;border-top-right-radius:","px;border-top-style:",";border-top-width:","px;border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding:","px;position:sticky;top:-5px;"," "," ",""],f,c.n_,c.n_,c.M8,c.mP,c.M8,c.mP,c.M8,c.mP,a.iI,(function(n){return"\n background-color: ".concat((n.theme||o.Z).background.content,";\n ")}),(function(n){return n.bottomBorder&&"\n border-bottom: ".concat(c.YF,"px ").concat(c.M8," ").concat((n.theme||o.Z).borders.medium2,";\n ")}),(function(n){return n.zIndex&&"\n z-index: ".concat(6+(n.zIndex||0),";\n ")})),h=r.default.div.withConfig({displayName:"indexstyle__CodeContainerStyle",componentId:"sc-s5rj34-3"})([""," border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding-bottom:","px;padding-top:","px;position:relative;"," "," "," .line-numbers{opacity:0;}&.selected{.line-numbers{opacity:1 !important;}}"],f,c.M8,c.mP,c.M8,c.mP,a.iI,a.iI,(function(n){return"\n background-color: ".concat((n.theme.background||o.Z.background).codeTextarea,";\n ")}),(function(n){return n.lightBackground&&"\n background-color: ".concat((n.theme||o.Z).background.content,";\n ")}),(function(n){return!n.hasOutput&&"\n border-bottom-left-radius: ".concat(c.n_,"px;\n border-bottom-right-radius: ").concat(c.n_,"px;\n border-bottom-style: ").concat(c.M8,";\n border-bottom-width: ").concat(c.mP,"px;\n ")})),g=r.default.div.withConfig({displayName:"indexstyle__BlockDivider",componentId:"sc-s5rj34-4"})(["align-items:center;display:flex;height:","px;justify-content:center;position:relative;z-index:8;bottom:","px;&:hover{"," .block-divider-inner{","}}"],2*a.iI,.5*a.iI,(function(n){return n.additionalZIndex>0&&"\n z-index: ".concat(8+n.additionalZIndex,";\n ")}),(function(n){return"\n background-color: ".concat((n.theme.text||o.Z.text).fileBrowser,";\n ")})),A=r.default.div.withConfig({displayName:"indexstyle__BlockDividerInner",componentId:"sc-s5rj34-5"})(["height 1px;width:100%;position:absolute;z-index:-1;top:","px;"],1.5*a.iI),y=r.default.div.withConfig({displayName:"indexstyle__CodeHelperStyle",componentId:"sc-s5rj34-6"})(["margin-bottom:","px;padding-bottom:","px;",""],1*a.iI,1*a.iI,(function(n){return"\n border-bottom: 1px solid ".concat((n.theme.borders||o.Z.borders).medium,";\n padding-left: ").concat(n.normalPadding?a.iI:l,"px;\n ")})),T=r.default.div.withConfig({displayName:"indexstyle__TimeTrackerStyle",componentId:"sc-s5rj34-7"})(["bottom:","px;left:","px;position:absolute;"],1*a.iI,l)},86422:function(n,e,t){t.d(e,{$W:function(){return A},DA:function(){return h},HX:function(){return b},J8:function(){return T},L8:function(){return a},LE:function(){return s},Lq:function(){return p},M5:function(){return m},Qj:function(){return E},Ut:function(){return S},V4:function(){return O},VZ:function(){return y},dO:function(){return f},f2:function(){return R},iZ:function(){return N},t6:function(){return u},tf:function(){return d}});var r,o,i,c,a,u,l=t(82394);!function(n){n.CONDITION="condition",n.DBT_SNAPSHOT="snapshot",n.DYNAMIC="dynamic",n.DYNAMIC_CHILD="dynamic_child",n.REDUCE_OUTPUT="reduce_output",n.REPLICA="replica"}(a||(a={})),function(n){n.MARKDOWN="markdown",n.PYTHON="python",n.R="r",n.SQL="sql",n.YAML="yaml"}(u||(u={}));var d,f=(r={},(0,l.Z)(r,u.MARKDOWN,"MD"),(0,l.Z)(r,u.PYTHON,"PY"),(0,l.Z)(r,u.R,"R"),(0,l.Z)(r,u.SQL,"SQL"),(0,l.Z)(r,u.YAML,"YAML"),r),s=(o={},(0,l.Z)(o,u.MARKDOWN,"Markdown"),(0,l.Z)(o,u.PYTHON,"Python"),(0,l.Z)(o,u.R,"R"),(0,l.Z)(o,u.SQL,"SQL"),(0,l.Z)(o,u.YAML,"YAML"),o);!function(n){n.CALLBACK="callback",n.CHART="chart",n.CONDITIONAL="conditional",n.CUSTOM="custom",n.DATA_EXPORTER="data_exporter",n.DATA_LOADER="data_loader",n.DBT="dbt",n.EXTENSION="extension",n.SCRATCHPAD="scratchpad",n.SENSOR="sensor",n.MARKDOWN="markdown",n.TRANSFORMER="transformer"}(d||(d={}));var p,m=[d.CALLBACK,d.CONDITIONAL,d.EXTENSION];!function(n){n.BLUE="blue",n.GREY="grey",n.PINK="pink",n.PURPLE="purple",n.TEAL="teal",n.YELLOW="yellow"}(p||(p={}));var h,g,A=[d.CHART,d.CUSTOM,d.DATA_EXPORTER,d.DATA_LOADER,d.SCRATCHPAD,d.SENSOR,d.MARKDOWN,d.TRANSFORMER],y=[d.DATA_EXPORTER,d.DATA_LOADER],T=[d.DATA_EXPORTER,d.DATA_LOADER,d.TRANSFORMER],b=[d.DATA_EXPORTER,d.DATA_LOADER,d.DBT,d.TRANSFORMER],E=[d.CHART,d.SCRATCHPAD,d.SENSOR,d.MARKDOWN],N=[d.CALLBACK,d.CHART,d.EXTENSION,d.SCRATCHPAD,d.MARKDOWN];!function(n){n.EXECUTED="executed",n.FAILED="failed",n.NOT_EXECUTED="not_executed",n.UPDATED="updated"}(h||(h={})),function(n){n.BLOCK_FILE="block_file",n.CUSTOM_BLOCK_TEMPLATE="custom_block_template",n.MAGE_TEMPLATE="mage_template"}(g||(g={}));var R=[d.CUSTOM,d.DATA_EXPORTER,d.DATA_LOADER,d.TRANSFORMER],O=(i={},(0,l.Z)(i,d.CALLBACK,"Callback"),(0,l.Z)(i,d.CHART,"Chart"),(0,l.Z)(i,d.CONDITIONAL,"Conditional"),(0,l.Z)(i,d.CUSTOM,"Custom"),(0,l.Z)(i,d.DATA_EXPORTER,"Data exporter"),(0,l.Z)(i,d.DATA_LOADER,"Data loader"),(0,l.Z)(i,d.DBT,"DBT"),(0,l.Z)(i,d.EXTENSION,"Extension"),(0,l.Z)(i,d.MARKDOWN,"Markdown"),(0,l.Z)(i,d.SCRATCHPAD,"Scratchpad"),(0,l.Z)(i,d.SENSOR,"Sensor"),(0,l.Z)(i,d.TRANSFORMER,"Transformer"),i),S=[d.DATA_LOADER,d.TRANSFORMER,d.DATA_EXPORTER,d.SENSOR];c={},(0,l.Z)(c,d.DATA_EXPORTER,"DE"),(0,l.Z)(c,d.DATA_LOADER,"DL"),(0,l.Z)(c,d.SCRATCHPAD,"SP"),(0,l.Z)(c,d.SENSOR,"SR"),(0,l.Z)(c,d.MARKDOWN,"MD"),(0,l.Z)(c,d.TRANSFORMER,"TF")},98781:function(n,e,t){t.d(e,{$1:function(){return d},G7:function(){return s},LM:function(){return p},Mj:function(){return m},QK:function(){return l},a_:function(){return h},qL:function(){return c},r0:function(){return f}});var r,o,i,c,a=t(82394),u=t(22341);!function(n){n.INTEGRATION="integration",n.PYTHON="python",n.PYSPARK="pyspark",n.STREAMING="streaming"}(c||(c={}));var l,d,f,s=(r={},(0,a.Z)(r,c.INTEGRATION,"Integration"),(0,a.Z)(r,c.PYTHON,"Standard"),(0,a.Z)(r,c.PYSPARK,"PySpark"),(0,a.Z)(r,c.STREAMING,"Streaming"),r),p="all",m=(c.PYTHON,c.INTEGRATION,c.STREAMING,o={},(0,a.Z)(o,p,u.ie),(0,a.Z)(o,c.INTEGRATION,u.YC),(0,a.Z)(o,c.PYTHON,u.El),(0,a.Z)(o,c.STREAMING,u.dB),o);!function(n){n.ACTIVE="active",n.INACTIVE="inactive",n.NO_SCHEDULES="no_schedules",n.RETRY="retry"}(l||(l={})),function(n){n.GROUP="group_by",n.STATUS="status[]",n.TAG="tag[]",n.TYPE="type[]"}(d||(d={})),function(n){n.STATUS="status",n.TAG="tag",n.TYPE="type"}(f||(f={}));var h=(i={},(0,a.Z)(i,c.PYTHON,"python3"),(0,a.Z)(i,c.PYSPARK,"pysparkkernel"),i)},87372:function(n,e,t){var r,o,i,c,a,u,l,d,f=t(82394),s=t(26304),p=t(26653),m=t(38626),h=t(33591),g=t(23831),A=t(2005),y=t(31012),T=t(19711),b=t(49125),E=t(86673),N=t(28598),R=["children","condensed","inline","level","marketing","spacingBelow"];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 S(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,f.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 v=(0,m.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],T.IH,(function(n){return n.color&&"\n color: ".concat(n.color,"\n ")}),(function(n){return n.yellow&&"\n color: ".concat((n.theme.accent||g.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(A.iI,";\n ")}),(function(n){return!n.monospace&&1===Number(n.weightStyle)&&"\n font-family: ".concat(A.LX,";\n ")}),(function(n){return!n.monospace&&2===Number(n.weightStyle)&&"\n font-family: ".concat(A.LX,";\n ")}),(function(n){return!n.monospace&&3===Number(n.weightStyle)&&"\n font-family: ".concat(A.ry,";\n ")}),(function(n){return!n.monospace&&4===Number(n.weightStyle)&&"\n font-family: ".concat(A.YC,";\n ")}),(function(n){return!n.monospace&&5===Number(n.weightStyle)&&"\n font-family: ".concat(A.nF,";\n ")}),(function(n){return!n.monospace&&(6===Number(n.weightStyle)||n.bold)&&"\n font-family: ".concat(A.nF,";\n ")}),(function(n){return!n.monospace&&7===Number(n.weightStyle)&&"\n font-family: ".concat(A.nF,";\n ")}),(function(n){return!n.monospace&&8===Number(n.weightStyle)&&"\n font-family: ".concat(A.nF,";\n ")}),(function(n){return n.lineHeightAuto&&"\n line-height: normal !important;\n "})),C=m.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(n){return"\n color: ".concat((n.theme.content||g.Z.content).active,";\n ")})),_=m.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],v,h.media.md(r||(r=(0,p.Z)(["\n ","\n "])),y.aQ),h.media.lg(o||(o=(0,p.Z)(["\n ","\n "])),y.aQ),h.media.xl(i||(i=(0,p.Z)(["\n ","\n "])),y.aQ)),w=m.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],v,y.MJ),Z=m.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],v,h.media.xs(c||(c=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*b.iI,7*b.iI),h.media.sm(a||(a=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*b.iI,7*b.iI),h.media.md(u||(u=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*b.iI,7*b.iI),h.media.lg(l||(l=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*b.iI,7*b.iI),h.media.xl(d||(d=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*b.iI,7*b.iI)),x=m.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],v,y.BL),D=m.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],v),I=m.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],v),L=m.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],v),P=m.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],v,(function(n){return 1===n.level&&"\n ".concat(y.MJ,"\n ")}),(function(n){return 2===n.level&&"\n ".concat(y.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 "})),k=function(n){var e,t=n.children,r=n.condensed,o=n.inline,i=n.level,c=n.marketing,a=n.spacingBelow,u=(0,s.Z)(n,R);o?e=P:0===Number(i)?e=_:1===Number(i)?e=c?Z:w:2===Number(i)?e=x:3===Number(i)?e=D:4===Number(i)?e=I:5===Number(i)&&(e=L);var l=(0,N.jsxs)(e,S(S({},u),{},{level:i,children:[a&&(0,N.jsx)(E.Z,{mb:r?2:3,children:t}),!a&&t]}));return o?l:(0,N.jsx)(C,{children:l})};k.defaultProps={level:3,weightStyle:6},e.Z=k},90211:function(n,e,t){t.d(e,{RA:function(){return d},kC:function(){return f},vg:function(){return y},kE:function(){return R},Mp:function(){return s},Pb:function(){return u},HW:function(){return b},wX:function(){return p},x6:function(){return m},_6:function(){return h},zf:function(){return T},Y6:function(){return N},wE:function(){return O},J3:function(){return g},We:function(){return l},QV:function(){return E},C5:function(){return A}});var r=t(75582),o=t(17717),i=["aged","ancient","autumn","billowing","bitter","black","blue","bold","broken","cold","cool","crimson","damp","dark","dawn","delicate","divine","dry","empty","falling","floral","fragrant","frosty","green","hidden","holy","icy","late","lingering","little","lively","long","misty","morning","muddy","nameless","old","patient","polished","proud","purple","quiet","red","restless","rough","shy","silent","small","snowy","solitary","sparkling","spring","still","summer","throbbing","twilight","wandering","weathered","white","wild","winter","wispy","withered","young"],c=(t(92083),["bird","breeze","brook","bush","butterfly","cherry","cloud","darkness","dawn","dew","dream","dust","feather","field","fire","firefly","flower","fog","forest","frog","frost","glade","glitter","grass","haze","hill","lake","leaf","meadow","moon","morning","mountain","night","paper","pine","pond","rain","resonance","river","sea","shadow","shape","silence","sky","smoke","snow","snowflake","sound","star","sun","sun","sunset","surf","thunder","tree","violet","voice","water","water","waterfall","wave","wildflower","wind","wood"]),a=t(24224);function u(n){if(!n)return!1;try{JSON.parse(n)}catch(e){return!1}return!0}function l(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";return n.split(" ").join(e)}function d(n){return n.split(" ").join("_")}function f(n){return n?n.charAt(0).toUpperCase()+n.slice(1):""}function s(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return String((new Date).getTime()*n)}function p(n){return n.charAt(0).toLowerCase()+n.slice(1)}function m(n){if(null===n||"undefined"===typeof n)return"";var e=n.toString().split("."),t=(0,r.Z)(e,2),o=t[0],i=t[1],c=o.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",");return i?"".concat(c,".").concat(i):c}function h(n,e){var t,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=e,i=void 0!==o&&null!==o;if(i||(o=2),1===o)t=n;else{var c=n.length,a=n[c-1];t="y"===a&&"day"!==n?"".concat(n.slice(0,c-1),"ies"):"".concat(n,"s"===a?"es":"s")}if(i){var u=r?m(o):o;return"".concat(u," ").concat(t)}return t}function g(n){return null===n||void 0===n?void 0:n.replace(/_/g," ")}function A(n){var e=n.length;return"ies"===n.slice(e-3,e)?"".concat(n.slice(0,e-3),"y"):"es"===n.slice(e-2,e)&&"ces"!==n.slice(e-3,e)?n.slice(0,e-2):n.slice(0,e-1)}function y(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return f(g(n.toLowerCase()))}function T(n){var e,t=[["second",60],["minute",60],["hour",24],["day",7],["week",4],["month",12],["year",null]];return t.forEach((function(o,i){if(!e){var c=(0,r.Z)(o,2),a=c[0],u=c[1],l=t.slice(0,i).reduce((function(n,e){return n*Number(e[1])}),1);n<Number(u)*l&&(e=h(a,Math.round(n/l)))}})),e}function b(n){return!isNaN(n)}function E(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,t=Math.pow(10,e);return Math.round((n||0)*t)/t}function N(){return"".concat((0,a.mp)(i)," ").concat((0,a.mp)(c))}function R(n){return null===n||void 0===n?void 0:n.toLowerCase().replace(/\W+/g,"_")}function O(n){var e,t=n.split(o.sep),r=t[t.length-1].split(".");return e=1===r.length?r[0]:r.slice(0,-1).join("."),t.slice(0,t.length-1).concat(e).join(o.sep)}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3881],{1210:function(e,n,t){t.d(n,{Z:function(){return _}});var r=t(82394),o=t(21831),i=t(82684),l=t(47999),u=t(49894),c=t(93461),a=t(57384),s=t(41424),d=t(72454),f=t(28598);function p(e,n){var t=e.children;return(0,f.jsx)(d.HS,{ref:n,children:t})}var m=i.forwardRef(p),h=t(32063),v=t(85019),b=t(82531),w=t(66166),y=t(3055),g=t(49125),j=t(91427),x=t(24141);function O(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Z(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?O(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):O(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var _=function(e){var n,t=e.addProjectBreadcrumbToCustomBreadcrumbs,r=e.after,p=e.afterHidden,O=e.afterWidth,_=e.afterWidthOverride,C=e.before,I=e.beforeWidth,S=e.breadcrumbs,P=e.children,k=e.errors,N=e.headerMenuItems,H=e.headerOffset,D=e.mainContainerHeader,E=e.navigationItems,M=e.setErrors,z=e.subheaderChildren,A=e.title,T=e.uuid,B=(0,x.i)().width,F="dashboard_after_width_".concat(T),L="dashboard_before_width_".concat(T),q=(0,i.useRef)(null),R=(0,i.useState)(_?O:(0,j.U2)(F,O)),U=R[0],W=R[1],G=(0,i.useState)(!1),Q=G[0],J=G[1],X=(0,i.useState)(C?Math.max((0,j.U2)(L,I),13*g.iI):null),K=X[0],V=X[1],Y=(0,i.useState)(!1),$=Y[0],ee=Y[1],ne=(0,i.useState)(null)[1],te=b.ZP.projects.list({},{revalidateOnFocus:!1}).data,re=null===te||void 0===te?void 0:te.projects,oe={label:function(){var e;return null===re||void 0===re||null===(e=re[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},ie=[];S?(t&&ie.push(oe),ie.push.apply(ie,(0,o.Z)(S))):(null===re||void 0===re?void 0:re.length)>=1&&ie.push.apply(ie,[oe,{bold:!0,label:function(){return A}}]),(0,i.useEffect)((function(){null===q||void 0===q||!q.current||Q||$||null===ne||void 0===ne||ne(q.current.getBoundingClientRect().width)}),[Q,U,$,K,q,ne,B]),(0,i.useEffect)((function(){Q||(0,j.t8)(F,U)}),[p,Q,U,F]),(0,i.useEffect)((function(){$||(0,j.t8)(L,K)}),[$,K,L]);var le=(0,w.Z)(O);return(0,i.useEffect)((function(){_&&le!==O&&W(O)}),[_,O,le]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(a.Z,{title:A}),(0,f.jsx)(s.Z,{breadcrumbs:ie,menuItems:N,project:null===re||void 0===re?void 0:re[0],version:null===re||void 0===re||null===(n=re[0])||void 0===n?void 0:n.version}),(0,f.jsxs)(d.Nk,{children:[0!==(null===E||void 0===E?void 0:E.length)&&(0,f.jsx)(d.lm,{showMore:!0,children:(0,f.jsx)(v.Z,{navigationItems:E,showMore:!0})}),(0,f.jsx)(c.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(h.Z,{after:r,afterHeightOffset:y.Mz,afterHidden:p,afterMousedownActive:Q,afterWidth:U,before:C,beforeHeightOffset:y.Mz,beforeMousedownActive:$,beforeWidth:d.k1+(C?K:0),headerOffset:H,hideAfterCompletely:!0,leftOffset:C?d.k1:null,mainContainerHeader:D,mainContainerRef:q,setAfterMousedownActive:J,setAfterWidth:W,setBeforeMousedownActive:ee,setBeforeWidth:V,children:[z&&(0,f.jsx)(m,{children:z}),P]})})]}),k&&(0,f.jsx)(l.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===M||void 0===M?void 0:M(null)},children:(0,f.jsx)(u.Z,Z(Z({},k),{},{onClose:function(){return null===M||void 0===M?void 0:M(null)}}))})]})}},63153:function(e,n,t){t.d(n,{Z3:function(){return r},ms:function(){return i},s7:function(){return o}});var r=[{autoComplete:"username",label:"Username",required:!0,uuid:"username"},{autoComplete:"email",disabled:!1,label:"Email",required:!0,type:"email",uuid:"email"}],o="password_current",i=[{autoComplete:"current-password",label:"Current password",type:"password",uuid:o},{autoComplete:"new-password",label:"New password",type:"password",uuid:"password"},{autoComplete:"new-password",label:"Confirm new password",type:"password",uuid:"password_confirmation"}]},20582:function(e,n,t){var r=t(82394),o=t(21831),i=t(75582),l=t(21764),u=t(82684),c=t(83455),a=t(60328),s=t(79891),d=t(67971),f=t(87372),p=t(55378),m=t(86673),h=t(19711),v=t(82944),b=t(82531),w=t(66166),y=t(46336),g=t(63153),j=t(24224),x=t(9736),O=t(7715),Z=t(96510),_=t(28598);function C(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 I(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?C(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):C(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.disabledFields,t=e.hideFields,C=e.newUser,S=e.onDeleteSuccess,P=e.onSaveSuccess,k=e.showDelete,N=e.title,H=e.user,D=(0,u.useState)(!0),E=D[0],M=D[1],z=(0,u.useState)({}),A=z[0],T=z[1],B=(0,u.useState)(null),F=B[0],L=B[1],q=((0,x.PR)()||{}).owner,R=b.ZP.statuses.list().data,U=(0,u.useMemo)((function(){var e;return(null===R||void 0===R||null===(e=R.statuses)||void 0===e?void 0:e[0])||{}}),[R]),W=U.project_type,G=U.project_uuid,Q="global",J=null,X=null;W===y.k.SUB?(Q="project",J=G):W===y.k.MAIN&&(X="The roles selected here will apply to this user globally.\n If a user has both a global role and a workspace role,\n then the role with higher access will take precedence.");var K=b.ZP.roles.list({entity:Q,entity_ids:J?[J]:[],limit_roles:!!C},{revalidateOnFocus:!1}),V=K.data,Y=(K.mutate,(0,u.useMemo)((function(){return(null===V||void 0===V?void 0:V.roles)||[]}),[null===V||void 0===V?void 0:V.roles])),$=(0,c.Db)(C?b.ZP.users.useCreate():b.ZP.users.useUpdate(null===H||void 0===H?void 0:H.id),{onSuccess:function(e){return(0,Z.wD)(e,{callback:function(e){var n=e.user,t=g.Z3.concat(g.ms).map((function(e){return e.uuid}));t.push("id");var r=(0,O.GL)(n,t);L(r),l.Am.success(C?"New user created successfully.":"User profile successfully updated.",{position:l.Am.POSITION.BOTTOM_RIGHT,toastId:"user-update-success-".concat(n.id)}),null===P||void 0===P||P(r)},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.exception,o=n.message,i=n.type;l.Am.error((null===t||void 0===t?void 0:t.error)||r||o,{position:l.Am.POSITION.BOTTOM_RIGHT,toastId:i})}})}}),ee=(0,i.Z)($,2),ne=ee[0],te=ee[1].isLoading,re=(0,c.Db)(b.ZP.users.useDelete(null===H||void 0===H?void 0:H.id),{onSuccess:function(e){return(0,Z.wD)(e,{callback:function(){null===S||void 0===S||S()},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.message;alert(r),console.log(t)}})}}),oe=(0,i.Z)(re,2),ie=oe[0],le=oe[1].isLoading,ue=t?(0,o.Z)(t):[];C&&ue.push(g.s7);var ce=!ue||!ue.includes(g.s7),ae=(0,w.Z)(H);(0,u.useEffect)((function(){if(H&&(!F||(null===ae||void 0===ae?void 0:ae.id)!==(null===H||void 0===H?void 0:H.id))){var e=g.Z3.concat(g.ms).map((function(e){return e.uuid}));L((0,O.GL)(H,e))}null!==F&&void 0!==F&&F.password||null!==F&&void 0!==F&&F.password_confirmation?(null===F||void 0===F?void 0:F.password)!==(null===F||void 0===F?void 0:F.password_confirmation)?T({password_confirmation:"Password confirmation does not match."}):!ce||null!==F&&void 0!==F&&F.password_current?T(null):T({password_current:"This field is required."}):null!==F&&void 0!==F&&F.password_current&&ce?null!==F&&void 0!==F&&F.password&&null!==F&&void 0!==F&&F.password_confirmation?T(null):T({password:"This field is required.",password_confirmation:"This field is required."}):null!==F&&void 0!==F&&F.password_current||null!==F&&void 0!==F&&F.password||null!==F&&void 0!==F&&F.password_confirmation||T(null)}),[F,ce,H,ae]);var se=(0,u.useState)(!1),de=se[0],fe=se[1],pe=(0,u.useMemo)((function(){return(de?null===F||void 0===F?void 0:F.roles_new:null===H||void 0===H?void 0:H.roles_new)||[]}),[F,de,H]),me=(0,u.useMemo)((function(){var e=(null===Y||void 0===Y?void 0:Y.map((function(e){return e.id})))||[];return null===pe||void 0===pe?void 0:pe.filter((function(n){var t=n.id;return e.includes(t)}))}),[pe,Y]);return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(f.Z,{children:N||"Edit profile"}),(0,_.jsxs)("form",{children:[g.Z3.filter((function(e){var n=e.uuid;return!ue||!ue.includes(n)})).map((function(e){var n=e.autoComplete,t=e.disabled,o=e.label,i=e.required,l=e.type,u=e.uuid;return(0,_.jsx)(m.Z,{mt:2,children:(0,_.jsx)(v.Z,{autoComplete:n,disabled:t&&!C,label:o,onChange:function(e){M(!1),L((function(n){return I(I({},n),{},(0,r.Z)({},u,e.target.value))}))},primary:!0,required:i,setContentOnMount:!0,type:l,value:(null===F||void 0===F?void 0:F[u])||""})},u)})),!(null!==H&&void 0!==H&&H.owner)&&!(null!==ue&&void 0!==ue&&ue.includes("roles"))&&(0,_.jsxs)(m.Z,{mt:2,children:[X&&(0,_.jsx)(m.Z,{mb:1,children:(0,_.jsx)(h.ZP,{children:X})}),(0,_.jsx)(p.Z,{disabled:null===n||void 0===n?void 0:n.includes("roles"),label:"Roles",onChange:function(e){var n=(0,j.sE)(Y,(function(n){return n.id==e.target.value}));n&&(M(!1),fe(!0),L((function(e){var t={};return(0,j.sE)(pe,(function(e){return e.id==(null===n||void 0===n?void 0:n.id)}))||(t={roles_new:[].concat((0,o.Z)(pe),[n])}),I(I({},e),t)})))},primary:!0,setContentOnMount:!0,children:Y.map((function(e){var n=e.id,t=e.name;return(0,_.jsx)("option",{value:n,children:t},t)}))}),(0,_.jsx)(m.Z,{mb:1}),(0,_.jsx)(d.Z,{alignItems:"center",flexWrap:"wrap",children:null===me||void 0===me?void 0:me.map((function(e){var t=e.id,r=e.name;return(0,_.jsx)(m.Z,{mb:1,mr:1,children:(0,_.jsx)(s.Z,{disabled:null===n||void 0===n?void 0:n.includes("roles"),label:r,onClick:function(){M(!1),fe(!0),L((function(e){return I(I({},e),{},{roles_new:(0,j.Od)(pe,(function(e){return e.id===t}))})}))},primary:!0})},"user_roles/".concat(r))}))})]}),(0,_.jsxs)(m.Z,{mt:5,children:[(0,_.jsx)(f.Z,{children:C?"Password":"Change password"}),g.ms.filter((function(e){var n=e.uuid;return!ue||!ue.includes(n)})).map((function(e){var n=e.autoComplete,t=e.disabled,o=e.label,i=e.required,l=e.type,u=e.uuid;return(0,_.jsx)(m.Z,{mt:2,children:(0,_.jsx)(v.Z,{autoComplete:n,disabled:t,label:o,meta:{error:null===A||void 0===A?void 0:A[u],touched:!(null===A||void 0===A||!A[u])},onChange:function(e){M(!1),L((function(n){return I(I({},n),{},(0,r.Z)({},u,e.target.value))}))},primary:!0,required:i,setContentOnMount:!0,type:l,value:(null===F||void 0===F?void 0:F[u])||""})},u)}))]}),(0,_.jsx)(m.Z,{mt:5,children:(0,_.jsxs)(d.Z,{children:[(0,_.jsx)(a.Z,{disabled:E||A&&!(0,O.Qr)(A),loading:te,onClick:function(){var e,n=I({},F);"roles_new"in n&&(n.roles_new=null===(e=F.roles_new)||void 0===e?void 0:e.map((function(e){return e.id})));ne({user:n})},primary:!0,children:C?"Create new user":"Update user profile"}),k&&q&&(0,_.jsx)(m.Z,{ml:1,children:(0,_.jsx)(a.Z,{danger:!0,loading:le,onClick:function(){window.confirm("Are you sure you want to delete ".concat(F.username||F.email,"?"))&&ie()},children:"Delete user"})})]})})]})]})}},46336:function(e,n,t){var r,o;t.d(n,{d:function(){return r},k:function(){return o}}),function(e){e.ADD_NEW_BLOCK_V2="add_new_block_v2"}(r||(r={})),function(e){e.MAIN="main",e.STANDALONE="standalone",e.SUB="sub"}(o||(o={}))},79891:function(e,n,t){var r=t(38626),o=t(60328),i=t(67971),l=t(86673),u=t(19711),c=t(23831),a=t(22341),s=t(49125),d=t(31012),f=t(28598),p=r.default.div.withConfig({displayName:"Chip__ChipStyle",componentId:"sc-1ok73g-0"})(["display:inline-block;"," "," "," "," ",""],(function(e){return!e.primary&&"\n background-color: ".concat((e.theme.background||c.Z.background).tag,";\n ")}),(function(e){return e.primary&&"\n background-color: ".concat((e.theme.chart||c.Z.chart).primary,";\n ")}),(function(e){return!e.small&&"\n border-radius: ".concat((s.iI+d.Al)/2,"px;\n height: ").concat(1.5*s.iI+d.Al,"px;\n padding: ").concat(s.iI/1.5,"px ").concat(1.25*s.iI,"px;\n ")}),(function(e){return e.small&&"\n border-radius: ".concat((s.iI/2+d.Al)/2,"px;\n height: ").concat(d.Al+s.iI/2+2,"px;\n padding: ").concat(s.iI/4,"px ").concat(s.iI,"px;\n ")}),(function(e){return e.border&&"\n border: 1px solid ".concat((e.theme.content||c.Z.content).muted,";\n ")}));n.Z=function(e){var n=e.border,t=e.children,r=e.disabled,c=e.label,d=e.onClick,m=e.primary,h=e.small;return(0,f.jsx)(p,{border:n,primary:m,small:h,children:(0,f.jsx)(o.Z,{basic:!0,disabled:r,noBackground:!0,noPadding:!0,onClick:d,transparent:!0,children:(0,f.jsxs)(i.Z,{alignItems:"center",children:[t,c&&(0,f.jsx)(u.ZP,{small:h,children:c}),!r&&d&&(0,f.jsx)(l.Z,{ml:1,children:(0,f.jsx)(a.x8,{default:m,muted:!m,size:h?s.iI:1.25*s.iI})})]})})})}},87372:function(e,n,t){var r,o,i,l,u,c,a,s,d=t(82394),f=t(26304),p=t(26653),m=t(38626),h=t(33591),v=t(23831),b=t(2005),w=t(31012),y=t(19711),g=t(49125),j=t(86673),x=t(28598),O=["children","condensed","inline","level","marketing","spacingBelow"];function Z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function _(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach((function(n){(0,d.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var C=(0,m.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],y.IH,(function(e){return e.color&&"\n color: ".concat(e.color,"\n ")}),(function(e){return e.yellow&&"\n color: ".concat((e.theme.accent||v.Z.accent).yellow,";\n ")}),(function(e){return e.center&&"\n text-align: center;\n "}),(function(e){return!e.monospace&&0===Number(e.weightStyle)&&"\n font-family: ".concat(b.iI,";\n ")}),(function(e){return!e.monospace&&1===Number(e.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(e){return!e.monospace&&2===Number(e.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(e){return!e.monospace&&3===Number(e.weightStyle)&&"\n font-family: ".concat(b.ry,";\n ")}),(function(e){return!e.monospace&&4===Number(e.weightStyle)&&"\n font-family: ".concat(b.YC,";\n ")}),(function(e){return!e.monospace&&5===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&(6===Number(e.weightStyle)||e.bold)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&7===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&8===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return e.lineHeightAuto&&"\n line-height: normal !important;\n "})),I=m.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(e){return"\n color: ".concat((e.theme.content||v.Z.content).active,";\n ")})),S=m.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],C,h.media.md(r||(r=(0,p.Z)(["\n ","\n "])),w.aQ),h.media.lg(o||(o=(0,p.Z)(["\n ","\n "])),w.aQ),h.media.xl(i||(i=(0,p.Z)(["\n ","\n "])),w.aQ)),P=m.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],C,w.MJ),k=m.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],C,h.media.xs(l||(l=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*g.iI,7*g.iI),h.media.sm(u||(u=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*g.iI,7*g.iI),h.media.md(c||(c=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*g.iI,7*g.iI),h.media.lg(a||(a=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*g.iI,7*g.iI),h.media.xl(s||(s=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*g.iI,7*g.iI)),N=m.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],C,w.BL),H=m.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],C),D=m.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],C),E=m.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],C),M=m.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],C,(function(e){return 1===e.level&&"\n ".concat(w.MJ,"\n ")}),(function(e){return 2===e.level&&"\n ".concat(w.BL,"\n ")}),(function(e){return 3===e.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(e){return 4===e.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),z=function(e){var n,t=e.children,r=e.condensed,o=e.inline,i=e.level,l=e.marketing,u=e.spacingBelow,c=(0,f.Z)(e,O);o?n=M:0===Number(i)?n=S:1===Number(i)?n=l?k:P:2===Number(i)?n=N:3===Number(i)?n=H:4===Number(i)?n=D:5===Number(i)&&(n=E);var a=(0,x.jsxs)(n,_(_({},c),{},{level:i,children:[u&&(0,x.jsx)(j.Z,{mb:r?2:3,children:t}),!u&&t]}));return o?a:(0,x.jsx)(I,{children:a})};z.defaultProps={level:3,weightStyle:6},n.Z=z},80022:function(e,n,t){function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}t.d(n,{Z:function(){return r}})},15544:function(e,n,t){function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}t.d(n,{Z:function(){return r}})},99177:function(e,n,t){function r(e,n){return r=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},r(e,n)}function o(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&r(e,n)}t.d(n,{Z:function(){return o}})},93189:function(e,n,t){t.d(n,{Z:function(){return i}});var r=t(12539),o=t(80022);function i(e,n){if(n&&("object"===r(n)||"function"===typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(e)}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4317],{97225:function(e,n,i){var t=i(75582),r=i(12691),l=i.n(r),c=i(82684),u=i(83455),o=i(34376),s=i(60328),d=i(16634),a=i(47999),f=i(67971),p=i(10919),h=i(93348),g=i(62609),x=i(86673),Z=i(87815),j=i(19711),_=i(46261),E=i(82531),C=i(
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4317],{97225:function(e,n,i){var t=i(75582),r=i(12691),l=i.n(r),c=i(82684),u=i(83455),o=i(34376),s=i(60328),d=i(16634),a=i(47999),f=i(67971),p=i(10919),h=i(93348),g=i(62609),x=i(86673),Z=i(87815),j=i(19711),_=i(46261),E=i(82531),C=i(22341),m=i(66050),k=i(49125),v=i(45838),I=i(9736),A=i(96510),T=i(66653),b=i(28598),P=1.5*k.iI;n.Z=function(e){var n=e.fetchPipelineSchedules,i=e.highlightRowOnHover,r=e.includeCreatedAtColumn,y=e.includePipelineColumn,w=e.pipeline,N=e.pipelineSchedules,S=e.pipelineTriggersByName,L=e.selectedSchedule,V=e.setErrors,z=e.setSelectedSchedule,D=e.stickyHeader,B=null===w||void 0===w?void 0:w.uuid,R=(0,o.useRouter)(),O=(0,c.useRef)({}),q=(0,c.useState)(null),F=q[0],H=q[1],M=(0,c.useState)(0),U=M[0],Y=M[1],K=(0,c.useState)(0),J=K[0],Q=K[1],W=(0,u.Db)((function(e){return E.ZP.pipeline_schedules.useUpdate(e.id)({pipeline_schedule:e})}),{onSuccess:function(e){return(0,A.wD)(e,{callback:function(){n()},onErrorCallback:function(e,n){return V({errors:n,response:e})}})}}),X=(0,t.Z)(W,1)[0],$=(0,u.Db)((function(e){return E.ZP.pipeline_schedules.useDelete(e)()}),{onSuccess:function(e){return(0,A.wD)(e,{callback:function(){n(),B?R.push("/pipelines/[pipeline]/triggers","/pipelines/".concat(B,"/triggers")):n()},onErrorCallback:function(e,n){return V({errors:n,response:e})}})}}),G=(0,t.Z)($,1)[0],ee=[{label:function(){return""},uuid:"action"},{uuid:"Info"},{uuid:"Type"},{uuid:"Name"},{uuid:"Frequency"},{uuid:"Runs"},{uuid:"Latest status"},{uuid:"Logs"}];(0,I.Ct)()||ee.push({label:function(){return""},uuid:"edit/delete"});var ne=[null,null,null,1,null,null,null,null,null];return y&&(ee.splice(2,0,{uuid:"Pipeline"}),ne.splice(2,0,2)),r&&(ee.splice(3,0,{uuid:"Created at"}),ne.splice(3,0,null)),(0,b.jsx)(v.cl,{overflowVisible:!0,children:0===N.length?(0,b.jsx)(x.Z,{px:3,py:1,children:(0,b.jsx)(j.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:"No triggers available"})}):(0,b.jsx)(Z.Z,{columnFlex:ne,columns:ee,highlightRowOnHover:i,isSelectedRow:function(e){return N[e].id===(null===L||void 0===L?void 0:L.id)},onClickRow:z?function(e){return null===z||void 0===z?void 0:z(N[e])}:null,rowVerticalPadding:6,rows:N.map((function(e,n){var i,t,u=e.id,o=e.created_at,Z=e.pipeline_runs_count,E=e.pipeline_uuid,v=e.last_pipeline_run_status,A=e.name,w=e.schedule_interval,N=e.status,L=B||E;O.current[u]=(0,c.createRef)(),h.fq.ACTIVE===N?t=(0,b.jsx)(d.Z,{size:P,success:!0}):h.fq.INACTIVE===N&&(t=(0,b.jsx)(d.Z,{borderSize:1,size:P,square:!0,warning:!0}));var V=[(0,b.jsx)(s.Z,{iconOnly:!0,noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(n){(0,T.j)(n),X({id:e.id,status:h.fq.ACTIVE===N?h.fq.INACTIVE:h.fq.ACTIVE})},children:h.fq.ACTIVE===N?(0,b.jsx)(C.dz,{muted:!0,size:2*k.iI}):(0,b.jsx)(C.Py,{default:!0,size:2*k.iI})},"toggle_trigger_".concat(n)),(0,b.jsxs)(f.Z,{alignItems:"center",flexDirection:"row",children:[(0,b.jsx)(_.Z,{block:!0,label:N,size:P,widthFitContent:!0,children:t}),(null===S||void 0===S?void 0:S[A])&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(x.Z,{mr:1}),(0,b.jsx)(_.Z,{block:!0,label:"This trigger is saved in code.",size:P,widthFitContent:!0,children:(0,b.jsx)(C.EK,{default:!0,size:P})})]})]},"trigger_status_".concat(n)),(0,b.jsx)(j.ZP,{default:!0,monospace:!0,children:null===(i=h.Z4[e.schedule_type])||void 0===i?void 0:i.call(h.Z4)},"trigger_type_".concat(n)),(0,b.jsx)(l(),{as:"/pipelines/".concat(L,"/triggers/").concat(u),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,b.jsx)(p.Z,{bold:!0,onClick:function(e){(0,T.j)(e),R.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(L,"/triggers/").concat(u))},sameColorAsText:!0,children:A})},"trigger_name_".concat(n)),(0,b.jsx)(j.ZP,{default:!0,monospace:!0,children:w},"trigger_frequency_".concat(n)),(0,b.jsx)(j.ZP,{default:!0,monospace:!0,children:Z},"trigger_run_count_".concat(n)),(0,b.jsx)(j.ZP,{danger:m.V.FAILED===v,default:!v,monospace:!0,success:m.V.COMPLETED===v,warning:m.V.CANCELLED===v,children:v||"N/A"},"latest_run_status_".concat(n)),(0,b.jsx)(s.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return R.push("/pipelines/".concat(L,"/logs?pipeline_schedule_id[]=").concat(u))},children:(0,b.jsx)(C.B4,{default:!0,size:2*k.iI})},"logs_button_".concat(n))];return(0,I.Ct)()||V.push((0,b.jsxs)(f.Z,{children:[(0,b.jsx)(s.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return R.push("/pipelines/".concat(L,"/triggers/").concat(u,"/edit"))},title:"Edit",children:(0,b.jsx)(C.I8,{default:!0,size:2*k.iI})}),(0,b.jsx)(x.Z,{mr:1}),(0,b.jsx)(s.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){var e,n,i,t;H(u),Y((null===(e=O.current[u])||void 0===e||null===(n=e.current)||void 0===n?void 0:n.offsetTop)||0),Q((null===(i=O.current[u])||void 0===i||null===(t=i.current)||void 0===t?void 0:t.offsetLeft)||0)},ref:O.current[u],title:"Delete",children:(0,b.jsx)(C.rF,{default:!0,size:2*k.iI})}),(0,b.jsx)(a.Z,{onClickOutside:function(){return H(null)},open:F===u,children:(0,b.jsx)(g.Z,{danger:!0,left:(J||0)-286,onCancel:function(){return H(null)},onClick:function(){H(null),G(u)},title:"Are you sure you want to delete the trigger ".concat(A,"?"),top:(U||0)-(n<=1?40:96),width:40*k.iI})})]},"edit_delete_buttons_".concat(n))),y&&V.splice(2,0,(0,b.jsx)(j.ZP,{default:!0,monospace:!0,children:L},"pipeline_name_".concat(n))),r&&V.splice(3,0,(0,b.jsx)(j.ZP,{default:!0,monospace:!0,children:o},"created_at_".concat(n))),V})),stickyHeader:D,uuid:"pipeline-triggers"})})}},51099:function(e,n,i){i.d(n,{Q:function(){return d}});i(82684);var t=i(60328),r=i(67971),l=i(86673),c=i(22341),u=i(73899),o=i(49125),s=i(28598),d=22;n.Z=function(e){var n=e.page,i=e.maxPages,d=e.onUpdate,a=e.totalPages,f=[],p=i;if(p>a)f=Array.from({length:a},(function(e,n){return n}));else{var h=Math.floor(p/2),g=n-h;n+h>=a?(g=a-p+2,p-=2):n-h<=0?(g=0,p-=2):(p-=4,g=n-Math.floor(p/2)),f=Array.from({length:p},(function(e,n){return n+g}))}return(0,s.jsx)(s.Fragment,{children:a>0&&(0,s.jsxs)(r.Z,{alignItems:"center",children:[(0,s.jsx)(t.Z,{disabled:0===n,onClick:function(){return d(n-1)},children:(0,s.jsx)(c.Hd,{size:1.5*o.iI,stroke:"#AEAEAE"})}),!f.includes(0)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.Z,{ml:1,children:(0,s.jsx)(t.Z,{onClick:function(){return d(0)},borderLess:!0,noBackground:!0,children:1})},0),!f.includes(1)&&(0,s.jsx)(l.Z,{ml:1,children:(0,s.jsx)(t.Z,{notClickable:!0,noBackground:!0,noPadding:!0,children:"..."})},0)]}),f.map((function(e){return(0,s.jsx)(l.Z,{ml:1,children:(0,s.jsx)(t.Z,{onClick:function(){e!==n&&d(e)},notClickable:e===n,backgroundColor:e===n&&u.a$,borderLess:!0,noBackground:!0,children:e+1})},e)})),!f.includes(a-1)&&(0,s.jsxs)(s.Fragment,{children:[!f.includes(a-2)&&(0,s.jsx)(l.Z,{ml:1,children:(0,s.jsx)(t.Z,{notClickable:!0,noBackground:!0,noPadding:!0,children:"..."})},0),(0,s.jsx)(l.Z,{ml:1,children:(0,s.jsx)(t.Z,{onClick:function(){return d(a-1)},borderLess:!0,noBackground:!0,children:a})},a-1)]}),(0,s.jsx)(l.Z,{ml:1}),(0,s.jsx)(t.Z,{disabled:n===a-1,onClick:function(){return d(n+1)},children:(0,s.jsx)(c.Kw,{size:1.5*o.iI,stroke:"#AEAEAE"})})]})})}},93348:function(e,n,i){i.d(n,{TR:function(){return a},U5:function(){return o},Xm:function(){return l},Z4:function(){return d},fq:function(){return u},kJ:function(){return s}});var t,r,l,c=i(82394);!function(e){e.API="api",e.EVENT="event",e.TIME="time"}(l||(l={}));var u,o,s,d=(t={},(0,c.Z)(t,l.API,(function(){return"API"})),(0,c.Z)(t,l.EVENT,(function(){return"event"})),(0,c.Z)(t,l.TIME,(function(){return"schedule"})),t);!function(e){e.ACTIVE="active",e.INACTIVE="inactive"}(u||(u={})),function(e){e.ONCE="@once",e.HOURLY="@hourly",e.DAILY="@daily",e.WEEKLY="@weekly",e.MONTHLY="@monthly"}(o||(o={})),function(e){e.CREATED_AT="created_at",e.NAME="name",e.PIPELINE="pipeline_uuid",e.STATUS="status",e.TYPE="schedule_type"}(s||(s={}));var a=(r={},(0,c.Z)(r,s.CREATED_AT,"Created at"),(0,c.Z)(r,s.NAME,"Name"),(0,c.Z)(r,s.PIPELINE,"Pipeline"),(0,c.Z)(r,s.STATUS,"Status"),(0,c.Z)(r,s.TYPE,"Type"),r)}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4822],{62976:function(e,n,t){t.d(n,{r:function(){return O},Z:function(){return B}});var r=t(82394),o=t(21831),i=t(82684),a=t(10919),c=t(12691),l=t.n(c),d=t(38626),u=t(72487),s=t(44628),h=t(6508),f=t(67971),m=t(19711),g=t(23831),p=t(31969),v=function(){var e=document.createElement("div");e.setAttribute("style","width: 100px; height: 100px; overflow: scroll; position:absolute; top:-9999px;"),document.body.appendChild(e);var n=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),n},b=t(2005),x=t(31012),y=t(37391),w=t(6753),j=t(49125),S=t(20567),H=t(24224),k=t(28598);function I(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?I(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):I(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var C=2*j.iI+x.dN,E=20*j.iI,O=8.7,P=d.default.div.withConfig({displayName:"DataTable__Styles",componentId:"sc-1arr863-0"})([""," "," "," .body > div{","}.table{border-spacing:0;display:inline-block;"," "," "," "," .tr{.td.td-index-column{","}}.th{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;","}.th,.td{"," font-family:",";margin:0;","}.td{padding:","px;}&.sticky{overflow:auto;}.header{overflow:hidden;}}"],(function(e){return e.disableScrolling&&"\n overflow: hidden;\n "}),(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),(function(e){return e.maxHeight&&"\n max-height: ".concat(e.maxHeight,"px;\n ")}),y.w5,(function(e){return!e.noBorderBottom&&"\n border-bottom: 1px solid ".concat((e.theme.borders||p.Z.borders).medium,";\n ")}),(function(e){return!e.noBorderLeft&&"\n border-left: 1px solid ".concat((e.theme.borders||p.Z.borders).medium,";\n ")}),(function(e){return!e.noBorderRight&&"\n border-right: 1px solid ".concat((e.theme.borders||p.Z.borders).medium,";\n ")}),(function(e){return!e.noBorderTop&&"\n border-top: 1px solid ".concat((e.theme.borders||p.Z.borders).medium,";\n ")}),(function(e){return"\n color: ".concat((e.theme.content||p.Z.content).default,";\n ")}),(function(e){return"\n height: ".concat(e.columnHeaderHeight||C,"px;\n ")}),x.iD,b.ry,(function(e){return"\n background-color: ".concat((e.theme.background||p.Z.background).table,";\n border-bottom: 1px solid ").concat((e.theme.borders||p.Z.borders).medium,";\n border-right: 1px solid ").concat((e.theme.borders||p.Z.borders).medium,";\n ")}),1*j.iI);function T(e){var n=e.original,t=8.5*Math.max.apply(Math,(0,o.Z)(n.map((function(e){return(null===e||void 0===e?void 0:e.length)||0})))),r=Math.ceil(t/(E-2*j.iI));return Math.max(r,1)*x.dN+2*j.iI}function A(e){var n=e.columnHeaderHeight,t=e.columns,r=e.data,c=e.disableScrolling,y=e.height,I=e.index,P=e.invalidValues,A=e.maxHeight,B=e.numberOfIndexes,M=e.previewIndexes,_=e.renderColumnHeader,N=e.width,L=(0,i.useContext)(d.ThemeContext),R=(0,i.useRef)(null),D=(0,i.useRef)(null);(0,i.useEffect)((function(){var e=function(e){var n;null===R||void 0===R||null===(n=R.current)||void 0===n||n.scroll(e.target.scrollLeft,0)};return D&&D.current.addEventListener("scroll",e),function(){var n;null===D||void 0===D||null===(n=D.current)||void 0===n||n.removeEventListener("scroll",e)}}),[R,D]);var V=(0,i.useMemo)((function(){return I&&r&&I.length===r.length}),[r,I]),W=(0,i.useMemo)((function(){var e=[];return(0,H.w6)(B).forEach((function(n,t){var i=String(null===r||void 0===r?void 0:r.length).length*O;if(V){var a=I.map((function(e){return B>=2?String(e[t]).length:String(e).length}));i=Math.max.apply(Math,(0,o.Z)(a))*O}e.push(i+2*j.iI)})),e}),[r,I,B,V]),z=t.map((function(e){return null===e||void 0===e?void 0:e.Header})).slice(1),U=(0,i.useMemo)((function(){return v()}),[]),F=(0,i.useMemo)((function(){var e=N-(Math.max.apply(Math,(0,o.Z)(W))+1.5*j.iI+U),n=t.length-1,r=E;return r*n<e&&(r=e/n),{width:r}}),[t,W,U,N]),G=(0,s.useTable)({columns:t,data:r,defaultColumn:F},s.useBlockLayout,h.useSticky),q=G.getTableBodyProps,J=G.getTableProps,X=G.headerGroups,K=G.prepareRow,Q=G.rows,Y=new Set((null===M||void 0===M?void 0:M.removedRows)||[]),$=(0,i.useCallback)((function(e){var n=e.index,t=e.style,r=Q[n];K(r);var o=r.original,c=Y.has(n);return(0,k.jsx)("div",Z(Z({},r.getRowProps({style:Z(Z({},t),{},{width:"auto"})})),{},{className:"tr",children:r.cells.map((function(e,t){var r,d=t<=B-1,u=e.getCellProps(),s=e.column.id,h=null===P||void 0===P||null===(r=P[s])||void 0===r?void 0:r.includes(n),g=Z({},u.style);d&&(g.fontFamily=b.Vp,g.left=0,g.position="sticky",g.textAlign=I?"right":"center",g.width=W[t]);var v,x=o[t-B],y=z.indexOf(s);if(h&&(g.color=p.Z.interactive.dangerBorder),c&&(g.backgroundColor=p.Z.background.danger),Array.isArray(x)||"object"===typeof x)try{x=JSON.stringify(x)}catch(j){x="Error: cannot display value"}return d&&(V?(v=I[n],Array.isArray(v)&&(v=v[t])):v=e.render("Cell")),(0,i.createElement)("div",Z(Z({},u),{},{className:"td ".concat(d?"td-index-column":""),key:"".concat(t,"-").concat(x),style:g}),v,!d&&(0,k.jsxs)(f.Z,{justifyContent:"space-between",children:[(0,k.jsxs)(m.ZP,{danger:h,default:!0,wordBreak:!0,children:[!0===x&&"true",!1===x&&"false",(null===x||"null"===x)&&"null",!0!==x&&!1!==x&&null!==x&&"null"!==x&&x]}),h&&(0,k.jsx)(l(),{as:(0,S.o_)(w.mW,y),href:"/datasets/[...slug]",passHref:!0,children:(0,k.jsx)(a.Z,{danger:!0,children:"View all"})})]}))}))}))}),[z,I,P,W,B,K,Q,V]),ee=(0,i.useMemo)((function(){var e;return A?(e=(0,H.Sm)(Q.map(T)),e+=n||C-x.dN):(e=y,e-=n||C),e}),[n,y,A,Q]),ne=(0,i.useMemo)((function(){return(0,k.jsx)(u.S_,{estimatedItemSize:C,height:ee,itemCount:null===Q||void 0===Q?void 0:Q.length,itemSize:function(e){return T(Q[e])},outerRef:D,style:{maxHeight:A,pointerEvents:c?"none":null},children:$})}),[c,ee,A,$,Q]);return(0,k.jsx)("div",Z(Z({},J()),{},{className:"table sticky",style:{width:N},children:(0,k.jsxs)("div",Z(Z({},q()),{},{className:"body",children:[(0,k.jsx)("div",{className:"header",ref:R,children:X.map((function(e,n){return(0,i.createElement)("div",Z(Z({},e.getHeaderGroupProps()),{},{className:"tr",key:"".concat(e.id,"_").concat(n)}),e.headers.map((function(e,n){var t,r=n<=B-1,o=e.getHeaderProps(),a=Z({},o.style);return r?(a.fontFamily=b.Vp,a.left=0,a.position="sticky",a.textAlign="center",a.width=W[n],a.minWidth=W[n]):_?t=_(e,n-B,{width:F.width}):(t=e.render("Header"),a.color=(L||g.Z).content.default,a.padding=1*j.iI,a.minWidth=F.width),(0,i.createElement)("div",Z(Z({},o),{},{className:"th",key:e.id,style:a,title:r?"Row number":void 0}),t)})))}))}),ne]}))}))}var B=function(e){var n=e.columnHeaderHeight,t=e.columns,r=e.disableScrolling,o=e.height,a=e.index,c=e.invalidValues,l=e.maxHeight,d=e.noBorderBottom,u=e.noBorderLeft,s=e.noBorderRight,h=e.noBorderTop,f=e.previewIndexes,m=e.renderColumnHeader,g=e.rows,p=e.width,v=(0,i.useMemo)((function(){return null!==a&&void 0!==a&&a.length&&Array.isArray(a[0])?a[0].length:1}),[a]),b=(0,i.useMemo)((function(){return(0,H.w6)(v).map((function(e,n){return{Header:(0,H.w6)(n+1).map((function(){return" "})).join(" "),accessor:function(e,n){return n},sticky:"left"}})).concat(null===t||void 0===t?void 0:t.map((function(e){return{Header:String(e),accessor:String(e)}})))}),[t,v]);return(0,k.jsx)(P,{columnHeaderHeight:n,disableScrolling:r,height:o,maxHeight:(l||0)+37,noBorderBottom:d,noBorderLeft:u,noBorderRight:s,noBorderTop:h,children:(0,k.jsx)(A,{columnHeaderHeight:n,columns:b,data:g,disableScrolling:r,height:o,index:a,invalidValues:c,maxHeight:l,numberOfIndexes:v,previewIndexes:f,renderColumnHeader:m,width:p})})}},6753:function(e,n,t){t.d(n,{AE:function(){return o},H3:function(){return i},mW:function(){return a},oE:function(){return c},yg:function(){return r}});var r="tabs[]",o="show_columns",i="column",a="Reports",c="Visualizations"},20567:function(e,n,t){t.d(n,{o_:function(){return l}});var r=t(75582),o=t(34376),i=t(6753);t(82684),t(12691),t(60328),t(57639),t(93461),t(67971),t(10919),t(86673),t(19711),t(10503),t(28598);var a,c=t(59e3);!function(e){e.DATASETS="datasets",e.DATASET_DETAIL="dataset_detail",e.COLUMNS="features",e.COLUMN_DETAIL="feature_detail",e.EXPORT="export"}(a||(a={}));var l=function(e,n){var t=(0,o.useRouter)().query.slug,l=void 0===t?[]:t,d=(0,r.Z)(l,1)[0],u=(0,c.iV)(),s=u.show_columns,h=u.column,f="/".concat(a.DATASETS,"/").concat(d),m="".concat(i.H3,"=").concat(h||n),g="".concat(i.yg,"=").concat(e,"&").concat(m,"&").concat(i.AE,"=").concat(s||0);return"".concat(f,"?").concat(g)}},32316:function(e,n,t){t.d(n,{Z:function(){return p}});var r=t(82684),o=t(60328),i=t(67971),a=t(882),c=t(86673),l=t(19711),d=t(99994),u=t(38626),s=t(49125),h=t(37391),f=u.default.div.withConfig({displayName:"indexstyle__TabsContainerStyle",componentId:"sc-segf7l-0"})(["padding-left:","px;padding-right:","px;"," "," ",""],s.cd*s.iI,s.cd*s.iI,(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.allowScroll&&"\n overflow: auto;\n "}),h.w5),m=t(66653),g=t(28598);var p=function(e){var n=e.allowScroll,t=e.compact,u=e.contained,h=e.noPadding,p=e.onClickTab,v=e.regularSizeText,b=e.selectedTabUUID,x=e.small,y=e.tabs,w=(0,r.useMemo)((function(){var e=y.length,n=[];return y.forEach((function(r,u){var h=r.Icon,f=r.IconSelected,y=r.label,w=r.uuid,j=w===b,S=j&&f||h,H=y?y():w,k=(0,g.jsxs)(i.Z,{alignItems:"center",children:[S&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(S,{default:!j,size:2*s.iI}),(0,g.jsx)(c.Z,{mr:1})]}),(0,g.jsx)(l.ZP,{bold:!0,default:!j,noWrapping:!0,small:!v,children:H})]});u>=1&&e>=2&&n.push((0,g.jsx)("div",{style:{marginLeft:1.5*s.iI}},"spacing-".concat(w))),j?n.push((0,g.jsx)(a.Z,{backgroundGradient:d.yr,backgroundPanel:!0,borderLess:!0,borderWidth:2,compact:t||x,onClick:function(e){(0,m.j)(e),p(r)},paddingUnitsHorizontal:1.75,paddingUnitsVertical:1.25,small:x,children:k},w)):n.push((0,g.jsx)("div",{style:{padding:2},children:(0,g.jsx)(o.Z,{borderLess:!0,compact:t||x,default:!0,onClick:function(e){(0,m.j)(e),p(r)},outline:!0,small:x,children:k})},"button-tab-".concat(w)))})),n}),[t,p,b,x,y]),j=(0,g.jsx)(i.Z,{alignItems:"center",children:w});return u?j:(0,g.jsx)(f,{allowScroll:n,noPadding:h,children:j})}}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4822],{62976:function(e,n,t){t.d(n,{r:function(){return O},Z:function(){return B}});var r=t(82394),o=t(21831),i=t(82684),a=t(10919),c=t(12691),l=t.n(c),d=t(38626),u=t(72487),s=t(44628),h=t(6508),f=t(67971),m=t(19711),g=t(23831),p=t(31969),v=function(){var e=document.createElement("div");e.setAttribute("style","width: 100px; height: 100px; overflow: scroll; position:absolute; top:-9999px;"),document.body.appendChild(e);var n=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),n},b=t(2005),x=t(31012),y=t(37391),w=t(6753),j=t(49125),S=t(20567),H=t(24224),k=t(28598);function I(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?I(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):I(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var C=2*j.iI+x.dN,E=20*j.iI,O=8.7,P=d.default.div.withConfig({displayName:"DataTable__Styles",componentId:"sc-1arr863-0"})([""," "," "," .body > div{","}.table{border-spacing:0;display:inline-block;"," "," "," "," .tr{.td.td-index-column{","}}.th{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;","}.th,.td{"," font-family:",";margin:0;","}.td{padding:","px;}&.sticky{overflow:auto;}.header{overflow:hidden;}}"],(function(e){return e.disableScrolling&&"\n overflow: hidden;\n "}),(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),(function(e){return e.maxHeight&&"\n max-height: ".concat(e.maxHeight,"px;\n ")}),y.w5,(function(e){return!e.noBorderBottom&&"\n border-bottom: 1px solid ".concat((e.theme.borders||p.Z.borders).medium,";\n ")}),(function(e){return!e.noBorderLeft&&"\n border-left: 1px solid ".concat((e.theme.borders||p.Z.borders).medium,";\n ")}),(function(e){return!e.noBorderRight&&"\n border-right: 1px solid ".concat((e.theme.borders||p.Z.borders).medium,";\n ")}),(function(e){return!e.noBorderTop&&"\n border-top: 1px solid ".concat((e.theme.borders||p.Z.borders).medium,";\n ")}),(function(e){return"\n color: ".concat((e.theme.content||p.Z.content).default,";\n ")}),(function(e){return"\n height: ".concat(e.columnHeaderHeight||C,"px;\n ")}),x.iD,b.ry,(function(e){return"\n background-color: ".concat((e.theme.background||p.Z.background).table,";\n border-bottom: 1px solid ").concat((e.theme.borders||p.Z.borders).medium,";\n border-right: 1px solid ").concat((e.theme.borders||p.Z.borders).medium,";\n ")}),1*j.iI);function T(e){var n=e.original,t=8.5*Math.max.apply(Math,(0,o.Z)(n.map((function(e){return(null===e||void 0===e?void 0:e.length)||0})))),r=Math.ceil(t/(E-2*j.iI));return Math.max(r,1)*x.dN+2*j.iI}function A(e){var n=e.columnHeaderHeight,t=e.columns,r=e.data,c=e.disableScrolling,y=e.height,I=e.index,P=e.invalidValues,A=e.maxHeight,B=e.numberOfIndexes,M=e.previewIndexes,_=e.renderColumnHeader,N=e.width,L=(0,i.useContext)(d.ThemeContext),R=(0,i.useRef)(null),D=(0,i.useRef)(null);(0,i.useEffect)((function(){var e=function(e){var n;null===R||void 0===R||null===(n=R.current)||void 0===n||n.scroll(e.target.scrollLeft,0)};return D&&D.current.addEventListener("scroll",e),function(){var n;null===D||void 0===D||null===(n=D.current)||void 0===n||n.removeEventListener("scroll",e)}}),[R,D]);var V=(0,i.useMemo)((function(){return I&&r&&I.length===r.length}),[r,I]),W=(0,i.useMemo)((function(){var e=[];return(0,H.w6)(B).forEach((function(n,t){var i=String(null===r||void 0===r?void 0:r.length).length*O;if(V){var a=I.map((function(e){return B>=2?String(e[t]).length:String(e).length}));i=Math.max.apply(Math,(0,o.Z)(a))*O}e.push(i+2*j.iI)})),e}),[r,I,B,V]),z=t.map((function(e){return null===e||void 0===e?void 0:e.Header})).slice(1),U=(0,i.useMemo)((function(){return v()}),[]),F=(0,i.useMemo)((function(){var e=N-(Math.max.apply(Math,(0,o.Z)(W))+1.5*j.iI+U),n=t.length-1,r=E;return r*n<e&&(r=e/n),{width:r}}),[t,W,U,N]),G=(0,s.useTable)({columns:t,data:r,defaultColumn:F},s.useBlockLayout,h.useSticky),q=G.getTableBodyProps,J=G.getTableProps,X=G.headerGroups,K=G.prepareRow,Q=G.rows,Y=new Set((null===M||void 0===M?void 0:M.removedRows)||[]),$=(0,i.useCallback)((function(e){var n=e.index,t=e.style,r=Q[n];K(r);var o=r.original,c=Y.has(n);return(0,k.jsx)("div",Z(Z({},r.getRowProps({style:Z(Z({},t),{},{width:"auto"})})),{},{className:"tr",children:r.cells.map((function(e,t){var r,d=t<=B-1,u=e.getCellProps(),s=e.column.id,h=null===P||void 0===P||null===(r=P[s])||void 0===r?void 0:r.includes(n),g=Z({},u.style);d&&(g.fontFamily=b.Vp,g.left=0,g.position="sticky",g.textAlign=I?"right":"center",g.width=W[t]);var v,x=o[t-B],y=z.indexOf(s);if(h&&(g.color=p.Z.interactive.dangerBorder),c&&(g.backgroundColor=p.Z.background.danger),Array.isArray(x)||"object"===typeof x)try{x=JSON.stringify(x)}catch(j){x="Error: cannot display value"}return d&&(V?(v=I[n],Array.isArray(v)&&(v=v[t])):v=e.render("Cell")),(0,i.createElement)("div",Z(Z({},u),{},{className:"td ".concat(d?"td-index-column":""),key:"".concat(t,"-").concat(x),style:g}),v,!d&&(0,k.jsxs)(f.Z,{justifyContent:"space-between",children:[(0,k.jsxs)(m.ZP,{danger:h,default:!0,wordBreak:!0,children:[!0===x&&"true",!1===x&&"false",(null===x||"null"===x)&&"null",!0!==x&&!1!==x&&null!==x&&"null"!==x&&x]}),h&&(0,k.jsx)(l(),{as:(0,S.o_)(w.mW,y),href:"/datasets/[...slug]",passHref:!0,children:(0,k.jsx)(a.Z,{danger:!0,children:"View all"})})]}))}))}))}),[z,I,P,W,B,K,Q,V]),ee=(0,i.useMemo)((function(){var e;return A?(e=(0,H.Sm)(Q.map(T)),e+=n||C-x.dN):(e=y,e-=n||C),e}),[n,y,A,Q]),ne=(0,i.useMemo)((function(){return(0,k.jsx)(u.S_,{estimatedItemSize:C,height:ee,itemCount:null===Q||void 0===Q?void 0:Q.length,itemSize:function(e){return T(Q[e])},outerRef:D,style:{maxHeight:A,pointerEvents:c?"none":null},children:$})}),[c,ee,A,$,Q]);return(0,k.jsx)("div",Z(Z({},J()),{},{className:"table sticky",style:{width:N},children:(0,k.jsxs)("div",Z(Z({},q()),{},{className:"body",children:[(0,k.jsx)("div",{className:"header",ref:R,children:X.map((function(e,n){return(0,i.createElement)("div",Z(Z({},e.getHeaderGroupProps()),{},{className:"tr",key:"".concat(e.id,"_").concat(n)}),e.headers.map((function(e,n){var t,r=n<=B-1,o=e.getHeaderProps(),a=Z({},o.style);return r?(a.fontFamily=b.Vp,a.left=0,a.position="sticky",a.textAlign="center",a.width=W[n],a.minWidth=W[n]):_?t=_(e,n-B,{width:F.width}):(t=e.render("Header"),a.color=(L||g.Z).content.default,a.padding=1*j.iI,a.minWidth=F.width),(0,i.createElement)("div",Z(Z({},o),{},{className:"th",key:e.id,style:a,title:r?"Row number":void 0}),t)})))}))}),ne]}))}))}var B=function(e){var n=e.columnHeaderHeight,t=e.columns,r=e.disableScrolling,o=e.height,a=e.index,c=e.invalidValues,l=e.maxHeight,d=e.noBorderBottom,u=e.noBorderLeft,s=e.noBorderRight,h=e.noBorderTop,f=e.previewIndexes,m=e.renderColumnHeader,g=e.rows,p=e.width,v=(0,i.useMemo)((function(){return null!==a&&void 0!==a&&a.length&&Array.isArray(a[0])?a[0].length:1}),[a]),b=(0,i.useMemo)((function(){return(0,H.w6)(v).map((function(e,n){return{Header:(0,H.w6)(n+1).map((function(){return" "})).join(" "),accessor:function(e,n){return n},sticky:"left"}})).concat(null===t||void 0===t?void 0:t.map((function(e){return{Header:String(e),accessor:String(e)}})))}),[t,v]);return(0,k.jsx)(P,{columnHeaderHeight:n,disableScrolling:r,height:o,maxHeight:(l||0)+37,noBorderBottom:d,noBorderLeft:u,noBorderRight:s,noBorderTop:h,children:(0,k.jsx)(A,{columnHeaderHeight:n,columns:b,data:g,disableScrolling:r,height:o,index:a,invalidValues:c,maxHeight:l,numberOfIndexes:v,previewIndexes:f,renderColumnHeader:m,width:p})})}},6753:function(e,n,t){t.d(n,{AE:function(){return o},H3:function(){return i},mW:function(){return a},oE:function(){return c},yg:function(){return r}});var r="tabs[]",o="show_columns",i="column",a="Reports",c="Visualizations"},20567:function(e,n,t){t.d(n,{o_:function(){return l}});var r=t(75582),o=t(34376),i=t(6753);t(82684),t(12691),t(60328),t(57639),t(93461),t(67971),t(10919),t(86673),t(19711),t(22341),t(28598);var a,c=t(59e3);!function(e){e.DATASETS="datasets",e.DATASET_DETAIL="dataset_detail",e.COLUMNS="features",e.COLUMN_DETAIL="feature_detail",e.EXPORT="export"}(a||(a={}));var l=function(e,n){var t=(0,o.useRouter)().query.slug,l=void 0===t?[]:t,d=(0,r.Z)(l,1)[0],u=(0,c.iV)(),s=u.show_columns,h=u.column,f="/".concat(a.DATASETS,"/").concat(d),m="".concat(i.H3,"=").concat(h||n),g="".concat(i.yg,"=").concat(e,"&").concat(m,"&").concat(i.AE,"=").concat(s||0);return"".concat(f,"?").concat(g)}},32316:function(e,n,t){t.d(n,{Z:function(){return p}});var r=t(82684),o=t(60328),i=t(67971),a=t(882),c=t(86673),l=t(19711),d=t(99994),u=t(38626),s=t(49125),h=t(37391),f=u.default.div.withConfig({displayName:"indexstyle__TabsContainerStyle",componentId:"sc-segf7l-0"})(["padding-left:","px;padding-right:","px;"," "," ",""],s.cd*s.iI,s.cd*s.iI,(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.allowScroll&&"\n overflow: auto;\n "}),h.w5),m=t(66653),g=t(28598);var p=function(e){var n=e.allowScroll,t=e.compact,u=e.contained,h=e.noPadding,p=e.onClickTab,v=e.regularSizeText,b=e.selectedTabUUID,x=e.small,y=e.tabs,w=(0,r.useMemo)((function(){var e=y.length,n=[];return y.forEach((function(r,u){var h=r.Icon,f=r.IconSelected,y=r.label,w=r.uuid,j=w===b,S=j&&f||h,H=y?y():w,k=(0,g.jsxs)(i.Z,{alignItems:"center",children:[S&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(S,{default:!j,size:2*s.iI}),(0,g.jsx)(c.Z,{mr:1})]}),(0,g.jsx)(l.ZP,{bold:!0,default:!j,noWrapping:!0,small:!v,children:H})]});u>=1&&e>=2&&n.push((0,g.jsx)("div",{style:{marginLeft:1.5*s.iI}},"spacing-".concat(w))),j?n.push((0,g.jsx)(a.Z,{backgroundGradient:d.yr,backgroundPanel:!0,borderLess:!0,borderWidth:2,compact:t||x,onClick:function(e){(0,m.j)(e),p(r)},paddingUnitsHorizontal:1.75,paddingUnitsVertical:1.25,small:x,children:k},w)):n.push((0,g.jsx)("div",{style:{padding:2},children:(0,g.jsx)(o.Z,{borderLess:!0,compact:t||x,default:!0,onClick:function(e){(0,m.j)(e),p(r)},outline:!0,small:x,children:k})},"button-tab-".concat(w)))})),n}),[t,p,b,x,y]),j=(0,g.jsx)(i.Z,{alignItems:"center",children:w});return u?j:(0,g.jsx)(f,{allowScroll:n,noPadding:h,children:j})}}}]);
|
mage_ai/server/frontend_dist/_next/static/chunks/{547-14029bdacc0ed267.js → 547-4ad2cdae967055b6.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[547],{1210:function(e,n,r){r.d(n,{Z:function(){return y}});var t=r(82394),i=r(21831),o=r(82684),l=r(47999),s=r(49894),u=r(93461),c=r(57384),d=r(41424),a=r(72454),f=r(28598);function p(e,n){var r=e.children;return(0,f.jsx)(a.HS,{ref:n,children:r})}var h=o.forwardRef(p),b=r(32063),g=r(85019),v=r(82531),O=r(66166),m=r(3055),j=r(49125),I=r(91427),S=r(24141);function k(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function P(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?k(Object(r),!0).forEach((function(n){(0,t.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var y=function(e){var n,r=e.addProjectBreadcrumbToCustomBreadcrumbs,t=e.after,p=e.afterHidden,k=e.afterWidth,y=e.afterWidthOverride,E=e.before,M=e.beforeWidth,x=e.breadcrumbs,w=e.children,Z=e.errors,N=e.headerMenuItems,C=e.headerOffset,_=e.mainContainerHeader,R=e.navigationItems,T=e.setErrors,L=e.subheaderChildren,B=e.title,G=e.uuid,D=(0,S.i)().width,A="dashboard_after_width_".concat(G),H="dashboard_before_width_".concat(G),W=(0,o.useRef)(null),U=(0,o.useState)(y?k:(0,I.U2)(A,k)),F=U[0],K=U[1],z=(0,o.useState)(!1),q=z[0],Y=z[1],J=(0,o.useState)(E?Math.max((0,I.U2)(H,M),13*j.iI):null),Q=J[0],V=J[1],X=(0,o.useState)(!1),$=X[0],ee=X[1],ne=(0,o.useState)(null)[1],re=v.ZP.projects.list({},{revalidateOnFocus:!1}).data,te=null===re||void 0===re?void 0:re.projects,ie={label:function(){var e;return null===te||void 0===te||null===(e=te[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},oe=[];x?(r&&oe.push(ie),oe.push.apply(oe,(0,i.Z)(x))):(null===te||void 0===te?void 0:te.length)>=1&&oe.push.apply(oe,[ie,{bold:!0,label:function(){return B}}]),(0,o.useEffect)((function(){null===W||void 0===W||!W.current||q||$||null===ne||void 0===ne||ne(W.current.getBoundingClientRect().width)}),[q,F,$,Q,W,ne,D]),(0,o.useEffect)((function(){q||(0,I.t8)(A,F)}),[p,q,F,A]),(0,o.useEffect)((function(){$||(0,I.t8)(H,Q)}),[$,Q,H]);var le=(0,O.Z)(k);return(0,o.useEffect)((function(){y&&le!==k&&K(k)}),[y,k,le]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(c.Z,{title:B}),(0,f.jsx)(d.Z,{breadcrumbs:oe,menuItems:N,project:null===te||void 0===te?void 0:te[0],version:null===te||void 0===te||null===(n=te[0])||void 0===n?void 0:n.version}),(0,f.jsxs)(a.Nk,{children:[0!==(null===R||void 0===R?void 0:R.length)&&(0,f.jsx)(a.lm,{showMore:!0,children:(0,f.jsx)(g.Z,{navigationItems:R,showMore:!0})}),(0,f.jsx)(u.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(b.Z,{after:t,afterHeightOffset:m.Mz,afterHidden:p,afterMousedownActive:q,afterWidth:F,before:E,beforeHeightOffset:m.Mz,beforeMousedownActive:$,beforeWidth:a.k1+(E?Q:0),headerOffset:C,hideAfterCompletely:!0,leftOffset:E?a.k1:null,mainContainerHeader:_,mainContainerRef:W,setAfterMousedownActive:Y,setAfterWidth:K,setBeforeMousedownActive:ee,setBeforeWidth:V,children:[L&&(0,f.jsx)(h,{children:L}),w]})})]}),Z&&(0,f.jsx)(l.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===T||void 0===T?void 0:T(null)},children:(0,f.jsx)(s.Z,P(P({},Z),{},{onClose:function(){return null===T||void 0===T?void 0:T(null)}}))})]})}},59920:function(e,n,r){var t;r.d(n,{M:function(){return t}}),function(e){e.BACKFILLS="backfills",e.BLOCK_RUNS="block_runs",e.EDIT="edit",e.MONITOR="monitor",e.PIPELINE_LOGS="pipeline_logs",e.PIPELINE_RUNS="pipeline_runs",e.RUNS="runs",e.SETTINGS="settings",e.SYNCS="syncs",e.TRIGGERS="triggers"}(t||(t={}))},60547:function(e,n,r){r.d(n,{Z:function(){return M}});var t=r(82394),i=r(21831),o=r(82684),l=r(34376),s=r(47999),u=r(1210),c=r(34744),d=r(49894),a=r(67971),f=r(87372),p=r(86673),h=r(82531),b=r(38626),g=r(23831),v=r(73942),O=r(49125),m=b.default.div.withConfig({displayName:"indexstyle__BannerStyle",componentId:"sc-1te3pmf-0"})(["border-radius:","px;padding:","px;"," "," ",""],v.n_,3*O.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||g.Z.shadow).small,";\n ")}),(function(e){return e.background&&"\n background: ".concat(e.background,";\n ")}),(function(e){return e.backgroundImage&&'\n background-image: url("'.concat(e.backgroundImage,'");\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n ')})),j=r(3055),I=r(36405),S=r(96510),k=r(24141),P=r(28598);function y(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function E(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?y(Object(r),!0).forEach((function(n){(0,t.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var M=function(e){var n=e.after,r=e.afterHidden,t=e.afterWidth,b=e.before,g=e.beforeWidth,v=e.breadcrumbs,y=e.buildSidekick,M=e.children,x=e.errors,w=e.headline,Z=e.pageName,N=e.pipeline,C=e.setErrors,_=e.subheader,R=e.subheaderBackground,T=e.subheaderBackgroundImage,L=e.subheaderButton,B=e.subheaderText,G=e.title,D=e.uuid,A=(0,k.i)().height,H=(0,l.useRouter)().query.pipeline,W=N.uuid,U=h.ZP.pipelines.detail(W,{includes_outputs:!1},{revalidateOnFocus:!1}).data,F=null===U||void 0===U?void 0:U.pipeline;(0,o.useEffect)((function(){(0,S.bB)(U,C)}),[U,C]);var K=(0,o.useMemo)((function(){return n||(y?y({height:A,heightOffset:j.Mz,pipeline:F}):null)}),[n,y,A,F]),z=t||(K?50*O.iI:null),q=(0,o.useMemo)((function(){var e=[];return F?(e.push.apply(e,[{label:function(){return"Pipelines"},linkProps:{href:"/pipelines"}}]),v?(e.push({label:function(){return F.uuid},linkProps:{as:"/pipelines/".concat(W,"/triggers"),href:"/pipelines/[pipeline]/triggers"}}),e.push.apply(e,(0,i.Z)(v)),e[e.length-1].bold=!0):e.push({bold:!0,label:function(){return F.name}})):null!==U&&void 0!==U&&U.error&&e.push({bold:!0,danger:!0,label:function(){return"Error loading pipeline"}}),e}),[v,null===U||void 0===U?void 0:U.error,F,W]);return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(u.Z,{after:K,afterHidden:r,afterWidth:z,before:b,beforeWidth:g,breadcrumbs:q,navigationItems:(0,I.H)(Z,F,H),subheaderChildren:"undefined"!==typeof _&&_,title:F?G?G(F):F.name:null,uuid:D,children:[(L||B)&&(0,P.jsx)(p.Z,{mb:O.Mq,mt:O.cd,mx:O.cd,children:(0,P.jsx)(m,{background:R,backgroundImage:T,children:(0,P.jsxs)(a.Z,{alignItems:"center",children:[L,B&&(0,P.jsx)(p.Z,{ml:3}),B]})})}),w&&(0,P.jsx)(p.Z,{p:O.cd,children:(0,P.jsxs)(p.Z,{mt:O.cd,px:O.cd,children:[(0,P.jsx)(f.Z,{level:5,children:w}),(0,P.jsx)(c.Z,{light:!0,mt:O.cd,short:!0})]})}),M]}),x&&(0,P.jsx)(s.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===C||void 0===C?void 0:C(null)},children:(0,P.jsx)(d.Z,E(E({},x),{},{onClose:function(){return null===C||void 0===C?void 0:C(null)}}))})]})}},36405:function(e,n,r){r.d(n,{H:function(){return s}});var t=r(98781),i=r(
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[547],{1210:function(e,n,r){r.d(n,{Z:function(){return y}});var t=r(82394),i=r(21831),o=r(82684),l=r(47999),s=r(49894),u=r(93461),c=r(57384),d=r(41424),a=r(72454),f=r(28598);function p(e,n){var r=e.children;return(0,f.jsx)(a.HS,{ref:n,children:r})}var h=o.forwardRef(p),b=r(32063),g=r(85019),v=r(82531),O=r(66166),m=r(3055),j=r(49125),I=r(91427),S=r(24141);function k(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function P(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?k(Object(r),!0).forEach((function(n){(0,t.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var y=function(e){var n,r=e.addProjectBreadcrumbToCustomBreadcrumbs,t=e.after,p=e.afterHidden,k=e.afterWidth,y=e.afterWidthOverride,E=e.before,M=e.beforeWidth,x=e.breadcrumbs,w=e.children,Z=e.errors,N=e.headerMenuItems,C=e.headerOffset,_=e.mainContainerHeader,R=e.navigationItems,T=e.setErrors,L=e.subheaderChildren,B=e.title,G=e.uuid,D=(0,S.i)().width,A="dashboard_after_width_".concat(G),H="dashboard_before_width_".concat(G),W=(0,o.useRef)(null),U=(0,o.useState)(y?k:(0,I.U2)(A,k)),F=U[0],K=U[1],z=(0,o.useState)(!1),q=z[0],Y=z[1],J=(0,o.useState)(E?Math.max((0,I.U2)(H,M),13*j.iI):null),Q=J[0],V=J[1],X=(0,o.useState)(!1),$=X[0],ee=X[1],ne=(0,o.useState)(null)[1],re=v.ZP.projects.list({},{revalidateOnFocus:!1}).data,te=null===re||void 0===re?void 0:re.projects,ie={label:function(){var e;return null===te||void 0===te||null===(e=te[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},oe=[];x?(r&&oe.push(ie),oe.push.apply(oe,(0,i.Z)(x))):(null===te||void 0===te?void 0:te.length)>=1&&oe.push.apply(oe,[ie,{bold:!0,label:function(){return B}}]),(0,o.useEffect)((function(){null===W||void 0===W||!W.current||q||$||null===ne||void 0===ne||ne(W.current.getBoundingClientRect().width)}),[q,F,$,Q,W,ne,D]),(0,o.useEffect)((function(){q||(0,I.t8)(A,F)}),[p,q,F,A]),(0,o.useEffect)((function(){$||(0,I.t8)(H,Q)}),[$,Q,H]);var le=(0,O.Z)(k);return(0,o.useEffect)((function(){y&&le!==k&&K(k)}),[y,k,le]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(c.Z,{title:B}),(0,f.jsx)(d.Z,{breadcrumbs:oe,menuItems:N,project:null===te||void 0===te?void 0:te[0],version:null===te||void 0===te||null===(n=te[0])||void 0===n?void 0:n.version}),(0,f.jsxs)(a.Nk,{children:[0!==(null===R||void 0===R?void 0:R.length)&&(0,f.jsx)(a.lm,{showMore:!0,children:(0,f.jsx)(g.Z,{navigationItems:R,showMore:!0})}),(0,f.jsx)(u.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(b.Z,{after:t,afterHeightOffset:m.Mz,afterHidden:p,afterMousedownActive:q,afterWidth:F,before:E,beforeHeightOffset:m.Mz,beforeMousedownActive:$,beforeWidth:a.k1+(E?Q:0),headerOffset:C,hideAfterCompletely:!0,leftOffset:E?a.k1:null,mainContainerHeader:_,mainContainerRef:W,setAfterMousedownActive:Y,setAfterWidth:K,setBeforeMousedownActive:ee,setBeforeWidth:V,children:[L&&(0,f.jsx)(h,{children:L}),w]})})]}),Z&&(0,f.jsx)(l.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===T||void 0===T?void 0:T(null)},children:(0,f.jsx)(s.Z,P(P({},Z),{},{onClose:function(){return null===T||void 0===T?void 0:T(null)}}))})]})}},59920:function(e,n,r){var t;r.d(n,{M:function(){return t}}),function(e){e.BACKFILLS="backfills",e.BLOCK_RUNS="block_runs",e.EDIT="edit",e.MONITOR="monitor",e.PIPELINE_LOGS="pipeline_logs",e.PIPELINE_RUNS="pipeline_runs",e.RUNS="runs",e.SETTINGS="settings",e.SYNCS="syncs",e.TRIGGERS="triggers"}(t||(t={}))},60547:function(e,n,r){r.d(n,{Z:function(){return M}});var t=r(82394),i=r(21831),o=r(82684),l=r(34376),s=r(47999),u=r(1210),c=r(34744),d=r(49894),a=r(67971),f=r(87372),p=r(86673),h=r(82531),b=r(38626),g=r(23831),v=r(73942),O=r(49125),m=b.default.div.withConfig({displayName:"indexstyle__BannerStyle",componentId:"sc-1te3pmf-0"})(["border-radius:","px;padding:","px;"," "," ",""],v.n_,3*O.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||g.Z.shadow).small,";\n ")}),(function(e){return e.background&&"\n background: ".concat(e.background,";\n ")}),(function(e){return e.backgroundImage&&'\n background-image: url("'.concat(e.backgroundImage,'");\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n ')})),j=r(3055),I=r(36405),S=r(96510),k=r(24141),P=r(28598);function y(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function E(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?y(Object(r),!0).forEach((function(n){(0,t.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var M=function(e){var n=e.after,r=e.afterHidden,t=e.afterWidth,b=e.before,g=e.beforeWidth,v=e.breadcrumbs,y=e.buildSidekick,M=e.children,x=e.errors,w=e.headline,Z=e.pageName,N=e.pipeline,C=e.setErrors,_=e.subheader,R=e.subheaderBackground,T=e.subheaderBackgroundImage,L=e.subheaderButton,B=e.subheaderText,G=e.title,D=e.uuid,A=(0,k.i)().height,H=(0,l.useRouter)().query.pipeline,W=N.uuid,U=h.ZP.pipelines.detail(W,{includes_outputs:!1},{revalidateOnFocus:!1}).data,F=null===U||void 0===U?void 0:U.pipeline;(0,o.useEffect)((function(){(0,S.bB)(U,C)}),[U,C]);var K=(0,o.useMemo)((function(){return n||(y?y({height:A,heightOffset:j.Mz,pipeline:F}):null)}),[n,y,A,F]),z=t||(K?50*O.iI:null),q=(0,o.useMemo)((function(){var e=[];return F?(e.push.apply(e,[{label:function(){return"Pipelines"},linkProps:{href:"/pipelines"}}]),v?(e.push({label:function(){return F.uuid},linkProps:{as:"/pipelines/".concat(W,"/triggers"),href:"/pipelines/[pipeline]/triggers"}}),e.push.apply(e,(0,i.Z)(v)),e[e.length-1].bold=!0):e.push({bold:!0,label:function(){return F.name}})):null!==U&&void 0!==U&&U.error&&e.push({bold:!0,danger:!0,label:function(){return"Error loading pipeline"}}),e}),[v,null===U||void 0===U?void 0:U.error,F,W]);return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(u.Z,{after:K,afterHidden:r,afterWidth:z,before:b,beforeWidth:g,breadcrumbs:q,navigationItems:(0,I.H)(Z,F,H),subheaderChildren:"undefined"!==typeof _&&_,title:F?G?G(F):F.name:null,uuid:D,children:[(L||B)&&(0,P.jsx)(p.Z,{mb:O.Mq,mt:O.cd,mx:O.cd,children:(0,P.jsx)(m,{background:R,backgroundImage:T,children:(0,P.jsxs)(a.Z,{alignItems:"center",children:[L,B&&(0,P.jsx)(p.Z,{ml:3}),B]})})}),w&&(0,P.jsx)(p.Z,{p:O.cd,children:(0,P.jsxs)(p.Z,{mt:O.cd,px:O.cd,children:[(0,P.jsx)(f.Z,{level:5,children:w}),(0,P.jsx)(c.Z,{light:!0,mt:O.cd,short:!0})]})}),M]}),x&&(0,P.jsx)(s.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===C||void 0===C?void 0:C(null)},children:(0,P.jsx)(d.Z,E(E({},x),{},{onClose:function(){return null===C||void 0===C?void 0:C(null)}}))})]})}},36405:function(e,n,r){r.d(n,{H:function(){return s}});var t=r(98781),i=r(22341),o=r(59920),l=r(9736);function s(e,n,r){var s=(n||{}).uuid||r,u=[{Icon:i.Bf,id:o.M.TRIGGERS,isSelected:function(){return o.M.TRIGGERS===e},label:function(){return"Triggers"},linkProps:{as:"/pipelines/".concat(s,"/triggers"),href:"/pipelines/[pipeline]/triggers"}},{Icon:i.Pf,id:o.M.RUNS,isSelected:function(){return o.M.RUNS===e},label:function(){return"Runs"},linkProps:{as:"/pipelines/".concat(s,"/runs"),href:"/pipelines/[pipeline]/runs"}},{Icon:i.dE,id:o.M.BACKFILLS,isSelected:function(){return o.M.BACKFILLS===e},label:function(){return"Backfills"},linkProps:{as:"/pipelines/".concat(s,"/backfills"),href:"/pipelines/[pipeline]/backfills"}},{Icon:i.UL,id:o.M.PIPELINE_LOGS,isSelected:function(){return o.M.PIPELINE_LOGS===e},label:function(){return"Logs"},linkProps:{as:"/pipelines/".concat(s,"/logs"),href:"/pipelines/[pipeline]/logs"}},{Icon:i.ug,id:o.M.MONITOR,isSelected:function(){return o.M.MONITOR===e},label:function(){return"Monitor"},linkProps:{as:"/pipelines/".concat(s,"/monitors"),href:"/pipelines/[pipeline]/monitors"}}];return t.qL.INTEGRATION===(null===n||void 0===n?void 0:n.type)&&u.unshift({Icon:i.Nt,id:o.M.SYNCS,isSelected:function(){return o.M.SYNCS===e},label:function(){return"Syncs"},linkProps:{as:"/pipelines/".concat(s,"/syncs"),href:"/pipelines/[pipeline]/syncs"}}),(0,l.Ct)()||(u.unshift({Icon:i.EK,disabled:!s,id:o.M.EDIT,isSelected:function(){return o.M.EDIT===e},label:function(){return"Edit pipeline"},linkProps:{as:"/pipelines/".concat(s,"/edit"),href:"/pipelines/[pipeline]/edit"}}),u.push({Icon:i.Zr,id:o.M.SETTINGS,isSelected:function(){return o.M.SETTINGS===e},label:function(){return"Pipeline settings"},linkProps:{as:"/pipelines/".concat(s,"/settings"),href:"/pipelines/[pipeline]/settings"}})),u}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
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,B=n.setSelectedFile,U=n.theme,z=n.timeout,q=n.uncollapsed,W=n.useRootFolder,Y=u.children,G=u.disabled,$=u.name,H=u.parent;$||t||(u.name=Z);var X,Q=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(Q,J):G||"__init__.py"===$||!(null===$||void 0===$||!$.match(/^\./))||!$.match(f.d2)&&!Y,ee=c?c(Q,J):G||"__init__.py"===$||!(null===$||void 0===$||!$.match(/^\./))&&!J||!$.match(f.d2)&&!Y,ne="".concat(s,"/").concat($),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&&$===f.oy?ie=h.B_:$===f.PF?ie=h.er:J?ie=h.gt:!$&&t&&(ie=h.mH),J&&a.$W.includes((0,x.C5)($))&&(0,x.C5)($)!==a.tf.CHART&&(X=(0,y.qn)((0,x.C5)($),{theme:U}).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:B,theme:U,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,B,U,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===U||void 0===U||null===(o=U.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,U,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(Q):re((function(e){return(0,j.t8)(ne,!e),!e})),null===F||void 0===F||F(Q);else if(O)O(Q);else if(t)null===P||void 0===P||P(t.uuid,t.type,(0,C.jN)(u));else if($.match(f.xF))null===_||void 0===_||_(Q);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),B(u))},onMouseDown:function(e){var n,t=u?(0,C.lr)(u):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),B(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:[!X&&(0,w.jsx)(ie,{disabled:K,size:m.ZG}),X&&(0,w.jsx)(d.Z,{color:X,size:m.ZG,square:!0})]}),(0,w.jsx)(v.ZP,{color:X,default:!X&&!ee,disabled:ee,monospace:!0,small:!0,children:$})]}),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.Z,{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.Z,{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})})]})},B=t(98781),U=t(62609),z=t(55106),q=t(66176),W=t(87815),Y=t(23831),G=t(73942),$=(b.iI,u.default.div.withConfig({displayName:"indexstyle__DropZoneStyle",componentId:"sc-1g3zz7z-0"})(["border-radius:","px;padding:","px;max-width:","px;min-width:","px;",""],G.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 X=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.Z,{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)($,{children:(0,w.jsxs)(v.ZP,{center:!0,children:[u&&"Drop to upload",!u&&"Click or drop files and folders to upload"]})})})]})},Q=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],G=(0,l.useState)(null),$=G[0],H=G[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)(U.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)===B.qL.INTEGRATION,a=(0,V.TU)(ne(ne({},W),{},{path:(0,C.jN)(W)}),te,O);null===t||void 0===t||t(a,(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 $&&(0,C.lr)($)}),[$]),Ce=(0,l.useMemo)((function(){return W&&(0,C.lr)(W)}),[W]),ke=(0,l.useMemo)((function(){return $&&"undefined"!==typeof(null===$||void 0===$?void 0:$.children)&&$}),[$]),xe=(0,J.dd)((function(){return(0,w.jsx)(X,{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&&!$&&!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"}]):$&&(v.push.apply(v,[{label:function(){return"Rename file"},onClick:function(){Pe({file:$})},uuid:"rename_file"},{label:function(){return"Move file"},onClick:function(){Pe({file:$,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)($);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:Q.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,$,ke]);return(0,w.jsxs)(m.Nk,{ref:n,children:[je,(ye||$||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:Q.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}});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=u(e,c).split(o.sep);if(!a)return null;if(1===a.length)(a=null===e||void 0===e||null===(t=e.path)||void 0===t?void 0:t.split(o.sep))&&(n=a[0]===r.tf.CUSTOM?a[0]:(0,l.C5)(a[0]||""));else if(a[1]===r.tf.CUSTOM)n=a[1];else{var s=a[1];n=r.tf.DBT===s?s:(0,l.C5)(s||"")}if(!a||r.tf.DBT===n)return null;var d="";d=a.length>=3?a.slice(2,a.length).join(o.sep):a[a.length-1];var f=["\\.".concat(i.Lu.PY),"\\.".concat(i.Lu.R),"\\.".concat(i.Lu.SQL),"\\.".concat(i.Lu.YAML),"\\.".concat(i.Lu.YML)].join("|"),p=new RegExp("".concat(f,"$"));if(r.$W.concat(r.tf.DBT).includes(n)&&d.match(p)){var v=d.lastIndexOf("."),h=d.slice(v+1);return{language:i.nB[h],type:n,uuid:d.slice(0,v)}}}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}))}},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})}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7815],{45838:function(n,e,t){t.d(e,{GZ:function(){return s},Vq:function(){return d},cE:function(){return p},cl:function(){return l},kA:function(){return a}});var o=t(38626),r=t(23831),i=t(37391),c=t(49125),l=o.default.div.withConfig({displayName:"indexstyle__TableContainerStyle",componentId:"sc-1wzfyed-0"})(["position:relative;overflow:auto;"," "," "," "," ",""],i.w5,(function(n){return n.includePadding&&"\n padding: ".concat(2*c.iI,"px;\n ")}),(function(n){return n.maxHeight&&"\n max-height: ".concat(n.maxHeight,";\n ")}),(function(n){return n.minHeight&&"\n min-height: ".concat(n.minHeight,"px;\n ")}),(function(n){return n.overflowVisible&&"\n overflow: visible;\n "})),a=o.default.table.withConfig({displayName:"indexstyle__TableStyle",componentId:"sc-1wzfyed-1"})(["contain:size;width:100%;",""],(function(n){return(n.columnBorders||n.borderCollapseSeparate)&&"\n border-collapse: separate;\n "})),d=o.default.tr.withConfig({displayName:"indexstyle__TableRowStyle",componentId:"sc-1wzfyed-2"})([""," ",""],(function(n){return n.highlightOnHover&&"\n &:hover {\n background: ".concat((n.theme.interactive||r.Z.interactive).rowHoverBackground,";\n }\n ")}),(function(n){return!n.noHover&&"\n &:hover {\n background: ".concat((n.theme.interactive||r.Z.interactive).rowHoverBackground,";\n cursor: pointer;\n }\n ")})),u=(0,o.css)(["text-overflow:ellipsis;white-space:nowrap;"," "," "," "," "," ",""],(function(n){return!n.alignTop&&"\n vertical-align: middle;\n "}),(function(n){return n.alignTop&&"\n vertical-align: top;\n "}),(function(n){return!n.noBorder&&"\n border-bottom: 1px solid ".concat((n.theme.borders||r.Z.borders).light,";\n ")}),(function(n){return n.compact&&"\n padding: ".concat(c.iI/2,"px ").concat(c.iI,"px;\n ")}),(function(n){return!n.compact&&"\n padding: ".concat(c.iI,"px ").concat(2*c.iI,"px;\n ")}),(function(n){return n.maxWidth&&"\n max-width: ".concat(n.maxWidth,";\n ")})),s=o.default.th.withConfig({displayName:"indexstyle__TableHeadStyle",componentId:"sc-1wzfyed-3"})([""," "," "," ",""],u,(function(n){return n.columnBorders&&"\n border: 1px solid ".concat((n.theme.borders||r.Z.borders).light,";\n border-right: none;\n ")}),(function(n){return n.columnBorders&&n.last&&"\n border-right: 1px solid ".concat((n.theme.borders||r.Z.borders).light,";\n ")}),(function(n){return n.sticky&&"\n background-color: ".concat((n.theme||r.Z).background.panel,";\n border-bottom: 1px solid ").concat((n.theme.borders||r.Z.borders).medium,";\n z-index: 2;\n position: sticky;\n top: 0;\n\n &:first-child {\n left: 0;\n z-index: 2;\n }\n ")})),p=o.default.td.withConfig({displayName:"indexstyle__TableDataStyle",componentId:"sc-1wzfyed-4"})([""," "," "," "," "," "," ",""],u,(function(n){return n.rowVerticalPadding&&"\n padding-top: ".concat(n.rowVerticalPadding,"px;\n padding-bottom: ").concat(n.rowVerticalPadding,"px;\n ")}),(function(n){return n.columnBorders&&"\n border-left: 1px solid ".concat((n.theme.borders||r.Z.borders).light,";\n ")}),(function(n){return n.columnBorders&&n.last&&"\n border-right: 1px solid ".concat((n.theme.borders||r.Z.borders).light,";\n ")}),(function(n){return n.stickyFirstColumn&&"\n background-color: ".concat((n.theme||r.Z).background.panel,";\n z-index: 1;\n position: sticky;\n left: 0;\n ")}),(function(n){return n.selected&&"\n background-color: ".concat((n.theme.interactive||r.Z.interactive).activeBorder,";\n ")}),(function(n){return n.wrapColumns&&"\n white-space: break-spaces;\n "}))},87815:function(n,e,t){var o=t(82394),r=t(12691),i=t.n(r),c=t(82684),l=t(44182),a=t(25880),d=t(67971),u=t(62084),s=t(10919),p=t(86673),h=t(19711),f=t(46261),g=t(45838),v=t(49125),b=t(28598);function m(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 x(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 w=20*v.iI;function y(n,e){var t=n.alignTop,o=n.borderCollapseSeparate,r=n.buildLinkProps,m=n.buildRowProps,y=n.columnBorders,j=n.columnFlex,k=n.columnMaxWidth,C=n.columns,O=void 0===C?[]:C,P=n.compact,Z=n.highlightRowOnHover,I=n.isSelectedRow,H=n.noBorder,_=n.noHeader,S=n.onClickRow,B=n.onDoubleClickRow,E=n.onRightClickRow,D=n.renderRightClickMenu,M=n.renderRightClickMenuItems,R=n.rowGroupHeaders,N=n.rowVerticalPadding,A=n.rows,T=n.rowsGroupedByIndex,V=n.stickyFirstColumn,z=n.stickyHeader,F=n.uuid,X=n.wrapColumns,W=(0,c.useState)(null),G=W[0],q=W[1],L=(0,c.useState)(null),K=L[0],U=L[1],Y=(0,c.useMemo)((function(){return j.reduce((function(n,e){return n+(e||0)}),0)}),[j]),J=(0,c.useCallback)((function(n){if(j[n]){var e=Math.round(j[n]/Y*100);return"".concat(e,"%")}return null}),[j,Y]),Q=(0,c.useCallback)((function(){return q(null)}),[q]);(0,c.useEffect)((function(){var n;return null===(n=document)||void 0===n||n.addEventListener("click",Q),function(){var n;null===(n=document)||void 0===n||n.removeEventListener("click",Q)}}),[Q]);var $=(0,c.useMemo)((function(){return D||M}),[D,M]),nn=(0,c.useMemo)((function(){var n;if(!$)return null;var t=(null===e||void 0===e||null===(n=e.current)||void 0===n?void 0:n.getBoundingClientRect())||{},o=t.x,r=t.width,i=G||{},c=i.x,l=void 0===c?0:c,a=i.y,d=void 0===a?0:a,s=l;return l+w>=o+r&&(s=o+r-(w+v.iI)),s<0&&(s=0),(0,b.jsxs)("div",{style:{left:s,position:"fixed",top:d+v.iI/2,zIndex:100},children:[null===D||void 0===D?void 0:D(K),M&&(0,b.jsx)(u.Z,{items:M(K)||[],open:!0,parentRef:void 0,uuid:"FileBrowser/ContextMenu",width:w})]})}),[G,K,$,e,D,M]),en=(0,c.useMemo)((function(){return null===A||void 0===A?void 0:A.map((function(n,e){var o,l=null===r||void 0===r?void 0:r(e),a=(null===m||void 0===m?void 0:m(e))||{renderCell:null,renderRow:null},d=a.renderCell,u=a.renderRow,p=[];if(n.forEach((function(o,r){var i;d&&(i=d(o,r)),i||(i=(0,b.jsx)(g.cE,{alignTop:t,columnBorders:y,compact:P,last:r===n.length-1,maxWidth:null===k||void 0===k?void 0:k(r),noBorder:H,rowVerticalPadding:N,selected:null===I||void 0===I?void 0:I(e),stickyFirstColumn:V&&0===r,width:J(r),wrapColumns:X,children:o},"".concat(F,"-row-").concat(e,"-cell-").concat(r))),p.push(i)})),u)o=u(p);else{o=(0,b.jsx)(g.Vq,{highlightOnHover:Z,noHover:!(l||S),onClick:S?function(n){return function(n,e){1===(null===e||void 0===e?void 0:e.detail)?S(n):B&&2===(null===e||void 0===e?void 0:e.detail)&&B(n)}(e,n)}:null,onContextMenu:$?function(n){n.preventDefault(),q({x:n.pageX,y:n.pageY}),U(e),null===E||void 0===E||E(e,n)}:null,children:p},"".concat(F,"-row-").concat(e))}return l?(0,c.createElement)(i(),x(x({},l),{},{key:"".concat(F,"-row-link-").concat(e),passHref:!0}),(0,b.jsx)(s.Z,{fullWidth:!0,noHoverUnderline:!0,noOutline:!0,style:{display:"table-row-group"},verticalAlignContent:!0,children:o})):o}))}),[t,r,m,J,y,k,P,$,Z,I,H,S,B,E,N,A,U,V,F,X]),tn=(0,c.useMemo)((function(){return(0,b.jsx)(g.Vq,{noHover:!0,children:null===O||void 0===O?void 0:O.map((function(n,e){return(0,b.jsx)(g.GZ,{columnBorders:y,compact:P,last:e===O.length-1,noBorder:H,sticky:z,children:(0,b.jsxs)(d.Z,{alignItems:"center",justifyContent:n.center?"center":"flex-start",children:[(0,b.jsx)(h.ZP,{bold:!0,leftAligned:!0,monospace:!0,muted:!0,children:n.label?n.label():n.uuid}),n.tooltipMessage&&(0,b.jsx)(p.Z,{ml:"4px",children:(0,b.jsx)(f.Z,{appearBefore:!0,label:(0,b.jsx)(h.ZP,{leftAligned:!0,children:n.tooltipMessage}),lightBackground:!0,primary:!0})})]})},"".concat(F,"-col-").concat(n.uuid,"-").concat(e))}))})}),[y,O,P,H,z,F]),on=(0,c.useMemo)((function(){return(null===R||void 0===R?void 0:R.length)>=1&&(null===T||void 0===T?void 0:T.length)>=1?null===T||void 0===T?void 0:T.reduce((function(n,e,t){var r=null===e||void 0===e?void 0:e.map((function(n){return null===en||void 0===en?void 0:en[n]}));if((null===r||void 0===r?void 0:r.length)>=1){var i=R[t];n.push((0,b.jsx)(p.Z,{mt:t>=1?2:0,children:(0,b.jsx)(l.Z,{visibleMapping:{0:!0},children:(0,b.jsx)(a.Z,{noPaddingContent:!0,title:i,children:(0,b.jsx)(g.kA,{borderCollapseSeparate:o,columnBorders:y,children:(0,b.jsxs)(b.Fragment,{children:[(null===O||void 0===O?void 0:O.length)>=1&&!_&&tn,r]})})})})},"table-group-".concat(t)))}return n}),[]):(0,b.jsxs)(g.kA,{borderCollapseSeparate:o,columnBorders:y,children:[(null===O||void 0===O?void 0:O.length)>=1&&!_&&tn,en]})}),[o,y,null===O||void 0===O?void 0:O.length,tn,_,en,R,T]);return(0,b.jsxs)("div",{style:{position:"relative"},children:[on,$&&G&&nn]})}e.Z=c.forwardRef(y)},25880:function(n,e,t){var o=t(82394),r=t(26304),i=t(82684),c=t(38626),l=t(16910),a=t(93461),d=t(67971),u=t(86673),s=t(19711),p=t(23831),h=t(10503),f=t(73942),g=t(37391),v=t(10919),b=t(49125),m=t(90880),x=t(28598),w=["beforeTitleElement","children","contentOverflowVisible","first","hideScrollbar","highlighted","last","maxHeight","noBackground","noPaddingContent","onClick","onEntered","onExited","singlePanel","smallTitle","title","titleXPadding","visible","visibleCount","visibleHighlightDisabled"];function y(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?y(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):y(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var k=c.default.div.withConfig({displayName:"AccordionPanel__AccordionPanelStyle",componentId:"sc-sf242a-0"})([".accordion-panel-chevron-down-exit-done{transform:rotate(0deg);transition:all 200ms;}.accordion-panel-chevron-down-enter-active{transform:rotate(180deg);transition:all 200ms;}.accordion-panel-chevron-down-enter-done,.accordion-panel-chevron-down-enter-done-visible{transform:rotate(180deg);transition:all 300ms;}.accordion-panel-chevron-down-exit{transform:rotate(0deg);transition:all 300ms;}.accordion-panel-content-enter{display:block;max-height:0px;overflow:hidden;transition:max-height 400ms ease-in-out;}.accordion-panel-content-enter-active{max-height:100vh;","}.accordion-panel-content-enter-done{display:block;}.accordion-panel-content-exit{display:block;max-height:100vh;"," overflow:hidden;}.accordion-panel-content-exit-active{max-height:0px;transition:max-height 300ms cubic-bezier(0,1,0,1);}.accordion-panel-content-exit-done{display:none;}"],(function(n){return n.maxHeight&&"\n max-height: ".concat(n.maxHeight,"px;\n ")}),(function(n){return n.maxHeight&&"\n max-height: ".concat(n.maxHeight,"px;\n ")})),C=c.default.a.withConfig({displayName:"AccordionPanel__TitleStyle",componentId:"sc-sf242a-1"})([""," display:block;position:relative;padding:","px ","px;z-index:1;"," "," "," "," "," ",""],v.R,2*b.iI,2*b.iI,(function(n){return"\n &:hover,\n &:focus {\n outline: none;\n }\n ".concat((0,m.Kl)(n),"\n\n background-color: ").concat((n.theme.background||p.Z.background).table,";\n\n &:hover {\n background-color: ").concat((n.theme||p.Z).background.page,";\n }\n\n &:active {\n background-color: ").concat((n.theme||p.Z).background.page,";\n }\n ")}),(function(n){return n.visible&&"\n border-bottom: 1px solid ".concat((n.theme||p.Z).borders.medium2,";\n ")}),(function(n){return!n.first&&n.visible&&"\n border-top: 1px solid ".concat((n.theme||p.Z).borders.medium2,";\n ")}),(function(n){return n.first&&"\n border-top-left-radius: ".concat(f.n_,"px;\n border-top-right-radius: ").concat(f.n_,"px;\n ")}),(function(n){return(n.last||n.singlePanel)&&!n.visible&&"\n border-bottom-left-radius: ".concat(f.n_,"px;\n border-bottom-right-radius: ").concat(f.n_,"px;\n ")}),(function(n){return n.titleXPadding&&"\n padding-left: ".concat(n.titleXPadding,"px;\n padding-right: ").concat(n.titleXPadding,"px;\n ")})),O=c.default.div.withConfig({displayName:"AccordionPanel__ContentStyle",componentId:"sc-sf242a-2"})(["padding-left:","px;padding-right:","px;"," "," "," "," "," "," ",""],2*b.iI,2*b.iI,g.w5,(function(n){return n.hideScrollbar&&"\n ::-webkit-scrollbar {\n display: none;\n }\n "}),(function(n){return!n.visible&&"\n display: none;\n "}),(function(n){return!n.contentOverflowVisible&&"\n overflow-y: auto;\n "}),(function(n){return n.contentOverflowVisible&&"\n overflow-y: visible;\n "}),(function(n){return n.maxHeight&&"\n max-height: ".concat(n.maxHeight,"px;\n ")}),(function(n){return n.noPaddingContent&&"\n padding: 0;\n "})),P=c.default.div.withConfig({displayName:"AccordionPanel__ContentInnerStyle",componentId:"sc-sf242a-3"})(["padding-bottom:","px;padding-top:","px;",""],2*b.iI,2*b.iI,(function(n){return n.noPaddingContent&&"\n padding: 0;\n "})),Z=function(n,e){var t=n.beforeTitleElement,o=n.children,i=n.contentOverflowVisible,c=n.first,p=n.hideScrollbar,f=n.highlighted,g=n.last,v=n.maxHeight,m=n.noBackground,y=n.noPaddingContent,Z=n.onClick,I=n.onEntered,H=n.onExited,_=n.singlePanel,S=n.smallTitle,B=n.title,E=n.titleXPadding,D=n.visible,M=n.visibleCount,R=n.visibleHighlightDisabled,N=(0,r.Z)(n,w);return(0,x.jsxs)(k,j(j({},N),{},{maxHeight:v,children:[(0,x.jsx)(C,{first:c,href:"#",last:g,noHoverUnderline:!0,onClick:function(n){n.preventDefault(),Z&&Z(n)},onKeyPress:function(n){" "===n.key&&Z&&Z(n)},singlePanel:_,titleXPadding:E,visible:D&&!R,children:(0,x.jsxs)(d.Z,{alignItems:"center",children:[(0,x.jsx)(u.Z,{mr:1,children:(0,x.jsxs)(d.Z,{alignItems:"center",children:[t,t&&(0,x.jsx)(u.Z,{ml:1}),"string"!==typeof B&&B,"string"===typeof B&&(0,x.jsx)(s.ZP,{bold:!0,default:!D,large:!S,wind:f,children:B})]})}),(0,x.jsx)(l.Z,{classNames:"accordion-panel-chevron-down",in:D,timeout:400,children:(0,x.jsx)(a.Z,{className:D&&0===M&&"accordion-panel-chevron-down-enter-done-visible",children:(0,x.jsx)(h._M,{default:!0,size:2*b.iI})})})]})}),(0,x.jsx)(l.Z,{classNames:"accordion-panel-content",in:D,onEntered:function(n){return I&&I(n)},onExited:function(n){return H&&H(n)},timeout:300,children:(0,x.jsx)(O,{contentOverflowVisible:i,hideScrollbar:p,maxHeight:v,noBackground:m,noPaddingContent:y,visible:D,children:(0,x.jsx)(P,{noPaddingContent:y,ref:e,children:o})})})]}))};e.Z=i.forwardRef(Z)},44182:function(n,e,t){var o=t(82394),r=t(26304),i=t(82684),c=t(38626),l=(t(25880),t(34744)),a=t(23831),d=t(73942),u=t(28598),s=["activeItemIndex","children","onClick","showDividers","visibleMapping","visibleMappingForced"];function p(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 h(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,o.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 f=c.default.div.withConfig({displayName:"Accordion__AccordionStyle",componentId:"sc-1xr4nou-0"})(["border-radius:","px;overflow:hidden;border-width:","px;border-style:",";"," "," ",""],d.n_,d.YF,d.M8,(function(n){return"\n background-color: ".concat((n.theme.background||a.Z.background).content,";\n box-shadow: ").concat((n.theme||a.Z).shadow.frame,";\n ")}),(function(n){return!n.highlighted&&"\n border-color: ".concat((n.theme||a.Z).background.panel,";\n ")}),(function(n){return n.highlighted&&"\n border-color: ".concat((n.theme||a.Z).brand.wind400,";\n ")})),g=c.default.div.withConfig({displayName:"Accordion__AccordionPanelContainerStyle",componentId:"sc-1xr4nou-1"})([""]);e.Z=function(n){var e=n.activeItemIndex,t=n.children,c=n.onClick,a=n.showDividers,d=n.visibleMapping,p=n.visibleMappingForced,v=(0,r.Z)(n,s),b=(0,i.useState)(d||{}),m=b[0],x=b[1],w=(0,i.useState)({}),y=w[0],j=w[1],k=h(h({},m),p);return(0,u.jsx)(f,h(h({},v),{},{children:i.Children.map(t,(function(n,r){var d=i.Children.count(t),s=r===d-1,p=k[r];return(0,u.jsxs)("div",{children:[(0,u.jsx)(g,{index:r,showDividers:a,children:i.cloneElement(n,h(h({},v),{},{first:0===r,last:s,onClick:function(){var n;j(h(h({},y),{},(0,o.Z)({},r,y[r]?y[r]+1:1))),n=h(h({},k),{},(0,o.Z)({},r,!p)),x(n),c&&c(n)},singlePanel:1===d,visible:p,visibleCount:y[r]||0,visibleHighlightDisabled:"undefined"!==typeof e&&r!==e}))}),a&&(0,u.jsx)(l.Z,{})]},r)}))}))}}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7815],{45838:function(n,e,t){t.d(e,{GZ:function(){return s},Vq:function(){return d},cE:function(){return p},cl:function(){return l},kA:function(){return a}});var o=t(38626),r=t(23831),i=t(37391),c=t(49125),l=o.default.div.withConfig({displayName:"indexstyle__TableContainerStyle",componentId:"sc-1wzfyed-0"})(["position:relative;overflow:auto;"," "," "," "," ",""],i.w5,(function(n){return n.includePadding&&"\n padding: ".concat(2*c.iI,"px;\n ")}),(function(n){return n.maxHeight&&"\n max-height: ".concat(n.maxHeight,";\n ")}),(function(n){return n.minHeight&&"\n min-height: ".concat(n.minHeight,"px;\n ")}),(function(n){return n.overflowVisible&&"\n overflow: visible;\n "})),a=o.default.table.withConfig({displayName:"indexstyle__TableStyle",componentId:"sc-1wzfyed-1"})(["contain:size;width:100%;",""],(function(n){return(n.columnBorders||n.borderCollapseSeparate)&&"\n border-collapse: separate;\n "})),d=o.default.tr.withConfig({displayName:"indexstyle__TableRowStyle",componentId:"sc-1wzfyed-2"})([""," ",""],(function(n){return n.highlightOnHover&&"\n &:hover {\n background: ".concat((n.theme.interactive||r.Z.interactive).rowHoverBackground,";\n }\n ")}),(function(n){return!n.noHover&&"\n &:hover {\n background: ".concat((n.theme.interactive||r.Z.interactive).rowHoverBackground,";\n cursor: pointer;\n }\n ")})),u=(0,o.css)(["text-overflow:ellipsis;white-space:nowrap;"," "," "," "," "," ",""],(function(n){return!n.alignTop&&"\n vertical-align: middle;\n "}),(function(n){return n.alignTop&&"\n vertical-align: top;\n "}),(function(n){return!n.noBorder&&"\n border-bottom: 1px solid ".concat((n.theme.borders||r.Z.borders).light,";\n ")}),(function(n){return n.compact&&"\n padding: ".concat(c.iI/2,"px ").concat(c.iI,"px;\n ")}),(function(n){return!n.compact&&"\n padding: ".concat(c.iI,"px ").concat(2*c.iI,"px;\n ")}),(function(n){return n.maxWidth&&"\n max-width: ".concat(n.maxWidth,";\n ")})),s=o.default.th.withConfig({displayName:"indexstyle__TableHeadStyle",componentId:"sc-1wzfyed-3"})([""," "," "," ",""],u,(function(n){return n.columnBorders&&"\n border: 1px solid ".concat((n.theme.borders||r.Z.borders).light,";\n border-right: none;\n ")}),(function(n){return n.columnBorders&&n.last&&"\n border-right: 1px solid ".concat((n.theme.borders||r.Z.borders).light,";\n ")}),(function(n){return n.sticky&&"\n background-color: ".concat((n.theme||r.Z).background.panel,";\n border-bottom: 1px solid ").concat((n.theme.borders||r.Z.borders).medium,";\n z-index: 2;\n position: sticky;\n top: 0;\n\n &:first-child {\n left: 0;\n z-index: 2;\n }\n ")})),p=o.default.td.withConfig({displayName:"indexstyle__TableDataStyle",componentId:"sc-1wzfyed-4"})([""," "," "," "," "," "," ",""],u,(function(n){return n.rowVerticalPadding&&"\n padding-top: ".concat(n.rowVerticalPadding,"px;\n padding-bottom: ").concat(n.rowVerticalPadding,"px;\n ")}),(function(n){return n.columnBorders&&"\n border-left: 1px solid ".concat((n.theme.borders||r.Z.borders).light,";\n ")}),(function(n){return n.columnBorders&&n.last&&"\n border-right: 1px solid ".concat((n.theme.borders||r.Z.borders).light,";\n ")}),(function(n){return n.stickyFirstColumn&&"\n background-color: ".concat((n.theme||r.Z).background.panel,";\n z-index: 1;\n position: sticky;\n left: 0;\n ")}),(function(n){return n.selected&&"\n background-color: ".concat((n.theme.interactive||r.Z.interactive).activeBorder,";\n ")}),(function(n){return n.wrapColumns&&"\n white-space: break-spaces;\n "}))},87815:function(n,e,t){var o=t(82394),r=t(12691),i=t.n(r),c=t(82684),l=t(44182),a=t(25880),d=t(67971),u=t(62084),s=t(10919),p=t(86673),h=t(19711),f=t(46261),g=t(45838),v=t(49125),b=t(28598);function m(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 x(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 w=20*v.iI;function y(n,e){var t=n.alignTop,o=n.borderCollapseSeparate,r=n.buildLinkProps,m=n.buildRowProps,y=n.columnBorders,j=n.columnFlex,k=n.columnMaxWidth,C=n.columns,O=void 0===C?[]:C,P=n.compact,Z=n.highlightRowOnHover,I=n.isSelectedRow,H=n.noBorder,_=n.noHeader,S=n.onClickRow,B=n.onDoubleClickRow,E=n.onRightClickRow,D=n.renderRightClickMenu,M=n.renderRightClickMenuItems,R=n.rowGroupHeaders,N=n.rowVerticalPadding,A=n.rows,T=n.rowsGroupedByIndex,V=n.stickyFirstColumn,z=n.stickyHeader,F=n.uuid,X=n.wrapColumns,W=(0,c.useState)(null),G=W[0],q=W[1],L=(0,c.useState)(null),K=L[0],U=L[1],Y=(0,c.useMemo)((function(){return j.reduce((function(n,e){return n+(e||0)}),0)}),[j]),J=(0,c.useCallback)((function(n){if(j[n]){var e=Math.round(j[n]/Y*100);return"".concat(e,"%")}return null}),[j,Y]),Q=(0,c.useCallback)((function(){return q(null)}),[q]);(0,c.useEffect)((function(){var n;return null===(n=document)||void 0===n||n.addEventListener("click",Q),function(){var n;null===(n=document)||void 0===n||n.removeEventListener("click",Q)}}),[Q]);var $=(0,c.useMemo)((function(){return D||M}),[D,M]),nn=(0,c.useMemo)((function(){var n;if(!$)return null;var t=(null===e||void 0===e||null===(n=e.current)||void 0===n?void 0:n.getBoundingClientRect())||{},o=t.x,r=t.width,i=G||{},c=i.x,l=void 0===c?0:c,a=i.y,d=void 0===a?0:a,s=l;return l+w>=o+r&&(s=o+r-(w+v.iI)),s<0&&(s=0),(0,b.jsxs)("div",{style:{left:s,position:"fixed",top:d+v.iI/2,zIndex:100},children:[null===D||void 0===D?void 0:D(K),M&&(0,b.jsx)(u.Z,{items:M(K)||[],open:!0,parentRef:void 0,uuid:"FileBrowser/ContextMenu",width:w})]})}),[G,K,$,e,D,M]),en=(0,c.useMemo)((function(){return null===A||void 0===A?void 0:A.map((function(n,e){var o,l=null===r||void 0===r?void 0:r(e),a=(null===m||void 0===m?void 0:m(e))||{renderCell:null,renderRow:null},d=a.renderCell,u=a.renderRow,p=[];if(n.forEach((function(o,r){var i;d&&(i=d(o,r)),i||(i=(0,b.jsx)(g.cE,{alignTop:t,columnBorders:y,compact:P,last:r===n.length-1,maxWidth:null===k||void 0===k?void 0:k(r),noBorder:H,rowVerticalPadding:N,selected:null===I||void 0===I?void 0:I(e),stickyFirstColumn:V&&0===r,width:J(r),wrapColumns:X,children:o},"".concat(F,"-row-").concat(e,"-cell-").concat(r))),p.push(i)})),u)o=u(p);else{o=(0,b.jsx)(g.Vq,{highlightOnHover:Z,noHover:!(l||S),onClick:S?function(n){return function(n,e){1===(null===e||void 0===e?void 0:e.detail)?S(n):B&&2===(null===e||void 0===e?void 0:e.detail)&&B(n)}(e,n)}:null,onContextMenu:$?function(n){n.preventDefault(),q({x:n.pageX,y:n.pageY}),U(e),null===E||void 0===E||E(e,n)}:null,children:p},"".concat(F,"-row-").concat(e))}return l?(0,c.createElement)(i(),x(x({},l),{},{key:"".concat(F,"-row-link-").concat(e),passHref:!0}),(0,b.jsx)(s.Z,{fullWidth:!0,noHoverUnderline:!0,noOutline:!0,style:{display:"table-row-group"},verticalAlignContent:!0,children:o})):o}))}),[t,r,m,J,y,k,P,$,Z,I,H,S,B,E,N,A,U,V,F,X]),tn=(0,c.useMemo)((function(){return(0,b.jsx)(g.Vq,{noHover:!0,children:null===O||void 0===O?void 0:O.map((function(n,e){return(0,b.jsx)(g.GZ,{columnBorders:y,compact:P,last:e===O.length-1,noBorder:H,sticky:z,children:(0,b.jsxs)(d.Z,{alignItems:"center",justifyContent:n.center?"center":"flex-start",children:[(0,b.jsx)(h.ZP,{bold:!0,leftAligned:!0,monospace:!0,muted:!0,children:n.label?n.label():n.uuid}),n.tooltipMessage&&(0,b.jsx)(p.Z,{ml:"4px",children:(0,b.jsx)(f.Z,{appearBefore:!0,label:(0,b.jsx)(h.ZP,{leftAligned:!0,children:n.tooltipMessage}),lightBackground:!0,primary:!0})})]})},"".concat(F,"-col-").concat(n.uuid,"-").concat(e))}))})}),[y,O,P,H,z,F]),on=(0,c.useMemo)((function(){return(null===R||void 0===R?void 0:R.length)>=1&&(null===T||void 0===T?void 0:T.length)>=1?null===T||void 0===T?void 0:T.reduce((function(n,e,t){var r=null===e||void 0===e?void 0:e.map((function(n){return null===en||void 0===en?void 0:en[n]}));if((null===r||void 0===r?void 0:r.length)>=1){var i=R[t];n.push((0,b.jsx)(p.Z,{mt:t>=1?2:0,children:(0,b.jsx)(l.Z,{visibleMapping:{0:!0},children:(0,b.jsx)(a.Z,{noPaddingContent:!0,title:i,children:(0,b.jsx)(g.kA,{borderCollapseSeparate:o,columnBorders:y,children:(0,b.jsxs)(b.Fragment,{children:[(null===O||void 0===O?void 0:O.length)>=1&&!_&&tn,r]})})})})},"table-group-".concat(t)))}return n}),[]):(0,b.jsxs)(g.kA,{borderCollapseSeparate:o,columnBorders:y,children:[(null===O||void 0===O?void 0:O.length)>=1&&!_&&tn,en]})}),[o,y,null===O||void 0===O?void 0:O.length,tn,_,en,R,T]);return(0,b.jsxs)("div",{style:{position:"relative"},children:[on,$&&G&&nn]})}e.Z=c.forwardRef(y)},25880:function(n,e,t){var o=t(82394),r=t(26304),i=t(82684),c=t(38626),l=t(16910),a=t(93461),d=t(67971),u=t(86673),s=t(19711),p=t(23831),h=t(22341),f=t(73942),g=t(37391),v=t(10919),b=t(49125),m=t(90880),x=t(28598),w=["beforeTitleElement","children","contentOverflowVisible","first","hideScrollbar","highlighted","last","maxHeight","noBackground","noPaddingContent","onClick","onEntered","onExited","singlePanel","smallTitle","title","titleXPadding","visible","visibleCount","visibleHighlightDisabled"];function y(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?y(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):y(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var k=c.default.div.withConfig({displayName:"AccordionPanel__AccordionPanelStyle",componentId:"sc-sf242a-0"})([".accordion-panel-chevron-down-exit-done{transform:rotate(0deg);transition:all 200ms;}.accordion-panel-chevron-down-enter-active{transform:rotate(180deg);transition:all 200ms;}.accordion-panel-chevron-down-enter-done,.accordion-panel-chevron-down-enter-done-visible{transform:rotate(180deg);transition:all 300ms;}.accordion-panel-chevron-down-exit{transform:rotate(0deg);transition:all 300ms;}.accordion-panel-content-enter{display:block;max-height:0px;overflow:hidden;transition:max-height 400ms ease-in-out;}.accordion-panel-content-enter-active{max-height:100vh;","}.accordion-panel-content-enter-done{display:block;}.accordion-panel-content-exit{display:block;max-height:100vh;"," overflow:hidden;}.accordion-panel-content-exit-active{max-height:0px;transition:max-height 300ms cubic-bezier(0,1,0,1);}.accordion-panel-content-exit-done{display:none;}"],(function(n){return n.maxHeight&&"\n max-height: ".concat(n.maxHeight,"px;\n ")}),(function(n){return n.maxHeight&&"\n max-height: ".concat(n.maxHeight,"px;\n ")})),C=c.default.a.withConfig({displayName:"AccordionPanel__TitleStyle",componentId:"sc-sf242a-1"})([""," display:block;position:relative;padding:","px ","px;z-index:1;"," "," "," "," "," ",""],v.R,2*b.iI,2*b.iI,(function(n){return"\n &:hover,\n &:focus {\n outline: none;\n }\n ".concat((0,m.Kl)(n),"\n\n background-color: ").concat((n.theme.background||p.Z.background).table,";\n\n &:hover {\n background-color: ").concat((n.theme||p.Z).background.page,";\n }\n\n &:active {\n background-color: ").concat((n.theme||p.Z).background.page,";\n }\n ")}),(function(n){return n.visible&&"\n border-bottom: 1px solid ".concat((n.theme||p.Z).borders.medium2,";\n ")}),(function(n){return!n.first&&n.visible&&"\n border-top: 1px solid ".concat((n.theme||p.Z).borders.medium2,";\n ")}),(function(n){return n.first&&"\n border-top-left-radius: ".concat(f.n_,"px;\n border-top-right-radius: ").concat(f.n_,"px;\n ")}),(function(n){return(n.last||n.singlePanel)&&!n.visible&&"\n border-bottom-left-radius: ".concat(f.n_,"px;\n border-bottom-right-radius: ").concat(f.n_,"px;\n ")}),(function(n){return n.titleXPadding&&"\n padding-left: ".concat(n.titleXPadding,"px;\n padding-right: ").concat(n.titleXPadding,"px;\n ")})),O=c.default.div.withConfig({displayName:"AccordionPanel__ContentStyle",componentId:"sc-sf242a-2"})(["padding-left:","px;padding-right:","px;"," "," "," "," "," "," ",""],2*b.iI,2*b.iI,g.w5,(function(n){return n.hideScrollbar&&"\n ::-webkit-scrollbar {\n display: none;\n }\n "}),(function(n){return!n.visible&&"\n display: none;\n "}),(function(n){return!n.contentOverflowVisible&&"\n overflow-y: auto;\n "}),(function(n){return n.contentOverflowVisible&&"\n overflow-y: visible;\n "}),(function(n){return n.maxHeight&&"\n max-height: ".concat(n.maxHeight,"px;\n ")}),(function(n){return n.noPaddingContent&&"\n padding: 0;\n "})),P=c.default.div.withConfig({displayName:"AccordionPanel__ContentInnerStyle",componentId:"sc-sf242a-3"})(["padding-bottom:","px;padding-top:","px;",""],2*b.iI,2*b.iI,(function(n){return n.noPaddingContent&&"\n padding: 0;\n "})),Z=function(n,e){var t=n.beforeTitleElement,o=n.children,i=n.contentOverflowVisible,c=n.first,p=n.hideScrollbar,f=n.highlighted,g=n.last,v=n.maxHeight,m=n.noBackground,y=n.noPaddingContent,Z=n.onClick,I=n.onEntered,H=n.onExited,_=n.singlePanel,S=n.smallTitle,B=n.title,E=n.titleXPadding,D=n.visible,M=n.visibleCount,R=n.visibleHighlightDisabled,N=(0,r.Z)(n,w);return(0,x.jsxs)(k,j(j({},N),{},{maxHeight:v,children:[(0,x.jsx)(C,{first:c,href:"#",last:g,noHoverUnderline:!0,onClick:function(n){n.preventDefault(),Z&&Z(n)},onKeyPress:function(n){" "===n.key&&Z&&Z(n)},singlePanel:_,titleXPadding:E,visible:D&&!R,children:(0,x.jsxs)(d.Z,{alignItems:"center",children:[(0,x.jsx)(u.Z,{mr:1,children:(0,x.jsxs)(d.Z,{alignItems:"center",children:[t,t&&(0,x.jsx)(u.Z,{ml:1}),"string"!==typeof B&&B,"string"===typeof B&&(0,x.jsx)(s.ZP,{bold:!0,default:!D,large:!S,wind:f,children:B})]})}),(0,x.jsx)(l.Z,{classNames:"accordion-panel-chevron-down",in:D,timeout:400,children:(0,x.jsx)(a.Z,{className:D&&0===M&&"accordion-panel-chevron-down-enter-done-visible",children:(0,x.jsx)(h._M,{default:!0,size:2*b.iI})})})]})}),(0,x.jsx)(l.Z,{classNames:"accordion-panel-content",in:D,onEntered:function(n){return I&&I(n)},onExited:function(n){return H&&H(n)},timeout:300,children:(0,x.jsx)(O,{contentOverflowVisible:i,hideScrollbar:p,maxHeight:v,noBackground:m,noPaddingContent:y,visible:D,children:(0,x.jsx)(P,{noPaddingContent:y,ref:e,children:o})})})]}))};e.Z=i.forwardRef(Z)},44182:function(n,e,t){var o=t(82394),r=t(26304),i=t(82684),c=t(38626),l=(t(25880),t(34744)),a=t(23831),d=t(73942),u=t(28598),s=["activeItemIndex","children","onClick","showDividers","visibleMapping","visibleMappingForced"];function p(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 h(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,o.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 f=c.default.div.withConfig({displayName:"Accordion__AccordionStyle",componentId:"sc-1xr4nou-0"})(["border-radius:","px;overflow:hidden;border-width:","px;border-style:",";"," "," ",""],d.n_,d.YF,d.M8,(function(n){return"\n background-color: ".concat((n.theme.background||a.Z.background).content,";\n box-shadow: ").concat((n.theme||a.Z).shadow.frame,";\n ")}),(function(n){return!n.highlighted&&"\n border-color: ".concat((n.theme||a.Z).background.panel,";\n ")}),(function(n){return n.highlighted&&"\n border-color: ".concat((n.theme||a.Z).brand.wind400,";\n ")})),g=c.default.div.withConfig({displayName:"Accordion__AccordionPanelContainerStyle",componentId:"sc-1xr4nou-1"})([""]);e.Z=function(n){var e=n.activeItemIndex,t=n.children,c=n.onClick,a=n.showDividers,d=n.visibleMapping,p=n.visibleMappingForced,v=(0,r.Z)(n,s),b=(0,i.useState)(d||{}),m=b[0],x=b[1],w=(0,i.useState)({}),y=w[0],j=w[1],k=h(h({},m),p);return(0,u.jsx)(f,h(h({},v),{},{children:i.Children.map(t,(function(n,r){var d=i.Children.count(t),s=r===d-1,p=k[r];return(0,u.jsxs)("div",{children:[(0,u.jsx)(g,{index:r,showDividers:a,children:i.cloneElement(n,h(h({},v),{},{first:0===r,last:s,onClick:function(){var n;j(h(h({},y),{},(0,o.Z)({},r,y[r]?y[r]+1:1))),n=h(h({},k),{},(0,o.Z)({},r,!p)),x(n),c&&c(n)},singlePanel:1===d,visible:p,visibleCount:y[r]||0,visibleHighlightDisabled:"undefined"!==typeof e&&r!==e}))}),a&&(0,u.jsx)(l.Z,{})]},r)}))}))}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8312],{65597:function(e,n,i){i.d(n,{f:function(){return l}});var t=i(38626),r=i(23831),o=i(49125),u=i(73942),l=t.default.div.withConfig({displayName:"Tablestyle__PopupContainerStyle",componentId:"sc-8ammqd-0"})(["position:absolute;max-height:","px;z-index:10;border-radius:","px;padding:","px;"," "," "," ",""],58*o.iI,u.TR,2*o.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||r.Z.shadow).popup,";\n background-color: ").concat((e.theme.interactive||r.Z.interactive).defaultBackground,";\n ")}),(function(e){return e.leftOffset&&"\n left: ".concat(e.leftOffset,"px;\n ")}),(function(e){return e.topOffset&&"\n top: ".concat(e.topOffset,"px;\n ")}),(function(e){return e.width&&"\n width: ".concat(e.width,"px;\n ")}))},97496:function(e,n,i){var t=i(82394),r=i(75582),o=i(12691),u=i.n(o),l=i(34376),c=i.n(l),s=i(82684),d=i(83455),a=i(60328),p=i(38341),f=i(47999),h=i(93461),x=i(67971),j=i(10919),g=i(47409),b=i(86673),Z=i(54283),m=i(87815),_=i(19711),C=i(82531),v=i(23831),E=i(73942),O=i(10503),I=i(65597),k=i(93348),P=i(45838),w=i(49125),y=i(19395),N=i(24224),D=i(9736),A=i(96510),L=i(28598);function T(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,t)}return i}function R(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?T(Object(i),!0).forEach((function(n){(0,t.Z)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):T(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}function S(e){var n=e.cancelingRunId,i=e.disabled,t=e.isLoadingCancelPipeline,o=e.onCancel,u=e.onSuccess,l=e.pipelineRun,c=e.setCancelingRunId,p=e.setErrors,h=e.setShowConfirmationId,j=e.showConfirmationId,m=(0,D.Ct)(),P=l||{},y=P.id,N=P.pipeline_schedule_id,T=P.pipeline_schedule_token,R=P.pipeline_schedule_type,S=P.status,V=t&&y===n&&g.VO.RUNNING===S,U=(0,d.Db)(k.Xm.API===R&&T?C.ZP.pipeline_runs.pipeline_schedules.useCreateWithParent(N,T):C.ZP.pipeline_runs.pipeline_schedules.useCreate(N),{onSuccess:function(e){return(0,A.wD)(e,{callback:function(){u()},onErrorCallback:function(e,n){return null===p||void 0===p?void 0:p({errors:n,response:e})}})}}),F=(0,r.Z)(U,1)[0],M=(0,s.useCallback)((function(){h(null),F({pipeline_run:{backfill_id:null===l||void 0===l?void 0:l.backfill_id,event_variables:(null===l||void 0===l?void 0:l.event_variables)||{},execution_date:null===l||void 0===l?void 0:l.execution_date,pipeline_schedule_id:null===l||void 0===l?void 0:l.pipeline_schedule_id,pipeline_uuid:null===l||void 0===l?void 0:l.pipeline_uuid,variables:(null===l||void 0===l?void 0:l.variables)||{}}})}),[F,l,h]),B=(0,s.useCallback)((function(){h(null),c(y),o({id:y,status:g.VO.CANCELLED})}),[o,y,c,h]);return(0,L.jsxs)("div",{style:{position:"relative"},children:[(0,L.jsx)(a.Z,{backgroundColor:V&&v.Z.accent.yellow,beforeIcon:g.VO.INITIAL!==S&&!i&&(0,L.jsxs)(L.Fragment,{children:[g.VO.COMPLETED===S&&(0,L.jsx)(O.Jr,{size:2*w.iI}),[g.VO.FAILED,g.VO.CANCELLED].includes(S)&&(0,L.jsx)(O.Py,{inverted:g.VO.CANCELLED===S&&!m,size:2*w.iI}),[g.VO.RUNNING].includes(S)&&(0,L.jsx)(Z.Z,{color:V?v.Z.status.negative:v.Z.monotone.white,small:!0})]}),borderRadius:E.D7,danger:g.VO.FAILED===S&&!m,default:g.VO.INITIAL===S,disabled:i||m,loading:!l,onClick:function(){return h(y)},padding:"6px",primary:g.VO.RUNNING===S&&!V&&!m,warning:g.VO.CANCELLED===S&&!m,children:i?"Ready":V?"Canceling":g.Do[S]}),(0,L.jsx)(f.Z,{onClickOutside:function(){return h(null)},open:j===y,children:(0,L.jsxs)(I.f,{children:[[g.VO.RUNNING,g.VO.INITIAL].includes(S)&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(_.ZP,{bold:!0,color:"#9ECBFF",children:"Run is in progress"}),(0,L.jsx)(b.Z,{mb:1}),(0,L.jsxs)(_.ZP,{children:["This pipeline run is currently ongoing. Retrying will cancel",(0,L.jsx)("br",{}),"the current pipeline run."]}),(0,L.jsx)(_.ZP,{}),(0,L.jsx)(b.Z,{mt:1,children:(0,L.jsxs)(x.Z,{children:[(0,L.jsx)(a.Z,{onClick:function(){B(),M()},children:"Retry run"}),(0,L.jsx)(b.Z,{ml:1}),(0,L.jsx)(a.Z,{onClick:B,children:"Cancel run"})]})})]}),[g.VO.CANCELLED,g.VO.FAILED,g.VO.COMPLETED].includes(S)&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)(_.ZP,{bold:!0,color:"#9ECBFF",children:["Run ",S]}),(0,L.jsx)(b.Z,{mb:1}),(0,L.jsx)(_.ZP,{children:"Retry the run with changes you have made to the pipeline."}),(0,L.jsx)(b.Z,{mb:1}),(0,L.jsx)(a.Z,{onClick:M,children:"Retry run"})]})]})})]})}n.Z=function(e){var n=e.allowBulkSelect,i=e.disableRowSelect,o=e.emptyMessage,l=void 0===o?"No runs available":o,f=e.fetchPipelineRuns,Z=e.onClickRow,v=e.pipelineRuns,I=e.selectedRun,k=e.selectedRuns,D=e.setSelectedRuns,T=e.setErrors,V=(0,s.useState)(null),U=V[0],F=V[1],M=(0,s.useState)(null),B=M[0],H=M[1],z=(0,d.Db)((function(e){var n=e.id,i=e.status;return C.ZP.pipeline_runs.useUpdate(n)({pipeline_run:{status:i}})}),{onSuccess:function(e){return(0,A.wD)(e,{callback:function(){F(null),f()},onErrorCallback:function(e,n){F(null),null===T||void 0===T||T({errors:n,response:e})}})}}),Y=(0,r.Z)(z,2),G=Y[0],J=Y[1].isLoading,K=[null,1,2,1,1,null],q=[{uuid:"Status"},{uuid:"Pipeline UUID"},{uuid:"Date"},{uuid:"Trigger"},{uuid:"Block runs"},{uuid:"Completed"},{uuid:"Logs"}],Q=(0,s.useMemo)((function(){return v.every((function(e){var n=e.id;return!(null===k||void 0===k||!k[n])}))}),[v,k]);return n&&(K.unshift(null),q.unshift({label:function(){return(0,L.jsx)(p.Z,{checked:Q,onClick:function(){var e=(0,N.HK)(v||[],(function(e){return e.id}));D(Q?{}:e)}})},uuid:"Selected"})),!i&&Z&&(K.push(null),q.push({label:function(){return""},uuid:"action"})),(0,L.jsx)(P.cl,{minHeight:30*w.iI,overflowVisible:!!B,children:0===(null===v||void 0===v?void 0:v.length)?(0,L.jsx)(b.Z,{px:3,py:1,children:(0,L.jsx)(_.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:l})}):(0,L.jsx)(m.Z,{columnFlex:K,columns:q,isSelectedRow:function(e){return!i&&v[e].id===(null===I||void 0===I?void 0:I.id)},onClickRow:i?null:Z,rowVerticalPadding:6,rows:null===v||void 0===v?void 0:v.map((function(e,r){var o=e.block_runs_count,l=e.completed_at,s=e.execution_date,d=e.id,m=e.pipeline_schedule_id,C=e.pipeline_schedule_name,I=e.pipeline_uuid,P=e.status,N=!d&&!P,A=[];if(A=r>0&&v[r-1].execution_date===e.execution_date&&v[r-1].pipeline_schedule_id===e.pipeline_schedule_id?[(0,L.jsx)(b.Z,{ml:1,children:(0,L.jsxs)(x.Z,{alignItems:"center",children:[(0,L.jsx)(O.TT,{size:2*w.iI,useStroke:!0}),(0,L.jsx)(a.Z,{borderRadius:E.D7,notClickable:!0,padding:"6px",children:(0,L.jsx)(_.ZP,{muted:!0,children:g.Do[P]})})]})},"row_status"),(0,L.jsx)(_.ZP,{default:!0,monospace:!0,muted:!0,children:I},"row_pipeline_uuid"),(0,L.jsx)(_.ZP,{default:!0,monospace:!0,muted:!0,children:"-"},"row_date_retry"),(0,L.jsx)(_.ZP,{default:!0,monospace:!0,muted:!0,children:"-"},"row_trigger_retry"),(0,L.jsx)(u(),{as:"/pipelines/".concat(I,"/runs/").concat(d),href:"/pipelines/[pipeline]/runs/[run]",passHref:!0,children:(0,L.jsx)(j.Z,{bold:!0,muted:!0,children:"See block runs (".concat(o,")")})},"row_block_runs"),(0,L.jsx)(_.ZP,{monospace:!0,muted:!0,children:l&&(0,y.Vx)(l)||"-"},"row_completed"),(0,L.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return c().push("/pipelines/".concat(I,"/logs?pipeline_run_id[]=").concat(d))},children:(0,L.jsx)(O.B4,{default:!0,size:2*w.iI})},"row_logs")]:[(0,L.jsx)(S,{cancelingRunId:U,disabled:N,isLoadingCancelPipeline:J,onCancel:G,onSuccess:f,pipelineRun:e,setCancelingRunId:F,setErrors:T,setShowConfirmationId:H,showConfirmationId:B},"row_retry_button"),(0,L.jsx)(_.ZP,{default:!0,monospace:!0,children:I},"row_pipeline_uuid"),(0,L.jsx)(_.ZP,{default:!0,monospace:!0,children:s&&(0,y.Vx)(s)||"-"},"row_date"),(0,L.jsx)(u(),{as:"/pipelines/".concat(I,"/triggers/").concat(m),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,L.jsx)(j.Z,{bold:!0,sameColorAsText:!0,children:C})},"row_trigger"),(0,L.jsx)(u(),{as:"/pipelines/".concat(I,"/runs/").concat(d),href:"/pipelines/[pipeline]/runs/[run]",passHref:!0,children:(0,L.jsx)(j.Z,{bold:!0,disabled:N,sameColorAsText:!0,children:N?"":"See block runs (".concat(o,")")})},"row_block_runs"),(0,L.jsx)(_.ZP,{default:!0,monospace:!0,children:l&&(0,y.Vx)(l)||"-"},"row_completed"),(0,L.jsx)(a.Z,{default:!0,disabled:N,iconOnly:!0,noBackground:!0,onClick:function(){return c().push("/pipelines/".concat(I,"/logs?pipeline_run_id[]=").concat(d))},children:(0,L.jsx)(O.B4,{default:!0,size:2*w.iI})},"row_item_13")],n){var V=!(null===k||void 0===k||!k[d]);A.unshift((0,L.jsx)(p.Z,{checked:V,onClick:function(){D((function(n){return R(R({},n),{},(0,t.Z)({},d,V?null:e))}))}},"selected-pipeline-run-".concat(d)))}return!i&&Z&&A.push((0,L.jsx)(h.Z,{flex:1,justifyContent:"flex-end",children:(0,L.jsx)(O._Q,{default:!0,size:2*w.iI})})),A})),uuid:"pipeline-runs"})})}},19395:function(e,n,i){i.d(n,{IJ:function(){return d},Vx:function(){return p},eI:function(){return a},gU:function(){return h},tL:function(){return f},vJ:function(){return x}});var t,r,o=i(82394),u=i(92083),l=i.n(u);function c(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,t)}return i}function s(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?c(Object(i),!0).forEach((function(n){(0,o.Z)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):c(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}function d(e){return null===e||void 0===e?void 0:e.reduce((function(e,n){var i=n.block_uuid,t=n.completed_at,r=n.started_at,u=n.status,c=null;r&&t&&(c=l()(t).valueOf()-l()(r).valueOf());return s(s({},e),{},(0,o.Z)({},i,{runtime:c,status:u}))}),{})}function a(e){if(!e)return null;var n=new Date(l()(e).valueOf()),i=Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds());return new Date(i)}function p(e){return"string"!==typeof e?e:a(e.split("+")[0]).toISOString().split(".")[0]}!function(e){e.DAY="day",e.HOUR="hour",e.MINUTE="minute",e.SECOND="second"}(r||(r={}));var f=(t={},(0,o.Z)(t,r.DAY,86400),(0,o.Z)(t,r.HOUR,3600),(0,o.Z)(t,r.MINUTE,60),(0,o.Z)(t,r.SECOND,1),t);function h(e){var n=r.SECOND,i=e;return e%86400===0?(i/=86400,n=r.DAY):e%3600===0?(i/=3600,n=r.HOUR):e%60===0&&(i/=60,n=r.MINUTE),{time:i,unit:n}}function x(e,n){return e*f[n]}},51099:function(e,n,i){i.d(n,{Q:function(){return d}});i(82684);var t=i(60328),r=i(67971),o=i(86673),u=i(10503),l=i(73899),c=i(49125),s=i(28598),d=22;n.Z=function(e){var n=e.page,i=e.maxPages,d=e.onUpdate,a=e.totalPages,p=[],f=i;if(f>a)p=Array.from({length:a},(function(e,n){return n}));else{var h=Math.floor(f/2),x=n-h;n+h>=a?(x=a-f+2,f-=2):n-h<=0?(x=0,f-=2):(f-=4,x=n-Math.floor(f/2)),p=Array.from({length:f},(function(e,n){return n+x}))}return(0,s.jsx)(s.Fragment,{children:a>0&&(0,s.jsxs)(r.Z,{alignItems:"center",children:[(0,s.jsx)(t.Z,{disabled:0===n,onClick:function(){return d(n-1)},children:(0,s.jsx)(u.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)(t.Z,{onClick:function(){return d(0)},borderLess:!0,noBackground:!0,children:1})},0),!p.includes(1)&&(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(t.Z,{notClickable:!0,noBackground:!0,noPadding:!0,children:"..."})},0)]}),p.map((function(e){return(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(t.Z,{onClick:function(){e!==n&&d(e)},notClickable:e===n,backgroundColor:e===n&&l.a$,borderLess:!0,noBackground:!0,children:e+1})},e)})),!p.includes(a-1)&&(0,s.jsxs)(s.Fragment,{children:[!p.includes(a-2)&&(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(t.Z,{notClickable:!0,noBackground:!0,noPadding:!0,children:"..."})},0),(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(t.Z,{onClick:function(){return d(a-1)},borderLess:!0,noBackground:!0,children:a})},a-1)]}),(0,s.jsx)(o.Z,{ml:1}),(0,s.jsx)(t.Z,{disabled:n===a-1,onClick:function(){return d(n+1)},children:(0,s.jsx)(u.Kw,{size:1.5*c.iI,stroke:"#AEAEAE"})})]})})}},47409:function(e,n,i){i.d(n,{Az:function(){return c},BF:function(){return l},Do:function(){return d},IK:function(){return u},VO:function(){return o},sZ:function(){return s}});var t,r=i(82394),o=i(66050).V,u=[o.FAILED,o.COMPLETED,o.RUNNING,o.CANCELLED,o.INITIAL],l=[o.INITIAL,o.RUNNING],c=[o.CANCELLED,o.COMPLETED,o.FAILED],s="__mage_variables",d=(t={},(0,r.Z)(t,o.CANCELLED,"Cancelled"),(0,r.Z)(t,o.COMPLETED,"Done"),(0,r.Z)(t,o.FAILED,"Failed"),(0,r.Z)(t,o.INITIAL,"Ready"),(0,r.Z)(t,o.RUNNING,"Running"),t)},93348:function(e,n,i){i.d(n,{TR:function(){return a},U5:function(){return c},Xm:function(){return o},Z4:function(){return d},fq:function(){return l},kJ:function(){return s}});var t,r,o,u=i(82394);!function(e){e.API="api",e.EVENT="event",e.TIME="time"}(o||(o={}));var l,c,s,d=(t={},(0,u.Z)(t,o.API,(function(){return"API"})),(0,u.Z)(t,o.EVENT,(function(){return"event"})),(0,u.Z)(t,o.TIME,(function(){return"schedule"})),t);!function(e){e.ACTIVE="active",e.INACTIVE="inactive"}(l||(l={})),function(e){e.ONCE="@once",e.HOURLY="@hourly",e.DAILY="@daily",e.WEEKLY="@weekly",e.MONTHLY="@monthly"}(c||(c={})),function(e){e.CREATED_AT="created_at",e.NAME="name",e.PIPELINE="pipeline_uuid",e.STATUS="status",e.TYPE="schedule_type"}(s||(s={}));var a=(r={},(0,u.Z)(r,s.CREATED_AT,"Created at"),(0,u.Z)(r,s.NAME,"Name"),(0,u.Z)(r,s.PIPELINE,"Pipeline"),(0,u.Z)(r,s.STATUS,"Status"),(0,u.Z)(r,s.TYPE,"Type"),r)}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8312],{65597:function(e,n,i){i.d(n,{f:function(){return l}});var t=i(38626),r=i(23831),o=i(49125),u=i(73942),l=t.default.div.withConfig({displayName:"Tablestyle__PopupContainerStyle",componentId:"sc-8ammqd-0"})(["position:absolute;max-height:","px;z-index:10;border-radius:","px;padding:","px;"," "," "," ",""],58*o.iI,u.TR,2*o.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||r.Z.shadow).popup,";\n background-color: ").concat((e.theme.interactive||r.Z.interactive).defaultBackground,";\n ")}),(function(e){return e.leftOffset&&"\n left: ".concat(e.leftOffset,"px;\n ")}),(function(e){return e.topOffset&&"\n top: ".concat(e.topOffset,"px;\n ")}),(function(e){return e.width&&"\n width: ".concat(e.width,"px;\n ")}))},97496:function(e,n,i){var t=i(82394),r=i(75582),o=i(12691),u=i.n(o),l=i(34376),c=i.n(l),s=i(82684),d=i(83455),a=i(60328),p=i(38341),f=i(47999),h=i(93461),x=i(67971),j=i(10919),g=i(47409),b=i(86673),Z=i(54283),m=i(87815),_=i(19711),C=i(82531),v=i(23831),E=i(73942),O=i(22341),I=i(65597),k=i(93348),P=i(45838),w=i(49125),y=i(19395),N=i(24224),D=i(9736),A=i(96510),L=i(28598);function T(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,t)}return i}function R(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?T(Object(i),!0).forEach((function(n){(0,t.Z)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):T(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}function S(e){var n=e.cancelingRunId,i=e.disabled,t=e.isLoadingCancelPipeline,o=e.onCancel,u=e.onSuccess,l=e.pipelineRun,c=e.setCancelingRunId,p=e.setErrors,h=e.setShowConfirmationId,j=e.showConfirmationId,m=(0,D.Ct)(),P=l||{},y=P.id,N=P.pipeline_schedule_id,T=P.pipeline_schedule_token,R=P.pipeline_schedule_type,S=P.status,V=t&&y===n&&g.VO.RUNNING===S,U=(0,d.Db)(k.Xm.API===R&&T?C.ZP.pipeline_runs.pipeline_schedules.useCreateWithParent(N,T):C.ZP.pipeline_runs.pipeline_schedules.useCreate(N),{onSuccess:function(e){return(0,A.wD)(e,{callback:function(){u()},onErrorCallback:function(e,n){return null===p||void 0===p?void 0:p({errors:n,response:e})}})}}),F=(0,r.Z)(U,1)[0],M=(0,s.useCallback)((function(){h(null),F({pipeline_run:{backfill_id:null===l||void 0===l?void 0:l.backfill_id,event_variables:(null===l||void 0===l?void 0:l.event_variables)||{},execution_date:null===l||void 0===l?void 0:l.execution_date,pipeline_schedule_id:null===l||void 0===l?void 0:l.pipeline_schedule_id,pipeline_uuid:null===l||void 0===l?void 0:l.pipeline_uuid,variables:(null===l||void 0===l?void 0:l.variables)||{}}})}),[F,l,h]),B=(0,s.useCallback)((function(){h(null),c(y),o({id:y,status:g.VO.CANCELLED})}),[o,y,c,h]);return(0,L.jsxs)("div",{style:{position:"relative"},children:[(0,L.jsx)(a.Z,{backgroundColor:V&&v.Z.accent.yellow,beforeIcon:g.VO.INITIAL!==S&&!i&&(0,L.jsxs)(L.Fragment,{children:[g.VO.COMPLETED===S&&(0,L.jsx)(O.Jr,{size:2*w.iI}),[g.VO.FAILED,g.VO.CANCELLED].includes(S)&&(0,L.jsx)(O.Py,{inverted:g.VO.CANCELLED===S&&!m,size:2*w.iI}),[g.VO.RUNNING].includes(S)&&(0,L.jsx)(Z.Z,{color:V?v.Z.status.negative:v.Z.monotone.white,small:!0})]}),borderRadius:E.D7,danger:g.VO.FAILED===S&&!m,default:g.VO.INITIAL===S,disabled:i||m,loading:!l,onClick:function(){return h(y)},padding:"6px",primary:g.VO.RUNNING===S&&!V&&!m,warning:g.VO.CANCELLED===S&&!m,children:i?"Ready":V?"Canceling":g.Do[S]}),(0,L.jsx)(f.Z,{onClickOutside:function(){return h(null)},open:j===y,children:(0,L.jsxs)(I.f,{children:[[g.VO.RUNNING,g.VO.INITIAL].includes(S)&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(_.ZP,{bold:!0,color:"#9ECBFF",children:"Run is in progress"}),(0,L.jsx)(b.Z,{mb:1}),(0,L.jsxs)(_.ZP,{children:["This pipeline run is currently ongoing. Retrying will cancel",(0,L.jsx)("br",{}),"the current pipeline run."]}),(0,L.jsx)(_.ZP,{}),(0,L.jsx)(b.Z,{mt:1,children:(0,L.jsxs)(x.Z,{children:[(0,L.jsx)(a.Z,{onClick:function(){B(),M()},children:"Retry run"}),(0,L.jsx)(b.Z,{ml:1}),(0,L.jsx)(a.Z,{onClick:B,children:"Cancel run"})]})})]}),[g.VO.CANCELLED,g.VO.FAILED,g.VO.COMPLETED].includes(S)&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)(_.ZP,{bold:!0,color:"#9ECBFF",children:["Run ",S]}),(0,L.jsx)(b.Z,{mb:1}),(0,L.jsx)(_.ZP,{children:"Retry the run with changes you have made to the pipeline."}),(0,L.jsx)(b.Z,{mb:1}),(0,L.jsx)(a.Z,{onClick:M,children:"Retry run"})]})]})})]})}n.Z=function(e){var n=e.allowBulkSelect,i=e.disableRowSelect,o=e.emptyMessage,l=void 0===o?"No runs available":o,f=e.fetchPipelineRuns,Z=e.onClickRow,v=e.pipelineRuns,I=e.selectedRun,k=e.selectedRuns,D=e.setSelectedRuns,T=e.setErrors,V=(0,s.useState)(null),U=V[0],F=V[1],M=(0,s.useState)(null),B=M[0],H=M[1],z=(0,d.Db)((function(e){var n=e.id,i=e.status;return C.ZP.pipeline_runs.useUpdate(n)({pipeline_run:{status:i}})}),{onSuccess:function(e){return(0,A.wD)(e,{callback:function(){F(null),f()},onErrorCallback:function(e,n){F(null),null===T||void 0===T||T({errors:n,response:e})}})}}),Y=(0,r.Z)(z,2),G=Y[0],J=Y[1].isLoading,K=[null,1,2,1,1,null],q=[{uuid:"Status"},{uuid:"Pipeline UUID"},{uuid:"Date"},{uuid:"Trigger"},{uuid:"Block runs"},{uuid:"Completed"},{uuid:"Logs"}],Q=(0,s.useMemo)((function(){return v.every((function(e){var n=e.id;return!(null===k||void 0===k||!k[n])}))}),[v,k]);return n&&(K.unshift(null),q.unshift({label:function(){return(0,L.jsx)(p.Z,{checked:Q,onClick:function(){var e=(0,N.HK)(v||[],(function(e){return e.id}));D(Q?{}:e)}})},uuid:"Selected"})),!i&&Z&&(K.push(null),q.push({label:function(){return""},uuid:"action"})),(0,L.jsx)(P.cl,{minHeight:30*w.iI,overflowVisible:!!B,children:0===(null===v||void 0===v?void 0:v.length)?(0,L.jsx)(b.Z,{px:3,py:1,children:(0,L.jsx)(_.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:l})}):(0,L.jsx)(m.Z,{columnFlex:K,columns:q,isSelectedRow:function(e){return!i&&v[e].id===(null===I||void 0===I?void 0:I.id)},onClickRow:i?null:Z,rowVerticalPadding:6,rows:null===v||void 0===v?void 0:v.map((function(e,r){var o=e.block_runs_count,l=e.completed_at,s=e.execution_date,d=e.id,m=e.pipeline_schedule_id,C=e.pipeline_schedule_name,I=e.pipeline_uuid,P=e.status,N=!d&&!P,A=[];if(A=r>0&&v[r-1].execution_date===e.execution_date&&v[r-1].pipeline_schedule_id===e.pipeline_schedule_id?[(0,L.jsx)(b.Z,{ml:1,children:(0,L.jsxs)(x.Z,{alignItems:"center",children:[(0,L.jsx)(O.TT,{size:2*w.iI,useStroke:!0}),(0,L.jsx)(a.Z,{borderRadius:E.D7,notClickable:!0,padding:"6px",children:(0,L.jsx)(_.ZP,{muted:!0,children:g.Do[P]})})]})},"row_status"),(0,L.jsx)(_.ZP,{default:!0,monospace:!0,muted:!0,children:I},"row_pipeline_uuid"),(0,L.jsx)(_.ZP,{default:!0,monospace:!0,muted:!0,children:"-"},"row_date_retry"),(0,L.jsx)(_.ZP,{default:!0,monospace:!0,muted:!0,children:"-"},"row_trigger_retry"),(0,L.jsx)(u(),{as:"/pipelines/".concat(I,"/runs/").concat(d),href:"/pipelines/[pipeline]/runs/[run]",passHref:!0,children:(0,L.jsx)(j.Z,{bold:!0,muted:!0,children:"See block runs (".concat(o,")")})},"row_block_runs"),(0,L.jsx)(_.ZP,{monospace:!0,muted:!0,children:l&&(0,y.Vx)(l)||"-"},"row_completed"),(0,L.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return c().push("/pipelines/".concat(I,"/logs?pipeline_run_id[]=").concat(d))},children:(0,L.jsx)(O.B4,{default:!0,size:2*w.iI})},"row_logs")]:[(0,L.jsx)(S,{cancelingRunId:U,disabled:N,isLoadingCancelPipeline:J,onCancel:G,onSuccess:f,pipelineRun:e,setCancelingRunId:F,setErrors:T,setShowConfirmationId:H,showConfirmationId:B},"row_retry_button"),(0,L.jsx)(_.ZP,{default:!0,monospace:!0,children:I},"row_pipeline_uuid"),(0,L.jsx)(_.ZP,{default:!0,monospace:!0,children:s&&(0,y.Vx)(s)||"-"},"row_date"),(0,L.jsx)(u(),{as:"/pipelines/".concat(I,"/triggers/").concat(m),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,L.jsx)(j.Z,{bold:!0,sameColorAsText:!0,children:C})},"row_trigger"),(0,L.jsx)(u(),{as:"/pipelines/".concat(I,"/runs/").concat(d),href:"/pipelines/[pipeline]/runs/[run]",passHref:!0,children:(0,L.jsx)(j.Z,{bold:!0,disabled:N,sameColorAsText:!0,children:N?"":"See block runs (".concat(o,")")})},"row_block_runs"),(0,L.jsx)(_.ZP,{default:!0,monospace:!0,children:l&&(0,y.Vx)(l)||"-"},"row_completed"),(0,L.jsx)(a.Z,{default:!0,disabled:N,iconOnly:!0,noBackground:!0,onClick:function(){return c().push("/pipelines/".concat(I,"/logs?pipeline_run_id[]=").concat(d))},children:(0,L.jsx)(O.B4,{default:!0,size:2*w.iI})},"row_item_13")],n){var V=!(null===k||void 0===k||!k[d]);A.unshift((0,L.jsx)(p.Z,{checked:V,onClick:function(){D((function(n){return R(R({},n),{},(0,t.Z)({},d,V?null:e))}))}},"selected-pipeline-run-".concat(d)))}return!i&&Z&&A.push((0,L.jsx)(h.Z,{flex:1,justifyContent:"flex-end",children:(0,L.jsx)(O._Q,{default:!0,size:2*w.iI})})),A})),uuid:"pipeline-runs"})})}},19395:function(e,n,i){i.d(n,{IJ:function(){return d},Vx:function(){return p},eI:function(){return a},gU:function(){return h},tL:function(){return f},vJ:function(){return x}});var t,r,o=i(82394),u=i(92083),l=i.n(u);function c(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,t)}return i}function s(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?c(Object(i),!0).forEach((function(n){(0,o.Z)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):c(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}function d(e){return null===e||void 0===e?void 0:e.reduce((function(e,n){var i=n.block_uuid,t=n.completed_at,r=n.started_at,u=n.status,c=null;r&&t&&(c=l()(t).valueOf()-l()(r).valueOf());return s(s({},e),{},(0,o.Z)({},i,{runtime:c,status:u}))}),{})}function a(e){if(!e)return null;var n=new Date(l()(e).valueOf()),i=Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds());return new Date(i)}function p(e){return"string"!==typeof e?e:a(e.split("+")[0]).toISOString().split(".")[0]}!function(e){e.DAY="day",e.HOUR="hour",e.MINUTE="minute",e.SECOND="second"}(r||(r={}));var f=(t={},(0,o.Z)(t,r.DAY,86400),(0,o.Z)(t,r.HOUR,3600),(0,o.Z)(t,r.MINUTE,60),(0,o.Z)(t,r.SECOND,1),t);function h(e){var n=r.SECOND,i=e;return e%86400===0?(i/=86400,n=r.DAY):e%3600===0?(i/=3600,n=r.HOUR):e%60===0&&(i/=60,n=r.MINUTE),{time:i,unit:n}}function x(e,n){return e*f[n]}},51099:function(e,n,i){i.d(n,{Q:function(){return d}});i(82684);var t=i(60328),r=i(67971),o=i(86673),u=i(22341),l=i(73899),c=i(49125),s=i(28598),d=22;n.Z=function(e){var n=e.page,i=e.maxPages,d=e.onUpdate,a=e.totalPages,p=[],f=i;if(f>a)p=Array.from({length:a},(function(e,n){return n}));else{var h=Math.floor(f/2),x=n-h;n+h>=a?(x=a-f+2,f-=2):n-h<=0?(x=0,f-=2):(f-=4,x=n-Math.floor(f/2)),p=Array.from({length:f},(function(e,n){return n+x}))}return(0,s.jsx)(s.Fragment,{children:a>0&&(0,s.jsxs)(r.Z,{alignItems:"center",children:[(0,s.jsx)(t.Z,{disabled:0===n,onClick:function(){return d(n-1)},children:(0,s.jsx)(u.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)(t.Z,{onClick:function(){return d(0)},borderLess:!0,noBackground:!0,children:1})},0),!p.includes(1)&&(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(t.Z,{notClickable:!0,noBackground:!0,noPadding:!0,children:"..."})},0)]}),p.map((function(e){return(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(t.Z,{onClick:function(){e!==n&&d(e)},notClickable:e===n,backgroundColor:e===n&&l.a$,borderLess:!0,noBackground:!0,children:e+1})},e)})),!p.includes(a-1)&&(0,s.jsxs)(s.Fragment,{children:[!p.includes(a-2)&&(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(t.Z,{notClickable:!0,noBackground:!0,noPadding:!0,children:"..."})},0),(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(t.Z,{onClick:function(){return d(a-1)},borderLess:!0,noBackground:!0,children:a})},a-1)]}),(0,s.jsx)(o.Z,{ml:1}),(0,s.jsx)(t.Z,{disabled:n===a-1,onClick:function(){return d(n+1)},children:(0,s.jsx)(u.Kw,{size:1.5*c.iI,stroke:"#AEAEAE"})})]})})}},47409:function(e,n,i){i.d(n,{Az:function(){return c},BF:function(){return l},Do:function(){return d},IK:function(){return u},VO:function(){return o},sZ:function(){return s}});var t,r=i(82394),o=i(66050).V,u=[o.FAILED,o.COMPLETED,o.RUNNING,o.CANCELLED,o.INITIAL],l=[o.INITIAL,o.RUNNING],c=[o.CANCELLED,o.COMPLETED,o.FAILED],s="__mage_variables",d=(t={},(0,r.Z)(t,o.CANCELLED,"Cancelled"),(0,r.Z)(t,o.COMPLETED,"Done"),(0,r.Z)(t,o.FAILED,"Failed"),(0,r.Z)(t,o.INITIAL,"Ready"),(0,r.Z)(t,o.RUNNING,"Running"),t)},93348:function(e,n,i){i.d(n,{TR:function(){return a},U5:function(){return c},Xm:function(){return o},Z4:function(){return d},fq:function(){return l},kJ:function(){return s}});var t,r,o,u=i(82394);!function(e){e.API="api",e.EVENT="event",e.TIME="time"}(o||(o={}));var l,c,s,d=(t={},(0,u.Z)(t,o.API,(function(){return"API"})),(0,u.Z)(t,o.EVENT,(function(){return"event"})),(0,u.Z)(t,o.TIME,(function(){return"schedule"})),t);!function(e){e.ACTIVE="active",e.INACTIVE="inactive"}(l||(l={})),function(e){e.ONCE="@once",e.HOURLY="@hourly",e.DAILY="@daily",e.WEEKLY="@weekly",e.MONTHLY="@monthly"}(c||(c={})),function(e){e.CREATED_AT="created_at",e.NAME="name",e.PIPELINE="pipeline_uuid",e.STATUS="status",e.TYPE="schedule_type"}(s||(s={}));var a=(r={},(0,u.Z)(r,s.CREATED_AT,"Created at"),(0,u.Z)(r,s.NAME,"Name"),(0,u.Z)(r,s.PIPELINE,"Pipeline"),(0,u.Z)(r,s.STATUS,"Status"),(0,u.Z)(r,s.TYPE,"Type"),r)}}]);
|