"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.findRef = findRef;
function findRef(component, name) {
    let c = component;
    while (c) {
        if (c.$ref[name]) {
            return c.$ref[name];
        }
        c = c.$slotParent;
    }
    return null;
}
//# sourceMappingURL=findRef.js.map