(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-especificos-cargill-movimentos-movimentacao-em-terceiros-movimentacao-em-terceiros-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/movimentos/movimentacao-em-terceiros/movimentacao-em-terceiros-filter/movimentacao-em-terceiros-filter.component.html":
/*!*******************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/movimentos/movimentacao-em-terceiros/movimentacao-em-terceiros-filter/movimentacao-em-terceiros-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\" id=\"movimentacao-em-terceiros-filter-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop='static'>\n    <div class=\"uni-modal-dialog-md-40\">\n        <div class=\"modal-content\">\n            <div class=\"modal-header\">\n                <h6 class=\"modal-title\">{{ 'titles.movimentacaoEmTerceiros' | translate }}</h6>\n            </div>\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\" autocomplete=\"off\">\n                <app-validacoes></app-validacoes>\n                <div class=\"modal-body\">\n                    <div class=\"row\">\n                        <div class=\"col-lg-12 col-md-12 col-sm-12\">\n                            <div class=\"row\">\n                                <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"periodoDe\" class=\"required\">{{\"labels.periodoDe\" | translate\n                                            }}</label>\n                                        <app-data id=\"periodoDe\" name=\"periodoDe\" [(ngModel)]=\"service.filtro.dataI\"\n                                            autofocus required=\"true\">\n                                        </app-data>\n                                    </div>\n                                </div>\n                                <div class=\"col-lg-6 col-md-6 col-sm-12\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"ate\" class=\"required\">{{\"labels.ate\" | translate}}</label>\n                                        <app-data id=\"ate\" name=\"ate\" [(ngModel)]=\"service.filtro.dataF\"\n                                            required=\"true\">\n                                        </app-data>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-md-12 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <app-pesquisa-destinatario id=\"terminal\" name=\"terminal\" label=\"terminal\"\n                                    modalTitle=\"pesquisaDeTermina\" [(ngModel)]=\"service.filtro.destinatarioIdTerminal\"\n                                    [inSelected]=\"service.filtro.terminal\" tipoDestinatario=\"C\"\n                                    (outSelected)=\"service.filtro.terminal = $event\">\n                                </app-pesquisa-destinatario>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-md-12 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <app-pesquisa-destinatario id=\"emitente\" name=\"emitente\" label=\"emitente\"\n                                    modalTitle=\"pesquisaDeEmitente\" [(ngModel)]=\"service.filtro.destinatarioIdEmitente\"\n                                    [inSelected]=\"service.filtro.emitente\" tipoDestinatario=\"C\"\n                                    (outSelected)=\"service.filtro.emitente = $event\">\n                                </app-pesquisa-destinatario>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-md-12 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <app-pesquisa-destinatario id=\"cliente\" name=\"cliente\" label=\"cliente\"\n                                    modalTitle=\"pesquisaDeCliente\" [(ngModel)]=\"service.filtro.destinatarioIdCliente\"\n                                    [inSelected]=\"service.filtro.cliente\" tipoDestinatario=\"C\"\n                                    (outSelected)=\"service.filtro.cliente = $event\">\n                                </app-pesquisa-destinatario>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-md-12 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <app-pesquisa-material id=\"produto\" name=\"produto\" label=\"produto\"\n                                    modalTitle=\"pesquisaDeProduto\" [(ngModel)]=\"service.filtro.materialId\"\n                                    [inSelected]=\"service.filtro.material\"\n                                    (outSelected)=\"service.filtro.material = $event\">\n                                </app-pesquisa-material>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"row\">\n                        <div class=\"col-md-12 col-sm-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"operacao\">{{'labels.operacao' | translate}}</label>\n                                <app-combo-padrao name=\"operacao\" id=\"operacao\" chave=\"CliCglTipoDeOperacaoId\"\n                                    descricao=\"Descricao\" ativo=\"true\" tabela=\"CliCglTipoDeOperacao\"\n                                    [(ngModel)]=\"service.filtro.cliCglTipoDeOperacaoId\">\n                                </app-combo-padrao>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n                <div class=\"modal-footer\">\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.consultar' | translate }}</button>\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">{{ 'buttons.sair' | translate\n                        }}</button>\n                </div>\n            </form>\n        </div>\n    </div>\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/movimentos/movimentacao-em-terceiros/movimentacao-em-terceiros-form/movimentacao-em-terceiros-form.component.html":
/*!***************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/movimentos/movimentacao-em-terceiros/movimentacao-em-terceiros-form/movimentacao-em-terceiros-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\"\n    [itemData]=\"data.cliCglMovimentacaoEmTerceirosId\" [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\">\n    <app-form-legenda></app-form-legenda>\n    <div class=\"card-body widget-body\">\n        <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\n            <app-validacoes></app-validacoes>\n            <div class=\"row\">\n                <div class=\"col-lg-6 col-sm-12\">\n                    <div class=\"form-group form-group-sm\">\n                        <app-pesquisa-destinatario id=\"terminal\" name=\"terminal\" label=\"terminal\" required=\"true\"\n                            [disabled]=\"funcoesService.isDetail(actionForm)\" modalTitle=\"pesquisaDeClienteTerminal\"\n                            [(ngModel)]=\"data.destinatarioIdTerminal\" [inSelected]=\"data.terminal\" tipoDestinatario=\"C\"\n                            showCgcCpf=\"false\" showInscricao=\"false\">\n                        </app-pesquisa-destinatario>\n                    </div>\n                </div>\n            </div>\n            <app-card-container class=\"dados\" tituloCard=\"\">\n                <div class=\"row\">\n                    <div class=\"card-body\">\n                        <div class=\"row\">\n                            <div class=\"col-lg-5 col-md-9 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"data\" class=\"required\">{{'labels.data' | translate}}</label>\n                                    <app-data-h-m-s id=\"data\" name=\"data\" [(ngModel)]=\"data.data\" required=\"true\"\n                                        (executa)=\"validaData()\" autofocus\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                    </app-data-h-m-s>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-10 col-md-12 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"operacao\" class=\"required\">{{'labels.operacao' | translate}}</label>\n                                    <app-combo-padrao name=\"operacao\" id=\"operacao\" chave=\"CliCglTipoDeOperacaoId\"\n                                        descricao=\"Descricao\" ativo=\"true\" tabela=\"CliCglTipoDeOperacao\" required=\"true\"\n                                        [(ngModel)]=\"data.cliCglTipoDeOperacaoId\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\" (outSelected)=\"trataTipoOper($event)\">\n                                    </app-combo-padrao>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-10 col-md-12 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"modalidade\" class=\"required\">{{'labels.modalidade' | translate}}</label>\n                                    <app-combo-padrao name=\"modalidade\" id=\"modalidade\" chave=\"CliCglModalidadeId\"\n                                        descricao=\"Descricao\" tabela=\"CliCglModalidade\" required=\"true\"\n                                        [(ngModel)]=\"data.cliCglModalidadeId\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                    </app-combo-padrao>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-6 col-md-8 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"modal\" class=\"\">{{\"labels.modal\" | translate }}</label>\n                                    <input id=\"modal\" name=\"modal\" class=\"form-control form-control-sm\" type=\"text\"\n                                        [(ngModel)]=\"data.modal\" disabled />\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-12 col-md-12 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <app-pesquisa-destinatario id=\"emitente\" name=\"emitente\" label=\"emitente\"\n                                        [required]=\"false\" [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                        modalTitle=\"pesquisaDeClienteEmitente\" [(ngModel)]=\"data.destinatarioIdEmitente\"\n                                        [inSelected]=\"data.emitente\" tipoDestinatario=\"C\" showCgcCpf=\"false\"\n                                        showInscricao=\"false\">\n                                    </app-pesquisa-destinatario>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-12 col-md-12 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <app-pesquisa-destinatario id=\"cliente\" name=\"cliente\" label=\"cliente\"\n                                        required=\"true\" [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                        modalTitle=\"pesquisaDeCliente\" [(ngModel)]=\"data.destinatarioIdCliente\"\n                                        [inSelected]=\"data.cliente\" tipoDestinatario=\"C\" showCgcCpf=\"false\"\n                                        showInscricao=\"false\">\n                                    </app-pesquisa-destinatario>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-12 col-md-12 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <app-pesquisa-material id=\"produto\" name=\"produto\" label=\"produto\"\n                                        modalTitle=\"produto\" [(ngModel)]=\"data.materialId\"\n                                        (outModel)=\"trataMaterial($event)\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\" [inSelected]=\"data.material\"\n                                        required=\"true\">\n                                    </app-pesquisa-material>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-4 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"pesoLiq\" class=\"\">{{'labels.pesoLiq' |\n                                        translate}}</label>\n                                    <input id=\"pesoLiq\" name=\"pesoLiq\" maxlength=\"15\" currencyMask\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\n                                        [(ngModel)]=\"data.pesoLiq\" class=\"form-control form-control-sm\" type=\"text\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\" required=\"false\">\n                                </div>\n                            </div>\n                            <div class=\"col-lg-4 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"retencao\" class=\"\"> {{'labels.retencao' | translate}} </label>\n                                    <input id=\"retencao\" name=\"retencao\" maxlength=\"15\" currencyMask\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\n                                        [(ngModel)]=\"data.retencao\" class=\"form-control form-control-sm\" type=\"text\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\" required=\"false\">\n                                </div>\n                            </div>\n                            <div class=\"col-lg-4 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"disponivel\" class=\"\"> {{'labels.disponivel' | translate}} </label>\n                                    <input id=\"disponivel\" name=\"disponivel\"\n                                        class=\"form-control form-control-sm uppercase\" type=\"text\" disabled\n                                        value=\"{{disponivel | formatCurrency: 0}}\" />\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-12 col-md-12 col-sm-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"observacao\" class=\"\">{{\"labels.observacao\" | translate }}</label>\n                                    <input id=\"observacao\" name=\"observacao\" class=\"form-control form-control-sm\"\n                                        type=\"text\" [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                        [(ngModel)]=\"data.observ50\" />\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                    <div class=\"card-body\">\n                        <app-card-container class=\"origem\" tituloCard=\"\">\n                            <div class=\"row\">\n                                <div class=\"col-lg-4 col-md-8 col-sm-12\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"loteOrigem\" class=\"\"> {{'labels.loteOrigem' | translate}} </label>\n                                        <input id=\"loteOrigem\" name=\"loteOrigem\"\n                                            class=\"form-control form-control-sm uppercase\" type=\"text\" maxlength=\"20\"\n                                            required=\"false\" disabled=\"true\" [(ngModel)]=\"data.loteIdOri\" />\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"row\">\n                                <div class=\"col-lg-6 col-sm-12\">\n                                    <div class=\"row\">\n                                        <div class=\"col-lg-12 col-md-12 col-sm-12\">\n                                            <div class=\"form-group form-group-sm\">\n                                                <label for=\"notaFiscal\"> {{'labels.notaFiscal' | translate}}</label>\n                                                <input id=\"notaFiscal\" name=\"notaFiscal\"\n                                                    class=\"form-control form-control-sm uppercase\" type=\"text\"\n                                                    maxlength=\"6\" required=\"false\" mask=\"999999\"\n                                                    [disabled]=\"disableCamposNotaPesos\"\n                                                    [(ngModel)]=\"data.notaFiscalId\" />\n                                            </div>\n                                        </div>\n                                    </div>\n                                    <div class=\"row\">\n                                        <div class=\"col-lg-12 col-md-12 col-sm-12\">\n                                            <div class=\"form-group form-group-sm\">\n                                                <label for=\"pesoFiscal\"> {{'labels.pesoFiscal' | translate}}</label>\n                                                <input id=\"pesoFiscal\" name=\"pesoFiscal\"\n                                                    class=\"form-control form-control-sm uppercase\"\n                                                    value=\"{{data.pesoFiscal | formatCurrency: 0}}\" type=\"text\"\n                                                    [disabled]=\"disableCamposNotaPesos\" />\n                                            </div>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"col-lg-6 col-sm-12\">\n                                    <div class=\"row\">\n                                        <div class=\"col-lg-12 col-md-12 col-sm-12\">\n                                            <div class=\"form-group form-group-sm\">\n                                                <label for=\"pesoBruto\"> {{'labels.pesoBruto' | translate}}</label>\n                                                <input id=\"pesoBruto\" name=\"pesoBruto\"\n                                                    class=\"form-control form-control-sm uppercase\"\n                                                    value=\"{{data.pesoBruto | formatCurrency: 0}}\" type=\"text\"\n                                                    [disabled]=\"disableCamposNotaPesos\" />\n                                            </div>\n                                        </div>\n                                    </div>\n                                    <div class=\"row\">\n                                        <div class=\"col-lg-12 col-md-12 col-sm-12\">\n                                            <div class=\"form-group form-group-sm\">\n                                                <label for=\"pesoTara\"> {{'labels.pesoTara' | translate}}</label>\n                                                <input id=\"pesoTara\" name=\"pesoTara\"\n                                                    class=\"form-control form-control-sm uppercase\" type=\"text\"\n                                                    [disabled]=\"disableCamposNotaPesos\"\n                                                    value=\"{{data.pesoTara | formatCurrency: 0}}\" />\n                                            </div>\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"row\">\n                                <div class=\"col-lg-6 col-sm-12\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"diferenca\"> {{'labels.diferenca' | translate}} </label>\n                                        <input id=\"diferenca\" name=\"diferenca\"\n                                            class=\"form-control form-control-sm uppercase\" type=\"text\"\n                                            [disabled]=\"disableCamposNotaPesos\"\n                                            value=\"{{data.diferenca | formatCurrency: 0}}\" />\n                                    </div>\n                                </div>\n                            </div>\n                            <div class=\"row\">\n                                <div class=\"col-12\">\n                                    <div class=\"form-group form-group-sm\">\n                                        <label for=\"veiculo\" class=\"\"> {{'labels.veiculoNavio' | translate}} </label>\n                                        <input id=\"veiculo\" name=\"veiculo\"\n                                            class=\"form-control form-control-sm uppercase\" type=\"text\" maxlength=\"100\"\n                                            required=\"false\" [disabled]=\"funcoesService.isDetail(actionForm)\" [(ngModel)]=\"data.veiculo\" />\n                                    </div>\n                                </div>\n                            </div>\n                        </app-card-container>\n                        <ng-container *ngIf=\"isMarirtimo\">\n                            <app-card-container class=\"maritimo\" tituloCard=\"\">\n                                <div class=\"row\">\n                                    <div class=\"col-lg-5 col-md-9 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"numDUE\">{{'labels.numDUE' | translate}}</label>\n                                            <input id=\"numDUE\" name=\"numDUE\" class=\"form-control form-control-sm\" type=\"text\"\n                                                [(ngModel)]=\"data.numRE\" maxlength=\"15\" [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-lg-6 col-md-12 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"portoIdDest\">{{'labels.portoDestino' | translate}}</label>\n                                            <app-combo-padrao id=\"portoIdDest\" name=\"portoIdDest\"\n                                                [(ngModel)]=\"data.portoIdDest\" tabela=\"Porto\" chave=\"CodPorto\"\n                                                descricao=\"DescrPorto\" ativos=\"true\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                            </app-combo-padrao>\n                                        </div>\n                                    </div>\n                                    <div class=\"col-lg-6 col-md-8 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"paisIdDest\" class=\"\">{{\"labels.paisDest\" | translate }}</label>\n                                            <app-combo-padrao id=\"pais\" name=\"pais\" [(ngModel)]=\"data.paisIdDest\" tabela=\"Pais\"\n                                              chave=\"SiglaPais\" descricao=\"DescrPais\" ativos=\"true\" required=\"true\"\n                                              [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                            </app-combo-padrao>\n                                        </div>\n                                    </div>\n                                </div>\n                            </app-card-container>\n                        </ng-container>\n                        <ng-container *ngIf=\"isCutOff\">\n                            <app-card-container class=\"cutoff\" tituloCard=\"\">\n                                <div class=\"row\">\n                                    <div class=\"col-lg-6 col-md-12 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"dataIni\" class=\"required\">{{'labels.dataIni' | translate}}</label>\n                                            <app-data-h-m-s id=\"dataIni\" name=\"dataIni\" [(ngModel)]=\"data.dataIni\" [required]=\"true\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                            </app-data-h-m-s>\n                                        </div>\n                                    </div>\n                                    <div class=\"col-lg-6 col-md-8 col-sm-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"dataFim\" class=\"required\">{{\"labels.dataFim\" | translate }}</label>\n                                            <app-data-h-m-s id=\"dataFim\" name=\"dataFim\" [(ngModel)]=\"data.dataFim\" [required]=\"true\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                            </app-data-h-m-s>\n                                        </div>\n                                    </div>\n                                </div>\n                            </app-card-container>\n                        </ng-container>\n                    </div>\n                </div>\n            </app-card-container>\n\n            <div class=\"row mt-4\">\n                <div class=\"col-12\">\n                    <div class=\"form-group\">\n                        <button class=\"btn btn-success mr-2\" type=\"submit\"\n                            [disabled]=\"funcoesService.isDetail(actionForm)\">\n                            {{ 'buttons.salvar' | translate }}\n                        </button>\n                        <button class=\"btn btn-success mr-2\" (click)=\"saveAndCreate(f)\" type=\"button\"\n                            [disabled]=\"funcoesService.isDetail(actionForm)\">\n                            {{ 'buttons.salvarNovo' | translate }}\n                        </button>\n                    </div>\n                </div>\n            </div>\n        </form>\n    </div>\n</div>\n\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/movimentos/movimentacao-em-terceiros/movimentacao-em-terceiros-index/movimentacao-em-terceiros-index.component.html":
/*!*****************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/movimentos/movimentacao-em-terceiros/movimentacao-em-terceiros-index/movimentacao-em-terceiros-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\" [formAction]=\"actionForm\"\n    [itemData]=\"data.cliCglMovimentacaoEmTerceirosId\" [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\">\n    <div class=\"row\">\n        <div class=\"col-12\">\n            <app-table>\n                <div class=\"table-responsive\">\n                    <table class=\"table table-striped table-bordered table-hover rownowrap form-control-sm\">\n                        <thead>\n                            <tr>\n                                <th *ngFor=\"let h of columnsVisible\">\n                                    {{h.title | translate}}\n                                    <label *ngIf=\"h.type === 'checkbox'\" class=\"chk\" (dblclick)=\"checarMarcacao(checked)\">\n                                        <input type=\"checkbox\" id=\"seleciona\" name=\"seleciona\" value=\"checked\"\n                                            style=\"margin-left:auto; margin-right:auto;\" disabled>\n                                        <span  [ngClass]=\"{ 'red': checked }\"></span>\n                                    </label>\n                                </th>\n                            </tr>\n                        </thead>\n                        <tbody>\n                            <tr *ngFor=\"let d of resultSet\" (click)=\"_click(d)\" (dblclick)=\"_dbClick(d)\"\n                                [ngClass]=\"{'info': data?.cliCglMovimentacaoEmTerceirosId === d?.cliCglMovimentacaoEmTerceirosId}\">\n                                <ng-container *ngFor=\"let h of columnsVisible\">\n                                    <td class=\"text-center\" *ngIf=\"h.type === 'checkbox'\">\n                                        <label class=\"chk\">\n                                            <input type=\"checkbox\" id=\"seleciona\" name=\"seleciona\" value=\"checked\"\n                                                (ngModelChange)=\"d[h.data] = $event ? 'S' : 'N'\" [ngModel]=\"d[h.data]\"\n                                                style=\"margin-left:auto; margin-right:auto;\" disabled>\n                                            <span [ngClass]=\"{'red':d.selecionado === 'S'}\"></span>\n                                        </label>\n                                        <!-- {{d[h.data]}} -->\n                                    </td>\n                                    <td *ngIf=\"h.type === 'string'\">{{d[h.data]}}</td>\n                                    <td class=\"text-right\" *ngIf=\"h.type === 'number' && h.format === 'decimal'\">\n                                        {{formatarNumero(d[h.data])}}</td>\n                                    <td *ngIf=\"h.type === 'datetime'\">{{d[h.data] | date: h.format}}</td>\n                                </ng-container>\n                            </tr>\n                            <tr *ngIf=\"!hasResultSet\">\n                                <th colspan=\"30\">\n                                    {{'messages.nenhumRegistroEncontrado' | translate }}\n                                </th>\n                            </tr>\n                        </tbody>\n                    </table>\n                </div>\n            </app-table>\n        </div>\n    </div>\n</div>\n\n<app-propriedades></app-propriedades>\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\n<app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\n<app-movimentacao-em-terceiros-upload (refresh)=\"refresh()\"></app-movimentacao-em-terceiros-upload>\n<app-movimentacao-em-terceiros-filter (filtrar)=\"executaFiltro()\"></app-movimentacao-em-terceiros-filter>\n<app-preferencias-usuario-rotina [sisFormularioId]=\"constantes.sisFormularioId\" [filtroPesquisaInicial]=\"service.filtro\"\n    [colunasPesquisaInicial]=\"colunasPesquisaInicial\" tableId=\"dtMovimentacaoEmTerceiros\"\n    (execute)=\"carregarFiltro()\"></app-preferencias-usuario-rotina>\n\n\n<div class=\"modal\" id=\"baixa-retencao-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop='static'>\n    <div class=\"modal-dialog modal-sm\">\n        <div class=\"modal-content\">\n            <div class=\"modal-header\">\n                <h6 class=\"modal-title\">\n                    {{ 'titles.baixarRetencao' | translate }}\n                </h6>\n            </div>\n            <form class=\"form\" #form=\"ngForm\" autocomplete=\"off\">\n                <app-validacoes></app-validacoes>\n                <div class=\"modal-body\">\n                    <div class=\"row\">\n                        <div class=\"col-12\">\n                            <div class=\"form-group form-group-sm\">\n                                <label for=\"retencao\" class=\"required\">{{\"labels.retencao\" | translate\n                                    }}</label>\n                                <input id=\"retencao\" name=\"retencao\" maxlength=\"15\" currencyMask\n                                    [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\n                                    [(ngModel)]=\"retencao\" class=\"form-control form-control-sm\" type=\"text\"\n                                    required=\"true\">\n                            </div>\n                        </div>\n                    </div>\n                </div>\n                <div class=\"modal-footer\">\n                    <button class=\"btn btn-success mr-1\" type=\"button\" (click)=\"onBaixarRetencao(form)\"\n                        [disabled]=\"!retencao || (retencao == 0)\">\n                        {{ 'buttons.confirmar' | translate }}\n                    </button>\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">\n                        {{ 'buttons.cancelar' | translate }}\n                    </button>\n                </div>\n            </form>\n        </div>\n    </div>\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/movimentos/movimentacao-em-terceiros/movimentacao-em-terceiros-upload/movimentacao-em-terceiros-upload.component.html":
/*!*******************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/movimentos/movimentacao-em-terceiros/movimentacao-em-terceiros-upload/movimentacao-em-terceiros-upload.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\" id=\"movimentacao-em-terceiros-upload\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\n    <div class=\"modal-dialog\">\n        <div class=\"modal-content\">\n            <div class=\"modal-header\">\n                <h6 class=\"modal-title\">{{ 'titles.movimentacaoEmTerceirosUpload' | translate }}</h6>\n            </div>\n            <form class=\"frmImpExc\" #form=\"ngForm\">\n                <app-validacoes></app-validacoes>\n                <div class=\"row\">\n                    <div class=\"col-12\">\n                        <div class=\"card\">\n                            <div class=\"card-body widget-body\">\n                                <div class=\"row\">\n                                    <div class=\"col-12\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"excelDig\" class=\"required\">{{\"labels.arquivo\" |\n                                                translate}}</label>\n                                            <input id=\"excelDig\" name=\"excelDig\" [(ngModel)]=\"fileData.excelDig\"\n                                                class=\"form-control form-control-sm\" type=\"text\" required disabled />\n                                        </div>\n                                    </div>\n                                </div>\n\n                                <div class=\"form-group\">\n                                    <button class=\"btn btn-success mr-2\" id=\"button01\">\n                                        <span class=\"btn btn-success btn-file\" disabled=\"disabled\" id=\"span01\">\n                                            <label>{{\"labels.selecionar\" | translate}}</label>\n                                            <input type=\"file\" id=\"fileInput\" (change)=\"handleFileSelect($event)\">\n                                        </span>\n                                    </button>\n\n                                    <button class=\"btn btn-success mr-2\" type=\"button\" id=\"button02\"\n                                        [disabled]=\"fileData.excelDig === ''\" (click)=\"onSubmit(form)\">\n                                        {{ \"buttons.importar\" | translate }}\n                                    </button>\n\n                                    <button class=\"btn btn-success mr-2\" type=\"button\" data-dismiss=\"modal\"\n                                        id=\"button03\">\n                                        {{ \"buttons.sair\" | translate }}\n                                    </button>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n            </form>\n        </div>\n    </div>\n</div>");

/***/ }),

