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

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-altera-porto-de-origem-destino/due-terceiros-altera-porto-de-origem-destino.component.html":
/*!**********************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-altera-porto-de-origem-destino/due-terceiros-altera-porto-de-origem-destino.component.html ***!
  \**********************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"modal fade\" id=\"due-terceiros-altera-porto-de-origem-destino-dialog\" tabindex=\"-1\" role=\"dialog\"\n    data-backdrop=\"static\">\n    <div class=\"modal-dialog\">\n        <div class=\"modal-content\">\n            <div class=\"modal-header\">\n                <h6 class=\"modal-title\">{{ 'titles.dadosDosPortos' | translate }}</h6>\n            </div>\n            <form class=\"form\" #formDadosDosPortos=\"ngForm\">\n                <div class=\"modal-body\">\n                    <ng-container>\n                        <app-validacoes [formErrorId]=\"'formDadosDosPortos'\"></app-validacoes>\n                        <div class=\"row\">\n                            <div class=\"col-lg-6 col-md-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"tipoOperacao\" class=\"required\">{{ 'labels.tipoDeOperacao' |\n                                        translate}}</label>\n                                    <select class=\"form-control form-control-sm\" id=\"tipoOperacao\" name=\"tipoOperacao\"\n                                        [(ngModel)]=\"dataPortos.tipoOperacao\" (ngModelChange)=\"onChangeTipoOperacao()\"\n                                        required>\n                                        <option value=\"\">{{ 'labels.selecione' | translate }}</option>\n                                        <option *ngFor=\"let item of tiposOperacoes\" value=\"{{ item.tipoOperacaoId }}\">{{\n                                            item.descrTipoOperacao }}</option>\n                                    </select>\n                                </div>\n                            </div>\n                            <div class=\"col-lg-6 col-md-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label [ngClass]=\"{'required':obrigaTipoMov}\">&nbsp;</label>\n                                    <br />\n                                    <div class=\"form-check-inline\">\n                                        <div class=\"custom-control custom-radio\">\n                                            <input type=\"radio\" name=\"tipoMov\" id=\"tipoMovC\"\n                                                [attr.disabled]=\"!obrigaTipoMov ? '' : null\"\n                                                class=\"custom-control-input radio-dark-gray\" value=\"C\"\n                                                (change)=\"trataTipoMov()\" [(ngModel)]=\"dataPortos.tipoMov\"\n                                                [required]=\"obrigaTipoMov\" />\n                                            <label for=\"tipoMovC\" class=\"custom-control-label\">{{ 'labels.carga' |\n                                                translate\n                                                }}</label>\n                                        </div>\n                                    </div>\n                                    <div class=\"form-check-inline\">\n                                        <div class=\"custom-control custom-radio\">\n                                            <input type=\"radio\" name=\"tipoMov\" id=\"tipoMovD\"\n                                                [attr.disabled]=\"!obrigaTipoMov ? '' : null\"\n                                                class=\"custom-control-input radio-dark-gray\" value=\"D\"\n                                                (change)=\"trataTipoMov()\" [(ngModel)]=\"dataPortos.tipoMov\" />\n                                            <label for=\"tipoMovD\" class=\"custom-control-label\">{{ 'labels.descarga'\n                                                | translate\n                                                }}</label>\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-6 col-md-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"codPortoOri\"> {{\n                                        'labels.portoOrigem' | translate}} </label>\n                                    <app-combo-padrao id=\"codPortoOri\" name=\"codPortoOri\" tabela=\"Porto\"\n                                        descricao=\"DescrPorto\" chave=\"CodPorto\" [(ngModel)]=\"dataPortos.codPortoOri\">\n                                    </app-combo-padrao>\n                                </div>\n                            </div>\n                            <div class=\"col-lg-6 col-md-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"codPortoDest\">{{\n                                        'labels.portoDestino' | translate}}</label>\n                                    <app-combo-padrao id=\"codPortoDest\" name=\"codPortoDest\" tabela=\"Porto\"\n                                        descricao=\"DescrPorto\" chave=\"CodPorto\" [(ngModel)]=\"dataPortos.codPortoDest\">\n                                    </app-combo-padrao>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-6\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"codPortoDest\">{{ 'labels.regCEMercante' | translate}}</label>\n                                    <select class=\"form-control form-control-sm\" id=\"regCEMercante\" name=\"regCEMercante\"\n                                        [(ngModel)]=\"dataPortos.regCeMercante\">\n                                        <option value=\"\">{{ 'labels.selecione' | translate }}</option>\n                                        <option value=\"{{ item.ceMercanteId }}\"\n                                            *ngFor=\"let item of service.ceMercanteItemList\">\n                                            {{ item.nrCeMercante }}</option>\n                                    </select>\n                                </div>\n                            </div>\n                            <div class=\"col-lg-6 col-md-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"codEnquadramento\"> {{\n                                        'labels.codEnquadramento' | translate}} </label>\n                                    <app-combo-padrao id=\"codEnquadramento\" name=\"codEnquadramento\"\n                                        tabela=\"Enquadramento\" descricao=\"DescrEnquadramento\" chave=\"CodEnquadramento\"\n                                        [(ngModel)]=\"dataPortos.codEnquadramento\">\n                                    </app-combo-padrao>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\" *ngIf=\"habilitaCodigoACItemAC\">\n                            <div class=\"col-lg-4 col-md-8 col-sm-10\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"codigoAC\" [class.required]=\"habilitaCodigoACItemAC\">{{'labels.codigoAC'\n                                        |\n                                        translate}}</label>\n                                    <input type=\"text\" id=\"codigoAC\" name=\"codigoAC\"\n                                        class=\"form-control form-control-sm\" maxlength=\"11\" minlength=\"11\"\n                                        [required]=\"habilitaCodigoACItemAC\" [(ngModel)]=\"dataPortos.codigoAC\">\n                                </div>\n                            </div>\n                            <div class=\"col-lg-2 col-md-2 col-sm-2\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"itemAC\" [class.required]=\"habilitaCodigoACItemAC\">{{'labels.item' |\n                                        translate}}</label>\n                                    <input type=\"text\" id=\"itemAC\" name=\"item\" class=\"form-control form-control-sm\"\n                                        maxlength=\"1\" maxlength=\"1\" [required]=\"habilitaCodigoACItemAC\"\n                                        [(ngModel)]=\"dataPortos.itemAC\">\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-md-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"item_observ\">{{'labels.observacoes' | translate}}</label>\n                                    <input type=\"text\" id=\"item_observ\" name=\"item_observ\"\n                                        class=\"form-control form-control-sm\" maxlength=\"70\"\n                                        [(ngModel)]=\"dataPortos.observ\">\n                                </div>\n                            </div>\n                        </div>\n                    </ng-container>\n                </div>\n                <div class=\"modal-footer\">\n                    <button class=\"btn btn-success mr-1\" type=\"button\" (click)=\"onSubmit(formDadosDosPortos)\">{{\n                        'buttons.salvar' |\n                        translate }}\n                    </button>\n                    <button class=\"btn btn-default\" type=\"button\" data-dismiss=\"modal\" (click)=\"onCancelar()\">\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/cotriguacu/movimentos/due-terceiros/due-terceiros-consulta-nfs-referenciadas/due-terceiros-consulta-nfs-referenciadas.component.html":
/*!**************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-consulta-nfs-referenciadas/due-terceiros-consulta-nfs-referenciadas.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=\"due-terceiros-consulta-nfs-referenciadas-dialog\" tabindex=\"-1\" role=\"dialog\"\r\n    data-backdrop=\"static\">\r\n    <div class=\"modal-dialog modal-lg\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{ 'titles.notasFiscaisReferenciadas' | translate }}</h6>\r\n                <button type=\"button\" class=\"close\" aria-label=\"Close\" data-dismiss=\"modal\">\r\n                    <span aria-hidden=\"true\">&times;</span>\r\n                </button>\r\n            </div>\r\n            <form class=\"form\" #formConsNfsReferenciadas=\"ngForm\">\r\n                <div class=\"modal-body\">\r\n                    <ng-container>\r\n                        <app-validacoes [formErrorId]=\"'formConsNfsReferenciadas'\"></app-validacoes>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-12\">\r\n                                <div class=\"table-responsive\" *ngIf=\"showTable\">\r\n                                    <table class=\"table table-striped table-bordered table-hover nowrap table-sm\">\r\n                                        <thead>\r\n                                            <tr>\r\n                                                <th>{{ 'labels.nfe' | translate}}</th>\r\n                                                <th>{{ 'labels.chaveNFE' | translate}}</th>\r\n                                                <th style=\"white-space: nowrap; text-align: right;\">{{\r\n                                                    'labels.kilos' | translate}}</th>\r\n                                            </tr>\r\n                                        </thead>\r\n                                        <tbody>\r\n                                            <tr *ngFor=\"let val of dados | removeExcluidos\" (click)=\"selected(val)\"\r\n                                                (dblclick)=\"onDbClick(val)\"\r\n                                                [ngClass]=\"{'info': dataNfsReferenciadas.nfe === val.nfe }\">\r\n                                                <td style=\"white-space: nowrap;\">{{ val?.nfe }}</td>\r\n                                                <td style=\"white-space: nowrap;\">{{ val?.chaveNfe }}</td>\r\n                                                <td style=\"text-align: right;\">{{ val?.kilos | formatCurrency }}</td>\r\n\r\n                                            </tr>\r\n                                            <tr *ngIf=\"!hasDados\">\r\n                                                <th colspan=\"5\" style=\"text-align: center\">\r\n                                                    {{ \"messages.nenhumRegistroEncontrado\" | translate }}\r\n                                                </th>\r\n                                            </tr>\r\n                                        </tbody>\r\n                                    </table>\r\n                                </div>\r\n\r\n                                <div class=\"tab-content top\" *ngIf=\"!showTable\">\r\n                                    <div class=\"tab-pane active show\" id=\"importadores\">\r\n                                        <div class=\"row\">\r\n                                            <div class=\"col-lg-3\">\r\n                                                <div class=\"form-group form-group-sm\">\r\n                                                    <label for=\"nfe\">{{'labels.nfe' |\r\n                                                        translate}}</label>\r\n                                                    <input type=\"text\" id=\"nfe\" name=\"nfe\"\r\n                                                        class=\"form-control form-control-sm\" [disabled]=\"true\"\r\n                                                        value=\"{{ dataNfsReferenciadas.nfe }}\">\r\n                                                </div>\r\n                                            </div>\r\n                                            <div class=\"col-lg-6\">\r\n                                                <div class=\"form-group form-group-sm\">\r\n                                                    <label for=\"chaveNFE\">{{'labels.chaveNFE' |\r\n                                                        translate}}</label>\r\n                                                    <input type=\"text\" id=\"chaveNFE\" name=\"chaveNFE\"\r\n                                                        class=\"form-control form-control-sm\" [disabled]=\"true\"\r\n                                                        value=\"{{ dataNfsReferenciadas.chaveNfe }}\">\r\n                                                </div>\r\n                                            </div>\r\n                                            <div class=\"col-lg-3\">\r\n                                                <div class=\"form-group form-group-sm\">\r\n                                                    <label for=\"kilos\" class=\"required\">{{'labels.kilos' |\r\n                                                        translate}}</label>\r\n                                                    <input id=\"kilos\" name=\"kilos\" type=\"text\" [disabled]=\"false\"\r\n                                                        currencyMask required\r\n                                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\"\r\n                                                        [(ngModel)]=\"dataNfsReferenciadas.kilos\" maxlength=\"15\"\r\n                                                        class=\"form-control form-control-sm\">\r\n                                                </div>\r\n                                            </div>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n\r\n                            </div>\r\n                        </div>\r\n                    </ng-container>\r\n                </div>\r\n                <div class=\"row d-flex justify-content-end pb-3 pr-3\">\r\n                    <div class=\"col-lg-3 col-md-4 col-sm-12\" *ngIf=\"showTable\">\r\n                        <button [disabled]=\"!dataNfsReferenciadas?.regNFExport || !showTable\" type=\"button\"\r\n                            class=\"btn btn-success btn-block mr-1\" (click)=\"edit()\">\r\n                            <i class=\"fa fa-pencil\"></i> {{ 'buttons.editar' | translate }}\r\n                        </button>\r\n                    </div>\r\n                    <div class=\"col-lg-3 col-md-4 col-sm-12\" *ngIf=\"showTable\">\r\n                        <button type=\"button\" class=\"btn btn-block btn-default\" (click)=\"sair()\">\r\n                            {{ 'buttons.sair' | translate }}\r\n                        </button>\r\n                    </div>\r\n                    <div class=\"col-lg-3 col-md-4 col-sm-12\" *ngIf=\"!showTable\">\r\n                        <button class=\"btn btn-success btn-block mr-1\" type=\"button\"\r\n                            (click)=\"onSubmit(formConsNfsReferenciadas)\">\r\n                            {{ 'buttons.salvar' | translate }}\r\n                        </button>\r\n                    </div>\r\n                    <div class=\"col-lg-3 col-md-4 col-sm-12\" *ngIf=\"!showTable\">\r\n                        <button type=\"button\" class=\"btn btn-block btn-default\" (click)=\"cancelar()\">\r\n                            {{ 'buttons.cancelar' | translate }}\r\n                        </button>\r\n                    </div>\r\n                </div>\r\n            </form>\r\n        </div>\r\n    </div>\r\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-exportador/due-terceiros-exportador.component.html":
/*!******************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-exportador/due-terceiros-exportador.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=\"container-buttons\">\n    <div class=\"btn-group\">\n        <app-menu-button title=\"{{ 'buttons.voltar' | translate }}\" [icon]=\"'icon-arrow-left'\" (click)=\"back()\"\n            *ngIf=\"!showTable\">\n        </app-menu-button>\n        <app-menu-button title=\"{{ 'buttons.novo' | translate }}\" [disabled]=\"isDetail\" (click)=\"new()\"\n            [icon]=\"'icon-plus'\" *ngIf=\"showTable\">\n        </app-menu-button>\n        <ng-container *ngIf=\"showTable\">\n            <app-menu-button title=\"{{ 'buttons.visualizar' | translate }}\"\n                [disabled]=\"!dataExportador?.cliContriNFExportacaoId || !showTable\" (click)=\"show()\"\n                [icon]=\"'icon-eye'\">\n            </app-menu-button>\n        </ng-container>\n        <app-menu-button title=\"{{ 'buttons.editar' | translate }}\" [icon]=\"'icon-pencil'\"\n            [disabled]=\"!dataExportador?.cliContriNFExportacaoId || isDetail || (!showTable && !detail)\" (click)=\"edit()\">\n        </app-menu-button>\n        <app-menu-button title=\"{{ 'buttons.excluir' | translate }}\" [icon]=\"'icon-close'\"\n            [disabled]=\"!dataExportador?.cliContriNFExportacaoId || isDetail || !showTable\"\n            (click)=\"delete()\">\n        </app-menu-button>\n    </div>\n</div>\n<table class=\"table table-striped table-hover\" *ngIf=\"showTable\">\n    <tr>\n        <th class=\"text-right\"> {{\"labels.registro\" | translate }} </th>\n        <th> {{\"labels.cliente\" | translate}} </th>\n        <th> {{\"labels.produto\" | translate}} </th>\n        <th> {{\"labels.nrReDue\" | translate}} </th>\n        <th> {{\"labels.nota\" | translate}} </th>\n        <th> {{\"labels.data\" | translate}} </th>\n        <th> {{\"labels.modelo\" | translate}} </th>\n        <th> {{\"labels.serie\" | translate}} </th>\n        <th class=\"text-right\"> {{\"labels.quantidade\" | translate}} </th>\n        <th class=\"text-right\"> {{\"labels.preco\" | translate}} </th>\n        <th class=\"text-right\"> {{\"labels.total\" | translate}} </th>\n    </tr>\n    <tbody>\n        <tr *ngFor=\"let val of service.data.dueTerceirosExportador | removeExcluidos\" (click)=\"selected(val)\"\n            [ngClass]=\"{'info': dataExportador.cliContriNFExportacaoId === val.cliContriNFExportacaoId }\">\n            <td class=\"text-right\"> {{ val.cliContriNFExportacaoId }}</td>\n            <td> {{ val.cliente }} </td>\n            <td> {{ val.produto }}</td>\n            <td> {{ val.numRE }}</td>\n            <td> {{ val.nota }}</td>\n            <td> {{ val.dtEmissao | date: 'dd/MM/yyyy' }} </td>\n            <td> {{ val.modeloNotaId }}</td>\n            <td> {{ val.serieNotaId }}</td>\n            <td class=\"text-right\">{{ val.quantid | formatCurrency: 0 }}</td>\n            <td class=\"text-right\"> {{ val.preco | formatCurrency: 2 }}</td>\n            <td class=\"text-right\"> {{ val.vlTotal | formatCurrency: 2 }}</td>\n        </tr>\n        <tr *ngIf=\"!service.data.dueTerceirosExportador || service.data.dueTerceirosExportador.length === 0\">\n            <th colspan=\"11\">\n                {{'messages.nenhumRegistroEncontrado' | translate }}\n            </th>\n        </tr>\n    </tbody>\n</table>\n<form class=\"form\" #formItem=\"ngForm\" (ngSubmit)=\"onSubmit(formItem)\" *ngIf=\"!showTable\" autocomplete=\"off\">\n    <app-validacoes></app-validacoes>\n    <div class=\"tab-content top\">\n        <div class=\"tab-pane active show\" id=\"outrasOperacoes\">\n            <div class=\"row\">\n                <div class=\"col-lg-6\">\n                    <div class=\"form-group form-group-sm\">\n                        <app-pesquisa-destinatario id=\"cliente\" name=\"cliente\" label=\"cliente\"\n                            modalTitle=\"pesquisaDeCliente\" [(ngModel)]=\"dataExportador.destinatarioIdCliente\"\n                            tipoDestinatario=\"C\" showCgcCpf=\"false\" showInscricao=\"false\"\n                            [inSelected]=\"dataExportador.cliente\" [disabled]=\"true\"\n                            (outSelected)=\"dataExportador.cliente = $event\">\n                        </app-pesquisa-destinatario>\n                    </div>\n                </div>\n            </div>\n            <div class=\"row\">\n                <div class=\"col-lg-6\">\n                    <div class=\"form-group form-group-sm\">\n                        <app-pesquisa-material id=\"produto\" name=\"produto\" label=\"produto\"\n                            modalTitle=\"pesquisaDeProduto\" [(ngModel)]=\"dataExportador.materialId\"\n                            [inSelected]=\"dataExportador.material\" [disabled]=\"true\"\n                            (outSelected)=\"dataExportador.material =$event\">\n                        </app-pesquisa-material>\n\n                    </div>\n                </div>\n            </div>\n            <div class=\"row\">\n                <div class=\"col-lg-6\">\n                    <div class=\"form-group form-group-sm\">\n                        <app-pesquisa-destinatario id=\"emitente\" name=\"emitente\" label=\"emitente\"\n                            modalTitle=\"pesquisaDeEmitente\" [(ngModel)]=\"dataExportador.destinatarioIdEmitente\"\n                            tipoDestinatario=\"C\" showCgcCpf=\"false\" showInscricao=\"false\"\n                            [inSelected]=\"dataExportador.cliente\" [disabled]=\"true\"\n                            (outSelected)=\"dataExportador.cliente = $event\">\n                        </app-pesquisa-destinatario>\n                    </div>\n                </div>\n            </div>\n            <div class=\"row\">\n                <div class=\"col-lg-2 col-md-12\">\n                    <div class=\"form-group form-group-sm\">\n                        <label for=\"numRE\">{{'labels.regRE' | translate}}</label>\n                        <input id=\"numRE\" name=\"numRE\" [(ngModel)]=\"dataExportador.numRE\" [disabled]=\"true\"\n                            maxlength=\"15\" class=\"form-control form-control-sm\" type=\"text\">\n                    </div>\n                </div>\n            </div>\n            <div class=\"row mt-2\">\n                <div class=\"col-lg-6 col-md-12\">\n                    <fieldset>\n                        <legend>{{ \"labels.dadosDaNotaFiscalDeExportacao\" | translate }}</legend>\n                        <div class=\"form-group form-group-sm\">\n                            <label for=\"chaveNFE\">{{'labels.chaveNFE'\n                                | translate}}</label>\n                            <div class=\"input-group\">\n                                <input id=\"chaveNFE\" name=\"chaveNFE\" [(ngModel)]=\"dataExportador.chaveNFe\"\n                                    maxlength=\"54\" mask=\"0000.0000.0000.0000.0000.0000.0000.0000.0000.0000.0000\"\n                                    (blur)=\"validaChaveNfe()\" class=\"form-control form-control-sm\" type=\"text\"\n                                    [disabled]=\"detail\">\n                                <span class=\"input-group-btn\">\n                                    <button type=\"button\" class=\"btn btn-success btn-sm\" [disabled]=\"detail\"\n                                        (click)=\"importarDanfe(dataExportador.chaveNFe)\" title=\"Importa DANFE\"> <i\n                                            class=\"fa fa-search\"></i>\n                                    </button>\n                                </span>\n                            </div>\n                        </div>\n                    </fieldset>\n                </div>\n            </div>\n        </div>\n        <div class=\"row\" *ngIf=\"!isDetail && !detail\">\n            <div class=\"col-lg-6\">\n                <div class=\"form-group form-group-sm\">\n                    <button class=\"btn btn-success mr-1\" type=\"submit\" *ngIf=\"showComponents\"\n                        [disabled]=\"isDetail || detail\">{{\n                        'buttons.salvar' | translate }}\n                    </button>\n                </div>\n            </div>\n        </div>\n    </div>\n</form>\n");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-filter/due-terceiros-filter.component.html":
/*!**********************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-filter/due-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=\"due-terceiros-filter-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"uni-modal-dialog-md-40\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{title}}</h6>\r\n            </div>\r\n            <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\" *ngIf=\"!!service.filter\">\r\n                <app-validacoes></app-validacoes>\r\n                <div class=\"modal-body\">\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-6\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"emissaoDe\" class=\"required\">\r\n                                    {{\"labels.emissaoDe\" | translate }}\r\n                                </label>\r\n                                <app-data id=\"emissaoDe\" name=\"emissaoDe\" required=\"true\" [disabled]=\"false\"\r\n                                    [(ngModel)]=\"service.filter.dataI\"\r\n                                    (executa)=\"validaDatas()\">\r\n                                </app-data>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col-lg-6\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <label for=\"ate\" class=\"required\">\r\n                                    {{\"labels.ate\" | translate}}\r\n                                </label>\r\n                                <app-data id=\"ate\" name=\"ate\" required=\"true\" [disabled]=\"false\"\r\n                                    [(ngModel)]=\"service.filter.dataF\"\r\n                                    (executa)=\"validaDatas()\">\r\n                                </app-data>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-md-12 col-sm-12\">\r\n                            <div class=\"form-group form-group-sm\">\r\n                                <app-pesquisa-destinatario id=\"navio\" name=\"navio\" label=\"navio\"\r\n                                    modalTitle=\"pesquisaDeCliente\" [(ngModel)]=\"service.filter.destinatarioIdNavio\"\r\n                                    [inSelected]=\"service.filter.navio\"\r\n                                    (outSelected)=\"service.filter.navio = $event\"\r\n                                    tipoDestinatario=\"N\" showCgcCpf=\"false\"\r\n                                    showInscricao=\"false\">\r\n                                </app-pesquisa-destinatario>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n\r\n                    <div class=\"row\">\r\n                        <div class=\"col-lg-6 col-md-6\">\r\n                            <label for=\"situacao\">{{'labels.situacao' |\r\n                                translate}}</label>\r\n                            <select class=\"form-control form-control-sm\" name=\"tipoMov\" id=\"situacao\"\r\n                                [(ngModel)]=\"service.filter.situacao\">\r\n                                <option value=\"0\">{{'labels.todos' | translate}}</option>\r\n                                <option value=\"1\">{{'labels.aberto' | translate}}</option>\r\n                                <option value=\"3\">{{'labels.encerrado' | translate}}</option>\r\n                            </select>\r\n                        </div>\r\n                    </div>\r\n\r\n                </div>\r\n                <div class=\"modal-footer\">\r\n                    <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.pesquisar' | translate }}\r\n                    </button>\r\n                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">{{ 'buttons.sair' | translate\r\n                        }}</button>\r\n                </div>\r\n            </form>\r\n        </div>\r\n    </div>\r\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-form/due-terceiros-form.component.html":
/*!******************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-form/due-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\"\r\n    [itemData]=\"service.data.cliCotriDueTerceirosId\" [sisFormularioId]=\"constantes.sisFormularioId\">\r\n</app-menu-command-bar>\r\n\r\n<div class=\"row\">\r\n    <div class=\"col-lg-12\">\r\n        <div class=\"section-comand-bar\">\r\n            <div class=\"tab-content top\">\r\n                <!-- ABAS -->\r\n                <div class=\"tab-pane active show\">\r\n                    <div class=\"clearfix\">\r\n                        <ul class=\"nav nav-tabs \">\r\n                            <li class=\"nav-item\">\r\n                                <a class=\"nav-link active show\" data-toggle=\"tab\"\r\n                                    (click)=\"validacoesQuandoAbasClicadas('#dados')\" href=\"#dados\">{{\"labels.dados\" |\r\n                                    translate}}</a>\r\n                            </li>\r\n                            <li class=\"nav-item\">\r\n                                <a class=\"nav-link\" data-toggle=\"tab\" (click)=\"validacoesQuandoAbasClicadas('#itens')\"\r\n                                    href=\"#itens\">{{\"labels.itens\" |\r\n                                    translate}}</a>\r\n                            </li>\r\n                            <li class=\"nav-item\" *ngIf=\"outrasOperProg\">\r\n                                <a class=\"nav-link\" data-toggle=\"tab\"\r\n                                    (click)=\"validacoesQuandoAbasClicadas('#outrasOperacoes')\"\r\n                                    href=\"#outrasOperacoes\">{{\"labels.outrasOperacoes\"\r\n                                    | translate}}</a>\r\n                            </li>\r\n                            <li class=\"nav-item\">\r\n                                <a class=\"nav-link\" data-toggle=\"tab\" (click)=\"validacoesQuandoAbasClicadas('#status')\"\r\n                                    href=\"#status\">{{\"labels.status\" |\r\n                                    translate}}</a>\r\n                            </li>\r\n                            <li class=\"nav-item\">\r\n                                <a class=\"nav-link\" data-toggle=\"tab\"\r\n                                    (click)=\"validacoesQuandoAbasClicadas('#_observacoes')\"\r\n                                    href=\"#_observacoes\">{{\"labels.observacoes\" |\r\n                                    translate}}</a>\r\n                            </li>\r\n                            <li class=\"nav-item\" *ngIf=\"service.exibeAbaImportadores\">\r\n                                <a class=\"nav-link\" data-toggle=\"tab\"\r\n                                    (click)=\"validacoesQuandoAbasClicadas('#importadores')\"\r\n                                    href=\"#importadores\">{{\"labels.importadores\" |\r\n                                    translate}}</a>\r\n                            </li>\r\n                            <li class=\"nav-item\" *ngIf=\"funcoesService.isDetail(actionForm)\">\r\n                                <a class=\"nav-link\" data-toggle=\"tab\"\r\n                                    (click)=\"validacoesQuandoAbasClicadas('#exportador')\"\r\n                                    href=\"#exportador\">{{\"labels.exportador\" |\r\n                                    translate}}</a>\r\n                            </li>\r\n                        </ul>\r\n                    </div>\r\n                    <div class=\"tab-content top\">\r\n                        <div class=\"tab-pane active show pl-0 pr-0 pt-0\" id=\"dados\">\r\n                            <div class=\"card-body widget-body pt-0\">\r\n                                <form class=\"form\" #formDados=\"ngForm\" autocomplete=\"off\">\r\n                                    <app-validacoes [formErrorId]=\"'formDados'\"></app-validacoes>\r\n                                    <div class=\"row\">\r\n                                        <div class=\"card-body\">\r\n                                            <div class=\"row\">\r\n                                                <div class=\"col-lg-3\">\r\n                                                    <div class=\"form-group form-group-sm\">\r\n                                                        <label>{{'labels.numero' | translate}}</label>\r\n                                                        <input type=\"text\" name=\"numero\"\r\n                                                            class=\"form-control form-control-sm\" value=\"{{numero}}\"\r\n                                                            disabled>\r\n                                                    </div>\r\n                                                </div>\r\n                                                <div class=\"col-lg-3 col-md-3 col-sm-3\">\r\n                                                    <div class=\"form-group form-group-sm\">\r\n                                                        <label for=\"{{ labelEscalaNavio }}\">{{ labelEscalaNavio\r\n                                                            }}</label>\r\n                                                        <input id=\"{{ labelEscalaNavio }}\" name=\"{{ labelEscalaNavio }}\"\r\n                                                            [(ngModel)]=\"service.data.escalaNavio\" maxlength=\"16\"\r\n                                                            class=\"form-control form-control-sm\" type=\"text\"\r\n                                                            [mask]=\"'000.000.000.000'\"\r\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                                    </div>\r\n                                                </div>\r\n                                            </div>\r\n                                            <div class=\"row\">\r\n                                                <div class=\"col-lg-8 col-md-8 col-sm-8\">\r\n                                                    <div class=\"form-group form-group-sm\">\r\n                                                        <app-pesquisa-destinatario id=\"navio\" name=\"navio\" label=\"navio\"\r\n                                                            required=\"true\" modalTitle=\"pesquisaDeNavio\"\r\n                                                            [(ngModel)]=\"service.data.destinatarioIdNavio\"\r\n                                                            tipoDestinatario=\"N\" showCgcCpf=\"false\"\r\n                                                            showInscricao=\"false\" [inSelected]=\"service.data.navio\"\r\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                                            (outSelected)=\"service.data.navio = $event\"\r\n                                                            (outModel)=\"outNavio($event)\">\r\n                                                        </app-pesquisa-destinatario>\r\n                                                    </div>\r\n                                                </div>\r\n                                            </div>\r\n                                            <div class=\"row\">\r\n                                                <div class=\"col-lg-8 col-md-8 col-sm-8\">\r\n                                                    <div class=\"form-group form-group-sm\">\r\n                                                        <app-pesquisa-destinatario id=\"agencia\" name=\"agencia\"\r\n                                                            tipoDestinatario=\"G\" modalTitle=\"pesquisaDeAgencia\"\r\n                                                            label=\"agencia\"\r\n                                                            [(ngModel)]=\"service.data.destinatarioIdAgencia\"\r\n                                                            showInscricao=\"false\" showCgcCpf=\"false\"\r\n                                                            [inSelected]=\"service.data.agencia\"\r\n                                                            (outSelected)=\"service.data.agencia = $event\"\r\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                                        </app-pesquisa-destinatario>\r\n                                                    </div>\r\n                                                </div>\r\n                                            </div>\r\n                                            <div class=\"row\">\r\n                                                <div class=\"col-lg-6 col-md-6 col-sm-6\">\r\n                                                    <div class=\"form-group \">\r\n                                                        <label for=\"contato\">{{'labels.contato' |\r\n                                                            translate}}</label>\r\n                                                        <input type=\"text\" id=\"contato\" name=\"contato\"\r\n                                                            class=\"form-control form-control-sm\"\r\n                                                            [(ngModel)]=\"service.data.contato\" maxlength=\"30\"\r\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                                    </div>\r\n                                                </div>\r\n                                                <div class=\"col-lg-2\">\r\n                                                    <div class=\"form-group form-group-sm\">\r\n                                                        <label for=\"ddd\">{{\r\n                                                            'labels.ddd' | translate}}</label>\r\n                                                        <input id=\"ddd\" type=\"text\" name=\"ddd\"\r\n                                                            class=\"form-control form-control-sm\"\r\n                                                            value=\"{{ service.data?.agencia?.ddd}}\" [disabled]=\"true\">\r\n                                                    </div>\r\n                                                </div>\r\n                                                <div class=\"col-lg-4\">\r\n                                                    <div class=\"form-group form-group-sm\">\r\n                                                        <label for=\"telefone\">{{\r\n                                                            'labels.telefone' | translate}}</label>\r\n                                                        <input id=\"telefone\" type=\"text\" name=\"telefone\"\r\n                                                            class=\"form-control form-control-sm\"\r\n                                                            value=\"{{ service.data?.agencia?.telefone1}}\"\r\n                                                            [disabled]=\"true\">\r\n                                                    </div>\r\n                                                </div>\r\n                                            </div>\r\n                                            <div class=\"row\">\r\n                                                <div class=\"col-lg-6 col-md-6 col-sm-6\">\r\n                                                    <div class=\"form-group form-group-sm\">\r\n                                                        <label for=\"pier\">{{ 'labels.pier' | translate}}</label>\r\n                                                        <app-combo-padrao id=\"pier\" name=\"pier\" tabela=\"Pier\"\r\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                                            descricao=\"DescrPier\" chave=\"CodPier\"\r\n                                                            [(ngModel)]=\"service.data.pierId\"\r\n                                                            (change)=\"trataPier(service.data.pierId)\">\r\n                                                        </app-combo-padrao>\r\n                                                    </div>\r\n                                                </div>\r\n                                            </div>\r\n                                            <div class=\"row\">\r\n                                                <div class=\"col-lg-8 col-md-8 col-sm-8\">\r\n                                                    <div class=\"form-group form-group-sm\">\r\n                                                        <app-pesquisa-destinatario id=\"operadorPortuario\"\r\n                                                            name=\"operadorPortuario\" tipoDestinatario=\"F\"\r\n                                                            modalTitle=\"pesquisaDeOperadorPortuario\"\r\n                                                            label=\"operadorPortuario\"\r\n                                                            [(ngModel)]=\"service.data.codOperPortuario\"\r\n                                                            showInscricao=\"false\" showCgcCpf=\"false\"\r\n                                                            [inSelected]=\"service.data.operadorPortuario\"\r\n                                                            (outSelected)=\"service.data.operadorPortuario = $event\"\r\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                                        </app-pesquisa-destinatario>\r\n                                                    </div>\r\n                                                </div>\r\n                                            </div>\r\n                                            <div class=\"row\">\r\n                                                <div class=\"col-lg-8 col-md-8 col-sm-8\">\r\n                                                    <div class=\"form-group\">\r\n                                                        <label for=\"observacoes\">{{'labels.observacoes' |\r\n                                                            translate}}</label>\r\n                                                        <input type=\"text\" id=\"observacoes\" name=\"observacoes\"\r\n                                                            class=\"form-control form-control-sm\"\r\n                                                            [(ngModel)]=\"service.data.observ\" maxlength=\"70\"\r\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                                    </div>\r\n                                                </div>\r\n                                            </div>\r\n                                            <div class=\"row\">\r\n                                                <div class=\"col-lg-3 col-md-3 col-sm-8\">\r\n                                                    <div class=\"form-group\">\r\n                                                        <label for=\"progOpenPort\">{{'labels.progOpenPort' |\r\n                                                            translate}}</label>\r\n                                                        <input type=\"text\" id=\"progOpenPort\" name=\"progOpenPort\"\r\n                                                            class=\"form-control form-control-sm\"\r\n                                                            [(ngModel)]=\"service.data.codOPenPort\" mask=\"999999999\"\r\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                                    </div>\r\n                                                </div>\r\n                                                <div class=\"col-lg-4 col-md-4 col-sm-8\">\r\n                                                    <div class=\"form-group form-group-sm\">\r\n                                                        <label for=\"recintoAduaneiro\">{{ \"labels.recintoAduaneiro\" |\r\n                                                            translate\r\n                                                            }}</label>\r\n                                                        <select class=\"form-control form-control-sm\"\r\n                                                            id=\"recintoAduaneiro\" name=\"recintoAduaneiro\"\r\n                                                            [(ngModel)]=\"service.data.recAduaneiro\"\r\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                                            <option *ngFor=\"let item of recintosAduaneiros\"\r\n                                                                value=\"{{ item.cliCotriRecintoAduaneiroId }}\">{{\r\n                                                                item.terminal\r\n                                                                }}\r\n                                                            </option>\r\n                                                        </select>\r\n                                                    </div>\r\n                                                </div>\r\n                                            </div>\r\n                                        </div>\r\n                                        <div class=\"card-body\">\r\n                                            <div class=\"row\">\r\n                                                <div class=\"col-lg-12 col-md-12 col-sm-12\">\r\n                                                    <app-card-container tituloCard=\"previsao\">\r\n                                                        <div class=\"col-lg-12 col-md-12 col-sm-12\">\r\n                                                            <div class=\"form-group form-group-sm\">\r\n                                                                <label for=\"chegada\" class=\"required\"> {{\r\n                                                                    'labels.chegada' | translate }}\r\n                                                                </label>\r\n                                                                <app-data-h-m id=\"chegada\" name=\"chegada\"\r\n                                                                    [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                                                    [(ngModel)]=\"service.data.dtPrograma\" required\r\n                                                                    (executa)=\"validaDtPrograma()\">\r\n                                                                </app-data-h-m>\r\n                                                            </div>\r\n                                                            <div class=\"form-group form-group-sm\">\r\n                                                                <label for=\"atracacao\"\r\n                                                                    [class.required]=\"service.obrDtAtrSaida\">\r\n                                                                    {{\r\n                                                                    'labels.atracacao' | translate }}\r\n                                                                </label>\r\n                                                                <app-data id=\"atracacao\" name=\"atracacao\"\r\n                                                                    [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                                                    [(ngModel)]=\"service.data.dtAtracacao\"\r\n                                                                    [required]=\"service.obrDtAtrSaida\"\r\n                                                                    (executa)=\"validaDtAtracacao()\">\r\n                                                                </app-data>\r\n                                                            </div>\r\n                                                            <div class=\"form-group form-group-sm\">\r\n                                                                <label for=\"saida\"\r\n                                                                    [class.required]=\"service.obrDtAtrSaida\"> {{\r\n                                                                    'labels.saida' | translate }}\r\n                                                                </label>\r\n                                                                <app-data id=\"saida\" name=\"saida\"\r\n                                                                    [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                                                    [(ngModel)]=\"service.data.dtSaida\"\r\n                                                                    [required]=\"service.obrDtAtrSaida\"\r\n                                                                    (executa)=\"validaDtSaida()\">\r\n                                                                </app-data>\r\n                                                            </div>\r\n                                                        </div>\r\n                                                    </app-card-container>\r\n                                                </div>\r\n                                            </div>\r\n                                            <div class=\"row\">\r\n                                                <div class=\"col-lg-12 col-md-12 col-sm-12\">\r\n                                                    <app-card-container tituloCard=\"calado\">\r\n                                                        <div class=\"col-lg-12 col-md-12 col-sm-12\">\r\n                                                            <div class=\"form-group form-group-sm\">\r\n                                                                <label for=\"caladoChegada\"> {{ 'labels.chegada' |\r\n                                                                    translate\r\n                                                                    }}\r\n                                                                </label>\r\n                                                                <input type=\"text\" id=\"caladoChegada\"\r\n                                                                    name=\"caladoChegada\"\r\n                                                                    class=\"form-control form-control-sm\" maxlength=\"5\"\r\n                                                                    [(ngModel)]=\"service.data.caladoChegada\"\r\n                                                                    currencyMask\r\n                                                                    [options]=\"funcoesService.optionCurrency(1)\"\r\n                                                                    [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                                                    (blur)=\"validaCaladoChegada()\">\r\n                                                            </div>\r\n                                                            <div class=\"form-group form-group-sm\">\r\n                                                                <label for=\"caladoSaida\"> {{ 'labels.saida' |\r\n                                                                    translate\r\n                                                                    }}\r\n                                                                </label>\r\n                                                                <input type=\"text\" id=\"caladoSaida\" name=\"caladoSaida\"\r\n                                                                    class=\"form-control form-control-sm\" maxlength=\"5\"\r\n                                                                    [(ngModel)]=\"service.data.caladoSaida\" currencyMask\r\n                                                                    [options]=\"funcoesService.optionCurrency(1)\"\r\n                                                                    [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                                                    (blur)=\"validaCaladoSaida()\">\r\n                                                            </div>\r\n                                                        </div>\r\n                                                    </app-card-container>\r\n                                                </div>\r\n                                            </div>\r\n                                        </div>\r\n                                    </div>\r\n                                </form>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"tab-pane pl-0 pr-0\" id=\"itens\">\r\n                            <app-due-terceiros-itens [isDetail]=\"funcoesService.isDetail(actionForm)\"\r\n                                [actionForm]=\"this.actionForm\" (selectedItem)=\"selectedItem($event)\"\r\n                                (response)=\"updateShowButtom($event)\"\r\n                                (titleBotaoAlteraPorto)=\"alteraTitleBotaoAlteraPorto(this.service.titleBotaoAlteraPorto)\"\r\n                                (exibirBtnImprimir)=\"exibirBotaoImprimir()\">\r\n                            </app-due-terceiros-itens>\r\n                        </div>\r\n                        <div class=\"tab-pane pl-0 pr-0\" id=\"outrasOperacoes\">\r\n                            <app-due-terceiros-outras-operacoes [isDetail]=\"funcoesService.isDetail(actionForm)\"\r\n                                [actionForm]=\"this.actionForm\" (response)=\"updateShowButtom($event)\">\r\n                            </app-due-terceiros-outras-operacoes>\r\n                        </div>\r\n                        <div class=\"tab-pane pl-0 pr-0\" id=\"status\">\r\n                            <app-due-terceiros-status [isDetail]=\"funcoesService.isDetail(actionForm)\"\r\n                                (response)=\"updateShowButtom($event)\">\r\n                            </app-due-terceiros-status>\r\n                        </div>\r\n                        <div class=\"tab-pane pl-0 pr-0\" id=\"_observacoes\">\r\n                            <app-due-terceiros-observacoes [actionForm]=\"this.actionForm\"\r\n                                (response)=\"updateShowButtom($event)\">\r\n                            </app-due-terceiros-observacoes>\r\n                        </div>\r\n                        <div class=\"tab-pane pl-0 pr-0\" id=\"importadores\">\r\n                            <app-due-terceiros-importadores [isDetail]=\"funcoesService.isDetail(actionForm)\"\r\n                                [itemSelecionado]=\"itemSelecionado\" (response)=\"updateShowButtom($event)\">\r\n                            </app-due-terceiros-importadores>\r\n                        </div>\r\n                        <div class=\"tab-pane pl-0 pr-0\" id=\"exportador\">\r\n                            <app-due-terceiros-exportador [isDetail]=\"funcoesService.isDetail(actionForm)\"\r\n                                (response)=\"updateShowButtom($event)\">\r\n                            </app-due-terceiros-exportador>\r\n                        </div>\r\n                        <div class=\"row\" *ngIf=\"showButton\">\r\n                            <div class=\"col-lg-8 col-md-8 col-sm-12\">\r\n                                <div class=\"form-group\">\r\n                                    <button class=\"btn btn-success mr-2\" type=\"button\" (click)=\"onSubmit(formDados)\"\r\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                        {{ 'buttons.gravar' | translate }}\r\n                                    </button>\r\n                                    <button class=\"btn btn-danger mr-2\" [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                        (click)=\"desfazer()\" type=\"button\">\r\n                                        {{ 'buttons.desfazer' | translate }}\r\n                                    </button>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n\r\n        <app-permissoes-rotina [constantes]=\"constantes\"></app-permissoes-rotina>\r\n        <app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>\r\n        <app-due-terceiros-altera-porto-de-origem-destino\r\n            (refreshItens)=\"refreshItens($event)\"></app-due-terceiros-altera-porto-de-origem-destino>\r\n        <app-due-terceiros-re-excedente (refreshItens)=\"refreshItens($event)\"></app-due-terceiros-re-excedente>\r\n        <app-due-terceiros-gerar-xml-due></app-due-terceiros-gerar-xml-due>\r\n        <app-due-terceiros-print-modal (outConfirma)=\"confirmaImpressao($event)\"></app-due-terceiros-print-modal>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-gerar-xml-due/due-terceiros-gerar-xml-due.component.html":
/*!************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-gerar-xml-due/due-terceiros-gerar-xml-due.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=\"due-terceiros-gerar-xml-due-dialog\" tabindex=\"-1\" role=\"dialog\"\r\n    data-backdrop=\"static\">\r\n    <div class=\"modal-dialog modal-lg\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{ 'titles.gerarXmlDUE' | translate }}</h6>\r\n                <button type=\"button\" class=\"close\" aria-label=\"Close\" data-dismiss=\"modal\">\r\n                    <span aria-hidden=\"true\">&times;</span>\r\n                </button>\r\n            </div>\r\n                <div class=\"modal-body\">\r\n                    <ng-container>\r\n                        <app-validacoes [formErrorId]=\"'formConsNfsReferenciadas'\"></app-validacoes>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-12\">\r\n                                <div class=\"table-responsive\">\r\n                                    <table class=\"table table-striped table-bordered table-hover nowrap table-sm\">\r\n                                        <thead>\r\n                                            <tr>\r\n                                                <th>{{ 'labels.cnpj' | translate}}</th>\r\n                                                <th>{{ 'labels.fantasia' | translate}}</th>\r\n                                                <th style=\"white-space: nowrap; text-align: right;\">{{\r\n                                                    'labels.quantidade' | translate}}</th>\r\n                                            </tr>\r\n                                        </thead>\r\n                                        <tbody>\r\n                                            <tr *ngFor=\"let val of dados | removeExcluidos\" (click)=\"selected(val)\"\r\n                                                [ngClass]=\"{'info': dataGerarXmlDue.cliCotriDueTerceirosItemId === val.cliCotriDueTerceirosItemId }\">\r\n                                                <td style=\"white-space: nowrap;\">{{ val?.cliente?.cgcCpf | mask: '99.999.999/9999-99'}}</td>\r\n                                                <td style=\"white-space: nowrap;\">{{ val?.cliente?.fantasia }}</td>\r\n                                                <td style=\"text-align: right;\">{{ val?.quantid | formatCurrency }}</td>\r\n\r\n                                            </tr>\r\n                                            <tr *ngIf=\"!hasDados\">\r\n                                                <th colspan=\"5\" style=\"text-align: center\">\r\n                                                    {{ \"messages.nenhumRegistroEncontrado\" | translate }}\r\n                                                </th>\r\n                                            </tr>\r\n                                        </tbody>\r\n                                    </table>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                    </ng-container>\r\n                </div>\r\n                <div class=\"row d-flex justify-content-end pb-3 pr-3\">\r\n                    <div class=\"col-lg-3 col-md-4 col-sm-12\">\r\n                        <button [disabled]=\"!dataGerarXmlDue?.cliCotriDueTerceirosItemId\" type=\"button\"\r\n                            class=\"btn btn-success btn-block mr-1\" (click)=\"gerarIndividual()\">\r\n                            <i class=\"fa fa-refresh\"></i> {{ 'buttons.gerarIndividual' | translate }}\r\n                        </button>\r\n                    </div>\r\n                    <div class=\"col-lg-3 col-md-4 col-sm-12\">\r\n                        <button [disabled]=\"!hasDados\" type=\"button\"\r\n                            class=\"btn btn-success btn-block mr-1\" (click)=\"gerarParaTodos()\">\r\n                            <i class=\"fa fa-refresh\"></i> {{ 'buttons.gerarParaTodos' | translate }}\r\n                        </button>\r\n                    </div>\r\n                    <div class=\"col-lg-3 col-md-4 col-sm-12\">\r\n                        <button type=\"button\" class=\"btn btn-block btn-default\" (click)=\"cancelar()\">\r\n                            {{ 'buttons.cancelar' | translate }}\r\n                        </button>\r\n                    </div>\r\n                </div>\r\n        </div>\r\n    </div>\r\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-importadores/due-terceiros-importadores.component.html":
/*!**********************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-importadores/due-terceiros-importadores.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=\"container-buttons\">\n    <div class=\"btn-group\">\n        <app-menu-button title=\"{{ 'buttons.voltar' | translate }}\" [icon]=\"'icon-arrow-left'\" (click)=\"back()\"\n            *ngIf=\"!showTable\">\n        </app-menu-button>\n        <app-menu-button title=\"{{ 'buttons.novo' | translate }}\" [disabled]=\"isDetail\" (click)=\"new()\"\n            [icon]=\"'icon-plus'\" *ngIf=\"showTable\">\n        </app-menu-button>\n        <ng-container *ngIf=\"showTable\">\n            <app-menu-button title=\"{{ 'buttons.visualizar' | translate }}\"\n                [disabled]=\"!dataImportadores?.cliCotriDueTerceirosId || !showTable\" (click)=\"show()\"\n                [icon]=\"'icon-eye'\">\n            </app-menu-button>\n        </ng-container>\n        <app-menu-button title=\"{{ 'buttons.editar' | translate }}\" [icon]=\"'icon-pencil'\"\n            [disabled]=\"!dataImportadores?.cliCotriDueTerceirosId || isDetail || (!showTable && !detail)\"\n            (click)=\"edit()\">\n        </app-menu-button>\n        <app-menu-button title=\"{{ 'buttons.excluir' | translate }}\" [icon]=\"'icon-close'\"\n            [disabled]=\"!dataImportadores?.cliCotriDueTerceirosId || isDetail || !showTable\" (click)=\"delete()\">\n        </app-menu-button>\n    </div>\n</div>\n<table class=\"table table-striped table-hover\" *ngIf=\"showTable\">\n    <tr>\n        <th class=\"text-right\"> {{\"labels.importador\" | translate }} </th>\n        <th> {{\"labels.descricao\" | translate}} </th>\n        <th> {{\"labels.contrato\" | translate}} </th>\n        <th> {{\"labels.nrReDue\" | translate}} </th>\n        <th class=\"text-right\"> {{\"labels.quantidade\" | translate}} </th>\n    </tr>\n    <tbody>\n        <tr *ngFor=\"let val of service.data.dueTerceirosImportadores | removeExcluidos\" (click)=\"selected(val)\"\n            [ngClass]=\"{'info': dataImportadores.cliCotriDueTerceirosItemImportadorItemId === val.cliCotriDueTerceirosItemImportadorItemId }\">\n            <td class=\"text-right\"> {{ val.destinatarioIdImportador }}</td>\n            <td> {{ val.importador?.fantasia }} </td>\n            <td> {{ val.contrato }}</td>\n            <td> {{ val.numRE }}</td>\n            <td class=\"text-right\"> {{ val.quantid }}</td>\n        </tr>\n        <tr *ngIf=\"!service.data.dueTerceirosImportadores || service.data.dueTerceirosImportadores.length === 0\">\n            <th colspan=\"5\">\n                {{'messages.nenhumRegistroEncontrado' | translate }}\n            </th>\n        </tr>\n    </tbody>\n</table>\n<form class=\"form\" #formImp=\"ngForm\" (ngSubmit)=\"onSubmit(formImp)\" *ngIf=\"!showTable\" autocomplete=\"off\">\n    <app-validacoes [formErrorId]=\"'formImp'\"></app-validacoes>\n    <div class=\"tab-content top\">\n        <div class=\"tab-pane active show\" id=\"importadores\">\n            <div class=\"row\">\n                <div class=\"col-lg-6\">\n                    <div class=\"form-group form-group-sm\">\n                        <label for=\"cliente\">{{'labels.cliente' |\n                            translate}}</label>\n                        <input type=\"text\" id=\"cliente\" name=\"cliente\" class=\"form-control form-control-sm\"\n                            maxlength=\"25\" [disabled]=\"true\" value=\"{{ service.dataItem.cliente?.fantasia }}\">\n                    </div>\n                </div>\n            </div>\n            <div class=\"row\">\n                <div class=\"col-lg-6\">\n                    <div class=\"form-group form-group-sm\">\n                        <label for=\"produto\">{{'labels.produto' |\n                            translate}}</label>\n                        <input type=\"text\" id=\"produto\" name=\"produto\" class=\"form-control form-control-sm\"\n                            maxlength=\"25\" [disabled]=\"true\" value=\"{{ service.dataItem.material?.fantasia }}\">\n                    </div>\n                </div>\n            </div>\n\n            <div class=\"row\">\n                <div class=\"col-lg-6 col-md-12\">\n                    <div class=\"form-group form-group-sm\">\n                        <app-pesquisa-destinatario id=\"importador\" name=\"importador\" modalTitle=\"pesquisaDeImportador\"\n                            label=\"importador\" tipoDestinatario=\"F\" [required]=\"true\"\n                            [(ngModel)]=\"dataImportadores.destinatarioIdImportador\" showInscricao=\"false\"\n                            showCgcCpf=\"false\" [disabled]=\"detail\" [inSelected]=\"dataImportadores.importador\"\n                            (outSelected)=\"dataImportadores.importador = $event\">\n                        </app-pesquisa-destinatario>\n                    </div>\n                </div>\n            </div>\n\n            <div class=\" row\">\n                <div class=\"col-lg-2 col-md-4 col-sm-12\">\n                    <div class=\"form-group form-group-sm\">\n                        <div class=\"form-group\">\n                            <label for=\"quantidade\">{{'labels.quantidade' |\n                                translate}}</label>\n                            <input type=\"text\" id=\"quantidade\" name=\"quantidade\" class=\"form-control form-control-sm\"\n                                maxlength=\"15\" [(ngModel)]=\"dataImportadores.quantid\" currencyMask [disabled]=\"detail\"\n                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\">\n                        </div>\n                    </div>\n                </div>\n            </div>\n\n            <div class=\"row\">\n                <div class=\"col-lg-4 col-md-12\">\n                    <div class=\"form-group form-group-sm\">\n                        <label for=\"contrato\">{{'labels.contrato' | translate}}</label>\n                        <input id=\"contrato\" name=\"contrato\" [(ngModel)]=\"dataImportadores.contrato\" [disabled]=\"detail\"\n                            maxlength=\"30\" class=\"form-control form-control-sm\" type=\"text\">\n                    </div>\n                </div>\n            </div>\n\n            <div class=\"row\">\n                <div class=\"col-lg-2 col-md-12\">\n                    <div class=\"form-group form-group-sm\">\n                        <label for=\"numRE\">{{'labels.regRE' | translate}}</label>\n                        <input id=\"numRE\" name=\"numRE\" [(ngModel)]=\"dataImportadores.numRE\" [disabled]=\"detail\"\n                            maxlength=\"15\" class=\"form-control form-control-sm\" type=\"text\">\n                    </div>\n                </div>\n            </div>\n\n            <div class=\"row\">\n                <div class=\"col-lg-6 col-md-12\">\n                    <div class=\"form-group form-group-sm\">\n                        <label for=\"ruc\">{{'labels.ruc' | translate}}</label>\n                        <input id=\"ruc\" name=\"ruc\" [(ngModel)]=\"dataImportadores.ruc\" [disabled]=\"detail\" maxlength=\"35\"\n                            class=\"form-control form-control-sm\" type=\"text\">\n                    </div>\n                </div>\n            </div>\n        </div>\n        <div class=\"row\" *ngIf=\"!isDetail && !detail\">\n            <div class=\"col-lg-6\">\n                <div class=\"form-group form-group-sm\">\n                    <button class=\"btn btn-success mr-1\" type=\"submit\" *ngIf=\"showComponents\"\n                        [disabled]=\"isDetail || detail\">{{\n                        'buttons.salvar' | translate }}\n                    </button>\n                    <button class=\"btn btn-default\" type=\"button\" *ngIf=\"showComponents\" [disabled]=\"isDetail || detail\"\n                        (click)=\"back()\">\n                        {{ 'buttons.cancelar' | translate }}\n                    </button>\n                </div>\n            </div>\n        </div>\n    </div>\n</form>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-index/due-terceiros-index.component.html":
/*!********************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-index/due-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\" [sisFormularioId]=\"constantes.sisFormularioId\"\n    [formAction]=\"actionForm\" [itemData]=\"data.cliCotriDueTerceirosId\">\n</app-menu-command-bar>\n\n<div class=\"section-comand-bar\">\n    <table id=\"dtDueTerceiros\" class=\"table table-striped table-bordered table-hover nowrap table-sm\">\n    </table>\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-due-terceiros-filter (filtrar)=\"executarFiltro($event)\">\n</app-due-terceiros-filter>\n<app-due-terceiros-consulta-nfs-referenciadas></app-due-terceiros-consulta-nfs-referenciadas>\n<app-due-terceiros-retificacao-due-xml></app-due-terceiros-retificacao-due-xml>\n<app-due-terceiros-print-modal\n    (outConfirma)=\"confirmaImpressao($event)\"></app-due-terceiros-print-modal>");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"container-buttons\">\n    <div class=\"btn-group\">\n        <app-menu-button title=\"{{ 'buttons.voltar' | translate }}\" [icon]=\"'icon-arrow-left'\" (click)=\"back()\"\n            *ngIf=\"!service.showTableItem\">\n        </app-menu-button>\n        <app-menu-button title=\"{{ 'buttons.novo' | translate }}\" [disabled]=\"isDetail\" (click)=\"new()\"\n            [icon]=\"'icon-plus'\" *ngIf=\"service.showTableItem\">\n        </app-menu-button>\n        <ng-container *ngIf=\"service.showTableItem\">\n            <app-menu-button title=\"{{ 'buttons.visualizar' | translate }}\"\n                [disabled]=\"!service.dataItem?.cliCotriDueTerceirosItemId || !service.showTableItem || service.limpaItemSelecionado\"\n                (click)=\"show()\" [icon]=\"'icon-eye'\">\n            </app-menu-button>\n        </ng-container>\n        <app-menu-button title=\"{{ 'buttons.editar' | translate }}\" [icon]=\"'icon-pencil'\"\n            [disabled]=\"!service.dataItem?.cliCotriDueTerceirosItemId || isDetail || (!service.showTableItem && !service.detailAbaItem) || service.limpaItemSelecionado\"\n            (click)=\"edit()\">\n        </app-menu-button>\n        <app-menu-button title=\"{{ 'buttons.excluir' | translate }}\" [icon]=\"'icon-close'\"\n            [disabled]=\"!service.dataItem?.cliCotriDueTerceirosItemId || isDetail || !service.showTableItem\"\n            (click)=\"delete()\">\n        </app-menu-button>\n    </div>\n</div>\n<table class=\"table table-striped table-hover\" *ngIf=\"service.showTableItem\">\n    <tr>\n        <th class=\"text-right\"> {{\"labels.item\" | translate }} </th>\n        <th class=\"text-right\"> {{\"labels.codigo\" | translate}} </th>\n        <th> {{\"labels.cliente\" | translate}} </th>\n        <th class=\"text-right\"> {{\"labels.produto\" | translate}} </th>\n        <th> {{\"labels.descricao\" | translate}} </th>\n        <th style=\"text-align: right;\"> {{\"labels.quantidade\" | translate}} </th>\n        <th> {{\"labels.unidade\" | translate}} </th>\n    </tr>\n    <tbody>\n        <tr *ngFor=\"let val of service.data.dueTerceirosItens | removeExcluidos\" (click)=\"selected(val)\"\n            [ngClass]=\"{'info': service.dataItem.cliCotriDueTerceirosItemId === val.cliCotriDueTerceirosItemId }\">\n            <td class=\"text-right\"> {{ val.cliCotriDueTerceirosItemId }}</td>\n            <td class=\"text-right\"> {{ val.cliente?.destinatarioId }}</td>\n            <td> {{ val.cliente?.fantasia }} </td>\n            <td class=\"text-right\"> {{ val.material?.materialId }}</td>\n            <td> {{ val.material?.fantasia }}</td>\n            <td class=\"text-right\">{{ val.quantid | formatCurrency: 0 }}</td>\n            <td> {{ val.unidadeId }}</td>\n        </tr>\n        <tr *ngIf=\"!service.data.dueTerceirosItens || service.data.dueTerceirosItens.length === 0\">\n            <th colspan=\"9\">\n                {{'messages.nenhumRegistroEncontrado' | translate }}\n            </th>\n        </tr>\n    </tbody>\n</table>\n<form class=\"form\" #formItem=\"ngForm\" (ngSubmit)=\"onSubmit(formItem)\" *ngIf=\"!service.showTableItem\" autocomplete=\"off\">\n    <app-validacoes [formErrorId]=\"'formItem'\"></app-validacoes>\n    <div class=\"tab-content top\">\n        <div class=\"tab-pane active show\" id=\"itens\">\n            <div class=\"row\">\n                <div class=\"col-lg-6\">\n                    <div class=\"form-group form-group-sm\">\n                        <app-pesquisa-destinatario id=\"clienteIt\" name=\"cliente\" label=\"cliente\"\n                            modalTitle=\"pesquisaDeCliente\" [required]=\"true\"\n                            [(ngModel)]=\"service.dataItem.destinatarioIdCliente\" tipoDestinatario=\"C\" showCgcCpf=\"false\"\n                            showInscricao=\"false\" [inSelected]=\"service.dataItem.cliente\"\n                            (outModel)=\"trataCliente($event)\" [disabled]=\"service.detailAbaItem\"\n                            (outSelected)=\"service.dataItem.cliente = $event\">\n                        </app-pesquisa-destinatario>\n                    </div>\n                </div>\n            </div>\n            <div class=\"row\">\n                <div class=\"col-lg-6\">\n                    <div class=\"form-group form-group-sm\">\n                        <app-pesquisa-material id=\"produto\" name=\"produto\" label=\"produto\" [required]=\"true\"\n                            modalTitle=\"pesquisaDeProduto\" [(ngModel)]=\"service.dataItem.materialId\"\n                            [inSelected]=\"service.dataItem.material\" [disabled]=\"service.detailAbaItem\"\n                            (outModel)=\"trataMaterial($event)\" (outSelected)=\"service.dataItem.material =$event\">\n                        </app-pesquisa-material>\n                    </div>\n                </div>\n            </div>\n            <div class=\"row\">\n                <div class=\"col-lg-6\">\n                    <div class=\"form-group form-group-sm\">\n                        <app-pesquisa-destinatario id=\"codDespac\" name=\"codDespac\" label=\"despachante\"\n                            modalTitle=\"pesquisaDeDespachante\" [(ngModel)]=\"service.dataItem.codDespac\"\n                            tipoDestinatario=\"C\" showCgcCpf=\"false\" showInscricao=\"false\"\n                            [inSelected]=\"service.dataItem.despachante\" [disabled]=\"service.detailAbaItem\"\n                            (outSelected)=\"service.dataItem.despachante = $event\">\n                        </app-pesquisa-destinatario>\n                    </div>\n                </div>\n            </div>\n            <div class=\" row\">\n                <div class=\"col-lg-3 col-md-4 col-sm-12\">\n                    <div class=\"form-group form-group-sm\">\n                        <div class=\"form-group\">\n                            <label class=\"required\" for=\"quantidade\">{{'labels.quantidade' |\n                                translate}}</label>\n                            <input type=\"text\" id=\"quantidade\" name=\"quantidade\" class=\"form-control form-control-sm\"\n                                maxlength=\"15\" [required]=\"true\" [(ngModel)]=\"service.dataItem.quantid\" currencyMask\n                                [disabled]=\"service.detailAbaItem\"\n                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\">\n                        </div>\n                    </div>\n                </div>\n                <div class=\"col-lg-3 col-md-4 col-sm-12\">\n                    <div class=\"form-group form-group-sm\">\n                        <label for=\"unidade\" class=\"required\">{{\n                            \"labels.unidade\" | translate\n                            }}</label>\n                        <select class=\"form-control form-control-sm\" id=\"unidade\" name=\"unidade\" [required]=\"true\"\n                            (change)=\"trataUnidade()\" [disabled]=\"service.detailAbaItem\"\n                            [(ngModel)]=\"service.dataItem.unidadeId\">\n                            <option value=\"\" selected=\"selected\">{{ 'labels.selecione' | translate }}\n                            </option>\n                            <option [value]=\"u.chave\" *ngFor=\"let u of unidades\">{{u.chave}}</option>\n                        </select>\n                    </div>\n                </div>\n                <div class=\"col-lg-3 col-md-4 col-sm-12\" *ngIf=\"exibeDensidade\">\n                    <div class=\"form-group form-group-sm\">\n                        <label [class.required]=\"exibeDensidade\" for=\"densidade\">{{'labels.densidade' |\n                            translate}}</label>\n                        <input type=\"text\" id=\"densidade\" name=\"densidade\" class=\"form-control form-control-sm\"\n                            maxlength=\"9\" [required]=\"exibeDensidade\" [(ngModel)]=\"service.dataItem.densidade\"\n                            [disabled]=\"service.detailAbaItem\" currencyMask (blur)=\"trataDensidade()\"\n                            [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 6 }\">\n                    </div>\n                </div>\n            </div>\n            <div class=\"row\">\n                <div class=\"col-lg-4 col-md-12\">\n                    <div class=\"form-group form-group-sm\">\n                        <label for=\"tipoOperacao\" class=\"required\">{{ 'labels.tipoDeOperacao' |\n                            translate}}</label>\n                        <select class=\"form-control form-control-sm\" id=\"tipoOperacao\" name=\"tipoOperacao\"\n                            [disabled]=\"service.detailAbaItem\" [(ngModel)]=\"service.dataItem.tipoOperacao\"\n                            (ngModelChange)=\"onChangeTipoOperacao()\" [required]=\"true\">\n                            <option value=\"\">{{ 'labels.selecione' | translate }}</option>\n                            <option *ngFor=\"let item of tiposOperacoes\" value=\"{{ item.tipoOperacaoId }}\">{{\n                                item.descrTipoOperacao }}</option>\n                        </select>\n                    </div>\n                </div>\n                <div class=\"col-lg-4 col-md-12\">\n                    <div class=\"form-group form-group-sm\">\n                        <label>&nbsp;</label>\n                        <br />\n                        <div class=\"form-check-inline\">\n                            <div class=\"custom-control custom-radio\">\n                                <input type=\"radio\" name=\"tipoMov\" id=\"tipoMovC\"\n                                    [attr.disabled]=\"service.detailAbaItem || !habilitaTipoMov ? '': null\"\n                                    class=\"custom-control-input radio-dark-gray\" value=\"C\" (change)=\"trataTipoMov()\"\n                                    [(ngModel)]=\"service.dataItem.tipoMov\" [required]=\"true\" />\n                                <label for=\"tipoMovC\" class=\"custom-control-label\">{{ 'labels.carga' |\n                                    translate\n                                    }}</label>\n                            </div>\n                        </div>\n                        <div class=\"form-check-inline\">\n                            <div class=\"custom-control custom-radio\">\n                                <input type=\"radio\" name=\"tipoMov\" id=\"tipoMovD\"\n                                    [attr.disabled]=\"service.detailAbaItem || !habilitaTipoMov ? '': null\"\n                                    class=\"custom-control-input radio-dark-gray\" value=\"D\" (change)=\"trataTipoMov()\"\n                                    [(ngModel)]=\"service.dataItem.tipoMov\" />\n                                <label for=\"tipoMovD\" class=\"custom-control-label\">{{ 'labels.descarga' |\n                                    translate\n                                    }}</label>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n            </div>\n            <div class=\"row\">\n                <div class=\"col-lg-3\">\n                    <div class=\"form-group form-group-sm\">\n                        <label for=\"codPortoOri\" [class.required]=\"camposObrigatorios\">{{\n                            'labels.portoOrigem' | translate}}</label>\n                        <app-combo-padrao id=\"codPortoOri\" name=\"codPortoOri\" tabela=\"Porto\"\n                            [required]=\"camposObrigatorios\" descricao=\"DescrPorto\" chave=\"CodPorto\"\n                            [disabled]=\"service.detailAbaItem\" [(ngModel)]=\"service.dataItem.codPortoOri\">\n                        </app-combo-padrao>\n                    </div>\n                </div>\n                <div class=\"col-lg-3\">\n                    <div class=\"form-group form-group-sm\">\n                        <label for=\"codPortoDest\" [class.required]=\"camposObrigatorios\">{{\n                            'labels.portoDestino' | translate}}</label>\n                        <app-combo-padrao id=\"codPortoDest\" name=\"codPortoDest\" tabela=\"Porto\"\n                            [required]=\"camposObrigatorios\" descricao=\"DescrPorto\" chave=\"CodPorto\"\n                            [disabled]=\"service.detailAbaItem\" [(ngModel)]=\"service.dataItem.codPortoDest\">\n                        </app-combo-padrao>\n                    </div>\n                </div>\n            </div>\n            <div class=\"row\">\n                <div class=\"col-3\" *ngIf=\"service.exibeQuantidREAbaItem\">\n                    <div class=\"form-group form-group-sm\">\n                        <label for=\"quantidRE\">{{'labels.quantidRE' | translate}}</label>\n                        <input type=\"text\" id=\"quantidRE\" name=\"quantidRE\" [disabled]=\"true\"\n                            class=\"form-control form-control-sm\" maxlength=\"20\" [(ngModel)]=\"service.dataItem.quantidRE\"\n                            currencyMask [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 3 }\">\n                    </div>\n                </div>\n                <div class=\"col-lg-3\">\n                    <div class=\"form-group form-group-sm\">\n                        <label for=\"codPortoDest\">{{ 'labels.regCEMercante' | translate}}</label>\n                        <select class=\"form-control form-control-sm\" [disabled]=\"service.detailAbaItem\"\n                            id=\"regCEMercante\" name=\"regCEMercante\" [(ngModel)]=\"service.dataItem.regCeMercante\">\n                            <option value=\"\">{{ 'labels.selecione' | translate }}</option>\n                            <option value=\"{{ item.ceMercanteId }}\" *ngFor=\"let item of service.ceMercanteItemList\">\n                                {{ item.nrCeMercante }}</option>\n                        </select>\n                    </div>\n                </div>\n            </div>\n            <div class=\"row\">\n                <div class=\"col-lg-6\">\n                    <div class=\"form-group form-group-sm\">\n                        <label for=\"item_observ\">{{'labels.observacoes' | translate}}</label>\n                        <input type=\"text\" id=\"item_observ\" name=\"item_observ\" class=\"form-control form-control-sm\"\n                            maxlength=\"70\" [disabled]=\"service.detailAbaItem\" [(ngModel)]=\"service.dataItem.observ\">\n                    </div>\n                </div>\n            </div>\n            <div class=\"row\" *ngIf=\"isUtilizaDUE\">\n                <div class=\"col-lg-3 col-sm-12\">\n                    <div class=\"form-group form-group-sm\">\n                        <label for=\"dtEmbarqueI\">{{\"labels.dtEmbarqueI\" | translate }}</label>\n                        <app-data id=\"dtEmbarqueI\" name=\"dtEmbarqueI\" [(ngModel)]=\"service.dataItem.dtEmbarqueI\"\n                            autofocus [disabled]=\"service.detailAbaItem\" class=\"dataHora\"\n                            [formatDateTime]=\"mascara.getFormatData\">\n                        </app-data>\n                    </div>\n                </div>\n                <div class=\"col-lg-3 col-sm-12\">\n                    <div class=\"form-group form-group-sm\">\n                        <label for=\"dtEmbarqueF\">{{\"labels.ate\" | translate}}</label>\n                        <app-data id=\"dtEmbarqueF\" name=\"dtEmbarqueF\" [(ngModel)]=\"service.dataItem.dtEmbarqueF\"\n                            [disabled]=\"service.detailAbaItem\" class=\"dataHora\"\n                            [formatDateTime]=\"mascara.getFormatData\">\n                        </app-data>\n                    </div>\n                </div>\n            </div>\n            <div class=\"row\" *ngIf=\"isUtilizaDUE\">\n                <div class=\"col-lg-6\">\n                    <div class=\"form-group form-group-sm\">\n                        <app-pesquisa-destinatario id=\"codControladora\" name=\"codControladora\" label=\"controladora\"\n                            modalTitle=\"pesquisaDeControladora\" [(ngModel)]=\"service.dataItem.codControladora\"\n                            tipoDestinatario=\"F\" [disabled]=\"service.detailAbaItem\" showCgcCpf=\"false\"\n                            showInscricao=\"false\" [inSelected]=\"service.dataItem.controladora\"\n                            (outSelected)=\"service.dataItem.controladora = $event\">\n                        </app-pesquisa-destinatario>\n                    </div>\n                </div>\n            </div>\n            <div class=\"row\" *ngIf=\"isUtilizaDUE\">\n                <div class=\"col-lg-3 col-md-12\">\n                    <div class=\"form-group form-group-sm\">\n                        <label for=\"vlUnitFOB\" [class.required]=\"camposObrigatorios\">{{'labels.valorFobUnitario' |\n                            translate}}</label>\n                        <input type=\"text\" id=\"vlUnitFOB\" name=\"vlUnitFOB\" class=\"form-control form-control-sm\"\n                            [required]=\"camposObrigatorios\" maxlength=\"14\" [(ngModel)]=\"service.dataItem.vlUnitFOB\"\n                            [disabled]=\"service.detailAbaItem\" currencyMask\n                            [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\">\n                    </div>\n                </div>\n                <div class=\"col-lg-3 col-md-12\">\n                    <div class=\"form-group form-group-sm\">\n                        <label for=\"vlFOB\" [class.required]=\"camposObrigatorios\">{{'labels.vlFOB' |\n                            translate}}</label>\n                        <input type=\"text\" id=\"vlFOB\" name=\"vlFOB\" class=\"form-control form-control-sm\"\n                            [required]=\"camposObrigatorios\" maxlength=\"14\" [(ngModel)]=\"service.dataItem.vlFOB\"\n                            [disabled]=\"service.detailAbaItem\" currencyMask\n                            [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\">\n                    </div>\n                </div>\n            </div>\n            <div class=\"row\" *ngIf=\"isUtilizaDUE\">\n                <div class=\"col-lg-4\">\n                    <div class=\"form-group form-group-sm\">\n                        <label for=\"codEnquadramento\">{{ 'labels.codEnquadramento' | translate}}</label>\n                        <app-combo-padrao id=\"codEnquadramento\" name=\"codEnquadramento\" tabela=\"Enquadramento\"\n                            descricao=\"DescrEnquadramento\" chave=\"CodEnquadramento\" (change)=\"trataCodEnquadramento()\"\n                            [(ngModel)]=\"service.dataItem.codEnquadramento\" [disabled]=\"service.detailAbaItem\">\n                        </app-combo-padrao>\n                    </div>\n                </div>\n            </div>\n            <div class=\"row\" *ngIf=\"(exibeCodidoAcItemAcTipoAc && isUtilizaDUE)\">\n                <div class=\"col-lg-4 col-md-8 col-sm-10\">\n                    <div class=\"form-group form-group-sm\">\n                        <label for=\"codigoAC\" [class.required]=\"true\">{{'labels.codigoAC' |\n                            translate}}</label>\n                        <input type=\"text\" id=\"codigoAC\" name=\"codigoAC\" class=\"form-control form-control-sm\"\n                            maxlength=\"11\" minlength=\"11\" [disabled]=\"service.detailAbaItem\" [required]=\"true\"\n                            [(ngModel)]=\"service.dataItem.codigoAC\">\n                    </div>\n                </div>\n                <div class=\"col-lg-1 col-md-2 col-sm-2\">\n                    <div class=\"form-group form-group-sm\">\n                        <label for=\"itemAC\" [class.required]=\"true\">{{'labels.item' |\n                            translate}}</label>\n                        <input type=\"text\" id=\"itemAC\" name=\"item\" class=\"form-control form-control-sm\" maxlength=\"1\"\n                            maxlength=\"1\" [disabled]=\"service.detailAbaItem\" [required]=\"true\"\n                            [(ngModel)]=\"service.dataItem.itemAC\">\n                    </div>\n                </div>\n            </div>\n            <div class=\"row\" *ngIf=\"(exibeCodidoAcItemAcTipoAc && isUtilizaDUE)\">\n                <div class=\"col-lg-6\">\n                    <div class=\"form-group form-group-sm\">\n                        <label for=\"tipoAC\" [class.required]=\"true\">{{'labels.tipo' | translate}}</label>\n                        <input type=\"text\" id=\"tipoAC\" name=\"tipo\" class=\"form-control form-control-sm\" maxlength=\"15\"\n                            [disabled]=\"service.detailAbaItem\" [required]=\"true\" [(ngModel)]=\"service.dataItem.tipoAC\">\n                    </div>\n                </div>\n            </div>\n        </div>\n        <div class=\"row\" *ngIf=\"!isDetail && !service.detailAbaItem\">\n            <div class=\"col-lg-6\">\n                <div class=\"form-group form-group-sm\">\n                    <button class=\"btn btn-success mr-1\" type=\"submit\" *ngIf=\"showComponents\"\n                        [disabled]=\"isDetail || service.detailAbaItem\">{{\n                        'buttons.salvar' | translate }}\n                    </button>\n                    <button class=\"btn btn-default\" type=\"button\" *ngIf=\"showComponents\"\n                        [disabled]=\"isDetail || service.detailAbaItem\" (click)=\"back()\">\n                        {{ 'buttons.cancelar' | translate }}\n                    </button>\n                </div>\n            </div>\n        </div>\n    </div>\n</form>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-observacoes/due-terceiros-observacoes.component.html":
/*!********************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-observacoes/due-terceiros-observacoes.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=\"container-buttons\">\n    <div class=\"btn-group\">\n        <app-menu-button title=\"{{ 'buttons.editar' | translate }}\" [icon]=\"'icon-pencil'\" [disabled]=\"(actionForm === 2 || actionForm === 1)\"\n            (click)=\"edit()\">\n        </app-menu-button>\n\n    </div>\n</div>\n\n<table class=\"table table-striped table-hover\">\n    <div class=\"row\">\n        <div class=\"col-lg-12\">\n            <div class=\"form-group\">\n                <label for=\"observacoes\">{{'labels.observacoes' | translate}}</label>\n                <textarea id=\"observacoes\" name=\"observacoes\" class=\"form-control\" maxlength=\"2000\" rows=\"12\"\n                    type=\"text\" [disabled]=\"desabilitaTextareaObservacoes\" [ngModel]=\"service.data?.dueTerceirosObservacoes?.observacoes\"\n                    (ngModelChange)=\"service.data.dueTerceirosObservacoes.observacoes = $event\"\n                    (blur)=\"trataObservacoes()\">\n                </textarea>\n            </div>\n        </div>\n    </div>\n</table>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-outras-operacoes/due-terceiros-outras-operacoes.component.html":
/*!******************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-outras-operacoes/due-terceiros-outras-operacoes.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=\"container-buttons\">\n    <div class=\"btn-group\">\n        <app-menu-button title=\"{{ 'buttons.voltar' | translate }}\" [icon]=\"'icon-arrow-left'\" (click)=\"back()\"\n            *ngIf=\"!showTable\">\n        </app-menu-button>\n        <app-menu-button title=\"{{ 'buttons.novo' | translate }}\" [disabled]=\"isDetail\" (click)=\"new()\"\n            [icon]=\"'icon-plus'\" *ngIf=\"showTable\">\n        </app-menu-button>\n        <ng-container *ngIf=\"showTable\">\n            <app-menu-button title=\"{{ 'buttons.visualizar' | translate }}\"\n                [disabled]=\"!dataOutrasOperacoes?.cliCotriDueTerceirosId || !showTable\" (click)=\"show()\"\n                [icon]=\"'icon-eye'\">\n            </app-menu-button>\n        </ng-container>\n        <app-menu-button title=\"{{ 'buttons.editar' | translate }}\" [icon]=\"'icon-pencil'\"\n            [disabled]=\"!dataOutrasOperacoes?.cliCotriDueTerceirosId || isDetail || (!showTable && !detail)\"\n            (click)=\"edit()\">\n        </app-menu-button>\n        <app-menu-button title=\"{{ 'buttons.excluir' | translate }}\" [icon]=\"'icon-close'\"\n            [disabled]=\"!dataOutrasOperacoes?.cliCotriDueTerceirosId || isDetail || !showTable\" (click)=\"delete()\">\n        </app-menu-button>\n    </div>\n</div>\n<table class=\"table table-striped table-hover\" *ngIf=\"showTable\">\n    <tr>\n        <th class=\"text-right\"> {{\"labels.item\" | translate }} </th>\n        <th> {{\"labels.cliente\" | translate}} </th>\n        <th> {{\"labels.produto\" | translate}} </th>\n    </tr>\n    <tbody>\n        <tr *ngFor=\"let val of service.data.dueTerceirosOutrasOperacoes | removeExcluidos\" (click)=\"selected(val)\"\n            [ngClass]=\"{'info': dataOutrasOperacoes.cliCotriDueTerceirosOutrasItemId === val.cliCotriDueTerceirosOutrasItemId }\">\n            <td class=\"text-right\"> {{ val.cliCotriDueTerceirosOutrasItemId }}</td>\n            <td> {{ val.cliente }} </td>\n            <td> {{ val.produto }}</td>\n        </tr>\n        <tr *ngIf=\"!service.data.dueTerceirosOutrasOperacoes || service.data.dueTerceirosOutrasOperacoes.length === 0\">\n            <th colspan=\"5\">\n                {{'messages.nenhumRegistroEncontrado' | translate }}\n            </th>\n        </tr>\n    </tbody>\n</table>\n<form class=\"form\" #formOutras=\"ngForm\" (ngSubmit)=\"onSubmit(formOutras)\" *ngIf=\"!showTable\" autocomplete=\"off\">\n    <app-validacoes [formErrorId]=\"'formOutras'\"></app-validacoes>\n    <div class=\"tab-content top\">\n        <div class=\"tab-pane active show\" id=\"outrasOperacoes\">\n            <div class=\"row\">\n                <div class=\"col-lg-6\">\n                    <div class=\"form-group form-group-sm\">\n                        <label for=\"cliente\" class=\"required\">{{'labels.cliente' |\n                            translate}}</label>\n                        <input type=\"text\" id=\"cliente\" name=\"cliente\" class=\"form-control form-control-sm\"\n                            maxlength=\"25\" [disabled]=\"detail\" [required]=\"true\" uppercase\n                            [(ngModel)]=\"dataOutrasOperacoes.cliente\">\n                    </div>\n                </div>\n            </div>\n            <div class=\"row\">\n                <div class=\"col-lg-6\">\n                    <div class=\"form-group form-group-sm\">\n                        <label for=\"produto\" class=\"required\">{{'labels.produto' |\n                            translate}}</label>\n                        <input type=\"text\" id=\"produto\" name=\"produto\" class=\"form-control form-control-sm\"\n                            maxlength=\"25\" [disabled]=\"detail\" [required]=\"true\" uppercase\n                            [(ngModel)]=\"dataOutrasOperacoes.produto\">\n                    </div>\n                </div>\n            </div>\n\n            <div class=\"row\">\n                <div class=\"col-lg-4\">\n                    <div class=\"form-group form-group-sm\">\n                        <label for=\"codMercadoriaNcm\">{{ 'labels.codMercadoriaNcm' | translate}}</label>\n                        <app-combo-padrao id=\"codNBM\" name=\"codNBM\" tabela=\"ClassificacaoFiscal\" descricao=\"codNBM\"\n                            chave=\"CodNbm\" [(ngModel)]=\"dataOutrasOperacoes.codNBM\" [disabled]=\"detail\">\n                        </app-combo-padrao>\n                    </div>\n                </div>\n            </div>\n\n            <div class=\" row\">\n                <div class=\"col-lg-3 col-md-4 col-sm-12\">\n                    <div class=\"form-group form-group-sm\">\n                        <div class=\"form-group\">\n                            <label for=\"quantidade\">{{'labels.quantidade' |\n                                translate}}</label>\n                            <input type=\"text\" id=\"quantidade\" name=\"quantidade\" class=\"form-control form-control-sm\"\n                                maxlength=\"15\" [(ngModel)]=\"dataOutrasOperacoes.quantid\" currencyMask\n                                [disabled]=\"detail\"\n                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\">\n                        </div>\n                    </div>\n                </div>\n                <div class=\"col-lg-3 col-md-4 col-sm-12\">\n                    <div class=\"form-group form-group-sm\">\n                        <label for=\"unidade\">{{\n                            \"labels.unidade\" | translate\n                            }}</label>\n                        <select class=\"form-control form-control-sm\" id=\"unidade\" name=\"unidade\" [disabled]=\"detail\"\n                            [(ngModel)]=\"dataOutrasOperacoes.unidade\">\n                            <option value=\"\" selected=\"selected\">{{ 'labels.selecione' | translate }}\n                            </option>\n                            <option [value]=\"u.chave\" *ngFor=\"let u of unidades\">{{u.chave}}</option>\n                        </select>\n                    </div>\n                </div>\n            </div>\n            <div class=\"row\">\n                <div class=\"col-lg-4 col-md-12\">\n                    <div class=\"form-group form-group-sm\">\n                        <label for=\"tipoOperacao\" class=\"required\">{{ 'labels.tipoDeOperacao' |\n                            translate}}</label>\n                        <select class=\"form-control form-control-sm\" id=\"tipoOperacao\" name=\"tipoOperacao\"\n                            [disabled]=\"detail\" [(ngModel)]=\"dataOutrasOperacoes.tipoOperacao\"\n                            (ngModelChange)=\"onChangeTipoOperacao()\" >\n                            <option value=\"\">{{ 'labels.selecione' | translate }}</option>\n                            <option *ngFor=\"let item of tiposOperacoes\" value=\"{{ item.tipoOperacaoId }}\">{{\n                                item.descrTipoOperacao }}</option>\n                        </select>\n                    </div>\n                </div>\n                <div class=\"col-lg-4 col-md-12\">\n                    <div class=\"form-group form-group-sm\">\n                        <label>&nbsp;</label>\n                        <br />\n                        <div class=\"form-check-inline\">\n                            <div class=\"custom-control custom-radio\">\n                                <input type=\"radio\" name=\"tipoMov\" id=\"tipoMovC\"\n                                    [attr.disabled]=\"!habilitaTipoMov ? '': null\"\n                                    class=\"custom-control-input radio-dark-gray\" value=\"C\"\n                                    [(ngModel)]=\"dataOutrasOperacoes.tipoMov\" />\n                                <label for=\"tipoMovC\" class=\"custom-control-label\">{{ 'labels.carga' |\n                                    translate\n                                    }}</label>\n                            </div>\n                        </div>\n                        <div class=\"form-check-inline\">\n                            <div class=\"custom-control custom-radio\">\n                                <input type=\"radio\" name=\"tipoMov\" id=\"tipoMovD\"\n                                    [attr.disabled]=\"!habilitaTipoMov ? '': null\"\n                                    class=\"custom-control-input radio-dark-gray\" value=\"D\"\n                                    [(ngModel)]=\"dataOutrasOperacoes.tipoMov\" />\n                                <label for=\"tipoMovD\" class=\"custom-control-label\">{{ 'labels.descarga' |\n                                    translate\n                                    }}</label>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n            </div>\n            <div class=\"row\">\n                <div class=\"col-lg-3\">\n                    <div class=\"form-group form-group-sm\">\n                        <label for=\"codPortoOri\">{{\n                            'labels.portoOrigem' | translate}}</label>\n                        <app-combo-padrao id=\"codPortoOri\" name=\"codPortoOri\" tabela=\"Porto\" descricao=\"DescrPorto\"\n                            chave=\"CodPorto\" [disabled]=\"detail\" [(ngModel)]=\"dataOutrasOperacoes.codPortoOri\">\n                        </app-combo-padrao>\n                    </div>\n                </div>\n                <div class=\"col-lg-3\">\n                    <div class=\"form-group form-group-sm\">\n                        <label for=\"codPortoDest\">{{\n                            'labels.portoDestino' | translate}}</label>\n                        <app-combo-padrao id=\"codPortoDest\" name=\"codPortoDest\" tabela=\"Porto\" descricao=\"DescrPorto\"\n                            chave=\"CodPorto\" [disabled]=\"detail\" [(ngModel)]=\"dataOutrasOperacoes.codPortoDest\">\n                        </app-combo-padrao>\n                    </div>\n                </div>\n            </div>\n        </div>\n        <div class=\"row\" *ngIf=\"!isDetail && !detail\">\n            <div class=\"col-lg-6\">\n                <div class=\"form-group form-group-sm\">\n                    <button class=\"btn btn-success mr-2\" type=\"submit\" *ngIf=\"showComponents\"\n                        [disabled]=\"isDetail || detail\">{{\n                        'buttons.salvar' | translate }}\n                    </button>\n                    <button class=\"btn btn-default\" type=\"button\" *ngIf=\"showComponents\" [disabled]=\"isDetail || detail\"\n                        (click)=\"back()\">\n                        {{ 'buttons.cancelar' | translate }}\n                    </button>\n                </div>\n            </div>\n        </div>\n    </div>\n</form>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-print-modal/due-terceiros-print-modal.component.html":
/*!********************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-print-modal/due-terceiros-print-modal.component.html ***!
  \********************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"modal fade\" id=\"dueTerceirosPrintModal\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n\t<div class=\"modal-dialog modal-sm\">\r\n\t\t<div class=\"modal-content\">\r\n\t\t\t<form class=\"form\" #frmPrint=\"ngForm\" (ngSubmit)=\"onSubmit(frmPrint)\">\r\n\t\t\t\t<div class=\"modal-header\">\r\n\t\t\t\t\t<h4 class=\"modal-title\">{{ 'titles.imprimir' | translate }}</h4>\r\n\t\t\t\t\t<button type=\"button\" class=\"close\" aria-label=\"Close\" data-dismiss=\"modal\">\r\n\t\t\t\t\t\t<span aria-hidden=\"true\">&times;</span>\r\n\t\t\t\t\t</button>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div class=\"modal-body\">\r\n\t\t\t\t\t<div class=\"row\">\r\n\t\t\t\t\t\t<div class=\"col-md-12\">\r\n\t\t\t\t\t\t\t<div class=\"form-group form-group-sm\">\r\n\t\t\t\t\t\t\t\t<label for=\"tipoImpressao\">{{'labels.tipoImpressao' | translate}}</label>\r\n\t\t\t\t\t\t\t\t<select id=\"tipoImpressao\" name=\"tipoImpressao\" class=\"form-control form-control-sm\"\r\n\t\t\t\t\t\t\t\t\t[(ngModel)]=\"tipoSelecionado\">\r\n\t\t\t\t\t\t\t\t\t<option value=\"\">{{ 'labels.selecione' | translate}}</option>\r\n\t\t\t\t\t\t\t\t\t<option *ngFor=\"let tipo of service.tiposImpressao\" [value]=\"tipo.value\">{{ tipo.label |\r\n\t\t\t\t\t\t\t\t\t\ttranslate}}</option>\r\n\t\t\t\t\t\t\t\t</select>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div class=\"modal-footer\">\r\n\t\t\t\t\t<button type=\"submit\" class=\"btn btn-small btn-success\" [disabled]=\"tipoSelecionado == ''\">{{\r\n\t\t\t\t\t\t'buttons.ok' | translate }}</button>\r\n\t\t\t\t\t<button type=\"button\" class=\"btn btn-small btn-default\" data-dismiss=\"modal\">{{ 'buttons.cancelar' |\r\n\t\t\t\t\t\ttranslate }}</button>\r\n\t\t\t\t</div>\r\n\t\t\t</form>\r\n\t\t</div>\r\n\t</div>\r\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-re-excedente/due-terceiros-re-excedente.component.html":
/*!**********************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-re-excedente/due-terceiros-re-excedente.component.html ***!
  \**********************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"modal fade\" id=\"due-terceiros-re-excedente-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\">{{ 'titles.alteraREExcedente' | translate }}</h6>\n            </div>\n            <form class=\"form\" #formAlteraREExcedente=\"ngForm\">\n                <div class=\"modal-body\">\n                    <ng-container>\n                        <app-validacoes [formErrorId]=\"'formAlteraREExcedente'\"></app-validacoes>\n                        <div class=\" row\">\n                            <div class=\"col-12\">\n                                <div class=\"form-group form-group-sm\">\n                                    <label for=\"quantidRE\" class=\"required\">{{'labels.quantidRE' | translate}}</label>\n                                    <input type=\"text\" id=\"quantidRE\" name=\"quantidRE\"\n                                        class=\"form-control form-control-sm\" maxlength=\"20\"\n                                        [(ngModel)]=\"dataItem.quantidRE\" currencyMask\n                                        [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 3 }\">\n                                </div>\n                            </div>\n                        </div>\n                    </ng-container>\n                </div>\n                <div class=\"modal-footer\">\n                    <button class=\"btn btn-success mr-1\" type=\"button\" (click)=\"onSubmit(formAlteraREExcedente)\">{{\n                        'buttons.salvar' |\n                        translate }}\n                    </button>\n                    <button class=\"btn btn-default\" type=\"button\" data-dismiss=\"modal\" (click)=\"onCancelar()\">\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/cotriguacu/movimentos/due-terceiros/due-terceiros-retificacao-due-xml/due-terceiros-retificacao-due-xml.component.html":
/*!************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-retificacao-due-xml/due-terceiros-retificacao-due-xml.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=\"due-terceiros-retificacao-due-xml-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"modal-dialog modal-lg\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{ 'titles.gerarXmlDeRetificacaoDUE' | translate }}</h6>\r\n                <button type=\"button\" class=\"close\" aria-label=\"Close\" data-dismiss=\"modal\">\r\n                    <span aria-hidden=\"true\">&times;</span>\r\n                </button>\r\n            </div>\r\n            <div class=\"modal-body\">\r\n                <ng-container>\r\n                    <app-validacoes [formErrorId]=\"'formConsNfsReferenciadas'\"></app-validacoes>\r\n                    <div class=\"row\">\r\n                        <div class=\"col-12\">\r\n                            <div class=\"table-responsive\">\r\n                                <table class=\"table table-striped table-bordered table-hover nowrap table-sm\">\r\n                                    <thead>\r\n                                        <tr>\r\n                                            <th>{{ 'labels.cnpj' | translate}}</th>\r\n                                            <th>{{ 'labels.fantasia' | translate}}</th>\r\n                                            <th style=\"white-space: nowrap; text-align: right;\">{{\r\n                                                'labels.quantidade' | translate}}</th>\r\n                                        </tr>\r\n                                    </thead>\r\n                                    <tbody>\r\n                                        <tr *ngFor=\"let val of dados | removeExcluidos\" (click)=\"selected(val)\"\r\n                                            [ngClass]=\"{'info': dataRetDueXml.destinatarioIdCliente === val.destinatarioIdCliente }\">\r\n                                            <td style=\"white-space: nowrap;\">{{ val.cgcCpf }}</td>\r\n                                            <td style=\"white-space: nowrap;\">{{ val.destinatarioFantasia }}</td>\r\n                                            <td style=\"text-align: right;\">{{ val.quantid | formatCurrency }}</td>\r\n\r\n                                        </tr>\r\n                                        <tr *ngIf=\"!hasDados\">\r\n                                            <th colspan=\"5\" style=\"text-align: center\">\r\n                                                {{ \"messages.nenhumRegistroEncontrado\" | translate }}\r\n                                            </th>\r\n                                        </tr>\r\n                                    </tbody>\r\n                                </table>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </ng-container>\r\n            </div>\r\n            <div class=\"row d-flex justify-content-end pb-3 pr-3\">\r\n                <div class=\"col-lg-3 col-md-4 col-sm-12\">\r\n                    <button [disabled]=\"!dataRetDueXml?.destinatarioIdCliente\" type=\"button\"\r\n                        class=\"btn btn-success btn-block mr-1\" (click)=\"gerarIndividual()\">\r\n                        <i class=\"fa fa-refresh\"></i> {{ 'buttons.gerarIndividual' | translate }}\r\n                    </button>\r\n                </div>\r\n                <div class=\"col-lg-3 col-md-4 col-sm-12\">\r\n                    <button [disabled]=\"!hasDados\" type=\"button\" class=\"btn btn-success btn-block mr-1\"\r\n                        (click)=\"gerarParaTodos()\">\r\n                        <i class=\"fa fa-refresh\"></i> {{ 'buttons.gerarParaTodos' | translate }}\r\n                    </button>\r\n                </div>\r\n                <div class=\"col-lg-3 col-md-4 col-sm-12\">\r\n                    <button type=\"button\" class=\"btn btn-block btn-default\" (click)=\"cancelar()\">\r\n                        {{ 'buttons.cancelar' | translate }}\r\n                    </button>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<table class=\"table table-striped table-hover\">\n    <tr>\n        <th> {{\"labels.data\" | translate}} </th>\n        <th> {{\"labels.status\" | translate }} </th>\n        <th> {{\"labels.observacao\" | translate}} </th>\n    </tr>\n    <tbody>\n        <tr *ngFor=\"let val of service.data.dueTerceirosStatus | removeExcluidos\" (click)=\"selected(val)\"\n            [ngClass]=\"{'info': dataStatus.cliCotriDueTerceirosId === val.cliCotriDueTerceirosId }\">\n            <td> {{ val.dtStatus | date: 'dd/MM/yyyy' }} </td>\n            <td> {{ val.statusNavio?.descrStatus}}</td>\n            <td> {{ val.observ }}</td>\n        </tr>\n        <tr *ngIf=\"!service.data.dueTerceirosStatus || service.data.dueTerceirosStatus.length === 0\">\n            <th colspan=\"5\">\n                {{'messages.nenhumRegistroEncontrado' | translate }}\n            </th>\n        </tr>\n    </tbody>\n</table>");

/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-altera-porto-de-origem-destino/due-terceiros-altera-porto-de-origem-destino.component.ts":
/*!******************************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-altera-porto-de-origem-destino/due-terceiros-altera-porto-de-origem-destino.component.ts ***!
  \******************************************************************************************************************************************************************************/
