"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[7045],{77045:function(e,n,t){t.r(n);var i=t(96234),s=t(41867),a=t(3762),o=t(47409),r=t(51590),l=t(49133),c=t(27768),d=t(23801),w=t(35421),u=t(80838),h=(0,a.observer)((function(e){var n=e.model,t=e.handleClose,a=(0,s.useState)("".concat(n.windowSizeSetting)),h=(0,i.Z)(a,2),g=h[0],m=h[1],b=(0,s.useState)("".concat(n.windowDeltaSetting)),f=(0,i.Z)(b,2),C=f[0],p=f[1];return(0,u.jsx)(w.Dialog,{open:!0,onClose:t,title:"Edit GC content params",children:(0,u.jsxs)(o.Z,{children:[(0,u.jsx)(r.Z,{children:"GC content is calculated in a particular sliding window of size N, and then the sliding window moves (steps) some number of bases M forward. Note that small step sizes can result in high CPU over large areas, and it is not recommended to make the step size larger than the window size as then the sliding window will miss contents."}),C>g?(0,u.jsx)(w.ErrorMessage,{error:"It is not recommended to make the step size larger than the window size"}):null,(0,u.jsx)(l.Z,{label:"Size of sliding window (bp)",value:"".concat(g),onChange:function(e){return m(e.target.value)}}),(0,u.jsx)(l.Z,{label:"Step size of sliding window (bp)",value:"".concat(C),onChange:function(e){return p(e.target.value)}}),(0,u.jsxs)(c.Z,{children:[(0,u.jsx)(d.Z,{variant:"contained",onClick:function(){n.setGCContentParams({windowSize:+g,windowDelta:+C}),t()},children:"Submit"}),(0,u.jsx)(d.Z,{variant:"contained",color:"secondary",onClick:function(){return t()},children:"Cancel"})]})]})})}));n.default=h}}]);
//# sourceMappingURL=7045.cc46f240.chunk.js.map