"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.stylusIsInUseAdapter = void 0;
const StylusIsInUsePM_1 = require("../PMs/StylusIsInUsePM");
exports.stylusIsInUseAdapter = {
    defaultVM: false,
    subscribe: (appObjects, setVM) => {
        const pm = StylusIsInUsePM_1.StylusIsInUsePM.get(appObjects);
        if (!pm) {
            appObjects.submitError("stylusIsInUseAdapter", "Unable to find StylusIsInUsePM");
            return;
        }
        pm.addView(setVM);
    },
    unsubscribe: (appObjects, setVM) => {
        const pm = StylusIsInUsePM_1.StylusIsInUsePM.get(appObjects);
        pm?.removeView(setVM);
    },
};
//# sourceMappingURL=stylusIsInUseAdapter.js.map