(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-especificos-raizen-movimentos-agendamento-tas-agendamento-tas-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/raizen/movimentos/agendamento-tas/agendamento-tas-filter/agendamento-tas-filter.component.html":
/*!************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/raizen/movimentos/agendamento-tas/agendamento-tas-filter/agendamento-tas-filter.component.html ***!
  \************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"modal fade\" id=\"agendamento-tas-filter-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"uni-modal-dialog-md-40\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{ 'titles.pesquisaDeAgendamento' | translate }}</h6>\r\n            </div>\r\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\r\n                <app-validacoes></app-validacoes>\r\n                <div class=\"modal-body\">\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-6\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"periodoDe\"\r\n                                       class=\"required\">{{\"labels.periodoDe\" | translate }}</label>\r\n                                <app-data id=\"periodoDe\"\r\n                                          name=\"periodoDe\"\r\n                                          [(ngModel)]=\"service.filtro.dataI\"\r\n                                          autofocus\r\n                                          class=\"dataHora\"\r\n                                          [formatDateTime]=\"mascara.getFormatData\"\r\n                                          required=\"true\"\r\n                                          (executa)=\"validaData()\">\r\n                                </app-data>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-6\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"ate\"\r\n                                       class=\"required\">{{\"labels.ate\" | translate}}</label>\r\n                                <app-data id=\"ate\"\r\n                                          name=\"ate\"\r\n                                          [(ngModel)]=\"service.filtro.dataF\"\r\n                                          class=\"dataHora\"\r\n                                          [formatDateTime]=\"mascara.getFormatData\"\r\n                                          required=\"true\"\r\n                                          (executa)=\"validaData()\">\r\n                                </app-data>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <app-pesquisa-destinatario id=\"cliente\"\r\n                                                           name=\"cliente\"\r\n                                                           tipoDestinatario=\"C\"\r\n                                                           modalTitle=\"pesquisaDeCliente\"\r\n                                                           label=\"cliente\"\r\n                                                           [(ngModel)]=\"service.filtro.destinatarioIdCliente\"\r\n                                                           showInscricao=\"false\"\r\n                                                           showCgcCpf=\"false\"\r\n                                                           tipoDestinatario=\"C\"\r\n                                                           [inSelected]=\"service.filtro.cliente\"\r\n                                                           (outSelected)=\"service.filtro.cliente = $event\">\r\n                                </app-pesquisa-destinatario>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-12 col-md-6 col-sm-12\">\r\n                            <app-pesquisa-destinatario id=\"transportadoraDestinatarioId\" name=\"transportadoraDestinatarioId\"\r\n                                label=\"transportadora\" [(ngModel)]=\"service.filtro.destinatarioIdTransportadora\" tipoDestinatario=\"T\"\r\n                                modalTitle=\"pesquisaDeTransportadora\" showCgcCpf=\"false\" showInscricao=\"false\"\r\n                                [inSelected]=\"service.filtro.transportadora\"\r\n                                (outSelected)=\"service.filtro.transportadora = $event\">\r\n                            </app-pesquisa-destinatario>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <app-pesquisa-motorista id=\"motoristaId\" name=\"motoristaId\" label=\"motorista\"\r\n                                    modalTitle=\"pesquisaMotorista\" [(ngModel)]=\"service.filtro.motoristaId\"\r\n                                    [showCpf]=\"true\" showCursos=\"false\" showDocumentos=\"false\"\r\n                                    (outSelected)=\"service.filtro.motorista = $event\">\r\n                                </app-pesquisa-motorista>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-6\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"cadastroPlacaId\">{{ 'labels.placa' | translate}}</label>\r\n                                <input id=\"cadastroPlacaId\" name=\"cadastroPlacaId\" maxlength=\"18\"\r\n                                    [(ngModel)]=\"service.filtro.cadastroPlacaId\" class=\"form-control form-control-sm\">\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-6\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"webStoPlanejaVeiculoId\">{{ 'labels.codigo' | translate}}</label>\r\n                                <input id=\"webStoPlanejaVeiculoId\" name=\"webStoPlanejaVeiculoId\" maxlength=\"11\" mask=\"99999999999\"\r\n                                    [(ngModel)]=\"service.filtro.webStoPlanejaVeiculoId\" class=\"form-control form-control-sm\">\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n\r\n                    <div class=\"row\">\r\n                        <div class=\"col-6\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"situacao\">{{ \"labels.situacao\" | translate}}</label>\r\n                                <select id=\"situacao\"\r\n                                        [(ngModel)]=\"service.filtro.sitReg\"\r\n                                        class=\"form-control form-control-sm\" name=\"situacao\"\r\n                                        data-title=\"{{ 'labels.situacao' | translate }}\">\r\n                                    <option value=\"\">{{ \"labels.selecione\" | translate }}</option>\r\n                                    <option *ngFor=\"let t of situacao.get\"\r\n                                            value=\"{{ t.id }}\">\r\n                                        {{ t.descricao }}\r\n                                    </option>\r\n                                </select>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-6\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"modal\">{{ \"labels.modal\" | translate}}</label>\r\n                                <select id=\"modal\" [(ngModel)]=\"service.filtro.modal\"\r\n                                    class=\"form-control form-control-sm\" name=\"modal\"\r\n                                    data-title=\"{{ 'labels.modal' | translate }}\">\r\n                                    <option value=\"\">{{ \"labels.selecione\" | translate }}</option>\r\n                                    <option *ngFor=\"let t of tipoModal.get\" value=\"{{ t.id }}\">\r\n                                        {{ t.descricao }}\r\n                                    </option>\r\n                                </select>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-6\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"tipoOperacao\">{{ \"labels.tipoOperacao\" | translate}}</label>\r\n                                <select id=\"tipoOperacao\"\r\n                                        [(ngModel)]=\"service.filtro.tipoMov\"\r\n                                        class=\"form-control form-control-sm\" name=\"tipoOperacao\"\r\n                                        data-title=\"{{ 'labels.tipoOperacao' | translate }}\">\r\n                                    <option value=\"\">{{ \"labels.selecione\" | translate }}</option>\r\n                                    <option *ngFor=\"let t of tipoMov.get\"\r\n                                            value=\"{{ t.id }}\">\r\n                                        {{ t.descricao }}\r\n                                    </option>\r\n                                </select>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-6\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"status\">{{ \"labels.status\" | translate}}</label>\r\n                                <select id=\"status\"\r\n                                        [(ngModel)]=\"service.filtro.flagStatus\"\r\n                                        class=\"form-control form-control-sm\" name=\"status\"\r\n                                        data-title=\"{{ 'labels.status' | translate }}\">\r\n                                    <option value=\"\">{{ \"labels.selecione\" | translate }}</option>\r\n                                    <option *ngFor=\"let t of status.get\"\r\n                                            value=\"{{ t.id }}\">\r\n                                        {{ t.descricao }}\r\n                                    </option>\r\n                                </select>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class=\"modal-footer\">\r\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.pesquisar' | translate }}\r\n                    </button>\r\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Sair</button>\r\n                </div>\r\n            </form>\r\n        </div>\r\n    </div>\r\n</div>\r\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/raizen/movimentos/agendamento-tas/agendamento-tas-form/agendamento-tas-form.component.html":
/*!********************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/raizen/movimentos/agendamento-tas/agendamento-tas-form/agendamento-tas-form.component.html ***!
  \********************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaForm\" [formAction]=\"actionForm\" [itemData]=\"service.data.agendamentoId\"\r\n    [sisFormularioId]=\"constantes.sisFormularioId\">\r\n</app-menu-command-bar>\r\n\r\n<div class=\"row\">\r\n    <div class=\"col-lg-12\">\r\n        <div class=\"section-comand-bar\">\r\n            <div class=\"clearfix\">\r\n                <ul class=\"nav nav-tabs \">\r\n                    <li class=\"nav-item\">\r\n                        <a class=\"nav-link active show\" data-toggle=\"tab\" href=\"#da\">{{\"labels.dados\" | translate}}</a>\r\n                    </li>\r\n                    <li class=\"nav-item\">\r\n                        <a class=\"nav-link\" data-toggle=\"tab\" href=\"#it\">{{\"labels.itens\" | translate}}</a>\r\n                    </li>\r\n                    <li class=\"nav-item\" *ngIf=\"service.data.tipoMov === 'D'\">\r\n                        <a class=\"nav-link\" data-toggle=\"tab\" href=\"#no\">{{\"labels.notas\" | translate}}</a>\r\n                    </li>\r\n                </ul>\r\n            </div>\r\n            <div class=\"tab-content top\">\r\n                <!-- ABA DADOS -->\r\n                <div class=\"tab-pane active show\" id=\"da\">\r\n                    <app-form-legenda></app-form-legenda>\r\n                    <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\r\n                        <app-validacoes></app-validacoes>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-4\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"codIntTransporte\" class=\"required\">{{\"labels.codIntTransporte\" |\r\n                                        translate}}</label>\r\n                                    <input id=\"codIntTransporte\" name=\"codIntTransporte\" maxlength=\"40\"\r\n                                        [(ngModel)]=\"service.data.codIntTransporte\" class=\"form-control form-control-sm\"\r\n                                        type=\"text\" [disabled]=\"funcoesService.isDetail(actionForm)\" required>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-lg-4\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"codIntPedido\" class=\"required\">{{\"labels.codIntPedido\" |\r\n                                        translate}}</label>\r\n                                    <input id=\"codIntPedido\" name=\"codIntPedido\" maxlength=\"30\"\r\n                                        [(ngModel)]=\"service.data.codIntPedido\" class=\"form-control form-control-sm\" type=\"text\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\" required>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-lg-4\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"codIntNumAgenda\" class=\"required\">{{\"labels.codIntNumAgenda\" |\r\n                                        translate}}</label>\r\n                                    <input id=\"codIntNumAgenda\" name=\"codIntNumAgenda\" maxlength=\"15\"\r\n                                        [(ngModel)]=\"service.data.codIntNumAgenda\" class=\"form-control form-control-sm\"\r\n                                        type=\"text\" [disabled]=\"funcoesService.isDetail(actionForm)\" required>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-2\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"tipoOperacao\">{{\"labels.tipoOperacao\" | translate }}</label>\r\n                                    <select id=\"tipoOperacao\" name=\"tipoOperacao\" [(ngModel)]=\"service.data.tipoMov\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                        class=\"form-control form-control-sm\">\r\n                                        <option value=\"C\">{{ 'labels.carga' | translate }}</option>\r\n                                        <option value=\"D\">{{ 'labels.descarga' | translate }}</option>\r\n                                    </select>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-lg-2\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"tipoFrete\" class=\"required\">{{\"labels.tipoFrete\" |\r\n                                        translate }}</label>\r\n                                    <app-combo-padrao name=\"tipoFrete\" id=\"tipoFrete\" chave=\"TipoFrete\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\" descricao=\"DescrTipoFrete\"\r\n                                        ativo=\"true\" tabela=\"TipoFrete\" [(ngModel)]=\"service.data.tipoFrete\" required=\"true\">\r\n                                    </app-combo-padrao>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-lg-2\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"tipoTransporte\" class=\"required\">{{\"labels.tipoTransporte\" | translate\r\n                                        }}</label>\r\n                                    <select id=\"tipoTransporte\" name=\"tipoTransporte\" required\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                        [(ngModel)]=\"service.data.tipoTransporte\" class=\"form-control form-control-sm\">\r\n                                        <option value=\"\">{{ \"labels.selecione\" | translate }}</option>\r\n                                        <option value=\"T\">{{ 'labels.transferencia' | translate }}</option>\r\n                                        <option value=\"V\">{{ 'labels.venda' | translate }}</option>\r\n                                    </select>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-md-2\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"dtEmissao\">{{'labels.dtEmissao' |\r\n                                        translate}}</label>\r\n                                    <app-data id=\"dtEmissao\" name=\"dtEmissao\" [(ngModel)]=\"service.data.dtEmissao\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                        data-title=\"{{'labels.dtEmissao' | translate}}\">\r\n                                    </app-data>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-md-2\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"prevChegada\">{{'labels.prevChegada' |\r\n                                        translate}}</label>\r\n                                    <app-data id=\"prevChegada\" name=\"prevChegada\" [(ngModel)]=\"service.data.dtPrevisaoChegada\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                        data-title=\"{{'labels.prevChegada' | translate}}\">\r\n                                    </app-data>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-3 col-md-6 col-sm-12\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"placaCavalo\" class=\"required\">{{'labels.placaCavalo' |\r\n                                        translate}}</label>\r\n                                    <input id=\"placaCavalo\" name=\"placaCavalo\" [(ngModel)]=\"service.data.placaCavalo\"\r\n                                        class=\"form-control form-control-sm uppercase\" type=\"text\" maxlength=\"18\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\" required>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-lg-3 col-md-6 col-sm-12\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"placaCarreta1\">{{'labels.placaCarreta1' | translate}}</label>\r\n                                    <input id=\"placaCarreta1\" name=\"placaCarreta1\" [(ngModel)]=\"service.data.placaCarreta1\"\r\n                                        class=\"form-control form-control-sm uppercase\" type=\"text\" maxlength=\"18\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-lg-3 col-md-6 col-sm-12\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"placaCarreta2\">{{'labels.placaCarreta2' | translate}}</label>\r\n                                    <input id=\"placaCarreta2\" name=\"placaCarreta2\" [(ngModel)]=\"service.data.placaCarreta2\"\r\n                                        class=\"form-control form-control-sm uppercase\" type=\"text\" maxlength=\"18\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-lg-2 col-md-6 col-sm-12\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"estado\" class=\"required\">{{\r\n                                        \"labels.estado\" | translate\r\n                                        }}</label>\r\n                                    <select class=\"form-control form-control-sm\" id=\"estado\" required\r\n                                        name=\"estado\" [(ngModel)]=\"service.data.ufPlacaCavalo\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                        <option value=\"\">{{ 'labels.selecione' | translate }}</option>\r\n                                        <option *ngFor=\"let item of estados\" value=\"{{ item.estadoId }}\">{{\r\n                                            item.estadoId\r\n                                            }}</option>\r\n                                    </select>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-6\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <app-pesquisa-motorista id=\"motorista\" name=\"motorista\" label=\"motorista\"\r\n                                        modalTitle=\"pesquisaMotorista\" [(ngModel)]=\"service.data.motoristaId\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\" [showCpf]=\"true\"\r\n                                        showCursos=\"false\" showDocumentos=\"false\"\r\n                                        (outMotorista)=\"trataMotorista($event)\" (outSelected)=\"service.data.motorista = $event\"\r\n                                        [inputMotorista]=\"service.data.motorista\" required=\"true\">\r\n                                    </app-pesquisa-motorista>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-6\">\r\n                                <app-pesquisa-destinatario id=\"transportadora\" name=\"transportadora\"\r\n                                    label=\"transportadora\" [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                    [(ngModel)]=\"service.data.codigoTransportadora\" tipoDestinatario=\"T\"\r\n                                    modalTitle=\"pesquisaDeTransportadora\" showCgcCpf=\"false\" showInscricao=\"false\"\r\n                                    [inSelected]=\"service.data.transportadora\" (outSelected)=\"service.data.transportadora = $event\"\r\n                                    (outModel)=\"trataTransportadora($event)\" required=\"true\">\r\n                                </app-pesquisa-destinatario>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-6\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <app-pesquisa-destinatario id=\"cliente\" name=\"cliente\" tipoDestinatario=\"C\"\r\n                                        modalTitle=\"pesquisaDeCliente\" label=\"cliente\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                        [(ngModel)]=\"service.data.codigoCliente\" showInscricao=\"false\" showCgcCpf=\"false\"\r\n                                        tipoDestinatario=\"C\" [inSelected]=\"service.data.cliente\"\r\n                                        (outSelected)=\"service.data.cliente = $event\" (outModel)=\"trataCliente($event)\"\r\n                                        required=\"true\">\r\n                                    </app-pesquisa-destinatario>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-6\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"terminal\">{{\"labels.terminal\" | translate }}</label>\r\n                                    <input type=\"text\" id=\"terminal\" name=\"terminal\"\r\n                                        class=\"form-control form-control-sm\" maxlength=\"50\" [(ngModel)]=\"service.data.terminal\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"row mt-2\">\r\n                            <div class=\"col-6 col-12\">\r\n                                <div class=\"form-group\">\r\n                                    <button class=\"btn btn-success mr-2\" type=\"submit\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                        {{ 'buttons.salvar' | translate }}\r\n                                    </button>\r\n                                    <button class=\"btn btn-success mr-2\" (click)=\"saveAndCreate(f)\" type=\"button\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">{{ 'buttons.salvarNovo' |\r\n                                        translate }}</button>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                    </form>\r\n                </div>\r\n                <!-- ABA ITENS-->\r\n                <div class=\"tab-pane\" id=\"it\">\r\n                    <div class=\"clearfix\">&nbsp;</div>\r\n                    <app-agendamento-tas-itens [dados]=\"service.data.itens\" (dataResult)=\"refreshItens($event)\"\r\n                        [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                    </app-agendamento-tas-itens>\r\n                </div>\r\n                <!--ABA NOTAS-->\r\n                <div class=\"tab-pane\" id=\"no\">\r\n                    <div class=\"clearfix\">&nbsp;</div>\r\n                    <app-agendamento-tas-notas [dados]=\"service.data.notas\" (dataResult)=\"refreshNotas($event)\"\r\n                        [disabled]=\"funcoesService.isDetail(actionForm) || disableNotas\">\r\n                    </app-agendamento-tas-notas>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/raizen/movimentos/agendamento-tas/agendamento-tas-index/agendamento-tas-index.component.html":
/*!**********************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/raizen/movimentos/agendamento-tas/agendamento-tas-index/agendamento-tas-index.component.html ***!
  \**********************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaIndex\"\n                      [formAction]=\"actionForm\"\n                      [itemData]=\"data.webStoPlanejaVeiculoId\"\n                      [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\">\n    <table id=\"dtAgendamentoTas\" class=\"table table-striped table-bordered table-hover nowrap table-sm\"></table>\n</div>\n\n<app-propriedades></app-propriedades>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\n<app-agendamento-tas-filter (filtrar)=\"executaFiltro()\"></app-agendamento-tas-filter>\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/raizen/movimentos/agendamento-tas/agendamento-tas-itens/agendamento-tas-itens.component.html":
/*!**********************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/raizen/movimentos/agendamento-tas/agendamento-tas-itens/agendamento-tas-itens.component.html ***!
  \**********************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"row\">\r\n    <div class=\"col-md-12 col-lg-12\">\r\n        <div *ngIf=\"!showAdd\">\r\n            <div class=\"btn-group\" *ngIf=\"!showAdd\">\r\n                <button title=\"{{ 'buttons.novo' | translate }}\" class=\"btn uni-btn btn-sm\" (click)=\"create()\"\r\n                    [disabled]=\"disabled\">\r\n                    <i class=\"icon-plus\"></i>\r\n                </button>\r\n                <button title=\"{{ 'buttons.visualizar' | translate }}\" (click)=\"detail()\" class=\"btn uni-btn btn-sm\"\r\n                    [disabled]=\" funcoesService.showButtons.detail(actionForm, dataAux.destinatarioIdCliente)\">\r\n                    <i class=\"icon-eye\"></i>\r\n                </button>\r\n                <button title=\"{{ 'buttons.editar' | translate }}\" class=\"btn uni-btn btn-sm\" (click)=\"edit()\"\r\n                    [disabled]=\"disabled || funcoesService.showButtons.edit(actionForm, dataAux.destinatarioIdCliente)\">\r\n                    <i class=\"icon-pencil\"></i>\r\n                </button>\r\n                <button title=\"{{ 'buttons.excluir' | translate }}\" class=\"btn uni-btn btn-sm\" (click)=\"remove()\"\r\n                    [disabled]=\"disabled || funcoesService.showButtons.remove(actionForm, dataAux.destinatarioIdCliente)\">\r\n                    <i class=\"icon-close\"></i>\r\n                </button>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n\r\n<div class=\"row\" *ngIf=\"!showAdd\">\r\n    <div class=\"col-md-12 col-lg-12\">\r\n        <table class=\"table table-striped table-bordered table-hover rownowrap form-control-sm\">\r\n            <thead>\r\n                <tr>\r\n                    <th style=\"display: none\">{{ 'labels.item' | translate }}</th>\r\n                    <th class=\"text-center\">{{ \"labels.codCliente\" | translate }}</th>\r\n                    <th class=\"text-center\">{{ \"labels.cliente\" | translate }}</th>\r\n                    <th class=\"text-center\">{{ \"labels.codProdutoSAP\" | translate }}</th>\r\n                    <th class=\"text-center\">{{ \"labels.codIntegracao\" | translate }}</th>\r\n                    <th class=\"text-center\">{{ \"labels.produto\" | translate }}</th>\r\n                    <th class=\"text-center\">{{ \"labels.litros\" | translate }}</th>\r\n                </tr>\r\n            </thead>\r\n            <tbody>\r\n                <tr *ngFor=\"let c of (dados | removeExcluidos)\" class=\"clickable\" [ngClass]=\"{ info: c === dataAux }\"\r\n                    (click)=\"dataAux = c\">\r\n                    <td style=\"display: none\">{{ c.item }}</td>\r\n                    <td class=\"text-center\">{{ c.destinatarioIdCliente }}</td>\r\n                    <td class=\"text-center\">{{ c.fantasiaCliente }}</td>\r\n                    <td class=\"text-center\">{{ c.codProdutoSAP }}</td>\r\n                    <td class=\"text-center\">{{ c.codIntegracao }}</td>\r\n                    <td class=\"text-center\">{{ c.descrMater }}</td>\r\n                    <td class=\"text-center\">{{ c.litros | formatCurrency: 0 }}</td>\r\n                </tr>\r\n                <tr *ngIf=\"!hasDados\">\r\n                    <th colspan=\"9\">\r\n                        {{ \"messages.nenhumRegistroEncontrado\" | translate }}\r\n                    </th>\r\n                </tr>\r\n            </tbody>\r\n        </table>\r\n    </div>\r\n</div>\r\n\r\n<div *ngIf=\"showAdd\">\r\n    <div class=\"row\">\r\n        <div class=\"col-lg-6\">\r\n            <div class=\"uni-botoes\">\r\n                <button title=\"{{ 'buttons.editar' | translate }}\" class=\"btn uni-btn btn-sm\" (click)=\"edit()\"\r\n                    [disabled]=\"disabled || funcoesService.showButtons.edit(actionForm, dataAux.destinatarioIdCliente)\">\r\n                    <i class=\"fa fa-edit\"></i>\r\n                </button>\r\n                <button title=\"{{ 'buttons.voltar' | translate }}\" (click)=\"back()\" type=\"button\"\r\n                    class=\"btn uni-btn btn-sm\">\r\n                    <i class=\"fa fa-arrow-left\"></i>\r\n                </button>\r\n            </div>\r\n        </div>\r\n        <div class=\"col-lg-6\">\r\n            <app-form-legenda></app-form-legenda>\r\n        </div>\r\n    </div>\r\n    <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\r\n        <div class=\"row\">\r\n            <div class=\"col-12\">\r\n                <div class=\"card\">\r\n                    <div class=\"card-body widget-body\">\r\n                        <app-validacoes formErrorId=\"msgAgendamentoTasItens\"></app-validacoes>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-6\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <app-pesquisa-destinatario id=\"cliente\" name=\"cliente\" tipoDestinatario=\"C\"\r\n                                        modalTitle=\"pesquisaDeCliente\" label=\"cliente\"\r\n                                        [(ngModel)]=\"data.destinatarioIdCliente\" showInscricao=\"false\"\r\n                                        showCgcCpf=\"false\" tipoDestinatario=\"C\" [inSelected]=\"data.cliente\"\r\n                                        (outSelected)=\"data.cliente = $event\" (outModel)=\"trataCliente($event)\"\r\n                                        [disabled]=\"true\">\r\n                                    </app-pesquisa-destinatario>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-6\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <app-pesquisa-material id=\"codIntegracao\" name=\"codIntegracao\" label=\"codIntegracao\"\r\n                                        modalTitle=\"codIntegracao\" [(ngModel)]=\"data.codIntegracao\"\r\n                                        (outModel)=\"trataMaterial($event)\"\r\n                                        [isCodIntegracao]=\"true\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\" [inSelected]=\"data.material\"\r\n                                        required=\"true\">\r\n                                    </app-pesquisa-material>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-4\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"codProdutoSAP\" class=\"required\">{{\"labels.codProdutoSAP\" | translate}}</label>\r\n                                    <input id=\"codProdutoSAP\" name=\"codProdutoSAP\" maxlength=\"15\"\r\n                                        [(ngModel)]=\"data.codProdutoSAP\" class=\"form-control form-control-sm\"\r\n                                        type=\"text\" [disabled]=\"funcoesService.isDetail(actionForm)\" required>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-4\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"litros\" class=\"required\">{{\"labels.litros\" | translate}}</label>\r\n                                    <input id=\"litros\" name=\"litros\" maxlength=\"15\" [(ngModel)]=\"data.litros\"\r\n                                        class=\"form-control form-control-sm\" type=\"text\" currencyMask\r\n                                        [options]=\"funcoesService.numberUtils.formatCurrency(0)\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\" required>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n\r\n                        <div class=\"form-group mt-2\">\r\n                            <button class=\"btn btn-success\" type=\"submit\"\r\n                                [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                {{ \"buttons.salvar\" | translate }}\r\n                            </button>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </form>\r\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/raizen/movimentos/agendamento-tas/agendamento-tas-notas/agendamento-tas-notas.component.html":
/*!**********************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/raizen/movimentos/agendamento-tas/agendamento-tas-notas/agendamento-tas-notas.component.html ***!
  \**********************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"row\">\r\n    <div class=\"col-md-12 col-lg-12\">\r\n        <div *ngIf=\"!showAdd\">\r\n            <div class=\"btn-group\" *ngIf=\"!showAdd\">\r\n                <button title=\"{{ 'buttons.novo' | translate }}\" class=\"btn uni-btn btn-sm\" (click)=\"create()\"\r\n                    [disabled]=\"disabled\">\r\n                    <i class=\"icon-plus\"></i>\r\n                </button>\r\n                <button title=\"{{ 'buttons.visualizar' | translate }}\" (click)=\"detail()\" class=\"btn uni-btn btn-sm\"\r\n                    [disabled]=\" funcoesService.showButtons.detail(actionForm, dataAux.notaFiscal)\">\r\n                    <i class=\"icon-eye\"></i>\r\n                </button>\r\n                <button title=\"{{ 'buttons.editar' | translate }}\" class=\"btn uni-btn btn-sm\" (click)=\"edit()\"\r\n                    [disabled]=\"disabled || funcoesService.showButtons.edit(actionForm, dataAux.notaFiscal)\">\r\n                    <i class=\"icon-pencil\"></i>\r\n                </button>\r\n                <button title=\"{{ 'buttons.excluir' | translate }}\" class=\"btn uni-btn btn-sm\" (click)=\"remove()\"\r\n                    [disabled]=\"disabled ||funcoesService.showButtons.remove(actionForm, dataAux.notaFiscal)\">\r\n                    <i class=\"icon-close\"></i>\r\n                </button>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n<div class=\"row\" *ngIf=\"!showAdd\">\r\n    <div class=\"col-md-12 col-lg-12\">\r\n        <table class=\"table table-striped table-bordered table-hover rownowrap form-control-sm\">\r\n            <thead>\r\n                <tr>\r\n                    <th style=\"display: none\">{{ 'labels.item' | translate }}</th>\r\n                    <th class=\"text-center\">{{ 'labels.notaFiscal' | translate }}</th>\r\n                    <th class=\"text-center\">{{ 'labels.serie' | translate }}</th>\r\n                    <th class=\"text-center\">{{ 'labels.destinatarioIdEmitente' | translate }}</th>\r\n                    <th class=\"text-center\">{{ 'labels.emitente' | translate }}</th>\r\n                    <th class=\"text-center\">{{ 'labels.dtEmissao' | translate }}</th>\r\n                    <th class=\"text-center\">{{ 'labels.chaveNFE' | translate }}</th>\r\n                </tr>\r\n            </thead>\r\n            <tbody>\r\n                <tr *ngFor=\"let c of (dados | removeExcluidos)\" class=\"clickable\" [ngClass]=\"{ info: c === dataAux }\"\r\n                    (click)=\"dataAux = c\">\r\n                    <td style=\"display: none\">{{ c.item }}</td>\r\n                    <td class=\"text-center\">{{ c.notaFiscal }}</td>\r\n                    <td class=\"text-center\">{{ c.serie }}</td>\r\n                    <td class=\"text-center\">{{ c.destinatarioIdEmitente }}</td>\r\n                    <td class=\"text-center\">{{ c.fantasiaEmitente }}</td>\r\n                    <td class=\"text-center\">{{ c.dtEmissao | date:'dd/MM/yyyy' }}</td>\r\n                    <td class=\"text-center\">{{ c.chaveNFe }}</td>\r\n                </tr>\r\n                <tr *ngIf=\"!hasDados\">\r\n                    <th colspan=\"9\">\r\n                        {{ \"messages.nenhumRegistroEncontrado\" | translate }}\r\n                    </th>\r\n                </tr>\r\n            </tbody>\r\n        </table>\r\n    </div>\r\n</div>\r\n<div *ngIf=\"showAdd\">\r\n    <div class=\"row\">\r\n        <div class=\"col-lg-6\">\r\n            <div class=\"uni-botoes\">\r\n                <button title=\"{{ 'buttons.editar' | translate }}\" class=\"btn uni-btn btn-sm\" (click)=\"edit()\"\r\n                    [disabled]=\"disabled || funcoesService.showButtons.edit(actionForm, dataAux.notaFiscal)\">\r\n                    <i class=\"fa fa-edit\"></i>\r\n                </button>\r\n                <button title=\"{{ 'buttons.voltar' | translate }}\" (click)=\"back()\" type=\"button\"\r\n                    class=\"btn uni-btn btn-sm\">\r\n                    <i class=\"fa fa-arrow-left\"></i>\r\n                </button>\r\n            </div>\r\n        </div>\r\n        <div class=\"col-lg-6\">\r\n            <app-form-legenda></app-form-legenda>\r\n        </div>\r\n    </div>\r\n    <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\r\n        <div class=\"row\">\r\n            <div class=\"col-12\">\r\n                <div class=\"card\">\r\n                    <div class=\"card-body widget-body\">\r\n                        <app-validacoes formErrorId=\"msgAgendamentoTasNotas\"></app-validacoes>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-md-6\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"chaveNFE\" class=\"required\">\r\n                                        {{'labels.chaveNFE' | translate}}\r\n                                    </label>\r\n                                    <div class=\"input-group\">\r\n                                        <input id=\"chaveNFE\" name=\"chaveNFE\" type=\"text\" required\r\n                                            class=\"form-control form-control-sm\" [(ngModel)]=\"data.chaveNFe\"\r\n                                            [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                            data-title=\"{{'labels.chaveNFE' | translate}}\" maxlength=\"54\"\r\n                                            mask=\"0000.0000.0000.0000.0000.0000.0000.0000.0000.0000.0000\">\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-md-3\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"notaFiscal\" class=\"required\">{{'labels.notaFiscal' |\r\n                                        translate}}</label>\r\n                                    <input id=\"notaFiscal\" name=\"notaFiscal\" [(ngModel)]=\"data.notaFiscal\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\" currencyMask\r\n                                        [options]=\"funcoesService.optionCurrency(0)\" maxlength=\"11\"\r\n                                        class=\"form-control form-control-sm\" type=\"text\" required>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-md-3\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label class=\"required\">\r\n                                        {{'labels.serie' | translate}}\r\n                                    </label>\r\n                                    <app-combo-serie-nota id=\"serie\" name=\"serie\" flagAtivo=\"S\" required=\"true\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\" [(ngModel)]=\"data.serie\">\r\n                                    </app-combo-serie-nota>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-lg-2\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"cfop\" class=\"required\">{{'labels.cfop' | translate}}</label>\r\n                                    <app-pesquisa-natureza id=\"cfop\" name=\"cfop\" [(ngModel)]=\"data.cfop\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\" required=\"true\">\r\n                                    </app-pesquisa-natureza>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-md-3\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"dtEmissao\">{{'labels.dtEmissao' |\r\n                                        translate}}</label>\r\n                                    <app-data id=\"dtEmissao\" name=\"dtEmissao\" [(ngModel)]=\"data.dtEmissao\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                        data-title=\"{{'labels.dtEmissao' | translate}}\">\r\n                                    </app-data>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-4\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <app-pesquisa-destinatario id=\"emitente\" name=\"emitente\" tipoDestinatario=\"C\"\r\n                                        modalTitle=\"pesquisaDeCliente\" label=\"emitente\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                        [(ngModel)]=\"data.destinatarioIdEmitente\" showInscricao=\"false\"\r\n                                        showCgcCpf=\"false\" tipoDestinatario=\"C\" [inSelected]=\"data.emitente\"\r\n                                        (outSelected)=\"data.emitente = $event\" (outModel)=\"trataEmitente($event)\"\r\n                                        required=\"true\">\r\n                                    </app-pesquisa-destinatario>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-lg-4\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <app-pesquisa-destinatario id=\"cliente\" name=\"cliente\" tipoDestinatario=\"C\"\r\n                                        modalTitle=\"pesquisaDeCliente\" label=\"cliente\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                        [(ngModel)]=\"data.destinatarioIdCliente\" showInscricao=\"false\"\r\n                                        showCgcCpf=\"false\" tipoDestinatario=\"C\" [inSelected]=\"data.cliente\"\r\n                                        (outSelected)=\"data.cliente = $event\" (outModel)=\"trataCliente($event)\">\r\n                                    </app-pesquisa-destinatario>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-lg-4\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <app-pesquisa-destinatario id=\"clienteVenda\" name=\"clienteVenda\"\r\n                                        tipoDestinatario=\"C\" modalTitle=\"pesquisaDeCliente\" label=\"clienteVenda\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                        [(ngModel)]=\"data.destinatarioIdClienteVenda\" showInscricao=\"false\"\r\n                                        showCgcCpf=\"false\" tipoDestinatario=\"C\" [inSelected]=\"data.clienteVenda\"\r\n                                        (outSelected)=\"data.clienteVenda = $event\"\r\n                                        (outModel)=\"trataClienteVenda($event)\">\r\n                                    </app-pesquisa-destinatario>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-6\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <app-pesquisa-material id=\"codProdutoSAP\" name=\"codProdutoSAP\" label=\"codProdutoSAP\"\r\n                                        modalTitle=\"codProdutoSAP\" [(ngModel)]=\"data.codProdutoSAP\"\r\n                                        (outModel)=\"trataMaterial($event)\"\r\n                                        [isCodIntegracao]=\"true\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\" [inSelected]=\"data.material\"                                        >\r\n                                    </app-pesquisa-material>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-lg-2 col-md-4 col-sm-12\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"unidade\" class=\"required\">{{\r\n                                        \"labels.unidade\" | translate\r\n                                        }}</label>\r\n                                    <app-combo-padrao id=\"unidade\" name=\"unidade\" [(ngModel)]=\"data.unidade\"\r\n                                        tabela=\"Unidade\" chave=\"Unidade\" descricao=\"Unidade\" ativos=\"true\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\" required=\"true\">\r\n                                    </app-combo-padrao>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-lg-2 col-md-12 col-sm-12\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"quantidade\">{{ \"labels.quantidade\" |\r\n                                        translate }}</label>\r\n                                    <input type=\"text\" id=\"quantidade\" name=\"quantidade\" [(ngModel)]=\"data.quantidade\"\r\n                                        class=\"form-control form-control-sm\" currencyMask\r\n                                        [options]=\"funcoesService.optionCurrency(0)\" maxlength=\"10\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\" />\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-lg-2 col-md-12 col-sm-12\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label class=\"required\">{{ \"labels.valorTotal\" | translate }}</label>\r\n                                    <input type=\"text\" id=\"valorTotal\" name=\"valorTotal\" [(ngModel)]=\"data.vlItem\"\r\n                                        currencyMask [options]=\"funcoesService.optionCurrency(2)\"\r\n                                        class=\"form-control form-control-sm\" maxlength=\"11\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\" required />\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-2\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"pesoDoc\" class=\"required\">{{'labels.pesoDoc' | translate}}</label>\r\n                                    <input type=\"text\" id=\"pesoDoc\" name=\"pesoDoc\" class=\"form-control form-control-sm\"\r\n                                        [(ngModel)]=\"data.pesoDoc\" [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                        data-title=\"{{'labels.pesoDoc' | translate}}\" currencyMask\r\n                                        [options]=\"funcoesService.optionCurrency(0)\" required>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-lg-2\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"volume20\">{{'labels.volume20' | translate}}</label>\r\n                                    <input type=\"text\" id=\"volume20\" name=\"volume20\"\r\n                                        class=\"form-control form-control-sm\" [(ngModel)]=\"data.volumeA20\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                        data-title=\"{{'labels.volume20' | translate}}\" currencyMask\r\n                                        [options]=\"funcoesService.optionCurrency(0)\">\r\n                                </div>\r\n                            </div>\r\n\r\n                        </div>\r\n\r\n                        <div class=\"row\">\r\n                            <div class=\"col-lg-4\">\r\n                                <div class=\"form-group form-group-sm\">\r\n                                    <label for=\"observacao\">{{'labels.observacao' | translate}}</label>\r\n                                    <input type=\"text\" id=\"observacao\" name=\"observacao\" maxlength=\"16\"\r\n                                        class=\"form-control form-control-sm\" [(ngModel)]=\"data.observacao\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"form-group mt-2\">\r\n                            <button class=\"btn btn-success\" type=\"submit\"\r\n                                [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                {{ \"buttons.salvar\" | translate }}\r\n                            </button>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </form>\r\n</div>");

/***/ }),

