diff --git a/pkg/ui/v1alpha2/frontend/build/asset-manifest.json b/pkg/ui/v1alpha2/frontend/build/asset-manifest.json index feaa58b1580..7a8374de259 100644 --- a/pkg/ui/v1alpha2/frontend/build/asset-manifest.json +++ b/pkg/ui/v1alpha2/frontend/build/asset-manifest.json @@ -1,9 +1,9 @@ { - "main.js": "./static/js/main.8ac4c65c.chunk.js", + "main.js": "./static/js/main.7d299657.chunk.js", "runtime~main.js": "./static/js/runtime~main.d653cc00.js", "static/css/2.3e32d45a.chunk.css": "./static/css/2.3e32d45a.chunk.css", "static/js/2.ae40dfca.chunk.js": "./static/js/2.ae40dfca.chunk.js", "index.html": "./index.html", - "precache-manifest.bbb166e00cf4999bf8bab23e184dda32.js": "./precache-manifest.bbb166e00cf4999bf8bab23e184dda32.js", + "precache-manifest.0846a54b7f8ed672e19c89014688f8f5.js": "./precache-manifest.0846a54b7f8ed672e19c89014688f8f5.js", "service-worker.js": "./service-worker.js" } \ No newline at end of file diff --git a/pkg/ui/v1alpha2/frontend/build/index.html b/pkg/ui/v1alpha2/frontend/build/index.html index 815e1403abd..77a82a1ea86 100644 --- a/pkg/ui/v1alpha2/frontend/build/index.html +++ b/pkg/ui/v1alpha2/frontend/build/index.html @@ -1 +1 @@ -Katib UI
\ No newline at end of file +Katib UI
\ No newline at end of file diff --git a/pkg/ui/v1alpha2/frontend/build/precache-manifest.bbb166e00cf4999bf8bab23e184dda32.js b/pkg/ui/v1alpha2/frontend/build/precache-manifest.0846a54b7f8ed672e19c89014688f8f5.js similarity index 72% rename from pkg/ui/v1alpha2/frontend/build/precache-manifest.bbb166e00cf4999bf8bab23e184dda32.js rename to pkg/ui/v1alpha2/frontend/build/precache-manifest.0846a54b7f8ed672e19c89014688f8f5.js index d6ed90671f4..ad8a29addc4 100644 --- a/pkg/ui/v1alpha2/frontend/build/precache-manifest.bbb166e00cf4999bf8bab23e184dda32.js +++ b/pkg/ui/v1alpha2/frontend/build/precache-manifest.0846a54b7f8ed672e19c89014688f8f5.js @@ -4,8 +4,8 @@ self.__precacheManifest = [ "url": "./static/js/runtime~main.d653cc00.js" }, { - "revision": "91061d47dcbdbf88f1e6", - "url": "./static/js/main.8ac4c65c.chunk.js" + "revision": "a370de493752e44b98ec", + "url": "./static/js/main.7d299657.chunk.js" }, { "revision": "1356e6af903ab0f4271c", @@ -16,7 +16,7 @@ self.__precacheManifest = [ "url": "./static/css/2.3e32d45a.chunk.css" }, { - "revision": "58c8a0b24f15ef69047d2b581c310099", + "revision": "018435c6fec8e332d4f019d352d5fb29", "url": "./index.html" } ]; \ No newline at end of file diff --git a/pkg/ui/v1alpha2/frontend/build/service-worker.js b/pkg/ui/v1alpha2/frontend/build/service-worker.js index 62beba7c0a3..3c7e3029d9d 100644 --- a/pkg/ui/v1alpha2/frontend/build/service-worker.js +++ b/pkg/ui/v1alpha2/frontend/build/service-worker.js @@ -14,7 +14,7 @@ importScripts("https://storage.googleapis.com/workbox-cdn/releases/3.6.3/workbox-sw.js"); importScripts( - "./precache-manifest.bbb166e00cf4999bf8bab23e184dda32.js" + "./precache-manifest.0846a54b7f8ed672e19c89014688f8f5.js" ); workbox.clientsClaim(); diff --git a/pkg/ui/v1alpha2/frontend/build/static/js/main.8ac4c65c.chunk.js b/pkg/ui/v1alpha2/frontend/build/static/js/main.7d299657.chunk.js similarity index 63% rename from pkg/ui/v1alpha2/frontend/build/static/js/main.8ac4c65c.chunk.js rename to pkg/ui/v1alpha2/frontend/build/static/js/main.7d299657.chunk.js index 11d675548c4..eeb83741f96 100644 --- a/pkg/ui/v1alpha2/frontend/build/static/js/main.8ac4c65c.chunk.js +++ b/pkg/ui/v1alpha2/frontend/build/static/js/main.7d299657.chunk.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{279:function(e,a){},280:function(e,a){},356:function(e,a,t){e.exports=t(625)},600:function(e,a){},625:function(e,a,t){"use strict";t.r(a);var n=t(0),r=t.n(n),l=t(55),c=t.n(l),i=t(20),o=t.n(i),m=t(159),s=t.n(m),u=t(160),p=t.n(u),E=t(12),d=t.n(E),b=t(40),f=t.n(b),g=t(290),h=t.n(g),v=t(627),T=t(220),O=t(158),_=t.n(O),y=t(75),x=t.n(y),S=t(76),N=t.n(S),A=t(56),j=t.n(A),C=t(57),k=t.n(C),I=t(58),L=t.n(I),M=t(116),P=t.n(M),R=t(287),D=t.n(R),w=t(216),F=t.n(w),H=t(217),U=t.n(H),B=t(288),J=t.n(B),G=t(218),z=t.n(G),Y=t(215),Q=t.n(Y),W=t(104),X=t.n(W),V=t(289),K=t.n(V),Z=t(11),$=function(e){return{type:"TOGGLE_MENU",state:e}},q=function(e){return{type:"SUBMIT_YAML_REQUEST",yaml:e}},ee=function(e){return{type:"OPEN_DELETE_EXPERIMENT_DIALOG",experimentName:e}},ae=o()({list:{width:250},nested:{paddingLeft:40}}),te=Object(Z.b)(function(e){return{menuOpen:e.general.menuOpen}},{toggleMenu:$})(function(e){var a=r.a.useState(!1),t=Object(T.a)(a,2),n=t[0],l=t[1],c=r.a.useState(!1),i=Object(T.a)(c,2),o=i[0],m=i[1],s=ae(),u="primary";return r.a.createElement("div",null,r.a.createElement(_.a,{open:e.menuOpen,onClose:function(){e.toggleMenu(!1)}},r.a.createElement(x.a,null,r.a.createElement(j.a,{button:!0,onClick:function(){l(!n)}},r.a.createElement(k.a,null,r.a.createElement(D.a,{color:"primary"})),r.a.createElement(L.a,null,r.a.createElement(d.a,{variant:"title",color:u},"HP")),n?r.a.createElement(Q.a,null):r.a.createElement(X.a,null)),r.a.createElement(P.a,{in:n,timeout:"auto",unmountOnExit:!0},r.a.createElement(x.a,{component:"div",disablePadding:!0},r.a.createElement(j.a,{button:!0,className:s.nested,component:v.a,to:"/katib/hp"},r.a.createElement(k.a,null,r.a.createElement(F.a,{color:"primary"})),r.a.createElement(L.a,null,r.a.createElement(d.a,{variant:"title",color:u},"Submit"))),r.a.createElement(j.a,{button:!0,className:s.nested,component:v.a,to:"/katib/hp_monitor"},r.a.createElement(k.a,null,r.a.createElement(U.a,{color:"primary"})),r.a.createElement(L.a,null,r.a.createElement(d.a,{variant:"title",color:u},"Monitor"))))),r.a.createElement(N.a,null),r.a.createElement(j.a,{button:!0,onClick:function(){m(!o)}},r.a.createElement(k.a,null,r.a.createElement(J.a,{color:"primary"})),r.a.createElement(L.a,null,r.a.createElement(d.a,{variant:"title",color:u},"NAS")),n?r.a.createElement(Q.a,null):r.a.createElement(X.a,null)),r.a.createElement(P.a,{in:o,timeout:"auto",unmountOnExit:!0},r.a.createElement(x.a,{component:"div",disablePadding:!0},r.a.createElement(j.a,{button:!0,className:s.nested,component:v.a,to:"/katib/nas"},r.a.createElement(k.a,null,r.a.createElement(F.a,{color:"primary"})),r.a.createElement(L.a,null,r.a.createElement(d.a,{variant:"title",color:u},"Submit"))),r.a.createElement(j.a,{button:!0,className:s.nested,component:v.a,to:"/katib/nas_monitor"},r.a.createElement(k.a,null,r.a.createElement(U.a,{color:"primary"})),r.a.createElement(L.a,null,r.a.createElement(d.a,{variant:"title",color:u},"Monitor"))))),r.a.createElement(N.a,null),r.a.createElement(j.a,{button:!0,component:v.a,to:"/katib/trial"},r.a.createElement(k.a,null,r.a.createElement(z.a,{color:"primary"})),r.a.createElement(L.a,null,r.a.createElement(d.a,{variant:"title",color:u},"Trial Manifests"))),r.a.createElement(N.a,null),r.a.createElement(j.a,{button:!0,component:v.a,to:"/katib/collector"},r.a.createElement(k.a,null,r.a.createElement(z.a,{color:"primary"})),r.a.createElement(L.a,null,r.a.createElement(d.a,{variant:"title",color:u},"Metrics Collector Manifests"))),r.a.createElement(N.a,null),r.a.createElement(j.a,{button:!0,component:v.a,to:"/katib/about"},r.a.createElement(k.a,null,r.a.createElement(K.a,{color:"primary"})),r.a.createElement(L.a,null,r.a.createElement(d.a,{variant:"title",color:u},"About"))))))}),ne=o()({root:{flexGrow:1},grow:{flexGrow:1},menuButton:{marginLeft:-12,marginRight:20},link:{textDecoration:"none"}}),re=Object(Z.b)(null,{toggleMenu:$})(function(e){var a=ne();return r.a.createElement("div",{className:a.root},r.a.createElement(s.a,{position:"static",color:"primary"},r.a.createElement(p.a,null,r.a.createElement(f.a,{className:a.menuButton,color:"inherit","aria-label":"Menu",onClick:function(a){e.toggleMenu(!0)}},r.a.createElement(h.a,null)),r.a.createElement(d.a,{variant:"headline",color:"secondary",component:v.a,to:"/",classes:a.link},"Katib")),r.a.createElement(te,null)))}),le=t(161),ce=t.n(le),ie=t(291),oe=t.n(ie),me=o()({root:{flexGrow:1,marginTop:40},close:{padding:4}}),se=Object(Z.b)(function(e){return{snackText:e.general.snackText,snackOpen:e.general.snackOpen}},{closeSnackbar:function(){return{type:"CLOSE_SNACKBAR"}}})(function(e){var a=me();return r.a.createElement(ce.a,{anchorOrigin:{vertical:"top",horizontal:"center"},open:e.snackOpen,autoHideDuration:600,onClose:e.handleClose,ContentProps:{"aria-describedby":"message-id"},message:r.a.createElement("span",{id:"message-id"},e.snackText),action:[r.a.createElement(f.a,{key:"close","aria-label":"Close",color:"inherit",className:a.close,onClick:e.closeSnackbar},r.a.createElement(oe.a,null))]})}),ue=t(124),pe=t(630),Ee=t(63),de=t.n(Ee),be=t(3),fe=t.n(be),ge=Object(ue.a)({root:{margin:"0 auto",marginTop:50,flexGrow:1,width:"50%",height:400,textAlign:"center"},item:{padding:"40px !important"},block:{backgroundColor:"#4e4e4e",height:"100%",width:"100%",padding:40,"&:hover":{backgroundColor:"black"}}}),he=function(e){var a=ge();return r.a.createElement(de.a,{elevation:4,className:a.root},r.a.createElement(d.a,{variant:"h4"},"Welcome to Katib"),r.a.createElement(d.a,{variant:"h6"},"Choose type of experiment"),r.a.createElement("br",null),r.a.createElement(fe.a,{container:!0,spacing:40,alignContent:"center"},r.a.createElement(fe.a,{item:!0,xs:6,className:a.item,component:v.a,to:"/katib/hp/"},r.a.createElement(de.a,{className:a.block},r.a.createElement(d.a,{variant:"h6",color:"secondary"},"Hyperparameter Tuning"))),r.a.createElement(fe.a,{item:!0,xs:6,className:a.item,component:v.a,to:"/katib/nas/"},r.a.createElement(de.a,{className:a.block},r.a.createElement(d.a,{variant:"h6",color:"secondary"},"Neural Architecture Search")))),r.a.createElement("br",null),r.a.createElement(d.a,{variant:"h6"},"For additional information on Kubeflow visit ",r.a.createElement("a",{href:"https://kubeflow.org",target:"_blank",className:a.link},"website")),r.a.createElement(d.a,{variant:"h6"},"For additional information on Katib visit ",r.a.createElement("a",{href:"https://github.com/kubeflow/katib/",target:"_blank",className:a.link},"github")))},ve=t(628),Te=(t(250),t(251),t(252),t(125)),Oe=t.n(Te),_e=t(16),ye=t.n(_e),xe=o()({root:{flexGrow:1},editor:{margin:"0 auto"},submit:{textAlign:"center",marginTop:10},progress:{height:10,margin:10},close:{padding:4}}),Se=Object(Z.b)(function(e){return{yaml:e.hpCreate.currentYaml}},{changeYaml:function(e){return{type:"CHANGE_YAML_HP",payload:e}},submitYaml:q})(function(e){var a=xe();return r.a.createElement("div",{className:a.root},r.a.createElement("h1",null,"Generate"),r.a.createElement("hr",null),r.a.createElement("div",{className:a.editor},r.a.createElement(Oe.a,{mode:"text",theme:"tomorrow",value:e.yaml,onChange:function(a){e.changeYaml(a)},name:"yaml-editor",editorProps:{$blockScrolling:!0},tabSize:2,enableLiveAutocompletion:!0,fontSize:14,width:"100%",height:700})),r.a.createElement("div",{className:a.submit},r.a.createElement(ye.a,{variant:"contained",color:"primary",className:a.button,onClick:function(){e.submitYaml(e.yaml)}},"Deploy")))}),Ne=t(49),Ae=t.n(Ne),je=t(30),Ce=t.n(je),ke=t(32),Ie=t.n(ke),Le=t(18),Me=t.n(Le),Pe=o()({textField:{marginLeft:4,marginRight:4,width:"100%"},help:{padding:2,verticalAlign:"middle",marginRight:5},parameter:{padding:2,marginBottom:10}}),Re=Object(Z.b)(function(e){return{commonParametersMetadata:e.hpCreate.commonParametersMetadata}},{changeMeta:function(e,a){return{type:"CHANGE_META_HP",name:e,value:a}}})(function(e){var a=Pe(),t=function(a){return function(t){e.changeMeta(a,t.target.value)}};return r.a.createElement("div",null,e.commonParametersMetadata.map(function(e,n){return r.a.createElement("div",{key:n,className:a.parameter},r.a.createElement(fe.a,{container:!0,alignItems:"center"},r.a.createElement(fe.a,{item:!0,xs:12,sm:3},r.a.createElement(d.a,{variant:"subheading"},r.a.createElement(Ce.a,{title:e.description},r.a.createElement(Ie.a,{className:a.help,color:"primary"})),e.name)),r.a.createElement(fe.a,{item:!0,xs:12,sm:8},r.a.createElement(Me.a,{className:a.textField,value:e.value,onChange:t(e.name)}))))}))}),De=o()({textField:{marginLeft:4,marginRight:4,width:"100%"},help:{padding:2,verticalAlign:"middle",marginRight:5},parameter:{padding:2,marginBottom:10}}),we=Object(Z.b)(function(e){return{commonParametersSpec:e.hpCreate.commonParametersSpec}},{changeSpec:function(e,a){return{type:"CHANGE_SPEC_HP",name:e,value:a}}})(function(e){var a=De();return r.a.createElement("div",null,e.commonParametersSpec.map(function(t,n){return r.a.createElement("div",{key:n,className:a.parameter},r.a.createElement(fe.a,{container:!0,alignItems:"center"},r.a.createElement(fe.a,{item:!0,xs:12,sm:3},r.a.createElement(d.a,{variant:"subheading"},r.a.createElement(Ce.a,{title:t.description},r.a.createElement(Ie.a,{className:a.help,color:"primary"})),t.name)),r.a.createElement(fe.a,{item:!0,xs:12,sm:8},r.a.createElement(Me.a,{className:a.textField,value:t.value,onChange:(l=t.name,function(a){e.changeSpec(l,a.target.value)})}))));var l}))}),Fe=t(45),He=t.n(Fe),Ue=t(71),Be=t.n(Ue),Je=t(83),Ge=t.n(Je),ze=t(52),Ye=t.n(ze),Qe=t(53),We=t.n(Qe),Xe=t(51),Ve=t.n(Xe),Ke=t(50),Ze=t.n(Ke),$e=t(54),qe=t.n($e),ea=o()({textField:{marginLeft:4,marginRight:4,width:"100%"},help:{padding:2,verticalAlign:"middle",marginRight:5},parameter:{padding:2,marginBottom:10},selectBox:{width:150}}),aa=Object(Z.b)(function(e){return{allObjectiveTypes:e.hpCreate.allObjectiveTypes,objective:e.hpCreate.objective,additionalMetricNames:e.hpCreate.additionalMetricNames}},{changeObjective:function(e,a){return{type:"CHANGE_OBJECTIVE_HP",name:e,value:a}},addMetrics:function(){return{type:"ADD_METRICS_HP"}},editMetrics:function(e,a){return{type:"EDIT_METRICS_HP",index:e,value:a}},deleteMetrics:function(e){return{type:"DELETE_METRICS_HP",index:e}}})(function(e){var a=ea(),t=function(a){return function(t){e.changeObjective(a,t.target.value)}},n=function(a){return function(t){e.deleteMetrics(a)}};return r.a.createElement("div",null,e.objective.map(function(n,l){return"Type"===n.name?r.a.createElement("div",{key:l,className:a.parameter},r.a.createElement(fe.a,{container:!0,alignItems:"center"},r.a.createElement(fe.a,{item:!0,xs:12,sm:3},r.a.createElement(d.a,null,r.a.createElement(Ce.a,{title:n.description},r.a.createElement(Ie.a,{className:a.help,color:"primary"})),n.name)),r.a.createElement(fe.a,{item:!0,xs:12,sm:8},r.a.createElement(Ye.a,{variant:"outlined",className:a.formControl},r.a.createElement(Ve.a,null,"Objective Type"),r.a.createElement(We.a,{value:n.value,onChange:t(n.name),input:r.a.createElement(Ze.a,{labelWidth:160}),className:a.selectBox},e.allObjectiveTypes.map(function(e,a){return r.a.createElement(qe.a,{value:e,key:a},e)})))))):r.a.createElement("div",{key:l,className:a.parameter},r.a.createElement(fe.a,{container:!0,alignItems:"center"},r.a.createElement(fe.a,{item:!0,xs:12,sm:3},r.a.createElement(d.a,{variant:"subheading"},r.a.createElement(Ce.a,{title:n.description},r.a.createElement(Ie.a,{className:a.help,color:"primary"})),n.name)),r.a.createElement(fe.a,{item:!0,xs:12,sm:8},r.a.createElement(Me.a,{className:a.textField,value:n.value,onChange:t(n.name)}))))}),r.a.createElement("div",{className:a.parameter},r.a.createElement(fe.a,{container:!0,alignItems:"center"},r.a.createElement(fe.a,{item:!0,xs:12,sm:3},r.a.createElement(d.a,{variant:"subheading"},r.a.createElement(Ce.a,{title:"Additional metrics that you want to collect"},r.a.createElement(Ie.a,{className:a.help,color:"primary"})),"AdditionalMetricNames")),r.a.createElement(fe.a,{item:!0,xs:12,sm:8},e.additionalMetricNames.map(function(t,l){return r.a.createElement(fe.a,{container:!0},r.a.createElement(fe.a,{item:!0,xs:10},r.a.createElement(Me.a,{className:a.textField,value:t.value,onChange:(c=l,function(a){e.editMetrics(c,a.target.value)})})),r.a.createElement(fe.a,{item:!0,xs:2},r.a.createElement(f.a,{key:"close","aria-label":"Close",color:"primary",className:a.icon,onClick:n(l)},r.a.createElement(He.a,null))));var c})),r.a.createElement(fe.a,{item:!0,xs:12,sm:1},r.a.createElement(Be.a,{color:"primary",className:a.fab,onClick:e.addMetrics},r.a.createElement(Ge.a,null))))))}),ta=t(35),na=t(36),ra=t(38),la=t(37),ca=t(39),ia=function(e){return{type:"CLOSE_DIALOG",dialogType:e}},oa=function(e){return{type:"OPEN_DIALOG",dialogType:e,index:arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,templateType:arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1}},ma=function(){return{type:"FETCH_TRIAL_TEMPLATES_REQUEST"}},sa=function(e){function a(){var e,t;Object(ta.a)(this,a);for(var n=arguments.length,r=new Array(n),l=0;l1)for(var n=e.jobData[0],l=e.jobData.slice(1),c=1;c1&&r.a.createElement(ut.a,{data:[{type:"parcoords",line:{color:"red"},dimensions:t}],layout:{width:1e3,height:600}}))}),dt=t(162),bt=t.n(dt),ft=t(164),gt=t.n(ft),ht=t(126),vt=t.n(ht),Tt=t(163),Ot=t.n(Tt),_t=t(137),yt=t.n(_t),xt=function(e){function a(){var e,t;Object(ta.a)(this,a);for(var n=arguments.length,r=new Array(n),l=0;l1&&(t=this.props.jobData[0],n=this.props.jobData.slice(1)),r.a.createElement(de.a,{className:a.root},this.props.jobData.length>1&&r.a.createElement(bt.a,{className:a.table},r.a.createElement(Ot.a,null,r.a.createElement(yt.a,null,t.map(function(e){return r.a.createElement(vt.a,null,e)}))),r.a.createElement(gt.a,null,n.map(function(t,n){return r.a.createElement(yt.a,{key:n},t.map(function(t,n){return 0===n?r.a.createElement(vt.a,{className:a.hover,component:"th",scope:"row",onClick:e.fetchAndOpenDialog(t),key:n},t):r.a.createElement(vt.a,{align:"right"},t)}))}))))}}]),a}(r.a.Component),St=Object(Z.b)(function(e){return{jobData:e.hpMonitor.jobData}},{fetchHPJobTrialInfo:function(e){return{type:"FETCH_HP_JOB_TRIAL_INFO_REQUEST",trialName:e}}})(Object(ja.withStyles)(function(e){return{root:{width:"100%",marginTop:3*e.spacing.unit,overflowX:"auto"},table:{minWidth:700},hover:{"&:hover":{cursor:"pointer"}}}})(xt)),Nt=Object(Z.b)(function(e){return{open:e.hpMonitor.dialogOpen,trialData:e.hpMonitor.trialData}},{closeDialog:function(){return{type:"CLOSE_DIALOG"}}})(Object(ue.b)(function(e){return{header:{textAlign:"center"}}})(function(e){var a=e.classes,t=[];if(0!==e.trialData.length){for(var n=e.trialData.slice(1),l={},c=0;c0&&void 0!==arguments[0]?arguments[0]:zn,a=arguments.length>1?arguments[1]:void 0;switch(a.type){case"TOGGLE_MENU":return Object(Gn.a)({},e,{menuOpen:a.state});case"CLOSE_SNACKBAR":return Object(Gn.a)({},e,{snackOpen:!1});case"SUBMIT_YAML_SUCCESS":return Object(Gn.a)({},e,{snackOpen:!0,snackText:"Successfully submitted"});case"SUBMIT_YAML_FAILURE":return Object(Gn.a)({},e,{snackOpen:!0,snackText:a.message});case"DELETE_EXPERIMENT_FAILURE":return Object(Gn.a)({},e,{deleteDialog:!1,snackOpen:!0,snackText:"Whoops, something went wrong"});case"DELETE_EXPERIMENT_SUCCESS":return Object(Gn.a)({},e,{deleteDialog:!1,snackOpen:!0,snackText:"Successfully deleted. Press Update button"});case"OPEN_DELETE_EXPERIMENT_DIALOG":return Object(Gn.a)({},e,{deleteDialog:!0,deleteExperimentName:a.experimentName});case"CLOSE_DELETE_EXPERIMENT_DIALOG":return Object(Gn.a)({},e,{deleteDialog:!1});case"SUBMIT_NAS_JOB_REQUEST":return Object(Gn.a)({},e,{loading:!0});case"SUBMIT_NAS_JOB_SUCCESS":return Object(Gn.a)({},e,{loading:!1,snackOpen:!0,snackText:"Successfully submitted"});case"SUBMIT_NAS_JOB_FAILURE":return Object(Gn.a)({},e,{loading:!1,snackOpen:!0,snackText:a.message});case"SUBMIT_HP_JOB_REQUEST":return Object(Gn.a)({},e,{loading:!0});case"SUBMIT_HP_JOB_SUCCESS":return Object(Gn.a)({},e,{loading:!1,snackOpen:!0,snackText:"Successfully submitted"});case"SUBMIT_HP_JOB_FAILURE":return Object(Gn.a)({},e,{loading:!1,snackOpen:!0,snackText:a.message});default:return e}},Qn={commonParametersMetadata:[{name:"Name",value:"nasrl-example",description:"A name of an experiment"},{name:"Namespace",value:"kubeflow",description:"Namespace to deploy an experiment"}],commonParametersSpec:[{name:"ParallelTrialCount",value:"3",description:"How many trials can be processed in parallel"},{name:"MaxTrialCount",value:"12",description:"Max completed trials to mark experiment as succeeded"},{name:"MaxFailedTrialCount",value:"3",description:"Max failed trials to mark experiment as failed"}],allObjectiveTypes:["minimize","maximize"],objective:[{name:"Type",value:"maximize",description:"Type of optimization"},{name:"Goal",value:"0.99",description:"Goal of optimization"},{name:"ObjectiveMetricName",value:"Validation-Accuracy",description:"Name for the objective metric"}],additionalMetricNames:[],algorithmName:"nasrl",allAlgorithms:["nasrl","nasenvelopenet"],algorithmSettings:[{name:"lstm_num_cells",value:"64"},{name:"lstm_num_layers",value:"1"},{name:"lstm_keep_prob",value:"1.0"},{name:"optimizer",value:"adam"},{name:"init_learning_rate",value:"1e-3"},{name:"lr_decay_start",value:"0"},{name:"lr_decay_every",value:"1000"},{name:"lr_decay_rate",value:"0.9"},{name:"skip-target",value:"0.4"},{name:"skip-weight",value:"0.8"},{name:"l2_reg",value:"0"},{name:"entropy_weight",value:"1e-4"},{name:"baseline_decay",value:"0.9999"}],numLayers:"8",inputSize:["32","32","3"],outputSize:["10"],operations:[{operationType:"convolution",parameters:[{name:"filter_size",parameterType:"categorical",feasibleSpace:"list",min:"",max:"",step:"",list:[{value:"3"},{value:"5"},{value:"7"}]},{name:"num_filter",parameterType:"categorical",feasibleSpace:"list",min:"",max:"",step:"",list:[{value:"32"},{value:"48"},{value:"64"},{value:"96"},{value:"128"}]},{name:"stride",parameterType:"categorical",feasibleSpace:"list",min:"",max:"",step:"",list:[{value:"1"},{value:"2"}]}]},{operationType:"separable_convolution",parameters:[{name:"filter_size",parameterType:"categorical",feasibleSpace:"list",min:"",max:"",step:"",list:[{value:"3"},{value:"5"},{value:"7"}]},{name:"num_filter",parameterType:"categorical",feasibleSpace:"list",min:"",max:"",step:"",list:[{value:"32"},{value:"48"},{value:"64"},{value:"96"},{value:"128"}]},{name:"stride",parameterType:"categorical",feasibleSpace:"list",min:"",max:"",step:"",list:[{value:"1"},{value:"2"}]},{name:"depth_multiplier",parameterType:"categorical",feasibleSpace:"list",min:"",max:"",step:"",list:[{value:"1"},{value:"2"}]}]},{operationType:"depthwise_convolution",parameters:[{name:"filter_size",parameterType:"categorical",feasibleSpace:"list",min:"",max:"",step:"",list:[{value:"3"},{value:"5"},{value:"7"}]},{name:"stride",parameterType:"categorical",feasibleSpace:"list",min:"",max:"",step:"",list:[{value:"1"},{value:"2"}]},{name:"depth_multiplier",parameterType:"categorical",feasibleSpace:"list",min:"",max:"",step:"",list:[{value:"1"},{value:"2"}]}]},{operationType:"reduction",parameters:[{name:"reduction_type",parameterType:"categorical",feasibleSpace:"list",min:"",max:"",step:"",list:[{value:"max_pooling"},{value:"avg_pooling"}]},{name:"pool_size",parameterType:"int",feasibleSpace:"feasibleSpace",min:"2",max:"3",step:"1",list:[]}]}],allParameterTypes:["int","double","categorical"],trial:"nasRLTrialTemplate.yaml",currentYaml:"",snackText:"",snackOpen:!1},Wn=function(e,a){return e.findIndex(function(e){return e.name===a})},Xn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Qn,a=arguments.length>1?arguments[1]:void 0;switch(a.type){case"CHANGE_YAML_NAS":return Object(Gn.a)({},e,{currentYaml:a.payload});case"CHANGE_META_NAS":var t=e.commonParametersMetadata.slice(),n=Wn(t,a.name);return t[n].value=a.value,Object(Gn.a)({},e,{commonParametersMetadata:t});case"CHANGE_SPEC_NAS":var r=e.commonParametersSpec.slice();return r[n=Wn(r,a.name)].value=a.value,Object(Gn.a)({},e,{commonParametersSpec:r});case"CHANGE_OBJECTIVE_NAS":var l=e.objective.slice();return l[n=Wn(l,a.name)].value=a.value,Object(Gn.a)({},e,{objective:l});case"ADD_METRICS_NAS":var c=e.additionalMetricNames.slice();return c.push({value:""}),Object(Gn.a)({},e,{additionalMetricNames:c});case"DELETE_METRICS_NAS":return(c=e.additionalMetricNames.slice()).splice(a.index,1),Object(Gn.a)({},e,{additionalMetricNames:c});case"EDIT_METRICS_NAS":return(c=e.additionalMetricNames.slice())[a.index].value=a.value,Object(Gn.a)({},e,{additionalMetricNames:c});case"CHANGE_ALGORITHM_NAME_NAS":return Object(Gn.a)({},e,{algorithmName:a.algorithmName});case"ADD_ALGORITHM_SETTING_NAS":var i=e.algorithmSettings.slice();return i.push({name:"",value:""}),Object(Gn.a)({},e,{algorithmSettings:i});case"CHANGE_ALGORITHM_SETTING_NAS":return(i=e.algorithmSettings.slice())[a.index][a.field]=a.value,Object(Gn.a)({},e,{algorithmSettings:i});case"DELETE_ALGORITHM_SETTING_NAS":return(i=e.algorithmSettings.slice()).splice(a.index,1),Object(Gn.a)({},e,{algorithmSettings:i});case"EDIT_NUM_LAYERS":var o=a.value;return Object(Gn.a)({},e,{numLayers:o});case"ADD_SIZE":var m=e[a.sizeType].slice();return m.push("0"),Object(Gn.a)({},e,Object(Nn.a)({},a.sizeType,m));case"EDIT_SIZE":return(m=e[a.sizeType].slice())[a.index]=a.value,Object(Gn.a)({},e,Object(Nn.a)({},a.sizeType,m));case"DELETE_SIZE":return(m=e[a.sizeType].slice()).splice(a.index,1),Object(Gn.a)({},e,Object(Nn.a)({},a.sizeType,m));case"ADD_OPERATION":var s=e.operations.slice();return s.push({operationType:"",parameters:[]}),Object(Gn.a)({},e,{operations:s});case"DELETE_OPERATION":return(s=e.operations.slice()).splice(a.index,1),Object(Gn.a)({},e,{operations:s});case"CHANGE_OPERATION":return(s=e.operations.slice())[a.index].operationType=a.value,Object(Gn.a)({},e,{operations:s});case"ADD_PARAMETER_NAS":return(s=e.operations.slice())[a.opIndex].parameters.push({name:"",parameterType:"categorical",feasibleSpace:"list",min:"",max:"",step:"",list:[]}),Object(Gn.a)({},e,{operations:s});case"CHANGE_PARAMETER_NAS":return(s=e.operations.slice())[a.opIndex].parameters[a.paramIndex][a.field]=a.value,Object(Gn.a)({},e,{operations:s});case"DELETE_PARAMETER_NAS":return(s=e.operations.slice())[a.opIndex].parameters.splice(a.paramIndex,1),Object(Gn.a)({},e,{operations:s});case"ADD_LIST_PARAMETER_NAS":return(s=e.operations.slice())[a.opIndex].parameters[a.paramIndex].list.push({value:""}),Object(Gn.a)({},e,{operations:s});case"DELETE_LIST_PARAMETER_NAS":return(s=e.operations.slice())[a.opIndex].parameters[a.paramIndex].list.splice(a.listIndex,1),Object(Gn.a)({},e,{operations:s});case"EDIT_LIST_PARAMETER_NAS":return(s=e.operations.slice())[a.opIndex].parameters[a.paramIndex].list[a.listIndex].value=a.value,Object(Gn.a)({},e,{operations:s});case"CHANGE_TRIAL_NAS":return Object(Gn.a)({},e,{trial:a.trial});case"CLOSE_SNACKBAR":return Object(Gn.a)({},e,{snackOpen:!1});default:return e}},Vn={filter:"",filterType:{Created:!0,Running:!0,Restarting:!0,Succeeded:!0,Failed:!0},jobsList:[],filteredJobsList:[],loading:!1,steps:[]},Kn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Vn,a=arguments.length>1?arguments[1]:void 0;switch(a.type){case"FILTER_JOBS":var t=e.jobsList.slice(),n=t.filter(function(e){return e.name.includes(a.filter)}),r=Object.assign({},e.filterType),l=Object.keys(r),c=l.filter(function(e){return r[e]}),i=n.filter(function(e){return c.includes(e.status)});return Object(Gn.a)({},e,{filteredJobsList:i,filter:a.filter});case"CHANGE_TYPE":var o=Object.assign({},e.filterType);o[a.filter]=a.checked;var m=Object.keys(o).filter(function(e){return o[e]}),s=e.jobsList.slice().filter(function(e){return m.includes(e.status)});return Object(Gn.a)({},e,{filterType:o,filteredJobsList:s});case"FETCH_NAS_JOBS_SUCCESS":return t=a.jobs,r=Object.assign({},e.filterType),l=Object.keys(r),c=l.filter(function(e){return r[e]}),i=t.filter(function(e){return c.includes(e.status)}),Object(Gn.a)({},e,{jobsList:a.jobs,filteredJobsList:i});case"FETCH_NAS_JOB_INFO_REQUEST":return Object(Gn.a)({},e,{loading:!0});case"FETCH_NAS_JOB_INFO_FAILURE":return Object(Gn.a)({},e,{loading:!1});case"FETCH_NAS_JOB_INFO_SUCCESS":return Object(Gn.a)({},e,{loading:!1,steps:a.steps});default:return e}},Zn={loading:!1,commonParametersMetadata:[{name:"Name",value:"random-experiment",description:"A name of an experiment"},{name:"Namespace",value:"kubeflow",description:"Namespace to deploy an experiment"}],commonParametersSpec:[{name:"ParallelTrialCount",value:"3",description:"How many trials can be processed in parallel"},{name:"MaxTrialCount",value:"12",description:"Max completed trials to mark experiment as succeeded"},{name:"MaxFailedTrialCount",value:"3",description:"Max failed trials to mark experiment as failed"}],allObjectiveTypes:["minimize","maximize"],objective:[{name:"Type",value:"maximize",description:"Type of optimization"},{name:"Goal",value:"0.99",description:"Goal of optimization"},{name:"ObjectiveMetricName",value:"Validation-accuracy",description:"Name for the objective metric"}],additionalMetricNames:[{value:"accuracy"}],algorithmName:"random",allAlgorithms:["grid","random","hyperband","bayesianoptimization"],algorithmSettings:[],parameters:[{name:"--lr",parameterType:"double",feasibleSpace:"feasibleSpace",min:"0.01",max:"0.03",list:[]},{name:"--num-layers",parameterType:"int",feasibleSpace:"feasibleSpace",min:"2",max:"5",list:[]},{name:"--optimizer",parameterType:"categorical",feasibleSpace:"list",min:"",max:"",list:[{value:"sgd"},{value:"adam"},{value:"ftrl"}]}],allParameterTypes:["int","double","categorical"],trial:"cpuTrialTemplate.yaml",currentYaml:""},$n=function(e,a){return e.findIndex(function(e){return e.name===a})},qn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Zn,a=arguments.length>1?arguments[1]:void 0;switch(a.type){case"CHANGE_YAML_HP":return Object(Gn.a)({},e,{currentYaml:a.payload});case"CHANGE_META_HP":var t=e.commonParametersMetadata.slice(),n=$n(t,a.name);return t[n].value=a.value,Object(Gn.a)({},e,{commonParametersMetadata:t});case"CHANGE_SPEC_HP":var r=e.commonParametersSpec.slice();return r[n=$n(r,a.name)].value=a.value,Object(Gn.a)({},e,{commonParametersSpec:r});case"CHANGE_OBJECTIVE_HP":var l=e.objective.slice();return l[n=$n(l,a.name)].value=a.value,Object(Gn.a)({},e,{objective:l});case"ADD_METRICS_HP":var c=e.additionalMetricNames.slice();return c.push({value:""}),Object(Gn.a)({},e,{additionalMetricNames:c});case"DELETE_METRICS_HP":return(c=e.additionalMetricNames.slice()).splice(a.index,1),Object(Gn.a)({},e,{additionalMetricNames:c});case"EDIT_METRICS_HP":return(c=e.additionalMetricNames.slice())[a.index].value=a.value,Object(Gn.a)({},e,{additionalMetricNames:c});case"CHANGE_ALGORITHM_NAME_HP":return Object(Gn.a)({},e,{algorithmName:a.algorithmName});case"ADD_ALGORITHM_SETTING_HP":var i=e.algorithmSettings.slice();return i.push({name:"",value:""}),Object(Gn.a)({},e,{algorithmSettings:i});case"CHANGE_ALGORITHM_SETTING_HP":return(i=e.algorithmSettings.slice())[a.index][a.field]=a.value,Object(Gn.a)({},e,{algorithmSettings:i});case"DELETE_ALGORITHM_SETTING_HP":return(i=e.algorithmSettings.slice()).splice(a.index,1),Object(Gn.a)({},e,{algorithmSettings:i});case"CHANGE_PARAMETER_HP":var o=e.parameters.slice();return o.push({name:"",parameterType:"",feasibleSpace:"feasibleSpace",min:"",max:"",list:[]}),Object(Gn.a)({},e,{parameters:o});case"EDIT_PARAMTER_HP":return(o=e.parameters.slice())[a.index][a.field]=a.value,Object(Gn.a)({},e,{parameters:o});case"DELETE_PARAMETER_HP":return(o=e.parameters.slice()).splice(a.index,1),Object(Gn.a)({},e,{parameters:o});case"ADD_LIST_PARAMETER_HP":return(o=e.parameters.slice())[a.paramIndex].list.push({value:""}),Object(Gn.a)({},e,{parameters:o});case"EDIT_LIST_PARAMETER_HP":return(o=e.parameters.slice())[a.paramIndex].list[a.index].value=a.value,Object(Gn.a)({},e,{parameters:o});case"DELETE_LIST_PARAMETER_HP":return(o=e.parameters.slice())[a.paramIndex].list.splice(a.index,1),Object(Gn.a)({},e,{parameters:o});case"CHANGE_TRIAL_HP":return Object(Gn.a)({},e,{trial:a.trial});default:return e}},er={menuOpen:!1,addOpen:!1,editOpen:!1,deleteOpen:!1,trialTemplates:[],collectorTemplates:[],newTemplateName:"",newTemplateYaml:"",currentTemplateIndex:"",edittedTemplate:{name:"",yaml:""},currentTemplateName:""},ar=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:er,a=arguments.length>1?arguments[1]:void 0;switch(a.type){case"CLOSE_DIALOG":return Object(Gn.a)({},e,{editOpen:!1,addOpen:!1,deleteOpen:!1});case"OPEN_DIALOG":switch(a.dialogType){case"delete":switch(a.templateType){case"trial":return Object(Gn.a)({},e,{deleteOpen:!0,currentTemplateIndex:a.index,currentTemplateName:e.trialTemplates[a.index].name});case"collector":return Object(Gn.a)({},e,{deleteOpen:!0,currentTemplateIndex:a.index,currentTemplateName:e.collectorTemplates[a.index].name});default:return Object(Gn.a)({},e)}case"edit":switch(a.templateType){case"trial":return Object(Gn.a)({},e,{editOpen:!0,currentTemplateIndex:a.index,edittedTemplate:e.trialTemplates[a.index]});case"collector":return Object(Gn.a)({},e,{editOpen:!0,currentTemplateIndex:a.index,edittedTemplate:e.collectorTemplates[a.index]});default:return Object(Gn.a)({},e)}case"add":return Object(Gn.a)({},e,{addOpen:!0});default:return e}case"CHANGE_TEMPLATE":var t=e.edittedTemplate;return t[a.field]=a.value,Object(Gn.a)({},e,{edittedTemplate:t});case"FETCH_TRIAL_TEMPLATES_SUCCESS":return Object(Gn.a)({},e,{trialTemplates:a.templates});case"FETCH_COLLECTOR_TEMPLATES_SUCCESS":return Object(Gn.a)({},e,{collectorTemplates:a.templates});case"ADD_TEMPLATE_SUCCESS":case"DELETE_TEMPLATE_SUCCESS":case"EDIT_TEMPLATE_SUCCESS":switch(a.templateType){case"trial":return Object(Gn.a)({},e,{addOpen:!1,deleteOpen:!1,editOpen:!1,trialTemplates:a.templates});case"collector":return Object(Gn.a)({},e,{addOpen:!1,deleteOpen:!1,editOpen:!1,collectorTemplates:a.templates});default:return Object(Gn.a)({},e)}case"ADD_TEMPLATE_FAILURE":case"EDIT_TEMPLATE_FAILURE":case"DELETE_TEMPLATE_FAILURE":return Object(Gn.a)({},e,{addOpen:!1,deleteOpen:!1,editOpen:!1});default:return e}},tr={filter:"",filterType:{Created:!0,Running:!0,Restarting:!0,Succeeded:!0,Failed:!0},jobsList:[],filteredJobsList:[],jobData:[],trialData:[],dialogOpen:!1,loading:!1},nr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tr,a=arguments.length>1?arguments[1]:void 0;switch(a.type){case"FILTER_JOBS":var t=e.jobsList.slice(),n=t.filter(function(e){return e.name.includes(a.filter)}),r=Object.assign({},e.filterType),l=Object.keys(r),c=l.filter(function(e){return r[e]}),i=n.filter(function(e){return c.includes(e.status)});return Object(Gn.a)({},e,{filteredJobsList:i,filter:a.filter});case"CHANGE_TYPE":var o=Object.assign({},e.filterType);o[a.filter]=a.checked;var m=Object.keys(o).filter(function(e){return o[e]}),s=e.jobsList.slice().filter(function(e){return m.includes(e.status)});return Object(Gn.a)({},e,{filterType:o,filteredJobsList:s});case"FETCH_HP_JOBS_SUCCESS":return t=a.jobs,r=Object.assign({},e.filterType),l=Object.keys(r),c=l.filter(function(e){return r[e]}),i=t.filter(function(e){return c.includes(e.status)}),Object(Gn.a)({},e,{jobsList:a.jobs,filteredJobsList:i});case"FETCH_HP_JOB_INFO_REQUEST":return Object(Gn.a)({},e,{loading:!0});case"FETCH_HP_JOB_INFO_SUCCESS":return Object(Gn.a)({},e,{jobData:a.jobData,loading:!1});case"FETCH_HP_JOB_INFO_FAILURE":return Object(Gn.a)({},e,{loading:!1});case"FETCH_HP_JOB_TRIAL_INFO_SUCCESS":return Object(Gn.a)({},e,{trialData:a.trialData,dialogOpen:!0});case"CLOSE_DIALOG":return Object(Gn.a)({},e,{dialogOpen:!1});default:return e}},rr=Object(Hn.c)((Dn={},Object(Nn.a)(Dn,"general",Yn),Object(Nn.a)(Dn,"template",ar),Object(Nn.a)(Dn,"hpCreate",qn),Object(Nn.a)(Dn,"hpMonitor",nr),Object(Nn.a)(Dn,"nasCreate",Xn),Object(Nn.a)(Dn,"nasMonitor",Kn),Dn));var lr=t(13),cr=t.n(lr),ir=t(6),or=t(62),mr=t.n(or),sr=cr.a.mark(Hr),ur=cr.a.mark(function e(){var a,t;return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,Object(ir.e)("SUBMIT_YAML_REQUEST");case 3:return a=e.sent,e.prev=4,e.next=7,Object(ir.b)(pr,a.yaml);case 7:if(200!==(t=e.sent).status){e.next=13;break}return e.next=11,Object(ir.d)({type:"SUBMIT_YAML_SUCCESS"});case 11:e.next=15;break;case 13:return e.next=15,Object(ir.d)({type:"SUBMIT_YAML_FAILURE",message:t.message});case 15:e.next=21;break;case 17:return e.prev=17,e.t0=e.catch(4),e.next=21,Object(ir.d)({type:"SUBMIT_YAML_FAILURE"});case 21:e.next=0;break;case 23:case"end":return e.stop()}},e,null,[[4,17]])}),pr=cr.a.mark(function e(a){var t,n;return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t={yaml:a},e.next=4,Object(ir.b)(mr.a.post,"/katib/submit_yaml/",t);case 4:return n=e.sent,e.abrupt("return",n);case 8:return e.prev=8,e.t0=e.catch(0),e.abrupt("return",{status:500,message:e.t0.response.data});case 11:case"end":return e.stop()}},e,null,[[0,8]])}),Er=cr.a.mark(function e(){var a;return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,Object(ir.e)("DELETE_EXPERIMENT_REQUEST");case 3:return a=e.sent,e.prev=4,e.next=7,Object(ir.b)(dr,a.experimentName);case 7:if(200!==e.sent.status){e.next=13;break}return e.next=11,Object(ir.d)({type:"DELETE_EXPERIMENT_SUCCESS"});case 11:e.next=15;break;case 13:return e.next=15,Object(ir.d)({type:"DELETE_EXPERIMENT_FAILURE"});case 15:e.next=21;break;case 17:return e.prev=17,e.t0=e.catch(4),e.next=21,Object(ir.d)({type:"DELETE_EXPERIMENT_FAILURE"});case 21:e.next=0;break;case 23:case"end":return e.stop()}},e,null,[[4,17]])}),dr=cr.a.mark(function e(a){var t;return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(ir.b)(mr.a.get,"/katib/delete_experiment/?experimentName=".concat(a));case 3:return t=e.sent,e.abrupt("return",t);case 7:return e.prev=7,e.t0=e.catch(0),e.next=11,Object(ir.d)({type:"DELETE_EXPERIMENT_FAILURE"});case 11:case"end":return e.stop()}},e,null,[[0,7]])}),br=cr.a.mark(function e(){var a,t;return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,Object(ir.e)("SUBMIT_HP_JOB_REQUEST");case 3:return a=e.sent,e.prev=4,e.next=7,Object(ir.b)(fr,a.data);case 7:if(200!==(t=e.sent).status){e.next=13;break}return e.next=11,Object(ir.d)({type:"SUBMIT_HP_JOB_SUCCESS"});case 11:e.next=15;break;case 13:return e.next=15,Object(ir.d)({type:"SUBMIT_HP_JOB_FAILURE",message:t.message});case 15:e.next=21;break;case 17:return e.prev=17,e.t0=e.catch(4),e.next=21,Object(ir.d)({type:"SUBMIT_HP_JOB_FAILURE"});case 21:e.next=0;break;case 23:case"end":return e.stop()}},e,null,[[4,17]])}),fr=cr.a.mark(function e(a){var t,n;return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t={postData:a},e.next=4,Object(ir.b)(mr.a.post,"/katib/submit_hp_job/",t);case 4:return n=e.sent,e.abrupt("return",n);case 8:return e.prev=8,e.t0=e.catch(0),e.abrupt("return",{status:500,message:e.t0.response.data});case 11:case"end":return e.stop()}},e,null,[[0,8]])}),gr=cr.a.mark(function e(){var a,t;return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,Object(ir.e)("FETCH_HP_JOBS_REQUEST");case 3:return e.sent,e.prev=4,e.next=7,Object(ir.b)(hr);case 7:if(200!==(a=e.sent).status){e.next=15;break}return(t=Object.assign(a.data,{})).map(function(e,a){Object.keys(e).forEach(function(a){var t=e[a];delete e[a],e[a.toLowerCase()]=t})}),e.next=13,Object(ir.d)({type:"FETCH_HP_JOBS_SUCCESS",jobs:t});case 13:e.next=17;break;case 15:return e.next=17,Object(ir.d)({type:"FETCH_HP_JOBS_FAILURE"});case 17:e.next=23;break;case 19:return e.prev=19,e.t0=e.catch(4),e.next=23,Object(ir.d)({type:"FETCH_HP_JOBS_FAILURE"});case 23:e.next=0;break;case 25:case"end":return e.stop()}},e,null,[[4,19]])}),hr=cr.a.mark(function e(){var a;return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(ir.b)(mr.a.get,"/katib/fetch_hp_jobs/");case 3:return a=e.sent,e.abrupt("return",a);case 7:return e.prev=7,e.t0=e.catch(0),e.next=11,Object(ir.d)({type:"FETCH_HP_JOBS_FAILURE"});case 11:case"end":return e.stop()}},e,null,[[0,7]])}),vr=cr.a.mark(function e(){var a,t,n;return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,Object(ir.e)("FETCH_HP_JOB_INFO_REQUEST");case 3:return a=e.sent,e.prev=4,e.next=7,Object(ir.b)(Tr,a.experimentName);case 7:if(200!==(t=e.sent).status){e.next=14;break}return n=t.data.split("\n").map(function(e,a){return e.split(",")}),e.next=12,Object(ir.d)({type:"FETCH_HP_JOB_INFO_SUCCESS",jobData:n});case 12:e.next=16;break;case 14:return e.next=16,Object(ir.d)({type:"FETCH_HP_JOB_INFO_FAILURE"});case 16:e.next=22;break;case 18:return e.prev=18,e.t0=e.catch(4),e.next=22,Object(ir.d)({type:"FETCH_HP_JOB_INFO_FAILURE"});case 22:e.next=0;break;case 24:case"end":return e.stop()}},e,null,[[4,18]])}),Tr=cr.a.mark(function e(a){var t;return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(ir.b)(mr.a.get,"/katib/fetch_hp_job_info/?experimentName=".concat(a));case 3:return t=e.sent,e.abrupt("return",t);case 7:return e.prev=7,e.t0=e.catch(0),e.next=11,Object(ir.d)({type:"FETCH_HP_JOB_INFO_FAILURE"});case 11:case"end":return e.stop()}},e,null,[[0,7]])}),Or=cr.a.mark(function e(){var a,t,n;return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,Object(ir.e)("FETCH_HP_JOB_TRIAL_INFO_REQUEST");case 3:return a=e.sent,e.prev=4,e.next=7,Object(ir.b)(_r,a.trialName);case 7:if(200!==(t=e.sent).status){e.next=14;break}return n=t.data.split("\n").map(function(e,a){return e.split(",")}),e.next=12,Object(ir.d)({type:"FETCH_HP_JOB_TRIAL_INFO_SUCCESS",trialData:n});case 12:e.next=16;break;case 14:return e.next=16,Object(ir.d)({type:"FETCH_HP_JOB_TRIAL_INFO_FAILURE"});case 16:e.next=22;break;case 18:return e.prev=18,e.t0=e.catch(4),e.next=22,Object(ir.d)({type:"FETCH_HP_JOB_TRIAL_INFO_FAILURE"});case 22:e.next=0;break;case 24:case"end":return e.stop()}},e,null,[[4,18]])}),_r=cr.a.mark(function e(a){var t;return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(ir.b)(mr.a.get,"/katib/fetch_hp_job_trial_info/?trialName=".concat(a));case 3:return t=e.sent,e.abrupt("return",t);case 7:return e.prev=7,e.t0=e.catch(0),e.next=11,Object(ir.d)({type:"FETCH_HP_JOB_TRIAL_INFO_FAILURE"});case 11:case"end":return e.stop()}},e,null,[[0,7]])}),yr=cr.a.mark(function e(){var a,t;return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,Object(ir.e)("SUBMIT_NAS_JOB_REQUEST");case 3:return a=e.sent,e.prev=4,e.next=7,Object(ir.b)(xr,a.data);case 7:if(200!==(t=e.sent).status){e.next=13;break}return e.next=11,Object(ir.d)({type:"SUBMIT_NAS_JOB_SUCCESS"});case 11:e.next=15;break;case 13:return e.next=15,Object(ir.d)({type:"SUBMIT_NAS_JOB_FAILURE",message:t.message});case 15:e.next=21;break;case 17:return e.prev=17,e.t0=e.catch(4),e.next=21,Object(ir.d)({type:"SUBMIT_NAS_JOB_FAILURE"});case 21:e.next=0;break;case 23:case"end":return e.stop()}},e,null,[[4,17]])}),xr=cr.a.mark(function e(a){var t,n;return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t={postData:a},e.next=4,Object(ir.b)(mr.a.post,"/katib/submit_nas_job/",t);case 4:return n=e.sent,e.abrupt("return",n);case 8:return e.prev=8,e.t0=e.catch(0),e.abrupt("return",{status:500,message:e.t0.response.data});case 11:case"end":return e.stop()}},e,null,[[0,8]])}),Sr=cr.a.mark(function e(){var a,t;return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,Object(ir.e)("FETCH_NAS_JOBS_REQUEST");case 3:return e.sent,e.prev=4,e.next=7,Object(ir.b)(Nr);case 7:if(200!==(a=e.sent).status){e.next=15;break}return(t=Object.assign(a.data,{})).map(function(e,a){Object.keys(e).forEach(function(a){var t=e[a];delete e[a],e[a.toLowerCase()]=t})}),e.next=13,Object(ir.d)({type:"FETCH_NAS_JOBS_SUCCESS",jobs:t});case 13:e.next=17;break;case 15:return e.next=17,Object(ir.d)({type:"FETCH_NAS_JOBS_FAILURE"});case 17:e.next=23;break;case 19:return e.prev=19,e.t0=e.catch(4),e.next=23,Object(ir.d)({type:"FETCH_NAS_JOBS_FAILURE"});case 23:e.next=0;break;case 25:case"end":return e.stop()}},e,null,[[4,19]])}),Nr=cr.a.mark(function e(){var a;return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(ir.b)(mr.a.get,"/katib/fetch_nas_jobs/");case 3:return a=e.sent,e.abrupt("return",a);case 7:return e.prev=7,e.t0=e.catch(0),e.next=11,Object(ir.d)({type:"FETCH_NAS_JOBS_FAILURE"});case 11:case"end":return e.stop()}},e,null,[[0,7]])}),Ar=cr.a.mark(function e(){var a,t,n;return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,Object(ir.e)("FETCH_NAS_JOB_INFO_REQUEST");case 3:return a=e.sent,e.prev=4,e.next=7,Object(ir.b)(jr,a.experimentName);case 7:if(200!==(t=e.sent).status){e.next=15;break}return(n=Object.assign(t.data,{})).map(function(e,a){Object.keys(e).forEach(function(a){var t=e[a];delete e[a],e[a.toLowerCase()]=t})}),e.next=13,Object(ir.d)({type:"FETCH_NAS_JOB_INFO_SUCCESS",steps:n});case 13:e.next=17;break;case 15:return e.next=17,Object(ir.d)({type:"FETCH_NAS_JOB_INFO_FAILURE"});case 17:e.next=23;break;case 19:return e.prev=19,e.t0=e.catch(4),e.next=23,Object(ir.d)({type:"FETCH_NAS_JOB_INFO_FAILURE"});case 23:e.next=0;break;case 25:case"end":return e.stop()}},e,null,[[4,19]])}),jr=cr.a.mark(function e(a){var t;return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(ir.b)(mr.a.get,"/katib/fetch_nas_job_info/?experimentName=".concat(a));case 3:return t=e.sent,e.abrupt("return",t);case 7:return e.prev=7,e.t0=e.catch(0),e.next=11,Object(ir.d)({type:"FETCH_NAS_JOB_INFO_FAILURE"});case 11:case"end":return e.stop()}},e,null,[[0,7]])}),Cr=cr.a.mark(function e(){var a,t;return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,Object(ir.e)("FETCH_TRIAL_TEMPLATES_REQUEST");case 3:return e.sent,e.prev=4,e.next=7,Object(ir.b)(kr);case 7:if(200!==(a=e.sent).status){e.next=15;break}return(t=Object.assign(a.data,{})).map(function(e,a){Object.keys(e).forEach(function(a){var t=e[a];delete e[a],e[a.toLowerCase()]=t})}),e.next=13,Object(ir.d)({type:"FETCH_TRIAL_TEMPLATES_SUCCESS",templates:t});case 13:e.next=17;break;case 15:return e.next=17,Object(ir.d)({type:"FETCH_TRIAL_TEMPLATES_FAILURE"});case 17:e.next=23;break;case 19:return e.prev=19,e.t0=e.catch(4),e.next=23,Object(ir.d)({type:"FETCH_TRIAL_TEMPLATES_FAILURE"});case 23:e.next=0;break;case 25:case"end":return e.stop()}},e,null,[[4,19]])}),kr=cr.a.mark(function e(){var a;return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(ir.b)(mr.a.get,"/katib/fetch_trial_templates/");case 3:return a=e.sent,e.abrupt("return",a);case 7:return e.prev=7,e.t0=e.catch(0),e.next=11,Object(ir.d)({type:"FETCH_TRIAL_TEMPLATES_FAILURE"});case 11:case"end":return e.stop()}},e,null,[[0,7]])}),Ir=cr.a.mark(function e(){var a,t;return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,Object(ir.e)("FETCH_COLLECTOR_TEMPLATES_REQUEST");case 3:return e.sent,e.prev=4,e.next=7,Object(ir.b)(Lr);case 7:if(200!==(a=e.sent).status){e.next=15;break}return(t=Object.assign(a.data,{})).map(function(e,a){Object.keys(e).forEach(function(a){var t=e[a];delete e[a],e[a.toLowerCase()]=t})}),e.next=13,Object(ir.d)({type:"FETCH_COLLECTOR_TEMPLATES_SUCCESS",templates:t});case 13:e.next=17;break;case 15:return e.next=17,Object(ir.d)({type:"FETCH_COLLECTOR_TEMPLATES_FAILURE"});case 17:e.next=23;break;case 19:return e.prev=19,e.t0=e.catch(4),e.next=23,Object(ir.d)({type:"FETCH_COLLECTOR_TEMPLATES_FAILURE"});case 23:e.next=0;break;case 25:case"end":return e.stop()}},e,null,[[4,19]])}),Lr=cr.a.mark(function e(){var a;return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(ir.b)(mr.a.get,"/katib/fetch_collector_templates/");case 3:return a=e.sent,e.abrupt("return",a);case 7:return e.prev=7,e.t0=e.catch(0),e.next=11,Object(ir.d)({type:"FETCH_COLLECTOR_TEMPLATES_FAILURE"});case 11:case"end":return e.stop()}},e,null,[[0,7]])}),Mr=cr.a.mark(function e(){var a,t,n;return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,Object(ir.e)("ADD_TEMPLATE_REQUEST");case 3:return a=e.sent,e.prev=4,e.next=7,Object(ir.b)(Pr,a.name,a.yaml,a.kind,a.action);case 7:if(200!==(t=e.sent).status){e.next=15;break}return(n=Object.assign(t.data.Data,{})).map(function(e,a){Object.keys(e).forEach(function(a){var t=e[a];delete e[a],e[a.toLowerCase()]=t})}),e.next=13,Object(ir.d)({type:"ADD_TEMPLATE_SUCCESS",templates:n,templateType:t.data.TemplateType});case 13:e.next=17;break;case 15:return e.next=17,Object(ir.d)({type:"ADD_TEMPLATE_FAILURE"});case 17:e.next=23;break;case 19:return e.prev=19,e.t0=e.catch(4),e.next=23,Object(ir.d)({type:"ADD_TEMPLATE_FAILURE"});case 23:e.next=0;break;case 25:case"end":return e.stop()}},e,null,[[4,19]])}),Pr=cr.a.mark(function e(a,t,n,r){var l,c;return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,l={name:a,yaml:t,kind:n,action:r},e.next=4,Object(ir.b)(mr.a.post,"/katib/update_template/",l);case 4:return c=e.sent,e.abrupt("return",c);case 8:return e.prev=8,e.t0=e.catch(0),e.next=12,Object(ir.d)({type:"ADD_TEMPLATE_FAILURE"});case 12:case"end":return e.stop()}},e,null,[[0,8]])}),Rr=cr.a.mark(function e(){var a,t,n;return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,Object(ir.e)("EDIT_TEMPLATE_REQUEST");case 3:return a=e.sent,e.prev=4,e.next=7,Object(ir.b)(Dr,a.name,a.yaml,a.kind,a.action);case 7:if(200!==(t=e.sent).status){e.next=15;break}return(n=Object.assign(t.data.Data,{})).map(function(e,a){Object.keys(e).forEach(function(a){var t=e[a];delete e[a],e[a.toLowerCase()]=t})}),e.next=13,Object(ir.d)({type:"EDIT_TEMPLATE_SUCCESS",templates:n,templateType:t.data.TemplateType});case 13:e.next=17;break;case 15:return e.next=17,Object(ir.d)({type:"EDIT_TEMPLATE_FAILURE"});case 17:e.next=23;break;case 19:return e.prev=19,e.t0=e.catch(4),e.next=23,Object(ir.d)({type:"EDIT_TEMPLATE_FAILURE"});case 23:e.next=0;break;case 25:case"end":return e.stop()}},e,null,[[4,19]])}),Dr=cr.a.mark(function e(a,t,n,r){var l,c;return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,l={name:a,yaml:t,kind:n,action:r},e.next=4,Object(ir.b)(mr.a.post,"/katib/update_template/",l);case 4:return c=e.sent,e.abrupt("return",c);case 8:return e.prev=8,e.t0=e.catch(0),e.next=12,Object(ir.d)({type:"EDIT_TEMPLATE_FAILURE"});case 12:case"end":return e.stop()}},e,null,[[0,8]])}),wr=cr.a.mark(function e(){var a,t,n;return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,Object(ir.e)("DELETE_TEMPLATE_REQUEST");case 3:return a=e.sent,e.prev=4,e.next=7,Object(ir.b)(Fr,a.name,a.kind,a.action);case 7:if(200!==(t=e.sent).status){e.next=15;break}return(n=Object.assign(t.data.Data,{})).map(function(e,a){Object.keys(e).forEach(function(a){var t=e[a];delete e[a],e[a.toLowerCase()]=t})}),e.next=13,Object(ir.d)({type:"DELETE_TEMPLATE_SUCCESS",templates:n,templateType:t.data.TemplateType});case 13:e.next=17;break;case 15:return e.next=17,Object(ir.d)({type:"DELETE_TEMPLATE_FAILURE"});case 17:e.next=23;break;case 19:return e.prev=19,e.t0=e.catch(4),e.next=23,Object(ir.d)({type:"DELETE_TEMPLATE_FAILURE"});case 23:e.next=0;break;case 25:case"end":return e.stop()}},e,null,[[4,19]])}),Fr=cr.a.mark(function e(a,t,n){var r,l;return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,r={name:a,kind:t,action:n},e.next=4,Object(ir.b)(mr.a.post,"/katib/update_template/",r);case 4:return l=e.sent,e.abrupt("return",l);case 8:return e.prev=8,e.t0=e.catch(0),e.next=12,Object(ir.d)({type:"DELETE_TEMPLATE_FAILURE"});case 12:case"end":return e.stop()}},e,null,[[0,8]])});function Hr(){return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(ir.a)([Object(ir.c)(Cr),Object(ir.c)(Ir),Object(ir.c)(gr),Object(ir.c)(Sr),Object(ir.c)(Mr),Object(ir.c)(Rr),Object(ir.c)(wr),Object(ir.c)(ur),Object(ir.c)(Er),Object(ir.c)(br),Object(ir.c)(yr),Object(ir.c)(vr),Object(ir.c)(Or),Object(ir.c)(Ar)]);case 2:case"end":return e.stop()}},sr)}var Ur=t(629),Br=function(e){var a=Object(Jn.b)(),t=Object(Hn.e)(rr,e,Object(Hn.d)(Object(Hn.a)(a,Bn.a)));return t.runSaga=a.run,t.close=function(){return t.dispatch(Jn.a)},t}();Br.runSaga(Hr);var Jr=Object(ja.createMuiTheme)({palette:{primary:{main:"#000"},secondary:{main:"#fff"}},colors:{created:"#2304bd",running:"#8b8ffb",restarting:"#1eb9af",succeeded:"#63f291",failed:"#f26363"},typography:{fontFamily:"open sans,-apple-system,BlinkMacSystemFont,segoe ui,Roboto,helvetica neue,Arial,sans-serif,apple color emoji,segoe ui emoji,segoe ui symbol"}});c.a.render(r.a.createElement(Z.a,{store:Br},r.a.createElement(Ur.a,{basename:"/"},r.a.createElement(ja.MuiThemeProvider,{theme:Jr},r.a.createElement(Fn.a,null),r.a.createElement(Rn,null)))),document.getElementById("root")),"serviceWorker"in navigator&&navigator.serviceWorker.ready.then(function(e){e.unregister()})}},[[356,1,2]]]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{279:function(e,a){},280:function(e,a){},356:function(e,a,t){e.exports=t(625)},600:function(e,a){},625:function(e,a,t){"use strict";t.r(a);var n=t(0),r=t.n(n),l=t(55),c=t.n(l),i=t(20),o=t.n(i),m=t(159),s=t.n(m),u=t(160),p=t.n(u),E=t(12),d=t.n(E),b=t(40),f=t.n(b),g=t(290),h=t.n(g),v=t(627),T=t(220),O=t(158),_=t.n(O),y=t(75),x=t.n(y),S=t(76),N=t.n(S),A=t(56),j=t.n(A),C=t(57),k=t.n(C),I=t(58),L=t.n(I),M=t(116),P=t.n(M),R=t(287),D=t.n(R),w=t(216),F=t.n(w),H=t(217),U=t.n(H),B=t(288),J=t.n(B),G=t(218),z=t.n(G),Y=t(215),Q=t.n(Y),W=t(104),X=t.n(W),V=t(289),K=t.n(V),Z=t(11),$=function(e){return{type:"TOGGLE_MENU",state:e}},q=function(e){return{type:"SUBMIT_YAML_REQUEST",yaml:e}},ee=function(e){return{type:"OPEN_DELETE_EXPERIMENT_DIALOG",experimentName:e}},ae=o()({list:{width:250},nested:{paddingLeft:40}}),te=Object(Z.b)(function(e){return{menuOpen:e.general.menuOpen}},{toggleMenu:$})(function(e){var a=r.a.useState(!1),t=Object(T.a)(a,2),n=t[0],l=t[1],c=r.a.useState(!1),i=Object(T.a)(c,2),o=i[0],m=i[1],s=ae(),u="primary";return r.a.createElement("div",null,r.a.createElement(_.a,{open:e.menuOpen,onClose:function(){e.toggleMenu(!1)}},r.a.createElement(x.a,null,r.a.createElement(j.a,{button:!0,onClick:function(){l(!n)}},r.a.createElement(k.a,null,r.a.createElement(D.a,{color:"primary"})),r.a.createElement(L.a,null,r.a.createElement(d.a,{variant:"title",color:u},"HP")),n?r.a.createElement(Q.a,null):r.a.createElement(X.a,null)),r.a.createElement(P.a,{in:n,timeout:"auto",unmountOnExit:!0},r.a.createElement(x.a,{component:"div",disablePadding:!0},r.a.createElement(j.a,{button:!0,className:s.nested,component:v.a,to:"/katib/hp"},r.a.createElement(k.a,null,r.a.createElement(F.a,{color:"primary"})),r.a.createElement(L.a,null,r.a.createElement(d.a,{variant:"title",color:u},"Submit"))),r.a.createElement(j.a,{button:!0,className:s.nested,component:v.a,to:"/katib/hp_monitor"},r.a.createElement(k.a,null,r.a.createElement(U.a,{color:"primary"})),r.a.createElement(L.a,null,r.a.createElement(d.a,{variant:"title",color:u},"Monitor"))))),r.a.createElement(N.a,null),r.a.createElement(j.a,{button:!0,onClick:function(){m(!o)}},r.a.createElement(k.a,null,r.a.createElement(J.a,{color:"primary"})),r.a.createElement(L.a,null,r.a.createElement(d.a,{variant:"title",color:u},"NAS")),n?r.a.createElement(Q.a,null):r.a.createElement(X.a,null)),r.a.createElement(P.a,{in:o,timeout:"auto",unmountOnExit:!0},r.a.createElement(x.a,{component:"div",disablePadding:!0},r.a.createElement(j.a,{button:!0,className:s.nested,component:v.a,to:"/katib/nas"},r.a.createElement(k.a,null,r.a.createElement(F.a,{color:"primary"})),r.a.createElement(L.a,null,r.a.createElement(d.a,{variant:"title",color:u},"Submit"))),r.a.createElement(j.a,{button:!0,className:s.nested,component:v.a,to:"/katib/nas_monitor"},r.a.createElement(k.a,null,r.a.createElement(U.a,{color:"primary"})),r.a.createElement(L.a,null,r.a.createElement(d.a,{variant:"title",color:u},"Monitor"))))),r.a.createElement(N.a,null),r.a.createElement(j.a,{button:!0,component:v.a,to:"/katib/trial"},r.a.createElement(k.a,null,r.a.createElement(z.a,{color:"primary"})),r.a.createElement(L.a,null,r.a.createElement(d.a,{variant:"title",color:u},"Trial Manifests"))),r.a.createElement(N.a,null),r.a.createElement(j.a,{button:!0,component:v.a,to:"/katib/collector"},r.a.createElement(k.a,null,r.a.createElement(z.a,{color:"primary"})),r.a.createElement(L.a,null,r.a.createElement(d.a,{variant:"title",color:u},"Metrics Collector Manifests"))),r.a.createElement(N.a,null),r.a.createElement(j.a,{button:!0,component:v.a,to:"/katib/about"},r.a.createElement(k.a,null,r.a.createElement(K.a,{color:"primary"})),r.a.createElement(L.a,null,r.a.createElement(d.a,{variant:"title",color:u},"About"))))))}),ne=o()({root:{flexGrow:1},grow:{flexGrow:1},menuButton:{marginLeft:-12,marginRight:20},link:{textDecoration:"none"}}),re=Object(Z.b)(null,{toggleMenu:$})(function(e){var a=ne();return r.a.createElement("div",{className:a.root},r.a.createElement(s.a,{position:"static",color:"primary"},r.a.createElement(p.a,null,r.a.createElement(f.a,{className:a.menuButton,color:"inherit","aria-label":"Menu",onClick:function(a){e.toggleMenu(!0)}},r.a.createElement(h.a,null)),r.a.createElement(d.a,{variant:"headline",color:"secondary",component:v.a,to:"/",classes:a.link},"Katib")),r.a.createElement(te,null)))}),le=t(161),ce=t.n(le),ie=t(291),oe=t.n(ie),me=o()({root:{flexGrow:1,marginTop:40},close:{padding:4}}),se=Object(Z.b)(function(e){return{snackText:e.general.snackText,snackOpen:e.general.snackOpen}},{closeSnackbar:function(){return{type:"CLOSE_SNACKBAR"}}})(function(e){var a=me();return r.a.createElement(ce.a,{anchorOrigin:{vertical:"top",horizontal:"center"},open:e.snackOpen,autoHideDuration:600,onClose:e.handleClose,ContentProps:{"aria-describedby":"message-id"},message:r.a.createElement("span",{id:"message-id"},e.snackText),action:[r.a.createElement(f.a,{key:"close","aria-label":"Close",color:"inherit",className:a.close,onClick:e.closeSnackbar},r.a.createElement(oe.a,null))]})}),ue=t(124),pe=t(630),Ee=t(63),de=t.n(Ee),be=t(3),fe=t.n(be),ge=Object(ue.a)({root:{margin:"0 auto",marginTop:50,flexGrow:1,width:"50%",height:400,textAlign:"center"},item:{padding:"40px !important"},block:{backgroundColor:"#4e4e4e",height:"100%",width:"100%",padding:40,"&:hover":{backgroundColor:"black"}}}),he=function(e){var a=ge();return r.a.createElement(de.a,{elevation:4,className:a.root},r.a.createElement(d.a,{variant:"h4"},"Welcome to Katib"),r.a.createElement(d.a,{variant:"h6"},"Choose type of experiment"),r.a.createElement("br",null),r.a.createElement(fe.a,{container:!0,spacing:40,alignContent:"center"},r.a.createElement(fe.a,{item:!0,xs:6,className:a.item,component:v.a,to:"/katib/hp/"},r.a.createElement(de.a,{className:a.block},r.a.createElement(d.a,{variant:"h6",color:"secondary"},"Hyperparameter Tuning"))),r.a.createElement(fe.a,{item:!0,xs:6,className:a.item,component:v.a,to:"/katib/nas/"},r.a.createElement(de.a,{className:a.block},r.a.createElement(d.a,{variant:"h6",color:"secondary"},"Neural Architecture Search")))),r.a.createElement("br",null),r.a.createElement(d.a,{variant:"h6"},"For additional information on Kubeflow visit ",r.a.createElement("a",{href:"https://kubeflow.org",target:"_blank",className:a.link},"website")),r.a.createElement(d.a,{variant:"h6"},"For additional information on Katib visit ",r.a.createElement("a",{href:"https://github.com/kubeflow/katib/",target:"_blank",className:a.link},"github")))},ve=t(628),Te=(t(250),t(251),t(252),t(125)),Oe=t.n(Te),_e=t(16),ye=t.n(_e),xe=o()({root:{flexGrow:1},editor:{margin:"0 auto"},submit:{textAlign:"center",marginTop:10},progress:{height:10,margin:10},close:{padding:4}}),Se=Object(Z.b)(function(e){return{yaml:e.hpCreate.currentYaml}},{changeYaml:function(e){return{type:"CHANGE_YAML_HP",payload:e}},submitYaml:q})(function(e){var a=xe();return r.a.createElement("div",{className:a.root},r.a.createElement("h1",null,"Generate"),r.a.createElement("hr",null),r.a.createElement("div",{className:a.editor},r.a.createElement(Oe.a,{mode:"text",theme:"tomorrow",value:e.yaml,onChange:function(a){e.changeYaml(a)},name:"yaml-editor",editorProps:{$blockScrolling:!0},tabSize:2,enableLiveAutocompletion:!0,fontSize:14,width:"100%",height:700})),r.a.createElement("div",{className:a.submit},r.a.createElement(ye.a,{variant:"contained",color:"primary",className:a.button,onClick:function(){e.submitYaml(e.yaml)}},"Deploy")))}),Ne=t(49),Ae=t.n(Ne),je=t(30),Ce=t.n(je),ke=t(32),Ie=t.n(ke),Le=t(18),Me=t.n(Le),Pe=o()({textField:{marginLeft:4,marginRight:4,width:"100%"},help:{padding:2,verticalAlign:"middle",marginRight:5},parameter:{padding:2,marginBottom:10}}),Re=Object(Z.b)(function(e){return{commonParametersMetadata:e.hpCreate.commonParametersMetadata}},{changeMeta:function(e,a){return{type:"CHANGE_META_HP",name:e,value:a}}})(function(e){var a=Pe(),t=function(a){return function(t){e.changeMeta(a,t.target.value)}};return r.a.createElement("div",null,e.commonParametersMetadata.map(function(e,n){return r.a.createElement("div",{key:n,className:a.parameter},r.a.createElement(fe.a,{container:!0,alignItems:"center"},r.a.createElement(fe.a,{item:!0,xs:12,sm:3},r.a.createElement(d.a,{variant:"subheading"},r.a.createElement(Ce.a,{title:e.description},r.a.createElement(Ie.a,{className:a.help,color:"primary"})),e.name)),r.a.createElement(fe.a,{item:!0,xs:12,sm:8},r.a.createElement(Me.a,{className:a.textField,value:e.value,onChange:t(e.name)}))))}))}),De=o()({textField:{marginLeft:4,marginRight:4,width:"100%"},help:{padding:2,verticalAlign:"middle",marginRight:5},parameter:{padding:2,marginBottom:10}}),we=Object(Z.b)(function(e){return{commonParametersSpec:e.hpCreate.commonParametersSpec}},{changeSpec:function(e,a){return{type:"CHANGE_SPEC_HP",name:e,value:a}}})(function(e){var a=De();return r.a.createElement("div",null,e.commonParametersSpec.map(function(t,n){return r.a.createElement("div",{key:n,className:a.parameter},r.a.createElement(fe.a,{container:!0,alignItems:"center"},r.a.createElement(fe.a,{item:!0,xs:12,sm:3},r.a.createElement(d.a,{variant:"subheading"},r.a.createElement(Ce.a,{title:t.description},r.a.createElement(Ie.a,{className:a.help,color:"primary"})),t.name)),r.a.createElement(fe.a,{item:!0,xs:12,sm:8},r.a.createElement(Me.a,{className:a.textField,value:t.value,onChange:(l=t.name,function(a){e.changeSpec(l,a.target.value)})}))));var l}))}),Fe=t(45),He=t.n(Fe),Ue=t(71),Be=t.n(Ue),Je=t(83),Ge=t.n(Je),ze=t(52),Ye=t.n(ze),Qe=t(53),We=t.n(Qe),Xe=t(51),Ve=t.n(Xe),Ke=t(50),Ze=t.n(Ke),$e=t(54),qe=t.n($e),ea=o()({textField:{marginLeft:4,marginRight:4,width:"100%"},help:{padding:2,verticalAlign:"middle",marginRight:5},parameter:{padding:2,marginBottom:10},selectBox:{width:150}}),aa=Object(Z.b)(function(e){return{allObjectiveTypes:e.hpCreate.allObjectiveTypes,objective:e.hpCreate.objective,additionalMetricNames:e.hpCreate.additionalMetricNames}},{changeObjective:function(e,a){return{type:"CHANGE_OBJECTIVE_HP",name:e,value:a}},addMetrics:function(){return{type:"ADD_METRICS_HP"}},editMetrics:function(e,a){return{type:"EDIT_METRICS_HP",index:e,value:a}},deleteMetrics:function(e){return{type:"DELETE_METRICS_HP",index:e}}})(function(e){var a=ea(),t=function(a){return function(t){e.changeObjective(a,t.target.value)}},n=function(a){return function(t){e.deleteMetrics(a)}};return r.a.createElement("div",null,e.objective.map(function(n,l){return"Type"===n.name?r.a.createElement("div",{key:l,className:a.parameter},r.a.createElement(fe.a,{container:!0,alignItems:"center"},r.a.createElement(fe.a,{item:!0,xs:12,sm:3},r.a.createElement(d.a,null,r.a.createElement(Ce.a,{title:n.description},r.a.createElement(Ie.a,{className:a.help,color:"primary"})),n.name)),r.a.createElement(fe.a,{item:!0,xs:12,sm:8},r.a.createElement(Ye.a,{variant:"outlined",className:a.formControl},r.a.createElement(Ve.a,null,"Objective Type"),r.a.createElement(We.a,{value:n.value,onChange:t(n.name),input:r.a.createElement(Ze.a,{labelWidth:160}),className:a.selectBox},e.allObjectiveTypes.map(function(e,a){return r.a.createElement(qe.a,{value:e,key:a},e)})))))):r.a.createElement("div",{key:l,className:a.parameter},r.a.createElement(fe.a,{container:!0,alignItems:"center"},r.a.createElement(fe.a,{item:!0,xs:12,sm:3},r.a.createElement(d.a,{variant:"subheading"},r.a.createElement(Ce.a,{title:n.description},r.a.createElement(Ie.a,{className:a.help,color:"primary"})),n.name)),r.a.createElement(fe.a,{item:!0,xs:12,sm:8},r.a.createElement(Me.a,{className:a.textField,value:n.value,onChange:t(n.name)}))))}),r.a.createElement("div",{className:a.parameter},r.a.createElement(fe.a,{container:!0,alignItems:"center"},r.a.createElement(fe.a,{item:!0,xs:12,sm:3},r.a.createElement(d.a,{variant:"subheading"},r.a.createElement(Ce.a,{title:"Additional metrics that you want to collect"},r.a.createElement(Ie.a,{className:a.help,color:"primary"})),"AdditionalMetricNames")),r.a.createElement(fe.a,{item:!0,xs:12,sm:8},e.additionalMetricNames.map(function(t,l){return r.a.createElement(fe.a,{container:!0},r.a.createElement(fe.a,{item:!0,xs:10},r.a.createElement(Me.a,{className:a.textField,value:t.value,onChange:(c=l,function(a){e.editMetrics(c,a.target.value)})})),r.a.createElement(fe.a,{item:!0,xs:2},r.a.createElement(f.a,{key:"close","aria-label":"Close",color:"primary",className:a.icon,onClick:n(l)},r.a.createElement(He.a,null))));var c})),r.a.createElement(fe.a,{item:!0,xs:12,sm:1},r.a.createElement(Be.a,{color:"primary",className:a.fab,onClick:e.addMetrics},r.a.createElement(Ge.a,null))))))}),ta=t(35),na=t(36),ra=t(38),la=t(37),ca=t(39),ia=function(e){return{type:"CLOSE_DIALOG",dialogType:e}},oa=function(e){return{type:"OPEN_DIALOG",dialogType:e,index:arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,templateType:arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1}},ma=function(){return{type:"FETCH_TRIAL_TEMPLATES_REQUEST"}},sa=function(e){function a(){var e,t;Object(ta.a)(this,a);for(var n=arguments.length,r=new Array(n),l=0;l1)for(var n=e.jobData[0],l=e.jobData.slice(1),c=1;c1&&r.a.createElement(ut.a,{data:[{type:"parcoords",line:{color:"red"},dimensions:t}],layout:{width:1e3,height:600}}))}),dt=t(162),bt=t.n(dt),ft=t(164),gt=t.n(ft),ht=t(126),vt=t.n(ht),Tt=t(163),Ot=t.n(Tt),_t=t(137),yt=t.n(_t),xt=function(e){function a(){var e,t;Object(ta.a)(this,a);for(var n=arguments.length,r=new Array(n),l=0;l1&&(t=this.props.jobData[0],n=this.props.jobData.slice(1)),r.a.createElement(de.a,{className:a.root},this.props.jobData.length>1&&r.a.createElement(bt.a,{className:a.table},r.a.createElement(Ot.a,null,r.a.createElement(yt.a,null,t.map(function(e){return r.a.createElement(vt.a,null,e)}))),r.a.createElement(gt.a,null,n.map(function(t,n){return r.a.createElement(yt.a,{key:n},t.map(function(t,n){return 0===n?r.a.createElement(vt.a,{className:a.hover,component:"th",scope:"row",onClick:e.fetchAndOpenDialog(t),key:n},t):r.a.createElement(vt.a,{align:"right"},t)}))}))))}}]),a}(r.a.Component),St=Object(Z.b)(function(e){return{jobData:e.hpMonitor.jobData}},{fetchHPJobTrialInfo:function(e){return{type:"FETCH_HP_JOB_TRIAL_INFO_REQUEST",trialName:e}}})(Object(ja.withStyles)(function(e){return{root:{width:"100%",marginTop:3*e.spacing.unit,overflowX:"auto"},table:{minWidth:700},hover:{"&:hover":{cursor:"pointer"}}}})(xt)),Nt=Object(Z.b)(function(e){return{open:e.hpMonitor.dialogOpen,trialData:e.hpMonitor.trialData}},{closeDialog:function(){return{type:"CLOSE_DIALOG"}}})(Object(ue.b)(function(e){return{header:{textAlign:"center"}}})(function(e){var a=e.classes,t=[];if(0!==e.trialData.length){for(var n=e.trialData.slice(1),l={},c=0;c0&&void 0!==arguments[0]?arguments[0]:zn,a=arguments.length>1?arguments[1]:void 0;switch(a.type){case"TOGGLE_MENU":return Object(Gn.a)({},e,{menuOpen:a.state});case"CLOSE_SNACKBAR":return Object(Gn.a)({},e,{snackOpen:!1});case"SUBMIT_YAML_SUCCESS":return Object(Gn.a)({},e,{snackOpen:!0,snackText:"Successfully submitted"});case"SUBMIT_YAML_FAILURE":return Object(Gn.a)({},e,{snackOpen:!0,snackText:a.message});case"DELETE_EXPERIMENT_FAILURE":return Object(Gn.a)({},e,{deleteDialog:!1,snackOpen:!0,snackText:"Whoops, something went wrong"});case"DELETE_EXPERIMENT_SUCCESS":return Object(Gn.a)({},e,{deleteDialog:!1,snackOpen:!0,snackText:"Successfully deleted. Press Update button"});case"OPEN_DELETE_EXPERIMENT_DIALOG":return Object(Gn.a)({},e,{deleteDialog:!0,deleteExperimentName:a.experimentName});case"CLOSE_DELETE_EXPERIMENT_DIALOG":return Object(Gn.a)({},e,{deleteDialog:!1});case"SUBMIT_NAS_JOB_REQUEST":return Object(Gn.a)({},e,{loading:!0});case"SUBMIT_NAS_JOB_SUCCESS":return Object(Gn.a)({},e,{loading:!1,snackOpen:!0,snackText:"Successfully submitted"});case"SUBMIT_NAS_JOB_FAILURE":return Object(Gn.a)({},e,{loading:!1,snackOpen:!0,snackText:a.message});case"SUBMIT_HP_JOB_REQUEST":return Object(Gn.a)({},e,{loading:!0});case"SUBMIT_HP_JOB_SUCCESS":return Object(Gn.a)({},e,{loading:!1,snackOpen:!0,snackText:"Successfully submitted"});case"SUBMIT_HP_JOB_FAILURE":return Object(Gn.a)({},e,{loading:!1,snackOpen:!0,snackText:a.message});default:return e}},Qn={commonParametersMetadata:[{name:"Name",value:"nasrl-example",description:"A name of an experiment"},{name:"Namespace",value:"kubeflow",description:"Namespace to deploy an experiment"}],commonParametersSpec:[{name:"ParallelTrialCount",value:"3",description:"How many trials can be processed in parallel"},{name:"MaxTrialCount",value:"12",description:"Max completed trials to mark experiment as succeeded"},{name:"MaxFailedTrialCount",value:"3",description:"Max failed trials to mark experiment as failed"}],allObjectiveTypes:["minimize","maximize"],objective:[{name:"Type",value:"maximize",description:"Type of optimization"},{name:"Goal",value:"0.99",description:"Goal of optimization"},{name:"ObjectiveMetricName",value:"Validation-Accuracy",description:"Name for the objective metric"}],additionalMetricNames:[],algorithmName:"nasrl",allAlgorithms:["nasrl","nasenvelopenet"],algorithmSettings:[{name:"lstm_num_cells",value:"64"},{name:"lstm_num_layers",value:"1"},{name:"lstm_keep_prob",value:"1.0"},{name:"optimizer",value:"adam"},{name:"init_learning_rate",value:"1e-3"},{name:"lr_decay_start",value:"0"},{name:"lr_decay_every",value:"1000"},{name:"lr_decay_rate",value:"0.9"},{name:"skip-target",value:"0.4"},{name:"skip-weight",value:"0.8"},{name:"l2_reg",value:"0"},{name:"entropy_weight",value:"1e-4"},{name:"baseline_decay",value:"0.9999"}],numLayers:"8",inputSize:["32","32","3"],outputSize:["10"],operations:[{operationType:"convolution",parameters:[{name:"filter_size",parameterType:"categorical",feasibleSpace:"list",min:"",max:"",step:"",list:[{value:"3"},{value:"5"},{value:"7"}]},{name:"num_filter",parameterType:"categorical",feasibleSpace:"list",min:"",max:"",step:"",list:[{value:"32"},{value:"48"},{value:"64"},{value:"96"},{value:"128"}]},{name:"stride",parameterType:"categorical",feasibleSpace:"list",min:"",max:"",step:"",list:[{value:"1"},{value:"2"}]}]},{operationType:"separable_convolution",parameters:[{name:"filter_size",parameterType:"categorical",feasibleSpace:"list",min:"",max:"",step:"",list:[{value:"3"},{value:"5"},{value:"7"}]},{name:"num_filter",parameterType:"categorical",feasibleSpace:"list",min:"",max:"",step:"",list:[{value:"32"},{value:"48"},{value:"64"},{value:"96"},{value:"128"}]},{name:"stride",parameterType:"categorical",feasibleSpace:"list",min:"",max:"",step:"",list:[{value:"1"},{value:"2"}]},{name:"depth_multiplier",parameterType:"categorical",feasibleSpace:"list",min:"",max:"",step:"",list:[{value:"1"},{value:"2"}]}]},{operationType:"depthwise_convolution",parameters:[{name:"filter_size",parameterType:"categorical",feasibleSpace:"list",min:"",max:"",step:"",list:[{value:"3"},{value:"5"},{value:"7"}]},{name:"stride",parameterType:"categorical",feasibleSpace:"list",min:"",max:"",step:"",list:[{value:"1"},{value:"2"}]},{name:"depth_multiplier",parameterType:"categorical",feasibleSpace:"list",min:"",max:"",step:"",list:[{value:"1"},{value:"2"}]}]},{operationType:"reduction",parameters:[{name:"reduction_type",parameterType:"categorical",feasibleSpace:"list",min:"",max:"",step:"",list:[{value:"max_pooling"},{value:"avg_pooling"}]},{name:"pool_size",parameterType:"int",feasibleSpace:"feasibleSpace",min:"2",max:"3",step:"1",list:[]}]}],allParameterTypes:["int","double","categorical"],trial:"nasRLTrialTemplate.yaml",currentYaml:"",snackText:"",snackOpen:!1},Wn=function(e,a){return e.findIndex(function(e){return e.name===a})},Xn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Qn,a=arguments.length>1?arguments[1]:void 0;switch(a.type){case"CHANGE_YAML_NAS":return Object(Gn.a)({},e,{currentYaml:a.payload});case"CHANGE_META_NAS":var t=e.commonParametersMetadata.slice(),n=Wn(t,a.name);return t[n].value=a.value,Object(Gn.a)({},e,{commonParametersMetadata:t});case"CHANGE_SPEC_NAS":var r=e.commonParametersSpec.slice();return r[n=Wn(r,a.name)].value=a.value,Object(Gn.a)({},e,{commonParametersSpec:r});case"CHANGE_OBJECTIVE_NAS":var l=e.objective.slice();return l[n=Wn(l,a.name)].value=a.value,Object(Gn.a)({},e,{objective:l});case"ADD_METRICS_NAS":var c=e.additionalMetricNames.slice();return c.push({value:""}),Object(Gn.a)({},e,{additionalMetricNames:c});case"DELETE_METRICS_NAS":return(c=e.additionalMetricNames.slice()).splice(a.index,1),Object(Gn.a)({},e,{additionalMetricNames:c});case"EDIT_METRICS_NAS":return(c=e.additionalMetricNames.slice())[a.index].value=a.value,Object(Gn.a)({},e,{additionalMetricNames:c});case"CHANGE_ALGORITHM_NAME_NAS":return Object(Gn.a)({},e,{algorithmName:a.algorithmName});case"ADD_ALGORITHM_SETTING_NAS":var i=e.algorithmSettings.slice();return i.push({name:"",value:""}),Object(Gn.a)({},e,{algorithmSettings:i});case"CHANGE_ALGORITHM_SETTING_NAS":return(i=e.algorithmSettings.slice())[a.index][a.field]=a.value,Object(Gn.a)({},e,{algorithmSettings:i});case"DELETE_ALGORITHM_SETTING_NAS":return(i=e.algorithmSettings.slice()).splice(a.index,1),Object(Gn.a)({},e,{algorithmSettings:i});case"EDIT_NUM_LAYERS":var o=a.value;return Object(Gn.a)({},e,{numLayers:o});case"ADD_SIZE":var m=e[a.sizeType].slice();return m.push("0"),Object(Gn.a)({},e,Object(Nn.a)({},a.sizeType,m));case"EDIT_SIZE":return(m=e[a.sizeType].slice())[a.index]=a.value,Object(Gn.a)({},e,Object(Nn.a)({},a.sizeType,m));case"DELETE_SIZE":return(m=e[a.sizeType].slice()).splice(a.index,1),Object(Gn.a)({},e,Object(Nn.a)({},a.sizeType,m));case"ADD_OPERATION":var s=e.operations.slice();return s.push({operationType:"",parameters:[]}),Object(Gn.a)({},e,{operations:s});case"DELETE_OPERATION":return(s=e.operations.slice()).splice(a.index,1),Object(Gn.a)({},e,{operations:s});case"CHANGE_OPERATION":return(s=e.operations.slice())[a.index].operationType=a.value,Object(Gn.a)({},e,{operations:s});case"ADD_PARAMETER_NAS":return(s=e.operations.slice())[a.opIndex].parameters.push({name:"",parameterType:"categorical",feasibleSpace:"list",min:"",max:"",step:"",list:[]}),Object(Gn.a)({},e,{operations:s});case"CHANGE_PARAMETER_NAS":return(s=e.operations.slice())[a.opIndex].parameters[a.paramIndex][a.field]=a.value,Object(Gn.a)({},e,{operations:s});case"DELETE_PARAMETER_NAS":return(s=e.operations.slice())[a.opIndex].parameters.splice(a.paramIndex,1),Object(Gn.a)({},e,{operations:s});case"ADD_LIST_PARAMETER_NAS":return(s=e.operations.slice())[a.opIndex].parameters[a.paramIndex].list.push({value:""}),Object(Gn.a)({},e,{operations:s});case"DELETE_LIST_PARAMETER_NAS":return(s=e.operations.slice())[a.opIndex].parameters[a.paramIndex].list.splice(a.listIndex,1),Object(Gn.a)({},e,{operations:s});case"EDIT_LIST_PARAMETER_NAS":return(s=e.operations.slice())[a.opIndex].parameters[a.paramIndex].list[a.listIndex].value=a.value,Object(Gn.a)({},e,{operations:s});case"CHANGE_TRIAL_NAS":return Object(Gn.a)({},e,{trial:a.trial});case"CLOSE_SNACKBAR":return Object(Gn.a)({},e,{snackOpen:!1});default:return e}},Vn={filter:"",filterType:{Created:!0,Running:!0,Restarting:!0,Succeeded:!0,Failed:!0},jobsList:[],filteredJobsList:[],loading:!1,steps:[]},Kn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Vn,a=arguments.length>1?arguments[1]:void 0;switch(a.type){case"FILTER_JOBS":var t=e.jobsList.slice(),n=t.filter(function(e){return e.name.includes(a.filter)}),r=Object.assign({},e.filterType),l=Object.keys(r),c=l.filter(function(e){return r[e]}),i=n.filter(function(e){return c.includes(e.status)});return Object(Gn.a)({},e,{filteredJobsList:i,filter:a.filter});case"CHANGE_TYPE":var o=Object.assign({},e.filterType);o[a.filter]=a.checked;var m=Object.keys(o).filter(function(e){return o[e]}),s=e.jobsList.slice().filter(function(e){return m.includes(e.status)});return Object(Gn.a)({},e,{filterType:o,filteredJobsList:s});case"FETCH_NAS_JOBS_SUCCESS":return t=a.jobs,r=Object.assign({},e.filterType),l=Object.keys(r),c=l.filter(function(e){return r[e]}),i=t.filter(function(e){return c.includes(e.status)}),Object(Gn.a)({},e,{jobsList:a.jobs,filteredJobsList:i});case"FETCH_NAS_JOB_INFO_REQUEST":return Object(Gn.a)({},e,{loading:!0});case"FETCH_NAS_JOB_INFO_FAILURE":return Object(Gn.a)({},e,{loading:!1});case"FETCH_NAS_JOB_INFO_SUCCESS":return Object(Gn.a)({},e,{loading:!1,steps:a.steps});default:return e}},Zn={loading:!1,commonParametersMetadata:[{name:"Name",value:"random-experiment",description:"A name of an experiment"},{name:"Namespace",value:"kubeflow",description:"Namespace to deploy an experiment"}],commonParametersSpec:[{name:"ParallelTrialCount",value:"3",description:"How many trials can be processed in parallel"},{name:"MaxTrialCount",value:"12",description:"Max completed trials to mark experiment as succeeded"},{name:"MaxFailedTrialCount",value:"3",description:"Max failed trials to mark experiment as failed"}],allObjectiveTypes:["minimize","maximize"],objective:[{name:"Type",value:"maximize",description:"Type of optimization"},{name:"Goal",value:"0.99",description:"Goal of optimization"},{name:"ObjectiveMetricName",value:"Validation-accuracy",description:"Name for the objective metric"}],additionalMetricNames:[{value:"accuracy"}],algorithmName:"random",allAlgorithms:["grid","random","hyperband","bayesianoptimization"],algorithmSettings:[],parameters:[{name:"--lr",parameterType:"double",feasibleSpace:"feasibleSpace",min:"0.01",max:"0.03",list:[]},{name:"--num-layers",parameterType:"int",feasibleSpace:"feasibleSpace",min:"2",max:"5",list:[]},{name:"--optimizer",parameterType:"categorical",feasibleSpace:"list",min:"",max:"",list:[{value:"sgd"},{value:"adam"},{value:"ftrl"}]}],allParameterTypes:["int","double","categorical"],trial:"cpuTrialTemplate.yaml",currentYaml:""},$n=function(e,a){return e.findIndex(function(e){return e.name===a})},qn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Zn,a=arguments.length>1?arguments[1]:void 0;switch(a.type){case"CHANGE_YAML_HP":return Object(Gn.a)({},e,{currentYaml:a.payload});case"CHANGE_META_HP":var t=e.commonParametersMetadata.slice(),n=$n(t,a.name);return t[n].value=a.value,Object(Gn.a)({},e,{commonParametersMetadata:t});case"CHANGE_SPEC_HP":var r=e.commonParametersSpec.slice();return r[n=$n(r,a.name)].value=a.value,Object(Gn.a)({},e,{commonParametersSpec:r});case"CHANGE_OBJECTIVE_HP":var l=e.objective.slice();return l[n=$n(l,a.name)].value=a.value,Object(Gn.a)({},e,{objective:l});case"ADD_METRICS_HP":var c=e.additionalMetricNames.slice();return c.push({value:""}),Object(Gn.a)({},e,{additionalMetricNames:c});case"DELETE_METRICS_HP":return(c=e.additionalMetricNames.slice()).splice(a.index,1),Object(Gn.a)({},e,{additionalMetricNames:c});case"EDIT_METRICS_HP":return(c=e.additionalMetricNames.slice())[a.index].value=a.value,Object(Gn.a)({},e,{additionalMetricNames:c});case"CHANGE_ALGORITHM_NAME_HP":return Object(Gn.a)({},e,{algorithmName:a.algorithmName});case"ADD_ALGORITHM_SETTING_HP":var i=e.algorithmSettings.slice();return i.push({name:"",value:""}),Object(Gn.a)({},e,{algorithmSettings:i});case"CHANGE_ALGORITHM_SETTING_HP":return(i=e.algorithmSettings.slice())[a.index][a.field]=a.value,Object(Gn.a)({},e,{algorithmSettings:i});case"DELETE_ALGORITHM_SETTING_HP":return(i=e.algorithmSettings.slice()).splice(a.index,1),Object(Gn.a)({},e,{algorithmSettings:i});case"CHANGE_PARAMETER_HP":var o=e.parameters.slice();return o.push({name:"",parameterType:"",feasibleSpace:"feasibleSpace",min:"",max:"",list:[]}),Object(Gn.a)({},e,{parameters:o});case"EDIT_PARAMTER_HP":return(o=e.parameters.slice())[a.index][a.field]=a.value,Object(Gn.a)({},e,{parameters:o});case"DELETE_PARAMETER_HP":return(o=e.parameters.slice()).splice(a.index,1),Object(Gn.a)({},e,{parameters:o});case"ADD_LIST_PARAMETER_HP":return(o=e.parameters.slice())[a.paramIndex].list.push({value:""}),Object(Gn.a)({},e,{parameters:o});case"EDIT_LIST_PARAMETER_HP":return(o=e.parameters.slice())[a.paramIndex].list[a.index].value=a.value,Object(Gn.a)({},e,{parameters:o});case"DELETE_LIST_PARAMETER_HP":return(o=e.parameters.slice())[a.paramIndex].list.splice(a.index,1),Object(Gn.a)({},e,{parameters:o});case"CHANGE_TRIAL_HP":return Object(Gn.a)({},e,{trial:a.trial});default:return e}},er={menuOpen:!1,addOpen:!1,editOpen:!1,deleteOpen:!1,trialTemplates:[],collectorTemplates:[],newTemplateName:"",newTemplateYaml:"",currentTemplateIndex:"",edittedTemplate:{name:"",yaml:""},currentTemplateName:""},ar=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:er,a=arguments.length>1?arguments[1]:void 0;switch(a.type){case"CLOSE_DIALOG":return Object(Gn.a)({},e,{editOpen:!1,addOpen:!1,deleteOpen:!1});case"OPEN_DIALOG":switch(a.dialogType){case"delete":switch(a.templateType){case"trial":return Object(Gn.a)({},e,{deleteOpen:!0,currentTemplateIndex:a.index,currentTemplateName:e.trialTemplates[a.index].name});case"collector":return Object(Gn.a)({},e,{deleteOpen:!0,currentTemplateIndex:a.index,currentTemplateName:e.collectorTemplates[a.index].name});default:return Object(Gn.a)({},e)}case"edit":switch(a.templateType){case"trial":return Object(Gn.a)({},e,{editOpen:!0,currentTemplateIndex:a.index,edittedTemplate:e.trialTemplates[a.index]});case"collector":return Object(Gn.a)({},e,{editOpen:!0,currentTemplateIndex:a.index,edittedTemplate:e.collectorTemplates[a.index]});default:return Object(Gn.a)({},e)}case"add":return Object(Gn.a)({},e,{addOpen:!0});default:return e}case"CHANGE_TEMPLATE":var t=e.edittedTemplate;return t[a.field]=a.value,Object(Gn.a)({},e,{edittedTemplate:t});case"FETCH_TRIAL_TEMPLATES_SUCCESS":return Object(Gn.a)({},e,{trialTemplates:a.templates});case"FETCH_COLLECTOR_TEMPLATES_SUCCESS":return Object(Gn.a)({},e,{collectorTemplates:a.templates});case"ADD_TEMPLATE_SUCCESS":case"DELETE_TEMPLATE_SUCCESS":case"EDIT_TEMPLATE_SUCCESS":switch(a.templateType){case"trial":return Object(Gn.a)({},e,{addOpen:!1,deleteOpen:!1,editOpen:!1,trialTemplates:a.templates});case"collector":return Object(Gn.a)({},e,{addOpen:!1,deleteOpen:!1,editOpen:!1,collectorTemplates:a.templates});default:return Object(Gn.a)({},e)}case"ADD_TEMPLATE_FAILURE":case"EDIT_TEMPLATE_FAILURE":case"DELETE_TEMPLATE_FAILURE":return Object(Gn.a)({},e,{addOpen:!1,deleteOpen:!1,editOpen:!1});default:return e}},tr={filter:"",filterType:{Created:!0,Running:!0,Restarting:!0,Succeeded:!0,Failed:!0},jobsList:[],filteredJobsList:[],jobData:[],trialData:[],dialogOpen:!1,loading:!1},nr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tr,a=arguments.length>1?arguments[1]:void 0;switch(a.type){case"FILTER_JOBS":var t=e.jobsList.slice(),n=t.filter(function(e){return e.name.includes(a.filter)}),r=Object.assign({},e.filterType),l=Object.keys(r),c=l.filter(function(e){return r[e]}),i=n.filter(function(e){return c.includes(e.status)});return Object(Gn.a)({},e,{filteredJobsList:i,filter:a.filter});case"CHANGE_TYPE":var o=Object.assign({},e.filterType);o[a.filter]=a.checked;var m=Object.keys(o).filter(function(e){return o[e]}),s=e.jobsList.slice().filter(function(e){return m.includes(e.status)});return Object(Gn.a)({},e,{filterType:o,filteredJobsList:s});case"FETCH_HP_JOBS_SUCCESS":return t=a.jobs,r=Object.assign({},e.filterType),l=Object.keys(r),c=l.filter(function(e){return r[e]}),i=t.filter(function(e){return c.includes(e.status)}),Object(Gn.a)({},e,{jobsList:a.jobs,filteredJobsList:i});case"FETCH_HP_JOB_INFO_REQUEST":return Object(Gn.a)({},e,{loading:!0});case"FETCH_HP_JOB_INFO_SUCCESS":return Object(Gn.a)({},e,{jobData:a.jobData,loading:!1});case"FETCH_HP_JOB_INFO_FAILURE":return Object(Gn.a)({},e,{loading:!1});case"FETCH_HP_JOB_TRIAL_INFO_SUCCESS":return Object(Gn.a)({},e,{trialData:a.trialData,dialogOpen:!0});case"CLOSE_DIALOG":return Object(Gn.a)({},e,{dialogOpen:!1});default:return e}},rr=Object(Hn.c)((Dn={},Object(Nn.a)(Dn,"general",Yn),Object(Nn.a)(Dn,"template",ar),Object(Nn.a)(Dn,"hpCreate",qn),Object(Nn.a)(Dn,"hpMonitor",nr),Object(Nn.a)(Dn,"nasCreate",Xn),Object(Nn.a)(Dn,"nasMonitor",Kn),Dn));var lr=t(13),cr=t.n(lr),ir=t(6),or=t(62),mr=t.n(or),sr=cr.a.mark(Hr),ur=cr.a.mark(function e(){var a,t;return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,Object(ir.e)("SUBMIT_YAML_REQUEST");case 3:return a=e.sent,e.prev=4,e.next=7,Object(ir.b)(pr,a.yaml);case 7:if(200!==(t=e.sent).status){e.next=13;break}return e.next=11,Object(ir.d)({type:"SUBMIT_YAML_SUCCESS"});case 11:e.next=15;break;case 13:return e.next=15,Object(ir.d)({type:"SUBMIT_YAML_FAILURE",message:t.message});case 15:e.next=21;break;case 17:return e.prev=17,e.t0=e.catch(4),e.next=21,Object(ir.d)({type:"SUBMIT_YAML_FAILURE"});case 21:e.next=0;break;case 23:case"end":return e.stop()}},e,null,[[4,17]])}),pr=cr.a.mark(function e(a){var t,n;return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t={yaml:a},e.next=4,Object(ir.b)(mr.a.post,"/katib/submit_yaml/",t);case 4:return n=e.sent,e.abrupt("return",n);case 8:return e.prev=8,e.t0=e.catch(0),e.abrupt("return",{status:500,message:e.t0.response.data});case 11:case"end":return e.stop()}},e,null,[[0,8]])}),Er=cr.a.mark(function e(){var a;return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,Object(ir.e)("DELETE_EXPERIMENT_REQUEST");case 3:return a=e.sent,e.prev=4,e.next=7,Object(ir.b)(dr,a.experimentName);case 7:if(200!==e.sent.status){e.next=13;break}return e.next=11,Object(ir.d)({type:"DELETE_EXPERIMENT_SUCCESS"});case 11:e.next=15;break;case 13:return e.next=15,Object(ir.d)({type:"DELETE_EXPERIMENT_FAILURE"});case 15:e.next=21;break;case 17:return e.prev=17,e.t0=e.catch(4),e.next=21,Object(ir.d)({type:"DELETE_EXPERIMENT_FAILURE"});case 21:e.next=0;break;case 23:case"end":return e.stop()}},e,null,[[4,17]])}),dr=cr.a.mark(function e(a){var t;return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(ir.b)(mr.a.get,"/katib/delete_experiment/?experimentName=".concat(a));case 3:return t=e.sent,e.abrupt("return",t);case 7:return e.prev=7,e.t0=e.catch(0),e.next=11,Object(ir.d)({type:"DELETE_EXPERIMENT_FAILURE"});case 11:case"end":return e.stop()}},e,null,[[0,7]])}),br=cr.a.mark(function e(){var a,t;return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,Object(ir.e)("SUBMIT_HP_JOB_REQUEST");case 3:return a=e.sent,e.prev=4,e.next=7,Object(ir.b)(fr,a.data);case 7:if(200!==(t=e.sent).status){e.next=13;break}return e.next=11,Object(ir.d)({type:"SUBMIT_HP_JOB_SUCCESS"});case 11:e.next=15;break;case 13:return e.next=15,Object(ir.d)({type:"SUBMIT_HP_JOB_FAILURE",message:t.message});case 15:e.next=21;break;case 17:return e.prev=17,e.t0=e.catch(4),e.next=21,Object(ir.d)({type:"SUBMIT_HP_JOB_FAILURE"});case 21:e.next=0;break;case 23:case"end":return e.stop()}},e,null,[[4,17]])}),fr=cr.a.mark(function e(a){var t,n;return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t={postData:a},e.next=4,Object(ir.b)(mr.a.post,"/katib/submit_hp_job/",t);case 4:return n=e.sent,e.abrupt("return",n);case 8:return e.prev=8,e.t0=e.catch(0),e.abrupt("return",{status:500,message:e.t0.response.data});case 11:case"end":return e.stop()}},e,null,[[0,8]])}),gr=cr.a.mark(function e(){var a,t;return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,Object(ir.e)("FETCH_HP_JOBS_REQUEST");case 3:return e.sent,e.prev=4,e.next=7,Object(ir.b)(hr);case 7:if(200!==(a=e.sent).status){e.next=15;break}return(t=Object.assign(a.data,{})).map(function(e,a){Object.keys(e).forEach(function(a){var t=e[a];delete e[a],e[a.toLowerCase()]=t})}),e.next=13,Object(ir.d)({type:"FETCH_HP_JOBS_SUCCESS",jobs:t});case 13:e.next=17;break;case 15:return e.next=17,Object(ir.d)({type:"FETCH_HP_JOBS_FAILURE"});case 17:e.next=23;break;case 19:return e.prev=19,e.t0=e.catch(4),e.next=23,Object(ir.d)({type:"FETCH_HP_JOBS_FAILURE"});case 23:e.next=0;break;case 25:case"end":return e.stop()}},e,null,[[4,19]])}),hr=cr.a.mark(function e(){var a;return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(ir.b)(mr.a.get,"/katib/fetch_hp_jobs/");case 3:return a=e.sent,e.abrupt("return",a);case 7:return e.prev=7,e.t0=e.catch(0),e.next=11,Object(ir.d)({type:"FETCH_HP_JOBS_FAILURE"});case 11:case"end":return e.stop()}},e,null,[[0,7]])}),vr=cr.a.mark(function e(){var a,t,n;return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,Object(ir.e)("FETCH_HP_JOB_INFO_REQUEST");case 3:return a=e.sent,e.prev=4,e.next=7,Object(ir.b)(Tr,a.experimentName);case 7:if(200!==(t=e.sent).status){e.next=14;break}return n=t.data.split("\n").map(function(e,a){return e.split(",")}),e.next=12,Object(ir.d)({type:"FETCH_HP_JOB_INFO_SUCCESS",jobData:n});case 12:e.next=16;break;case 14:return e.next=16,Object(ir.d)({type:"FETCH_HP_JOB_INFO_FAILURE"});case 16:e.next=22;break;case 18:return e.prev=18,e.t0=e.catch(4),e.next=22,Object(ir.d)({type:"FETCH_HP_JOB_INFO_FAILURE"});case 22:e.next=0;break;case 24:case"end":return e.stop()}},e,null,[[4,18]])}),Tr=cr.a.mark(function e(a){var t;return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(ir.b)(mr.a.get,"/katib/fetch_hp_job_info/?experimentName=".concat(a));case 3:return t=e.sent,e.abrupt("return",t);case 7:return e.prev=7,e.t0=e.catch(0),e.next=11,Object(ir.d)({type:"FETCH_HP_JOB_INFO_FAILURE"});case 11:case"end":return e.stop()}},e,null,[[0,7]])}),Or=cr.a.mark(function e(){var a,t,n;return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,Object(ir.e)("FETCH_HP_JOB_TRIAL_INFO_REQUEST");case 3:return a=e.sent,e.prev=4,e.next=7,Object(ir.b)(_r,a.trialName);case 7:if(200!==(t=e.sent).status){e.next=14;break}return n=t.data.split("\n").map(function(e,a){return e.split(",")}),e.next=12,Object(ir.d)({type:"FETCH_HP_JOB_TRIAL_INFO_SUCCESS",trialData:n});case 12:e.next=16;break;case 14:return e.next=16,Object(ir.d)({type:"FETCH_HP_JOB_TRIAL_INFO_FAILURE"});case 16:e.next=22;break;case 18:return e.prev=18,e.t0=e.catch(4),e.next=22,Object(ir.d)({type:"FETCH_HP_JOB_TRIAL_INFO_FAILURE"});case 22:e.next=0;break;case 24:case"end":return e.stop()}},e,null,[[4,18]])}),_r=cr.a.mark(function e(a){var t;return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(ir.b)(mr.a.get,"/katib/fetch_hp_job_trial_info/?trialName=".concat(a));case 3:return t=e.sent,e.abrupt("return",t);case 7:return e.prev=7,e.t0=e.catch(0),e.next=11,Object(ir.d)({type:"FETCH_HP_JOB_TRIAL_INFO_FAILURE"});case 11:case"end":return e.stop()}},e,null,[[0,7]])}),yr=cr.a.mark(function e(){var a,t;return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,Object(ir.e)("SUBMIT_NAS_JOB_REQUEST");case 3:return a=e.sent,e.prev=4,e.next=7,Object(ir.b)(xr,a.data);case 7:if(200!==(t=e.sent).status){e.next=13;break}return e.next=11,Object(ir.d)({type:"SUBMIT_NAS_JOB_SUCCESS"});case 11:e.next=15;break;case 13:return e.next=15,Object(ir.d)({type:"SUBMIT_NAS_JOB_FAILURE",message:t.message});case 15:e.next=21;break;case 17:return e.prev=17,e.t0=e.catch(4),e.next=21,Object(ir.d)({type:"SUBMIT_NAS_JOB_FAILURE"});case 21:e.next=0;break;case 23:case"end":return e.stop()}},e,null,[[4,17]])}),xr=cr.a.mark(function e(a){var t,n;return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t={postData:a},e.next=4,Object(ir.b)(mr.a.post,"/katib/submit_nas_job/",t);case 4:return n=e.sent,e.abrupt("return",n);case 8:return e.prev=8,e.t0=e.catch(0),e.abrupt("return",{status:500,message:e.t0.response.data});case 11:case"end":return e.stop()}},e,null,[[0,8]])}),Sr=cr.a.mark(function e(){var a,t;return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,Object(ir.e)("FETCH_NAS_JOBS_REQUEST");case 3:return e.sent,e.prev=4,e.next=7,Object(ir.b)(Nr);case 7:if(200!==(a=e.sent).status){e.next=15;break}return(t=Object.assign(a.data,{})).map(function(e,a){Object.keys(e).forEach(function(a){var t=e[a];delete e[a],e[a.toLowerCase()]=t})}),e.next=13,Object(ir.d)({type:"FETCH_NAS_JOBS_SUCCESS",jobs:t});case 13:e.next=17;break;case 15:return e.next=17,Object(ir.d)({type:"FETCH_NAS_JOBS_FAILURE"});case 17:e.next=23;break;case 19:return e.prev=19,e.t0=e.catch(4),e.next=23,Object(ir.d)({type:"FETCH_NAS_JOBS_FAILURE"});case 23:e.next=0;break;case 25:case"end":return e.stop()}},e,null,[[4,19]])}),Nr=cr.a.mark(function e(){var a;return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(ir.b)(mr.a.get,"/katib/fetch_nas_jobs/");case 3:return a=e.sent,e.abrupt("return",a);case 7:return e.prev=7,e.t0=e.catch(0),e.next=11,Object(ir.d)({type:"FETCH_NAS_JOBS_FAILURE"});case 11:case"end":return e.stop()}},e,null,[[0,7]])}),Ar=cr.a.mark(function e(){var a,t,n;return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,Object(ir.e)("FETCH_NAS_JOB_INFO_REQUEST");case 3:return a=e.sent,e.prev=4,e.next=7,Object(ir.b)(jr,a.experimentName);case 7:if(200!==(t=e.sent).status){e.next=15;break}return(n=Object.assign(t.data,{})).map(function(e,a){Object.keys(e).forEach(function(a){var t=e[a];delete e[a],e[a.toLowerCase()]=t})}),e.next=13,Object(ir.d)({type:"FETCH_NAS_JOB_INFO_SUCCESS",steps:n});case 13:e.next=17;break;case 15:return e.next=17,Object(ir.d)({type:"FETCH_NAS_JOB_INFO_FAILURE"});case 17:e.next=23;break;case 19:return e.prev=19,e.t0=e.catch(4),e.next=23,Object(ir.d)({type:"FETCH_NAS_JOB_INFO_FAILURE"});case 23:e.next=0;break;case 25:case"end":return e.stop()}},e,null,[[4,19]])}),jr=cr.a.mark(function e(a){var t;return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(ir.b)(mr.a.get,"/katib/fetch_nas_job_info/?experimentName=".concat(a));case 3:return t=e.sent,e.abrupt("return",t);case 7:return e.prev=7,e.t0=e.catch(0),e.next=11,Object(ir.d)({type:"FETCH_NAS_JOB_INFO_FAILURE"});case 11:case"end":return e.stop()}},e,null,[[0,7]])}),Cr=cr.a.mark(function e(){var a,t;return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,Object(ir.e)("FETCH_TRIAL_TEMPLATES_REQUEST");case 3:return e.sent,e.prev=4,e.next=7,Object(ir.b)(kr);case 7:if(200!==(a=e.sent).status){e.next=15;break}return(t=Object.assign(a.data,{})).map(function(e,a){Object.keys(e).forEach(function(a){var t=e[a];delete e[a],e[a.toLowerCase()]=t})}),e.next=13,Object(ir.d)({type:"FETCH_TRIAL_TEMPLATES_SUCCESS",templates:t});case 13:e.next=17;break;case 15:return e.next=17,Object(ir.d)({type:"FETCH_TRIAL_TEMPLATES_FAILURE"});case 17:e.next=23;break;case 19:return e.prev=19,e.t0=e.catch(4),e.next=23,Object(ir.d)({type:"FETCH_TRIAL_TEMPLATES_FAILURE"});case 23:e.next=0;break;case 25:case"end":return e.stop()}},e,null,[[4,19]])}),kr=cr.a.mark(function e(){var a;return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(ir.b)(mr.a.get,"/katib/fetch_trial_templates/");case 3:return a=e.sent,e.abrupt("return",a);case 7:return e.prev=7,e.t0=e.catch(0),e.next=11,Object(ir.d)({type:"FETCH_TRIAL_TEMPLATES_FAILURE"});case 11:case"end":return e.stop()}},e,null,[[0,7]])}),Ir=cr.a.mark(function e(){var a,t;return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,Object(ir.e)("FETCH_COLLECTOR_TEMPLATES_REQUEST");case 3:return e.sent,e.prev=4,e.next=7,Object(ir.b)(Lr);case 7:if(200!==(a=e.sent).status){e.next=15;break}return(t=Object.assign(a.data,{})).map(function(e,a){Object.keys(e).forEach(function(a){var t=e[a];delete e[a],e[a.toLowerCase()]=t})}),e.next=13,Object(ir.d)({type:"FETCH_COLLECTOR_TEMPLATES_SUCCESS",templates:t});case 13:e.next=17;break;case 15:return e.next=17,Object(ir.d)({type:"FETCH_COLLECTOR_TEMPLATES_FAILURE"});case 17:e.next=23;break;case 19:return e.prev=19,e.t0=e.catch(4),e.next=23,Object(ir.d)({type:"FETCH_COLLECTOR_TEMPLATES_FAILURE"});case 23:e.next=0;break;case 25:case"end":return e.stop()}},e,null,[[4,19]])}),Lr=cr.a.mark(function e(){var a;return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(ir.b)(mr.a.get,"/katib/fetch_collector_templates/");case 3:return a=e.sent,e.abrupt("return",a);case 7:return e.prev=7,e.t0=e.catch(0),e.next=11,Object(ir.d)({type:"FETCH_COLLECTOR_TEMPLATES_FAILURE"});case 11:case"end":return e.stop()}},e,null,[[0,7]])}),Mr=cr.a.mark(function e(){var a,t,n;return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,Object(ir.e)("ADD_TEMPLATE_REQUEST");case 3:return a=e.sent,e.prev=4,e.next=7,Object(ir.b)(Pr,a.name,a.yaml,a.kind,a.action);case 7:if(200!==(t=e.sent).status){e.next=15;break}return(n=Object.assign(t.data.Data,{})).map(function(e,a){Object.keys(e).forEach(function(a){var t=e[a];delete e[a],e[a.toLowerCase()]=t})}),e.next=13,Object(ir.d)({type:"ADD_TEMPLATE_SUCCESS",templates:n,templateType:t.data.TemplateType});case 13:e.next=17;break;case 15:return e.next=17,Object(ir.d)({type:"ADD_TEMPLATE_FAILURE"});case 17:e.next=23;break;case 19:return e.prev=19,e.t0=e.catch(4),e.next=23,Object(ir.d)({type:"ADD_TEMPLATE_FAILURE"});case 23:e.next=0;break;case 25:case"end":return e.stop()}},e,null,[[4,19]])}),Pr=cr.a.mark(function e(a,t,n,r){var l,c;return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,l={name:a,yaml:t,kind:n,action:r},e.next=4,Object(ir.b)(mr.a.post,"/katib/update_template/",l);case 4:return c=e.sent,e.abrupt("return",c);case 8:return e.prev=8,e.t0=e.catch(0),e.next=12,Object(ir.d)({type:"ADD_TEMPLATE_FAILURE"});case 12:case"end":return e.stop()}},e,null,[[0,8]])}),Rr=cr.a.mark(function e(){var a,t,n;return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,Object(ir.e)("EDIT_TEMPLATE_REQUEST");case 3:return a=e.sent,e.prev=4,e.next=7,Object(ir.b)(Dr,a.name,a.yaml,a.kind,a.action);case 7:if(200!==(t=e.sent).status){e.next=15;break}return(n=Object.assign(t.data.Data,{})).map(function(e,a){Object.keys(e).forEach(function(a){var t=e[a];delete e[a],e[a.toLowerCase()]=t})}),e.next=13,Object(ir.d)({type:"EDIT_TEMPLATE_SUCCESS",templates:n,templateType:t.data.TemplateType});case 13:e.next=17;break;case 15:return e.next=17,Object(ir.d)({type:"EDIT_TEMPLATE_FAILURE"});case 17:e.next=23;break;case 19:return e.prev=19,e.t0=e.catch(4),e.next=23,Object(ir.d)({type:"EDIT_TEMPLATE_FAILURE"});case 23:e.next=0;break;case 25:case"end":return e.stop()}},e,null,[[4,19]])}),Dr=cr.a.mark(function e(a,t,n,r){var l,c;return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,l={name:a,yaml:t,kind:n,action:r},e.next=4,Object(ir.b)(mr.a.post,"/katib/update_template/",l);case 4:return c=e.sent,e.abrupt("return",c);case 8:return e.prev=8,e.t0=e.catch(0),e.next=12,Object(ir.d)({type:"EDIT_TEMPLATE_FAILURE"});case 12:case"end":return e.stop()}},e,null,[[0,8]])}),wr=cr.a.mark(function e(){var a,t,n;return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,Object(ir.e)("DELETE_TEMPLATE_REQUEST");case 3:return a=e.sent,e.prev=4,e.next=7,Object(ir.b)(Fr,a.name,a.kind,a.action);case 7:if(200!==(t=e.sent).status){e.next=15;break}return(n=Object.assign(t.data.Data,{})).map(function(e,a){Object.keys(e).forEach(function(a){var t=e[a];delete e[a],e[a.toLowerCase()]=t})}),e.next=13,Object(ir.d)({type:"DELETE_TEMPLATE_SUCCESS",templates:n,templateType:t.data.TemplateType});case 13:e.next=17;break;case 15:return e.next=17,Object(ir.d)({type:"DELETE_TEMPLATE_FAILURE"});case 17:e.next=23;break;case 19:return e.prev=19,e.t0=e.catch(4),e.next=23,Object(ir.d)({type:"DELETE_TEMPLATE_FAILURE"});case 23:e.next=0;break;case 25:case"end":return e.stop()}},e,null,[[4,19]])}),Fr=cr.a.mark(function e(a,t,n){var r,l;return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,r={name:a,kind:t,action:n},e.next=4,Object(ir.b)(mr.a.post,"/katib/update_template/",r);case 4:return l=e.sent,e.abrupt("return",l);case 8:return e.prev=8,e.t0=e.catch(0),e.next=12,Object(ir.d)({type:"DELETE_TEMPLATE_FAILURE"});case 12:case"end":return e.stop()}},e,null,[[0,8]])});function Hr(){return cr.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(ir.a)([Object(ir.c)(Cr),Object(ir.c)(Ir),Object(ir.c)(gr),Object(ir.c)(Sr),Object(ir.c)(Mr),Object(ir.c)(Rr),Object(ir.c)(wr),Object(ir.c)(ur),Object(ir.c)(Er),Object(ir.c)(br),Object(ir.c)(yr),Object(ir.c)(vr),Object(ir.c)(Or),Object(ir.c)(Ar)]);case 2:case"end":return e.stop()}},sr)}var Ur=t(629),Br=function(e){var a=Object(Jn.b)(),t=Object(Hn.e)(rr,e,Object(Hn.d)(Object(Hn.a)(a,Bn.a)));return t.runSaga=a.run,t.close=function(){return t.dispatch(Jn.a)},t}();Br.runSaga(Hr);var Jr=Object(ja.createMuiTheme)({palette:{primary:{main:"#000"},secondary:{main:"#fff"}},colors:{created:"#2304bd",running:"#8b8ffb",restarting:"#1eb9af",succeeded:"#63f291",failed:"#f26363"},typography:{fontFamily:"open sans,-apple-system,BlinkMacSystemFont,segoe ui,Roboto,helvetica neue,Arial,sans-serif,apple color emoji,segoe ui emoji,segoe ui symbol"}});c.a.render(r.a.createElement(Z.a,{store:Br},r.a.createElement(Ur.a,{basename:"/"},r.a.createElement(ja.MuiThemeProvider,{theme:Jr},r.a.createElement(Fn.a,null),r.a.createElement(Rn,null)))),document.getElementById("root")),"serviceWorker"in navigator&&navigator.serviceWorker.ready.then(function(e){e.unregister()})}},[[356,1,2]]]); \ No newline at end of file diff --git a/pkg/ui/v1alpha2/frontend/src/components/Templates/Common/AddDialog.jsx b/pkg/ui/v1alpha2/frontend/src/components/Templates/Common/AddDialog.jsx index 5fb64978daa..e286ed30612 100644 --- a/pkg/ui/v1alpha2/frontend/src/components/Templates/Common/AddDialog.jsx +++ b/pkg/ui/v1alpha2/frontend/src/components/Templates/Common/AddDialog.jsx @@ -72,6 +72,8 @@ class AddDialog extends React.Component { className={classes.textField} value={this.state.name} onChange={this.onChange("name")} + label="Template name" + placeholder="Template name" />
*/} -