
/**
 *   WARNING: This file is intended to be used within MySheerID.
 *   This file is not intended for use in other contexts and there are no guarantees about its behavior outside of MySheerID.
 */ 
/**
 *   VERSION: 2.240.0-alpha.1
 *   BUILD_TIMESTAMP: 1780360182346
 *   BUILD_DATE: Tue Jun 02 2026 00:29:42 GMT+0000 (Coordinated Universal Time)
 *   BUILD_COMMIT: 758cedd37e00f49a728d704d9ed36884f0f12d79
 */
import { i as u, g as c, j as e, F as r } from "../_mysheerid-preview.js";
import { F as f } from "./FormFieldText-BEmRFdkH.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
};
