!function( e ){var o={init:function(){e( "input[name=wvrx_save]" ).on( "click",o._export ),e( "input[name=wvrx_save_all]" ).on( "click",o._exportall ),e( "input[name=wvrx_restore]" ).on( "click",o._import ),e( "input[name=wvrx_save_xplus]" ).on( "click",o._exportxplus ),e( "input[name=wvrx_select_subtheme]" ).on( "click",o._loadtheme ),e( "input[name=wvrx_cust_level_beginner]" ).on( "click",o._levelbeg ),e( "input[name=wvrx_cust_level_intermediate]" ).on( "click",o._levelint ),e( "input[name=wvrx_cust_level_advanced]" ).on( "click",o._leveladv )},_export:function(){window.location.href=WVRXConfig.customizerURL+"?wvrx_save="+WVRXConfig.exportNonce},_exportall:function(){window.location.href=WVRXConfig.customizerURL+"?wvrx_save_all="+WVRXConfig.exportNonce},_exportxplus:function(){window.location.href=WVRXConfig.customizerURL+"?wvrx_save_xplus="+WVRXConfig.exportNonce},_levelbeg:function(){window.location.href=WVRXConfig.customizerURL+"?wvrx_cust_level_beginner="+WVRXConfig.exportNonce},_levelint:function(){window.location.href=WVRXConfig.customizerURL+"?wvrx_cust_level_intermediate="+WVRXConfig.exportNonce},_leveladv:function(){window.location.href=WVRXConfig.customizerURL+"?wvrx_cust_level_advanced="+WVRXConfig.exportNonce},_import:function(){var o=e( window ),n=e( "body" ),t=e( '
' ),i=e( ".wvrx-settings-restore-controls" ),r=e( "input[name=wvrx-settings-restore-file]" ),l=e( ".wvrx-uploading" );""==r.val()?alert( WVRXl10n.emptyImport ):( o.off( "beforeunload" ),n.append( t ),t.append( i ),l.show(),t.submit() )},_loadtheme:function(){var o=e( window ),n=e( "body" ),t=e( '' ),i=e( ".wvrx-settings-load-subtheme" ),r=e( ".wvrx-uploading" );o.off( "beforeunload" ),n.append( t ),t.append( i ),r.show(),t.submit()}};e( o.init )}( jQuery );