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