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