@seniorsistemas/yms-integration 1.18.4 → 1.19.1-5faa32ff-77ac-459b-a5e6-0b7a1b7fef2a

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 +871 -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 +163 -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 +75 -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 +107 -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 +168 -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 +77 -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 +109 -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 +777 -207
  48. package/fesm2015/seniorsistemas-yms-integration.js.map +1 -1
  49. package/fesm5/seniorsistemas-yms-integration.js +810 -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 +43 -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 +28 -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,179 @@ 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 InsertKeyComponent = class InsertKeyComponent {
2866
+ constructor(formBuilder, documentService, messageService, translate) {
2867
+ this.formBuilder = formBuilder;
2868
+ this.documentService = documentService;
2869
+ this.messageService = messageService;
2870
+ this.translate = translate;
2871
+ this.document = new EventEmitter();
2872
+ }
2873
+ ngOnInit() {
2874
+ this.formGroup = this.formBuilder.group({
2875
+ key: [undefined]
2876
+ });
2877
+ }
2878
+ showInsertKey(visible) {
2879
+ this.visible = visible;
2880
+ }
2881
+ add() {
2882
+ this.visible = false;
2883
+ if (!this.formGroup.get('key').value) {
2884
+ return;
2885
+ }
2886
+ this.searchKey();
2887
+ }
2888
+ searchKey() {
2889
+ const key = {
2890
+ documentKeys: [this.formGroup.get('key').value],
2891
+ invoices: undefined,
2892
+ logistcUnitName: undefined,
2893
+ size: 0,
2894
+ offset: 0
2895
+ };
2896
+ this.documentService.findDocuments(key).subscribe((content) => {
2897
+ if (content.totalElements < 1) {
2898
+ this.message("warn", "yms.int.wms_insert_key_warning_message_header", "yms.int.wms_insert_key_warning_message_description");
2899
+ return;
2900
+ }
2901
+ this.document.emit(content.contents[0]);
2902
+ this.message("success", "yms.int.wms_insert_key_success_message_header", "yms.int.wms_insert_key_success_message_description");
2903
+ this.formGroup.reset();
2904
+ });
2905
+ }
2906
+ message(success, header, description) {
2907
+ this.messageService.add({
2908
+ severity: success,
2909
+ summary: this.translate.instant(header),
2910
+ detail: this.translate.instant(description),
2911
+ });
2912
+ }
2913
+ cancel() {
2914
+ this.visible = false;
2915
+ }
2916
+ };
2917
+ __decorate([
2918
+ Output(),
2919
+ __metadata("design:type", EventEmitter)
2920
+ ], InsertKeyComponent.prototype, "document", void 0);
2921
+ InsertKeyComponent = __decorate([
2922
+ Component({
2923
+ selector: "insert-key",
2924
+ template: "<form [formGroup]=\"formGroup\">\n <p-dialog [(visible)]=\"visible\">\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>",
2925
+ 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}"]
2926
+ }),
2927
+ __metadata("design:paramtypes", [FormBuilder,
2928
+ DocumentService,
2929
+ MessageService,
2930
+ TranslateService])
2931
+ ], InsertKeyComponent);
2932
+
2933
+ const moment$4 = _moment;
2934
+ class Document {
2935
+ static fromDto(documentDto, originEntity) {
2936
+ const model = Object.assign({}, documentDto);
2937
+ model.createdDate = model.createdDate && moment$4(model.createdDate).toDate();
2938
+ model.lastModifiedDate = model.lastModifiedDate && moment$4(model.lastModifiedDate).toDate();
2939
+ const lookupSeparator = " - ";
2940
+ const displayFields = [
2941
+ "id",
2942
+ "schedulingId",
2943
+ "invoiceKey",
2944
+ "invoiceNumber",
2945
+ "invoiceSerialNumber",
2946
+ "systemIntegration",
2947
+ "logistcUnitName",
2948
+ "logistcUnitDocument",
2949
+ "ownerName",
2950
+ "ownerDocument",
2951
+ "partnerName",
2952
+ "partnerDocument",
2953
+ "notes",
2954
+ "orderReceivingCode",
2955
+ "createdBy",
2956
+ "createdDate",
2957
+ "lastModifiedBy",
2958
+ "lastModifiedDate",
2959
+ ];
2960
+ model.label = displayFields.map(field => model[field]).join(lookupSeparator);
2961
+ return model;
2962
+ }
2963
+ static toDto(document, originEntity) {
2964
+ const dto = Object.assign({}, document);
2965
+ dto.createdDate = dto.createdDate && moment$4(dto.createdDate).format();
2966
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$4(dto.lastModifiedDate).format();
2967
+ return dto;
2968
+ }
2969
+ }
2970
+
2778
2971
  class EntityService$1 {
2779
2972
  constructor(http, messageService, entityUrl, actionsUrl) {
2780
2973
  this.http = http;
@@ -2865,11 +3058,388 @@ class EntityService$1 {
2865
3058
  listCustomFilter(listParams, action) {
2866
3059
  return this.http.post(`${this.actionsUrl}/${action}`, this.getBodyParams(listParams)).pipe(this.defaultCatch());
2867
3060
  }
2868
- }
3061
+ }
3062
+
3063
+ class EntityService$2 extends EntityService$1 {
3064
+ }
3065
+
3066
+ let AgendaService = class AgendaService extends EntityService$2 {
3067
+ constructor(http, messageService) {
3068
+ super(http, messageService, 'yms/agenda/entities/agenda', '');
3069
+ this.http = http;
3070
+ this.messageService = messageService;
3071
+ }
3072
+ };
3073
+ AgendaService.ngInjectableDef = defineInjectable({ factory: function AgendaService_Factory() { return new AgendaService(inject(HttpClient), inject(MessageService$1)); }, token: AgendaService, providedIn: "root" });
3074
+ AgendaService = __decorate([
3075
+ Injectable({ providedIn: 'root' }),
3076
+ __metadata("design:paramtypes", [HttpClient, MessageService$1])
3077
+ ], AgendaService);
3078
+
3079
+ let RegisterDocumentComponent = class RegisterDocumentComponent {
3080
+ constructor(fb, messageService, translateService, agendaService) {
3081
+ this.fb = fb;
3082
+ this.messageService = messageService;
3083
+ this.translateService = translateService;
3084
+ this.agendaService = agendaService;
3085
+ this.document = new EventEmitter();
3086
+ }
3087
+ ngOnInit() {
3088
+ this.getFormGroup();
3089
+ }
3090
+ showRegister(isVisible, isEdit, document) {
3091
+ if (!isVisible && !isEdit) {
3092
+ return;
3093
+ }
3094
+ this.visible = isVisible;
3095
+ this.edit = isEdit;
3096
+ if (!this.edit) {
3097
+ this.formGroup.disable();
3098
+ this.setValuesFormGroup(document);
3099
+ this.setValueForPartner();
3100
+ this.hideSaveButton = true;
3101
+ }
3102
+ }
3103
+ close() {
3104
+ this.visible = false;
3105
+ }
3106
+ setValuesFormGroup(document) {
3107
+ this.formGroup.get('invoiceKey').setValue(document.invoiceKey);
3108
+ this.formGroup.get('invoiceNumber').setValue(document.invoiceNumber);
3109
+ this.formGroup.get('invoiceSerialNumber').setValue(document.invoiceSerialNumber);
3110
+ this.formGroup.get('logistcUnitDocument').setValue(document.logistcUnitDocument);
3111
+ this.formGroup.get('logistcUnitName').setValue(document.logistcUnitName);
3112
+ this.formGroup.get('notes').setValue(document.notes);
3113
+ this.formGroup.get('orderReceivingCode').setValue(document.orderReceivingCode);
3114
+ this.formGroup.get('ownerDocument').setValue(document.ownerDocument);
3115
+ this.formGroup.get('ownerName').setValue(document.ownerName);
3116
+ }
3117
+ setValueForPartner() {
3118
+ this.agendaService.get(this.agenda.id).subscribe((agenda) => {
3119
+ this.formGroup.get('partnerName').setValue(agenda.externalTenant.descricao);
3120
+ this.formGroup.get('partnerDocument').setValue(agenda.externalTenant.cnpj);
3121
+ });
3122
+ }
3123
+ getFormGroup() {
3124
+ this.formGroup = this.fb.group({
3125
+ invoiceKey: [undefined, Validators.required],
3126
+ schedulingId: [undefined],
3127
+ invoiceNumber: [undefined],
3128
+ invoiceSerialNumber: [undefined],
3129
+ logistcUnitName: [undefined],
3130
+ logistcUnitDocument: [undefined],
3131
+ ownerName: [undefined],
3132
+ ownerDocument: [undefined],
3133
+ partnerName: [undefined],
3134
+ partnerDocument: [undefined],
3135
+ notes: [undefined],
3136
+ orderReceivingCode: [undefined],
3137
+ });
3138
+ }
3139
+ save() {
3140
+ const value = this.formGroup.getRawValue();
3141
+ if (value.id === undefined) {
3142
+ if (this.agenda.id !== undefined) {
3143
+ value.schedulingId = this.agenda.id;
3144
+ }
3145
+ this.document.emit(Document.fromDto(value));
3146
+ this.successMessage();
3147
+ this.visible = false;
3148
+ }
3149
+ }
3150
+ successMessage() {
3151
+ this.messageService.add({
3152
+ severity: "success",
3153
+ summary: this.translateService.instant("saved_message_title"),
3154
+ detail: this.translateService.instant("saved_message_content"),
3155
+ });
3156
+ }
3157
+ };
3158
+ __decorate([
3159
+ Input(),
3160
+ __metadata("design:type", Agenda)
3161
+ ], RegisterDocumentComponent.prototype, "agenda", void 0);
3162
+ __decorate([
3163
+ Output(),
3164
+ __metadata("design:type", EventEmitter)
3165
+ ], RegisterDocumentComponent.prototype, "document", void 0);
3166
+ RegisterDocumentComponent = __decorate([
3167
+ Component({
3168
+ selector: "register-document",
3169
+ 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>"
3170
+ }),
3171
+ __metadata("design:paramtypes", [FormBuilder,
3172
+ MessageService,
3173
+ TranslateService,
3174
+ AgendaService])
3175
+ ], RegisterDocumentComponent);
3176
+
3177
+ let DocumentGridComponent = class DocumentGridComponent {
3178
+ constructor(translate, documentService, messageService) {
3179
+ this.translate = translate;
3180
+ this.documentService = documentService;
3181
+ this.messageService = messageService;
3182
+ this.ngUnsubscribe = new Subject();
3183
+ }
3184
+ ngOnInit() {
3185
+ this.gridColumns = this.getGridColumns();
3186
+ this.listDocuments();
3187
+ }
3188
+ onChangeDocument(document) {
3189
+ this.gridData.push(document);
3190
+ this.disabled = true;
3191
+ }
3192
+ getActions() {
3193
+ return [
3194
+ {
3195
+ label: this.translate.instant("yms.int.wms_add_document_invoice_key"),
3196
+ command: () => {
3197
+ this.registerDocumentComponent.showRegister(false, false);
3198
+ this.showInsertKey = true;
3199
+ this.insertKeyComponent.showInsertKey(this.showInsertKey);
3200
+ },
3201
+ icon: "fa fa-search"
3202
+ },
3203
+ {
3204
+ label: this.translate.instant("yms.int.wms_add_document_register"),
3205
+ command: () => {
3206
+ this.insertKeyComponent.showInsertKey(false);
3207
+ this.showRegisterDocument = true;
3208
+ this.registerDocumentComponent.showRegister(this.showRegisterDocument, true);
3209
+ },
3210
+ icon: "fas fa-pen-square"
3211
+ }
3212
+ ];
3213
+ }
3214
+ getProp(obj, path) {
3215
+ return path.split(".").reduce((result, prop) => (result[prop] === undefined ? "" : result[prop]), obj);
3216
+ }
3217
+ view() {
3218
+ const documentSelectec = this.selection;
3219
+ this.showRegisterDocument = true;
3220
+ this.registerDocumentComponent.showRegister(this.showRegisterDocument, false, documentSelectec);
3221
+ }
3222
+ save() {
3223
+ if (this.gridData.length > 1) {
3224
+ this.gridData.forEach(data => {
3225
+ if (!data.id) {
3226
+ if (!data.schedulingId) {
3227
+ data.schedulingId = this.agenda.id;
3228
+ }
3229
+ this.documentService.insert(data).subscribe(() => {
3230
+ this.message("success", "saved_message_title", "saved_message_content");
3231
+ });
3232
+ this.disabled = true;
3233
+ }
3234
+ });
3235
+ }
3236
+ }
3237
+ onDelete(selection) {
3238
+ if (!selection.id) {
3239
+ return;
3240
+ }
3241
+ this.documentService.delete(selection.id)
3242
+ .pipe(takeUntil(this.ngUnsubscribe), finalize(() => {
3243
+ this.listDocuments();
3244
+ })).
3245
+ subscribe(() => this.message("success", "deleted_message_title", "deleted_message_content"));
3246
+ }
3247
+ listDocuments() {
3248
+ this.documentService.list({
3249
+ filterQuery: `schedulingId eq '${this.agenda.id}'`
3250
+ })
3251
+ .subscribe((contents) => {
3252
+ if (contents.totalElements > 0) {
3253
+ this.gridData = contents.contents;
3254
+ this.documentTotalRecords = contents.totalElements;
3255
+ }
3256
+ else {
3257
+ this.disabled = true;
3258
+ }
3259
+ this.loading = false;
3260
+ });
3261
+ }
3262
+ getGridColumns() {
3263
+ return [
3264
+ { field: "logistcUnitName", header: this.translate.instant("yms.int.wms_register_document_logistc_unit_name") },
3265
+ { field: "logistcUnitDocument", header: this.translate.instant("yms.int.wms_register_document_logistc_unit_document") },
3266
+ { field: "invoiceKey", header: this.translate.instant("yms.int.wms_register_document_invoice_key") },
3267
+ { field: "invoiceNumber", header: this.translate.instant("yms.int.wms_register_document_invoice_number") },
3268
+ { field: "invoiceSerialNumber", header: this.translate.instant("yms.int.wms_register_document_invoice_serial_number") },
3269
+ { field: "ownerName", header: this.translate.instant("yms.int.wms_register_document_owner_name") },
3270
+ { field: "ownerDocument", header: this.translate.instant("yms.int.wms_register_document_owner_document") },
3271
+ { field: "orderReceivingCode", header: this.translate.instant("yms.int.wms_register_document_order_receiving_code") },
3272
+ ];
3273
+ }
3274
+ message(severity, summary, detail) {
3275
+ this.messageService.add({
3276
+ severity,
3277
+ summary: this.translate.instant(summary),
3278
+ detail: this.translate.instant(detail),
3279
+ });
3280
+ }
3281
+ };
3282
+ __decorate([
3283
+ Input(),
3284
+ __metadata("design:type", Object)
3285
+ ], DocumentGridComponent.prototype, "agenda", void 0);
3286
+ __decorate([
3287
+ ViewChild("documentTable"),
3288
+ __metadata("design:type", Table)
3289
+ ], DocumentGridComponent.prototype, "table", void 0);
3290
+ __decorate([
3291
+ ViewChild("customTemplate"),
3292
+ __metadata("design:type", TemplateRef)
3293
+ ], DocumentGridComponent.prototype, "customTemplate", void 0);
3294
+ __decorate([
3295
+ ViewChild("customFilterFields"),
3296
+ __metadata("design:type", TemplateRef)
3297
+ ], DocumentGridComponent.prototype, "customFilterFields", void 0);
3298
+ __decorate([
3299
+ ViewChild("customGridColgroup"),
3300
+ __metadata("design:type", TemplateRef)
3301
+ ], DocumentGridComponent.prototype, "customGridColgroup", void 0);
3302
+ __decorate([
3303
+ ViewChild("customGridHeader"),
3304
+ __metadata("design:type", TemplateRef)
3305
+ ], DocumentGridComponent.prototype, "customGridHeader", void 0);
3306
+ __decorate([
3307
+ ViewChild("customGridBody"),
3308
+ __metadata("design:type", TemplateRef)
3309
+ ], DocumentGridComponent.prototype, "customGridBody", void 0);
3310
+ __decorate([
3311
+ ViewChild("registerDocument"),
3312
+ __metadata("design:type", RegisterDocumentComponent)
3313
+ ], DocumentGridComponent.prototype, "registerDocumentComponent", void 0);
3314
+ __decorate([
3315
+ ViewChild("insertKey"),
3316
+ __metadata("design:type", InsertKeyComponent)
3317
+ ], DocumentGridComponent.prototype, "insertKeyComponent", void 0);
3318
+ DocumentGridComponent = __decorate([
3319
+ Component({
3320
+ selector: 'document-grid',
3321
+ 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 || disabled\"\n (onClick)=\"view()\">\n </s-button>\n <s-button\n label=\"{{'yms.wms_delete_button' | translate}}\"\n priority=\"secondary\"\n [auxiliary]=\"false\"\n [disabled]=\"!selection || disabled\"\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 #registerDocument (document)=\"onChangeDocument($event)\" [agenda]=\"agenda\"></register-document>\n <insert-key #insertKey (document)=\"onChangeDocument($event)\"></insert-key>\n</p-panel>\n<div class=\"button-save\">\n <s-button \n priority=\"primary\" [label]=\"'save' | translate\" [disabled]=\"!disabled\" (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",
3322
+ 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}"]
3323
+ }),
3324
+ __metadata("design:paramtypes", [TranslateService,
3325
+ DocumentService,
3326
+ MessageService])
3327
+ ], DocumentGridComponent);
3328
+
3329
+ let RegisterDocumentModule = class RegisterDocumentModule {
3330
+ };
3331
+ RegisterDocumentModule = __decorate([
3332
+ NgModule({
3333
+ imports: [
3334
+ CommonModule,
3335
+ SidebarModule,
3336
+ ButtonModule,
3337
+ PanelModule,
3338
+ ConfirmDialogModule,
3339
+ TranslateModule,
3340
+ InputTextModule$1,
3341
+ ControlErrorsModule,
3342
+ InputTextareaModule,
3343
+ ReactiveFormsModule
3344
+ ],
3345
+ exports: [RegisterDocumentComponent],
3346
+ declarations: [RegisterDocumentComponent],
3347
+ providers: [DocumentService]
3348
+ })
3349
+ ], RegisterDocumentModule);
3350
+
3351
+ let InsertKeyModule = class InsertKeyModule {
3352
+ };
3353
+ InsertKeyModule = __decorate([
3354
+ NgModule({
3355
+ imports: [
3356
+ CommonModule,
3357
+ ReactiveFormsModule,
3358
+ ButtonModule,
3359
+ TranslateModule,
3360
+ DialogModule,
3361
+ InputTextModule$1
3362
+ ],
3363
+ exports: [InsertKeyComponent],
3364
+ declarations: [InsertKeyComponent]
3365
+ })
3366
+ ], InsertKeyModule);
3367
+
3368
+ let DocumentGridModule = class DocumentGridModule {
3369
+ };
3370
+ DocumentGridModule = __decorate([
3371
+ NgModule({
3372
+ declarations: [DocumentGridComponent],
3373
+ entryComponents: [DocumentGridComponent],
3374
+ exports: [DocumentGridComponent],
3375
+ imports: [
3376
+ CommonModule,
3377
+ TranslateModule,
3378
+ ButtonModule,
3379
+ PanelModule,
3380
+ TableModule,
3381
+ RegisterDocumentModule,
3382
+ InsertKeyModule,
3383
+ ButtonModule$1,
3384
+ ComponentsModule,
3385
+ EmptyStateModule
3386
+ ],
3387
+ })
3388
+ ], DocumentGridModule);
3389
+
3390
+ let WmsModule = class WmsModule {
3391
+ constructor(dispatcher) {
3392
+ dispatcher.dispatch(FormWmsComponent);
3393
+ }
3394
+ };
3395
+ WmsModule = __decorate([
3396
+ NgModule({
3397
+ declarations: [FormWmsComponent],
3398
+ entryComponents: [FormWmsComponent],
3399
+ exports: [FormWmsComponent],
3400
+ imports: [
3401
+ IntegrationModule,
3402
+ DocumentGridModule,
3403
+ CommonModule,
3404
+ TranslateModule,
3405
+ FormsModule,
3406
+ ButtonModule,
3407
+ SharedModule,
3408
+ CardModule,
3409
+ ButtonModule$1,
3410
+ ReactiveFormsModule,
3411
+ SharedModule$1,
3412
+ CustomFieldsModule,
3413
+ ControlErrorsModule,
3414
+ DialogModule,
3415
+ EmptyStateModule,
3416
+ DynamicFormModule,
3417
+ TokenListModule,
3418
+ PanelModule,
3419
+ InputTextModule$1,
3420
+ DropdownModule,
3421
+ ButtonModule,
3422
+ LoadingStateModule,
3423
+ NumberInputModule,
3424
+ ConfirmDialogModule,
3425
+ LocaleModule,
3426
+ PermissionsModule,
3427
+ DynamicDialogModule,
3428
+ TableModule,
3429
+ TabViewModule,
3430
+ CalendarModule,
3431
+ ],
3432
+ providers: [
3433
+ FieldCustomizationService,
3434
+ FocusService
3435
+ ]
3436
+ }),
3437
+ __metadata("design:paramtypes", [IntegrationDispatcher])
3438
+ ], WmsModule);
2869
3439
 
