function getSplittedAttributes(extensionAttributes, typeName, attributes) {
  return Object.entries(attributes).reduce((result, [name, value]) => {
    const extensionAttribute = extensionAttributes.find((item) => {
      return item.type === typeName && item.name === name;
    });
    if (extensionAttribute && extensionAttribute.attribute.keepOnSplit) {
      result[name] = value;
    }
    return result;
  }, {});
}
export {
  getSplittedAttributes
};
//# sourceMappingURL=get-splitted-attributes.js.map
