"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.prepareChangeData = void 0;
var attributesView_1 = require("../helpers/attributesView");
var prepareChangeData = function (attributeValue, attributeType, options) {
    if (options === void 0) { options = {}; }
    return function (editorValue) {
        var value = (0, attributesView_1.editorValueToAttributeValue)(attributeType, editorValue, options);
        return {
            value: value,
            uri: attributeValue.uri,
            attributeType: attributeType
        };
    };
};
exports.prepareChangeData = prepareChangeData;
