"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const defintions_1 = require("./defintions");
class PWAHelper {
    constructor(tree) {
        this.tree = tree;
    }
    get manifest() {
        for (const candidate of defintions_1.PWA_MANIFEST_CANDIDATES) {
            if (this.tree.exists(candidate)) {
                const content = this.tree.read(candidate) || '';
                return JSON.parse(content.toString());
            }
        }
    }
    iconPath(icon) {
        return `src/${icon.src}`; // TODO check src prefix 
    }
}
exports.PWAHelper = PWAHelper;
//# sourceMappingURL=pwa.js.map