import { CalloutOffsetPM } from "../PM/CalloutOffsetPM";
export const calloutOffsetAdapter = {
    defaultVM: "LEFT",
    subscribe: (id, appObjects, setVM) => {
        if (!id)
            return;
        const pm = CalloutOffsetPM.get(id, appObjects);
        if (!pm) {
            appObjects.submitError("calloutSizeAdapter", "Unable to find CalloutOffsetPM");
            return;
        }
        pm.addView(setVM);
    },
    unsubscribe: (id, appObjects, setVM) => {
        const pm = CalloutOffsetPM.get(id, appObjects);
        if (pm) {
            pm.removeView(setVM);
        }
    },
};
//# sourceMappingURL=calloutOffsetAdapter.js.map