mage-ai 0.8.25__py3-none-any.whl → 0.8.27__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/data_integrations/sources/constants.py +1 -0
- mage_ai/data_preparation/executors/streaming_pipeline_executor.py +2 -1
- mage_ai/data_preparation/logging/logger_manager.py +7 -1
- mage_ai/data_preparation/models/block/__init__.py +60 -17
- mage_ai/data_preparation/models/block/sql/__init__.py +64 -17
- mage_ai/data_preparation/models/block/sql/utils/shared.py +49 -3
- mage_ai/data_preparation/models/variable.py +6 -1
- mage_ai/data_preparation/repo_manager.py +5 -2
- mage_ai/data_preparation/shared/secrets.py +6 -3
- mage_ai/data_preparation/templates/sensors/bigquery.py +32 -0
- mage_ai/data_preparation/templates/sensors/mysql.py +33 -0
- mage_ai/data_preparation/templates/sensors/postgres.py +33 -0
- mage_ai/data_preparation/templates/sensors/redshift.py +33 -0
- mage_ai/data_preparation/templates/sensors/s3.py +11 -7
- mage_ai/data_preparation/templates/sensors/snowflake.py +33 -0
- mage_ai/io/postgres.py +13 -1
- mage_ai/server/constants.py +1 -1
- mage_ai/server/frontend_dist/404.html +2 -2
- mage_ai/server/frontend_dist/404.html.html +2 -2
- mage_ai/server/frontend_dist/_next/static/WbTBCvyjQQ9UFFLZOU1E5/_buildManifest.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/2344-f8ae030d6a6863ae.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/2626-e7fa4f83f8214c97.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{4178-663d9f70bffc7a47.js → 4178-a6d1bd2be4706f51.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/4261-88b0103fad331620.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{4538-8a3c3e47be976ede.js → 4538-347283088b83c6bf.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5141-57c3868a80196da8.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{5477-e2cc1ca7108ebc6b.js → 5477-b439f211b6146a11.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{5872-103815a4a043489b.js → 5872-1767c45ee6690ae5.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{5896-f84e336fb8877027.js → 5896-10a676bcc86978cc.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/6166-705b4fdecaf11e63.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/6532-b1bd0b3f422abec8.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{7400-26ce25ec46728ef7.js → 7400-a48b270726b9eef5.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/8180-8de652170ea5ed93.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/839-15c54471a9a9bf2e.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{9386-4b9e157e18dd2c65.js → 9386-d4cc11bab74eec8d.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{9832-c8b8970bb522f302.js → 9832-f97919376d52e3bf.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{_app-624f87faa4b5ee9a.js → _app-5f3dbed367342a3d.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-3046bc53d24917c7.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipeline-runs-f6059e27e601627c.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/{[...slug]-123556bdfe2e194b.js → [...slug]-050ef37b6672100a.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-5f95bb4c3a2d7d46.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-270c0198eeef1542.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-c9f1df40e0aa6981.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/{block-runs-e0eb0098dcbf27ac.js → block-runs-d74850779dbe87b3.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-848544a58563dbec.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{monitors-204daac985c03b62.js → monitors-675171cfd7d7b346.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/{[run]-44533e244974a422.js → [run]-b2955f0ff960894e.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{runs-2d41695001370abc.js → runs-219960b3cc4742e3.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-1767a2f57f887ef7.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-0f373aaa7deb98c9.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{triggers-181343d8eb894426.js → triggers-bea0439ca2a862ba.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-7446a70bdd8381a5.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{preferences-cd6121ffe82e3834.js → preferences-997acba85f777259.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/sync-data-91fbb84976467947.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users-d72dfc596e943cc4.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/sign-in-c99e74aa506a6cfd.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-4c9ad80f8f9d1074.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-783b9526167f1249.js +1 -0
- mage_ai/server/frontend_dist/index.html +2 -2
- mage_ai/server/frontend_dist/manage.html +4 -4
- mage_ai/server/frontend_dist/pipeline-runs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +5 -5
- mage_ai/server/frontend_dist/pipelines/[pipeline].html +2 -2
- mage_ai/server/frontend_dist/pipelines.html +5 -5
- mage_ai/server/frontend_dist/settings/account/profile.html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/preferences.html +5 -5
- mage_ai/server/frontend_dist/settings/workspace/{sync_data.html → sync-data.html} +5 -5
- mage_ai/server/frontend_dist/settings/workspace/users.html +5 -5
- mage_ai/server/frontend_dist/settings.html +2 -2
- mage_ai/server/frontend_dist/sign-in.html +9 -9
- mage_ai/server/frontend_dist/terminal.html +5 -5
- mage_ai/server/frontend_dist/test.html +3 -3
- mage_ai/server/frontend_dist/triggers.html +5 -5
- mage_ai/server/server.py +1 -6
- mage_ai/shared/security.py +9 -2
- mage_ai/shared/utils.py +7 -0
- mage_ai/tests/data_preparation/models/block/__init__.py +0 -0
- mage_ai/tests/data_preparation/models/block/test_sql.py +42 -0
- mage_ai/tests/data_preparation/models/test_block.py +63 -0
- mage_ai/tests/shared/test_security.py +6 -6
- {mage_ai-0.8.25.dist-info → mage_ai-0.8.27.dist-info}/METADATA +1 -1
- {mage_ai-0.8.25.dist-info → mage_ai-0.8.27.dist-info}/RECORD +99 -92
- mage_ai/server/frontend_dist/_next/static/ErmV1Ii-luEqAYMZkbkmO/_buildManifest.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1830-3882c19d710feadd.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/2344-a82a406b72fe782b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/2626-501fffa58c71ee7c.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3688-562e0f129b09d1cd.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3699-dcc0946dd0709216.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/4463-777e71000be29fc4.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/6532-baf1818fbc89e6c1.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/6567-2488118bb39a9d99.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-11d6cbf2313f0689.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipeline-runs-c226d1e215d66129.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-26974ca695994804.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-1de289b75e9c5bf1.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-72011b08ef047531.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-3b17a6d28cdde471.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-c31fec2be1160dbe.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-3a60003fce7dfb93.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-0e88f39d4980fc10.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/sync_data-64e03c3a285d301e.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users-ff24167e21f2f0cf.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/sign-in-404d934deb8950d5.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-90abd9c4dfca2556.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-6540e41d09691d6b.js +0 -1
- /mage_ai/server/frontend_dist/_next/static/{ErmV1Ii-luEqAYMZkbkmO → WbTBCvyjQQ9UFFLZOU1E5}/_middlewareManifest.js +0 -0
- /mage_ai/server/frontend_dist/_next/static/{ErmV1Ii-luEqAYMZkbkmO → WbTBCvyjQQ9UFFLZOU1E5}/_ssgManifest.js +0 -0
- {mage_ai-0.8.25.dist-info → mage_ai-0.8.27.dist-info}/LICENSE +0 -0
- {mage_ai-0.8.25.dist-info → mage_ai-0.8.27.dist-info}/WHEEL +0 -0
- {mage_ai-0.8.25.dist-info → mage_ai-0.8.27.dist-info}/entry_points.txt +0 -0
- {mage_ai-0.8.25.dist-info → mage_ai-0.8.27.dist-info}/top_level.txt +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4178],{65597:function(e,n,i){i.d(n,{f:function(){return c}});var t=i(9518),r=i(23831),o=i(49125),u=i(73942),c=t.default.div.withConfig({displayName:"Tablestyle__PopupContainerStyle",componentId:"sc-8ammqd-0"})(["position:absolute;max-height:","px;z-index:10;border-radius:","px;padding:","px;"," "," "," ",""],58*o.iI,u.TR,2*o.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||r.Z.shadow).popup,";\n background-color: ").concat((e.theme.interactive||r.Z.interactive).defaultBackground,";\n ")}),(function(e){return e.leftOffset&&"\n left: ".concat(e.leftOffset,"px;\n ")}),(function(e){return e.topOffset&&"\n top: ".concat(e.topOffset,"px;\n ")}),(function(e){return e.width&&"\n width: ".concat(e.width,"px;\n ")}))},97496:function(e,n,i){var t=i(75582),r=i(12691),o=i.n(r),u=i(34376),c=i.n(u),l=i(82684),s=i(83455),a=i(60328),d=i(47999),p=i(93461),f=i(67971),h=i(10919),g=i(47409),j=i(86673),x=i(54283),m=i(87815),b=i(19711),Z=i(82531),_=i(23831),C=i(73942),v=i(10503),E=i(65597),I=i(93348),O=i(45838),P=i(49125),y=i(19395),w=i(9736),k=i(96510),A=i(28598);function D(e){var n=e.cancelingRunId,i=e.disabled,r=e.isLoadingCancelPipeline,o=e.onCancel,u=e.onSuccess,c=e.pipelineRun,p=e.setCancelingRunId,h=e.setErrors,m=e.setShowConfirmationId,O=e.showConfirmationId,y=(0,w.Ct)(),D=c||{},N=D.id,L=D.pipeline_schedule_id,S=D.pipeline_schedule_token,T=D.pipeline_schedule_type,R=D.status,V=r&&N===n&&g.V.RUNNING===R,U=(0,s.Db)(I.Xm.API===T&&S?Z.ZP.pipeline_runs.pipeline_schedules.useCreateWithParent(L,S):Z.ZP.pipeline_runs.pipeline_schedules.useCreate(L),{onSuccess:function(e){return(0,k.wD)(e,{callback:function(){u()},onErrorCallback:function(e,n){return h({errors:n,response:e})}})}}),M=(0,t.Z)(U,1)[0],F=(0,l.useCallback)((function(){m(null),M({pipeline_run:{execution_date:null===c||void 0===c?void 0:c.execution_date,pipeline_schedule_id:null===c||void 0===c?void 0:c.pipeline_schedule_id,pipeline_uuid:null===c||void 0===c?void 0:c.pipeline_uuid,variables:null===c||void 0===c?void 0:c.variables}})}),[M,c,m]),B=(0,l.useCallback)((function(){m(null),p(N),o({id:N,status:g.V.CANCELLED})}),[o,N,p,m]);return(0,A.jsxs)("div",{style:{position:"relative"},children:[(0,A.jsx)(a.Z,{backgroundColor:V&&_.Z.accent.yellow,beforeIcon:g.V.INITIAL!==R&&(0,A.jsxs)(A.Fragment,{children:[g.V.COMPLETED===R&&(0,A.jsx)(v.Jr,{size:2*P.iI}),[g.V.FAILED,g.V.CANCELLED].includes(R)&&(0,A.jsx)(v.Py,{inverted:g.V.CANCELLED===R&&!y,size:2*P.iI}),[g.V.RUNNING].includes(R)&&(0,A.jsx)(x.Z,{color:V?_.Z.status.negative:_.Z.monotone.white,small:!0})]}),borderRadius:C.D7,danger:g.V.FAILED===R&&!y,default:g.V.INITIAL===R,disabled:i||y,loading:!c,onClick:function(){return m(N)},padding:"6px",primary:g.V.RUNNING===R&&!V&&!y,warning:g.V.CANCELLED===R&&!y,children:i?"Ready":V?"Canceling":g.D[R]}),(0,A.jsx)(d.Z,{onClickOutside:function(){return m(null)},open:O===N,children:(0,A.jsxs)(E.f,{children:[[g.V.RUNNING,g.V.INITIAL].includes(R)&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(b.ZP,{bold:!0,color:"#9ECBFF",children:"Run is in progress"}),(0,A.jsx)(j.Z,{mb:1}),(0,A.jsxs)(b.ZP,{children:["This pipeline run is currently ongoing. Retrying will cancel",(0,A.jsx)("br",{}),"the current pipeline run."]}),(0,A.jsx)(b.ZP,{}),(0,A.jsx)(j.Z,{mt:1,children:(0,A.jsxs)(f.Z,{children:[(0,A.jsx)(a.Z,{onClick:function(){B(),F()},children:"Retry run"}),(0,A.jsx)(j.Z,{ml:1}),(0,A.jsx)(a.Z,{onClick:B,children:"Cancel run"})]})})]}),[g.V.CANCELLED,g.V.FAILED,g.V.COMPLETED].includes(R)&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsxs)(b.ZP,{bold:!0,color:"#9ECBFF",children:["Run ",R]}),(0,A.jsx)(j.Z,{mb:1}),(0,A.jsx)(b.ZP,{children:"Retry the run with changes you have made to the pipeline."}),(0,A.jsx)(j.Z,{mb:1}),(0,A.jsx)(a.Z,{onClick:F,children:"Retry run"})]})]})})]})}n.Z=function(e){var n=e.disableRowSelect,i=e.emptyMessage,r=void 0===i?"No runs available":i,u=e.fetchPipelineRuns,d=e.onClickRow,x=e.pipelineRuns,_=e.selectedRun,E=e.setErrors,I=(0,l.useState)(null),w=I[0],N=I[1],L=(0,l.useState)(null),S=L[0],T=L[1],R=(0,s.Db)((function(e){var n=e.id,i=e.status;return Z.ZP.pipeline_runs.useUpdate(n)({pipeline_run:{status:i}})}),{onSuccess:function(e){return(0,k.wD)(e,{callback:function(){N(null),u()},onErrorCallback:function(e,n){N(null),E({errors:n,response:e})}})}}),V=(0,t.Z)(R,2),U=V[0],M=V[1].isLoading,F=[null,1,2,1,1,null],B=[{uuid:"Status"},{uuid:"Pipeline UUID"},{uuid:"Date"},{uuid:"Trigger"},{uuid:"Block runs"},{uuid:"Completed"},{uuid:"Logs"}];return!n&&d&&(F.push(null),B.push({label:function(){return""},uuid:"action"})),(0,A.jsx)(O.cl,{minHeight:30*P.iI,overflowVisible:!!S,children:0===(null===x||void 0===x?void 0:x.length)?(0,A.jsx)(j.Z,{px:3,py:1,children:(0,A.jsx)(b.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:r})}):(0,A.jsx)(m.Z,{columnFlex:F,columns:B,isSelectedRow:function(e){return!n&&x[e].id===(null===_||void 0===_?void 0:_.id)},onClickRow:n?null:d,rowVerticalPadding:6,rows:null===x||void 0===x?void 0:x.map((function(e,i){var t=e.block_runs_count,r=e.completed_at,l=e.execution_date,s=e.id,m=e.pipeline_schedule_id,Z=e.pipeline_schedule_name,_=e.pipeline_uuid,I=e.status,O=!s&&!I,k=[];return k=i>0&&x[i-1].execution_date===e.execution_date&&x[i-1].pipeline_schedule_id===e.pipeline_schedule_id?[(0,A.jsx)(j.Z,{ml:1,children:(0,A.jsxs)(f.Z,{alignItems:"center",children:[(0,A.jsx)(v.TT,{size:2*P.iI,useStroke:!0}),(0,A.jsx)(a.Z,{borderRadius:C.D7,notClickable:!0,padding:"6px",children:(0,A.jsx)(b.ZP,{muted:!0,children:g.D[I]})})]})},"row_status"),(0,A.jsx)(b.ZP,{default:!0,monospace:!0,muted:!0,children:_},"row_pipeline_uuid"),(0,A.jsx)(b.ZP,{default:!0,monospace:!0,muted:!0,children:"-"},"row_date_retry"),(0,A.jsx)(b.ZP,{default:!0,monospace:!0,muted:!0,children:"-"},"row_trigger_retry"),(0,A.jsx)(o(),{as:"/pipelines/".concat(_,"/runs/").concat(s),href:"/pipelines/[pipeline]/runs/[run]",passHref:!0,children:(0,A.jsx)(h.Z,{bold:!0,muted:!0,children:"See block runs (".concat(t,")")})},"row_block_runs"),(0,A.jsx)(b.ZP,{monospace:!0,muted:!0,children:r&&(0,y.eI)(r).toISOString().split(".")[0]||"-"},"row_completed"),(0,A.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return c().push("/pipelines/".concat(_,"/logs?pipeline_run_id[]=").concat(s))},children:(0,A.jsx)(v.B4,{default:!0,size:2*P.iI})},"row_logs")]:[(0,A.jsx)(D,{cancelingRunId:w,disabled:O,isLoadingCancelPipeline:M,onCancel:U,onSuccess:u,pipelineRun:e,setCancelingRunId:N,setErrors:E,setShowConfirmationId:T,showConfirmationId:S},"row_retry_button"),(0,A.jsx)(b.ZP,{default:!0,monospace:!0,children:_},"row_pipeline_uuid"),(0,A.jsx)(b.ZP,{default:!0,monospace:!0,children:l&&(0,y.eI)(l).toISOString().split(".")[0]||"-"},"row_date"),(0,A.jsx)(o(),{as:"/pipelines/".concat(_,"/triggers/").concat(m),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,A.jsx)(h.Z,{bold:!0,sameColorAsText:!0,children:Z})},"row_trigger"),(0,A.jsx)(o(),{as:"/pipelines/".concat(_,"/runs/").concat(s),href:"/pipelines/[pipeline]/runs/[run]",passHref:!0,children:(0,A.jsx)(h.Z,{bold:!0,disabled:O,sameColorAsText:!0,children:O?"":"See block runs (".concat(t,")")})},"row_block_runs"),(0,A.jsx)(b.ZP,{default:!0,monospace:!0,children:r&&(0,y.eI)(r).toISOString().split(".")[0]||"-"},"row_completed"),(0,A.jsx)(a.Z,{default:!0,disabled:O,iconOnly:!0,noBackground:!0,onClick:function(){return c().push("/pipelines/".concat(_,"/logs?pipeline_run_id[]=").concat(s))},children:(0,A.jsx)(v.B4,{default:!0,size:2*P.iI})},"row_item_13")],!n&&d&&k.push((0,A.jsx)(p.Z,{flex:1,justifyContent:"flex-end",children:(0,A.jsx)(v._Q,{default:!0,size:2*P.iI})})),k})),uuid:"pipeline-runs"})})}},19395:function(e,n,i){i.d(n,{IJ:function(){return a},Vx:function(){return p},eI:function(){return d},gU:function(){return h},tL:function(){return f},vJ:function(){return g}});var t,r,o=i(82394),u=i(92083),c=i.n(u);function l(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,t)}return i}function s(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?l(Object(i),!0).forEach((function(n){(0,o.Z)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):l(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}function a(e){return null===e||void 0===e?void 0:e.reduce((function(e,n){var i=n.block_uuid,t=n.completed_at,r=n.started_at,u=n.status,l=null;r&&t&&(l=c()(t).valueOf()-c()(r).valueOf());return s(s({},e),{},(0,o.Z)({},i,{runtime:l,status:u}))}),{})}function d(e){if(!e)return null;var n=new Date(c()(e).valueOf()),i=Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds());return new Date(i)}function p(e){return d(e).toISOString().split(".")[0]}!function(e){e.DAY="day",e.HOUR="hour",e.MINUTE="minute",e.SECOND="second"}(r||(r={}));var f=(t={},(0,o.Z)(t,r.DAY,86400),(0,o.Z)(t,r.HOUR,3600),(0,o.Z)(t,r.MINUTE,60),(0,o.Z)(t,r.SECOND,1),t);function h(e){var n=r.SECOND,i=e;return e%86400===0?(i/=86400,n=r.DAY):e%3600===0?(i/=3600,n=r.HOUR):e%60===0&&(i/=60,n=r.MINUTE),{time:i,unit:n}}function g(e,n){return e*f[n]}},51099:function(e,n,i){i.d(n,{Q:function(){return a}});i(82684);var t=i(60328),r=i(67971),o=i(86673),u=i(10503),c=i(73899),l=i(49125),s=i(28598),a=22;n.Z=function(e){var n=e.page,i=e.maxPages,a=e.onUpdate,d=e.totalPages,p=[],f=i;if(f>d)p=Array.from({length:d},(function(e,n){return n}));else{var h=Math.floor(f/2),g=n-h;n+h>=d?(g=d-f+2,f-=2):n-h<=0?(g=0,f-=2):(f-=4,g=n-Math.floor(f/2)),p=Array.from({length:f},(function(e,n){return n+g}))}return(0,s.jsx)(s.Fragment,{children:d>0&&(0,s.jsxs)(r.Z,{alignItems:"center",children:[(0,s.jsx)(t.Z,{disabled:0===n,onClick:function(){return a(n-1)},children:(0,s.jsx)(u.Hd,{size:1.5*l.iI,stroke:"#AEAEAE"})}),!p.includes(0)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(t.Z,{onClick:function(){return a(0)},borderLess:!0,noBackground:!0,children:1})},0),!p.includes(1)&&(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(t.Z,{notClickable:!0,noBackground:!0,noPadding:!0,children:"..."})},0)]}),p.map((function(e){return(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(t.Z,{onClick:function(){e!==n&&a(e)},notClickable:e===n,backgroundColor:e===n&&c.a$,borderLess:!0,noBackground:!0,children:e+1})},e)})),!p.includes(d-1)&&(0,s.jsxs)(s.Fragment,{children:[!p.includes(d-2)&&(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(t.Z,{notClickable:!0,noBackground:!0,noPadding:!0,children:"..."})},0),(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(t.Z,{onClick:function(){return a(d-1)},borderLess:!0,noBackground:!0,children:d})},d-1)]}),(0,s.jsx)(o.Z,{ml:1}),(0,s.jsx)(t.Z,{disabled:n===d-1,onClick:function(){return a(n+1)},children:(0,s.jsx)(u.Kw,{size:1.5*l.iI,stroke:"#AEAEAE"})})]})})}},47409:function(e,n,i){i.d(n,{D:function(){return u},V:function(){return o}});var t,r=i(82394),o=i(66050).V,u=(t={},(0,r.Z)(t,o.CANCELLED,"Cancelled"),(0,r.Z)(t,o.COMPLETED,"Done"),(0,r.Z)(t,o.FAILED,"Failed"),(0,r.Z)(t,o.INITIAL,"Ready"),(0,r.Z)(t,o.RUNNING,"Running"),t)},93348:function(e,n,i){i.d(n,{TR:function(){return d},U5:function(){return l},Xm:function(){return o},Z4:function(){return a},fq:function(){return c},kJ:function(){return s}});var t,r,o,u=i(82394);!function(e){e.API="api",e.EVENT="event",e.TIME="time"}(o||(o={}));var c,l,s,a=(t={},(0,u.Z)(t,o.API,(function(){return"API"})),(0,u.Z)(t,o.EVENT,(function(){return"event"})),(0,u.Z)(t,o.TIME,(function(){return"schedule"})),t);!function(e){e.ACTIVE="active",e.INACTIVE="inactive"}(c||(c={})),function(e){e.ONCE="@once",e.HOURLY="@hourly",e.DAILY="@daily",e.WEEKLY="@weekly",e.MONTHLY="@monthly"}(l||(l={})),function(e){e.CREATED_AT="created_at",e.NAME="name",e.PIPELINE="pipeline_uuid",e.STATUS="status",e.TYPE="schedule_type"}(s||(s={}));var d=(r={},(0,u.Z)(r,s.CREATED_AT,"Created at"),(0,u.Z)(r,s.NAME,"Name"),(0,u.Z)(r,s.PIPELINE,"Pipeline"),(0,u.Z)(r,s.STATUS,"Status"),(0,u.Z)(r,s.TYPE,"Type"),r)},33766:function(e,n,i){i.d(n,{g_:function(){return p},u7:function(){return d}});var t=i(75582),r=i(82394),o=i(34376),u=i.n(o),c=i(59e3),l=i(24224);function s(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,t)}return i}function a(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?s(Object(i),!0).forEach((function(n){(0,r.Z)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):s(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}function d(e){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.replaceParams,o=i.pushHistory,l=r?{}:(0,c.iV)();n=window.location.pathname;var s=o?u().push:u().replace,d=a(a({},l),e);Object.entries(e).forEach((function(e){var n=(0,t.Z)(e,2),i=n[0],r=n[1];"undefined"!==typeof r&&null!==r||delete d[i]}));var p=(0,c.uM)(d);p.length>=1&&(p="?".concat(p));var f="".concat(n.split("?")[0]).concat(p);return s(u().router.pathname,f,{shallow:!0})}function p(e,n,i){var r=i.addingMultipleValues,o=i.isList,u=i.itemsPerPage,c=i.resetLimitParams,s=a({},e);r?Object.entries(n).forEach((function(e){var n=(0,t.Z)(e,2),i=n[0],r=n[1];if(Array.isArray(r)){var o="".concat(i,"[]");s[o]=r.map(String)}})):o?Object.entries(n).forEach((function(e){var n=(0,t.Z)(e,2),i=n[0],r=n[1],o=String(r),u="".concat(i,"[]"),c=s[u];c&&Array.isArray(c)?(c=c.map(String)).includes(o)?s[u]=(0,l.Od)(c,(function(e){return e===o})):s[u]=c.concat(o):s[u]=[o]})):s=a(a({},s),n),c&&(s._limit=u||20,s._offset=0),d(s)}}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4178],{65597:function(e,n,i){i.d(n,{f:function(){return c}});var t=i(9518),r=i(23831),o=i(49125),u=i(73942),c=t.default.div.withConfig({displayName:"Tablestyle__PopupContainerStyle",componentId:"sc-8ammqd-0"})(["position:absolute;max-height:","px;z-index:10;border-radius:","px;padding:","px;"," "," "," ",""],58*o.iI,u.TR,2*o.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||r.Z.shadow).popup,";\n background-color: ").concat((e.theme.interactive||r.Z.interactive).defaultBackground,";\n ")}),(function(e){return e.leftOffset&&"\n left: ".concat(e.leftOffset,"px;\n ")}),(function(e){return e.topOffset&&"\n top: ".concat(e.topOffset,"px;\n ")}),(function(e){return e.width&&"\n width: ".concat(e.width,"px;\n ")}))},97496:function(e,n,i){var t=i(75582),r=i(12691),o=i.n(r),u=i(34376),c=i.n(u),l=i(82684),s=i(83455),a=i(60328),d=i(47999),p=i(93461),f=i(67971),h=i(10919),g=i(47409),j=i(86673),x=i(54283),m=i(58180),b=i(19711),Z=i(82531),_=i(23831),v=i(73942),C=i(10503),E=i(65597),I=i(93348),O=i(45838),y=i(49125),P=i(19395),w=i(9736),k=i(96510),A=i(28598);function D(e){var n=e.cancelingRunId,i=e.disabled,r=e.isLoadingCancelPipeline,o=e.onCancel,u=e.onSuccess,c=e.pipelineRun,p=e.setCancelingRunId,h=e.setErrors,m=e.setShowConfirmationId,O=e.showConfirmationId,P=(0,w.Ct)(),D=c||{},N=D.id,L=D.pipeline_schedule_id,S=D.pipeline_schedule_token,T=D.pipeline_schedule_type,R=D.status,V=r&&N===n&&g.V.RUNNING===R,U=(0,s.Db)(I.Xm.API===T&&S?Z.ZP.pipeline_runs.pipeline_schedules.useCreateWithParent(L,S):Z.ZP.pipeline_runs.pipeline_schedules.useCreate(L),{onSuccess:function(e){return(0,k.wD)(e,{callback:function(){u()},onErrorCallback:function(e,n){return h({errors:n,response:e})}})}}),M=(0,t.Z)(U,1)[0],F=(0,l.useCallback)((function(){m(null),M({pipeline_run:{execution_date:null===c||void 0===c?void 0:c.execution_date,pipeline_schedule_id:null===c||void 0===c?void 0:c.pipeline_schedule_id,pipeline_uuid:null===c||void 0===c?void 0:c.pipeline_uuid,variables:null===c||void 0===c?void 0:c.variables}})}),[M,c,m]),H=(0,l.useCallback)((function(){m(null),p(N),o({id:N,status:g.V.CANCELLED})}),[o,N,p,m]);return(0,A.jsxs)("div",{style:{position:"relative"},children:[(0,A.jsx)(a.Z,{backgroundColor:V&&_.Z.accent.yellow,beforeIcon:g.V.INITIAL!==R&&(0,A.jsxs)(A.Fragment,{children:[g.V.COMPLETED===R&&(0,A.jsx)(C.Jr,{size:2*y.iI}),[g.V.FAILED,g.V.CANCELLED].includes(R)&&(0,A.jsx)(C.Py,{inverted:g.V.CANCELLED===R&&!P,size:2*y.iI}),[g.V.RUNNING].includes(R)&&(0,A.jsx)(x.Z,{color:V?_.Z.status.negative:_.Z.monotone.white,small:!0})]}),borderRadius:v.D7,danger:g.V.FAILED===R&&!P,default:g.V.INITIAL===R,disabled:i||P,loading:!c,onClick:function(){return m(N)},padding:"6px",primary:g.V.RUNNING===R&&!V&&!P,warning:g.V.CANCELLED===R&&!P,children:i?"Ready":V?"Canceling":g.D[R]}),(0,A.jsx)(d.Z,{onClickOutside:function(){return m(null)},open:O===N,children:(0,A.jsxs)(E.f,{children:[[g.V.RUNNING,g.V.INITIAL].includes(R)&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(b.ZP,{bold:!0,color:"#9ECBFF",children:"Run is in progress"}),(0,A.jsx)(j.Z,{mb:1}),(0,A.jsxs)(b.ZP,{children:["This pipeline run is currently ongoing. Retrying will cancel",(0,A.jsx)("br",{}),"the current pipeline run."]}),(0,A.jsx)(b.ZP,{}),(0,A.jsx)(j.Z,{mt:1,children:(0,A.jsxs)(f.Z,{children:[(0,A.jsx)(a.Z,{onClick:function(){H(),F()},children:"Retry run"}),(0,A.jsx)(j.Z,{ml:1}),(0,A.jsx)(a.Z,{onClick:H,children:"Cancel run"})]})})]}),[g.V.CANCELLED,g.V.FAILED,g.V.COMPLETED].includes(R)&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsxs)(b.ZP,{bold:!0,color:"#9ECBFF",children:["Run ",R]}),(0,A.jsx)(j.Z,{mb:1}),(0,A.jsx)(b.ZP,{children:"Retry the run with changes you have made to the pipeline."}),(0,A.jsx)(j.Z,{mb:1}),(0,A.jsx)(a.Z,{onClick:F,children:"Retry run"})]})]})})]})}n.Z=function(e){var n=e.disableRowSelect,i=e.emptyMessage,r=void 0===i?"No runs available":i,u=e.fetchPipelineRuns,d=e.onClickRow,x=e.pipelineRuns,_=e.selectedRun,E=e.setErrors,I=(0,l.useState)(null),w=I[0],N=I[1],L=(0,l.useState)(null),S=L[0],T=L[1],R=(0,s.Db)((function(e){var n=e.id,i=e.status;return Z.ZP.pipeline_runs.useUpdate(n)({pipeline_run:{status:i}})}),{onSuccess:function(e){return(0,k.wD)(e,{callback:function(){N(null),u()},onErrorCallback:function(e,n){N(null),E({errors:n,response:e})}})}}),V=(0,t.Z)(R,2),U=V[0],M=V[1].isLoading,F=[null,1,2,1,1,null],H=[{uuid:"Status"},{uuid:"Pipeline UUID"},{uuid:"Date"},{uuid:"Trigger"},{uuid:"Block runs"},{uuid:"Completed"},{uuid:"Logs"}];return!n&&d&&(F.push(null),H.push({label:function(){return""},uuid:"action"})),(0,A.jsx)(O.cl,{minHeight:30*y.iI,overflowVisible:!!S,children:0===(null===x||void 0===x?void 0:x.length)?(0,A.jsx)(j.Z,{px:3,py:1,children:(0,A.jsx)(b.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:r})}):(0,A.jsx)(m.Z,{columnFlex:F,columns:H,isSelectedRow:function(e){return!n&&x[e].id===(null===_||void 0===_?void 0:_.id)},onClickRow:n?null:d,rowVerticalPadding:6,rows:null===x||void 0===x?void 0:x.map((function(e,i){var t=e.block_runs_count,r=e.completed_at,l=e.execution_date,s=e.id,m=e.pipeline_schedule_id,Z=e.pipeline_schedule_name,_=e.pipeline_uuid,I=e.status,O=!s&&!I,k=[];return k=i>0&&x[i-1].execution_date===e.execution_date&&x[i-1].pipeline_schedule_id===e.pipeline_schedule_id?[(0,A.jsx)(j.Z,{ml:1,children:(0,A.jsxs)(f.Z,{alignItems:"center",children:[(0,A.jsx)(C.TT,{size:2*y.iI,useStroke:!0}),(0,A.jsx)(a.Z,{borderRadius:v.D7,notClickable:!0,padding:"6px",children:(0,A.jsx)(b.ZP,{muted:!0,children:g.D[I]})})]})},"row_status"),(0,A.jsx)(b.ZP,{default:!0,monospace:!0,muted:!0,children:_},"row_pipeline_uuid"),(0,A.jsx)(b.ZP,{default:!0,monospace:!0,muted:!0,children:"-"},"row_date_retry"),(0,A.jsx)(b.ZP,{default:!0,monospace:!0,muted:!0,children:"-"},"row_trigger_retry"),(0,A.jsx)(o(),{as:"/pipelines/".concat(_,"/runs/").concat(s),href:"/pipelines/[pipeline]/runs/[run]",passHref:!0,children:(0,A.jsx)(h.Z,{bold:!0,muted:!0,children:"See block runs (".concat(t,")")})},"row_block_runs"),(0,A.jsx)(b.ZP,{monospace:!0,muted:!0,children:r&&(0,P.eI)(r).toISOString().split(".")[0]||"-"},"row_completed"),(0,A.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return c().push("/pipelines/".concat(_,"/logs?pipeline_run_id[]=").concat(s))},children:(0,A.jsx)(C.B4,{default:!0,size:2*y.iI})},"row_logs")]:[(0,A.jsx)(D,{cancelingRunId:w,disabled:O,isLoadingCancelPipeline:M,onCancel:U,onSuccess:u,pipelineRun:e,setCancelingRunId:N,setErrors:E,setShowConfirmationId:T,showConfirmationId:S},"row_retry_button"),(0,A.jsx)(b.ZP,{default:!0,monospace:!0,children:_},"row_pipeline_uuid"),(0,A.jsx)(b.ZP,{default:!0,monospace:!0,children:l&&(0,P.eI)(l).toISOString().split(".")[0]||"-"},"row_date"),(0,A.jsx)(o(),{as:"/pipelines/".concat(_,"/triggers/").concat(m),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,A.jsx)(h.Z,{bold:!0,sameColorAsText:!0,children:Z})},"row_trigger"),(0,A.jsx)(o(),{as:"/pipelines/".concat(_,"/runs/").concat(s),href:"/pipelines/[pipeline]/runs/[run]",passHref:!0,children:(0,A.jsx)(h.Z,{bold:!0,disabled:O,sameColorAsText:!0,children:O?"":"See block runs (".concat(t,")")})},"row_block_runs"),(0,A.jsx)(b.ZP,{default:!0,monospace:!0,children:r&&(0,P.eI)(r).toISOString().split(".")[0]||"-"},"row_completed"),(0,A.jsx)(a.Z,{default:!0,disabled:O,iconOnly:!0,noBackground:!0,onClick:function(){return c().push("/pipelines/".concat(_,"/logs?pipeline_run_id[]=").concat(s))},children:(0,A.jsx)(C.B4,{default:!0,size:2*y.iI})},"row_item_13")],!n&&d&&k.push((0,A.jsx)(p.Z,{flex:1,justifyContent:"flex-end",children:(0,A.jsx)(C._Q,{default:!0,size:2*y.iI})})),k})),uuid:"pipeline-runs"})})}},19395:function(e,n,i){i.d(n,{IJ:function(){return a},Vx:function(){return p},eI:function(){return d},gU:function(){return h},tL:function(){return f},vJ:function(){return g}});var t,r,o=i(82394),u=i(92083),c=i.n(u);function l(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,t)}return i}function s(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?l(Object(i),!0).forEach((function(n){(0,o.Z)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):l(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}function a(e){return null===e||void 0===e?void 0:e.reduce((function(e,n){var i=n.block_uuid,t=n.completed_at,r=n.started_at,u=n.status,l=null;r&&t&&(l=c()(t).valueOf()-c()(r).valueOf());return s(s({},e),{},(0,o.Z)({},i,{runtime:l,status:u}))}),{})}function d(e){if(!e)return null;var n=new Date(c()(e).valueOf()),i=Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds());return new Date(i)}function p(e){return d(e).toISOString().split(".")[0]}!function(e){e.DAY="day",e.HOUR="hour",e.MINUTE="minute",e.SECOND="second"}(r||(r={}));var f=(t={},(0,o.Z)(t,r.DAY,86400),(0,o.Z)(t,r.HOUR,3600),(0,o.Z)(t,r.MINUTE,60),(0,o.Z)(t,r.SECOND,1),t);function h(e){var n=r.SECOND,i=e;return e%86400===0?(i/=86400,n=r.DAY):e%3600===0?(i/=3600,n=r.HOUR):e%60===0&&(i/=60,n=r.MINUTE),{time:i,unit:n}}function g(e,n){return e*f[n]}},51099:function(e,n,i){i.d(n,{Q:function(){return a}});i(82684);var t=i(60328),r=i(67971),o=i(86673),u=i(10503),c=i(73899),l=i(49125),s=i(28598),a=22;n.Z=function(e){var n=e.page,i=e.maxPages,a=e.onUpdate,d=e.totalPages,p=[],f=i;if(f>d)p=Array.from({length:d},(function(e,n){return n}));else{var h=Math.floor(f/2),g=n-h;n+h>=d?(g=d-f+2,f-=2):n-h<=0?(g=0,f-=2):(f-=4,g=n-Math.floor(f/2)),p=Array.from({length:f},(function(e,n){return n+g}))}return(0,s.jsx)(s.Fragment,{children:d>0&&(0,s.jsxs)(r.Z,{alignItems:"center",children:[(0,s.jsx)(t.Z,{disabled:0===n,onClick:function(){return a(n-1)},children:(0,s.jsx)(u.Hd,{size:1.5*l.iI,stroke:"#AEAEAE"})}),!p.includes(0)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(t.Z,{onClick:function(){return a(0)},borderLess:!0,noBackground:!0,children:1})},0),!p.includes(1)&&(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(t.Z,{notClickable:!0,noBackground:!0,noPadding:!0,children:"..."})},0)]}),p.map((function(e){return(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(t.Z,{onClick:function(){e!==n&&a(e)},notClickable:e===n,backgroundColor:e===n&&c.a$,borderLess:!0,noBackground:!0,children:e+1})},e)})),!p.includes(d-1)&&(0,s.jsxs)(s.Fragment,{children:[!p.includes(d-2)&&(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(t.Z,{notClickable:!0,noBackground:!0,noPadding:!0,children:"..."})},0),(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(t.Z,{onClick:function(){return a(d-1)},borderLess:!0,noBackground:!0,children:d})},d-1)]}),(0,s.jsx)(o.Z,{ml:1}),(0,s.jsx)(t.Z,{disabled:n===d-1,onClick:function(){return a(n+1)},children:(0,s.jsx)(u.Kw,{size:1.5*l.iI,stroke:"#AEAEAE"})})]})})}},47409:function(e,n,i){i.d(n,{D:function(){return u},V:function(){return o}});var t,r=i(82394),o=i(66050).V,u=(t={},(0,r.Z)(t,o.CANCELLED,"Cancelled"),(0,r.Z)(t,o.COMPLETED,"Done"),(0,r.Z)(t,o.FAILED,"Failed"),(0,r.Z)(t,o.INITIAL,"Ready"),(0,r.Z)(t,o.RUNNING,"Running"),t)},93348:function(e,n,i){i.d(n,{TR:function(){return d},U5:function(){return l},Xm:function(){return o},Z4:function(){return a},fq:function(){return c},kJ:function(){return s}});var t,r,o,u=i(82394);!function(e){e.API="api",e.EVENT="event",e.TIME="time"}(o||(o={}));var c,l,s,a=(t={},(0,u.Z)(t,o.API,(function(){return"API"})),(0,u.Z)(t,o.EVENT,(function(){return"event"})),(0,u.Z)(t,o.TIME,(function(){return"schedule"})),t);!function(e){e.ACTIVE="active",e.INACTIVE="inactive"}(c||(c={})),function(e){e.ONCE="@once",e.HOURLY="@hourly",e.DAILY="@daily",e.WEEKLY="@weekly",e.MONTHLY="@monthly"}(l||(l={})),function(e){e.CREATED_AT="created_at",e.NAME="name",e.PIPELINE="pipeline_uuid",e.STATUS="status",e.TYPE="schedule_type"}(s||(s={}));var d=(r={},(0,u.Z)(r,s.CREATED_AT,"Created at"),(0,u.Z)(r,s.NAME,"Name"),(0,u.Z)(r,s.PIPELINE,"Pipeline"),(0,u.Z)(r,s.STATUS,"Status"),(0,u.Z)(r,s.TYPE,"Type"),r)},33766:function(e,n,i){i.d(n,{g_:function(){return p},u7:function(){return d}});var t=i(75582),r=i(82394),o=i(34376),u=i.n(o),c=i(59e3),l=i(24224);function s(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,t)}return i}function a(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?s(Object(i),!0).forEach((function(n){(0,r.Z)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):s(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}function d(e){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.replaceParams,o=i.pushHistory,l=r?{}:(0,c.iV)();n=window.location.pathname;var s=o?u().push:u().replace,d=a(a({},l),e);Object.entries(e).forEach((function(e){var n=(0,t.Z)(e,2),i=n[0],r=n[1];"undefined"!==typeof r&&null!==r||delete d[i]}));var p=(0,c.uM)(d);p.length>=1&&(p="?".concat(p));var f="".concat(n.split("?")[0]).concat(p);return s(u().router.pathname,f,{shallow:!0})}function p(e,n,i){var r=i.addingMultipleValues,o=i.isList,u=i.itemsPerPage,c=i.pushHistory,s=void 0!==c&&c,p=i.resetLimitParams,f=a({},e);r?Object.entries(n).forEach((function(e){var n=(0,t.Z)(e,2),i=n[0],r=n[1];if(Array.isArray(r)){var o="".concat(i,"[]");f[o]=r.map(String)}})):o?Object.entries(n).forEach((function(e){var n=(0,t.Z)(e,2),i=n[0],r=n[1],o=String(r),u="".concat(i,"[]"),c=f[u];c&&Array.isArray(c)?(c=c.map(String)).includes(o)?f[u]=(0,l.Od)(c,(function(e){return e===o})):f[u]=c.concat(o):f[u]=[o]})):f=a(a({},f),n),p&&(f._limit=u||20,f._offset=0),d(f,{pushHistory:s})}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4261],{7432:function(n,e,t){var o={"./Active4D.json":[266,266],"./All Hallows Eve.json":[4450,4450],"./Amy.json":[88849,8849],"./Birds of Paradise.json":[78097,8097],"./Blackboard.json":[88018,6115],"./Brilliance Black.json":[73835,3835],"./Brilliance Dull.json":[6507,6507],"./Chrome DevTools.json":[22508,2508],"./Clouds Midnight.json":[49566,9566],"./Clouds.json":[57951,7951],"./Cobalt.json":[80826,826],"./Cobalt2.json":[98256,8256],"./Dawn.json":[76958,6958],"./Dominion Day.json":[89307,9307],"./Dracula.json":[33453,3453],"./Dreamweaver.json":[19363,9363],"./Eiffel.json":[82481,2481],"./Espresso Libre.json":[44776,4776],"./GitHub Dark.json":[792,792],"./GitHub Light.json":[61450,1450],"./GitHub.json":[10739,739],"./IDLE.json":[67947,7947],"./Katzenmilch.json":[81240,1240],"./Kuroir Theme.json":[4388,4388],"./LAZY.json":[25164,5164],"./MagicWB (Amiga).json":[76443,6443],"./Merbivore Soft.json":[99361,9361],"./Merbivore.json":[86042,6042],"./Monokai Bright.json":[14883,4883],"./Monokai.json":[34454,4454],"./Night Owl.json":[60261,261],"./Nord.json":[59785,9785],"./Oceanic Next.json":[58920,8920],"./Pastels on Dark.json":[38901,8901],"./Slush and Poppies.json":[26434,6434],"./Solarized-dark.json":[36116,6116],"./Solarized-light.json":[5008,5008],"./SpaceCadet.json":[20440,440],"./Sunburst.json":[68018,8018],"./Textmate (Mac Classic).json":[15824,5824],"./Tomorrow-Night-Blue.json":[81150,1150],"./Tomorrow-Night-Bright.json":[8762,8762],"./Tomorrow-Night-Eighties.json":[82545,2545],"./Tomorrow-Night.json":[99855,9855],"./Tomorrow.json":[34092,4092],"./Twilight.json":[93898,3898],"./Upstream Sunburst.json":[98807,8807],"./Vibrant Ink.json":[89927,9927],"./Xcode_default.json":[64042,4042],"./Zenburnesque.json":[33467,3467],"./iPlastic.json":[88277,8277],"./idleFingers.json":[5104,5104],"./krTheme.json":[9633,9633],"./monoindustrial.json":[15729,5729],"./themelist.json":[79437,9437]};function i(n){if(!t.o(o,n))return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+n+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=o[n],i=e[0];return t.e(e[1]).then((function(){return t.t(i,19)}))}i.keys=function(){return Object.keys(o)},i.id=7432,n.exports=i},5677:function(n,e,t){"use strict";t.d(e,{M4:function(){return d},S0:function(){return l},S_:function(){return u},Yn:function(){return f},rW:function(){return s}});var o=t(82394),i=t(21831),r=t(75582);function c(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,o)}return t}function a(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?c(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function u(n,e){return Object.entries(e).map((function(e){var t=(0,r.Z)(e,2),o=t[0],i=t[1];return n.languages.registerCompletionItemProvider(o,{provideCompletionItems:i(n)})}))}function l(n){var e=function(n){var e="[\\w.]+",t=["import ".concat(e," as ").concat(e),"import ".concat(e),"from ".concat(e," import ").concat(e," as ").concat(e),"from ".concat(e," import ").concat(e)],o=new RegExp("(".concat(t.join("|"),")"),"g");return(0,i.Z)(n.matchAll(o)).map((function(n){return n[1]}))}(n),t="[\\w.]+",r=["from ".concat(t," import ").concat(t," as (").concat(t,")"),"from ".concat(t," import (").concat(t,")"),"import ".concat(t," as (").concat(t,")"),"import (".concat(t,")")],c=new RegExp("(".concat(r.join("|"),")"));return e.reduce((function(n,e){var t=e.match(c);if(!t)return n;var r=(0,i.Z)(t),u=r[2],l=r[3],s=r[4],d=r[5],f=u||l||s||d;return a(a({},n),{},(0,o.Z)({},f,e))}),{})}function s(n,e){var t=n;e&&(t=t.split(" as ".concat(e))[0]);var o="[\\w.]+",c=["from ".concat(o," import (").concat(o,")"),"import (".concat(o,")")],a=new RegExp("(".concat(c.join("|"),")"),"g"),u=(0,i.Z)(t.matchAll(a))[0];if(u){var l=(0,r.Z)(u,4),s=l[2],d=l[3];return s||d}}function d(n,e){return function(n,e){return n.split("\n")[e.startLineNumber-1]}(n,e).slice(0,e.startColumn-1)}function f(n){var e=new RegExp("([\\w_]+)[ ]*=[ ]*([\\w_]+)","g");return(0,i.Z)(n.matchAll(e)).map((function(n){return{assignmentValue:n[2],variableName:n[1]}}))}},32365:function(n,e,t){"use strict";t.d(e,{Ep:function(){return c},KT:function(){return l},Nk:function(){return u},aU:function(){return a}});var o=t(9518),i=t(23831),r=t(49125),c=2,a=21,u=o.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-w2hta3-0"})(["",""],(function(n){return n.padding&&"\n padding-top: ".concat(2*r.iI,"px;\n background-color: ").concat((n.theme.background||i.Z.background).codeTextarea,";\n ")})),l=o.default.div.withConfig({displayName:"indexstyle__PlaceholderStyle",componentId:"sc-w2hta3-1"})(["padding-left:67px;position:absolute;z-index:1;"])},57722:function(n,e,t){"use strict";t.d(e,{Z:function(){return b}});var o=t(82684),i=t(85202),r=t(38789),c=t(19711),a=t(66166),u="twilight",l=t(2005),s=t(31012),d=t(32365),f=t(5677);var p=t(75582),h={"all-hallows-eve":"All Hallows Eve","birds-of-paradise":"Birds of Paradise","brilliance-black":"Brilliance Black","brilliance-dull":"Brilliance Dull","chrome-devtools":"Chrome DevTools","clouds-midnight":"Clouds Midnight","espresso-libre":"Espresso Libre","kuroir-theme":"Kuroir Theme","magicwb--amiga-":"MagicWB (Amiga)","merbivore-soft":"Merbivore Soft","monokai-bright":"Monokai Bright","night-owl":"Night Owl","oceanic-next":"Oceanic Next","pastels-on-dark":"Pastels on Dark","slush-and-poppies":"Slush and Poppies","solarized-dark":"Solarized-dark","solarized-light":"Solarized-light","textmate--mac-classic-":"Textmate (Mac Classic)","tomorrow-night":"Tomorrow-Night","tomorrow-night-blue":"Tomorrow-Night-Blue","tomorrow-night-bright":"Tomorrow-Night-Bright","tomorrow-night-eighties":"Tomorrow-Night-Eighties","upstream-sunburst":"Upstream Sunburst","vibrant-ink":"Vibrant Ink","xcode-default":"Xcode_default",active4d:"Active4D",amy:"Amy",blackboard:"Blackboard",clouds:"Clouds",cobalt:"Cobalt",dawn:"Dawn",dreamweaver:"Dreamweaver",eiffel:"Eiffel",github:"GitHub",idle:"IDLE",idlefingers:"idleFingers",iplastic:"iPlastic",katzenmilch:"Katzenmilch",krtheme:"krTheme",lazy:"LAZY",merbivore:"Merbivore",monoindustrial:"monoindustrial",monokai:"Monokai",spacecadet:"SpaceCadet",sunburst:"Sunburst",tomorrow:"Tomorrow",twilight:"Twilight",zenburnesque:"Zenburnesque"};var m=t(80636),g=t(28598);var b=function(n){var e=n.autocompleteProviders,b=n.autoHeight,y=n.autoSave,v=n.fontSize,w=void 0===v?s.i3:v,j=n.height,x=n.language,k=n.onChange,S=n.onDidChangeCursorPosition,O=n.onSave,C=n.padding,N=n.placeholder,_=n.readOnly,Z=n.selected,E=n.setSelected,I=n.setTextareaFocused,P=n.shortcuts,z=n.showLineNumbers,D=void 0===z||z,H=n.tabSize,M=void 0===H?4:H,T=n.textareaFocused,B=n.theme,F=n.value,A=n.width,L=void 0===A?"100%":A,R=(0,o.useRef)(null),K=(0,o.useRef)(null),U=(0,o.useRef)(null),W=(0,o.useState)([]),G=W[0],V=W[1],X=(0,o.useState)(null),Y=X[0],Q=X[1],q=(0,o.useState)(!1),J=q[0],$=q[1],nn=(0,o.useState)(j),en=(nn[0],nn[1],(0,o.useState)(B||u)),tn=en[0],on=en[1],rn=(0,o.useCallback)((function(n){n.languages.typescript.javascriptDefaults.setEagerModelSync(!0),Q(n)}),[]),cn=(0,o.useCallback)((function(n,e){R.current=n,K.current=e;var t=[];null===P||void 0===P||P.forEach((function(o){t.push(o(e,n))})),O&&t.push((0,m.e)(e,(function(){O(n.getValue())}))),function(n,e,t){t.forEach((function(n){e.addAction(n)}))}(0,n,t),n.getModel().updateOptions({tabSize:M}),b&&!j&&(n._domElement.style.height="".concat(((F||"").split("\n").length+d.Ep)*d.aU,"px")),n.onDidFocusEditorWidget((function(){null===E||void 0===E||E(!0),null===I||void 0===I||I(!0)})),n.onDidContentSizeChange((function(e){var t=e.contentHeight,o=e.contentHeightChanged;b&&o&&(n._domElement.style.height="".concat(t+2*d.aU,"px"))})),Z&&T&&setTimeout((function(){n.focus()}),1),S&&n.onDidChangeCursorPosition((function(e){var t=e.position.lineNumber,o=n._domElement.getBoundingClientRect(),i=o.height,r=o.top;S({editorRect:{height:Number(i),top:Number(r)},position:{lineNumber:Number(t)}})})),$(!0)}),[b,j,S,O,Z,$,E,I,P,M,T,F]);(0,o.useEffect)((function(){(function(n){return new Promise((function(e){Promise.all([r._m.init(),t(7432)("./".concat(h[n],".json"))]).then((function(t){var o=(0,p.Z)(t,2),i=o[0],r=o[1];r.colors["editor.background"]="#000000",r.colors["editor.foreground"]="#FFFFFF",i.editor.defineTheme(n,r),e()}))}))})(u).then((function(){on(u)}))}),[]),(0,o.useEffect)((function(){var n;return y&&O&&(n=setInterval((function(){O(R.current.getValue())}),5e3)),function(){y&&n&&clearInterval(n)}}),[y,R,O]);var an=(0,a.Z)(Z),un=(0,a.Z)(T);return(0,o.useEffect)((function(){null!==R&&void 0!==R&&R.current&&(Z&&T?setTimeout((function(){R.current.focus()}),1):i.findDOMNode(R.current._domElement).getElementsByClassName("inputarea")[0].blur())}),[R,Z,an,T,un]),(0,o.useEffect)((function(){return function(){G.map((function(n){return n.dispose()}))}}),[G]),(0,o.useEffect)((function(){Y&&e&&(0===G.length&&T||!un&&T?V((0,f.S_)(Y,e)):un&&!T&&G.map((function(n){return n.dispose()})))}),[e,G,Y,T,un]),(0,g.jsxs)(d.Nk,{padding:C,style:{display:J?null:"none"},children:[N&&!(null!==F&&void 0!==F&&F.length)&&(0,g.jsx)(d.KT,{children:(0,g.jsx)(c.ZP,{monospace:!0,muted:!0,children:N})}),(0,g.jsx)(r.ZP,{beforeMount:rn,height:j,language:x||"python",onChange:function(n){null===k||void 0===k||k(n)},onMount:cn,options:{domReadOnly:_,fontFamily:l.Vp,fontLigatures:!0,fontSize:w,hideCursorInOverviewRuler:!0,lineNumbers:D,minimap:{enabled:!1},overviewRulerBorder:!1,readOnly:_,renderLineHighlightOnlyWhenFocus:!0,scrollBeyondLastLine:!1,scrollbar:{alwaysConsumeMouseWheel:!1,vertical:"hidden"},wordBasedSuggestions:!1},theme:tn,value:F,width:L}),(0,g.jsx)("div",{ref:U})]})}},80636:function(n,e,t){"use strict";function o(n,e){return{contextMenuGroupId:"navigation",contextMenuOrder:1.5,id:"saveCode",keybindingContext:null,keybindings:[n.KeyMod.CtrlCmd|n.KeyCode.KeyS],label:"Save",precondition:null,run:function(n){e()}}}function i(n,e){return{contextMenuGroupId:"navigation",contextMenuOrder:1.5,id:"executeCode",keybindingContext:null,keybindings:[n.KeyMod.CtrlCmd|n.KeyCode.Enter],label:"Run selected block",precondition:null,run:function(){return e()}}}t.d(e,{Q:function(){return i},e:function(){return o}})},85307:function(n,e,t){"use strict";t.d(e,{$W:function(){return l},cl:function(){return s},cv:function(){return d},dE:function(){return u}});var o=t(9518),i=t(23831),r=t(73942),c=t(49125),a=t(37391),u=o.default.div.withConfig({displayName:"indexstyle__SectionStyle",componentId:"sc-7a1uhf-0"})(["border-radius:","px;padding:","px;",""],r.n_,c.cd*c.iI,(function(n){return"\n background-color: ".concat((n.theme.background||i.Z.background).popup,";\n ")})),l=o.default.div.withConfig({displayName:"indexstyle__CodeEditorStyle",componentId:"sc-7a1uhf-1"})(["padding-top:","px;",""],c.cd*c.iI,(function(n){return"\n background-color: ".concat((n.theme.background||i.Z.background).codeTextarea,";\n ")})),s=o.default.div.withConfig({displayName:"indexstyle__TableContainerStyle",componentId:"sc-7a1uhf-2"})(["overflow:auto;max-height:90vh;width:100%;"," "," "," "," ",""],a.w5,(function(n){return n.hideHorizontalScrollbar&&"\n overflow-x: hidden;\n "}),(function(n){return n.width&&"\n width: ".concat(n.width,";\n ")}),(function(n){return n.height&&"\n height: ".concat(n.height,";\n ")}),(function(n){return n.maxHeight&&"\n max-height: ".concat(n.maxHeight,";\n ")})),d=o.default.div.withConfig({displayName:"indexstyle__HeaderRowStyle",componentId:"sc-7a1uhf-3"})(["padding:","px;"," "," ",""],2*c.iI,(function(n){return"\n background-color: ".concat((n.theme||i.Z).interactive.defaultBackground,";\n border-bottom: ").concat(r.YF,"px ").concat(r.M8," ").concat((n.theme||i.Z).borders.medium,";\n ")}),(function(n){return n.padding&&"\n padding: ".concat(n.padding,"px;\n ")}),(function(n){return n.rounded&&"\n border-top-left-radius: ".concat(r.n_,"px;\n border-top-right-radius: ").concat(r.n_,"px;\n ")}))},87372:function(n,e,t){"use strict";var o,i,r,c,a,u,l,s,d=t(82394),f=t(26304),p=t(26653),h=t(9518),m=t(33591),g=t(23831),b=t(2005),y=t(31012),v=t(19711),w=t(49125),j=t(86673),x=t(28598),k=["children","condensed","inline","level","marketing","spacingBelow"];function S(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,o)}return t}function O(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?S(Object(t),!0).forEach((function(e){(0,d.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):S(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var C=(0,h.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],v.IH,(function(n){return n.color&&"\n color: ".concat(n.color,"\n ")}),(function(n){return n.yellow&&"\n color: ".concat((n.theme.accent||g.Z.accent).yellow,";\n ")}),(function(n){return n.center&&"\n text-align: center;\n "}),(function(n){return!n.monospace&&0===Number(n.weightStyle)&&"\n font-family: ".concat(b.iI,";\n ")}),(function(n){return!n.monospace&&1===Number(n.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(n){return!n.monospace&&2===Number(n.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(n){return!n.monospace&&3===Number(n.weightStyle)&&"\n font-family: ".concat(b.ry,";\n ")}),(function(n){return!n.monospace&&4===Number(n.weightStyle)&&"\n font-family: ".concat(b.YC,";\n ")}),(function(n){return!n.monospace&&5===Number(n.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(n){return!n.monospace&&(6===Number(n.weightStyle)||n.bold)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(n){return!n.monospace&&7===Number(n.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(n){return!n.monospace&&8===Number(n.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(n){return n.lineHeightAuto&&"\n line-height: normal !important;\n "})),N=h.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(n){return"\n color: ".concat((n.theme.content||g.Z.content).active,";\n ")})),_=h.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],C,m.media.md(o||(o=(0,p.Z)(["\n ","\n "])),y.aQ),m.media.lg(i||(i=(0,p.Z)(["\n ","\n "])),y.aQ),m.media.xl(r||(r=(0,p.Z)(["\n ","\n "])),y.aQ)),Z=h.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],C,y.MJ),E=h.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],C,m.media.xs(c||(c=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),m.media.sm(a||(a=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),m.media.md(u||(u=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),m.media.lg(l||(l=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),m.media.xl(s||(s=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI)),I=h.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],C,y.BL),P=h.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],C),z=h.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],C),D=h.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],C),H=h.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],C,(function(n){return 1===n.level&&"\n ".concat(y.MJ,"\n ")}),(function(n){return 2===n.level&&"\n ".concat(y.BL,"\n ")}),(function(n){return 3===n.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(n){return 4===n.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),M=function(n){var e,t=n.children,o=n.condensed,i=n.inline,r=n.level,c=n.marketing,a=n.spacingBelow,u=(0,f.Z)(n,k);i?e=H:0===Number(r)?e=_:1===Number(r)?e=c?E:Z:2===Number(r)?e=I:3===Number(r)?e=P:4===Number(r)?e=z:5===Number(r)&&(e=D);var l=(0,x.jsxs)(e,O(O({},u),{},{level:r,children:[a&&(0,x.jsx)(j.Z,{mb:o?2:3,children:t}),!a&&t]}));return i?l:(0,x.jsx)(N,{children:l})};M.defaultProps={level:3,weightStyle:6},e.Z=M},70902:function(n,e,t){"use strict";var o=t(82394),i=t(26304),r=t(82684),c=t(9518),a=t(69898),u=t(23831),l=t(28598),s=["checked","disabled","onCheck"];function d(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,o)}return t}function f(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?d(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var p=c.default.label.withConfig({displayName:"ToggleSwitch__ToggleSwitchStyle",componentId:"sc-179r5zs-0"})([""," position:relative;display:inline-block;width:","px;min-width:","px;height:",'px;& input[type="checkbox"]{display:none;}& span{position:absolute;cursor:',";background-color:",";border-radius:13px;",';top:0;right:0;bottom:0;left:0;transition:background-color 0.2s ease;}& span::before{position:absolute;content:"";left:2px;top:2px;width:22px;height:22px;background-color:#787A85;border-radius:50%;transition:transform 0.3s ease;}& input[type="checkbox"]:checked + span::before{transform:translateX(20px);}',""],a.p,46,46,26,(function(n){return n.disabled?"not-allowed":"pointer"}),(function(n){return n.disabled?u.Z.monotone.white:u.Z.monotone.black}),(function(n){return n.disabled&&"border: 1px solid ".concat(u.Z.monotone.grey200)}),(function(n){return!n.disabled&&'\n & input[type="checkbox"]:checked + span {\n background-color: #6AA1E0;\n }\n\n & input[type="checkbox"]:checked + span::before {\n background-color: '.concat(u.Z.monotone.white,";\n }\n ")})),h=function(n,e){var t=n.checked,o=n.disabled,r=n.onCheck,c=(0,i.Z)(n,s);return(0,l.jsx)(a.Z,f(f({},c),{},{disabled:o,input:(0,l.jsxs)(p,f(f({},c),{},{disabled:o,noBackground:!0,noBorder:!0,children:[(0,l.jsx)("input",{checked:t,type:"checkbox"}),(0,l.jsx)("span",{onClick:o?null:function(){return null===r||void 0===r?void 0:r((function(n){return!n}))}})]})),noBackground:!0,ref:e}))};e.Z=r.forwardRef(h)}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4538],{52136:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(47329),o=n.n(r),a=n(82684),i=n(63588),c=n.n(i),u=n(5237),l=n(29989),s=n(81352),f=n(46119),p=n(88543),d=n(12765),y=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function v(){return v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v.apply(this,arguments)}function h(e){var t=e.top,n=void 0===t?0:t,r=e.left,o=void 0===r?0:r,i=e.scale,h=e.height,b=e.stroke,m=void 0===b?"#eaf0f6":b,g=e.strokeWidth,x=void 0===g?1:g,O=e.strokeDasharray,w=e.className,S=e.numTicks,j=void 0===S?10:S,k=e.lineStyle,E=e.offset,C=e.tickValues,P=e.children,R=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,y),Z=null!=C?C:(0,f.Z)(i,j),D=(null!=E?E:0)+(0,d.Z)(i)/2,N=Z.map((function(e,t){var n,r=(null!=(n=(0,p.Z)(i(e)))?n:0)+D;return{index:t,from:new s.Z({x:r,y:0}),to:new s.Z({x:r,y:h})}}));return a.createElement(l.Z,{className:c()("visx-columns",w),top:n,left:o},P?P({lines:N}):N.map((function(e){var t=e.from,n=e.to,r=e.index;return a.createElement(u.Z,v({key:"column-line-"+r,from:t,to:n,stroke:m,strokeWidth:x,strokeDasharray:O,style:k},R))})))}h.propTypes={tickValues:o().array,height:o().number.isRequired}},53655:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(47329),o=n.n(r),a=n(82684),i=n(63588),c=n.n(i),u=n(29989),l=["className","top","left","data","binWidth","binHeight","x0","gap","xScale","yScale","colorScale","opacityScale","bins","count","children"];function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function f(e){var t=e.className,n=e.top,r=e.left,o=e.data,i=void 0===o?[]:o,f=e.binWidth,p=void 0===f?6:f,d=e.binHeight,y=void 0===d?6:d,v=e.x0,h=void 0===v?0:v,b=e.gap,m=void 0===b?1:b,g=e.xScale,x=e.yScale,O=e.colorScale,w=void 0===O?function(){}:O,S=e.opacityScale,j=void 0===S?function(){return 1}:S,k=e.bins,E=void 0===k?function(e){return null==e?void 0:e.bins}:k,C=e.count,P=void 0===C?function(e){return null==e?void 0:e.count}:C,R=e.children,Z=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,l),D=p-m,N=y-m,T=i.map((function(e,t){var n=g(t);return E(e).map((function(r,o){var a=P(r);return{bin:r,row:o,column:t,datum:e,width:D,height:N,gap:m,count:a,x:n+h,y:x(o)+m,color:w(a),opacity:j(a)}}))}));return R?a.createElement(a.Fragment,null,R(T)):a.createElement(u.Z,{className:"visx-heatmap-rects",top:n,left:r},T.map((function(e){return e.map((function(e){return a.createElement("rect",s({key:"heatmap-tile-rect-"+e.row+"-"+e.column,className:c()("visx-heatmap-rect",t),width:e.width,height:e.height,x:e.x,y:e.y,fill:e.color,fillOpacity:e.opacity},Z))}))})))}f.propTypes={data:o().array,left:o().number,top:o().number,binWidth:o().number,binHeight:o().number,x0:o().number,gap:o().number,xScale:o().func.isRequired,yScale:o().func.isRequired,bins:o().func,count:o().func,className:o().string,children:o().func}},95422:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(82684),o=n(63588),a=n.n(o),i=n(29989),c=n(65743),u=n(53989),l=["data","className","top","left","x0","x0Scale","x1Scale","yScale","color","keys","height","children"];function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function f(e){var t=e.data,n=e.className,o=e.top,f=e.left,p=e.x0,d=e.x0Scale,y=e.x1Scale,v=e.yScale,h=e.color,b=e.keys,m=e.height,g=e.children,x=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,l),O=(0,u.Z)(y),w=t.map((function(e,t){return{index:t,x0:d(p(e)),bars:b.map((function(t,n){var r=e[t];return{index:n,key:t,value:r,width:O,x:y(t)||0,y:v(r)||0,color:h(t,n),height:m-(v(r)||0)}}))}}));return g?r.createElement(r.Fragment,null,g(w)):r.createElement(i.Z,{className:a()("visx-bar-group",n),top:o,left:f},w.map((function(e){return r.createElement(i.Z,{key:"bar-group-"+e.index+"-"+e.x0,left:e.x0},e.bars.map((function(t){return r.createElement(c.Z,s({key:"bar-group-bar-"+e.index+"-"+t.index+"-"+t.value+"-"+t.key,x:t.x,y:t.y,width:t.width,height:t.height,fill:t.color},x))})))})))}},39048:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(82684),o=n(63588),a=n.n(o),i=n(29989),c=n(65743),u=n(53989),l=["data","className","top","left","x","y0","y0Scale","y1Scale","xScale","color","keys","width","children"];function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function f(e){var t=e.data,n=e.className,o=e.top,f=e.left,p=e.x,d=void 0===p?function(){return 0}:p,y=e.y0,v=e.y0Scale,h=e.y1Scale,b=e.xScale,m=e.color,g=e.keys,x=(e.width,e.children),O=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,l),w=(0,u.Z)(h),S=t.map((function(e,t){return{index:t,y0:v(y(e))||0,bars:g.map((function(t,n){var r=e[t];return{index:n,key:t,value:r,height:w,x:d(r)||0,y:h(t)||0,color:m(t,n),width:b(r)||0}}))}}));return x?r.createElement(r.Fragment,null,x(S)):r.createElement(i.Z,{className:a()("visx-bar-group-horizontal",n),top:o,left:f},S.map((function(e){return r.createElement(i.Z,{key:"bar-group-"+e.index+"-"+e.y0,top:e.y0},e.bars.map((function(t){return r.createElement(c.Z,s({key:"bar-group-bar-"+e.index+"-"+t.index+"-"+t.value+"-"+t.key,x:t.x,y:t.y,width:t.width,height:t.height,fill:t.color},O))})))})))}},85587:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(82684),o=n(63588),a=n.n(o),i=n(39309),c=["children","data","x","y","fill","className","curve","innerRef","defined"];function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}function l(e){var t=e.children,n=e.data,o=void 0===n?[]:n,l=e.x,s=e.y,f=e.fill,p=void 0===f?"transparent":f,d=e.className,y=e.curve,v=e.innerRef,h=e.defined,b=void 0===h?function(){return!0}:h,m=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,c),g=(0,i.jv)({x:l,y:s,defined:b,curve:y});return t?r.createElement(r.Fragment,null,t({path:g})):r.createElement("path",u({ref:v,className:a()("visx-linepath",d),d:g(o)||"",fill:p,strokeLinecap:"round"},m))}},39309:function(e,t,n){"use strict";n.d(t,{SO:function(){return i},jv:function(){return c}});var r=n(48167),o=n(92201),a=n(49894);function i(e){var t=void 0===e?{}:e,n=t.x,o=t.x0,i=t.x1,c=t.y,u=t.y0,l=t.y1,s=t.defined,f=t.curve,p=(0,r.Z)();return n&&(0,a.Z)(p.x,n),o&&(0,a.Z)(p.x0,o),i&&(0,a.Z)(p.x1,i),c&&(0,a.Z)(p.y,c),u&&(0,a.Z)(p.y0,u),l&&(0,a.Z)(p.y1,l),s&&p.defined(s),f&&p.curve(f),p}function c(e){var t=void 0===e?{}:e,n=t.x,r=t.y,i=t.defined,c=t.curve,u=(0,o.Z)();return n&&(0,a.Z)(u.x,n),r&&(0,a.Z)(u.y,r),i&&u.defined(i),c&&u.curve(c),u}},98889:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(47329),o=n.n(r),a=n(82684),i=n(63588),c=n.n(i),u=n(39309),l=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function f(e){var t=e.children,n=e.x,r=e.x0,o=e.x1,i=e.y,f=e.y0,p=e.y1,d=e.data,y=void 0===d?[]:d,v=e.defined,h=void 0===v?function(){return!0}:v,b=e.className,m=e.curve,g=e.innerRef,x=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,l),O=(0,u.SO)({x:n,x0:r,x1:o,y:i,y0:f,y1:p,defined:h,curve:m});return t?a.createElement(a.Fragment,null,t({path:O})):a.createElement("path",s({ref:g,className:c()("visx-area",b),d:O(y)||""},x))}var p=["id","children"];function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d.apply(this,arguments)}function y(e){var t=e.id,n=e.children,r=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,p);return a.createElement("defs",null,a.createElement("clipPath",d({id:t},r),n))}function v(){return v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v.apply(this,arguments)}function h(e){var t=e.className,n=e.curve,r=e.clipAboveTo,o=e.clipBelowTo,i=e.data,u=e.defined,l=e.x,s=e.y0,p=e.y1,d=e.aboveAreaProps,h=e.belowAreaProps,b=e.id,m=void 0===b?"":b;return a.createElement("g",{className:c()("visx-threshold",t)},a.createElement(f,{curve:n,data:i,x:l,y1:p,defined:u},(function(e){var t=e.path,n=null,c=null;return n=t.y0(o)(i),c=t.y0(r)(i),a.createElement("g",null,a.createElement(y,{id:"threshold-clip-below-"+m},a.createElement("path",{d:n||""})),a.createElement(y,{id:"threshold-clip-above-"+m},a.createElement("path",{d:c||""})))})),a.createElement(f,v({curve:n,data:i,defined:u,x:l,y0:s,y1:p,strokeWidth:0,clipPath:"url(#threshold-clip-below-"+m+")"},h)),a.createElement(f,v({curve:n,data:i,defined:u,x:l,y0:s,y1:p,strokeWidth:0,clipPath:"url(#threshold-clip-above-"+m+")"},d)))}y.propTypes={id:o().string.isRequired,children:o().node},h.propTypes={className:o().string,clipAboveTo:o().oneOfType([o().func,o().number]).isRequired,clipBelowTo:o().oneOfType([o().func,o().number]).isRequired,id:o().string.isRequired,data:o().array.isRequired,defined:o().func,x:o().oneOfType([o().func,o().number]).isRequired,y0:o().oneOfType([o().func,o().number]).isRequired,y1:o().oneOfType([o().func,o().number]).isRequired}},90659:function(e,t,n){"use strict";var r=n(67403),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,a,i,c,u,l,s=!1;t||(t={}),n=t.debug||!1;try{if(i=r(),c=document.createRange(),u=document.getSelection(),(l=document.createElement("span")).textContent=e,l.ariaHidden="true",l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",l.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),"undefined"===typeof r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var a=o[t.format]||o.default;window.clipboardData.setData(a,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(l),c.selectNodeContents(l),u.addRange(c),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");s=!0}catch(f){n&&console.error("unable to copy using execCommand: ",f),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),s=!0}catch(f){n&&console.error("unable to copy using clipboardData: ",f),n&&console.error("falling back to prompt"),a=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(a,e)}}finally{u&&("function"==typeof u.removeRange?u.removeRange(c):u.removeAllRanges()),l&&document.body.removeChild(l),i()}return s}},11984:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var o=c(n(82684)),a=c(n(90659)),i=["text","onCopy","options","children"];function c(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function y(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b(e);if(t){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v(this,n)}}function v(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(u,e);var t,n,r,c=y(u);function u(){var e;f(this,u);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return m(h(e=c.call.apply(c,[this].concat(n))),"onClick",(function(t){var n=e.props,r=n.text,i=n.onCopy,c=n.children,u=n.options,l=o.default.Children.only(c),s=(0,a.default)(r,u);i&&i(r,s),l&&l.props&&"function"===typeof l.props.onClick&&l.props.onClick(t)})),e}return t=u,(n=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),n=s(e,i),r=o.default.Children.only(t);return o.default.cloneElement(r,l(l({},n),{},{onClick:this.onClick}))}}])&&p(t.prototype,n),r&&p(t,r),Object.defineProperty(t,"prototype",{writable:!1}),u}(o.default.PureComponent);t.CopyToClipboard=g,m(g,"defaultProps",{onCopy:void 0,options:void 0})},64866:function(e,t,n){"use strict";var r=n(11984).CopyToClipboard;r.CopyToClipboard=r,e.exports=r},44152:function(e,t,n){"use strict";n.d(t,{r:function(){return l}});var r=n(82684);const o=e=>{let t;const n=new Set,r=(e,r)=>{const o="function"===typeof e?e(t):e;if(o!==t){const e=t;t=r?o:Object.assign({},t,o),n.forEach((n=>n(t,e)))}},o=()=>t,a={setState:r,getState:o,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>n.clear()};return t=e(r,o,a),a};var a=n(81550);const{useSyncExternalStoreWithSelector:i}=a;const c=e=>{const t="function"===typeof e?(e=>e?o(e):o)(e):e,n=(e,n)=>function(e,t=e.getState,n){const o=i(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return(0,r.useDebugValue)(o),o}(t,e,n);return Object.assign(n,t),n};var u=e=>e?c(e):c;const l=e=>{const t=u((()=>e)),n=(Object.keys(e),(e,n)=>{t.setState((t=>{return{[e]:(r=t[e],o=n,"function"==typeof o?o(r):o)};var r,o}))});return{useGlobalState:e=>{const o=(0,r.useCallback)((t=>t[e]),[e]);return[t(o),(0,r.useCallback)((t=>n(e,t)),[e])]},getGlobalState:e=>t.getState()[e],setGlobalState:n,subscribe:(e,n)=>{t.subscribe(((t,r)=>{t[e]!==r[e]&&n(t[e])}))}}}},67403:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},1589:function(e,t,n){"use strict";var r=n(82684);var o="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},a=r.useState,i=r.useEffect,c=r.useLayoutEffect,u=r.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(r){return!0}}var s="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),o=r[0].inst,s=r[1];return c((function(){o.value=n,o.getSnapshot=t,l(o)&&s({inst:o})}),[e,n,t]),i((function(){return l(o)&&s({inst:o}),e((function(){l(o)&&s({inst:o})}))}),[e]),u(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:s},73847:function(e,t,n){"use strict";var r=n(82684),o=n(48216);var a="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},i=o.useSyncExternalStore,c=r.useRef,u=r.useEffect,l=r.useMemo,s=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var f=c(null);if(null===f.current){var p={hasValue:!1,value:null};f.current=p}else p=f.current;f=l((function(){function e(e){if(!u){if(u=!0,i=e,e=r(e),void 0!==o&&p.hasValue){var t=p.value;if(o(t,e))return c=t}return c=e}if(t=c,a(i,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(i=e,c=n)}var i,c,u=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]}),[t,n,r,o]);var d=i(e,f[0],f[1]);return u((function(){p.hasValue=!0,p.value=d}),[d]),s(d),d}},48216:function(e,t,n){"use strict";e.exports=n(1589)},81550:function(e,t,n){"use strict";e.exports=n(73847)}}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4538],{52136:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(47329),o=n.n(r),a=n(82684),i=n(63588),c=n.n(i),u=n(5237),l=n(29989),s=n(81352),f=n(46119),p=n(88543),d=n(12765),y=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function v(){return v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v.apply(this,arguments)}function h(e){var t=e.top,n=void 0===t?0:t,r=e.left,o=void 0===r?0:r,i=e.scale,h=e.height,b=e.stroke,m=void 0===b?"#eaf0f6":b,g=e.strokeWidth,x=void 0===g?1:g,O=e.strokeDasharray,w=e.className,S=e.numTicks,j=void 0===S?10:S,k=e.lineStyle,E=e.offset,C=e.tickValues,P=e.children,R=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,y),Z=null!=C?C:(0,f.Z)(i,j),D=(null!=E?E:0)+(0,d.Z)(i)/2,N=Z.map((function(e,t){var n,r=(null!=(n=(0,p.Z)(i(e)))?n:0)+D;return{index:t,from:new s.Z({x:r,y:0}),to:new s.Z({x:r,y:h})}}));return a.createElement(l.Z,{className:c()("visx-columns",w),top:n,left:o},P?P({lines:N}):N.map((function(e){var t=e.from,n=e.to,r=e.index;return a.createElement(u.Z,v({key:"column-line-"+r,from:t,to:n,stroke:m,strokeWidth:x,strokeDasharray:O,style:k},R))})))}h.propTypes={tickValues:o().array,height:o().number.isRequired}},53655:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(47329),o=n.n(r),a=n(82684),i=n(63588),c=n.n(i),u=n(29989),l=["className","top","left","data","binWidth","binHeight","x0","gap","xScale","yScale","colorScale","opacityScale","bins","count","children"];function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function f(e){var t=e.className,n=e.top,r=e.left,o=e.data,i=void 0===o?[]:o,f=e.binWidth,p=void 0===f?6:f,d=e.binHeight,y=void 0===d?6:d,v=e.x0,h=void 0===v?0:v,b=e.gap,m=void 0===b?1:b,g=e.xScale,x=e.yScale,O=e.colorScale,w=void 0===O?function(){}:O,S=e.opacityScale,j=void 0===S?function(){return 1}:S,k=e.bins,E=void 0===k?function(e){return null==e?void 0:e.bins}:k,C=e.count,P=void 0===C?function(e){return null==e?void 0:e.count}:C,R=e.children,Z=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,l),D=p-m,N=y-m,T=i.map((function(e,t){var n=g(t);return E(e).map((function(r,o){var a=P(r);return{bin:r,row:o,column:t,datum:e,width:D,height:N,gap:m,count:a,x:n+h,y:x(o)+m,color:w(a),opacity:j(a)}}))}));return R?a.createElement(a.Fragment,null,R(T)):a.createElement(u.Z,{className:"visx-heatmap-rects",top:n,left:r},T.map((function(e){return e.map((function(e){return a.createElement("rect",s({key:"heatmap-tile-rect-"+e.row+"-"+e.column,className:c()("visx-heatmap-rect",t),width:e.width,height:e.height,x:e.x,y:e.y,fill:e.color,fillOpacity:e.opacity},Z))}))})))}f.propTypes={data:o().array,left:o().number,top:o().number,binWidth:o().number,binHeight:o().number,x0:o().number,gap:o().number,xScale:o().func.isRequired,yScale:o().func.isRequired,bins:o().func,count:o().func,className:o().string,children:o().func}},95422:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(82684),o=n(63588),a=n.n(o),i=n(29989),c=n(65743),u=n(53989),l=["data","className","top","left","x0","x0Scale","x1Scale","yScale","color","keys","height","children"];function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function f(e){var t=e.data,n=e.className,o=e.top,f=e.left,p=e.x0,d=e.x0Scale,y=e.x1Scale,v=e.yScale,h=e.color,b=e.keys,m=e.height,g=e.children,x=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,l),O=(0,u.Z)(y),w=t.map((function(e,t){return{index:t,x0:d(p(e)),bars:b.map((function(t,n){var r=e[t];return{index:n,key:t,value:r,width:O,x:y(t)||0,y:v(r)||0,color:h(t,n),height:m-(v(r)||0)}}))}}));return g?r.createElement(r.Fragment,null,g(w)):r.createElement(i.Z,{className:a()("visx-bar-group",n),top:o,left:f},w.map((function(e){return r.createElement(i.Z,{key:"bar-group-"+e.index+"-"+e.x0,left:e.x0},e.bars.map((function(t){return r.createElement(c.Z,s({key:"bar-group-bar-"+e.index+"-"+t.index+"-"+t.value+"-"+t.key,x:t.x,y:t.y,width:t.width,height:t.height,fill:t.color},x))})))})))}},39048:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(82684),o=n(63588),a=n.n(o),i=n(29989),c=n(65743),u=n(53989),l=["data","className","top","left","x","y0","y0Scale","y1Scale","xScale","color","keys","width","children"];function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function f(e){var t=e.data,n=e.className,o=e.top,f=e.left,p=e.x,d=void 0===p?function(){return 0}:p,y=e.y0,v=e.y0Scale,h=e.y1Scale,b=e.xScale,m=e.color,g=e.keys,x=(e.width,e.children),O=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,l),w=(0,u.Z)(h),S=t.map((function(e,t){return{index:t,y0:v(y(e))||0,bars:g.map((function(t,n){var r=e[t];return{index:n,key:t,value:r,height:w,x:d(r)||0,y:h(t)||0,color:m(t,n),width:b(r)||0}}))}}));return x?r.createElement(r.Fragment,null,x(S)):r.createElement(i.Z,{className:a()("visx-bar-group-horizontal",n),top:o,left:f},S.map((function(e){return r.createElement(i.Z,{key:"bar-group-"+e.index+"-"+e.y0,top:e.y0},e.bars.map((function(t){return r.createElement(c.Z,s({key:"bar-group-bar-"+e.index+"-"+t.index+"-"+t.value+"-"+t.key,x:t.x,y:t.y,width:t.width,height:t.height,fill:t.color},O))})))})))}},85587:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(82684),o=n(63588),a=n.n(o),i=n(39309),c=["children","data","x","y","fill","className","curve","innerRef","defined"];function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}function l(e){var t=e.children,n=e.data,o=void 0===n?[]:n,l=e.x,s=e.y,f=e.fill,p=void 0===f?"transparent":f,d=e.className,y=e.curve,v=e.innerRef,h=e.defined,b=void 0===h?function(){return!0}:h,m=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,c),g=(0,i.jv)({x:l,y:s,defined:b,curve:y});return t?r.createElement(r.Fragment,null,t({path:g})):r.createElement("path",u({ref:v,className:a()("visx-linepath",d),d:g(o)||"",fill:p,strokeLinecap:"round"},m))}},39309:function(e,t,n){"use strict";n.d(t,{SO:function(){return i},jv:function(){return c}});var r=n(48167),o=n(92201),a=n(13004);function i(e){var t=void 0===e?{}:e,n=t.x,o=t.x0,i=t.x1,c=t.y,u=t.y0,l=t.y1,s=t.defined,f=t.curve,p=(0,r.Z)();return n&&(0,a.Z)(p.x,n),o&&(0,a.Z)(p.x0,o),i&&(0,a.Z)(p.x1,i),c&&(0,a.Z)(p.y,c),u&&(0,a.Z)(p.y0,u),l&&(0,a.Z)(p.y1,l),s&&p.defined(s),f&&p.curve(f),p}function c(e){var t=void 0===e?{}:e,n=t.x,r=t.y,i=t.defined,c=t.curve,u=(0,o.Z)();return n&&(0,a.Z)(u.x,n),r&&(0,a.Z)(u.y,r),i&&u.defined(i),c&&u.curve(c),u}},98889:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(47329),o=n.n(r),a=n(82684),i=n(63588),c=n.n(i),u=n(39309),l=["children","x","x0","x1","y","y0","y1","data","defined","className","curve","innerRef"];function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function f(e){var t=e.children,n=e.x,r=e.x0,o=e.x1,i=e.y,f=e.y0,p=e.y1,d=e.data,y=void 0===d?[]:d,v=e.defined,h=void 0===v?function(){return!0}:v,b=e.className,m=e.curve,g=e.innerRef,x=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,l),O=(0,u.SO)({x:n,x0:r,x1:o,y:i,y0:f,y1:p,defined:h,curve:m});return t?a.createElement(a.Fragment,null,t({path:O})):a.createElement("path",s({ref:g,className:c()("visx-area",b),d:O(y)||""},x))}var p=["id","children"];function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d.apply(this,arguments)}function y(e){var t=e.id,n=e.children,r=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,p);return a.createElement("defs",null,a.createElement("clipPath",d({id:t},r),n))}function v(){return v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v.apply(this,arguments)}function h(e){var t=e.className,n=e.curve,r=e.clipAboveTo,o=e.clipBelowTo,i=e.data,u=e.defined,l=e.x,s=e.y0,p=e.y1,d=e.aboveAreaProps,h=e.belowAreaProps,b=e.id,m=void 0===b?"":b;return a.createElement("g",{className:c()("visx-threshold",t)},a.createElement(f,{curve:n,data:i,x:l,y1:p,defined:u},(function(e){var t=e.path,n=null,c=null;return n=t.y0(o)(i),c=t.y0(r)(i),a.createElement("g",null,a.createElement(y,{id:"threshold-clip-below-"+m},a.createElement("path",{d:n||""})),a.createElement(y,{id:"threshold-clip-above-"+m},a.createElement("path",{d:c||""})))})),a.createElement(f,v({curve:n,data:i,defined:u,x:l,y0:s,y1:p,strokeWidth:0,clipPath:"url(#threshold-clip-below-"+m+")"},h)),a.createElement(f,v({curve:n,data:i,defined:u,x:l,y0:s,y1:p,strokeWidth:0,clipPath:"url(#threshold-clip-above-"+m+")"},d)))}y.propTypes={id:o().string.isRequired,children:o().node},h.propTypes={className:o().string,clipAboveTo:o().oneOfType([o().func,o().number]).isRequired,clipBelowTo:o().oneOfType([o().func,o().number]).isRequired,id:o().string.isRequired,data:o().array.isRequired,defined:o().func,x:o().oneOfType([o().func,o().number]).isRequired,y0:o().oneOfType([o().func,o().number]).isRequired,y1:o().oneOfType([o().func,o().number]).isRequired}},90659:function(e,t,n){"use strict";var r=n(67403),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,a,i,c,u,l,s=!1;t||(t={}),n=t.debug||!1;try{if(i=r(),c=document.createRange(),u=document.getSelection(),(l=document.createElement("span")).textContent=e,l.ariaHidden="true",l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",l.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),"undefined"===typeof r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var a=o[t.format]||o.default;window.clipboardData.setData(a,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(l),c.selectNodeContents(l),u.addRange(c),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");s=!0}catch(f){n&&console.error("unable to copy using execCommand: ",f),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),s=!0}catch(f){n&&console.error("unable to copy using clipboardData: ",f),n&&console.error("falling back to prompt"),a=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(a,e)}}finally{u&&("function"==typeof u.removeRange?u.removeRange(c):u.removeAllRanges()),l&&document.body.removeChild(l),i()}return s}},11984:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var o=c(n(82684)),a=c(n(90659)),i=["text","onCopy","options","children"];function c(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function y(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b(e);if(t){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v(this,n)}}function v(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(u,e);var t,n,r,c=y(u);function u(){var e;f(this,u);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return m(h(e=c.call.apply(c,[this].concat(n))),"onClick",(function(t){var n=e.props,r=n.text,i=n.onCopy,c=n.children,u=n.options,l=o.default.Children.only(c),s=(0,a.default)(r,u);i&&i(r,s),l&&l.props&&"function"===typeof l.props.onClick&&l.props.onClick(t)})),e}return t=u,(n=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),n=s(e,i),r=o.default.Children.only(t);return o.default.cloneElement(r,l(l({},n),{},{onClick:this.onClick}))}}])&&p(t.prototype,n),r&&p(t,r),Object.defineProperty(t,"prototype",{writable:!1}),u}(o.default.PureComponent);t.CopyToClipboard=g,m(g,"defaultProps",{onCopy:void 0,options:void 0})},64866:function(e,t,n){"use strict";var r=n(11984).CopyToClipboard;r.CopyToClipboard=r,e.exports=r},44152:function(e,t,n){"use strict";n.d(t,{r:function(){return l}});var r=n(82684);const o=e=>{let t;const n=new Set,r=(e,r)=>{const o="function"===typeof e?e(t):e;if(o!==t){const e=t;t=r?o:Object.assign({},t,o),n.forEach((n=>n(t,e)))}},o=()=>t,a={setState:r,getState:o,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>n.clear()};return t=e(r,o,a),a};var a=n(81550);const{useSyncExternalStoreWithSelector:i}=a;const c=e=>{const t="function"===typeof e?(e=>e?o(e):o)(e):e,n=(e,n)=>function(e,t=e.getState,n){const o=i(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return(0,r.useDebugValue)(o),o}(t,e,n);return Object.assign(n,t),n};var u=e=>e?c(e):c;const l=e=>{const t=u((()=>e)),n=(Object.keys(e),(e,n)=>{t.setState((t=>{return{[e]:(r=t[e],o=n,"function"==typeof o?o(r):o)};var r,o}))});return{useGlobalState:e=>{const o=(0,r.useCallback)((t=>t[e]),[e]);return[t(o),(0,r.useCallback)((t=>n(e,t)),[e])]},getGlobalState:e=>t.getState()[e],setGlobalState:n,subscribe:(e,n)=>{t.subscribe(((t,r)=>{t[e]!==r[e]&&n(t[e])}))}}}},67403:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},1589:function(e,t,n){"use strict";var r=n(82684);var o="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},a=r.useState,i=r.useEffect,c=r.useLayoutEffect,u=r.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(r){return!0}}var s="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),o=r[0].inst,s=r[1];return c((function(){o.value=n,o.getSnapshot=t,l(o)&&s({inst:o})}),[e,n,t]),i((function(){return l(o)&&s({inst:o}),e((function(){l(o)&&s({inst:o})}))}),[e]),u(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:s},73847:function(e,t,n){"use strict";var r=n(82684),o=n(48216);var a="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},i=o.useSyncExternalStore,c=r.useRef,u=r.useEffect,l=r.useMemo,s=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var f=c(null);if(null===f.current){var p={hasValue:!1,value:null};f.current=p}else p=f.current;f=l((function(){function e(e){if(!u){if(u=!0,i=e,e=r(e),void 0!==o&&p.hasValue){var t=p.value;if(o(t,e))return c=t}return c=e}if(t=c,a(i,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(i=e,c=n)}var i,c,u=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]}),[t,n,r,o]);var d=i(e,f[0],f[1]);return u((function(){p.hasValue=!0,p.value=d}),[d]),s(d),d}},48216:function(e,t,n){"use strict";e.exports=n(1589)},81550:function(e,t,n){"use strict";e.exports=n(73847)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5141],{33699:function(n,t,e){e.d(t,{y:function(){return O},Z:function(){return R}});var r=e(89565),i=e.n(r),o=e(56085),a=e(82684),c=e(35490),u=e(47999),l=e(67971),s=e(82635),d=e(86673),f=e(54283),p=e(19711),h=e(9518),g=e(23831),y=e(49125),v=e(37391),m=(0,h.css)([""," ",""],(function(n){return!n.width&&"\n width: 100%;\n "}),(function(n){return n.width&&"\n width: ".concat(n.width,"px;\n ")})),b=h.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-11d4rgl-0"})([""," "," height:100%;overflow:auto;position:absolute;",""],m,v.w5,(function(n){return"\n background-color: ".concat((n.theme.background||g.Z.background).codeTextarea,";\n ")})),S=h.default.div.withConfig({displayName:"indexstyle__InnerStyle",componentId:"sc-11d4rgl-1"})([""," padding:","px;"],m,y.cd*y.iI),x=h.default.div.withConfig({displayName:"indexstyle__LineStyle",componentId:"sc-11d4rgl-2"})(["height:","px;"],20),T=(0,h.css)(["@keyframes cursor-blink{0%{opacity:0;}}::before{","}::after{","}"],(function(n){return n.focusBeginning&&"\n position: absolute;\n background-color: ".concat((n.theme.accent||g.Z.accent).warning,';\n content: "";\n display: inline-block;\n height: ').concat(20,"px;\n width: ").concat(y.iI,"px;\n opacity: 0.3;\n ")}),(function(n){return n.focused&&"\n background-color: ".concat((n.theme.accent||g.Z.accent).warning,';\n content: "";\n display: inline-block;\n height: ').concat(20,"px;\n width: ").concat(y.iI,"px;\n opacity: 0.3;\n ")})),w=h.default.div.withConfig({displayName:"indexstyle__InputStyle",componentId:"sc-11d4rgl-3"})(["align-items:center;display:flex;gap:2px;",""],T),I=h.default.span.withConfig({displayName:"indexstyle__CharacterStyle",componentId:"sc-11d4rgl-4"})([""," ::after{","}"],T,(function(n){return n.focused&&"\n position: absolute;\n "})),P=e(16115),E=e(94353),k=e(28799),A=e(51504),_=e(66653),j=e(41150),C=e(28598);function N(n,t){var e="undefined"!==typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(!e){if(Array.isArray(n)||(e=function(n,t){if(!n)return;if("string"===typeof n)return Z(n,t);var e=Object.prototype.toString.call(n).slice(8,-1);"Object"===e&&n.constructor&&(e=n.constructor.name);if("Map"===e||"Set"===e)return Array.from(n);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return Z(n,t)}(n))||t&&n&&"number"===typeof n.length){e&&(n=e);var r=0,i=function(){};return{s:i,n:function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(n){throw n},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){e=e.call(n)},n:function(){var n=e.next();return a=n.done,n},e:function(n){c=!0,o=n},f:function(){try{a||null==e.return||e.return()}finally{if(c)throw o}}}}function Z(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,r=new Array(t);e<t;e++)r[e]=n[e];return r}var O="terminal";var R=function(n){var t=n.interruptKernel,e=n.onFocus,r=n.uuid,h=void 0===r?O:r,g=n.width,y=(0,a.useRef)(null),v=(0,a.useRef)(null),m=(0,a.useState)(!1),T=m[0],Z=m[1],R=(0,a.useState)(""),F=R[0],G=R[1],M=(0,a.useState)(0),U=M[0],X=M[1],Y=(0,a.useState)(""),D=Y[0],L=Y[1],K=(0,a.useState)(0),Q=K[0],B=K[1],H=(0,a.useState)([]),z=H[0],V=H[1],q=(0,a.useState)(!1),J=q[0],$=q[1],W=(0,a.useState)([]),nn=W[0],tn=W[1],en=(0,o.ZP)((0,k.Ib)(),{shouldReconnect:function(){return!0}}),rn=en.lastMessage,on=(en.readyState,en.sendMessage);(0,a.useEffect)((function(){if(rn){var n=null!==rn&&void 0!==rn&&rn.data?JSON.parse(rn.data):null;(null===n||void 0===n?void 0:n.uuid)===h&&(s.uF.BUSY===(null===n||void 0===n?void 0:n.execution_state)?Z(!0):s.uF.IDLE===(null===n||void 0===n?void 0:n.execution_state)&&Z(!1),tn((function(t){return n?t.concat(n):t})))}}),[rn,Z,tn,h]),(0,a.useEffect)((function(){if(y.current&&v.current){var n=v.current.getBoundingClientRect().height;y.current.scrollTo(0,n)}}),[nn,y,v]);var an=(0,j.y)(),cn=an.registerOnKeyDown,un=an.setDisableGlobalKeyboardShortcuts,ln=an.unregisterOnKeyDown;(0,a.useEffect)((function(){return function(){ln(h)}}),[ln,h]);var sn=(0,a.useCallback)((function(){B((function(n){return n>0?n-1:n}))}),[]),dn=(0,a.useCallback)((function(){B((function(n){return n<=F.length?n+1:n}))}),[F]),fn=(0,a.useCallback)((function(n){var t=(null===n||void 0===n?void 0:n.split(/\n/))||[];if(t.length>1){var e=t.slice(0,-1);e[0]=F+e[0];var r=e.map((function(n,t){return{command:0===t,data:n,type:s.Gi.TEXT}}));X(z.length+e.length),V((function(n){return n.concat(e)})),tn((function(n){return n.concat(r)})),L((function(n){return n+e.join("\n")}));var i=(t.slice(-1)[0]||"").trim();G(i),B(i.length)}else G((function(t){return t+n})),B(F.length+n.length)}),[F,z]);return cn(h,(function(n,e,r){var i=n.code,o=n.key;if(J)if((0,_.j)(n),(0,A.y)([P.PQ,P.VS],e))Z(!1),tn((function(n){var t;return n.concat({command:!0,data:(null===F||void 0===F||null===(t=F.trim())||void 0===t?void 0:t.length)>=1?F:"\n",type:s.Gi.TEXT})})),G(""),t();else if(!T)if(P.Qj!==i||e[P.zX])if((0,A.y)([P.QK],e))sn();else if((0,A.y)([P.DY],e))dn();else if((0,A.y)([P.Bu],e)){if(z.length>=1){var a,u=Math.max(0,U-1);G(z[u]),X(u),B((null===(a=z[u])||void 0===a?void 0:a.length)||0)}}else if((0,A.y)([P.kD],e)){if(z.length>=1){var l=Math.min(z.length,U+1),d=z[l]||"";G(d),X(l),B(d.length)}}else if((0,A.y)([P.Uq],e)){var f=D+F;(null===f||void 0===f?void 0:f.length)>=1&&(Z(!0),on(JSON.stringify({api_key:E.l,code:"!".concat(f),token:(new c.Z).decodedToken.token,uuid:h})),X(z.length+1),V((function(n){return n.concat(F)})),B(0)),tn((function(n){var t;return n.concat({command:!0,data:(null===F||void 0===F||null===(t=F.trim())||void 0===t?void 0:t.length)>=1?F:"\n",type:s.Gi.TEXT})})),L(""),G("")}else if((0,A.y)([P.zX,P.VS],e))navigator.clipboard.writeText(window.getSelection().toString());else if((0,A.y)([P.zX,P.Pd],e)||(0,A.y)([P.PQ,P.Pd],e)){var p,g,y,v,m;"undefined"===typeof(null===(p=navigator)||void 0===p?void 0:p.clipboard)?alert('Clipboard pasting is not allowed in insecure contexts. If your Mage deployment is not secure but you still want to use clipboard paste, you can override this setting (which should only be done temporarily) on Chrome browsers by going to "chrome://flags/#unsafely-treat-insecure-origin-as-secure", adding your origin to "Insecure origins treated as secure", and enabling that setting.'):null!==(g=navigator)&&void 0!==g&&null!==(y=g.clipboard)&&void 0!==y&&y.readText?navigator.clipboard.readText().then(fn).catch((function(n){return alert("".concat(n,'\n For Chrome, users need to allow clipboard permissions for this site under "Privacy and security" -> "Site settings".\n For Safari, users need to allow the clipboard paste by clicking "Paste" in the context menu that appears.'))})):null!==(v=navigator)&&void 0!==v&&null!==(m=v.clipboard)&&void 0!==m&&m.read?navigator.clipboard.read().then((function(n){var t,e=N(n);try{for(e.s();!(t=e.n()).done;){var r,i=t.value,o=N(i.types);try{for(o.s();!(r=o.n()).done;){var a=r.value;if("text/plain"===a)return i.getType(a)}}catch(c){o.e(c)}finally{o.f()}}}catch(c){e.e(c)}finally{e.f()}})).then((function(n){return n.text()})).then(fn).catch((function(n){return alert("".concat(n,'\n For Firefox, users need to allow clipboard paste by setting the "dom.events.asyncClipboard.read" preference in "about:config" to "true" and clicking "Paste" in the context menu that appears.'))})):alert('If pasting is not working properly, you may need to adjust some settings in your browser.\n\n For Firefox, users need to allow clipboard paste by setting both the "dom.events.asyncClipboard.clipboardItem" and "dom.events.asyncClipboard.read" preferences in "about:config" to "true" and clicking "Paste" in the context menu that appears.\n For Chrome, users need to allow clipboard permissions for this site under "Privacy and security" -> "Site settings".\n For Safari, users need to allow the clipboard paste by clicking "Paste" in the context menu that appears.\n')}else e[P.zX]||e[P.PQ]||1!==o.length||(G((function(n){return n.slice(0,Q)+o+n.slice(Q)})),dn());else{var b=Math.max(0,Q-1);G((function(n){return n.slice(0,b)+n.slice(Q)})),B((function(n){return Math.max(0,n-1)}))}}),[T,F,z,U,J,t,Z,G,V,X,tn,h]),(0,C.jsx)(b,{ref:y,width:g,children:(0,C.jsx)(u.Z,{isOpen:!0,onClick:function(){null===e||void 0===e||e(),$(!0),un(!0)},onClickOutside:function(){$(!1),un(!1)},style:{minHeight:"100%"},children:(0,C.jsxs)(S,{ref:v,width:g,children:[null===nn||void 0===nn?void 0:nn.reduce((function(n,t,e){var r=t||{},o=r.command,a=r.data,c=r.type,u=[];u=(u=Array.isArray(a)?a:[a]).filter((function(n){return n}));var d=[];return u.forEach((function(n,t){var r;if(s.jU.includes(c)&&(r=(0,C.jsxs)(p.ZP,{monospace:!0,noWrapping:!0,pre:!0,children:[n&&(0,C.jsx)(i(),{children:n}),!n&&(0,C.jsx)(C.Fragment,{children:"\xa0"})]})),r){var a="command-".concat(e,"-").concat(t,"-").concat(n);o?d.push((0,C.jsx)(x,{children:(0,C.jsxs)(l.Z,{alignItems:"center",children:[(0,C.jsx)(p.ZP,{inline:!0,monospace:!0,warning:!0,children:"\u2192\xa0"}),r]})},a)):d.push((0,C.jsx)(x,{children:r},a))}})),n.concat(d)}),[]),T&&(0,C.jsx)(d.Z,{mt:1,children:(0,C.jsx)(f.Z,{})}),!T&&(0,C.jsx)(w,{focused:J&&(0===F.length||Q>F.length),children:(0,C.jsxs)(p.ZP,{monospace:!0,children:[(0,C.jsx)(p.ZP,{inline:!0,monospace:!0,warning:!0,children:"\u2192\xa0"}),null===F||void 0===F?void 0:F.split("").map((function(n,t){return(0,C.jsxs)(I,{focusBeginning:J&&0===Q&&0===t,focused:J&&Q===t+1,children:[" "===n&&(0,C.jsx)(C.Fragment,{children:"\xa0"})," "!==n&&n]},"command-".concat(t,"-").concat(n))}))]})})]})})})}},82635:function(n,t,e){var r,i;e.d(t,{Gi:function(){return i},jU:function(){return a},uF:function(){return r}}),function(n){n.BUSY="busy",n.IDLE="idle",n.QUEUED="queued"}(r||(r={})),function(n){n.IMAGE_PNG="image/png",n.PROGRESS="progress",n.TABLE="table",n.TEXT="text",n.TEXT_HTML="text/html",n.TEXT_PLAIN="text/plain"}(i||(i={}));var o,a=[i.TEXT,i.TEXT_PLAIN];!function(n){n.DISPLAY_DATA="display_data",n.STATUS="status",n.STREAM="stream",n.STREAM_PIPELINE="stream_pipeline"}(o||(o={}))},98781:function(n,t,e){e.d(t,{$1:function(){return u},G7:function(){return s},QK:function(){return c},a_:function(){return d},qL:function(){return o},r0:function(){return l}});var r,i,o,a=e(82394);!function(n){n.INTEGRATION="integration",n.PYTHON="python",n.PYSPARK="pyspark",n.STREAMING="streaming"}(o||(o={}));var c,u,l,s=(r={},(0,a.Z)(r,o.INTEGRATION,"Integration"),(0,a.Z)(r,o.PYTHON,"Standard"),(0,a.Z)(r,o.PYSPARK,"PySpark"),(0,a.Z)(r,o.STREAMING,"Streaming"),r);!function(n){n.ACTIVE="active",n.INACTIVE="inactive",n.NO_SCHEDULES="no_schedules"}(c||(c={})),function(n){n.GROUP="group_by",n.STATUS="status[]",n.TYPE="type[]"}(u||(u={})),function(n){n.STATUS="status",n.TYPE="type"}(l||(l={}));var d=(i={},(0,a.Z)(i,o.PYTHON,"python3"),(0,a.Z)(i,o.PYSPARK,"pysparkkernel"),i)},51504:function(n,t,e){e.d(t,{y:function(){return o}});var r=e(75582),i=e(16115);function o(n,t){var e=n.map((function(n){return String(n)})),o=n.includes(i.PQ),a=n.includes(i.zX),c=n.includes(i.XR),u=i.xU.map((function(n){return String(n)})),l=i.vk.map((function(n){return String(n)})),s=i.Tr.map((function(n){return String(n)})),d=Object.entries(t).find((function(n){var t=(0,r.Z)(n,2),i=t[0];return t[1]&&!e.includes(String(i))&&(!a||!l.includes(String(i)))&&(!o||!u.includes(String(i)))&&(!c||!s.includes(String(i)))}));return n.every((function(n){return t[n]}))&&!d}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5477],{1210:function(e,n,t){t.d(n,{Z:function(){return S}});var r=t(82394),i=t(21831),o=t(82684),l=t(47999),u=t(28358),c=t(93461),s=t(57384),a=t(12344),d=t(72454),f=t(28598);function p(e,n){var t=e.children;return(0,f.jsx)(d.HS,{ref:n,children:t})}var m=o.forwardRef(p),h=t(32063),v=t(15270),b=t(82531),y=t(66166),g=t(3055),w=t(49125),j=t(91427),O=t(24141);function x(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?x(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):x(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var S=function(e){var n,t=e.after,r=e.afterHidden,p=e.afterWidth,x=e.afterWidthOverride,S=e.before,C=e.beforeWidth,P=e.breadcrumbs,I=e.children,_=e.errors,k=e.headerMenuItems,N=e.navigationItems,H=e.setErrors,D=e.subheaderChildren,z=e.title,E=e.uuid,A=(0,O.i)().width,M="dashboard_after_width_".concat(E),W="dashboard_before_width_".concat(E),T=(0,o.useRef)(null),B=(0,o.useState)(x?p:(0,j.U2)(M,p)),F=B[0],R=B[1],U=(0,o.useState)(!1),q=U[0],L=U[1],G=(0,o.useState)(S?Math.max((0,j.U2)(W,C),13*w.iI):null),Q=G[0],Y=G[1],J=(0,o.useState)(!1),X=J[0],K=J[1],$=(0,o.useState)(null)[1],V=b.ZP.projects.list({},{revalidateOnFocus:!1}).data,ee=null===V||void 0===V?void 0:V.projects,ne=[];P?ne.push.apply(ne,(0,i.Z)(P)):(null===ee||void 0===ee?void 0:ee.length)>=1&&ne.push.apply(ne,[{label:function(){var e;return null===(e=ee[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},{bold:!0,label:function(){return z}}]),(0,o.useEffect)((function(){null===T||void 0===T||!T.current||q||X||null===$||void 0===$||$(T.current.getBoundingClientRect().width)}),[q,F,X,Q,T,$,A]),(0,o.useEffect)((function(){q||(0,j.t8)(M,F)}),[r,q,F,M]),(0,o.useEffect)((function(){X||(0,j.t8)(W,Q)}),[X,Q,W]);var te=(0,y.Z)(p);return(0,o.useEffect)((function(){x&&te!==p&&R(p)}),[x,p,te]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(s.Z,{title:z}),(0,f.jsx)(a.Z,{breadcrumbs:ne,menuItems:k,project:null===ee||void 0===ee?void 0:ee[0],version:null===ee||void 0===ee||null===(n=ee[0])||void 0===n?void 0:n.version}),(0,f.jsxs)(d.Nk,{children:[0!==(null===N||void 0===N?void 0:N.length)&&(0,f.jsx)(d.lm,{children:(0,f.jsx)(v.Z,{navigationItems:N})}),(0,f.jsx)(c.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(h.Z,{after:t,afterHeightOffset:g.Mz,afterHidden:r,afterMousedownActive:q,afterWidth:F,before:S,beforeHeightOffset:g.Mz,beforeMousedownActive:X,beforeWidth:d.k1+(S?Q:0),hideAfterCompletely:!0,leftOffset:S?d.k1:null,mainContainerRef:T,setAfterMousedownActive:L,setAfterWidth:R,setBeforeMousedownActive:K,setBeforeWidth:Y,children:[D&&(0,f.jsx)(m,{children:D}),I]})})]}),_&&(0,f.jsx)(l.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===H||void 0===H?void 0:H(null)},children:(0,f.jsx)(u.Z,Z(Z({},_),{},{onClose:function(){return null===H||void 0===H?void 0:H(null)}}))})]})}},2850:function(e,n,t){t.d(n,{M:function(){return u},W:function(){return l}});var r=t(9518),i=t(23831),o=t(3055),l=34*t(49125).iI,u=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);",""],o.Mz,(function(e){return"\n border-left: 1px solid ".concat((e.theme.borders||i.Z.borders).medium,";\n ")}))},79585:function(e,n,t){t.d(n,{DQ:function(){return a},HY:function(){return l},SA:function(){return d},WH:function(){return o},eC:function(){return c},fF:function(){return u},tC:function(){return s}});var r=t(81132),i=t(9736),o="Workspace",l="Preferences",u="Git settings",c="Users",s="Account",a="Profile",d=function(e){var n=e.owner,t=e.roles,d=[{linkProps:{href:"/settings/workspace/preferences"},uuid:l}];n&&d.push({linkProps:{href:"/settings/workspace/users"},uuid:c}),(!(0,i.YB)()||t<=r.No.EDITOR)&&d.push({linkProps:{href:"/settings/workspace/sync_data"},uuid:u});var f=[{items:d,uuid:o}];return(0,i.YB)()?f.concat([{items:[{linkProps:{href:"/settings/account/profile"},uuid:a}],uuid:s}]):f}},30775:function(e,n,t){t.d(n,{Z:function(){return Z}});var r=t(1210),i=t(82394),o=t(12691),l=t.n(o),u=t(10919),c=t(86673),s=t(19711),a=t(9518),d=t(23831),f=t(49125),p=t(90880),m=(f.iI,a.default.div.withConfig({displayName:"indexstyle__SectionTitleStyle",componentId:"sc-1y8dyue-0"})(["padding:","px ","px;"],1*f.iI,2.5*f.iI)),h=a.default.div.withConfig({displayName:"indexstyle__ItemStyle",componentId:"sc-1y8dyue-1"})([""," padding:","px ","px;"," ",""],(0,p.eR)(),1.5*f.iI,2.5*f.iI,(function(e){return!e.selected&&"\n &:hover {\n background-color: ".concat((e.theme.background||d.Z.background).codeArea,";\n }\n ")}),(function(e){return e.selected&&"\n background-color: ".concat((e.theme.background||d.Z.background).codeTextarea,";\n ")})),v=t(28598),b=t(82684);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 g(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?y(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):y(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var w=function(e){var n=e.isItemSelected,t=e.sections;return(0,v.jsx)(c.Z,{py:f.Gg,children:null===t||void 0===t?void 0:t.map((function(e){var t=e.items,r=e.title,i=e.uuid;return(0,v.jsxs)(c.Z,{children:[(0,v.jsx)(m,{children:(0,v.jsx)(s.ZP,{bold:!0,muted:!0,small:!0,uppercase:!0,children:r?r():i})}),null===t||void 0===t?void 0:t.map((function(e){var t=e.label,r=e.linkProps,o=e.onClick,c=e.uuid,s=t?t():c,a=(0,v.jsx)(h,{selected:null===n||void 0===n?void 0:n(g(g({},e),{},{uuidWorkspace:i})),children:s});return r?(0,b.createElement)(l(),g(g({},r),{},{key:c,passHref:!0}),(0,v.jsx)(u.Z,{block:!0,noHoverUnderline:!0,noOutline:!0,sameColorAsText:!0,children:a})):(0,v.jsx)(u.Z,{block:!0,noHoverUnderline:!0,noOutline:!0,onClick:o,preventDefault:!0,sameColorAsText:!0,children:a},c)}))]},i)}))})},j=t(2850),O=t(79585),x=t(9736);var Z=function(e){var n=e.after,t=e.afterHidden,i=e.children,o=e.uuidItemSelected,l=e.uuidWorkspaceSelected,u=(0,x.PR)()||{};return(0,v.jsx)(r.Z,{after:n,afterHidden:!n||t,afterWidth:n?50*f.iI:0,afterWidthOverride:!0,before:(0,v.jsx)(j.M,{children:(0,v.jsx)(w,{isItemSelected:function(e){var n=e.uuid,t=e.uuidWorkspace;return l===t&&o===n},sections:(0,O.SA)(u)})}),beforeWidth:j.W,title:"Settings",uuid:"settings/index",children:i})}},63153:function(e,n,t){t.d(n,{Z3:function(){return r},ms:function(){return o},s7:function(){return i}});var r=[{autoComplete:"username",label:"Username",required:!0,uuid:"username"},{autoComplete:"email",disabled:!0,label:"Email",required:!0,type:"email",uuid:"email"}],i="password_current",o=[{autoComplete:"current-password",label:"Current password",type:"password",uuid:i},{autoComplete:"new-password",label:"New password",type:"password",uuid:"password"},{autoComplete:"new-password",label:"Confirm new password",type:"password",uuid:"password_confirmation"}]},20582:function(e,n,t){var r=t(82394),i=t(21831),o=t(75582),l=t(21764),u=t(82684),c=t(83455),s=t(60328),a=t(67971),d=t(87372),f=t(55378),p=t(86673),m=t(82944),h=t(81132),v=t(82531),b=t(66166),y=t(63153),g=t(7715),w=t(96510),j=t(28598);function O(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function x(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?O(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):O(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.disabledFields,t=e.hideFields,O=e.newUser,Z=e.onDeleteSuccess,S=e.onSaveSuccess,C=e.showDelete,P=e.title,I=e.user,_=(0,u.useState)(!0),k=_[0],N=_[1],H=(0,u.useState)({}),D=H[0],z=H[1],E=(0,u.useState)(null),A=E[0],M=E[1],W=(0,c.Db)(O?v.ZP.users.useCreate():v.ZP.users.useUpdate(null===I||void 0===I?void 0:I.id),{onSuccess:function(e){return(0,w.wD)(e,{callback:function(e){var n=e.user,t=(0,g.GL)(n,y.Z3.concat(y.ms).map((function(e){return e.uuid})));M(t),l.Am.success(O?"New user created successfully.":"User profile successfully updated.",{position:l.Am.POSITION.BOTTOM_RIGHT,toastId:"user-update-success-".concat(n.id)}),null===S||void 0===S||S(t)},onErrorCallback:function(e){var n=e.error,t=n.message,r=n.type;l.Am.error(t,{position:l.Am.POSITION.BOTTOM_RIGHT,toastId:r})}})}}),T=(0,o.Z)(W,2),B=T[0],F=T[1].isLoading,R=(0,c.Db)(v.ZP.users.useDelete(null===I||void 0===I?void 0:I.id),{onSuccess:function(e){return(0,w.wD)(e,{callback:function(){null===Z||void 0===Z||Z()},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.message;alert(r),console.log(t)}})}}),U=(0,o.Z)(R,2),q=U[0],L=U[1].isLoading,G=t?(0,i.Z)(t):[];O&&G.push(y.s7);var Q=!G||!G.includes(y.s7),Y=(0,b.Z)(I);return(0,u.useEffect)((function(){!I||A&&(null===Y||void 0===Y?void 0:Y.id)===(null===I||void 0===I?void 0:I.id)||M((0,g.GL)(I,y.Z3.concat(y.ms).map((function(e){return e.uuid})))),null!==A&&void 0!==A&&A.password||null!==A&&void 0!==A&&A.password_confirmation?(null===A||void 0===A?void 0:A.password)!==(null===A||void 0===A?void 0:A.password_confirmation)?z({password_confirmation:"Password confirmation does not match."}):!Q||null!==A&&void 0!==A&&A.password_current?z(null):z({password_current:"This field is required."}):null!==A&&void 0!==A&&A.password_current&&Q?null!==A&&void 0!==A&&A.password&&null!==A&&void 0!==A&&A.password_confirmation?z(null):z({password:"This field is required.",password_confirmation:"This field is required."}):null!==A&&void 0!==A&&A.password_current||null!==A&&void 0!==A&&A.password||null!==A&&void 0!==A&&A.password_confirmation||z(null)}),[A,Q,I,Y]),(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(d.Z,{children:P||"Edit profile"}),(0,j.jsxs)("form",{children:[y.Z3.filter((function(e){var n=e.uuid;return!G||!G.includes(n)})).map((function(e){var n=e.autoComplete,t=e.disabled,i=e.label,o=e.required,l=e.type,u=e.uuid;return(0,j.jsx)(p.Z,{mt:2,children:(0,j.jsx)(m.Z,{autoComplete:n,disabled:t&&!O,label:i,onChange:function(e){N(!1),M((function(n){return x(x({},n),{},(0,r.Z)({},u,e.target.value))}))},primary:!0,required:o,setContentOnMount:!0,type:l,value:(null===A||void 0===A?void 0:A[u])||""})},u)})),!(null!==I&&void 0!==I&&I.owner)&&(0,j.jsx)(p.Z,{mt:2,children:(0,j.jsxs)(f.Z,{disabled:null===n||void 0===n?void 0:n.includes("roles"),label:"Roles",onChange:function(e){N(!1),M((function(n){return x(x({},n),{},{roles:e.target.value})}))},primary:!0,setContentOnMount:!0,value:(null===A||void 0===A?void 0:A.roles)||(null===I||void 0===I?void 0:I.roles)||"",children:[(0,j.jsx)("option",{value:""}),h.K$.map((function(e){return(0,j.jsx)("option",{value:e,children:h.gG[e]},e)}))]})}),(0,j.jsxs)(p.Z,{mt:5,children:[(0,j.jsx)(d.Z,{children:O?"Password":"Change password"}),y.ms.filter((function(e){var n=e.uuid;return!G||!G.includes(n)})).map((function(e){var n=e.autoComplete,t=e.disabled,i=e.label,o=e.required,l=e.type,u=e.uuid;return(0,j.jsx)(p.Z,{mt:2,children:(0,j.jsx)(m.Z,{autoComplete:n,disabled:t,label:i,meta:{error:null===D||void 0===D?void 0:D[u],touched:!(null===D||void 0===D||!D[u])},onChange:function(e){N(!1),M((function(n){return x(x({},n),{},(0,r.Z)({},u,e.target.value))}))},primary:!0,required:o,setContentOnMount:!0,type:l,value:(null===A||void 0===A?void 0:A[u])||""})},u)}))]}),(0,j.jsx)(p.Z,{mt:5,children:(0,j.jsxs)(a.Z,{children:[(0,j.jsx)(s.Z,{disabled:k||D&&!(0,g.Qr)(D),loading:F,onClick:function(){return B({user:A})},primary:!0,children:O?"Create new user":"Update user profile"}),C&&(0,j.jsx)(p.Z,{ml:1,children:(0,j.jsx)(s.Z,{danger:!0,loading:L,onClick:function(){window.confirm("Are you sure you want to delete ".concat(A.username||A.email,"?"))&&q()},children:"Delete user"})})]})})]})]})}},87372:function(e,n,t){var r,i,o,l,u,c,s,a,d=t(82394),f=t(26304),p=t(26653),m=t(9518),h=t(33591),v=t(23831),b=t(2005),y=t(31012),g=t(19711),w=t(49125),j=t(86673),O=t(28598),x=["children","condensed","inline","level","marketing","spacingBelow"];function Z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function S(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach((function(n){(0,d.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var C=(0,m.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],g.IH,(function(e){return e.color&&"\n color: ".concat(e.color,"\n ")}),(function(e){return e.yellow&&"\n color: ".concat((e.theme.accent||v.Z.accent).yellow,";\n ")}),(function(e){return e.center&&"\n text-align: center;\n "}),(function(e){return!e.monospace&&0===Number(e.weightStyle)&&"\n font-family: ".concat(b.iI,";\n ")}),(function(e){return!e.monospace&&1===Number(e.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(e){return!e.monospace&&2===Number(e.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(e){return!e.monospace&&3===Number(e.weightStyle)&&"\n font-family: ".concat(b.ry,";\n ")}),(function(e){return!e.monospace&&4===Number(e.weightStyle)&&"\n font-family: ".concat(b.YC,";\n ")}),(function(e){return!e.monospace&&5===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&(6===Number(e.weightStyle)||e.bold)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&7===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&8===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return e.lineHeightAuto&&"\n line-height: normal !important;\n "})),P=m.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(e){return"\n color: ".concat((e.theme.content||v.Z.content).active,";\n ")})),I=m.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],C,h.media.md(r||(r=(0,p.Z)(["\n ","\n "])),y.aQ),h.media.lg(i||(i=(0,p.Z)(["\n ","\n "])),y.aQ),h.media.xl(o||(o=(0,p.Z)(["\n ","\n "])),y.aQ)),_=m.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],C,y.MJ),k=m.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],C,h.media.xs(l||(l=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),h.media.sm(u||(u=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),h.media.md(c||(c=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),h.media.lg(s||(s=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),h.media.xl(a||(a=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI)),N=m.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],C,y.BL),H=m.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],C),D=m.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],C),z=m.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],C),E=m.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],C,(function(e){return 1===e.level&&"\n ".concat(y.MJ,"\n ")}),(function(e){return 2===e.level&&"\n ".concat(y.BL,"\n ")}),(function(e){return 3===e.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(e){return 4===e.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),A=function(e){var n,t=e.children,r=e.condensed,i=e.inline,o=e.level,l=e.marketing,u=e.spacingBelow,c=(0,f.Z)(e,x);i?n=E:0===Number(o)?n=I:1===Number(o)?n=l?k:_:2===Number(o)?n=N:3===Number(o)?n=H:4===Number(o)?n=D:5===Number(o)&&(n=z);var s=(0,O.jsxs)(n,S(S({},c),{},{level:o,children:[u&&(0,O.jsx)(j.Z,{mb:r?2:3,children:t}),!u&&t]}));return i?s:(0,O.jsx)(P,{children:s})};A.defaultProps={level:3,weightStyle:6},n.Z=A}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5477],{1210:function(e,n,t){t.d(n,{Z:function(){return S}});var r=t(82394),i=t(21831),o=t(82684),l=t(47999),u=t(49894),c=t(93461),s=t(57384),a=t(12344),d=t(72454),f=t(28598);function p(e,n){var t=e.children;return(0,f.jsx)(d.HS,{ref:n,children:t})}var m=o.forwardRef(p),h=t(32063),v=t(15270),b=t(82531),y=t(66166),g=t(3055),w=t(49125),j=t(91427),O=t(24141);function x(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?x(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):x(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var S=function(e){var n,t=e.after,r=e.afterHidden,p=e.afterWidth,x=e.afterWidthOverride,S=e.before,C=e.beforeWidth,P=e.breadcrumbs,I=e.children,_=e.errors,k=e.headerMenuItems,N=e.navigationItems,H=e.setErrors,D=e.subheaderChildren,z=e.title,E=e.uuid,A=(0,O.i)().width,M="dashboard_after_width_".concat(E),W="dashboard_before_width_".concat(E),T=(0,o.useRef)(null),B=(0,o.useState)(x?p:(0,j.U2)(M,p)),F=B[0],R=B[1],U=(0,o.useState)(!1),q=U[0],L=U[1],G=(0,o.useState)(S?Math.max((0,j.U2)(W,C),13*w.iI):null),Q=G[0],Y=G[1],J=(0,o.useState)(!1),X=J[0],K=J[1],$=(0,o.useState)(null)[1],V=b.ZP.projects.list({},{revalidateOnFocus:!1}).data,ee=null===V||void 0===V?void 0:V.projects,ne=[];P?ne.push.apply(ne,(0,i.Z)(P)):(null===ee||void 0===ee?void 0:ee.length)>=1&&ne.push.apply(ne,[{label:function(){var e;return null===(e=ee[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},{bold:!0,label:function(){return z}}]),(0,o.useEffect)((function(){null===T||void 0===T||!T.current||q||X||null===$||void 0===$||$(T.current.getBoundingClientRect().width)}),[q,F,X,Q,T,$,A]),(0,o.useEffect)((function(){q||(0,j.t8)(M,F)}),[r,q,F,M]),(0,o.useEffect)((function(){X||(0,j.t8)(W,Q)}),[X,Q,W]);var te=(0,y.Z)(p);return(0,o.useEffect)((function(){x&&te!==p&&R(p)}),[x,p,te]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(s.Z,{title:z}),(0,f.jsx)(a.Z,{breadcrumbs:ne,menuItems:k,project:null===ee||void 0===ee?void 0:ee[0],version:null===ee||void 0===ee||null===(n=ee[0])||void 0===n?void 0:n.version}),(0,f.jsxs)(d.Nk,{children:[0!==(null===N||void 0===N?void 0:N.length)&&(0,f.jsx)(d.lm,{children:(0,f.jsx)(v.Z,{navigationItems:N})}),(0,f.jsx)(c.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(h.Z,{after:t,afterHeightOffset:g.Mz,afterHidden:r,afterMousedownActive:q,afterWidth:F,before:S,beforeHeightOffset:g.Mz,beforeMousedownActive:X,beforeWidth:d.k1+(S?Q:0),hideAfterCompletely:!0,leftOffset:S?d.k1:null,mainContainerRef:T,setAfterMousedownActive:L,setAfterWidth:R,setBeforeMousedownActive:K,setBeforeWidth:Y,children:[D&&(0,f.jsx)(m,{children:D}),I]})})]}),_&&(0,f.jsx)(l.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===H||void 0===H?void 0:H(null)},children:(0,f.jsx)(u.Z,Z(Z({},_),{},{onClose:function(){return null===H||void 0===H?void 0:H(null)}}))})]})}},2850:function(e,n,t){t.d(n,{M:function(){return u},W:function(){return l}});var r=t(9518),i=t(23831),o=t(3055),l=34*t(49125).iI,u=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);",""],o.Mz,(function(e){return"\n border-left: 1px solid ".concat((e.theme.borders||i.Z.borders).medium,";\n ")}))},79585:function(e,n,t){t.d(n,{DQ:function(){return a},HY:function(){return l},SA:function(){return d},WH:function(){return o},eC:function(){return c},fF:function(){return u},tC:function(){return s}});var r=t(81132),i=t(9736),o="Workspace",l="Preferences",u="Git settings",c="Users",s="Account",a="Profile",d=function(e){var n=e.owner,t=e.roles,d=[{linkProps:{href:"/settings/workspace/preferences"},uuid:l}];n&&d.push({linkProps:{href:"/settings/workspace/users"},uuid:c}),(!(0,i.YB)()||t<=r.No.EDITOR)&&d.push({linkProps:{href:"/settings/workspace/sync-data"},uuid:u});var f=[{items:d,uuid:o}];return(0,i.YB)()?f.concat([{items:[{linkProps:{href:"/settings/account/profile"},uuid:a}],uuid:s}]):f}},30775:function(e,n,t){t.d(n,{Z:function(){return Z}});var r=t(1210),i=t(82394),o=t(12691),l=t.n(o),u=t(10919),c=t(86673),s=t(19711),a=t(9518),d=t(23831),f=t(49125),p=t(90880),m=(f.iI,a.default.div.withConfig({displayName:"indexstyle__SectionTitleStyle",componentId:"sc-1y8dyue-0"})(["padding:","px ","px;"],1*f.iI,2.5*f.iI)),h=a.default.div.withConfig({displayName:"indexstyle__ItemStyle",componentId:"sc-1y8dyue-1"})([""," padding:","px ","px;"," ",""],(0,p.eR)(),1.5*f.iI,2.5*f.iI,(function(e){return!e.selected&&"\n &:hover {\n background-color: ".concat((e.theme.background||d.Z.background).codeArea,";\n }\n ")}),(function(e){return e.selected&&"\n background-color: ".concat((e.theme.background||d.Z.background).codeTextarea,";\n ")})),v=t(28598),b=t(82684);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 g(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?y(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):y(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var w=function(e){var n=e.isItemSelected,t=e.sections;return(0,v.jsx)(c.Z,{py:f.Gg,children:null===t||void 0===t?void 0:t.map((function(e){var t=e.items,r=e.title,i=e.uuid;return(0,v.jsxs)(c.Z,{children:[(0,v.jsx)(m,{children:(0,v.jsx)(s.ZP,{bold:!0,muted:!0,small:!0,uppercase:!0,children:r?r():i})}),null===t||void 0===t?void 0:t.map((function(e){var t=e.label,r=e.linkProps,o=e.onClick,c=e.uuid,s=t?t():c,a=(0,v.jsx)(h,{selected:null===n||void 0===n?void 0:n(g(g({},e),{},{uuidWorkspace:i})),children:s});return r?(0,b.createElement)(l(),g(g({},r),{},{key:c,passHref:!0}),(0,v.jsx)(u.Z,{block:!0,noHoverUnderline:!0,noOutline:!0,sameColorAsText:!0,children:a})):(0,v.jsx)(u.Z,{block:!0,noHoverUnderline:!0,noOutline:!0,onClick:o,preventDefault:!0,sameColorAsText:!0,children:a},c)}))]},i)}))})},j=t(2850),O=t(79585),x=t(9736);var Z=function(e){var n=e.after,t=e.afterHidden,i=e.children,o=e.uuidItemSelected,l=e.uuidWorkspaceSelected,u=(0,x.PR)()||{};return(0,v.jsx)(r.Z,{after:n,afterHidden:!n||t,afterWidth:n?50*f.iI:0,afterWidthOverride:!0,before:(0,v.jsx)(j.M,{children:(0,v.jsx)(w,{isItemSelected:function(e){var n=e.uuid,t=e.uuidWorkspace;return l===t&&o===n},sections:(0,O.SA)(u)})}),beforeWidth:j.W,title:"Settings",uuid:"settings/index",children:i})}},63153:function(e,n,t){t.d(n,{Z3:function(){return r},ms:function(){return o},s7:function(){return i}});var r=[{autoComplete:"username",label:"Username",required:!0,uuid:"username"},{autoComplete:"email",disabled:!0,label:"Email",required:!0,type:"email",uuid:"email"}],i="password_current",o=[{autoComplete:"current-password",label:"Current password",type:"password",uuid:i},{autoComplete:"new-password",label:"New password",type:"password",uuid:"password"},{autoComplete:"new-password",label:"Confirm new password",type:"password",uuid:"password_confirmation"}]},20582:function(e,n,t){var r=t(82394),i=t(21831),o=t(75582),l=t(21764),u=t(82684),c=t(83455),s=t(60328),a=t(67971),d=t(87372),f=t(55378),p=t(86673),m=t(82944),h=t(81132),v=t(82531),b=t(66166),y=t(63153),g=t(7715),w=t(96510),j=t(28598);function O(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function x(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?O(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):O(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.disabledFields,t=e.hideFields,O=e.newUser,Z=e.onDeleteSuccess,S=e.onSaveSuccess,C=e.showDelete,P=e.title,I=e.user,_=(0,u.useState)(!0),k=_[0],N=_[1],H=(0,u.useState)({}),D=H[0],z=H[1],E=(0,u.useState)(null),A=E[0],M=E[1],W=(0,c.Db)(O?v.ZP.users.useCreate():v.ZP.users.useUpdate(null===I||void 0===I?void 0:I.id),{onSuccess:function(e){return(0,w.wD)(e,{callback:function(e){var n=e.user,t=(0,g.GL)(n,y.Z3.concat(y.ms).map((function(e){return e.uuid})));M(t),l.Am.success(O?"New user created successfully.":"User profile successfully updated.",{position:l.Am.POSITION.BOTTOM_RIGHT,toastId:"user-update-success-".concat(n.id)}),null===S||void 0===S||S(t)},onErrorCallback:function(e){var n=e.error,t=n.message,r=n.type;l.Am.error(t,{position:l.Am.POSITION.BOTTOM_RIGHT,toastId:r})}})}}),T=(0,o.Z)(W,2),B=T[0],F=T[1].isLoading,R=(0,c.Db)(v.ZP.users.useDelete(null===I||void 0===I?void 0:I.id),{onSuccess:function(e){return(0,w.wD)(e,{callback:function(){null===Z||void 0===Z||Z()},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.message;alert(r),console.log(t)}})}}),U=(0,o.Z)(R,2),q=U[0],L=U[1].isLoading,G=t?(0,i.Z)(t):[];O&&G.push(y.s7);var Q=!G||!G.includes(y.s7),Y=(0,b.Z)(I);return(0,u.useEffect)((function(){!I||A&&(null===Y||void 0===Y?void 0:Y.id)===(null===I||void 0===I?void 0:I.id)||M((0,g.GL)(I,y.Z3.concat(y.ms).map((function(e){return e.uuid})))),null!==A&&void 0!==A&&A.password||null!==A&&void 0!==A&&A.password_confirmation?(null===A||void 0===A?void 0:A.password)!==(null===A||void 0===A?void 0:A.password_confirmation)?z({password_confirmation:"Password confirmation does not match."}):!Q||null!==A&&void 0!==A&&A.password_current?z(null):z({password_current:"This field is required."}):null!==A&&void 0!==A&&A.password_current&&Q?null!==A&&void 0!==A&&A.password&&null!==A&&void 0!==A&&A.password_confirmation?z(null):z({password:"This field is required.",password_confirmation:"This field is required."}):null!==A&&void 0!==A&&A.password_current||null!==A&&void 0!==A&&A.password||null!==A&&void 0!==A&&A.password_confirmation||z(null)}),[A,Q,I,Y]),(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(d.Z,{children:P||"Edit profile"}),(0,j.jsxs)("form",{children:[y.Z3.filter((function(e){var n=e.uuid;return!G||!G.includes(n)})).map((function(e){var n=e.autoComplete,t=e.disabled,i=e.label,o=e.required,l=e.type,u=e.uuid;return(0,j.jsx)(p.Z,{mt:2,children:(0,j.jsx)(m.Z,{autoComplete:n,disabled:t&&!O,label:i,onChange:function(e){N(!1),M((function(n){return x(x({},n),{},(0,r.Z)({},u,e.target.value))}))},primary:!0,required:o,setContentOnMount:!0,type:l,value:(null===A||void 0===A?void 0:A[u])||""})},u)})),!(null!==I&&void 0!==I&&I.owner)&&(0,j.jsx)(p.Z,{mt:2,children:(0,j.jsxs)(f.Z,{disabled:null===n||void 0===n?void 0:n.includes("roles"),label:"Roles",onChange:function(e){N(!1),M((function(n){return x(x({},n),{},{roles:e.target.value})}))},primary:!0,setContentOnMount:!0,value:(null===A||void 0===A?void 0:A.roles)||(null===I||void 0===I?void 0:I.roles)||"",children:[(0,j.jsx)("option",{value:""}),h.K$.map((function(e){return(0,j.jsx)("option",{value:e,children:h.gG[e]},e)}))]})}),(0,j.jsxs)(p.Z,{mt:5,children:[(0,j.jsx)(d.Z,{children:O?"Password":"Change password"}),y.ms.filter((function(e){var n=e.uuid;return!G||!G.includes(n)})).map((function(e){var n=e.autoComplete,t=e.disabled,i=e.label,o=e.required,l=e.type,u=e.uuid;return(0,j.jsx)(p.Z,{mt:2,children:(0,j.jsx)(m.Z,{autoComplete:n,disabled:t,label:i,meta:{error:null===D||void 0===D?void 0:D[u],touched:!(null===D||void 0===D||!D[u])},onChange:function(e){N(!1),M((function(n){return x(x({},n),{},(0,r.Z)({},u,e.target.value))}))},primary:!0,required:o,setContentOnMount:!0,type:l,value:(null===A||void 0===A?void 0:A[u])||""})},u)}))]}),(0,j.jsx)(p.Z,{mt:5,children:(0,j.jsxs)(a.Z,{children:[(0,j.jsx)(s.Z,{disabled:k||D&&!(0,g.Qr)(D),loading:F,onClick:function(){return B({user:A})},primary:!0,children:O?"Create new user":"Update user profile"}),C&&(0,j.jsx)(p.Z,{ml:1,children:(0,j.jsx)(s.Z,{danger:!0,loading:L,onClick:function(){window.confirm("Are you sure you want to delete ".concat(A.username||A.email,"?"))&&q()},children:"Delete user"})})]})})]})]})}},87372:function(e,n,t){var r,i,o,l,u,c,s,a,d=t(82394),f=t(26304),p=t(26653),m=t(9518),h=t(33591),v=t(23831),b=t(2005),y=t(31012),g=t(19711),w=t(49125),j=t(86673),O=t(28598),x=["children","condensed","inline","level","marketing","spacingBelow"];function Z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function S(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach((function(n){(0,d.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var C=(0,m.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],g.IH,(function(e){return e.color&&"\n color: ".concat(e.color,"\n ")}),(function(e){return e.yellow&&"\n color: ".concat((e.theme.accent||v.Z.accent).yellow,";\n ")}),(function(e){return e.center&&"\n text-align: center;\n "}),(function(e){return!e.monospace&&0===Number(e.weightStyle)&&"\n font-family: ".concat(b.iI,";\n ")}),(function(e){return!e.monospace&&1===Number(e.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(e){return!e.monospace&&2===Number(e.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(e){return!e.monospace&&3===Number(e.weightStyle)&&"\n font-family: ".concat(b.ry,";\n ")}),(function(e){return!e.monospace&&4===Number(e.weightStyle)&&"\n font-family: ".concat(b.YC,";\n ")}),(function(e){return!e.monospace&&5===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&(6===Number(e.weightStyle)||e.bold)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&7===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&8===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return e.lineHeightAuto&&"\n line-height: normal !important;\n "})),P=m.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(e){return"\n color: ".concat((e.theme.content||v.Z.content).active,";\n ")})),I=m.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],C,h.media.md(r||(r=(0,p.Z)(["\n ","\n "])),y.aQ),h.media.lg(i||(i=(0,p.Z)(["\n ","\n "])),y.aQ),h.media.xl(o||(o=(0,p.Z)(["\n ","\n "])),y.aQ)),_=m.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],C,y.MJ),k=m.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],C,h.media.xs(l||(l=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),h.media.sm(u||(u=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),h.media.md(c||(c=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),h.media.lg(s||(s=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),h.media.xl(a||(a=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI)),N=m.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],C,y.BL),H=m.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],C),D=m.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],C),z=m.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],C),E=m.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],C,(function(e){return 1===e.level&&"\n ".concat(y.MJ,"\n ")}),(function(e){return 2===e.level&&"\n ".concat(y.BL,"\n ")}),(function(e){return 3===e.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(e){return 4===e.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),A=function(e){var n,t=e.children,r=e.condensed,i=e.inline,o=e.level,l=e.marketing,u=e.spacingBelow,c=(0,f.Z)(e,x);i?n=E:0===Number(o)?n=I:1===Number(o)?n=l?k:_:2===Number(o)?n=N:3===Number(o)?n=H:4===Number(o)?n=D:5===Number(o)&&(n=z);var s=(0,O.jsxs)(n,S(S({},c),{},{level:o,children:[u&&(0,O.jsx)(j.Z,{mb:r?2:3,children:t}),!u&&t]}));return i?s:(0,O.jsx)(P,{children:s})};A.defaultProps={level:3,weightStyle:6},n.Z=A}}]);
|