/*! exports provided: DueTerceirosAlteraPortoDeOrigemDestinoComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DueTerceirosAlteraPortoDeOrigemDestinoComponent", function() { return DueTerceirosAlteraPortoDeOrigemDestinoComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _due_terceiros_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../due-terceiros.service */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros.service.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__ = __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_3__ = __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_4__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _due_terceiros_model__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../due-terceiros.model */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros.model.ts");
/* harmony import */ var app_pages_cadastro_tipo_operacao_tipo_operacao_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/pages/cadastro/tipo-operacao/tipo-operacao.service */ "./src/app/pages/cadastro/tipo-operacao/tipo-operacao.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 DueTerceirosAlteraPortoDeOrigemDestinoComponent = /** @class */ (function () {
    function DueTerceirosAlteraPortoDeOrigemDestinoComponent(service, funcoes, message, serviceTipoOperacao) {
        this.service = service;
        this.funcoes = funcoes;
        this.message = message;
        this.serviceTipoOperacao = serviceTipoOperacao;
        this.refreshItens = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.dataItem = new _due_terceiros_model__WEBPACK_IMPORTED_MODULE_5__["DueTerceirosAbaItens"]();
        this.dataPortos = new _due_terceiros_model__WEBPACK_IMPORTED_MODULE_5__["DueTerceirosDadosPortos"]();
        this.mensagens = [];
        this.habilitaTipoMov = false;
    }
    DueTerceirosAlteraPortoDeOrigemDestinoComponent.prototype.ngOnInit = function () {
        this.getTiposOperacoes();
    };
    DueTerceirosAlteraPortoDeOrigemDestinoComponent.prototype.getTiposOperacoes = function () {
        var _this = this;
        this.serviceTipoOperacao.get().subscribe(function (resp) {
            _this.tiposOperacoes = resp.filter(function (t) { return t.sitReg !== "E" && t.flagNavio === "S"; });
        });
    };
    DueTerceirosAlteraPortoDeOrigemDestinoComponent.prototype.onChangeTipoOperacao = function () {
        var _this = this;
        if (!this.dataPortos.tipoOperacao) {
            this.dataPortos.tipoMov = "";
            this.habilitaTipoMov = false;
            this.dataPortos.tipoMovimentoNavioId = "";
            return;
        }
        this.serviceTipoOperacao.getById(this.dataPortos.tipoOperacao).subscribe(function (resp) {
            var response = resp;
            _this.dataPortos.tipoMovimentoNavioId = response.tipoMovimentoNavioId;
            if (response.tipoMov === "A") {
                _this.habilitaTipoMov = true;
            }
            else {
                _this.habilitaTipoMov = false;
                _this.dataPortos.tipoMov = "";
                _this.trataTipoMov();
            }
        });
    };
    Object.defineProperty(DueTerceirosAlteraPortoDeOrigemDestinoComponent.prototype, "obrigaTipoMov", {
        get: function () {
            return this.habilitaTipoMov;
        },
        enumerable: true,
        configurable: true
    });
    DueTerceirosAlteraPortoDeOrigemDestinoComponent.prototype.trataTipoMov = function () {
        if (this.dataPortos.tipoMov === "C") {
            this.dataPortos.tipoMovimentoNavioId = "2";
        }
        else if (this.dataPortos.tipoMov === "D") {
            this.dataPortos.tipoMovimentoNavioId = "1";
        }
    };
    DueTerceirosAlteraPortoDeOrigemDestinoComponent.prototype.onSubmit = function (form) {
        var _this = this;
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("formDadosDosPortos").emit(form);
        if (form.invalid) {
            this.funcoes.backToTop();
            return;
        }
        this.service.alteraDadosDosPortos(this.dataPortos).subscribe(function (result) {
            _this.mensagens = _this.message.validationResult(result);
            if (!result.isValid) {
                app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("backError").emit(_this.mensagens);
                _this.funcoes.backToTop();
            }
            else {
                _this.message.success("Sucesso", "messages.dadosDosPortosAlterados");
                jQuery("#due-terceiros-altera-porto-de-origem-destino-dialog").modal("hide");
                _this.refreshItens.emit(_this.dataPortos);
            }
        });
    };
    DueTerceirosAlteraPortoDeOrigemDestinoComponent.prototype.objectSelect = function (current) {
        var _this = this;
        this.dataItem = current;
        this.service.getDadosDosPortos(this.dataItem).subscribe(function (resp) {
            if (!!resp) {
                _this.dataPortos = resp;
            }
            else {
                _this.dataPortos = new _due_terceiros_model__WEBPACK_IMPORTED_MODULE_5__["DueTerceirosDadosPortos"]();
                _this.dataPortos.cliCotriDueTerceirosId = _this.dataItem.cliCotriDueTerceirosId;
                _this.dataPortos.cliCotriRecintoItemId = _this.dataItem.cliCotriDueTerceirosItemId;
            }
        });
    };
    Object.defineProperty(DueTerceirosAlteraPortoDeOrigemDestinoComponent.prototype, "habilitaCodigoACItemAC", {
        get: function () {
            return ['81101'].includes(this.dataPortos.codEnquadramento);
        },
        enumerable: true,
        configurable: true
    });
    DueTerceirosAlteraPortoDeOrigemDestinoComponent.prototype.onCancelar = function () {
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("formDadosDosPortos").emit(false);
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("backError").emit(false);
        this.dataPortos = new _due_terceiros_model__WEBPACK_IMPORTED_MODULE_5__["DueTerceirosDadosPortos"]();
    };
    DueTerceirosAlteraPortoDeOrigemDestinoComponent.ctorParameters = function () { return [
        { type: _due_terceiros_service__WEBPACK_IMPORTED_MODULE_1__["DueTerceirosService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"] },
        { type: app_pages_cadastro_tipo_operacao_tipo_operacao_service__WEBPACK_IMPORTED_MODULE_6__["TipoOperacaoService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], DueTerceirosAlteraPortoDeOrigemDestinoComponent.prototype, "refreshItens", void 0);
    DueTerceirosAlteraPortoDeOrigemDestinoComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-due-terceiros-altera-porto-de-origem-destino',
            template: __importDefault(__webpack_require__(/*! raw-loader!./due-terceiros-altera-porto-de-origem-destino.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-altera-porto-de-origem-destino/due-terceiros-altera-porto-de-origem-destino.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_due_terceiros_service__WEBPACK_IMPORTED_MODULE_1__["DueTerceirosService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"],
            app_pages_cadastro_tipo_operacao_tipo_operacao_service__WEBPACK_IMPORTED_MODULE_6__["TipoOperacaoService"]])
    ], DueTerceirosAlteraPortoDeOrigemDestinoComponent);
    return DueTerceirosAlteraPortoDeOrigemDestinoComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-consulta-nfs-referenciadas/due-terceiros-consulta-nfs-referenciadas.component.ts":
/*!**********************************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-consulta-nfs-referenciadas/due-terceiros-consulta-nfs-referenciadas.component.ts ***!
  \**********************************************************************************************************************************************************************/
/*! exports provided: DueTerceirosConsultaNfsReferenciadasComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DueTerceirosConsultaNfsReferenciadasComponent", function() { return DueTerceirosConsultaNfsReferenciadasComponent; });
/* 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_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_2__ = __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_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 _due_terceiros_model__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../due-terceiros.model */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros.model.ts");
/* harmony import */ var _due_terceiros_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../due-terceiros.service */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros.service.ts");
/* harmony import */ var app_shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/funcoes/object-utils/object-utils.static.service */ "./src/app/shared/services/funcoes/object-utils/object-utils.static.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");
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 DueTerceirosConsultaNfsReferenciadasComponent = /** @class */ (function () {
    function DueTerceirosConsultaNfsReferenciadasComponent(service, funcoesService, messageService) {
        this.service = service;
        this.funcoesService = funcoesService;
        this.messageService = messageService;
        this.dataNfsReferenciadas = new _due_terceiros_model__WEBPACK_IMPORTED_MODULE_4__["DueTerceirosNfsReferenciadas"]();
        this.mensagens = [];
        this.hasDados = false;
    }
    DueTerceirosConsultaNfsReferenciadasComponent.prototype.ngOnInit = function () {
        this.showTable = true;
    };
    DueTerceirosConsultaNfsReferenciadasComponent.prototype.onSubmit = function (form) {
        var _this = this;
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_7__["EventEmitterService"].get("formConsNfsReferenciadas").emit(form);
        if (form.invalid) {
            this.funcoesService.backToTop();
            return;
        }
        if (this.dataNfsReferenciadas.kilos === 0) {
            this.messageService.warning("titles.dueTerceiros", "messages.kilosObrigatorio");
            return;
        }
        this.service.updateNfsReferenciadas(this.dataNfsReferenciadas).subscribe(function (result) {
            _this.mensagens = _this.messageService.validationResult(result);
            if (!result.isValid) {
                _this.messageService.warning("titles.dueTerceiros", _this.mensagens[0]);
            }
            else {
                _this.dataNfsReferenciadas = new _due_terceiros_model__WEBPACK_IMPORTED_MODULE_4__["DueTerceirosNfsReferenciadas"]();
                _this.objectSelect(_this.cliCotriDueTerceirosId);
                _this.showTable = true;
                _this.messageService.success("Sucesso", "messages.registroAtualizado");
            }
        });
    };
    DueTerceirosConsultaNfsReferenciadasComponent.prototype.objectSelect = function (cliCotriDueTerceirosId) {
        var _this = this;
        this.cliCotriDueTerceirosId = cliCotriDueTerceirosId;
        this.service.getNfsReferenciadas(cliCotriDueTerceirosId).subscribe(function (resp) {
            _this.dados = resp;
            _this.hasDados = _this.dados && _this.dados.length > 0;
        });
    };
    DueTerceirosConsultaNfsReferenciadasComponent.prototype.selected = function (val) {
        this.dataNfsReferenciadas = app_shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["ObjectUtilsStaticService"].clone(val);
    };
    DueTerceirosConsultaNfsReferenciadasComponent.prototype.onDbClick = function (val) {
        this.dataNfsReferenciadas = app_shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["ObjectUtilsStaticService"].clone(val);
        this.edit();
    };
    DueTerceirosConsultaNfsReferenciadasComponent.prototype.sair = function () {
        this.showTable = true;
        this.dataNfsReferenciadas = new _due_terceiros_model__WEBPACK_IMPORTED_MODULE_4__["DueTerceirosNfsReferenciadas"]();
        app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_2__["ModalUtilsStaticService"].closeModal("due-terceiros-consulta-nfs-referenciadas-dialog");
    };
    DueTerceirosConsultaNfsReferenciadasComponent.prototype.cancelar = function () {
        this.showTable = true;
        this.dataNfsReferenciadas = new _due_terceiros_model__WEBPACK_IMPORTED_MODULE_4__["DueTerceirosNfsReferenciadas"]();
    };
    DueTerceirosConsultaNfsReferenciadasComponent.prototype.edit = function () {
        this.showTable = false;
    };
    DueTerceirosConsultaNfsReferenciadasComponent.ctorParameters = function () { return [
        { type: _due_terceiros_service__WEBPACK_IMPORTED_MODULE_5__["DueTerceirosService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_1__["FuncoesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] }
    ]; };
    DueTerceirosConsultaNfsReferenciadasComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-due-terceiros-consulta-nfs-referenciadas",
            template: __importDefault(__webpack_require__(/*! raw-loader!./due-terceiros-consulta-nfs-referenciadas.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-consulta-nfs-referenciadas/due-terceiros-consulta-nfs-referenciadas.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_due_terceiros_service__WEBPACK_IMPORTED_MODULE_5__["DueTerceirosService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_1__["FuncoesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"]])
    ], DueTerceirosConsultaNfsReferenciadasComponent);
    return DueTerceirosConsultaNfsReferenciadasComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-exportador/due-terceiros-exportador.component.ts":
/*!**************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-exportador/due-terceiros-exportador.component.ts ***!
  \**************************************************************************************************************************************/
/*! exports provided: DueTerceirosExportadorComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DueTerceirosExportadorComponent", function() { return DueTerceirosExportadorComponent; });
/* 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_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_funcoes_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/services/funcoes/object-utils/object-utils.static.service */ "./src/app/shared/services/funcoes/object-utils/object-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js");
/* harmony import */ var _due_terceiros_constants__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../due-terceiros.constants */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros.constants.ts");
/* harmony import */ var _due_terceiros_model__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../due-terceiros.model */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros.model.ts");
/* harmony import */ var _due_terceiros_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../due-terceiros.service */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-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 __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 DueTerceirosExportadorComponent = /** @class */ (function () {
    function DueTerceirosExportadorComponent(service, loginService, message, funcoesService, permissoesUtils, serviceDestinatario, serviceMaterial) {
        this.service = service;
        this.loginService = loginService;
        this.message = message;
        this.funcoesService = funcoesService;
        this.permissoesUtils = permissoesUtils;
        this.serviceDestinatario = serviceDestinatario;
        this.serviceMaterial = serviceMaterial;
        this.response = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.constantes = new _due_terceiros_constants__WEBPACK_IMPORTED_MODULE_13__["DueTerceirosConstants"]();
        this.detail = false;
        this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_1__["Mascaras"]();
        this.dataExportador = new _due_terceiros_model__WEBPACK_IMPORTED_MODULE_14__["DueTerceirosAbaExportador"]();
        this.showComponents = true;
    }
    //Aba exportador sendo exibida apenas quando actionForm = detail.
    //Conforme documentação, em todas as outras situações a mesma não é exibida.
    //Sendo assim, nenhum tratamento está sendo feito para (Inclusão/Alteração/Exclusão/onSubmit)
    DueTerceirosExportadorComponent.prototype.ngOnInit = function () {
        this.showTable = true;
    };
    DueTerceirosExportadorComponent.prototype.back = function () {
        this.response.emit(true);
        this.showTable = true;
    };
    DueTerceirosExportadorComponent.prototype.new = function () {
        if (this.isDetail) {
            return false;
        }
        this.detail = false;
        this.showTable = false;
        this.response.emit(false);
    };
    DueTerceirosExportadorComponent.prototype.selected = function (val) {
        return __awaiter(this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        this.dataExportador = app_shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["ObjectUtilsStaticService"].clone(val);
                        return [4 /*yield*/, this.trataDados()];
                    case 1:
                        _a.sent();
                        return [2 /*return*/];
                }
            });
        });
    };
    DueTerceirosExportadorComponent.prototype.trataDados = function () {
        return __awaiter(this, void 0, void 0, function () {
            var _this = this;
            return __generator(this, function (_a) {
                Object(rxjs__WEBPACK_IMPORTED_MODULE_12__["forkJoin"])([
                    this.serviceDestinatario.getById(this.dataExportador.destinatarioIdCliente),
                    this.serviceDestinatario.getById(this.dataExportador.destinatarioIdEmitente),
                    this.serviceMaterial.getById(this.dataExportador.materialId)
                ]).subscribe(function (resp) {
                    _this.dataExportador.cliente = !!resp[0] ? resp[0] : new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_2__["Destinatario"]();
                    _this.dataExportador.emitente = !!resp[1] ? resp[1] : new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_2__["Destinatario"]();
                    _this.dataExportador.material = !!resp[2] ? resp[2] : new app_pages_cadastro_material_material_model__WEBPACK_IMPORTED_MODULE_4__["Material"]();
                });
                return [2 /*return*/];
            });
        });
    };
    DueTerceirosExportadorComponent.prototype.validaChaveNfe = function () {
        if (this.funcoesService.isNotUndefinedOrNull(this.dataExportador)) {
            this.dataExportador.nota = +this.funcoesService.getNumeroNota(this.dataExportador.chaveNFe);
            this.dataExportador.serieNotaId = this.funcoesService.getSerieNota(this.dataExportador.chaveNFe);
            var result = this.funcoesService.validaChaveNFe(this.dataExportador.chaveNFe, this.dataExportador.emitente, this.dataExportador.nota, this.dataExportador.serieNotaId);
            if (!result) {
                this.message.warning("titles.validacao", "messages.chaveNfeInvalida");
            }
        }
    };
    DueTerceirosExportadorComponent.prototype.importarDanfe = function (chave) {
    };
    DueTerceirosExportadorComponent.prototype.edit = function () {
        this.detail = false;
        this.showTable = false;
        this.response.emit(false);
    };
    DueTerceirosExportadorComponent.prototype.show = function () {
        this.detail = true;
        this.showTable = false;
        this.response.emit(false);
    };
    DueTerceirosExportadorComponent.prototype.delete = function () {
        if (this.isDetail)
            return;
        this.message.removeConfirm(function () {
        });
    };
    DueTerceirosExportadorComponent.prototype.onSubmit = function (form) {
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_7__["EventEmitterService"].get("formError").emit(form);
        this.showTable = true;
        this.response.emit(true);
    };
    DueTerceirosExportadorComponent.ctorParameters = function () { return [
        { type: _due_terceiros_service__WEBPACK_IMPORTED_MODULE_15__["DueTerceirosService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_6__["LoginService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_11__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_8__["FuncoesService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_10__["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"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Boolean)
    ], DueTerceirosExportadorComponent.prototype, "isDetail", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], DueTerceirosExportadorComponent.prototype, "response", void 0);
    DueTerceirosExportadorComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-due-terceiros-exportador',
            template: __importDefault(__webpack_require__(/*! raw-loader!./due-terceiros-exportador.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-exportador/due-terceiros-exportador.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_due_terceiros_service__WEBPACK_IMPORTED_MODULE_15__["DueTerceirosService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_6__["LoginService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_11__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_8__["FuncoesService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_10__["PermissoesUtilsService"],
            app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_3__["DestinatarioService"],
            app_pages_cadastro_material_material_service__WEBPACK_IMPORTED_MODULE_5__["MaterialService"]])
    ], DueTerceirosExportadorComponent);
    return DueTerceirosExportadorComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-filter/due-terceiros-filter.component.ts":
/*!******************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-filter/due-terceiros-filter.component.ts ***!
  \******************************************************************************************************************************/
/*! exports provided: DueTerceirosFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DueTerceirosFilterComponent", function() { return DueTerceirosFilterComponent; });
/* 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_message_message_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _due_terceiros_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../due-terceiros.constants */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros.constants.ts");
/* harmony import */ var _due_terceiros_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../due-terceiros.service */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros.service.ts");
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/funcoes/date-time-utils/date-time-utils.static.service */ "./src/app/shared/services/funcoes/date-time-utils/date-time-utils.static.service.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};






var DueTerceirosFilterComponent = /** @class */ (function () {
    function DueTerceirosFilterComponent(service, message) {
        this.service = service;
        this.message = message;
        this.constantes = new _due_terceiros_constants__WEBPACK_IMPORTED_MODULE_3__["DueTerceirosConstants"]();
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
    }
    DueTerceirosFilterComponent.prototype.ngOnInit = function () {
    };
    Object.defineProperty(DueTerceirosFilterComponent.prototype, "title", {
        get: function () {
            return this.message.translate("titles.dueTerceiros");
        },
        enumerable: true,
        configurable: true
    });
    DueTerceirosFilterComponent.prototype.onSubmit = function (form) {
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_1__["EventEmitterService"].get("formError").emit(form);
        if (!this.validaDatas()) {
            return;
        }
        if (form.invalid)
            return;
        this.filtrar.emit(this.service.filter);
        jQuery("#due-terceiros-filter-dialog").modal("hide");
    };
    DueTerceirosFilterComponent.prototype.validaDatas = function () {
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["DateTimeUtilsStaticService"].menorA(this.service.filter.dataF, this.service.filter.dataI, ['H', 'M'])) {
            this.message.warning("titles.dueTerceiros", "messages.emissaoDeNaoPodeSerMaiorAte");
            return false;
        }
        return true;
    };
    DueTerceirosFilterComponent.ctorParameters = function () { return [
        { type: _due_terceiros_service__WEBPACK_IMPORTED_MODULE_4__["DueTerceirosService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], DueTerceirosFilterComponent.prototype, "filtrar", void 0);
    DueTerceirosFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-due-terceiros-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./due-terceiros-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-filter/due-terceiros-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_due_terceiros_service__WEBPACK_IMPORTED_MODULE_4__["DueTerceirosService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_2__["MessageService"]])
    ], DueTerceirosFilterComponent);
    return DueTerceirosFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-form/due-terceiros-form.component.ts":
/*!**************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-form/due-terceiros-form.component.ts ***!
  \**************************************************************************************************************************/
/*! exports provided: DueTerceirosFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DueTerceirosFormComponent", function() { return DueTerceirosFormComponent; });
/* 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 app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var app_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 _due_terceiros_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../due-terceiros.constants */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros.constants.ts");
/* harmony import */ var _due_terceiros_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../due-terceiros.service */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros.service.ts");
/* harmony import */ var app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_12__ = __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 app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_13__ = __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 _cadastros_recinto_aduaneiro_recinto_aduaneiro_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../../cadastros/recinto-aduaneiro/recinto-aduaneiro.service */ "./src/app/pages/especificos/cotriguacu/cadastros/recinto-aduaneiro/recinto-aduaneiro.service.ts");
/* harmony import */ var _due_terceiros_model__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../due-terceiros.model */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros.model.ts");
/* harmony import */ var _due_terceiros_altera_porto_de_origem_destino_due_terceiros_altera_porto_de_origem_destino_component__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../due-terceiros-altera-porto-de-origem-destino/due-terceiros-altera-porto-de-origem-destino.component */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-altera-porto-de-origem-destino/due-terceiros-altera-porto-de-origem-destino.component.ts");
/* harmony import */ var _due_terceiros_re_excedente_due_terceiros_re_excedente_component__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../due-terceiros-re-excedente/due-terceiros-re-excedente.component */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-re-excedente/due-terceiros-re-excedente.component.ts");
/* harmony import */ var _due_terceiros_gerar_xml_due_due_terceiros_gerar_xml_due_component__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../due-terceiros-gerar-xml-due/due-terceiros-gerar-xml-due.component */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-gerar-xml-due/due-terceiros-gerar-xml-due.component.ts");
/* harmony import */ var app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_19__ = __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 rxjs__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js");
/* harmony import */ var app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! app/pages/cadastro/destinatario/destinatario.service */ "./src/app/pages/cadastro/destinatario/destinatario.service.ts");
/* harmony import */ var app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! app/pages/cadastro/destinatario/destinatario.model */ "./src/app/pages/cadastro/destinatario/destinatario.model.ts");
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_23__ = __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_pages_cadastro_pier_pier_model__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! app/pages/cadastro/pier/pier.model */ "./src/app/pages/cadastro/pier/pier.model.ts");
/* harmony import */ var app_pages_cadastro_pier_pier_service__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! app/pages/cadastro/pier/pier.service */ "./src/app/pages/cadastro/pier/pier.service.ts");
/* harmony import */ var app_pages_cadastro_navio_navio_service__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! app/pages/cadastro/navio/navio.service */ "./src/app/pages/cadastro/navio/navio.service.ts");
/* harmony import */ var app_pages_cadastro_ce_mercante_ce_mercante_service__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! app/pages/cadastro/ce-mercante/ce-mercante.service */ "./src/app/pages/cadastro/ce-mercante/ce-mercante.service.ts");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_28__ = __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 _due_terceiros_validations__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ../due-terceiros.validations */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros.validations.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 DueTerceirosFormComponent = /** @class */ (function (_super) {
    __extends(DueTerceirosFormComponent, _super);
    function DueTerceirosFormComponent(router, message, activatedRoute, service, funcoesService, permissoesUtils, loginService, configuracao, recintoAduaneiroService, destinatarioService, pierService, serviceNavio, serviceCEMercante) {
        var _this = _super.call(this, new _due_terceiros_constants__WEBPACK_IMPORTED_MODULE_9__["DueTerceirosConstants"](), funcoesService) || this;
        _this.router = router;
        _this.message = message;
        _this.activatedRoute = activatedRoute;
        _this.service = service;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.loginService = loginService;
        _this.configuracao = configuracao;
        _this.recintoAduaneiroService = recintoAduaneiroService;
        _this.destinatarioService = destinatarioService;
        _this.pierService = pierService;
        _this.serviceNavio = serviceNavio;
        _this.serviceCEMercante = serviceCEMercante;
        _this.mensagens = [];
        _this.constantes = new _due_terceiros_constants__WEBPACK_IMPORTED_MODULE_9__["DueTerceirosConstants"]();
        _this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["Mascaras"]();
        _this.itemSelecionado = new _due_terceiros_model__WEBPACK_IMPORTED_MODULE_15__["DueTerceirosAbaItens"]();
        _this.filterVerifSeProgramacaoEstaCorreta = new _due_terceiros_model__WEBPACK_IMPORTED_MODULE_15__["VerifSeProgramacaoEstaCorretaFilter"]();
        _this.pageRoute = "/especificos/cotriguacu/movimentos/dueTerceiros";
        _this.target = _this.funcoesService.getTargetLocation();
        _this.loadConfig = function () {
            if (!_this.configuracao.isLoadConfig())
                return;
            _this.operacaoAppa = _this.configuracao.boolean("OPE", "OperacaoAppa");
            _this.service.progDataAnt = _this.configuracao.boolean("OPE", "ProgDataAnt");
            _this.rEExcedente = _this.configuracao.boolean("OPE", "REExcedente");
            _this.utilizaDUE = _this.configuracao.boolean('OPE', 'UtilizaDUE');
            _this.service.valDtChegada = _this.configuracao.boolean('OPE', 'ValDtChegada');
            _this.service.obrDtAtrSaida = _this.configuracao.boolean('OPE', 'ObrDtAtrSaida');
            _this.outrasOperProg = _this.configuracao.boolean('OPE', 'OutrasOperProg');
            _this.exibirBotaoAlteraREExcedente();
        };
        _this.alteraPortoDeOrigemDestino = function () {
            if (!_this.validaSeAbaItensAtiva())
                return;
            if (_this.service.limpaItemSelecionado || !_this.itemSelecionado.cliCotriDueTerceirosItemId) {
                _this.message.warning("titles.dueTerceiros", "messages.selecioneUmRegistro");
                return;
            }
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 8, function () {
                _this.childDueTerceirosAlteraPortoDeOrigemDestinoComponent.objectSelect(_this.itemSelecionado);
                jQuery("#due-terceiros-altera-porto-de-origem-destino-dialog").modal("show");
            });
        };
        _this.alteraREExcedente = function () {
            if (!_this.validaSeAbaItensAtiva())
                return;
            if (_this.service.limpaItemSelecionado || !_this.itemSelecionado.cliCotriDueTerceirosItemId) {
                _this.message.warning("titles.dueTerceiros", "messages.selecioneUmRegistro");
                return;
            }
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 9, function () {
                _this.childDueTerceirosREExcedenteComponent.objectSelect(_this.itemSelecionado);
                jQuery("#due-terceiros-re-excedente-dialog").modal("show");
            });
        };
        _this.duplicarItem = function () {
            if (!_this.validaSeAbaItensAtiva())
                return;
            if (_this.service.limpaItemSelecionado || !_this.itemSelecionado.cliCotriDueTerceirosItemId) {
                _this.message.warning("titles.dueTerceiros", "messages.naoHaDadosParaDuplicar");
                return;
            }
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 11, function () {
                _this.iniciaDadosVerifSeProgramacaoEstaCorreta('duplicarItem');
                _this.service.verifSeProgramacaoEstaCorreta(_this.filterVerifSeProgramacaoEstaCorreta).subscribe(function (result) {
                    _this.mensagens = _this.message.validationResult(result);
                    if (!result.isValid) {
                        _this.message.warning("titles.dueTerceiros", _this.mensagens[0]);
                    }
                    else {
                        _this.service.dataItem = _this.itemSelecionado;
                        _this.service.dataItem.cliCotriDueTerceirosItemId = 0;
                        _this.service.showTableItem = false;
                        _this.service.detailAbaItem = false;
                    }
                });
            });
        };
        _this.gerarXmlDue = function () {
            if (!_this.validaSeAbaItensAtiva())
                return;
            if (_this.service.limpaItemSelecionado || !_this.itemSelecionado.cliCotriDueTerceirosItemId) {
                _this.message.warning("titles.dueTerceiros", "messages.selecioneUmRegistro");
                return;
            }
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 12, function () {
                _this.service.getImportadoresByFilter(_this.itemSelecionado).subscribe(function (resp) {
                    if (!!resp && resp.length > 0) {
                        _this.childDueTerceirosGerarXmlDueComponent.objectSelect(_this.itemSelecionado.cliCotriDueTerceirosId);
                        app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_19__["ModalUtilsStaticService"].openModal("due-terceiros-gerar-xml-due-dialog");
                    }
                    else {
                        _this.message.warning("titles.dueTerceiros", "messages.naoExistemDadosParaGerarXml");
                        return;
                    }
                });
            });
        };
        _this._print = function () {
            if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["NumberUtilsStaticService"].isPositive(_this.service.dataItem.cliCotriDueTerceirosId)) {
                _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 7, function () { return jQuery("#dueTerceirosPrintModal").modal("show"); });
            }
            else {
                _this.message.warning("titles.dueTerceiros", "messages.selecioneUmRegistro");
            }
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        _this.validation = new _due_terceiros_validations__WEBPACK_IMPORTED_MODULE_29__["DueTerceirosValidation"](_this.message, _this.funcoesService, _this.service);
        return _this;
    }
    DueTerceirosFormComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.showButton = true;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, this.permissoesUtils.getLibRotina(this.actionForm), function () { return __awaiter(_this, void 0, void 0, function () {
            var id;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        this.configuracao.getConfig(this.constantes.listaParam, this.loadConfig);
                        id = app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["NumberUtilsStaticService"].toNumber(this.activatedRoute.snapshot.paramMap.get("id"));
                        return [4 /*yield*/, this.getRecintoAduaneiro()];
                    case 1:
                        _a.sent();
                        if (!app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["NumberUtilsStaticService"].isPositive(id)) return [3 /*break*/, 6];
                        if (!(this.actionForm === app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail)) return [3 /*break*/, 3];
                        return [4 /*yield*/, this.onRefresh(+id)];
                    case 2:
                        _a.sent();
                        return [3 /*break*/, 5];
                    case 3: return [4 /*yield*/, this.gerarDadosTmp(+id)];
                    case 4:
                        _a.sent();
                        _a.label = 5;
                    case 5: return [3 /*break*/, 8];
                    case 6: return [4 /*yield*/, this.gerarDadosTmp()];
                    case 7:
                        _a.sent();
                        _a.label = 8;
                    case 8: return [2 /*return*/];
                }
            });
        }); }, function () { return _this.back(); });
        _super.prototype.addFuncoes.call(this, [
            { action: 'alteraPortoDeOrigemDestino', func: function () { return _this.alteraPortoDeOrigemDestino; } },
            { action: 'alteraREExcedente', func: function () { return _this.alteraREExcedente; } },
            { action: 'duplicarItem', func: function () { return _this.duplicarItem; } },
            { action: 'gerarXmlDue', func: function () { return _this.gerarXmlDue; } },
            { action: '_print', func: function () { return _this._print; } }
        ]);
    };
    DueTerceirosFormComponent.prototype.gerarDadosTmp = function (cliCotriDueTerceirosId) {
        return __awaiter(this, void 0, void 0, function () {
            var filtro;
            var _this = this;
            return __generator(this, function (_a) {
                filtro = {
                    codRotina: this.constantes.sisFormularioId,
                    sitRotina: this.actionForm == app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create ? "I" : "A",
                    cliCotriDueTerceirosId: this.actionForm == app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create ? 0 : cliCotriDueTerceirosId
                };
                this.service.gerarDadosTmp(filtro).subscribe(function (result) { return __awaiter(_this, void 0, void 0, function () {
                    return __generator(this, function (_a) {
                        switch (_a.label) {
                            case 0:
                                this.mensagens = this.message.validationResult(result.validationResult);
                                if (!(result.validationResult != null && !result.validationResult.isValid)) return [3 /*break*/, 1];
                                app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_5__["EventEmitterService"].get("backError").emit(this.mensagens);
                                return [3 /*break*/, 3];
                            case 1: return [4 /*yield*/, this.trataDadosTmp(result)];
                            case 2:
                                _a.sent();
                                _a.label = 3;
                            case 3: return [2 /*return*/];
                        }
                    });
                }); });
                return [2 /*return*/];
            });
        });
    };
    DueTerceirosFormComponent.prototype.onRefresh = function (id) {
        return __awaiter(this, void 0, void 0, function () {
            var resp;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0: return [4 /*yield*/, this.service._getById(id).toPromise()];
                    case 1:
                        resp = _a.sent();
                        if (!!!resp) return [3 /*break*/, 3];
                        return [4 /*yield*/, this.trataDados(resp)];
                    case 2:
                        _a.sent();
                        return [3 /*break*/, 4];
                    case 3:
                        this.message.warning("messages.dueTerceiros", "messages.nenhumRegistroEncontrado");
                        this.back();
                        _a.label = 4;
                    case 4: return [2 /*return*/];
                }
            });
        });
    };
    DueTerceirosFormComponent.prototype.trataDados = function (resp) {
        return __awaiter(this, void 0, void 0, function () {
            var _this = this;
            return __generator(this, function (_a) {
                this.service.data = resp;
                Object(rxjs__WEBPACK_IMPORTED_MODULE_20__["forkJoin"])([
                    this.destinatarioService.getById(this.service.data.codOperPortuario)
                ]).subscribe(function (resp) {
                    _this.service.data.operadorPortuario = !!resp[0] ? resp[0] : new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_22__["Destinatario"]();
                });
                return [2 /*return*/];
            });
        });
    };
    DueTerceirosFormComponent.prototype.trataDadosTmp = function (resp) {
        return __awaiter(this, void 0, void 0, function () {
            var _this = this;
            return __generator(this, function (_a) {
                this.service.data = resp;
                this.service.data.dtPrograma = (this.actionForm === app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create) ? null : this.service.data.dtPrograma;
                Object(rxjs__WEBPACK_IMPORTED_MODULE_20__["forkJoin"])([
                    this.destinatarioService.getById(this.service.data.destinatarioIdAgencia),
                    this.destinatarioService.getById(this.service.data.codOperPortuario),
                    this.pierService.getById(this.service.data.pierId)
                ]).subscribe(function (resp) {
                    _this.service.data.agencia = !!resp[0] ? resp[0] : new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_22__["Destinatario"]();
                    _this.service.data.operadorPortuario = !!resp[1] ? resp[1] : new app_pages_cadastro_destinatario_destinatario_model__WEBPACK_IMPORTED_MODULE_22__["Destinatario"]();
                    _this.service.data.pier = !!resp[2] ? resp[2] : new app_pages_cadastro_pier_pier_model__WEBPACK_IMPORTED_MODULE_24__["Pier"]();
                });
                return [2 /*return*/];
            });
        });
    };
    DueTerceirosFormComponent.prototype.getRecintoAduaneiro = function () {
        return __awaiter(this, void 0, void 0, function () {
            var _a;
            return __generator(this, function (_b) {
                switch (_b.label) {
                    case 0:
                        _a = this;
                        return [4 /*yield*/, this.recintoAduaneiroService.get().toPromise()];
                    case 1:
                        _a.recintosAduaneiros = _b.sent();
                        if (app_shared_services_funcoes_array_utils_array_utils_static_service__WEBPACK_IMPORTED_MODULE_13__["ArrayUtilsStaticService"].any(this.recintosAduaneiros)) {
                            this.recintosAduaneiros = this.recintosAduaneiros.filter(function (val) { return val.sitReg !== 'E'; });
                        }
                        return [2 /*return*/];
                }
            });
        });
    };
    Object.defineProperty(DueTerceirosFormComponent.prototype, "labelEscalaNavio", {
        get: function () {
            if (this.operacaoAppa)
                return "Nº Operação APPA";
            return "Escala";
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(DueTerceirosFormComponent.prototype, "numero", {
        get: function () {
            if (this.actionForm === app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail)
                return this.service.data.cliCotriDueTerceirosId;
            if (this.actionForm === app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit)
                return this.service.data.regTmp;
            return 0;
        },
        enumerable: true,
        configurable: true
    });
    DueTerceirosFormComponent.prototype.edit = function () {
        var _this = this;
        if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["NumberUtilsStaticService"].isPositive(this.service.data.cliCotriDueTerceirosId)) {
            this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () { return __awaiter(_this, void 0, void 0, function () {
                var _this = this;
                return __generator(this, function (_a) {
                    if (this.service.flagLib === "G") {
                        this.message.warning("titles.dueTerceiros", "messages.registroLiberadoParaOperacaoAlteracaoNaoPermitida");
                        return [2 /*return*/];
                    }
                    this.iniciaDadosVerifSeProgramacaoEstaCorreta('edit');
                    this.service.verifSeProgramacaoEstaCorreta(this.filterVerifSeProgramacaoEstaCorreta).subscribe(function (result) {
                        _this.mensagens = _this.message.validationResult(result);
                        if (!result.isValid) {
                            _this.message.warning("titles.dueTerceiros", _this.mensagens[0]);
                        }
                        else {
                            _this.router.navigate(["" + _this.target + _this.pageRoute + "/edit/" + _this.service.data.cliCotriDueTerceirosId]);
                        }
                    });
                    return [2 /*return*/];
                });
            }); });
        }
    };
    DueTerceirosFormComponent.prototype.onSubmit = function (form, create) {
        if (create === void 0) { create = false; }
        return __awaiter(this, void 0, void 0, function () {
            var validations;
            var _this = this;
            return __generator(this, function (_a) {
                app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_5__["EventEmitterService"].get("formDados").emit(form);
                if (form.invalid) {
                    this.funcoesService.backToTop();
                    jQuery("a.nav-link[href='#dados']").click();
                    return [2 /*return*/];
                }
                validations = this.validation.getValidations(this.service.data);
                if (validations && validations.length > 0) {
                    this.mensagens = this.message.validationsForm(validations);
                    app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_5__["EventEmitterService"].get("backError").emit(this.mensagens);
                    this.funcoesService.backToTop();
                    jQuery("a.nav-link[href='#dados']").click();
                    return [2 /*return*/];
                }
                this.service
                    .save(this.service.data, this.funcoesService.isEdit(3))
                    .subscribe(function (result) {
                    _this.mensagens = _this.message.validationResult(result);
                    if (result != null && !result.isValid) {
                        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_5__["EventEmitterService"].get("backError").emit(_this.mensagens);
                        _this.funcoesService.backToTop();
                    }
                    else {
                        _this.message.saveSuccess("titles.dueTerceiros");
                        _this.back();
                        return;
                    }
                });
                return [2 /*return*/];
            });
        });
    };
    DueTerceirosFormComponent.prototype.outNavio = function (navio) {
        var _this = this;
        if (navio && !!navio.destinatarioId) {
            this.serviceNavio.getById(navio.destinatarioId).subscribe(function (resp) {
                if (resp && resp.destinatarioNavio) {
                    _this.service.data.contato = resp.destinatarioNavio.contato;
                    _this.service.data.destinatarioIdAgencia = resp.destinatarioNavio.destinatarioIdAgencia;
                    if (resp.destinatarioNavio.agencia) {
                        _this.service.data.agencia = resp.destinatarioNavio.agencia;
                    }
                }
            });
        }
        return;
    };
    DueTerceirosFormComponent.prototype.desfazer = function () {
        var _this = this;
        if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["NumberUtilsStaticService"].isPositive(this.service.data.cliCotriDueTerceirosId)) {
            this.message.confirm("titles.dueTerceiros", "messages.desejaRealmenteDesfazerOperacao", null, function () { return _this.service.desfazer(_this.service.data.cliCotriDueTerceirosId).subscribe(function (resp) {
                if (!resp.isValid) {
                    _this.mensagens = _this.message.validationResult(resp);
                    _this.message.warning("titles.dueTerceiros", _this.mensagens[0]);
                }
                else {
                    _this.message.success("titles.dueTerceiros", "messages.operacaoDesfeita");
                    _this.service.data = new _due_terceiros_model__WEBPACK_IMPORTED_MODULE_15__["DueTerceirosDto"]();
                    _this.back();
                }
            }); });
        }
    };
    DueTerceirosFormComponent.prototype.updateShowButtom = function (event) {
        this.showButton = event;
    };
    DueTerceirosFormComponent.prototype.refreshItens = function (event) {
        if (!event)
            return;
        this.onRefresh(event.cliCotriDueTerceirosId);
        this.service.limpaItemSelecionado = true;
    };
    DueTerceirosFormComponent.prototype.selectedItem = function (event) {
        return __awaiter(this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                this.itemSelecionado = event;
                this.exibirBotaoGerarXmlDue();
                return [2 /*return*/];
            });
        });
    };
    DueTerceirosFormComponent.prototype.saveAndCreate = function (form) {
        this.onSubmit(form, true);
    };
    DueTerceirosFormComponent.prototype.back = function () {
        this.service.exibeAbaImportadores = false;
        this.funcoesService.desabilitarFiltro();
        this.router.navigate(["" + this.target + this.pageRoute]);
    };
    DueTerceirosFormComponent.prototype.iniciaDadosVerifSeProgramacaoEstaCorreta = function (value) {
        this.filterVerifSeProgramacaoEstaCorreta.cliCotriDueTerceirosId = this.actionForm === app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail ? this.service.data.cliCotriDueTerceirosId : this.service.data.regTmp;
        if (value === 'duplicarItem') {
            this.filterVerifSeProgramacaoEstaCorreta.validos = ['1'];
        }
        if (value === 'edit') {
            this.filterVerifSeProgramacaoEstaCorreta.validos = ['1', '5', '7'];
        }
    };
    DueTerceirosFormComponent.prototype.validaSeAbaItensAtiva = function () {
        var activeTab = jQuery('.tab-pane').find('.active').attr('href');
        var result = (activeTab === '#itens');
        if (!result)
            this.message.warning("titles.dueTerceiros", "messages.precisaEscolherItem");
        return result;
    };
    DueTerceirosFormComponent.prototype.exibirBotaoAlteraREExcedente = function () {
        var exibeBotao = this.rEExcedente;
        this.constantes.listaForm.forEach(function (i) {
            if (i.action === 'alteraREExcedente') {
                i.exibeButton = exibeBotao;
            }
        });
    };
    DueTerceirosFormComponent.prototype.exibirBotaoImprimir = function () {
        var exibeBotao = this.service.exibeBotaoImprimir;
        this.constantes.listaForm.forEach(function (i) {
            if (i.action === '_print') {
                i.exibeButton = exibeBotao;
            }
        });
    };
    DueTerceirosFormComponent.prototype.confirmaImpressao = function (tipoImpressao) {
        switch (tipoImpressao) {
            case "dadosIndex":
                this.printDadosIndex();
                break;
            case "relDeCapaProcesso":
                this.printRelDeCapaProcesso();
                break;
            default:
                break;
        }
    };
    DueTerceirosFormComponent.prototype.printDadosIndex = function () {
        this.constantes.paramRelatorio = {
            filialId: this.loginService.getLogin().filialId,
            dataI: this.service.filter.dataI,
            dataF: this.service.filter.dataF,
            destinatarioIdNavio: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["NumberUtilsStaticService"].toNumber(this.service.filter.destinatarioIdNavio),
            situacao: app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_28__["StringUtilsStaticService"].toString(this.service.filter.situacao)
        };
        _super.prototype.print.call(this, null, true);
    };
    DueTerceirosFormComponent.prototype.printRelDeCapaProcesso = function () {
        this.funcoesService.reportInvoc.invocaRelatorioEspecificos(this.constantes.reportRelDeCapaProcessoId, this.constantes.reportTitulo, {
            filialId: this.loginService.getLogin().filialId,
            cliCotriDueTerceirosId: this.service.data.cliCotriDueTerceirosId
        });
    };
    DueTerceirosFormComponent.prototype.alteraTitleBotaoAlteraPorto = function (title) {
        var titulo = title;
        this.constantes.listaForm.forEach(function (i) {
            if (i.action === 'alteraPortoDeOrigemDestino') {
                i.title = titulo;
            }
        });
    };
    DueTerceirosFormComponent.prototype.exibirBotaoGerarXmlDue = function () {
        var exibeBotao = (this.utilizaDUE && this.itemSelecionado.tipoOperacao === 2 && this.actionForm === app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail);
        this.constantes.listaForm.forEach(function (i) {
            if (i.action === 'gerarXmlDue') {
                i.exibeButton = exibeBotao;
            }
        });
    };
    DueTerceirosFormComponent.prototype.validacoesQuandoAbasClicadas = function (abaAtiva) {
        this.abaAtiva = abaAtiva;
        this.habilitarBotoes();
    };
    Object.defineProperty(DueTerceirosFormComponent.prototype, "habilitaBtnAlteraREExcedente", {
        get: function () {
            var activeAba = (this.abaAtiva === '#itens');
            return (activeAba && this.actionForm === app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail && [1, 5, 6, 7, 8].includes(this.service.data.codSitNavio));
        },
        enumerable: true,
        configurable: true
    });
    DueTerceirosFormComponent.prototype.validaDtPrograma = function () {
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_23__["DateTimeUtilsStaticService"].menorAHoje(this.service.data.dtPrograma) && this.service.valDtChegada && this.service.data.flagChegada !== 'S' && !this.service.progDataAnt) {
            this.message.warning("titles.dueTerceiros", "messages.dataChegadaMenorDataAtual");
            return false;
        }
        return true;
    };
    DueTerceirosFormComponent.prototype.validaDtAtracacao = function () {
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_23__["DateTimeUtilsStaticService"].menorA(this.service.data.dtAtracacao, this.service.data.dtPrograma, ['H', 'M']) && this.service.obrDtAtrSaida) {
            this.message.warning("titles.dueTerceiros", "messages.dataAtracacaoMenorDataChegada");
            return false;
        }
        return true;
    };
    DueTerceirosFormComponent.prototype.validaDtSaida = function () {
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_23__["DateTimeUtilsStaticService"].menorA(this.service.data.dtSaida, this.service.data.dtAtracacao, ['H', 'M']) && this.service.obrDtAtrSaida) {
            this.message.warning("titles.dueTerceiros", "messages.dataSaidaMenorDataAtracacao");
            return false;
        }
        return true;
    };
    DueTerceirosFormComponent.prototype.trataPier = function (pierId) {
        var _this = this;
        this.pierService.getById(pierId).subscribe(function (resp) {
            if (!!resp) {
                _this.service.data.pier = resp;
                _this.validaCaladoSaida();
            }
        });
    };
    DueTerceirosFormComponent.prototype.validaCaladoSaida = function () {
        if (this.service.data.caladoSaida > app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["NumberUtilsStaticService"].toNumber(this.service.data.pier.calado) && app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["NumberUtilsStaticService"].toNumber(this.service.data.pier.calado) > 0) {
            this.message.warning("titles.dueTerceiros", "messages.caladoSaidaMaiorCaladoPier");
            return false;
        }
        return true;
    };
    DueTerceirosFormComponent.prototype.validaCaladoChegada = function () {
        if (this.service.data.caladoChegada > app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["NumberUtilsStaticService"].toNumber(this.service.data.pier.calado) && app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_12__["NumberUtilsStaticService"].toNumber(this.service.data.pier.calado) > 0) {
            this.message.warning("titles.dueTerceiros", "messages.caladoChegadaMaiorCaladoPier");
            return false;
        }
        return true;
    };
    DueTerceirosFormComponent.prototype.habilitarBotoes = function () {
        this.buttonDisabled('listaForm', 'alteraREExcedente', !this.habilitaBtnAlteraREExcedente);
        this.buttonDisabled('listaForm', 'duplicarItem', this.abaAtiva !== '#itens' || this.actionForm === app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail);
        this.buttonDisabled('listaForm', 'gerarXmlDue', this.abaAtiva !== '#itens' || this.actionForm !== app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail);
        this.service.exibeQuantidREAbaItem = (this.habilitaBtnAlteraREExcedente && this.rEExcedente);
    };
    DueTerceirosFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: _due_terceiros_service__WEBPACK_IMPORTED_MODULE_10__["DueTerceirosService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_3__["LoginService"] },
        { type: app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_11__["ConfiguracaoFacade"] },
        { type: _cadastros_recinto_aduaneiro_recinto_aduaneiro_service__WEBPACK_IMPORTED_MODULE_14__["RecintoAduaneiroService"] },
        { type: app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_21__["DestinatarioService"] },
        { type: app_pages_cadastro_pier_pier_service__WEBPACK_IMPORTED_MODULE_25__["PierService"] },
        { type: app_pages_cadastro_navio_navio_service__WEBPACK_IMPORTED_MODULE_26__["NavioService"] },
        { type: app_pages_cadastro_ce_mercante_ce_mercante_service__WEBPACK_IMPORTED_MODULE_27__["CeMercanteService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_due_terceiros_altera_porto_de_origem_destino_due_terceiros_altera_porto_de_origem_destino_component__WEBPACK_IMPORTED_MODULE_16__["DueTerceirosAlteraPortoDeOrigemDestinoComponent"], { static: false }),
        __metadata("design:type", _due_terceiros_altera_porto_de_origem_destino_due_terceiros_altera_porto_de_origem_destino_component__WEBPACK_IMPORTED_MODULE_16__["DueTerceirosAlteraPortoDeOrigemDestinoComponent"])
    ], DueTerceirosFormComponent.prototype, "childDueTerceirosAlteraPortoDeOrigemDestinoComponent", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_due_terceiros_re_excedente_due_terceiros_re_excedente_component__WEBPACK_IMPORTED_MODULE_17__["DueTerceirosREExcedenteComponent"], { static: false }),
        __metadata("design:type", _due_terceiros_re_excedente_due_terceiros_re_excedente_component__WEBPACK_IMPORTED_MODULE_17__["DueTerceirosREExcedenteComponent"])
    ], DueTerceirosFormComponent.prototype, "childDueTerceirosREExcedenteComponent", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_due_terceiros_gerar_xml_due_due_terceiros_gerar_xml_due_component__WEBPACK_IMPORTED_MODULE_18__["DueTerceirosGerarXmlDueComponent"], { static: false }),
        __metadata("design:type", _due_terceiros_gerar_xml_due_due_terceiros_gerar_xml_due_component__WEBPACK_IMPORTED_MODULE_18__["DueTerceirosGerarXmlDueComponent"])
    ], DueTerceirosFormComponent.prototype, "childDueTerceirosGerarXmlDueComponent", void 0);
    DueTerceirosFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-due-terceiros-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./due-terceiros-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-form/due-terceiros-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            _due_terceiros_service__WEBPACK_IMPORTED_MODULE_10__["DueTerceirosService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_6__["FuncoesService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_7__["PermissoesUtilsService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_3__["LoginService"],
            app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_11__["ConfiguracaoFacade"],
            _cadastros_recinto_aduaneiro_recinto_aduaneiro_service__WEBPACK_IMPORTED_MODULE_14__["RecintoAduaneiroService"],
            app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_21__["DestinatarioService"],
            app_pages_cadastro_pier_pier_service__WEBPACK_IMPORTED_MODULE_25__["PierService"],
            app_pages_cadastro_navio_navio_service__WEBPACK_IMPORTED_MODULE_26__["NavioService"],
            app_pages_cadastro_ce_mercante_ce_mercante_service__WEBPACK_IMPORTED_MODULE_27__["CeMercanteService"]])
    ], DueTerceirosFormComponent);
    return DueTerceirosFormComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-gerar-xml-due/due-terceiros-gerar-xml-due.component.ts":
