visorus-erp-core 17.0.2 → 17.2.0

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.
@@ -6,77 +6,77 @@ import * as i4 from '@angular/common';
6
6
  import { CommonModule } from '@angular/common';
7
7
  import * as i3 from 'primeng/api';
8
8
  import { ConfirmationService } from 'primeng/api';
9
- import * as i19 from 'primeng/treetable';
9
+ import * as i16 from 'primeng/treetable';
10
10
  import { TreeTableModule } from 'primeng/treetable';
11
- import * as i21 from 'primeng/button';
11
+ import * as i18 from 'primeng/button';
12
12
  import { ButtonModule } from 'primeng/button';
13
- import * as i22 from 'primeng/inputtext';
13
+ import * as i19 from 'primeng/inputtext';
14
14
  import { InputTextModule } from 'primeng/inputtext';
15
- import * as i10 from '@angular/forms';
15
+ import * as i4$1 from '@angular/forms';
16
16
  import { FormsModule } from '@angular/forms';
17
- import * as i33 from 'primeng/dialog';
17
+ import * as i30 from 'primeng/dialog';
18
18
  import { DialogModule } from 'primeng/dialog';
19
19
  import { Subject, throwError, of } from 'rxjs';
20
20
  import { catchError, tap, debounceTime } from 'rxjs/operators';
21
21
  import * as i1$1 from 'ngx-toastr';
22
22
  import { ToastrModule } from 'ngx-toastr';
23
- import * as i3$1 from '@ngx-translate/core';
23
+ import * as i2 from '@ngx-translate/core';
24
24
  import { TranslateModule, TranslateLoader } from '@ngx-translate/core';
25
- import * as i3$2 from '@angular/platform-browser';
26
- import * as i18 from 'primeng/table';
25
+ import * as i3$1 from '@angular/platform-browser';
26
+ import * as i15 from 'primeng/table';
27
27
  import { TableModule } from 'primeng/table';
28
- import * as i27 from 'primeng/paginator';
28
+ import * as i24 from 'primeng/paginator';
29
29
  import { PaginatorModule } from 'primeng/paginator';
30
- import * as i23 from 'primeng/dropdown';
30
+ import * as i20 from 'primeng/dropdown';
31
31
  import { DropdownModule } from 'primeng/dropdown';
32
- import * as i24 from 'primeng/inputmask';
32
+ import * as i21 from 'primeng/inputmask';
33
33
  import { InputMaskModule } from 'primeng/inputmask';
34
- import * as i25 from 'primeng/messages';
34
+ import * as i22 from 'primeng/messages';
35
35
  import { MessagesModule } from 'primeng/messages';
36
- import * as i26 from 'primeng/message';
36
+ import * as i23 from 'primeng/message';
37
37
  import { MessageModule } from 'primeng/message';
38
- import * as i28 from 'primeng/confirmdialog';
38
+ import * as i25 from 'primeng/confirmdialog';
39
39
  import { ConfirmDialogModule } from 'primeng/confirmdialog';
40
- import * as i29 from 'primeng/progressbar';
40
+ import * as i26 from 'primeng/progressbar';
41
41
  import { ProgressBarModule } from 'primeng/progressbar';
42
- import * as i30 from 'primeng/tristatecheckbox';
42
+ import * as i27 from 'primeng/tristatecheckbox';
43
43
  import { TriStateCheckboxModule } from 'primeng/tristatecheckbox';
44
- import * as i31 from 'primeng/keyfilter';
44
+ import * as i28 from 'primeng/keyfilter';
45
45
  import { KeyFilterModule } from 'primeng/keyfilter';
46
- import * as i32 from 'primeng/inputswitch';
46
+ import * as i29 from 'primeng/inputswitch';
47
47
  import { InputSwitchModule } from 'primeng/inputswitch';
48
- import * as i34 from 'primeng/tabview';
48
+ import * as i31 from 'primeng/tabview';
49
49
  import { TabViewModule } from 'primeng/tabview';
50
- import * as i20 from 'primeng/calendar';
50
+ import * as i17 from 'primeng/calendar';
51
51
  import { CalendarModule } from 'primeng/calendar';
52
- import * as i35 from 'primeng/panel';
52
+ import * as i32 from 'primeng/panel';
53
53
  import { PanelModule } from 'primeng/panel';
54
- import * as i17 from 'primeng/autocomplete';
54
+ import * as i14 from 'primeng/autocomplete';
55
55
  import { AutoCompleteModule } from 'primeng/autocomplete';
56
- import * as i38 from 'primeng/fieldset';
56
+ import * as i35 from 'primeng/fieldset';
57
57
  import { FieldsetModule } from 'primeng/fieldset';
58
- import * as i16 from 'primeng/checkbox';
58
+ import * as i13 from 'primeng/checkbox';
59
59
  import { CheckboxModule } from 'primeng/checkbox';
60
- import * as i39 from 'primeng/tree';
60
+ import * as i36 from 'primeng/tree';
61
61
  import { TreeModule } from 'primeng/tree';
62
- import * as i15 from 'primeng/radiobutton';
62
+ import * as i12 from 'primeng/radiobutton';
63
63
  import { RadioButtonModule } from 'primeng/radiobutton';
64
- import * as i40 from 'primeng/tabmenu';
64
+ import * as i37 from 'primeng/tabmenu';
65
65
  import { TabMenuModule } from 'primeng/tabmenu';
66
- import * as i14 from 'primeng/overlaypanel';
66
+ import * as i11 from 'primeng/overlaypanel';
67
67
  import { OverlayPanelModule } from 'primeng/overlaypanel';
68
- import * as i13 from 'primeng/tooltip';
68
+ import * as i10 from 'primeng/tooltip';
69
69
  import { TooltipModule } from 'primeng/tooltip';
70
- import * as i12 from 'primeng/card';
70
+ import * as i9 from 'primeng/card';
71
71
  import { CardModule } from 'primeng/card';
72
- import * as i41 from 'primeng/menubar';
72
+ import * as i38 from 'primeng/menubar';
73
73
  import { MenubarModule } from 'primeng/menubar';
74
- import * as i37 from 'primeng/splitbutton';
74
+ import * as i34 from 'primeng/splitbutton';
75
75
  import { SplitButtonModule } from 'primeng/splitbutton';
76
- import * as i36 from 'primeng/toolbar';
76
+ import * as i33 from 'primeng/toolbar';
77
77
  import { ToolbarModule } from 'primeng/toolbar';
78
78
  import { TranslateHttpLoader } from '@ngx-translate/http-loader';
79
- import * as i3$3 from '@angular/router';
79
+ import * as i3$2 from '@angular/router';
80
80
 
81
81
  class GlobalService {
82
82
  constructor(http) {
@@ -194,7 +194,7 @@ class CuentaContableService extends CrudService {
194
194
  }]
195
195
  }], () => [{ type: i1.HttpClient }], null); })();
196
196
 
197
- const _c0$7 = () => ({ width: "100%" });
197
+ const _c0$6 = () => ({ width: "100%" });
198
198
  function CclistaComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
199
199
  i0.ɵɵelementStart(0, "tr")(1, "th", 5);
200
200
  i0.ɵɵtext(2, "Cuenta contable");
@@ -430,9 +430,9 @@ class CclistaComponent {
430
430
  } if (rf & 2) {
431
431
  i0.ɵɵtwoWayProperty("ngModel", ctx.query);
432
432
  i0.ɵɵadvance(2);
433
- i0.ɵɵstyleMap(i0.ɵɵpureFunction0(7, _c0$7));
433
+ i0.ɵɵstyleMap(i0.ɵɵpureFunction0(7, _c0$6));
434
434
  i0.ɵɵproperty("value", ctx.cuentasContables ? ctx.cuentasContables : ctx.tempAccounts)("scrollable", true)("scrollHeight", ctx.maxH + "px")("resizableColumns", true);
435
- } }, dependencies: [i4.NgIf, i3.PrimeTemplate, i19.TreeTable, i19.TreeTableToggler, i21.ButtonDirective, i22.InputText, i10.DefaultValueAccessor, i10.NgControlStatus, i10.NgModel] }); }
435
+ } }, dependencies: [i4.NgIf, i3.PrimeTemplate, i16.TreeTable, i16.TreeTableToggler, i18.ButtonDirective, i19.InputText, i4$1.DefaultValueAccessor, i4$1.NgControlStatus, i4$1.NgModel] }); }
436
436
  }
437
437
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CclistaComponent, [{
438
438
  type: Component,
@@ -446,8 +446,8 @@ class CclistaComponent {
446
446
  }] }); })();
447
447
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CclistaComponent, { className: "CclistaComponent" }); })();
448
448
 
449
- const _c0$6 = ["dialog"];
450
- const _c1$3 = a0 => ({ "width": a0, "min-width": "200px" });
449
+ const _c0$5 = ["dialog"];
450
+ const _c1$4 = a0 => ({ "width": a0, "min-width": "200px" });
451
451
  const _c2 = a0 => ({ "height": a0 });
