Price
  
    ${function() {
      const origin = "shop"
      const product = (origin === 'shop' ? data.product : data) || {};
      const selectedVariant = product.variants.find(v => v.available) || product.variants[0];
      return !!selectedVariant ? `
        
          
          
          
            
              
              
                -
              
            
          
        
      ` : `
        
          
          -
          
        
      `;
    }()}
  
 
                    
  
                    
  
  
    
  
  
    Product was out of stock.
  
  
    Product is unavailable.
  
 
                    
  
    ${function() {
      const MAX_INVENTORY = 999999;
      const product0 = Object.prototype.toString.call(data) == '[object Array]' ? data[0] : (data.product || data);
      const inventoryQty = product0.inventory_quantity;
      const inventoryPolicy = product0.inventory_policy;
      const inventoryTracking = product0.inventory_tracking;
      const exactInventoryStatusId = "quick-shop-exact-inventory-render";
      const lowStock = 5;
      const defaultVariant = product0 && product0.variants && product0.variants[0];
      const selectedVariant = product0.variants.find(v => v.available) || defaultVariant;
      const selectedVariantAvailableQuantity = selectedVariant && selectedVariant.available_quantity;
      let actualInventory = inventoryQty;
      if ((inventoryTracking && inventoryPolicy == 'continue') || !inventoryTracking) {
        actualInventory = MAX_INVENTORY;
      }
      return `
        Avaliability:
        Out of stock
        
          
            in stock, ready to be shipped
            Low stock
          
        
      `;
    }()}