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/isCustomCartLine.ts
var isCustomCartLine_exports = {};
__export(isCustomCartLine_exports, {
  isCustomCartLine: () => isCustomCartLine
});
module.exports = __toCommonJS(isCustomCartLine_exports);
function isCustomCartLine(orderLine, item) {
  var _a, _b, _c, _d, _e;
  if ((orderLine == null ? void 0 : orderLine.product_id) === null || (orderLine == null ? void 0 : orderLine.product_id) === void 0) {
    return true;
  }
  if (((_b = (_a = orderLine == null ? void 0 : orderLine.metadata) == null ? void 0 : _a.origin) == null ? void 0 : _b.isCustomItem) === true) {
    return true;
  }
  if (((_d = (_c = item == null ? void 0 : item.metadata) == null ? void 0 : _c.origin) == null ? void 0 : _d.isCustomItem) === true) {
    return true;
  }
  if (((_e = item == null ? void 0 : item._origin) == null ? void 0 : _e.isCustomItem) === true) {
    return true;
  }
  return false;
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  isCustomCartLine
});
