<commit_before><?php
use Magento\Framework\Escaper;
use Magento\LoginAsCustomerAssistance\Api\IsAssistanceEnabledInterface;
use Magento\LoginAsCustomerAssistance\ViewModel\ShoppingAssistanceViewModel;

/** @var Escaper $escaper */
/** @var ShoppingAssistanceViewModel $viewModel */
$viewModel = $block->getViewModel();
?>

<?php if ($viewModel->isLoginAsCustomerEnabled()): ?>
    <script type="text/x-magento-init">
    {
        ".form-create-account, .form-edit-account": {
            "Magento_LoginAsCustomerAssistance/js/opt-in": {
                "allowAccess": "<?= /* @noEscape */ IsAssistanceEnabledInterface::ALLOWED ?>",
                "denyAccess": "<?= /* @noEscape */ IsAssistanceEnabledInterface::DENIED ?>"
            }
        }
    }
    </script>

    <div
        class="
            field
            choice
            margin-bottom-l
        "
    >
        <div class="checkbox">
            <input
                type="checkbox"
                name="assistance_allowed"
                title="<?= $escaper->escapeHtmlAttr(__($viewModel->getAssistanceCheckboxTitle())) ?>"
                value="2"
                id="assistance_allowed"
                <?php if ($viewModel->isAssistanceAllowed()): ?>
                    checked="checked"
                <?php endif; ?>
                class="checkbox__field"
            />
            <svg
                class="
                    checkbox__icon
                    checkbox__icon--checked
                "
                role="presentation"
                focusable="false"
            >
                <use href="<?= $block->escapeUrl($block->getViewFileUrl('images/icons-sprite.svg#checked')) ?>"></use>
            </svg>
            <svg
                class="
                    checkbox__icon
                    checkbox__icon--unchecked
                "
                role="presentation"
                focusable="false"
            >
                <use href="<?= $block->escapeUrl($block->getViewFileUrl('images/icons-sprite.svg#unchecked')) ?>"></use>
            </svg>
            <label
                for="assistance_allowed_checkbox"
                class="checkbox__label"
            >
                <?= $escaper->escapeHtmlAttr(__($viewModel->getAssistanceCheckboxTitle())) ?>
            </label>
        </div>
        <span>
            <?= $escaper->escapeHtmlAttr(__($viewModel->getAssistanceCheckboxTooltip())) ?>
        </span>
    </div>
<?php endif ?><commit_msg>#83738 - Label 'for' changed<commit_after><?php
use Magento\Framework\Escaper;
use Magento\LoginAsCustomerAssistance\Api\IsAssistanceEnabledInterface;
use Magento\LoginAsCustomerAssistance\ViewModel\ShoppingAssistanceViewModel;

/** @var Escaper $escaper */
/** @var ShoppingAssistanceViewModel $viewModel */
$viewModel = $block->getViewModel();
?>

<?php if ($viewModel->isLoginAsCustomerEnabled()): ?>
    <script type="text/x-magento-init">
    {
        ".form-create-account, .form-edit-account": {
            "Magento_LoginAsCustomerAssistance/js/opt-in": {
                "allowAccess": "<?= /* @noEscape */ IsAssistanceEnabledInterface::ALLOWED ?>",
                "denyAccess": "<?= /* @noEscape */ IsAssistanceEnabledInterface::DENIED ?>"
            }
        }
    }
    </script>

    <div
        class="
            field
            choice
            margin-bottom-l
        "
    >
        <div class="checkbox">
            <input
                type="checkbox"
                name="assistance_allowed"
                title="<?= $escaper->escapeHtmlAttr(__($viewModel->getAssistanceCheckboxTitle())) ?>"
                value="2"
                id="assistance_allowed"
                <?php if ($viewModel->isAssistanceAllowed()): ?>
                    checked="checked"
                <?php endif; ?>
                class="checkbox__field"
            />
            <svg
                class="
                    checkbox__icon
                    checkbox__icon--checked
                "
                role="presentation"
                focusable="false"
            >
                <use href="<?= $block->escapeUrl($block->getViewFileUrl('images/icons-sprite.svg#checked')) ?>"></use>
            </svg>
            <svg
                class="
                    checkbox__icon
                    checkbox__icon--unchecked
                "
                role="presentation"
                focusable="false"
            >
                <use href="<?= $block->escapeUrl($block->getViewFileUrl('images/icons-sprite.svg#unchecked')) ?>"></use>
            </svg>
            <label
                for="assistance_allowed"
                class="checkbox__label"
            >
                <?= $escaper->escapeHtmlAttr(__($viewModel->getAssistanceCheckboxTitle())) ?>
            </label>
        </div>
        <span>
            <?= $escaper->escapeHtmlAttr(__($viewModel->getAssistanceCheckboxTooltip())) ?>
        </span>
    </div>
<?php endif ?>
{'fraction_non_alphanumeric': 0.13690952762209768, 'fraction_numerical': 0.0014011208967173738, 'mean_word_length': 1.618972746331237, 'pattern_counts': {'":': 8, '<': 65, '<?xml version=': 0, '>': 91, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '419087', 'n_tokens_mistral': 1358, 'n_tokens_neox': 1291, 'n_words': 173}