"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isTransparentAdapter = void 0;
const PM_1 = require("../PM");
exports.isTransparentAdapter = {
    defaultVM: false,
    subscribe: (id, appObjects, setVM) => {
        if (!id)
            return;
        const pm = PM_1.IsTransparentPM.get(id, appObjects);
        if (!pm) {
            appObjects.submitError("isTransparentAdapter", "Unable to find PM");
            return;
        }
        pm.addView(setVM);
    },
    unsubscribe: (id, appObjects, setVM) => {
        PM_1.IsTransparentPM.get(id, appObjects)?.removeView(setVM);
    },
};
//# sourceMappingURL=isTransparentAdapter.js.map