/***/ "./src/app/pages/especificos/raizen/movimentos/agendamento-tas/agendamento-tas-filter/agendamento-tas-filter.component.ts":
/*!********************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/raizen/movimentos/agendamento-tas/agendamento-tas-filter/agendamento-tas-filter.component.ts ***!
  \********************************************************************************************************************************/
/*! exports provided: AgendamentoTasFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AgendamentoTasFilterComponent", function() { return AgendamentoTasFilterComponent; });
/* harmony import */ var _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../../../../../../shared/services/funcoes/modal-utils/modal-utils.static.service */ "./src/app/shared/services/funcoes/modal-utils/modal-utils.static.service.ts");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _agendamento_tas_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../agendamento-tas.model */ "./src/app/pages/especificos/raizen/movimentos/agendamento-tas/agendamento-tas.model.ts");
/* harmony import */ var _agendamento_tas_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../agendamento-tas.service */ "./src/app/pages/especificos/raizen/movimentos/agendamento-tas/agendamento-tas.service.ts");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};








var AgendamentoTasFilterComponent = /** @class */ (function () {
    function AgendamentoTasFilterComponent(service, messageService) {
        this.service = service;
        this.messageService = messageService;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
        this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_4__["Mascaras"]();
        this.tipoMov = new _agendamento_tas_model__WEBPACK_IMPORTED_MODULE_2__["TipoMov"]();
        this.status = new _agendamento_tas_model__WEBPACK_IMPORTED_MODULE_2__["Status"]();
        this.situacao = new _agendamento_tas_model__WEBPACK_IMPORTED_MODULE_2__["Situacao"]();
        this.tipoModal = new _agendamento_tas_model__WEBPACK_IMPORTED_MODULE_2__["TipoModal"]();
    }
    AgendamentoTasFilterComponent.prototype.ngOnInit = function () {
        if (!this.service.filtro) {
            this.service.filtro = new _agendamento_tas_model__WEBPACK_IMPORTED_MODULE_2__["AgendamentoTasFilter"]();
        }
    };
    AgendamentoTasFilterComponent.prototype.onSubmit = function (form) {
        if (!this.validaData()) {
            return;
        }
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        this.filtrar.emit(this.service.filtro);
        _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["ModalUtilsStaticService"].closeModal("agendamento-tas-filter-dialog");
    };
    AgendamentoTasFilterComponent.prototype.validaData = function () {
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_7__["DateTimeUtilsStaticService"].menorA(this.service.filtro.dataF, this.service.filtro.dataI, ['H', 'M'])) {
            this.messageService.warning("titles.agendamentoTas", "messages.periodoDeMenorQueAte");
            return false;
        }
        if (!this.service.filtro.dataF || !this.service.filtro.dataI) {
            this.messageService.warning("titles.agendamentoTas", "messages.dataInvalida");
            return false;
        }
        return true;
    };
    AgendamentoTasFilterComponent.ctorParameters = function () { return [
        { type: _agendamento_tas_service__WEBPACK_IMPORTED_MODULE_3__["AgendamentoTasService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"])(),
        __metadata("design:type", Object)
    ], AgendamentoTasFilterComponent.prototype, "filtrar", void 0);
    AgendamentoTasFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
            selector: "app-agendamento-tas-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./agendamento-tas-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/raizen/movimentos/agendamento-tas/agendamento-tas-filter/agendamento-tas-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_agendamento_tas_service__WEBPACK_IMPORTED_MODULE_3__["AgendamentoTasService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"]])
    ], AgendamentoTasFilterComponent);
    return AgendamentoTasFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/raizen/movimentos/agendamento-tas/agendamento-tas-form/agendamento-tas-form.component.ts":
