exports.ids = [39];
exports.modules = {

/***/ "1zrV":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);

// EXTERNAL MODULE: ./node_modules/@angular/core/fesm2015/core.js
var core = __webpack_require__("8Y7J");

// CONCATENATED MODULE: ./src/app/pages/reports/order-history/order-history.module.ts
class OrderHistoryModule {
}

// EXTERNAL MODULE: ./node_modules/@fortawesome/angular-fontawesome/angular-fontawesome.ngfactory.js
var angular_fontawesome_ngfactory = __webpack_require__("fNgX");

// EXTERNAL MODULE: ./node_modules/@angular/router/router.ngfactory.js
var router_ngfactory = __webpack_require__("pMnS");

// EXTERNAL MODULE: ./node_modules/@nebular/theme/index.ngfactory.js
var index_ngfactory = __webpack_require__("jXVt");

// CONCATENATED MODULE: ./src/app/pages/reports/order-history/order-history-list/order-history-list.component.scss.shim.ngstyle.js
/**
 * @fileoverview This file was generated by the Angular template compiler. Do not edit.
 *
 * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes}
 * tslint:disable
 */ 
var styles = ["@media only screen and (min-width:1024px) and (max-width:1279px){td[_ngcontent-%COMP%]{font-size:10px}.details[_ngcontent-%COMP%]{font-size:12px!important}}td[_ngcontent-%COMP%]{padding-bottom:1px!important;padding-top:1px!important}"];


// EXTERNAL MODULE: ./src/app/shared/ui/datagrid/pagination/pagination.component.ngfactory.js + 1 modules
var pagination_component_ngfactory = __webpack_require__("tHyn");

// EXTERNAL MODULE: ./src/app/shared/ui/datagrid/pagination/pagination.component.ts
var pagination_component = __webpack_require__("HJd8");

// EXTERNAL MODULE: ./node_modules/@nebular/theme/fesm2015/index.js + 5 modules
var fesm2015 = __webpack_require__("tKwJ");

// EXTERNAL MODULE: ./node_modules/@fortawesome/angular-fontawesome/fesm2015/angular-fontawesome.js
var angular_fontawesome = __webpack_require__("Nv++");

// EXTERNAL MODULE: ./node_modules/@angular/platform-browser/fesm2015/platform-browser.js
var platform_browser = __webpack_require__("cUpR");

// EXTERNAL MODULE: ./node_modules/@angular/common/fesm2015/common.js
var common = __webpack_require__("SVse");

// EXTERNAL MODULE: ./src/app/shared/ui/page-title/page-title.component.ngfactory.js + 1 modules
var page_title_component_ngfactory = __webpack_require__("laEC");

// EXTERNAL MODULE: ./src/app/shared/ui/page-title/page-title.component.ts
var page_title_component = __webpack_require__("S4p5");

// EXTERNAL MODULE: ./src/app/shared/ui/datagrid/filter/filter.component.ngfactory.js
var filter_component_ngfactory = __webpack_require__("vtHt");

// EXTERNAL MODULE: ./src/app/shared/ui/datagrid/filter/filter.component.ts
var filter_component = __webpack_require__("4J+U");

// EXTERNAL MODULE: ./src/app/shared/ui/inline-loader/inline-loader.component.ngfactory.js
var inline_loader_component_ngfactory = __webpack_require__("T9fw");

// EXTERNAL MODULE: ./src/app/shared/ui/inline-loader/inline-loader.component.ts
var inline_loader_component = __webpack_require__("IGDG");

// EXTERNAL MODULE: ./src/app/shared/ui/datagrid/form-filter/form-filter.component.ngfactory.js + 1 modules
var form_filter_component_ngfactory = __webpack_require__("OQs5");

// EXTERNAL MODULE: ./src/app/shared/ui/datagrid/form-filter/form-filter.component.ts
var form_filter_component = __webpack_require__("/gwA");

// EXTERNAL MODULE: ./src/app/shared/ui/field/field.component.ngfactory.js + 1 modules
var field_component_ngfactory = __webpack_require__("jZyr");

// EXTERNAL MODULE: ./src/app/shared/ui/field/field.component.ts
var field_component = __webpack_require__("jaPl");

// EXTERNAL MODULE: ./node_modules/@angular/forms/fesm2015/forms.js
var fesm2015_forms = __webpack_require__("s7LF");

// EXTERNAL MODULE: ./src/app/shared/directives/input-integer.directive.ts
var input_integer_directive = __webpack_require__("CwyO");

// EXTERNAL MODULE: ./src/app/shared/ui/typeahead/typeahead.component.ngfactory.js + 1 modules
var typeahead_component_ngfactory = __webpack_require__("Edsu");

// EXTERNAL MODULE: ./src/app/shared/ui/typeahead/typeahead.component.ts
var typeahead_component = __webpack_require__("O0Or");

// EXTERNAL MODULE: ./src/app/shared/services/auth.service.ts + 3 modules
var auth_service = __webpack_require__("IYfF");

// EXTERNAL MODULE: ./src/app/shared/services/autocomplete.service.ts
var autocomplete_service = __webpack_require__("jQB5");

// EXTERNAL MODULE: ./node_modules/br-mask/dist/directives/br-mask.js
var br_mask = __webpack_require__("4CcO");

// EXTERNAL MODULE: ./node_modules/@fortawesome/free-solid-svg-icons/index.js
var free_solid_svg_icons = __webpack_require__("YTkO");

// EXTERNAL MODULE: ./src/app/shared/base/base-form/base-form-filter-component.ts
var base_form_filter_component = __webpack_require__("4ILO");

// EXTERNAL MODULE: ./src/app/shared/consts/input-masks.ts
var input_masks = __webpack_require__("oFVU");

// EXTERNAL MODULE: ./src/app/shared/consts/autocomplete-entity.ts
var autocomplete_entity = __webpack_require__("MRXr");

// EXTERNAL MODULE: ./src/app/shared/consts/query-operators.ts
var query_operators = __webpack_require__("AtRd");

// EXTERNAL MODULE: ./src/app/shared/validators/date.validator.ts
var date_validator = __webpack_require__("FDju");

// EXTERNAL MODULE: ./src/app/shared/utils/date.util.ts
var date_util = __webpack_require__("6eHG");

// EXTERNAL MODULE: ./src/app/shared/utils/null.util.ts
var null_util = __webpack_require__("5tvI");

// EXTERNAL MODULE: ./src/app/shared/utils/string.util.ts
var string_util = __webpack_require__("8n1d");

// CONCATENATED MODULE: ./src/app/pages/reports/order-history/order-history-filter/order-history-filter.component.ts










class order_history_filter_component_OrderHistoryFilterComponent extends base_form_filter_component["a" /* BaseFormFilterComponent */] {
    constructor(fb, authService, autoCompleteService, companyService, messagesService, orderService, toastrService) {
        super();
        this.fb = fb;
        this.authService = authService;
        this.autoCompleteService = autoCompleteService;
        this.companyService = companyService;
        this.messagesService = messagesService;
        this.orderService = orderService;
        this.toastrService = toastrService;
        this.hasCaster = false;
        this.isSearching = false;
        this.orderAtTheTableIsAvailable = false;
        this.autoCompleteService.companyId = this.authService.loggedUser.id;
        this.orderService.companyId = this.authService.loggedUser.id;
    }
    get discountTicketEntity() {
        return autocomplete_entity["a" /* AUTOCOMPLETE_ENTITY */].CUPOM_DE_DESCONTO;
    }
    get searchIcon() {
        return free_solid_svg_icons["faSearch"];
    }
    get selectedDeliveryMode() {
        return this.formData.formaEntrega || '';
    }
    set selectedDeliveryMode(deliveryMode) {
        this.formFilter.get('formaEntrega').setValue(deliveryMode);
    }
    get selectedStatus() {
        return this.formData.situacao || '';
    }
    set selectedStatus(status) {
        this.formFilter.get('situacao').setValue(status);
    }
    ngOnInit() {
        this.initForm();
        this.initMasks();
        this.companyService.getCompanyConfig('config-cardapio-digital').subscribe(config => {
            this.orderAtTheTableIsAvailable = config.valor === '1';
        });
        this.companyService.getCompanyConfig('config-ativar-rodizio').subscribe(config => {
            this.hasCaster = config.valor === '1';
        });
    }
    applyFilter() {
        this.filters = [];
        if (null_util["a" /* NullUtil */].isNotEmpty(this.selectedStatus)) {
            const status = this.orderService.getOrderStatus(this.selectedStatus);
            this.filters.push({
                key: 'situacao',
                label: 'Situação',
                operator: query_operators["a" /* QUERY_OPERATORS */].EQUALS,
                value: status.referencia,
                tagValue: status.descricao
            });
        }
        if (null_util["a" /* NullUtil */].isNotEmpty(this.selectedDeliveryMode)) {
            const deliveryMode = this.orderService.getDeliveryMode(this.selectedDeliveryMode);
            this.filters.push({
                key: 'formaEntrega',
                label: 'Forma de Entrega',
                operator: query_operators["a" /* QUERY_OPERATORS */].EQUALS,
                value: deliveryMode.referencia,
                tagValue: deliveryMode.descricao
            });
        }
        if (this.hasCaster && null_util["a" /* NullUtil */].isNotEmpty(this.formData.rodizio)) {
            this.filters.push({
                key: 'rodizio',
                label: 'Tipo de Pedido',
                operator: query_operators["a" /* QUERY_OPERATORS */].EQUALS,
                value: this.formData.rodizio,
                tagValue: this.formData.rodizio ? 'Rodízio' : 'Pedido'
            });
        }
        if (!string_util["a" /* StringUtil */].isBlank(this.formData.clienteNome)) {
            this.filters.push({
                key: 'clienteNome',
                label: 'Nome do Cliente',
                operator: query_operators["a" /* QUERY_OPERATORS */].EQUALS,
                value: this.formData.clienteNome,
                tagValue: this.formData.clienteNome
            });
        }
        if (!string_util["a" /* StringUtil */].isBlank(this.formData.id)) {
            this.filters.push({
                key: 'id',
                label: 'ID do Pedido',
                operator: query_operators["a" /* QUERY_OPERATORS */].EQUALS,
                value: this.formData.id,
                tagValue: this.formData.id
            });
        }
        if (null_util["a" /* NullUtil */].isNotEmpty(this.discountTicket)) {
            this.filters.push({
                key: 'cupomDesconto',
                label: 'Cupom de Desconto',
                operator: query_operators["a" /* QUERY_OPERATORS */].EQUALS,
                value: this.discountTicket.value,
                tagValue: this.discountTicket.label
            });
        }
        if (!string_util["a" /* StringUtil */].isBlank(this.formData.mesa)) {
            this.filters.push({
                key: 'mesa',
                label: 'Número da Mesa',
                operator: query_operators["a" /* QUERY_OPERATORS */].EQUALS,
                value: this.formData.mesa,
                tagValue: this.formData.mesa
            });
        }
        if (!string_util["a" /* StringUtil */].isBlank(this.formData.dataHoraPedidoInicio) && !string_util["a" /* StringUtil */].isBlank(this.formData.dataHoraPedidoFim)) {
            const dataInicio = date_util["a" /* DateUtil */].parseToDate(this.formData.dataHoraPedidoInicio, 'DD/MM/YYYY');
            const dataFim = date_util["a" /* DateUtil */].parseToDate(this.formData.dataHoraPedidoFim, 'DD/MM/YYYY');
            if (!date_util["a" /* DateUtil */].isValidRange(dataInicio, dataFim)) {
                this.toastrService.warning(this.messagesService.getMessage('MSG.ERRO.057', ['Data do Pedido (Data inicial)', 'Data do Pedido (Data final)']));
                return;
            }
        }
        if (!string_util["a" /* StringUtil */].isBlank(this.formData.dataHoraPedidoInicio)) {
            this.filters.push({
                key: 'dataHoraPedidoInicio',
                label: `Data do Pedido ${!string_util["a" /* StringUtil */].isBlank(this.formData.dataHoraPedidoFim) ? 'Entre' : 'a partir das'}`,
                operator: query_operators["a" /* QUERY_OPERATORS */].EQUALS,
                value: this.formData.dataHoraPedidoInicio,
                tagValue: this.formData.dataHoraPedidoInicio
            });
        }
        if (!string_util["a" /* StringUtil */].isBlank(this.formData.dataHoraPedidoFim)) {
            this.filters.push({
                key: 'dataHoraPedidoFim',
                label: !string_util["a" /* StringUtil */].isBlank(this.formData.dataHoraPedidoInicio) ? 'Entre' : 'Data do Pedido até',
                operator: query_operators["a" /* QUERY_OPERATORS */].EQUALS,
                value: this.formData.dataHoraPedidoFim,
                tagValue: this.formData.dataHoraPedidoFim
            });
        }
        this.doFilter.emit(this.filters);
    }
    changeDisccountTicket(disccountTicket) {
        this.selectedDisccountTicket = disccountTicket;
    }
    initForm() {
        this.formFilter = this.fb.group({
            clienteNome: [''],
            mesa: [''],
            formaEntrega: [''],
            situacao: [''],
            disccountTicket: [''],
            cupomDesconto: [''],
            dataHoraPedidoInicio: ['', date_validator["a" /* DateValidator */]],
            dataHoraPedidoFim: ['', date_validator["a" /* DateValidator */]],
            id: [''],
            rodizio: [false]
        });
        this.deliveryModeList = this.orderService.getDeliveryModeOptionList();
        this.orderStatusList = this.orderService.getOrderStatusOptionList();
        this.orderTypeList = [
            { label: 'Pedido', value: false },
            { label: 'Rodízio', value: true },
        ];
    }
    initMasks() {
        this.initialValueMask = Object(input_masks["b" /* applyMasks */])(input_masks["a" /* INPUT_MASKS */].DECIMAL);
        this.finalValueMask = Object(input_masks["b" /* applyMasks */])(input_masks["a" /* INPUT_MASKS */].DECIMAL);
        this.initialDateMask = Object(input_masks["b" /* applyMasks */])(input_masks["a" /* INPUT_MASKS */].DATE);
        this.finalDateMask = Object(input_masks["b" /* applyMasks */])(input_masks["a" /* INPUT_MASKS */].DATE);
    }
    refreshFilterState() {
        if (this.getFilterState()) {
            this.getFilterState().criterias.forEach((criteria) => {
                this.formFilter.get(criteria.key).setValue(criteria.value);
            });
        }
    }
    resetFilter() {
        this.formFilter.reset();
        this.filters = [];
        this.selectedDeliveryMode = null;
        this.selectedStatus = null;
        this.selectedDisccountTicket = null;
        this.doFilter.emit(this.filters);
    }
    searchDisccountTicket(event) {
        if (event.target.value) {
            this.isSearching = true;
            setTimeout(() => {
                const searchTerm = event.target.value;
                this.autoCompleteService.search(autocomplete_entity["a" /* AUTOCOMPLETE_ENTITY */].CUPOM_DE_DESCONTO, searchTerm).subscribe(disccountTickets => {
                    this.disccountTickets = disccountTickets;
                    this.isSearching = false;
                });
            }, 100);
        }
    }
}

// EXTERNAL MODULE: ./src/app/shared/services/empresa.service.ts
var empresa_service = __webpack_require__("x715");

// EXTERNAL MODULE: ./src/app/shared/services/messages.service.ts + 1 modules
var messages_service = __webpack_require__("N7YL");

// EXTERNAL MODULE: ./src/app/shared/services/pedido.service.ts + 2 modules
var pedido_service = __webpack_require__("3xOD");

// CONCATENATED MODULE: ./src/app/pages/reports/order-history/order-history-filter/order-history-filter.component.ngfactory.js
/**
 * @fileoverview This file was generated by the Angular template compiler. Do not edit.
 *
 * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes}
 * tslint:disable
 */ 

















var styles_OrderHistoryFilterComponent = [];
var RenderType_OrderHistoryFilterComponent = core["ɵcrt"]({ encapsulation: 2, styles: styles_OrderHistoryFilterComponent, data: {} });

function View_OrderHistoryFilterComponent_1(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 2, "nb-radio", [["status", "primary"]], [[2, "status-primary", null], [2, "status-success", null], [2, "status-warning", null], [2, "status-danger", null], [2, "status-info", null], [2, "status-basic", null], [2, "status-control", null]], null, null, index_ngfactory["bb" /* View_NbRadioComponent_0 */], index_ngfactory["E" /* RenderType_NbRadioComponent */])), core["ɵdid"](1, 49152, [[2, 4]], 0, fesm2015["Tc" /* NbRadioComponent */], [core["ChangeDetectorRef"]], { value: [0, "value"], status: [1, "status"] }, null), (_l()(), core["ɵted"](2, 0, [" ", " "]))], function (_ck, _v) { var currVal_7 = _v.context.$implicit.value; var currVal_8 = "primary"; _ck(_v, 1, 0, currVal_7, currVal_8); }, function (_ck, _v) { var currVal_0 = core["ɵnov"](_v, 1).isPrimary; var currVal_1 = core["ɵnov"](_v, 1).isSuccess; var currVal_2 = core["ɵnov"](_v, 1).isWarning; var currVal_3 = core["ɵnov"](_v, 1).isDanger; var currVal_4 = core["ɵnov"](_v, 1).isInfo; var currVal_5 = core["ɵnov"](_v, 1).isBasic; var currVal_6 = core["ɵnov"](_v, 1).isControl; _ck(_v, 0, 0, currVal_0, currVal_1, currVal_2, currVal_3, currVal_4, currVal_5, currVal_6); var currVal_9 = _v.context.$implicit.label; _ck(_v, 2, 0, currVal_9); }); }
function View_OrderHistoryFilterComponent_2(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 2, "nb-option", [], [[2, "selected", null], [1, "disabled", 0], [8, "tabIndex", 0]], [[null, "click"], [null, "keydown.space"], [null, "keydown.enter"]], function (_v, en, $event) { var ad = true; if (("click" === en)) {
        var pd_0 = (core["ɵnov"](_v, 1).onClick($event) !== false);
        ad = (pd_0 && ad);
    } if (("keydown.space" === en)) {
        var pd_1 = (core["ɵnov"](_v, 1).onClick($event) !== false);
        ad = (pd_1 && ad);
    } if (("keydown.enter" === en)) {
        var pd_2 = (core["ɵnov"](_v, 1).onClick($event) !== false);
        ad = (pd_2 && ad);
    } return ad; }, index_ngfactory["Z" /* View_NbOptionComponent_0 */], index_ngfactory["C" /* RenderType_NbOptionComponent */])), core["ɵdid"](1, 180224, [[3, 4]], 0, fesm2015["yc" /* NbOptionComponent */], [fesm2015["k" /* NB_SELECT_INJECTION_TOKEN */], core["ElementRef"], core["ChangeDetectorRef"]], { value: [0, "value"] }, null), (_l()(), core["ɵted"](2, 0, [" ", " "]))], function (_ck, _v) { var currVal_3 = _v.context.$implicit.value; _ck(_v, 1, 0, currVal_3); }, function (_ck, _v) { var currVal_0 = core["ɵnov"](_v, 1).selectedClass; var currVal_1 = core["ɵnov"](_v, 1).disabledAttribute; var currVal_2 = core["ɵnov"](_v, 1).tabindex; _ck(_v, 0, 0, currVal_0, currVal_1, currVal_2); var currVal_4 = _v.context.$implicit.label; _ck(_v, 2, 0, currVal_4); }); }
function View_OrderHistoryFilterComponent_4(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 2, "nb-option", [], [[2, "selected", null], [1, "disabled", 0], [8, "tabIndex", 0]], [[null, "click"], [null, "keydown.space"], [null, "keydown.enter"]], function (_v, en, $event) { var ad = true; if (("click" === en)) {
        var pd_0 = (core["ɵnov"](_v, 1).onClick($event) !== false);
        ad = (pd_0 && ad);
    } if (("keydown.space" === en)) {
        var pd_1 = (core["ɵnov"](_v, 1).onClick($event) !== false);
        ad = (pd_1 && ad);
    } if (("keydown.enter" === en)) {
        var pd_2 = (core["ɵnov"](_v, 1).onClick($event) !== false);
        ad = (pd_2 && ad);
    } return ad; }, index_ngfactory["Z" /* View_NbOptionComponent_0 */], index_ngfactory["C" /* RenderType_NbOptionComponent */])), core["ɵdid"](1, 180224, [[5, 4]], 0, fesm2015["yc" /* NbOptionComponent */], [fesm2015["k" /* NB_SELECT_INJECTION_TOKEN */], core["ElementRef"], core["ChangeDetectorRef"]], { value: [0, "value"] }, null), (_l()(), core["ɵted"](2, 0, [" ", " "]))], function (_ck, _v) { var currVal_3 = _v.context.$implicit.value; _ck(_v, 1, 0, currVal_3); }, function (_ck, _v) { var currVal_0 = core["ɵnov"](_v, 1).selectedClass; var currVal_1 = core["ɵnov"](_v, 1).disabledAttribute; var currVal_2 = core["ɵnov"](_v, 1).tabindex; _ck(_v, 0, 0, currVal_0, currVal_1, currVal_2); var currVal_4 = _v.context.$implicit.label; _ck(_v, 2, 0, currVal_4); }); }
