@seniorsistemas/yms-integration 1.18.4 → 1.19.1-50993c93-db44-4e13-ae38-d1cca3a0e113

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/bundles/seniorsistemas-yms-integration.umd.js +901 -253
  2. package/bundles/seniorsistemas-yms-integration.umd.js.map +1 -1
  3. package/bundles/seniorsistemas-yms-integration.umd.min.js +1 -1
  4. package/bundles/seniorsistemas-yms-integration.umd.min.js.map +1 -1
  5. package/esm2015/index.js +4 -1
  6. package/esm2015/seniorsistemas-yms-integration.js +47 -38
  7. package/esm2015/src/devices/balancas/balancas.service.js +4 -1
  8. package/esm2015/src/devices/balancas/visualiar-balanca/visualizar-balanca.component.js +8 -25
  9. package/esm2015/src/devices/balancas/weightScale.js +1 -1
  10. package/esm2015/src/sam-senior/components/visitor-edit/visitor-edit-list/visitor-edit-list.component.js +32 -1
  11. package/esm2015/src/wms/components/document-grid/document-grid.component.js +166 -0
  12. package/esm2015/src/wms/components/document-grid/document-grid.module.js +35 -0
  13. package/esm2015/src/wms/components/document-grid/insert-key/insert-key.component.js +82 -0
  14. package/esm2015/src/wms/components/document-grid/insert-key/insert-key.module.js +26 -0
  15. package/esm2015/src/wms/components/document-grid/register-document/register-document.component.js +125 -0
  16. package/esm2015/src/wms/components/document-grid/register-document/register-document.module.js +32 -0
  17. package/esm2015/src/wms/entities/agenda/agenda.service.js +22 -0
  18. package/esm2015/src/wms/entities/document/document-dto.js +1 -0
  19. package/esm2015/src/wms/entities/document/document.js +39 -0
  20. package/esm2015/src/wms/entities/document/document.service.js +21 -0
  21. package/esm2015/src/wms/entities/document/find-documents-input.js +1 -0
  22. package/esm2015/src/wms/entities/entity-service.js +4 -0
  23. package/esm2015/src/wms/entities/wms-system/wms-system.js +9 -0
  24. package/esm2015/src/wms/form/form-wms.component.js +60 -0
  25. package/esm2015/src/wms/wms.module.js +68 -0
  26. package/esm5/index.js +4 -1
  27. package/esm5/seniorsistemas-yms-integration.js +47 -38
  28. package/esm5/src/devices/balancas/balancas.service.js +4 -1
  29. package/esm5/src/devices/balancas/visualiar-balanca/visualizar-balanca.component.js +8 -25
  30. package/esm5/src/devices/balancas/weightScale.js +1 -1
  31. package/esm5/src/sam-senior/components/visitor-edit/visitor-edit-list/visitor-edit-list.component.js +32 -1
  32. package/esm5/src/wms/components/document-grid/document-grid.component.js +171 -0
  33. package/esm5/src/wms/components/document-grid/document-grid.module.js +38 -0
  34. package/esm5/src/wms/components/document-grid/insert-key/insert-key.component.js +84 -0
  35. package/esm5/src/wms/components/document-grid/insert-key/insert-key.module.js +29 -0
  36. package/esm5/src/wms/components/document-grid/register-document/register-document.component.js +127 -0
  37. package/esm5/src/wms/components/document-grid/register-document/register-document.module.js +35 -0
  38. package/esm5/src/wms/entities/agenda/agenda.service.js +25 -0
  39. package/esm5/src/wms/entities/document/document-dto.js +1 -0
  40. package/esm5/src/wms/entities/document/document.js +44 -0
  41. package/esm5/src/wms/entities/document/document.service.js +24 -0
  42. package/esm5/src/wms/entities/document/find-documents-input.js +1 -0
  43. package/esm5/src/wms/entities/entity-service.js +11 -0
  44. package/esm5/src/wms/entities/wms-system/wms-system.js +9 -0
  45. package/esm5/src/wms/form/form-wms.component.js +63 -0
  46. package/esm5/src/wms/wms.module.js +69 -0
  47. package/fesm2015/seniorsistemas-yms-integration.js +807 -207
  48. package/fesm2015/seniorsistemas-yms-integration.js.map +1 -1
  49. package/fesm5/seniorsistemas-yms-integration.js +840 -204
  50. package/fesm5/seniorsistemas-yms-integration.js.map +1 -1
  51. package/index.d.ts +2 -0
  52. package/package.json +1 -1
  53. package/seniorsistemas-yms-integration.d.ts +46 -37
  54. package/seniorsistemas-yms-integration.metadata.json +1 -1
  55. package/src/devices/balancas/balancas.service.d.ts +1 -0
  56. package/src/devices/balancas/visualiar-balanca/visualizar-balanca.component.d.ts +2 -11
  57. package/src/devices/balancas/weightScale.d.ts +2 -2
  58. package/src/sam-senior/components/visitor-edit/visitor-edit-list/visitor-edit-list.component.d.ts +1 -0
  59. package/src/wms/components/document-grid/document-grid.component.d.ts +41 -0
  60. package/src/wms/components/document-grid/document-grid.module.d.ts +2 -0
  61. package/src/wms/components/document-grid/insert-key/insert-key.component.d.ts +22 -0
  62. package/src/wms/components/document-grid/insert-key/insert-key.module.d.ts +2 -0
  63. package/src/wms/components/document-grid/register-document/register-document.component.d.ts +31 -0
  64. package/src/wms/components/document-grid/register-document/register-document.module.d.ts +2 -0
  65. package/src/wms/entities/agenda/agenda.service.d.ts +9 -0
  66. package/src/wms/entities/document/document-dto.d.ts +16 -0
  67. package/src/wms/entities/document/document.d.ts +20 -0
  68. package/src/wms/entities/document/document.service.d.ts +11 -0
  69. package/src/wms/entities/document/find-documents-input.d.ts +7 -0
  70. package/src/wms/entities/entity-service.d.ts +3 -0
  71. package/src/wms/entities/wms-system/wms-system.d.ts +7 -0
  72. package/src/wms/form/form-wms.component.d.ts +18 -0
  73. package/src/wms/wms.module.d.ts +4 -0
@@ -2,9 +2,9 @@ import { Subject, throwError, BehaviorSubject, empty, ReplaySubject, NEVER, of,
2
2
  import { takeUntil, catchError, finalize, map, filter, mergeMap, tap, concatMap, switchMap, debounceTime } from 'rxjs/operators';
3
3
  import { __decorate, __metadata, __param } from 'tslib';
4
4
  import { CommonModule } from '@angular/common';
5
- import { Injectable, Input, Component, NgModule, Output, defineInjectable, inject, EventEmitter, InjectionToken, Inject, ViewChild, TemplateRef } from '@angular/core';
5
+ import { Injectable, Input, Component, NgModule, Output, defineInjectable, inject, EventEmitter, ViewChild, TemplateRef, InjectionToken, Inject } from '@angular/core';
6
6
  import { TranslateService, TranslateModule } from '@ngx-translate/core';
7
- import { ButtonModule, LoadingStateModule, FieldType, FormField, CustomFieldsModule, ControlErrorsModule, EmptyStateModule, DynamicFormModule, TokenListModule, NumberInputModule, LocaleModule } from '@seniorsistemas/angular-components';
7
+ import { ButtonModule, LoadingStateModule, FieldType, FormField, CustomFieldsModule, ControlErrorsModule, EmptyStateModule, DynamicFormModule, TokenListModule, NumberInputModule, LocaleModule, SidebarModule } from '@seniorsistemas/angular-components';
8
8
  import { MessageModule } from 'primeng/message';
9
9
  import { TableModule, Table } from 'primeng/table';
10
10
  import { HttpParams, HttpClient, HttpClientModule } from '@angular/common/http';
@@ -12,12 +12,12 @@ import { MessageService, DynamicDialogRef, DynamicDialogConfig, DialogService, C
12
12
  import { ControleCircuito, ControleOperacao, IntegrationDispatcher, CircuitoFinalizado, ControleUnificado, ChegadaVeiculo, IntegrationEventsCallback, IntegrationModule, ChegadaVeiculoOverride, Agendamento } from '@seniorsistemas/yms-routines';
13
13
  import { trigger, state, style, transition, animate } from '@angular/animations';
14
14
  import { PermissionsModule } from '@seniorsistemas/platform-components';
15
- import { StompService, StompConfig } from '@stomp/ng2-stompjs';
16
- import { CookieService } from 'ngx-cookie-service';
15
+ import { StompConfig, StompService } from '@stomp/ng2-stompjs';
17
16
  import * as SockJS from 'sockjs-client';
17
+ import { CookieService } from 'ngx-cookie-service';
18
18
  import { DynamicDialogModule } from 'primeng/components/dynamicdialog/dynamicdialog';
19
- import { TooltipModule, SharedModule, CardModule, DialogModule, PanelModule, InputTextModule as InputTextModule$1, DropdownModule, ConfirmDialogModule, TabViewModule, CalendarModule } from 'primeng/primeng';
20
- import { SelectPlantService, SelectPlantModule } from '@seniorsistemas/yms-components';
19
+ import { TooltipModule, SharedModule, CardModule, DialogModule, PanelModule, InputTextModule as InputTextModule$1, DropdownModule, ConfirmDialogModule, TabViewModule, CalendarModule, InputTextareaModule } from 'primeng/primeng';
20
+ import { SelectPlantService, SelectPlantModule, ComponentsModule } from '@seniorsistemas/yms-components';
21
21
  import { Router, RouterModule, ActivatedRoute } from '@angular/router';
22
22
  import { InputSwitchModule } from 'primeng/inputswitch';
23
23
  import { InputTextModule } from 'primeng/inputtext';
@@ -352,6 +352,9 @@ let BalancasService = class BalancasService extends Service {
352
352
  fallbackCall(balanca, peso) {
353
353
  return this.http.post(`${this.urlBalanca}actions/manualWeight`, { code: balanca, weight: peso }).pipe(this.defaultCatch());
354
354
  }
355
+ getStabilizedWeight(code) {
356
+ return this.http.post(`${this.urlBalanca}queries/getStabilizedWeight`, { code }).pipe(this.defaultCatch());
357
+ }
355
358
  getWeightScaleByCode(code) {
356
359
  const params = {
357
360
  displayFields: ["description", "code"],
@@ -380,13 +383,10 @@ VisualizarBalancaDescritor = __decorate([
380
383
  })
381
384
  ], VisualizarBalancaDescritor);
382
385
  let VisualizarBalancaComponent = class VisualizarBalancaComponent extends VisualizarBalancaDescritor {
383
- constructor(service, client, cookieService) {
386
+ constructor(service) {
384
387
  super();
385
388
  this.service = service;
386
- this.client = client;
387
- this.cookieService = cookieService;
388
389
  this.loading = false;
389
- this.websocket = new IntegrationWebSocket(this.client, this.cookieService, 'integration');
390
390
  this.unsubscribe$ = new Subject();
391
391
  this.weightScales$ = new BehaviorSubject([]);
392
392
  this.weightScaleValues = new Map();
@@ -401,19 +401,10 @@ let VisualizarBalancaComponent = class VisualizarBalancaComponent extends Visual
401
401
  this.weightScales$.next(contents);
402
402
  contents.forEach((value) => {
403
403
  this.weightScaleValues.set(value.id, 0);
404
- });
405
- });
406
- this.websocket.connect((url, client) => {
407
- client.subscribe(`${url}wsWeightScale`)
408
- .pipe(map((message) => message.body), map((body) => JSON.parse(body).data), takeUntil(this.unsubscribe$))
409
- .subscribe((payload) => {
410
- if (!this.weightScales$.value.length)
411
- return;
412
- const index = this.weightScales$.value.findIndex(value => value.id === payload.weightScale.id);
413
- if (index < 0)
414
- return;
415
- const find = this.weightScales$.value[index];
416
- this.weightScaleValues.set(find.id, payload.weight);
404
+ this.service.getStabilizedWeight(value.code)
405
+ .subscribe((stabilized) => {
406
+ this.weightScaleValues.set(value.id, stabilized.weight);
407
+ });
417
408
  });
418
409
  });
419
410
  }
@@ -431,9 +422,7 @@ VisualizarBalancaComponent = __decorate([
431
422
  selector: 'visualizar-balanca-component',
432
423
  template: "<div *sLoadingState=\"loading\">\n <p-table [value]=\"weightScales$ | async\">\n <ng-template pTemplate=\"header\">\n <tr>\n <th>C\u00F3digo</th>\n <th>Descri\u00E7\u00E3o</th>\n <th>Peso</th>\n </tr>\n </ng-template>\n <ng-template let-rowData pTemplate=\"body\">\n <tr>\n <td>{{rowData.code}}</td>\n <td>{{rowData.description}}</td>\n <td>{{weightScaleValues.get(rowData.id)}}</td>\n </tr>\n </ng-template>\n </p-table>\n</div>"
433
424
  }),
434
- __metadata("design:paramtypes", [BalancasService,
435
- StompService,
436
- CookieService])
425
+ __metadata("design:paramtypes", [BalancasService])
437
426
  ], VisualizarBalancaComponent);
438
427
 
439
428
  class CustomStompConfig extends StompConfig {
@@ -1811,6 +1800,16 @@ let VisitanteComponent = class VisitanteComponent {
1811
1800
  driver: true
1812
1801
  });
1813
1802
  }
1803
+ if (this.visitors.length > 0) {
1804
+ this.visitors[0].visitor = {
1805
+ name: mot.nome,
1806
+ document: mot.cpf,
1807
+ contact: this.getContatoMotorista(mot),
1808
+ visitorSituation: VisitorSituation.CHECK_IN_PENDING,
1809
+ documentType: this.getDocumentType(),
1810
+ driver: true
1811
+ };
1812
+ }
1814
1813
  }