/*!****************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/raizen/movimentos/agendamento-tas/agendamento-tas-form/agendamento-tas-form.component.ts ***!
  \****************************************************************************************************************************/
/*! exports provided: AgendamentoTasFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AgendamentoTasFormComponent", function() { return AgendamentoTasFormComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _agendamento_tas_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../agendamento-tas.constants */ "./src/app/pages/especificos/raizen/movimentos/agendamento-tas/agendamento-tas.constants.ts");
/* harmony import */ var _agendamento_tas_model__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../agendamento-tas.model */ "./src/app/pages/especificos/raizen/movimentos/agendamento-tas/agendamento-tas.model.ts");
/* harmony import */ var _agendamento_tas_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../agendamento-tas.service */ "./src/app/pages/especificos/raizen/movimentos/agendamento-tas/agendamento-tas.service.ts");
/* harmony import */ var app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/pages/cadastro/destinatario/destinatario.service */ "./src/app/pages/cadastro/destinatario/destinatario.service.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_pages_cadastro_estados_estados_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! app/pages/cadastro/estados/estados.service */ "./src/app/pages/cadastro/estados/estados.service.ts");
/* harmony import */ var app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! app/shared/services/funcoes/array-utils/array-utils.static.service */ "./src/app/shared/services/funcoes/array-utils/array-utils.static.service.ts");
/* harmony import */ var app_pages_cadastro_motorista_motorista_service__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! app/pages/cadastro/motorista/motorista.service */ "./src/app/pages/cadastro/motorista/motorista.service.ts");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js");
/* harmony import */ var app_pages_cadastro_motorista_motorista_model__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! app/pages/cadastro/motorista/motorista.model */ "./src/app/pages/cadastro/motorista/motorista.model.ts");
/* harmony import */ var app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! app/pages/cadastro/destinatario/destinatario.model */ "./src/app/pages/cadastro/destinatario/destinatario.model.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};




















