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