var/cache/dev/twig/cb/cb6f036cd3e492649b09b1150d3c8f94f8677fa4b7ddbbcd49559cc4cf58a6d6.php line 34

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. /* @HoneybeeWeb/pages/views/verify_otp_honeybee.html.twig */
  15. class __TwigTemplate_383f7475fd96007d22794646385264b8216861de6a9619b406f19218aa93ee94 extends Template
  16. {
  17.     private $source;
  18.     private $macros = [];
  19.     public function __construct(Environment $env)
  20.     {
  21.         parent::__construct($env);
  22.         $this->source $this->getSourceContext();
  23.         $this->parent false;
  24.         $this->blocks = [
  25.         ];
  26.     }
  27.     protected function doDisplay(array $context, array $blocks = [])
  28.     {
  29.         $macros $this->macros;
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  31.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@HoneybeeWeb/pages/views/verify_otp_honeybee.html.twig"));
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  33.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@HoneybeeWeb/pages/views/verify_otp_honeybee.html.twig"));
  34.         // line 2
  35.         yield from         $this->loadTemplate("@Application/inc/central_header.html.twig""@HoneybeeWeb/pages/views/verify_otp_honeybee.html.twig"2)->unwrap()->yield($context);
  36.         // line 3
  37.         yield "
  38. <style>
  39.     .email-input{
  40.         position: relative;
  41.     }
  42.     .otp_in{  }
  43.     /* Chrome, Safari, Edge, Opera */
  44.     input::-webkit-outer-spin-button,
  45.     input::-webkit-inner-spin-button {
  46.         -webkit-appearance: none;
  47.         margin: 0;
  48.     }
  49.     /* Firefox */
  50.     input[type=number] {
  51.         -moz-appearance: textfield;
  52.     }
  53. </style>
  54. ";
  55.         // line 25
  56.         yield "<section class=\"verification-code-page section\"> 
  57.     <div class=\"container d-flex justify-content-center align-items-center\">
  58.         <div class=\"card text-center login-inputs\">
  59.             <h2 class=\"section-title\">We've sent you a code to your email address </h2>
  60.             <p style=\"margin: 0; text-align: center; color: #eb9f9f;\">";
  61.         // line 29
  62.         (((=== CoreExtension::compare((isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'29$this->source); })()), ""))) ? (yield "") : (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'29$this->source); })()), "html"nulltrue)));
  63.         yield "</p>
  64.             <p>Please check your email and enter the code from there.</p>
  65.             ";
  66.         // line 32
  67.         yield "            <form action=\"\" id=\"relevantForm\" method=\"post\"> 
  68.                 <div class=\"email-input d-flex justify-content-center \" id=\"code-input\">
  69.                     ";
  70.         // line 35
  71.         yield "                    <input type=\"number\" id=\"otp_in_1\" name=\"otp_in_1\" placeholder=\"\" maxlength=\"1\" data-prev-id=\"_NONE_\" data-next-id=\"2\"  class=\"code-box mx-1 otp_in otp_in_1\" required>
  72.                     ";
  73.         // line 37
  74.         yield "                    <input type=\"number\" id=\"otp_in_2\" name=\"otp_in_2\" placeholder=\"\" maxlength=\"1\" data-prev-id=\"1\"      data-next-id=\"3\"  class=\"code-box mx-1 otp_in otp_in_2\" required>
  75.                     ";
  76.         // line 39
  77.         yield "                    <input type=\"number\" id=\"otp_in_3\" name=\"otp_in_3\" placeholder=\"\" maxlength=\"1\" data-prev-id=\"2\"      data-next-id=\"4\"  class=\"code-box mx-1 otp_in otp_in_3\" required>
  78.                     ";
  79.         // line 41
  80.         yield "                    <input type=\"number\" id=\"otp_in_4\" name=\"otp_in_4\" placeholder=\"\" maxlength=\"1\" data-prev-id=\"3\"      data-next-id=\"_NONE_\"  class=\"code-box mx-1 otp_in otp_in_4\" required>
  81.                     <input type=\"hidden\" id=\"otp\" name=\"otp\" placeholder=\"otp\" maxlength=\"4\" class=\"input_field\" required>
  82.                     <div class=\"eye-onoff d-none\">
  83.                         <i class=\"fas fa-times small_error_icon email\"></i>
  84.                     </div>
  85.                     ";
  86.         // line 48
  87.         yield "                    <p class=\"small_error_text email\"></p>
  88.                 </div>
  89.                 
  90.                 
  91.                 <h6 class='mt-5' style=\"margin: 10px 0 10px;color: #615A5A;font-size:12px;text-align: center;\"><span id=\"otpExpireTextPrefix\">The OTP will expire</span> <span style=\"\" id=\"otpExpireText\" 
  92.                         class=\"time convert_to_moment_time\" data-moment-ts-format=\"_today_or_date_\"
  93.                         data-moment-ts=\"";
  94.         // line 55
  95.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["otpExpireTs"]) || array_key_exists("otpExpireTs"$context) ? $context["otpExpireTs"] : (function () { throw new RuntimeError('Variable "otpExpireTs" does not exist.'55$this->source); })()), "html"nulltrue);
  96.         yield "\"></span> <a class=\"resend_otp_button\" style=\"display: inline-block;\" href=\"#\"> Resend OTP</a>
  97.                 </h6>
  98.                 <button type=\"submit\" class=\"honeybtn rel_form_submit mt-4\">Confirm</button>
  99.             </form>
  100.             
  101.             <p class=\"mt-3\"><small>Not you? </small><a href=\"";
  102.         // line 61
  103.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("central_landing");
  104.         yield "\" >Login with another account?</a></p>
  105.         </div>
  106.     </div>
  107. </section>
  108. ";
  109.         // line 66
  110.         yield from         $this->loadTemplate("@HoneybeeWeb/footer/central_footer.html.twig""@HoneybeeWeb/pages/views/verify_otp_honeybee.html.twig"66)->unwrap()->yield($context);
  111.         // line 67
  112.         yield "
  113. ";
  114.         // line 69
  115.         yield "<script type=\"text/javascript\" src=\"";
  116.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dashboard")), "html"nulltrue);
  117.         yield "js/onscan.min.js\"></script>
  118. ";
  119.         // line 71
  120.         yield "
  121. <script>
  122.     var fbt='';
  123.     var cndDwnInterval='';
  124.     \$(document).ready(function () {
  125.         function ConvertToMomentTimeOtpExpire(elem) {
  126.             elem=elem||\$('#otpExpireText');
  127.             var moment_time = moment.unix(\$(elem).attr('data-moment-ts'));
  128.             //    console.log(\$(elem).attr('data-moment-ts'));
  129.             \$('#otpExpireTextPrefix').text('This OTP will Expire');
  130.             var format = \$(elem).attr('data-moment-ts-format');
  131.             var toReplaceStr = '';
  132.             if (\$(elem).attr('data-moment-ts') <= 0) {
  133.                 clearInterval(cndDwnInterval);
  134.                 toReplaceStr = ''
  135.             }
  136.             else {
  137.                 if (format == '_today_or_date_') {
  138.         //      toReplaceStr = moment_time.fromNow()
  139.                     if (moment() > moment_time) {
  140.         //      alert('here')
  141.                         \$('#otpExpireTextPrefix').text('The OTP has Expired');
  142.                         toReplaceStr = ''
  143.                         clearInterval(cndDwnInterval);
  144.                     }
  145.                     else {
  146.                         toReplaceStr = moment_time.fromNow()
  147.                     }
  148.                 }
  149.                 else {
  150.                     toReplaceStr = moment_time.format(format)
  151.                 }
  152.             }
  153.             \$(elem).text(toReplaceStr)
  154.         }
  155.         function resendOtp(options){
  156.             options=options||{
  157.                         ";
  158.         // line 112
  159.         yield "                        userId:";
  160.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env$this->source, ($context["session"] ?? null), CoreExtension::getAttribute($this->env$this->source, (isset($context["UserConstants"]) || array_key_exists("UserConstants"$context) ? $context["UserConstants"] : (function () { throw new RuntimeError('Variable "UserConstants" does not exist.'112$this->source); })()), "USER_ID", [], "any"falsefalsefalse112), [], "array"truetruefalse112)) ? (CoreExtension::getAttribute($this->env$this->source, (isset($context["session"]) || array_key_exists("session"$context) ? $context["session"] : (function () { throw new RuntimeError('Variable "session" does not exist.'112$this->source); })()), CoreExtension::getAttribute($this->env$this->source, (isset($context["UserConstants"]) || array_key_exists("UserConstants"$context) ? $context["UserConstants"] : (function () { throw new RuntimeError('Variable "UserConstants" does not exist.'112$this->source); })()), "USER_ID", [], "any"falsefalsefalse112), [], "array"falsefalsefalse112)) : (((array_key_exists("userId"$context)) ? ((isset($context["userId"]) || array_key_exists("userId"$context) ? $context["userId"] : (function () { throw new RuntimeError('Variable "userId" does not exist.'112$this->source); })())) : ("0")))), "html"nulltrue);
  161.         yield ",
  162.                         userType:";
  163.         // line 113
  164.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env$this->source, ($context["session"] ?? null), CoreExtension::getAttribute($this->env$this->source, (isset($context["UserConstants"]) || array_key_exists("UserConstants"$context) ? $context["UserConstants"] : (function () { throw new RuntimeError('Variable "UserConstants" does not exist.'113$this->source); })()), "USER_TYPE", [], "any"falsefalsefalse113), [], "array"truetruefalse113)) ? (CoreExtension::getAttribute($this->env$this->source, (isset($context["session"]) || array_key_exists("session"$context) ? $context["session"] : (function () { throw new RuntimeError('Variable "session" does not exist.'113$this->source); })()), CoreExtension::getAttribute($this->env$this->source, (isset($context["UserConstants"]) || array_key_exists("UserConstants"$context) ? $context["UserConstants"] : (function () { throw new RuntimeError('Variable "UserConstants" does not exist.'113$this->source); })()), "USER_TYPE", [], "any"falsefalsefalse113), [], "array"falsefalsefalse113)) : (((array_key_exists("userType"$context)) ? ((isset($context["userType"]) || array_key_exists("userType"$context) ? $context["userType"] : (function () { throw new RuntimeError('Variable "userType" does not exist.'113$this->source); })())) : ("0")))), "html"nulltrue);
  165.         yield ",
  166.                         userCategory:'";
  167.         // line 114
  168.         ((array_key_exists("userCategory"$context)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["userCategory"]) || array_key_exists("userCategory"$context) ? $context["userCategory"] : (function () { throw new RuntimeError('Variable "userCategory" does not exist.'114$this->source); })()), "html"nulltrue)) : (yield "_BUDDYBEE_USER_"));
  169.         yield "',
  170.                         otpActionId:'";
  171.         // line 115
  172.         ((array_key_exists("otpActionId"$context)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["otpActionId"]) || array_key_exists("otpActionId"$context) ? $context["otpActionId"] : (function () { throw new RuntimeError('Variable "otpActionId" does not exist.'115$this->source); })()), "html"nulltrue)) : (yield 1));
  173.         yield "',
  174.                         otpExpireSecond:180,
  175.                         email:'";
  176.         // line 117
  177.         ((array_key_exists("email"$context)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["email"]) || array_key_exists("email"$context) ? $context["email"] : (function () { throw new RuntimeError('Variable "email" does not exist.'117$this->source); })()), "html"nulltrue)) : (yield "_NONE_"));
  178.         yield "',
  179.                     }
  180.             \$.post('";
  181.         // line 121
  182.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("send_otp_ajax");
  183.         yield "', options)
  184.                     .done(function (data) {
  185.             //                        //    console.log(data);
  186.                         if (data.success == true) {
  187.                             \$('#otpExpireText').attr('data-moment-ts',data.otpExpireTs);
  188.                             reset_otp()
  189.                             clearInterval(cndDwnInterval);
  190.                             cndDwnInterval = setInterval(ConvertToMomentTimeOtpExpire, 1000);
  191.                         } else {
  192.             //                            \$('#barcode_selector_cont').waitMe('hide');
  193.                         }
  194.                     })
  195.                     .fail(function () {
  196.             //                        \$('#barcode_selector_cont').waitMe('hide');
  197.                     });
  198.         }
  199.             //        cndDwnInterval = setInterval(ConvertToMomentTimeOtpExpire(\$('#otpExpireText')), 1000);
  200.         function paste_otp(curr_number){
  201.             \$('.otp_in_1').val(Math.floor(curr_number/1000));curr_number=curr_number%1000;
  202.             \$('.otp_in_2').val(Math.floor(curr_number/100));curr_number=curr_number%100;
  203.             \$('.otp_in_3').val(Math.floor(curr_number/10));curr_number=curr_number%10;
  204.             \$('.otp_in_4').val(Math.floor(curr_number/1));curr_number=curr_number%1;
  205.             update_otp_field()
  206.         }
  207.         function reset_otp(){
  208.             \$('.otp_in_1').val('').focus();
  209.             \$('.otp_in_2').val('');
  210.             \$('.otp_in_3').val('');
  211.             \$('.otp_in_4').val('');
  212.         }
  213.         function update_otp_field(){
  214.             \$('#otp').val(
  215.                     1000*(\$('.otp_in_1').val())+
  216.                     100*(\$('.otp_in_2').val())+
  217.                     10*(\$('.otp_in_3').val())+
  218.                     1*(\$('.otp_in_4').val())
  219.             )
  220.             check_doc_and_submit(0); //check only not submit
  221.         }
  222. //        \$('.otp_in').keydown(function(event){
  223. ////            alert('keydown')
  224. //            alert(\$(this).val())
  225. //SS
  226. //
  227. //
  228. //
  229. //        })
  230. //        \$('.otp_in').keydown(function(event){
  231. ////            alert('blur')
  232. ////            alert(\$(this).val())
  233. //            if(1*\$(this).val()>=1000) {
  234. //                alert(\$(this).val())
  235. //                paste_otp(1 * \$(this).val())
  236. //
  237. //            }
  238. //
  239. //
  240. //
  241. //
  242. //        })
  243.         \$('.otp_in_1').keydown(function(event){
  244. //            \$('#enter_otp_title').text(
  245. //                    '_'+\$(this).val()+'_'
  246. //            )
  247.             if(\$(this).val().length>=4)
  248.             paste_otp(\$(this).val())
  249.         })
  250. //        document.addEventListener('onautocomplete', function(e) {
  251. //            e.target.hasAttribute('autocompleted'); // true or false
  252. ////            alert(event.target.value)
  253. //            paste_otp(event.target.value)
  254. ////            e.preventDefault(); // prevent autocomplete
  255. //            // do you stuff...
  256. //        })
  257.         \$('.otp_in').keyup(function(event){
  258.             var prev_data_id=\$(this).data('prevId')
  259.             var next_data_id=\$(this).data('nextId')
  260.            // alert(event.keyCode)
  261.             if ( event.which == 13 ) {
  262.                 event.preventDefault();
  263.             }
  264.             else if ( event.which == 8 ) {
  265.                 event.preventDefault();
  266.                 \$(this).val('');
  267.                 if(prev_data_id!='_NONE_')
  268.                     \$('.otp_in_'+prev_data_id).focus();
  269. //                \$('.otp_in_'+prev_data_id).val('').focus();
  270.             }
  271.             else if ( event.which == 39 ) {
  272.                 event.preventDefault();
  273.                 if (next_data_id != '_NONE_') {
  274.                     \$('.otp_in_' + next_data_id).focus();
  275.                 }
  276.             }
  277.             else if ( event.which == 37 ) {
  278.                 event.preventDefault();
  279.                 if(prev_data_id!='_NONE_')
  280.                     \$('.otp_in_'+prev_data_id).focus();
  281.             }
  282.             else
  283.             {
  284.                 if(event.key >=0 && event.key<=9 ) {
  285. //                    alert(event.which)
  286. //                    alert(event.key)
  287. //                    alert(String.fromCharCode(event.which))
  288. //                    \$(this).val(String.fromCharCode(event.which));
  289.                     \$(this).val(event.key);
  290.                     if (next_data_id != '_NONE_') {
  291.                         \$('.otp_in_' + next_data_id).focus();
  292.                     }
  293.                 }
  294. //                alert(\$(this).val())
  295. //                alert(isNaN(\$(this).val()))
  296.              if( isNaN(\$(this).val()))
  297.                  \$(this).val('');
  298.             }
  299.             update_otp_field()
  300.         })
  301.         function attach_onscan() {
  302. //            alert('pika')
  303.             onScan.attachTo(document, {
  304.                 singleScanQty: 1,
  305.                 minLength:4,
  306.                 suffixKeyCodes: [13], // enter-key expected at the end of a scan
  307.                 reactToPaste: true, // Compatibility to built-in scanners in paste-mode (as opposed to keyboard-mode)
  308.                 onScan: function (sCode, iQty) { // Alternative to document.addEventListener('scan')
  309. //                    //    console.log('Scanned: ' + iQty + 'x ' + sCode);
  310. //
  311. //                    var foundIds = [];
  312. //
  313. ////                //    console.log('PIKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA');
  314. //                    //    console.log(sCode);
  315. //                    lastScanCrossMatched = 1;
  316.                     if (!isNaN(sCode)) {
  317.                         paste_otp(sCode)
  318.                     }
  319. ////                dynamic_product_selector.focus();
  320. //                //    console.log(dynamic_product_selector.currentResults.items);
  321. ////                dynamic_product_selector.setValue(dynamic_product_selector.currentResults.items[0].id);
  322. //                if(dynamic_product_selector.currentResults.items.length>=1) {
  323. ////                    alert(dynamic_product_selector.currentResults.items.length+','+dynamic_product_selector.currentResults.items[0].id)
  324. //                    dynamic_product_selector.setValue(dynamic_product_selector.currentResults.items[0].id);
  325. //                    ////    console.log(this.currentResults.items.length);
  326. //
  327. //                    dynamic_product_selector.focus();
  328. //                }
  329.                 },
  330. //            onKeyDetect: function(iKeyCode){ // output all potentially relevant key events - great for debugging!
  331. //                //    console.log('Pressed: ' + iKeyCode);
  332. //            }
  333.             });
  334.         }
  335.         function detach_onscan() {
  336.             onScan.detachFrom(document);
  337.         }
  338. //        \$('#deliveryInfoModal').on('hidden.bs.modal', function (e) {
  339. //            attach_onscan();
  340. //        })
  341. //        \$('#deliveryInfoModal').on('shown.bs.modal', function (e) {
  342. //            detach_onscan();
  343. //        })
  344.         attach_onscan();
  345.         \$('.otp_in_'+1).focus();
  346.         \$('.resend_otp_button').click(function(e){
  347.             e.preventDefault();
  348.            ";
  349.         // line 324
  350.         yield "            resendOtp();
  351.         })
  352.         \$('.login-inputs input').focus(function () {
  353. //            if()
  354. //            \$('.login-inputs input').removeClass('error_class');
  355.             \$(this).removeClass('error_class');
  356.         })
  357.         \$('.login-inputs input').change(function () {
  358. //            if()
  359. //            \$('.login-inputs input').removeClass('error_class');
  360.             if(\$(this).hasClass('checkIfExists'))
  361.             {
  362.                 check_field_validity(\$(this).attr('data-field-type'))
  363.             }
  364.             check_doc_and_submit(0); //check only not submit
  365.         })
  366.         function  check_field_validity(fieldType)
  367.         {
  368.             fieldType = fieldType || 'email';
  369.             \$('.small_error_text.' + fieldType).text('')
  370.             \$('.small_error_text.' + fieldType).hide()
  371.             \$('.small_error_icon.' + fieldType).removeClass('success').removeClass('error');
  372.             \$('.small_error_icon.' + fieldType).removeClass('fa-check').removeClass('fa-times');
  373.             \$('.small_error_icon.' + fieldType).addClass('fa-spinner');
  374.             \$('.small_error_icon.' + fieldType).show()
  375. //            \$.post( \"example.php\", function() {
  376. //                        alert( \"success\" );
  377. //                    })
  378. //                    .done(function() {
  379. //                        alert( \"second success\" );
  380. //                    })
  381. //                    .fail(function() {
  382. //                        alert( \"error\" );
  383. //                    })
  384. //                    .always(function() {
  385. //                        alert( \"finished\" );
  386. //                    });
  387.             //";
  388.         // line 369
  389.         yield "            //";
  390.         // line 370
  391.         yield "            //";
  392.         // line 371
  393.         yield "            //";
  394.         // line 372
  395.         yield "
  396.             //";
  397.         // line 375
  398.         yield "
  399.             if(fieldType=='password')
  400.             {
  401. //                if(\$('#password2').val()=='')
  402. //                        return;
  403.                 if(\$('#password').val()!==\$('#password2').val())
  404.                     //                if(0)
  405.                 {
  406.                     \$('.small_error_text.' + fieldType).text('Passwords do not Match')
  407.                     \$('.small_error_text.' + fieldType).show()
  408.                     \$('.small_error_icon.' + fieldType).removeClass('fa-spinner').removeClass('success');
  409.                     \$('.small_error_icon.' + fieldType).addClass('fa-times').addClass('error');
  410.                     \$('.small_error_icon.' + fieldType).show()
  411.                 }
  412.                 else {
  413.                     \$('.small_error_text.' + fieldType).text('')
  414.                     \$('.small_error_text.' + fieldType).hide()
  415.                     \$('.small_error_icon.' + fieldType).removeClass('fa-spinner').removeClass('error');
  416.                     \$('.small_error_icon.' + fieldType).addClass('fa-check').addClass('success');
  417.                     \$('.small_error_icon.' + fieldType).show()
  418.                 }
  419.                 return;
  420.             }
  421.             \$.post('";
  422.         // line 411
  423.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("check_if_email_exists_already");
  424.         yield "', {
  425.                         fieldType: fieldType,
  426.                         fieldValue: \$('.input_field.' + fieldType).val(),
  427.                         signUpUserType: ";
  428.         // line 414
  429.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["userType"]) || array_key_exists("userType"$context) ? $context["userType"] : (function () { throw new RuntimeError('Variable "userType" does not exist.'414$this->source); })()), "html"nulltrue);
  430.         yield ",
  431.                     })
  432.                     .done(function (data) {
  433.                                 //sales.clearItemTable()
  434.                                 fieldType=data.fieldType;
  435.                                 if (data.alreadyExists != true) {
  436.                                     \$('.small_error_text.' + fieldType).text('Couldnot find your email')
  437.                                     \$('.small_error_text.' + fieldType).show()
  438.                                     \$('.small_error_icon.' + fieldType).removeClass('fa-spinner').removeClass('success');
  439.                                     \$('.small_error_icon.' + fieldType).addClass('fa-times').addClass('error');
  440.                                     \$('.small_error_icon.' + fieldType).show()
  441.                                 }
  442.                                 else {
  443.                                     \$('.small_error_text.' + fieldType).text('')
  444.                                     \$('.small_error_text.' + fieldType).hide()
  445.                                     \$('.small_error_icon.' + fieldType).removeClass('fa-spinner').removeClass('error');
  446.                                     \$('.small_error_icon.' + fieldType).addClass('fa-check').addClass('success');
  447.                                     \$('.small_error_icon.' + fieldType).show()
  448.                                 }
  449.                             }
  450.                     );
  451.         }
  452.         function check_doc_and_submit(submitFlag) {
  453.             var checkFailed = 0;
  454.             submitFlag=submitFlag||0
  455.             ///check if any checking needed here
  456.             \$('.login-inputs input').each(function(ind,elem){
  457.                 if(\$(this).prop('required')){
  458.                     if(\$(this).val()=='' )
  459.                         checkFailed=1;
  460.                     //    console.log(\"REQ\");
  461.                 } else {
  462.                    //    console.log(\"NREQ\");
  463.                 }
  464.             });
  465.             \$('.small_error_text').each(function(ind,elem)
  466.             {
  467.                 if(\$(elem).text()!='')
  468.                     checkFailed=1;
  469.             })
  470.             \$('.small_error_text').each(function(ind,elem)
  471.             {
  472.                 if(\$(elem).text()!='')
  473.                     checkFailed=1;
  474.             })
  475.             if(checkFailed==0)
  476.                 \$('.rel_form_submit').addClass('ready');
  477.             else
  478.             {
  479.                 \$('.rel_form_submit').removeClass('ready');
  480.             }
  481.             if (checkFailed == 0 && submitFlag==1) {
  482.                 \$('.rel_form_submit').removeClass('ready');
  483.                 \$('.rel_form_submit').hide();
  484.                 \$('#relevantForm').submit();
  485.             }
  486.         }
  487.         //For save action
  488.         \$('input[type=\"submit\"], button[type=\"submit\"], .rel_form_submit').click(function (event) {
  489.             event.preventDefault();
  490.             check_doc_and_submit(1);
  491.         })
  492.         \$('.convert_to_moment_time').each(function (ind, elem) {
  493.             ConvertToMomentTimeOtpExpire(elem);
  494.         });
  495.         cndDwnInterval = setInterval(ConvertToMomentTimeOtpExpire, 1000);
  496.         check_doc_and_submit(0)
  497.     })
  498. </script>
  499. ";
  500.         
  501.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  502.         
  503.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  504.         return; yield '';
  505.     }
  506.     /**
  507.      * @codeCoverageIgnore
  508.      */
  509.     public function getTemplateName()
  510.     {
  511.         return "@HoneybeeWeb/pages/views/verify_otp_honeybee.html.twig";
  512.     }
  513.     /**
  514.      * @codeCoverageIgnore
  515.      */
  516.     public function isTraitable()
  517.     {
  518.         return false;
  519.     }
  520.     /**
  521.      * @codeCoverageIgnore
  522.      */
  523.     public function getDebugInfo()
  524.     {
  525.         return array (  509 => 414,  503 => 411,  465 => 375,  461 => 372,  459 => 371,  457 => 370,  455 => 369,  409 => 324,  204 => 121,  197 => 117,  192 => 115,  188 => 114,  184 => 113,  179 => 112,  137 => 71,  132 => 69,  129 => 67,  127 => 66,  119 => 61,  110 => 55,  101 => 48,  93 => 41,  90 => 39,  87 => 37,  84 => 35,  80 => 32,  75 => 29,  69 => 25,  46 => 3,  44 => 2,);
  526.     }
  527.     public function getSourceContext()
  528.     {
  529.         return new Source("{# {% include '@Application/inc/buddybee_new_header.html.twig' %} #}
  530. {% include '@Application/inc/central_header.html.twig' %}
  531. <style>
  532.     .email-input{
  533.         position: relative;
  534.     }
  535.     .otp_in{  }
  536.     /* Chrome, Safari, Edge, Opera */
  537.     input::-webkit-outer-spin-button,
  538.     input::-webkit-inner-spin-button {
  539.         -webkit-appearance: none;
  540.         margin: 0;
  541.     }
  542.     /* Firefox */
  543.     input[type=number] {
  544.         -moz-appearance: textfield;
  545.     }
  546. </style>
  547. {# honeybee otp verrify form section #}
  548. <section class=\"verification-code-page section\"> 
  549.     <div class=\"container d-flex justify-content-center align-items-center\">
  550.         <div class=\"card text-center login-inputs\">
  551.             <h2 class=\"section-title\">We've sent you a code to your email address </h2>
  552.             <p style=\"margin: 0; text-align: center; color: #eb9f9f;\">{{ message==''?'':message }}</p>
  553.             <p>Please check your email and enter the code from there.</p>
  554.             {# form #}
  555.             <form action=\"\" id=\"relevantForm\" method=\"post\"> 
  556.                 <div class=\"email-input d-flex justify-content-center \" id=\"code-input\">
  557.                     {# otp digit 1 #}
  558.                     <input type=\"number\" id=\"otp_in_1\" name=\"otp_in_1\" placeholder=\"\" maxlength=\"1\" data-prev-id=\"_NONE_\" data-next-id=\"2\"  class=\"code-box mx-1 otp_in otp_in_1\" required>
  559.                     {# otp digit 2 #}
  560.                     <input type=\"number\" id=\"otp_in_2\" name=\"otp_in_2\" placeholder=\"\" maxlength=\"1\" data-prev-id=\"1\"      data-next-id=\"3\"  class=\"code-box mx-1 otp_in otp_in_2\" required>
  561.                     {# otp digit 3 #}
  562.                     <input type=\"number\" id=\"otp_in_3\" name=\"otp_in_3\" placeholder=\"\" maxlength=\"1\" data-prev-id=\"2\"      data-next-id=\"4\"  class=\"code-box mx-1 otp_in otp_in_3\" required>
  563.                     {# otp digit 4 #}
  564.                     <input type=\"number\" id=\"otp_in_4\" name=\"otp_in_4\" placeholder=\"\" maxlength=\"1\" data-prev-id=\"3\"      data-next-id=\"_NONE_\"  class=\"code-box mx-1 otp_in otp_in_4\" required>
  565.                     <input type=\"hidden\" id=\"otp\" name=\"otp\" placeholder=\"otp\" maxlength=\"4\" class=\"input_field\" required>
  566.                     <div class=\"eye-onoff d-none\">
  567.                         <i class=\"fas fa-times small_error_icon email\"></i>
  568.                     </div>
  569.                     {# error message #}
  570.                     <p class=\"small_error_text email\"></p>
  571.                 </div>
  572.                 
  573.                 
  574.                 <h6 class='mt-5' style=\"margin: 10px 0 10px;color: #615A5A;font-size:12px;text-align: center;\"><span id=\"otpExpireTextPrefix\">The OTP will expire</span> <span style=\"\" id=\"otpExpireText\" 
  575.                         class=\"time convert_to_moment_time\" data-moment-ts-format=\"_today_or_date_\"
  576.                         data-moment-ts=\"{{ otpExpireTs }}\"></span> <a class=\"resend_otp_button\" style=\"display: inline-block;\" href=\"#\"> Resend OTP</a>
  577.                 </h6>
  578.                 <button type=\"submit\" class=\"honeybtn rel_form_submit mt-4\">Confirm</button>
  579.             </form>
  580.             
  581.             <p class=\"mt-3\"><small>Not you? </small><a href=\"{{ url('central_landing') }}\" >Login with another account?</a></p>
  582.         </div>
  583.     </div>
  584. </section>
  585. {% include '@HoneybeeWeb/footer/central_footer.html.twig' %}
  586. {# {% include '@Application/footer/buddybee_new_footer.html.twig' %} #}
  587. <script type=\"text/javascript\" src=\"{{ absolute_url(path('dashboard')) }}js/onscan.min.js\"></script>
  588. {#<script type=\"text/javascript\" src=\"{{ absolute_url(path('dashboard')) }}buddybee_assets/js/detect_autofill.js\"></script>#}
  589. <script>
  590.     var fbt='';
  591.     var cndDwnInterval='';
  592.     \$(document).ready(function () {
  593.         function ConvertToMomentTimeOtpExpire(elem) {
  594.             elem=elem||\$('#otpExpireText');
  595.             var moment_time = moment.unix(\$(elem).attr('data-moment-ts'));
  596.             //    console.log(\$(elem).attr('data-moment-ts'));
  597.             \$('#otpExpireTextPrefix').text('This OTP will Expire');
  598.             var format = \$(elem).attr('data-moment-ts-format');
  599.             var toReplaceStr = '';
  600.             if (\$(elem).attr('data-moment-ts') <= 0) {
  601.                 clearInterval(cndDwnInterval);
  602.                 toReplaceStr = ''
  603.             }
  604.             else {
  605.                 if (format == '_today_or_date_') {
  606.         //      toReplaceStr = moment_time.fromNow()
  607.                     if (moment() > moment_time) {
  608.         //      alert('here')
  609.                         \$('#otpExpireTextPrefix').text('The OTP has Expired');
  610.                         toReplaceStr = ''
  611.                         clearInterval(cndDwnInterval);
  612.                     }
  613.                     else {
  614.                         toReplaceStr = moment_time.fromNow()
  615.                     }
  616.                 }
  617.                 else {
  618.                     toReplaceStr = moment_time.format(format)
  619.                 }
  620.             }
  621.             \$(elem).text(toReplaceStr)
  622.         }
  623.         function resendOtp(options){
  624.             options=options||{
  625.                         {#userId:{{ session[UserConstants.USER_ID] is defined?session[UserConstants.USER_ID]:'0' }},#}
  626.                         userId:{{ session[UserConstants.USER_ID] is defined?session[UserConstants.USER_ID]:(userId is defined?userId:'0') }},
  627.                         userType:{{ session[UserConstants.USER_TYPE] is defined?session[UserConstants.USER_TYPE]:(userType is defined?userType:'0') }},
  628.                         userCategory:'{{ userCategory is defined?userCategory:'_BUDDYBEE_USER_' }}',
  629.                         otpActionId:'{{ otpActionId is defined?otpActionId:1 }}',
  630.                         otpExpireSecond:180,
  631.                         email:'{{ email is defined?email:'_NONE_' }}',
  632.                     }
  633.             \$.post('{{ url('send_otp_ajax') }}', options)
  634.                     .done(function (data) {
  635.             //                        //    console.log(data);
  636.                         if (data.success == true) {
  637.                             \$('#otpExpireText').attr('data-moment-ts',data.otpExpireTs);
  638.                             reset_otp()
  639.                             clearInterval(cndDwnInterval);
  640.                             cndDwnInterval = setInterval(ConvertToMomentTimeOtpExpire, 1000);
  641.                         } else {
  642.             //                            \$('#barcode_selector_cont').waitMe('hide');
  643.                         }
  644.                     })
  645.                     .fail(function () {
  646.             //                        \$('#barcode_selector_cont').waitMe('hide');
  647.                     });
  648.         }
  649.             //        cndDwnInterval = setInterval(ConvertToMomentTimeOtpExpire(\$('#otpExpireText')), 1000);
  650.         function paste_otp(curr_number){
  651.             \$('.otp_in_1').val(Math.floor(curr_number/1000));curr_number=curr_number%1000;
  652.             \$('.otp_in_2').val(Math.floor(curr_number/100));curr_number=curr_number%100;
  653.             \$('.otp_in_3').val(Math.floor(curr_number/10));curr_number=curr_number%10;
  654.             \$('.otp_in_4').val(Math.floor(curr_number/1));curr_number=curr_number%1;
  655.             update_otp_field()
  656.         }
  657.         function reset_otp(){
  658.             \$('.otp_in_1').val('').focus();
  659.             \$('.otp_in_2').val('');
  660.             \$('.otp_in_3').val('');
  661.             \$('.otp_in_4').val('');
  662.         }
  663.         function update_otp_field(){
  664.             \$('#otp').val(
  665.                     1000*(\$('.otp_in_1').val())+
  666.                     100*(\$('.otp_in_2').val())+
  667.                     10*(\$('.otp_in_3').val())+
  668.                     1*(\$('.otp_in_4').val())
  669.             )
  670.             check_doc_and_submit(0); //check only not submit
  671.         }
  672. //        \$('.otp_in').keydown(function(event){
  673. ////            alert('keydown')
  674. //            alert(\$(this).val())
  675. //SS
  676. //
  677. //
  678. //
  679. //        })
  680. //        \$('.otp_in').keydown(function(event){
  681. ////            alert('blur')
  682. ////            alert(\$(this).val())
  683. //            if(1*\$(this).val()>=1000) {
  684. //                alert(\$(this).val())
  685. //                paste_otp(1 * \$(this).val())
  686. //
  687. //            }
  688. //
  689. //
  690. //
  691. //
  692. //        })
  693.         \$('.otp_in_1').keydown(function(event){
  694. //            \$('#enter_otp_title').text(
  695. //                    '_'+\$(this).val()+'_'
  696. //            )
  697.             if(\$(this).val().length>=4)
  698.             paste_otp(\$(this).val())
  699.         })
  700. //        document.addEventListener('onautocomplete', function(e) {
  701. //            e.target.hasAttribute('autocompleted'); // true or false
  702. ////            alert(event.target.value)
  703. //            paste_otp(event.target.value)
  704. ////            e.preventDefault(); // prevent autocomplete
  705. //            // do you stuff...
  706. //        })
  707.         \$('.otp_in').keyup(function(event){
  708.             var prev_data_id=\$(this).data('prevId')
  709.             var next_data_id=\$(this).data('nextId')
  710.            // alert(event.keyCode)
  711.             if ( event.which == 13 ) {
  712.                 event.preventDefault();
  713.             }
  714.             else if ( event.which == 8 ) {
  715.                 event.preventDefault();
  716.                 \$(this).val('');
  717.                 if(prev_data_id!='_NONE_')
  718.                     \$('.otp_in_'+prev_data_id).focus();
  719. //                \$('.otp_in_'+prev_data_id).val('').focus();
  720.             }
  721.             else if ( event.which == 39 ) {
  722.                 event.preventDefault();
  723.                 if (next_data_id != '_NONE_') {
  724.                     \$('.otp_in_' + next_data_id).focus();
  725.                 }
  726.             }
  727.             else if ( event.which == 37 ) {
  728.                 event.preventDefault();
  729.                 if(prev_data_id!='_NONE_')
  730.                     \$('.otp_in_'+prev_data_id).focus();
  731.             }
  732.             else
  733.             {
  734.                 if(event.key >=0 && event.key<=9 ) {
  735. //                    alert(event.which)
  736. //                    alert(event.key)
  737. //                    alert(String.fromCharCode(event.which))
  738. //                    \$(this).val(String.fromCharCode(event.which));
  739.                     \$(this).val(event.key);
  740.                     if (next_data_id != '_NONE_') {
  741.                         \$('.otp_in_' + next_data_id).focus();
  742.                     }
  743.                 }
  744. //                alert(\$(this).val())
  745. //                alert(isNaN(\$(this).val()))
  746.              if( isNaN(\$(this).val()))
  747.                  \$(this).val('');
  748.             }
  749.             update_otp_field()
  750.         })
  751.         function attach_onscan() {
  752. //            alert('pika')
  753.             onScan.attachTo(document, {
  754.                 singleScanQty: 1,
  755.                 minLength:4,
  756.                 suffixKeyCodes: [13], // enter-key expected at the end of a scan
  757.                 reactToPaste: true, // Compatibility to built-in scanners in paste-mode (as opposed to keyboard-mode)
  758.                 onScan: function (sCode, iQty) { // Alternative to document.addEventListener('scan')
  759. //                    //    console.log('Scanned: ' + iQty + 'x ' + sCode);
  760. //
  761. //                    var foundIds = [];
  762. //
  763. ////                //    console.log('PIKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA');
  764. //                    //    console.log(sCode);
  765. //                    lastScanCrossMatched = 1;
  766.                     if (!isNaN(sCode)) {
  767.                         paste_otp(sCode)
  768.                     }
  769. ////                dynamic_product_selector.focus();
  770. //                //    console.log(dynamic_product_selector.currentResults.items);
  771. ////                dynamic_product_selector.setValue(dynamic_product_selector.currentResults.items[0].id);
  772. //                if(dynamic_product_selector.currentResults.items.length>=1) {
  773. ////                    alert(dynamic_product_selector.currentResults.items.length+','+dynamic_product_selector.currentResults.items[0].id)
  774. //                    dynamic_product_selector.setValue(dynamic_product_selector.currentResults.items[0].id);
  775. //                    ////    console.log(this.currentResults.items.length);
  776. //
  777. //                    dynamic_product_selector.focus();
  778. //                }
  779.                 },
  780. //            onKeyDetect: function(iKeyCode){ // output all potentially relevant key events - great for debugging!
  781. //                //    console.log('Pressed: ' + iKeyCode);
  782. //            }
  783.             });
  784.         }
  785.         function detach_onscan() {
  786.             onScan.detachFrom(document);
  787.         }
  788. //        \$('#deliveryInfoModal').on('hidden.bs.modal', function (e) {
  789. //            attach_onscan();
  790. //        })
  791. //        \$('#deliveryInfoModal').on('shown.bs.modal', function (e) {
  792. //            detach_onscan();
  793. //        })
  794.         attach_onscan();
  795.         \$('.otp_in_'+1).focus();
  796.         \$('.resend_otp_button').click(function(e){
  797.             e.preventDefault();
  798.            {# console.log(\"resend clicked\")   #}
  799.             resendOtp();
  800.         })
  801.         \$('.login-inputs input').focus(function () {
  802. //            if()
  803. //            \$('.login-inputs input').removeClass('error_class');
  804.             \$(this).removeClass('error_class');
  805.         })
  806.         \$('.login-inputs input').change(function () {
  807. //            if()
  808. //            \$('.login-inputs input').removeClass('error_class');
  809.             if(\$(this).hasClass('checkIfExists'))
  810.             {
  811.                 check_field_validity(\$(this).attr('data-field-type'))
  812.             }
  813.             check_doc_and_submit(0); //check only not submit
  814.         })
  815.         function  check_field_validity(fieldType)
  816.         {
  817.             fieldType = fieldType || 'email';
  818.             \$('.small_error_text.' + fieldType).text('')
  819.             \$('.small_error_text.' + fieldType).hide()
  820.             \$('.small_error_icon.' + fieldType).removeClass('success').removeClass('error');
  821.             \$('.small_error_icon.' + fieldType).removeClass('fa-check').removeClass('fa-times');
  822.             \$('.small_error_icon.' + fieldType).addClass('fa-spinner');
  823.             \$('.small_error_icon.' + fieldType).show()
  824. //            \$.post( \"example.php\", function() {
  825. //                        alert( \"success\" );
  826. //                    })
  827. //                    .done(function() {
  828. //                        alert( \"second success\" );
  829. //                    })
  830. //                    .fail(function() {
  831. //                        alert( \"error\" );
  832. //                    })
  833. //                    .always(function() {
  834. //                        alert( \"finished\" );
  835. //                    });
  836.             //{#//    console.log({#}
  837.             //{# fieldType: fieldType,#}
  838.             //{#fieldValue: \$('.input_field.' + fieldType).val(),#}
  839.             //{#signUpUserType: {{ signUpUserType }},#}
  840.             //{#}) #}
  841.             if(fieldType=='password')
  842.             {
  843. //                if(\$('#password2').val()=='')
  844. //                        return;
  845.                 if(\$('#password').val()!==\$('#password2').val())
  846.                     //                if(0)
  847.                 {
  848.                     \$('.small_error_text.' + fieldType).text('Passwords do not Match')
  849.                     \$('.small_error_text.' + fieldType).show()
  850.                     \$('.small_error_icon.' + fieldType).removeClass('fa-spinner').removeClass('success');
  851.                     \$('.small_error_icon.' + fieldType).addClass('fa-times').addClass('error');
  852.                     \$('.small_error_icon.' + fieldType).show()
  853.                 }
  854.                 else {
  855.                     \$('.small_error_text.' + fieldType).text('')
  856.                     \$('.small_error_text.' + fieldType).hide()
  857.                     \$('.small_error_icon.' + fieldType).removeClass('fa-spinner').removeClass('error');
  858.                     \$('.small_error_icon.' + fieldType).addClass('fa-check').addClass('success');
  859.                     \$('.small_error_icon.' + fieldType).show()
  860.                 }
  861.                 return;
  862.             }
  863.             \$.post('{{ url('check_if_email_exists_already') }}', {
  864.                         fieldType: fieldType,
  865.                         fieldValue: \$('.input_field.' + fieldType).val(),
  866.                         signUpUserType: {{ userType }},
  867.                     })
  868.                     .done(function (data) {
  869.                                 //sales.clearItemTable()
  870.                                 fieldType=data.fieldType;
  871.                                 if (data.alreadyExists != true) {
  872.                                     \$('.small_error_text.' + fieldType).text('Couldnot find your email')
  873.                                     \$('.small_error_text.' + fieldType).show()
  874.                                     \$('.small_error_icon.' + fieldType).removeClass('fa-spinner').removeClass('success');
  875.                                     \$('.small_error_icon.' + fieldType).addClass('fa-times').addClass('error');
  876.                                     \$('.small_error_icon.' + fieldType).show()
  877.                                 }
  878.                                 else {
  879.                                     \$('.small_error_text.' + fieldType).text('')
  880.                                     \$('.small_error_text.' + fieldType).hide()
  881.                                     \$('.small_error_icon.' + fieldType).removeClass('fa-spinner').removeClass('error');
  882.                                     \$('.small_error_icon.' + fieldType).addClass('fa-check').addClass('success');
  883.                                     \$('.small_error_icon.' + fieldType).show()
  884.                                 }
  885.                             }
  886.                     );
  887.         }
  888.         function check_doc_and_submit(submitFlag) {
  889.             var checkFailed = 0;
  890.             submitFlag=submitFlag||0
  891.             ///check if any checking needed here
  892.             \$('.login-inputs input').each(function(ind,elem){
  893.                 if(\$(this).prop('required')){
  894.                     if(\$(this).val()=='' )
  895.                         checkFailed=1;
  896.                     //    console.log(\"REQ\");
  897.                 } else {
  898.                    //    console.log(\"NREQ\");
  899.                 }
  900.             });
  901.             \$('.small_error_text').each(function(ind,elem)
  902.             {
  903.                 if(\$(elem).text()!='')
  904.                     checkFailed=1;
  905.             })
  906.             \$('.small_error_text').each(function(ind,elem)
  907.             {
  908.                 if(\$(elem).text()!='')
  909.                     checkFailed=1;
  910.             })
  911.             if(checkFailed==0)
  912.                 \$('.rel_form_submit').addClass('ready');
  913.             else
  914.             {
  915.                 \$('.rel_form_submit').removeClass('ready');
  916.             }
  917.             if (checkFailed == 0 && submitFlag==1) {
  918.                 \$('.rel_form_submit').removeClass('ready');
  919.                 \$('.rel_form_submit').hide();
  920.                 \$('#relevantForm').submit();
  921.             }
  922.         }
  923.         //For save action
  924.         \$('input[type=\"submit\"], button[type=\"submit\"], .rel_form_submit').click(function (event) {
  925.             event.preventDefault();
  926.             check_doc_and_submit(1);
  927.         })
  928.         \$('.convert_to_moment_time').each(function (ind, elem) {
  929.             ConvertToMomentTimeOtpExpire(elem);
  930.         });
  931.         cndDwnInterval = setInterval(ConvertToMomentTimeOtpExpire, 1000);
  932.         check_doc_and_submit(0)
  933.     })
  934. </script>
  935. ""@HoneybeeWeb/pages/views/verify_otp_honeybee.html.twig""/home/u405565514/domains/ourhoneybee.eu/public_html/honeybee_main/src/ApplicationBundle/Modules/HoneybeeWeb/Resources/views/pages/views/verify_otp_honeybee.html.twig");
  936.     }
  937. }