@react-form-builder/core
Version:
React JSON Schema Form Builder to create complex, validated, reusable forms with no deep React knowledge required
45 lines (44 loc) • 1.2 kB
JavaScript
import { jsx as l } from "react/jsx-runtime";
import { ComponentStore as n } from "../../stores/ComponentStore.js";
import { addOrUpdateFeatures as s } from "../define/utils/ComponentFeature.js";
import { cfHideFromComponentPalette as p } from "../define/utils/integratedComponentFeatures.js";
import { Model as m } from "../define/utils/Model.js";
import v from "./internalErrorModel.module.css.js";
import { screenModel as t } from "./screenModel.js";
const a = ({ error: r }) => /* @__PURE__ */ l("h1", { className: v.internalErrorStyle, children: r?.message ?? JSON.stringify(r) }), i = "InternalError", c = s(
{},
{ name: p, value: !0 }
), d = new m(
a,
i,
void 0,
void 0,
void 0,
void 0,
void 0,
void 0,
i,
void 0,
void 0,
void 0,
void 0,
void 0,
void 0,
c
);
function M(r) {
const o = new n(d.name, d.type);
o.props.error = { value: r };
const e = new n(t.name, t.type);
return e.children = [o], e;
}
function h(r) {
const o = { error: r };
return new m(a, void 0, void 0, void 0, void 0, o);
}
export {
h as buildInternalErrorModel,
M as buildInternalErrorStore,
d as internalErrorModel
};
//# sourceMappingURL=internalErrorModel.js.map