function View_OrderHistoryFilterComponent_3(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 16, "div", [["class", "form-group col-12"]], null, null, null, null, null)), (_l()(), core["ɵeld"](1, 0, null, null, 15, "omni-field", [["field", "rodizio"], ["label", "Tipo de Pedido"]], null, null, null, field_component_ngfactory["b" /* View_FieldComponent_0 */], field_component_ngfactory["a" /* RenderType_FieldComponent */])), core["ɵdid"](2, 8437760, null, 0, field_component["a" /* FieldComponent */], [core["ElementRef"], core["Renderer2"]], { field: [0, "field"], form: [1, "form"], label: [2, "label"] }, null), (_l()(), core["ɵeld"](3, 0, null, 0, 13, "nb-select", [["fullWidth", ""], ["placeholder", "Selecione o tipo de Pedido"], ["status", "primary"]], [[2, "appearance-outline", null], [2, "appearance-filled", null], [2, "appearance-hero", null], [2, "full-width", null], [2, "open", null], [2, "size-tiny", null], [2, "size-small", null], [2, "size-medium", null], [2, "size-large", null], [2, "size-giant", null], [2, "status-primary", null], [2, "status-info", null], [2, "status-success", null], [2, "status-warning", null], [2, "status-danger", null], [2, "status-basic", null], [2, "status-control", null], [2, "shape-rectangle", null], [2, "shape-round", null], [2, "shape-semi-round", null], [2, "ng-untouched", null], [2, "ng-touched", null], [2, "ng-pristine", null], [2, "ng-dirty", null], [2, "ng-valid", null], [2, "ng-invalid", null], [2, "ng-pending", null]], null, null, index_ngfactory["db" /* View_NbSelectComponent_0 */], index_ngfactory["G" /* RenderType_NbSelectComponent */])), core["ɵdid"](4, 5423104, null, 2, fesm2015["id" /* NbSelectComponent */], [fesm2015["g" /* NB_DOCUMENT */], fesm2015["Gc" /* NbOverlayService */], core["ElementRef"], fesm2015["Oc" /* NbPositionBuilderService */], fesm2015["de" /* NbTriggerStrategyBuilderService */], core["ChangeDetectorRef"], fesm2015["qe" /* ɵd */]], { status: [0, "status"], fullWidth: [1, "fullWidth"], placeholder: [2, "placeholder"] }, null), core["ɵqud"](603979776, 5, { options: 1 }), core["ɵqud"](603979776, 6, { customLabel: 0 }), core["ɵprd"](1024, null, fesm2015_forms["q" /* NG_VALUE_ACCESSOR */], function (p0_0) { return [p0_0]; }, [fesm2015["id" /* NbSelectComponent */]]), core["ɵdid"](8, 540672, null, 0, fesm2015_forms["i" /* FormControlDirective */], [[8, null], [8, null], [6, fesm2015_forms["q" /* NG_VALUE_ACCESSOR */]], [2, fesm2015_forms["C" /* ɵangular_packages_forms_forms_q */]]], { form: [0, "form"] }, null), core["ɵprd"](2048, null, fesm2015_forms["r" /* NgControl */], null, [fesm2015_forms["i" /* FormControlDirective */]]), core["ɵdid"](10, 16384, null, 0, fesm2015_forms["s" /* NgControlStatus */], [[4, fesm2015_forms["r" /* NgControl */]]], null, null), core["ɵprd"](2048, null, fesm2015["k" /* NB_SELECT_INJECTION_TOKEN */], null, [fesm2015["id" /* NbSelectComponent */]]), (_l()(), core["ɵeld"](12, 0, null, 1, 2, "nb-option", [], [[2, "selected", null], [1, "disabled", 0], [8, "tabIndex", 0]], [[null, "click"], [null, "keydown.space"], [null, "keydown.enter"]], function (_v, en, $event) { var ad = true; if (("click" === en)) {
        var pd_0 = (core["ɵnov"](_v, 13).onClick($event) !== false);
        ad = (pd_0 && ad);
    } if (("keydown.space" === en)) {
        var pd_1 = (core["ɵnov"](_v, 13).onClick($event) !== false);
        ad = (pd_1 && ad);
    } if (("keydown.enter" === en)) {
        var pd_2 = (core["ɵnov"](_v, 13).onClick($event) !== false);
        ad = (pd_2 && ad);
    } return ad; }, index_ngfactory["Z" /* View_NbOptionComponent_0 */], index_ngfactory["C" /* RenderType_NbOptionComponent */])), core["ɵdid"](13, 180224, [[5, 4]], 0, fesm2015["yc" /* NbOptionComponent */], [fesm2015["k" /* NB_SELECT_INJECTION_TOKEN */], core["ElementRef"], core["ChangeDetectorRef"]], null, null), (_l()(), core["ɵted"](-1, 0, ["Todos os tipos"])), (_l()(), core["ɵand"](16777216, null, 1, 1, null, View_OrderHistoryFilterComponent_4)), core["ɵdid"](16, 278528, null, 0, common["n" /* NgForOf */], [core["ViewContainerRef"], core["TemplateRef"], core["IterableDiffers"]], { ngForOf: [0, "ngForOf"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_0 = "rodizio"; var currVal_1 = _co.formFilter; var currVal_2 = "Tipo de Pedido"; _ck(_v, 2, 0, currVal_0, currVal_1, currVal_2); var currVal_30 = "primary"; var currVal_31 = ""; var currVal_32 = "Selecione o tipo de Pedido"; _ck(_v, 4, 0, currVal_30, currVal_31, currVal_32); var currVal_33 = _co.formFilter.get("rodizio"); _ck(_v, 8, 0, currVal_33); var currVal_37 = _co.orderTypeList; _ck(_v, 16, 0, currVal_37); }, function (_ck, _v) { var currVal_3 = core["ɵnov"](_v, 4).outline; var currVal_4 = core["ɵnov"](_v, 4).filled; var currVal_5 = core["ɵnov"](_v, 4).hero; var currVal_6 = core["ɵnov"](_v, 4).fullWidth; var currVal_7 = core["ɵnov"](_v, 4).isOpen; var currVal_8 = core["ɵnov"](_v, 4).tiny; var currVal_9 = core["ɵnov"](_v, 4).small; var currVal_10 = core["ɵnov"](_v, 4).medium; var currVal_11 = core["ɵnov"](_v, 4).large; var currVal_12 = core["ɵnov"](_v, 4).giant; var currVal_13 = core["ɵnov"](_v, 4).primary; var currVal_14 = core["ɵnov"](_v, 4).info; var currVal_15 = core["ɵnov"](_v, 4).success; var currVal_16 = core["ɵnov"](_v, 4).warning; var currVal_17 = core["ɵnov"](_v, 4).danger; var currVal_18 = core["ɵnov"](_v, 4).basic; var currVal_19 = core["ɵnov"](_v, 4).control; var currVal_20 = core["ɵnov"](_v, 4).rectangle; var currVal_21 = core["ɵnov"](_v, 4).round; var currVal_22 = core["ɵnov"](_v, 4).semiRound; var currVal_23 = core["ɵnov"](_v, 10).ngClassUntouched; var currVal_24 = core["ɵnov"](_v, 10).ngClassTouched; var currVal_25 = core["ɵnov"](_v, 10).ngClassPristine; var currVal_26 = core["ɵnov"](_v, 10).ngClassDirty; var currVal_27 = core["ɵnov"](_v, 10).ngClassValid; var currVal_28 = core["ɵnov"](_v, 10).ngClassInvalid; var currVal_29 = core["ɵnov"](_v, 10).ngClassPending; _ck(_v, 3, 1, [currVal_3, currVal_4, currVal_5, currVal_6, currVal_7, currVal_8, currVal_9, currVal_10, currVal_11, currVal_12, currVal_13, currVal_14, currVal_15, currVal_16, currVal_17, currVal_18, currVal_19, currVal_20, currVal_21, currVal_22, currVal_23, currVal_24, currVal_25, currVal_26, currVal_27, currVal_28, currVal_29]); var currVal_34 = core["ɵnov"](_v, 13).selectedClass; var currVal_35 = core["ɵnov"](_v, 13).disabledAttribute; var currVal_36 = core["ɵnov"](_v, 13).tabindex; _ck(_v, 12, 0, currVal_34, currVal_35, currVal_36); }); }
function View_OrderHistoryFilterComponent_5(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 11, "div", [["class", "form-group col-12"]], null, null, null, null, null)), (_l()(), core["ɵeld"](1, 0, null, null, 10, "omni-field", [["field", "mesa"], ["label", "N\u00FAmero da Mesa"]], null, null, null, field_component_ngfactory["b" /* View_FieldComponent_0 */], field_component_ngfactory["a" /* RenderType_FieldComponent */])), core["ɵdid"](2, 8437760, null, 0, field_component["a" /* FieldComponent */], [core["ElementRef"], core["Renderer2"]], { field: [0, "field"], form: [1, "form"], label: [2, "label"] }, null), (_l()(), core["ɵeld"](3, 0, null, 0, 8, "input", [["formControlName", "mesa"], ["fullWidth", ""], ["maxlength", "6"], ["nbInput", ""], ["placeholder", "Informe o n\u00FAmero da mesa"], ["status", "primary"], ["type", "text"]], [[1, "maxlength", 0], [2, "ng-untouched", null], [2, "ng-touched", null], [2, "ng-pristine", null], [2, "ng-dirty", null], [2, "ng-valid", null], [2, "ng-invalid", null], [2, "ng-pending", null], [2, "input-full-width", null], [2, "size-tiny", null], [2, "size-small", null], [2, "size-medium", null], [2, "size-large", null], [2, "size-giant", null], [2, "status-primary", null], [2, "status-info", null], [2, "status-success", null], [2, "status-warning", null], [2, "status-danger", null], [2, "status-basic", null], [2, "status-control", null], [2, "shape-rectangle", null], [2, "shape-semi-round", null], [2, "shape-round", null]], [[null, "input"], [null, "blur"], [null, "compositionstart"], [null, "compositionend"]], function (_v, en, $event) { var ad = true; if (("input" === en)) {
        var pd_0 = (core["ɵnov"](_v, 4)._handleInput($event.target.value) !== false);
        ad = (pd_0 && ad);
    } if (("blur" === en)) {
        var pd_1 = (core["ɵnov"](_v, 4).onTouched() !== false);
        ad = (pd_1 && ad);
    } if (("compositionstart" === en)) {
        var pd_2 = (core["ɵnov"](_v, 4)._compositionStart() !== false);
        ad = (pd_2 && ad);
    } if (("compositionend" === en)) {
        var pd_3 = (core["ɵnov"](_v, 4)._compositionEnd($event.target.value) !== false);
        ad = (pd_3 && ad);
    } return ad; }, null, null)), core["ɵdid"](4, 16384, null, 0, fesm2015_forms["e" /* DefaultValueAccessor */], [core["Renderer2"], core["ElementRef"], [2, fesm2015_forms["b" /* COMPOSITION_BUFFER_MODE */]]], null, null), core["ɵdid"](5, 540672, null, 0, fesm2015_forms["o" /* MaxLengthValidator */], [], { maxlength: [0, "maxlength"] }, null), core["ɵprd"](1024, null, fesm2015_forms["p" /* NG_VALIDATORS */], function (p0_0) { return [p0_0]; }, [fesm2015_forms["o" /* MaxLengthValidator */]]), core["ɵprd"](1024, null, fesm2015_forms["q" /* NG_VALUE_ACCESSOR */], function (p0_0) { return [p0_0]; }, [fesm2015_forms["e" /* DefaultValueAccessor */]]), core["ɵdid"](8, 671744, null, 0, fesm2015_forms["j" /* FormControlName */], [[3, fesm2015_forms["d" /* ControlContainer */]], [6, fesm2015_forms["p" /* NG_VALIDATORS */]], [8, null], [6, fesm2015_forms["q" /* NG_VALUE_ACCESSOR */]], [2, fesm2015_forms["C" /* ɵangular_packages_forms_forms_q */]]], { name: [0, "name"] }, null), core["ɵprd"](2048, null, fesm2015_forms["r" /* NgControl */], null, [fesm2015_forms["j" /* FormControlName */]]), core["ɵdid"](10, 16384, null, 0, fesm2015_forms["s" /* NgControlStatus */], [[4, fesm2015_forms["r" /* NgControl */]]], null, null), core["ɵdid"](11, 16384, null, 0, fesm2015["ec" /* NbInputDirective */], [], { status: [0, "status"], fullWidth: [1, "fullWidth"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_0 = "mesa"; var currVal_1 = _co.formFilter; var currVal_2 = "N\u00FAmero da Mesa"; _ck(_v, 2, 0, currVal_0, currVal_1, currVal_2); var currVal_27 = "6"; _ck(_v, 5, 0, currVal_27); var currVal_28 = "mesa"; _ck(_v, 8, 0, currVal_28); var currVal_29 = "primary"; var currVal_30 = ""; _ck(_v, 11, 0, currVal_29, currVal_30); }, function (_ck, _v) { var currVal_3 = (core["ɵnov"](_v, 5).maxlength ? core["ɵnov"](_v, 5).maxlength : null); var currVal_4 = core["ɵnov"](_v, 10).ngClassUntouched; var currVal_5 = core["ɵnov"](_v, 10).ngClassTouched; var currVal_6 = core["ɵnov"](_v, 10).ngClassPristine; var currVal_7 = core["ɵnov"](_v, 10).ngClassDirty; var currVal_8 = core["ɵnov"](_v, 10).ngClassValid; var currVal_9 = core["ɵnov"](_v, 10).ngClassInvalid; var currVal_10 = core["ɵnov"](_v, 10).ngClassPending; var currVal_11 = core["ɵnov"](_v, 11).fullWidth; var currVal_12 = core["ɵnov"](_v, 11).tiny; var currVal_13 = core["ɵnov"](_v, 11).small; var currVal_14 = core["ɵnov"](_v, 11).medium; var currVal_15 = core["ɵnov"](_v, 11).large; var currVal_16 = core["ɵnov"](_v, 11).giant; var currVal_17 = core["ɵnov"](_v, 11).primary; var currVal_18 = core["ɵnov"](_v, 11).info; var currVal_19 = core["ɵnov"](_v, 11).success; var currVal_20 = core["ɵnov"](_v, 11).warning; var currVal_21 = core["ɵnov"](_v, 11).danger; var currVal_22 = core["ɵnov"](_v, 11).basic; var currVal_23 = core["ɵnov"](_v, 11).control; var currVal_24 = core["ɵnov"](_v, 11).rectangle; var currVal_25 = core["ɵnov"](_v, 11).semiRound; var currVal_26 = core["ɵnov"](_v, 11).round; _ck(_v, 3, 1, [currVal_3, currVal_4, currVal_5, currVal_6, currVal_7, currVal_8, currVal_9, currVal_10, currVal_11, currVal_12, currVal_13, currVal_14, currVal_15, currVal_16, currVal_17, currVal_18, currVal_19, currVal_20, currVal_21, currVal_22, currVal_23, currVal_24, currVal_25, currVal_26]); }); }