/*!********************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-gerar-xml-due/due-terceiros-gerar-xml-due.component.ts ***!
  \********************************************************************************************************************************************/
/*! exports provided: DueTerceirosGerarXmlDueComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DueTerceirosGerarXmlDueComponent", function() { return DueTerceirosGerarXmlDueComponent; });
/* 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_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_2__ = __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_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 _due_terceiros_model__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../due-terceiros.model */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros.model.ts");
/* harmony import */ var _due_terceiros_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../due-terceiros.service */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros.service.ts");
/* harmony import */ var app_shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/funcoes/object-utils/object-utils.static.service */ "./src/app/shared/services/funcoes/object-utils/object-utils.static.service.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};







var DueTerceirosGerarXmlDueComponent = /** @class */ (function () {
    function DueTerceirosGerarXmlDueComponent(service, funcoesService, messageService) {
        this.service = service;
        this.funcoesService = funcoesService;
        this.messageService = messageService;
        this.dataGerarXmlDue = new _due_terceiros_model__WEBPACK_IMPORTED_MODULE_4__["DueTerceirosAbaItens"]();
        this.mensagens = [];
        this.hasDados = false;
        this.retornoArquivoGerado = new _due_terceiros_model__WEBPACK_IMPORTED_MODULE_4__["DueTerceirosXmlDue"]();
    }
    DueTerceirosGerarXmlDueComponent.prototype.ngOnInit = function () {
    };
    DueTerceirosGerarXmlDueComponent.prototype.objectSelect = function (cliCotriDueTerceirosId) {
        var _this = this;
        this.cliCotriDueTerceirosId = cliCotriDueTerceirosId;
        this.service.getItensById(cliCotriDueTerceirosId).subscribe(function (resp) {
            _this.dados = resp;
            _this.hasDados = _this.dados && _this.dados.length > 0;
        });
    };
    DueTerceirosGerarXmlDueComponent.prototype.selected = function (val) {
        this.dataGerarXmlDue = app_shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["ObjectUtilsStaticService"].clone(val);
    };
    DueTerceirosGerarXmlDueComponent.prototype.cancelar = function () {
        this.dataGerarXmlDue = new _due_terceiros_model__WEBPACK_IMPORTED_MODULE_4__["DueTerceirosAbaItens"]();
        app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_2__["ModalUtilsStaticService"].closeModal("due-terceiros-gerar-xml-due-dialog");
    };
    DueTerceirosGerarXmlDueComponent.prototype.gerarIndividual = function () {
        var _this = this;
        this.service.gerarXmlDueIndividual(this.dataGerarXmlDue).subscribe(function (result) {
            if (_this.funcoesService.isNotUndefinedOrNull(result.validationResult)) {
                _this.mensagens = _this.messageService.validationResult(result.validationResult);
                if (result && !result.validationResult.isValid) {
                    _this.messageService.warning("titles.dueTerceiros", _this.mensagens[0]);
                    return;
                }
            }
            else {
                _this.retornoArquivoGerado = result;
                _this.download();
                _this.messageService.success("Sucesso", _this.retornoArquivoGerado.mensagem);
            }
        });
    };
    DueTerceirosGerarXmlDueComponent.prototype.gerarParaTodos = function () {
        var _this = this;
        this.service.gerarXmlDueParaTodos(this.cliCotriDueTerceirosId).subscribe(function (result) {
            if (_this.funcoesService.isNotUndefinedOrNull(result.validationResult)) {
                _this.mensagens = _this.messageService.validationResult(result.validationResult);
                if (result && !result.validationResult.isValid) {
                    _this.messageService.warning("titles.dueTerceiros", _this.mensagens[0]);
                    return;
                }
            }
            else {
                _this.retornoArquivoGerado = result;
                _this.download();
                _this.messageService.success("Sucesso", _this.retornoArquivoGerado.mensagem);
            }
        });
    };
    DueTerceirosGerarXmlDueComponent.prototype.download = function () {
        if (this.funcoesService.isUndefinedOrNull(this.retornoArquivoGerado)) {
            return;
        }
        var b64 = this.retornoArquivoGerado.arquivoGerado;
        var byteCharacters = atob(b64);
        var byteArrays = [];
        for (var offset = 0; offset < byteCharacters.length; offset += 512) {
            var slice = byteCharacters.slice(offset, offset + 512);
            var byteNumbers = new Array(slice.length);
            for (var i = 0; i < slice.length; i++) {
                byteNumbers[i] = slice.charCodeAt(i);
            }
            var byteArray = new Uint8Array(byteNumbers);
            byteArrays.push(byteArray);
        }
        var tipo = this.retornoArquivoGerado.tipoArquivo.replace(',', '');
        var blobData = new Blob(byteArrays, { type: tipo });
        var win = window;
        if (win.navigator && win.navigator.msSaveOrOpenBlob) { // IE
            win.navigator.msSaveOrOpenBlob(blobData, this.retornoArquivoGerado.nomeArquivo);
        }
        else { // chrome
            var blob = new Blob([blobData], { type: tipo });
            var url = window.URL.createObjectURL(blob);
            var link = document.createElement('a');
            link.href = url;
            link.download = this.retornoArquivoGerado.nomeArquivo;
            link.click();
        }
    };
    DueTerceirosGerarXmlDueComponent.ctorParameters = function () { return [
        { type: _due_terceiros_service__WEBPACK_IMPORTED_MODULE_5__["DueTerceirosService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_1__["FuncoesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] }
    ]; };
    DueTerceirosGerarXmlDueComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-due-terceiros-gerar-xml-due",
            template: __importDefault(__webpack_require__(/*! raw-loader!./due-terceiros-gerar-xml-due.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-gerar-xml-due/due-terceiros-gerar-xml-due.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_due_terceiros_service__WEBPACK_IMPORTED_MODULE_5__["DueTerceirosService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_1__["FuncoesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"]])
    ], DueTerceirosGerarXmlDueComponent);
    return DueTerceirosGerarXmlDueComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-importadores/due-terceiros-importadores.component.ts":
/*!******************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-importadores/due-terceiros-importadores.component.ts ***!
  \******************************************************************************************************************************************/
/*! exports provided: DueTerceirosImportadoresComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DueTerceirosImportadoresComponent", function() { return DueTerceirosImportadoresComponent; });
/* 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 app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/funcoes/object-utils/object-utils.static.service */ "./src/app/shared/services/funcoes/object-utils/object-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _due_terceiros_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../due-terceiros.constants */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros.constants.ts");
/* harmony import */ var _due_terceiros_model__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../due-terceiros.model */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros.model.ts");
/* harmony import */ var _due_terceiros_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../due-terceiros.service */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros.service.ts");
/* harmony import */ var app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/pages/cadastro/destinatario/destinatario.service */ "./src/app/pages/cadastro/destinatario/destinatario.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 DueTerceirosImportadoresComponent = /** @class */ (function () {
    function DueTerceirosImportadoresComponent(service, loginService, message, funcoesService, permissoesUtils, destinatarioService) {
        this.service = service;
        this.loginService = loginService;
        this.message = message;
        this.funcoesService = funcoesService;
        this.permissoesUtils = permissoesUtils;
        this.destinatarioService = destinatarioService;
        this.response = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.mensagens = [];
        this.constantes = new _due_terceiros_constants__WEBPACK_IMPORTED_MODULE_8__["DueTerceirosConstants"]();
        this.detail = false;
        this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_1__["Mascaras"]();
        this.dataImportadores = new _due_terceiros_model__WEBPACK_IMPORTED_MODULE_9__["DueTerceirosAbaImportadores"]();
        this.showComponents = true;
        this.filterVerifSeProgramacaoEstaCorreta = new _due_terceiros_model__WEBPACK_IMPORTED_MODULE_9__["VerifSeProgramacaoEstaCorretaFilter"]();
    }
    DueTerceirosImportadoresComponent.prototype.ngOnInit = function () {
        this.showTable = true;
    };
    DueTerceirosImportadoresComponent.prototype.back = function () {
        this.response.emit(true);
        this.showTable = true;
        this.dataImportadores = new _due_terceiros_model__WEBPACK_IMPORTED_MODULE_9__["DueTerceirosAbaImportadores"]();
    };
    DueTerceirosImportadoresComponent.prototype.new = function () {
        var _this = this;
        if (this.isDetail) {
            return false;
        }
        if (!this.service.data.regTmp) {
            return;
        }
        this.dataImportadores = new _due_terceiros_model__WEBPACK_IMPORTED_MODULE_9__["DueTerceirosAbaImportadores"]();
        this.dataImportadores.cliCotriDueTerceirosId = this.service.data.cliCotriDueTerceirosId;
        this.dataImportadores.cliCotriDueTerceirosItemImportadorItemId = this.service.dataItem.cliCotriDueTerceirosItemId;
        this.iniciaDadosVerifSeProgramacaoEstaCorreta();
        this.service.verifSeProgramacaoEstaCorreta(this.filterVerifSeProgramacaoEstaCorreta).subscribe(function (result) {
            _this.mensagens = _this.message.validationResult(result);
            if (!result.isValid) {
                _this.message.warning("titles.dueTerceiros", _this.mensagens[0]);
            }
            else {
                _this.detail = false;
                _this.showTable = false;
                _this.response.emit(false);
            }
        });
    };
    DueTerceirosImportadoresComponent.prototype.iniciaDadosVerifSeProgramacaoEstaCorreta = function () {
        this.filterVerifSeProgramacaoEstaCorreta.cliCotriDueTerceirosId = this.service.data.regTmp;
        this.filterVerifSeProgramacaoEstaCorreta.validos = ['1'];
    };
    DueTerceirosImportadoresComponent.prototype.selected = function (val) {
        this.dataImportadores = app_shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["ObjectUtilsStaticService"].clone(val);
        this.dataImportadores.cliente = this.itemSelecionado.cliente;
        this.dataImportadores.material = this.itemSelecionado.material;
    };
    DueTerceirosImportadoresComponent.prototype.edit = function () {
        if (!this.dataImportadores.cliCotriDueTerceirosItemImportadorItemId) {
            return;
        }
        if (this.service.flagLib === "G") {
            this.message.warning("titles.dueTerceiros", "messages.registroLiberadoParaOperacaoAlteracaoNaoPermitida");
            return;
        }
        this.detail = false;
        this.showTable = false;
        this.response.emit(false);
    };
    DueTerceirosImportadoresComponent.prototype.show = function () {
        this.detail = true;
        this.showTable = false;
        this.response.emit(false);
    };
    DueTerceirosImportadoresComponent.prototype.delete = function () {
        var _this = this;
        if (this.isDetail)
            return;
        if (!this.dataImportadores.cliCotriDueTerceirosItemImportadorItemId) {
            return;
        }
        if (this.service.flagLib === 'G') {
            this.message.warning("titles.dueTerceiros", "messages.registroLiberadoParaOperacaoAlteracaoNaoPermitida");
            return;
        }
        this.message.removeConfirm(function () {
            _this.service.excluirItemTmpImportadores(_this.dataImportadores).subscribe(function (resp) {
                if (!resp.isValid) {
                    _this.mensagens = _this.message.validationResult(resp);
                    _this.message.warning("titles.dueTerceiros", _this.mensagens[0]);
                }
                else {
                    _this.refreshItemImportadorTmp(_this.service.data.cliCotriDueTerceirosId);
                    _this.dataImportadores = new _due_terceiros_model__WEBPACK_IMPORTED_MODULE_9__["DueTerceirosAbaImportadores"]();
                    _this.response.emit(true);
                    _this.message.success("titles.dueTerceiros", "messages.registroExcluido");
                }
            });
        });
    };
    DueTerceirosImportadoresComponent.prototype.onSubmit = function (form) {
        var _this = this;
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_3__["EventEmitterService"].get("formImp").emit(form);
        if (form.invalid) {
            this.funcoesService.backToTop();
            return;
        }
        this.service.gravarItemImportador(this.dataImportadores).subscribe(function (result) {
            _this.mensagens = _this.message.validationResult(result);
            if (!result.isValid) {
                app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_3__["EventEmitterService"].get("backError").emit(_this.mensagens);
                _this.funcoesService.backToTop();
            }
            else {
                _this.dataImportadores = new _due_terceiros_model__WEBPACK_IMPORTED_MODULE_9__["DueTerceirosAbaImportadores"]();
                _this.showTable = true;
                _this.response.emit(true);
                _this.message.saveSuccess("titles.dueTerceiros");
                _this.refreshItemImportadorTmp(_this.service.data.cliCotriDueTerceirosId);
            }
        });
    };
    DueTerceirosImportadoresComponent.prototype.refreshItemImportadorTmp = function (id) {
        var _this = this;
        this.service.getItemImportadorTmp(id).subscribe(function (resp) {
            _this.service.data.dueTerceirosImportadores = resp;
        });
    };
    DueTerceirosImportadoresComponent.ctorParameters = function () { return [
        { type: _due_terceiros_service__WEBPACK_IMPORTED_MODULE_10__["DueTerceirosService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"] },
        { type: app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_11__["DestinatarioService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Boolean)
    ], DueTerceirosImportadoresComponent.prototype, "isDetail", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", _due_terceiros_model__WEBPACK_IMPORTED_MODULE_9__["DueTerceirosAbaItens"])
    ], DueTerceirosImportadoresComponent.prototype, "itemSelecionado", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], DueTerceirosImportadoresComponent.prototype, "response", void 0);
    DueTerceirosImportadoresComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-due-terceiros-importadores',
            template: __importDefault(__webpack_require__(/*! raw-loader!./due-terceiros-importadores.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-importadores/due-terceiros-importadores.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_due_terceiros_service__WEBPACK_IMPORTED_MODULE_10__["DueTerceirosService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"],
            app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_11__["DestinatarioService"]])
    ], DueTerceirosImportadoresComponent);
    return DueTerceirosImportadoresComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-index/due-terceiros-index.component.ts":
/*!****************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-index/due-terceiros-index.component.ts ***!
  \****************************************************************************************************************************/
/*! exports provided: DueTerceirosIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DueTerceirosIndexComponent", function() { return DueTerceirosIndexComponent; });
/* 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_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_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_5__ = __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 app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _due_terceiros_model__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../due-terceiros.model */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros.model.ts");
/* harmony import */ var _due_terceiros_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../due-terceiros.constants */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros.constants.ts");
/* harmony import */ var _due_terceiros_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../due-terceiros.service */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros.service.ts");
/* harmony import */ var app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_11__ = __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_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _due_terceiros_consulta_nfs_referenciadas_due_terceiros_consulta_nfs_referenciadas_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../due-terceiros-consulta-nfs-referenciadas/due-terceiros-consulta-nfs-referenciadas.component */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-consulta-nfs-referenciadas/due-terceiros-consulta-nfs-referenciadas.component.ts");
/* harmony import */ var _due_terceiros_retificacao_due_xml_due_terceiros_retificacao_due_xml_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../due-terceiros-retificacao-due-xml/due-terceiros-retificacao-due-xml.component */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-retificacao-due-xml/due-terceiros-retificacao-due-xml.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_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! app/shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.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 DueTerceirosIndexComponent = /** @class */ (function (_super) {
    __extends(DueTerceirosIndexComponent, _super);
    function DueTerceirosIndexComponent(router, service, datatables, permissoesUtils, message, loginService, funcoes, configuracao) {
        var _this = _super.call(this, new _due_terceiros_constants__WEBPACK_IMPORTED_MODULE_9__["DueTerceirosConstants"](), funcoes) || this;
        _this.router = router;
        _this.service = service;
        _this.datatables = datatables;
        _this.permissoesUtils = permissoesUtils;
        _this.message = message;
        _this.loginService = loginService;
        _this.funcoes = funcoes;
        _this.configuracao = configuracao;
        _this.data = new _due_terceiros_model__WEBPACK_IMPORTED_MODULE_8__["DueTerceirosIndexDto"]();
        _this.constantes = new _due_terceiros_constants__WEBPACK_IMPORTED_MODULE_9__["DueTerceirosConstants"]();
        _this.mensagens = [];
        _this.filterVerifSeProgramacaoEstaCorreta = new _due_terceiros_model__WEBPACK_IMPORTED_MODULE_8__["VerifSeProgramacaoEstaCorretaFilter"]();
        _this.pageRoute = "/especificos/cotriguacu/movimentos/dueTerceiros";
        _this.target = _this.funcoesService.getTargetLocation();
        _this.loadConfig = function () {
            _this.utilizaDUE = _this.funcoesService.isBoolean(_this.configuracao.lerConfig('OPE', 'UtilizaDUE'));
        };
        _this._print = function () {
            if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["NumberUtilsStaticService"].isPositive(_this.data.cliCotriDueTerceirosId)) {
                _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 7, function () { return jQuery("#dueTerceirosPrintModal").modal("show"); });
            }
            else {
                _this.message.warning("titles.dueTerceiros", "messages.selecioneUmRegistro");
            }
        };
        _this.consultaNfsReferenciadas = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 16, function () {
                if (!_this.data.cliCotriDueTerceirosId) {
                    _this.message.warning("titles.dueTerceiros", "messages.selecioneUmRegistro");
                    return;
                }
                _this.childDueTerceirosConsultaNfsReferenciadasComponent.objectSelect(_this.data.cliCotriDueTerceirosId);
                jQuery("#due-terceiros-consulta-nfs-referenciadas-dialog").modal("show");
            });
        };
        _this.duplicarProcesso = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 10, function () {
                _this.message.confirm("titles.dueTerceiros", "messages.confirmaDuplicacaoDoProcesso", null, function () {
                    return _this.service.duplicarProcesso(_this.data).subscribe(function (result) {
                        _this.mensagens = _this.message.validationResult(result);
                        if (!result.isValid) {
                            _this.message.warning("titles.dueTerceiros", _this.mensagens[0]);
                        }
                        else {
                            _this.message.saveSuccess("titles.dueTerceiros");
                            _this.refresh();
                        }
                    });
                });
            });
        };
        _this.encerrarProcesso = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 14, function () {
                if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["NumberUtilsStaticService"].isPositive(_this.data.cliCotriDueTerceirosId)) {
                    _this.message.confirm("titles.dueTerceiros", "messages.confirmaEncerramentoDoProcesso", null, function () { return _this.service.encerrarProcesso(_this.data.cliCotriDueTerceirosId).subscribe(function (resp) {
                        if (!resp.isValid) {
                            _this.mensagens = _this.message.validationResult(resp);
                            _this.message.warning("titles.dueTerceiros", _this.mensagens[0]);
                        }
                        else {
                            _this.message.saveSuccess("titles.dueTerceiros");
                            _this.data = new _due_terceiros_model__WEBPACK_IMPORTED_MODULE_8__["DueTerceirosIndexDto"]();
                            _this.refresh();
                        }
                    }); });
                }
                else {
                    _this.message.warning("titles.dueTerceiros", "messages.selecioneUmRegistro");
                    return;
                }
            });
        };
        _this.reabrirProcesso = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 15, function () {
                if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["NumberUtilsStaticService"].isPositive(_this.data.cliCotriDueTerceirosId)) {
                    _this.message.confirm("titles.dueTerceiros", "messages.confirmaReaberturaDoProcesso", null, function () { return _this.service.reabrirProcesso(_this.data.cliCotriDueTerceirosId).subscribe(function (resp) {
                        if (!resp.isValid) {
                            _this.mensagens = _this.message.validationResult(resp);
                            _this.message.warning("titles.dueTerceiros", _this.mensagens[0]);
                        }
                        else {
                            _this.message.saveSuccess("titles.dueTerceiros");
                            _this.data = new _due_terceiros_model__WEBPACK_IMPORTED_MODULE_8__["DueTerceirosIndexDto"]();
                            _this.refresh();
                        }
                    }); });
                }
                else {
                    _this.message.warning("titles.dueTerceiros", "messages.selecioneUmRegistro");
                    return;
                }
            });
        };
        _this.retificacaoDueXml = function () {
            _this.permissoesUtils.verificaRotina(_this.constantes.sisFormularioId, 13, function () {
                _this.childDueTerceirosRetificacaoDueXmlComponent.objectSelect(_this.data.cliCotriDueTerceirosId);
                app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_15__["ModalUtilsStaticService"].openModal("due-terceiros-retificacao-due-xml-dialog");
            });
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    DueTerceirosIndexComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.configuracao.getConfig(this.constantes.listaParam, this.loadConfig);
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () { return __awaiter(_this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                if (!this.loginService.isTokenExpired()) {
                    if (this.funcoesService.abrirFiltro) {
                        this.service.filter = new _due_terceiros_model__WEBPACK_IMPORTED_MODULE_8__["DueTerceirosFilterVo"]();
                        this.filtrar();
                    }
                    else {
                        this.refresh();
                    }
                }
                return [2 /*return*/];
            });
        }); }, function () {
            _this.permissoesUtils.back();
        }, true);
        _super.prototype.addFuncoes.call(this, [
            { action: 'consultaNfsReferenciadas', func: function () { return _this.consultaNfsReferenciadas; } },
            { action: 'duplicarProcesso', func: function () { return _this.duplicarProcesso; } },
            { action: 'encerrarProcesso', func: function () { return _this.encerrarProcesso; } },
            { action: 'reabrirProcesso', func: function () { return _this.reabrirProcesso; } },
            { action: 'retificacaoDueXml', func: function () { return _this.retificacaoDueXml; } },
            { action: '_print', func: function () { return _this._print; } }
        ]);
    };
    DueTerceirosIndexComponent.prototype.refresh = function () {
        return __awaiter(this, void 0, void 0, function () {
            var _this = this;
            return __generator(this, function (_a) {
                if (!this.service.filter)
                    return [2 /*return*/];
                this.data = new _due_terceiros_model__WEBPACK_IMPORTED_MODULE_8__["DueTerceirosIndexDto"]();
                this.service.getByFiltro(this.service.filter).subscribe(function (data) {
                    var columns = [
                        _this.datatables.getDataString("fantasiaNavio", "navio"),
                        _this.datatables.getDataDateTime("dtPrograma", "data", "DD/MM/YYYY HH:mm:ss", "15%"),
                        _this.datatables.getDataString("descrAgencia", "agencia"),
                        _this.datatables.getDataString("descrSitNavio", "situacao"),
                    ];
                    _this.datatables.toDataTable({ tableId: "dtDueTerceiros", columns: columns, data: data, columnOrder: 1, orientationOrder: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_4__["EOrientationOrder"].ASC }, function (aData) {
                        _this.data = aData;
                        _this.getDadosById();
                        _this.habilitarBotoes();
                    });
                });
                return [2 /*return*/];
            });
        });
    };
    DueTerceirosIndexComponent.prototype.getDadosById = function () {
        return __awaiter(this, void 0, void 0, function () {
            var resp, primeiroItem, _i, _a, item;
            return __generator(this, function (_b) {
                switch (_b.label) {
                    case 0:
                        this.service.flagLib = '';
                        this.service.trocaTipoImpressao('listagem');
                        return [4 /*yield*/, this.service._getById(this.data.cliCotriDueTerceirosId).toPromise()];
                    case 1:
                        resp = _b.sent();
                        if (!!resp) {
                            if (!!resp.dueTerceirosItens && resp.dueTerceirosItens.length > 0) {
                                primeiroItem = resp.dueTerceirosItens[0];
                                if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["NumberUtilsStaticService"].toNumber(primeiroItem.tipoOperacao) === 2 && this.utilizaDUE) {
                                    this.service.trocaTipoImpressao('relDeCapaProcesso');
                                }
                                else {
                                    this.service.trocaTipoImpressao('listagem');
                                }
                                for (_i = 0, _a = resp.dueTerceirosItens; _i < _a.length; _i++) {
                                    item = _a[_i];
                                    if (item.flagLib === 'G') {
                                        this.service.flagLib = item.flagLib;
                                        break;
                                    }
                                }
                                return [2 /*return*/, this.service.flagLib];
                            }
                        }
                        return [2 /*return*/];
                }
            });
        });
    };
    DueTerceirosIndexComponent.prototype.exibirBotaoImprimir = function () {
        var exibeBotao = this.service.exibeBotaoImprimir;
        this.constantes.listaIndex.forEach(function (i) {
            if (i.action === '_print') {
                i.exibeButton = exibeBotao;
            }
        });
    };
    DueTerceirosIndexComponent.prototype.filtrar = function () {
        jQuery("#due-terceiros-filter-dialog").modal("show");
    };
    DueTerceirosIndexComponent.prototype.executarFiltro = function (event) {
        this.service.filter = event;
        this.refresh();
    };
    DueTerceirosIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    DueTerceirosIndexComponent.prototype.properties = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () {
            _super.prototype.properties.call(_this, _this.data);
        });
    };
    DueTerceirosIndexComponent.prototype.create = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 1, function () { return __awaiter(_this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                this.router.navigate(["" + this.target + this.pageRoute + "/create"]);
                return [2 /*return*/];
            });
        }); });
    };
    DueTerceirosIndexComponent.prototype.edit = function () {
        var _this = this;
        if (!this.itemSelecionado())
            return;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 2, function () { return __awaiter(_this, void 0, void 0, function () {
            var _this = this;
            return __generator(this, function (_a) {
                if (this.service.flagLib === "G") {
                    this.message.warning("titles.dueTerceiros", "messages.registroLiberadoParaOperacaoAlteracaoNaoPermitida");
                    return [2 /*return*/];
                }
                this.iniciaDadosVerifSeProgramacaoEstaCorreta('edit');
                this.service.verifSeProgramacaoEstaCorreta(this.filterVerifSeProgramacaoEstaCorreta).subscribe(function (result) {
                    _this.mensagens = _this.message.validationResult(result);
                    if (!result.isValid) {
                        _this.message.warning("titles.dueTerceiros", _this.mensagens[0]);
                    }
                    else {
                        _this.router.navigate(["" + _this.target + _this.pageRoute + "/edit/" + _this.data.cliCotriDueTerceirosId]);
                    }
                });
                return [2 /*return*/];
            });
        }); });
    };
    DueTerceirosIndexComponent.prototype.remove = function () {
        var _this = this;
        if (!this.itemSelecionado())
            return;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
            _this.iniciaDadosVerifSeProgramacaoEstaCorreta('remove');
            _this.service.verifSeProgramacaoEstaCorreta(_this.filterVerifSeProgramacaoEstaCorreta).subscribe(function (result) {
                _this.mensagens = _this.message.validationResult(result);
                if (!result.isValid) {
                    _this.message.warning("titles.dueTerceiros", _this.mensagens[0]);
                }
                else {
                    _this.message.confirm("titles.dueTerceiros", "messages.confirmaExclusaoDaProgramacao", null, function () {
                        _this.service.removerProgramacao(_this.data.cliCotriDueTerceirosId).subscribe(function (result) {
                            _this.mensagens = _this.message.validationResult(result);
                            if (!result.isValid) {
                                _this.message.warning("titles.dueTerceiros", _this.mensagens[0]);
                            }
                            else {
                                _this.datatables.remove("dtDueTerceiros");
                                _this.data = new _due_terceiros_model__WEBPACK_IMPORTED_MODULE_8__["DueTerceirosIndexDto"]();
                            }
                        });
                    });
                }
            });
        });
    };
    DueTerceirosIndexComponent.prototype.iniciaDadosVerifSeProgramacaoEstaCorreta = function (value) {
        this.filterVerifSeProgramacaoEstaCorreta.cliCotriDueTerceirosId = this.data.cliCotriDueTerceirosId;
        if (value === 'remove') {
            this.filterVerifSeProgramacaoEstaCorreta.validos = ['1'];
        }
        if (value === 'edit') {
            this.filterVerifSeProgramacaoEstaCorreta.validos = ['1', '5', '7'];
        }
    };
    DueTerceirosIndexComponent.prototype.detail = function () {
        var _this = this;
        if (!this.itemSelecionado())
            return;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () { return __awaiter(_this, void 0, void 0, function () {
            return __generator(this, function (_a) {
                this.router.navigate(["" + this.target + this.pageRoute + "/detail/" + this.data.cliCotriDueTerceirosId]);
                return [2 /*return*/];
            });
        }); });
    };
    DueTerceirosIndexComponent.prototype.itemSelecionado = function () {
        if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["NumberUtilsStaticService"].isNotPositive(this.data.cliCotriDueTerceirosId)) {
            this.message.warning("titles.dueTerceiros", "messages.selecioneUmRegistro");
            return false;
        }
        return true;
    };
    DueTerceirosIndexComponent.prototype.confirmaImpressao = function (tipoImpressao) {
        switch (tipoImpressao) {
            case "dadosIndex":
                this.printDadosIndex();
                break;
            case "relDeCapaProcesso":
                this.printRelDeCapaProcesso();
                break;
            default:
                break;
        }
    };
    DueTerceirosIndexComponent.prototype.printDadosIndex = function () {
        this.constantes.paramRelatorio = {
            filialId: this.loginService.getLogin().filialId,
            dataI: this.service.filter.dataI,
            dataF: this.service.filter.dataF,
            destinatarioIdNavio: app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_5__["NumberUtilsStaticService"].toNumber(this.service.filter.destinatarioIdNavio),
            situacao: app_shared_services_funcoes_string_utils_string_utils_static_service__WEBPACK_IMPORTED_MODULE_11__["StringUtilsStaticService"].toString(this.service.filter.situacao)
        };
        _super.prototype.print.call(this, null, true);
    };
    DueTerceirosIndexComponent.prototype.printRelDeCapaProcesso = function () {
        this.funcoesService.reportInvoc.invocaRelatorioEspecificos(this.constantes.reportRelDeCapaProcessoId, this.constantes.reportTitulo, {
            filialId: this.loginService.getLogin().filialId,
            cliCotriDueTerceirosId: this.data.cliCotriDueTerceirosId
        });
    };
    DueTerceirosIndexComponent.prototype.habilitarBotoes = function () {
        this.buttonDisabled('listaIndex', 'encerrarProcesso', !this.data.cliCotriDueTerceirosId || this.data.descrSitNavio === 'Concluido');
        this.buttonDisabled('listaIndex', 'reabrirProcesso', !this.data.cliCotriDueTerceirosId || this.data.descrSitNavio === 'Aberto');
    };
    DueTerceirosIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _due_terceiros_service__WEBPACK_IMPORTED_MODULE_10__["DueTerceirosService"] },
        { type: app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_4__["DatatablesService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_12__["FuncoesService"] },
        { type: app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_16__["ConfiguracaoFacade"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_due_terceiros_consulta_nfs_referenciadas_due_terceiros_consulta_nfs_referenciadas_component__WEBPACK_IMPORTED_MODULE_13__["DueTerceirosConsultaNfsReferenciadasComponent"], { static: false }),
        __metadata("design:type", _due_terceiros_consulta_nfs_referenciadas_due_terceiros_consulta_nfs_referenciadas_component__WEBPACK_IMPORTED_MODULE_13__["DueTerceirosConsultaNfsReferenciadasComponent"])
    ], DueTerceirosIndexComponent.prototype, "childDueTerceirosConsultaNfsReferenciadasComponent", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_due_terceiros_retificacao_due_xml_due_terceiros_retificacao_due_xml_component__WEBPACK_IMPORTED_MODULE_14__["DueTerceirosRetificacaoDueXmlComponent"], { static: false }),
        __metadata("design:type", _due_terceiros_retificacao_due_xml_due_terceiros_retificacao_due_xml_component__WEBPACK_IMPORTED_MODULE_14__["DueTerceirosRetificacaoDueXmlComponent"])
    ], DueTerceirosIndexComponent.prototype, "childDueTerceirosRetificacaoDueXmlComponent", void 0);
    DueTerceirosIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-due-terceiros-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./due-terceiros-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-index/due-terceiros-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _due_terceiros_service__WEBPACK_IMPORTED_MODULE_10__["DueTerceirosService"],
            app_shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_4__["DatatablesService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_6__["PermissoesUtilsService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_7__["MessageService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_2__["LoginService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_12__["FuncoesService"],
            app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_16__["ConfiguracaoFacade"]])
    ], DueTerceirosIndexComponent);
    return DueTerceirosIndexComponent;
}(app_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_3__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-itens/due-terceiros-itens.component.ts":
/*!****************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-itens/due-terceiros-itens.component.ts ***!
  \****************************************************************************************************************************/
/*! exports provided: DueTerceirosItensComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DueTerceirosItensComponent", function() { return DueTerceirosItensComponent; });
/* 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_cadastro_ce_mercante_ce_mercante_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/pages/cadastro/ce-mercante/ce-mercante.service */ "./src/app/pages/cadastro/ce-mercante/ce-mercante.service.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_tipo_operacao_tipo_operacao_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/pages/cadastro/tipo-operacao/tipo-operacao.service */ "./src/app/pages/cadastro/tipo-operacao/tipo-operacao.service.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_components_combos_combo_padrao_combo_padrao_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/components/combos/combo-padrao/combo-padrao.service */ "./src/app/shared/components/combos/combo-padrao/combo-padrao.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_funcoes_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/services/funcoes/object-utils/object-utils.static.service */ "./src/app/shared/services/funcoes/object-utils/object-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _due_terceiros_constants__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../due-terceiros.constants */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros.constants.ts");
/* harmony import */ var _due_terceiros_model__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../due-terceiros.model */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros.model.ts");
/* harmony import */ var _due_terceiros_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../due-terceiros.service */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros.service.ts");
/* harmony import */ var app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! app/shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! app/shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};

















