(this["webpackJsonp@jbrowse/web"]=this["webpackJsonp@jbrowse/web"]||[]).push([[75],{2434:function(e,a,t){"use strict";t.r(a),t.d(a,"default",(function(){return g}));var r=t(83),n=t(1),o=t.n(n),c=t(51),l=t(2363),s=t(2373),i=t(2364),u=t(2396),m=t(2400),b=t(2399),N=t(2368),E=t(131),p=t.n(E),d=Object(c.a)((function(e){return{root:{},closeButton:{position:"absolute",right:e.spacing(1),top:e.spacing(1),color:e.palette.grey[500]}}}));function g(e){var a=d(),t=e.model,c=e.handleClose,E=t.minScore,g=t.maxScore,h=t.scaleType,f=Object(n.useState)("".concat(E!==Number.MIN_VALUE?E:"")),v=Object(r.a)(f,2),S=v[0],j=v[1],w=Object(n.useState)("".concat(g!==Number.MAX_VALUE?g:"")),x=Object(r.a)(w,2),y=x[0],C=x[1],M=!(""!==S&&""!==y&&!Number.isNaN(+S)&&!Number.isNaN(+y))||+y>+S,k=!("log"===h&&""!==S&&!Number.isNaN(+S))||+S>0;return o.a.createElement(u.a,{open:!0,onClose:c},o.a.createElement(b.a,null,"Set min/max score for track",o.a.createElement(N.a,{className:a.closeButton,onClick:c},o.a.createElement(p.a,null))),o.a.createElement(m.a,{style:{overflowX:"hidden"}},o.a.createElement("div",{className:a.root},o.a.createElement(i.a,null,"Enter min/max score: "),M?null:o.a.createElement(i.a,{color:"error"},"Max is greater than or equal to min"),k?null:o.a.createElement(i.a,{color:"error"},"Min score should be greater than 0 for log scale"),o.a.createElement(s.a,{value:S,onChange:function(e){j(e.target.value)},placeholder:"Enter min score"}),o.a.createElement(s.a,{value:y,onChange:function(e){C(e.target.value)},placeholder:"Enter max score"}),o.a.createElement(l.a,{variant:"contained",color:"primary",type:"submit",style:{marginLeft:20},disabled:!M,onClick:function(){t.setMinScore(""===S||Number.isNaN(+S)?void 0:+S),t.setMaxScore(""===y||Number.isNaN(+y)?void 0:+y),c()}},"Submit"))))}}}]);
//# sourceMappingURL=75.7ab31da1.chunk.js.map