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