"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getSignupUrl = void 0;
var _helpers = require("../../helpers");
const getSignupUrl = function () {
  let _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
    _ref$forwarder = _ref.forwarder,
    _ref$forwarder2 = _ref$forwarder === void 0 ? {} : _ref$forwarder,
    url = _ref$forwarder2.signup,
    id = _ref.id,
    language = _ref.language,
    _ref$urlParams = _ref.urlParams,
    _ref$urlParams2 = _ref$urlParams === void 0 ? {} : _ref$urlParams,
    miraiId = _ref$urlParams2.miraiId,
    type = _ref$urlParams2.type;
  if (!id || !language || !url) return;
  return "".concat(url).concat((0, _helpers.toUrlParams)({
    idtokenprovider: id,
    lang: language,
    miraiId,
    type
  }));
};
exports.getSignupUrl = getSignupUrl;
//# sourceMappingURL=getSignupUrl.js.map