mage-ai 0.8.80__py3-none-any.whl → 0.8.82__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of mage-ai might be problematic. Click here for more details.
- mage_ai/api/presenters/SyncPresenter.py +1 -0
- mage_ai/api/resources/GitBranchResource.py +1 -1
- mage_ai/api/resources/SyncResource.py +83 -41
- mage_ai/data_preparation/executors/block_executor.py +9 -0
- mage_ai/data_preparation/models/block/__init__.py +40 -3
- mage_ai/data_preparation/models/pipelines/integration_pipeline.py +21 -9
- mage_ai/data_preparation/models/utils.py +5 -3
- mage_ai/data_preparation/models/variable.py +59 -26
- mage_ai/data_preparation/preferences.py +24 -16
- mage_ai/data_preparation/sync/__init__.py +23 -4
- mage_ai/data_preparation/sync/git_sync.py +7 -0
- mage_ai/data_preparation/templates/callbacks/base.jinja +2 -2
- mage_ai/data_preparation/templates/callbacks/orchestration/triggers/default.jinja +1 -1
- mage_ai/data_preparation/templates/repo/.gitignore +13 -0
- mage_ai/orchestration/db/models/oauth.py +16 -7
- mage_ai/orchestration/pipeline_scheduler.py +17 -1
- mage_ai/server/constants.py +1 -1
- mage_ai/server/frontend_dist/404.html +2 -2
- mage_ai/server/frontend_dist/404.html.html +2 -2
- mage_ai/server/frontend_dist/_next/static/QB08hs4sID1RqTCyVc19P/_buildManifest.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/1005-2ad5a1b201c2e742.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{1424-fbc7f741303c0aa0.js → 1424-c6b0d89ffb4a10b9.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3077-5a56c22fbc5626c8.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/3714-d472531256ed5cf5.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/547-f3f2ccd9dcde9459.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/7400-e5e39ae07de554b2.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{8180-325d712ecbed97ce.js → 8180-0c53312021451bb7.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/8735-1a3d39946add4aea.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/894-6290def8665695eb.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/8957-6d3f5778166f4294.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/9270-e35a5eb3dae4c3ca.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{_app-b25383366d854e8e.js → _app-13fb8342c87983a1.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/files-8b81ef90680f3f72.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-9e96b956c26fbc92.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipeline-runs-3260a2dac8df672e.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/{[...slug]-9e519ad50f639e00.js → [...slug]-a4fbf12642923051.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-fe65c89f1e86b4b8.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/{block-runs-302e1bd9fbf39994.js → block-runs-5c02b08404dbdd20.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-25a125d43569c70d.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{monitors-5244d6c5d80af010.js → monitors-092f364100995ba6.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/{[run]-90170de1e6fe8f04.js → [run]-50e60f6b49eed3f0.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{runs-88994d0bcf41cf9e.js → runs-ed9903520a27f4c8.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-55748e7fcf738d91.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/{[...slug]-456d84426ffe5025.js → [...slug]-1725c0871027ae05.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{triggers-05f43f9eaf6528db.js → triggers-0d2c9f28ae21cde8.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-2f4b987a8dba3484.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/account/profile-3ca183fdcb571bde.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-3b26db0dd0962783.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/sync-data-bd5e22e49c1f7bc2.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users-85073f9cc09fabf7.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-0d2260ad08dfe44a.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-d74d0f163157ba65.js +1 -0
- mage_ai/server/frontend_dist/files.html +25 -0
- mage_ai/server/frontend_dist/index.html +2 -2
- mage_ai/server/frontend_dist/manage.html +5 -5
- mage_ai/server/frontend_dist/pipeline-runs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/settings.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline].html +2 -2
- mage_ai/server/frontend_dist/pipelines.html +5 -5
- mage_ai/server/frontend_dist/settings/account/profile.html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/preferences.html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/sync-data.html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/users.html +5 -5
- mage_ai/server/frontend_dist/settings.html +2 -2
- mage_ai/server/frontend_dist/sign-in.html +14 -14
- mage_ai/server/frontend_dist/terminal.html +5 -5
- mage_ai/server/frontend_dist/test.html +3 -3
- mage_ai/server/frontend_dist/triggers.html +5 -5
- mage_ai/tests/api/operations/test_syncs.py +97 -0
- mage_ai/tests/data_preparation/models/test_block.py +20 -14
- mage_ai/tests/orchestration/test_pipeline_scheduler.py +23 -2
- {mage_ai-0.8.80.dist-info → mage_ai-0.8.82.dist-info}/METADATA +2 -1
- {mage_ai-0.8.80.dist-info → mage_ai-0.8.82.dist-info}/RECORD +91 -85
- mage_ai/server/frontend_dist/_next/static/K62oaHK5x3k16vVxdvIWf/_buildManifest.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1005-38fa861ca54679db.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3077-187a4db6073d95df.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/547-833b70469e82cb2b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5540-1025c6b3e65558b3.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/6567-2488118bb39a9d99.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/8957-6edafc5a2521efdf.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/9129-8ae88897c3817909.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-eba67ac0edfdea1b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipeline-runs-128dd171c6fff7ac.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-d90d32812b2be89e.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-7635e7031335de0f.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-3c42f05001416811.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-c73dab1d63317556.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/account/profile-f5626eb662337ad5.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-292e840e9386335e.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/sync-data-353dc1ef2fadf70b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users-cd838435ed1b8383.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-d15ea617ef145b32.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-df30a0006fd775b8.js +0 -1
- /mage_ai/server/frontend_dist/_next/static/{K62oaHK5x3k16vVxdvIWf → QB08hs4sID1RqTCyVc19P}/_middlewareManifest.js +0 -0
- /mage_ai/server/frontend_dist/_next/static/{K62oaHK5x3k16vVxdvIWf → QB08hs4sID1RqTCyVc19P}/_ssgManifest.js +0 -0
- {mage_ai-0.8.80.dist-info → mage_ai-0.8.82.dist-info}/LICENSE +0 -0
- {mage_ai-0.8.80.dist-info → mage_ai-0.8.82.dist-info}/WHEEL +0 -0
- {mage_ai-0.8.80.dist-info → mage_ai-0.8.82.dist-info}/entry_points.txt +0 -0
- {mage_ai-0.8.80.dist-info → mage_ai-0.8.82.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3077],{1210:function(e,n,t){t.d(n,{Z:function(){return I}});var r=t(82394),i=t(21831),o=t(82684),c=t(47999),l=t(49894),u=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 h=o.forwardRef(p),m=t(32063),b=t(85019),y=t(82531),g=t(66166),v=t(3055),j=t(49125),x=t(91427),O=t(24141);function w(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function S(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?w(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):w(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var I=function(e){var n,t=e.after,r=e.afterHidden,p=e.afterWidth,w=e.afterWidthOverride,I=e.before,k=e.beforeWidth,P=e.breadcrumbs,Z=e.children,H=e.errors,_=e.headerMenuItems,N=e.headerOffset,C=e.mainContainerHeader,z=e.navigationItems,D=e.setErrors,M=e.subheaderChildren,W=e.title,A=e.uuid,E=(0,O.i)().width,B="dashboard_after_width_".concat(A),F="dashboard_before_width_".concat(A),R=(0,o.useRef)(null),T=(0,o.useState)(w?p:(0,x.U2)(B,p)),U=T[0],L=T[1],Q=(0,o.useState)(!1),Y=Q[0],G=Q[1],J=(0,o.useState)(I?Math.max((0,x.U2)(F,k),13*j.iI):null),X=J[0],q=J[1],K=(0,o.useState)(!1),V=K[0],$=K[1],ee=(0,o.useState)(null)[1],ne=y.ZP.projects.list({},{revalidateOnFocus:!1}).data,te=null===ne||void 0===ne?void 0:ne.projects,re=[];P?re.push.apply(re,(0,i.Z)(P)):(null===te||void 0===te?void 0:te.length)>=1&&re.push.apply(re,[{label:function(){var e;return null===(e=te[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},{bold:!0,label:function(){return W}}]),(0,o.useEffect)((function(){null===R||void 0===R||!R.current||Y||V||null===ee||void 0===ee||ee(R.current.getBoundingClientRect().width)}),[Y,U,V,X,R,ee,E]),(0,o.useEffect)((function(){Y||(0,x.t8)(B,U)}),[r,Y,U,B]),(0,o.useEffect)((function(){V||(0,x.t8)(F,X)}),[V,X,F]);var ie=(0,g.Z)(p);return(0,o.useEffect)((function(){w&&ie!==p&&L(p)}),[w,p,ie]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(a.Z,{title:W}),(0,f.jsx)(s.Z,{breadcrumbs:re,menuItems:_,project:null===te||void 0===te?void 0:te[0],version:null===te||void 0===te||null===(n=te[0])||void 0===n?void 0:n.version}),(0,f.jsxs)(d.Nk,{children:[0!==(null===z||void 0===z?void 0:z.length)&&(0,f.jsx)(d.lm,{showMore:!0,children:(0,f.jsx)(b.Z,{navigationItems:z,showMore:!0})}),(0,f.jsx)(u.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(m.Z,{after:t,afterHeightOffset:v.Mz,afterHidden:r,afterMousedownActive:Y,afterWidth:U,before:I,beforeHeightOffset:v.Mz,beforeMousedownActive:V,beforeWidth:d.k1+(I?X:0),headerOffset:N,hideAfterCompletely:!0,leftOffset:I?d.k1:null,mainContainerHeader:C,mainContainerRef:R,setAfterMousedownActive:G,setAfterWidth:L,setBeforeMousedownActive:$,setBeforeWidth:q,children:[M&&(0,f.jsx)(h,{children:M}),Z]})})]}),H&&(0,f.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===D||void 0===D?void 0:D(null)},children:(0,f.jsx)(l.Z,S(S({},H),{},{onClose:function(){return null===D||void 0===D?void 0:D(null)}}))})]})}},2850:function(e,n,t){t.d(n,{M:function(){return c},W:function(){return o}});var r=t(9518),i=t(3055),o=34*t(49125).iI,c=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);"],i.Mz)},79585:function(e,n,t){t.d(n,{DQ:function(){return s},HY:function(){return c},SA:function(){return d},WH:function(){return o},eC:function(){return u},fF:function(){return l},tC:function(){return a}});var r=t(81132),i=t(9736),o="Workspace",c="Preferences",l="Git settings",u="Users",a="Account",s="Profile",d=function(e){var n=e.owner,t=e.roles,d=[{linkProps:{href:"/settings/workspace/preferences"},uuid:c}];(n||t===r.No.ADMIN)&&d.push({linkProps:{href:"/settings/workspace/users"},uuid:u}),(!(0,i.YB)()||t<=r.No.EDITOR)&&d.push({linkProps:{href:"/settings/workspace/sync-data"},uuid:l});var f=[{items:d,uuid:o}];return(0,i.YB)()?f.concat([{items:[{linkProps:{href:"/settings/account/profile"},uuid:s}],uuid:a}]):f}},30775:function(e,n,t){t.d(n,{Z:function(){return S}});var r=t(1210),i=t(82394),o=t(12691),c=t.n(o),l=t(10919),u=t(86673),a=t(19711),s=t(9518),d=t(23831),f=t(49125),p=t(90880),h=(f.iI,s.default.div.withConfig({displayName:"indexstyle__SectionTitleStyle",componentId:"sc-1y8dyue-0"})(["padding:","px ","px;"],1*f.iI,2.5*f.iI)),m=s.default.div.withConfig({displayName:"indexstyle__ItemStyle",componentId:"sc-1y8dyue-1"})([""," padding:","px ","px;"," ",""],(0,p.eR)(),1.5*f.iI,2.5*f.iI,(function(e){return!e.selected&&"\n &:hover {\n background-color: ".concat((e.theme.background||d.Z.background).codeArea,";\n }\n ")}),(function(e){return e.selected&&"\n background-color: ".concat((e.theme.background||d.Z.background).codeTextarea,";\n ")})),b=t(28598),y=t(82684);function g(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function v(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?g(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):g(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var j=function(e){var n=e.isItemSelected,t=e.sections;return(0,b.jsx)(u.Z,{py:f.Gg,children:null===t||void 0===t?void 0:t.map((function(e){var t=e.items,r=e.title,i=e.uuid;return(0,b.jsxs)(u.Z,{children:[(0,b.jsx)(h,{children:(0,b.jsx)(a.ZP,{bold:!0,muted:!0,small:!0,uppercase:!0,children:r?r():i})}),null===t||void 0===t?void 0:t.map((function(e){var t=e.label,r=e.linkProps,o=e.onClick,u=e.uuid,a=t?t():u,s=(0,b.jsx)(m,{selected:null===n||void 0===n?void 0:n(v(v({},e),{},{uuidWorkspace:i})),children:a});return r?(0,y.createElement)(c(),v(v({},r),{},{key:u,passHref:!0}),(0,b.jsx)(l.Z,{block:!0,noHoverUnderline:!0,noOutline:!0,sameColorAsText:!0,children:s})):(0,b.jsx)(l.Z,{block:!0,noHoverUnderline:!0,noOutline:!0,onClick:o,preventDefault:!0,sameColorAsText:!0,children:s},u)}))]},i)}))})},x=t(2850),O=t(79585),w=t(9736);var S=function(e){var n=e.after,t=e.afterHidden,i=e.children,o=e.uuidItemSelected,c=e.uuidWorkspaceSelected,l=(0,w.PR)()||{};return(0,b.jsx)(r.Z,{after:n,afterHidden:!n||t,afterWidth:n?50*f.iI:0,afterWidthOverride:!0,before:(0,b.jsx)(x.M,{children:(0,b.jsx)(j,{isItemSelected:function(e){var n=e.uuid,t=e.uuidWorkspace;return c===t&&o===n},sections:(0,O.SA)(l)})}),beforeWidth:x.W,title:"Settings",uuid:"settings/index",children:i})}},87372:function(e,n,t){var r,i,o,c,l,u,a,s,d=t(82394),f=t(26304),p=t(26653),h=t(9518),m=t(33591),b=t(23831),y=t(2005),g=t(31012),v=t(19711),j=t(49125),x=t(86673),O=t(28598),w=["children","condensed","inline","level","marketing","spacingBelow"];function S(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function I(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?S(Object(t),!0).forEach((function(n){(0,d.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):S(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var k=(0,h.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],v.IH,(function(e){return e.color&&"\n color: ".concat(e.color,"\n ")}),(function(e){return e.yellow&&"\n color: ".concat((e.theme.accent||b.Z.accent).yellow,";\n ")}),(function(e){return e.center&&"\n text-align: center;\n "}),(function(e){return!e.monospace&&0===Number(e.weightStyle)&&"\n font-family: ".concat(y.iI,";\n ")}),(function(e){return!e.monospace&&1===Number(e.weightStyle)&&"\n font-family: ".concat(y.LX,";\n ")}),(function(e){return!e.monospace&&2===Number(e.weightStyle)&&"\n font-family: ".concat(y.LX,";\n ")}),(function(e){return!e.monospace&&3===Number(e.weightStyle)&&"\n font-family: ".concat(y.ry,";\n ")}),(function(e){return!e.monospace&&4===Number(e.weightStyle)&&"\n font-family: ".concat(y.YC,";\n ")}),(function(e){return!e.monospace&&5===Number(e.weightStyle)&&"\n font-family: ".concat(y.nF,";\n ")}),(function(e){return!e.monospace&&(6===Number(e.weightStyle)||e.bold)&&"\n font-family: ".concat(y.nF,";\n ")}),(function(e){return!e.monospace&&7===Number(e.weightStyle)&&"\n font-family: ".concat(y.nF,";\n ")}),(function(e){return!e.monospace&&8===Number(e.weightStyle)&&"\n font-family: ".concat(y.nF,";\n ")}),(function(e){return e.lineHeightAuto&&"\n line-height: normal !important;\n "})),P=h.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(e){return"\n color: ".concat((e.theme.content||b.Z.content).active,";\n ")})),Z=h.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],k,m.media.md(r||(r=(0,p.Z)(["\n ","\n "])),g.aQ),m.media.lg(i||(i=(0,p.Z)(["\n ","\n "])),g.aQ),m.media.xl(o||(o=(0,p.Z)(["\n ","\n "])),g.aQ)),H=h.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],k,g.MJ),_=h.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],k,m.media.xs(c||(c=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*j.iI,7*j.iI),m.media.sm(l||(l=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*j.iI,7*j.iI),m.media.md(u||(u=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*j.iI,7*j.iI),m.media.lg(a||(a=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*j.iI,7*j.iI),m.media.xl(s||(s=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*j.iI,7*j.iI)),N=h.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],k,g.BL),C=h.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],k),z=h.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],k),D=h.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],k),M=h.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],k,(function(e){return 1===e.level&&"\n ".concat(g.MJ,"\n ")}),(function(e){return 2===e.level&&"\n ".concat(g.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 "})),W=function(e){var n,t=e.children,r=e.condensed,i=e.inline,o=e.level,c=e.marketing,l=e.spacingBelow,u=(0,f.Z)(e,w);i?n=M:0===Number(o)?n=Z:1===Number(o)?n=c?_:H:2===Number(o)?n=N:3===Number(o)?n=C:4===Number(o)?n=z:5===Number(o)&&(n=D);var a=(0,O.jsxs)(n,I(I({},u),{},{level:o,children:[l&&(0,O.jsx)(x.Z,{mb:r?2:3,children:t}),!l&&t]}));return i?a:(0,O.jsx)(P,{children:a})};W.defaultProps={level:3,weightStyle:6},n.Z=W}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3714],{44162:function(n,t,e){e.d(t,{HC:function(){return h},Kf:function(){return s},Nk:function(){return f},PY:function(){return A},gE:function(){return R},jv:function(){return E},nz:function(){return p},oh:function(){return d},qn:function(){return l},t1:function(){return b},y9:function(){return T}});var r=e(9518),o=e(23831),c=e(86422),i=e(73942),a=e(49125),u=e(90880),d=68;function l(n,t){var e,r,i=((null===t||void 0===t||null===(e=t.theme)||void 0===e?void 0:e.borders)||o.Z.borders).light,a=((null===t||void 0===t||null===(r=t.theme)||void 0===r?void 0:r.monotone)||o.Z.monotone).grey500,u=t||{},d=u.blockColor,l=u.isSelected,s=u.theme;return l?i=(s||o.Z).content.active:c.tf.TRANSFORMER===n||d===c.Lq.PURPLE?(i=(s||o.Z).accent.purple,a=(s||o.Z).accent.purpleLight):c.tf.DATA_EXPORTER===n||d===c.Lq.YELLOW?(i=(s||o.Z).accent.yellow,a=(s||o.Z).accent.yellowLight):c.tf.DATA_LOADER===n||d===c.Lq.BLUE?(i=(s||o.Z).accent.blue,a=(s||o.Z).accent.blueLight):c.tf.MARKDOWN===n?(i=(s||o.Z).accent.sky,a=(s||o.Z).accent.skyLight):c.tf.SENSOR===n||d===c.Lq.PINK?(i=(s||o.Z).accent.pink,a=(s||o.Z).accent.pinkLight):c.tf.DBT===n?(i=(s||o.Z).accent.dbt,a=(s||o.Z).accent.dbtLight):c.tf.EXTENSION===n||d===c.Lq.TEAL?(i=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).teal,a=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).tealLight):c.tf.CALLBACK===n?(i=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).rose,a=((null===s||void 0===s?void 0:s.accent)||o.Z.accent).roseLight):(c.tf.SCRATCHPAD===n||d===c.Lq.GREY||c.tf.CUSTOM===n&&!d)&&(i=(s||o.Z).content.default,a=(s||o.Z).accent.contentDefaultTransparent),{accent:i,accentLight:a}}var s=(0,r.css)([""," "," "," "," "," "," ",""],(0,u.eR)(),(function(n){return!n.selected&&!n.hasError&&"\n border-color: ".concat(l(n.blockType,n).accentLight,";\n ")}),(function(n){return n.selected&&!n.hasError&&"\n border-color: ".concat(l(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 "})),f=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-s5rj34-0"})(["border-radius:","px;position:relative;"],i.n_),A=r.default.div.withConfig({displayName:"indexstyle__HiddenBlockContainerStyle",componentId:"sc-s5rj34-1"})([""," border-radius:","px;border-style:",";border-width:","px;",""],s,i.n_,i.M8,i.mP,(function(n){return"\n background-color: ".concat((n.theme||o.Z).background.content,";\n\n &:hover {\n border-color: ").concat(l(n.blockType,n).accent,";\n }\n ")})),p=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;"," "," ",""],s,i.n_,i.n_,i.M8,i.mP,i.M8,i.mP,i.M8,i.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(i.YF,"px ").concat(i.M8," ").concat((n.theme||o.Z).borders.medium2,";\n ")}),(function(n){return n.zIndex&&"\n z-index: ".concat(6+(n.zIndex||0),";\n ")})),E=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;}}"],s,i.M8,i.mP,i.M8,i.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(i.n_,"px;\n border-bottom-right-radius: ").concat(i.n_,"px;\n border-bottom-style: ").concat(i.M8,";\n border-bottom-width: ").concat(i.mP,"px;\n ")})),R=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 ")})),b=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),T=r.default.div.withConfig({displayName:"indexstyle__CodeHelperStyle",componentId:"sc-s5rj34-6"})(["margin-bottom:","px;padding-bottom:","px;",""],a.cd*a.iI,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:d,"px;\n ")})),h=r.default.div.withConfig({displayName:"indexstyle__TimeTrackerStyle",componentId:"sc-s5rj34-7"})(["bottom:","px;left:","px;position:absolute;"],1*a.iI,d)},60701:function(n,t,e){e.d(t,{Qq:function(){return f},Z7:function(){return A},cH:function(){return o},du:function(){return l},fp:function(){return d},j5:function(){return s},uM:function(){return u}});var r,o,c=e(82394),i=e(10503),a=e(24224),u="sideview",d=90;!function(n){n.CALLBACKS="callbacks",n.CHARTS="charts",n.DATA="data",n.EXTENSIONS="power_ups",n.FILE_VERSIONS="file_versions",n.GRAPHS="graphs",n.REPORTS="reports",n.SECRETS="secrets",n.SETTINGS="settings",n.TERMINAL="terminal",n.TREE="tree",n.VARIABLES="variables"}(o||(o={}));o.CALLBACKS,o.CHARTS,o.DATA,o.EXTENSIONS,o.REPORTS,o.TREE;var l=[o.DATA,o.REPORTS,o.GRAPHS],s=[{key:o.TREE,label:"Tree"},{buildLabel:function(n){var t=(n.pipeline||{}).widgets,e=void 0===t?[]:t;return(null===e||void 0===e?void 0:e.length)>=1?"Charts (".concat(e.length,")"):"Charts"},key:o.CHARTS},{buildLabel:function(n){var t=n.variables;return(null===t||void 0===t?void 0:t.length)>=1?"Variables (".concat(t.length,")"):"Variables"},key:o.VARIABLES},{buildLabel:function(n){var t=n.secrets;return(null===t||void 0===t?void 0:t.length)>=1?"Secrets (".concat(t.length,")"):"Secrets"},key:o.SECRETS},{buildLabel:function(n){var t=(n.pipeline||{}).callbacks,e=void 0===t?[]:t;return(null===e||void 0===e?void 0:e.length)>=1?"Callbacks (".concat(e.length,")"):"Callbacks"},key:o.CALLBACKS},{buildLabel:function(n){var t=(n.pipeline||{}).extensions,e=void 0===t?{}:t,r=0;return Object.values(e).forEach((function(n){var t=n.blocks;r+=(null===t||void 0===t?void 0:t.length)||0})),r>=1?"Power ups (".concat(r,")"):"Power ups"},key:o.EXTENSIONS},{key:o.DATA,label:"Data"},{key:o.TERMINAL,label:"Terminal"}],f=(0,a.HK)(s,(function(n){return n.key})),A=(r={},(0,c.Z)(r,o.CALLBACKS,i.AQ),(0,c.Z)(r,o.CHARTS,i.GQ),(0,c.Z)(r,o.DATA,i.iA),(0,c.Z)(r,o.EXTENSIONS,i.Bf),(0,c.Z)(r,o.GRAPHS,i.GQ),(0,c.Z)(r,o.REPORTS,i.Do),(0,c.Z)(r,o.SECRETS,i.Yo),(0,c.Z)(r,o.SETTINGS,i.Zr),(0,c.Z)(r,o.TERMINAL,i.oI),(0,c.Z)(r,o.TREE,i.mp),(0,c.Z)(r,o.VARIABLES,i.LO),r)},86422:function(n,t,e){e.d(t,{$W:function(){return A},DA:function(){return f},HX:function(){return R},J8:function(){return E},L8:function(){return i},Lq:function(){return l},Qj:function(){return b},Ut:function(){return O},V4:function(){return S},VZ:function(){return p},dO:function(){return s},f2:function(){return h},iZ:function(){return T},t6:function(){return a},tf:function(){return d}});var r,o,c,i,a,u=e(82394);!function(n){n.DYNAMIC="dynamic",n.DYNAMIC_CHILD="dynamic_child",n.REDUCE_OUTPUT="reduce_output"}(i||(i={})),function(n){n.MARKDOWN="markdown",n.PYTHON="python",n.R="r",n.SQL="sql",n.YAML="yaml"}(a||(a={}));var d,l,s=(r={},(0,u.Z)(r,a.MARKDOWN,"MD"),(0,u.Z)(r,a.PYTHON,"PY"),(0,u.Z)(r,a.R,"R"),(0,u.Z)(r,a.SQL,"SQL"),(0,u.Z)(r,a.YAML,"YAML"),r);!function(n){n.CALLBACK="callback",n.CHART="chart",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={})),function(n){n.BLUE="blue",n.GREY="grey",n.PINK="pink",n.PURPLE="purple",n.TEAL="teal",n.YELLOW="yellow"}(l||(l={}));var f,A=[d.CHART,d.CUSTOM,d.DATA_EXPORTER,d.DATA_LOADER,d.SCRATCHPAD,d.SENSOR,d.MARKDOWN,d.TRANSFORMER],p=[d.DATA_EXPORTER,d.DATA_LOADER],E=[d.DATA_EXPORTER,d.DATA_LOADER,d.TRANSFORMER],R=[d.DATA_EXPORTER,d.DATA_LOADER,d.DBT,d.TRANSFORMER],b=[d.CHART,d.SCRATCHPAD,d.SENSOR,d.MARKDOWN],T=[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"}(f||(f={}));var h=[d.CUSTOM,d.DATA_EXPORTER,d.DATA_LOADER,d.TRANSFORMER],S=(o={},(0,u.Z)(o,d.EXTENSION,"Callback"),(0,u.Z)(o,d.CUSTOM,"Custom"),(0,u.Z)(o,d.DATA_EXPORTER,"Data exporter"),(0,u.Z)(o,d.DATA_LOADER,"Data loader"),(0,u.Z)(o,d.EXTENSION,"Extension"),(0,u.Z)(o,d.SCRATCHPAD,"Scratchpad"),(0,u.Z)(o,d.SENSOR,"Sensor"),(0,u.Z)(o,d.MARKDOWN,"Markdown"),(0,u.Z)(o,d.TRANSFORMER,"Transformer"),o),O=[d.DATA_LOADER,d.TRANSFORMER,d.DATA_EXPORTER,d.SENSOR];c={},(0,u.Z)(c,d.DATA_EXPORTER,"DE"),(0,u.Z)(c,d.DATA_LOADER,"DL"),(0,u.Z)(c,d.SCRATCHPAD,"SP"),(0,u.Z)(c,d.SENSOR,"SR"),(0,u.Z)(c,d.MARKDOWN,"MD"),(0,u.Z)(c,d.TRANSFORMER,"TF")},33766:function(n,t,e){e.d(t,{O2:function(){return s},g_:function(){return A},u7:function(){return f}});var r=e(75582),o=e(82394),c=e(34376),i=e.n(c),a=e(59e3),u=e(24224);function d(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,r)}return e}function l(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?d(Object(e),!0).forEach((function(t){(0,o.Z)(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):d(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}var s="_offset";function f(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=t.preserveParams,o=t.pushHistory,c=t.replaceParams,u=(0,a.iV)(),d={};e&&e.forEach((function(n){u[n]&&(d[n]=u[n])}));var s,f=c?d:u;s=window.location.pathname;var A=o?i().push:i().replace,p=l(l({},f),n);Object.entries(n).forEach((function(n){var t=(0,r.Z)(n,2),e=t[0],o=t[1];"undefined"!==typeof o&&null!==o||delete p[e]}));var E=(0,a.uM)(p);E.length>=1&&(E="?".concat(E));var R="".concat(s.split("?")[0]).concat(E);return A(i().router.pathname,R,{shallow:!0})}function A(n,t,e){var o=e.addingMultipleValues,c=e.isList,i=e.itemsPerPage,a=e.pushHistory,d=void 0!==a&&a,A=e.resetLimitParams,p=l({},n);o?Object.entries(t).forEach((function(n){var t=(0,r.Z)(n,2),e=t[0],o=t[1];if(Array.isArray(o)){var c="".concat(e,"[]");p[c]=o.map(String)}})):c?Object.entries(t).forEach((function(n){var t=(0,r.Z)(n,2),e=t[0],o=t[1],c=String(o),i="".concat(e,"[]"),a=p[i];a&&Array.isArray(a)?(a=a.map(String)).includes(c)?p[i]=(0,u.Od)(a,(function(n){return n===c})):p[i]=a.concat(c):p[i]=[c]})):p=l(l({},p),t),A&&(p._limit=i||20,p[s]=0),f(p,{pushHistory:d})}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[547],{1210:function(e,n,t){t.d(n,{Z:function(){return P}});var i=t(82394),r=t(21831),o=t(82684),l=t(47999),c=t(49894),u=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 h=o.forwardRef(p),b=t(32063),g=t(85019),m=t(82531),y=t(66166),v=t(3055),O=t(49125),S=t(91427),I=t(24141);function j(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function x(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?j(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):j(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var P=function(e){var n,t=e.after,i=e.afterHidden,p=e.afterWidth,j=e.afterWidthOverride,P=e.before,N=e.beforeWidth,w=e.breadcrumbs,k=e.children,E=e.errors,Z=e.headerMenuItems,_=e.headerOffset,M=e.mainContainerHeader,C=e.navigationItems,T=e.setErrors,H=e.subheaderChildren,R=e.title,z=e.uuid,A=(0,I.i)().width,L="dashboard_after_width_".concat(z),G="dashboard_before_width_".concat(z),B=(0,o.useRef)(null),D=(0,o.useState)(j?p:(0,S.U2)(L,p)),Y=D[0],U=D[1],F=(0,o.useState)(!1),W=F[0],K=F[1],q=(0,o.useState)(P?Math.max((0,S.U2)(G,N),13*O.iI):null),Q=q[0],J=q[1],V=(0,o.useState)(!1),X=V[0],$=V[1],ee=(0,o.useState)(null)[1],ne=m.ZP.projects.list({},{revalidateOnFocus:!1}).data,te=null===ne||void 0===ne?void 0:ne.projects,ie=[];w?ie.push.apply(ie,(0,r.Z)(w)):(null===te||void 0===te?void 0:te.length)>=1&&ie.push.apply(ie,[{label:function(){var e;return null===(e=te[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},{bold:!0,label:function(){return R}}]),(0,o.useEffect)((function(){null===B||void 0===B||!B.current||W||X||null===ee||void 0===ee||ee(B.current.getBoundingClientRect().width)}),[W,Y,X,Q,B,ee,A]),(0,o.useEffect)((function(){W||(0,S.t8)(L,Y)}),[i,W,Y,L]),(0,o.useEffect)((function(){X||(0,S.t8)(G,Q)}),[X,Q,G]);var re=(0,y.Z)(p);return(0,o.useEffect)((function(){j&&re!==p&&U(p)}),[j,p,re]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(a.Z,{title:R}),(0,f.jsx)(s.Z,{breadcrumbs:ie,menuItems:Z,project:null===te||void 0===te?void 0:te[0],version:null===te||void 0===te||null===(n=te[0])||void 0===n?void 0:n.version}),(0,f.jsxs)(d.Nk,{children:[0!==(null===C||void 0===C?void 0:C.length)&&(0,f.jsx)(d.lm,{showMore:!0,children:(0,f.jsx)(g.Z,{navigationItems:C,showMore:!0})}),(0,f.jsx)(u.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(b.Z,{after:t,afterHeightOffset:v.Mz,afterHidden:i,afterMousedownActive:W,afterWidth:Y,before:P,beforeHeightOffset:v.Mz,beforeMousedownActive:X,beforeWidth:d.k1+(P?Q:0),headerOffset:_,hideAfterCompletely:!0,leftOffset:P?d.k1:null,mainContainerHeader:M,mainContainerRef:B,setAfterMousedownActive:K,setAfterWidth:U,setBeforeMousedownActive:$,setBeforeWidth:J,children:[H&&(0,f.jsx)(h,{children:H}),k]})})]}),E&&(0,f.jsx)(l.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===T||void 0===T?void 0:T(null)},children:(0,f.jsx)(c.Z,x(x({},E),{},{onClose:function(){return null===T||void 0===T?void 0:T(null)}}))})]})}},59920:function(e,n,t){var i;t.d(n,{M:function(){return i}}),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"}(i||(i={}))},60547:function(e,n,t){t.d(n,{Z:function(){return w}});var i=t(82394),r=t(21831),o=t(82684),l=t(34376),c=t(47999),u=t(1210),a=t(34744),s=t(49894),d=t(67971),f=t(87372),p=t(86673),h=t(82531),b=t(9518),g=t(23831),m=t(73942),y=t(49125),v=b.default.div.withConfig({displayName:"indexstyle__BannerStyle",componentId:"sc-1te3pmf-0"})(["border-radius:","px;padding:","px;"," "," ",""],m.n_,3*y.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 ')})),O=t(3055),S=t(36405),I=t(96510),j=t(24141),x=t(28598);function P(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function N(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?P(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):P(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var w=function(e){var n=e.after,t=e.afterHidden,i=e.afterWidth,b=e.before,g=e.beforeWidth,m=e.breadcrumbs,P=e.buildSidekick,w=e.children,k=e.errors,E=e.headline,Z=e.pageName,_=e.pipeline,M=e.setErrors,C=e.subheader,T=e.subheaderBackground,H=e.subheaderBackgroundImage,R=e.subheaderButton,z=e.subheaderText,A=e.title,L=e.uuid,G=(0,j.i)().height,B=(0,l.useRouter)().query.pipeline,D=_.uuid,Y=h.ZP.pipelines.detail(D,{includes_outputs:!1},{revalidateOnFocus:!1}).data,U=null===Y||void 0===Y?void 0:Y.pipeline;(0,o.useEffect)((function(){(0,I.bB)(Y,M)}),[Y,M]);var F=(0,o.useMemo)((function(){return n||(P?P({height:G,heightOffset:O.Mz,pipeline:U}):null)}),[n,P,G,U]),W=i||(F?50*y.iI:null),K=(0,o.useMemo)((function(){var e=[];return U?(e.push.apply(e,[{label:function(){return"Pipelines"},linkProps:{href:"/pipelines"}}]),m?(e.push({label:function(){return U.uuid},linkProps:{as:"/pipelines/".concat(D,"/triggers"),href:"/pipelines/[pipeline]/triggers"}}),e.push.apply(e,(0,r.Z)(m)),e[e.length-1].bold=!0):e.push({bold:!0,label:function(){return U.name}})):null!==Y&&void 0!==Y&&Y.error&&e.push({bold:!0,danger:!0,label:function(){return"Error loading pipeline"}}),e}),[m,null===Y||void 0===Y?void 0:Y.error,U,D]);return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)(u.Z,{after:F,afterHidden:t,afterWidth:W,before:b,beforeWidth:g,breadcrumbs:K,navigationItems:(0,S.H)(Z,U,B),subheaderChildren:"undefined"!==typeof C&&C,title:U?A?A(U):U.name:null,uuid:L,children:[(R||z)&&(0,x.jsx)(p.Z,{mb:y.Mq,mt:y.cd,mx:y.cd,children:(0,x.jsx)(v,{background:T,backgroundImage:H,children:(0,x.jsxs)(d.Z,{alignItems:"center",children:[R,z&&(0,x.jsx)(p.Z,{ml:3}),z]})})}),E&&(0,x.jsx)(p.Z,{p:y.cd,children:(0,x.jsxs)(p.Z,{mt:y.cd,px:y.cd,children:[(0,x.jsx)(f.Z,{level:5,children:E}),(0,x.jsx)(a.Z,{light:!0,mt:y.cd,short:!0})]})}),w]}),k&&(0,x.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===M||void 0===M?void 0:M(null)},children:(0,x.jsx)(s.Z,N(N({},k),{},{onClose:function(){return null===M||void 0===M?void 0:M(null)}}))})]})}},36405:function(e,n,t){t.d(n,{H:function(){return c}});var i=t(98781),r=t(10503),o=t(59920),l=t(9736);function c(e,n,t){var c=(n||{}).uuid||t,u=[{Icon:r.Bf,id:o.M.TRIGGERS,isSelected:function(){return o.M.TRIGGERS===e},label:function(){return"Triggers"},linkProps:{as:"/pipelines/".concat(c,"/triggers"),href:"/pipelines/[pipeline]/triggers"}},{Icon:r.Pf,id:o.M.RUNS,isSelected:function(){return o.M.RUNS===e},label:function(){return"Runs"},linkProps:{as:"/pipelines/".concat(c,"/runs"),href:"/pipelines/[pipeline]/runs"}},{Icon:r.dE,id:o.M.BACKFILLS,isSelected:function(){return o.M.BACKFILLS===e},label:function(){return"Backfills"},linkProps:{as:"/pipelines/".concat(c,"/backfills"),href:"/pipelines/[pipeline]/backfills"}},{Icon:r.UL,id:o.M.PIPELINE_LOGS,isSelected:function(){return o.M.PIPELINE_LOGS===e},label:function(){return"Logs"},linkProps:{as:"/pipelines/".concat(c,"/logs"),href:"/pipelines/[pipeline]/logs"}},{Icon:r.ug,id:o.M.MONITOR,isSelected:function(){return o.M.MONITOR===e},label:function(){return"Monitor"},linkProps:{as:"/pipelines/".concat(c,"/monitors"),href:"/pipelines/[pipeline]/monitors"}}];return i.qL.INTEGRATION===(null===n||void 0===n?void 0:n.type)&&u.unshift({Icon:r.Nt,id:o.M.SYNCS,isSelected:function(){return o.M.SYNCS===e},label:function(){return"Syncs"},linkProps:{as:"/pipelines/".concat(c,"/syncs"),href:"/pipelines/[pipeline]/syncs"}}),(0,l.Ct)()||(u.unshift({Icon:r.EK,disabled:!c,id:o.M.EDIT,isSelected:function(){return o.M.EDIT===e},label:function(){return"Edit pipeline"},linkProps:{as:"/pipelines/".concat(c,"/edit"),href:"/pipelines/[pipeline]/edit"}}),u.push({Icon:r.Zr,id:o.M.SETTINGS,isSelected:function(){return o.M.SETTINGS===e},label:function(){return"Pipeline settings"},linkProps:{as:"/pipelines/".concat(c,"/settings"),href:"/pipelines/[pipeline]/settings"}})),u}},98781:function(e,n,t){t.d(n,{$1:function(){return u},G7:function(){return s},QK:function(){return c},a_:function(){return d},qL:function(){return o},r0:function(){return a}});var i,r,o,l=t(82394);!function(e){e.INTEGRATION="integration",e.PYTHON="python",e.PYSPARK="pyspark",e.STREAMING="streaming"}(o||(o={}));var c,u,a,s=(i={},(0,l.Z)(i,o.INTEGRATION,"Integration"),(0,l.Z)(i,o.PYTHON,"Standard"),(0,l.Z)(i,o.PYSPARK,"PySpark"),(0,l.Z)(i,o.STREAMING,"Streaming"),i);!function(e){e.ACTIVE="active",e.INACTIVE="inactive",e.NO_SCHEDULES="no_schedules",e.RETRY="retry"}(c||(c={})),function(e){e.GROUP="group_by",e.STATUS="status[]",e.TYPE="type[]"}(u||(u={})),function(e){e.STATUS="status",e.TYPE="type"}(a||(a={}));var d=(r={},(0,l.Z)(r,o.PYTHON,"python3"),(0,l.Z)(r,o.PYSPARK,"pysparkkernel"),r)},87372:function(e,n,t){var i,r,o,l,c,u,a,s,d=t(82394),f=t(26304),p=t(26653),h=t(9518),b=t(33591),g=t(23831),m=t(2005),y=t(31012),v=t(19711),O=t(49125),S=t(86673),I=t(28598),j=["children","condensed","inline","level","marketing","spacingBelow"];function x(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function P(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?x(Object(t),!0).forEach((function(n){(0,d.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):x(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var N=(0,h.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],v.IH,(function(e){return e.color&&"\n color: ".concat(e.color,"\n ")}),(function(e){return e.yellow&&"\n color: ".concat((e.theme.accent||g.Z.accent).yellow,";\n ")}),(function(e){return e.center&&"\n text-align: center;\n "}),(function(e){return!e.monospace&&0===Number(e.weightStyle)&&"\n font-family: ".concat(m.iI,";\n ")}),(function(e){return!e.monospace&&1===Number(e.weightStyle)&&"\n font-family: ".concat(m.LX,";\n ")}),(function(e){return!e.monospace&&2===Number(e.weightStyle)&&"\n font-family: ".concat(m.LX,";\n ")}),(function(e){return!e.monospace&&3===Number(e.weightStyle)&&"\n font-family: ".concat(m.ry,";\n ")}),(function(e){return!e.monospace&&4===Number(e.weightStyle)&&"\n font-family: ".concat(m.YC,";\n ")}),(function(e){return!e.monospace&&5===Number(e.weightStyle)&&"\n font-family: ".concat(m.nF,";\n ")}),(function(e){return!e.monospace&&(6===Number(e.weightStyle)||e.bold)&&"\n font-family: ".concat(m.nF,";\n ")}),(function(e){return!e.monospace&&7===Number(e.weightStyle)&&"\n font-family: ".concat(m.nF,";\n ")}),(function(e){return!e.monospace&&8===Number(e.weightStyle)&&"\n font-family: ".concat(m.nF,";\n ")}),(function(e){return e.lineHeightAuto&&"\n line-height: normal !important;\n "})),w=h.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(e){return"\n color: ".concat((e.theme.content||g.Z.content).active,";\n ")})),k=h.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],N,b.media.md(i||(i=(0,p.Z)(["\n ","\n "])),y.aQ),b.media.lg(r||(r=(0,p.Z)(["\n ","\n "])),y.aQ),b.media.xl(o||(o=(0,p.Z)(["\n ","\n "])),y.aQ)),E=h.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],N,y.MJ),Z=h.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],N,b.media.xs(l||(l=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*O.iI,7*O.iI),b.media.sm(c||(c=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*O.iI,7*O.iI),b.media.md(u||(u=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*O.iI,7*O.iI),b.media.lg(a||(a=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*O.iI,7*O.iI),b.media.xl(s||(s=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*O.iI,7*O.iI)),_=h.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],N,y.BL),M=h.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],N),C=h.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],N),T=h.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],N),H=h.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],N,(function(e){return 1===e.level&&"\n ".concat(y.MJ,"\n ")}),(function(e){return 2===e.level&&"\n ".concat(y.BL,"\n ")}),(function(e){return 3===e.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(e){return 4===e.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),R=function(e){var n,t=e.children,i=e.condensed,r=e.inline,o=e.level,l=e.marketing,c=e.spacingBelow,u=(0,f.Z)(e,j);r?n=H:0===Number(o)?n=k:1===Number(o)?n=l?Z:E:2===Number(o)?n=_:3===Number(o)?n=M:4===Number(o)?n=C:5===Number(o)&&(n=T);var a=(0,I.jsxs)(n,P(P({},u),{},{level:o,children:[c&&(0,I.jsx)(S.Z,{mb:i?2:3,children:t}),!c&&t]}));return r?a:(0,I.jsx)(w,{children:a})};R.defaultProps={level:3,weightStyle:6},n.Z=R}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7400],{98677:function(n,e,t){function r(n,e,t){n=+n,e=+e,t=(i=arguments.length)<2?(e=n,n=0,1):i<3?1:+t;for(var r=-1,i=0|Math.max(0,Math.ceil((e-n)/t)),o=new Array(i);++r<i;)o[r]=n+r*t;return o}t.d(e,{Z:function(){return a}});var i=t(8208),o=t(8162);function u(){var n,e,t=(0,o.Z)().unknown(void 0),c=t.domain,a=t.range,l=0,s=1,f=!1,d=0,p=0,h=.5;function v(){var t=c().length,i=s<l,o=i?s:l,u=i?l:s;n=(u-o)/Math.max(1,t-d+2*p),f&&(n=Math.floor(n)),o+=(u-o-n*(t-d))*h,e=n*(1-d),f&&(o=Math.round(o),e=Math.round(e));var v=r(t).map((function(e){return o+n*e}));return a(i?v.reverse():v)}return delete t.unknown,t.domain=function(n){return arguments.length?(c(n),v()):c()},t.range=function(n){return arguments.length?([l,s]=n,l=+l,s=+s,v()):[l,s]},t.rangeRound=function(n){return[l,s]=n,l=+l,s=+s,f=!0,v()},t.bandwidth=function(){return e},t.step=function(){return n},t.round=function(n){return arguments.length?(f=!!n,v()):f},t.padding=function(n){return arguments.length?(d=Math.min(1,p=+n),v()):d},t.paddingInner=function(n){return arguments.length?(d=Math.min(1,n),v()):d},t.paddingOuter=function(n){return arguments.length?(p=+n,v()):p},t.align=function(n){return arguments.length?(h=Math.max(0,Math.min(1,n)),v()):h},t.copy=function(){return u(c(),[l,s]).round(f).paddingInner(d).paddingOuter(p).align(h)},i.o.apply(v(),arguments)}var c=(0,t(93342).Z)("domain","range","reverse","align","padding","round");function a(n){return c(u(),n)}},62072:function(n,e,t){function r(n){return null==n?void 0:n[0]}function i(n){return null==n?void 0:n[1]}t.d(e,{l8:function(){return r},xf:function(){return i}})},53989:function(n,e,t){function r(n){if("bandwidth"in n)return n.bandwidth();var e=n.range(),t=n.domain();return Math.abs(e[e.length-1]-e[0])/t.length}t.d(e,{Z:function(){return r}})},59309:function(n,e,t){t.d(e,{ZP:function(){return l}});var r=t(12759),i=t(27500),o=t(82610),u=t(34812),c=t(77944),a={expand:r.Z,diverging:i.Z,none:o.Z,silhouette:u.Z,wiggle:c.Z};Object.keys(a);function l(n){return n&&a[n]||a.none}},18246:function(n,e,t){t.d(e,{ZP:function(){return l}});var r=t(39586),i=t(25516),o=t(54164),u=t(8512),c=t(2010),a={ascending:r.Z,descending:i.Z,insideout:o.Z,none:u.Z,reverse:c.Z};Object.keys(a);function l(n){return n&&a[n]||a.none}},13946:function(n,e,t){t.d(e,{t:function(){return r}});var r=Array.prototype.slice},27500:function(n,e,t){function r(n,e){if((c=n.length)>0)for(var t,r,i,o,u,c,a=0,l=n[e[0]].length;a<l;++a)for(o=u=0,t=0;t<c;++t)(i=(r=n[e[t]][a])[1]-r[0])>0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=u,r[0]=u+=i):(r[0]=0,r[1]=i)}t.d(e,{Z:function(){return r}})},12759:function(n,e,t){t.d(e,{Z:function(){return i}});var r=t(82610);function i(n,e){if((i=n.length)>0){for(var t,i,o,u=0,c=n[0].length;u<c;++u){for(o=t=0;t<i;++t)o+=n[t][u][1]||0;if(o)for(t=0;t<i;++t)n[t][u][1]/=o}(0,r.Z)(n,e)}}},82610:function(n,e,t){function r(n,e){if((i=n.length)>1)for(var t,r,i,o=1,u=n[e[0]],c=u.length;o<i;++o)for(r=u,u=n[e[o]],t=0;t<c;++t)u[t][1]+=u[t][0]=isNaN(r[t][1])?r[t][0]:r[t][1]}t.d(e,{Z:function(){return r}})},34812:function(n,e,t){t.d(e,{Z:function(){return i}});var r=t(82610);function i(n,e){if((t=n.length)>0){for(var t,i=0,o=n[e[0]],u=o.length;i<u;++i){for(var c=0,a=0;c<t;++c)a+=n[c][i][1]||0;o[i][1]+=o[i][0]=-a/2}(0,r.Z)(n,e)}}},77944:function(n,e,t){t.d(e,{Z:function(){return i}});var r=t(82610);function i(n,e){if((o=n.length)>0&&(i=(t=n[e[0]]).length)>0){for(var t,i,o,u=0,c=1;c<i;++c){for(var a=0,l=0,s=0;a<o;++a){for(var f=n[e[a]],d=f[c][1]||0,p=(d-(f[c-1][1]||0))/2,h=0;h<a;++h){var v=n[e[h]];p+=(v[c][1]||0)-(v[c-1][1]||0)}l+=d,s+=p*d}t[c-1][1]+=t[c-1][0]=u,l&&(u-=s/l)}t[c-1][1]+=t[c-1][0]=u,(0,r.Z)(n,e)}}},34128:function(n,e,t){t.d(e,{Z:function(){return i}});var r=t(8512);function i(n){var e=n.map(o);return(0,r.Z)(n).sort((function(n,t){return e[n]-e[t]}))}function o(n){for(var e,t=-1,r=0,i=n.length,o=-1/0;++t<i;)(e=+n[t][1])>o&&(o=e,r=t);return r}},39586:function(n,e,t){t.d(e,{S:function(){return o},Z:function(){return i}});var r=t(8512);function i(n){var e=n.map(o);return(0,r.Z)(n).sort((function(n,t){return e[n]-e[t]}))}function o(n){for(var e,t=0,r=-1,i=n.length;++r<i;)(e=+n[r][1])&&(t+=e);return t}},25516:function(n,e,t){t.d(e,{Z:function(){return i}});var r=t(39586);function i(n){return(0,r.Z)(n).reverse()}},54164:function(n,e,t){t.d(e,{Z:function(){return o}});var r=t(34128),i=t(39586);function o(n){var e,t,o=n.length,u=n.map(i.S),c=(0,r.Z)(n),a=0,l=0,s=[],f=[];for(e=0;e<o;++e)t=c[e],a<l?(a+=u[t],s.push(t)):(l+=u[t],f.push(t));return f.reverse().concat(s)}},8512:function(n,e,t){function r(n){for(var e=n.length,t=new Array(e);--e>=0;)t[e]=e;return t}t.d(e,{Z:function(){return r}})},2010:function(n,e,t){t.d(e,{Z:function(){return i}});var r=t(8512);function i(n){return(0,r.Z)(n).reverse()}},75823:function(n,e,t){t.d(e,{Z:function(){return a}});var r=t(13946),i=t(90875),o=t(82610),u=t(8512);function c(n,e){return n[e]}function a(){var n=(0,i.Z)([]),e=u.Z,t=o.Z,a=c;function l(r){var i,o,u=n.apply(this,arguments),c=r.length,l=u.length,s=new Array(l);for(i=0;i<l;++i){for(var f,d=u[i],p=s[i]=new Array(c),h=0;h<c;++h)p[h]=f=[0,+a(r[h],d,h,r)],f.data=r[h];p.key=d}for(i=0,o=e(s);i<l;++i)s[o[i]].index=i;return t(s,o),s}return l.keys=function(e){return arguments.length?(n="function"===typeof e?e:(0,i.Z)(r.t.call(e)),l):n},l.value=function(n){return arguments.length?(a="function"===typeof n?n:(0,i.Z)(+n),l):a},l.order=function(n){return arguments.length?(e=null==n?u.Z:"function"===typeof n?n:(0,i.Z)(r.t.call(n)),l):e},l.offset=function(n){return arguments.length?(t=null==n?o.Z:n,l):t},l}},92953:function(n,e,t){var r;t.d(e,{C:function(){return i},a:function(){return r}}),function(n){n.BLOCK_RUNS="block_runs",n.BLOCK_RUNTIME="block_runtime",n.PIPELINE_RUNS="pipeline_runs"}(r||(r={}));var i=-50},87465:function(n,e,t){t.d(e,{Z:function(){return g}});t(82684);var r=t(34376),i=t(87372),o=t(60547),u=t(86673),c=t(19711),a=t(2850),l=t(9518),s=t(23831),f=t(49125),d=l.default.div.withConfig({displayName:"indexstyle__LinkStyle",componentId:"sc-1in9sst-0"})(["padding:","px ","px;"," ",""],f.iI,f.tr,(function(n){return n.selected&&"\n background-color: ".concat((n.theme.interactive||s.Z.interactive).checked,";\n ")}),(function(n){return!n.selected&&"\n cursor: pointer;\n "})),p=t(92953),h=t(59920),v=t(28598);var g=function(n){var e=n.breadcrumbs,t=n.children,l=n.errors,s=n.monitorType,g=n.pipeline,m=n.setErrors,y=n.subheader,Z=(0,r.useRouter)();return(0,v.jsx)(o.Z,{before:(0,v.jsxs)(a.M,{children:[(0,v.jsx)(u.Z,{p:f.cd,children:(0,v.jsx)(i.Z,{level:4,muted:!0,children:"Insights"})}),(0,v.jsx)(d,{onClick:function(n){n.preventDefault(),Z.push("/pipelines/[pipeline]/monitors","/pipelines/".concat(null===g||void 0===g?void 0:g.uuid,"/monitors"))},selected:p.a.PIPELINE_RUNS==s,children:(0,v.jsx)(c.ZP,{children:"Pipeline runs"})}),(0,v.jsx)(d,{onClick:function(n){n.preventDefault(),Z.push("/pipelines/[pipeline]/monitors/block-runs","/pipelines/".concat(null===g||void 0===g?void 0:g.uuid,"/monitors/block-runs"))},selected:p.a.BLOCK_RUNS==s,children:(0,v.jsx)(c.ZP,{children:"Block runs"})}),(0,v.jsx)(d,{onClick:function(n){n.preventDefault(),Z.push("/pipelines/[pipeline]/monitors/block-runtime","/pipelines/".concat(null===g||void 0===g?void 0:g.uuid,"/monitors/block-runtime"))},selected:p.a.BLOCK_RUNTIME==s,children:(0,v.jsx)(c.ZP,{children:"Block runtime"})})]}),breadcrumbs:e,errors:l,pageName:h.M.MONITOR,pipeline:g,setErrors:m,subheader:y,uuid:"pipeline/monitor",children:t})}},2850:function(n,e,t){t.d(e,{M:function(){return u},W:function(){return o}});var r=t(9518),i=t(3055),o=34*t(49125).iI,u=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);"],i.Mz)},21679:function(n,e,t){t.d(e,{Z:function(){return z}});var r=t(26304),i=t(82394),o=t(21831),u=t(82684),c=t(84969),a=t(90948),l=t(63588),s=t.n(l),f=t(75823),d=t(29989),p=t(62072),h=t(53989),v=t(13004),g=t(18246),m=t(59309),y=t(65743),Z=["data","className","top","left","x","y0","y1","xScale","yScale","color","keys","value","order","offset","children"];function b(){return b=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},b.apply(this,arguments)}function x(n){var e=n.data,t=n.className,r=n.top,i=n.left,o=n.x,c=n.y0,a=void 0===c?p.l8:c,l=n.y1,x=void 0===l?p.xf:l,w=n.xScale,j=n.yScale,k=n.color,O=n.keys,P=n.value,E=n.order,M=n.offset,_=n.children,S=function(n,e){if(null==n)return{};var t,r,i={},o=Object.keys(n);for(r=0;r<o.length;r++)t=o[r],e.indexOf(t)>=0||(i[t]=n[t]);return i}(n,Z),T=(0,f.Z)();O&&T.keys(O),P&&(0,v.Z)(T.value,P),E&&T.order((0,g.ZP)(E)),M&&T.offset((0,m.ZP)(M));var N=T(e),I=(0,h.Z)(w),A=N.map((function(n,e){var t=n.key;return{index:e,key:t,bars:n.map((function(e,r){var i=(j(a(e))||0)-(j(x(e))||0),u=j(x(e)),c="bandwidth"in w?w(o(e.data)):Math.max((w(o(e.data))||0)-I/2);return{bar:e,key:t,index:r,height:i,width:I,x:c||0,y:u||0,color:k(n.key,r)}}))}}));return _?u.createElement(u.Fragment,null,_(A)):u.createElement(d.Z,{className:s()("visx-bar-stack",t),top:r,left:i},A.map((function(n){return n.bars.map((function(e){return u.createElement(y.Z,b({key:"bar-stack-"+n.index+"-"+e.index,x:e.x,y:e.y,height:e.height,width:e.width,fill:e.color},S))}))})))}var w=t(67778),j=t(17066),k=t(29179),O=t(65376),P=t(48072),E=t(98677),M=t(84181),_=t(24903),S=t(67971),T=t(26226),N=t(19711),I=t(52359),A=t(23831),C=t(73942),L=t(2005),D=t(49125),R=t(344),F=t(28598),U=["height","width","xAxisLabel","yAxisLabel"];function B(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function V(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?B(Object(t),!0).forEach((function(e){(0,i.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):B(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function Y(n){var e=n.colors,t=n.data,r=n.getXValue,i=(n.getYValue,n.height),u=n.keys,l=n.margin,s=n.numYTicks,f=n.showLegend,p=n.tooltipLeftOffset,h=void 0===p?0:p,v=n.width,g=n.xLabelFormat,m=n.yLabelFormat,y=(0,k.Z)(),Z=y.hideTooltip,b=y.showTooltip,S=y.tooltipData,T=y.tooltipLeft,I=y.tooltipOpen,D=y.tooltipTop,U=v-(l.left+l.right),B=i-(l.bottom+l.top),Y=t.reduce((function(n,e){var t=e,r=u.reduce((function(n,e){return Number(t[e])&&(n+=Number(t[e])),n}),0);return n.push(r),n}),[]),z=(0,E.Z)({domain:t.map(r),padding:.4,range:[0,U],round:!1}),K=(0,M.Z)({domain:[0,Math.max.apply(Math,(0,o.Z)(Y))],range:[B,0],round:!0}),H=(0,_.Z)({domain:u,range:e});return(0,F.jsxs)("div",{style:{position:"relative"},children:[(0,F.jsxs)("svg",{height:i,width:v,children:[(0,F.jsx)("rect",{fill:"#2E3036",height:i,rx:14,width:v,x:0,y:0}),(0,F.jsx)(w.Z,{height:B,left:l.left,scale:K,stroke:"black",strokeOpacity:.2,top:l.top,width:U}),(0,F.jsx)(d.Z,{top:l.top,children:(0,F.jsx)(x,{color:H,data:t,keys:u,value:function(n,e){return n[e]||0},x:r,xScale:z,yScale:K,children:function(n){return n.map((function(n){return n.bars.map((function(e){return(0,F.jsx)("rect",{fill:e.color,height:e.height,onMouseLeave:Z,onMouseMove:function(n){var t=(0,P.Z)(n),r=e.x+e.width/2+h;b({tooltipData:e,tooltipLeft:r,tooltipTop:(null===t||void 0===t?void 0:t.y)+10})},width:e.width,x:e.x,y:e.y},"bar-stack-".concat(n.index,"-").concat(e.index))}))}))}})}),(0,F.jsx)(c.Z,{hideTicks:!0,left:l.left,numTicks:s,scale:K,stroke:A.Z.content.muted,tickFormat:function(n){return m?m(n):(0,R.P5)(n)},tickLabelProps:function(){return{fill:A.Z.content.muted,fontFamily:L.ry,fontSize:11,textAnchor:"end",transform:"translate(0,2.5)"}},top:l.top}),(0,F.jsx)(a.Z,{hideTicks:!0,left:l.left,scale:z,stroke:A.Z.content.muted,tickFormat:g,tickLabelProps:function(){return{fill:A.Z.content.muted,fontFamily:L.ry,fontSize:11,textAnchor:"middle"}},top:B+l.top})]}),f&&(0,F.jsx)("div",{style:{display:"flex",fontSize:"14px",justifyContent:"center",position:"absolute",top:l.top/2-10,width:"100%"},children:(0,F.jsx)(j.Z,{direction:"row",labelMargin:"0 15px 0 0",scale:H})}),I&&S&&(0,F.jsxs)(O.Z,{left:T,style:V(V({},O.j),{},{backgroundColor:A.Z.background.page,borderRadius:"".concat(C.TR,"px"),padding:".3rem .4rem"}),top:D,children:[(0,F.jsx)(N.ZP,{bold:!0,color:H(S.key),children:S.key}),(0,F.jsx)(N.ZP,{children:S.bar.data[S.key]}),(0,F.jsx)(N.ZP,{children:r(S.bar.data)})]})]})}var z=function(n){var e=n.height,t=n.width,i=n.xAxisLabel,o=n.yAxisLabel,u=(0,r.Z)(n,U);return(0,F.jsx)(F.Fragment,{children:(0,F.jsxs)("div",{style:{height:e,marginBottom:D.iI,width:t},children:[o&&(0,F.jsx)(S.Z,{alignItems:"center",fullHeight:!0,justifyContent:"center",width:28,children:(0,F.jsx)(I.Z,{children:(0,F.jsx)(N.ZP,{center:!0,muted:!0,small:!0,children:o})})}),(0,F.jsx)("div",{style:{height:e,width:o?0===t?t:t-28:t},children:(0,F.jsx)(T.Z,{children:function(n){var e=n.height,t=n.width;return(0,F.jsx)(Y,V(V({},u),{},{height:e,width:t}))}})}),i&&(0,F.jsx)("div",{style:{paddingLeft:o?36:0,paddingTop:4},children:(0,F.jsx)(N.ZP,{center:!0,muted:!0,small:!0,children:i})})]})})}},52359:function(n,e,t){var r=t(9518).default.div.withConfig({displayName:"YAxisLabelContainer",componentId:"sc-qwp21x-0"})(["-webkit-transform:rotate(-90deg);-moz-transform:rotate(-90deg);-o-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg);white-space:nowrap;"]);e.Z=r},344:function(n,e,t){t.d(e,{P5:function(){return i},Vs:function(){return o}});t(90211);var r=Intl.NumberFormat("en-US",{notation:"compact",maximumFractionDigits:2});function i(n){return"number"!==typeof n?n:n>=1e4?r.format(n):n.toString()}function o(n,e,t){var r,i;if("undefined"===typeof n||"undefined"===typeof e)return 0;var o=null===n||void 0===n||null===(r=n(e,t))||void 0===r||null===(i=r.props)||void 0===i?void 0:i.children;return(Array.isArray(o)?o:[o]).join("").length}},93348:function(n,e,t){t.d(e,{TR:function(){return f},U5:function(){return a},Xm:function(){return o},Z4:function(){return s},fq:function(){return c},kJ:function(){return l}});var r,i,o,u=t(82394);!function(n){n.API="api",n.EVENT="event",n.TIME="time"}(o||(o={}));var c,a,l,s=(r={},(0,u.Z)(r,o.API,(function(){return"API"})),(0,u.Z)(r,o.EVENT,(function(){return"event"})),(0,u.Z)(r,o.TIME,(function(){return"schedule"})),r);!function(n){n.ACTIVE="active",n.INACTIVE="inactive"}(c||(c={})),function(n){n.ONCE="@once",n.HOURLY="@hourly",n.DAILY="@daily",n.WEEKLY="@weekly",n.MONTHLY="@monthly"}(a||(a={})),function(n){n.CREATED_AT="created_at",n.NAME="name",n.PIPELINE="pipeline_uuid",n.STATUS="status",n.TYPE="schedule_type"}(l||(l={}));var f=(i={},(0,u.Z)(i,l.CREATED_AT,"Created at"),(0,u.Z)(i,l.NAME,"Name"),(0,u.Z)(i,l.PIPELINE,"Pipeline"),(0,u.Z)(i,l.STATUS,"Status"),(0,u.Z)(i,l.TYPE,"Type"),i)},67400:function(n,e,t){t.r(e),t.d(e,{BAR_STACK_COLORS:function(){return I},BAR_STACK_STATUSES:function(){return A}});var r=t(77837),i=t(75582),o=t(82394),u=t(38860),c=t.n(u),a=t(82684),l=t(12691),s=t.n(l),f=t(92083),d=t.n(f),p=t(9518),h=t(21679),v=t(67971),g=t(87372),m=t(10919),y=t(87465),Z=t(41788),b=t(86673),x=t(19711),w=t(82531),j=t(23831),k=t(10503),O=t(92953),P=t(93348),E=t(49125),M=t(90211),_=t(28598);function S(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function T(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?S(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):S(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var N=p.default.div.withConfig({displayName:"monitors__GradientTextStyle",componentId:"sc-1is2m2l-0"})(["background:linear-gradient(90deg,#7D55EC 28.12%,#2AB2FE 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;text-fill-color:transparent;"]),I=[j.Z.accent.warning,j.Z.background.success,j.Z.accent.negative,j.Z.content.active,j.Z.interactive.linkPrimary],A=["cancelled","completed","failed","initial","running"];function C(n){var e=n.pipeline.uuid,t=(0,a.useState)(null),r=t[0],u=t[1],c=w.ZP.pipeline_schedules.pipelines.list(e).data,l=(0,a.useMemo)((function(){return null===c||void 0===c?void 0:c.pipeline_schedules}),[c]),f=(0,a.useMemo)((function(){return null===l||void 0===l?void 0:l.reduce((function(n,e){return T(T({},n),{},(0,o.Z)({},null===e||void 0===e?void 0:e.id,e))}),{})}),[l]),p=w.ZP.pipelines.detail(e,{includes_content:!1,includes_outputs:!1},{revalidateOnFocus:!1}).data,Z=(0,a.useMemo)((function(){return T(T({},null===p||void 0===p?void 0:p.pipeline),{},{uuid:e})}),[p,e]),j=w.ZP.monitor_stats.detail("pipeline_run_count",{pipeline_uuid:null===Z||void 0===Z?void 0:Z.uuid}).data,S=((null===j||void 0===j?void 0:j.monitor_stat)||{}).stats,C=(0,a.useMemo)((function(){for(var n=new Date,e=[],t=0;t<90;t++)e.unshift(n.toISOString().split("T")[0]),n.setDate(n.getDate()-1);return e}),[]),L=(0,a.useMemo)((function(){if(S){var n=Object.entries(S).reduce((function(n,e){var t=(0,i.Z)(e,2),r=(t[0],t[1].data),o={};return Object.entries(r).forEach((function(e){var t=(0,i.Z)(e,2),r=t[0],u=t[1],c={};r in n&&(c=n[r]);var a={};Object.entries(u).forEach((function(n){var e,t=(0,i.Z)(n,2),r=t[0],o=t[1],u=null!==(e=c)&&void 0!==e&&e[r]?c[r]:0;a[r]=u+o})),o[r]=T(T({},c),a)})),T(T({},n),o)}),{});return C.map((function(e){return T({date:e},n[e]||{})}))}return[]}),[C,S]),D=(0,a.useMemo)((function(){if(S)return Object.entries(S).reduce((function(n,e){var t=(0,i.Z)(e,2),r=t[0],u=t[1].data,c=C.map((function(n){return T({date:n},u[n]||{})}));return T(T({},n),{},(0,o.Z)({},r,c))}),{})}),[C,S]),R=(0,a.useMemo)((function(){var n=[];return n.push({bold:!0,label:function(){return"Monitors"}}),n}),[]);return(0,_.jsx)(y.Z,{breadcrumbs:R,errors:r,monitorType:O.a.PIPELINE_RUNS,pipeline:Z,setErrors:u,children:(0,_.jsxs)(b.Z,{mt:2,mx:2,children:[(0,_.jsx)(b.Z,{ml:1,children:(0,_.jsx)(N,{children:(0,_.jsx)(g.Z,{children:"All pipeline runs"})})}),(0,_.jsx)(b.Z,{mt:1,children:(0,_.jsx)(h.Z,{colors:I,data:L,getXValue:function(n){return n.date},height:200,keys:A,margin:{bottom:30,left:35,right:0,top:10},tooltipLeftOffset:O.C,xLabelFormat:function(n){return d()(n).format("MMM DD")}})}),D&&Object.entries(D).map((function(n){var t,r=(0,i.Z)(n,2),o=r[0],u=r[1],c=null===f||void 0===f?void 0:f[o];return(0,_.jsxs)(b.Z,{mt:3,children:[(0,_.jsxs)(v.Z,{alignItems:"center",children:[(0,_.jsx)(b.Z,{mx:1,children:(0,_.jsx)(N,{children:(0,_.jsx)(x.ZP,{bold:!0,large:!0,children:(0,M.kC)(null===(t=P.Z4[null===c||void 0===c?void 0:c.schedule_type])||void 0===t?void 0:t.call(P.Z4))})})}),(0,_.jsx)(s(),{as:"/pipelines/".concat(e,"/triggers/").concat(null===c||void 0===c?void 0:c.id),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,_.jsx)(m.Z,{children:(0,_.jsxs)(v.Z,{alignItems:"center",children:[(0,_.jsx)(g.Z,{level:5,children:(null===c||void 0===c?void 0:c.name)||o}),(0,_.jsx)(b.Z,{ml:1}),(0,_.jsx)(k._Q,{default:!0,size:2*E.iI})]})})})]}),(0,_.jsx)(b.Z,{mt:1,children:(0,_.jsx)(h.Z,{colors:I,data:u,getXValue:function(n){return n.date},height:200,keys:A,margin:{bottom:30,left:35,right:0,top:10},tooltipLeftOffset:O.C,xLabelFormat:function(n){return d()(n).format("MMM DD")}})})]},o)}))]})})}C.getInitialProps=function(){var n=(0,r.Z)(c().mark((function n(e){var t;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=e.query.pipeline,n.abrupt("return",{pipeline:{uuid:t}});case 2:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),e.default=(0,Z.Z)(C)},90211:function(n,e,t){t.d(e,{RA:function(){return s},kC:function(){return f},vg:function(){return y},kE:function(){return k},T3:function(){return x},Mp:function(){return d},Pb:function(){return a},HW:function(){return b},wX:function(){return p},x6:function(){return h},_6:function(){return v},zf:function(){return Z},Y6:function(){return j},wE:function(){return O},J3:function(){return g},We:function(){return l},QV:function(){return w},C5:function(){return m}});var r=t(75582),i=t(17717),o=["aged","ancient","autumn","billowing","bitter","black","blue","bold","broken","cold","cool","crimson","damp","dark","dawn","delicate","divine","dry","empty","falling","floral","fragrant","frosty","green","hidden","holy","icy","late","lingering","little","lively","long","misty","morning","muddy","nameless","old","patient","polished","proud","purple","quiet","red","restless","rough","shy","silent","small","snowy","solitary","sparkling","spring","still","summer","throbbing","twilight","wandering","weathered","white","wild","winter","wispy","withered","young"],u=(t(92083),["bird","breeze","brook","bush","butterfly","cherry","cloud","darkness","dawn","dew","dream","dust","feather","field","fire","firefly","flower","fog","forest","frog","frost","glade","glitter","grass","haze","hill","lake","leaf","meadow","moon","morning","mountain","night","paper","pine","pond","rain","resonance","river","sea","shadow","shape","silence","sky","smoke","snow","snowflake","sound","star","sun","sun","sunset","surf","thunder","tree","violet","voice","water","water","waterfall","wave","wildflower","wind","wood"]),c=t(24224);function a(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 s(n){return n.split(" ").join("_")}function f(n){return n?n.charAt(0).toUpperCase()+n.slice(1):""}function d(){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 h(n){if(null===n||"undefined"===typeof n)return"";var e=n.toString().split("."),t=(0,r.Z)(e,2),i=t[0],o=t[1],u=i.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",");return o?"".concat(u,".").concat(o):u}function v(n,e){var t,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=e,o=void 0!==i&&null!==i;if(o||(i=2),1===i)t=n;else{var u=n.length,c=n[u-1];t="y"===c&&"day"!==n?"".concat(n.slice(0,u-1),"ies"):"".concat(n,"s"===c?"es":"s")}if(o){var a=r?h(i):i;return"".concat(a," ").concat(t)}return t}function g(n){return null===n||void 0===n?void 0:n.replace(/_/g," ")}function m(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 Z(n){var e,t=[["second",60],["minute",60],["hour",24],["day",7],["week",4],["month",12],["year",null]];return t.forEach((function(i,o){if(!e){var u=(0,r.Z)(i,2),c=u[0],a=u[1],l=t.slice(0,o).reduce((function(n,e){return n*Number(e[1])}),1);n<Number(a)*l&&(e=v(c,Math.round(n/l)))}})),e}function b(n){return!isNaN(n)}function x(n){return"".concat(h(function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return Math.round((n||0)*Math.pow(100,e))/100}(n)),"%")}function w(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 j(){return"".concat((0,c.mp)(o)," ").concat((0,c.mp)(u))}function k(n){return null===n||void 0===n?void 0:n.toLowerCase().replace(/\W+/g,"_")}function O(n){var e,t=n.split(i.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(i.sep)}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8180],{45838:function(n,e,t){t.d(e,{GZ:function(){return s},Vq:function(){return d},cE:function(){return f},cl:function(){return l},kA:function(){return a}});var r=t(9518),o=t(23831),i=t(37391),c=t(49125),l=r.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=r.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=r.default.tr.withConfig({displayName:"indexstyle__TableRowStyle",componentId:"sc-1wzfyed-2"})([""," ",""],(function(n){return n.highlightOnHover&&"\n &:hover {\n background: ".concat((n.theme.interactive||o.Z.interactive).rowHoverBackground,";\n }\n ")}),(function(n){return!n.noHover&&"\n &:hover {\n background: ".concat((n.theme.interactive||o.Z.interactive).rowHoverBackground,";\n cursor: pointer;\n }\n ")})),u=(0,r.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||o.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=r.default.th.withConfig({displayName:"indexstyle__TableHeadStyle",componentId:"sc-1wzfyed-3"})([""," "," "," ",""],u,(function(n){return n.columnBorders&&"\n border: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n border-right: none;\n ")}),(function(n){return n.columnBorders&&n.last&&"\n border-right: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.sticky&&"\n background-color: ".concat((n.theme||o.Z).background.panel,";\n border-bottom: 1px solid ").concat((n.theme.borders||o.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 ")})),f=r.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||o.Z.borders).light,";\n ")}),(function(n){return n.columnBorders&&n.last&&"\n border-right: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.stickyFirstColumn&&"\n background-color: ".concat((n.theme||o.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||o.Z.interactive).activeBorder,";\n ")}),(function(n){return n.wrapColumns&&"\n white-space: break-spaces;\n "}))},58180:function(n,e,t){t.d(e,{Z:function(){return U}});var r=t(75582),o=t(82394),i=t(12691),c=t.n(i),l=t(82684),a=t(26304),d=t(9518),u=t(16910),s=t(93461),f=t(67971),p=t(86673),h=t(19711),g=t(23831),v=t(10503),m=t(73942),b=t(37391),w=t(10919),x=t(49125),y=t(90880),k=t(28598),j=["beforeTitleElement","children","contentOverflowVisible","first","hideScrollbar","highlighted","last","maxHeight","noBackground","noPaddingContent","onClick","onEntered","onExited","singlePanel","title","titleXPadding","visible","visibleCount","visibleHighlightDisabled"];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 C(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,o.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 P=d.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 ")})),Z=d.default.a.withConfig({displayName:"AccordionPanel__TitleStyle",componentId:"sc-sf242a-1"})([""," display:block;position:relative;padding:","px ","px;z-index:1;"," "," "," "," "," ",""],w.R,2*x.iI,2*x.iI,(function(n){return"\n &:hover,\n &:focus {\n outline: none;\n }\n ".concat((0,y.Kl)(n),"\n\n background-color: ").concat((n.theme.background||g.Z.background).table,";\n\n &:hover {\n background-color: ").concat((n.theme||g.Z).background.page,";\n }\n\n &:active {\n background-color: ").concat((n.theme||g.Z).background.page,";\n }\n ")}),(function(n){return n.visible&&"\n border-bottom: 1px solid ".concat((n.theme||g.Z).borders.medium2,";\n ")}),(function(n){return!n.first&&n.visible&&"\n border-top: 1px solid ".concat((n.theme||g.Z).borders.medium2,";\n ")}),(function(n){return n.first&&"\n border-top-left-radius: ".concat(m.n_,"px;\n border-top-right-radius: ").concat(m.n_,"px;\n ")}),(function(n){return(n.last||n.singlePanel)&&!n.visible&&"\n border-bottom-left-radius: ".concat(m.n_,"px;\n border-bottom-right-radius: ").concat(m.n_,"px;\n ")}),(function(n){return n.titleXPadding&&"\n padding-left: ".concat(n.titleXPadding,"px;\n padding-right: ").concat(n.titleXPadding,"px;\n ")})),_=d.default.div.withConfig({displayName:"AccordionPanel__ContentStyle",componentId:"sc-sf242a-2"})(["padding-left:","px;padding-right:","px;"," "," "," "," "," "," ",""],2*x.iI,2*x.iI,b.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 "})),I=d.default.div.withConfig({displayName:"AccordionPanel__ContentInnerStyle",componentId:"sc-sf242a-3"})(["padding-bottom:","px;padding-top:","px;",""],2*x.iI,2*x.iI,(function(n){return n.noPaddingContent&&"\n padding: 0;\n "})),S=function(n,e){var t=n.beforeTitleElement,r=n.children,o=n.contentOverflowVisible,i=n.first,c=n.hideScrollbar,l=n.highlighted,d=n.last,g=n.maxHeight,m=n.noBackground,b=n.noPaddingContent,w=n.onClick,y=n.onEntered,O=n.onExited,S=n.singlePanel,H=n.title,D=n.titleXPadding,E=n.visible,M=n.visibleCount,B=n.visibleHighlightDisabled,N=(0,a.Z)(n,j);return(0,k.jsxs)(P,C(C({},N),{},{maxHeight:g,children:[(0,k.jsx)(Z,{first:i,href:"#",last:d,noHoverUnderline:!0,onClick:function(n){n.preventDefault(),w&&w(n)},onKeyPress:function(n){" "===n.key&&w&&w(n)},singlePanel:S,titleXPadding:D,visible:E&&!B,children:(0,k.jsxs)(f.Z,{alignItems:"center",children:[(0,k.jsx)(p.Z,{mr:1,children:(0,k.jsxs)(f.Z,{alignItems:"center",children:[t,t&&(0,k.jsx)(p.Z,{ml:1}),(0,k.jsx)(h.ZP,{bold:!0,default:!E,large:!0,wind:l,children:H})]})}),(0,k.jsx)(u.Z,{classNames:"accordion-panel-chevron-down",in:E,timeout:400,children:(0,k.jsx)(s.Z,{className:E&&0===M&&"accordion-panel-chevron-down-enter-done-visible",children:(0,k.jsx)(v._M,{default:!0,size:2*x.iI})})})]})}),(0,k.jsx)(u.Z,{classNames:"accordion-panel-content",in:E,onEntered:function(n){return y&&y(n)},onExited:function(n){return O&&O(n)},timeout:300,children:(0,k.jsx)(_,{contentOverflowVisible:o,hideScrollbar:c,maxHeight:g,noBackground:m,noPaddingContent:b,visible:E,children:(0,k.jsx)(I,{noPaddingContent:b,ref:e,children:r})})})]}))},H=l.forwardRef(S),D=t(34744),E=["activeItemIndex","children","onClick","showDividers","visibleMapping","visibleMappingForced"];function M(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function B(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 N=d.default.div.withConfig({displayName:"Accordion__AccordionStyle",componentId:"sc-1xr4nou-0"})(["border-radius:","px;overflow:hidden;border-width:","px;border-style:",";"," "," ",""],m.n_,m.YF,m.M8,(function(n){return"\n background-color: ".concat((n.theme.background||g.Z.background).content,";\n box-shadow: ").concat((n.theme||g.Z).shadow.frame,";\n ")}),(function(n){return!n.highlighted&&"\n border-color: ".concat((n.theme||g.Z).background.panel,";\n ")}),(function(n){return n.highlighted&&"\n border-color: ".concat((n.theme||g.Z).brand.wind400,";\n ")})),A=d.default.div.withConfig({displayName:"Accordion__AccordionPanelContainerStyle",componentId:"sc-1xr4nou-1"})([""]),R=function(n){var e=n.activeItemIndex,t=n.children,r=n.onClick,i=n.showDividers,c=n.visibleMapping,d=n.visibleMappingForced,u=(0,a.Z)(n,E),s=(0,l.useState)(c||{}),f=s[0],p=s[1],h=(0,l.useState)({}),g=h[0],v=h[1],m=B(B({},f),d);return(0,k.jsx)(N,B(B({},u),{},{children:l.Children.map(t,(function(n,c){var a=l.Children.count(t),d=c===a-1,s=m[c];return(0,k.jsxs)("div",{children:[(0,k.jsx)(A,{index:c,showDividers:i,children:l.cloneElement(n,B(B({},u),{},{first:0===c,last:d,onClick:function(){var n;v(B(B({},g),{},(0,o.Z)({},c,g[c]?g[c]+1:1))),n=B(B({},m),{},(0,o.Z)({},c,!s)),p(n),r&&r(n)},singlePanel:1===a,visible:s,visibleCount:g[c]||0,visibleHighlightDisabled:"undefined"!==typeof e&&c!==e}))}),i&&(0,k.jsx)(D.Z,{})]},c)}))}))},z=t(62084),V=t(46261),T=t(45838),F=t(90211);function W(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 X(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?W(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):W(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var q=20*x.iI;function L(n,e){var t=n.alignTop,o=n.borderCollapseSeparate,i=n.buildLinkProps,a=n.buildRowProps,d=n.columnBorders,u=n.columnFlex,s=n.columnMaxWidth,g=n.columns,v=void 0===g?[]:g,m=n.compact,b=n.grouping,y=n.highlightRowOnHover,j=n.isSelectedRow,O=n.noBorder,C=n.noHeader,P=n.onClickRow,Z=n.onDoubleClickRow,_=n.onRightClickRow,I=n.renderRightClickMenu,S=n.renderRightClickMenuItems,D=n.rows,E=n.rowVerticalPadding,M=n.stickyFirstColumn,B=n.stickyHeader,N=n.uuid,A=n.wrapColumns,W=(0,l.useState)(null),L=W[0],U=W[1],Y=(0,l.useState)(null),G=Y[0],J=Y[1],K=(0,l.useMemo)((function(){return u.reduce((function(n,e){return n+(e||0)}),0)}),[u]),Q=(0,l.useCallback)((function(n){if(u[n]){var e=Math.round(u[n]/K*100);return"".concat(e,"%")}return null}),[u,K]),$=(0,l.useCallback)((function(){return U(null)}),[U]);(0,l.useEffect)((function(){var n;return null===(n=document)||void 0===n||n.addEventListener("click",$),function(){var n;null===(n=document)||void 0===n||n.removeEventListener("click",$)}}),[$]);var nn=(0,l.useMemo)((function(){return I||S}),[I,S]),en=(0,l.useMemo)((function(){var n;if(!nn)return null;var t=(null===e||void 0===e||null===(n=e.current)||void 0===n?void 0:n.getBoundingClientRect())||{},r=t.x,o=t.width,i=L||{},c=i.x,l=void 0===c?0:c,a=i.y,d=void 0===a?0:a,u=l;return l+q>=r+o&&(u=r+o-(q+x.iI)),u<0&&(u=0),(0,k.jsxs)("div",{style:{left:u,position:"fixed",top:d+x.iI/2,zIndex:100},children:[null===I||void 0===I?void 0:I(G),S&&(0,k.jsx)(z.Z,{items:S(G)||[],open:!0,parentRef:void 0,uuid:"FileBrowser/ContextMenu",width:q})]})}),[L,G,nn,e,I,S]),tn=(0,l.useMemo)((function(){return null===D||void 0===D?void 0:D.map((function(n,e){var r,o=null===i||void 0===i?void 0:i(e),u=(null===a||void 0===a?void 0:a(e))||{renderCell:null,renderRow:null},f=u.renderCell,p=u.renderRow,h=[];if(n.forEach((function(r,o){var i;f&&(i=f(r,o)),i||(i=(0,k.jsx)(T.cE,{alignTop:t,columnBorders:d,compact:m,last:o===n.length-1,maxWidth:null===s||void 0===s?void 0:s(o),noBorder:O,rowVerticalPadding:E,selected:null===j||void 0===j?void 0:j(e),stickyFirstColumn:M&&0===o,width:Q(o),wrapColumns:A,children:r},"".concat(N,"-row-").concat(e,"-cell-").concat(o))),h.push(i)})),p)r=p(h);else{r=(0,k.jsx)(T.Vq,{highlightOnHover:y,noHover:!(o||P),onClick:P?function(n){return function(n,e){1===(null===e||void 0===e?void 0:e.detail)?P(n):Z&&2===(null===e||void 0===e?void 0:e.detail)&&Z(n)}(e,n)}:null,onContextMenu:nn?function(n){n.preventDefault(),U({x:n.pageX,y:n.pageY}),J(e),null===_||void 0===_||_(e,n)}:null,children:h},"".concat(N,"-row-").concat(e))}return o?(0,l.createElement)(c(),X(X({},o),{},{key:"".concat(N,"-row-link-").concat(e),passHref:!0}),(0,k.jsx)(w.Z,{fullWidth:!0,noHoverUnderline:!0,noOutline:!0,style:{display:"table-row-group"},verticalAlignContent:!0,children:r})):r}))}),[t,i,a,Q,d,s,m,nn,y,j,O,P,Z,_,E,D,J,M,N,A]),rn=(0,l.useMemo)((function(){return(0,k.jsx)(T.Vq,{noHover:!0,children:null===v||void 0===v?void 0:v.map((function(n,e){return(0,k.jsx)(T.GZ,{columnBorders:d,compact:m,last:e===v.length-1,noBorder:O,sticky:B,children:(0,k.jsxs)(f.Z,{alignItems:"center",justifyContent:n.center?"center":"flex-start",children:[(0,k.jsx)(h.ZP,{bold:!0,leftAligned:!0,monospace:!0,muted:!0,children:n.label?n.label():n.uuid}),n.tooltipMessage&&(0,k.jsx)(p.Z,{ml:"4px",children:(0,k.jsx)(V.Z,{appearBefore:!0,label:(0,k.jsx)(h.ZP,{leftAligned:!0,children:n.tooltipMessage}),lightBackground:!0,primary:!0})})]})},"".concat(N,"-col-").concat(n.uuid,"-").concat(e))}))})}),[d,v,m,O,B,N]),on=(0,l.useMemo)((function(){var n;if(b&&null!==b&&void 0!==b&&b.column&&(null===b||void 0===b||null===(n=b.values)||void 0===n?void 0:n.length)>0){var e=b.columnIndex,t=b.values,i=null===tn||void 0===tn?void 0:tn.reduce((function(n,r){var o,i,c,l,a,d,u=null===r||void 0===r||null===(o=r.props)||void 0===o||null===(i=o.children)||void 0===i||null===(c=i[e])||void 0===c||null===(l=c.props)||void 0===l||null===(a=l.children)||void 0===a||null===(d=a.props)||void 0===d?void 0:d.children,s=(0,F.kC)(u);return t.includes(u)&&(n[s]=(n[s]||[]).concat(r)),n}),{}),c=Object.entries(i).sort((function(n,e){return n[0].localeCompare(e[0])}));return(0,k.jsx)(k.Fragment,{children:c.map((function(n,e){var t=(0,r.Z)(n,2),i=t[0],l=t[1];return(0,k.jsx)(p.Z,{mb:e===c.length-1?0:2,children:(0,k.jsx)(R,{visibleMapping:{0:!0},children:(0,k.jsx)(H,{noPaddingContent:!0,title:i,children:(0,k.jsx)(T.kA,{borderCollapseSeparate:o,columnBorders:d,children:(0,k.jsxs)(k.Fragment,{children:[(null===v||void 0===v?void 0:v.length)>=1&&!C&&rn,l]})})})})},i)}))})}return(0,k.jsxs)(T.kA,{borderCollapseSeparate:o,columnBorders:d,children:[(null===v||void 0===v?void 0:v.length)>=1&&!C&&rn,tn]})}),[o,d,null===v||void 0===v?void 0:v.length,b,rn,C,tn]);return(0,k.jsxs)("div",{style:{position:"relative"},children:[on,nn&&L&&en]})}var U=l.forwardRef(L)},34744:function(n,e,t){var r=t(82394),o=t(26304),i=(t(82684),t(9518)),c=t(86673),l=t(23831),a=t(49125),d=t(28598),u=["short"];function s(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function f(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?s(Object(t),!0).forEach((function(e){(0,r.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var p=i.default.div.withConfig({displayName:"Divider__DividerContainerStyle",componentId:"sc-1m7lqco-0"})([""," ",""],(function(n){return n.short&&"\n width: ".concat(21*a.iI,"px;\n ")}),(function(n){return!n.short&&"\n width: 100%;\n "})),h=i.default.div.withConfig({displayName:"Divider__DividerStyle",componentId:"sc-1m7lqco-1"})(["height:1px;"," "," "," "," "," ",""],(function(n){return!(n.light||n.medium)&&"\n background-color: ".concat((n.theme.monotone||l.Z.monotone).grey200,";\n ")}),(function(n){return n.muted&&"\n background-color: ".concat((n.theme.monotone||l.Z.monotone).grey500,";\n ")}),(function(n){return n.light&&"\n background-color: ".concat((n.theme.borders||l.Z.borders).light,";\n ")}),(function(n){return n.medium&&"\n background-color: ".concat((n.theme.borders||l.Z.borders).medium,";\n ")}),(function(n){return n.prominent&&"\n background-color: ".concat((n.theme.monotone||l.Z.monotone).grey300,";\n ")}),(function(n){return n.black&&"\n background-color: ".concat((n.theme.monotone||l.Z.monotone).black,";\n ")})),g=function(n){var e=n.short,t=(0,o.Z)(n,u);return(0,d.jsx)(p,{short:e,children:(0,d.jsx)(c.Z,f(f({},t),{},{children:(0,d.jsx)(h,f({},t))}))})};g.defaultProps={short:!1},e.Z=g},90211:function(n,e,t){t.d(e,{RA:function(){return u},kC:function(){return s},vg:function(){return b},kE:function(){return O},T3:function(){return y},Mp:function(){return f},Pb:function(){return a},HW:function(){return x},wX:function(){return p},x6:function(){return h},_6:function(){return g},zf:function(){return w},Y6:function(){return j},wE:function(){return C},J3:function(){return v},We:function(){return d},QV:function(){return k},C5:function(){return m}});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"]),l=t(24224);function a(n){if(!n)return!1;try{JSON.parse(n)}catch(e){return!1}return!0}function d(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";return n.split(" ").join(e)}function u(n){return n.split(" ").join("_")}function s(n){return n?n.charAt(0).toUpperCase()+n.slice(1):""}function f(){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 h(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 g(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,l=n[c-1];t="y"===l&&"day"!==n?"".concat(n.slice(0,c-1),"ies"):"".concat(n,"s"===l?"es":"s")}if(i){var a=r?h(o):o;return"".concat(a," ").concat(t)}return t}function v(n){return null===n||void 0===n?void 0:n.replace(/_/g," ")}function m(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 b(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return s(v(n.toLowerCase()))}function w(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),l=c[0],a=c[1],d=t.slice(0,i).reduce((function(n,e){return n*Number(e[1])}),1);n<Number(a)*d&&(e=g(l,Math.round(n/d)))}})),e}function x(n){return!isNaN(n)}function y(n){return"".concat(h(function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return Math.round((n||0)*Math.pow(100,e))/100}(n)),"%")}function k(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 j(){return"".concat((0,l.mp)(i)," ").concat((0,l.mp)(c))}function O(n){return null===n||void 0===n?void 0:n.toLowerCase().replace(/\W+/g,"_")}function C(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)}}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8180],{45838:function(n,e,t){t.d(e,{GZ:function(){return s},Vq:function(){return d},cE:function(){return f},cl:function(){return l},kA:function(){return a}});var r=t(9518),o=t(23831),i=t(37391),c=t(49125),l=r.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=r.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=r.default.tr.withConfig({displayName:"indexstyle__TableRowStyle",componentId:"sc-1wzfyed-2"})([""," ",""],(function(n){return n.highlightOnHover&&"\n &:hover {\n background: ".concat((n.theme.interactive||o.Z.interactive).rowHoverBackground,";\n }\n ")}),(function(n){return!n.noHover&&"\n &:hover {\n background: ".concat((n.theme.interactive||o.Z.interactive).rowHoverBackground,";\n cursor: pointer;\n }\n ")})),u=(0,r.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||o.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=r.default.th.withConfig({displayName:"indexstyle__TableHeadStyle",componentId:"sc-1wzfyed-3"})([""," "," "," ",""],u,(function(n){return n.columnBorders&&"\n border: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n border-right: none;\n ")}),(function(n){return n.columnBorders&&n.last&&"\n border-right: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.sticky&&"\n background-color: ".concat((n.theme||o.Z).background.panel,";\n border-bottom: 1px solid ").concat((n.theme.borders||o.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 ")})),f=r.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||o.Z.borders).light,";\n ")}),(function(n){return n.columnBorders&&n.last&&"\n border-right: 1px solid ".concat((n.theme.borders||o.Z.borders).light,";\n ")}),(function(n){return n.stickyFirstColumn&&"\n background-color: ".concat((n.theme||o.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||o.Z.interactive).activeBorder,";\n ")}),(function(n){return n.wrapColumns&&"\n white-space: break-spaces;\n "}))},58180:function(n,e,t){t.d(e,{Z:function(){return U}});var r=t(75582),o=t(82394),i=t(12691),c=t.n(i),l=t(82684),a=t(26304),d=t(9518),u=t(16910),s=t(93461),f=t(67971),p=t(86673),h=t(19711),g=t(23831),v=t(10503),m=t(73942),b=t(37391),w=t(10919),x=t(49125),y=t(90880),k=t(28598),j=["beforeTitleElement","children","contentOverflowVisible","first","hideScrollbar","highlighted","last","maxHeight","noBackground","noPaddingContent","onClick","onEntered","onExited","singlePanel","title","titleXPadding","visible","visibleCount","visibleHighlightDisabled"];function C(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function O(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?C(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):C(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var P=d.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 ")})),Z=d.default.a.withConfig({displayName:"AccordionPanel__TitleStyle",componentId:"sc-sf242a-1"})([""," display:block;position:relative;padding:","px ","px;z-index:1;"," "," "," "," "," ",""],w.R,2*x.iI,2*x.iI,(function(n){return"\n &:hover,\n &:focus {\n outline: none;\n }\n ".concat((0,y.Kl)(n),"\n\n background-color: ").concat((n.theme.background||g.Z.background).table,";\n\n &:hover {\n background-color: ").concat((n.theme||g.Z).background.page,";\n }\n\n &:active {\n background-color: ").concat((n.theme||g.Z).background.page,";\n }\n ")}),(function(n){return n.visible&&"\n border-bottom: 1px solid ".concat((n.theme||g.Z).borders.medium2,";\n ")}),(function(n){return!n.first&&n.visible&&"\n border-top: 1px solid ".concat((n.theme||g.Z).borders.medium2,";\n ")}),(function(n){return n.first&&"\n border-top-left-radius: ".concat(m.n_,"px;\n border-top-right-radius: ").concat(m.n_,"px;\n ")}),(function(n){return(n.last||n.singlePanel)&&!n.visible&&"\n border-bottom-left-radius: ".concat(m.n_,"px;\n border-bottom-right-radius: ").concat(m.n_,"px;\n ")}),(function(n){return n.titleXPadding&&"\n padding-left: ".concat(n.titleXPadding,"px;\n padding-right: ").concat(n.titleXPadding,"px;\n ")})),I=d.default.div.withConfig({displayName:"AccordionPanel__ContentStyle",componentId:"sc-sf242a-2"})(["padding-left:","px;padding-right:","px;"," "," "," "," "," "," ",""],2*x.iI,2*x.iI,b.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 "})),_=d.default.div.withConfig({displayName:"AccordionPanel__ContentInnerStyle",componentId:"sc-sf242a-3"})(["padding-bottom:","px;padding-top:","px;",""],2*x.iI,2*x.iI,(function(n){return n.noPaddingContent&&"\n padding: 0;\n "})),S=function(n,e){var t=n.beforeTitleElement,r=n.children,o=n.contentOverflowVisible,i=n.first,c=n.hideScrollbar,l=n.highlighted,d=n.last,g=n.maxHeight,m=n.noBackground,b=n.noPaddingContent,w=n.onClick,y=n.onEntered,C=n.onExited,S=n.singlePanel,H=n.title,E=n.titleXPadding,M=n.visible,B=n.visibleCount,D=n.visibleHighlightDisabled,N=(0,a.Z)(n,j);return(0,k.jsxs)(P,O(O({},N),{},{maxHeight:g,children:[(0,k.jsx)(Z,{first:i,href:"#",last:d,noHoverUnderline:!0,onClick:function(n){n.preventDefault(),w&&w(n)},onKeyPress:function(n){" "===n.key&&w&&w(n)},singlePanel:S,titleXPadding:E,visible:M&&!D,children:(0,k.jsxs)(f.Z,{alignItems:"center",children:[(0,k.jsx)(p.Z,{mr:1,children:(0,k.jsxs)(f.Z,{alignItems:"center",children:[t,t&&(0,k.jsx)(p.Z,{ml:1}),(0,k.jsx)(h.ZP,{bold:!0,default:!M,large:!0,wind:l,children:H})]})}),(0,k.jsx)(u.Z,{classNames:"accordion-panel-chevron-down",in:M,timeout:400,children:(0,k.jsx)(s.Z,{className:M&&0===B&&"accordion-panel-chevron-down-enter-done-visible",children:(0,k.jsx)(v._M,{default:!0,size:2*x.iI})})})]})}),(0,k.jsx)(u.Z,{classNames:"accordion-panel-content",in:M,onEntered:function(n){return y&&y(n)},onExited:function(n){return C&&C(n)},timeout:300,children:(0,k.jsx)(I,{contentOverflowVisible:o,hideScrollbar:c,maxHeight:g,noBackground:m,noPaddingContent:b,visible:M,children:(0,k.jsx)(_,{noPaddingContent:b,ref:e,children:r})})})]}))},H=l.forwardRef(S),E=t(34744),M=["activeItemIndex","children","onClick","showDividers","visibleMapping","visibleMappingForced"];function B(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function D(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?B(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):B(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var N=d.default.div.withConfig({displayName:"Accordion__AccordionStyle",componentId:"sc-1xr4nou-0"})(["border-radius:","px;overflow:hidden;border-width:","px;border-style:",";"," "," ",""],m.n_,m.YF,m.M8,(function(n){return"\n background-color: ".concat((n.theme.background||g.Z.background).content,";\n box-shadow: ").concat((n.theme||g.Z).shadow.frame,";\n ")}),(function(n){return!n.highlighted&&"\n border-color: ".concat((n.theme||g.Z).background.panel,";\n ")}),(function(n){return n.highlighted&&"\n border-color: ".concat((n.theme||g.Z).brand.wind400,";\n ")})),A=d.default.div.withConfig({displayName:"Accordion__AccordionPanelContainerStyle",componentId:"sc-1xr4nou-1"})([""]),R=function(n){var e=n.activeItemIndex,t=n.children,r=n.onClick,i=n.showDividers,c=n.visibleMapping,d=n.visibleMappingForced,u=(0,a.Z)(n,M),s=(0,l.useState)(c||{}),f=s[0],p=s[1],h=(0,l.useState)({}),g=h[0],v=h[1],m=D(D({},f),d);return(0,k.jsx)(N,D(D({},u),{},{children:l.Children.map(t,(function(n,c){var a=l.Children.count(t),d=c===a-1,s=m[c];return(0,k.jsxs)("div",{children:[(0,k.jsx)(A,{index:c,showDividers:i,children:l.cloneElement(n,D(D({},u),{},{first:0===c,last:d,onClick:function(){var n;v(D(D({},g),{},(0,o.Z)({},c,g[c]?g[c]+1:1))),n=D(D({},m),{},(0,o.Z)({},c,!s)),p(n),r&&r(n)},singlePanel:1===a,visible:s,visibleCount:g[c]||0,visibleHighlightDisabled:"undefined"!==typeof e&&c!==e}))}),i&&(0,k.jsx)(E.Z,{})]},c)}))}))},z=t(62084),V=t(46261),T=t(45838),F=t(90211);function W(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 X(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?W(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):W(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var L=20*x.iI;function q(n,e){var t=n.alignTop,o=n.borderCollapseSeparate,i=n.buildLinkProps,a=n.buildRowProps,d=n.columnBorders,u=n.columnFlex,s=n.columnMaxWidth,g=n.columns,v=void 0===g?[]:g,m=n.compact,b=n.grouping,y=n.highlightRowOnHover,j=n.isSelectedRow,C=n.noBorder,O=n.noHeader,P=n.onClickRow,Z=n.onDoubleClickRow,I=n.onRightClickRow,_=n.renderRightClickMenu,S=n.renderRightClickMenuItems,E=n.rows,M=n.rowVerticalPadding,B=n.stickyFirstColumn,D=n.stickyHeader,N=n.uuid,A=n.wrapColumns,W=(0,l.useState)(null),q=W[0],U=W[1],Y=(0,l.useState)(null),G=Y[0],J=Y[1],K=(0,l.useMemo)((function(){return u.reduce((function(n,e){return n+(e||0)}),0)}),[u]),Q=(0,l.useCallback)((function(n){if(u[n]){var e=Math.round(u[n]/K*100);return"".concat(e,"%")}return null}),[u,K]),$=(0,l.useCallback)((function(){return U(null)}),[U]);(0,l.useEffect)((function(){var n;return null===(n=document)||void 0===n||n.addEventListener("click",$),function(){var n;null===(n=document)||void 0===n||n.removeEventListener("click",$)}}),[$]);var nn=(0,l.useMemo)((function(){return _||S}),[_,S]),en=(0,l.useMemo)((function(){var n;if(!nn)return null;var t=(null===e||void 0===e||null===(n=e.current)||void 0===n?void 0:n.getBoundingClientRect())||{},r=t.x,o=t.width,i=q||{},c=i.x,l=void 0===c?0:c,a=i.y,d=void 0===a?0:a,u=l;return l+L>=r+o&&(u=r+o-(L+x.iI)),u<0&&(u=0),(0,k.jsxs)("div",{style:{left:u,position:"fixed",top:d+x.iI/2,zIndex:100},children:[null===_||void 0===_?void 0:_(G),S&&(0,k.jsx)(z.Z,{items:S(G)||[],open:!0,parentRef:void 0,uuid:"FileBrowser/ContextMenu",width:L})]})}),[q,G,nn,e,_,S]),tn=(0,l.useMemo)((function(){return null===E||void 0===E?void 0:E.map((function(n,e){var r,o=null===i||void 0===i?void 0:i(e),u=(null===a||void 0===a?void 0:a(e))||{renderCell:null,renderRow:null},f=u.renderCell,p=u.renderRow,h=[];if(n.forEach((function(r,o){var i;f&&(i=f(r,o)),i||(i=(0,k.jsx)(T.cE,{alignTop:t,columnBorders:d,compact:m,last:o===n.length-1,maxWidth:null===s||void 0===s?void 0:s(o),noBorder:C,rowVerticalPadding:M,selected:null===j||void 0===j?void 0:j(e),stickyFirstColumn:B&&0===o,width:Q(o),wrapColumns:A,children:r},"".concat(N,"-row-").concat(e,"-cell-").concat(o))),h.push(i)})),p)r=p(h);else{r=(0,k.jsx)(T.Vq,{highlightOnHover:y,noHover:!(o||P),onClick:P?function(n){return function(n,e){1===(null===e||void 0===e?void 0:e.detail)?P(n):Z&&2===(null===e||void 0===e?void 0:e.detail)&&Z(n)}(e,n)}:null,onContextMenu:nn?function(n){n.preventDefault(),U({x:n.pageX,y:n.pageY}),J(e),null===I||void 0===I||I(e,n)}:null,children:h},"".concat(N,"-row-").concat(e))}return o?(0,l.createElement)(c(),X(X({},o),{},{key:"".concat(N,"-row-link-").concat(e),passHref:!0}),(0,k.jsx)(w.Z,{fullWidth:!0,noHoverUnderline:!0,noOutline:!0,style:{display:"table-row-group"},verticalAlignContent:!0,children:r})):r}))}),[t,i,a,Q,d,s,m,nn,y,j,C,P,Z,I,M,E,J,B,N,A]),rn=(0,l.useMemo)((function(){return(0,k.jsx)(T.Vq,{noHover:!0,children:null===v||void 0===v?void 0:v.map((function(n,e){return(0,k.jsx)(T.GZ,{columnBorders:d,compact:m,last:e===v.length-1,noBorder:C,sticky:D,children:(0,k.jsxs)(f.Z,{alignItems:"center",justifyContent:n.center?"center":"flex-start",children:[(0,k.jsx)(h.ZP,{bold:!0,leftAligned:!0,monospace:!0,muted:!0,children:n.label?n.label():n.uuid}),n.tooltipMessage&&(0,k.jsx)(p.Z,{ml:"4px",children:(0,k.jsx)(V.Z,{appearBefore:!0,label:(0,k.jsx)(h.ZP,{leftAligned:!0,children:n.tooltipMessage}),lightBackground:!0,primary:!0})})]})},"".concat(N,"-col-").concat(n.uuid,"-").concat(e))}))})}),[d,v,m,C,D,N]),on=(0,l.useMemo)((function(){var n;if(b&&null!==b&&void 0!==b&&b.column&&(null===b||void 0===b||null===(n=b.values)||void 0===n?void 0:n.length)>0){var e=b.columnIndex,t=b.values,i=null===tn||void 0===tn?void 0:tn.reduce((function(n,r){var o,i,c,l,a,d,u=null===r||void 0===r||null===(o=r.props)||void 0===o||null===(i=o.children)||void 0===i||null===(c=i[e])||void 0===c||null===(l=c.props)||void 0===l||null===(a=l.children)||void 0===a||null===(d=a.props)||void 0===d?void 0:d.children,s=(0,F.kC)(u);return t.includes(u)&&(n[s]=(n[s]||[]).concat(r)),n}),{}),c=Object.entries(i).sort((function(n,e){return n[0].localeCompare(e[0])}));return(0,k.jsx)(k.Fragment,{children:c.map((function(n,e){var t=(0,r.Z)(n,2),i=t[0],l=t[1];return(0,k.jsx)(p.Z,{mb:e===c.length-1?0:2,children:(0,k.jsx)(R,{visibleMapping:{0:!0},children:(0,k.jsx)(H,{noPaddingContent:!0,title:i,children:(0,k.jsx)(T.kA,{borderCollapseSeparate:o,columnBorders:d,children:(0,k.jsxs)(k.Fragment,{children:[(null===v||void 0===v?void 0:v.length)>=1&&!O&&rn,l]})})})})},i)}))})}return(0,k.jsxs)(T.kA,{borderCollapseSeparate:o,columnBorders:d,children:[(null===v||void 0===v?void 0:v.length)>=1&&!O&&rn,tn]})}),[o,d,null===v||void 0===v?void 0:v.length,b,rn,O,tn]);return(0,k.jsxs)("div",{style:{position:"relative"},children:[on,nn&&q&&en]})}var U=l.forwardRef(q)},90211:function(n,e,t){t.d(e,{RA:function(){return u},kC:function(){return s},vg:function(){return b},kE:function(){return C},T3:function(){return y},Mp:function(){return f},Pb:function(){return a},HW:function(){return x},wX:function(){return p},x6:function(){return h},_6:function(){return g},zf:function(){return w},Y6:function(){return j},wE:function(){return O},J3:function(){return v},We:function(){return d},QV:function(){return k},C5:function(){return m}});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"]),l=t(24224);function a(n){if(!n)return!1;try{JSON.parse(n)}catch(e){return!1}return!0}function d(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";return n.split(" ").join(e)}function u(n){return n.split(" ").join("_")}function s(n){return n?n.charAt(0).toUpperCase()+n.slice(1):""}function f(){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 h(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 g(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,l=n[c-1];t="y"===l&&"day"!==n?"".concat(n.slice(0,c-1),"ies"):"".concat(n,"s"===l?"es":"s")}if(i){var a=r?h(o):o;return"".concat(a," ").concat(t)}return t}function v(n){return null===n||void 0===n?void 0:n.replace(/_/g," ")}function m(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 b(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return s(v(n.toLowerCase()))}function w(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),l=c[0],a=c[1],d=t.slice(0,i).reduce((function(n,e){return n*Number(e[1])}),1);n<Number(a)*d&&(e=g(l,Math.round(n/d)))}})),e}function x(n){return!isNaN(n)}function y(n){return"".concat(h(function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return Math.round((n||0)*Math.pow(100,e))/100}(n)),"%")}function k(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 j(){return"".concat((0,l.mp)(i)," ").concat((0,l.mp)(c))}function C(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([[8735],{68735:function(t,e,n){var r=n(26304),i=n(21831),o=n(82394),a=n(82684),l=n(26226),s=n(9518),c=n(90948),u=n(84969),d=n(65743),h=n(85587),f=n(79487),p=n(52136),m=n(67778),x=n(29989),y=n(17066),v=n(84482),g=n(76771),j=n(98889),k=n(65376),O=n(61655),E=n(97745),Z=n(48072),b=n(10103),L=n(84181),T=n(24903),M=n(67971),P=n(19711),w=n(52359),I=n(23831),A=n(80906),_=n(73899),D=n(2005),F=n(31012),N=n(49125),S=n(24224),C=n(344),R=n(45739),U=n(28598),X=["areaBetweenLines","data","events","height","lineLegendNames","margin","width","xAxisLabel","xLabelFormat","yAxisLabel","yLabelFormat"];function W(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function B(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?W(Object(n),!0).forEach((function(e){(0,o.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var V=B(B({},k.j),{},{backgroundColor:I.Z.background.muted,border:"none"}),Y=(0,O.Z)((function(t){var e=t.areaBetweenLines,n=t.data,r=t.events,o=void 0!==r&&r,l=t.getX,O=t.getY,M=t.gridProps,w=void 0===M?{}:M,X=t.height,W=t.hideGridX,Y=t.hideTooltip,z=t.increasedXTicks,J=t.lineLegendNames,q=t.margin,G=t.noCurve,H=t.numYTicks,K=t.renderXTooltipContent,Q=t.renderYTooltipContent,$=t.showTooltip,tt=t.thickStroke,et=t.tooltipData,nt=t.tooltipLeft,rt=void 0===nt?0:nt,it=t.tooltipTop,ot=void 0===it?[]:it,at=t.width,lt=t.xLabelFormat,st=t.xLabelRotate,ct=void 0===st||st,ut=t.yLabelFormat,dt=(0,a.useContext)(s.ThemeContext),ht=l||function(t){return null===t||void 0===t?void 0:t.x},ft=O||function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return null===t||void 0===t||null===(e=t.y)||void 0===e?void 0:e[n]},pt=I.Z.monotone.gray,mt=I.Z.brand.wind200,xt=I.Z.content.muted,yt=I.Z.monotone.gray,vt=n.map((function(t){return Number(ht(t))}));if(at<10)return null;var gt=at-q.left-q.right,jt=X-q.top-q.bottom,kt=gt/2,Ot=Math.max.apply(Math,(0,i.Z)(n.map((function(t){var e=t.y;return(null===e||void 0===e?void 0:e.length)||0})))),Et=(0,a.useMemo)((function(){return(0,L.Z)({domain:[Math.min.apply(Math,(0,i.Z)(vt)),Math.max.apply(Math,(0,i.Z)(vt))],range:[0,gt]})}),[gt,vt]),Zt=Math.min.apply(Math,(0,i.Z)(n.map((function(t){var e=t.y;return Math.min.apply(Math,(0,i.Z)(e||[]))})))),bt=Math.max.apply(Math,(0,i.Z)(n.map((function(t){var e=t.y;return Math.max.apply(Math,(0,i.Z)(e||[]))})))),Lt=(0,a.useMemo)((function(){return(0,L.Z)({domain:[Zt,bt],nice:!0,range:[jt,0]})}),[jt,bt,Zt]),Tt=at>520?z?20:10:z?10:5,Mt=(0,R.K)(dt),Pt=xt,wt=Mt.map((function(t){return{stroke:t}})),It=(0,T.Z)({domain:J||[],range:wt.map((function(t){return t.stroke}))}),At=(0,a.useCallback)((function(t){var e=((0,Z.Z)(t)||{x:0}).x,r=Et.invert(e-q.left),i=(0,S.ry)(vt,(function(t){return r>=t})),o=n[i-1],a=n[i],l=o;a&&(r-ht(o)>ht(a)-r?l=a:(l=o,i-=1));var s=(0,b.range)(0,Ot).map((function(t){return Lt(ft(l,t))}));ft(l)&&$({tooltipData:B(B({},l),{},{index:i}),tooltipLeft:e,tooltipTop:s})}),[n,ht,ft,q,$,Et,Lt]),_t={};return G||(_t.curve=E.ZP),(0,U.jsxs)(U.Fragment,{children:[J&&(0,U.jsx)("div",{style:{marginLeft:null===q||void 0===q?void 0:q.left},children:(0,U.jsx)(y.Z,{labelFormat:function(t){return t},scale:It,children:function(t){return(0,U.jsx)("div",{style:{display:"flex",flexDirection:A.qs.ROW},children:t.map((function(t,e){return(0,U.jsxs)(v.Z,{margin:"0 5px",onClick:function(){o&&alert("clicked: ".concat(JSON.stringify(t)))},children:[(0,U.jsx)("svg",{height:15,width:15,children:(0,U.jsx)("rect",{fill:t.value,height:15,width:15})}),(0,U.jsx)(g.Z,{align:"left",margin:"0 0 0 4px",children:(0,U.jsx)(P.ZP,{small:!0,children:t.text})})]},"legend-quantile-".concat(e))}))})}})}),(0,U.jsxs)("svg",{height:X,width:at,children:[!e&&(0,U.jsx)(d.Z,{fill:"transparent",height:X,onMouseLeave:function(){return Y()},onMouseMove:At,onTouchMove:At,onTouchStart:At,rx:14,width:at-(q.left+q.right),x:q.left,y:0}),(0,U.jsxs)(x.Z,{left:q.left,top:q.top,children:[!W&&(0,U.jsx)(p.Z,B({height:jt,pointerEvents:"none",scale:Et,stroke:pt,strokeDasharray:"3,3",strokeOpacity:.4,width:gt},w)),(0,U.jsx)(m.Z,B({height:jt,pointerEvents:"none",scale:Lt,stroke:pt,strokeDasharray:"3,3",strokeOpacity:.4,width:gt},w)),(0,U.jsx)("line",{stroke:pt,x1:gt,x2:gt,y1:0,y2:jt}),(0,U.jsx)(c.Z,{numTicks:Tt,scale:Et,stroke:Pt,tickFormat:function(t){return lt?lt(t):t},tickLabelProps:function(t){return{fill:xt,fontFamily:D.ry,fontSize:F.J5,textAnchor:"middle",transform:ct&&"rotate(-45, ".concat(Et(t),", 0) translate(-32, 4)")}},tickStroke:Pt,top:jt}),(0,U.jsx)(u.Z,{hideTicks:!0,numTicks:H,scale:Lt,stroke:Pt,tickFormat:function(t){return ut?ut(t):(0,C.P5)(t)},tickLabelProps:function(t){return{dx:String(t).length>4?3:0,fill:xt,fontFamily:D.ry,fontSize:F.J5,textAnchor:"end",transform:"translate(0,2.5)"}},tickStroke:Pt}),e&&e.map((function(t){var e=t[0],r=t[1];return(0,a.createElement)(j.Z,B(B({},_t),{},{aboveAreaProps:{fill:I.Z.brand.earth400,fillOpacity:.3},belowAreaProps:{fill:mt,fillOpacity:.2},clipAboveTo:0,clipBelowTo:jt,data:n,id:"".concat(Math.random()),key:"".concat(e,"-").concat(r),x:function(t){return Et(ht(t))},y0:function(t){return Lt("undefined"===typeof r?Zt:ft(t,r))},y1:function(t){return Lt(ft(t,e))}}))})),(0,b.range)(0,Ot).map((function(t){return(0,a.createElement)(h.Z,B(B({},_t),{},{data:n.filter((function(t){return void 0!=t.y})),key:t,pointerEvents:"none",strokeWidth:tt?2:1,x:function(t){return Et(ht(t))},y:function(e){return Lt(e.y&&(t>=e.y.length?Zt:ft(e,t)))}},wt[t]))}))]}),et&&(0,U.jsxs)("g",{children:[(0,U.jsx)(f.Z,{from:{x:rt,y:q.top},pointerEvents:"none",stroke:_.Ej,strokeDasharray:"5,2",strokeWidth:1,to:{x:rt,y:jt+q.top}}),ot.map((function(t,e){return(0,U.jsx)("circle",{cx:rt,cy:t+1+q.top,fill:wt[e].stroke,fillOpacity:.1,pointerEvents:"none",r:4,stroke:yt,strokeOpacity:.1,strokeWidth:1},e)})),ot.map((function(t,e){return(0,U.jsx)("circle",{cx:rt,cy:t+q.top,fill:wt[e].stroke,pointerEvents:"none",r:4,stroke:wt[e].stroke,strokeWidth:2},e)}))]})]}),et&&(0,U.jsxs)("div",{children:[ot.map((function(t,e){var n=ft(et,e);return e>=1&&Math.abs(ot[e-1]-t)<5*N.iI&&(t+=3*N.iI),(0,U.jsxs)(k.Z,{left:rt>kt?rt-(0,C.Vs)(Q,et,e)*N.iI:rt+N.iI,style:V,top:t-2*N.iI,children:[Q&&Q(et,e),!Q&&(0,U.jsxs)(P.ZP,{center:!0,small:!0,children:[n.toFixed?n.toFixed(3):n," ",null===J||void 0===J?void 0:J[e]]})]},e)})),(0,U.jsxs)(k.Z,{left:rt>kt?rt-4*(0,C.Vs)(K,et):rt,style:B(B({},V),{},{transform:"translateX(-65%)"}),top:jt+q.top,children:[K&&K(et),!K&&(0,U.jsx)(P.ZP,{center:!0,small:!0,children:ht(et).toFixed(3)})]})]})]})}));e.Z=function(t){var e=t.areaBetweenLines,n=t.data,i=(t.events,t.height),o=t.lineLegendNames,a=t.margin,s=void 0===a?{}:a,c=t.width,u=t.xAxisLabel,d=t.xLabelFormat,h=t.yAxisLabel,f=t.yLabelFormat,p=(0,r.Z)(t,X),m=B(B({},{bottom:3*N.iI,left:5*N.iI,right:3*N.iI,top:3*N.iI}),s);return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)("div",{style:{display:"flex",height:i,marginBottom:N.iI,width:"100%"},children:[h&&(0,U.jsx)(M.Z,{alignItems:"center",fullHeight:!0,justifyContent:"center",width:28,children:(0,U.jsx)(w.Z,{children:(0,U.jsx)(P.ZP,{center:!0,muted:!0,small:!0,children:h})})}),(0,U.jsx)("div",{style:{height:i,width:"undefined"===typeof c?"100%":c},children:(0,U.jsx)(l.Z,{children:function(t){var r=t.width,i=t.height;return(0,U.jsx)(Y,B(B({},p),{},{areaBetweenLines:e,data:n,height:i,lineLegendNames:o,margin:m,width:r,xLabelFormat:d,yLabelFormat:f}))}})})]}),u&&(0,U.jsx)("div",{style:{paddingLeft:h?36:0,paddingTop:4},children:(0,U.jsx)(P.ZP,{center:!0,muted:!0,small:!0,children:u})})]})}},80906:function(t,e,n){var r,i,o,a;n.d(e,{Q0:function(){return r},qs:function(){return i}}),function(t){t.ADD="add",t.AVERAGE="average",t.CLEAN_COLUMN_NAME="clean_column_name",t.COUNT="count",t.COUNT_DISTINCT="count_distinct",t.CUSTOM="custom",t.DIFF="diff",t.DROP_DUPLICATE="drop_duplicate",t.EXPAND_COLUMN="expand_column",t.EXPLODE="explode",t.FILTER="filter",t.FIRST="first",t.FIX_SYNTAX_ERRORS="fix_syntax_errors",t.GROUP="group",t.IMPUTE="impute",t.JOIN="join",t.LAST="last",t.LIMIT="limit",t.MAX="max",t.MEDIAN="median",t.MIN="min",t.MODE="mode",t.NORMALIZE="normalize",t.REFORMAT="reformat",t.REMOVE="remove",t.REMOVE_OUTLIERS="remove_outliers",t.SCALE="scale",t.SELECT="select",t.SHIFT_DOWN="shift_down",t.SHIFT_UP="shift_up",t.SORT="sort",t.STANDARDIZE="standardize",t.SUM="sum",t.UNION="union",t.UPDATE_TYPE="update_type",t.UPDATE_VALUE="update_value"}(r||(r={})),function(t){t.COLUMN="column",t.ROW="row"}(i||(i={})),function(t){t.NOT_APPLIED="not_applied",t.COMPLETED="completed"}(o||(o={})),function(t){t.FEATURE="feature"}(a||(a={}))}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[894],{48591:function(e,n,t){var i=t(21831),o=t(75582),r=t(82684),l=t(37958);n.Z=function(e){var n=e.children,t=e.uuid,c=e.uuids,u=void 0===c?[]:c,a=(0,l.j)("apiReloads"),d=(0,o.Z)(a,1)[0],s=(0,i.Z)(u);t&&s.push(t);var f=s.map((function(e){return String(d[e])||"-"})).join("_");return r.cloneElement(n,{key:f})}},43032:function(e,n,t){t.d(n,{Cl:function(){return c},Nk:function(){return u},ZG:function(){return l}});var i=t(9518),o=t(23831),r=t(49125),l=1.5*r.iI,c=1*l+r.iI/2,u=i.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-uvd91-0"})([".row:hover{","}"],(function(e){return"\n background-color: ".concat((e.theme.interactive||o.Z.interactive).hoverBackground,";\n ")}))},6404:function(e,n,t){t.d(n,{Z:function(){return re}});var i=t(82394),o=t(75582),r=t(26304),l=t(82684),c=t(9518),u=t(83455),a=t(86422),d=t(62084),s=t(16634),f=t(73828),p=t(19711),v=t(10503),h=t(43032),m=t(49125),g=t(60701),b=t(91427),y=t(44162),x=t(32821),j=t(24224),O=t(90211),w=t(28598);function C(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function k(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,i.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}var P="default_repo";var Z=function e(n){var t=n.allowSelectingFolders,i=n.containerRef,o=n.disableContextMenu,r=n.file,c=n.isFileDisabled,u=n.level,d=n.onClickFile,C=n.onClickFolder,Z=n.onSelectBlockFile,S=n.onlyShowChildren,D=n.openFile,I=n.openPipeline,_=n.openSidekickView,E=n.pipelineBlockUuids,T=n.selectFile,R=n.setContextItem,M=n.setCoordinates,F=n.setDraggingFile,A=n.setSelectedFile,N=n.theme,L=n.timeout,Y=n.uncollapsed,U=n.useRootFolder,B=r.children,H=r.disabled,W=r.name,V=r.parent;W||(r.name=P);var z,G=U?(0,x.a9)(r):(0,x.jN)(r),X=(null===V||void 0===V?void 0:V.name)===f.oy,Q=(0,l.useMemo)((function(){return B?(0,j.YC)(B,(function(e){return e.children?0:1})):B}),[B]),J=c?c(G,Q):H||"__init__.py"===W||!(null===W||void 0===W||!W.match(/^\./))||!W.match(f.d2)&&!B,q=c?c(G,Q):H||"__init__.py"===W||!(null===W||void 0===W||!W.match(/^\./))&&!Q||!W.match(f.d2)&&!B,$="".concat(u,"/").concat(W),K=(E.includes((0,x.dq)(r)),(0,l.useState)("undefined"===typeof Y?(0,b.U2)($,!1):!Y)),ee=K[0],ne=K[1],te=v.iU;1===u&&W===f.oy?te=v.B_:W===f.PF?te=v.er:Q&&(te=v.gt),Q&&a.$W.includes((0,O.C5)(W))&&(0,O.C5)(W)!==a.tf.CHART&&(z=(0,y.qn)((0,O.C5)(W),{theme:N}).accent);var ie=(0,l.useMemo)((function(){return null===Q||void 0===Q?void 0:Q.map((function(n){return(0,w.jsx)(e,{allowSelectingFolders:t,containerRef:i,disableContextMenu:o,file:k(k({},n),{},{parent:r}),isFileDisabled:c,level:S?u:u+1,onClickFile:d,onClickFolder:C,onSelectBlockFile:Z,openFile:D,openPipeline:I,openSidekickView:_,pipelineBlockUuids:E,selectFile:T,setContextItem:R,setCoordinates:M,setDraggingFile:F,setSelectedFile:A,theme:N,timeout:L,uncollapsed:Y,useRootFolder:U},"".concat($,"/").concat((null===n||void 0===n?void 0:n.name)||P))}))}),[t,Q,i,o,r,c,u,d,C,Z,S,D,I,_,E,T,R,M,F,A,N,L,Y,U,$]),oe=(0,l.useMemo)((function(){var e=[];return(0,j.w6)(u).forEach((function(n,t){var i,o=h.Cl-1;e.push((0,w.jsx)("div",{style:{borderLeft:"1px solid ".concat(null===N||void 0===N||null===(i=N.content)||void 0===i?void 0:i.disabled),height:22,marginLeft:o/2-2,paddingLeft:o/2+2}},"line-".concat($,"-").concat(t)))})),e}),[u,N,$]);return(0,w.jsxs)(w.Fragment,{children:[!S&&(0,w.jsxs)("div",{className:"row",onClick:function(e){if(e.preventDefault(),!q){if((null===V||void 0===V?void 0:V.name)===f.PF){null===_||void 0===_||_(g.cH.CHARTS);var n=(0,x.lr)(r);n&&(null===Z||void 0===Z||Z(n.uuid,n.type,(0,x.jN)(r)))}var i=(0,x.V3)(r);if(Q)t?T(G):ne((function(e){return(0,b.t8)($,!e),!e})),null===C||void 0===C||C(G);else if(d)d(G);else if(i)null===Z||void 0===Z||Z(i.uuid,i.type,(0,x.jN)(r));else if(W.match(f.xF))null===D||void 0===D||D(G);else{var o=(0,x.lr)(r);o&&(null===Z||void 0===Z||Z(o.uuid,o.type,(0,x.jN)(r)))}}},onContextMenu:function(e){var n;clearTimeout(L.current),null!==i&&void 0!==i&&null!==(n=i.current)&&void 0!==n&&n.contains(e.target)&&!o&&(e.preventDefault(),M({x:e.pageX,y:e.pageY}),F(null),A(r))},onMouseDown:function(e){var n,t=r?(0,x.lr)(r):null;null===i||void 0===i||null===(n=i.current)||void 0===n||!n.contains(e.target)||!t||(null===Q||void 0===Q?void 0:Q.length)>=1||o||q||X||(e.preventDefault(),clearTimeout(L.current),L.current=setTimeout((function(){M({x:e.pageX,y:e.pageY}),F(r),A(null)}),300))},style:{alignItems:"center",cursor:"default",display:"flex",minWidth:u*h.Cl+r.name.length*m.Fo+2*m.iI,paddingRight:m.iI/4},children:[oe,Q&&!ee&&(0,w.jsx)(v._M,{muted:!0,size:h.ZG}),Q&&ee&&(0,w.jsx)(v._Q,{muted:!0,size:h.ZG}),!Q&&(0,w.jsx)("div",{style:{width:h.ZG}}),(0,w.jsxs)("div",{style:{marginLeft:m.iI/2,marginRight:m.iI/2},children:[!z&&(0,w.jsx)(te,{disabled:J,size:h.ZG}),z&&(0,w.jsx)(s.Z,{color:z,size:h.ZG,square:!0})]}),(0,w.jsx)(p.ZP,{color:z,default:!z&&!q,disabled:q,monospace:!0,small:!0,children:W})]}),(0,w.jsx)("div",{style:{display:ee?"none":"block"},children:ie})]})},S=t(60328),D=t(67971),I=t(11135),_=t(29237),E=t(86673),T=t(82944),R=t(82531),M=t(16115),F=t(7715),A=t(96510),N=t(51504);var L=function(e){var n=e.fetchFileTree,t=e.file,i=e.moveFile,r=e.onCancel,c=e.onCreateFile,a=e.selectedFolder,d=e.setErrors,s=(0,l.useRef)(null),f=(0,F.Qr)(t)?null:t,p=(0,l.useState)(f?(0,x.jN)(f,null,!0):""),v=p[0],h=p[1],m=(0,l.useState)(f?null===f||void 0===f?void 0:f.name:""),g=m[0],b=m[1];(0,l.useEffect)((function(){var e;null===s||void 0===s||null===(e=s.current)||void 0===e||e.focus()}),[]),(0,l.useEffect)((function(){a&&h((0,x.jN)(a))}),[a]);var y=(0,u.Db)(R.ZP.files.useCreate(),{onSuccess:function(e){return(0,A.wD)(e,{callback:function(e){var t=e.file;null===n||void 0===n||n(),r(),null===c||void 0===c||c(t)},onErrorCallback:function(e,n){return d({errors:n,response:e})}})}}),j=(0,o.Z)(y,1)[0],O=(0,u.Db)(R.ZP.files.useUpdate(f&&encodeURIComponent((0,x.jN)(f))),{onSuccess:function(e){return(0,A.wD)(e,{callback:function(){null===n||void 0===n||n(),r()},onErrorCallback:function(e,n){return d({errors:n,response:e})}})}}),C=(0,o.Z)(O,1)[0];return(0,w.jsxs)(_.Z,{footer:(0,w.jsxs)(D.Z,{children:[(0,w.jsxs)(I.ZP,{bold:!0,disabled:!g,inline:!0,keyboardShortcutValidation:function(e){var n=e.keyMapping;return(0,N.y)([M.Uq],n)},onClick:function(){return f?C({file:{dir_path:v,name:g},file_json_only:!0}):j({file:{dir_path:v,name:g,overwrite:!1},file_json_only:!0})},primary:!0,tabIndex:0,uuid:"NewFile/create_file",children:[f?i?"Move":"Rename":"Create"," file"]}),(0,w.jsx)(E.Z,{ml:1,children:(0,w.jsx)(S.Z,{onClick:function(){return r()},tabIndex:0,children:"Cancel"})})]}),headerTitle:f?i?"Move file":"Rename file":"New file",children:[(0,w.jsx)(T.Z,{disabled:!!f&&!i,label:"Directory",monospace:!0,onChange:function(e){return h(e.target.value)},setContentOnMount:!0,value:v}),(0,w.jsx)(E.Z,{mt:2,children:(0,w.jsx)(T.Z,{disabled:!!i,label:"Filename",monospace:!0,onChange:function(e){return b(e.target.value)},ref:s,required:!0,value:g})})]})},Y=t(98781),U=t(62609),B=t(55106),H=t(66176),W=t(58180),V=t(23831),z=t(73942),G=(m.iI,c.default.div.withConfig({displayName:"indexstyle__DropZoneStyle",componentId:"sc-1g3zz7z-0"})(["border-radius:","px;padding:","px;max-width:","px;min-width:","px;",""],z.n_,8*m.iI,100*m.iI,55*m.iI,(function(e){return"\n border: 1px dashed ".concat((e.theme.borders||V.Z.borders).contrast,";\n ")}))),X=c.default.div.withConfig({displayName:"indexstyle__TableStyle",componentId:"sc-1g3zz7z-1"})(["max-width:","px;min-width:","px;"],100*m.iI,55*m.iI);var Q=function(e){var n=e.fetchFileTree,t=e.onCancel,i=e.selectedFolder,r=(0,l.useState)(!1),c=r[0],u=r[1],a=(0,l.useState)({}),d=a[0],s=a[1],f=(0,l.useState)({}),v=f[0],h=f[1],m=!(0,F.Qr)(d),g=(0,l.useMemo)((function(){var e=[];return(0,j.YC)(Object.entries(d),(function(e){var n=(0,o.Z)(e,2),t=n[0];n[1];return t})).forEach((function(n){var t=(0,o.Z)(n,2),i=t[0],r=t[1],l=v[i],c=null===l||void 0===l?void 0:l.message;e.push([(0,w.jsxs)("div",{children:[(0,w.jsx)(p.ZP,{overflowWrap:!0,preWrap:!0,children:i}),c&&(0,w.jsx)(E.Z,{mt:1,children:(0,w.jsx)(p.ZP,{danger:!0,small:!0,children:c})})]},"name-".concat(i)),(0,w.jsx)(H.Z,{danger:!!c,progress:100*r},"progress-".concat(i))])})),(0,w.jsx)(W.Z,{columnFlex:[1,4],columns:[{uuid:"Filename"},{uuid:"Upload progress"}],rows:e,uuid:"block-runs"})}),[d,v]);return(0,w.jsxs)(_.Z,{footer:(0,w.jsxs)(D.Z,{fullWidth:!0,children:[(0,w.jsx)(S.Z,{onClick:function(){return t()},children:"Close"}),m&&(0,w.jsx)(E.Z,{ml:1,children:(0,w.jsx)(S.Z,{onClick:function(){s({}),h({})},children:"Clear files and retry"})})]}),headerTitle:"Upload files",children:[m&&(0,w.jsx)(X,{children:g}),!m&&(0,w.jsx)(B.Z,{directoryPath:i?(0,x.jN)(i):"",onDragActiveChange:u,setFileUploadProgress:s,setUploadedFiles:function(e){h(e),null===n||void 0===n||n()},children:(0,w.jsx)(G,{children:(0,w.jsxs)(p.ZP,{center:!0,children:[c&&"Drop to upload",!c&&"Click or drop files and folders to upload"]})})})]})},J=t(86585),q=t(55512),$=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 i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}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,i.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,ie=20*m.iI;function oe(e,n){var t=e.addNewBlock,i=e.blocks,s=void 0===i?[]:i,v=e.deleteWidget,g=e.fetchAutocompleteItems,b=e.fetchFileTree,y=e.fetchPipeline,O=e.files,C=e.onCreateFile,k=e.pipeline,P=e.setErrors,S=e.setSelectedBlock,D=e.widgets,I=void 0===D?[]:D,_=(0,r.Z)(e,K),E=(0,l.useRef)(null),T=(0,l.useContext)(c.ThemeContext),M=(0,l.useState)(null),F=M[0],N=M[1],B=(0,l.useState)(null),H=B[0],W=B[1],V=(0,l.useState)(null),z=V[0],G=V[1],X=R.ZP.statuses.list().data,ee=(0,l.useMemo)((function(){var e,n;return null===X||void 0===X||null===(e=X.statuses)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.repo_path}),[X]),te=(0,u.Db)((function(e){return R.ZP.files.useDelete(e)()}),{onSuccess:function(e){return(0,A.wD)(e,{callback:function(){null===b||void 0===b||b()},onErrorCallback:function(e,n){return P({errors:n,response:e})}})}}),oe=(0,o.Z)(te,1)[0],re=(0,$.dd)((function(e){var n=e.block;e.exception;return(0,w.jsx)(U.Z,{centerOnScreen:!0,danger:!0,onClick:function(){return de({block:n,force:!0}).then((function(){return ue()}))},onCancel:ue,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*m.iI})})),le=(0,o.Z)(re,2),ce=le[0],ue=le[1],ae=(0,u.Db)((function(e){var n=e.block,t=n.language,i=n.type,o=n.uuid,r=e.force,l=void 0!==r&&r,c="".concat(i,"/").concat(o);return t&&f.JD[t]&&(c="".concat(c,".").concat(f.JD[t].toLowerCase())),R.ZP.blocks.useDelete(encodeURIComponent(c),{force:l})()}),{onSuccess:function(e){return(0,A.wD)(e,{callback:function(){g(),y(),b()},onErrorCallback:function(e){var n=e.error,t=n.exception;n.message.includes("raise HasDownstreamDependencies")&&ce({block:ge,exception:t})}})}}),de=(0,o.Z)(ae,1)[0],se=(0,j.sE)(null===k||void 0===k?void 0:k.blocks,(function(e){var n=e.type;return a.tf.DATA_EXPORTER===n})),fe=(0,u.Db)(R.ZP.blocks.pipelines.useUpdate(null===k||void 0===k?void 0:k.uuid,null===se||void 0===se?void 0:se.uuid),{onSuccess:function(e){return(0,A.wD)(e,{callback:function(){null===y||void 0===y||y()},onErrorCallback:function(e,n){return P({errors:n,response:e})}})}}),pe=(0,o.Z)(fe,1)[0],ve=(0,l.useCallback)((function(){return G(null)}),[G]);(0,l.useEffect)((function(){var e,i,o,r=function(e){if(clearTimeout(E.current),W(null),H&&k&&t){var i,o,r=(null===n||void 0===n||null===(i=n.current)||void 0===i||null===(o=i.getBoundingClientRect)||void 0===o?void 0:o.call(i))||{},l=r.width,c=r.x;if(e.pageX>c+l){var u=(null===k||void 0===k?void 0:k.type)===Y.qL.INTEGRATION,a=(0,q.TU)(ne(ne({},H),{},{path:(0,x.jN)(H)}),ee,k);null===t||void 0===t||t(a,(function(e){u&&se&&pe({block:ne(ne({},se),{},{upstream_blocks:[e.uuid]})}),null===S||void 0===S||S(e)}))}}},l=function(e){H&&N({x:e.pageX,y:e.pageY})};return null===(e=document)||void 0===e||e.addEventListener("click",ve),null===(i=document)||void 0===i||i.addEventListener("mousemove",l),null===(o=document)||void 0===o||o.addEventListener("mouseup",r),function(){var e,n,t;null===(e=document)||void 0===e||e.removeEventListener("click",ve),null===(n=document)||void 0===n||n.removeEventListener("mousemove",l),null===(t=document)||void 0===t||t.removeEventListener("mouseup",r)}}),[t,se,H,ve,k,n,ee,S,E,pe]);var he=(0,l.useMemo)((function(){return s.concat(I).map((function(e){return e.uuid}))}),[s,I]),me=(0,l.useMemo)((function(){return null===O||void 0===O?void 0:O.map((function(e){return(0,l.createElement)(Z,ne(ne({},_),{},{containerRef:n,file:e,key:e.name,level:0,pipelineBlockUuids:he,setCoordinates:N,setDraggingFile:W,setSelectedFile:G,theme:T,timeout:E}))}))}),[O,he,_,n,T,E]),ge=(0,l.useMemo)((function(){return z&&(0,x.lr)(z)}),[z]),be=(0,l.useMemo)((function(){return H&&(0,x.lr)(H)}),[H]),ye=(0,l.useMemo)((function(){return z&&"undefined"!==typeof(null===z||void 0===z?void 0:z.children)&&z}),[z]),xe=(0,$.dd)((function(){return(0,w.jsx)(Q,{fetchFileTree:b,onCancel:we,selectedFolder:ye})}),{},[b,ye],{background:!0,uuid:"upload_files"}),je=(0,o.Z)(xe,2),Oe=je[0],we=je[1],Ce=(0,$.dd)((function(e){return(0,w.jsx)(L,{fetchFileTree:b,file:null===e||void 0===e?void 0:e.file,moveFile:null===e||void 0===e?void 0:e.moveFile,onCancel:Ze,onCreateFile:C,selectedFolder:ye,setErrors:P})}),{},[b,C,ye,P],{background:!0,disableClickOutside:!0,uuid:"new_file"}),ke=(0,o.Z)(Ce,2),Pe=ke[0],Ze=ke[1],Se=(0,l.useMemo)((function(){var e;if(!ge&&!z&&!ye)return(0,w.jsx)("div",{});var t=(null===n||void 0===n||null===(e=n.current)||void 0===e?void 0:e.getBoundingClientRect())||{},i=t.x,o=t.width,r=F||{},l=r.x,c=void 0===l?0:l,u=r.y,s=void 0===u?0:u,f=c;c+ie>=i+o&&(f=i+o-(ie+m.iI)),f<0&&(f=0);var p=[];return ye?p.push.apply(p,[{label:function(){return"Upload files"},onClick:function(){Oe()},uuid:"upload_files"},{label:function(){return"New file"},onClick:function(){Pe({file:{}})},uuid:"new_file"}]):ge?p.push({label:function(){return"Delete block file"},onClick:function(){ge.type===a.tf.CHART?window.confirm("Are you sure you want to delete widget ".concat(ge.uuid,"?"))&&v(ge):window.confirm("Are you sure you want to delete block ".concat(ge.uuid,"?"))&&de({block:ge})},uuid:"delete_block_file"}):z&&p.push.apply(p,[{label:function(){return"Rename file"},onClick:function(){Pe({file:z})},uuid:"rename_file"},{label:function(){return"Move file"},onClick:function(){Pe({file:z,moveFile:!0})},uuid:"move_file"},{label:function(){return"Delete file"},onClick:function(){var e=(0,x.jN)(z);window.confirm("Are you sure you want to delete file ".concat(e,"?"))&&oe(encodeURIComponent(e))},uuid:"delete_file"}]),(0,w.jsx)("div",{style:{left:f,position:"fixed",top:s+m.iI/2,zIndex:J.bf+100},children:(0,w.jsx)(d.Z,{items:p,open:!0,parentRef:void 0,uuid:"FileBrowser/ContextMenu",width:ie})})}),[F,de,oe,v,n,Oe,Pe,ge,z,ye]);return(0,w.jsxs)(h.Nk,{ref:n,children:[me,(ge||z||ye)&&Se,be&&(0,w.jsx)("div",{style:{left:(null===F||void 0===F?void 0:F.x)-m.iI,position:"fixed",top:(null===F||void 0===F?void 0:F.y)-m.iI,zIndex:J.bf+100},children:(0,w.jsx)(p.ZP,{cursor:"grabbing",monospace:!0,children:null===be||void 0===be?void 0:be.uuid})})]})}!function(e){e.BLOCK_FILE="block_file",e.DISABLED="disabled",e.FILE="file",e.FOLDER="folder",e.PIPELINE="pipeline"}(te||(te={}));var re=l.forwardRef(oe)},32821:function(e,n,t){t.d(n,{V3:function(){return s},a9:function(){return c},dq:function(){return f},jN:function(){return a},lr:function(){return d}});var i=t(17717),o=t(86422),r=t(73828),l=t(90211);function c(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=n||(t?null:null===e||void 0===e?void 0:e.name);if(null!==e&&void 0!==e&&e.parent){var r=[e.parent.name];return(null===o||void 0===o?void 0:o.length)>=1&&r.push(o),c(e.parent,r.join(i.sep))}return o}function u(e){return null===e||void 0===e?void 0:e.split(i.sep).slice(1).join(i.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],i=c(e,n,t);return u(i)}function d(e){var n,t,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=c(e,u).split(i.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(i.sep))&&(n=a[0]===o.tf.CUSTOM?a[0]:(0,l.C5)(a[0]||""));else if(a[1]===o.tf.CUSTOM)n=a[1];else{var d=a[1];n=o.tf.DBT===d?d:(0,l.C5)(d||"")}if(!a)return null;var s="";s=a.length>=3?a.slice(2,a.length).join(i.sep):a[a.length-1];var f=["\\.".concat(r.Lu.PY),"\\.".concat(r.Lu.R),"\\.".concat(r.Lu.SQL),"\\.".concat(r.Lu.YAML),"\\.".concat(r.Lu.YML)].join("|"),p=new RegExp("".concat(f,"$"));if(o.$W.concat(o.tf.DBT).includes(n)&&s.match(p)){var v=s.lastIndexOf("."),h=s.slice(v+1);return{language:r.nB[h],type:n,uuid:s.slice(0,v)}}}function s(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=c(e,n).split(i.sep);if(t[1]){var u=(0,l.C5)(t[n?0:1]);t[1]===o.tf.DBT&&(u=o.tf.DBT);var a=t[t.length-1],d=new RegExp(".".concat(r.Lu.YAML,"$")),s=new RegExp(".".concat(r.Lu.R,"$")),f=new RegExp(".".concat(r.Lu.SQL,"$")),p=new RegExp(".".concat(r.Lu.MD,"$"));if(a.match(d)&&o.VZ.includes(u))return{type:u,uuid:a.replace(d,"")};if(a.match(s)&&o.J8.includes(u))return{type:u,uuid:a.replace(s,"")};if(a.match(f)&&o.HX.includes(u)){var v=a.replace(/[.]/g,"_"),h=u===o.tf.DBT?t.slice(2,-1).join("_").concat("_".concat(v)):a.replace(f,"");return{type:u,uuid:h}}return a.match(p)&&u===o.tf.MARKDOWN?{type:u,uuid:a.replace(p,"")}:void 0}}function f(e){var n=e.name.split("."),t=n[n.length-1];return r.n6.includes(t)&&n.pop(),n.join("")}},91207:function(e,n,t){t.d(n,{Z:function(){return A}});var i=t(82394),o=t(75582),r=t(17717),l=t(82684),c=t(37958),u=t(83455),a=t(35490),d=t(86422),s=t(60328),f=t(9518),p=t(93461),v=t(67971),h=t(28598),m=f.default.div.withConfig({displayName:"ButtonGroup__ButtonGroupStyle",componentId:"sc-15vbmc8-0"})([""]),g=f.default.div.withConfig({displayName:"ButtonGroup__VerticalDivider",componentId:"sc-15vbmc8-1"})(["width:1px;"]),b=function(e){var n=e.children,t=e.divider,i=l.Children.toArray(n).length;return(0,h.jsx)(m,{children:(0,h.jsx)(v.Z,{children:l.Children.map(n,(function(e,n){return e&&(0,h.jsxs)(p.Z,{children:[n>=1&&t&&(0,h.jsx)(g,{}),l.cloneElement(e,{borderRadiusLeft:i>=2&&0===n,borderRadiusRight:i>=2&&n===i-1,halfPaddingLeft:i>=2&&0!==n,halfPaddingRight:i>=2&&n!==i-1,noBorder:i>=2&&n>0&&n<i-1,noBorderRight:i>=2&&n!==i-1})]},"button-group-child-".concat(n))}))})})},y=t(57722),x=t(73828),j=t(11135),O=t(98781),w=t(86673),C=t(82531),k=t(16115),P=t(94353),Z=t(60701),S=t(55512),D=t(24224),I=t(32821),_=t(90211),E=t(96510),T=t(51504),R=t(41150);function M(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function F(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?M(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):M(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var A=function(e){var n=e.active,t=e.addNewBlock,f=e.disableRefreshWarning,p=e.fetchPipeline,m=e.fetchVariables,g=e.filePath,M=e.hideHeaderButtons,A=e.onContentChange,N=e.openSidekickView,L=e.pipeline,Y=e.saveFile,U=e.selectedFilePath,B=e.sendTerminalMessage,H=e.setDisableShortcuts,W=e.setErrors,V=e.setFilesTouched,z=e.setSelectedBlock,G=(0,c.j)("apiReloads"),X=(0,o.Z)(G,2)[1],Q=(0,l.useState)(null),J=Q[0],q=Q[1],$=(0,l.useState)(!1),K=$[0],ee=($[1],(0,l.useRef)(null)),ne=(0,l.useMemo)((function(){return new a.Z}),[]),te=(0,l.useMemo)((function(){return{api_key:P.l,token:ne.decodedToken.token}}),[ne]),ie=C.ZP.statuses.list().data,oe=(0,l.useMemo)((function(){var e,n;return null===ie||void 0===ie||null===(e=ie.statuses)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.repo_path}),[ie]),re=C.ZP.file_contents.detail(g).data;(0,l.useEffect)((function(){null!==re&&void 0!==re&&re.file_content&&q(re.file_content)}),[re]);var le=(0,l.useState)(null===J||void 0===J?void 0:J.content),ce=le[0],ue=le[1],ae=(0,l.useCallback)((function(e){ue(e),A&&(null===A||void 0===A||A(e))}),[A]),de=(0,l.useState)(!1),se=de[0],fe=de[1];(0,l.useEffect)((function(){n&&H&&(null===H||void 0===H||H(!0))}),[n,H]),(0,l.useEffect)((function(){var e;U&&(null===ee||void 0===ee||null===(e=ee.current)||void 0===e||e.scrollIntoView())}),[U]);var pe=(0,u.Db)(C.ZP.file_contents.useUpdate((null===J||void 0===J?void 0:J.path)&&encodeURIComponent(null===J||void 0===J?void 0:J.path)),{onSuccess:function(e){return(0,E.wD)(e,{callback:function(){X((function(e){return F(F({},e),{},(0,i.Z)({},"FileVersions/".concat(null===J||void 0===J?void 0:J.path),Number(new Date)))}))},onErrorCallback:function(e,n){return null===W||void 0===W?void 0:W({errors:n,response:e})}})}}),ve=(0,o.Z)(pe,1)[0],he=(0,l.useCallback)((function(e,n){if(Y)return Y(e,n);ve({file_content:F(F({},n),{},{content:e})}).then((function(){decodeURIComponent(g).split(r.sep).pop()===x.dT.METADATA_YAML&&m&&(null===m||void 0===m||m())})),V((function(e){return F(F({},e),{},(0,i.Z)({},null===n||void 0===n?void 0:n.path,!1))})),fe(!1)}),[m,g,Y,V,ve]),me=(0,l.useMemo)((function(){return(0,S.lU)()}),[]),ge=(0,l.useMemo)((function(){var e;return null===J||void 0===J||null===(e=J.path.match(me)[0])||void 0===e?void 0:e.split(".")[1]}),[me,J]),be=(0,l.useMemo)((function(){if(null!==J&&void 0!==J&&J.path)return(0,h.jsx)(y.Z,{autoHeight:!0,language:x.nB[ge],onChange:function(e){ae(e),V((function(e){return F(F({},e),{},(0,i.Z)({},null===J||void 0===J?void 0:J.path,!0))})),fe(!0)},onSave:function(e){he(e,J)},selected:!0,textareaFocused:!0,value:(0,_.Pb)(null===J||void 0===J?void 0:J.content)?JSON.stringify(JSON.parse(null===J||void 0===J?void 0:J.content),null,2):null===J||void 0===J?void 0:J.content,width:"100%"})}),[J,ge,he,ae,V]),ye=null!==L&&void 0!==L&&L.blocks?(0,D.sE)(null===L||void 0===L?void 0:L.blocks,(function(e){var n=e.type;return d.tf.DATA_EXPORTER===n})):null,xe=(0,u.Db)(C.ZP.blocks.pipelines.useUpdate(null===L||void 0===L?void 0:L.uuid,null===ye||void 0===ye?void 0:ye.uuid),{onSuccess:function(e){return(0,E.wD)(e,{callback:function(){null===p||void 0===p||p()}})}}),je=(0,o.Z)(xe,1)[0],Oe=t&&L&&(ge===x.Lu.PY||ge===x.Lu.SQL||(ge===x.Lu.YAML||ge===x.Lu.R)&&(0,I.V3)(J,null===J||void 0===J?void 0:J.path))&&(0,S.ck)(J.path.split(r.sep))!==d.tf.SCRATCHPAD&&(0,I.lr)(J)&&(0,h.jsx)(s.Z,{onClick:function(){var e=(null===L||void 0===L?void 0:L.type)===O.qL.INTEGRATION,n=(0,S.TU)(J,oe,L);t(n,(function(n){e&&ye&&je({block:F(F({},ye),{},{upstream_blocks:[n.uuid]})}),null===z||void 0===z||z(n)}))},primary:!0,children:"Add to current pipeline"}),we=B&&(0,h.jsx)(w.Z,{m:2,children:(0,h.jsx)(j.ZP,{disabled:!oe,inline:!0,loading:K,onClick:function(){null===N||void 0===N||N(Z.cH.TERMINAL),null===B||void 0===B||B(JSON.stringify(F(F({},te),{},{command:["stdin","pip install -r ".concat(oe,"/requirements.txt\r")]})))},title:oe?"Pip install packages from your saved requirements.txt file (\u2318+S to save).":"Please use right panel terminal to install packages.",uuid:"FileEditor/InstallPackages",children:"Install packages"})}),Ce="FileEditor/".concat(null===J||void 0===J?void 0:J.path),ke=(0,R.y)(),Pe=ke.registerOnKeyDown,Ze=ke.unregisterOnKeyDown;return(0,l.useEffect)((function(){return function(){Ze(Ce)}}),[Ze,Ce]),Pe(Ce,(function(e,t){if(n&&!f)if((0,T.y)([k.zX,k.Um],t)||(0,T.y)([k.PQ,k.Um],t))e.preventDefault(),he(ce,J);else if(se&&(0,T.y)([k.zX,k.hS],t)){e.preventDefault();var i="".concat(J.path," has changes that are unsaved. ")+"Click cancel and save your changes before reloading page.";"undefined"!==typeof location&&window.confirm(i)&&location.reload()}}),[n,ce,f,J,he,se]),(0,h.jsxs)("div",{ref:ee,children:[!M&&(0,h.jsx)(w.Z,{p:2,children:(0,h.jsxs)(v.Z,{justifyContent:"space-between",children:[(0,h.jsxs)(b,{children:[Oe,(0,h.jsx)(s.Z,{disabled:!ce,onClick:function(e){e.preventDefault(),he(ce,J)},title:ce?null:"No changes have been made to this file.",children:"Save file content"})]}),N&&(0,h.jsx)(b,{children:(0,h.jsx)(s.Z,{compact:!0,onClick:function(){N(Z.cH.FILE_VERSIONS)},small:!0,title:"View previous changes to this file.",children:"Show versions"})})]})}),be,g===x.dT.REQS_TXT&&we]})}},55512:function(e,n,t){t.d(n,{TU:function(){return f},ck:function(){return d},lU:function(){return s}});var i=t(21831),o=t(17717),r=t(86422),l=t(98781),c=t(73828),u=t(24224),a=t(90211),d=function(e){var n=e[0];return n===r.tf.DBT||n===r.tf.CUSTOM?n:e[0].slice(0,-1)};function s(){return new RegExp(Object.keys(c.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(s())[0])||void 0===f?void 0:f.split(".")[1],h=t.type===l.qL.INTEGRATION,m=(0,u.sE)(null===t||void 0===t?void 0:t.blocks,(function(e){var n=e.type;return r.tf.DATA_EXPORTER===n})),g=e.path.replace(n,"").split(o.sep),b=e.path.split(o.sep)[0]===r.tf.DBT,y=(p=g)[0]===r.tf.DBT?p.slice(1).join(o.sep):function(e){return e.at(-1)}(p).split(".")[0];if(g.length>=3&&!b){var x=g.slice(1,g.length-1).join(o.sep);y="".concat(x,"/").concat(y)}var j=d(e.path.split(o.sep)),O={configuration:{file_path:b?y:null},language:c.nB[v],name:(0,a.wE)(y),type:j};if(j===r.tf.CUSTOM&&(O.color=r.Lq.TEAL),h){var w=(0,u.sE)(t.blocks,(function(e){var n=e.type;return r.tf.DATA_LOADER===n})),C=(0,u.sE)(t.blocks,(function(e){var n=e.type;return r.tf.TRANSFORMER===n})),k=[];C?k.push(C.uuid):null!==m&&void 0!==m&&m.upstream_blocks?k.push.apply(k,(0,i.Z)(m.upstream_blocks)):w&&k.push(w.uuid),O.upstream_blocks=k}return O}},55106:function(e,n,t){t.d(n,{Z:function(){return b}});var i=t(82394),o=t(75582),r=t(17717),l=t(82684),c=t(83455),u=t(9518),a=t(77011),d=t(28598);function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function f(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?s(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var p=u.default.div.withConfig({displayName:"MultiFileInput__DropzoneStyle",componentId:"sc-1l6yd2y-0"})(["&:hover{cursor:pointer;}"]);var v=function(e){var n=e.children,t=e.inputOnChange,i=e.inputProps,o=e.onDragActiveChange,r=e.setFiles,c=(0,l.useCallback)((function(e){r(e)}),[r]),u=(0,a.uI)({onDrop:c}),s=u.getInputProps,v=u.getRootProps,h=u.isDragActive,m=s(),g=m.accept,b=m.autoComplete,y=m.multiple,x=m.onChange,j=m.onClick,O=m.ref,w=m.style,C=m.tabIndex,k=m.type,P=f(f({},i),{},{accept:g,autoComplete:b,multiple:y,onChange:function(e){null===t||void 0===t||t(e),null===i||void 0===i||i.onChange(e),x(e)},onClick:j,ref:O,style:w,tabIndex:C,type:k});return(0,l.useEffect)((function(){null===o||void 0===o||o(h)}),[h,o]),(0,d.jsxs)(p,f(f({},v()),{},{children:[(0,d.jsx)("input",f(f({},P),{},{directory:"",webkitdirectory:""})),n]}))},h=t(82531);function m(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function g(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?m(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var b=function(e){var n=e.children,t=e.directoryPath,u=e.onDragActiveChange,a=e.setFileUploadProgress,s=e.setUploadedFiles,f=(0,c.Db)(h.ZP.files.useCreate({onUploadProgress:function(e,n){var t,o=n.body,l=[null===o||void 0===o?void 0:o.dir_path,null===o||void 0===o||null===(t=o.file)||void 0===t?void 0:t.name].filter((function(e){return(null===e||void 0===e?void 0:e.length)>=1})).join(r.sep);null===a||void 0===a||a((function(n){return g(g({},n),{},(0,i.Z)({},l,e.loaded/e.total))}))}})),p=(0,o.Z)(f,1)[0],m=(0,l.useCallback)((function(e){e.forEach((function(e){var n=e.name,o=e.path,l=[t],c=o.split(r.sep).filter((function(e){return e&&e!==n})).join(r.sep);c&&l.push(c);var u=[],d=l.join(r.sep);(null===d||void 0===d?void 0:d.length)>=1&&l.push(d),u.push(n);var f=u.join(r.sep);p({dir_path:d,file:e,overwrite:!1}).then((function(e){var n=e.data,t=n.error,o=n.file;s((function(e){return g(g({},e),{},(0,i.Z)({},f,o||t))}))})),a((function(e){return g(g({},e),{},(0,i.Z)({},f,0))}))}))}),[p,t,a,s]);return(0,d.jsx)(v,{onDragActiveChange:u,setFiles:m,children:n})}},23351:function(e,n,t){var i=t(82394),o=t(75582),r=t(17717),l=t(37958),c=t(82684),u=t(83455),a=t(60328),d=t(57722),s=t(73828),f=t(93461),p=t(67971),v=t(87372),h=t(86673),m=t(54283),g=t(58180),b=t(19711),y=t(82531),x=t(49125),j=t(55512),O=t(42305),w=t(90211),C=t(96510),k=t(66653),P=t(24224),Z=t(28598);function S(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function D(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?S(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):S(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.onActionCallback,t=e.selectedBlock,S=e.selectedFilePath,I=e.setErrors,_=e.width,E=(0,l.j)("apiReloads"),T=(0,o.Z)(E,2)[1],R=y.ZP.file_versions.files.list(S&&encodeURIComponent(S)),M=R.data,F=R.mutate,A=(0,c.useMemo)((function(){return(null===M||void 0===M?void 0:M.file_versions)||[]}),[M]),N=(0,c.useState)(null),L=N[0],Y=N[1],U=(0,c.useMemo)((function(){return null===A||void 0===A?void 0:A[L]}),[L,A]),B=y.ZP.file_contents.detail(U?encodeURIComponent(U.path):null).data,H=(0,c.useMemo)((function(){return null===B||void 0===B?void 0:B.file_content}),[B]),W=(0,c.useMemo)((function(){return(0,j.lU)()}),[]),V=(0,c.useMemo)((function(){var e,n,t;return null===S||void 0===S||null===(e=S.match(W))||void 0===e||null===(n=e[0])||void 0===n||null===(t=n.split("."))||void 0===t?void 0:t[1]}),[S,W]),z=(0,u.Db)(y.ZP.file_contents.useUpdate(S&&encodeURIComponent(S)),{onSuccess:function(e){return(0,C.wD)(e,{callback:function(e){var t;S&&F();var o=null===e||void 0===e||null===(t=e.file_content)||void 0===t?void 0:t.path,l="FileEditor/".concat(o);if(o){var c=o.split(r.sep);if("pipelines"===c[0]){var u=c.slice(1,c.length-1).join(r.sep);l="PipelineDetail/".concat(u)}}T((function(e){return D(D({},e),{},(0,i.Z)({},l,Number(new Date)))})),Y((function(e){return e+1})),null===n||void 0===n||n(e)},onErrorCallback:function(e,n){return I({errors:n,response:e})}})}}),G=(0,o.Z)(z,2),X=G[0],Q=G[1].isLoading,J=(0,c.useMemo)((function(){var e=A.map((function(e){var n=e.name,t=e.path;return[(0,Z.jsxs)(p.Z,{alignItems:"center",justifyContent:"space-between",children:[(0,Z.jsxs)(f.Z,{flex:1,children:[(0,Z.jsx)(b.ZP,{default:!0,monospace:!0,children:(0,O.JX)(n,{withSeconds:!0})}),(0,Z.jsx)(h.Z,{px:2*x.cd,children:(0,Z.jsx)(b.ZP,{monospace:!0,children:n})})]}),U&&(null===U||void 0===U?void 0:U.path)===t&&(0,Z.jsx)(a.Z,{compact:!0,loading:Q,onClick:function(e){(0,k.j)(e),X({file_content:{version:n}})},small:!0,children:"Replace with this version"})]},n)]}));if(U){var n=(0,Z.jsx)(h.Z,{p:x.cd,children:(0,Z.jsx)(m.Z,{},"spinner")});if(H&&(null===H||void 0===H?void 0:H.path)===(null===U||void 0===U?void 0:U.path)){var t=H.content,i=void 0===t?"":t;n=(0,Z.jsx)(d.Z,{autoHeight:!0,language:s.nB[V],padding:!0,readOnly:!0,value:(0,w.Pb)(i)?JSON.stringify(JSON.parse(i),null,2):i,width:_})}e=(0,P.Hk)([n],L+1,e)}return e}),[H,V,A,Q,U,L,X,_]);return(0,Z.jsxs)("div",{style:{width:_},children:[(0,Z.jsxs)(h.Z,{p:x.cd,children:[(0,Z.jsx)(v.Z,{level:5,children:"File versions"}),(0,Z.jsx)(b.ZP,{inline:!0,monospace:!0,children:S?decodeURIComponent(S):null===t||void 0===t?void 0:t.uuid})]}),(0,Z.jsx)(g.Z,{buildRowProps:function(e){if(U&&L+1===e)return{renderCell:function(e){return e},renderRow:function(e){return e}}},columnFlex:[1],columns:[{uuid:"Version"}],isSelectedRow:function(e){var n;return(null===(n=A[e])||void 0===n?void 0:n.name)===(null===U||void 0===U?void 0:U.name)},onClickRow:function(e){U?e===L?Y(null):e<L?Y(e):e>L+1&&Y(e-1):Y(e)},rows:J})]})}},38488:function(e,n,t){t.d(n,{Z:function(){return k}});var i=t(82394),o=t(26304),r=t(82684),l=t(9518),c=t(16634),u=t(67971),a=t(10919),d=t(86673),s=t(19711),f=t(46261),p=t(23831),v=t(10503),h=t(28347),m=t(49125),g=t(33766),b=t(66653),y=t(28598);var x=function(e){var n=e.filePath,t=e.filesTouched,i=void 0===t?{}:t,o=e.isLast,l=e.onClickTab,x=e.onClickTabClose,j=e.renderTabTitle,O=e.savePipelineContent,w=e.selected,C=e.themeContext,k=(0,r.useState)(!1),P=k[0],Z=k[1];return(0,y.jsx)(u.Z,{flexDirection:"column",fullHeight:!0,onClick:function(e){e.preventDefault(),w||(l?l(n):(null===O||void 0===O||O(),(0,g.u7)({file_path:encodeURIComponent(n)})))},onMouseEnter:function(){return Z(!0)},onMouseLeave:function(){return Z(!1)},children:(0,y.jsx)(h.Gb,{last:o,selected:w,children:(0,y.jsxs)(u.Z,{alignItems:"center",fullHeight:!0,children:[(0,y.jsx)(f.Z,{appearAbove:!0,appearBefore:!0,label:n,size:null,widthFitContent:!0,children:(0,y.jsxs)(u.Z,{alignItems:"center",fullHeight:!0,children:[!i[n]&&(0,y.jsx)(v.iU,{muted:!w,size:1.5*m.iI}),i[n]&&(0,y.jsx)(f.Z,{label:"Unsaved changes",size:null,widthFitContent:!0,children:(0,y.jsx)("div",{style:{padding:1},children:(0,y.jsx)(c.Z,{borderColor:(C||p.Z).borders.danger,size:1.25*m.iI})})}),(0,y.jsx)(d.Z,{mr:1}),(0,y.jsx)(s.ZP,{muted:!w,children:j?j(n):n})]})}),(0,y.jsx)(d.Z,{mr:2}),(0,y.jsx)(f.Z,{label:"Close",size:null,widthFitContent:!0,children:(0,y.jsxs)(a.Z,{autoHeight:!0,block:!0,noHoverUnderline:!0,noOutline:!0,onClick:function(e){(0,b.j)(e),null===x||void 0===x||x(n)},preventDefault:!0,children:[(P||w)&&(0,y.jsx)(v.x8,{muted:!w,size:1.25*m.iI}),!P&&!w&&(0,y.jsx)("div",{style:{width:1.25*m.iI}})]})})]})})})},j=t(24224),O=["filePaths","isSelectedFilePath","onClickTabClose","selectedFilePath"];function w(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function C(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?w(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):w(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var k=function(e){var n=e.filePaths,t=e.isSelectedFilePath,i=e.onClickTabClose,c=e.selectedFilePath,a=(0,o.Z)(e,O),d=(0,r.useContext)(l.ThemeContext),s=(0,r.useMemo)((function(){return n.map((function(e){return decodeURIComponent(e)}))}),[n]),f=(0,r.useMemo)((function(){return null===s||void 0===s?void 0:s.length}),[s]);return(0,y.jsx)(u.Z,{alignItems:"center",justifyContent:"flex-start",children:null===s||void 0===s?void 0:s.map((function(e,n){var o=t?t(e,c):c===encodeURIComponent(e);return(0,r.createElement)(x,C(C({},a),{},{filePath:e,isLast:n===f-1,key:e,onClickTabClose:function(e){if(i)i(e);else{var n=(0,j.Od)(s,(function(n){return n===e})).map((function(e){return encodeURIComponent(e)}));(0,g.u7)({file_path:n[n.length-1]||null,"file_paths[]":n},{pushHistory:!0})}},selected:o,themeContext:d}))}))})}},28347:function(e,n,t){t.d(n,{Gb:function(){return f},fm:function(){return d},lO:function(){return a},rK:function(){return s},zn:function(){return u}});var i=t(9518),o=t(23831),r=t(82386),l=t(49125),c=t(37391),u=300,a=i.default.div.withConfig({displayName:"indexstyle__PipelineContainerStyle",componentId:"sc-1sv9513-0"})([".pipeline-detail-enter-active{opacity:1;transition:opacity ","ms linear;}.pipeline-detail-enter-done{opacity:0;transition:opacity ","ms linear;}"],u,u),d=i.default.div.withConfig({displayName:"indexstyle__OverlayStyle",componentId:"sc-1sv9513-1"})(["height:100vh;opacity:1;position:fixed;width:100vw;z-index:9999;",""],(function(e){return"\n background-color: ".concat((e.theme.background||o.Z.background).codeArea,";\n ")})),s=i.default.div.withConfig({displayName:"indexstyle__PipelineHeaderStyle",componentId:"sc-1sv9513-2"})(["height:","px;position:sticky;top:","px;width:100%;z-index:5;"," "," "," ",""],r.Wi,r.Wi,(function(e){return"\n background-color: ".concat((e.theme.background||o.Z.background).panel,";\n border-bottom: 1px solid ").concat((e.theme.borders||o.Z.borders).medium,";\n ")}),(function(e){return e.relativePosition&&"\n position: relative;\n "}),(function(e){return e.secondary&&"\n height: ".concat(37,"px;\n top: ").concat(r.Wi,"px;\n overflow-x: auto;\n z-index: 3;\n ")}),(0,c.y$)()),f=i.default.div.withConfig({displayName:"indexstyle__FileTabStyle",componentId:"sc-1sv9513-3"})(["border-right:1px solid transparent;height:100%;padding:","px ","px;"," "," ",""],l.iI,l.cd*l.iI,(function(e){return"\n &:hover {\n cursor: default;\n\n p {\n color: ".concat((e.theme.content||o.Z.content).active," !important;\n cursor: default;\n }\n }\n ")}),(function(e){return e.selected&&"\n background-color: ".concat((e.theme.interactive||o.Z.interactive).hoverBackground,";\n ")}),(function(e){return!e.selected&&!e.last&&"\n border-color: ".concat((e.theme.borders||o.Z.borders).light," !important;\n ")}))},73828:function(e,n,t){t.d(n,{JD:function(){return m},Lu:function(){return r},PF:function(){return p},d2:function(){return f},dT:function(){return l},n6:function(){return a},nB:function(){return h},oy:function(){return v},xF:function(){return s}});var i,o,r,l,c=t(82394),u=t(86422);!function(e){e.JSON="json",e.MD="md",e.PY="py",e.R="r",e.SQL="sql",e.TXT="txt",e.YAML="yaml",e.YML="yml"}(r||(r={})),function(e){e.INIT_PY="__init__.py",e.METADATA_YAML="metadata.yaml",e.REQS_TXT="requirements.txt"}(l||(l={}));var a=[r.PY,r.SQL],d=[r.JSON,r.MD,r.PY,r.R,r.SQL,r.TXT,r.YAML,r.YML],s=new RegExp(d.map((function(e){return".".concat(e,"$")})).join("|")),f=new RegExp(d.map((function(e){return".".concat(e,"$")})).join("|")),p="charts",v="pipelines",h=(i={},(0,c.Z)(i,r.MD,u.t6.MARKDOWN),(0,c.Z)(i,r.JSON,r.JSON),(0,c.Z)(i,r.PY,u.t6.PYTHON),(0,c.Z)(i,r.R,u.t6.R),(0,c.Z)(i,r.SQL,u.t6.SQL),(0,c.Z)(i,r.TXT,"text"),(0,c.Z)(i,r.YAML,u.t6.YAML),(0,c.Z)(i,r.YML,u.t6.YAML),i),m=(o={},(0,c.Z)(o,u.t6.MARKDOWN,r.MD),(0,c.Z)(o,u.t6.PYTHON,r.PY),(0,c.Z)(o,u.t6.R,r.R),(0,c.Z)(o,u.t6.SQL,r.SQL),(0,c.Z)(o,u.t6.YAML,r.YAML),(0,c.Z)(o,"text",r.TXT),o)},98781:function(e,n,t){t.d(n,{$1:function(){return u},G7:function(){return d},QK:function(){return c},a_:function(){return s},qL:function(){return r},r0:function(){return a}});var i,o,r,l=t(82394);!function(e){e.INTEGRATION="integration",e.PYTHON="python",e.PYSPARK="pyspark",e.STREAMING="streaming"}(r||(r={}));var c,u,a,d=(i={},(0,l.Z)(i,r.INTEGRATION,"Integration"),(0,l.Z)(i,r.PYTHON,"Standard"),(0,l.Z)(i,r.PYSPARK,"PySpark"),(0,l.Z)(i,r.STREAMING,"Streaming"),i);!function(e){e.ACTIVE="active",e.INACTIVE="inactive",e.NO_SCHEDULES="no_schedules",e.RETRY="retry"}(c||(c={})),function(e){e.GROUP="group_by",e.STATUS="status[]",e.TYPE="type[]"}(u||(u={})),function(e){e.STATUS="status",e.TYPE="type"}(a||(a={}));var s=(o={},(0,l.Z)(o,r.PYTHON,"python3"),(0,l.Z)(o,r.PYSPARK,"pysparkkernel"),o)},29237:function(e,n,t){var i=t(9518),o=t(67971),r=t(86673),l=t(19711),c=t(23831),u=t(73942),a=t(37391),d=t(49125),s=t(28598),f=(0,i.css)(["padding:","px;padding-bottom:","px;padding-top:","px;"],2*d.iI,1.5*d.iI,1.5*d.iI),p=i.default.div.withConfig({displayName:"Panel__PanelStyle",componentId:"sc-1ct8cgl-0"})(["border-radius:","px;overflow:hidden;"," "," "," "," "," "," "," "," "," "," "," ",""],u.n_,(function(e){return e.fullWidth&&"\n width: 100%;\n "}),(function(e){return!e.borderless&&"\n border: 1px solid ".concat((e.theme.interactive||c.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.success&&"\n background-color: ".concat((e.theme.background||c.Z.background).successLight,";\n ")}),(function(e){return e.success&&!e.borderless&&"\n border: 1px solid ".concat((e.theme.background||c.Z.background).success,";\n ")}),(function(e){return!e.dark&&!e.success&&"\n background-color: ".concat((e.theme.background||c.Z.background).panel,";\n ")}),(function(e){return e.dark&&"\n background-color: ".concat((e.theme.background||c.Z.background).content,";\n ")}),(function(e){return!e.fullHeight&&"\n height: fit-content;\n "}),(function(e){return e.maxHeight&&"\n max-height: ".concat(e.maxHeight,";\n ")}),(function(e){return e.maxWidth&&"\n max-width: ".concat(e.maxWidth,"px;\n ")}),(function(e){return e.minWidth&&"\n min-width: ".concat(e.minWidth,"px;\n\n @media (max-width: ").concat(e.minWidth,"px) {\n min-width: 0;\n }\n ")}),(function(e){return e.borderless&&"\n border: none;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),v=i.default.div.withConfig({displayName:"Panel__HeaderStyle",componentId:"sc-1ct8cgl-1"})(["border-top-left-radius:","px;border-top-right-radius:","px;"," "," "," ",""],u.n_,u.n_,(function(e){return"\n background-color: ".concat((e.theme.background||c.Z.background).chartBlock,";\n border-bottom: 1px solid ").concat((e.theme.interactive||c.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),f,(function(e){return e.headerPaddingVertical&&"\n padding-bottom: ".concat(e.headerPaddingVertical,"px;\n padding-top: ").concat(e.headerPaddingVertical,"px;\n ")})),h=i.default.div.withConfig({displayName:"Panel__ContentStyle",componentId:"sc-1ct8cgl-2"})(["overflow-y:auto;padding:","px;height:100%;"," "," "," "," ",""],1.75*d.iI,a.w5,(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),(function(e){return e.maxHeight&&"\n max-height: calc(".concat(e.maxHeight," - ").concat(15*d.iI,"px);\n ")}),(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),m=i.default.div.withConfig({displayName:"Panel__FooterStyle",componentId:"sc-1ct8cgl-3"})(["border-style:",";border-top-width:","px;padding:","px;"],u.M8,u.YF,1.75*d.iI);n.Z=function(e){var n=e.borderless,t=e.children,i=e.containerRef,c=e.contentContainerRef,u=e.dark,a=e.footer,d=e.fullHeight,f=void 0===d||d,g=e.fullWidth,b=void 0===g||g,y=e.header,x=e.headerHeight,j=e.headerIcon,O=e.headerPaddingVertical,w=e.headerTitle,C=e.maxHeight,k=e.maxWidth,P=e.minWidth,Z=e.noPadding,S=e.overflowVisible,D=e.subtitle,I=e.success;return(0,s.jsxs)(p,{borderless:n,dark:u,fullHeight:f,fullWidth:b,maxHeight:C,maxWidth:k,minWidth:P,overflowVisible:S,ref:i,success:I,children:[(y||w)&&(0,s.jsxs)(v,{headerPaddingVertical:O,height:x,children:[y&&y,w&&(0,s.jsx)(o.Z,{alignItems:"center",justifyContent:"space-between",children:(0,s.jsxs)(o.Z,{alignItems:"center",children:[j&&j,(0,s.jsx)(r.Z,{ml:j?1:0,children:(0,s.jsx)(l.ZP,{bold:!0,default:!0,children:w})})]})})]}),(0,s.jsxs)(h,{maxHeight:C,noPadding:Z,overflowVisible:S,ref:c,children:[D&&(0,s.jsx)(r.Z,{mb:2,children:(0,s.jsx)(l.ZP,{default:!0,children:D})}),t]}),a&&(0,s.jsx)(m,{children:a})]})}},37958:function(e,n,t){t.d(n,{j:function(){return i}});var i=(0,t(44152).r)({apiReloads:{}}).useGlobalState},42305:function(e,n,t){t.d(n,{A5:function(){return f},AY:function(){return p},BP:function(){return s},JX:function(){return d},OC:function(){return r},Pc:function(){return v},Tz:function(){return a},d$:function(){return u},lJ:function(){return h},n1:function(){return c}});var i=t(92083),o=t.n(i),r="YYYY-MM-DD HH:mm:ss",l="YYYY-MM-DD HH:mm",c="YYYY-MM-DD";function u(e,n){var t=n.dayAgo,i=n.includeSeconds,c=n.utcFormat,u=o()(e),a=l;return c&&(u=u.utc()),t&&(u=u.subtract(1,"days")),i&&(a=r),u.format(a)}function a(e){var n=u((new Date).toISOString(),{includeSeconds:!0,utcFormat:!0});return null!==e&&void 0!==e&&e.dateObj?new Date(n):n}function d(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o().unix(e).format(null!==n&&void 0!==n&&n.withSeconds?r:l)}function s(e,n,t){return o()(e).utc().hours(+n).minutes(+t).format()}function f(e){return o()(e).unix()}function p(e,n,t,i){var o="".concat(e.toISOString().split("T")[0]," ").concat(n,":").concat(t);return i?"".concat(o,":").concat(i):o}function v(e){var n=o().unix(+e).utc();return{date:n.toDate(),hour:String(n.hour()),minute:String(n.minute())}}function h(e){return e.padStart(2,"0")}},54405:function(e,n,t){var i;t.d(n,{V5:function(){return r}}),function(e){e.ANDROID="Android",e.CHROME_OS="ChromeOS",e.IOS="iOS",e.LINUX="Linux",e.MAC="macOS",e.WINDOWS="Windows"}(i||(i={}));var o=i;function r(){return function(){var e,n,t,i,r,l,c,u=o.MAC,a=null===(e=window)||void 0===e||null===(n=e.navigator)||void 0===n?void 0:n.userAgent,d=(null===(t=window)||void 0===t||null===(i=t.navigator)||void 0===i||null===(r=i.userAgentData)||void 0===r?void 0:r.platform)||(null===(l=window)||void 0===l||null===(c=l.navigator)||void 0===c?void 0:c.platform);return d?["macOS","Macintosh","MacIntel","MacPPC","Mac68K"].includes(d)?u=o.MAC:["Win32","Win64","Windows","WinCE"].includes(d)?u=o.WINDOWS:["iPhone","iPad","iPod"].includes(d)&&(u=o.IOS):a&&(a.includes("Macintosh")?u=o.MAC:a.includes("Windows")?u=o.WINDOWS:a.includes("Linux")&&a.includes("X11")?u=o.LINUX:/(iPhone|iPad)/.test(a)?u=o.IOS:a.includes("Android")&&a.includes("Mobi")?u=o.ANDROID:a.includes("CrOS")&&(u=o.CHROME_OS)),u}()===o.MAC}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8957],{75968:function(n,e,t){t.d(e,{J8:function(){return p},MS:function(){return v},Ts:function(){return f},_o:function(){return m},eY:function(){return a},fA:function(){return s}});var o=t(82394),r=t(86422),i=t(90211),u=t(33766),c=t(60701);function l(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,o)}return t}function d(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?l(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):l(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var a=function(n,e){var t=(null===e||void 0===e?void 0:e.upstream_blocks)||[];return r.iZ.includes(null===n||void 0===n?void 0:n.type)||r.iZ.includes(null===e||void 0===e?void 0:e.type)||r.tf.DATA_LOADER===(null===e||void 0===e?void 0:e.type)&&r.tf.SENSOR!==n.type||t.push(n.uuid),t},s=function(n,e){var t=[];return r.iZ.includes(null===n||void 0===n?void 0:n.type)||r.iZ.includes(null===e||void 0===e?void 0:e.type)||(t=t.concat((null===n||void 0===n?void 0:n.downstream_blocks)||[])),t},f=function(n,e,t,o){for(var u,c=[],l=e.findIndex((function(e){return e.uuid===n.uuid}));!u&&l>=0;){var d;u=e[l-1],r.tf.SCRATCHPAD===(null===(d=u)||void 0===d?void 0:d.type)&&(u=null),l-=1}return u&&c.push(u.uuid),r.Ut.map((function(e){return{label:function(){return"Convert to ".concat((0,i.wX)(r.V4[e]))},onClick:function(){return o({converted_from_type:e,converted_from_uuid:n.uuid,type:e,upstream_blocks:c})},uuid:"".concat(t,"/convert_to/").concat(e)}}))},p=function(n,e,t,o,i,l){var a=n||{},s=a.configuration,f=a.downstream_blocks,p=a.has_callback,v=a.language,m=a.upstream_blocks,b=s||{},h=b.dynamic,k=b.reduce_output,g=r.tf.DBT===(null===n||void 0===n?void 0:n.type),y=[];if(![r.tf.CALLBACK,r.tf.EXTENSION,r.tf.MARKDOWN].includes(n.type)){y.push({label:function(){return g?"Execute and run upstream blocks":"Execute with upstream blocks"},onClick:function(){return e({block:n,runUpstream:!0})},uuid:"execute_upstream"}),g||y.push({label:function(){return"Execute block and run tests"},onClick:function(){return e({block:n,runTests:!0})},uuid:"run_tests"});var x=l||{},O=x.blocksMapping,C=x.fetchFileTree,j=x.fetchPipeline,E=x.savePipelineContent,_=x.updatePipeline,w=[];if(f.forEach((function(n){var e=null===O||void 0===O?void 0:O[n];e&&e.upstream_blocks.forEach((function(n){var e,t;null!==O&&void 0!==O&&null!==(e=O[n])&&void 0!==e&&null!==(t=e.configuration)&&void 0!==t&&t.dynamic&&w.push(O[n])}))})),g&&r.t6.SQL===v&&y.unshift.apply(y,[{label:function(){return"Run model"},onClick:function(){return e({block:n,runSettings:{run_model:!0}})},tooltip:function(){return"Execute command dbt run."},uuid:"run_model"},{label:function(){return"Test model"},onClick:function(){return e({block:n,runSettings:{test_model:!0}})},tooltip:function(){return"Execute command dbt test."},uuid:"test_model"},{label:function(){return"Build model"},onClick:function(){return e({block:n,runSettings:{build_model:!0}})},tooltip:function(){return"Execute command dbt build."},uuid:"build_model"},{label:function(){return"Add upstream models"},onClick:function(){_({pipeline:{add_upstream_for_block_uuid:null===n||void 0===n?void 0:n.uuid}})},tooltip:function(){return"Add upstream models for this model to the pipeline."},uuid:"add_upstream_models"}]),g||!E||!h&&0!==w.length||y.push({label:function(){return h?"Disable block as dynamic":"Set block as dynamic"},onClick:function(){return E({block:d(d({},n),{},{configuration:d(d({},s),{},{dynamic:!h})})})},uuid:"dynamic"}),O)(null===m||void 0===m?void 0:m.find((function(n){var e,t;return null===O||void 0===O||null===(e=O[n])||void 0===e||null===(t=e.configuration)||void 0===t?void 0:t.dynamic})))&&y.push({label:function(){return k?"Don\u2019t reduce output":"Reduce output"},onClick:function(){return E({block:d(d({},n),{},{configuration:d(d({},s),{},{reduce_output:!k})})})},uuid:"reduce_output"});y.push({label:function(){return p?"Remove callback":"Add callback"},onClick:function(){if(p)return E({block:d(d({},n),{},{has_callback:!p})}).then((function(){C(),j()}));(0,u.u7)({sideview:c.cH.CALLBACKS})},uuid:"has_callback"})}return y.push({label:function(){return"Delete block"},onClick:function(){t(n),o(!1)},uuid:"delete_block"}),i?[y.pop()]:y};function v(n){var e=n.tags,t=[];return null===e||void 0===e||e.forEach((function(n){r.L8.DYNAMIC===n?t.push({description:"This block will create N blocks for each of its downstream blocks.",title:(0,i.vg)(r.L8.DYNAMIC)}):r.L8.DYNAMIC_CHILD===n?t.push({description:"This block is dynamically created by its upstream parent block that is dynamic.",title:(0,i.vg)(r.L8.DYNAMIC_CHILD)}):r.L8.REDUCE_OUTPUT===n?t.push({description:"Reduce output from all dynamically created blocks into a single array output.",title:(0,i.vg)(r.L8.REDUCE_OUTPUT)}):t.push({title:n})})),t}function m(n){var e=n.block,t=n.dynamic,o=n.dynamicUpstreamBlock,r=n.hasError,i=(n.reduceOutput,n.reduceOutputUpstreamBlock),u=n.selected,c=o&&!i;return{borderColorShareProps:{blockColor:null===e||void 0===e?void 0:e.color,blockType:null===e||void 0===e?void 0:e.type,dynamicBlock:t,dynamicChildBlock:c,hasError:r,selected:u},tags:v(e)}}},35438:function(n,e,t){t.d(e,{Ai:function(){return u},BT:function(){return l},Jo:function(){return i},X8:function(){return d},bJ:function(){return c},rl:function(){return o}});var o,r=t(86422),i=(t(49125).iI,1e4),u={compact:!0},c={height:10,width:10},l=[r.tf.DATA_EXPORTER,r.tf.SENSOR],d=[r.Lq.GREY,r.Lq.PINK,r.Lq.TEAL,r.Lq.YELLOW];!function(n){n.NORTH="NORTH",n.SOUTH="SOUTH"}(o||(o={}))},48957:function(n,e,t){t.d(e,{Z:function(){return nn}});var o=t(21831),r=t(75582),i=t(82394),u=t(26304),c=t(77837),l=t(38860),d=t.n(l),a=t(51774),s=t.n(a),f=t(9518),p=t(4804),v=t(82684),m=t(83455),b=t(86422),h=t(67971),k=t(18283),g=t(16634),y=t(86673),x=t(54283),O=t(19711),C=t(23831),j=t(10503),E=t(35438),_=t(73942),w=t(37391),P=t(49125),D=f.default.div.withConfig({displayName:"indexstyle__GraphContainerStyle",componentId:"sc-bc2ei5-0"})(["div{","}",""],w.w5,(function(n){return n.height&&"\n height: ".concat(n.height,"px;\n ")})),T=f.default.div.withConfig({displayName:"indexstyle__NodeStyle",componentId:"sc-bc2ei5-1"})(["border-radius:","px;border:1px solid transparent;min-width:fit-content;"," "," "," "," ",""],_.BG,(function(n){return n.selected&&"\n border-color: ".concat((n.theme.content||C.Z.content).active,";\n ")}),(function(n){return n.backgroundColor&&"\n background-color: ".concat(n.backgroundColor,";\n ")}),(function(n){return(n.isCancelled||n.disabled)&&"\n // opacity doesn\u2019t work on Safari\n border-color: ".concat((n.theme.content||C.Z.content).active,";\n border-style: dashed;\n cursor: not-allowed;\n ")}),(function(n){return n.disabled&&"\n &:hover {\n cursor: not-allowed;\n }\n "}),(function(n){return n.height&&"\n height: ".concat(n.height,"px;\n ")})),Z=f.default.div.withConfig({displayName:"indexstyle__RuntimeStyle",componentId:"sc-bc2ei5-2"})(["margin-right:","px;padding:12px 4px;height:100%;width:50px;background:rgba(0,0,0,0.2);background-blend-mode:soft-light;"],2*P.iI),S=t(75968),I=t(44162),A=t(25958),B=t(90211),N=function(n){var e=n/1e3,t=4-Math.floor(e).toString().length,o=(0,B.QV)(e,t>=0?t:0),r="s";return o>1e3&&(o=(0,B.QV)(o/60,0),r="m"),"".concat(o).concat(r)},R=function(n,e){var t=n||{},o=t.id,r=t.side,i=null===e||void 0===e?void 0:e.id;return r===E.rl.NORTH?null===o||void 0===o?void 0:o.endsWith("".concat(i,"-to")):r===E.rl.SOUTH&&(null===o||void 0===o?void 0:o.startsWith(i))},L=t(28598);var U=function(n){var e=n.block,t=n.bodyText,o=n.children,r=n.disabled,i=n.hasFailed,u=n.height,c=n.hideStatus,l=n.isCancelled,d=n.isInProgress,a=n.isQueued,s=n.isSuccessful,p=(n.onClick,n.runtime),m=n.selected,_=(0,v.useContext)(f.ThemeContext),w=e.color,D=e.type,B=e.uuid,R=(0,S.MS)(e),U=!(d||a||i||s||l),M=s&&!(d||a),H=i&&!(d||a),q="";U?q="No status":M?q="Successful execution":H?q="Failed execution":d?q="Currently executiing":l&&(q="Cancelled execution");var G,V=E.BT.includes(D)||E.X8.includes(w);return b.tf.DBT===D&&(G=(0,A.IU)(e).project),(0,L.jsx)(T,{backgroundColor:(0,I.qn)(D,{blockColor:w,theme:_}).accent,disabled:r,height:u,isCancelled:l,selected:m,children:(0,L.jsxs)(h.Z,{alignItems:"center",fullHeight:!0,children:[p&&(0,L.jsx)(Z,{backgroundColor:(0,I.qn)(D,{blockColor:w,theme:_}).accent,children:(0,L.jsx)(h.Z,{justifyContent:"center",children:(0,L.jsx)(O.ZP,{inverted:E.BT.includes(D)||E.X8.includes(w),xsmall:!0,children:N(p)})})}),!p&&(0,L.jsx)(y.Z,{ml:2}),!c&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)(h.Z,{alignItems:"center",justifyContent:"center",style:{height:2*P.iI,width:2*P.iI},title:q,children:[d&&(0,L.jsx)(x.Z,{color:(_||C.Z).content.active,small:!0}),M&&(0,L.jsx)(j.Jr,{size:2*P.iI,success:!0}),H&&(0,L.jsx)(j.x8,{danger:!0,size:1.5*P.iI}),U&&(0,L.jsx)(g.Z,{borderSize:1,size:1*P.iI})]}),(0,L.jsx)(y.Z,{ml:1})]}),(0,L.jsxs)(h.Z,{flexDirection:"column",justifyContent:"center",style:{height:"100%",padding:"8px 0"},children:[G&&(0,L.jsx)(O.ZP,{bold:!0,inverted:V,monospace:!0,xsmall:!0,children:G}),t&&(0,L.jsx)(O.ZP,{inverted:V,monospace:!0,small:!0,children:t}),o,(null===R||void 0===R?void 0:R.length)>=1&&(0,L.jsx)(h.Z,{alignItems:"center",children:R.reduce((function(n,e,t){var o=e.title;return t>=1&&n.push((0,L.jsx)("div",{children:"\xa0"},"space-".concat(o))),n.push((0,L.jsx)(k.Z,{inverted:!V,xxsmall:!0,children:o},"badge-".concat(o))),n}),[])})]})]})},B)},M=t(11135),H=t(98781),q=t(82531),G=t(66050),V=t(24224),F=t(96510),K=t(87323),J=["forwardedRef"];function X(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 Q(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?X(Object(t),!0).forEach((function(e){(0,i.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):X(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var Y=s()((0,c.Z)(d().mark((function n(){var e,o;return d().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all([t.e(4434),t.e(5987),t.e(3873)]).then(t.t.bind(t,74529,23));case 2:return e=n.sent,o=e.Canvas,n.abrupt("return",(function(n){var e=n.forwardedRef,t=(0,u.Z)(n,J);return(0,L.jsx)(o,Q({ref:e},t))}));case 5:case"end":return n.stop()}}),n)}))),{ssr:!1,loadableGenerated:{webpack:function(){return[74529]}}}),z=s()((0,c.Z)(d().mark((function n(){var e;return d().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all([t.e(4434),t.e(5987),t.e(3873)]).then(t.t.bind(t,74529,23));case 2:return e=n.sent,n.abrupt("return",e.Node);case 4:case"end":return n.stop()}}),n)}))),{ssr:!1,loadableGenerated:{webpack:function(){return[74529]}}}),W=s()((0,c.Z)(d().mark((function n(){var e;return d().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all([t.e(4434),t.e(5987),t.e(3873)]).then(t.t.bind(t,74529,23));case 2:return e=n.sent,n.abrupt("return",e.Edge);case 4:case"end":return n.stop()}}),n)}))),{ssr:!1,loadableGenerated:{webpack:function(){return[74529]}}}),$=s()((0,c.Z)(d().mark((function n(){var e;return d().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all([t.e(4434),t.e(5987),t.e(3873)]).then(t.t.bind(t,74529,23));case 2:return e=n.sent,n.abrupt("return",e.Port);case 4:case"end":return n.stop()}}),n)}))),{ssr:!1,loadableGenerated:{webpack:function(){return[74529]}}});var nn=function(n){var e=n.blockRefs,t=n.blockStatus,i=n.disabled,u=n.editingBlock,c=n.enablePorts,l=void 0!==c&&c,d=n.fetchPipeline,a=n.height,s=n.heightOffset,k=void 0===s?10*P.iI:s,g=n.noStatus,x=n.onClickNode,C=n.pannable,j=void 0===C||C,_=n.pipeline,w=n.runningBlocks,T=void 0===w?[]:w,Z=n.selectedBlock,S=n.setEditingBlock,B=n.setErrors,N=n.setSelectedBlock,J=n.setZoom,X=n.showDynamicBlocks,nn=void 0!==X&&X,en=n.treeRef,tn=n.zoomable,on=void 0===tn||tn,rn=(0,v.useContext)(f.ThemeContext),un=(0,v.useRef)(null),cn=en||un,ln=(0,v.useState)([]),dn=ln[0],an=ln[1],sn=(0,v.useState)(!1),fn=sn[0],pn=sn[1],vn=(0,v.useState)(null),mn=vn[0],bn=vn[1],hn=l&&fn,kn=(null===u||void 0===u?void 0:u.upstreamBlocks)||{},gn=kn.block,yn=kn.values,xn=void 0===yn?[]:yn,On=(0,v.useMemo)((function(){return xn.length}),[xn]),Cn=(0,v.useMemo)((function(){var n;return(null===_||void 0===_||null===(n=_.blocks)||void 0===n?void 0:n.filter((function(n){var e=n.type;return!b.iZ.includes(e)})))||[]}),[null===_||void 0===_?void 0:_.blocks]),jn=((0,V.HK)((0,K.cU)(Cn,Cn),(function(n){return n.block.uuid})),(0,v.useMemo)((function(){return Cn}),[Cn,nn])),En=(0,v.useMemo)((function(){return(0,V.HK)(jn,(function(n){return n.uuid}))}),[jn]),_n=(0,v.useMemo)((function(){return(0,V.HK)(T,(function(n){return n.uuid}))}),[T]),wn=(0,m.Db)(q.ZP.blocks.pipelines.useUpdate(null===_||void 0===_?void 0:_.uuid,encodeURIComponent(null===gn||void 0===gn?void 0:gn.uuid)),{onSuccess:function(n){return(0,F.wD)(n,{callback:function(){S({upstreamBlocks:null}),null===d||void 0===d||d()},onErrorCallback:function(n,e){return null===B||void 0===B?void 0:B({errors:e,response:n})}})}}),Pn=(0,r.Z)(wn,2),Dn=Pn[0],Tn=Pn[1].isLoading,Zn=(0,m.Db)((function(n){var e=n.fromBlock,t=n.portSide,o=n.toBlock,r=n.removeDependency,i=o,u=o.upstream_blocks.concat(e.uuid);return r||t!==E.rl.NORTH||(i=e,u=e.upstream_blocks.concat(o.uuid)),q.ZP.blocks.pipelines.useUpdate(null===_||void 0===_?void 0:_.uuid,encodeURIComponent(i.uuid))({block:Q(Q({},i),{},{upstream_blocks:r?o.upstream_blocks.filter((function(n){return n!==e.uuid})):u})})}),{onSuccess:function(n){return(0,F.wD)(n,{callback:function(){null===d||void 0===d||d()},onErrorCallback:function(n,e){return null===B||void 0===B?void 0:B({errors:e,response:n})}})}}),Sn=(0,r.Z)(Zn,1)[0],In=(0,v.useCallback)((function(n){var t=n.type,o=n.uuid;if(null===N||void 0===N||N(n),an([]),null!==e&&void 0!==e&&e.current){var r,i=e.current["".concat(t,"s/").concat(o,".py")];null===i||void 0===i||null===(r=i.current)||void 0===r||r.scrollIntoView()}}),[e,N]),An=(0,v.useCallback)((function(n){an([]),S((function(e){var t=e.upstreamBlocks.values||[],o=t.findIndex((function(e){var t=e.uuid;return n.uuid===t}));return Q(Q({},e),{},{upstreamBlocks:Q(Q({},e.upstreamBlocks),{},{values:o>=0?(0,V.oM)(t,o):t.concat(n)})})}))}),[S]),Bn=(0,v.useMemo)((function(){var n={};return jn.forEach((function(e){e.upstream_blocks.forEach((function(t){n[t]||(n[t]=[]),n[t].push(e)}))})),n}),[jn]),Nn=(0,v.useCallback)((function(n){var e,t;if(H.qL.INTEGRATION===(null===_||void 0===_?void 0:_.type)&&b.tf.TRANSFORMER!==n.type){var o,r={};if(b.t6.YAML===n.language&&(r=(0,p.Qc)(n.content)),b.tf.DATA_LOADER===n.type)e="".concat(n.uuid,": ").concat(null===(o=r)||void 0===o?void 0:o.source);else if(b.tf.DATA_EXPORTER===n.type){var i;e="".concat(n.uuid,": ").concat(null===(i=r)||void 0===i?void 0:i.destination)}}else if(b.tf.DBT===n.type&&b.t6.SQL===n.language){var u=(0,A.IU)(n);e=u.name,t=u.project}return e||(e=n.uuid),{displayText:e,kicker:t,subtitle:undefined}}),[_]),Rn=(0,v.useMemo)((function(){var n=[],e=[];return jn.forEach((function(r){var u,c=Nn(r),l=c.displayText,d=c.kicker,a=c.subtitle,s=r.tags,f=void 0===s?[]:s,p=r.upstream_blocks,v=void 0===p?[]:p,m=r.uuid,b=Bn[m],h=[];b?h.push.apply(h,(0,o.Z)(b.map((function(n){return Q(Q({},E.bJ),{},{id:"".concat(m,"-").concat(n.uuid,"-from"),side:E.rl.SOUTH})})))):h.push(Q(Q({},E.bJ),{},{id:"".concat(m,"-from"),side:E.rl.SOUTH})),0===v.length&&h.push(Q(Q({},E.bJ),{},{id:"".concat(m,"-to"),side:E.rl.NORTH})),null===v||void 0===v||v.forEach((function(n){h.push(Q(Q({},E.bJ),{},{id:"".concat(n,"-").concat(m,"-to"),side:E.rl.NORTH})),e.push({from:n,fromPort:"".concat(n,"-").concat(m,"-from"),id:"".concat(n,"-").concat(m),to:m,toPort:"".concat(n,"-").concat(m,"-to")})}));var k=37;(null===f||void 0===f?void 0:f.length)>=1&&(k+=26),d&&(k+=26),a&&(k+=26);var g=l;[d,a].forEach((function(n){n&&n.length>g.length&&(g=n)})),n.push({data:{block:r},height:k,id:m,ports:h,width:g.length*P.KF+(i?0:5*P.iI)+((null===gn||void 0===gn?void 0:gn.uuid)===r.uuid?19*P.KF:0)+(null!==t&&void 0!==t&&null!==(u=t[r.uuid])&&void 0!==u&&u.runtime?50:0)})})),{edges:e,nodes:n}}),[null===gn||void 0===gn?void 0:gn.uuid,t,jn,i,Nn,Bn]),Ln=Rn.edges,Un=Rn.nodes,Mn=(0,v.useCallback)((function(n){if(g)return{};if(t){var e=t[n.uuid]||{},o=e.status,r=e.runtime;return{hasFailed:G.V.FAILED===o,isCancelled:G.V.CANCELLED===o,isInProgress:G.V.RUNNING===o,isQueued:G.V.INITIAL===o,isSuccessful:G.V.COMPLETED===o,runtime:r}}var i;return{hasFailed:b.DA.FAILED===n.status,isInProgress:_n[n.uuid],isQueued:_n[n.uuid]&&(null===(i=T[0])||void 0===i?void 0:i.uuid)!==n.uuid,isSuccessful:b.DA.EXECUTED===n.status}}),[t,g,T,_n]),Hn=(0,v.useMemo)((function(){var n=0;return a&&(n+=a),k&&(n-=k),Math.max(0,n)}),[a,k]);return(0,L.jsxs)(L.Fragment,{children:[gn&&(0,L.jsxs)(y.Z,{my:3,px:P.cd,children:[(0,L.jsxs)(y.Z,{mb:P.cd,children:[(0,L.jsxs)(O.ZP,{children:["Select parent block(s) for ",(0,L.jsx)(O.ZP,{color:(0,I.qn)(gn.type,{blockColor:gn.color,theme:rn}).accent,inline:!0,monospace:!0,children:gn.uuid}),":"]}),(0,L.jsx)(y.Z,{mt:1,children:xn.map((function(n,e){var t,o,r=n.uuid;return(0,L.jsxs)(O.ZP,{color:(0,I.qn)(null===(t=En[r])||void 0===t?void 0:t.type,{blockColor:null===(o=En[r])||void 0===o?void 0:o.type,theme:rn}).accent,inline:!0,monospace:!0,children:[r,On>=2&&e<=On-2?(0,L.jsx)(O.ZP,{inline:!0,children:",\xa0"}):null]},r)}))})]}),(0,L.jsxs)(h.Z,{alignItems:"center",children:[(0,L.jsx)(M.ZP,{compact:!0,inline:!0,loading:Tn,onClick:function(){return Dn({block:Q(Q({},gn),{},{upstream_blocks:xn.map((function(n){return n.uuid}))})})},uuid:"DependencyGraph/save_parents",children:"Save dependencies"}),(0,L.jsx)(y.Z,{ml:1}),(0,L.jsx)(M.ZP,{compact:!0,inline:!0,noBackground:!0,onClick:function(){an([]),S({upstreamBlocks:null})},uuid:"DependencyGraph/cancel_save_parents",children:"Cancel"})]})]}),(0,L.jsx)(D,{height:Hn,onDoubleClick:function(){var n,e;return null===cn||void 0===cn||null===(n=cn.current)||void 0===n||null===(e=n.fitCanvas)||void 0===e?void 0:e.call(n)},children:(0,L.jsx)(Y,{arrow:null,disabled:i,edge:function(n){var e,t=En[n.source];return(0,L.jsx)(W,Q(Q({},n),{},{onClick:function(n,e){bn(null),an([e.id])},onRemove:function(n,e){var t=En[e.from],o=En[e.to];Sn({fromBlock:t,removeDependency:!0,toBlock:o}),an([])},removable:l&&!(null!==u&&void 0!==u&&u.upstreamBlocks),style:{stroke:null===(e=(0,I.qn)(null===t||void 0===t?void 0:t.type,{blockColor:null===t||void 0===t?void 0:t.color,theme:rn}))||void 0===e?void 0:e.accent}}))},edges:Ln,fit:!0,forwardedRef:cn,maxHeight:E.Jo,maxWidth:E.Jo,maxZoom:1,minZoom:-.7,node:function(n){var e,t,o,r,c,l;return(0,L.jsx)(z,Q(Q({},n),{},{dragType:"port",linkable:!0,onClick:function(n,e){var t=e.data.block;bn(null),(null===gn||void 0===gn?void 0:gn.uuid)===t.uuid||(gn?An(t):(null===x||void 0===x||x({block:t}),setTimeout((function(){In(t)}),1)))},onEnter:function(){null!==u&&void 0!==u&&u.upstreamBlocks||pn(!0)},onLeave:function(){return pn(!1)},port:hn&&(null===mn||R(mn,n))?(0,L.jsx)($,{onDrag:function(){return pn(!0)},onDragEnd:function(){pn(!1),bn(null)},onDragStart:function(n,e,t){var o=null===t||void 0===t?void 0:t.side;bn({id:null===t||void 0===t?void 0:t.id,side:o})},onEnter:function(){return pn(!0)},rx:10,ry:10,style:{fill:(0,I.qn)(null===n||void 0===n||null===(e=n.properties)||void 0===e||null===(t=e.data)||void 0===t||null===(o=t.block)||void 0===o?void 0:o.type,{blockColor:null===n||void 0===n||null===(r=n.properties)||void 0===r||null===(c=r.data)||void 0===c||null===(l=c.block)||void 0===l?void 0:l.color,theme:rn}).accent,stroke:"white",strokeWidth:"1px"}}):null,style:{fill:"transparent",stroke:"transparent",strokeWidth:0},children:function(n){var e=n.height,t=n.node.data.block,o=Mn(t),r=Nn(t).displayText;return(0,L.jsx)("foreignObject",{height:e,style:{pointerEvents:"none"},width:n.width,x:0,y:0,children:(0,L.jsx)(U,Q({block:t,bodyText:"".concat(r).concat((null===gn||void 0===gn?void 0:gn.uuid)===t.uuid?" (editing)":""),disabled:(null===gn||void 0===gn?void 0:gn.uuid)===t.uuid,height:e,hideStatus:i,selected:gn?!!(0,V.sE)(xn,(function(n){return n.uuid===t.uuid})):(null===Z||void 0===Z?void 0:Z.uuid)===t.uuid},o),t.uuid)})}}))},nodes:Un,onNodeLink:function(n,e,t,o){var r,i=En[e.id],u=En[t.id],c=(null===_||void 0===_?void 0:_.type)===H.qL.INTEGRATION&&((null===i||void 0===i?void 0:i.type)===b.tf.DATA_EXPORTER||(null===i||void 0===i?void 0:i.type)===b.tf.DATA_LOADER&&(null===u||void 0===u?void 0:u.type)===b.tf.DATA_EXPORTER);if(!(null!==i&&void 0!==i&&null!==(r=i.upstream_blocks)&&void 0!==r&&r.includes(u.uuid)||e.id===t.id||c)){var l=null===o||void 0===o?void 0:o.side;Sn({fromBlock:i,portSide:l||E.rl.SOUTH,toBlock:u})}},onNodeLinkCheck:function(n,e,t){return!Ln.some((function(n){return n.from===e.id&&n.to===t.id}))},onZoomChange:function(n){return null===J||void 0===J?void 0:J(n)},pannable:j,selections:dn,zoomable:on})})]})}},66050:function(n,e,t){var o;t.d(e,{V:function(){return o}}),function(n){n.CANCELLED="cancelled",n.COMPLETED="completed",n.FAILED="failed",n.INITIAL="initial",n.RUNNING="running"}(o||(o={}))},18283:function(n,e,t){var o=t(82394),r=t(26304),i=(t(82684),t(9518)),u=t(23831),c=t(73942),l=t(2005),d=t(49125),a=t(31012),s=t(28598),f=["children"];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 v(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 m=i.default.p.withConfig({displayName:"Badge__BadgeStyle",componentId:"sc-tfqsp0-0"})(["border-radius:","px;display:inline;font-family:",";margin:0;",";"," "," ",";",";"," "," "," "," "," "," ",""],c.BG,l.ry,a.iD,(function(n){return n.small&&"\n ".concat(a.HC,";\n ")}),(function(n){return n.xxsmall&&"\n font-size: ".concat(a.VK,"px;\n line-height: ").concat(a.VK,"px;\n ")}),(function(n){return!n.regular&&"\n padding: 2px 4px;\n "}),(function(n){return n.regular&&"\n padding: ".concat(1*d.iI,"px ").concat(1.25*d.iI,"px;\n ")}),(function(n){return n.noVerticalPadding&&"\n padding-bottom: 0;\n padding-top: 0;\n "}),(function(n){return!n.disabled&&!n.inverted&&"\n background-color: ".concat((n.theme||u.Z).background.row,";\n color: ").concat((n.theme||u.Z).content.default,";\n ")}),(function(n){return!n.disabled&&n.inverted&&"\n background-color: ".concat((n.theme||u.Z).background.dark,";\n color: ").concat((n.theme||u.Z).content.inverted,";\n ")}),(function(n){return n.cyan&&"\n background-color: ".concat((n.theme||u.Z).accent.cyan,";\n color: ").concat((n.theme||u.Z).monotone.black,";\n ")}),(function(n){return n.disabled&&"\n background-color: ".concat((n.theme||u.Z).feature.disabled,";\n color: ").concat((n.theme||u.Z).content.disabled,";\n ")}),(function(n){return n.quantifier&&"\n border-radius: 34px;\n line-height: 10px;\n padding: 4px 6px;\n "}),(function(n){return n.monospace&&"\n font-family: ".concat(l.Vp,";\n word-break: break-all;\n ")}));e.Z=function(n){var e=n.children,t=(0,r.Z)(n,f);return(0,s.jsx)(m,v(v({},t),{},{children:e}))}},87323:function(n,e,t){t.d(e,{cU:function(){return u}});var o=t(82684),r=t(24224);function i(n,e){return function(n,e,t){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{includeAllNodes:!1},i=(0,r.HK)(t,(function(n){return n.uuid})),u=(o||{}).includeAllNodes,c=[];function l(t){if(t){var o=(t[e]||[]).reduce((function(e,t){return n.uuid===t?e:e.concat(i[t])}),[]);(0===o.length||u&&n.uuid!==t.uuid)&&c.push(t),o.forEach((function(n){l(n)}))}}return l(n),c}(n,"upstream_blocks",e,{includeAllNodes:!0})}function u(n,e){return(0,o.useMemo)((function(){return n.map((function(t){var o=function(n,e){var t=i(n,e),o=t.filter((function(e){var t=e.configuration,o=e.uuid;return(null===t||void 0===t?void 0:t.dynamic)&&o!==(null===n||void 0===n?void 0:n.uuid)})),r=t.filter((function(e){var t=e.configuration,o=e.uuid;return(null===t||void 0===t?void 0:t.reduce_output)&&o!==(null===n||void 0===n?void 0:n.uuid)}));return{dynamicUpstreamBlock:o[0],dynamicUpstreamBlocks:o,reduceOutputUpstreamBlock:r[0],reduceOutputUpstreamBlocks:r}}(t,e),r=o.dynamicUpstreamBlock,u=o.dynamicUpstreamBlocks,c=o.reduceOutputUpstreamBlock,l=o.reduceOutputUpstreamBlocks,d=(t||{}).configuration||{},a=d.dynamic,s=d.reduce_output;return{block:t,blocksToUse:n,dynamic:!!a,dynamicUpstreamBlock:r,dynamicUpstreamBlocks:u,reduceOutput:!!s,reduceOutputUpstreamBlock:c,reduceOutputUpstreamBlocks:l}}))}),[e,null===e||void 0===e?void 0:e.map((function(n){var e=n.configuration;return null===e||void 0===e?void 0:e.dynamic})),null===e||void 0===e?void 0:e.map((function(n){var e=n.configuration;return null===e||void 0===e?void 0:e.reduce_output})),null===e||void 0===e?void 0:e.map((function(n){return n.upstream_blocks}))])}},25958:function(n,e,t){t.d(e,{$1:function(){return i},Dy:function(){return r},IU:function(){return u}});var o=t(17717),r="--full-refresh";function i(n,e){var t,r=null===e||void 0===e?void 0:e.fullPath,i=null===n||void 0===n||null===(t=n.configuration)||void 0===t?void 0:t.file_path;if(r)return null===n||void 0===n?void 0:n.uuid;if(i){var u=i.split(o.sep),c=u[u.length-1].split(".");return c.pop(),c.join(".")}}function u(n){var e,t=null===n||void 0===n||null===(e=n.configuration)||void 0===e?void 0:e.file_path;if(t){var r=t.split(o.sep),i=r[0],u=r[r.length-1].split(".");return u.pop(),{directory:r.slice(1,r.length-1).join(o.sep),filePath:t,name:u.join("."),project:i}}return{filePath:t}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9270],{7432:function(n,e,t){var o={"./Active4D.json":[266,266],"./All Hallows Eve.json":[4450,4450],"./Amy.json":[88849,8849],"./Birds of Paradise.json":[78097,8097],"./Blackboard.json":[88018,6115],"./Brilliance Black.json":[73835,3835],"./Brilliance Dull.json":[6507,6507],"./Chrome DevTools.json":[22508,2508],"./Clouds Midnight.json":[49566,9566],"./Clouds.json":[57951,7951],"./Cobalt.json":[80826,826],"./Cobalt2.json":[98256,8256],"./Dawn.json":[76958,6958],"./Dominion Day.json":[89307,9307],"./Dracula.json":[33453,3453],"./Dreamweaver.json":[19363,9363],"./Eiffel.json":[82481,2481],"./Espresso Libre.json":[44776,4776],"./GitHub Dark.json":[792,792],"./GitHub Light.json":[61450,1450],"./GitHub.json":[10739,739],"./IDLE.json":[67947,7947],"./Katzenmilch.json":[81240,1240],"./Kuroir Theme.json":[4388,4388],"./LAZY.json":[25164,5164],"./MagicWB (Amiga).json":[76443,6443],"./Merbivore Soft.json":[99361,9361],"./Merbivore.json":[86042,6042],"./Monokai Bright.json":[14883,4883],"./Monokai.json":[34454,4454],"./Night Owl.json":[60261,261],"./Nord.json":[59785,9785],"./Oceanic Next.json":[58920,8920],"./Pastels on Dark.json":[38901,8901],"./Slush and Poppies.json":[26434,6434],"./Solarized-dark.json":[36116,6116],"./Solarized-light.json":[5008,5008],"./SpaceCadet.json":[20440,440],"./Sunburst.json":[68018,8018],"./Textmate (Mac Classic).json":[15824,5824],"./Tomorrow-Night-Blue.json":[81150,1150],"./Tomorrow-Night-Bright.json":[8762,8762],"./Tomorrow-Night-Eighties.json":[82545,2545],"./Tomorrow-Night.json":[99855,9855],"./Tomorrow.json":[34092,4092],"./Twilight.json":[93898,3898],"./Upstream Sunburst.json":[98807,8807],"./Vibrant Ink.json":[89927,9927],"./Xcode_default.json":[64042,4042],"./Zenburnesque.json":[33467,3467],"./iPlastic.json":[88277,8277],"./idleFingers.json":[5104,5104],"./krTheme.json":[9633,9633],"./monoindustrial.json":[15729,5729],"./themelist.json":[79437,9437]};function i(n){if(!t.o(o,n))return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+n+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=o[n],i=e[0];return t.e(e[1]).then((function(){return t.t(i,19)}))}i.keys=function(){return Object.keys(o)},i.id=7432,n.exports=i},5677:function(n,e,t){"use strict";t.d(e,{M4:function(){return d},S0:function(){return u},S_:function(){return l},Yn:function(){return f},rW:function(){return s}});var o=t(82394),i=t(21831),r=t(75582);function a(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 c(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?a(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function l(n,e){return Object.entries(e).map((function(e){var t=(0,r.Z)(e,2),o=t[0],i=t[1];return n.languages.registerCompletionItemProvider(o,{provideCompletionItems:i(n)})}))}function u(n){var e=function(n){var e="[\\w.]+",t=["import ".concat(e," as ").concat(e),"import ".concat(e),"from ".concat(e," import ").concat(e," as ").concat(e),"from ".concat(e," import ").concat(e)],o=new RegExp("(".concat(t.join("|"),")"),"g");return(0,i.Z)(n.matchAll(o)).map((function(n){return n[1]}))}(n),t="[\\w.]+",r=["from ".concat(t," import ").concat(t," as (").concat(t,")"),"from ".concat(t," import (").concat(t,")"),"import ".concat(t," as (").concat(t,")"),"import (".concat(t,")")],a=new RegExp("(".concat(r.join("|"),")"));return e.reduce((function(n,e){var t=e.match(a);if(!t)return n;var r=(0,i.Z)(t),l=r[2],u=r[3],s=r[4],d=r[5],f=l||u||s||d;return c(c({},n),{},(0,o.Z)({},f,e))}),{})}function s(n,e){var t=n;e&&(t=t.split(" as ".concat(e))[0]);var o="[\\w.]+",a=["from ".concat(o," import (").concat(o,")"),"import (".concat(o,")")],c=new RegExp("(".concat(a.join("|"),")"),"g"),l=(0,i.Z)(t.matchAll(c))[0];if(l){var u=(0,r.Z)(l,4),s=u[2],d=u[3];return s||d}}function d(n,e){return function(n,e){return n.split("\n")[e.startLineNumber-1]}(n,e).slice(0,e.startColumn-1)}function f(n){var e=new RegExp("([\\w_]+)[ ]*=[ ]*([\\w_]+)","g");return(0,i.Z)(n.matchAll(e)).map((function(n){return{assignmentValue:n[2],variableName:n[1]}}))}},32365:function(n,e,t){"use strict";t.d(e,{Ep:function(){return a},KT:function(){return u},Nk:function(){return l},aU:function(){return c}});var o=t(9518),i=t(23831),r=t(49125),a=2,c=21,l=o.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-w2hta3-0"})(["",""],(function(n){return n.padding&&"\n padding-top: ".concat(2*r.iI,"px;\n background-color: ").concat((n.theme.background||i.Z.background).codeTextarea,";\n ")})),u=o.default.div.withConfig({displayName:"indexstyle__PlaceholderStyle",componentId:"sc-w2hta3-1"})(["padding-left:67px;position:absolute;z-index:1;"])},57722:function(n,e,t){"use strict";t.d(e,{Z:function(){return j}});var o=t(82684),i=t(85202),r=t(38789),a=t(86422),c=t(19711),l=t(66166),u="twilight",s=t(2005),d=t(31012),f=t(32365),m=t(5677);function h(n,e,t){t.forEach((function(n){e.addAction(n)}))}var p=t(75582),g={"all-hallows-eve":"All Hallows Eve","birds-of-paradise":"Birds of Paradise","brilliance-black":"Brilliance Black","brilliance-dull":"Brilliance Dull","chrome-devtools":"Chrome DevTools","clouds-midnight":"Clouds Midnight","espresso-libre":"Espresso Libre","kuroir-theme":"Kuroir Theme","magicwb--amiga-":"MagicWB (Amiga)","merbivore-soft":"Merbivore Soft","monokai-bright":"Monokai Bright","night-owl":"Night Owl","oceanic-next":"Oceanic Next","pastels-on-dark":"Pastels on Dark","slush-and-poppies":"Slush and Poppies","solarized-dark":"Solarized-dark","solarized-light":"Solarized-light","textmate--mac-classic-":"Textmate (Mac Classic)","tomorrow-night":"Tomorrow-Night","tomorrow-night-blue":"Tomorrow-Night-Blue","tomorrow-night-bright":"Tomorrow-Night-Bright","tomorrow-night-eighties":"Tomorrow-Night-Eighties","upstream-sunburst":"Upstream Sunburst","vibrant-ink":"Vibrant Ink","xcode-default":"Xcode_default",active4d:"Active4D",amy:"Amy",blackboard:"Blackboard",clouds:"Clouds",cobalt:"Cobalt",dawn:"Dawn",dreamweaver:"Dreamweaver",eiffel:"Eiffel",github:"GitHub",idle:"IDLE",idlefingers:"idleFingers",iplastic:"iPlastic",katzenmilch:"Katzenmilch",krtheme:"krTheme",lazy:"LAZY",merbivore:"Merbivore",monoindustrial:"monoindustrial",monokai:"Monokai",spacecadet:"SpaceCadet",sunburst:"Sunburst",tomorrow:"Tomorrow",twilight:"Twilight",zenburnesque:"Zenburnesque"};var b=t(80636),v=t(28598);var j=function(n){var e=n.autocompleteProviders,j=n.autoHeight,y=n.autoSave,w=n.block,x=n.fontSize,S=void 0===x?d.i3:x,C=n.height,N=n.language,k=n.onChange,O=n.onDidChangeCursorPosition,E=n.onSave,_=n.padding,z=n.placeholder,D=n.readOnly,I=n.selected,P=n.setSelected,Z=n.setTextareaFocused,M=n.shortcuts,H=n.showLineNumbers,T=void 0===H||H,B=n.tabSize,F=void 0===B?4:B,L=n.textareaFocused,A=n.theme,R=n.value,K=n.width,W=void 0===K?"100%":K,U=(0,o.useRef)(null),G=(0,o.useRef)(null),V=(0,o.useRef)(null),Q=(0,o.useState)([]),X=Q[0],Y=Q[1],q=(0,o.useState)(null),J=q[0],$=q[1],nn=(0,o.useState)(!1),en=nn[0],tn=nn[1],on=(0,o.useState)(A||u),rn=on[0],an=on[1],cn=(0,o.useCallback)((function(n){n.languages.typescript.javascriptDefaults.setEagerModelSync(!0),$(n)}),[]),ln=(0,o.useCallback)((function(n,e){U.current=n,G.current=e;var t=[];null===M||void 0===M||M.forEach((function(o){t.push(o(e,n))})),E&&t.push((0,b.e)(e,(function(){E(n.getValue())}))),h(0,n,t),n.getModel().updateOptions({tabSize:F}),j&&!C&&(n._domElement.style.height="".concat(((R||"").split("\n").length+f.Ep)*f.aU,"px")),n.onDidFocusEditorWidget((function(){null===P||void 0===P||P(!0),null===Z||void 0===Z||Z(!0)})),n.onDidContentSizeChange((function(e){var t=e.contentHeight,o=e.contentHeightChanged;j&&o&&(n._domElement.style.height="".concat(t+2*f.aU,"px"))})),I&&L&&setTimeout((function(){n.focus()}),1),O&&n.onDidChangeCursorPosition((function(e){var t=e.position.lineNumber,o=n._domElement.getBoundingClientRect(),i=o.height,r=o.top,a=n.getTopForLineNumber(t);O({editorRect:{height:Number(i),top:Number(r)},position:{lineNumberTop:a}})})),tn(!0)}),[j,C,O,E,I,tn,P,Z,M,F,L,R]);(0,o.useEffect)((function(){(function(n){return new Promise((function(e){Promise.all([r._m.init(),t(7432)("./".concat(g[n],".json"))]).then((function(t){var o=(0,p.Z)(t,2),i=o[0],r=o[1];r.colors["editor.background"]="#000000",r.colors["editor.foreground"]="#FFFFFF",i.editor.defineTheme(n,r),e()}))}))})(u).then((function(){an(u)}))}),[]),(0,o.useEffect)((function(){var n;return y&&E&&(n=setInterval((function(){E(U.current.getValue())}),5e3)),function(){y&&n&&clearInterval(n)}}),[y,U,E]);var un=(0,l.Z)(I),sn=(0,l.Z)(L);return(0,o.useEffect)((function(){null!==U&&void 0!==U&&U.current&&(I&&L?setTimeout((function(){U.current.focus()}),1):i.findDOMNode(U.current._domElement).getElementsByClassName("inputarea")[0].blur())}),[U,I,un,L,sn]),(0,o.useEffect)((function(){if(null!==G&&void 0!==G&&G.current&&null!==U&&void 0!==U&&U.current){var n=[];null===M||void 0===M||M.forEach((function(e){n.push(e(null===G||void 0===G?void 0:G.current,null===U||void 0===U?void 0:U.current))})),h(null===G||void 0===G||G.current,null===U||void 0===U?void 0:U.current,n)}}),[null===w||void 0===w?void 0:w.downstream_blocks,null===w||void 0===w?void 0:w.upstream_blocks]),(0,o.useEffect)((function(){return function(){X.map((function(n){return n.dispose()}))}}),[X]),(0,o.useEffect)((function(){J&&e&&(0===X.length&&L||!sn&&L?Y((0,m.S_)(J,e)):sn&&!L&&X.map((function(n){return n.dispose()})))}),[e,X,J,L,sn]),(0,v.jsxs)(f.Nk,{padding:_,style:{display:en?null:"none"},children:[z&&!(null!==R&&void 0!==R&&R.length)&&(0,v.jsx)(f.KT,{children:(0,v.jsx)(c.ZP,{monospace:!0,muted:!0,children:z})}),(0,v.jsx)(r.ZP,{beforeMount:cn,height:C,language:N||"python",onChange:function(n){null===k||void 0===k||k(n)},onMount:ln,options:{domReadOnly:D,fontFamily:s.Vp,fontLigatures:!0,fontSize:S,hideCursorInOverviewRuler:!0,lineNumbers:T,minimap:{enabled:!1},overviewRulerBorder:!1,readOnly:D,renderLineHighlightOnlyWhenFocus:!0,scrollBeyondLastLine:!1,scrollbar:{alwaysConsumeMouseWheel:!1,vertical:"hidden"},wordBasedSuggestions:!1,wordWrap:(null===w||void 0===w?void 0:w.type)===a.tf.MARKDOWN?"on":"off"},theme:rn,value:R,width:W}),(0,v.jsx)("div",{ref:V})]})}},80636:function(n,e,t){"use strict";function o(n,e){return{contextMenuGroupId:"navigation",contextMenuOrder:1.5,id:"saveCode",keybindingContext:null,keybindings:[n.KeyMod.CtrlCmd|n.KeyCode.KeyS],label:"Save",precondition:null,run:function(n){e()}}}function i(n,e){return{contextMenuGroupId:"navigation",contextMenuOrder:1.5,id:"executeCode",keybindingContext:null,keybindings:[n.KeyMod.CtrlCmd|n.KeyCode.Enter],label:"Run selected block",precondition:null,run:function(){return e()}}}t.d(e,{Q:function(){return i},e:function(){return o}})},87372:function(n,e,t){"use strict";var o,i,r,a,c,l,u,s,d=t(82394),f=t(26304),m=t(26653),h=t(9518),p=t(33591),g=t(23831),b=t(2005),v=t(31012),j=t(19711),y=t(49125),w=t(86673),x=t(28598),S=["children","condensed","inline","level","marketing","spacingBelow"];function C(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 N(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?C(Object(t),!0).forEach((function(e){(0,d.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):C(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var k=(0,h.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],j.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(b.iI,";\n ")}),(function(n){return!n.monospace&&1===Number(n.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(n){return!n.monospace&&2===Number(n.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(n){return!n.monospace&&3===Number(n.weightStyle)&&"\n font-family: ".concat(b.ry,";\n ")}),(function(n){return!n.monospace&&4===Number(n.weightStyle)&&"\n font-family: ".concat(b.YC,";\n ")}),(function(n){return!n.monospace&&5===Number(n.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(n){return!n.monospace&&(6===Number(n.weightStyle)||n.bold)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(n){return!n.monospace&&7===Number(n.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(n){return!n.monospace&&8===Number(n.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(n){return n.lineHeightAuto&&"\n line-height: normal !important;\n "})),O=h.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(n){return"\n color: ".concat((n.theme.content||g.Z.content).active,";\n ")})),E=h.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],k,p.media.md(o||(o=(0,m.Z)(["\n ","\n "])),v.aQ),p.media.lg(i||(i=(0,m.Z)(["\n ","\n "])),v.aQ),p.media.xl(r||(r=(0,m.Z)(["\n ","\n "])),v.aQ)),_=h.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],k,v.MJ),z=h.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],k,p.media.xs(a||(a=(0,m.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*y.iI,7*y.iI),p.media.sm(c||(c=(0,m.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*y.iI,7*y.iI),p.media.md(l||(l=(0,m.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*y.iI,7*y.iI),p.media.lg(u||(u=(0,m.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*y.iI,7*y.iI),p.media.xl(s||(s=(0,m.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*y.iI,7*y.iI)),D=h.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],k,v.BL),I=h.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],k),P=h.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],k),Z=h.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],k),M=h.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],k,(function(n){return 1===n.level&&"\n ".concat(v.MJ,"\n ")}),(function(n){return 2===n.level&&"\n ".concat(v.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 "})),H=function(n){var e,t=n.children,o=n.condensed,i=n.inline,r=n.level,a=n.marketing,c=n.spacingBelow,l=(0,f.Z)(n,S);i?e=M:0===Number(r)?e=E:1===Number(r)?e=a?z:_:2===Number(r)?e=D:3===Number(r)?e=I:4===Number(r)?e=P:5===Number(r)&&(e=Z);var u=(0,x.jsxs)(e,N(N({},l),{},{level:r,children:[c&&(0,x.jsx)(w.Z,{mb:o?2:3,children:t}),!c&&t]}));return i?u:(0,x.jsx)(O,{children:u})};H.defaultProps={level:3,weightStyle:6},e.Z=H}}]);
|