function View_OrderHistoryFilterComponent_0(_l) { return core["ɵvid"](0, [core["ɵqud"](402653184, 1, { formFilterRef: 0 }), (_l()(), core["ɵeld"](1, 0, null, null, 95, "form", [["novalidate", ""]], [[2, "ng-untouched", null], [2, "ng-touched", null], [2, "ng-pristine", null], [2, "ng-dirty", null], [2, "ng-valid", null], [2, "ng-invalid", null], [2, "ng-pending", null]], [[null, "ngSubmit"], [null, "submit"], [null, "reset"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("submit" === en)) {
        var pd_0 = (core["ɵnov"](_v, 3).onSubmit($event) !== false);
        ad = (pd_0 && ad);
    } if (("reset" === en)) {
        var pd_1 = (core["ɵnov"](_v, 3).onReset() !== false);
        ad = (pd_1 && ad);
    } if (("ngSubmit" === en)) {
        var pd_2 = (_co.onSubmit() !== false);
        ad = (pd_2 && ad);
    } return ad; }, null, null)), core["ɵdid"](2, 16384, null, 0, fesm2015_forms["D" /* ɵangular_packages_forms_forms_z */], [], null, null), core["ɵdid"](3, 540672, null, 0, fesm2015_forms["l" /* FormGroupDirective */], [[8, null], [8, null]], { form: [0, "form"] }, { ngSubmit: "ngSubmit" }), core["ɵprd"](2048, null, fesm2015_forms["d" /* ControlContainer */], null, [fesm2015_forms["l" /* FormGroupDirective */]]), core["ɵdid"](5, 16384, null, 0, fesm2015_forms["t" /* NgControlStatusGroup */], [[4, fesm2015_forms["d" /* ControlContainer */]]], null, null), (_l()(), core["ɵeld"](6, 0, null, null, 80, "div", [["class", "row"]], null, null, null, null, null)), (_l()(), core["ɵeld"](7, 0, null, null, 11, "div", [["class", "form-group col-12"]], null, null, null, null, null)), (_l()(), core["ɵeld"](8, 0, null, null, 10, "omni-field", [["field", "id"], ["label", "ID do Pedido"]], null, null, null, field_component_ngfactory["b" /* View_FieldComponent_0 */], field_component_ngfactory["a" /* RenderType_FieldComponent */])), core["ɵdid"](9, 8437760, null, 0, field_component["a" /* FieldComponent */], [core["ElementRef"], core["Renderer2"]], { field: [0, "field"], form: [1, "form"], label: [2, "label"] }, null), (_l()(), core["ɵeld"](10, 0, null, 0, 8, "input", [["formControlName", "id"], ["fullWidth", ""], ["nbInput", ""], ["omniInputInteger", ""], ["placeholder", "Informe o ID do Pedido"], ["status", "primary"], ["type", "number"]], [[2, "ng-untouched", null], [2, "ng-touched", null], [2, "ng-pristine", null], [2, "ng-dirty", null], [2, "ng-valid", null], [2, "ng-invalid", null], [2, "ng-pending", null], [2, "input-full-width", null], [2, "size-tiny", null], [2, "size-small", null], [2, "size-medium", null], [2, "size-large", null], [2, "size-giant", null], [2, "status-primary", null], [2, "status-info", null], [2, "status-success", null], [2, "status-warning", null], [2, "status-danger", null], [2, "status-basic", null], [2, "status-control", null], [2, "shape-rectangle", null], [2, "shape-semi-round", null], [2, "shape-round", null]], [[null, "input"], [null, "blur"], [null, "compositionstart"], [null, "compositionend"], [null, "change"], [null, "keyup"]], function (_v, en, $event) { var ad = true; if (("input" === en)) {
        var pd_0 = (core["ɵnov"](_v, 11)._handleInput($event.target.value) !== false);
        ad = (pd_0 && ad);
    } if (("blur" === en)) {
        var pd_1 = (core["ɵnov"](_v, 11).onTouched() !== false);
        ad = (pd_1 && ad);
    } if (("compositionstart" === en)) {
        var pd_2 = (core["ɵnov"](_v, 11)._compositionStart() !== false);
        ad = (pd_2 && ad);
    } if (("compositionend" === en)) {
        var pd_3 = (core["ɵnov"](_v, 11)._compositionEnd($event.target.value) !== false);
        ad = (pd_3 && ad);
    } if (("change" === en)) {
        var pd_4 = (core["ɵnov"](_v, 12).onChange($event.target.value) !== false);
        ad = (pd_4 && ad);
    } if (("input" === en)) {
        var pd_5 = (core["ɵnov"](_v, 12).onChange($event.target.value) !== false);
        ad = (pd_5 && ad);
    } if (("blur" === en)) {
        var pd_6 = (core["ɵnov"](_v, 12).onTouched() !== false);
        ad = (pd_6 && ad);
    } if (("keyup" === en)) {
        var pd_7 = (core["ɵnov"](_v, 18).onInput($event.target) !== false);
        ad = (pd_7 && ad);
    } if (("blur" === en)) {
        var pd_8 = (core["ɵnov"](_v, 18).onBlur() !== false);
        ad = (pd_8 && ad);
    } return ad; }, null, null)), core["ɵdid"](11, 16384, null, 0, fesm2015_forms["e" /* DefaultValueAccessor */], [core["Renderer2"], core["ElementRef"], [2, fesm2015_forms["b" /* COMPOSITION_BUFFER_MODE */]]], null, null), core["ɵdid"](12, 16384, null, 0, fesm2015_forms["w" /* NumberValueAccessor */], [core["Renderer2"], core["ElementRef"]], null, null), core["ɵprd"](1024, null, fesm2015_forms["q" /* NG_VALUE_ACCESSOR */], function (p0_0, p1_0) { return [p0_0, p1_0]; }, [fesm2015_forms["e" /* DefaultValueAccessor */], fesm2015_forms["w" /* NumberValueAccessor */]]), core["ɵdid"](14, 671744, null, 0, fesm2015_forms["j" /* FormControlName */], [[3, fesm2015_forms["d" /* ControlContainer */]], [8, null], [8, null], [6, fesm2015_forms["q" /* NG_VALUE_ACCESSOR */]], [2, fesm2015_forms["C" /* ɵangular_packages_forms_forms_q */]]], { name: [0, "name"] }, null), core["ɵprd"](2048, null, fesm2015_forms["r" /* NgControl */], null, [fesm2015_forms["j" /* FormControlName */]]), core["ɵdid"](16, 16384, null, 0, fesm2015_forms["s" /* NgControlStatus */], [[4, fesm2015_forms["r" /* NgControl */]]], null, null), core["ɵdid"](17, 16384, null, 0, fesm2015["ec" /* NbInputDirective */], [], { status: [0, "status"], fullWidth: [1, "fullWidth"] }, null), core["ɵdid"](18, 16384, null, 0, input_integer_directive["a" /* InputIntegerDirective */], [core["ElementRef"]], null, null), (_l()(), core["ɵeld"](19, 0, null, null, 11, "div", [["class", "form-group col-12"]], null, null, null, null, null)), (_l()(), core["ɵeld"](20, 0, null, null, 10, "omni-field", [["field", "clienteNome"], ["label", "Nome do Cliente"]], null, null, null, field_component_ngfactory["b" /* View_FieldComponent_0 */], field_component_ngfactory["a" /* RenderType_FieldComponent */])), core["ɵdid"](21, 8437760, null, 0, field_component["a" /* FieldComponent */], [core["ElementRef"], core["Renderer2"]], { field: [0, "field"], form: [1, "form"], label: [2, "label"] }, null), (_l()(), core["ɵeld"](22, 0, null, 0, 8, "input", [["formControlName", "clienteNome"], ["fullWidth", ""], ["maxlength", "100"], ["nbInput", ""], ["placeholder", "Informe o nome ou parte dele"], ["status", "primary"], ["type", "text"]], [[1, "maxlength", 0], [2, "ng-untouched", null], [2, "ng-touched", null], [2, "ng-pristine", null], [2, "ng-dirty", null], [2, "ng-valid", null], [2, "ng-invalid", null], [2, "ng-pending", null], [2, "input-full-width", null], [2, "size-tiny", null], [2, "size-small", null], [2, "size-medium", null], [2, "size-large", null], [2, "size-giant", null], [2, "status-primary", null], [2, "status-info", null], [2, "status-success", null], [2, "status-warning", null], [2, "status-danger", null], [2, "status-basic", null], [2, "status-control", null], [2, "shape-rectangle", null], [2, "shape-semi-round", null], [2, "shape-round", null]], [[null, "input"], [null, "blur"], [null, "compositionstart"], [null, "compositionend"]], function (_v, en, $event) { var ad = true; if (("input" === en)) {
        var pd_0 = (core["ɵnov"](_v, 23)._handleInput($event.target.value) !== false);
        ad = (pd_0 && ad);
    } if (("blur" === en)) {
        var pd_1 = (core["ɵnov"](_v, 23).onTouched() !== false);
        ad = (pd_1 && ad);
    } if (("compositionstart" === en)) {
        var pd_2 = (core["ɵnov"](_v, 23)._compositionStart() !== false);
        ad = (pd_2 && ad);
    } if (("compositionend" === en)) {
        var pd_3 = (core["ɵnov"](_v, 23)._compositionEnd($event.target.value) !== false);
        ad = (pd_3 && ad);
    } return ad; }, null, null)), core["ɵdid"](23, 16384, null, 0, fesm2015_forms["e" /* DefaultValueAccessor */], [core["Renderer2"], core["ElementRef"], [2, fesm2015_forms["b" /* COMPOSITION_BUFFER_MODE */]]], null, null), core["ɵdid"](24, 540672, null, 0, fesm2015_forms["o" /* MaxLengthValidator */], [], { maxlength: [0, "maxlength"] }, null), core["ɵprd"](1024, null, fesm2015_forms["p" /* NG_VALIDATORS */], function (p0_0) { return [p0_0]; }, [fesm2015_forms["o" /* MaxLengthValidator */]]), core["ɵprd"](1024, null, fesm2015_forms["q" /* NG_VALUE_ACCESSOR */], function (p0_0) { return [p0_0]; }, [fesm2015_forms["e" /* DefaultValueAccessor */]]), core["ɵdid"](27, 671744, null, 0, fesm2015_forms["j" /* FormControlName */], [[3, fesm2015_forms["d" /* ControlContainer */]], [6, fesm2015_forms["p" /* NG_VALIDATORS */]], [8, null], [6, fesm2015_forms["q" /* NG_VALUE_ACCESSOR */]], [2, fesm2015_forms["C" /* ɵangular_packages_forms_forms_q */]]], { name: [0, "name"] }, null), core["ɵprd"](2048, null, fesm2015_forms["r" /* NgControl */], null, [fesm2015_forms["j" /* FormControlName */]]), core["ɵdid"](29, 16384, null, 0, fesm2015_forms["s" /* NgControlStatus */], [[4, fesm2015_forms["r" /* NgControl */]]], null, null), core["ɵdid"](30, 16384, null, 0, fesm2015["ec" /* NbInputDirective */], [], { status: [0, "status"], fullWidth: [1, "fullWidth"] }, null), (_l()(), core["ɵeld"](31, 0, null, null, 8, "div", [["class", "form-group col-12"]], null, null, null, null, null)), (_l()(), core["ɵeld"](32, 0, null, null, 7, "omni-field", [["field", "formaEntrega"], ["label", "Forma de Entrega"]], null, null, null, field_component_ngfactory["b" /* View_FieldComponent_0 */], field_component_ngfactory["a" /* RenderType_FieldComponent */])), core["ɵdid"](33, 8437760, null, 0, field_component["a" /* FieldComponent */], [core["ElementRef"], core["Renderer2"]], { field: [0, "field"], form: [1, "form"], label: [2, "label"] }, null), (_l()(), core["ɵeld"](34, 0, null, 0, 5, "nb-radio-group", [["class", "d-flex flex-row"]], null, [[null, "valueChange"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("valueChange" === en)) {
        var pd_0 = ((_co.selectedDeliveryMode = $event) !== false);
        ad = (pd_0 && ad);
    } return ad; }, index_ngfactory["cb" /* View_NbRadioGroupComponent_0 */], index_ngfactory["F" /* RenderType_NbRadioGroupComponent */])), core["ɵprd"](5120, null, fesm2015_forms["q" /* NG_VALUE_ACCESSOR */], function (p0_0) { return [p0_0]; }, [fesm2015["Uc" /* NbRadioGroupComponent */]]), core["ɵdid"](36, 1228800, null, 1, fesm2015["Uc" /* NbRadioGroupComponent */], [core["ElementRef"], core["PLATFORM_ID"], fesm2015["g" /* NB_DOCUMENT */]], { value: [0, "value"] }, { valueChange: "valueChange" }), core["ɵqud"](603979776, 2, { radios: 1 }), (_l()(), core["ɵand"](16777216, null, 0, 1, null, View_OrderHistoryFilterComponent_1)), core["ɵdid"](39, 278528, null, 0, common["n" /* NgForOf */], [core["ViewContainerRef"], core["TemplateRef"], core["IterableDiffers"]], { ngForOf: [0, "ngForOf"] }, null), (_l()(), core["ɵeld"](40, 0, null, null, 10, "div", [["class", "form-group col-12"]], null, null, null, null, null)), (_l()(), core["ɵeld"](41, 0, null, null, 9, "omni-field", [["field", "situacao"], ["label", "Situa\u00E7\u00E3o"]], null, null, null, field_component_ngfactory["b" /* View_FieldComponent_0 */], field_component_ngfactory["a" /* RenderType_FieldComponent */])), core["ɵdid"](42, 8437760, null, 0, field_component["a" /* FieldComponent */], [core["ElementRef"], core["Renderer2"]], { field: [0, "field"], form: [1, "form"], label: [2, "label"] }, null), (_l()(), core["ɵeld"](43, 0, null, 0, 7, "nb-select", [["fullWidth", ""], ["placeholder", "Selecione a Situa\u00E7\u00E3o do Pedido"], ["status", "primary"]], [[2, "appearance-outline", null], [2, "appearance-filled", null], [2, "appearance-hero", null], [2, "full-width", null], [2, "open", null], [2, "size-tiny", null], [2, "size-small", null], [2, "size-medium", null], [2, "size-large", null], [2, "size-giant", null], [2, "status-primary", null], [2, "status-info", null], [2, "status-success", null], [2, "status-warning", null], [2, "status-danger", null], [2, "status-basic", null], [2, "status-control", null], [2, "shape-rectangle", null], [2, "shape-round", null], [2, "shape-semi-round", null]], [[null, "selectedChange"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("selectedChange" === en)) {
        var pd_0 = ((_co.selectedStatus = $event) !== false);
        ad = (pd_0 && ad);
    } return ad; }, index_ngfactory["db" /* View_NbSelectComponent_0 */], index_ngfactory["G" /* RenderType_NbSelectComponent */])), core["ɵprd"](6144, null, fesm2015["k" /* NB_SELECT_INJECTION_TOKEN */], null, [fesm2015["id" /* NbSelectComponent */]]), core["ɵprd"](5120, null, fesm2015_forms["q" /* NG_VALUE_ACCESSOR */], function (p0_0) { return [p0_0]; }, [fesm2015["id" /* NbSelectComponent */]]), core["ɵdid"](46, 5423104, null, 2, fesm2015["id" /* NbSelectComponent */], [fesm2015["g" /* NB_DOCUMENT */], fesm2015["Gc" /* NbOverlayService */], core["ElementRef"], fesm2015["Oc" /* NbPositionBuilderService */], fesm2015["de" /* NbTriggerStrategyBuilderService */], core["ChangeDetectorRef"], fesm2015["qe" /* ɵd */]], { status: [0, "status"], fullWidth: [1, "fullWidth"], placeholder: [2, "placeholder"], selected: [3, "selected"] }, { selectedChange: "selectedChange" }), core["ɵqud"](603979776, 3, { options: 1 }), core["ɵqud"](603979776, 4, { customLabel: 0 }), (_l()(), core["ɵand"](16777216, null, 1, 1, null, View_OrderHistoryFilterComponent_2)), core["ɵdid"](50, 278528, null, 0, common["n" /* NgForOf */], [core["ViewContainerRef"], core["TemplateRef"], core["IterableDiffers"]], { ngForOf: [0, "ngForOf"] }, null), (_l()(), core["ɵand"](16777216, null, null, 1, null, View_OrderHistoryFilterComponent_3)), core["ɵdid"](52, 16384, null, 0, common["o" /* NgIf */], [core["ViewContainerRef"], core["TemplateRef"]], { ngIf: [0, "ngIf"] }, null), (_l()(), core["ɵeld"](53, 0, null, null, 9, "div", [["class", "form-group col-12"]], null, null, null, null, null)), (_l()(), core["ɵeld"](54, 0, null, null, 8, "omni-field", [["field", "cupomDesconto"], ["label", "Cupom de Desconto"]], null, null, null, field_component_ngfactory["b" /* View_FieldComponent_0 */], field_component_ngfactory["a" /* RenderType_FieldComponent */])), core["ɵdid"](55, 8437760, null, 0, field_component["a" /* FieldComponent */], [core["ElementRef"], core["Renderer2"]], { field: [0, "field"], form: [1, "form"], label: [2, "label"] }, null), (_l()(), core["ɵeld"](56, 0, null, 0, 6, "omni-typeahead", [["ngDefaultControl", ""], ["placeholder", "Informe o cupom de desconto pesquisar..."]], [[2, "ng-untouched", null], [2, "ng-touched", null], [2, "ng-pristine", null], [2, "ng-dirty", null], [2, "ng-valid", null], [2, "ng-invalid", null], [2, "ng-pending", null]], [[null, "valueChange"], [null, "input"], [null, "blur"], [null, "compositionstart"], [null, "compositionend"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("input" === en)) {
        var pd_0 = (core["ɵnov"](_v, 57)._handleInput($event.target.value) !== false);
        ad = (pd_0 && ad);
    } if (("blur" === en)) {
        var pd_1 = (core["ɵnov"](_v, 57).onTouched() !== false);
        ad = (pd_1 && ad);
    } if (("compositionstart" === en)) {
        var pd_2 = (core["ɵnov"](_v, 57)._compositionStart() !== false);
        ad = (pd_2 && ad);
    } if (("compositionend" === en)) {
        var pd_3 = (core["ɵnov"](_v, 57)._compositionEnd($event.target.value) !== false);
        ad = (pd_3 && ad);
    } if (("valueChange" === en)) {
        var pd_4 = ((_co.discountTicket = $event) !== false);
        ad = (pd_4 && ad);
    } return ad; }, typeahead_component_ngfactory["b" /* View_TypeaheadComponent_0 */], typeahead_component_ngfactory["a" /* RenderType_TypeaheadComponent */])), core["ɵdid"](57, 16384, null, 0, fesm2015_forms["e" /* DefaultValueAccessor */], [core["Renderer2"], core["ElementRef"], [2, fesm2015_forms["b" /* COMPOSITION_BUFFER_MODE */]]], null, null), core["ɵprd"](1024, null, fesm2015_forms["q" /* NG_VALUE_ACCESSOR */], function (p0_0) { return [p0_0]; }, [fesm2015_forms["e" /* DefaultValueAccessor */]]), core["ɵdid"](59, 540672, null, 0, fesm2015_forms["i" /* FormControlDirective */], [[8, null], [8, null], [6, fesm2015_forms["q" /* NG_VALUE_ACCESSOR */]], [2, fesm2015_forms["C" /* ɵangular_packages_forms_forms_q */]]], { form: [0, "form"] }, null), core["ɵprd"](2048, null, fesm2015_forms["r" /* NgControl */], null, [fesm2015_forms["i" /* FormControlDirective */]]), core["ɵdid"](61, 16384, null, 0, fesm2015_forms["s" /* NgControlStatus */], [[4, fesm2015_forms["r" /* NgControl */]]], null, null), core["ɵdid"](62, 114688, null, 0, typeahead_component["a" /* TypeaheadComponent */], [auth_service["a" /* AuthService */], autocomplete_service["a" /* AutoCompleteService */]], { form: [0, "form"], formControl: [1, "formControl"], entityType: [2, "entityType"], placeholder: [3, "placeholder"], value: [4, "value"] }, { valueChange: "valueChange" }), (_l()(), core["ɵand"](16777216, null, null, 1, null, View_OrderHistoryFilterComponent_5)), core["ɵdid"](64, 16384, null, 0, common["o" /* NgIf */], [core["ViewContainerRef"], core["TemplateRef"]], { ngIf: [0, "ngIf"] }, null), (_l()(), core["ɵeld"](65, 0, null, null, 10, "div", [["class", "form-group col-6"]], null, null, null, null, null)), (_l()(), core["ɵeld"](66, 0, null, null, 9, "omni-field", [["field", "dataHoraPedidoInicio"], ["label", "Data do Pedido"]], null, null, null, field_component_ngfactory["b" /* View_FieldComponent_0 */], field_component_ngfactory["a" /* RenderType_FieldComponent */])), core["ɵdid"](67, 8437760, null, 0, field_component["a" /* FieldComponent */], [core["ElementRef"], core["Renderer2"]], { field: [0, "field"], form: [1, "form"], label: [2, "label"] }, null), (_l()(), core["ɵeld"](68, 0, null, 0, 7, "input", [["formControlName", "dataHoraPedidoInicio"], ["fullWidth", ""], ["nbInput", ""], ["placeholder", "Entre"], ["status", "primary"], ["type", "text"]], [[2, "ng-untouched", null], [2, "ng-touched", null], [2, "ng-pristine", null], [2, "ng-dirty", null], [2, "ng-valid", null], [2, "ng-invalid", null], [2, "ng-pending", null], [2, "input-full-width", null], [2, "size-tiny", null], [2, "size-small", null], [2, "size-medium", null], [2, "size-large", null], [2, "size-giant", null], [2, "status-primary", null], [2, "status-info", null], [2, "status-success", null], [2, "status-warning", null], [2, "status-danger", null], [2, "status-basic", null], [2, "status-control", null], [2, "shape-rectangle", null], [2, "shape-semi-round", null], [2, "shape-round", null]], [[null, "keyup"], [null, "input"], [null, "blur"], [null, "compositionstart"], [null, "compositionend"]], function (_v, en, $event) { var ad = true; if (("keyup" === en)) {
        var pd_0 = (core["ɵnov"](_v, 69).inputKeyup($event) !== false);
        ad = (pd_0 && ad);
    } if (("input" === en)) {
        var pd_1 = (core["ɵnov"](_v, 70)._handleInput($event.target.value) !== false);
        ad = (pd_1 && ad);
    } if (("blur" === en)) {
        var pd_2 = (core["ɵnov"](_v, 70).onTouched() !== false);
        ad = (pd_2 && ad);
    } if (("compositionstart" === en)) {
        var pd_3 = (core["ɵnov"](_v, 70)._compositionStart() !== false);
        ad = (pd_3 && ad);
    } if (("compositionend" === en)) {
        var pd_4 = (core["ɵnov"](_v, 70)._compositionEnd($event.target.value) !== false);
        ad = (pd_4 && ad);
    } return ad; }, null, null)), core["ɵdid"](69, 81920, null, 0, br_mask["a" /* BrMaskDirective */], [[3, fesm2015_forms["l" /* FormGroupDirective */]], core["ElementRef"]], { brmasker: [0, "brmasker"], formControlName: [1, "formControlName"] }, null), core["ɵdid"](70, 16384, null, 0, fesm2015_forms["e" /* DefaultValueAccessor */], [core["Renderer2"], core["ElementRef"], [2, fesm2015_forms["b" /* COMPOSITION_BUFFER_MODE */]]], null, null), core["ɵprd"](1024, null, fesm2015_forms["q" /* NG_VALUE_ACCESSOR */], function (p0_0) { return [p0_0]; }, [fesm2015_forms["e" /* DefaultValueAccessor */]]), core["ɵdid"](72, 671744, null, 0, fesm2015_forms["j" /* FormControlName */], [[3, fesm2015_forms["d" /* ControlContainer */]], [8, null], [8, null], [6, fesm2015_forms["q" /* NG_VALUE_ACCESSOR */]], [2, fesm2015_forms["C" /* ɵangular_packages_forms_forms_q */]]], { name: [0, "name"] }, null), core["ɵprd"](2048, null, fesm2015_forms["r" /* NgControl */], null, [fesm2015_forms["j" /* FormControlName */]]), core["ɵdid"](74, 16384, null, 0, fesm2015_forms["s" /* NgControlStatus */], [[4, fesm2015_forms["r" /* NgControl */]]], null, null), core["ɵdid"](75, 16384, null, 0, fesm2015["ec" /* NbInputDirective */], [], { status: [0, "status"], fullWidth: [1, "fullWidth"] }, null), (_l()(), core["ɵeld"](76, 0, null, null, 10, "div", [["class", "form-group col-6"]], null, null, null, null, null)), (_l()(), core["ɵeld"](77, 0, null, null, 9, "omni-field", [["field", "dataHoraPedidoFim"], ["label", "Data do Pedido (Data final)"]], null, null, null, field_component_ngfactory["b" /* View_FieldComponent_0 */], field_component_ngfactory["a" /* RenderType_FieldComponent */])), core["ɵdid"](78, 8437760, null, 0, field_component["a" /* FieldComponent */], [core["ElementRef"], core["Renderer2"]], { field: [0, "field"], form: [1, "form"], label: [2, "label"], showHiddenLabel: [3, "showHiddenLabel"] }, null), (_l()(), core["ɵeld"](79, 0, null, 0, 7, "input", [["formControlName", "dataHoraPedidoFim"], ["fullWidth", ""], ["nbInput", ""], ["placeholder", "E"], ["status", "primary"], ["type", "text"]], [[2, "ng-untouched", null], [2, "ng-touched", null], [2, "ng-pristine", null], [2, "ng-dirty", null], [2, "ng-valid", null], [2, "ng-invalid", null], [2, "ng-pending", null], [2, "input-full-width", null], [2, "size-tiny", null], [2, "size-small", null], [2, "size-medium", null], [2, "size-large", null], [2, "size-giant", null], [2, "status-primary", null], [2, "status-info", null], [2, "status-success", null], [2, "status-warning", null], [2, "status-danger", null], [2, "status-basic", null], [2, "status-control", null], [2, "shape-rectangle", null], [2, "shape-semi-round", null], [2, "shape-round", null]], [[null, "keyup"], [null, "input"], [null, "blur"], [null, "compositionstart"], [null, "compositionend"]], function (_v, en, $event) { var ad = true; if (("keyup" === en)) {
        var pd_0 = (core["ɵnov"](_v, 80).inputKeyup($event) !== false);
        ad = (pd_0 && ad);
    } if (("input" === en)) {
        var pd_1 = (core["ɵnov"](_v, 81)._handleInput($event.target.value) !== false);
        ad = (pd_1 && ad);
    } if (("blur" === en)) {
        var pd_2 = (core["ɵnov"](_v, 81).onTouched() !== false);
        ad = (pd_2 && ad);
    } if (("compositionstart" === en)) {
        var pd_3 = (core["ɵnov"](_v, 81)._compositionStart() !== false);
        ad = (pd_3 && ad);
    } if (("compositionend" === en)) {
        var pd_4 = (core["ɵnov"](_v, 81)._compositionEnd($event.target.value) !== false);
        ad = (pd_4 && ad);
    } return ad; }, null, null)), core["ɵdid"](80, 81920, null, 0, br_mask["a" /* BrMaskDirective */], [[3, fesm2015_forms["l" /* FormGroupDirective */]], core["ElementRef"]], { brmasker: [0, "brmasker"], formControlName: [1, "formControlName"] }, null), core["ɵdid"](81, 16384, null, 0, fesm2015_forms["e" /* DefaultValueAccessor */], [core["Renderer2"], core["ElementRef"], [2, fesm2015_forms["b" /* COMPOSITION_BUFFER_MODE */]]], null, null), core["ɵprd"](1024, null, fesm2015_forms["q" /* NG_VALUE_ACCESSOR */], function (p0_0) { return [p0_0]; }, [fesm2015_forms["e" /* DefaultValueAccessor */]]), core["ɵdid"](83, 671744, null, 0, fesm2015_forms["j" /* FormControlName */], [[3, fesm2015_forms["d" /* ControlContainer */]], [8, null], [8, null], [6, fesm2015_forms["q" /* NG_VALUE_ACCESSOR */]], [2, fesm2015_forms["C" /* ɵangular_packages_forms_forms_q */]]], { name: [0, "name"] }, null), core["ɵprd"](2048, null, fesm2015_forms["r" /* NgControl */], null, [fesm2015_forms["j" /* FormControlName */]]), core["ɵdid"](85, 16384, null, 0, fesm2015_forms["s" /* NgControlStatus */], [[4, fesm2015_forms["r" /* NgControl */]]], null, null), core["ɵdid"](86, 16384, null, 0, fesm2015["ec" /* NbInputDirective */], [], { status: [0, "status"], fullWidth: [1, "fullWidth"] }, null), (_l()(), core["ɵeld"](87, 0, null, null, 9, "div", [["class", "row"]], null, null, null, null, null)), (_l()(), core["ɵeld"](88, 0, null, null, 0, "hr", [], null, null, null, null, null)), (_l()(), core["ɵeld"](89, 0, null, null, 3, "div", [["class", "form-group col-12"]], null, null, null, null, null)), (_l()(), core["ɵeld"](90, 0, null, null, 2, "button", [["fullWidth", ""], ["nbButton", ""], ["status", "primary"], ["type", "submit"]], [[2, "appearance-filled", null], [2, "appearance-outline", null], [2, "appearance-ghost", null], [2, "appearance-hero", null], [2, "full-width", null], [1, "aria-disabled", 0], [2, "btn-disabled", null], [1, "tabindex", 0], [2, "size-tiny", null], [2, "size-small", null], [2, "size-medium", null], [2, "size-large", null], [2, "size-giant", null], [2, "status-primary", null], [2, "status-info", null], [2, "status-success", null], [2, "status-warning", null], [2, "status-danger", null], [2, "status-basic", null], [2, "status-control", null], [2, "shape-rectangle", null], [2, "shape-round", null], [2, "shape-semi-round", null], [2, "icon-start", null], [2, "icon-end", null], [2, "transitions", null]], [[null, "click"]], function (_v, en, $event) { var ad = true; if (("click" === en)) {
        var pd_0 = (core["ɵnov"](_v, 91).onClick($event) !== false);
        ad = (pd_0 && ad);
    } return ad; }, index_ngfactory["M" /* View_NbButtonComponent_0 */], index_ngfactory["p" /* RenderType_NbButtonComponent */])), core["ɵdid"](91, 4243456, null, 0, fesm2015["L" /* NbButtonComponent */], [core["Renderer2"], core["ElementRef"], core["ChangeDetectorRef"]], { status: [0, "status"], fullWidth: [1, "fullWidth"], disabled: [2, "disabled"] }, null), (_l()(), core["ɵted"](-1, 0, [" Pesquisar "])), (_l()(), core["ɵeld"](93, 0, null, null, 3, "div", [["class", "form-group col-12"]], null, null, null, null, null)), (_l()(), core["ɵeld"](94, 0, null, null, 2, "button", [["fullWidth", ""], ["nbButton", ""], ["status", "primary"], ["type", "button"]], [[2, "appearance-filled", null], [2, "appearance-outline", null], [2, "appearance-ghost", null], [2, "appearance-hero", null], [2, "full-width", null], [1, "aria-disabled", 0], [2, "btn-disabled", null], [1, "tabindex", 0], [2, "size-tiny", null], [2, "size-small", null], [2, "size-medium", null], [2, "size-large", null], [2, "size-giant", null], [2, "status-primary", null], [2, "status-info", null], [2, "status-success", null], [2, "status-warning", null], [2, "status-danger", null], [2, "status-basic", null], [2, "status-control", null], [2, "shape-rectangle", null], [2, "shape-round", null], [2, "shape-semi-round", null], [2, "icon-start", null], [2, "icon-end", null], [2, "transitions", null]], [[null, "click"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("click" === en)) {
        var pd_0 = (core["ɵnov"](_v, 95).onClick($event) !== false);
        ad = (pd_0 && ad);
    } if (("click" === en)) {
        var pd_1 = (_co.onResetFilter() !== false);
        ad = (pd_1 && ad);
    } return ad; }, index_ngfactory["M" /* View_NbButtonComponent_0 */], index_ngfactory["p" /* RenderType_NbButtonComponent */])), core["ɵdid"](95, 4243456, null, 0, fesm2015["L" /* NbButtonComponent */], [core["Renderer2"], core["ElementRef"], core["ChangeDetectorRef"]], { status: [0, "status"], outline: [1, "outline"], fullWidth: [2, "fullWidth"], disabled: [3, "disabled"] }, null), (_l()(), core["ɵted"](-1, 0, [" Limpar "]))], function (_ck, _v) { var _co = _v.component; var currVal_7 = _co.formFilter; _ck(_v, 3, 0, currVal_7); var currVal_8 = "id"; var currVal_9 = _co.formFilter; var currVal_10 = "ID do Pedido"; _ck(_v, 9, 0, currVal_8, currVal_9, currVal_10); var currVal_34 = "id"; _ck(_v, 14, 0, currVal_34); var currVal_35 = "primary"; var currVal_36 = ""; _ck(_v, 17, 0, currVal_35, currVal_36); var currVal_37 = "clienteNome"; var currVal_38 = _co.formFilter; var currVal_39 = "Nome do Cliente"; _ck(_v, 21, 0, currVal_37, currVal_38, currVal_39); var currVal_64 = "100"; _ck(_v, 24, 0, currVal_64); var currVal_65 = "clienteNome"; _ck(_v, 27, 0, currVal_65); var currVal_66 = "primary"; var currVal_67 = ""; _ck(_v, 30, 0, currVal_66, currVal_67); var currVal_68 = "formaEntrega"; var currVal_69 = _co.formFilter; var currVal_70 = "Forma de Entrega"; _ck(_v, 33, 0, currVal_68, currVal_69, currVal_70); var currVal_71 = _co.selectedDeliveryMode; _ck(_v, 36, 0, currVal_71); var currVal_72 = _co.deliveryModeList; _ck(_v, 39, 0, currVal_72); var currVal_73 = "situacao"; var currVal_74 = _co.formFilter; var currVal_75 = "Situa\u00E7\u00E3o"; _ck(_v, 42, 0, currVal_73, currVal_74, currVal_75); var currVal_96 = "primary"; var currVal_97 = ""; var currVal_98 = "Selecione a Situa\u00E7\u00E3o do Pedido"; var currVal_99 = _co.selectedStatus; _ck(_v, 46, 0, currVal_96, currVal_97, currVal_98, currVal_99); var currVal_100 = _co.orderStatusList; _ck(_v, 50, 0, currVal_100); var currVal_101 = _co.hasCaster; _ck(_v, 52, 0, currVal_101); var currVal_102 = "cupomDesconto"; var currVal_103 = _co.formFilter; var currVal_104 = "Cupom de Desconto"; _ck(_v, 55, 0, currVal_102, currVal_103, currVal_104); var currVal_112 = _co.formFilter.get("disccountTicket"); _ck(_v, 59, 0, currVal_112); var currVal_113 = _co.formFilter; var currVal_114 = _co.formFilter.get("disccountTicket"); var currVal_115 = _co.discountTicketEntity; var currVal_116 = "Informe o cupom de desconto pesquisar..."; var currVal_117 = _co.discountTicket; _ck(_v, 62, 0, currVal_113, currVal_114, currVal_115, currVal_116, currVal_117); var currVal_118 = _co.orderAtTheTableIsAvailable; _ck(_v, 64, 0, currVal_118); var currVal_119 = "dataHoraPedidoInicio"; var currVal_120 = _co.formFilter; var currVal_121 = "Data do Pedido"; _ck(_v, 67, 0, currVal_119, currVal_120, currVal_121); var currVal_145 = _co.initialDateMask; var currVal_146 = "dataHoraPedidoInicio"; _ck(_v, 69, 0, currVal_145, currVal_146); var currVal_147 = "dataHoraPedidoInicio"; _ck(_v, 72, 0, currVal_147); var currVal_148 = "primary"; var currVal_149 = ""; _ck(_v, 75, 0, currVal_148, currVal_149); var currVal_150 = "dataHoraPedidoFim"; var currVal_151 = _co.formFilter; var currVal_152 = "Data do Pedido (Data final)"; var currVal_153 = true; _ck(_v, 78, 0, currVal_150, currVal_151, currVal_152, currVal_153); var currVal_177 = _co.finalDateMask; var currVal_178 = "dataHoraPedidoFim"; _ck(_v, 80, 0, currVal_177, currVal_178); var currVal_179 = "dataHoraPedidoFim"; _ck(_v, 83, 0, currVal_179); var currVal_180 = "primary"; var currVal_181 = ""; _ck(_v, 86, 0, currVal_180, currVal_181); var currVal_208 = "primary"; var currVal_209 = ""; var currVal_210 = _co.isDisabled; _ck(_v, 91, 0, currVal_208, currVal_209, currVal_210); var currVal_237 = "primary"; var currVal_238 = true; var currVal_239 = ""; var currVal_240 = _co.isDisabled; _ck(_v, 95, 0, currVal_237, currVal_238, currVal_239, currVal_240); }, function (_ck, _v) { var currVal_0 = core["ɵnov"](_v, 5).ngClassUntouched; var currVal_1 = core["ɵnov"](_v, 5).ngClassTouched; var currVal_2 = core["ɵnov"](_v, 5).ngClassPristine; var currVal_3 = core["ɵnov"](_v, 5).ngClassDirty; var currVal_4 = core["ɵnov"](_v, 5).ngClassValid; var currVal_5 = core["ɵnov"](_v, 5).ngClassInvalid; var currVal_6 = core["ɵnov"](_v, 5).ngClassPending; _ck(_v, 1, 0, currVal_0, currVal_1, currVal_2, currVal_3, currVal_4, currVal_5, currVal_6); var currVal_11 = core["ɵnov"](_v, 16).ngClassUntouched; var currVal_12 = core["ɵnov"](_v, 16).ngClassTouched; var currVal_13 = core["ɵnov"](_v, 16).ngClassPristine; var currVal_14 = core["ɵnov"](_v, 16).ngClassDirty; var currVal_15 = core["ɵnov"](_v, 16).ngClassValid; var currVal_16 = core["ɵnov"](_v, 16).ngClassInvalid; var currVal_17 = core["ɵnov"](_v, 16).ngClassPending; var currVal_18 = core["ɵnov"](_v, 17).fullWidth; var currVal_19 = core["ɵnov"](_v, 17).tiny; var currVal_20 = core["ɵnov"](_v, 17).small; var currVal_21 = core["ɵnov"](_v, 17).medium; var currVal_22 = core["ɵnov"](_v, 17).large; var currVal_23 = core["ɵnov"](_v, 17).giant; var currVal_24 = core["ɵnov"](_v, 17).primary; var currVal_25 = core["ɵnov"](_v, 17).info; var currVal_26 = core["ɵnov"](_v, 17).success; var currVal_27 = core["ɵnov"](_v, 17).warning; var currVal_28 = core["ɵnov"](_v, 17).danger; var currVal_29 = core["ɵnov"](_v, 17).basic; var currVal_30 = core["ɵnov"](_v, 17).control; var currVal_31 = core["ɵnov"](_v, 17).rectangle; var currVal_32 = core["ɵnov"](_v, 17).semiRound; var currVal_33 = core["ɵnov"](_v, 17).round; _ck(_v, 10, 1, [currVal_11, currVal_12, currVal_13, currVal_14, currVal_15, currVal_16, currVal_17, currVal_18, currVal_19, currVal_20, currVal_21, currVal_22, currVal_23, currVal_24, currVal_25, currVal_26, currVal_27, currVal_28, currVal_29, currVal_30, currVal_31, currVal_32, currVal_33]); var currVal_40 = (core["ɵnov"](_v, 24).maxlength ? core["ɵnov"](_v, 24).maxlength : null); var currVal_41 = core["ɵnov"](_v, 29).ngClassUntouched; var currVal_42 = core["ɵnov"](_v, 29).ngClassTouched; var currVal_43 = core["ɵnov"](_v, 29).ngClassPristine; var currVal_44 = core["ɵnov"](_v, 29).ngClassDirty; var currVal_45 = core["ɵnov"](_v, 29).ngClassValid; var currVal_46 = core["ɵnov"](_v, 29).ngClassInvalid; var currVal_47 = core["ɵnov"](_v, 29).ngClassPending; var currVal_48 = core["ɵnov"](_v, 30).fullWidth; var currVal_49 = core["ɵnov"](_v, 30).tiny; var currVal_50 = core["ɵnov"](_v, 30).small; var currVal_51 = core["ɵnov"](_v, 30).medium; var currVal_52 = core["ɵnov"](_v, 30).large; var currVal_53 = core["ɵnov"](_v, 30).giant; var currVal_54 = core["ɵnov"](_v, 30).primary; var currVal_55 = core["ɵnov"](_v, 30).info; var currVal_56 = core["ɵnov"](_v, 30).success; var currVal_57 = core["ɵnov"](_v, 30).warning; var currVal_58 = core["ɵnov"](_v, 30).danger; var currVal_59 = core["ɵnov"](_v, 30).basic; var currVal_60 = core["ɵnov"](_v, 30).control; var currVal_61 = core["ɵnov"](_v, 30).rectangle; var currVal_62 = core["ɵnov"](_v, 30).semiRound; var currVal_63 = core["ɵnov"](_v, 30).round; _ck(_v, 22, 1, [currVal_40, currVal_41, currVal_42, currVal_43, currVal_44, currVal_45, currVal_46, currVal_47, currVal_48, currVal_49, currVal_50, currVal_51, currVal_52, currVal_53, currVal_54, currVal_55, currVal_56, currVal_57, currVal_58, currVal_59, currVal_60, currVal_61, currVal_62, currVal_63]); var currVal_76 = core["ɵnov"](_v, 46).outline; var currVal_77 = core["ɵnov"](_v, 46).filled; var currVal_78 = core["ɵnov"](_v, 46).hero; var currVal_79 = core["ɵnov"](_v, 46).fullWidth; var currVal_80 = core["ɵnov"](_v, 46).isOpen; var currVal_81 = core["ɵnov"](_v, 46).tiny; var currVal_82 = core["ɵnov"](_v, 46).small; var currVal_83 = core["ɵnov"](_v, 46).medium; var currVal_84 = core["ɵnov"](_v, 46).large; var currVal_85 = core["ɵnov"](_v, 46).giant; var currVal_86 = core["ɵnov"](_v, 46).primary; var currVal_87 = core["ɵnov"](_v, 46).info; var currVal_88 = core["ɵnov"](_v, 46).success; var currVal_89 = core["ɵnov"](_v, 46).warning; var currVal_90 = core["ɵnov"](_v, 46).danger; var currVal_91 = core["ɵnov"](_v, 46).basic; var currVal_92 = core["ɵnov"](_v, 46).control; var currVal_93 = core["ɵnov"](_v, 46).rectangle; var currVal_94 = core["ɵnov"](_v, 46).round; var currVal_95 = core["ɵnov"](_v, 46).semiRound; _ck(_v, 43, 1, [currVal_76, currVal_77, currVal_78, currVal_79, currVal_80, currVal_81, currVal_82, currVal_83, currVal_84, currVal_85, currVal_86, currVal_87, currVal_88, currVal_89, currVal_90, currVal_91, currVal_92, currVal_93, currVal_94, currVal_95]); var currVal_105 = core["ɵnov"](_v, 61).ngClassUntouched; var currVal_106 = core["ɵnov"](_v, 61).ngClassTouched; var currVal_107 = core["ɵnov"](_v, 61).ngClassPristine; var currVal_108 = core["ɵnov"](_v, 61).ngClassDirty; var currVal_109 = core["ɵnov"](_v, 61).ngClassValid; var currVal_110 = core["ɵnov"](_v, 61).ngClassInvalid; var currVal_111 = core["ɵnov"](_v, 61).ngClassPending; _ck(_v, 56, 0, currVal_105, currVal_106, currVal_107, currVal_108, currVal_109, currVal_110, currVal_111); var currVal_122 = core["ɵnov"](_v, 74).ngClassUntouched; var currVal_123 = core["ɵnov"](_v, 74).ngClassTouched; var currVal_124 = core["ɵnov"](_v, 74).ngClassPristine; var currVal_125 = core["ɵnov"](_v, 74).ngClassDirty; var currVal_126 = core["ɵnov"](_v, 74).ngClassValid; var currVal_127 = core["ɵnov"](_v, 74).ngClassInvalid; var currVal_128 = core["ɵnov"](_v, 74).ngClassPending; var currVal_129 = core["ɵnov"](_v, 75).fullWidth; var currVal_130 = core["ɵnov"](_v, 75).tiny; var currVal_131 = core["ɵnov"](_v, 75).small; var currVal_132 = core["ɵnov"](_v, 75).medium; var currVal_133 = core["ɵnov"](_v, 75).large; var currVal_134 = core["ɵnov"](_v, 75).giant; var currVal_135 = core["ɵnov"](_v, 75).primary; var currVal_136 = core["ɵnov"](_v, 75).info; var currVal_137 = core["ɵnov"](_v, 75).success; var currVal_138 = core["ɵnov"](_v, 75).warning; var currVal_139 = core["ɵnov"](_v, 75).danger; var currVal_140 = core["ɵnov"](_v, 75).basic; var currVal_141 = core["ɵnov"](_v, 75).control; var currVal_142 = core["ɵnov"](_v, 75).rectangle; var currVal_143 = core["ɵnov"](_v, 75).semiRound; var currVal_144 = core["ɵnov"](_v, 75).round; _ck(_v, 68, 1, [currVal_122, currVal_123, currVal_124, currVal_125, currVal_126, currVal_127, currVal_128, currVal_129, currVal_130, currVal_131, currVal_132, currVal_133, currVal_134, currVal_135, currVal_136, currVal_137, currVal_138, currVal_139, currVal_140, currVal_141, currVal_142, currVal_143, currVal_144]); var currVal_154 = core["ɵnov"](_v, 85).ngClassUntouched; var currVal_155 = core["ɵnov"](_v, 85).ngClassTouched; var currVal_156 = core["ɵnov"](_v, 85).ngClassPristine; var currVal_157 = core["ɵnov"](_v, 85).ngClassDirty; var currVal_158 = core["ɵnov"](_v, 85).ngClassValid; var currVal_159 = core["ɵnov"](_v, 85).ngClassInvalid; var currVal_160 = core["ɵnov"](_v, 85).ngClassPending; var currVal_161 = core["ɵnov"](_v, 86).fullWidth; var currVal_162 = core["ɵnov"](_v, 86).tiny; var currVal_163 = core["ɵnov"](_v, 86).small; var currVal_164 = core["ɵnov"](_v, 86).medium; var currVal_165 = core["ɵnov"](_v, 86).large; var currVal_166 = core["ɵnov"](_v, 86).giant; var currVal_167 = core["ɵnov"](_v, 86).primary; var currVal_168 = core["ɵnov"](_v, 86).info; var currVal_169 = core["ɵnov"](_v, 86).success; var currVal_170 = core["ɵnov"](_v, 86).warning; var currVal_171 = core["ɵnov"](_v, 86).danger; var currVal_172 = core["ɵnov"](_v, 86).basic; var currVal_173 = core["ɵnov"](_v, 86).control; var currVal_174 = core["ɵnov"](_v, 86).rectangle; var currVal_175 = core["ɵnov"](_v, 86).semiRound; var currVal_176 = core["ɵnov"](_v, 86).round; _ck(_v, 79, 1, [currVal_154, currVal_155, currVal_156, currVal_157, currVal_158, currVal_159, currVal_160, currVal_161, currVal_162, currVal_163, currVal_164, currVal_165, currVal_166, currVal_167, currVal_168, currVal_169, currVal_170, currVal_171, currVal_172, currVal_173, currVal_174, currVal_175, currVal_176]); var currVal_182 = core["ɵnov"](_v, 91).filled; var currVal_183 = core["ɵnov"](_v, 91).outline; var currVal_184 = core["ɵnov"](_v, 91).ghost; var currVal_185 = core["ɵnov"](_v, 91).hero; var currVal_186 = core["ɵnov"](_v, 91).fullWidth; var currVal_187 = core["ɵnov"](_v, 91).disabled; var currVal_188 = core["ɵnov"](_v, 91).disabled; var currVal_189 = core["ɵnov"](_v, 91).tabbable; var currVal_190 = core["ɵnov"](_v, 91).tiny; var currVal_191 = core["ɵnov"](_v, 91).small; var currVal_192 = core["ɵnov"](_v, 91).medium; var currVal_193 = core["ɵnov"](_v, 91).large; var currVal_194 = core["ɵnov"](_v, 91).giant; var currVal_195 = core["ɵnov"](_v, 91).primary; var currVal_196 = core["ɵnov"](_v, 91).info; var currVal_197 = core["ɵnov"](_v, 91).success; var currVal_198 = core["ɵnov"](_v, 91).warning; var currVal_199 = core["ɵnov"](_v, 91).danger; var currVal_200 = core["ɵnov"](_v, 91).basic; var currVal_201 = core["ɵnov"](_v, 91).control; var currVal_202 = core["ɵnov"](_v, 91).rectangle; var currVal_203 = core["ɵnov"](_v, 91).round; var currVal_204 = core["ɵnov"](_v, 91).semiRound; var currVal_205 = core["ɵnov"](_v, 91).iconLeft; var currVal_206 = core["ɵnov"](_v, 91).iconRight; var currVal_207 = core["ɵnov"](_v, 91).transitions; _ck(_v, 90, 1, [currVal_182, currVal_183, currVal_184, currVal_185, currVal_186, currVal_187, currVal_188, currVal_189, currVal_190, currVal_191, currVal_192, currVal_193, currVal_194, currVal_195, currVal_196, currVal_197, currVal_198, currVal_199, currVal_200, currVal_201, currVal_202, currVal_203, currVal_204, currVal_205, currVal_206, currVal_207]); var currVal_211 = core["ɵnov"](_v, 95).filled; var currVal_212 = core["ɵnov"](_v, 95).outline; var currVal_213 = core["ɵnov"](_v, 95).ghost; var currVal_214 = core["ɵnov"](_v, 95).hero; var currVal_215 = core["ɵnov"](_v, 95).fullWidth; var currVal_216 = core["ɵnov"](_v, 95).disabled; var currVal_217 = core["ɵnov"](_v, 95).disabled; var currVal_218 = core["ɵnov"](_v, 95).tabbable; var currVal_219 = core["ɵnov"](_v, 95).tiny; var currVal_220 = core["ɵnov"](_v, 95).small; var currVal_221 = core["ɵnov"](_v, 95).medium; var currVal_222 = core["ɵnov"](_v, 95).large; var currVal_223 = core["ɵnov"](_v, 95).giant; var currVal_224 = core["ɵnov"](_v, 95).primary; var currVal_225 = core["ɵnov"](_v, 95).info; var currVal_226 = core["ɵnov"](_v, 95).success; var currVal_227 = core["ɵnov"](_v, 95).warning; var currVal_228 = core["ɵnov"](_v, 95).danger; var currVal_229 = core["ɵnov"](_v, 95).basic; var currVal_230 = core["ɵnov"](_v, 95).control; var currVal_231 = core["ɵnov"](_v, 95).rectangle; var currVal_232 = core["ɵnov"](_v, 95).round; var currVal_233 = core["ɵnov"](_v, 95).semiRound; var currVal_234 = core["ɵnov"](_v, 95).iconLeft; var currVal_235 = core["ɵnov"](_v, 95).iconRight; var currVal_236 = core["ɵnov"](_v, 95).transitions; _ck(_v, 94, 1, [currVal_211, currVal_212, currVal_213, currVal_214, currVal_215, currVal_216, currVal_217, currVal_218, currVal_219, currVal_220, currVal_221, currVal_222, currVal_223, currVal_224, currVal_225, currVal_226, currVal_227, currVal_228, currVal_229, currVal_230, currVal_231, currVal_232, currVal_233, currVal_234, currVal_235, currVal_236]); }); }
