<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">jQuery(function($){
	// Fix quantity input styling after load more on quick view
	$('body').on('click','.jupiterx-product-has-quick-view',function () {
		setTimeout( addInputAndEvents );

		function addInputAndEvents() {
			// Add quantity input
			id = $('.featherlight-content .jupiterx-product-quick-view-modal').attr('id');

			if ( $('.featherlight-content #' + id + ' .custom-qty-input').length == 0 ) {
				$('.featherlight-content #' + id + ' .input-text.qty').hide();
				$('.featherlight-content #' + id + ' .input-text.qty').after('&lt;div class=\"input-group input-text qty text custom-qty-input \"&gt;&lt;div class=\"input-group-prepend\"&gt;&lt;button style=\"min-width: 0; box-shadow: none;\" class=\"btn btn-decrement btn-sm btn-outline-secondary\" type=\"button\" tabindex=\"-1\"&gt;&lt;strong&gt;-&lt;/strong&gt;&lt;/button&gt;&lt;/div&gt;&lt;input type=\"text\" value="" style=\"text-align: center\" class=\"form-control input-text qty text\" placeholder=\"\" tabindex=\"-1\"&gt;&lt;div class=\"input-group-append\"&gt;&lt;button style=\"min-width: 0; box-shadow: none;\" class=\"btn btn-increment btn-sm btn-outline-secondary\" type=\"button\" tabindex=\"-1\"&gt;&lt;strong&gt;+&lt;/strong&gt;&lt;/button&gt;&lt;/div&gt;&lt;/div&gt;');
				$('.featherlight-content #' + id + ' .custom-qty-input .input-text.qty').val( $('.featherlight-content #' + id +' .input-text.qty').val() ) ;
			}

			// Change quantity value on input change
			$('.featherlight-content .jupiterx-product-quick-view-modal').on('keyup paste change', '.custom-qty-input .qty', function() {
				$('.featherlight-content #' + id + ' .input-text.qty').val( $( this ).val() );
			});

			// Increment quantity
			$('.featherlight-content #' + id ).on('click', '.btn-increment', function() {
				$('.featherlight-content #' + id + ' .custom-qty-input .input-text.qty').val( function( i, oldval ) {
					return parseInt( oldval, 10) + 1;
				}).trigger('change');
			});

			// Decrement quantity
			$('.featherlight-content #' + id ).on('click', '.btn-decrement', function() {
				$('.featherlight-content #' + id + ' .custom-qty-input .input-text.qty').val( function( i, oldval ) {
					if( parseInt( oldval, 10) &gt; 1 ){
						return parseInt( oldval, 10) - 1;
					}
					else {
						return parseInt( oldval, 10);
					}
				}).trigger('change');
			});
		}
	});
});
</pre></body></html>