"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getPrinterSeriesByName = getPrinterSeriesByName;

var _constants = require("../constants");

function getPrinterSeriesByName(printerName) {
  const keys = Object.keys(_constants.PRINTER_SERIES);
  const seriesName = keys.find(series => {
    var _model$toLowerCase;

    const [,, model] = series.split('_');
    return printerName.toLowerCase().includes(model === null || model === void 0 ? void 0 : (_model$toLowerCase = model.toLowerCase) === null || _model$toLowerCase === void 0 ? void 0 : _model$toLowerCase.call(model));
  });
  return seriesName || 'EPOS2_TM_T88';
}
//# sourceMappingURL=getPrinterSeriesByName.js.map