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