{"version":3,"sources":["webpack:///./src/views/pages/app/siha/processes/createOrUpdateDocumentation/3.systemDetails.vue?8a8f","webpack:///./src/views/pages/app/siha/processes/createOrUpdateDocumentation/3.systemDetails.vue?4708","webpack:///./src/views/pages/app/siha/processes/createOrUpdateDocumentation/3.systemDetails.vue?5ead","webpack:///./src/views/pages/app/siha/processes/createOrUpdateDocumentation/3.systemDetails.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","_e","isLoading","staticClass","_v","_s","$t","_l","safetyHookList","group","groupName","key","accordionsOpen","on","$event","innerValue","safetyHookIds","item","index","includes","id","name","onHookSelectionChange","staticRenderFns","extend","auth","props","value","type","Object","default","undefined","data","SafetyHookResourceListResultViewModel","computed","get","set","$emit","beforeMount","$set","mounted","$service","api","siHaSafetyHook","getSafetyHookList","methods","hookTypeId","selected","push","filter","component"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,iBAAiB,CAACA,EAAG,QAAQ,CAAEJ,EAAa,UAAEI,EAAG,oBAAoB,CAACE,MAAM,CAAC,cAAgB,MAAMN,EAAIO,KAAOP,EAAIQ,UAAg4BR,EAAIO,KAAz3BH,EAAG,QAAQ,CAACE,MAAM,CAAC,KAAO,GAAG,IAAM,GAAG,IAAM,GAAG,IAAM,KAAK,CAACF,EAAG,MAAM,CAACK,YAAY,QAAQ,CAACL,EAAG,OAAO,CAACK,YAAY,aAAa,CAACT,EAAIU,GAAG,IAAIV,EAAIW,GAAGX,EAAIY,GAAG,kEAAkE,SAASZ,EAAIa,GAAIb,EAAIc,eAA2B,cAAE,SAASC,EAAMC,GAAW,OAAOZ,EAAG,MAAM,CAACa,IAAID,GAAW,CAACZ,EAAG,cAAc,CAACK,YAAY,OAAOH,MAAM,CAAC,OAASN,EAAIkB,eAAeF,GAAW,MAAQA,GAAWG,GAAG,CAAC,MAAQ,SAASC,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A,IAAA,SCrEsb,I,YCOxgB8B,EAAY,eACd,EACAzD,EACA8B,GACA,EACA,KACA,KACA,MAIa,aAAA2B,E","file":"js/chunk-2d0c1d48.f288f4bc.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',[(_vm.isLoading)?_c('p-progress-linear',{attrs:{\"indeterminate\":\"\"}}):_vm._e(),(!_vm.isLoading)?_c('p-col',{attrs:{\"xs12\":\"\",\"md9\":\"\",\"lg6\":\"\",\"xl5\":\"\"}},[_c('div',{staticClass:\"mb-4\"},[_c('span',{staticClass:\"caption-1\"},[_vm._v(\" \"+_vm._s(_vm.$t('page.createOrUpdateDocumentation.label.usedSafetyAnchorPoints'))+\" \")])]),_vm._l((_vm.safetyHookList.itemsGrouped),function(group,groupName){return _c('div',{key:groupName},[_c('p-accordion',{staticClass:\"mb-4\",attrs:{\"value\":!_vm.accordionsOpen[groupName],\"title\":groupName},on:{\"input\":function($event){_vm.accordionsOpen[groupName] = !$event}}},[_c('div',[_c('p-divider'),(_vm.innerValue && _vm.innerValue.safetyHookIds)?_c('p-row',{attrs:{\"column\":\"\",\"dense\":\"\"}},_vm._l((group),function(item,index){return _c('p-checkbox',{key:index,attrs:{\"value\":_vm.innerValue.safetyHookIds.includes(item.id),\"label\":item.name},on:{\"input\":function($event){return _vm.onHookSelectionChange(item.id, $event)}}})}),1):_vm._e()],1)])],1)})],2):_vm._e()],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\nimport SafetyHookResourceListResultViewModel from '@/src/services/viewModel/resource/SafetyHookResourceListResultViewModel';\nimport SiHaDocumentationResourceViewModel from '@/src/services/viewModel/resource/SiHaDocumentationResourceViewModel';\nimport Vue from 'vue';\n\nexport default Vue.extend({\n auth: true,\n props: {\n value: { type: Object, default: undefined },\n },\n data: () => ({\n accordionsOpen: {} as Record,\n safetyHookList: new SafetyHookResourceListResultViewModel(),\n isLoading: false,\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 beforeMount() {\n this.$set(this.innerValue, 'safetyHookIds', this.innerValue.safetyHookIds ?? []);\n },\n async mounted() {\n this.isLoading = true;\n this.safetyHookList = await this.$service.api.siHaSafetyHook.getSafetyHookList();\n this.isLoading = false;\n },\n methods: {\n onHookSelectionChange(hookTypeId: number, selected: boolean) {\n if (selected) {\n this.innerValue.safetyHookIds!.push(hookTypeId);\n } else {\n this.innerValue.safetyHookIds = this.innerValue.safetyHookIds!.filter((id) => id !== hookTypeId);\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!./3.systemDetails.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!./3.systemDetails.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./3.systemDetails.vue?vue&type=template&id=52b4a3d1&\"\nimport script from \"./3.systemDetails.vue?vue&type=script&lang=ts&\"\nexport * from \"./3.systemDetails.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":""}