| 12809 | }; |
| 12810 | } |
| 12811 | function cp(e, t) { |
| 12812 | const { child: n } = e; |
| 12813 | if (n.component.axes[t]) { |
| 12814 | const { layoutHeaders: i, resolve: r } = e.component; |
| 12815 | if (((r.axis[t] = Xf(r, t)), "shared" === r.axis[t])) { |
| 12816 | const r = "x" === t ? "column" : "row", |
| 12817 | o = i[r]; |
| 12818 | for (const i of n.component.axes[t]) { |
| 12819 | const t = ap(i.get("orient")); |
| 12820 | o[t] ??= [lp(e, r, !1)]; |
| 12821 | const n = gf(i, "main", e.config, { header: !0 }); |
| 12822 | (n && o[t][0].axes.push(n), (i.mainExtracted = !0)); |
| 12823 | } |
| 12824 | } |
| 12825 | } |
| 12826 | } |
| 12827 | function up(e) { |
| 12828 | for (const t of e.children) t.parseLayoutSize(); |
| 12829 | } |