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