"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 _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
      _ref$cancellations = _ref.cancellations,
      cancellations = _ref$cancellations === void 0 ? [] : _ref$cancellations;
    return cancellations;
  }).some(function () {
    let _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
      _ref2$name = _ref2.name,
      name = _ref2$name === void 0 ? '' : _ref2$name;
    return name.toLowerCase().includes('free');
  });
};
exports.getRefundableFromItems = getRefundableFromItems;
//# sourceMappingURL=getRefundableFromItems.js.map