function View_OrderHistoryFilterComponent_Host_0(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 1, "omni-order-history-filter", [], null, null, null, View_OrderHistoryFilterComponent_0, RenderType_OrderHistoryFilterComponent)), core["ɵdid"](1, 114688, null, 0, order_history_filter_component_OrderHistoryFilterComponent, [fesm2015_forms["g" /* FormBuilder */], auth_service["a" /* AuthService */], autocomplete_service["a" /* AutoCompleteService */], empresa_service["a" /* EmpresaService */], messages_service["a" /* MessagesService */], pedido_service["a" /* PedidoService */], fesm2015["Ld" /* NbToastrService */]], null, null)], function (_ck, _v) { _ck(_v, 1, 0); }, null); }
var OrderHistoryFilterComponentNgFactory = core["ɵccf"]("omni-order-history-filter", order_history_filter_component_OrderHistoryFilterComponent, View_OrderHistoryFilterComponent_Host_0, { pageId: "pageId", currentPage: "currentPage" }, { doFilter: "doFilter" }, []);


// EXTERNAL MODULE: ./src/app/shared/ui/dialogs/orders/order-detail-dialog/order-detail-dialog.component.ngfactory.js + 3 modules
var order_detail_dialog_component_ngfactory = __webpack_require__("lbLe");

