{"version":3,"sources":["webpack:///./src/views/pages/app/siha/processes/createOrUpdateDocumentation/5.documentation.vue?55f7","webpack:///./src/services/generated/types/model/resource/ShareSiHaDocumentationRequestModel.ts","webpack:///./src/services/viewModel/resource/ShareSiHaDocumentationRequestViewModel.ts","webpack:///./src/views/pages/app/siha/processes/createOrUpdateDocumentation/5.documentation.vue?5856","webpack:///./src/views/pages/app/siha/processes/createOrUpdateDocumentation/5.documentation.vue?ffcc","webpack:///./src/views/pages/app/siha/processes/createOrUpdateDocumentation/5.documentation.vue","webpack:///./src/services/generated/types/model/request/GetSafetyAnchorPointsBySiHaDocumentationRequestModel.ts","webpack:///./src/services/viewModel/request/SiHaSafetyAnchorPoint/GetSafetyAnchorPointsBySiHaDocumentationRequestViewModel.ts"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","staticClass","_v","_s","$t","isLoading","scopedSlots","_u","key","fn","proxy","_l","anchor","name","resolveSafetyHookName","safetyHookId","$format","localDate","installationDate","isDocumentationCompleted","innerValue","qrcodeUrl","_e","ref","mobileShareLink","on","$event","printQRCode","id","_","copyToClipboard","$refs","mobileLink","isEmailSendLoading","model","value","shareSiHaDocumentation","callback","$$v","$set","expression","onSendSiHaDocumentationPerEmail","emailWasSent","isOnSiteSiHaDocumentationAvailable","requestError","statusItems","displayArchiveDocumentationDisclaimer","isDownloadLoading","onSiHaDocumentationDownload","staticRenderFns","dto","sendToEmailAddress","shareLink","transformFromQuery","queries","transformToDTO","transformFromDTO","extend","auth","props","type","Object","default","undefined","callSaveServiceFunction","Function","data","safetyHooks","anchorPoints","checked","caption","computed","tenant","$router","currentRoute","params","workspace","window","location","origin","shareId","qrCodeEnabled","$config","values","siHaDocumentationId","Number","parseInt","get","set","$emit","mounted","loadSafetyHooks","populateData","nextInspectionDueDate","$date","now","add","format","methods","$service","api","siHaDocumentation","setTimeout","downloadSiHaDocumentation","response","created","date","fileName","title","utils","downloadFile","usedSH","find","sh","loadSiHaDocumentationStatuses","siHaSafetyHook","getSafetyHookList","items","req","GetSafetyAnchorPointsBySiHaDocumentationRequestViewModel","sihaDocumentationId","siHaSafetyAnchorPoint","getSafetyAnchorPointsBySiHaDocumentation","routeData","resolve","open","href","component","parseFloat","isNaN"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,iBAAiB,CAACA,EAAG,QAAQ,CAACA,EAAG,QAAQ,CAACE,MAAM,CAAC,KAAO,GAAG,IAAM,KAAK,CAACF,EAAG,QAAQ,CAACG,YAAY,QAAQ,CAACH,EAAG,QAAQ,CAACE,MAAM,CAAC,KAAO,KAAK,CAACF,EAAG,KAAK,CAACG,YAAY,QAAQ,CAACP,EAAIQ,GAAG,IAAIR,EAAIS,GAAGT,EAAIU,GAAG,kDAAkD,SAASN,EAAG,UAAU,CAACE,MAAM,CAAC,QAAUN,EAAIW,UAAU,MAAQ,IAAIC,YAAYZ,EAAIa,GAAG,CAAC,CAACC,IAAI,UAAUC,GAAG,WAAW,MAAO,CAACX,EAAG,KAAK,CAACA,EAAG,KAAK,CAACJ,EAAIQ,GAAGR,EAAIS,GAAGT,EAAIU,GAAG,yDAAyDN,EAAG,KAAK,CAACJ,EAAIQ,GAAGR,EAAIS,GAAGT,EAAIU,GAAG,2DAA2DN,EAAG,KAAK,CAACJ,EAAIQ,GAAGR,EAAIS,GAAGT,EAAIU,GAAG,oDAAoDN,EAAG,KAAK,CAACJ,EAAIQ,GAAGR,EAAIS,GAAGT,EAAIU,GAAG,qDAAqDM,OAAM,GAAM,CAACF,IAAI,OAAOC,GAAG,WAAW,OAAOf,EAAIiB,GAAIjB,EAAgB,cAAE,SAASkB,GAAQ,OAAOd,EAAG,KAAK,CAACU,IAAII,EAAOC,MAAM,CAACf,EAAG,KAAK,CAACJ,EAAIQ,GAAGR,EAAIS,GAAGS,EAAOC,SAASf,EAAG,KAAK,CAACJ,EAAIQ,GAAG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AKuD,IAAIsE,oBAAsBrF,GAEnC,EAnBA,CAA2F,Q,ICP3F,2B,+CAGA,OAHsF,oBAC1E,YAAAoB,eAAV,aACU,YAAAC,iBAAV,aACF,EAHA,CAAsF,G","file":"js/chunk-251f9470.32afb109.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('il-wizard-step',[_c('p-row',[_c('p-col',{attrs:{\"xs12\":\"\",\"lg9\":\"\"}},[_c('p-row',{staticClass:\"mb-3\"},[_c('p-col',{attrs:{\"xs12\":\"\"}},[_c('h4',{staticClass:\"mb-3\"},[_vm._v(\" \"+_vm._s(_vm.$t('page.siHaDocumentation5.title.zusammenfassung'))+\" \")])]),_c('p-table',{attrs:{\"loading\":_vm.isLoading,\"dense\":\"\"},scopedSlots:_vm._u([{key:\"headers\",fn:function(){return [_c('tr',[_c('th',[_vm._v(_vm._s(_vm.$t('page.siHaDocumentation5.label.nrBefestigungspunkt')))]),_c('th',[_vm._v(_vm._s(_vm.$t('page.siHaDocumentation5.label.verwendeteBefestigung')))]),_c('th',[_vm._v(_vm._s(_vm.$t('page.siHaDocumentation5.label.dokumentiertAm')))]),_c('th',[_vm._v(_vm._s(_vm.$t('page.siHaDocumentation5.label.vollständig')))])])]},proxy:true},{key:\"rows\",fn:function(){return _vm._l((_vm.anchorPoints),function(anchor){return _c('tr',{key:anchor.name},[_c('td',[_vm._v(_vm._s(anchor.name))]),_c('td',[_vm._v(_vm._s(_vm.resolveSafetyHookName(anchor.safetyHookId)))]),_c('td',[_vm._v(_vm._s(_vm.$format.localDate(anchor.installationDate)))]),_c('td',[_c('p-checkbox',{attrs:{\"value\":anchor.isDocumentationCompleted,\"readonly\":\"\"}})],1)])})},proxy:true}])})],1),_c('p-row',{staticClass:\"mb-3\"},[(_vm.innerValue.isOnSiteSiHaDocumentationAvailable)?[_c('p-col',{staticClass:\"mt-3\",attrs:{\"xs12\":\"\"}},[_c('h4',{staticClass:\"mb-3\"},[_vm._v(\" \"+_vm._s(_vm.$t('page.siHaDocumentation5.title.vorOrtDokumentation'))+\" \")])]),_c('p-row',{attrs:{\"spacious\":\"\"}},[_c('p-col',{attrs:{\"sm12\":\"\",\"md6\":\"\"}},[_vm._v(\" \"+_vm._s(_vm.$t('page.siHaDocumentation5.label.vorOrtDokumentationText'))+\" \"),_c('p-row',{attrs:{\"align-center\":\"\"}},[(_vm.qrCodeEnabled)?_c('p-col',{attrs:{\"xs4\":\"\",\"md5\":\"\",\"lg3\":\"\"}},[_c('img',{staticClass:\"qrcode\",attrs:{\"src\":_vm.qrcodeUrl,\"alt\":\"QRCode\"}})]):_vm._e(),_c('p-col',{attrs:{\"xs8\":\"\",\"md7\":\"\",\"lg9\":\"\"}},[_c('a',{ref:\"mobileLink\",staticClass:\"breakall\",attrs:{\"target\":\"_blank\",\"href\":_vm.mobileShareLink}},[_vm._v(_vm._s(_vm.mobileShareLink))])]),_c('p-col',{attrs:{\"xs6\":\"\"}},[_c('p-button',{attrs:{\"secondary\":\"\"},on:{\"click\":function($event){return _vm.printQRCode(_vm.innerValue.id)}}},[_c('p-icon',{attrs:{\"left\":\"\",\"color\":\"interaction\"}},[_vm._v(\" print \")]),_vm._v(\" \"+_vm._s(_vm.$t('page.siHaDocumentation5.label.drucken'))+\" \")],1)],1),_c('p-col',{attrs:{\"xs6\":\"\",\"justify-end\":\"\"}},[_c('p-button',{attrs:{\"secondary\":\"\"},on:{\"click\":function($event){return _vm._.copyToClipboard(_vm.$refs.mobileLink)}}},[_c('p-icon',{attrs:{\"left\":\"\",\"color\":\"interaction\"}},[_vm._v(\" content_copy \")]),_vm._v(\" \"+_vm._s(_vm.$t('page.siHaDocumentation5.label.kopieren'))+\" \")],1)],1)],1)],1),_c('p-col',{attrs:{\"sm12\":\"\",\"md6\":\"\"}},[_vm._v(\" \"+_vm._s(_vm.$t('page.siHaDocumentation5.label.alternativLinkPerEmail'))+\" \"),_c('p-row',{staticClass:\"mt-3\"},[_c('p-col',{attrs:{\"grow\":\"\"}},[_c('p-text-field',{attrs:{\"loading\":_vm.isEmailSendLoading,\"label\":_vm.$t('page.siHaDocumentation5.label.email'),\"placeholder\":\"info@glaromat.ch\"},model:{value:(_vm.shareSiHaDocumentation.sendToEmailAddress),callback:function ($$v) {_vm.$set(_vm.shareSiHaDocumentation, \"sendToEmailAddress\", $$v)},expression:\"shareSiHaDocumentation.sendToEmailAddress\"}})],1),_c('p-col',{attrs:{\"shrink\":\"\",\"align-end\":\"\"}},[_c('p-button',{attrs:{\"disable\":_vm.isEmailSendLoading,\"loading\":_vm.isEmailSendLoading,\"primary\":\"\"},on:{\"click\":_vm.onSendSiHaDocumentationPerEmail}},[_c('p-icon',[_vm._v(\" send \")])],1)],1),_c('p-col',{attrs:{\"xs12\":\"\"}},[_c('p-alert',{attrs:{\"value\":_vm.emailWasSent,\"type\":\"success\",\"dismissable\":\"\"}},[_vm._v(\" \"+_vm._s(_vm.$t('page.siHaDocumentation5.text.emailWasSentSuccesfuly'))+\" \")])],1)],1)],1)],1)]:_vm._e(),(!_vm.innerValue.isOnSiteSiHaDocumentationAvailable)?[_c('p-col',{staticClass:\"mt-3\",attrs:{\"xs12\":\"\"}},[_c('h4',[_vm._v(\" \"+_vm._s(_vm.$t('page.siHaDocumentation5.title.vorOrtDokumentation'))+\" \")])]),_c('p-col',{attrs:{\"xs6\":\"\"}},[_c('p-alert',{attrs:{\"value\":\"true\",\"type\":\"info\"}},[_vm._v(\" \"+_vm._s(_vm.$t('page.siHaDocumentation5.label.documentationLinkNotAvailable'))+\" \")])],1)]:_vm._e()],2),(_vm.requestError)?_c('p-request-alert',{model:{value:(_vm.requestError),callback:function ($$v) {_vm.requestError=$$v},expression:\"requestError\"}}):_vm._e(),_c('p-row',{staticClass:\"mb-3 mt-3\"},[_c('p-col',{staticClass:\"mb-3 mt-3\",attrs:{\"xs12\":\"\"}},[_c('h4',{staticClass:\"mb-3\"},[_vm._v(\" \"+_vm._s(_vm.$t('page.siHaDocumentation5.title.statusDerDokumentation'))+\" \")]),_vm._v(\" \"+_vm._s(_vm.$t('page.siHaDocumentation5.label.statusDerDokumentationText'))+\" \")]),_c('p-col',{attrs:{\"xs12\":\"\",\"md4\":\"\",\"shrink\":\"\"}},[_c('p-select',{attrs:{\"items\":_vm.statusItems,\"label\":_vm.$t('page.siHaDocumentation5.label.status')},model:{value:(_vm.innerValue.siHaDocumentationStatus),callback:function ($$v) {_vm.$set(_vm.innerValue, \"siHaDocumentationStatus\", $$v)},expression:\"innerValue.siHaDocumentationStatus\"}})],1),_c('p-col',{attrs:{\"xs12\":\"\",\"md4\":\"\"}},[_c('p-date-field',{attrs:{\"label\":_vm.$t('page.siHaDocumentation5.label.naechsteKontrolle')},model:{value:(_vm.innerValue.nextInspectionDueDate),callback:function ($$v) {_vm.$set(_vm.innerValue, \"nextInspectionDueDate\", $$v)},expression:\"innerValue.nextInspectionDueDate\"}})],1)],1),_c('p-row',[(_vm.innerValue.displayArchiveDocumentationDisclaimer)?_c('p-col',{attrs:{\"xs12\":\"\",\"md8\":\"\"}},[_c('p-alert',{staticClass:\"pre-line\",attrs:{\"type\":\"warning\",\"value\":true}},[_vm._v(\" \"+_vm._s(_vm.$t('page.siHaDocumentation5.text.archiveDocumentationDisclaimer'))+\" \")])],1):_vm._e(),_c('p-col',{attrs:{\"xs12\":\"\",\"md8\":\"\"}},[_c('p-button',{attrs:{\"secondary\":\"\",\"stretch\":\"\",\"disabled\":!_vm.innerValue.displayArchiveDocumentationDisclaimer || _vm.isDownloadLoading,\"primary\":\"\",\"loading\":_vm.isDownloadLoading},on:{\"click\":_vm.onSiHaDocumentationDownload}},[_c('p-icon',{attrs:{\"color\":\"interaction\",\"left\":\"\"}},[_vm._v(\" picture_as_pdf \")]),_vm._v(\" \"+_vm._s(_vm.$t('page.siHaDocumentation5.label.dokumentationHerunterladen'))+\" \")],1)],1)],1)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","// ╭────────────────────────────────────────────────────────────────────────────────────╮\r\n// ┊ This file was automatically generated\r\n// ┊ Please do not modify manually\r\n// ┊ ©gl it 2022 - http://www.gl-it.ch\r\n// ╰────────────────────────────────────────────────────────────────────────────────────╯\r\n\r\nimport BaseModel from '@glittr/frontend-core/src/plugins/servicelayer/serviceTypes/baseModel';\r\nimport ShareSiHaDocumentationRequestDTO from '../../dto/resource/ShareSiHaDocumentationRequestDTO';\r\n\r\nexport default abstract class ShareSiHaDocumentationRequestModel extends BaseModel {\r\n /**\r\n * @type {email}\r\n */\r\n get sendToEmailAddress() { return this.dto.sendToEmailAddress; }\r\n set sendToEmailAddress(value) { this.dto.sendToEmailAddress = value; }\r\n /**\r\n */\r\n get shareLink() { return this.dto.shareLink; }\r\n set shareLink(value) { this.dto.shareLink = value; }\r\n\r\n protected transformFromQuery(queries: Record): void {\r\n let value: any;\r\n this.dto.sendToEmailAddress = queries.sendToEmailAddress;\r\n this.dto.shareLink = queries.shareLink;\r\n }\r\n}\r\n","import ShareSiHaDocumentationRequestModel from '../../generated/types/model/resource/ShareSiHaDocumentationRequestModel';\r\n\r\nexport default class ShareSiHaDocumentationRequestViewModel extends ShareSiHaDocumentationRequestModel {\r\n protected transformToDTO() {}\r\n protected transformFromDTO() {}\r\n}\r\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\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\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';\n// import LookupSiHaDocumentationStatusRequestViewModel from '@/src/services/viewModel/request/SiHaDocumentationStatus/LookupSiHaDocumentationStatusRequestViewModel';\nimport GetSafetyAnchorPointsBySiHaDocumentationRequestViewModel from '@/src/services/viewModel/request/SiHaSafetyAnchorPoint/GetSafetyAnchorPointsBySiHaDocumentationRequestViewModel';\n// import Int64LookupResourceViewModel from '@/src/services/viewModel/resource/Int64LookupResourceViewModel';\nimport SafetyAnchorPointListResourceViewModel from '@/src/services/viewModel/resource/SafetyAnchorPointListResourceViewModel';\nimport SafetyHookResourceViewModel from '@/src/services/viewModel/resource/SafetyHookResourceViewModel';\nimport ShareSiHaDocumentationRequestViewModel from '@/src/services/viewModel/resource/ShareSiHaDocumentationRequestViewModel';\nimport SiHaDocumentationResourceViewModel from '@/src/services/viewModel/resource/SiHaDocumentationResourceViewModel';\n\nexport default Vue.extend({\n auth: true,\n props: {\n value: { type: Object, default: undefined },\n callSaveServiceFunction: { type: Function, default: () => (() => {}) },\n },\n data: () => ({\n isDownloadLoading: false,\n isEmailSendLoading: false,\n shareSiHaDocumentation: new ShareSiHaDocumentationRequestViewModel(),\n isLoading: false,\n safetyHooks: [] as SafetyHookResourceViewModel[],\n anchorPoints: [] as SafetyAnchorPointListResourceViewModel[],\n checked: [] as boolean[],\n requestError: undefined as any,\n emailWasSent: false,\n // siHadocumentationStatuses: [] as Int64LookupResourceViewModel[],\n statusItems: [\n { caption: Vue.$t('page.siHaDocumentationOverview.select.status.1'), id: 1 },\n { caption: Vue.$t('page.siHaDocumentationOverview.select.status.2'), id: 2 },\n { caption: Vue.$t('page.siHaDocumentationOverview.select.status.3'), id: 3 },\n { caption: Vue.$t('page.siHaDocumentationOverview.select.status.4'), id: 4 },\n { caption: Vue.$t('page.siHaDocumentationOverview.select.status.5'), id: 5 },\n ],\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.innerValue.shareId}`;\n },\n qrCodeEnabled(): boolean {\n return this.$config.values['siha-qrcode-enabled'];\n },\n qrcodeUrl(): string {\n return `${this.$config.values['siha-qrcode-generator-url']}${this.mobileShareLink}`;\n },\n siHaDocumentationId() {\n const id = this.$router.currentRoute?.params?.id as string | undefined;\n if (id) {\n return Number.parseInt(id, 10);\n }\n return undefined;\n },\n innerValue: {\n get(): SiHaDocumentationResourceViewModel {\n return this.value ?? {};\n },\n set(value: SiHaDocumentationResourceViewModel) {\n this.$emit('input', value);\n },\n },\n },\n async mounted() {\n // await this.loadSiHaDocumentationStatuses();\n await this.loadSafetyHooks();\n await this.populateData();\n if (!this.innerValue.nextInspectionDueDate) {\n this.innerValue.nextInspectionDueDate = this.$date.now().add(1, 'years').format('YYYY-MM-DD');\n }\n },\n methods: {\n async onSendSiHaDocumentationPerEmail() {\n this.isEmailSendLoading = true;\n this.shareSiHaDocumentation.shareLink = this.mobileShareLink;\n if (this.shareSiHaDocumentation.sendToEmailAddress) {\n try {\n await this.$service.api.siHaDocumentation.shareSiHaDocumentation(this.siHaDocumentationId!, this.shareSiHaDocumentation);\n this.emailWasSent = true;\n setTimeout(() => {\n this.emailWasSent = false;\n }, 7000);\n } catch (error) {\n this.requestError = error;\n }\n }\n this.isEmailSendLoading = false;\n },\n async onSiHaDocumentationDownload() {\n this.isDownloadLoading = true;\n await this.callSaveServiceFunction(); // save data first\n const response = await this.$service.api.siHaDocumentation.downloadSiHaDocumentation(this.siHaDocumentationId!);\n const created = this.$format.date(this.innerValue.created!, 'YYYY-MM-DD');\n const fileName = `${created}_${this.innerValue.title}.pdf`;\n this.$service.utils.downloadFile(fileName, response);\n this.isDownloadLoading = false;\n },\n resolveSafetyHookName(id: number): string {\n const usedSH = this.safetyHooks.find((sh: SafetyHookResourceViewModel) => sh.id === id);\n return usedSH?.name ?? '...';\n },\n async loadSiHaDocumentationStatuses() {\n // unused because the backend does not yet support translations\n // the statusies are loaded from translation-file.\n // see data -> statusItems\n // // // this.isLoading = true;\n // // // const req = new LookupSiHaDocumentationStatusRequestViewModel();\n // // // const response = await this.$service.api.siHaDocumentationStatus.lookupSiHaDocumentationStatus(req);\n // // // this.siHadocumentationStatuses = response.items;\n // // // this.isLoading = false;\n },\n async loadSafetyHooks() {\n this.isLoading = true;\n const response = await this.$service.api.siHaSafetyHook.getSafetyHookList();\n this.safetyHooks = response.items;\n this.isLoading = false;\n },\n async populateData() {\n this.isLoading = true;\n const req = new GetSafetyAnchorPointsBySiHaDocumentationRequestViewModel();\n req.sihaDocumentationId = this.siHaDocumentationId;\n const response = await this.$service.api.siHaSafetyAnchorPoint.getSafetyAnchorPointsBySiHaDocumentation(req);\n this.anchorPoints = response.items;\n this.isLoading = false;\n },\n async printQRCode(id : number) {\n // open page printQRCode in new window..\n const routeData = this.$router.resolve(`/glaromat/il/siha/documentation/${id}/qrcode`);\n window.open(routeData.href, '_blank');\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!./5.documentation.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!./5.documentation.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./5.documentation.vue?vue&type=template&id=71a24452&scoped=true&\"\nimport script from \"./5.documentation.vue?vue&type=script&lang=ts&\"\nexport * from \"./5.documentation.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 \"71a24452\",\n null\n \n)\n\nexport default component.exports","// ╭────────────────────────────────────────────────────────────────────────────────────╮\r\n// ┊ This file was automatically generated\r\n// ┊ Please do not modify manually\r\n// ┊ ©gl it 2022 - http://www.gl-it.ch\r\n// ╰────────────────────────────────────────────────────────────────────────────────────╯\r\n\r\nimport BaseModel from '@glittr/frontend-core/src/plugins/servicelayer/serviceTypes/baseModel';\r\nimport GetSafetyAnchorPointsBySiHaDocumentationRequestDTO from '../../dto/request/GetSafetyAnchorPointsBySiHaDocumentationRequestDTO';\r\n\r\nexport default abstract class GetSafetyAnchorPointsBySiHaDocumentationRequestModel extends BaseModel {\r\n // #region ──BodyRequest──────────────────────────╮\r\n // #endregion ───────────────────────────────────────╯\r\n // #region ──HeaderRequest──────────────────────────╮\r\n // #endregion ─────────────────────────────────────────╯\r\n // #region ──QueryRequest──────────────────────────╮\r\n /**\r\n * @type {int64}\r\n */\r\n get sihaDocumentationId() { return this.dto.sihaDocumentationId; }\r\n set sihaDocumentationId(value) { this.dto.sihaDocumentationId = value; }\r\n // #endregion ────────────────────────────────────────╯\r\n\r\n protected transformFromQuery(queries: Record): void {\r\n let value: any;\r\n value = Number.parseFloat(queries.sihaDocumentationId);\r\n value = Number.isNaN(value) ? undefined : value;\r\n this.dto.sihaDocumentationId = value;\r\n }\r\n}\r\n","import GetSafetyAnchorPointsBySiHaDocumentationRequestModel from '../../../generated/types/model/request/GetSafetyAnchorPointsBySiHaDocumentationRequestModel';\r\n\r\nexport default class GetSafetyAnchorPointsBySiHaDocumentationRequestViewModel extends GetSafetyAnchorPointsBySiHaDocumentationRequestModel {\r\n protected transformToDTO() {}\r\n protected transformFromDTO() {}\r\n}\r\n"],"sourceRoot":""}