function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
/** 从设备上传数据中读取硬件型号，缺失或非文本值时交给展示层兜底。 */
export var getDeviceHardwareModel = function getDeviceHardwareModel(record) {
  var _record$_raw;
  var hardware = record === null || record === void 0 || (_record$_raw = record._raw) === null || _record$_raw === void 0 || (_record$_raw = _record$_raw.data) === null || _record$_raw === void 0 ? void 0 : _record$_raw['hardware'];
  if (!hardware || _typeof(hardware) !== 'object') return '';
  var model = hardware === null || hardware === void 0 ? void 0 : hardware.model;
  return typeof model === 'string' || typeof model === 'number' ? String(model) : '';
};