// EXTERNAL MODULE: ./src/app/shared/ui/dialogs/orders/order-detail-dialog/order-detail-dialog.component.ts
var order_detail_dialog_component = __webpack_require__("e4EW");

// EXTERNAL MODULE: ./src/app/shared/services/printer.service.ts + 1 modules
var printer_service = __webpack_require__("XElT");

// EXTERNAL MODULE: ./node_modules/rxjs/_esm2015/internal/Subscription.js + 1 modules
var Subscription = __webpack_require__("quSY");

// EXTERNAL MODULE: ./src/app/shared/base/base-form/base-list-component.ts
var base_list_component = __webpack_require__("Ki94");

// EXTERNAL MODULE: ./src/app/shared/consts/actions.ts
var actions = __webpack_require__("CIyo");

// EXTERNAL MODULE: ./src/app/shared/enums/forma-de-entrega.ts
var forma_de_entrega = __webpack_require__("HsDj");

// EXTERNAL MODULE: ./src/app/shared/consts/order-options.ts
var order_options = __webpack_require__("a7yC");

// EXTERNAL MODULE: ./src/app/shared/utils/number.util.ts
var number_util = __webpack_require__("qzEW");

// CONCATENATED MODULE: ./src/app/pages/reports/order-history/order-history-list/order-history-list.component.ts












const CUSTOMER_ID = 'clienteId';
const FINAL_OFFICE_HOUR = 'dataHoraPedidoFim';
const INITIAL_OFFICE_HOUR = 'dataHoraPedidoInicio';
class order_history_list_component_OrderHistoryListComponent extends base_list_component["a" /* BaseListComponent */] {
    constructor(activeRoute, cd, router, customerService, dialogService, menuService, orderService, requestService, toastrService, alertService, authService, messagesService) {
        super(alertService, authService, messagesService);
        this.activeRoute = activeRoute;
        this.cd = cd;
        this.router = router;
        this.customerService = customerService;
        this.dialogService = dialogService;
        this.menuService = menuService;
        this.orderService = orderService;
        this.requestService = requestService;
        this.toastrService = toastrService;
        this.canBackToCustomer = false;
        this.historyByCustomer = false;
        this.onItemClick$ = new Subscription["a" /* Subscription */]();
        this.customerService.companyId = this.authService.loggedUser.id;
        this.orderService.companyId = this.authService.loggedUser.id;
    }
    get barsIcon() {
        return free_solid_svg_icons["faBars"];
    }
    get cartIcon() {
        return free_solid_svg_icons["faShoppingCart"];
    }
    get eyeIcon() {
        return free_solid_svg_icons["faEye"];
    }
    get flaskIcon() {
        return free_solid_svg_icons["faFlask"];
    }
    get faEllipsisV() {
        return free_solid_svg_icons["faEllipsisV"];
    }
    ngOnDestroy() {
        this.onItemClick$.unsubscribe();
    }
    ngOnInit() {
        const id = this.activeRoute.snapshot.params.id || null;
        if (id && id > 0) {
            this.canBackToCustomer = true;
            this.historyByCustomer = true;
            this.customerService.get(id).subscribe(customer => this.loadOrderHistoryByCustomer(customer), (resp) => this.requestService.handleError(resp, this.toastrService));
            return;
        }
        else {
            this.list();
        }
        this.initGridContextMenu();
    }
    applyFilters(filterList) {
        this.currentPage = 1;
        this.filterList = filterList;
        this.historyByCustomer = this.filterList.filter(filter => filter.key === CUSTOMER_ID).length > 0;
        this.formFilterRef.closeForm();
        this.orderHistoryFilterRef.updateFormFilter(this.filterList);
        this.filterList.forEach(filter => {
            if (filter.key === INITIAL_OFFICE_HOUR || filter.key === FINAL_OFFICE_HOUR) {
                if (!number_util["a" /* NumberUtil */].isNumber(filter.value)) {
                    filter.value += filter.key === FINAL_OFFICE_HOUR ? ' 23:59' : ' 00:00';
                    filter.value = date_util["a" /* DateUtil */].parseToDateTime(filter.value).getTime();
                }
            }
        });
        this.addCriteria();
    }
    applyPhoneMask(phone) {
        return string_util["a" /* StringUtil */].formatPhone(phone);
    }
    backToCustomer() {
        this.router.navigate(['admin/customers']);
    }
    delete() { }
    edit(id) { }
    getCustomerName(name) {
        return string_util["a" /* StringUtil */].upperCaseOnlyFirstLetters(name);
    }
    getDeliveryMode(deliveryMode) {
        return this.orderService.getDeliveryMode(deliveryMode).descricao;
    }
    getOrderStatusColor(order) {
        return this.orderService.getOrderStatusColor(order);
    }
    getOrderType(order) {
        if (order.rodizio) {
            return 'Rodízio';
        }
        return this.orderService.getDeliveryMode(order.formaEntrega).descricao;
    }
    getTotalOrder(order) {
        return Object(common["B" /* formatCurrency */])(this.orderService.getTotalOrder(order), 'pt-BR', 'R$');
    }
    isDelivery(order) {
        return order.formaEntrega === forma_de_entrega["a" /* FORMA_DE_ENTREGA */].DELIVERY.referencia;
    }
    isOrderAtTheTable(order) {
        return order.formaEntrega === forma_de_entrega["a" /* FORMA_DE_ENTREGA */].NA_MESA.referencia;
    }
    initGridContextMenu() {
        this.onItemClick$ = this.menuService.onItemClick().subscribe(menu => {
            const data = menu.item.data;
            if (data && data.action) {
                switch (data.action) {
                    case actions["a" /* ACTIONS */].SHOW_ORDER_DETAIL:
                        this.showOrderDetail(data.order);
                        break;
                    case actions["a" /* ACTIONS */].VIEW_BY_CUSTOMER:
                        this.loadOrderHistoryByCustomer(data.order.cliente);
                        break;
                }
            }
        });
    }
    list() {
        this.datasource = [];
        this.loadState();
        this.orderService.filterHistory(this.searchCriteria, this.currentPage, ['id'], order_options["a" /* ORDER_OPTIONS */].DESCENDING, '30').subscribe(resultSet => {
            this.loadState();
            this.resultSet = resultSet;
            this.resultSet.content.forEach(order => {
                const item = {
                    item: order,
                    itemMenu: this.makeMenu(order)
                };
                this.datasource.push(item);
            });
            this.cd.detectChanges();
        }, (resp) => {
            this.loadState();
            this.requestService.handleError(resp, this.toastrService);
            this.cd.detectChanges();
        });
    }
    loadOrderHistoryByCustomer(customer) {
        this.customer = customer;
        this.historyByCustomer = true;
        if (this.filterList.length === 0 ||
            this.filterList.filter(filter => filter.key === CUSTOMER_ID).length === 0) {
            this.filterList.push({
                key: CUSTOMER_ID,
                label: 'Histórico de Pedidos do Cliente',
                operator: query_operators["a" /* QUERY_OPERATORS */].EQUALS,
                value: this.customer.id,
                tagValue: this.customer.nome
            });
        }
        else {
            this.filterList.filter(filter => filter.key === CUSTOMER_ID)[0].value = this.customer.id;
        }
        this.addCriteria();
    }
    loggedAsAdmin() {
        return this.authService.loggedUser.logadoComoAdm;
    }
    makeMenu(order) {
        if (this.historyByCustomer) {
            return [{
                    icon: 'search',
                    title: 'Detalhes do Pedido',
                    data: { action: actions["a" /* ACTIONS */].SHOW_ORDER_DETAIL, order }
                }];
        }
        else {
            return [
                {
                    icon: 'search',
                    title: 'Detalhes do Pedido',
                    data: { action: actions["a" /* ACTIONS */].SHOW_ORDER_DETAIL, order }
                },
                {
                    icon: 'shopping-bag-outline',
                    title: `Pedidos Anteriores`,
                    data: { action: actions["a" /* ACTIONS */].VIEW_BY_CUSTOMER, order }
                }
            ];
        }
    }
    onMarkAsTest(order) {
        order.teste = order.teste;
        this.loadState();
        this.orderService.toogleTestMode(order.id).subscribe(() => {
            this.loadState();
            this.list();
        }, (resp) => {
            this.loadState();
            this.requestService.handleError(resp, this.toastrService);
        });
    }
    setConfirmMessage() { }
    showOrderDetail(order) {
        this.orderService.getOrderDetail(order.id).subscribe(detailedOrder => {
            this.detailDialogRef.order = detailedOrder;
            this.detailDialogRef.makePrintMenu();
            this.detailDialogRef.dialogRef = this.dialogService.open(this.detailDialogRef.dialogTemplateRef, {
                hasScroll: true
            });
        });
    }
}

// EXTERNAL MODULE: ./node_modules/@angular/router/fesm2015/router.js + 5 modules
var fesm2015_router = __webpack_require__("iInd");

// EXTERNAL MODULE: ./src/app/shared/services/cliente.service.ts
var cliente_service = __webpack_require__("eCBd");

// EXTERNAL MODULE: ./src/app/shared/services/request.service.ts
var request_service = __webpack_require__("a9NN");

// EXTERNAL MODULE: ./src/app/shared/services/alert.service.ts
var alert_service = __webpack_require__("Cmua");

// CONCATENATED MODULE: ./src/app/pages/reports/order-history/order-history-list/order-history-list.component.ngfactory.js
/**
 * @fileoverview This file was generated by the Angular template compiler. Do not edit.
 *
 * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes}
 * tslint:disable
 */ 


































var styles_OrderHistoryListComponent = [styles];
var RenderType_OrderHistoryListComponent = core["ɵcrt"]({ encapsulation: 0, styles: styles_OrderHistoryListComponent, data: {} });

function View_OrderHistoryListComponent_1(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 1, "omni-pagination", [], null, [[null, "pageChange"], [null, "click"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("click" === en)) {
        var pd_0 = (core["ɵnov"](_v, 1).onClick($event) !== false);
        ad = (pd_0 && ad);
    } if (("pageChange" === en)) {
        var pd_1 = (_co.changePage($event) !== false);
        ad = (pd_1 && ad);
    } return ad; }, pagination_component_ngfactory["b" /* View_PaginationComponent_0 */], pagination_component_ngfactory["a" /* RenderType_PaginationComponent */])), core["ɵdid"](1, 114688, null, 0, pagination_component["a" /* PaginationComponent */], [], { currentPage: [0, "currentPage"], totalPages: [1, "totalPages"] }, { pageChange: "pageChange" })], function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.currentPage; var currVal_1 = _co.resultSet.totalPages; _ck(_v, 1, 0, currVal_0, currVal_1); }, null); }
function View_OrderHistoryListComponent_4(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 6, "button", [["class", "ml-2"], ["nbButton", ""], ["size", "tiny"], ["status", "info"], ["type", "button"]], [[1, "disabled", 0], [2, "appearance-filled", null], [2, "appearance-outline", null], [2, "appearance-ghost", null], [2, "appearance-hero", null], [2, "full-width", null], [1, "aria-disabled", 0], [2, "btn-disabled", null], [1, "tabindex", 0], [2, "size-tiny", null], [2, "size-small", null], [2, "size-medium", null], [2, "size-large", null], [2, "size-giant", null], [2, "status-primary", null], [2, "status-info", null], [2, "status-success", null], [2, "status-warning", null], [2, "status-danger", null], [2, "status-basic", null], [2, "status-control", null], [2, "shape-rectangle", null], [2, "shape-round", null], [2, "shape-semi-round", null], [2, "icon-start", null], [2, "icon-end", null], [2, "transitions", null]], [[null, "click"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("click" === en)) {
        var pd_0 = (core["ɵnov"](_v, 1).onClick($event) !== false);
        ad = (pd_0 && ad);
    } if (("click" === en)) {
        var pd_1 = (_co.onMarkAsTest(_v.parent.context.$implicit.item) !== false);
        ad = (pd_1 && ad);
    } return ad; }, index_ngfactory["M" /* View_NbButtonComponent_0 */], index_ngfactory["p" /* RenderType_NbButtonComponent */])), core["ɵdid"](1, 4243456, null, 0, fesm2015["L" /* NbButtonComponent */], [core["Renderer2"], core["ElementRef"], core["ChangeDetectorRef"]], { size: [0, "size"], status: [1, "status"], outline: [2, "outline"] }, null), core["ɵprd"](512, null, fesm2015["Tb" /* NbDynamicOverlay */], fesm2015["Tb" /* NbDynamicOverlay */], [fesm2015["Gc" /* NbOverlayService */], core["ComponentFactoryResolver"], core["NgZone"], fesm2015["Bc" /* NbOverlayContainer */]]), core["ɵprd"](512, null, fesm2015["Ub" /* NbDynamicOverlayHandler */], fesm2015["Ub" /* NbDynamicOverlayHandler */], [fesm2015["Oc" /* NbPositionBuilderService */], fesm2015["de" /* NbTriggerStrategyBuilderService */], fesm2015["Tb" /* NbDynamicOverlay */]]), core["ɵdid"](4, 4931584, null, 0, fesm2015["Pd" /* NbTooltipDirective */], [core["ElementRef"], fesm2015["Ub" /* NbDynamicOverlayHandler */]], { content: [0, "content"] }, null), (_l()(), core["ɵeld"](5, 0, null, 0, 1, "fa-icon", [["class", "ng-fa-icon"]], [[1, "title", 0], [8, "innerHTML", 1]], null, null, angular_fontawesome_ngfactory["d" /* View_FaIconComponent_0 */], angular_fontawesome_ngfactory["c" /* RenderType_FaIconComponent */])), core["ɵdid"](6, 573440, null, 0, angular_fontawesome["c" /* FaIconComponent */], [platform_browser["b" /* DomSanitizer */], angular_fontawesome["a" /* FaConfig */], angular_fontawesome["d" /* FaIconLibrary */], [2, angular_fontawesome["i" /* FaStackItemSizeDirective */]]], { icon: [0, "icon"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_27 = "tiny"; var currVal_28 = "info"; var currVal_29 = (!_v.parent.context.$implicit.item.teste ? true : false); _ck(_v, 1, 0, currVal_27, currVal_28, currVal_29); var currVal_30 = core["ɵinlineInterpolate"](1, "", (_v.parent.context.$implicit.item.teste ? "Desmarcar" : "Marcar"), " Pedido como teste"); _ck(_v, 4, 0, currVal_30); var currVal_33 = _co.flaskIcon; _ck(_v, 6, 0, currVal_33); }, function (_ck, _v) { var _co = _v.component; var currVal_0 = (_co.isLoading ? true : null); var currVal_1 = core["ɵnov"](_v, 1).filled; var currVal_2 = core["ɵnov"](_v, 1).outline; var currVal_3 = core["ɵnov"](_v, 1).ghost; var currVal_4 = core["ɵnov"](_v, 1).hero; var currVal_5 = core["ɵnov"](_v, 1).fullWidth; var currVal_6 = core["ɵnov"](_v, 1).disabled; var currVal_7 = core["ɵnov"](_v, 1).disabled; var currVal_8 = core["ɵnov"](_v, 1).tabbable; var currVal_9 = core["ɵnov"](_v, 1).tiny; var currVal_10 = core["ɵnov"](_v, 1).small; var currVal_11 = core["ɵnov"](_v, 1).medium; var currVal_12 = core["ɵnov"](_v, 1).large; var currVal_13 = core["ɵnov"](_v, 1).giant; var currVal_14 = core["ɵnov"](_v, 1).primary; var currVal_15 = core["ɵnov"](_v, 1).info; var currVal_16 = core["ɵnov"](_v, 1).success; var currVal_17 = core["ɵnov"](_v, 1).warning; var currVal_18 = core["ɵnov"](_v, 1).danger; var currVal_19 = core["ɵnov"](_v, 1).basic; var currVal_20 = core["ɵnov"](_v, 1).control; var currVal_21 = core["ɵnov"](_v, 1).rectangle; var currVal_22 = core["ɵnov"](_v, 1).round; var currVal_23 = core["ɵnov"](_v, 1).semiRound; var currVal_24 = core["ɵnov"](_v, 1).iconLeft; var currVal_25 = core["ɵnov"](_v, 1).iconRight; var currVal_26 = core["ɵnov"](_v, 1).transitions; _ck(_v, 0, 1, [currVal_0, currVal_1, currVal_2, currVal_3, currVal_4, currVal_5, currVal_6, currVal_7, currVal_8, currVal_9, currVal_10, currVal_11, currVal_12, currVal_13, currVal_14, currVal_15, currVal_16, currVal_17, currVal_18, currVal_19, currVal_20, currVal_21, currVal_22, currVal_23, currVal_24, currVal_25, currVal_26]); var currVal_31 = core["ɵnov"](_v, 6).title; var currVal_32 = core["ɵnov"](_v, 6).renderedIconHTML; _ck(_v, 5, 0, currVal_31, currVal_32); }); }
