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