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