mage-ai 0.8.5__py3-none-any.whl → 0.8.6__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.

Files changed (69) hide show
  1. mage_ai/api/presenters/OutputPresenter.py +1 -0
  2. mage_ai/data_preparation/models/block/__init__.py +6 -1
  3. mage_ai/data_preparation/models/block/dbt/__init__.py +4 -0
  4. mage_ai/data_preparation/models/block/dbt/utils/__init__.py +53 -36
  5. mage_ai/data_preparation/models/block/utils.py +2 -1
  6. mage_ai/io/postgres.py +10 -5
  7. mage_ai/server/constants.py +1 -1
  8. mage_ai/server/frontend_dist/404.html +2 -2
  9. mage_ai/server/frontend_dist/404.html.html +2 -2
  10. mage_ai/server/frontend_dist/_next/static/chunks/{2249-84de2142241f4925.js → 2249-70929b8c547bbc18.js} +1 -1
  11. mage_ai/server/frontend_dist/_next/static/chunks/{4846-0096ccafbe28a868.js → 4846-58b7e138009c98a2.js} +1 -1
  12. mage_ai/server/frontend_dist/_next/static/chunks/{5944-9488f2ddf3543b08.js → 5944-757b7898608a65e1.js} +1 -1
  13. mage_ai/server/frontend_dist/_next/static/chunks/{6641-fb7a8be8444f2dd4.js → 6641-a0ed2bd8f5dc777b.js} +1 -1
  14. mage_ai/server/frontend_dist/_next/static/chunks/8961-7a2143c4424c9217.js +1 -0
  15. mage_ai/server/frontend_dist/_next/static/chunks/{9140-836abb2721055e82.js → 9140-6f67e0879394373d.js} +1 -1
  16. mage_ai/server/frontend_dist/_next/static/chunks/9898-51ca6a904b7a2382.js +1 -0
  17. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-a1e8869ed201ce7e.js +1 -0
  18. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-0678cf63c79072a7.js +1 -0
  19. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-5ccc75887776efb0.js +1 -0
  20. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/{block-runs-a6dbd67285ecc5a5.js → block-runs-8f23f7ca9efcb069.js} +1 -1
  21. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-d2bbafbb5b2c09e7.js +1 -0
  22. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-b0b91245d3299bdf.js +1 -0
  23. mage_ai/server/frontend_dist/_next/static/chunks/pages/{triggers-dbce4f85a95ea336.js → triggers-e0172c422c95eda9.js} +1 -1
  24. mage_ai/server/frontend_dist/_next/static/{K0IzhmyaFuEHbzvE39__f → okm8eXXn0kUptL5A1B7a6}/_buildManifest.js +1 -1
  25. mage_ai/server/frontend_dist/index.html +2 -2
  26. mage_ai/server/frontend_dist/manage.html +2 -2
  27. mage_ai/server/frontend_dist/pipeline-runs.html +2 -2
  28. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +2 -2
  29. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +2 -2
  30. mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +2 -2
  31. mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +2 -2
  32. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +2 -2
  33. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +2 -2
  34. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +2 -2
  35. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +2 -2
  36. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +2 -2
  37. mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +2 -2
  38. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +2 -2
  39. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +2 -2
  40. mage_ai/server/frontend_dist/pipelines/[pipeline].html +2 -2
  41. mage_ai/server/frontend_dist/pipelines.html +2 -2
  42. mage_ai/server/frontend_dist/settings/account/profile.html +2 -2
  43. mage_ai/server/frontend_dist/settings/workspace/preferences.html +2 -2
  44. mage_ai/server/frontend_dist/settings/workspace/users.html +2 -2
  45. mage_ai/server/frontend_dist/settings.html +2 -2
  46. mage_ai/server/frontend_dist/sign-in.html +13 -13
  47. mage_ai/server/frontend_dist/terminal.html +2 -2
  48. mage_ai/server/frontend_dist/test.html +3 -3
  49. mage_ai/server/frontend_dist/triggers.html +2 -2
  50. mage_ai/server/utils/output_display.py +7 -0
  51. mage_ai/server/websocket_server.py +2 -2
  52. mage_ai/services/datadog/__init__.py +123 -0
  53. mage_ai/tests/services/datadog/__init__.py +0 -0
  54. mage_ai/tests/services/datadog/test_datadog.py +69 -0
  55. {mage_ai-0.8.5.dist-info → mage_ai-0.8.6.dist-info}/METADATA +2 -1
  56. {mage_ai-0.8.5.dist-info → mage_ai-0.8.6.dist-info}/RECORD +62 -59
  57. mage_ai/server/frontend_dist/_next/static/chunks/8961-e25997bc088e0d19.js +0 -1
  58. mage_ai/server/frontend_dist/_next/static/chunks/9898-91c6384c9bd33ca7.js +0 -1
  59. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-688184bd8b4d4f5c.js +0 -1
  60. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-3b2d760d97cec235.js +0 -1
  61. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-abce05c25bee218d.js +0 -1
  62. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-a056c0e384d39c9b.js +0 -1
  63. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-6a8545f96cc7b8f2.js +0 -1
  64. /mage_ai/server/frontend_dist/_next/static/{K0IzhmyaFuEHbzvE39__f → okm8eXXn0kUptL5A1B7a6}/_middlewareManifest.js +0 -0
  65. /mage_ai/server/frontend_dist/_next/static/{K0IzhmyaFuEHbzvE39__f → okm8eXXn0kUptL5A1B7a6}/_ssgManifest.js +0 -0
  66. {mage_ai-0.8.5.dist-info → mage_ai-0.8.6.dist-info}/LICENSE +0 -0
  67. {mage_ai-0.8.5.dist-info → mage_ai-0.8.6.dist-info}/WHEEL +0 -0
  68. {mage_ai-0.8.5.dist-info → mage_ai-0.8.6.dist-info}/entry_points.txt +0 -0
  69. {mage_ai-0.8.5.dist-info → mage_ai-0.8.6.dist-info}/top_level.txt +0 -0
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6641],{43032:function(e,t,n){n.d(t,{Cl:function(){return c},Nk:function(){return l},ZG:function(){return a}});var r=n(9518),o=n(23831),i=n(49125),a=1.5*i.iI,c=1*a+i.iI/2,l=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-uvd91-0"})([".row:hover{","}"],(function(e){return"\n background-color: ".concat((e.theme.interactive||o.Z.interactive).hoverBackground,";\n ")}))},68735:function(e,t,n){var r=n(26304),o=n(21831),i=n(82394),a=n(82684),c=n(26226),l=n(9518),s=n(90948),u=n(84969),d=n(65743),f=n(85587),p=n(79487),h=n(52136),m=n(67778),x=n(29989),g=n(17066),v=n(84482),y=n(76771),b=n(98889),j=n(65376),O=n(61655),k=n(97745),Z=n(48072),w=n(10103),L=n(84181),E=n(24903),P=n(67971),T=n(86673),I=n(19711),M=n(52359),_=n(23831),C=n(80906),D=n(73899),A=n(2005),N=n(31012),S=n(49125),F=n(24224),R=n(344),U=n(45739),B=n(28598),X=["areaBetweenLines","data","events","height","lineLegendNames","margin","width","xAxisLabel","xLabelFormat","yAxisLabel","yLabelFormat"];function W(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 V(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?W(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var q=V(V({},j.j),{},{backgroundColor:_.Z.background.muted,border:"none"}),z=(0,O.Z)((function(e){var t=e.areaBetweenLines,n=e.data,r=e.events,i=void 0!==r&&r,c=e.getX,O=e.getY,P=e.gridProps,T=void 0===P?{}:P,M=e.height,X=e.hideGridX,W=e.hideTooltip,z=e.increasedXTicks,Y=e.lineLegendNames,G=e.margin,J=e.noCurve,H=e.numYTicks,K=e.renderXTooltipContent,Q=e.renderYTooltipContent,$=e.showTooltip,ee=e.thickStroke,te=e.tooltipData,ne=e.tooltipLeft,re=void 0===ne?0:ne,oe=e.tooltipTop,ie=void 0===oe?[]:oe,ae=e.width,ce=e.xLabelFormat,le=e.xLabelRotate,se=void 0===le||le,ue=e.yLabelFormat,de=(0,a.useContext)(l.ThemeContext),fe=c||function(e){return null===e||void 0===e?void 0:e.x},pe=O||function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return null===e||void 0===e||null===(t=e.y)||void 0===t?void 0:t[n]},he=_.Z.monotone.gray,me=_.Z.brand.wind200,xe=_.Z.content.muted,ge=_.Z.monotone.gray,ve=n.map((function(e){return Number(fe(e))}));if(ae<10)return null;var ye=ae-G.left-G.right,be=M-G.top-G.bottom,je=ye/2,Oe=Math.max.apply(Math,(0,o.Z)(n.map((function(e){var t=e.y;return(null===t||void 0===t?void 0:t.length)||0})))),ke=(0,a.useMemo)((function(){return(0,L.Z)({domain:[Math.min.apply(Math,(0,o.Z)(ve)),Math.max.apply(Math,(0,o.Z)(ve))],range:[0,ye]})}),[ye,ve]),Ze=Math.min.apply(Math,(0,o.Z)(n.map((function(e){var t=e.y;return Math.min.apply(Math,(0,o.Z)(t||[]))})))),we=Math.max.apply(Math,(0,o.Z)(n.map((function(e){var t=e.y;return Math.max.apply(Math,(0,o.Z)(t||[]))})))),Le=(0,a.useMemo)((function(){return(0,L.Z)({domain:[Ze,we],nice:!0,range:[be,0]})}),[be,we,Ze]),Ee=ae>520?z?20:10:z?10:5,Pe=(0,U.K)(de),Te=xe,Ie=Pe.map((function(e){return{stroke:e}})),Me=(0,E.Z)({domain:Y||[],range:Ie.map((function(e){return e.stroke}))}),_e=(0,a.useCallback)((function(e){var t=((0,Z.Z)(e)||{x:0}).x,r=ke.invert(t-G.left),o=(0,F.ry)(ve,(function(e){return r>=e})),i=n[o-1],a=n[o],c=i;a&&(r-fe(i)>fe(a)-r?c=a:(c=i,o-=1));var l=(0,w.range)(0,Oe).map((function(e){return Le(pe(c,e))}));pe(c)&&$({tooltipData:V(V({},c),{},{index:o}),tooltipLeft:t,tooltipTop:l})}),[n,fe,pe,G,$,ke,Le]),Ce={};return J||(Ce.curve=k.ZP),(0,B.jsxs)(B.Fragment,{children:[Y&&(0,B.jsx)("div",{style:{marginLeft:null===G||void 0===G?void 0:G.left},children:(0,B.jsx)(g.Z,{labelFormat:function(e){return e},scale:Me,children:function(e){return(0,B.jsx)("div",{style:{display:"flex",flexDirection:C.qs.ROW},children:e.map((function(e,t){return(0,B.jsxs)(v.Z,{margin:"0 5px",onClick:function(){i&&alert("clicked: ".concat(JSON.stringify(e)))},children:[(0,B.jsx)("svg",{height:15,width:15,children:(0,B.jsx)("rect",{fill:e.value,height:15,width:15})}),(0,B.jsx)(y.Z,{align:"left",margin:"0 0 0 4px",children:(0,B.jsx)(I.ZP,{small:!0,children:e.text})})]},"legend-quantile-".concat(t))}))})}})}),(0,B.jsxs)("svg",{height:M,width:ae,children:[!t&&(0,B.jsx)(d.Z,{fill:"transparent",height:M,onMouseLeave:function(){return W()},onMouseMove:_e,onTouchMove:_e,onTouchStart:_e,rx:14,width:ae-(G.left+G.right),x:G.left,y:0}),(0,B.jsxs)(x.Z,{left:G.left,top:G.top,children:[!X&&(0,B.jsx)(h.Z,V({height:be,pointerEvents:"none",scale:ke,stroke:he,strokeDasharray:"3,3",strokeOpacity:.4,width:ye},T)),(0,B.jsx)(m.Z,V({height:be,pointerEvents:"none",scale:Le,stroke:he,strokeDasharray:"3,3",strokeOpacity:.4,width:ye},T)),(0,B.jsx)("line",{stroke:he,x1:ye,x2:ye,y1:0,y2:be}),(0,B.jsx)(s.Z,{numTicks:Ee,scale:ke,stroke:Te,tickFormat:function(e){return ce?ce(e):e},tickLabelProps:function(e){return{fill:xe,fontFamily:A.ry,fontSize:N.J5,textAnchor:"middle",transform:se&&"rotate(-45, ".concat(ke(e),", 0) translate(-32, 4)")}},tickStroke:Te,top:be}),(0,B.jsx)(u.Z,{hideTicks:!0,numTicks:H,scale:Le,stroke:Te,tickFormat:function(e){return ue?ue(e):(0,R.P5)(e)},tickLabelProps:function(e){return{dx:String(e).length>4?3:0,fill:xe,fontFamily:A.ry,fontSize:N.J5,textAnchor:"end",transform:"translate(0,2.5)"}},tickStroke:Te}),t&&t.map((function(e){var t=e[0],r=e[1];return(0,a.createElement)(b.Z,V(V({},Ce),{},{aboveAreaProps:{fill:_.Z.brand.earth400,fillOpacity:.3},belowAreaProps:{fill:me,fillOpacity:.2},clipAboveTo:0,clipBelowTo:be,data:n,id:"".concat(Math.random()),key:"".concat(t,"-").concat(r),x:function(e){return ke(fe(e))},y0:function(e){return Le("undefined"===typeof r?Ze:pe(e,r))},y1:function(e){return Le(pe(e,t))}}))})),(0,w.range)(0,Oe).map((function(e){return(0,a.createElement)(f.Z,V(V({},Ce),{},{data:n.filter((function(e){return void 0!=e.y})),key:e,pointerEvents:"none",strokeWidth:ee?2:1,x:function(e){return ke(fe(e))},y:function(t){return Le(t.y&&(e>=t.y.length?Ze:pe(t,e)))}},Ie[e]))}))]}),te&&(0,B.jsxs)("g",{children:[(0,B.jsx)(p.Z,{from:{x:re,y:G.top},pointerEvents:"none",stroke:D.Ej,strokeDasharray:"5,2",strokeWidth:1,to:{x:re,y:be+G.top}}),ie.map((function(e,t){return(0,B.jsx)("circle",{cx:re,cy:e+1+G.top,fill:Ie[t].stroke,fillOpacity:.1,pointerEvents:"none",r:4,stroke:ge,strokeOpacity:.1,strokeWidth:1},t)})),ie.map((function(e,t){return(0,B.jsx)("circle",{cx:re,cy:e+G.top,fill:Ie[t].stroke,pointerEvents:"none",r:4,stroke:Ie[t].stroke,strokeWidth:2},t)}))]})]}),te&&(0,B.jsxs)("div",{children:[ie.map((function(e,t){var n=pe(te,t);return t>=1&&Math.abs(ie[t-1]-e)<5*S.iI&&(e+=3*S.iI),(0,B.jsxs)(j.Z,{left:re>je?re-(0,R.Vs)(Q,te,t)*S.iI:re+S.iI,style:q,top:e-2*S.iI,children:[Q&&Q(te,t),!Q&&(0,B.jsxs)(I.ZP,{center:!0,small:!0,children:[n.toFixed?n.toFixed(3):n," ",null===Y||void 0===Y?void 0:Y[t]]})]},t)})),(0,B.jsxs)(j.Z,{left:re>je?re-4*(0,R.Vs)(K,te):re,style:V(V({},q),{},{transform:"translateX(-65%)"}),top:be+G.top,children:[K&&K(te),!K&&(0,B.jsx)(I.ZP,{center:!0,small:!0,children:fe(te).toFixed(3)})]})]})]})}));t.Z=function(e){var t=e.areaBetweenLines,n=e.data,o=(e.events,e.height),i=e.lineLegendNames,a=e.margin,l=void 0===a?{}:a,s=e.width,u=e.xAxisLabel,d=e.xLabelFormat,f=e.yAxisLabel,p=e.yLabelFormat,h=(0,r.Z)(e,X),m=V(V({},{bottom:3*S.iI,left:5*S.iI,right:3*S.iI,top:3*S.iI}),l);return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)("div",{style:{display:"flex",height:o,marginBottom:S.iI,width:"100%"},children:[f&&(0,B.jsx)(P.Z,{alignItems:"center",fullHeight:!0,justifyContent:"center",width:28,children:(0,B.jsx)(M.Z,{children:(0,B.jsx)(I.ZP,{center:!0,muted:!0,small:!0,children:f})})}),(0,B.jsx)(T.Z,{mr:1}),(0,B.jsx)("div",{style:{height:o,width:"undefined"===typeof s?"100%":s},children:(0,B.jsx)(c.Z,{children:function(e){var r=e.width,o=e.height;return(0,B.jsx)(z,V(V({},h),{},{areaBetweenLines:t,data:n,height:o,lineLegendNames:i,margin:m,width:r,xLabelFormat:d,yLabelFormat:p}))}})})]}),u&&(0,B.jsx)("div",{style:{paddingLeft:f?36:0,paddingTop:4},children:(0,B.jsx)(I.ZP,{center:!0,muted:!0,small:!0,children:u})})]})}},80906:function(e,t,n){var r,o,i,a;n.d(t,{Q0:function(){return r},qs:function(){return o}}),function(e){e.ADD="add",e.AVERAGE="average",e.CLEAN_COLUMN_NAME="clean_column_name",e.COUNT="count",e.COUNT_DISTINCT="count_distinct",e.CUSTOM="custom",e.DIFF="diff",e.DROP_DUPLICATE="drop_duplicate",e.EXPAND_COLUMN="expand_column",e.EXPLODE="explode",e.FILTER="filter",e.FIRST="first",e.FIX_SYNTAX_ERRORS="fix_syntax_errors",e.GROUP="group",e.IMPUTE="impute",e.JOIN="join",e.LAST="last",e.LIMIT="limit",e.MAX="max",e.MEDIAN="median",e.MIN="min",e.MODE="mode",e.NORMALIZE="normalize",e.REFORMAT="reformat",e.REMOVE="remove",e.REMOVE_OUTLIERS="remove_outliers",e.SCALE="scale",e.SELECT="select",e.SHIFT_DOWN="shift_down",e.SHIFT_UP="shift_up",e.SORT="sort",e.STANDARDIZE="standardize",e.SUM="sum",e.UNION="union",e.UPDATE_TYPE="update_type",e.UPDATE_VALUE="update_value"}(r||(r={})),function(e){e.COLUMN="column",e.ROW="row"}(o||(o={})),function(e){e.NOT_APPLIED="not_applied",e.COMPLETED="completed"}(i||(i={})),function(e){e.FEATURE="feature"}(a||(a={}))},55378:function(e,t,n){var r=n(82394),o=n(26304),i=n(82684),a=n(9518),c=n(69898),l=n(31969),s=n(49125),u=n(28598),d=["beforeIcon","children","label","placeholder"];function f(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 p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var h=a.default.select.withConfig({displayName:"Select__SelectStyle",componentId:"sc-q6ezu2-0"})(["",' background-image:url("data:image/svg+xml;utf8,','");background-repeat:no-repeat;background-position:-webkit-calc(100% - ',"px) center;background-position:calc(100% - ","px) center;padding-right:","px;&:hover{cursor:pointer;}"," "," "," ",""],c.p,"\n <svg width='12' height='12' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'>\n <path\n clip-rule='evenodd'\n d='M8.0015 11.7109L14.0022 5.71017L12.588 4.29597L7.99485 8.88914L3.40754 4.34482L2 5.76567L8.0015 11.7109Z'\n fill='%23B4B8C0'\n fill-rule='evenodd'\n />\n </svg>",s.iI,s.iI,2.5*s.iI,(function(e){return!e.hasContent&&!e.showPlaceholder&&"\n color: ".concat((e.theme.content||l.Z.content).muted,";\n ")}),(function(e){return e.backgroundColor&&"\n background-color: ".concat(e.backgroundColor,";\n ")}),(function(e){return e.color&&"\n color: ".concat(e.color,";\n ")}),(function(e){return e.showPlaceholder&&"\n color: ".concat((e.theme.content||l.Z.content).inverted,";\n ")})),m=function(e,t){var n=e.beforeIcon,r=e.children,i=e.label,a=e.placeholder,l=(0,o.Z)(e,d);return(0,u.jsx)(c.Z,p(p({},l),{},{beforeIcon:n,input:(0,u.jsxs)(h,p(p({},l),{},{children:[(i||a)&&(0,u.jsx)("option",{disabled:!0,selected:!0,value:"",children:i||a}),r]})),label:i,placeholder:a,ref:t,setContentOnMount:!0,showLabelRequirement:function(e){return!!e.content}}))};t.Z=i.forwardRef(m)}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6641],{43032:function(e,t,n){n.d(t,{Cl:function(){return c},Nk:function(){return l},ZG:function(){return a}});var r=n(9518),o=n(23831),i=n(49125),a=1.5*i.iI,c=1*a+i.iI/2,l=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-uvd91-0"})([".row:hover{","}"],(function(e){return"\n background-color: ".concat((e.theme.interactive||o.Z.interactive).hoverBackground,";\n ")}))},68735:function(e,t,n){var r=n(26304),o=n(21831),i=n(82394),a=n(82684),c=n(26226),l=n(9518),s=n(90948),u=n(84969),d=n(65743),p=n(85587),f=n(79487),h=n(52136),m=n(67778),x=n(29989),g=n(17066),v=n(84482),y=n(76771),b=n(98889),j=n(65376),O=n(61655),k=n(97745),Z=n(48072),w=n(10103),L=n(84181),E=n(24903),P=n(67971),T=n(86673),I=n(19711),M=n(52359),_=n(23831),C=n(80906),D=n(73899),A=n(2005),N=n(31012),S=n(49125),F=n(24224),R=n(344),U=n(45739),B=n(28598),X=["areaBetweenLines","data","events","height","lineLegendNames","margin","width","xAxisLabel","xLabelFormat","yAxisLabel","yLabelFormat"];function W(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 V(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?W(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var q=V(V({},j.j),{},{backgroundColor:_.Z.background.muted,border:"none"}),z=(0,O.Z)((function(e){var t=e.areaBetweenLines,n=e.data,r=e.events,i=void 0!==r&&r,c=e.getX,O=e.getY,P=e.gridProps,T=void 0===P?{}:P,M=e.height,X=e.hideGridX,W=e.hideTooltip,z=e.increasedXTicks,Y=e.lineLegendNames,G=e.margin,J=e.noCurve,H=e.numYTicks,K=e.renderXTooltipContent,Q=e.renderYTooltipContent,$=e.showTooltip,ee=e.thickStroke,te=e.tooltipData,ne=e.tooltipLeft,re=void 0===ne?0:ne,oe=e.tooltipTop,ie=void 0===oe?[]:oe,ae=e.width,ce=e.xLabelFormat,le=e.xLabelRotate,se=void 0===le||le,ue=e.yLabelFormat,de=(0,a.useContext)(l.ThemeContext),pe=c||function(e){return null===e||void 0===e?void 0:e.x},fe=O||function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return null===e||void 0===e||null===(t=e.y)||void 0===t?void 0:t[n]},he=_.Z.monotone.gray,me=_.Z.brand.wind200,xe=_.Z.content.muted,ge=_.Z.monotone.gray,ve=n.map((function(e){return Number(pe(e))}));if(ae<10)return null;var ye=ae-G.left-G.right,be=M-G.top-G.bottom,je=ye/2,Oe=Math.max.apply(Math,(0,o.Z)(n.map((function(e){var t=e.y;return(null===t||void 0===t?void 0:t.length)||0})))),ke=(0,a.useMemo)((function(){return(0,L.Z)({domain:[Math.min.apply(Math,(0,o.Z)(ve)),Math.max.apply(Math,(0,o.Z)(ve))],range:[0,ye]})}),[ye,ve]),Ze=Math.min.apply(Math,(0,o.Z)(n.map((function(e){var t=e.y;return Math.min.apply(Math,(0,o.Z)(t||[]))})))),we=Math.max.apply(Math,(0,o.Z)(n.map((function(e){var t=e.y;return Math.max.apply(Math,(0,o.Z)(t||[]))})))),Le=(0,a.useMemo)((function(){return(0,L.Z)({domain:[Ze,we],nice:!0,range:[be,0]})}),[be,we,Ze]),Ee=ae>520?z?20:10:z?10:5,Pe=(0,U.K)(de),Te=xe,Ie=Pe.map((function(e){return{stroke:e}})),Me=(0,E.Z)({domain:Y||[],range:Ie.map((function(e){return e.stroke}))}),_e=(0,a.useCallback)((function(e){var t=((0,Z.Z)(e)||{x:0}).x,r=ke.invert(t-G.left),o=(0,F.ry)(ve,(function(e){return r>=e})),i=n[o-1],a=n[o],c=i;a&&(r-pe(i)>pe(a)-r?c=a:(c=i,o-=1));var l=(0,w.range)(0,Oe).map((function(e){return Le(fe(c,e))}));fe(c)&&$({tooltipData:V(V({},c),{},{index:o}),tooltipLeft:t,tooltipTop:l})}),[n,pe,fe,G,$,ke,Le]),Ce={};return J||(Ce.curve=k.ZP),(0,B.jsxs)(B.Fragment,{children:[Y&&(0,B.jsx)("div",{style:{marginLeft:null===G||void 0===G?void 0:G.left},children:(0,B.jsx)(g.Z,{labelFormat:function(e){return e},scale:Me,children:function(e){return(0,B.jsx)("div",{style:{display:"flex",flexDirection:C.qs.ROW},children:e.map((function(e,t){return(0,B.jsxs)(v.Z,{margin:"0 5px",onClick:function(){i&&alert("clicked: ".concat(JSON.stringify(e)))},children:[(0,B.jsx)("svg",{height:15,width:15,children:(0,B.jsx)("rect",{fill:e.value,height:15,width:15})}),(0,B.jsx)(y.Z,{align:"left",margin:"0 0 0 4px",children:(0,B.jsx)(I.ZP,{small:!0,children:e.text})})]},"legend-quantile-".concat(t))}))})}})}),(0,B.jsxs)("svg",{height:M,width:ae,children:[!t&&(0,B.jsx)(d.Z,{fill:"transparent",height:M,onMouseLeave:function(){return W()},onMouseMove:_e,onTouchMove:_e,onTouchStart:_e,rx:14,width:ae-(G.left+G.right),x:G.left,y:0}),(0,B.jsxs)(x.Z,{left:G.left,top:G.top,children:[!X&&(0,B.jsx)(h.Z,V({height:be,pointerEvents:"none",scale:ke,stroke:he,strokeDasharray:"3,3",strokeOpacity:.4,width:ye},T)),(0,B.jsx)(m.Z,V({height:be,pointerEvents:"none",scale:Le,stroke:he,strokeDasharray:"3,3",strokeOpacity:.4,width:ye},T)),(0,B.jsx)("line",{stroke:he,x1:ye,x2:ye,y1:0,y2:be}),(0,B.jsx)(s.Z,{numTicks:Ee,scale:ke,stroke:Te,tickFormat:function(e){return ce?ce(e):e},tickLabelProps:function(e){return{fill:xe,fontFamily:A.ry,fontSize:N.J5,textAnchor:"middle",transform:se&&"rotate(-45, ".concat(ke(e),", 0) translate(-32, 4)")}},tickStroke:Te,top:be}),(0,B.jsx)(u.Z,{hideTicks:!0,numTicks:H,scale:Le,stroke:Te,tickFormat:function(e){return ue?ue(e):(0,R.P5)(e)},tickLabelProps:function(e){return{dx:String(e).length>4?3:0,fill:xe,fontFamily:A.ry,fontSize:N.J5,textAnchor:"end",transform:"translate(0,2.5)"}},tickStroke:Te}),t&&t.map((function(e){var t=e[0],r=e[1];return(0,a.createElement)(b.Z,V(V({},Ce),{},{aboveAreaProps:{fill:_.Z.brand.earth400,fillOpacity:.3},belowAreaProps:{fill:me,fillOpacity:.2},clipAboveTo:0,clipBelowTo:be,data:n,id:"".concat(Math.random()),key:"".concat(t,"-").concat(r),x:function(e){return ke(pe(e))},y0:function(e){return Le("undefined"===typeof r?Ze:fe(e,r))},y1:function(e){return Le(fe(e,t))}}))})),(0,w.range)(0,Oe).map((function(e){return(0,a.createElement)(p.Z,V(V({},Ce),{},{data:n.filter((function(e){return void 0!=e.y})),key:e,pointerEvents:"none",strokeWidth:ee?2:1,x:function(e){return ke(pe(e))},y:function(t){return Le(t.y&&(e>=t.y.length?Ze:fe(t,e)))}},Ie[e]))}))]}),te&&(0,B.jsxs)("g",{children:[(0,B.jsx)(f.Z,{from:{x:re,y:G.top},pointerEvents:"none",stroke:D.Ej,strokeDasharray:"5,2",strokeWidth:1,to:{x:re,y:be+G.top}}),ie.map((function(e,t){return(0,B.jsx)("circle",{cx:re,cy:e+1+G.top,fill:Ie[t].stroke,fillOpacity:.1,pointerEvents:"none",r:4,stroke:ge,strokeOpacity:.1,strokeWidth:1},t)})),ie.map((function(e,t){return(0,B.jsx)("circle",{cx:re,cy:e+G.top,fill:Ie[t].stroke,pointerEvents:"none",r:4,stroke:Ie[t].stroke,strokeWidth:2},t)}))]})]}),te&&(0,B.jsxs)("div",{children:[ie.map((function(e,t){var n=fe(te,t);return t>=1&&Math.abs(ie[t-1]-e)<5*S.iI&&(e+=3*S.iI),(0,B.jsxs)(j.Z,{left:re>je?re-(0,R.Vs)(Q,te,t)*S.iI:re+S.iI,style:q,top:e-2*S.iI,children:[Q&&Q(te,t),!Q&&(0,B.jsxs)(I.ZP,{center:!0,small:!0,children:[n.toFixed?n.toFixed(3):n," ",null===Y||void 0===Y?void 0:Y[t]]})]},t)})),(0,B.jsxs)(j.Z,{left:re>je?re-4*(0,R.Vs)(K,te):re,style:V(V({},q),{},{transform:"translateX(-65%)"}),top:be+G.top,children:[K&&K(te),!K&&(0,B.jsx)(I.ZP,{center:!0,small:!0,children:pe(te).toFixed(3)})]})]})]})}));t.Z=function(e){var t=e.areaBetweenLines,n=e.data,o=(e.events,e.height),i=e.lineLegendNames,a=e.margin,l=void 0===a?{}:a,s=e.width,u=e.xAxisLabel,d=e.xLabelFormat,p=e.yAxisLabel,f=e.yLabelFormat,h=(0,r.Z)(e,X),m=V(V({},{bottom:3*S.iI,left:5*S.iI,right:3*S.iI,top:3*S.iI}),l);return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsxs)("div",{style:{display:"flex",height:o,marginBottom:S.iI,width:"100%"},children:[p&&(0,B.jsx)(P.Z,{alignItems:"center",fullHeight:!0,justifyContent:"center",width:28,children:(0,B.jsx)(M.Z,{children:(0,B.jsx)(I.ZP,{center:!0,muted:!0,small:!0,children:p})})}),(0,B.jsx)(T.Z,{mr:1}),(0,B.jsx)("div",{style:{height:o,width:"undefined"===typeof s?"100%":s},children:(0,B.jsx)(c.Z,{children:function(e){var r=e.width,o=e.height;return(0,B.jsx)(z,V(V({},h),{},{areaBetweenLines:t,data:n,height:o,lineLegendNames:i,margin:m,width:r,xLabelFormat:d,yLabelFormat:f}))}})})]}),u&&(0,B.jsx)("div",{style:{paddingLeft:p?36:0,paddingTop:4},children:(0,B.jsx)(I.ZP,{center:!0,muted:!0,small:!0,children:u})})]})}},80906:function(e,t,n){var r,o,i,a;n.d(t,{Q0:function(){return r},qs:function(){return o}}),function(e){e.ADD="add",e.AVERAGE="average",e.CLEAN_COLUMN_NAME="clean_column_name",e.COUNT="count",e.COUNT_DISTINCT="count_distinct",e.CUSTOM="custom",e.DIFF="diff",e.DROP_DUPLICATE="drop_duplicate",e.EXPAND_COLUMN="expand_column",e.EXPLODE="explode",e.FILTER="filter",e.FIRST="first",e.FIX_SYNTAX_ERRORS="fix_syntax_errors",e.GROUP="group",e.IMPUTE="impute",e.JOIN="join",e.LAST="last",e.LIMIT="limit",e.MAX="max",e.MEDIAN="median",e.MIN="min",e.MODE="mode",e.NORMALIZE="normalize",e.REFORMAT="reformat",e.REMOVE="remove",e.REMOVE_OUTLIERS="remove_outliers",e.SCALE="scale",e.SELECT="select",e.SHIFT_DOWN="shift_down",e.SHIFT_UP="shift_up",e.SORT="sort",e.STANDARDIZE="standardize",e.SUM="sum",e.UNION="union",e.UPDATE_TYPE="update_type",e.UPDATE_VALUE="update_value"}(r||(r={})),function(e){e.COLUMN="column",e.ROW="row"}(o||(o={})),function(e){e.NOT_APPLIED="not_applied",e.COMPLETED="completed"}(i||(i={})),function(e){e.FEATURE="feature"}(a||(a={}))},55378:function(e,t,n){var r=n(82394),o=n(26304),i=n(82684),a=n(9518),c=n(69898),l=n(31969),s=n(49125),u=n(28598),d=["beforeIcon","children","label","multiple","placeholder"];function p(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 f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var h=a.default.select.withConfig({displayName:"Select__SelectStyle",componentId:"sc-q6ezu2-0"})(["",' background-image:url("data:image/svg+xml;utf8,','");background-repeat:no-repeat;background-position:-webkit-calc(100% - ',"px) center;background-position:calc(100% - ","px) center;padding-right:","px;&:hover{cursor:pointer;}"," "," "," ",""],c.p,"\n <svg width='12' height='12' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'>\n <path\n clip-rule='evenodd'\n d='M8.0015 11.7109L14.0022 5.71017L12.588 4.29597L7.99485 8.88914L3.40754 4.34482L2 5.76567L8.0015 11.7109Z'\n fill='%23B4B8C0'\n fill-rule='evenodd'\n />\n </svg>",s.iI,s.iI,2.5*s.iI,(function(e){return!e.hasContent&&!e.showPlaceholder&&"\n color: ".concat((e.theme.content||l.Z.content).muted,";\n ")}),(function(e){return e.backgroundColor&&"\n background-color: ".concat(e.backgroundColor,";\n ")}),(function(e){return e.color&&"\n color: ".concat(e.color,";\n ")}),(function(e){return e.showPlaceholder&&"\n color: ".concat((e.theme.content||l.Z.content).inverted,";\n ")})),m=function(e,t){var n=e.beforeIcon,r=e.children,i=e.label,a=e.multiple,l=e.placeholder,s=(0,o.Z)(e,d);return(0,u.jsx)(c.Z,f(f({},s),{},{beforeIcon:n,input:(0,u.jsxs)(h,f(f({multiple:a},s),{},{children:[(i||l)&&(0,u.jsx)("option",{disabled:!0,selected:!0,value:"",children:i||l}),r]})),label:i,placeholder:l,ref:t,setContentOnMount:!0,showLabelRequirement:function(e){return!!e.content}}))};t.Z=i.forwardRef(m)}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8961],{2850:function(e,n,i){i.d(n,{M:function(){return c},W:function(){return l}});var t=i(9518),r=i(23831),o=i(3055),l=34*i(49125).iI,c=t.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||r.Z.borders).medium,";\n ")}))},59920:function(e,n,i){var t;i.d(n,{M:function(){return t}}),function(e){e.BACKFILLS="backfills",e.BLOCK_RUNS="block_runs",e.EDIT="edit",e.MONITOR="monitor",e.PIPELINE_LOGS="pipeline_logs",e.PIPELINE_RUNS="pipeline_runs",e.RUNS="runs",e.SYNCS="syncs",e.TRIGGERS="triggers"}(t||(t={}))},2626:function(e,n,i){i.d(n,{Z:function(){return R}});var t=i(21831),r=i(75582),o=i(82684),l=i(83455),c=i(34376),s=i(28598);var a=function(e){var n=e.size;return(0,s.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("g",{clipPath:"url(#clip0_7525_68660)",children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.67625 7.82429C8.48671 8.13404 8.61933 8.53116 8.9436 8.69464C9.26787 8.85812 9.6606 8.72561 9.85513 8.41896C10.5416 7.33682 11.5276 6.47056 12.6997 5.92987C14.0715 5.29701 15.6173 5.14749 17.085 5.50568C18.5526 5.86388 19.8557 6.70866 20.7818 7.90233C21.7079 9.096 22.2023 10.5682 22.1845 12.0788C22.1667 13.5895 21.6377 15.0496 20.6837 16.2211C19.7298 17.3926 18.4071 18.2064 16.9314 18.5299C15.4557 18.8534 13.9139 18.6675 12.5573 18.0024C11.3984 17.4343 10.433 16.545 9.77227 15.447C9.58502 15.1358 9.19553 14.9941 8.86749 15.1499C8.53946 15.3057 8.39751 15.6995 8.5797 16.0137C9.37152 17.379 10.5525 18.4842 11.9785 19.1832C13.6018 19.9791 15.4469 20.2016 17.213 19.8145C18.979 19.4273 20.5619 18.4534 21.7035 17.0514C22.8451 15.6495 23.4781 13.9022 23.4994 12.0943C23.5208 10.2865 22.9291 8.52472 21.8208 7.09623C20.7126 5.66774 19.1532 4.65677 17.3968 4.22811C15.6403 3.79945 13.7905 3.97839 12.1488 4.73574C10.7068 5.40099 9.50004 6.47805 8.67625 7.82429ZM0.219185 12.5303C-0.0737079 12.2375 -0.0737079 11.7626 0.219185 11.4697L4.71918 6.96968C5.01208 6.67679 5.48695 6.67679 5.77985 6.96968C6.07274 7.26258 6.07274 7.73745 5.77985 8.03034L2.56017 11.25L15.7495 11.25C16.1637 11.25 16.4995 11.5858 16.4995 12C16.4995 12.4142 16.1637 12.75 15.7495 12.75L2.56017 12.75L5.77985 15.9697C6.07274 16.2626 6.07274 16.7375 5.77985 17.0303C5.48695 17.3232 5.01208 17.3232 4.71918 17.0303L0.219185 12.5303Z",fill:"url(#paint0_linear_7525_68660)"})}),(0,s.jsx)("defs",{children:(0,s.jsxs)("linearGradient",{id:"paint0_linear_7525_68660",x1:"11.7498",y1:"4",x2:"11.7498",y2:"20",gradientUnits:"userSpaceOnUse",children:[(0,s.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,s.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})},u=i(16953),d=i(61519);var p=function(e){var n=e.size;return(0,s.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.25 1C23.25 0.585786 22.9142 0.25 22.5 0.25C22.0858 0.25 21.75 0.585786 21.75 1V15.5C21.75 15.9142 22.0858 16.25 22.5 16.25C22.9142 16.25 23.25 15.9142 23.25 15.5V1ZM5 4.25C5.41421 4.25 5.75 4.58579 5.75 5V15.5C5.75 15.9142 5.41421 16.25 5 16.25C4.58579 16.25 4.25 15.9142 4.25 15.5V5C4.25 4.58579 4.58579 4.25 5 4.25ZM1.5 7.25C1.91421 7.25 2.25 7.58579 2.25 8V15.5C2.25 15.9142 1.91421 16.25 1.5 16.25C1.08579 16.25 0.75 15.9142 0.75 15.5V8C0.75 7.58579 1.08579 7.25 1.5 7.25ZM9.25 7C9.25 6.58579 8.91421 6.25 8.5 6.25C8.08579 6.25 7.75 6.58579 7.75 7V15.5C7.75 15.9142 8.08579 16.25 8.5 16.25C8.91421 16.25 9.25 15.9142 9.25 15.5V7ZM12 8.75C12.4142 8.75 12.75 9.08579 12.75 9.5V15.5C12.75 15.9142 12.4142 16.25 12 16.25C11.5858 16.25 11.25 15.9142 11.25 15.5V9.5C11.25 9.08579 11.5858 8.75 12 8.75ZM16.25 11.5C16.25 11.0858 15.9142 10.75 15.5 10.75C15.0858 10.75 14.75 11.0858 14.75 11.5V15.5C14.75 15.9142 15.0858 16.25 15.5 16.25C15.9142 16.25 16.25 15.9142 16.25 15.5V11.5ZM19 9.25C19.4142 9.25 19.75 9.58579 19.75 10V15.5C19.75 15.9142 19.4142 16.25 19 16.25C18.5858 16.25 18.25 15.9142 18.25 15.5V10C18.25 9.58579 18.5858 9.25 19 9.25Z",fill:"url(#paint0_linear_2919_69883)"}),(0,s.jsx)("defs",{children:(0,s.jsxs)("linearGradient",{id:"paint0_linear_2919_69883",x1:"1.5",y1:"11.875",x2:"22.75",y2:"11.875",gradientUnits:"userSpaceOnUse",children:[(0,s.jsx)("stop",{offset:".28125",stopColor:"#7D55EC"}),(0,s.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})},f=i(70434),h=i(34744),g=i(67971),b=i(87372),C=i(98781),x=i(29664),m=i(86673);var v=function(e){var n=e.size;return(0,s.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 17c0 1.1046-.89543 2-2 2s-2-.8954-2-2 .89543-2 2-2 2 .8954 2 2zm1.5 0c0 1.933-1.567 3.5-3.5 3.5S1.5 18.933 1.5 17s1.567-3.5 3.5-3.5 3.5 1.567 3.5 3.5zm2.25-.5c0-.4142.3358-.75.75-.75H22c.4142 0 .75.3358.75.75s-.3358.75-.75.75H11.5c-.4142 0-.75-.3358-.75-.75zM8.68946 4.29563c.16317-.38072-.0132-.82163-.39392-.9848-.38072-.16316-.82163.0132-.9848.39392L5.06418 8.94674c-.07952.18554-.3348.2052-.44179.03402L3.1361 6.60269c-.21953-.35125-.68225-.45803-1.0335-.2385-.35125.21954-.45803.68225-.2385 1.0335l1.48629 2.37807c.74892 1.19824 2.53587 1.06064 3.0925-.23814l2.24657-5.24199zM11.5 6.75c-.4142 0-.75.33579-.75.75s.3358.75.75.75H22c.4142 0 .75-.33579.75-.75s-.3358-.75-.75-.75H11.5z",fill:"url(#paint0_linear_2919_69883)"}),(0,s.jsx)("defs",{children:(0,s.jsxs)("linearGradient",{id:"paint0_linear_2919_69883",x1:"1.5",y1:"11.875",x2:"22.75",y2:"11.875",gradientUnits:"userSpaceOnUse",children:[(0,s.jsx)("stop",{offset:".28125",stopColor:"#7D55EC"}),(0,s.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})},j=i(82531),I=i(10503),S=i(9518),w=i(23831),y=i(73942),Z=i(49125),_=S.default.div.withConfig({displayName:"indexstyle__BannerStyle",componentId:"sc-1te3pmf-0"})(["border-radius:","px;padding:","px;"," "," ",""],y.n_,3*Z.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||w.Z.shadow).small,";\n ")}),(function(e){return e.background&&"\n background: ".concat(e.background,";\n ")}),(function(e){return e.backgroundImage&&'\n background-image: url("'.concat(e.backgroundImage,'");\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n ')})),P=i(3055),O=i(59920),k=i(96510),M=i(90211),E=i(24141);var R=function(e){var n=e.after,i=e.afterHidden,S=e.afterWidth,w=e.before,y=e.beforeWidth,R=e.breadcrumbs,D=e.buildSidekick,V=e.children,N=e.headline,H=e.pageName,L=e.pipeline,T=e.subheader,B=e.subheaderBackground,U=e.subheaderBackgroundImage,G=e.subheaderButton,z=e.subheaderText,A=e.title,F=e.uuid,W=(0,c.useRouter)(),Y=(0,E.i)().height,q=L.uuid,K=j.ZP.pipelines.detail(q,{includes_outputs:!1},{revalidateOnFocus:!1}).data,J=null===K||void 0===K?void 0:K.pipeline,Q=(0,l.Db)(j.ZP.pipelines.useCreate(),{onSuccess:function(e){return(0,k.wD)(e,{callback:function(e){var n=e.pipeline.uuid;W.push("/pipelines/[pipeline]/edit","/pipelines/".concat(n,"/edit"))}})}}),X=(0,r.Z)(Q,1)[0],$=(0,l.Db)((function(e){return j.ZP.pipelines.useDelete(e)()}),{onSuccess:function(e){return(0,k.wD)(e,{callback:function(){W.push("/pipelines")}})}}),ee=(0,r.Z)($,1)[0],ne=[{label:function(){return"New standard pipeline"},onClick:function(){return X({pipeline:{name:(0,M.Y6)()}})},uuid:"PipelineDetail/Header/new_standard_pipeline"},{label:function(){return"New streaming pipeline"},onClick:function(){return X({pipeline:{name:(0,M.Y6)(),type:C.q.STREAMING}})},uuid:"PipelineDetail/Header/new_streaming_pipeline"},{label:function(){return"Delete current pipeline"},onClick:function(){return ee(q)},openConfirmationDialogue:!0,uuid:"PipelineDetail/Header/delete_pipeline"}],ie=(0,o.useMemo)((function(){return n||(D?D({height:Y,heightOffset:P.Mz,pipeline:J}):null)}),[n,D,Y,J]),te=S||(ie?50*Z.iI:null),re=(0,o.useMemo)((function(){var e=[];return J&&(e.push.apply(e,[{label:function(){return"Pipelines"},linkProps:{href:"/pipelines"}}]),R?(e.push({label:function(){return J.uuid},linkProps:{as:"/pipelines/".concat(q,"/triggers"),href:"/pipelines/[pipeline]/triggers"}}),e.push.apply(e,(0,t.Z)(R)),e[e.length-1].bold=!0):e.push({bold:!0,label:function(){return J.name}})),e}),[R,J,q]),oe=[{Icon:I.Pf,IconSelected:x.Z,id:O.M.TRIGGERS,isSelected:function(){return O.M.TRIGGERS===H},label:function(){return"Triggers"},linkProps:{as:"/pipelines/".concat(q,"/triggers"),href:"/pipelines/[pipeline]/triggers"}},{Icon:I.pd,IconSelected:d.Z,id:O.M.RUNS,isSelected:function(){return O.M.RUNS===H},label:function(){return"Runs"},linkProps:{as:"/pipelines/".concat(q,"/runs"),href:"/pipelines/[pipeline]/runs"}},{Icon:I.yg,IconSelected:a,id:O.M.BACKFILLS,isSelected:function(){return O.M.BACKFILLS===H},label:function(){return"Backfills"},linkProps:{as:"/pipelines/".concat(q,"/backfills"),href:"/pipelines/[pipeline]/backfills"}},{Icon:I.B4,IconSelected:v,id:O.M.PIPELINE_LOGS,isSelected:function(){return O.M.PIPELINE_LOGS===H},label:function(){return"Logs"},linkProps:{as:"/pipelines/".concat(q,"/logs"),href:"/pipelines/[pipeline]/logs"}},{Icon:I.kL,IconSelected:p,id:O.M.MONITOR,isSelected:function(){return O.M.MONITOR===H},label:function(){return"Monitor"},linkProps:{as:"/pipelines/".concat(q,"/monitors"),href:"/pipelines/[pipeline]/monitors"}}];return C.q.INTEGRATION===(null===J||void 0===J?void 0:J.type)&&oe.unshift({Icon:I.Re,IconSelected:u.Z,id:O.M.SYNCS,isSelected:function(){return O.M.SYNCS===H},label:function(){return"Syncs"},linkProps:{as:"/pipelines/".concat(q,"/syncs"),href:"/pipelines/[pipeline]/syncs"}}),oe.unshift({Icon:null,IconSelected:null,id:O.M.EDIT,label:function(){return"Edit pipeline"},linkProps:{as:"/pipelines/".concat(q,"/edit"),href:"/pipelines/[pipeline]/edit"}}),(0,s.jsxs)(f.Z,{after:ie,afterHidden:i,afterWidth:te,before:w,beforeWidth:y,breadcrumbs:re,headerMenuItems:ne,navigationItems:oe,subheaderChildren:"undefined"!==typeof T&&T,title:J?A?A(J):J.name:null,uuid:F,children:[(G||z)&&(0,s.jsx)(m.Z,{mb:Z.Mq,mt:Z.cd,mx:Z.cd,children:(0,s.jsx)(_,{background:B,backgroundImage:U,children:(0,s.jsxs)(g.Z,{alignItems:"center",children:[G,z&&(0,s.jsx)(m.Z,{ml:3}),z]})})}),N&&(0,s.jsx)(m.Z,{p:Z.cd,children:(0,s.jsxs)(m.Z,{mt:Z.cd,px:Z.cd,children:[(0,s.jsx)(b.Z,{level:5,children:N}),(0,s.jsx)(h.Z,{light:!0,mt:Z.cd,short:!0})]})}),V]})}},18025:function(e,n,i){i.d(n,{J:function(){return s},U:function(){return c}});var t=i(9518),r=i(23831),o=i(73942),l=i(49125),c=t.default.div.withConfig({displayName:"indexstyle__CardStyle",componentId:"sc-m7tlau-0"})(["border-radius:","px;border-style:solid;border-width:2px;height:","px;margin-right:","px;padding:","px;width:","px;"," ",""],o.TR,14*l.iI,l.cd*l.iI,l.cd*l.iI,40*l.iI,(function(e){return!e.selected&&"\n border-color: ".concat((e.theme.borders||r.Z.borders).light,";\n ")}),(function(e){return e.selected&&"\n border-color: ".concat((e.theme.interactive||r.Z.interactive).linkPrimary,";\n ")})),s=t.default.div.withConfig({displayName:"indexstyle__DateSelectionContainer",componentId:"sc-m7tlau-1"})(["border-radius:","px;padding:","px;"," "," ",""],o.n_,l.tr,(function(e){return"\n background-color: ".concat((e.theme.interactive||r.Z.interactive).defaultBackground,";\n ")}),(function(e){return e.absolute&&"\n position: absolute;\n z-index: 2;\n right: 0;\n top: ".concat(2.5*l.iI,"px;\n ")}),(function(e){return e.topPosition&&"\n top: -".concat(42*l.iI,"px;\n ")}))},2713:function(e,n,i){var t=i(82394),r=i(44495),o=i(67971),l=i(55378),c=i(86673),s=i(19711),a=i(18025),u=i(49125),d=i(24224),p=i(28598);function f(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,t)}return i}function h(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?f(Object(i),!0).forEach((function(n){(0,t.Z)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):f(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}n.Z=function(e){var n=e.selectedDate,i=e.selectedTime,t=e.setSelectedDate,f=e.setSelectedTime,g=e.topPosition;return(0,p.jsxs)(a.J,{absolute:!0,topPosition:g,children:[(0,p.jsx)(r.ZP,{onChange:t,value:n}),(0,p.jsx)(c.Z,{mb:2}),(0,p.jsxs)(o.Z,{alignItems:"center",children:[(0,p.jsx)(s.ZP,{default:!0,large:!0,children:"Time (UTC):"}),(0,p.jsx)(c.Z,{pr:2}),(0,p.jsx)(l.Z,{compact:!0,monospace:!0,onChange:function(e){e.preventDefault(),f((function(n){return h(h({},n),{},{hour:e.target.value})}))},paddingRight:5*u.iI,placeholder:"HH",value:null===i||void 0===i?void 0:i.hour,children:(0,d.m5)(24,0).map((function(e){return String(e).padStart(2,"0")})).map((function(e){return(0,p.jsx)("option",{value:e,children:e},"hour_".concat(e))}))}),(0,p.jsx)(c.Z,{px:1,children:(0,p.jsx)(s.ZP,{bold:!0,large:!0,children:":"})}),(0,p.jsx)(l.Z,{compact:!0,monospace:!0,onChange:function(e){e.preventDefault(),f((function(n){return h(h({},n),{},{minute:e.target.value})}))},paddingRight:5*u.iI,placeholder:"MM",value:null===i||void 0===i?void 0:i.minute,children:(0,d.m5)(60,0).map((function(e){return String(e).padStart(2,"0")})).map((function(e){return(0,p.jsx)("option",{value:e,children:e},"minute_".concat(e))}))})]})]})}},32316:function(e,n,i){i.d(n,{Z:function(){return h}});var t=i(82684),r=i(60328),o=i(67971),l=i(882),c=i(86673),s=i(99994),a=i(9518),u=i(49125),d=i(37391),p=a.default.div.withConfig({displayName:"indexstyle__TabsContainerStyle",componentId:"sc-segf7l-0"})(["padding-left:","px;padding-right:","px;"," "," ",""],u.cd*u.iI,u.cd*u.iI,(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.allowScroll&&"\n overflow: auto;\n "}),d.w5),f=i(28598);var h=function(e){var n=e.allowScroll,i=e.contained,a=e.noPadding,d=e.onClickTab,h=e.selectedTabUUID,g=e.tabs,b=(0,t.useMemo)((function(){var e=g.length,n=[];return g.forEach((function(i,t){var a=i.Icon,p=i.IconSelected,g=i.label,b=i.uuid,C=b===h,x=C&&p||a,m=g?g():b,v=(0,f.jsxs)(o.Z,{alignItems:"center",children:[x&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(x,{default:!C,size:2*u.iI}),(0,f.jsx)(c.Z,{mr:1})]}),m]});t>=1&&e>=2&&n.push((0,f.jsx)("div",{style:{marginLeft:1.5*u.iI}},"spacing-".concat(b))),C?n.push((0,f.jsx)(l.Z,{backgroundGradient:s.yr,backgroundPanel:!0,borderLess:!0,borderWidth:2,onClick:function(){return d(i)},paddingUnitsHorizontal:2,paddingUnitsVertical:1.25,children:v},b)):n.push((0,f.jsx)("div",{style:{padding:4},children:(0,f.jsx)(r.Z,{borderLess:!0,default:!0,onClick:function(){return d(i)},outline:!0,children:v},"button-tab-".concat(b))}))})),n}),[d,h,g]),C=(0,f.jsx)(o.Z,{alignItems:"center",children:b});return i?C:(0,f.jsx)(p,{allowScroll:n,noPadding:a,children:C})}},82944:function(e,n,i){var t=i(82394),r=i(91835),o=i(82684),l=i(9518),c=i(69898),s=i(28598);function a(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,t)}return i}function u(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?a(Object(i),!0).forEach((function(n){(0,t.Z)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):a(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}var d=l.default.input.withConfig({displayName:"TextInput__TextInputStyle",componentId:"sc-1ii4qtc-0"})(["",""],c.p),p=function(e,n){var i=(0,r.Z)({},e);return(0,s.jsx)(c.Z,u(u({},i),{},{input:(0,s.jsx)(d,u({},i)),ref:n}))};n.Z=o.forwardRef(p)},16953:function(e,n,i){var t=i(28598);n.Z=function(e){var n=e.size;return(0,t.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.5 8.5H15.5V3.5H20.5V8.5ZM14 9V3C14 2.44772 14.4477 2 15 2H21C21.5523 2 22 2.44772 22 3V9C22 9.55229 21.5523 10 21 10H15C14.4477 10 14 9.55229 14 9ZM2 5V12.5V14V21.5C2 22.0523 2.44772 22.5 3 22.5H10.5H12H19.5C20.0523 22.5 20.5 22.0523 20.5 21.5V13.5C20.5 12.9477 20.0523 12.5 19.5 12.5H12V5C12 4.44772 11.5523 4 11 4H3C2.44772 4 2 4.44772 2 5ZM10.5 14V21H3.5V14H10.5ZM19 14V21H12V14H19ZM10.5 5.5V12.5H3.5V5.5H10.5Z",fill:"url(#paint0_linear_2842_55048)"}),(0,t.jsx)("defs",{children:(0,t.jsxs)("linearGradient",{id:"paint0_linear_2842_55048",x1:"2",y1:"12.25",x2:"22",y2:"12.25",gradientUnits:"userSpaceOnUse",children:[(0,t.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,t.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9140],{2850:function(e,n,t){t.d(n,{M:function(){return l},W:function(){return c}});var r=t(9518),o=t(23831),i=t(3055),c=34*t(49125).iI,l=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);",""],i.Mz,(function(e){return"\n border-left: 1px solid ".concat((e.theme.borders||o.Z.borders).medium,";\n ")}))},79585:function(e,n,t){t.d(n,{DQ:function(){return u},HY:function(){return i},SA:function(){return a},WH:function(){return o},eC:function(){return c},tC:function(){return l}});var r=t(9736),o="Workspace",i="Preferences",c="Users",l="Account",u="Profile",a=function(e){var n=e.owner,t=[{linkProps:{href:"/settings/workspace/preferences"},uuid:i}];n&&t.push({linkProps:{href:"/settings/workspace/users"},uuid:c});var a=[{items:t,uuid:o}];return(0,r.YB)()?a.concat([{items:[{linkProps:{href:"/settings/account/profile"},uuid:u}],uuid:l}]):a}},30775:function(e,n,t){t.d(n,{Z:function(){return Z}});var r=t(70434),o=t(82394),i=t(12691),c=t.n(i),l=t(10919),u=t(86673),a=t(19711),s=t(9518),d=t(23831),p=t(49125),f=t(90880),m=(p.iI,s.default.div.withConfig({displayName:"indexstyle__SectionTitleStyle",componentId:"sc-1y8dyue-0"})(["padding:","px ","px;"],1*p.iI,2.5*p.iI)),h=s.default.div.withConfig({displayName:"indexstyle__ItemStyle",componentId:"sc-1y8dyue-1"})([""," padding:","px ","px;"," ",""],(0,f.eR)(),1.5*p.iI,2.5*p.iI,(function(e){return!e.selected&&"\n &:hover {\n background-color: ".concat((e.theme.background||d.Z.background).codeArea,";\n }\n ")}),(function(e){return e.selected&&"\n background-color: ".concat((e.theme.background||d.Z.background).codeTextarea,";\n ")})),b=t(28598),v=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,o.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,b.jsx)(u.Z,{py:p.Gg,children:null===t||void 0===t?void 0:t.map((function(e){var t=e.items,r=e.title,o=e.uuid;return(0,b.jsxs)(u.Z,{children:[(0,b.jsx)(m,{children:(0,b.jsx)(a.ZP,{bold:!0,muted:!0,small:!0,uppercase:!0,children:r?r():o})}),null===t||void 0===t?void 0:t.map((function(e){var t=e.label,r=e.linkProps,i=e.onClick,u=e.uuid,a=t?t():u,s=(0,b.jsx)(h,{selected:null===n||void 0===n?void 0:n(g(g({},e),{},{uuidWorkspace:o})),children:a});return r?(0,v.createElement)(c(),g(g({},r),{},{key:u,passHref:!0}),(0,b.jsx)(l.Z,{block:!0,noHoverUnderline:!0,noOutline:!0,sameColorAsText:!0,children:s})):(0,b.jsx)(l.Z,{block:!0,noHoverUnderline:!0,noOutline:!0,onClick:i,preventDefault:!0,sameColorAsText:!0,children:s},u)}))]},o)}))})},O=t(2850),j=t(79585),x=t(9736);var Z=function(e){var n=e.after,t=e.afterHidden,o=e.children,i=e.uuidItemSelected,c=e.uuidWorkspaceSelected,l=((0,x.PR)()||{}).owner;return(0,b.jsx)(r.Z,{after:n,afterHidden:!n||t,afterWidth:n?50*p.iI:0,afterWidthOverride:!0,before:(0,b.jsx)(O.M,{children:(0,b.jsx)(w,{isItemSelected:function(e){var n=e.uuid,t=e.uuidWorkspace;return c===t&&i===n},sections:(0,j.SA)({owner:l})})}),beforeWidth:O.W,title:"Settings",uuid:"settings/index",children:o})}},63153:function(e,n,t){t.d(n,{Z3:function(){return r},ms:function(){return i},s7:function(){return o}});var r=[{autoComplete:"username",label:"Username",required:!0,uuid:"username"},{autoComplete:"email",disabled:!0,label:"Email",required:!0,type:"email",uuid:"email"}],o="password_current",i=[{autoComplete:"current-password",label:"Current password",type:"password",uuid:o},{autoComplete:"new-password",label:"New password",type:"password",uuid:"password"},{autoComplete:"new-password",label:"Confirm new password",type:"password",uuid:"password_confirmation"}]},67867:function(e,n,t){t.d(n,{Z:function(){return S}});var r,o,i=t(82394),c=t(21831),l=t(75582),u=t(21764),a=t(82684),s=t(83455),d=t(60328),p=t(67971),f=t(87372),m=t(55378),h=t(86673),b=t(82944);!function(e){e[e.ADMIN=1]="ADMIN",e[e.EDITOR=2]="EDITOR",e[e.VIEWER=4]="VIEWER"}(o||(o={}));var v=(r={},(0,i.Z)(r,o.ADMIN,"Admin"),(0,i.Z)(r,o.EDITOR,"Editor"),(0,i.Z)(r,o.VIEWER,"Viewer"),r),y=[o.VIEWER,o.EDITOR,o.ADMIN],g=t(82531),w=t(66166),O=t(63153),j=t(7715),x=t(96510),Z=t(28598);function I(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function P(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?I(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):I(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var S=function(e){var n=e.disabledFields,t=e.hideFields,r=e.newUser,o=e.onDeleteSuccess,I=e.onSaveSuccess,S=e.showDelete,C=e.title,k=e.user,_=(0,a.useState)(!0),N=_[0],D=_[1],E=(0,a.useState)({}),H=E[0],z=E[1],T=(0,a.useState)(null),A=T[0],M=T[1],R=(0,s.Db)(r?g.ZP.users.useCreate():g.ZP.users.useUpdate(null===k||void 0===k?void 0:k.id),{onSuccess:function(e){return(0,x.wD)(e,{callback:function(e){var n=e.user,t=(0,j.GL)(n,O.Z3.concat(O.ms).map((function(e){return e.uuid})));M(t),u.Am.success(r?"New user created successfully.":"User profile successfully updated.",{position:u.Am.POSITION.BOTTOM_RIGHT,toastId:"user-update-success-".concat(n.id)}),null===I||void 0===I||I(t)},onErrorCallback:function(e){var n=e.error,t=n.message,r=n.type;u.Am.error(t,{position:u.Am.POSITION.BOTTOM_RIGHT,toastId:r})}})}}),L=(0,l.Z)(R,2),W=L[0],q=L[1].isLoading,B=(0,s.Db)(g.ZP.users.useDelete(null===k||void 0===k?void 0:k.id),{onSuccess:function(e){return(0,x.wD)(e,{callback:function(){null===o||void 0===o||o()},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.message;alert(r),console.log(t)}})}}),U=(0,l.Z)(B,2),F=U[0],G=U[1].isLoading,Q=t?(0,c.Z)(t):[];r&&Q.push(O.s7);var V=!Q||!Q.includes(O.s7),Y=(0,w.Z)(k);return(0,a.useEffect)((function(){!k||A&&(null===Y||void 0===Y?void 0:Y.id)===(null===k||void 0===k?void 0:k.id)||M((0,j.GL)(k,O.Z3.concat(O.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."}):!V||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&&V?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,V,k,Y]),(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(f.Z,{children:C||"Edit profile"}),(0,Z.jsxs)("form",{children:[O.Z3.filter((function(e){var n=e.uuid;return!Q||!Q.includes(n)})).map((function(e){var n=e.autoComplete,t=e.disabled,o=e.label,c=e.required,l=e.type,u=e.uuid;return(0,Z.jsx)(h.Z,{mt:2,children:(0,Z.jsx)(b.Z,{autoComplete:n,disabled:t&&!r,label:o,onChange:function(e){D(!1),M((function(n){return P(P({},n),{},(0,i.Z)({},u,e.target.value))}))},primary:!0,required:c,setContentOnMount:!0,type:l,value:(null===A||void 0===A?void 0:A[u])||""})},u)})),!(null!==k&&void 0!==k&&k.owner)&&(0,Z.jsx)(h.Z,{mt:2,children:(0,Z.jsxs)(m.Z,{disabled:null===n||void 0===n?void 0:n.includes("roles"),label:"Roles",onChange:function(e){D(!1),M((function(n){return P(P({},n),{},{roles:e.target.value})}))},primary:!0,setContentOnMount:!0,value:(null===A||void 0===A?void 0:A.roles)||(null===k||void 0===k?void 0:k.roles)||"",children:[(0,Z.jsx)("option",{value:""}),y.map((function(e){return(0,Z.jsx)("option",{value:e,children:v[e]},e)}))]})}),(0,Z.jsxs)(h.Z,{mt:5,children:[(0,Z.jsx)(f.Z,{children:r?"Password":"Change password"}),O.ms.filter((function(e){var n=e.uuid;return!Q||!Q.includes(n)})).map((function(e){var n=e.autoComplete,t=e.disabled,r=e.label,o=e.required,c=e.type,l=e.uuid;return(0,Z.jsx)(h.Z,{mt:2,children:(0,Z.jsx)(b.Z,{autoComplete:n,disabled:t,label:r,meta:{error:null===H||void 0===H?void 0:H[l],touched:!(null===H||void 0===H||!H[l])},onChange:function(e){D(!1),M((function(n){return P(P({},n),{},(0,i.Z)({},l,e.target.value))}))},primary:!0,required:o,setContentOnMount:!0,type:c,value:(null===A||void 0===A?void 0:A[l])||""})},l)}))]}),(0,Z.jsx)(h.Z,{mt:5,children:(0,Z.jsxs)(p.Z,{children:[(0,Z.jsx)(d.Z,{disabled:N||H&&!(0,j.Qr)(H),loading:q,onClick:function(){return W({user:A})},primary:!0,children:r?"Create new user":"Update user profile"}),S&&(0,Z.jsx)(h.Z,{ml:1,children:(0,Z.jsx)(d.Z,{danger:!0,loading:G,onClick:function(){window.confirm("Are you sure you want to delete ".concat(A.username||A.email,"?"))&&F()},children:"Delete user"})})]})})]})]})}},87372:function(e,n,t){var r,o,i,c,l,u,a,s,d=t(82394),p=t(26304),f=t(26653),m=t(9518),h=t(33591),b=t(23831),v=t(2005),y=t(31012),g=t(19711),w=t(49125),O=t(86673),j=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 I(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 P=(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||b.Z.accent).yellow,";\n ")}),(function(e){return e.center&&"\n text-align: center;\n "}),(function(e){return!e.monospace&&0===Number(e.weightStyle)&&"\n font-family: ".concat(v.iI,";\n ")}),(function(e){return!e.monospace&&1===Number(e.weightStyle)&&"\n font-family: ".concat(v.LX,";\n ")}),(function(e){return!e.monospace&&2===Number(e.weightStyle)&&"\n font-family: ".concat(v.LX,";\n ")}),(function(e){return!e.monospace&&3===Number(e.weightStyle)&&"\n font-family: ".concat(v.ry,";\n ")}),(function(e){return!e.monospace&&4===Number(e.weightStyle)&&"\n font-family: ".concat(v.YC,";\n ")}),(function(e){return!e.monospace&&5===Number(e.weightStyle)&&"\n font-family: ".concat(v.nF,";\n ")}),(function(e){return!e.monospace&&(6===Number(e.weightStyle)||e.bold)&&"\n font-family: ".concat(v.nF,";\n ")}),(function(e){return!e.monospace&&7===Number(e.weightStyle)&&"\n font-family: ".concat(v.nF,";\n ")}),(function(e){return!e.monospace&&8===Number(e.weightStyle)&&"\n font-family: ".concat(v.nF,";\n ")}),(function(e){return e.lineHeightAuto&&"\n line-height: normal !important;\n "})),S=m.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(e){return"\n color: ".concat((e.theme.content||b.Z.content).active,";\n ")})),C=m.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],P,h.media.md(r||(r=(0,f.Z)(["\n ","\n "])),y.aQ),h.media.lg(o||(o=(0,f.Z)(["\n ","\n "])),y.aQ),h.media.xl(i||(i=(0,f.Z)(["\n ","\n "])),y.aQ)),k=m.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],P,y.MJ),_=m.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],P,h.media.xs(c||(c=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),h.media.sm(l||(l=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),h.media.md(u||(u=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),h.media.lg(a||(a=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),h.media.xl(s||(s=(0,f.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"})([""," ",""],P,y.BL),D=m.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],P),E=m.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],P),H=m.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],P),z=m.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],P,(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 "})),T=function(e){var n,t=e.children,r=e.condensed,o=e.inline,i=e.level,c=e.marketing,l=e.spacingBelow,u=(0,p.Z)(e,x);o?n=z:0===Number(i)?n=C:1===Number(i)?n=c?_:k:2===Number(i)?n=N:3===Number(i)?n=D:4===Number(i)?n=E:5===Number(i)&&(n=H);var a=(0,j.jsxs)(n,I(I({},u),{},{level:i,children:[l&&(0,j.jsx)(O.Z,{mb:r?2:3,children:t}),!l&&t]}));return o?a:(0,j.jsx)(S,{children:a})};T.defaultProps={level:3,weightStyle:6},n.Z=T},55378:function(e,n,t){var r=t(82394),o=t(26304),i=t(82684),c=t(9518),l=t(69898),u=t(31969),a=t(49125),s=t(28598),d=["beforeIcon","children","label","placeholder"];function p(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 f(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?p(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):p(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var m=c.default.select.withConfig({displayName:"Select__SelectStyle",componentId:"sc-q6ezu2-0"})(["",' background-image:url("data:image/svg+xml;utf8,','");background-repeat:no-repeat;background-position:-webkit-calc(100% - ',"px) center;background-position:calc(100% - ","px) center;padding-right:","px;&:hover{cursor:pointer;}"," "," "," ",""],l.p,"\n <svg width='12' height='12' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'>\n <path\n clip-rule='evenodd'\n d='M8.0015 11.7109L14.0022 5.71017L12.588 4.29597L7.99485 8.88914L3.40754 4.34482L2 5.76567L8.0015 11.7109Z'\n fill='%23B4B8C0'\n fill-rule='evenodd'\n />\n </svg>",a.iI,a.iI,2.5*a.iI,(function(e){return!e.hasContent&&!e.showPlaceholder&&"\n color: ".concat((e.theme.content||u.Z.content).muted,";\n ")}),(function(e){return e.backgroundColor&&"\n background-color: ".concat(e.backgroundColor,";\n ")}),(function(e){return e.color&&"\n color: ".concat(e.color,";\n ")}),(function(e){return e.showPlaceholder&&"\n color: ".concat((e.theme.content||u.Z.content).inverted,";\n ")})),h=function(e,n){var t=e.beforeIcon,r=e.children,i=e.label,c=e.placeholder,u=(0,o.Z)(e,d);return(0,s.jsx)(l.Z,f(f({},u),{},{beforeIcon:t,input:(0,s.jsxs)(m,f(f({},u),{},{children:[(i||c)&&(0,s.jsx)("option",{disabled:!0,selected:!0,value:"",children:i||c}),r]})),label:i,placeholder:c,ref:n,setContentOnMount:!0,showLabelRequirement:function(e){return!!e.content}}))};n.Z=i.forwardRef(h)},82944:function(e,n,t){var r=t(82394),o=t(91835),i=t(82684),c=t(9518),l=t(69898),u=t(28598);function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var d=c.default.input.withConfig({displayName:"TextInput__TextInputStyle",componentId:"sc-1ii4qtc-0"})(["",""],l.p),p=function(e,n){var t=(0,o.Z)({},e);return(0,u.jsx)(l.Z,s(s({},t),{},{input:(0,u.jsx)(d,s({},t)),ref:n}))};n.Z=i.forwardRef(p)}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9140],{2850:function(e,n,t){t.d(n,{M:function(){return l},W:function(){return c}});var r=t(9518),o=t(23831),i=t(3055),c=34*t(49125).iI,l=r.default.div.withConfig({displayName:"indexstyle__BeforeStyle",componentId:"sc-12ee2ib-0"})(["min-height:calc(100vh - ","px);",""],i.Mz,(function(e){return"\n border-left: 1px solid ".concat((e.theme.borders||o.Z.borders).medium,";\n ")}))},79585:function(e,n,t){t.d(n,{DQ:function(){return u},HY:function(){return i},SA:function(){return a},WH:function(){return o},eC:function(){return c},tC:function(){return l}});var r=t(9736),o="Workspace",i="Preferences",c="Users",l="Account",u="Profile",a=function(e){var n=e.owner,t=[{linkProps:{href:"/settings/workspace/preferences"},uuid:i}];n&&t.push({linkProps:{href:"/settings/workspace/users"},uuid:c});var a=[{items:t,uuid:o}];return(0,r.YB)()?a.concat([{items:[{linkProps:{href:"/settings/account/profile"},uuid:u}],uuid:l}]):a}},30775:function(e,n,t){t.d(n,{Z:function(){return Z}});var r=t(70434),o=t(82394),i=t(12691),c=t.n(i),l=t(10919),u=t(86673),a=t(19711),s=t(9518),d=t(23831),p=t(49125),f=t(90880),m=(p.iI,s.default.div.withConfig({displayName:"indexstyle__SectionTitleStyle",componentId:"sc-1y8dyue-0"})(["padding:","px ","px;"],1*p.iI,2.5*p.iI)),h=s.default.div.withConfig({displayName:"indexstyle__ItemStyle",componentId:"sc-1y8dyue-1"})([""," padding:","px ","px;"," ",""],(0,f.eR)(),1.5*p.iI,2.5*p.iI,(function(e){return!e.selected&&"\n &:hover {\n background-color: ".concat((e.theme.background||d.Z.background).codeArea,";\n }\n ")}),(function(e){return e.selected&&"\n background-color: ".concat((e.theme.background||d.Z.background).codeTextarea,";\n ")})),b=t(28598),v=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,o.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,b.jsx)(u.Z,{py:p.Gg,children:null===t||void 0===t?void 0:t.map((function(e){var t=e.items,r=e.title,o=e.uuid;return(0,b.jsxs)(u.Z,{children:[(0,b.jsx)(m,{children:(0,b.jsx)(a.ZP,{bold:!0,muted:!0,small:!0,uppercase:!0,children:r?r():o})}),null===t||void 0===t?void 0:t.map((function(e){var t=e.label,r=e.linkProps,i=e.onClick,u=e.uuid,a=t?t():u,s=(0,b.jsx)(h,{selected:null===n||void 0===n?void 0:n(g(g({},e),{},{uuidWorkspace:o})),children:a});return r?(0,v.createElement)(c(),g(g({},r),{},{key:u,passHref:!0}),(0,b.jsx)(l.Z,{block:!0,noHoverUnderline:!0,noOutline:!0,sameColorAsText:!0,children:s})):(0,b.jsx)(l.Z,{block:!0,noHoverUnderline:!0,noOutline:!0,onClick:i,preventDefault:!0,sameColorAsText:!0,children:s},u)}))]},o)}))})},O=t(2850),j=t(79585),x=t(9736);var Z=function(e){var n=e.after,t=e.afterHidden,o=e.children,i=e.uuidItemSelected,c=e.uuidWorkspaceSelected,l=((0,x.PR)()||{}).owner;return(0,b.jsx)(r.Z,{after:n,afterHidden:!n||t,afterWidth:n?50*p.iI:0,afterWidthOverride:!0,before:(0,b.jsx)(O.M,{children:(0,b.jsx)(w,{isItemSelected:function(e){var n=e.uuid,t=e.uuidWorkspace;return c===t&&i===n},sections:(0,j.SA)({owner:l})})}),beforeWidth:O.W,title:"Settings",uuid:"settings/index",children:o})}},63153:function(e,n,t){t.d(n,{Z3:function(){return r},ms:function(){return i},s7:function(){return o}});var r=[{autoComplete:"username",label:"Username",required:!0,uuid:"username"},{autoComplete:"email",disabled:!0,label:"Email",required:!0,type:"email",uuid:"email"}],o="password_current",i=[{autoComplete:"current-password",label:"Current password",type:"password",uuid:o},{autoComplete:"new-password",label:"New password",type:"password",uuid:"password"},{autoComplete:"new-password",label:"Confirm new password",type:"password",uuid:"password_confirmation"}]},67867:function(e,n,t){t.d(n,{Z:function(){return S}});var r,o,i=t(82394),c=t(21831),l=t(75582),u=t(21764),a=t(82684),s=t(83455),d=t(60328),p=t(67971),f=t(87372),m=t(55378),h=t(86673),b=t(82944);!function(e){e[e.ADMIN=1]="ADMIN",e[e.EDITOR=2]="EDITOR",e[e.VIEWER=4]="VIEWER"}(o||(o={}));var v=(r={},(0,i.Z)(r,o.ADMIN,"Admin"),(0,i.Z)(r,o.EDITOR,"Editor"),(0,i.Z)(r,o.VIEWER,"Viewer"),r),y=[o.VIEWER,o.EDITOR,o.ADMIN],g=t(82531),w=t(66166),O=t(63153),j=t(7715),x=t(96510),Z=t(28598);function I(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function P(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?I(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):I(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var S=function(e){var n=e.disabledFields,t=e.hideFields,r=e.newUser,o=e.onDeleteSuccess,I=e.onSaveSuccess,S=e.showDelete,C=e.title,k=e.user,_=(0,a.useState)(!0),N=_[0],D=_[1],E=(0,a.useState)({}),H=E[0],z=E[1],T=(0,a.useState)(null),A=T[0],M=T[1],R=(0,s.Db)(r?g.ZP.users.useCreate():g.ZP.users.useUpdate(null===k||void 0===k?void 0:k.id),{onSuccess:function(e){return(0,x.wD)(e,{callback:function(e){var n=e.user,t=(0,j.GL)(n,O.Z3.concat(O.ms).map((function(e){return e.uuid})));M(t),u.Am.success(r?"New user created successfully.":"User profile successfully updated.",{position:u.Am.POSITION.BOTTOM_RIGHT,toastId:"user-update-success-".concat(n.id)}),null===I||void 0===I||I(t)},onErrorCallback:function(e){var n=e.error,t=n.message,r=n.type;u.Am.error(t,{position:u.Am.POSITION.BOTTOM_RIGHT,toastId:r})}})}}),L=(0,l.Z)(R,2),W=L[0],q=L[1].isLoading,B=(0,s.Db)(g.ZP.users.useDelete(null===k||void 0===k?void 0:k.id),{onSuccess:function(e){return(0,x.wD)(e,{callback:function(){null===o||void 0===o||o()},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.message;alert(r),console.log(t)}})}}),U=(0,l.Z)(B,2),F=U[0],G=U[1].isLoading,Q=t?(0,c.Z)(t):[];r&&Q.push(O.s7);var V=!Q||!Q.includes(O.s7),Y=(0,w.Z)(k);return(0,a.useEffect)((function(){!k||A&&(null===Y||void 0===Y?void 0:Y.id)===(null===k||void 0===k?void 0:k.id)||M((0,j.GL)(k,O.Z3.concat(O.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."}):!V||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&&V?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,V,k,Y]),(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(f.Z,{children:C||"Edit profile"}),(0,Z.jsxs)("form",{children:[O.Z3.filter((function(e){var n=e.uuid;return!Q||!Q.includes(n)})).map((function(e){var n=e.autoComplete,t=e.disabled,o=e.label,c=e.required,l=e.type,u=e.uuid;return(0,Z.jsx)(h.Z,{mt:2,children:(0,Z.jsx)(b.Z,{autoComplete:n,disabled:t&&!r,label:o,onChange:function(e){D(!1),M((function(n){return P(P({},n),{},(0,i.Z)({},u,e.target.value))}))},primary:!0,required:c,setContentOnMount:!0,type:l,value:(null===A||void 0===A?void 0:A[u])||""})},u)})),!(null!==k&&void 0!==k&&k.owner)&&(0,Z.jsx)(h.Z,{mt:2,children:(0,Z.jsxs)(m.Z,{disabled:null===n||void 0===n?void 0:n.includes("roles"),label:"Roles",onChange:function(e){D(!1),M((function(n){return P(P({},n),{},{roles:e.target.value})}))},primary:!0,setContentOnMount:!0,value:(null===A||void 0===A?void 0:A.roles)||(null===k||void 0===k?void 0:k.roles)||"",children:[(0,Z.jsx)("option",{value:""}),y.map((function(e){return(0,Z.jsx)("option",{value:e,children:v[e]},e)}))]})}),(0,Z.jsxs)(h.Z,{mt:5,children:[(0,Z.jsx)(f.Z,{children:r?"Password":"Change password"}),O.ms.filter((function(e){var n=e.uuid;return!Q||!Q.includes(n)})).map((function(e){var n=e.autoComplete,t=e.disabled,r=e.label,o=e.required,c=e.type,l=e.uuid;return(0,Z.jsx)(h.Z,{mt:2,children:(0,Z.jsx)(b.Z,{autoComplete:n,disabled:t,label:r,meta:{error:null===H||void 0===H?void 0:H[l],touched:!(null===H||void 0===H||!H[l])},onChange:function(e){D(!1),M((function(n){return P(P({},n),{},(0,i.Z)({},l,e.target.value))}))},primary:!0,required:o,setContentOnMount:!0,type:c,value:(null===A||void 0===A?void 0:A[l])||""})},l)}))]}),(0,Z.jsx)(h.Z,{mt:5,children:(0,Z.jsxs)(p.Z,{children:[(0,Z.jsx)(d.Z,{disabled:N||H&&!(0,j.Qr)(H),loading:q,onClick:function(){return W({user:A})},primary:!0,children:r?"Create new user":"Update user profile"}),S&&(0,Z.jsx)(h.Z,{ml:1,children:(0,Z.jsx)(d.Z,{danger:!0,loading:G,onClick:function(){window.confirm("Are you sure you want to delete ".concat(A.username||A.email,"?"))&&F()},children:"Delete user"})})]})})]})]})}},87372:function(e,n,t){var r,o,i,c,l,u,a,s,d=t(82394),p=t(26304),f=t(26653),m=t(9518),h=t(33591),b=t(23831),v=t(2005),y=t(31012),g=t(19711),w=t(49125),O=t(86673),j=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 I(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 P=(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||b.Z.accent).yellow,";\n ")}),(function(e){return e.center&&"\n text-align: center;\n "}),(function(e){return!e.monospace&&0===Number(e.weightStyle)&&"\n font-family: ".concat(v.iI,";\n ")}),(function(e){return!e.monospace&&1===Number(e.weightStyle)&&"\n font-family: ".concat(v.LX,";\n ")}),(function(e){return!e.monospace&&2===Number(e.weightStyle)&&"\n font-family: ".concat(v.LX,";\n ")}),(function(e){return!e.monospace&&3===Number(e.weightStyle)&&"\n font-family: ".concat(v.ry,";\n ")}),(function(e){return!e.monospace&&4===Number(e.weightStyle)&&"\n font-family: ".concat(v.YC,";\n ")}),(function(e){return!e.monospace&&5===Number(e.weightStyle)&&"\n font-family: ".concat(v.nF,";\n ")}),(function(e){return!e.monospace&&(6===Number(e.weightStyle)||e.bold)&&"\n font-family: ".concat(v.nF,";\n ")}),(function(e){return!e.monospace&&7===Number(e.weightStyle)&&"\n font-family: ".concat(v.nF,";\n ")}),(function(e){return!e.monospace&&8===Number(e.weightStyle)&&"\n font-family: ".concat(v.nF,";\n ")}),(function(e){return e.lineHeightAuto&&"\n line-height: normal !important;\n "})),S=m.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(e){return"\n color: ".concat((e.theme.content||b.Z.content).active,";\n ")})),C=m.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],P,h.media.md(r||(r=(0,f.Z)(["\n ","\n "])),y.aQ),h.media.lg(o||(o=(0,f.Z)(["\n ","\n "])),y.aQ),h.media.xl(i||(i=(0,f.Z)(["\n ","\n "])),y.aQ)),k=m.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],P,y.MJ),_=m.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],P,h.media.xs(c||(c=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),h.media.sm(l||(l=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),h.media.md(u||(u=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),h.media.lg(a||(a=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),h.media.xl(s||(s=(0,f.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"})([""," ",""],P,y.BL),D=m.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],P),E=m.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],P),H=m.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],P),z=m.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],P,(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 "})),T=function(e){var n,t=e.children,r=e.condensed,o=e.inline,i=e.level,c=e.marketing,l=e.spacingBelow,u=(0,p.Z)(e,x);o?n=z:0===Number(i)?n=C:1===Number(i)?n=c?_:k:2===Number(i)?n=N:3===Number(i)?n=D:4===Number(i)?n=E:5===Number(i)&&(n=H);var a=(0,j.jsxs)(n,I(I({},u),{},{level:i,children:[l&&(0,j.jsx)(O.Z,{mb:r?2:3,children:t}),!l&&t]}));return o?a:(0,j.jsx)(S,{children:a})};T.defaultProps={level:3,weightStyle:6},n.Z=T},55378:function(e,n,t){var r=t(82394),o=t(26304),i=t(82684),c=t(9518),l=t(69898),u=t(31969),a=t(49125),s=t(28598),d=["beforeIcon","children","label","multiple","placeholder"];function p(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 f(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?p(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):p(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var m=c.default.select.withConfig({displayName:"Select__SelectStyle",componentId:"sc-q6ezu2-0"})(["",' background-image:url("data:image/svg+xml;utf8,','");background-repeat:no-repeat;background-position:-webkit-calc(100% - ',"px) center;background-position:calc(100% - ","px) center;padding-right:","px;&:hover{cursor:pointer;}"," "," "," ",""],l.p,"\n <svg width='12' height='12' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'>\n <path\n clip-rule='evenodd'\n d='M8.0015 11.7109L14.0022 5.71017L12.588 4.29597L7.99485 8.88914L3.40754 4.34482L2 5.76567L8.0015 11.7109Z'\n fill='%23B4B8C0'\n fill-rule='evenodd'\n />\n </svg>",a.iI,a.iI,2.5*a.iI,(function(e){return!e.hasContent&&!e.showPlaceholder&&"\n color: ".concat((e.theme.content||u.Z.content).muted,";\n ")}),(function(e){return e.backgroundColor&&"\n background-color: ".concat(e.backgroundColor,";\n ")}),(function(e){return e.color&&"\n color: ".concat(e.color,";\n ")}),(function(e){return e.showPlaceholder&&"\n color: ".concat((e.theme.content||u.Z.content).inverted,";\n ")})),h=function(e,n){var t=e.beforeIcon,r=e.children,i=e.label,c=e.multiple,u=e.placeholder,a=(0,o.Z)(e,d);return(0,s.jsx)(l.Z,f(f({},a),{},{beforeIcon:t,input:(0,s.jsxs)(m,f(f({multiple:c},a),{},{children:[(i||u)&&(0,s.jsx)("option",{disabled:!0,selected:!0,value:"",children:i||u}),r]})),label:i,placeholder:u,ref:n,setContentOnMount:!0,showLabelRequirement:function(e){return!!e.content}}))};n.Z=i.forwardRef(h)},82944:function(e,n,t){var r=t(82394),o=t(91835),i=t(82684),c=t(9518),l=t(69898),u=t(28598);function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var d=c.default.input.withConfig({displayName:"TextInput__TextInputStyle",componentId:"sc-1ii4qtc-0"})(["",""],l.p),p=function(e,n){var t=(0,o.Z)({},e);return(0,u.jsx)(l.Z,s(s({},t),{},{input:(0,u.jsx)(d,s({},t)),ref:n}))};n.Z=i.forwardRef(p)}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9898],{69898:function(n,t,e){e.d(t,{p:function(){return x}});var o=e(26304),r=e(82684),c=e(9518),a=e(16910),i=e(19711),d=e(23831),u=e(73942),l=e(2005),p=e(31012),s=e(49125),m=e(90880),f=e(28598),h=["afterIcon","afterIconClick","autoGenerated","beforeIcon","compact","fitContent","fullWidth","input","invertedTheme","label","labelDescription","labelFixed","meta","name","onChange","onClick","passwordrules","placeholder","readOnly","required","setContentOnMount","showLabelRequirement","small","topPosition","type","value","visible","width"],b=c.default.div.withConfig({displayName:"InputWrapper__ContainerStyle",componentId:"sc-aepxnk-0"})([".label-enter{opacity:0;transform:translate(0,","px);}.label-enter-active{opacity:1;transform:translate(0,0);transition:all 200ms;}.label-exit{opacity:1;transform:translate(0,0);}.label-exit-active{opacity:0;transform:translate(0,13px);transition:all 100ms;}"," "," "," ",""],s.iI,(function(n){return n.visible&&"\n position: relative;\n "}),(function(n){return!n.visible&&"\n opacity: 0;\n position: absolute;\n z-index: 0;\n "}),(function(n){return n.fitContent&&"\n width: fit-content;\n "}),(function(n){return n.fullWidth&&"\n width: 100%;\n "})),g=c.default.div.withConfig({displayName:"InputWrapper__LabelContainerStyle",componentId:"sc-aepxnk-1"})(["position:absolute;"," ",""],(function(n){return!n.compact&&!n.beforeIcon&&"\n left: ".concat(2*s.iI,"px;\n top: ").concat(.75*s.iI,"px;\n ")}),(function(n){return!n.compact&&n.beforeIcon&&"\n left: ".concat(5*s.iI,"px;\n top: ").concat(.5*s.iI,"px;\n ")})),v=c.default.div.withConfig({displayName:"InputWrapper__IconContainerStyle",componentId:"sc-aepxnk-2"})(["position:absolute;top:","px;"," "," ",""],(function(n){return n.top?0:u.YF}),(function(n){return!n.compact&&"\n padding: ".concat(s.iI,"px;\n ")}),(function(n){return n.compact&&"\n padding: ".concat(.75*s.iI,"px;\n ")}),(function(n){return n.right&&"\n right: 0;\n "})),x=(0,c.css)([""," "," "," -moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;background-color:transparent;box-sizing:border-box;outline-style:none;"," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," ",""],(0,m.Xh)("appearance","none"),(0,m.Xh)("transition","background 300ms ease 0s, border 300ms ease 0s, color 300ms ease 0s"),(0,m.eR)("200ms box-shadow linear"),i.G,(function(n){return!n.small&&!n.large&&"\n ".concat(p.iD,"\n ")}),(function(n){return n.small&&"\n ".concat(p.HC,"\n line-height: 20px !important;\n ")}),(function(n){return!n.monospace&&"\n font-family: ".concat(l.YC,";\n ")}),(function(n){return n.monospace&&"\n font-family: ".concat(l.Vp,";\n ")}),(function(n){return n.bold&&"\n font-family: ".concat(l.nF,";\n ")}),(function(n){return!n.borderless&&"\n border-radius: ".concat(u.BG,"px;\n border-style: ").concat(u.M8,";\n border-width: ").concat(u.YF,"px};\n ")}),(function(n){return n.noBorderRadiusBottom&&"\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n "}),(function(n){return n.borderless&&"\n border-style: none;\n "}),(function(n){return n.noBorder&&"\n border-style: none;\n "}),(function(n){return!n.noBorder&&n.noBorderUntilFocus&&"\n border-style: none;\n\n &:focus {\n border-style: ".concat(u.M8,";\n }\n ")}),(function(n){return!n.noBorder&&n.noBorderUntilHover&&"\n border-style: none;\n\n &:hover {\n border-style: ".concat(u.M8,";\n }\n ")}),(function(n){return!n.disabled&&!n.invertedTheme&&"\n border-color: ".concat((n.theme.interactive||d.Z.interactive).defaultBorder,";\n color: ").concat((n.theme.content||d.Z.content).active,";\n\n ::placeholder {\n color: ").concat((n.theme.content||d.Z.content).default,";\n }\n ")}),(function(n){return!n.disabled&&!n.noBackground&&"\n &:hover {\n background-color: ".concat((n.theme.interactive||d.Z.interactive).hoverOverlay,";\n border-color: ").concat((n.theme.interactive||d.Z.interactive).hoverBorder,";\n }\n\n &:focus {\n background-color: ").concat((n.theme.interactive||d.Z.interactive).hoverBackground,";\n border-color: ").concat((n.theme.interactive||d.Z.interactive).focusBorder,";\n color: ").concat((n.theme.content||d.Z.content).active,";\n }\n\n &:active {\n background-color: ").concat((n.theme.interactive||d.Z.interactive).activeOverlay,";\n }\n ")}),(function(n){return n.noBlinkingCursor&&"\n &:focus {\n text-indent: -9999em;\n text-shadow : 9999em 0 0 #000;\n }\n "}),(function(n){return n.shadow&&"\n &:focus {\n box-shadow:\n 0 0 0 1px ".concat((n.theme.interactive||d.Z.interactive).focusBorder," inset,\n 0 0 0 1px ").concat((n.theme.interactive||d.Z.interactive).focusBorder,"\n ;\n }\n ")}),(function(n){return n.disabled&&"\n border-color: ".concat((n.theme.interactive||d.Z.interactive).disabledBorder,";\n color: ").concat((n.theme.content||d.Z.content).disabled,";\n\n ::placeholder {\n color: ").concat((n.theme.content||d.Z.content).disabled,";\n }\n ")}),(function(n){return n.danger&&"\n border-color: ".concat((n.theme.interactive||d.Z.interactive).dangerBorder," !important;\n\n &:active,\n &:focus,\n &:hover {\n border-color: ").concat((n.theme.interactive||d.Z.interactive).dangerBorder," !important;\n }\n ")}),(function(n){return!n.compact&&"\n padding-left: ".concat(2*s.iI,"px;\n padding-right: ").concat(2*s.iI,"px;\n ")}),(function(n){return!n.compact&&!(n.label&&n.isFocused)&&"\n padding-bottom: ".concat(1.5*s.iI,"px;\n padding-top: ").concat(1.5*s.iI,"px;\n ")}),(function(n){return!n.compact&&n.label&&n.isFocused&&"\n padding-bottom: ".concat(.75*s.iI,"px;\n padding-top: ").concat(.75*s.iI+12,"px;\n ")}),(function(n){return n.beforeIcon&&!n.compact&&"\n padding-left: ".concat(5*s.iI,"px !important;\n ")}),(function(n){return n.afterIcon&&!n.compact&&"\n padding-right: ".concat(5*s.iI,"px !important;\n ")}),(function(n){return n.compact&&"\n padding-bottom: ".concat(.75*s.iI,"px;\n padding-left: ").concat(1.25*s.iI,"px;\n padding-right: ").concat(1.25*s.iI,"px;\n padding-top: ").concat(.75*s.iI,"px;\n ")}),(function(n){return n.beforeIcon&&n.compact&&"\n padding-left: ".concat(4*s.iI,"px !important;\n ")}),(function(n){return n.afterIcon&&n.compact&&"\n padding-right: ".concat(4*s.iI,"px !important;\n ")}),(function(n){return!n.inputWidth&&!n.minWidth&&"\n width: 100%;\n "}),(function(n){return n.maxHeight&&"\n max-height: ".concat(n.maxHeight,"px;\n ")}),(function(n){return n.minWidth&&"\n min-width: ".concat(n.minWidth,"px;\n ")}),(function(n){return n.inputWidth&&"\n width: ".concat(n.inputWidth,"px;\n ")}),(function(n){return n.alignCenter&&"\n text-align: center;\n "}),(function(n){return n.basic&&"\n border: none;\n padding: 0 ".concat(.25*s.iI,"px;\n ")}),(function(n){return n.basicPadding&&"\n border: none;\n padding: ".concat(.5*s.iI,"px ").concat(1*s.iI,"px !important;\n ")}),(function(n){return"undefined"!==typeof n.paddingHorizontal&&"\n padding-left: ".concat(n.paddingHorizontal,"px;\n padding-right: ").concat(n.paddingHorizontal,"px;\n ")}),(function(n){return"undefined"!==typeof n.paddingVertical&&"\n padding-bottom: ".concat(n.paddingVertical,"px;\n padding-top: ").concat(n.paddingVertical,"px;\n ")}),(function(n){return"undefined"!==typeof n.paddingRight&&"\n padding-right: ".concat(n.paddingRight,"px !important;\n ")}),(function(n){return n.basic&&!n.noBackground&&"\n background-color: ".concat((n.theme.monotone||d.Z.monotone).grey500,";\n\n &:active,\n &:focus,\n &:hover {\n background-color: ").concat((n.theme.monotone||d.Z.monotone).grey500,";\n }\n ")}),(function(n){return n.basic&&n.noBackground&&"\n background-color: none;\n\n &:active,\n &:focus,\n &:hover {\n background-color: ".concat((n.theme.monotone||d.Z.monotone).grey200,";\n }\n ")}),(function(n){return n.primary&&!n.swapBackgroundAndTextColor&&"\n border-color: ".concat((n.theme.accent||d.Z.accent).purpleLight,";\n\n &:active,\n &:focus {\n border-color: ").concat((n.theme.accent||d.Z.accent).purple," !important;\n }\n\n &:hover {\n border-color: ").concat((n.theme.chart||d.Z.chart).primary," !important;\n }\n ")}),(function(n){return n.swapBackgroundAndTextColor&&"\n background-color: transparent;\n\n &:active,\n &:focus,\n &:hover {\n background-color: transparent;\n }\n "}),(function(n){return n.earth&&n.swapBackgroundAndTextColor&&"\n color: ".concat((n.theme.brand||d.Z.brand).earth500," !important;\n\n &:active,\n &:focus,\n &:hover {\n color: ").concat((n.theme.brand||d.Z.brand).earth500," !important;\n }\n\n ::placeholder {\n color: ").concat((n.theme.brand||d.Z.brand).earth300,";\n }\n ")}),(function(n){return n.fire&&n.swapBackgroundAndTextColor&&"\n color: ".concat((n.theme.brand||d.Z.brand).fire500," !important;\n\n &:active,\n &:focus,\n &:hover {\n color: ").concat((n.theme.brand||d.Z.brand).fire500," !important;\n }\n\n ::placeholder {\n color: ").concat((n.theme.brand||d.Z.brand).fire300,";\n }\n ")}),(function(n){return n.primary&&n.swapBackgroundAndTextColor&&"\n color: ".concat((n.theme.brand||d.Z.brand).wind500," !important;\n\n &:active,\n &:focus,\n &:hover {\n color: ").concat((n.theme.brand||d.Z.brand).wind500," !important;\n }\n\n ::placeholder {\n color: ").concat((n.theme.brand||d.Z.brand).wind300,";\n }\n ")}),(function(n){return n.warning&&!n.swapBackgroundAndTextColor&&"\n background-color: ".concat((n.theme.brand||d.Z.brand).energy200," !important;\n\n &:active,\n &:focus,\n &:hover {\n background-color: ").concat((n.theme.brand||d.Z.brand).energy200," !important;\n }\n ")}),(function(n){return n.warning&&n.swapBackgroundAndTextColor&&"\n color: ".concat((n.theme.brand||d.Z.brand).energy500," !important;\n\n &:active,\n &:focus,\n &:hover {\n color: ").concat((n.theme.brand||d.Z.brand).energy500," !important;\n }\n ")}),(function(n){return n.water&&n.swapBackgroundAndTextColor&&"\n color: ".concat((n.theme.brand||d.Z.brand).water500," !important;\n\n &:active,\n &:focus,\n &:hover {\n color: ").concat((n.theme.brand||d.Z.brand).water500," !important;\n }\n ")}),(function(n){return n.earth&&n.borderTheme&&"\n &:focus,\n &:active {\n border-color: ".concat((n.theme.brand||d.Z.brand).earth300,";\n border-width: ").concat(u.mP,"px;\n }\n ")}),(function(n){return n.fire&&n.borderTheme&&"\n &:focus,\n &:active {\n border-color: ".concat((n.theme.brand||d.Z.brand).fire300,";\n border-width: ").concat(u.mP,"px;\n }\n ")}),(function(n){return n.water&&n.borderTheme&&"\n &:focus,\n &:active {\n border-color: ".concat((n.theme.brand||d.Z.brand).water300,";\n border-width: ").concat(u.mP,"px;\n }\n ")}),(function(n){return n.wind&&n.borderTheme&&"\n &:focus,\n &:active {\n border-color: ".concat((n.theme.brand||d.Z.brand).wind300,";\n border-width: ").concat(u.mP,"px;\n }\n ")}),(function(n){return n.info&&"\n background-color: ".concat((n.theme.brand||d.Z.brand).water100," !important;\n\n &:active,\n &:focus,\n &:hover {\n background-color: ").concat((n.theme.brand||d.Z.brand).water100," !important;\n }\n ")}),(function(n){return n.negative&&"\n background-color: ".concat((n.theme.accent||d.Z.accent).negativeTransparent," !important;\n\n &:active,\n &:focus,\n &:hover {\n background-color: ").concat((n.theme.accent||d.Z.accent).negativeTransparent," !important;\n }\n ")}),(function(n){return n.defaultColor&&"\n background-color: ".concat((n.theme.interactive||d.Z.interactive).defaultBackground," !important;\n border: ").concat(u.YF,"px ").concat(u.M8," ").concat((n.theme.monotone||d.Z.monotone).black,";\n\n &:active,\n &:focus,\n &:hover {\n background-color: ").concat((n.theme.interactive||d.Z.interactive).hoverBackground," !important;\n }\n ")}),(function(n){return n.width&&"\n width: ".concat(n.width,"px;\n ")}),(function(n){return n.disablePointerEvents&&"\n pointer-events: none;\n "})),Z=c.default.div.withConfig({displayName:"InputWrapper__LabelWrapperStyle",componentId:"sc-aepxnk-3"})(["margin-bottom:","px;"],.75*s.iI),w=function(n,t){var e=n.afterIcon,c=n.afterIconClick,d=n.autoGenerated,u=n.beforeIcon,l=n.compact,p=n.fitContent,m=n.fullWidth,x=n.input,w=n.invertedTheme,k=n.label,I=n.labelDescription,y=n.labelFixed,C=n.meta,B=n.name,T=n.onChange,W=n.onClick,j=n.passwordrules,F=n.placeholder,P=n.readOnly,_=n.required,A=n.setContentOnMount,E=n.showLabelRequirement,O=n.small,z=n.topPosition,H=n.type,N=n.value,R=n.visible,S=void 0===R||R,q=n.width,M=(0,o.Z)(n,h),L=!!(C&&C.touched&&C.error),D={muted:!0,size:s.iI*(l?2.5:3)},G=e&&(0,f.jsx)(v,{compact:l,right:!0,children:r.cloneElement(e,D)}),V=(0,r.useState)(N),Y=V[0],U=V[1],X=(0,r.useState)(!1),J=X[0],K=X[1],Q=(0,r.useState)(!1),$=Q[0],nn=Q[1],tn=E?E({content:Y,isFocused:J}):J||!!Y;return(0,r.useEffect)((function(){A&&!Y&&N&&U(N)}),[Y,U,A,N]),(0,f.jsxs)(b,{fitContent:p,fullWidth:m,visible:S,children:[(y||I)&&(0,f.jsxs)(Z,{children:[(0,f.jsx)("div",{children:y&&(0,f.jsxs)(i.ZP,{bold:!0,inline:!0,inverted:w,small:O,children:[y," ",_&&(0,f.jsx)(i.ZP,{inline:!0,inverted:w,muted:!w,small:!0,children:"(required)"})," ",d&&(0,f.jsx)(i.ZP,{inline:!0,inverted:w,muted:!w,small:!0,children:"(auto-generated)"})]})}),I&&(0,f.jsx)(i.ZP,{inverted:w,muted:!w,small:!0,children:I})]}),(k||0===k)&&!l&&(0,f.jsx)(a.Z,{classNames:"label",in:(k||0===k)&&tn,timeout:200,unmountOnExit:!0,children:(0,f.jsx)(g,{beforeIcon:u,children:(0,f.jsx)(i.ZP,{muted:!0,xsmall:!0,children:k})})}),u&&(0,f.jsx)(v,{compact:l,top:z,children:r.cloneElement(u,D)}),c&&(0,f.jsx)("a",{href:"#",onClick:function(n){n.preventDefault(),c()},children:G}),!c&&G,r.cloneElement(x,{afterIcon:e,beforeIcon:u,compact:l,danger:L,hasContent:!!Y,isFocused:tn,label:0===k?"0":k,name:B,onBlur:function(n){M.onBlur&&M.onBlur(n),K(!1),nn(!0)},onChange:function(n){U(n.target.value),T&&T(n)},onClick:W,onFocus:function(n){M.onFocus&&M.onFocus(n),K(!0)},passwordrules:j,placeholder:k||0===k?tn?"":k:F,readOnly:P,ref:t,type:H,value:N,width:q}),((null===C||void 0===C?void 0:C.touched)&&(null===C||void 0===C?void 0:C.error)||!J&&$&&!Y&&_)&&(0,f.jsx)(i.ZP,{danger:!0,small:!0,children:(null===C||void 0===C?void 0:C.error)||"This field is required."})]})};t.Z=r.forwardRef(w)}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8450],{59920:function(e,n,t){"use strict";var i;t.d(n,{M:function(){return i}}),function(e){e.BACKFILLS="backfills",e.BLOCK_RUNS="block_runs",e.EDIT="edit",e.MONITOR="monitor",e.PIPELINE_LOGS="pipeline_logs",e.PIPELINE_RUNS="pipeline_runs",e.RUNS="runs",e.SYNCS="syncs",e.TRIGGERS="triggers"}(i||(i={}))},2626:function(e,n,t){"use strict";t.d(n,{Z:function(){return N}});var i=t(21831),r=t(75582),o=t(82684),l=t(83455),c=t(34376),u=t(28598);var a=function(e){var n=e.size;return(0,u.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,u.jsx)("g",{clipPath:"url(#clip0_7525_68660)",children:(0,u.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.67625 7.82429C8.48671 8.13404 8.61933 8.53116 8.9436 8.69464C9.26787 8.85812 9.6606 8.72561 9.85513 8.41896C10.5416 7.33682 11.5276 6.47056 12.6997 5.92987C14.0715 5.29701 15.6173 5.14749 17.085 5.50568C18.5526 5.86388 19.8557 6.70866 20.7818 7.90233C21.7079 9.096 22.2023 10.5682 22.1845 12.0788C22.1667 13.5895 21.6377 15.0496 20.6837 16.2211C19.7298 17.3926 18.4071 18.2064 16.9314 18.5299C15.4557 18.8534 13.9139 18.6675 12.5573 18.0024C11.3984 17.4343 10.433 16.545 9.77227 15.447C9.58502 15.1358 9.19553 14.9941 8.86749 15.1499C8.53946 15.3057 8.39751 15.6995 8.5797 16.0137C9.37152 17.379 10.5525 18.4842 11.9785 19.1832C13.6018 19.9791 15.4469 20.2016 17.213 19.8145C18.979 19.4273 20.5619 18.4534 21.7035 17.0514C22.8451 15.6495 23.4781 13.9022 23.4994 12.0943C23.5208 10.2865 22.9291 8.52472 21.8208 7.09623C20.7126 5.66774 19.1532 4.65677 17.3968 4.22811C15.6403 3.79945 13.7905 3.97839 12.1488 4.73574C10.7068 5.40099 9.50004 6.47805 8.67625 7.82429ZM0.219185 12.5303C-0.0737079 12.2375 -0.0737079 11.7626 0.219185 11.4697L4.71918 6.96968C5.01208 6.67679 5.48695 6.67679 5.77985 6.96968C6.07274 7.26258 6.07274 7.73745 5.77985 8.03034L2.56017 11.25L15.7495 11.25C16.1637 11.25 16.4995 11.5858 16.4995 12C16.4995 12.4142 16.1637 12.75 15.7495 12.75L2.56017 12.75L5.77985 15.9697C6.07274 16.2626 6.07274 16.7375 5.77985 17.0303C5.48695 17.3232 5.01208 17.3232 4.71918 17.0303L0.219185 12.5303Z",fill:"url(#paint0_linear_7525_68660)"})}),(0,u.jsx)("defs",{children:(0,u.jsxs)("linearGradient",{id:"paint0_linear_7525_68660",x1:"11.7498",y1:"4",x2:"11.7498",y2:"20",gradientUnits:"userSpaceOnUse",children:[(0,u.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,u.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})},s=t(16953),d=t(61519);var p=function(e){var n=e.size;return(0,u.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,u.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.25 1C23.25 0.585786 22.9142 0.25 22.5 0.25C22.0858 0.25 21.75 0.585786 21.75 1V15.5C21.75 15.9142 22.0858 16.25 22.5 16.25C22.9142 16.25 23.25 15.9142 23.25 15.5V1ZM5 4.25C5.41421 4.25 5.75 4.58579 5.75 5V15.5C5.75 15.9142 5.41421 16.25 5 16.25C4.58579 16.25 4.25 15.9142 4.25 15.5V5C4.25 4.58579 4.58579 4.25 5 4.25ZM1.5 7.25C1.91421 7.25 2.25 7.58579 2.25 8V15.5C2.25 15.9142 1.91421 16.25 1.5 16.25C1.08579 16.25 0.75 15.9142 0.75 15.5V8C0.75 7.58579 1.08579 7.25 1.5 7.25ZM9.25 7C9.25 6.58579 8.91421 6.25 8.5 6.25C8.08579 6.25 7.75 6.58579 7.75 7V15.5C7.75 15.9142 8.08579 16.25 8.5 16.25C8.91421 16.25 9.25 15.9142 9.25 15.5V7ZM12 8.75C12.4142 8.75 12.75 9.08579 12.75 9.5V15.5C12.75 15.9142 12.4142 16.25 12 16.25C11.5858 16.25 11.25 15.9142 11.25 15.5V9.5C11.25 9.08579 11.5858 8.75 12 8.75ZM16.25 11.5C16.25 11.0858 15.9142 10.75 15.5 10.75C15.0858 10.75 14.75 11.0858 14.75 11.5V15.5C14.75 15.9142 15.0858 16.25 15.5 16.25C15.9142 16.25 16.25 15.9142 16.25 15.5V11.5ZM19 9.25C19.4142 9.25 19.75 9.58579 19.75 10V15.5C19.75 15.9142 19.4142 16.25 19 16.25C18.5858 16.25 18.25 15.9142 18.25 15.5V10C18.25 9.58579 18.5858 9.25 19 9.25Z",fill:"url(#paint0_linear_2919_69883)"}),(0,u.jsx)("defs",{children:(0,u.jsxs)("linearGradient",{id:"paint0_linear_2919_69883",x1:"1.5",y1:"11.875",x2:"22.75",y2:"11.875",gradientUnits:"userSpaceOnUse",children:[(0,u.jsx)("stop",{offset:".28125",stopColor:"#7D55EC"}),(0,u.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})},f=t(70434),h=t(34744),b=t(67971),g=t(87372),m=t(98781),v=t(29664),C=t(86673);var x=function(e){var n=e.size;return(0,u.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,u.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 17c0 1.1046-.89543 2-2 2s-2-.8954-2-2 .89543-2 2-2 2 .8954 2 2zm1.5 0c0 1.933-1.567 3.5-3.5 3.5S1.5 18.933 1.5 17s1.567-3.5 3.5-3.5 3.5 1.567 3.5 3.5zm2.25-.5c0-.4142.3358-.75.75-.75H22c.4142 0 .75.3358.75.75s-.3358.75-.75.75H11.5c-.4142 0-.75-.3358-.75-.75zM8.68946 4.29563c.16317-.38072-.0132-.82163-.39392-.9848-.38072-.16316-.82163.0132-.9848.39392L5.06418 8.94674c-.07952.18554-.3348.2052-.44179.03402L3.1361 6.60269c-.21953-.35125-.68225-.45803-1.0335-.2385-.35125.21954-.45803.68225-.2385 1.0335l1.48629 2.37807c.74892 1.19824 2.53587 1.06064 3.0925-.23814l2.24657-5.24199zM11.5 6.75c-.4142 0-.75.33579-.75.75s.3358.75.75.75H22c.4142 0 .75-.33579.75-.75s-.3358-.75-.75-.75H11.5z",fill:"url(#paint0_linear_2919_69883)"}),(0,u.jsx)("defs",{children:(0,u.jsxs)("linearGradient",{id:"paint0_linear_2919_69883",x1:"1.5",y1:"11.875",x2:"22.75",y2:"11.875",gradientUnits:"userSpaceOnUse",children:[(0,u.jsx)("stop",{offset:".28125",stopColor:"#7D55EC"}),(0,u.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})},w=t(82531),k=t(10503),j=t(9518),y=t(23831),O=t(73942),_=t(49125),Z=j.default.div.withConfig({displayName:"indexstyle__BannerStyle",componentId:"sc-1te3pmf-0"})(["border-radius:","px;padding:","px;"," "," ",""],O.n_,3*_.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||y.Z.shadow).small,";\n ")}),(function(e){return e.background&&"\n background: ".concat(e.background,";\n ")}),(function(e){return e.backgroundImage&&'\n background-image: url("'.concat(e.backgroundImage,'");\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n ')})),I=t(3055),P=t(59920),S=t(96510),M=t(90211),E=t(24141);var N=function(e){var n=e.after,t=e.afterHidden,j=e.afterWidth,y=e.before,O=e.beforeWidth,N=e.breadcrumbs,V=e.buildSidekick,H=e.children,D=e.headline,R=e.pageName,B=e.pipeline,T=e.subheader,L=e.subheaderBackground,U=e.subheaderBackgroundImage,A=e.subheaderButton,z=e.subheaderText,F=e.title,G=e.uuid,Y=(0,c.useRouter)(),W=(0,E.i)().height,K=B.uuid,q=w.ZP.pipelines.detail(K,{includes_outputs:!1},{revalidateOnFocus:!1}).data,J=null===q||void 0===q?void 0:q.pipeline,X=(0,l.Db)(w.ZP.pipelines.useCreate(),{onSuccess:function(e){return(0,S.wD)(e,{callback:function(e){var n=e.pipeline.uuid;Y.push("/pipelines/[pipeline]/edit","/pipelines/".concat(n,"/edit"))}})}}),Q=(0,r.Z)(X,1)[0],$=(0,l.Db)((function(e){return w.ZP.pipelines.useDelete(e)()}),{onSuccess:function(e){return(0,S.wD)(e,{callback:function(){Y.push("/pipelines")}})}}),ee=(0,r.Z)($,1)[0],ne=[{label:function(){return"New standard pipeline"},onClick:function(){return Q({pipeline:{name:(0,M.Y6)()}})},uuid:"PipelineDetail/Header/new_standard_pipeline"},{label:function(){return"New streaming pipeline"},onClick:function(){return Q({pipeline:{name:(0,M.Y6)(),type:m.q.STREAMING}})},uuid:"PipelineDetail/Header/new_streaming_pipeline"},{label:function(){return"Delete current pipeline"},onClick:function(){return ee(K)},openConfirmationDialogue:!0,uuid:"PipelineDetail/Header/delete_pipeline"}],te=(0,o.useMemo)((function(){return n||(V?V({height:W,heightOffset:I.Mz,pipeline:J}):null)}),[n,V,W,J]),ie=j||(te?50*_.iI:null),re=(0,o.useMemo)((function(){var e=[];return J&&(e.push.apply(e,[{label:function(){return"Pipelines"},linkProps:{href:"/pipelines"}}]),N?(e.push({label:function(){return J.uuid},linkProps:{as:"/pipelines/".concat(K,"/triggers"),href:"/pipelines/[pipeline]/triggers"}}),e.push.apply(e,(0,i.Z)(N)),e[e.length-1].bold=!0):e.push({bold:!0,label:function(){return J.name}})),e}),[N,J,K]),oe=[{Icon:k.Pf,IconSelected:v.Z,id:P.M.TRIGGERS,isSelected:function(){return P.M.TRIGGERS===R},label:function(){return"Triggers"},linkProps:{as:"/pipelines/".concat(K,"/triggers"),href:"/pipelines/[pipeline]/triggers"}},{Icon:k.pd,IconSelected:d.Z,id:P.M.RUNS,isSelected:function(){return P.M.RUNS===R},label:function(){return"Runs"},linkProps:{as:"/pipelines/".concat(K,"/runs"),href:"/pipelines/[pipeline]/runs"}},{Icon:k.yg,IconSelected:a,id:P.M.BACKFILLS,isSelected:function(){return P.M.BACKFILLS===R},label:function(){return"Backfills"},linkProps:{as:"/pipelines/".concat(K,"/backfills"),href:"/pipelines/[pipeline]/backfills"}},{Icon:k.B4,IconSelected:x,id:P.M.PIPELINE_LOGS,isSelected:function(){return P.M.PIPELINE_LOGS===R},label:function(){return"Logs"},linkProps:{as:"/pipelines/".concat(K,"/logs"),href:"/pipelines/[pipeline]/logs"}},{Icon:k.kL,IconSelected:p,id:P.M.MONITOR,isSelected:function(){return P.M.MONITOR===R},label:function(){return"Monitor"},linkProps:{as:"/pipelines/".concat(K,"/monitors"),href:"/pipelines/[pipeline]/monitors"}}];return m.q.INTEGRATION===(null===J||void 0===J?void 0:J.type)&&oe.unshift({Icon:k.Re,IconSelected:s.Z,id:P.M.SYNCS,isSelected:function(){return P.M.SYNCS===R},label:function(){return"Syncs"},linkProps:{as:"/pipelines/".concat(K,"/syncs"),href:"/pipelines/[pipeline]/syncs"}}),oe.unshift({Icon:null,IconSelected:null,id:P.M.EDIT,label:function(){return"Edit pipeline"},linkProps:{as:"/pipelines/".concat(K,"/edit"),href:"/pipelines/[pipeline]/edit"}}),(0,u.jsxs)(f.Z,{after:te,afterHidden:t,afterWidth:ie,before:y,beforeWidth:O,breadcrumbs:re,headerMenuItems:ne,navigationItems:oe,subheaderChildren:"undefined"!==typeof T&&T,title:J?F?F(J):J.name:null,uuid:G,children:[(A||z)&&(0,u.jsx)(C.Z,{mb:_.Mq,mt:_.cd,mx:_.cd,children:(0,u.jsx)(Z,{background:L,backgroundImage:U,children:(0,u.jsxs)(b.Z,{alignItems:"center",children:[A,z&&(0,u.jsx)(C.Z,{ml:3}),z]})})}),D&&(0,u.jsx)(C.Z,{p:_.cd,children:(0,u.jsxs)(C.Z,{mt:_.cd,px:_.cd,children:[(0,u.jsx)(g.Z,{level:5,children:D}),(0,u.jsx)(h.Z,{light:!0,mt:_.cd,short:!0})]})}),H]})}},19395:function(e,n,t){"use strict";t.d(n,{IJ:function(){return s},Vx:function(){return p},eI:function(){return d},gU:function(){return h},tL:function(){return f},vJ:function(){return b}});var i,r,o=t(82394),l=t(92083),c=t.n(l);function u(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function a(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?u(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function s(e){return null===e||void 0===e?void 0:e.reduce((function(e,n){var t=n.block_uuid,i=n.completed_at,r=n.started_at,l=n.status,u=null;r&&i&&(u=c()(i).valueOf()-c()(r).valueOf());return a(a({},e),{},(0,o.Z)({},t,{runtime:u,status:l}))}),{})}function d(e){if(!e)return null;var n=new Date(c()(e).valueOf()),t=Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds());return new Date(t)}function p(e){return d(e).toISOString().split(".")[0]}!function(e){e.DAY="day",e.HOUR="hour",e.MINUTE="minute",e.SECOND="second"}(r||(r={}));var f=(i={},(0,o.Z)(i,r.DAY,86400),(0,o.Z)(i,r.HOUR,3600),(0,o.Z)(i,r.MINUTE,60),(0,o.Z)(i,r.SECOND,1),i);function h(e){var n=r.SECOND,t=e;return e%86400===0?(t/=86400,n=r.DAY):e%3600===0?(t/=3600,n=r.HOUR):e%60===0&&(t/=60,n=r.MINUTE),{time:t,unit:n}}function b(e,n){return e*f[n]}},45838:function(e,n,t){"use strict";t.d(n,{GZ:function(){return d},Vq:function(){return a},cE:function(){return p},cl:function(){return c},kA:function(){return u}});var i=t(9518),r=t(23831),o=t(37391),l=t(49125),c=i.default.div.withConfig({displayName:"indexstyle__TableContainerStyle",componentId:"sc-1wzfyed-0"})(["position:relative;overflow:auto;"," "," ",""],o.w5,(function(e){return e.minHeight&&"\n min-height: ".concat(e.minHeight,"px;\n ")}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),u=i.default.table.withConfig({displayName:"indexstyle__TableStyle",componentId:"sc-1wzfyed-1"})(["contain:size;width:100%;",""],(function(e){return(e.columnBorders||e.borderCollapseSeparate)&&"\n border-collapse: separate;\n "})),a=i.default.tr.withConfig({displayName:"indexstyle__TableRowStyle",componentId:"sc-1wzfyed-2"})([""," ",""],(function(e){return e.highlightOnHover&&"\n &:hover {\n background: ".concat((e.theme.interactive||r.Z.interactive).rowHoverBackground,";\n }\n ")}),(function(e){return!e.noHover&&"\n &:hover {\n background: ".concat((e.theme.interactive||r.Z.interactive).rowHoverBackground,";\n cursor: pointer;\n }\n ")})),s=(0,i.css)(["text-overflow:ellipsis;white-space:nowrap;"," "," "," "," "," ",""],(function(e){return!e.alignTop&&"\n vertical-align: middle;\n "}),(function(e){return e.alignTop&&"\n vertical-align: top;\n "}),(function(e){return!e.noBorder&&"\n border-bottom: 1px solid ".concat((e.theme.borders||r.Z.borders).light,";\n ")}),(function(e){return e.compact&&"\n padding: ".concat(l.iI/2,"px ").concat(l.iI,"px;\n ")}),(function(e){return!e.compact&&"\n padding: ".concat(l.iI,"px ").concat(2*l.iI,"px;\n ")}),(function(e){return e.maxWidth&&"\n max-width: ".concat(e.maxWidth,";\n ")})),d=i.default.th.withConfig({displayName:"indexstyle__TableHeadStyle",componentId:"sc-1wzfyed-3"})([""," "," "," ",""],s,(function(e){return e.columnBorders&&"\n border: 1px solid ".concat((e.theme.borders||r.Z.borders).light,";\n border-right: none;\n ")}),(function(e){return e.columnBorders&&e.last&&"\n border-right: 1px solid ".concat((e.theme.borders||r.Z.borders).light,";\n ")}),(function(e){return e.sticky&&"\n background-color: ".concat((e.theme||r.Z).background.panel,";\n border-bottom: 1px solid ").concat((e.theme.borders||r.Z.borders).medium,";\n z-index: 2;\n position: sticky;\n top: 0;\n\n &:first-child {\n left: 0;\n z-index: 2;\n }\n ")})),p=i.default.td.withConfig({displayName:"indexstyle__TableDataStyle",componentId:"sc-1wzfyed-4"})([""," "," "," "," "," "," ",""],s,(function(e){return e.rowVerticalPadding&&"\n padding-top: ".concat(e.rowVerticalPadding,"px;\n padding-bottom: ").concat(e.rowVerticalPadding,"px;\n ")}),(function(e){return e.columnBorders&&"\n border-left: 1px solid ".concat((e.theme.borders||r.Z.borders).light,";\n ")}),(function(e){return e.columnBorders&&e.last&&"\n border-right: 1px solid ".concat((e.theme.borders||r.Z.borders).light,";\n ")}),(function(e){return e.stickyFirstColumn&&"\n background-color: ".concat((e.theme||r.Z).background.panel,";\n z-index: 1;\n position: sticky;\n left: 0;\n ")}),(function(e){return e.selected&&"\n background-color: ".concat((e.theme.interactive||r.Z.interactive).activeBorder,";\n ")}),(function(e){return e.wrapColumns&&"\n white-space: break-spaces;\n "}))},87815:function(e,n,t){"use strict";var i=t(82394),r=t(12691),o=t.n(r),l=t(82684),c=t(67971),u=t(10919),a=t(86673),s=t(19711),d=t(46261),p=t(45838),f=t(28598);function h(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function b(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?h(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):h(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.alignTop,t=e.borderCollapseSeparate,i=e.buildLinkProps,r=e.columnBorders,h=e.columnFlex,g=e.columnMaxWidth,m=e.columns,v=void 0===m?[]:m,C=e.compact,x=e.highlightRowOnHover,w=e.isSelectedRow,k=e.noBorder,j=e.noHeader,y=e.onClickRow,O=e.rows,_=e.rowVerticalPadding,Z=e.stickyFirstColumn,I=e.stickyHeader,P=e.uuid,S=e.wrapColumns,M=(0,l.useMemo)((function(){return h.reduce((function(e,n){return e+(n||0)}),0)}),h),E=(0,l.useCallback)((function(e){if(h[e]){var n=Math.round(h[e]/M*100);return"".concat(n,"%")}return null}),[]),N=(0,l.useMemo)((function(){return null===O||void 0===O?void 0:O.map((function(e,t){var c=null===i||void 0===i?void 0:i(t),a=e.map((function(i,o){return(0,f.jsx)(p.cE,{alignTop:n,columnBorders:r,compact:C,last:o===e.length-1,maxWidth:null===g||void 0===g?void 0:g(o),noBorder:k,rowVerticalPadding:_,selected:null===w||void 0===w?void 0:w(t),stickyFirstColumn:Z&&0===o,width:E(o),wrapColumns:S,children:i},"".concat(P,"-row-").concat(t,"-cell-").concat(o))})),s=(0,f.jsx)(p.Vq,{highlightOnHover:x,noHover:!(c||y),onClick:y?function(){return y(t)}:null,children:a},"".concat(P,"-row-").concat(t));return c?(0,l.createElement)(o(),b(b({},c),{},{key:"".concat(P,"-row-link-").concat(t),passHref:!0}),(0,f.jsx)(u.Z,{fullWidth:!0,noHoverUnderline:!0,noOutline:!0,style:{display:"table-row-group"},verticalAlignContent:!0,children:s})):s}))}),[n,i,E,g,v,C,w,k,y,O]);return(0,f.jsxs)(p.kA,{borderCollapseSeparate:t,columnBorders:r,children:[(null===v||void 0===v?void 0:v.length)>=1&&!j&&(0,f.jsx)(p.Vq,{noHover:!0,children:v.map((function(e,n){return(0,f.jsx)(p.GZ,{columnBorders:r,compact:C,last:n===v.length-1,noBorder:k,sticky:I,children:(0,f.jsxs)(c.Z,{alignItems:"center",children:[(0,f.jsx)(s.ZP,{bold:!0,leftAligned:!0,monospace:!0,muted:!0,children:e.label?e.label():e.uuid}),e.tooltipMessage&&(0,f.jsx)(a.Z,{ml:"4px",children:(0,f.jsx)(d.Z,{appearBefore:!0,label:(0,f.jsx)(s.ZP,{leftAligned:!0,children:e.tooltipMessage}),lightBackground:!0,primary:!0})})]})},"".concat(P,"-col-").concat(e.uuid,"-").concat(n))}))}),N]})}},43526:function(e,n,t){"use strict";t.d(n,{IB:function(){return u},VV:function(){return o},_7:function(){return l},rn:function(){return c}});var i,r=t(66050),o="datetime",l="code",c=r.V;!function(e){e.SECOND="second",e.MINUTE="minute",e.HOUR="hour",e.DAY="day",e.WEEK="week",e.MONTH="month",e.YEAR="year",e.CUSTOM="custom"}(i||(i={}));var u=[i.SECOND,i.MINUTE,i.HOUR,i.DAY,i.WEEK,i.MONTH,i.YEAR,i.CUSTOM]},66050:function(e,n,t){"use strict";var i;t.d(n,{V:function(){return i}}),function(e){e.CANCELLED="cancelled",e.COMPLETED="completed",e.FAILED="failed",e.INITIAL="initial",e.RUNNING="running"}(i||(i={}))},16953:function(e,n,t){"use strict";var i=t(28598);n.Z=function(e){var n=e.size;return(0,i.jsxs)("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.5 8.5H15.5V3.5H20.5V8.5ZM14 9V3C14 2.44772 14.4477 2 15 2H21C21.5523 2 22 2.44772 22 3V9C22 9.55229 21.5523 10 21 10H15C14.4477 10 14 9.55229 14 9ZM2 5V12.5V14V21.5C2 22.0523 2.44772 22.5 3 22.5H10.5H12H19.5C20.0523 22.5 20.5 22.0523 20.5 21.5V13.5C20.5 12.9477 20.0523 12.5 19.5 12.5H12V5C12 4.44772 11.5523 4 11 4H3C2.44772 4 2 4.44772 2 5ZM10.5 14V21H3.5V14H10.5ZM19 14V21H12V14H19ZM10.5 5.5V12.5H3.5V5.5H10.5Z",fill:"url(#paint0_linear_2842_55048)"}),(0,i.jsx)("defs",{children:(0,i.jsxs)("linearGradient",{id:"paint0_linear_2842_55048",x1:"2",y1:"12.25",x2:"22",y2:"12.25",gradientUnits:"userSpaceOnUse",children:[(0,i.jsx)("stop",{offset:"0.28125",stopColor:"#7D55EC"}),(0,i.jsx)("stop",{offset:"1",stopColor:"#2AB2FE"})]})})]})}},30206:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return N}});var i=t(77837),r=t(75582),o=t(38860),l=t.n(o),c=t(82684),u=t(83455),a=t(34376),s=t(12691),d=t.n(s),p=t(43526),f=t(60328),h=t(10919),b=t(87815),g=t(19711),m=t(10503),v=t(49125),C=t(19395),x=t(28598);var w=function(e){var n=e.models,t=e.onClickRow,i=e.pipeline,r=e.selectedRow,o=null===i||void 0===i?void 0:i.uuid;return(0,x.jsx)(b.Z,{columnFlex:[null,1,null,null,null,1,1,null],columns:[{uuid:"Status"},{uuid:"Name"},{uuid:"Type"},{uuid:"Runs"},{uuid:"Backfill"},{uuid:"Started at"},{uuid:"Completed at"},{label:function(){return""},uuid:"edit"}],isSelectedRow:function(e){return n[e].id===(null===r||void 0===r?void 0:r.id)},onClickRow:function(e){return t(n[e])},rows:n.map((function(e){var n=e.block_uuid,t=e.completed_at,i=e.end_datetime,r=e.id,l=e.name,c=e.start_datetime,u=e.started_at,a=e.status;return[(0,x.jsx)(g.ZP,{default:!0,monospace:!0,children:a||"inactive"},"status"),(0,x.jsx)(d(),{as:"/pipelines/".concat(o,"/backfills/").concat(r),href:"/pipelines/[pipeline]/backfills/[...slug]",passHref:!0,children:(0,x.jsx)(h.Z,{bold:!0,sameColorAsText:!0,children:l})},"name"),(0,x.jsx)(g.ZP,{default:!0,monospace:!0,children:n?p._7:p.VV},"type"),(0,x.jsx)(g.ZP,{default:!0,monospace:!0,children:0},"runs"),(0,x.jsxs)(g.ZP,{default:!0,monospace:!0,children:[c&&i&&(0,x.jsxs)(x.Fragment,{children:[(0,C.Vx)(c),"\xa0-\xa0",(0,C.Vx)(i)]}),!(c&&i)&&"-"]},"backfill"),(0,x.jsx)(g.ZP,{default:!0,monospace:!0,children:u?(0,C.Vx)(u):"-"},"started_at"),(0,x.jsx)(g.ZP,{default:!0,monospace:!0,children:t?(0,C.Vx)(t):"-"},"completed_at"),(0,x.jsx)(f.Z,{default:!0,iconOnly:!0,noBackground:!0,linkProps:{as:"/pipelines/".concat(o,"/backfills/").concat(r,"/edit"),href:"/pipelines/[pipeline]/backfills/[...slug]"},title:"Edit",children:(0,x.jsx)(m.I8,{default:!0,size:2*v.iI})})]})),uuid:"pipeline-runs"})},k=t(11135),j=t(2626),y=t(41788),O=t(86673),_=t(82531),Z=t(59920),I=t(33766),P=t(96510),S=t(59e3),M=t(90211);function E(e){var n=e.pipeline,t=(0,a.useRouter)(),i=n.uuid,o=_.ZP.backfills.list({_limit:20,_offset:0,pipeline_uuid:i},{refreshInterval:6e4}),l=o.data,s=(o.mutate,(0,c.useMemo)((function(){return(null===l||void 0===l?void 0:l.backfills)||[]}),[l])),d=(0,S.iV)(),p=(0,c.useState)(null),f=p[0],h=p[1];(0,c.useEffect)((function(){null!==d&&void 0!==d&&d.backfill_id?h(null===s||void 0===s?void 0:s.find((function(e){return e.id===Number(d.backfill_id)}))):f&&h(null)}),[s,d,f]);var b=(0,c.useMemo)((function(){var e="/pipelines/".concat(i,"/backfills"),n=[{label:function(){return"Backfills"},linkProps:f?{as:e,href:"/pipelines/[pipeline]/backfills"}:null}];return f&&n.push({label:function(){return f.name}}),n}),[f]),C=(0,u.Db)(_.ZP.backfills.pipelines.useCreate(i),{onSuccess:function(e){return(0,P.wD)(e,{callback:function(e){var n=e.backfill.id;t.push("/pipelines/[pipeline]/backfills/[...slug]","/pipelines/".concat(i,"/backfills/").concat(n,"/edit"))},onErrorCallback:function(e){var n=e.error,t=(n.errors,n.message);alert(t)}})}}),y=(0,r.Z)(C,2),E=y[0],N=y[1].isLoading;return(0,x.jsxs)(j.Z,{breadcrumbs:b,pageName:Z.M.BACKFILLS,pipeline:n,title:function(e){var n=e.name;return"".concat(n," backfills")},uuid:"".concat(Z.M.BACKFILLS,"_").concat(i),children:[(0,x.jsx)(O.Z,{p:v.cd,children:(0,x.jsx)(k.ZP,{beforeElement:(0,x.jsx)(m.mm,{size:2.5*v.iI}),blackBorder:!0,inline:!0,loading:N,noHoverUnderline:!0,onClick:function(){return E({backfill:{name:(0,M.Y6)()}})},sameColorAsText:!0,uuid:"PipelineDetailPage/Backfills/add_new_backfill",children:"Create new backfill"})}),s&&0===s.length&&(0,x.jsx)(O.Z,{p:v.cd,children:(0,x.jsx)(g.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:"No backfills"})}),(null===s||void 0===s?void 0:s.length)>=1&&(0,x.jsx)(w,{models:s,onClickRow:function(e){var n=e.id;return(0,I.u)({backfill_id:n})},pipeline:n,selectedRow:f})]})}E.getInitialProps=function(){var e=(0,i.Z)(l().mark((function e(n){var t;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.query.pipeline,e.abrupt("return",{pipeline:{uuid:t}});case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();var N=(0,y.Z)(E)},33766:function(e,n,t){"use strict";t.d(n,{u:function(){return s}});var i=t(75582),r=t(82394),o=t(34376),l=t.n(o),c=t(59e3);function u(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function a(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?u(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function s(e){var n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.replaceParams,o=t.pushHistory,u=r?{}:(0,c.iV)();n=window.location.pathname;var s=o?l().push:l().replace,d=a(a({},u),e);Object.entries(e).forEach((function(e){var n=(0,i.Z)(e,2),t=n[0],r=n[1];"undefined"!==typeof r&&null!==r||delete d[t]}));var p=(0,c.uM)(d);p.length>=1&&(p="?".concat(p));var f="".concat(n.split("?")[0]).concat(p);return s(l().router.pathname,f,{shallow:!0})}},37459:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/backfills",function(){return t(30206)}])}},function(e){e.O(0,[3850,2083,9767,6579,434,1830,9774,2888,179],(function(){return n=37459,e(e.s=n);var n}));var n=e.O();_N_E=n}]);