(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["app-pages-cadastro-destinatario-destinatario-module"],{

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/destinatario/destinatario-contato/destinatario-contato.component.html":
/*!********************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/destinatario/destinatario-contato/destinatario-contato.component.html ***!
  \********************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"row\">\r\n    <div class=\"col-md-12 col-lg-12\">\r\n        <div *ngIf=\"!showAdd\">\r\n            <div class=\"btn-group\" *ngIf=\"!showAdd\">\r\n                <button title=\"{{ 'buttons.novo' | translate }}\" class=\"btn uni-btn btn-sm\" (click)=\"create()\"\r\n                    [disabled]=\"disabled\">\r\n                    <i class=\"icon-plus\"></i>\r\n                </button>\r\n                <button title=\"{{ 'buttons.visualizar' | translate }}\" (click)=\"detail()\" class=\"btn uni-btn btn-sm\"\r\n                    [disabled]=\"funcoesService.showButtons.detail(actionForm,  dataAux.sequencia)\">\r\n                    <i class=\"icon-eye\"></i>\r\n                </button>\r\n                <button title=\"{{ 'buttons.editar' | translate }}\" class=\"btn uni-btn btn-sm\" (click)=\"edit()\"\r\n                    [disabled]=\"disabled || funcoesService.showButtons.detail(actionForm,  dataAux.sequencia)\">\r\n                    <i class=\"icon-pencil\"></i>\r\n                </button>\r\n                <button title=\"{{ 'buttons.excluir' | translate }}\" class=\"btn uni-btn btn-sm\" (click)=\"remove()\"\r\n                    [disabled]=\"disabled || funcoesService.showButtons.detail(actionForm,  dataAux.sequencia)\">\r\n                    <i class=\"icon-close\"></i>\r\n                </button>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n\r\n<div class=\"row\" *ngIf=\"!showAdd\">\r\n    <div class=\"clearfix\">&nbsp;</div>\r\n    <div class=\"col-md-12 col-lg-12\">\r\n        <table class=\"table table-striped table-bordered table-hover rownowrap form-control-sm\">\r\n            <thead>\r\n                <tr>\r\n                    <th class=\"text-center\">{{ 'labels.contato' | translate }}</th>\r\n                    <th class=\"text-center\">{{ 'labels.telefone' | translate }}</th>\r\n                    <th class=\"text-center\">{{ 'labels.telefone' | translate }}</th>\r\n                    <th class=\"text-center\">{{ 'labels.complTel' | translate }}</th>\r\n                </tr>\r\n            </thead>\r\n            <tbody>\r\n                <tr *ngFor=\"let c of dados | removeExcluidos\" class=\"clickable\" [ngClass]=\"{ 'info' : c === dataAux }\"\r\n                    (click)=\"(dataAux = c)\">\r\n                    <td class=\"text-center\">{{c.contatoId}}</td>\r\n                    <td class=\"text-center\">{{c.telefone1}}</td>\r\n                    <td class=\"text-center\">{{c.telefone2}}</td>\r\n                    <td class=\"text-center\">{{c.complTel1}}</td>\r\n                </tr>\r\n                <tr *ngIf=\"!hasDados\">\r\n                    <th colspan=\"9\">\r\n                        {{'messages.nenhumRegistroEncontrado' | translate }}\r\n                    </th>\r\n                </tr>\r\n            </tbody>\r\n        </table>\r\n    </div>\r\n</div>\r\n\r\n<div *ngIf=\"showAdd\">\r\n    <div class=\"row\">\r\n        <div class=\"col-lg-6\">\r\n            <div class=\"uni-botoes\">\r\n                <button title=\"{{ 'buttons.editar' | translate }}\" class=\"btn uni-btn btn-sm\" (click)=\"edit()\"\r\n                    [disabled]=\"disabled || funcoesService.showButtons.edit(actionForm, dataAux.destinatarioId)\">\r\n                    <i class=\"fa fa-edit\"></i>\r\n                </button>\r\n                <button title=\"{{ 'buttons.voltar' | translate }}\" (click)=\"back()\" type=\"button\"\r\n                    class=\"btn uni-btn btn-sm\">\r\n                    <i class=\"fa fa-arrow-left\"></i>\r\n                </button>\r\n            </div>\r\n        </div>\r\n        <div class=\"col-lg-6\">\r\n            <app-form-legenda></app-form-legenda>\r\n        </div>\r\n    </div>\r\n\r\n    <div class=\"clearfix\">&nbsp;</div>\r\n\r\n    <form class=\"form\" #destContato=\"ngForm\" (ngSubmit)=\"onSubmit(destContato)\">\r\n        <div class=\"row\">\r\n            <div class=\"col-12\">\r\n                <div class=\"card\">\r\n                    <div class=\"card-body widget-body\">\r\n                        <app-validacoes></app-validacoes>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-7\">\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"contato\" class=\"required\">{{\"labels.contato\" |\r\n                                                translate}}</label>\r\n                                            <input id=\"contato\" name=\"contatoId\" [(ngModel)]=\"data.contatoId\"\r\n                                                class=\"form-control form-control-sm\" type=\"text\"\r\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\" required=\"true\"\r\n                                                maxlength=\"25\" />\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-7\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"departamento\" class=\"required\">{{\"labels.departamento\" |\r\n                                                translate}}</label>\r\n                                            <app-combo-padrao name=\"departamento\" id=\"departamento\" chave=\"CodDepto\"\r\n                                                descricao=\"DescrDepto\" ativo=\"true\" tabela=\"Departamentos\"\r\n                                                required=\"true\" [(ngModel)]=\"data.departamentoId\"\r\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                            </app-combo-padrao>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-6\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"telefone1\">{{\"labels.telefone1\" | translate}}</label>\r\n                                            <input id=\"telefone1\" name=\"telefone1\" [(ngModel)]=\"data.telefone1\"\r\n                                                class=\"form-control form-control-sm\" type=\"text\" [mask]=\"'000000009'\"\r\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\" maxlength=\"10\" />\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-4\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"complTel1\">{{\"labels.complTel\" | translate}}</label>\r\n                                            <input id=\"complTel1\" name=\"complTel1\" [(ngModel)]=\"data.complTel1\"\r\n                                                class=\"form-control form-control-sm\" type=\"text\"\r\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\" maxlength=\"20\" />\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-6\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"telefone2\">{{\"labels.telefone2\" | translate}}</label>\r\n                                            <input id=\"telefone2\" name=\"telefone2\" [(ngModel)]=\"data.telefone2\"\r\n                                                class=\"form-control form-control-sm\" type=\"text\" [mask]=\"'000000009'\"\r\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\" maxlength=\"10\" />\r\n                                        </div>\r\n                                    </div>\r\n                                    <div class=\"col-4\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"complTel2\">{{\"labels.complTel\" | translate}}</label>\r\n                                            <input id=\"complTel2\" name=\"complTel2\" [(ngModel)]=\"data.complTel2\"\r\n                                                class=\"form-control form-control-sm\" type=\"text\"\r\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\" maxlength=\"20\" />\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"email1\">{{\"labels.email1\" | translate}}</label>\r\n                                            <input id=\"email1\" name=\"email1\" [(ngModel)]=\"data.email1\"\r\n                                                class=\"form-control form-control-sm\" type=\"text\"\r\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\" maxlength=\"60\" />\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                                <div class=\"row\">\r\n                                    <div class=\"col-12\">\r\n                                        <div class=\"form-group form-group-sm\">\r\n                                            <label for=\"email2\">{{\"labels.email2\" | translate}}</label>\r\n                                            <input id=\"email2\" name=\"email2\" [(ngModel)]=\"data.email2\"\r\n                                                class=\"form-control form-control-sm\" type=\"text\"\r\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\" maxlength=\"60\" />\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"col-5\">\r\n                                <div class=\"card\">\r\n                                    <div class=\"card-header\"><span>Tipo de Contato</span></div>\r\n                                    <div class=\"card-body\">\r\n                                        <div class=\"row\" style=\"top: -10px\">\r\n                                            <div class=\"col-6\" style=\"top: -10px\">\r\n                                                <div class=\"custom-control custom-checkbox uni-checkbox\"\r\n                                                    style=\"top: -10px\">\r\n                                                    <div class=\"form-group form-group-sx\" style=\"top: -10px\">\r\n                                                        <input id=\"flagFin\" name=\"flagFin\"\r\n                                                            [ngModel]=\"data.flagFin === 'S'\"\r\n                                                            (ngModelChange)=\"data.flagFin = $event ? 'S' : 'N'\"\r\n                                                            class=\"custom-control-input checkbox-success\"\r\n                                                            type=\"checkbox\"\r\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\" />\r\n                                                        <label class=\"custom-control-label\" for=\"flagFin\">{{\r\n                                                            \"labels.flagFin\" | translate }}</label>\r\n                                                    </div>\r\n                                                </div>\r\n                                            </div>\r\n                                        </div>\r\n                                        <div class=\"row\" style=\"top: -10px\">\r\n                                            <div class=\"col-6\" style=\"top: -10px\">\r\n                                                <div class=\"custom-control custom-checkbox uni-checkbox\"\r\n                                                    style=\"top: -10px\">\r\n                                                    <div class=\"form-group form-group-sx\" style=\"top: -10px\">\r\n                                                        <input id=\"flagMala\" name=\"flagMala\"\r\n                                                            [ngModel]=\"data.flagMala === 'S'\"\r\n                                                            (ngModelChange)=\"data.flagMala = $event ? 'S' : 'N'\"\r\n                                                            class=\"custom-control-input checkbox-success\"\r\n                                                            type=\"checkbox\"\r\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\" />\r\n                                                        <label class=\"custom-control-label\" for=\"flagMala\">{{\r\n                                                            \"labels.flagMala\" | translate }}</label>\r\n                                                    </div>\r\n                                                </div>\r\n                                            </div>\r\n                                        </div>\r\n                                        <div class=\"row\" style=\"top: -10px\">\r\n                                            <div class=\"col-6\" style=\"top: -10px\">\r\n                                                <div class=\"custom-control custom-checkbox uni-checkbox\"\r\n                                                    style=\"top: -10px\">\r\n                                                    <div class=\"form-group form-group-sx\" style=\"top: -10px\">\r\n                                                        <input id=\"flagCtv\" name=\"flagCtv\"\r\n                                                            [ngModel]=\"data.flagCtv === 'S'\"\r\n                                                            (ngModelChange)=\"data.flagCtv = $event ? 'S' : 'N'\"\r\n                                                            class=\"custom-control-input checkbox-success\"\r\n                                                            type=\"checkbox\"\r\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\" />\r\n                                                        <label class=\"custom-control-label\" for=\"flagCtv\">{{\r\n                                                            \"labels.flagCtv\" | translate }}</label>\r\n                                                    </div>\r\n                                                </div>\r\n                                            </div>\r\n                                        </div>\r\n                                        <div class=\"row\" style=\"top: -10px\">\r\n                                            <div class=\"col-6\" style=\"top: -10px\">\r\n                                                <div class=\"custom-control custom-checkbox uni-checkbox\"\r\n                                                    style=\"top: -10px\">\r\n                                                    <div class=\"form-group form-group-sx\" style=\"top: -10px\">\r\n                                                        <input id=\"flagNota\" name=\"flagNota\"\r\n                                                            [ngModel]=\"data.flagNota === 'S'\"\r\n                                                            (ngModelChange)=\"data.flagNota = $event ? 'S' : 'N'\"\r\n                                                            class=\"custom-control-input checkbox-success\"\r\n                                                            type=\"checkbox\"\r\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\" />\r\n                                                        <label class=\"custom-control-label\" for=\"flagNota\">{{\r\n                                                            \"labels.flagNota\" | translate }}</label>\r\n                                                    </div>\r\n                                                </div>\r\n                                            </div>\r\n                                        </div>\r\n                                        <div class=\"row\" style=\"top: -10px\">\r\n                                            <div class=\"col-6\" style=\"top: -10px\">\r\n                                                <div class=\"custom-control custom-checkbox uni-checkbox\"\r\n                                                    style=\"top: -10px\">\r\n                                                    <div class=\"form-group form-group-sx\" style=\"top: -10px\">\r\n                                                        <input id=\"flagRps\" name=\"flagRps\"\r\n                                                            [ngModel]=\"data.flagRPS === 'S'\"\r\n                                                            (ngModelChange)=\"data.flagRPS = $event ? 'S' : 'N'\"\r\n                                                            class=\"custom-control-input checkbox-success\"\r\n                                                            type=\"checkbox\"\r\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\" />\r\n                                                        <label class=\"custom-control-label\" for=\"flagRps\">{{\r\n                                                            \"labels.flagRps\" | translate }}</label>\r\n                                                    </div>\r\n                                                </div>\r\n                                            </div>\r\n                                        </div>\r\n                                        <div class=\"row\" style=\"top: -10px\">\r\n                                            <div class=\"col-6\" style=\"top: -10px\">\r\n                                                <div class=\"custom-control custom-checkbox uni-checkbox\"\r\n                                                    style=\"top: -10px\">\r\n                                                    <div class=\"form-group form-group-sx\" style=\"top: -10px\">\r\n                                                        <input id=\"flagOperacaoNavio\" name=\"flagOperacaoNavio\"\r\n                                                            [ngModel]=\"data.flagOperacaoNavio === 'S'\"\r\n                                                            (ngModelChange)=\"data.flagOperacaoNavio = $event ? 'S' : 'N'\"\r\n                                                            class=\"custom-control-input checkbox-success\"\r\n                                                            type=\"checkbox\"\r\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\" />\r\n                                                        <label class=\"custom-control-label\" for=\"flagOperacaoNavio\">{{\r\n                                                            \"labels.flagOperacaoNavio\" | translate }}</label>\r\n                                                    </div>\r\n                                                </div>\r\n                                            </div>\r\n                                        </div>\r\n\r\n                                        <div class=\"row\" style=\"top: -10px\">\r\n                                            <div class=\"col-12\" style=\"top: -10px\">\r\n                                                <div class=\"custom-control custom-checkbox uni-checkbox\"\r\n                                                    style=\"top: -10px\">\r\n                                                    <div class=\"form-group form-group-sx\" style=\"top: -10px\">\r\n                                                        <input id=\"flagRestricoes\" name=\"flagRestricoes\"\r\n                                                            [ngModel]=\"data.flagRestricoes === 'S'\"\r\n                                                            (ngModelChange)=\"data.flagRestricoes = $event ? 'S' : 'N'\"\r\n                                                            class=\"custom-control-input checkbox-success\"\r\n                                                            type=\"checkbox\"\r\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\" />\r\n                                                        <label class=\"custom-control-label\" for=\"flagRestricoes\">{{\r\n                                                            \"labels.flagRestricoes\" | translate }}</label>\r\n                                                    </div>\r\n                                                </div>\r\n                                            </div>\r\n                                        </div>\r\n                                        <div class=\"row\" style=\"top: -10px\">\r\n                                            <div class=\"col-6\" style=\"top: -10px\">\r\n                                                <div class=\"custom-control custom-checkbox uni-checkbox\"\r\n                                                    style=\"top: -10px\">\r\n                                                    <div class=\"form-group form-group-sx\" style=\"top: -10px\">\r\n                                                        <input id=\"flagInspVeic\" name=\"flagInspVeic\"\r\n                                                            [ngModel]=\"data.flagInspVeic === 'S'\"\r\n                                                            (ngModelChange)=\"data.flagInspVeic = $event ? 'S' : 'N'\"\r\n                                                            class=\"custom-control-input checkbox-success\"\r\n                                                            type=\"checkbox\"\r\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\" />\r\n                                                        <label class=\"custom-control-label\" for=\"flagInspVeic\">{{\r\n                                                            \"labels.flagInspVeic\" | translate }}</label>\r\n                                                    </div>\r\n                                                </div>\r\n                                            </div>\r\n                                        </div>\r\n                                        <div class=\"row\" style=\"top: -10px\">\r\n                                            <div class=\"col-9\" style=\"top: -10px\">\r\n                                                <div class=\"custom-control custom-checkbox uni-checkbox\"\r\n                                                    style=\"top: -10px\">\r\n                                                    <div class=\"form-group form-group-sx\" style=\"top: -10px\">\r\n                                                        <input id=\"flagIOC\" name=\"flagIOC\"\r\n                                                            [ngModel]=\"data.flagIOC === 'S'\"\r\n                                                            (ngModelChange)=\"data.flagIOC = $event ? 'S' : 'N'\"\r\n                                                            class=\"custom-control-input checkbox-success\"\r\n                                                            type=\"checkbox\"\r\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\" />\r\n                                                        <label class=\"custom-control-label\" for=\"flagIOC\">{{\r\n                                                            \"labels.flagIOC\" | translate }}</label>\r\n                                                    </div>\r\n                                                </div>\r\n                                            </div>\r\n                                        </div>\r\n                                        <div class=\"row\" style=\"top: -10px\">\r\n                                            <div class=\"col-6\" style=\"top: -10px\">\r\n                                                <div class=\"custom-control custom-checkbox uni-checkbox\"\r\n                                                    style=\"top: -10px\">\r\n                                                    <div class=\"form-group form-group-sx\" style=\"top: -10px\">\r\n                                                        <input id=\"flagAgendamento\" name=\"flagAgendamento\"\r\n                                                            [ngModel]=\"data.flagAgendamento === 'S'\"\r\n                                                            (ngModelChange)=\"data.flagAgendamento = $event ? 'S' : 'N'\"\r\n                                                            class=\"custom-control-input checkbox-success\"\r\n                                                            type=\"checkbox\"\r\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\" />\r\n                                                        <label class=\"custom-control-label\" for=\"flagAgendamento\">{{\r\n                                                            \"labels.agendamento\" | translate }}</label>\r\n                                                    </div>\r\n                                                </div>\r\n                                            </div>\r\n                                        </div>\r\n                                        <div class=\"row\" style=\"top: -10px\">\r\n                                            <div class=\"col-6\" style=\"top: -10px\">\r\n                                                <div class=\"custom-control custom-checkbox uni-checkbox\"\r\n                                                    style=\"top: -10px\">\r\n                                                    <div class=\"form-group form-group-sx\" style=\"top: -10px\">\r\n                                                        <input id=\"flagCompras\" name=\"flagCompras\"\r\n                                                            [ngModel]=\"data.flagCompras === 'S'\"\r\n                                                            (ngModelChange)=\"data.flagCompras = $event ? 'S' : 'N'\"\r\n                                                            class=\"custom-control-input checkbox-success\"\r\n                                                            type=\"checkbox\"\r\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\" />\r\n                                                        <label class=\"custom-control-label\" for=\"flagCompras\">{{\r\n                                                            \"labels.flagCompras\" | translate }}</label>\r\n                                                    </div>\r\n                                                </div>\r\n                                            </div>\r\n                                        </div>\r\n                                        <div class=\"row\" style=\"top: -10px\">\r\n                                            <div class=\"col-6\" style=\"top: -10px\">\r\n                                                <div class=\"custom-control custom-checkbox uni-checkbox\"\r\n                                                    style=\"top: -10px\">\r\n                                                    <div class=\"form-group form-group-sx\" style=\"top: -10px\">\r\n                                                        <input id=\"flagMobile\" name=\"flagMobile\"\r\n                                                            [ngModel]=\"data.flagMobile === 'S'\"\r\n                                                            (ngModelChange)=\"data.flagMobile = $event ? 'S' : 'N'\"\r\n                                                            class=\"custom-control-input checkbox-success\"\r\n                                                            type=\"checkbox\"\r\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\" />\r\n                                                        <label class=\"custom-control-label\" for=\"flagMobile\">{{\r\n                                                            \"labels.mobile\" | translate }}</label>\r\n                                                    </div>\r\n                                                </div>\r\n                                            </div>\r\n                                        </div>\r\n                                        <div class=\"row\" style=\"top: -10px\">\r\n                                            <div class=\"col-6\" style=\"top: -10px\">\r\n                                                <div class=\"custom-control custom-checkbox uni-checkbox\"\r\n                                                    style=\"top: -10px\">\r\n                                                    <div class=\"form-group form-group-sx\" style=\"top: -10px\">\r\n                                                        <input id=\"flagCarta\" name=\"flagCarta\"\r\n                                                            [ngModel]=\"data.flagCarta === 'S'\"\r\n                                                            (ngModelChange)=\"data.flagCarta = $event ? 'S' : 'N'\"\r\n                                                            class=\"custom-control-input checkbox-success\"\r\n                                                            type=\"checkbox\"\r\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\" />\r\n                                                        <label class=\"custom-control-label\" for=\"flagCarta\">{{\r\n                                                            \"labels.carta\" | translate }}</label>\r\n                                                    </div>\r\n                                                </div>\r\n                                            </div>\r\n                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"form-group\">\r\n                            <button class=\"btn btn-success\" type=\"submit\"\r\n                                [disabled]=\"funcoesService.isDetail(actionForm)\">{{ 'buttons.salvar' | translate }}\r\n                            </button>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </form>\r\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/destinatario/destinatario-entrega/destinatario-entrega.component.html":
/*!********************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/destinatario/destinatario-entrega/destinatario-entrega.component.html ***!
  \********************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<div class=\"row\">\r\n    <div class=\"col-md-12 col-lg-12\">\r\n        <div *ngIf=\"!showAdd\">\r\n            <div class=\"btn-group\" *ngIf=\"!showAdd\">\r\n                <button title=\"{{ 'buttons.novo' | translate }}\" class=\"btn uni-btn btn-sm\" (click)=\"create()\"\r\n                    [disabled]=\"disabled\">\r\n                    <i class=\"icon-plus\"></i>\r\n                </button>\r\n                <button title=\"{{ 'buttons.visualizar' | translate }}\" (click)=\"detail()\" class=\"btn uni-btn btn-sm\"\r\n                    [disabled]=\" funcoesService.showButtons.detail(actionForm, dataAux?.destinatarioIdEntrega)\">\r\n                    <i class=\"icon-eye\"></i>\r\n                </button>\r\n                <button title=\"{{ 'buttons.editar' | translate }}\" class=\"btn uni-btn btn-sm\" (click)=\"edit()\"\r\n                    [disabled]=\"disabled || funcoesService.showButtons.edit(actionForm, dataAux?.destinatarioIdEntrega)\">\r\n                    <i class=\"icon-pencil\"></i>\r\n                </button>\r\n                <button title=\"{{ 'buttons.excluir' | translate }}\" class=\"btn uni-btn btn-sm\" (click)=\"remove()\"\r\n                    [disabled]=\"disabled ||funcoesService.showButtons.remove(actionForm, dataAux?.destinatarioIdEntrega)\">\r\n                    <i class=\"icon-close\"></i>\r\n                </button>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n\r\n<div class=\"row\" *ngIf=\"!showAdd\">\r\n    <div class=\"clearfix\">&nbsp;</div>\r\n    <div class=\"col-md-12 col-lg-12\">\r\n        <table class=\"table table-striped table-bordered table-hover rownowrap form-control-sm\">\r\n            <thead>\r\n                <tr>\r\n                    <th class=\"text-center\">{{ \"labels.fantasia\" | translate }}</th>\r\n                    <th class=\"text-center\">{{ \"labels.endereco\" | translate }}</th>\r\n                    <th class=\"text-center\">{{ \"labels.municipio\" | translate }}</th>\r\n                    <th class=\"text-center\">{{ \"labels.estado\" | translate }}</th>\r\n                </tr>\r\n            </thead>\r\n            <tbody>\r\n                <tr *ngFor=\"let c of (dados | removeExcluidos)\" class=\"clickable\" [ngClass]=\"{ info: c === dataAux }\"\r\n                    (click)=\"dataAux = c\">\r\n                    <td class=\"text\">{{ c.entrega.fantasia }}</td>\r\n                    <td class=\"text\">{{ c.entrega.endereco }}</td>\r\n                    <td class=\"text\">{{ c.entrega.municipio }}</td>\r\n                    <td class=\"text\">{{ c.entrega.estadoId }}</td>\r\n                </tr>\r\n                <tr *ngIf=\"!hasDados\">\r\n                    <th colspan=\"9\">\r\n                        {{ \"messages.nenhumRegistroEncontrado\" | translate }}\r\n                    </th>\r\n                </tr>\r\n            </tbody>\r\n        </table>\r\n    </div>\r\n</div>\r\n\r\n<div *ngIf=\"showAdd\">\r\n    <div class=\"row\">\r\n        <div class=\"col-lg-6\">\r\n            <div class=\"uni-botoes\">\r\n                <button title=\"{{ 'buttons.editar' | translate }}\" class=\"btn uni-btn btn-sm\" (click)=\"edit()\"\r\n                    [disabled]=\"disabled || funcoesService.showButtons.edit(actionForm, dataAux.destinatarioId)\">\r\n                    <i class=\"fa fa-edit\"></i>\r\n                </button>\r\n                <button title=\"{{ 'buttons.voltar' | translate }}\" (click)=\"back()\" type=\"button\"\r\n                    class=\"btn uni-btn btn-sm\">\r\n                    <i class=\"fa fa-arrow-left\"></i>\r\n                </button>\r\n            </div>\r\n        </div>\r\n        <div class=\"col-lg-6\">\r\n            <app-form-legenda></app-form-legenda>\r\n        </div>\r\n    </div>\r\n\r\n    <div class=\"clearfix\">&nbsp;</div>\r\n\r\n    <form class=\"form\" #destEntrega=\"ngForm\" (ngSubmit)=\"onSubmit(destEntrega)\">\r\n        <div class=\"row\">\r\n            <div class=\"col-12\">\r\n                <div class=\"card\">\r\n                    <div class=\"card-body widget-body\">\r\n                        <app-validacoes></app-validacoes>\r\n                        <div class=\"row\">\r\n                            <div class=\"col-12\">\r\n                                <app-pesquisa-destinatario id=\"entrega\" name=\"entrega\" label=\"entrega\"\r\n                                    modalTitle=\"pesquisaEntrega\" showCgcCpf=\"false\" showInscricao=\"false\"\r\n                                    required=\"true\" [(ngModel)]=\"data.destinatarioIdEntrega\"\r\n                                    [disabled]=\"funcoesService.isDetail(actionForm)\"\r\n                                    (outModel)=\"trataEntrega($event)\" [inSelected]=\"data.entrega\">\r\n                                </app-pesquisa-destinatario>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"form-group\">\r\n                            <button class=\"btn btn-success\" type=\"submit\"\r\n                                [disabled]=\"funcoesService.isDetail(actionForm)\">\r\n                                {{ \"buttons.salvar\" | translate }}\r\n                            </button>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </form>\r\n</div>");

/***/ }),

