"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[3384],{93384:(e,t,n)=>{n.r(t),n.d(t,{default:()=>w});var a=n(7552),l=n(68446),i=n(29499),o=n(36715),s=n(1343),r=n(58507),d=n(5401),c=n(49823);const w=(0,l.observer)((function({model:e,handleClose:t}){const[n,l]=(0,a.useState)(`${e.windowSizeSetting}`),[w,m]=(0,a.useState)(`${e.windowDeltaSetting}`);return a.createElement(c.Dialog,{open:!0,onClose:t,title:"Edit GC content params"},a.createElement(i.A,null,a.createElement(o.A,null,"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."),w>n?a.createElement(c.ErrorMessage,{error:"It is not recommended to make the step size larger than the window size"}):null,a.createElement(s.A,{label:"Size of sliding window (bp)",value:n,onChange:e=>{l(e.target.value)}}),a.createElement(s.A,{label:"Step size of sliding window (bp)",value:w,onChange:e=>{m(e.target.value)}}),a.createElement(r.A,null,a.createElement(d.A,{variant:"contained",onClick:()=>{e.setGCContentParams({windowSize:+n,windowDelta:+w}),t()}},"Submit"),a.createElement(d.A,{variant:"contained",color:"secondary",onClick:()=>{t()}},"Cancel"))))}))}}]);
//# sourceMappingURL=3384.e146a796.chunk.js.map