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