@react-form-builder/core
Version:
React JSON Schema Form Builder to create complex, validated, reusable forms with no deep React knowledge required
15 lines (14 loc) • 450 B
JavaScript
import { isFunctionalProperty as c, isLocalizedProperty as l } from "../../../stores/ComponentStore.js";
import { calculatePropertyValue as n } from "../../calculation/propertyCalculator.js";
function f(t, o, p, u) {
const r = t.props[o];
if (c(r)) {
const { result: e } = n(r, p);
return [!0, e];
}
return l(r) ? [!0, u("component", t)[o]] : [!1];
}
export {
f as calculateProperty
};
//# sourceMappingURL=calculateProperty.js.map