"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getProfileUrl = void 0;
var _Core = require("../../../Core.constants");
var _helpers = require("../../helpers");
var _Session = require("../Session.constants");
const getProfileUrl = function () {
  let {
    authType,
    id,
    forwarder: {
      profile: url
    } = {},
    language,
    urlParams: {
      miraiId,
      type
    } = {},
    value
  } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  if (!id || !language || !url) return;
  return authType === _Core.AUTH_TYPE.SENATOR ? _Session.SENATOR_PROFILE_URL[language] || _Session.SENATOR_PROFILE_URL['en'] : "".concat(url).concat((0, _helpers.toUrlParams)({
    idtokenprovider: id,
    lang: language,
    miraiId,
    context: value,
    type
  }));
};
exports.getProfileUrl = getProfileUrl;
//# sourceMappingURL=getProfileUrl.js.map