@ytsaurus/ui 1.90.0 → 1.90.1

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.
@@ -0,0 +1,2 @@
1
+ "use strict";(self.webpackChunk_ytsaurus_ui=self.webpackChunk_ytsaurus_ui||[]).push([[5684],{97536:(e,t,n)=>{n.d(t,{A:()=>c});var a=n(40319),r=n(18801),i=(n(77810),n(2211)),s=n(46282),o=n(64922),l=["view","size"];function c(e){var t=e.view,n=void 0===t?"flat-secondary":t,c=e.size,u=void 0===c?"m":c,d=(0,r.A)(e,l);return(0,o.jsx)(i.A,(0,a.A)((0,a.A)({view:n,size:u},d),{},{children:(0,o.jsx)(s.A,{awesome:"at"})}))}},14880:(e,t,n)=>{n.d(t,{A:()=>u});var a=n(40319),r=n(18801),i=(n(77810),n(15647)),s=n(97536),o=n(57614),l=n(64922),c=["title","getPathProps","path","exactPath","attribute","attributes","openAttributesModal","withTooltip","tooltipProps"];const u=(0,i.Ng)(null,{openAttributesModal:o.V6})((function(e){var t=e.title,n=e.getPathProps,i=void 0===n?function(){return{}}:n,o=e.path,u=e.exactPath,d=e.attribute,m=e.attributes,p=e.openAttributesModal,h=e.withTooltip,f=void 0===h||h,v=e.tooltipProps,g=void 0===v?{placement:"bottom-end",content:"Show attributes"}:v,j=(0,r.A)(e,c);return(0,l.jsx)(s.A,(0,a.A)((0,a.A)({},j),{},{tooltipProps:g,withTooltip:f,onClick:function(){var e=(0,a.A)({path:o,exactPath:u},i());p((0,a.A)((0,a.A)({title:t},e),{},{attribute:d,attributes:m}))}}))}))},42324:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(77810),r=n(76426),i=n(46282),s=n(64922);function o(e){var t=e.className,n=e.url,o=e.title,l=e.theme,c=e.children,u=e.hideIcon,d=e.face,m=e.wrapContent;if(!n)return null;var p=u?null:(0,s.jsx)(i.A,{awesome:"chart-bar",face:d}),h=c?(0,s.jsxs)(a.Fragment,{children:[p,c]}):p;return(0,s.jsx)(r.A,{className:t,target:"_blank",theme:l,url:n,title:null!=o?o:"View",children:m?m(h):h})}const l=a.memo(o)},70436:(e,t,n)=>{n.d(t,{O:()=>v,A:()=>g});var a=n(40319),r=n(9736),i=n(29121),s=n(12937),o=n(10785),l=n(26718),c=n(77810),u=n(76872),d=n(69835),m=n(46282),p=n(64922),h=(0,u.A)("collapsible-section"),f=(0,u.A)("elements-heading"),v=function(e){(0,o.A)(n,e);var t=(0,l.A)(n);function n(){var e;(0,i.A)(this,n);for(var a=arguments.length,r=new Array(a),s=0;s<a;s++)r[s]=arguments[s];return(e=t.call.apply(t,[this].concat(r))).toggle=function(){(0,e.props.onToggle)(!e.props.collapsed)},e}return(0,s.A)(n,[{key:"render",value:function(){var e=this.props,t=e.name,n=e.children,a=e.size,r=e.overview,i=e.className,s=e.headingClassName,o=e.collapsed,l=e.marginDirection,c=e.togglerRightPadding;return(0,p.jsx)(d.A,{children:(0,p.jsxs)("div",{className:h({margin:l},i),children:[(0,p.jsxs)("div",{className:f({size:a,overview:"yes"},s),children:[(0,p.jsxs)("span",{className:f("heading",{clickable:"yes"},h("title")),onClick:this.toggle,children:[t,(0,p.jsx)("a",{children:(0,p.jsx)(m.A,{className:h("toggler",{"right-padding":c}),awesome:o?"angle-down":"angle-up"})})]}),r]}),!o&&(0,p.jsx)(d.A,{children:n})]})})}}]),n}(c.Component);function g(e){var t=e.onToggle,n=c.useState(e.collapsed),i=(0,r.A)(n,2),s=i[0],o=i[1],l=c.useCallback((function(e){o(e),t&&t(e)}),[o,t]);return(0,p.jsx)(v,(0,a.A)((0,a.A)({},e),{},{onToggle:l,collapsed:s}))}v.defaultProps={size:"m",collapsed:!1,marginDirection:"top"}},49133:(e,t,n)=>{n.d(t,{A:()=>f});var a=n(40319),r=n(29121),i=n(12937),s=n(10785),o=n(26718),l=n(77810),c=n(76872),u=n(17036),d=n(92736),m=(n(71801),n(64922)),p=function(e){(0,s.A)(n,e);var t=(0,o.A)(n);function n(e){var a;return(0,r.A)(this,n),(a=t.call(this,e)).state={},a}return(0,i.A)(n,[{key:"renderRow",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,a=this.props,r=a.css,i=a.itemHeight,s=a.templates,o=a.itemMods,l=a.selectedIndex,c=a.computeKey,d=a.cssHover,p=this.state,h=p.columnSet,f=p.columnItems,v=l===t,g="function"==typeof c?c(e):n;return(0,m.jsx)(u.A,{columnSet:h,columnItems:f,item:e,itemHeight:i,css:r,templates:s,selected:v,index:t,itemMods:o,cssHover:d},g)}},{key:"render",value:function(){var e=(0,c.A)(d.R9)("footer"),t=this.props.footer;return(0,m.jsx)("tfoot",{className:e,children:this.renderRow(t,0)})}}],[{key:"getDerivedStateFromProps",value:function(e){var t=e.columns,n=(0,d.PM)(t);return{columnItems:n.items,columnSet:n.set}}}]),n}(l.Component);p.defaultProps={templates:{},cssHover:!1};var h=n(53332);const f=function(e){var t;return t=function(t){(0,s.A)(u,t);var n=(0,o.A)(u);function u(){return(0,r.A)(this,u),n.apply(this,arguments)}return(0,i.A)(u,[{key:"renderStickyFooter",value:function(){var e=(0,c.A)("elements-table-wrapper")({sticky:"bottom"}),t=this.props.footer;return(0,m.jsx)("div",{className:e,children:(0,m.jsx)("table",{className:(0,d.xV)(this.props),children:(0,m.jsx)(p,(0,a.A)((0,a.A)({},this.props),{},{footer:t}))})})}},{key:"render",value:function(){return(0,m.jsxs)(l.Fragment,{children:[(0,m.jsx)(e,(0,a.A)({},this.props)),this.props.footer&&this.renderStickyFooter()]})}}]),u}(l.Component),t.displayName="WithStickyFooter(".concat((0,h.Mn)(e),")"),t.defaultProps={size:"m"},t}},41652:(e,t,n)=>{n.d(t,{A:()=>x});var a=n(40319),r=n(29121),i=n(12937),s=n(10785),o=n(26718),l=n(77810),c=n(15647),u=n(5992),d=n(76872),m=n(89067),p=n(33951),h=n(53332),f=n(92736),v=n(26264),g=(n(71801),n(64922)),j={toggleColumnSortOrder:p.z};const x=(0,u.Zz)((0,c.Ng)((function(e){return{sortState:e.tables}}),j),(function(e){var t;return t=function(t){(0,s.A)(c,t);var n=(0,o.A)(c);function c(){return(0,r.A)(this,c),n.apply(this,arguments)}return(0,i.A)(c,[{key:"renderStickyHead",value:function(){var e=this.props.top,t=(0,d.A)("elements-table-wrapper")({sticky:"top"});return(0,g.jsx)("div",{className:t,style:{top:e},children:(0,g.jsx)("table",{className:(0,f.xV)(this.props),children:(0,g.jsx)(m.A,(0,a.A)({},this.props))})})}},{key:"render",value:function(){return(0,g.jsxs)(l.Fragment,{children:[this.renderStickyHead(),(0,g.jsx)(e,(0,a.A)({},this.props))]})}}]),c}(l.Component),t.displayName="WithStickyHead(".concat((0,h.Mn)(e),")"),t.defaultProps={templates:{},size:"m",theme:"bordered",padded:!1,striped:!0,top:v.uF},t}))},97931:(e,t,n)=>{n.d(t,{A:()=>o}),n(77810);var a=n(76872),r=n(46282),i=n(64922),s=(0,a.A)("error-message");const o=function(e){var t=e.message,n=e.className;return(0,i.jsxs)("div",{className:s(null,n),children:[(0,i.jsx)(r.A,{awesome:"exclamation-circle"}),(0,i.jsx)("span",{className:s("message-text"),children:t})]})}},78466:(e,t,n)=>{n.d(t,{L:()=>u}),n(77810);var a=n(92423),r=n(72679),i=n(39702),s=n(40319),o=n(64922);const l=function(e){return(0,o.jsx)("svg",(0,s.A)((0,s.A)({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),{},{children:(0,o.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.47 10.97a.75.75 0 1 0 1.06 1.06l3.5-3.5a.75.75 0 0 0 0-1.06l-3.5-3.5a.75.75 0 0 0-1.06 1.06L6.44 8zm5 0a.75.75 0 1 0 1.06 1.06l3.5-3.5a.75.75 0 0 0 0-1.06l-3.5-3.5a.75.75 0 0 0-1.06 1.06L11.44 8z",clipRule:"evenodd"})}))};var c=(0,n(76872).A)("yt-expanded-button"),u=function(e){var t=e.className,n=e.expanded,s=e.inline,u=e.toggleExpanded,d=e.all,m=e.showText,p=e.qa,h=d?"Collapse All":"Collapse",f=d?"Expand All":"Expand";return(0,o.jsxs)(a.$,{className:c({inline:s},t),view:"flat-secondary",title:n?h:f,onClick:u,qa:p,children:[m&&(n?h:f)+" ",(0,o.jsx)(r.I,{className:c("expand",{expanded:n}),data:d?l:i.A,size:16})]})}},63588:(e,t,n)=>{n.d(t,{A:()=>h});var a=n(29121),r=n(12937),i=n(10785),s=n(26718),o=n(77810),l=n(78894),c=n(8208),u=n(73822),d=n(48971),m=n(64922),p=new l.I,h=function(e){(0,i.A)(n,e);var t=(0,s.A)(n);function n(){return(0,a.A)(this,n),t.apply(this,arguments)}return(0,r.A)(n,[{key:"componentDidUpdate",value:function(){var e=this.props,t=e.error,n=e.loaded,a=e.errorData;t&&n&&p.add({theme:"danger",name:"network",autoHiding:5e5,title:"Oops! something went wrong.",content:a?a.message:u.A.format.NO_VALUE,actions:[{label:" view",onClick:function(){return(0,d.eW)(a)}}]})}},{key:"render",value:function(){var e=this.props,t=e.alwaysShowError,n=void 0!==t&&t,a=e.error,r=e.errorData,i=e.loaded,s=e.children;return!a||!n&&i?s:(0,m.jsx)(c.z,{error:r})}}]),n}(o.Component)},38226:(e,t,n)=>{n.d(t,{A:()=>j});var a,r=n(29121),i=n(12937),s=n(10785),o=n(26718),l=n(68175),c=n(77810),u=n(76872),d=n(64772),m=n(46282),p=n(34380),h=n(44458),f=n(64922),v=(0,u.A)("sort-icon"),g=(a={},(0,l.A)(a,"","sort"),(0,l.A)(a,"asc","sort-up"),(0,l.A)(a,"desc","sort-down"),(0,l.A)(a,"asc-undefined","arrow-to-bottom"),(0,l.A)(a,"desc-undefined","arrow-from-bottom"),(0,l.A)(a,"undefined-asc","arrow-from-top"),(0,l.A)(a,"undefined-desc","arrow-to-top"),a),j=function(e){(0,s.A)(n,e);var t=(0,o.A)(n);function n(){var e;(0,r.A)(this,n);for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return(e=t.call.apply(t,[this].concat(i))).onClick=function(){var t=e.props,n=t.order,a=t.onChange,r=t.allowUnordered,i=t.withUndefined;a&&a((0,h.$N)(n,r,i))},e}return(0,i.A)(n,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.label,a=e.order,r=e.hidden,i=g[a||""];return(0,f.jsxs)("span",{className:v({hidden:r},t),onClick:this.onClick,children:[n&&(0,f.jsx)("span",{className:v("label"),children:n}),(0,f.jsx)(p.m,{className:v("icon"),content:a?d.A.ReadableField(a):"Unordered",children:(0,f.jsx)(m.A,{awesome:i,face:"solid"})})]})}}]),n}(c.Component)},33026:(e,t,n)=>{n.d(t,{Ye:()=>q,DC:()=>Y,Dz:()=>O});var a=n(40319),r=n(13322),i=n(9736),s=n(77810),o=n(15647),l=n(76872),c=n(46282),u=n(64772),d=n(69835),m=n(11394),p=n(78466),h=n(11843),f=n(34380),v=n(35074),g=n(60680),j=n(84162),x=n(30008),b=n(64922),A=(0,l.A)("elements-toolbar"),y=(0,l.A)("yt-statistics-table");function _(e){var t=s.useCallback((function(){return e.onTreeStateChange("collapsed")}),[e.onTreeStateChange]),n=s.useCallback((function(){return e.onTreeStateChange("expanded")}),[e.onTreeStateChange]),a=(0,o.wA)(),r=(0,s.useCallback)((function(t){return a(e.onFilterChange(t))}),[a]),i="expanded"===e.treeState||"mixed"===e.treeState;return(0,b.jsx)("div",{className:A(null,y("toolbar")),children:(0,b.jsxs)("div",{className:A("container"),children:[(0,b.jsx)("div",{className:A("component",y("filter")),children:(0,b.jsx)(j.A,{size:"m",debounce:500,value:"",onChange:r})}),(0,b.jsx)("div",{className:A("component",y("expand-collapse")),children:(0,b.jsx)("span",{className:y("expand-metrics"),children:(0,b.jsx)(p.L,{expanded:i,toggleExpanded:i?t:n})})}),e.helpUrl&&(0,b.jsx)("div",{className:A("component",y("help")),children:(0,b.jsx)(x.A,{url:e.helpUrl})})]})})}var w=n(70353);function N(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.measureText(t).width;return Math.max(1,Math.ceil(n))}var C=n(74360),k=n(39760),S=n.n(k),I=n(30002),D=n.n(I),T=n(73822),E="<Root>";function z(e,t){return{name:t,prefix:e,path:e+"/"+t}}function L(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:E,a=t||{children:{},leaves:{}};return S()(e,(function(e,t){if("object"===(0,C.A)(D()(e)[0])){var r=z(n,t);a.children[r.path]=r,a=L(e,a,r.path)}else{var i=function(e,t,n){var a=z(e,t);return a.value=n,a}(n,t,e);a.leaves[i.path]=i}})),a}var M,F=function(e){return t=L(e),n=T.A.treeList.prepareTree(t.children,(function(e){return e.prefix})),(n=T.A.treeList.attachTreeLeaves(n,t.leaves,(function(e){return e.prefix})))[E];var t,n},B=n(68175),R=(M={},(0,B.A)(M,"ms",(function(e,t){return u.A.TimeDuration(Math.round(e),(0,a.A)({format:"milliseconds"},t))})),(0,B.A)(M,"bytes",(function(e,t){return P(e,t)})),(0,B.A)(M,"bytes * sec",(function(e,t){return P(e,t," * sec")})),(0,B.A)(M,"ms * bytes",(function(e,t){return P(e,t," * ms")})),(0,B.A)(M,"Mb*sec",(function(e,t){return P(1024*e*1024,t," * sec")})),M);function P(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return isNaN(e)?u.A.NO_VALUE:u.A.Bytes(Math.round(e),t)+n}function O(e,t,n){var a,r=null!==(a=R[t])&&void 0!==a?a:u.A.Number;return null==r?void 0:r(e,n)}var U=(0,l.A)("yt-statistics-table"),V=40;function W(e){var t=e.item,n=e.unit,a=t.attributes.value;if(a&&a.count&&a.sum){var r=a.sum/a.count;return r<1?O(r,n,{significantDigits:6}):O(r,n)}return u.A.NO_VALUE}function K(e){var t,n,a=e.item,r=e.aggregation,i=e.unit;return a.isLeafNode&&Boolean(a.attributes.value)?"avg"===r?(0,b.jsx)(W,{item:a,unit:i}):"count"===r?u.A.Number(null===(t=a.attributes)||void 0===t||null===(t=t.value)||void 0===t?void 0:t[r]):O(null===(n=a.attributes)||void 0===n||null===(n=n.value)||void 0===n?void 0:n[r],i):u.A.NO_VALUE}function q(e){var t=e.title,n=e.info,a=!(null!=n&&n.description||null!=n&&n.unit);return(0,b.jsxs)(f.m,{content:a?null:(0,b.jsx)(v.Ay,{items:[{key:"Description",value:n.description,visible:Boolean(n.description),className:U("description")},{key:"Unit",value:n.unit,visible:Boolean(n.unit)}]}),children:[t," ",!a&&(0,b.jsx)(g.L1,{children:(0,b.jsx)(c.A,{awesome:"question-circle"})})]})}function H(e){var t=e.item,n=e.itemState,a=e.toggleItemState,r=e.minWidth,i=void 0===r?void 0:r,o=e.renderValue,l=e.info,u=s.useMemo((function(){return{minWidth:i,paddingLeft:((null==t?void 0:t.level)||0)*V}}),[t.level,i]),d=s.useCallback((function(){n.empty||a()}),[n,a]);return t.isLeafNode?(0,b.jsxs)("span",{className:U("metric"),style:u,children:[(0,b.jsx)(c.A,{awesome:"chart-line",className:U("metric-icon")}),(0,b.jsx)(q,{title:o(t),info:l})]}):(0,b.jsxs)("span",{className:U("group"),style:u,onClick:d,children:[(0,b.jsx)(p.L,{expanded:!(n.collapsed||n.empty),toggleExpanded:function(){}}),(0,b.jsx)(c.A,{awesome:n.collapsed||n.empty?"folder":"folder-open",className:U("group-icon")}),(0,b.jsx)("span",{children:o(t)})]})}var J=function(e){var t=e.visibleColumns.reduce((function(e,t){return e[t]={sort:!1,align:"right"},e}),{name:{sort:!1,align:"left"}});return{theme:"light",size:"s",striped:!1,computeKey:function(e){return e.name},tree:!0,columns:{sets:{default:{items:Object.keys(t)}},items:t,mode:"default"}}},Z=function(e){var t=e.statistic,n=e.fontFamilies,a=s.useState(""),r=(0,i.A)(a,2),o=r[0],l=r[1],c=s.useState("expanded"),u=(0,i.A)(c,2),d=u[0],m=u[1],p=s.useMemo((function(){return F(t)}),[t]),h=s.useMemo((function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!e)return[];var n=T.A.treeList.filterTree(e,(function(e){return-1!==e.name.indexOf(t)}),!0),a=T.A.treeList.sortTree(n,{field:"name",asc:!0},{name:{get:function(e){return e.name}}});return T.A.treeList.flattenTree(a)}(p,o)}),[p,o]);return{minWidth:s.useMemo((function(){return function(e,t){var n,a=300,r=function(e){var t=document.createElement("canvas").getContext("2d");return t.font=e,t}('14px / 20.02px "'.concat(t.regular,'", "Helvetica Neue", Arial, Helvetica, sans-serif')),i=(0,w.A)(e);try{for(i.s();!(n=i.n()).done;){var s=n.value,o=s.isLeafNode?20:40,l=N(r,s.attributes.name);a=Math.max(a,l+o+s.level*V)}}catch(e){i.e(e)}finally{i.f()}return Math.round(1.05*a)}(h,n)}),[n,h]),items:h,treeState:d,setTreeState:m,onFilterChange:function(e){return l(e)}}};function Y(e){var t=e.className,n=e.helpUrl,i=e.virtual,l=e.visibleColumns,c=e.fixedHeader,u=e.statistic,p=e.getStatisticInfo,f=(0,o.d4)(h.Y),v=Z({statistic:u,fontFamilies:f}),g=v.items,j=v.minWidth,x=v.treeState,A=v.setTreeState,y=v.onFilterChange,w=s.useMemo((function(){return{name:function(e,t,n,a){var r,i=null!==(r=null==p?void 0:p(e.name))&&void 0!==r?r:{};return(0,b.jsx)(H,{item:e,minWidth:j,toggleItemState:n,itemState:a,renderValue:function(e){var t;return null==e||null===(t=e.attributes)||void 0===t?void 0:t.name},info:i})},__default__:function(e,t){if(e.isLeafNode){var n,a=(null!==(n=null==p?void 0:p(e.name))&&void 0!==n?n:{}).unit;return(0,b.jsx)(K,{item:e,aggregation:t,unit:a})}return null}}}),[j,p]),N=s.useMemo((function(){return J({visibleColumns:l})}),(0,r.A)(l));return(0,b.jsx)(d.A,{children:(0,b.jsxs)("div",{className:U(null,t),children:[(0,b.jsx)(_,{helpUrl:n,onFilterChange:y,onTreeStateChange:A,treeState:x}),(0,b.jsx)("div",{className:U("table-container"),children:(0,b.jsx)(m.A,(0,a.A)((0,a.A)({},N),{},{virtual:i,treeState:x,templates:w,items:g,css:U(),headerClassName:U("header",{fixed:c})}))})]})})}},80545:(e,t,n)=>{n.d(t,{A:()=>l}),n(77810);var a=n(76872),r=n(73822),i=n(46282),s=n(64922),o=(0,a.A)("status-label");function l(e){var t=e.className,n=e.label,a=e.renderPlaque,l=function(e){var t;return null!==(t={materializing:"preparing",initializing:"preparing",preparing:"preparing",pending:"preparing",starting:"preparing",running:"running",completing:"running",failing:"running",aborting:"running",reviving:"running",suspended:"suspended",failed:"failed",completed:"completed",aborted:"aborted",Unknown:"unknown",Stopped:"suspended",Paused:"suspended",Working:"running",Draining:"running",Pausing:"running",Completed:"completed"}[e])&&void 0!==t?t:"unknown"}(n),c={preparing:"clock",running:"play-circle",suspended:"pause-circle",failed:"times-circle",completed:"check-circle",aborted:"times-circle",unknown:"question-circle"}[l],u={state:l};return n?(0,s.jsxs)("span",{className:o(null,a?o("plaque",u,t):o(u,t)),children:[(0,s.jsx)(i.A,{awesome:c}),(0,s.jsx)("span",{children:r.A.format.ReadableField(n)})]}):(0,s.jsx)("span",{})}},60680:(e,t,n)=>{n.d(t,{yN:()=>u,uL:()=>f,IS:()=>h,L1:()=>c,W1:()=>d,N5:()=>m,T1:()=>p});var a=n(40319),r=(n(77810),n(76872)),i=n(3659),s=n(53332),o=n(64922),l=(0,r.A)("yt-text");function c(e){var t=e.children,n=e.disabled;return(0,o.jsx)("span",{className:l("secondary",{disabled:n}),children:t})}function u(e){var t=e.children;return(0,o.jsx)("span",{className:l("bold"),children:t})}function d(e){var t=e.children;return(0,o.jsx)(c,{children:(0,o.jsx)(u,{children:t})})}function m(e){var t=e.children,n=e.className;return(0,o.jsx)("span",{className:l("warning",n),children:t})}function p(e){var t=e.children,n=e.className;return(0,o.jsx)("span",{className:l("warning-light",n),children:t})}function h(e){var t=e.children;return(0,o.jsx)("span",{className:l("no-wrap"),children:t})}function f(e){var t=e.text,n=e.onClick,r=i.A.prettyprint(t,(0,a.A)((0,a.A)({},s.EP),{},{asHTML:!0}));return(0,o.jsx)("span",{onClick:n,className:l("escaped"),dangerouslySetInnerHTML:{__html:r}})}},41007:(e,t,n)=>{n.d(t,{A:()=>c}),n(77810);var a=n(76872),r=n(85137),i=n(46282),s=n(34380),o=n(64922),l=(0,a.A)("yt-warning-icon");function c(e){var t=e.className,n=e.hoverContent,a=e.children,c=e.color;return(0,o.jsx)("span",{className:l(null,t),children:(0,o.jsxs)(s.m,{className:l("tooltip"),content:n,children:[(0,o.jsx)(i.A,{className:l("icon",{color:c}),awesome:"exclamation-triangle"}),a&&(0,o.jsx)(r.E,{variant:"inherit",color:c,children:a})]})})}},29241:(e,t,n)=>{n.d(t,{K$:()=>f,i:()=>g,Ay:()=>j,WS:()=>v,A4:()=>p,bU:()=>h,FF:()=>m,S5:()=>d});var a=n(74360),r=n(40319),i=(n(77810),n(3659)),s=n(76872),o=n(76426),l=n(73822),c=n(48971),u=n(64922);function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,s.A)("elements-text");n=t.mix?n(!1,(0,s.A)(t.mix.block)(t.mix.elem,(0,r.A)({},t.mix.mods))):n();var a=function(e,t){var n={};return t?n.dangerouslySetInnerHTML={__html:e}:n.children=i.A.decode(String(e)),n}(e,t.asHTML),o=t.title||e;return(0,u.jsx)("span",(0,r.A)((0,r.A)({},a),{},{title:o,className:n}))}function m(e,t){var n=this.getColumn(t);return l.A.format.TimeDuration(n.get(e),{format:"milliseconds"})}function p(e,t){var n=this.getColumn(t);return(0,u.jsx)("span",{className:"elements-ellipsis",children:l.A.format.ReadableField(n.get(e))})}function h(e,t){var n=null!=this&&this.getColumn?this.getColumn(t).get(e):e[t];return(0,u.jsx)(f,{value:n})}function f(e){var t=e.value;return(0,u.jsx)("span",{className:"elements-ellipsis",children:l.A.format.DateTime(t,{format:"full"})})}function v(e){return"object"===(0,a.A)(e)?(0,u.jsx)(o.A,{theme:"ghost",onClick:function(){(0,c.eW)(e,{hideOopsMsg:!0})},children:"View"}):l.A.format.NO_VALUE}function g(e,t){return l.A.format.Number(e[t])}const j={__default__:function(e,t){return String(l.A.format.ValueOrDefault(e[t]))},_templates:{},add:function(e,t){this._templates[e]=function(e){return Object.keys(e).reduce((function(t,n){return t[n]=e[n],t}),{})}(t)},get:function(e){return this._templates[e]||{}}}},19845:(e,t,n)=>{n.d(t,{A:()=>D});var a=n(29121),r=n(12937),i=n(10785),s=n(26718),o=n(77810),l=n(15647),c=n(25147),u=n.n(c),d=n(76872),m=n(65573),p=n(24503),h=n.n(p),f=n(34455),v=n.n(f),g=n(96843),j=n.n(g),x=n(65692),b=n(55740),A=n(29746),y=n(46282),_=n(97931),w=n(36554),N=n(17790),C=n(26264),k=n(64922),S=(0,d.A)("path-editor"),I=function(e){(0,i.A)(n,e);var t=(0,s.A)(n);function n(e){var r,i;return(0,a.A)(this,n),(i=t.call(this,e)).state=void 0,i.suggestionsList=o.createRef(),i.input=o.createRef(),i.prevScope="",i.hideSuggestions=function(){i.setState({inputFocus:!1,selectedIndex:-1})},i.handleInputChange=function(e){i.setState({path:e,selectedIndex:-1,inputChange:!0}),i.debounceLoading(e)},i.handleInputFocus=function(e){var t=i.props.onFocus,n=i.state.path;m.A.setScope("path-editor"),i.setState({inputFocus:!0}),null==t||t(e,{path:n})},i.handleInputBlur=function(){var e=i.props.onBlur,t=i.state.path;m.A.setScope(i.prevScope),i.hideSuggestions(),i.callCallback(e,t)},i.handleKeyDown=function(e){switch(e.keyCode){case C.DD.ARROW_DOWN:i.selectNextSuggestion();break;case C.DD.ARROW_UP:i.selectPrevSuggestion();break;case C.DD.ENTER:i.handleEnterClick(e);break;case C.DD.ESCAPE:i.handleEscClick();break;case C.DD.TAB:i.handleTabClick(e)}},i.renderItem=function(e,t){var n=i.state,a=n.selectedIndex,r=n.actualSuggestions[e],s=r.type,o=r.dynamic,l="table"===s&&o?"table_dynamic":s,c=(0,w.DC)(r),u=e===a?"yes":"no",d=(0,w.c5)(l,r.targetPathBroken),m="";try{var p,h=new A.A.YPath(r.path,"absolute").fragments;m=null===(p=h[h.length-1])||void 0===p?void 0:p.name}catch(e){}return(0,k.jsxs)("div",{onMouseDown:function(e){i.handleInputChange(c),e.preventDefault()},className:S("item",{selected:u}),children:[(0,k.jsx)(y.A,{awesome:d}),(0,k.jsx)("span",{className:S("item-path"),children:m?"…/".concat(m):r.path})]},t)},i.debounceLoading=h()(i.debounceLoading,300),i.state={path:null!==(r=e.defaultPath)&&void 0!==r?r:"",actualSuggestions:[],inputFocus:!1,inputChange:!1,selectedIndex:-1},i}return(0,r.A)(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.loadSuggestionsList,n=e.customFilter,a=e.autoFocus,r=this.state.path;this.prevScope=m.A.getScope(),r&&t(r,n),a&&this._setFocus()}},{key:"componentDidUpdate",value:function(e){e.disabled&&!this.props.disabled&&this.input.current&&this._setFocus()}},{key:"componentWillUnmount",value:function(){this.props.removeActiveRequests()}},{key:"_setFocus",value:function(){var e;null===(e=this.input.current)||void 0===e||e.focus()}},{key:"inputWidth",get:function(){return this.input.current&&this.input.current.offsetWidth-2}},{key:"callCallback",value:function(e){if("function"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];return e.apply(void 0,n)}}},{key:"debounceLoading",value:function(e){var t=this.props,n=t.loadSuggestionsList,a=t.customFilter,r=t.onChange;n(e,a),this.callCallback(r,e)}},{key:"selectPrevSuggestion",value:function(){var e=this.state,t=e.selectedIndex,n=e.actualSuggestions,a=(0,w.F_)(n,t);this.setState({selectedIndex:a})}},{key:"selectNextSuggestion",value:function(){var e=this.state,t=e.selectedIndex,n=e.actualSuggestions,a=(0,w.$F)(n,t);this.setState({selectedIndex:a})}},{key:"handleEnterClick",value:function(e){e.preventDefault();var t=this.state,n=t.selectedIndex,a=t.actualSuggestions,r=this.props.onApply,i=e.currentTarget.value;if(-1===n)this.setState({path:i,selectedIndex:-1}),this.callCallback(r,i);else{var s=v()(a,(function(e,t){return t===n})),o=(0,w.DC)(s);this.handleInputChange(o)}}},{key:"handleEscClick",value:function(){var e,t=this.props.onCancel;null===(e=this.input.current)||void 0===e||e.blur(),this.callCallback(t)}},{key:"handleTabClick",value:function(e){e.preventDefault();var t=this.state.actualSuggestions;if(1===t.length){var n=(0,w.DC)(t[0]);this.handleInputChange(n)}else t.length>1&&this.selectNextSuggestion()}},{key:"renderInput",value:function(){var e=this.props,t=e.placeholder,n=e.autoFocus,a=e.hasClear,r=e.disabled,i=this.state.path;return(0,k.jsx)(x.k,{onKeyDown:this.handleKeyDown,onUpdate:this.handleInputChange,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,placeholder:t,hasClear:a,autoFocus:n,disabled:r,controlRef:this.input,value:i})}},{key:"renderSuggestions",value:function(){var e=this.state.actualSuggestions;return e.length?(0,k.jsx)(u(),{itemRenderer:this.renderItem,length:e.length,type:"simple"}):null}},{key:"renderError",value:function(){var e=this.props.errorMessage;if(e)return(0,k.jsx)(_.A,{className:S("item",{error:!0}),message:e})}},{key:"renderPopup",value:function(){var e=this.props,t=e.suggestionsError,n=e.showErrors,a=this.state,r=a.actualSuggestions,i=a.inputFocus,s=this.inputWidth||0,o=Boolean((r.length||t&&n)&&i),l=t&&n?this.renderError():this.renderSuggestions();return(0,k.jsx)(b.z,{className:S("popup"),placement:["bottom-start","top-start"],onClose:this.hideSuggestions,anchorRef:this.input,open:o,offset:[0,0],children:(0,k.jsx)("div",{className:S("items"),style:{width:s},ref:this.suggestionsList,children:l})})}},{key:"render",value:function(){return(0,k.jsxs)("div",{className:S(null,this.props.className),children:[this.renderInput(),this.renderPopup()]})}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n={};return t.inputFocus&&t.inputChange&&Object.assign(n,{actualSuggestions:e.suggestions.length?(0,w.aA)(t.path,e.suggestions):[]}),void 0===t.path&&void 0!==e.defaultPath&&Object.assign(n,{path:e.defaultPath}),j()(n)?null:n}}]),n}(o.Component);I.defaultProps={errorMessage:"Oops, something went wrong",placeholder:"Enter the path...",suggestionsError:!1,autoFocus:!1,showErrors:!0,defaultPath:void 0,disabled:!1,hasClear:!1};const D=(0,l.Ng)((function(e){var t=e.navigation;return{suggestions:t.pathEditor.suggestions,suggestionsError:t.pathEditor.suggestionsError,errorMessage:t.pathEditor.errorMessage}}),{loadSuggestionsList:function(e,t){return function(n,a){var r,i=a().navigation.pathEditor,s=i.suggestionsPath,o=i.suggestionsLoaded;try{r=(0,w.$A)(e)}catch(e){return n({type:N.v.FAILURE,data:{message:e.message}})}if(s!==r||!o)return n({type:N.v.REQUEST}),(0,w._X)(e,t).then((function(t){n({type:N.v.SUCCESS,data:{suggestions:t,path:e,currentParentPath:r}})})).catch((function(e){n({type:N.v.FAILURE,data:{message:e.message}})}))}},removeActiveRequests:function(){return function(e){w.nH.removeAllRequests(),e({type:N.v.CANCELLED})}}})(I)},36161:(e,t,n)=>{n.d(t,{A:()=>l}),n(77810);var a=n(76872),r=n(64965),i=n(73822),s=n(64922),o=(0,a.A)("elements-message");function l(){var e=(0,r.W5)().params.tab;return(0,s.jsx)("div",{className:o({theme:"warning"}),children:(0,s.jsx)("p",{className:o("paragraph"),children:e?'Viewer for tab "'.concat(i.A.format.ReadableField(e),'" is not implemented.'):"Viewer for this tab is not implemented."})})}},86015:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Ht});var a=n(77810),r=n(64965),i=n(69835),s=n(15647),o=n(76872),l=n(63588),c=n(40319),u=n(13322),d=n(6736),m=n(64196),p=n(44693),h=n(90826),f=n(16413),v=n(91326),g=n(9736),j=n(84092),x=n.n(j),b=n(29746),A=n(52699),y=n(76365),_=new y.A;function w(e){return function(t,n){var a=n().job.specification,r=a.omitNodeDirectory,i=a.omitInputTableSpecs,s=a.omitOutputTableSpecs;return t({type:A.lG}),x().v4.getJobSpec({parameters:{job_id:e,omit_node_directory:r,omit_input_table_specs:i,omit_output_table_specs:s},cancellation:_.saveCancelToken}).then((function(e){var n=b.A.getValues(e,["/scheduler_job_spec_ext","/job_spec_ext"]),a=(0,g.A)(n,2),r=a[0],i=a[1];t({type:A.Jv,data:{specification:null!=i?i:r}})})).catch((function(e){e.code===x().codes.CANCELLED?t({type:A.NF}):t({type:A.E4,data:{error:e}})}))}}function N(){return function(e){_.removeAllRequests(),e({type:A.NF})}}var C=n(4386),k=n(88358),S=n(18801),I=n(18472),D=n(4176),T=n.n(D),E=n(36146),z=n.n(E),L=n(27528),M=n.n(L),F=n(95668),B=n.n(F),R=n(30002),P=n.n(R),O=n(33497),U=["total"],V=function(e,t,n){return(0,c.A)({table:void 0!==n?"".concat(t,":").concat(n):t},z()(e,(function(e){return e.sum})))},W=function(e){return e.job.general.job},K=(0,I.Mz)(W,(function(e){return b.A.getValue(e,"/statistics/user_job/pipes")||{}})),q=(0,I.Mz)(K,(function(e){var t=e.input,n=e.output;return{read:null==t?void 0:t.idle_time.sum,write:B()(P()(n),(function(e){return e.busy_time.sum}))}})),H=(0,I.Mz)(K,(function(e){var t=e.input,n=e.output,a=n.total,r=(0,S.A)(n,U),i={input:[V(t,"input",0)],output:P()(r).map((function(e,t){return V(e,"output",t)}))};if(a){var s=V(a,"Total");s.isTotal=!0,i.output.push(s)}return i})),J=(0,I.Mz)(W,(function(e){return b.A.getNumberDeprecated(e,"/statistics/user_job/cpu/user/sum")})),Z=(0,I.Mz)(W,(function(e){return b.A.getNumberDeprecated(e,"/statistics/user_job/cpu/wait/sum")})),Y=(0,I.Mz)(W,(function(e){return b.A.getNumberDeprecated(e,"/statistics/user_job/gpu/cumulative_utilization_gpu/sum")})),$=(0,I.Mz)(W,(function(e){return b.A.getNumberDeprecated(e,"/statistics/user_job/gpu/cumulative_power/sum")})),Q=(0,I.Mz)(W,(function(e){return b.A.getNumberDeprecated(e,"/statistics/user_job/gpu/cumulative_memory/sum")})),X=(0,I.Mz)(W,(function(e){return b.A.getNumberDeprecated(e,"/statistics/time/exec/sum")})),G=(0,I.Mz)([J,X],(function(e,t){return e/t})),ee=(0,I.Mz)([Z,X],(function(e,t){return e/t})),te=(0,I.Mz)(W,(function(e){return b.A.getNumberDeprecated(e,"/exec_attributes/gpu_devices/length")})),ne=(0,I.Mz)([Y,X],(function(e,t){return e/t})),ae=(0,I.Mz)([$,X],(function(e,t){return e/t})),re=(0,I.Mz)([Q,X],(function(e,t){return e/t})),ie=(0,I.Mz)([function(e){return e.job.specification.specification}],(function(e){var t=b.A.getValue(e,"/input_table_specs");return T()(M()(t,(function(e){var t=b.A.getValue(e,"/chunk_specs");return M()(t,(function(e){var t=b.A.getValue(e,"/chunk_id"),n=M()(b.A.getValue(e,"/lower_limit/key"),(function(e){return b.A.getValue(e)})),a=[b.A.getValue(e,"/lower_limit/row_index")],r=n&&0!==n.length?n:a,i=M()(b.A.getValue(e,"/upper_limit/key"),(function(e){return b.A.getValue(e)})),s=[b.A.getValue(e,"/upper_limit/row_index")];return{id:t,from:r,to:i&&0!==i.length?i:s}}))})))})),se=(0,I.Mz)(W,(function(e){var t=[],n=e.state;return"completed"!==n&&"failed"!==n&&"aborted"!==n&&(t.push({modalKey:"abort",name:"abort",successMessage:"Job was successfully aborted. Please wait",icon:"redo",message:"Job will be immediately aborted. Are you sure you want to proceed?",confirmationText:O.e}),t.push({modalKey:"interrupt",name:"interrupt",successMessage:"Job was successfully aborted. Please wait",icon:"hand-paper",message:"Job will be immediately interrupted. Are you sure you want to proceed?",confirmationText:O.e,optionMessage:"Interruption timeout",optionValue:1e4,optionType:"input",options:[{data:{parameters:{interrupt_timeout:1e4}},value:"timeout",text:"timeout"}]})),"running"===n&&t.push({modalKey:"abandon",name:"abandon",successMessage:"Job was successfully aborted. Please wait",icon:"trash-bin",message:"Job will be aborted, but considered as completed, output data of job will be lost. Do you want to proceed?",confirmationText:O.e}),t})),oe=n(64922),le=(0,o.A)("job-specification");function ce(e){var t=e.jobID,n=(0,s.wA)(),r=(0,s.d4)((function(e){return e.job.specification})),i=r.omitNodeDirectory,o=r.omitInputTableSpecs,l=r.omitOutputTableSpecs,c=(0,a.useCallback)((function(e){n(function(e){return function(t){_.removeAllRequests(),t({type:A.Mz}),t(w(e))}}(t)),ue(e)}),[n,t]),u=(0,a.useCallback)((function(e){n(function(e){return function(t){_.removeAllRequests(),t({type:A.Bx}),t(w(e))}}(t)),ue(e)}),[n,t]),d=(0,a.useCallback)((function(e){n(function(e){return function(t){_.removeAllRequests(),t({type:A.iw}),t(w(e))}}(t)),ue(e)}),[n,t]);return(0,oe.jsxs)("div",{className:le("toolbar"),children:[(0,oe.jsx)(f.S,{className:le("checkbox"),size:"l",content:"Omit node directory",checked:i,onChange:c}),(0,oe.jsx)(f.S,{className:le("checkbox"),size:"l",content:"Omit input table specs",checked:o,onChange:u}),(0,oe.jsx)(f.S,{className:le("checkbox"),size:"l",content:"Omit output table specs",checked:l,onChange:d})]})}function ue(e){e.target.blur()}function de(e){var t=e.className,n=e.jobID,r=(0,s.wA)(),o=(0,s.d4)((function(e){return e.job.specification})),c=o.loading,u=o.loaded,m=o.error,p=o.errorData,f=o.specification,g=(0,s.d4)(W).id;(0,a.useEffect)((function(){return r(w(n)),function(){r(N())}}),[r,n]);var j=c&&!u,x=(0,s.d4)(C.lD);return(0,oe.jsx)(i.A,{children:(0,oe.jsx)("div",{className:le(null,t),children:(0,oe.jsx)("div",{className:le("content",{loading:j}),children:j?(0,oe.jsx)(v.a,{}):(0,oe.jsx)(l.A,{loaded:u,error:m,errorData:p,children:(0,oe.jsx)(h.A,{folding:!0,settings:x,value:f,extraTools:(0,oe.jsxs)(d.s,{alignItems:"center",gap:2,children:[(0,oe.jsx)(k.O,{value:f,settings:x,name:"specification_job_".concat(g)}),(0,oe.jsx)(ce,{jobID:n})]})})})})})})}var me=n(35074),pe=function(e){var t;return null===(t=e.job.general.job.attributes)||void 0===t?void 0:t.statistics},he=n(16455),fe=n(33026),ve=n(29081),ge=n(7787),je=(0,o.A)("yt-job-statistics");function xe(){var e=(0,s.d4)(pe),t=(0,s.d4)(he.jS).getStatisticInfo;return(0,oe.jsx)(fe.DC,{className:je(),helpUrl:(0,ve.cK)()?ge.Ay.docsUrls["problems:jobstatistics"]:void 0,statistic:e,visibleColumns:["min","max","last","sum","count"],getStatisticInfo:t})}var be=n(28640),Ae=n(65692),ye=n(2211),_e=n(46282),we=n(52797),Ne=n(26264),Ce=(0,o.A)("job-breadcrumbs");function ke(e){var t=e.id,n=e.className,o=(0,r.W5)(),l=(0,s.d4)(we.dB),u=(0,r.W6)(),d=(0,a.useState)(!1),m=(0,g.A)(d,2),p=m[0],h=m[1],f=(0,a.useState)(o.params.jobID),v=(0,g.A)(f,2),j=v[0],x=v[1],b=o.params.operationID,A="".concat(b,"/").concat(j),y=(0,a.useCallback)((function(){return h(!0)}),[]),_=(0,a.useCallback)((function(e){return x(e)}),[]),w=(0,a.useCallback)((function(){return h(!1)}),[]),N=(0,a.useCallback)((function(e){e.keyCode===Ne.DD.ENTER&&(h(!1),u.push("/".concat(l,"/").concat(Ne.YW.JOB,"/").concat(A)))}),[A,u,l]),C={onBlur:w};return(0,oe.jsx)(i.A,{children:(0,oe.jsx)("div",{className:Ce(null,n),children:p?(0,oe.jsx)("div",{className:Ce("input"),children:(0,oe.jsx)(Ae.k,(0,c.A)((0,c.A)({},C),{},{autoFocus:!0,size:"m",value:j,onUpdate:_,onKeyDown:N}))}):(0,oe.jsxs)("div",{className:Ce("id"),children:[(0,oe.jsx)("span",{className:"elements-ellipsis",children:t})," ",(0,oe.jsx)(be.A,{view:"flat-secondary",text:t,size:"m"})," ",(0,oe.jsx)(ye.A,{view:"flat-secondary",size:"m",onClick:y,children:(0,oe.jsx)(_e.A,{awesome:"pencil"})})]})})})}var Se=n(80545),Ie=n(36161),De=n(65193),Te=n.n(De),Ee=n(8208),ze=n(11394),Le=n(3659),Me=(0,o.A)("job-pivot-keys"),Fe=ze.A,Be=function(){return{items:{id:{name:"id",caption:"Chunk ID",align:"left"},from:{name:"from",align:"left"},to:{name:"to",align:"left"}},sets:{default:{items:["id","from","to"]}},mode:"default"}},Re=function(){var e=function(e,t){var n=Le.A.prettyprint(e[t],{break:!1,indent:0,asHTML:!1}),a=n.split(",").join(",\n");return(0,oe.jsxs)("div",{className:"unipika",children:["[",(0,oe.jsx)("span",{title:a,className:"uint64 elements-ellipsis",children:n.slice(1,-1)}),"]"]})};return{from:function(t){return e(t,"from")},to:function(t){return e(t,"to")}}};function Pe(){var e=(0,s.wA)(),t=(0,s.d4)((function(e){return e.job.general})).job,n=(0,s.d4)((function(e){return e.job.specification})),r=n.loading,i=n.loaded,o=n.error,c=n.errorData,u=(0,s.d4)(ie);(0,a.useEffect)((function(){return e(w(t.id)),function(){e(N())}}),[e,t.id]);var d=(0,a.useMemo)(Be,[]),m=(0,a.useMemo)(Re,[]);return(0,oe.jsx)("div",{className:Me({loading:r}),children:(0,oe.jsx)(l.A,{loaded:i,error:o,errorData:c,children:(0,oe.jsx)(Fe,{size:"s",theme:"light",css:Me(),virtual:!1,striped:!1,columns:d,isLoading:r,templates:m,items:u})})})}var Oe=n(76426),Ue=n(73822),Ve=n(78894),We=new y.A,Ke=new Ve.I,qe=n(85907),He=(0,o.A)("job-competitors"),Je=ze.A;function Ze(e){var t=e.job,n=e.operationId,r=(0,s.d4)(we.dB),i=b.A.getValues(t,["/id","/address","/job_competition_id"]),o=(0,g.A)(i,3),l=o[0],c=o[1],u=o[2],d=Ue.A.format.Address(c),m=u&&u!==l;return(0,oe.jsxs)("div",{children:[(0,oe.jsxs)("span",{className:He("id","elements-monospace elements-ellipsis"),children:[(0,oe.jsx)(be.A,{text:l,theme:"flat-secondary",size:"s",title:"Copy job id"}),(0,oe.jsx)(Oe.A,{routed:!0,url:"/".concat(r,"/job/").concat(n,"/").concat(l),theme:"primary",children:l})]}),(0,oe.jsx)("br",{}),(0,oe.jsxs)("span",{className:He("host","elements-monospace elements-ellipsis"),children:[(0,oe.jsx)(be.A,{text:d,view:"flat-secondary",size:"s",title:"Copy host"}),d]}),m&&(0,oe.jsxs)(a.Fragment,{children:[(0,oe.jsx)("br",{}),(0,oe.jsx)("span",{className:He("speculative-job-label","elements-monospace elements-ellipsis"),children:"Speculative job"})]})]})}var Ye=function(){return{items:{id_address:{name:"id_address",align:"left",caption:"Id / Address",sort:!1},state:{name:"type",align:"right",sort:!0},type:{name:"type",align:"right",sort:!0}},sets:{default:{items:["id_address","type","state"]}},mode:"default"}},$e=function(e){return{id_address:function(t){return(0,oe.jsx)(Ze,{job:t,operationId:e})},state:function(e){return(0,oe.jsx)(Se.A,{label:e.state})}}};function Qe(){var e,t=(0,s.wA)(),n=(0,a.useCallback)((function(e){return e.id}),[]),r=(0,s.d4)((function(e){return e.job.general})).job,o=(0,s.d4)((function(e){return e.job.competitors})),c=o.loading,u=o.loaded,d=o.error,m=o.errorData,p=o.competitors,h=r.operationId,f=null===(e=r.attributes)||void 0===e?void 0:e.job_competition_id;if(!f||!h)throw new Error("Unexpected behavior: job_competition_id or operationId is not defined");var v=(0,a.useMemo)(Ye,[]),g=(0,a.useMemo)((function(){return $e(h)}),[h]);return(0,a.useEffect)((function(){var e,n;t((e=h,n=f,function(t){return t({type:A.vm}),x().v3.listJobs({parameters:{operation_id:e,job_competition_id:n},cancellation:We.saveCancelToken}).then((function(e){t({type:A.vp,data:{competitors:e.jobs}})})).catch((function(e){e.code===x().codes.CANCELLED?t({type:A.Pr}):(Ke.add({theme:"danger",name:"job competitors",autoHiding:1e4,content:(null==e?void 0:e.message)||"Oops, something went wrong",title:"Failed to load job's competitors"}),t({type:A._I,data:{error:e}}))}))}))}),[t,h,f]),(0,oe.jsx)(i.A,{children:(0,oe.jsx)("div",{className:He({loading:c}),children:(0,oe.jsx)(l.A,{loaded:u,error:d,errorData:m,children:(0,oe.jsx)(Je,{size:"s",theme:"light",css:He(),virtual:!1,striped:!1,columns:v,isLoading:c,items:p,templates:g,computeKey:n,tableId:qe.MV})})})})}var Xe=n(29347),Ge=n.n(Xe),et=n(73831),tt=n.n(et),nt=(0,o.A)("job-statistics-io"),at=(0,o.A)("elements-heading"),rt=ze.A,it=function(){return{items:{table:{caption:"Table",align:"left"},busy_time:{caption:"Busy time",align:"right"},bytes:{caption:"Bytes",align:"right"},idle_time:{caption:"Idle time",align:"right"}},sets:{default:{items:["table","busy_time","bytes","idle_time"]}},mode:"default"}},st=function(){var e=function(e,t){return Ue.A.format["bytes"===t?"Bytes":"TimeDuration"](e[t])};return{busy_time:function(t){return e(t,"busy_time")},bytes:function(t){return e(t,"bytes")},idle_time:function(t){return e(t,"idle_time")}}},ot=(0,I.Mz)([q,G,ee,te,ne,ae,re],(function(e,t,n,a,r,i,s){var o=e.read,l=e.write;return Ge()([{key:"total time waiting to read data",value:Ue.A.format.TimeDuration(o)},{key:"total time waiting to write data",value:Ue.A.format.TimeDuration(l)},tt()(t)&&{key:"average user cpu time per second",value:Ue.A.format.Number(t,{digits:3})},tt()(n)&&{key:"average wait cpu time per second",value:Ue.A.format.Number(n,{digits:3})},{key:"gpu devices",value:Ue.A.format.Number(a)},tt()(r)&&{key:"average gpu utilization",value:Ue.A.format.Percent(100*r)},tt()(i)&&{key:"average gpu power",value:Ue.A.format.Number(i,{digits:3})},tt()(s)&&{key:"average gpu memory usage",value:Ue.A.format.Bytes(s)}])}));function lt(){var e=(0,s.d4)(H),t=e.input,n=e.output,r=(0,s.d4)(ot),i=(0,a.useMemo)(it,[]),o=(0,a.useMemo)((function(){return st()}),[]);return(0,oe.jsxs)("div",{className:nt(),children:[(0,oe.jsx)(me.Ay,{className:nt("meta"),items:r}),(0,oe.jsx)("div",{className:at({size:"m"},nt("heading")),children:"Input"}),(0,oe.jsx)(rt,{size:"s",theme:"light",css:nt(),items:t,virtual:!1,striped:!1,columns:i,templates:o}),n.length>0&&(0,oe.jsxs)(a.Fragment,{children:[(0,oe.jsx)("div",{className:at({size:"m"},nt("heading")),children:"Output"}),(0,oe.jsx)(rt,{size:"s",theme:"light",css:nt(),items:n,virtual:!1,striped:!1,columns:i,templates:o,rowClassName:function(e){return e.isTotal?nt("row-total"):void 0}})]})]})}var ct=n(70917),ut=n(70436),dt=n(62250),mt=(0,o.A)("job-details");function pt(e,t){return e?(0,oe.jsx)(ut.A,{name:"Events",className:mt("events"),size:t,children:(0,oe.jsx)(ct.A,{events:e,type:"phase"})}):null}function ht(e,t){return e?(0,oe.jsx)(ut.A,{collapsed:!0,name:"Competitive jobs",className:mt("speculative-jobs"),size:t,children:(0,oe.jsx)(Qe,{})}):null}function ft(e,t){return Te()(["reduce","join_reduce","sorted_merge"],e)?(0,oe.jsx)(ut.A,{collapsed:!0,name:"Pivot keys",className:mt("pivot-keys"),size:t,children:(0,oe.jsx)(Pe,{})}):null}function vt(){var e,t,n,a,r,o,l,c=(0,s.d4)((function(e){return e.job.general})),u=c.details,d=c.job,m=u.events;return(0,oe.jsx)(i.A,{children:(0,oe.jsxs)("div",{className:mt(),children:[(null==m?void 0:m.length)>0&&(0,oe.jsx)("div",{className:mt("section"),children:pt(u.events,dt.Y1)}),(0,oe.jsxs)("div",{className:mt("section"),children:[(l=null===(e=d.attributes)||void 0===e?void 0:e.error,l?(0,oe.jsx)("div",{className:mt("result"),children:(0,oe.jsx)(Ee.z,{error:l})}):null),(r=null===(t=d.attributes)||void 0===t?void 0:t.statistics,o=dt.Y1,b.A.getValue(r,"/user_job/pipes")?(0,oe.jsx)(ut.A,{name:"Statistics",className:mt("statistics"),size:o,children:(0,oe.jsx)(lt,{})}):null),ft(null===(n=d.attributes)||void 0===n?void 0:n.type,dt.Y1),ht(Boolean(null===(a=d.attributes)||void 0===a?void 0:a.has_competitors),dt.Y1)]})]})})}var gt=n(623),jt=n.n(gt),xt=n(55695),bt=n(39055),At=n(19845),yt=new y.A;function _t(e,t){return function(n,a){n({type:A.M1});var r=(0,we.Si)(a());return x().v3.getJob({parameters:{operation_id:e,job_id:t},cancellation:yt.saveCancelToken}).then((function(e){n({type:A.s8,data:{job:e,clusterConfig:r}})})).catch((function(e){e.code===x().codes.CANCELLED?n({type:A.E}):n({type:A.V3,data:{error:e}})}))}}var wt=n(7313),Nt=n(48971),Ct=new Ve.I,kt=(0,o.A)("job-actions"),St=(0,o.A)("elements-code"),It=function(e,t,n){var a=[{action:function(){window.open(e.prepareCommandURL("get_job_input"))},text:"get_job_input"},{action:function(){window.open(e.prepareCommandURL("get_job_stderr"))},text:"get_job_stderr"}];return"failed"===e.state?a.push({action:function(){window.open(e.prepareCommandURL("get_job_fail_context"))},text:"get_job_fail_context"}):a.push({action:n,text:"dump_job_context"}),[a,[{action:t,text:"job shell"}]]},Dt=function(e){var t=e.currentOption,n=e.name,a=e.id,r=function(e){return{interrupt:x().v4.abortJob,abort:x().v4.abortJob,abandon:x().v4.abandonJob}[e]}(n),i={job_id:a};return t&&(i=(0,c.A)((0,c.A)({},i),{},{interrupt_timeout:t})),r(i)},Tt=function(e,t,n){var a={job_id:e,path:t};return x().v3.dumpJobContext(a).then((function(){Ct.add({theme:"success",autoHiding:!1,name:"dump job context",title:"Job context has been dumped.",content:(0,oe.jsx)(Oe.A,{url:"/".concat(n,"/navigation?path=").concat(t),children:t})})})).catch((function(e){Ct.add({theme:"danger",autoHiding:!1,name:"dump job context",title:"Could not dump job context.",content:(null==e?void 0:e.message)||"Oops, something went wrong",actions:[{label:" view",onClick:function(){return(0,Nt.eW)(e)}}]})}))};function Et(e){var t=(0,s.wA)(),n=e.message||(0,oe.jsxs)("span",{children:["Are you sure you want to ",(0,oe.jsx)("strong",{children:e.name})," the job?"]}),r=(0,s.d4)((function(e){return e.job.general})).job,i=r.id,o=r.operationId,l=(0,a.useCallback)((function(){setTimeout((function(){return t(_t(o,i))}),5e3)}),[t,o,i]),u=(0,a.useCallback)((function(e){return t((0,wt.Jm)(e))}),[t]),d=(0,a.useCallback)((function(t){var n=t.currentOption,a=(0,c.A)((0,c.A)({},e),{},{currentOption:n,id:i});return Dt(a).then(l)}),[i,e,l]),m=(0,a.useCallback)((function(){return t(u((0,c.A)((0,c.A)({},e),{},{message:n,handler:d})))}),[t,u,e,n,d]);return(0,oe.jsxs)(ye.A,{size:"m",onClick:m,view:e.theme||"outlined",className:kt("action"),title:Ue.A.format.ReadableField(e.name),children:[(0,oe.jsx)(_e.A,{awesome:e.icon})," ",Ue.A.format.ReadableField(e.name)]},e.name)}function zt(e){var t=e.className,n=(0,s.d4)(W),r=(0,s.d4)((function(e){return e.job.general})).loaded,o=(0,s.d4)(we.dB),l=n.id,u="yt run-job-shell ".concat(l),d=(0,a.useState)(!1),m=(0,g.A)(d,2),p=m[0],h=m[1],f=(0,a.useCallback)((function(){return h(!0)}),[h]),v=(0,a.useCallback)((function(){return h(!1)}),[h]),j=(0,a.useCallback)((function(){jt()(u),v()}),[u,v]),x="//home",b=(0,a.useState)(x),A=(0,g.A)(b,2),y=A[0],_=A[1],w=(0,a.useState)(!1),N=(0,g.A)(w,2),C=N[0],k=N[1],S=(0,a.useCallback)((function(e){return _(e)}),[_]),I=(0,a.useCallback)((function(){return k(!0)}),[k]),D=(0,a.useCallback)((function(){return k(!1)}),[k]),T=(0,a.useCallback)((function(){Tt(l,y,o),D()}),[l,y,o,D]),E=(0,s.d4)(se),z=(0,a.useMemo)((function(){return It(n,f,I)}),[n,f,I]);return r?(0,oe.jsx)(i.A,{children:(0,oe.jsxs)("div",{className:kt(null,t),children:[M()(E,(function(e,t){return(0,oe.jsx)(Et,(0,c.A)({},e),t)})),(0,oe.jsx)(xt.r,{items:z}),(0,oe.jsxs)(bt.K,{size:"m",open:p,onClose:v,children:[(0,oe.jsx)(bt.K.Header,{caption:"Job shell"}),(0,oe.jsx)(bt.K.Body,{children:(0,oe.jsx)("div",{className:kt("code"),children:(0,oe.jsx)("div",{className:St({theme:"default"}),children:u})})}),(0,oe.jsx)(bt.K.Footer,{onClickButtonCancel:v,onClickButtonApply:j,textButtonCancel:"Cancel",textButtonApply:"Copy",showError:!1,preset:"success",listenKeyEnter:!0})]}),(0,oe.jsxs)(bt.K,{size:"m",open:C,onClose:D,children:[(0,oe.jsx)(bt.K.Header,{caption:"Dump job context"}),(0,oe.jsx)(bt.K.Body,{children:(0,oe.jsx)("div",{className:kt("dump-context"),children:(0,oe.jsx)(At.A,{hasClear:!0,defaultPath:x,onChange:S})})}),(0,oe.jsx)(bt.K.Footer,{onClickButtonCancel:D,onClickButtonApply:T,textButtonCancel:"Cancel",textButtonApply:"Confirm",showError:!1,preset:"success",listenKeyEnter:!0})]})]})}):null}var Lt=n(81970),Mt=n(83611),Ft=n(53332),Bt=n(35441),Rt=n(93209),Pt=n(42324),Ot=n(40860),Ut=(0,o.A)("job-general");function Vt(){var e,t=(0,s.d4)(we.dB),n=(0,r.W5)(),o=(0,s.d4)(C.cm),l=(0,s.d4)(W),f=(0,s.d4)((function(e){return e.job.general})),v=f.loaded,g=function(e){var t=e.operationId,n=e.jobId,r=e.pool_tree,i=e.has_trace,o=e.cluster,l=(0,s.d4)(we.jU).job_trace_url_template,c=void 0===l?{}:l,u=c.url_template,d=c.title,m=void 0===d?"Open trace":d,p=c.enforce_for_trees;return a.useMemo((function(){return(i||0<=(null==p?void 0:p.indexOf(r)))&&o&&t&&n&&u?{url:(0,Bt.j)(u,{operationId:t,jobId:n,cluster:o}),title:m}:{}}),[o,t,n,u,m,p,r,i])}({operationId:null==l?void 0:l.operationId,jobId:null==l?void 0:l.id,has_trace:null==l||null===(e=l.archive_features)||void 0===e?void 0:e.has_trace,pool_tree:null==l?void 0:l.pool_tree,cluster:t}),j=g.url,x=g.title;if(!v)return null;var b=n.url,y=n.params,_=y.operationID,w=y.jobID,N=l.operationId,S=l.attributes,I=l.finishTime,D=l.startTime,T=l.duration,E=l.address,z=l.state,L=l.type,M=l.id,F=l.job_competition_id,B=l.monitoring_descriptor,R=l.pool_tree,P=l.is_stale,O=l.interruption_info,U="/".concat(t,"/").concat(Ne.YW.OPERATIONS,"/").concat(_,"/jobs?jobId=").concat(w),V="/".concat(t,"/").concat(Ne.YW.JOB,"/").concat(_,"/").concat(w),K=(0,Ft._4)(V,A.oz),q=F&&F!==M,H="yt --proxy ".concat(t," run-job-shell ").concat(M),J=Ue.A.format.ReadableField(null==O?void 0:O.preemption_reason);return(0,oe.jsx)(i.A,{children:(0,oe.jsxs)("div",{className:Ut(null,"elements-section"),children:[(0,oe.jsxs)("div",{className:Ut("header"),children:[(0,oe.jsxs)("span",{className:Ut("heading"),children:[Ue.A.format.ReadableField(L)," job"]}),(0,oe.jsxs)(d.s,{alignItems:"center",gap:1,children:[(0,oe.jsx)(Se.A,{label:z,renderPlaque:!0}),Boolean(O)&&(0,oe.jsxs)(Lt.A,{theme:"warning",children:["Interrupted (",Ue.A.format.ReadableField(null==O?void 0:O.interruption_reason),")"]})]}),(0,oe.jsx)(zt,{className:Ut("actions")})]}),q&&(0,oe.jsx)(Lt.A,{className:Ut("speculative-label"),text:"Speculative job",theme:"warning",type:"text"}),(0,oe.jsx)(me.Ay,{className:Ut("meta"),items:[[{key:"operation id",value:(0,oe.jsx)(me.Bj.Link,{url:U,text:N,withClipboard:!0})},{key:"job id",value:(0,oe.jsx)(ke,{id:M,className:Ut("meta-breadcrumbs")})},{key:"host",value:(0,oe.jsxs)("span",{className:Ut("meta-host"),children:[(0,oe.jsx)(me.Bj.Id,{id:null==E?void 0:E.split(":")[0]}),(0,oe.jsx)(Pt.A,{url:ge.Ay.makeUrlForNodeIO(t,E)})]})},{key:"type",value:(0,oe.jsx)(me.Bj.Value,{value:L})},{key:"Monitoring descriptor",value:(0,oe.jsxs)("span",{className:Ut("meta-host"),children:[(0,oe.jsx)(me.Bj.Id,{id:B}),(0,oe.jsx)(Pt.A,{url:ge.Ay.makeUrlForMonitoringDescriptor(t,{from:D,to:I},B)})]}),visible:Boolean(B)},{key:"Pool tree",value:R,visible:Boolean(R)}],[{key:"started",value:(0,oe.jsx)(me.Bj.Time,{time:D,valueFormat:"DateTime"})},{key:"finished",value:(0,oe.jsx)(me.Bj.Time,{time:I,valueFormat:"DateTime"})},{key:"duration",value:(0,oe.jsx)(me.Bj.Time,{time:T,valueFormat:"TimeDuration"})},{key:"Stale",value:(0,oe.jsxs)(oe.Fragment,{children:[Boolean("is_stale").toString()+" ",(0,oe.jsx)(Ot.q,{})]}),visible:P}],[{key:"job_input",value:(0,oe.jsx)(Rt.S,{onClick:function(){return window.open(l.prepareCommandURL("get_job_input"))},children:"get_job_input"})},{key:"job_error",value:(0,oe.jsx)(Rt.S,{onClick:function(){return window.open(l.prepareCommandURL("get_job_stderr"))},children:"get_job_stderr"})}].concat((0,u.A)("failed"!==(null==l?void 0:l.state)?[]:[{key:"fail_context",value:(0,oe.jsx)(Rt.S,{onClick:function(){return window.open(l.prepareCommandURL("get_job_fail_context"))},children:"get_job_fail_context"})}]),(0,u.A)(null!=l&&l.finishTime?[]:[{key:"Job ssh",value:(0,oe.jsxs)("span",{className:Ut("meta-ssh"),children:[(0,oe.jsx)("span",{className:Ut("meta-ssh-cmd"),title:H,children:H}),(0,oe.jsx)(be.A,{view:"flat-secondary",text:H,size:"s"})]})}]),[{key:"Job trace",value:(0,oe.jsx)(m.N,{target:"_blank",href:j,children:x}),visible:Boolean(j)}])]}),Boolean(J)&&(0,oe.jsx)(p.F,{theme:"info",layout:"horizontal",message:J,actions:(0,oe.jsx)(be.A,{title:"Copy reason",view:"flat-secondary",size:"s",text:J,className:Ut("popup-button")})}),(0,oe.jsx)("div",{className:Ut("tabs"),children:(0,oe.jsx)(Mt.A,(0,c.A)((0,c.A)({},K),{},{active:A._N,routed:!0,size:dt.jr}))}),(0,oe.jsxs)(r.dO,{children:[(0,oe.jsx)(r.qh,{path:"".concat(V,"/").concat(A.oz.ATTRIBUTES),children:(0,oe.jsx)(h.A,{className:Ut("attributes"),value:S,settings:o,folding:!0,extraTools:(0,oe.jsx)(k.O,{value:S,settings:o,name:"attributes_job_".concat(M)})})}),(0,oe.jsx)(r.qh,{path:"".concat(V,"/").concat(A.oz.DETAILS),children:(0,oe.jsx)(vt,{})}),(0,oe.jsx)(r.qh,{path:"".concat(V,"/").concat(A.oz.STATISTICS),children:(0,oe.jsx)(xe,{})}),(0,oe.jsx)(r.qh,{path:"".concat(V,"/").concat(A.oz.SPECIFICATION),children:(0,oe.jsx)(de,{className:Ut("specification"),jobID:w})}),(0,oe.jsx)(r.qh,{path:"".concat(V,"/:tab"),children:(0,oe.jsx)(Ie.A,{})}),(0,oe.jsx)(r.rd,{from:b,to:"".concat(V,"/").concat(A._N)})]})]})})}var Wt=n(13685),Kt=(0,o.A)("job-detail");function qt(){var e=(0,r.W5)(),t=(0,s.wA)(),n=e.params,o=n.operationID,c=n.jobID,u=(0,s.d4)((function(e){return e.job.general})),d=u.loading,m=u.loaded,p=u.error,h=u.errorData,f=d&&!m,g=a.useMemo((function(){return{updateFn:function(){return t(_t(o,c))},destructFn:function(){return t((function(e){yt.removeAllRequests(),e({type:A.E})}))}}}),[t,o,c]),j=g.updateFn,x=g.destructFn;return(0,Wt.Tt)(j,{destructFn:x}),(0,oe.jsx)(i.A,{children:(0,oe.jsx)("div",{className:Kt(),children:(0,oe.jsx)("div",{className:Kt("content",{loading:f}),children:f?(0,oe.jsx)(v.a,{}):(0,oe.jsx)(l.A,{loaded:m,error:p,errorData:h,children:(0,oe.jsx)(Vt,{})})})})})}function Ht(){var e=(0,r.W5)();return(0,oe.jsx)("div",{className:"elements-main-section",children:(0,oe.jsx)(i.A,{children:(0,oe.jsx)(r.dO,{children:(0,oe.jsx)(r.qh,{path:"".concat(e.path,"/:operationID/:jobID"),children:(0,oe.jsx)(qt,{})})})})})}},40860:(e,t,n)=>{n.d(t,{q:()=>i}),n(77810);var a=n(41007),r=n(64922);function i(e){var t=e.className;return(0,r.jsx)(a.A,{className:t,hoverContent:"The job is stale, the information may be obsolete"})}},70917:(e,t,n)=>{n.d(t,{A:()=>L});var a=n(40319),r=n(29121),i=n(12937),s=n(10785),o=n(26718),l=n(77810),c=n(75826),u=n.n(c),d=n(76872),m=n(5992),p=n(96843),h=n.n(p),f=n(14880),v=n(11394),g=n(49133),j=n(41652),x=n(65873),b=n(16727),A=n(51744),y=n(73822),_=n(68175),w=n(53332),N={state:{align:"left",get:function(e){return e.state}},phase:{align:"left",caption:"State : Phase",get:function(e){if("total"===e.state)return"Total";var t=y.A.format.Readable,n=t(e.state),a=t(e.phase||y.A.format.NO_VALUE);return"".concat(n," : ").concat(a)}},progress:{align:"center",caption:"",get:function(e){return{value:e.progress&&e.progress.duration,theme:{initializing:"grass",preparing:"mint",pending:"aqua",materializing:"bluejeans",running:"lavander",completing:"grapefruit",reviving:"bittersweet",reviving_jobs:"sunflower",failed:"grapefruit"}[e.state]||"mediumgray"}}},duration:{align:"right",get:function(e){return e.duration}},start_time:{align:"left",get:function(e){return e.time}},actions:{align:"center",caption:""}},C="default",k="withActions";function S(e,t){var n=function(e){var t;return{theme:"light",striped:!1,virtual:!0,header:!1,size:"m",computeKey:function(e){return e.state+"/"+e.time},columns:{items:(0,w.TU)(N),sets:(t={},(0,_.A)(t,C,{items:[e,"progress","duration","start_time"]}),(0,_.A)(t,k,{items:[e,"progress","duration","start_time","actions"]}),t),mode:C}}}(t),r=n;return e&&((r=(0,a.A)({},n)).columns=(0,a.A)((0,a.A)({},r.columns),{},{mode:k})),r}var I=n(64922),D=(u().array,(0,d.A)("events")),T=(0,d.A)("operation-detail"),E=(0,m.Zz)(j.A,g.A)(v.A);function z(e,t){var n;return null===(n=N[t])||void 0===n?void 0:n.get(e)}var L=function(e){(0,s.A)(n,e);var t=(0,o.A)(n);function n(){return(0,r.A)(this,n),t.apply(this,arguments)}return(0,i.A)(n,[{key:"templates",get:function(){return{start_time:function(e,t){var n=z(e,t);return n?(0,I.jsx)(b.Bj.Time,{time:n,settings:{format:"full"},valueFormat:"DateTime"}):null},finish_time:function(e,t){var n=z(e,t);return n?(0,I.jsx)(b.Bj.Time,{time:n,settings:{format:"full"},valueFormat:"DateTime"}):null},duration:function(e,t){if(A.Jh.isFinalState(e))return y.A.format.NO_VALUE;var n=z(e,t);return(0,I.jsx)(b.Bj.Time,{time:n,settings:{format:"milliseconds"},valueFormat:"TimeDuration"})},progress:function(e,t){if(A.Jh.isNotFinalState(e)&&"total"!==e.state){var n=e.progress.duration,a=z(e,t),r=a.theme,i=a.value;return(0,I.jsxs)("div",{className:T("events-progress",{theme:r}),children:[(0,I.jsx)("span",{className:T("events-progress-percentage","elements-secondary-text"),children:y.A.format.Percent(n)}),(0,I.jsx)(x.k,{value:i,size:"s"})]})}},state:function(e,t){var n=z(e,t);return(0,I.jsx)(b.Bj.Readable,{value:n})},phase:function(e,t){var n=z(e,t);return(0,I.jsx)(b.Bj.Readable,{value:n})},actions:function(e){var t=(e||{}).attributes;return h()(t)?null:(0,I.jsx)(f.A,{title:"Event attributes",attributes:e.attributes})}}}},{key:"render",value:function(){var e=this.props,t=e.events,n=e.type,r=t.slice(),i=r.pop(),s=i.showAttributesColumn;return(0,I.jsx)("div",{className:D(),children:(0,I.jsx)(E,(0,a.A)((0,a.A)({},S(s,n)),{},{items:r,css:D(),footer:i,templates:this.templates}))})}}]),n}(l.Component);L.defaultProps={type:"state"}},36554:(e,t,n)=>{n.d(t,{$A:()=>h,$F:()=>g,DC:()=>x,F_:()=>j,_X:()=>f,aA:()=>v,c5:()=>b,nH:()=>p});var a=n(49214),r=n.n(a),i=n(27528),s=n.n(i),o=n(63281),l=n.n(o),c=n(3659),u=n(29746),d=n(76365),m=n(64714),p=new d.A;function h(e){return u.A.YPath.create(e,"absolute").toSubpath(-2).stringify()}function f(e,t){var n=h(e);return m.Qq.list(m.Vu.pathEditorLoadSuggestions,{parameters:{path:n,attributes:["type","dynamic"]},cancellation:p.saveCancelToken}).then(u.A.getValue).then((function(e){return function(e,t,n){var a=s()(n,(function(e){var n={};return n.parentPath=t,n.childPath="/"+c.A.decode(u.A.getValue(e)),n.path=n.parentPath+n.childPath,n.type=u.A.getValue(e,"/@type"),n.dynamic=u.A.getValue(e,"/@dynamic"),n.targetPathBroken=u.A.getValue(e,"/@broken"),n}));return l()(a,"childPath")}(0,n,e)})).then((function(e){return t?t(e):e}))}function v(e,t){var n=e.toLowerCase();return r()(t,(function(e){var t=e.path.startsWith(n),a=e.path!==n||"map_node"===e.type;return t&&a}))}function g(e,t){return-1===t||t===e.length-1?0:t+1}function j(e,t){return-1===t||0===t?e.length-1:t-1}function x(e){return"map_node"===e.type?e.path+"/":e.path}function b(e,t){var n={document:"file-alt",string_node:"file-alt",int64_node:"file-alt",uint64_node:"file-alt",double_node:"file-alt",boolean_node:"file-alt",map_node:"folder",scheduler_pool_tree_map:"folder-tree",scheduler_pool:"tasks",tablet_cell:"th",journal:"book",table:"th",table_dynamic:"dyn-th",replicated_table:"th",chaos_replicated_table:"chaos-replicated-table",replication_log_table:"replication-log-table",file:"file",topmost_transaction_map:"folder",transaction_map:"folder",transaction:"code-branch",nested_transaction:"code-branch",link:u.A.getBoolean(t)?"unlink":"link",rootstock:"link",portal_entrance:"link",cell_node:"circle",cell_node_map:"far circle",sys_node:"cog",access_control_object_namespace_map:"acl-namespace-map",access_control_object_namespace:"acl-namespace",access_control_object:"acl-object"};return e?n[e]||"not-suported":"eye-slash"}},94544:(e,t,n)=>{n.d(t,{Af:()=>d,Ut:()=>l,Z3:()=>c});var a=n(13322),r=n(7787),i=n(26264),s=n(42265),o=n(44458);function l(e,t){return r.Ay.makeUrlForTabletCellBundleDashboard(e,t)}function c(e,t){var n=t?"/".concat(t,"/"):"";return"".concat(n).concat(i.YW.TABLET_CELL_BUNDLES,"/").concat(s.R_.TABLET_CELLS,"?id=").concat(e)}function u(e,t){return e.changelog_account===t.changelog_account&&e.snapshot_account===t.snapshot_account?0:e.changelog_account<t.changelog_account||e.snapshot_account<t.snapshot_account?-1:1}var d=function(e){var t=e.bundles,n=e.column,r=e.columnsSortable,i=e.order,s=[],l=(0,o.fA)(i),c=l.orderK,d=l.undefinedOrderK;if("changelog_account"===n)s=(0,a.A)(t).sort(u);else if("nodes"===n)s=(0,a.A)(t).sort((function(e,t){var n=e.nodes,a=void 0===n?[]:n,r=t.nodes,i=void 0===r?[]:r;return a.length-i.length}));else if(r.has(n))return(0,o.Uy)(t,[{key:n,orderK:c,undefinedOrderK:d}]);return i.includes("asc")?s:s.reverse()}},39702:(e,t,n)=>{n.d(t,{A:()=>i});var a=n(40319),r=n(64922);const i=function(e){return(0,r.jsx)("svg",(0,a.A)((0,a.A)({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),{},{children:(0,r.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.47 13.03a.75.75 0 0 1 0-1.06L9.44 8 5.47 4.03a.75.75 0 0 1 1.06-1.06l4.5 4.5a.75.75 0 0 1 0 1.06l-4.5 4.5a.75.75 0 0 1-1.06 0",clipRule:"evenodd"})}))}},44693:(e,t,n)=>{n.d(t,{F:()=>k});var a=n(64922),r=n(72890),i=n(92423),s=n(73139),o=n(72679),l=n(54179),c=n(6740),u=n(6736),d=n(77810);const m=d.createContext(null),p=()=>{const e=d.useContext(m);if(!e)throw new Error('Alert: `useAlertContext` hook is used out of "AlertContext"');return e},h=e=>{const{view:t}=p();return(0,a.jsx)(i.$,Object.assign({view:"filled"===t?"normal-contrast":void 0},e))};const f=(0,n(21086).om)("alert"),v=({layout:e,view:t,children:n})=>(0,a.jsx)(m.Provider,{value:{layout:e,view:t},children:n});var g=n(12663);var j=n(44315);var x=n(16822);var b=n(71182);const A={danger:{filled:e=>d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),d.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14ZM6.53 5.47a.75.75 0 0 0-1.06 1.06L6.94 8 5.47 9.47a.75.75 0 1 0 1.06 1.06L8 9.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L9.06 8l1.47-1.47a.75.75 0 1 0-1.06-1.06L8 6.94 6.53 5.47Z",clipRule:"evenodd"})),outlined:e=>d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),d.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.5 8a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0ZM15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0ZM6.53 5.47a.75.75 0 0 0-1.06 1.06L6.94 8 5.47 9.47a.75.75 0 1 0 1.06 1.06L8 9.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L9.06 8l1.47-1.47a.75.75 0 1 0-1.06-1.06L8 6.94 6.53 5.47Z",clipRule:"evenodd"}))},info:{filled:e=>d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),d.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14Zm1-9.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM8 7.75a.75.75 0 0 1 .75.75V11a.75.75 0 0 1-1.5 0V8.5A.75.75 0 0 1 8 7.75Z",clipRule:"evenodd"})),outlined:g.A},success:{filled:e=>d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),d.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14Zm3.1-8.55a.75.75 0 1 0-1.2-.9L7.419 8.858 6.03 7.47a.75.75 0 0 0-1.06 1.06l2 2a.75.75 0 0 0 1.13-.08l3-4Z",clipRule:"evenodd"})),outlined:j.A},warning:{filled:e=>d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),d.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.836 2.244c.962-1.665 3.366-1.665 4.328 0l4.917 8.505c.964 1.666-.239 3.751-2.164 3.751H3.083c-1.925 0-3.128-2.085-2.164-3.751l4.917-8.505ZM8 5a.75.75 0 0 1 .75.75v2a.75.75 0 1 1-1.5 0v-2A.75.75 0 0 1 8 5Zm1 5.75a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",clipRule:"evenodd"})),outlined:x.A},utility:{filled:e=>d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16"},e),d.createElement("path",{fill:"currentColor",d:"m14.61 6.914-7.632 8.08a1.614 1.614 0 0 1-2.69-1.66L5.5 10H2.677A1.677 1.677 0 0 1 1.12 7.7l2.323-5.807A2.216 2.216 0 0 1 5.5.5h4c.968 0 1.637.967 1.298 1.873L10 4.5h3.569a1.431 1.431 0 0 1 1.04 2.414Z"})),outlined:b.A},normal:null};var y=n(85137),_=n(37338);const w=JSON.parse('{"label_close":"Close"}'),N=JSON.parse('{"label_close":"Закрыть"}'),C=(0,_.N)({en:w,ru:N},"Alert"),k=e=>{const{theme:t="normal",view:n="filled",layout:d="vertical",message:m,className:p,corners:h,style:g,onClose:j,align:x,qa:b}=e;return(0,a.jsx)(v,{layout:d,view:n,children:(0,a.jsx)(s.Z,{style:g,className:f({corners:h},(0,c.Y)({py:4,px:5},p)),theme:t,view:n,qa:b,children:(0,a.jsxs)(u.s,{gap:"3",alignItems:x,children:[void 0===e.icon?(0,a.jsx)(k.Icon,{theme:t,view:n}):e.icon,(0,a.jsxs)(u.s,{direction:"vertical"===d?"column":"row",gap:"5",grow:!0,children:[(0,a.jsx)(u.s,{gap:"2",grow:!0,className:f("text-content"),children:(0,a.jsxs)(u.s,{direction:"column",gap:"1",grow:!0,justifyContent:x,children:["string"==typeof e.title?(0,a.jsx)(k.Title,{text:e.title}):e.title,m]})}),Array.isArray(e.actions)?(0,a.jsx)(k.Actions,{items:e.actions}):e.actions]}),j&&(0,a.jsx)(i.$,{view:"flat",className:f("close-btn"),onClick:j,extraProps:{"aria-label":C("label_close")},children:(0,a.jsx)(o.I,{data:r.A,size:18,className:(0,l.$)({color:"secondary"})})})]})})})};k.Icon=({className:e,theme:t,view:n="filled",size:r=18})=>{const i=A[t];if(!i)return null;let s;return"success"===t?s="positive":"normal"!==t&&(s=t),(0,a.jsx)("div",{className:f("icon",(0,l.$)({color:s},e)),children:(0,a.jsx)(o.I,{data:i[n],size:r})})},k.Title=({text:e,className:t})=>(0,a.jsx)(y.E,{variant:"subheader-2",className:f("title",t),children:e}),k.Actions=({items:e,children:t,className:n})=>{const{layout:r}=p();return(0,a.jsx)(u.s,{className:f("actions",{minContent:"horizontal"===r},n),direction:"row",gap:"3",wrap:!0,alignItems:"horizontal"===r?"center":"flex-start",children:(null==e?void 0:e.map((({handler:e,text:t},n)=>(0,a.jsx)(h,{onClick:e,children:t},n))))||t})},k.Action=h},73139:(e,t,n)=>{n.d(t,{Z:()=>c});var a=n(56911),r=n(64922),i=n(77810),s=n(3564),o=n(92060);const l=(0,n(21086).om)("card"),c=i.forwardRef((function(e,t){const{type:n="container",theme:i,view:c,size:u="m",children:d,className:m,onClick:p,disabled:h,selected:f}=e,v=(0,a.Tt)(e,["type","theme","view","size","children","className","onClick","disabled","selected"]),g="selection"===n,j="container"===n,x=("action"===n||g)&&Boolean(p)&&!h,b=j?"normal":void 0,A=j||g?"outlined":void 0,y=x?p:void 0,{onKeyDown:_}=(0,s.N)(p);return(0,r.jsx)(o.a,Object.assign({ref:t,role:x?"button":void 0,className:l({theme:i||b,view:c||A,type:n,selected:f,size:u,disabled:h,clickable:x},m),onClick:y,onKeyDown:x?_:void 0,tabIndex:x?0:void 0},v,{children:d}))}))}}]);
2
+ //# sourceMappingURL=job.ffa6ae5f.chunk.js.map