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