/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/destinatario/destinatario-filter/destinatario-filter.component.html":
/*!******************************************************************************************************************************************!*\
  !*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/destinatario/destinatario-filter/destinatario-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=\"dest-filter-dialog\" tabindex=\"-1\" role=\"dialog\" data-backdrop=\"static\">\r\n    <div class=\"modal-dialog modal-md\">\r\n        <div class=\"modal-content\">\r\n            <div class=\"modal-header\">\r\n                <h6 class=\"modal-title\">{{ 'titles.pesquisaFiltro' | translate }}</h6>\r\n            </div>\r\n            <div class=\"modal-body\">\r\n                <div class=\"row\">\r\n                    <div class=\"col-lg-12\">\r\n                        <form class=\"form\" #form=\"ngForm\" (ngSubmit)=\"onSubmit(form)\">\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=\"de\">{{'labels.nomeFantasia' | translate}}</label>\r\n                                        <input id=\"de\" name=\"de\" [(ngModel)]=\"service.filtro.de\" maxlength=\"30\"\r\n                                            class=\"form-control form-control-sm\" type=\"text\">\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\">{{'labels.ate' | translate}}</label>\r\n                                        <input id=\"ate\" name=\"ate\" [(ngModel)]=\"service.filtro.ate\" maxlength=\"30\"\r\n                                            class=\"form-control form-control-sm\" type=\"text\">\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"row\">\r\n                                <div class=\"col-lg-12\">\r\n                                    <label for=\"tipoDeDestinatarioId\">{{\"labels.filtroDeTerceiros\" | translate}}</label>\r\n                                    <app-combo-multi-padrao id=\"tipoDeDestinatarioId\" name=\"tipoDeDestinatarioId\"\r\n                                        tabela=\"TipoDeDestinatario\" chave=\"TipoDest\" descricao=\"DescrTipoDest\"\r\n                                        ativos=\"true\" (outObjeto)=\"trataSit($event)\">\r\n                                    </app-combo-multi-padrao>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"row\">\r\n                                <div class=\"col-lg-6\">\r\n                                    <div class=\"custom-control custom-checkbox mt-2\">\r\n                                        <input id=\"flagAtivo\" name=\"flagAtivo\"\r\n                                            [ngModel]=\"service.filtro.flagAtivo === 'S'\"\r\n                                            (ngModelChange)=\"service.filtro.flagAtivo=$event?'S':'N'\"\r\n                                            class=\"custom-control-input checkbox-success\" type=\"checkbox\">\r\n                                        <label class=\"custom-control-label\" for=\"flagAtivo\">{{'labels.apenasAtivos' |\r\n                                            translate}}</label>\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                            <div class=\"form-group mt-2\">\r\n                                <button class=\"btn btn-success mr-1\" type=\"submit\">{{ 'buttons.pesquisar' | translate\r\n                                    }}</button>\r\n                                <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">Sair</button>\r\n                            </div>\r\n                        </form>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n</div>");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */ __webpack_exports__["default"] = ("<app-menu-command-bar [botoesComando]=\"constantes.listaForm\" [formAction]=\"actionForm\" [itemData]=\"data.destinatarioId\"\n    [sisFormularioId]=\"constantes.sisFormularioId\">\n</app-menu-command-bar>\n\n\n<div class=\"row\">\n    <div class=\"col-lg-12\">\n        <div class=\"section-comand-bar\">\n            <div class=\"clearfix\">\n                <ul class=\"nav nav-tabs \">\n                    <li class=\"nav-item\">\n                        <a class=\"nav-link active show\" data-toggle=\"tab\" href=\"#ge\">{{\"labels.gerais\" | translate}}</a>\n                    </li>\n                    <li class=\"nav-item\" *ngIf=\"isTabContatos\">\n                        <a class=\"nav-link\" data-toggle=\"tab\" href=\"#co\">{{\"labels.contatos\" | translate}}</a>\n                    </li>\n                    <li class=\"nav-item\" *ngIf=\"isTabEntrega\">\n                        <a class=\"nav-link\" data-toggle=\"tab\" href=\"#en\">{{\"labels.entrega\" | translate}}</a>\n                    </li>\n                </ul>\n            </div>\n            <div class=\"tab-content top\">\n                <!-- ABA DADOS -->\n                <div class=\"tab-pane active show\" id=\"ge\">\n                    <!--\n                    <div class=\"uni-botoes\">\n                        <div class=\"btn-group\">\n                            <button title=\"{{ 'buttons.verificaPendencias' | translate }}\" class=\"btn uni-btn btn-sm\" (click)=\"detailVrfPendencia()\">\n                                <i class=\"icon-alert _orange\"></i>\n                            </button>\n                        </div>\n                    </div>\n                    -->\n                    <form class=\"form\" #f=\"ngForm\" (ngSubmit)=\"onSubmit(f)\">\n                        <app-form-legenda></app-form-legenda>\n                        <app-validacoes></app-validacoes>\n                        <app-card-container tituloCard=\"\">\n                            <div class=\"row\">\n                                <div class=\"col-lg-6 col-md-12\">\n                                    <div class=\"row\">\n                                        <div class=\"col-lg-12 col-md-12\">\n                                            <div class=\"form-group form-group-sm\">\n                                                <app-input-description\n                                                    [dynamicLabel]=\"tipoDeDestinatario?.descrTipoDest\"\n                                                    [valueID]=\"data.destinatarioId\" [valueDescription]=\"data.fantasia\">\n                                                </app-input-description>\n                                            </div>\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n                        </app-card-container>\n                        <div class=\"clearfix\">\n                            <ul class=\"nav nav-tabs \">\n                                <li class=\"nav-item\">\n                                    <a class=\"nav-link active show\" data-toggle=\"tab\" href=\"#da\">{{\"labels.dados\" |\n                                        translate}}</a>\n                                </li>\n                                <li class=\"nav-item\" *ngIf=\"isTabFatura\">\n                                    <a class=\"nav-link\" data-toggle=\"tab\" href=\"#ft\">{{\"labels.faturamento\" |\n                                        translate}}</a>\n                                </li>\n                                <li class=\"nav-item\">\n                                    <a class=\"nav-link\" data-toggle=\"tab\" href=\"#cp\">{{\"labels.complementares\" |\n                                        translate}}</a>\n                                </li>\n                                <li class=\"nav-item\" *ngIf=\"isTabFornecedor\">\n                                    <a class=\"nav-link\" data-toggle=\"tab\" href=\"#fo\">{{\"labels.fornecedor\" |\n                                        translate}}</a>\n                                </li>\n                                <li class=\"nav-item\">\n                                    <a class=\"nav-link\" data-toggle=\"tab\" href=\"#ad\">{{\"labels.adicionais\" |\n                                        translate}}</a>\n                                </li>\n                                <li class=\"nav-item\">\n                                    <a class=\"nav-link\" data-toggle=\"tab\" href=\"#tr\">{{\"labels.transportador\" |\n                                        translate}}</a>\n                                </li>\n                                <li class=\"nav-item\" *ngIf=\"isTabStorage\">\n                                    <a class=\"nav-link\" data-toggle=\"tab\" href=\"#ds\">{{\"labels.dadosStorage\" |\n                                        translate}}</a>\n                                </li>\n                                <li class=\"nav-item\">\n                                    <a class=\"nav-link\" data-toggle=\"tab\" href=\"#ip\">{{\"labels.impostos\" |\n                                        translate}}</a>\n                                </li>\n                                <li class=\"nav-item\">\n                                    <a class=\"nav-link\" data-toggle=\"tab\" href=\"#in\">{{\"labels.integracao\" |\n                                        translate}}</a>\n                                </li>\n                            </ul>\n                        </div>\n                        <div class=\"tab-content top\">\n                            <!-- ABA DADOS -->\n                            <div class=\"tab-pane active show\" id=\"da\">\n                                <div class=\"row\">\n                                    <div class=\"col-2\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"destinatarioId\">{{ \"labels.codigo\" | translate }}</label>\n                                            <input id=\"destinatarioId\" name=\"destinatarioId\"\n                                                [(ngModel)]=\"data.destinatarioId\" type=\"text\" required=\"true\"\n                                                class=\"form-control form-control-sm\" disabled />\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-6\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"tipoDeDestinatario\" class=\"required\">{{\"labels.tipo\" |\n                                                translate}}</label>\n                                            <select id=\"tipoDeDestinatario\" class=\"form-control form-control-sm\"\n                                                name=\"tipoDeDestinatario\" required\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                [(ngModel)]=\"data.tipoDeDestinatarioId\"\n                                                (change)=\"isPerEspeciaisFornecedorEditarIncluir()\"\n                                                (blur)=\"trataTipoDest()\">\n                                                <option value=\"\">{{\"labels.selecione\" | translate}}</option>\n                                                <option [value]=\"c.tipoDeDestinatarioId\"\n                                                    *ngFor=\"let c of tiposDeDestinatario\">\n                                                    {{ c.descrTipoDest }}\n                                                </option>\n                                            </select>\n                                        </div>\n                                    </div>\n\n                                    <div class=\"col-3\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"flagAtivo\">&nbsp;</label>\n                                            <div class=\"custom-control custom-checkbox\">\n                                                <input id=\"flagAtivo\" name=\"flagAtivo\"\n                                                    [ngModel]=\"data.flagAtivo === 'S'\"\n                                                    (ngModelChange)=\"data.flagAtivo = $event ? 'S' : 'N'\"\n                                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\"\n                                                    [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                                <label class=\"custom-control-label\" for=\"flagAtivo\">{{\"labels.flagAtivo\"\n                                                    | translate}}</label>\n                                            </div>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-6\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"fantasia\" class=\"required\">{{ \"labels.fantasia\" | translate\n                                                }}</label>\n                                            <input id=\"fantasia\" name=\"fantasia\" [(ngModel)]=\"data.fantasia\"\n                                                class=\"form-control form-control-sm\" type=\"text\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\" required=\"true\"\n                                                maxlength=\"25\" uppercase (change)=\"requiredInscricaoEstadual()\" />\n                                        </div>\n                                    </div>\n                                    <div class=\"col-3\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"tipoPessoa\">&nbsp;</label>\n                                            <div class=\"custom-control custom-checkbox\">\n                                                <input id=\"tipoPessoa\" name=\"tipoPessoa\" value=\"P\"\n                                                    [ngModel]=\"data.tipoPessoa === 'F'\"\n                                                    (ngModelChange)=\"data.tipoPessoa = $event ? 'F' : 'J'\"\n                                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\"\n                                                    [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                    (change)=\"requiredInscricaoEstadual()\"\n                                                    (ngModelChange)=\"requiredInscricaoEstadual()\" />\n                                                <label class=\"custom-control-label\"\n                                                    for=\"tipoPessoa\">{{\"labels.pessoaFisica\" | translate}}</label>\n                                            </div>\n                                        </div>\n                                    </div>\n                                    <div class=\"col-3\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"mercado\" class=\"required\">{{ 'labels.mercado' |\n                                                translate}}</label>\n                                            <select [(ngModel)]=\"data.tipoDestino\" class=\"form-control form-control-sm\"\n                                                id=\"mercado\" name=\"mercado\" required=\"true\" (blur)=\"trataTipoDest()\"\n                                                data-title=\"{{'labels.mercado' | translate}}\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                (ngModelChange)=\"requiredInscricaoEstadual()\">\n                                                <option value=\"1\">{{ 'labels.mercadoInterno' | translate }}</option>\n                                                <option value=\"2\">{{ 'labels.mercadoExterno' | translate }}</option>\n                                                <option value=\"3\">{{ 'labels.zonaFranca' | translate }}</option>\n                                                <option value=\"4\">{{ 'labels.produtorRural' | translate }}</option>\n                                            </select>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-6\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"razaoSocial\" class=\"required\"\n                                                *ngIf=\"showRazao()\">{{\"labels.razaoSocial\" | translate}}</label>\n                                            <label for=\"razaoSocial\" class=\"required\"\n                                                *ngIf=\"!showRazao()\">{{\"labels.nome\" | translate}}</label>\n                                            <input id=\"razaoSocial\" name=\"razaoSocial\" [(ngModel)]=\"data.razaoSocial\"\n                                                class=\"form-control form-control-sm\" type=\"text\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\" maxlength=\"50\"\n                                                required=\"true\" uppercase />\n                                        </div>\n                                    </div>\n                                    <div class=\"col-6\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"endereco\" [class.required]=\"isRequiredEndereco\">{{\n                                                \"labels.endereco\" | translate}}</label>\n                                            <input id=\"endereco\" name=\"endereco\" [(ngModel)]=\"data.endereco\"\n                                                class=\"form-control form-control-sm\" type=\"text\" maxlength=\"40\"\n                                                [required]=\"isRequiredEndereco\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\" uppercase />\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-3\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"complEndereco\" [class.required]=\"isRequiredComplEndereco\">{{\n                                                \"labels.complemento\" | translate}}</label>\n                                            <input id=\"complEndereco\" name=\"complEndereco\"\n                                                [(ngModel)]=\"data.complEndereco\" class=\"form-control form-control-sm\"\n                                                type=\"text\" maxlength=\"20\" [required]=\"isRequiredComplEndereco\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\" uppercase />\n                                        </div>\n                                    </div>\n                                    <div class=\"col-3\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"numero\">{{\"labels.numero\" | translate }}</label>\n                                            <input id=\"numero\" name=\"numero\" [(ngModel)]=\"data.numero\"\n                                                class=\"form-control form-control-sm\" type=\"text\" maxlength=\"10\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                        </div>\n                                    </div>\n                                    <div class=\"col-3\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"bairro\" [class.required]=\"isRequiredBairro\">{{\"labels.bairro\" |\n                                                translate}}</label>\n                                            <input id=\"bairro\" name=\"bairro\" [(ngModel)]=\"data.bairro\" maxlength=\"25\"\n                                                class=\"form-control form-control-sm\" type=\"text\"\n                                                [required]=\"isRequiredBairro\" maxlength=\"25\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\" uppercase />\n                                        </div>\n                                    </div>\n                                    <div class=\"col-3\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"cep\" [class.required]=\"isRequiredCep\">{{\"labels.cep\" |\n                                                translate}}</label>\n                                            <input id=\"cep\" name=\"cep\" [(ngModel)]=\"data.cep\" [required]=\"isRequiredCep\"\n                                                class=\"form-control form-control-sm\" type=\"text\" maxlength=\"9\"\n                                                [mask]=\"'00000-000'\" dropSpecialCharacters\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-6\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"estado\" class=\"required\">{{ \"labels.estado\" | translate\n                                                }}</label>\n                                            <app-combo-padrao name=\"estado\" id=\"estado\" chave=\"Estado\"\n                                                descricao=\"Estado\" ativo=\"true\" tabela=\"Estados\" required=\"true\"\n                                                [(ngModel)]=\"data.estadoId\"\n                                                (ngModelChange)=\"requiredInscricaoEstadual()\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                            </app-combo-padrao>\n                                        </div>\n                                    </div>\n                                    <div class=\"col-6\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"municipioId\"\n                                                [class.required]=\"isRequiredMunicipio\">{{\"labels.municipio\" | translate\n                                                }}</label>\n                                            <app-combo-municipio id=\"municipioId\" name=\"municipioId\"\n                                                [required]=\"isRequiredMunicipio\" [(ngModel)]=\"data.municipio\"\n                                                [estadoId]=\"data.estadoId\" maxlength=\"30\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                            </app-combo-municipio>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-3\" *ngIf=\"data.tipoPessoa === 'J'\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"cnpj\" [class.required]=\"isRequiredCgcCpf\">{{\"labels.cnpj\" |\n                                                translate}}</label>\n                                            <input id=\"cnpj\" name=\"cnpj\" [(ngModel)]=\"data.cgcCpf\"\n                                                class=\"form-control form-control-sm\" type=\"text\" cnpjFormat\n                                                [required]=\"isRequiredCgcCpf\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                (blur)=\"validaCpfCnpj()\" />\n                                        </div>\n                                    </div>\n                                    <div class=\"col-3\" *ngIf=\"data.tipoPessoa === 'F'\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"cpf\" [class.required]=\"isRequiredCgcCpf\">{{\"labels.cpf\" |\n                                                translate}}</label>\n                                            <input id=\"cpf\" name=\"cpf\" [(ngModel)]=\"data.cgcCpf\" cpfFormat\n                                                class=\"form-control form-control-sm\" type=\"text\"\n                                                [required]=\"isRequiredCgcCpf\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                (blur)=\"validaCpfCnpj()\" />\n                                        </div>\n                                    </div>\n                                    <div class=\"col-3\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"caixaPostal\">{{\"labels.caixaPostal\" | translate}}</label>\n                                            <input id=\"caixaPostal\" name=\"caixaPostal\" [(ngModel)]=\"data.caixaPostal\"\n                                                maxlength=\"10\" class=\"form-control form-control-sm\" type=\"text\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                        </div>\n                                    </div>\n                                    <div class=\"col-3\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"contribuinte\">&nbsp;</label>\n                                            <div class=\"custom-control custom-checkbox\">\n                                                <input id=\"contribuinte\" name=\"contribuinte\"\n                                                    [(ngModel)]=\"contribuinteChecked\"\n                                                    class=\"custom-control-input checkbox-success\" type=\"checkbox\"\n                                                    [disabled]=\"funcoesService.isDetail(actionForm) || this.isDisabledContribuinte\" />\n\n                                                <label class=\"custom-control-label\" for=\"contribuinte\">{{\n                                                    \"labels.contribuinteICMS\" | translate\n                                                    }}</label>\n                                            </div>\n                                        </div>\n                                    </div>\n                                    <ng-container *ngIf=\"data.tipoPessoa === 'J'\">\n                                        <div class=\"col-3\">\n                                            <div class=\"form-group form-group-sm\">\n                                                <label for=\"inscricao\" [class.required]=\"isRequiredInscricao\">\n                                                    {{ \"labels.inscricaoEstadual\" | translate }}\n                                                </label>\n                                                <input id=\"inscricao\" name=\"inscricao\" [(ngModel)]=\"data.inscricao\"\n                                                    [required]=\"isRequiredInscricao\"\n                                                    class=\"form-control form-control-sm\" type=\"text\"\n                                                    [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                            </div>\n                                        </div>\n                                    </ng-container>\n                                    <ng-container *ngIf=\"data.tipoPessoa === 'F'\">\n                                        <div class=\"col-3\">\n                                            <div class=\"form-group form-group-sm\">\n                                                <label for=\"inscricao\"\n                                                    [class.required]=\"isRequiredInscricao\">{{\"labels.rg\" | translate\n                                                    }}</label>\n                                                <input id=\"rg\" name=\"rg\" [(ngModel)]=\"data.inscricao\" maxlength=\"20\"\n                                                    class=\"form-control form-control-sm\" type=\"text\"\n                                                    [required]=\"isRequiredInscricao\"\n                                                    [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                            </div>\n                                        </div>\n                                    </ng-container>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-6\">\n                                        <div class=\"row\">\n                                            <div class=\"col-12\">\n                                                <div class=\"form-group form-group-sm\">\n                                                    <label for=\"imunic\">{{ \"labels.imunic\" | translate}}</label>\n                                                    <input id=\"imunic\" name=\"imunic\" [(ngModel)]=\"data.imunic\"\n                                                        maxlength=\"15\" class=\"form-control form-control-sm\" type=\"text\"\n                                                        [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                                </div>\n                                            </div>\n                                        </div>\n                                        <div class=\"row\">\n                                            <div class=\" col-2\">\n                                                <div class=\"form-group form-group-sm\">\n                                                    <label for=\"ddd\" [class.required]=\"isRequiredTelefone\">{{\n                                                        \"labels.ddd\" | translate }}</label>\n                                                    <input id=\"ddd\" name=\"ddd\" [(ngModel)]=\"data.ddd\" maxlength=\"6\"\n                                                        class=\"form-control form-control-sm\" type=\"text\" required=\"true\"\n                                                        [required]=\"isRequiredTelefone\" [mask]=\"'00'\"\n                                                        [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                                </div>\n                                            </div>\n                                            <div class=\" col-5\">\n                                                <div class=\"form-group form-group-sm\">\n                                                    <label for=\"telefone1\" [class.required]=\"isRequiredTelefone\">{{\n                                                        \"labels.telefone1\" | translate}}</label>\n                                                    <input id=\"telefone1\" name=\"telefone1\" [(ngModel)]=\"data.telefone1\"\n                                                        maxlength=\"9\" class=\"form-control form-control-sm\" type=\"text\"\n                                                        [required]=\"isRequiredTelefone\" [mask]=\"'000000009'\"\n                                                        [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                                </div>\n                                            </div>\n                                            <div class=\" col-5\">\n                                                <div class=\"form-group form-group-sm\">\n                                                    <label for=\"complTel1\">{{\"labels.complTel\" | translate}}</label>\n                                                    <input id=\"complTel1\" name=\"ComplTel1\" [(ngModel)]=\"data.complTel1\"\n                                                        maxlength=\"20\" class=\"form-control form-control-sm\" type=\"text\"\n                                                        [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                                </div>\n                                            </div>\n                                        </div>\n                                    </div>\n                                    <div class=\"col-6\">\n                                        <div class=\"row\">\n                                            <div class=\"col-12\">\n                                                <p>Informar ISENTO quando o destinatario for contribuinte de\n                                                    ICMS\n                                                    ,mas não\n                                                    estiver obrigado\n                                                    à inscrição no cadastro de contribuinte do ICMS.Deixar o\n                                                    campo\n                                                    inscrição estadual em branco se o destinatario nao for\n                                                    contribuinte do\n                                                    ICMS.</p>\n                                            </div>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-6\">\n                                        <div class=\"row\">\n                                            <div class=\"col-2\"></div>\n                                            <div class=\" col-5\">\n                                                <div class=\"form-group form-group-sm\">\n                                                    <label for=\"telefone2\">{{ \"labels.telefone2\" | translate}}</label>\n                                                    <input id=\"telefone2\" name=\"telefone2\" [(ngModel)]=\"data.telefone2\"\n                                                        maxlength=\"9\" class=\"form-control form-control-sm\" type=\"text\"\n                                                        [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                        [mask]=\"'000000009'\" />\n                                                </div>\n                                            </div>\n                                            <div class=\" col-5\">\n                                                <div class=\"form-group form-group-sm\">\n                                                    <label for=\"complTel2\">{{ \"labels.complTel\" | translate }}</label>\n                                                    <input id=\"complTel2\" name=\"complTel2\" [(ngModel)]=\"data.complTel2\"\n                                                        maxlength=\"20\" class=\"form-control form-control-sm\" type=\"text\"\n                                                        [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                                </div>\n                                            </div>\n                                        </div>\n                                        <div class=\"row\">\n                                            <div class=\"col-2\"></div>\n                                            <div class=\" col-5\">\n                                                <div class=\"form-group form-group-sm\">\n                                                    <label for=\"fax\" class=\"\">{{ \"labels.fax\" | translate}}</label>\n                                                    <input id=\"fax\" name=\"fax\" [(ngModel)]=\"data.fax\" maxlength=\"9\"\n                                                        class=\"form-control form-control-sm\" type=\"text\"\n                                                        [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                        [mask]=\"'000000009'\" />\n                                                </div>\n                                            </div>\n                                            <div class=\" col-5\">\n                                                <div class=\"form-group form-group-sm\">\n                                                    <label for=\"complFax\">{{\"labels.complTel\" | translate}}</label>\n                                                    <input id=\"complFax\" name=\"complFax\" [(ngModel)]=\"data.complFax\"\n                                                        maxlength=\"20\" class=\"form-control form-control-sm\" type=\"text\"\n                                                        [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                                </div>\n                                            </div>\n                                        </div>\n                                    </div>\n                                    <div class=\"col-6\">\n                                        <div class=\"row\">\n                                            <div class=\"col-12\">\n                                                <div class=\"form-group form-group-sm\">\n                                                    <label for=\"observDest\">{{\"labels.observ\" | translate}}</label>\n                                                    <textarea id=\"observDest\" name=\"observDest\"\n                                                        [(ngModel)]=\"data.observDest\" maxlength=\"1000\"\n                                                        class=\"form-control form-control-sm\" type=\"text\" rows=\"4\"\n                                                        [disabled]=\"funcoesService.isDetail(actionForm)\"></textarea>\n                                                </div>\n                                            </div>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\" col-6\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"email\" [class.required]=\"isRequiredEmail\">{{\"labels.email\" |\n                                                translate}}</label>\n                                            <input id=\"email\" name=\"email\" [(ngModel)]=\"data.email\" maxlength=\"60\"\n                                                [required]=\"isRequiredEmail\" class=\"form-control form-control-sm\"\n                                                type=\"text\" [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                        </div>\n                                    </div>\n                                    <div class=\" col-6\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"homePage\" class=\"\">{{\"labels.homePage\" | translate}}</label>\n                                            <input id=\"homePage\" name=\"homePage\" [(ngModel)]=\"data.homePage\"\n                                                maxlength=\"40\" class=\"form-control form-control-sm\" type=\"text\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                        </div>\n                                    </div>\n                                </div>\n                                <span *ngIf=\"data.sisCampoAdds\">\n                                    <div *ngFor=\"let d of data.sisCampoAdds\" [class.col-lg-6]=\"!d.colunas\">\n                                        <app-campos-adicionais name=\"{{ d.campo }}\" [sisCampoAdd]=\"d\"\n                                            [(ngModel)]=\"d.valorCampo\" [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                            [required]=\"d.obrigatorio === 'S'\">\n                                        </app-campos-adicionais>\n                                    </div>\n                                </span>\n                            </div>\n                            <!-- ABA FATURAMENTO-->\n                            <div class=\"tab-pane\" id=\"ft\">\n                                <div class=\"row\">\n                                    <div class=\"col-6\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"codConta\"\n                                                [class.required]=\"isRequiredCConta\">{{\"labels.contaCorrente\" | translate\n                                                }}</label>\n                                            <app-combo-padrao name=\"codConta\" id=\"codConta\" chave=\"CodConta\"\n                                                descricao=\"DescrConta\" ativo=\"true\" [required]=\"isRequiredCConta\"\n                                                tabela=\"ContaCorrente\" [(ngModel)]=\"data.contaCorrenteId\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                            </app-combo-padrao>\n                                        </div>\n                                    </div>\n                                    <div class=\"col-3\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"vlLimCred\" class=\"\">{{ \"labels.vlLimCred\" | translate }}</label>\n                                            <input id=\"vlLimCred\" name=\"vlLimCred\" [(ngModel)]=\"data.vlLimCred\"\n                                                class=\"form-control form-control-sm\" maxlength=\"14\" type=\"text\"\n                                                currencyMask\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-6\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"tabDePreco\"\n                                                [class.required]=\"isRequiredTabPreco\">{{\"labels.tabelaDePreco\" |\n                                                translate }}</label>\n                                            <app-combo-padrao name=\"tabDePreco\" id=\"tabDePreco\" chave=\"TabPreco\"\n                                                descricao=\"DescrTabPreco\" ativo=\"true\" tabela=\"TabeladePreco\"\n                                                [required]=\"isRequiredTabPreco\" [(ngModel)]=\"data.tabelaDePrecoId\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                            </app-combo-padrao>\n                                        </div>\n                                    </div>\n                                    <div class=\"col-3\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"descCom\" class=\"\">{{ \"labels.descCom\" | translate }}</label>\n                                            <input id=\"descCom\" name=\"descCom\" [(ngModel)]=\"data.descCom\"\n                                                class=\"form-control form-control-sm\" maxlength=\"6\" type=\"text\"\n                                                currencyMask\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                        </div>\n                                    </div>\n                                    <div class=\"col-3\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"descTab\" class=\"\">{{ \"labels.descTab\" | translate }}</label>\n                                            <input id=\"descTab\" name=\"descTab\" [(ngModel)]=\"data.descTab\"\n                                                class=\"form-control form-control-sm\" maxlength=\"6\" type=\"text\"\n                                                currencyMask\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-6\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"grupoClienteId\" [class.required]=\"isRequiredCodGrupo\">\n                                                {{\"labels.grupo\" | translate }}</label>\n                                            <app-combo-padrao name=\"grupoClienteId\" id=\"grupoClienteId\" chave=\"CodGrupo\"\n                                                descricao=\"DescrGrupo\" ativo=\"true\" tabela=\"GrupoCliente\"\n                                                [required]=\"isRequiredCodGrupo\" [(ngModel)]=\"data.grupoClienteId\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                            </app-combo-padrao>\n                                        </div>\n                                    </div>\n                                    <div class=\"col-3\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"descFin\" class=\"\">{{ \"labels.descFin\" | translate }}</label>\n                                            <input id=\"descFin\" name=\"descFin\" [(ngModel)]=\"data.descFin\"\n                                                class=\"form-control form-control-sm\" maxlength=\"6\" type=\"text\"\n                                                currencyMask\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                        </div>\n                                    </div>\n                                    <div class=\"col-3\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"descExtra\" class=\"\">{{ \"labels.descExtra\" | translate }}</label>\n                                            <input id=\"descExtra\" name=\"descExtra\" [(ngModel)]=\"data.descExtra\"\n                                                class=\"form-control form-control-sm\" maxlength=\"6\" type=\"text\"\n                                                currencyMask\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-6\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"ramoDeAtividadeDoDoCliente\"\n                                                [class.required]=\"isRequiredRamoCli\">{{\"labels.ramoDeAtividade\" |\n                                                translate }}</label>\n                                            <app-combo-padrao name=\"ramoDeAtividadeDoDoCliente\"\n                                                id=\"ramoDeAtividadeDoDoCliente\" chave=\"RamoCli\" descricao=\"DescrRamo\"\n                                                ativo=\"true\" tabela=\"RamoDoCliente\" [required]=\"isRequiredRamoCli\"\n                                                [(ngModel)]=\"data.ramoDoClienteId\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                            </app-combo-padrao>\n                                        </div>\n                                    </div>\n                                    <div class=\"col-6\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"descFid\" class=\"\">{{ \"labels.descFid\" | translate }}</label>\n                                            <input id=\"descFid\" name=\"descFid\" [(ngModel)]=\"data.descFid\"\n                                                class=\"form-control form-control-sm\" maxlength=\"6\" type=\"text\"\n                                                currencyMask\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-6\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"situacaoClienteId\">{{\"labels.situacao\" | translate }}</label>\n                                            <app-combo-padrao name=\"situacaoClienteId\" id=\"situacaoClienteId\"\n                                                chave=\"SituacaoCli\" descricao=\"DescrSituacao\" ativo=\"true\"\n                                                tabela=\"SituacaoCliente\" [(ngModel)]=\"data.situacaoClienteId\"\n                                                [disabled]=\"!service.isSituacao\">\n                                            </app-combo-padrao>\n                                        </div>\n                                    </div>\n                                    <div class=\"col-6\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <app-pesquisa-conta-contabil id=\"cContabilCli\" name=\"cContabilCli\"\n                                                [(ngModel)]=\"data.contaContabilIdCliente\" showCgcCpf=\"false\"\n                                                showInscricao=\"false\" [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                            </app-pesquisa-conta-contabil>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-3\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"origemId\"\n                                                [class.required]=\"isRequiredOrigemCli\">{{\"labels.origem\" | translate\n                                                }}</label>\n                                            <app-combo-padrao name=\"origemId\" id=\"origemId\" chave=\"CodOrigem\"\n                                                descricao=\"DescrOrigem\" ativo=\"true\" tabela=\"Origem\"\n                                                [required]=\"isRequiredOrigemCli\" [(ngModel)]=\"data.codOrigem\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                            </app-combo-padrao>\n                                        </div>\n                                    </div>\n                                    <div class=\"col-3\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"setorId\">{{\"labels.setor\" | translate }}</label>\n                                            <app-combo-padrao name=\"setorId\" id=\"setorId\" chave=\"Setor\"\n                                                descricao=\"DescrSetor\" ativo=\"true\" tabela=\"Setor\"\n                                                [(ngModel)]=\"data.setorId\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                            </app-combo-padrao>\n                                        </div>\n                                    </div>\n                                    <div class=\"col-6\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"operacao\" class=\"\">{{ \"labels.operacaoFat\" | translate\n                                                }}</label>\n                                            <app-combo-padrao name=\"operacao\" id=\"operacao\" chave=\"Operacao\"\n                                                descricao=\"DescrOperacao\" ativo=\"true\" tabela=\"Operacao\"\n                                                [(ngModel)]=\"data.operacaoIdFaturamento\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                            </app-combo-padrao>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-6\">\n                                        <div class=\"row\">\n                                            <div class=\"col-6\">\n                                                <div class=\"form-group form-group-sm\">\n                                                    <label for=\"suframa\" class=\"\">{{ \"labels.inscrSuframa\" | translate\n                                                        }}</label>\n                                                    <input id=\"suframa\" name=\"suframa\" [(ngModel)]=\"data.suframa\"\n                                                        class=\"form-control form-control-sm\" maxlength=\"20\" type=\"text\"\n                                                        [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                                </div>\n                                            </div>\n                                            <div class=\"col-6\">\n                                                <div class=\"form-group form-group-sm\">\n                                                    <label for=\"condPagamento\"\n                                                        [class.required]=\"isRequiredCondPagCli\">{{\"labels.condPagamento\"\n                                                        | translate }}</label>\n                                                    <app-combo-padrao name=\"condPagamento\" id=\"condPagamento\"\n                                                        chave=\"CondPag\" descricao=\"DescrCond\" ativo=\"true\"\n                                                        tabela=\"CondPagamento\" [required]=\"isRequiredCondPagCli\"\n                                                        [(ngModel)]=\"data.condPagamentoIdCliente\"\n                                                        [disabled]=\"!service.isCondPagto\">\n                                                    </app-combo-padrao>\n                                                </div>\n                                            </div>\n                                        </div>\n                                        <div class=\"row\">\n                                            <div class=\"col-12\">\n                                                <div class=\"form-group form-group-sm\">\n                                                    <app-pesquisa-destinatario id=\"destinatarioCobrancaId\"\n                                                        name=\"destinatarioCobrancaId\" label=\"cobranca\"\n                                                        modalTitle=\"destinatarioIdCobranca\"\n                                                        [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                        [(ngModel)]=\"data.destinatarioIdCobranca\" tipoDestinatario=\"\"\n                                                        showCgcCpf=\"false\" showInscricao=\"false\">\n                                                    </app-pesquisa-destinatario>\n                                                </div>\n                                            </div>\n                                        </div>\n                                        <div class=\"row\">\n                                            <div class=\"col-12\">\n                                                <div class=\"form-group form-group-sm\">\n                                                    <app-pesquisa-destinatario id=\"destinatarioTransportadoraId\"\n                                                        name=\"destinatarioTransportadoraId\" label=\"transportadora\"\n                                                        modalTitle=\"pesquisaDeTransportadora\"\n                                                        [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                        [(ngModel)]=\"data.destinatarioIdTransportadora\"\n                                                        tipoDestinatario=\"T\" showCgcCpf=\"false\" showInscricao=\"false\">\n                                                    </app-pesquisa-destinatario>\n                                                </div>\n                                            </div>\n                                        </div>\n                                    </div>\n                                    <div class=\"col-6\">\n                                        <app-card-container tituloCard=\"vencimentosValidos\">\n                                            <div class=\"row\">\n                                                <div class=\"col-12\">\n                                                    <div class=\"row\">\n                                                        <div class=\"col-4\"\n                                                            *ngFor=\"let item of constantes.diasSemana; let i = index;\">\n                                                            <div class=\"custom-control custom-checkbox\">\n                                                                <input id=\"semanaVencto_{{item.id}}\"\n                                                                    name=\"semanaVencto_{{item.id}}\"\n                                                                    [(ngModel)]=\"item.checked\"\n                                                                    class=\"custom-control-input checkbox-success\"\n                                                                    type=\"checkbox\"\n                                                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                                                <label class=\"custom-control-label\"\n                                                                    for=\"semanaVencto_{{item.id}}\">{{ item.name |\n                                                                    translate }}</label>\n                                                            </div>\n                                                        </div>\n                                                    </div>\n                                                </div>\n                                            </div>\n                                            <div class=\"row\">\n                                                <div class=\"col-12\">\n                                                    <div class=\"form-group form-group-sm\">\n                                                        <label for=\"diasVencto\" class=\"\">{{ \"labels.dia\" | translate\n                                                            }}</label>\n                                                        <input id=\"diasVencto\" name=\"diasVencto\"\n                                                            [(ngModel)]=\"data.diasVencto\"\n                                                            class=\"form-control form-control-sm\" maxlength=\"70\"\n                                                            type=\"text\"\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                                    </div>\n                                                </div>\n                                            </div>\n                                        </app-card-container>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-6\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"vendedor\">{{\"labels.destinatarioIdVendedor1\" | translate\n                                                }}</label>\n                                            <select id=\"vendedor\" class=\"form-control form-control-sm\" name=\"vendedor\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                [(ngModel)]=\"data.destinatarioIdVendedor1\">\n                                                <option value=\"\">{{\"labels.selecione\" | translate}}</option>\n                                                <option [value]=\"c.destinatarioId\" *ngFor=\"let c of vendedores\">\n                                                    {{ c.fantasia }}\n                                                </option>\n                                            </select>\n                                        </div>\n                                    </div>\n                                    <div class=\"col-3\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"comissaoVendedor\" class=\"\">{{ \"labels.comissao\" | translate\n                                                }}</label>\n                                            <input id=\"comissaoVendedor\" name=\"comissaoVendedor\"\n                                                [(ngModel)]=\"data.comissao\" class=\"form-control form-control-sm\"\n                                                maxlength=\"6\" type=\"text\" currencyMask\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-6\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"vendedor2\">{{\"labels.destinatarioIdVendedor2\" | translate\n                                                }}</label>\n                                            <select id=\"vendedor2\" class=\"form-control form-control-sm\" name=\"vendedor2\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                [(ngModel)]=\"data.destinatarioIdVendedor2\">\n                                                <option value=\"\">{{\"labels.selecione\" | translate}}</option>\n                                                <option [value]=\"c.destinatarioId\" *ngFor=\"let c of vendedores\">\n                                                    {{ c.fantasia }}\n                                                </option>\n                                            </select>\n                                        </div>\n                                    </div>\n                                    <div class=\"col-3\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"ptComissao2\" class=\"\">{{ \"labels.comissao\" | translate\n                                                }}</label>\n                                            <input id=\"ptComissao2\" name=\"ptComissao2\" [(ngModel)]=\"data.ptComissao2\"\n                                                class=\"form-control form-control-sm\" maxlength=\"6\" type=\"text\"\n                                                currencyMask\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\" />\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=\"tanqueId\">{{\"labels.deposito\" | translate }}\n                                                {{data.destinatarioIdDeposito}}</label>\n                                            <select id=\"tanqueId\" class=\"form-control form-control-sm\" name=\"tanqueId\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                [(ngModel)]=\"data.destinatarioIdDeposito\">\n                                                <option value=\"\">{{\"labels.selecione\" | translate}}</option>\n                                                <option [value]=\"c.destinatarioId\" *ngFor=\"let c of depositos\">\n                                                    {{ c.fantasia }}\n                                                </option>\n                                            </select>\n                                        </div>\n                                    </div>\n                                    <div class=\"col-6\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"obsBoleto\" class=\"\">{{ \"labels.obsBoleto\" | translate }}</label>\n                                            <input id=\"obsBoleto\" name=\"obsBoleto\" [(ngModel)]=\"data.obsBoleto\"\n                                                class=\"form-control form-control-sm\" maxlength=\"70\" type=\"text\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-4\">\n                                        <div class=\"custom-control custom-checkbox\">\n                                            <input id=\"flagBoletoSt\" name=\"flagBoletoSt\"\n                                                [ngModel]=\"data.flagBoletoSt === 'S'\"\n                                                (ngModelChange)=\"data.flagBoletoSt = $event ? 'S' : 'N'\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                class=\"custom-control-input checkbox-success\" type=\"checkbox\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                            <label class=\"custom-control-label\"\n                                                for=\"flagBoletoSt\">{{\"labels.flagBoletoSt\" | translate}}</label>\n                                        </div>\n                                    </div>\n                                    <div class=\"col-4\">\n                                        <div class=\"custom-control custom-checkbox\">\n                                            <input id=\"flagAgrupa\" name=\"flagAgrupa\" [ngModel]=\"data.flagAgrupa === 'S'\"\n                                                (ngModelChange)=\"data.flagAgrupa = $event ? 'S' : 'N'\"\n                                                class=\"custom-control-input checkbox-success\" type=\"checkbox\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                            <label class=\"custom-control-label\" for=\"flagAgrupa\">{{\"labels.flagAgrupa\" |\n                                                translate}}</label>\n                                        </div>\n                                    </div>\n                                    <div class=\"col-4\">\n                                        <div class=\"custom-control custom-checkbox\">\n                                            <input id=\"freteFob\" name=\"freteFob\" [ngModel]=\"data.tipoFrete === '2'\"\n                                                (ngModelChange)=\"data.tipoFrete = $event ? '2' : '1'\"\n                                                class=\"custom-control-input checkbox-success\" type=\"checkbox\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                            <label class=\"custom-control-label\" for=\"freteFob\">{{\"labels.freteFob\" |\n                                                translate}}</label>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-4\">\n                                        <div class=\"custom-control custom-checkbox\">\n                                            <input id=\"FlagUsaFichaTecnica\" name=\"FlagUsaFichaTecnica\"\n                                                [ngModel]=\"data.flagUsaFichaTecnica === 'S'\"\n                                                (ngModelChange)=\"data.flagUsaFichaTecnica = $event ? 'S' : 'N'\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                class=\"custom-control-input checkbox-success\" type=\"checkbox\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                            <label class=\"custom-control-label\"\n                                                for=\"FlagUsaFichaTecnica\">{{\"labels.FlagUsaFichaTecnica\" |\n                                                translate}}</label>\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n                            <!-- ABA COMPLEMENTARES -->\n                            <div class=\"tab-pane\" id=\"cp\">\n                                <div class=\"col-6\" style=\"left: -15px\">\n                                    <app-card-container tituloCard=\"{{ 'titles.dadosComplementares' | translate }}\">\n                                        <div class=\"row\">\n                                            <div class=\"col-12\">\n                                                <div class=\"form-group form-group-sm\">\n                                                    <label for=\"banco\">{{\"labels.descrBanco\" | translate}}</label>\n                                                    <app-combo-padrao name=\"banco\" id=\"banco\" chave=\"CodBanco\"\n                                                        descricao=\"DescrBanco\" ativo=\"true\" tabela=\"Bancos\"\n                                                        [(ngModel)]=\"data.bancoId\"\n                                                        [disabled]=\"!service.isDadosBancarios\">\n                                                    </app-combo-padrao>\n                                                </div>\n                                            </div>\n                                        </div>\n                                        <div class=\"row\">\n                                            <div class=\"col-12\">\n                                                <div class=\"form-group form-group-sm\">\n                                                    <label for=\"favorecido\">{{ \"labels.favorecido\" | translate}}</label>\n                                                    <input id=\"favorecido\" name=\"favorecido\"\n                                                        [(ngModel)]=\"data.favorecido\"\n                                                        class=\"form-control form-control-sm\" type=\"text\"\n                                                        [disabled]=\"!service.isDadosBancarios\" maxlength=\"40\" />\n                                                </div>\n                                            </div>\n                                        </div>\n                                        <div class=\"row\">\n                                            <div class=\"col-4\">\n                                                <div class=\"form-group form-group-sm\">\n                                                    <label for=\"agencia\">{{\"labels.agencia\" | translate}}</label>\n                                                    <input id=\"agencia\" name=\"agencia\" [(ngModel)]=\"data.agencia\"\n                                                        class=\"form-control form-control-sm\" type=\"text\"\n                                                        [disabled]=\"!service.isDadosBancarios\" maxlength=\"6\" />\n                                                </div>\n                                            </div>\n                                            <div class=\"col-8\">\n                                                <div class=\"form-group form-group-sm\">\n                                                    <label for=\"conta\" class=\"conta\">{{\"labels.conta\" |\n                                                        translate}}</label>\n                                                    <input id=\"conta\" name=\"conta\" [(ngModel)]=\"data.conta\"\n                                                        class=\"form-control form-control-sm\" type=\"text\"\n                                                        [disabled]=\"!service.isDadosBancarios\" maxlength=\"12\" />\n                                                </div>\n                                            </div>\n                                        </div>\n                                        <div class=\"row\">\n                                            <div class=\"col-12\">\n                                                <div class=\"form-group form-group-sm\">\n                                                    <label for=\"tipoConta\">{{\"labels.tipo\" | translate}}</label>\n                                                    <select id=\"tipoConta\" [(ngModel)]=\"data.tipoConta\"\n                                                        class=\"form-control form-control-sm\" name=\"tipoConta\"\n                                                        data-title=\"{{ 'labels.tipoConta' | translate }}\"\n                                                        [disabled]=\"!service.isDadosBancarios\">\n                                                        <option value=\"\">{{\"labels.selecione\" | translate}}\n                                                        </option>\n                                                        <option *ngFor=\"let t of tipoConta.get\" value=\"{{ t.id }}\">\n                                                            {{ t.descricao }}\n                                                        </option>\n                                                    </select>\n                                                </div>\n                                            </div>\n                                        </div>\n                                        <div class=\"row\">\n                                            <div class=\"col-12\">\n                                                <div class=\"form-group form-group-sm\">\n                                                    <label for=\"codEan\">{{\"labels.codEan\" | translate}}</label>\n                                                    <input id=\"codEan\" name=\"codEan\" [(ngModel)]=\"data.codEan\"\n                                                        class=\"form-control form-control-sm\" type=\"text\"\n                                                        [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                        maxlength=\"14\" />\n                                                </div>\n                                            </div>\n                                        </div>\n                                        <div class=\"row\">\n                                            <div class=\"col-12 mb-1\">\n                                                <div class=\"custom-control custom-checkbox\">\n                                                    <input id=\"flagProtesto\" name=\"flagProtesto\"\n                                                        [ngModel]=\"data.flagProtesto === 'S'\"\n                                                        (ngModelChange)=\"data.flagProtesto = $event ? 'S' : 'N'\"\n                                                        class=\"custom-control-input checkbox-success\" type=\"checkbox\"\n                                                        [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                                    <label class=\"custom-control-label\"\n                                                        for=\"flagProtesto\">{{\"labels.flagProtesto\"|translate}}</label>\n                                                </div>\n                                            </div>\n                                        </div>\n                                        <div class=\"row\">\n                                            <div class=\"col-12\">\n                                                <div class=\"form-group form-group-sm\">\n                                                    <label for=\"cnae\">{{\"labels.cnaeId\" | translate}}</label>\n                                                    <app-combo-padrao name=\"cnae\" id=\"cnae\" chave=\"Cnae\"\n                                                        descricao=\"DescrCnae\" ativo=\"true\" tabela=\"Cnae\"\n                                                        [(ngModel)]=\"data.cnaeId\"\n                                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                                    </app-combo-padrao>\n                                                </div>\n                                            </div>\n                                        </div>\n                                        <div class=\"row\">\n                                            <div class=\"col-8\">\n                                                <div class=\"form-group form-group-sm\">\n                                                    <label for=\"numCetesb\" class=\"numCetesb\">{{ \"labels.numCetesb\" |\n                                                        translate }}</label>\n                                                    <input id=\"numCetesb\" name=\"numCetesb\" [(ngModel)]=\"data.numCetesb\"\n                                                        class=\"form-control form-control-sm\" type=\"text\"\n                                                        [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                        maxlength=\"15\" />\n                                                </div>\n                                            </div>\n                                        </div>\n                                        <div class=\"row\">\n                                            <div class=\"col-12\">\n                                                <div class=\"form-group form-group-sm\">\n                                                    <label for=\"regimeOperacao\">{{ \"labels.regimeOperacao\" | translate\n                                                        }}</label>\n                                                    <app-combo-padrao name=\"regimeOperacao\" id=\"regimeOperacao\"\n                                                        chave=\"CodRegime\" descricao=\"DescrRegime\" ativo=\"true\"\n                                                        tabela=\"RegimeOperacao\" [(ngModel)]=\"data.regimeOperacaoId\"\n                                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                                    </app-combo-padrao>\n                                                </div>\n                                            </div>\n                                        </div>\n                                    </app-card-container>\n                                </div>\n                            </div>\n                            <!-- ABA FORNECEDOR -->\n                            <div class=\"tab-pane\" id=\"fo\">\n                                <div class=\"row\">\n                                    <div class=\"col-12\">\n                                        <app-card-container tituloCard=\"dadosFornecedor\">\n                                            <div class=\"row\">\n                                                <div class=\"col-6\">\n                                                    <div class=\"form-group form-group-sm\">\n                                                        <label\n                                                            for=\"ramoDeAtividadeDoFornecedor\">{{\"labels.ramoDeAtividade\"\n                                                            | translate }}</label>\n                                                        <app-combo-padrao name=\"ramoDeAtividadeDoFornecedor\"\n                                                            id=\"ramoDeAtividadeDoFornecedor\" chave=\"RamoFor\"\n                                                            descricao=\"DescrRamo\" ativo=\"true\" tabela=\"RamoDoFornecedor\"\n                                                            [(ngModel)]=\"data.ramoDoFornecedorId\"\n                                                            [disabled]=\"!service.isIncAltFor\">\n                                                        </app-combo-padrao>\n                                                    </div>\n                                                </div>\n                                                <div class=\"col-6\">\n                                                    <div class=\"form-group form-group-sm\">\n                                                        <label for=\"situacaoFornecedor\">{{\"labels.situacao\" |\n                                                            translate}}</label>\n                                                        <app-combo-padrao name=\"situacaoFornecedor\"\n                                                            id=\"situacaoFornecedor\" chave=\"SituacaoFor\"\n                                                            descricao=\"DescrSituacao\" ativo=\"true\"\n                                                            tabela=\"SituacaoFornecedor\"\n                                                            [(ngModel)]=\"data.situacaoFornecedorId\"\n                                                            [disabled]=\"!service.isIncAltFor\">\n                                                        </app-combo-padrao>\n                                                    </div>\n                                                </div>\n                                            </div>\n                                            <div class=\"row\">\n                                                <div class=\"col-6\">\n                                                    <div class=\"form-group form-group-sm\">\n                                                        <label for=\"condPagamentoIdFornecedor\">{{\"labels.condPagFor\" |\n                                                            translate}}</label>\n                                                        <app-combo-padrao name=\"condPagamentoIdFornecedor\"\n                                                            id=\"condPagamentoIdFornecedor\" chave=\"CondPag\"\n                                                            descricao=\"DescrCond\" ativo=\"true\" tabela=\"CondPagamento\"\n                                                            [(ngModel)]=\"data.condPagamentoIdFornecedor\"\n                                                            [disabled]=\"!service.isIncAltFor\">\n                                                        </app-combo-padrao>\n                                                    </div>\n                                                </div>\n                                                <div class=\"col-6\">\n                                                    <div class=\"form-group form-group-sm\">\n                                                        <label for=\"operacaoValE\">{{\"labels.operacaoValE\" |\n                                                            translate}}</label>\n                                                        <app-combo-padrao name=\"operacaoValE\" id=\"operacaoValE\"\n                                                            chave=\"Operacao\" descricao=\"DescrOperacao\" ativo=\"true\"\n                                                            tabela=\"Operacao\" [(ngModel)]=\"data.operacaoValE\"\n                                                            [disabled]=\"!service.isIncAltFor\">\n                                                        </app-combo-padrao>\n                                                    </div>\n                                                </div>\n                                            </div>\n                                            <div class=\"row\">\n                                                <div class=\"col-12\">\n                                                    <div class=\"form-group form-group-sm\">\n                                                        <label for=\"razaoSocialReceita\"\n                                                            class=\"\">{{\"labels.razaoSocialReceita\" | translate\n                                                            }}</label>\n                                                        <input id=\"razaoSocialReceita\" name=\"razaoSocialReceita\"\n                                                            [(ngModel)]=\"data.razaoSocialReceita\"\n                                                            class=\"form-control form-control-sm\" type=\"text\"\n                                                            [disabled]=\"!service.isIncAltFor\" maxlength=\"150\" />\n                                                    </div>\n                                                </div>\n                                            </div>\n                                            <div class=\"row\">\n                                                <div class=\"col-6\">\n                                                    <div class=\"form-group form-group-sm\">\n                                                        <app-pesquisa-conta-contabil id=\"ContaContabilIdFornecedor\"\n                                                            name=\"ContaContabilIdFornecedor\"\n                                                            [(ngModel)]=\"data.contaContabilIdFornecedor\"\n                                                            showCgcCpf=\"false\" showInscricao=\"false\"\n                                                            [disabled]=\"!service.isIncAltFor\">\n                                                        </app-pesquisa-conta-contabil>\n                                                    </div>\n                                                </div>\n                                                <div class=\"col-6\">\n                                                    <div class=\"form-group form-group-sm\">\n                                                        <label for=\"operacaoFornecedor\">{{\"labels.operacaoFat\" |\n                                                            translate}}</label>\n                                                        <app-combo-padrao name=\"operacaoFornecedor\"\n                                                            id=\"operacaoFornecedor\" chave=\"Operacao\"\n                                                            descricao=\"DescrOperacao\" ativo=\"true\" tabela=\"Operacao\"\n                                                            [(ngModel)]=\"data.operacaoIdFornecedor\"\n                                                            [disabled]=\"!service.isIncAltFor\">\n                                                        </app-combo-padrao>\n                                                    </div>\n                                                </div>\n                                            </div>\n                                            <div class=\"row\">\n                                                <div class=\"col-6\">\n                                                    <div class=\"form-group form-group-sm\">\n                                                        <label for=\"encFinFor\" class=\"\">{{\"labels.custoFinanceiro\" |\n                                                            translate }}</label>\n                                                        <input id=\"encFinFor\" name=\"encFinFor\"\n                                                            [(ngModel)]=\"data.encFinFor\"\n                                                            class=\"form-control form-control-sm\" type=\"text\"\n                                                            maxlength=\"6\" [disabled]=\"!service.isIncAltFor\" currencyMask\n                                                            [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 3 }\" />\n                                                    </div>\n                                                </div>\n                                                <div class=\"col-6\">\n                                                    <div class=\"form-group form-group-sm\">\n                                                        <label for=\"localRetirada\" class=\"\">{{\"labels.localRetirada\" |\n                                                            translate}}</label>\n                                                        <input id=\"localRetirada\" name=\"localRetirada\"\n                                                            [(ngModel)]=\"data.localRetirada\"\n                                                            class=\"form-control form-control-sm\" type=\"text\"\n                                                            [disabled]=\"!service.isIncAltFor\" maxlength=\"60\" />\n                                                    </div>\n                                                </div>\n                                            </div>\n                                            <div class=\"row\">\n                                                <div class=\"col-6\">\n                                                    <app-card-container tituloCard=\"qualidade\">\n                                                        <div class=\"row\">\n                                                            <div class=\"col-lg-12\">\n                                                                <div class=\"form-group form-group-sm\">\n                                                                    <label for=\"qualidade\">{{ 'labels.homologacao' |\n                                                                        translate}}</label>\n                                                                    <select [(ngModel)]=\"data.flagHomologacao\"\n                                                                        class=\"form-control form-control-sm\"\n                                                                        id=\"qualidade\" name=\"qualidade\"\n                                                                        data-title=\"{{'labels.qualidade' | translate}}\"\n                                                                        [disabled]=\"!service.isHomologacao\">\n                                                                        <option value=\"S\">{{ 'labels.homologado' |\n                                                                            translate }}</option>\n                                                                        <option value=\"N\">{{ 'labels.naoHomologacao' |\n                                                                            translate }}</option>\n                                                                        <option value=\" \">{{ 'labels.na' | translate }}\n                                                                        </option>\n                                                                    </select>\n                                                                </div>\n                                                                <div class=\"row\" style=\"top: -10px;\">\n                                                                    <div class=\"col-6\" style=\"top: -10px;\">\n                                                                        <div class=\"form-group form-group-sm\"\n                                                                            style=\"top: -10px;\">\n                                                                            <label for=\"validade\"\n                                                                                class=\"\">{{\"labels.validade\" | translate\n                                                                                }}</label>\n                                                                            <app-data id=\"validade\" name=\"validade\"\n                                                                                [(ngModel)]=\"data.dtValHomologacao\"\n                                                                                [disabled]=\"!service.isHomologacao\">\n                                                                            </app-data>\n                                                                        </div>\n                                                                    </div>\n                                                                </div>\n                                                            </div>\n                                                        </div>\n                                                    </app-card-container>\n                                                </div>\n                                                <div class=\"col-6\">\n                                                    <div class=\"custom-control custom-checkbox\">\n                                                        <input id=\"obrContratoFor\" name=\"obrContratoFor\"\n                                                            [ngModel]=\"data.obrContratoFor === 'S'\"\n                                                            (ngModelChange)=\"data.obrContratoFor = $event ? 'S' : 'N'\"\n                                                            class=\"custom-control-input checkbox-success\"\n                                                            type=\"checkbox\"\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                                        <label class=\"custom-control-label\"\n                                                            for=\"obrContratoFor\">{{\"labels.obrContratoFor\" |\n                                                            translate}}</label>\n                                                    </div>\n                                                </div>\n                                            </div>\n\n                                        </app-card-container>\n                                    </div>\n                                </div>\n                            </div>\n                            <!-- ABA ADICIONAIS -->\n                            <div class=\"tab-pane\" id=\"ad\">\n                                <div class=\"row\" style=\"left: -10px\">\n                                    <div class=\"col-6\" style=\"left: -10px\">\n                                        <div class=\"col-12\" style=\"left: -10px\">\n                                            <!-- DADOS FISICA -->\n                                            <app-card-container tituloCard=\"dadosPessoaFisica\">\n                                                <div class=\"col-12\">\n                                                    <div class=\"row\">\n                                                        <div class=\"col-6\">\n                                                            <div class=\"form-group form-group-sm\">\n                                                                <label for=\"dtNasc\">{{\"labels.dtNasc\" |\n                                                                    translate}}</label>\n                                                                <app-data id=\"dtNasc\" name=\"dtNasc\"\n                                                                    [(ngModel)]=\"data.dtNasc\"\n                                                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                                                </app-data>\n                                                            </div>\n                                                        </div>\n                                                        <div class=\"col-6\">\n                                                            <div class=\"form-group form-group-sm\">\n                                                                <label for=\"sexo\">{{ \"labels.sexo\" | translate}}</label>\n                                                                <select id=\"sexo\" [(ngModel)]=\"data.sexo\"\n                                                                    class=\"form-control form-control-sm\" name=\"sexo\"\n                                                                    data-title=\"{{ 'labels.sexo' | translate }}\"\n                                                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                                                    <option value=\"\">{{ \"labels.selecione\" | translate\n                                                                        }}\n                                                                    </option>\n                                                                    <option *ngFor=\"let t of sexo.get\"\n                                                                        value=\"{{ t.id }}\">\n                                                                        {{ t.descricao }}\n                                                                    </option>\n                                                                </select>\n                                                            </div>\n                                                        </div>\n                                                    </div>\n                                                    <div class=\"row\">\n                                                        <div class=\"col-6\">\n                                                            <div class=\"form-group form-group-sm\">\n                                                                <label for=\"estadoCivil\">{{\"labels.estadoCivil\" |\n                                                                    translate}}</label>\n                                                                <select id=\"estadoCivil\" [(ngModel)]=\"data.estadoCivil\"\n                                                                    class=\"form-control form-control-sm\"\n                                                                    name=\"estadoCivil\"\n                                                                    data-title=\"{{ 'labels.estadoCivil' | translate }}\"\n                                                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                                                    <option value=\"\">{{ \"labels.selecione\" | translate\n                                                                        }}\n                                                                    </option>\n                                                                    <option *ngFor=\"let t of estadoCivil.get\"\n                                                                        value=\"{{ t.id }}\">\n                                                                        {{ t.descricao }}\n                                                                    </option>\n                                                                </select>\n                                                            </div>\n                                                        </div>\n                                                    </div>\n                                                </div>\n                                            </app-card-container>\n                                        </div>\n                                        <div class=\"col-12\" style=\"left: -10px\">\n                                            <!-- DADOS DEPOSITO -->\n                                            <app-card-container tituloCard=\"{{ 'titles.deposito' | translate }}\">\n                                                <div class=\"row\">\n                                                    <div class=\"col-12\">\n                                                        <div class=\"row\">\n                                                            <div class=\"col-12\">\n                                                                <div class=\"custom-control custom-checkbox\">\n                                                                    <input id=\"tipoDeposito\" name=\"tipoDeposito\"\n                                                                        [ngModel]=\"data.tipoDeposito === 'I'\"\n                                                                        (ngModelChange)=\"data.tipoDeposito = $event ? 'I' : 'E'\"\n                                                                        class=\"custom-control-input checkbox-success\"\n                                                                        type=\"checkbox\"\n                                                                        [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                                                    <label class=\"custom-control-label\"\n                                                                        for=\"tipoDeposito\">{{\"labels.depositoInterno\" |\n                                                                        translate}}</label>\n                                                                </div>\n                                                            </div>\n                                                        </div>\n                                                        <div class=\"row\">\n                                                            <div class=\"col-12\">\n                                                                <div class=\"custom-control custom-checkbox\">\n                                                                    <input id=\"dispVenda\" name=\"dispVenda\"\n                                                                        [ngModel]=\"data.dispVenda === 'S'\"\n                                                                        (ngModelChange)=\" data.dispVenda = $event ? 'S' : 'N' \"\n                                                                        class=\"custom-control-input checkbox-success\"\n                                                                        type=\"checkbox\"\n                                                                        [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                                                    <label class=\"custom-control-label\"\n                                                                        for=\"dispVenda\">{{ \"labels.dispVenda\" |\n                                                                        translate }}</label>\n                                                                </div>\n                                                            </div>\n                                                        </div>\n                                                    </div>\n                                                </div>\n                                            </app-card-container>\n                                        </div>\n                                        <div class=\"col-12\" style=\"left: -10px\">\n                                            <!-- DADOS FRETE -->\n                                            <app-card-container tituloCard=\"dadosFrete\">\n                                                <div class=\"row\">\n                                                    <div class=\"col-12\">\n                                                        <div class=\"row\">\n                                                            <div class=\"col-6\">\n                                                                <div class=\"row\">\n                                                                    <div class=\"col-12\">\n                                                                        <div class=\"custom-control custom-checkbox\">\n                                                                            <input id=\"flagFrete\" name=\"flagFrete\"\n                                                                                [ngModel]=\"data.flagFrete === 'S'\"\n                                                                                (ngModelChange)=\"data.flagFrete = $event ? 'S' : 'N'\"\n                                                                                class=\"custom-control-input checkbox-success\"\n                                                                                type=\"checkbox\"\n                                                                                [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                                                            <label class=\"custom-control-label\"\n                                                                                for=\"flagFrete\">{{ \"labels.flagFrete\" |\n                                                                                translate }}</label>\n                                                                        </div>\n                                                                    </div>\n                                                                </div>\n                                                            </div>\n                                                        </div>\n                                                    </div>\n                                                </div>\n                                            </app-card-container>\n                                        </div>\n                                        <div class=\"col-12\" style=\"left: -10px\">\n                                            <!-- DADOS REPRESENTANTE -->\n                                            <app-card-container tituloCard=\"dadosRepresentante\">\n                                                <div class=\"row\">\n                                                    <div class=\"col-12\">\n                                                        <div class=\"row\">\n                                                            <div class=\"col-12\">\n                                                                <div class=\"form-group form-group-sm\">\n                                                                    <label for=\"supervisor\">{{\"labels.supervisor\" |\n                                                                        translate}}</label>\n                                                                    <app-combo-padrao name=\"supervisor\" id=\"supervisor\"\n                                                                        chave=\"CodSupervisor\" descricao=\"Fantasia\"\n                                                                        ativo=\"true\" tabela=\"SupervisorVendas\"\n                                                                        [(ngModel)]=\"data.supervisorId\"\n                                                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                                                    </app-combo-padrao>\n                                                                </div>\n                                                            </div>\n                                                        </div>\n                                                        <div class=\"row\">\n                                                            <div class=\"col-12\">\n                                                                <div class=\"form-group form-group-sm\">\n                                                                    <label for=\"regiaoVenda\">{{\"labels.regiao\" |\n                                                                        translate}}</label>\n                                                                    <app-combo-padrao name=\"regiaoVenda\"\n                                                                        id=\"regiaoVenda\" chave=\"CodRegiao\"\n                                                                        descricao=\"DescrRegiao\" ativo=\"true\"\n                                                                        tabela=\"RegiaoDeVendas\"\n                                                                        [(ngModel)]=\"data.codRegiao\"\n                                                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                                                    </app-combo-padrao>\n                                                                </div>\n                                                            </div>\n                                                        </div>\n                                                    </div>\n                                                </div>\n                                            </app-card-container>\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n                            <!-- ABA Transportador -->\n                            <div class=\"tab-pane\" id=\"tr\">\n                                <div class=\"row\">\n                                    <div class=\"col-6\">\n                                        <div class=\"row\">\n                                            <div class=\"col-12\">\n                                                <app-card-container tituloCard=\"dadosDoTransportador\">\n                                                    <div class=\"row\">\n                                                        <div class=\"col-10\">\n                                                            <div class=\"form-group form-group-sm\">\n                                                                <label for=\"licencaOper\" class=\"\">{{\"labels.licencaOper\"\n                                                                    | translate }}</label>\n                                                                <input id=\"licencaOper\" name=\"licencaOper\"\n                                                                    [(ngModel)]=\"data.licencaOper\"\n                                                                    class=\"form-control form-control-sm\" type=\"text\"\n                                                                    [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                                    maxlength=\"10\" />\n                                                            </div>\n                                                        </div>\n                                                    </div>\n                                                    <div class=\"row\">\n                                                        <div class=\"col-10\">\n                                                            <div class=\"form-group form-group-sm\">\n                                                                <label for=\"dtValidadeLicenca\"\n                                                                    class=\"\">{{\"labels.dtValidadeLicenca\" | translate\n                                                                    }}</label>\n                                                                <app-data id=\"dtValidadeLicenca\"\n                                                                    name=\"dtValidadeLicenca\"\n                                                                    [(ngModel)]=\"data.dtValidadeLicenca\"\n                                                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                                                </app-data>\n                                                            </div>\n                                                        </div>\n                                                    </div>\n                                                    <div class=\"row\">\n                                                        <div class=\"col-10\">\n                                                            <div class=\"form-group form-group-sm\">\n                                                                <label for=\"dtValidadeTeste\"\n                                                                    class=\"\">{{\"labels.dtValidadeTst\" |\n                                                                    translate}}</label>\n                                                                <app-data id=\"dtValidadeTeste\" name=\"dtValidadeTeste\"\n                                                                    [(ngModel)]=\"data.dtValidadeTeste\"\n                                                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                                                </app-data>\n                                                            </div>\n                                                        </div>\n                                                    </div>\n                                                    <div class=\"row\">\n                                                        <div class=\"col-10\">\n                                                            <div class=\"form-group form-group-sm\">\n                                                                <label for=\"codArmador\" class=\"\">{{\"labels.codArmador\" |\n                                                                    translate }}</label>\n                                                                <input id=\"codArmador\" name=\"codArmador\"\n                                                                    [(ngModel)]=\"data.codArmador\"\n                                                                    class=\"form-control form-control-sm\" type=\"text\"\n                                                                    [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                                    maxlength=\"15\" />\n                                                            </div>\n                                                        </div>\n                                                    </div>\n                                                    <div class=\"row\">\n                                                        <div class=\"col-7\">\n                                                            <div class=\"form-group form-group-sm\">\n                                                                <label for=\"codFepam\" class=\"\">{{\"labels.codFepam\" |\n                                                                    translate }}</label>\n                                                                <input id=\"codFepam\" name=\"codFepam\"\n                                                                    [(ngModel)]=\"data.codFepam\"\n                                                                    class=\"form-control form-control-sm\" type=\"text\"\n                                                                    [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                                    maxlength=\"15\" />\n                                                            </div>\n                                                        </div>\n                                                        <div class=\"col-5\">\n                                                            <div class=\"form-group form-group-sm\">\n                                                                <label for=\"dtValFepam\" class=\"\">{{\"labels.dtValFepam\" |\n                                                                    translate }}</label>\n                                                                <app-data id=\"dtValFepam\" name=\"dtValFepam\"\n                                                                    [(ngModel)]=\"data.dtValFepam\"\n                                                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                                                </app-data>\n                                                            </div>\n                                                        </div>\n                                                    </div>\n                                                    <div class=\"row\">\n                                                        <div class=\"col-7\">\n                                                            <div class=\"form-group form-group-sm\">\n                                                                <label for=\"codIdoneidade\"\n                                                                    class=\"\">{{\"labels.codIdoneidade\" | translate\n                                                                    }}</label>\n                                                                <input id=\"codIdoneidade\" name=\"codIdoneidade\"\n                                                                    [(ngModel)]=\"data.codIdoneidade\"\n                                                                    class=\"form-control form-control-sm\" type=\"text\"\n                                                                    [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                                    maxlength=\"15\" />\n                                                            </div>\n                                                        </div>\n                                                    </div>\n                                                    <div class=\"row\">\n                                                        <div class=\"col-7\">\n                                                            <div class=\"form-group form-group-sm\">\n                                                                <label for=\"crntrc\" class=\"\">{{\"labels.crntrc\" |\n                                                                    translate }}</label>\n                                                                <input id=\"crntrc\" name=\"crntrc\"\n                                                                    [(ngModel)]=\"data.crntrc\"\n                                                                    class=\"form-control form-control-sm\" type=\"text\"\n                                                                    [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                                    maxlength=\"15\" />\n                                                            </div>\n                                                        </div>\n                                                        <div class=\"col-5\">\n                                                            <div class=\"form-group form-group-sm\">\n                                                                <label for=\"dtCrntrc\" class=\"\">{{\"labels.dtCrntrc\" |\n                                                                    translate }}</label>\n                                                                <app-data id=\"dtCrntrc\" name=\"dtCrntrc\"\n                                                                    [(ngModel)]=\"data.dtCrntrc\"\n                                                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                                                </app-data>\n                                                            </div>\n                                                        </div>\n                                                    </div>\n                                                    <div class=\"row\">\n                                                        <div class=\"col-7\">\n                                                            <div class=\"form-group form-group-sm\">\n                                                                <label for=\"aaibama\" class=\"\">{{\"labels.aaibama\" |\n                                                                    translate }}</label>\n                                                                <input id=\"aaibama\" name=\"aaibama\"\n                                                                    [(ngModel)]=\"data.aaibama\"\n                                                                    class=\"form-control form-control-sm\" type=\"text\"\n                                                                    [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                                    maxlength=\"15\" />\n                                                            </div>\n                                                        </div>\n                                                        <div class=\"col-5\">\n                                                            <div class=\"form-group form-group-sm\">\n                                                                <label for=\"dtAaibama\" class=\"\">{{\"labels.dtAaibama\" |\n                                                                    translate }}</label>\n                                                                <app-data id=\"dtAaibama\" name=\"dtAaibama\"\n                                                                    [(ngModel)]=\"data.dtAaibama\"\n                                                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                                                </app-data>\n                                                            </div>\n                                                        </div>\n                                                    </div>\n                                                    <div class=\"row\">\n                                                        <div class=\"col-7\">\n                                                            <div class=\"form-group form-group-sm\">\n                                                                <label for=\"sassmaq\" class=\"\">{{\"labels.sassmaq\" |\n                                                                    translate }}</label>\n                                                                <input id=\"sassmaq\" name=\"sassmaq\"\n                                                                    [(ngModel)]=\"data.sassmaq\"\n                                                                    class=\"form-control form-control-sm\" type=\"text\"\n                                                                    [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                                    maxlength=\"15\" />\n                                                            </div>\n                                                        </div>\n                                                        <div class=\"col-5\">\n                                                            <div class=\"form-group form-group-sm\">\n                                                                <label for=\"dtSassmaq\" class=\"\">{{\"labels.dtSassmaq\" |\n                                                                    translate }}</label>\n                                                                <app-data id=\"dtSassmaq\" name=\"dtSassmaq\"\n                                                                    [(ngModel)]=\"data.dtSassmaq\"\n                                                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                                                </app-data>\n                                                            </div>\n                                                        </div>\n                                                        <div class=\"col-7\">\n                                                            <div class=\"form-group form-group-sm\">\n                                                                <label for=\"ptDiferenca\" class=\"\">{{\n                                                                    \"labels.difMaxPesoOrigemPrimeiraPesagem\" | translate\n                                                                    }}</label>\n                                                                <input id=\"ptDiferenca\" name=\"ptDiferenca\"\n                                                                    [(ngModel)]=\"data.ptDiferenca\"\n                                                                    class=\"form-control form-control-sm\" maxlength=\"6\"\n                                                                    type=\"text\" currencyMask\n                                                                    [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\"\n                                                                    [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                                            </div>\n                                                        </div>\n                                                        <div class=\"col-5\">\n                                                            <div class=\"form-group form-group-sm\">\n                                                                <label for=\"difKilos\" class=\"\">{{ \"labels.kg\" |\n                                                                    translate }}</label>\n                                                                <input id=\"difKilos\" name=\"difKilos\"\n                                                                    [(ngModel)]=\"data.difKilos\"\n                                                                    class=\"form-control form-control-sm\" maxlength=\"15\"\n                                                                    type=\"text\" currencyMask\n                                                                    [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 0 }\"\n                                                                    [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                                            </div>\n                                                        </div>\n                                                    </div>\n                                                </app-card-container>\n                                            </div>\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n                            <!--ABA DE DADOS STORAGE-->\n                            <div class=\"tab-pane\" id=\"ds\">\n                                <div class=\"row\">\n                                    <div class=\"col-6\">\n                                        <div class=\"row\">\n                                            <div class=\"col-12\">\n                                                <app-card-container tituloCard=\"anp\">\n                                                    <div class=\"row\">\n                                                        <div class=\"col-10\">\n                                                            <div class=\"form-group form-group-sm\">\n                                                                <label for=\"carregadorAnp17\">{{ 'labels.carregadorAnp17'\n                                                                    | translate }}</label>\n                                                                <input id=\"carregadorAnp17\" name=\"carregadorAnp17\"\n                                                                    [(ngModel)]=\"data.carregadorAnp17\"\n                                                                    class=\"form-control form-control-sm\" type=\"text\"\n                                                                    maxlength=\"7\"\n                                                                    [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                                            </div>\n                                                        </div>\n                                                    </div>\n                                                    <div class=\"row\">\n                                                        <div class=\"col-10\">\n                                                            <div class=\"form-group form-group-sm\">\n                                                                <label for=\"codPaisAnp\" class=\"\">{{\"labels.codPaisAnp\" |\n                                                                    translate }}</label>\n                                                                <input id=\"codPaisAnp\" name=\"codPaisAnp\"\n                                                                    [(ngModel)]=\"data.codPaisAnp\"\n                                                                    class=\"form-control form-control-sm\" type=\"text\"\n                                                                    [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                                    maxlength=\"4\" />\n                                                            </div>\n                                                        </div>\n                                                    </div>\n                                                    <div class=\"row\">\n                                                        <div class=\"col-10\">\n                                                            <div class=\"form-group form-group-sm\">\n                                                                <label for=\"codAtivAnp\" class=\"\">{{\"labels.codAtivAnp\" |\n                                                                    translate }}</label>\n                                                                <input id=\"codAtivAnp\" name=\"codAtivAnp\"\n                                                                    [(ngModel)]=\"data.codAtivAnp\"\n                                                                    class=\"form-control form-control-sm\" type=\"text\"\n                                                                    [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                                    maxlength=\"6\" />\n                                                            </div>\n                                                        </div>\n                                                    </div>\n                                                </app-card-container>\n                                            </div>\n                                        </div>\n                                    </div>\n                                    <div class=\"col-6\">\n                                        <div class=\"row\">\n                                            <div class=\"col-12\">\n                                                <app-card-container tituloCard=\"dadosDoExercito\">\n                                                    <div class=\"row\">\n                                                        <div class=\"col-7\">\n                                                            <div class=\"form-group form-group-sm\">\n                                                                <label for=\"regExercito\" class=\"\">{{\"labels.regExercito\"\n                                                                    | translate }}</label>\n                                                                <input id=\"regExercito\" name=\"regExercito\"\n                                                                    [(ngModel)]=\"data.regExercito\"\n                                                                    class=\"form-control form-control-sm\" type=\"text\"\n                                                                    [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                                    maxlength=\"12\" />\n                                                            </div>\n                                                        </div>\n                                                        <div class=\"col-5\">\n                                                            <div class=\"form-group form-group-sm\">\n                                                                <label for=\"dtValExercito\"\n                                                                    class=\"\">{{\"labels.dtValExercito\" | translate\n                                                                    }}</label>\n                                                                <app-data id=\"dtValExercito\" name=\"dtValExercito\"\n                                                                    [(ngModel)]=\"data.dtValExercito\"\n                                                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                                                </app-data>\n                                                            </div>\n                                                        </div>\n                                                    </div>\n                                                    <div class=\"row\">\n                                                        <div class=\"col-7\">\n                                                            <div class=\"form-group form-group-sm\">\n                                                                <label for=\"sFPC\" class=\"\">{{\"labels.sFPC\" | translate\n                                                                    }}</label>\n                                                                <input id=\"sFPC\" name=\"sFPC\" [(ngModel)]=\"data.sfpc\"\n                                                                    class=\"form-control form-control-sm\" type=\"text\"\n                                                                    [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                                    maxlength=\"10\" />\n                                                            </div>\n                                                        </div>\n                                                    </div>\n                                                </app-card-container>\n                                            </div>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-3\">\n                                        <div class=\"row\">\n                                            <div class=\"col-12\">\n                                                <app-card-container tituloCard=\"entorpecentes\">\n                                                    <div class=\"row\">\n                                                        <div class=\"col-12\">\n                                                            <div class=\"form-group form-group-sm\">\n                                                                <label for=\"licencEntorp\"\n                                                                    class=\"\">{{\"labels.licencEntorp\" | translate\n                                                                    }}</label>\n                                                                <input id=\"licencEntorp\" name=\"licencEntorp\"\n                                                                    [(ngModel)]=\"data.licencEntorp\"\n                                                                    class=\"form-control form-control-sm\" type=\"text\"\n                                                                    [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                                    maxlength=\"10\" />\n                                                            </div>\n                                                        </div>\n                                                    </div>\n                                                    <div class=\"row\">\n                                                        <div class=\"col-12\">\n                                                            <div class=\"form-group form-group-sm\">\n                                                                <label for=\"dtLicencEntorp\"\n                                                                    class=\"\">{{\"labels.dtLicencEntorp\" | translate\n                                                                    }}</label>\n                                                                <app-data id=\"dtLicencEntorp\" name=\"dtLicencEntorp\"\n                                                                    [(ngModel)]=\"data.dtLicencEntorp\"\n                                                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                                                </app-data>\n                                                            </div>\n                                                        </div>\n                                                    </div>\n                                                </app-card-container>\n                                            </div>\n                                        </div>\n                                    </div>\n                                    <div class=\"col-9\">\n                                        <div class=\"row\">\n                                            <div class=\"col-6\">\n                                                <app-card-container tituloCard=\"planejamentoCarga\">\n                                                    <div class=\"row\">\n                                                        <div class=\"col-8\">\n                                                            <div class=\"custom-control custom-checkbox\">\n                                                                <input id=\"obrPedVenda\" name=\"obrPedVenda\"\n                                                                    [ngModel]=\"data.obrPedVenda === 'S'\"\n                                                                    (ngModelChange)=\"data.obrPedVenda = $event ? 'S' : 'N'\"\n                                                                    class=\"custom-control-input checkbox-success\"\n                                                                    type=\"checkbox\"\n                                                                    [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                                                <label class=\"custom-control-label\"\n                                                                    for=\"obrPedVenda\">{{\"labels.obrPedVenda\" |\n                                                                    translate}}</label>\n                                                            </div>\n                                                        </div>\n                                                    </div>\n                                                    <div class=\"row\">\n                                                        <div class=\"col-8\">\n                                                            <div class=\"custom-control custom-checkbox\">\n                                                                <input id=\"obrPedRemessa\" name=\"obrPedRemessa\"\n                                                                    [ngModel]=\"data.obrPedRemessa === 'S'\"\n                                                                    (ngModelChange)=\"data.obrPedRemessa = $event ? 'S' : 'N'\"\n                                                                    class=\"custom-control-input checkbox-success\"\n                                                                    type=\"checkbox\"\n                                                                    [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                                                <label class=\"custom-control-label\"\n                                                                    for=\"obrPedRemessa\">{{\"labels.obrPedRemessa\" |\n                                                                    translate}}</label>\n                                                            </div>\n                                                        </div>\n                                                    </div>\n                                                </app-card-container>\n                                            </div>\n                                            <div class=\"col-6\">\n                                                <app-card-container tituloCard=\"informeOcorrencia\">\n                                                    <div class=\"row\">\n                                                        <div class=\"col-8\">\n                                                            <div class=\"custom-control custom-checkbox\">\n                                                                <input id=\"flagEnviaIOCTransport\"\n                                                                    name=\"flagEnviaIOCTransport\"\n                                                                    [ngModel]=\"data.flagEnviaIOCTransport === 'S'\"\n                                                                    (ngModelChange)=\"data.flagEnviaIOCTransport = $event ? 'S' : 'N'\"\n                                                                    class=\"custom-control-input checkbox-success\"\n                                                                    type=\"checkbox\"\n                                                                    [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                                                <label class=\"custom-control-label\"\n                                                                    for=\"flagEnviaIOCTransport\">{{\"labels.flagEnviaIOCTransport\"\n                                                                    | translate}}</label>\n                                                            </div>\n                                                        </div>\n                                                    </div>\n                                                </app-card-container>\n                                            </div>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-3\">\n                                        <div class=\"row\">\n                                            <div class=\"col-12\">\n                                                <app-card-container tituloCard=\"controle\">\n                                                    <div class=\"row\">\n                                                        <div class=\"col-12\">\n                                                            <div class=\"form-group form-group-sm\">\n                                                                <label for=\"regSerieCtr\" class=\"\">{{ \"labels.serieNf\" |\n                                                                    translate }}</label>\n                                                                <app-combo-padrao name=\"regSerieCtr\" id=\"regSerieCtr\"\n                                                                    chave=\"SerieNF\" descricao=\"SerieNF\" ativo=\"true\"\n                                                                    tabela=\"Series\" [(ngModel)]=\"data.regSerieCtr\"\n                                                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                                                </app-combo-padrao>\n                                                            </div>\n                                                        </div>\n                                                    </div>\n                                                    <div class=\"row\">\n                                                        <div class=\"col-12\">\n                                                            <div class=\"form-group form-group-sm\">\n                                                                <label for=\"filial\" class=\"\">{{ \"labels.filialParaLote\"\n                                                                    | translate }}</label>\n                                                                <app-combo-padrao name=\"filial\" id=\"filial\"\n                                                                    chave=\"Filial\" descricao=\"Fantasia\" ativo=\"true\"\n                                                                    tabela=\"Filial\" [(ngModel)]=\"data.filialId\"\n                                                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                                                </app-combo-padrao>\n                                                            </div>\n                                                        </div>\n                                                    </div>\n                                                </app-card-container>\n                                            </div>\n                                        </div>\n                                    </div>\n                                    <div class=\"col-9\">\n                                        <div class=\"row\">\n                                            <div class=\"col-6\">\n                                                <app-card-container tituloCard=\"agendamento\">\n                                                    <div class=\"row\">\n                                                        <div class=\"col-12\">\n                                                            <div class=\"custom-control custom-checkbox\">\n                                                                <input id=\"flagUtilizaQtMaxAgendamentos\"\n                                                                    name=\"flagUtilizaQtMaxAgendamentos\"\n                                                                    [ngModel]=\"data.flagUtilizaQtMaxAgendamentos === 'S'\"\n                                                                    (ngModelChange)=\"data.flagUtilizaQtMaxAgendamentos = $event ? 'S' : 'N'\"\n                                                                    class=\"custom-control-input checkbox-success\"\n                                                                    type=\"checkbox\"\n                                                                    [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                                                <label class=\"custom-control-label\"\n                                                                    for=\"flagUtilizaQtMaxAgendamentos\">{{\"labels.flagUtilizaQtMaxAgendamentos\"\n                                                                    | translate}}</label>\n                                                            </div>\n                                                        </div>\n                                                    </div>\n                                                    <div class=\"row\">\n                                                        <div class=\"col-12\">\n                                                            <div class=\"custom-control custom-checkbox\">\n                                                                <input id=\"naoObrPlanejamento\" name=\"naoObrPlanejamento\"\n                                                                    [ngModel]=\"data.naoObrPlanejamento === 'S'\"\n                                                                    (ngModelChange)=\"data.naoObrPlanejamento = $event ? 'S' : 'N'\"\n                                                                    class=\"custom-control-input checkbox-success\"\n                                                                    type=\"checkbox\"\n                                                                    [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                                                <label class=\"custom-control-label\"\n                                                                    for=\"naoObrPlanejamento\">{{\"labels.naoObrPlanejamento\"\n                                                                    | translate}}</label>\n                                                            </div>\n                                                        </div>\n                                                    </div>\n                                                    <div class=\"row\">\n                                                        <div class=\"col-5\">\n                                                            <div class=\"form-group form-group-sm\">\n                                                                <label for=\"qtMaxAgendamento\" class=\"\">{{\n                                                                    \"labels.quantidade\" | translate }}\n                                                                </label>\n                                                                <input id=\"qtMaxAgendamento\" name=\"qtMaxAgendamento\"\n                                                                    [(ngModel)]=\"data.qtMaxAgendamento\"\n                                                                    class=\"form-control form-control-sm\" maxlength=\"9\"\n                                                                    type=\"text\"\n                                                                    [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                                            </div>\n                                                        </div>\n                                                        <div class=\"col-7\">\n                                                            <div class=\"form-group form-group-sm\">\n                                                                <label for=\"tipoQtMaxAgendamentos\">{{\n                                                                    'labels.tipoQtMaxAgendamentos' | translate}}</label>\n                                                                <select [(ngModel)]=\"data.tipoQtMaxAgendamentos\"\n                                                                    class=\"form-control form-control-sm\"\n                                                                    id=\"tipoQtMaxAgendamentos\"\n                                                                    name=\"tipoQtMaxAgendamentos\"\n                                                                    data-title=\"{{'labels.tipoQtMaxAgendamentos' | translate}}\"\n                                                                    [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                                                    <option value=\"H\">{{ 'labels.porHora' | translate }}\n                                                                    </option>\n                                                                    <option value=\"D\">{{ 'labels.porDia' | translate }}\n                                                                    </option>\n                                                                </select>\n                                                            </div>\n                                                        </div>\n                                                    </div>\n                                                    <div class=\"row\">\n                                                        <div class=\"col-12\">\n                                                            <div class=\"custom-control custom-checkbox\">\n                                                                <input id=\"flagObrigaDocAgendamento\"\n                                                                    name=\"flagObrigaDocAgendamento\"\n                                                                    [ngModel]=\"data.flagObrigaDocAgendamento === 'S'\"\n                                                                    (ngModelChange)=\"data.flagObrigaDocAgendamento = $event ? 'S' : 'N'\"\n                                                                    class=\"custom-control-input checkbox-success\"\n                                                                    type=\"checkbox\"\n                                                                    [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                                                <label class=\"custom-control-label\"\n                                                                    for=\"flagObrigaDocAgendamento\">{{\"labels.flagObrigaDocAgendamento\"\n                                                                    | translate}}</label>\n                                                            </div>\n                                                        </div>\n                                                    </div>\n                                                </app-card-container>\n                                            </div>\n                                            <div class=\"col-6\">\n                                                <app-card-container tituloCard=\"sindCom\">\n                                                    <div class=\"row\">\n                                                        <div class=\"col-12\">\n                                                            <div class=\"custom-control custom-checkbox\">\n                                                                <input id=\"flagControlValidChkLstSindCom\"\n                                                                    name=\"flagControlValidChkLstSindCom\"\n                                                                    [ngModel]=\"data.flagControlValidChkLstSindCom === 'S'\"\n                                                                    (ngModelChange)=\"data.flagControlValidChkLstSindCom = $event ? 'S' : 'N'\"\n                                                                    class=\"custom-control-input checkbox-success\"\n                                                                    type=\"checkbox\"\n                                                                    [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                                                <label class=\"custom-control-label\"\n                                                                    for=\"flagControlValidChkLstSindCom\">{{\"labels.flagControlValidChkLstSindCom\"\n                                                                    | translate}}</label>\n                                                            </div>\n                                                        </div>\n                                                    </div>\n                                                </app-card-container>\n                                            </div>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-12\">\n                                        <app-card-container tituloCard=\"operacaoBalanca\">\n                                            <div class=\"row\">\n                                                <div class=\"col-4\" style=\"top: 15px\">\n                                                    <div class=\"custom-control custom-checkbox\" style=\"top: 15px\">\n                                                        <input id=\"ctrlLacre\" name=\"ctrlLacre\"\n                                                            [ngModel]=\"data.ctrlLacre === 'S'\"\n                                                            (ngModelChange)=\"data.ctrlLacre = $event ? 'S' : 'N'\"\n                                                            class=\"custom-control-input checkbox-success\"\n                                                            type=\"checkbox\"\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                                        <label class=\"custom-control-label\"\n                                                            for=\"ctrlLacre\">{{\"labels.ctrlLacre\" | translate}}</label>\n                                                    </div>\n                                                </div>\n                                                <div class=\"col-4\">\n                                                    <div class=\"form-group form-group-sm\">\n                                                        <label for=\"loteLacre\">{{\"labels.loteLacre\" |\n                                                            translate}}</label>\n                                                        <app-combo-padrao name=\"loteLacre\" id=\"loteLacre\"\n                                                            chave=\"LoteLacre\" descricao=\"LoteLacre\" ativo=\"true\"\n                                                            tabela=\"LoteLacre\" [(ngModel)]=\"data.loteLacre\"\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                                        </app-combo-padrao>\n                                                    </div>\n                                                </div>\n                                                <div class=\"col-4\">\n                                                    <div class=\"form-group form-group-sm\">\n                                                        <label for=\"vlTxEmbarque\" class=\"\">{{ \"labels.vlTxEmbarque\" |\n                                                            translate }}</label>\n                                                        <input id=\"vlTxEmbarque\" name=\"vlTxEmbarque\"\n                                                            [(ngModel)]=\"data.vlTxEmbarque\"\n                                                            class=\"form-control form-control-sm\" currencyMask\n                                                            [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\"\n                                                            type=\"text\" maxlength=\"15\"\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                                    </div>\n                                                </div>\n                                            </div>\n                                            <div class=\"row\">\n                                                <div class=\"col-4\" style=\"top: -3px\">\n                                                    <div class=\"custom-control custom-checkbox\" style=\"top: -3px\">\n                                                        <input id=\"flagNVendaAutCarga\" name=\"flagNVendaAutCarga\"\n                                                            [ngModel]=\"data.flagNVendaAutCarga === 'S'\"\n                                                            (ngModelChange)=\"data.flagNVendaAutCarga = $event ? 'S' : 'N'\"\n                                                            class=\"custom-control-input checkbox-success\"\n                                                            type=\"checkbox\"\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                                        <label class=\"custom-control-label\"\n                                                            for=\"flagNVendaAutCarga\">{{\"labels.flagNVendaAutCarga\" |\n                                                            translate}}</label>\n                                                    </div>\n                                                </div>\n                                                <div class=\"col-4\" style=\"top: -3px\">\n                                                    <div class=\"custom-control custom-checkbox\" style=\"top: -3px\">\n                                                        <input id=\"flagUmLoteNFRet\" name=\"flagUmLoteNFRet\"\n                                                            [ngModel]=\"data.flagUmLoteNFRet === 'S'\"\n                                                            (ngModelChange)=\"data.flagUmLoteNFRet = $event ? 'S' : 'N'\"\n                                                            class=\"custom-control-input checkbox-success\"\n                                                            type=\"checkbox\"\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                                        <label class=\"custom-control-label\"\n                                                            for=\"flagUmLoteNFRet\">{{\"labels.flagUmLoteNFRet\" |\n                                                            translate}}</label>\n                                                    </div>\n                                                </div>\n                                                <div class=\"col-4\" style=\"top: -3px\">\n                                                    <div class=\"custom-control custom-checkbox\" style=\"top: -3px\">\n                                                        <input id=\"flagTransitTime\" name=\"flagTransitTime\"\n                                                            [ngModel]=\"data.flagTransitTime === 'S'\"\n                                                            (ngModelChange)=\"data.flagTransitTime = $event ? 'S' : 'N'\"\n                                                            class=\"custom-control-input checkbox-success\"\n                                                            type=\"checkbox\"\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                                        <label class=\"custom-control-label\"\n                                                            for=\"flagTransitTime\">{{\"labels.flagTransitTime\" |\n                                                            translate}}</label>\n                                                    </div>\n                                                </div>\n                                                <div class=\"col-4\" style=\"top: -3px\">\n                                                    <div class=\"custom-control custom-checkbox\" style=\"top: -3px\">\n                                                        <input id=\"flagXmlArmazens\" name=\"flagXmlArmazens\"\n                                                            [ngModel]=\"data.flagXmlArmazens === 'S'\"\n                                                            (ngModelChange)=\"data.flagXmlArmazens = $event ? 'S' : 'N'\"\n                                                            class=\"custom-control-input checkbox-success\"\n                                                            type=\"checkbox\"\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                                        <label class=\"custom-control-label\"\n                                                            for=\"flagXmlArmazens\">{{\"labels.flagXmlArmazens\" |\n                                                            translate}}</label>\n                                                    </div>\n                                                </div>\n                                            </div>\n                                            <div class=\"row\">\n                                                <div class=\"col-4\" style=\"top: -2px\">\n                                                    <div class=\"custom-control custom-checkbox\" style=\"top: -2px\">\n                                                        <input id=\"flagImpOrp\" name=\"flagImpOrp\"\n                                                            [ngModel]=\"data.flagImpOrp === 'S'\"\n                                                            (ngModelChange)=\"data.flagImpOrp = $event ? 'S' : 'N'\"\n                                                            class=\"custom-control-input checkbox-success\"\n                                                            type=\"checkbox\"\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                                        <label class=\"custom-control-label\"\n                                                            for=\"flagImpOrp\">{{\"labels.flagImpOrp\" | translate}}</label>\n                                                    </div>\n                                                </div>\n                                                <div class=\"col-4\" style=\"top: -2px\">\n                                                    <div class=\"custom-control custom-checkbox\" style=\"top: -2px\">\n                                                        <input id=\"controle20Graus\" name=\"controle20Graus\"\n                                                            [ngModel]=\"data.controle20Graus === 'S'\"\n                                                            (ngModelChange)=\"data.controle20Graus = $event ? 'S' : 'N'\"\n                                                            class=\"custom-control-input checkbox-success\"\n                                                            type=\"checkbox\"\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                                        <label class=\"custom-control-label\"\n                                                            for=\"controle20Graus\">{{\"labels.controle20Graus\" |\n                                                            translate}}</label>\n                                                    </div>\n                                                </div>\n                                            </div>\n                                            <div class=\"row\">\n                                                <div class=\"col-12\">\n                                                    <div class=\"form-group form-group-sm\">\n                                                        <label for=\"observOcd\" class=\"\">{{ \"labels.observOCD\" |\n                                                            translate }}</label>\n                                                        <input id=\"observOcd\" name=\"observOcd\"\n                                                            [(ngModel)]=\"data.observOcd\"\n                                                            class=\"form-control form-control-sm\" maxlength=\"100\"\n                                                            type=\"text\"\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                                    </div>\n                                                </div>\n                                            </div>\n                                            <div class=\"row\">\n                                                <div class=\"col-12\">\n                                                    <div class=\"form-group form-group-sm\">\n                                                        <label for=\"observReq\" class=\"\">{{ \"labels.observReq\" |\n                                                            translate }}</label>\n                                                        <input id=\"observReq\" name=\"observReq\"\n                                                            [(ngModel)]=\"data.observReq\"\n                                                            class=\"form-control form-control-sm\" maxlength=\"100\"\n                                                            type=\"text\"\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                                    </div>\n                                                </div>\n                                            </div>\n                                        </app-card-container>\n                                    </div>\n                                </div>\n                            </div>\n                            <!-- ABA de IMPOSTOS -->\n                            <div class=\"tab-pane\" id=\"ip\">\n                                <div class=\"row\">\n                                    <div class=\"col-6\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"aliqPis\" class=\"\">{{\"labels.aliqPis\" | translate }}</label>\n                                            <input id=\"aliqPis\" name=\"aliqPis\" [(ngModel)]=\"data.aliqPis\"\n                                                class=\"form-control form-control-sm\" type=\"text\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\" currencyMask\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\"\n                                                maxlength=\"6\" />\n                                        </div>\n                                    </div>\n                                    <div class=\"col-6\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"aliqCofins\" class=\"\">{{\"labels.aliqCofins\" | translate}}</label>\n                                            <input id=\"aliqCofins\" name=\"aliqCofins\" [(ngModel)]=\"data.aliqCofins\"\n                                                class=\"form-control form-control-sm\" type=\"text\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\" currencyMask\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\"\n                                                maxlength=\"6\" />\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-6\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"aliqRetPis\" class=\"\">{{\"labels.aliqRetPis\" | translate}}</label>\n                                            <input id=\"aliqRetPis\" name=\"aliqRetPis\" [(ngModel)]=\"data.aliqRetPis\"\n                                                class=\"form-control form-control-sm\" type=\"text\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\" currencyMask\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\"\n                                                maxlength=\"6\" />\n                                        </div>\n                                    </div>\n\n                                    <div class=\"col-6\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"aliqRetCofins\" class=\"\">{{\"labels.aliqRetCofins\" |\n                                                translate}}</label>\n                                            <input id=\"aliqRetCofins\" name=\"aliqRetCofins\"\n                                                [(ngModel)]=\"data.aliqRetCofins\" class=\"form-control form-control-sm\"\n                                                type=\"text\" [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                currencyMask\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\"\n                                                maxlength=\"6\" />\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-6\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"aliqInss\" class=\"\">{{\"labels.aliqInss\" | translate}}</label>\n                                            <input id=\"aliqInss\" name=\"aliqInss\" [(ngModel)]=\"data.aliqInss\"\n                                                class=\"form-control form-control-sm\" type=\"text\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\" currencyMask\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\"\n                                                maxlength=\"6\" />\n                                        </div>\n                                    </div>\n                                    <div class=\"col-6\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"aliqRetPis\" class=\"\">{{\"labels.aliqIss\" | translate }}</label>\n                                            <input id=\"aliqIss\" name=\"aliqIss\" [(ngModel)]=\"data.aliqIss\"\n                                                class=\"form-control form-control-sm\" type=\"text\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\" currencyMask\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\"\n                                                maxlength=\"6\" />\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-6\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"aliqIr\" class=\"\">{{\"labels.aliqIR\" | translate}}</label>\n                                            <input id=\"aliqIr\" name=\"aliqIr\" [(ngModel)]=\"data.aliqIr\"\n                                                class=\"form-control form-control-sm\" type=\"text\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\" currencyMask\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\"\n                                                maxlength=\"6\" />\n                                        </div>\n                                    </div>\n                                    <div class=\"col-6\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"vlMinimoIr\" class=\"\">{{\"labels.vlMinimoIR\" | translate}}</label>\n                                            <input id=\"vlMinimoIr\" name=\"vlMinimoIr\" [(ngModel)]=\"data.vlMinimoIr\"\n                                                class=\"form-control form-control-sm\" type=\"text\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\" currencyMask\n                                                [options]=\"{ prefix: '', thousands: '.', decimal: ',', precision: 2 }\"\n                                                maxlength=\"13\" />\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-6\">\n                                        <div class=\"custom-control custom-checkbox\">\n                                            <input id=\"icmsRet\" name=\"icmsRet\" [ngModel]=\"data.icmsRet === 'S'\"\n                                                (ngModelChange)=\"data.icmsRet = $event ? 'S' : 'N'\"\n                                                class=\"custom-control-input checkbox-success\" type=\"checkbox\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                            <label class=\"custom-control-label\" for=\"icmsRet\">{{ \"labels.icmsRet\" |\n                                                translate }}</label>\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-12 mt-2\">\n                                        <app-card-container tituloCard=\"{{ 'titles.beneficioFiscal' | translate }}\">\n                                            <div class=\"row\">\n                                                <div class=\"col-6\">\n                                                    <div class=\"custom-control custom-checkbox\">\n                                                        <input id=\"dedIcms\" name=\"dedIcms\"\n                                                            [ngModel]=\"data.dedIcms === 'S'\"\n                                                            (ngModelChange)=\"data.dedIcms = $event ? 'S' : 'N'\"\n                                                            class=\"custom-control-input checkbox-success\"\n                                                            type=\"checkbox\"\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                                        <label class=\"custom-control-label\" for=\"dedIcms\">{{\n                                                            \"labels.dedIcms\" | translate }}</label>\n                                                    </div>\n                                                </div>\n                                                <div class=\"col-6\">\n                                                    <div class=\"custom-control custom-checkbox\">\n                                                        <input id=\"suspIpi\" name=\"suspIpi\"\n                                                            [ngModel]=\"data.suspIpi === 'S'\"\n                                                            (ngModelChange)=\"data.suspIpi = $event ? 'S' : 'N'\"\n                                                            class=\"custom-control-input checkbox-success\"\n                                                            type=\"checkbox\"\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                                        <label class=\"custom-control-label\" for=\"suspIpi\">{{\n                                                            \"labels.suspIpi\" | translate }}</label>\n                                                    </div>\n                                                </div>\n                                            </div>\n                                        </app-card-container>\n                                    </div>\n                                </div>\n                            </div>\n                            <!-- ABA INTEGRAÇÕES -->\n                            <div class=\"tab-pane\" id=\"in\">\n                                <div class=\"row\">\n                                    <div class=\"col-4\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"codIntegracao\" class=\"\">{{\"labels.codIntegracao\" | translate\n                                                }}</label>\n                                            <input id=\"codIntegracao\" name=\"codIntegracao\"\n                                                [(ngModel)]=\"data.codIntegracao\" class=\"form-control form-control-sm\"\n                                                type=\"text\" [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                maxlength=\"10\" />\n                                        </div>\n                                    </div>\n                                    <div class=\"col-4\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"emsCodDest\" class=\"\">{{\"labels.emsCodDest\" | translate}}</label>\n                                            <input id=\"emsCodDest\" name=\"emsCodDest\" [(ngModel)]=\"data.emsCodDest\"\n                                                class=\"form-control form-control-sm\" type=\"text\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\" mask=\"999999999\"\n                                                maxlength=\"9\" />\n                                        </div>\n                                    </div>\n                                    <div class=\"col-4\">\n                                        <div class=\"form-group form-group-sm\">\n                                            <label for=\"codEstabelecimento\" class=\"\">{{\"labels.codEstabelecimento\" |\n                                                translate}}</label>\n                                            <input id=\"codEstabelecimento\" name=\"codEstabelecimento\"\n                                                [(ngModel)]=\"data.codEstabelecimento\"\n                                                class=\"form-control form-control-sm\" type=\"text\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\" maxlength=\"10\" />\n                                        </div>\n                                    </div>\n                                </div>\n                                <div class=\"row\">\n                                    <div class=\"col-6 mt-2\">\n                                        <app-card-container>\n                                            <div class=\"row\">\n                                                <div class=\"col-12\">\n                                                    <div class=\"form-group form-group-sm\">\n                                                        <label for=\"codClienteExterior\"\n                                                            class=\"\">{{\"labels.codClienteExterior\" | translate}}</label>\n                                                        <input id=\"codClienteExterior\" name=\"codClienteExterior\"\n                                                            [(ngModel)]=\"data.codClienteExterior\"\n                                                            class=\"form-control form-control-sm\" type=\"text\"\n                                                            [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                                            maxlength=\"20\" />\n                                                    </div>\n                                                </div>\n                                            </div>\n                                        </app-card-container>\n                                    </div>\n                                    <div class=\"col-6\">\n                                        <div class=\"custom-control custom-checkbox\">\n                                            <input id=\"flagIntegraMic\" name=\"flagIntegraMic\"\n                                                [ngModel]=\"data.flagIntegraMic === 'S'\"\n                                                (ngModelChange)=\"data.flagIntegraMic = $event ? 'S' : 'N'\"\n                                                class=\"custom-control-input checkbox-success\" type=\"checkbox\"\n                                                [disabled]=\"funcoesService.isDetail(actionForm)\" />\n                                            <label class=\"custom-control-label\" for=\"flagIntegraMic\">{{\n                                                \"labels.flagIntegraMic\" | translate }}</label>\n                                        </div>\n                                    </div>\n                                </div>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-lg-4\">\n                                <span *ngIf=\"data.sisCampoAdds\">\n                                    <div *ngFor=\"let d of data.sisCampoAdds\" [class.col-lg-6]=\"!d.colunas\">\n                                        <app-campos-adicionais name=\"{{d.campo}}\" [sisCampoAdd]=\"d\"\n                                            [(ngModel)]=\"d.valorCampo\" [disabled]=\"funcoesService.isDetail(actionForm)\"\n                                            [required]=\"d.obrigatorio === 'S'\"></app-campos-adicionais>\n                                    </div>\n                                </span>\n                            </div>\n                        </div>\n                        <div class=\"row\">\n                            <div class=\"col-4\">\n                                <div class=\"form-group\">\n                                    <button class=\"btn btn-success mr-2\" type=\"submit\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">\n                                        {{ 'buttons.salvar' | translate }}\n                                    </button>\n                                    <button class=\"btn btn-success\" (click)=\"saveAndCreate(f)\" type=\"button\"\n                                        [disabled]=\"funcoesService.isDetail(actionForm)\">{{ 'buttons.salvarNovo' |\n                                        translate }}</button>\n                                </div>\n                            </div>\n                        </div>\n                    </form>\n                </div>\n                <!--ABA de CONTATOS -->\n                <div class=\"tab-pane\" id=\"co\">\n                    <app-destinatario-contato [destinatarioId]=\"data.destinatarioId\" [dados]=\"data.contatos\"\n                        (dataResult)=\"refreshItens($event)\" [disabled]=\"funcoesService.isDetail(actionForm)\">\n                    </app-destinatario-contato>\n                </div>\n                <!-- ABA ENTREGA-->\n                <div class=\"tab-pane\" id=\"en\">\n                    <app-destinatario-entrega [destinatarioId]=\"data.destinatarioId\" [dados]=\"data.entregas\"\n                        (dataResult)=\"refreshEndereco($event)\" [disabled]=\"funcoesService.isDetail(actionForm)\">\n                    </app-destinatario-entrega>\n                </div>\n            </div>\n        </div>\n    </div>\n</div>\n\n<app-liberar-acesso-supervisor></app-liberar-acesso-supervisor>");

