PATH:
home
/
thebhoeo
/
.trash
/
backwpup
/
vendor
/
inpsyde
/
backwpup-restore-shared
/
resources
/
js
window.BWU=window.BWU||{},((r,o,n,t)=>{var i={restoreSuccess:function(){var e=n("#restore_progress");return e&&e.text(t.successFilesRestored),this.closeSource(),this.cleanup(),this},restoreFailed:function(){var e=n("#restore_progress");return e&&e.text(t.failedRestore),this.closeSource(),this.cleanup(),this},onOpen:function(){n("#start-restore").prop("disabled",!0);var e=n("#restore_progress");return e&&e.text(t.restoringDirectories),this.isRestoring=!0,this},closeSource:function(){return this.eventSource.close(),n("#start-restore").prop("disabled",!1),this.isRestoring=!1,this},cleanup:function(){return this.errors=0,this.isRestoring=!1,this.eventSource&&(this.eventSource.removeEventListener("log",this.onError),this.eventSource.onmessage=null,this.eventSource.onopen=null,this.eventSource.onerror=null),n("body").trigger("backwpup.restore_cleanup"),this},onDone:function(e){return this.errors?this.restoreFailed():this.restoreSuccess(),o.isFunction(this.options.onSuccessCallback)&&this.options.onSuccessCallback.call(this,e),this},onMessage:function(e){e=JSON.parse(e.data);return"done"===e.state?this.onDone(e):o.isFunction(this.options.onMessageCallback)&&this.options.onMessageCallback.call(this,e),this},onError:function(e){var t=(e=JSON.parse(e.data)).message,s=n("#restore_step");return this.eventSource.close(),this.cleanup(),e.state&&"error"===e.state&&(r.Functions.printMessageError(t,s),n("body").trigger(this.ACTION_FILE_RESTORE_ERROR,t),this.errors++),this},restore:function(){return"EventSource"in window?(this.eventSource=new EventSource(this.url+"?action=restore_dir&context=event_source&controller=job&backwpup_action_nonce="+this.nonce),this.eventSource.onmessage=this.onMessage,this.eventSource.onopen=this.onOpen,this.eventSource.addEventListener("log",this.onError)):console.warn(t.noEventSourceInWindowObject),this},init:function(){return this},construct:function(e,t,s){return o.bindAll(this,"restoreSuccess","restoreFailed","onOpen","closeSource","onDone","onMessage","onError","restore","init"),this.eventSource=null,this.url=e,this.nonce=t,this.errors=0,this.options={onMessageCallback:null,onSuccessCallback:null},o.extend(this.options,s),this}};r.Restore.FactoryFilesRestore=function(e,t,s){return Object.create(i,{ACTION_FILE_RESTORE_ERROR:r.Functions.makeConstant("backwpup.file_restore_error")}).construct(e,t,s)}})(window.BWU,window._,window.jQuery,window.backwpupRestoreLocalized);
[-] decrypter.js
[edit]
[-] database-restore.js
[edit]
[-] database.min.js
[edit]
[-] restore-functions.min.js
[edit]
[-] database.js
[edit]
[-] decompress.js
[edit]
[-] restore-functions.js
[edit]
[-] decompress.min.js
[edit]
[-] migrate.min.js
[edit]
[-] strategy.js
[edit]
[+]
..
[-] controller.js
[edit]
[-] download.js
[edit]
[-] files-restore.min.js
[edit]
[-] strategy.min.js
[edit]
[-] database-restore.min.js
[edit]
[-] controller.min.js
[edit]
[-] download.min.js
[edit]
[-] files-restore.js
[edit]
[-] migrate.js
[edit]
[-] decrypter.min.js
[edit]