export function getMaxStockQuantity(l,i){var t;return(null==l?void 0:l.purchase_limit)?null==l?void 0:l.purchase_limit:(i&&null!==(t=i.has_unlimited_stock)&&void 0!==t?t:null==l?void 0:l.has_unlimited_stock)?null:i?null==i?void 0:i.available_stock:null==l?void 0:l.available_stock}