mage-ai 0.8.37__py3-none-any.whl → 0.8.38__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of mage-ai might be problematic. Click here for more details.
- mage_ai/api/logging.py +2 -2
- mage_ai/api/resources/PipelineRunResource.py +6 -3
- mage_ai/data_integrations/sources/constants.py +1 -0
- mage_ai/data_preparation/models/block/dbt/__init__.py +20 -0
- mage_ai/data_preparation/models/block/dbt/utils/__init__.py +4 -1
- mage_ai/data_preparation/models/pipeline.py +10 -1
- mage_ai/orchestration/pipeline_scheduler.py +37 -27
- mage_ai/server/active_kernel.py +6 -3
- mage_ai/server/api/clusters.py +4 -1
- mage_ai/server/api/integration_sources.py +5 -2
- mage_ai/server/client/mage.py +2 -2
- mage_ai/server/constants.py +1 -1
- mage_ai/server/data/base.py +2 -2
- mage_ai/server/data/models.py +2 -2
- 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/{23nXkA2GRjJCZDwY3kuKd → R_cV5sAcMT3qDXIKAGGPe}/_buildManifest.js +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{2626-905774aafeb2c600.js → 2626-e7fa4f83f8214c97.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/4178-9103014b7dae3c49.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/{5477-793cd2120261d023.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/{7400-365cb7888b6db7d9.js → 7400-f4db9b5d41f67f75.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/{9386-fb899ca8ecc2a350.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/{manage-9e5f315db570ac77.js → manage-3046bc53d24917c7.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{pipeline-runs-79e10a783afec3df.js → pipeline-runs-e64ba4e8b2bfe73c.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-6d04570af5494767.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{syncs-1767a2f57f887ef7.js → syncs-e1271453ed0c8d6e.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{pipelines-52c3ee3817e5554b.js → pipelines-7446a70bdd8381a5.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{preferences-a23b61bab04a16f3.js → preferences-997acba85f777259.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{sync-data-de28e502102defde.js → sync-data-8c903140c99e487c.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{terminal-9c21edae8f1b6737.js → terminal-4c9ad80f8f9d1074.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{triggers-8a2169d30b643ae7.js → triggers-783b9526167f1249.js} +1 -1
- mage_ai/server/frontend_dist/index.html +2 -2
- mage_ai/server/frontend_dist/manage.html +2 -2
- mage_ai/server/frontend_dist/pipeline-runs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +2 -2
- mage_ai/server/frontend_dist/pipelines/[pipeline].html +2 -2
- mage_ai/server/frontend_dist/pipelines.html +2 -2
- mage_ai/server/frontend_dist/settings/account/profile.html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/preferences.html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/sync-data.html +2 -2
- mage_ai/server/frontend_dist/settings/workspace/users.html +2 -2
- mage_ai/server/frontend_dist/settings.html +2 -2
- mage_ai/server/frontend_dist/sign-in.html +2 -2
- mage_ai/server/frontend_dist/terminal.html +2 -2
- mage_ai/server/frontend_dist/test.html +2 -2
- mage_ai/server/frontend_dist/triggers.html +2 -2
- mage_ai/server/logger.py +16 -0
- mage_ai/server/scheduler_manager.py +8 -4
- mage_ai/server/server.py +5 -0
- mage_ai/server/subscriber.py +6 -3
- mage_ai/server/utils/frontend_renderer.py +3 -2
- mage_ai/server/websocket_server.py +4 -1
- mage_ai/settings/__init__.py +2 -0
- mage_ai/shared/logger.py +4 -0
- {mage_ai-0.8.37.dist-info → mage_ai-0.8.38.dist-info}/METADATA +1 -1
- {mage_ai-0.8.37.dist-info → mage_ai-0.8.38.dist-info}/RECORD +77 -76
- mage_ai/server/frontend_dist/_next/static/chunks/4178-e17f37d21253b832.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-6a52671f1853e1a5.js +0 -1
- /mage_ai/server/frontend_dist/_next/static/{23nXkA2GRjJCZDwY3kuKd → R_cV5sAcMT3qDXIKAGGPe}/_middlewareManifest.js +0 -0
- /mage_ai/server/frontend_dist/_next/static/{23nXkA2GRjJCZDwY3kuKd → R_cV5sAcMT3qDXIKAGGPe}/_ssgManifest.js +0 -0
- {mage_ai-0.8.37.dist-info → mage_ai-0.8.38.dist-info}/LICENSE +0 -0
- {mage_ai-0.8.37.dist-info → mage_ai-0.8.38.dist-info}/WHEEL +0 -0
- {mage_ai-0.8.37.dist-info → mage_ai-0.8.38.dist-info}/entry_points.txt +0 -0
- {mage_ai-0.8.37.dist-info → mage_ai-0.8.38.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4178],{65597:function(n,e,t){t.d(e,{f:function(){return c}});var r=t(9518),i=t(23831),o=t(49125),u=t(73942),c=r.default.div.withConfig({displayName:"Tablestyle__PopupContainerStyle",componentId:"sc-8ammqd-0"})(["position:absolute;max-height:","px;z-index:10;border-radius:","px;padding:","px;"," "," "," ",""],58*o.iI,u.TR,2*o.iI,(function(n){return"\n box-shadow: ".concat((n.theme.shadow||i.Z.shadow).popup,";\n background-color: ").concat((n.theme.interactive||i.Z.interactive).defaultBackground,";\n ")}),(function(n){return n.leftOffset&&"\n left: ".concat(n.leftOffset,"px;\n ")}),(function(n){return n.topOffset&&"\n top: ".concat(n.topOffset,"px;\n ")}),(function(n){return n.width&&"\n width: ".concat(n.width,"px;\n ")}))},97496:function(n,e,t){var r=t(75582),i=t(12691),o=t.n(i),u=t(34376),c=t.n(u),l=t(82684),s=t(83455),a=t(60328),d=t(47999),p=t(93461),f=t(67971),h=t(10919),g=t(47409),m=t(86673),j=t(54283),x=t(58180),b=t(19711),Z=t(82531),v=t(23831),_=t(73942),C=t(10503),I=t(65597),E=t(93348),O=t(45838),y=t(49125),P=t(42305),w=t(19395),D=t(9736),k=t(96510),S=t(28598);function A(n){var e=n.cancelingRunId,t=n.disabled,i=n.isLoadingCancelPipeline,o=n.onCancel,u=n.onSuccess,c=n.pipelineRun,p=n.setCancelingRunId,h=n.setErrors,x=n.setShowConfirmationId,O=n.showConfirmationId,w=(0,D.Ct)(),A=c||{},N=A.id,T=A.pipeline_schedule_id,L=A.pipeline_schedule_token,R=A.pipeline_schedule_type,V=A.status,M=i&&N===e&&g.V.RUNNING===V,Y=(0,s.Db)(E.Xm.API===R&&L?Z.ZP.pipeline_runs.pipeline_schedules.useCreateWithParent(T,L):Z.ZP.pipeline_runs.pipeline_schedules.useCreate(T),{onSuccess:function(n){return(0,k.wD)(n,{callback:function(){u()},onErrorCallback:function(n,e){return null===h||void 0===h?void 0:h({errors:e,response:n})}})}}),U=(0,r.Z)(Y,1)[0],F=(0,l.useCallback)((function(){x(null),U({pipeline_run:{execution_date:(0,P.d$)((new Date).toISOString(),{includeSeconds:!0,utcFormat:!0}),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}})}),[U,c,x]),H=(0,l.useCallback)((function(){x(null),p(N),o({id:N,status:g.V.CANCELLED})}),[o,N,p,x]);return(0,S.jsxs)("div",{style:{position:"relative"},children:[(0,S.jsx)(a.Z,{backgroundColor:M&&v.Z.accent.yellow,beforeIcon:g.V.INITIAL!==V&&!t&&(0,S.jsxs)(S.Fragment,{children:[g.V.COMPLETED===V&&(0,S.jsx)(C.Jr,{size:2*y.iI}),[g.V.FAILED,g.V.CANCELLED].includes(V)&&(0,S.jsx)(C.Py,{inverted:g.V.CANCELLED===V&&!w,size:2*y.iI}),[g.V.RUNNING].includes(V)&&(0,S.jsx)(j.Z,{color:M?v.Z.status.negative:v.Z.monotone.white,small:!0})]}),borderRadius:_.D7,danger:g.V.FAILED===V&&!w,default:g.V.INITIAL===V,disabled:t||w,loading:!c,onClick:function(){return x(N)},padding:"6px",primary:g.V.RUNNING===V&&!M&&!w,warning:g.V.CANCELLED===V&&!w,children:t?"Ready":M?"Canceling":g.D[V]}),(0,S.jsx)(d.Z,{onClickOutside:function(){return x(null)},open:O===N,children:(0,S.jsxs)(I.f,{children:[[g.V.RUNNING,g.V.INITIAL].includes(V)&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(b.ZP,{bold:!0,color:"#9ECBFF",children:"Run is in progress"}),(0,S.jsx)(m.Z,{mb:1}),(0,S.jsxs)(b.ZP,{children:["This pipeline run is currently ongoing. Retrying will cancel",(0,S.jsx)("br",{}),"the current pipeline run."]}),(0,S.jsx)(b.ZP,{}),(0,S.jsx)(m.Z,{mt:1,children:(0,S.jsxs)(f.Z,{children:[(0,S.jsx)(a.Z,{onClick:function(){H(),F()},children:"Retry run"}),(0,S.jsx)(m.Z,{ml:1}),(0,S.jsx)(a.Z,{onClick:H,children:"Cancel run"})]})})]}),[g.V.CANCELLED,g.V.FAILED,g.V.COMPLETED].includes(V)&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsxs)(b.ZP,{bold:!0,color:"#9ECBFF",children:["Run ",V]}),(0,S.jsx)(m.Z,{mb:1}),(0,S.jsx)(b.ZP,{children:"Retry the run with changes you have made to the pipeline."}),(0,S.jsx)(m.Z,{mb:1}),(0,S.jsx)(a.Z,{onClick:F,children:"Retry run"})]})]})})]})}e.Z=function(n){var e=n.disableRowSelect,t=n.emptyMessage,i=void 0===t?"No runs available":t,u=n.fetchPipelineRuns,d=n.onClickRow,j=n.pipelineRuns,v=n.selectedRun,I=n.setErrors,E=(0,l.useState)(null),P=E[0],D=E[1],N=(0,l.useState)(null),T=N[0],L=N[1],R=(0,s.Db)((function(n){var e=n.id,t=n.status;return Z.ZP.pipeline_runs.useUpdate(e)({pipeline_run:{status:t}})}),{onSuccess:function(n){return(0,k.wD)(n,{callback:function(){D(null),u()},onErrorCallback:function(n,e){D(null),null===I||void 0===I||I({errors:e,response:n})}})}}),V=(0,r.Z)(R,2),M=V[0],Y=V[1].isLoading,U=[null,1,2,1,1,null],F=[{uuid:"Status"},{uuid:"Pipeline UUID"},{uuid:"Date"},{uuid:"Trigger"},{uuid:"Block runs"},{uuid:"Completed"},{uuid:"Logs"}];return!e&&d&&(U.push(null),F.push({label:function(){return""},uuid:"action"})),(0,S.jsx)(O.cl,{minHeight:30*y.iI,overflowVisible:!!T,children:0===(null===j||void 0===j?void 0:j.length)?(0,S.jsx)(m.Z,{px:3,py:1,children:(0,S.jsx)(b.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:i})}):(0,S.jsx)(x.Z,{columnFlex:U,columns:F,isSelectedRow:function(n){return!e&&j[n].id===(null===v||void 0===v?void 0:v.id)},onClickRow:e?null:d,rowVerticalPadding:6,rows:null===j||void 0===j?void 0:j.map((function(n,t){var r=n.block_runs_count,i=n.completed_at,l=n.execution_date,s=n.id,x=n.pipeline_schedule_id,Z=n.pipeline_schedule_name,v=n.pipeline_uuid,E=n.status,O=!s&&!E,k=[];return k=t>0&&j[t-1].execution_date===n.execution_date&&j[t-1].pipeline_schedule_id===n.pipeline_schedule_id?[(0,S.jsx)(m.Z,{ml:1,children:(0,S.jsxs)(f.Z,{alignItems:"center",children:[(0,S.jsx)(C.TT,{size:2*y.iI,useStroke:!0}),(0,S.jsx)(a.Z,{borderRadius:_.D7,notClickable:!0,padding:"6px",children:(0,S.jsx)(b.ZP,{muted:!0,children:g.D[E]})})]})},"row_status"),(0,S.jsx)(b.ZP,{default:!0,monospace:!0,muted:!0,children:v},"row_pipeline_uuid"),(0,S.jsx)(b.ZP,{default:!0,monospace:!0,muted:!0,children:"-"},"row_date_retry"),(0,S.jsx)(b.ZP,{default:!0,monospace:!0,muted:!0,children:"-"},"row_trigger_retry"),(0,S.jsx)(o(),{as:"/pipelines/".concat(v,"/runs/").concat(s),href:"/pipelines/[pipeline]/runs/[run]",passHref:!0,children:(0,S.jsx)(h.Z,{bold:!0,muted:!0,children:"See block runs (".concat(r,")")})},"row_block_runs"),(0,S.jsx)(b.ZP,{monospace:!0,muted:!0,children:i&&(0,w.eI)(i).toISOString().split(".")[0]||"-"},"row_completed"),(0,S.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return c().push("/pipelines/".concat(v,"/logs?pipeline_run_id[]=").concat(s))},children:(0,S.jsx)(C.B4,{default:!0,size:2*y.iI})},"row_logs")]:[(0,S.jsx)(A,{cancelingRunId:P,disabled:O,isLoadingCancelPipeline:Y,onCancel:M,onSuccess:u,pipelineRun:n,setCancelingRunId:D,setErrors:I,setShowConfirmationId:L,showConfirmationId:T},"row_retry_button"),(0,S.jsx)(b.ZP,{default:!0,monospace:!0,children:v},"row_pipeline_uuid"),(0,S.jsx)(b.ZP,{default:!0,monospace:!0,children:l&&(0,w.eI)(l).toISOString().split(".")[0]||"-"},"row_date"),(0,S.jsx)(o(),{as:"/pipelines/".concat(v,"/triggers/").concat(x),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,S.jsx)(h.Z,{bold:!0,sameColorAsText:!0,children:Z})},"row_trigger"),(0,S.jsx)(o(),{as:"/pipelines/".concat(v,"/runs/").concat(s),href:"/pipelines/[pipeline]/runs/[run]",passHref:!0,children:(0,S.jsx)(h.Z,{bold:!0,disabled:O,sameColorAsText:!0,children:O?"":"See block runs (".concat(r,")")})},"row_block_runs"),(0,S.jsx)(b.ZP,{default:!0,monospace:!0,children:i&&(0,w.eI)(i).toISOString().split(".")[0]||"-"},"row_completed"),(0,S.jsx)(a.Z,{default:!0,disabled:O,iconOnly:!0,noBackground:!0,onClick:function(){return c().push("/pipelines/".concat(v,"/logs?pipeline_run_id[]=").concat(s))},children:(0,S.jsx)(C.B4,{default:!0,size:2*y.iI})},"row_item_13")],!e&&d&&k.push((0,S.jsx)(p.Z,{flex:1,justifyContent:"flex-end",children:(0,S.jsx)(C._Q,{default:!0,size:2*y.iI})})),k})),uuid:"pipeline-runs"})})}},19395:function(n,e,t){t.d(e,{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 r,i,o=t(82394),u=t(92083),c=t.n(u);function l(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function s(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?l(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):l(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function a(n){return null===n||void 0===n?void 0:n.reduce((function(n,e){var t=e.block_uuid,r=e.completed_at,i=e.started_at,u=e.status,l=null;i&&r&&(l=c()(r).valueOf()-c()(i).valueOf());return s(s({},n),{},(0,o.Z)({},t,{runtime:l,status:u}))}),{})}function d(n){if(!n)return null;var e=new Date(c()(n).valueOf()),t=Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds());return new Date(t)}function p(n){return d(n).toISOString().split(".")[0]}!function(n){n.DAY="day",n.HOUR="hour",n.MINUTE="minute",n.SECOND="second"}(i||(i={}));var f=(r={},(0,o.Z)(r,i.DAY,86400),(0,o.Z)(r,i.HOUR,3600),(0,o.Z)(r,i.MINUTE,60),(0,o.Z)(r,i.SECOND,1),r);function h(n){var e=i.SECOND,t=n;return n%86400===0?(t/=86400,e=i.DAY):n%3600===0?(t/=3600,e=i.HOUR):n%60===0&&(t/=60,e=i.MINUTE),{time:t,unit:e}}function g(n,e){return n*f[e]}},51099:function(n,e,t){t.d(e,{Q:function(){return a}});t(82684);var r=t(60328),i=t(67971),o=t(86673),u=t(10503),c=t(73899),l=t(49125),s=t(28598),a=22;e.Z=function(n){var e=n.page,t=n.maxPages,a=n.onUpdate,d=n.totalPages,p=[],f=t;if(f>d)p=Array.from({length:d},(function(n,e){return e}));else{var h=Math.floor(f/2),g=e-h;e+h>=d?(g=d-f+2,f-=2):e-h<=0?(g=0,f-=2):(f-=4,g=e-Math.floor(f/2)),p=Array.from({length:f},(function(n,e){return e+g}))}return(0,s.jsx)(s.Fragment,{children:d>0&&(0,s.jsxs)(i.Z,{alignItems:"center",children:[(0,s.jsx)(r.Z,{disabled:0===e,onClick:function(){return a(e-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)(r.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)(r.Z,{notClickable:!0,noBackground:!0,noPadding:!0,children:"..."})},0)]}),p.map((function(n){return(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(r.Z,{onClick:function(){n!==e&&a(n)},notClickable:n===e,backgroundColor:n===e&&c.a$,borderLess:!0,noBackground:!0,children:n+1})},n)})),!p.includes(d-1)&&(0,s.jsxs)(s.Fragment,{children:[!p.includes(d-2)&&(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(r.Z,{notClickable:!0,noBackground:!0,noPadding:!0,children:"..."})},0),(0,s.jsx)(o.Z,{ml:1,children:(0,s.jsx)(r.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)(r.Z,{disabled:e===d-1,onClick:function(){return a(e+1)},children:(0,s.jsx)(u.Kw,{size:1.5*l.iI,stroke:"#AEAEAE"})})]})})}},47409:function(n,e,t){t.d(e,{D:function(){return u},V:function(){return o}});var r,i=t(82394),o=t(66050).V,u=(r={},(0,i.Z)(r,o.CANCELLED,"Cancelled"),(0,i.Z)(r,o.COMPLETED,"Done"),(0,i.Z)(r,o.FAILED,"Failed"),(0,i.Z)(r,o.INITIAL,"Ready"),(0,i.Z)(r,o.RUNNING,"Running"),r)},93348:function(n,e,t){t.d(e,{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 r,i,o,u=t(82394);!function(n){n.API="api",n.EVENT="event",n.TIME="time"}(o||(o={}));var c,l,s,a=(r={},(0,u.Z)(r,o.API,(function(){return"API"})),(0,u.Z)(r,o.EVENT,(function(){return"event"})),(0,u.Z)(r,o.TIME,(function(){return"schedule"})),r);!function(n){n.ACTIVE="active",n.INACTIVE="inactive"}(c||(c={})),function(n){n.ONCE="@once",n.HOURLY="@hourly",n.DAILY="@daily",n.WEEKLY="@weekly",n.MONTHLY="@monthly"}(l||(l={})),function(n){n.CREATED_AT="created_at",n.NAME="name",n.PIPELINE="pipeline_uuid",n.STATUS="status",n.TYPE="schedule_type"}(s||(s={}));var d=(i={},(0,u.Z)(i,s.CREATED_AT,"Created at"),(0,u.Z)(i,s.NAME,"Name"),(0,u.Z)(i,s.PIPELINE,"Pipeline"),(0,u.Z)(i,s.STATUS,"Status"),(0,u.Z)(i,s.TYPE,"Type"),i)},42305:function(n,e,t){t.d(e,{A5:function(){return p},AY:function(){return f},BP:function(){return d},JX:function(){return a},OC:function(){return o},Pc:function(){return h},Tz:function(){return s},d$:function(){return l},lJ:function(){return g},n1:function(){return c}});var r=t(92083),i=t.n(r),o="YYYY-MM-DD HH:mm:ss",u="YYYY-MM-DD HH:mm",c="YYYY-MM-DD";function l(n,e){var t=e.dayAgo,r=e.includeSeconds,c=e.utcFormat,l=i()(n),s=u;return c&&(l=l.utc()),t&&(l=l.subtract(1,"days")),r&&(s=o),l.format(s)}function s(n){var e=l((new Date).toISOString(),{includeSeconds:!0,utcFormat:!0});return null!==n&&void 0!==n&&n.dateObj?new Date(e):e}function a(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i().unix(n).format(null!==e&&void 0!==e&&e.withSeconds?o:u)}function d(n,e,t){return i()(n).utc().hours(+e).minutes(+t).format()}function p(n){return i()(n).unix()}function f(n,e,t){return"".concat(n.toISOString().split("T")[0]," ").concat(e,":").concat(t)}function h(n){var e=i().unix(+n).utc();return{date:e.toDate(),hour:String(e.hour()),minute:String(e.minute())}}function g(n){return n.padStart(2,"0")}},33766:function(n,e,t){t.d(e,{g_:function(){return p},u7:function(){return d}});var r=t(75582),i=t(82394),o=t(34376),u=t.n(o),c=t(59e3),l=t(24224);function s(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function a(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,i.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}function d(n){var e,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.replaceParams,o=t.pushHistory,l=i?{}:(0,c.iV)();e=window.location.pathname;var s=o?u().push:u().replace,d=a(a({},l),n);Object.entries(n).forEach((function(n){var e=(0,r.Z)(n,2),t=e[0],i=e[1];"undefined"!==typeof i&&null!==i||delete d[t]}));var p=(0,c.uM)(d);p.length>=1&&(p="?".concat(p));var f="".concat(e.split("?")[0]).concat(p);return s(u().router.pathname,f,{shallow:!0})}function p(n,e,t){var i=t.addingMultipleValues,o=t.isList,u=t.itemsPerPage,c=t.pushHistory,s=void 0!==c&&c,p=t.resetLimitParams,f=a({},n);i?Object.entries(e).forEach((function(n){var e=(0,r.Z)(n,2),t=e[0],i=e[1];if(Array.isArray(i)){var o="".concat(t,"[]");f[o]=i.map(String)}})):o?Object.entries(e).forEach((function(n){var e=(0,r.Z)(n,2),t=e[0],i=e[1],o=String(i),u="".concat(t,"[]"),c=f[u];c&&Array.isArray(c)?(c=c.map(String)).includes(o)?f[u]=(0,l.Od)(c,(function(n){return n===o})):f[u]=c.concat(o):f[u]=[o]})):f=a(a({},f),e),p&&(f._limit=u||20,f._offset=0),d(f,{pushHistory:s})}}}]);
|
|
@@ -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)}}]);
|
|
@@ -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}}]);
|