{"version":3,"sources":["webpack:///./src/views/Management.vue?ab38","webpack:///./src/models/Hierarchy.js","webpack:///src/views/Management.vue","webpack:///./src/views/Management.vue?20ca","webpack:///./src/views/Management.vue","webpack:///./src/views/Management.vue?6f8a"],"names":["render","_vm","this","_h","$createElement","_c","_self","hierarchy","index","ref","attrs","_v","model","value","callback","$$v","$set","expression","staticClass","on","update","$event","$bvModal","hide","_e","getPrev","level","staticStyle","loadPrevious","empty","_s","getTitle","nextLabel","_l","item","key","name","edit","loadNext","_id","class","nextIcon","remove","staticRenderFns","getNext","getIcon","computed","Hierarchy","length","$store","getters","user","data","methods","back","$route","pop","show","load","dispatch","id","component"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAAEJ,EAAIM,UAAUN,EAAIO,OAAQH,EAAG,UAAU,CAACI,IAAI,OAAOC,MAAM,CAAC,GAAK,OAAO,KAAO,KAAK,oBAAoB,UAAU,sBAAsB,QAAQ,MAAQ,SAAS,cAAc,KAAK,CAACL,EAAG,QAAQ,CAACK,MAAM,CAAC,IAAM,SAAS,CAACT,EAAIU,GAAG,WAAWN,EAAG,gBAAgB,CAACA,EAAG,eAAe,CAACK,MAAM,CAAC,GAAK,QAAQE,MAAM,CAACC,MAAOZ,EAAIM,UAAUN,EAAIO,OAAW,KAAEM,SAAS,SAAUC,GAAMd,EAAIe,KAAKf,EAAIM,UAAUN,EAAIO,OAAQ,OAAQO,IAAME,WAAW,4BAA4B,GAAGZ,EAAG,WAAW,CAACa,YAAY,YAAYR,MAAM,CAAC,QAAU,WAAWS,GAAG,CAAC,MAAQlB,EAAImB,SAAS,CAACf,EAAG,IAAI,CAACa,YAAY,eAAejB,EAAIU,GAAG,aAAaN,EAAG,WAAW,CAACa,YAAY,YAAYC,GAAG,CAAC,MAAQ,SAASE,GAAQ,OAAOpB,EAAIqB,SAASC,K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C,IAGX,QA3BF,uJA4BA,YA5BA,wGA8BEM,QAAS,CACPC,KADJ,WAEMpD,KAAKqD,OAAOC,OAEdnB,KAJJ,SAIA,GACMnC,KAAKM,MAAQA,EACbN,KAAKoB,SAASmC,KAAK,SAErBC,KARJ,WASMxD,KAAK+C,OAAOU,SAAS,mBAAoB,CACvCR,KAAMjD,KAAKiD,KAAKS,GAChBlC,MAAOxB,KAAKwB,SAGhBY,SAdJ,SAcA,KACMpC,KAAK+C,OAAOU,SAAS,uBAAwB,CAAnD,gBACMzD,KAAKwD,QAEP9B,aAlBJ,WAmBM1B,KAAK+C,OAAOU,SAClB,0BACA,gCAEMzD,KAAKwD,QAEP,OAzBJ,oEAyBA,GAzBA,iGA0BA,6CA1BA,uBA2BA,YA3BA,yGA6BI,OA7BJ,uKA8BA,qBACA,qBACA,4BAhCA,uBAkCA,YAlCA,OAmCA,2BAnCA,0GCrGkX,I,wBCQ9WG,EAAY,eACd,EACA7D,EACA2C,GACA,EACA,KACA,KACA,MAIa,aAAAkB,E,kECnBf","file":"js/chunk-1d679dd9.ee4742aa.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.hierarchy[_vm.index])?_c('b-modal',{ref:\"edit\",attrs:{\"id\":\"edit\",\"size\":\"xl\",\"header-bg-variant\":\"primary\",\"header-text-variant\":\"light\",\"title\":\"Editar\",\"hide-footer\":\"\"}},[_c('label',{attrs:{\"for\":\"name\"}},[_vm._v(\"Nome:\")]),_c('b-input-group',[_c('b-form-input',{attrs:{\"id\":\"name\"},model:{value:(_vm.hierarchy[_vm.index].name),callback:function ($$v) {_vm.$set(_vm.hierarchy[_vm.index], \"name\", $$v)},expression:\"hierarchy[index].name\"}})],1),_c('b-button',{staticClass:\"mr-3 mt-3\",attrs:{\"variant\":\"success\"},on:{\"click\":_vm.update}},[_c('i',{staticClass:\"fa fa-save\"}),_vm._v(\" Salvar\")]),_c('b-button',{staticClass:\"mr-3 mt-3\",on:{\"click\":function($event){return _vm.$bvModal.hide('edit')}}},[_vm._v(\"Cancelar\")])],1):_vm._e(),(_vm.model.getPrev(_vm.level))?_c('b-button',{staticStyle:{\"border-radius\":\"0\"},attrs:{\"variant\":\"primary\"},on:{\"click\":_vm.loadPrevious}},[_c('i',{staticClass:\"fa fa-chevron-left\"})]):_vm._e(),(!_vm.empty)?_c('div',[_c('h1',[_vm._v(_vm._s(_vm.model.getTitle(_vm.level)))]),_c('b-row',_vm._l((_vm.hierarchy),function(item,index){return _c('b-card',{key:(\"hirarchy_\" + (item._id)),staticClass:\"col-md-3 col-sm-12 mr-5 hierarchy-card mb-3\",attrs:{\"title\":item.name}},[_c('b-button',{staticClass:\"button-edit\",attrs:{\"variant\":\"primary\"},on:{\"click\":function($event){return _vm.edit(index)}}},[_c('i',{staticClass:\"fa fa-edit\"})]),(_vm.nextLabel)?_c('b-button',{attrs:{\"variant\":\"outline-primary\"},on:{\"click\":function($event){return _vm.loadNext(item._id, _vm.level)}}},[_c('i',{class:_vm.nextIcon,attrs:{\"aria-hidden\":\"true\"}}),_vm._v(\"\\n \"+_vm._s(_vm.nextLabel))]):_vm._e(),_c('b-button',{staticClass:\"float-right\",on:{\"click\":function($event){return _vm.remove(item._id)}}},[_c('i',{staticClass:\"fa fa-trash\",attrs:{\"aria-hidden\":\"true\"}}),_vm._v(\" Remover\\n \")])],1)}),1)],1):_c('div',[_c('div',{staticClass:\"alert alert-danger\"},[_c('p',[_vm._v(\"\\n \"+_vm._s(_vm.model.getTitle(_vm.level))+\" não encontrados(as) ou sem \"+_vm._s(_vm.nextLabel)+\"\\n \")])])])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export default {\n getTitle(key) {\n switch (key) {\n case 'companies':\n return 'Empresas'\n case 'branches':\n return 'Unidades'\n case 'sectors':\n return 'Setores'\n case 'roles':\n return 'Cargos'\n case 'products':\n return 'Produtos'\n default:\n return ''\n }\n },\n getNext(key) {\n switch (key) {\n case 'companies':\n return 'branches'\n case 'branches':\n return 'sectors'\n case 'sectors':\n return 'roles'\n case 'roles':\n return 'products'\n case 'products':\n return undefined\n }\n },\n getPrev(key) {\n switch (key) {\n case 'companies':\n return undefined\n case 'branches':\n return 'companies'\n case 'sectors':\n return 'branches'\n case 'roles':\n return 'sectors'\n case 'products':\n return 'roles'\n }\n },\n getIcon(key) {\n switch (key) {\n case 'branches':\n return 'fa fa-building'\n case 'sectors':\n return 'fa fa-puzzle-piece'\n case 'roles':\n return 'fa fa-id-card'\n case 'products':\n return 'fa fa-archive'\n default:\n return ''\n }\n }\n}\n","\n \n \n Nome:\n \n \n \n Salvar\n Cancelar\n \n\n \n \n \n \n {{ model.getTitle(level) }}\n \n \n \n \n \n \n {{ nextLabel }}\n Remover\n \n \n \n \n \n \n \n \n {{ model.getTitle(level) }} não encontrados(as) ou sem {{ nextLabel }}\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/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./Management.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/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./Management.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Management.vue?vue&type=template&id=565e4952&\"\nimport script from \"./Management.vue?vue&type=script&lang=js&\"\nexport * from \"./Management.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Management.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/cli-service/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","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./Management.vue?vue&type=style&index=0&lang=css&\""],"sourceRoot":""}
\n {{ model.getTitle(level) }} não encontrados(as) ou sem {{ nextLabel }}\n