"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getCurrency = void 0;
var _locale = require("@mirai/locale");
const getCurrency = function () {
  let {
    cookies = {},
    currency,
    urlParams = {}
  } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  const {
    forceUri,
    currency: urlCurrency
  } = urlParams;
  return (forceUri ? urlCurrency : undefined) || cookies.currency || urlCurrency || (currency !== _locale.DEFAULT_CURRENCY ? currency : undefined);
};
exports.getCurrency = getCurrency;
//# sourceMappingURL=getCurrency.js.map