1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[865],{50865:(e,r,t)=>{t.r(r),t.d(r,{default:()=>d});var n=t(70906),i=t(93481),l=t(79097),o=t(70450),a=t(56904);let u=({value:e,onChange:r,onSubmit:t,min:n,max:u,step:d=1,placeholder:s="",label:c,id:m,format:f,borderStyle:b="rounded",paddingX:g=1,cursor:h="â",stepHint:N})=>{let[p,x]=(0,o.useState)(),[v,F]=(0,o.useState)(""),D=(0,a.DP)(),[S]=(0,o.useState)(!0),k=e??p,Y=e=>{let r=e;return void 0!==n&&(r=Math.max(n,r)),void 0!==u&&(r=Math.min(u,r)),r},w=e=>{r?r(e):x(e)},_=e=>{let r=Y(e);w(r),F(String(r))};(0,l.de)(e=>{if(S){if("up"===e.name)return void _((k??0)+d);if("down"===e.name)return void _((k??0)-d);if("return"===e.name){let e=""===v?k:Number.parseFloat(v);if(void 0!==e&&!Number.isNaN(e)){let r=Y(e);t?.(r)}return}if("backspace"===e.name||"delete"===e.name){let e=v.slice(0,-1);if(F(e),""===e||"-"===e)return;let r=Number.parseFloat(e);Number.isNaN(r)||w(Y(r));return}if("escape"!==e.name&&"tab"!==e.name&&e.name&&/^[\d.-]$/.test(e.name)){if("-"===e.name&&v.length>0||"."===e.name&&v.includes("."))return;let r=v+e.name;F(r);let t=Number.parseFloat(r);Number.isNaN(t)||w(Y(t))}}});let C=S?D.colors.focusRing:D.colors.border,R="";S&&""!==v?R=v:void 0!==k&&(R=f?f(k):String(k));let $=N??`â +${d} â -${d}`;return(0,i.FD)("box",{flexDirection:"column",children:[c&&(0,i.Y)("text",{children:(0,i.Y)("b",{children:c})}),(0,i.FD)("box",{flexDirection:"row",alignItems:"center",gap:1,children:[(0,i.FD)("box",{borderStyle:b,borderColor:C,paddingLeft:g,paddingRight:g,children:[(0,i.Y)("text",{fg:R?D.colors.foreground:D.colors.mutedForeground,children:R||s}),S&&(0,i.Y)("text",{fg:D.colors.focusRing,children:h})]}),S&&(0,i.Y)("text",{fg:D.colors.mutedForeground,children:$})]})]})};function d(){return(0,n.jsx)(u,{label:"Quantity",min:0,max:100,step:1})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.