(window.webpackJsonp=window.webpackJsonp||[]).push([[1251],{2687:function(e,t,r){"use strict";r.r(t);var o={metaInfo:{title:"Módulo Obrigações"}},l=r(42),component=Object(l.a)(o,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"main-content"},[r("h:outputScript",{attrs:{library:"js",name:"app/obrigacoes/mainObrigacoes.js"}}),e._v(" "),r("f:metadata",[r("f:param",{attrs:{name:"dummyToAvoidSecondRedirect"}}),e._v(" "),r("f:viewAction",{attrs:{action:"#{mainMBean.initObrigacoes}"}})],1),e._v(" "),r("form",{attrs:{id:"mainForm"}},[r("div",{staticClass:"p-grid"},[r("div",{staticClass:"p-col-12"},[r("div",{staticClass:"card"},[r("p:outputPanel",{attrs:{id:"pnlResumoObrigacao",styleClass:"p-grid"}},[r("div",{staticClass:"p-md-12"},[r("div",{staticClass:"ui-fluid p-formgrid p-grid"},[r("div",{staticClass:"p-field p-col-12 p-md-6"},[r("p:outputLabel",[e._v("Resumo:")]),e._v(" "),r("b-form-select",{attrs:{widgetVar:"empresaObrigaVar",value:"#{mainMBean.idEmpresaObrigacao}"}},[r("b-form-select-options",{attrs:{value:"#{mainMBean.empresasUsuario}",var:"emp",itemLabel:"#{emp.empresa.razaoSocial}",itemValue:"#{emp.empresa.id}"}}),e._v(" "),r("p:ajax",{attrs:{listener:"#{mainMBean.refreshEmpresaObrigacao}",process:"pnlResumoObrigacao",update:"pnlResumoObrigacao"}})],1)],1),e._v(" "),r("div",{staticClass:"p-field p-col-12 p-md-6"},[r("p:outputLabel",[e._v("Período:")]),e._v(" "),r("div",{staticClass:"p-grid"},[r("div",{staticClass:"p-md-6"},[r("b-form-select",{attrs:{value:"#{mainMBean.tipoObrigacao}"}},[r("b-form-select-option",{attrs:{itemLabel:"Ano atual",itemValue:"#{1}"}}),e._v(" "),r("b-form-select-option",{attrs:{itemLabel:"Semestre atual",itemValue:"#{2}"}}),e._v(" "),r("b-form-select-option",{attrs:{itemLabel:"Mês atual",itemValue:"#{3}"}}),e._v(" "),r("b-form-select-option",{attrs:{itemLabel:"Personalizado",itemValue:"#{4}"}}),e._v(" "),r("p:ajax",{attrs:{listener:"#{mainMBean.findResumoObrigacoes}",process:"pnlResumoObrigacao",update:"pnlResumoObrigacao"}})],1)],1),e._v(" "),r("div",{staticClass:"p-md-3"},[r("p:calendar",{attrs:{id:"datIniObrigacao",pattern:"dd/MM/yyyy",value:"#{mainMBean.dataInicialObrigacao}"}})],1),e._v(" "),r("div",{staticClass:"p-md-3"},[r("p:calendar",{attrs:{id:"datFimObrigacao",pattern:"dd/MM/yyyy",value:"#{mainMBean.dataFinalObrigacao}"}})],1)])],1),e._v(" "),r("div",{staticClass:"p-field p-col-12 p-md-6"},[r("p:outputLabel",[e._v("Área:")]),e._v(" "),r("p:selectCheckboxMenu",{attrs:{id:"selAreaObriga",value:"#{mainMBean.selectedAreas}",label:"#{empty mainMBean.selectedAreas ? 'Todas': 'Seleção:' .concat(mainMBean.selectedAreas.size()).concat(' de ').concat(mainMBean.areasEmpresa.size())}"}},[r("b-form-select-options",{attrs:{value:"#{mainMBean.areasEmpresa}",var:"area",itemLabel:"#{area.sigla} - #{area.descricao}",itemValue:"#{area.id}"}}),e._v(" "),r("p:ajax",{attrs:{event:"toggleSelect",process:"pnlResumoObrigacao",listener:"#{mainMBean.findResumoObrigacoes}",update:"pnlResumoObrigacao"}}),e._v(" "),r("p:ajax",{attrs:{event:"change",process:"pnlResumoObrigacao",listener:"#{mainMBean.findResumoObrigacoes}",update:"pnlResumoObrigacao"}})],1)],1),e._v(" "),r("div",{staticClass:"p-field p-col-12 p-md-6"},[r("p:outputLabel",[e._v("Classificação:")]),e._v(" "),r("b-form-select",{attrs:{value:"#{mainMBean.idTipoObrigacao}"}},[r("b-form-select-option",{attrs:{itemLabel:"Selecione...",itemValue:"#{null}"}}),e._v(" "),r("b-form-select-options",{attrs:{var:"classifi",value:"#{mainMBean.tiposObrigacao}",itemLabel:"#{classifi.descricao}",itemValue:"#{classifi.id.idTipoDocumento}"}}),e._v(" "),r("p:ajax",{attrs:{event:"change",process:"pnlResumoObrigacao",listener:"#{mainMBean.findResumoObrigacoes}",update:"pnlResumoObrigacao"}})],1)],1)])]),e._v(" "),r("p:outputPanel",{attrs:{rendered:"#{mainMBean.totalObrigacoes == null or mainMBean.totalObrigacoes == 0}",styleClass:"p-md-6 ui-messages avisoResult"}},[r("div",{staticClass:"ui-messages-info ui-corner-all"},[r("span",{staticClass:"ui-messages-info-icon"}),e._v(" "),r("ul",[r("li",[r("span",{staticClass:"ui-messages-info-detail"},[e._v("Não há obrigações para o filtro selecionado.")])])])])]),e._v(" "),r("div",{staticClass:"p-md-5"},[r("p:donutChart",{attrs:{id:"chartObrigacao",model:"#{mainMBean.chartObrigacaoModel}",rendered:"#{mainMBean.totalObrigacoes != null and mainMBean.totalObrigacoes > 0}"}},[r("p:ajax",{attrs:{event:"itemSelect",listener:"#{mainMBean.selectItemObrigacao}"}})],1)],1),e._v(" "),r("div",{staticClass:"p-md-7"},[r("p:barChart",{staticStyle:{height:"#{mainMBean.areasSiglasObrigacao.size() gt 2 ? '450px","'":"'150px","'} width":"100%"},attrs:{id:"chartObrigaAreas",model:"#{mainMBean.chartObrigaAreasModel}",rendered:"#{mainMBean.totalObrigacoes != null and mainMBean.totalObrigacoes > 0}"}},[r("p:ajax",{attrs:{event:"itemSelect",listener:"#{mainMBean.selectAreaObrigacao}"}})],1)],1)],1)],1)])])])],1)}),[],!1,null,null,null);t.default=component.exports}}]);
//# sourceMappingURL=a4136b8-1.2.11.js.map