\n \n \n \n \n Add location\n \n \n \n \n \n \n \n \n \n Close\n \n Save\n \n \n \n \n\n \n \n \n Edit location\n \n \n \n \n \n \n \n \n \n Close\n \n Save\n \n \n \n \n\n \n \n Locations\n \n \n \n mdi-plus\n \n \n New location\n \n \n \n \n \n \n keyboard_return\n \n \n View companies\n \n\n \n \n \n \n \n \n \n \n \n edit\n \n Update location\n \n\n \n \n delete\n \n Delete location\n \n \n \n \n \n
\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!./CompanyLocations.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!./CompanyLocations.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./CompanyLocations.vue?vue&type=template&id=721ee3dc&\"\nimport script from \"./CompanyLocations.vue?vue&type=script&lang=js&\"\nexport * from \"./CompanyLocations.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","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\":\"500px\"},model:{value:(_vm.createEventDialog),callback:function ($$v) {_vm.createEventDialog=$$v},expression:\"createEventDialog\"}},[_c('v-card',[_c('v-card-title',[_vm._v(\"Create event\")]),_c('v-divider'),_c('v-card-text',[(_vm.showEventMessage)?_c('v-alert',{staticClass:\"mt-5\",attrs:{\"type\":\"error\",\"dense\":\"\"}},[_vm._v(\"Duplicate event code entered\")]):_vm._e(),_c('v-form',{ref:\"createEventForm\"},[_c('v-text-field',{attrs:{\"label\":\"Event name\",\"rules\":[_vm.rules.required],\"required\":\"\"},model:{value:(_vm.companyEventForm.name),callback:function ($$v) {_vm.$set(_vm.companyEventForm, \"name\", $$v)},expression:\"companyEventForm.name\"}}),_c('v-select',{attrs:{\"items\":_vm.eventTypes,\"rules\":[_vm.rules.required],\"label\":\"Type\"},model:{value:(_vm.companyEventForm.type),callback:function ($$v) {_vm.$set(_vm.companyEventForm, \"type\", $$v)},expression:\"companyEventForm.type\"}}),_c('v-text-field',{attrs:{\"label\":\"Code\",\"rules\":[_vm.rules.required],\"required\":\"\"},model:{value:(_vm.companyEventForm.code),callback:function ($$v) {_vm.$set(_vm.companyEventForm, \"code\", $$v)},expression:\"companyEventForm.code\"}})],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.createEventDialog = false}}},[_vm._v(\"Close\")]),_c('v-spacer'),_c('v-btn',{staticClass:\"hp--btn\",attrs:{\"color\":\"blue darken-1\",\"text\":\"\"},on:{\"click\":function($event){return _vm.onCreateEvent()}}},[_vm._v(\"Save\")])],1)],1)],1),_c('v-dialog',{attrs:{\"scrollable\":\"\",\"max-width\":\"500px\"},model:{value:(_vm.updateEventCodeDialog),callback:function ($$v) {_vm.updateEventCodeDialog=$$v},expression:\"updateEventCodeDialog\"}},[_c('v-card',[_c('v-card-title',[_vm._v(\"Update event code\")]),_c('v-divider'),_c('v-card-text',[(_vm.showUpdateEventCodeMessage)?_c('v-alert',{staticClass:\"mt-5\",attrs:{\"type\":\"error\",\"dense\":\"\"}},[_vm._v(\"Duplicate event code entered\")]):_vm._e(),_c('v-form',{ref:\"updateEventCode\"},[_c('v-text-field',{attrs:{\"label\":\"Code\",\"rules\":[_vm.rules.required],\"required\":\"\"},model:{value:(_vm.updateEventCode.code),callback:function ($$v) {_vm.$set(_vm.updateEventCode, \"code\", $$v)},expression:\"updateEventCode.code\"}})],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.updateEventCodeDialog = false}}},[_vm._v(\"Close\")]),_c('v-spacer'),_c('v-btn',{staticClass:\"hp--btn\",attrs:{\"color\":\"blue darken-1\",\"text\":\"\"},on:{\"click\":function($event){return _vm.onUpdateEventCode()}}},[_vm._v(\"Save\")])],1)],1)],1),_c('v-card',{staticClass:\"mx-auto\",attrs:{\"max-width\":\"1000\"}},[_c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nreturn [_c('v-btn',_vm._g({staticClass:\"hp--btn\",attrs:{\"color\":\"info\",\"dark\":\"\",\"small\":\"\",\"absolute\":\"\",\"top\":\"\",\"right\":\"\",\"fab\":\"\"},on:{\"click\":_vm.sendMessageToParent}},on),[_c('v-icon',[_vm._v(\"keyboard_return\")])],1)]}}])},[_c('span',[_vm._v(\"View companies\")])]),_c('v-toolbar',{attrs:{\"flat\":\"\"}},[_c('v-toolbar-title',{staticClass:\"grey--text\"},[_vm._v(\"Events\")]),_c('div',{staticClass:\"flex-grow-1\"}),_c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nreturn [_c('v-btn',_vm._g({staticClass:\"hp--btn\",attrs:{\"color\":\"primary\",\"dark\":\"\",\"small\":\"\",\"absolute\":\"\",\"bottom\":\"\",\"fab\":\"\"},on:{\"click\":function($event){_vm.createEventDialog = !_vm.createEventDialog}}},on),[_c('v-icon',[_vm._v(\"mdi-plus\")])],1)]}}])},[_c('span',[_vm._v(\"Create event\")])])],1),_c('v-divider'),_c('v-card-text',_vm._l((_vm.events),function(event){return _c('div',{key:event.id},[_c('v-layout',{staticClass:\"ma-1\",attrs:{\"row\":\"\",\"wrap\":\"\"}},[_c('v-flex',{attrs:{\"xs12\":\"\",\"sm4\":\"\",\"lg5\":\"\"}},[_c('div',{staticClass:\"caption grey--text\"},[_vm._v(\"Name\")]),_c('div',{staticClass:\"black--text\"},[_vm._v(_vm._s(event.name))])]),_c('v-flex',{attrs:{\"xs12\":\"\",\"md2\":\"\",\"lg2\":\"\"}},[_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\":\"\",\"md1\":\"\",\"lg1\":\"\"}},[_c('div',{staticClass:\"caption grey--text\"},[_vm._v(\"Status\")]),(event.status)?_c('div',{staticClass:\"black--text\"},[_vm._v(\"\\n \"+_vm._s(event.status)+\"\\n \")]):_vm._e()]),_c('v-flex',{attrs:{\"xs12\":\"\",\"md2\":\"\",\"lg2\":\"\"}},[_c('div',{staticClass:\"caption grey--text\"},[_vm._v(\"Type\")]),_c('div',{staticClass:\"black--text\"},[_vm._v(\"\\n \"+_vm._s(_vm.getEventTypeLabel(event.type))+\"\\n \")])]),_c('v-flex',{attrs:{\"xs12\":\"\",\"sm3\":\"\",\"lg2\":\"\"}},[_c('div',{staticClass:\"float-right\"},[(event.type === 'workshop')?_c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nreturn [_c('v-btn',{attrs:{\"fab\":\"\",\"dark\":\"\",\"x-small\":\"\",\"color\":\"purple\"},on:{\"click\":_vm.goToFeedbackSurvey}},[_c('v-icon',_vm._g({attrs:{\"dark\":\"\"}},on),[_vm._v(\"people\")])],1)]}}],null,true)},[_c('span',[_vm._v(\"Feedback Survey\")])]):_c('v-btn',{attrs:{\"fab\":\"\",\"dark\":\"\",\"x-small\":\"\",\"color\":\"grey\"}},[_c('v-icon',{attrs:{\"disabled\":\"\",\"dark\":\"\"}},[_vm._v(\"people\")])],1),_c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nreturn [_c('v-btn',{staticClass:\"mx-1 hp--btn\",attrs:{\"fab\":\"\",\"dark\":\"\",\"x-small\":\"\",\"color\":\"warning\"},on:{\"click\":function($event){return _vm.editEventCode(event)}}},[_c('v-icon',_vm._g({attrs:{\"dark\":\"\"}},on),[_vm._v(\"code\")])],1)]}}],null,true)},[_c('span',[_vm._v(\"Update event code\")])]),_c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nreturn [_c('v-btn',{staticClass:\"mx-1 hp--btn\",attrs:{\"fab\":\"\",\"dark\":\"\",\"x-small\":\"\",\"color\":\"success\"},on:{\"click\":function($event){return _vm.editEvent(event)}}},[_c('v-icon',_vm._g({attrs:{\"dark\":\"\"}},on),[_vm._v(\"edit\")])],1)]}}],null,true)},[_c('span',[_vm._v(\"Edit event\")])]),_c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nreturn [_c('v-btn',{staticClass:\"mx-1 hp--btn\",attrs:{\"fab\":\"\",\"dark\":\"\",\"x-small\":\"\",\"color\":\"error\"},on:{\"click\":function($event){return _vm.deleteEvent(event)}}},[_c('v-icon',_vm._g({attrs:{\"dark\":\"\"}},on),[_vm._v(\"delete_outline\")])],1)]}}],null,true)},[_c('span',[_vm._v(\"Delete event\")])])],1)])],1),_c('v-divider')],1)}),0)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","