mage-ai 0.9.49__py3-none-any.whl → 0.9.51__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/operations/base.py +11 -2
- mage_ai/api/presenters/WorkspacePresenter.py +1 -0
- mage_ai/api/resources/PipelineResource.py +28 -19
- mage_ai/cache/utils.py +2 -0
- mage_ai/cluster_manager/kubernetes/workload_manager.py +184 -147
- mage_ai/cluster_manager/workspace/kubernetes.py +25 -3
- mage_ai/data_preparation/executors/block_executor.py +10 -4
- mage_ai/data_preparation/models/global_hooks/models.py +9 -3
- mage_ai/data_preparation/models/pipeline.py +1 -47
- mage_ai/data_preparation/preferences.py +71 -27
- mage_ai/data_preparation/templates/custom/python/default.jinja +3 -5
- mage_ai/io/postgres.py +1 -0
- mage_ai/server/constants.py +1 -1
- mage_ai/server/frontend_dist/404.html +2 -2
- mage_ai/server/frontend_dist/_next/static/chunks/4138-1ffb2d1ab4fc61f2.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{5499-f60c2fc8ed0442d5.js → 5499-6f0bc8a94f2b78b4.js} +1 -1
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/manage-221f6ba4b04367c6.js → frontend_dist/_next/static/chunks/pages/manage-41c56c0ae1c15cb6.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-006a61883c0a6fce.js +1 -0
- mage_ai/server/frontend_dist/_next/static/{chun9Xv4R2ZZyX0zoxPm1 → z6eg1yN60N6gosbEr2pGr}/_buildManifest.js +1 -1
- mage_ai/server/frontend_dist/block-layout.html +2 -2
- mage_ai/server/frontend_dist/compute.html +2 -2
- mage_ai/server/frontend_dist/files.html +2 -2
- mage_ai/server/frontend_dist/global-data-products/[...slug].html +2 -2
- mage_ai/server/frontend_dist/global-data-products.html +2 -2
- mage_ai/server/frontend_dist/global-hooks/[...slug].html +2 -2
- mage_ai/server/frontend_dist/global-hooks.html +2 -2
- mage_ai/server/frontend_dist/index.html +2 -2
- mage_ai/server/frontend_dist/manage/files.html +2 -2
- mage_ai/server/frontend_dist/manage/settings.html +2 -2
- mage_ai/server/frontend_dist/manage/users/[user].html +2 -2
- mage_ai/server/frontend_dist/manage/users/new.html +2 -2
- mage_ai/server/frontend_dist/manage/users.html +2 -2
- mage_ai/server/frontend_dist/manage.html +2 -2
- mage_ai/server/frontend_dist/oauth.html +3 -3
- mage_ai/server/frontend_dist/overview.html +2 -2
- mage_ai/server/frontend_dist/pipeline-runs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/dashboard.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/settings.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline].html +2 -2
- mage_ai/server/frontend_dist/pipelines.html +2 -2
- mage_ai/server/frontend_dist/settings/account/profile.html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/permissions/[...slug].html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/permissions.html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/preferences.html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/roles/[...slug].html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/roles.html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/sync-data.html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/users/[...slug].html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/users.html +2 -2
- mage_ai/server/frontend_dist/settings.html +2 -2
- mage_ai/server/frontend_dist/sign-in.html +3 -3
- mage_ai/server/frontend_dist/templates/[...slug].html +2 -2
- mage_ai/server/frontend_dist/templates.html +2 -2
- mage_ai/server/frontend_dist/terminal.html +2 -2
- mage_ai/server/frontend_dist/test.html +3 -3
- mage_ai/server/frontend_dist/triggers.html +2 -2
- mage_ai/server/frontend_dist/version-control.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/404.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/_next/static/{hcfGediUFcOE3vcIGjt-n → GkYZIZv7ClhebnBGgTrwO}/_buildManifest.js +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{1952-0f9a12782f0aaae6.js → 1952-0c8a3cb84da67f53.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{2714-68fef54789d7eaeb.js → 2714-1e79e9f2e998b544.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{2717-82a714ddff3edf43.js → 2717-e599ab448e3c1b7f.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{3437-ed09bb896e50e022.js → 3437-0712d7142aed2c46.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4138-1ffb2d1ab4fc61f2.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{4783-422429203610c318.js → 4783-1a21d9be47574bba.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{5499-f60c2fc8ed0442d5.js → 5499-6f0bc8a94f2b78b4.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{5896-7b8e36634d7d94eb.js → 5896-14e5a23b1c6a0769.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{6285-648f9a732e100b2f.js → 6285-e9b45335bfb9ccaf.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{6798-b904395b0c18647b.js → 6798-1ef0247e65215a0f.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{976-0a8c2c4d7acd957b.js → 976-18c98af60b76f1a7.js} +1 -1
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/manage-221f6ba4b04367c6.js → frontend_dist_base_path_template/_next/static/chunks/pages/manage-41c56c0ae1c15cb6.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/{edit-0cd2a275eb8b6345.js → edit-285ea9b8083b5f22.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/{[run]-e9c1506c0a1f87b6.js → [run]-15deea898d2fa18b.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/{settings-495e877aa7ed709e.js → settings-6f5a7e367ec63c43.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-006a61883c0a6fce.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{preferences-f3c29ec53ee35795.js → preferences-b058d0ff37970cd9.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/block-layout.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/compute.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/files.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/global-data-products/[...slug].html +5 -5
- mage_ai/server/frontend_dist_base_path_template/global-data-products.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/global-hooks/[...slug].html +5 -5
- mage_ai/server/frontend_dist_base_path_template/global-hooks.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/index.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/manage/files.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/manage/settings.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/manage/users/[user].html +5 -5
- mage_ai/server/frontend_dist_base_path_template/manage/users/new.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/manage/users.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/manage.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/oauth.html +3 -3
- mage_ai/server/frontend_dist_base_path_template/overview.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipeline-runs.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills/[...slug].html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/dashboard.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/edit.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/logs.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runs.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runtime.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs/[run].html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/settings.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/syncs.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers/[...slug].html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline].html +2 -2
- mage_ai/server/frontend_dist_base_path_template/pipelines.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/settings/account/profile.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions/[...slug].html +5 -5
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/preferences.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles/[...slug].html +5 -5
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/sync-data.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/users/[...slug].html +5 -5
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/users.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/settings.html +2 -2
- mage_ai/server/frontend_dist_base_path_template/sign-in.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/templates/[...slug].html +5 -5
- mage_ai/server/frontend_dist_base_path_template/templates.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/terminal.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/test.html +4 -4
- mage_ai/server/frontend_dist_base_path_template/triggers.html +5 -5
- mage_ai/server/frontend_dist_base_path_template/version-control.html +5 -5
- mage_ai/settings/__init__.py +32 -13
- mage_ai/tests/cache/test_pipeline_cache.py +1 -0
- mage_ai/tests/cluster_manager/kubernetes/test_workload_manager.py +76 -12
- {mage_ai-0.9.49.dist-info → mage_ai-0.9.51.dist-info}/METADATA +1 -1
- {mage_ai-0.9.49.dist-info → mage_ai-0.9.51.dist-info}/RECORD +149 -149
- mage_ai/server/frontend_dist/_next/static/chunks/4138-a2c37d37dba2f44c.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-34317532903c1ec9.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4138-a2c37d37dba2f44c.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-34317532903c1ec9.js +0 -1
- /mage_ai/server/frontend_dist/_next/static/{chun9Xv4R2ZZyX0zoxPm1 → z6eg1yN60N6gosbEr2pGr}/_ssgManifest.js +0 -0
- /mage_ai/server/frontend_dist_base_path_template/_next/static/{hcfGediUFcOE3vcIGjt-n → GkYZIZv7ClhebnBGgTrwO}/_ssgManifest.js +0 -0
- {mage_ai-0.9.49.dist-info → mage_ai-0.9.51.dist-info}/LICENSE +0 -0
- {mage_ai-0.9.49.dist-info → mage_ai-0.9.51.dist-info}/WHEEL +0 -0
- {mage_ai-0.9.49.dist-info → mage_ai-0.9.51.dist-info}/entry_points.txt +0 -0
- {mage_ai-0.9.49.dist-info → mage_ai-0.9.51.dist-info}/top_level.txt +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6798],{27277:function(e,n,t){var r=t(82394),o=t(21831),i=t(82684),u=t(39643),c=t(44688),l=t(28598);function a(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 d(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.highlightedItemIndexInitial,t=void 0===n?null:n,r=e.itemGroups,a=e.noResultGroups,s=e.onHighlightItemIndexChange,f=e.onMouseEnterItem,p=e.onMouseLeaveItem,v=e.onSelectItem,h=e.renderEmptyState,g=e.searchQuery,m=e.selectedItem,j=e.setItemRefs,y=e.uuid,b=(0,i.useState)(!0),O=b[0],x=b[1],w=(0,i.useMemo)((function(){var e=[],n=r.reduce((function(n,t){var r=t.items.filter((function(e){return!g||function(e,n){return e.searchQueries.filter((function(e){return String(e).toLowerCase().includes(n.toLowerCase())})).length>=1}(e,g)}));return 0===r.length?n:(e.push.apply(e,(0,o.Z)(r)),n.concat(d(d({},t),{},{items:r})))}),[]);return{itemGroups:n,itemsFlattened:e}}),[r,g]),Z=w.itemGroups,k=w.itemsFlattened;a&&0===k.length&&(Z.push.apply(Z,(0,o.Z)(a)),k.push.apply(k,(0,o.Z)(a.reduce((function(e,n){var t=n.items;return e.concat(t)}),[]))));var P=(0,i.useRef)(null);P.current=k.map((function(){return(0,i.createRef)()}));var I=(0,i.useState)(t),C=I[0],D=I[1],S=(0,i.useCallback)((function(e){null===s||void 0===s||s(e),D(e)}),[s,D]),E=k[C],M=(0,c.y)(),_=M.registerOnKeyDown,R=M.unregisterOnKeyDown;(0,i.useEffect)((function(){return function(){return R(y)}}),[R,y]),null===_||void 0===_||_(y,(function(e,n,t){var r,o=!0,i=k.length,c=k.findIndex((function(e,r){var o=e.keyboardShortcutValidation;return null===o||void 0===o?void 0:o({keyHistory:t,keyMapping:n},r)})),l=n[u.Gs]&&!n[u.XR]&&!m;return-1!==c?(e.preventDefault(),v(k[c]),x(o),S(c)):(n[u.Uq]||l)&&k[C]?(l&&e.preventDefault(),v(k[C]),x(o),S(C)):(n[u.Bu]?(o=!1,r=null===C?i-1:C-1):n[u.kD]?(o=!1,r=null===C?0:C+1):n[u.vP]&&S(null),"undefined"!==typeof r&&(r>=i?r=0:r<=-1&&(r=i-1),r>=0&&r<=i-1?(S(r),e.preventDefault()):S(null)),void x(o))}),[C,k,m,S,x]),(0,i.useEffect)((function(){null===j||void 0===j||j(P)}),[P,k,j]),(0,i.useEffect)((function(){var e=null===C||"undefined"===typeof C||C>=k.length;(null===g||void 0===g?void 0:g.length)>=1&&e&&S(0)}),[C,k,g,S]);var B=(0,i.useCallback)((function(){return x(!0)}),[x]);return(0,i.useEffect)((function(){return window.addEventListener("mousemove",B),function(){window.removeEventListener("mousemove",B)}}),[B]),0===Z.length&&h?h():(0,l.jsx)(l.Fragment,{children:Z.map((function(e,n){var t=e.items,r=e.renderItem,o=e.renderGroupHeader,i=e.uuid,u=n>=1?Z.slice(0,n).reduce((function(e,n){return e+n.items.length}),0):0,c=t.map((function(e,n){var t=e.itemObject,o=e.value,i=o===(null===E||void 0===E?void 0:E.value),c=n+u,a=(null===t||void 0===t?void 0:t.id)||(null===t||void 0===t?void 0:t.uuid);return(0,l.jsx)("div",{id:"item-".concat(o,"-").concat(a),onMouseMove:function(){return O&&S(c)},ref:P.current[c],children:r(e,{highlighted:i,onClick:function(){return v(e)},onMouseEnter:function(){return null===f||void 0===f?void 0:f(e)},onMouseLeave:function(){return null===p||void 0===p?void 0:p(e)}},n,c)},"item-".concat(o,"-").concat(a))}));return c.length>=1&&(0,l.jsxs)("div",{children:[null===o||void 0===o?void 0:o(),c]},i||"group-uuid-".concat(n))}))})}},81334:function(e,n,t){t.d(n,{Z:function(){return k}});var r=t(82394),o=t(82684),i=t(27277),u=t(31882),c=t(38276),l=t(48381),a=t(30160),d=t(17488),s=t(38626),f=t(44897),p=t(42631),v=t(47041),h=t(70515),g=s.default.div.withConfig({displayName:"indexstyle__DropdownStyle",componentId:"sc-suwkha-0"})([""," border-radius:","px;max-height:","px;overflow:auto;position:absolute;width:100%;z-index:1;"," ",""],v.w5,p.BG,40*h.iI,(function(e){return"\n background-color: ".concat((e.theme.background||f.Z.background).popup,";\n box-shadow: ").concat((e.theme.shadow||f.Z.shadow).popup,";\n ")}),(function(e){return e.topOffset&&"\n top: ".concat(e.topOffset-.5*h.iI,"px;\n ")})),m=s.default.div.withConfig({displayName:"indexstyle__RowStyle",componentId:"sc-suwkha-1"})(["padding:","px;position:relative;z-index:2;&:hover{cursor:pointer;}",""],.5*h.iI,(function(e){return e.highlighted&&"\n background-color: ".concat((e.theme.interactive||f.Z.interactive).hoverBackground,";\n ")})),j=t(39643),y=t(3314),b=t(86735),O=t(44688),x=t(28598);function w(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Z(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 k=function(e){var n,t=e.removeTag,r=e.selectTag,s=e.selectedTags,f=void 0===s?[]:s,p=e.tags,v=void 0===p?[]:p,h=e.uuid,w=(0,o.useRef)(null),k=(0,o.useState)(!1),P=k[0],I=k[1],C=(0,o.useState)(null),D=C[0],S=C[1],E=(0,o.useMemo)((function(){return(0,b.YC)(v||[],"uuid")}),[v]),M=(0,o.useMemo)((function(){return null===E||void 0===E?void 0:E.map((function(e){return{itemObject:e,searchQueries:[e.uuid],value:e.uuid}}))}),[E]),_=(0,o.useMemo)((function(){return(null===D||void 0===D?void 0:D.length)>=1?M.concat({itemObject:{uuid:D},searchQueries:[D],value:"Add tag: ".concat(D)}):M}),[M,D]),R=(0,O.y)(),B=R.registerOnKeyDown,G=R.unregisterOnKeyDown;return(0,o.useEffect)((function(){return function(){return G(h)}}),[G,h]),null===B||void 0===B||B(h,(function(e,n){var t;P&&n[j.vP]&&(I(!1),null===w||void 0===w||null===(t=w.current)||void 0===t||t.blur())}),[P,w]),(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(l.Z,{onClickTag:t,tags:f}),(0,x.jsxs)(c.Z,{mt:1,style:{position:"relative"},children:[(0,x.jsx)(d.Z,{onBlur:function(){return setTimeout((function(){return I(!1)}),150)},onChange:function(e){return S(e.target.value)},onFocus:function(){return I(!0)},ref:w,value:D||""}),(0,x.jsx)(g,{topOffset:null===w||void 0===w||null===(n=w.current)||void 0===n?void 0:n.getBoundingClientRect().height,children:(0,x.jsx)(i.Z,{itemGroups:[{items:P?_:[],renderItem:function(e,n){var t=e.value;return(0,x.jsx)(m,Z(Z({},n),{},{onClick:function(e){var t;(0,y.j)(e),null===n||void 0===n||null===(t=n.onClick)||void 0===t||t.call(n,e)},children:(0,x.jsx)(u.Z,{small:!0,children:(0,x.jsx)(a.ZP,{children:t})})}))}}],onSelectItem:function(e){var n=e.itemObject;null===r||void 0===r||r(n),S(null)},searchQuery:D,uuid:h})})]})]})}},88543:function(e,n,t){t.d(n,{S:function(){return O},Z:function(){return x}});var r=t(82684),o=t(15338),i=t(97618),u=t(55485),c=t(85854),l=t(65956),a=t(82394),d=t(44085),s=t(38276),f=t(30160),p=t(17488),v=t(69650),h=t(72473),g=t(8193),m=t(70515),j=t(28598);function y(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function b(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?y(Object(t),!0).forEach((function(n){(0,a.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):y(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var O=function(e){var n,t=e.children,r=e.description,o=e.invalid,c=e.large,l=void 0===c||c,a=e.selectInput,y=e.textInput,O=e.title,x=e.toggleSwitch,w=e.warning;return(0,j.jsx)(s.Z,{p:m.cd,children:(0,j.jsxs)(u.ZP,{alignItems:"center",children:[(0,j.jsxs)(u.ZP,{flexDirection:"column",children:[(0,j.jsxs)(f.ZP,{danger:o,default:!0,large:l,warning:w,children:[O," ",o&&(0,j.jsx)(f.ZP,{danger:!0,inline:!0,large:l,children:"is required"})]}),r&&"string"===typeof r&&(0,j.jsx)(f.ZP,{muted:!0,small:!0,children:r}),r&&"string"!==typeof r&&r]}),(0,j.jsx)(s.Z,{mr:m.cd}),(0,j.jsxs)(i.Z,{flex:1,justifyContent:"flex-end",children:[t,y&&(0,j.jsx)(p.Z,b({afterIcon:(0,j.jsx)(h.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:g.Z,alignRight:!0,autoComplete:"off",large:l,noBackground:!0,noBorder:!0,fullWidth:!0,paddingHorizontal:0,paddingVertical:0,setContentOnMount:!0},y)),a&&(0,j.jsx)(d.Z,b(b({},a),{},{afterIcon:(0,j.jsx)(h._M,{}),afterIconSize:g.Z,alignRight:!0,autoComplete:"off",large:l,noBackground:!0,noBorder:!0,paddingHorizontal:0,paddingVertical:0,setContentOnMount:!0,children:null===a||void 0===a||null===(n=a.options)||void 0===n?void 0:n.map((function(e){var n=e.label,t=e.value;return(0,j.jsx)("option",{value:t,children:n||t},t)}))})),x&&(0,j.jsx)(v.Z,{checked:!(null===x||void 0===x||!x.checked),compact:!0,onCheck:null===x||void 0===x?void 0:x.onCheck})]})]})})},x=function(e){var n=e.children,t=e.description,a=e.headerChildren,d=e.title;return(0,j.jsxs)(l.Z,{noPadding:!0,children:[(0,j.jsx)(s.Z,{p:m.cd,children:(0,j.jsxs)(u.ZP,{alignItems:"center",children:[(0,j.jsxs)(i.Z,{flex:1,flexDirection:"column",children:[(0,j.jsx)(c.Z,{level:4,children:d}),t&&"string"===typeof t&&(0,j.jsx)(s.Z,{mt:1,children:(0,j.jsx)(f.ZP,{muted:!0,children:t})}),t&&"string"!==typeof t&&t]}),a]})}),r.Children.map(n,(function(e,n){return(0,j.jsxs)("div",{children:[(0,j.jsx)(o.Z,{light:!0}),e]},"".concat(d,"-").concat(n))}))]})}},8193:function(e,n,t){t.d(n,{N:function(){return l},Z:function(){return c}});var r=t(38626),o=t(44897),i=t(42631),u=t(70515),c=2*u.iI,l=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-1ck7mzt-0"})(["border-radius:","px;padding:","px;",""],i.n_,u.cd*u.iI,(function(e){return"\n background-color: ".concat((e.theme.background||o.Z.background).codeArea,";\n ")}))}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6798],{27277:function(e,n,t){var r=t(82394),o=t(21831),i=t(82684),u=t(39643),c=t(44688),l=t(28598);function a(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 d(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.highlightedItemIndexInitial,t=void 0===n?null:n,r=e.itemGroups,a=e.noResultGroups,s=e.onHighlightItemIndexChange,f=e.onMouseEnterItem,p=e.onMouseLeaveItem,v=e.onSelectItem,h=e.renderEmptyState,g=e.searchQuery,m=e.selectedItem,j=e.setItemRefs,y=e.uuid,b=(0,i.useState)(!0),O=b[0],x=b[1],w=(0,i.useMemo)((function(){var e=[],n=r.reduce((function(n,t){var r=t.items.filter((function(e){return!g||function(e,n){return e.searchQueries.filter((function(e){return String(e).toLowerCase().includes(n.toLowerCase())})).length>=1}(e,g)}));return 0===r.length?n:(e.push.apply(e,(0,o.Z)(r)),n.concat(d(d({},t),{},{items:r})))}),[]);return{itemGroups:n,itemsFlattened:e}}),[r,g]),Z=w.itemGroups,k=w.itemsFlattened;a&&0===k.length&&(Z.push.apply(Z,(0,o.Z)(a)),k.push.apply(k,(0,o.Z)(a.reduce((function(e,n){var t=n.items;return e.concat(t)}),[]))));var P=(0,i.useRef)(null);P.current=k.map((function(){return(0,i.createRef)()}));var I=(0,i.useState)(t),C=I[0],D=I[1],S=(0,i.useCallback)((function(e){null===s||void 0===s||s(e),D(e)}),[s,D]),E=k[C],M=(0,c.y)(),_=M.registerOnKeyDown,R=M.unregisterOnKeyDown;(0,i.useEffect)((function(){return function(){return R(y)}}),[R,y]),null===_||void 0===_||_(y,(function(e,n,t){var r,o=!0,i=k.length,c=k.findIndex((function(e,r){var o=e.keyboardShortcutValidation;return null===o||void 0===o?void 0:o({keyHistory:t,keyMapping:n},r)})),l=n[u.Gs]&&!n[u.XR]&&!m;return-1!==c?(e.preventDefault(),v(k[c]),x(o),S(c)):(n[u.Uq]||l)&&k[C]?(l&&e.preventDefault(),v(k[C]),x(o),S(C)):(n[u.Bu]?(o=!1,r=null===C?i-1:C-1):n[u.kD]?(o=!1,r=null===C?0:C+1):n[u.vP]&&S(null),"undefined"!==typeof r&&(r>=i?r=0:r<=-1&&(r=i-1),r>=0&&r<=i-1?(S(r),e.preventDefault()):S(null)),void x(o))}),[C,k,m,S,x]),(0,i.useEffect)((function(){null===j||void 0===j||j(P)}),[P,k,j]),(0,i.useEffect)((function(){var e=null===C||"undefined"===typeof C||C>=k.length;(null===g||void 0===g?void 0:g.length)>=1&&e&&S(0)}),[C,k,g,S]);var B=(0,i.useCallback)((function(){return x(!0)}),[x]);return(0,i.useEffect)((function(){return window.addEventListener("mousemove",B),function(){window.removeEventListener("mousemove",B)}}),[B]),0===Z.length&&h?h():(0,l.jsx)(l.Fragment,{children:Z.map((function(e,n){var t=e.items,r=e.renderItem,o=e.renderGroupHeader,i=e.uuid,u=n>=1?Z.slice(0,n).reduce((function(e,n){return e+n.items.length}),0):0,c=t.map((function(e,n){var t=e.itemObject,o=e.value,i=o===(null===E||void 0===E?void 0:E.value),c=n+u,a=(null===t||void 0===t?void 0:t.id)||(null===t||void 0===t?void 0:t.uuid);return(0,l.jsx)("div",{id:"item-".concat(o,"-").concat(a),onMouseMove:function(){return O&&S(c)},ref:P.current[c],children:r(e,{highlighted:i,onClick:function(){return v(e)},onMouseEnter:function(){return null===f||void 0===f?void 0:f(e)},onMouseLeave:function(){return null===p||void 0===p?void 0:p(e)}},n,c)},"item-".concat(o,"-").concat(a))}));return c.length>=1&&(0,l.jsxs)("div",{children:[null===o||void 0===o?void 0:o(),c]},i||"group-uuid-".concat(n))}))})}},81334:function(e,n,t){t.d(n,{Z:function(){return k}});var r=t(82394),o=t(82684),i=t(27277),u=t(31882),c=t(38276),l=t(48381),a=t(30160),d=t(17488),s=t(38626),f=t(44897),p=t(42631),v=t(47041),h=t(70515),g=s.default.div.withConfig({displayName:"indexstyle__DropdownStyle",componentId:"sc-suwkha-0"})([""," border-radius:","px;max-height:","px;overflow:auto;position:absolute;width:100%;z-index:1;"," ",""],v.w5,p.BG,40*h.iI,(function(e){return"\n background-color: ".concat((e.theme.background||f.Z.background).popup,";\n box-shadow: ").concat((e.theme.shadow||f.Z.shadow).popup,";\n ")}),(function(e){return e.topOffset&&"\n top: ".concat(e.topOffset-.5*h.iI,"px;\n ")})),m=s.default.div.withConfig({displayName:"indexstyle__RowStyle",componentId:"sc-suwkha-1"})(["padding:","px;position:relative;z-index:2;&:hover{cursor:pointer;}",""],.5*h.iI,(function(e){return e.highlighted&&"\n background-color: ".concat((e.theme.interactive||f.Z.interactive).hoverBackground,";\n ")})),j=t(39643),y=t(3314),b=t(86735),O=t(44688),x=t(28598);function w(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Z(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 k=function(e){var n,t=e.removeTag,r=e.selectTag,s=e.selectedTags,f=void 0===s?[]:s,p=e.tags,v=void 0===p?[]:p,h=e.uuid,w=(0,o.useRef)(null),k=(0,o.useState)(!1),P=k[0],I=k[1],C=(0,o.useState)(null),D=C[0],S=C[1],E=(0,o.useMemo)((function(){return(0,b.YC)(v||[],"uuid")}),[v]),M=(0,o.useMemo)((function(){return null===E||void 0===E?void 0:E.map((function(e){return{itemObject:e,searchQueries:[e.uuid],value:e.uuid}}))}),[E]),_=(0,o.useMemo)((function(){return(null===D||void 0===D?void 0:D.length)>=1?M.concat({itemObject:{uuid:D},searchQueries:[D],value:"Add tag: ".concat(D)}):M}),[M,D]),R=(0,O.y)(),B=R.registerOnKeyDown,G=R.unregisterOnKeyDown;return(0,o.useEffect)((function(){return function(){return G(h)}}),[G,h]),null===B||void 0===B||B(h,(function(e,n){var t;P&&n[j.vP]&&(I(!1),null===w||void 0===w||null===(t=w.current)||void 0===t||t.blur())}),[P,w]),(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(l.Z,{onClickTag:t,tags:f}),(0,x.jsxs)(c.Z,{mt:1,style:{position:"relative"},children:[(0,x.jsx)(d.Z,{onBlur:function(){return setTimeout((function(){return I(!1)}),150)},onChange:function(e){return S(e.target.value)},onFocus:function(){return I(!0)},ref:w,value:D||""}),(0,x.jsx)(g,{topOffset:null===w||void 0===w||null===(n=w.current)||void 0===n?void 0:n.getBoundingClientRect().height,children:(0,x.jsx)(i.Z,{itemGroups:[{items:P?_:[],renderItem:function(e,n){var t=e.value;return(0,x.jsx)(m,Z(Z({},n),{},{onClick:function(e){var t;(0,y.j)(e),null===n||void 0===n||null===(t=n.onClick)||void 0===t||t.call(n,e)},children:(0,x.jsx)(u.Z,{small:!0,children:(0,x.jsx)(a.ZP,{children:t})})}))}}],onSelectItem:function(e){var n=e.itemObject;null===r||void 0===r||r(n),S(null)},searchQuery:D,uuid:h})})]})]})}},57114:function(e,n,t){t.d(n,{S:function(){return O},Z:function(){return x}});var r=t(82684),o=t(15338),i=t(97618),u=t(55485),c=t(85854),l=t(65956),a=t(82394),d=t(44085),s=t(38276),f=t(30160),p=t(17488),v=t(69650),h=t(72473),g=t(8193),m=t(70515),j=t(28598);function y(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function b(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?y(Object(t),!0).forEach((function(n){(0,a.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):y(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var O=function(e){var n,t=e.children,r=e.description,o=e.invalid,c=e.large,l=void 0===c||c,a=e.selectInput,y=e.textInput,O=e.title,x=e.toggleSwitch,w=e.warning;return(0,j.jsx)(s.Z,{p:m.cd,children:(0,j.jsxs)(u.ZP,{alignItems:"center",children:[(0,j.jsxs)(u.ZP,{flexDirection:"column",children:[(0,j.jsxs)(f.ZP,{danger:o,default:!0,large:l,warning:w,children:[O," ",o&&(0,j.jsx)(f.ZP,{danger:!0,inline:!0,large:l,children:"is required"})]}),r&&"string"===typeof r&&(0,j.jsx)(f.ZP,{muted:!0,small:!0,children:r}),r&&"string"!==typeof r&&r]}),(0,j.jsx)(s.Z,{mr:m.cd}),(0,j.jsxs)(i.Z,{flex:1,justifyContent:"flex-end",children:[t,y&&(0,j.jsx)(p.Z,b({afterIcon:(0,j.jsx)(h.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:g.Z,alignRight:!0,autoComplete:"off",large:l,noBackground:!0,noBorder:!0,fullWidth:!0,paddingHorizontal:0,paddingVertical:0,setContentOnMount:!0},y)),a&&(0,j.jsx)(d.Z,b(b({},a),{},{afterIcon:(0,j.jsx)(h._M,{}),afterIconSize:g.Z,alignRight:!0,autoComplete:"off",large:l,noBackground:!0,noBorder:!0,paddingHorizontal:0,paddingVertical:0,setContentOnMount:!0,children:null===a||void 0===a||null===(n=a.options)||void 0===n?void 0:n.map((function(e){var n=e.label,t=e.value;return(0,j.jsx)("option",{value:t,children:n||t},t)}))})),x&&(0,j.jsx)(v.Z,{checked:!(null===x||void 0===x||!x.checked),compact:!0,onCheck:null===x||void 0===x?void 0:x.onCheck})]})]})})},x=function(e){var n=e.children,t=e.description,a=e.headerChildren,d=e.title;return(0,j.jsxs)(l.Z,{noPadding:!0,children:[(0,j.jsx)(s.Z,{p:m.cd,children:(0,j.jsxs)(u.ZP,{alignItems:"center",children:[(0,j.jsxs)(i.Z,{flex:1,flexDirection:"column",children:[(0,j.jsx)(c.Z,{level:4,children:d}),t&&"string"===typeof t&&(0,j.jsx)(s.Z,{mt:1,children:(0,j.jsx)(f.ZP,{muted:!0,children:t})}),t&&"string"!==typeof t&&t]}),a]})}),r.Children.map(n,(function(e,n){return(0,j.jsxs)("div",{children:[(0,j.jsx)(o.Z,{light:!0}),e]},"".concat(d,"-").concat(n))}))]})}},8193:function(e,n,t){t.d(n,{N:function(){return l},Z:function(){return c}});var r=t(38626),o=t(44897),i=t(42631),u=t(70515),c=2*u.iI,l=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-1ck7mzt-0"})(["border-radius:","px;padding:","px;",""],i.n_,u.cd*u.iI,(function(e){return"\n background-color: ".concat((e.theme.background||o.Z.background).codeArea,";\n ")}))}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[976],{4006:function(t,e,n){n.d(e,{Z:function(){return dt}});var r=n(75582),i=n(82394),o=n(92083),a=n.n(o),l=n(26304),c=n(26226),u=n(84969),d=n(90948),s=n(65743),h=n(39048),f=n(79487),p=n(29989),m=n(61655),g=n(16853),x=n(65376),y=n(55485),v=n(30160),b=n(94035),j=n(95363),k=n(70515),Z=n(21831),w=n(82684),O=n(38626),S=n(48072),P=n(24903),A=n(98677),I=n(84181),L=n(44897),T=n(79633),C=n(61896),M=n(81728);function D(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 E(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?D(Object(n),!0).forEach((function(e){(0,i.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var F={bottom:k.iI*(3+k.cd),left:k.iI*k.cd,right:k.iI*k.cd,top:k.iI*k.cd};function N(t,e){return Math.max.apply(Math,(0,Z.Z)(t.map(e)))}function _(t){var e=t.data,n=t.height,r=t.keyForYData,i=t.large,o=t.margin,a=void 0===o?{}:o,l=t.orientationVertical,c=void 0!==l&&l,u=t.showTooltip,d=t.width,s=t.yLabelFormat,h=(0,w.useContext)(O.ThemeContext),f=(0,w.useCallback)((function(t){return t[r]}),[r]),p=s;p||(p=function(t){return t.length>20?"".concat(t.substring(0,20),"..."):t});var m=i?C.iD:C.J5,g=E(E({},F),a),x=e.slice(Math.max(0,e.length-50)),y=(0,w.useMemo)((function(){return Object.keys((null===x||void 0===x?void 0:x[0])||{}).filter((function(t){return t!==r}))}),[x,r]),v=(0,P.Z)({domain:y,range:[T.a$,T.Ej,T.hM,T.ZA,T.$R,T.X_,T.er,T.hl,T.nQ]}),b=(0,w.useMemo)((function(){return x.map(f)}),[x,f]),j=(0,A.Z)({domain:b,padding:.1}),k=(0,A.Z)({domain:y,padding:.1}),D=(0,I.Z)({domain:[0,N(x,(function(t){return N(y,(function(e){return Number(t[e])}))}))]}),_={active:(null===h||void 0===h?void 0:h.content.default)||L.Z.content.default,backgroundPrimary:(null===h||void 0===h?void 0:h.chart.backgroundPrimary)||L.Z.chart.backgroundPrimary,backgroundSecondary:(null===h||void 0===h?void 0:h.chart.backgroundSecondary)||L.Z.chart.backgroundSecondary,muted:(null===h||void 0===h?void 0:h.content.muted)||L.Z.content.muted,primary:(null===h||void 0===h?void 0:h.chart.primary)||L.Z.chart.primary,tooltipBackground:(null===h||void 0===h?void 0:h.background.navigation)||L.Z.background.navigation},R=b;c&&(R=x.reduce((function(t,e){return t.concat(y.map((function(t){var n=e[t];return(0,M.HW)(n)?parseInt(String(n)):n})))}),[]));var B=Math.min(Math.max.apply(Math,(0,Z.Z)(R.map((function(t){return String(t).length})))),20);g.left+=7*B;var V=d-(g.left+g.right),z=n-(g.top+g.bottom);c?(j.rangeRound([0,V]),D.rangeRound([z,0])):(j.rangeRound([z,0]),D.rangeRound([0,V])),k.rangeRound([0,j.bandwidth()]);var Y=x.map(f).length,H=0;c||(H=j(R[Y-1]));var J=(0,w.useCallback)((function(t){var e=(0,S.Z)(t)||{x:0,y:0},n=e.x,r=e.y,i=n-g.left,o=r-g.top,a=0;a=c?(i-H/2)/(V-H):1-(o-H/2)/(z-H);var l=Math.floor(a*Y),d=x[l];"undefined"===typeof d&&(d=x[l-1]),c?i>H&&i<V+g.left-H&&u({tooltipData:d,tooltipLeft:n,tooltipTop:r}):o>H&&o<z-H&&u({tooltipData:d,tooltipLeft:n,tooltipTop:r})}),[x,Y,g.left,g.top,c,u,H,V,z]);return{colorScale:v,colors:_,data:x,fontSize:m,handleTooltip:J,margin:g,tempScale:D,tickValues:R,xKeys:y,xMax:V,y1Scale:k,yLabelFormat:p,yMax:z,yScale:j,ySerialize:f}}var R=n(28598),B=["height","width","xAxisLabel","yAxisLabel"];function V(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 z(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?V(Object(n),!0).forEach((function(e){(0,i.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):V(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Y=3*k.iI,H=(k.iI,k.iI,k.iI,(0,m.Z)((function(t){var e=t.data,n=t.height,i=t.hideTooltip,o=t.keyForYData,a=void 0===o?"__y":o,l=t.large,c=t.margin,m=void 0===c?{}:c,y=t.renderNoDataText,b=t.renderTooltipContent,k=t.showTooltip,Z=t.tooltipData,w=t.tooltipLeft,O=t.tooltipOpen,S=t.tooltipTop,P=t.width,A=t.xAxisLabel,I=t.xNumTicks,L=t.yLabelFormat,T=_({data:e,height:n,keyForYData:a,large:l,margin:m,showTooltip:k,width:P,yLabelFormat:L}),C=T.colorScale,D=T.colors,E=T.data,F=T.fontSize,N=T.handleTooltip,B=T.margin,V=T.tempScale,H=T.tickValues,J=T.xKeys,W=T.xMax,X=T.y1Scale,K=T.yLabelFormat,G=T.yMax,U=T.yScale,q=T.ySerialize,Q=[];Math.min((null===H||void 0===H?void 0:H.length)||0,Math.floor(n/Y));return null===H||void 0===H||H.forEach((function(t){Q.push(t)})),P<10?null:(0,R.jsxs)("div",{children:[(0,R.jsxs)("svg",{height:n,width:P,children:[y&&!(null!==E&&void 0!==E&&E.length)&&(0,R.jsx)("text",{fill:D.active,dominantBaseline:"middle",textAnchor:"middle",fontFamily:j.ry,fontSize:F,x:"50%",y:"50%",children:y()}),(0,R.jsx)(s.Z,{fill:"transparent",height:n-(B.top+B.bottom),onMouseLeave:function(){return i()},onMouseMove:N,onTouchMove:N,onTouchStart:N,rx:14,width:P-(B.left+B.right),x:B.left,y:B.top}),(null===E||void 0===E?void 0:E.length)&&(0,R.jsxs)(p.Z,{left:B.left,top:B.top,children:[(0,R.jsx)(h.Z,{color:C,data:E,keys:J,width:W,xScale:V,y0:q,y0Scale:U,y1Scale:X,children:function(t){return t.map((function(t){return(0,R.jsx)(p.Z,{top:t.y0,children:t.bars.map((function(e){return(0,R.jsx)("g",{children:(0,R.jsx)(R.Fragment,{children:(0,R.jsx)("rect",{fill:e.color,height:e.height,pointerEvents:"none",rx:4,width:e.width,x:e.x,y:e.y})})},"".concat(t.index,"-").concat(e.index,"-").concat(e.key))}))},"bar-group-horizontal-".concat(t.index,"-").concat(t.y0))}))}}),(0,R.jsx)(u.Z,{hideTicks:!0,scale:U,stroke:D.muted,tickFormat:function(t){return K(t)},tickLabelProps:function(){return{fill:D.active,fontFamily:j.ry,fontSize:F,style:{width:"10px"},textAnchor:"end"}},tickStroke:D.muted,tickValues:Q,top:2}),(0,R.jsx)(d.Z,{label:A,labelProps:{fill:D.muted,fontFamily:j.ry,fontSize:F,textAnchor:"middle"},numTicks:I,scale:V,stroke:D.muted,tickLabelProps:function(){return{fill:D.active,fontFamily:j.ry,fontSize:F,textAnchor:"middle"}},tickStroke:D.muted,top:G})]}),Z&&(0,R.jsx)("g",{children:(0,R.jsx)(f.Z,{from:{x:B.left,y:S},pointerEvents:"none",stroke:D.active,strokeDasharray:"5,2",strokeWidth:1,to:{x:W+B.left,y:S}})})]}),O&&Z&&(0,R.jsxs)(g.Z,{left:w,style:z(z({},x.j),{},{backgroundColor:D.tooltipBackground}),top:S,children:[b&&b(Z),!b&&Object.entries(Z).map((function(t){var e=(0,r.Z)(t,2),n=e[0],i=e[1];if(a!==n){var o=i;return(0,M.HW)(o)&&String(o).split(".").length>=2&&(o=o.toFixed(4)),(0,R.jsxs)(v.ZP,{inverted:!0,small:!0,children:[n,": ",o]},n)}}))]})]})})));var J=function(t){var e,n=t.height,r=t.width,i=t.xAxisLabel,o=t.yAxisLabel,a=(0,l.Z)(t,B);return e="undefined"===typeof r?"100%":o?0===r?r:r-28:r,(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)("div",{style:{display:"flex",height:n,marginBottom:i?k.iI:null,width:"100%"},children:[o&&(0,R.jsx)(y.ZP,{alignItems:"center",fullHeight:!0,justifyContent:"center",width:28,children:(0,R.jsx)(b.Z,{children:(0,R.jsx)(v.ZP,{center:!0,muted:!0,small:!0,children:o})})}),(0,R.jsx)("div",{style:{height:n,width:e},children:(0,R.jsx)(c.Z,{children:function(t){var e=t.width,n=t.height;return(0,R.jsx)(H,z(z({},a),{},{height:n,width:e}))}})})]}),i&&(0,R.jsx)("div",{style:{paddingLeft:o?36:0,paddingTop:4},children:(0,R.jsx)(v.ZP,{center:!0,muted:!0,small:!0,children:i})})]})},W=n(95422),X=["keyForYData"],K=["height","width","xAxisLabel","yAxisLabel"];function G(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 U(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?G(Object(n),!0).forEach((function(e){(0,i.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var q=6*k.iI,Q=(0,m.Z)((function(t){var e=t.keyForYData,n=void 0===e?"__y":e,i=(0,l.Z)(t,X),o=i.height,a=i.hideTooltip,c=i.renderNoDataText,h=i.renderTooltipContent,m=i.tooltipData,y=i.tooltipLeft,b=i.tooltipOpen,k=i.tooltipTop,Z=i.width,w=i.xLabelFormat,O=i.xNumTicks,S=i.yNumTicks,P=_(U(U({},i),{},{keyForYData:n,orientationVertical:!0})),A=P.colorScale,I=P.colors,L=P.data,T=P.fontSize,C=P.handleTooltip,D=P.margin,E=P.tempScale,F=(P.tickValues,P.xKeys),N=(P.xMax,P.y1Scale),B=P.yLabelFormat,V=P.yMax,z=P.yScale,Y=P.ySerialize,H=Math.min(O,Z/q);return Z<10?null:(0,R.jsxs)("div",{children:[(0,R.jsxs)("svg",{height:o,width:Z,children:[c&&!(null!==L&&void 0!==L&&L.length)&&(0,R.jsx)("text",{fill:I.active,dominantBaseline:"middle",textAnchor:"middle",fontFamily:j.ry,fontSize:T,x:"50%",y:"50%",children:c()}),(null===L||void 0===L?void 0:L.length)&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(s.Z,{fill:"transparent",height:o-(D.top+D.bottom),onMouseLeave:function(){return a()},onMouseMove:C,onTouchMove:C,onTouchStart:C,rx:14,width:Z-(D.left+D.right),x:D.left,y:2*D.top}),(0,R.jsxs)(p.Z,{top:D.top,children:[(0,R.jsx)(W.Z,{color:A,data:L,height:V,keys:F,x0:Y,x0Scale:z,x1Scale:N,yScale:E,children:function(t){return t.map((function(t){return(0,R.jsx)(p.Z,{left:t.x0+D.left,top:D.top,children:t.bars.map((function(e){return(0,R.jsx)("g",{children:(0,R.jsx)("rect",{fill:e.color,height:e.height,pointerEvents:"none",rx:4,width:e.width,x:e.x,y:e.y})},"".concat(t.index,"-").concat(e.index,"-").concat(e.key))}))},"bar-group-horizontal-".concat(t.index,"-").concat(t.x0))}))}}),(0,R.jsx)(u.Z,{left:D.left,numTicks:S,scale:E,stroke:I.muted,tickFormat:function(t){return B(t)},tickLabelProps:function(){return{fill:I.active,fontFamily:j.ry,fontSize:T,textAnchor:"end",transform:"translate(-2,2.5)"}},tickStroke:I.muted,top:D.top}),(0,R.jsx)(d.Z,{hideTicks:!0,left:D.left,numTicks:H,scale:z,stroke:I.muted,tickFormat:w,tickLabelProps:function(){return{fill:I.active,fontFamily:j.ry,fontSize:T,textAnchor:"middle"}},tickStroke:I.muted,top:V+D.top})]})]}),m&&(0,R.jsx)("g",{children:(0,R.jsx)(f.Z,{from:{x:y,y:2*D.top},pointerEvents:"none",stroke:I.active,strokeDasharray:"5,2",strokeWidth:1,to:{x:y,y:V+2*D.top}})})]}),b&&m&&(0,R.jsxs)(g.Z,{left:y,style:U(U({},x.j),{},{backgroundColor:I.tooltipBackground}),top:k,children:[h&&h(m),!h&&Object.entries(m).map((function(t){var e=(0,r.Z)(t,2),i=e[0],o=e[1];if(n!==i){var a=o;return(0,M.HW)(a)&&String(a).split(".").length>=2&&(a=a.toFixed(4)),(0,R.jsxs)(v.ZP,{inverted:!0,small:!0,children:[i,": ",a]},i)}})),(0,R.jsx)("br",{}),(0,R.jsxs)(v.ZP,{inverted:!0,small:!0,children:[w&&w(Y(m)),!w&&Y(m)]})]})]})}));var $=function(t){var e=t.height,n=t.width,r=t.xAxisLabel,i=t.yAxisLabel,o=(0,l.Z)(t,K);return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)("div",{style:{display:"flex",height:e,marginBottom:r?k.iI:null,width:"100%"},children:[i&&(0,R.jsx)(y.ZP,{alignItems:"center",fullHeight:!0,justifyContent:"center",width:28,children:(0,R.jsx)(b.Z,{children:(0,R.jsx)(v.ZP,{center:!0,muted:!0,small:!0,children:i})})}),(0,R.jsx)("div",{style:{height:e,width:i?0===n?n:n-28:n},children:(0,R.jsx)(c.Z,{children:function(t){var e=t.height,n=t.width;return(0,R.jsx)(Q,U(U({},o),{},{height:e,width:n}))}})})]}),r&&(0,R.jsx)("div",{style:{paddingLeft:i?36:0,paddingTop:4},children:(0,R.jsx)(v.ZP,{center:!0,muted:!0,small:!0,children:r})})]})},tt=n(93859),et=n(52729),nt=n(74168),rt=n(87862),it=n(97301),ot=n(35058),at=n(3917),lt=n(86735);function ct(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 ut(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ct(Object(n),!0).forEach((function(e){(0,i.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ct(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var dt=function(t){var e,n=t.block,o=t.data,l=t.width,c=t.xAxisLabel,u=n.configuration,d=void 0===u?{}:u,s=d||{},h=s.chart_style,f=s.chart_type,p=s.y_sort_order,m=d[ot.JJ]||it.lA,g=(null===d||void 0===d||null===(e=d[ot.bE])||void 0===e?void 0:e.map((function(t){return(0,ot.c0)(t)})))||[],x=at.n1,y=d[ot.Yg];if([ot.aE.HOUR,ot.aE.MINUTE,ot.aE.SECOND].includes(y)&&(x=at.OC),ot.oV.BAR_CHART===f||ot.oV.TIME_SERIES_BAR_CHART===f){var b=o.x,j=o.y,Z=ot.oV.TIME_SERIES_BAR_CHART===f;if(b&&j&&Array.isArray(b)&&Array.isArray(j)){var w,O=null===(w=d[ot.eN])||void 0===w?void 0:w.join(", "),S=null===g||void 0===g?void 0:g.join(", ");g.length||g.push(ot.rj);var P=g[0],A=b.map((function(t,e){return ut({__y:t},g.reduce((function(t,n,r){var o,a=null===j||void 0===j||null===(o=j[r])||void 0===o?void 0:o[e];return"undefined"===typeof a?t:ut(ut({},t),{},(0,i.Z)({},n,a))}),{}))}));ot.JT.HORIZONTAL===h?ot.MP.ASCENDING===p?A=(0,lt.YC)(A,(function(t){return t[P]}),{ascending:!1}):ot.MP.DESCENDING===p&&(A=(0,lt.YC)(A,(function(t){return t[P]}),{ascending:!0})):ot.JT.VERTICAL===h&&(ot.MP.ASCENDING===p?A=(0,lt.YC)(A,(function(t){return t[P]}),{ascending:!0}):ot.MP.DESCENDING===p&&(A=(0,lt.YC)(A,(function(t){return t[P]}),{ascending:!1})));var I={data:A,height:m,renderNoDataText:function(){return"No data matching query"},width:l,xNumTicks:3};return ot.JT.HORIZONTAL===h?(0,R.jsx)(J,ut(ut({},I),{},{xAxisLabel:S||d[ot.rj],yAxisLabel:c||O||d[ot.a3]})):(0,R.jsx)($,ut(ut({},I),{},{xAxisLabel:c||O,xLabelFormat:function(t){return Z?a()(1e3*t).format(at.n1):t},xNumTicks:A.length,yAxisLabel:S,yNumTicks:5}))}}else if(ot.oV.HISTOGRAM===f){var L,T=o.x,C=o.y,D=null===(L=d[ot.eN])||void 0===L?void 0:L.join(", ");if(T&&C&&Array.isArray(T))return(0,R.jsx)(et.Z,{data:T.map((function(t,e){var n,r=t.max,i=t.min;return[r,null===C||void 0===C||null===(n=C[e])||void 0===n?void 0:n.value,i]})),height:m,width:l,large:!0,margin:{left:5*k.iI,right:1*k.iI,top:3*k.iI},noPadding:!0,renderTooltipContent:function(t){var e=(0,r.Z)(t,3),n=e[0],i=e[1],o=e[2];return(0,R.jsxs)(v.ZP,{inverted:!0,monospace:!0,small:!0,children:["Count : ",i,(0,R.jsx)("br",{}),"Bucket: ",o,"-",n]})},showAxisLabels:!0,showYAxisLabels:!0,showZeroes:!0,sortData:function(t){return(0,lt.YC)(t,"[0]")},xAxisLabel:c||D||d[ot.a3],yAxisLabel:D?"count(".concat(D,")"):d[ot.rj]})}else if(ot.oV.LINE_CHART===f||ot.oV.TIME_SERIES_LINE_CHART===f){var E=o.x,F=o.y,N=ot.oV.TIME_SERIES_LINE_CHART===f;if(E&&F&&Array.isArray(E)&&Array.isArray(F)&&Array.isArray(null===F||void 0===F?void 0:F[0])){var _,B=g;d[ot.e]&&(B=d[ot.e].split(",").map((function(t){return t.trim()})));var V=E.map((function(t,e){return{x:t,y:(0,lt.w6)(F.length).map((function(t,n){var r=F[n][e];return"undefined"===typeof r||null===r?0:r}))}})),z=null===(_=d[ot.eN])||void 0===_?void 0:_.join(", "),Y=g.join(", ");return(0,R.jsx)(nt.Z,{data:V,height:m,lineLegendNames:B,margin:{bottom:8*k.iI,left:5*k.iI},noCurve:!0,renderXTooltipContent:function(t){t.index;var e=t.x,n=d[ot.a3],r=e;return d[ot.eN]&&(n=d[ot.eN].map(String).join(", ")),N&&(r=a()(1e3*e).format(x)),(0,R.jsxs)(v.ZP,{inverted:!0,small:!0,children:[n,": ",r]})},renderYTooltipContent:function(t,e){var n=t.y;return(0,R.jsxs)(v.ZP,{inverted:!0,small:!0,children:[B&&B[e]&&"".concat(B[e],": "),n&&(0,M.x6)((0,M.QV)(n[e],4))]})},width:l?l-(3*k.iI+3):l,xAxisLabel:c||z||String(d[ot.a3]||""),xLabelFormat:function(t){return N?a()(1e3*t).format(at.n1):t},yAxisLabel:Y||String(d[ot.rj]),yLabelFormat:function(t){return t}})}}else if(ot.oV.PIE_CHART===f){var H,W=o[String(d[ot.a3]||ot.a3)],X=null===(H=d[ot.eN])||void 0===H?void 0:H.join(", ");if(W)return(0,R.jsx)(rt.Z,{data:Object.entries(W),getX:function(t){var e=(0,r.Z)(t,2),n=e[0],i=e[1];return"".concat(n," (").concat((0,M.x6)(i),")")},getY:function(t){return(0,r.Z)(t,2)[1]},height:m,width:l,xAxisLabel:c||X||String(d[ot.a3]||"")})}else if(ot.oV.TABLE===f){var K=o.index,G=o.x,U=o.y;return Array.isArray(G)&&Array.isArray(U)&&Array.isArray(U[0])&&(0,R.jsx)(tt.Z,{columns:G,height:d[ot.JJ]?null:m,index:K,maxHeight:d[ot.JJ]?m:null,noBorderBottom:!0,noBorderLeft:!0,noBorderRight:!0,noBorderTop:!0,rows:U,width:l})}return(0,R.jsx)("div",{})}},97301:function(t,e,n){n.d(e,{T7:function(){return d},Tb:function(){return u},lA:function(){return l},pM:function(){return c},y9:function(){return s}});var r=n(38626),i=n(44897),o=n(42631),a=n(70515),l=40*a.iI,c=r.default.div.withConfig({displayName:"indexstyle__ChartBlockStyle",componentId:"sc-1c3ufnj-0"})(["border-radius:","px;margin-left:","px;margin-right:","px;margin-top:","px;",""],o.n_,.5*a.iI,.5*a.iI,1*a.iI,(function(t){return"\n background-color: ".concat((t.theme.background||i.Z.background).codeArea,";\n ")})),u=r.default.div.withConfig({displayName:"indexstyle__ConfigurationOptionsStyle",componentId:"sc-1c3ufnj-1"})(["flex:4;padding-left:","px;padding-right:","px;"],1*a.iI,1*a.iI),d=r.default.div.withConfig({displayName:"indexstyle__CodeStyle",componentId:"sc-1c3ufnj-2"})(["padding-top:","px;",""],a.iI/2,(function(t){return"\n background-color: ".concat((t.theme.background||i.Z.background).codeTextarea,";\n ")})),s=r.default.div.withConfig({displayName:"indexstyle__CodeHelperStyle",componentId:"sc-1c3ufnj-3"})(["margin-bottom:","px;padding-bottom:","px;padding-left:","px;",""],a.cd*a.iI,a.iI,a.iI,(function(t){return"\n border-bottom: 1px solid ".concat((t.theme.borders||i.Z.borders).medium,";\n ")}))},52729:function(t,e,n){n.d(e,{Z:function(){return V}});var r=n(26304),i=n(21831),o=n(82394),a=n(82684),l=n(26226),c=n(84969),u=n(90948),d=n(65743),s=n(29989),h=n(38626),f=n(61655),p=n(16853),m=n(65376),g=n(48072),x=n(98677),y=n(84181),v=n(55485),b=n(4190),j=n(30160),k=n(94035),Z=n(70987),w=n(79633),O=n(89370),S=n(95363),P=n(61896),A=n(70515),I=n(38469),L=n(6568),T=function(t){return t.slice(0,10)},C=function(t,e){var n=t.toISOString().slice(0,10),r=e.toISOString().slice(0,10);return"".concat(n,":").concat(r)},M=n(79221),D=n(98684),E=n(28598),F=["height","loading","selected","width","xAxisLabel","yAxisLabel"];function N(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 _(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?N(Object(n),!0).forEach((function(e){(0,o.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var R={bottom:A.iI,left:3*A.iI,right:0,top:1*A.iI},B=(0,f.Z)((function(t){var e=t.columnType,n=t.data,r=void 0===n?[]:n,o=t.getBarColor,l=t.getXValue,f=t.getYValue,v=t.height,b=t.hideTooltip,k=t.large,F=t.margin,N=void 0===F?{}:F,B=t.muted,V=t.noPadding,z=t.numberOfXTicks,Y=t.renderTooltipContent,H=t.selected,J=t.showAxisLabels,W=t.showTooltip,X=t.showYAxisLabels,K=t.showZeroes,G=t.sortData,U=t.tooltipData,q=t.tooltipLeft,Q=t.tooltipOpen,$=t.tooltipTop,tt=t.width,et=t.xLabelFormat,nt=t.yLabelFormat,rt=k?P.J5:P.VK,it=(0,a.useCallback)((function(t){return l?l(t):t[0]}),[l]),ot=(0,a.useCallback)((function(t){return f?f(t):t[1]}),[f]),at=(0,a.useContext)(h.ThemeContext),lt=e===O.RL.DATETIME,ct=_(_({},R),N);J&&(ct=_(_({},ct),{},{left:ct.left+A.iI}));var ut=G?G(r):r.sort((function(t,e){return e[1]-t[1]})),dt=lt?r.sort((function(t,e){return new Date(t[0])-new Date(e[0])})).filter((function(t){return!!t[0]})):ut.slice(0,60),st=tt-(ct.left+ct.right),ht=v-(ct.bottom+ct.top),ft=lt?function(t,e){var n,r=t.map((function(t){return new Date(t[0])})).sort((function(t,e){return t-e}));return(0,L.Z)({domain:(n=r,[(0,I.Z)(n[0]),(0,I.Z)(n[n.length-1])]),nice:!0,range:[0,e]})}(dt,st):null,pt=function(t,e){if(null===e)return{};var n=e.ticks().map((function(t){return t.toISOString()})),r={},i=0,o=1;return t.forEach((function(t){var e=new Date(t[0]),a=t[1],l=n[i],c=n[o];if(l&&c){var u=new Date(l),d=new Date(c),s=C(u,d);if(e>=u&&e<d)r[s]=(r[s]||0)+a;else for(;o<n.length||!r[s];)if(i+=1,o+=1,u=new Date(n[i]),d=new Date(n[o]),s=C(u,d),e>=u&&e<d)return void(r[s]=(r[s]||0)+a)}})),n.reduce((function(t,e,n,r){if(0===n)return t;var i=T(e),o=T(r[n-1]);return t.push("".concat(o,":").concat(i)),t}),[]).forEach((function(t){r[t]=r[t]||0})),r}(dt,ft);dt=ft?Object.entries(pt).sort((function(t,e){return new Date(T(t[0]))-new Date(T(e[0]))})):dt;var mt=ft?Math.max.apply(Math,(0,i.Z)(Object.values(pt))):0,gt=dt.reduce((function(t,e){return(0!==ot(e)||lt||K)&&t.push(it(e)),t}),[]),xt=gt.length,yt=function(t,e,n){return n?.05:t>=30&&e<300?.5:t>=15?.3:t>=5?.1:t>2?.05:2===t?.025:0}(xt,tt,lt),vt=(0,x.Z)({domain:gt,paddingInner:V?null:yt,range:[0,st],round:!1}),bt=(0,y.Z)({domain:[0,Math.max.apply(Math,(0,i.Z)(dt.map(ot)))],range:[ht,0],round:!0}),jt=(0,D.K)(at),kt={active:((null===at||void 0===at?void 0:at.content)||Z.Z.content).active,default:jt[0],muted:((null===at||void 0===at?void 0:at.monotone)||Z.Z.monotone).gray,selected:((null===at||void 0===at?void 0:at.elevation)||Z.Z.elevation).visualizationAccent},Zt=kt.default;B?Zt=kt.muted:H&&(Zt=kt.selected);var wt=xt?lt?mt:Math.max.apply(Math,(0,i.Z)(dt.map((function(t){return ot(t)})))):0,Ot=Math.floor(wt/6),St=[0],Pt=0;if(wt>6)for(;Pt<wt;)St.push(Pt+Ot),Pt+=Ot;else for(;Pt<=wt;)St.push(Pt+1),Pt+=1;wt>9999?ct=_(_({},ct),{},{left:k?8*A.iI:4.1*A.iI}):wt>999&&(ct=_(_({},ct),{},{left:k?5*A.iI:3.6*A.iI}));var At=lt?2.25:0,It=xt<10||e===O.RL.NUMBER||e===O.RL.NUMBER_WITH_DECIMALS||lt||X,Lt=(0,a.useCallback)((function(t){var e=(0,g.Z)(t)||{x:0,y:0},n=e.x,r=e.y,i=(n-(J?ct.left:0))/st,o=Math.floor(xt*i),a=dt[o];"undefined"===typeof a&&(a=dt[0]);var l=it(a);l=l.length>15?"".concat(l.slice(0,21)):l;var c=Y?Y(a):"".concat(l," (").concat(ot(a),")");W({tooltipData:c,tooltipLeft:n-ct.left,tooltipTop:r+ct.top})}),[dt,xt,it,ot,ct.left,ct.top,Y,J,W,tt]);return tt<10||!r.length?null:(0,E.jsxs)("div",{children:[(0,E.jsxs)("svg",{height:v+ct.bottom*(lt?7.5:3),width:tt,children:[(0,E.jsx)(s.Z,{left:J?ct.left:0,top:ct.top+At,children:dt.reduce((function(t,e){var n=it(e),r=ot(e);if(0!==r){var i,a=vt.bandwidth(),l=ht-(null!==(i=bt(r))&&void 0!==i?i:0),c=vt(n),u=ht-l;t.push((0,E.jsx)(d.Z,{fill:o?o(e):Zt,height:l,onMouseLeave:function(){return b()},onMouseMove:Lt,onTouchMove:Lt,onTouchStart:Lt,width:a,x:c,y:u},"bar-".concat(n)))}return t}),[])}),J&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(c.Z,{left:ct.left,scale:bt,stroke:kt.muted,tickFormat:function(t){return nt?nt(t):(0,M.P5)(t)},tickLabelProps:function(){return{fill:kt.active,fontFamily:S.ry,fontSize:rt,textAnchor:"end",transform:"translate(-2,2.5)"}},tickStroke:kt.muted,tickValues:St,top:ct.top+At}),(0,E.jsx)(u.Z,{left:ct.left,numTicks:lt?void 0:z||6,orientation:"top",scale:ft||vt,stroke:kt.muted,tickFormat:function(t){return et?et(String(t)):lt?t.toISOString().slice(0,10):String(t)},tickLabelProps:function(t){return{fill:It?kt.active:"transparent",fontFamily:S.ry,fontSize:rt,textAnchor:"middle",transform:lt?"rotate(-90,".concat(ft(t),",0) translate(-33,10)"):"translate(0, ".concat(3*ct.bottom,")")}},tickLineProps:{transform:"translate(0,".concat(A.iI,")")},tickStroke:It?kt.muted:"transparent",top:ht+ct.top+At})]})]}),Q&&U&&(0,E.jsx)(p.Z,{left:q,style:m.j,top:$,children:(0,E.jsx)(j.ZP,{color:w.E5,small:!0,children:U})})]})}));var V=function(t){var e=t.height,n=t.loading,i=t.selected,o=t.width,a=t.xAxisLabel,c=t.yAxisLabel,u=(0,r.Z)(t,F);return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)("div",{style:{display:"flex",height:e,marginBottom:A.iI,width:"100%"},children:[c&&(0,E.jsx)(v.ZP,{alignItems:"center",fullHeight:!0,justifyContent:"center",width:28,children:(0,E.jsx)(k.Z,{children:(0,E.jsx)(j.ZP,{center:!0,muted:!0,small:!0,children:c})})}),(0,E.jsxs)("div",{style:{height:e,width:c?0===o?o:o-28:o},children:[n&&(0,E.jsx)(b.Z,{}),!n&&(0,E.jsx)(l.Z,{children:function(t){var e=t.height,n=t.width;return(0,E.jsx)(B,_(_({},u),{},{height:e,selected:i,width:n}))}})]})]}),a&&(0,E.jsx)("div",{style:{paddingLeft:c?36:0,paddingTop:4},children:(0,E.jsx)(j.ZP,{center:!0,muted:!0,small:!0,children:a})})]})}},74168:function(t,e,n){var r=n(26304),i=n(21831),o=n(82394),a=n(82684),l=n(26226),c=n(38626),u=n(90948),d=n(84969),s=n(65743),h=n(85587),f=n(79487),p=n(52136),m=n(67778),g=n(29989),x=n(17066),y=n(84482),v=n(76771),b=n(98889),j=n(65376),k=n(61655),Z=n(97745),w=n(48072),O=n(10103),S=n(84181),P=n(24903),A=n(55485),I=n(30160),L=n(94035),T=n(44897),C=n(8454),M=n(79633),D=n(95363),E=n(61896),F=n(70515),N=n(86735),_=n(79221),R=n(98684),B=n(28598),V=["areaBetweenLines","data","events","height","lineLegendNames","margin","width","xAxisLabel","xLabelFormat","yAxisLabel","yLabelFormat"];function z(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 Y(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?z(Object(n),!0).forEach((function(e){(0,o.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var H=Y(Y({},j.j),{},{backgroundColor:T.Z.background.muted,border:"none"}),J=(0,k.Z)((function(t){var e=t.areaBetweenLines,n=t.data,r=t.events,o=void 0!==r&&r,l=t.getX,k=t.getY,A=t.getYScaleValues,L=t.gridProps,V=void 0===L?{}:L,z=t.height,J=t.hideGridX,W=t.hideTooltip,X=t.increasedXTicks,K=t.lineLegendNames,G=t.margin,U=t.noCurve,q=t.numYTicks,Q=t.renderXTooltipContent,$=t.renderYTooltipContent,tt=t.showTooltip,et=t.thickStroke,nt=t.tooltipData,rt=t.tooltipLeft,it=void 0===rt?0:rt,ot=t.tooltipTop,at=void 0===ot?[]:ot,lt=t.width,ct=t.xLabelFormat,ut=t.xLabelRotate,dt=void 0===ut||ut,st=t.yLabelFormat,ht=(0,a.useContext)(c.ThemeContext),ft=l||function(t){return null===t||void 0===t?void 0:t.x},pt=k||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]},mt=T.Z.monotone.gray,gt=T.Z.brand.wind200,xt=T.Z.content.muted,yt=T.Z.monotone.gray,vt=n.map((function(t){return Number(ft(t))}));if(lt<10)return null;var bt=lt-G.left-G.right,jt=z-G.top-G.bottom,kt=bt/2,Zt=0===n.length?0: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})))),wt=(0,a.useMemo)((function(){return(0,S.Z)({domain:[Math.min.apply(Math,(0,i.Z)(vt)),Math.max.apply(Math,(0,i.Z)(vt))],range:[0,bt]})}),[bt,vt]),Ot=Math.min.apply(Math,(0,i.Z)(n.map((function(t){var e=t.y;return Math.min.apply(Math,(0,i.Z)(A?A(e):e||[]))})))),St=Math.max.apply(Math,(0,i.Z)(n.map((function(t){var e=t.y;return Math.max.apply(Math,(0,i.Z)(A?A(e):e||[]))})))),Pt=(0,a.useMemo)((function(){return(0,S.Z)({domain:[Ot,St],nice:!0,range:[jt,0]})}),[jt,St,Ot]),At=lt>520?X?20:10:X?10:5,It=(0,R.K)(ht),Lt=xt,Tt=It.map((function(t){return{stroke:t}})),Ct=(0,P.Z)({domain:K||[],range:Tt.map((function(t){return t.stroke}))}),Mt=(0,a.useCallback)((function(t){var e=((0,w.Z)(t)||{x:0}).x,r=wt.invert(e-G.left),i=(0,N.ry)(vt,(function(t){return r>=t})),o=n[i-1],a=n[i],l=o;a&&(r-ft(o)>ft(a)-r?l=a:(l=o,i-=1));var c=(0,O.range)(0,Zt).map((function(t){return Pt(pt(l,t))})),u=c.some((function(t){return"undefined"===typeof t}));(pt(l)||A&&!u)&&tt({tooltipData:Y(Y({},l),{},{index:i}),tooltipLeft:e,tooltipTop:c})}),[n,ft,pt,A,G,tt,wt,vt,Pt]),Dt={};return U||(Dt.curve=Z.ZP),(0,B.jsxs)(B.Fragment,{children:[K&&(0,B.jsx)("div",{style:{marginLeft:null===G||void 0===G?void 0:G.left},children:(0,B.jsx)(x.Z,{labelFormat:function(t){return t},scale:Ct,children:function(t){return(0,B.jsx)("div",{style:{display:"flex",flexDirection:C.qs.ROW},children:t.map((function(t,e){return(0,B.jsxs)(y.Z,{margin:"0 5px",onClick:function(){o&&alert("clicked: ".concat(JSON.stringify(t)))},children:[(0,B.jsx)("svg",{height:15,width:15,children:(0,B.jsx)("rect",{fill:t.value,height:15,width:15})}),(0,B.jsx)(v.Z,{align:"left",margin:"0 0 0 4px",children:(0,B.jsx)(I.ZP,{small:!0,children:t.text})})]},"legend-quantile-".concat(e))}))})}})}),(0,B.jsxs)("svg",{height:z,width:lt,children:[!e&&(0,B.jsx)(s.Z,{fill:"transparent",height:z,onMouseLeave:function(){return W()},onMouseMove:Mt,onTouchMove:Mt,onTouchStart:Mt,rx:14,width:lt-(G.left+G.right),x:G.left,y:0}),(0,B.jsxs)(g.Z,{left:G.left,top:G.top,children:[!J&&(0,B.jsx)(p.Z,Y({height:jt,pointerEvents:"none",scale:wt,stroke:mt,strokeDasharray:"3,3",strokeOpacity:.4,width:bt},V)),(0,B.jsx)(m.Z,Y({height:jt,pointerEvents:"none",scale:Pt,stroke:mt,strokeDasharray:"3,3",strokeOpacity:.4,width:bt},V)),(0,B.jsx)("line",{stroke:mt,x1:bt,x2:bt,y1:0,y2:jt}),(0,B.jsx)(u.Z,{numTicks:At,scale:wt,stroke:Lt,tickFormat:function(t){return ct?ct(t):t},tickLabelProps:function(t){return{fill:xt,fontFamily:D.ry,fontSize:E.J5,textAnchor:"middle",transform:dt&&"rotate(-45, ".concat(wt(t),", 0) translate(-32, 4)")}},tickStroke:Lt,top:jt}),(0,B.jsx)(d.Z,{hideTicks:!0,numTicks:q,scale:Pt,stroke:Lt,tickFormat:function(t){return st?st(t):(0,_.P5)(t)},tickLabelProps:function(t){return{dx:String(t).length>4?3:0,fill:xt,fontFamily:D.ry,fontSize:E.J5,textAnchor:"end",transform:"translate(0,2.5)"}},tickStroke:Lt}),e&&e.map((function(t){var e=t[0],r=t[1];return(0,a.createElement)(b.Z,Y(Y({},Dt),{},{aboveAreaProps:{fill:T.Z.brand.earth400,fillOpacity:.3},belowAreaProps:{fill:gt,fillOpacity:.2},clipAboveTo:0,clipBelowTo:jt,data:n,id:"".concat(Math.random()),key:"".concat(e,"-").concat(r),x:function(t){return wt(ft(t))},y0:function(t){return Pt("undefined"===typeof r?Ot:pt(t,r))},y1:function(t){return Pt(pt(t,e))}}))})),(0,O.range)(0,Zt).map((function(t){return(0,a.createElement)(h.Z,Y(Y({},Dt),{},{data:n.filter((function(t){return void 0!=t.y})),key:t,pointerEvents:"none",strokeWidth:et?2:1,x:function(t){return wt(ft(t))},y:function(e){return Pt(e.y&&(t>=e.y.length?Ot:pt(e,t)))}},Tt[t]))}))]}),nt&&(0,B.jsxs)("g",{children:[(0,B.jsx)(f.Z,{from:{x:it,y:G.top},pointerEvents:"none",stroke:M.Ej,strokeDasharray:"5,2",strokeWidth:1,to:{x:it,y:jt+G.top}}),at.map((function(t,e){return(0,B.jsx)("circle",{cx:it,cy:t+1+G.top,fill:Tt[e].stroke,fillOpacity:.1,pointerEvents:"none",r:4,stroke:yt,strokeOpacity:.1,strokeWidth:1},e)})),at.map((function(t,e){return(0,B.jsx)("circle",{cx:it,cy:t+G.top,fill:Tt[e].stroke,pointerEvents:"none",r:4,stroke:Tt[e].stroke,strokeWidth:2},e)}))]})]}),nt&&(0,B.jsxs)("div",{children:[at.map((function(t,e){var n=pt(nt,e);return e>=1&&Math.abs(at[e-1]-t)<5*F.iI&&(t+=3*F.iI),(0,B.jsxs)(j.Z,{left:it>kt?it-(0,_.Vs)($,nt,e)*F.iI:it+F.iI,style:H,top:t-2*F.iI,children:[$&&$(nt,e),!$&&(0,B.jsxs)(I.ZP,{center:!0,small:!0,children:[n.toFixed?n.toFixed(3):n," ",null===K||void 0===K?void 0:K[e]]})]},e)})),(0,B.jsxs)(j.Z,{left:it>kt?it-4*(0,_.Vs)(Q,nt):it,style:Y(Y({},H),{},{transform:"translateX(-65%)"}),top:jt+G.top,children:[Q&&Q(nt),!Q&&(0,B.jsx)(I.ZP,{center:!0,small:!0,children:ft(nt).toFixed(3)})]})]})]})}));e.Z=function(t){var e=t.areaBetweenLines,n=t.data,i=(t.events,t.height),o=t.lineLegendNames,a=t.margin,c=void 0===a?{}:a,u=t.width,d=t.xAxisLabel,s=t.xLabelFormat,h=t.yAxisLabel,f=t.yLabelFormat,p=(0,r.Z)(t,V),m=Y(Y({},{bottom:3*F.iI,left:5*F.iI,right:3*F.iI,top:3*F.iI}),c);return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)("div",{style:{display:"flex",height:i,marginBottom:F.iI,width:"100%"},children:[h&&(0,B.jsx)(A.ZP,{alignItems:"center",fullHeight:!0,justifyContent:"center",width:28,children:(0,B.jsx)(L.Z,{children:(0,B.jsx)(I.ZP,{center:!0,muted:!0,small:!0,children:h})})}),(0,B.jsx)("div",{style:{height:i,width:"undefined"===typeof u?"100%":u},children:(0,B.jsx)(l.Z,{children:function(t){var r=t.width,i=t.height;return(0,B.jsx)(J,Y(Y({},p),{},{areaBetweenLines:e,data:n,height:i,lineLegendNames:o,margin:m,width:r,xLabelFormat:s,yLabelFormat:f}))}})})]}),d&&(0,B.jsx)("div",{style:{paddingLeft:h?36:0,paddingTop:4},children:(0,B.jsx)(I.ZP,{center:!0,muted:!0,small:!0,children:d})})]})}},87862:function(t,e,n){n.d(e,{Z:function(){return A}});var r=n(26304),i=n(82394),o=n(75582),a=n(26226),l=n(28940),c=n(82684),u=n(29989),d=n(38626),s=n(11684),h=n(24903),f=n(30160),p=n(44897),m=n(95363),g=n(61896),x=n(70515),y=n(98684),v=n(28598),b=["height","width","xAxisLabel"];function j(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 k(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?j(Object(n),!0).forEach((function(e){(0,i.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Z={bottom:0,left:0,right:0,top:0},w=function(t){var e=t.endAngle;return{endAngle:e>Math.PI?2*Math.PI:0,opacity:0,startAngle:e>Math.PI?2*Math.PI:0}},O=function(t){var e=t.startAngle;return{endAngle:t.endAngle,opacity:1,startAngle:e}};function S(t){var e=t.animate,n=t.arcs,r=t.path,i=t.getKey,a=t.getColor,l=t.onClickDatum,c=t.textColor;return(0,s.useTransition)(n,{enter:O,from:e?w:O,keys:i,leave:e?w:O,update:O})((function(t,e,n){var u=n.key,d=r.centroid(e),h=(0,o.Z)(d,2),f=h[0],p=h[1],x=e.endAngle-e.startAngle>=.1;return(0,v.jsxs)("g",{children:[(0,v.jsx)(s.animated.path,{d:(0,s.to)([t.startAngle,t.endAngle],(function(t,n){return r(k(k({},e),{},{endAngle:n,startAngle:t}))})),fill:a(e),onClick:function(){return l(e)},onTouchStart:function(){return l(e)}}),x&&(0,v.jsx)(s.animated.g,{style:{opacity:t.opacity},children:(0,v.jsx)("text",{dy:".33em",fill:c,fontFamily:m.ry,fontSize:g.J5,pointerEvents:"none",textAnchor:"middle",x:f,y:p,children:i(e)})})]},u)}))}function P(t){var e=t.animate,n=void 0===e||e,r=t.data,i=t.getX,o=t.getY,a=t.height,s=t.margin,f=void 0===s?Z:s,m=t.textColor,g=t.width,b=(0,c.useState)(null),j=b[0],w=b[1],O=(0,c.useContext)(d.ThemeContext),P=m||(null===O||void 0===O?void 0:O.content.active)||p.Z.content.active;if(g<10)return null;var A=(0,h.Z)({domain:r.map((function(t){return i(t)})),range:(0,y.K)(O)}),I=g-f.left-f.right,L=a-f.top-f.bottom,T=Math.min(I,L)/2,C=L/2,M=I/2,D=Math.min(I/4,12*x.iI);return(0,v.jsx)("svg",{height:a,width:g,children:(0,v.jsx)(u.Z,{left:M+f.left,top:C+f.top,children:(0,v.jsx)(l.Z,{cornerRadius:x.iI/2,data:j?r.filter((function(t){return JSON.stringify(t)===JSON.stringify(j)})):r,innerRadius:Math.max(T-D,12.25),outerRadius:T,padAngle:.005,pieValue:o,children:function(t){return(0,v.jsx)(S,k(k({},t),{},{animate:n,getColor:function(t){var e=t.data;return A(i(e))},getKey:function(t){var e=t.data;return i(e)},onClickDatum:function(t){var e=t.data;return n&&w(j&&JSON.stringify(j)===JSON.stringify(e)?null:e)},textColor:P}))}})})})}function A(t){var e=t.height,n=t.width,i=t.xAxisLabel,o=(0,r.Z)(t,b),l={};return"undefined"!==typeof e&&(l.height=e),"undefined"!==typeof n&&(l.width=n),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{style:l,children:(0,v.jsx)(a.Z,{children:function(t){var e=t.width,n=t.height;return(0,v.jsx)(P,k(k({},o),{},{height:n,width:e}))}})}),i&&(0,v.jsx)("div",{style:{paddingTop:4},children:(0,v.jsx)(f.ZP,{center:!0,muted:!0,small:!0,children:i})})]})}},98684:function(t,e,n){n.d(e,{K:function(){return i}});var r=n(70987),i=function(t){var e=t||r.Z,n=e.brand,i=n.earth200,o=n.earth300,a=n.earth400,l=n.energy200,c=n.energy300,u=n.energy400,d=n.fire200,s=n.fire300,h=n.fire400,f=n.water200,p=n.water300,m=n.water400,g=n.wind200,x=n.wind300,y=n.wind400,v=e.chart;return[v.backgroundPrimary,v.backgroundSecondary,v.backgroundTertiary].concat([y,m,h,u,a,x,p,s,c,o,g,f,d,l,i])}},94035:function(t,e,n){var r=n(38626).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},79221:function(t,e,n){n.d(e,{P5:function(){return r},Vs:function(){return i}});n(81728);function r(t,e){var n=e||{},r=n.maxFractionDigits,i=n.minAmount,o=Intl.NumberFormat("en-US",{maximumFractionDigits:r||2,notation:"compact"});return"number"!==typeof t?t:t>=(i||1e4)?o.format(t):t.toString()}function i(t,e,n){var r,i;if("undefined"===typeof t||"undefined"===typeof e)return 0;var o=null===t||void 0===t||null===(r=t(e,n))||void 0===r||null===(i=r.props)||void 0===i?void 0:i.children;return(Array.isArray(o)?o:[o]).join("").length}},31882:function(t,e,n){var r=n(38626),i=n(71180),o=n(55485),a=n(30160),l=n(44897),c=n(72473),u=n(70515),d=n(61896),s=n(28598),h=r.default.div.withConfig({displayName:"Chip__ChipStyle",componentId:"sc-1ok73g-0"})(["display:inline-block;"," "," "," "," "," ",""],(function(t){return!t.primary&&"\n background-color: ".concat((t.theme.background||l.Z.background).tag,";\n ")}),(function(t){return t.primary&&"\n background-color: ".concat((t.theme.chart||l.Z.chart).primary,";\n ")}),(function(t){return!t.small&&"\n border-radius: ".concat((u.iI+d.Al)/2,"px;\n height: ").concat(1.5*u.iI+d.Al,"px;\n padding: ").concat(u.iI/1.5,"px ").concat(1.25*u.iI,"px;\n ")}),(function(t){return t.small&&"\n border-radius: ".concat((u.iI/2+d.Al)/2,"px;\n height: ").concat(d.Al+u.iI/2+2,"px;\n padding: ").concat(u.iI/4,"px ").concat(u.iI,"px;\n ")}),(function(t){return t.xsmall&&"\n border-radius: ".concat((u.iI/1+d.Al)/1,"px;\n height: ").concat(20,"px;\n padding: 4px 6px;\n ")}),(function(t){return t.border&&"\n border: 1px solid ".concat((t.theme.content||l.Z.content).muted,";\n ")}));e.Z=function(t){var e=t.border,n=t.children,r=t.disabled,l=t.label,d=t.monospace,f=t.onClick,p=t.primary,m=t.small,g=t.xsmall;return(0,s.jsx)(h,{border:e,primary:p,small:m,xsmall:g,children:(0,s.jsx)(i.ZP,{basic:!0,disabled:r,noBackground:!0,noPadding:!0,onClick:f,transparent:!0,children:(0,s.jsxs)(o.ZP,{alignItems:"center",children:[n,l&&(0,s.jsx)(a.ZP,{monospace:d,small:m,xsmall:g,children:l}),!r&&f&&(0,s.jsx)("div",{style:{marginLeft:2}}),!r&&f&&(0,s.jsx)(c.x8,{default:p,muted:!p,size:m?u.iI:1.25*u.iI})]})})})}},10305:function(t,e,n){var r=n(82684),i=n(55485),o=n(38276),a=n(28598);e.Z=function(t){var e=t.children,n=t.onChange,l=(0,r.useState)(r.Children.map(e,(function(){return null}))),c=l[0],u=l[1],d=(0,r.useState)(0),s=d[0],h=d[1];return(0,a.jsx)(i.ZP,{children:r.Children.map(e,(function(t,e){return(0,a.jsx)(o.Z,{ml:e>=1?1:0,style:{display:"flex",flex:1},children:r.cloneElement(t,{onChange:function(t){u((function(r){return r[e]=t.target.value,n(r,{resetValues:function(){return h((function(t){return t+1}))},setValues:u}),r}))},value:c[e]})},"multi-select-child-".concat(e,"-").concat(s))}))})}}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[976],{4006:function(t,e,n){n.d(e,{Z:function(){return dt}});var r=n(75582),i=n(82394),o=n(92083),a=n.n(o),l=n(26304),c=n(26226),u=n(84969),d=n(90948),s=n(65743),h=n(39048),f=n(79487),p=n(29989),m=n(61655),g=n(16853),x=n(65376),y=n(55485),v=n(30160),b=n(94035),j=n(95363),k=n(70515),Z=n(21831),w=n(82684),O=n(38626),S=n(48072),P=n(24903),A=n(98677),I=n(84181),L=n(44897),T=n(79633),C=n(61896),M=n(81728);function D(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 E(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?D(Object(n),!0).forEach((function(e){(0,i.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var F={bottom:k.iI*(3+k.cd),left:k.iI*k.cd,right:k.iI*k.cd,top:k.iI*k.cd};function N(t,e){return Math.max.apply(Math,(0,Z.Z)(t.map(e)))}function _(t){var e=t.data,n=t.height,r=t.keyForYData,i=t.large,o=t.margin,a=void 0===o?{}:o,l=t.orientationVertical,c=void 0!==l&&l,u=t.showTooltip,d=t.width,s=t.yLabelFormat,h=(0,w.useContext)(O.ThemeContext),f=(0,w.useCallback)((function(t){return t[r]}),[r]),p=s;p||(p=function(t){return t.length>20?"".concat(t.substring(0,20),"..."):t});var m=i?C.iD:C.J5,g=E(E({},F),a),x=e.slice(Math.max(0,e.length-50)),y=(0,w.useMemo)((function(){return Object.keys((null===x||void 0===x?void 0:x[0])||{}).filter((function(t){return t!==r}))}),[x,r]),v=(0,P.Z)({domain:y,range:[T.a$,T.Ej,T.hM,T.ZA,T.$R,T.X_,T.er,T.hl,T.nQ]}),b=(0,w.useMemo)((function(){return x.map(f)}),[x,f]),j=(0,A.Z)({domain:b,padding:.1}),k=(0,A.Z)({domain:y,padding:.1}),D=(0,I.Z)({domain:[0,N(x,(function(t){return N(y,(function(e){return Number(t[e])}))}))]}),_={active:(null===h||void 0===h?void 0:h.content.default)||L.Z.content.default,backgroundPrimary:(null===h||void 0===h?void 0:h.chart.backgroundPrimary)||L.Z.chart.backgroundPrimary,backgroundSecondary:(null===h||void 0===h?void 0:h.chart.backgroundSecondary)||L.Z.chart.backgroundSecondary,muted:(null===h||void 0===h?void 0:h.content.muted)||L.Z.content.muted,primary:(null===h||void 0===h?void 0:h.chart.primary)||L.Z.chart.primary,tooltipBackground:(null===h||void 0===h?void 0:h.background.navigation)||L.Z.background.navigation},R=b;c&&(R=x.reduce((function(t,e){return t.concat(y.map((function(t){var n=e[t];return(0,M.HW)(n)?parseInt(String(n)):n})))}),[]));var B=Math.min(Math.max.apply(Math,(0,Z.Z)(R.map((function(t){return String(t).length})))),20);g.left+=7*B;var V=d-(g.left+g.right),z=n-(g.top+g.bottom);c?(j.rangeRound([0,V]),D.rangeRound([z,0])):(j.rangeRound([z,0]),D.rangeRound([0,V])),k.rangeRound([0,j.bandwidth()]);var Y=x.map(f).length,H=0;c||(H=j(R[Y-1]));var J=(0,w.useCallback)((function(t){var e=(0,S.Z)(t)||{x:0,y:0},n=e.x,r=e.y,i=n-g.left,o=r-g.top,a=0;a=c?(i-H/2)/(V-H):1-(o-H/2)/(z-H);var l=Math.floor(a*Y),d=x[l];"undefined"===typeof d&&(d=x[l-1]),c?i>H&&i<V+g.left-H&&u({tooltipData:d,tooltipLeft:n,tooltipTop:r}):o>H&&o<z-H&&u({tooltipData:d,tooltipLeft:n,tooltipTop:r})}),[x,Y,g.left,g.top,c,u,H,V,z]);return{colorScale:v,colors:_,data:x,fontSize:m,handleTooltip:J,margin:g,tempScale:D,tickValues:R,xKeys:y,xMax:V,y1Scale:k,yLabelFormat:p,yMax:z,yScale:j,ySerialize:f}}var R=n(28598),B=["height","width","xAxisLabel","yAxisLabel"];function V(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 z(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?V(Object(n),!0).forEach((function(e){(0,i.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):V(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Y=3*k.iI,H=(k.iI,k.iI,k.iI,(0,m.Z)((function(t){var e=t.data,n=t.height,i=t.hideTooltip,o=t.keyForYData,a=void 0===o?"__y":o,l=t.large,c=t.margin,m=void 0===c?{}:c,y=t.renderNoDataText,b=t.renderTooltipContent,k=t.showTooltip,Z=t.tooltipData,w=t.tooltipLeft,O=t.tooltipOpen,S=t.tooltipTop,P=t.width,A=t.xAxisLabel,I=t.xNumTicks,L=t.yLabelFormat,T=_({data:e,height:n,keyForYData:a,large:l,margin:m,showTooltip:k,width:P,yLabelFormat:L}),C=T.colorScale,D=T.colors,E=T.data,F=T.fontSize,N=T.handleTooltip,B=T.margin,V=T.tempScale,H=T.tickValues,J=T.xKeys,W=T.xMax,X=T.y1Scale,K=T.yLabelFormat,G=T.yMax,U=T.yScale,q=T.ySerialize,Q=[];Math.min((null===H||void 0===H?void 0:H.length)||0,Math.floor(n/Y));return null===H||void 0===H||H.forEach((function(t){Q.push(t)})),P<10?null:(0,R.jsxs)("div",{children:[(0,R.jsxs)("svg",{height:n,width:P,children:[y&&!(null!==E&&void 0!==E&&E.length)&&(0,R.jsx)("text",{fill:D.active,dominantBaseline:"middle",textAnchor:"middle",fontFamily:j.ry,fontSize:F,x:"50%",y:"50%",children:y()}),(0,R.jsx)(s.Z,{fill:"transparent",height:n-(B.top+B.bottom),onMouseLeave:function(){return i()},onMouseMove:N,onTouchMove:N,onTouchStart:N,rx:14,width:P-(B.left+B.right),x:B.left,y:B.top}),(null===E||void 0===E?void 0:E.length)&&(0,R.jsxs)(p.Z,{left:B.left,top:B.top,children:[(0,R.jsx)(h.Z,{color:C,data:E,keys:J,width:W,xScale:V,y0:q,y0Scale:U,y1Scale:X,children:function(t){return t.map((function(t){return(0,R.jsx)(p.Z,{top:t.y0,children:t.bars.map((function(e){return(0,R.jsx)("g",{children:(0,R.jsx)(R.Fragment,{children:(0,R.jsx)("rect",{fill:e.color,height:e.height,pointerEvents:"none",rx:4,width:e.width,x:e.x,y:e.y})})},"".concat(t.index,"-").concat(e.index,"-").concat(e.key))}))},"bar-group-horizontal-".concat(t.index,"-").concat(t.y0))}))}}),(0,R.jsx)(u.Z,{hideTicks:!0,scale:U,stroke:D.muted,tickFormat:function(t){return K(t)},tickLabelProps:function(){return{fill:D.active,fontFamily:j.ry,fontSize:F,style:{width:"10px"},textAnchor:"end"}},tickStroke:D.muted,tickValues:Q,top:2}),(0,R.jsx)(d.Z,{label:A,labelProps:{fill:D.muted,fontFamily:j.ry,fontSize:F,textAnchor:"middle"},numTicks:I,scale:V,stroke:D.muted,tickLabelProps:function(){return{fill:D.active,fontFamily:j.ry,fontSize:F,textAnchor:"middle"}},tickStroke:D.muted,top:G})]}),Z&&(0,R.jsx)("g",{children:(0,R.jsx)(f.Z,{from:{x:B.left,y:S},pointerEvents:"none",stroke:D.active,strokeDasharray:"5,2",strokeWidth:1,to:{x:W+B.left,y:S}})})]}),O&&Z&&(0,R.jsxs)(g.Z,{left:w,style:z(z({},x.j),{},{backgroundColor:D.tooltipBackground}),top:S,children:[b&&b(Z),!b&&Object.entries(Z).map((function(t){var e=(0,r.Z)(t,2),n=e[0],i=e[1];if(a!==n){var o=i;return(0,M.HW)(o)&&String(o).split(".").length>=2&&(o=o.toFixed(4)),(0,R.jsxs)(v.ZP,{inverted:!0,small:!0,children:[n,": ",o]},n)}}))]})]})})));var J=function(t){var e,n=t.height,r=t.width,i=t.xAxisLabel,o=t.yAxisLabel,a=(0,l.Z)(t,B);return e="undefined"===typeof r?"100%":o?0===r?r:r-28:r,(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)("div",{style:{display:"flex",height:n,marginBottom:i?k.iI:null,width:"100%"},children:[o&&(0,R.jsx)(y.ZP,{alignItems:"center",fullHeight:!0,justifyContent:"center",width:28,children:(0,R.jsx)(b.Z,{children:(0,R.jsx)(v.ZP,{center:!0,muted:!0,small:!0,children:o})})}),(0,R.jsx)("div",{style:{height:n,width:e},children:(0,R.jsx)(c.Z,{children:function(t){var e=t.width,n=t.height;return(0,R.jsx)(H,z(z({},a),{},{height:n,width:e}))}})})]}),i&&(0,R.jsx)("div",{style:{paddingLeft:o?36:0,paddingTop:4},children:(0,R.jsx)(v.ZP,{center:!0,muted:!0,small:!0,children:i})})]})},W=n(95422),X=["keyForYData"],K=["height","width","xAxisLabel","yAxisLabel"];function G(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 U(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?G(Object(n),!0).forEach((function(e){(0,i.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var q=6*k.iI,Q=(0,m.Z)((function(t){var e=t.keyForYData,n=void 0===e?"__y":e,i=(0,l.Z)(t,X),o=i.height,a=i.hideTooltip,c=i.renderNoDataText,h=i.renderTooltipContent,m=i.tooltipData,y=i.tooltipLeft,b=i.tooltipOpen,k=i.tooltipTop,Z=i.width,w=i.xLabelFormat,O=i.xNumTicks,S=i.yNumTicks,P=_(U(U({},i),{},{keyForYData:n,orientationVertical:!0})),A=P.colorScale,I=P.colors,L=P.data,T=P.fontSize,C=P.handleTooltip,D=P.margin,E=P.tempScale,F=(P.tickValues,P.xKeys),N=(P.xMax,P.y1Scale),B=P.yLabelFormat,V=P.yMax,z=P.yScale,Y=P.ySerialize,H=Math.min(O,Z/q);return Z<10?null:(0,R.jsxs)("div",{children:[(0,R.jsxs)("svg",{height:o,width:Z,children:[c&&!(null!==L&&void 0!==L&&L.length)&&(0,R.jsx)("text",{fill:I.active,dominantBaseline:"middle",textAnchor:"middle",fontFamily:j.ry,fontSize:T,x:"50%",y:"50%",children:c()}),(null===L||void 0===L?void 0:L.length)&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(s.Z,{fill:"transparent",height:o-(D.top+D.bottom),onMouseLeave:function(){return a()},onMouseMove:C,onTouchMove:C,onTouchStart:C,rx:14,width:Z-(D.left+D.right),x:D.left,y:2*D.top}),(0,R.jsxs)(p.Z,{top:D.top,children:[(0,R.jsx)(W.Z,{color:A,data:L,height:V,keys:F,x0:Y,x0Scale:z,x1Scale:N,yScale:E,children:function(t){return t.map((function(t){return(0,R.jsx)(p.Z,{left:t.x0+D.left,top:D.top,children:t.bars.map((function(e){return(0,R.jsx)("g",{children:(0,R.jsx)("rect",{fill:e.color,height:e.height,pointerEvents:"none",rx:4,width:e.width,x:e.x,y:e.y})},"".concat(t.index,"-").concat(e.index,"-").concat(e.key))}))},"bar-group-horizontal-".concat(t.index,"-").concat(t.x0))}))}}),(0,R.jsx)(u.Z,{left:D.left,numTicks:S,scale:E,stroke:I.muted,tickFormat:function(t){return B(t)},tickLabelProps:function(){return{fill:I.active,fontFamily:j.ry,fontSize:T,textAnchor:"end",transform:"translate(-2,2.5)"}},tickStroke:I.muted,top:D.top}),(0,R.jsx)(d.Z,{hideTicks:!0,left:D.left,numTicks:H,scale:z,stroke:I.muted,tickFormat:w,tickLabelProps:function(){return{fill:I.active,fontFamily:j.ry,fontSize:T,textAnchor:"middle"}},tickStroke:I.muted,top:V+D.top})]})]}),m&&(0,R.jsx)("g",{children:(0,R.jsx)(f.Z,{from:{x:y,y:2*D.top},pointerEvents:"none",stroke:I.active,strokeDasharray:"5,2",strokeWidth:1,to:{x:y,y:V+2*D.top}})})]}),b&&m&&(0,R.jsxs)(g.Z,{left:y,style:U(U({},x.j),{},{backgroundColor:I.tooltipBackground}),top:k,children:[h&&h(m),!h&&Object.entries(m).map((function(t){var e=(0,r.Z)(t,2),i=e[0],o=e[1];if(n!==i){var a=o;return(0,M.HW)(a)&&String(a).split(".").length>=2&&(a=a.toFixed(4)),(0,R.jsxs)(v.ZP,{inverted:!0,small:!0,children:[i,": ",a]},i)}})),(0,R.jsx)("br",{}),(0,R.jsxs)(v.ZP,{inverted:!0,small:!0,children:[w&&w(Y(m)),!w&&Y(m)]})]})]})}));var $=function(t){var e=t.height,n=t.width,r=t.xAxisLabel,i=t.yAxisLabel,o=(0,l.Z)(t,K);return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)("div",{style:{display:"flex",height:e,marginBottom:r?k.iI:null,width:"100%"},children:[i&&(0,R.jsx)(y.ZP,{alignItems:"center",fullHeight:!0,justifyContent:"center",width:28,children:(0,R.jsx)(b.Z,{children:(0,R.jsx)(v.ZP,{center:!0,muted:!0,small:!0,children:i})})}),(0,R.jsx)("div",{style:{height:e,width:i?0===n?n:n-28:n},children:(0,R.jsx)(c.Z,{children:function(t){var e=t.height,n=t.width;return(0,R.jsx)(Q,U(U({},o),{},{height:e,width:n}))}})})]}),r&&(0,R.jsx)("div",{style:{paddingLeft:i?36:0,paddingTop:4},children:(0,R.jsx)(v.ZP,{center:!0,muted:!0,small:!0,children:r})})]})},tt=n(93859),et=n(52729),nt=n(74168),rt=n(87862),it=n(97301),ot=n(35058),at=n(3917),lt=n(86735);function ct(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 ut(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ct(Object(n),!0).forEach((function(e){(0,i.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ct(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var dt=function(t){var e,n=t.block,o=t.data,l=t.width,c=t.xAxisLabel,u=n.configuration,d=void 0===u?{}:u,s=d||{},h=s.chart_style,f=s.chart_type,p=s.y_sort_order,m=d[ot.JJ]||it.lA,g=(null===d||void 0===d||null===(e=d[ot.bE])||void 0===e?void 0:e.map((function(t){return(0,ot.c0)(t)})))||[],x=at.n1,y=d[ot.Yg];if([ot.aE.HOUR,ot.aE.MINUTE,ot.aE.SECOND].includes(y)&&(x=at.OC),ot.oV.BAR_CHART===f||ot.oV.TIME_SERIES_BAR_CHART===f){var b=o.x,j=o.y,Z=ot.oV.TIME_SERIES_BAR_CHART===f;if(b&&j&&Array.isArray(b)&&Array.isArray(j)){var w,O=null===(w=d[ot.eN])||void 0===w?void 0:w.join(", "),S=null===g||void 0===g?void 0:g.join(", ");g.length||g.push(ot.rj);var P=g[0],A=b.map((function(t,e){return ut({__y:t},g.reduce((function(t,n,r){var o,a=null===j||void 0===j||null===(o=j[r])||void 0===o?void 0:o[e];return"undefined"===typeof a?t:ut(ut({},t),{},(0,i.Z)({},n,a))}),{}))}));ot.JT.HORIZONTAL===h?ot.MP.ASCENDING===p?A=(0,lt.YC)(A,(function(t){return t[P]}),{ascending:!1}):ot.MP.DESCENDING===p&&(A=(0,lt.YC)(A,(function(t){return t[P]}),{ascending:!0})):ot.JT.VERTICAL===h&&(ot.MP.ASCENDING===p?A=(0,lt.YC)(A,(function(t){return t[P]}),{ascending:!0}):ot.MP.DESCENDING===p&&(A=(0,lt.YC)(A,(function(t){return t[P]}),{ascending:!1})));var I={data:A,height:m,renderNoDataText:function(){return"No data matching query"},width:l,xNumTicks:3};return ot.JT.HORIZONTAL===h?(0,R.jsx)(J,ut(ut({},I),{},{xAxisLabel:S||d[ot.rj],yAxisLabel:c||O||d[ot.a3]})):(0,R.jsx)($,ut(ut({},I),{},{xAxisLabel:c||O,xLabelFormat:function(t){return Z?a()(1e3*t).format(at.n1):t},xNumTicks:A.length,yAxisLabel:S,yNumTicks:5}))}}else if(ot.oV.HISTOGRAM===f){var L,T=o.x,C=o.y,D=null===(L=d[ot.eN])||void 0===L?void 0:L.join(", ");if(T&&C&&Array.isArray(T))return(0,R.jsx)(et.Z,{data:T.map((function(t,e){var n,r=t.max,i=t.min;return[r,null===C||void 0===C||null===(n=C[e])||void 0===n?void 0:n.value,i]})),height:m,width:l,large:!0,margin:{left:5*k.iI,right:1*k.iI,top:3*k.iI},noPadding:!0,renderTooltipContent:function(t){var e=(0,r.Z)(t,3),n=e[0],i=e[1],o=e[2];return(0,R.jsxs)(v.ZP,{inverted:!0,monospace:!0,small:!0,children:["Count : ",i,(0,R.jsx)("br",{}),"Bucket: ",o,"-",n]})},showAxisLabels:!0,showYAxisLabels:!0,showZeroes:!0,sortData:function(t){return(0,lt.YC)(t,"[0]")},xAxisLabel:c||D||d[ot.a3],yAxisLabel:D?"count(".concat(D,")"):d[ot.rj]})}else if(ot.oV.LINE_CHART===f||ot.oV.TIME_SERIES_LINE_CHART===f){var E=o.x,F=o.y,N=ot.oV.TIME_SERIES_LINE_CHART===f;if(E&&F&&Array.isArray(E)&&Array.isArray(F)&&Array.isArray(null===F||void 0===F?void 0:F[0])){var _,B=g;d[ot.e]&&(B=d[ot.e].split(",").map((function(t){return t.trim()})));var V=E.map((function(t,e){return{x:t,y:(0,lt.w6)(F.length).map((function(t,n){var r=F[n][e];return"undefined"===typeof r||null===r?0:r}))}})),z=null===(_=d[ot.eN])||void 0===_?void 0:_.join(", "),Y=g.join(", ");return(0,R.jsx)(nt.Z,{data:V,height:m,lineLegendNames:B,margin:{bottom:8*k.iI,left:5*k.iI},noCurve:!0,renderXTooltipContent:function(t){t.index;var e=t.x,n=d[ot.a3],r=e;return d[ot.eN]&&(n=d[ot.eN].map(String).join(", ")),N&&(r=a()(1e3*e).format(x)),(0,R.jsxs)(v.ZP,{inverted:!0,small:!0,children:[n,": ",r]})},renderYTooltipContent:function(t,e){var n=t.y;return(0,R.jsxs)(v.ZP,{inverted:!0,small:!0,children:[B&&B[e]&&"".concat(B[e],": "),n&&(0,M.x6)((0,M.QV)(n[e],4))]})},width:l?l-(3*k.iI+3):l,xAxisLabel:c||z||String(d[ot.a3]||""),xLabelFormat:function(t){return N?a()(1e3*t).format(at.n1):t},yAxisLabel:Y||String(d[ot.rj]),yLabelFormat:function(t){return t}})}}else if(ot.oV.PIE_CHART===f){var H,W=o[String(d[ot.a3]||ot.a3)],X=null===(H=d[ot.eN])||void 0===H?void 0:H.join(", ");if(W)return(0,R.jsx)(rt.Z,{data:Object.entries(W),getX:function(t){var e=(0,r.Z)(t,2),n=e[0],i=e[1];return"".concat(n," (").concat((0,M.x6)(i),")")},getY:function(t){return(0,r.Z)(t,2)[1]},height:m,width:l,xAxisLabel:c||X||String(d[ot.a3]||"")})}else if(ot.oV.TABLE===f){var K=o.index,G=o.x,U=o.y;return Array.isArray(G)&&Array.isArray(U)&&Array.isArray(U[0])&&(0,R.jsx)(tt.Z,{columns:G,height:d[ot.JJ]?null:m,index:K,maxHeight:d[ot.JJ]?m:null,noBorderBottom:!0,noBorderLeft:!0,noBorderRight:!0,noBorderTop:!0,rows:U,width:l})}return(0,R.jsx)("div",{})}},97301:function(t,e,n){n.d(e,{T7:function(){return d},Tb:function(){return u},lA:function(){return l},pM:function(){return c},y9:function(){return s}});var r=n(38626),i=n(44897),o=n(42631),a=n(70515),l=40*a.iI,c=r.default.div.withConfig({displayName:"indexstyle__ChartBlockStyle",componentId:"sc-1c3ufnj-0"})(["border-radius:","px;margin-left:","px;margin-right:","px;margin-top:","px;",""],o.n_,.5*a.iI,.5*a.iI,1*a.iI,(function(t){return"\n background-color: ".concat((t.theme.background||i.Z.background).codeArea,";\n ")})),u=r.default.div.withConfig({displayName:"indexstyle__ConfigurationOptionsStyle",componentId:"sc-1c3ufnj-1"})(["flex:4;padding-left:","px;padding-right:","px;"],1*a.iI,1*a.iI),d=r.default.div.withConfig({displayName:"indexstyle__CodeStyle",componentId:"sc-1c3ufnj-2"})(["padding-top:","px;",""],a.iI/2,(function(t){return"\n background-color: ".concat((t.theme.background||i.Z.background).codeTextarea,";\n ")})),s=r.default.div.withConfig({displayName:"indexstyle__CodeHelperStyle",componentId:"sc-1c3ufnj-3"})(["margin-bottom:","px;padding-bottom:","px;padding-left:","px;",""],a.cd*a.iI,a.iI,a.iI,(function(t){return"\n border-bottom: 1px solid ".concat((t.theme.borders||i.Z.borders).medium,";\n ")}))},52729:function(t,e,n){n.d(e,{Z:function(){return V}});var r=n(26304),i=n(21831),o=n(82394),a=n(82684),l=n(26226),c=n(84969),u=n(90948),d=n(65743),s=n(29989),h=n(38626),f=n(61655),p=n(16853),m=n(65376),g=n(48072),x=n(98677),y=n(84181),v=n(55485),b=n(4190),j=n(30160),k=n(94035),Z=n(70987),w=n(79633),O=n(89370),S=n(95363),P=n(61896),A=n(70515),I=n(88543),L=n(6568),T=function(t){return t.slice(0,10)},C=function(t,e){var n=t.toISOString().slice(0,10),r=e.toISOString().slice(0,10);return"".concat(n,":").concat(r)},M=n(79221),D=n(98684),E=n(28598),F=["height","loading","selected","width","xAxisLabel","yAxisLabel"];function N(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 _(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?N(Object(n),!0).forEach((function(e){(0,o.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var R={bottom:A.iI,left:3*A.iI,right:0,top:1*A.iI},B=(0,f.Z)((function(t){var e=t.columnType,n=t.data,r=void 0===n?[]:n,o=t.getBarColor,l=t.getXValue,f=t.getYValue,v=t.height,b=t.hideTooltip,k=t.large,F=t.margin,N=void 0===F?{}:F,B=t.muted,V=t.noPadding,z=t.numberOfXTicks,Y=t.renderTooltipContent,H=t.selected,J=t.showAxisLabels,W=t.showTooltip,X=t.showYAxisLabels,K=t.showZeroes,G=t.sortData,U=t.tooltipData,q=t.tooltipLeft,Q=t.tooltipOpen,$=t.tooltipTop,tt=t.width,et=t.xLabelFormat,nt=t.yLabelFormat,rt=k?P.J5:P.VK,it=(0,a.useCallback)((function(t){return l?l(t):t[0]}),[l]),ot=(0,a.useCallback)((function(t){return f?f(t):t[1]}),[f]),at=(0,a.useContext)(h.ThemeContext),lt=e===O.RL.DATETIME,ct=_(_({},R),N);J&&(ct=_(_({},ct),{},{left:ct.left+A.iI}));var ut=G?G(r):r.sort((function(t,e){return e[1]-t[1]})),dt=lt?r.sort((function(t,e){return new Date(t[0])-new Date(e[0])})).filter((function(t){return!!t[0]})):ut.slice(0,60),st=tt-(ct.left+ct.right),ht=v-(ct.bottom+ct.top),ft=lt?function(t,e){var n,r=t.map((function(t){return new Date(t[0])})).sort((function(t,e){return t-e}));return(0,L.Z)({domain:(n=r,[(0,I.Z)(n[0]),(0,I.Z)(n[n.length-1])]),nice:!0,range:[0,e]})}(dt,st):null,pt=function(t,e){if(null===e)return{};var n=e.ticks().map((function(t){return t.toISOString()})),r={},i=0,o=1;return t.forEach((function(t){var e=new Date(t[0]),a=t[1],l=n[i],c=n[o];if(l&&c){var u=new Date(l),d=new Date(c),s=C(u,d);if(e>=u&&e<d)r[s]=(r[s]||0)+a;else for(;o<n.length||!r[s];)if(i+=1,o+=1,u=new Date(n[i]),d=new Date(n[o]),s=C(u,d),e>=u&&e<d)return void(r[s]=(r[s]||0)+a)}})),n.reduce((function(t,e,n,r){if(0===n)return t;var i=T(e),o=T(r[n-1]);return t.push("".concat(o,":").concat(i)),t}),[]).forEach((function(t){r[t]=r[t]||0})),r}(dt,ft);dt=ft?Object.entries(pt).sort((function(t,e){return new Date(T(t[0]))-new Date(T(e[0]))})):dt;var mt=ft?Math.max.apply(Math,(0,i.Z)(Object.values(pt))):0,gt=dt.reduce((function(t,e){return(0!==ot(e)||lt||K)&&t.push(it(e)),t}),[]),xt=gt.length,yt=function(t,e,n){return n?.05:t>=30&&e<300?.5:t>=15?.3:t>=5?.1:t>2?.05:2===t?.025:0}(xt,tt,lt),vt=(0,x.Z)({domain:gt,paddingInner:V?null:yt,range:[0,st],round:!1}),bt=(0,y.Z)({domain:[0,Math.max.apply(Math,(0,i.Z)(dt.map(ot)))],range:[ht,0],round:!0}),jt=(0,D.K)(at),kt={active:((null===at||void 0===at?void 0:at.content)||Z.Z.content).active,default:jt[0],muted:((null===at||void 0===at?void 0:at.monotone)||Z.Z.monotone).gray,selected:((null===at||void 0===at?void 0:at.elevation)||Z.Z.elevation).visualizationAccent},Zt=kt.default;B?Zt=kt.muted:H&&(Zt=kt.selected);var wt=xt?lt?mt:Math.max.apply(Math,(0,i.Z)(dt.map((function(t){return ot(t)})))):0,Ot=Math.floor(wt/6),St=[0],Pt=0;if(wt>6)for(;Pt<wt;)St.push(Pt+Ot),Pt+=Ot;else for(;Pt<=wt;)St.push(Pt+1),Pt+=1;wt>9999?ct=_(_({},ct),{},{left:k?8*A.iI:4.1*A.iI}):wt>999&&(ct=_(_({},ct),{},{left:k?5*A.iI:3.6*A.iI}));var At=lt?2.25:0,It=xt<10||e===O.RL.NUMBER||e===O.RL.NUMBER_WITH_DECIMALS||lt||X,Lt=(0,a.useCallback)((function(t){var e=(0,g.Z)(t)||{x:0,y:0},n=e.x,r=e.y,i=(n-(J?ct.left:0))/st,o=Math.floor(xt*i),a=dt[o];"undefined"===typeof a&&(a=dt[0]);var l=it(a);l=l.length>15?"".concat(l.slice(0,21)):l;var c=Y?Y(a):"".concat(l," (").concat(ot(a),")");W({tooltipData:c,tooltipLeft:n-ct.left,tooltipTop:r+ct.top})}),[dt,xt,it,ot,ct.left,ct.top,Y,J,W,tt]);return tt<10||!r.length?null:(0,E.jsxs)("div",{children:[(0,E.jsxs)("svg",{height:v+ct.bottom*(lt?7.5:3),width:tt,children:[(0,E.jsx)(s.Z,{left:J?ct.left:0,top:ct.top+At,children:dt.reduce((function(t,e){var n=it(e),r=ot(e);if(0!==r){var i,a=vt.bandwidth(),l=ht-(null!==(i=bt(r))&&void 0!==i?i:0),c=vt(n),u=ht-l;t.push((0,E.jsx)(d.Z,{fill:o?o(e):Zt,height:l,onMouseLeave:function(){return b()},onMouseMove:Lt,onTouchMove:Lt,onTouchStart:Lt,width:a,x:c,y:u},"bar-".concat(n)))}return t}),[])}),J&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(c.Z,{left:ct.left,scale:bt,stroke:kt.muted,tickFormat:function(t){return nt?nt(t):(0,M.P5)(t)},tickLabelProps:function(){return{fill:kt.active,fontFamily:S.ry,fontSize:rt,textAnchor:"end",transform:"translate(-2,2.5)"}},tickStroke:kt.muted,tickValues:St,top:ct.top+At}),(0,E.jsx)(u.Z,{left:ct.left,numTicks:lt?void 0:z||6,orientation:"top",scale:ft||vt,stroke:kt.muted,tickFormat:function(t){return et?et(String(t)):lt?t.toISOString().slice(0,10):String(t)},tickLabelProps:function(t){return{fill:It?kt.active:"transparent",fontFamily:S.ry,fontSize:rt,textAnchor:"middle",transform:lt?"rotate(-90,".concat(ft(t),",0) translate(-33,10)"):"translate(0, ".concat(3*ct.bottom,")")}},tickLineProps:{transform:"translate(0,".concat(A.iI,")")},tickStroke:It?kt.muted:"transparent",top:ht+ct.top+At})]})]}),Q&&U&&(0,E.jsx)(p.Z,{left:q,style:m.j,top:$,children:(0,E.jsx)(j.ZP,{color:w.E5,small:!0,children:U})})]})}));var V=function(t){var e=t.height,n=t.loading,i=t.selected,o=t.width,a=t.xAxisLabel,c=t.yAxisLabel,u=(0,r.Z)(t,F);return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)("div",{style:{display:"flex",height:e,marginBottom:A.iI,width:"100%"},children:[c&&(0,E.jsx)(v.ZP,{alignItems:"center",fullHeight:!0,justifyContent:"center",width:28,children:(0,E.jsx)(k.Z,{children:(0,E.jsx)(j.ZP,{center:!0,muted:!0,small:!0,children:c})})}),(0,E.jsxs)("div",{style:{height:e,width:c?0===o?o:o-28:o},children:[n&&(0,E.jsx)(b.Z,{}),!n&&(0,E.jsx)(l.Z,{children:function(t){var e=t.height,n=t.width;return(0,E.jsx)(B,_(_({},u),{},{height:e,selected:i,width:n}))}})]})]}),a&&(0,E.jsx)("div",{style:{paddingLeft:c?36:0,paddingTop:4},children:(0,E.jsx)(j.ZP,{center:!0,muted:!0,small:!0,children:a})})]})}},74168:function(t,e,n){var r=n(26304),i=n(21831),o=n(82394),a=n(82684),l=n(26226),c=n(38626),u=n(90948),d=n(84969),s=n(65743),h=n(85587),f=n(79487),p=n(52136),m=n(67778),g=n(29989),x=n(17066),y=n(84482),v=n(76771),b=n(98889),j=n(65376),k=n(61655),Z=n(97745),w=n(48072),O=n(10103),S=n(84181),P=n(24903),A=n(55485),I=n(30160),L=n(94035),T=n(44897),C=n(8454),M=n(79633),D=n(95363),E=n(61896),F=n(70515),N=n(86735),_=n(79221),R=n(98684),B=n(28598),V=["areaBetweenLines","data","events","height","lineLegendNames","margin","width","xAxisLabel","xLabelFormat","yAxisLabel","yLabelFormat"];function z(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 Y(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?z(Object(n),!0).forEach((function(e){(0,o.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var H=Y(Y({},j.j),{},{backgroundColor:T.Z.background.muted,border:"none"}),J=(0,k.Z)((function(t){var e=t.areaBetweenLines,n=t.data,r=t.events,o=void 0!==r&&r,l=t.getX,k=t.getY,A=t.getYScaleValues,L=t.gridProps,V=void 0===L?{}:L,z=t.height,J=t.hideGridX,W=t.hideTooltip,X=t.increasedXTicks,K=t.lineLegendNames,G=t.margin,U=t.noCurve,q=t.numYTicks,Q=t.renderXTooltipContent,$=t.renderYTooltipContent,tt=t.showTooltip,et=t.thickStroke,nt=t.tooltipData,rt=t.tooltipLeft,it=void 0===rt?0:rt,ot=t.tooltipTop,at=void 0===ot?[]:ot,lt=t.width,ct=t.xLabelFormat,ut=t.xLabelRotate,dt=void 0===ut||ut,st=t.yLabelFormat,ht=(0,a.useContext)(c.ThemeContext),ft=l||function(t){return null===t||void 0===t?void 0:t.x},pt=k||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]},mt=T.Z.monotone.gray,gt=T.Z.brand.wind200,xt=T.Z.content.muted,yt=T.Z.monotone.gray,vt=n.map((function(t){return Number(ft(t))}));if(lt<10)return null;var bt=lt-G.left-G.right,jt=z-G.top-G.bottom,kt=bt/2,Zt=0===n.length?0: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})))),wt=(0,a.useMemo)((function(){return(0,S.Z)({domain:[Math.min.apply(Math,(0,i.Z)(vt)),Math.max.apply(Math,(0,i.Z)(vt))],range:[0,bt]})}),[bt,vt]),Ot=Math.min.apply(Math,(0,i.Z)(n.map((function(t){var e=t.y;return Math.min.apply(Math,(0,i.Z)(A?A(e):e||[]))})))),St=Math.max.apply(Math,(0,i.Z)(n.map((function(t){var e=t.y;return Math.max.apply(Math,(0,i.Z)(A?A(e):e||[]))})))),Pt=(0,a.useMemo)((function(){return(0,S.Z)({domain:[Ot,St],nice:!0,range:[jt,0]})}),[jt,St,Ot]),At=lt>520?X?20:10:X?10:5,It=(0,R.K)(ht),Lt=xt,Tt=It.map((function(t){return{stroke:t}})),Ct=(0,P.Z)({domain:K||[],range:Tt.map((function(t){return t.stroke}))}),Mt=(0,a.useCallback)((function(t){var e=((0,w.Z)(t)||{x:0}).x,r=wt.invert(e-G.left),i=(0,N.ry)(vt,(function(t){return r>=t})),o=n[i-1],a=n[i],l=o;a&&(r-ft(o)>ft(a)-r?l=a:(l=o,i-=1));var c=(0,O.range)(0,Zt).map((function(t){return Pt(pt(l,t))})),u=c.some((function(t){return"undefined"===typeof t}));(pt(l)||A&&!u)&&tt({tooltipData:Y(Y({},l),{},{index:i}),tooltipLeft:e,tooltipTop:c})}),[n,ft,pt,A,G,tt,wt,vt,Pt]),Dt={};return U||(Dt.curve=Z.ZP),(0,B.jsxs)(B.Fragment,{children:[K&&(0,B.jsx)("div",{style:{marginLeft:null===G||void 0===G?void 0:G.left},children:(0,B.jsx)(x.Z,{labelFormat:function(t){return t},scale:Ct,children:function(t){return(0,B.jsx)("div",{style:{display:"flex",flexDirection:C.qs.ROW},children:t.map((function(t,e){return(0,B.jsxs)(y.Z,{margin:"0 5px",onClick:function(){o&&alert("clicked: ".concat(JSON.stringify(t)))},children:[(0,B.jsx)("svg",{height:15,width:15,children:(0,B.jsx)("rect",{fill:t.value,height:15,width:15})}),(0,B.jsx)(v.Z,{align:"left",margin:"0 0 0 4px",children:(0,B.jsx)(I.ZP,{small:!0,children:t.text})})]},"legend-quantile-".concat(e))}))})}})}),(0,B.jsxs)("svg",{height:z,width:lt,children:[!e&&(0,B.jsx)(s.Z,{fill:"transparent",height:z,onMouseLeave:function(){return W()},onMouseMove:Mt,onTouchMove:Mt,onTouchStart:Mt,rx:14,width:lt-(G.left+G.right),x:G.left,y:0}),(0,B.jsxs)(g.Z,{left:G.left,top:G.top,children:[!J&&(0,B.jsx)(p.Z,Y({height:jt,pointerEvents:"none",scale:wt,stroke:mt,strokeDasharray:"3,3",strokeOpacity:.4,width:bt},V)),(0,B.jsx)(m.Z,Y({height:jt,pointerEvents:"none",scale:Pt,stroke:mt,strokeDasharray:"3,3",strokeOpacity:.4,width:bt},V)),(0,B.jsx)("line",{stroke:mt,x1:bt,x2:bt,y1:0,y2:jt}),(0,B.jsx)(u.Z,{numTicks:At,scale:wt,stroke:Lt,tickFormat:function(t){return ct?ct(t):t},tickLabelProps:function(t){return{fill:xt,fontFamily:D.ry,fontSize:E.J5,textAnchor:"middle",transform:dt&&"rotate(-45, ".concat(wt(t),", 0) translate(-32, 4)")}},tickStroke:Lt,top:jt}),(0,B.jsx)(d.Z,{hideTicks:!0,numTicks:q,scale:Pt,stroke:Lt,tickFormat:function(t){return st?st(t):(0,_.P5)(t)},tickLabelProps:function(t){return{dx:String(t).length>4?3:0,fill:xt,fontFamily:D.ry,fontSize:E.J5,textAnchor:"end",transform:"translate(0,2.5)"}},tickStroke:Lt}),e&&e.map((function(t){var e=t[0],r=t[1];return(0,a.createElement)(b.Z,Y(Y({},Dt),{},{aboveAreaProps:{fill:T.Z.brand.earth400,fillOpacity:.3},belowAreaProps:{fill:gt,fillOpacity:.2},clipAboveTo:0,clipBelowTo:jt,data:n,id:"".concat(Math.random()),key:"".concat(e,"-").concat(r),x:function(t){return wt(ft(t))},y0:function(t){return Pt("undefined"===typeof r?Ot:pt(t,r))},y1:function(t){return Pt(pt(t,e))}}))})),(0,O.range)(0,Zt).map((function(t){return(0,a.createElement)(h.Z,Y(Y({},Dt),{},{data:n.filter((function(t){return void 0!=t.y})),key:t,pointerEvents:"none",strokeWidth:et?2:1,x:function(t){return wt(ft(t))},y:function(e){return Pt(e.y&&(t>=e.y.length?Ot:pt(e,t)))}},Tt[t]))}))]}),nt&&(0,B.jsxs)("g",{children:[(0,B.jsx)(f.Z,{from:{x:it,y:G.top},pointerEvents:"none",stroke:M.Ej,strokeDasharray:"5,2",strokeWidth:1,to:{x:it,y:jt+G.top}}),at.map((function(t,e){return(0,B.jsx)("circle",{cx:it,cy:t+1+G.top,fill:Tt[e].stroke,fillOpacity:.1,pointerEvents:"none",r:4,stroke:yt,strokeOpacity:.1,strokeWidth:1},e)})),at.map((function(t,e){return(0,B.jsx)("circle",{cx:it,cy:t+G.top,fill:Tt[e].stroke,pointerEvents:"none",r:4,stroke:Tt[e].stroke,strokeWidth:2},e)}))]})]}),nt&&(0,B.jsxs)("div",{children:[at.map((function(t,e){var n=pt(nt,e);return e>=1&&Math.abs(at[e-1]-t)<5*F.iI&&(t+=3*F.iI),(0,B.jsxs)(j.Z,{left:it>kt?it-(0,_.Vs)($,nt,e)*F.iI:it+F.iI,style:H,top:t-2*F.iI,children:[$&&$(nt,e),!$&&(0,B.jsxs)(I.ZP,{center:!0,small:!0,children:[n.toFixed?n.toFixed(3):n," ",null===K||void 0===K?void 0:K[e]]})]},e)})),(0,B.jsxs)(j.Z,{left:it>kt?it-4*(0,_.Vs)(Q,nt):it,style:Y(Y({},H),{},{transform:"translateX(-65%)"}),top:jt+G.top,children:[Q&&Q(nt),!Q&&(0,B.jsx)(I.ZP,{center:!0,small:!0,children:ft(nt).toFixed(3)})]})]})]})}));e.Z=function(t){var e=t.areaBetweenLines,n=t.data,i=(t.events,t.height),o=t.lineLegendNames,a=t.margin,c=void 0===a?{}:a,u=t.width,d=t.xAxisLabel,s=t.xLabelFormat,h=t.yAxisLabel,f=t.yLabelFormat,p=(0,r.Z)(t,V),m=Y(Y({},{bottom:3*F.iI,left:5*F.iI,right:3*F.iI,top:3*F.iI}),c);return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)("div",{style:{display:"flex",height:i,marginBottom:F.iI,width:"100%"},children:[h&&(0,B.jsx)(A.ZP,{alignItems:"center",fullHeight:!0,justifyContent:"center",width:28,children:(0,B.jsx)(L.Z,{children:(0,B.jsx)(I.ZP,{center:!0,muted:!0,small:!0,children:h})})}),(0,B.jsx)("div",{style:{height:i,width:"undefined"===typeof u?"100%":u},children:(0,B.jsx)(l.Z,{children:function(t){var r=t.width,i=t.height;return(0,B.jsx)(J,Y(Y({},p),{},{areaBetweenLines:e,data:n,height:i,lineLegendNames:o,margin:m,width:r,xLabelFormat:s,yLabelFormat:f}))}})})]}),d&&(0,B.jsx)("div",{style:{paddingLeft:h?36:0,paddingTop:4},children:(0,B.jsx)(I.ZP,{center:!0,muted:!0,small:!0,children:d})})]})}},87862:function(t,e,n){n.d(e,{Z:function(){return A}});var r=n(26304),i=n(82394),o=n(75582),a=n(26226),l=n(28940),c=n(82684),u=n(29989),d=n(38626),s=n(11684),h=n(24903),f=n(30160),p=n(44897),m=n(95363),g=n(61896),x=n(70515),y=n(98684),v=n(28598),b=["height","width","xAxisLabel"];function j(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 k(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?j(Object(n),!0).forEach((function(e){(0,i.Z)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var Z={bottom:0,left:0,right:0,top:0},w=function(t){var e=t.endAngle;return{endAngle:e>Math.PI?2*Math.PI:0,opacity:0,startAngle:e>Math.PI?2*Math.PI:0}},O=function(t){var e=t.startAngle;return{endAngle:t.endAngle,opacity:1,startAngle:e}};function S(t){var e=t.animate,n=t.arcs,r=t.path,i=t.getKey,a=t.getColor,l=t.onClickDatum,c=t.textColor;return(0,s.useTransition)(n,{enter:O,from:e?w:O,keys:i,leave:e?w:O,update:O})((function(t,e,n){var u=n.key,d=r.centroid(e),h=(0,o.Z)(d,2),f=h[0],p=h[1],x=e.endAngle-e.startAngle>=.1;return(0,v.jsxs)("g",{children:[(0,v.jsx)(s.animated.path,{d:(0,s.to)([t.startAngle,t.endAngle],(function(t,n){return r(k(k({},e),{},{endAngle:n,startAngle:t}))})),fill:a(e),onClick:function(){return l(e)},onTouchStart:function(){return l(e)}}),x&&(0,v.jsx)(s.animated.g,{style:{opacity:t.opacity},children:(0,v.jsx)("text",{dy:".33em",fill:c,fontFamily:m.ry,fontSize:g.J5,pointerEvents:"none",textAnchor:"middle",x:f,y:p,children:i(e)})})]},u)}))}function P(t){var e=t.animate,n=void 0===e||e,r=t.data,i=t.getX,o=t.getY,a=t.height,s=t.margin,f=void 0===s?Z:s,m=t.textColor,g=t.width,b=(0,c.useState)(null),j=b[0],w=b[1],O=(0,c.useContext)(d.ThemeContext),P=m||(null===O||void 0===O?void 0:O.content.active)||p.Z.content.active;if(g<10)return null;var A=(0,h.Z)({domain:r.map((function(t){return i(t)})),range:(0,y.K)(O)}),I=g-f.left-f.right,L=a-f.top-f.bottom,T=Math.min(I,L)/2,C=L/2,M=I/2,D=Math.min(I/4,12*x.iI);return(0,v.jsx)("svg",{height:a,width:g,children:(0,v.jsx)(u.Z,{left:M+f.left,top:C+f.top,children:(0,v.jsx)(l.Z,{cornerRadius:x.iI/2,data:j?r.filter((function(t){return JSON.stringify(t)===JSON.stringify(j)})):r,innerRadius:Math.max(T-D,12.25),outerRadius:T,padAngle:.005,pieValue:o,children:function(t){return(0,v.jsx)(S,k(k({},t),{},{animate:n,getColor:function(t){var e=t.data;return A(i(e))},getKey:function(t){var e=t.data;return i(e)},onClickDatum:function(t){var e=t.data;return n&&w(j&&JSON.stringify(j)===JSON.stringify(e)?null:e)},textColor:P}))}})})})}function A(t){var e=t.height,n=t.width,i=t.xAxisLabel,o=(0,r.Z)(t,b),l={};return"undefined"!==typeof e&&(l.height=e),"undefined"!==typeof n&&(l.width=n),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{style:l,children:(0,v.jsx)(a.Z,{children:function(t){var e=t.width,n=t.height;return(0,v.jsx)(P,k(k({},o),{},{height:n,width:e}))}})}),i&&(0,v.jsx)("div",{style:{paddingTop:4},children:(0,v.jsx)(f.ZP,{center:!0,muted:!0,small:!0,children:i})})]})}},98684:function(t,e,n){n.d(e,{K:function(){return i}});var r=n(70987),i=function(t){var e=t||r.Z,n=e.brand,i=n.earth200,o=n.earth300,a=n.earth400,l=n.energy200,c=n.energy300,u=n.energy400,d=n.fire200,s=n.fire300,h=n.fire400,f=n.water200,p=n.water300,m=n.water400,g=n.wind200,x=n.wind300,y=n.wind400,v=e.chart;return[v.backgroundPrimary,v.backgroundSecondary,v.backgroundTertiary].concat([y,m,h,u,a,x,p,s,c,o,g,f,d,l,i])}},94035:function(t,e,n){var r=n(38626).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},79221:function(t,e,n){n.d(e,{P5:function(){return r},Vs:function(){return i}});n(81728);function r(t,e){var n=e||{},r=n.maxFractionDigits,i=n.minAmount,o=Intl.NumberFormat("en-US",{maximumFractionDigits:r||2,notation:"compact"});return"number"!==typeof t?t:t>=(i||1e4)?o.format(t):t.toString()}function i(t,e,n){var r,i;if("undefined"===typeof t||"undefined"===typeof e)return 0;var o=null===t||void 0===t||null===(r=t(e,n))||void 0===r||null===(i=r.props)||void 0===i?void 0:i.children;return(Array.isArray(o)?o:[o]).join("").length}},31882:function(t,e,n){var r=n(38626),i=n(71180),o=n(55485),a=n(30160),l=n(44897),c=n(72473),u=n(70515),d=n(61896),s=n(28598),h=r.default.div.withConfig({displayName:"Chip__ChipStyle",componentId:"sc-1ok73g-0"})(["display:inline-block;"," "," "," "," "," ",""],(function(t){return!t.primary&&"\n background-color: ".concat((t.theme.background||l.Z.background).tag,";\n ")}),(function(t){return t.primary&&"\n background-color: ".concat((t.theme.chart||l.Z.chart).primary,";\n ")}),(function(t){return!t.small&&"\n border-radius: ".concat((u.iI+d.Al)/2,"px;\n height: ").concat(1.5*u.iI+d.Al,"px;\n padding: ").concat(u.iI/1.5,"px ").concat(1.25*u.iI,"px;\n ")}),(function(t){return t.small&&"\n border-radius: ".concat((u.iI/2+d.Al)/2,"px;\n height: ").concat(d.Al+u.iI/2+2,"px;\n padding: ").concat(u.iI/4,"px ").concat(u.iI,"px;\n ")}),(function(t){return t.xsmall&&"\n border-radius: ".concat((u.iI/1+d.Al)/1,"px;\n height: ").concat(20,"px;\n padding: 4px 6px;\n ")}),(function(t){return t.border&&"\n border: 1px solid ".concat((t.theme.content||l.Z.content).muted,";\n ")}));e.Z=function(t){var e=t.border,n=t.children,r=t.disabled,l=t.label,d=t.monospace,f=t.onClick,p=t.primary,m=t.small,g=t.xsmall;return(0,s.jsx)(h,{border:e,primary:p,small:m,xsmall:g,children:(0,s.jsx)(i.ZP,{basic:!0,disabled:r,noBackground:!0,noPadding:!0,onClick:f,transparent:!0,children:(0,s.jsxs)(o.ZP,{alignItems:"center",children:[n,l&&(0,s.jsx)(a.ZP,{monospace:d,small:m,xsmall:g,children:l}),!r&&f&&(0,s.jsx)("div",{style:{marginLeft:2}}),!r&&f&&(0,s.jsx)(c.x8,{default:p,muted:!p,size:m?u.iI:1.25*u.iI})]})})})}},10305:function(t,e,n){var r=n(82684),i=n(55485),o=n(38276),a=n(28598);e.Z=function(t){var e=t.children,n=t.onChange,l=(0,r.useState)(r.Children.map(e,(function(){return null}))),c=l[0],u=l[1],d=(0,r.useState)(0),s=d[0],h=d[1];return(0,a.jsx)(i.ZP,{children:r.Children.map(e,(function(t,e){return(0,a.jsx)(o.Z,{ml:e>=1?1:0,style:{display:"flex",flex:1},children:r.cloneElement(t,{onChange:function(t){u((function(r){return r[e]=t.target.value,n(r,{resetValues:function(){return h((function(t){return t+1}))},setValues:u}),r}))},value:c[e]})},"multi-select-child-".concat(e,"-").concat(s))}))})}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8867],{59739:function(e,n,t){"use strict";var r=t(56669);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,n,t,o,i,c){if(c!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function n(){return e}e.isRequired=e;var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:i,resetWarningCache:o};return t.PropTypes=t,t}},47329:function(e,n,t){e.exports=t(59739)()},56669:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},55283:function(e,n,t){"use strict";t.d(n,{HC:function(){return T},HS:function(){return Z},IN:function(){return f},Kf:function(){return b},Nk:function(){return x},PB:function(){return v},PY:function(){return g},WC:function(){return p},fk:function(){return A},gE:function(){return _},j1:function(){return P},jv:function(){return O},nz:function(){return y},oh:function(){return l},qn:function(){return m},t1:function(){return j},u2:function(){return h},y9:function(){return S}});var r=t(38626),o=t(44897),i=t(44425),c=t(42631),a=t(8059),u=t(70515),s=t(47041),d=t(91437),l=68,f=1.5*u.iI,p=3*u.iI;function h(e){var n=a.eW;return i.tf.CALLBACK===e?n=a.J:i.tf.CHART===e||i.tf.CONDITIONAL===e?n=a.Hv:i.tf.CUSTOM===e?n=a.AK:i.tf.DATA_EXPORTER===e?n=a.Sr:i.tf.DATA_LOADER===e?n=a.R2:i.tf.DBT===e?n=a.J:i.tf.EXTENSION===e?n=a.FI:i.tf.GLOBAL_DATA_PRODUCT===e?n=a.yr:i.tf.SCRATCHPAD===e?n=a.Hv:i.tf.SENSOR===e?n=a.rK:i.tf.MARKDOWN===e?n=a.RK:i.tf.TRANSFORMER===e&&(n=a.eW),n}function m(e,n){var t,r,c=((null===n||void 0===n||null===(t=n.theme)||void 0===t?void 0:t.borders)||o.Z.borders).light,a=((null===n||void 0===n||null===(r=n.theme)||void 0===r?void 0:r.monotone)||o.Z.monotone).grey500,u=n||{},s=u.blockColor,d=u.isSelected,l=u.theme;return d?c=(l||o.Z).content.active:i.tf.TRANSFORMER===e||s===i.Lq.PURPLE?(c=(l||o.Z).accent.purple,a=(l||o.Z).accent.purpleLight):i.tf.DATA_EXPORTER===e||s===i.Lq.YELLOW?(c=(l||o.Z).accent.yellow,a=(l||o.Z).accent.yellowLight):i.tf.DATA_LOADER===e||s===i.Lq.BLUE?(c=(l||o.Z).accent.blue,a=(l||o.Z).accent.blueLight):i.tf.MARKDOWN===e?(c=(l||o.Z).accent.sky,a=(l||o.Z).accent.skyLight):i.tf.SENSOR===e||s===i.Lq.PINK?(c=(l||o.Z).accent.pink,a=(l||o.Z).accent.pinkLight):i.tf.DBT===e?(c=(l||o.Z).accent.dbt,a=(l||o.Z).accent.dbtLight):i.tf.EXTENSION===e||s===i.Lq.TEAL?(c=((null===l||void 0===l?void 0:l.accent)||o.Z.accent).teal,a=((null===l||void 0===l?void 0:l.accent)||o.Z.accent).tealLight):i.tf.CALLBACK===e?(c=((null===l||void 0===l?void 0:l.accent)||o.Z.accent).rose,a=((null===l||void 0===l?void 0:l.accent)||o.Z.accent).roseLight):i.tf.CONDITIONAL===e||i.tf.SCRATCHPAD===e||s===i.Lq.GREY||i.tf.CUSTOM===e&&!s?(c=(l||o.Z).content.default,a=(l||o.Z).accent.contentDefaultTransparent):i.tf.GLOBAL_DATA_PRODUCT!==e||s||(c=(l||o.Z).monotone.white,a=(l||o.Z).monotone.whiteTransparent),{accent:c,accentLight:a}}var b=(0,r.css)([""," "," "," "," "," "," ",""],(0,d.eR)(),(function(e){return!e.selected&&!e.hasError&&"\n border-color: ".concat(m(e.blockType,e).accentLight,";\n ")}),(function(e){return e.selected&&!e.hasError&&"\n border-color: ".concat(m(e.blockType,e).accent,";\n ")}),(function(e){return!e.selected&&e.hasError&&"\n border-color: ".concat((e.theme.accent||o.Z.accent).negativeTransparent,";\n ")}),(function(e){return e.selected&&e.hasError&&"\n border-color: ".concat((e.theme.borders||o.Z.borders).danger,";\n ")}),(function(e){return e.dynamicBlock&&"\n border-style: dashed !important;\n "}),(function(e){return e.dynamicChildBlock&&"\n border-style: dotted !important;\n "})),x=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-s5rj34-0"})(["border-radius:","px;position:relative;"],c.n_),g=r.default.div.withConfig({displayName:"indexstyle__HiddenBlockContainerStyle",componentId:"sc-s5rj34-1"})([""," border-radius:","px;border-style:",";border-width:","px;",""],b,c.n_,c.M8,c.mP,(function(e){return"\n background-color: ".concat((e.theme||o.Z).background.content,";\n\n &:hover {\n border-color: ").concat(m(e.blockType,e).accent,";\n }\n ")})),v=r.default.div.withConfig({displayName:"indexstyle__HeaderHorizontalBorder",componentId:"sc-s5rj34-2"})(["",""],(function(e){return"\n border-bottom: 1px solid ".concat((e.theme||o.Z).borders.darkLight,";\n ")})),y=r.default.div.withConfig({displayName:"indexstyle__BlockHeaderStyle",componentId:"sc-s5rj34-3"})([""," 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-bottom:","px;padding-top:","px;"," "," "," ",""],b,c.n_,c.n_,c.M8,c.mP,c.M8,c.mP,c.M8,c.mP,1*u.iI,1*u.iI,(function(e){return"\n background-color: ".concat((e.theme||o.Z).background.dashboard,";\n ")}),(function(e){return"undefined"!==typeof e.zIndex&&null!==e.zIndex&&"\n z-index: ".concat(6+(e.zIndex||0),";\n ")}),(function(e){return!e.noSticky&&"\n // This is to hide the horizontal scrollbar in the block header when sideBySide is enabled,\n // and the screen width is too small.\n position: sticky;\n top: -5px;\n "}),(function(e){return e.noSticky&&"\n ".concat((0,s.y$)(),"\n\n overflow-x: auto;\n overflow-y: visible;\n ")})),Z=r.default.div.withConfig({displayName:"indexstyle__SubheaderStyle",componentId:"sc-s5rj34-4"})([""," "," ",""],(function(e){return!e.darkBorder&&"\n border-bottom: 1px solid ".concat((e.theme.borders||o.Z.borders).darkLight,";\n ")}),(function(e){return e.darkBorder&&"\n border-bottom: 1px solid ".concat((e.theme.borders||o.Z.borders).medium,";\n ")}),(function(e){return!e.noBackground&&"\n background-color: ".concat((e.theme||o.Z).background.dashboard,";\n ")})),O=r.default.div.withConfig({displayName:"indexstyle__CodeContainerStyle",componentId:"sc-s5rj34-5"})([""," border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;position:relative;"," "," "," "," .line-numbers{opacity:0;}&.selected{.line-numbers{opacity:1 !important;}}"],b,c.M8,c.mP,c.M8,c.mP,(function(e){return"\n background-color: ".concat((e.theme.background||o.Z.background).codeTextarea,";\n ")}),(function(e){return!e.noPadding&&"\n padding-bottom: ".concat(u.iI,"px;\n padding-top: ").concat(u.iI,"px;\n ")}),(function(e){return e.lightBackground&&"\n background-color: ".concat((e.theme||o.Z).background.content,";\n ")}),(function(e){return!e.hideBorderBottom&&"\n border-bottom-left-radius: ".concat(c.n_,"px;\n border-bottom-right-radius: ").concat(c.n_,"px;\n border-bottom-style: ").concat(c.M8,";\n border-bottom-width: ").concat(c.mP,"px;\n overflow: hidden;\n ")})),_=r.default.div.withConfig({displayName:"indexstyle__BlockDivider",componentId:"sc-s5rj34-6"})(["align-items:center;display:flex;height:","px;justify-content:center;position:relative;z-index:8;&:hover{"," .block-divider-inner{","}}"," "," "," ",""],2*u.iI,(function(e){return e.additionalZIndex>0&&"\n z-index: ".concat(8+e.additionalZIndex,";\n ")}),(function(e){return"\n background-color: ".concat((e.theme.text||o.Z.text).fileBrowser,";\n ")}),(function(e){return!e.height&&"\n height: ".concat(2*u.iI,"px;\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),(function(e){return!e.bottom&&"\n bottom: ".concat(.5*u.iI,"px;\n ")}),(function(e){return"undefined"!==typeof e.bottom&&"\n bottom: ".concat(e.bottom,"px;\n ")})),j=r.default.div.withConfig({displayName:"indexstyle__BlockDividerInner",componentId:"sc-s5rj34-7"})(["height 1px;width:100%;position:absolute;z-index:-1;"," ",""],(function(e){return!e.top&&"\n top: ".concat(1.5*u.iI,"px;\n ")}),(function(e){return"undefined"!==typeof e.top&&"\n top: ".concat(e.top,"px;\n ")})),S=r.default.div.withConfig({displayName:"indexstyle__CodeHelperStyle",componentId:"sc-s5rj34-8"})([""," ",""],(function(e){return"\n border-bottom: 1px solid ".concat((e.theme.borders||o.Z.borders).medium,";\n padding-left: ").concat(e.normalPadding?u.iI:l,"px;\n ")}),(function(e){return!e.noMargin&&"\n margin-bottom: ".concat(1*u.iI,"px;\n padding-bottom: ").concat(1*u.iI,"px;\n ")})),T=r.default.div.withConfig({displayName:"indexstyle__TimeTrackerStyle",componentId:"sc-s5rj34-9"})(["bottom:","px;left:","px;position:absolute;"],1*u.iI,l),A=r.default.div.withConfig({displayName:"indexstyle__ScrollColunnsContainerStyle",componentId:"sc-s5rj34-10"})(["position:relative;",""],(function(e){return"\n z-index: ".concat((null===e||void 0===e?void 0:e.zIndex)||1,";\n ")})),P=r.default.div.attrs((function(e){var n=e.height,t=e.left,r=e.right,o=e.top;return{style:{position:"fixed",height:n,width:e.width,left:t,right:r,top:o,zIndex:(e.zIndex||0)+2}}})).withConfig({displayName:"indexstyle__ScrollColunnStyle",componentId:"sc-s5rj34-11"})([""])},94629:function(e,n,t){"use strict";t.d(n,{Z:function(){return T}});var r=t(82394),o=t(21831),i=t(82684),c=t(50724),a=t(82555),u=t(97618),s=t(70613),d=t(68487),l=t(68899),f=t(28598);function p(e,n){var t=e.children,r=e.noPadding;return(0,f.jsx)(l.HS,{noPadding:r,ref:n,children:t})}var h=i.forwardRef(p),m=t(62547),b=t(82571),x=t(35686),g=t(98464),v=t(46684),y=t(70515),Z=t(53808),O=t(19183);function _(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function j(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?_(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):_(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function S(e,n){var t,r=e.addProjectBreadcrumbToCustomBreadcrumbs,p=e.after,_=e.afterHeader,S=e.afterHidden,T=e.afterWidth,A=e.afterWidthOverride,P=e.appendBreadcrumbs,C=e.before,E=e.beforeWidth,R=e.breadcrumbs,w=e.children,k=e.errors,I=e.headerMenuItems,N=e.headerOffset,D=e.hideAfterCompletely,L=e.mainContainerHeader,M=e.navigationItems,H=e.setAfterHidden,B=e.setErrors,W=e.subheaderChildren,Y=e.subheaderNoPadding,K=e.title,F=e.uuid,U=(0,O.i)().width,G="dashboard_after_width_".concat(F),X="dashboard_before_width_".concat(F),z=(0,i.useRef)(null),V=(0,i.useState)(A?T:(0,Z.U2)(G,T)),q=V[0],Q=V[1],$=(0,i.useState)(!1),J=$[0],ee=$[1],ne=(0,i.useState)(C?Math.max((0,Z.U2)(X,E),13*y.iI):null),te=ne[0],re=ne[1],oe=(0,i.useState)(!1),ie=oe[0],ce=oe[1],ae=(0,i.useState)(null)[1],ue=x.ZP.projects.list({},{revalidateOnFocus:!1}).data,se=null===ue||void 0===ue?void 0:ue.projects,de={label:function(){var e;return null===se||void 0===se||null===(e=se[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},le=[];R&&(r&&le.push(de),le.push.apply(le,(0,o.Z)(R))),(null===R||void 0===R||!R.length||P)&&(null===se||void 0===se?void 0:se.length)>=1&&(null!==R&&void 0!==R&&R.length||le.unshift({bold:!P,label:function(){return K}}),le.unshift(de)),(0,i.useEffect)((function(){null===z||void 0===z||!z.current||J||ie||null===ae||void 0===ae||ae(z.current.getBoundingClientRect().width)}),[J,q,ie,te,z,ae,U]),(0,i.useEffect)((function(){J||(0,Z.t8)(G,q)}),[S,J,q,G]),(0,i.useEffect)((function(){ie||(0,Z.t8)(X,te)}),[ie,te,X]);var fe=(0,g.Z)(T);return(0,i.useEffect)((function(){A&&fe!==T&&Q(T)}),[A,T,fe]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(s.Z,{title:K}),(0,f.jsx)(d.Z,{breadcrumbs:le,menuItems:I,project:null===se||void 0===se?void 0:se[0],version:null===se||void 0===se||null===(t=se[0])||void 0===t?void 0:t.version}),(0,f.jsxs)(l.Nk,{ref:n,children:[0!==(null===M||void 0===M?void 0:M.length)&&(0,f.jsx)(l.lm,{showMore:!0,children:(0,f.jsx)(b.Z,{navigationItems:M,showMore:!0})}),(0,f.jsx)(u.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(m.Z,{after:p,afterHeader:_,afterHeightOffset:v.Mz,afterHidden:S,afterMousedownActive:J,afterWidth:q,before:C,beforeHeightOffset:v.Mz,beforeMousedownActive:ie,beforeWidth:l.k1+(C?te:0),headerOffset:N,hideAfterCompletely:!H||D,leftOffset:C?l.k1:null,mainContainerHeader:L,mainContainerRef:z,setAfterHidden:H,setAfterMousedownActive:ee,setAfterWidth:Q,setBeforeMousedownActive:ce,setBeforeWidth:re,children:[W&&(0,f.jsx)(h,{noPadding:Y,children:W}),w]})})]}),k&&(0,f.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===B||void 0===B?void 0:B(null)},children:(0,f.jsx)(a.Z,j(j({},k),{},{onClose:function(){return null===B||void 0===B?void 0:B(null)}}))})]})}var T=i.forwardRef(S)},53779:function(e,n,t){"use strict";t.d(n,{C:function(){return h},X$:function(){return p},eD:function(){return l},iW:function(){return m},nF:function(){return b}});var r=t(38626),o=t(44897),i=t(42631),c=t(70515),a=t(47041),u=t(91437),s=6.25*c.iI,d=(c.iI,100*c.iI),l=r.default.div.withConfig({displayName:"indexstyle__WindowContainerStyle",componentId:"sc-g0cszf-0"})(["border-radius:","px;width:100%;max-width:","px;z-index:101;position:absolute;overflow:hidden;top:50%;left:50%;transform:translate(-50%,-50%);",""],i.n_,d,(function(e){return"\n box-shadow: ".concat((e.theme||o.Z).shadow.window,";\n background-color: ").concat((e.theme||o.Z).background.panel,";\n ")})),f=(0,r.css)(["display:flex;align-items:center;justify-content:space-between;height:","px;padding:","px ","px;",""],s,c.iI,c.cd*c.iI,(function(e){return"\n background-color: ".concat((e.theme||o.Z).background.output,";\n ")})),p=r.default.div.withConfig({displayName:"indexstyle__WindowHeaderStyle",componentId:"sc-g0cszf-1"})([""," border-top-left-radius:","px;border-top-right-radius:","px;",""],f,i.n_,i.n_,(function(e){return"\n border-bottom: ".concat(i.YF,"px ").concat(i.M8," ").concat((e.theme||o.Z).borders.medium,";\n ")})),h=r.default.div.withConfig({displayName:"indexstyle__WindowContentStyle",componentId:"sc-g0cszf-2"})(["overflow:auto;padding:","px 0;"," "," "," ",""],c.iI,a.w5,(0,u.eR)(),(function(e){return e.minMaxHeight&&"\n max-height: ".concat(7*c.iI,"px;\n ")}),(function(e){return!e.minMaxHeight&&"\n max-height: calc(100vh - ".concat(6.5*s,"px);\n ")})),m=r.default.div.withConfig({displayName:"indexstyle__WindowFooterStyle",componentId:"sc-g0cszf-3"})([""," justify-content:flex-end;border-bottom-left-radius:","px;border-bottom-right-radius:","px;",""],f,i.n_,i.n_,(function(e){return"\n border-top: ".concat(i.YF,"px ").concat(i.M8," ").concat((e.theme||o.Z).borders.medium,";\n ")})),b=r.default.div.withConfig({displayName:"indexstyle__InputRowStyle",componentId:"sc-g0cszf-4"})(["padding:","px ","px;",""],.75*c.iI,2*c.iI,(function(e){return"\n border-bottom: ".concat(i.YF,"px ").concat(i.M8," ").concat((e.theme||o.Z).borders.medium,";\n ")}))},29480:function(e,n,t){"use strict";t.d(n,{$W:function(){return d},cl:function(){return l},cv:function(){return f},dE:function(){return u},zG:function(){return s}});var r=t(38626),o=t(44897),i=t(42631),c=t(70515),a=t(47041),u=r.default.div.withConfig({displayName:"indexstyle__SectionStyle",componentId:"sc-7a1uhf-0"})(["border-radius:","px;padding:","px;",""],i.n_,c.cd*c.iI,(function(e){return"\n background-color: ".concat((e.theme.background||o.Z.background).popup,";\n ")})),s=r.default.div.withConfig({displayName:"indexstyle__DocsStyle",componentId:"sc-7a1uhf-1"})(["> div{overflow:initial;}> div img{max-width:80%;background:white;padding:1rem;max-height:20vh;}"]),d=r.default.div.withConfig({displayName:"indexstyle__CodeEditorStyle",componentId:"sc-7a1uhf-2"})(["padding-top:","px;",""],c.cd*c.iI,(function(e){return"\n background-color: ".concat((e.theme.background||o.Z.background).codeTextarea,";\n ")})),l=r.default.div.withConfig({displayName:"indexstyle__TableContainerStyle",componentId:"sc-7a1uhf-3"})(["overflow:auto;max-height:90vh;width:100%;"," "," "," "," ",""],a.w5,(function(e){return e.hideHorizontalScrollbar&&"\n overflow-x: hidden;\n "}),(function(e){return e.width&&"\n width: ".concat(e.width,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height,";\n ")}),(function(e){return e.maxHeight&&"\n max-height: ".concat(e.maxHeight,";\n ")})),f=r.default.div.withConfig({displayName:"indexstyle__HeaderRowStyle",componentId:"sc-7a1uhf-4"})(["padding:","px;"," "," ",""],2*c.iI,(function(e){return"\n background-color: ".concat((e.theme||o.Z).interactive.defaultBackground,";\n border-bottom: ").concat(i.YF,"px ").concat(i.M8," ").concat((e.theme||o.Z).borders.medium,";\n ")}),(function(e){return e.padding&&"\n padding: ".concat(e.padding,"px;\n ")}),(function(e){return e.rounded&&"\n border-top-left-radius: ".concat(i.n_,"px;\n border-top-right-radius: ").concat(i.n_,"px;\n ")}))},4611:function(e,n,t){"use strict";t.d(n,{f:function(){return a}});var r=t(38626),o=t(44897),i=t(70515),c=t(42631),a=r.default.div.withConfig({displayName:"Tablestyle__PopupContainerStyle",componentId:"sc-8ammqd-0"})(["position:absolute;max-height:","px;z-index:10;border-radius:","px;padding:","px;"," "," "," ",""],58*i.iI,c.TR,2*i.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||o.Z.shadow).popup,";\n background-color: ").concat((e.theme.interactive||o.Z.interactive).defaultBackground,";\n ")}),(function(e){return e.leftOffset&&"\n left: ".concat(e.leftOffset,"px;\n ")}),(function(e){return e.topOffset&&"\n top: ".concat(e.topOffset,"px;\n ")}),(function(e){return e.width&&"\n width: ".concat(e.width,"px;\n ")}))},85385:function(e,n,t){"use strict";t.d(n,{Qq:function(){return h},Z7:function(){return m},cH:function(){return o},du:function(){return f},fp:function(){return l},j5:function(){return p},uM:function(){return d}});var r,o,i=t(82394),c=t(57653),a=t(82359),u=t(72473),s=t(86735),d="sideview",l=90;!function(e){e.ADDON_BLOCKS="addon_blocks",e.BLOCK_SETTINGS="block_settings",e.CALLBACKS="callbacks",e.CHARTS="charts",e.DATA="data",e.EXTENSIONS="power_ups",e.FILE_VERSIONS="file_versions",e.GRAPHS="graphs",e.INTERACTIONS="interactions",e.REPORTS="reports",e.SECRETS="secrets",e.SETTINGS="settings",e.TERMINAL="terminal",e.TREE="tree",e.VARIABLES="variables"}(o||(o={}));o.BLOCK_SETTINGS,o.CALLBACKS,o.CHARTS,o.DATA,o.EXTENSIONS,o.TREE;var f=[o.DATA];function p(e){var n,t,r,i=[{key:o.TREE,label:"Tree"},{buildLabel:function(e){var n=(e.pipeline||{}).widgets,t=void 0===n?[]:n;return(null===t||void 0===t?void 0:t.length)>=1?"Charts (".concat(t.length,")"):"Charts"},key:o.CHARTS},{buildLabel:function(e){var n=e.variables;return(null===n||void 0===n?void 0:n.length)>=1?"Variables (".concat(n.length,")"):"Variables"},key:o.VARIABLES},{buildLabel:function(e){var n=e.secrets;return(null===n||void 0===n?void 0:n.length)>=1?"Secrets (".concat(n.length,")"):"Secrets"},key:o.SECRETS}];return c.qL.PYSPARK!==(null===e||void 0===e||null===(n=e.pipeline)||void 0===n?void 0:n.type)&&i.push.apply(i,[{buildLabel:function(e){e.pipeline;return"Add-on blocks"},key:o.ADDON_BLOCKS},{buildLabel:function(e){var n=(e.pipeline||{}).extensions,t=void 0===n?{}:n,r=0;return Object.values(t).forEach((function(e){var n=e.blocks;r+=(null===n||void 0===n?void 0:n.length)||0})),r>=1?"Power ups (".concat(r,")"):"Power ups"},key:o.EXTENSIONS}]),i.push.apply(i,[{key:o.DATA,label:"Data"},{key:o.TERMINAL,label:"Terminal"},{key:o.BLOCK_SETTINGS,label:"Block settings"}]),null!==e&&void 0!==e&&null!==(t=e.project)&&void 0!==t&&null!==(r=t.features)&&void 0!==r&&r[a.d.INTERACTIONS]&&i.push({key:o.INTERACTIONS,label:"Interactions"}),i}function h(e){return(0,s.HK)(p(e),(function(e){return e.key}))}var m=(r={},(0,i.Z)(r,o.ADDON_BLOCKS,u.EJ),(0,i.Z)(r,o.BLOCK_SETTINGS,u.JG),(0,i.Z)(r,o.CALLBACKS,u.AQ),(0,i.Z)(r,o.CHARTS,u.GQ),(0,i.Z)(r,o.DATA,u.iA),(0,i.Z)(r,o.EXTENSIONS,u.Bf),(0,i.Z)(r,o.INTERACTIONS,u.yd),(0,i.Z)(r,o.SECRETS,u.Yo),(0,i.Z)(r,o.SETTINGS,u.Zr),(0,i.Z)(r,o.TERMINAL,u.oI),(0,i.Z)(r,o.TREE,u.mp),(0,i.Z)(r,o.VARIABLES,u.LO),r)},75083:function(e,n,t){"use strict";t.d(n,{HF:function(){return i},L6:function(){return r}});var r,o=t(72473);function i(e,n,t){var i=e.owner,c=(e.roles,[{Icon:o.Vz,id:r.WORKSPACES,isSelected:function(){return r.WORKSPACES===t},label:function(){return"Workspaces"},linkProps:{href:"/manage"}}]);return i&&c.push({Icon:o.NO,id:r.USERS,isSelected:function(){return r.USERS===t},label:function(){return"Users"},linkProps:{href:"/manage/users"}}),c.push.apply(c,[{Icon:o.Zr,id:r.SETTINGS,isSelected:function(){return r.SETTINGS===t},label:function(){return"Settings"},linkProps:{href:"/manage/settings"}},{Icon:o.$B,id:r.FILE_BROWSER,isSelected:function(){return r.FILE_BROWSER===t},label:function(){return"File browser"},linkProps:{href:"/manage/files"}}]),c}!function(e){e.WORKSPACES="workspaces",e.USERS="users",e.SETTINGS="settings",e.FILE_BROWSER="file_browser"}(r||(r={}))},59533:function(e,n,t){"use strict";var r=t(82684),o=t(94629),i=t(35686),c=t(70515),a=t(75083),u=t(50178),s=t(28598);n.Z=function(e){var n=e.before,t=e.breadcrumbs,d=void 0===t?[]:t,l=e.children,f=e.errors,p=e.headerOffset,h=e.mainContainerHeader,m=e.pageName,b=e.setErrors,x=e.subheaderChildren,g=i.ZP.statuses.list().data,v=(0,r.useMemo)((function(){var e,n;return null===g||void 0===g||null===(e=g.statuses)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.project_type}),[g]),y=(0,u.PR)()||{};return(0,s.jsx)(o.Z,{before:n,beforeWidth:n?50*c.iI:0,breadcrumbs:d,errors:f,headerOffset:p,mainContainerHeader:h,navigationItems:(0,a.HF)(y,v,m),setErrors:b,subheaderChildren:x,title:"Workspaces",uuid:"workspaces/index",children:l})}},44425:function(e,n,t){"use strict";t.d(n,{$W:function(){return x},DA:function(){return m},HX:function(){return Z},J8:function(){return y},L8:function(){return a},LE:function(){return f},Lk:function(){return j},Lq:function(){return p},M5:function(){return h},Q3:function(){return g},Qj:function(){return O},Ut:function(){return A},V4:function(){return T},VZ:function(){return v},dO:function(){return l},f2:function(){return S},iZ:function(){return _},t6:function(){return u},tf:function(){return d}});var r,o,i,c,a,u,s=t(82394);!function(e){e.CONDITION="condition",e.DBT_SNAPSHOT="snapshot",e.DYNAMIC="dynamic",e.DYNAMIC_CHILD="dynamic_child",e.REDUCE_OUTPUT="reduce_output",e.REPLICA="replica"}(a||(a={})),function(e){e.MARKDOWN="markdown",e.PYTHON="python",e.R="r",e.SQL="sql",e.YAML="yaml"}(u||(u={}));var d,l=(r={},(0,s.Z)(r,u.MARKDOWN,"MD"),(0,s.Z)(r,u.PYTHON,"PY"),(0,s.Z)(r,u.R,"R"),(0,s.Z)(r,u.SQL,"SQL"),(0,s.Z)(r,u.YAML,"YAML"),r),f=(o={},(0,s.Z)(o,u.MARKDOWN,"Markdown"),(0,s.Z)(o,u.PYTHON,"Python"),(0,s.Z)(o,u.R,"R"),(0,s.Z)(o,u.SQL,"SQL"),(0,s.Z)(o,u.YAML,"YAML"),o);!function(e){e.CALLBACK="callback",e.CHART="chart",e.CONDITIONAL="conditional",e.CUSTOM="custom",e.DATA_EXPORTER="data_exporter",e.DATA_LOADER="data_loader",e.DBT="dbt",e.EXTENSION="extension",e.GLOBAL_DATA_PRODUCT="global_data_product",e.SCRATCHPAD="scratchpad",e.SENSOR="sensor",e.MARKDOWN="markdown",e.TRANSFORMER="transformer"}(d||(d={}));var p,h=[d.CALLBACK,d.CONDITIONAL,d.EXTENSION];!function(e){e.BLUE="blue",e.GREY="grey",e.PINK="pink",e.PURPLE="purple",e.TEAL="teal",e.YELLOW="yellow"}(p||(p={}));var m,b,x=[d.CHART,d.CUSTOM,d.DATA_EXPORTER,d.DATA_LOADER,d.SCRATCHPAD,d.SENSOR,d.MARKDOWN,d.TRANSFORMER],g=[d.CUSTOM,d.DATA_EXPORTER,d.DATA_LOADER,d.SCRATCHPAD,d.SENSOR,d.MARKDOWN,d.TRANSFORMER],v=[d.DATA_EXPORTER,d.DATA_LOADER],y=[d.DATA_EXPORTER,d.DATA_LOADER,d.TRANSFORMER],Z=[d.DATA_EXPORTER,d.DATA_LOADER,d.DBT,d.TRANSFORMER],O=[d.CHART,d.SCRATCHPAD,d.SENSOR,d.MARKDOWN],_=[d.CALLBACK,d.CHART,d.EXTENSION,d.SCRATCHPAD,d.MARKDOWN],j=[d.CUSTOM,d.DATA_EXPORTER,d.DATA_LOADER,d.SENSOR,d.TRANSFORMER];!function(e){e.EXECUTED="executed",e.FAILED="failed",e.NOT_EXECUTED="not_executed",e.UPDATED="updated"}(m||(m={})),function(e){e.BLOCK_FILE="block_file",e.CUSTOM_BLOCK_TEMPLATE="custom_block_template",e.MAGE_TEMPLATE="mage_template"}(b||(b={}));var S=[d.CUSTOM,d.DATA_EXPORTER,d.DATA_LOADER,d.TRANSFORMER],T=(i={},(0,s.Z)(i,d.CALLBACK,"Callback"),(0,s.Z)(i,d.CHART,"Chart"),(0,s.Z)(i,d.CONDITIONAL,"Conditional"),(0,s.Z)(i,d.CUSTOM,"Custom"),(0,s.Z)(i,d.DATA_EXPORTER,"Data exporter"),(0,s.Z)(i,d.DATA_LOADER,"Data loader"),(0,s.Z)(i,d.DBT,"DBT"),(0,s.Z)(i,d.EXTENSION,"Extension"),(0,s.Z)(i,d.GLOBAL_DATA_PRODUCT,"Global data product"),(0,s.Z)(i,d.MARKDOWN,"Markdown"),(0,s.Z)(i,d.SCRATCHPAD,"Scratchpad"),(0,s.Z)(i,d.SENSOR,"Sensor"),(0,s.Z)(i,d.TRANSFORMER,"Transformer"),i),A=[d.DATA_LOADER,d.TRANSFORMER,d.DATA_EXPORTER,d.SENSOR];c={},(0,s.Z)(c,d.DATA_EXPORTER,"DE"),(0,s.Z)(c,d.DATA_LOADER,"DL"),(0,s.Z)(c,d.SCRATCHPAD,"SP"),(0,s.Z)(c,d.SENSOR,"SR"),(0,s.Z)(c,d.MARKDOWN,"MD"),(0,s.Z)(c,d.TRANSFORMER,"TF")},89706:function(e,n,t){"use strict";t.d(n,{JD:function(){return m},Lu:function(){return i},PF:function(){return f},dT:function(){return c},n6:function(){return s},nB:function(){return h},oy:function(){return p},xF:function(){return l}});var r,o,i,c,a=t(82394),u=t(44425);!function(e){e.CSV="csv",e.JSON="json",e.MD="md",e.PY="py",e.R="r",e.SH="sh",e.SQL="sql",e.TXT="txt",e.YAML="yaml",e.YML="yml"}(i||(i={})),function(e){e.INIT_PY="__init__.py",e.METADATA_YAML="metadata.yaml",e.REQS_TXT="requirements.txt"}(c||(c={}));var s=[i.PY,i.SQL],d=[i.JSON,i.MD,i.PY,i.R,i.SH,i.SQL,i.TXT,i.YAML,i.YML],l=new RegExp(d.map((function(e){return".".concat(e,"$")})).join("|")),f=(new RegExp(d.map((function(e){return".".concat(e,"$")})).join("|")),"charts"),p="pipelines",h=(r={},(0,a.Z)(r,i.MD,u.t6.MARKDOWN),(0,a.Z)(r,i.JSON,i.JSON),(0,a.Z)(r,i.PY,u.t6.PYTHON),(0,a.Z)(r,i.R,u.t6.R),(0,a.Z)(r,i.SQL,u.t6.SQL),(0,a.Z)(r,i.TXT,"text"),(0,a.Z)(r,i.YAML,u.t6.YAML),(0,a.Z)(r,i.YML,u.t6.YAML),r),m=(o={},(0,a.Z)(o,u.t6.MARKDOWN,i.MD),(0,a.Z)(o,u.t6.PYTHON,i.PY),(0,a.Z)(o,u.t6.R,i.R),(0,a.Z)(o,u.t6.SQL,i.SQL),(0,a.Z)(o,u.t6.YAML,i.YAML),(0,a.Z)(o,"text",i.TXT),o)},72098:function(e,n,t){"use strict";var r;t.d(n,{U:function(){return r}}),function(e){e.PYSPARK="pysparkkernel",e.PYTHON3="python3"}(r||(r={}))},57653:function(e,n,t){"use strict";t.d(n,{$1:function(){return m},G7:function(){return g},LM:function(){return v},Mj:function(){return y},QK:function(){return h},RH:function(){return x},a_:function(){return O},fj:function(){return _},kA:function(){return Z},qL:function(){return a},r0:function(){return b}});var r,o,i,c,a,u=t(75582),s=t(82394),d=t(72473),l=t(72098);function f(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function p(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?f(Object(t),!0).forEach((function(n){(0,s.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}!function(e){e.INTEGRATION="integration",e.PYTHON="python",e.PYSPARK="pyspark",e.STREAMING="streaming"}(a||(a={}));var h,m,b,x=(r={},(0,s.Z)(r,a.INTEGRATION,"Integration"),(0,s.Z)(r,a.PYTHON,"Python"),(0,s.Z)(r,a.PYSPARK,"PySpark"),(0,s.Z)(r,a.STREAMING,"Streaming"),r),g=(o={},(0,s.Z)(o,a.INTEGRATION,"Integration"),(0,s.Z)(o,a.PYTHON,"Standard"),(0,s.Z)(o,a.PYSPARK,"PySpark"),(0,s.Z)(o,a.STREAMING,"Streaming"),o),v="all",y=(a.PYTHON,a.INTEGRATION,a.STREAMING,i={},(0,s.Z)(i,v,d.ie),(0,s.Z)(i,a.INTEGRATION,d.YC),(0,s.Z)(i,a.PYTHON,d.El),(0,s.Z)(i,a.STREAMING,d.dB),i);!function(e){e.ACTIVE="active",e.INACTIVE="inactive",e.NO_SCHEDULES="no_schedules",e.RETRY="retry",e.RETRY_INCOMPLETE_BLOCK_RUNS="retry_incomplete_block_runs"}(h||(h={})),function(e){e.GROUP="group_by",e.HISTORY_DAYS="from_history_days",e.NO_TAGS="no_tags",e.SEARCH="search",e.STATUS="status[]",e.TAG="tag[]",e.TYPE="type[]"}(m||(m={})),function(e){e.STATUS="status",e.TAG="tag",e.TYPE="type"}(b||(b={}));var Z=[h.ACTIVE,h.INACTIVE,h.NO_SCHEDULES],O=(c={},(0,s.Z)(c,a.PYTHON,l.U.PYTHON3),(0,s.Z)(c,a.PYSPARK,l.U.PYSPARK),c),_=Object.entries(O).reduce((function(e,n){var t=(0,u.Z)(n,2),r=t[0],o=t[1];return p(p({},e),{},(0,s.Z)({},o,r))}),{})},65956:function(e,n,t){"use strict";var r=t(38626),o=t(55485),i=t(38276),c=t(30160),a=t(44897),u=t(42631),s=t(47041),d=t(70515),l=t(28598),f=(0,r.css)(["padding:","px;padding-bottom:","px;padding-top:","px;"],2*d.iI,1.5*d.iI,1.5*d.iI),p=r.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||a.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.success&&"\n background-color: ".concat((e.theme.background||a.Z.background).successLight,";\n ")}),(function(e){return e.success&&!e.borderless&&"\n border: 1px solid ".concat((e.theme.background||a.Z.background).success,";\n ")}),(function(e){return!e.dark&&!e.success&&"\n background-color: ".concat((e.theme.background||a.Z.background).panel,";\n ")}),(function(e){return e.dark&&"\n background-color: ".concat((e.theme.background||a.Z.background).content,";\n ")}),(function(e){return!e.fullHeight&&"\n height: fit-content;\n "}),(function(e){return e.maxHeight&&"\n max-height: ".concat(e.maxHeight,";\n ")}),(function(e){return e.maxWidth&&"\n max-width: ".concat(e.maxWidth,"px;\n ")}),(function(e){return e.minWidth&&"\n min-width: ".concat(e.minWidth,"px;\n\n @media (max-width: ").concat(e.minWidth,"px) {\n min-width: 0;\n }\n ")}),(function(e){return e.borderless&&"\n border: none;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),h=r.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||a.Z.background).chartBlock,";\n border-bottom: 1px solid ").concat((e.theme.interactive||a.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),f,(function(e){return e.headerPaddingVertical&&"\n padding-bottom: ".concat(e.headerPaddingVertical,"px;\n padding-top: ").concat(e.headerPaddingVertical,"px;\n ")})),m=r.default.div.withConfig({displayName:"Panel__ContentStyle",componentId:"sc-1ct8cgl-2"})(["overflow-y:auto;padding:","px;height:100%;"," "," "," "," ",""],1.75*d.iI,s.w5,(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),(function(e){return e.maxHeight&&"\n max-height: calc(".concat(e.maxHeight," - ").concat(15*d.iI,"px);\n ")}),(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),b=r.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,r=e.containerRef,a=e.contentContainerRef,u=e.dark,s=e.footer,d=e.fullHeight,f=void 0===d||d,x=e.fullWidth,g=void 0===x||x,v=e.header,y=e.headerHeight,Z=e.headerIcon,O=e.headerPaddingVertical,_=e.headerTitle,j=e.maxHeight,S=e.maxWidth,T=e.minWidth,A=e.noPadding,P=e.overflowVisible,C=e.subtitle,E=e.success;return(0,l.jsxs)(p,{borderless:n,dark:u,fullHeight:f,fullWidth:g,maxHeight:j,maxWidth:S,minWidth:T,overflowVisible:P,ref:r,success:E,children:[(v||_)&&(0,l.jsxs)(h,{headerPaddingVertical:O,height:y,children:[v&&v,_&&(0,l.jsx)(o.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,l.jsxs)(o.ZP,{alignItems:"center",children:[Z&&Z,(0,l.jsx)(i.Z,{ml:Z?1:0,children:(0,l.jsx)(c.ZP,{bold:!0,default:!0,children:_})})]})})]}),(0,l.jsxs)(m,{maxHeight:j,noPadding:A,overflowVisible:P,ref:a,children:[C&&"string"===typeof C&&(0,l.jsx)(i.Z,{mb:2,children:(0,l.jsx)(c.ZP,{default:!0,children:C})}),C&&"string"!==typeof C&&C,t]}),s&&(0,l.jsx)(b,{children:s})]})}},11074:function(e,n,t){"use strict";t.d(n,{Z:function(){return u}});var r=t(38626),o=t(44897),i=t(42631),c=r.default.div.withConfig({displayName:"indexstyle__PanelStyle",componentId:"sc-1rfr5wd-0"})(["border-radius:","px;"," ",""],i.n_,(function(e){return"\n background-color: ".concat((e.theme.background||o.Z.background).panel,";\n ")}),(function(e){return e.fullWidth&&"\n width: 100%;\n "})),a=t(28598);var u=function(e){var n=e.children,t=e.fullWidth,r=void 0===t||t;return(0,a.jsx)(c,{fullWidth:r,children:n})}},35185:function(e,n,t){"use strict";var r=t(82394),o=t(91835),i=(t(82684),t(38626)),c=t(44897),a=t(42631),u=t(70515),s=t(28598);function d(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function l(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?d(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var f=i.default.div.withConfig({displayName:"ProgressBar__ProgressBarContainerStyle",componentId:"sc-10x9ojc-0"})(["border-radius:","px;height:","px;overflow:hidden;position:relative;width:100%;",""],a.BG,.75*u.iI,(function(e){return"\n background-color: ".concat((e.theme.monotone||c.Z.monotone).grey200,";\n ")})),p=i.default.div.withConfig({displayName:"ProgressBar__ProgressBarStyle",componentId:"sc-10x9ojc-1"})(["height:inherit;position:absolute;"," "," "," ",""],(function(e){return!e.danger&&"\n background-color: ".concat((e.theme.progress||c.Z.progress).positive,";\n ")}),(function(e){return e.progress&&"\n width: ".concat(e.progress,"%;\n ")}),(function(e){return e.danger&&"\n background-color: ".concat((e.theme.progress||c.Z.progress).negative,";\n ")}),(function(e){return e.animateProgress&&"\n animation: animate-progress ".concat(e.animateProgress.duration,"ms linear forwards;\n\n @keyframes animate-progress {\n 0% {\n width: ").concat(e.animateProgress.start,"%;\n }\n\n 100% {\n width: ").concat(e.animateProgress.end,"%;\n }\n }\n ")}));n.Z=function(e){var n=(0,o.Z)({},e);return(0,s.jsx)(f,l(l({},n),{},{children:(0,s.jsx)(p,l({},n))}))}},2182:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return te}});var r,o=t(77837),i=t(75582),c=t(38860),a=t.n(c),u=t(82684),s=t(69864),d=t(71180),l=t(50724),f=t(82394),p=t(32013),h=t(98777),m=t(75810),b=t(15338),x=t(10553),g=t(97618),v=t(55485),y=t(85854),Z=t(93369),O=t(11074),_=t(44085),j=t(38276),S=t(30160),T=t(17488),A=t(69650),P=t(35686),C=["ReadWriteOnce","ReadWriteMany","ReadOnlyMany"],E=[{label:"Workspace name",required:!0,uuid:"name"}],R=[{label:"Service account name",placeholder:"default",uuid:"service_account_name"},{label:"Ingress name",labelDescription:"If you want to add the workspace to an existing ingress, enter the name of the ingress here. Otherwise, the workspace can be accessed through the service.",placeholder:"my-ingress",uuid:"ingress_name"}],w=[{label:"Storage class name",placeholder:"default",uuid:"storage_class_name"},{label:"Storage request size (in GB)",type:"number",uuid:"storage_request_size"}],k=t(44425),I=t(72473);!function(e){e.K8S="k8s",e.ECS="ecs",e.CLOUD_RUN="cloud_run",e.EMR="emr"}(r||(r={}));var N=t(29480),D=t(79633),L=t(53779),M=t(72619),H=t(81728),B=t(89538),W=t(28598);function Y(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function K(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Y(Object(t),!0).forEach((function(n){(0,f.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Y(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var F=function(e){var n=e.clusterType,t=e.onCancel,o=e.onCreate,c=(0,u.useState)(),a=c[0],l=c[1],Y=(0,u.useState)(),F=Y[0],U=Y[1],G=(0,u.useState)(null),X=G[0],z=G[1],V=(0,u.useState)(null),q=V[0],Q=V[1],$=(0,s.Db)(P.ZP.workspaces.useCreate(),{onSuccess:function(e){return(0,M.wD)(e,{callback:function(e){e.error_message?l(e.error_message):o()},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.message;l(r),console.log(t,r)}})}}),J=(0,i.Z)($,2),ee=J[0],ne=J[1].isLoading,te=P.ZP.files.list(),re=te.data,oe=te.mutate,ie=(0,u.useMemo)((function(){return(null===re||void 0===re?void 0:re.files)||[]}),[re]),ce=(0,B.dd)((function(e){return(0,W.jsxs)(L.eD,{children:[(0,W.jsxs)(L.X$,{children:[(0,W.jsx)(g.Z,{alignItems:"center",children:(0,W.jsx)(S.ZP,{disableWordBreak:!0,monospace:!0,children:"Select file"})}),(0,W.jsx)(d.ZP,{iconOnly:!0,onClick:se,children:(0,W.jsx)(I.x8,{muted:!0})})]}),(0,W.jsx)(L.C,{children:(0,W.jsx)(x.Z,{disableContextMenu:!0,fetchFileTree:oe,files:ie,isFileDisabled:null===e||void 0===e?void 0:e.isFileDisabled,openFile:e.onFileOpen})})]})}),{},[ie,oe],{background:!0,uuid:"file_selector"}),ae=(0,i.Z)(ce,2),ue=ae[0],se=ae[1],de=(0,u.useCallback)((function(e){var n=e.autoComplete,t=e.disabled,r=e.label,o=e.labelDescription,i=e.placeholder,c=e.required,a=e.type,u=e.uuid;return(0,W.jsxs)("div",{children:[(0,W.jsx)(b.Z,{muted:!0}),(0,W.jsx)(j.Z,{ml:3,mr:2,my:1,children:(0,W.jsxs)(v.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,W.jsxs)(g.Z,{flex:2,flexDirection:"column",children:[(0,W.jsx)(S.ZP,{children:r}),o&&(0,W.jsx)(S.ZP,{muted:!0,children:o})]}),(0,W.jsx)(g.Z,{flex:1}),(0,W.jsx)(g.Z,{flex:1,children:(0,W.jsx)(T.Z,{autoComplete:n,disabled:t,onChange:function(e){z((function(n){return K(K({},n),{},(0,f.Z)({},u,e.target.value))}))},placeholder:i,required:c,setContentOnMount:!0,type:a,value:(null===X||void 0===X?void 0:X[u])||""})})]})})]},u)}),[X,z]),le=(0,u.useMemo)((function(){return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(v.ZP,{children:(0,W.jsx)(j.Z,{ml:2,my:2,children:(0,W.jsx)(S.ZP,{bold:!0,sky:!0,children:"General"})})}),R.map((function(e){return de(e)})),(0,W.jsx)(b.Z,{muted:!0}),(0,W.jsx)(v.ZP,{children:(0,W.jsx)(j.Z,{ml:2,my:2,children:(0,W.jsx)(S.ZP,{bold:!0,sky:!0,children:"Volume claim params"})})}),w.map((function(e){return de(e)})),(0,W.jsx)(b.Z,{muted:!0}),(0,W.jsx)(j.Z,{ml:3,mr:2,my:1,children:(0,W.jsxs)(v.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,W.jsx)(g.Z,{flex:3,children:(0,W.jsx)(S.ZP,{children:"Access mode"})}),(0,W.jsx)(g.Z,{flex:1,children:(0,W.jsx)(_.Z,{fullWidth:!0,label:"Access mode",onChange:function(e){e.preventDefault(),z((function(n){return K(K({},n),{},{storage_access_mode:e.target.value})}))},placeholder:"Access mode",value:null===X||void 0===X?void 0:X.storage_access_mode,children:C.map((function(e){return(0,W.jsx)("option",{value:e,children:e},e)}))})})]})}),(0,W.jsx)(b.Z,{muted:!0}),(0,W.jsx)(j.Z,{ml:2,my:2,children:(0,W.jsxs)(v.ZP,{alignItems:"center",children:[(0,W.jsx)(A.Z,{checked:F,compact:!0,onCheck:function(){return U((function(e){return!e}))}}),(0,W.jsx)(j.Z,{ml:1,children:(0,W.jsx)(S.ZP,{bold:!0,sky:!0,children:"Configure container"})})]})}),(0,W.jsx)(b.Z,{muted:!0}),F&&(0,W.jsx)(j.Z,{ml:3,mr:2,my:1,children:(0,W.jsx)(N.$W,{children:(0,W.jsx)(m.Z,{autoHeight:!0,fontSize:12,language:k.t6.YAML,onChange:function(e){z((function(n){return K(K({},n),{},{container_config:e})}))},tabSize:2,value:null===X||void 0===X?void 0:X.container_config,width:"100%"})})})]})}),[de,F,X]),fe=(0,u.useMemo)((function(){var e,n,t,r;return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(v.ZP,{children:(0,W.jsx)(j.Z,{ml:2,my:2,children:(0,W.jsx)(S.ZP,{bold:!0,sky:!0,children:"Termination policy"})})}),(0,W.jsx)(b.Z,{muted:!0}),(0,W.jsx)(j.Z,{ml:3,mr:2,my:1,children:(0,W.jsxs)(v.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,W.jsx)(g.Z,{flex:3,children:(0,W.jsx)(S.ZP,{children:"Enable auto termination"})}),(0,W.jsx)(g.Z,{flex:1,children:(0,W.jsxs)(_.Z,{fullWidth:!0,onChange:function(e){e.preventDefault(),Q((function(n){return K(K({},n),{},{termination_policy:K(K({},null===n||void 0===n?void 0:n.termination_policy),{},{enable_auto_termination:"true"===e.target.value})})}))},value:(null===q||void 0===q||null===(e=q.termination_policy)||void 0===e?void 0:e.enable_auto_termination)||"false",children:[(0,W.jsx)("option",{value:"true",children:"True"},"true"),(0,W.jsx)("option",{value:"false",children:"False"},"false")]})})]})}),(0,W.jsx)(b.Z,{muted:!0}),(0,W.jsx)(j.Z,{ml:3,mr:2,my:1,children:(0,W.jsxs)(v.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,W.jsx)(g.Z,{flex:3,children:(0,W.jsx)(S.ZP,{children:"Max idle time (in seconds)"})}),(0,W.jsx)(g.Z,{flex:1,children:(0,W.jsx)(T.Z,{onChange:function(e){Q((function(n){return K(K({},n),{},{termination_policy:K(K({},null===n||void 0===n?void 0:n.termination_policy),{},{max_idle_seconds:e.target.value})})}))},setContentOnMount:!0,type:"number",value:(null===q||void 0===q||null===(n=q.termination_policy)||void 0===n?void 0:n.max_idle_seconds)||""})})]})}),(0,W.jsx)(b.Z,{muted:!0}),(0,W.jsx)(v.ZP,{children:(0,W.jsx)(j.Z,{ml:2,my:2,children:(0,W.jsx)(S.ZP,{bold:!0,sky:!0,children:"Pre start"})})}),(0,W.jsx)(b.Z,{muted:!0}),(0,W.jsx)(j.Z,{ml:3,mr:2,my:1,children:(0,W.jsxs)(v.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,W.jsxs)(g.Z,{flex:3,justifyContent:"space-between",children:[(0,W.jsx)(S.ZP,{children:"Path to pre start script"}),(0,W.jsx)(j.Z,{mr:1,children:(0,W.jsx)(d.ZP,{iconOnly:!0,noBackground:!0,noBorder:!0,onClick:function(){return ue({isFileDisabled:function(e,n){return!n&&!e.endsWith(".py")},onFileOpen:function(e){Q((function(n){return K(K({},n),{},{pre_start_script_path:e})})),se()}})},children:(0,W.jsx)(I.gt,{})})})]}),(0,W.jsx)(g.Z,{flex:1,children:(0,W.jsx)(T.Z,{onChange:function(e){Q((function(n){return K(K({},n),{},{pre_start_script_path:e.target.value})}))},placeholder:"/",setContentOnMount:!0,value:(null===q||void 0===q?void 0:q.pre_start_script_path)||""})})]})}),(0,W.jsx)(b.Z,{muted:!0}),(0,W.jsx)(v.ZP,{children:(0,W.jsx)(j.Z,{ml:2,my:2,children:(0,W.jsx)(S.ZP,{bold:!0,sky:!0,children:"Post start"})})}),(0,W.jsx)(b.Z,{muted:!0}),(0,W.jsx)(j.Z,{ml:3,mr:2,my:1,children:(0,W.jsxs)(v.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,W.jsx)(g.Z,{flex:3,children:(0,W.jsx)(S.ZP,{children:"Command"})}),(0,W.jsx)(g.Z,{flex:1,children:(0,W.jsx)(T.Z,{monospace:!0,onChange:function(e){Q((function(n){return K(K({},n),{},{post_start:K(K({},null===n||void 0===n?void 0:n.post_start),{},{command:e.target.value})})}))},setContentOnMount:!0,value:(null===q||void 0===q||null===(t=q.post_start)||void 0===t?void 0:t.command)||""})})]})}),(0,W.jsx)(b.Z,{muted:!0}),(0,W.jsx)(j.Z,{ml:3,mr:2,my:1,children:(0,W.jsxs)(v.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,W.jsxs)(g.Z,{flex:3,justifyContent:"space-between",children:[(0,W.jsx)(S.ZP,{children:"Path to hook (optional)"}),(0,W.jsx)(j.Z,{mr:1,children:(0,W.jsx)(d.ZP,{iconOnly:!0,noBackground:!0,noBorder:!0,onClick:function(){return ue({onFileOpen:function(e){Q((function(n){return K(K({},n),{},{post_start:K(K({},null===n||void 0===n?void 0:n.post_start),{},{hook_path:e})})})),se()}})},children:(0,W.jsx)(I.gt,{})})})]}),(0,W.jsx)(g.Z,{flex:1,children:(0,W.jsx)(T.Z,{onChange:function(e){Q((function(n){return K(K({},n),{},{post_start:K(K({},null===n||void 0===n?void 0:n.post_start),{},{hook_path:e.target.value})})}))},placeholder:"/",setContentOnMount:!0,value:(null===q||void 0===q||null===(r=q.post_start)||void 0===r?void 0:r.hook_path)||""})})]})}),(0,W.jsx)(b.Z,{muted:!0})]})}),[se,q,Q,ue]);return(0,W.jsx)(O.Z,{children:(0,W.jsx)("div",{style:{width:"750px"},children:(0,W.jsxs)(j.Z,{p:2,children:[(0,W.jsx)(y.Z,{level:4,children:"Create workspace"}),(0,W.jsxs)("form",{children:[E.map((function(e){var n=e.autoComplete,t=e.disabled,r=e.label,o=e.required,i=e.type,c=e.uuid;return(0,W.jsx)(j.Z,{mt:2,children:(0,W.jsx)(T.Z,{autoComplete:n,disabled:t,label:r,onChange:function(e){z((function(n){return K(K({},n),{},(0,f.Z)({},c,e.target.value))}))},required:o,setContentOnMount:!0,type:i,value:(null===X||void 0===X?void 0:X[c])||""})},c)})),(0,W.jsx)(j.Z,{mt:2,children:(0,W.jsxs)(p.Z,{noPaddingContent:!0,children:[n===r.K8S&&(0,W.jsx)(h.Z,{title:"Kubernetes",children:le}),(0,W.jsx)(h.Z,{title:"Lifecycle (optional)",children:fe})]})})]}),ne&&(0,W.jsx)(j.Z,{mt:1,children:(0,W.jsx)(S.ZP,{small:!0,warning:!0,children:"This may take up to a few minutes... Once the service is created, it may take another 5-10 minutes for the service to be accessible."})}),!ne&&a&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(j.Z,{mt:1,children:(0,W.jsx)(S.ZP,{danger:!0,small:!0,children:"Failed to create instance, see error below."})}),(0,W.jsx)(j.Z,{mt:1,children:(0,W.jsx)(S.ZP,{danger:!0,small:!0,children:a})})]}),(0,W.jsx)(j.Z,{my:2,children:(0,W.jsxs)(v.ZP,{flexDirection:"row-reverse",children:[(0,W.jsx)(Z.ZP,{background:D.a$,bold:!0,inline:!0,loading:ne,onClick:function(){var e=X||{},t=e.name,r=e.container_config;if(t){var o=K({},X);o.name=function(e){return"ecs"===n?(0,H.We)(e,"_"):(0,H.We)(e,"-")}(t),o.container_config=F&&r,ee({workspace:K(K({},o),{},{cluster_type:n,lifecycle_config:q})})}else l("Please enter a valid name!")},uuid:"workspaces/create",children:"Create"}),(0,W.jsx)(j.Z,{ml:1}),(0,W.jsx)(Z.ZP,{bold:!0,inline:!0,onClick:t,uuid:"workspaces/cancel",children:"Cancel"})]})})]})})})},U=t(70374),G=t(93808),X=t(75499),z=t(59533),V=t(42631),q=t(8059),Q=t(4611),$=t(70515),J=t(75083);function ee(e){var n=e.clusterType,t=e.fetchWorkspaces,r=e.instance,o=e.setErrors,c=(0,u.useRef)(null),a=(0,u.useState)(),f=a[0],p=a[1],h=(0,u.useState)(),m=h[0],b=h[1],x=r.name,g=(r.task_arn,{cluster_type:n}),y=(0,s.Db)(P.ZP.workspaces.useUpdate(x,g),{onSuccess:function(e){return(0,M.wD)(e,{callback:function(){t(),p(!1)},onErrorCallback:function(e,n){return o({errors:n,response:e})}})}}),Z=(0,i.Z)(y,1)[0],O=(0,s.Db)(P.ZP.workspaces.useDelete(x,g),{onSuccess:function(e){return(0,M.wD)(e,{callback:function(){t(),p(!1)},onErrorCallback:function(e,n){return o({errors:n,response:e})}})}}),_=(0,i.Z)(O,1)[0],T=(0,u.useMemo)((function(){var e=r.status,t=[{label:function(){return(0,W.jsx)(S.ZP,{children:"Delete workspace"})},onClick:function(){return b(!0)},uuid:"delete_workspace"}];return"ecs"===n&&("STOPPED"===e?t.unshift({label:function(){return(0,W.jsx)(S.ZP,{children:"Resume instance"})},onClick:function(){return Z({workspace:{action:"resume",cluster_type:n,name:r.name,task_arn:r.task_arn}})},uuid:"resume_instance"}):"RUNNING"===e&&t.unshift({label:function(){return(0,W.jsx)(S.ZP,{children:"Stop instance"})},onClick:function(){return Z({workspace:{action:"stop",cluster_type:n,name:r.name,task_arn:r.task_arn}})},uuid:"stop_instance"})),"k8s"===n&&("STOPPED"===e?t.unshift({label:function(){return(0,W.jsx)(S.ZP,{children:"Resume instance"})},onClick:function(){return Z({workspace:{action:"resume",cluster_type:n,name:r.name}})},uuid:"resume_instance"}):"RUNNING"===e&&t.unshift({label:function(){return(0,W.jsx)(S.ZP,{children:"Stop instance"})},onClick:function(){return Z({workspace:{action:"stop",cluster_type:n,name:r.name}})},uuid:"stop_instance"})),t}),[n,r,Z]);return(0,W.jsx)(W.Fragment,{children:["ecs","k8s"].includes(n)&&(0,W.jsxs)("div",{ref:c,style:{position:"relative",zIndex:"1"},children:[(0,W.jsx)(d.ZP,{iconOnly:!0,onClick:function(){return p(!f)},children:(0,W.jsx)(I.mH,{size:2*$.iI})}),(0,W.jsx)(l.Z,{disableEscape:!0,onClickOutside:function(){p(!1),b(!1)},open:f,children:m?(0,W.jsxs)(Q.f,{leftOffset:30*-$.iI,topOffset:3*-$.iI,width:30*$.iI,children:[(0,W.jsx)(S.ZP,{children:"Are you sure you want to delete"}),(0,W.jsx)(S.ZP,{children:"this instance? You may not be"}),(0,W.jsx)(S.ZP,{children:"able to recover your data."}),(0,W.jsx)(j.Z,{mt:1}),(0,W.jsxs)(v.ZP,{children:[(0,W.jsx)(d.ZP,{danger:!0,onClick:_,children:"Confirm"}),(0,W.jsx)(j.Z,{ml:1}),(0,W.jsx)(d.ZP,{default:!0,onClick:function(){return b(!1)},children:"Cancel"})]})]}):(0,W.jsx)(U.Z,{items:T,left:25*-$.iI,open:f,parentRef:c,topOffset:3*-$.iI,uuid:"workspaces/more_actions",width:25*$.iI})})]})})}function ne(){var e=P.ZP.statuses.list().data,n=(0,u.useState)(null),t=n[0],r=n[1],o=(0,u.useMemo)((function(){var n,t;return(null===e||void 0===e||null===(n=e.statuses)||void 0===n||null===(t=n[0])||void 0===t?void 0:t.instance_type)||"ecs"}),[e]),c=P.ZP.workspaces.list({cluster_type:o},{refreshInterval:1e4,revalidateOnFocus:!0}),a=c.data,s=c.mutate,l=(0,u.useMemo)((function(){var e;return null===a||void 0===a||null===(e=a.workspaces)||void 0===e?void 0:e.filter((function(e){return e.name}))}),[a]),f=(0,B.dd)((function(){return(0,W.jsx)(F,{clusterType:o,onCancel:m,onCreate:function(){s(),m()}})}),{},[o,s],{background:!0,disableClickOutside:!0,disableEscape:!0,uuid:"configure_workspace"}),p=(0,i.Z)(f,2),h=p[0],m=p[1];return(0,W.jsx)(z.Z,{breadcrumbs:[{bold:!0,label:function(){return"Workspaces"}}],errors:t,pageName:J.L6.WORKSPACES,setErrors:r,subheaderChildren:(0,W.jsx)(Z.ZP,{background:q.eW,beforeElement:(0,W.jsx)(I.mm,{size:2.5*$.iI}),bold:!0,inline:!0,onClick:function(){return h()},uuid:"workspaces/new",children:"Create new workspace"}),children:(0,W.jsx)(X.Z,{columnFlex:[2,4,2,3,1,null],columns:[{uuid:"Status"},{uuid:"Instance Name"},{uuid:"Type"},{uuid:"Public IP address"},{uuid:"Open"},{label:function(){return""},uuid:"Actions"}],rows:null===l||void 0===l?void 0:l.map((function(e){var n=e.instance,t=n.ip,i=n.name,c=n.status,a=n.type,u="http://".concat(t);return"ecs"===o&&(u="http://".concat(t,":6789")),[(0,W.jsx)(d.ZP,{borderRadius:"".concat(V.D7,"px"),danger:"STOPPED"===c,default:"PROVISIONING"===c,notClickable:!0,padding:"6px",primary:"RUNNING"===c,warning:"PENDING"===c,children:(0,H.vg)(c)},"status"),(0,W.jsx)(S.ZP,{children:i},"name"),(0,W.jsx)(S.ZP,{children:(0,H.vg)(a)},"type"),(0,W.jsx)(S.ZP,{children:t},"ip"),(0,W.jsx)(d.ZP,{disabled:!t,iconOnly:!0,onClick:function(){return window.open(u)},children:(0,W.jsx)(I.M0,{size:2*$.iI})},"open_button"),(0,W.jsx)(ee,{clusterType:o,fetchWorkspaces:s,instance:n,setErrors:r},"more_actions")]}))})})}ne.getInitialProps=(0,o.Z)(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)})));var te=(0,G.Z)(ne)},13157:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/manage",function(){return t(2182)}])},80022:function(e,n,t){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}t.d(n,{Z:function(){return r}})},15544:function(e,n,t){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}t.d(n,{Z:function(){return r}})},13692:function(e,n,t){"use strict";t.d(n,{Z:function(){return o}});var r=t(61049);function o(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&(0,r.Z)(e,n)}},93189:function(e,n,t){"use strict";t.d(n,{Z:function(){return i}});var r=t(12539),o=t(80022);function i(e,n){if(n&&("object"===r(n)||"function"===typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(e)}},61049:function(e,n,t){"use strict";function r(e,n){return r=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},r(e,n)}t.d(n,{Z:function(){return r}})}},function(e){e.O(0,[2678,1154,844,6639,7011,4267,6990,8487,8264,7858,5499,5810,553,9774,2888,179],(function(){return n=13157,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8867],{59739:function(e,n,t){"use strict";var r=t(56669);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,n,t,o,i,c){if(c!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function n(){return e}e.isRequired=e;var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:i,resetWarningCache:o};return t.PropTypes=t,t}},47329:function(e,n,t){e.exports=t(59739)()},56669:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},55283:function(e,n,t){"use strict";t.d(n,{HC:function(){return T},HS:function(){return Z},IN:function(){return f},Kf:function(){return b},Nk:function(){return x},PB:function(){return v},PY:function(){return g},WC:function(){return p},fk:function(){return A},gE:function(){return _},j1:function(){return P},jv:function(){return O},nz:function(){return y},oh:function(){return l},qn:function(){return m},t1:function(){return j},u2:function(){return h},y9:function(){return S}});var r=t(38626),o=t(44897),i=t(44425),c=t(42631),a=t(8059),u=t(70515),s=t(47041),d=t(91437),l=68,f=1.5*u.iI,p=3*u.iI;function h(e){var n=a.eW;return i.tf.CALLBACK===e?n=a.J:i.tf.CHART===e||i.tf.CONDITIONAL===e?n=a.Hv:i.tf.CUSTOM===e?n=a.AK:i.tf.DATA_EXPORTER===e?n=a.Sr:i.tf.DATA_LOADER===e?n=a.R2:i.tf.DBT===e?n=a.J:i.tf.EXTENSION===e?n=a.FI:i.tf.GLOBAL_DATA_PRODUCT===e?n=a.yr:i.tf.SCRATCHPAD===e?n=a.Hv:i.tf.SENSOR===e?n=a.rK:i.tf.MARKDOWN===e?n=a.RK:i.tf.TRANSFORMER===e&&(n=a.eW),n}function m(e,n){var t,r,c=((null===n||void 0===n||null===(t=n.theme)||void 0===t?void 0:t.borders)||o.Z.borders).light,a=((null===n||void 0===n||null===(r=n.theme)||void 0===r?void 0:r.monotone)||o.Z.monotone).grey500,u=n||{},s=u.blockColor,d=u.isSelected,l=u.theme;return d?c=(l||o.Z).content.active:i.tf.TRANSFORMER===e||s===i.Lq.PURPLE?(c=(l||o.Z).accent.purple,a=(l||o.Z).accent.purpleLight):i.tf.DATA_EXPORTER===e||s===i.Lq.YELLOW?(c=(l||o.Z).accent.yellow,a=(l||o.Z).accent.yellowLight):i.tf.DATA_LOADER===e||s===i.Lq.BLUE?(c=(l||o.Z).accent.blue,a=(l||o.Z).accent.blueLight):i.tf.MARKDOWN===e?(c=(l||o.Z).accent.sky,a=(l||o.Z).accent.skyLight):i.tf.SENSOR===e||s===i.Lq.PINK?(c=(l||o.Z).accent.pink,a=(l||o.Z).accent.pinkLight):i.tf.DBT===e?(c=(l||o.Z).accent.dbt,a=(l||o.Z).accent.dbtLight):i.tf.EXTENSION===e||s===i.Lq.TEAL?(c=((null===l||void 0===l?void 0:l.accent)||o.Z.accent).teal,a=((null===l||void 0===l?void 0:l.accent)||o.Z.accent).tealLight):i.tf.CALLBACK===e?(c=((null===l||void 0===l?void 0:l.accent)||o.Z.accent).rose,a=((null===l||void 0===l?void 0:l.accent)||o.Z.accent).roseLight):i.tf.CONDITIONAL===e||i.tf.SCRATCHPAD===e||s===i.Lq.GREY||i.tf.CUSTOM===e&&!s?(c=(l||o.Z).content.default,a=(l||o.Z).accent.contentDefaultTransparent):i.tf.GLOBAL_DATA_PRODUCT!==e||s||(c=(l||o.Z).monotone.white,a=(l||o.Z).monotone.whiteTransparent),{accent:c,accentLight:a}}var b=(0,r.css)([""," "," "," "," "," "," ",""],(0,d.eR)(),(function(e){return!e.selected&&!e.hasError&&"\n border-color: ".concat(m(e.blockType,e).accentLight,";\n ")}),(function(e){return e.selected&&!e.hasError&&"\n border-color: ".concat(m(e.blockType,e).accent,";\n ")}),(function(e){return!e.selected&&e.hasError&&"\n border-color: ".concat((e.theme.accent||o.Z.accent).negativeTransparent,";\n ")}),(function(e){return e.selected&&e.hasError&&"\n border-color: ".concat((e.theme.borders||o.Z.borders).danger,";\n ")}),(function(e){return e.dynamicBlock&&"\n border-style: dashed !important;\n "}),(function(e){return e.dynamicChildBlock&&"\n border-style: dotted !important;\n "})),x=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-s5rj34-0"})(["border-radius:","px;position:relative;"],c.n_),g=r.default.div.withConfig({displayName:"indexstyle__HiddenBlockContainerStyle",componentId:"sc-s5rj34-1"})([""," border-radius:","px;border-style:",";border-width:","px;",""],b,c.n_,c.M8,c.mP,(function(e){return"\n background-color: ".concat((e.theme||o.Z).background.content,";\n\n &:hover {\n border-color: ").concat(m(e.blockType,e).accent,";\n }\n ")})),v=r.default.div.withConfig({displayName:"indexstyle__HeaderHorizontalBorder",componentId:"sc-s5rj34-2"})(["",""],(function(e){return"\n border-bottom: 1px solid ".concat((e.theme||o.Z).borders.darkLight,";\n ")})),y=r.default.div.withConfig({displayName:"indexstyle__BlockHeaderStyle",componentId:"sc-s5rj34-3"})([""," 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-bottom:","px;padding-top:","px;"," "," "," ",""],b,c.n_,c.n_,c.M8,c.mP,c.M8,c.mP,c.M8,c.mP,1*u.iI,1*u.iI,(function(e){return"\n background-color: ".concat((e.theme||o.Z).background.dashboard,";\n ")}),(function(e){return"undefined"!==typeof e.zIndex&&null!==e.zIndex&&"\n z-index: ".concat(6+(e.zIndex||0),";\n ")}),(function(e){return!e.noSticky&&"\n // This is to hide the horizontal scrollbar in the block header when sideBySide is enabled,\n // and the screen width is too small.\n position: sticky;\n top: -5px;\n "}),(function(e){return e.noSticky&&"\n ".concat((0,s.y$)(),"\n\n overflow-x: auto;\n overflow-y: visible;\n ")})),Z=r.default.div.withConfig({displayName:"indexstyle__SubheaderStyle",componentId:"sc-s5rj34-4"})([""," "," ",""],(function(e){return!e.darkBorder&&"\n border-bottom: 1px solid ".concat((e.theme.borders||o.Z.borders).darkLight,";\n ")}),(function(e){return e.darkBorder&&"\n border-bottom: 1px solid ".concat((e.theme.borders||o.Z.borders).medium,";\n ")}),(function(e){return!e.noBackground&&"\n background-color: ".concat((e.theme||o.Z).background.dashboard,";\n ")})),O=r.default.div.withConfig({displayName:"indexstyle__CodeContainerStyle",componentId:"sc-s5rj34-5"})([""," border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;position:relative;"," "," "," "," .line-numbers{opacity:0;}&.selected{.line-numbers{opacity:1 !important;}}"],b,c.M8,c.mP,c.M8,c.mP,(function(e){return"\n background-color: ".concat((e.theme.background||o.Z.background).codeTextarea,";\n ")}),(function(e){return!e.noPadding&&"\n padding-bottom: ".concat(u.iI,"px;\n padding-top: ").concat(u.iI,"px;\n ")}),(function(e){return e.lightBackground&&"\n background-color: ".concat((e.theme||o.Z).background.content,";\n ")}),(function(e){return!e.hideBorderBottom&&"\n border-bottom-left-radius: ".concat(c.n_,"px;\n border-bottom-right-radius: ").concat(c.n_,"px;\n border-bottom-style: ").concat(c.M8,";\n border-bottom-width: ").concat(c.mP,"px;\n overflow: hidden;\n ")})),_=r.default.div.withConfig({displayName:"indexstyle__BlockDivider",componentId:"sc-s5rj34-6"})(["align-items:center;display:flex;height:","px;justify-content:center;position:relative;z-index:8;&:hover{"," .block-divider-inner{","}}"," "," "," ",""],2*u.iI,(function(e){return e.additionalZIndex>0&&"\n z-index: ".concat(8+e.additionalZIndex,";\n ")}),(function(e){return"\n background-color: ".concat((e.theme.text||o.Z.text).fileBrowser,";\n ")}),(function(e){return!e.height&&"\n height: ".concat(2*u.iI,"px;\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),(function(e){return!e.bottom&&"\n bottom: ".concat(.5*u.iI,"px;\n ")}),(function(e){return"undefined"!==typeof e.bottom&&"\n bottom: ".concat(e.bottom,"px;\n ")})),j=r.default.div.withConfig({displayName:"indexstyle__BlockDividerInner",componentId:"sc-s5rj34-7"})(["height 1px;width:100%;position:absolute;z-index:-1;"," ",""],(function(e){return!e.top&&"\n top: ".concat(1.5*u.iI,"px;\n ")}),(function(e){return"undefined"!==typeof e.top&&"\n top: ".concat(e.top,"px;\n ")})),S=r.default.div.withConfig({displayName:"indexstyle__CodeHelperStyle",componentId:"sc-s5rj34-8"})([""," ",""],(function(e){return"\n border-bottom: 1px solid ".concat((e.theme.borders||o.Z.borders).medium,";\n padding-left: ").concat(e.normalPadding?u.iI:l,"px;\n ")}),(function(e){return!e.noMargin&&"\n margin-bottom: ".concat(1*u.iI,"px;\n padding-bottom: ").concat(1*u.iI,"px;\n ")})),T=r.default.div.withConfig({displayName:"indexstyle__TimeTrackerStyle",componentId:"sc-s5rj34-9"})(["bottom:","px;left:","px;position:absolute;"],1*u.iI,l),A=r.default.div.withConfig({displayName:"indexstyle__ScrollColunnsContainerStyle",componentId:"sc-s5rj34-10"})(["position:relative;",""],(function(e){return"\n z-index: ".concat((null===e||void 0===e?void 0:e.zIndex)||1,";\n ")})),P=r.default.div.attrs((function(e){var n=e.height,t=e.left,r=e.right,o=e.top;return{style:{position:"fixed",height:n,width:e.width,left:t,right:r,top:o,zIndex:(e.zIndex||0)+2}}})).withConfig({displayName:"indexstyle__ScrollColunnStyle",componentId:"sc-s5rj34-11"})([""])},94629:function(e,n,t){"use strict";t.d(n,{Z:function(){return T}});var r=t(82394),o=t(21831),i=t(82684),c=t(50724),a=t(82555),u=t(97618),s=t(70613),d=t(68487),l=t(68899),f=t(28598);function p(e,n){var t=e.children,r=e.noPadding;return(0,f.jsx)(l.HS,{noPadding:r,ref:n,children:t})}var h=i.forwardRef(p),m=t(62547),b=t(82571),x=t(35686),g=t(98464),v=t(46684),y=t(70515),Z=t(53808),O=t(19183);function _(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function j(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?_(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):_(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function S(e,n){var t,r=e.addProjectBreadcrumbToCustomBreadcrumbs,p=e.after,_=e.afterHeader,S=e.afterHidden,T=e.afterWidth,A=e.afterWidthOverride,P=e.appendBreadcrumbs,C=e.before,E=e.beforeWidth,R=e.breadcrumbs,w=e.children,k=e.errors,I=e.headerMenuItems,N=e.headerOffset,D=e.hideAfterCompletely,L=e.mainContainerHeader,M=e.navigationItems,H=e.setAfterHidden,B=e.setErrors,W=e.subheaderChildren,Y=e.subheaderNoPadding,K=e.title,F=e.uuid,U=(0,O.i)().width,G="dashboard_after_width_".concat(F),X="dashboard_before_width_".concat(F),z=(0,i.useRef)(null),V=(0,i.useState)(A?T:(0,Z.U2)(G,T)),q=V[0],Q=V[1],$=(0,i.useState)(!1),J=$[0],ee=$[1],ne=(0,i.useState)(C?Math.max((0,Z.U2)(X,E),13*y.iI):null),te=ne[0],re=ne[1],oe=(0,i.useState)(!1),ie=oe[0],ce=oe[1],ae=(0,i.useState)(null)[1],ue=x.ZP.projects.list({},{revalidateOnFocus:!1}).data,se=null===ue||void 0===ue?void 0:ue.projects,de={label:function(){var e;return null===se||void 0===se||null===(e=se[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},le=[];R&&(r&&le.push(de),le.push.apply(le,(0,o.Z)(R))),(null===R||void 0===R||!R.length||P)&&(null===se||void 0===se?void 0:se.length)>=1&&(null!==R&&void 0!==R&&R.length||le.unshift({bold:!P,label:function(){return K}}),le.unshift(de)),(0,i.useEffect)((function(){null===z||void 0===z||!z.current||J||ie||null===ae||void 0===ae||ae(z.current.getBoundingClientRect().width)}),[J,q,ie,te,z,ae,U]),(0,i.useEffect)((function(){J||(0,Z.t8)(G,q)}),[S,J,q,G]),(0,i.useEffect)((function(){ie||(0,Z.t8)(X,te)}),[ie,te,X]);var fe=(0,g.Z)(T);return(0,i.useEffect)((function(){A&&fe!==T&&Q(T)}),[A,T,fe]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(s.Z,{title:K}),(0,f.jsx)(d.Z,{breadcrumbs:le,menuItems:I,project:null===se||void 0===se?void 0:se[0],version:null===se||void 0===se||null===(t=se[0])||void 0===t?void 0:t.version}),(0,f.jsxs)(l.Nk,{ref:n,children:[0!==(null===M||void 0===M?void 0:M.length)&&(0,f.jsx)(l.lm,{showMore:!0,children:(0,f.jsx)(b.Z,{navigationItems:M,showMore:!0})}),(0,f.jsx)(u.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(m.Z,{after:p,afterHeader:_,afterHeightOffset:v.Mz,afterHidden:S,afterMousedownActive:J,afterWidth:q,before:C,beforeHeightOffset:v.Mz,beforeMousedownActive:ie,beforeWidth:l.k1+(C?te:0),headerOffset:N,hideAfterCompletely:!H||D,leftOffset:C?l.k1:null,mainContainerHeader:L,mainContainerRef:z,setAfterHidden:H,setAfterMousedownActive:ee,setAfterWidth:Q,setBeforeMousedownActive:ce,setBeforeWidth:re,children:[W&&(0,f.jsx)(h,{noPadding:Y,children:W}),w]})})]}),k&&(0,f.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===B||void 0===B?void 0:B(null)},children:(0,f.jsx)(a.Z,j(j({},k),{},{onClose:function(){return null===B||void 0===B?void 0:B(null)}}))})]})}var T=i.forwardRef(S)},53779:function(e,n,t){"use strict";t.d(n,{C:function(){return h},X$:function(){return p},eD:function(){return l},iW:function(){return m},nF:function(){return b}});var r=t(38626),o=t(44897),i=t(42631),c=t(70515),a=t(47041),u=t(91437),s=6.25*c.iI,d=(c.iI,100*c.iI),l=r.default.div.withConfig({displayName:"indexstyle__WindowContainerStyle",componentId:"sc-g0cszf-0"})(["border-radius:","px;width:100%;max-width:","px;z-index:101;position:absolute;overflow:hidden;top:50%;left:50%;transform:translate(-50%,-50%);",""],i.n_,d,(function(e){return"\n box-shadow: ".concat((e.theme||o.Z).shadow.window,";\n background-color: ").concat((e.theme||o.Z).background.panel,";\n ")})),f=(0,r.css)(["display:flex;align-items:center;justify-content:space-between;height:","px;padding:","px ","px;",""],s,c.iI,c.cd*c.iI,(function(e){return"\n background-color: ".concat((e.theme||o.Z).background.output,";\n ")})),p=r.default.div.withConfig({displayName:"indexstyle__WindowHeaderStyle",componentId:"sc-g0cszf-1"})([""," border-top-left-radius:","px;border-top-right-radius:","px;",""],f,i.n_,i.n_,(function(e){return"\n border-bottom: ".concat(i.YF,"px ").concat(i.M8," ").concat((e.theme||o.Z).borders.medium,";\n ")})),h=r.default.div.withConfig({displayName:"indexstyle__WindowContentStyle",componentId:"sc-g0cszf-2"})(["overflow:auto;padding:","px 0;"," "," "," ",""],c.iI,a.w5,(0,u.eR)(),(function(e){return e.minMaxHeight&&"\n max-height: ".concat(7*c.iI,"px;\n ")}),(function(e){return!e.minMaxHeight&&"\n max-height: calc(100vh - ".concat(6.5*s,"px);\n ")})),m=r.default.div.withConfig({displayName:"indexstyle__WindowFooterStyle",componentId:"sc-g0cszf-3"})([""," justify-content:flex-end;border-bottom-left-radius:","px;border-bottom-right-radius:","px;",""],f,i.n_,i.n_,(function(e){return"\n border-top: ".concat(i.YF,"px ").concat(i.M8," ").concat((e.theme||o.Z).borders.medium,";\n ")})),b=r.default.div.withConfig({displayName:"indexstyle__InputRowStyle",componentId:"sc-g0cszf-4"})(["padding:","px ","px;",""],.75*c.iI,2*c.iI,(function(e){return"\n border-bottom: ".concat(i.YF,"px ").concat(i.M8," ").concat((e.theme||o.Z).borders.medium,";\n ")}))},29480:function(e,n,t){"use strict";t.d(n,{$W:function(){return d},cl:function(){return l},cv:function(){return f},dE:function(){return u},zG:function(){return s}});var r=t(38626),o=t(44897),i=t(42631),c=t(70515),a=t(47041),u=r.default.div.withConfig({displayName:"indexstyle__SectionStyle",componentId:"sc-7a1uhf-0"})(["border-radius:","px;padding:","px;",""],i.n_,c.cd*c.iI,(function(e){return"\n background-color: ".concat((e.theme.background||o.Z.background).popup,";\n ")})),s=r.default.div.withConfig({displayName:"indexstyle__DocsStyle",componentId:"sc-7a1uhf-1"})(["> div{overflow:initial;}> div img{max-width:80%;background:white;padding:1rem;max-height:20vh;}"]),d=r.default.div.withConfig({displayName:"indexstyle__CodeEditorStyle",componentId:"sc-7a1uhf-2"})(["padding-top:","px;",""],c.cd*c.iI,(function(e){return"\n background-color: ".concat((e.theme.background||o.Z.background).codeTextarea,";\n ")})),l=r.default.div.withConfig({displayName:"indexstyle__TableContainerStyle",componentId:"sc-7a1uhf-3"})(["overflow:auto;max-height:90vh;width:100%;"," "," "," "," ",""],a.w5,(function(e){return e.hideHorizontalScrollbar&&"\n overflow-x: hidden;\n "}),(function(e){return e.width&&"\n width: ".concat(e.width,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height,";\n ")}),(function(e){return e.maxHeight&&"\n max-height: ".concat(e.maxHeight,";\n ")})),f=r.default.div.withConfig({displayName:"indexstyle__HeaderRowStyle",componentId:"sc-7a1uhf-4"})(["padding:","px;"," "," ",""],2*c.iI,(function(e){return"\n background-color: ".concat((e.theme||o.Z).interactive.defaultBackground,";\n border-bottom: ").concat(i.YF,"px ").concat(i.M8," ").concat((e.theme||o.Z).borders.medium,";\n ")}),(function(e){return e.padding&&"\n padding: ".concat(e.padding,"px;\n ")}),(function(e){return e.rounded&&"\n border-top-left-radius: ".concat(i.n_,"px;\n border-top-right-radius: ").concat(i.n_,"px;\n ")}))},4611:function(e,n,t){"use strict";t.d(n,{f:function(){return a}});var r=t(38626),o=t(44897),i=t(70515),c=t(42631),a=r.default.div.withConfig({displayName:"Tablestyle__PopupContainerStyle",componentId:"sc-8ammqd-0"})(["position:absolute;max-height:","px;z-index:10;border-radius:","px;padding:","px;"," "," "," ",""],58*i.iI,c.TR,2*i.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||o.Z.shadow).popup,";\n background-color: ").concat((e.theme.interactive||o.Z.interactive).defaultBackground,";\n ")}),(function(e){return e.leftOffset&&"\n left: ".concat(e.leftOffset,"px;\n ")}),(function(e){return e.topOffset&&"\n top: ".concat(e.topOffset,"px;\n ")}),(function(e){return e.width&&"\n width: ".concat(e.width,"px;\n ")}))},85385:function(e,n,t){"use strict";t.d(n,{Qq:function(){return h},Z7:function(){return m},cH:function(){return o},du:function(){return f},fp:function(){return l},j5:function(){return p},uM:function(){return d}});var r,o,i=t(82394),c=t(57653),a=t(82359),u=t(72473),s=t(86735),d="sideview",l=90;!function(e){e.ADDON_BLOCKS="addon_blocks",e.BLOCK_SETTINGS="block_settings",e.CALLBACKS="callbacks",e.CHARTS="charts",e.DATA="data",e.EXTENSIONS="power_ups",e.FILE_VERSIONS="file_versions",e.GRAPHS="graphs",e.INTERACTIONS="interactions",e.REPORTS="reports",e.SECRETS="secrets",e.SETTINGS="settings",e.TERMINAL="terminal",e.TREE="tree",e.VARIABLES="variables"}(o||(o={}));o.BLOCK_SETTINGS,o.CALLBACKS,o.CHARTS,o.DATA,o.EXTENSIONS,o.TREE;var f=[o.DATA];function p(e){var n,t,r,i=[{key:o.TREE,label:"Tree"},{buildLabel:function(e){var n=(e.pipeline||{}).widgets,t=void 0===n?[]:n;return(null===t||void 0===t?void 0:t.length)>=1?"Charts (".concat(t.length,")"):"Charts"},key:o.CHARTS},{buildLabel:function(e){var n=e.variables;return(null===n||void 0===n?void 0:n.length)>=1?"Variables (".concat(n.length,")"):"Variables"},key:o.VARIABLES},{buildLabel:function(e){var n=e.secrets;return(null===n||void 0===n?void 0:n.length)>=1?"Secrets (".concat(n.length,")"):"Secrets"},key:o.SECRETS}];return c.qL.PYSPARK!==(null===e||void 0===e||null===(n=e.pipeline)||void 0===n?void 0:n.type)&&i.push.apply(i,[{buildLabel:function(e){e.pipeline;return"Add-on blocks"},key:o.ADDON_BLOCKS},{buildLabel:function(e){var n=(e.pipeline||{}).extensions,t=void 0===n?{}:n,r=0;return Object.values(t).forEach((function(e){var n=e.blocks;r+=(null===n||void 0===n?void 0:n.length)||0})),r>=1?"Power ups (".concat(r,")"):"Power ups"},key:o.EXTENSIONS}]),i.push.apply(i,[{key:o.DATA,label:"Data"},{key:o.TERMINAL,label:"Terminal"},{key:o.BLOCK_SETTINGS,label:"Block settings"}]),null!==e&&void 0!==e&&null!==(t=e.project)&&void 0!==t&&null!==(r=t.features)&&void 0!==r&&r[a.d.INTERACTIONS]&&i.push({key:o.INTERACTIONS,label:"Interactions"}),i}function h(e){return(0,s.HK)(p(e),(function(e){return e.key}))}var m=(r={},(0,i.Z)(r,o.ADDON_BLOCKS,u.EJ),(0,i.Z)(r,o.BLOCK_SETTINGS,u.JG),(0,i.Z)(r,o.CALLBACKS,u.AQ),(0,i.Z)(r,o.CHARTS,u.GQ),(0,i.Z)(r,o.DATA,u.iA),(0,i.Z)(r,o.EXTENSIONS,u.Bf),(0,i.Z)(r,o.INTERACTIONS,u.yd),(0,i.Z)(r,o.SECRETS,u.Yo),(0,i.Z)(r,o.SETTINGS,u.Zr),(0,i.Z)(r,o.TERMINAL,u.oI),(0,i.Z)(r,o.TREE,u.mp),(0,i.Z)(r,o.VARIABLES,u.LO),r)},75083:function(e,n,t){"use strict";t.d(n,{HF:function(){return i},L6:function(){return r}});var r,o=t(72473);function i(e,n,t){var i=e.owner,c=(e.roles,[{Icon:o.Vz,id:r.WORKSPACES,isSelected:function(){return r.WORKSPACES===t},label:function(){return"Workspaces"},linkProps:{href:"/manage"}}]);return i&&c.push({Icon:o.NO,id:r.USERS,isSelected:function(){return r.USERS===t},label:function(){return"Users"},linkProps:{href:"/manage/users"}}),c.push.apply(c,[{Icon:o.Zr,id:r.SETTINGS,isSelected:function(){return r.SETTINGS===t},label:function(){return"Settings"},linkProps:{href:"/manage/settings"}},{Icon:o.$B,id:r.FILE_BROWSER,isSelected:function(){return r.FILE_BROWSER===t},label:function(){return"File browser"},linkProps:{href:"/manage/files"}}]),c}!function(e){e.WORKSPACES="workspaces",e.USERS="users",e.SETTINGS="settings",e.FILE_BROWSER="file_browser"}(r||(r={}))},59533:function(e,n,t){"use strict";var r=t(82684),o=t(94629),i=t(35686),c=t(70515),a=t(75083),u=t(50178),s=t(28598);n.Z=function(e){var n=e.before,t=e.breadcrumbs,d=void 0===t?[]:t,l=e.children,f=e.errors,p=e.headerOffset,h=e.mainContainerHeader,m=e.pageName,b=e.setErrors,x=e.subheaderChildren,g=i.ZP.statuses.list().data,v=(0,r.useMemo)((function(){var e,n;return null===g||void 0===g||null===(e=g.statuses)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.project_type}),[g]),y=(0,u.PR)()||{};return(0,s.jsx)(o.Z,{before:n,beforeWidth:n?50*c.iI:0,breadcrumbs:d,errors:f,headerOffset:p,mainContainerHeader:h,navigationItems:(0,a.HF)(y,v,m),setErrors:b,subheaderChildren:x,title:"Workspaces",uuid:"workspaces/index",children:l})}},44425:function(e,n,t){"use strict";t.d(n,{$W:function(){return x},DA:function(){return m},HX:function(){return Z},J8:function(){return y},L8:function(){return a},LE:function(){return f},Lk:function(){return j},Lq:function(){return p},M5:function(){return h},Q3:function(){return g},Qj:function(){return O},Ut:function(){return A},V4:function(){return T},VZ:function(){return v},dO:function(){return l},f2:function(){return S},iZ:function(){return _},t6:function(){return u},tf:function(){return d}});var r,o,i,c,a,u,s=t(82394);!function(e){e.CONDITION="condition",e.DBT_SNAPSHOT="snapshot",e.DYNAMIC="dynamic",e.DYNAMIC_CHILD="dynamic_child",e.REDUCE_OUTPUT="reduce_output",e.REPLICA="replica"}(a||(a={})),function(e){e.MARKDOWN="markdown",e.PYTHON="python",e.R="r",e.SQL="sql",e.YAML="yaml"}(u||(u={}));var d,l=(r={},(0,s.Z)(r,u.MARKDOWN,"MD"),(0,s.Z)(r,u.PYTHON,"PY"),(0,s.Z)(r,u.R,"R"),(0,s.Z)(r,u.SQL,"SQL"),(0,s.Z)(r,u.YAML,"YAML"),r),f=(o={},(0,s.Z)(o,u.MARKDOWN,"Markdown"),(0,s.Z)(o,u.PYTHON,"Python"),(0,s.Z)(o,u.R,"R"),(0,s.Z)(o,u.SQL,"SQL"),(0,s.Z)(o,u.YAML,"YAML"),o);!function(e){e.CALLBACK="callback",e.CHART="chart",e.CONDITIONAL="conditional",e.CUSTOM="custom",e.DATA_EXPORTER="data_exporter",e.DATA_LOADER="data_loader",e.DBT="dbt",e.EXTENSION="extension",e.GLOBAL_DATA_PRODUCT="global_data_product",e.SCRATCHPAD="scratchpad",e.SENSOR="sensor",e.MARKDOWN="markdown",e.TRANSFORMER="transformer"}(d||(d={}));var p,h=[d.CALLBACK,d.CONDITIONAL,d.EXTENSION];!function(e){e.BLUE="blue",e.GREY="grey",e.PINK="pink",e.PURPLE="purple",e.TEAL="teal",e.YELLOW="yellow"}(p||(p={}));var m,b,x=[d.CHART,d.CUSTOM,d.DATA_EXPORTER,d.DATA_LOADER,d.SCRATCHPAD,d.SENSOR,d.MARKDOWN,d.TRANSFORMER],g=[d.CUSTOM,d.DATA_EXPORTER,d.DATA_LOADER,d.SCRATCHPAD,d.SENSOR,d.MARKDOWN,d.TRANSFORMER],v=[d.DATA_EXPORTER,d.DATA_LOADER],y=[d.DATA_EXPORTER,d.DATA_LOADER,d.TRANSFORMER],Z=[d.DATA_EXPORTER,d.DATA_LOADER,d.DBT,d.TRANSFORMER],O=[d.CHART,d.SCRATCHPAD,d.SENSOR,d.MARKDOWN],_=[d.CALLBACK,d.CHART,d.EXTENSION,d.SCRATCHPAD,d.MARKDOWN],j=[d.CUSTOM,d.DATA_EXPORTER,d.DATA_LOADER,d.SENSOR,d.TRANSFORMER];!function(e){e.EXECUTED="executed",e.FAILED="failed",e.NOT_EXECUTED="not_executed",e.UPDATED="updated"}(m||(m={})),function(e){e.BLOCK_FILE="block_file",e.CUSTOM_BLOCK_TEMPLATE="custom_block_template",e.MAGE_TEMPLATE="mage_template"}(b||(b={}));var S=[d.CUSTOM,d.DATA_EXPORTER,d.DATA_LOADER,d.TRANSFORMER],T=(i={},(0,s.Z)(i,d.CALLBACK,"Callback"),(0,s.Z)(i,d.CHART,"Chart"),(0,s.Z)(i,d.CONDITIONAL,"Conditional"),(0,s.Z)(i,d.CUSTOM,"Custom"),(0,s.Z)(i,d.DATA_EXPORTER,"Data exporter"),(0,s.Z)(i,d.DATA_LOADER,"Data loader"),(0,s.Z)(i,d.DBT,"DBT"),(0,s.Z)(i,d.EXTENSION,"Extension"),(0,s.Z)(i,d.GLOBAL_DATA_PRODUCT,"Global data product"),(0,s.Z)(i,d.MARKDOWN,"Markdown"),(0,s.Z)(i,d.SCRATCHPAD,"Scratchpad"),(0,s.Z)(i,d.SENSOR,"Sensor"),(0,s.Z)(i,d.TRANSFORMER,"Transformer"),i),A=[d.DATA_LOADER,d.TRANSFORMER,d.DATA_EXPORTER,d.SENSOR];c={},(0,s.Z)(c,d.DATA_EXPORTER,"DE"),(0,s.Z)(c,d.DATA_LOADER,"DL"),(0,s.Z)(c,d.SCRATCHPAD,"SP"),(0,s.Z)(c,d.SENSOR,"SR"),(0,s.Z)(c,d.MARKDOWN,"MD"),(0,s.Z)(c,d.TRANSFORMER,"TF")},89706:function(e,n,t){"use strict";t.d(n,{JD:function(){return m},Lu:function(){return i},PF:function(){return f},dT:function(){return c},n6:function(){return s},nB:function(){return h},oy:function(){return p},xF:function(){return l}});var r,o,i,c,a=t(82394),u=t(44425);!function(e){e.CSV="csv",e.JSON="json",e.MD="md",e.PY="py",e.R="r",e.SH="sh",e.SQL="sql",e.TXT="txt",e.YAML="yaml",e.YML="yml"}(i||(i={})),function(e){e.INIT_PY="__init__.py",e.METADATA_YAML="metadata.yaml",e.REQS_TXT="requirements.txt"}(c||(c={}));var s=[i.PY,i.SQL],d=[i.JSON,i.MD,i.PY,i.R,i.SH,i.SQL,i.TXT,i.YAML,i.YML],l=new RegExp(d.map((function(e){return".".concat(e,"$")})).join("|")),f=(new RegExp(d.map((function(e){return".".concat(e,"$")})).join("|")),"charts"),p="pipelines",h=(r={},(0,a.Z)(r,i.MD,u.t6.MARKDOWN),(0,a.Z)(r,i.JSON,i.JSON),(0,a.Z)(r,i.PY,u.t6.PYTHON),(0,a.Z)(r,i.R,u.t6.R),(0,a.Z)(r,i.SQL,u.t6.SQL),(0,a.Z)(r,i.TXT,"text"),(0,a.Z)(r,i.YAML,u.t6.YAML),(0,a.Z)(r,i.YML,u.t6.YAML),r),m=(o={},(0,a.Z)(o,u.t6.MARKDOWN,i.MD),(0,a.Z)(o,u.t6.PYTHON,i.PY),(0,a.Z)(o,u.t6.R,i.R),(0,a.Z)(o,u.t6.SQL,i.SQL),(0,a.Z)(o,u.t6.YAML,i.YAML),(0,a.Z)(o,"text",i.TXT),o)},72098:function(e,n,t){"use strict";var r;t.d(n,{U:function(){return r}}),function(e){e.PYSPARK="pysparkkernel",e.PYTHON3="python3"}(r||(r={}))},57653:function(e,n,t){"use strict";t.d(n,{$1:function(){return m},G7:function(){return g},LM:function(){return v},Mj:function(){return y},QK:function(){return h},RH:function(){return x},a_:function(){return O},fj:function(){return _},kA:function(){return Z},qL:function(){return a},r0:function(){return b}});var r,o,i,c,a,u=t(75582),s=t(82394),d=t(72473),l=t(72098);function f(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function p(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?f(Object(t),!0).forEach((function(n){(0,s.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}!function(e){e.INTEGRATION="integration",e.PYTHON="python",e.PYSPARK="pyspark",e.STREAMING="streaming"}(a||(a={}));var h,m,b,x=(r={},(0,s.Z)(r,a.INTEGRATION,"Integration"),(0,s.Z)(r,a.PYTHON,"Python"),(0,s.Z)(r,a.PYSPARK,"PySpark"),(0,s.Z)(r,a.STREAMING,"Streaming"),r),g=(o={},(0,s.Z)(o,a.INTEGRATION,"Integration"),(0,s.Z)(o,a.PYTHON,"Standard"),(0,s.Z)(o,a.PYSPARK,"PySpark"),(0,s.Z)(o,a.STREAMING,"Streaming"),o),v="all",y=(a.PYTHON,a.INTEGRATION,a.STREAMING,i={},(0,s.Z)(i,v,d.ie),(0,s.Z)(i,a.INTEGRATION,d.YC),(0,s.Z)(i,a.PYTHON,d.El),(0,s.Z)(i,a.STREAMING,d.dB),i);!function(e){e.ACTIVE="active",e.INACTIVE="inactive",e.NO_SCHEDULES="no_schedules",e.RETRY="retry",e.RETRY_INCOMPLETE_BLOCK_RUNS="retry_incomplete_block_runs"}(h||(h={})),function(e){e.GROUP="group_by",e.HISTORY_DAYS="from_history_days",e.NO_TAGS="no_tags",e.SEARCH="search",e.STATUS="status[]",e.TAG="tag[]",e.TYPE="type[]"}(m||(m={})),function(e){e.STATUS="status",e.TAG="tag",e.TYPE="type"}(b||(b={}));var Z=[h.ACTIVE,h.INACTIVE,h.NO_SCHEDULES],O=(c={},(0,s.Z)(c,a.PYTHON,l.U.PYTHON3),(0,s.Z)(c,a.PYSPARK,l.U.PYSPARK),c),_=Object.entries(O).reduce((function(e,n){var t=(0,u.Z)(n,2),r=t[0],o=t[1];return p(p({},e),{},(0,s.Z)({},o,r))}),{})},65956:function(e,n,t){"use strict";var r=t(38626),o=t(55485),i=t(38276),c=t(30160),a=t(44897),u=t(42631),s=t(47041),d=t(70515),l=t(28598),f=(0,r.css)(["padding:","px;padding-bottom:","px;padding-top:","px;"],2*d.iI,1.5*d.iI,1.5*d.iI),p=r.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||a.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.success&&"\n background-color: ".concat((e.theme.background||a.Z.background).successLight,";\n ")}),(function(e){return e.success&&!e.borderless&&"\n border: 1px solid ".concat((e.theme.background||a.Z.background).success,";\n ")}),(function(e){return!e.dark&&!e.success&&"\n background-color: ".concat((e.theme.background||a.Z.background).panel,";\n ")}),(function(e){return e.dark&&"\n background-color: ".concat((e.theme.background||a.Z.background).content,";\n ")}),(function(e){return!e.fullHeight&&"\n height: fit-content;\n "}),(function(e){return e.maxHeight&&"\n max-height: ".concat(e.maxHeight,";\n ")}),(function(e){return e.maxWidth&&"\n max-width: ".concat(e.maxWidth,"px;\n ")}),(function(e){return e.minWidth&&"\n min-width: ".concat(e.minWidth,"px;\n\n @media (max-width: ").concat(e.minWidth,"px) {\n min-width: 0;\n }\n ")}),(function(e){return e.borderless&&"\n border: none;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),h=r.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||a.Z.background).chartBlock,";\n border-bottom: 1px solid ").concat((e.theme.interactive||a.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),f,(function(e){return e.headerPaddingVertical&&"\n padding-bottom: ".concat(e.headerPaddingVertical,"px;\n padding-top: ").concat(e.headerPaddingVertical,"px;\n ")})),m=r.default.div.withConfig({displayName:"Panel__ContentStyle",componentId:"sc-1ct8cgl-2"})(["overflow-y:auto;padding:","px;height:100%;"," "," "," "," ",""],1.75*d.iI,s.w5,(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),(function(e){return e.maxHeight&&"\n max-height: calc(".concat(e.maxHeight," - ").concat(15*d.iI,"px);\n ")}),(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),b=r.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,r=e.containerRef,a=e.contentContainerRef,u=e.dark,s=e.footer,d=e.fullHeight,f=void 0===d||d,x=e.fullWidth,g=void 0===x||x,v=e.header,y=e.headerHeight,Z=e.headerIcon,O=e.headerPaddingVertical,_=e.headerTitle,j=e.maxHeight,S=e.maxWidth,T=e.minWidth,A=e.noPadding,P=e.overflowVisible,C=e.subtitle,E=e.success;return(0,l.jsxs)(p,{borderless:n,dark:u,fullHeight:f,fullWidth:g,maxHeight:j,maxWidth:S,minWidth:T,overflowVisible:P,ref:r,success:E,children:[(v||_)&&(0,l.jsxs)(h,{headerPaddingVertical:O,height:y,children:[v&&v,_&&(0,l.jsx)(o.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,l.jsxs)(o.ZP,{alignItems:"center",children:[Z&&Z,(0,l.jsx)(i.Z,{ml:Z?1:0,children:(0,l.jsx)(c.ZP,{bold:!0,default:!0,children:_})})]})})]}),(0,l.jsxs)(m,{maxHeight:j,noPadding:A,overflowVisible:P,ref:a,children:[C&&"string"===typeof C&&(0,l.jsx)(i.Z,{mb:2,children:(0,l.jsx)(c.ZP,{default:!0,children:C})}),C&&"string"!==typeof C&&C,t]}),s&&(0,l.jsx)(b,{children:s})]})}},11074:function(e,n,t){"use strict";t.d(n,{Z:function(){return u}});var r=t(38626),o=t(44897),i=t(42631),c=r.default.div.withConfig({displayName:"indexstyle__PanelStyle",componentId:"sc-1rfr5wd-0"})(["border-radius:","px;"," ",""],i.n_,(function(e){return"\n background-color: ".concat((e.theme.background||o.Z.background).panel,";\n ")}),(function(e){return e.fullWidth&&"\n width: 100%;\n "})),a=t(28598);var u=function(e){var n=e.children,t=e.fullWidth,r=void 0===t||t;return(0,a.jsx)(c,{fullWidth:r,children:n})}},35185:function(e,n,t){"use strict";var r=t(82394),o=t(91835),i=(t(82684),t(38626)),c=t(44897),a=t(42631),u=t(70515),s=t(28598);function d(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function l(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?d(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var f=i.default.div.withConfig({displayName:"ProgressBar__ProgressBarContainerStyle",componentId:"sc-10x9ojc-0"})(["border-radius:","px;height:","px;overflow:hidden;position:relative;width:100%;",""],a.BG,.75*u.iI,(function(e){return"\n background-color: ".concat((e.theme.monotone||c.Z.monotone).grey200,";\n ")})),p=i.default.div.withConfig({displayName:"ProgressBar__ProgressBarStyle",componentId:"sc-10x9ojc-1"})(["height:inherit;position:absolute;"," "," "," ",""],(function(e){return!e.danger&&"\n background-color: ".concat((e.theme.progress||c.Z.progress).positive,";\n ")}),(function(e){return e.progress&&"\n width: ".concat(e.progress,"%;\n ")}),(function(e){return e.danger&&"\n background-color: ".concat((e.theme.progress||c.Z.progress).negative,";\n ")}),(function(e){return e.animateProgress&&"\n animation: animate-progress ".concat(e.animateProgress.duration,"ms linear forwards;\n\n @keyframes animate-progress {\n 0% {\n width: ").concat(e.animateProgress.start,"%;\n }\n\n 100% {\n width: ").concat(e.animateProgress.end,"%;\n }\n }\n ")}));n.Z=function(e){var n=(0,o.Z)({},e);return(0,s.jsx)(f,l(l({},n),{},{children:(0,s.jsx)(p,l({},n))}))}},2182:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return te}});var r,o=t(77837),i=t(75582),c=t(38860),a=t.n(c),u=t(82684),s=t(69864),d=t(71180),l=t(50724),f=t(82394),p=t(32013),h=t(98777),m=t(75810),b=t(15338),x=t(10553),g=t(97618),v=t(55485),y=t(85854),Z=t(93369),O=t(11074),_=t(44085),j=t(38276),S=t(30160),T=t(17488),A=t(69650),P=t(35686),C=["ReadWriteOnce","ReadWriteMany","ReadOnlyMany"],E=[{label:"Workspace name",required:!0,uuid:"name"}],R=[{label:"Service account name",placeholder:"default",uuid:"service_account_name"},{label:"Ingress name",labelDescription:"If you want to add the workspace to an existing ingress, enter the name of the ingress here. Otherwise, the workspace can be accessed through the service.",placeholder:"my-ingress",uuid:"ingress_name"}],w=[{label:"Storage class name",placeholder:"default",uuid:"storage_class_name"},{label:"Storage request size (in GB)",type:"number",uuid:"storage_request_size"}],k=t(44425),I=t(72473);!function(e){e.K8S="k8s",e.ECS="ecs",e.CLOUD_RUN="cloud_run",e.EMR="emr"}(r||(r={}));var N=t(29480),D=t(79633),L=t(53779),M=t(72619),H=t(81728),B=t(89538),W=t(28598);function Y(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function K(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Y(Object(t),!0).forEach((function(n){(0,f.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Y(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var F=function(e){var n=e.clusterType,t=e.onCancel,o=e.onCreate,c=(0,u.useState)(),a=c[0],l=c[1],Y=(0,u.useState)(),F=Y[0],U=Y[1],G=(0,u.useState)(null),X=G[0],z=G[1],V=(0,u.useState)(null),q=V[0],Q=V[1],$=(0,s.Db)(P.ZP.workspaces.useCreate(),{onSuccess:function(e){return(0,M.wD)(e,{callback:function(e){e.error_message?l(e.error_message):o()},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.message;l(r),console.log(t,r)}})}}),J=(0,i.Z)($,2),ee=J[0],ne=J[1].isLoading,te=P.ZP.files.list(),re=te.data,oe=te.mutate,ie=(0,u.useMemo)((function(){return(null===re||void 0===re?void 0:re.files)||[]}),[re]),ce=(0,B.dd)((function(e){return(0,W.jsxs)(L.eD,{children:[(0,W.jsxs)(L.X$,{children:[(0,W.jsx)(g.Z,{alignItems:"center",children:(0,W.jsx)(S.ZP,{disableWordBreak:!0,monospace:!0,children:"Select file"})}),(0,W.jsx)(d.ZP,{iconOnly:!0,onClick:se,children:(0,W.jsx)(I.x8,{muted:!0})})]}),(0,W.jsx)(L.C,{children:(0,W.jsx)(x.Z,{disableContextMenu:!0,fetchFileTree:oe,files:ie,isFileDisabled:null===e||void 0===e?void 0:e.isFileDisabled,openFile:e.onFileOpen})})]})}),{},[ie,oe],{background:!0,uuid:"file_selector"}),ae=(0,i.Z)(ce,2),ue=ae[0],se=ae[1],de=(0,u.useCallback)((function(e){var n=e.autoComplete,t=e.disabled,r=e.label,o=e.labelDescription,i=e.placeholder,c=e.required,a=e.type,u=e.uuid;return(0,W.jsxs)("div",{children:[(0,W.jsx)(b.Z,{muted:!0}),(0,W.jsx)(j.Z,{ml:3,mr:2,my:1,children:(0,W.jsxs)(v.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,W.jsxs)(g.Z,{flex:2,flexDirection:"column",children:[(0,W.jsx)(S.ZP,{children:r}),o&&(0,W.jsx)(S.ZP,{muted:!0,children:o})]}),(0,W.jsx)(g.Z,{flex:1}),(0,W.jsx)(g.Z,{flex:1,children:(0,W.jsx)(T.Z,{autoComplete:n,disabled:t,onChange:function(e){z((function(n){return K(K({},n),{},(0,f.Z)({},u,e.target.value))}))},placeholder:i,required:c,setContentOnMount:!0,type:a,value:(null===X||void 0===X?void 0:X[u])||""})})]})})]},u)}),[X,z]),le=(0,u.useMemo)((function(){return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(v.ZP,{children:(0,W.jsx)(j.Z,{ml:2,my:2,children:(0,W.jsx)(S.ZP,{bold:!0,sky:!0,children:"General"})})}),R.map((function(e){return de(e)})),(0,W.jsx)(b.Z,{muted:!0}),(0,W.jsx)(v.ZP,{children:(0,W.jsx)(j.Z,{ml:2,my:2,children:(0,W.jsx)(S.ZP,{bold:!0,sky:!0,children:"Volume claim params"})})}),w.map((function(e){return de(e)})),(0,W.jsx)(b.Z,{muted:!0}),(0,W.jsx)(j.Z,{ml:3,mr:2,my:1,children:(0,W.jsxs)(v.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,W.jsx)(g.Z,{flex:3,children:(0,W.jsx)(S.ZP,{children:"Access mode"})}),(0,W.jsx)(g.Z,{flex:1,children:(0,W.jsx)(_.Z,{fullWidth:!0,label:"Access mode",onChange:function(e){e.preventDefault(),z((function(n){return K(K({},n),{},{storage_access_mode:e.target.value})}))},placeholder:"Access mode",value:null===X||void 0===X?void 0:X.storage_access_mode,children:C.map((function(e){return(0,W.jsx)("option",{value:e,children:e},e)}))})})]})}),(0,W.jsx)(b.Z,{muted:!0}),(0,W.jsx)(j.Z,{ml:2,my:2,children:(0,W.jsxs)(v.ZP,{alignItems:"center",children:[(0,W.jsx)(A.Z,{checked:F,compact:!0,onCheck:function(){return U((function(e){return!e}))}}),(0,W.jsx)(j.Z,{ml:1,children:(0,W.jsx)(S.ZP,{bold:!0,sky:!0,children:"Configure container"})})]})}),(0,W.jsx)(b.Z,{muted:!0}),F&&(0,W.jsx)(j.Z,{ml:3,mr:2,my:1,children:(0,W.jsx)(N.$W,{children:(0,W.jsx)(m.Z,{autoHeight:!0,fontSize:12,language:k.t6.YAML,onChange:function(e){z((function(n){return K(K({},n),{},{container_config:e})}))},tabSize:2,value:null===X||void 0===X?void 0:X.container_config,width:"100%"})})})]})}),[de,F,X]),fe=(0,u.useMemo)((function(){var e,n,t,r;return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(v.ZP,{children:(0,W.jsx)(j.Z,{ml:2,my:2,children:(0,W.jsx)(S.ZP,{bold:!0,sky:!0,children:"Termination policy"})})}),(0,W.jsx)(b.Z,{muted:!0}),(0,W.jsx)(j.Z,{ml:3,mr:2,my:1,children:(0,W.jsxs)(v.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,W.jsx)(g.Z,{flex:3,children:(0,W.jsx)(S.ZP,{children:"Enable auto termination"})}),(0,W.jsx)(g.Z,{flex:1,children:(0,W.jsxs)(_.Z,{fullWidth:!0,onChange:function(e){e.preventDefault(),Q((function(n){return K(K({},n),{},{termination_policy:K(K({},null===n||void 0===n?void 0:n.termination_policy),{},{enable_auto_termination:"true"===e.target.value})})}))},value:(null===q||void 0===q||null===(e=q.termination_policy)||void 0===e?void 0:e.enable_auto_termination)||"false",children:[(0,W.jsx)("option",{value:"true",children:"True"},"true"),(0,W.jsx)("option",{value:"false",children:"False"},"false")]})})]})}),(0,W.jsx)(b.Z,{muted:!0}),(0,W.jsx)(j.Z,{ml:3,mr:2,my:1,children:(0,W.jsxs)(v.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,W.jsx)(g.Z,{flex:3,children:(0,W.jsx)(S.ZP,{children:"Max idle time (in seconds)"})}),(0,W.jsx)(g.Z,{flex:1,children:(0,W.jsx)(T.Z,{onChange:function(e){Q((function(n){return K(K({},n),{},{termination_policy:K(K({},null===n||void 0===n?void 0:n.termination_policy),{},{max_idle_seconds:e.target.value})})}))},setContentOnMount:!0,type:"number",value:(null===q||void 0===q||null===(n=q.termination_policy)||void 0===n?void 0:n.max_idle_seconds)||""})})]})}),(0,W.jsx)(b.Z,{muted:!0}),(0,W.jsx)(v.ZP,{children:(0,W.jsx)(j.Z,{ml:2,my:2,children:(0,W.jsx)(S.ZP,{bold:!0,sky:!0,children:"Pre start"})})}),(0,W.jsx)(b.Z,{muted:!0}),(0,W.jsx)(j.Z,{ml:3,mr:2,my:1,children:(0,W.jsxs)(v.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,W.jsxs)(g.Z,{flex:3,justifyContent:"space-between",children:[(0,W.jsx)(S.ZP,{children:"Path to pre start script"}),(0,W.jsx)(j.Z,{mr:1,children:(0,W.jsx)(d.ZP,{iconOnly:!0,noBackground:!0,noBorder:!0,onClick:function(){return ue({isFileDisabled:function(e,n){return!n&&!e.endsWith(".py")},onFileOpen:function(e){Q((function(n){return K(K({},n),{},{pre_start_script_path:e})})),se()}})},children:(0,W.jsx)(I.gt,{})})})]}),(0,W.jsx)(g.Z,{flex:1,children:(0,W.jsx)(T.Z,{onChange:function(e){Q((function(n){return K(K({},n),{},{pre_start_script_path:e.target.value})}))},placeholder:"/",setContentOnMount:!0,value:(null===q||void 0===q?void 0:q.pre_start_script_path)||""})})]})}),(0,W.jsx)(b.Z,{muted:!0}),(0,W.jsx)(v.ZP,{children:(0,W.jsx)(j.Z,{ml:2,my:2,children:(0,W.jsx)(S.ZP,{bold:!0,sky:!0,children:"Post start"})})}),(0,W.jsx)(b.Z,{muted:!0}),(0,W.jsx)(j.Z,{ml:3,mr:2,my:1,children:(0,W.jsxs)(v.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,W.jsx)(g.Z,{flex:3,children:(0,W.jsx)(S.ZP,{children:"Command"})}),(0,W.jsx)(g.Z,{flex:1,children:(0,W.jsx)(T.Z,{monospace:!0,onChange:function(e){Q((function(n){return K(K({},n),{},{post_start:K(K({},null===n||void 0===n?void 0:n.post_start),{},{command:e.target.value})})}))},setContentOnMount:!0,value:(null===q||void 0===q||null===(t=q.post_start)||void 0===t?void 0:t.command)||""})})]})}),(0,W.jsx)(b.Z,{muted:!0}),(0,W.jsx)(j.Z,{ml:3,mr:2,my:1,children:(0,W.jsxs)(v.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,W.jsxs)(g.Z,{flex:3,justifyContent:"space-between",children:[(0,W.jsx)(S.ZP,{children:"Path to hook (optional)"}),(0,W.jsx)(j.Z,{mr:1,children:(0,W.jsx)(d.ZP,{iconOnly:!0,noBackground:!0,noBorder:!0,onClick:function(){return ue({onFileOpen:function(e){Q((function(n){return K(K({},n),{},{post_start:K(K({},null===n||void 0===n?void 0:n.post_start),{},{hook_path:e})})})),se()}})},children:(0,W.jsx)(I.gt,{})})})]}),(0,W.jsx)(g.Z,{flex:1,children:(0,W.jsx)(T.Z,{onChange:function(e){Q((function(n){return K(K({},n),{},{post_start:K(K({},null===n||void 0===n?void 0:n.post_start),{},{hook_path:e.target.value})})}))},placeholder:"/",setContentOnMount:!0,value:(null===q||void 0===q||null===(r=q.post_start)||void 0===r?void 0:r.hook_path)||""})})]})}),(0,W.jsx)(b.Z,{muted:!0})]})}),[se,q,Q,ue]);return(0,W.jsx)(O.Z,{children:(0,W.jsx)("div",{style:{width:"750px"},children:(0,W.jsxs)(j.Z,{p:2,children:[(0,W.jsx)(y.Z,{level:4,children:"Create workspace"}),(0,W.jsxs)("form",{children:[E.map((function(e){var n=e.autoComplete,t=e.disabled,r=e.label,o=e.required,i=e.type,c=e.uuid;return(0,W.jsx)(j.Z,{mt:2,children:(0,W.jsx)(T.Z,{autoComplete:n,disabled:t,label:r,onChange:function(e){z((function(n){return K(K({},n),{},(0,f.Z)({},c,e.target.value))}))},required:o,setContentOnMount:!0,type:i,value:(null===X||void 0===X?void 0:X[c])||""})},c)})),(0,W.jsx)(j.Z,{mt:2,children:(0,W.jsxs)(p.Z,{noPaddingContent:!0,children:[n===r.K8S&&(0,W.jsx)(h.Z,{title:"Kubernetes",children:le}),(0,W.jsx)(h.Z,{title:"Lifecycle (optional)",children:fe})]})})]}),ne&&(0,W.jsx)(j.Z,{mt:1,children:(0,W.jsx)(S.ZP,{small:!0,warning:!0,children:"This may take up to a few minutes... Once the service is created, it may take another 5-10 minutes for the service to be accessible."})}),!ne&&a&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(j.Z,{mt:1,children:(0,W.jsx)(S.ZP,{danger:!0,small:!0,children:"Failed to create instance, see error below."})}),(0,W.jsx)(j.Z,{mt:1,children:(0,W.jsx)(S.ZP,{danger:!0,small:!0,children:a})})]}),(0,W.jsx)(j.Z,{my:2,children:(0,W.jsxs)(v.ZP,{flexDirection:"row-reverse",children:[(0,W.jsx)(Z.ZP,{background:D.a$,bold:!0,inline:!0,loading:ne,onClick:function(){var e=X||{},t=e.name,r=e.container_config;if(t){var o=K({},X);o.name=function(e){return"ecs"===n?(0,H.We)(e,"_"):(0,H.We)(e,"-")}(t),o.container_config=F&&r,ee({workspace:K(K({},o),{},{cluster_type:n,lifecycle_config:q})})}else l("Please enter a valid name!")},uuid:"workspaces/create",children:"Create"}),(0,W.jsx)(j.Z,{ml:1}),(0,W.jsx)(Z.ZP,{bold:!0,inline:!0,onClick:t,uuid:"workspaces/cancel",children:"Cancel"})]})})]})})})},U=t(70374),G=t(93808),X=t(75499),z=t(59533),V=t(42631),q=t(8059),Q=t(4611),$=t(70515),J=t(75083);function ee(e){var n=e.clusterType,t=e.fetchWorkspaces,r=e.instance,o=e.setErrors,c=(0,u.useRef)(null),a=(0,u.useState)(),f=a[0],p=a[1],h=(0,u.useState)(),m=h[0],b=h[1],x=r.name,g=(r.task_arn,{cluster_type:n}),y=(0,s.Db)(P.ZP.workspaces.useUpdate(x,g),{onSuccess:function(e){return(0,M.wD)(e,{callback:function(){t(),p(!1)},onErrorCallback:function(e,n){return o({errors:n,response:e})}})}}),Z=(0,i.Z)(y,1)[0],O=(0,s.Db)(P.ZP.workspaces.useDelete(x,g),{onSuccess:function(e){return(0,M.wD)(e,{callback:function(){t(),p(!1)},onErrorCallback:function(e,n){return o({errors:n,response:e})}})}}),_=(0,i.Z)(O,1)[0],T=(0,u.useMemo)((function(){var e=r.status,t=[{label:function(){return(0,W.jsx)(S.ZP,{children:"Delete workspace"})},onClick:function(){return b(!0)},uuid:"delete_workspace"}];return"ecs"===n&&("STOPPED"===e?t.unshift({label:function(){return(0,W.jsx)(S.ZP,{children:"Resume instance"})},onClick:function(){return Z({workspace:{action:"resume",cluster_type:n,name:r.name,task_arn:r.task_arn}})},uuid:"resume_instance"}):"RUNNING"===e&&t.unshift({label:function(){return(0,W.jsx)(S.ZP,{children:"Stop instance"})},onClick:function(){return Z({workspace:{action:"stop",cluster_type:n,name:r.name,task_arn:r.task_arn}})},uuid:"stop_instance"})),"k8s"===n&&("STOPPED"===e?t.unshift({label:function(){return(0,W.jsx)(S.ZP,{children:"Resume instance"})},onClick:function(){return Z({workspace:{action:"resume",cluster_type:n,name:r.name}})},uuid:"resume_instance"}):"RUNNING"===e&&t.unshift({label:function(){return(0,W.jsx)(S.ZP,{children:"Stop instance"})},onClick:function(){return Z({workspace:{action:"stop",cluster_type:n,name:r.name}})},uuid:"stop_instance"})),t}),[n,r,Z]);return(0,W.jsx)(W.Fragment,{children:["ecs","k8s"].includes(n)&&(0,W.jsxs)("div",{ref:c,style:{position:"relative",zIndex:"1"},children:[(0,W.jsx)(d.ZP,{iconOnly:!0,onClick:function(){return p(!f)},children:(0,W.jsx)(I.mH,{size:2*$.iI})}),(0,W.jsx)(l.Z,{disableEscape:!0,onClickOutside:function(){p(!1),b(!1)},open:f,children:m?(0,W.jsxs)(Q.f,{leftOffset:30*-$.iI,topOffset:3*-$.iI,width:30*$.iI,children:[(0,W.jsx)(S.ZP,{children:"Are you sure you want to delete"}),(0,W.jsx)(S.ZP,{children:"this instance? You may not be"}),(0,W.jsx)(S.ZP,{children:"able to recover your data."}),(0,W.jsx)(j.Z,{mt:1}),(0,W.jsxs)(v.ZP,{children:[(0,W.jsx)(d.ZP,{danger:!0,onClick:_,children:"Confirm"}),(0,W.jsx)(j.Z,{ml:1}),(0,W.jsx)(d.ZP,{default:!0,onClick:function(){return b(!1)},children:"Cancel"})]})]}):(0,W.jsx)(U.Z,{items:T,left:25*-$.iI,open:f,parentRef:c,topOffset:3*-$.iI,uuid:"workspaces/more_actions",width:25*$.iI})})]})})}function ne(){var e=P.ZP.statuses.list().data,n=(0,u.useState)(null),t=n[0],r=n[1],o=(0,u.useMemo)((function(){var n,t;return(null===e||void 0===e||null===(n=e.statuses)||void 0===n||null===(t=n[0])||void 0===t?void 0:t.instance_type)||"ecs"}),[e]),c=P.ZP.workspaces.list({cluster_type:o},{refreshInterval:1e4,revalidateOnFocus:!0}),a=c.data,s=c.mutate,l=(0,u.useMemo)((function(){var e;return null===a||void 0===a||null===(e=a.workspaces)||void 0===e?void 0:e.filter((function(e){return e.name}))}),[a]),f=(0,B.dd)((function(){return(0,W.jsx)(F,{clusterType:o,onCancel:m,onCreate:function(){s(),m()}})}),{},[o,s],{background:!0,disableClickOutside:!0,disableEscape:!0,uuid:"configure_workspace"}),p=(0,i.Z)(f,2),h=p[0],m=p[1];return(0,W.jsx)(z.Z,{breadcrumbs:[{bold:!0,label:function(){return"Workspaces"}}],errors:t,pageName:J.L6.WORKSPACES,setErrors:r,subheaderChildren:(0,W.jsx)(Z.ZP,{background:q.eW,beforeElement:(0,W.jsx)(I.mm,{size:2.5*$.iI}),bold:!0,inline:!0,onClick:function(){return h()},uuid:"workspaces/new",children:"Create new workspace"}),children:(0,W.jsx)(X.Z,{columnFlex:[2,4,2,3,1,null],columns:[{uuid:"Status"},{uuid:"Instance Name"},{uuid:"Type"},{uuid:"URL/IP"},{uuid:"Open"},{label:function(){return""},uuid:"Actions"}],rows:null===l||void 0===l?void 0:l.map((function(e){var n=e.instance,t=e.url,i=n.ip,c=n.name,a=n.status,u=n.type,l=t||i,f=l;return l&&!l.includes("http")&&(f="http://".concat(l),"ecs"===o&&(f="http://".concat(l,":6789"))),[(0,W.jsx)(d.ZP,{borderRadius:"".concat(V.D7,"px"),danger:"STOPPED"===a,default:"PROVISIONING"===a,notClickable:!0,padding:"6px",primary:"RUNNING"===a,warning:"PENDING"===a,children:(0,H.vg)(a)},"status"),(0,W.jsx)(S.ZP,{children:c},"name"),(0,W.jsx)(S.ZP,{children:(0,H.vg)(u)},"type"),(0,W.jsx)(S.ZP,{children:l||"N/A"},"ip"),(0,W.jsx)(d.ZP,{disabled:!l,iconOnly:!0,onClick:function(){return window.open(f)},children:(0,W.jsx)(I.M0,{size:2*$.iI})},"open_button"),(0,W.jsx)(ee,{clusterType:o,fetchWorkspaces:s,instance:n,setErrors:r},"more_actions")]}))})})}ne.getInitialProps=(0,o.Z)(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)})));var te=(0,G.Z)(ne)},13157:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/manage",function(){return t(2182)}])},80022:function(e,n,t){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}t.d(n,{Z:function(){return r}})},15544:function(e,n,t){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}t.d(n,{Z:function(){return r}})},13692:function(e,n,t){"use strict";t.d(n,{Z:function(){return o}});var r=t(61049);function o(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&(0,r.Z)(e,n)}},93189:function(e,n,t){"use strict";t.d(n,{Z:function(){return i}});var r=t(12539),o=t(80022);function i(e,n){if(n&&("object"===r(n)||"function"===typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(e)}},61049:function(e,n,t){"use strict";function r(e,n){return r=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},r(e,n)}t.d(n,{Z:function(){return r}})}},function(e){e.O(0,[2678,1154,844,6639,7011,4267,6990,8487,8264,7858,5499,5810,553,9774,2888,179],(function(){return n=13157,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|