var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

// src/plus/salesSdk/utils/resolveIsMultiDayProduct.ts
var resolveIsMultiDayProduct_exports = {};
__export(resolveIsMultiDayProduct_exports, {
  resolveIsMultiDayProduct: () => resolveIsMultiDayProduct
});
module.exports = __toCommonJS(resolveIsMultiDayProduct_exports);
var import_utils = require("../../../components/booking/info2/service/addService/utils");
function isMultiDayLike(candidate) {
  var _a, _b, _c;
  if (!candidate || typeof candidate !== "object") return false;
  if ((0, import_utils.isMultiDayProduct)(candidate)) return true;
  if (candidate.duration_type === "days") return true;
  if (((_b = (_a = candidate == null ? void 0 : candidate.flexible) == null ? void 0 : _a.duration) == null ? void 0 : _b.type) === "days") return true;
  if (((_c = candidate == null ? void 0 : candidate._extend) == null ? void 0 : _c.sub_type) === "days") return true;
  return false;
}
function resolveIsMultiDayProduct(...candidates) {
  return candidates.some((item) => isMultiDayLike(item));
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  resolveIsMultiDayProduct
});
