import { FramedScreenSizePM, defaultFramedScreenVM, } from "../PM/FramedScreenSizePM";
export const framedScreenSizeAdapter = {
    defaultVM: defaultFramedScreenVM,
    subscribe: (appObjects, setVM) => {
        const pm = FramedScreenSizePM.get(appObjects);
        if (!pm) {
            appObjects.submitError("framedScreenSizeAdapter", "Unable to find FramedScreenSizePM");
            return;
        }
        pm.addView(setVM);
    },
    unsubscribe: (appObjects, setVM) => {
        const pm = FramedScreenSizePM.get(appObjects);
        if (!pm) {
            appObjects.submitError("framedScreenSizeAdapter", "Unable to find FramedScreenSizePM");
            return;
        }
        pm.removeView(setVM);
    },
};
//# sourceMappingURL=framedScreenSizeAdapter.js.map