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