{"version":3,"sources":["webpack:///./src/pages/equipment-replacement/index.vue?c4f3","webpack:///src/pages/equipment-replacement/index.vue","webpack:///./src/pages/equipment-replacement/index.vue?9046","webpack:///./src/pages/equipment-replacement/index.vue","webpack:///./src/pages/equipment-replacement/index.vue?7123"],"names":["render","_vm","this","_h","$createElement","_c","_self","directives","name","rawName","value","isUserCanAccess","expression","staticClass","scopedSlots","_u","key","fn","attrs","$t","companyCode","on","onSelectCompany","companies","length","_e","_l","item","code","proxy","itemsLocal","ref","fetchEquipments","_v","data","index","willChange","didRowStripe","$event","goToDetail","_s","lastChange","moment","format","nextChange","productionTon","Number","toLocaleString","sites","staticRenderFns","components","TableHeader","TableFooter","mounted","computed","allFilter","siteId","mapGetters","items","watch","handler","newItems","deep","$store","commit","$refs","resetOption","methods","$vs","loading","dispatch","finally","close","detail","$router","push","component"],"mappings":"yJAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,WAAW,CAAC,CAACC,KAAK,OAAOC,QAAQ,SAASC,MAAOT,EAAIU,gBAAgB,CAAEH,KAAM,wBAA0B,QAASI,WAAW,+DAA+D,CAACP,EAAG,UAAU,CAACQ,YAAY,OAAOC,YAAYb,EAAIc,GAAG,CAAC,CAACC,IAAI,UAAUC,GAAG,WAAW,MAAO,CAACZ,EAAG,MAAM,CAACQ,YAAY,OAAO,CAACR,EAAG,MAAM,CAACQ,YAAY,mBAAmB,CAACR,EAAG,WAAW,CAACQ,YAAY,QAAQK,MAAM,CAAC,MAAQjB,EAAIkB,GAAG,2BAA2B,MAAQlB,EAAImB,YAAY,KAAO,mBAAmBC,GAAG,CAAC,MAAQpB,EAAIqB,kBAAkB,CAAErB,EAAIsB,UAAUC,OAAS,EAAGnB,EAAG,eAAe,CAACa,MAAM,CAAC,MAAQ,KAAK,KAAO,SAASjB,EAAIwB,KAAKxB,EAAIyB,G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CACAzB,WACAV,kBACA,KAAAoC,IAAAC,UACA,KAAAN,OAAAO,SAAA,4CAAAf,WAAAgB,QAAA,KACA,KAAAH,IAAAC,QAAAG,WAGAjC,WAAAkC,GACA,KAAAV,OAAAO,SAAA,kCAAAG,WAAAF,QAAA,KACA,KAAAG,QAAAC,KAAA,CAAAnE,KAAA,kCAGA6B,aAAAF,GACA,OAAAA,EAAA,OAEAb,gBAAAF,GACA,KAAA2C,OAAAO,SAAA,oBAAAlD,MClH8V,I,wBCQ1VwD,EAAY,eACd,EACA5E,EACAiD,GACA,EACA,KACA,WACA,MAIa,aAAA2B,E,2CCnBf","file":"js/equipment-replacement.ec781633.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isUserCanAccess({ name: 'EquipmentReplacement' }, 'view')),expression:\"isUserCanAccess({ name: 'EquipmentReplacement' }, 'view')\"}]},[_c('AppCard',{staticClass:\"mt-8\",scopedSlots:_vm._u([{key:\"content\",fn:function(){return [_c('div',{staticClass:\"p-4\"},[_c('div',{staticClass:\"flex flex-start\"},[_c('VsSelect',{staticClass:\"w-1/3\",attrs:{\"label\":_vm.$t('form.checklist.facility'),\"value\":_vm.companyCode,\"icon\":\"arrow_drop_down\"},on:{\"input\":_vm.onSelectCompany}},[(_vm.companies.length > 1)?_c('VsSelectItem',{attrs:{\"value\":null,\"text\":\"All\"}}):_vm._e(),_vm._l((_vm.companies),function(item){return _c('VsSelectItem',{key:item.code,attrs:{\"value\":item.code,\"text\":item.code}})})],2)],1)])]},proxy:true}])}),_c('AppCard',{staticClass:\"mt-8\",scopedSlots:_vm._u([{key:\"content\",fn:function(){return [_c('div',{staticClass:\"p-0 md:p-4\"},[_c('VsTable',{attrs:{\"sst\":\"\",\"data\":_vm.itemsLocal},scopedSlots:_vm._u([{key:\"header\",fn:function(){return [_c('TableHeader',{ref:\"table-header\",on:{\"fetch\":_vm.fetchEquipments}})]},proxy:true},{key:\"thead\",fn:function(){return [_c('vs-th',[_vm._v(\"Action\")]),_c('vs-th',[_vm._v(\"Equipment Name\")]),_c('vs-th',[_vm._v(\"Last Date\")]),_c('vs-th',[_vm._v(\"Next Date\")]),_c('vs-th',{attrs:{\"width\":\"100\"}},[_vm._v(\"Production (Ton)\")]),_c('vs-th',[_vm._v(\"Site\")])]},proxy:true},{key:\"default\",fn:function(ref){\nvar data = ref.data;\nreturn _vm._l((data),function(item,index){return _c('vs-tr',{key:index,attrs:{\"state\":item.willChange ? 'danger' : _vm.didRowStripe(index) ? 'stripe' : null}},[_c('vs-td',{attrs:{\"data\":item}},[_c('VsButton',{attrs:{\"type\":\"flat\",\"icon\":\"visibility\"},on:{\"click\":function($event){return _vm.goToDetail(item)}}})],1),_c('vs-td',{attrs:{\"data\":item.name}},[_vm._v(_vm._s(item.name))]),_c('vs-td',{attrs:{\"data\":item.lastChange}},[_vm._v(_vm._s(item.lastChange ? _vm.moment(item.lastChange).format('YYYY-MM-DD HH:mm') : 'Unknown'))]),_c('vs-td',{attrs:{\"data\":item.nextChange}},[_vm._v(_vm._s(item.nextChange ? _vm.moment(item.nextChange).format('YYYY-MM-DD') : 'Unknown'))]),_c('vs-td',{attrs:{\"data\":item.productionTon}},[_vm._v(_vm._s(Number(item.productionTon).toLocaleString('id-ID')))]),_c('vs-td',{attrs:{\"data\":item.sites}},[_vm._v(_vm._s(item.sites))])],1)})}}])}),_c('TableFooter',{on:{\"fetch\":_vm.fetchEquipments}})],1)]},proxy:true}])})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\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/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?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/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=6d3e7b7d&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=6d3e7b7d&lang=sass&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 \"6d3e7b7d\",\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--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=6d3e7b7d&lang=sass&scoped=true&\""],"sourceRoot":""}