<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */

/**
 * @deprecated
 * @var $block \Magento\Backend\Block\Page\System\Config\Robots\Reset
 * @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer
 */

/** @var \Magento\Framework\Json\Helper\Data $jsonHelper */
$jsonHelper = $block->getData('jsonHelper');
?>
<?php
$robotsDefault = /* @noEscape */ $jsonHelper->jsonEncode($block->getRobotsDefaultCustomInstructions());
$scriptString = <<<script
    require([
        'jquery'
    ], function ($) {
        window.resetRobotsToDefault = function(){
            $('#design_search_engine_robots_custom_instructions').val({$robotsDefault});
        }
    });
script;
?>
<?= /* @noEscape */ $secureRenderer->renderTag('script', [], $scriptString, false) ?>

<?= $block->getButtonHtml() ?>
