"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getRefundableFromItems = void 0;
const getRefundableFromItems = function () {
  let items = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  return items.flatMap(function () {
    let {
      cancellations = []
    } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
    return cancellations;
  }).some(function () {
    let {
      name = ''
    } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
    return name.toLowerCase().includes('free');
  });
};
exports.getRefundableFromItems = getRefundableFromItems;
//# sourceMappingURL=getRefundableFromItems.js.map