"use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[7666],{7666(e,t,a){a.r(t),a.d(t,{default:()=>r});var l=a(1609),u=a(6087),n=a(9668);const r=({defaultValue:e,componentId:t,name:a,updateField:r,...o})=>{const[c,m]=(0,u.useState)(e.replace(/[^0-9]+/,"").trim()),[p,g]=(0,u.useState)(e.replace(/[0-9]+/,"").trim()||"kb");return(0,l.createElement)(n.default,{htmlFor:t,...o},(0,l.createElement)("div",{className:"og-input-group og-input-group--small"},(0,l.createElement)("input",{type:"number",min:"0",id:t,defaultValue:c,onChange:e=>{m(e.target.value);const t=e.target.value&&p?`${e.target.value}${p}`:"";r(a,t)}}),(0,l.createElement)("select",{defaultValue:p,onChange:e=>{g(e.target.value);const t=c&&e.target.value?`${c}${e.target.value}`:"";r(a,t)}},(0,l.createElement)("option",{value:"kb"},"KB"),(0,l.createElement)("option",{value:"mb"},"MB"),(0,l.createElement)("option",{value:"gb"},"GB"))))}}}]);