{"version":3,"sources":["webpack:///./@core/pages/new-business-register/components/policy/InfoSheetSection.vue?5f41","webpack:///./@core/pages/new-business-register/components/policy/page/InfoSheetPage.vue?c4b4","webpack:///./@core/pages/new-business-register/components/policy/InfoSheetSection.vue?d129","webpack:///./@core/pages/new-business-register/components/policy/InfoSheetSection.vue","webpack:///./@core/pages/new-business-register/components/policy/InfoSheetSection.vue?2326","webpack:///./@core/pages/new-business-register/components/policy/InfoSheetSection.vue?4d45","webpack:///./@core/pages/new-business-register/components/policy/page/InfoSheetPage.vue","webpack:///./@core/pages/new-business-register/components/policy/page/InfoSheetPage.vue?55e5","webpack:///./@core/pages/new-business-register/components/policy/page/InfoSheetPage.vue?af23"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticRenderFns","staticClass","attrs","_v","isDisabled","on","excelFileChange","saveExcelInfoSheet","excelFile","$store","getters","currentUser","systemrole","e","target","files","length","convertObjToList","obj","result","Object","keys","map","key","uiService","alert","show","type","message","$api","clientPolicy","saveExcelInfo","policy_profile_oid","info_sheet_excel_file","sharedVariable","component","components","InfoSheetSection"],"mappings":"kHAAA,W,kECAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,qBAAqB,IAC9HE,EAAkB,G,4DCDlB,EAAS,WAAa,IAAIN,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACG,YAAY,kBAAkB,CAACH,EAAG,MAAM,CAACA,EAAG,QAAQ,CAACI,MAAM,CAAC,IAAM,uBAAuB,CAACR,EAAIS,GAAG,wBAAwBL,EAAG,QAAQ,CAACG,YAAY,oBAAoBC,MAAM,CAAC,KAAO,OAAO,GAAK,qBAAqB,SAAWR,EAAIU,YAAYC,GAAG,CAAC,OAASX,EAAIY,qBAAqBR,EAAG,SAAS,CAACG,YAAY,cAAcI,GAAG,CAAC,MAAQX,EAAIa,qBAAqB,CAACb,EAAIS,GAAG,aAC/c,EAAkB,G,oECiBD,EAArB,yG,0BASU,EAAAK,UAAiB,KAT3B,iDAWE,WACE,MAAsD,cAA/Cb,KAAKc,OAAOC,QAAQC,YAAYC,aAZ3C,sFAeE,WAAuBC,GAAvB,iFACMA,EAAEC,OAAOC,OAASF,EAAEC,OAAOC,MAAMC,QAAU,IAC7CrB,KAAKa,UAAYb,KAAKsB,iBAAiBJ,EAAEC,OAAOC,QAFpD,gDAfF,wFAqBE,SAAkBG,GAChB,IAAMC,EAASC,OAAOC,KAAKH,GAAKI,KAAI,SAACC,GACnC,OAAOL,EAAIK,MAEb,OAAOJ,IAzBX,yFA4BE,iGACOxB,KAAKa,UADZ,gCAEUb,KAAK6B,UAAUC,MAAMC,KAAK,CAC9BC,KAAM,UACNC,QAAS,kCAJf,wDAQQjC,KAAKkC,KAAKC,aAAaC,cAAc,CACzCC,mBAAoB,GACpBC,sBAAuBtC,KAAKa,UAAU,KAV1C,gDA5BF,8EA0CE,WAEEb,KAAK6B,UAAY7B,KAAKuC,eAAeV,cA5CzC,GAA8C,QAE5C,gBADC,uB,2BAMD,gBADC,uB,qCANkB,EAAgB,gBADpC,QACoB,WClB4a,I,wBCQ7bW,EAAY,eACd,EACA,EACA,GACA,EACA,KACA,WACA,MAIa,EAAAA,E,QCLM,EAArB,qIAA2C,QAAtB,EAAa,gBALjC,eAAU,CACTC,WAAY,CACVC,iBAAA,MAGiB,WCd2b,ICO5c,EAAY,eACd,EACA5C,EACAO,GACA,EACA,KACA,KACA,MAIa,e","file":"js/chunk-74e79b22.39447399.js","sourcesContent":["export * from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./InfoSheetSection.vue?vue&type=style&index=0&id=00754702&lang=scss&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('InfoSheetSection')],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"info-sheet-tab\"},[_c('div',[_c('label',{attrs:{\"for\":\"insured_info_sheet\"}},[_vm._v(\"Info Sheet (Excel)\")]),_c('input',{staticClass:\"form-control-file\",attrs:{\"type\":\"file\",\"id\":\"insured_info_sheet\",\"disabled\":_vm.isDisabled},on:{\"change\":_vm.excelFileChange}})]),_c('button',{staticClass:\"btn-default\",on:{\"click\":_vm.saveExcelInfoSheet}},[_vm._v(\"Save\")])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n/* eslint-disable @typescript-eslint/camelcase */\nimport API from '@core/services/API'\nimport { inject } from 'inversify-props'\nimport { Component, Vue } from 'vue-property-decorator'\nimport { UIService } from '@core/services/UIService'\nimport { SharedVariable } from '@core/model/SharedVariable'\n\n@Component\nexport default class InfoSheetSection extends Vue {\n @inject()\n private $api: API\n\n uiService: UIService\n\n @inject()\n private sharedVariable: SharedVariable\n\n private excelFile: any = null\n\n get isDisabled () {\n return this.$store.getters.currentUser.systemrole !== 'ops-staff'\n }\n\n async excelFileChange (e) {\n if (e.target.files && e.target.files.length >= 1) {\n this.excelFile = this.convertObjToList(e.target.files)\n }\n }\n\n convertObjToList (obj) {\n const result = Object.keys(obj).map((key) => {\n return obj[key]\n })\n return result\n }\n\n async saveExcelInfoSheet () {\n if (!this.excelFile) {\n await this.uiService.alert.show({\n type: 'warning',\n message: 'Please upload the excel file!'\n })\n return\n }\n await this.$api.clientPolicy.saveExcelInfo({\n policy_profile_oid: '',\n info_sheet_excel_file: this.excelFile[0]\n })\n }\n\n mounted () {\n // take injected UIService and set it to local\n this.uiService = this.sharedVariable.uiService\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--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./InfoSheetSection.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--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./InfoSheetSection.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./InfoSheetSection.vue?vue&type=template&id=00754702&scoped=true&\"\nimport script from \"./InfoSheetSection.vue?vue&type=script&lang=ts&\"\nexport * from \"./InfoSheetSection.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./InfoSheetSection.vue?vue&type=style&index=0&id=00754702&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 \"00754702\",\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n\nimport { Component, Vue } from 'vue-property-decorator'\nimport InfoSheetSection from '../InfoSheetSection.vue'\n\n@Component({\n components: {\n InfoSheetSection\n }\n})\nexport default class InfoSheetPage extends Vue {\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--0-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./InfoSheetPage.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--0-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./InfoSheetPage.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./InfoSheetPage.vue?vue&type=template&id=2d5786d1&\"\nimport script from \"./InfoSheetPage.vue?vue&type=script&lang=ts&\"\nexport * from \"./InfoSheetPage.vue?vue&type=script&lang=ts&\"\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":""}