1( function ( $ ) 2{ 3 'use strict'; 4 5 let hasDeposit = 0; 6 7 $( document ).ready( function () 8 { 9 bookneticHooks.addAction( 'after_processing_payment', function( payment_method, process_status, data, booknetic ) 10 { 11 if( payment_method !== 'woocommerce' ) 12 return; 13 14 booknetic.loading( 1 ); 15 16 window.location.href = data[ 'url' ]; 17 }); 18 19 // old version doit ?? 20 bookneticHooks.addAction( 'loaded_step_confirm_details', function ( booknetic ) 21 { 22 /**/ 23 if (!isWoocommerceEnabled || isLocalPaymentEnabled) { 24 return; 25 } 26 27 if (!skipConfirmationStep) { 28 return 29 } 30 31 $('.booknetic_payment_methods').addClass('booknetic_hidden'); 32 33 if (hasDeposit) { 34 return; 35 } 36 37 $('.booknetic_confirm_step_body, .booknetic_confirm_date_time').addClass('booknetic_hidden'); 38 $('.booknetic_confirm_step_body').after(`<div class="booknetic_confirm_date_time booknetic_text_primary booknetic_redirect_to_wc">${booknetic.__('automatically_redirecting_to_order_page')}</div>`); 39 booknetic.panel_js.find('.booknetic_next_step').attr('disabled', false); 40 booknetic.confirmAppointment(); 41 }, 'addon-woocommerce' ); 42 43 bookneticHooks.addAction( 'ajax_after_confirm_success', function ( booknetic, params, result ) 44 { 45 if ( booknetic.getSelected.paymentMethod() === 'woocommerce' && 'url' in result ) 46 { 47 booknetic.loading( 1 ); 48 49 window.location.href = result[ 'url' ]; 50 } 51 } ); 52 } ); 53} )( jQuery );
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.