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