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