jQuery(document).ready((function($){$('input[name="structure"]').on("change.page-generator-pro",(function(){$(this).val().includes("service")?$(".services").show():$(".services").hide()})),$('input[name="method"]').on("change.page-generator-pro",(function(){var e=$('input[name="method"]:checked').val();if(void 0===e)$("div.radius").hide(),$("div.area").hide();else switch(e){case"radius":$("div.radius").show(),$("div.area").hide();break;case"area":$("div.radius").hide(),$("div.area").show();break}})),$('input[name="method"]').trigger("change.page-generator-pro"),$('body.page-generator-pro select[name="country_code"]').on("change.page-generator-pro",(function(){page_generator_pro_destroy_selectize(),page_generator_pro_reinit_selectize()})),$('body.page-generator-pro select[name="country_code"]').trigger("change.page-generator-pro"),$("form").on("submit",(function(e){wpzinc_modal_open(page_generator_pro_groups_directory.building_title,page_generator_pro_groups_directory.building_message)}))}));