<commit_before><?php
/**
 * Checkout.com
 * Authorized and regulated as an electronic money institution
 * by the UK Financial Conduct Authority (FCA) under number 900816.
 *
 * PHP version 7
 *
 * @category  Magento2
 * @package   Checkout.com
 * @author    Platforms Development Team <<EMAIL>>
 * @copyright 2010-present Checkout.com
 * @license   https://opensource.org/licenses/mit-license.html MIT License
 * @link      https://docs.checkout.com/
 */
?>

<div data-role="collapsible" id="<?= $block->escapeHtmlAttr($block->getData('apm_id'))?>" class="cko-apm <?= $block->escapeHtmlAttr($block->getData('apm_id'))?>">
    <div data-role="trigger">
        <span class="bg-<?= $block->escapeHtmlAttr($block->getData('apm_id'))?> bg-apm"></span>
        <span><?= $block->escapeHtml($block->getData('title'))?></span>
    </div>
</div>
<div data-role="content" class="apm-content <?= $block->escapeHtmlAttr($block->getData('apm_id'))?>">
    <form id="cko-apm-form-<?= $block->escapeHtmlAttr($block->getData('apm_id'))?>">
        <input type="hidden" name="source" value="<?= $block->escapeHtmlAttr($block->getData('apm_id'))?>" required>
        <input type="hidden" name="task" value="mandate">
        <div class="input-group">
            <label class="icon" for="bic">
            <span class="ckojs ckojs-card"></label>
            <input type="text" id="bic" name="bic" placeholder="<?= $block->escapeHtmlAttr(__('BIC')); ?>" class="input-control">
        </div>
        <div class="input-group">
            <label class="icon" for="account_iban">
            <span class="ckojs ckojs-card"></label>
            <input type="text" id="account_iban" name="account_iban" placeholder="<?= $block->escapeHtmlAttr(__('Account IBAN')); ?>" class="input-control" required>
        </div>
        <br>
        <p align="center">
            <button type="button"><?= $block->escapeHtml(__('Continue')) ?></button>
        </p>
    </form>

    <script type="text/javascript">
        require(['jquery', 'CheckoutCom_Magento2/js/view/payment/utilities', 'Magento_Checkout/js/model/full-screen-loader', 'domReady!'], function ($, Utilities, FullScreenLoader) {

            const METHOD_ID = 'checkoutcom_apm';

            // Prepare the form id
            var sepaForm = $('#' + 'cko-apm-form-<?= $block->escapeHtml($block->getData('apm_id')) ?>');

            // Form click event
            sepaForm.find('button').on('click touch', function() {

                if(sepaForm.valid()) {<commit_msg>CHECMAG2003-98: Remove BIC call from template, not used anymore<commit_after><?php
/**
 * Checkout.com
 * Authorized and regulated as an electronic money institution
 * by the UK Financial Conduct Authority (FCA) under number 900816.
 *
 * PHP version 7
 *
 * @category  Magento2
 * @package   Checkout.com
 * @author    Platforms Development Team <<EMAIL>>
 * @copyright 2010-present Checkout.com
 * @license   https://opensource.org/licenses/mit-license.html MIT License
 * @link      https://docs.checkout.com/
 */
?>

<div data-role="collapsible" id="<?= $block->escapeHtmlAttr($block->getData('apm_id'))?>" class="cko-apm <?= $block->escapeHtmlAttr($block->getData('apm_id'))?>">
    <div data-role="trigger">
        <span class="bg-<?= $block->escapeHtmlAttr($block->getData('apm_id'))?> bg-apm"></span>
        <span><?= $block->escapeHtml($block->getData('title'))?></span>
    </div>
</div>
<div data-role="content" class="apm-content <?= $block->escapeHtmlAttr($block->getData('apm_id'))?>">
    <form id="cko-apm-form-<?= $block->escapeHtmlAttr($block->getData('apm_id'))?>">
        <input type="hidden" name="source" value="<?= $block->escapeHtmlAttr($block->getData('apm_id'))?>" required>
        <input type="hidden" name="task" value="mandate">

        <div class="input-group">
            <label class="icon" for="account_iban">
                <span class="ckojs ckojs-card"></span>
            </label>
            <input type="text" id="account_iban" name="account_iban" placeholder="<?= $block->escapeHtmlAttr(__('Account IBAN')); ?>" class="input-control" required>
        </div>
        <br>
        <p align="center">
            <button type="button"><?= $block->escapeHtml(__('Continue')) ?></button>
        </p>
    </form>

    <script type="text/javascript">
        require(['jquery', 'CheckoutCom_Magento2/js/view/payment/utilities', 'Magento_Checkout/js/model/full-screen-loader', 'domReady!'], function ($, Utilities, FullScreenLoader) {

            const METHOD_ID = 'checkoutcom_apm';

            // Prepare the form id
            var sepaForm = $('#' + 'cko-apm-form-<?= $block->escapeHtml($block->getData('apm_id')) ?>');

            // Form click event
            sepaForm.find('button').on('click touch', function() {

                if(sepaForm.valid()) {
{'fraction_non_alphanumeric': 0.19758986079368376, 'fraction_numerical': 0.0066486598794930395, 'mean_word_length': 3.432780847145488, 'pattern_counts': {'":': 0, '<': 87, '<?xml version=': 0, '>': 124, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4221492', 'n_tokens_mistral': 1540, 'n_tokens_neox': 1517, 'n_words': 281}