
/**
 *   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 g, g as F, j as e, F as r } from "../_mysheerid-preview.js";
import { F as M } from "./FormFieldText-BEmRFdkH.js";
const c = ({
  value: a,
  isErrored: i,
  onChange: t,
  intl: o,
  isRequired: l = !1,
  onKeyDown: s = void 0,
  placeholder: d = "",
  label: n,
  explanation: f = "",
  disabled: m = !1
}) => F("address1")?.hidden ? null : /* @__PURE__ */ e.jsx(
  M,
  {
    fieldId: "address",
    value: a,
    onChange: t,
    placeholder: d || o.formatHTMLMessage({ id: "addressPlaceholder", defaultMessage: "Address" }),
    label: n || /* @__PURE__ */ e.jsx(r, { id: "address", defaultMessage: "Address" }),
    errorMessage: i && /* @__PURE__ */ e.jsx(r, { id: "errorId.invalidAddress", defaultMessage: "Invalid address" }),
    showPlaceholderAndHideLabel: !!d,
    required: l,
    onKeyDown: typeof s == "function" ? (u) => s(u) : void 0,
    explanation: f,
    disabled: m,
    autoComplete: "street-address"
  }
), j = g(c);
export {
  j as A
};
