{"version":3,"sources":["webpack:///./src/views/admin/user/User.vue?b386","webpack:///src/views/admin/user/User.vue","webpack:///./src/views/admin/user/User.vue?5af6","webpack:///./src/views/admin/user/User.vue"],"names":["computed","events","components","UserPermissions","Loading","BRow","BCol","BCard","BButton","BAvatar","BFormInput","BForm","BFormGroup","vSelect","directives","VBTooltip","VBModal","Ripple","data","modal","title","message","isLoaded","brandsSelected","brandsOptions","userData","statusOptions","value","created","$store","getters","sub","$route","params","$router","push","name","$http","get","then","brandList","Object","keys","allowedBrands","map","key","concat","split","filter","item","includes","status","allowedPages","catch","$toast","component","ToastificationContent","props","text","icon","variant","methods","updateUser","attributes","allowed_pages","allowed_brands","join","email","phone_number","given_name","family_name","post","userId","deleteUser","$bvModal","hide","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","on","$event","_v","_e","_s","model","callback","$$v","$set","expression","staticStyle","rawName","modifiers","staticRenderFns"],"mappings":"mHAAA,I,mPCqRe,GACfA,SAAA,CACAC,WACAA,GAGAC,WAAA,CACAC,oBACAC,YACAC,SACAC,SACAC,UACAC,YACAC,YACAC,eACAC,UACAC,eACAC,aAEAC,WAAA,CACA,YAAAC,IACA,UAAAC,IACAC,YAEAC,UACA,CACAC,MAAA,CACAC,MAAA,GACAC,QAAA,IAEAC,YACAC,eAAA,GACAC,cAAA,GACAC,SAAA,GACAC,cAAA,CACA,CAAAN,MAAA,SAAAO,MAAA,GACA,CAAAP,MAAA,WAAAO,MAAA,MAIAC,UACA,IACA,KAAAH,SAAA,KAAAI,OAAAC,QAAA,uBAEA,KAAAL,SAAAM,MAAA,KAAAC,OAAAC,OAAAF,KACA,KAAAG,QAAAC,KAAA,CAAAC,KAAA,UAKA,KAAAC,MAAAC,IAAA,wCAAAC,MAAA,EAAArB,WACA,MAAAsB,EAAAC,OAAAC,KAAAxB,EAAAyB,eAAAC,cAAAC,GACA,OAAAzB,MAAAyB,EAAAlB,MAAAT,EAAAyB,cAAAE,OAEA,KAAArB,cAAA,KAAAA,cAAA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IzD,MAAME,eAAeuD,EAAIW,MAAM,EAAE,GAC3mJ,IGSpBU,EAEA,KACA,KACA,MAIa,UAAA1C,E","file":"js/chunk-2d0cf8d6.14e0eab9.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('section',[_c('b-row',[_c('b-col',{staticClass:\"mb-2\"},[_c('b-button',{staticClass:\"mr-1\",attrs:{\"variant\":\"outline-secondary\",\"size\":\"sm\"},on:{\"click\":function($event){return _vm.$router.push({ name: 'users' })}}},[_c('feather-icon',{staticClass:\"mr-50\",attrs:{\"icon\":\"ArrowLeftIcon\"}}),_c('span',{staticClass:\"align-middle\"},[_vm._v(\"Users\")])],1)],1)],1),[(!_vm.isLoaded)?_c('loading'):_vm._e()],(_vm.isLoaded)?[_c('b-row',{staticClass:\"my-3\"},[_c('b-col',[_c('b-avatar',{attrs:{\"size\":\"120px\",\"src\":require('@/assets/images/avatars/user-avatar.png')}}),_c('div',{staticClass:\"d-inline-block ml-1\"},[_c('h1',[_vm._v(_vm._s(_vm.userData.given_name)+\" \"+_vm._s(_vm.userData.family_name))]),_c('b-button',{staticClass:\"mr-1\",attrs:{\"variant\":\"outline-secondary\",\"size\":\"sm\"}},[_vm._v(\" Change Photo \")])],1)],1)],1),_c('b-row',{staticClass:\"match-height\"},[_c('b-col',{attrs:{\"lg\":\"6\"}},[_c('h4',{staticClass:\"mb-1 text-center\"},[_vm._v(\" User Informations \")]),_c('b-card',[_c('div',{staticClass:\"d-block\"},[_c('b-form',[_c('b-row',[_c('b-col',{attrs:{\"cols\":\"12\",\"md\":\"6\"}},[_c('b-form-group',{attrs:{\"label\":\"Name\",\"label-for\":\"name\"}},[_c('b-form-input',{attrs:{\"id\":\"name\"},model:{value:(_vm.userData.given_name),callback:function ($$v) {_vm.$set(_vm.userData, \"given_name\", $$v)},expression:\"userData.given_name\"}})],1)],1),_c('b-col',{attrs:{\"cols\":\"12\",\"md\":\"6\"}},[_c('b-form-group',{attrs:{\"label\":\"Surname\",\"label-for\":\"surname\"}},[_c('b-form-input',{model:{value:(_vm.userData.family_name),callback:function ($$v) {_vm.$set(_vm.userData, \"family_name\", $$v)},expression:\"userData.family_name\"}})],1)],1),_c('b-col',{attrs:{\"cols\":\"12\",\"md\":\"12\"}},[_c('b-form-group',{attrs:{\"label\":\"Email\",\"label-for\":\"email\"}},[_c('b-form-input',{attrs:{\"id\":\"email\",\"type\":\"email\"},model:{value:(_vm.userData.email),callback:function ($$v) {_vm.$set(_vm.userData, \"email\", $$v)},expression:\"userData.email\"}})],1)],1),_c('b-col',{attrs:{\"cols\":\"12\",\"md\":\"6\",\"lg\":\"6 \"}},[_c('b-form-group',{attrs:{\"label\":\"Mobile\",\"label-for\":\"mobile\"}},[_c('b-form-input',{attrs:{\"id\":\"mobile\"},model:{value:(_vm.userData.phone_number),callback:function ($$v) {_vm.$set(_vm.userData, \"phone_number\", $$v)},expression:\"userData.phone_number\"}})],1)],1),_c('b-col',{attrs:{\"cols\":\"12\",\"md\":\"6\"}},[_c('b-form-group',{attrs:{\"label\":\"Status\",\"label-for\":\"user-status\"}},[_c('v-select',{attrs:{\"options\":_vm.statusOptions,\"clearable\":false,\"input-id\":\"user-status\",\"label\":\"title\",\"disabled\":\"\"},model:{value:(_vm.userData.status),callback:function ($$v) {_vm.$set(_vm.userData, \"status\", $$v)},expression:\"userData.status\"}})],1)],1),_c('b-col',{attrs:{\"cols\":\"12\",\"md\":\"12\"}},[_c('b-form-group',{attrs:{\"label\":\"Brands\",\"label-for\":\"user-brands\"}},[_c('v-select',{staticStyle:{\"height\":\"100%\"},attrs:{\"options\":_vm.brandsOptions,\"clearable\":false,\"label\":\"title\",\"input-id\":\"user-brands\",\"multiple\":true},model:{value:(_vm.brandsSelected),callback:function ($$v) {_vm.brandsSelected=$$v},expression:\"brandsSelected\"}})],1)],1)],1)],1)],1)])],1),_c('b-col',{attrs:{\"lg\":\"6\"}},[_c('h4',{staticClass:\"mb-1 text-center\"},[_vm._v(\" User Permissions \")]),_c('user-permissions',{attrs:{\"pre-checked-ids\":_vm.userData['custom:allowed_pages']},on:{\"checkedPages\":function($event){_vm.userData.allowedPages=$event}}})],1)],1),_c('b-row',[_c('b-col',{staticClass:\"text-right\"},[_c('b-button',{directives:[{name:\"b-modal\",rawName:\"v-b-modal.modal-remove\",modifiers:{\"modal-remove\":true}}],staticClass:\"mr-1 btn-link\",attrs:{\"variant\":\"flat-danger\"}},[_vm._v(\"Delete\")]),_c('b-button',{staticClass:\"btn-link\",attrs:{\"variant\":\"primary\"},on:{\"click\":_vm.updateUser}},[_vm._v(\"Update Changes\")])],1)],1),_c('b-modal',{attrs:{\"id\":\"modal-remove\",\"hide-footer\":\"\",\"modal-class\":\"modal-danger\",\"centered\":\"\",\"title\":\"Are you sure?\"}},[_c('b-row',{staticClass:\"mb-1 mt-1\"},[_c('b-col',[_c('b-card-text',{staticClass:\"text-secondary mb1\"},[_vm._v(\" This action cannot be undone. \")]),_c('h3',{staticClass:\"py-2\"},[_vm._v(\" Do you want to delete \"),_c('span',{staticClass:\"text-primary\"},[_vm._v(_vm._s(_vm.userData.name))]),_vm._v(\"? \")])],1)],1),_c('b-row',{staticClass:\"mb-1\"},[_c('b-col',[_c('b-button',{staticClass:\"btn-block\",attrs:{\"variant\":\"gradient-secondary\"},on:{\"click\":function($event){return _vm.$bvModal.hide('modal-remove')}}},[_vm._v(\" Cancel \")])],1),_c('b-col',[_c('b-button',{staticClass:\"btn-block\",attrs:{\"variant\":\"gradient-danger\"},on:{\"click\":_vm.deleteUser}},[_vm._v(\" Yes \")])],1)],1)],1),_c('b-modal',{attrs:{\"id\":\"notification-modal\",\"title\":_vm.modal.title,\"centered\":\"\",\"hide-footer\":\"\"}},[_c('p',[_vm._v(_vm._s(_vm.modal.message))])])]:_vm._e()],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n\n \n \n \n \n Users\n \n \n \n \n \n \n \n \n \n \n\n \n {{ userData.given_name }} {{ userData.family_name }}\n \n Change Photo\n \n \n \n \n \n \n \n User Informations\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 User Permissions\n \n \n\n \n \n \n \n Delete\n Update Changes\n \n \n\n \n \n \n \n This action cannot be undone.\n \n \n Do you want to delete {{ userData.name }}?\n \n \n \n \n \n \n Cancel\n \n \n \n \n Yes\n \n \n \n \n \n {{ modal.message }}\n \n \n \n\n\n\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./User.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./User.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./User.vue?vue&type=template&id=63988b47\"\nimport script from \"./User.vue?vue&type=script&lang=js\"\nexport * from \"./User.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":""}
{{ modal.message }}