function View_OrderHistoryListComponent_5(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 1, "div", [["class", "flex-grow-1"]], null, null, null, null, null)), (_l()(), core["ɵted"](1, null, [" ", " - Mesa ", " "]))], null, function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.getCustomerName(_v.parent.context.$implicit.item.nomeClienteMesa); var currVal_1 = _v.parent.context.$implicit.item.mesa; _ck(_v, 1, 0, currVal_0, currVal_1); }); }
function View_OrderHistoryListComponent_6(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 1, "div", [["class", "flex-grow-1"]], null, null, null, null, null)), (_l()(), core["ɵted"](1, null, [" ", " "]))], null, function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.getCustomerName(_v.parent.context.$implicit.item.cliente.nome); _ck(_v, 1, 0, currVal_0); }); }
function View_OrderHistoryListComponent_3(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 26, "tr", [], null, null, null, null, null)), (_l()(), core["ɵeld"](1, 0, null, null, 7, "td", [["class", "text-center"]], null, null, null, null, null)), (_l()(), core["ɵeld"](2, 0, null, null, 4, "button", [["class", "details"], ["ghost", ""], ["nbButton", ""], ["size", "small"]], [[2, "appearance-filled", null], [2, "appearance-outline", null], [2, "appearance-ghost", null], [2, "appearance-hero", null], [2, "full-width", null], [1, "aria-disabled", 0], [2, "btn-disabled", null], [1, "tabindex", 0], [2, "size-tiny", null], [2, "size-small", null], [2, "size-medium", null], [2, "size-large", null], [2, "size-giant", null], [2, "status-primary", null], [2, "status-info", null], [2, "status-success", null], [2, "status-warning", null], [2, "status-danger", null], [2, "status-basic", null], [2, "status-control", null], [2, "shape-rectangle", null], [2, "shape-round", null], [2, "shape-semi-round", null], [2, "icon-start", null], [2, "icon-end", null], [2, "transitions", null]], [[null, "click"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("click" === en)) {
        var pd_0 = (core["ɵnov"](_v, 3).onClick($event) !== false);
        ad = (pd_0 && ad);
    } if (("click" === en)) {
        var pd_1 = (_co.showOrderDetail(_v.context.$implicit.item) !== false);
        ad = (pd_1 && ad);
    } return ad; }, index_ngfactory["M" /* View_NbButtonComponent_0 */], index_ngfactory["p" /* RenderType_NbButtonComponent */])), core["ɵdid"](3, 4243456, null, 0, fesm2015["L" /* NbButtonComponent */], [core["Renderer2"], core["ElementRef"], core["ChangeDetectorRef"]], { size: [0, "size"], ghost: [1, "ghost"] }, null), (_l()(), core["ɵted"](4, 0, [" ", "\u00A0 "])), (_l()(), core["ɵeld"](5, 0, null, 0, 1, "fa-icon", [["class", "ng-fa-icon"]], [[1, "title", 0], [8, "innerHTML", 1]], null, null, angular_fontawesome_ngfactory["d" /* View_FaIconComponent_0 */], angular_fontawesome_ngfactory["c" /* RenderType_FaIconComponent */])), core["ɵdid"](6, 573440, null, 0, angular_fontawesome["c" /* FaIconComponent */], [platform_browser["b" /* DomSanitizer */], angular_fontawesome["a" /* FaConfig */], angular_fontawesome["d" /* FaIconLibrary */], [2, angular_fontawesome["i" /* FaStackItemSizeDirective */]]], { icon: [0, "icon"] }, null), (_l()(), core["ɵand"](16777216, null, null, 1, null, View_OrderHistoryListComponent_4)), core["ɵdid"](8, 16384, null, 0, common["o" /* NgIf */], [core["ViewContainerRef"], core["TemplateRef"]], { ngIf: [0, "ngIf"] }, null), (_l()(), core["ɵeld"](9, 0, null, null, 2, "td", [["class", "text-center"]], null, null, null, null, null)), (_l()(), core["ɵted"](10, null, ["", ""])), core["ɵppd"](11, 2), (_l()(), core["ɵeld"](12, 0, null, null, 5, "td", [], null, null, null, null, null)), (_l()(), core["ɵeld"](13, 0, null, null, 4, "div", [["class", "d-flex flex-row align-items-center"]], null, null, null, null, null)), (_l()(), core["ɵand"](16777216, null, null, 1, null, View_OrderHistoryListComponent_5)), core["ɵdid"](15, 16384, null, 0, common["o" /* NgIf */], [core["ViewContainerRef"], core["TemplateRef"]], { ngIf: [0, "ngIf"] }, null), (_l()(), core["ɵand"](16777216, null, null, 1, null, View_OrderHistoryListComponent_6)), core["ɵdid"](17, 16384, null, 0, common["o" /* NgIf */], [core["ViewContainerRef"], core["TemplateRef"]], { ngIf: [0, "ngIf"] }, null), (_l()(), core["ɵeld"](18, 0, null, null, 1, "td", [], null, null, null, null, null)), (_l()(), core["ɵted"](19, null, ["", ""])), (_l()(), core["ɵeld"](20, 0, null, null, 1, "td", [], null, null, null, null, null)), (_l()(), core["ɵted"](21, null, ["", ""])), (_l()(), core["ɵeld"](22, 0, null, null, 2, "td", [], null, null, null, null, null)), (_l()(), core["ɵted"](23, null, ["", ""])), core["ɵppd"](24, 2), (_l()(), core["ɵeld"](25, 0, null, null, 1, "td", [], null, null, null, null, null)), (_l()(), core["ɵted"](26, null, ["", ""]))], function (_ck, _v) { var _co = _v.component; var currVal_26 = "small"; var currVal_27 = ""; _ck(_v, 3, 0, currVal_26, currVal_27); var currVal_31 = _co.eyeIcon; _ck(_v, 6, 0, currVal_31); var currVal_32 = _co.loggedAsAdmin(); _ck(_v, 8, 0, currVal_32); var currVal_34 = _co.isOrderAtTheTable(_v.context.$implicit.item); _ck(_v, 15, 0, currVal_34); var currVal_35 = !_co.isOrderAtTheTable(_v.context.$implicit.item); _ck(_v, 17, 0, currVal_35); }, function (_ck, _v) { var _co = _v.component; var currVal_0 = core["ɵnov"](_v, 3).filled; var currVal_1 = core["ɵnov"](_v, 3).outline; var currVal_2 = core["ɵnov"](_v, 3).ghost; var currVal_3 = core["ɵnov"](_v, 3).hero; var currVal_4 = core["ɵnov"](_v, 3).fullWidth; var currVal_5 = core["ɵnov"](_v, 3).disabled; var currVal_6 = core["ɵnov"](_v, 3).disabled; var currVal_7 = core["ɵnov"](_v, 3).tabbable; var currVal_8 = core["ɵnov"](_v, 3).tiny; var currVal_9 = core["ɵnov"](_v, 3).small; var currVal_10 = core["ɵnov"](_v, 3).medium; var currVal_11 = core["ɵnov"](_v, 3).large; var currVal_12 = core["ɵnov"](_v, 3).giant; var currVal_13 = core["ɵnov"](_v, 3).primary; var currVal_14 = core["ɵnov"](_v, 3).info; var currVal_15 = core["ɵnov"](_v, 3).success; var currVal_16 = core["ɵnov"](_v, 3).warning; var currVal_17 = core["ɵnov"](_v, 3).danger; var currVal_18 = core["ɵnov"](_v, 3).basic; var currVal_19 = core["ɵnov"](_v, 3).control; var currVal_20 = core["ɵnov"](_v, 3).rectangle; var currVal_21 = core["ɵnov"](_v, 3).round; var currVal_22 = core["ɵnov"](_v, 3).semiRound; var currVal_23 = core["ɵnov"](_v, 3).iconLeft; var currVal_24 = core["ɵnov"](_v, 3).iconRight; var currVal_25 = core["ɵnov"](_v, 3).transitions; _ck(_v, 2, 1, [currVal_0, currVal_1, currVal_2, currVal_3, currVal_4, currVal_5, currVal_6, currVal_7, currVal_8, currVal_9, currVal_10, currVal_11, currVal_12, currVal_13, currVal_14, currVal_15, currVal_16, currVal_17, currVal_18, currVal_19, currVal_20, currVal_21, currVal_22, currVal_23, currVal_24, currVal_25]); var currVal_28 = _v.context.$implicit.item.id; _ck(_v, 4, 0, currVal_28); var currVal_29 = core["ɵnov"](_v, 6).title; var currVal_30 = core["ɵnov"](_v, 6).renderedIconHTML; _ck(_v, 5, 0, currVal_29, currVal_30); var currVal_33 = core["ɵunv"](_v, 10, 0, _ck(_v, 11, 0, core["ɵnov"](_v.parent.parent, 0), _v.context.$implicit.item.dataHoraPedido, "dd/MM/yyyy")); _ck(_v, 10, 0, currVal_33); var currVal_36 = (_co.isOrderAtTheTable(_v.context.$implicit.item) ? "" : _co.applyPhoneMask(_v.context.$implicit.item.cliente.telefone)); _ck(_v, 19, 0, currVal_36); var currVal_37 = (_v.context.$implicit.item.enderecoEntrega ? _v.context.$implicit.item.enderecoEntrega.bairro : ""); _ck(_v, 21, 0, currVal_37); var currVal_38 = core["ɵunv"](_v, 23, 0, _ck(_v, 24, 0, core["ɵnov"](_v.parent.parent, 1), _v.context.$implicit.item.totalDoPedido, "BRL")); _ck(_v, 23, 0, currVal_38); var currVal_39 = (_v.context.$implicit.item.teste ? "Pedido de Teste" : _co.getOrderType(_v.context.$implicit.item)); _ck(_v, 26, 0, currVal_39); }); }
function View_OrderHistoryListComponent_2(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 19, "table", [["class", "table table-bordered table-sm table-hover table-striped"]], null, null, null, null, null)), (_l()(), core["ɵeld"](1, 0, null, null, 15, "thead", [], null, null, null, null, null)), (_l()(), core["ɵeld"](2, 0, null, null, 14, "tr", [], null, null, null, null, null)), (_l()(), core["ɵeld"](3, 0, null, null, 1, "th", [["class", "text-primary w-10"]], null, null, null, null, null)), (_l()(), core["ɵted"](-1, null, ["N\u00BA"])), (_l()(), core["ɵeld"](5, 0, null, null, 1, "th", [["class", "text-primary w-10"]], null, null, null, null, null)), (_l()(), core["ɵted"](-1, null, ["Data"])), (_l()(), core["ɵeld"](7, 0, null, null, 1, "th", [["class", "text-primary w-25"]], null, null, null, null, null)), (_l()(), core["ɵted"](-1, null, ["Cliente"])), (_l()(), core["ɵeld"](9, 0, null, null, 1, "th", [["class", "text-primary w-15"]], null, null, null, null, null)), (_l()(), core["ɵted"](-1, null, ["Telefone"])), (_l()(), core["ɵeld"](11, 0, null, null, 1, "th", [["class", "text-primary w-20"]], null, null, null, null, null)), (_l()(), core["ɵted"](-1, null, ["Bairro"])), (_l()(), core["ɵeld"](13, 0, null, null, 1, "th", [["class", "text-primary w-10"]], null, null, null, null, null)), (_l()(), core["ɵted"](-1, null, ["Valor"])), (_l()(), core["ɵeld"](15, 0, null, null, 1, "th", [["class", "text-primary w-10"]], null, null, null, null, null)), (_l()(), core["ɵted"](-1, null, ["Tipo"])), (_l()(), core["ɵeld"](17, 0, null, null, 2, "tbody", [], null, null, null, null, null)), (_l()(), core["ɵand"](16777216, null, null, 1, null, View_OrderHistoryListComponent_3)), core["ɵdid"](19, 278528, null, 0, common["n" /* NgForOf */], [core["ViewContainerRef"], core["TemplateRef"], core["IterableDiffers"]], { ngForOf: [0, "ngForOf"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.datasource; _ck(_v, 19, 0, currVal_0); }, null); }
function View_OrderHistoryListComponent_7(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 1, "omni-pagination", [], null, [[null, "pageChange"], [null, "click"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("click" === en)) {
        var pd_0 = (core["ɵnov"](_v, 1).onClick($event) !== false);
        ad = (pd_0 && ad);
    } if (("pageChange" === en)) {
        var pd_1 = (_co.changePage($event) !== false);
        ad = (pd_1 && ad);
    } return ad; }, pagination_component_ngfactory["b" /* View_PaginationComponent_0 */], pagination_component_ngfactory["a" /* RenderType_PaginationComponent */])), core["ɵdid"](1, 114688, null, 0, pagination_component["a" /* PaginationComponent */], [], { currentPage: [0, "currentPage"], totalPages: [1, "totalPages"] }, { pageChange: "pageChange" })], function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.currentPage; var currVal_1 = _co.resultSet.totalPages; _ck(_v, 1, 0, currVal_0, currVal_1); }, null); }
function View_OrderHistoryListComponent_0(_l) { return core["ɵvid"](2, [core["ɵpid"](0, common["f" /* DatePipe */], [core["LOCALE_ID"]]), core["ɵpid"](0, common["d" /* CurrencyPipe */], [core["LOCALE_ID"]]), core["ɵqud"](671088640, 1, { formFilterRef: 0 }), core["ɵqud"](671088640, 2, { detailDialogRef: 0 }), core["ɵqud"](671088640, 3, { orderHistoryFilterRef: 0 }), (_l()(), core["ɵeld"](5, 0, null, null, 3, "div", [["class", "row"]], null, null, null, null, null)), (_l()(), core["ɵeld"](6, 0, null, null, 2, "div", [["class", "col-12"]], null, null, null, null, null)), (_l()(), core["ɵeld"](7, 0, null, null, 1, "omni-page-title", [["pageTitle", "Hist\u00F3rico de Pedidos"], ["size", "1"]], null, null, null, page_title_component_ngfactory["b" /* View_PageTitleComponent_0 */], page_title_component_ngfactory["a" /* RenderType_PageTitleComponent */])), core["ɵdid"](8, 114688, null, 0, page_title_component["a" /* PageTitleComponent */], [fesm2015["Rb" /* NbDialogService */]], { icon: [0, "icon"], pageTitle: [1, "pageTitle"], size: [2, "size"] }, null), (_l()(), core["ɵeld"](9, 0, null, null, 15, "div", [["class", "row"]], null, null, null, null, null)), (_l()(), core["ɵeld"](10, 0, null, null, 14, "div", [["class", "col-12"]], null, null, null, null, null)), (_l()(), core["ɵeld"](11, 0, null, null, 13, "nb-card", [], [[2, "size-tiny", null], [2, "size-small", null], [2, "size-medium", null], [2, "size-large", null], [2, "size-giant", null], [2, "status-primary", null], [2, "status-info", null], [2, "status-success", null], [2, "status-warning", null], [2, "status-danger", null], [2, "status-basic", null], [2, "status-control", null], [2, "accent", null], [2, "accent-primary", null], [2, "accent-info", null], [2, "accent-success", null], [2, "accent-warning", null], [2, "accent-danger", null], [2, "accent-basic", null], [2, "accent-control", null]], null, null, index_ngfactory["O" /* View_NbCardComponent_0 */], index_ngfactory["r" /* RenderType_NbCardComponent */])), core["ɵdid"](12, 49152, null, 0, fesm2015["jb" /* NbCardComponent */], [], null, null), (_l()(), core["ɵeld"](13, 0, null, 1, 11, "nb-card-body", [["class", "flat-body"]], null, null, null, index_ngfactory["N" /* View_NbCardBodyComponent_0 */], index_ngfactory["q" /* RenderType_NbCardBodyComponent */])), core["ɵdid"](14, 49152, null, 0, fesm2015["ib" /* NbCardBodyComponent */], [], null, null), (_l()(), core["ɵeld"](15, 0, null, 0, 1, "omni-filter", [], null, [[null, "resultSetChange"], [null, "backButtonClick"], [null, "filterButtonClick"], [null, "updateFilterList"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("resultSetChange" === en)) {
        var pd_0 = ((_co.resultSet = $event) !== false);
        ad = (pd_0 && ad);
    } if (("backButtonClick" === en)) {
        var pd_1 = (_co.backToCustomer() !== false);
        ad = (pd_1 && ad);
    } if (("filterButtonClick" === en)) {
        var pd_2 = (_co.showFormFilter() !== false);
        ad = (pd_2 && ad);
    } if (("updateFilterList" === en)) {
        var pd_3 = (_co.applyFilters($event) !== false);
        ad = (pd_3 && ad);
    } return ad; }, filter_component_ngfactory["b" /* View_FilterComponent_0 */], filter_component_ngfactory["a" /* RenderType_FilterComponent */])), core["ɵdid"](16, 114688, null, 0, filter_component["a" /* FilterComponent */], [], { filterList: [0, "filterList"], resultSet: [1, "resultSet"], showBackButton: [2, "showBackButton"], showNewButton: [3, "showNewButton"] }, { backButtonClick: "backButtonClick", filterButtonClick: "filterButtonClick", resultSetChange: "resultSetChange", updateFilterList: "updateFilterList" }), (_l()(), core["ɵand"](16777216, null, 0, 1, null, View_OrderHistoryListComponent_1)), core["ɵdid"](18, 16384, null, 0, common["o" /* NgIf */], [core["ViewContainerRef"], core["TemplateRef"]], { ngIf: [0, "ngIf"] }, null), (_l()(), core["ɵand"](16777216, null, 0, 1, null, View_OrderHistoryListComponent_2)), core["ɵdid"](20, 16384, null, 0, common["o" /* NgIf */], [core["ViewContainerRef"], core["TemplateRef"]], { ngIf: [0, "ngIf"] }, null), (_l()(), core["ɵand"](16777216, null, 0, 1, null, View_OrderHistoryListComponent_7)), core["ɵdid"](22, 16384, null, 0, common["o" /* NgIf */], [core["ViewContainerRef"], core["TemplateRef"]], { ngIf: [0, "ngIf"] }, null), (_l()(), core["ɵeld"](23, 0, null, 0, 1, "omni-inline-loader", [["label", "Listando pedidos do hist\u00F3rico..."]], null, null, null, inline_loader_component_ngfactory["b" /* View_InlineLoaderComponent_0 */], inline_loader_component_ngfactory["a" /* RenderType_InlineLoaderComponent */])), core["ɵdid"](24, 114688, null, 0, inline_loader_component["a" /* InlineLoaderComponent */], [], { label: [0, "label"], refreshState: [1, "refreshState"] }, null), (_l()(), core["ɵeld"](25, 0, null, null, 3, "omni-form-filter", [], null, [["window", "keyup"], [null, "click"]], function (_v, en, $event) { var ad = true; if (("window:keyup" === en)) {
        var pd_0 = (core["ɵnov"](_v, 26).onEscape($event) !== false);
        ad = (pd_0 && ad);
    } if (("click" === en)) {
        var pd_1 = (core["ɵnov"](_v, 26).onClick($event) !== false);
        ad = (pd_1 && ad);
    } return ad; }, form_filter_component_ngfactory["b" /* View_FormFilterComponent_0 */], form_filter_component_ngfactory["a" /* RenderType_FormFilterComponent */])), core["ɵdid"](26, 49152, [[1, 4], ["formFilter", 4]], 0, form_filter_component["a" /* FormFilterComponent */], [], null, null), (_l()(), core["ɵeld"](27, 0, null, 0, 1, "omni-order-history-filter", [], null, [[null, "doFilter"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("doFilter" === en)) {
        var pd_0 = (_co.applyFilters($event) !== false);
        ad = (pd_0 && ad);
    } return ad; }, View_OrderHistoryFilterComponent_0, RenderType_OrderHistoryFilterComponent)), core["ɵdid"](28, 114688, [[3, 4], ["orderHistoryFilter", 4]], 0, order_history_filter_component_OrderHistoryFilterComponent, [fesm2015_forms["g" /* FormBuilder */], auth_service["a" /* AuthService */], autocomplete_service["a" /* AutoCompleteService */], empresa_service["a" /* EmpresaService */], messages_service["a" /* MessagesService */], pedido_service["a" /* PedidoService */], fesm2015["Ld" /* NbToastrService */]], null, { doFilter: "doFilter" }), (_l()(), core["ɵeld"](29, 0, null, null, 1, "omni-order-detail-dialog", [], null, null, null, order_detail_dialog_component_ngfactory["c" /* View_OrderDetailDialogComponent_0 */], order_detail_dialog_component_ngfactory["b" /* RenderType_OrderDetailDialogComponent */])), core["ɵdid"](30, 573440, [[2, 4], ["detailDialog", 4]], 0, order_detail_dialog_component["a" /* OrderDetailDialogComponent */], [auth_service["a" /* AuthService */], pedido_service["a" /* PedidoService */], fesm2015["wc" /* NbMenuService */], messages_service["a" /* MessagesService */], printer_service["a" /* PrinterService */], fesm2015["Ld" /* NbToastrService */]], { showUpdateButton: [0, "showUpdateButton"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_0 = _co.cartIcon; var currVal_1 = "Hist\u00F3rico de Pedidos"; var currVal_2 = "1"; _ck(_v, 8, 0, currVal_0, currVal_1, currVal_2); var currVal_23 = _co.filterList; var currVal_24 = _co.resultSet; var currVal_25 = _co.canBackToCustomer; var currVal_26 = false; _ck(_v, 16, 0, currVal_23, currVal_24, currVal_25, currVal_26); var currVal_27 = ((((_co.resultSet == null) ? null : _co.resultSet.totalPages) > 1) && !_co.isLoading); _ck(_v, 18, 0, currVal_27); var currVal_28 = (_co.datasource.length > 0); _ck(_v, 20, 0, currVal_28); var currVal_29 = ((((_co.resultSet == null) ? null : _co.resultSet.totalPages) > 1) && !_co.isLoading); _ck(_v, 22, 0, currVal_29); var currVal_30 = "Listando pedidos do hist\u00F3rico..."; var currVal_31 = _co.isLoading; _ck(_v, 24, 0, currVal_30, currVal_31); _ck(_v, 28, 0); var currVal_32 = false; _ck(_v, 30, 0, currVal_32); }, function (_ck, _v) { var currVal_3 = core["ɵnov"](_v, 12).tiny; var currVal_4 = core["ɵnov"](_v, 12).small; var currVal_5 = core["ɵnov"](_v, 12).medium; var currVal_6 = core["ɵnov"](_v, 12).large; var currVal_7 = core["ɵnov"](_v, 12).giant; var currVal_8 = core["ɵnov"](_v, 12).primary; var currVal_9 = core["ɵnov"](_v, 12).info; var currVal_10 = core["ɵnov"](_v, 12).success; var currVal_11 = core["ɵnov"](_v, 12).warning; var currVal_12 = core["ɵnov"](_v, 12).danger; var currVal_13 = core["ɵnov"](_v, 12).basic; var currVal_14 = core["ɵnov"](_v, 12).control; var currVal_15 = core["ɵnov"](_v, 12).hasAccent; var currVal_16 = core["ɵnov"](_v, 12).primaryAccent; var currVal_17 = core["ɵnov"](_v, 12).infoAccent; var currVal_18 = core["ɵnov"](_v, 12).successAccent; var currVal_19 = core["ɵnov"](_v, 12).warningAccent; var currVal_20 = core["ɵnov"](_v, 12).dangerAccent; var currVal_21 = core["ɵnov"](_v, 12).basicAccent; var currVal_22 = core["ɵnov"](_v, 12).controlAccent; _ck(_v, 11, 1, [currVal_3, currVal_4, currVal_5, currVal_6, currVal_7, currVal_8, currVal_9, currVal_10, currVal_11, currVal_12, currVal_13, currVal_14, currVal_15, currVal_16, currVal_17, currVal_18, currVal_19, currVal_20, currVal_21, currVal_22]); }); }
function View_OrderHistoryListComponent_Host_0(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 1, "omni-order-history-list", [], null, null, null, View_OrderHistoryListComponent_0, RenderType_OrderHistoryListComponent)), core["ɵdid"](1, 245760, null, 0, order_history_list_component_OrderHistoryListComponent, [fesm2015_router["a" /* ActivatedRoute */], core["ChangeDetectorRef"], fesm2015_router["l" /* Router */], cliente_service["a" /* ClienteService */], fesm2015["Rb" /* NbDialogService */], fesm2015["wc" /* NbMenuService */], pedido_service["a" /* PedidoService */], request_service["a" /* RequestService */], fesm2015["Ld" /* NbToastrService */], alert_service["a" /* AlertService */], auth_service["a" /* AuthService */], messages_service["a" /* MessagesService */]], null, null)], function (_ck, _v) { _ck(_v, 1, 0); }, null); }
var OrderHistoryListComponentNgFactory = core["ɵccf"]("omni-order-history-list", order_history_list_component_OrderHistoryListComponent, View_OrderHistoryListComponent_Host_0, {}, {}, []);