var AgendamentoTasFormComponent = /** @class */ (function (_super) {
    __extends(AgendamentoTasFormComponent, _super);
    function AgendamentoTasFormComponent(router, messageService, activatedRoute, configuracao, funcoesService, permissoesUtils, loginService, destinatarioService, service, estadosService, motoristaService) {
        var _this = _super.call(this, new _agendamento_tas_constants__WEBPACK_IMPORTED_MODULE_2__["AgendamentoTasConstants"](), funcoesService) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.configuracao = configuracao;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.destinatarioService = destinatarioService;
        _this.service = service;
        _this.estadosService = estadosService;
        _this.motoristaService = motoristaService;
        _this.mensagens = [];
        _this.constantes = new _agendamento_tas_constants__WEBPACK_IMPORTED_MODULE_2__["AgendamentoTasConstants"]();
        _this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_6__["Mascaras"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.pageRoute = "/especificos/raizen/movimentos/agendamentoTas";
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    AgendamentoTasFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, this.permissoesUtils.getLibRotina(this.actionForm), function () { return __awaiter(_this, void 0, void 0, function () {
            var id;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        id = this.activatedRoute.snapshot.paramMap.get("id");
                        return [4 /*yield*/, this.getEstados()];
                    case 1:
                        _a.sent();
                        if (id) {
                            this.service.getById(id).subscribe(function (resp) {
                                _this.service.data = resp;
                                _this.init();
                            });
                        }
                        else {
                            this.service.data = new _agendamento_tas_model__WEBPACK_IMPORTED_MODULE_3__["AgendamentoTas"]();
                        }
                        return [2 /*return*/];
                }
            });
        }); }, function () {
            _this.permissoesUtils.back();
        });
    };
    AgendamentoTasFormComponent.prototype.init = function () {
        var _this = this;
        Object(rxjs__WEBPACK_IMPORTED_MODULE_17__["forkJoin"])([
            this.destinatarioService.getById(this.service.data.codigoCliente),
            this.destinatarioService.getById(this.service.data.codigoTransportadora),
            this.motoristaService.getById(this.service.data.motoristaId)
        ]).subscribe(function (result) {
            _this.service.data.cliente = !!result[0] ? result[0] : new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_19__["Destinatario"]();
            _this.service.data.transportadora = !!result[1] ? result[1] : new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_19__["Destinatario"]();
            _this.service.data.motorista = !!result[2] ? result[2] : new app_pages_cadastro_motorista_motorista_model__WEBPACK_IMPORTED_MODULE_18__["Motorista"]();
        });
    };
    AgendamentoTasFormComponent.prototype.onSubmit = function (form, create) {
        var _this = this;
        if (create === void 0) { create = false; }
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_13__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            this.funcoesService.backToTop();
            return;
        }
        this.service
            ._save(this.service.data)
            .subscribe(function (result) {
            _this.mensagens = _this.messageService.validationResult(result);
            if (!result.isValid) {
                app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_13__["EventEmitterService"].get("backError").emit(_this.mensagens);
            }
            else {
                _this.messageService.saveSuccess("titles.agendamentoTas");
                if (create) {
                    _this.service.data = new _agendamento_tas_model__WEBPACK_IMPORTED_MODULE_3__["AgendamentoTas"]();
                    _this.router.navigate(["" + _this.target + _this.pageRoute + "/create"]);
                }
                else {
                    _this.back();
                }
            }
        });
    };
    AgendamentoTasFormComponent.prototype.refreshItens = function (event) {
        this.service.data.itens = event;
    };
    AgendamentoTasFormComponent.prototype.refreshNotas = function (event) {
        this.service.data.notas = event;
    };
    AgendamentoTasFormComponent.prototype.saveAndCreate = function (form) {
        this.onSubmit(form, true);
    };
    AgendamentoTasFormComponent.prototype.edit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            if (!_this.service.validaSePermiteExcluirOuAlterar(_this.service.data))
                return;
            _this.router.navigate(["" + _this.target + _this.pageRoute + "/edit/" + _this.service.data.agendamentoId]);
        });
    };
    AgendamentoTasFormComponent.prototype.back = function () {
        this.funcoesService.desabilitarFiltro();
        this.router.navigate(["" + this.target + this.pageRoute]);
    };
    AgendamentoTasFormComponent.prototype.getEstados = function () {
        return __awaiter(this, void 0, void 0, function () {
            var es;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        this.estados = [];
                        return [4 /*yield*/, this.estadosService.get().toPromise()];
                    case 1:
                        es = _a.sent();
                        if (app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_15__["ArrayUtilsStaticService"].any(es)) {
                            this.estados = es.filter(function (val) { return val.sitReg != "E"; });
                        }
                        ;
                        return [2 /*return*/];
                }
            });
        });
    };
    AgendamentoTasFormComponent.prototype.trataCliente = function (cliente) {
        if (!cliente)
            return;
        this.service.data.cliente = cliente;
        this.service.data.cnpjCliente = cliente.cgcCpf;
    };
    AgendamentoTasFormComponent.prototype.trataTransportadora = function (transportadora) {
        if (!transportadora)
            return;
        this.service.data.transportadora = transportadora;
        this.service.data.cnpjTransportadora = transportadora.cgcCpf;
    };
    AgendamentoTasFormComponent.prototype.trataMotorista = function (motorista) {
        if (!motorista)
            return;
        this.service.data.motorista = motorista;
        this.service.data.cpfMotorista = motorista.cgcCpf;
    };
    Object.defineProperty(AgendamentoTasFormComponent.prototype, "disableNotas", {
        // get disableMotorista(): boolean {
        //     return this.actionForm !== ActionForm.create;
        // }
        get: function () {
            return this.actionForm !== app_config_enumerables__WEBPACK_IMPORTED_MODULE_6__["ActionForm"].create;
        },
        enumerable: true,
        configurable: true
    });
    AgendamentoTasFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_8__["ConfiguracaoFacade"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_9__["FuncoesService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_11__["PermissoesUtilsService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_10__["LoginService"] },
        { type: app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_12__["DestinatarioService"] },
        { type: _agendamento_tas_service__WEBPACK_IMPORTED_MODULE_4__["AgendamentoTasService"] },
        { type: app_pages_cadastro_estados_estados_service__WEBPACK_IMPORTED_MODULE_14__["EstadosService"] },
        { type: app_pages_cadastro_motorista_motorista_service__WEBPACK_IMPORTED_MODULE_16__["MotoristaService"] }
    ]; };
    AgendamentoTasFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-agendamento-tas-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./agendamento-tas-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/raizen/movimentos/agendamento-tas/agendamento-tas-form/agendamento-tas-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_8__["ConfiguracaoFacade"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_9__["FuncoesService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_11__["PermissoesUtilsService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_10__["LoginService"],
            app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_12__["DestinatarioService"],
            _agendamento_tas_service__WEBPACK_IMPORTED_MODULE_4__["AgendamentoTasService"],
            app_pages_cadastro_estados_estados_service__WEBPACK_IMPORTED_MODULE_14__["EstadosService"],
            app_pages_cadastro_motorista_motorista_service__WEBPACK_IMPORTED_MODULE_16__["MotoristaService"]])
    ], AgendamentoTasFormComponent);
    return AgendamentoTasFormComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/raizen/movimentos/agendamento-tas/agendamento-tas-index/agendamento-tas-index.component.ts":
