;(function($){
"use strict";
jQuery(window).on('elementor/frontend/init', function(){
if(typeof elementor!="undefined"&&typeof elementor.settings.page!="undefined"){
elementor.settings.page.addChangeCallback('danza_header_style', function(newValue){
if(newValue=='prebuilt'){
elementor.saver.update({
onSuccess: function(){
elementor.reloadPreview();
elementor.once('preview:loaded', function(){
elementor.getPanelView().setPage('page_settings').activateTab('settings');
});
}});
}});
elementor.settings.page.addChangeCallback('danza_header_builder_option', function(newValue){
elementor.saver.update({
onSuccess: function(){
elementor.reloadPreview();
elementor.once('preview:loaded', function(){
elementor.getPanelView().setPage('page_settings').activateTab('settings');
});
}});
});
elementor.settings.page.addChangeCallback('danza_footer_style', danzaFooterStyle);
function danzaFooterStyle(newValue){
elementor.saver.update({
onSuccess: function(){
elementor.reloadPreview();
elementor.once('preview:loaded', function(){
elementor.getPanelView().setPage('page_settings').activateTab('settings');
});
}});
}
elementor.settings.page.addChangeCallback('danza_footer_choice', danzaFooterChoice);
function danzaFooterChoice(newValue){
elementor.saver.update({
onSuccess: function(){
elementor.reloadPreview();
elementor.once('preview:loaded', function(){
elementor.getPanelView().setPage('page_settings').activateTab('settings');
});
}});
}}
});
})(jQuery);