| 9485 | } |
| 9486 | class Dd extends $c { |
| 9487 | constructor(e, n, i, r) { |
| 9488 | (super(e), (this.model = n), (this.name = i), (this.data = r)); |
| 9489 | for (const e of Be) { |
| 9490 | const i = n.facet[e]; |
| 9491 | if (i) { |
| 9492 | const { bin: r, sort: o } = i; |
| 9493 | this[e] = { |
| 9494 | name: n.getName(`${e}_domain`), |
| 9495 | fields: [ma(i), ...(mn(r) ? [ma(i, { binSuffix: "end" })] : [])], |
| 9496 | ...(Lo(o) |
| 9497 | ? { sortField: o } |
| 9498 | : t.isArray(o) |
| 9499 | ? { sortIndexField: Ff(i, e) } |
| 9500 | : {}), |
| 9501 | }; |
| 9502 | } |
| 9503 | } |
| 9504 | this.childModel = n.child; |
| 9505 | } |
| 9506 | hash() { |
| 9507 | let e = "Facet"; |
| 9508 | for (const t of Be) this[t] && (e += ` ${t.charAt(0)}:${d(this[t])}`); |