{"version":3,"sources":["webpack:///./src/components/cut/CutCurrentWorkloadTable.vue?4bf2","webpack:///./src/components/cut/CutCurrentWorkloadTable.vue","webpack:///./src/components/cut/CutCurrentWorkloadTable.vue?5fba","webpack:///./src/components/cut/CutCurrentWorkloadTable.vue?999a","webpack:///./src/components/cut/CutCurrentWorkloadTable.vue?c97c","webpack:///./src/components/tableWithActions/CellWithSubtitle.vue","webpack:///./src/components/tableWithActions/CellWithSubtitle.vue?c50b","webpack:///./src/components/tableWithActions/CellWithSubtitle.vue?23bb","webpack:///./src/components/tableWithActions/CellWithSubtitle.vue?4440","webpack:///./src/components/tableWithActions/CellWithSubtitle.vue?8c47"],"names":["render","_vm","this","_c","_self","_setupProxy","staticClass","attrs","data","loading","scopedSlots","_u","key","fn","_t","proxy","_ref","deviceWorkloadData","row","$t","getBubbleContent","currentMessages","getBubbleType","on","$event","openMessageModal","_ref2","isEmpty","cuttingPlanInfo","_v","_s","_l","cuttingPlan","index","concat","deviceId","sequence","name","formatDimensions","materialWidth","materialHeight","material","decimalFormatter","millimetersToCustomerUnit","materialThickness","formatDuration","estimatedCuttingTimeSeconds","progress","totalRuns","completedRuns","totalParts","completedParts","formatDateWithTime","startTimestamp","_e","expectedEndDate","ncFilePath","openNcPathModal","_ref3","deviceModel","deviceName","measurement","measurementUnit","addDataTestIdAttributeToTh","class","_ref4","calculateTotalEstimatedCuttingTime","_ref5","style","statusStyle","lastStatus","staticRenderFns","CutCurrentWorkloadTable","_Vue","_this","_classCallCheck","_len","arguments","length","args","Array","_key","_callSuper","_defineProperty","_inherits","_createClass","value","workloadData","reduce","totalDuration","currentPlanItem","status","getStateCss","get","lengthUnit","width","height","Math","round","modalService","open","parent","component","CutCellControlActiveMessagesModal","props","messages","detail","GenericKeyCopyModal","canCancel","title","i18n","t","toString","some","x","messageLevel","MessageType","Error","Warning","Vue","__decorate","Prop","required","Component","components","CellWithSubtitle","TableActionButton2","TableWithActions2","TableActionsList","TableColumnActionsWrapper","methods","formatPercentage"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AC,0BACAC,yBACAC,wBACAC,kCAEFC,QAAS,CACPvF,iCACAwF,wBACApE,kCACArB,wBACAG,sBACAO,0BACAzB,mBAGiB6C,WCpD8Y,I,wBCQ/Z8B,EAAY,eACd,EACAtG,EACAuE,GACA,EACA,KACA,WACA,MAIa,aAAA+B,E,6CCnBf,IAAItG,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAUF,EAAIG,MAAMC,YAAY,OAAOF,EAAG,MAAM,CAACG,YAAY,sBAAsB,CAACH,EAAG,MAAM,CAACG,YAAY,cAAc,CAACL,EAAIa,GAAG,YAAY,GAAGX,EAAG,MAAM,CAACG,YAAY,iBAAiB,CAACL,EAAIa,GAAG,aAAa,MAEhQyD,EAAkB,G,wECEDsD,EAAgB,SAAApD,GAAA,SAAAoD,IAAA,OAAAlD,eAAA,KAAAkD,GAAA3C,eAAA,KAAA2C,EAAAhD,WAAA,OAAAO,eAAAyC,EAAApD,GAAAY,eAAAwC,GAAA,CAASN,QAAzBM,EAAgBL,eAAA,CADpCG,QACoBE,WCJuY,I,wBCQxZvB,EAAY,eACd,EACAtG,EACAuE,GACA,EACA,KACA,WACA,MAIa,OAAA+B,E,2CCnBf,W","file":"js/chunk-4667f2ef.11e59d84.js","sourcesContent":["export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CutCurrentWorkloadTable.vue?vue&type=style&index=0&id=4389b9d8&prod&lang=scss&scoped=true\"","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('table-with-actions2',{staticClass:\"cut-current-workload-table\",attrs:{\"data\":_vm.data,\"loading\":_vm.loading,\"detailed\":\"\",\"detailKey\":\"deviceId\",\"customDetailRow\":\"\",\"searchable\":false,\"rowActionsDisplayMode\":\"always\"},scopedSlots:_vm._u([{key:\"toolbar-left\",fn:function(){return [_vm._t(\"widget-help\")]},proxy:true},{key:\"row-actions\",fn:function({ row: deviceWorkloadData }){return [_c('table-action-button2',{attrs:{\"title\":_vm.$t('cut_current_workload_table.actions.messages'),\"icon\":\"message\",\"bubble\":_vm.getBubbleContent(deviceWorkloadData.currentMessages),\"bubbleType\":_vm.getBubbleType(deviceWorkloadData.currentMessages)},on:{\"click\":function($event){return _vm.openMessageModal(deviceWorkloadData)}}})]}},{key:\"detail\",fn:function({ row: deviceWorkloadData }){return [(_vm.isEmpty(deviceWorkloadData.cuttingPlanInfo))?[_c('tr',[_c('td',{staticClass:\"empty-detail-cell\",attrs:{\"colspan\":\"13\"}},[_vm._v(\" \"+_vm._s(_vm.$t('cut_current_workload_table.empty'))+\" \")])])]:_vm._l((deviceWorkloadData.cuttingPlanInfo),function(cuttingPlan,index){return _c('tr',{key:`${deviceWorkloadData.deviceId}_${index}`},[_c('td',{staticClass:\"sequence-column\",attrs:{\"data-label\":_vm.$t('cut_current_workload_table.sequence')}},[_vm._v(\" \"+_vm._s(cuttingPlan.sequence)+\" \")]),_c('td',{attrs:{\"data-label\":_vm.$t('cut_current_workload_table.name')}},[_c('b-tooltip',{attrs:{\"label\":cuttingPlan.name,\"position\":\"is-right\",\"type\":\"is-dark\",\"append-to-body\":\"\"}},[_c('span',{staticClass:\"plan-name\"},[_vm._v(\" \"+_vm._s(cuttingPlan.name)+\" \")])])],1),_c('td',{attrs:{\"data-label\":_vm.$t('cut_current_workload_table.material_format')}},[_c('cell-with-subtitle',{scopedSlots:_vm._u([{key:\"subtitle\",fn:function(){return [_vm._v(\" \"+_vm._s(_vm.formatDimensions(cuttingPlan.materialWidth, cuttingPlan.materialHeight))+\" \")]},proxy:true}],null,true)},[_c('b-tooltip',{attrs:{\"label\":cuttingPlan.material,\"position\":\"is-right\",\"type\":\"is-dark\",\"append-to-body\":\"\"}},[_c('span',{staticClass:\"material-name\"},[_vm._v(\" \"+_vm._s(cuttingPlan.material)+\" \")])])],1)],1),_c('td',{attrs:{\"data-label\":_vm.$t('cut_current_workload_table.thickness')}},[_vm._v(\" \"+_vm._s(_vm.decimalFormatter(_vm.millimetersToCustomerUnit(cuttingPlan.materialThickness), 3))+\" \")]),_c('td',{attrs:{\"data-label\":_vm.$t('cut_current_workload_table.estimated_cutting_time')}},[_vm._v(\" \"+_vm._s(_vm.formatDuration(cuttingPlan.estimatedCuttingTimeSeconds))+\" \")]),_c('td',{attrs:{\"data-label\":_vm.$t('cut_current_workload_table.runs')}},[(cuttingPlan.progress === 0)?[_vm._v(\" \"+_vm._s(cuttingPlan.totalRuns)+\" \")]:[_vm._v(\" \"+_vm._s(cuttingPlan.completedRuns)+\"/\"+_vm._s(cuttingPlan.totalRuns)+\" \")]],2),_c('td',{attrs:{\"data-label\":_vm.$t('cut_current_workload_table.parts')}},[(cuttingPlan.progress === 0)?[_vm._v(\" \"+_vm._s(cuttingPlan.totalParts)+\" \")]:[_vm._v(\" \"+_vm._s(cuttingPlan.completedParts)+\"/\"+_vm._s(cuttingPlan.totalParts)+\" \")]],2),_c('td',{attrs:{\"data-label\":_vm.$t('cut_current_workload_table.start_time')}},[_vm._v(\" \"+_vm._s(_vm.formatDateWithTime(cuttingPlan.startTimestamp))+\" \")]),_c('td',{attrs:{\"data-label\":_vm.$t('cut_current_workload_table.progress')}},[(cuttingPlan.progress > 0)?_c('b-progress',{attrs:{\"value\":cuttingPlan.progress * 100,\"show-value\":\"\",\"format\":\"percent\"}}):_vm._e()],1),_c('td',{attrs:{\"data-label\":_vm.$t('cut_current_workload_table.expected_end_date')}},[(cuttingPlan.progress > 0)?[_vm._v(\" \"+_vm._s(_vm.formatDateWithTime(cuttingPlan.expectedEndDate))+\" \")]:_vm._e()],2),_c('td',[_vm._v(\"   \")]),_c('td',{staticClass:\"detail-actions-column\"},[_c('table-column-actions-wrapper',[_c('table-actions-list',[_c('table-action-button2',{attrs:{\"title\":_vm.$t('cut_current_workload_table.actions.copy_nc_path'),\"disabled\":_vm.isEmpty(cuttingPlan.ncFilePath),\"icon\":\"content-copy\"},on:{\"click\":function($event){return _vm.openNcPathModal(cuttingPlan)}}})],1)],1)],1)])})]}}],null,true)},[_c('b-table-column',{attrs:{\"field\":\"deviceName\",\"label\":_vm.$t('cut_current_workload_table.name')},scopedSlots:_vm._u([{key:\"default\",fn:function({ row: deviceWorkloadData }){return [_c('cell-with-subtitle',{scopedSlots:_vm._u([{key:\"subtitle\",fn:function(){return [_vm._v(\" \"+_vm._s(deviceWorkloadData.deviceModel)+\" \")]},proxy:true}],null,true)},[_vm._v(\" \"+_vm._s(deviceWorkloadData.deviceName)+\" \")])]}}])}),_c('b-table-column',{attrs:{\"field\":\"material-format\",\"label\":_vm.$t('cut_current_workload_table.material_format_with_unit', { measurement: _vm.measurementUnit }),\"th-attrs\":_vm.addDataTestIdAttributeToTh('column-header-material-format')}},[_vm._v(\"   \")]),_c('b-table-column',{attrs:{\"field\":\"thickness\",\"label\":_vm.$t('cut_current_workload_table.thickness_with_unit', { measurement: _vm.measurementUnit }),\"th-attrs\":_vm.addDataTestIdAttributeToTh('column-header-thickness')}},[_vm._v(\"   \")]),_c('b-table-column',{attrs:{\"field\":\"estimated-cutting-time\",\"label\":_vm.$t('cut_current_workload_table.estimated_cutting_time'),\"td-attrs\":() => ({ class: 'total-estimated-cutting-time-cell' })},scopedSlots:_vm._u([{key:\"default\",fn:function({ row: deviceWorkloadData }){return [_vm._v(\" \"+_vm._s(_vm.formatDuration(_vm.calculateTotalEstimatedCuttingTime(deviceWorkloadData)))+\" \")]}}])}),_c('b-table-column',{attrs:{\"field\":\"runs\",\"label\":_vm.$t('cut_current_workload_table.runs')}},[_vm._v(\"   \")]),_c('b-table-column',{attrs:{\"field\":\"parts\",\"label\":_vm.$t('cut_current_workload_table.parts')}},[_vm._v(\"   \")]),_c('b-table-column',{attrs:{\"field\":\"start-time\",\"label\":_vm.$t('cut_current_workload_table.start_time')}},[_vm._v(\"   \")]),_c('b-table-column',{attrs:{\"field\":\"progress\",\"label\":_vm.$t('cut_current_workload_table.progress'),\"width\":\"15%\"}},[_vm._v(\"   \")]),_c('b-table-column',{attrs:{\"field\":\"expected-end-date\",\"label\":_vm.$t('cut_current_workload_table.expected_end_date')}},[_vm._v(\"   \")]),_c('b-table-column',{attrs:{\"field\":\"lastStatus\",\"label\":_vm.$t('cut_current_workload_table.status'),\"td-attrs\":() => ({ class: 'status-cell' })},scopedSlots:_vm._u([{key:\"default\",fn:function({ row: deviceWorkloadData }){return [_c('div',{style:(_vm.statusStyle(deviceWorkloadData.lastStatus))},[_vm._v(\" \"+_vm._s(_vm.$t(`report.${deviceWorkloadData.lastStatus}`))+\" \")])]}}])})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\nimport { Component, Prop, Vue } from 'vue-property-decorator';\nimport TableWithActions2 from '@/components/tableWithActions/TableWithActions2.vue';\nimport CellWithSubtitle from '@/components/tableWithActions/CellWithSubtitle.vue';\nimport {\n CutCurrentWorkloadDataMessage,\n CutCurrentWorkloadDataPlanInfo,\n CutDeviceCurrentWorkloadData,\n MessageType,\n} from '@/models/Charts/chartsData';\nimport { isEmpty } from '@/utils/misc';\nimport { formatDuration } from '@/utils/dates';\nimport { addDataTestIdAttributeToTh, formatDateWithTime } from '@/utils/table';\nimport i18n from '@/i18n';\nimport TableActionButton2 from '../tableWithActions/TableActionButton2.vue';\nimport { BubbleType } from '../ActionBubble.vue';\nimport CutCellControlActiveMessagesModal from './CutCellControlActiveMessagesModal.vue';\nimport { modalService } from '@/library-services/modal.service';\nimport TableActionsList from '../tableWithActions/TableActionsList.vue';\nimport TableColumnActionsWrapper from '../tableWithActions/TableColumnActionsWrapper.vue';\nimport GenericKeyCopyModal from '../GenericKeyCopyModal.vue';\nimport { lengthUnit, millimetersToCustomerUnit } from '@/utils/measurement';\nimport { getStateCss } from '@/utils/color';\nimport { LaserTubeDeviceState } from '@/models/deviceStateData';\nimport { decimalFormatter, formatPercentage } from '@/utils/number';\n\n/**\n * Table listing devices with their current cutting plans.\n *\n * By default, just lists devices with some information. The user can expand the\n * rows to show additional information about the cutting plans currently in\n * the workload of the device, like the materials and their properties, the plan\n * progress, etc.\n */\n@Component({\n components: {\n CellWithSubtitle,\n TableActionButton2,\n TableWithActions2,\n TableActionsList,\n TableColumnActionsWrapper,\n },\n methods: {\n millimetersToCustomerUnit,\n formatPercentage,\n addDataTestIdAttributeToTh,\n decimalFormatter,\n formatDuration,\n formatDateWithTime,\n isEmpty,\n },\n})\nexport default class CutCurrentWorkloadTable extends Vue {\n @Prop({ required: true })\n private data!: CutDeviceCurrentWorkloadData[];\n\n @Prop({ required: true })\n private loading!: boolean;\n\n private calculateTotalEstimatedCuttingTime(workloadData: CutDeviceCurrentWorkloadData): number {\n return workloadData.cuttingPlanInfo.reduce(\n (totalDuration, currentPlanItem) =>\n totalDuration + currentPlanItem.estimatedCuttingTimeSeconds,\n 0,\n );\n }\n\n private statusStyle(status: LaserTubeDeviceState) {\n return getStateCss(status);\n }\n\n private get measurementUnit(): string {\n return lengthUnit();\n }\n\n private formatDimensions(width: number, height: number): string {\n return (\n `${Math.round(millimetersToCustomerUnit(width))}` +\n ` x ${Math.round(millimetersToCustomerUnit(height))}`\n );\n }\n\n private openMessageModal(row: CutDeviceCurrentWorkloadData) {\n modalService.open({\n parent: this,\n component: CutCellControlActiveMessagesModal,\n width: 900,\n props: {\n messages: row.currentMessages,\n },\n });\n }\n\n private openNcPathModal(detail: CutCurrentWorkloadDataPlanInfo) {\n modalService.open({\n parent: this,\n component: GenericKeyCopyModal,\n canCancel: ['outside'],\n props: {\n value: detail.ncFilePath,\n title: i18n.t('cut_current_workload_table.actions.nc_path_title'),\n },\n });\n }\n\n private getBubbleContent(messages: CutCurrentWorkloadDataMessage[]): string | undefined {\n if (isEmpty(messages)) {\n return undefined;\n }\n return messages.length.toString();\n }\n\n private getBubbleType(messages: CutCurrentWorkloadDataMessage[]): BubbleType | undefined {\n if (isEmpty(messages)) {\n return undefined;\n }\n if (messages.some((x) => x.messageLevel === MessageType.Error)) {\n return 'is-danger';\n }\n if (messages.some((x) => x.messageLevel === MessageType.Warning)) {\n return 'is-warning';\n }\n return 'is-info';\n }\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CutCurrentWorkloadTable.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CutCurrentWorkloadTable.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./CutCurrentWorkloadTable.vue?vue&type=template&id=4389b9d8&scoped=true\"\nimport script from \"./CutCurrentWorkloadTable.vue?vue&type=script&lang=ts\"\nexport * from \"./CutCurrentWorkloadTable.vue?vue&type=script&lang=ts\"\nimport style0 from \"./CutCurrentWorkloadTable.vue?vue&type=style&index=0&id=4389b9d8&prod&lang=scss&scoped=true\"\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 \"4389b9d8\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"cell-with-subtitle\"},[_c('div',{staticClass:\"cell-title\"},[_vm._t(\"default\")],2),_c('div',{staticClass:\"cell-subtitle\"},[_vm._t(\"subtitle\")],2)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\nimport { Component, Vue } from 'vue-property-decorator';\n\n@Component\nexport default class CellWithSubtitle extends Vue {}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CellWithSubtitle.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CellWithSubtitle.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./CellWithSubtitle.vue?vue&type=template&id=511ddd1f&scoped=true\"\nimport script from \"./CellWithSubtitle.vue?vue&type=script&lang=ts\"\nexport * from \"./CellWithSubtitle.vue?vue&type=script&lang=ts\"\nimport style0 from \"./CellWithSubtitle.vue?vue&type=style&index=0&id=511ddd1f&prod&lang=scss&scoped=true\"\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 \"511ddd1f\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CellWithSubtitle.vue?vue&type=style&index=0&id=511ddd1f&prod&lang=scss&scoped=true\""],"sourceRoot":""}