(vnode = n2)
| 2367 | } |
| 2368 | }; |
| 2369 | const mountToTarget = (vnode = n2) => { |
| 2370 | const disabled2 = isTeleportDisabled(vnode.props); |
| 2371 | const target = vnode.target = resolveTarget(vnode.props, querySelector); |
| 2372 | const targetAnchor = prepareAnchor(target, vnode, createText, insert); |
| 2373 | if (target) { |
| 2374 | if (namespace !== "svg" && isTargetSVG(target)) { |
| 2375 | namespace = "svg"; |
| 2376 | } else if (namespace !== "mathml" && isTargetMathML(target)) { |
| 2377 | namespace = "mathml"; |
| 2378 | } |
| 2379 | if (parentComponent && parentComponent.isCE) { |
| 2380 | (parentComponent.ce._teleportTargets || (parentComponent.ce._teleportTargets = /* @__PURE__ */ new Set())).add(target); |
| 2381 | } |
| 2382 | if (!disabled2) { |
| 2383 | mount(vnode, target, targetAnchor); |
| 2384 | updateCssVars(vnode, false); |
| 2385 | } |
| 2386 | } |
| 2387 | }; |
| 2388 | const queuePendingMount = (vnode) => { |
| 2389 | const mountJob = () => { |
| 2390 | if (pendingMounts.get(vnode) !== mountJob) return; |
no test coverage detected