UNPKG

geostyler

Version:
28 lines (27 loc) 1.11 kB
var h = Object.defineProperty; var p = (n, a, e) => a in n ? h(n, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[a] = e; var f = (n, a, e) => p(n, typeof a != "symbol" ? a + "" : a, e); import g from "../locale/en_US.js"; const r = class r { }; f(r, "getFormItemSupportProps", ({ propName: a, symbolizerName: e, context: l }) => { if (!l || Object.keys(l).length < 1) return {}; const { hideUnsupported: i = !1, locale: c = g.UnsupportedPropertiesUtil } = l.options, t = {}, s = r.getUnsupportedPropsForSymbolizer(l, e), d = a, o = s == null ? void 0 : s[d]; return o && (t.hasFeedback = !0, o === "none" ? (t.help = c.notSupported, t.validateStatus = "warning", i && (t.hidden = !0)) : o === "partial" ? (t.help = c.partiallySupported, t.validateStatus = "warning") : (t.help = o.info, t.validateStatus = "warning", o.support === "none" && i && (t.hidden = !0))), t; }), f(r, "getUnsupportedPropsForSymbolizer", (a, e) => { var i; const l = e; return (i = a == null ? void 0 : a.Symbolizer) == null ? void 0 : i[l]; }); let S = r; export { S as default };