/***/ "./src/app/pages/especificos/cargill/movimentos/movimentacao-em-terceiros/movimentacao-em-terceiros-filter/movimentacao-em-terceiros-filter.component.ts":
/*!***************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/movimentos/movimentacao-em-terceiros/movimentacao-em-terceiros-filter/movimentacao-em-terceiros-filter.component.ts ***!
  \***************************************************************************************************************************************************************/
/*! exports provided: MovimentacaoEmTerceirosFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MovimentacaoEmTerceirosFilterComponent", function() { return MovimentacaoEmTerceirosFilterComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _movimentacao_em_terceiros_model__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../movimentacao-em-terceiros.model */ "./src/app/pages/especificos/cargill/movimentos/movimentacao-em-terceiros/movimentacao-em-terceiros.model.ts");
/* harmony import */ var _movimentacao_em_terceiros_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../movimentacao-em-terceiros.constants */ "./src/app/pages/especificos/cargill/movimentos/movimentacao-em-terceiros/movimentacao-em-terceiros.constants.ts");
/* harmony import */ var _movimentacao_em_terceiros_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../movimentacao-em-terceiros.service */ "./src/app/pages/especificos/cargill/movimentos/movimentacao-em-terceiros/movimentacao-em-terceiros.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 MovimentacaoEmTerceirosFilterComponent = /** @class */ (function () {
    function MovimentacaoEmTerceirosFilterComponent(service, loginService) {
        this.service = service;
        this.loginService = loginService;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_1__["Mascaras"]();
        this.constantes = new _movimentacao_em_terceiros_constants__WEBPACK_IMPORTED_MODULE_5__["MovimentacaoEmTerceirosConstants"]();
        this.filialId = this.loginService.getLogin().filialId;
    }
    MovimentacaoEmTerceirosFilterComponent.prototype.ngOnInit = function () {
        if (!this.service.filtro) {
            this.service.filtro = new _movimentacao_em_terceiros_model__WEBPACK_IMPORTED_MODULE_4__["MovimentacaoEmTerceirosFilter"]();
        }
    };
    MovimentacaoEmTerceirosFilterComponent.prototype.onSubmit = function (form) {
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_3__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        !this.service.filtro.destinatarioIdCliente ? this.service.filtro.cliente = null : this.service.filtro.cliente;
        !this.service.filtro.destinatarioIdEmitente ? this.service.filtro.emitente = null : this.service.filtro.emitente;
        !this.service.filtro.materialId ? this.service.filtro.material = null : this.service.filtro.material;
        this.filtrar.emit(this.service.filtro);
        jQuery("#movimentacao-em-terceiros-filter-dialog").modal("hide");
    };
    MovimentacaoEmTerceirosFilterComponent.ctorParameters = function () { return [
        { type: _movimentacao_em_terceiros_service__WEBPACK_IMPORTED_MODULE_6__["MovimentacaoEmTerceirosService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], MovimentacaoEmTerceirosFilterComponent.prototype, "filtrar", void 0);
    MovimentacaoEmTerceirosFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-movimentacao-em-terceiros-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./movimentacao-em-terceiros-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/movimentos/movimentacao-em-terceiros/movimentacao-em-terceiros-filter/movimentacao-em-terceiros-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_movimentacao_em_terceiros_service__WEBPACK_IMPORTED_MODULE_6__["MovimentacaoEmTerceirosService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"]])
    ], MovimentacaoEmTerceirosFilterComponent);
    return MovimentacaoEmTerceirosFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cargill/movimentos/movimentacao-em-terceiros/movimentacao-em-terceiros-form/movimentacao-em-terceiros-form.component.ts":