/***/ }),

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

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

/***/ }),

/***/ "./src/app/pages/cadastro/contatos/contatos.model.ts":
/*!***********************************************************!*\
  !*** ./src/app/pages/cadastro/contatos/contatos.model.ts ***!
  \***********************************************************/
/*! exports provided: Contatos */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Contatos", function() { return Contatos; });
/* harmony import */ var _shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../shared/services/base/base.model */ "./src/app/shared/services/base/base.model.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};

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



/***/ }),

/***/ "./src/app/pages/cadastro/destinatario/destinatario-contato/destinatario-contato.component.ts":
/*!****************************************************************************************************!*\
  !*** ./src/app/pages/cadastro/destinatario/destinatario-contato/destinatario-contato.component.ts ***!
  \****************************************************************************************************/
/*! exports provided: DestinatarioContatoComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DestinatarioContatoComponent", function() { return DestinatarioContatoComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../config/enumerables */ "./src/app/config/enumerables.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 _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _contatos_contatos_model__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../contatos/contatos.model */ "./src/app/pages/cadastro/contatos/contatos.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 DestinatarioContatoComponent = /** @class */ (function () {
    function DestinatarioContatoComponent(messageService, funcoesService) {
        this.messageService = messageService;
        this.funcoesService = funcoesService;
        this.dataResult = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.dataAux = new _contatos_contatos_model__WEBPACK_IMPORTED_MODULE_5__["Contatos"]();
        this.data = new _contatos_contatos_model__WEBPACK_IMPORTED_MODULE_5__["Contatos"]();
        this.showAdd = false;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].index;
        this.hasDados = false;
    }
    DestinatarioContatoComponent.prototype.ngDoCheck = function () {
        this.hasDados =
            this.dados && this.dados.length > 0 &&
                this.dados.filter(function (v) {
                    if (v["sitReg"] !== "E") {
                        return true;
                    }
                    return false;
                }).length > 0;
        if (!this.isDoCheck) {
            if (this.dados) {
                for (var i = 1; i <= this.dados.length; i++) {
                    this.dados[i - 1]["sequencia"] = i;
                }
                this.isDoCheck = true;
            }
        }
    };
    DestinatarioContatoComponent.prototype.create = function () {
        this.showAdd = true;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].create;
        this.data = new _contatos_contatos_model__WEBPACK_IMPORTED_MODULE_5__["Contatos"]();
    };
    DestinatarioContatoComponent.prototype.edit = function () {
        this.showAdd = true;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].edit;
        this.data = this.dataAux;
    };
    DestinatarioContatoComponent.prototype.detail = function () {
        this.showAdd = true;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].detail;
        this.data = this.dataAux;
    };
    DestinatarioContatoComponent.prototype.back = function () {
        this.showAdd = false;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].index;
    };
    DestinatarioContatoComponent.prototype.remove = function () {
        var _this = this;
        this.data = this.dataAux;
        if (!this.funcoesService.isUndefinedOrNull(this.data.sequencia)) {
            this.messageService.removeConfirm(function () {
                var i = _this.dados.findIndex(function (x) { return x.sequencia === _this.data.sequencia; });
                _this.data["sitReg"] = "E";
                _this.dados[i] = _this.data;
            });
        }
    };
    DestinatarioContatoComponent.prototype.onSubmit = function (form) {
        var _this = this;
        if (form.invalid) {
            app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("formError").emit(form);
            return;
        }
        if (this.data.sequencia && this.data.sequencia > 0) {
            if (this.dados.length > 0) {
                var i = this.dados.findIndex(function (x) { return x.sequencia === _this.data.sequencia; });
                this.dados[i] = this.data;
            }
            else {
                this.dados = [];
                this.dados.push(this.data);
            }
        }
        else {
            this.setSequencia();
            if (this.funcoesService.isUndefinedOrNull(this.dados)) {
                this.dados = [];
            }
            this.dados.push(this.data);
        }
        this.data = new _contatos_contatos_model__WEBPACK_IMPORTED_MODULE_5__["Contatos"]();
        this.dataResult.emit(this.dados);
        this.back();
    };
    DestinatarioContatoComponent.prototype.setSequencia = function () {
        if (this.funcoesService.isUndefinedOrNull(this.data.destinatarioId) || this.data.destinatarioId === 0) {
            var s = this.dados ? this.dados.length : 0;
            this.data.sequencia = s + 1;
        }
        else {
            this.data.sequencia = this.data.sequencia;
        }
    };
    DestinatarioContatoComponent.ctorParameters = function () { return [
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", String)
    ], DestinatarioContatoComponent.prototype, "destinatarioId", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Array)
    ], DestinatarioContatoComponent.prototype, "dados", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], DestinatarioContatoComponent.prototype, "disabled", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], DestinatarioContatoComponent.prototype, "dataResult", void 0);
    DestinatarioContatoComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-destinatario-contato",
            template: __importDefault(__webpack_require__(/*! raw-loader!./destinatario-contato.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/destinatario/destinatario-contato/destinatario-contato.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"]])
    ], DestinatarioContatoComponent);
    return DestinatarioContatoComponent;
}());



/***/ }),

