@forbespro/lead-agent
Version:
Lead Chat Agent React Component
33 lines (32 loc) • 762 B
JavaScript
import { pointStart as a, pointEnd as h } from "./index74.js";
function m(t, e) {
const n = t.all(e), i = n.shift(), p = [];
if (i) {
const r = {
type: "element",
tagName: "thead",
properties: {},
children: t.wrap([i], !0)
};
t.patch(e.children[0], r), p.push(r);
}
if (n.length > 0) {
const r = {
type: "element",
tagName: "tbody",
properties: {},
children: t.wrap(n, !0)
}, c = a(e.children[1]), o = h(e.children[e.children.length - 1]);
c && o && (r.position = { start: c, end: o }), p.push(r);
}
const l = {
type: "element",
tagName: "table",
properties: {},
children: t.wrap(p, !0)
};
return t.patch(e, l), t.applyData(e, l);
}
export {
m as table
};