/*!***********************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/movimentos/movimentacao-em-terceiros/movimentacao-em-terceiros-form/movimentacao-em-terceiros-form.component.ts ***!
  \***********************************************************************************************************************************************************/
/*! exports provided: MovimentacaoEmTerceirosFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MovimentacaoEmTerceirosFormComponent", function() { return MovimentacaoEmTerceirosFormComponent; });
/* 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 app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/pages/cadastro/destinatario/destinatario.model */ "./src/app/pages/cadastro/destinatario/destinatario.model.ts");
/* harmony import */ var app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/pages/cadastro/destinatario/destinatario.service */ "./src/app/pages/cadastro/destinatario/destinatario.service.ts");
/* harmony import */ var app_pages_cadastro_material_material_model__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/pages/cadastro/material/material.model */ "./src/app/pages/cadastro/material/material.model.ts");
/* harmony import */ var app_pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/pages/cadastro/material/material.service */ "./src/app/pages/cadastro/material/material.service.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_7__ = __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_8__ = __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");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _movimentacao_em_terceiros_constants__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../movimentacao-em-terceiros.constants */ "./src/app/pages/especificos/cargill/movimentos/movimentacao-em-terceiros/movimentacao-em-terceiros.constants.ts");
/* harmony import */ var _movimentacao_em_terceiros_model__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../movimentacao-em-terceiros.model */ "./src/app/pages/especificos/cargill/movimentos/movimentacao-em-terceiros/movimentacao-em-terceiros.model.ts");
/* harmony import */ var _movimentacao_em_terceiros_service__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../movimentacao-em-terceiros.service */ "./src/app/pages/especificos/cargill/movimentos/movimentacao-em-terceiros/movimentacao-em-terceiros.service.ts");
/* harmony import */ var _cadastros_tipo_de_operacao_tipo_de_operacao_service__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../../cadastros/tipo-de-operacao/tipo-de-operacao.service */ "./src/app/pages/especificos/cargill/cadastros/tipo-de-operacao/tipo-de-operacao.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 MovimentacaoEmTerceirosFormComponent = /** @class */ (function (_super) {
    __extends(MovimentacaoEmTerceirosFormComponent, _super);
    function MovimentacaoEmTerceirosFormComponent(router, messageService, activatedRoute, service, funcoesService, loginService, permissoesUtils, destinatarioService, materialService, tipoDeOperacaoService) {
        var _this = _super.call(this, new _movimentacao_em_terceiros_constants__WEBPACK_IMPORTED_MODULE_15__["MovimentacaoEmTerceirosConstants"](), funcoesService) || this;
        _this.router = router;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.service = service;
        _this.funcoesService = funcoesService;
        _this.loginService = loginService;
        _this.permissoesUtils = permissoesUtils;
        _this.destinatarioService = destinatarioService;
        _this.materialService = materialService;
        _this.tipoDeOperacaoService = tipoDeOperacaoService;
        _this.data = new _movimentacao_em_terceiros_model__WEBPACK_IMPORTED_MODULE_16__["MovimentacaoEmTerceiros"]();
        _this.mensagens = [];
        _this.horas = [];
        _this.disableCamposNotaPesos = false;
        _this.constantes = new _movimentacao_em_terceiros_constants__WEBPACK_IMPORTED_MODULE_15__["MovimentacaoEmTerceirosConstants"]();
        _this.target = _this.funcoesService.getTargetLocation();
        _this.pageRoute = "/especificos/cargill/movimentos/movimentacaoEmTerceiros";
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    MovimentacaoEmTerceirosFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, this.permissoesUtils.getLibRotina(this.actionForm), function () {
            var id = _this.activatedRoute.snapshot.paramMap.get("id");
            _this.data = new _movimentacao_em_terceiros_model__WEBPACK_IMPORTED_MODULE_16__["MovimentacaoEmTerceiros"]();
            if (id) {
                _this.service.getById(id).subscribe(function (resp) {
                    _this.data = resp;
                    _this.hasNotaAtreladaNotaCobertura();
                    Object(rxjs__WEBPACK_IMPORTED_MODULE_10__["forkJoin"])([
                        _this.destinatarioService.getById(app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["NumberUtilsStaticService"].toNumber(_this.data.destinatarioIdEmitente)),
                        _this.destinatarioService.getById(app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["NumberUtilsStaticService"].toNumber(_this.data.destinatarioIdCliente)),
                        _this.destinatarioService.getById(app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["NumberUtilsStaticService"].toNumber(_this.data.destinatarioIdTerminal)),
                        _this.materialService.getById(_this.data.materialId)
                    ]).subscribe(function (resp) {
                        _this.data.emitente = !!resp[0] ? resp[0] : new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_2__["Destinatario"]();
                        _this.data.cliente = !!resp[1] ? resp[1] : new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_2__["Destinatario"]();
                        _this.data.terminal = !!resp[2] ? resp[2] : new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_2__["Destinatario"]();
                        _this.data.material = !!resp[3] ? resp[3] : new app_pages_cadastro_material_material_model__WEBPACK_IMPORTED_MODULE_4__["Material"]();
                    });
                });
            }
        }, function () {
            _this.permissoesUtils.back();
        });
    };
    MovimentacaoEmTerceirosFormComponent.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_7__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        this.data.logRotina = "Movimentação em Terceiros";
        this.data.disponivel = this.disponivel;
        this.service
            .save(this.data, this.funcoesService.isEdit(this.actionForm))
            .subscribe(function (result) {
            app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_7__["EventEmitterService"].get("backError").emit(_this.mensagens);
            if (!result.validationResult.isValid) {
                _this.mensagens = _this.messageService.validationResult(result.validationResult);
            }
            else {
                _this.messageService.saveSuccess("titles.movimentacaoEmTerceiros");
                if (create) {
                    _this.data = new _movimentacao_em_terceiros_model__WEBPACK_IMPORTED_MODULE_16__["MovimentacaoEmTerceiros"]();
                }
                else {
                    _this.back();
                }
            }
        });
    };
    MovimentacaoEmTerceirosFormComponent.prototype.saveAndCreate = function (form) {
        this.onSubmit(form, true);
    };
    MovimentacaoEmTerceirosFormComponent.prototype.edit = function () {
        this.router.navigate(["" + this.target + this.pageRoute + "/edit/" + this.data.cliCglMovimentacaoEmTerceirosId]);
    };
    MovimentacaoEmTerceirosFormComponent.prototype.back = function () {
        this.funcoesService.desabilitarFiltro();
        this.router.navigate(["" + this.target + this.pageRoute]);
    };
    MovimentacaoEmTerceirosFormComponent.prototype.trataMaterial = function (material) {
        this.data.material = material;
    };
    MovimentacaoEmTerceirosFormComponent.prototype.trataTipoOper = function (e) {
        var _this = this;
        if (!this.data.cliCglTipoDeOperacaoId)
            return;
        this.tipoDeOperacaoService.getById(this.data.cliCglTipoDeOperacaoId).subscribe(function (resp) {
            _this.data.cliCglTipoDeOperacao = resp;
        });
    };
    MovimentacaoEmTerceirosFormComponent.prototype.validaData = function () {
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["DateTimeUtilsStaticService"].maiorAHoje(this.data.data, ['H', 'M'])) {
            this.messageService.warning("titles.movimentacaoEmTerceiros", "messages.dataNoPodeSerMairDataAtual");
            this.data.data = "";
            return;
        }
    };
    Object.defineProperty(MovimentacaoEmTerceirosFormComponent.prototype, "disponivel", {
        get: function () {
            return app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["NumberUtilsStaticService"].toNumber(this.data.pesoLiq) - app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["NumberUtilsStaticService"].toNumber(this.data.retencao);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MovimentacaoEmTerceirosFormComponent.prototype, "isMarirtimo", {
        get: function () {
            if (!this.data || !this.data.cliCglTipoDeOperacao)
                return false;
            return this.data.cliCglTipoDeOperacao.modal === 'M';
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MovimentacaoEmTerceirosFormComponent.prototype, "isCutOff", {
        get: function () {
            if (!this.data || !this.data.cliCglTipoDeOperacao)
                return false;
            return this.data.cliCglTipoDeOperacao.modal === 'C';
        },
        enumerable: true,
        configurable: true
    });
    MovimentacaoEmTerceirosFormComponent.prototype.hasNotaAtreladaNotaCobertura = function () {
        var _this = this;
        if (this.funcoesService.isDetail(this.actionForm)) {
            this.disableCamposNotaPesos = true;
        }
        if (this.funcoesService.isEdit(this.actionForm) && this.data.notaFiscalId > 0) {
            this.service.hasNotaCobertura(this.data.cliCglMovimentacaoEmTerceirosId).subscribe(function (resp) {
                _this.disableCamposNotaPesos = resp;
            });
        }
    };
    MovimentacaoEmTerceirosFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_14__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: _movimentacao_em_terceiros_service__WEBPACK_IMPORTED_MODULE_17__["MovimentacaoEmTerceirosService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_12__["FuncoesService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_6__["LoginService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_13__["PermissoesUtilsService"] },
        { type: app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_3__["DestinatarioService"] },
        { type: app_pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_5__["MaterialService"] },
        { type: _cadastros_tipo_de_operacao_tipo_de_operacao_service__WEBPACK_IMPORTED_MODULE_18__["TipoDeOperacaoService"] }
    ]; };
    MovimentacaoEmTerceirosFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-movimentacao-em-terceiros-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./movimentacao-em-terceiros-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/movimentos/movimentacao-em-terceiros/movimentacao-em-terceiros-form/movimentacao-em-terceiros-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_14__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            _movimentacao_em_terceiros_service__WEBPACK_IMPORTED_MODULE_17__["MovimentacaoEmTerceirosService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_12__["FuncoesService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_6__["LoginService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_13__["PermissoesUtilsService"],
            app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_3__["DestinatarioService"],
            app_pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_5__["MaterialService"],
            _cadastros_tipo_de_operacao_tipo_de_operacao_service__WEBPACK_IMPORTED_MODULE_18__["TipoDeOperacaoService"]])
    ], MovimentacaoEmTerceirosFormComponent);
    return MovimentacaoEmTerceirosFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_11__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/cargill/movimentos/movimentacao-em-terceiros/movimentacao-em-terceiros-index/movimentacao-em-terceiros-index.component.scss":
/*!***************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/movimentos/movimentacao-em-terceiros/movimentacao-em-terceiros-index/movimentacao-em-terceiros-index.component.scss ***!
  \***************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = (".chk input {\n  display: none;\n}\n\n.chk span {\n  width: 14px;\n  height: 14px;\n  display: block;\n  background-color: #fff;\n  border: 1px solid #DDD;\n  border-radius: 18px;\n}\n\nspan.red {\n  background-color: #c03;\n}\n\n.selected {\n  background-color: #b4d7eb !important;\n}\n\n.table th,\n.table td {\n  white-space: nowrap;\n}\n\n.table-responsive {\n  overflow: auto;\n  max-height: 420px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvZXNwZWNpZmljb3MvY2FyZ2lsbC9tb3ZpbWVudG9zL21vdmltZW50YWNhby1lbS10ZXJjZWlyb3MvbW92aW1lbnRhY2FvLWVtLXRlcmNlaXJvcy1pbmRleC9DOlxcQ29ycG9yYXRlXFxDb3Jwb3JhdGVXZWJEZXNlbnZcXF91bmlzb2x1dGlvbi9zcmNcXGFwcFxccGFnZXNcXGVzcGVjaWZpY29zXFxjYXJnaWxsXFxtb3ZpbWVudG9zXFxtb3ZpbWVudGFjYW8tZW0tdGVyY2Vpcm9zXFxtb3ZpbWVudGFjYW8tZW0tdGVyY2Vpcm9zLWluZGV4XFxtb3ZpbWVudGFjYW8tZW0tdGVyY2Vpcm9zLWluZGV4LmNvbXBvbmVudC5zY3NzIiwic3JjL2FwcC9wYWdlcy9lc3BlY2lmaWNvcy9jYXJnaWxsL21vdmltZW50b3MvbW92aW1lbnRhY2FvLWVtLXRlcmNlaXJvcy9tb3ZpbWVudGFjYW8tZW0tdGVyY2Vpcm9zLWluZGV4L21vdmltZW50YWNhby1lbS10ZXJjZWlyb3MtaW5kZXguY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDSSxhQUFBO0FDQ0o7O0FERUE7RUFDSSxXQUFBO0VBQ0EsWUFBQTtFQUNBLGNBQUE7RUFDQSxzQkFBQTtFQUNBLHNCQUFBO0VBQ0EsbUJBQUE7QUNDSjs7QURFQTtFQUNJLHNCQUFBO0FDQ0o7O0FERUE7RUFDSSxvQ0FBQTtBQ0NKOztBREVBOztFQUVJLG1CQUFBO0FDQ0o7O0FERUE7RUFDSSxjQUFBO0VBQ0EsaUJBQUE7QUNDSiIsImZpbGUiOiJzcmMvYXBwL3BhZ2VzL2VzcGVjaWZpY29zL2NhcmdpbGwvbW92aW1lbnRvcy9tb3ZpbWVudGFjYW8tZW0tdGVyY2Vpcm9zL21vdmltZW50YWNhby1lbS10ZXJjZWlyb3MtaW5kZXgvbW92aW1lbnRhY2FvLWVtLXRlcmNlaXJvcy1pbmRleC5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5jaGsgaW5wdXQge1xyXG4gICAgZGlzcGxheTogbm9uZTtcclxufVxyXG5cclxuLmNoayBzcGFuIHtcclxuICAgIHdpZHRoOiAxNHB4O1xyXG4gICAgaGVpZ2h0OiAxNHB4O1xyXG4gICAgZGlzcGxheTogYmxvY2s7XHJcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xyXG4gICAgYm9yZGVyOiAxcHggc29saWQgI0RERDtcclxuICAgIGJvcmRlci1yYWRpdXM6IDE4cHg7XHJcbn1cclxuXHJcbnNwYW4ucmVkIHtcclxuICAgIGJhY2tncm91bmQtY29sb3I6ICNjMDM7XHJcbn1cclxuXHJcbi5zZWxlY3RlZCB7XHJcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjYjRkN2ViICFpbXBvcnRhbnQ7XHJcbn1cclxuXHJcbi50YWJsZSB0aCxcclxuLnRhYmxlIHRkIHtcclxuICAgIHdoaXRlLXNwYWNlOiBub3dyYXA7XHJcbn1cclxuXHJcbi50YWJsZS1yZXNwb25zaXZlIHtcclxuICAgIG92ZXJmbG93OiBhdXRvO1xyXG4gICAgbWF4LWhlaWdodDogNDIwcHg7XHJcbn1cclxuIiwiLmNoayBpbnB1dCB7XG4gIGRpc3BsYXk6IG5vbmU7XG59XG5cbi5jaGsgc3BhbiB7XG4gIHdpZHRoOiAxNHB4O1xuICBoZWlnaHQ6IDE0cHg7XG4gIGRpc3BsYXk6IGJsb2NrO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xuICBib3JkZXI6IDFweCBzb2xpZCAjREREO1xuICBib3JkZXItcmFkaXVzOiAxOHB4O1xufVxuXG5zcGFuLnJlZCB7XG4gIGJhY2tncm91bmQtY29sb3I6ICNjMDM7XG59XG5cbi5zZWxlY3RlZCB7XG4gIGJhY2tncm91bmQtY29sb3I6ICNiNGQ3ZWIgIWltcG9ydGFudDtcbn1cblxuLnRhYmxlIHRoLFxuLnRhYmxlIHRkIHtcbiAgd2hpdGUtc3BhY2U6IG5vd3JhcDtcbn1cblxuLnRhYmxlLXJlc3BvbnNpdmUge1xuICBvdmVyZmxvdzogYXV0bztcbiAgbWF4LWhlaWdodDogNDIwcHg7XG59Il19 */");

/***/ }),

