1var Steps={is_submitted:'0',submit_scope:undefined,adapted_height:false,urlParams:{},init:function(){if(typeof Step3!="undefined"){Steps.adaptHeight();var stepinfo1_height=$('#step-1 .step-info').height();var stepinfo2_height=$('#step-2 .step-info').height();var stepinfo3_height=$('#step-3 .step-info').height();var max_height=Math.max(stepinfo1_height,stepinfo2_height,stepinfo3_height);$('.step-info').height(max_height);Step3.select('input[name="cardtype"], select[name="cardtype"]').change(function(e){if($(this).is('input')){var card_type=$('input[name="cardtype"]:checked').val();}else{var card_type=$('select[name="cardtype"] option:selected').val();} 2Step3.card_type=card_type;if(card_type!=''){if(card_type=='amex'){$('#card-scode .help').hide();$('#card-scode .help.amex').show();}else{$('#card-scode .help').show();$('#card-scode .help.amex').hide();} 3var card_length=Step3.card_length(card_type);var card_cvv_length=Step3.card_cvv_length(card_type);$('#cardnumber').attr('maxlength',card_length);$('#scode').attr('maxlength',card_cvv_length);help=$('#card-scode .help').first().html().replace(/(\d{1})/,card_cvv_length);$('#card-scode .help').first().html(help);if(card_cvv_length==0){$('#card-scode, .step-content #or, .step-content #regular').hide();}else{$('#card-scode, .step-content #or, .step-content #regular').show();}} 4if(Step3.alert_msg!=''){alert(Step3.alert_msg);}else if(Step3.modal_qualif=='1'){e.preventDefault();$.nmManual(Step3.modal_qualif_url);}});$('select[name=cardyear]').blur(function(e){if(Step3.card_hasalias(Step3.card_type)==1&&Step3.modal_save_card=='1'&&Step1.onceAmountSelected()){e.preventDefault();$.nmManual(Step3.modal_save_card_url);}});let $inputsToValidate=$(Common.getFieldsToValidateSelector("#step-3"));if(typeof Step3!="undefined"){$inputsToValidate=$inputsToValidate.add(Step3.select(Common.getFieldsToValidateSelector()));} 5Common.addValidationEventsOnFields($inputsToValidate);} 6const formValues=Common.formValues();if(document.location.hash){const hash_populate_search_params=new URLSearchParams(document.location.hash.substring(1));hash_populate_search_params.forEach((value,key)=>{if(key in formValues&&!key.startsWith('private_')){const $input=$('input[type!="checkbox"][name="'+key+'"],textarea[name="'+key+'"],select[name="'+key+'"]').first();if($input.length){$input.val(value).change();Steps.urlParams[key]=value;if($('.company-infos').find(`#${key}`).length){$('#iscompany').prop("checked",true).change();}}else{$('input[name="checkbox"][name="'+key+'"][value="'+value+'"], input[name="radio"][name="'+key+'"][value="'+value+'"]').last().prop("checked",true);}}else if(key.startsWith('reserved_')){const $node=$('<input type="hidden" name="'+key+'" />');$node.val(value);$('input[name="context_form_id"]').after($node);}});}},submit:function(){Common.select('.payment-submit input').click(function(){if($(this).hasClass('gateway')){Common.select("input[name='type']").val('gateway');} 7var scope=$(this).data('scope');$('#form-steps').data('scope',scope);$("#scope").val(scope);$('.temp_field:not([data-scope="'+scope+'"])').remove();});$('#form-steps').submit(function(){DntErrors.resetErrors();valid=true;if(typeof Step1!="undefined"){if(!Step1.check()){console.log('Step 1 checking failed');valid=false;}} 8if(typeof Step2!="undefined"){if(!Step2.check()){console.log('Step 2 checking failed');valid=false;}} 9if(typeof Step3!="undefined"){if(!Step3.check('step3')){console.log('Step 3 checking failed');valid=false;} 10if($(this).data('scope')=='card'){if(!Step3.cardCheck('card')){console.log('Card checking failed');valid=false;}}else if($(this).data('scope')=='gban'){if(!Step3.gbanCheck()){console.log('GBAN checking failed');valid=false;}} 11else if(($(this).data('scope')=='stripe')&&!window.stripe_creditcard){if(!Step3.cardCheck('stripe')){valid=false;}}else if($(this).data('scope')=='gestpay'){if(!Step3.cardCheck('gestpay')){valid=false;}}else{if(!Step3.check($(this).data('scope'))){console.log('Other checking failed');valid=false;}}} 12if(valid==false){console.log('Steps checking failed');$('.ira-processing').removeClass('ira-processing');return false;} 13if(Steps.is_submitted=='0'){if($(this).data('scope')&&!Steps.submit_scope)Steps.submit_scope=$(this).data('scope');Steps.is_submitted='1';}else if(Steps.submit_scope){console.log("Steps already submitted (with scope '"+Steps.submit_scope+"')");return false;}});},adaptHeight:function(){if(!Steps.adapted_height){$('#step-1 .step-content').children().wrapAll('<div class="height_adaptor"></div>');$('#step-2 .step-content').children().wrapAll('<div class="height_adaptor"></div>');$('#step-3 .step-content').children().wrapAll('<div class="height_adaptor"></div>');$(window).load(Steps.adaptHeight);} 14Steps.adapted_height=true;
14var step1_height=$('#step-1 .height_adaptor').height();var step2_height=$('#step-2 .height_adaptor').height();var step3_height=$('#step-3 .height_adaptor').height();var max_height=Math.max(step1_height,step2_height,step3_height);max_height+=50;$('.step-content').height(max_height);},number_format:function(number,decimals,dec_point,thousands_sep){return Common.number_format(number,decimals,dec_point,thousands_sep);}};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.