diff --git a/dist/js/tool.js b/dist/js/tool.js index 4214e51..d68c4d4 100644 --- a/dist/js/tool.js +++ b/dist/js/tool.js @@ -1 +1 @@ -(()=>{var e={757:(e,t,r)=>{e.exports=r(666)},887:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(645),o=r.n(n)()((function(e){return e[1]}));o.push([e.id,".is-deleting td[data-v-2e0b6ff6]{color:var(--60)}",""]);const a=o},645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=e(t);return t[2]?"@media ".concat(t[2]," {").concat(r,"}"):r})).join("")},t.i=function(e,r,n){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(n)for(var a=0;a{var t=function(e){"use strict";var t,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,a=Object.create(o.prototype),i=new D(n||[]);return a._invoke=function(e,t,r){var n=d;return function(o,a){if(n===h)throw new Error("Generator is already running");if(n===f){if("throw"===o)throw a;return S()}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=E(i,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===d)throw n=f,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var l=u(e,t,r);if("normal"===l.type){if(n=r.done?f:p,l.arg===g)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n=f,r.method="throw",r.arg=l.arg)}}}(e,r,i),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var d="suspendedStart",p="suspendedYield",h="executing",f="completed",g={};function v(){}function y(){}function k(){}var m={};l(m,a,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(B([])));w&&w!==r&&n.call(w,a)&&(m=w);var x=k.prototype=v.prototype=Object.create(m);function N(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function r(o,a,i,c){var l=u(e[o],e,a);if("throw"!==l.type){var s=l.arg,d=s.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,i,c)}),(function(e){r("throw",e,i,c)})):t.resolve(d).then((function(e){s.value=e,i(s)}),(function(e){return r("throw",e,i,c)}))}c(l.arg)}var o;this._invoke=function(e,n){function a(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(a,a):a()}}function E(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,E(e,r),"throw"===r.method))return g;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var o=u(n,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function V(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(V,this),this.reset(!0)}function B(e){if(e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(l&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:B(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},379:(e,t,r)=>{"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},a=function(){var e={};return function(t){if(void 0===e[t]){var r=document.querySelector(t);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}e[t]=r}return e[t]}}(),i=[];function c(e){for(var t=-1,r=0;r{"use strict";t.Z=(e,t)=>{const r=e.__vccOpts||e;for(const[e,n]of t)r[e]=n;return r}},378:(e,t,r)=>{"use strict";r.d(t,{Z:()=>re});const n=Vue;var o={class:"flex mb-6 items-center justify-between"},a={class:"rounded active:outline-none active:ring focus:outline-none focus:ring"},i={class:"list-reset"},c={class:"overflow-hidden overflow-x-auto relative rounded-lg"};var l=r(757),s=r.n(l);const u=function(){return Nova.request().get("/nova-vendor/spatie/backup-tool/backup-statuses").then((function(e){return e.data}))},d=function(e){return Nova.request().get("/nova-vendor/spatie/backup-tool/backups?disk=".concat(e)).then((function(e){return e.data}))},p=function(){return Nova.request().post("/nova-vendor/spatie/backup-tool/backups")},h=function(e){return Nova.request().post("/nova-vendor/spatie/backup-tool/backups",{option:e})},f=function(e){var t=e.disk,r=e.path;return Nova.request().delete("/nova-vendor/spatie/backup-tool/backups",{params:{disk:t,path:r}})};var g={key:0,class:"p-3 flex items-center"},v={class:"overflow-hidden overflow-x-auto relative rounded-lg"},y={cellpadding:"0",cellspacing:"0",class:"table-default w-full"},k={class:"bg-gray-50 dark:bg-gray-800"},m={class:"text-left px-2 whitespace-nowrap uppercase text-gray-500 text-xxs tracking-wide px-2 py-2"},b={class:"text-left px-2 whitespace-nowrap uppercase text-gray-500 text-xxs tracking-wide px-2 py-2"},w={class:"text-left px-2 whitespace-nowrap uppercase text-gray-500 text-xxs tracking-wide px-2 py-2"},x=(0,n.createElementVNode)("th",null,null,-1),N={key:0},_={class:"text-center px-2 py-2",colspan:"4"},E=["textContent"];var V={class:"px-2 py-2 border-t border-gray-100 dark:border-gray-700 whitespace-nowrap cursor-pointer dark:bg-gray-800 group-hover:bg-gray-50 dark:group-hover:bg-gray-900"},C={class:"px-2 py-2 border-t border-gray-100 dark:border-gray-700 whitespace-nowrap cursor-pointer dark:bg-gray-800 group-hover:bg-gray-50 dark:group-hover:bg-gray-900"},D={class:"px-2 py-2 border-t border-gray-100 dark:border-gray-700 whitespace-nowrap cursor-pointer dark:bg-gray-800 group-hover:bg-gray-50 dark:group-hover:bg-gray-900"},B={class:"px-2 py-2 border-t border-gray-100 dark:border-gray-700 whitespace-nowrap cursor-pointer dark:bg-gray-800 group-hover:bg-gray-50 dark:group-hover:bg-gray-900 text-right"},S=["href","title"],L=["title","disabled"];const M={props:{date:{required:!0},path:{required:!0},size:{required:!0},disk:{required:!0},deletable:{required:!0},deleting:{required:!0}},computed:{downloadUrl:function(){return"".concat("/nova-vendor/spatie/backup-tool/download-backup","?disk=").concat(this.disk,"&path=").concat(this.path)}}};var O=r(379),j=r.n(O),T=r(887),P={insert:"head",singleton:!1};j()(T.Z,P);T.Z.locals;var q=r(744);const A={emits:["setModalVisibility","delete"],props:{disks:{required:!0,type:Array},activeDisk:{required:!0,type:String},backups:{required:!0,type:Array}},data:function(){return{deletingBackup:null,deleteModalOpen:!1}},components:{Backup:(0,q.Z)(M,[["render",function(e,t,r,o,a,i){var c=(0,n.resolveComponent)("icon");return(0,n.openBlock)(),(0,n.createElementBlock)("tr",{class:(0,n.normalizeClass)({"is-deleting":r.deleting})},[(0,n.createElementVNode)("td",V,(0,n.toDisplayString)(r.path),1),(0,n.createElementVNode)("td",C,(0,n.toDisplayString)(r.date),1),(0,n.createElementVNode)("td",D,(0,n.toDisplayString)(r.size),1),(0,n.createElementVNode)("td",B,[(0,n.createElementVNode)("a",{href:i.downloadUrl,target:"_blank",rel:"noopener nofollow",title:e.__("Download"),class:"appearance-none cursor-pointer text-70 hover:text-primary mr-3"},[(0,n.createVNode)(c,{type:"download","view-box":"0 0 24 24",width:"20",height:"20"})],8,S),(0,n.createElementVNode)("button",{title:e.__("Delete"),class:(0,n.normalizeClass)(["appearance-none mr-3",r.deletable?"text-70 hover:text-primary":"cursor-default text-40"]),disabled:!r.deletable,onClick:t[0]||(t[0]=(0,n.withModifiers)((function(t){return e.$emit("delete")}),["prevent"]))},[(0,n.createVNode)(c,{type:"trash","view-box":"0 0 24 24",width:"20",height:"20"})],10,L)])],2)}],["__scopeId","data-v-2e0b6ff6"]])},methods:{getDiscs:function(){return this.disks.map((function(e){return{value:e,label:e}}))},openDeleteModal:function(e){this.$emit("setModalVisibility",!0),this.deleteModalOpen=!0,this.deletingBackup=e},closeDeleteModal:function(){this.$emit("setModalVisibility",!1),this.deleteModalOpen=!1,this.deletingBackup=null},confirmDelete:function(){this.$emit("setModalVisibility",!1),this.deleteModalOpen=!1,this.$emit("delete",{disk:this.activeDisk,path:this.deletingBackup.path})}}};var F={cellpadding:"0",cellspacing:"0",class:"table-default w-full"},I={class:"bg-gray-50 dark:bg-gray-800 rounded-t-lg"},Z={class:"text-left px-2 whitespace-nowrap uppercase text-gray-500 text-xxs tracking-wide px-2 py-2"},G={class:"text-left px-2 whitespace-nowrap uppercase text-gray-500 text-xxs tracking-wide px-2 py-2"},z={class:"text-left px-2 whitespace-nowrap uppercase text-gray-500 text-xxs tracking-wide px-2 py-2"},H={class:"text-left px-2 whitespace-nowrap uppercase text-gray-500 text-xxs tracking-wide px-2 py-2"},$={class:"text-left px-2 whitespace-nowrap uppercase text-gray-500 text-xxs tracking-wide px-2 py-2"},R={class:"text-left px-2 whitespace-nowrap uppercase text-gray-500 text-xxs tracking-wide px-2 py-2"},U={class:"px-2 py-2 border-t border-gray-100 dark:border-gray-700 whitespace-nowrap cursor-pointer dark:bg-gray-800 group-hover:bg-gray-50 dark:group-hover:bg-gray-900"},Y={class:"px-2 py-2 border-t border-gray-100 dark:border-gray-700 whitespace-nowrap cursor-pointer dark:bg-gray-800 group-hover:bg-gray-50 dark:group-hover:bg-gray-900"},J={class:"px-2 py-2 border-t border-gray-100 dark:border-gray-700 whitespace-nowrap cursor-pointer dark:bg-gray-800 group-hover:bg-gray-50 dark:group-hover:bg-gray-900"},K={class:"px-2 py-2 border-t border-gray-100 dark:border-gray-700 whitespace-nowrap cursor-pointer dark:bg-gray-800 group-hover:bg-gray-50 dark:group-hover:bg-gray-900"},Q={class:"px-2 py-2 border-t border-gray-100 dark:border-gray-700 whitespace-nowrap cursor-pointer dark:bg-gray-800 group-hover:bg-gray-50 dark:group-hover:bg-gray-900"},W={class:"px-2 py-2 border-t border-gray-100 dark:border-gray-700 whitespace-nowrap cursor-pointer dark:bg-gray-800 group-hover:bg-gray-50 dark:group-hover:bg-gray-900"};const X={props:{backupStatuses:{required:!0,type:Array}}};function ee(e,t,r,n,o,a,i){try{var c=e[a](i),l=c.value}catch(e){return void r(e)}c.done?t(l):Promise.resolve(l).then(n,o)}const te={inheritAttrs:!1,components:{Backups:(0,q.Z)(A,[["render",function(e,t,r,o,a,i){var c=(0,n.resolveComponent)("SelectControl"),l=(0,n.resolveComponent)("backup"),s=(0,n.resolveComponent)("ModalHeader"),u=(0,n.resolveComponent)("ModalContent"),d=(0,n.resolveComponent)("DeleteResourceModal");return(0,n.openBlock)(),(0,n.createElementBlock)("div",null,[r.disks.length>1?((0,n.openBlock)(),(0,n.createElementBlock)("div",g,[(0,n.createVNode)(c,{class:"w-full md:w-1/5",size:"lg",options:i.getDiscs(),value:r.activeDisk,onInput:t[0]||(t[0]=function(t){return e.$emit("update:activeDisk",t.target.value)})},null,8,["options","value"])])):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("div",v,[(0,n.createElementVNode)("table",y,[(0,n.createElementVNode)("thead",k,[(0,n.createElementVNode)("tr",null,[(0,n.createElementVNode)("th",m,(0,n.toDisplayString)(e.__("Path")),1),(0,n.createElementVNode)("th",b,(0,n.toDisplayString)(e.__("Created at")),1),(0,n.createElementVNode)("th",w,(0,n.toDisplayString)(e.__("Size")),1),x])]),(0,n.createElementVNode)("tbody",null,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(r.backups,(function(e){return(0,n.openBlock)(),(0,n.createBlock)(l,(0,n.mergeProps)(e,{disk:r.activeDisk,deletable:r.backups.length>1,deleting:!a.deleteModalOpen&&a.deletingBackup&&e.path===a.deletingBackup.path,key:e.id,onDelete:function(t){return i.openDeleteModal(e)}}),null,16,["disk","deletable","deleting","onDelete"])})),128)),0===r.backups.length?((0,n.openBlock)(),(0,n.createElementBlock)("tr",N,[(0,n.createElementVNode)("td",_,(0,n.toDisplayString)(e.__("No backups present")),1)])):(0,n.createCommentVNode)("",!0)])])]),(0,n.createVNode)(d,{mode:"delete",show:a.deleteModalOpen,onClose:i.closeDeleteModal,onConfirm:i.confirmDelete},{default:(0,n.withCtx)((function(){return[(0,n.createVNode)(s,{textContent:(0,n.toDisplayString)(e.__("Delete backup"))},null,8,["textContent"]),(0,n.createVNode)(u,null,{default:(0,n.withCtx)((function(){return[(0,n.createElementVNode)("p",{class:"leading-normal",textContent:(0,n.toDisplayString)(e.__("Are you sure you want to delete the backup created at :date ?",{date:a.deletingBackup.date}))},null,8,E)]})),_:1})]})),_:1},8,["show","onClose","onConfirm"])])}]]),BackupStatuses:(0,q.Z)(X,[["render",function(e,t,r,o,a,i){var c=(0,n.resolveComponent)("icon");return(0,n.openBlock)(),(0,n.createElementBlock)("table",F,[(0,n.createElementVNode)("thead",I,[(0,n.createElementVNode)("tr",null,[(0,n.createElementVNode)("th",Z,(0,n.toDisplayString)(e.__("Name")),1),(0,n.createElementVNode)("th",G,(0,n.toDisplayString)(e.__("Disk")),1),(0,n.createElementVNode)("th",z,(0,n.toDisplayString)(e.__("Healthy")),1),(0,n.createElementVNode)("th",H,(0,n.toDisplayString)(e.__("Amount of backups")),1),(0,n.createElementVNode)("th",$,(0,n.toDisplayString)(e.__("Newest backup")),1),(0,n.createElementVNode)("th",R,(0,n.toDisplayString)(e.__("Used Storage")),1)])]),(0,n.createElementVNode)("tbody",null,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(r.backupStatuses,(function(t){return(0,n.openBlock)(),(0,n.createElementBlock)("tr",{key:t.disk},[(0,n.createElementVNode)("td",U,(0,n.toDisplayString)(e.__(t.name)),1),(0,n.createElementVNode)("td",Y,(0,n.toDisplayString)(e.__(t.disk)),1),(0,n.createElementVNode)("td",J,[(0,n.createVNode)(c,{class:(0,n.normalizeClass)(t.healthy?"text-green-500":"text-red-500"),type:t.healthy?"check-circle":"x-circle","view-box":"0 0 24 24",width:"20",height:"20"},null,8,["class","type"])]),(0,n.createElementVNode)("td",K,(0,n.toDisplayString)(t.amount),1),(0,n.createElementVNode)("td",Q,(0,n.toDisplayString)(t.newest),1),(0,n.createElementVNode)("td",W,(0,n.toDisplayString)(t.usedStorage),1)])})),128))])])}]])},computed:{disks:function(){return this.backupStatuses.map((function(e){return e.disk}))}},data:function(){return{activeDisk:null,activeDiskBackups:[],backupStatuses:[],initialLoading:!0,modalVisibility:!1,loading:!0,poller:null}},created:function(){var e,t=this;return(e=s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.initialLoading=!1,e.next=3,t.updateBackupStatuses();case 3:return e.next=5,t.updateActiveDiskBackups();case 5:t.loading=!1,t.startPolling();case 7:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function i(e){ee(a,n,o,i,c,"next",e)}function c(e){ee(a,n,o,i,c,"throw",e)}i(void 0)}))})()},beforeUnmount:function(){this.poller&&window.clearInterval(this.poller)},methods:{updateBackupStatuses:function(){var e=this;return u().then((function(t){e.backupStatuses=t,e.activeDisk||(e.activeDisk=t[0].disk)}))},updateActiveDiskBackups:function(){var e=this;if(this.activeDisk)return d(this.activeDisk).then((function(t){e.activeDiskBackups=t}))},createBackup:function(){return Nova.success(this.__("Creating a new backup in the background...")),p()},createPartialBackup:function(e){return Nova.success(this.__("Creating a new backup in the background...")+" ("+e+")"),this.$refs.backupDropdownMenu.delayedHideMenu(),h(e)},deleteBackup:function(e){var t=e.disk,r=e.path;return f({disk:t,path:r})},startPolling:function(){var e=this;Nova.config("nova_backup_tool").polling&&(this.poller=window.setInterval((function(){e.modalVisibility||(e.updateBackupStatuses(),e.updateActiveDiskBackups())}),1e3*Nova.config("nova_backup_tool").polling_interval))},setModalVisibility:function(e){this.modalVisibility=e}}},re=(0,q.Z)(te,[["render",function(e,t,r,l,s,u){var d=(0,n.resolveComponent)("Head"),p=(0,n.resolveComponent)("Heading"),h=(0,n.resolveComponent)("DefaultButton"),f=(0,n.resolveComponent)("icon"),g=(0,n.resolveComponent)("DropdownTrigger"),v=(0,n.resolveComponent)("DropdownMenu"),y=(0,n.resolveComponent)("Dropdown"),k=(0,n.resolveComponent)("backup-statuses"),m=(0,n.resolveComponent)("LoadingCard"),b=(0,n.resolveComponent)("backups"),w=(0,n.resolveComponent)("LoadingView");return(0,n.openBlock)(),(0,n.createBlock)(w,{loading:e.initialLoading},{default:(0,n.withCtx)((function(){return[(0,n.createVNode)(d,{title:e.__("Backups")},null,8,["title"]),(0,n.createElementVNode)("div",o,[(0,n.createVNode)(p,null,{default:(0,n.withCtx)((function(){return[(0,n.createTextVNode)((0,n.toDisplayString)(e.__("Backups")),1)]})),_:1}),(0,n.createVNode)(h,{onClick:u.createBackup},{default:(0,n.withCtx)((function(){return[(0,n.createTextVNode)((0,n.toDisplayString)(e.__("Create Backup")),1)]})),_:1},8,["onClick"]),(0,n.createVNode)(y,{dusk:"select-all-dropdown",ref:"backupDropdownMenu"},{menu:(0,n.withCtx)((function(){return[(0,n.createVNode)(v,{slot:"menu",direction:"rtl",width:"250"},{default:(0,n.withCtx)((function(){return[(0,n.createElementVNode)("ul",i,[(0,n.createElementVNode)("li",null,[(0,n.createElementVNode)("a",{class:"block p-3 text-90 hover:bg-30 cursor-pointer",onClick:t[0]||(t[0]=(0,n.withModifiers)((function(e){return u.createPartialBackup("only-db")}),["prevent"]))},(0,n.toDisplayString)(e.__("Create database backup")),1)]),(0,n.createElementVNode)("li",null,[(0,n.createElementVNode)("a",{class:"block p-3 text-90 hover:bg-30 cursor-pointer",onClick:t[1]||(t[1]=(0,n.withModifiers)((function(e){return u.createPartialBackup("only-files")}),["prevent"]))},(0,n.toDisplayString)(e.__("Create files backup")),1)])])]})),_:1})]})),default:(0,n.withCtx)((function(){return[(0,n.createVNode)(g,{"slot-scope":"{ toggle }","show-arrow":!1,handleClick:e.toggle,class:"mr-3"},{default:(0,n.withCtx)((function(){return[(0,n.createElementVNode)("button",a,[(0,n.createVNode)(f,{type:"menu","view-box":"0 0 24 24",width:"20",height:"20"})])]})),_:1},8,["handleClick"])]})),_:1},512)]),(0,n.createVNode)(m,{loading:e.loading,class:"mb-6"},{default:(0,n.withCtx)((function(){return[(0,n.createElementVNode)("div",c,[(0,n.createVNode)(k,{"backup-statuses":e.backupStatuses},null,8,["backup-statuses"])])]})),_:1},8,["loading"]),(0,n.createVNode)(m,{loading:e.loading},{default:(0,n.withCtx)((function(){return[e.activeDisk?((0,n.openBlock)(),(0,n.createBlock)(b,{key:0,disks:u.disks,backups:e.activeDiskBackups,"active-disk":e.activeDisk,onDelete:u.deleteBackup,onSetModalVisibility:u.setModalVisibility},null,8,["disks","backups","active-disk","onDelete","onSetModalVisibility"])):(0,n.createCommentVNode)("",!0)]})),_:1},8,["loading"])]})),_:1},8,["loading"])}]])}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={id:n,exports:{}};return e[n](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Nova.booting((function(e){Nova.inertia("BackupTool",r(378).Z)}))})(); \ No newline at end of file +(()=>{var e={757:(e,t,r)=>{e.exports=r(666)},887:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(645),o=r.n(n)()((function(e){return e[1]}));o.push([e.id,".is-deleting td[data-v-2e0b6ff6]{color:var(--60)}",""]);const a=o},645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=e(t);return t[2]?"@media ".concat(t[2]," {").concat(r,"}"):r})).join("")},t.i=function(e,r,n){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(n)for(var a=0;a{var t=function(e){"use strict";var t,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof v?t:v,a=Object.create(o.prototype),i=new D(n||[]);return a._invoke=function(e,t,r){var n=d;return function(o,a){if(n===h)throw new Error("Generator is already running");if(n===f){if("throw"===o)throw a;return S()}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=V(i,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===d)throw n=f,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var s=u(e,t,r);if("normal"===s.type){if(n=r.done?f:p,s.arg===g)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=f,r.method="throw",r.arg=s.arg)}}}(e,r,i),a}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d="suspendedStart",p="suspendedYield",h="executing",f="completed",g={};function v(){}function y(){}function k(){}var m={};s(m,a,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(B([])));w&&w!==r&&n.call(w,a)&&(m=w);var x=k.prototype=v.prototype=Object.create(m);function N(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function r(o,a,i,c){var s=u(e[o],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,i,c)}),(function(e){r("throw",e,i,c)})):t.resolve(d).then((function(e){l.value=e,i(l)}),(function(e){return r("throw",e,i,c)}))}c(s.arg)}var o;this._invoke=function(e,n){function a(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(a,a):a()}}function V(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,V(e,r),"throw"===r.method))return g;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var o=u(n,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function B(e){if(e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(s&&l){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:B(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},379:(e,t,r)=>{"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},a=function(){var e={};return function(t){if(void 0===e[t]){var r=document.querySelector(t);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}e[t]=r}return e[t]}}(),i=[];function c(e){for(var t=-1,r=0;r{"use strict";t.Z=(e,t)=>{const r=e.__vccOpts||e;for(const[e,n]of t)r[e]=n;return r}},42:(e,t,r)=>{"use strict";r.d(t,{Z:()=>te});const n=Vue;var o={class:"flex mb-6 items-center justify-between"},a={class:"flex items-center justify-end space-x-2"},i={class:"overflow-hidden overflow-x-auto relative rounded-lg"};var c=r(757),s=r.n(c);const l=function(){return Nova.request().get("/nova-vendor/spatie/backup-tool/backup-statuses").then((function(e){return e.data}))},u=function(e){return Nova.request().get("/nova-vendor/spatie/backup-tool/backups?disk=".concat(e)).then((function(e){return e.data}))},d=function(){return Nova.request().post("/nova-vendor/spatie/backup-tool/backups")},p=function(e){return Nova.request().post("/nova-vendor/spatie/backup-tool/backups",{option:e})},h=function(e){var t=e.disk,r=e.path;return Nova.request().delete("/nova-vendor/spatie/backup-tool/backups",{params:{disk:t,path:r}})};var f={key:0,class:"p-3 flex items-center"},g={class:"overflow-hidden overflow-x-auto relative rounded-lg"},v={cellpadding:"0",cellspacing:"0",class:"table-default w-full"},y={class:"bg-gray-50 dark:bg-gray-800"},k={class:"text-left px-2 whitespace-nowrap uppercase text-gray-500 text-xxs tracking-wide px-2 py-2"},m={class:"text-left px-2 whitespace-nowrap uppercase text-gray-500 text-xxs tracking-wide px-2 py-2"},b={class:"text-left px-2 whitespace-nowrap uppercase text-gray-500 text-xxs tracking-wide px-2 py-2"},w=(0,n.createElementVNode)("th",null,null,-1),x={key:0},N={class:"text-center px-2 py-2",colspan:"4"},_=["textContent"];var V={class:"px-2 py-2 border-t border-gray-100 dark:border-gray-700 whitespace-nowrap cursor-pointer dark:bg-gray-800 group-hover:bg-gray-50 dark:group-hover:bg-gray-900"},C={class:"px-2 py-2 border-t border-gray-100 dark:border-gray-700 whitespace-nowrap cursor-pointer dark:bg-gray-800 group-hover:bg-gray-50 dark:group-hover:bg-gray-900"},E={class:"px-2 py-2 border-t border-gray-100 dark:border-gray-700 whitespace-nowrap cursor-pointer dark:bg-gray-800 group-hover:bg-gray-50 dark:group-hover:bg-gray-900"},D={class:"px-2 py-2 border-t border-gray-100 dark:border-gray-700 whitespace-nowrap cursor-pointer dark:bg-gray-800 group-hover:bg-gray-50 dark:group-hover:bg-gray-900 text-right"},B=["href","title"],S=["title","disabled"];const L={props:{date:{required:!0},path:{required:!0},size:{required:!0},disk:{required:!0},deletable:{required:!0},deleting:{required:!0}},computed:{downloadUrl:function(){return"".concat("/nova-vendor/spatie/backup-tool/download-backup","?disk=").concat(this.disk,"&path=").concat(this.path)}}};var M=r(379),O=r.n(M),j=r(887),T={insert:"head",singleton:!1};O()(j.Z,T);j.Z.locals;var P=r(744);const q={emits:["setModalVisibility","delete"],props:{disks:{required:!0,type:Array},activeDisk:{required:!0,type:String},backups:{required:!0,type:Array}},data:function(){return{deletingBackup:null,deleteModalOpen:!1}},components:{Backup:(0,P.Z)(L,[["render",function(e,t,r,o,a,i){var c=(0,n.resolveComponent)("icon");return(0,n.openBlock)(),(0,n.createElementBlock)("tr",{class:(0,n.normalizeClass)({"is-deleting":r.deleting})},[(0,n.createElementVNode)("td",V,(0,n.toDisplayString)(r.path),1),(0,n.createElementVNode)("td",C,(0,n.toDisplayString)(r.date),1),(0,n.createElementVNode)("td",E,(0,n.toDisplayString)(r.size),1),(0,n.createElementVNode)("td",D,[(0,n.createElementVNode)("a",{href:i.downloadUrl,target:"_blank",rel:"noopener nofollow",title:e.__("Download"),class:"appearance-none cursor-pointer text-70 hover:text-primary mr-3"},[(0,n.createVNode)(c,{type:"download","view-box":"0 0 24 24",width:"20",height:"20"})],8,B),(0,n.createElementVNode)("button",{title:e.__("Delete"),class:(0,n.normalizeClass)(["appearance-none mr-3",r.deletable?"text-70 hover:text-primary":"cursor-default text-40"]),disabled:!r.deletable,onClick:t[0]||(t[0]=(0,n.withModifiers)((function(t){return e.$emit("delete")}),["prevent"]))},[(0,n.createVNode)(c,{type:"trash","view-box":"0 0 24 24",width:"20",height:"20"})],10,S)])],2)}],["__scopeId","data-v-2e0b6ff6"]])},methods:{getDiscs:function(){return this.disks.map((function(e){return{value:e,label:e}}))},openDeleteModal:function(e){this.$emit("setModalVisibility",!0),this.deleteModalOpen=!0,this.deletingBackup=e},closeDeleteModal:function(){this.$emit("setModalVisibility",!1),this.deleteModalOpen=!1,this.deletingBackup=null},confirmDelete:function(){this.$emit("setModalVisibility",!1),this.deleteModalOpen=!1,this.$emit("delete",{disk:this.activeDisk,path:this.deletingBackup.path})}}};var A={cellpadding:"0",cellspacing:"0",class:"table-default w-full"},I={class:"bg-gray-50 dark:bg-gray-800 rounded-t-lg"},F={class:"text-left px-2 whitespace-nowrap uppercase text-gray-500 text-xxs tracking-wide px-2 py-2"},Z={class:"text-left px-2 whitespace-nowrap uppercase text-gray-500 text-xxs tracking-wide px-2 py-2"},z={class:"text-left px-2 whitespace-nowrap uppercase text-gray-500 text-xxs tracking-wide px-2 py-2"},G={class:"text-left px-2 whitespace-nowrap uppercase text-gray-500 text-xxs tracking-wide px-2 py-2"},H={class:"text-left px-2 whitespace-nowrap uppercase text-gray-500 text-xxs tracking-wide px-2 py-2"},$={class:"text-left px-2 whitespace-nowrap uppercase text-gray-500 text-xxs tracking-wide px-2 py-2"},R={class:"px-2 py-2 border-t border-gray-100 dark:border-gray-700 whitespace-nowrap cursor-pointer dark:bg-gray-800 group-hover:bg-gray-50 dark:group-hover:bg-gray-900"},U={class:"px-2 py-2 border-t border-gray-100 dark:border-gray-700 whitespace-nowrap cursor-pointer dark:bg-gray-800 group-hover:bg-gray-50 dark:group-hover:bg-gray-900"},Y={class:"px-2 py-2 border-t border-gray-100 dark:border-gray-700 whitespace-nowrap cursor-pointer dark:bg-gray-800 group-hover:bg-gray-50 dark:group-hover:bg-gray-900"},J={class:"px-2 py-2 border-t border-gray-100 dark:border-gray-700 whitespace-nowrap cursor-pointer dark:bg-gray-800 group-hover:bg-gray-50 dark:group-hover:bg-gray-900"},K={class:"px-2 py-2 border-t border-gray-100 dark:border-gray-700 whitespace-nowrap cursor-pointer dark:bg-gray-800 group-hover:bg-gray-50 dark:group-hover:bg-gray-900"},Q={class:"px-2 py-2 border-t border-gray-100 dark:border-gray-700 whitespace-nowrap cursor-pointer dark:bg-gray-800 group-hover:bg-gray-50 dark:group-hover:bg-gray-900"};const W={props:{backupStatuses:{required:!0,type:Array}}};function X(e,t,r,n,o,a,i){try{var c=e[a](i),s=c.value}catch(e){return void r(e)}c.done?t(s):Promise.resolve(s).then(n,o)}const ee={inheritAttrs:!1,components:{Backups:(0,P.Z)(q,[["render",function(e,t,r,o,a,i){var c=(0,n.resolveComponent)("SelectControl"),s=(0,n.resolveComponent)("backup"),l=(0,n.resolveComponent)("ModalHeader"),u=(0,n.resolveComponent)("ModalContent"),d=(0,n.resolveComponent)("DeleteResourceModal");return(0,n.openBlock)(),(0,n.createElementBlock)("div",null,[r.disks.length>1?((0,n.openBlock)(),(0,n.createElementBlock)("div",f,[(0,n.createVNode)(c,{class:"w-full md:w-1/5",size:"lg",options:i.getDiscs(),value:r.activeDisk,onInput:t[0]||(t[0]=function(t){return e.$emit("update:activeDisk",t.target.value)})},null,8,["options","value"])])):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("div",g,[(0,n.createElementVNode)("table",v,[(0,n.createElementVNode)("thead",y,[(0,n.createElementVNode)("tr",null,[(0,n.createElementVNode)("th",k,(0,n.toDisplayString)(e.__("Path")),1),(0,n.createElementVNode)("th",m,(0,n.toDisplayString)(e.__("Created at")),1),(0,n.createElementVNode)("th",b,(0,n.toDisplayString)(e.__("Size")),1),w])]),(0,n.createElementVNode)("tbody",null,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(r.backups,(function(e){return(0,n.openBlock)(),(0,n.createBlock)(s,(0,n.mergeProps)(e,{disk:r.activeDisk,deletable:r.backups.length>1,deleting:!a.deleteModalOpen&&a.deletingBackup&&e.path===a.deletingBackup.path,key:e.id,onDelete:function(t){return i.openDeleteModal(e)}}),null,16,["disk","deletable","deleting","onDelete"])})),128)),0===r.backups.length?((0,n.openBlock)(),(0,n.createElementBlock)("tr",x,[(0,n.createElementVNode)("td",N,(0,n.toDisplayString)(e.__("No backups present")),1)])):(0,n.createCommentVNode)("",!0)])])]),(0,n.createVNode)(d,{mode:"delete",show:a.deleteModalOpen,onClose:i.closeDeleteModal,onConfirm:i.confirmDelete},{default:(0,n.withCtx)((function(){return[(0,n.createVNode)(l,{textContent:(0,n.toDisplayString)(e.__("Delete backup"))},null,8,["textContent"]),(0,n.createVNode)(u,null,{default:(0,n.withCtx)((function(){return[(0,n.createElementVNode)("p",{class:"leading-normal",textContent:(0,n.toDisplayString)(e.__("Are you sure you want to delete the backup created at :date ?",{date:a.deletingBackup.date}))},null,8,_)]})),_:1})]})),_:1},8,["show","onClose","onConfirm"])])}]]),BackupStatuses:(0,P.Z)(W,[["render",function(e,t,r,o,a,i){var c=(0,n.resolveComponent)("icon");return(0,n.openBlock)(),(0,n.createElementBlock)("table",A,[(0,n.createElementVNode)("thead",I,[(0,n.createElementVNode)("tr",null,[(0,n.createElementVNode)("th",F,(0,n.toDisplayString)(e.__("Name")),1),(0,n.createElementVNode)("th",Z,(0,n.toDisplayString)(e.__("Disk")),1),(0,n.createElementVNode)("th",z,(0,n.toDisplayString)(e.__("Healthy")),1),(0,n.createElementVNode)("th",G,(0,n.toDisplayString)(e.__("Amount of backups")),1),(0,n.createElementVNode)("th",H,(0,n.toDisplayString)(e.__("Newest backup")),1),(0,n.createElementVNode)("th",$,(0,n.toDisplayString)(e.__("Used Storage")),1)])]),(0,n.createElementVNode)("tbody",null,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(r.backupStatuses,(function(t){return(0,n.openBlock)(),(0,n.createElementBlock)("tr",{key:t.disk},[(0,n.createElementVNode)("td",R,(0,n.toDisplayString)(e.__(t.name)),1),(0,n.createElementVNode)("td",U,(0,n.toDisplayString)(e.__(t.disk)),1),(0,n.createElementVNode)("td",Y,[(0,n.createVNode)(c,{class:(0,n.normalizeClass)(t.healthy?"text-green-500":"text-red-500"),type:t.healthy?"check-circle":"x-circle","view-box":"0 0 24 24",width:"20",height:"20"},null,8,["class","type"])]),(0,n.createElementVNode)("td",J,(0,n.toDisplayString)(t.amount),1),(0,n.createElementVNode)("td",K,(0,n.toDisplayString)(t.newest),1),(0,n.createElementVNode)("td",Q,(0,n.toDisplayString)(t.usedStorage),1)])})),128))])])}]])},computed:{disks:function(){return this.backupStatuses.map((function(e){return e.disk}))}},data:function(){return{activeDisk:null,activeDiskBackups:[],backupStatuses:[],initialLoading:!0,modalVisibility:!1,loading:!0,poller:null}},created:function(){var e,t=this;return(e=s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.initialLoading=!1,e.next=3,t.updateBackupStatuses();case 3:return e.next=5,t.updateActiveDiskBackups();case 5:t.loading=!1,t.startPolling();case 7:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function i(e){X(a,n,o,i,c,"next",e)}function c(e){X(a,n,o,i,c,"throw",e)}i(void 0)}))})()},beforeUnmount:function(){this.poller&&window.clearInterval(this.poller)},methods:{updateBackupStatuses:function(){var e=this;return l().then((function(t){e.backupStatuses=t,e.activeDisk||(e.activeDisk=t[0].disk)}))},updateActiveDiskBackups:function(){var e=this;if(this.activeDisk)return u(this.activeDisk).then((function(t){e.activeDiskBackups=t}))},createBackup:function(){return Nova.success(this.__("Creating a new backup in the background...")),d()},createPartialBackup:function(e){return Nova.success(this.__("Creating a new backup in the background...")+" ("+e+")"),this.$refs.backupDropdownMenu.delayedHideMenu(),p(e)},deleteBackup:function(e){var t=e.disk,r=e.path;return h({disk:t,path:r})},startPolling:function(){var e=this;Nova.config("nova_backup_tool").polling&&(this.poller=window.setInterval((function(){e.modalVisibility||(e.updateBackupStatuses(),e.updateActiveDiskBackups())}),1e3*Nova.config("nova_backup_tool").polling_interval))},setModalVisibility:function(e){this.modalVisibility=e}}},te=(0,P.Z)(ee,[["render",function(e,t,r,c,s,l){var u=(0,n.resolveComponent)("Head"),d=(0,n.resolveComponent)("Heading"),p=(0,n.resolveComponent)("Icon"),h=(0,n.resolveComponent)("BasicButton"),f=(0,n.resolveComponent)("DropdownTrigger"),g=(0,n.resolveComponent)("DropdownMenuItem"),v=(0,n.resolveComponent)("DropdownMenu"),y=(0,n.resolveComponent)("Dropdown"),k=(0,n.resolveComponent)("DefaultButton"),m=(0,n.resolveComponent)("backup-statuses"),b=(0,n.resolveComponent)("LoadingCard"),w=(0,n.resolveComponent)("backups"),x=(0,n.resolveComponent)("LoadingView");return(0,n.openBlock)(),(0,n.createBlock)(x,{loading:e.initialLoading},{default:(0,n.withCtx)((function(){return[(0,n.createVNode)(u,{title:e.__("Backups")},null,8,["title"]),(0,n.createElementVNode)("div",o,[(0,n.createVNode)(d,null,{default:(0,n.withCtx)((function(){return[(0,n.createTextVNode)((0,n.toDisplayString)(e.__("Backups")),1)]})),_:1}),(0,n.createElementVNode)("div",a,[(0,n.createVNode)(y,{dusk:"select-all-dropdown",ref:"backupDropdownMenu"},{menu:(0,n.withCtx)((function(){return[(0,n.createVNode)(v,{slot:"menu",direction:"rtl",width:"250"},{default:(0,n.withCtx)((function(){return[(0,n.createVNode)(g,{as:"button",onClick:t[0]||(t[0]=(0,n.withModifiers)((function(e){return l.createPartialBackup("only-db")}),["prevent"]))},{default:(0,n.withCtx)((function(){return[(0,n.createTextVNode)((0,n.toDisplayString)(e.__("Create database backup")),1)]})),_:1}),(0,n.createVNode)(g,{as:"button",onClick:t[1]||(t[1]=(0,n.withModifiers)((function(e){return l.createPartialBackup("only-files")}),["prevent"]))},{default:(0,n.withCtx)((function(){return[(0,n.createTextVNode)((0,n.toDisplayString)(e.__("Create files backup")),1)]})),_:1})]})),_:1})]})),default:(0,n.withCtx)((function(){return[(0,n.createVNode)(f,{"show-arrow":!1,class:"rounded hover:bg-gray-200 dark:hover:bg-gray-800 focus:outline-none focus:ring"},{default:(0,n.withCtx)((function(){return[(0,n.createVNode)(h,{component:"span"},{default:(0,n.withCtx)((function(){return[(0,n.createVNode)(p,{solid:!0,type:"dots-horizontal"})]})),_:1})]})),_:1})]})),_:1},512),(0,n.createVNode)(k,{onClick:l.createBackup},{default:(0,n.withCtx)((function(){return[(0,n.createTextVNode)((0,n.toDisplayString)(e.__("Create Backup")),1)]})),_:1},8,["onClick"])])]),(0,n.createVNode)(b,{loading:e.loading,class:"mb-6"},{default:(0,n.withCtx)((function(){return[(0,n.createElementVNode)("div",i,[(0,n.createVNode)(m,{"backup-statuses":e.backupStatuses},null,8,["backup-statuses"])])]})),_:1},8,["loading"]),(0,n.createVNode)(b,{loading:e.loading},{default:(0,n.withCtx)((function(){return[e.activeDisk?((0,n.openBlock)(),(0,n.createBlock)(w,{key:0,disks:l.disks,backups:e.activeDiskBackups,"active-disk":e.activeDisk,onDelete:l.deleteBackup,onSetModalVisibility:l.setModalVisibility},null,8,["disks","backups","active-disk","onDelete","onSetModalVisibility"])):(0,n.createCommentVNode)("",!0)]})),_:1},8,["loading"])]})),_:1},8,["loading"])}]])}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={id:n,exports:{}};return e[n](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Nova.booting((function(e){Nova.inertia("BackupTool",r(42).Z)}))})(); \ No newline at end of file diff --git a/resources/js/pages/BackupTool.vue b/resources/js/pages/BackupTool.vue index a530923..36bd3ef 100644 --- a/resources/js/pages/BackupTool.vue +++ b/resources/js/pages/BackupTool.vue @@ -1,54 +1,46 @@