"use strict";
/*
 * Copyright (c) 2022.
 * Author Peter Placzek (tada5hi)
 * For the full copyright and license information,
 * view the LICENSE file that was distributed with this source code.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.buildFieldDomainRecords = void 0;
const constants_1 = require("../../../constants");
function buildFieldDomainRecords(data) {
    if (typeof data === 'undefined') {
        return {};
    }
    let domainFields = {};
    if (Array.isArray(data)) {
        domainFields[constants_1.DEFAULT_ID] = data;
    }
    else {
        domainFields = data;
    }
    return domainFields;
}
exports.buildFieldDomainRecords = buildFieldDomainRecords;
//# sourceMappingURL=domain.js.map