(self.travelpayoutsWpPlugin=self.travelpayoutsWpPlugin||[]).push([[464],{27957:()=>{!function(a){"use strict";a(window).load(function(){a("#wpbody").on("click",".travelpayouts-migrate",function(t){t.preventDefault(),a(this).removeClass("travelpayouts-migrate"),a(this).addClass("travelpayouts-button-loading"),a.ajax({url:ajaxurl,type:"POST",data:{action:"travelpayouts_migrate"},success:function(a){var t=jQuery.parseJSON(a);t.action&&"reload"==t.action&&location.reload(!0)},error:function(){console.log("Migration error")}})}),a("#wpbody").on("click",".travelpayouts-migrate-cancel",function(t){t.preventDefault(),a(this).removeClass("travelpayouts-migrate-cancel"),a(this).addClass("travelpayouts-button-loading"),a.ajax({url:ajaxurl,type:"POST",data:{action:"travelpayouts_migrate_cancel"},success:function(a){var t=jQuery.parseJSON(a);t.action&&"reload"==t.action&&location.reload(!0)},error:function(){console.log("Migration cancel error")}})})})}(jQuery)},62168:(a,t,o)=>{"use strict";o.r(t);o(27957)}}]);