/***/ "./src/app/pages/cadastro/destinatario/destinatario-entrega/destinatario-entrega.component.ts":
/*!****************************************************************************************************!*\
  !*** ./src/app/pages/cadastro/destinatario/destinatario-entrega/destinatario-entrega.component.ts ***!
  \****************************************************************************************************/
/*! exports provided: DestinatarioEnderecoEntregaComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DestinatarioEnderecoEntregaComponent", function() { return DestinatarioEnderecoEntregaComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../config/enumerables */ "./src/app/config/enumerables.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 _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _endereco_entrega_endereco_entrega_model__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../endereco-entrega/endereco-entrega.model */ "./src/app/pages/cadastro/endereco-entrega/endereco-entrega.model.ts");
/* harmony import */ var _destinatario_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../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 DestinatarioEnderecoEntregaComponent = /** @class */ (function () {
    function DestinatarioEnderecoEntregaComponent(messageService, funcoesService, destinatarioService) {
        this.messageService = messageService;
        this.funcoesService = funcoesService;
        this.destinatarioService = destinatarioService;
        this.dataResult = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
        this.dataAux = new _endereco_entrega_endereco_entrega_model__WEBPACK_IMPORTED_MODULE_5__["EnderecoEntrega"]();
        this.data = new _endereco_entrega_endereco_entrega_model__WEBPACK_IMPORTED_MODULE_5__["EnderecoEntrega"]();
        this.showAdd = false;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].index;
        this.hasDados = false;
    }
    DestinatarioEnderecoEntregaComponent.prototype.ngDoCheck = function () {
        this.hasDados =
            this.dados &&
                this.dados.length > 0 &&
                this.dados.filter(function (v) {
                    if (v["sitReg"] !== "E") {
                        return true;
                    }
                    return false;
                }).length > 0;
        if (!this.isDoCheck) {
            if (this.dados) {
                for (var i = 1; i <= this.dados.length; i++) {
                    this.dados[i - 1]["sequencia"] = i;
                }
                this.isDoCheck = true;
            }
        }
    };
    DestinatarioEnderecoEntregaComponent.prototype.create = function () {
        this.showAdd = true;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].create;
        this.data = new _endereco_entrega_endereco_entrega_model__WEBPACK_IMPORTED_MODULE_5__["EnderecoEntrega"]();
    };
    DestinatarioEnderecoEntregaComponent.prototype.edit = function () {
        this.showAdd = true;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].edit;
        this.data = this.dataAux;
    };
    DestinatarioEnderecoEntregaComponent.prototype.detail = function () {
        this.showAdd = true;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].detail;
        this.data = this.dataAux;
    };
    DestinatarioEnderecoEntregaComponent.prototype.back = function () {
        this.showAdd = false;
        this.actionForm = _config_enumerables__WEBPACK_IMPORTED_MODULE_1__["ActionForm"].index;
    };
    DestinatarioEnderecoEntregaComponent.prototype.remove = function () {
        var self = this;
        self.data = self.dataAux;
        if (!self.funcoesService.isUndefinedOrNull(self.data.sequencia)) {
            self.messageService.removeConfirm(function () {
                var i = self.dados.findIndex(function (x) { return x.sequencia === self.data.sequencia; });
                if (!!self.dataAux.destinatarioId) {
                    self.data["sitReg"] = "E";
                    self.dados[i] = self.data;
                }
                else {
                    self.dados.splice(i, 1);
                }
                self.dataResult.emit(self.dados);
            });
        }
    };
    DestinatarioEnderecoEntregaComponent.prototype.onSubmit = function (form) {
        var _this = this;
        app_shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_2__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            return;
        }
        if (this.data.sequencia && this.data.sequencia > 0) {
            if (this.dados.length > 0) {
                var i = this.dados.findIndex(function (x) { return x.sequencia === _this.data.sequencia; });
                this.dados[i] = this.data;
            }
            else {
                this.dados = [];
                this.dados.push(this.data);
            }
        }
        else {
            this.setSequencia();
            if (this.funcoesService.isUndefinedOrNull(this.dados)) {
                this.dados = [];
            }
            this.dados.push(this.data);
        }
        this.data = new _endereco_entrega_endereco_entrega_model__WEBPACK_IMPORTED_MODULE_5__["EnderecoEntrega"]();
        this.dataResult.emit(this.dados);
        this.back();
    };
    DestinatarioEnderecoEntregaComponent.prototype.setSequencia = function () {
        if (this.funcoesService.isUndefinedOrNull(this.data.destinatarioId) ||
            this.data.destinatarioId === 0) {
            var s = this.dados ? this.dados.length : 0;
            this.data.sequencia = s + 1;
        }
        else {
            this.data.sequencia = this.data.sequencia;
        }
    };
    DestinatarioEnderecoEntregaComponent.prototype.trataEntrega = function (pesquisa) {
        var _this = this;
        this.destinatarioService.getById(pesquisa.destinatarioId).subscribe(function (resp) {
            _this.data.entrega = resp;
        });
    };
    DestinatarioEnderecoEntregaComponent.ctorParameters = function () { return [
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: _destinatario_service__WEBPACK_IMPORTED_MODULE_6__["DestinatarioService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", String)
    ], DestinatarioEnderecoEntregaComponent.prototype, "destinatarioId", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], DestinatarioEnderecoEntregaComponent.prototype, "enderecoEntregaId", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Array)
    ], DestinatarioEnderecoEntregaComponent.prototype, "dados", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", Object)
    ], DestinatarioEnderecoEntregaComponent.prototype, "disabled", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], DestinatarioEnderecoEntregaComponent.prototype, "dataResult", void 0);
    DestinatarioEnderecoEntregaComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-destinatario-entrega",
            template: __importDefault(__webpack_require__(/*! raw-loader!./destinatario-entrega.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/destinatario/destinatario-entrega/destinatario-entrega.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_3__["MessageService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            _destinatario_service__WEBPACK_IMPORTED_MODULE_6__["DestinatarioService"]])
    ], DestinatarioEnderecoEntregaComponent);
    return DestinatarioEnderecoEntregaComponent;
}());



/***/ }),

