function applyMapping(mapping, attrValue, data) {
  var path = _utils_index_js__WEBPACK_IMPORTED_MODULE_3__.entity.getComponentPropertyPath(mapping);
  if (path.constructor === Array) {
    data[path[0]] = data[path[0]] || {};
    data[path[0]][path[1]] = attrValue.trim();
  } else {
    data[path] = attrValue.trim();
  }
}
Sets the relevant property based on the mapping property path.

@param {string} mapping - The mapped property path.
@param {string} attrValue - The (raw) attribute value.
@param {object} data - The data object to apply the mapping to.