<?php
/**
 * Copyright 2014 Adobe
 * All Rights Reserved.
 */

/** @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer */
?>

<?php $scriptString = <<<script
require(['jquery'], function($){
    $('[data-tab-panel=product-details]').on('stockbeforedisable', function(e) {
        if (e.productType === 'grouped') {
            e.stopPropagation();
            return false;
        }
    });
});
script;
?>
<?= /* @noEscape */ $secureRenderer->renderTag('script', [], $scriptString, false) ?>