/*!******************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/raizen/movimentos/agendamento-tas/agendamento-tas-index/agendamento-tas-index.component.ts ***!
  \******************************************************************************************************************************/
/*! exports provided: AgendamentoTasIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AgendamentoTasIndexComponent", function() { return AgendamentoTasIndexComponent; });
/* harmony import */ var _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../../../../../../shared/services/funcoes/modal-utils/modal-utils.static.service */ "./src/app/shared/services/funcoes/modal-utils/modal-utils.static.service.ts");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _agendamento_tas_model__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../agendamento-tas.model */ "./src/app/pages/especificos/raizen/movimentos/agendamento-tas/agendamento-tas.model.ts");
/* harmony import */ var _agendamento_tas_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../agendamento-tas.constants */ "./src/app/pages/especificos/raizen/movimentos/agendamento-tas/agendamento-tas.constants.ts");
/* harmony import */ var _agendamento_tas_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../agendamento-tas.service */ "./src/app/pages/especificos/raizen/movimentos/agendamento-tas/agendamento-tas.service.ts");
/* harmony import */ var app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};













var AgendamentoTasIndexComponent = /** @class */ (function (_super) {
    __extends(AgendamentoTasIndexComponent, _super);
    function AgendamentoTasIndexComponent(router, service, datatablesService, messageService, funcoesService, permissoesUtils, loginService) {
        var _this = _super.call(this, new _agendamento_tas_constants__WEBPACK_IMPORTED_MODULE_4__["AgendamentoTasConstants"](), funcoesService) || this;
        _this.router = router;
        _this.service = service;
        _this.datatablesService = datatablesService;
        _this.messageService = messageService;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.data = new _agendamento_tas_model__WEBPACK_IMPORTED_MODULE_3__["AgendamentoTasIndexDto"]();
        _this.mensagens = [];
        _this.constantes = new _agendamento_tas_constants__WEBPACK_IMPORTED_MODULE_4__["AgendamentoTasConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.pageRoute = "/especificos/raizen/movimentos/agendamentoTas";
        _this.remove = function () { return __awaiter(_this, void 0, void 0, function () {
            var _this = this;
            return __generator(this, function (_a) {
                if (!!(this.data.webStoPlanejaVeiculoId)) {
                    if (!this.service.validaSePermiteExcluirOuAlterar(this.data))
                        return [2 /*return*/];
                    this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () { return __awaiter(_this, void 0, void 0, function () {
                        var _this = this;
                        return __generator(this, function (_a) {
                            this.messageService.removeConfirm(function () {
                                var agendamentoTas = new _agendamento_tas_model__WEBPACK_IMPORTED_MODULE_3__["AgendamentoTas"]();
                                agendamentoTas.agendamentoId = _this.data.webStoPlanejaVeiculoId;
                                _this.service._remove(agendamentoTas).subscribe(function (result1) {
                                    _this.mensagens = _this.messageService.validationResult(result1);
                                    if (!result1.isValid) {
                                        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_12__["EventEmitterService"].get("backError").emit(_this.mensagens);
                                    }
                                    else {
                                        _this.datatablesService.remove("dtAgendamentoTas");
                                        _this.refresh();
                                    }
                                });
                            });
                            return [2 /*return*/];
                        });
                    }); });
                }
                return [2 /*return*/];
            });
        }); };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    AgendamentoTasIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            if (!_this.loginService.isTokenExpired()) {
                if (_this.funcoesService.abrirFiltro) {
                    _this.service.filtro = new _agendamento_tas_model__WEBPACK_IMPORTED_MODULE_3__["AgendamentoTasFilter"]();
                    _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["ModalUtilsStaticService"].openModal("agendamento-tas-filter-dialog");
                }
                else {
                    _this.refresh();
                }
            }
        }, function () {
            _this.permissoesUtils.back();
        }, true);
    };
    AgendamentoTasIndexComponent.prototype.create = function () {
        this.router.navigate(["" + this.target + this.pageRoute + "/create"]);
    };
    AgendamentoTasIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.service.getByFiltro(this.service.filtro).subscribe(function (data) {
            var columns = [
                _this.datatablesService.getDataStringAlignRight("webStoPlanejaVeiculoId", "codigo"),
                _this.datatablesService.getDataStringAlignRight("codIntTransporte", "codIntTransporte"),
                _this.datatablesService.getDataStringAlignRight("codIntPedido", "codIntPedido"),
                _this.datatablesService.getDataStringAlignRight("codIntNumAgenda", "codIntNumAgenda"),
                _this.datatablesService.getDataDateTime("dtPrevisaoChegada", "previsao", "DD/MM/YYYY", "15%"),
                _this.datatablesService.getDataString("tipoMov", "tipo"),
                _this.datatablesService.getDataString("modal", "modal"),
                _this.datatablesService.getDataString("razaoTransp", "transportadora"),
                _this.datatablesService.getDataString("nomeMotorista", "motorista"),
                _this.datatablesService.getDataString("placaCavalo", "placaCavalo"),
                _this.datatablesService.getDataString("placaCarreta1", "placaCarreta1"),
                _this.datatablesService.getDataString("placaCarreta2", "placaCarreta2"),
                _this.datatablesService.getDataString("status", "status"),
                _this.datatablesService.getDataString("situacao", "situacao")
            ];
            _this.datatablesService.toDataTable({ tableId: "dtAgendamentoTas", columns: columns, data: data }, function (aData) {
                _this.data = aData;
            });
        });
    };
    AgendamentoTasIndexComponent.prototype.edit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () {
            if (!!(_this.data.webStoPlanejaVeiculoId)) {
                if (!_this.service.validaSePermiteExcluirOuAlterar(_this.data))
                    return;
                _this.router.navigate(["" + _this.target + _this.pageRoute + "/edit/" + _this.data.webStoPlanejaVeiculoId]);
            }
        });
    };
    AgendamentoTasIndexComponent.prototype.filtrar = function () {
        _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["ModalUtilsStaticService"].openModal("agendamento-tas-filter-dialog");
    };
    AgendamentoTasIndexComponent.prototype.executaFiltro = function () {
        _shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["ModalUtilsStaticService"].closeModal("agendamento-tas-filter-dialog");
        this.refresh();
    };
    AgendamentoTasIndexComponent.prototype.detail = function () {
        if (!!(this.data.webStoPlanejaVeiculoId)) {
            this.router.navigate(["" + this.target + this.pageRoute + "/detail/" + this.data.webStoPlanejaVeiculoId]);
        }
    };
    AgendamentoTasIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    AgendamentoTasIndexComponent.prototype.properties = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 6, function () {
            _super.prototype.properties.call(_this, _this.data);
        });
    };
    AgendamentoTasIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"] },
        { type: _agendamento_tas_service__WEBPACK_IMPORTED_MODULE_5__["AgendamentoTasService"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_7__["DatatablesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_11__["FuncoesService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_10__["LoginService"] }
    ]; };
    AgendamentoTasIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
            selector: "app-agendamento-tas-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./agendamento-tas-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/raizen/movimentos/agendamento-tas/agendamento-tas-index/agendamento-tas-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"],
            _agendamento_tas_service__WEBPACK_IMPORTED_MODULE_5__["AgendamentoTasService"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_7__["DatatablesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_11__["FuncoesService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_10__["LoginService"]])
    ], AgendamentoTasIndexComponent);
    return AgendamentoTasIndexComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_6__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/raizen/movimentos/agendamento-tas/agendamento-tas-itens/agendamento-tas-itens.component.ts":
/*!******************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/raizen/movimentos/agendamento-tas/agendamento-tas-itens/agendamento-tas-itens.component.ts ***!
  \******************************************************************************************************************************/
