{"version":3,"sources":["webpack:///./src/views/Settings/System/attrs/data.js","webpack:///./src/views/Settings/System/attrs/methods.js","webpack:///./src/views/Settings/System/Index.vue","webpack:///./src/views/Settings/System/index.js","webpack:///./src/views/Settings/System/attrs/mounted.js","webpack:///./src/views/Settings/System/Index.vue?7e9d","webpack:///./src/views/Settings/System/Index.vue?5a2a","webpack:///./src/views/Settings/System"],"names":["settings","fields","key","label","loadSettings","self","this","api","getApiClient","$store","get","then","result","data","catch","error","console","log","goToEditSetting","settingId","$router","push","name","params","id","component","methods","mounted","render","_vm","_h","$createElement","_c","_self","_v","attrs","scopedSlots","_u","fn","ref","item","domProps","_s","on","$event","staticRenderFns"],"mappings":"kHAAA,OAAe,wBACX,MAAO,CACHA,SAAU,GACVC,OAAQ,CACJ,CACIC,IAAK,OACLC,MAAO,UAEX,CACID,IAAK,UACLC,MAAO,a,kCCVvB,uBAEe,cACXC,aADW,WAEP,IAAMC,EAAOC,KACTC,EAAMC,qBAAaH,EAAKI,QAE5BF,EAAIG,IAAI,YACHC,MAAK,SAAAC,GACFP,EAAKL,SAAWY,EAAOC,KAAK,mBAE/BC,OAAM,SAAAC,GACHC,QAAQC,IAAIF,OAGxBG,gBAbW,SAaKC,GACZb,KAAKc,QAAQC,KAAK,CACdC,KAAM,uBACNC,OAAQ,CACJC,GAAIL,Q,kCCnBpB,oIAOIM,EAAY,qBACd,aACA,YACA,sBACA,EACA,KACA,KACA,MAIa,aAAAA,E,6CClBf,+CAIe,cACXH,KAAM,iBACNT,kBACAa,qBACAC,uB,kCCRJ,OAAe,wBACXrB,KAAKF,iB,oCCDT,kGAAIwB,EAAS,WAAa,IAAIC,EAAIvB,KAASwB,EAAGD,EAAIE,eAAmBC,EAAGH,EAAII,MAAMD,IAAIF,EAAG,OAAOE,EAAG,QAAQ,CAACA,EAAG,YAAY,CAACA,EAAG,KAAK,CAACH,EAAIK,GAAG,8BAA8BF,EAAG,aAAa,CAACG,MAAM,CAAC,MAAQN,EAAI7B,SAAS,OAAS6B,EAAI5B,OAAO,MAAQ,GAAG,WAAa,IAAImC,YAAYP,EAAIQ,GAAG,CAAC,CAACnC,IAAI,OAAOoC,GAAG,SAASC,GACnT,IAAIC,EAAOD,EAAIC,KACf,MAAO,CAACR,EAAG,KAAK,CAACS,SAAS,CAAC,UAAYZ,EAAIa,GAAGF,EAAKlB,YAAY,CAACpB,IAAI,UAAUoC,GAAG,SAASC,GAC1F,IAAIC,EAAOD,EAAIC,KACf,MAAO,CAACR,EAAG,KAAK,CAACA,EAAG,eAAe,CAACA,EAAG,UAAU,CAACG,MAAM,CAAC,MAAQ,QAAQQ,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOf,EAAIX,gBAAgBsB,EAAKhB,OAAO,CAACQ,EAAG,QAAQ,CAACG,MAAM,CAAC,KAAO,gBAAgBN,EAAIK,GAAG,aAAa,IAAI,IAAI,WAAW,IAAI,IAC/NW,EAAkB,I,kCCLtB,yG,kCCAA,wGAA2O","file":"js/chunk-744510ae.e5271cc3.js","sourcesContent":["export default function() {\n return {\n settings: [],\n fields: [\n {\n key: 'name',\n label: 'Título'\n },\n {\n key: 'actions',\n label: 'Ações'\n }\n ]\n }\n}\n","import getApiClient from '@/plugins/api-client'\n\nexport default {\n loadSettings() {\n const self = this,\n api = getApiClient(self.$store)\n\n api.get('settings')\n .then(result => {\n self.settings = result.data['hydra:member']\n })\n .catch(error => {\n console.log(error)\n })\n },\n goToEditSetting(settingId) {\n this.$router.push({\n name: 'Alterar configuração',\n params: {\n id: settingId\n }\n })\n }\n}\n","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=efad9c52&\"\nimport script from \"./index.js?vue&type=script&lang=js&\"\nexport * from \"./index.js?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 data from './attrs/data'\nimport methods from './attrs/methods'\nimport mounted from './attrs/mounted'\n\nexport default {\n name: 'SystemSettings',\n data,\n methods,\n mounted\n}\n","export default function() {\n this.loadSettings()\n}","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('CCard',[_c('CCardBody',[_c('h1',[_vm._v(\"Configurações do sistema\")]),_c('CDataTable',{attrs:{\"items\":_vm.settings,\"fields\":_vm.fields,\"hover\":\"\",\"pagination\":\"\"},scopedSlots:_vm._u([{key:\"name\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('td',{domProps:{\"innerHTML\":_vm._s(item.name)}})]}},{key:\"actions\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('td',[_c('CButtonGroup',[_c('CButton',{attrs:{\"color\":\"info\"},on:{\"click\":function($event){return _vm.goToEditSetting(item.id)}}},[_c('CIcon',{attrs:{\"name\":\"cil-pencil\"}}),_vm._v(\" Editar \")],1)],1)],1)]}}])})],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js?{\\\"cacheDirectory\\\":\\\"node_modules/.cache/vue-loader\\\",\\\"cacheIdentifier\\\":\\\"7d6964bc-vue-loader-template\\\"}!../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=template&id=efad9c52&\"","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!./index.js?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!./index.js?vue&type=script&lang=js&\""],"sourceRoot":""}