// EXTERNAL MODULE: ./node_modules/@sweetalert2/ngx-sweetalert2/sweetalert2-ngx-sweetalert2.ngfactory.js
var sweetalert2_ngx_sweetalert2_ngfactory = __webpack_require__("kExW");

// EXTERNAL MODULE: ./node_modules/ngx-bootstrap/typeahead/ngx-bootstrap-typeahead.ngfactory.js
var ngx_bootstrap_typeahead_ngfactory = __webpack_require__("SfUx");

// EXTERNAL MODULE: ./src/app/shared/ui/dialogs/cashback/cashback-credit-dialog/cashback-credit-dialog.component.ngfactory.js + 1 modules
var cashback_credit_dialog_component_ngfactory = __webpack_require__("sKAB");

// EXTERNAL MODULE: ./src/app/shared/ui/dialogs/category/category-quick-form-dialog/category-quick-form-dialog.component.ngfactory.js + 1 modules
var category_quick_form_dialog_component_ngfactory = __webpack_require__("iY9W");

// EXTERNAL MODULE: ./src/app/shared/ui/dialogs/customization/edit-customization-value-dialog/edit-customization-value-dialog.component.ngfactory.js + 1 modules
var edit_customization_value_dialog_component_ngfactory = __webpack_require__("x9iD");

// EXTERNAL MODULE: ./src/app/shared/ui/dialogs/edit-delivery-address-dialog/edit-delivery-address-dialog.component.ngfactory.js + 1 modules
var edit_delivery_address_dialog_component_ngfactory = __webpack_require__("EXuQ");

// EXTERNAL MODULE: ./src/app/shared/ui/dialogs/cashback/extract-cashback-list-dialog/extract-cashback-list-dialog.component.ngfactory.js + 1 modules
var extract_cashback_list_dialog_component_ngfactory = __webpack_require__("ZjL+");

// EXTERNAL MODULE: ./src/app/shared/ui/dialogs/orders/order-update-dialog/order-update-dialog.component.ngfactory.js + 1 modules
var order_update_dialog_component_ngfactory = __webpack_require__("/Cjm");

// EXTERNAL MODULE: ./src/app/shared/ui/dialogs/promotion/promotion-rule-edit-dialog/promotion-rule-edit-dialog.component.ngfactory.js + 1 modules
var promotion_rule_edit_dialog_component_ngfactory = __webpack_require__("AHux");

// EXTERNAL MODULE: ./src/app/shared/ui/dialogs/view-picture-dialog/view-picture-dialog.component.ngfactory.js + 1 modules
var view_picture_dialog_component_ngfactory = __webpack_require__("YAEL");

// EXTERNAL MODULE: ./src/app/shared/ui/dialogs/promotion/promotion-gift-edit-dialog/promotion-gift-edit-dialog.component.ngfactory.js + 1 modules
var promotion_gift_edit_dialog_component_ngfactory = __webpack_require__("RswS");

// EXTERNAL MODULE: ./src/app/shared/ui/dialogs/promotion/promotion-rule-view-dialog/promotion-rule-view-dialog.component.ngfactory.js + 1 modules
var promotion_rule_view_dialog_component_ngfactory = __webpack_require__("BRe2");

// EXTERNAL MODULE: ./src/app/shared/ui/dialogs/orders/order-feedback-dialog/order-feedback-dialog.component.ngfactory.js + 1 modules
var order_feedback_dialog_component_ngfactory = __webpack_require__("otmp");

// EXTERNAL MODULE: ./src/app/shared/ui/dialogs/tutorial-dialog/tutorial-dialog.component.ngfactory.js + 1 modules
var tutorial_dialog_component_ngfactory = __webpack_require__("Uvoc");

// EXTERNAL MODULE: ./node_modules/@angular/cdk/esm2015/overlay.js
var overlay = __webpack_require__("QQfA");

// EXTERNAL MODULE: ./node_modules/@angular/cdk/esm2015/bidi.js
var bidi = __webpack_require__("IP0z");

// EXTERNAL MODULE: ./node_modules/@sweetalert2/ngx-sweetalert2/fesm2015/sweetalert2-ngx-sweetalert2.js
var sweetalert2_ngx_sweetalert2 = __webpack_require__("hvj1");

// EXTERNAL MODULE: ./node_modules/ngx-bootstrap/positioning/fesm2015/ngx-bootstrap-positioning.js
var ngx_bootstrap_positioning = __webpack_require__("2uy1");

// EXTERNAL MODULE: ./node_modules/ngx-bootstrap/component-loader/fesm2015/ngx-bootstrap-component-loader.js
var ngx_bootstrap_component_loader = __webpack_require__("z/SZ");

// EXTERNAL MODULE: ./node_modules/ngx-bootstrap/typeahead/fesm2015/ngx-bootstrap-typeahead.js + 2 modules
var ngx_bootstrap_typeahead = __webpack_require__("ZMeN");

// EXTERNAL MODULE: ./node_modules/br-mask/dist/app.module.js
var app_module = __webpack_require__("CbX2");

// EXTERNAL MODULE: ./node_modules/@angular/cdk/esm2015/portal.js
var portal = __webpack_require__("zMNK");

// EXTERNAL MODULE: ./node_modules/@angular/cdk/esm2015/platform.js
var platform = __webpack_require__("/HVE");

// EXTERNAL MODULE: ./node_modules/@angular/cdk/esm2015/scrolling.js + 6 modules
var scrolling = __webpack_require__("hOhj");

// EXTERNAL MODULE: ./src/app/shared/guards/auth.guard.ts
var auth_guard = __webpack_require__("LjFu");

// CONCATENATED MODULE: ./src/app/pages/reports/order-history/order-history-routing.module.ts



const routes = [
    {
        path: '', component: order_history_list_component_OrderHistoryListComponent, canActivate: [auth_guard["a" /* AuthGuard */]]
    },
    {
        path: ':id/customer', component: order_history_list_component_OrderHistoryListComponent, canActivate: [auth_guard["a" /* AuthGuard */]]
    }
];
class OrderHistoryRoutingModule {
}

// EXTERNAL MODULE: ./node_modules/angular2-chartjs/dist/chart.module.js
var chart_module = __webpack_require__("AE88");

// EXTERNAL MODULE: ./src/app/shared/directives/directives.module.ts + 1 modules
var directives_module = __webpack_require__("yGOH");

// EXTERNAL MODULE: ./node_modules/@nebular/eva-icons/fesm2015/index.js
var eva_icons_fesm2015 = __webpack_require__("XoTT");

// EXTERNAL MODULE: ./node_modules/ngx-dropzone/fesm2015/ngx-dropzone.js
var ngx_dropzone = __webpack_require__("tq8E");

// EXTERNAL MODULE: ./src/app/shared/pipes/pipes.module.ts + 9 modules
var pipes_module = __webpack_require__("9Xeq");

// EXTERNAL MODULE: ./src/app/shared/ui/ui.module.ts + 6 modules
var ui_module = __webpack_require__("4zvT");

// CONCATENATED MODULE: ./src/app/pages/reports/order-history/order-history.module.ngfactory.js
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OrderHistoryModuleNgFactory", function() { return OrderHistoryModuleNgFactory; });
/**
 * @fileoverview This file was generated by the Angular template compiler. Do not edit.
 *
 * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes}
 * tslint:disable
 */ 













































var OrderHistoryModuleNgFactory = core["ɵcmf"](OrderHistoryModule, [], function (_l) { return core["ɵmod"]([core["ɵmpd"](512, core["ComponentFactoryResolver"], core["ɵCodegenComponentFactoryResolver"], [[8, [angular_fontawesome_ngfactory["b" /* FaIconComponentNgFactory */], angular_fontawesome_ngfactory["a" /* FaDuotoneIconComponentNgFactory */], router_ngfactory["a" /* ɵangular_packages_router_router_lNgFactory */], index_ngfactory["n" /* NbTooltipComponentNgFactory */], OrderHistoryListComponentNgFactory, sweetalert2_ngx_sweetalert2_ngfactory["b" /* SwalComponentNgFactory */], sweetalert2_ngx_sweetalert2_ngfactory["d" /* ɵcNgFactory */], index_ngfactory["h" /* NbContextMenuComponentNgFactory */], index_ngfactory["j" /* NbDialogContainerComponentNgFactory */], index_ngfactory["k" /* NbPopoverComponentNgFactory */], ngx_bootstrap_typeahead_ngfactory["a" /* TypeaheadContainerComponentNgFactory */], cashback_credit_dialog_component_ngfactory["a" /* CashbackCreditDialogComponentNgFactory */], category_quick_form_dialog_component_ngfactory["a" /* CategoryQuickFormDialogComponentNgFactory */], edit_customization_value_dialog_component_ngfactory["a" /* EditCustomizationValueDialogComponentNgFactory */], edit_delivery_address_dialog_component_ngfactory["a" /* EditDeliveryAddressDialogComponentNgFactory */], extract_cashback_list_dialog_component_ngfactory["a" /* ExtractCashbackListDialogComponentNgFactory */], order_detail_dialog_component_ngfactory["a" /* OrderDetailDialogComponentNgFactory */], order_update_dialog_component_ngfactory["a" /* OrderUpdateDialogComponentNgFactory */], promotion_rule_edit_dialog_component_ngfactory["a" /* PromotionRuleEditDialogComponentNgFactory */], view_picture_dialog_component_ngfactory["b" /* ViewPictureDialogComponentNgFactory */], promotion_gift_edit_dialog_component_ngfactory["a" /* PromotionGiftEditDialogComponentNgFactory */], promotion_rule_view_dialog_component_ngfactory["a" /* PromotionRuleViewDialogComponentNgFactory */], order_feedback_dialog_component_ngfactory["a" /* OrderFeedbackDialogComponentNgFactory */], tutorial_dialog_component_ngfactory["b" /* TutorialDialogComponentNgFactory */]]], [3, core["ComponentFactoryResolver"]], core["NgModuleRef"]]), core["ɵmpd"](4608, common["q" /* NgLocalization */], common["p" /* NgLocaleLocalization */], [core["LOCALE_ID"], [2, common["R" /* ɵangular_packages_common_common_a */]]]), core["ɵmpd"](4608, fesm2015_forms["B" /* ɵangular_packages_forms_forms_o */], fesm2015_forms["B" /* ɵangular_packages_forms_forms_o */], []), core["ɵmpd"](4608, overlay["d" /* Overlay */], overlay["d" /* Overlay */], [overlay["i" /* ScrollStrategyOptions */], overlay["e" /* OverlayContainer */], core["ComponentFactoryResolver"], overlay["h" /* OverlayPositionBuilder */], overlay["f" /* OverlayKeyboardDispatcher */], core["Injector"], core["NgZone"], common["e" /* DOCUMENT */], bidi["b" /* Directionality */], [2, common["k" /* Location */]]]), core["ɵmpd"](5120, overlay["j" /* ɵc */], overlay["k" /* ɵd */], [overlay["d" /* Overlay */]]), core["ɵmpd"](4608, fesm2015_forms["g" /* FormBuilder */], fesm2015_forms["g" /* FormBuilder */], []), core["ɵmpd"](4608, sweetalert2_ngx_sweetalert2["b" /* SwalPartialTargets */], sweetalert2_ngx_sweetalert2["b" /* SwalPartialTargets */], []), core["ɵmpd"](4608, ngx_bootstrap_positioning["a" /* PositioningService */], ngx_bootstrap_positioning["a" /* PositioningService */], [core["NgZone"], core["RendererFactory2"], core["PLATFORM_ID"]]), core["ɵmpd"](4608, ngx_bootstrap_component_loader["a" /* ComponentLoaderFactory */], ngx_bootstrap_component_loader["a" /* ComponentLoaderFactory */], [core["ComponentFactoryResolver"], core["NgZone"], core["Injector"], ngx_bootstrap_positioning["a" /* PositioningService */], core["ApplicationRef"]]), core["ɵmpd"](4608, ngx_bootstrap_typeahead["a" /* TypeaheadConfig */], ngx_bootstrap_typeahead["a" /* TypeaheadConfig */], []), core["ɵmpd"](1073742336, common["c" /* CommonModule */], common["c" /* CommonModule */], []), core["ɵmpd"](1073742336, app_module["a" /* BrMaskerModule */], app_module["a" /* BrMaskerModule */], []), core["ɵmpd"](1073742336, angular_fontawesome["j" /* FontAwesomeModule */], angular_fontawesome["j" /* FontAwesomeModule */], []), core["ɵmpd"](1073742336, fesm2015_forms["A" /* ɵangular_packages_forms_forms_d */], fesm2015_forms["A" /* ɵangular_packages_forms_forms_d */], []), core["ɵmpd"](1073742336, fesm2015_forms["n" /* FormsModule */], fesm2015_forms["n" /* FormsModule */], []), core["ɵmpd"](1073742336, fesm2015_router["p" /* RouterModule */], fesm2015_router["p" /* RouterModule */], [[2, fesm2015_router["u" /* ɵangular_packages_router_router_a */]], [2, fesm2015_router["l" /* Router */]]]), core["ɵmpd"](1073742336, fesm2015["pe" /* ɵc */], fesm2015["pe" /* ɵc */], []), core["ɵmpd"](1073742336, fesm2015["M" /* NbButtonModule */], fesm2015["M" /* NbButtonModule */], []), core["ɵmpd"](1073742336, fesm2015["dc" /* NbIconModule */], fesm2015["dc" /* NbIconModule */], [fesm2015["cc" /* NbIconLibraries */]]), core["ɵmpd"](1073742336, fesm2015["nb" /* NbCardModule */], fesm2015["nb" /* NbCardModule */], []), core["ɵmpd"](1073742336, fesm2015["fc" /* NbInputModule */], fesm2015["fc" /* NbInputModule */], []), core["ɵmpd"](1073742336, fesm2015["Vc" /* NbRadioModule */], fesm2015["Vc" /* NbRadioModule */], []), core["ɵmpd"](1073742336, bidi["a" /* BidiModule */], bidi["a" /* BidiModule */], []), core["ɵmpd"](1073742336, portal["f" /* PortalModule */], portal["f" /* PortalModule */], []), core["ɵmpd"](1073742336, platform["b" /* PlatformModule */], platform["b" /* PlatformModule */], []), core["ɵmpd"](1073742336, scrolling["b" /* ScrollingModule */], scrolling["b" /* ScrollingModule */], []), core["ɵmpd"](1073742336, overlay["g" /* OverlayModule */], overlay["g" /* OverlayModule */], []), core["ɵmpd"](1073742336, fesm2015["pb" /* NbCdkMappingModule */], fesm2015["pb" /* NbCdkMappingModule */], []), core["ɵmpd"](1073742336, fesm2015["ob" /* NbCdkAdapterModule */], fesm2015["ob" /* NbCdkAdapterModule */], []), core["ɵmpd"](1073742336, fesm2015["Ec" /* NbOverlayModule */], fesm2015["Ec" /* NbOverlayModule */], []), core["ɵmpd"](1073742336, fesm2015["Bb" /* NbCheckboxModule */], fesm2015["Bb" /* NbCheckboxModule */], []), core["ɵmpd"](1073742336, fesm2015["kd" /* NbSelectModule */], fesm2015["kd" /* NbSelectModule */], []), core["ɵmpd"](1073742336, fesm2015["Qd" /* NbTooltipModule */], fesm2015["Qd" /* NbTooltipModule */], []), core["ɵmpd"](1073742336, OrderHistoryRoutingModule, OrderHistoryRoutingModule, []), core["ɵmpd"](1073742336, fesm2015_forms["x" /* ReactiveFormsModule */], fesm2015_forms["x" /* ReactiveFormsModule */], []), core["ɵmpd"](1073742336, sweetalert2_ngx_sweetalert2["c" /* SweetAlert2Module */], sweetalert2_ngx_sweetalert2["c" /* SweetAlert2Module */], []), core["ɵmpd"](1073742336, chart_module["ChartModule"], chart_module["ChartModule"], []), core["ɵmpd"](1073742336, directives_module["a" /* DirectivesModule */], directives_module["a" /* DirectivesModule */], []), core["ɵmpd"](1073742336, fesm2015["D" /* NbAlertModule */], fesm2015["D" /* NbAlertModule */], []), core["ɵmpd"](1073742336, fesm2015["F" /* NbBadgeModule */], fesm2015["F" /* NbBadgeModule */], []), core["ɵmpd"](1073742336, fesm2015["B" /* NbActionsModule */], fesm2015["B" /* NbActionsModule */], []), core["ɵmpd"](1073742336, fesm2015["vc" /* NbMenuModule */], fesm2015["vc" /* NbMenuModule */], []), core["ɵmpd"](1073742336, fesm2015["Gb" /* NbContextMenuModule */], fesm2015["Gb" /* NbContextMenuModule */], []), core["ɵmpd"](1073742336, fesm2015["Qb" /* NbDialogModule */], fesm2015["Qb" /* NbDialogModule */], []), core["ɵmpd"](1073742336, eva_icons_fesm2015["a" /* NbEvaIconsModule */], eva_icons_fesm2015["a" /* NbEvaIconsModule */], [fesm2015["cc" /* NbIconLibraries */]]), core["ɵmpd"](1073742336, fesm2015["rc" /* NbListModule */], fesm2015["rc" /* NbListModule */], []), core["ɵmpd"](1073742336, fesm2015["Lc" /* NbPopoverModule */], fesm2015["Lc" /* NbPopoverModule */], []), core["ɵmpd"](1073742336, fesm2015["Ed" /* NbTabsetModule */], fesm2015["Ed" /* NbTabsetModule */], []), core["ɵmpd"](1073742336, fesm2015["fe" /* NbUserModule */], fesm2015["fe" /* NbUserModule */], []), core["ɵmpd"](1073742336, ngx_dropzone["c" /* NgxDropzoneModule */], ngx_dropzone["c" /* NgxDropzoneModule */], []), core["ɵmpd"](1073742336, pipes_module["a" /* PipesModule */], pipes_module["a" /* PipesModule */], []), core["ɵmpd"](1073742336, ngx_bootstrap_typeahead["d" /* TypeaheadModule */], ngx_bootstrap_typeahead["d" /* TypeaheadModule */], []), core["ɵmpd"](1073742336, ui_module["a" /* UiModule */], ui_module["a" /* UiModule */], []), core["ɵmpd"](1073742336, OrderHistoryModule, OrderHistoryModule, []), core["ɵmpd"](1024, fesm2015_router["j" /* ROUTES */], function () { return [[{ path: "", component: order_history_list_component_OrderHistoryListComponent, canActivate: [auth_guard["a" /* AuthGuard */]] }, { path: ":id/customer", component: order_history_list_component_OrderHistoryListComponent, canActivate: [auth_guard["a" /* AuthGuard */]] }]]; }, []), core["ɵmpd"](256, sweetalert2_ngx_sweetalert2["d" /* ɵa */], undefined, [])]); });



