| 4490 | } |
| 4491 | |
| 4492 | const inlineTuple = (def: QueryDef, tuple: unknown): unknown => { |
| 4493 | if ( |
| 4494 | !Array.isArray(tuple) || tuple[1] !== 2 || typeof tuple[0] !== "string" |
| 4495 | ) { |
| 4496 | return tuple |
| 4497 | } |
| 4498 | const raw = parsed.get(def.name)?.get(tuple[0]) |
| 4499 | if (raw === undefined || raw[1] !== 0) return tuple |
| 4500 | return def.list === undefined |
| 4501 | ? [raw[0], 0, raw[2], raw[3], false] |
| 4502 | : [raw[0], 0, raw[2], raw[3], false, tuple[2] === true] |
| 4503 | } |
| 4504 | |
| 4505 | const inline = (component: unknown, encoded: unknown): unknown => { |
| 4506 | const bound = queryCore.boundOf( |