{"version":3,"sources":["webpack:///./src/views/pages/app/siha/printQRCode.vue?2f1c","webpack:///./src/views/pages/app/siha/printQRCode.vue?1c8b","webpack:///./src/views/pages/app/siha/printQRCode.vue?6fd3","webpack:///./src/views/pages/app/siha/printQRCode.vue","webpack:///./src/views/pages/app/siha/printQRCode.vue?a576"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","staticClass","companyLogo","_e","_v","_s","sihaDocumentation","title","$t","qrcodeUrl","addressLine","postalCode","city","clientCompanyName","clientFirstName","clientLastName","clientPostalCode","clientCity","clientEMail","clientPhoneNumber","ref","mobileShareLink","staticRenderFns","extend","layout","auth","props","value","type","SiHaDocumentationResourceViewModel","default","undefined","data","sihaDocumentationId","isLoading","glaromatUser","GlaromatUserResourceViewModel","computed","tenant","$router","currentRoute","params","workspace","window","location","origin","shareId","$config","values","mounted","$route","query","sId","siHaDocumentationId","populateData","methods","$service","api","siHaDocumentation","getSiHaDocumentation","getGlaromatUserImagePath","logoResponse","Promise","resolve","me","getGlaromatUser","glaromatUserPictureDocumentId","companyLogoDocumentId","documents","downloadImage","response","component"],"mappings":"kJAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,QAAQ,CAACE,MAAM,CAAC,SAAW,KAAK,CAACF,EAAG,QAAQ,CAACE,MAAM,CAAC,KAAO,KAAK,CAAEN,EAAe,YAAEI,EAAG,QAAQ,CAACG,YAAY,kBAAkBD,MAAM,CAAC,MAAQ,MAAM,UAAUN,EAAIQ,eAAeR,EAAIS,KAAKL,EAAG,KAAK,CAACJ,EAAIU,GAAGV,EAAIW,GAAGX,EAAIY,kBAAkBC,UAAUb,EAAIU,GAAG,IAAIV,EAAIW,GAAGX,EAAIc,GAAG,qDAAqD,KAAKV,EAAG,QAAQ,CAACE,MAAM,CAAC,eAAe,KAAK,CAACF,EAAG,QAAQ,CAACE,MAAM,CAAC,IAA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AAjC,EAAyB,QAAzB,EAAAzD,KAAK4C,QAAQC,oBAAY,eAAEC,cAAM,eAAEY,oBAC/C1D,KAAKsC,oBAAsBmB,EAC3B,GAAMzD,KAAK2D,iB,OAAX,S,mCAGJC,QAAS,CACDD,aAAY,W,4HAES,OADzB3D,KAAKuC,WAAY,EACjB,EAAAvC,KAAyB,GAAMA,KAAK6D,SAASC,IAAIC,kBAAkBC,qBAAqBhE,KAAKsC,sB,OACxE,OADrB,EAAK3B,kBAAoB,SACJ,GAAMX,KAAKiE,4B,cAA1BC,EAAe,SACrBlE,KAAKO,YAAc2D,EAAeC,QAAQC,QAAQF,QAAgB9B,EAClEpC,KAAKuC,WAAY,E,YAEb0B,yBAAwB,W,oIACR,OAApB,EAAAjE,KAAoB,GAAMA,KAAK6D,SAASC,IAAIO,GAAGC,mB,cAA/C,EAAK9B,aAAe,SACd+B,EAAuE,QAAvC,EAAAvE,KAAKwC,aAAagC,6BAAqB,aAAIpC,OAC3CA,IAAlCmC,EAAA,MACe,GAAMvE,KAAK6D,SAASC,IAAIW,UAAUC,cAAcH,I,OACjE,OADMI,EAAW,SACjB,GAAO,CAAEtC,KAAMsC,I,OAEjB,cAAOvC,cCtGud,I,wBCQhewC,EAAY,eACd,EACA9E,EACA6B,GACA,EACA,KACA,WACA,MAIa,aAAAiD,E,2CCnBf","file":"js/chunk-010a82d3.7d10bcab.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('p-row',{attrs:{\"spacious\":\"\"}},[_c('p-col',{attrs:{\"sm12\":\"\"}},[(_vm.companyLogo)?_c('p-img',{staticClass:\"glaromatUserImg\",attrs:{\"width\":\"110\",\"api-src\":_vm.companyLogo}}):_vm._e(),_c('h1',[_vm._v(_vm._s(_vm.sihaDocumentation.title))]),_vm._v(\" \"+_vm._s(_vm.$t('page.printQRCode.label.vorOrtDokumentationScanQR'))+\" \"),_c('p-row',{attrs:{\"align-center\":\"\"}},[_c('p-col',{attrs:{\"xs4\":\"\",\"md4\":\"\",\"align-start\":\"\"}},[_c('img',{staticClass:\"fullwidth\",attrs:{\"src\":_vm.qrcodeUrl,\"alt\":\"QRCode\"}})]),_c('p-col',{attrs:{\"xs1\":\"\",\"md1\":\"\"}}),_c('p-col',{attrs:{\"xs7\":\"\",\"md7\":\"\"}},[_c('p'),_c('p',[_vm._v(\" \"+_vm._s(_vm.sihaDocumentation.title)),_c('br'),_vm._v(\" \"+_vm._s(_vm.sihaDocumentation.addressLine)),_c('br'),_vm._v(\" \"+_vm._s(_vm.sihaDocumentation.postalCode)+\" \"+_vm._s(_vm.sihaDocumentation.city)+\" \")]),_c('hr'),_c('p',[_vm._v(\" \"+_vm._s(_vm.sihaDocumentation.clientCompanyName)),_c('br'),_vm._v(\" \"+_vm._s(_vm.sihaDocumentation.clientFirstName)+\" \"+_vm._s(_vm.sihaDocumentation.clientLastName)),_c('br'),_vm._v(\" \"+_vm._s(_vm.sihaDocumentation.clientPostalCode)+\" \"+_vm._s(_vm.sihaDocumentation.clientCity)),_c('br'),_vm._v(\" \"+_vm._s(_vm.sihaDocumentation.clientEMail)),_c('br'),_vm._v(\" \"+_vm._s(_vm.sihaDocumentation.clientPhoneNumber)),_c('br')]),_c('hr'),_c('a',{ref:\"mobileLink\",staticClass:\"breakall\",attrs:{\"target\":\"_blank\",\"href\":_vm.mobileShareLink}},[_vm._v(_vm._s(_vm.mobileShareLink))])])],1),_c('hr',{staticClass:\"instructionDivider\"}),_c('div',[_c('p',[_vm._v(_vm._s(_vm.$t('page.printQRCode.text.overview')))]),_c('ul',[_c('li',[_vm._v(_vm._s(_vm.$t('page.printQRCode.text.pointDocumentedSignal')))]),_c('li',[_vm._v(_vm._s(_vm.$t('page.printQRCode.text.addNewPoint')))])]),_c('br'),_c('p',[_vm._v(_vm._s(_vm.$t('page.printQRCode.text.detailView')))]),_c('ul',[_c('li',[_vm._v(_vm._s(_vm.$t('page.printQRCode.text.pointInformations')))]),_c('li',[_vm._v(_vm._s(_vm.$t('page.printQRCode.text.documentedPictures')))])]),_c('br'),_c('p',[_vm._v(_vm._s(_vm.$t('page.printQRCode.text.documentationDone')))])])],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\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 GlaromatUserResourceViewModel from '@/src/services/viewModel/resource/GlaromatUserResourceViewModel';\n\nexport default Vue.extend({\n layout: 'layout-print',\n auth: true,\n props: {\n value: { type: SiHaDocumentationResourceViewModel, default: undefined },\n },\n data: () => ({\n companyLogo: undefined as Promise<{data: Blob}> | undefined,\n sihaDocumentation: new SiHaDocumentationResourceViewModel(),\n sihaDocumentationId: 0 as number,\n isLoading: false,\n glaromatUser: new GlaromatUserResourceViewModel(),\n }),\n computed: {\n mobileShareLink(): string {\n const { tenant } = this.$router.currentRoute.params;\n const { workspace } = this.$router.currentRoute.params;\n return `${window.location.origin}/${tenant}/${workspace}/siha/mobile/documentation/${this.sihaDocumentation.shareId}`;\n },\n qrcodeUrl(): string {\n return `${this.$config.values['siha-qrcode-generator-url']}${this.mobileShareLink}`;\n },\n },\n async mounted() {\n if (this.$route.query?.shareId !== null) {\n const sId = this.$router.currentRoute?.params?.siHaDocumentationId as string;\n this.sihaDocumentationId = sId as unknown as number;\n await this.populateData();\n }\n },\n methods: {\n async populateData() {\n this.isLoading = true;\n this.sihaDocumentation = await this.$service.api.siHaDocumentation.getSiHaDocumentation(this.sihaDocumentationId);\n const logoResponse = await this.getGlaromatUserImagePath();\n this.companyLogo = logoResponse ? Promise.resolve(logoResponse) : undefined;\n this.isLoading = false;\n },\n async getGlaromatUserImagePath() {\n this.glaromatUser = await this.$service.api.me.getGlaromatUser();\n const glaromatUserPictureDocumentId = this.glaromatUser.companyLogoDocumentId ?? undefined;\n if (glaromatUserPictureDocumentId !== undefined) {\n const response = await this.$service.api.documents.downloadImage(glaromatUserPictureDocumentId);\n return { data: response };\n }\n return undefined;\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!./printQRCode.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!./printQRCode.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./printQRCode.vue?vue&type=template&id=6262155c&scoped=true&\"\nimport script from \"./printQRCode.vue?vue&type=script&lang=ts&\"\nexport * from \"./printQRCode.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./printQRCode.vue?vue&type=style&index=0&id=6262155c&scoped=true&lang=css&\"\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 \"6262155c\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./printQRCode.vue?vue&type=style&index=0&id=6262155c&scoped=true&lang=css&\""],"sourceRoot":""}