{"version":3,"sources":["webpack:///./src/mixins/createSnapshot.js","webpack:///./src/modules/snapshot/components/TheSnapshotFileStatus.vue","webpack:///src/modules/snapshot/components/TheSnapshotFileStatus.vue","webpack:///./src/modules/snapshot/components/TheSnapshotFileStatus.vue?fb06","webpack:///./src/modules/snapshot/components/TheSnapshotFileStatus.vue?4093","webpack:///./src/mixins/snapshot.js","webpack:///./node_modules/core-js/modules/web.url.to-json.js"],"names":["createQuickAndDetailedSnapshots","data","snapshotCreationLoading","snapshotCreationErrorContent","snapshotCreationError","methods","addSnapshot","newSnapshotType","postBody","longId","shortId","description","this","$store","dispatch","snackBarText","snackBarTimeout","snackBarIcon","snapshotTypes","QUICK_SNAPSHOT","today","Date","currentDate","toJSON","slice","currentTime","getHours","getMinutes","getSeconds","datetimeLongId","datetimeShortId","replace","long_id","short_id","snapshot_type","DETAILED_SNAPSHOT","userTasksRoute","$router","resolve","name","href","apiURL","$route","params","iid","$axios","post","then","push","oid","sid","snid","catch","error","response","reason","includes","finally","attrs","_vm","scopedSlots","key","fn","staticClass","mergedOptions","_v","currentFileStatus","_c","staticStyle","staticRenderFns","mixins","props","fileData","options","closeDelay","defaultOptions","icon","created","relativeFileModificationDate","lastModified","now","component","snapshotEnums","AUTO_SNAPSHOT","ARCHIVED_SNAPSHOT","RESTED_SNAPSHOT","fileStatusTypes","SAVED_AND_UNCHANGED","SAVED_AND_CHANGED","UNSAVED","STATUS_UNAVAILABLE","snapshotBackupStatusOptions","CREATING_SNAPSHOT","getSnapshotStatusIcon","snapshotData","backup_location","getSnapshotStatusDescription","filesystem_prefix","file","status","success","in_last_snapshot","changed","$","call","target","proto","enumerable","URL","prototype","toString"],"mappings":"yPAAaA,EAAkC,CAC3CC,KAAI,WACA,MAAO,CACHC,yBAAyB,EACzBC,6BAA8B,8EAC9BC,uBAAuB,IAG/BC,QAAS,CACLC,YAAa,SAAUC,GAAoE,IAOnFC,EAPmF,OAAnDC,EAAS,UAAH,6CAAG,KAAMC,EAAU,UAAH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SAAUlG","file":"static/js/chunk-6fa76e61.992f467a.js","sourcesContent":["export const createQuickAndDetailedSnapshots = {\n data() {\n return {\n snapshotCreationLoading: false,\n snapshotCreationErrorContent: 'An error has occurred while creating your snapshot, please try again later.',\n snapshotCreationError: false\n }\n },\n methods: {\n addSnapshot: function (newSnapshotType, longId = null, shortId = null, description = null) {\n this.snapshotCreationError = false\n this.$store.dispatch('showSnackBar', {\n snackBarText: 'Saving snapshot, please wait..',\n snackBarTimeout: 10000,\n snackBarIcon: 'info'\n })\n let postBody\n if (newSnapshotType === this.snapshotTypes.QUICK_SNAPSHOT) {\n const today = new Date()\n const currentDate = today.toJSON().slice(0, 10)\n const currentTime = ('0' + today.getHours()).slice(-2) + ':' + ('0' + today.getMinutes()).slice(-2) + ':' + ('0' + today.getSeconds()).slice(-2)\n const datetimeLongId = currentDate + ' / ' + currentTime\n const datetimeShortId = datetimeLongId.replace(/\\/+/g, '_').replace(/\\s+/g, '').replace('-', '_').replace(/:/g, '_')\n postBody = {\n description: 'Quick snapshot - no description available',\n long_id: 'Quick snapshot ' + datetimeLongId,\n short_id: datetimeShortId,\n snapshot_type: this.snapshotTypes.QUICK_SNAPSHOT\n }\n } else if (newSnapshotType === this.snapshotTypes.DETAILED_SNAPSHOT) {\n this.snapshotCreationLoading = true\n postBody = {\n description,\n long_id: longId,\n short_id: shortId,\n snapshot_type: this.snapshotTypes.DETAILED_SNAPSHOT\n }\n }\n const userTasksRoute = this.$router.resolve({ name: 'user-tasks' }).href\n const apiURL = `/instances/${this.$route.params.iid}/snapshots_async`\n this.$axios\n .post(apiURL, postBody)\n .then(() => {\n this.$store.dispatch('showSnackBar', {\n snackBarText: `Snapshot creation has started, you can track its progress here`,\n snackBarTimeout: 5000,\n snackBarIcon: 'info'\n })\n if (newSnapshotType === this.snapshotTypes.DETAILED_SNAPSHOT) {\n this.$router.push({\n name: 'snapshot-overview',\n params: {\n oid: this.$route.params.oid,\n sid: this.$route.params.sid,\n iid: this.$route.params.iid,\n snid: this.$route.params.snid\n }\n })\n }\n })\n .catch(error => {\n this.$store.dispatch('hideSnackBar')\n if (\n error.response &&\n error.response.data &&\n error.response.data.reason &&\n error.response.data.reason[0].includes('duplicate key value violates unique constraint \"uc_iid_long\"')\n ) {\n this.snapshotCreationError = true\n this.snapshotCreationErrorContent = 'Another snapshot uses the same name you chose for this snapshot, please choose another name'\n } else {\n this.$store.dispatch('showSnackBar', {\n snackBarText: 'Failed to create a snapshot, please try again later.',\n snackBarTimeout: 10000,\n snackBarIcon: 'error'\n })\n }\n })\n .finally(() => {\n this.snapshotCreationLoading = false\n })\n }\n }\n}\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[(_vm.fileData.type !== _vm.nuvolosObjectTypes.FOLDER)?_c('div',{staticStyle:{\"min-width\":\"200px\"}},[_c('v-menu',{attrs:{\"offset-x\":\"\",\"offset-overflow\":\"\",\"right\":\"\",\"open-on-hover\":\"\",\"disabled\":_vm.currentFileStatus(_vm.fileData) === _vm.fileStatusTypes.STATUS_UNAVAILABLE,\"close-delay\":_vm.closeDelay},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on }){return [_c('span',_vm._g({staticClass:\"pr-3\"},on),[(_vm.mergedOptions.icon)?[(_vm.currentFileStatus(_vm.fileData) === _vm.fileStatusTypes.SAVED_AND_UNCHANGED)?_c('v-icon',{staticClass:\"mr-1\",attrs:{\"color\":\"success\",\"small\":\"\"}},[_vm._v(\" fiber_manual_record \")]):(_vm.currentFileStatus(_vm.fileData) === _vm.fileStatusTypes.SAVED_AND_CHANGED)?_c('v-icon',{staticClass:\"mr-1\",attrs:{\"color\":\"info\",\"small\":\"\"}},[_vm._v(\" fiber_manual_record \")]):(_vm.currentFileStatus(_vm.fileData) === _vm.fileStatusTypes.UNSAVED)?_c('v-icon',{staticClass:\"mr-1\",attrs:{\"color\":\"error\",\"small\":\"\"}},[_vm._v(\" fiber_manual_record \")]):(_vm.currentFileStatus(_vm.fileData) === _vm.fileStatusTypes.STATUS_UNAVAILABLE)?_c('v-icon',{staticClass:\"mr-1\",attrs:{\"color\":\"secondary\",\"small\":\"\"}},[_vm._v(\" fiber_manual_record \")]):_vm._e()]:_vm._e(),(_vm.relativeFileModificationDate(_vm.fileData.last_modified_timestamp) === _vm.fileData.last_modified_timestamp)?_c('span',[_vm._v(\" \"+_vm._s(_vm._f(\"dateTimeToHuman\")(_vm.fileData.last_modified_timestamp))+\" \")]):_c('span',[_vm._v(_vm._s(_vm.relativeFileModificationDate(_vm.fileData.last_modified_timestamp)))])],2)]}}],null,false,4077177429)},[_c('v-card',[_c('v-card-text',{staticClass:\"ma-0 pa-0\"},[(_vm.currentFileStatus(_vm.fileData) === _vm.fileStatusTypes.SAVED_AND_UNCHANGED)?_c('v-alert',{staticClass:\"ma-0 secondary--text\",attrs:{\"color\":\"success\",\"border\":\"left\",\"colored-border\":\"\",\"icon\":\"mdi-check-circle\",\"max-width\":\"350\"}},[_c('div',{staticClass:\"d-flex flex-column\"},[_c('span',{staticClass:\"font-weight-bold\"},[_vm._v(\"Unmodified since last snapshot\")]),_c('span',{staticClass:\"subtitle-2\"},[_vm._v(\"This file is in the last immutable snapshot, and has no modifications since then.\")])])]):(_vm.currentFileStatus(_vm.fileData) === _vm.fileStatusTypes.SAVED_AND_CHANGED)?_c('v-alert',{staticClass:\"ma-0 secondary--text\",attrs:{\"color\":\"info\",\"border\":\"left\",\"colored-border\":\"\",\"icon\":\"info\",\"max-width\":\"350\"}},[_c('div',{staticClass:\"d-flex flex-column\"},[_c('span',{staticClass:\"font-weight-bold\"},[_vm._v(\"Modified since last snapshot\")]),_c('span',{staticClass:\"subtitle-2\"},[_vm._v(\" This file is in the last immutable snapshot, but its content or modification timestamp has changed. \")]),_c('v-divider',{staticClass:\"mt-1\",staticStyle:{\"opacity\":\"0.22\"},attrs:{\"color\":\"primary\"}}),_c('div',{staticClass:\"d-flex flex-wrap justify-end\"},[_c('v-btn',{staticClass:\"caption font-weight-bold\",attrs:{\"text\":\"\",\"small\":\"\",\"color\":\"secondary\",\"to\":{\n name: 'snapshot-add-snapshot',\n params: { oid: _vm.$route.params.oid, sid: _vm.$route.params.sid, iid: _vm.$route.params.iid, snid: _vm.$route.params.snid }\n }}},[_c('v-icon',{staticClass:\"mr-1\",attrs:{\"small\":\"\"}},[_vm._v(\"mdi-camera-plus-outline\")]),_vm._v(\" Snapshot all objects \")],1)],1)],1)]):(_vm.currentFileStatus(_vm.fileData) === _vm.fileStatusTypes.UNSAVED)?_c('v-alert',{staticClass:\"ma-0 secondary--text\",attrs:{\"color\":\"error\",\"border\":\"left\",\"colored-border\":\"\",\"icon\":\"error\",\"max-width\":\"350\"}},[_c('div',{staticClass:\"d-flex flex-column\"},[_c('span',{staticClass:\"font-weight-bold\"},[_vm._v(\"Unsnapshotted file\")]),_c('span',{staticClass:\"subtitle-2\"},[_vm._v(\"The file is not in the last immutable snapshot.\")]),_c('v-divider',{staticClass:\"mt-1\",staticStyle:{\"opacity\":\"0.22\"},attrs:{\"color\":\"error\"}}),_c('div',{staticClass:\"d-flex justify-end\"},[_c('v-btn',{staticClass:\"caption font-weight-bold\",attrs:{\"text\":\"\",\"color\":\"secondary\",\"to\":{\n name: 'snapshot-add-snapshot',\n params: { oid: _vm.$route.params.oid, sid: _vm.$route.params.sid, iid: _vm.$route.params.iid, snid: _vm.$route.params.snid }\n }}},[_c('v-icon',{staticClass:\"mr-1\",attrs:{\"small\":\"\"}},[_vm._v(\"mdi-camera-plus-outline\")]),_vm._v(\" Snapshot all objects \")],1)],1)],1)]):_vm._e()],1)],1)],1)],1):_c('div',{staticClass:\"d-flex align-center\",staticStyle:{\"min-width\":\"200px\"}},[_c('v-icon',{staticClass:\"mr-1\",attrs:{\"color\":\"transparent\",\"small\":\"\"}},[_vm._v(\"fiber_manual_record\")]),_c('span',[_vm._v(_vm._s(_vm._f(\"dateTimeToHuman\")(_vm.fileData.last_modified_timestamp)))])],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??ref--13-1!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TheSnapshotFileStatus.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??ref--13-1!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TheSnapshotFileStatus.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TheSnapshotFileStatus.vue?vue&type=template&id=73adc8a4&\"\nimport script from \"./TheSnapshotFileStatus.vue?vue&type=script&lang=js&\"\nexport * from \"./TheSnapshotFileStatus.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","export const snapshotEnums = {\n data() {\n return {\n snapshotTypes: {\n QUICK_SNAPSHOT: 20,\n AUTO_SNAPSHOT: 30,\n DETAILED_SNAPSHOT: 10,\n ARCHIVED_SNAPSHOT: 40,\n RESTED_SNAPSHOT: 50\n },\n fileStatusTypes: {\n SAVED_AND_UNCHANGED: 'SAVED_AND_UNCHANGED',\n SAVED_AND_CHANGED: 'SAVED_AND_CHANGED',\n UNSAVED: 'UNSAVED',\n STATUS_UNAVAILABLE: 'STATUS_UNAVAILABLE'\n },\n snapshotBackupStatusOptions: {\n CREATING_SNAPSHOT: 'creating'\n }\n }\n },\n methods: {\n getSnapshotStatusIcon: function (snapshotData) {\n if (!snapshotData.backup_location) {\n return 'mdi-lock-off'\n } else if (snapshotData.backup_location === this.snapshotBackupStatusOptions.CREATING_SNAPSHOT) {\n return 'mdi-lock-clock'\n } else {\n return 'mdi-lock-check'\n }\n },\n getSnapshotStatusDescription: function (snapshotData) {\n if (!snapshotData.filesystem_prefix && !snapshotData.backup_location) {\n return 'The data for this snapshot can not be located. Please contact support.'\n } else if (snapshotData.filesystem_prefix && !snapshotData.backup_location) {\n return 'This snapshot has no backup.'\n } else if (snapshotData.filesystem_prefix && snapshotData.backup_location === this.snapshotBackupStatusOptions.CREATING_SNAPSHOT) {\n return 'A backup is being created for this snapshot.'\n } else if (snapshotData.filesystem_prefix && snapshotData.backup_location) {\n return 'A backup exists for this snapshot'\n } else if (!snapshotData.filesystem_prefix && snapshotData.backup_location === this.snapshotBackupStatusOptions.CREATING_SNAPSHOT) {\n return 'The data for this snapshot can not be located. Please contact support.'\n } else if (!snapshotData.filesystem_prefix && snapshotData.backup_location) {\n return 'Files in this snapshot are in cold storage. It can take slightly longer to view or download them.'\n }\n },\n currentFileStatus(file) {\n if (file.status) {\n if (file.status.success && file.status.in_last_snapshot && !file.status.changed) {\n return this.fileStatusTypes.SAVED_AND_UNCHANGED\n } else if (file.status.success && file.status.in_last_snapshot && file.status.changed) {\n return this.fileStatusTypes.SAVED_AND_CHANGED\n } else if (file.status.success && !file.status.in_last_snapshot) {\n return this.fileStatusTypes.UNSAVED\n }\n }\n return this.fileStatusTypes.STATUS_UNAVAILABLE\n }\n }\n}\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\n\n// `URL.prototype.toJSON` method\n// https://url.spec.whatwg.org/#dom-url-tojson\n$({ target: 'URL', proto: true, enumerable: true }, {\n toJSON: function toJSON() {\n return call(URL.prototype.toString, this);\n }\n});\n"],"sourceRoot":""}