{"version":3,"sources":["webpack:///./src/views/Eventsview.vue?8bb4","webpack:///src/views/Eventsview.vue","webpack:///./src/views/Eventsview.vue?9ba2","webpack:///./src/views/Eventsview.vue","webpack:///./src/classes/hpUser.js"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","message","snackbarTimeout","model","value","callback","$$v","$set","expression","_v","_s","snackbarText","on","$event","snackbar","assignConsultantDialog","ref","staff","eventGroupSlot","staticClass","saveConsultant","loader","search","_l","event","key","eventSlotGroupId","assigned","scopedSlots","_u","fn","_g","getInitialsByEmail","getNameByEmail","company","code","location","_f","date","room","setActive","saveEventStatus","openConsultantDialog","staticRenderFns","components","Header","data","events","nextToken","hpUser","created","_created","_asyncToGenerator","regeneratorRuntime","mark","_callee","nextEvents","_this","wrap","_context","prev","next","getUsers","nextRecord","sent","push","apply","_toConsumableArray","map","eventLocation","eventCompany","isDeleted","id","name","town","status","assignedTo","JSON","parse","active","_","orderBy","stop","arguments","methods","_nextRecord","_callee2","_context2","moment","subtract","format","Event","getEventsByEventSlotGroups","abrupt","items","_getUsers","_callee3","that","hpUserObj","_context3","forEach","user","text","firstName","lastName","email","filter","charAt","_this2","$refs","formUpdateGroupEvent","validate","API","graphql","graphqlOperation","mutations","input","stringify","then","result","index","findIndex","grp","updateEventSlotGroup","showSuccessMessage","_this3","updateEvent","e","Object","assign","concat","_this4","computed","filteredData","_this5","toLowerCase","indexOf","component","_classCallCheck","_createClass","Promise","resolve","reject","Storage","get","level","cognitoUsers","users","s3avatar","getAvatarImage","s3avatarUrl","_getUserByUsername","username","queryStringParameters","cognitoUser","getUserByUsername","_x","_getAwsCognitoGroups","cognitoGroups","groups","getAwsCognitoGroups","_createAwsCognitoUser","_callee4","form","_context4","body","post","msg","createAwsCognitoUser","_x2","_deleteAwsCognitoUser","_callee5","_context5","deleteAwsCognitoUser","_x3","_updateAwsCognitoUserAttributes","_callee6","addRoles","removeRoles","_context6","put","updateAwsCognitoUserAttributes","_x4","_x5","_x6","_resetAwsCognitoPassword","_callee7","_context7","resetAwsCognitoPassword","_x7","_disableUser","_callee8","_context8","disableUser","_x8","_enableUser","_callee9","_context9","enableUser","_x9","_updateAwsCognitoUserRoles","_callee10","_context10","updateAwsCognitoUserRoles","_x10","_x11","_x12","_getUserRoles","_callee11","_context11","Auth","currentAuthenticatedUser","awsGroups","signInUserSession","accessToken","payload","roles","getUserRoles"],"mappings":"uHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,aAAa,CAACE,MAAM,CAAC,QAAUN,EAAIO,QAAQC,gBAAgB,OAAS,IAAIC,MAAM,CAACC,MAAOV,EAAIO,QAAgB,SAAEI,SAAS,SAAUC,GAAMZ,EAAIa,KAAKb,EAAIO,QAAS,WAAYK,IAAME,WAAW,qBAAqB,CAACd,EAAIe,GAAG,SAASf,EAAIgB,GAAGhB,EAAIO,QAAQU,cAAc,UAAUb,EAAG,QAAQ,CAACE,MAAM,CAAC,KAAO,GAAG,KAAO,IAAIY,GAAG,CAAC,MAAQ,SAASC,GAAQnB,EAAIO,QAAQa,UAAW,KAAS,CAACpB,EAAIe,GAAG,YAAY,GAAGX,EAAG,WAAW,CAACE,MAAM,CAAC,WAAa,GAAG,YAAY,SAASG,MAAM,CAACC,MAAOV,EAA0B,uBAAEW,SAAS,SAAUC,GAAMZ,EAAIqB,uBAAuBT,GAAKE,WAAW,2BAA2B,CAACV,EAAG,SAAS,CAACA,EAAG,eAAe,CAACJ,EAAIe,GAAG,uBAAuBX,EAAG,aAAaA,EAAG,cAAc,CAACA,EAAG,SAAS,CAACkB,IAAI,wBAAwB,CAAClB,EAAG,WAAW,CAACE,MAAM,CAAC,MAAQN,EAAIuB,MAAM,UAAW,EAAK,MAAQ,gBAAgBd,MAAM,CAACC,MAAOV,EAAIwB,eAAyB,WAAEb,SAAS,SAAUC,GAAMZ,EAAIa,KAAKb,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,WAGZ,wBAAAP,EAAA/H,UAAA8H,OAAA,SAAAS,IAAA,OAAAV,EAAA7I,MAAA,KAAAiB,WAAA,OAAAsI,EAdA,MAcAxK,EAxJa","file":"js/chunk-5a15bcf9.be18e865.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('v-snackbar',{attrs:{\"timeout\":_vm.message.snackbarTimeout,\"bottom\":\"\"},model:{value:(_vm.message.snackbar),callback:function ($$v) {_vm.$set(_vm.message, \"snackbar\", $$v)},expression:\"message.snackbar\"}},[_vm._v(\"\\n \"+_vm._s(_vm.message.snackbarText)+\"\\n \"),_c('v-btn',{attrs:{\"dark\":\"\",\"text\":\"\"},on:{\"click\":function($event){_vm.message.snackbar = false}}},[_vm._v(\"Close\")])],1),_c('v-dialog',{attrs:{\"scrollable\":\"\",\"max-width\":\"600px\"},model:{value:(_vm.assignConsultantDialog),callback:function ($$v) {_vm.assignConsultantDialog=$$v},expression:\"assignConsultantDialog\"}},[_c('v-card',[_c('v-card-title',[_vm._v(\"Assign consultant\")]),_c('v-divider'),_c('v-card-text',[_c('v-form',{ref:\"formUpdateGroupEvent\"},[_c('v-select',{attrs:{\"items\":_vm.staff,\"multiple\":true,\"label\":\"Assign to...\"},model:{value:(_vm.eventGroupSlot.assignedTo),callback:function ($$v) {_vm.$set(_vm.eventGroupSlot, \"assignedTo\", $$v)},expression:\"eventGroupSlot.assignedTo\"}})],1)],1),_c('v-divider'),_c('v-card-actions',[_c('v-btn',{staticClass:\"hp--btn\",attrs:{\"color\":\"blue darken-1\",\"text\":\"\"},on:{\"click\":function($event){_vm.assignConsultantDialog = false}}},[_vm._v(\"Close\")]),_c('v-spacer'),_c('v-btn',{staticClass:\"hp--btn\",attrs:{\"color\":\"blue darken-1\",\"text\":\"\"},on:{\"click\":_vm.saveConsultant}},[_vm._v(\"Save\")])],1)],1)],1),_c('v-container',[_c('Header'),_c('v-overlay',{attrs:{\"value\":_vm.loader}},[_c('v-progress-circular',{attrs:{\"indeterminate\":\"\",\"size\":\"64\"}})],1),_c('v-card',{staticClass:\"mx-auto\",attrs:{\"max-width\":\"1100\"}},[_c('v-toolbar',{attrs:{\"flat\":\"\"}},[_c('v-toolbar-title',{staticClass:\"grey--text\"},[_vm._v(\"Upcoming events\")]),_c('div',{staticClass:\"flex-grow-1\"}),_c('v-text-field',{staticClass:\"mt-7\",attrs:{\"label\":\"Search\",\"required\":\"\",\"append-icon\":\"search\"},model:{value:(_vm.search),callback:function ($$v) {_vm.search=$$v},expression:\"search\"}})],1),_c('v-divider'),_c('v-card-text',_vm._l((_vm.filteredData),function(event){return _c('div',{key:event.eventSlotGroupId},[_c('v-layout',{staticClass:\"ma-1\",attrs:{\"row\":\"\",\"wrap\":\"\"}},[_c('v-flex',{attrs:{\"xs12\":\"\",\"sm12\":\"\",\"md1\":\"\",\"lg1\":\"\",\"xl1\":\"\"}},_vm._l((event.assignedTo),function(assigned){return _c('v-tooltip',{key:assigned,attrs:{\"right\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nreturn [_c('v-avatar',_vm._g({staticClass:\"ma-2\",attrs:{\"color\":\"red\",\"size\":\"34\"}},on),[_c('span',{staticClass:\"white--text headline\"},[_vm._v(_vm._s(_vm.getInitialsByEmail(assigned)))])])]}}],null,true)},[_c('span',[_vm._v(\"Assigned to \"+_vm._s(_vm.getNameByEmail(assigned)))])])}),1),_c('v-flex',{attrs:{\"xs12\":\"\",\"sm12\":\"\",\"md3\":\"\",\"lg3\":\"\",\"xl3\":\"\"}},[_c('div',{staticClass:\"caption grey--text\"},[_vm._v(\"Company/Event\")]),_c('div',{staticClass:\"black--text\"},[_vm._v(\"\\n \"+_vm._s(event.company)+\" - \"+_vm._s(event.event)+\"\\n \")])]),_c('v-flex',{attrs:{\"xs12\":\"\",\"sm12\":\"\",\"md1\":\"\",\"lg1\":\"\",\"xl1\":\"\"}},[_c('div',{staticClass:\"caption grey--text\"},[_vm._v(\"Code\")]),_c('div',{staticClass:\"black--text\"},[_vm._v(_vm._s(event.code))])]),_c('v-flex',{attrs:{\"xs12\":\"\",\"sm12\":\"\",\"md1\":\"\",\"lg1\":\"\",\"xl1\":\"\"}},[_c('div',{staticClass:\"caption grey--text\"},[_vm._v(\"Location\")]),_c('div',{staticClass:\"black--text\"},[_vm._v(_vm._s(event.location))])]),_c('v-flex',{attrs:{\"xs12\":\"\",\"sm12\":\"\",\"md1\":\"\",\"lg1\":\"\",\"xl1\":\"\"}},[_c('div',{staticClass:\"caption grey--text\"},[_vm._v(\"Date\")]),_c('div',{staticClass:\"black--text\"},[_vm._v(\"\\n \"+_vm._s(_vm._f(\"moment\")(event.date,\"DD/MM/YYYY\"))+\"\\n \")])]),_c('v-flex',{attrs:{\"xs12\":\"\",\"sm12\":\"\",\"md1\":\"\",\"lg1\":\"\",\"xl1\":\"\"}},[_c('div',{staticClass:\"caption grey--text\"},[_vm._v(\"Room\")]),_c('div',{staticClass:\"black--text\"},[_vm._v(_vm._s(event.room))])]),_c('v-flex',{attrs:{\"xs12\":\"\",\"sm12\":\"\",\"md1\":\"\",\"lg1\":\"\",\"xl1\":\"\"}},[_c('div',{staticClass:\"caption grey--text\"},[_vm._v(\"Active\")]),_c('v-switch',{staticClass:\"pt-0 mt-1 ml-1\",attrs:{\"inset\":\"\",\"color\":\"error\"},on:{\"click\":function($event){return _vm.setActive(event)}},model:{value:(event.active),callback:function ($$v) {_vm.$set(event, \"active\", $$v)},expression:\"event.active\"}})],1),_c('v-flex',{attrs:{\"xs12\":\"\",\"sm12\":\"\",\"md2\":\"\",\"lg2\":\"\",\"xl2\":\"\"}},[_c('v-btn-toggle',{attrs:{\"color\":\"info\"},model:{value:(event.status),callback:function ($$v) {_vm.$set(event, \"status\", $$v)},expression:\"event.status\"}},[_c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nreturn [_c('v-btn',_vm._g({attrs:{\"value\":\"Live\"},on:{\"click\":function($event){return _vm.saveEventStatus(event, 'Live')}}},on),[_c('v-icon',{attrs:{\"color\":\"green\"}},[_vm._v(\"mdi-play\")])],1)]}}],null,true)},[_c('span',[_vm._v(\"Live\")])]),_c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nreturn [_c('v-btn',_vm._g({attrs:{\"value\":\"Paused\"},on:{\"click\":function($event){return _vm.saveEventStatus(event, 'Paused')}}},on),[_c('v-icon',{attrs:{\"color\":\"orange\"}},[_vm._v(\"mdi-pause\")])],1)]}}],null,true)},[_c('span',[_vm._v(\"Paused\")])]),_c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nreturn [_c('v-btn',_vm._g({attrs:{\"value\":\"Draft\"},on:{\"click\":function($event){return _vm.saveEventStatus(event, 'Draft')}}},on),[_c('v-icon',{attrs:{\"color\":\"black\"}},[_vm._v(\"mdi-stop\")])],1)]}}],null,true)},[_c('span',[_vm._v(\"Draft\")])])],1)],1),_c('v-flex',{attrs:{\"xs12\":\"\",\"sm12\":\"\",\"md1\":\"\",\"lg1\":\"\",\"xl1\":\"\"}},[_c('div',{staticClass:\"float-right\"},[_c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nreturn [_c('v-btn',_vm._g({staticClass:\"ma-2\",attrs:{\"fab\":\"\",\"dark\":\"\",\"x-small\":\"\",\"color\":\"purple\"},on:{\"click\":function($event){return _vm.openConsultantDialog(event)}}},on),[_c('v-icon',{attrs:{\"dark\":\"\"}},[_vm._v(\"people\")])],1)]}}],null,true)},[_c('span',[_vm._v(\"Assign User\")])])],1)])],1),_c('v-divider')],1)}),0)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\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/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Eventsview.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Eventsview.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Eventsview.vue?vue&type=template&id=2c4221a0&\"\nimport script from \"./Eventsview.vue?vue&type=script&lang=js&\"\nexport * from \"./Eventsview.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","import { Auth, Storage } from \"aws-amplify\";\nimport _ from \"lodash\";\nimport { API } from \"aws-amplify\";\n\nexport class hpUser {\n constructor() {}\n\n getAvatarImage(key) {\n return new Promise((resolve, reject) => {\n Storage.get(key, {\n level: \"public\"\n }).then(result => {\n resolve(result);\n });\n });\n }\n\n async getUsers() {\n let that = this;\n return new Promise(function(resolve, reject) {\n API.get(\"hpManageUserApi\", \"/users/listUsers/\").then(cognitoUsers => {\n const users = _.orderBy(cognitoUsers.users, \"firstName\", \"asc\");\n users.forEach(function(user, index) {\n if (user.s3avatar) {\n that.getAvatarImage(user.s3avatar).then(result => {\n users[index].s3avatarUrl = result;\n });\n }\n });\n return resolve(users);\n });\n });\n }\n\n async getUserByUsername(username) {\n return new Promise(function(resolve, reject) {\n API.get(\"hpManageUserApi\", \"/users/getgroupbyusername\", {\n queryStringParameters: {\n email: username\n }\n }).then(cognitoUser => {\n return resolve(cognitoUser.users);\n });\n });\n }\n\n async getAwsCognitoGroups() {\n return new Promise(function(resolve, reject) {\n API.get(\"hpManageUserApi\", \"/users/listgroups/\").then(cognitoGroups => {\n return resolve(cognitoGroups.groups);\n });\n });\n }\n\n async createAwsCognitoUser(form) {\n return new Promise(function(resolve, reject) {\n const body = {\n form\n };\n API.post(\"hpManageUserApi\", \"/users/createuser/\", { body }).then(\n result => {\n return resolve(result.msg);\n }\n );\n });\n }\n\n async deleteAwsCognitoUser(username) {\n return new Promise(function(resolve, reject) {\n API.get(\"hpManageUserApi\", \"/users/deletecognitouser/\", {\n queryStringParameters: {\n username: username\n }\n }).then(result => {\n return resolve(result.msg);\n });\n });\n }\n\n async updateAwsCognitoUserAttributes(addRoles, removeRoles, form) {\n return new Promise(function(resolve, reject) {\n const body = {\n addRoles,\n removeRoles,\n form\n };\n API.put(\"hpManageUserApi\", \"/users/updateCognitoUserAttributes/\", {\n body\n }).then(result => {\n return resolve(result.msg);\n });\n });\n }\n\n async resetAwsCognitoPassword(username) {\n return new Promise(function(resolve, reject) {\n API.get(\"hpManageUserApi\", \"/users/resetuserpassword/\", {\n queryStringParameters: {\n username: username\n }\n }).then(result => {\n return resolve(result.msg);\n });\n });\n }\n\n async disableUser(username) {\n return new Promise(function(resolve, reject) {\n API.get(\"hpManageUserApi\", \"/users/disablecognitouser/\", {\n queryStringParameters: {\n username: username\n }\n }).then(result => {\n return resolve(result.msg);\n });\n });\n }\n\n async enableUser(username) {\n return new Promise(function(resolve, reject) {\n API.get(\"hpManageUserApi\", \"/users/enablecognitouser/\", {\n queryStringParameters: {\n username: username\n }\n }).then(result => {\n return resolve(result.msg);\n });\n });\n }\n\n async updateAwsCognitoUserRoles(addRoles, removeRoles, username) {\n const body = {\n addRoles,\n removeRoles,\n username\n };\n return new Promise(function(resolve, reject) {\n API.put(\"hpManageUserApi\", \"/users/updatecognitouserroles/\", {\n body\n }).then(result => {\n return resolve(result.msg);\n });\n });\n }\n\n async getUserRoles() {\n return new Promise(function(resolve, reject) {\n Auth.currentAuthenticatedUser().then(user => {\n const awsGroups =\n user.signInUserSession.accessToken.payload[\"cognito:groups\"];\n if (awsGroups) {\n const roles =\n user.signInUserSession.accessToken.payload[\"cognito:groups\"];\n resolve(roles);\n }\n });\n });\n }\n}\n"],"sourceRoot":""}