/***/ "./src/app/pages/especificos/cargill/movimentos/movimentacao-em-terceiros/movimentacao-em-terceiros-index/movimentacao-em-terceiros-index.component.ts":
/*!*************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/movimentos/movimentacao-em-terceiros/movimentacao-em-terceiros-index/movimentacao-em-terceiros-index.component.ts ***!
  \*************************************************************************************************************************************************************/
/*! exports provided: MovimentacaoEmTerceirosIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MovimentacaoEmTerceirosIndexComponent", function() { return MovimentacaoEmTerceirosIndexComponent; });
/* harmony import */ var _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./../../../../../../shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-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 _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../../login/login.service */ "./src/app/pages/login/login.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 _movimentacao_em_terceiros_model__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../movimentacao-em-terceiros.model */ "./src/app/pages/especificos/cargill/movimentos/movimentacao-em-terceiros/movimentacao-em-terceiros.model.ts");
/* harmony import */ var _movimentacao_em_terceiros_constants__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../movimentacao-em-terceiros.constants */ "./src/app/pages/especificos/cargill/movimentos/movimentacao-em-terceiros/movimentacao-em-terceiros.constants.ts");
/* harmony import */ var _movimentacao_em_terceiros_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../movimentacao-em-terceiros.service */ "./src/app/pages/especificos/cargill/movimentos/movimentacao-em-terceiros/movimentacao-em-terceiros.service.ts");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/shared/services/funcoes/string-utils/string-utils.static.service */ "./src/app/shared/services/funcoes/string-utils/string-utils.static.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 _movimentacao_em_terceiros_upload_movimentacao_em_terceiros_upload_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../movimentacao-em-terceiros-upload/movimentacao-em-terceiros-upload.component */ "./src/app/pages/especificos/cargill/movimentos/movimentacao-em-terceiros/movimentacao-em-terceiros-upload/movimentacao-em-terceiros-upload.component.ts");
/* harmony import */ var app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! app/shared/services/funcoes/modal-utils/modal-utils.static.service */ "./src/app/shared/services/funcoes/modal-utils/modal-utils.static.service.ts");
/* harmony import */ var app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! app/shared/components/commons/table/table.component */ "./src/app/shared/components/commons/table/table.component.ts");
/* harmony import */ var app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_17__ = __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_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_18__ = __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");
/* harmony import */ var app_shared_components_modais_preferencias_usuario_rotina_preferencias_usuario_rotina_service__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! app/shared/components/modais/preferencias-usuario-rotina/preferencias-usuario-rotina.service */ "./src/app/shared/components/modais/preferencias-usuario-rotina/preferencias-usuario-rotina.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 MovimentacaoEmTerceirosIndexComponent = /** @class */ (function (_super) {
    __extends(MovimentacaoEmTerceirosIndexComponent, _super);
    function MovimentacaoEmTerceirosIndexComponent(router, service, datatablesService, funcoesService, messageService, permissoesUtils, loginService, preferenciasUsuarioService) {
        var _this = _super.call(this, new _movimentacao_em_terceiros_constants__WEBPACK_IMPORTED_MODULE_10__["MovimentacaoEmTerceirosConstants"](), funcoesService) || this;
        _this.router = router;
        _this.service = service;
        _this.datatablesService = datatablesService;
        _this.funcoesService = funcoesService;
        _this.messageService = messageService;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.preferenciasUsuarioService = preferenciasUsuarioService;
        _this.data = new _movimentacao_em_terceiros_model__WEBPACK_IMPORTED_MODULE_9__["MovimentacaoEmTerceiros"]();
        _this.colunasPesquisaInicial = [];
        _this.constantes = new _movimentacao_em_terceiros_constants__WEBPACK_IMPORTED_MODULE_10__["MovimentacaoEmTerceirosConstants"]();
        _this.filtroExcel = new _movimentacao_em_terceiros_model__WEBPACK_IMPORTED_MODULE_9__["MovimentacaoEmTerceirosUpload"]();
        _this.itensSelecionados = [];
        _this.target = _this.funcoesService.getTargetLocation();
        _this.pageRoute = "/especificos/cargill/movimentos/movimentacaoEmTerceiros";
        _this.preferenciasUsuario = function () {
            app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_15__["ModalUtilsStaticService"].openModal("prefer-usuario-rotina-dialog");
        };
        _this.importarExcel = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 8, function () { return __awaiter(_this, void 0, void 0, function () {
                return __generator(this, function (_a) {
                    this.upload.open(this.filtroExcel);
                    return [2 /*return*/];
                });
            }); });
        };
        _this.baixarRetencao = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 8, function () { return __awaiter(_this, void 0, void 0, function () {
                return __generator(this, function (_a) {
                    jQuery("#baixa-retencao-dialog").modal("show");
                    return [2 /*return*/];
                });
            }); });
        };
        _this.login = loginService.getLogin();
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
            _this.carregarColunasPesquisa();
        });
        return _this;
    }
    MovimentacaoEmTerceirosIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            if (!_this.loginService.isTokenExpired()) {
                _this.carregarFiltro();
            }
        }, function () {
            _this.permissoesUtils.back();
        }, true);
        _super.prototype.addFuncoes.call(this, [
            { action: 'importarExcel', func: function () { return _this.importarExcel; } },
            { action: 'baixarRetencao', func: function () { return _this.baixarRetencao; } },
            { action: 'preferenciasUsuario', func: function () { return _this.preferenciasUsuario; } }
        ]);
    };
    MovimentacaoEmTerceirosIndexComponent.prototype.carregarFiltro = function () {
        var _this = this;
        this.dados = [];
        this.preferenciasUsuarioService.getDadosPreferenciaUsuario(this.constantes.sisFormularioId, this.service.filtro, this.colunasPesquisaInicial).subscribe(function (dados) {
            if (dados) {
                _this.service.filtro = _movimentacao_em_terceiros_model__WEBPACK_IMPORTED_MODULE_9__["MovimentacaoEmTerceirosFilter"].fromJS(dados.dadosFiltro);
                _this.service.preferenciasUsuarios.ordemColunasPesquisa = dados.ordemColunasPesquisa;
                _this.service.preferenciasUsuarios.pageLength = dados.pageLength;
                _this.service.preferenciasUsuarios.stateSaveTabela = dados.stateSaveTabela;
                app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_13__["EventEmitterService"].get('appTableChangeConfig').emit({ pageSize: dados.pageLength });
            }
            if (_this.funcoesService.abrirFiltro) {
                _this.service.filtro = new _movimentacao_em_terceiros_model__WEBPACK_IMPORTED_MODULE_9__["MovimentacaoEmTerceirosFilter"]();
                _this.filtrar();
            }
            else {
                _this.refresh();
            }
        });
    };
    Object.defineProperty(MovimentacaoEmTerceirosIndexComponent.prototype, "hasResultSet", {
        get: function () {
            return app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_17__["ArrayUtilsStaticService"].any(this.dados);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MovimentacaoEmTerceirosIndexComponent.prototype, "resultSet", {
        get: function () {
            var _this = this;
            if (!this.table)
                return [];
            if (!this.hasResultSet || !this.table.filtro) {
                return this.table.getPage(this.dados);
            }
            var dados = this.dados.filter(function (v) {
                return app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["StringUtilsStaticService"].exist(app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_18__["DateTimeUtilsStaticService"].convertDateToDateStr(v.data), _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["StringUtilsStaticService"].exist(v.descrTerminal, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["StringUtilsStaticService"].exist(v.descrEmitente, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["StringUtilsStaticService"].exist(v.descrCliente, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["StringUtilsStaticService"].exist(v.descrMaterial, _this.table.filtro) ||
                    _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["NumberUtilsStaticService"].exist(v.pesoLiq, _this.table.filtro) ||
                    _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["NumberUtilsStaticService"].exist(v.retencao, _this.table.filtro) ||
                    _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["NumberUtilsStaticService"].exist(v.disponivel, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["StringUtilsStaticService"].exist(v.descrOperacao, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["StringUtilsStaticService"].exist(v.veiculo, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["StringUtilsStaticService"].exist(v.notaFiscal, _this.table.filtro) ||
                    app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["StringUtilsStaticService"].exist(v.descrModalidade, _this.table.filtro);
            });
            return this.table.getPage(dados);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(MovimentacaoEmTerceirosIndexComponent.prototype, "columnsVisible", {
        get: function () {
            return this.service.preferenciasUsuarios.ordemColunasPesquisa.filter(function (c) { return c.visible; });
        },
        enumerable: true,
        configurable: true
    });
    MovimentacaoEmTerceirosIndexComponent.prototype.create = function () {
        this.router.navigate(["" + this.target + this.pageRoute + "/create"]);
    };
    MovimentacaoEmTerceirosIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.service.uploadFiltro = new _movimentacao_em_terceiros_model__WEBPACK_IMPORTED_MODULE_9__["MovimentacaoEmTerceirosUpload"]();
        this.service.getByFilter(this.service.filtro).subscribe(function (resp) {
            _this.dados = resp;
            _this.qtdRegistro = resp.length;
        });
    };
    MovimentacaoEmTerceirosIndexComponent.prototype.carregarColunasPesquisa = function () {
        this.colunasPesquisaInicial = [
            { data: "selecionado", title: "", type: "checkbox", format: "", width: "", visible: true },
            { data: "data", title: "labels.data", type: "datetime", format: "dd/MM/yyyy HH:mm:ss", width: "", visible: true },
            { data: "descrTerminal", title: "labels.terminal", type: "string", format: "", width: "", visible: true },
            { data: "descrEmitente", title: "labels.emitente", type: "string", format: "", width: "", visible: true },
            { data: "descrCliente", title: "labels.cliente", type: "string", format: "", width: "", visible: true },
            { data: "descrMaterial", title: "labels.produto", type: "string", format: "", width: "", visible: true },
            { data: "pesoLiq", title: "labels.pesoLiq", type: "number", format: "decimal", width: "", visible: true },
            { data: "retencao", title: "labels.retencao", type: "number", format: "decimal", width: "", visible: true },
            { data: "disponivel", title: "labels.disponivel", type: "number", format: "decimal", width: "", visible: true },
            { data: "descrOperacao", title: "labels.operacao", type: "string", format: "", width: "", visible: true },
            { data: "veiculo", title: "labels.veiculoNavio", type: "string", format: "", width: "", visible: true },
            { data: "notaFiscal", title: "labels.notaFiscal", type: "string", format: "", width: "", visible: true },
            { data: "descrModalidade", title: "labels.modalidade", type: "string", format: "", width: "", visible: true }
        ];
    };
    MovimentacaoEmTerceirosIndexComponent.prototype.formatarNumero = function (valor) {
        if (valor == null) {
            return '';
        }
        return valor.toLocaleString('pt-BR');
    };
    MovimentacaoEmTerceirosIndexComponent.prototype.edit = function () {
        if (!!(this.data.cliCglMovimentacaoEmTerceirosId)) {
            this.router.navigate(["" + this.target + this.pageRoute + "/edit/" + this.data.cliCglMovimentacaoEmTerceirosId]);
        }
    };
    MovimentacaoEmTerceirosIndexComponent.prototype.detail = function () {
        if (!!(this.data.cliCglMovimentacaoEmTerceirosId)) {
            this.router.navigate(["" + this.target + this.pageRoute + "/detail/" + this.data.cliCglMovimentacaoEmTerceirosId]);
        }
    };
    MovimentacaoEmTerceirosIndexComponent.prototype.remove = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
            if (!_this.validarItensSelecionados()) {
                return;
            }
            var mensagem;
            if (_this.itensSelecionados.length === 1) {
                mensagem = 'messages.confirmaExclusaoDoRegistro';
            }
            else if (_this.itensSelecionados.length === _this.qtdRegistro) {
                mensagem = _this.messageService.translate("messages.desejaRealmenteExcluirTodosOsRegistros", { qtdDeRegistro: _this.qtdRegistro });
            }
            else {
                mensagem = _this.messageService.translate("messages.desejaRealmenteExcluirTodosOsRegistrosSelecionados", { qtdDeRegistro: _this.itensSelecionados.length });
            }
            _this.messageService.confirm("titles.exclusao", mensagem, null, function () {
                _this.service.removeMultiple(_this.itensSelecionados).subscribe(function () {
                    _this.refresh();
                    _this.itensSelecionados = [];
                    _this.atualizaItensSelecionados();
                });
            });
        });
    };
    MovimentacaoEmTerceirosIndexComponent.prototype.print = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () {
            _this.constantes.paramRelatorio = {
                filialId: _this.loginService.getLogin().filialId,
                dataI: _this.service.filtro.dataI,
                dataF: _this.service.filtro.dataF,
                destinatarioIdCliente: _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["NumberUtilsStaticService"].toNumber(_this.service.filtro.destinatarioIdCliente),
                destinatarioIdEmitente: _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["NumberUtilsStaticService"].toNumber(_this.service.filtro.destinatarioIdEmitente),
                destinatarioIdTerminal: _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["NumberUtilsStaticService"].toNumber(_this.service.filtro.destinatarioIdTerminal),
                materialId: app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["StringUtilsStaticService"].toString(_this.service.filtro.materialId),
                cliCglTipoDeOperacaoId: _shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["NumberUtilsStaticService"].toNumber(_this.service.filtro.cliCglTipoDeOperacaoId)
            };
            _super.prototype.print.call(_this, null, true);
        });
    };
    MovimentacaoEmTerceirosIndexComponent.prototype.properties = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 6, function () {
            _super.prototype.properties.call(_this, _this.data);
        });
    };
    MovimentacaoEmTerceirosIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 7, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    MovimentacaoEmTerceirosIndexComponent.prototype.onBaixarRetencao = function (form) {
        var _this = this;
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_13__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        this.service.baixarRetencao(this.data.cliCglMovimentacaoEmTerceirosId, this.retencao).subscribe(function (resp) {
            _this.messageService.saveSuccess("titles.movimentacaoEmTerceiros");
            jQuery("#baixa-retencao-dialog").modal("hide");
            _this.refresh();
        });
    };
    MovimentacaoEmTerceirosIndexComponent.prototype.filtrar = function () {
        jQuery("#movimentacao-em-terceiros-filter-dialog").modal("show");
    };
    MovimentacaoEmTerceirosIndexComponent.prototype.executaFiltro = function () {
        this.refresh();
    };
    MovimentacaoEmTerceirosIndexComponent.prototype._dbClick = function (obj) {
        this.onMarcarDesmarcar(obj);
    };
    MovimentacaoEmTerceirosIndexComponent.prototype.onMarcarDesmarcar = function (obj) {
        obj.selecionado = obj.selecionado === 'S' ? 'N' : 'S';
        this.atualizaItensSelecionados();
        this.trataExibicaoBotoes();
    };
    MovimentacaoEmTerceirosIndexComponent.prototype.onMarcarTodos = function (obj) {
        obj.selecionado = 'S';
        this.atualizaItensSelecionados();
    };
    MovimentacaoEmTerceirosIndexComponent.prototype.onDesmarcarTodos = function (obj) {
        obj.selecionado = 'N';
        this.atualizaItensSelecionados();
    };
    MovimentacaoEmTerceirosIndexComponent.prototype.atualizaItensSelecionados = function () {
        this.itensSelecionados = this.dados
            .filter(function (d) { return d.selecionado === "S"; })
            .map(function (d) {
            return {
                cliCglMovimentacaoEmTerceirosId: d.cliCglMovimentacaoEmTerceirosId
            };
        });
    };
    MovimentacaoEmTerceirosIndexComponent.prototype.marcarTodos = function () {
        var _this = this;
        if (!this.hasResultSet) {
            this.messageService.warning("titles.movimentacaoEmTerceiros", "messages.tabelaVazia");
            return;
        }
        this.dados.forEach(function (e) { return _this.onMarcarTodos(e); });
        this.atualizaItensSelecionados();
    };
    MovimentacaoEmTerceirosIndexComponent.prototype.desmarcarTodos = function () {
        var _this = this;
        if (!this.hasResultSet) {
            this.messageService.warning("titles.movimentacaoEmTerceiros", "messages.tabelaVazia");
            return;
        }
        this.dados.forEach(function (e) { return _this.onDesmarcarTodos(e); });
    };
    Object.defineProperty(MovimentacaoEmTerceirosIndexComponent.prototype, "checked", {
        get: function () {
            if (this.itensSelecionados.length) {
                return this.qtdRegistro == this.itensSelecionados.length;
            }
        },
        enumerable: true,
        configurable: true
    });
    MovimentacaoEmTerceirosIndexComponent.prototype.checarMarcacao = function (ckd) {
        if (!ckd) {
            this.marcarTodos();
        }
        else {
            this.desmarcarTodos();
        }
        this.trataExibicaoBotoes();
    };
    MovimentacaoEmTerceirosIndexComponent.prototype._click = function (item) {
        this.data = item;
        this.trataExibicaoBotoes();
        //this.rowSelect(item);
    };
    MovimentacaoEmTerceirosIndexComponent.prototype.trataExibicaoBotoes = function () {
        this.buttonDisabled('listaIndex', 'baixarRetencao', !this.data.retencao || this.data.retencao == 0);
        this.buttonDisabled('listaIndex', 'remove', this.itensSelecionados.length === 0);
    };
    MovimentacaoEmTerceirosIndexComponent.prototype.validarItensSelecionados = function () {
        if (this.itensSelecionados.length === 0) {
            this.messageService.warning("titles.movimentacaoEmTerceiros", "messages.nenhumItemSelecionado");
            return false;
        }
        return true;
    };
    MovimentacaoEmTerceirosIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"] },
        { type: _movimentacao_em_terceiros_service__WEBPACK_IMPORTED_MODULE_11__["MovimentacaoEmTerceirosService"] },
        { type: _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__["MessageService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_7__["LoginService"] },
        { type: app_shared_components_modais_preferencias_usuario_rotina_preferencias_usuario_rotina_service__WEBPACK_IMPORTED_MODULE_19__["PreferenciasUsuarioRotinaService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])(_movimentacao_em_terceiros_upload_movimentacao_em_terceiros_upload_component__WEBPACK_IMPORTED_MODULE_14__["MovimentacaoEmTerceirosUploadComponent"], { static: false }),
        __metadata("design:type", _movimentacao_em_terceiros_upload_movimentacao_em_terceiros_upload_component__WEBPACK_IMPORTED_MODULE_14__["MovimentacaoEmTerceirosUploadComponent"])
    ], MovimentacaoEmTerceirosIndexComponent.prototype, "upload", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"])(app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_16__["TableComponent"], { static: false }),
        __metadata("design:type", app_shared_components_commons_table_table_component__WEBPACK_IMPORTED_MODULE_16__["TableComponent"])
    ], MovimentacaoEmTerceirosIndexComponent.prototype, "table", void 0);
    MovimentacaoEmTerceirosIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
            selector: "app-movimentacao-em-terceiros-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./movimentacao-em-terceiros-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/movimentos/movimentacao-em-terceiros/movimentacao-em-terceiros-index/movimentacao-em-terceiros-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./movimentacao-em-terceiros-index.component.scss */ "./src/app/pages/especificos/cargill/movimentos/movimentacao-em-terceiros/movimentacao-em-terceiros-index/movimentacao-em-terceiros-index.component.scss")).default]
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"],
            _movimentacao_em_terceiros_service__WEBPACK_IMPORTED_MODULE_11__["MovimentacaoEmTerceirosService"],
            _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__["MessageService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_7__["LoginService"],
            app_shared_components_modais_preferencias_usuario_rotina_preferencias_usuario_rotina_service__WEBPACK_IMPORTED_MODULE_19__["PreferenciasUsuarioRotinaService"]])
    ], MovimentacaoEmTerceirosIndexComponent);
    return MovimentacaoEmTerceirosIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_5__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/cargill/movimentos/movimentacao-em-terceiros/movimentacao-em-terceiros-upload/movimentacao-em-terceiros-upload.component.scss":
/*!*****************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/movimentos/movimentacao-em-terceiros/movimentacao-em-terceiros-upload/movimentacao-em-terceiros-upload.component.scss ***!
  \*****************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = (".btn-space {\n  margin-right: 5px;\n}\n\n.btn-file {\n  position: relative;\n  overflow: hidden;\n}\n\n.btn-file input[type=file] {\n  position: absolute;\n  top: 0;\n  right: 0;\n  min-width: 100%;\n  min-height: 100%;\n  font-size: 100px;\n  text-align: right;\n  filter: alpha(opacity=0);\n  opacity: 0;\n  outline: none;\n  cursor: inherit;\n  display: block;\n}\n\ninputGroup {\n  opacity: 0;\n}\n\n#span01 {\n  left: -10px;\n  top: -7px;\n  width: 85px;\n  height: 30px;\n}\n\n#button01, #button02, #button03, #button04 {\n  width: 86px;\n  height: 31px;\n}\n\ndiv.row.container-img-preview {\n  padding: 0 1.7%;\n  margin-bottom: 1%;\n}\n\ndiv.row.container-img-preview div#main-preview {\n  margin-top: 0%;\n  outline: 1px solid #edf1f7;\n  background-color: #f7f9fc;\n  min-height: 100px;\n  position: relative;\n  padding: 0px 0px 0px 0px;\n  height: 155px;\n  overflow: hidden;\n  display: flex;\n  justify-content: center;\n}\n\ndiv.row.container-img-preview div#main-preview:hover {\n  outline: 1px solid #ccc;\n}\n\ndiv.row.container-img-preview div#main-preview img.img-preview {\n  max-width: 100%;\n  height: 150px;\n}\n/*# sourceMappingURL=data:application/json;base64,  */");

/***/ }),

