{"version":3,"sources":["webpack:///./src/components/Lang.vue","webpack:///./src/models/lang.js","webpack:///src/components/Lang.vue","webpack:///./src/components/Lang.vue?c528","webpack:///./src/components/Lang.vue?1315","webpack:///./src/views/EditLang.vue","webpack:///src/views/EditLang.vue","webpack:///./src/views/EditLang.vue?bf87","webpack:///./src/views/EditLang.vue?f174","webpack:///./src/services/entity-status.service.js"],"names":["render","_vm","this","_c","_self","attrs","title","on","$event","preventDefault","submitForm","apply","arguments","name","staticStyle","staticClass","model","value","callback","$$v","expression","_v","_s","buttonLabel","id","confirmDelete","_e","showEditSpinner","hasError","errorMessage","showConfirmationModal","deleteLang","showDeleteSpinner","staticRenderFns","Lang","constructor","props","type","String","default","data","mounted","loadData","methods","LangService","get","then","catch","error","delete","$store","dispatch","EntityStatus","deleted","router","push","finally","method","update","create","updated","created","component","$route","params","components","UPDATED","CREATED","DELETED","EntityStatusService","getMessageByStatus","entityType","status"],"mappings":"kHAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACA,EAAG,SAAS,CAACE,MAAM,CAAC,MAAQJ,EAAIK,QAAQ,CAACH,EAAG,SAAS,CAACI,GAAG,CAAC,OAAS,SAASC,GAAgC,OAAxBA,EAAOC,iBAAwBR,EAAIS,WAAWC,MAAM,KAAMC,cAAc,CAACT,EAAG,eAAe,CAACE,MAAM,CAAC,GAAK,aAAa,MAAQ,QAAQ,YAAY,aAAa,QAAQJ,EAAIY,KAAoB,mBAAmB,aAAa,CAACV,EAAG,MAAM,CAACW,YAAY,CAAC,QAAU,OAAO,kBAAkB,WAAW,CAACX,EAAG,eAAe,CAACY,YAAY,OAAOV,MAAM,CAAC,UAAW,EAAK,GAAK,aAAa,YAAc,uBAAuBW,MAAM,CAACC,MAAOhB,EAAIY,KAAMK,SAAS,SAAUC,GAAMlB,EAAIY,KAAKM,GAAKC,WAAW,WAAW,KAAKjB,EAAG,WAAW,CAACE,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ACAiC,GACA,EACA,KACA,KACA,MAIa,OAAA6B,E,oDClBf,IAAI9D,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACA,EAAG,OAAO,CAACE,MAAM,CAAC,GAAKJ,EAAI8D,OAAOC,OAAOxC,OAAO,IAEzHS,EAAkB,G,YCOP,GACfpB,KAAA,WACAoD,WAAA,CACA/B,cCZkV,I,YCO9U4B,EAAY,eACd,EACA9D,EACAiC,GACA,EACA,KACA,KACA,MAIa,aAAA6B,E,2CClBf,MAAMI,EAAU,UACVC,EAAU,UACVC,EAAU,UAEhB,MAAMC,EACHR,UACI,OAAOM,EAGXP,UACK,OAAOM,EAGXb,UACI,OAAOe,EAGXE,mBAAmBC,EAAYC,GAC3B,OAAQA,GACJ,KAAKN,EACD,OAAOK,EAAa,yBACxB,KAAKJ,EACD,OAAOI,EAAa,yBACxB,KAAKH,EACD,OAAOG,EAAa,yBACxB,QACI,MAAO,0BAKR,WAAIF","file":"static/js/chunk-3939cd6c.b431753c.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('b-card',{attrs:{\"title\":_vm.title}},[_c('b-form',{on:{\"submit\":function($event){$event.preventDefault();return _vm.submitForm.apply(null, arguments)}}},[_c('b-form-group',{attrs:{\"id\":\"name-group\",\"label\":\"Name:\",\"label-for\":\"lang-input\",\"state\":_vm.name ? true : false,\"invalid-feedback\":\"required\"}},[_c('div',{staticStyle:{\"display\":\"flex\",\"justify-content\":\"center\"}},[_c('b-form-input',{staticClass:\"w-25\",attrs:{\"required\":true,\"id\":\"lang-input\",\"placeholder\":\"Enter a language...\"},model:{value:(_vm.name),callback:function ($$v) {_vm.name=$$v},expression:\"name\"}})],1)]),_c('b-button',{attrs:{\"type\":\"submit\",\"variant\":\"primary\"}},[_vm._v(\" \"+_vm._s(_vm.buttonLabel)+\" \")]),(_vm.id)?_c('b-button',{attrs:{\"variant\":\"danger\"},on:{\"click\":_vm.confirmDelete}},[_vm._v(\" Delete \")]):_vm._e(),(_vm.showEditSpinner)?_c('div',{staticClass:\"d-flex justify-content-center m-3\"},[_c('b-spinner',{attrs:{\"variant\":\"primary\",\"label\":\"Spinning\"}})],1):_vm._e()],1),(_vm.hasError)?_c('div',{staticStyle:{\"color\":\"red\"}},[_vm._v(_vm._s(_vm.errorMessage))]):_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\":function($event){_vm.showConfirmationModal = false}}},[_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)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export default class Lang {\n constructor(name, id = null) {\n this.name = name\n this.id = id;\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!./Lang.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!./Lang.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Lang.vue?vue&type=template&id=a0e3acbe&\"\nimport script from \"./Lang.vue?vue&type=script&lang=js&\"\nexport * from \"./Lang.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 render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('Lang',{attrs:{\"id\":_vm.$route.params.id}})],1)\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!./EditLang.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!./EditLang.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./EditLang.vue?vue&type=template&id=14bac7d2&\"\nimport script from \"./EditLang.vue?vue&type=script&lang=js&\"\nexport * from \"./EditLang.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","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();"],"sourceRoot":""}