@icomoon-font-path: "../fonts/vc_icons_v2/fonts"; @vc-c-icon-minimize: "\e91c"; @vc-c-icon-close: "\e5cd"; @vc-c-icon-1-6_4-6_1-6: "\e90e"; @vc-c-icon-add_template: "\e903"; @vc-c-icon-arrow_back: "\e5c4"; @vc-c-icon-arrow_drop_down: "\e5c5"; @vc-c-icon-arrow_drop_up: "\e5c7"; @vc-c-icon-arrow_forward: "\e5c8"; @vc-c-icon-check: "\e5ca"; @vc-c-icon-arrow_upward: "\e5d8"; @vc-c-icon-arrow_downward: "\e5db"; @vc-c-icon-sync: "\e627"; @vc-c-icon-search: "\e8b6"; @vc-c-icon-1-1: "\e900"; @vc-c-icon-1-2_1-2: "\e901"; @vc-c-icon-1-3_1-3_1-3: "\e902"; @vc-c-icon-1-4_1-2_1-4: "\e904"; @vc-c-icon-1-4_1-4_1-4_1-4: "\e905"; @vc-c-icon-1-4_3-4: "\e906"; @vc-c-icon-1-6_1-6_1-6_1-2: "\e907"; @vc-c-icon-1-6_1-6_1-6_1-6_1-6_1-6: "\e908"; @vc-c-icon-l_15_15_15_15_15: "\e909"; @vc-c-icon-1-6_2-3_1-6: "\e90a"; @vc-c-icon-2-3_1-3: "\e90b"; @vc-c-icon-5-6_1-6: "\e90c"; @vc-c-icon-add_element: "\e90d"; @vc-c-icon-add: "\e90f"; @vc-c-icon-cog: "\e910"; @vc-c-icon-content_copy: "\e911"; @vc-c-icon-delete_empty: "\e912"; @vc-c-icon-dragndrop: "\e913"; @vc-c-icon-fullscreen_exit: "\e914"; @vc-c-icon-fullscreen: "\e915"; @vc-c-icon-arrow_drop_right: "\e916"; @vc-c-icon-layout_default: "\e917"; @vc-c-icon-layout_landscape-smartphones: "\e918"; @vc-c-icon-layout_landscape-tablets: "\e919"; @vc-c-icon-layout_portrait-smartphones: "\e91a"; @vc-c-icon-layout_portrait-tablets: "\e91b"; @vc-c-icon-mode_edit: "\e91d"; @vc-c-icon-row_default_fe: "\e91e"; @vc-c-icon-text-block: "\e91f"; (function () { 'use strict'; window.InlineShortcodeView_vc_basic_grid = vc.shortcode_view.extend( { render: function ( e ) { window.InlineShortcodeView_vc_basic_grid.__super__.render.call( this, e ); this.initGridJs( true ); return this; }, parentChanged: function () { window.InlineShortcodeView_vc_basic_grid.__super__.parentChanged.call( this ); this.initGridJs(); }, initGridJs: function ( useAddActivity ) { var model = this.model; if ( true === model.get( 'grid_activity' ) ) { return false; } model.set( 'grid_activity', true ); if ( true === useAddActivity ) { vc.frame_window.vc_iframe.addActivity( function () { this.vc_iframe.gridInit( model.get( 'id' ) ); model.set( 'grid_activity', false ); } ); } else { vc.frame_window.vc_iframe.gridInit( model.get( 'id' ) ); model.set( 'grid_activity', false ); } } } ); })(); !function(o){"use strict";const r=function(t,s){this.el=o(t),this.options=o.extend({},o.fn.typed.defaults,s),this.isInput=this.el.is("input"),this.attr=this.options.attr,this.showCursor=!this.isInput&&this.options.showCursor,this.elContent=this.attr?this.el.attr(this.attr):this.el.text(),this.contentType=this.options.contentType,this.typeSpeed=this.options.typeSpeed,this.startDelay=this.options.startDelay,this.backSpeed=this.options.backSpeed,this.backDelay=this.options.backDelay,this.stringsElement=this.options.stringsElement,this.strings=this.options.strings,this.strPos=0,this.arrayPos=0,this.stopNum=0,this.loop=this.options.loop,this.loopCount=this.options.loopCount,this.curLoop=0,this.stop=!1,this.cursorChar=this.options.cursorChar,this.shuffle=this.options.shuffle,this.sequence=[],this.build()};r.prototype={constructor:r,init(){const s=this;s.timeout=setTimeout(function(){for(let t=0;t'+this.cursorChar+""),this.el.after(this.cursor)),this.stringsElement&&(this.strings=[],this.stringsElement.hide(),console.log(this.stringsElement.children()),t=this.stringsElement.children(),o.each(t,function(t,s){e.strings.push(o(s).html())})),this.init()},typewrite(o,r){if(!0!==this.stop){var t=Math.round(70*Math.random())+this.typeSpeed;const n=this;n.timeout=setTimeout(function(){let s=0,e=o.substr(r);if("^"===e.charAt(0)){let t=1;/^\^\d+/.test(e)&&(e=/\d+/.exec(e)[0],t+=e.length,s=parseInt(e)),o=o.substring(0,r)+o.substring(r+t)}if("html"===n.contentType){var i=o.substr(r).charAt(0);if("<"===i){let t="",s="";for(s="<"===i?">":";";o.substr(r+1).charAt(0)!==s&&(t+=o.substr(r).charAt(0),!(++r+1>o.length)););r++,t+=s}}n.timeout=setTimeout(function(){var t;r===o.length?(n.options.onStringTyped(n.arrayPos),n.arrayPos===n.strings.length-1&&(n.options.callback(),n.curLoop++,!1===n.loop||n.curLoop===n.loopCount)||(n.timeout=setTimeout(function(){n.backspace(o,r)},n.backDelay))):(0===r&&n.options.preStringTyped(n.arrayPos),t=o.substr(0,r+1),n.attr?n.el.attr(n.attr,t):n.isInput?n.el.val(t):"html"===n.contentType?n.el.html(t):n.el.text(t),r++,n.typewrite(o,r))},s)},t)}},backspace(s,e){if(!0!==this.stop){var t=Math.round(70*Math.random())+this.backSpeed;const i=this;i.timeout=setTimeout(function(){if("html"===i.contentType&&">"===s.substr(e).charAt(0)){let t="";for(;"<"!==s.substr(e-1).charAt(0)&&(t-=s.substr(e).charAt(0),!(--e<0)););e--,t+="<"}var t=s.substr(0,e);i.attr?i.el.attr(i.attr,t):i.isInput?i.el.val(t):"html"===i.contentType?i.el.html(t):i.el.text(t),e>i.stopNum?(e--,i.backspace(s,e)):e<=i.stopNum&&(i.arrayPos++,i.arrayPos===i.strings.length?(i.arrayPos=0,i.shuffle&&(i.sequence=i.shuffleArray(i.sequence)),i.init()):i.typewrite(i.strings[i.sequence[i.arrayPos]],e))},t)}},shuffleArray(t){let s,e,i=t.length;if(i)for(;--i;)s=t[e=Math.floor(Math.random()*(i+1))],t[e]=t[i],t[i]=s;return t},reset(){clearInterval(this.timeout);this.el.attr("id");this.el.empty(),void 0!==this.cursor&&this.cursor.remove(),this.strPos=0,this.arrayPos=0,this.curLoop=0,this.options.resetCallback()}},o.fn.typed=function(i){return this.each(function(){let t=o(this),s=t.data("typed"),e="object"==typeof i&&i;s&&s.reset(),t.data("typed",s=new r(this,e)),"string"==typeof i&&s[i]()})},o.fn.typed.defaults={strings:["These are the default values...","You know what you should do?","Use your own!","Have a great day!"],stringsElement:null,typeSpeed:0,startDelay:0,backSpeed:0,shuffle:!1,backDelay:500,loop:!1,loopCount:!1,showCursor:!0,cursorChar:"|",attr:null,contentType:"html",callback(){},preStringTyped(){},onStringTyped(){},resetCallback(){}}}(window.jQuery);jQuery(document).ready(function(){ // checkPudableCart(); }); // jQuery(window).load(function(){ jQuery(window).on('load', function(){ // messo on per fix problema segnalato nel tk 12736. Se non dovesse risolvere, provare a caricare jquery migrate (https://code.jquery.com/jquery-migrate-1.4.1.min.js) e usare il classico .load if( jQuery('input[name^="shipping_method"]').length > 0 ){ if( isSelectedBrtFermopointShippingMethod() ){ checkPudableCartNew(); // disableCodPayment(); // disableCheckShippingAddress(); // showMapOrList(); // checkGeolocation(); // updateShippingAddressWithPudo(null); } else { enablePudoShippingMethodNew(); enableCodPayment(); // enableCheckShippingAddress(); hideMap(); updateShippingAddressWithPudo(null); } } }); jQuery( 'body' ).on( 'change', 'input[name^="shipping_method"]', function() { if( jQuery(this).val().startsWith('wc_brt_fermopoint_shipping_methods_custom') ){ checkPudableCartNew(); // disableCodPayment(); // disableCheckShippingAddress(); // showMapOrList(); // checkGeolocation(); // updateShippingAddressWithPudo(null); } else { enablePudoShippingMethodNew(); enableCodPayment(); // enableCheckShippingAddress(); hideMap(); updateShippingAddressWithPudo(null); } }); jQuery( 'body' ).on( 'click', 'img.updatePudo', function(){ if( isSelectedBrtFermopointShippingMethod() ){ checkPudableCartNew(); } }); jQuery( 'body' ).on( 'focusout', 'input#billing_city, input#billing_postcode, input#shipping_city, input#shipping_postcode', function(){ if( isSelectedBrtFermopointShippingMethod() ){ checkPudableCartNew(); } }); jQuery( 'body' ).on( 'change', 'select#billing_country, select#shipping_country', function() { if( isSelectedBrtFermopointShippingMethod() ){ checkPudableCartNew(); } }); jQuery( 'body' ).on( 'focusout', 'input#billing_phone, input#billing_email', function(){ if( isSelectedBrtFermopointShippingMethod() ){ checkPudableCartNew(); } }); jQuery( 'body' ).on( 'change', 'input#ship-to-different-address-checkbox', function() { if( isSelectedBrtFermopointShippingMethod() ){ checkPudableCartNew(); } }); var map; var markers = []; var listaPudo = []; function initMap() { if(ajax_object.use_google_map == 'yes'){ map = new google.maps.Map(document.getElementById('wc_brt_fermopoint_shipping_methods_custom-map'), { center: { lat: 44.493977, lng: 11.3430258 }, zoom: 11, mapTypeControl: false, scaleControl: false, streetViewControl: false, rotateControl: false, fullscreenControl: false, }); } } function loading(isLoading) { if(isLoading) jQuery('#wc_brt_fermopoint_shipping_methods_custom-list_container, #wc_brt_fermopoint_shipping_methods_custom-map_container').addClass('loading'); else jQuery('#wc_brt_fermopoint_shipping_methods_custom-list_container, #wc_brt_fermopoint_shipping_methods_custom-map_container').removeClass('loading'); } function disableCodPayment() { jQuery(document).ajaxComplete(function(){ jQuery(document).ready(function(){ if(jQuery('.wc_payment_method.payment_method_cod')) { jQuery('.wc_payment_method.payment_method_cod').css('opacity', '0.5').find('input').attr('disabled', 'disabled'); if( isSelectedBrtFermopointShippingMethod() ) jQuery('.wc_payment_method.payment_method_cod input').prop('checked', false); } }); }); } function enableCodPayment() { jQuery(document).ajaxComplete(function(){ jQuery(document).ready(function(){ if(jQuery('.wc_payment_method.payment_method_cod')) jQuery('.wc_payment_method.payment_method_cod').css('opacity', '1').find('input').removeAttr('disabled'); // jQuery('wc_payment_method.payment_method_cod').removeAttr('disabled'); }); }); } function disableCheckShippingAddress() { jQuery(document).ajaxComplete(function(){ jQuery(document).ready(function(){ if( jQuery('.woocommerce-shipping-fields').length > 0 ) { jQuery('.woocommerce-shipping-fields').hide().find('input[name=ship_to_different_address]').attr('disabled', 'disabled'); } }); }); } function enableCheckShippingAddress() { jQuery(document).ajaxComplete(function(){ jQuery(document).ready(function(){ if( jQuery('.woocommerce-shipping-fields').length > 0 ) { jQuery('.woocommerce-shipping-fields').show().find('input[name=ship_to_different_address]').removeAttr('disabled'); } }); }); } function showMapOrList() { if( isSelectedBrtFermopointShippingMethod() ){ jQuery(document).ajaxComplete(function(){ jQuery('#wc_brt_fermopoint_shipping_methods_custom-tr_container, #wc_brt_fermopoint_shipping_methods_custom-div_container').show(); }); } } function hideMap() { jQuery(document).ajaxComplete(function(){ jQuery('#wc_brt_fermopoint_shipping_methods_custom-tr_container, #wc_brt_fermopoint_shipping_methods_custom-div_container').hide(); }); } function isSelectedBrtFermopointShippingMethod(){ if( jQuery('input[name^="shipping_method"]:checked').length > 0 && jQuery('input[name^="shipping_method"]:checked').val().startsWith('wc_brt_fermopoint_shipping_methods_custom') ){ return true; } else if( jQuery('input[name^="shipping_method"]').length == 1 && jQuery('input[name^="shipping_method"]').val().startsWith('wc_brt_fermopoint_shipping_methods_custom') ) { return true; } return false; } function isShippingDifferentAddressChecked(){ var checkShipToDifferentAddress = jQuery('input[name=ship_to_different_address]').prop('checked'); console.log("checkShipToDifferentAddress", checkShipToDifferentAddress); if( checkShipToDifferentAddress ){ return true; } return false; } function checkGeolocation() { if(ajax_object.use_geolocation == 'yes'){ getCoordsFromGeolocation(); } else { getPudoFromAddress(); } } function getCoordsFromGeolocation() { if (navigator.geolocation) { navigator.geolocation.getCurrentPosition((position) => { if(ajax_object.use_google_map == 'yes'){ const center = new google.maps.LatLng(position.coords.latitude, position.coords.longitude); map.panTo(center); } getPudoFromCoords(position.coords); }, (err) => { console.log("err: "+err); getPudoFromAddress(); }); } else { console.log("Geolocation is not supported by this browser."); getPudoFromAddress(); } } function getShippingAddress(){ var returnObj = {}; if(isShippingDifferentAddressChecked()) { returnObj.city = jQuery('form .woocommerce-shipping-fields #shipping_city').val(); returnObj.country = jQuery('form .woocommerce-shipping-fields #shipping_country').val(); returnObj.cap = jQuery('form .woocommerce-shipping-fields #shipping_postcode').val(); } else { returnObj.city = jQuery('form .woocommerce-billing-fields #billing_city').val(); returnObj.country = jQuery('form .woocommerce-billing-fields #billing_country').val(); returnObj.cap = jQuery('form .woocommerce-billing-fields #billing_postcode').val(); } return returnObj; } function getPudoFromCoords(coords) { if( isSelectedBrtFermopointShippingMethod() ){ loading(true); jQuery.ajax({ type: "POST", url : ajax_object.ajaxurl, data: { action: 'get_pudo_by_lat_lng', security: ajax_object.security, coords: coords, }, success: function( data, textStatus, jqXHR ) { if(data.pudo && data.pudo.length > 0){ if(ajax_object.use_google_map == 'yes'){ addPudoToMap(data.pudo); } else { listaPudo = data.pudo; addPudoToList(data.pudo); } enablePudoShippingMethodNew(); showMapOrList(); // CHANGE: Removed call to function `updateShippingAddressWithPudo` as it was resetting the selected pudo. } else { var why_not_pudable = 'no_pudo_found'; if( data.why_not_pudable ) { why_not_pudable = data.why_not_pudable; } disablePudoShippingMethodNew(why_not_pudable); hideMap(); // enableCodPayment(); // enableCheckShippingAddress(); updateShippingAddressWithPudo(null); } loading(false); }, error: function( jqXHR, textStatus, errorThrown ) { console.log("err"); console.log(textStatus); console.log(errorThrown); disablePudoShippingMethodNew('generic_error'); enableCodPayment(); // enableCheckShippingAddress(); updateShippingAddressWithPudo(null); loading(false); } }); } else { hideMap(); enableCodPayment(); // enableCheckShippingAddress(); updateShippingAddressWithPudo(null); } } function getPudoFromAddress() { if( isSelectedBrtFermopointShippingMethod() ){ loading(true); var shipping_address = getShippingAddress(); jQuery.ajax({ type: "POST", url : ajax_object.ajaxurl, data: { action: 'get_pudo_by_address', security: ajax_object.security, shipping_address: shipping_address }, success: function( data, textStatus, jqXHR ) { if(data.pudo && data.pudo.length > 0){ if(ajax_object.use_google_map == 'yes'){ addPudoToMap(data.pudo); } else { listaPudo = data.pudo; addPudoToList(data.pudo); } enablePudoShippingMethodNew(); showMapOrList(); // CHANGE: Removed call to function `updateShippingAddressWithPudo` as it was resetting the selected pudo. } else { var why_not_pudable = 'no_pudo_found'; if( data.why_not_pudable ) { why_not_pudable = data.why_not_pudable; } disablePudoShippingMethodNew(why_not_pudable); hideMap(); // enableCodPayment(); // enableCheckShippingAddress(); updateShippingAddressWithPudo(null); } loading(false); }, error: function( jqXHR, textStatus, errorThrown ) { console.log("err"); console.log(textStatus); console.log(errorThrown); disablePudoShippingMethodNew('generic_error'); enableCodPayment(); // enableCheckShippingAddress(); updateShippingAddressWithPudo(null); loading(false); } }); } else { hideMap(); enableCodPayment(); // enableCheckShippingAddress(); updateShippingAddressWithPudo(null); } } function addPudoToMap(pudoArray) { clearMarkers(); var bounds = new google.maps.LatLngBounds(); var infowindow = new google.maps.InfoWindow(); for (var i = 0; i < pudoArray.length; i++) { // var latlngMarker = new google.maps.LatLng(pudoArray[i].latitude, pudoArray[i].longitude); const marker = new google.maps.Marker({ position: new google.maps.LatLng(pudoArray[i].latitude, pudoArray[i].longitude), icon: ajax_object.plugin_url+"/includes/images/icon-gmap.png", map: map, }); const infowindowContent = getInfoWindowContent(pudoArray[i]); const pudo = pudoArray[i]; google.maps.event.addListener(marker, 'click', function(e) { infowindow.setContent(infowindowContent); infowindow.open(map, this); updateShippingAddressWithPudo(pudo); jQuery('#wc_brt_fermopoint_shipping_methods_custom-tr_container h3.pudo-label, #wc_brt_fermopoint_shipping_methods_custom-div_container h3.pudo-label').text("Hai selezionato il punto di ritiro: "+pudo.pointName); }); bounds.extend(new google.maps.LatLng(pudoArray[i].latitude, pudoArray[i].longitude)); markers.push(marker); } map.fitBounds(bounds); } function clearMarkers() { if(markers.length > 0){ for (var i = 0; i < markers.length; i++) { markers[i].setMap(null); } markers = []; } } function getInfoWindowContent(pudo) { const days = ["Domenica", "Lunedì", "Martedì", "Mercoledì", "Giovedì", "Venerdì", "Sabato", "Domenica"]; const id = pudo.pudoId; const title = pudo.pointName ? "

"+ pudo.pointName +"

" : ""; const address = pudo.fullAddress ? "

"+ pudo.fullAddress +"

" : ""; var orariHtml = ""; orariHtml = ""; return "
"+title+address+orariHtml+"
"; } function updateShippingAddressWithPudo(pudo) { jQuery(document).ready(function(){ if( jQuery('form #wc_brt_fermopoint-custom_checkout_fields') ){ if(pudo != null && pudo != undefined) { if(typeof(pudo) == 'object') { jQuery('form #wc_brt_fermopoint-custom_checkout_fields #wc_brt_fermopoint-selected_pudo').val(JSON.stringify(pudo)); jQuery('form #wc_brt_fermopoint-custom_checkout_fields #wc_brt_fermopoint-pudo_id').val(pudo.pudoId); } else if(typeof(pudo) == 'number') { jQuery('form #wc_brt_fermopoint-custom_checkout_fields #wc_brt_fermopoint-selected_pudo').val(JSON.stringify(listaPudo[pudo])); jQuery('form #wc_brt_fermopoint-custom_checkout_fields #wc_brt_fermopoint-pudo_id').val(listaPudo[pudo].pudoId); } else { jQuery('form #wc_brt_fermopoint-custom_checkout_fields #wc_brt_fermopoint-selected_pudo').val(""); jQuery('form #wc_brt_fermopoint-custom_checkout_fields #wc_brt_fermopoint-pudo_id').val(""); } } else { jQuery('form #wc_brt_fermopoint-custom_checkout_fields #wc_brt_fermopoint-selected_pudo').val(""); jQuery('form #wc_brt_fermopoint-custom_checkout_fields #wc_brt_fermopoint-pudo_id').val(""); } } }); } function addPudoToList(pudoArray) { jQuery(document).ajaxComplete(function(){ var listContainer = jQuery('#wc_brt_fermopoint_shipping_methods_custom-list_container .pudo-list-scrollable'); var appendHtml = ""; const days = ["Domenica", "Lunedì", "Martedì", "Mercoledì", "Giovedì", "Venerdì", "Sabato", "Domenica"]; // CHANGE: Get the id of the previously selected PUDO var selectedPudoId = jQuery('form #wc_brt_fermopoint-custom_checkout_fields #wc_brt_fermopoint-pudo_id').val(); if(pudoArray.length > 0){ appendHtml += ""; } listContainer.html(appendHtml); // CHANGE: Maybe unset selected pudo if it is not in the list anymore var selectedPudo = jQuery( '#wc_brt_fermopoint_shipping_methods_custom-list_container li.pudo.selected' ); if ( ! selectedPudo || 0 === selectedPudo.length ) { updateShippingAddressWithPudo(null); } }); } function selectPudo(el, index) { jQuery('#wc_brt_fermopoint_shipping_methods_custom-list_container .pudo-list-scrollable ul.lista_pudo li.pudo').removeClass('selected'); jQuery(el).addClass('selected'); updateShippingAddressWithPudo(index); } function getShippingData(){ var returnObj = {}; returnObj.country = jQuery('form .woocommerce-billing-fields #billing_country').val(); returnObj.email = jQuery('form .woocommerce-billing-fields #billing_email').val(); returnObj.phone = jQuery('form .woocommerce-billing-fields #billing_phone').val(); return returnObj; } function checkPudableCartNew() { if( isSelectedBrtFermopointShippingMethod() ){ var shipping_data = getShippingData(); jQuery.ajax({ type: "POST", url : ajax_object.ajaxurl, data: { action: 'check_pudable_cart', security: ajax_object.security, shipping_data: shipping_data }, success: function( data, textStatus, jqXHR ) { if(data.pudable){ enablePudoShippingMethodNew(); disableCodPayment(); // disableCheckShippingAddress(); showMapOrList(); checkGeolocation(); // CHANGE: Removed call to function `updateShippingAddressWithPudo` as it was resetting the selected pudo. } else { var why_not_pudable = "generic_error"; if( data.why_not_pudable ) why_not_pudable = data.why_not_pudable; disablePudoShippingMethodNew(why_not_pudable); hideMap(); enableCodPayment(); // enableCheckShippingAddress(); updateShippingAddressWithPudo(null); } }, error: function( jqXHR, textStatus, errorThrown ) { console.log("err"); console.log(textStatus); console.log(errorThrown); disablePudoShippingMethodNew('generic_error'); hideMap(); enableCodPayment(); // enableCheckShippingAddress(); updateShippingAddressWithPudo(null); } }); } else { hideMap(); enableCodPayment(); // enableCheckShippingAddress(); updateShippingAddressWithPudo(null); } } // CHANGE: Added call to function `checkPudableCartNew` on `updated_checkout` event. jQuery( 'body' ).on( 'updated_checkout', checkPudableCartNew ); function disablePudoShippingMethodNew(idError) { jQuery(document).ajaxComplete(function(){ jQuery(document).ready(function(){ if( jQuery('.woocommerce-shipping-methods input[id*="wc_brt_fermopoint_shipping_methods_custom"]').length > 0 ) { if(jQuery('#wc_brt_fermopoint_shipping_methods_custom-tr_alert-' + idError ).length > 0){ jQuery('.wc_brt_tr_alert').hide(); jQuery('#wc_brt_fermopoint_shipping_methods_custom-tr_alert-' + idError ).show(); } if(jQuery('#wc_brt_fermopoint_shipping_methods_custom-div_alert-' + idError ).length > 0){ jQuery('.wc_brt_div_alert').hide(); jQuery('#wc_brt_fermopoint_shipping_methods_custom-div_alert-' + idError ).show(); } } }); }); } function enablePudoShippingMethodNew() { jQuery(document).ajaxComplete(function(){ jQuery(document).ready(function(){ if( jQuery('.woocommerce-shipping-methods input[id*="wc_brt_fermopoint_shipping_methods_custom"]').length > 0 ) { if(jQuery('.wc_brt_tr_alert').length > 0){ jQuery('.wc_brt_tr_alert').hide(); } if(jQuery('.wc_brt_div_alert').length > 0){ jQuery('.wc_brt_div_alert').hide(); } } }); }); } /*! elementor - v3.10.2 - 29-01-2023 */ "use strict";(self.webpackChunkelementor=self.webpackChunkelementor||[]).push([[52],{7602:(e,n)=>{Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;class WpAudio extends elementorModules.frontend.handlers.Base{onInit(){super.onInit(),window.wp.mediaelement.initialize()}}n.default=WpAudio}}]);