PageSourceSearch

https://brickfilms.com/assets/NumberInput-Cqr_QFpC.js

js brickfilms.com collected 2026-10-01 11:32:52 UTC 1,641 bytes, 2 lines download raw bytes

1import{o as e}from"./rolldown-runtime-C0FnF6B9.js";import{t}from"./jsx-runtime-By_aJMXI.js";import{t as n}from"./react-DiVRNtpo.js";var r=e(n()),i=`_container_131pi_1`,a=`_readOnly_131pi_13`,o=`_button_131pi_21`,s=`_input_131pi_22`,c=`_noTag_131pi_27`,l=`_field_131pi_65`,u=t(),d=(e,t)=>{Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,`value`).set.call(e,t);var n=new Event(`input`,{bubbles:!0});e.dispatchEvent(n)},f=r.memo(({register:e={},className:t=``,tag:n=``,width:r=`min`,style:f={},min:p=-1/0,max:m=1/0,onFocus:h,onBlur:g,onValueChange:_=null,disabled:v=!1,...y})=>{let b=(e=0)=>t=>{var n;if(v)return;let r=t==null||(n=t.target)==null||(n=n.parentNode)==null?void 0:n.querySelector(`input`);if(!r)return;let i=Math.min(m,Math.max(p,parseInt(r.value,10)+e||0));_&&_(i),d(r,i)},x=t=>{e.onFocus&&e.onFocus(t),h&&h(t)},S=t=>{var n;let r=t==null||(n=t.target)==null||(n=n.parentNode)==null?void 0:n.querySelector(`input`);r&&(r.value=Math.min(m,Math.max(p,parseInt(r.value,10)||0)),_&&_(r.value),e.onBlur&&e.onBlur(t),g&&g(t))};return(0,u.jsxs)(`div`,{className:`${i} ${v?a:``} ${!n&&r===`min`?c:``}`,style:f,children:[(0,u.jsx)(`button`,{onKeyDown:e=>{e.preventDefault()},type:`button`,className:o,onClick:b(-1),children:`-`}),(0,u.jsxs)(`label`,{className:l,children:[(0,u.jsx)(`input`,{min:p,max:m,type:`number`,className:`${s} ${t}`,disabled:v,...y,...e,onBlur:S,onFocus:x}),n&&(0,u.jsx)(`span`,{className:`_tag_131pi_71`,children:n})]}),(0,u.jsx)(`button`,{onKeyDown:e=>{e.preventDefault()},type:`button`,className:o,onClick:b(1),children:`+`})]})});export{f as t};
2//# sourceMappingURL=NumberInput-Cqr_QFpC.js.map

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.