{"version":3,"sources":["webpack:///./src/views/Berater/BeraterList.vue?b252","webpack:///./src/views/Berater/BeraterList.vue?4479","webpack:///./src/views/Berater/BeraterList.vue?4e4f","webpack:///./src/views/Berater/BeraterList.vue","webpack:///./src/services/berater-service.ts"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","_v","_s","$t","directives","name","rawName","value","expression","domProps","on","$event","target","composing","filter","_m","model","callback","$$v","filteredUser","_e","_l","item","class","IsActive","FullNameFormal","staticStyle","getFirmaList","KundeDtos","Id","staticRenderFns","user","loading","kunden","x","map","Firma","join","created","userService","mounted","GetList","search","FullName","Kunden","setFilter","BeraterList","component","ResendInvitation","entity","Promise","a","post","apiUrl","endpoint","apiHeaders","RemoveOTP"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,MAAM,CAACE,YAAY,mBAAmB,CAACF,EAAG,aAAa,CAACG,MAAM,CAAC,KAAO,MAAM,GAAK,oBAAoB,CAACP,EAAIQ,GAAGR,EAAIS,GAAGT,EAAIU,GAAG,yCAAyCN,EAAG,MAAM,CAACE,YAAY,8BAA8B,CAACF,EAAG,IAAI,CAACE,YAAY,gCAAgCF,EAAG,QAAQ,CAACO,WAAW,CAAC,CAACC,KAAK,QAAQC,QAAQ,UAAUC,MAAOd,EAAU,OAAEe,WAAW,WAAWT,YAAY,eAAeC,MAAM,CAAC,GAAK,WAAW,KAAO,OAAO,YAAc,SAASS,SAAS,CAAC,MAAShB,EAAU,QAAGiB,GAAG,CAAC,MAAQ,SAASC,GAAWA,EAAOC,OAAOC,YAAqBpB,EAAIqB,OAAOH,EAAOC,OAAOL,cAAa,GAAGV,EAAG,QAAQ,CAACE,YAAY,iBAAiB,CAACN,EAAIsB,GAAG,GAAGlB,EAAG,QAAQ,CAACA,EAAG,KAAK,CAACA,EAAG,cAAc,CA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WADA,WAEIhD,KAAKyB,aAAezB,KAAKqC,KAAKjB,QAAO,SAAAoB,GAAI,sBAAyB,EAAKpB,OAAQoB,EAAES,SAAUT,EAAEU,WAC7F,OAAWb,KAAKc,UAAUnD,KAAKoB,SAFnC,GADC,eAAM,W,2BAtBUgC,EAAW,GAF/B,eAAU,KAEUA,GA2BrB,EA3BA,CAAyC,QAApB,IClEmV,I,YCOpWC,EAAY,eACd,EACAvD,EACAsC,GACA,EACA,KACA,KACA,MAIa,aAAAiB,E,sxDCZf,cACI,a,OACI,YAAM,OAAM,YAAU,KAY9B,OAdoC,OAKnB,YAAAC,iBAAb,SAA8BC,G,qBAAeC,SAAO,W,kDAC/B,SAAM,EAAAC,EAAMC,KAAK,OAAOC,OAAQ3D,KAAK4D,SAAW,oBAAsBL,EAAOpB,GAAI,KAAM,OAAO0B,a,OAC/G,OADiB,SACV,CAAP,GAAO,WAGE,YAAAC,UAAb,SAAuBP,G,qBAAeC,SAAO,W,kDACxB,SAAM,EAAAC,EAAMC,KAAK,OAAOC,OAAQ3D,KAAK4D,SAAW,aAAeL,EAAOpB,GAAI,KAAM,OAAO0B,a,OACxG,OADiB,SACV,CAAP,GAAO,WAEf,EAdA,CAAoC","file":"js/chunk-4633cc68.8776b91b.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"list-action-box\"},[_c('ics-button',{attrs:{\"type\":\"add\",\"to\":\"/berater/edit/0\"}},[_vm._v(_vm._s(_vm.$t('Administration.Berater hinzufügen')))]),_c('div',{staticClass:\"input-with-icon form-group\"},[_c('i',{staticClass:\"bt-icon inline size-12 lupe\"}),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.filter),expression:\"filter\"}],staticClass:\"form-control\",attrs:{\"id\":\"password\",\"type\":\"text\",\"placeholder\":\"Suche\"},domProps:{\"value\":(_vm.filter)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.filter=$event.target.value}}})])],1),_c('table',{staticClass:\"table b-table\"},[_vm._m(0),_c('thead',[_c('tr',[_c('sortable-th',{attrs:{\"sortkey\":'FullNameFormal'},model:{value:(_vm.filteredUser),callback:function ($$v) {_vm.filteredUser=$$v},expression:\"filteredUser\"}},[_vm._v(\"Name des Beraters\")]),_c('th'),_c('th'),_c('th'),_c('th',[_vm._v(_vm._s(_vm.$t('Administration.Kunden')))]),_c('th')],1)]),_c('tbody',[_c('tr',[(_vm.loading)?_c('td',{staticClass:\"text-center\",attrs:{\"colspan\":\"5\"}},[_c('spinner')],1):_vm._e()]),_vm._l((_vm.filteredUser),function(item){return _c('tr',{class:{ 'new': !item.IsActive, 'audited': item.IsActive}},[_c('td',[_c('div',{staticClass:\"d-flex align-items-center\"},[_c('i',{staticClass:\"bt-icon size-12 nutzer-1\"}),_c('span',{staticClass:\"ml-2\"},[_vm._v(_vm._s(item.FullNameFormal))])])]),_c('td',{staticStyle:{\"vertical-align\":\"middle\"}},[(item.Rolle_ICS_Administrator)?_c('i',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip\"}],staticClass:\"bt-icon size-12 admin\",attrs:{\"title\":_vm.$t('Berater.IstAdmin')}}):_vm._e()]),_c('td',[(item.HasPassword)?_c('i',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip\"}],staticClass:\"bt-icon size-16 schluessel-1\",attrs:{\"title\":_vm.$t('Berater.HatPasswort')}}):_vm._e()]),_c('td',{staticStyle:{\"vertical-align\":\"middle\"}},[(!item.IsActive)?_c('i',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip\"}],staticClass:\"bt-icon size-12 schloss-1\",attrs:{\"title\":_vm.$t('Berater.IstInaktiv')}}):_vm._e()]),_c('td',[_vm._v(_vm._s(_vm.getFirmaList(item.KundeDtos)))]),_c('td',{staticClass:\"righttd hiddentd\"},[_c('router-link',{staticClass:\"w-100\",attrs:{\"tag\":\"a\",\"to\":'/berater/edit/'+ item.Id,\"title\":_vm.$t('Berater.Berater bearbeiten')}},[_c('span',{staticClass:\"bt-icon stift table-icon\"})])],1)])})],2)])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('colgroup',[_c('col',{staticStyle:{\"width\":\"30%\"}}),_c('col',{staticStyle:{\"width\":\"16px\"}}),_c('col',{staticStyle:{\"width\":\"16px\"}}),_c('col',{staticStyle:{\"width\":\"16px\"}})])}]\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\nimport {Component, Vue, Watch} from 'vue-property-decorator';\nimport {User} from \"../../models/user-model\";\nimport {PageStores} from \"@/store/modules/page-store\";\nimport {BeraterService} from \"../../services/berater-service\";\nimport {containsWoCaseMultipleFn} from \"@/helper/global-helper\";\nimport {Kunde} from \"@/models/kunde-model\";\n\n@Component({\n})\nexport default class BeraterList extends Vue {\n private userService!: BeraterService;\n public user: User[] = [];\n public filteredUser: User[] = [];\n private filter: string = '';\n private loading: boolean = true;\n\n getFirmaList(kunden: Kunde[]){\n return kunden.filter(x=>x.IsActive).map(x=>x.Firma).join(', ');\n }\n\n async created() {\n this.userService = new BeraterService();\n }\n\n async mounted() {\n this.filter = PageStores.user.filter;\n this.user = await this.userService.GetList();\n this.search();\n this.loading = false;\n }\n\n @Watch('filter')\n search() {\n this.filteredUser = this.user.filter(x=> containsWoCaseMultipleFn(this.filter, x.FullName, x.Kunden))\n PageStores.user.setFilter(this.filter);\n }\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BeraterList.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/ts-loader/index.js??ref--12-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BeraterList.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./BeraterList.vue?vue&type=template&id=2b32eac6&\"\nimport script from \"./BeraterList.vue?vue&type=script&lang=ts&\"\nexport * from \"./BeraterList.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","import {CrudService} from \"@/services/crud-service\";\r\nimport {User} from \"@/models/user-model\";\r\nimport axios from \"axios\";\r\nimport {config} from \"@/appconfig\";\r\nimport {TsObjFactory} from \"@/helper/global-helper\";\r\n\r\nexport class BeraterService extends CrudService{\r\n constructor(){\r\n super(User, 'berater');\r\n }\r\n\r\n public async ResendInvitation(entity: User): Promise{\r\n const response = await axios.post(config.apiUrl +this.endpoint + 'resendInvitation/' + entity.Id, null, config.apiHeaders);\r\n return true;\r\n }\r\n\r\n public async RemoveOTP(entity: User): Promise{\r\n const response = await axios.post(config.apiUrl +this.endpoint + 'removeOTP/' + entity.Id, null, config.apiHeaders);\r\n return true;\r\n }\r\n}\r\n"],"sourceRoot":""}