/***/ "./src/app/pages/especificos/cargill/movimentos/movimentacao-em-terceiros/movimentacao-em-terceiros-upload/movimentacao-em-terceiros-upload.component.ts":
/*!***************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/movimentos/movimentacao-em-terceiros/movimentacao-em-terceiros-upload/movimentacao-em-terceiros-upload.component.ts ***!
  \***************************************************************************************************************************************************************/
/*! exports provided: MovimentacaoEmTerceirosUploadComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MovimentacaoEmTerceirosUploadComponent", function() { return MovimentacaoEmTerceirosUploadComponent; });
/* 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 app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.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 _movimentacao_em_terceiros_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../movimentacao-em-terceiros.service */ "./src/app/pages/especificos/cargill/movimentos/movimentacao-em-terceiros/movimentacao-em-terceiros.service.ts");
/* harmony import */ var _shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./../../../../../../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_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/funcoes/modal-utils/modal-utils.static.service */ "./src/app/shared/services/funcoes/modal-utils/modal-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 __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 MovimentacaoEmTerceirosUploadComponent = /** @class */ (function () {
    function MovimentacaoEmTerceirosUploadComponent(funcoesService, message, service) {
        this.funcoesService = funcoesService;
        this.message = message;
        this.service = service;
        this.refresh = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.mensagens = [];
        this.fileData = {
            excelDig: '',
            imagemExcel: ''
        };
    }
    MovimentacaoEmTerceirosUploadComponent.prototype.open = function (data) {
        this.data = data;
        this.fileData = {
            excelDig: '',
            imagemExcel: ''
        };
        var fileInput = document.querySelector("#fileInput");
        fileInput.value = "";
        app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["ModalUtilsStaticService"].openModal("movimentacao-em-terceiros-upload");
    };
    MovimentacaoEmTerceirosUploadComponent.prototype.onSubmit = function (form) {
        return __awaiter(this, void 0, void 0, function () {
            var ret, contagem;
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__["EventEmitterService"].get("formError").emit(form);
                        if (form.invalid) {
                            this.funcoesService.backToTop();
                            return [2 /*return*/];
                        }
                        return [4 /*yield*/, this.service.getImportarExcel({
                                excelDig: this.fileData.excelDig,
                                imagemExcel: this.fileData.imagemExcel
                            })];
                    case 1:
                        ret = _a.sent();
                        if (ret.length > 0) {
                            ret.filter(function (c) { return !c.validationResult.isValid; }).forEach(function (item) {
                                var mesLabel = JSON.parse(item.validationResult.erros[0].message).Values;
                                var message = _this.message.translate(mesLabel[0]);
                                _this.message.warning("titles.movimentacaoEmTerceiros", JSON.parse(item.validationResult.erros[0].message).Key, { name: message });
                            });
                            contagem = ret.reduce(function (contador, retorno) {
                                if (retorno.validationResult.isValid) {
                                    contador.isValid++;
                                }
                                else {
                                    contador.isNotValid++;
                                }
                                return contador;
                            }, { isValid: 0, isNotValid: 0 });
                            if (contagem.isValid > 0) {
                                this.message.success("titles.movimentacaoEmTerceiros", "messages.registrosImportadosComSucesso", { qtdeRegistros: contagem.isValid });
                            }
                            if (contagem.isNotValid > 0) {
                                this.message.warning("titles.movimentacaoEmTerceiros", "messages.registrosNaoImportados", { qtdeRegistros: contagem.isNotValid });
                            }
                        }
                        app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["ModalUtilsStaticService"].closeModal("movimentacao-em-terceiros-upload");
                        this.refresh.emit();
                        return [2 /*return*/];
                }
            });
        });
    };
    MovimentacaoEmTerceirosUploadComponent.prototype.handleFileSelect = function (evt) {
        var _this = this;
        var files = evt.target.files;
        if (_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["ArrayUtilsStaticService"].any(files)) {
            var file_1 = files[0];
            var myReader_1 = new FileReader();
            myReader_1.onloadend = function (e) {
                _this.fileData.excelDig = file_1.name;
                _this.fileData.imagemExcel = myReader_1.result;
            };
            myReader_1.readAsDataURL(file_1);
        }
    };
    MovimentacaoEmTerceirosUploadComponent.ctorParameters = function () { return [
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: _movimentacao_em_terceiros_service__WEBPACK_IMPORTED_MODULE_4__["MovimentacaoEmTerceirosService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], MovimentacaoEmTerceirosUploadComponent.prototype, "refresh", void 0);
    MovimentacaoEmTerceirosUploadComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-movimentacao-em-terceiros-upload',
            template: __importDefault(__webpack_require__(/*! raw-loader!./movimentacao-em-terceiros-upload.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cargill/movimentos/movimentacao-em-terceiros/movimentacao-em-terceiros-upload/movimentacao-em-terceiros-upload.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
            styles: [__importDefault(__webpack_require__(/*! ./movimentacao-em-terceiros-upload.component.scss */ "./src/app/pages/especificos/cargill/movimentos/movimentacao-em-terceiros/movimentacao-em-terceiros-upload/movimentacao-em-terceiros-upload.component.scss")).default]
        }),
        __metadata("design:paramtypes", [app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            _movimentacao_em_terceiros_service__WEBPACK_IMPORTED_MODULE_4__["MovimentacaoEmTerceirosService"]])
    ], MovimentacaoEmTerceirosUploadComponent);
    return MovimentacaoEmTerceirosUploadComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cargill/movimentos/movimentacao-em-terceiros/movimentacao-em-terceiros.constants.ts":