/*! exports provided: AgendamentoTasItensComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AgendamentoTasItensComponent", function() { return AgendamentoTasItensComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _agendamento_tas_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../agendamento-tas.service */ "./src/app/pages/especificos/raizen/movimentos/agendamento-tas/agendamento-tas.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var _agendamento_tas_model__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../agendamento-tas.model */ "./src/app/pages/especificos/raizen/movimentos/agendamento-tas/agendamento-tas.model.ts");
/* harmony import */ var app_shared_services_funcoes_cpf_cnpj_cpf_cnpj_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/services/funcoes/cpf-cnpj/cpf-cnpj.service */ "./src/app/shared/services/funcoes/cpf-cnpj/cpf-cnpj.service.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};










var AgendamentoTasItensComponent = /** @class */ (function () {
    function AgendamentoTasItensComponent(messageService, funcoesService, configuracao, service, permissoesUtils, cpfCnpjService) {
        this.messageService = messageService;
        this.funcoesService = funcoesService;
        this.configuracao = configuracao;
        this.service = service;
        this.permissoesUtils = permissoesUtils;
        this.cpfCnpjService = cpfCnpjService;
        this.dataResult = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.response = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.dataAux = new _agendamento_tas_model__WEBPACK_IMPORTED_MODULE_8__["AgendamentoTasItem"]();
        this.data = new _agendamento_tas_model__WEBPACK_IMPORTED_MODULE_8__["AgendamentoTasItem"]();
        this.showAdd = false;
        this.actionForm = app_config_enumerables__WEBPACK_IMPORTED_MODULE_4__["ActionForm"].index;
        this.hasDados = false;
    }
    AgendamentoTasItensComponent.prototype.ngDoCheck = function () {
        this.hasDados =
            this.dados &&
                this.dados.length > 0 &&
                this.dados.filter(function (v) {
                    if (v["sitReg"] !== "E") {
                        return true;
                    }
                    return false;
                }).length > 0;
        if (!this.isDoCheck) {
            if (this.dados) {
                for (var i = 1; i <= this.dados.length; i++) {
                    this.dados[i - 1]["sequencia"] = i;
                }
                this.isDoCheck = true;
            }
        }
    };
    AgendamentoTasItensComponent.prototype.create = function () {
        this.showAdd = true;
        this.actionForm = app_config_enumerables__WEBPACK_IMPORTED_MODULE_4__["ActionForm"].create;
        this.data = new _agendamento_tas_model__WEBPACK_IMPORTED_MODULE_8__["AgendamentoTasItem"]();
        this.initCliente();
    };
    AgendamentoTasItensComponent.prototype.initCliente = function () {
        this.data.cnpjCliente = this.service.data.cnpjCliente;
        this.data.destinatarioIdCliente = this.service.data.codigoCliente;
        this.data.fantasiaCliente = this.service.data.cliente.fantasia;
        this.data.cliente = this.service.data.cliente;
    };
    AgendamentoTasItensComponent.prototype.edit = function () {
        this.showAdd = true;
        this.actionForm = app_config_enumerables__WEBPACK_IMPORTED_MODULE_4__["ActionForm"].edit;
        this.data = this.dataAux;
    };
    AgendamentoTasItensComponent.prototype.detail = function () {
        this.showAdd = true;
        this.actionForm = app_config_enumerables__WEBPACK_IMPORTED_MODULE_4__["ActionForm"].detail;
        this.data = this.dataAux;
    };
    AgendamentoTasItensComponent.prototype.back = function () {
        this.showAdd = false;
        this.actionForm = app_config_enumerables__WEBPACK_IMPORTED_MODULE_4__["ActionForm"].index;
    };
    AgendamentoTasItensComponent.prototype.remove = function () {
        var _this = this;
        this.data = this.dataAux;
        if (!this.funcoesService.isUndefinedOrNull(this.data.sequencia)) {
            this.messageService.removeConfirm(function () {
                var i = _this.dados.findIndex(function (x) { return x.sequencia === _this.data.sequencia; });
                _this.data["sitReg"] = "E";
                _this.dados[i] = _this.data;
            });
        }
    };
    AgendamentoTasItensComponent.prototype.onSubmit = function (form) {
        var _this = this;
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__["EventEmitterService"].get("msgAgendamentoTasItens").emit(form);
        if (form.invalid) {
            return;
        }
        if (this.funcoesService.isNotUndefinedOrNull(this.data)) {
            if (this.data.sequencia && this.data.sequencia > 0) {
                if (this.dados.length > 0) {
                    var i = this.dados.findIndex(function (x) { return x.sequencia === _this.data.sequencia; });
                    this.dados[i] = this.data;
                }
                else {
                    this.dados = [];
                    this.dados.push(this.data);
                }
            }
            else {
                this.setSequencia();
                if (this.funcoesService.isUndefinedOrNull(this.dados)) {
                    this.dados = [];
                }
                this.dados.push(this.data);
            }
            this.data = new _agendamento_tas_model__WEBPACK_IMPORTED_MODULE_8__["AgendamentoTasItem"]();
            this.dataResult.emit(this.dados);
        }
        this.back();
    };
    AgendamentoTasItensComponent.prototype.setSequencia = function () {
        var s = this.dados ? this.dados.length : 0;
        this.data.sequencia = s + 1;
    };
    AgendamentoTasItensComponent.prototype.trataCliente = function (cliente) {
        if (!cliente)
            return;
        this.data.cnpjCliente = cliente.cgcCpf;
        this.data.fantasiaCliente = cliente.fantasia;
    };
    AgendamentoTasItensComponent.prototype.trataMaterial = function (material) {
        if (!material)
            return;
        this.data.material = material;
        this.data.descrMater = material.descrMater;
    };
    AgendamentoTasItensComponent.ctorParameters = function () { return [
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"] },
        { type: app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_7__["ConfiguracaoFacade"] },
        { type: _agendamento_tas_service__WEBPACK_IMPORTED_MODULE_2__["AgendamentoTasService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_3__["PermissoesUtilsService"] },
        { type: app_shared_services_funcoes_cpf_cnpj_cpf_cnpj_service__WEBPACK_IMPORTED_MODULE_9__["CpfCnpjService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Array)
    ], AgendamentoTasItensComponent.prototype, "dados", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], AgendamentoTasItensComponent.prototype, "disabled", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], AgendamentoTasItensComponent.prototype, "dataResult", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], AgendamentoTasItensComponent.prototype, "response", void 0);
    AgendamentoTasItensComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-agendamento-tas-itens",
            template: __importDefault(__webpack_require__(/*! raw-loader!./agendamento-tas-itens.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/raizen/movimentos/agendamento-tas/agendamento-tas-itens/agendamento-tas-itens.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_5__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"],
            app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_7__["ConfiguracaoFacade"],
            _agendamento_tas_service__WEBPACK_IMPORTED_MODULE_2__["AgendamentoTasService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_3__["PermissoesUtilsService"],
            app_shared_services_funcoes_cpf_cnpj_cpf_cnpj_service__WEBPACK_IMPORTED_MODULE_9__["CpfCnpjService"]])
    ], AgendamentoTasItensComponent);
    return AgendamentoTasItensComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/raizen/movimentos/agendamento-tas/agendamento-tas-notas/agendamento-tas-notas.component.ts":
/*!******************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/raizen/movimentos/agendamento-tas/agendamento-tas-notas/agendamento-tas-notas.component.ts ***!
  \******************************************************************************************************************************/
/*! exports provided: AgendamentoTasNotasComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AgendamentoTasNotasComponent", function() { return AgendamentoTasNotasComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _agendamento_tas_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../agendamento-tas.model */ "./src/app/pages/especificos/raizen/movimentos/agendamento-tas/agendamento-tas.model.ts");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_shared_services_funcoes_cpf_cnpj_cpf_cnpj_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/funcoes/cpf-cnpj/cpf-cnpj.service */ "./src/app/shared/services/funcoes/cpf-cnpj/cpf-cnpj.service.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};







var AgendamentoTasNotasComponent = /** @class */ (function () {
    function AgendamentoTasNotasComponent(messageService, funcoesService, cpfCnpjService) {
        this.messageService = messageService;
        this.funcoesService = funcoesService;
        this.cpfCnpjService = cpfCnpjService;
        this.dataResult = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.dataAux = new _agendamento_tas_model__WEBPACK_IMPORTED_MODULE_1__["AgendamentoTasNotas"]();
        this.data = new _agendamento_tas_model__WEBPACK_IMPORTED_MODULE_1__["AgendamentoTasNotas"]();
        this.showAdd = false;
        this.actionForm = app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index;
        this.hasDados = false;
    }
    AgendamentoTasNotasComponent.prototype.ngDoCheck = function () {
        this.hasDados =
            this.dados &&
                this.dados.length > 0 &&
                this.dados.filter(function (v) {
                    if (v["sitReg"] !== "E") {
                        return true;
                    }
                    return false;
                }).length > 0;
        if (!this.isDoCheck) {
            if (this.dados) {
                for (var i = 1; i <= this.dados.length; i++) {
                    this.dados[i - 1]["sequencia"] = i;
                }
                this.isDoCheck = true;
            }
        }
    };
    AgendamentoTasNotasComponent.prototype.create = function () {
        this.showAdd = true;
        this.actionForm = app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create;
        this.data = new _agendamento_tas_model__WEBPACK_IMPORTED_MODULE_1__["AgendamentoTasNotas"]();
    };
    AgendamentoTasNotasComponent.prototype.edit = function () {
        this.showAdd = true;
        this.actionForm = app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit;
        this.data = this.dataAux;
    };
    AgendamentoTasNotasComponent.prototype.detail = function () {
        this.showAdd = true;
        this.actionForm = app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail;
        this.data = this.dataAux;
    };
    AgendamentoTasNotasComponent.prototype.back = function () {
        this.showAdd = false;
        this.actionForm = app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index;
    };
    AgendamentoTasNotasComponent.prototype.remove = function () {
        var _this = this;
        this.data = this.dataAux;
        if (!this.funcoesService.isUndefinedOrNull(this.data.sequencia)) {
            this.messageService.removeConfirm(function () {
                var i = _this.dados.findIndex(function (x) { return x.sequencia === _this.data.sequencia; });
                _this.data["sitReg"] = "E";
                _this.dados[i] = _this.data;
            });
        }
    };
    AgendamentoTasNotasComponent.prototype.onSubmit = function (form) {
        var _this = this;
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_5__["EventEmitterService"].get("msgAgendamentoTasNotas").emit(form);
        if (form.invalid) {
            return;
        }
        if (this.funcoesService.isNotUndefinedOrNull(this.data)) {
            if (this.data.sequencia && this.data.sequencia > 0) {
                if (this.dados.length > 0) {
                    var i = this.dados.findIndex(function (x) { return x.sequencia === _this.data.sequencia; });
                    this.dados[i] = this.data;
                }
                else {
                    this.dados = [];
                    this.dados.push(this.data);
                }
            }
            else {
                this.setSequencia();
                if (this.funcoesService.isUndefinedOrNull(this.dados)) {
                    this.dados = [];
                }
                this.dados.push(this.data);
            }
            this.data = new _agendamento_tas_model__WEBPACK_IMPORTED_MODULE_1__["AgendamentoTasNotas"]();
            this.dataResult.emit(this.dados);
        }
        this.back();
    };
    AgendamentoTasNotasComponent.prototype.setSequencia = function () {
        if (this.funcoesService.isUndefinedOrNull(this.data.notaFiscal)) {
            var s = this.dados ? this.dados.length : 0;
            this.data.sequencia = s + 1;
        }
        else {
            this.data.sequencia = this.data.sequencia;
        }
    };
    AgendamentoTasNotasComponent.prototype.trataEmitente = function (emitente) {
        if (!emitente)
            return;
        this.data.cnpjEmitente = emitente.cgcCpf;
        this.data.emitente = emitente;
        this.data.fantasiaEmitente = emitente.fantasia;
    };
    AgendamentoTasNotasComponent.prototype.trataCliente = function (cliente) {
        if (!cliente)
            return;
        this.data.cliente = cliente;
        this.data.cnpjCliente = cliente.cgcCpf;
    };
    AgendamentoTasNotasComponent.prototype.trataClienteVenda = function (clienteVenda) {
        if (!clienteVenda)
            return;
        this.data.clienteVenda = clienteVenda;
        this.data.cnpjClienteVenda = clienteVenda.cgcCpf;
    };
    AgendamentoTasNotasComponent.prototype.trataMaterial = function (material) {
        if (!material)
            return;
        this.data.material = material;
    };
    AgendamentoTasNotasComponent.ctorParameters = function () { return [
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: app_shared_services_funcoes_cpf_cnpj_cpf_cnpj_service__WEBPACK_IMPORTED_MODULE_6__["CpfCnpjService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Array)
    ], AgendamentoTasNotasComponent.prototype, "dados", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], AgendamentoTasNotasComponent.prototype, "disabled", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], AgendamentoTasNotasComponent.prototype, "dataResult", void 0);
    AgendamentoTasNotasComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-agendamento-tas-notas",
            template: __importDefault(__webpack_require__(/*! raw-loader!./agendamento-tas-notas.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/raizen/movimentos/agendamento-tas/agendamento-tas-notas/agendamento-tas-notas.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            app_shared_services_funcoes_cpf_cnpj_cpf_cnpj_service__WEBPACK_IMPORTED_MODULE_6__["CpfCnpjService"]])
    ], AgendamentoTasNotasComponent);
    return AgendamentoTasNotasComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/raizen/movimentos/agendamento-tas/agendamento-tas.constants.ts":
/*!**************************************************************************************************!*\
  !*** ./src/app/pages/especificos/raizen/movimentos/agendamento-tas/agendamento-tas.constants.ts ***!
  \**************************************************************************************************/
/*! exports provided: AgendamentoTasConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AgendamentoTasConstants", function() { return AgendamentoTasConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var AgendamentoTasConstants = /** @class */ (function () {
    function AgendamentoTasConstants() {
        this.sisFormularioId = 375115;
        this.permissoes = [
            { sisFormularioId: this.sisFormularioId, libRotina: 1, acao: "labels.inclusao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 2, acao: "labels.alteracao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 3, acao: "labels.exclusao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 4, acao: "labels.consulta" },
            { sisFormularioId: this.sisFormularioId, libRotina: 5, acao: "labels.permissoes" },
            { sisFormularioId: this.sisFormularioId, libRotina: 6, acao: "labels.propriedades" }
        ];
        this.sisSistemaId = "CAD";
        this.nomeForm = "titles.agendamentoTas";
        this.reportId = "RAI0000";
        this.tabela = "AgendamentoTas";
        this.listaIndex = [
            { title: 'Novo', action: 'create', icon: "icon-plus", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Visualizar', action: 'detail', icon: "icon-eye", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Editar', action: 'edit', icon: "icon-pencil", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Excluir', action: 'remove', icon: "icon-close", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Atualizar', action: 'refresh', icon: "icon-reload", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Pesquisar', action: 'filtrar', icon: "icon-search", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Propriedade', action: 'properties', icon: "icon-menu", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
        ];
        this.listaForm = [
            { title: 'Editar', action: 'edit', icon: "icon-pencil", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Voltar', action: 'back', icon: "icon-arrow-left", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
        ];
    }
    return AgendamentoTasConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/raizen/movimentos/agendamento-tas/agendamento-tas.model.ts":
/*!**********************************************************************************************!*\
  !*** ./src/app/pages/especificos/raizen/movimentos/agendamento-tas/agendamento-tas.model.ts ***!
  \**********************************************************************************************/
/*! exports provided: AgendamentoTasIndexDto, AgendamentoTasFilter, TipoMov, Status, Situacao, TipoModal, AgendamentoTas, AgendamentoTasItemIndexDto, AgendamentoTasNotaIndexDto, AgendamentoTasItem, AgendamentoTasNotas */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AgendamentoTasIndexDto", function() { return AgendamentoTasIndexDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AgendamentoTasFilter", function() { return AgendamentoTasFilter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TipoMov", function() { return TipoMov; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Status", function() { return Status; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Situacao", function() { return Situacao; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TipoModal", function() { return TipoModal; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AgendamentoTas", function() { return AgendamentoTas; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AgendamentoTasItemIndexDto", function() { return AgendamentoTasItemIndexDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AgendamentoTasNotaIndexDto", function() { return AgendamentoTasNotaIndexDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AgendamentoTasItem", function() { return AgendamentoTasItem; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AgendamentoTasNotas", function() { return AgendamentoTasNotas; });
/* harmony import */ var app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/pages/cadastro/destinatario/destinatario.model */ "./src/app/pages/cadastro/destinatario/destinatario.model.ts");
/* harmony import */ var app_pages_cadastro_motorista_motorista_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/pages/cadastro/motorista/motorista.model */ "./src/app/pages/cadastro/motorista/motorista.model.ts");
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};



var AgendamentoTasIndexDto = /** @class */ (function () {
    function AgendamentoTasIndexDto() {
    }
    return AgendamentoTasIndexDto;
}());

var AgendamentoTasFilter = /** @class */ (function () {
    function AgendamentoTasFilter() {
        this.dataI = app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_2__["DateTimeUtilsStaticService"].getFirstDayOfMonth();
        this.dataF = app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_2__["DateTimeUtilsStaticService"].getFinalDay();
        this.destinatarioIdCliente = 0;
        this.webStoPlanejaVeiculoId = 0;
        this.destinatarioIdTransportadora = 0;
        this.motoristaId = "";
        this.sitReg = "A";
        this.tipoMov = "T";
        this.modal = "T";
        this.flagStatus = "A";
    }
    return AgendamentoTasFilter;
}());

var TipoMov = /** @class */ (function () {
    function TipoMov() {
        this.get = [
            { id: "C", descricao: "Carga" },
            { id: "D", descricao: "Descarga" },
            { id: "T", descricao: "Todos" }
        ];
    }
    return TipoMov;
}());

var Status = /** @class */ (function () {
    function Status() {
        this.get = [
            { id: "A", descricao: "Em Aberto" },
            { id: "E", descricao: "Cancelado/Encerrado" },
            { id: "C", descricao: "Concluído" },
            { id: "T", descricao: "Todos" }
        ];
    }
    return Status;
}());

var Situacao = /** @class */ (function () {
    function Situacao() {
        this.get = [
            { id: "A", descricao: "Autorizado" },
            { id: "E", descricao: "Aguardando Envio" },
            { id: "G", descricao: "Ag. Autorização" },
            { id: "R", descricao: "Recusado" },
            { id: "T", descricao: "Todos" }
        ];
    }
    return Situacao;
}());

var TipoModal = /** @class */ (function () {
    function TipoModal() {
        this.get = [
            { id: "R", descricao: "Rodoviário" },
            { id: "F", descricao: "Ferroviário" },
            { id: "T", descricao: "Todos" }
        ];
    }
    return TipoModal;
}());

var AgendamentoTas = /** @class */ (function () {
    function AgendamentoTas() {
        this.tipoMov = "C";
        this.ufPlacaCavalo = "";
        this.tipoTransporte = "";
        this.motorista = new app_pages_cadastro_motorista_motorista_model__WEBPACK_IMPORTED_MODULE_1__["Motorista"]();
        this.cliente = new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_0__["Destinatario"]();
        this.transportadora = new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_0__["Destinatario"]();
    }
    return AgendamentoTas;
}());

var AgendamentoTasItemIndexDto = /** @class */ (function () {
    function AgendamentoTasItemIndexDto() {
    }
    return AgendamentoTasItemIndexDto;
}());

var AgendamentoTasNotaIndexDto = /** @class */ (function () {
    function AgendamentoTasNotaIndexDto() {
    }
    return AgendamentoTasNotaIndexDto;
}());

var AgendamentoTasItem = /** @class */ (function () {
    function AgendamentoTasItem() {
    }
    return AgendamentoTasItem;
}());

var AgendamentoTasNotas = /** @class */ (function () {
    function AgendamentoTasNotas() {
    }
    return AgendamentoTasNotas;
}());



/***/ }),

/***/ "./src/app/pages/especificos/raizen/movimentos/agendamento-tas/agendamento-tas.module.ts":
/*!***********************************************************************************************!*\
  !*** ./src/app/pages/especificos/raizen/movimentos/agendamento-tas/agendamento-tas.module.ts ***!
  \***********************************************************************************************/
/*! exports provided: AgendamentoTasModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AgendamentoTasModule", function() { return AgendamentoTasModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _agendamento_tas_routing_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./agendamento-tas.routing.module */ "./src/app/pages/especificos/raizen/movimentos/agendamento-tas/agendamento-tas.routing.module.ts");
/* harmony import */ var _agendamento_tas_form_agendamento_tas_form_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./agendamento-tas-form/agendamento-tas-form.component */ "./src/app/pages/especificos/raizen/movimentos/agendamento-tas/agendamento-tas-form/agendamento-tas-form.component.ts");
/* harmony import */ var _agendamento_tas_index_agendamento_tas_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./agendamento-tas-index/agendamento-tas-index.component */ "./src/app/pages/especificos/raizen/movimentos/agendamento-tas/agendamento-tas-index/agendamento-tas-index.component.ts");
/* harmony import */ var _agendamento_tas_filter_agendamento_tas_filter_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./agendamento-tas-filter/agendamento-tas-filter.component */ "./src/app/pages/especificos/raizen/movimentos/agendamento-tas/agendamento-tas-filter/agendamento-tas-filter.component.ts");
/* harmony import */ var _agendamento_tas_itens_agendamento_tas_itens_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./agendamento-tas-itens/agendamento-tas-itens.component */ "./src/app/pages/especificos/raizen/movimentos/agendamento-tas/agendamento-tas-itens/agendamento-tas-itens.component.ts");
/* harmony import */ var _agendamento_tas_notas_agendamento_tas_notas_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./agendamento-tas-notas/agendamento-tas-notas.component */ "./src/app/pages/especificos/raizen/movimentos/agendamento-tas/agendamento-tas-notas/agendamento-tas-notas.component.ts");
/* harmony import */ var app_shared_shared_module__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/shared.module */ "./src/app/shared/shared.module.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};








var AgendamentoTasModule = /** @class */ (function () {
    function AgendamentoTasModule() {
    }
    AgendamentoTasModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [app_shared_shared_module__WEBPACK_IMPORTED_MODULE_7__["SharedModule"], _agendamento_tas_routing_module__WEBPACK_IMPORTED_MODULE_1__["AgendamentoTasRoutingModule"]],
            declarations: [
                _agendamento_tas_filter_agendamento_tas_filter_component__WEBPACK_IMPORTED_MODULE_4__["AgendamentoTasFilterComponent"],
                _agendamento_tas_index_agendamento_tas_index_component__WEBPACK_IMPORTED_MODULE_3__["AgendamentoTasIndexComponent"],
                _agendamento_tas_form_agendamento_tas_form_component__WEBPACK_IMPORTED_MODULE_2__["AgendamentoTasFormComponent"],
                _agendamento_tas_itens_agendamento_tas_itens_component__WEBPACK_IMPORTED_MODULE_5__["AgendamentoTasItensComponent"],
                _agendamento_tas_notas_agendamento_tas_notas_component__WEBPACK_IMPORTED_MODULE_6__["AgendamentoTasNotasComponent"]
            ]
        })
    ], AgendamentoTasModule);
    return AgendamentoTasModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/raizen/movimentos/agendamento-tas/agendamento-tas.routing.module.ts":
/*!*******************************************************************************************************!*\
  !*** ./src/app/pages/especificos/raizen/movimentos/agendamento-tas/agendamento-tas.routing.module.ts ***!
  \*******************************************************************************************************/
/*! exports provided: AgendamentoTasRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AgendamentoTasRoutingModule", function() { return AgendamentoTasRoutingModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var _agendamento_tas_form_agendamento_tas_form_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./agendamento-tas-form/agendamento-tas-form.component */ "./src/app/pages/especificos/raizen/movimentos/agendamento-tas/agendamento-tas-form/agendamento-tas-form.component.ts");
/* harmony import */ var _agendamento_tas_index_agendamento_tas_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./agendamento-tas-index/agendamento-tas-index.component */ "./src/app/pages/especificos/raizen/movimentos/agendamento-tas/agendamento-tas-index/agendamento-tas-index.component.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};




var ActionForm;
(function (ActionForm) {
    ActionForm[ActionForm["index"] = 0] = "index";
    ActionForm[ActionForm["create"] = 1] = "create";
    ActionForm[ActionForm["detail"] = 2] = "detail";
    ActionForm[ActionForm["edit"] = 3] = "edit";
})(ActionForm || (ActionForm = {}));
var MRoutes = [
    {
        path: "",
        component: _agendamento_tas_index_agendamento_tas_index_component__WEBPACK_IMPORTED_MODULE_3__["AgendamentoTasIndexComponent"],
        data: { breadcrumb: "agendamentoTas", formParams: { action: ActionForm.index } }
    },
    {
        path: "create",
        component: _agendamento_tas_form_agendamento_tas_form_component__WEBPACK_IMPORTED_MODULE_2__["AgendamentoTasFormComponent"],
        data: {
            breadcrumb: "agendamentoTas",
            formParams: { action: ActionForm.create }
        }
    },
    {
        path: "edit/:id",
        component: _agendamento_tas_form_agendamento_tas_form_component__WEBPACK_IMPORTED_MODULE_2__["AgendamentoTasFormComponent"],
        data: {
            breadcrumb: "agendamentoTas",
            formParams: { action: ActionForm.edit }
        }
    },
    {
        path: "detail/:id",
        component: _agendamento_tas_form_agendamento_tas_form_component__WEBPACK_IMPORTED_MODULE_2__["AgendamentoTasFormComponent"],
        data: {
            breadcrumb: "agendamentoTas",
            formParams: { action: ActionForm.detail }
        }
    }
];
var AgendamentoTasRoutingModule = /** @class */ (function () {
    function AgendamentoTasRoutingModule() {
    }
    AgendamentoTasRoutingModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"].forChild(MRoutes)],
            exports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]],
        })
    ], AgendamentoTasRoutingModule);
    return AgendamentoTasRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/raizen/movimentos/agendamento-tas/agendamento-tas.service.ts":
