{"version":3,"sources":["webpack:///./src/views/pages/app/dashboard.vue?133e","webpack:///./src/services/generated/types/model/resource/SetAcceptanceRequestModel.ts","webpack:///./src/services/viewModel/resource/SetAcceptanceRequestViewModel.ts","webpack:///./src/views/pages/app/dashboard.vue?84f5","webpack:///./src/views/pages/app/dashboard.vue?ee6b","webpack:///./src/views/pages/app/dashboard.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","staticClass","_v","_s","$t","model","value","requestAGB","callback","$$v","$set","expression","acceptGlaromatSihaTermsOfCondition","on","acceptAGB","staticRenderFns","dto","transformFromQuery","queries","undefined","transformToDTO","transformFromDTO","extend","auth","data","isAGBAccepted","isLoading","computed","tenant","$route","params","workspace","mounted","$service","api","me","getMySiHaTerms","methods","setAcceptance","window","location","reload","component"],"mappings":"uHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,cAAc,CAACA,EAAG,QAAQ,CAAEJ,EAAiB,cAAEI,EAAG,QAAQ,CAACE,MAAM,CAAC,KAAO,GAAG,IAAM,GAAG,IAAM,KAAK,CAACF,EAAG,SAAS,CAACE,MAAM,CAAC,cAAc,KAAK,CAACF,EAAG,KAAK,CAACG,YAAY,QAAQ,CAACP,EAAIQ,GAAG,IAAIR,EAAIS,GAAGT,EAAIU,GAAG,2CAA2C,OAAON,EAAG,IAAI,CAACG,YAAY,aAAa,CAACP,EAAIQ,GAAG,IAAIR,EAAIS,GAAGT,EAAIU,GAAG,qDAAqD,OAAON,EAAG,QAAQ,CAACE,MAAM,CAAC,YAAY,KAAK,CAACF,EAAG,cAAc,CAACE,MAAM,CAAC,GAAK,qCAAqC,CAACF,EAAG,WAAW,CAACE,MAAM,CAAC,QAAU,KAAK,CAACN,EAAIQ,GAAG,IAAIR,EAAIS,GAAGT,EAAIU,GAAG,gDAAgD,QAAQ,IAAI,IAAI,IAAI,GAAGN,EAAG,QA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AAA,GAAM/B,KAAKsC,SAASC,IAAIC,GAAGG,cAAc3C,KAAKY,a,cAA9C,SACAgC,OAAOC,SAASC,S,aAGhB,M,WADA9C,KAAK+B,WAAY,EACX,E,OAER/B,KAAK+B,WAAY,E,sCCzIub,I,YCO5cgB,EAAY,eACd,EACAjD,EACAsB,GACA,EACA,KACA,KACA,MAIa,aAAA2B,E","file":"js/chunk-2d222cca.cbdd485a.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('p-container',[_c('p-row',[(_vm.isAGBAccepted)?_c('p-col',{attrs:{\"sm12\":\"\",\"md6\":\"\",\"lg4\":\"\"}},[_c('p-card',{attrs:{\"fill-height\":\"\"}},[_c('h5',{staticClass:\"mb-2\"},[_vm._v(\" \"+_vm._s(_vm.$t('page.dashboard.title.sihaDocumentation'))+\" \")]),_c('p',{staticClass:\"caption-1\"},[_vm._v(\" \"+_vm._s(_vm.$t('page.dashboard.text.sihaDocumentationInformation'))+\" \")]),_c('p-row',{attrs:{\"align-end\":\"\"}},[_c('router-link',{attrs:{\"to\":\"/glaromat/il/siha/documentations\"}},[_c('p-button',{attrs:{\"stretch\":\"\"}},[_vm._v(\" \"+_vm._s(_vm.$t('page.dashboard.button.documentationOverview'))+\" \")])],1)],1)],1)],1):_c('p-col',{attrs:{\"sm12\":\"\",\"md6\":\"\",\"lg4\":\"\"}},[_c('p-card',{attrs:{\"fill-height\":\"\"}},[_c('h5',{staticClass:\"mb-2\"},[_vm._v(\" \"+_vm._s(_vm.$t('page.dashboard.title.sihaDocumentation'))+\" \")]),(_vm.isLoading)?_c('p-progress-linear',{attrs:{\"indeterminate\":\"\"}}):[_c('p-checkbox',{attrs:{\"label\":_vm.$t('page.dashboard.label.agb')},model:{value:(_vm.requestAGB.acceptGlaromatSihaTermsOfCondition),callback:function ($$v) {_vm.$set(_vm.requestAGB, \"acceptGlaromatSihaTermsOfCondition\", $$v)},expression:\"requestAGB.acceptGlaromatSihaTermsOfCondition\"}}),_c('p-row',{attrs:{\"align-end\":\"\"}},[_c('p-button',{attrs:{\"disabled\":!_vm.requestAGB.acceptGlaromatSihaTermsOfCondition},on:{\"click\":_vm.acceptAGB}},[_vm._v(\" \"+_vm._s(_vm.$t('page.dashboard.button.requestAccess'))+\" \")])],1)]],2)],1),_c('p-col',{attrs:{\"sm12\":\"\",\"md6\":\"\",\"lg4\":\"\"}},[_c('p-card',{attrs:{\"fill-height\":\"\"}},[_c('h5',{staticClass:\"mb-2\"},[_vm._v(\" \"+_vm._s(_vm.$t('page.dashboard.title.whatsNew'))+\" \")]),_c('h6',[_vm._v(\" \"+_vm._s(_vm.$t('page.dashboard.label.version'))+\" \")]),_c('p',{staticClass:\"caption-1\"},[_vm._v(\" \"+_vm._s(_vm.$t('page.dashboard.text.releaseNotes'))+\" \")]),_c('p-row',{attrs:{\"align-end\":\"\"}},[_c('a',{attrs:{\"href\":_vm.$t('link.sihaChangelogPDF'),\"target\":\"_blank\"}},[_c('p-button',{attrs:{\"stretch\":\"\"}},[_vm._v(\" \"+_vm._s(_vm.$t('page.dashboard.button.downloadReleaseNotes'))+\" \")])],1)])],1)],1),_c('p-col',{attrs:{\"sm12\":\"\",\"md6\":\"\",\"lg4\":\"\"}},[_c('p-card',{attrs:{\"fill-height\":\"\"}},[_c('h5',{staticClass:\"mb-2\"},[_vm._v(\" \"+_vm._s(_vm.$t('page.dashboard.siha.documentation.title'))+\" \")]),_c('p',{staticClass:\"caption-1\"},[_vm._v(\" \"+_vm._s(_vm.$t('page.dashboard.siha.documentation.text'))+\" \")]),_c('p-row',{attrs:{\"align-end\":\"\"}},[_c('a',{attrs:{\"href\":_vm.$t('link.sihaDocumentationPDF'),\"target\":\"_blank\"}},[_c('p-button',{attrs:{\"stretch\":\"\"}},[_vm._v(\" \"+_vm._s(_vm.$t('page.dashboard.siha.documentation.pdf.button.text'))+\" \")])],1)])],1)],1),_c('p-col',{attrs:{\"sm12\":\"\",\"md6\":\"\",\"lg4\":\"\"}},[_c('p-card',{attrs:{\"fill-height\":\"\"}},[_c('h5',{staticClass:\"mb-2\"},[_vm._v(\" \"+_vm._s(_vm.$t('page.dashboard.title.sihaOnlineshop'))+\" \")]),_c('p',{staticClass:\"caption-1\"},[_vm._v(\" \"+_vm._s(_vm.$t('page.dashboard.text.orderSafetyHookInOnlineshop'))+\" \")]),_c('a',{attrs:{\"href\":_vm.$t('link.safetyHookCatalog'),\"target\":\"_blank\"}},[_vm._v(\" \"+_vm._s(_vm.$t('page.dashboard.link.safetyHook'))+\" \")]),_c('a',{attrs:{\"href\":_vm.$t('link.sesy19Catalog'),\"target\":\"_blank\"}},[_vm._v(\" \"+_vm._s(_vm.$t('page.dashboard.link.ropeSafetySystem'))+\" \")]),_c('p-row',{attrs:{\"align-end\":\"\"}},[_c('a',{attrs:{\"href\":_vm.$t('link.onlineShop'),\"target\":\"_blank\"}},[_c('p-button',{attrs:{\"stretch\":\"\"}},[_vm._v(\" \"+_vm._s(_vm.$t('page.dashboard.button.toOnlineShop'))+\" \")])],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 SetAcceptanceRequestDTO from '../../dto/resource/SetAcceptanceRequestDTO';\r\n\r\nexport default abstract class SetAcceptanceRequestModel extends BaseModel {\r\n /**\r\n */\r\n get acceptGlaromatSihaTermsOfCondition() { return this.dto.acceptGlaromatSihaTermsOfCondition; }\r\n set acceptGlaromatSihaTermsOfCondition(value) { this.dto.acceptGlaromatSihaTermsOfCondition = value; }\r\n\r\n protected transformFromQuery(queries: Record): void {\r\n let value: any;\r\n value = queries.acceptGlaromatSihaTermsOfCondition === 'true' ? true : queries.acceptGlaromatSihaTermsOfCondition;\r\n value = queries.acceptGlaromatSihaTermsOfCondition === 'false' ? false : undefined;\r\n this.dto.acceptGlaromatSihaTermsOfCondition = value;\r\n }\r\n}\r\n","import SetAcceptanceRequestModel from '../../generated/types/model/resource/SetAcceptanceRequestModel';\r\n\r\nexport default class SetAcceptanceRequestViewModel extends SetAcceptanceRequestModel {\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\nimport Vue from 'vue';\nimport SetAcceptanceRequestViewModel from '@/src/services/viewModel/resource/SetAcceptanceRequestViewModel';\n\nexport default Vue.extend({\n auth: true,\n data: () => ({\n isAGBAccepted: false,\n requestAGB: new SetAcceptanceRequestViewModel(),\n isLoading: false,\n }),\n computed: {\n tenant() {\n return this.$route.params.tenant;\n },\n workspace() {\n return this.$route.params.workspace;\n },\n },\n async mounted() {\n this.isAGBAccepted = await this.$service.api.me.getMySiHaTerms();\n this.isLoading = false;\n },\n methods: {\n async acceptAGB() {\n if (this.requestAGB.acceptGlaromatSihaTermsOfCondition) {\n this.isLoading = true;\n try {\n await this.$service.api.me.setAcceptance(this.requestAGB);\n window.location.reload();\n } catch (e) {\n this.isLoading = false;\n throw e;\n }\n this.isLoading = false;\n }\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=55899658&\"\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":""}