"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.calloutListAdapter = void 0;
const CalloutListPM_1 = require("../PM/CalloutListPM");
exports.calloutListAdapter = {
    defaultVM: [],
    subscribe: (id, appObjects, setVM) => {
        if (!id)
            return;
        const pm = CalloutListPM_1.CalloutListPM.getById(id, appObjects);
        if (!pm) {
            appObjects.submitError("calloutSizeAdapter", "Unable to find CalloutListPM");
            return;
        }
        pm.addView(setVM);
    },
    unsubscribe: (id, appObjects, setVM) => {
        const pm = CalloutListPM_1.CalloutListPM.getById(id, appObjects);
        if (pm) {
            pm.removeView(setVM);
        }
    },
};
//# sourceMappingURL=calloutListAdapter.js.map