var DueTerceirosItensComponent = /** @class */ (function () {
    function DueTerceirosItensComponent(service, loginService, message, funcoesService, permissoesUtils, serviceTipoOperacao, comboPadraoService, serviceCEMercante, serviceDestinatario, configuracao) {
        var _this = this;
        this.service = service;
        this.loginService = loginService;
        this.message = message;
        this.funcoesService = funcoesService;
        this.permissoesUtils = permissoesUtils;
        this.serviceTipoOperacao = serviceTipoOperacao;
        this.comboPadraoService = comboPadraoService;
        this.serviceCEMercante = serviceCEMercante;
        this.serviceDestinatario = serviceDestinatario;
        this.configuracao = configuracao;
        this.response = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.selectedItem = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.titleBotaoAlteraPorto = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.exibirBtnImprimir = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.mensagens = [];
        this.constantes = new _due_terceiros_constants__WEBPACK_IMPORTED_MODULE_12__["DueTerceirosConstants"]();
        this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_1__["Mascaras"]();
        this.showComponents = true;
        this.unidades = [];
        this.exibeDensidade = false;
        this.filterVerifSeProgramacaoEstaCorreta = new _due_terceiros_model__WEBPACK_IMPORTED_MODULE_13__["VerifSeProgramacaoEstaCorretaFilter"]();
        this.loadConfig = function () {
            _this.camposObrigatorios = _this.funcoesService.isBoolean(_this.configuracao.lerConfig('OPE', 'CamposObrigatorios'));
            _this.utilizaDUE = _this.funcoesService.isBoolean(_this.configuracao.lerConfig('OPE', 'UtilizaDUE'));
            _this.propriedadeCarga = _this.configuracao.number("OPE", "PropriedadeCarga");
        };
    }
    DueTerceirosItensComponent.prototype.ngOnInit = function () {
        this.service.showTableItem = true;
        this.configuracao.getConfig(this.constantes.listaParam, this.loadConfig);
        this.carregaCombos();
        this.trataPropriedadeCarga();
    };
    DueTerceirosItensComponent.prototype.back = function () {
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_7__["EventEmitterService"].get("formError").emit(false);
        this.response.emit(true);
        this.service.showTableItem = true;
        this.service.exibeAbaImportadores = false;
        this.service.dataItem = new _due_terceiros_model__WEBPACK_IMPORTED_MODULE_13__["DueTerceirosAbaItens"]();
    };
    DueTerceirosItensComponent.prototype.new = function () {
        var _this = this;
        if (this.isDetail) {
            return false;
        }
        if ((this.actionForm !== app_config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].create) && !this.service.data.regTmp) {
            return;
        }
        if (this.actionForm !== app_config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].create) {
            this.iniciaDadosVerifSeProgramacaoEstaCorreta();
            this.service.verifSeProgramacaoEstaCorreta(this.filterVerifSeProgramacaoEstaCorreta).subscribe(function (result) {
                _this.mensagens = _this.message.validationResult(result);
                if (!result.isValid) {
                    _this.message.warning("titles.dueTerceiros", _this.mensagens[0]);
                }
                else {
                    _this.service.detailAbaItem = false;
                    _this.service.showTableItem = false;
                    _this.service.dataItem = new _due_terceiros_model__WEBPACK_IMPORTED_MODULE_13__["DueTerceirosAbaItens"]();
                    _this.response.emit(false);
                }
            });
        }
        else {
            this.service.detailAbaItem = false;
            this.service.showTableItem = false;
            this.service.dataItem = new _due_terceiros_model__WEBPACK_IMPORTED_MODULE_13__["DueTerceirosAbaItens"]();
            this.response.emit(false);
        }
    };
    DueTerceirosItensComponent.prototype.iniciaDadosVerifSeProgramacaoEstaCorreta = function () {
        this.filterVerifSeProgramacaoEstaCorreta.cliCotriDueTerceirosId = this.service.data.regTmp;
        this.filterVerifSeProgramacaoEstaCorreta.validos = ['1'];
    };
    DueTerceirosItensComponent.prototype.selected = function (val) {
        this.service.dataItem = app_shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_9__["ObjectUtilsStaticService"].clone(val);
        this.trataControladora();
        this.trataTipoOperacao();
        this.getCeMercanteByNavio(this.service.data.destinatarioIdNavio);
        this.selectedItem.emit(this.service.dataItem);
        this.service.limpaItemSelecionado = false;
    };
    DueTerceirosItensComponent.prototype.trataCodEnquadramento = function () {
        this.exibeCodidoAcItemAcTipoAc = ['81101'].includes(this.service.dataItem.codEnquadramento) ? true : false;
    };
    DueTerceirosItensComponent.prototype.onChangeTipoOperacao = function () {
        var _this = this;
        if (!this.service.dataItem.tipoOperacao) {
            this.service.dataItem.tipoMov = "";
            return;
        }
        this.serviceTipoOperacao.getById(this.service.dataItem.tipoOperacao).subscribe(function (resp) {
            var response = resp;
            if (response.tipoMov === "A") {
                _this.service.dataItem.tipoMov = "C";
                _this.habilitaTipoMov = true;
            }
            else if (response.tipoMov === "D") {
                _this.service.dataItem.tipoMov = "D";
                _this.habilitaTipoMov = false;
            }
            else {
                _this.service.dataItem.tipoMov = response.tipoMov;
                if (_this.service.dataItem.tipoMov === "C") {
                    _this.habilitaTipoMov = true;
                }
                else {
                    _this.habilitaTipoMov = false;
                }
            }
            if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_16__["NumberUtilsStaticService"].toNumber(response.tipoMovimentoNavioId) > 0) {
                _this.service.dataItem.tipoMovimentoNavioId = response.tipoMovimentoNavioId;
            }
            _this.trataTipoMov();
        });
        this.trataTipoOperacao();
    };
    DueTerceirosItensComponent.prototype.trataTipoMov = function () {
        if (!this.service.detailAbaItem && this.service.dataItem.tipoMov === 'C') {
            this.service.dataItem.tipoMovimentoNavioId = "2";
        }
        else if (!this.service.detailAbaItem && this.service.dataItem.tipoMov === 'D') {
            this.service.dataItem.tipoMovimentoNavioId = "1";
        }
    };
    DueTerceirosItensComponent.prototype.trataTipoOperacao = function () {
        if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_16__["NumberUtilsStaticService"].toNumber(this.service.dataItem.tipoOperacao) === 2 && this.utilizaDUE) {
            this.isUtilizaDUE = true;
            this.service.exibeAbaImportadores = true;
            this.service.exibeBotaoImprimir = true;
            this.service.trocaTipoImpressao('relDeCapaProcesso');
            this.service.titleBotaoAlteraPorto = 'alteraPortoDeOrigemDestinoEEnquadramento';
            this.alteraTitleBotaoAlteraPorto();
            this.exibirBotaoImprimir();
        }
        else if (app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_16__["NumberUtilsStaticService"].toNumber(this.service.dataItem.tipoOperacao) !== 2) {
            this.isUtilizaDUE = false;
            this.service.exibeAbaImportadores = false;
            this.service.exibeBotaoImprimir = false;
            this.service.trocaTipoImpressao('listagem');
            this.service.titleBotaoAlteraPorto = 'alteraPortoDeOrigemDestino';
            this.alteraTitleBotaoAlteraPorto();
            this.exibirBotaoImprimir();
        }
    };
    DueTerceirosItensComponent.prototype.exibirBotaoImprimir = function () {
        this.exibirBtnImprimir.emit(true);
    };
    DueTerceirosItensComponent.prototype.alteraTitleBotaoAlteraPorto = function () {
        this.titleBotaoAlteraPorto.emit(true);
    };
    DueTerceirosItensComponent.prototype.carregaCombos = function () {
        this.getTiposOperacoes();
        this.getUnidades();
    };
    DueTerceirosItensComponent.prototype.getTiposOperacoes = function () {
        var _this = this;
        this.serviceTipoOperacao.get().subscribe(function (resp) {
            _this.tiposOperacoes = resp.filter(function (t) { return t.sitReg !== "E" && t.flagNavio === "S"; });
        });
    };
    DueTerceirosItensComponent.prototype.getUnidades = function () {
        var _this = this;
        this.comboPadraoService.get("Unidade", "Unidade", "DescrUnidade", true).subscribe(function (resp) {
            _this.unidades = resp.filter(function (u) { return u.chave === "KG"
                || u.chave === "M3"
                || u.chave === "LT"
                || u.chave === "UN"; });
        });
    };
    DueTerceirosItensComponent.prototype.trataControladora = function () {
        var _this = this;
        this.serviceDestinatario.getById(this.service.dataItem.codControladora).subscribe(function (resp) {
            _this.service.dataItem.controladora = resp;
        });
    };
    DueTerceirosItensComponent.prototype.trataPropriedadeCarga = function () {
        if (this.propriedadeCarga === this.service.dataItem.destinatarioIdCliente) {
            this.service.dataItem.propriedadeCarga = 1;
        }
        else {
            this.service.dataItem.propriedadeCarga = 2;
        }
    };
    DueTerceirosItensComponent.prototype.edit = function () {
        if (!this.service.dataItem.cliCotriDueTerceirosItemId || this.isDetail) {
            return;
        }
        if (this.service.flagLib === "G") {
            this.message.warning("titles.dueTerceiros", "messages.registroLiberadoParaOperacaoAlteracaoNaoPermitida");
            return;
        }
        this.service.detailAbaItem = false;
        this.service.showTableItem = false;
        this.response.emit(false);
    };
    DueTerceirosItensComponent.prototype.show = function () {
        if (!this.service.dataItem.cliCotriDueTerceirosItemId) {
            return;
        }
        this.service.detailAbaItem = true;
        this.service.showTableItem = false;
        this.response.emit(false);
    };
    DueTerceirosItensComponent.prototype.delete = function () {
        var _this = this;
        if (this.isDetail)
            return;
        if (!this.service.dataItem.cliCotriDueTerceirosItemId) {
            return;
        }
        if (this.service.flagLib === 'G') {
            this.message.warning("titles.dueTerceiros", "messages.registroLiberadoParaOperacaoAlteracaoNaoPermitida");
            return;
        }
        this.message.removeConfirm(function () {
            _this.service.excluirItemTmp(_this.service.dataItem).subscribe(function (resp) {
                if (!resp.isValid) {
                    _this.mensagens = _this.message.validationResult(resp);
                    _this.message.warning("titles.dueTerceiros", _this.mensagens[0]);
                }
                else {
                    _this.refreshItensTmp(_this.service.dataItem.cliCotriDueTerceirosId);
                    _this.service.dataItem = new _due_terceiros_model__WEBPACK_IMPORTED_MODULE_13__["DueTerceirosAbaItens"]();
                    _this.response.emit(true);
                    _this.message.success("titles.dueTerceiros", "messages.registroExcluido");
                }
            });
        });
    };
    DueTerceirosItensComponent.prototype.onSubmit = function (form) {
        var _this = this;
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_7__["EventEmitterService"].get("formItem").emit(form);
        if (form.invalid) {
            this.funcoesService.backToTop();
            return;
        }
        this.service.dataItem.cliCotriDueTerceirosId = this.service.data.cliCotriDueTerceirosId;
        this.service.gravarItem(this.service.dataItem).subscribe(function (result) {
            _this.mensagens = _this.message.validationResult(result);
            if (!result.isValid) {
                app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_7__["EventEmitterService"].get("backError").emit(_this.mensagens);
                _this.funcoesService.backToTop();
            }
            else {
                _this.service.dataItem = new _due_terceiros_model__WEBPACK_IMPORTED_MODULE_13__["DueTerceirosAbaItens"]();
                _this.service.showTableItem = true;
                _this.response.emit(true);
                _this.message.saveSuccess("titles.dueTerceiros");
                _this.refreshItensTmp(_this.service.data.cliCotriDueTerceirosId);
            }
        });
    };
    DueTerceirosItensComponent.prototype.refreshItensTmp = function (id) {
        var _this = this;
        this.service.getItensTmpById(id).subscribe(function (resp) {
            _this.service.data.dueTerceirosItens = resp;
        });
    };
    DueTerceirosItensComponent.prototype.trataUnidade = function () {
        if (this.service.dataItem.unidadeId && (this.service.dataItem.unidadeId == 'LT' || this.service.dataItem.unidadeId == 'M3')) {
            this.exibeDensidade = true;
            this.trataDensidade();
        }
        else {
            this.service.dataItem.densidade = 0;
            this.exibeDensidade = false;
        }
    };
    DueTerceirosItensComponent.prototype.trataMaterial = function (material) {
        if (!material)
            return;
        this.service.dataItem.material = material;
        this.trataDensidade();
        this.trataTipoCarga();
    };
    DueTerceirosItensComponent.prototype.trataTipoCarga = function () {
        if (!!this.service.dataItem.material && !!this.service.dataItem.material.tipoDeMaterial.tipoGranel) {
            this.service.dataItem.tipoCarga = app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_16__["NumberUtilsStaticService"].toNumber(this.service.dataItem.material.tipoDeMaterial.tipoGranel);
        }
    };
    DueTerceirosItensComponent.prototype.trataCliente = function (cliente) {
        if (!cliente)
            return;
        this.service.dataItem.cliente = cliente;
        this.trataPropriedadeCarga();
    };
    DueTerceirosItensComponent.prototype.trataDensidade = function () {
        if (!this.service.detailAbaItem && this.exibeDensidade && !!this.service.dataItem.materialId) {
            this.service.dataItem.densidade = this.service.dataItem.material.densidadePadrao;
        }
    };
    DueTerceirosItensComponent.prototype.getCeMercanteByNavio = function (destinatarioIdNavio) {
        var _this = this;
        if (!destinatarioIdNavio || destinatarioIdNavio === 0) {
            return;
        }
        this.serviceCEMercante.getByNavio(destinatarioIdNavio).subscribe(function (resp) {
            _this.service.ceMercanteItemList = resp.filter(function (c) { return c.sitReg !== "E"; });
        });
    };
    DueTerceirosItensComponent.ctorParameters = function () { return [
        { type: _due_terceiros_service__WEBPACK_IMPORTED_MODULE_14__["DueTerceirosService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_5__["LoginService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_11__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_8__["FuncoesService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_10__["PermissoesUtilsService"] },
        { type: app_pages_cadastro_tipo_operacao_tipo_operacao_service__WEBPACK_IMPORTED_MODULE_4__["TipoOperacaoService"] },
        { type: app_shared_components_combos_combo_padrao_combo_padrao_service__WEBPACK_IMPORTED_MODULE_6__["ComboPadraoService"] },
        { type: app_pages_cadastro_ce_mercante_ce_mercante_service__WEBPACK_IMPORTED_MODULE_2__["CeMercanteService"] },
        { type: app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_3__["DestinatarioService"] },
        { type: app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_15__["ConfiguracaoFacade"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Boolean)
    ], DueTerceirosItensComponent.prototype, "isDetail", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Number)
    ], DueTerceirosItensComponent.prototype, "actionForm", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], DueTerceirosItensComponent.prototype, "response", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], DueTerceirosItensComponent.prototype, "selectedItem", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], DueTerceirosItensComponent.prototype, "titleBotaoAlteraPorto", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], DueTerceirosItensComponent.prototype, "exibirBtnImprimir", void 0);
    DueTerceirosItensComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-due-terceiros-itens',
            template: __importDefault(__webpack_require__(/*! raw-loader!./due-terceiros-itens.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-itens/due-terceiros-itens.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_due_terceiros_service__WEBPACK_IMPORTED_MODULE_14__["DueTerceirosService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_5__["LoginService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_11__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_8__["FuncoesService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_10__["PermissoesUtilsService"],
            app_pages_cadastro_tipo_operacao_tipo_operacao_service__WEBPACK_IMPORTED_MODULE_4__["TipoOperacaoService"],
            app_shared_components_combos_combo_padrao_combo_padrao_service__WEBPACK_IMPORTED_MODULE_6__["ComboPadraoService"],
            app_pages_cadastro_ce_mercante_ce_mercante_service__WEBPACK_IMPORTED_MODULE_2__["CeMercanteService"],
            app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_3__["DestinatarioService"],
            app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_15__["ConfiguracaoFacade"]])
    ], DueTerceirosItensComponent);
    return DueTerceirosItensComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-observacoes/due-terceiros-observacoes.component.ts":
/*!****************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-observacoes/due-terceiros-observacoes.component.ts ***!
  \****************************************************************************************************************************************/
/*! exports provided: DueTerceirosObservacoesComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DueTerceirosObservacoesComponent", function() { return DueTerceirosObservacoesComponent; });
/* 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_message_message_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _due_terceiros_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../due-terceiros.service */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros.service.ts");
/* harmony import */ var _due_terceiros_model__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../due-terceiros.model */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros.model.ts");
/* harmony import */ var app_config_enumerables__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/config/enumerables */ "./src/app/config/enumerables.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 DueTerceirosObservacoesComponent = /** @class */ (function () {
    function DueTerceirosObservacoesComponent(service, message) {
        this.service = service;
        this.message = message;
        this.response = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.mensagens = [];
        this.filterVerifSeProgramacaoEstaCorreta = new _due_terceiros_model__WEBPACK_IMPORTED_MODULE_3__["VerifSeProgramacaoEstaCorretaFilter"]();
        this.detail = true;
    }
    DueTerceirosObservacoesComponent.prototype.ngOnInit = function () {
    };
    DueTerceirosObservacoesComponent.prototype.trataObservacoes = function () {
        var maxLength = 250;
        for (var i = 0; i < 8; i++) {
            var startIndex = i * maxLength;
            var endIndex = startIndex + maxLength;
            var substring = this.service.data.dueTerceirosObservacoes.observacoes.substring(startIndex, endIndex);
            this.service.data.dueTerceirosObservacoes["observacoes" + (i + 1)] = substring;
        }
    };
    Object.defineProperty(DueTerceirosObservacoesComponent.prototype, "desabilitaTextareaObservacoes", {
        get: function () {
            if (this.actionForm === app_config_enumerables__WEBPACK_IMPORTED_MODULE_4__["ActionForm"].detail)
                return true;
            if (this.actionForm === app_config_enumerables__WEBPACK_IMPORTED_MODULE_4__["ActionForm"].create)
                return false;
            if (this.detail)
                return true;
            return false;
        },
        enumerable: true,
        configurable: true
    });
    DueTerceirosObservacoesComponent.prototype.edit = function () {
        var _this = this;
        if (!this.service.data.regTmp) {
            return;
        }
        if (this.service.flagLib === "G") {
            this.message.warning("titles.dueTerceiros", "messages.registroLiberadoParaOperacaoAlteracaoNaoPermitida");
            return;
        }
        this.iniciaDadosVerifSeProgramacaoEstaCorreta();
        this.service.verifSeProgramacaoEstaCorreta(this.filterVerifSeProgramacaoEstaCorreta).subscribe(function (result) {
            _this.mensagens = _this.message.validationResult(result);
            if (!result.isValid) {
                _this.message.warning("titles.dueTerceiros", _this.mensagens[0]);
            }
            else {
                _this.detail = false;
            }
        });
    };
    DueTerceirosObservacoesComponent.prototype.iniciaDadosVerifSeProgramacaoEstaCorreta = function () {
        this.filterVerifSeProgramacaoEstaCorreta.cliCotriDueTerceirosId = this.service.data.regTmp;
        this.filterVerifSeProgramacaoEstaCorreta.validos = ['1', '5', '7'];
    };
    DueTerceirosObservacoesComponent.ctorParameters = function () { return [
        { type: _due_terceiros_service__WEBPACK_IMPORTED_MODULE_2__["DueTerceirosService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_1__["MessageService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Number)
    ], DueTerceirosObservacoesComponent.prototype, "actionForm", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], DueTerceirosObservacoesComponent.prototype, "response", void 0);
    DueTerceirosObservacoesComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-due-terceiros-observacoes',
            template: __importDefault(__webpack_require__(/*! raw-loader!./due-terceiros-observacoes.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-observacoes/due-terceiros-observacoes.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_due_terceiros_service__WEBPACK_IMPORTED_MODULE_2__["DueTerceirosService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_1__["MessageService"]])
    ], DueTerceirosObservacoesComponent);
    return DueTerceirosObservacoesComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-outras-operacoes/due-terceiros-outras-operacoes.component.ts":
/*!**************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-outras-operacoes/due-terceiros-outras-operacoes.component.ts ***!
  \**************************************************************************************************************************************************/
/*! exports provided: DueTerceirosOutrasOperacoesComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DueTerceirosOutrasOperacoesComponent", function() { return DueTerceirosOutrasOperacoesComponent; });
/* 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_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/pages/cadastro/destinatario/destinatario.service */ "./src/app/pages/cadastro/destinatario/destinatario.service.ts");
/* harmony import */ var app_pages_cadastro_tipo_operacao_tipo_operacao_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/pages/cadastro/tipo-operacao/tipo-operacao.service */ "./src/app/pages/cadastro/tipo-operacao/tipo-operacao.service.ts");
/* harmony import */ var app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/pages/login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var app_shared_components_combos_combo_padrao_combo_padrao_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/components/combos/combo-padrao/combo-padrao.service */ "./src/app/shared/components/combos/combo-padrao/combo-padrao.service.ts");
/* harmony import */ var app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! app/shared/services/funcoes/object-utils/object-utils.static.service */ "./src/app/shared/services/funcoes/object-utils/object-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _due_terceiros_constants__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../due-terceiros.constants */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros.constants.ts");
/* harmony import */ var _due_terceiros_model__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../due-terceiros.model */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros.model.ts");
/* harmony import */ var _due_terceiros_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../due-terceiros.service */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-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 DueTerceirosOutrasOperacoesComponent = /** @class */ (function () {
    function DueTerceirosOutrasOperacoesComponent(service, loginService, message, funcoesService, permissoesUtils, serviceTipoOperacao, comboPadraoService, serviceDestinatario) {
        this.service = service;
        this.loginService = loginService;
        this.message = message;
        this.funcoesService = funcoesService;
        this.permissoesUtils = permissoesUtils;
        this.serviceTipoOperacao = serviceTipoOperacao;
        this.comboPadraoService = comboPadraoService;
        this.serviceDestinatario = serviceDestinatario;
        this.response = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.mensagens = [];
        this.constantes = new _due_terceiros_constants__WEBPACK_IMPORTED_MODULE_11__["DueTerceirosConstants"]();
        this.detail = false;
        this.mascara = new app_config_enumerables__WEBPACK_IMPORTED_MODULE_1__["Mascaras"]();
        this.dataOutrasOperacoes = new _due_terceiros_model__WEBPACK_IMPORTED_MODULE_12__["DueTerceirosAbaOutrasOperacoes"]();
        this.showComponents = true;
        this.unidades = [];
        this.filterVerifSeProgramacaoEstaCorreta = new _due_terceiros_model__WEBPACK_IMPORTED_MODULE_12__["VerifSeProgramacaoEstaCorretaFilter"]();
    }
    DueTerceirosOutrasOperacoesComponent.prototype.ngOnInit = function () {
        this.showTable = true;
        this.carregaCombos();
    };
    DueTerceirosOutrasOperacoesComponent.prototype.back = function () {
        this.response.emit(true);
        this.showTable = true;
        this.dataOutrasOperacoes = new _due_terceiros_model__WEBPACK_IMPORTED_MODULE_12__["DueTerceirosAbaOutrasOperacoes"]();
    };
    DueTerceirosOutrasOperacoesComponent.prototype.new = function () {
        var _this = this;
        if (this.isDetail) {
            return false;
        }
        if ((this.actionForm !== app_config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].create) && !this.service.data.regTmp) {
            return;
        }
        if (this.actionForm !== app_config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].create) {
            this.iniciaDadosVerifSeProgramacaoEstaCorreta('new');
            this.service.verifSeProgramacaoEstaCorreta(this.filterVerifSeProgramacaoEstaCorreta).subscribe(function (result) {
                _this.mensagens = _this.message.validationResult(result);
                if (!result.isValid) {
                    _this.message.warning("titles.dueTerceiros", _this.mensagens[0]);
                }
                else {
                    _this.dataOutrasOperacoes = new _due_terceiros_model__WEBPACK_IMPORTED_MODULE_12__["DueTerceirosAbaOutrasOperacoes"]();
                    _this.detail = false;
                    _this.showTable = false;
                    _this.response.emit(false);
                }
            });
        }
        else {
            this.dataOutrasOperacoes = new _due_terceiros_model__WEBPACK_IMPORTED_MODULE_12__["DueTerceirosAbaOutrasOperacoes"]();
            this.detail = false;
            this.showTable = false;
            this.response.emit(false);
        }
    };
    DueTerceirosOutrasOperacoesComponent.prototype.selected = function (val) {
        this.dataOutrasOperacoes = app_shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_8__["ObjectUtilsStaticService"].clone(val);
    };
    DueTerceirosOutrasOperacoesComponent.prototype.onChangeTipoOperacao = function () {
        var _this = this;
        if (!this.dataOutrasOperacoes.tipoOperacao) {
            this.dataOutrasOperacoes.tipoMov = "";
            return;
        }
        this.serviceTipoOperacao.getById(this.dataOutrasOperacoes.tipoOperacao).subscribe(function (resp) {
            if (!!resp) {
                var response = resp;
                if (response.tipoMov !== "A") {
                    _this.dataOutrasOperacoes.tipoMov = response.tipoMov;
                }
            }
        });
    };
    Object.defineProperty(DueTerceirosOutrasOperacoesComponent.prototype, "habilitaTipoMov", {
        get: function () {
            return (this.dataOutrasOperacoes.tipoMov === 'A' && !this.detail);
        },
        enumerable: true,
        configurable: true
    });
    DueTerceirosOutrasOperacoesComponent.prototype.carregaCombos = function () {
        this.getTiposOperacoes();
        this.getUnidades();
    };
    DueTerceirosOutrasOperacoesComponent.prototype.getTiposOperacoes = function () {
        var _this = this;
        this.serviceTipoOperacao.get().subscribe(function (resp) {
            _this.tiposOperacoes = resp.filter(function (t) { return t.sitReg !== "E" && t.flagNavio === "S"; });
        });
    };
    DueTerceirosOutrasOperacoesComponent.prototype.getUnidades = function () {
        var _this = this;
        this.comboPadraoService.get("Unidade", "Unidade", "DescrUnidade", true).subscribe(function (resp) {
            _this.unidades = resp.filter(function (u) { return u.chave === "KG"
                || u.chave === "M3"
                || u.chave === "LT"
                || u.chave === "UN"; });
        });
    };
    DueTerceirosOutrasOperacoesComponent.prototype.edit = function () {
        var _this = this;
        if (!this.dataOutrasOperacoes.cliCotriDueTerceirosOutrasItemId) {
            return;
        }
        if (!this.service.data.regTmp) {
            return;
        }
        this.iniciaDadosVerifSeProgramacaoEstaCorreta('edit');
        this.service.verifSeProgramacaoEstaCorreta(this.filterVerifSeProgramacaoEstaCorreta).subscribe(function (result) {
            _this.mensagens = _this.message.validationResult(result);
            if (!result.isValid) {
                _this.message.warning("titles.dueTerceiros", _this.mensagens[0]);
            }
            else {
                _this.detail = false;
                _this.showTable = false;
                _this.response.emit(false);
            }
        });
    };
    DueTerceirosOutrasOperacoesComponent.prototype.iniciaDadosVerifSeProgramacaoEstaCorreta = function (value) {
        this.filterVerifSeProgramacaoEstaCorreta.cliCotriDueTerceirosId = this.service.data.regTmp;
        if (value === 'edit') {
            this.filterVerifSeProgramacaoEstaCorreta.validos = ['1', '5', '7'];
        }
        if (value === 'new') {
            this.filterVerifSeProgramacaoEstaCorreta.validos = ['1'];
        }
    };
    DueTerceirosOutrasOperacoesComponent.prototype.show = function () {
        this.detail = true;
        this.showTable = false;
        this.response.emit(false);
    };
    DueTerceirosOutrasOperacoesComponent.prototype.delete = function () {
        var _this = this;
        if (this.isDetail)
            return;
        if (!this.dataOutrasOperacoes.cliCotriDueTerceirosOutrasItemId) {
            return;
        }
        if (this.service.flagLib === 'G') {
            this.message.warning("titles.dueTerceiros", "messages.registroLiberadoParaOperacaoAlteracaoNaoPermitida");
            return;
        }
        this.message.removeConfirm(function () {
            _this.service.excluirItemTmpOutrasOperacoes(_this.dataOutrasOperacoes).subscribe(function (resp) {
                if (!resp.isValid) {
                    _this.mensagens = _this.message.validationResult(resp);
                    _this.message.warning("titles.dueTerceiros", _this.mensagens[0]);
                }
                else {
                    _this.refreshOutrasOperacoesTmp(_this.dataOutrasOperacoes.cliCotriDueTerceirosId);
                    _this.dataOutrasOperacoes = new _due_terceiros_model__WEBPACK_IMPORTED_MODULE_12__["DueTerceirosAbaOutrasOperacoes"]();
                }
            });
        });
    };
    DueTerceirosOutrasOperacoesComponent.prototype.refreshOutrasOperacoesTmp = function (id) {
        var _this = this;
        this.service.getOutrasOperacoesTmp(id).subscribe(function (resp) {
            _this.service.data.dueTerceirosOutrasOperacoes = resp;
        });
    };
    DueTerceirosOutrasOperacoesComponent.prototype.onSubmit = function (form) {
        var _this = this;
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__["EventEmitterService"].get("formOutras").emit(form);
        if (form.invalid) {
            this.funcoesService.backToTop();
            return;
        }
        this.dataOutrasOperacoes.cliCotriDueTerceirosId = this.service.data.cliCotriDueTerceirosId;
        this.service.gravarOutrasOperacoes(this.dataOutrasOperacoes).subscribe(function (result) {
            _this.mensagens = _this.message.validationResult(result);
            if (!result.isValid) {
                app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_6__["EventEmitterService"].get("backError").emit(_this.mensagens);
                _this.funcoesService.backToTop();
            }
            else {
                _this.dataOutrasOperacoes = new _due_terceiros_model__WEBPACK_IMPORTED_MODULE_12__["DueTerceirosAbaOutrasOperacoes"]();
                _this.showTable = true;
                _this.response.emit(true);
                _this.message.saveSuccess("titles.dueTerceiros");
                _this.refreshOutrasOperacoesTmp(_this.service.data.cliCotriDueTerceirosId);
            }
        });
    };
    DueTerceirosOutrasOperacoesComponent.ctorParameters = function () { return [
        { type: _due_terceiros_service__WEBPACK_IMPORTED_MODULE_13__["DueTerceirosService"] },
        { type: app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_4__["LoginService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_10__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_7__["FuncoesService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"] },
        { type: app_pages_cadastro_tipo_operacao_tipo_operacao_service__WEBPACK_IMPORTED_MODULE_3__["TipoOperacaoService"] },
        { type: app_shared_components_combos_combo_padrao_combo_padrao_service__WEBPACK_IMPORTED_MODULE_5__["ComboPadraoService"] },
        { type: app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_2__["DestinatarioService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Boolean)
    ], DueTerceirosOutrasOperacoesComponent.prototype, "isDetail", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Number)
    ], DueTerceirosOutrasOperacoesComponent.prototype, "actionForm", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], DueTerceirosOutrasOperacoesComponent.prototype, "response", void 0);
    DueTerceirosOutrasOperacoesComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-due-terceiros-outras-operacoes',
            template: __importDefault(__webpack_require__(/*! raw-loader!./due-terceiros-outras-operacoes.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-outras-operacoes/due-terceiros-outras-operacoes.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_due_terceiros_service__WEBPACK_IMPORTED_MODULE_13__["DueTerceirosService"],
            app_pages_login_login_service__WEBPACK_IMPORTED_MODULE_4__["LoginService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_10__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_7__["FuncoesService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_9__["PermissoesUtilsService"],
            app_pages_cadastro_tipo_operacao_tipo_operacao_service__WEBPACK_IMPORTED_MODULE_3__["TipoOperacaoService"],
            app_shared_components_combos_combo_padrao_combo_padrao_service__WEBPACK_IMPORTED_MODULE_5__["ComboPadraoService"],
            app_pages_cadastro_destinatario_destinatario_service__WEBPACK_IMPORTED_MODULE_2__["DestinatarioService"]])
    ], DueTerceirosOutrasOperacoesComponent);
    return DueTerceirosOutrasOperacoesComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-print-modal/due-terceiros-print-modal.component.ts":
/*!****************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-print-modal/due-terceiros-print-modal.component.ts ***!
  \****************************************************************************************************************************************/
/*! exports provided: DueTerceirosPrintModalComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DueTerceirosPrintModalComponent", function() { return DueTerceirosPrintModalComponent; });
/* 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_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__ = __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_3__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _due_terceiros_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../due-terceiros.service */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-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 DueTerceirosPrintModalComponent = /** @class */ (function () {
    function DueTerceirosPrintModalComponent(router, funcoes, service) {
        this.router = router;
        this.funcoes = funcoes;
        this.service = service;
        this.outConfirma = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
    }
    DueTerceirosPrintModalComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.router.events.subscribe(function (event) {
            var params = _this.funcoes.formParams.getParams(_this.router, event);
        });
        this.tipoSelecionado = "";
    };
    DueTerceirosPrintModalComponent.prototype.onSubmit = function (form) {
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        this.outConfirma.emit(this.tipoSelecionado);
        this.tipoSelecionado = "";
        jQuery("#dueTerceirosPrintModal").modal("hide");
    };
    DueTerceirosPrintModalComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"] },
        { type: _due_terceiros_service__WEBPACK_IMPORTED_MODULE_4__["DueTerceirosService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], DueTerceirosPrintModalComponent.prototype, "outConfirma", void 0);
    DueTerceirosPrintModalComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-due-terceiros-print-modal",
            template: __importDefault(__webpack_require__(/*! raw-loader!./due-terceiros-print-modal.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-print-modal/due-terceiros-print-modal.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_3__["FuncoesService"],
            _due_terceiros_service__WEBPACK_IMPORTED_MODULE_4__["DueTerceirosService"]])
    ], DueTerceirosPrintModalComponent);
    return DueTerceirosPrintModalComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-re-excedente/due-terceiros-re-excedente.component.ts":
/*!******************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-re-excedente/due-terceiros-re-excedente.component.ts ***!
  \******************************************************************************************************************************************/
/*! exports provided: DueTerceirosREExcedenteComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DueTerceirosREExcedenteComponent", function() { return DueTerceirosREExcedenteComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _due_terceiros_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../due-terceiros.service */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros.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 app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _due_terceiros_model__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../due-terceiros.model */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros.model.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 DueTerceirosREExcedenteComponent = /** @class */ (function () {
    function DueTerceirosREExcedenteComponent(service, funcoes, message) {
        this.service = service;
        this.funcoes = funcoes;
        this.message = message;
        this.refreshItens = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.dataItem = new _due_terceiros_model__WEBPACK_IMPORTED_MODULE_5__["DueTerceirosAbaItens"]();
        this.mensagens = [];
    }
    DueTerceirosREExcedenteComponent.prototype.ngOnInit = function () {
    };
    DueTerceirosREExcedenteComponent.prototype.onSubmit = function (form) {
        var _this = this;
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__["EventEmitterService"].get("formAlteraREExcedente").emit(form);
        if (form.invalid) {
            this.funcoes.backToTop();
            return;
        }
        this.service.alteraREExcedente(this.dataItem).subscribe(function (result) {
            _this.mensagens = _this.message.validationResult(result);
            if (!result.isValid) {
                app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__["EventEmitterService"].get("backError").emit(_this.mensagens);
                _this.funcoes.backToTop();
            }
            else {
                _this.message.saveSuccess("titles.dueTerceiros");
                jQuery("#due-terceiros-re-excedente-dialog").modal("hide");
                _this.refreshItens.emit(_this.dataItem);
            }
        });
    };
    DueTerceirosREExcedenteComponent.prototype.objectSelect = function (current) {
        this.dataItem = current;
    };
    DueTerceirosREExcedenteComponent.prototype.onCancelar = function () {
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__["EventEmitterService"].get("formAlteraREExcedente").emit(false);
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_4__["EventEmitterService"].get("backError").emit(false);
        this.dataItem.quantidRE = 0;
    };
    DueTerceirosREExcedenteComponent.ctorParameters = function () { return [
        { type: _due_terceiros_service__WEBPACK_IMPORTED_MODULE_1__["DueTerceirosService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], DueTerceirosREExcedenteComponent.prototype, "refreshItens", void 0);
    DueTerceirosREExcedenteComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-due-terceiros-re-excedente',
            template: __importDefault(__webpack_require__(/*! raw-loader!./due-terceiros-re-excedente.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-re-excedente/due-terceiros-re-excedente.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_due_terceiros_service__WEBPACK_IMPORTED_MODULE_1__["DueTerceirosService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_2__["FuncoesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"]])
    ], DueTerceirosREExcedenteComponent);
    return DueTerceirosREExcedenteComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-retificacao-due-xml/due-terceiros-retificacao-due-xml.component.ts":
/*!********************************************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-retificacao-due-xml/due-terceiros-retificacao-due-xml.component.ts ***!
  \********************************************************************************************************************************************************/
/*! exports provided: DueTerceirosRetificacaoDueXmlComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DueTerceirosRetificacaoDueXmlComponent", function() { return DueTerceirosRetificacaoDueXmlComponent; });
/* 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_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_2__ = __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_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 _due_terceiros_model__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../due-terceiros.model */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros.model.ts");
/* harmony import */ var _due_terceiros_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../due-terceiros.service */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros.service.ts");
/* harmony import */ var app_shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! app/shared/services/funcoes/object-utils/object-utils.static.service */ "./src/app/shared/services/funcoes/object-utils/object-utils.static.service.ts");
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};







var DueTerceirosRetificacaoDueXmlComponent = /** @class */ (function () {
    function DueTerceirosRetificacaoDueXmlComponent(service, funcoesService, messageService) {
        this.service = service;
        this.funcoesService = funcoesService;
        this.messageService = messageService;
        this.dataRetDueXml = new _due_terceiros_model__WEBPACK_IMPORTED_MODULE_4__["DueTerceirosRetificacaoDueXmlDto"]();
        this.mensagens = [];
        this.hasDados = false;
        this.retornoArquivoGerado = new _due_terceiros_model__WEBPACK_IMPORTED_MODULE_4__["DueTerceirosXmlDue"]();
    }
    DueTerceirosRetificacaoDueXmlComponent.prototype.ngOnInit = function () {
    };
    DueTerceirosRetificacaoDueXmlComponent.prototype.objectSelect = function (cliCotriDueTerceirosId) {
        var _this = this;
        this.cliCotriDueTerceirosId = cliCotriDueTerceirosId;
        this.service.getDadosRetificacaoDueXmlById(cliCotriDueTerceirosId).subscribe(function (resp) {
            _this.dados = resp;
            _this.hasDados = _this.dados && _this.dados.length > 0;
        });
    };
    DueTerceirosRetificacaoDueXmlComponent.prototype.selected = function (val) {
        this.dataRetDueXml = app_shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_6__["ObjectUtilsStaticService"].clone(val);
    };
    DueTerceirosRetificacaoDueXmlComponent.prototype.cancelar = function () {
        this.dataRetDueXml = new _due_terceiros_model__WEBPACK_IMPORTED_MODULE_4__["DueTerceirosRetificacaoDueXmlDto"]();
        app_shared_services_funcoes_modal_utils_modal_utils_static_service__WEBPACK_IMPORTED_MODULE_2__["ModalUtilsStaticService"].closeModal("due-terceiros-retificacao-due-xml-dialog");
    };
    DueTerceirosRetificacaoDueXmlComponent.prototype.gerarIndividual = function () {
        var _this = this;
        this.service.gerarRetificacaoDueXmlIndividual(this.dataRetDueXml).subscribe(function (result) {
            if (_this.funcoesService.isNotUndefinedOrNull(result.validationResult)) {
                _this.mensagens = _this.messageService.validationResult(result.validationResult);
                if (result && !result.validationResult.isValid) {
                    _this.messageService.warning("titles.dueTerceiros", _this.mensagens[0]);
                    return;
                }
            }
            else {
                _this.retornoArquivoGerado = result;
                _this.download();
                _this.messageService.success("Sucesso", _this.retornoArquivoGerado.mensagem);
            }
        });
    };
    DueTerceirosRetificacaoDueXmlComponent.prototype.gerarParaTodos = function () {
        var _this = this;
        this.service.gerarRetificacaoDueXmlParaTodos(this.cliCotriDueTerceirosId).subscribe(function (result) {
            if (_this.funcoesService.isNotUndefinedOrNull(result.validationResult)) {
                _this.mensagens = _this.messageService.validationResult(result.validationResult);
                if (result && !result.validationResult.isValid) {
                    _this.messageService.warning("titles.dueTerceiros", _this.mensagens[0]);
                    return;
                }
            }
            else {
                _this.retornoArquivoGerado = result;
                _this.download();
                _this.messageService.success("Sucesso", _this.retornoArquivoGerado.mensagem);
            }
        });
    };
    DueTerceirosRetificacaoDueXmlComponent.prototype.download = function () {
        if (this.funcoesService.isUndefinedOrNull(this.retornoArquivoGerado)) {
            return;
        }
        var b64 = this.retornoArquivoGerado.arquivoGerado;
        var byteCharacters = atob(b64);
        var byteArrays = [];
        for (var offset = 0; offset < byteCharacters.length; offset += 512) {
            var slice = byteCharacters.slice(offset, offset + 512);
            var byteNumbers = new Array(slice.length);
            for (var i = 0; i < slice.length; i++) {
                byteNumbers[i] = slice.charCodeAt(i);
            }
            var byteArray = new Uint8Array(byteNumbers);
            byteArrays.push(byteArray);
        }
        var tipo = this.retornoArquivoGerado.tipoArquivo.replace(',', '');
        var blobData = new Blob(byteArrays, { type: tipo });
        var win = window;
        if (win.navigator && win.navigator.msSaveOrOpenBlob) { // IE
            win.navigator.msSaveOrOpenBlob(blobData, this.retornoArquivoGerado.nomeArquivo);
        }
        else { // chrome
            var blob = new Blob([blobData], { type: tipo });
            var url = window.URL.createObjectURL(blob);
            var link = document.createElement('a');
            link.href = url;
            link.download = this.retornoArquivoGerado.nomeArquivo;
            link.click();
        }
    };
    DueTerceirosRetificacaoDueXmlComponent.ctorParameters = function () { return [
        { type: _due_terceiros_service__WEBPACK_IMPORTED_MODULE_5__["DueTerceirosService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_1__["FuncoesService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] }
    ]; };
    DueTerceirosRetificacaoDueXmlComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-due-terceiros-retificacao-due-xml",
            template: __importDefault(__webpack_require__(/*! raw-loader!./due-terceiros-retificacao-due-xml.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-retificacao-due-xml/due-terceiros-retificacao-due-xml.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_due_terceiros_service__WEBPACK_IMPORTED_MODULE_5__["DueTerceirosService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_1__["FuncoesService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"]])
    ], DueTerceirosRetificacaoDueXmlComponent);
    return DueTerceirosRetificacaoDueXmlComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-status/due-terceiros-status.component.ts":
/*!******************************************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-status/due-terceiros-status.component.ts ***!
  \******************************************************************************************************************************/
/*! exports provided: DueTerceirosStatusComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DueTerceirosStatusComponent", function() { return DueTerceirosStatusComponent; });
/* 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_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var app_shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/funcoes/object-utils/object-utils.static.service */ "./src/app/shared/services/funcoes/object-utils/object-utils.static.service.ts");
/* harmony import */ var app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! app/shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _due_terceiros_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../due-terceiros.constants */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros.constants.ts");
/* harmony import */ var _due_terceiros_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../due-terceiros.model */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros.model.ts");
/* harmony import */ var _due_terceiros_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../due-terceiros.service */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-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 DueTerceirosStatusComponent = /** @class */ (function () {
    function DueTerceirosStatusComponent(service, message, funcoesService, permissoesUtils) {
        this.service = service;
        this.message = message;
        this.funcoesService = funcoesService;
        this.permissoesUtils = permissoesUtils;
        this.response = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.constantes = new _due_terceiros_constants__WEBPACK_IMPORTED_MODULE_5__["DueTerceirosConstants"]();
        this.detail = false;
        this.dataStatus = new _due_terceiros_model__WEBPACK_IMPORTED_MODULE_6__["DueTerceirosAbaOutrasOperacoes"]();
    }
    DueTerceirosStatusComponent.prototype.ngOnInit = function () {
        this.showTable = true;
    };
    DueTerceirosStatusComponent.prototype.selected = function (val) {
        this.dataStatus = app_shared_services_funcoes_object_utils_object_utils_static_service__WEBPACK_IMPORTED_MODULE_2__["ObjectUtilsStaticService"].clone(val);
    };
    DueTerceirosStatusComponent.ctorParameters = function () { return [
        { type: _due_terceiros_service__WEBPACK_IMPORTED_MODULE_7__["DueTerceirosService"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_1__["FuncoesService"] },
        { type: app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_3__["PermissoesUtilsService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Boolean)
    ], DueTerceirosStatusComponent.prototype, "isDetail", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], DueTerceirosStatusComponent.prototype, "response", void 0);
    DueTerceirosStatusComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: 'app-due-terceiros-status',
            template: __importDefault(__webpack_require__(/*! raw-loader!./due-terceiros-status.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-status/due-terceiros-status.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_due_terceiros_service__WEBPACK_IMPORTED_MODULE_7__["DueTerceirosService"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_4__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_1__["FuncoesService"],
            app_shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_3__["PermissoesUtilsService"]])
    ], DueTerceirosStatusComponent);
    return DueTerceirosStatusComponent;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros.constants.ts":
/*!**************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros.constants.ts ***!
  \**************************************************************************************************/
/*! exports provided: DueTerceirosConstants */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DueTerceirosConstants", function() { return DueTerceirosConstants; });
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
var DueTerceirosConstants = /** @class */ (function () {
    function DueTerceirosConstants() {
        this.sisFormularioId = 65484;
        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.propriedades" },
            { sisFormularioId: this.sisFormularioId, libRotina: 6, acao: "labels.permissoes" },
            { sisFormularioId: this.sisFormularioId, libRotina: 7, acao: "labels.impressao" },
            { sisFormularioId: this.sisFormularioId, libRotina: 8, acao: "labels.alteraPortoDeOrigemDestino" },
            { sisFormularioId: this.sisFormularioId, libRotina: 9, acao: "labels.alteraREExcedente" },
            { sisFormularioId: this.sisFormularioId, libRotina: 10, acao: "labels.duplicarProcesso" },
            { sisFormularioId: this.sisFormularioId, libRotina: 11, acao: "labels.duplicarItem" },
            { sisFormularioId: this.sisFormularioId, libRotina: 12, acao: "labels.gerarXmlDue" },
            { sisFormularioId: this.sisFormularioId, libRotina: 13, acao: "labels.retificacaoDueXml" },
            { sisFormularioId: this.sisFormularioId, libRotina: 14, acao: "labels.encerrarProcesso" },
            { sisFormularioId: this.sisFormularioId, libRotina: 15, acao: "labels.reabrirProcesso" },
            { sisFormularioId: this.sisFormularioId, libRotina: 16, acao: "labels.consultaNfsReferenciadas" }
        ];
        this.sisSistemaId = "CTV";
        this.nomeForm = "titles.dueTerceiros";
        this.reportId = "COT0025";
        this.reportRelDeCapaProcessoId = "COT0026";
        this.reportTitulo = { "titulo": "DUE 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: 'Pesquisar', action: 'filtrar', icon: "icon-search", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Permissao', action: 'permissoes', icon: "icon-unlock", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Propriedade', action: 'properties', icon: "icon-menu", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'Imprimir', action: '_print', icon: "icon-printer", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'consultaNfsReferenciadas', action: 'consultaNfsReferenciadas', icon: "fa fa-file-text-o", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'duplicarProcesso', action: 'duplicarProcesso', icon: "fa fa-copy", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'retificacaoDueXml', action: 'retificacaoDueXml', icon: "fa fa-window-restore", exibeButton: true, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'encerrarProcesso', action: 'encerrarProcesso', icon: "fa fa-window-close-o", exibeButton: true, eximeMenu: true, menuName: 'Arquivo', disabled: true },
            { title: 'reabrirProcesso', action: 'reabrirProcesso', icon: "fa fa-check-square-o", exibeButton: true, eximeMenu: true, menuName: 'Arquivo', disabled: true }
        ];
        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' },
            { title: 'Imprimir', action: '_print', icon: "icon-printer", exibeButton: false, eximeMenu: true, menuName: 'Arquivo' },
            { title: 'alteraPortoDeOrigemDestino', action: 'alteraPortoDeOrigemDestino', icon: "fa fa-ship", exibeButton: true, eximeMenu: true, menuName: 'Movimento' },
            { title: 'alteraREExcedente', action: 'alteraREExcedente', icon: "fa fa-superpowers", exibeButton: false, eximeMenu: true, menuName: 'Movimento', disabled: true },
            { title: 'duplicarItem', action: 'duplicarItem', icon: "fa fa-copy", exibeButton: true, eximeMenu: true, menuName: 'Arquivo', disabled: true },
            { title: 'gerarXmlDue', action: 'gerarXmlDue', icon: "fa fa-file-code-o", exibeButton: false, eximeMenu: true, menuName: 'Arquivo', disabled: true },
        ];
        this.listaParam = [
            { 'sistema': 'OPE', 'parametros': ['OperacaoAppa', 'ProgDataAnt', 'REExcedente', 'CamposObrigatorios', 'PropriedadeCarga', 'UtilizaDUE', 'ValDtChegada', 'ObrDtAtrSaida', 'OutrasOperProg'] }
        ];
    }
    return DueTerceirosConstants;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros.model.ts":
/*!**********************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros.model.ts ***!
  \**********************************************************************************************/
/*! exports provided: DueTerceirosIndexDto, DueTerceirosFilterVo, DueTerceirosDto, SituacaoNavio, DueTerceirosAbaItens, DueTerceirosAbaOutrasOperacoes, DueTerceirosAbaStatus, DueTerceirosAbaOsbervacoes, DueTerceirosAbaImportadores, DueTerceirosAbaExportador, VerifSeProgramacaoEstaCorretaFilter, DueTerceirosDadosPortos, DueTerceirosNfsReferenciadas, DueTerceirosXmlDue, DueTerceirosRetificacaoDueXmlDto */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DueTerceirosIndexDto", function() { return DueTerceirosIndexDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DueTerceirosFilterVo", function() { return DueTerceirosFilterVo; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DueTerceirosDto", function() { return DueTerceirosDto; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SituacaoNavio", function() { return SituacaoNavio; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DueTerceirosAbaItens", function() { return DueTerceirosAbaItens; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DueTerceirosAbaOutrasOperacoes", function() { return DueTerceirosAbaOutrasOperacoes; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DueTerceirosAbaStatus", function() { return DueTerceirosAbaStatus; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DueTerceirosAbaOsbervacoes", function() { return DueTerceirosAbaOsbervacoes; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DueTerceirosAbaImportadores", function() { return DueTerceirosAbaImportadores; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DueTerceirosAbaExportador", function() { return DueTerceirosAbaExportador; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VerifSeProgramacaoEstaCorretaFilter", function() { return VerifSeProgramacaoEstaCorretaFilter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DueTerceirosDadosPortos", function() { return DueTerceirosDadosPortos; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DueTerceirosNfsReferenciadas", function() { return DueTerceirosNfsReferenciadas; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DueTerceirosXmlDue", function() { return DueTerceirosXmlDue; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DueTerceirosRetificacaoDueXmlDto", function() { return DueTerceirosRetificacaoDueXmlDto; });
/* harmony import */ var app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! app/shared/services/base/base.model */ "./src/app/shared/services/base/base.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");
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 DueTerceirosIndexDto = /** @class */ (function (_super) {
    __extends(DueTerceirosIndexDto, _super);
    function DueTerceirosIndexDto() {
        return _super.call(this) || this;
    }
    return DueTerceirosIndexDto;
}(app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

var DueTerceirosFilterVo = /** @class */ (function () {
    function DueTerceirosFilterVo() {
        this.dataI = app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_1__["DateTimeUtilsStaticService"].addDays(new Date(), -30);
        this.dataF = app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_1__["DateTimeUtilsStaticService"].addDays(new Date(), 60);
        this.destinatarioIdNavio = 0;
        this.situacao = '1';
    }
    return DueTerceirosFilterVo;
}());

var DueTerceirosDto = /** @class */ (function (_super) {
    __extends(DueTerceirosDto, _super);
    function DueTerceirosDto() {
        return _super.call(this) || this;
    }
    return DueTerceirosDto;
}(app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

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

var DueTerceirosAbaItens = /** @class */ (function (_super) {
    __extends(DueTerceirosAbaItens, _super);
    function DueTerceirosAbaItens() {
        var _this = _super.call(this) || this;
        _this.quantidContainer = 0;
        _this.destinoProduto = "";
        _this.inspetor = "";
        return _this;
    }
    return DueTerceirosAbaItens;
}(app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

var DueTerceirosAbaOutrasOperacoes = /** @class */ (function (_super) {
    __extends(DueTerceirosAbaOutrasOperacoes, _super);
    function DueTerceirosAbaOutrasOperacoes() {
        var _this = _super.call(this) || this;
        _this.tipoOperacao = 1;
        _this.propriedadeCarga = 2;
        _this.tipoCarga = 2;
        return _this;
    }
    return DueTerceirosAbaOutrasOperacoes;
}(app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

var DueTerceirosAbaStatus = /** @class */ (function (_super) {
    __extends(DueTerceirosAbaStatus, _super);
    function DueTerceirosAbaStatus() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return DueTerceirosAbaStatus;
}(app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

var DueTerceirosAbaOsbervacoes = /** @class */ (function (_super) {
    __extends(DueTerceirosAbaOsbervacoes, _super);
    function DueTerceirosAbaOsbervacoes() {
        var _this = _super.call(this) || this;
        _this.observacoes = "";
        return _this;
    }
    return DueTerceirosAbaOsbervacoes;
}(app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

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

var DueTerceirosAbaExportador = /** @class */ (function (_super) {
    __extends(DueTerceirosAbaExportador, _super);
    function DueTerceirosAbaExportador() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return DueTerceirosAbaExportador;
}(app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

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

var DueTerceirosDadosPortos = /** @class */ (function (_super) {
    __extends(DueTerceirosDadosPortos, _super);
    function DueTerceirosDadosPortos() {
        var _this = _super.call(this) || this;
        _this.tipoOperacao = "";
        _this.regCeMercante = "";
        _this.codEnquadramento = "";
        _this.codPortoOri = 0;
        return _this;
    }
    return DueTerceirosDadosPortos;
}(app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

var DueTerceirosNfsReferenciadas = /** @class */ (function (_super) {
    __extends(DueTerceirosNfsReferenciadas, _super);
    function DueTerceirosNfsReferenciadas() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    return DueTerceirosNfsReferenciadas;
}(app_shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__["BaseModel"]));

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

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



/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros.module.ts":
/*!***********************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros.module.ts ***!
  \***********************************************************************************************/
/*! exports provided: DueTerceirosModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DueTerceirosModule", function() { return DueTerceirosModule; });
/* 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_shared_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! app/shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _due_terceiros_exportador_due_terceiros_exportador_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./due-terceiros-exportador/due-terceiros-exportador.component */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-exportador/due-terceiros-exportador.component.ts");
/* harmony import */ var _due_terceiros_filter_due_terceiros_filter_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./due-terceiros-filter/due-terceiros-filter.component */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-filter/due-terceiros-filter.component.ts");
/* harmony import */ var _due_terceiros_form_due_terceiros_form_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./due-terceiros-form/due-terceiros-form.component */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-form/due-terceiros-form.component.ts");
/* harmony import */ var _due_terceiros_importadores_due_terceiros_importadores_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./due-terceiros-importadores/due-terceiros-importadores.component */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-importadores/due-terceiros-importadores.component.ts");
/* harmony import */ var _due_terceiros_index_due_terceiros_index_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./due-terceiros-index/due-terceiros-index.component */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-index/due-terceiros-index.component.ts");
/* harmony import */ var _due_terceiros_itens_due_terceiros_itens_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./due-terceiros-itens/due-terceiros-itens.component */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-itens/due-terceiros-itens.component.ts");
/* harmony import */ var _due_terceiros_observacoes_due_terceiros_observacoes_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./due-terceiros-observacoes/due-terceiros-observacoes.component */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-observacoes/due-terceiros-observacoes.component.ts");
/* harmony import */ var _due_terceiros_outras_operacoes_due_terceiros_outras_operacoes_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./due-terceiros-outras-operacoes/due-terceiros-outras-operacoes.component */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-outras-operacoes/due-terceiros-outras-operacoes.component.ts");
/* harmony import */ var _due_terceiros_status_due_terceiros_status_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./due-terceiros-status/due-terceiros-status.component */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-status/due-terceiros-status.component.ts");
/* harmony import */ var _due_terceiros_routing_module__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./due-terceiros.routing.module */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros.routing.module.ts");
/* harmony import */ var _due_terceiros_altera_porto_de_origem_destino_due_terceiros_altera_porto_de_origem_destino_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./due-terceiros-altera-porto-de-origem-destino/due-terceiros-altera-porto-de-origem-destino.component */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-altera-porto-de-origem-destino/due-terceiros-altera-porto-de-origem-destino.component.ts");
/* harmony import */ var _due_terceiros_re_excedente_due_terceiros_re_excedente_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./due-terceiros-re-excedente/due-terceiros-re-excedente.component */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-re-excedente/due-terceiros-re-excedente.component.ts");
/* harmony import */ var _due_terceiros_consulta_nfs_referenciadas_due_terceiros_consulta_nfs_referenciadas_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./due-terceiros-consulta-nfs-referenciadas/due-terceiros-consulta-nfs-referenciadas.component */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-consulta-nfs-referenciadas/due-terceiros-consulta-nfs-referenciadas.component.ts");
/* harmony import */ var _due_terceiros_gerar_xml_due_due_terceiros_gerar_xml_due_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./due-terceiros-gerar-xml-due/due-terceiros-gerar-xml-due.component */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-gerar-xml-due/due-terceiros-gerar-xml-due.component.ts");
/* harmony import */ var _due_terceiros_retificacao_due_xml_due_terceiros_retificacao_due_xml_component__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./due-terceiros-retificacao-due-xml/due-terceiros-retificacao-due-xml.component */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-retificacao-due-xml/due-terceiros-retificacao-due-xml.component.ts");
/* harmony import */ var _due_terceiros_print_modal_due_terceiros_print_modal_component__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./due-terceiros-print-modal/due-terceiros-print-modal.component */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-print-modal/due-terceiros-print-modal.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 DueTerceirosModule = /** @class */ (function () {
    function DueTerceirosModule() {
    }
    DueTerceirosModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [app_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _due_terceiros_routing_module__WEBPACK_IMPORTED_MODULE_11__["DueTerceirosRoutingModule"]],
            declarations: [
                _due_terceiros_index_due_terceiros_index_component__WEBPACK_IMPORTED_MODULE_6__["DueTerceirosIndexComponent"],
                _due_terceiros_filter_due_terceiros_filter_component__WEBPACK_IMPORTED_MODULE_3__["DueTerceirosFilterComponent"],
                _due_terceiros_form_due_terceiros_form_component__WEBPACK_IMPORTED_MODULE_4__["DueTerceirosFormComponent"],
                _due_terceiros_itens_due_terceiros_itens_component__WEBPACK_IMPORTED_MODULE_7__["DueTerceirosItensComponent"],
                _due_terceiros_outras_operacoes_due_terceiros_outras_operacoes_component__WEBPACK_IMPORTED_MODULE_9__["DueTerceirosOutrasOperacoesComponent"],
                _due_terceiros_status_due_terceiros_status_component__WEBPACK_IMPORTED_MODULE_10__["DueTerceirosStatusComponent"],
                _due_terceiros_observacoes_due_terceiros_observacoes_component__WEBPACK_IMPORTED_MODULE_8__["DueTerceirosObservacoesComponent"],
                _due_terceiros_exportador_due_terceiros_exportador_component__WEBPACK_IMPORTED_MODULE_2__["DueTerceirosExportadorComponent"],
                _due_terceiros_importadores_due_terceiros_importadores_component__WEBPACK_IMPORTED_MODULE_5__["DueTerceirosImportadoresComponent"],
                _due_terceiros_altera_porto_de_origem_destino_due_terceiros_altera_porto_de_origem_destino_component__WEBPACK_IMPORTED_MODULE_12__["DueTerceirosAlteraPortoDeOrigemDestinoComponent"],
                _due_terceiros_re_excedente_due_terceiros_re_excedente_component__WEBPACK_IMPORTED_MODULE_13__["DueTerceirosREExcedenteComponent"],
                _due_terceiros_consulta_nfs_referenciadas_due_terceiros_consulta_nfs_referenciadas_component__WEBPACK_IMPORTED_MODULE_14__["DueTerceirosConsultaNfsReferenciadasComponent"],
                _due_terceiros_gerar_xml_due_due_terceiros_gerar_xml_due_component__WEBPACK_IMPORTED_MODULE_15__["DueTerceirosGerarXmlDueComponent"],
                _due_terceiros_retificacao_due_xml_due_terceiros_retificacao_due_xml_component__WEBPACK_IMPORTED_MODULE_16__["DueTerceirosRetificacaoDueXmlComponent"],
                _due_terceiros_print_modal_due_terceiros_print_modal_component__WEBPACK_IMPORTED_MODULE_17__["DueTerceirosPrintModalComponent"]
            ]
        })
    ], DueTerceirosModule);
    return DueTerceirosModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros.routing.module.ts":
/*!*******************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros.routing.module.ts ***!
  \*******************************************************************************************************/
/*! exports provided: DueTerceirosRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DueTerceirosRoutingModule", function() { return DueTerceirosRoutingModule; });
/* 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 _due_terceiros_index_due_terceiros_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./due-terceiros-index/due-terceiros-index.component */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-index/due-terceiros-index.component.ts");
/* harmony import */ var _due_terceiros_form_due_terceiros_form_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./due-terceiros-form/due-terceiros-form.component */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros-form/due-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 MRoutes = [
    {
        path: "",
        component: _due_terceiros_index_due_terceiros_index_component__WEBPACK_IMPORTED_MODULE_3__["DueTerceirosIndexComponent"],
        data: { breadcrumb: "dueTerceiros", formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].index } }
    },
    {
        path: "create",
        component: _due_terceiros_form_due_terceiros_form_component__WEBPACK_IMPORTED_MODULE_4__["DueTerceirosFormComponent"],
        data: {
            breadcrumb: "dueTerceiros",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].create }
        }
    },
    {
        path: "detail/:id",
        component: _due_terceiros_form_due_terceiros_form_component__WEBPACK_IMPORTED_MODULE_4__["DueTerceirosFormComponent"],
        data: {
            breadcrumb: "dueTerceiros",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].detail }
        }
    },
    {
        path: "edit/:id",
        component: _due_terceiros_form_due_terceiros_form_component__WEBPACK_IMPORTED_MODULE_4__["DueTerceirosFormComponent"],
        data: {
            breadcrumb: "dueTerceiros",
            formParams: { action: app_config_enumerables__WEBPACK_IMPORTED_MODULE_2__["ActionForm"].edit }
        }
    }
];
var DueTerceirosRoutingModule = /** @class */ (function () {
    function DueTerceirosRoutingModule() {
    }
    DueTerceirosRoutingModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"].forChild(MRoutes)],
            exports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]]
        })
    ], DueTerceirosRoutingModule);
    return DueTerceirosRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros.service.ts":
/*!************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros.service.ts ***!
  \************************************************************************************************/
/*! exports provided: DueTerceirosService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DueTerceirosService", function() { return DueTerceirosService; });
/* 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 environments_environment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! environments/environment */ "./src/environments/environment.ts");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "./node_modules/rxjs/_esm5/operators/index.js");
/* harmony import */ var app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! app/app.error-handler */ "./src/app/app.error-handler.ts");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! app/shared/services/base/specifics.base.service */ "./src/app/shared/services/base/specifics.base.service.ts");
/* harmony import */ var _due_terceiros_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./due-terceiros.model */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros.model.ts");
/* harmony import */ var _due_terceiros_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./due-terceiros.constants */ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros.constants.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 _angular_router__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
/* harmony import */ var app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! app/shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.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 DueTerceirosService = /** @class */ (function (_super) {
    __extends(DueTerceirosService, _super);
    function DueTerceirosService(http, message, funcoes, router) {
        var _this = _super.call(this, http, "cotriguacu/dueTerceiros") || this;
        _this.http = http;
        _this.message = message;
        _this.funcoes = funcoes;
        _this.router = router;
        _this.data = new _due_terceiros_model__WEBPACK_IMPORTED_MODULE_6__["DueTerceirosDto"]();
        _this.dataItem = new _due_terceiros_model__WEBPACK_IMPORTED_MODULE_6__["DueTerceirosAbaItens"]();
        _this.detailAbaItem = false;
        _this.filter = new _due_terceiros_model__WEBPACK_IMPORTED_MODULE_6__["DueTerceirosFilterVo"]();
        _this.limpaItemSelecionado = false;
        _this.exibeQuantidREAbaItem = false;
        _this.constantes = new _due_terceiros_constants__WEBPACK_IMPORTED_MODULE_7__["DueTerceirosConstants"]();
        _this.ceMercanteItemList = [];
        _this.exibeAbaImportadores = false;
        _this.pageRoute = "/especificos/cotriguacu/movimentos/dueTerceiros";
        _this.target = _this.funcoes.getTargetLocation();
        return _this;
    }
    DueTerceirosService.prototype.getByFiltro = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_1__["environment"].specifics_service_url + "/api/v1/cotriguacu/dueTerceiros/getByFilter", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    DueTerceirosService.prototype.verifSeProgramacaoEstaCorreta = function (filter) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_1__["environment"].specifics_service_url + "/api/v1/cotriguacu/dueTerceiros/verifSeProgramacaoEstaCorreta", filter)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    DueTerceirosService.prototype._getById = function (id) {
        var _this = this;
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_1__["environment"].specifics_service_url + "/api/v1/cotriguacu/dueTerceiros/" + id)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])(function (dueTerceiros) {
            if (!!dueTerceiros) {
                return dueTerceiros;
            }
            else {
                _this.back();
                _this.message.warning("titles.dueTerceiros", "messages.operacaoNaoPermitida");
                return;
            }
        }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["mergeMap"])(function (dueTerceiros) { return _this.http.get(environments_environment__WEBPACK_IMPORTED_MODULE_1__["environment"].service_url + "/api/v1/cadastros/destinatario/" + dueTerceiros.destinatarioIdNavio).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])(function (destinatarioNavio) {
            dueTerceiros.navio = destinatarioNavio;
            if (!dueTerceiros.dueTerceirosItens) {
                dueTerceiros.dueTerceirosItens = [];
            }
            if (!dueTerceiros.dueTerceirosOutrasOperacoes) {
                dueTerceiros.dueTerceirosOutrasOperacoes = [];
            }
            if (!dueTerceiros.dueTerceirosStatus) {
                dueTerceiros.dueTerceirosStatus = [];
            }
            if (!!dueTerceiros.dueTerceirosObservacoes) {
                var observ = dueTerceiros.dueTerceirosObservacoes;
                dueTerceiros.dueTerceirosObservacoes.observacoes = observ.observacoes1 + observ.observacoes2 + observ.observacoes3 + observ.observacoes4 + observ.observacoes5 + observ.observacoes6 + observ.observacoes7 + observ.observacoes8;
            }
            else {
                dueTerceiros.dueTerceirosObservacoes = new _due_terceiros_model__WEBPACK_IMPORTED_MODULE_6__["DueTerceirosAbaOsbervacoes"]();
            }
            if (!dueTerceiros.dueTerceirosExportador) {
                dueTerceiros.dueTerceirosExportador = [];
            }
            return dueTerceiros;
        })); }));
    };
    DueTerceirosService.prototype.gerarDadosTmp = function (data) {
        var _this = this;
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_1__["environment"].specifics_service_url + "/api/v1/cotriguacu/dueTerceiros/gerarDadosTmp", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])(function (dueTerceiros) {
            if (!!dueTerceiros) {
                return dueTerceiros;
            }
            else {
                _this.back();
                _this.message.warning("titles.dueTerceiros", "messages.operacaoNaoPermitida");
                return;
            }
        }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["mergeMap"])(function (dueTerceiros) { return _this.http.get(environments_environment__WEBPACK_IMPORTED_MODULE_1__["environment"].service_url + "/api/v1/cadastros/destinatario/" + dueTerceiros.destinatarioIdNavio).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])(function (destinatarioNavio) {
            dueTerceiros.navio = destinatarioNavio;
            if (!dueTerceiros.dueTerceirosItens) {
                dueTerceiros.dueTerceirosItens = [];
            }
            if (!dueTerceiros.dueTerceirosOutrasOperacoes) {
                dueTerceiros.dueTerceirosOutrasOperacoes = [];
            }
            if (!dueTerceiros.dueTerceirosStatus) {
                dueTerceiros.dueTerceirosStatus = [];
            }
            if (!!dueTerceiros.dueTerceirosObservacoes) {
                var observ = dueTerceiros.dueTerceirosObservacoes;
                dueTerceiros.dueTerceirosObservacoes.observacoes = observ.observacoes1 + observ.observacoes2 + observ.observacoes3 + observ.observacoes4 + observ.observacoes5 + observ.observacoes6 + observ.observacoes7 + observ.observacoes8;
            }
            else {
                dueTerceiros.dueTerceirosObservacoes = new _due_terceiros_model__WEBPACK_IMPORTED_MODULE_6__["DueTerceirosAbaOsbervacoes"]();
            }
            if (!dueTerceiros.dueTerceirosExportador) {
                dueTerceiros.dueTerceirosExportador = [];
            }
            return dueTerceiros;
        })); }));
    };
    DueTerceirosService.prototype.getImportadoresByFilter = function (filter) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_1__["environment"].specifics_service_url + "/api/v1/cotriguacu/dueTerceiros/getImportadoresByFilter", filter)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    DueTerceirosService.prototype.getDadosDosPortos = function (filter) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_1__["environment"].specifics_service_url + "/api/v1/cotriguacu/dueTerceiros/getDadosDosPortos", filter)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    DueTerceirosService.prototype.alteraDadosDosPortos = function (filter) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_1__["environment"].specifics_service_url + "/api/v1/cotriguacu/dueTerceiros/alteraDadosDosPortos", filter)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    DueTerceirosService.prototype.alteraREExcedente = function (filter) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_1__["environment"].specifics_service_url + "/api/v1/cotriguacu/dueTerceiros/alteraREExcedente", filter)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    DueTerceirosService.prototype.duplicarProcesso = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_1__["environment"].specifics_service_url + "/api/v1/cotriguacu/dueTerceiros/duplicarProcesso", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    DueTerceirosService.prototype.gravarItem = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_1__["environment"].specifics_service_url + "/api/v1/cotriguacu/dueTerceiros/gravarItem", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    DueTerceirosService.prototype.excluirItemTmp = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_1__["environment"].specifics_service_url + "/api/v1/cotriguacu/dueTerceiros/excluirItemTmp", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    DueTerceirosService.prototype.desfazer = function (id) {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_1__["environment"].specifics_service_url + "/api/v1/cotriguacu/dueTerceiros/desfazer/" + id)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    DueTerceirosService.prototype.getItensTmpById = function (id) {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_1__["environment"].specifics_service_url + "/api/v1/cotriguacu/dueTerceiros/getItensTmpById/" + id)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    DueTerceirosService.prototype.getNfsReferenciadas = function (cliCotriDueTerceirosId) {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_1__["environment"].specifics_service_url + "/api/v1/cotriguacu/dueTerceiros/getNfsReferenciadas/" + cliCotriDueTerceirosId)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    DueTerceirosService.prototype.updateNfsReferenciadas = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_1__["environment"].specifics_service_url + "/api/v1/cotriguacu/dueTerceiros/updateNfsReferenciadas", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    DueTerceirosService.prototype.encerrarProcesso = function (cliCotriDueTerceirosId) {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_1__["environment"].specifics_service_url + "/api/v1/cotriguacu/dueTerceiros/encerrarProcesso/" + cliCotriDueTerceirosId)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    DueTerceirosService.prototype.reabrirProcesso = function (cliCotriDueTerceirosId) {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_1__["environment"].specifics_service_url + "/api/v1/cotriguacu/dueTerceiros/reabrirProcesso/" + cliCotriDueTerceirosId)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    DueTerceirosService.prototype.getItensById = function (id) {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_1__["environment"].specifics_service_url + "/api/v1/cotriguacu/dueTerceiros/getItensById/" + id)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    DueTerceirosService.prototype.gerarXmlDueIndividual = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_1__["environment"].specifics_service_url + "/api/v1/cotriguacu/dueTerceiros/gerarXmlDueIndividual", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    DueTerceirosService.prototype.gerarXmlDueParaTodos = function (id) {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_1__["environment"].specifics_service_url + "/api/v1/cotriguacu/dueTerceiros/gerarXmlDueParaTodos/" + id)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    DueTerceirosService.prototype.getDadosRetificacaoDueXmlById = function (id) {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_1__["environment"].specifics_service_url + "/api/v1/cotriguacu/dueTerceiros/getDadosRetificacaoDueXmlById/" + id)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    DueTerceirosService.prototype.gerarRetificacaoDueXmlIndividual = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_1__["environment"].specifics_service_url + "/api/v1/cotriguacu/dueTerceiros/gerarRetificacaoDueXmlIndividual", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    DueTerceirosService.prototype.gerarRetificacaoDueXmlParaTodos = function (id) {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_1__["environment"].specifics_service_url + "/api/v1/cotriguacu/dueTerceiros/gerarRetificacaoDueXmlParaTodos/" + id)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    DueTerceirosService.prototype.gravarOutrasOperacoes = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_1__["environment"].specifics_service_url + "/api/v1/cotriguacu/dueTerceiros/gravarOutrasOperacoes", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    DueTerceirosService.prototype.excluirItemTmpOutrasOperacoes = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_1__["environment"].specifics_service_url + "/api/v1/cotriguacu/dueTerceiros/excluirItemTmpOutrasOperacoes", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    DueTerceirosService.prototype.getOutrasOperacoesTmp = function (id) {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_1__["environment"].specifics_service_url + "/api/v1/cotriguacu/dueTerceiros/getOutrasOperacoesTmp/" + id)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    DueTerceirosService.prototype.gravarItemImportador = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_1__["environment"].specifics_service_url + "/api/v1/cotriguacu/dueTerceiros/gravarItemImportador", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    DueTerceirosService.prototype.getItemImportadorTmp = function (id) {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_1__["environment"].specifics_service_url + "/api/v1/cotriguacu/dueTerceiros/getItemImportadorTmp/" + id)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    DueTerceirosService.prototype.excluirItemTmpImportadores = function (data) {
        return this.http
            .post(environments_environment__WEBPACK_IMPORTED_MODULE_1__["environment"].specifics_service_url + "/api/v1/cotriguacu/dueTerceiros/excluirItemTmpImportadores", data)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    DueTerceirosService.prototype.removerProgramacao = function (cliCotriDueTerceirosId) {
        return this.http
            .get(environments_environment__WEBPACK_IMPORTED_MODULE_1__["environment"].specifics_service_url + "/api/v1/cotriguacu/dueTerceiros/removerProgramacao/" + cliCotriDueTerceirosId)
            .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])(app_app_error_handler__WEBPACK_IMPORTED_MODULE_3__["ErrorHandler"].handleError));
    };
    DueTerceirosService.prototype.trocaTipoImpressao = function (tipoImpressao) {
        switch (tipoImpressao) {
            case 'relDeCapaProcesso':
                this.tiposImpressao = [
                    { value: "dadosIndex", label: "labels.impressaoDeListagem" },
                    { value: "relDeCapaProcesso", label: "labels.relDeCapaProcesso" }
                ];
                break;
            case 'listagem':
                this.tiposImpressao = [
                    { value: "dadosIndex", label: "labels.impressaoDeListagem" }
                ];
                break;
            default:
                break;
        }
    };
    DueTerceirosService.prototype.back = function () {
        this.funcoes.desabilitarFiltro();
        this.router.navigate(["" + this.target + this.pageRoute]);
    };
    DueTerceirosService.ctorParameters = function () { return [
        { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] },
        { type: app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__["MessageService"] },
        { type: app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_10__["FuncoesService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_9__["Router"] }
    ]; };
    DueTerceirosService = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_4__["Injectable"])({
            providedIn: 'root'
        }),
        __metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"],
            app_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_8__["MessageService"],
            app_shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_10__["FuncoesService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_9__["Router"]])
    ], DueTerceirosService);
    return DueTerceirosService;
}(app_shared_services_base_specifics_base_service__WEBPACK_IMPORTED_MODULE_5__["SpecificsBaseService"]));



/***/ }),

/***/ "./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros.validations.ts":
/*!****************************************************************************************************!*\
  !*** ./src/app/pages/especificos/cotriguacu/movimentos/due-terceiros/due-terceiros.validations.ts ***!
  \****************************************************************************************************/
/*! exports provided: DueTerceirosValidation */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DueTerceirosValidation", function() { return DueTerceirosValidation; });
/* harmony import */ var app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_0__ = __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_1__ = __webpack_require__(/*! app/shared/services/funcoes/number-utils/number-utils.static.service */ "./src/app/shared/services/funcoes/number-utils/number-utils.static.service.ts");
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};


var DueTerceirosValidation = /** @class */ (function () {
    function DueTerceirosValidation(message, funcoes, service) {
        this.message = message;
        this.funcoes = funcoes;
        this.service = service;
        this.dataAtual = new Date();
    }
    DueTerceirosValidation.prototype.getValidations = function (data) {
        var r = [];
        r.push(this.abaDadosValidaDtPrograma({ "dados": data }));
        r.push(this.abaDadosValidaDtAtracacao({ "dados": data }));
        r.push(this.abaDadosValidaDtSaida({ "dados": data }));
        r.push(this.abaDadosValidaCaladoSaida({ "dados": data }));
        r.push(this.abaDadosValidaCaladoChegada({ "dados": data }));
        r.push(this.abaItensNaoPodeSerVazia({ "dados": data }));
        return r.filter(function (v) { return v["isValid"] === false; });
    };
    DueTerceirosValidation.prototype.abaItensNaoPodeSerVazia = function (params, showError) {
        if (showError === void 0) { showError = false; }
        var r = { "isValid": true, "message": "", "params": {} };
        if (params.dados.dueTerceirosItens.length === 0)
            r.isValid = false;
        r.message = "messages.precisaCadastrarUmItem";
        if (!r.isValid && showError) {
            this.message.warning("titles.dueterceiros", r.message);
        }
        return r;
    };
    DueTerceirosValidation.prototype.abaDadosValidaDtPrograma = function (params, showError) {
        if (showError === void 0) { showError = false; }
        var r = { "isValid": true, "message": "", "params": {} };
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["DateTimeUtilsStaticService"].menorAHoje(params.dados.dtPrograma) && this.service.valDtChegada && params.dados.flagChegada !== 'S' && !this.service.progDataAnt)
            r.isValid = false;
        r.message = "messages.dataChegadaMenorDataAtual";
        if (!r.isValid && showError) {
            this.message.warning("titles.dueterceiros", r.message);
        }
        return r;
    };
    DueTerceirosValidation.prototype.abaDadosValidaDtAtracacao = function (params, showError) {
        if (showError === void 0) { showError = false; }
        var r = { "isValid": true, "message": "", "params": {} };
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["DateTimeUtilsStaticService"].menorA(params.dados.dtAtracacao, params.dados.dtPrograma, ['H', 'M']) && this.service.obrDtAtrSaida)
            r.isValid = false;
        r.message = "messages.dataAtracacaoMenorDataChegada";
        if (!r.isValid && showError) {
            this.message.warning("titles.dueterceiros", r.message);
        }
        return r;
    };
    DueTerceirosValidation.prototype.abaDadosValidaDtSaida = function (params, showError) {
        if (showError === void 0) { showError = false; }
        var r = { "isValid": true, "message": "", "params": {} };
        if (app_shared_services_funcoes_date_time_utils_date_time_utils_static_service__WEBPACK_IMPORTED_MODULE_0__["DateTimeUtilsStaticService"].menorA(params.dados.dtSaida, params.dados.dtAtracacao, ['H', 'M']) && this.service.obrDtAtrSaida)
            r.isValid = false;
        r.message = "messages.dataSaidaMenorDataAtracacao";
        if (!r.isValid && showError) {
            this.message.warning("titles.dueterceiros", r.message);
        }
        return r;
    };
    DueTerceirosValidation.prototype.abaDadosValidaCaladoSaida = function (params, showError) {
        if (showError === void 0) { showError = false; }
        var r = { "isValid": true, "message": "", "params": {} };
        if (this.service.data.caladoSaida > app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_1__["NumberUtilsStaticService"].toNumber(this.service.data.pier.calado) && app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_1__["NumberUtilsStaticService"].toNumber(this.service.data.pier.calado) > 0)
            r.isValid = false;
        r.message = "messages.caladoSaidaMaiorCaladoPier";
        if (!r.isValid && showError) {
            this.message.warning("titles.dueterceiros", r.message);
        }
        return r;
    };
    DueTerceirosValidation.prototype.abaDadosValidaCaladoChegada = function (params, showError) {
        if (showError === void 0) { showError = false; }
        var r = { "isValid": true, "message": "", "params": {} };
        if (this.service.data.caladoChegada > app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_1__["NumberUtilsStaticService"].toNumber(this.service.data.pier.calado) && app_shared_services_funcoes_number_utils_number_utils_static_service__WEBPACK_IMPORTED_MODULE_1__["NumberUtilsStaticService"].toNumber(this.service.data.pier.calado) > 0)
            r.isValid = false;
        r.message = "messages.caladoSaidaMaiorCaladoPier";
        if (!r.isValid && showError) {
            this.message.warning("titles.dueterceiros", r.message);
        }
        return r;
    };
    return DueTerceirosValidation;
}());



/***/ })

}]);
//# sourceMappingURL=app-pages-especificos-cotriguacu-movimentos-due-terceiros-due-terceiros-module.js.map