"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.handlesToNameAndHost = exports.handleToNameAndHost = void 0;
const constants_1 = require("../initializers/constants");
function handleToNameAndHost(handle) {
    let [name, host] = handle.split('@');
    if (host === constants_1.WEBSERVER.HOST)
        host = null;
    return { name, host, handle };
}
exports.handleToNameAndHost = handleToNameAndHost;
function handlesToNameAndHost(handles) {
    return handles.map(h => handleToNameAndHost(h));
}
exports.handlesToNameAndHost = handlesToNameAndHost;
//# sourceMappingURL=actors.js.map