"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[7045],{77045:(e,n,t)=>{t.r(n),t.d(n,{default:()=>h});var s=t(41867),i=t(3762),a=t(47409),o=t(51590),l=t(49133),r=t(27768),d=t(23801),c=t(35421),w=t(80838);const h=(0,i.observer)((function(e){let{model:n,handleClose:t}=e;const[i,h]=(0,s.useState)("".concat(n.windowSizeSetting)),[u,g]=(0,s.useState)("".concat(n.windowDeltaSetting));return(0,w.jsx)(c.Dialog,{open:!0,onClose:t,title:"Edit GC content params",children:(0,w.jsxs)(a.Z,{children:[(0,w.jsx)(o.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."}),u>i?(0,w.jsx)(c.ErrorMessage,{error:"It is not recommended to make the step size larger than the window size"}):null,(0,w.jsx)(l.Z,{label:"Size of sliding window (bp)",value:"".concat(i),onChange:e=>h(e.target.value)}),(0,w.jsx)(l.Z,{label:"Step size of sliding window (bp)",value:"".concat(u),onChange:e=>g(e.target.value)}),(0,w.jsxs)(r.Z,{children:[(0,w.jsx)(d.Z,{variant:"contained",onClick:()=>{n.setGCContentParams({windowSize:+i,windowDelta:+u}),t()},children:"Submit"}),(0,w.jsx)(d.Z,{variant:"contained",color:"secondary",onClick:()=>t(),children:"Cancel"})]})]})})}))}}]);
//# sourceMappingURL=7045.8bb303a2.chunk.js.map