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