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