{"version":3,"sources":["webpack:///./src/services/generated/types/model/request/GetSafetyAnchorPointsBySiHaDocumentationRequestModel.ts","webpack:///./src/services/viewModel/request/SiHaSafetyAnchorPoint/GetSafetyAnchorPointsBySiHaDocumentationRequestViewModel.ts","webpack:///./src/views/pages/app/siha/mobile/dashboard.vue?5e9e","webpack:///./src/views/pages/app/siha/mobile/dashboard.vue?f371","webpack:///./src/views/pages/app/siha/mobile/dashboard.vue?a888","webpack:///./src/views/pages/app/siha/mobile/dashboard.vue"],"names":["this","dto","sihaDocumentationId","value","transformFromQuery","queries","Number","parseFloat","isNaN","undefined","transformToDTO","transformFromDTO","render","_vm","_h","$createElement","_c","_self","staticClass","attrs","_e","isLoading","sihaDocumentation","isSiHaDocumentationEditable","_v","_s","projectCaption","$t","safetyAnchorPointList","length","_l","item","index","key","siHaDocumentationShareId","$format","ellipsis","name","staticRenderFns","extend","layout","auth","data","SiHaDocumentationResourceViewModel","computed","$router","currentRoute","params","shareId","mounted","populateData","methods","$service","api","siHaDocumentation","getSiHaDocumentationByShareId","request","GetSafetyAnchorPointsBySiHaDocumentationRequestViewModel","id","siHaSafetyAnchorPoint","getSafetyAnchorPointsBySiHaDocumentation","response","items","component"],"mappings":"8KASA,2B,+CAmBA,OAnB2F,oBASzF,sBAAI,kCAAmB,C,IAAvB,WAA4B,OAAOA,KAAKC,IAAIC,qB,IAC5C,SAAwBC,GAASH,KAAKC,IAAIC,oBAAsBC,G,gCAGtD,YAAAC,mBAAV,SAA6BC,GAC3B,IAAIF,EACJA,EAAQG,OAAOC,WAAWF,EAAQH,qBAClCC,EAAQG,OAAOE,MAAML,QAASM,EAAYN,EAC1CH,KAAKC,IAAIC,oBAAsBC,GAEnC,EAnBA,CAA2F,Q,ICP3F,2B,+CAGA,OAHsF,oBAC1E,YAAAO,eAAV,aACU,YAAAC,iBAAV,aACF,EAHA,CAAsF,G,mDCFtF,IAAIC,EAAS,WAAa,IAAIC,EAAIb,KAASc,EAAGD,EAAIE,eAAmBC,E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xCC,QAAO,W,oHACX,SAAMjD,KAAKkD,gB,cAAX,S,YAEFC,QAAS,CACDD,aAAY,W,8HAES,OADzBlD,KAAKqB,WAAY,EACjB,EAAArB,KAAyB,GAAMA,KAAKoD,SAASC,IAAIC,kBAAkBC,8BAA8BvD,KAAKkC,2B,OAGrF,OAHjB,EAAKZ,kBAAoB,SACnBkC,EAAU,IAAIC,EAAA,KACpBD,EAAQtD,oBAAsBF,KAAKsB,kBAAkBoC,GACpC,GAAM1D,KAAKoD,SAASC,IAAIM,sBAAsBC,yCAAyCJ,I,cAAlGK,EAAW,SACjB7D,KAAK4B,sBAAwBiC,EAASC,MACtC9D,KAAKqB,WAAY,E,eChG6d,I,YCOhf0C,EAAY,eACd,EACAnD,EACA0B,GACA,EACA,KACA,KACA,MAIa,aAAAyB,E","file":"js/chunk-4f33de60.4db4dbf2.js","sourcesContent":["// ╭────────────────────────────────────────────────────────────────────────────────────╮\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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('p-container',{staticClass:\"fill-height\"},[(_vm.isLoading)?_c('p-progress-linear',{staticClass:\"mt-3\",attrs:{\"indeterminate\":\"\"}}):_vm._e(),(!_vm.isLoading && _vm.sihaDocumentation.isSiHaDocumentationEditable)?_c('p-row',[_c('p-col',{attrs:{\"xs12\":\"\",\"lg9\":\"\"}},[_c('p-row',[_c('p-col',{attrs:{\"xs12\":\"\"}},[_vm._v(\" \"+_vm._s(_vm.sihaDocumentation.projectCaption)+\" \")])],1),_c('p-row',[_c('p-col',{staticClass:\"my-3\",attrs:{\"xs12\":\"\"}},[_c('p-divider')],1)],1),_c('p-row',{staticClass:\"mb-3\"},[_c('p-col',{attrs:{\"xs12\":\"\"}},[_c('h4',{staticClass:\"mb-3\"},[_vm._v(\" \"+_vm._s(_vm.$t('page.mobileDashboard.title.safetyAnchorPoints'))+\" \")])])],1),_c('p-alert',{attrs:{\"value\":_vm.safetyAnchorPointList.length === 0,\"type\":\"info\"}},[_vm._v(\" \"+_vm._s(_vm.$t('page.mobileDashboard.label.noSafetyAnchorPoints'))+\" \")]),_c('p-row',_vm._l((_vm.safetyAnchorPointList),function(item,index){return _c('p-col',{key:index,attrs:{\"xs6\":\"\",\"sm4\":\"\",\"md3\":\"\"}},[_c('router-link',{attrs:{\"to\":(\"/glaromat/il/siha/mobile/documentation/\" + _vm.siHaDocumentationShareId + \"/safetyAnchorPoint/\" + (item.id))}},[_c('p-ratio',{attrs:{\"value\":16/9}},[_c('p-card',{attrs:{\"fill-height\":\"\"}},[_c('p-row',{attrs:{\"justify-center\":\"\",\"align-center\":\"\"}},[_c('h6',[_vm._v(_vm._s(_vm.$format.ellipsis(item.name, 12)))]),(item.isDocumentationCompleted)?_c('p-icon',{staticClass:\"absolute-bottom-right\"},[_vm._v(\" done \")]):_vm._e()],1)],1)],1)],1)],1)}),1)],1),_c('p-col',{attrs:{\"justify-end\":\"\",\"align-end\":\"\"}},[_c('p-button',{attrs:{\"spacious\":\"\"}},[_c('router-link',{attrs:{\"to\":(\"/glaromat/il/siha/mobile/documentation/\" + _vm.siHaDocumentationShareId + \"/safetyAnchorPoint\"),\"tag\":\"div\"}},[_c('p-icon',{attrs:{\"spacious\":\"\"}},[_vm._v(\" add \")])],1)],1)],1)],1):_vm._e(),(!_vm.isLoading && !_vm.sihaDocumentation.isSiHaDocumentationEditable)?_c('p-row',[_c('p-col',{attrs:{\"xs12\":\"\",\"lg9\":\"\"}},[_c('p-row',[_c('p-col',{attrs:{\"xs12\":\"\"}},[_c('p-alert',{attrs:{\"value\":\"true\",\"type\":\"info\"}},[_vm._v(\" \"+_vm._s(_vm.$t('page.mobileDashboard.label.projectClosed'))+\" \")])],1)],1)],1)],1):_vm._e()],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\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport Vue from 'vue';\nimport GetSafetyAnchorPointsBySiHaDocumentationRequestViewModel from '@/src/services/viewModel/request/SiHaSafetyAnchorPoint/GetSafetyAnchorPointsBySiHaDocumentationRequestViewModel';\nimport SafetyAnchorPointListResourceViewModel from '@/src/services/viewModel/resource/SafetyAnchorPointListResourceViewModel';\nimport SiHaDocumentationResourceViewModel from '@/src/services/viewModel/resource/SiHaDocumentationResourceViewModel';\n\nexport default Vue.extend({\n layout: 'layout-restricted-mobile-view',\n auth: true,\n data: () => ({\n sihaDocumentation: new SiHaDocumentationResourceViewModel(),\n isLoading: false,\n safetyAnchorPointList: [] as SafetyAnchorPointListResourceViewModel[],\n }),\n computed: {\n siHaDocumentationShareId() {\n return this.$router.currentRoute?.params?.shareId as string;\n },\n },\n async mounted() {\n await this.populateData();\n },\n methods: {\n async populateData() {\n this.isLoading = true;\n this.sihaDocumentation = await this.$service.api.siHaDocumentation.getSiHaDocumentationByShareId(this.siHaDocumentationShareId);\n const request = new GetSafetyAnchorPointsBySiHaDocumentationRequestViewModel();\n request.sihaDocumentationId = this.sihaDocumentation.id;\n const response = await this.$service.api.siHaSafetyAnchorPoint.getSafetyAnchorPointsBySiHaDocumentation(request);\n this.safetyAnchorPointList = response.items;\n this.isLoading = false;\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!./dashboard.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!./dashboard.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./dashboard.vue?vue&type=template&id=bf706588&\"\nimport script from \"./dashboard.vue?vue&type=script&lang=ts&\"\nexport * from \"./dashboard.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":""}