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/components/productCard/components/Packages/utils.ts
var utils_exports = {};
__export(utils_exports, {
  _formatAmount: () => _formatAmount,
  minusSign: () => minusSign
});
module.exports = __toCommonJS(utils_exports);
var import_utils = require("@pisell/utils");
var minusSign = (item, type) => {
  if (type === "total") {
    const _price2 = (item == null ? void 0 : item.bundle_sum_price) || 0;
    const isMarkdown2 = (item == null ? void 0 : item.bundle_sum_type) === "markdown";
    return _price2 > 0 && isMarkdown2 ? "-" : "";
  }
  const _price = (item == null ? void 0 : item.price) || 0;
  const isMarkdown = (item == null ? void 0 : item.price_type) === "markdown";
  return _price > 0 && isMarkdown ? "-" : "";
};
var _formatAmount = (price = 0, amountSymbol, digit) => {
  return (0, import_utils.formatAmount)(price, digit, amountSymbol);
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  _formatAmount,
  minusSign
});
