{"version":3,"sources":["webpack:///./src/features/chamado/chamado-abrir.vue?506a","webpack:///./src/features/chamado/chamado-abrir.vue?0610","webpack:///./src/features/chamado/chamado-abrir.vue?acfc","webpack:///./src/features/chamado/chamado-abrir.vue?4eea","webpack:///./src/features/chamado/chamado-abrir.vue","webpack:///./src/features/servico/servico-service.ts"],"names":["render","_vm","this","_h","$createElement","_c","_self","empresaAtual","attrs","tipoChamado","staticClass","_v","_e","carregando","_l","grupo","key","id","_s","icone","titulo","subtitulo","on","$event","abrirChamado","staticRenderFns","servicoGrupos","window","location","pathname","obterEmpresaAtualId","listarServicoGrupos","signOut","returnUrl","origin","servicoGrupoId","goTo","resultado","itens","component","VBtn","VContainer","VIcon","VProgressCircular","ServicoService","query","configure","getAxios","get","params","then","e","data","command","post"],"mappings":"kHAAA,W,2CCAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,oBAA0C,MAApBJ,EAAIM,aAAuBF,EAAG,cAAc,CAACG,MAAM,CAAC,MAAQ,KAAK,CAAqB,kBAAnBP,EAAIQ,YAAiCJ,EAAG,MAAM,CAACA,EAAG,OAAO,CAACK,YAAY,+BAA+B,CAACT,EAAIU,GAAG,qBAAqBN,EAAG,MAAM,CAACA,EAAG,OAAO,CAACK,YAAY,+BAA+B,CAACT,EAAIU,GAAG,gCAAgCN,EAAG,MAAM,CAACA,EAAG,OAAO,CAACK,YAAY,2BAA2B,CAACT,EAAIU,GAAG,qCAAqCN,EAAG,MAAM,CAACK,YAAY,iCAAiC,CAACL,EAAG,OAAO,CAACK,YAAY,mCAAmC,CAACT,EAAIU,GAAG,kCAAmCV,EAAc,WAAEI,EAAG,MAAM,CAACA,EAAG,MAAM,CAACK,YAAY,oBAAoB,CAACL,EAAG,sBAAsB,CAACG,MAAM,CAAC,cAAgB,GAAG,MAAQ,cAAc,KAAKP,EAAIW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IAASK,MAAK,SAAAC,GAAC,OAAIA,EAAEC,SAHlH,2C,kKAMA,WAAwCP,GAAxC,iGACU,OAAmBC,YAD7B,gCAGW,OAAmBC,WAAWC,IAAI,iDAAkD,CAAEC,OAAQJ,IAASK,MAAK,SAAAC,GAAC,OAAIA,EAAEC,SAH9H,2C,sKAMA,WAA4CP,GAA5C,iGACU,OAAmBC,YAD7B,gCAGW,OAAmBC,WAAWC,IAAI,qDAAsD,CAAEC,OAAQJ,IAASK,MAAK,SAAAC,GAAC,OAAIA,EAAEC,SAHlI,2C,gKAMA,WAAsCP,GAAtC,iGACU,OAAmBC,YAD7B,gCAGW,OAAmBC,WAAWC,IAAI,+CAAgD,CAAEC,OAAQJ,IAASK,MAAK,SAAAC,GAAC,OAAIA,EAAEC,SAH5H,2C,iEAOW,WAAIR","file":"js/chunk-5ac6d603.ee6c1ec3.js","sourcesContent":["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-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/vuetify-loader/lib/loader.js??ref--19-0!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./chamado-abrir.vue?vue&type=style&index=0&id=cc61ec46&scoped=true&lang=css&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('header-component'),((_vm.empresaAtual != null))?_c('v-container',{attrs:{\"fluid\":\"\"}},[(_vm.tipoChamado == '/chamado/abrir')?_c('div',[_c('span',{staticClass:\"t-abrir-chamado t-item-azul\"},[_vm._v(\"Abrir chamado\")])]):_c('div',[_c('span',{staticClass:\"t-abrir-chamado t-item-azul\"},[_vm._v(\"Abrir chamado recorrente\")])]),_c('div',[_c('span',{staticClass:\"t-caminho-abrir-chamado\"},[_vm._v(\"Chamados > Selecionar assunto\")])]),_c('div',{staticClass:\"t-selecione-assunto-container\"},[_c('span',{staticClass:\"t-selecione-assunto t-item-azul\"},[_vm._v(\"Selecione o assunto abaixo\")])]),(_vm.carregando)?_c('div',[_c('div',{staticClass:\"text-center mt-8\"},[_c('v-progress-circular',{attrs:{\"indeterminate\":\"\",\"color\":\"primary\"}})],1)]):_vm._e(),(!_vm.carregando)?_c('div',{staticClass:\"t-grupos t-margin-bottom-div\"},[_vm._l((_vm.servicoGrupos),function(grupo){return [_c('div',{key:grupo.id,staticClass:\"t-grupo\"},[_c('v-icon',{staticClass:\"t-grupo-icone t-item-roxo\"},[_vm._v(_vm._s(grupo.icone))]),_c('div',{staticClass:\"t-grupo-descricao-container\"},[_c('span',{staticClass:\"t-grupo-descricao t-item-azul\"},[_vm._v(_vm._s(grupo.titulo))])]),_c('div',{staticClass:\"t-grupo-subtitulo-container\"},[_c('span',{staticClass:\"t-grupo-subtitulo\"},[_vm._v(_vm._s(grupo.subtitulo))])]),_c('div',{staticClass:\"t-btn-selecionar-container\"},[_c('v-btn',{staticClass:\"t-btn-selecionar\",attrs:{\"depressed\":\"\"},on:{\"click\":function($event){return _vm.abrirChamado(grupo.id)}}},[_vm._v(\"Selecionar\")])],1)],1)]})],2):_vm._e()]):_c('not-select-company')],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport Vue from \"vue\";\nimport Api from \"../../base/api.typings\";\nimport Component from \"vue-class-component\";\nimport servicoService from '../servico/servico-service';\nimport routerService from '../../base/router-service';\nimport empresaAtualService from '../../features/empresa-atual/empresa-atual-service';\nimport authService from '../../features/api-authorization/authorize-service'; \n\n@Component\nexport default class ChamadoAbrir extends Vue {\n\n async created() {\n this.empresaAtual = await empresaAtualService.obterEmpresaAtualId();\n if (this.empresaAtual != null) {\n this.listarServicoGrupos();\n }\n }\n\n servicoGrupos: Api.App.Server.Servico.ListarServicoGrupos.Dto[] = [];\n\n get carregando() {\n return !this.servicoGrupos;\n }\n\n tipoChamado: string = window.location.pathname;\n\n empresaAtual: string = null;\n\n async logout() {\n if (this.empresaAtual == null) {\n await authService.signOut({ returnUrl: location.origin });\n }\n }\n\n async abrirChamado(servicoGrupoId: number) {\n if (this.tipoChamado == \"/chamado/abrir\") {\n await routerService.goTo('chamado-registrar', { servicoGrupoId })\n } else {\n await routerService.goTo('chamado-recorrente-inserir', { servicoGrupoId })\n };\n }\n\n async listarServicoGrupos() {\n let resultado = await servicoService.listarServicoGrupos({\n });\n\n this.servicoGrupos = resultado.itens;\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/ts-loader/index.js??ref--13-3!../../../node_modules/vuetify-loader/lib/loader.js??ref--19-0!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./chamado-abrir.vue?vue&type=script&lang=ts&\"; 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/ts-loader/index.js??ref--13-3!../../../node_modules/vuetify-loader/lib/loader.js??ref--19-0!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./chamado-abrir.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./chamado-abrir.vue?vue&type=template&id=cc61ec46&scoped=true&\"\nimport script from \"./chamado-abrir.vue?vue&type=script&lang=ts&\"\nexport * from \"./chamado-abrir.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./chamado-abrir.vue?vue&type=style&index=0&id=cc61ec46&scoped=true&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 \"cc61ec46\",\n null\n \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VContainer } from 'vuetify/lib/components/VGrid';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VProgressCircular } from 'vuetify/lib/components/VProgressCircular';\ninstallComponents(component, {VBtn,VContainer,VIcon,VProgressCircular})\n","import Api from '@/base/api.typings';\nimport axiosConfiguration from '@/base/axios-configuration';\n\nclass ServicoService {\n async listarServicoGrupos(query: Api.App.Server.Servico.ListarServicoGrupos.Query): Promise {\n await axiosConfiguration.configure();\n\n return axiosConfiguration.getAxios().get('/api/Servico/ListarServicoGrupos', { params: query }).then(e => e.data);\n }\n\n async salvarServicoGrupos(command: Api.App.Server.Servico.SalvarServicosGrupos.Command): Promise {\n await axiosConfiguration.configure();\n\n return axiosConfiguration.getAxios().post('/api/Servico/SalvarServicosGrupos', command);\n }\n\n async listarServicosPorGrupoId(query: Api.App.Server.Servico.ListarServicosPorGrupoId.Query): Promise {\n await axiosConfiguration.configure();\n\n return axiosConfiguration.getAxios().get('/api/Servico/ListarServicosPorGrupoId', { params: query }).then(e => e.data);\n }\n\n async obterServicoDescricao(query: Api.App.Server.Servico.ObterServicoDescricao.Query): Promise {\n await axiosConfiguration.configure();\n\n return axiosConfiguration.getAxios().get('/api/Servico/ObterServicoDescricao', { params: query }).then(e => e.data);\n }\n\n async salvarServicoDescricao(command: Api.App.Server.Servico.SalvarServicoDescricao.Command): Promise {\n await axiosConfiguration.configure();\n\n return axiosConfiguration.getAxios().post('/api/Servico/SalvarServicoDescricao', command);\n }\n\n async obterServicoGrupoDescricao(query: Api.App.Server.Servico.ObterServicoGrupoDescricao.Query): Promise {\n await axiosConfiguration.configure();\n\n return axiosConfiguration.getAxios().get('/api/Servico/ObterServicoGrupoDescricao', { params: query }).then(e => e.data);\n }\n\n async obterServicoUpPlanoId(query: Api.App.Server.Servico.ObterServicoUpPlanoId.Query): Promise {\n await axiosConfiguration.configure();\n\n return axiosConfiguration.getAxios().get('/api/Servico/ObterServicoUpPlanoId', { params: query }).then(e => e.data);\n }\n\n async obterServicoAlterarDadosEmpresaId(query: Api.App.Server.Servico.ObterServicoAlterarDadosEmpresaId.Query): Promise {\n await axiosConfiguration.configure();\n\n return axiosConfiguration.getAxios().get('/api/Servico/ObterServicoAlterarDadosEmpresaId', { params: query }).then(e => e.data);\n }\n\n async obterServicoAlterarDadosFuncionarioId(query: Api.App.Server.Servico.ObterServicoAlterarDadosFuncionarioId.Query): Promise {\n await axiosConfiguration.configure();\n\n return axiosConfiguration.getAxios().get('/api/Servico/ObterServicoAlterarDadosFuncionarioId', { params: query }).then(e => e.data);\n }\n\n async obterServicoAlterarDadosSocioId(query: Api.App.Server.Servico.ObterServicoAlterarDadosSocioId.Query): Promise {\n await axiosConfiguration.configure();\n\n return axiosConfiguration.getAxios().get('/api/Servico/ObterServicoAlterarDadosSocioId', { params: query }).then(e => e.data);\n }\n}\n\nexport default new ServicoService();"],"sourceRoot":""}