2870
3440
  const ERP_ENVIRONMENT = new InjectionToken('integration_environment');
2871
3441
 
2872
- let AgendaService = class AgendaService extends EntityService$1 {
3442
+ let AgendaService$1 = class AgendaService extends EntityService$1 {
2873
3443
  constructor(http, messageService, environment) {
2874
3444
  super(http, messageService, `${environment.project.domain}/${environment.project.service}/entities/agenda`, `${environment.project.domain}/${environment.project.service}/actions`);
2875
3445
  this.http = http;
@@ -2893,12 +3463,12 @@ let AgendaService = class AgendaService extends EntityService$1 {
2893
3463
  .pipe(this.defaultCatch());
2894
3464
  }
2895
3465
  };
2896
- AgendaService = __decorate([
3466
+ AgendaService$1 = __decorate([
2897
3467
  Injectable(),
2898
3468
  __param(2, Inject(ERP_ENVIRONMENT)),
2899
3469
  __metadata("design:paramtypes", [HttpClient,
2900
3470
  MessageService$1, Object])
2901
- ], AgendaService);
3471
+ ], AgendaService$1);
2902
3472
 
2903
3473
  /*{CA:PROJECT_IMPORTS:START}*/
2904
3474
  /*{CA:PROJECT_IMPORTS:END}*/
@@ -2960,7 +3530,7 @@ let RecebimentoChegadaVeiculoOverride = class RecebimentoChegadaVeiculoOverride
2960
3530
  RecebimentoChegadaVeiculoOverride = __decorate([
2961
3531
  Injectable(),
2962
3532
  __metadata("design:paramtypes", [ChegadaVeiculoOverride,
2963
- AgendaService,
3533
+ AgendaService$1,
2964
3534
  RecebimentoContratoService])
2965
3535
  ], RecebimentoChegadaVeiculoOverride);
2966
3536
 
@@ -3015,7 +3585,7 @@ let ExpedicaoChegadaVeiculoOverride = class ExpedicaoChegadaVeiculoOverride {
3015
3585
  ExpedicaoChegadaVeiculoOverride = __decorate([
3016
3586
  Injectable(),
3017
3587
  __metadata("design:paramtypes", [ChegadaVeiculoOverride,
3018
- AgendaService,
3588
+ AgendaService$1,
3019
3589
  ExpedicaoService])
3020
3590
  ], ExpedicaoChegadaVeiculoOverride);
3021
3591
 
@@ -3238,15 +3808,15 @@ OrdemCompraService = __decorate([
3238
3808
  MessageService$1, Object])
3239
3809
  ], OrdemCompraService);
3240
3810
 
3241
- const moment$4 = _moment;
3811
+ const moment$5 = _moment;
3242
3812
  /*{CA:PROJECT_IMPORTS:END}*/
3243
3813
  class Empresa {
3244
3814
  /*{CA:CLASS_ATTRIBUTES:START}*/
3245
3815
  /*{CA:CLASS_ATTRIBUTES:END}*/
3246
3816
  static fromDto(empresaDto, originEntity) {
3247
3817
  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();
3818
+ model.createdDate = model.createdDate && moment$5(model.createdDate).toDate();
3819
+ model.lastModifiedDate = model.lastModifiedDate && moment$5(model.lastModifiedDate).toDate();
3250
3820
  const lookupSeparator = " - ";
3251
3821
  const displayFields = [
3252
3822
  "codigo",
@@ -3258,8 +3828,8 @@ class Empresa {
3258
3828
  }
3259
3829
  static toDto(empresa, originEntity) {
3260
3830
  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();
3831
+ dto.createdDate = dto.createdDate && moment$5(dto.createdDate).format();
3832
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$5(dto.lastModifiedDate).format();
3263
3833
  delete dto.label;
3264
3834
  return dto;
3265
3835
  }
@@ -3267,7 +3837,7 @@ class Empresa {
3267
3837
  /*{CA:FILE_CONTENTS:START}*/
3268
3838
  /*{CA:FILE_CONTENTS:END}*/
3269
3839
 
3270
- const moment$5 = _moment;
3840
+ const moment$6 = _moment;
3271
3841
  /*{CA:PROJECT_IMPORTS:START}*/
3272
3842
  /*{CA:PROJECT_IMPORTS:END}*/
3273
3843
  class Pessoa {
@@ -3275,8 +3845,8 @@ class Pessoa {
3275
3845
  /*{CA:CLASS_ATTRIBUTES:END}*/
3276
3846
  static fromDto(pessoaDto, originEntity) {
3277
3847
  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();
3848
+ model.createdDate = model.createdDate && moment$6(model.createdDate).toDate();
3849
+ model.lastModifiedDate = model.lastModifiedDate && moment$6(model.lastModifiedDate).toDate();
3280
3850
  const lookupSeparator = " - ";
3281
3851
  const displayFields = [
3282
3852
  "codigo",
@@ -3288,8 +3858,8 @@ class Pessoa {
3288
3858
  }
3289
3859
  static toDto(pessoa, originEntity) {
3290
3860
  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();
3861
+ dto.createdDate = dto.createdDate && moment$6(dto.createdDate).format();
3862
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$6(dto.lastModifiedDate).format();
3293
3863
  delete dto.label;
3294
3864
  return dto;
3295
3865
  }
@@ -3297,7 +3867,7 @@ class Pessoa {
3297
3867
  /*{CA:FILE_CONTENTS:START}*/
3298
3868
  /*{CA:FILE_CONTENTS:END}*/
3299
3869
 
3300
- const moment$6 = _moment;
3870
+ const moment$7 = _moment;
3301
3871
  /*{CA:PROJECT_IMPORTS:START}*/
3302
3872
  /*{CA:PROJECT_IMPORTS:END}*/
3303
3873
  class PessoaJuridica {
@@ -3305,8 +3875,8 @@ class PessoaJuridica {
3305
3875
  /*{CA:CLASS_ATTRIBUTES:END}*/
3306
3876
  static fromDto(pessoaJuridicaDto, originEntity) {
3307
3877
  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();
3878
+ model.createdDate = model.createdDate && moment$7(model.createdDate).toDate();
3879
+ model.lastModifiedDate = model.lastModifiedDate && moment$7(model.lastModifiedDate).toDate();
3310
3880
  const lookupSeparator = " - ";
3311
3881
  const displayFields = [
3312
3882
  "id",
@@ -3333,8 +3903,8 @@ class PessoaJuridica {
3333
3903
  }
3334
3904
  static toDto(pessoaJuridica, originEntity) {
3335
3905
  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();
3906
+ dto.createdDate = dto.createdDate && moment$7(dto.createdDate).format();
3907
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$7(dto.lastModifiedDate).format();
3338
3908
  delete dto.label;
3339
3909
  if (originEntity !== "Pessoa" && dto.pessoa)
3340
3910
  dto.pessoa = Pessoa.toDto(dto.pessoa, "PessoaJuridica");
@@ -3344,7 +3914,7 @@ class PessoaJuridica {
3344
3914
  /*{CA:FILE_CONTENTS:START}*/
3345
3915
  /*{CA:FILE_CONTENTS:END}*/
3346
3916
 
3347
- const moment$7 = _moment;
3917
+ const moment$8 = _moment;
3348
3918
  /*{CA:PROJECT_IMPORTS:START}*/
3349
3919
  /*{CA:PROJECT_IMPORTS:END}*/
3350
3920
  class Pais {
@@ -3352,8 +3922,8 @@ class Pais {
3352
3922
  /*{CA:CLASS_ATTRIBUTES:END}*/
3353
3923
  static fromDto(paisDto, originEntity) {
3354
3924
  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();
3925
+ model.createdDate = model.createdDate && moment$8(model.createdDate).toDate();
3926
+ model.lastModifiedDate = model.lastModifiedDate && moment$8(model.lastModifiedDate).toDate();
3357
3927
  const lookupSeparator = " - ";
3358
3928
  const displayFields = ["id", "codigo", "descricao", "createdBy", "createdDate", "lastModifiedBy", "lastModifiedDate"];
3359
3929
  model.label = displayFields.map(field => model[field]).join(lookupSeparator);
@@ -3361,8 +3931,8 @@ class Pais {
3361
3931
  }
3362
3932
  static toDto(pais, originEntity) {
3363
3933
  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();
3934
+ dto.createdDate = dto.createdDate && moment$8(dto.createdDate).format();
3935
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$8(dto.lastModifiedDate).format();
3366
3936
  delete dto.label;
3367
3937
  return dto;
3368
3938
  }
@@ -3370,7 +3940,7 @@ class Pais {
3370
3940
  /*{CA:FILE_CONTENTS:START}*/
3371
3941
  /*{CA:FILE_CONTENTS:END}*/
3372
3942
 
3373
- const moment$8 = _moment;
3943
+ const moment$9 = _moment;
3374
3944
  /*{CA:PROJECT_IMPORTS:START}*/
3375
3945
  /*{CA:PROJECT_IMPORTS:END}*/
3376
3946
  class Estado {
@@ -3378,8 +3948,8 @@ class Estado {
3378
3948
  /*{CA:CLASS_ATTRIBUTES:END}*/
3379
3949
  static fromDto(estadoDto, originEntity) {
3380
3950
  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();
3951
+ model.createdDate = model.createdDate && moment$9(model.createdDate).toDate();
3952
+ model.lastModifiedDate = model.lastModifiedDate && moment$9(model.lastModifiedDate).toDate();
3383
3953
  const lookupSeparator = " - ";
3384
3954
  const displayFields = [
3385
3955
  "id",
@@ -3401,8 +3971,8 @@ class Estado {
3401
3971
  }
3402
3972
  static toDto(estado, originEntity) {
3403
3973
  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();
3974
+ dto.createdDate = dto.createdDate && moment$9(dto.createdDate).format();
3975
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$9(dto.lastModifiedDate).format();
3406
3976
  delete dto.label;
3407
3977
  if (originEntity !== "Pais" && dto.pais)
3408
3978
  dto.pais = Pais.toDto(dto.pais, "Estado");
@@ -3412,7 +3982,7 @@ class Estado {
3412
3982
  /*{CA:FILE_CONTENTS:START}*/
3413
3983
  /*{CA:FILE_CONTENTS:END}*/
3414
3984
 
3415
- const moment$9 = _moment;
3985
+ const moment$a = _moment;
3416
3986
  /*{CA:PROJECT_IMPORTS:START}*/
3417
3987
  /*{CA:PROJECT_IMPORTS:END}*/
3418
3988
  class Cidade {
@@ -3420,8 +3990,8 @@ class Cidade {
3420
3990
  /*{CA:CLASS_ATTRIBUTES:END}*/
3421
3991
  static fromDto(cidadeDto, originEntity) {
3422
3992
  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();
3993
+ model.createdDate = model.createdDate && moment$a(model.createdDate).toDate();
3994
+ model.lastModifiedDate = model.lastModifiedDate && moment$a(model.lastModifiedDate).toDate();
3425
3995
  const lookupSeparator = " - ";
3426
3996
  const displayFields = [
3427
3997
  "id",
@@ -3442,8 +4012,8 @@ class Cidade {
3442
4012
  }
3443
4013
  static toDto(cidade, originEntity) {
3444
4014
  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();
4015
+ dto.createdDate = dto.createdDate && moment$a(dto.createdDate).format();
4016
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$a(dto.lastModifiedDate).format();
3447
4017
  delete dto.label;
3448
4018
  if (originEntity !== "Estado" && dto.estado)
3449
4019
  dto.estado = Estado.toDto(dto.estado, "Cidade");
@@ -3453,12 +4023,12 @@ class Cidade {
3453
4023
  /*{CA:FILE_CONTENTS:START}*/
3454
4024
  /*{CA:FILE_CONTENTS:END}*/
3455
4025
 
3456
- const moment$a = _moment;
4026
+ const moment$b = _moment;
3457
4027
  class PessoaEndereco {
3458
4028
  static fromDto(pessoaEnderecoDto, originEntity) {
3459
4029
  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();
4030
+ model.createdDate = model.createdDate && moment$b(model.createdDate).toDate();
4031
+ model.lastModifiedDate = model.lastModifiedDate && moment$b(model.lastModifiedDate).toDate();
3462
4032
  const lookupSeparator = " - ";
3463
4033
  const displayFields = [
3464
4034
  "codigo",
@@ -3474,8 +4044,8 @@ class PessoaEndereco {
3474
4044
  }
3475
4045
  static toDto(pessoaEndereco, originEntity) {
3476
4046
  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();
4047
+ dto.createdDate = dto.createdDate && moment$b(dto.createdDate).format();
4048
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$b(dto.lastModifiedDate).format();
3479
4049
  delete dto.label;
3480
4050
  if (originEntity !== "Pessoa" && dto.pessoa)
3481
4051
  dto.pessoa = Pessoa.toDto(dto.pessoa, "PessoaEndereco");
@@ -3485,7 +4055,7 @@ class PessoaEndereco {
3485
4055
  }
3486
4056
  }
3487
4057
 
3488
- const moment$b = _moment;
4058
+ const moment$c = _moment;
3489
4059
  /*{CA:PROJECT_IMPORTS:START}*/
3490
4060
  /*{CA:PROJECT_IMPORTS:END}*/
3491
4061
  class Filial {
@@ -3493,8 +4063,8 @@ class Filial {
3493
4063
  /*{CA:CLASS_ATTRIBUTES:END}*/
3494
4064
  static fromDto(filialDto, originEntity) {
3495
4065
  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();
4066
+ model.createdDate = model.createdDate && moment$c(model.createdDate).toDate();
4067
+ model.lastModifiedDate = model.lastModifiedDate && moment$c(model.lastModifiedDate).toDate();
3498
4068
  const lookupSeparator = " - ";
3499
4069
  const displayFields = [
3500
4070
  "codigo",
@@ -3512,8 +4082,8 @@ class Filial {
3512
4082
  }
3513
4083
  static toDto(filial, originEntity) {
3514
4084
  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();
4085
+ dto.createdDate = dto.createdDate && moment$c(dto.createdDate).format();
4086
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$c(dto.lastModifiedDate).format();
3517
4087
  delete dto.label;
3518
4088
  if (originEntity !== "Empresa" && dto.empresa)
3519
4089
  dto.empresa = Empresa.toDto(dto.empresa, "Filial");
@@ -3527,12 +4097,12 @@ class Filial {
3527
4097
  /*{CA:FILE_CONTENTS:START}*/
3528
4098
  /*{CA:FILE_CONTENTS:END}*/
3529
4099
 
3530
- const moment$c = _moment;
4100
+ const moment$d = _moment;
3531
4101
  class OrdemCompra {
3532
4102
  static fromDto(ordemCompraDto, originEntity) {
3533
4103
  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();
4104
+ model.createdDate = model.createdDate && moment$d(model.createdDate).toDate();
4105
+ model.lastModifiedDate = model.lastModifiedDate && moment$d(model.lastModifiedDate).toDate();
3536
4106
  const lookupSeparator = " - ";
3537
4107
  const displayFields = [
3538
4108
  "codigo",
@@ -3548,8 +4118,8 @@ class OrdemCompra {
3548
4118
  }
3549
4119
  static toDto(ordemCompra, originEntity) {
3550
4120
  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();
4121
+ dto.createdDate = dto.createdDate && moment$d(dto.createdDate).format();
4122
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$d(dto.lastModifiedDate).format();
3553
4123
  delete dto.label;
3554
4124
  if (originEntity !== "Empresa" && dto.empresa)
3555
4125
  dto.empresa = Empresa.toDto(dto.empresa, "Produto");
@@ -3559,7 +4129,7 @@ class OrdemCompra {
3559
4129
  }
3560
4130
  }
3561
4131
 
3562
- const moment$d = _moment;
4132
+ const moment$e = _moment;
3563
4133
  let OrdemCompraFormComponent = class OrdemCompraFormComponent {
3564
4134
  constructor(dialogRef, dialogConfig, ordemCompraService, translate, fb, route) {
3565
4135
  this.dialogRef = dialogRef;
@@ -3628,7 +4198,7 @@ let OrdemCompraFormComponent = class OrdemCompraFormComponent {
3628
4198
  if (filial && filial.empresa && filial.empresa.id) {
3629
4199
  filter.empresaId = filial.empresa.id;
3630
4200
  }
3631
- filter.dataEmissao = filter.dataEmissao && moment$d(filter.dataEmissao).format("YYYY-MM-DD");
4201
+ filter.dataEmissao = filter.dataEmissao && moment$e(filter.dataEmissao).format("YYYY-MM-DD");
3632
4202
  const sort = (multiSortMeta || []).length ? { field: multiSortMeta[0].field, order: multiSortMeta[0].order === 1 ? 'Asc' : 'Desc' } : { field: 'numero', order: 'Asc' };
3633
4203
  this.ordemCompraService
3634
4204
  .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 +4549,7 @@ AgendaModule = __decorate([
3979
4549
  ]),
3980
4550
  ],
3981
4551
  providers: [
3982
- AgendaService,
4552
+ AgendaService$1,
3983
4553
  ],
3984
4554
  declarations: [
3985
4555
  /*{CA:MODULE_DECLARATIONS:START}*/
@@ -5661,11 +6231,11 @@ let DevolucaoChegadaVeiculoOverride = class DevolucaoChegadaVeiculoOverride {
5661
6231
  DevolucaoChegadaVeiculoOverride = __decorate([
5662
6232
  Injectable(),
5663
6233
  __metadata("design:paramtypes", [ChegadaVeiculoOverride,
5664
- AgendaService,
6234
+ AgendaService$1,
5665
6235
  DevolucaoService])
5666
6236
  ], DevolucaoChegadaVeiculoOverride);
5667
6237
 
5668
- const moment$e = _moment;
6238
+ const moment$f = _moment;
5669
6239
  /*{CA:PROJECT_IMPORTS:START}*/
5670
6240
  /*{CA:PROJECT_IMPORTS:END}*/
5671
6241
  class UnidadeMedida {
@@ -5673,8 +6243,8 @@ class UnidadeMedida {
5673
6243
  /*{CA:CLASS_ATTRIBUTES:END}*/
5674
6244
  static fromDto(unidadeMedidaDto, originEntity) {
5675
6245
  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();
6246
+ model.createdDate = model.createdDate && moment$f(model.createdDate).toDate();
6247
+ model.lastModifiedDate = model.lastModifiedDate && moment$f(model.lastModifiedDate).toDate();
5678
6248
  const lookupSeparator = " - ";
5679
6249
  const displayFields = [
5680
6250
  "id",
@@ -5691,8 +6261,8 @@ class UnidadeMedida {
5691
6261
  }
5692
6262
  static toDto(unidadeMedida, originEntity) {
5693
6263
  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();
6264
+ dto.createdDate = dto.createdDate && moment$f(dto.createdDate).format();
6265
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$f(dto.lastModifiedDate).format();
5696
6266
  delete dto.label;
5697
6267
  return dto;
5698
6268
  }
@@ -5700,7 +6270,7 @@ class UnidadeMedida {
5700
6270
  /*{CA:FILE_CONTENTS:START}*/
5701
6271
  /*{CA:FILE_CONTENTS:END}*/
5702
6272
 
5703
- const moment$f = _moment;
6273
+ const moment$g = _moment;
5704
6274
  /*{CA:PROJECT_IMPORTS:START}*/
5705
6275
  /*{CA:PROJECT_IMPORTS:END}*/
5706
6276
  class Royalty {
@@ -5708,8 +6278,8 @@ class Royalty {
5708
6278
  /*{CA:CLASS_ATTRIBUTES:END}*/
5709
6279
  static fromDto(royaltyDto, originEntity) {
5710
6280
  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();
6281
+ model.createdDate = model.createdDate && moment$g(model.createdDate).toDate();
6282
+ model.lastModifiedDate = model.lastModifiedDate && moment$g(model.lastModifiedDate).toDate();
5713
6283
  const lookupSeparator = " - ";
5714
6284
  const displayFields = ["id", "codigo", "descricao", "createdBy", "createdDate", "lastModifiedBy", "lastModifiedDate"];
5715
6285
  model.label = displayFields.map(field => model[field]).join(lookupSeparator);
@@ -5719,8 +6289,8 @@ class Royalty {
5719
6289
  }
5720
6290
  static toDto(royalty, originEntity) {
5721
6291
  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();
6292
+ dto.createdDate = dto.createdDate && moment$g(dto.createdDate).format();
6293
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$g(dto.lastModifiedDate).format();
5724
6294
  delete dto.label;
5725
6295
  if (originEntity !== "Empresa" && dto.empresa)
5726
6296
  dto.empresa = Empresa.toDto(dto.empresa, "Royalty");
@@ -5730,16 +6300,16 @@ class Royalty {
5730
6300
  /*{CA:FILE_CONTENTS:START}*/
5731
6301
  /*{CA:FILE_CONTENTS:END}*/
5732
6302
 
5733
- const moment$g = _moment;
6303
+ const moment$h = _moment;
5734
6304
  class FamiliaProduto {
5735
6305
  static fromDto(familiaProdutoDto, originEntity) {
5736
6306
  if (familiaProdutoDto.id === undefined) {
5737
6307
  return familiaProdutoDto;
5738
6308
  }
5739
6309
  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();
6310
+ model.createdDate = model.codigo && moment$h(model.createdDate).toDate();
6311
+ model.createdDate = model.createdDate && moment$h(model.createdDate).toDate();
6312
+ model.lastModifiedDate = model.lastModifiedDate && moment$h(model.lastModifiedDate).toDate();
5743
6313
  const lookupSeparator = " - ";
5744
6314
  const displayFields = ["id", "codigo", "descricao", "situacao", "createdBy", "createdDate", "lastModifiedBy", "lastModifiedDate"];
5745
6315
  model.label = displayFields.map(field => model[field]).join(lookupSeparator);
@@ -5749,8 +6319,8 @@ class FamiliaProduto {
5749
6319
  }
5750
6320
  static toDto(familiaProduto, originEntity) {
5751
6321
  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();
6322
+ dto.createdDate = dto.createdDate && moment$h(dto.createdDate).format();
6323
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$h(dto.lastModifiedDate).format();
5754
6324
  delete dto.label;
5755
6325
  if (originEntity !== "Empresa" && dto.empresa)
5756
6326
  dto.empresa = Empresa.toDto(dto.empresa, "FamiliaProduto");
@@ -5758,7 +6328,7 @@ class FamiliaProduto {
5758
6328
  }
5759
6329
  }
5760
6330
 
5761
- const moment$h = _moment;
6331
+ const moment$i = _moment;
5762
6332
  class Produto {
5763
6333
  constructor() {
5764
6334
  this.produtoMisto = false;
@@ -5766,8 +6336,8 @@ class Produto {
5766
6336
  }
5767
6337
  static fromDto(produtoDto, originEntity) {
5768
6338
  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();
6339
+ model.createdDate = model.createdDate && moment$i(model.createdDate).toDate();
6340
+ model.lastModifiedDate = model.lastModifiedDate && moment$i(model.lastModifiedDate).toDate();
5771
6341
  const lookupSeparator = " - ";
5772
6342
  const displayFields = [
5773
6343
  "codigo",
@@ -5788,8 +6358,8 @@ class Produto {
5788
6358
  }
5789
6359
  static toDto(produto, originEntity) {
5790
6360
  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();
6361
+ dto.createdDate = dto.createdDate && moment$i(dto.createdDate).format();
6362
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$i(dto.lastModifiedDate).format();
5793
6363
  delete dto.label;
5794
6364
  if (originEntity !== "Empresa" && dto.empresa)
5795
6365
  dto.empresa = Empresa.toDto(dto.empresa, "Produto");
@@ -5805,7 +6375,7 @@ class Produto {
5805
6375
  }
5806
6376
  }
5807
6377
 
5808
- const moment$i = _moment;
6378
+ const moment$j = _moment;
5809
6379
  /*{CA:PROJECT_IMPORTS:START}*/
5810
6380
  /*{CA:PROJECT_IMPORTS:END}*/
5811
6381
  class Derivacao {
@@ -5813,8 +6383,8 @@ class Derivacao {
5813
6383
  /*{CA:CLASS_ATTRIBUTES:END}*/
5814
6384
  static fromDto(derivacaoDto, originEntity) {
5815
6385
  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();
6386
+ model.createdDate = model.createdDate && moment$j(model.createdDate).toDate();
6387
+ model.lastModifiedDate = model.lastModifiedDate && moment$j(model.lastModifiedDate).toDate();
5818
6388
  const lookupSeparator = " - ";
5819
6389
  const displayFields = ["codigo", "descricao"];
5820
6390
  model.label = getLookupLabel(model, displayFields, lookupSeparator);
@@ -5826,8 +6396,8 @@ class Derivacao {
5826
6396
  }
5827
6397
  static toDto(derivacao, originEntity) {
5828
6398
  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();
6399
+ dto.createdDate = dto.createdDate && moment$j(dto.createdDate).format();
6400
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$j(dto.lastModifiedDate).format();
5831
6401
  delete dto.label;
5832
6402
  if (originEntity !== "Empresa" && dto.empresa)
5833
6403
  dto.empresa = Empresa.toDto(dto.empresa, "Derivacao");
@@ -5839,7 +6409,7 @@ class Derivacao {
5839
6409
  /*{CA:FILE_CONTENTS:START}*/
5840
6410
  /*{CA:FILE_CONTENTS:END}*/
5841
6411
 
5842
- const moment$j = _moment;
6412
+ const moment$k = _moment;
5843
6413
  /*{CA:PROJECT_IMPORTS:START}*/
5844
6414
  /*{CA:PROJECT_IMPORTS:END}*/
5845
6415
  class Transportadora {
@@ -5847,8 +6417,8 @@ class Transportadora {
5847
6417
  /*{CA:CLASS_ATTRIBUTES:END}*/
5848
6418
  static fromDto(transportadoraDto, originEntity) {
5849
6419
  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();
6420
+ model.createdDate = model.createdDate && moment$k(model.createdDate).toDate();
6421
+ model.lastModifiedDate = model.lastModifiedDate && moment$k(model.lastModifiedDate).toDate();
5852
6422
  const lookupSeparator = " - ";
5853
6423
  const displayFields = [
5854
6424
  "codigo", "pessoa.nome", "pessoa.cpfCnpj"
@@ -5862,8 +6432,8 @@ class Transportadora {
5862
6432
  }
5863
6433
  static toDto(transportadora, originEntity) {
5864
6434
  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();
6435
+ dto.createdDate = dto.createdDate && moment$k(dto.createdDate).format();
6436
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$k(dto.lastModifiedDate).format();
5867
6437
  delete dto.label;
5868
6438
  if (originEntity !== "Pessoa" && dto.pessoa)
5869
6439
  dto.pessoa = Pessoa.toDto(dto.pessoa, "Transportadora");
@@ -5875,7 +6445,7 @@ class Transportadora {
5875
6445
  /*{CA:FILE_CONTENTS:START}*/
5876
6446
  /*{CA:FILE_CONTENTS:END}*/
5877
6447
 
5878
- const moment$k = _moment;
6448
+ const moment$l = _moment;
5879
6449
  /*{CA:PROJECT_IMPORTS:START}*/
5880
6450
  /*{CA:PROJECT_IMPORTS:END}*/
5881
6451
  class Devolucao {
@@ -5883,8 +6453,8 @@ class Devolucao {
5883
6453
  /*{CA:CLASS_ATTRIBUTES:END}*/
5884
6454
  static fromDto(devolucaoDto, originEntity) {
5885
6455
  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();
6456
+ model.createdDate = model.createdDate && moment$l(model.createdDate).toDate();
6457
+ model.lastModifiedDate = model.lastModifiedDate && moment$l(model.lastModifiedDate).toDate();
5888
6458
  const lookupSeparator = " - ";
5889
6459
  const displayFields = [
5890
6460
  ''
@@ -5908,8 +6478,8 @@ class Devolucao {
5908
6478
  }
5909
6479
  static toDto(devolucao, originEntity) {
5910
6480
  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();
6481
+ dto.createdDate = dto.createdDate && moment$l(dto.createdDate).format();
6482
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$l(dto.lastModifiedDate).format();
5913
6483
  delete dto.label;
5914
6484
  if (originEntity !== "Pessoa" && dto.fornecedor)
5915
6485
  dto.fornecedor = Pessoa.toDto(dto.fornecedor, "Devolucao");
@@ -6560,7 +7130,7 @@ DevolucaoFormComponent = __decorate([
6560
7130
  ActivatedRoute,
6561
7131
  DevolucaoChegadaVeiculoOverride,
6562
7132
  ConfirmationService,
6563
- AgendaService,
7133
+ AgendaService$1,
6564
7134
  ErpProcessService,
6565
7135
  ErpFormConfigService,
6566
7136
  HasChangeService])
@@ -6647,7 +7217,7 @@ DevolucaoInfoComponent = __decorate([
6647
7217
 
6648
7218
  /*{CA:PACKAGE_IMPORTS:START}*/
6649
7219
  /*{CA:PACKAGE_IMPORTS:END}*/
6650
- const moment$l = _moment;
7220
+ const moment$m = _moment;
6651
7221
  /*{CA:PROJECT_IMPORTS:START}*/
6652
7222
  /*{CA:PROJECT_IMPORTS:END}*/
6653
7223
  class Expedicao {
@@ -6655,8 +7225,8 @@ class Expedicao {
6655
7225
  /*{CA:CLASS_ATTRIBUTES:END}*/
6656
7226
  static fromDto(expedicaoDto, originEntity) {
6657
7227
  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();
7228
+ model.createdDate = model.createdDate && moment$m(model.createdDate).toDate();
7229
+ model.lastModifiedDate = model.lastModifiedDate && moment$m(model.lastModifiedDate).toDate();
6660
7230
  const lookupSeparator = " - ";
6661
7231
  const displayFields = [
6662
7232
  "id",
@@ -6695,8 +7265,8 @@ class Expedicao {
6695
7265
  }
6696
7266
  static toDto(expedicao, originEntity) {
6697
7267
  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();
7268
+ dto.createdDate = dto.createdDate && moment$m(dto.createdDate).format();
7269
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$m(dto.lastModifiedDate).format();
6700
7270
  delete dto.label;
6701
7271
  if (originEntity !== "Pessoa" && dto.clienteFaturamento)
6702
7272
  dto.clienteFaturamento = Pessoa.toDto(dto.clienteFaturamento, "Recebimento");
@@ -6712,7 +7282,7 @@ class Expedicao {
6712
7282
  }
6713
7283
  }
6714
7284
 
6715
- const moment$m = _moment;
7285
+ const moment$n = _moment;
6716
7286
  let ExpedicaoFormComponent = class ExpedicaoFormComponent {
6717
7287
  constructor(expedicaoService, router, route, messageService, formBuilder, translate, hotkeysService, fieldCustomization, focusService, pessoaService, filialService, transportadoraService, pedidoVendaService, pedidoVendaItemService, agendaService, override, confirmationService, erpProcessService, erpFormConfigService, hasChangeService) {
6718
7288
  this.expedicaoService = expedicaoService;
@@ -7236,11 +7806,11 @@ let ExpedicaoFormComponent = class ExpedicaoFormComponent {
7236
7806
  if (typeof value == "number")
7237
7807
  return `${name} eq ${value}`;
7238
7808
  else if (type == FieldType.Date)
7239
- return `${name} eq '${moment$m(value).format("YYYY-MM-DD")}'`;
7809
+ return `${name} eq '${moment$n(value).format("YYYY-MM-DD")}'`;
7240
7810
  else if (type == FieldType.Time)
7241
- return `${name} eq '${moment$m(value).format("HH:mm:ss")}'`;
7811
+ return `${name} eq '${moment$n(value).format("HH:mm:ss")}'`;
7242
7812
  else if (type == FieldType.DateTime)
7243
- return `${name} eq '${moment$m(value).format()}'`;
7813
+ return `${name} eq '${moment$n(value).format()}'`;
7244
7814
  else if (type == FieldType.Enum)
7245
7815
  return `${name} eq '${value}'`;
7246
7816
  else if (type == FieldType.String)
@@ -7286,11 +7856,11 @@ let ExpedicaoFormComponent = class ExpedicaoFormComponent {
7286
7856
  if (typeof value == "number")
7287
7857
  return `${name} eq ${value}`;
7288
7858
  else if (type == FieldType.Date)
7289
- return `${name} eq '${moment$m(value).format("YYYY-MM-DD")}'`;
7859
+ return `${name} eq '${moment$n(value).format("YYYY-MM-DD")}'`;
7290
7860
  else if (type == FieldType.Time)
7291
- return `${name} eq '${moment$m(value).format("HH:mm:ss")}'`;
7861
+ return `${name} eq '${moment$n(value).format("HH:mm:ss")}'`;
7292
7862
  else if (type == FieldType.DateTime)
7293
- return `${name} eq '${moment$m(value).format()}'`;
7863
+ return `${name} eq '${moment$n(value).format()}'`;
7294
7864
  else if (type == FieldType.Enum)
7295
7865
  return `${name} eq '${value}'`;
7296
7866
  else if (type == FieldType.String)
@@ -7394,11 +7964,11 @@ let ExpedicaoFormComponent = class ExpedicaoFormComponent {
7394
7964
  if (typeof value == "number")
7395
7965
  return `${name} eq ${value}`;
7396
7966
  else if (type == FieldType.Date)
7397
- return `${name} eq '${moment$m(value).format("YYYY-MM-DD")}'`;
7967
+ return `${name} eq '${moment$n(value).format("YYYY-MM-DD")}'`;
7398
7968
  else if (type == FieldType.Time)
7399
- return `${name} eq '${moment$m(value).format("HH:mm:ss")}'`;
7969
+ return `${name} eq '${moment$n(value).format("HH:mm:ss")}'`;
7400
7970
  else if (type == FieldType.DateTime)
7401
- return `${name} eq '${moment$m(value).format()}'`;
7971
+ return `${name} eq '${moment$n(value).format()}'`;
7402
7972
  else if (type == FieldType.String)
7403
7973
  return `containing(lower(${name}), lower('${value.replace(/'/g, "\\'")}'))`;
7404
7974
  else
@@ -7574,11 +8144,11 @@ let ExpedicaoFormComponent = class ExpedicaoFormComponent {
7574
8144
  if (typeof value == "number")
7575
8145
  return `${name} eq ${value}`;
7576
8146
  else if (type == FieldType.Date)
7577
- return `${name} eq '${moment$m(value).format("YYYY-MM-DD")}'`;
8147
+ return `${name} eq '${moment$n(value).format("YYYY-MM-DD")}'`;
7578
8148
  else if (type == FieldType.Time)
7579
- return `${name} eq '${moment$m(value).format("HH:mm:ss")}'`;
8149
+ return `${name} eq '${moment$n(value).format("HH:mm:ss")}'`;
7580
8150
  else if (type == FieldType.DateTime)
7581
- return `${name} eq '${moment$m(value).format()}'`;
8151
+ return `${name} eq '${moment$n(value).format()}'`;
7582
8152
  else if (type == FieldType.String)
7583
8153
  return `containing(lower(${name}), lower('${value.replace(/'/g, "\\'")}'))`;
7584
8154
  else
@@ -7615,11 +8185,11 @@ let ExpedicaoFormComponent = class ExpedicaoFormComponent {
7615
8185
  if (typeof value == "number")
7616
8186
  return `${name} eq ${value}`;
7617
8187
  else if (type == FieldType.Date)
7618
- return `${name} eq '${moment$m(value).format("YYYY-MM-DD")}'`;
8188
+ return `${name} eq '${moment$n(value).format("YYYY-MM-DD")}'`;
7619
8189
  else if (type == FieldType.Time)
7620
- return `${name} eq '${moment$m(value).format("HH:mm:ss")}'`;
8190
+ return `${name} eq '${moment$n(value).format("HH:mm:ss")}'`;
7621
8191
  else if (type == FieldType.DateTime)
7622
- return `${name} eq '${moment$m(value).format()}'`;
8192
+ return `${name} eq '${moment$n(value).format()}'`;
7623
8193
  else if (type == FieldType.Enum)
7624
8194
  return `${name} eq '${value}'`;
7625
8195
  else if (type == FieldType.String)
@@ -8102,7 +8672,7 @@ ExpedicaoFormComponent = __decorate([
8102
8672
  TransportadoraService,
8103
8673
  PedidoVendaService,
8104
8674
  PedidoVendaItemService,
8105
- AgendaService,
8675
+ AgendaService$1,
8106
8676
  ExpedicaoChegadaVeiculoOverride,
8107
8677
  ConfirmationService,
8108
8678
  ErpProcessService,
@@ -8382,7 +8952,7 @@ let ProcessoAvulsoChegadaVeiculoOverride = class ProcessoAvulsoChegadaVeiculoOve
8382
8952
  ProcessoAvulsoChegadaVeiculoOverride = __decorate([
8383
8953
  Injectable(),
8384
8954
  __metadata("design:paramtypes", [ChegadaVeiculoOverride,
8385
- AgendaService,
8955
+ AgendaService$1,
8386
8956
  ProcessoAvulsoService])
8387
8957
  ], ProcessoAvulsoChegadaVeiculoOverride);
8388
8958
 
@@ -8662,7 +9232,7 @@ ProcessoAvulsoFormComponent = __decorate([
8662
9232
  ProcessoAvulsoChegadaVeiculoOverride,
8663
9233
  TranslateService,
8664
9234
  ConfirmationService,
8665
- AgendaService,
9235
+ AgendaService$1,
8666
9236
  ErpProcessService,
8667
9237
  ErpFormConfigService,
8668
9238
  HasChangeService])
@@ -8709,7 +9279,7 @@ ProcessoAvulsoInfoComponent = __decorate([
8709
9279
  __metadata("design:paramtypes", [ProcessoAvulsoService])
8710
9280
  ], ProcessoAvulsoInfoComponent);
8711
9281
 
8712
- const moment$n = _moment;
9282
+ const moment$o = _moment;
8713
9283
  /*{CA:PROJECT_IMPORTS:START}*/
8714
9284
  /*{CA:PROJECT_IMPORTS:END}*/
8715
9285
  class Safra {
@@ -8717,10 +9287,10 @@ class Safra {
8717
9287
  /*{CA:CLASS_ATTRIBUTES:END}*/
8718
9288
  static fromDto(safraDto, originEntity) {
8719
9289
  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();
9290
+ model.competenciaInicial = model.competenciaInicial && moment$o(model.competenciaInicial).toDate();
9291
+ model.competenciaFinal = model.competenciaFinal && moment$o(model.competenciaFinal).toDate();
9292
+ model.createdDate = model.createdDate && moment$o(model.createdDate).toDate();
9293
+ model.lastModifiedDate = model.lastModifiedDate && moment$o(model.lastModifiedDate).toDate();
8724
9294
  const lookupSeparator = " - ";
8725
9295
  const displayFields = [
8726
9296
  "codigo",
@@ -8733,10 +9303,10 @@ class Safra {
8733
9303
  }
8734
9304
  static toDto(safra, originEntity) {
8735
9305
  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();
9306
+ dto.competenciaInicial = dto.competenciaInicial && moment$o(dto.competenciaInicial).format("YYYY-MM-DD");
9307
+ dto.competenciaFinal = dto.competenciaFinal && moment$o(dto.competenciaFinal).format("YYYY-MM-DD");
9308
+ dto.createdDate = dto.createdDate && moment$o(dto.createdDate).format();
9309
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$o(dto.lastModifiedDate).format();
8740
9310
  delete dto.label;
8741
9311
  if (originEntity !== "Empresa" && dto.empresa)
8742
9312
  dto.empresa = Empresa.toDto(dto.empresa, "Safra");
@@ -8748,7 +9318,7 @@ class Safra {
8748
9318
 
8749
9319
  /*{CA:PACKAGE_IMPORTS:START}*/
8750
9320
  /*{CA:PACKAGE_IMPORTS:END}*/
8751
- const moment$o = _moment;
9321
+ const moment$p = _moment;
8752
9322
  /*{CA:PROJECT_IMPORTS:START}*/
8753
9323
  /*{CA:PROJECT_IMPORTS:END}*/
8754
9324
  class RecebimentoOrdemCompra {
@@ -8756,8 +9326,8 @@ class RecebimentoOrdemCompra {
8756
9326
  /*{CA:CLASS_ATTRIBUTES:END}*/
8757
9327
  static fromDto(recebimentoOrdemCompraDto, originEntity) {
8758
9328
  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();
9329
+ model.createdDate = model.createdDate && moment$p(model.createdDate).toDate();
9330
+ model.lastModifiedDate = model.lastModifiedDate && moment$p(model.lastModifiedDate).toDate();
8761
9331
  const lookupSeparator = " - ";
8762
9332
  const displayFields = [
8763
9333
  ''
@@ -8786,8 +9356,8 @@ class RecebimentoOrdemCompra {
8786
9356
  }
8787
9357
  static toDto(recebimentoOrdemCompra, originEntity) {
8788
9358
  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();
9359
+ dto.createdDate = dto.createdDate && moment$p(dto.createdDate).format();
9360
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$p(dto.lastModifiedDate).format();
8791
9361
  delete dto.label;
8792
9362
  if (originEntity !== "Agenda" && dto.agenda)
8793
9363
  dto.agenda = Agenda.toDto(dto.agenda, "RecebimentoOrdemCompra");
@@ -8845,7 +9415,7 @@ let RecebimentoOrdemCompraChegadaVeiculoOverride = class RecebimentoOrdemCompraC
8845
9415
  RecebimentoOrdemCompraChegadaVeiculoOverride = __decorate([
8846
9416
  Injectable(),
8847
9417
  __metadata("design:paramtypes", [ChegadaVeiculoOverride,
8848
- AgendaService,
9418
+ AgendaService$1,
8849
9419
  RecebimentoOrdemCompraService])
8850
9420
  ], RecebimentoOrdemCompraChegadaVeiculoOverride);
8851
9421
 
@@ -9944,7 +10514,7 @@ RecebimentoOrdemCompraFormComponent = __decorate([
9944
10514
  NotaValidatorService,
9945
10515
  ConfirmationService,
9946
10516
  DialogService,
9947
- AgendaService,
10517
+ AgendaService$1,
9948
10518
  ErpProcessService,
9949
10519
  ErpFormConfigService,
9950
10520
  VerificaNotafiscal,
@@ -10059,7 +10629,7 @@ RecebimentoOrdemCompraInfoComponent = __decorate([
10059
10629
  __metadata("design:paramtypes", [RecebimentoOrdemCompraService])
10060
10630
  ], RecebimentoOrdemCompraInfoComponent);
10061
10631
 
10062
- const moment$p = _moment;
10632
+ const moment$q = _moment;
10063
10633
  /*{CA:PROJECT_IMPORTS:START}*/
10064
10634
  /*{CA:PROJECT_IMPORTS:END}*/
10065
10635
  class ContratoCompra {
@@ -10067,11 +10637,11 @@ class ContratoCompra {
10067
10637
  /*{CA:CLASS_ATTRIBUTES:END}*/
10068
10638
  static fromDto(contratoCompraDto, originEntity) {
10069
10639
  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();
10640
+ model.dataEmissao = model.dataEmissao && moment$q(model.dataEmissao).toDate();
10641
+ model.dataInicioVigencia = model.dataInicioVigencia && moment$q(model.dataInicioVigencia).toDate();
10642
+ model.dataFimVigencia = model.dataFimVigencia && moment$q(model.dataFimVigencia).toDate();
10643
+ model.createdDate = model.createdDate && moment$q(model.createdDate).toDate();
10644
+ model.lastModifiedDate = model.lastModifiedDate && moment$q(model.lastModifiedDate).toDate();
10075
10645
  model.label = `Número: ${model.numero}, Filial: ${model.filial.codigo}`;
10076
10646
  if (originEntity !== "Empresa" && model.empresa)
10077
10647
  model.empresa = Empresa.fromDto(model.empresa, "ContratoCompra");
@@ -10087,11 +10657,11 @@ class ContratoCompra {
10087
10657
  }
10088
10658
  static toDto(contratoCompra, originEntity) {
10089
10659
  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();
10660
+ dto.dataEmissao = dto.dataEmissao && moment$q(dto.dataEmissao).format("YYYY-MM-DD");
10661
+ dto.dataInicioVigencia = dto.dataInicioVigencia && moment$q(dto.dataInicioVigencia).format("YYYY-MM-DD");
10662
+ dto.dataFimVigencia = dto.dataFimVigencia && moment$q(dto.dataFimVigencia).format("YYYY-MM-DD");
10663
+ dto.createdDate = dto.createdDate && moment$q(dto.createdDate).format();
10664
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$q(dto.lastModifiedDate).format();
10095
10665
  delete dto.label;
10096
10666
  if (originEntity !== "Empresa" && dto.empresa)
10097
10667
  dto.empresa = Empresa.toDto(dto.empresa, "ContratoCompra");
@@ -10111,7 +10681,7 @@ class ContratoCompra {
10111
10681
  /*{CA:FILE_CONTENTS:START}*/
10112
10682
  /*{CA:FILE_CONTENTS:END}*/
10113
10683
 
10114
- const moment$q = _moment;
10684
+ const moment$r = _moment;
10115
10685
  /*{CA:PROJECT_IMPORTS:START}*/
10116
10686
  /*{CA:PROJECT_IMPORTS:END}*/
10117
10687
  class ContratoCompraItem {
@@ -10120,9 +10690,9 @@ class ContratoCompraItem {
10120
10690
  static fromDto(contratoCompraItemDto, originEntity) {
10121
10691
  const model = Object.assign({}, contratoCompraItemDto);
10122
10692
  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();
10693
+ model.dataCompetencia = model.dataCompetencia && moment$r(model.dataCompetencia).toDate();
10694
+ model.createdDate = model.createdDate && moment$r(model.createdDate).toDate();
10695
+ model.lastModifiedDate = model.lastModifiedDate && moment$r(model.lastModifiedDate).toDate();
10126
10696
  model.label = `${model.sequencia} - ${model.sku.descricao} - ${model.sku.codigo}`;
10127
10697
  if (originEntity !== "ContratoCompra" && model.contrato)
10128
10698
  model.contrato = ContratoCompra.fromDto(model.contrato, "ContratoCompraItem");
@@ -10132,9 +10702,9 @@ class ContratoCompraItem {
10132
10702
  }
10133
10703
  static toDto(contratoCompraItem, originEntity) {
10134
10704
  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();
10705
+ dto.dataCompetencia = dto.dataCompetencia && moment$r(dto.dataCompetencia).format("YYYY-MM-DD");
10706
+ dto.createdDate = dto.createdDate && moment$r(dto.createdDate).format();
10707
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$r(dto.lastModifiedDate).format();
10138
10708
  delete dto.label;
10139
10709
  if (originEntity !== "ContratoCompra" && dto.contrato)
10140
10710
  dto.contrato = ContratoCompra.toDto(dto.contrato, "ContratoCompraItem");
@@ -10146,7 +10716,7 @@ class ContratoCompraItem {
10146
10716
  /*{CA:FILE_CONTENTS:START}*/
10147
10717
  /*{CA:FILE_CONTENTS:END}*/
10148
10718
 
10149
- const moment$r = _moment;
10719
+ const moment$s = _moment;
10150
10720
  let ContratoFormComponent = class ContratoFormComponent {
10151
10721
  constructor(dialogRef, dialogConfig, contratoCompraService, contratoCompraItemService, translate, fb, route) {
10152
10722
  this.dialogRef = dialogRef;
@@ -10230,7 +10800,7 @@ let ContratoFormComponent = class ContratoFormComponent {
10230
10800
  if (filial && filial.empresa && filial.empresa.id) {
10231
10801
  filter.empresaId = filial.empresa.id;
10232
10802
  }
10233
- filter.dataEmissao = filter.dataEmissao && moment$r(filter.dataEmissao).format("YYYY-MM-DD");
10803
+ filter.dataEmissao = filter.dataEmissao && moment$s(filter.dataEmissao).format("YYYY-MM-DD");
10234
10804
  const sort = (multiSortMeta || []).length ? { field: multiSortMeta[0].field, order: multiSortMeta[0].order === 1 ? 'Asc' : 'Desc' } : { field: 'numero', order: 'Asc' };
10235
10805
  this.contratoCompraService
10236
10806
  .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 +11022,12 @@ class Transgenia {
10452
11022
  }
10453
11023
  }
10454
11024
 
10455
- const moment$s = _moment;
11025
+ const moment$t = _moment;
10456
11026
  class RecebimentoContrato {
10457
11027
  static fromDto(recebimentoDto, originEntity) {
10458
11028
  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();
11029
+ model.createdDate = model.createdDate && moment$t(model.createdDate).toDate();
11030
+ model.lastModifiedDate = model.lastModifiedDate && moment$t(model.lastModifiedDate).toDate();
10461
11031
  const lookupSeparator = " - ";
10462
11032
  const displayFields = [
10463
11033
  "id",
@@ -10506,8 +11076,8 @@ class RecebimentoContrato {
10506
11076
  }
10507
11077
  static toDto(recebimento, originEntity) {
10508
11078
  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();
11079
+ dto.createdDate = dto.createdDate && moment$t(dto.createdDate).format();
11080
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$t(dto.lastModifiedDate).format();
10511
11081
  delete dto.label;
10512
11082
  if (originEntity !== "Pessoa" && dto.fornecedor)
10513
11083
  dto.fornecedor = Pessoa.toDto(dto.fornecedor, "Recebimento");
@@ -10540,7 +11110,7 @@ var Situacao;
10540
11110
  Situacao["ATIVO"] = "ATIVO";
10541
11111
  })(Situacao || (Situacao = {}));
10542
11112
 
10543
- const moment$t = _moment;
11113
+ const moment$u = _moment;
10544
11114
  let RecebimentoFormComponent = class RecebimentoFormComponent {
10545
11115
  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
11116
  this.recebimentoService = recebimentoService;
@@ -11183,11 +11753,11 @@ let RecebimentoFormComponent = class RecebimentoFormComponent {
11183
11753
  if (typeof value == "number")
11184
11754
  return `${name} eq ${value}`;
11185
11755
  else if (type == FieldType.Date)
11186
- return `${name} eq '${moment$t(value).format("YYYY-MM-DD")}'`;
11756
+ return `${name} eq '${moment$u(value).format("YYYY-MM-DD")}'`;
11187
11757
  else if (type == FieldType.Time)
11188
- return `${name} eq '${moment$t(value).format("HH:mm:ss")}'`;
11758
+ return `${name} eq '${moment$u(value).format("HH:mm:ss")}'`;
11189
11759
  else if (type == FieldType.DateTime)
11190
- return `${name} eq '${moment$t(value).format()}'`;
11760
+ return `${name} eq '${moment$u(value).format()}'`;
11191
11761
  else if (type == FieldType.String)
11192
11762
  return `containing(lower(${name}), lower('${value.replace(/'/g, "\\'")}'))`;
11193
11763
  else
@@ -11221,11 +11791,11 @@ let RecebimentoFormComponent = class RecebimentoFormComponent {
11221
11791
  if (typeof value == "number")
11222
11792
  return `${name} eq ${value}`;
11223
11793
  else if (type == FieldType.Date)
11224
- return `${name} eq '${moment$t(value).format("YYYY-MM-DD")}'`;
11794
+ return `${name} eq '${moment$u(value).format("YYYY-MM-DD")}'`;
11225
11795
  else if (type == FieldType.Time)
11226
- return `${name} eq '${moment$t(value).format("HH:mm:ss")}'`;
11796
+ return `${name} eq '${moment$u(value).format("HH:mm:ss")}'`;
11227
11797
  else if (type == FieldType.DateTime)
11228
- return `${name} eq '${moment$t(value).format()}'`;
11798
+ return `${name} eq '${moment$u(value).format()}'`;
11229
11799
  else if (type == FieldType.Enum)
11230
11800
  return `${name} eq '${value}'`;
11231
11801
  else if (type == FieldType.String)
@@ -11262,11 +11832,11 @@ let RecebimentoFormComponent = class RecebimentoFormComponent {
11262
11832
  if (typeof value == "number")
11263
11833
  return `${name} eq ${value}`;
11264
11834
  else if (type == FieldType.Date)
11265
- return `${name} eq '${moment$t(value).format("YYYY-MM-DD")}'`;
11835
+ return `${name} eq '${moment$u(value).format("YYYY-MM-DD")}'`;
11266
11836
  else if (type == FieldType.Time)
11267
- return `${name} eq '${moment$t(value).format("HH:mm:ss")}'`;
11837
+ return `${name} eq '${moment$u(value).format("HH:mm:ss")}'`;
11268
11838
  else if (type == FieldType.DateTime)
11269
- return `${name} eq '${moment$t(value).format()}'`;
11839
+ return `${name} eq '${moment$u(value).format()}'`;
11270
11840
  else if (type == FieldType.String)
11271
11841
  return `containing(lower(${name}), lower('${value.replace(/'/g, "\\'")}'))`;
11272
11842
  else
@@ -11301,11 +11871,11 @@ let RecebimentoFormComponent = class RecebimentoFormComponent {
11301
11871
  if (typeof value == "number")
11302
11872
  return `${name} eq ${value}`;
11303
11873
  else if (type == FieldType.Date)
11304
- return `${name} eq '${moment$t(value).format("YYYY-MM-DD")}'`;
11874
+ return `${name} eq '${moment$u(value).format("YYYY-MM-DD")}'`;
11305
11875
  else if (type == FieldType.Time)
11306
- return `${name} eq '${moment$t(value).format("HH:mm:ss")}'`;
11876
+ return `${name} eq '${moment$u(value).format("HH:mm:ss")}'`;
11307
11877
  else if (type == FieldType.DateTime)
11308
- return `${name} eq '${moment$t(value).format()}'`;
11878
+ return `${name} eq '${moment$u(value).format()}'`;
11309
11879
  else if (type == FieldType.Enum)
11310
11880
  return `${name} eq '${value}'`;
11311
11881
  else if (type == FieldType.String)
@@ -11390,11 +11960,11 @@ let RecebimentoFormComponent = class RecebimentoFormComponent {
11390
11960
  if (typeof value == "number")
11391
11961
  return `${name} eq ${value}`;
11392
11962
  else if (type == FieldType.Date)
11393
- return `${name} eq '${moment$t(value).format("YYYY-MM-DD")}'`;
11963
+ return `${name} eq '${moment$u(value).format("YYYY-MM-DD")}'`;
11394
11964
  else if (type == FieldType.Time)
11395
- return `${name} eq '${moment$t(value).format("HH:mm:ss")}'`;
11965
+ return `${name} eq '${moment$u(value).format("HH:mm:ss")}'`;
11396
11966
  else if (type == FieldType.DateTime)
11397
- return `${name} eq '${moment$t(value).format()}'`;
11967
+ return `${name} eq '${moment$u(value).format()}'`;
11398
11968
  else if (type == FieldType.String)
11399
11969
  return `containing(lower(${name}), lower('${value.replace(/'/g, "\\'")}'))`;
11400
11970
  else
@@ -11427,11 +11997,11 @@ let RecebimentoFormComponent = class RecebimentoFormComponent {
11427
11997
  if (typeof value == "number")
11428
11998
  return `${name} eq ${value}`;
11429
11999
  else if (type == FieldType.Date)
11430
- return `${name} eq '${moment$t(value).format("YYYY-MM-DD")}'`;
12000
+ return `${name} eq '${moment$u(value).format("YYYY-MM-DD")}'`;
11431
12001
  else if (type == FieldType.Time)
11432
- return `${name} eq '${moment$t(value).format("HH:mm:ss")}'`;
12002
+ return `${name} eq '${moment$u(value).format("HH:mm:ss")}'`;
11433
12003
  else if (type == FieldType.DateTime)
11434
- return `${name} eq '${moment$t(value).format()}'`;
12004
+ return `${name} eq '${moment$u(value).format()}'`;
11435
12005
  else if (type == FieldType.Enum)
11436
12006
  return `${name} eq '${value}'`;
11437
12007
  else if (type == FieldType.String)
@@ -11474,11 +12044,11 @@ let RecebimentoFormComponent = class RecebimentoFormComponent {
11474
12044
  if (typeof value == "number")
11475
12045
  return `${name} eq ${value}`;
11476
12046
  else if (type == FieldType.Date)
11477
- return `${name} eq '${moment$t(value).format("YYYY-MM-DD")}'`;
12047
+ return `${name} eq '${moment$u(value).format("YYYY-MM-DD")}'`;
11478
12048
  else if (type == FieldType.Time)
11479
- return `${name} eq '${moment$t(value).format("HH:mm:ss")}'`;
12049
+ return `${name} eq '${moment$u(value).format("HH:mm:ss")}'`;
11480
12050
  else if (type == FieldType.DateTime)
11481
- return `${name} eq '${moment$t(value).format()}'`;
12051
+ return `${name} eq '${moment$u(value).format()}'`;
11482
12052
  else if (type == FieldType.Enum)
11483
12053
  return `${name} eq '${value}'`;
11484
12054
  else if (type == FieldType.String)
@@ -12213,7 +12783,7 @@ RecebimentoFormComponent = __decorate([
12213
12783
  NotaValidatorService,
12214
12784
  TransgeniaService,
12215
12785
  DialogService,
12216
- AgendaService,
12786
+ AgendaService$1,
12217
12787
  ErpProcessService,
12218
12788
  ErpFormConfigService,
12219
12789
  VerificaNotafiscal,
@@ -12444,5 +13014,5 @@ DockModule = __decorate([
12444
13014
  })
12445
13015
  ], DockModule);
12446
13016
 
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 };
13017
+ 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
13018
  //# sourceMappingURL=seniorsistemas-yms-integration.js.map