
/**
 *   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.239.0-alpha.0
 *   BUILD_TIMESTAMP: 1780013005605
 *   BUILD_DATE: Fri May 29 2026 00:03:25 GMT+0000 (Coordinated Universal Time)
 *   BUILD_COMMIT: 3344b6c0fd9fa858907db310cfb1ef5e0d224da2
 */
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
};
