"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useDeleteUnmaskedAttributeForRelation = exports.useMaskAttributeValue = exports.useUnmaskAttributeValue = exports.useUnmaskedAttributeValue = void 0;
var react_context_selector_1 = require("@fluentui/react-context-selector");
var context_1 = require("./context");
var useMaskedAttributesContext = function (selector) {
    return (0, react_context_selector_1.useContextSelector)(context_1.MaskedAttributesContext, selector);
};
var useUnmaskedAttributeValue = function (attributeValueUri) {
    return useMaskedAttributesContext(function (_a) {
        var unmaskedAttributes = _a.unmaskedAttributes;
        return unmaskedAttributes[attributeValueUri];
    });
};
exports.useUnmaskedAttributeValue = useUnmaskedAttributeValue;
var useUnmaskAttributeValue = function () {
    return useMaskedAttributesContext(function (_a) {
        var unmaskAttributeValue = _a.unmaskAttributeValue;
        return unmaskAttributeValue;
    });
};
exports.useUnmaskAttributeValue = useUnmaskAttributeValue;
var useMaskAttributeValue = function () { return useMaskedAttributesContext(function (_a) {
    var maskAttributeValue = _a.maskAttributeValue;
    return maskAttributeValue;
}); };
exports.useMaskAttributeValue = useMaskAttributeValue;
var useDeleteUnmaskedAttributeForRelation = function () {
    return useMaskedAttributesContext(function (_a) {
        var deleteUnmaskedAttributeForRelation = _a.deleteUnmaskedAttributeForRelation;
        return deleteUnmaskedAttributeForRelation;
    });
};
exports.useDeleteUnmaskedAttributeForRelation = useDeleteUnmaskedAttributeForRelation;
