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