"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getScriptUrl = void 0;
const getScriptUrl = _ref => {
  let {
    clientId,
    region,
    SellerId
  } = _ref;
  let url;
  if (region === 'UK') url = process.env.METHOD_AMAZON_SCRIPT_UK;else if (region === 'US') url = process.env.METHOD_AMAZON_SCRIPT_US;else url = process.env.METHOD_AMAZON_SCRIPT_DE;
  if (clientId !== process.env.AMAZON_PROVIDER_CLIENT_ID && SellerId !== process.env.AMAZON_PROVIDER_SELLER_ID) url = url.replace('/sandbox', '');
  return url;
};
exports.getScriptUrl = getScriptUrl;
//# sourceMappingURL=getScriptUrl.js.map