{"version":3,"sources":["webpack:///./src/components/FlashMessage.vue?f0ae","webpack:///./src/components/FlashMessage.vue","webpack:///src/components/FlashMessage.vue","webpack:///./src/components/FlashMessage.vue?6394","webpack:///./src/components/FlashMessage.vue?b359","webpack:///./src/services/entity-status.service.js","webpack:///./src/views/Langs.vue","webpack:///./src/components/LangList.vue","webpack:///src/components/LangList.vue","webpack:///./src/components/LangList.vue?4625","webpack:///./src/components/LangList.vue?a571","webpack:///src/views/Langs.vue","webpack:///./src/views/Langs.vue?fa5d","webpack:///./src/views/Langs.vue?2e8a"],"names":["render","_vm","this","_c","_self","staticClass","_v","_s","message","staticRenderFns","props","type","String","default","component","UPDATED","CREATED","DELETED","EntityStatusService","created","updated","deleted","getMessageByStatus","entityType","status","attrs","title","showFlashMessage","flashMessage","_e","staticStyle","_l","langs","lang","key","id","name","on","$event","editLang","confirmDelete","hasError","errorMessage","showLoadSpinner","model","value","showConfirmationModal","callback","$$v","expression","deleteCancel","deleteLang","showDeleteSpinner","components","FlashMessage","data","idToDelete","mounted","fetchLangs","triggerFlashMessage","methods","$router","push","LangService","delete","then","$store","dispatch","catch","error","finally","getters","setTimeout","LangList"],"mappings":"gHAAA,W,oCCAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,iBAAiB,CAACJ,EAAIK,GAAG,IAAIL,EAAIM,GAAGN,EAAIO,SAAS,QAEtIC,EAAkB,GCSP,GACfC,MAAA,CACAF,QAAA,CACAG,KAAAC,OACAC,QAAA,QCfsV,I,wBCQlVC,EAAY,eACd,EACAd,EACAS,GACA,EACA,KACA,KACA,MAIa,OAAAK,E,oECnBf,MAAMC,EAAU,UACVC,EAAU,UACVC,EAAU,UAEhB,MAAMC,EACHC,UACI,OAAOH,EAGXI,UACK,OAAOL,EAGXM,UACI,OAAOJ,EAGXK,mBAAmBC,EAAYC,GAC3B,OAAQA,GACJ,KAAKT,EACD,OA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BAAA,GAEAK,aACA,KAAAC,mBAAA,EACAW,OAAAC,OAAA,KAAAR,YACAS,KAAA,KACA,KAAAC,OAAAC,SAAA,uBAAAjD,OAAAG,WACA,KAAAsC,sBACA,KAAAO,OAAAC,SAAA,cACA,KAAAT,eAEAU,MAAAC,IACA,KAAA5B,UAAA,EACA,KAAAC,aAAA2B,IAEAC,QAAA,KACA,KAAAlB,mBAAA,EACA,KAAAN,uBAAA,EACA,KAAAU,WAAA,QAGAN,eACA,KAAAJ,uBAAA,EACA,KAAAU,WAAA,MAEAG,sBACA,IAAAnC,EAAA,KAAA0C,OAAAK,QAAA,qBACA,OAAA/C,IAIA,KAAAI,aAAAV,OAAAI,mBAAA,WAAAE,GACA,KAAAG,kBAAA,EACA,KAAAuC,OAAAC,SAAA,0BACAK,WAAA,KACA,KAAA7C,kBAAA,GACA,OAEA+B,aACA,KAAAf,iBAAA,EACA,KAAAuB,OAAAC,SAAA,iBACAF,KAAAjC,GAAA,KAAAA,SACAoC,MAAA,KACA,KAAA3B,UAAA,EACA,KAAAC,aAAA,qCAEA4B,QAAA,KACA,KAAA3B,iBAAA,OC/HkV,I,YCO9U7B,EAAY,eACd,EACA,EACA,GACA,EACA,KACA,KACA,MAIa,EAAAA,E,QCTA,GACfuC,WAAA,CACAoB,aCX+U,ICO3U,EAAY,eACd,EACAzE,EACAS,GACA,EACA,KACA,KACA,MAIa,e","file":"static/js/chunk-55a8846d.d75dd07a.js","sourcesContent":["export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FlashMessage.vue?vue&type=style&index=0&id=5a344337&prod&lang=css&\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"flash-message\"},[_vm._v(\" \"+_vm._s(_vm.message)+\" \")])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\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!./FlashMessage.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!./FlashMessage.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./FlashMessage.vue?vue&type=template&id=5a344337&\"\nimport script from \"./FlashMessage.vue?vue&type=script&lang=js&\"\nexport * from \"./FlashMessage.vue?vue&type=script&lang=js&\"\nimport style0 from \"./FlashMessage.vue?vue&type=style&index=0&id=5a344337&prod&lang=css&\"\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","const UPDATED = \"updated\";\nconst CREATED = \"created\";\nconst DELETED = \"deleted\";\n\nclass EntityStatusService {\n created() {\n return CREATED;\n }\n\n updated() {\n return UPDATED;\n }\n\n deleted() {\n return DELETED;\n }\n\n getMessageByStatus(entityType, status) {\n switch (status) {\n case UPDATED:\n return entityType + \" successfully updated!\";\n case CREATED:\n return entityType + \" successfully created!\";\n case DELETED:\n return entityType + \" successfully deleted!\";\n default:\n return \"Something went wrong!\";\n }\n }\n}\n\nexport default new EntityStatusService();","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('lang-list')],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('b-card',{attrs:{\"title\":_vm.title}},[(_vm.showFlashMessage)?_c('flash-message',{attrs:{\"message\":_vm.flashMessage}}):_vm._e(),_c('div',{staticClass:\"lang-list\",staticStyle:{\"display\":\"flex\",\"justify-content\":\"center\"}},[_c('b-list-group',{staticStyle:{\"width\":\"40%\"}},_vm._l((_vm.langs),function(lang){return _c('b-list-group-item',{key:lang.id},[_c('div',{staticStyle:{\"display\":\"flex\",\"justify-content\":\"space-between\"}},[_c('span',[_vm._v(_vm._s(lang.name))]),_c('span',[_c('b-button',{attrs:{\"variant\":\"primary\"},on:{\"click\":function($event){return _vm.editLang(lang.id)}}},[_vm._v(\"Edit\")]),_c('b-button',{attrs:{\"variant\":\"danger\"},on:{\"click\":function($event){return _vm.confirmDelete(lang.id)}}},[_vm._v(\"Delete\")])],1)])])}),1)],1),(_vm.hasError)?_c('div',{staticStyle:{\"color\":\"red\"}},[_vm._v(_vm._s(_vm.errorMessage))]):_vm._e(),(_vm.showLoadSpinner)?_c('div',{staticClass:\"d-flex justify-content-center m-3\"},[_c('b-spinner',{attrs:{\"variant\":\"primary\",\"label\":\"Spinning\"}})],1):_vm._e(),_c('b-modal',{attrs:{\"title\":\"Delete Language?\",\"hide-footer\":\"\",\"hide-backdrop\":\"\"},model:{value:(_vm.showConfirmationModal),callback:function ($$v) {_vm.showConfirmationModal=$$v},expression:\"showConfirmationModal\"}},[_c('p',[_vm._v(\"Are you sure you want to delete this language?\")]),_c('div',{staticClass:\"d-flex justify-content-end\"},[_c('b-button',{staticClass:\"mr-2\",attrs:{\"variant\":\"secondary\"},on:{\"click\":_vm.deleteCancel}},[_vm._v(\" Cancel \")]),_c('b-button',{attrs:{\"variant\":\"danger\"},on:{\"click\":_vm.deleteLang}},[_vm._v(\" Delete \")])],1),(_vm.showDeleteSpinner)?_c('div',{staticClass:\"d-flex justify-content-center mb-3\"},[_c('b-spinner',{attrs:{\"variant\":\"danger\",\"label\":\"Spinning\"}})],1):_vm._e()])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\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!./LangList.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!./LangList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./LangList.vue?vue&type=template&id=52104ae1&\"\nimport script from \"./LangList.vue?vue&type=script&lang=js&\"\nexport * from \"./LangList.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","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!./Langs.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!./Langs.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Langs.vue?vue&type=template&id=0041bc52&\"\nimport script from \"./Langs.vue?vue&type=script&lang=js&\"\nexport * from \"./Langs.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":""}