text: webpackHotUpdate("background",{
  
  /***/ "./src/services/helpers.ts":
  /*!*********************************!*\
    !*** ./src/services/helpers.ts ***!
    \*********************************/
  /*! exports provided: API_RECALL_TIMER, normalizePrice, isCoinPresent, normalizeText, normalizeError, normalizeNotificationMessage */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  __webpack_require__.r(__webpack_exports__);
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "API_RECALL_TIMER", function() { return API_RECALL_TIMER; });
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "normalizePrice", function() { return normalizePrice; });
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isCoinPresent", function() { return isCoinPresent; });
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "normalizeText", function() { return normalizeText; });
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "normalizeError", function() { return normalizeError; });
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "normalizeNotificationMessage", function() { return normalizeNotificationMessage; });
  const API_RECALL_TIMER = 60000;
  function normalizePrice(value, precision = 0) {
    let toReturn = value;
  
    if (!value) {
      return null;
    }
  
    const min = 0;
    const max = 99999999;
  
    if (typeof toReturn === 'string') {
      toReturn = toReturn.replace(/[^0-9.]+/g, '');
      toReturn = parseFloat(toReturn);
    }
  
    if (toReturn < min) {
      toReturn = min;
    }
  
    if (toReturn > max) {
      toReturn = max;
    }
  
    const formatted = toReturn.toFixed(precision).replace(/./g, (c, i, a) => i && c !== '.' && (a.length - i) % 3 === 0 ? `,${c}` : c);
    return formatted;
  }
  function isCoinPresent(coin, data) {
    return data.find(element => element.slug === coin.slug);
  }
  function normalizeText(value) {
    if (!value) {
      return null;
    }
  
    return value;
  }
  function normalizeError(error) {
    let normalizedError = error;
    normalizedError = error.replace(/_/g, ' ');
    return normalizedError.toLowerCase();
  }
  function normalizeNotificationMessage(latestQuotes) {
    const notificationStatus = latestQuotes.map(coin => {
      return `${coin.name} is currently at ${coin.price}.`;
    });
    return notificationStatus.join('\n');
  }
  
  /***/ })
  
  })
  //# sourceMappingURL=background.6b9352533a812e16966e.hot-update.js.map