1815
1814
  adicionaVisitantesGrid() {
1816
1815
  if (this.visitors.length) {
@@ -1895,6 +1894,14 @@ let VisitanteComponent = class VisitanteComponent {
1895
1894
  if (visitor.document === visitante.document) {
1896
1895
  visitor.contact = visitante.contact;
1897
1896
  visitor.name = visitante.name;
1897
+ const novoVisitante = this.buildVisitorCredentialsDto(visitor);
1898
+ this.visitors.forEach(result => {
1899
+ if (result.visitor.document === novoVisitante.visitor.document) {
1900
+ result.visitor.name = novoVisitante.visitor.name;
1901
+ result.visitor.contact = novoVisitante.visitor.contact;
1902
+ }
1903
+ });
1904
+ this.visitorsChange.emit(this.visitors);
1898
1905
  this.visitorFound = true;
1899
1906
  }
1900
1907
  });
@@ -1922,6 +1929,19 @@ let VisitanteComponent = class VisitanteComponent {
1922
1929
  this.visitorsChange.emit(this.visitors);
1923
1930
  this.hasChange.emit(true);
1924
1931
  }
1932
+ buildVisitorCredentialsDto(visitor) {
1933
+ const visitorCredentialsDto = new VisitorCredentialsDto();
1934
+ const visitante = {
1935
+ name: visitor.name,
1936
+ document: visitor.document,
1937
+ contact: visitor.contact,
1938
+ documentType: visitor.documentType,
1939
+ visitorSituation: visitor.visitorSituation,
1940
+ driver: false
1941
+ };
1942
+ visitorCredentialsDto.visitor = visitante;
1943
+ return visitorCredentialsDto;
1944
+ }
1925
1945
  model(visitante) {
1926
1946
  const isDriver = visitante.document === this.motorista.cpf;
1927
1947
  const findVisitor = this.visitors.find((visitorWithCredentials) => visitorWithCredentials.visitor.document === visitante.document);
@@ -2775,6 +2795,268 @@ VisitorListModule = __decorate([
2775
2795
  __metadata("design:paramtypes", [IntegrationDispatcher])
2776
2796
  ], VisitorListModule);
2777
2797
 
2798
+ const INFORMACAOES_ADICIONAIS_HEADER = "Informações adicionais";
2799
+ let FormWmsDescritor = class FormWmsDescritor {
2800
+ };
2801
+ FormWmsDescritor = __decorate([
2802
+ ChegadaVeiculo({
2803
+ header: INFORMACAOES_ADICIONAIS_HEADER,
2804
+ name: 'yms.integracao.wms',
2805
+ icon: 'fa fa-plus'
2806
+ })
2807
+ ], FormWmsDescritor);
2808
+ let FormWmsComponent = class FormWmsComponent extends FormWmsDescritor {
2809
+ constructor(integrationCallback) {
2810
+ super();
2811
+ this.integrationCallback = integrationCallback;
2812
+ this.save = [];
2813
+ this.header = INFORMACAOES_ADICIONAIS_HEADER;
2814
+ this.loading = false;
2815
+ this.unsubscribe$ = new Subject();
2816
+ this._integrationCallback = integrationCallback;
2817
+ }
2818
+ ngOnInit() {
2819
+ this._integrationCallback.onAgendamentoSaved()
2820
+ .pipe(takeUntil(this.unsubscribe$), mergeMap(agenda => {
2821
+ this.agenda = agenda;
2822
+ return empty();
2823
+ }))
2824
+ .subscribe();
2825
+ }
2826
+ ngOnDestroy() {
2827
+ this.unsubscribe$.next();
2828
+ this.unsubscribe$.complete();
2829
+ }
2830
+ };
2831
+ __decorate([
2832
+ Output(),
2833
+ __metadata("design:type", Agenda)
2834
+ ], FormWmsComponent.prototype, "agenda", void 0);
2835
+ __decorate([
2836
+ Input(),
2837
+ __metadata("design:type", Array)
2838
+ ], FormWmsComponent.prototype, "save", void 0);
2839
+ FormWmsComponent = __decorate([
2840
+ Component({
2841
+ template: `
2842
+ <div *ngIf="agenda">
2843
+ <document-grid [agenda]="agenda"></document-grid>
2844
+ </div>
2845
+ `
2846
+ }),
2847
+ __metadata("design:paramtypes", [IntegrationEventsCallback])
2848
+ ], FormWmsComponent);
2849
+
2850
+ let DocumentService = class DocumentService extends EntityService {
2851
+ constructor(http, messageService) {
2852
+ super(http, messageService, 'yms_int/wms/entities/document', '');
2853
+ this.http = http;
2854
+ this.messageService = messageService;
2855
+ }
2856
+ findDocuments(input) {
2857
+ return this.http.post('yms_int/wms/queries/findDocuments', input);
2858
+ }
2859
+ };
2860
+ DocumentService = __decorate([
2861
+ Injectable(),
2862
+ __metadata("design:paramtypes", [HttpClient, MessageService])
2863
+ ], DocumentService);
2864
+
2865
+ let DocumentGridComponent = class DocumentGridComponent {
2866
+ constructor(translate, documentService, messageService) {
2867
+ this.translate = translate;
2868
+ this.documentService = documentService;
2869
+ this.messageService = messageService;
2870
+ this.viewDocument = new EventEmitter();
2871
+ this.gridData = [];
2872
+ this.ngUnsubscribe = new Subject();
2873
+ }
2874
+ ngOnInit() {
2875
+ this.gridColumns = this.getGridColumns();
2876
+ this.listDocuments();
2877
+ }
2878
+ onChangeDocument(document) {
2879
+ this.gridData.push(document);
2880
+ this.disabled = false;
2881
+ }
2882
+ getActions() {
2883
+ return [
2884
+ {
2885
+ label: this.translate.instant("yms.int.wms_add_document_invoice_key"),
2886
+ command: () => {
2887
+ this.visibleInvoiceKey = true;
2888
+ },
2889
+ icon: "fa fa-search"
2890
+ },
2891
+ {
2892
+ label: this.translate.instant("yms.int.wms_add_document_register"),
2893
+ command: () => {
2894
+ this.edit = true;
2895
+ this.visibleDocumentRegister = true;
2896
+ },
2897
+ icon: "fas fa-pen-square"
2898
+ }
2899
+ ];
2900
+ }
2901
+ getProp(obj, path) {
2902
+ return path.split(".").reduce((result, prop) => (result[prop] === undefined ? "" : result[prop]), obj);
2903
+ }
2904
+ view(selection) {
2905
+ this.viewDocument.emit(selection);
2906
+ this.visibleDocumentRegister = true;
2907
+ this.edit = false;
2908
+ }
2909
+ save() {
2910
+ if (this.gridData.length > 0) {
2911
+ this.gridData.forEach(data => {
2912
+ if (!data.id) {
2913
+ if (!data.schedulingId) {
2914
+ data.schedulingId = this.agenda.id;
2915
+ }
2916
+ this.documentService.insert(data).subscribe(() => {
2917
+ this.message("success", "saved_message_title", "saved_message_content");
2918
+ });
2919
+ this.disabled = true;
2920
+ }
2921
+ });
2922
+ }
2923
+ }
2924
+ onDelete(selection) {
2925
+ if (!selection.id) {
2926
+ return;
2927
+ }
2928
+ this.documentService.delete(selection.id)
2929
+ .pipe(takeUntil(this.ngUnsubscribe), finalize(() => {
2930
+ this.gridData = [];
2931
+ this.listDocuments();
2932
+ })).
2933
+ subscribe(() => this.message("success", "deleted_message_title", "deleted_message_content"));
2934
+ }
2935
+ listDocuments() {
2936
+ this.documentService.list({
2937
+ filterQuery: `schedulingId eq '${this.agenda.id}'`
2938
+ })
2939
+ .subscribe((contents) => {
2940
+ if (contents.totalElements > 0) {
2941
+ this.gridData = contents.contents;
2942
+ this.documentTotalRecords = contents.totalElements;
2943
+ }
2944
+ else {
2945
+ this.disabled = true;
2946
+ this.documentTotalRecords = this.gridData.length;
2947
+ }
2948
+ this.loading = false;
2949
+ });
2950
+ }
2951
+ getGridColumns() {
2952
+ return [
2953
+ { field: "logistcUnitName", header: this.translate.instant("yms.int.wms_register_document_logistc_unit_name") },
2954
+ { field: "logistcUnitDocument", header: this.translate.instant("yms.int.wms_register_document_logistc_unit_document") },
2955
+ { field: "invoiceKey", header: this.translate.instant("yms.int.wms_register_document_invoice_key") },
2956
+ { field: "invoiceNumber", header: this.translate.instant("yms.int.wms_register_document_invoice_number") },
2957
+ { field: "invoiceSerialNumber", header: this.translate.instant("yms.int.wms_register_document_invoice_serial_number") },
2958
+ { field: "ownerName", header: this.translate.instant("yms.int.wms_register_document_owner_name") },
2959
+ { field: "ownerDocument", header: this.translate.instant("yms.int.wms_register_document_owner_document") },
2960
+ { field: "orderReceivingCode", header: this.translate.instant("yms.int.wms_register_document_order_receiving_code") },
2961
+ ];
2962
+ }
2963
+ message(severity, summary, detail) {
2964
+ this.messageService.add({
2965
+ severity,
2966
+ summary: this.translate.instant(summary),
2967
+ detail: this.translate.instant(detail),
2968
+ });
2969
+ }
2970
+ };
2971
+ __decorate([
2972
+ Input(),
2973
+ __metadata("design:type", Object)
2974
+ ], DocumentGridComponent.prototype, "agenda", void 0);
2975
+ __decorate([
2976
+ Output(),
2977
+ __metadata("design:type", Boolean)
2978
+ ], DocumentGridComponent.prototype, "visibleInvoiceKey", void 0);
2979
+ __decorate([
2980
+ Output(),
2981
+ __metadata("design:type", Boolean)
2982
+ ], DocumentGridComponent.prototype, "visibleDocumentRegister", void 0);
2983
+ __decorate([
2984
+ Output(),
2985
+ __metadata("design:type", EventEmitter)
2986
+ ], DocumentGridComponent.prototype, "viewDocument", void 0);
2987
+ __decorate([
2988
+ ViewChild("documentTable"),
2989
+ __metadata("design:type", Table)
2990
+ ], DocumentGridComponent.prototype, "table", void 0);
2991
+ __decorate([
2992
+ ViewChild("customTemplate"),
2993
+ __metadata("design:type", TemplateRef)
2994
+ ], DocumentGridComponent.prototype, "customTemplate", void 0);
2995
+ __decorate([
2996
+ ViewChild("customFilterFields"),
2997
+ __metadata("design:type", TemplateRef)
2998
+ ], DocumentGridComponent.prototype, "customFilterFields", void 0);
2999
+ __decorate([
3000
+ ViewChild("customGridColgroup"),
3001
+ __metadata("design:type", TemplateRef)
3002
+ ], DocumentGridComponent.prototype, "customGridColgroup", void 0);
3003
+ __decorate([
3004
+ ViewChild("customGridHeader"),
3005
+ __metadata("design:type", TemplateRef)
3006
+ ], DocumentGridComponent.prototype, "customGridHeader", void 0);
3007
+ __decorate([
3008
+ ViewChild("customGridBody"),
3009
+ __metadata("design:type", TemplateRef)
3010
+ ], DocumentGridComponent.prototype, "customGridBody", void 0);
3011
+ DocumentGridComponent = __decorate([
3012
+ Component({
3013
+ selector: 'document-grid',
3014
+ template: "<p-panel>\n <p-header>\n <div class=\"buttons\">\n <div>\n <s-button\n label=\"{{'yms.int.wms_add_document' | translate}}\"\n priority=\"primary\"\n [model]=\"getActions()\"\n [auxiliary]=\"false\">\n </s-button>\n <s-button\n label=\"{{'yms.wms_view_button' | translate}}\"\n priority=\"secondary\"\n [auxiliary]=\"false\"\n [disabled]=\"!selection\"\n (onClick)=\"view(selection)\">\n </s-button>\n <s-button\n label=\"{{'yms.wms_delete_button' | translate}}\"\n priority=\"secondary\"\n [auxiliary]=\"false\"\n [disabled]=\"!selection\"\n (click)=\"onDelete(selection)\">\n </s-button>\n </div>\n <s-button\n id=\"refresh-button\"\n priority=\"default\"\n iconClass=\"fa fa-refresh\"\n (onClick)=\"listDocuments()\"\n >\n </s-button>\n </div>\n </p-header>\n <div class=\"ui-g\">\n <div class=\"ui-g-12\" *ngIf=\"gridData && gridData.length; else emptyList\">\n <p-table #documentTable [value]=\"gridData\"\n [columns]=\"gridColumns\" dataKey=\"id\" [lazy]=\"true\" [scrollable]=\"true\" [resizableColumns]=\"true\"\n sortMode=\"single\" [paginator]=\"true\" [totalRecords]=\"documentTotalRecords\" rows=\"10\"\n [rowsPerPageOptions]=\"[10, 20, 50, 100]\" [(selection)]=\"selection\"\n [loading]=\"loading\">\n <ng-template pTemplate=\"colgroup\" let-columns>\n <colgroup>\n <col *ngFor=\"let col of columns\" [style.width]=\"col.width\"/>\n </colgroup>\n </ng-template>\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <th id=\"col\" *ngFor=\"let col of columns\" [pSortableColumn]=\"col.field\" pResizableColumn>\n <div class=\"senior-header\">\n <span class=\"senior-header-title\">{{ col.header }}</span>\n <p-sortIcon [field]=\"col.field\"></p-sortIcon>\n </div>\n </th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowData let-columns let-expanded=\"expanded\">\n <tr [pSelectableRow]=\"rowData\">\n <td (click)=\"selection = rowData\">\n <span>{{ rowData[\"logistcUnitName\"] }}</span>\n </td>\n <td (click)=\"selection = rowData\">\n <span>{{ rowData[\"logistcUnitDocument\"] }}</span>\n </td>\n <td (click)=\"selection = rowData\">\n <span>{{ rowData[\"invoiceKey\"] }}</span>\n </td>\n <td (click)=\"selection = rowData\">\n <span>{{ rowData[\"invoiceNumber\"] }}</span>\n </td>\n <td (click)=\"selection = rowData\">\n <span>{{ rowData[\"invoiceSerialNumber\"] }}</span>\n </td>\n <td (click)=\"selection = rowData\">\n <span>{{ rowData[\"ownerName\"] }}</span>\n </td>\n <td (click)=\"selection = rowData\">\n <span>{{ rowData[\"ownerDocument\"] }}</span>\n </td>\n <td (click)=\"selection = rowData\">\n <span>{{ rowData[\"orderReceivingCode\"] }}</span>\n </td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"paginatorright\">\n <span [translate]=\"'total_records'\" [translateParams]=\"{ value: documentTotalRecords }\"></span>\n </ng-template>\n </p-table> \n </div>\n </div>\n <register-document\n [edit]=\"edit\"\n [viewDocument]=\"selection\"\n (document)=\"onChangeDocument($event)\"\n [(visible)]=\"visibleDocumentRegister\"\n [agenda]=\"agenda\">\n </register-document>\n <insert-key (document)=\"onChangeDocument($event)\" [(visible)]=\"visibleInvoiceKey\"></insert-key>\n</p-panel>\n<div class=\"button-save\">\n <s-button \n priority=\"primary\" [label]=\"'save' | translate\" [disabled]=\"!disabled || !this.gridData\" (click)=\"save()\">\n </s-button>\n</div>\n\n\n<ng-template #emptyList>\n <div class=\"center\">\n <s-empty-state\n iconClass=\"fa fa-exclamation-triangle\" [title]=\"'yms.dock.area_dock_empty_state_title' | translate\"\n [description]=\"'yms.dock.area_dock_empty_state_description' | translate\">\n </s-empty-state>\n </div>\n</ng-template>\n",
3015
+ styles: [".buttons{display:flex;justify-content:space-between}.center{flex-direction:column;text-align:center}.ui-g{display:block}.button-save{margin:5px 0}#refresh-button{color:#fff}"]
3016
+ }),
3017
+ __metadata("design:paramtypes", [TranslateService,
3018
+ DocumentService,
3019
+ MessageService])
3020
+ ], DocumentGridComponent);
3021
+
3022
+ const moment$4 = _moment;
3023
+ class Document {
3024
+ static fromDto(documentDto, originEntity) {
3025
+ const model = Object.assign({}, documentDto);
3026
+ model.createdDate = model.createdDate && moment$4(model.createdDate).toDate();
3027
+ model.lastModifiedDate = model.lastModifiedDate && moment$4(model.lastModifiedDate).toDate();
3028
+ const lookupSeparator = " - ";
3029
+ const displayFields = [
3030
+ "id",
3031
+ "schedulingId",
3032
+ "invoiceKey",
3033
+ "invoiceNumber",
3034
+ "invoiceSerialNumber",
3035
+ "systemIntegration",
3036
+ "logistcUnitName",
3037
+ "logistcUnitDocument",
3038
+ "ownerName",
3039
+ "ownerDocument",
3040
+ "partnerName",
3041
+ "partnerDocument",
3042
+ "notes",
3043
+ "orderReceivingCode",
3044
+ "createdBy",
3045
+ "createdDate",
3046
+ "lastModifiedBy",
3047
+ "lastModifiedDate",
3048
+ ];
3049
+ model.label = displayFields.map(field => model[field]).join(lookupSeparator);
3050
+ return model;
3051
+ }
3052
+ static toDto(document, originEntity) {
3053
+ const dto = Object.assign({}, document);
3054
+ dto.createdDate = dto.createdDate && moment$4(dto.createdDate).format();
3055
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$4(dto.lastModifiedDate).format();
3056
+ return dto;
3057
+ }
3058
+ }
3059
+
2778
3060
  class EntityService$1 {
2779
3061
  constructor(http, messageService, entityUrl, actionsUrl) {
2780
3062
  this.http = http;
@@ -2865,11 +3147,329 @@ class EntityService$1 {
2865
3147
  listCustomFilter(listParams, action) {
2866
3148
  return this.http.post(`${this.actionsUrl}/${action}`, this.getBodyParams(listParams)).pipe(this.defaultCatch());
2867
3149
  }
2868
- }
3150
+ }
3151
+
3152
+ class EntityService$2 extends EntityService$1 {
3153
+ }
3154
+
3155
+ let AgendaService = class AgendaService extends EntityService$2 {
3156
+ constructor(http, messageService) {
3157
+ super(http, messageService, 'yms/agenda/entities/agenda', '');
3158
+ this.http = http;
3159
+ this.messageService = messageService;
3160
+ }
3161
+ };
3162
+ AgendaService.ngInjectableDef = defineInjectable({ factory: function AgendaService_Factory() { return new AgendaService(inject(HttpClient), inject(MessageService$1)); }, token: AgendaService, providedIn: "root" });
3163
+ AgendaService = __decorate([
3164
+ Injectable({ providedIn: 'root' }),
3165
+ __metadata("design:paramtypes", [HttpClient, MessageService$1])
3166
+ ], AgendaService);
3167
+
3168
+ let RegisterDocumentComponent = class RegisterDocumentComponent {
3169
+ constructor(fb, messageService, translateService, agendaService) {
3170
+ this.fb = fb;
3171
+ this.messageService = messageService;
3172
+ this.translateService = translateService;
3173
+ this.agendaService = agendaService;
3174
+ this.document = new EventEmitter();
3175
+ this.visible = new EventEmitter();
3176
+ this.visibleChange = new EventEmitter();
3177
+ }
3178
+ ngOnInit() {
3179
+ this.getFormGroup();
3180
+ }
3181
+ ngOnChanges() {
3182
+ this.visibilityConfig();
3183
+ }
3184
+ visibilityConfig() {
3185
+ if (!this.edit && this.visible) {
3186
+ this.formGroup.disable();
3187
+ this.setValuesFormGroup(this.viewDocument);
3188
+ this.setValueForPartner();
3189
+ this.hideSaveButton = true;
3190
+ return this.visible;
3191
+ }
3192
+ return this.visible;
3193
+ }
3194
+ close() {
3195
+ this.visibleChange.emit(false);
3196
+ }
3197
+ setValuesFormGroup(document) {
3198
+ this.formGroup.get('invoiceKey').setValue(document.invoiceKey);
3199
+ this.formGroup.get('invoiceNumber').setValue(document.invoiceNumber);
3200
+ this.formGroup.get('invoiceSerialNumber').setValue(document.invoiceSerialNumber);
3201
+ this.formGroup.get('logistcUnitDocument').setValue(document.logistcUnitDocument);
3202
+ this.formGroup.get('logistcUnitName').setValue(document.logistcUnitName);
3203
+ this.formGroup.get('notes').setValue(document.notes);
3204
+ this.formGroup.get('orderReceivingCode').setValue(document.orderReceivingCode);
3205
+ this.formGroup.get('ownerDocument').setValue(document.ownerDocument);
3206
+ this.formGroup.get('ownerName').setValue(document.ownerName);
3207
+ }
3208
+ setValueForPartner() {
3209
+ this.agendaService.get(this.agenda.id).subscribe((agenda) => {
3210
+ this.formGroup.get('partnerName').setValue(agenda.externalTenant.descricao);
3211
+ this.formGroup.get('partnerDocument').setValue(agenda.externalTenant.cnpj);
3212
+ });
3213
+ }
3214
+ getFormGroup() {
3215
+ this.formGroup = this.fb.group({
3216
+ invoiceKey: [undefined, Validators.required],
3217
+ schedulingId: [undefined],
3218
+ invoiceNumber: [undefined],
3219
+ invoiceSerialNumber: [undefined],
3220
+ logistcUnitName: [undefined],
3221
+ logistcUnitDocument: [undefined],
3222
+ ownerName: [undefined],
3223
+ ownerDocument: [undefined],
3224
+ partnerName: [undefined],
3225
+ partnerDocument: [undefined],
3226
+ notes: [undefined],
3227
+ orderReceivingCode: [undefined],
3228
+ });
3229
+ }
3230
+ save() {
3231
+ const value = this.formGroup.getRawValue();
3232
+ if (value.id === undefined) {
3233
+ if (this.agenda.id !== undefined) {
3234
+ value.schedulingId = this.agenda.id;
3235
+ }
3236
+ this.document.emit(Document.fromDto(value));
3237
+ this.successMessage();
3238
+ this.visibleChange.emit(false);
3239
+ }
3240
+ }
3241
+ successMessage() {
3242
+ this.messageService.add({
3243
+ severity: "success",
3244
+ summary: this.translateService.instant("saved_message_title"),
3245
+ detail: this.translateService.instant("saved_message_content"),
3246
+ });
3247
+ }
3248
+ };
3249
+ __decorate([
3250
+ Input(),
3251
+ __metadata("design:type", Document)
3252
+ ], RegisterDocumentComponent.prototype, "viewDocument", void 0);
3253
+ __decorate([
3254
+ Input(),
3255
+ __metadata("design:type", Boolean)
3256
+ ], RegisterDocumentComponent.prototype, "edit", void 0);
3257
+ __decorate([
3258
+ Input(),
3259
+ __metadata("design:type", Agenda)
3260
+ ], RegisterDocumentComponent.prototype, "agenda", void 0);
3261
+ __decorate([
3262
+ Output(),
3263
+ __metadata("design:type", EventEmitter)
3264
+ ], RegisterDocumentComponent.prototype, "document", void 0);
3265
+ __decorate([
3266
+ Input(),
3267
+ __metadata("design:type", EventEmitter)
3268
+ ], RegisterDocumentComponent.prototype, "visible", void 0);
3269
+ __decorate([
3270
+ Output(),
3271
+ __metadata("design:type", Object)
3272
+ ], RegisterDocumentComponent.prototype, "visibleChange", void 0);
3273
+ RegisterDocumentComponent = __decorate([
3274
+ Component({
3275
+ selector: "register-document",
3276
+ template: "<s-sidebar\n [visible]=\"visible\"\n header=\"{{ 'yms.int.wms_register_document_add_document' | translate }}\"\n (visibleChange)=\"close()\">\n <form [formGroup]=\"formGroup\">\n <div class=\"ui-g ui-fluid\">\n <div class=\"ui-g-6 required\">\n <label for=\"invoiceKey\">{{'yms.int.wms_register_document_invoice_key' | translate}}</label>\n <input id=\"invoiceKey\" pInputText type=\"text\" formControlName=\"invoiceKey\">\n </div>\n <div class=\"ui-g-6\">\n <label for=\"invoiceNumber\">{{'yms.int.wms_register_document_invoice_number' | translate}}</label>\n <input id=\"invoiceNumber\" pInputText type=\"text\" formControlName=\"invoiceNumber\">\n </div>\n <div class=\"ui-g-6\">\n <label for=\"invoiceSerialNumber\">\n {{'yms.int.wms_register_document_invoice_serial_number' | translate}}\n </label>\n <input id=\"invoiceSerialNumber\" pInputText type=\"text\" formControlName=\"invoiceSerialNumber\">\n </div>\n <div class=\"ui-g-6\">\n <label for=\"logistcUnitName\">{{'yms.int.wms_register_document_logistc_unit_name' | translate}}</label>\n <input id=\"logistcUnitName\" pInputText type=\"text\" formControlName=\"logistcUnitName\">\n </div>\n <div class=\"ui-g-6\">\n <label for=\"logistcUnitDocument\">\n {{'yms.int.wms_register_document_logistc_unit_document' | translate}}\n </label>\n <input id=\"logistcUnitDocument\" pInputText type=\"text\" formControlName=\"logistcUnitDocument\">\n </div>\n <div class=\"ui-g-6\">\n <label for=\"documentOwnerName\">{{'yms.int.wms_register_document_owner_name' | translate}}</label>\n <input id=\"documentOwnerName\" pInputText type=\"text\" formControlName=\"ownerName\">\n </div>\n <div class=\"ui-g-6\">\n <label for=\"ownerDocument\">{{'yms.int.wms_register_document_owner_document' | translate}}</label>\n <input id=\"ownerDocument\" pInputText type=\"text\" formControlName=\"ownerDocument\">\n </div>\n <div class=\"ui-g-6\">\n <label for=\"partnerName\">{{'yms.int.wms_register_document_partner_name' | translate}}</label>\n <input id=\"partnerName\" pInputText type=\"text\" formControlName=\"partnerName\">\n </div>\n <div class=\"ui-g-6\">\n <label for=\"partnerDocument\">{{'yms.int.wms_register_document_partner_document' | translate}}</label>\n <input id=\"partnerDocument\" pInputText type=\"text\" formControlName=\"partnerDocument\">\n </div>\n <div class=\"ui-g-12\">\n <label for=\"notes\" id=\"notes\">{{'yms.int.wms_register_document_notes' | translate}}</label>\n <textarea id=\"notes\" rows=\"5\" pInputTextarea autoResize=\"autoResize\" formControlName=\"notes\"></textarea>\n </div>\n <div class=\"ui-g-6\">\n <label for=\"orderReceivingCode\">\n {{'yms.int.wms_register_document_order_receiving_code' | translate}}\n </label>\n <input id=\"orderReceivingCode\" pInputText type=\"text\" formControlName=\"orderReceivingCode\">\n </div>\n </div>\n </form>\n <div class=\"space-between\">\n <button\n pButton label=\"{{'save' | translate}}\" (click)=\"save()\" [attr.data-hidden]=\"hideSaveButton\">\n </button>\n <button\n type=\"button\" class=\"ui-button-link\" pButton label=\"{{'cancel' | translate}}\" (click)=\"close()\">\n </button>\n </div>\n</s-sidebar>"
3277
+ }),
3278
+ __metadata("design:paramtypes", [FormBuilder,
3279
+ MessageService,
3280
+ TranslateService,
3281
+ AgendaService])
3282
+ ], RegisterDocumentComponent);
3283
+
3284
+ let RegisterDocumentModule = class RegisterDocumentModule {
3285
+ };
3286
+ RegisterDocumentModule = __decorate([
3287
+ NgModule({
3288
+ imports: [
3289
+ CommonModule,
3290
+ SidebarModule,
3291
+ ButtonModule,
3292
+ PanelModule,
3293
+ ConfirmDialogModule,
3294
+ TranslateModule,
3295
+ InputTextModule$1,
3296
+ ControlErrorsModule,
3297
+ InputTextareaModule,
3298
+ ReactiveFormsModule
3299
+ ],
3300
+ exports: [RegisterDocumentComponent],
3301
+ declarations: [RegisterDocumentComponent],
3302
+ providers: [DocumentService]
3303
+ })
3304
+ ], RegisterDocumentModule);
3305
+
3306
+ let InsertKeyComponent = class InsertKeyComponent {
3307
+ constructor(formBuilder, documentService, messageService, translate) {
3308
+ this.formBuilder = formBuilder;
3309
+ this.documentService = documentService;
3310
+ this.messageService = messageService;
3311
+ this.translate = translate;
3312
+ this.document = new EventEmitter();
3313
+ this.visible = new EventEmitter();
3314
+ this.visibleChange = new EventEmitter();
3315
+ }
3316
+ ngOnInit() {
3317
+ this.formGroup = this.formBuilder.group({
3318
+ key: [undefined]
3319
+ });
3320
+ }
3321
+ add() {
3322
+ this.visibleChange.emit(false);
3323
+ if (!this.formGroup.get('key').value) {
3324
+ return;
3325
+ }
3326
+ this.searchKey();
3327
+ }
3328
+ searchKey() {
3329
+ const key = {
3330
+ documentKeys: [this.formGroup.get('key').value],
3331
+ invoices: undefined,
3332
+ logistcUnitName: undefined,
3333
+ size: 0,
3334
+ offset: 0
3335
+ };
3336
+ this.documentService.findDocuments(key).subscribe((content) => {
3337
+ if (content.totalElements < 1) {
3338
+ this.message("warn", "yms.int.wms_insert_key_warning_message_header", "yms.int.wms_insert_key_warning_message_description");
3339
+ return;
3340
+ }
3341
+ this.document.emit(content.contents[0]);
3342
+ this.message("success", "yms.int.wms_insert_key_success_message_header", "yms.int.wms_insert_key_success_message_description");
3343
+ this.formGroup.reset();
3344
+ });
3345
+ }
3346
+ message(success, header, description) {
3347
+ this.messageService.add({
3348
+ severity: success,
3349
+ summary: this.translate.instant(header),
3350
+ detail: this.translate.instant(description),
3351
+ });
3352
+ }
3353
+ cancel() {
3354
+ this.visibleChange.emit(false);
3355
+ }
3356
+ };
3357
+ __decorate([
3358
+ Output(),
3359
+ __metadata("design:type", EventEmitter)
3360
+ ], InsertKeyComponent.prototype, "document", void 0);
3361
+ __decorate([
3362
+ Input(),
3363
+ __metadata("design:type", EventEmitter)
3364
+ ], InsertKeyComponent.prototype, "visible", void 0);
3365
+ __decorate([
3366
+ Output(),
3367
+ __metadata("design:type", Object)
3368
+ ], InsertKeyComponent.prototype, "visibleChange", void 0);
3369
+ InsertKeyComponent = __decorate([
3370
+ Component({
3371
+ selector: "insert-key",
3372
+ template: "<form [formGroup]=\"formGroup\">\n <p-dialog [(visible)]=\"visible\" (visibleChange)=\"cancel()\">\n <p-header>{{'yms.insert_key_header' | translate}}</p-header>\n <div class=\"flex py-2 justify-content-center spacing-bottom\">\n <label for=\"key\">{{'yms.insert_key_label'}}</label>\n <input id=\"key\" class=\"size-input\" pInputText type=\"text\" formControlName=\"key\">\n </div>\n <div class=\"separator\"></div>\n <div class=\"spacing-top\">\n <s-button pButton label=\"{{'save' | translate}}\" (click)=\"add()\"></s-button>\n <s-button\n type=\"button\"\n class=\"ui-button-link\"\n pButton label=\"{{'cancel' | translate}}\"\n (click)=\"cancel()\">\n </s-button>\n </div>\n </p-dialog>\n</form>",
3373
+ styles: [".spacing-top{margin-top:10px}.spacing-bottom{margin-bottom:10px}.separator{width:100%;margin:5px 0;height:1px;background-color:#ccc}.size-input{width:550px}"]
3374
+ }),
3375
+ __metadata("design:paramtypes", [FormBuilder,
3376
+ DocumentService,
3377
+ MessageService,
3378
+ TranslateService])
3379
+ ], InsertKeyComponent);
3380
+
3381
+ let InsertKeyModule = class InsertKeyModule {
3382
+ };
3383
+ InsertKeyModule = __decorate([
3384
+ NgModule({
3385
+ imports: [
3386
+ CommonModule,
3387
+ ReactiveFormsModule,
3388
+ ButtonModule,
3389
+ TranslateModule,
3390
+ DialogModule,
3391
+ InputTextModule$1
3392
+ ],
3393
+ exports: [InsertKeyComponent],
3394
+ declarations: [InsertKeyComponent]
3395
+ })
3396
+ ], InsertKeyModule);
3397
+
3398
+ let DocumentGridModule = class DocumentGridModule {
3399
+ };
3400
+ DocumentGridModule = __decorate([
3401
+ NgModule({
3402
+ declarations: [DocumentGridComponent],
3403
+ entryComponents: [DocumentGridComponent],
3404
+ exports: [DocumentGridComponent],
3405
+ imports: [
3406
+ CommonModule,
3407
+ TranslateModule,
3408
+ ButtonModule,
3409
+ PanelModule,
3410
+ TableModule,
3411
+ RegisterDocumentModule,
3412
+ InsertKeyModule,
3413
+ ButtonModule$1,
3414
+ ComponentsModule,
3415
+ EmptyStateModule
3416
+ ],
3417
+ })
3418
+ ], DocumentGridModule);
3419
+
3420
+ let WmsModule = class WmsModule {
3421
+ constructor(dispatcher) {
3422
+ dispatcher.dispatch(FormWmsComponent);
3423
+ }
3424
+ };
3425
+ WmsModule = __decorate([
3426
+ NgModule({
3427
+ declarations: [FormWmsComponent],
3428
+ entryComponents: [FormWmsComponent],
3429
+ exports: [FormWmsComponent],
3430
+ imports: [
3431
+ IntegrationModule,
3432
+ DocumentGridModule,
3433
+ CommonModule,
3434
+ TranslateModule,
3435
+ FormsModule,
3436
+ ButtonModule,
3437
+ SharedModule,
3438
+ CardModule,
3439
+ ButtonModule$1,
3440
+ ReactiveFormsModule,
3441
+ SharedModule$1,
3442
+ CustomFieldsModule,
3443
+ ControlErrorsModule,
3444
+ DialogModule,
3445
+ EmptyStateModule,
3446
+ DynamicFormModule,
3447
+ TokenListModule,
3448
+ PanelModule,
3449
+ InputTextModule$1,
3450
+ DropdownModule,
3451
+ ButtonModule,
3452
+ LoadingStateModule,
3453
+ NumberInputModule,
3454
+ ConfirmDialogModule,
3455
+ LocaleModule,
3456
+ PermissionsModule,
3457
+ DynamicDialogModule,
3458
+ TableModule,
3459
+ TabViewModule,
3460
+ CalendarModule,
3461
+ ],
3462
+ providers: [
3463
+ FieldCustomizationService,
3464
+ FocusService
3465
+ ]
3466
+ }),
3467
+ __metadata("design:paramtypes", [IntegrationDispatcher])
3468
+ ], WmsModule);
2869
3469
 
2870
3470
  const ERP_ENVIRONMENT = new InjectionToken('integration_environment');
2871
3471
 
2872
- let AgendaService = class AgendaService extends EntityService$1 {
3472
+ let AgendaService$1 = class AgendaService extends EntityService$1 {
2873
3473
  constructor(http, messageService, environment) {
2874
3474
  super(http, messageService, `${environment.project.domain}/${environment.project.service}/entities/agenda`, `${environment.project.domain}/${environment.project.service}/actions`);
2875
3475
  this.http = http;
@@ -2893,12 +3493,12 @@ let AgendaService = class AgendaService extends EntityService$1 {
2893
3493
  .pipe(this.defaultCatch());
2894
3494
  }
2895
3495
  };
2896
- AgendaService = __decorate([
3496
+ AgendaService$1 = __decorate([
2897
3497
  Injectable(),
2898
3498
  __param(2, Inject(ERP_ENVIRONMENT)),
2899
3499
  __metadata("design:paramtypes", [HttpClient,
2900
3500
  MessageService$1, Object])
2901
- ], AgendaService);
3501
+ ], AgendaService$1);
2902
3502
 
2903
3503
  /*{CA:PROJECT_IMPORTS:START}*/
2904
3504
  /*{CA:PROJECT_IMPORTS:END}*/
@@ -2960,7 +3560,7 @@ let RecebimentoChegadaVeiculoOverride = class RecebimentoChegadaVeiculoOverride
2960
3560
  RecebimentoChegadaVeiculoOverride = __decorate([
2961
3561
  Injectable(),
2962
3562
  __metadata("design:paramtypes", [ChegadaVeiculoOverride,
2963
- AgendaService,
3563
+ AgendaService$1,
2964
3564
  RecebimentoContratoService])
2965
3565
  ], RecebimentoChegadaVeiculoOverride);
2966
3566
 
@@ -3015,7 +3615,7 @@ let ExpedicaoChegadaVeiculoOverride = class ExpedicaoChegadaVeiculoOverride {
3015
3615
  ExpedicaoChegadaVeiculoOverride = __decorate([
3016
3616
  Injectable(),
3017
3617
  __metadata("design:paramtypes", [ChegadaVeiculoOverride,
3018
- AgendaService,
3618
+ AgendaService$1,
3019
3619
  ExpedicaoService])
3020
3620
  ], ExpedicaoChegadaVeiculoOverride);
3021
3621
 
@@ -3238,15 +3838,15 @@ OrdemCompraService = __decorate([
3238
3838
  MessageService$1, Object])
3239
3839
  ], OrdemCompraService);
3240
3840
 
3241
- const moment$4 = _moment;
3841
+ const moment$5 = _moment;
3242
3842
  /*{CA:PROJECT_IMPORTS:END}*/
3243
3843
  class Empresa {
3244
3844
  /*{CA:CLASS_ATTRIBUTES:START}*/
3245
3845
  /*{CA:CLASS_ATTRIBUTES:END}*/
3246
3846
  static fromDto(empresaDto, originEntity) {
3247
3847
  const model = Object.assign({}, empresaDto);
3248
- model.createdDate = model.createdDate && moment$4(model.createdDate).toDate();
3249
- model.lastModifiedDate = model.lastModifiedDate && moment$4(model.lastModifiedDate).toDate();
3848
+ model.createdDate = model.createdDate && moment$5(model.createdDate).toDate();
3849
+ model.lastModifiedDate = model.lastModifiedDate && moment$5(model.lastModifiedDate).toDate();
3250
3850
  const lookupSeparator = " - ";
3251
3851
  const displayFields = [
3252
3852
  "codigo",
@@ -3258,8 +3858,8 @@ class Empresa {
3258
3858
  }
3259
3859
  static toDto(empresa, originEntity) {
3260
3860
  const dto = Object.assign({}, empresa);
3261
- dto.createdDate = dto.createdDate && moment$4(dto.createdDate).format();
3262
- dto.lastModifiedDate = dto.lastModifiedDate && moment$4(dto.lastModifiedDate).format();
3861
+ dto.createdDate = dto.createdDate && moment$5(dto.createdDate).format();
3862
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$5(dto.lastModifiedDate).format();
3263
3863
  delete dto.label;
3264
3864
  return dto;
3265
3865
  }
@@ -3267,7 +3867,7 @@ class Empresa {
3267
3867
  /*{CA:FILE_CONTENTS:START}*/
3268
3868
  /*{CA:FILE_CONTENTS:END}*/
3269
3869
 
3270
- const moment$5 = _moment;
3870
+ const moment$6 = _moment;
3271
3871
  /*{CA:PROJECT_IMPORTS:START}*/
3272
3872
  /*{CA:PROJECT_IMPORTS:END}*/
3273
3873
  class Pessoa {
@@ -3275,8 +3875,8 @@ class Pessoa {
3275
3875
  /*{CA:CLASS_ATTRIBUTES:END}*/
3276
3876
  static fromDto(pessoaDto, originEntity) {
3277
3877
  const model = Object.assign({}, pessoaDto);
3278
- model.createdDate = model.createdDate && moment$5(model.createdDate).toDate();
3279
- model.lastModifiedDate = model.lastModifiedDate && moment$5(model.lastModifiedDate).toDate();
3878
+ model.createdDate = model.createdDate && moment$6(model.createdDate).toDate();
3879
+ model.lastModifiedDate = model.lastModifiedDate && moment$6(model.lastModifiedDate).toDate();
3280
3880
  const lookupSeparator = " - ";
3281
3881
  const displayFields = [
3282
3882
  "codigo",
@@ -3288,8 +3888,8 @@ class Pessoa {
3288
3888
  }
3289
3889
  static toDto(pessoa, originEntity) {
3290
3890
  const dto = Object.assign({}, pessoa);
3291
- dto.createdDate = dto.createdDate && moment$5(dto.createdDate).format();
3292
- dto.lastModifiedDate = dto.lastModifiedDate && moment$5(dto.lastModifiedDate).format();
3891
+ dto.createdDate = dto.createdDate && moment$6(dto.createdDate).format();
3892
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$6(dto.lastModifiedDate).format();
3293
3893
  delete dto.label;
3294
3894
  return dto;
3295
3895
  }
@@ -3297,7 +3897,7 @@ class Pessoa {
3297
3897
  /*{CA:FILE_CONTENTS:START}*/
3298
3898
  /*{CA:FILE_CONTENTS:END}*/
3299
3899
 
3300
- const moment$6 = _moment;
3900
+ const moment$7 = _moment;
3301
3901
  /*{CA:PROJECT_IMPORTS:START}*/
3302
3902
  /*{CA:PROJECT_IMPORTS:END}*/
3303
3903
  class PessoaJuridica {
@@ -3305,8 +3905,8 @@ class PessoaJuridica {
3305
3905
  /*{CA:CLASS_ATTRIBUTES:END}*/
3306
3906
  static fromDto(pessoaJuridicaDto, originEntity) {
3307
3907
  const model = Object.assign({}, pessoaJuridicaDto);
3308
- model.createdDate = model.createdDate && moment$6(model.createdDate).toDate();
3309
- model.lastModifiedDate = model.lastModifiedDate && moment$6(model.lastModifiedDate).toDate();
3908
+ model.createdDate = model.createdDate && moment$7(model.createdDate).toDate();
3909
+ model.lastModifiedDate = model.lastModifiedDate && moment$7(model.lastModifiedDate).toDate();
3310
3910
  const lookupSeparator = " - ";
3311
3911
  const displayFields = [
3312
3912
  "id",
@@ -3333,8 +3933,8 @@ class PessoaJuridica {
3333
3933
  }
3334
3934
  static toDto(pessoaJuridica, originEntity) {
3335
3935
  const dto = Object.assign({}, pessoaJuridica);
3336
- dto.createdDate = dto.createdDate && moment$6(dto.createdDate).format();
3337
- dto.lastModifiedDate = dto.lastModifiedDate && moment$6(dto.lastModifiedDate).format();
3936
+ dto.createdDate = dto.createdDate && moment$7(dto.createdDate).format();
3937
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$7(dto.lastModifiedDate).format();
3338
3938
  delete dto.label;
3339
3939
  if (originEntity !== "Pessoa" && dto.pessoa)
3340
3940
  dto.pessoa = Pessoa.toDto(dto.pessoa, "PessoaJuridica");
@@ -3344,7 +3944,7 @@ class PessoaJuridica {
3344
3944
  /*{CA:FILE_CONTENTS:START}*/
3345
3945
  /*{CA:FILE_CONTENTS:END}*/
3346
3946
 
3347
- const moment$7 = _moment;
3947
+ const moment$8 = _moment;
3348
3948
  /*{CA:PROJECT_IMPORTS:START}*/
3349
3949
  /*{CA:PROJECT_IMPORTS:END}*/
3350
3950
  class Pais {
@@ -3352,8 +3952,8 @@ class Pais {
3352
3952
  /*{CA:CLASS_ATTRIBUTES:END}*/
3353
3953
  static fromDto(paisDto, originEntity) {
3354
3954
  const model = Object.assign({}, paisDto);
3355
- model.createdDate = model.createdDate && moment$7(model.createdDate).toDate();
3356
- model.lastModifiedDate = model.lastModifiedDate && moment$7(model.lastModifiedDate).toDate();
3955
+ model.createdDate = model.createdDate && moment$8(model.createdDate).toDate();
3956
+ model.lastModifiedDate = model.lastModifiedDate && moment$8(model.lastModifiedDate).toDate();
3357
3957
  const lookupSeparator = " - ";
3358
3958
  const displayFields = ["id", "codigo", "descricao", "createdBy", "createdDate", "lastModifiedBy", "lastModifiedDate"];
3359
3959
  model.label = displayFields.map(field => model[field]).join(lookupSeparator);
@@ -3361,8 +3961,8 @@ class Pais {
3361
3961
  }
3362
3962
  static toDto(pais, originEntity) {
3363
3963
  const dto = Object.assign({}, pais);
3364
- dto.createdDate = dto.createdDate && moment$7(dto.createdDate).format();
3365
- dto.lastModifiedDate = dto.lastModifiedDate && moment$7(dto.lastModifiedDate).format();
3964
+ dto.createdDate = dto.createdDate && moment$8(dto.createdDate).format();
3965
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$8(dto.lastModifiedDate).format();
3366
3966
  delete dto.label;
3367
3967
  return dto;
3368
3968
  }
@@ -3370,7 +3970,7 @@ class Pais {
3370
3970
  /*{CA:FILE_CONTENTS:START}*/
3371
3971
  /*{CA:FILE_CONTENTS:END}*/
3372
3972
 
3373
- const moment$8 = _moment;
3973
+ const moment$9 = _moment;
3374
3974
  /*{CA:PROJECT_IMPORTS:START}*/
3375
3975
  /*{CA:PROJECT_IMPORTS:END}*/
3376
3976
  class Estado {
@@ -3378,8 +3978,8 @@ class Estado {
3378
3978
  /*{CA:CLASS_ATTRIBUTES:END}*/
3379
3979
  static fromDto(estadoDto, originEntity) {
3380
3980
  const model = Object.assign({}, estadoDto);
3381
- model.createdDate = model.createdDate && moment$8(model.createdDate).toDate();
3382
- model.lastModifiedDate = model.lastModifiedDate && moment$8(model.lastModifiedDate).toDate();
3981
+ model.createdDate = model.createdDate && moment$9(model.createdDate).toDate();
3982
+ model.lastModifiedDate = model.lastModifiedDate && moment$9(model.lastModifiedDate).toDate();
3383
3983
  const lookupSeparator = " - ";
3384
3984
  const displayFields = [
3385
3985
  "id",
@@ -3401,8 +4001,8 @@ class Estado {
3401
4001
  }
3402
4002
  static toDto(estado, originEntity) {
3403
4003
  const dto = Object.assign({}, estado);
3404
- dto.createdDate = dto.createdDate && moment$8(dto.createdDate).format();
3405
- dto.lastModifiedDate = dto.lastModifiedDate && moment$8(dto.lastModifiedDate).format();
4004
+ dto.createdDate = dto.createdDate && moment$9(dto.createdDate).format();
4005
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$9(dto.lastModifiedDate).format();
3406
4006
  delete dto.label;
3407
4007
  if (originEntity !== "Pais" && dto.pais)
3408
4008
  dto.pais = Pais.toDto(dto.pais, "Estado");
@@ -3412,7 +4012,7 @@ class Estado {
3412
4012
  /*{CA:FILE_CONTENTS:START}*/
3413
4013
  /*{CA:FILE_CONTENTS:END}*/
3414
4014
 
3415
- const moment$9 = _moment;
4015
+ const moment$a = _moment;
3416
4016
  /*{CA:PROJECT_IMPORTS:START}*/
3417
4017
  /*{CA:PROJECT_IMPORTS:END}*/
3418
4018
  class Cidade {
@@ -3420,8 +4020,8 @@ class Cidade {
3420
4020
  /*{CA:CLASS_ATTRIBUTES:END}*/
3421
4021
  static fromDto(cidadeDto, originEntity) {
3422
4022
  const model = Object.assign({}, cidadeDto);
3423
- model.createdDate = model.createdDate && moment$9(model.createdDate).toDate();
3424
- model.lastModifiedDate = model.lastModifiedDate && moment$9(model.lastModifiedDate).toDate();
4023
+ model.createdDate = model.createdDate && moment$a(model.createdDate).toDate();
4024
+ model.lastModifiedDate = model.lastModifiedDate && moment$a(model.lastModifiedDate).toDate();
3425
4025
  const lookupSeparator = " - ";
3426
4026
  const displayFields = [
3427
4027
  "id",
@@ -3442,8 +4042,8 @@ class Cidade {
3442
4042
  }
3443
4043
  static toDto(cidade, originEntity) {
3444
4044
  const dto = Object.assign({}, cidade);
3445
- dto.createdDate = dto.createdDate && moment$9(dto.createdDate).format();
3446
- dto.lastModifiedDate = dto.lastModifiedDate && moment$9(dto.lastModifiedDate).format();
4045
+ dto.createdDate = dto.createdDate && moment$a(dto.createdDate).format();
4046
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$a(dto.lastModifiedDate).format();
3447
4047
  delete dto.label;
3448
4048
  if (originEntity !== "Estado" && dto.estado)
3449
4049
  dto.estado = Estado.toDto(dto.estado, "Cidade");
@@ -3453,12 +4053,12 @@ class Cidade {
3453
4053
  /*{CA:FILE_CONTENTS:START}*/
3454
4054
  /*{CA:FILE_CONTENTS:END}*/
3455
4055
 
3456
- const moment$a = _moment;
4056
+ const moment$b = _moment;
3457
4057
  class PessoaEndereco {
3458
4058
  static fromDto(pessoaEnderecoDto, originEntity) {
3459
4059
  const model = Object.assign({}, pessoaEnderecoDto);
3460
- model.createdDate = model.createdDate && moment$a(model.createdDate).toDate();
3461
- model.lastModifiedDate = model.lastModifiedDate && moment$a(model.lastModifiedDate).toDate();
4060
+ model.createdDate = model.createdDate && moment$b(model.createdDate).toDate();
4061
+ model.lastModifiedDate = model.lastModifiedDate && moment$b(model.lastModifiedDate).toDate();
3462
4062
  const lookupSeparator = " - ";
3463
4063
  const displayFields = [
3464
4064
  "codigo",
@@ -3474,8 +4074,8 @@ class PessoaEndereco {
3474
4074
  }
3475
4075
  static toDto(pessoaEndereco, originEntity) {
3476
4076
  const dto = Object.assign({}, pessoaEndereco);
3477
- dto.createdDate = dto.createdDate && moment$a(dto.createdDate).format();
3478
- dto.lastModifiedDate = dto.lastModifiedDate && moment$a(dto.lastModifiedDate).format();
4077
+ dto.createdDate = dto.createdDate && moment$b(dto.createdDate).format();
4078
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$b(dto.lastModifiedDate).format();
3479
4079
  delete dto.label;
3480
4080
  if (originEntity !== "Pessoa" && dto.pessoa)
3481
4081
  dto.pessoa = Pessoa.toDto(dto.pessoa, "PessoaEndereco");
@@ -3485,7 +4085,7 @@ class PessoaEndereco {
3485
4085
  }
3486
4086
  }
3487
4087
 
3488
- const moment$b = _moment;
4088
+ const moment$c = _moment;
3489
4089
  /*{CA:PROJECT_IMPORTS:START}*/
3490
4090
  /*{CA:PROJECT_IMPORTS:END}*/
3491
4091
  class Filial {
@@ -3493,8 +4093,8 @@ class Filial {
3493
4093
  /*{CA:CLASS_ATTRIBUTES:END}*/
3494
4094
  static fromDto(filialDto, originEntity) {
3495
4095
  const model = Object.assign({}, filialDto);
3496
- model.createdDate = model.createdDate && moment$b(model.createdDate).toDate();
3497
- model.lastModifiedDate = model.lastModifiedDate && moment$b(model.lastModifiedDate).toDate();
4096
+ model.createdDate = model.createdDate && moment$c(model.createdDate).toDate();
4097
+ model.lastModifiedDate = model.lastModifiedDate && moment$c(model.lastModifiedDate).toDate();
3498
4098
  const lookupSeparator = " - ";
3499
4099
  const displayFields = [
3500
4100
  "codigo",
@@ -3512,8 +4112,8 @@ class Filial {
3512
4112
  }
3513
4113
  static toDto(filial, originEntity) {
3514
4114
  const dto = Object.assign({}, filial);
3515
- dto.createdDate = dto.createdDate && moment$b(dto.createdDate).format();
3516
- dto.lastModifiedDate = dto.lastModifiedDate && moment$b(dto.lastModifiedDate).format();
4115
+ dto.createdDate = dto.createdDate && moment$c(dto.createdDate).format();
4116
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$c(dto.lastModifiedDate).format();
3517
4117
  delete dto.label;
3518
4118
  if (originEntity !== "Empresa" && dto.empresa)
3519
4119
  dto.empresa = Empresa.toDto(dto.empresa, "Filial");
@@ -3527,12 +4127,12 @@ class Filial {
3527
4127
  /*{CA:FILE_CONTENTS:START}*/
3528
4128
  /*{CA:FILE_CONTENTS:END}*/
3529
4129
 
3530
- const moment$c = _moment;
4130
+ const moment$d = _moment;
3531
4131
  class OrdemCompra {
3532
4132
  static fromDto(ordemCompraDto, originEntity) {
3533
4133
  const model = Object.assign({}, ordemCompraDto);
3534
- model.createdDate = model.createdDate && moment$c(model.createdDate).toDate();
3535
- model.lastModifiedDate = model.lastModifiedDate && moment$c(model.lastModifiedDate).toDate();
4134
+ model.createdDate = model.createdDate && moment$d(model.createdDate).toDate();
4135
+ model.lastModifiedDate = model.lastModifiedDate && moment$d(model.lastModifiedDate).toDate();
3536
4136
  const lookupSeparator = " - ";
3537
4137
  const displayFields = [
3538
4138
  "codigo",
@@ -3548,8 +4148,8 @@ class OrdemCompra {
3548
4148
  }
3549
4149
  static toDto(ordemCompra, originEntity) {
3550
4150
  const dto = Object.assign({}, ordemCompra);
3551
- dto.createdDate = dto.createdDate && moment$c(dto.createdDate).format();
3552
- dto.lastModifiedDate = dto.lastModifiedDate && moment$c(dto.lastModifiedDate).format();
4151
+ dto.createdDate = dto.createdDate && moment$d(dto.createdDate).format();
4152
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$d(dto.lastModifiedDate).format();
3553
4153
  delete dto.label;
3554
4154
  if (originEntity !== "Empresa" && dto.empresa)
3555
4155
  dto.empresa = Empresa.toDto(dto.empresa, "Produto");
@@ -3559,7 +4159,7 @@ class OrdemCompra {
3559
4159
  }
3560
4160
  }
3561
4161
 
3562
- const moment$d = _moment;
4162
+ const moment$e = _moment;
3563
4163
  let OrdemCompraFormComponent = class OrdemCompraFormComponent {
3564
4164
  constructor(dialogRef, dialogConfig, ordemCompraService, translate, fb, route) {
3565
4165
  this.dialogRef = dialogRef;
@@ -3628,7 +4228,7 @@ let OrdemCompraFormComponent = class OrdemCompraFormComponent {
3628
4228
  if (filial && filial.empresa && filial.empresa.id) {
3629
4229
  filter.empresaId = filial.empresa.id;
3630
4230
  }
3631
- filter.dataEmissao = filter.dataEmissao && moment$d(filter.dataEmissao).format("YYYY-MM-DD");
4231
+ filter.dataEmissao = filter.dataEmissao && moment$e(filter.dataEmissao).format("YYYY-MM-DD");
3632
4232
  const sort = (multiSortMeta || []).length ? { field: multiSortMeta[0].field, order: multiSortMeta[0].order === 1 ? 'Asc' : 'Desc' } : { field: 'numero', order: 'Asc' };
3633
4233
  this.ordemCompraService
3634
4234
  .listOrdensCompra(Object.assign({}, filter, { pessoaId: (this.fornecedor || { id: undefined }).id, filialId: (filial || { id: undefined }).id, tipoAgendamentoId: this.agenda && this.agenda.tipoAgendamento ? this.agenda.tipoAgendamento.id : null, ordensCompraSelecionados: this.ordensCompra, pagina: {
@@ -3979,7 +4579,7 @@ AgendaModule = __decorate([
3979
4579
  ]),
3980
4580
  ],
3981
4581
  providers: [
3982
- AgendaService,
4582
+ AgendaService$1,
3983
4583
  ],
3984
4584
  declarations: [
3985
4585
  /*{CA:MODULE_DECLARATIONS:START}*/
@@ -5661,11 +6261,11 @@ let DevolucaoChegadaVeiculoOverride = class DevolucaoChegadaVeiculoOverride {
5661
6261
  DevolucaoChegadaVeiculoOverride = __decorate([
5662
6262
  Injectable(),
5663
6263
  __metadata("design:paramtypes", [ChegadaVeiculoOverride,
5664
- AgendaService,
6264
+ AgendaService$1,
5665
6265
  DevolucaoService])
5666
6266
  ], DevolucaoChegadaVeiculoOverride);
5667
6267
 
5668
- const moment$e = _moment;
6268
+ const moment$f = _moment;
5669
6269
  /*{CA:PROJECT_IMPORTS:START}*/
5670
6270
  /*{CA:PROJECT_IMPORTS:END}*/
5671
6271
  class UnidadeMedida {
@@ -5673,8 +6273,8 @@ class UnidadeMedida {
5673
6273
  /*{CA:CLASS_ATTRIBUTES:END}*/
5674
6274
  static fromDto(unidadeMedidaDto, originEntity) {
5675
6275
  const model = Object.assign({}, unidadeMedidaDto);
5676
- model.createdDate = model.createdDate && moment$e(model.createdDate).toDate();
5677
- model.lastModifiedDate = model.lastModifiedDate && moment$e(model.lastModifiedDate).toDate();
6276
+ model.createdDate = model.createdDate && moment$f(model.createdDate).toDate();
6277
+ model.lastModifiedDate = model.lastModifiedDate && moment$f(model.lastModifiedDate).toDate();
5678
6278
  const lookupSeparator = " - ";
5679
6279
  const displayFields = [
5680
6280
  "id",
@@ -5691,8 +6291,8 @@ class UnidadeMedida {
5691
6291
  }
5692
6292
  static toDto(unidadeMedida, originEntity) {
5693
6293
  const dto = Object.assign({}, unidadeMedida);
5694
- dto.createdDate = dto.createdDate && moment$e(dto.createdDate).format();
5695
- dto.lastModifiedDate = dto.lastModifiedDate && moment$e(dto.lastModifiedDate).format();
6294
+ dto.createdDate = dto.createdDate && moment$f(dto.createdDate).format();
6295
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$f(dto.lastModifiedDate).format();
5696
6296
  delete dto.label;
5697
6297
  return dto;
5698
6298
  }
@@ -5700,7 +6300,7 @@ class UnidadeMedida {
5700
6300
  /*{CA:FILE_CONTENTS:START}*/
5701
6301
  /*{CA:FILE_CONTENTS:END}*/
5702
6302
 
5703
- const moment$f = _moment;
6303
+ const moment$g = _moment;
5704
6304
  /*{CA:PROJECT_IMPORTS:START}*/
5705
6305
  /*{CA:PROJECT_IMPORTS:END}*/
5706
6306
  class Royalty {
@@ -5708,8 +6308,8 @@ class Royalty {
5708
6308
  /*{CA:CLASS_ATTRIBUTES:END}*/
5709
6309
  static fromDto(royaltyDto, originEntity) {
5710
6310
  const model = Object.assign({}, royaltyDto);
5711
- model.createdDate = model.createdDate && moment$f(model.createdDate).toDate();
5712
- model.lastModifiedDate = model.lastModifiedDate && moment$f(model.lastModifiedDate).toDate();
6311
+ model.createdDate = model.createdDate && moment$g(model.createdDate).toDate();
6312
+ model.lastModifiedDate = model.lastModifiedDate && moment$g(model.lastModifiedDate).toDate();
5713
6313
  const lookupSeparator = " - ";
5714
6314
  const displayFields = ["id", "codigo", "descricao", "createdBy", "createdDate", "lastModifiedBy", "lastModifiedDate"];
5715
6315
  model.label = displayFields.map(field => model[field]).join(lookupSeparator);
@@ -5719,8 +6319,8 @@ class Royalty {
5719
6319
  }
5720
6320
  static toDto(royalty, originEntity) {
5721
6321
  const dto = Object.assign({}, royalty);
5722
- dto.createdDate = dto.createdDate && moment$f(dto.createdDate).format();
5723
- dto.lastModifiedDate = dto.lastModifiedDate && moment$f(dto.lastModifiedDate).format();
6322
+ dto.createdDate = dto.createdDate && moment$g(dto.createdDate).format();
6323
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$g(dto.lastModifiedDate).format();
5724
6324
  delete dto.label;
5725
6325
  if (originEntity !== "Empresa" && dto.empresa)
5726
6326
  dto.empresa = Empresa.toDto(dto.empresa, "Royalty");
@@ -5730,16 +6330,16 @@ class Royalty {
5730
6330
  /*{CA:FILE_CONTENTS:START}*/
5731
6331
  /*{CA:FILE_CONTENTS:END}*/
5732
6332
 
5733
- const moment$g = _moment;
6333
+ const moment$h = _moment;
5734
6334
  class FamiliaProduto {
5735
6335
  static fromDto(familiaProdutoDto, originEntity) {
5736
6336
  if (familiaProdutoDto.id === undefined) {
5737
6337
  return familiaProdutoDto;
5738
6338
  }
5739
6339
  const model = Object.assign({}, familiaProdutoDto);
5740
- model.createdDate = model.codigo && moment$g(model.createdDate).toDate();
5741
- model.createdDate = model.createdDate && moment$g(model.createdDate).toDate();
5742
- model.lastModifiedDate = model.lastModifiedDate && moment$g(model.lastModifiedDate).toDate();
6340
+ model.createdDate = model.codigo && moment$h(model.createdDate).toDate();
6341
+ model.createdDate = model.createdDate && moment$h(model.createdDate).toDate();
6342
+ model.lastModifiedDate = model.lastModifiedDate && moment$h(model.lastModifiedDate).toDate();
5743
6343
  const lookupSeparator = " - ";
5744
6344
  const displayFields = ["id", "codigo", "descricao", "situacao", "createdBy", "createdDate", "lastModifiedBy", "lastModifiedDate"];
5745
6345
  model.label = displayFields.map(field => model[field]).join(lookupSeparator);
@@ -5749,8 +6349,8 @@ class FamiliaProduto {
5749
6349
  }
5750
6350
  static toDto(familiaProduto, originEntity) {
5751
6351
  const dto = Object.assign({}, familiaProduto);
5752
- dto.createdDate = dto.createdDate && moment$g(dto.createdDate).format();
5753
- dto.lastModifiedDate = dto.lastModifiedDate && moment$g(dto.lastModifiedDate).format();
6352
+ dto.createdDate = dto.createdDate && moment$h(dto.createdDate).format();
6353
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$h(dto.lastModifiedDate).format();
5754
6354
  delete dto.label;
5755
6355
  if (originEntity !== "Empresa" && dto.empresa)
5756
6356
  dto.empresa = Empresa.toDto(dto.empresa, "FamiliaProduto");
@@ -5758,7 +6358,7 @@ class FamiliaProduto {
5758
6358
  }
5759
6359
  }
5760
6360
 
5761
- const moment$h = _moment;
6361
+ const moment$i = _moment;
5762
6362
  class Produto {
5763
6363
  constructor() {
5764
6364
  this.produtoMisto = false;
@@ -5766,8 +6366,8 @@ class Produto {
5766
6366
  }
5767
6367
  static fromDto(produtoDto, originEntity) {
5768
6368
  const model = Object.assign({}, produtoDto);
5769
- model.createdDate = model.createdDate && moment$h(model.createdDate).toDate();
5770
- model.lastModifiedDate = model.lastModifiedDate && moment$h(model.lastModifiedDate).toDate();
6369
+ model.createdDate = model.createdDate && moment$i(model.createdDate).toDate();
6370
+ model.lastModifiedDate = model.lastModifiedDate && moment$i(model.lastModifiedDate).toDate();
5771
6371
  const lookupSeparator = " - ";
5772
6372
  const displayFields = [
5773
6373
  "codigo",
@@ -5788,8 +6388,8 @@ class Produto {
5788
6388
  }
5789
6389
  static toDto(produto, originEntity) {
5790
6390
  const dto = Object.assign({}, produto);
5791
- dto.createdDate = dto.createdDate && moment$h(dto.createdDate).format();
5792
- dto.lastModifiedDate = dto.lastModifiedDate && moment$h(dto.lastModifiedDate).format();
6391
+ dto.createdDate = dto.createdDate && moment$i(dto.createdDate).format();
6392
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$i(dto.lastModifiedDate).format();
5793
6393
  delete dto.label;
5794
6394
  if (originEntity !== "Empresa" && dto.empresa)
5795
6395
  dto.empresa = Empresa.toDto(dto.empresa, "Produto");
@@ -5805,7 +6405,7 @@ class Produto {
5805
6405
  }
5806
6406
  }
5807
6407
 
5808
- const moment$i = _moment;
6408
+ const moment$j = _moment;
5809
6409
  /*{CA:PROJECT_IMPORTS:START}*/
5810
6410
  /*{CA:PROJECT_IMPORTS:END}*/
5811
6411
  class Derivacao {
@@ -5813,8 +6413,8 @@ class Derivacao {
5813
6413
  /*{CA:CLASS_ATTRIBUTES:END}*/
5814
6414
  static fromDto(derivacaoDto, originEntity) {
5815
6415
  const model = Object.assign({}, derivacaoDto);
5816
- model.createdDate = model.createdDate && moment$i(model.createdDate).toDate();
5817
- model.lastModifiedDate = model.lastModifiedDate && moment$i(model.lastModifiedDate).toDate();
6416
+ model.createdDate = model.createdDate && moment$j(model.createdDate).toDate();
6417
+ model.lastModifiedDate = model.lastModifiedDate && moment$j(model.lastModifiedDate).toDate();
5818
6418
  const lookupSeparator = " - ";
5819
6419
  const displayFields = ["codigo", "descricao"];
5820
6420
  model.label = getLookupLabel(model, displayFields, lookupSeparator);
@@ -5826,8 +6426,8 @@ class Derivacao {
5826
6426
  }
5827
6427
  static toDto(derivacao, originEntity) {
5828
6428
  const dto = Object.assign({}, derivacao);
5829
- dto.createdDate = dto.createdDate && moment$i(dto.createdDate).format();
5830
- dto.lastModifiedDate = dto.lastModifiedDate && moment$i(dto.lastModifiedDate).format();
6429
+ dto.createdDate = dto.createdDate && moment$j(dto.createdDate).format();
6430
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$j(dto.lastModifiedDate).format();
5831
6431
  delete dto.label;
5832
6432
  if (originEntity !== "Empresa" && dto.empresa)
5833
6433
  dto.empresa = Empresa.toDto(dto.empresa, "Derivacao");
@@ -5839,7 +6439,7 @@ class Derivacao {
5839
6439
  /*{CA:FILE_CONTENTS:START}*/
5840
6440
  /*{CA:FILE_CONTENTS:END}*/
5841
6441
 
5842
- const moment$j = _moment;
6442
+ const moment$k = _moment;
5843
6443
  /*{CA:PROJECT_IMPORTS:START}*/
5844
6444
  /*{CA:PROJECT_IMPORTS:END}*/
5845
6445
  class Transportadora {
@@ -5847,8 +6447,8 @@ class Transportadora {
5847
6447
  /*{CA:CLASS_ATTRIBUTES:END}*/
5848
6448
  static fromDto(transportadoraDto, originEntity) {
5849
6449
  const model = Object.assign({}, transportadoraDto);
5850
- model.createdDate = model.createdDate && moment$j(model.createdDate).toDate();
5851
- model.lastModifiedDate = model.lastModifiedDate && moment$j(model.lastModifiedDate).toDate();
6450
+ model.createdDate = model.createdDate && moment$k(model.createdDate).toDate();
6451
+ model.lastModifiedDate = model.lastModifiedDate && moment$k(model.lastModifiedDate).toDate();
5852
6452
  const lookupSeparator = " - ";
5853
6453
  const displayFields = [
5854
6454
  "codigo", "pessoa.nome", "pessoa.cpfCnpj"
@@ -5862,8 +6462,8 @@ class Transportadora {
5862
6462
  }
5863
6463
  static toDto(transportadora, originEntity) {
5864
6464
  const dto = Object.assign({}, transportadora);
5865
- dto.createdDate = dto.createdDate && moment$j(dto.createdDate).format();
5866
- dto.lastModifiedDate = dto.lastModifiedDate && moment$j(dto.lastModifiedDate).format();
6465
+ dto.createdDate = dto.createdDate && moment$k(dto.createdDate).format();
6466
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$k(dto.lastModifiedDate).format();
5867
6467
  delete dto.label;
5868
6468
  if (originEntity !== "Pessoa" && dto.pessoa)
5869
6469
  dto.pessoa = Pessoa.toDto(dto.pessoa, "Transportadora");
@@ -5875,7 +6475,7 @@ class Transportadora {
5875
6475
  /*{CA:FILE_CONTENTS:START}*/
5876
6476
  /*{CA:FILE_CONTENTS:END}*/
5877
6477
 
5878
- const moment$k = _moment;
6478
+ const moment$l = _moment;
5879
6479
  /*{CA:PROJECT_IMPORTS:START}*/
5880
6480
  /*{CA:PROJECT_IMPORTS:END}*/
5881
6481
  class Devolucao {
@@ -5883,8 +6483,8 @@ class Devolucao {
5883
6483
  /*{CA:CLASS_ATTRIBUTES:END}*/
5884
6484
  static fromDto(devolucaoDto, originEntity) {
5885
6485
  const model = Object.assign({}, devolucaoDto);
5886
- model.createdDate = model.createdDate && moment$k(model.createdDate).toDate();
5887
- model.lastModifiedDate = model.lastModifiedDate && moment$k(model.lastModifiedDate).toDate();
6486
+ model.createdDate = model.createdDate && moment$l(model.createdDate).toDate();
6487
+ model.lastModifiedDate = model.lastModifiedDate && moment$l(model.lastModifiedDate).toDate();
5888
6488
  const lookupSeparator = " - ";
5889
6489
  const displayFields = [
5890
6490
  ''
@@ -5908,8 +6508,8 @@ class Devolucao {
5908
6508
  }
5909
6509
  static toDto(devolucao, originEntity) {
5910
6510
  const dto = Object.assign({}, devolucao);
5911
- dto.createdDate = dto.createdDate && moment$k(dto.createdDate).format();
5912
- dto.lastModifiedDate = dto.lastModifiedDate && moment$k(dto.lastModifiedDate).format();
6511
+ dto.createdDate = dto.createdDate && moment$l(dto.createdDate).format();
6512
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$l(dto.lastModifiedDate).format();
5913
6513
  delete dto.label;
5914
6514
  if (originEntity !== "Pessoa" && dto.fornecedor)
5915
6515
  dto.fornecedor = Pessoa.toDto(dto.fornecedor, "Devolucao");
@@ -6560,7 +7160,7 @@ DevolucaoFormComponent = __decorate([
6560
7160
  ActivatedRoute,
6561
7161
  DevolucaoChegadaVeiculoOverride,
6562
7162
  ConfirmationService,
6563
- AgendaService,
7163
+ AgendaService$1,
6564
7164
  ErpProcessService,
6565
7165
  ErpFormConfigService,
6566
7166
  HasChangeService])
@@ -6647,7 +7247,7 @@ DevolucaoInfoComponent = __decorate([
6647
7247
 
6648
7248
  /*{CA:PACKAGE_IMPORTS:START}*/
6649
7249
  /*{CA:PACKAGE_IMPORTS:END}*/
6650
- const moment$l = _moment;
7250
+ const moment$m = _moment;
6651
7251
  /*{CA:PROJECT_IMPORTS:START}*/
6652
7252
  /*{CA:PROJECT_IMPORTS:END}*/
6653
7253
  class Expedicao {
@@ -6655,8 +7255,8 @@ class Expedicao {
6655
7255
  /*{CA:CLASS_ATTRIBUTES:END}*/
6656
7256
  static fromDto(expedicaoDto, originEntity) {
6657
7257
  const model = Object.assign({}, expedicaoDto);
6658
- model.createdDate = model.createdDate && moment$l(model.createdDate).toDate();
6659
- model.lastModifiedDate = model.lastModifiedDate && moment$l(model.lastModifiedDate).toDate();
7258
+ model.createdDate = model.createdDate && moment$m(model.createdDate).toDate();
7259
+ model.lastModifiedDate = model.lastModifiedDate && moment$m(model.lastModifiedDate).toDate();
6660
7260
  const lookupSeparator = " - ";
6661
7261
  const displayFields = [
6662
7262
  "id",
@@ -6695,8 +7295,8 @@ class Expedicao {
6695
7295
  }
6696
7296
  static toDto(expedicao, originEntity) {
6697
7297
  const dto = Object.assign({}, expedicao);
6698
- dto.createdDate = dto.createdDate && moment$l(dto.createdDate).format();
6699
- dto.lastModifiedDate = dto.lastModifiedDate && moment$l(dto.lastModifiedDate).format();
7298
+ dto.createdDate = dto.createdDate && moment$m(dto.createdDate).format();
7299
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$m(dto.lastModifiedDate).format();
6700
7300
  delete dto.label;
6701
7301
  if (originEntity !== "Pessoa" && dto.clienteFaturamento)
6702
7302
  dto.clienteFaturamento = Pessoa.toDto(dto.clienteFaturamento, "Recebimento");
@@ -6712,7 +7312,7 @@ class Expedicao {
6712
7312
  }
6713
7313
  }
6714
7314
 
6715
- const moment$m = _moment;
7315
+ const moment$n = _moment;
6716
7316
  let ExpedicaoFormComponent = class ExpedicaoFormComponent {
6717
7317
  constructor(expedicaoService, router, route, messageService, formBuilder, translate, hotkeysService, fieldCustomization, focusService, pessoaService, filialService, transportadoraService, pedidoVendaService, pedidoVendaItemService, agendaService, override, confirmationService, erpProcessService, erpFormConfigService, hasChangeService) {
6718
7318
  this.expedicaoService = expedicaoService;
@@ -7236,11 +7836,11 @@ let ExpedicaoFormComponent = class ExpedicaoFormComponent {
7236
7836
  if (typeof value == "number")
7237
7837
  return `${name} eq ${value}`;
7238
7838
  else if (type == FieldType.Date)
7239
- return `${name} eq '${moment$m(value).format("YYYY-MM-DD")}'`;
7839
+ return `${name} eq '${moment$n(value).format("YYYY-MM-DD")}'`;
7240
7840
  else if (type == FieldType.Time)
7241
- return `${name} eq '${moment$m(value).format("HH:mm:ss")}'`;
7841
+ return `${name} eq '${moment$n(value).format("HH:mm:ss")}'`;
7242
7842
  else if (type == FieldType.DateTime)
7243
- return `${name} eq '${moment$m(value).format()}'`;
7843
+ return `${name} eq '${moment$n(value).format()}'`;
7244
7844
  else if (type == FieldType.Enum)
7245
7845
  return `${name} eq '${value}'`;
7246
7846
  else if (type == FieldType.String)
@@ -7286,11 +7886,11 @@ let ExpedicaoFormComponent = class ExpedicaoFormComponent {
7286
7886
  if (typeof value == "number")
7287
7887
  return `${name} eq ${value}`;
7288
7888
  else if (type == FieldType.Date)
7289
- return `${name} eq '${moment$m(value).format("YYYY-MM-DD")}'`;
7889
+ return `${name} eq '${moment$n(value).format("YYYY-MM-DD")}'`;
7290
7890
  else if (type == FieldType.Time)
7291
- return `${name} eq '${moment$m(value).format("HH:mm:ss")}'`;
7891
+ return `${name} eq '${moment$n(value).format("HH:mm:ss")}'`;
7292
7892
  else if (type == FieldType.DateTime)
7293
- return `${name} eq '${moment$m(value).format()}'`;
7893
+ return `${name} eq '${moment$n(value).format()}'`;
7294
7894
  else if (type == FieldType.Enum)
7295
7895
  return `${name} eq '${value}'`;
7296
7896
  else if (type == FieldType.String)
@@ -7394,11 +7994,11 @@ let ExpedicaoFormComponent = class ExpedicaoFormComponent {
7394
7994
  if (typeof value == "number")
7395
7995
  return `${name} eq ${value}`;
7396
7996
  else if (type == FieldType.Date)
7397
- return `${name} eq '${moment$m(value).format("YYYY-MM-DD")}'`;
7997
+ return `${name} eq '${moment$n(value).format("YYYY-MM-DD")}'`;
7398
7998
  else if (type == FieldType.Time)
7399
- return `${name} eq '${moment$m(value).format("HH:mm:ss")}'`;
7999
+ return `${name} eq '${moment$n(value).format("HH:mm:ss")}'`;
7400
8000
  else if (type == FieldType.DateTime)
7401
- return `${name} eq '${moment$m(value).format()}'`;
8001
+ return `${name} eq '${moment$n(value).format()}'`;
7402
8002
  else if (type == FieldType.String)
7403
8003
  return `containing(lower(${name}), lower('${value.replace(/'/g, "\\'")}'))`;
7404
8004
  else
@@ -7574,11 +8174,11 @@ let ExpedicaoFormComponent = class ExpedicaoFormComponent {
7574
8174
  if (typeof value == "number")
7575
8175
  return `${name} eq ${value}`;
7576
8176
  else if (type == FieldType.Date)
7577
- return `${name} eq '${moment$m(value).format("YYYY-MM-DD")}'`;
8177
+ return `${name} eq '${moment$n(value).format("YYYY-MM-DD")}'`;
7578
8178
  else if (type == FieldType.Time)
7579
- return `${name} eq '${moment$m(value).format("HH:mm:ss")}'`;
8179
+ return `${name} eq '${moment$n(value).format("HH:mm:ss")}'`;
7580
8180
  else if (type == FieldType.DateTime)
7581
- return `${name} eq '${moment$m(value).format()}'`;
8181
+ return `${name} eq '${moment$n(value).format()}'`;
7582
8182
  else if (type == FieldType.String)
7583
8183
  return `containing(lower(${name}), lower('${value.replace(/'/g, "\\'")}'))`;
7584
8184
  else
@@ -7615,11 +8215,11 @@ let ExpedicaoFormComponent = class ExpedicaoFormComponent {
7615
8215
  if (typeof value == "number")
7616
8216
  return `${name} eq ${value}`;
7617
8217
  else if (type == FieldType.Date)
7618
- return `${name} eq '${moment$m(value).format("YYYY-MM-DD")}'`;
8218
+ return `${name} eq '${moment$n(value).format("YYYY-MM-DD")}'`;
7619
8219
  else if (type == FieldType.Time)
7620
- return `${name} eq '${moment$m(value).format("HH:mm:ss")}'`;
8220
+ return `${name} eq '${moment$n(value).format("HH:mm:ss")}'`;
7621
8221
  else if (type == FieldType.DateTime)
7622
- return `${name} eq '${moment$m(value).format()}'`;
8222
+ return `${name} eq '${moment$n(value).format()}'`;
7623
8223
  else if (type == FieldType.Enum)
7624
8224
  return `${name} eq '${value}'`;
7625
8225
  else if (type == FieldType.String)
@@ -8102,7 +8702,7 @@ ExpedicaoFormComponent = __decorate([
8102
8702
  TransportadoraService,
8103
8703
  PedidoVendaService,
8104
8704
  PedidoVendaItemService,
8105
- AgendaService,
8705
+ AgendaService$1,
8106
8706
  ExpedicaoChegadaVeiculoOverride,
8107
8707
  ConfirmationService,
8108
8708
  ErpProcessService,
@@ -8382,7 +8982,7 @@ let ProcessoAvulsoChegadaVeiculoOverride = class ProcessoAvulsoChegadaVeiculoOve
8382
8982
  ProcessoAvulsoChegadaVeiculoOverride = __decorate([
8383
8983
  Injectable(),
8384
8984
  __metadata("design:paramtypes", [ChegadaVeiculoOverride,
8385
- AgendaService,
8985
+ AgendaService$1,
8386
8986
  ProcessoAvulsoService])
8387
8987
  ], ProcessoAvulsoChegadaVeiculoOverride);
8388
8988
 
@@ -8662,7 +9262,7 @@ ProcessoAvulsoFormComponent = __decorate([
8662
9262
  ProcessoAvulsoChegadaVeiculoOverride,
8663
9263
  TranslateService,
8664
9264
  ConfirmationService,
8665
- AgendaService,
9265
+ AgendaService$1,
8666
9266
  ErpProcessService,
8667
9267
  ErpFormConfigService,
8668
9268
  HasChangeService])
@@ -8709,7 +9309,7 @@ ProcessoAvulsoInfoComponent = __decorate([
8709
9309
  __metadata("design:paramtypes", [ProcessoAvulsoService])
8710
9310
  ], ProcessoAvulsoInfoComponent);
8711
9311
 
8712
- const moment$n = _moment;
9312
+ const moment$o = _moment;
8713
9313
  /*{CA:PROJECT_IMPORTS:START}*/
8714
9314
  /*{CA:PROJECT_IMPORTS:END}*/
8715
9315
  class Safra {
@@ -8717,10 +9317,10 @@ class Safra {
8717
9317
  /*{CA:CLASS_ATTRIBUTES:END}*/
8718
9318
  static fromDto(safraDto, originEntity) {
8719
9319
  const model = Object.assign({}, safraDto);
8720
- model.competenciaInicial = model.competenciaInicial && moment$n(model.competenciaInicial).toDate();
8721
- model.competenciaFinal = model.competenciaFinal && moment$n(model.competenciaFinal).toDate();
8722
- model.createdDate = model.createdDate && moment$n(model.createdDate).toDate();
8723
- model.lastModifiedDate = model.lastModifiedDate && moment$n(model.lastModifiedDate).toDate();
9320
+ model.competenciaInicial = model.competenciaInicial && moment$o(model.competenciaInicial).toDate();
9321
+ model.competenciaFinal = model.competenciaFinal && moment$o(model.competenciaFinal).toDate();
9322
+ model.createdDate = model.createdDate && moment$o(model.createdDate).toDate();
9323
+ model.lastModifiedDate = model.lastModifiedDate && moment$o(model.lastModifiedDate).toDate();
8724
9324
  const lookupSeparator = " - ";
8725
9325
  const displayFields = [
8726
9326
  "codigo",
@@ -8733,10 +9333,10 @@ class Safra {
8733
9333
  }
8734
9334
  static toDto(safra, originEntity) {
8735
9335
  const dto = Object.assign({}, safra);
8736
- dto.competenciaInicial = dto.competenciaInicial && moment$n(dto.competenciaInicial).format("YYYY-MM-DD");
8737
- dto.competenciaFinal = dto.competenciaFinal && moment$n(dto.competenciaFinal).format("YYYY-MM-DD");
8738
- dto.createdDate = dto.createdDate && moment$n(dto.createdDate).format();
8739
- dto.lastModifiedDate = dto.lastModifiedDate && moment$n(dto.lastModifiedDate).format();
9336
+ dto.competenciaInicial = dto.competenciaInicial && moment$o(dto.competenciaInicial).format("YYYY-MM-DD");
9337
+ dto.competenciaFinal = dto.competenciaFinal && moment$o(dto.competenciaFinal).format("YYYY-MM-DD");
9338
+ dto.createdDate = dto.createdDate && moment$o(dto.createdDate).format();
9339
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$o(dto.lastModifiedDate).format();
8740
9340
  delete dto.label;
8741
9341
  if (originEntity !== "Empresa" && dto.empresa)
8742
9342
  dto.empresa = Empresa.toDto(dto.empresa, "Safra");
@@ -8748,7 +9348,7 @@ class Safra {
8748
9348
 
8749
9349
  /*{CA:PACKAGE_IMPORTS:START}*/
8750
9350
  /*{CA:PACKAGE_IMPORTS:END}*/
8751
- const moment$o = _moment;
9351
+ const moment$p = _moment;
8752
9352
  /*{CA:PROJECT_IMPORTS:START}*/
8753
9353
  /*{CA:PROJECT_IMPORTS:END}*/
8754
9354
  class RecebimentoOrdemCompra {
@@ -8756,8 +9356,8 @@ class RecebimentoOrdemCompra {
8756
9356
  /*{CA:CLASS_ATTRIBUTES:END}*/
8757
9357
  static fromDto(recebimentoOrdemCompraDto, originEntity) {
8758
9358
  const model = Object.assign({}, recebimentoOrdemCompraDto);
8759
- model.createdDate = model.createdDate && moment$o(model.createdDate).toDate();
8760
- model.lastModifiedDate = model.lastModifiedDate && moment$o(model.lastModifiedDate).toDate();
9359
+ model.createdDate = model.createdDate && moment$p(model.createdDate).toDate();
9360
+ model.lastModifiedDate = model.lastModifiedDate && moment$p(model.lastModifiedDate).toDate();
8761
9361
  const lookupSeparator = " - ";
8762
9362
  const displayFields = [
8763
9363
  ''
@@ -8786,8 +9386,8 @@ class RecebimentoOrdemCompra {
8786
9386
  }
8787
9387
  static toDto(recebimentoOrdemCompra, originEntity) {
8788
9388
  const dto = Object.assign({}, recebimentoOrdemCompra);
8789
- dto.createdDate = dto.createdDate && moment$o(dto.createdDate).format();
8790
- dto.lastModifiedDate = dto.lastModifiedDate && moment$o(dto.lastModifiedDate).format();
9389
+ dto.createdDate = dto.createdDate && moment$p(dto.createdDate).format();
9390
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$p(dto.lastModifiedDate).format();
8791
9391
  delete dto.label;
8792
9392
  if (originEntity !== "Agenda" && dto.agenda)
8793
9393
  dto.agenda = Agenda.toDto(dto.agenda, "RecebimentoOrdemCompra");
@@ -8845,7 +9445,7 @@ let RecebimentoOrdemCompraChegadaVeiculoOverride = class RecebimentoOrdemCompraC
8845
9445
  RecebimentoOrdemCompraChegadaVeiculoOverride = __decorate([
8846
9446
  Injectable(),
8847
9447
  __metadata("design:paramtypes", [ChegadaVeiculoOverride,
8848
- AgendaService,
9448
+ AgendaService$1,
8849
9449
  RecebimentoOrdemCompraService])
8850
9450
  ], RecebimentoOrdemCompraChegadaVeiculoOverride);
8851
9451
 
@@ -9944,7 +10544,7 @@ RecebimentoOrdemCompraFormComponent = __decorate([
9944
10544
  NotaValidatorService,
9945
10545
  ConfirmationService,
9946
10546
  DialogService,
9947
- AgendaService,
10547
+ AgendaService$1,
9948
10548
  ErpProcessService,
9949
10549
  ErpFormConfigService,
9950
10550
  VerificaNotafiscal,
@@ -10059,7 +10659,7 @@ RecebimentoOrdemCompraInfoComponent = __decorate([
10059
10659
  __metadata("design:paramtypes", [RecebimentoOrdemCompraService])
10060
10660
  ], RecebimentoOrdemCompraInfoComponent);
10061
10661
 
10062
- const moment$p = _moment;
10662
+ const moment$q = _moment;
10063
10663
  /*{CA:PROJECT_IMPORTS:START}*/
10064
10664
  /*{CA:PROJECT_IMPORTS:END}*/
10065
10665
  class ContratoCompra {
@@ -10067,11 +10667,11 @@ class ContratoCompra {
10067
10667
  /*{CA:CLASS_ATTRIBUTES:END}*/
10068
10668
  static fromDto(contratoCompraDto, originEntity) {
10069
10669
  const model = Object.assign({}, contratoCompraDto);
10070
- model.dataEmissao = model.dataEmissao && moment$p(model.dataEmissao).toDate();
10071
- model.dataInicioVigencia = model.dataInicioVigencia && moment$p(model.dataInicioVigencia).toDate();
10072
- model.dataFimVigencia = model.dataFimVigencia && moment$p(model.dataFimVigencia).toDate();
10073
- model.createdDate = model.createdDate && moment$p(model.createdDate).toDate();
10074
- model.lastModifiedDate = model.lastModifiedDate && moment$p(model.lastModifiedDate).toDate();
10670
+ model.dataEmissao = model.dataEmissao && moment$q(model.dataEmissao).toDate();
10671
+ model.dataInicioVigencia = model.dataInicioVigencia && moment$q(model.dataInicioVigencia).toDate();
10672
+ model.dataFimVigencia = model.dataFimVigencia && moment$q(model.dataFimVigencia).toDate();
10673
+ model.createdDate = model.createdDate && moment$q(model.createdDate).toDate();
10674
+ model.lastModifiedDate = model.lastModifiedDate && moment$q(model.lastModifiedDate).toDate();
10075
10675
  model.label = `Número: ${model.numero}, Filial: ${model.filial.codigo}`;
10076
10676
  if (originEntity !== "Empresa" && model.empresa)
10077
10677
  model.empresa = Empresa.fromDto(model.empresa, "ContratoCompra");
@@ -10087,11 +10687,11 @@ class ContratoCompra {
10087
10687
  }
10088
10688
  static toDto(contratoCompra, originEntity) {
10089
10689
  const dto = Object.assign({}, contratoCompra);
10090
- dto.dataEmissao = dto.dataEmissao && moment$p(dto.dataEmissao).format("YYYY-MM-DD");
10091
- dto.dataInicioVigencia = dto.dataInicioVigencia && moment$p(dto.dataInicioVigencia).format("YYYY-MM-DD");
10092
- dto.dataFimVigencia = dto.dataFimVigencia && moment$p(dto.dataFimVigencia).format("YYYY-MM-DD");
10093
- dto.createdDate = dto.createdDate && moment$p(dto.createdDate).format();
10094
- dto.lastModifiedDate = dto.lastModifiedDate && moment$p(dto.lastModifiedDate).format();
10690
+ dto.dataEmissao = dto.dataEmissao && moment$q(dto.dataEmissao).format("YYYY-MM-DD");
10691
+ dto.dataInicioVigencia = dto.dataInicioVigencia && moment$q(dto.dataInicioVigencia).format("YYYY-MM-DD");
10692
+ dto.dataFimVigencia = dto.dataFimVigencia && moment$q(dto.dataFimVigencia).format("YYYY-MM-DD");
10693
+ dto.createdDate = dto.createdDate && moment$q(dto.createdDate).format();
10694
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$q(dto.lastModifiedDate).format();
10095
10695
  delete dto.label;
10096
10696
  if (originEntity !== "Empresa" && dto.empresa)
10097
10697
  dto.empresa = Empresa.toDto(dto.empresa, "ContratoCompra");
@@ -10111,7 +10711,7 @@ class ContratoCompra {
10111
10711
  /*{CA:FILE_CONTENTS:START}*/
10112
10712
  /*{CA:FILE_CONTENTS:END}*/
10113
10713
 
10114
- const moment$q = _moment;
10714
+ const moment$r = _moment;
10115
10715
  /*{CA:PROJECT_IMPORTS:START}*/
10116
10716
  /*{CA:PROJECT_IMPORTS:END}*/
10117
10717
  class ContratoCompraItem {
@@ -10120,9 +10720,9 @@ class ContratoCompraItem {
10120
10720
  static fromDto(contratoCompraItemDto, originEntity) {
10121
10721
  const model = Object.assign({}, contratoCompraItemDto);
10122
10722
  model.sku = model.sku || {};
10123
- model.dataCompetencia = model.dataCompetencia && moment$q(model.dataCompetencia).toDate();
10124
- model.createdDate = model.createdDate && moment$q(model.createdDate).toDate();
10125
- model.lastModifiedDate = model.lastModifiedDate && moment$q(model.lastModifiedDate).toDate();
10723
+ model.dataCompetencia = model.dataCompetencia && moment$r(model.dataCompetencia).toDate();
10724
+ model.createdDate = model.createdDate && moment$r(model.createdDate).toDate();
10725
+ model.lastModifiedDate = model.lastModifiedDate && moment$r(model.lastModifiedDate).toDate();
10126
10726
  model.label = `${model.sequencia} - ${model.sku.descricao} - ${model.sku.codigo}`;
10127
10727
  if (originEntity !== "ContratoCompra" && model.contrato)
10128
10728
  model.contrato = ContratoCompra.fromDto(model.contrato, "ContratoCompraItem");
@@ -10132,9 +10732,9 @@ class ContratoCompraItem {
10132
10732
  }
10133
10733
  static toDto(contratoCompraItem, originEntity) {
10134
10734
  const dto = Object.assign({}, contratoCompraItem);
10135
- dto.dataCompetencia = dto.dataCompetencia && moment$q(dto.dataCompetencia).format("YYYY-MM-DD");
10136
- dto.createdDate = dto.createdDate && moment$q(dto.createdDate).format();
10137
- dto.lastModifiedDate = dto.lastModifiedDate && moment$q(dto.lastModifiedDate).format();
10735
+ dto.dataCompetencia = dto.dataCompetencia && moment$r(dto.dataCompetencia).format("YYYY-MM-DD");
10736
+ dto.createdDate = dto.createdDate && moment$r(dto.createdDate).format();
10737
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$r(dto.lastModifiedDate).format();
10138
10738
  delete dto.label;
10139
10739
  if (originEntity !== "ContratoCompra" && dto.contrato)
10140
10740
  dto.contrato = ContratoCompra.toDto(dto.contrato, "ContratoCompraItem");
@@ -10146,7 +10746,7 @@ class ContratoCompraItem {
10146
10746
  /*{CA:FILE_CONTENTS:START}*/
10147
10747
  /*{CA:FILE_CONTENTS:END}*/
10148
10748
 
10149
- const moment$r = _moment;
10749
+ const moment$s = _moment;
10150
10750
  let ContratoFormComponent = class ContratoFormComponent {
10151
10751
  constructor(dialogRef, dialogConfig, contratoCompraService, contratoCompraItemService, translate, fb, route) {
10152
10752
  this.dialogRef = dialogRef;
@@ -10230,7 +10830,7 @@ let ContratoFormComponent = class ContratoFormComponent {
10230
10830
  if (filial && filial.empresa && filial.empresa.id) {
10231
10831
  filter.empresaId = filial.empresa.id;
10232
10832
  }
10233
- filter.dataEmissao = filter.dataEmissao && moment$r(filter.dataEmissao).format("YYYY-MM-DD");
10833
+ filter.dataEmissao = filter.dataEmissao && moment$s(filter.dataEmissao).format("YYYY-MM-DD");
10234
10834
  const sort = (multiSortMeta || []).length ? { field: multiSortMeta[0].field, order: multiSortMeta[0].order === 1 ? 'Asc' : 'Desc' } : { field: 'numero', order: 'Asc' };
10235
10835
  this.contratoCompraService
10236
10836
  .listContratosCompra(Object.assign({}, filter, { pessoaId: (this.fornecedor || { id: undefined }).id, produtoId: (this.produto || { id: undefined }).id, filialId: (filial || { id: undefined }).id, tipoAgendamentoId: this.agenda && this.agenda.tipoAgendamento ? this.agenda.tipoAgendamento.id : null, contratosSelecionados: this.contratos, pagina: {
@@ -10452,12 +11052,12 @@ class Transgenia {
10452
11052
  }
10453
11053
  }
10454
11054
 
10455
- const moment$s = _moment;
11055
+ const moment$t = _moment;
10456
11056
  class RecebimentoContrato {
10457
11057
  static fromDto(recebimentoDto, originEntity) {
10458
11058
  const model = Object.assign({}, recebimentoDto);
10459
- model.createdDate = model.createdDate && moment$s(model.createdDate).toDate();
10460
- model.lastModifiedDate = model.lastModifiedDate && moment$s(model.lastModifiedDate).toDate();
11059
+ model.createdDate = model.createdDate && moment$t(model.createdDate).toDate();
11060
+ model.lastModifiedDate = model.lastModifiedDate && moment$t(model.lastModifiedDate).toDate();
10461
11061
  const lookupSeparator = " - ";
10462
11062
  const displayFields = [
10463
11063
  "id",
@@ -10506,8 +11106,8 @@ class RecebimentoContrato {
10506
11106
  }
10507
11107
  static toDto(recebimento, originEntity) {
10508
11108
  const dto = Object.assign({}, recebimento);
10509
- dto.createdDate = dto.createdDate && moment$s(dto.createdDate).format();
10510
- dto.lastModifiedDate = dto.lastModifiedDate && moment$s(dto.lastModifiedDate).format();
11109
+ dto.createdDate = dto.createdDate && moment$t(dto.createdDate).format();
11110
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$t(dto.lastModifiedDate).format();
10511
11111
  delete dto.label;
10512
11112
  if (originEntity !== "Pessoa" && dto.fornecedor)
10513
11113
  dto.fornecedor = Pessoa.toDto(dto.fornecedor, "Recebimento");
@@ -10540,7 +11140,7 @@ var Situacao;
10540
11140
  Situacao["ATIVO"] = "ATIVO";
10541
11141
  })(Situacao || (Situacao = {}));
10542
11142
 
10543
- const moment$t = _moment;
11143
+ const moment$u = _moment;
10544
11144
  let RecebimentoFormComponent = class RecebimentoFormComponent {
10545
11145
  constructor(recebimentoService, router, route, messageService, confirmationService, formBuilder, translate, hotkeysService, fieldCustomization, focusService, filialService, transportadoraService, pessoaEnderecoService, contratoCompraService, pessoaService, produtoService, derivacaoService, recebimentoChegadaOverride, notaValidatorService, transgeniaService, dialogService, agendaService, erpProcessService, erpFormConfigService, verificaNotaFiscal, hasChangeService, buildFormField) {
10546
11146
  this.recebimentoService = recebimentoService;
@@ -11183,11 +11783,11 @@ let RecebimentoFormComponent = class RecebimentoFormComponent {
11183
11783
  if (typeof value == "number")
11184
11784
  return `${name} eq ${value}`;
11185
11785
  else if (type == FieldType.Date)
11186
- return `${name} eq '${moment$t(value).format("YYYY-MM-DD")}'`;
11786
+ return `${name} eq '${moment$u(value).format("YYYY-MM-DD")}'`;
11187
11787
  else if (type == FieldType.Time)
11188
- return `${name} eq '${moment$t(value).format("HH:mm:ss")}'`;
11788
+ return `${name} eq '${moment$u(value).format("HH:mm:ss")}'`;
11189
11789
  else if (type == FieldType.DateTime)
11190
- return `${name} eq '${moment$t(value).format()}'`;
11790
+ return `${name} eq '${moment$u(value).format()}'`;
11191
11791
  else if (type == FieldType.String)
11192
11792
  return `containing(lower(${name}), lower('${value.replace(/'/g, "\\'")}'))`;
11193
11793
  else
@@ -11221,11 +11821,11 @@ let RecebimentoFormComponent = class RecebimentoFormComponent {
11221
11821
  if (typeof value == "number")
11222
11822
  return `${name} eq ${value}`;
11223
11823
  else if (type == FieldType.Date)
11224
- return `${name} eq '${moment$t(value).format("YYYY-MM-DD")}'`;
11824
+ return `${name} eq '${moment$u(value).format("YYYY-MM-DD")}'`;
11225
11825
  else if (type == FieldType.Time)
11226
- return `${name} eq '${moment$t(value).format("HH:mm:ss")}'`;
11826
+ return `${name} eq '${moment$u(value).format("HH:mm:ss")}'`;
11227
11827
  else if (type == FieldType.DateTime)
11228
- return `${name} eq '${moment$t(value).format()}'`;
11828
+ return `${name} eq '${moment$u(value).format()}'`;
11229
11829
  else if (type == FieldType.Enum)
11230
11830
  return `${name} eq '${value}'`;
11231
11831
  else if (type == FieldType.String)
@@ -11262,11 +11862,11 @@ let RecebimentoFormComponent = class RecebimentoFormComponent {
11262
11862
  if (typeof value == "number")
11263
11863
  return `${name} eq ${value}`;
11264
11864
  else if (type == FieldType.Date)
11265
- return `${name} eq '${moment$t(value).format("YYYY-MM-DD")}'`;
11865
+ return `${name} eq '${moment$u(value).format("YYYY-MM-DD")}'`;
11266
11866
  else if (type == FieldType.Time)
11267
- return `${name} eq '${moment$t(value).format("HH:mm:ss")}'`;
11867
+ return `${name} eq '${moment$u(value).format("HH:mm:ss")}'`;
11268
11868
  else if (type == FieldType.DateTime)
11269
- return `${name} eq '${moment$t(value).format()}'`;
11869
+ return `${name} eq '${moment$u(value).format()}'`;
11270
11870
  else if (type == FieldType.String)
11271
11871
  return `containing(lower(${name}), lower('${value.replace(/'/g, "\\'")}'))`;
11272
11872
  else
@@ -11301,11 +11901,11 @@ let RecebimentoFormComponent = class RecebimentoFormComponent {
11301
11901
  if (typeof value == "number")
11302
11902
  return `${name} eq ${value}`;
11303
11903
  else if (type == FieldType.Date)
11304
- return `${name} eq '${moment$t(value).format("YYYY-MM-DD")}'`;
11904
+ return `${name} eq '${moment$u(value).format("YYYY-MM-DD")}'`;
11305
11905
  else if (type == FieldType.Time)
11306
- return `${name} eq '${moment$t(value).format("HH:mm:ss")}'`;
11906
+ return `${name} eq '${moment$u(value).format("HH:mm:ss")}'`;
11307
11907
  else if (type == FieldType.DateTime)
11308
- return `${name} eq '${moment$t(value).format()}'`;
11908
+ return `${name} eq '${moment$u(value).format()}'`;
11309
11909
  else if (type == FieldType.Enum)
11310
11910
  return `${name} eq '${value}'`;
11311
11911
  else if (type == FieldType.String)
@@ -11390,11 +11990,11 @@ let RecebimentoFormComponent = class RecebimentoFormComponent {
11390
11990
  if (typeof value == "number")
11391
11991
  return `${name} eq ${value}`;
11392
11992
  else if (type == FieldType.Date)
11393
- return `${name} eq '${moment$t(value).format("YYYY-MM-DD")}'`;
11993
+ return `${name} eq '${moment$u(value).format("YYYY-MM-DD")}'`;
11394
11994
  else if (type == FieldType.Time)
11395
- return `${name} eq '${moment$t(value).format("HH:mm:ss")}'`;
11995
+ return `${name} eq '${moment$u(value).format("HH:mm:ss")}'`;
11396
11996
  else if (type == FieldType.DateTime)
11397
- return `${name} eq '${moment$t(value).format()}'`;
11997
+ return `${name} eq '${moment$u(value).format()}'`;
11398
11998
  else if (type == FieldType.String)
11399
11999
  return `containing(lower(${name}), lower('${value.replace(/'/g, "\\'")}'))`;
11400
12000
  else
@@ -11427,11 +12027,11 @@ let RecebimentoFormComponent = class RecebimentoFormComponent {
11427
12027
  if (typeof value == "number")
11428
12028
  return `${name} eq ${value}`;
11429
12029
  else if (type == FieldType.Date)
11430
- return `${name} eq '${moment$t(value).format("YYYY-MM-DD")}'`;
12030
+ return `${name} eq '${moment$u(value).format("YYYY-MM-DD")}'`;
11431
12031
  else if (type == FieldType.Time)
11432
- return `${name} eq '${moment$t(value).format("HH:mm:ss")}'`;
12032
+ return `${name} eq '${moment$u(value).format("HH:mm:ss")}'`;
11433
12033
  else if (type == FieldType.DateTime)
11434
- return `${name} eq '${moment$t(value).format()}'`;
12034
+ return `${name} eq '${moment$u(value).format()}'`;
11435
12035
  else if (type == FieldType.Enum)
11436
12036
  return `${name} eq '${value}'`;
11437
12037
  else if (type == FieldType.String)
@@ -11474,11 +12074,11 @@ let RecebimentoFormComponent = class RecebimentoFormComponent {
11474
12074
  if (typeof value == "number")
11475
12075
  return `${name} eq ${value}`;
11476
12076
  else if (type == FieldType.Date)
11477
- return `${name} eq '${moment$t(value).format("YYYY-MM-DD")}'`;
12077
+ return `${name} eq '${moment$u(value).format("YYYY-MM-DD")}'`;
11478
12078
  else if (type == FieldType.Time)
11479
- return `${name} eq '${moment$t(value).format("HH:mm:ss")}'`;
12079
+ return `${name} eq '${moment$u(value).format("HH:mm:ss")}'`;
11480
12080
  else if (type == FieldType.DateTime)
11481
- return `${name} eq '${moment$t(value).format()}'`;
12081
+ return `${name} eq '${moment$u(value).format()}'`;
11482
12082
  else if (type == FieldType.Enum)
11483
12083
  return `${name} eq '${value}'`;
11484
12084
  else if (type == FieldType.String)
@@ -12213,7 +12813,7 @@ RecebimentoFormComponent = __decorate([
12213
12813
  NotaValidatorService,
12214
12814
  TransgeniaService,
12215
12815
  DialogService,
12216
- AgendaService,
12816
+ AgendaService$1,
12217
12817
  ErpProcessService,
12218
12818
  ErpFormConfigService,
12219
12819
  VerificaNotafiscal,
@@ -12444,5 +13044,5 @@ DockModule = __decorate([
12444
13044
  })
12445
13045
  ], DockModule);
12446
13046
 
12447
- export { AgendaModule, AgendaService, BalancaModule, BalancasService, CamerasModule, CamerasService, CancelasModule, CidadeModule, CidadeService, ContratoCompraItemModule, ContratoCompraItemService, ContratoCompraModule, ContratoCompraService, ControladorCancelaComponent, ControladorCancelaDescritor, ControladorCancelasService, CoreModule, DockModule, DockService, ERP_ENVIRONMENT, ERP_SENIOR_HEADER, EmpresaModule, EmpresaService, ErpFormConfigService, ErpProcessData, ErpProcessService, ErpSeniorModule, EstadoModule, EstadoService, ExpedicaoChegadaVeiculoOverride, ExpedicaoModule, ExpedicaoService, FamiliaProdutoModule, FamiliaProdutoService, FieldCustomizationService, FilialModule, FilialService, FormComponent, FormDescritor, FormSamComponent, FormSamDescritor, HasChangeService, InfoComponent, InfoDescritor, IntegrationWebSocket, LogsModule, LogsService, LprModule, LprService, PaisModule, PaisService, PedidoVendaItemModule, PedidoVendaItemService, PedidoVendaModule, PedidoVendaService, PessoaEnderecoModule, PessoaEnderecoService, PessoaFisicaModule, PessoaFisicaService, PessoaJuridicaModule, PessoaJuridicaService, PessoaModule, PessoaService, PortariasComponent, PortariasDescritor, PortariasModule, ProdutoModule, ProdutoService, RecebimentoChegadaVeiculoOverride, RecebimentoContratoModule, RecebimentoContratoService, RoyaltyModule, RoyaltyService, SAM_SENIOR_HEADER, SafraModule, SafraService, SamSeniorModule, SnapshotComponent, SnapshotDescritor, TransportadoraModule, TransportadoraService, UnidadeMedidaModule, UnidadeMedidaService, VisitorListComponent, VisitorListModule, VisitorListService, VisualizarBalancaComponent, VisualizarBalancaDescritor, highlightLanguages, Service as ɵa, CustomStompConfig as ɵb, VerificaNotafiscal as ɵba, BuildFormField as ɵbb, ExpedicaoFormComponent as ɵbc, ExpedicaoInfoComponent as ɵbd, RecebimentoInfoComponent as ɵbe, DevolucaoFormComponent as ɵbf, DevolucaoService as ɵbg, DevolucaoChegadaVeiculoOverride as ɵbh, RecebimentoOrdemCompraFormComponent as ɵbi, OrdemCompraService as ɵbj, RecebimentoOrdemCompraService as ɵbk, RecebimentoOrdemCompraChegadaVeiculoOverride as ɵbl, RecebimentoOrdemCompraInfoComponent as ɵbm, DevolucaoInfoComponent as ɵbn, ContratoFormComponent as ɵbo, OrdemCompraFormComponent as ɵbp, ProcessoAvulsoFormComponent as ɵbq, ProcessoAvulsoService as ɵbr, ProcessoAvulsoChegadaVeiculoOverride as ɵbs, ProcessoAvulsoInfoComponent as ɵbt, LogIntegracaoDescritor as ɵbu, LogIntegracaoComponent as ɵbv, LogIntegracaoService as ɵbw, DerivacaoModule as ɵbx, DevolucaoModule as ɵby, OrdemCompraModule as ɵbz, ViewImageComponent as ɵc, RecebimentoOrdemCompraModule as ɵca, TransgeniaModule as ɵcb, ProcessoAvulsoModule as ɵcc, LogIntegracaoModule as ɵcd, NotaFormModule as ɵce, NotaFormComponent as ɵcf, LogDescritor as ɵd, LogsComponent as ɵe, PortariasService as ɵf, EntradaComponent as ɵg, AgendasComponent as ɵh, ConfirmacaoComponent as ɵi, VisitedInfoDescritor as ɵj, VisitedInfoComponent as ɵk, VisitedInfoService as ɵl, SchedulingComponent as ɵm, LobbyService as ɵn, EntityService as ɵo, SchedulingService as ɵp, VisitanteComponent as ɵq, VisitanteFormComponent as ɵr, CredencialFormComponent as ɵs, FocusService as ɵt, EntityService$1 as ɵu, IntegrationService as ɵv, RecebimentoFormComponent as ɵw, DerivacaoService as ɵx, NotaValidatorService as ɵy, TransgeniaService as ɵz };
13047
+ export { AgendaModule, AgendaService$1 as AgendaService, BalancaModule, BalancasService, CamerasModule, CamerasService, CancelasModule, CidadeModule, CidadeService, ContratoCompraItemModule, ContratoCompraItemService, ContratoCompraModule, ContratoCompraService, ControladorCancelaComponent, ControladorCancelaDescritor, ControladorCancelasService, CoreModule, DockModule, DockService, ERP_ENVIRONMENT, ERP_SENIOR_HEADER, EmpresaModule, EmpresaService, ErpFormConfigService, ErpProcessData, ErpProcessService, ErpSeniorModule, EstadoModule, EstadoService, ExpedicaoChegadaVeiculoOverride, ExpedicaoModule, ExpedicaoService, FamiliaProdutoModule, FamiliaProdutoService, FieldCustomizationService, FilialModule, FilialService, FormComponent, FormDescritor, FormSamComponent, FormSamDescritor, FormWmsComponent, FormWmsDescritor, HasChangeService, INFORMACAOES_ADICIONAIS_HEADER, InfoComponent, InfoDescritor, IntegrationWebSocket, LogsModule, LogsService, LprModule, LprService, PaisModule, PaisService, PedidoVendaItemModule, PedidoVendaItemService, PedidoVendaModule, PedidoVendaService, PessoaEnderecoModule, PessoaEnderecoService, PessoaFisicaModule, PessoaFisicaService, PessoaJuridicaModule, PessoaJuridicaService, PessoaModule, PessoaService, PortariasComponent, PortariasDescritor, PortariasModule, ProdutoModule, ProdutoService, RecebimentoChegadaVeiculoOverride, RecebimentoContratoModule, RecebimentoContratoService, RoyaltyModule, RoyaltyService, SAM_SENIOR_HEADER, SafraModule, SafraService, SamSeniorModule, SnapshotComponent, SnapshotDescritor, TransportadoraModule, TransportadoraService, UnidadeMedidaModule, UnidadeMedidaService, VisitorListComponent, VisitorListModule, VisitorListService, VisualizarBalancaComponent, VisualizarBalancaDescritor, WmsModule, highlightLanguages, Service as ɵa, CustomStompConfig as ɵb, EntityService$2 as ɵba, EntityService$1 as ɵbb, InsertKeyModule as ɵbc, InsertKeyComponent as ɵbd, IntegrationService as ɵbe, RecebimentoFormComponent as ɵbf, DerivacaoService as ɵbg, NotaValidatorService as ɵbh, TransgeniaService as ɵbi, VerificaNotafiscal as ɵbj, BuildFormField as ɵbk, ExpedicaoFormComponent as ɵbl, ExpedicaoInfoComponent as ɵbm, RecebimentoInfoComponent as ɵbn, DevolucaoFormComponent as ɵbo, DevolucaoService as ɵbp, DevolucaoChegadaVeiculoOverride as ɵbq, RecebimentoOrdemCompraFormComponent as ɵbr, OrdemCompraService as ɵbs, RecebimentoOrdemCompraService as ɵbt, RecebimentoOrdemCompraChegadaVeiculoOverride as ɵbu, RecebimentoOrdemCompraInfoComponent as ɵbv, DevolucaoInfoComponent as ɵbw, ContratoFormComponent as ɵbx, OrdemCompraFormComponent as ɵby, ProcessoAvulsoFormComponent as ɵbz, ViewImageComponent as ɵc, ProcessoAvulsoService as ɵca, ProcessoAvulsoChegadaVeiculoOverride as ɵcb, ProcessoAvulsoInfoComponent as ɵcc, LogIntegracaoDescritor as ɵcd, LogIntegracaoComponent as ɵce, LogIntegracaoService as ɵcf, DerivacaoModule as ɵcg, DevolucaoModule as ɵch, OrdemCompraModule as ɵci, RecebimentoOrdemCompraModule as ɵcj, TransgeniaModule as ɵck, ProcessoAvulsoModule as ɵcl, LogIntegracaoModule as ɵcm, NotaFormModule as ɵcn, NotaFormComponent as ɵco, LogDescritor as ɵd, LogsComponent as ɵe, PortariasService as ɵf, EntradaComponent as ɵg, AgendasComponent as ɵh, ConfirmacaoComponent as ɵi, VisitedInfoDescritor as ɵj, VisitedInfoComponent as ɵk, VisitedInfoService as ɵl, SchedulingComponent as ɵm, LobbyService as ɵn, EntityService as ɵo, SchedulingService as ɵp, VisitanteComponent as ɵq, VisitanteFormComponent as ɵr, CredencialFormComponent as ɵs, FocusService as ɵt, DocumentGridModule as ɵu, DocumentGridComponent as ɵv, DocumentService as ɵw, RegisterDocumentModule as ɵx, RegisterDocumentComponent as ɵy, AgendaService as ɵz };
12448
13048
  //# sourceMappingURL=seniorsistemas-yms-integration.js.map