PageSourceSearch

https://navpro.truckerpath.com/assets/number-field-Dxe2TK1R.js

js truckerpath.com collected 2026-10-01 12:04:39 UTC 2,134 bytes, 62 lines download raw bytes

1import { a as __toESM } from "./rolldown-runtime-Cql5ZV07.js";
2import { g as require_compiler_runtime, t as require_jsx_runtime } from "./vendor-react-HZz3WA9p.js";
3import { G as InputGroup, K as InputGroupAddon, et as useFormProps, nt as FormItem, q as InputGroupInput } from "./main-DDHJZG-i.js";
4import { t as InputNumber } from "./input-number-DboDBRGc.js";
5var import_compiler_runtime = /* @__PURE__ */ __toESM(require_compiler_runtime());
6var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime());
7var NumberField = (props) => {
8	const $ = (0, import_compiler_runtime.c)(5);
9	const { formItemProps, fieldProps } = useFormProps(props);
10	let t0;
11	if ($[0] !== fieldProps) {
12		t0 = (t1$1) => {
13			const { field, fieldState } = t1$1;
14			const { onBlur, emptyValue, prefixIcon, suffixIcon, className,...restFieldProps } = fieldProps;
15			const sharedProps = {
16				"aria-invalid": fieldState.invalid,
17				...field,
18				...restFieldProps,
19				onChange: (value) => field.onChange(value === void 0 && emptyValue !== void 0 ? emptyValue : value),
20				onBlur: (e) => {
21					field.onBlur();
22					onBlur?.(e);
23				}
24			};
25			if (!prefixIcon && !suffixIcon) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InputNumber, {
26				className,
27				...sharedProps
28			});
29			return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(InputGroup, {
30				className,
31				children: [
32					prefixIcon && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InputGroupAddon, {
33						align: "inline-start",
34						children: prefixIcon
35					}),
36					/* @__PURE__ */ (0, import_jsx_runtime.jsx)(InputNumber, {
37						...sharedProps,
38						customInput: InputGroupInput
39					}),
40					suffixIcon && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InputGroupAddon, {
41						align: "inline-end",
42						children: suffixIcon
43					})
44				]
45			});
46		};
47		$[0] = fieldProps;
48		$[1] = t0;
49	} else t0 = $[1];
50	let t1;
51	if ($[2] !== formItemProps || $[3] !== t0) {
52		t1 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FormItem, {
53			...formItemProps,
54			render: t0
55		});
56		$[2] = formItemProps;
57		$[3] = t0;
58		$[4] = t1;
59	} else t1 = $[4];
60	return t1;
61};
62export { NumberField as t };

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.