/*!***********************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/movimentos/movimentacao-em-terceiros/movimentacao-em-terceiros.constants.ts ***!
  \***********************************************************************************************************************/
/*! exports provided: MovimentacaoEmTerceirosConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MovimentacaoEmTerceirosConstants", function() { return MovimentacaoEmTerceirosConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var MovimentacaoEmTerceirosConstants = /** @class */ (function () {
    function MovimentacaoEmTerceirosConstants() {
        this.sisFormularioId = 65674;
        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.impressao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 6, acao: "labels.propriedades" },
            { sisFormularioId: this.sisFormularioId, libRotina: 7, acao: "labels.permissoes" },
            { sisFormularioId: this.sisFormularioId, libRotina: 8, acao: "labels.importPlanilha" }
        ];
        this.sisSistemaId = "CAD";
        this.nomeForm = "titles.movimentacaoEmTerceiros";
        this.reportId = "CAR0006";
        this.reportTitulo = { "titulo": "Movimentacao Em Terceiros", "subTitulo": "" };
        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: 'Imprimir', action: 'print', icon: "icon-printer", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'Pesquisar', action: 'filtrar', icon: "icon-search", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'PreferenciasUsuario', action: 'preferenciasUsuario', icon: "icon-lock", exibeButton: false, eximeMenu: true, menuName: 'Movimento', depitem: false },
            { 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' },
            { title: 'importarExcel', action: 'importarExcel', icon: "fa fa-file-excel-o", exibeButton: true, eximeMenu: true, menuName: 'Movimento', depitem: false },
            { title: 'baixarRetencao', action: 'baixarRetencao', icon: "fa fa-check", 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 MovimentacaoEmTerceirosConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cargill/movimentos/movimentacao-em-terceiros/movimentacao-em-terceiros.model.ts":
/*!*******************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/movimentos/movimentacao-em-terceiros/movimentacao-em-terceiros.model.ts ***!
  \*******************************************************************************************************************/
/*! exports provided: MovimentacaoEmTerceiros, MovimentacaoEmTerceirosDto, MovimentacaoEmTerceirosUpload, MovimentacaoEmTerceirosFilter */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MovimentacaoEmTerceiros", function() { return MovimentacaoEmTerceiros; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MovimentacaoEmTerceirosDto", function() { return MovimentacaoEmTerceirosDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MovimentacaoEmTerceirosUpload", function() { return MovimentacaoEmTerceirosUpload; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MovimentacaoEmTerceirosFilter", function() { return MovimentacaoEmTerceirosFilter; });
/* harmony import */ var app_pages_cadastro_material_material_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/pages/cadastro/material/material.model */ "./src/app/pages/cadastro/material/material.model.ts");
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_1__ = __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");
/* harmony import */ var _shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./../../../../../shared/services/base/base.model */ "./src/app/shared/services/base/base.model.ts");
/* harmony import */ var _cadastros_tipo_de_operacao_tipo_de_operacao_model__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../cadastros/tipo-de-operacao/tipo-de-operacao.model */ "./src/app/pages/especificos/cargill/cadastros/tipo-de-operacao/tipo-de-operacao.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 __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};




