export var buildIframeQuery = function buildIframeQuery() {
  var routeQuery = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
  var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  var searchParams = new URLSearchParams(routeQuery || '');
  Object.keys(params).forEach(function (key) {
    var value = params[key];
    if (value !== undefined && value !== null) {
      searchParams.set(key, value);
    }
  });
  return searchParams.toString().replace(/\+/g, '%20');
};