/***/ "./src/app/pages/cadastro/destinatario/destinatario-filter/destinatario-filter.component.ts":
/*!**************************************************************************************************!*\
  !*** ./src/app/pages/cadastro/destinatario/destinatario-filter/destinatario-filter.component.ts ***!
  \**************************************************************************************************/
/*! exports provided: DestinatarioFilterComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DestinatarioFilterComponent", function() { return DestinatarioFilterComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _destinatario_filter_model__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./destinatario-filter.model */ "./src/app/pages/cadastro/destinatario/destinatario-filter/destinatario-filter.model.ts");
/* harmony import */ var _destinatario_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../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 DestinatarioFilterComponent = /** @class */ (function () {
    function DestinatarioFilterComponent(service) {
        this.service = service;
        this.filtrar = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
    }
    DestinatarioFilterComponent.prototype.ngOnInit = function () {
    };
    DestinatarioFilterComponent.prototype.onSubmit = function (form) {
        if (!form.invalid) {
            this.filtrar.emit(this.service.filtro);
            jQuery("#dest-filter-dialog").modal("hide");
        }
    };
    DestinatarioFilterComponent.prototype.trataSit = function (selectedItems) {
        this.service.filtro.tiposDeTerceiros = selectedItems;
    };
    DestinatarioFilterComponent.ctorParameters = function () { return [
        { type: _destinatario_service__WEBPACK_IMPORTED_MODULE_2__["DestinatarioService"] }
    ]; };
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
        __metadata("design:type", _destinatario_filter_model__WEBPACK_IMPORTED_MODULE_1__["DestinatarioFilter"])
    ], DestinatarioFilterComponent.prototype, "data", void 0);
    __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
        __metadata("design:type", Object)
    ], DestinatarioFilterComponent.prototype, "filtrar", void 0);
    DestinatarioFilterComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-destinatario-filter",
            template: __importDefault(__webpack_require__(/*! raw-loader!./destinatario-filter.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/destinatario/destinatario-filter/destinatario-filter.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_destinatario_service__WEBPACK_IMPORTED_MODULE_2__["DestinatarioService"]])
    ], DestinatarioFilterComponent);
    return DestinatarioFilterComponent;
}());



/***/ }),

