{"version":3,"sources":["webpack:///./src/views/pages/app/siha/processes/createOrUpdateDocumentation/2.blueprints.vue?70a5","webpack:///./src/views/pages/app/siha/processes/createOrUpdateDocumentation/2.blueprints.vue?f85d","webpack:///./src/views/pages/app/siha/processes/createOrUpdateDocumentation/2.blueprints.vue?2e63","webpack:///./src/views/pages/app/siha/processes/createOrUpdateDocumentation/2.blueprints.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","$t","isLoading","on","onConstructionPlanFileSelected","model","value","callback","$$v","fileConstructionPlan","expression","onLocationMapFileSelected","fileLocationMap","innerValue","$set","staticRenderFns","extend","auth","props","type","Object","default","undefined","data","computed","get","set","$emit","watch","immediate","handler","locationMapDocumentId","$service","api","documents","downloadImage","image","push","constructionPlanDocumentId","methods","files","file","id","req","UploadDocumentRequestViewModel","uploadFile","uploadDocument","component"],"mappings":"uHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,iBAAiB,CAACA,EAAG,MAAM,CAACA,EAAG,QAAQ,CAACA,EAAG,QAAQ,CAACE,MAAM,CAAC,KAAO,GAAG,IAAM,GAAG,IAAM,KAAK,CAACF,EAAG,cAAc,CAACE,MAAM,CAAC,MAAQN,EAAIO,GAAG,2DAA2D,OAAS,GAAG,OAAS,UAAU,QAAUP,EAAIQ,WAAWC,GAAG,CAAC,MAAQT,EAAIU,gCAAgCC,MAAM,CAACC,MAAOZ,EAAwB,qBAAEa,SAAS,SAAUC,GAAMd,EAAIe,qBAAqBD,GAAKE,WAAW,2BAA2B,GAAGZ,EAAG,QAAQ,CAACE,MAAM,CAAC,KAAO,GAAG,IAAM,GAAG,IAAM,KAAK,CAACF,EAAG,cAAc,CAACE,MAAM,CAAC,MAAQN,EAAIO,GAAG,sDAAsD,OAAS,GAAG,OAAS,UAAU,QAAUP,EAAIQ,WAAWC,GAAG,CAAC,MAAQT,EAAIiB,2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oC,G,uIAC7B,iBAASA,EAAK,GAAbC,EAAI,KACPC,OAAKpB,EACLmB,GACIE,EAAM,IAAIC,EAAA,KAChBD,EAAIE,WAAaJ,EACZ,GAAM9C,KAAKqC,SAASC,IAAIC,UAAUY,eAAeH,KAHpD,M,OAGFD,EAAK,S,wBAEP/C,KAAKkB,WAAWyB,2BAA6BI,E,YAEzC/B,0BAAN,SAAgC6B,G,uIACxB,iBAASA,EAAK,GAAbC,EAAI,KACPC,OAAKpB,EACLmB,GACIE,EAAM,IAAIC,EAAA,KAChBD,EAAIE,WAAaJ,EACZ,GAAM9C,KAAKqC,SAASC,IAAIC,UAAUY,eAAeH,KAHpD,M,OAGFD,EAAK,S,wBAEP/C,KAAKkB,WAAWkB,sBAAwBW,E,eCrG2d,I,YCOrgBK,EAAY,eACd,EACAtD,EACAsB,GACA,EACA,KACA,KACA,MAIa,aAAAgC,E","file":"js/chunk-2d0ba914.dff078b0.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('il-wizard-step',[_c('div',[_c('p-row',[_c('p-col',{attrs:{\"xs12\":\"\",\"md6\":\"\",\"lg4\":\"\"}},[_c('p-file-drop',{attrs:{\"label\":_vm.$t('page.createOrUpdateDocumentation.label.constructionPlan'),\"single\":\"\",\"accept\":\"image/*\",\"loading\":_vm.isLoading},on:{\"input\":_vm.onConstructionPlanFileSelected},model:{value:(_vm.fileConstructionPlan),callback:function ($$v) {_vm.fileConstructionPlan=$$v},expression:\"fileConstructionPlan\"}})],1),_c('p-col',{attrs:{\"xs12\":\"\",\"md6\":\"\",\"lg4\":\"\"}},[_c('p-file-drop',{attrs:{\"label\":_vm.$t('page.createOrUpdateDocumentation.label.locationMap'),\"single\":\"\",\"accept\":\"image/*\",\"loading\":_vm.isLoading},on:{\"input\":_vm.onLocationMapFileSelected},model:{value:(_vm.fileLocationMap),callback:function ($$v) {_vm.fileLocationMap=$$v},expression:\"fileLocationMap\"}})],1),_c('p-col',{attrs:{\"xs12\":\"\",\"lg8\":\"\"}},[_c('p-textarea',{attrs:{\"label\":_vm.$t('page.createOrUpdateDocumentation.label.projectRemark'),\"rows\":\"4\"},model:{value:(_vm.innerValue.remark),callback:function ($$v) {_vm.$set(_vm.innerValue, \"remark\", $$v)},expression:\"innerValue.remark\"}})],1)],1)],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport Vue from 'vue';\nimport SiHaDocumentationResourceViewModel from '@/src/services/viewModel/resource/SiHaDocumentationResourceViewModel';\nimport UploadDocumentRequestViewModel from '@/src/services/viewModel/request/Documents/UploadDocumentRequestViewModel';\n\nexport default Vue.extend({\n auth: true,\n props: {\n value: { type: Object, default: undefined },\n },\n data: () => ({\n isLoading: false,\n fileConstructionPlan: undefined as undefined | File[],\n fileLocationMap: undefined as undefined | File[],\n }),\n computed: {\n innerValue: {\n get(): SiHaDocumentationResourceViewModel {\n return this.value ?? {};\n },\n set(value: SiHaDocumentationResourceViewModel) {\n this.$emit('input', value);\n },\n },\n },\n watch: {\n innerValue: {\n immediate: true,\n async handler() {\n if (this.innerValue.locationMapDocumentId) {\n this.isLoading = true;\n this.fileLocationMap = [];\n const image = await this.$service.api.documents.downloadImage(this.innerValue.locationMapDocumentId);\n this.fileLocationMap.push(image as File);\n this.isLoading = false;\n }\n if (this.innerValue.constructionPlanDocumentId) {\n this.isLoading = true;\n this.fileConstructionPlan = [];\n const image = await this.$service.api.documents.downloadImage(this.innerValue.constructionPlanDocumentId);\n this.fileConstructionPlan.push(image as File);\n this.isLoading = false;\n }\n },\n },\n },\n methods: {\n async onConstructionPlanFileSelected(files: File[]) {\n const [file] = files;\n let id = undefined as number | undefined;\n if (file) {\n const req = new UploadDocumentRequestViewModel();\n req.uploadFile = file;\n id = await this.$service.api.documents.uploadDocument(req);\n }\n this.innerValue.constructionPlanDocumentId = id;\n },\n async onLocationMapFileSelected(files: File[]) {\n const [file] = files;\n let id = undefined as number | undefined;\n if (file) {\n const req = new UploadDocumentRequestViewModel();\n req.uploadFile = file;\n id = await this.$service.api.documents.uploadDocument(req);\n }\n this.innerValue.locationMapDocumentId = id;\n },\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/@vue/cli-plugin-typescript/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!./2.blueprints.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/@vue/cli-plugin-typescript/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!./2.blueprints.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./2.blueprints.vue?vue&type=template&id=63a10416&\"\nimport script from \"./2.blueprints.vue?vue&type=script&lang=ts&\"\nexport * from \"./2.blueprints.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":""}