var MovimentacaoEmTerceiros = /** @class */ (function (_super) {
    __extends(MovimentacaoEmTerceiros, _super);
    function MovimentacaoEmTerceiros() {
        var _this = _super.call(this) || this;
        _this.cliCglMovimentacaoEmTerceirosId = 0;
        _this.destinatarioIdTerminal = "";
        _this.material = new app_pages_cadastro_material_material_model__WEBPACK_IMPORTED_MODULE_0__["Material"]();
        _this.cliCglTipoDeOperacao = new _cadastros_tipo_de_operacao_tipo_de_operacao_model__WEBPACK_IMPORTED_MODULE_3__["TipoDeOperacao"]();
        return _this;
    }
    return MovimentacaoEmTerceiros;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_2__["BaseModel"]));

var MovimentacaoEmTerceirosDto = /** @class */ (function (_super) {
    __extends(MovimentacaoEmTerceirosDto, _super);
    function MovimentacaoEmTerceirosDto() {
        var _this = _super.call(this) || this;
        _this.cliCglMovimentacaoEmTerceirosId = 0;
        return _this;
    }
    return MovimentacaoEmTerceirosDto;
}(_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_2__["BaseModel"]));

var MovimentacaoEmTerceirosUpload = /** @class */ (function () {
    function MovimentacaoEmTerceirosUpload() {
        this.sequencia = 0;
        this.nome = "";
        this.excelDig = "";
        this.imagemExcel = "";
        this.imagemUrl = "";
    }
    return MovimentacaoEmTerceirosUpload;
}());

