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