"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getMetaRates = void 0;
const ID_SEPARATOR = '--';
const getMetaRates = value => {
  var _rates;
  if (!value) return;
  let rates;
  try {
    rates = value.split('_').map(id => window.atob(id).replace(/[|]/g, ID_SEPARATOR)).filter(id => id.includes(ID_SEPARATOR));
  } catch (error) {
    return;
  }
  if ((_rates = rates) !== null && _rates !== void 0 && _rates.length) return rates;
};
exports.getMetaRates = getMetaRates;
//# sourceMappingURL=getMetaRates.js.map