/***/ }),

/***/ "Edsu":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";

// CONCATENATED MODULE: ./src/app/shared/ui/typeahead/typeahead.component.scss.shim.ngstyle.js
/**
 * @fileoverview This file was generated by the Angular template compiler. Do not edit.
 *
 * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes}
 * tslint:disable
 */ 
var styles = [".input-with-icon[_ngcontent-%COMP%]{position:relative}.input-with-icon[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{font-weight:600;height:40px;padding:0 18px}.input-with-icon[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::-webkit-input-placeholder{font-weight:400}.input-with-icon[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::-moz-placeholder{font-weight:400}.input-with-icon[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::-ms-input-placeholder{font-weight:400}.input-with-icon[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::placeholder{font-weight:400}"];


// EXTERNAL MODULE: ./node_modules/@angular/core/fesm2015/core.js
var core = __webpack_require__("8Y7J");

// EXTERNAL MODULE: ./node_modules/@angular/forms/fesm2015/forms.js
var fesm2015_forms = __webpack_require__("s7LF");

// EXTERNAL MODULE: ./node_modules/@nebular/theme/fesm2015/index.js + 5 modules
var fesm2015 = __webpack_require__("tKwJ");

// EXTERNAL MODULE: ./node_modules/ngx-bootstrap/typeahead/fesm2015/ngx-bootstrap-typeahead.js + 2 modules
var ngx_bootstrap_typeahead = __webpack_require__("ZMeN");

// EXTERNAL MODULE: ./node_modules/ngx-bootstrap/component-loader/fesm2015/ngx-bootstrap-component-loader.js
var ngx_bootstrap_component_loader = __webpack_require__("z/SZ");

// EXTERNAL MODULE: ./node_modules/@fortawesome/angular-fontawesome/angular-fontawesome.ngfactory.js
var angular_fontawesome_ngfactory = __webpack_require__("fNgX");

// EXTERNAL MODULE: ./node_modules/@angular/common/fesm2015/common.js
var common = __webpack_require__("SVse");

// EXTERNAL MODULE: ./node_modules/@fortawesome/angular-fontawesome/fesm2015/angular-fontawesome.js
var angular_fontawesome = __webpack_require__("Nv++");

// EXTERNAL MODULE: ./node_modules/@angular/platform-browser/fesm2015/platform-browser.js
var platform_browser = __webpack_require__("cUpR");

// EXTERNAL MODULE: ./src/app/shared/ui/typeahead/typeahead.component.ts
var typeahead_component = __webpack_require__("O0Or");

// EXTERNAL MODULE: ./src/app/shared/services/auth.service.ts + 3 modules
var auth_service = __webpack_require__("IYfF");

// EXTERNAL MODULE: ./src/app/shared/services/autocomplete.service.ts
var autocomplete_service = __webpack_require__("jQB5");

// CONCATENATED MODULE: ./src/app/shared/ui/typeahead/typeahead.component.ngfactory.js
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return RenderType_TypeaheadComponent; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return View_TypeaheadComponent_0; });
/* unused harmony export View_TypeaheadComponent_Host_0 */
/* unused harmony export TypeaheadComponentNgFactory */
/**
 * @fileoverview This file was generated by the Angular template compiler. Do not edit.
 *
 * @suppress {suspiciousCode,uselessCode,missingProperties,missingOverride,checkTypes}
 * tslint:disable
 */ 













var styles_TypeaheadComponent = [styles];
var RenderType_TypeaheadComponent = core["ɵcrt"]({ encapsulation: 0, styles: styles_TypeaheadComponent, data: {} });

function View_TypeaheadComponent_0(_l) { return core["ɵvid"](2, [(_l()(), core["ɵeld"](0, 0, null, null, 13, "div", [["class", "input-with-icon"]], null, null, null, null, null)), (_l()(), core["ɵeld"](1, 16777216, [["autocompleteInput", 1]], null, 7, "input", [["fullWidth", ""], ["nbInput", ""], ["ngDefaultControl", ""], ["type", "text"], ["typeaheadOptionField", "label"]], [[8, "value", 0], [8, "placeholder", 0], [1, "autofocus", 0], [1, "disabled", 0], [2, "ng-untouched", null], [2, "ng-touched", null], [2, "ng-pristine", null], [2, "ng-dirty", null], [2, "ng-valid", null], [2, "ng-invalid", null], [2, "ng-pending", null], [2, "input-full-width", null], [2, "size-tiny", null], [2, "size-small", null], [2, "size-medium", null], [2, "size-large", null], [2, "size-giant", null], [2, "status-primary", null], [2, "status-info", null], [2, "status-success", null], [2, "status-warning", null], [2, "status-danger", null], [2, "status-basic", null], [2, "status-control", null], [2, "shape-rectangle", null], [2, "shape-semi-round", null], [2, "shape-round", null]], [[null, "ngModelChange"], [null, "input"], [null, "typeaheadOnSelect"], [null, "blur"], [null, "compositionstart"], [null, "compositionend"], [null, "keyup"], [null, "click"], [null, "focus"], [null, "keydown"]], function (_v, en, $event) { var ad = true; var _co = _v.component; if (("input" === en)) {
        var pd_0 = (core["ɵnov"](_v, 2)._handleInput($event.target.value) !== false);
        ad = (pd_0 && ad);
    } if (("blur" === en)) {
        var pd_1 = (core["ɵnov"](_v, 2).onTouched() !== false);
        ad = (pd_1 && ad);
    } if (("compositionstart" === en)) {
        var pd_2 = (core["ɵnov"](_v, 2)._compositionStart() !== false);
        ad = (pd_2 && ad);
    } if (("compositionend" === en)) {
        var pd_3 = (core["ɵnov"](_v, 2)._compositionEnd($event.target.value) !== false);
        ad = (pd_3 && ad);
    } if (("input" === en)) {
        var pd_4 = (core["ɵnov"](_v, 8).onInput($event) !== false);
        ad = (pd_4 && ad);
    } if (("keyup" === en)) {
        var pd_5 = (core["ɵnov"](_v, 8).onChange($event) !== false);
        ad = (pd_5 && ad);
    } if (("click" === en)) {
        var pd_6 = (core["ɵnov"](_v, 8).onFocus() !== false);
        ad = (pd_6 && ad);
    } if (("focus" === en)) {
        var pd_7 = (core["ɵnov"](_v, 8).onFocus() !== false);
        ad = (pd_7 && ad);
    } if (("blur" === en)) {
        var pd_8 = (core["ɵnov"](_v, 8).onBlur() !== false);
        ad = (pd_8 && ad);
    } if (("keydown" === en)) {
        var pd_9 = (core["ɵnov"](_v, 8).onKeydown($event) !== false);
        ad = (pd_9 && ad);
    } if (("ngModelChange" === en)) {
        var pd_10 = ((_co.selected = $event) !== false);
        ad = (pd_10 && ad);
    } if (("input" === en)) {
        var pd_11 = (_co.autocomplete($event) !== false);
        ad = (pd_11 && ad);
    } if (("typeaheadOnSelect" === en)) {
        var pd_12 = (_co.onSelect($event) !== false);
        ad = (pd_12 && ad);
    } return ad; }, null, null)), core["ɵdid"](2, 16384, null, 0, fesm2015_forms["e" /* DefaultValueAccessor */], [core["Renderer2"], core["ElementRef"], [2, fesm2015_forms["b" /* COMPOSITION_BUFFER_MODE */]]], null, null), core["ɵprd"](1024, null, fesm2015_forms["q" /* NG_VALUE_ACCESSOR */], function (p0_0) { return [p0_0]; }, [fesm2015_forms["e" /* DefaultValueAccessor */]]), core["ɵdid"](4, 671744, null, 0, fesm2015_forms["v" /* NgModel */], [[8, null], [8, null], [8, null], [6, fesm2015_forms["q" /* NG_VALUE_ACCESSOR */]]], { model: [0, "model"] }, { update: "ngModelChange" }), core["ɵprd"](2048, null, fesm2015_forms["r" /* NgControl */], null, [fesm2015_forms["v" /* NgModel */]]), core["ɵdid"](6, 16384, null, 0, fesm2015_forms["s" /* NgControlStatus */], [[4, fesm2015_forms["r" /* NgControl */]]], null, null), core["ɵdid"](7, 16384, null, 0, fesm2015["ec" /* NbInputDirective */], [], { fieldSize: [0, "fieldSize"], status: [1, "status"], fullWidth: [2, "fullWidth"] }, null), core["ɵdid"](8, 212992, null, 0, ngx_bootstrap_typeahead["c" /* TypeaheadDirective */], [ngx_bootstrap_component_loader["a" /* ComponentLoaderFactory */], ngx_bootstrap_typeahead["a" /* TypeaheadConfig */], core["ChangeDetectorRef"], core["ElementRef"], fesm2015_forms["r" /* NgControl */], core["Renderer2"], core["ViewContainerRef"]], { typeahead: [0, "typeahead"], adaptivePosition: [1, "adaptivePosition"], typeaheadOptionField: [2, "typeaheadOptionField"], typeaheadAsync: [3, "typeaheadAsync"], typeaheadScrollable: [4, "typeaheadScrollable"], typeaheadOptionsInScrollableView: [5, "typeaheadOptionsInScrollableView"] }, { typeaheadOnSelect: "typeaheadOnSelect" }), (_l()(), core["ɵeld"](9, 0, null, null, 4, "fa-icon", [["class", "ng-fa-icon"]], [[1, "title", 0], [8, "innerHTML", 1]], null, null, angular_fontawesome_ngfactory["d" /* View_FaIconComponent_0 */], angular_fontawesome_ngfactory["c" /* RenderType_FaIconComponent */])), core["ɵprd"](512, null, common["K" /* ɵNgClassImpl */], common["L" /* ɵNgClassR2Impl */], [core["IterableDiffers"], core["KeyValueDiffers"], core["ElementRef"], core["Renderer2"]]), core["ɵdid"](11, 278528, null, 0, common["m" /* NgClass */], [common["K" /* ɵNgClassImpl */]], { ngClass: [0, "ngClass"] }, null), core["ɵpod"](12, { "text-danger": 0 }), core["ɵdid"](13, 573440, null, 0, angular_fontawesome["c" /* FaIconComponent */], [platform_browser["b" /* DomSanitizer */], angular_fontawesome["a" /* FaConfig */], angular_fontawesome["d" /* FaIconLibrary */], [2, angular_fontawesome["i" /* FaStackItemSizeDirective */]]], { icon: [0, "icon"] }, null)], function (_ck, _v) { var _co = _v.component; var currVal_27 = _co.selected; _ck(_v, 4, 0, currVal_27); var currVal_28 = _co.size; var currVal_29 = ((_co.form.pristine || _co.form.valid) ? "primary" : "danger"); var currVal_30 = ""; _ck(_v, 7, 0, currVal_28, currVal_29, currVal_30); var currVal_31 = _co.datasource; var currVal_32 = true; var currVal_33 = "label"; var currVal_34 = true; var currVal_35 = _co.scrollable; var currVal_36 = _co.optionsInScrollableView; _ck(_v, 8, 0, currVal_31, currVal_32, currVal_33, currVal_34, currVal_35, currVal_36); var currVal_39 = _ck(_v, 12, 0, (!_co.form.pristine && _co.form.invalid)); _ck(_v, 11, 0, currVal_39); var currVal_40 = _co.iconSearch; _ck(_v, 13, 0, currVal_40); }, function (_ck, _v) { var _co = _v.component; var currVal_0 = (((_co.value == null) ? null : _co.value.label) || ""); var currVal_1 = _co.placeholder; var currVal_2 = (_co.autofocus ? true : null); var currVal_3 = ((_co.isLoading || _co.disabled) ? true : null); var currVal_4 = core["ɵnov"](_v, 6).ngClassUntouched; var currVal_5 = core["ɵnov"](_v, 6).ngClassTouched; var currVal_6 = core["ɵnov"](_v, 6).ngClassPristine; var currVal_7 = core["ɵnov"](_v, 6).ngClassDirty; var currVal_8 = core["ɵnov"](_v, 6).ngClassValid; var currVal_9 = core["ɵnov"](_v, 6).ngClassInvalid; var currVal_10 = core["ɵnov"](_v, 6).ngClassPending; var currVal_11 = core["ɵnov"](_v, 7).fullWidth; var currVal_12 = core["ɵnov"](_v, 7).tiny; var currVal_13 = core["ɵnov"](_v, 7).small; var currVal_14 = core["ɵnov"](_v, 7).medium; var currVal_15 = core["ɵnov"](_v, 7).large; var currVal_16 = core["ɵnov"](_v, 7).giant; var currVal_17 = core["ɵnov"](_v, 7).primary; var currVal_18 = core["ɵnov"](_v, 7).info; var currVal_19 = core["ɵnov"](_v, 7).success; var currVal_20 = core["ɵnov"](_v, 7).warning; var currVal_21 = core["ɵnov"](_v, 7).danger; var currVal_22 = core["ɵnov"](_v, 7).basic; var currVal_23 = core["ɵnov"](_v, 7).control; var currVal_24 = core["ɵnov"](_v, 7).rectangle; var currVal_25 = core["ɵnov"](_v, 7).semiRound; var currVal_26 = core["ɵnov"](_v, 7).round; _ck(_v, 1, 1, [currVal_0, currVal_1, currVal_2, currVal_3, currVal_4, currVal_5, currVal_6, currVal_7, currVal_8, currVal_9, currVal_10, currVal_11, currVal_12, currVal_13, currVal_14, currVal_15, currVal_16, currVal_17, currVal_18, currVal_19, currVal_20, currVal_21, currVal_22, currVal_23, currVal_24, currVal_25, currVal_26]); var currVal_37 = core["ɵnov"](_v, 13).title; var currVal_38 = core["ɵnov"](_v, 13).renderedIconHTML; _ck(_v, 9, 0, currVal_37, currVal_38); }); }
function View_TypeaheadComponent_Host_0(_l) { return core["ɵvid"](0, [(_l()(), core["ɵeld"](0, 0, null, null, 1, "omni-typeahead", [], null, null, null, View_TypeaheadComponent_0, RenderType_TypeaheadComponent)), core["ɵdid"](1, 114688, null, 0, typeahead_component["a" /* TypeaheadComponent */], [auth_service["a" /* AuthService */], autocomplete_service["a" /* AutoCompleteService */]], null, null)], function (_ck, _v) { _ck(_v, 1, 0); }, null); }
var TypeaheadComponentNgFactory = core["ɵccf"]("omni-typeahead", typeahead_component["a" /* TypeaheadComponent */], View_TypeaheadComponent_Host_0, { autofocus: "autofocus", form: "form", formControl: "formControl", disabled: "disabled", entityType: "entityType", extraParam: "extraParam", isLoading: "isLoading", optionsInScrollableView: "optionsInScrollableView", placeholder: "placeholder", size: "size", value: "value", scrollable: "scrollable" }, { valueChange: "valueChange" }, []);



/***/ }),

/***/ "FDju":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return DateValidator; });
/* harmony import */ var src_app_shared_utils_date_util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6eHG");
/* harmony import */ var src_app_shared_utils_number_util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("qzEW");


function DateValidator(control) {
    if (control.value && control.value.toString().trim()) {
        const value = control.value.toString();
        if (src_app_shared_utils_number_util__WEBPACK_IMPORTED_MODULE_1__[/* NumberUtil */ "a"].isNumber(value)) {
            return null;
        }
        if (!value.match(/[\d]{2}\/[\d]{2}\/[\d]{4}/g)) {
            return { dataCompletaInvalida: true };
        }
        if (!src_app_shared_utils_date_util__WEBPACK_IMPORTED_MODULE_0__[/* DateUtil */ "a"].isValidDate(value, 'DD/MM/YYYY')) {
            return { dataInvalida: true };
        }
    }
    return null;
}


/***/ }),

/***/ "MRXr":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AUTOCOMPLETE_ENTITY; });
const AUTOCOMPLETE_ENTITY = {
    BAIRRO: 'bairro',
    CATEGORIA_DO_PRODUTO: 'categoria-do-produto',
    CUPOM_DE_DESCONTO: 'cupom-de-desconto',
    EMPRESA: 'empresa',
    MUNICIPIO: 'municipio',
    PERSONALIZACAO: 'personalizacao',
    PRODUTO: 'produto'
};


/***/ }),

/***/ "eCBd":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ClienteService; });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("IheW");
/* harmony import */ var _resource_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("edFq");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("8Y7J");




class ClienteService extends _resource_service__WEBPACK_IMPORTED_MODULE_1__[/* ResourceService */ "a"] {
    constructor(http) {
        super(http, 'admin/clientes');
    }
    /**
     * Update an User, changing block status on it.
     * @param customer: Cliente
     */
    blockOrUnblockCustomer(customer) {
        const params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_0__[/* HttpParams */ "h"]()
            .append('customerId', customer.id.toString());
        return this.http.put(`${this.api}/${this.endpoint}/${customer.empresa.id}/bloqueio/usuario`, params);
    }
    /**
     * Atualiza o estado de bloqueio de recebimento de pagamento online do cliente.
     * @param customerId number
     */
    lockOnlinePaymentReceivement(customerId) {
        const params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_0__[/* HttpParams */ "h"]().append('customerId', customerId.toString());
        return this.http.put(`${this.api}/${this.endpoint}/${this.vendorId}/bloqueio/pagamento-online`, params);
    }
    findInactiveCustomers() {
        return this.http.get(`${this.api}/${this.endpoint}/${this.vendorId}/inactive-customers`);
    }
    getCustomerStatus(status) {
        return status ? 'success' : 'danger';
    }
    /**
     * Get all users who don't buy anything in the last 90 days.
     */
    getDetachedCustomers() {
        return this.http.get(`${this.api}/${this.endpoint}/${this.vendorId}/consultas/sem-pedidos-90`);
    }
    /**
     * Update all customers data.
     * @param customers: Cliente[]
     * @returns Observable<Cliente[]>
     */
    sendEmail(customers) {
        return this.http.post(`${this.api}/${this.endpoint}/${this.vendorId}/send-email`, customers);
    }
}
ClienteService.ngInjectableDef = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineInjectable"]({ factory: function ClienteService_Factory() { return new ClienteService(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_0__[/* HttpClient */ "c"])); }, token: ClienteService, providedIn: "root" });


/***/ }),

/***/ "jQB5":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AutoCompleteService; });
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("SxV6");
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("AytR");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("8Y7J");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("IheW");




class AutoCompleteService {
    constructor(http) {
        this.http = http;
        this.api = `${src_environments_environment__WEBPACK_IMPORTED_MODULE_1__[/* environment */ "a"].apiUrl}/ui/autocomplete`;
    }
    get companyId() {
        return this.vendorId;
    }
    set companyId(companyId) {
        this.vendorId = companyId;
    }
    search(autoCompleteEntityName, searchTerm, extraParam) {
        const url = `${this.api}/${this.vendorId}/${autoCompleteEntityName}/${searchTerm}`;
        if (extraParam) {
            return this.http.get(`${url}/${extraParam}`).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_0__[/* first */ "a"])());
        }
        return this.http.get(url).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_0__[/* first */ "a"])());
    }
}
AutoCompleteService.ngInjectableDef = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineInjectable"]({ factory: function AutoCompleteService_Factory() { return new AutoCompleteService(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_3__[/* HttpClient */ "c"])); }, token: AutoCompleteService, providedIn: "root" });


/***/ })

};;