
/**
 *   VERSION: 2.239.0-alpha.0
 *   BUILD_TIMESTAMP: 1780012993002
 *   BUILD_DATE: Fri May 29 2026 00:03:13 GMT+0000 (Coordinated Universal Time)
 *   BUILD_COMMIT: 3344b6c0fd9fa858907db310cfb1ef5e0d224da2
 */
import { i as u, g as c, j as e, F as r } from "../sheerid.js";
import { F as f } from "./FormFieldText-CPwStdCx.js";
const b = ({
  value: n,
  isErrored: d,
  onChange: a,
  explanation: l,
  intl: t,
  placeholder: i = "",
  isRequired: s = !1,
  disabled: o = !1
}) => {
  const m = () => s ? "" : /* @__PURE__ */ e.jsx(r, { id: "optional", defaultMessage: "Optional" });
  return c("driverLicenseNumber")?.hidden ? null : /* @__PURE__ */ e.jsx(
    f,
    {
      fieldId: "driver-license-number",
      refId: "driverLicenseNumber",
      value: n,
      onChange: a,
      placeholder: i || t.formatHTMLMessage({
        id: "driverLicenseNumberPlaceholder",
        defaultMessage: "Driver license number"
      }),
      label: /* @__PURE__ */ e.jsx(r, { id: "driverLicenseNumber", defaultMessage: "Driver license number" }),
      errorMessage: d && /* @__PURE__ */ e.jsx(
        r,
        {
          id: "errorId.invalidDriverLicenseNumber",
          defaultMessage: "Invalid driver license number"
        }
      ),
      showPlaceholderAndHideLabel: !!i,
      required: s,
      explanation: l || m(),
      disabled: o
    }
  );
}, L = u(b);
export {
  L as D
};