/*!************************************************************************************************!*\
  !*** ./src/app/pages/especificos/raizen/movimentos/agendamento-tas/agendamento-tas.service.ts ***!
  \************************************************************************************************/
/*! exports provided: AgendamentoTasService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AgendamentoTasService", function() { return AgendamentoTasService; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var _agendamento_tas_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./agendamento-tas.model */ "./src/app/pages/especificos/raizen/movimentos/agendamento-tas/agendamento-tas.model.ts");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/base/specifics.base.service */ "./src/app/shared/services/base/specifics.base.service.ts");
/* harmony import */ var environments_environment__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};








var AgendamentoTasService = /** @class */ (function (_super) {
    __extends(AgendamentoTasService, _super);
    function AgendamentoTasService(http, messageService) {
        var _this = _super.call(this, http, "raizen/agendamentoTas") || this;
        _this.http = http;
        _this.messageService = messageService;
        _this.filtro = new _agendamento_tas_model__WEBPACK_IMPORTED_MODULE_2__["AgendamentoTasFilter"]();
        _this.data = new _agendamento_tas_model__WEBPACK_IMPORTED_MODULE_2__["AgendamentoTas"]();
        return _this;
    }
    AgendamentoTasService.prototype.getByFiltro = function (filtro) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].specifics_service_url + "/api/v1/raizen/agendamentoTas/getByFiltro", filtro)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    AgendamentoTasService.prototype._save = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].specifics_service_url + "/api/v1/raizen/agendamentoTas/gravar", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    AgendamentoTasService.prototype._remove = function (data) {
        return this.http
            .put(environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].specifics_service_url + "/api/v1/raizen/agendamentoTas/remove", data.agendamentoId)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_4__["ErrorHandler"].handleError));
    };
    AgendamentoTasService.prototype.validaSePermiteExcluirOuAlterar = function (dados) {
        if (dados.flagStatus !== 'A') {
            var message = this.messageService.getTranslates("messages", "statusNaoPermitido");
            this.messageService.warning("titles.agendamentoTas", message + " :: " + dados.status);
            return false;
        }
        if (dados.operInc === 'API') {
            this.messageService.warning("titles.agendamentoTas", "messages.operacaoNaoPermitidaRegistroGeradoViaApi");
            return false;
        }
        return true;
    };
    AgendamentoTasService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"] }
    ]; };
    AgendamentoTasService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"]])
    ], AgendamentoTasService);
    return AgendamentoTasService;
}(app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_5__["SpecificsBaseService"]));



