@sheerid/jslib-nightly
Version:
SheerID JavaScript Library
42 lines (40 loc) • 1.31 kB
JavaScript
/**
* 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.230.0-alpha.0
* BUILD_TIMESTAMP: 1778694697559
* BUILD_DATE: Wed May 13 2026 17:51:37 GMT+0000 (Coordinated Universal Time)
* BUILD_COMMIT: 7af1c105d5485ac4ed1190c56d492bb4590667a9
*/
import { i as c, g as y, j as e, F as d } from "../_mysheerid-preview.js";
import { F as m } from "./FormFieldText-CJ-GVpZE.js";
const u = ({
value: s,
isErrored: a,
onChange: l,
intl: o,
isRequired: r = !1,
onKeyDown: i = void 0,
placeholder: t = "",
disabled: n = !1
}) => y("city")?.hidden ? null : /* @__PURE__ */ e.jsx(
m,
{
fieldId: "city",
value: s,
onChange: l,
placeholder: t || o.formatHTMLMessage({ id: "cityPlaceholder", defaultMessage: "City" }),
label: /* @__PURE__ */ e.jsx(d, { id: "city", defaultMessage: "City" }),
errorMessage: a && /* @__PURE__ */ e.jsx(d, { id: "errorId.invalidCity", defaultMessage: "Invalid city" }),
showPlaceholderAndHideLabel: !!t,
required: r,
onKeyDown: typeof i == "function" ? (f) => i(f) : void 0,
disabled: n,
autoComplete: "address-level2"
}
), M = c(u);
export {
M as C
};