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