{"version":3,"sources":["webpack:///./src/views/RentalService/CpuHubService.vue?fc4d","webpack:///./src/scripts/rentalService/cpuHubService.js","webpack:///./src/scripts/rentalService/cpuHubService.js?95a8","webpack:///./src/views/RentalService/CpuHubService.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","directives","name","rawName","value","expression","attrs","machineListRequest","on","processingEvent","machineList","length","_l","element","index","key","class","$machineListStyle","status","padding","staticStyle","style","$machineStatusDotColor","_v","_s","_e","formatTime","schedulerMachineShutdownMachineStartAt","schedulerMachineShutdownMachineTimeRemaining","_f","vhdxLength","msgPage","staticRenderFns","extends","baseRentalService","created","EventBus","$on","serviceType","SERVICE_TYPE","CPUHUB","machineListView","timer","setInterval","autoRefresh","beforeDestroy","clearInterval","component"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,gEAAgE,CAACF,EAAG,MAAM,CAACG,WAAW,CAAC,CAACC,KAAK,UAAUC,QAAQ,YAAYC,MAAOV,EAAa,UAAEW,WAAW,cAAcL,YAAY,gCAAgC,CAACF,EAAG,aAAa,CAACQ,MAAM,CAAC,mBAAqBZ,EAAIa,oBAAoBC,GAAG,CAAC,gBAAkBd,EAAIe,mBAAoBf,EAAIgB,YAAYC,OAAS,EAAGb,EAAG,MAAM,CAACE,YAAY,mBAAmB,CAACF,EAAG,sBAAsB,CAACE,YAAY,6CAA6CN,EAAIkB,GAAIlB,EAAe,aAAE,SAASmB,EAAQC,GAAO,OAAOhB,EAAG,MAAM,CAACG,WAAW,CAAC,CAACC,KAAK,UAAUC,QAAQ,YAAYC,MAAOS,EAAiB,UAAER,WAAW,sBAAsBU,IAAID,EAAMd,YAAY,QAAQ,CAACF,EAAG,MAAM,CAACE,YAAY,qBAAqB,CAACF,EAAG,UAAU,CAACkB,MAAO,GAAMtB,EAAIuB,kBAAkBJ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AG,CAAC,gBAAkBd,EAAIe,oBAAoB,IAAI,QAAQ,QAAO,IAAI,GAAGX,EAAG,MAAM,CAACE,YAAY,yFAAyF,CAACF,EAAG,MAAM,CAACE,YAAY,oEAAoE,CAACF,EAAG,MAAM,CAACsB,YAAY,CAAC,QAAU,OAAO,MAAQ,UAAUd,MAAM,CAAC,IAAM,sBAAsBR,EAAG,MAAM,CAACE,YAAY,OAAOoB,YAAY,CAAC,MAAQ,UAAU,YAAY,SAAS,CAAC1B,EAAI6B,GAAG,yBAAyB7B,EAAI8B,GAAG9B,EAAIqC,SAAS,6BAA6B,MACntDC,EAAkB,G,oCCLP,GAEXC,QAASC,OAETC,QAJW,WAKPC,OAASC,IAAI,wBAAyB1C,KAAKc,iBAC3Cd,KAAKY,mBAAmB+B,YAAcC,OAAaC,OACnD7C,KAAK8C,kBACL9C,KAAK+C,MAAQC,YAAYhD,KAAKiD,YAAa,MAG/CC,cAXW,WAYPC,cAAcnD,KAAK+C,SCrBuQ,I,YCO9RK,EAAY,eACd,EACAtD,EACAuC,GACA,EACA,KACA,KACA,MAIa,aAAAe,E","file":"js/chunk-2d0c539b.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;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:{\"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])),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:(\"\" + (element.status === 32773 ||\n element.status === 10\n ? 'blink_me'\n : '')),staticStyle:{\"border-radius\":\"1rem\",\"height\":\"0.75rem\",\"width\":\"0.75rem\"},style:((\"background-color: \" + (_vm.$machineStatusDotColor[\n element.status\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.hardwareFixation)?_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 #42a5f5\"}},[_c('i',{staticClass:\"el-icon-star-off\"}),_c('span',{staticClass:\"ml-2\"},[_vm._v(\"Fixed MAC address\")])]):_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 #fb8c00\"}},[_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\":\"#f44336\",\"border\":\"1px solid #f44336\"}},[_c('i',{staticClass:\"el-icon-link\"}),_c('span',{staticClass:\"ml-2\"},[_vm._v(\"Disconnected 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 0.75rem\",\"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\"},[_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 col\"},[_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)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","// Event, Dialog\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\n\r\nexport default {\r\n\r\n extends: baseRentalService,\r\n\r\n created() {\r\n EventBus.$on(\"processingEventRental\", this.processingEvent);\r\n this.machineListRequest.serviceType = SERVICE_TYPE.CPUHUB;\r\n this.machineListView();\r\n this.timer = setInterval(this.autoRefresh, 10000)\r\n },\r\n\r\n beforeDestroy() {\r\n clearInterval(this.timer)\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!./cpuHubService.js?vue&type=script&lang=js&\"; 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!./cpuHubService.js?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./CpuHubService.vue?vue&type=template&id=23fdb796&\"\nimport script from \"@/scripts/rentalService/cpuHubService.js?vue&type=script&lang=js&\"\nexport * from \"@/scripts/rentalService/cpuHubService.js?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"],"sourceRoot":""}