{"version":3,"sources":["webpack:///./src/views/RentalService/GpuHubService.vue","webpack:///./src/scripts/rentalService/gpuHubService.js","webpack:///./src/scripts/rentalService/gpuHubService.js?80a9","webpack:///./src/views/RentalService/GpuHubService.vue?7775","webpack:///./src/views/RentalService/GpuHubService.vue?dea3"],"names":["render","_vm","this","_c","_self","_setupProxy","staticClass","directives","name","rawName","value","isLoading","expression","attrs","machineList","filter","x","checked","length","machineListRequest","on","processingEvent","_l","element","index","key","class","concat","$machineListStyle","status","padding","staticStyle","style","$machineStatusDotColor","_v","_s","isNotSupport","hardwareFixation","_e","softwareLicenseEnabled","fixedRental","isDisconnectedInternet","formatTime","schedulerMachineShutdownMachineStartAt","schedulerMachineShutdownMachineEnabled","schedulerMachineShutdownMachineTimeRemaining","snsCount","bootReady","$event","event","data","type","$action","OPEN_POPUP_SNAPSHOT_IMAGE","_f","vhdxLength","msgPage","staticRenderFns","require","io","clientappSocketUrl","process","extends","baseRentalService","socket","computed","_objectSpread","mapState","user","state","auth","created","EventBus","$on","serviceType","SERVICE_TYPE","GPUHUB","machineListView","timer","setInterval","autoRefresh","mounted","_this","forceNew","console","log","tryReconnect","emit","id","localStorage","getItem","connect","beforeDestroy","disconnect","clearInterval","methods","_this2","setTimeout","open","err","component"],"mappings":"4JAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAUF,EAAIG,MAAMC,YAAY,OAAOF,EAAG,MAAM,CAACG,YAAY,gEAAgE,CAACH,EAAG,MAAM,CAACI,WAAW,CAAC,CAACC,KAAK,UAAUC,QAAQ,YAAYC,MAAOT,EAAIU,UAAWC,WAAW,cAAcN,YAAY,gCAAgC,CAACH,EAAG,aAAa,CAACU,MAAM,CAAC,eAAiBZ,EAAIa,YAAYC,QAAO,SAACC,GAAC,OAAKA,EAAEC,WAASC,OAAO,mBAAqBjB,EAAIkB,oBAAoBC,GAAG,CAAC,gBAAkBnB,EAAIoB,mBAAoBpB,EAAIa,YAAYI,OAA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AM,SAAAC,GAAK,OAAIA,EAAMC,KAAKF,SAIlCG,QAAO,WACHC,OAASC,IAAI,wBAAyBvE,KAAKmB,iBAC3CnB,KAAKiB,mBAAmBuD,YAAcC,OAAaC,OACnD1E,KAAK2E,kBACL3E,KAAK4E,MAAQC,YAAY7E,KAAK8E,YAAa,MAG/CC,QAAO,WAAG,IAAAC,EAAA,KACNhF,KAAK8D,OAASL,EAAGC,EAAoB,CACjCuB,UAAU,IAadjF,KAAK8D,OAAO5C,GAAG,2BAA2B,SAAC8B,GACvCkC,QAAQC,IAAI,2BAA4BnC,MAE5ChD,KAAK8D,OAAO5C,GAAG,4BAA4B,SAAC8B,GACxCkC,QAAQC,IAAI,4BAA6BnC,MAE7ChD,KAAK8D,OAAO5C,GAAG,gCAAgC,SAAC8B,GAC5CkC,QAAQC,IAAI,gCAAiCnC,MAGjDhD,KAAK8D,OAAO5C,GAAG,QAASlB,KAAKoF,cAC7BpF,KAAK8D,OAAO5C,GAAG,cAAc,SAAC4C,GAC1BkB,EAAKlB,OAAOuB,KAAK,QAAS,CACtBC,GAAIC,aAAaC,QAAQ,eAGjCxF,KAAK8D,OAAO2B,WAGhBC,cAAa,WACT1F,KAAK8D,OAAO6B,aACZC,cAAc5F,KAAK4E,QAGvBiB,QAAS,CAELT,aAAY,WAAG,IAAAU,EAAA,KACXC,YAAW,WACPD,EAAKhC,OAAOL,GAAGuC,MAAK,SAACC,GACbA,GACAH,EAAKV,oBAGd,QCtF2R,I,wBCQtSc,EAAY,eACd,EACApG,EACAyD,GACA,EACA,KACA,WACA,MAIa,aAAA2C,E,2CCnBf","file":"js/chunk-c8acc1a4.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"no-select rental-service-container d-flex flex-row flex-fill\"},[_c('div',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.isLoading),expression:\"isLoading\"}],staticClass:\"d-flex flex-column flex-fill\"},[_c('Controller',{attrs:{\"selectedNumber\":_vm.machineList.filter((x) => x.checked).length,\"machineListRequest\":_vm.machineListRequest},on:{\"processingEvent\":_vm.processingEvent}}),(_vm.machineList.length > 0)?_c('div',{staticClass:\"d-flex flex-row\"},[_c('VuePerfectScrollbar',{staticClass:\"machine-list-view flex-fill p-3 pr-4 pt-2\"},_vm._l((_vm.machineList),function(element,index){return _c('div',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(element.isLoading),expression:\"element.isLoading\"}],key:index,staticClass:\"mt-3\"},[_c('div',{staticClass:\"position-relative\"},[_c('el-card',{class:`${_vm.$machineListStyle[element.status]} ${\n element.checked\n ? 'image-item__checked'\n : 'image-item__unchecked'\n }`,attrs:{\"body-style\":{\n padding: '0.5rem 1rem 1rem 1rem',\n },\"shadow\":\"always\"}},[_c('div',{staticClass:\"d-flex flex-column\"},[_c('div',{staticClass:\"d-flex flex-row justify-content-between align-items-center\"},[_c('div',{staticClass:\"d-flex flex-row align-items-center\",staticStyle:{\"font-family\":\"Montserrat\"}},[_c('div',{staticClass:\"d-flex justify-content-center align-items-center\",class:`${\n element.status === 32773 ||\n element.status === 10\n ? 'blink_me'\n : ''\n }`,staticStyle:{\"border-radius\":\"1rem\",\"height\":\"0.75rem\",\"width\":\"0.75rem\"},style:(`background-color: ${\n _vm.$machineStatusDotColor[\n element.status\n ]\n };`)}),_c('div',{staticClass:\"ml-2\",staticStyle:{\"color\":\"gray\",\"font-size\":\"0.75rem\",\"border-radius\":\"5px\",\"padding\":\"0.25rem 0.75rem\",\"background-color\":\"#eeeeee\",\"border\":\"1px solid #bdbdbd\"}},[_vm._v(\"\\n # \"+_vm._s(index + 1)+\"\\n \")]),(element.isNotSupport)?_c('div',{staticClass:\"ml-2\",staticStyle:{\"color\":\"white\",\"font-size\":\"0.75rem\",\"border-radius\":\"5px\",\"padding\":\"0.25rem 0.75rem\",\"background-color\":\"red\",\"border\":\"1px solid #fb8c00\"}},[_c('i',{staticClass:\"el-icon-close\"}),_c('span',{staticClass:\"ml-2\"},[_vm._v(\"No support\")])]):_c('div',{staticClass:\"d-flex flex-row\"},[(\n element.hardwareFixation\n )?_c('div',{staticClass:\"ml-2\",staticStyle:{\"color\":\"white\",\"font-size\":\"0.75rem\",\"border-radius\":\"5px\",\"padding\":\"0.25rem 0.75rem\",\"background-color\":\"#64b5f6\",\"border\":\"1px solid\"}},[_c('i',{staticClass:\"el-icon-star-off\"}),_c('span',{staticClass:\"ml-2\"},[_vm._v(\"Fixed MAC address\")])]):_vm._e(),(\n element.softwareLicenseEnabled\n )?_c('div',{staticClass:\"ml-2\",staticStyle:{\"color\":\"white\",\"font-size\":\"0.75rem\",\"border-radius\":\"5px\",\"padding\":\"0.25rem 0.75rem\",\"background-color\":\"#64b5f6\",\"border\":\"1px solid\"}},[_c('i',{staticClass:\"el-icon-turn-off\"}),_c('span',{staticClass:\"ml-2\"},[_vm._v(\"License\")])]):_vm._e(),(element.fixedRental)?_c('div',{staticClass:\"ml-2\",staticStyle:{\"color\":\"white\",\"font-size\":\"0.75rem\",\"border-radius\":\"5px\",\"padding\":\"0.25rem 0.75rem\",\"background-color\":\"#ff9800\",\"border\":\"1px solid\"}},[_c('i',{staticClass:\"el-icon-date\"}),_c('span',{staticClass:\"ml-2\"},[_vm._v(\"Rental Plan\")])]):_vm._e(),(\n element.isDisconnectedInternet\n )?_c('div',{staticClass:\"ml-2\",staticStyle:{\"color\":\"white\",\"font-size\":\"0.75rem\",\"border-radius\":\"5px\",\"padding\":\"0.25rem 0.75rem\",\"background-color\":\"#ff9800\",\"border\":\"1px solid\"}},[_c('i',{staticClass:\"el-icon-date\"}),_c('span',{staticClass:\"ml-2\"},[_vm._v(\"Disconnected\\n Internet\")])]):_vm._e(),_c('el-tooltip',{staticClass:\"item\",attrs:{\"effect\":\"dark\",\"content\":`Shutdown at : ${_vm.formatTime(\n element.schedulerMachineShutdownMachineStartAt\n )}`,\"placement\":\"top\"}},[(\n element.schedulerMachineShutdownMachineEnabled\n )?_c('div',{staticClass:\"ml-2\",staticStyle:{\"color\":\"white\",\"font-size\":\"0.75rem\",\"background-color\":\"#e57373\",\"border-radius\":\"5px\",\"padding\":\"0.25rem\",\"border\":\"1px solid\"}},[_c('i',{staticClass:\"el-icon-switch-button\"}),_c('span',{staticClass:\"ml-1\"},[_vm._v(\"\\n \"+_vm._s(element.schedulerMachineShutdownMachineTimeRemaining))])]):_vm._e()])],1)]),_c('div',{staticClass:\"d-flex flex-row align-items-center\"},[(element.snsCount)?_c('div',{staticClass:\"mr-4\"},[_c('el-tooltip',{attrs:{\"content\":`This image has ${\n element.snsCount\n } ${\n element.snsCount > 1\n ? 'snapshots'\n : 'snapshot'\n }. Click to show more.`,\"placement\":\"top\",\"effect\":\"light\"}},[_c('div',{staticStyle:{\"color\":\"gray\",\"font-size\":\"0.75rem\",\"border-radius\":\"5px\",\"padding\":\"0.25rem\",\"background-color\":\"#b6deff\",\"border\":\"1px solid\"}},[(\n !(\n element.status ===\n 3 ||\n element.status ===\n 8 ||\n element.status ===\n 1\n ) ||\n !element.bootReady\n )?_c('span',{staticClass:\"text-primary\",staticStyle:{\"opacity\":\"0.5\"}},[_vm._v(\"\\n \"+_vm._s(element.snsCount)+\"\\n \"),_c('i',{staticClass:\"el-icon-camera\"})]):_c('el-button',{staticClass:\"pb-0 pt-0 text-primary\",attrs:{\"type\":\"text\"},on:{\"click\":function($event){return _vm.processingEvent(\n {\n event: 'action',\n data: {\n type: _vm.$action.OPEN_POPUP_SNAPSHOT_IMAGE,\n data: element,\n },\n }\n )}}},[_vm._v(\"\\n \"+_vm._s(element.snsCount)+\"\\n \"),_c('i',{staticClass:\"el-icon-camera\"})])],1)])],1):_vm._e(),_c('div',{staticStyle:{\"font-size\":\"0.75rem\",\"color\":\"#9e9e9e\"}},[_vm._v(\"\\n \"+_vm._s(_vm._f(\"formatSize\")(element.vhdxLength))+\"\\n \")]),_c('ContextMenu',{staticClass:\"ml-2\",attrs:{\"element\":element},on:{\"processingEvent\":_vm.processingEvent}})],1)]),_c('div',{staticClass:\"d-flex flex-row pt-3 mt-2\",staticStyle:{\"border-top\":\"1px solid #e0e0e0\"}},[_c('div',{staticClass:\"hidden-sm-and-down mr-5\"},[_c('Lable',{attrs:{\"element\":element}})],1),_c('Information',{attrs:{\"element\":element}}),_c('div',{staticClass:\"hidden-sm-and-down align-items-end\",staticStyle:{\"display\":\"flex\"}},[_c('Action',{attrs:{\"element\":element},on:{\"processingEvent\":_vm.processingEvent}})],1)],1)])])],1)])}),0)],1):_c('div',{staticClass:\"machine-list-view d-flex align-items-center justify-content-center flex-fill p-3 pt-2\"},[_c('div',{staticClass:\"d-flex flex-column align-items-center justify-content-center\"},[_c('img',{staticStyle:{\"opacity\":\"0.25\",\"width\":\"7.5rem\"},attrs:{\"src\":\"/icon/nodata.svg\"}}),_c('div',{staticClass:\"mt-3\",staticStyle:{\"color\":\"#9e9e9e\",\"font-size\":\"1rem\"}},[_vm._v(\"\\n \"+_vm._s(_vm.msgPage)+\"\\n \")])])])],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","// Event, Dialog\r\nimport {\r\n mapState\r\n} from \"vuex\";\r\nimport EventBus from \"@/event/EventBus\";\r\n\r\n// Extend\r\nimport baseRentalService from '@/scripts/rentalService/baseRentalService';\r\n\r\n// Constant\r\nimport { SERVICE_TYPE } from '@/constant/rental';\r\nconst _ = require('lodash');\r\nconst io = require(\"socket.io-client\");\r\nconst clientappSocketUrl = process.env.VUE_APP_SOCKET_CLIENT_APP_URL;\r\nexport default {\r\n\r\n extends: baseRentalService,\r\n\r\n data() {\r\n return {\r\n socket: null,\r\n };\r\n },\r\n\r\n\r\n computed: {\r\n ...mapState({\r\n user: state => state.auth.user,\r\n }),\r\n },\r\n\r\n created() {\r\n EventBus.$on(\"processingEventRental\", this.processingEvent);\r\n this.machineListRequest.serviceType = SERVICE_TYPE.GPUHUB;\r\n this.machineListView();\r\n this.timer = setInterval(this.autoRefresh, 10000)\r\n },\r\n\r\n mounted() {\r\n this.socket = io(clientappSocketUrl, {\r\n forceNew: true\r\n });\r\n\r\n // this.throt_fun1 = _.throttle(function (data) {\r\n // console.log(\"CHANGED_PROGRESS_CLIENT:\", data)\r\n // }, 1000);\r\n // this.throt_fun2 = _.throttle(function (data) {\r\n // console.log(\"CHANGED_BOOT_STEP_CLIENT:\", data)\r\n // }, 1000);\r\n // this.throt_fun3 = _.throttle(function (data) {\r\n // console.log(\"CHANGED_SHUTDOWN_STEP_CLIENT:\", data)\r\n // }, 1000);\r\n\r\n this.socket.on(\"CHANGED_PROGRESS_CLIENT\", (data) => {\r\n console.log(\"CHANGED_PROGRESS_CLIENT:\", data)\r\n });\r\n this.socket.on(\"CHANGED_BOOT_STEP_CLIENT\", (data) => {\r\n console.log(\"CHANGED_BOOT_STEP_CLIENT:\", data)\r\n });\r\n this.socket.on(\"CHANGED_SHUTDOWN_STEP_CLIENT\", (data) => {\r\n console.log(\"CHANGED_SHUTDOWN_STEP_CLIENT:\", data)\r\n });\r\n\r\n this.socket.on(\"close\", this.tryReconnect);\r\n this.socket.on(\"connection\", (socket) => {\r\n this.socket.emit(\"login\", {\r\n id: localStorage.getItem('userId')\r\n });\r\n });\r\n this.socket.connect();\r\n },\r\n\r\n beforeDestroy() {\r\n this.socket.disconnect();\r\n clearInterval(this.timer)\r\n },\r\n\r\n methods: {\r\n\r\n tryReconnect() {\r\n setTimeout(() => {\r\n this.socket.io.open((err) => {\r\n if (err) {\r\n this.tryReconnect();\r\n }\r\n });\r\n }, 2000);\r\n },\r\n }\r\n}","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/eslint-loader/index.js??ref--13-0!./gpuHubService.js?vue&type=script&lang=js&external\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/eslint-loader/index.js??ref--13-0!./gpuHubService.js?vue&type=script&lang=js&external\"","import { render, staticRenderFns } from \"./GpuHubService.vue?vue&type=template&id=7f08fcbc&scoped=true\"\nimport script from \"@/scripts/rentalService/gpuHubService.js?vue&type=script&lang=js&external\"\nexport * from \"@/scripts/rentalService/gpuHubService.js?vue&type=script&lang=js&external\"\nimport style0 from \"./GpuHubService.vue?vue&type=style&index=0&id=7f08fcbc&prod&scoped=true&lang=css\"\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 \"7f08fcbc\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./GpuHubService.vue?vue&type=style&index=0&id=7f08fcbc&prod&scoped=true&lang=css\""],"sourceRoot":""}