var MovimentacaoEmTerceirosFilter = /** @class */ (function () {
    function MovimentacaoEmTerceirosFilter() {
        this.dataI = app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_1__["DateTimeUtilsStaticService"].getFirstDayOfMonth(new Date());
        this.dataF = new Date();
        this.destinatarioIdCliente = 0;
        this.destinatarioIdEmitente = 0;
        this.destinatarioIdTerminal = 0;
        this.materialId = "";
        this.cliCglTipoDeOperacaoId = "";
    }
    MovimentacaoEmTerceirosFilter.fromJS = function (data) {
        data = typeof data === 'object' ? data : {};
        var result = new MovimentacaoEmTerceirosFilter();
        result.init(data);
        return result;
    };
    MovimentacaoEmTerceirosFilter.prototype.init = function (data) {
        var _this = this;
        if (data) {
            Object.getOwnPropertyNames(data).forEach(function (d) { return _this[d] = data[d]; });
            this.dataI = new Date(data.dataI);
            this.dataF = new Date(data.dataF);
        }
    };
    return MovimentacaoEmTerceirosFilter;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cargill/movimentos/movimentacao-em-terceiros/movimentacao-em-terceiros.module.ts":
/*!********************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/movimentos/movimentacao-em-terceiros/movimentacao-em-terceiros.module.ts ***!
  \********************************************************************************************************************/
/*! exports provided: MovimentacaoEmTerceirosModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MovimentacaoEmTerceirosModule", function() { return MovimentacaoEmTerceirosModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _movimentacao_em_terceiros_index_movimentacao_em_terceiros_index_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./movimentacao-em-terceiros-index/movimentacao-em-terceiros-index.component */ "./src/app/pages/especificos/cargill/movimentos/movimentacao-em-terceiros/movimentacao-em-terceiros-index/movimentacao-em-terceiros-index.component.ts");
/* harmony import */ var _movimentacao_em_terceiros_routing_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./movimentacao-em-terceiros.routing.module */ "./src/app/pages/especificos/cargill/movimentos/movimentacao-em-terceiros/movimentacao-em-terceiros.routing.module.ts");
/* harmony import */ var _movimentacao_em_terceiros_form_movimentacao_em_terceiros_form_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./movimentacao-em-terceiros-form/movimentacao-em-terceiros-form.component */ "./src/app/pages/especificos/cargill/movimentos/movimentacao-em-terceiros/movimentacao-em-terceiros-form/movimentacao-em-terceiros-form.component.ts");
/* harmony import */ var _movimentacao_em_terceiros_upload_movimentacao_em_terceiros_upload_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./movimentacao-em-terceiros-upload/movimentacao-em-terceiros-upload.component */ "./src/app/pages/especificos/cargill/movimentos/movimentacao-em-terceiros/movimentacao-em-terceiros-upload/movimentacao-em-terceiros-upload.component.ts");
/* harmony import */ var _movimentacao_em_terceiros_filter_movimentacao_em_terceiros_filter_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./movimentacao-em-terceiros-filter/movimentacao-em-terceiros-filter.component */ "./src/app/pages/especificos/cargill/movimentos/movimentacao-em-terceiros/movimentacao-em-terceiros-filter/movimentacao-em-terceiros-filter.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 MovimentacaoEmTerceirosModule = /** @class */ (function () {
    function MovimentacaoEmTerceirosModule() {
    }
    MovimentacaoEmTerceirosModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            declarations: [
                _movimentacao_em_terceiros_index_movimentacao_em_terceiros_index_component__WEBPACK_IMPORTED_MODULE_2__["MovimentacaoEmTerceirosIndexComponent"],
                _movimentacao_em_terceiros_form_movimentacao_em_terceiros_form_component__WEBPACK_IMPORTED_MODULE_4__["MovimentacaoEmTerceirosFormComponent"],
                _movimentacao_em_terceiros_upload_movimentacao_em_terceiros_upload_component__WEBPACK_IMPORTED_MODULE_5__["MovimentacaoEmTerceirosUploadComponent"],
                _movimentacao_em_terceiros_filter_movimentacao_em_terceiros_filter_component__WEBPACK_IMPORTED_MODULE_6__["MovimentacaoEmTerceirosFilterComponent"]
            ],
            imports: [
                _shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"],
                _movimentacao_em_terceiros_routing_module__WEBPACK_IMPORTED_MODULE_3__["MovimentacaoEmTerceirosRoutingModule"]
            ]
        })
    ], MovimentacaoEmTerceirosModule);
    return MovimentacaoEmTerceirosModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cargill/movimentos/movimentacao-em-terceiros/movimentacao-em-terceiros.routing.module.ts":
/*!****************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/movimentos/movimentacao-em-terceiros/movimentacao-em-terceiros.routing.module.ts ***!
  \****************************************************************************************************************************/
/*! exports provided: MovimentacaoEmTerceirosRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MovimentacaoEmTerceirosRoutingModule", function() { return MovimentacaoEmTerceirosRoutingModule; });
/* 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 app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.ts");
/* harmony import */ var _movimentacao_em_terceiros_index_movimentacao_em_terceiros_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./movimentacao-em-terceiros-index/movimentacao-em-terceiros-index.component */ "./src/app/pages/especificos/cargill/movimentos/movimentacao-em-terceiros/movimentacao-em-terceiros-index/movimentacao-em-terceiros-index.component.ts");
/* harmony import */ var _movimentacao_em_terceiros_form_movimentacao_em_terceiros_form_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./movimentacao-em-terceiros-form/movimentacao-em-terceiros-form.component */ "./src/app/pages/especificos/cargill/movimentos/movimentacao-em-terceiros/movimentacao-em-terceiros-form/movimentacao-em-terceiros-form.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 MovimentacaoEmTerceirosRoutes = [
    {
        path: "",
        component: _movimentacao_em_terceiros_index_movimentacao_em_terceiros_index_component__WEBPACK_IMPORTED_MODULE_3__["MovimentacaoEmTerceirosIndexComponent"],
        data: {
            breadcrumb: "movimentacaoEmTerceiros",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index }
        }
    },
    {
        path: "create",
        component: _movimentacao_em_terceiros_form_movimentacao_em_terceiros_form_component__WEBPACK_IMPORTED_MODULE_4__["MovimentacaoEmTerceirosFormComponent"],
        data: {
            breadcrumb: "movimentacaoEmTerceiros",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create }
        }
    },
    {
        path: "edit/:id",
        component: _movimentacao_em_terceiros_form_movimentacao_em_terceiros_form_component__WEBPACK_IMPORTED_MODULE_4__["MovimentacaoEmTerceirosFormComponent"],
        data: {
            breadcrumb: "movimentacaoEmTerceiros",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit }
        }
    },
    {
        path: "detail/:id",
        component: _movimentacao_em_terceiros_form_movimentacao_em_terceiros_form_component__WEBPACK_IMPORTED_MODULE_4__["MovimentacaoEmTerceirosFormComponent"],
        data: {
            breadcrumb: "movimentacaoEmTerceiros",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail }
        }
    }
];
var MovimentacaoEmTerceirosRoutingModule = /** @class */ (function () {
    function MovimentacaoEmTerceirosRoutingModule() {
    }
    MovimentacaoEmTerceirosRoutingModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"].forChild(MovimentacaoEmTerceirosRoutes)],
            exports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]]
        })
    ], MovimentacaoEmTerceirosRoutingModule);
    return MovimentacaoEmTerceirosRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cargill/movimentos/movimentacao-em-terceiros/movimentacao-em-terceiros.service.ts":
/*!*********************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cargill/movimentos/movimentacao-em-terceiros/movimentacao-em-terceiros.service.ts ***!
  \*********************************************************************************************************************/
/*! exports provided: MovimentacaoEmTerceirosService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MovimentacaoEmTerceirosService", function() { return MovimentacaoEmTerceirosService; });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/base/specifics.base.service */ "./src/app/shared/services/base/specifics.base.service.ts");
/* harmony import */ var _movimentacao_em_terceiros_model__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./movimentacao-em-terceiros.model */ "./src/app/pages/especificos/cargill/movimentos/movimentacao-em-terceiros/movimentacao-em-terceiros.model.ts");
/* harmony import */ var _movimentacao_em_terceiros_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./movimentacao-em-terceiros.constants */ "./src/app/pages/especificos/cargill/movimentos/movimentacao-em-terceiros/movimentacao-em-terceiros.constants.ts");
/* harmony import */ var environments_environment__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var app_app_error_handler__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var app_shared_components_modais_preferencias_usuario_rotina_preferencias_usuario_rotina_model__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/components/modais/preferencias-usuario-rotina/preferencias-usuario-rotina.model */ "./src/app/shared/components/modais/preferencias-usuario-rotina/preferencias-usuario-rotina.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 __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};









var MovimentacaoEmTerceirosService = /** @class */ (function (_super) {
    __extends(MovimentacaoEmTerceirosService, _super);
    function MovimentacaoEmTerceirosService(http) {
        var _this = _super.call(this, http, "cargill/movimentacaoEmTerceiros") || this;
        _this.http = http;
        _this.constantes = new _movimentacao_em_terceiros_constants__WEBPACK_IMPORTED_MODULE_4__["MovimentacaoEmTerceirosConstants"]();
        _this.uploadFiltro = new _movimentacao_em_terceiros_model__WEBPACK_IMPORTED_MODULE_3__["MovimentacaoEmTerceirosUpload"]();
        _this.preferenciasUsuarios = new app_shared_components_modais_preferencias_usuario_rotina_preferencias_usuario_rotina_model__WEBPACK_IMPORTED_MODULE_8__["PreferenciasUsuarioRotinaDados"]();
        return _this;
    }
    MovimentacaoEmTerceirosService.prototype.getByFilter = function (filter) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/cargill/movimentacaoEmTerceiros/getByFilter", filter)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_6__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_7__["ErrorHandler"].handleError));
    };
    MovimentacaoEmTerceirosService.prototype.getImportarExcel = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/cargill/movimentacaoEmTerceiros/getImportarExcel", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_6__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_7__["ErrorHandler"].handleError)).toPromise();
    };
    MovimentacaoEmTerceirosService.prototype.baixarRetencao = function (cliCglMovimentacaoEmTerceirosId, retencao) {
        return this.http
            .put(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/cargill/movimentacaoEmTerceiros/baixarRetencao", { cliCglMovimentacaoEmTerceirosId: cliCglMovimentacaoEmTerceirosId, retencao: retencao })
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_6__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_7__["ErrorHandler"].handleError));
    };
    MovimentacaoEmTerceirosService.prototype.removeMultiple = function (items) {
        return this.http
            .put(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/" + this.pathModel + "/removeMultiple", items)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_6__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_7__["ErrorHandler"].handleError));
    };
    MovimentacaoEmTerceirosService.prototype.hasNotaCobertura = function (cliCglMovimentacaoEmTerceirosId) {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].specifics_service_url + "/api/v1/" + this.pathModel + "/hasNotaCobertura/" + cliCglMovimentacaoEmTerceirosId)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_6__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_7__["ErrorHandler"].handleError));
    };
    MovimentacaoEmTerceirosService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] }
    ]; };
    MovimentacaoEmTerceirosService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
            providedIn: "root"
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"]])
    ], MovimentacaoEmTerceirosService);
    return MovimentacaoEmTerceirosService;
}(app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_2__["SpecificsBaseService"]));



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-cargill-movimentos-movimentacao-em-terceiros-movimentacao-em-terceiros-module.js.map