/***/ "./src/app/pages/cadastro/destinatario/destinatario-form/destinatario-form.component.ts":
/*!**********************************************************************************************!*\
  !*** ./src/app/pages/cadastro/destinatario/destinatario-form/destinatario-form.component.ts ***!
  \**********************************************************************************************/
/*! exports provided: DestinatarioFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DestinatarioFormComponent", function() { return DestinatarioFormComponent; });
/* 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_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! app/shared/services/funcoes/configuracao/configuracao.facade */ "./src/app/shared/services/funcoes/configuracao/configuracao.facade.ts");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js");
/* harmony import */ var _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/services/event-emitter/event-emitter.service */ "./src/app/shared/services/event-emitter/event-emitter.service.ts");
/* harmony import */ var _shared_services_funcoes_cpf_cnpj_cpf_cnpj_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/services/funcoes/cpf-cnpj/cpf-cnpj.service */ "./src/app/shared/services/funcoes/cpf-cnpj/cpf-cnpj.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _tipo_de_destinatario_tipo_de_destinatario_model__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../tipo-de-destinatario/tipo-de-destinatario.model */ "./src/app/pages/cadastro/tipo-de-destinatario/tipo-de-destinatario.model.ts");
/* harmony import */ var _tipo_de_destinatario_tipo_de_destinatario_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../tipo-de-destinatario/tipo-de-destinatario.service */ "./src/app/pages/cadastro/tipo-de-destinatario/tipo-de-destinatario.service.ts");
/* harmony import */ var _destinatario_constants__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../destinatario.constants */ "./src/app/pages/cadastro/destinatario/destinatario.constants.ts");
/* harmony import */ var _destinatario_model__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../destinatario.model */ "./src/app/pages/cadastro/destinatario/destinatario.model.ts");
/* harmony import */ var _destinatario_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../destinatario.service */ "./src/app/pages/cadastro/destinatario/destinatario.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};
















