{"version":3,"sources":["webpack:///./src/components/company/Users.vue","webpack:///./src/components/roles/RoleSelector.vue","webpack:///src/components/roles/RoleSelector.vue","webpack:///./src/components/roles/RoleSelector.vue?ee56","webpack:///./src/components/roles/RoleSelector.vue?d2f9","webpack:///src/components/company/Users.vue","webpack:///./src/components/company/Users.vue?0aab","webpack:///./src/components/company/Users.vue?adb3"],"names":["staticClass","attrs","_vm","headers","scopedSlots","key","_ref","item","model","value","userRoleId","expression","canAccessFeature","FEATURES","MULTI_COMPANY","headerBase","_ref4","userId","staticRenderFns","render","_c","_self","permittedRoles","$t","callback","computedRole","_v","_s","name","props","disabled","type","Boolean","default","modelValue","prop","data","roleValue","computed","_objectSpread","mapState","mapGetters","get","set","v","$emit","isSuperAndIsLower","_this","permitted","foundRole","roles","find","e","defaultRoleKey","methods","mapActions","getNameForRole","roleId","res","d","updateUserRole","_this2","_asyncToGenerator","_regeneratorRuntime","mark","_callee","wrap","_context","prev","next","updateRole","role","targetUserId","stop","created","_this3","_callee2","_context2","userRole","component","components","RoleSelector","text","externalUsers","concat","clickedRow","currentUser","getById","$router","push","r","getCompanyUsers","getRolesByCompany","companyRepository","getAllExternalUsers","then","catch","sent"],"mappings":"mJAA4D,EAAU,W,IAA0BA,OAA0BC,EAAK,EAAC,S,OAAC,QAAUC,CAAG,EAACC,OAAO,C,YAASD,c,MAAiB,CAAoB,kBAACE,MAAW,EAACF,aAASG,iBAAG,I,YAAqC,EAADC,GAAJC,E,IAAQ,iBAAqF,eAAG,aAACF,MAAG,MAAY,iE,KAAuB,Y,GAA2BJ,SAAM,G,IAAC,IAAUM,K,MAAY,mBAACC,MAAM,CAACC,UAAW,EAACC,Q,MAAwC,CAA8B,MAAC,aAACC,SAAU,SAAC,GAAiB,0BAAI,mC,KAA6C,e,GAG9kBV,SAAM,G,IAAC,EAAM,EAAG,K,MAAC,IAAQ,wGAAS,MAAC,CAAG,KAAC,GAAC,MAAQ,W,GAA4C,CAAC,kBAAIC,OAAO,aAAe,MACp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AAe,eAAAC,iBAAAC,MAAA,SAAAC,IAAA,OAAAF,iBAAAG,MAAA,SAAAC,GAAA,eAAAA,EAAAC,KAAAD,EAAAE,MAAA,UAEA9D,EAAAU,SAAA8B,EAAAuC,YAAArE,SACA8B,EAAAC,UAAA,gBAAAmB,EAAAE,KAAA,eAAAF,EAAAE,KAAA,EAEAtB,EAAAwC,QAAAhF,EAAAU,QAAA,OACA8B,EAAAyC,QAAAC,KAAA,iBAAAL,OAAA7E,EAAAU,SAAA,wBAAAkD,EAAAM,UAAAR,MANAH,IAUAhB,kBAAA,SAAA4C,GACA,QAAA1C,UAAA,uBAEA,IAAAC,EAAA,KAAAC,MAAAC,MAAA,SAAAC,GAAA,OAAAA,EAAA1C,YAAAgF,KACA,OAAAzC,GAAA,cAAAA,EAAAI,kBAMAqB,QAAA,eAAAb,EAAA,YAAAC,eAAAC,iBAAAC,MAAA,SAAAY,IAAA,OAAAb,iBAAAG,MAAA,SAAAW,GAAA,eAAAA,EAAAT,KAAAS,EAAAR,MAAA,cAAAQ,EAAAR,KAAA,EACAR,EAAA8B,kBAAA,cAAAd,EAAAR,KAAA,EACAR,EAAA+B,oBAAA,cAAAf,EAAAR,KAAA,EACAwB,OACAC,sBACAC,MAAA,SAAApC,GAAA,OAAAA,EAAAvB,QACA4D,OAAA,8BAHAnC,EAAAsB,cAAAN,EAAAoB,KAAA,wBAAApB,EAAAJ,UAAAG,MAHAd,KC5H8S,ICO1S,EAAY,eACd,EACA,EACA5C,GACA,EACA,KACA,KACA,MAIa,e","file":"js/chunk-2d2170db.5febf131.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('v-data-table',{staticClass:\"elevation-1\",attrs:{\"headers\":_vm.headers,\"items\":_vm.companyUsers,\"items-per-page\":50},scopedSlots:_vm._u([{key:`item.createdAt`,fn:function({ item }){return [_vm._v(\" \"+_vm._s(_vm.humanDate(item.createdAt, \"dd MMM yyyy - HH:mm\"))+\" \")]}},{key:`item.role`,fn:function({ item }){return [_c('RoleSelector',{attrs:{\"user-id\":item.userId},model:{value:(item.userRoleId),callback:function ($$v) {_vm.$set(item, \"userRoleId\", $$v)},expression:\"item.userRoleId\"}})]}},{key:`item.actions`,fn:function({ item }){return [(\n (item.userId === _vm.currentUser.userId || _vm.permitted('User.Update')) &&\n _vm.isSuperAndIsLower(item.userRoleId)\n )?_c('v-icon',{attrs:{\"dark\":\"\",\"color\":\"primary\"},on:{\"click\":function($event){return _vm.clickedRow(item)}}},[_vm._v(\"mdi-pencil\")]):_vm._e()]}}],null,true)}),(\n _vm.canAccessFeature(_vm.FEATURES.MULTI_COMPANY) && _vm.externalUsers.length > 0\n )?_c('div',[_c('h3',{staticClass:\"pa-2\"},[_vm._v(\" \"+_vm._s(_vm.$t(\"company.externalUsers\"))+\" \")]),(_vm.externalUsers.length > 0)?_c('v-data-table',{staticClass:\"elevation-1\",attrs:{\"headers\":_vm.headerBase,\"items\":_vm.externalUsers,\"items-per-page\":50},scopedSlots:_vm._u([{key:`item.createdAt`,fn:function({ item }){return [_vm._v(\" \"+_vm._s(_vm.humanDate(item.createdAt, \"dd MMM yyyy - HH:mm\"))+\" \")]}},{key:`item.role`,fn:function({ item }){return [_c('RoleSelector',{attrs:{\"disabled\":\"\",\"user-id\":item.userId},model:{value:(item.userRoleId),callback:function ($$v) {_vm.$set(item, \"userRoleId\", $$v)},expression:\"item.userRoleId\"}})]}}],null,true)}):_vm._e()],1):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[(\n _vm.permittedRoles &&\n _vm.computedRole &&\n _vm.permitted('UserRole.Update') &&\n _vm.isSuperAndIsLower &&\n !_vm.disabled\n )?_c('v-select',{attrs:{\"item-text\":\"name\",\"item-value\":\"userRoleId\",\"items\":_vm.permittedRoles,\"disabled\":!_vm.permitted('UserRole.Update'),\"label\":_vm.$t('user.role')},on:{\"change\":(v) => _vm.updateUserRole(v)},model:{value:(_vm.computedRole),callback:function ($$v) {_vm.computedRole=$$v},expression:\"computedRole\"}}):_c('span',{staticClass:\"text-overline\"},[_vm._v(_vm._s(_vm.getNameForRole(_vm.computedRole)))])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??ref--13-1!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RoleSelector.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??ref--13-1!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RoleSelector.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./RoleSelector.vue?vue&type=template&id=8fd7a852\"\nimport script from \"./RoleSelector.vue?vue&type=script&lang=js\"\nexport * from \"./RoleSelector.vue?vue&type=script&lang=js\"\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","\n\n\n\n\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??ref--13-1!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Users.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js??ref--13-1!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Users.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Users.vue?vue&type=template&id=5eb83e5d\"\nimport script from \"./Users.vue?vue&type=script&lang=js\"\nexport * from \"./Users.vue?vue&type=script&lang=js\"\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":""}