/***/ }),

/***/ "./src/app/shared/services/funcoes/cpf-cnpj/cpf-cnpj.service.ts":
/*!**********************************************************************!*\
  !*** ./src/app/shared/services/funcoes/cpf-cnpj/cpf-cnpj.service.ts ***!
  \**********************************************************************/
/*! exports provided: CpfCnpjService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CpfCnpjService", function() { return CpfCnpjService; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};


var CpfCnpjService = /** @class */ (function () {
    function CpfCnpjService() {
        this.mask$ = new rxjs__WEBPACK_IMPORTED_MODULE_1__["BehaviorSubject"]('AA.AAA.AAA/AAAA-00');
    }
    CpfCnpjService.prototype.verifica_cpf_cnpj = function (valor) {
        valor = valor.toString();
        valor = valor.replace(/[^0-9A-Za-z]/g, '');
        if (valor.length === 11) {
            return 'CPF';
        }
        else if (valor.length === 14) {
            return 'CNPJ';
        }
        else {
            return false;
        }
    };
    CpfCnpjService.prototype.valida_cpf = function (valor) {
        if (!valor)
            return true;
        valor = valor.replace(/[^0-9]/g, '');
        if (!/^\d{11}$/.test(valor))
            return false;
        // elimina CPFs inválidos conhecidos (ex: 00000000000, 11111111111 etc.)
        if (/^(\d)\1{10}$/.test(valor))
            return false;
        var digitos = valor.substring(0, 9);
        // calcula 1º DV
        var soma = 0;
        for (var i = 0; i < 9; i++) {
            soma += parseInt(digitos.charAt(i), 10) * (10 - i);
        }
        var resto = soma % 11;
        var dv1 = resto < 2 ? 0 : 11 - resto;
        // calcula 2º DV
        soma = 0;
        var digitosMaisDv1 = digitos + dv1;
        for (var i = 0; i < 10; i++) {
            soma += parseInt(digitosMaisDv1.charAt(i), 10) * (11 - i);
        }
        resto = soma % 11;
        var dv2 = resto < 2 ? 0 : 11 - resto;
        // monta CPF completo calculado
        var cpfCalculado = digitos + dv1.toString() + dv2.toString();
        return valor === cpfCalculado;
    };
    CpfCnpjService.prototype.valida_cnpj = function (cnpj) {
        function calc_digitos_cnpj(digitos) {
            var soma = 0;
            var peso = digitos.length === 12 ? 5 : 6; // 1º DV começa em 5, 2º em 6
            for (var i = 0; i < digitos.length; i++) {
                var char = digitos.charAt(i);
                var valorNumerico = void 0;
                if (/[0-9]/.test(char)) {
                    valorNumerico = parseInt(char, 10);
                }
                else if (/[A-Z]/.test(char)) {
                    valorNumerico = char.charCodeAt(0) - 48; // NT 49/2024
                }
                else {
                    throw new Error("Caractere inv\u00E1lido no CNPJ: '" + char + "'");
                }
                soma += valorNumerico * peso;
                peso--;
                if (peso < 2)
                    peso = 9;
            }
            var resto = soma % 11;
            return resto < 2 ? 0 : 11 - resto;
        }
        cnpj = cnpj.replace(/[^0-9A-Za-z]/g, '').toUpperCase();
        if (!/^[0-9A-Z]{12}[0-9]{2}$/.test(cnpj)) {
            return false;
        }
        var corpo = cnpj.substring(0, 12);
        var dv1Informado = parseInt(cnpj.charAt(12), 10);
        var dv2Informado = parseInt(cnpj.charAt(13), 10);
        var dv1Calculado = calc_digitos_cnpj(corpo);
        var dv2Calculado = calc_digitos_cnpj(corpo + dv1Calculado);
        return dv1Informado === dv1Calculado && dv2Informado === dv2Calculado;
    };
    CpfCnpjService.prototype.valida_cpf_cnpj = function (valor) {
        var valida = this.verifica_cpf_cnpj(valor);
        if (valida === 'CPF') {
            return this.valida_cpf(valor);
        }
        else if (valida === 'CNPJ') {
            return this.valida_cnpj(valor);
        }
        else {
            return false;
        }
    };
    CpfCnpjService.prototype.formata_cpf_cnpj = function (valor) {
        var formatado = "";
        var valida = this.verifica_cpf_cnpj(valor);
        if (valida === 'CPF') {
            if (this.valida_cpf(valor)) {
                formatado = valor.substr(0, 3) + '.';
                formatado += valor.substr(3, 3) + '.';
                formatado += valor.substr(6, 3) + '-';
                formatado += valor.substr(9, 2) + '';
            }
        }
        else if (valida === 'CNPJ') {
            if (this.valida_cnpj(valor)) {
                formatado = valor.substr(0, 2) + '.';
                formatado += valor.substr(2, 3) + '.';
                formatado += valor.substr(5, 3) + '/';
                formatado += valor.substr(8, 4) + '-';
                formatado += valor.substr(12, 14) + '';
            }
        }
        return formatado;
    };
    CpfCnpjService.prototype.format = function (documento, tipo) {
        var _this = this;
        if (tipo === void 0) { tipo = ''; }
        var valor = documento.replace(/[^a-zA-Z0-9]/g, '') || '';
        setTimeout(function () {
            var novaMask = 'AA.AAA.AAA/AAAA-00';
            if (tipo === 'F') {
                novaMask = '000.000.000-00';
            }
            else if (tipo === 'J') {
                if (/^[0-9]{14}$/.test(valor)) {
                    novaMask = '00.000.000/0000-00';
                }
                else if (valor.length >= 14 && /[a-zA-Z]/.test(valor)) {
                    novaMask = 'AA.AAA.AAA/AAAA-00';
                }
            }
            else {
                // tipo vazio
                if (/^[0-9]{11}$/.test(valor)) {
                    novaMask = '000.000.000-00';
                }
                else if (/^[0-9]{14}$/.test(valor)) {
                    novaMask = '00.000.000/0000-00';
                }
                else if (valor.length >= 14 && /[a-zA-Z]/.test(valor)) {
                    novaMask = 'AA.AAA.AAA/AAAA-00';
                }
            }
            _this.mask$.next(novaMask);
        });
    };
    CpfCnpjService.prototype.length = function (tipo) {
        if (tipo === 'F') {
            return 14;
        }
        else {
            return 18;
        }
    };
    CpfCnpjService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])({
            providedIn: 'root'
        }),
        __metadata("design:paramtypes", [])
    ], CpfCnpjService);
    return CpfCnpjService;
}());



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-raizen-movimentos-agendamento-tas-agendamento-tas-module.js.map