var DestinatarioFormComponent = /** @class */ (function (_super) {
    __extends(DestinatarioFormComponent, _super);
    function DestinatarioFormComponent(router, loginService, messageService, activatedRoute, service, funcoesService, permissoesUtils, tipoDestinatarioService, cpfCnpjService, configuracao) {
        var _this = _super.call(this, new _destinatario_constants__WEBPACK_IMPORTED_MODULE_13__["DestinatarioConstants"](), funcoesService) || this;
        _this.router = router;
        _this.loginService = loginService;
        _this.messageService = messageService;
        _this.activatedRoute = activatedRoute;
        _this.service = service;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.tipoDestinatarioService = tipoDestinatarioService;
        _this.cpfCnpjService = cpfCnpjService;
        _this.configuracao = configuracao;
        _this.data = new _destinatario_model__WEBPACK_IMPORTED_MODULE_14__["Destinatario"]();
        _this.mensagens = [];
        _this.constantes = new _destinatario_constants__WEBPACK_IMPORTED_MODULE_13__["DestinatarioConstants"]();
        _this.tipoConta = new _destinatario_model__WEBPACK_IMPORTED_MODULE_14__["TipoConta"]();
        _this.sexo = new _destinatario_model__WEBPACK_IMPORTED_MODULE_14__["Sexo"]();
        _this.estadoCivil = new _destinatario_model__WEBPACK_IMPORTED_MODULE_14__["EstadoCivil"]();
        _this.dados = [];
        _this.entrega = [];
        _this.contato = [];
        _this.depositos = [];
        _this.vendedores = [];
        _this.tiposDeDestinatario = [];
        _this.tipoDeDestinatario = new _tipo_de_destinatario_tipo_de_destinatario_model__WEBPACK_IMPORTED_MODULE_11__["TipoDeDestinatario"]();
        _this.isDadosCon = false;
        _this.isDadosFat = false;
        _this.isDadosFor = false;
        _this.isDadosRep = false;
        _this.isDadosDep = false;
        _this.isDadosSto = false;
        _this.isDadosProf = false;
        _this.isDeposito = false;
        _this.isRequiredEndereco = false;
        _this.isRequiredCep = false;
        _this.isRequiredMunicipio = false;
        _this.isRequiredCgcCpf = false;
        _this.isRequiredInscricao = false;
        _this.isRequiredTelefone = false;
        _this.isRequiredTabPreco = false;
        _this.isRequiredRamoCli = false;
        _this.isRequiredOrigemCli = false;
        _this.isRequiredCondPagCli = false;
        _this.isRequiredCConta = false;
        _this.isRequiredComplEndereco = false;
        _this.isRequiredBairro = false;
        _this.isRequiredEmail = false;
        _this.isRequiredCodGrupo = false;
        _this.isTabContatos = true;
        _this.isTabFatura = true;
        _this.isTabEntrega = true;
        _this.isTabStorage = true;
        _this.isTabFornecedor = true;
        _this.isTabProfissional = true;
        _this.isDisabledRamoFor = true;
        _this.isDisabledSitFor = true;
        _this.isDisabledCondPagFor = true;
        _this.isDisabledSupervisor = true;
        _this.isDisabledRegiao = true;
        _this.isDisabledComissao = true;
        _this.isDisabledCadRegiao = true;
        _this.isDisabledDeposito = true;
        _this.isDisabledContribuinte = true;
        _this.isDisabled = false;
        _this.flagContribuinte = true;
        _this.obInscricao = false;
        _this.flagInscrEstatual = true;
        _this.target = _this.funcoesService.getTargetLocation();
        _this.loadConfig = function () {
            if (_this.configuracao.isLoadConfig()) {
                _this.flagContribuinte = _this.configuracao.lerConfig("UNI", "FlagContribuinte") === "S" ? true : false;
                _this.flagInscrEstatual = _this.configuracao.lerConfig("UNI", "FlagInscrEstatual") === "S" ? true : false;
            }
        };
        _this.vrfPendencia = function () {
            if (!!(_this.data.destinatarioId)) {
                _this.messageService.confirm("titles.verificaPendencia", "messages.verificaPendenciaTercConfirm", null, function () { return _this.service.verificaPendencia(+_this.data.destinatarioId)
                    .subscribe(function (result) {
                    if (result.validationResult != null && !result.validationResult.isValid) {
                        _this.messageService.error("titles.verificaPendencia", result.validationResult.erros[0].message);
                    }
                    else {
                        _this.messageService.success("titles.verificaPendencia", "messages.verificaPendenciaTercComSucesso");
                    }
                }); }, false);
            }
            ;
        };
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    DestinatarioFormComponent.prototype.ngOnInit = function () {
        return __awaiter(this, void 0, void 0, function () {
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0: return [4 /*yield*/, this.service.loadPermissoes()];
                    case 1:
                        _a.sent();
                        this.configuracao.getConfig(this.constantes.parametrosConfig, this.loadConfig);
                        Object(rxjs__WEBPACK_IMPORTED_MODULE_3__["forkJoin"])([
                            this.service.carregaComboDeDeposito(),
                            this.service.carregaComboDeVendas(),
                            this.tipoDestinatarioService.get()
                        ]).subscribe(function (data) {
                            _this.depositos = data[0];
                            _this.vendedores = data[1];
                            _this.tiposDeDestinatario = data[2];
                        });
                        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, this.permissoesUtils.getLibRotina(this.actionForm), function () { return __awaiter(_this, void 0, void 0, function () {
                            var id, flagIntegracao, _a;
                            var _this = this;
                            return __generator(this, function (_b) {
                                switch (_b.label) {
                                    case 0:
                                        id = this.activatedRoute.snapshot.paramMap.get("id");
                                        flagIntegracao = this.activatedRoute.snapshot.paramMap.get("flagIntegracao");
                                        if (!id) return [3 /*break*/, 2];
                                        return [4 /*yield*/, this.service.getById(id).subscribe(function (resp) {
                                                if (!!flagIntegracao && flagIntegracao === "P") {
                                                    resp.flagIntegracao = flagIntegracao;
                                                }
                                                _this.data = resp;
                                                _this.data.contribuinte = _this.data.contribuinte === 'S' ? 'S' : 'N';
                                                _this.requiredInscricaoEstadual();
                                                if (_this.funcoesService.isNotUndefinedOrNull(resp.dadosFisica)) {
                                                    _this.data.dtNasc = resp.dadosFisica.dtNasc;
                                                    _this.data.sexo = resp.dadosFisica.sexo;
                                                    _this.data.estadoCivil = resp.dadosFisica.estadoCivil;
                                                    if (_this.data.semanaVencto !== "") {
                                                        var campos = _this.data.semanaVencto.split('');
                                                        campos.forEach(function (e) {
                                                            var i = _this.constantes.diasSemana.findIndex(function (x) { return x.id === parseInt(e, 0); });
                                                            _this.constantes.diasSemana[i].checked = true;
                                                        });
                                                    }
                                                }
                                                if (!!_this.data.tipoDeDestinatarioId) {
                                                    _this.tipoDestinatarioService.getById(_this.data.tipoDeDestinatarioId).subscribe(function (resp) {
                                                        _this.tipoDeDestinatario = resp;
                                                    });
                                                }
                                                _this.trataTipoDest();
                                                _this.data.obrigaInscricao = _this.isRequiredInscricao ? "S" : "N";
                                            })];
                                    case 1:
                                        _b.sent();
                                        return [3 /*break*/, 4];
                                    case 2:
                                        _a = this;
                                        return [4 /*yield*/, new _destinatario_model__WEBPACK_IMPORTED_MODULE_14__["Destinatario"]()];
                                    case 3:
                                        _a.data = _b.sent();
                                        this.data.contribuinte = 'N';
                                        this.isRequiredInscricao = false;
                                        this.isDisabledContribuinte = false;
                                        this.requiredInscricaoEstadual();
                                        this.getCamposAdicionais();
                                        _b.label = 4;
                                    case 4: return [2 /*return*/];
                                }
                            });
                        }); }, function () {
                            _this.permissoesUtils.back();
                        });
                        _super.prototype.addFuncoes.call(this, [
                            { action: 'vrfPendencia', func: function () { return _this.vrfPendencia; } }
                        ]);
                        if (!this.service.validaSePodeAlterarFornecedor(this.data.tipoDeDestinatarioId))
                            return [2 /*return*/];
                        return [2 /*return*/];
                }
            });
        });
    };
    DestinatarioFormComponent.prototype.onSubmit = function (form, create) {
        var _this = this;
        if (create === void 0) { create = false; }
        _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_5__["EventEmitterService"].get("formError").emit(form);
        if (form.invalid) {
            this.funcoesService.backToTop();
            return;
        }
        if (this.funcoesService.isNotUndefinedOrNull(this.data.cgcCpf)) {
            if (!this.validaCpfCnpj()) {
                return;
            }
        }
        if (!this.service.validaSePodeAlterarFornecedor(this.data.tipoDeDestinatarioId))
            return;
        this.data.obrigaInscricao = this.isRequiredInscricao ? "S" : "N";
        this.data.logRotina = "Manutenção Destinatario";
        if ((this.data.entregas !== undefined) && (this.data.entregas !== null)) {
            this.data.entregas.forEach(function (item) {
                item.destinatarioId = _this.data.destinatarioId;
            });
        }
        if ((this.data.contatos !== undefined) && (this.data.contatos !== null)) {
            this.data.contatos.forEach(function (item) {
                item.destinatarioId = _this.data.destinatarioId;
            });
        }
        this.data.semanaVencto = "";
        this.constantes.diasSemana.forEach(function (i) {
            _this.data.semanaVencto += (i.checked ? i.id : "");
        });
        this.service
            .save(this.data, this.funcoesService.isEdit(this.actionForm))
            .subscribe(function (result) {
            _this.mensagens = _this.messageService.validationResult(result.validationResult);
            if (!result.validationResult.isValid) {
                _shared_services_event_emitter_event_emitter_service__WEBPACK_IMPORTED_MODULE_5__["EventEmitterService"].get("backError").emit(_this.mensagens);
                _this.funcoesService.backToTop();
            }
            else {
                _this.messageService.saveSuccess("titles.destinatario");
                if (create) {
                    _this.data = new _destinatario_model__WEBPACK_IMPORTED_MODULE_14__["Destinatario"]();
                    _this.router.navigate([_this.target + "/cadastro/destinatario/create"]);
                }
                else {
                    _this.back();
                }
            }
        });
    };
    DestinatarioFormComponent.prototype.edit = function () {
        if (!!(this.data.destinatarioId)) {
            if (!this.service.validaSePodeAlterarFornecedor(this.data.tipoDeDestinatarioId))
                return;
            this.router.navigate([this.target + "/cadastro/destinatario/edit/" + this.data.destinatarioId]);
            this.service.filtro.mostrarFiltro = false;
        }
    };
    DestinatarioFormComponent.prototype.tartaPermissao = function (permite) {
        return permite;
    };
    DestinatarioFormComponent.prototype.isPerEspeciaisFornecedorEditarIncluir = function () {
        if (!this.service.validaSePodeAlterarFornecedor(this.data.tipoDeDestinatarioId))
            this.data.tipoDeDestinatarioId = "";
    };
    DestinatarioFormComponent.prototype.isPerEspeciaisEditar = function () {
        var login = this.loginService.getLogin();
        if (login.supervisor === "S") {
            return false;
        }
        else {
            return (this.funcoesService.isEdit(this.actionForm)) ? true : false;
        }
    };
    DestinatarioFormComponent.prototype.back = function () {
        this.router.navigate([this.target + "/cadastro/destinatario"]);
    };
    DestinatarioFormComponent.prototype.saveAndCreate = function (form) {
        this.onSubmit(form, true);
    };
    DestinatarioFormComponent.prototype.getCamposAdicionais = function () {
        var _this = this;
        this.funcoesService.camposAdicionais
            .get(this.constantes.sisFormularioId)
            .subscribe(function (data) {
            _this.data.sisCampoAdds = data;
        });
    };
    DestinatarioFormComponent.prototype.refreshItens = function (event) {
        this.data.contatoId = event;
        this.data.contatos = this.data.contatoId;
    };
    DestinatarioFormComponent.prototype.refreshEndereco = function (event) {
        this.data.enderecoEntregaId = event;
        this.data.entregas = this.data.enderecoEntregaId;
    };
    DestinatarioFormComponent.prototype.trataTipoDest = function () {
        var _this = this;
        if (this.data.tipoDeDestinatarioId == "" || this.data.tipoDeDestinatarioId == null) {
            return;
        }
        var td = this.tiposDeDestinatario.find(function (c) { return c.tipoDeDestinatarioId === _this.data.tipoDeDestinatarioId; });
        this.tipoDeDestinatario.descrTipoDest = td.descrTipoDest;
        this.isDadosCon = td.flagCon === 'S';
        this.isDadosFat = td.flagCli === 'S';
        this.isDadosFor = td.flagFor === 'S';
        this.isDadosRep = td.flagRep === 'S';
        this.isDadosDep = td.flagDep === 'S';
        this.isDadosSto = td.flagSto === 'S';
        this.isDadosProf = td.flagProf === 'S';
        this.isDeposito = this.isDadosDep;
        this.isRequiredEndereco = td.campos.indexOf('01') > -1;
        this.isRequiredCep = td.campos.indexOf('02') > -1;
        this.isRequiredMunicipio = td.campos.indexOf('03') > -1;
        this.isRequiredCgcCpf = ((td.campos.indexOf('04') > -1) && (this.data.tipoDestino !== "2"));
        this.isRequiredInscricao = td.campos.indexOf('05') > -1;
        this.obInscricao = td.campos.indexOf('05') > -1;
        this.isRequiredTelefone = td.campos.indexOf('06') > -1;
        this.isRequiredTabPreco = td.campos.indexOf('07') > -1;
        this.isRequiredRamoCli = td.campos.indexOf('08') > -1;
        this.isRequiredOrigemCli = td.campos.indexOf('09') > -1;
        this.isRequiredCondPagCli = td.campos.indexOf('10') > -1;
        this.isRequiredCConta = td.campos.indexOf('11') > -1;
        this.isRequiredComplEndereco = td.campos.indexOf('12') > -1;
        this.isRequiredBairro = td.campos.indexOf('13') > -1;
        this.isRequiredEmail = td.campos.indexOf('14') > -1;
        this.isRequiredCodGrupo = td.campos.indexOf('15') > -1;
        // this.isTabContatos = this.isDadosCon;
        // this.isTabFatura = this.isDadosFat;
        // this.isTabEntrega = this.isDadosFat;
        // this.isTabStorage = this.isDadosSto;
        // this.isTabProfissional = this.isDadosProf;
        // this.isTabFornecedor = this.isDadosFor;
        this.isDisabledRamoFor = this.isDadosFor;
        this.isDisabledSitFor = this.isDadosFor;
        this.isDisabledCondPagFor = this.isDadosFor;
        this.isDisabledSupervisor = this.isDadosRep;
        this.isDisabledRegiao = this.isDadosRep;
        this.isDisabledComissao = this.isDadosRep;
        this.isDisabledCadRegiao = this.isDadosRep;
        this.isDisabledDeposito = this.isDadosDep;
        this.requiredInscricaoEstadual();
    };
    DestinatarioFormComponent.prototype.validaCpfCnpj = function () {
        var cgcCpf = this.data.cgcCpf.replace(/[^a-zA-Z0-9]/g, '');
        if (cgcCpf.trim() !== "") {
            var valid = this.cpfCnpjService.valida_cpf_cnpj(cgcCpf);
            if (!valid) {
                this.messageService.warning("titles.destinatario", "messages.cpfCnpjInvalido");
                return false;
            }
        }
        return true;
    };
    DestinatarioFormComponent.prototype.showRazao = function () {
        if (this.data.tipoPessoa === "J") {
            return true;
        }
        else {
            if (this.data.tipoDestino === "2") {
                return true;
            }
            else {
                return false;
            }
        }
    };
    DestinatarioFormComponent.prototype.validaInscricaoEstadual = function () {
        var _this = this;
        if (this.flagInscrEstatual && (!!this.data.inscricao) && (!!this.data.estadoId) && this.isRequiredInscricao) {
            this.service.validaInscricaoEstadual({
                "estadoId": this.data.estadoId,
                "inscrEstadual": this.data.inscricao
            })
                .subscribe(function (result) {
                if (!result.isValid) {
                    _this.messageService.error("titles.verificaPendencia", result.erros[0].message);
                }
            });
        }
    };
    DestinatarioFormComponent.prototype.requiredInscricaoEstadual = function () {
        if (this.data.tipoPessoa === "J") {
            if (this.data.contribuinte !== 'S' && this.data.contribuinte !== 'N') {
                this.data.contribuinte = 'N';
            }
            this.isDisabledContribuinte = false;
        }
        else {
            this.data.contribuinte = "N";
            this.isDisabledContribuinte = true;
            this.isRequiredInscricao = false;
        }
        if ((this.data.estadoId === "EX") || (this.data.tipoDestino === "2")) {
            this.isRequiredInscricao = false;
            this.data.estadoId = "EX";
        }
        if (((this.data.tipoPessoa == "J") && (this.data.tipoDestino !== "2")) ||
            ((this.data.tipoPessoa == "F") && (this.data.tipoDestino === "4"))) {
            this.isRequiredInscricao =
                this.obInscricao &&
                    this.data.estadoId !== "EX" &&
                    this.data.contribuinte === "S";
            if ((this.data.tipoPessoa === "J") && (this.flagContribuinte) &&
                (this.data.tipoDestino !== "4")) {
                this.isDisabledContribuinte = true;
            }
            else {
                this.isDisabledContribuinte = false;
            }
            if (this.data.tipoDestino === "4") {
                this.data.contribuinte = "S";
                this.isDisabledContribuinte = true;
                this.isRequiredInscricao = this.obInscricao && this.data.estadoId !== "EX";
            }
        }
        if (this.data.contribuinte !== 'S') {
            this.isRequiredInscricao = false;
        }
    };
    DestinatarioFormComponent.prototype.toggleInscricaoRequired = function () {
        if (this.data.contribuinte === 'S') {
            this.isRequiredInscricao = true;
        }
        else {
            this.isRequiredInscricao = false;
        }
    };
    Object.defineProperty(DestinatarioFormComponent.prototype, "contribuinteChecked", {
        get: function () {
            return this.data.contribuinte === 'S';
        },
        set: function (value) {
            this.data.contribuinte = value ? 'S' : 'N';
            this.requiredInscricaoEstadual();
        },
        enumerable: true,
        configurable: true
    });
    DestinatarioFormComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_10__["LoginService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_9__["MessageService"] },
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"] },
        { type: _destinatario_service__WEBPACK_IMPORTED_MODULE_15__["DestinatarioService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_7__["FuncoesService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__["PermissoesUtilsService"] },
        { type: _tipo_de_destinatario_tipo_de_destinatario_service__WEBPACK_IMPORTED_MODULE_12__["TipoDeDestinatarioService"] },
        { type: _shared_services_funcoes_cpf_cnpj_cpf_cnpj_service__WEBPACK_IMPORTED_MODULE_6__["CpfCnpjService"] },
        { type: app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_2__["ConfiguracaoFacade"] }
    ]; };
    DestinatarioFormComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-destinatario-form",
            template: __importDefault(__webpack_require__(/*! raw-loader!./destinatario-form.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/destinatario/destinatario-form/destinatario-form.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_10__["LoginService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_9__["MessageService"],
            _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"],
            _destinatario_service__WEBPACK_IMPORTED_MODULE_15__["DestinatarioService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_7__["FuncoesService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_8__["PermissoesUtilsService"],
            _tipo_de_destinatario_tipo_de_destinatario_service__WEBPACK_IMPORTED_MODULE_12__["TipoDeDestinatarioService"],
            _shared_services_funcoes_cpf_cnpj_cpf_cnpj_service__WEBPACK_IMPORTED_MODULE_6__["CpfCnpjService"],
            app_shared_services_funcoes_configuracao_configuracao_facade__WEBPACK_IMPORTED_MODULE_2__["ConfiguracaoFacade"]])
    ], DestinatarioFormComponent);
    return DestinatarioFormComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_4__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/cadastro/destinatario/destinatario-index/destinatario-index.component.ts":
/*!************************************************************************************************!*\
  !*** ./src/app/pages/cadastro/destinatario/destinatario-index/destinatario-index.component.ts ***!
  \************************************************************************************************/
/*! exports provided: DestinatarioIndexComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DestinatarioIndexComponent", function() { return DestinatarioIndexComponent; });
/* 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 _shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/components/corporate/base/base.permissoes */ "./src/app/shared/components/corporate/base/base.permissoes.ts");
/* harmony import */ var _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/services/datatables/datatables.service */ "./src/app/shared/services/datatables/datatables.service.ts");
/* harmony import */ var _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../shared/services/funcoes/funcoes.service */ "./src/app/shared/services/funcoes/funcoes.service.ts");
/* harmony import */ var _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/services/funcoes/permissoes-utils/permissoes-utils.service */ "./src/app/shared/services/funcoes/permissoes-utils/permissoes-utils.service.ts");
/* harmony import */ var _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/services/message/message.service */ "./src/app/shared/services/message/message.service.ts");
/* harmony import */ var _login_login_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../login/login.service */ "./src/app/pages/login/login.service.ts");
/* harmony import */ var _destinatario_filter_destinatario_filter_model__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../destinatario-filter/destinatario-filter.model */ "./src/app/pages/cadastro/destinatario/destinatario-filter/destinatario-filter.model.ts");
/* harmony import */ var _destinatario_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../destinatario.constants */ "./src/app/pages/cadastro/destinatario/destinatario.constants.ts");
/* harmony import */ var _destinatario_model__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../destinatario.model */ "./src/app/pages/cadastro/destinatario/destinatario.model.ts");
/* harmony import */ var _destinatario_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../destinatario.service */ "./src/app/pages/cadastro/destinatario/destinatario.service.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};