452
452
  class CcseleccionDialogComponent {
453
453
  constructor() {
@@ -471,7 +471,7 @@ class CcseleccionDialogComponent {
471
471
  }
472
472
  /** @nocollapse */ static { this.ɵfac = function CcseleccionDialogComponent_Factory(t) { return new (t || CcseleccionDialogComponent)(); }; }
473
473
  /** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: CcseleccionDialogComponent, selectors: [["lib-ccseleccion-dialog"]], viewQuery: function CcseleccionDialogComponent_Query(rf, ctx) { if (rf & 1) {
474
- i0.ɵɵviewQuery(_c0$6, 7);
474
+ i0.ɵɵviewQuery(_c0$5, 7);
475
475
  } if (rf & 2) {
476
476
  let _t;
477
477
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.dialog = _t.first);
@@ -483,14 +483,14 @@ class CcseleccionDialogComponent {
483
483
  i0.ɵɵlistener("evSelectedAccount", function CcseleccionDialogComponent_Template_lib_cclista_evSelectedAccount_2_listener($event) { return ctx.getAccount($event); });
484
484
  i0.ɵɵelementEnd()()();
485
485
  } if (rf & 2) {
486
- i0.ɵɵstyleMap(i0.ɵɵpureFunction1(13, _c1$3, ctx.size + "px"));
486
+ i0.ɵɵstyleMap(i0.ɵɵpureFunction1(13, _c1$4, ctx.size + "px"));
487
487
  i0.ɵɵtwoWayProperty("visible", ctx.displayShowCuentas);
488
488
  i0.ɵɵproperty("modal", true)("minY", 70)("baseZIndex", 10000)("blockScroll", true)("draggable", false)("blockScroll", true)("maximizable", true);
489
489
  i0.ɵɵadvance();
490
490
  i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(15, _c2, ctx.maxH + 200 + "px"));
491
491
  i0.ɵɵadvance();
492
492
  i0.ɵɵproperty("isShared", true)("typeAccount", ctx.tipoCuenta);
493
- } }, dependencies: [i4.NgStyle, i33.Dialog, CclistaComponent] }); }
493
+ } }, dependencies: [i4.NgStyle, i30.Dialog, CclistaComponent] }); }
494
494
  }
495
495
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CcseleccionDialogComponent, [{
496
496
  type: Component,
@@ -721,7 +721,7 @@ class LoadingComponent {
721
721
  i0.ɵɵpropertyInterpolate("src", ctx.logo_loading, i0.ɵɵsanitizeUrl);
722
722
  i0.ɵɵadvance(2);
723
723
  i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(13, 2, "cargando"), "...");
724
- } }, dependencies: [i3$1.TranslatePipe], styles: [".loader[_ngcontent-%COMP%]{width:130px;height:170px;position:relative}.loader[_ngcontent-%COMP%]:before, .loader[_ngcontent-%COMP%]:after{content:\"\";width:0;height:0;position:absolute;bottom:30px;left:15px;z-index:1;transform:scale(0);transition:all .2s ease}.loader[_ngcontent-%COMP%] .txt[_ngcontent-%COMP%]{width:120%;text-align:center;position:absolute;bottom:-30px;left:-7%;font-family:Abel,sans-serif;font-size:12px;letter-spacing:2px;color:#fff}.loader[_ngcontent-%COMP%] .code[_ngcontent-%COMP%]{position:absolute;z-index:99;bottom:-3px;-webkit-animation-name:_ngcontent-%COMP%_spaceboots;-webkit-animation-duration:.8s;-webkit-transform-origin:50% 50%;-webkit-animation-iteration-count:infinite;-webkit-animation-timing-function:linear}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]{width:100%;height:140px;display:block;color:#fff;position:absolute;left:28px;z-index:2;overflow:hidden}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:before, .loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:after{display:inline-block;font: 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;position:absolute;top:0;left:0;opacity:0}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(1):before{font-size:20px;content:\"\\f13b\";animation:_ngcontent-%COMP%_a 1.1s linear infinite}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(1):after{content:\"\\f13c\";animation:_ngcontent-%COMP%_b 1.3s linear infinite}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(2):before{content:\"\\f121\";font-size:25px;animation:_ngcontent-%COMP%_c .9s linear infinite}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(2):after{content:\"\\f19a\";animation:_ngcontent-%COMP%_d .7s linear infinite}.loader.amit[_ngcontent-%COMP%]:before, .loader.amit[_ngcontent-%COMP%]:after{transform:scale(1)}@keyframes _ngcontent-%COMP%_a{0%{transform:translate(30px) rotate(30deg);opacity:0}to{transform:translate(30px,150px) rotate(-50deg);opacity:1}}@keyframes _ngcontent-%COMP%_b{0%{transform:translate(50px) rotate(-40deg);opacity:0}to{transform:translate(40px,150px) rotate(80deg);opacity:1}}@keyframes _ngcontent-%COMP%_c{0%{transform:translate(70px) rotate(10deg);opacity:0}to{transform:translate(60px,150px) rotate(70deg);opacity:1}}@keyframes _ngcontent-%COMP%_d{0%{transform:translate(30px) rotate(-50deg);opacity:0}to{transform:translate(45px,150px) rotate(30deg);opacity:1}}@-webkit-keyframes _ngcontent-%COMP%_spaceboots{0%{-webkit-transform:translate(2px,1px) rotate(0deg)}10%{-webkit-transform:translate(-1px,-2px) rotate(-1deg)}20%{-webkit-transform:translate(-3px,0px) rotate(1deg)}30%{-webkit-transform:translate(0px,2px) rotate(0deg)}40%{-webkit-transform:translate(1px,-1px) rotate(1deg)}50%{-webkit-transform:translate(-1px,2px) rotate(-1deg)}60%{-webkit-transform:translate(-3px,1px) rotate(0deg)}70%{-webkit-transform:translate(2px,1px) rotate(-1deg)}80%{-webkit-transform:translate(-1px,-1px) rotate(1deg)}90%{-webkit-transform:translate(2px,2px) rotate(0deg)}to{-webkit-transform:translate(1px,-2px) rotate(-1deg)}}.modal[_ngcontent-%COMP%]{z-index:2050!important}.modal-content[_ngcontent-%COMP%]{border:0px!important;background-color:#fff0!important;height:350px!important}.modal-body[_ngcontent-%COMP%]{margin-left:-7%!important}"] }); }
724
+ } }, dependencies: [i2.TranslatePipe], styles: [".loader[_ngcontent-%COMP%]{width:130px;height:170px;position:relative}.loader[_ngcontent-%COMP%]:before, .loader[_ngcontent-%COMP%]:after{content:\"\";width:0;height:0;position:absolute;bottom:30px;left:15px;z-index:1;transform:scale(0);transition:all .2s ease}.loader[_ngcontent-%COMP%] .txt[_ngcontent-%COMP%]{width:120%;text-align:center;position:absolute;bottom:-30px;left:-7%;font-family:Abel,sans-serif;font-size:12px;letter-spacing:2px;color:#fff}.loader[_ngcontent-%COMP%] .code[_ngcontent-%COMP%]{position:absolute;z-index:99;bottom:-3px;-webkit-animation-name:_ngcontent-%COMP%_spaceboots;-webkit-animation-duration:.8s;-webkit-transform-origin:50% 50%;-webkit-animation-iteration-count:infinite;-webkit-animation-timing-function:linear}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]{width:100%;height:140px;display:block;color:#fff;position:absolute;left:28px;z-index:2;overflow:hidden}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:before, .loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:after{display:inline-block;font: 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;position:absolute;top:0;left:0;opacity:0}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(1):before{font-size:20px;content:\"\\f13b\";animation:_ngcontent-%COMP%_a 1.1s linear infinite}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(1):after{content:\"\\f13c\";animation:_ngcontent-%COMP%_b 1.3s linear infinite}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(2):before{content:\"\\f121\";font-size:25px;animation:_ngcontent-%COMP%_c .9s linear infinite}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(2):after{content:\"\\f19a\";animation:_ngcontent-%COMP%_d .7s linear infinite}.loader.amit[_ngcontent-%COMP%]:before, .loader.amit[_ngcontent-%COMP%]:after{transform:scale(1)}@keyframes _ngcontent-%COMP%_a{0%{transform:translate(30px) rotate(30deg);opacity:0}to{transform:translate(30px,150px) rotate(-50deg);opacity:1}}@keyframes _ngcontent-%COMP%_b{0%{transform:translate(50px) rotate(-40deg);opacity:0}to{transform:translate(40px,150px) rotate(80deg);opacity:1}}@keyframes _ngcontent-%COMP%_c{0%{transform:translate(70px) rotate(10deg);opacity:0}to{transform:translate(60px,150px) rotate(70deg);opacity:1}}@keyframes _ngcontent-%COMP%_d{0%{transform:translate(30px) rotate(-50deg);opacity:0}to{transform:translate(45px,150px) rotate(30deg);opacity:1}}@-webkit-keyframes _ngcontent-%COMP%_spaceboots{0%{-webkit-transform:translate(2px,1px) rotate(0deg)}10%{-webkit-transform:translate(-1px,-2px) rotate(-1deg)}20%{-webkit-transform:translate(-3px,0px) rotate(1deg)}30%{-webkit-transform:translate(0px,2px) rotate(0deg)}40%{-webkit-transform:translate(1px,-1px) rotate(1deg)}50%{-webkit-transform:translate(-1px,2px) rotate(-1deg)}60%{-webkit-transform:translate(-3px,1px) rotate(0deg)}70%{-webkit-transform:translate(2px,1px) rotate(-1deg)}80%{-webkit-transform:translate(-1px,-1px) rotate(1deg)}90%{-webkit-transform:translate(2px,2px) rotate(0deg)}to{-webkit-transform:translate(1px,-2px) rotate(-1deg)}}.modal[_ngcontent-%COMP%]{z-index:2050!important}.modal-content[_ngcontent-%COMP%]{border:0px!important;background-color:#fff0!important;height:350px!important}.modal-body[_ngcontent-%COMP%]{margin-left:-7%!important}"] }); }
725
725
  }
726
726
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LoadingComponent, [{
727
727
  type: Component,
@@ -848,7 +848,7 @@ class FileService {
848
848
  base64ToFileDowload(base64, type, name) {
849
849
  this.blobToDowload(this.base64ToBlob(base64, type), type, name);
850
850
  }
851
- /** @nocollapse */ static { this.ɵfac = function FileService_Factory(t) { return new (t || FileService)(i0.ɵɵinject(i1$1.ToastrService), i0.ɵɵinject(i3$1.TranslateService)); }; }
851
+ /** @nocollapse */ static { this.ɵfac = function FileService_Factory(t) { return new (t || FileService)(i0.ɵɵinject(i1$1.ToastrService), i0.ɵɵinject(i2.TranslateService)); }; }
852
852
  /** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: FileService, factory: FileService.ɵfac, providedIn: 'root' }); }
853
853
  }
854
854
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FileService, [{
@@ -856,10 +856,10 @@ class FileService {
856
856
  args: [{
857
857
  providedIn: 'root'
858
858
  }]
859
- }], () => [{ type: i1$1.ToastrService }, { type: i3$1.TranslateService }], null); })();
859
+ }], () => [{ type: i1$1.ToastrService }, { type: i2.TranslateService }], null); })();
860
860
 
861
- const _c0$5 = a0 => ({ "width": a0, "min-width": "200px" });
862
- const _c1$2 = () => ({ "overflow": "visible" });
861
+ const _c0$4 = a0 => ({ "width": a0, "min-width": "200px" });
862
+ const _c1$3 = () => ({ "overflow": "visible" });
863
863
  function PdfModalComponent_div_1_Template(rf, ctx) { if (rf & 1) {
864
864
  i0.ɵɵelementStart(0, "div", 2);
865
865
  i0.ɵɵelement(1, "iframe", 3);
@@ -932,24 +932,24 @@ class PdfModalComponent {
932
932
  //iframe.focus();
933
933
  // iframe.contentWindow.print();
934
934
  }
935
- /** @nocollapse */ static { this.ɵfac = function PdfModalComponent_Factory(t) { return new (t || PdfModalComponent)(i0.ɵɵdirectiveInject(PdfModalService), i0.ɵɵdirectiveInject(FileService), i0.ɵɵdirectiveInject(i3$2.DomSanitizer)); }; }
935
+ /** @nocollapse */ static { this.ɵfac = function PdfModalComponent_Factory(t) { return new (t || PdfModalComponent)(i0.ɵɵdirectiveInject(PdfModalService), i0.ɵɵdirectiveInject(FileService), i0.ɵɵdirectiveInject(i3$1.DomSanitizer)); }; }
936
936
  /** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: PdfModalComponent, selectors: [["pdf-modal"]], decls: 2, vars: 15, consts: [[3, "visibleChange", "visible", "modal", "minY", "baseZIndex", "blockScroll", "maximizable", "breakpoint", "contentStyle"], ["style", "min-height: 90vh;", 4, "ngIf"], [2, "min-height", "90vh"], [2, "width", "100%", "height", "90vh", 3, "src"]], template: function PdfModalComponent_Template(rf, ctx) { if (rf & 1) {
937
937
  i0.ɵɵelementStart(0, "p-dialog", 0);
938
938
  i0.ɵɵtwoWayListener("visibleChange", function PdfModalComponent_Template_p_dialog_visibleChange_0_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.display, $event) || (ctx.display = $event); return $event; });
939
939
  i0.ɵɵtemplate(1, PdfModalComponent_div_1_Template, 2, 1, "div", 1);
940
940
  i0.ɵɵelementEnd();
941
941
  } if (rf & 2) {
942
- i0.ɵɵstyleMap(i0.ɵɵpureFunction1(12, _c0$5, ctx.size + "px"));
942
+ i0.ɵɵstyleMap(i0.ɵɵpureFunction1(12, _c0$4, ctx.size + "px"));
943
943
  i0.ɵɵtwoWayProperty("visible", ctx.display);
944
- i0.ɵɵproperty("modal", true)("minY", 70)("baseZIndex", 10000)("blockScroll", true)("blockScroll", true)("maximizable", true)("breakpoint", 840)("contentStyle", i0.ɵɵpureFunction0(14, _c1$2));
944
+ i0.ɵɵproperty("modal", true)("minY", 70)("baseZIndex", 10000)("blockScroll", true)("blockScroll", true)("maximizable", true)("breakpoint", 840)("contentStyle", i0.ɵɵpureFunction0(14, _c1$3));
945
945
  i0.ɵɵadvance();
946
946
  i0.ɵɵproperty("ngIf", ctx.pdfBase64);
947
- } }, dependencies: [i4.NgIf, i33.Dialog], styles: [".down[_ngcontent-%COMP%]{display:block}"] }); }
947
+ } }, dependencies: [i4.NgIf, i30.Dialog], styles: [".down[_ngcontent-%COMP%]{display:block}"] }); }
948
948
  }
949
949
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PdfModalComponent, [{
950
950
  type: Component,
951
951
  args: [{ selector: 'pdf-modal', template: "<p-dialog [(visible)]=\"display\" [modal]=\"true\" [style]=\"{'width': size+'px', 'min-width': '200px'}\" [minY]=\"70\" [baseZIndex]=\"10000\" [blockScroll]=\"true\" \n [blockScroll]=\"true\" [maximizable]=\"true\"\n [breakpoint]=\"840\" [contentStyle]=\"{'overflow':'visible'}\">\n <div *ngIf=\"pdfBase64\" style=\"min-height: 90vh;\">\n <iframe style=\"width: 100%; height: 90vh;\" [src]=\"domSanitizer.bypassSecurityTrustResourceUrl('data:application/pdf;base64,'+pdfBase64)\"></iframe>\n </div>\n</p-dialog>\n\n", styles: [".down{display:block}\n"] }]
952
- }], () => [{ type: PdfModalService }, { type: FileService }, { type: i3$2.DomSanitizer }], null); })();
952
+ }], () => [{ type: PdfModalService }, { type: FileService }, { type: i3$1.DomSanitizer }], null); })();
953
953
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PdfModalComponent, { className: "PdfModalComponent" }); })();
954
954
 
955
955
  class Usuario {
@@ -1176,70 +1176,61 @@ class AuthService {
1176
1176
  type: Output
1177
1177
  }] }); })();
1178
1178
 
1179
- function LoginModalComponent_div_6_label_4_Template(rf, ctx) { if (rf & 1) {
1180
- i0.ɵɵelementStart(0, "label", 19);
1181
- i0.ɵɵtext(1);
1182
- i0.ɵɵpipe(2, "translate");
1179
+ const _c0$3 = () => ({ width: "50vw" });
1180
+ const _c1$2 = () => ({ "960px": "75vw", "640px": "90vw" });
1181
+ function LoginModalComponent_div_3_label_4_Template(rf, ctx) { if (rf & 1) {
1182
+ i0.ɵɵelementStart(0, "label", 16);
1183
+ i0.ɵɵtext(1, "Usuario o contrase\u00F1a incorrectos");
1183
1184
  i0.ɵɵelementEnd();
1184
- } if (rf & 2) {
1185
- i0.ɵɵadvance();
1186
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "Usuario.errorLogin"));
1187
1185
  } }
1188
- function LoginModalComponent_div_6_Template(rf, ctx) { if (rf & 1) {
1186
+ function LoginModalComponent_div_3_Template(rf, ctx) { if (rf & 1) {
1189
1187
  const _r1 = i0.ɵɵgetCurrentView();
1190
- i0.ɵɵelementStart(0, "div", 9)(1, "div", 10)(2, "form", 11, 0);
1191
- i0.ɵɵlistener("ngSubmit", function LoginModalComponent_div_6_Template_form_ngSubmit_2_listener() { i0.ɵɵrestoreView(_r1); const datoForm_r2 = i0.ɵɵreference(3); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.entrar(datoForm_r2)); });
1192
- i0.ɵɵtemplate(4, LoginModalComponent_div_6_label_4_Template, 3, 3, "label", 12);
1193
- i0.ɵɵelementStart(5, "div", 13)(6, "label", 14);
1194
- i0.ɵɵtext(7);
1195
- i0.ɵɵpipe(8, "translate");
1196
- i0.ɵɵelementEnd();
1197
- i0.ɵɵelementStart(9, "input", 15, 1);
1198
- i0.ɵɵpipe(11, "translate");
1199
- i0.ɵɵtwoWayListener("ngModelChange", function LoginModalComponent_div_6_Template_input_ngModelChange_9_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r2 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r2.user.username, $event) || (ctx_r2.user.username = $event); return i0.ɵɵresetView($event); });
1188
+ i0.ɵɵelementStart(0, "div", 6)(1, "div", 7)(2, "form", 8, 0);
1189
+ i0.ɵɵlistener("ngSubmit", function LoginModalComponent_div_3_Template_form_ngSubmit_2_listener() { i0.ɵɵrestoreView(_r1); const datoForm_r2 = i0.ɵɵreference(3); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.entrar(datoForm_r2)); });
1190
+ i0.ɵɵtemplate(4, LoginModalComponent_div_3_label_4_Template, 2, 0, "label", 9);
1191
+ i0.ɵɵelementStart(5, "div", 10)(6, "label", 11);
1192
+ i0.ɵɵtext(7, "Usuario");
1193
+ i0.ɵɵelementEnd();
1194
+ i0.ɵɵelementStart(8, "input", 12, 1);
1195
+ i0.ɵɵtwoWayListener("ngModelChange", function LoginModalComponent_div_3_Template_input_ngModelChange_8_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r2 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r2.user.username, $event) || (ctx_r2.user.username = $event); return i0.ɵɵresetView($event); });
1200
1196
  i0.ɵɵelementEnd()();
1201
- i0.ɵɵelementStart(12, "div", 13)(13, "label", 16);
1202
- i0.ɵɵtext(14);
1203
- i0.ɵɵpipe(15, "translate");
1197
+ i0.ɵɵelementStart(10, "div", 10)(11, "label", 13);
1198
+ i0.ɵɵtext(12, "Contrase\u00F1a");
1204
1199
  i0.ɵɵelementEnd();
1205
- i0.ɵɵelementStart(16, "input", 17);
1206
- i0.ɵɵpipe(17, "translate");
1207
- i0.ɵɵtwoWayListener("ngModelChange", function LoginModalComponent_div_6_Template_input_ngModelChange_16_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r2 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r2.user.password, $event) || (ctx_r2.user.password = $event); return i0.ɵɵresetView($event); });
1200
+ i0.ɵɵelementStart(13, "input", 14);
1201
+ i0.ɵɵtwoWayListener("ngModelChange", function LoginModalComponent_div_3_Template_input_ngModelChange_13_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r2 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r2.user.password, $event) || (ctx_r2.user.password = $event); return i0.ɵɵresetView($event); });
1208
1202
  i0.ɵɵelementEnd()();
1209
- i0.ɵɵelementStart(18, "button", 18);
1210
- i0.ɵɵtext(19, "entrar");
1203
+ i0.ɵɵelementStart(14, "button", 15);
1204
+ i0.ɵɵtext(15, "Entrar");
1211
1205
  i0.ɵɵelementEnd()()()();
1212
1206
  } if (rf & 2) {
1213
1207
  const ctx_r2 = i0.ɵɵnextContext();
1214
1208
  i0.ɵɵadvance(4);
1215
1209
  i0.ɵɵproperty("ngIf", ctx_r2.error);
1216
- i0.ɵɵadvance(3);
1217
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(8, 7, "Usuario.username"));
1218
- i0.ɵɵadvance(2);
1219
- i0.ɵɵpropertyInterpolate("placeholder", i0.ɵɵpipeBind1(11, 9, "Usuario.username"));
1210
+ i0.ɵɵadvance(4);
1220
1211
  i0.ɵɵtwoWayProperty("ngModel", ctx_r2.user.username);
1221
1212
  i0.ɵɵadvance(5);
1222
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(15, 11, "Usuario.password"));
1223
- i0.ɵɵadvance(2);
1224
- i0.ɵɵpropertyInterpolate("placeholder", i0.ɵɵpipeBind1(17, 13, "Usuario.password"));
1225
1213
  i0.ɵɵtwoWayProperty("ngModel", ctx_r2.user.password);
1226
1214
  } }
1227
- function LoginModalComponent_div_7_div_5_Template(rf, ctx) { if (rf & 1) {
1228
- i0.ɵɵelementStart(0, "div", 22)(1, "div", 23)(2, "div", 24)(3, "h5");
1215
+ function LoginModalComponent_div_4_div_5_Template(rf, ctx) { if (rf & 1) {
1216
+ const _r4 = i0.ɵɵgetCurrentView();
1217
+ i0.ɵɵelementStart(0, "div", 19);
1218
+ i0.ɵɵlistener("click", function LoginModalComponent_div_4_div_5_Template_div_click_0_listener() { const empresa_r5 = i0.ɵɵrestoreView(_r4).$implicit; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.entrarEmpresa(empresa_r5)); });
1219
+ i0.ɵɵelementStart(1, "div", 20)(2, "div", 21)(3, "h5");
1229
1220
  i0.ɵɵtext(4);
1230
1221
  i0.ɵɵelementEnd()()()();
1231
1222
  } if (rf & 2) {
1232
- const empresa_r4 = ctx.$implicit;
1223
+ const empresa_r5 = ctx.$implicit;
1233
1224
  i0.ɵɵadvance(4);
1234
- i0.ɵɵtextInterpolate1(" ", empresa_r4.nombre, " ");
1225
+ i0.ɵɵtextInterpolate1(" ", empresa_r5.nombre, " ");
1235
1226
  } }
1236
- function LoginModalComponent_div_7_Template(rf, ctx) { if (rf & 1) {
1237
- i0.ɵɵelementStart(0, "div", 9)(1, "div", 20)(2, "h4");
1227
+ function LoginModalComponent_div_4_Template(rf, ctx) { if (rf & 1) {
1228
+ i0.ɵɵelementStart(0, "div", 6)(1, "div", 17)(2, "h4");
1238
1229
  i0.ɵɵtext(3, "Selecciona la empresa");
1239
1230
  i0.ɵɵelementEnd();
1240
1231
  i0.ɵɵelement(4, "hr");
1241
1232
  i0.ɵɵelementEnd();
1242
- i0.ɵɵtemplate(5, LoginModalComponent_div_7_div_5_Template, 5, 1, "div", 21);
1233
+ i0.ɵɵtemplate(5, LoginModalComponent_div_4_div_5_Template, 5, 1, "div", 18);
1243
1234
  i0.ɵɵelementEnd();
1244
1235
  } if (rf & 2) {
1245
1236
  const ctx_r2 = i0.ɵɵnextContext();
@@ -1255,9 +1246,14 @@ class LoginModalComponent {
1255
1246
  this.error = false;
1256
1247
  this.empresas = [];
1257
1248
  this.loginModalService.modal.subscribe(resp => {
1258
- $('#modalLogin').modal('show');
1259
- this.user = { username: undefined, password: undefined };
1260
- this.empresas = [];
1249
+ if (resp) {
1250
+ this.modal = true;
1251
+ this.user = { username: undefined, password: undefined };
1252
+ this.empresas = [];
1253
+ }
1254
+ else {
1255
+ this.modal = false;
1256
+ }
1261
1257
  });
1262
1258
  }
1263
1259
  entrar(form) {
@@ -1287,7 +1283,7 @@ class LoginModalComponent {
1287
1283
  auth.usuarioDetalles = resp;
1288
1284
  this.authService.startAuth(auth);
1289
1285
  this.error = false;
1290
- $('#modalLogin').modal('hide');
1286
+ this.modal = false;
1291
1287
  });
1292
1288
  }, (_error) => {
1293
1289
  this.error = true;
@@ -1296,26 +1292,31 @@ class LoginModalComponent {
1296
1292
  }
1297
1293
  entrarEmpresa(_empresa) {
1298
1294
  this.authService.setEmpresa(_empresa).subscribe((resp) => {
1299
- $('#modalLogin').modal('hide');
1295
+ this.modal = false;
1300
1296
  });
1301
1297
  }
1302
1298
  /** @nocollapse */ static { this.ɵfac = function LoginModalComponent_Factory(t) { return new (t || LoginModalComponent)(i0.ɵɵdirectiveInject(LoginModalService), i0.ɵɵdirectiveInject(AuthService)); }; }
1303
- /** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: LoginModalComponent, selectors: [["app-login-modal"]], decls: 8, vars: 2, consts: [["datoForm", "ngForm"], ["username", "ngModel"], ["id", "modalLogin", "tabindex", "-1", "role", "dialog", "aria-labelledby", "exampleModalCenterTitle", "aria-hidden", "true", 1, "modal", "fade"], ["role", "document", 1, "modal-dialog", "modal-dialog-centered"], [1, "modal-content"], [1, "modal-body"], [1, "row", "justify-content-center"], ["src", "assets/img/logo_visorus_loading.png", "alt", ""], ["class", "row", 4, "ngIf"], [1, "row"], [1, "col-lg-12", "col-md-12", "col-sm-12"], [3, "ngSubmit"], ["class", "error", 4, "ngIf"], [1, "form-group", "mb-3"], ["for", "exampleInputEmail1"], ["type", "text", "id", "exampleInputEmail1", "aria-describedby", "emailHelp", "name", "username", "required", "", 1, "form-control", 3, "ngModelChange", "placeholder", "ngModel"], ["for", "exampleInputPassword1"], ["type", "password", "id", "exampleInputPassword1", "name", "password", "required", "", 1, "form-control", 3, "ngModelChange", "placeholder", "ngModel"], ["type", "submit", "translate", "", 1, "btn", "btn-primary_low", "btn-lg", "btn-block", "my-5", "text-light"], [1, "error"], [1, "col-xl-12", "col-lg-12", "col-sm-12"], ["class", "col-xl-6 col-lg-6 col-sm-12 mb-2", "style", "cursor: pointer", 4, "ngFor", "ngForOf"], [1, "col-xl-6", "col-lg-6", "col-sm-12", "mb-2", 2, "cursor", "pointer"], [1, "card"], [1, "card-body"]], template: function LoginModalComponent_Template(rf, ctx) { if (rf & 1) {
1304
- i0.ɵɵelementStart(0, "div", 2)(1, "div", 3)(2, "div", 4)(3, "div", 5)(4, "div", 6);
1305
- i0.ɵɵelement(5, "img", 7);
1299
+ /** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: LoginModalComponent, selectors: [["app-login-modal"]], decls: 5, vars: 10, consts: [["datoForm", "ngForm"], ["username", "ngModel"], [3, "visibleChange", "visible", "modal", "closable", "breakpoints"], [1, "row", "justify-content-center"], ["src", "assets/img/logo_visorus_loading.png", "alt", ""], ["class", "row", 4, "ngIf"], [1, "row"], [1, "col-lg-12", "col-md-12", "col-sm-12"], [3, "ngSubmit"], ["class", "error", 4, "ngIf"], [1, "form-group", "mb-3"], ["for", "exampleInputEmail1"], ["type", "text", "id", "exampleInputEmail1", "aria-describedby", "emailHelp", "placeholder", "Usuario", "name", "username", "required", "", 1, "form-control", 3, "ngModelChange", "ngModel"], ["for", "exampleInputPassword1"], ["type", "password", "id", "exampleInputPassword1", "placeholder", "Contrase\u00F1a", "name", "password", "required", "", 1, "form-control", 3, "ngModelChange", "ngModel"], ["type", "submit", 1, "btn", "btn-primary_low", "btn-lg", "btn-block", "my-5", "text-light"], [1, "error"], [1, "col-xl-12", "col-lg-12", "col-sm-12"], ["class", "col-xl-6 col-lg-6 col-sm-12 mb-2", "style", "cursor: pointer", 3, "click", 4, "ngFor", "ngForOf"], [1, "col-xl-6", "col-lg-6", "col-sm-12", "mb-2", 2, "cursor", "pointer", 3, "click"], [1, "card"], [1, "card-body"]], template: function LoginModalComponent_Template(rf, ctx) { if (rf & 1) {
1300
+ i0.ɵɵelementStart(0, "p-dialog", 2);
1301
+ i0.ɵɵtwoWayListener("visibleChange", function LoginModalComponent_Template_p_dialog_visibleChange_0_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.modal, $event) || (ctx.modal = $event); return $event; });
1302
+ i0.ɵɵelementStart(1, "div", 3);
1303
+ i0.ɵɵelement(2, "img", 4);
1304
+ i0.ɵɵelementEnd();
1305
+ i0.ɵɵtemplate(3, LoginModalComponent_div_3_Template, 16, 3, "div", 5)(4, LoginModalComponent_div_4_Template, 6, 1, "div", 5);
1306
1306
  i0.ɵɵelementEnd();
1307
- i0.ɵɵtemplate(6, LoginModalComponent_div_6_Template, 20, 15, "div", 8)(7, LoginModalComponent_div_7_Template, 6, 1, "div", 8);
1308
- i0.ɵɵelementEnd()()()();
1309
1307
  } if (rf & 2) {
1310
- i0.ɵɵadvance(6);
1308
+ i0.ɵɵstyleMap(i0.ɵɵpureFunction0(8, _c0$3));
1309
+ i0.ɵɵtwoWayProperty("visible", ctx.modal);
1310
+ i0.ɵɵproperty("modal", true)("closable", false)("breakpoints", i0.ɵɵpureFunction0(9, _c1$2));
1311
+ i0.ɵɵadvance(3);
1311
1312
  i0.ɵɵproperty("ngIf", ctx.empresas.length == 0);
1312
1313
  i0.ɵɵadvance();
1313
1314
  i0.ɵɵproperty("ngIf", ctx.empresas.length);
1314
- } }, dependencies: [i4.NgForOf, i4.NgIf, i10.ɵNgNoValidate, i10.DefaultValueAccessor, i10.NgControlStatus, i10.NgControlStatusGroup, i10.RequiredValidator, i10.NgModel, i10.NgForm, i3$1.TranslateDirective, i3$1.TranslatePipe], styles: [".modal[_ngcontent-%COMP%]{z-index:2050!important}.btn-primary_low[_ngcontent-%COMP%]{background:#133659!important}.ng-valid[_ngcontent-%COMP%]:not(form){border-left:1px solid #ced4da!important}.ng-invalid[_ngcontent-%COMP%]:not(form){border-left:1px solid #ced4da!important}.card[_ngcontent-%COMP%]{background:#26baed;color:#fff}.card-body[_ngcontent-%COMP%]{padding:10px}"] }); }
1315
+ } }, dependencies: [i4.NgForOf, i4.NgIf, i4$1.ɵNgNoValidate, i4$1.DefaultValueAccessor, i4$1.NgControlStatus, i4$1.NgControlStatusGroup, i4$1.RequiredValidator, i4$1.NgModel, i4$1.NgForm, i30.Dialog], styles: ["[_nghost-%COMP%] .p-dialog{z-index:2050!important}.btn-primary_low[_ngcontent-%COMP%]{background:#133659!important}.ng-valid[_ngcontent-%COMP%]:not(form){border-left:1px solid #ced4da!important}.ng-invalid[_ngcontent-%COMP%]:not(form){border-left:1px solid #ced4da!important}.card[_ngcontent-%COMP%]{background:#26baed;color:#fff}.card-body[_ngcontent-%COMP%]{padding:10px}"] }); }
1315
1316
  }
1316
1317
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LoginModalComponent, [{
1317
1318
  type: Component,
1318
- args: [{ selector: 'app-login-modal', template: "<div class=\"modal fade\" id=\"modalLogin\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalCenterTitle\" aria-hidden=\"true\">\n <div class=\"modal-dialog modal-dialog-centered\" role=\"document\">\n <div class=\"modal-content\">\n <div class=\"modal-body\">\n <div class=\"row justify-content-center\">\n <img src=\"assets/img/logo_visorus_loading.png\" alt=\"\">\n </div>\n <div class=\"row\" *ngIf=\"empresas.length == 0\">\n <div class=\"col-lg-12 col-md-12 col-sm-12\" >\n <form #datoForm=\"ngForm\" (ngSubmit)=\"entrar(datoForm)\" > \n <label class=\"error\" *ngIf=\"error\">{{'Usuario.errorLogin' | translate}}</label>\n <div class=\"form-group mb-3\">\n <label for=\"exampleInputEmail1\" >{{ 'Usuario.username' | translate }}</label>\n <input type=\"text\" class=\"form-control\" id=\"exampleInputEmail1\" aria-describedby=\"emailHelp\" #username=\"ngModel\"\n placeholder=\"{{ 'Usuario.username' | translate }}\" name=\"username\" [(ngModel)]=\"user.username\" required>\n </div>\n <div class=\"form-group mb-3\">\n <label for=\"exampleInputPassword1\">{{ 'Usuario.password' | translate }}</label>\n <input type=\"password\" class=\"form-control\" id=\"exampleInputPassword1\" placeholder=\"{{ 'Usuario.password' | translate }}\"\n name=\"password\" [(ngModel)]=\"user.password\" required>\n </div>\n \n <button type=\"submit\" class=\"btn btn-primary_low btn-lg btn-block my-5 text-light\" translate>entrar</button>\n </form>\n </div>\n </div> \n <div class=\"row\" *ngIf=\"empresas.length\">\n <div class=\"col-xl-12 col-lg-12 col-sm-12\">\n <h4>Selecciona la empresa</h4>\n <hr>\n </div>\n <div class=\"col-xl-6 col-lg-6 col-sm-12 mb-2\" *ngFor=\"let empresa of empresas\" style=\"cursor: pointer\">\n <div class=\"card\">\n <div class=\"card-body\">\n <h5>\n {{empresa.nombre}}\n </h5>\n </div>\n </div>\n </div>\n </div> \n \n </div>\n </div>\n </div>\n</div>", styles: [".modal{z-index:2050!important}.btn-primary_low{background:#133659!important}.ng-valid:not(form){border-left:1px solid #ced4da!important}.ng-invalid:not(form){border-left:1px solid #ced4da!important}.card{background:#26baed;color:#fff}.card-body{padding:10px}\n"] }]
1319
+ args: [{ selector: 'app-login-modal', template: "<p-dialog [(visible)]=\"modal\" [modal]=\"true\" [closable]=\"false\" [style]=\"{width: '50vw'}\"\n [breakpoints]=\"{'960px': '75vw', '640px': '90vw'}\">\n <div class=\"row justify-content-center\">\n <img src=\"assets/img/logo_visorus_loading.png\" alt=\"\">\n </div>\n <div class=\"row\" *ngIf=\"empresas.length == 0\">\n <div class=\"col-lg-12 col-md-12 col-sm-12\">\n <form #datoForm=\"ngForm\" (ngSubmit)=\"entrar(datoForm)\">\n <label class=\"error\" *ngIf=\"error\">Usuario o contrase\u00F1a incorrectos</label>\n <div class=\"form-group mb-3\">\n <label for=\"exampleInputEmail1\">Usuario</label>\n <input type=\"text\" class=\"form-control\" id=\"exampleInputEmail1\" aria-describedby=\"emailHelp\"\n #username=\"ngModel\" placeholder=\"Usuario\" name=\"username\" [(ngModel)]=\"user.username\" required>\n </div>\n <div class=\"form-group mb-3\">\n <label for=\"exampleInputPassword1\">Contrase\u00F1a</label>\n <input type=\"password\" class=\"form-control\" id=\"exampleInputPassword1\" placeholder=\"Contrase\u00F1a\"\n name=\"password\" [(ngModel)]=\"user.password\" required>\n </div>\n\n <button type=\"submit\" class=\"btn btn-primary_low btn-lg btn-block my-5 text-light\">Entrar</button>\n </form>\n </div>\n </div>\n <div class=\"row\" *ngIf=\"empresas.length\">\n <div class=\"col-xl-12 col-lg-12 col-sm-12\">\n <h4>Selecciona la empresa</h4>\n <hr>\n </div>\n <div class=\"col-xl-6 col-lg-6 col-sm-12 mb-2\" *ngFor=\"let empresa of empresas\" style=\"cursor: pointer\"\n (click)=\"entrarEmpresa(empresa)\">\n <div class=\"card\">\n <div class=\"card-body\">\n <h5>\n {{empresa.nombre}}\n </h5>\n </div>\n </div>\n </div>\n </div>\n</p-dialog>", styles: [":host ::ng-deep .p-dialog{z-index:2050!important}.btn-primary_low{background:#133659!important}.ng-valid:not(form){border-left:1px solid #ced4da!important}.ng-invalid:not(form){border-left:1px solid #ced4da!important}.card{background:#26baed;color:#fff}.card-body{padding:10px}\n"] }]
1319
1320
  }], () => [{ type: LoginModalService }, { type: AuthService }], null); })();
1320
1321
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LoginModalComponent, { className: "LoginModalComponent" }); })();
1321
1322
 
@@ -1334,7 +1335,7 @@ class SessionCajaService extends CrudService {
1334
1335
  }]
1335
1336
  }], () => [{ type: i1.HttpClient }], null); })();
1336
1337
 
1337
- const _c0$4 = () => ({ width: "750px" });
1338
+ const _c0$2 = () => ({ width: "750px" });
1338
1339
  function SessionCreateComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
1339
1340
  i0.ɵɵelementStart(0, "a", 4);
1340
1341
  i0.ɵɵtext(1);
@@ -1480,12 +1481,12 @@ class SessionCreateComponent {
1480
1481
  i0.ɵɵtemplate(5, SessionCreateComponent_ng_template_5_Template, 3, 2, "ng-template", 3);
1481
1482
  i0.ɵɵelementEnd();
1482
1483
  } if (rf & 2) {
1483
- i0.ɵɵstyleMap(i0.ɵɵpureFunction0(8, _c0$4));
1484
+ i0.ɵɵstyleMap(i0.ɵɵpureFunction0(8, _c0$2));
1484
1485
  i0.ɵɵtwoWayProperty("visible", ctx.showCreateSession);
1485
1486
  i0.ɵɵproperty("modal", ctx.flagModal)("closeOnEscape", ctx.flagModal)("closable", ctx.flagModal)("blockScroll", true);
1486
1487
  i0.ɵɵadvance(2);
1487
1488
  i0.ɵɵproperty("ngIf", ctx.caja);
1488
- } }, dependencies: [i4.NgIf, i3.PrimeTemplate, i21.ButtonDirective, i22.InputText, i10.DefaultValueAccessor, i10.NumberValueAccessor, i10.NgControlStatus, i10.NgModel, i33.Dialog] }); }
1489
+ } }, dependencies: [i4.NgIf, i3.PrimeTemplate, i18.ButtonDirective, i19.InputText, i4$1.DefaultValueAccessor, i4$1.NumberValueAccessor, i4$1.NgControlStatus, i4$1.NgModel, i30.Dialog] }); }
1489
1490
  }
1490
1491
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SessionCreateComponent, [{
1491
1492
  type: Component,
@@ -1505,62 +1506,6 @@ class SessionCreateComponent {
1505
1506
  }] }); })();
1506
1507
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SessionCreateComponent, { className: "SessionCreateComponent" }); })();
1507
1508
 
1508
- class Persona {
1509
- constructor() {
1510
- //this.estadoCivil= new EstadoCivil();
1511
- //this.genero = new Genero();
1512
- }
1513
- }
1514
-
1515
- class PersonaFisica {
1516
- constructor() {
1517
- this.datoPersona = new Persona();
1518
- this.contactos = [];
1519
- this.datoDirecciones = [];
1520
- }
1521
- }
1522
-
1523
- class PersonaMoral {
1524
- constructor() {
1525
- this.representanteLegal = new PersonaFisica();
1526
- this.contactos = [];
1527
- this.datoDirecciones = [];
1528
- }
1529
- }
1530
-
1531
- class Agente {
1532
- constructor() {
1533
- // this.catalogoTipo= new CatalogoTipo();
1534
- this.personaFisica = new PersonaFisica();
1535
- }
1536
- }
1537
-
1538
- class Cliente {
1539
- constructor() {
1540
- this.agenteCobrador = new Agente();
1541
- this.agenteVendedor = new Agente();
1542
- this.personaFisica = new PersonaFisica();
1543
- this.personaMoral = new PersonaMoral();
1544
- }
1545
- }
1546
-
1547
- class ClienteService extends CrudService {
1548
- constructor(httpCliente) {
1549
- super(httpCliente, '/cliente');
1550
- }
1551
- validar_archivos_bss(id) {
1552
- return this.getHttp().get(this.getUrl('/cliente/validarClienteBss/') + id, this.buildAuth());
1553
- }
1554
- /** @nocollapse */ static { this.ɵfac = function ClienteService_Factory(t) { return new (t || ClienteService)(i0.ɵɵinject(i1.HttpClient)); }; }
1555
- /** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: ClienteService, factory: ClienteService.ɵfac, providedIn: 'root' }); }
1556
- }
1557
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ClienteService, [{
1558
- type: Injectable,
1559
- args: [{
1560
- providedIn: 'root'
1561
- }]
1562
- }], () => [{ type: i1.HttpClient }], null); })();
1563
-
1564
1509
  class PaginateService {
1565
1510
  constructor(translate) {
1566
1511
  this.translate = translate;
@@ -1605,7 +1550,7 @@ class PaginateService {
1605
1550
  }, erro => { });
1606
1551
  return ordenar;
1607
1552
  }
1608
- /** @nocollapse */ static { this.ɵfac = function PaginateService_Factory(t) { return new (t || PaginateService)(i0.ɵɵinject(i3$1.TranslateService)); }; }
1553
+ /** @nocollapse */ static { this.ɵfac = function PaginateService_Factory(t) { return new (t || PaginateService)(i0.ɵɵinject(i2.TranslateService)); }; }
1609
1554
  /** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: PaginateService, factory: PaginateService.ɵfac, providedIn: "root" }); }
1610
1555
  }
1611
1556
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaginateService, [{
@@ -1613,365 +1558,7 @@ class PaginateService {
1613
1558
  args: [{
1614
1559
  providedIn: "root"
1615
1560
  }]
1616
- }], () => [{ type: i3$1.TranslateService }], null); })();
1617
-
1618
- function SelectClienteComponent_ng_template_7_Template(rf, ctx) { if (rf & 1) {
1619
- i0.ɵɵelementStart(0, "tr")(1, "th");
1620
- i0.ɵɵtext(2);
1621
- i0.ɵɵpipe(3, "translate");
1622
- i0.ɵɵelementEnd();
1623
- i0.ɵɵelementStart(4, "th");
1624
- i0.ɵɵtext(5);
1625
- i0.ɵɵpipe(6, "translate");
1626
- i0.ɵɵelementEnd();
1627
- i0.ɵɵelementStart(7, "th");
1628
- i0.ɵɵtext(8);
1629
- i0.ɵɵpipe(9, "translate");
1630
- i0.ɵɵelementEnd();
1631
- i0.ɵɵelementStart(10, "th");
1632
- i0.ɵɵtext(11);
1633
- i0.ɵɵpipe(12, "translate");
1634
- i0.ɵɵelementEnd();
1635
- i0.ɵɵelementStart(13, "th");
1636
- i0.ɵɵtext(14);
1637
- i0.ɵɵpipe(15, "translate");
1638
- i0.ɵɵelementEnd();
1639
- i0.ɵɵelementStart(16, "th");
1640
- i0.ɵɵtext(17);
1641
- i0.ɵɵpipe(18, "translate");
1642
- i0.ɵɵelementEnd()();
1643
- } if (rf & 2) {
1644
- i0.ɵɵadvance(2);
1645
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 6, "clave"));
1646
- i0.ɵɵadvance(3);
1647
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 8, "razonSocial"));
1648
- i0.ɵɵadvance(3);
1649
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(9, 10, "tipo"));
1650
- i0.ɵɵadvance(3);
1651
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(12, 12, "Cliente.limiteCredito"));
1652
- i0.ɵɵadvance(3);
1653
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(15, 14, "Cliente.plazoCredito"));
1654
- i0.ɵɵadvance(3);
1655
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(18, 16, "Cliente.diasPago"));
1656
- } }
1657
- function SelectClienteComponent_ng_template_8_span_6_Template(rf, ctx) { if (rf & 1) {
1658
- i0.ɵɵelementStart(0, "span");
1659
- i0.ɵɵtext(1);
1660
- i0.ɵɵpipe(2, "translate");
1661
- i0.ɵɵelementEnd();
1662
- } if (rf & 2) {
1663
- i0.ɵɵadvance();
1664
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "fisico"));
1665
- } }
1666
- function SelectClienteComponent_ng_template_8_span_7_Template(rf, ctx) { if (rf & 1) {
1667
- i0.ɵɵelementStart(0, "span");
1668
- i0.ɵɵtext(1);
1669
- i0.ɵɵpipe(2, "translate");
1670
- i0.ɵɵelementEnd();
1671
- } if (rf & 2) {
1672
- i0.ɵɵadvance();
1673
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "moral"));
1674
- } }
1675
- function SelectClienteComponent_ng_template_8_Template(rf, ctx) { if (rf & 1) {
1676
- i0.ɵɵelementStart(0, "tr", 8)(1, "td");
1677
- i0.ɵɵtext(2);
1678
- i0.ɵɵelementEnd();
1679
- i0.ɵɵelementStart(3, "td");
1680
- i0.ɵɵtext(4);
1681
- i0.ɵɵelementEnd();
1682
- i0.ɵɵelementStart(5, "td");
1683
- i0.ɵɵtemplate(6, SelectClienteComponent_ng_template_8_span_6_Template, 3, 3, "span", 9)(7, SelectClienteComponent_ng_template_8_span_7_Template, 3, 3, "span", 9);
1684
- i0.ɵɵelementEnd();
1685
- i0.ɵɵelementStart(8, "td");
1686
- i0.ɵɵtext(9);
1687
- i0.ɵɵelementEnd();
1688
- i0.ɵɵelementStart(10, "td");
1689
- i0.ɵɵtext(11);
1690
- i0.ɵɵelementEnd();
1691
- i0.ɵɵelementStart(12, "td");
1692
- i0.ɵɵtext(13);
1693
- i0.ɵɵelementEnd()();
1694
- } if (rf & 2) {
1695
- const cliente_r1 = ctx.$implicit;
1696
- i0.ɵɵproperty("pSelectableRow", cliente_r1);
1697
- i0.ɵɵadvance(2);
1698
- i0.ɵɵtextInterpolate(cliente_r1.codigo);
1699
- i0.ɵɵadvance(2);
1700
- i0.ɵɵtextInterpolate(cliente_r1.descripcionRazonSocial);
1701
- i0.ɵɵadvance(2);
1702
- i0.ɵɵproperty("ngIf", cliente_r1.personaFisica);
1703
- i0.ɵɵadvance();
1704
- i0.ɵɵproperty("ngIf", cliente_r1.personaMoral);
1705
- i0.ɵɵadvance(2);
1706
- i0.ɵɵtextInterpolate(cliente_r1.limiteCredito);
1707
- i0.ɵɵadvance(2);
1708
- i0.ɵɵtextInterpolate(cliente_r1.plazoCredito);
1709
- i0.ɵɵadvance(2);
1710
- i0.ɵɵtextInterpolate(cliente_r1.diasPago);
1711
- } }
1712
- function SelectClienteComponent_ng_template_9_Template(rf, ctx) { if (rf & 1) {
1713
- i0.ɵɵelementStart(0, "tr")(1, "td", 10);
1714
- i0.ɵɵtext(2);
1715
- i0.ɵɵpipe(3, "translate");
1716
- i0.ɵɵelementEnd()();
1717
- } if (rf & 2) {
1718
- i0.ɵɵadvance(2);
1719
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, "general.noRegistros"));
1720
- } }
1721
- class SelectClienteComponent {
1722
- constructor(clienteService, paginate) {
1723
- this.clienteService = clienteService;
1724
- this.paginate = paginate;
1725
- this.selectMode = 'single';
1726
- this.select = new EventEmitter();
1727
- this.ordenar = [];
1728
- this.loading = true;
1729
- }
1730
- ngOnInit() {
1731
- this.page = this.paginate.getPage();
1732
- this.page.rows = 20;
1733
- this.clientes = [];
1734
- this.ordenar = this.paginate.getOrden([
1735
- { param: 'razonZocial', label: 'razonZocial' }
1736
- ], 'es');
1737
- }
1738
- cargarDatosClientes(event = null) {
1739
- this.loading = true;
1740
- if (event) {
1741
- this.page.rows = event.rows;
1742
- this.page.offset = event.first;
1743
- }
1744
- this.clientes = [];
1745
- this.params = this.paginate.getParams(this.page);
1746
- this.params.push({ param: 'estatus', value: true });
1747
- if (this.page.filtro && this.page.filtro.trim() !== '') {
1748
- this.params.push({ param: 'filtroGeneral', value: this.page.filtro.trim() });
1749
- }
1750
- this.clienteService.getAll(this.params).subscribe((data) => {
1751
- this.page.total = data.total;
1752
- this.clientes = data.data;
1753
- this.loading = false;
1754
- }, error => {
1755
- console.error("Error al cargar clientes:", error);
1756
- this.loading = false;
1757
- });
1758
- }
1759
- aplicarFiltro() {
1760
- this.page.offset = 0;
1761
- this.cargarDatosClientes();
1762
- }
1763
- seleccionaCliente(e) {
1764
- console.log('Fila seleccionada (evento):', e);
1765
- console.log('Datos de la fila (e.data):', e.data);
1766
- console.log('Cliente seleccionado ANTES de emitir:', this.clienteSeleccionado); // Verifica si [(selection)] ya lo actualizó
1767
- this.select.emit(e.data);
1768
- this.visible = false;
1769
- console.log('Cliente seleccionado DESPUÉS de emitir (y si se actualizó por [(selection)]):', this.clienteSeleccionado);
1770
- }
1771
- cerrar() {
1772
- this.select.emit(null);
1773
- this.visible = false;
1774
- }
1775
- /** @nocollapse */ static { this.ɵfac = function SelectClienteComponent_Factory(t) { return new (t || SelectClienteComponent)(i0.ɵɵdirectiveInject(ClienteService), i0.ɵɵdirectiveInject(PaginateService)); }; }
1776
- /** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: SelectClienteComponent, selectors: [["select-cliente"]], inputs: { clienteSeleccionado: "clienteSeleccionado", selectMode: "selectMode", visible: "visible" }, outputs: { select: "select" }, decls: 10, vars: 18, consts: [[3, "visibleChange", "onHide", "onShow", "header", "visible"], [1, "p-inputgroup", "mt-2"], ["type", "text", "pInputText", "", "name", "filtro", 3, "ngModelChange", "keyup", "placeholder", "ngModel"], ["pButton", "", "type", "button", "icon", "pi pi-search", "styleClass", "p-button-secondary", 3, "click"], ["dataKey", "id", "scrollHeight", "350px", 3, "onLazyLoad", "selectionChange", "onRowSelect", "value", "lazy", "paginator", "rows", "totalRecords", "selection", "selectionMode", "scrollable", "loading"], ["pTemplate", "header"], ["pTemplate", "body"], ["pTemplate", "emptymessage"], [3, "pSelectableRow"], [4, "ngIf"], ["colspan", "6"]], template: function SelectClienteComponent_Template(rf, ctx) { if (rf & 1) {
1777
- i0.ɵɵelementStart(0, "p-dialog", 0);
1778
- i0.ɵɵpipe(1, "translate");
1779
- i0.ɵɵtwoWayListener("visibleChange", function SelectClienteComponent_Template_p_dialog_visibleChange_0_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.visible, $event) || (ctx.visible = $event); return $event; });
1780
- i0.ɵɵlistener("onHide", function SelectClienteComponent_Template_p_dialog_onHide_0_listener() { return ctx.cerrar(); })("onShow", function SelectClienteComponent_Template_p_dialog_onShow_0_listener() { return ctx.cargarDatosClientes(); });
1781
- i0.ɵɵelementStart(2, "div", 1)(3, "input", 2);
1782
- i0.ɵɵpipe(4, "translate");
1783
- i0.ɵɵtwoWayListener("ngModelChange", function SelectClienteComponent_Template_input_ngModelChange_3_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.page.filtro, $event) || (ctx.page.filtro = $event); return $event; });
1784
- i0.ɵɵlistener("keyup", function SelectClienteComponent_Template_input_keyup_3_listener() { return ctx.aplicarFiltro(); });
1785
- i0.ɵɵelementEnd();
1786
- i0.ɵɵelementStart(5, "button", 3);
1787
- i0.ɵɵlistener("click", function SelectClienteComponent_Template_button_click_5_listener() { return ctx.aplicarFiltro(); });
1788
- i0.ɵɵelementEnd()();
1789
- i0.ɵɵelementStart(6, "p-table", 4);
1790
- i0.ɵɵlistener("onLazyLoad", function SelectClienteComponent_Template_p_table_onLazyLoad_6_listener($event) { return ctx.cargarDatosClientes($event); });
1791
- i0.ɵɵtwoWayListener("selectionChange", function SelectClienteComponent_Template_p_table_selectionChange_6_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.clienteSeleccionado, $event) || (ctx.clienteSeleccionado = $event); return $event; });
1792
- i0.ɵɵlistener("onRowSelect", function SelectClienteComponent_Template_p_table_onRowSelect_6_listener($event) { return ctx.seleccionaCliente($event); });
1793
- i0.ɵɵtemplate(7, SelectClienteComponent_ng_template_7_Template, 19, 18, "ng-template", 5)(8, SelectClienteComponent_ng_template_8_Template, 14, 8, "ng-template", 6)(9, SelectClienteComponent_ng_template_9_Template, 4, 3, "ng-template", 7);
1794
- i0.ɵɵelementEnd()();
1795
- } if (rf & 2) {
1796
- i0.ɵɵpropertyInterpolate("header", i0.ɵɵpipeBind1(1, 14, "Seleccionar cliente "));
1797
- i0.ɵɵtwoWayProperty("visible", ctx.visible);
1798
- i0.ɵɵadvance(3);
1799
- i0.ɵɵpropertyInterpolate1("placeholder", "", i0.ɵɵpipeBind1(4, 16, "buscar"), "...");
1800
- i0.ɵɵtwoWayProperty("ngModel", ctx.page.filtro);
1801
- i0.ɵɵadvance(3);
1802
- i0.ɵɵpropertyInterpolate("selectionMode", ctx.selectMode);
1803
- i0.ɵɵproperty("value", ctx.clientes)("lazy", true)("paginator", true)("rows", ctx.page.rows)("totalRecords", ctx.page.total);
1804
- i0.ɵɵtwoWayProperty("selection", ctx.clienteSeleccionado);
1805
- i0.ɵɵproperty("scrollable", true)("loading", ctx.loading);
1806
- } }, dependencies: [i4.NgIf, i3.PrimeTemplate, i18.Table, i18.SelectableRow, i21.ButtonDirective, i22.InputText, i10.DefaultValueAccessor, i10.NgControlStatus, i10.NgModel, i33.Dialog, i3$1.TranslatePipe], encapsulation: 2 }); }
1807
- }
1808
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectClienteComponent, [{
1809
- type: Component,
1810
- args: [{ selector: 'select-cliente', template: "<p-dialog header=\"{{ 'Seleccionar cliente ' | translate }}\" [(visible)]=\"visible\" (onHide)=\"cerrar()\"\n (onShow)=\"cargarDatosClientes()\">\n\n <div class=\"p-inputgroup mt-2\">\n <input type=\"text\" pInputText placeholder=\"{{'buscar'| translate}}...\"\n [(ngModel)]=\"page.filtro\" name=\"filtro\" (keyup)=\"aplicarFiltro()\">\n <button pButton type=\"button\" icon=\"pi pi-search\" styleClass=\"p-button-secondary\" (click)=\"aplicarFiltro()\"></button>\n </div>\n\n <p-table\n [value]=\"clientes\"\n dataKey=\"id\" [lazy]=\"true\"\n (onLazyLoad)=\"cargarDatosClientes($event)\"\n [paginator]=\"true\"\n [rows]=\"page.rows\"\n [totalRecords]=\"page.total\"\n [(selection)]=\"clienteSeleccionado\"\n selectionMode=\"{{selectMode}}\"\n (onRowSelect)=\"seleccionaCliente($event)\"\n [scrollable]=\"true\" scrollHeight=\"350px\"\n [loading]=\"loading\">\n <ng-template pTemplate=\"header\">\n <tr>\n <th>{{'clave' | translate}}</th>\n <th>{{'razonSocial' | translate}}</th>\n <th>{{'tipo' | translate}}</th>\n <th>{{'Cliente.limiteCredito' | translate}}</th>\n <th>{{'Cliente.plazoCredito' | translate}}</th>\n <th>{{'Cliente.diasPago' | translate}}</th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-cliente>\n <tr [pSelectableRow]=\"cliente\"> \n <td>{{cliente.codigo}}</td>\n <td>{{cliente.descripcionRazonSocial}}</td>\n <td>\n <span *ngIf=\"cliente.personaFisica\">{{'fisico'| translate}}</span>\n <span *ngIf=\"cliente.personaMoral\">{{'moral'| translate}}</span>\n </td>\n <td>{{cliente.limiteCredito}}</td>\n <td>{{cliente.plazoCredito}}</td>\n <td>{{cliente.diasPago}}</td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"emptymessage\">\n <tr>\n <td colspan=\"6\">{{'general.noRegistros' | translate}}</td>\n </tr>\n </ng-template>\n</p-table>\n \n</p-dialog>" }]
1811
- }], () => [{ type: ClienteService }, { type: PaginateService }], { clienteSeleccionado: [{
1812
- type: Input
1813
- }], selectMode: [{
1814
- type: Input
1815
- }], visible: [{
1816
- type: Input
1817
- }], select: [{
1818
- type: Output
1819
- }] }); })();
1820
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SelectClienteComponent, { className: "SelectClienteComponent" }); })();
1821
-
1822
- class ClasificadorTipo {
1823
- constructor() { }
1824
- }
1825
-
1826
- class Proveedor {
1827
- constructor() {
1828
- this.personaMoral = new PersonaMoral();
1829
- this.catalogoTipo = new ClasificadorTipo();
1830
- this.clasificadorTipo = new ClasificadorTipo();
1831
- this.personaFisica = new PersonaFisica();
1832
- }
1833
- }
1834
-
1835
- class ProveedorService extends CrudService {
1836
- constructor(httpClient) {
1837
- super(httpClient, '/proveedor');
1838
- this.httpClient = httpClient;
1839
- }
1840
- /** @nocollapse */ static { this.ɵfac = function ProveedorService_Factory(t) { return new (t || ProveedorService)(i0.ɵɵinject(i1.HttpClient)); }; }
1841
- /** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: ProveedorService, factory: ProveedorService.ɵfac, providedIn: 'root' }); }
1842
- }
1843
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ProveedorService, [{
1844
- type: Injectable,
1845
- args: [{
1846
- providedIn: 'root'
1847
- }]
1848
- }], () => [{ type: i1.HttpClient }], null); })();
1849
-
1850
- const _c0$3 = () => [10, 25, 50, 100, 500];
1851
- function SelectProveedorComponent_ng_template_7_Template(rf, ctx) { if (rf & 1) {
1852
- i0.ɵɵelementStart(0, "tr")(1, "th");
1853
- i0.ɵɵtext(2);
1854
- i0.ɵɵpipe(3, "translate");
1855
- i0.ɵɵelementEnd();
1856
- i0.ɵɵelementStart(4, "th");
1857
- i0.ɵɵtext(5);
1858
- i0.ɵɵpipe(6, "translate");
1859
- i0.ɵɵelementEnd();
1860
- i0.ɵɵelementStart(7, "th");
1861
- i0.ɵɵtext(8);
1862
- i0.ɵɵpipe(9, "translate");
1863
- i0.ɵɵelementEnd()();
1864
- } if (rf & 2) {
1865
- i0.ɵɵadvance(2);
1866
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 3, "clave"));
1867
- i0.ɵɵadvance(3);
1868
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 5, "razonSocial"));
1869
- i0.ɵɵadvance(3);
1870
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(9, 7, "rfc"));
1871
- } }
1872
- function SelectProveedorComponent_ng_template_8_Template(rf, ctx) { if (rf & 1) {
1873
- i0.ɵɵelementStart(0, "tr")(1, "td");
1874
- i0.ɵɵtext(2);
1875
- i0.ɵɵelementEnd();
1876
- i0.ɵɵelementStart(3, "td");
1877
- i0.ɵɵtext(4);
1878
- i0.ɵɵelementEnd();
1879
- i0.ɵɵelementStart(5, "td");
1880
- i0.ɵɵtext(6);
1881
- i0.ɵɵelementEnd()();
1882
- } if (rf & 2) {
1883
- const proveedor_r1 = ctx.rowData;
1884
- i0.ɵɵadvance(2);
1885
- i0.ɵɵtextInterpolate(proveedor_r1.codigo);
1886
- i0.ɵɵadvance(2);
1887
- i0.ɵɵtextInterpolate(proveedor_r1.descripcionRazonSocial);
1888
- i0.ɵɵadvance(2);
1889
- i0.ɵɵtextInterpolate(proveedor_r1.descripcionRfc);
1890
- } }
1891
- class SelectProveedorComponent {
1892
- constructor(proveedorService, paginanateService, translate) {
1893
- this.proveedorService = proveedorService;
1894
- this.paginanateService = paginanateService;
1895
- this.translate = translate;
1896
- this.params = [];
1897
- this.ordenar = [];
1898
- this.visible = false;
1899
- this.proveedorSeleccionado = new Proveedor();
1900
- this.select = new EventEmitter();
1901
- this.translate.get('es');
1902
- }
1903
- ngOnInit() {
1904
- this.page = this.paginanateService.getPage();
1905
- let arg = [];
1906
- this.ordenar = this.paginanateService.getOrden(arg, 'es');
1907
- this.proveedores = [];
1908
- }
1909
- cargarDatosProveedores() {
1910
- this.params = this.paginanateService.getParams(this.page);
1911
- this.params.push({ param: 'estatus', value: true });
1912
- this.proveedorService.getAll(this.params).subscribe((data) => {
1913
- this.proveedores = data.data;
1914
- });
1915
- }
1916
- pagina(e) {
1917
- this.page.rows = e.rows;
1918
- this.page.offset = e.first;
1919
- this.cargarDatosProveedores();
1920
- }
1921
- cerrarModal() {
1922
- this.select.emit(null);
1923
- this.visible = false;
1924
- }
1925
- seleccionarProveedor(e) {
1926
- this.select.emit(e.data);
1927
- this.visible = false;
1928
- }
1929
- /** @nocollapse */ static { this.ɵfac = function SelectProveedorComponent_Factory(t) { return new (t || SelectProveedorComponent)(i0.ɵɵdirectiveInject(ProveedorService), i0.ɵɵdirectiveInject(PaginateService), i0.ɵɵdirectiveInject(i3$1.TranslateService)); }; }
1930
- /** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: SelectProveedorComponent, selectors: [["select-proveedor"]], inputs: { visible: "visible", proveedorSeleccionado: "proveedorSeleccionado" }, outputs: { select: "select" }, decls: 10, vars: 17, consts: [[3, "visibleChange", "onHide", "onShow", "header", "visible"], [1, "p-inputgroup", "mt-2"], ["type", "text", "pInputText", "", "name", "filtro", 3, "ngModelChange", "change", "placeholder", "ngModel"], ["pButton", "", "type", "button", "icon", "pi pi-search", "styleClass", "p-button-secondary", 3, "click"], ["selectionMode", "single", "scrollHeight", "350px", 3, "valueChange", "selectionChange", "onRowSelect", "value", "selection", "scrollable"], ["pTemplate", "header"], ["pTemplate", "body"], [3, "onPageChange", "rows", "totalRecords", "pageLinkSize", "rowsPerPageOptions"]], template: function SelectProveedorComponent_Template(rf, ctx) { if (rf & 1) {
1931
- i0.ɵɵelementStart(0, "p-dialog", 0);
1932
- i0.ɵɵpipe(1, "translate");
1933
- i0.ɵɵtwoWayListener("visibleChange", function SelectProveedorComponent_Template_p_dialog_visibleChange_0_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.visible, $event) || (ctx.visible = $event); return $event; });
1934
- i0.ɵɵlistener("onHide", function SelectProveedorComponent_Template_p_dialog_onHide_0_listener() { return ctx.cerrarModal(); })("onShow", function SelectProveedorComponent_Template_p_dialog_onShow_0_listener() { return ctx.cargarDatosProveedores(); });
1935
- i0.ɵɵelementStart(2, "div", 1)(3, "input", 2);
1936
- i0.ɵɵpipe(4, "translate");
1937
- i0.ɵɵtwoWayListener("ngModelChange", function SelectProveedorComponent_Template_input_ngModelChange_3_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.page.filtro, $event) || (ctx.page.filtro = $event); return $event; });
1938
- i0.ɵɵlistener("change", function SelectProveedorComponent_Template_input_change_3_listener() { return ctx.cargarDatosProveedores(); });
1939
- i0.ɵɵelementEnd();
1940
- i0.ɵɵelementStart(5, "button", 3);
1941
- i0.ɵɵlistener("click", function SelectProveedorComponent_Template_button_click_5_listener() { return ctx.cargarDatosProveedores(); });
1942
- i0.ɵɵelementEnd()();
1943
- i0.ɵɵelementStart(6, "p-table", 4);
1944
- i0.ɵɵtwoWayListener("valueChange", function SelectProveedorComponent_Template_p_table_valueChange_6_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.proveedores, $event) || (ctx.proveedores = $event); return $event; })("selectionChange", function SelectProveedorComponent_Template_p_table_selectionChange_6_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.proveedorSeleccionado, $event) || (ctx.proveedorSeleccionado = $event); return $event; });
1945
- i0.ɵɵlistener("onRowSelect", function SelectProveedorComponent_Template_p_table_onRowSelect_6_listener($event) { return ctx.seleccionarProveedor($event); });
1946
- i0.ɵɵtemplate(7, SelectProveedorComponent_ng_template_7_Template, 10, 9, "ng-template", 5)(8, SelectProveedorComponent_ng_template_8_Template, 7, 3, "ng-template", 6);
1947
- i0.ɵɵelementEnd();
1948
- i0.ɵɵelementStart(9, "p-paginator", 7);
1949
- i0.ɵɵlistener("onPageChange", function SelectProveedorComponent_Template_p_paginator_onPageChange_9_listener($event) { return ctx.pagina($event); });
1950
- i0.ɵɵelementEnd()();
1951
- } if (rf & 2) {
1952
- i0.ɵɵpropertyInterpolate("header", i0.ɵɵpipeBind1(1, 12, "ArticuloProveedor.proveedores"));
1953
- i0.ɵɵtwoWayProperty("visible", ctx.visible);
1954
- i0.ɵɵadvance(3);
1955
- i0.ɵɵpropertyInterpolate1("placeholder", "", i0.ɵɵpipeBind1(4, 14, "buscar"), "...");
1956
- i0.ɵɵtwoWayProperty("ngModel", ctx.page.filtro);
1957
- i0.ɵɵadvance(3);
1958
- i0.ɵɵtwoWayProperty("value", ctx.proveedores)("selection", ctx.proveedorSeleccionado);
1959
- i0.ɵɵproperty("scrollable", true);
1960
- i0.ɵɵadvance(3);
1961
- i0.ɵɵproperty("rows", ctx.page.rows)("totalRecords", ctx.page.total)("pageLinkSize", 5)("rowsPerPageOptions", i0.ɵɵpureFunction0(16, _c0$3));
1962
- } }, dependencies: [i3.PrimeTemplate, i18.Table, i21.ButtonDirective, i22.InputText, i27.Paginator, i10.DefaultValueAccessor, i10.NgControlStatus, i10.NgModel, i33.Dialog, i3$1.TranslatePipe], encapsulation: 2 }); }
1963
- }
1964
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectProveedorComponent, [{
1965
- type: Component,
1966
- args: [{ selector: 'select-proveedor', template: "<p-dialog header=\"{{'ArticuloProveedor.proveedores' | translate}}\" [(visible)]=\"visible\" (onHide)=\"cerrarModal()\"\n (onShow)=\"cargarDatosProveedores()\">\n\n <div class=\"p-inputgroup mt-2\">\n <input type=\"text\" pInputText placeholder=\"{{'buscar'| translate}}...\"\n [(ngModel)]=\"page.filtro\" name=\"filtro\" (change)=\"cargarDatosProveedores()\">\n <button pButton type=\"button\" icon=\"pi pi-search\" styleClass=\"p-button-secondary\" (click)=\"cargarDatosProveedores()\"></button>\n </div>\n\n <p-table [(value)]=\"proveedores\" selectionMode=\"single\" [(selection)]=\"proveedorSeleccionado\"\n [scrollable]=\"true\" scrollHeight=\"350px\" (onRowSelect)=\"seleccionarProveedor($event)\">\n <ng-template pTemplate=\"header\">\n <tr>\n <th>{{'clave' | translate}}</th>\n <th>{{'razonSocial' | translate}}</th>\n <th>{{'rfc' | translate}}</th>\n </tr>\n </ng-template> \n <ng-template pTemplate=\"body\" let-proveedor=\"rowData\">\n <tr>\n <td>{{proveedor.codigo}}</td>\n <td>{{proveedor.descripcionRazonSocial}}</td>\n <td>{{proveedor.descripcionRfc}}</td>\n </tr>\n </ng-template>\n </p-table>\n\n <p-paginator [rows]=\"page.rows\" [totalRecords]=\"page.total\" [pageLinkSize]=\"5\"\n (onPageChange)=\"pagina($event)\" [rowsPerPageOptions]=\"[10,25,50,100,500]\"></p-paginator>\n\n</p-dialog>" }]
1967
- }], () => [{ type: ProveedorService }, { type: PaginateService }, { type: i3$1.TranslateService }], { visible: [{
1968
- type: Input
1969
- }], proveedorSeleccionado: [{
1970
- type: Input
1971
- }], select: [{
1972
- type: Output
1973
- }] }); })();
1974
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SelectProveedorComponent, { className: "SelectProveedorComponent" }); })();
1561
+ }], () => [{ type: i2.TranslateService }], null); })();
1975
1562
 
1976
1563
  class AlmacenService extends CrudService {
1977
1564
  constructor(httpClient) {
@@ -2037,7 +1624,7 @@ class ArticuloInformacionService extends CrudService {
2037
1624
  }]
2038
1625
  }], () => [{ type: i1.HttpClient }], null); })();
2039
1626
 
2040
- const _c0$2 = a0 => ({ "width": a0, "min-width": "200px" });
1627
+ const _c0$1 = a0 => ({ "width": a0, "min-width": "200px" });
2041
1628
  const _c1$1 = () => ({ width: "600px" });
2042
1629
  function SeleccionArticuloInformacionComponent_ng_template_2_col_1_Template(rf, ctx) { if (rf & 1) {
2043
1630
  i0.ɵɵelement(0, "col");
@@ -2158,14 +1745,14 @@ class SeleccionArticuloInformacionComponent {
2158
1745
  i0.ɵɵtemplate(5, SeleccionArticuloInformacionComponent_ng_template_5_Template, 2, 0, "ng-template", 5);
2159
1746
  i0.ɵɵelementEnd();
2160
1747
  } if (rf & 2) {
2161
- i0.ɵɵstyleMap(i0.ɵɵpureFunction1(16, _c0$2, ctx.size + "px"));
1748
+ i0.ɵɵstyleMap(i0.ɵɵpureFunction1(16, _c0$1, ctx.size + "px"));
2162
1749
  i0.ɵɵproperty("header", ctx.titulo);
2163
1750
  i0.ɵɵtwoWayProperty("visible", ctx.showModal);
2164
1751
  i0.ɵɵproperty("modal", ctx.flagModal)("minY", 70)("baseZIndex", 10000)("draggable", false)("blockScroll", true)("maximizable", true)("breakpoint", 640);
2165
1752
  i0.ɵɵadvance();
2166
1753
  i0.ɵɵstyleMap(i0.ɵɵpureFunction0(18, _c1$1));
2167
1754
  i0.ɵɵproperty("columns", ctx.columnsData)("value", ctx.existenciasList)("scrollable", true);
2168
- } }, dependencies: [i4.NgForOf, i3.PrimeTemplate, i18.Table, i18.ResizableColumn, i21.ButtonDirective, i33.Dialog] }); }
1755
+ } }, dependencies: [i4.NgForOf, i3.PrimeTemplate, i15.Table, i15.ResizableColumn, i18.ButtonDirective, i30.Dialog] }); }
2169
1756
  }
2170
1757
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SeleccionArticuloInformacionComponent, [{
2171
1758
  type: Component,
@@ -2179,7 +1766,7 @@ class SeleccionArticuloInformacionComponent {
2179
1766
  }] }); })();
2180
1767
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SeleccionArticuloInformacionComponent, { className: "SeleccionArticuloInformacionComponent" }); })();
2181
1768
 
2182
- const _c0$1 = a0 => ({ "width": a0, "min-width": "200px" });
1769
+ const _c0 = a0 => ({ "width": a0, "min-width": "200px" });
2183
1770
  const _c1 = () => [10, 25, 50, 100, 500];
2184
1771
  function SeleccionaArticuloComponent_option_23_Template(rf, ctx) { if (rf & 1) {
2185
1772
  i0.ɵɵelementStart(0, "option", 22);
@@ -2609,7 +2196,7 @@ class SeleccionaArticuloComponent {
2609
2196
  i0.ɵɵelementEnd()();
2610
2197
  i0.ɵɵtemplate(29, SeleccionaArticuloComponent_lib_seleccion_articulo_informacion_29_Template, 1, 2, "lib-seleccion-articulo-informacion", 21);
2611
2198
  } if (rf & 2) {
2612
- i0.ɵɵstyleMap(i0.ɵɵpureFunction1(21, _c0$1, ctx.size + "px"));
2199
+ i0.ɵɵstyleMap(i0.ɵɵpureFunction1(21, _c0, ctx.size + "px"));
2613
2200
  i0.ɵɵpropertyInterpolate("header", i0.ɵɵpipeBind1(1, 19, "Articulos"));
2614
2201
  i0.ɵɵtwoWayProperty("visible", ctx.showArticulos);
2615
2202
  i0.ɵɵproperty("maximizable", true)("baseZIndex", 10000)("blockScroll", true)("minY", 70);
@@ -2627,7 +2214,7 @@ class SeleccionaArticuloComponent {
2627
2214
  i0.ɵɵproperty("rows", ctx.page.rows)("totalRecords", ctx.page.total)("pageLinkSize", 5)("rowsPerPageOptions", i0.ɵɵpureFunction0(23, _c1));
2628
2215
  i0.ɵɵadvance();
2629
2216
  i0.ɵɵproperty("ngIf", ctx.showModalInformacion);
2630
- } }, dependencies: [i4.NgForOf, i4.NgIf, i3.PrimeTemplate, i18.Table, i18.SelectableRow, i21.ButtonDirective, i22.InputText, i27.Paginator, i10.NgSelectOption, i10.ɵNgSelectMultipleOption, i10.DefaultValueAccessor, i10.SelectControlValueAccessor, i10.NgControlStatus, i10.NgModel, i33.Dialog, i3$1.TranslateDirective, SeleccionArticuloInformacionComponent, i4.DecimalPipe, i4.CurrencyPipe, i3$1.TranslatePipe], styles: ["tr[_ngcontent-%COMP%]:hover{background-color:#34a835!important;color:#fff!important}table[_ngcontent-%COMP%]{position:absolute}"] }); }
2217
+ } }, dependencies: [i4.NgForOf, i4.NgIf, i3.PrimeTemplate, i15.Table, i15.SelectableRow, i18.ButtonDirective, i19.InputText, i24.Paginator, i4$1.NgSelectOption, i4$1.ɵNgSelectMultipleOption, i4$1.DefaultValueAccessor, i4$1.SelectControlValueAccessor, i4$1.NgControlStatus, i4$1.NgModel, i30.Dialog, i2.TranslateDirective, SeleccionArticuloInformacionComponent, i4.DecimalPipe, i4.CurrencyPipe, i2.TranslatePipe], styles: ["tr[_ngcontent-%COMP%]:hover{background-color:#34a835!important;color:#fff!important}table[_ngcontent-%COMP%]{position:absolute}"] }); }
2631
2218
  }
2632
2219
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SeleccionaArticuloComponent, [{
2633
2220
  type: Component,
@@ -2647,222 +2234,13 @@ class SeleccionaArticuloComponent {
2647
2234
  }] }); })();
2648
2235
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SeleccionaArticuloComponent, { className: "SeleccionaArticuloComponent" }); })();
2649
2236
 
2650
- class AcreedorService extends CrudService {
2651
- constructor(httpClient) {
2652
- super(httpClient, 'acreedor');
2653
- this.httpClient = httpClient;
2654
- }
2655
- /** @nocollapse */ static { this.ɵfac = function AcreedorService_Factory(t) { return new (t || AcreedorService)(i0.ɵɵinject(i1.HttpClient)); }; }
2656
- /** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: AcreedorService, factory: AcreedorService.ɵfac, providedIn: 'root' }); }
2657
- }
2658
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AcreedorService, [{
2659
- type: Injectable,
2660
- args: [{
2661
- providedIn: 'root'
2662
- }]
2663
- }], () => [{ type: i1.HttpClient }], null); })();
2664
-
2665
- const _c0 = () => [10, 25, 50, 100, 500];
2666
- function SelectAcreedorComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
2667
- i0.ɵɵelementStart(0, "tr")(1, "th");
2668
- i0.ɵɵtext(2);
2669
- i0.ɵɵpipe(3, "translate");
2670
- i0.ɵɵelementEnd();
2671
- i0.ɵɵelementStart(4, "th");
2672
- i0.ɵɵtext(5);
2673
- i0.ɵɵpipe(6, "translate");
2674
- i0.ɵɵelementEnd();
2675
- i0.ɵɵelementStart(7, "th");
2676
- i0.ɵɵtext(8);
2677
- i0.ɵɵpipe(9, "translate");
2678
- i0.ɵɵelementEnd();
2679
- i0.ɵɵelementStart(10, "th");
2680
- i0.ɵɵtext(11);
2681
- i0.ɵɵpipe(12, "translate");
2682
- i0.ɵɵelementEnd();
2683
- i0.ɵɵelementStart(13, "th");
2684
- i0.ɵɵtext(14);
2685
- i0.ɵɵpipe(15, "translate");
2686
- i0.ɵɵelementEnd();
2687
- i0.ɵɵelementStart(16, "th");
2688
- i0.ɵɵtext(17);
2689
- i0.ɵɵpipe(18, "translate");
2690
- i0.ɵɵelementEnd()();
2691
- } if (rf & 2) {
2692
- i0.ɵɵadvance(2);
2693
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 6, "razonSocial"));
2694
- i0.ɵɵadvance(3);
2695
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 8, "rfc"));
2696
- i0.ɵɵadvance(3);
2697
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(9, 10, "tipo"));
2698
- i0.ɵɵadvance(3);
2699
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(12, 12, "atrasoDiasEntrega"));
2700
- i0.ɵɵadvance(3);
2701
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(15, 14, "limiteCredito"));
2702
- i0.ɵɵadvance(3);
2703
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(18, 16, "fechaUltimaCompra"));
2704
- } }
2705
- function SelectAcreedorComponent_ng_template_7_span_6_Template(rf, ctx) { if (rf & 1) {
2706
- i0.ɵɵelementStart(0, "span");
2707
- i0.ɵɵtext(1);
2708
- i0.ɵɵpipe(2, "translate");
2709
- i0.ɵɵelementEnd();
2710
- } if (rf & 2) {
2711
- i0.ɵɵadvance();
2712
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "moral"));
2713
- } }
2714
- function SelectAcreedorComponent_ng_template_7_span_7_Template(rf, ctx) { if (rf & 1) {
2715
- i0.ɵɵelementStart(0, "span");
2716
- i0.ɵɵtext(1);
2717
- i0.ɵɵpipe(2, "translate");
2718
- i0.ɵɵelementEnd();
2719
- } if (rf & 2) {
2720
- i0.ɵɵadvance();
2721
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "fisico"));
2722
- } }
2723
- function SelectAcreedorComponent_ng_template_7_Template(rf, ctx) { if (rf & 1) {
2724
- i0.ɵɵelementStart(0, "tr", 9)(1, "td");
2725
- i0.ɵɵtext(2);
2726
- i0.ɵɵelementEnd();
2727
- i0.ɵɵelementStart(3, "td");
2728
- i0.ɵɵtext(4);
2729
- i0.ɵɵelementEnd();
2730
- i0.ɵɵelementStart(5, "td");
2731
- i0.ɵɵtemplate(6, SelectAcreedorComponent_ng_template_7_span_6_Template, 3, 3, "span", 10)(7, SelectAcreedorComponent_ng_template_7_span_7_Template, 3, 3, "span", 10);
2732
- i0.ɵɵelementEnd();
2733
- i0.ɵɵelementStart(8, "td");
2734
- i0.ɵɵtext(9);
2735
- i0.ɵɵelementEnd();
2736
- i0.ɵɵelementStart(10, "td");
2737
- i0.ɵɵtext(11);
2738
- i0.ɵɵelementEnd();
2739
- i0.ɵɵelementStart(12, "td");
2740
- i0.ɵɵtext(13);
2741
- i0.ɵɵpipe(14, "date");
2742
- i0.ɵɵelementEnd()();
2743
- } if (rf & 2) {
2744
- const acreedor_r1 = ctx.$implicit;
2745
- i0.ɵɵproperty("pSelectableRow", acreedor_r1);
2746
- i0.ɵɵadvance(2);
2747
- i0.ɵɵtextInterpolate(acreedor_r1.descripcionRazonSocial);
2748
- i0.ɵɵadvance(2);
2749
- i0.ɵɵtextInterpolate(acreedor_r1.descripcionRfc);
2750
- i0.ɵɵadvance(2);
2751
- i0.ɵɵproperty("ngIf", acreedor_r1.personaMoral);
2752
- i0.ɵɵadvance();
2753
- i0.ɵɵproperty("ngIf", acreedor_r1.personaFisica);
2754
- i0.ɵɵadvance(2);
2755
- i0.ɵɵtextInterpolate(acreedor_r1.atrasoDiasEntrega);
2756
- i0.ɵɵadvance(2);
2757
- i0.ɵɵtextInterpolate(acreedor_r1.limiteCredito);
2758
- i0.ɵɵadvance(2);
2759
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(14, 8, acreedor_r1.fechaUltimaCompra, "dd/MM/yyyy"));
2760
- } }
2761
- function SelectAcreedorComponent_ng_template_8_Template(rf, ctx) { if (rf & 1) {
2762
- i0.ɵɵelementStart(0, "tr")(1, "td");
2763
- i0.ɵɵtext(2);
2764
- i0.ɵɵpipe(3, "translate");
2765
- i0.ɵɵelementEnd()();
2766
- } if (rf & 2) {
2767
- i0.ɵɵadvance();
2768
- i0.ɵɵattribute("colspan", 6);
2769
- i0.ɵɵadvance();
2770
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "general.noRegistros"));
2771
- } }
2772
- class SelectAcreedorComponent {
2773
- constructor(acreedorService, paginanateService, translate) {
2774
- this.acreedorService = acreedorService;
2775
- this.paginanateService = paginanateService;
2776
- this.translate = translate;
2777
- this.params = [];
2778
- this.ordenar = [];
2779
- this.visible = false;
2780
- this.acreedorSeleccionado = new Proveedor();
2781
- this.select = new EventEmitter();
2782
- this.translate.get('es');
2783
- }
2784
- ngOnInit() {
2785
- this.page = this.paginanateService.getPage();
2786
- let arg = [];
2787
- this.ordenar = this.paginanateService.getOrden(arg, 'es');
2788
- this.acreedores = [];
2789
- }
2790
- cargarDatosAcreedores() {
2791
- this.params = this.paginanateService.getParams(this.page);
2792
- this.params.push({ param: 'estatus', value: true });
2793
- this.acreedorService.getAll(this.params).subscribe((data) => {
2794
- this.acreedores = data.data;
2795
- });
2796
- }
2797
- pagina(e) {
2798
- this.page.rows = e.rows;
2799
- this.page.offset = e.first;
2800
- this.cargarDatosAcreedores;
2801
- }
2802
- cerrarModal() {
2803
- this.select.emit(null);
2804
- this.visible = false;
2805
- }
2806
- seleccionarAcreedor(e) {
2807
- this.select.emit(e.data);
2808
- this.visible = false;
2809
- }
2810
- /** @nocollapse */ static { this.ɵfac = function SelectAcreedorComponent_Factory(t) { return new (t || SelectAcreedorComponent)(i0.ɵɵdirectiveInject(AcreedorService), i0.ɵɵdirectiveInject(PaginateService), i0.ɵɵdirectiveInject(i3$1.TranslateService)); }; }
2811
- /** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: SelectAcreedorComponent, selectors: [["select-acreedor"]], inputs: { visible: "visible", acreedorSeleccionado: "acreedorSeleccionado" }, outputs: { select: "select" }, decls: 10, vars: 14, consts: [["header", "Selecciona el acreedor", 3, "visibleChange", "onHide", "onShow", "visible"], [1, "p-inputgroup", "mt-2"], ["type", "text", "pInputText", "", "name", "filtro", 3, "ngModelChange", "keyup", "placeholder", "ngModel"], ["pButton", "", "type", "button", "icon", "pi pi-search", "styleClass", "p-button-secondary", 3, "click"], ["dataKey", "id", "selectionMode", "single", "scrollHeight", "350px", "responsiveLayout", "scroll", 3, "selectionChange", "onRowSelect", "value", "selection", "scrollable"], ["pTemplate", "header"], ["pTemplate", "body"], ["pTemplate", "emptymessage"], [3, "onPageChange", "rows", "totalRecords", "pageLinkSize", "rowsPerPageOptions"], [3, "pSelectableRow"], [4, "ngIf"]], template: function SelectAcreedorComponent_Template(rf, ctx) { if (rf & 1) {
2812
- i0.ɵɵelementStart(0, "p-dialog", 0);
2813
- i0.ɵɵtwoWayListener("visibleChange", function SelectAcreedorComponent_Template_p_dialog_visibleChange_0_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.visible, $event) || (ctx.visible = $event); return $event; });
2814
- i0.ɵɵlistener("onHide", function SelectAcreedorComponent_Template_p_dialog_onHide_0_listener() { return ctx.cerrarModal(); })("onShow", function SelectAcreedorComponent_Template_p_dialog_onShow_0_listener() { return ctx.cargarDatosAcreedores(); });
2815
- i0.ɵɵelementStart(1, "div", 1)(2, "input", 2);
2816
- i0.ɵɵpipe(3, "translate");
2817
- i0.ɵɵtwoWayListener("ngModelChange", function SelectAcreedorComponent_Template_input_ngModelChange_2_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.page.filtro, $event) || (ctx.page.filtro = $event); return $event; });
2818
- i0.ɵɵlistener("keyup", function SelectAcreedorComponent_Template_input_keyup_2_listener() { return ctx.cargarDatosAcreedores(); });
2819
- i0.ɵɵelementEnd();
2820
- i0.ɵɵelementStart(4, "button", 3);
2821
- i0.ɵɵlistener("click", function SelectAcreedorComponent_Template_button_click_4_listener() { return ctx.cargarDatosAcreedores(); });
2822
- i0.ɵɵelementEnd()();
2823
- i0.ɵɵelementStart(5, "p-table", 4);
2824
- i0.ɵɵtwoWayListener("selectionChange", function SelectAcreedorComponent_Template_p_table_selectionChange_5_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.acreedorSeleccionado, $event) || (ctx.acreedorSeleccionado = $event); return $event; });
2825
- i0.ɵɵlistener("onRowSelect", function SelectAcreedorComponent_Template_p_table_onRowSelect_5_listener($event) { return ctx.seleccionarAcreedor($event); });
2826
- i0.ɵɵtemplate(6, SelectAcreedorComponent_ng_template_6_Template, 19, 18, "ng-template", 5)(7, SelectAcreedorComponent_ng_template_7_Template, 15, 11, "ng-template", 6)(8, SelectAcreedorComponent_ng_template_8_Template, 4, 4, "ng-template", 7);
2827
- i0.ɵɵelementEnd();
2828
- i0.ɵɵelementStart(9, "p-paginator", 8);
2829
- i0.ɵɵlistener("onPageChange", function SelectAcreedorComponent_Template_p_paginator_onPageChange_9_listener($event) { return ctx.pagina($event); });
2830
- i0.ɵɵelementEnd()();
2831
- } if (rf & 2) {
2832
- i0.ɵɵtwoWayProperty("visible", ctx.visible);
2833
- i0.ɵɵadvance(2);
2834
- i0.ɵɵpropertyInterpolate1("placeholder", "", i0.ɵɵpipeBind1(3, 11, "buscar"), "...");
2835
- i0.ɵɵtwoWayProperty("ngModel", ctx.page.filtro);
2836
- i0.ɵɵadvance(3);
2837
- i0.ɵɵproperty("value", ctx.acreedores);
2838
- i0.ɵɵtwoWayProperty("selection", ctx.acreedorSeleccionado);
2839
- i0.ɵɵproperty("scrollable", true);
2840
- i0.ɵɵadvance(4);
2841
- i0.ɵɵproperty("rows", ctx.page.rows)("totalRecords", ctx.page.total)("pageLinkSize", 5)("rowsPerPageOptions", i0.ɵɵpureFunction0(13, _c0));
2842
- } }, dependencies: [i4.NgIf, i3.PrimeTemplate, i18.Table, i18.SelectableRow, i21.ButtonDirective, i22.InputText, i27.Paginator, i10.DefaultValueAccessor, i10.NgControlStatus, i10.NgModel, i33.Dialog, i4.DatePipe, i3$1.TranslatePipe], encapsulation: 2 }); }
2843
- }
2844
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectAcreedorComponent, [{
2845
- type: Component,
2846
- args: [{ selector: 'select-acreedor', template: "<p-dialog header=\"Selecciona el acreedor\" [(visible)]=\"visible\" (onHide)=\"cerrarModal()\"\n (onShow)=\"cargarDatosAcreedores()\">\n\n <div class=\"p-inputgroup mt-2\">\n <input type=\"text\" pInputText placeholder=\"{{'buscar'| translate}}...\"\n [(ngModel)]=\"page.filtro\" name=\"filtro\" (keyup)=\"cargarDatosAcreedores()\">\n <button pButton type=\"button\" icon=\"pi pi-search\" styleClass=\"p-button-secondary\" (click)=\"cargarDatosAcreedores()\"></button>\n </div>\n <p-table\n [value]=\"acreedores\"\n dataKey=\"id\" selectionMode=\"single\"\n [(selection)]=\"acreedorSeleccionado\"\n (onRowSelect)=\"seleccionarAcreedor($event)\"\n [scrollable]=\"true\"\n scrollHeight=\"350px\"\n responsiveLayout=\"scroll\" \n >\n\n <ng-template pTemplate=\"header\">\n <tr>\n <th>{{'razonSocial' | translate}}</th>\n <th>{{'rfc' | translate}}</th>\n <th>{{'tipo' | translate}}</th>\n <th>{{'atrasoDiasEntrega' | translate}}</th>\n <th>{{'limiteCredito' | translate}}</th>\n <th>{{'fechaUltimaCompra' | translate}}</th>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"body\" let-acreedor>\n <tr [pSelectableRow]=\"acreedor\">\n <td>{{acreedor.descripcionRazonSocial}}</td>\n <td>{{acreedor.descripcionRfc}}</td>\n <td>\n <span *ngIf=\"acreedor.personaMoral\">{{'moral' | translate}}</span>\n <span *ngIf=\"acreedor.personaFisica\">{{'fisico' | translate}}</span>\n </td>\n <td>{{acreedor.atrasoDiasEntrega}}</td>\n <td>{{acreedor.limiteCredito}}</td>\n <td>{{acreedor.fechaUltimaCompra | date:'dd/MM/yyyy'}}</td>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"emptymessage\">\n <tr>\n <td [attr.colspan]=\"6\">{{'general.noRegistros' | translate}}</td>\n </tr>\n </ng-template>\n </p-table>\n\n <p-paginator [rows]=\"page.rows\" [totalRecords]=\"page.total\" [pageLinkSize]=\"5\"\n (onPageChange)=\"pagina($event)\" [rowsPerPageOptions]=\"[10,25,50,100,500]\"></p-paginator>\n\n</p-dialog>" }]
2847
- }], () => [{ type: AcreedorService }, { type: PaginateService }, { type: i3$1.TranslateService }], { visible: [{
2848
- type: Input
2849
- }], acreedorSeleccionado: [{
2850
- type: Input
2851
- }], select: [{
2852
- type: Output
2853
- }] }); })();
2854
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SelectAcreedorComponent, { className: "SelectAcreedorComponent" }); })();
2855
-
2856
2237
  const components = [
2857
2238
  LoadingComponent,
2858
2239
  LoadingScreenComponent,
2859
2240
  LoginModalComponent,
2860
2241
  PdfModalComponent,
2861
2242
  SessionCreateComponent,
2862
- SelectClienteComponent,
2863
- SelectProveedorComponent,
2864
- SeleccionaArticuloComponent,
2865
- SelectAcreedorComponent
2243
+ SeleccionaArticuloComponent
2866
2244
  ];
2867
2245
  const exportComponents = components;
2868
2246
  const exportServices = [];
@@ -2922,7 +2300,7 @@ class CoreLibModule {
2922
2300
  useFactory: HttpLoaderFactory,
2923
2301
  deps: [HttpClient]
2924
2302
  }
2925
- }), i12.CardModule, i13.TooltipModule, i14.OverlayPanelModule, i15.RadioButtonModule, i16.CheckboxModule, i17.AutoCompleteModule, i18.TableModule, i19.TreeTableModule, i20.CalendarModule, i18.TableModule, i21.ButtonModule, i22.InputTextModule, i23.DropdownModule, i24.InputMaskModule, i25.MessagesModule, i26.MessageModule, i27.PaginatorModule, i28.ConfirmDialogModule, i29.ProgressBarModule, i30.TriStateCheckboxModule, i31.KeyFilterModule, i32.InputSwitchModule, i33.DialogModule, i34.TabViewModule, i35.PanelModule, i36.ToolbarModule, i37.SplitButtonModule, i38.FieldsetModule, i39.TreeModule, i40.TabMenuModule, i41.MenubarModule, TranslateModule] }); }
2303
+ }), i9.CardModule, i10.TooltipModule, i11.OverlayPanelModule, i12.RadioButtonModule, i13.CheckboxModule, i14.AutoCompleteModule, i15.TableModule, i16.TreeTableModule, i17.CalendarModule, i15.TableModule, i18.ButtonModule, i19.InputTextModule, i20.DropdownModule, i21.InputMaskModule, i22.MessagesModule, i23.MessageModule, i24.PaginatorModule, i25.ConfirmDialogModule, i26.ProgressBarModule, i27.TriStateCheckboxModule, i28.KeyFilterModule, i29.InputSwitchModule, i30.DialogModule, i31.TabViewModule, i32.PanelModule, i33.ToolbarModule, i34.SplitButtonModule, i35.FieldsetModule, i36.TreeModule, i37.TabMenuModule, i38.MenubarModule, TranslateModule] }); }
2926
2304
  }
2927
2305
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CoreLibModule, [{
2928
2306
  type: NgModule,
@@ -2953,7 +2331,30 @@ class CoreLibModule {
2953
2331
  exports: [components, contaComponents, primeNg, TranslateModule]
2954
2332
  }]
2955
2333
  }], null, null); })();
2956
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CoreLibModule, { declarations: [Error404Component, LoadingComponent, LoadingScreenComponent, LoginModalComponent, PdfModalComponent, SessionCreateComponent, SelectClienteComponent, SelectProveedorComponent, SeleccionaArticuloComponent, SelectAcreedorComponent, CclistaComponent, CcseleccionDialogComponent, SeleccionArticuloInformacionComponent], imports: [CommonModule, i12.CardModule, i13.TooltipModule, i14.OverlayPanelModule, i15.RadioButtonModule, i16.CheckboxModule, i17.AutoCompleteModule, i18.TableModule, i19.TreeTableModule, i20.CalendarModule, i18.TableModule, i21.ButtonModule, i22.InputTextModule, i23.DropdownModule, i24.InputMaskModule, i25.MessagesModule, i26.MessageModule, i27.PaginatorModule, i28.ConfirmDialogModule, i29.ProgressBarModule, i30.TriStateCheckboxModule, i31.KeyFilterModule, i32.InputSwitchModule, i33.DialogModule, i34.TabViewModule, i35.PanelModule, i36.ToolbarModule, i37.SplitButtonModule, i38.FieldsetModule, i39.TreeModule, i40.TabMenuModule, i41.MenubarModule, FormsModule, i1$1.ToastrModule, i3$1.TranslateModule], exports: [LoadingComponent, LoadingScreenComponent, LoginModalComponent, PdfModalComponent, SessionCreateComponent, SelectClienteComponent, SelectProveedorComponent, SeleccionaArticuloComponent, SelectAcreedorComponent, CclistaComponent, CcseleccionDialogComponent, i12.CardModule, i13.TooltipModule, i14.OverlayPanelModule, i15.RadioButtonModule, i16.CheckboxModule, i17.AutoCompleteModule, i18.TableModule, i19.TreeTableModule, i20.CalendarModule, i18.TableModule, i21.ButtonModule, i22.InputTextModule, i23.DropdownModule, i24.InputMaskModule, i25.MessagesModule, i26.MessageModule, i27.PaginatorModule, i28.ConfirmDialogModule, i29.ProgressBarModule, i30.TriStateCheckboxModule, i31.KeyFilterModule, i32.InputSwitchModule, i33.DialogModule, i34.TabViewModule, i35.PanelModule, i36.ToolbarModule, i37.SplitButtonModule, i38.FieldsetModule, i39.TreeModule, i40.TabMenuModule, i41.MenubarModule, TranslateModule] }); })();
2334
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CoreLibModule, { declarations: [Error404Component, LoadingComponent, LoadingScreenComponent, LoginModalComponent, PdfModalComponent, SessionCreateComponent, SeleccionaArticuloComponent, CclistaComponent, CcseleccionDialogComponent, SeleccionArticuloInformacionComponent], imports: [CommonModule, i9.CardModule, i10.TooltipModule, i11.OverlayPanelModule, i12.RadioButtonModule, i13.CheckboxModule, i14.AutoCompleteModule, i15.TableModule, i16.TreeTableModule, i17.CalendarModule, i15.TableModule, i18.ButtonModule, i19.InputTextModule, i20.DropdownModule, i21.InputMaskModule, i22.MessagesModule, i23.MessageModule, i24.PaginatorModule, i25.ConfirmDialogModule, i26.ProgressBarModule, i27.TriStateCheckboxModule, i28.KeyFilterModule, i29.InputSwitchModule, i30.DialogModule, i31.TabViewModule, i32.PanelModule, i33.ToolbarModule, i34.SplitButtonModule, i35.FieldsetModule, i36.TreeModule, i37.TabMenuModule, i38.MenubarModule, FormsModule, i1$1.ToastrModule, i2.TranslateModule], exports: [LoadingComponent, LoadingScreenComponent, LoginModalComponent, PdfModalComponent, SessionCreateComponent, SeleccionaArticuloComponent, CclistaComponent, CcseleccionDialogComponent, i9.CardModule, i10.TooltipModule, i11.OverlayPanelModule, i12.RadioButtonModule, i13.CheckboxModule, i14.AutoCompleteModule, i15.TableModule, i16.TreeTableModule, i17.CalendarModule, i15.TableModule, i18.ButtonModule, i19.InputTextModule, i20.DropdownModule, i21.InputMaskModule, i22.MessagesModule, i23.MessageModule, i24.PaginatorModule, i25.ConfirmDialogModule, i26.ProgressBarModule, i27.TriStateCheckboxModule, i28.KeyFilterModule, i29.InputSwitchModule, i30.DialogModule, i31.TabViewModule, i32.PanelModule, i33.ToolbarModule, i34.SplitButtonModule, i35.FieldsetModule, i36.TreeModule, i37.TabMenuModule, i38.MenubarModule, TranslateModule] }); })();
2335
+
2336
+ class Persona {
2337
+ constructor() {
2338
+ //this.estadoCivil= new EstadoCivil();
2339
+ //this.genero = new Genero();
2340
+ }
2341
+ }
2342
+
2343
+ class PersonaFisica {
2344
+ constructor() {
2345
+ this.datoPersona = new Persona();
2346
+ this.contactos = [];
2347
+ this.datoDirecciones = [];
2348
+ }
2349
+ }
2350
+
2351
+ class PersonaMoral {
2352
+ constructor() {
2353
+ this.representanteLegal = new PersonaFisica();
2354
+ this.contactos = [];
2355
+ this.datoDirecciones = [];
2356
+ }
2357
+ }
2957
2358
 
2958
2359
  class ControlAccesoService {
2959
2360
  constructor(authService) {
@@ -3224,7 +2625,7 @@ class Authenticated {
3224
2625
  }
3225
2626
  window.location.href = host;
3226
2627
  }
3227
- /** @nocollapse */ static { this.ɵfac = function Authenticated_Factory(t) { return new (t || Authenticated)(i0.ɵɵinject(AuthService), i0.ɵɵinject(ControlAccesoService), i0.ɵɵinject(i3$3.Router)); }; }
2628
+ /** @nocollapse */ static { this.ɵfac = function Authenticated_Factory(t) { return new (t || Authenticated)(i0.ɵɵinject(AuthService), i0.ɵɵinject(ControlAccesoService), i0.ɵɵinject(i3$2.Router)); }; }
3228
2629
  /** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: Authenticated, factory: Authenticated.ɵfac, providedIn: 'root' }); }
3229
2630
  }
3230
2631
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Authenticated, [{
@@ -3232,7 +2633,7 @@ class Authenticated {
3232
2633
  args: [{
3233
2634
  providedIn: 'root'
3234
2635
  }]
3235
- }], () => [{ type: AuthService }, { type: ControlAccesoService }, { type: i3$3.Router }], null); })();
2636
+ }], () => [{ type: AuthService }, { type: ControlAccesoService }, { type: i3$2.Router }], null); })();
3236
2637
 
3237
2638
  class VersionCheckService {
3238
2639
  constructor(http) {
@@ -3282,6 +2683,13 @@ class VersionCheckService {
3282
2683
  }]
3283
2684
  }], () => [{ type: i1.HttpClient }], null); })();
3284
2685
 
2686
+ class Agente {
2687
+ constructor() {
2688
+ // this.catalogoTipo= new CatalogoTipo();
2689
+ this.personaFisica = new PersonaFisica();
2690
+ }
2691
+ }
2692
+
3285
2693
  class AgenteService extends CrudService {
3286
2694
  constructor(httpClient) {
3287
2695
  super(httpClient, 'agente');
@@ -3356,6 +2764,10 @@ class CatalogoTipoService extends CrudService {
3356
2764
  }]
3357
2765
  }], () => [{ type: i1.HttpClient }], null); })();
3358
2766
 
2767
+ class ClasificadorTipo {
2768
+ constructor() { }
2769
+ }
2770
+
3359
2771
  class ClasificadorTipoService extends CrudService {
3360
2772
  constructor(http) {
3361
2773
  super(http, '/clasificadorTipo');
@@ -3388,6 +2800,15 @@ class ClaveMovimientoService extends CrudService {
3388
2800
  }]
3389
2801
  }], () => [{ type: i1.HttpClient }], null); })();
3390
2802
 
2803
+ class Cliente {
2804
+ constructor() {
2805
+ this.agenteCobrador = new Agente();
2806
+ this.agenteVendedor = new Agente();
2807
+ this.personaFisica = new PersonaFisica();
2808
+ this.personaMoral = new PersonaMoral();
2809
+ }
2810
+ }
2811
+
3391
2812
  class ClienteCuentaBanco {
3392
2813
  constructor() {
3393
2814
  this.banco = new Banco();
@@ -3407,6 +2828,23 @@ class ClienteFlete {
3407
2828
  }
3408
2829
  }
3409
2830
 
2831
+ class ClienteService extends CrudService {
2832
+ constructor(httpCliente) {
2833
+ super(httpCliente, '/cliente');
2834
+ }
2835
+ validar_archivos_bss(id) {
2836
+ return this.getHttp().get(this.getUrl('/cliente/validarClienteBss/') + id, this.buildAuth());
2837
+ }
2838
+ /** @nocollapse */ static { this.ɵfac = function ClienteService_Factory(t) { return new (t || ClienteService)(i0.ɵɵinject(i1.HttpClient)); }; }
2839
+ /** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: ClienteService, factory: ClienteService.ɵfac, providedIn: 'root' }); }
2840
+ }
2841
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ClienteService, [{
2842
+ type: Injectable,
2843
+ args: [{
2844
+ providedIn: 'root'
2845
+ }]
2846
+ }], () => [{ type: i1.HttpClient }], null); })();
2847
+
3410
2848
  class ClienteCuentaBancoService extends CrudService {
3411
2849
  constructor(httpClient) {
3412
2850
  super(httpClient, '/clienteCuentaBanco');
@@ -3618,6 +3056,15 @@ class PersonaFisicaService extends CrudService {
3618
3056
  }]
3619
3057
  }], () => [{ type: i1.HttpClient }], null); })();
3620
3058
 
3059
+ class Proveedor {
3060
+ constructor() {
3061
+ this.personaMoral = new PersonaMoral();
3062
+ this.catalogoTipo = new ClasificadorTipo();
3063
+ this.clasificadorTipo = new ClasificadorTipo();
3064
+ this.personaFisica = new PersonaFisica();
3065
+ }
3066
+ }
3067
+
3621
3068
  class ProveedorCuentaBanco {
3622
3069
  constructor() {
3623
3070
  this.banco = new Banco();
@@ -3633,6 +3080,21 @@ class ProveedorFlete {
3633
3080
  }
3634
3081
  }
3635
3082
 
3083
+ class ProveedorService extends CrudService {
3084
+ constructor(httpClient) {
3085
+ super(httpClient, '/proveedor');
3086
+ this.httpClient = httpClient;
3087
+ }
3088
+ /** @nocollapse */ static { this.ɵfac = function ProveedorService_Factory(t) { return new (t || ProveedorService)(i0.ɵɵinject(i1.HttpClient)); }; }
3089
+ /** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: ProveedorService, factory: ProveedorService.ɵfac, providedIn: 'root' }); }
3090
+ }
3091
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ProveedorService, [{
3092
+ type: Injectable,
3093
+ args: [{
3094
+ providedIn: 'root'
3095
+ }]
3096
+ }], () => [{ type: i1.HttpClient }], null); })();
3097
+
3636
3098
  class ProveedorCuentaBancoService extends CrudService {
3637
3099
  constructor(httpClient) {
3638
3100
  super(httpClient, '/proveedorCuentaBanco');
@@ -3747,25 +3209,6 @@ class TipoCatalogo {
3747
3209
  static { this.USO_CFDI = 11; }
3748
3210
  }
3749
3211
 
3750
- class AcreedorCuentaContableService extends CrudService {
3751
- constructor(httpClient) {
3752
- super(httpClient, 'acreedorCuentaContable');
3753
- this.httpClient = httpClient;
3754
- }
3755
- cuentasContables() {
3756
- let uRL = "/cuentaContable/obtieneCuentasContablesRecursivo/";
3757
- return this.httpClient.get(this.getUrl() + uRL, this.buildAuth());
3758
- }
3759
- /** @nocollapse */ static { this.ɵfac = function AcreedorCuentaContableService_Factory(t) { return new (t || AcreedorCuentaContableService)(i0.ɵɵinject(i1.HttpClient)); }; }
3760
- /** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: AcreedorCuentaContableService, factory: AcreedorCuentaContableService.ɵfac, providedIn: 'root' }); }
3761
- }
3762
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AcreedorCuentaContableService, [{
3763
- type: Injectable,
3764
- args: [{
3765
- providedIn: 'root'
3766
- }]
3767
- }], () => [{ type: i1.HttpClient }], null); })();
3768
-
3769
3212
  class CuentaContableModel {
3770
3213
  constructor() {
3771
3214
  }
@@ -3785,5 +3228,5 @@ class NormaInformacionFinancieraModel {
3785
3228
  * Generated bundle index. Do not edit.
3786
3229
  */
3787
3230
 
3788
- export { AcreedorCuentaContableService, AcreedorService, Agente, AgenteService, Almacen, AlmacenService, Auth, AuthService, Authenticated, Banco, BancoService, CanActivateGuard, CatalogoAdicionalService, CatalogoTipo, CatalogoTipoService, CclistaComponent, CcseleccionDialogComponent, ClasificadorTipo, ClasificadorTipoService, ClaveAumentoDisminucionService, ClaveMovimiento, ClaveMovimientoService, Cliente, ClienteCuentaBanco, ClienteCuentaBancoService, ClienteFlete, ClienteFleteService, ClienteService, ConfiguracionEmpresaAdministrativa, ControlAccesoService, CoreLibModule, CrudService, CuentaContableModel, DatoContacto, DatoContactoService, DatoDireccion, DatoDireccionService, Departamento, DepartamentoService, Empresa, EmpresaService, Error404Component, EstadoCivil, FileService, Flete, FleteService, FormaPago, FormaPagoService, Genero, GlobalService, HttpLoaderFactory, InitService, LoadingComponent, LoadingScreenComponent, LoadingScreenService, LoadingService, LoginModalComponent, LoginModalService, MessageService, Moneda, MonedaService, NormaInformacionFinancieraModel, PaginateService, PdfModalComponent, PdfModalService, Persona, PersonaFisica, PersonaFisicaService, PersonaMoral, PersonaMoralService, Proveedor, ProveedorCuentaBanco, ProveedorCuentaBancoService, ProveedorFlete, ProveedorFleteService, ProveedorService, SeleccionaArticuloComponent, SelectAcreedorComponent, SelectClienteComponent, SelectProveedorComponent, SerieDocumento, SerieDocumentoService, SessionCajaService, SessionCreateComponent, StockService, TipoCatalogo, TipoContacto, TipoContactoService, Ubicacion, UbicacionService, Usuario, VersionCheckService, httpInterceptor };
3231
+ export { Agente, AgenteService, Almacen, AlmacenService, Auth, AuthService, Authenticated, Banco, BancoService, CanActivateGuard, CatalogoAdicionalService, CatalogoTipo, CatalogoTipoService, CclistaComponent, CcseleccionDialogComponent, ClasificadorTipo, ClasificadorTipoService, ClaveAumentoDisminucionService, ClaveMovimiento, ClaveMovimientoService, Cliente, ClienteCuentaBanco, ClienteCuentaBancoService, ClienteFlete, ClienteFleteService, ClienteService, ConfiguracionEmpresaAdministrativa, ControlAccesoService, CoreLibModule, CrudService, CuentaContableModel, DatoContacto, DatoContactoService, DatoDireccion, DatoDireccionService, Departamento, DepartamentoService, Empresa, EmpresaService, Error404Component, EstadoCivil, FileService, Flete, FleteService, FormaPago, FormaPagoService, Genero, GlobalService, HttpLoaderFactory, InitService, LoadingComponent, LoadingScreenComponent, LoadingScreenService, LoadingService, LoginModalComponent, LoginModalService, MessageService, Moneda, MonedaService, NormaInformacionFinancieraModel, PaginateService, PdfModalComponent, PdfModalService, Persona, PersonaFisica, PersonaFisicaService, PersonaMoral, PersonaMoralService, Proveedor, ProveedorCuentaBanco, ProveedorCuentaBancoService, ProveedorFlete, ProveedorFleteService, ProveedorService, SeleccionaArticuloComponent, SerieDocumento, SerieDocumentoService, SessionCajaService, SessionCreateComponent, StockService, TipoCatalogo, TipoContacto, TipoContactoService, Ubicacion, UbicacionService, Usuario, VersionCheckService, httpInterceptor };
3789
3232
  //# sourceMappingURL=visorus-erp-core.mjs.map