| 12498 | (super(e), (this.transform = t), (this.secondary = n)); |
| 12499 | } |
| 12500 | static make(e, t, n, i) { |
| 12501 | const r = t.component.data.sources, |
| 12502 | { from: o } = n; |
| 12503 | let a = null; |
| 12504 | if ( |
| 12505 | (function (e) { |
| 12506 | return J(e, "data"); |
| 12507 | })(o) |
| 12508 | ) { |
| 12509 | let e = gp(o.data, r); |
| 12510 | e || ((e = new Ad(o.data)), r.push(e)); |
| 12511 | const n = t.getName(`lookup_${i}`); |
| 12512 | ((a = new wc(e, n, bc.Lookup, t.component.data.outputNodeRefCounts)), |
| 12513 | (t.component.data.outputNodes[n] = a)); |
| 12514 | } else if ( |
| 12515 | (function (e) { |
| 12516 | return J(e, "param"); |
| 12517 | })(o) |
| 12518 | ) { |
| 12519 | const e = o.param; |
| 12520 | let i; |
| 12521 | n = { as: e, ...n }; |
| 12522 | try { |
| 12523 | i = t.getSelectionComponent(C(e), e); |
| 12524 | } catch (t) { |
| 12525 | throw new Error( |
| 12526 | (function (e) { |
| 12527 | return `Lookups can only be performed on selection parameters. "${e}" is a variable parameter.`; |
| 12528 | })(e), |
| 12529 | ); |
| 12530 | } |
| 12531 | if (((a = i.materialized), !a)) |
| 12532 | throw new Error( |
| 12533 | (function (e) { |
| 12534 | return `Cannot define and lookup the "${e}" selection in the same view. Try moving the lookup into a second, layered view?`; |
| 12535 | })(e), |
| 12536 | ); |
| 12537 | } |
| 12538 | return new ep(e, n, a.getSource()); |
| 12539 | } |
| 12540 | dependentFields() { |
| 12541 | return new Set([this.transform.lookup]); |
| 12542 | } |