var DestinatarioIndexComponent = /** @class */ (function (_super) {
    __extends(DestinatarioIndexComponent, _super);
    function DestinatarioIndexComponent(router, loginService, service, datatablesService, messageService, funcoesService, permissoesUtils) {
        var _this = _super.call(this, new _destinatario_constants__WEBPACK_IMPORTED_MODULE_9__["DestinatarioConstants"](), funcoesService) || this;
        _this.router = router;
        _this.loginService = loginService;
        _this.service = service;
        _this.datatablesService = datatablesService;
        _this.messageService = messageService;
        _this.funcoesService = funcoesService;
        _this.permissoesUtils = permissoesUtils;
        _this.data = new _destinatario_model__WEBPACK_IMPORTED_MODULE_10__["Destinatario"]();
        _this.target = _this.funcoesService.getTargetLocation();
        router.events.subscribe(function (event) {
            var params = _this.funcoesService.formParams.getParams(router, event);
            if (params) {
                _this.actionForm = params.action;
            }
        });
        return _this;
    }
    DestinatarioIndexComponent.prototype.ngOnInit = function () {
        return __awaiter(this, void 0, void 0, function () {
            var _this = this;
            return __generator(this, function (_a) {
                switch (_a.label) {
                    case 0:
                        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 4, function () {
                            if (_this.funcoesService.abrirFiltro) {
                                _this.service.filtro = new _destinatario_filter_destinatario_filter_model__WEBPACK_IMPORTED_MODULE_8__["DestinatarioFilter"]();
                                _this.filtrar();
                            }
                            else {
                                _this.refresh();
                            }
                        }, function () { return _this.permissoesUtils.back(); }, true);
                        _super.prototype.addFuncoes.call(this, [
                            { action: 'pendencias', func: function () { return _this.detailVrfPendencia(); } }
                        ]);
                        return [4 /*yield*/, this.service.loadPermissoes()];
                    case 1:
                        _a.sent();
                        return [2 /*return*/];
                }
            });
        });
    };
    DestinatarioIndexComponent.prototype.create = function () {
        this.router.navigate([this.target + "/cadastro/destinatario/create"]);
    };
    DestinatarioIndexComponent.prototype.refresh = function () {
        var _this = this;
        this.service.getByFiltro(this.service.filtro).subscribe(function (resp) {
            var columns = [
                {
                    data: "descrTipoDest",
                    title: _this.messageService.getTranslates("labels", "descrTipoDest")
                },
                {
                    data: "destinatarioId",
                    title: _this.messageService.getTranslates("labels", "codigo")
                },
                {
                    data: "fantasia",
                    title: _this.messageService.getTranslates("labels", "fantasia")
                },
                {
                    data: "razaoSocial",
                    title: _this.messageService.getTranslates("labels", "razaoSocial")
                },
                {
                    data: "cgcCpfFormatado",
                    title: _this.messageService.getTranslates("labels", "cgcCpf")
                }
            ];
            _this.datatablesService.datatable("dtDestinatario", columns, resp, function (aData) {
                _this.data = aData;
            });
        });
    };
    DestinatarioIndexComponent.prototype.filtrar = function () {
        if (this.service.filtro.mostrarFiltro) {
            jQuery("#dest-filter-dialog").modal("show");
        }
        else {
            this.refresh();
            this.service.filtro.mostrarFiltro = true;
        }
    };
    DestinatarioIndexComponent.prototype.executaFiltro = function (event) {
        this.refresh();
    };
    DestinatarioIndexComponent.prototype.edit = function () {
        if (!!(this.data.destinatarioId)) {
            if (!this.service.validaSePodeAlterarFornecedor(this.data.tipoDeDestinatarioId))
                return;
            this.router.navigate([this.target + "/cadastro/destinatario/edit/" + this.data.destinatarioId]);
            this.service.filtro.mostrarFiltro = false;
        }
    };
    DestinatarioIndexComponent.prototype.detail = function () {
        if (!!(this.data.destinatarioId)) {
            this.router.navigate([this.target + "/cadastro/destinatario", "detail", this.data.destinatarioId]);
            this.service.filtro.mostrarFiltro = false;
        }
    };
    DestinatarioIndexComponent.prototype.properties = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 6, function () {
            _super.prototype.properties.call(_this, _this.data);
        });
    };
    DestinatarioIndexComponent.prototype.permissoes = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 7, function () {
            _super.prototype.permissoes.call(_this, _this.constantes);
        });
    };
    DestinatarioIndexComponent.prototype.remove = function () {
        var _this = this;
        this.service.filtro.mostrarFiltro = true;
        if (!this.funcoesService.isNotUndefinedOrNull(this.data.tipoPessoa)) {
            this.data.tipoPessoa = "J";
        }
        if (!!(this.data.destinatarioId)) {
            this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 3, function () {
                _this.messageService.removeConfirm(function () {
                    _this.service.remove(_this.data).subscribe(function () {
                        _this.datatablesService.remove("dtDestinatario");
                    });
                });
            });
        }
    };
    DestinatarioIndexComponent.prototype.print = function () {
        var _this = this;
        this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 5, function () {
            _this.constantes.paramRelatorio = {
                ate: _this.service.filtro.ate,
                de: _this.service.filtro.de,
                flagAtivo: _this.service.filtro.flagAtivo,
                tiposDeTerceiros: _this.service.filtro.tiposDeTerceiros,
            };
            _super.prototype.print.call(_this);
        });
    };
    DestinatarioIndexComponent.prototype.detailVrfPendencia = function () {
        var _this = this;
        if (!!(this.data.destinatarioId)) {
            this.permissoesUtils.verificaRotina(this.constantes.sisFormularioId, 11, function () {
                var messagem = _this.messageService.getTranslates("messages", "confirmaValPendTodosVeicTransportadora") + " " + _this.data.razaoSocial;
                _this.messageService.confirm("titles.verificaPendencia", messagem, null, function () { return _this.service.verificaPendencia(+_this.data.destinatarioId)
                    .subscribe(function (result) {
                    if (result.validationResult != null && !result.validationResult.isValid) {
                        _this.messageService.error("titles.verificaPendencia", result.validationResult.erros[0].message);
                    }
                    else {
                        _this.messageService.success("titles.verificaPendencia", "messages.verificaPendenciaTercComSucesso");
                    }
                }); }, false);
            });
        }
        ;
    };
    DestinatarioIndexComponent.ctorParameters = function () { return [
        { type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] },
        { type: _login_login_service__WEBPACK_IMPORTED_MODULE_7__["LoginService"] },
        { type: _destinatario_service__WEBPACK_IMPORTED_MODULE_11__["DestinatarioService"] },
        { type: _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"] },
        { type: _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"] },
        { type: _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"] },
        { type: _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__["PermissoesUtilsService"] }
    ]; };
    DestinatarioIndexComponent = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
            selector: "app-destinatario-index",
            template: __importDefault(__webpack_require__(/*! raw-loader!./destinatario-index.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/cadastro/destinatario/destinatario-index/destinatario-index.component.html")).default,
            encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
        }),
        __metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"],
            _login_login_service__WEBPACK_IMPORTED_MODULE_7__["LoginService"],
            _destinatario_service__WEBPACK_IMPORTED_MODULE_11__["DestinatarioService"],
            _shared_services_datatables_datatables_service__WEBPACK_IMPORTED_MODULE_3__["DatatablesService"],
            _shared_services_message_message_service__WEBPACK_IMPORTED_MODULE_6__["MessageService"],
            _shared_services_funcoes_funcoes_service__WEBPACK_IMPORTED_MODULE_4__["FuncoesService"],
            _shared_services_funcoes_permissoes_utils_permissoes_utils_service__WEBPACK_IMPORTED_MODULE_5__["PermissoesUtilsService"]])
    ], DestinatarioIndexComponent);
    return DestinatarioIndexComponent;
}(_shared_components_corporate_base_base_permissoes__WEBPACK_IMPORTED_MODULE_2__["BasePermissoes"]));



/***/ }),

/***/ "./src/app/pages/cadastro/destinatario/destinatario.module.ts":
/*!********************************************************************!*\
  !*** ./src/app/pages/cadastro/destinatario/destinatario.module.ts ***!
  \********************************************************************/
/*! exports provided: DestinatarioModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DestinatarioModule", function() { return DestinatarioModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../shared/shared.module */ "./src/app/shared/shared.module.ts");
/* harmony import */ var _destinatario_contato_destinatario_contato_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./destinatario-contato/destinatario-contato.component */ "./src/app/pages/cadastro/destinatario/destinatario-contato/destinatario-contato.component.ts");
/* harmony import */ var _destinatario_index_destinatario_index_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./destinatario-index/destinatario-index.component */ "./src/app/pages/cadastro/destinatario/destinatario-index/destinatario-index.component.ts");
/* harmony import */ var _destinatario_form_destinatario_form_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./destinatario-form/destinatario-form.component */ "./src/app/pages/cadastro/destinatario/destinatario-form/destinatario-form.component.ts");
/* harmony import */ var _destinatario_routing_module__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./destinatario.routing.module */ "./src/app/pages/cadastro/destinatario/destinatario.routing.module.ts");
/* harmony import */ var _destinatario_filter_destinatario_filter_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./destinatario-filter/destinatario-filter.component */ "./src/app/pages/cadastro/destinatario/destinatario-filter/destinatario-filter.component.ts");
/* harmony import */ var _destinatario_entrega_destinatario_entrega_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./destinatario-entrega/destinatario-entrega.component */ "./src/app/pages/cadastro/destinatario/destinatario-entrega/destinatario-entrega.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 DestinatarioModule = /** @class */ (function () {
    function DestinatarioModule() {
    }
    DestinatarioModule = __decorate([
        Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
            imports: [_shared_shared_module__WEBPACK_IMPORTED_MODULE_1__["SharedModule"], _destinatario_routing_module__WEBPACK_IMPORTED_MODULE_5__["DestinatarioRoutingModule"]],
            declarations: [
                _destinatario_index_destinatario_index_component__WEBPACK_IMPORTED_MODULE_3__["DestinatarioIndexComponent"],
                _destinatario_form_destinatario_form_component__WEBPACK_IMPORTED_MODULE_4__["DestinatarioFormComponent"],
                _destinatario_contato_destinatario_contato_component__WEBPACK_IMPORTED_MODULE_2__["DestinatarioContatoComponent"],
                _destinatario_entrega_destinatario_entrega_component__WEBPACK_IMPORTED_MODULE_7__["DestinatarioEnderecoEntregaComponent"],
                _destinatario_filter_destinatario_filter_component__WEBPACK_IMPORTED_MODULE_6__["DestinatarioFilterComponent"]
            ]
        })
    ], DestinatarioModule);
    return DestinatarioModule;
}());



/***/ }),

/***/ "./src/app/pages/cadastro/destinatario/destinatario.routing.module.ts":
/*!****************************************************************************!*\
  !*** ./src/app/pages/cadastro/destinatario/destinatario.routing.module.ts ***!
  \****************************************************************************/
/*! exports provided: DestinatarioRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DestinatarioRoutingModule", function() { return DestinatarioRoutingModule; });
/* 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 _destinatario_index_destinatario_index_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./destinatario-index/destinatario-index.component */ "./src/app/pages/cadastro/destinatario/destinatario-index/destinatario-index.component.ts");
/* harmony import */ var _destinatario_form_destinatario_form_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./destinatario-form/destinatario-form.component */ "./src/app/pages/cadastro/destinatario/destinatario-form/destinatario-form.component.ts");
/* harmony import */ var _config_enumerables__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../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 __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};





var MRoutes = [
    {
        path: "",
        component: _destinatario_index_destinatario_index_component__WEBPACK_IMPORTED_MODULE_2__["DestinatarioIndexComponent"],
        data: { breadcrumb: "Terceiros", formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_4__["ActionForm"].index } }
    },
    {
        path: "create",
        component: _destinatario_form_destinatario_form_component__WEBPACK_IMPORTED_MODULE_3__["DestinatarioFormComponent"],
        data: {
            breadcrumb: "Terceiros",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_4__["ActionForm"].create }
        }
    },
    {
        path: "edit/:id",
        component: _destinatario_form_destinatario_form_component__WEBPACK_IMPORTED_MODULE_3__["DestinatarioFormComponent"],
        data: {
            breadcrumb: "Terceiros",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_4__["ActionForm"].edit }
        }
    },
    {
        path: "edit/:id/:flagIntegracao",
        component: _destinatario_form_destinatario_form_component__WEBPACK_IMPORTED_MODULE_3__["DestinatarioFormComponent"],
        data: {
            breadcrumb: "Terceiros",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_4__["ActionForm"].edit }
        }
    },
    {
        path: "detail/:id",
        component: _destinatario_form_destinatario_form_component__WEBPACK_IMPORTED_MODULE_3__["DestinatarioFormComponent"],
        data: {
            breadcrumb: "Terceiros",
            formParams: { action: _config_enumerables__WEBPACK_IMPORTED_MODULE_4__["ActionForm"].detail }
        }
    }
];
var DestinatarioRoutingModule = /** @class */ (function () {
    function DestinatarioRoutingModule() {
    }
    DestinatarioRoutingModule = __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"]],
        })
    ], DestinatarioRoutingModule);
    return DestinatarioRoutingModule;
}());



/***/ }),

/***/ "./src/app/pages/cadastro/endereco-entrega/endereco-entrega.model.ts":
/*!***************************************************************************!*\
  !*** ./src/app/pages/cadastro/endereco-entrega/endereco-entrega.model.ts ***!
  \***************************************************************************/
/*! exports provided: EnderecoEntrega */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EnderecoEntrega", function() { return EnderecoEntrega; });
/* harmony import */ var _shared_services_base_base_model__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../shared/services/base/base.model */ "./src/app/shared/services/base/base.model.ts");
var __extends = (undefined && undefined.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __importDefault = (undefined && undefined.__importDefault) || function (mod) {
  return (mod && mod.__esModule) ? mod : { "default": mod };
};

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



/***/ }),

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

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


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



/***/ })

}]);
//# sourceMappingURL=app-pages-cadastro-destinatario-destinatario-module.js.map