//#region src/pro/skuDetailModal/utils.ts
const checkSkuStockCanSell = (sku) => {
	let canSell = true;
	let hasStock = true;
	if ((sku === null || sku === void 0 ? void 0 : sku.is_track) === 1) {
		if (Number((sku === null || sku === void 0 ? void 0 : sku.stock_quantity) || 0) <= 0) {
			canSell = false;
			hasStock = false;
		}
	} else {
		canSell = true;
		hasStock = true;
	}
	return {
		canSell,
		hasStock
	};
};
//#endregion
exports.checkSkuStockCanSell = checkSkuStockCanSell;
