@firestitch/app-message 12.5.4 → 12.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/app/helpers/index-name-value.d.ts +1 -1
  2. package/app/helpers/index.d.ts +1 -1
  3. package/app/modules/app-message/app-message.module.d.ts +8 -8
  4. package/app/modules/app-message/injectors/app-message-config.injector.d.ts +3 -3
  5. package/app/modules/app-message/injectors/index.d.ts +1 -1
  6. package/app/modules/app-message/interfaces/app-message-config.d.ts +30 -25
  7. package/app/modules/app-message/interfaces/index.d.ts +1 -1
  8. package/app/modules/app-message/types/index.d.ts +1 -1
  9. package/app/modules/app-message/types/types.type.d.ts +49 -40
  10. package/app/modules/message-preview/components/index.d.ts +1 -1
  11. package/app/modules/message-preview/components/preview/index.d.ts +1 -1
  12. package/app/modules/message-preview/components/preview/preview.component.d.ts +11 -11
  13. package/app/modules/message-preview/message-preview.module.d.ts +11 -11
  14. package/app/modules/message-queues/components/queue/queue.component.d.ts +44 -43
  15. package/app/modules/message-queues/components/queues/queues.component.d.ts +22 -24
  16. package/app/modules/message-queues/components/recipient/recipient.component.d.ts +10 -10
  17. package/app/modules/message-queues/consts/index.d.ts +1 -1
  18. package/app/modules/message-queues/consts/message-queue-event-type.const.d.ts +5 -5
  19. package/app/modules/message-queues/consts/message-queue-states.const.d.ts +5 -5
  20. package/app/modules/message-queues/enums/email-message-queue-format.enum.d.ts +5 -5
  21. package/app/modules/message-queues/enums/index.d.ts +3 -3
  22. package/app/modules/message-queues/enums/message-queue-event-type.enum.d.ts +4 -4
  23. package/app/modules/message-queues/enums/message-queue-state.enum.d.ts +9 -9
  24. package/app/modules/message-queues/enums/message-queue-type.enum.d.ts +4 -4
  25. package/app/modules/message-queues/message-queues.module.d.ts +29 -29
  26. package/app/modules/message-queues/pipes/linkify.pipe.d.ts +7 -7
  27. package/app/modules/message-queues/pipes/truncate.pipe.d.ts +7 -7
  28. package/app/modules/message-queues/services/message-queue.service.d.ts +12 -12
  29. package/app/modules/message-templates/components/index.d.ts +2 -2
  30. package/app/modules/message-templates/components/template/index.d.ts +1 -1
  31. package/app/modules/message-templates/components/template/template.component.d.ts +23 -23
  32. package/app/modules/message-templates/components/templates/index.d.ts +1 -1
  33. package/app/modules/message-templates/components/templates/templates.component.d.ts +19 -19
  34. package/app/modules/message-templates/message-templates.module.d.ts +25 -25
  35. package/app/modules/messages/components/attachments/attachments.component.d.ts +18 -0
  36. package/app/modules/messages/components/attachments/index.d.ts +1 -0
  37. package/app/modules/messages/components/index.d.ts +3 -2
  38. package/app/modules/messages/components/message/index.d.ts +1 -1
  39. package/app/modules/messages/components/message/message.component.d.ts +30 -32
  40. package/app/modules/messages/components/messages/index.d.ts +1 -1
  41. package/app/modules/messages/components/messages/messages.component.d.ts +19 -19
  42. package/app/modules/messages/consts/email-message-formats.const.d.ts +5 -5
  43. package/app/modules/messages/consts/index.d.ts +1 -1
  44. package/app/modules/messages/enums/email-message-format.enum.d.ts +5 -5
  45. package/app/modules/messages/enums/index.d.ts +1 -1
  46. package/app/modules/messages/messages.module.d.ts +32 -29
  47. package/app/modules/webhooks/components/webhooks/webhooks.component.d.ts +15 -15
  48. package/app/modules/webhooks/webhooks.module.d.ts +9 -9
  49. package/bundles/firestitch-app-message.umd.js +1609 -1521
  50. package/bundles/firestitch-app-message.umd.js.map +1 -1
  51. package/esm2015/app/helpers/index-name-value.js +7 -7
  52. package/esm2015/app/helpers/index.js +1 -1
  53. package/esm2015/app/modules/app-message/app-message.module.js +16 -16
  54. package/esm2015/app/modules/app-message/injectors/app-message-config.injector.js +3 -3
  55. package/esm2015/app/modules/app-message/injectors/index.js +1 -1
  56. package/esm2015/app/modules/app-message/interfaces/app-message-config.js +2 -2
  57. package/esm2015/app/modules/app-message/interfaces/index.js +1 -1
  58. package/esm2015/app/modules/app-message/types/index.js +1 -1
  59. package/esm2015/app/modules/app-message/types/types.type.js +2 -2
  60. package/esm2015/app/modules/message-preview/components/index.js +1 -1
  61. package/esm2015/app/modules/message-preview/components/preview/index.js +1 -1
  62. package/esm2015/app/modules/message-preview/components/preview/preview.component.js +28 -28
  63. package/esm2015/app/modules/message-preview/message-preview.module.js +37 -37
  64. package/esm2015/app/modules/message-queues/components/queue/queue.component.js +214 -209
  65. package/esm2015/app/modules/message-queues/components/queues/queues.component.js +146 -147
  66. package/esm2015/app/modules/message-queues/components/recipient/recipient.component.js +31 -30
  67. package/esm2015/app/modules/message-queues/consts/index.js +1 -1
  68. package/esm2015/app/modules/message-queues/consts/message-queue-event-type.const.js +5 -5
  69. package/esm2015/app/modules/message-queues/consts/message-queue-states.const.js +10 -10
  70. package/esm2015/app/modules/message-queues/enums/email-message-queue-format.enum.js +6 -6
  71. package/esm2015/app/modules/message-queues/enums/index.js +3 -3
  72. package/esm2015/app/modules/message-queues/enums/message-queue-event-type.enum.js +5 -5
  73. package/esm2015/app/modules/message-queues/enums/message-queue-state.enum.js +10 -10
  74. package/esm2015/app/modules/message-queues/enums/message-queue-type.enum.js +5 -5
  75. package/esm2015/app/modules/message-queues/message-queues.module.js +119 -119
  76. package/esm2015/app/modules/message-queues/pipes/linkify.pipe.js +21 -21
  77. package/esm2015/app/modules/message-queues/pipes/truncate.pipe.js +21 -21
  78. package/esm2015/app/modules/message-queues/services/message-queue.service.js +28 -28
  79. package/esm2015/app/modules/message-templates/components/index.js +2 -2
  80. package/esm2015/app/modules/message-templates/components/template/index.js +1 -1
  81. package/esm2015/app/modules/message-templates/components/template/template.component.js +83 -83
  82. package/esm2015/app/modules/message-templates/components/templates/index.js +1 -1
  83. package/esm2015/app/modules/message-templates/components/templates/templates.component.js +83 -83
  84. package/esm2015/app/modules/message-templates/message-templates.module.js +97 -97
  85. package/esm2015/app/modules/messages/components/attachments/attachments.component.js +87 -0
  86. package/esm2015/app/modules/messages/components/attachments/index.js +2 -0
  87. package/esm2015/app/modules/messages/components/index.js +4 -3
  88. package/esm2015/app/modules/messages/components/message/index.js +1 -1
  89. package/esm2015/app/modules/messages/components/message/message.component.js +128 -137
  90. package/esm2015/app/modules/messages/components/messages/index.js +1 -1
  91. package/esm2015/app/modules/messages/components/messages/messages.component.js +74 -74
  92. package/esm2015/app/modules/messages/consts/email-message-formats.const.js +6 -6
  93. package/esm2015/app/modules/messages/consts/index.js +1 -1
  94. package/esm2015/app/modules/messages/enums/email-message-format.enum.js +6 -6
  95. package/esm2015/app/modules/messages/enums/index.js +1 -1
  96. package/esm2015/app/modules/messages/messages.module.js +125 -114
  97. package/esm2015/app/modules/webhooks/components/webhooks/webhooks.component.js +65 -64
  98. package/esm2015/app/modules/webhooks/webhooks.module.js +29 -29
  99. package/esm2015/firestitch-app-message.js +4 -4
  100. package/esm2015/public_api.js +17 -17
  101. package/fesm2015/firestitch-app-message.js +1221 -1135
  102. package/fesm2015/firestitch-app-message.js.map +1 -1
  103. package/firestitch-app-message.d.ts +5 -5
  104. package/package.json +1 -1
  105. package/public_api.d.ts +15 -15
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/router'), require('@angular/flex-layout'), require('@angular/material/button'), require('@angular/material/core'), require('@angular/material/dialog'), require('@angular/material/form-field'), require('@angular/material/input'), require('@angular/material/select'), require('@angular/material/tabs'), require('@angular/material/checkbox'), require('@angular/material/tooltip'), require('@firestitch/label'), require('@firestitch/dialog'), require('@firestitch/list'), require('@firestitch/skeleton'), require('@angular/forms'), require('@firestitch/form'), require('@firestitch/text-editor'), require('@firestitch/html-editor'), require('rxjs/operators'), require('rxjs'), require('@firestitch/filter'), require('@firestitch/iframe'), require('@firestitch/prompt'), require('@firestitch/message'), require('@angular/flex-layout/flex'), require('@angular/material/icon'), require('@firestitch/date'), require('@firestitch/selection'), require('anchorme')) :
3
- typeof define === 'function' && define.amd ? define('@firestitch/app-message', ['exports', '@angular/core', '@angular/common', '@angular/router', '@angular/flex-layout', '@angular/material/button', '@angular/material/core', '@angular/material/dialog', '@angular/material/form-field', '@angular/material/input', '@angular/material/select', '@angular/material/tabs', '@angular/material/checkbox', '@angular/material/tooltip', '@firestitch/label', '@firestitch/dialog', '@firestitch/list', '@firestitch/skeleton', '@angular/forms', '@firestitch/form', '@firestitch/text-editor', '@firestitch/html-editor', 'rxjs/operators', 'rxjs', '@firestitch/filter', '@firestitch/iframe', '@firestitch/prompt', '@firestitch/message', '@angular/flex-layout/flex', '@angular/material/icon', '@firestitch/date', '@firestitch/selection', 'anchorme'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.firestitch = global.firestitch || {}, global.firestitch["app-message"] = {}), global.ng.core, global.ng.common, global.ng.router, global.ng.flexLayout, global.ng.material.button, global.ng.material.core, global.ng.material.dialog, global.ng.material.formField, global.ng.material.input, global.ng.material.select, global.ng.material.tabs, global.ng.material.checkbox, global.ng.material.tooltip, global.i6$1, global.i4, global.i2$2, global.i13, global.ng.forms, global.i15, global.i9, global.i10, global.rxjs.operators, global.rxjs, global.filter, global.i2, global.i1$1, global.i2$1, global.ng.flexLayout.flex, global.ng.material.icon, global.i10$1, global.selection, global.anchorme));
5
- })(this, (function (exports, i0, i16, router, flexLayout, i3, i8, i1, i6, i18, i7, i5, checkbox, i3$1, i6$1, i4, i2$2, i13, i14, i15, i9, i10, operators, rxjs, filter, i2, i1$1, i2$1, i17, i1$2, i10$1, selection, anchorme) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/router'), require('@angular/flex-layout'), require('@angular/material/button'), require('@angular/material/core'), require('@angular/material/dialog'), require('@angular/material/form-field'), require('@angular/material/input'), require('@angular/material/select'), require('@angular/material/tabs'), require('@angular/material/checkbox'), require('@angular/material/tooltip'), require('@firestitch/label'), require('@firestitch/dialog'), require('@firestitch/list'), require('@firestitch/skeleton'), require('@firestitch/tabs'), require('@angular/forms'), require('@firestitch/form'), require('@firestitch/text-editor'), require('@firestitch/html-editor'), require('rxjs/operators'), require('rxjs'), require('@firestitch/filter'), require('@firestitch/iframe'), require('@firestitch/prompt'), require('@firestitch/message'), require('@firestitch/common'), require('@angular/flex-layout/flex'), require('@angular/material/icon'), require('@firestitch/date'), require('@firestitch/selection'), require('anchorme')) :
3
+ typeof define === 'function' && define.amd ? define('@firestitch/app-message', ['exports', '@angular/core', '@angular/common', '@angular/router', '@angular/flex-layout', '@angular/material/button', '@angular/material/core', '@angular/material/dialog', '@angular/material/form-field', '@angular/material/input', '@angular/material/select', '@angular/material/tabs', '@angular/material/checkbox', '@angular/material/tooltip', '@firestitch/label', '@firestitch/dialog', '@firestitch/list', '@firestitch/skeleton', '@firestitch/tabs', '@angular/forms', '@firestitch/form', '@firestitch/text-editor', '@firestitch/html-editor', 'rxjs/operators', 'rxjs', '@firestitch/filter', '@firestitch/iframe', '@firestitch/prompt', '@firestitch/message', '@firestitch/common', '@angular/flex-layout/flex', '@angular/material/icon', '@firestitch/date', '@firestitch/selection', 'anchorme'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.firestitch = global.firestitch || {}, global.firestitch["app-message"] = {}), global.ng.core, global.ng.common, global.ng.router, global.ng.flexLayout, global.ng.material.button, global.ng.material.core, global.ng.material.dialog, global.ng.material.formField, global.ng.material.input, global.ng.material.select, global.ng.material.tabs, global.ng.material.checkbox, global.ng.material.tooltip, global.i6$1, global.i4, global.i2$1, global.i14, global.i18, global.ng.forms, global.i16, global.i9, global.i10, global.rxjs.operators, global.rxjs, global.filter, global.i2, global.i1$2, global.i1$1, global.i3$1, global.ng.flexLayout.flex, global.ng.material.icon, global.i10$1, global.selection, global.anchorme));
5
+ })(this, (function (exports, i0, i17, router, flexLayout, i3, i8, i1, i6, i20, i7, i5, checkbox, i3$2, i6$1, i4, i2$1, i14, i18, i15, i16, i9, i10, operators, rxjs, filter, i2, i1$2, i1$1, i3$1, i19, i1$3, i10$1, selection, anchorme) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -25,1600 +25,1688 @@
25
25
  }
26
26
 
27
27
  var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
28
- var i16__namespace = /*#__PURE__*/_interopNamespace(i16);
28
+ var i17__namespace = /*#__PURE__*/_interopNamespace(i17);
29
29
  var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
30
30
  var i8__namespace = /*#__PURE__*/_interopNamespace(i8);
31
31
  var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
32
32
  var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
33
- var i18__namespace = /*#__PURE__*/_interopNamespace(i18);
33
+ var i20__namespace = /*#__PURE__*/_interopNamespace(i20);
34
34
  var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
35
35
  var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
36
- var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$1);
36
+ var i3__namespace$2 = /*#__PURE__*/_interopNamespace(i3$2);
37
37
  var i6__namespace$1 = /*#__PURE__*/_interopNamespace(i6$1);
38
38
  var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
39
- var i2__namespace$2 = /*#__PURE__*/_interopNamespace(i2$2);
40
- var i13__namespace = /*#__PURE__*/_interopNamespace(i13);
39
+ var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
41
40
  var i14__namespace = /*#__PURE__*/_interopNamespace(i14);
41
+ var i18__namespace = /*#__PURE__*/_interopNamespace(i18);
42
42
  var i15__namespace = /*#__PURE__*/_interopNamespace(i15);
43
+ var i16__namespace = /*#__PURE__*/_interopNamespace(i16);
43
44
  var i9__namespace = /*#__PURE__*/_interopNamespace(i9);
44
45
  var i10__namespace = /*#__PURE__*/_interopNamespace(i10);
45
46
  var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
46
- var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
47
- var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
48
- var i17__namespace = /*#__PURE__*/_interopNamespace(i17);
49
47
  var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$2);
48
+ var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
49
+ var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$1);
50
+ var i19__namespace = /*#__PURE__*/_interopNamespace(i19);
51
+ var i1__namespace$3 = /*#__PURE__*/_interopNamespace(i1$3);
50
52
  var i10__namespace$1 = /*#__PURE__*/_interopNamespace(i10$1);
51
53
  var anchorme__default = /*#__PURE__*/_interopDefaultLegacy(anchorme);
52
54
 
53
- var EmailMessageFormat;
54
- (function (EmailMessageFormat) {
55
- EmailMessageFormat["Text"] = "T";
56
- EmailMessageFormat["HTML"] = "H";
57
- EmailMessageFormat["RichText"] = "R";
55
+ var EmailMessageFormat;
56
+ (function (EmailMessageFormat) {
57
+ EmailMessageFormat["Text"] = "T";
58
+ EmailMessageFormat["HTML"] = "H";
59
+ EmailMessageFormat["RichText"] = "R";
58
60
  })(EmailMessageFormat || (EmailMessageFormat = {}));
59
61
 
60
- var EmailMessageFormats = [
61
- { name: 'Text', value: EmailMessageFormat.Text },
62
- { name: 'HTML', value: EmailMessageFormat.HTML },
63
- { name: 'Rich Text', value: EmailMessageFormat.RichText }
62
+ var EmailMessageFormats = [
63
+ { name: 'Text', value: EmailMessageFormat.Text },
64
+ { name: 'HTML', value: EmailMessageFormat.HTML },
65
+ { name: 'Rich Text', value: EmailMessageFormat.RichText }
64
66
  ];
65
67
 
66
- var PreviewComponent = /** @class */ (function () {
67
- function PreviewComponent(_data) {
68
- this._data = _data;
69
- this.html = _data.html;
70
- this.styles = _data.styles;
71
- }
72
- PreviewComponent.prototype.ngOnInit = function () {
73
- };
74
- return PreviewComponent;
75
- }());
76
- PreviewComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PreviewComponent, deps: [{ token: i1.MAT_DIALOG_DATA }], target: i0__namespace.ɵɵFactoryTarget.Component });
77
- PreviewComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: PreviewComponent, selector: "ng-component", ngImport: i0__namespace, template: "<fs-dialog>\n <div mat-dialog-title>Preview</div>\n <mat-dialog-content>\n <fs-iframe\n [html]=\"html\"\n [styles]=\"styles\">\n </fs-iframe>\n </mat-dialog-content>\n <mat-dialog-actions>\n <button mat-button [mat-dialog-close]=\"null\" color=\"primary\" type=\"button\">Done</button>\n </mat-dialog-actions>\n</fs-dialog>\n", styles: [""], components: [{ type: i4__namespace.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode"] }, { type: i2__namespace.FsIFrameComponent, selector: "fs-iframe", inputs: ["html", "styles"] }, { type: i3__namespace.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i1__namespace.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1__namespace.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i1__namespace.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i1__namespace.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["type", "mat-dialog-close", "aria-label", "matDialogClose"], exportAs: ["matDialogClose"] }] });
78
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PreviewComponent, decorators: [{
79
- type: i0.Component,
80
- args: [{
81
- templateUrl: './preview.component.html',
82
- styleUrls: ['./preview.component.scss']
83
- }]
84
- }], ctorParameters: function () {
85
- return [{ type: undefined, decorators: [{
86
- type: i0.Inject,
87
- args: [i1.MAT_DIALOG_DATA]
88
- }] }];
68
+ var PreviewComponent = /** @class */ (function () {
69
+ function PreviewComponent(_data) {
70
+ this._data = _data;
71
+ this.html = _data.html;
72
+ this.styles = _data.styles;
73
+ }
74
+ PreviewComponent.prototype.ngOnInit = function () {
75
+ };
76
+ return PreviewComponent;
77
+ }());
78
+ PreviewComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PreviewComponent, deps: [{ token: i1.MAT_DIALOG_DATA }], target: i0__namespace.ɵɵFactoryTarget.Component });
79
+ PreviewComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: PreviewComponent, selector: "ng-component", ngImport: i0__namespace, template: "<fs-dialog>\n <div mat-dialog-title>Preview</div>\n <mat-dialog-content>\n <fs-iframe\n [html]=\"html\"\n [styles]=\"styles\">\n </fs-iframe>\n </mat-dialog-content>\n <mat-dialog-actions>\n <button mat-button [mat-dialog-close]=\"null\" color=\"primary\" type=\"button\">Done</button>\n </mat-dialog-actions>\n</fs-dialog>\n", styles: [""], components: [{ type: i4__namespace.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode"] }, { type: i2__namespace.FsIFrameComponent, selector: "fs-iframe", inputs: ["html", "styles"] }, { type: i3__namespace.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i1__namespace.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1__namespace.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i1__namespace.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i1__namespace.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["type", "mat-dialog-close", "aria-label", "matDialogClose"], exportAs: ["matDialogClose"] }] });
80
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: PreviewComponent, decorators: [{
81
+ type: i0.Component,
82
+ args: [{
83
+ templateUrl: './preview.component.html',
84
+ styleUrls: ['./preview.component.scss']
85
+ }]
86
+ }], ctorParameters: function () {
87
+ return [{ type: undefined, decorators: [{
88
+ type: i0.Inject,
89
+ args: [i1.MAT_DIALOG_DATA]
90
+ }] }];
89
91
  } });
90
92
 
91
- var FS_APP_MESSAGE_ROOT_CONFIG = new i0.InjectionToken('fs-app-message-root-config');
93
+ var FS_APP_MESSAGE_ROOT_CONFIG = new i0.InjectionToken('fs-app-message-root-config');
92
94
  var FS_APP_MESSAGE_CONFIG = new i0.InjectionToken('fs-app-message-config');
93
95
 
94
- var MessageComponent = /** @class */ (function () {
95
- function MessageComponent(_config, _data, _prompt, _message, _dialog, _cdRef) {
96
- var _this = this;
97
- this._config = _config;
98
- this._data = _data;
99
- this._prompt = _prompt;
100
- this._message = _message;
101
- this._dialog = _dialog;
102
- this._cdRef = _cdRef;
103
- this.messageTemplates = [];
104
- this.emailMessageFormats = EmailMessageFormats;
105
- this.emailMessageFormat = EmailMessageFormat;
106
- this.save = function () {
107
- return _this._config.saveMessage(_this.message)
108
- .pipe(operators.tap(function () {
109
- _this._message.success('Saved Changes');
110
- }));
111
- };
112
- }
113
- MessageComponent.prototype.ngOnInit = function () {
114
- var _this = this;
115
- this._config.loadMessage(this._data.message)
116
- .subscribe(function (response) {
117
- _this.message = response;
118
- if (_this.message.emailMessage && _this.message.emailMessage.customize === undefined) {
119
- _this.message.emailMessage.customize = true;
120
- }
121
- if (_this.message.smsMessage && _this.message.smsMessage.customize === undefined) {
122
- _this.message.smsMessage.customize = true;
123
- }
124
- _this._cdRef.markForCheck();
125
- });
126
- this._config.loadMessageTemplates()
127
- .subscribe(function (data) {
128
- _this.messageTemplates = data.data;
129
- _this._cdRef.markForCheck();
130
- });
131
- };
132
- MessageComponent.prototype.tabChange = function (event) {
133
- switch (event.tab.textLabel) {
134
- case 'SMS Message':
135
- this.tab = 'sms';
136
- break;
137
- case 'Email Message':
138
- this.tab = 'email';
139
- break;
140
- default:
141
- this.tab = null;
142
- }
143
- };
144
- MessageComponent.prototype.openPreview = function () {
145
- var _this = this;
146
- var html = this.message.emailMessage.body;
147
- var styles = this.message.emailMessage.styles;
148
- if (this.message.emailMessage.messageTemplateId) {
149
- var messageTemplate = this.messageTemplates
150
- .find(function (item) {
151
- return _this.message.emailMessage.messageTemplateId === item.id;
152
- });
153
- if (messageTemplate) {
154
- html = messageTemplate.content.replace('{$content}', html);
155
- styles = messageTemplate.styles.concat(styles);
156
- }
157
- }
158
- this._dialog.open(PreviewComponent, {
159
- data: {
160
- styles: styles,
161
- html: html,
162
- },
163
- width: '95%'
164
- });
165
- };
166
- MessageComponent.prototype.sendTest = function (type) {
167
- var _this = this;
168
- rxjs.of(true)
169
- .pipe(operators.switchMap(function () {
170
- return type === 'email' ? _this._config.getTestEmail() : rxjs.of('');
171
- }), operators.switchMap(function (default_) {
172
- var typeName = type === 'email' ? 'an email' : 'phone number';
173
- return _this._prompt.input({
174
- label: "Please enter " + typeName + " to send test to",
175
- title: 'Send Test',
176
- commitLabel: 'Send',
177
- default: default_,
178
- required: true
179
- });
180
- }))
181
- .subscribe(function (value) {
182
- _this._config.testMessage(_this.message, value, type)
183
- .subscribe(function () {
184
- _this._message.success('Test Sent');
185
- });
186
- });
187
- };
188
- return MessageComponent;
189
- }());
190
- MessageComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: MessageComponent, deps: [{ token: FS_APP_MESSAGE_CONFIG }, { token: i1.MAT_DIALOG_DATA }, { token: i1__namespace$1.FsPrompt }, { token: i2__namespace$1.FsMessage }, { token: i1__namespace.MatDialog }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
191
- MessageComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: MessageComponent, selector: "ng-component", ngImport: i0__namespace, template: "<form\n fsForm\n [submit]=\"save\"\n #form=\"ngForm\"\n *fsSkeleton=\"message\"\n [confirmTabs]=\"false\">\n <fs-dialog *ngIf=\"message\">\n <div mat-dialog-title>Edit Message</div>\n <mat-dialog-content>\n\n <mat-tab-group (selectedTabChange)=\"tabChange($event)\">\n <mat-tab label=\"General\">\n <ng-template matTabContent>\n <div fxLayout=\"column\">\n <mat-form-field>\n <input\n matInput\n placeholder=\"Name\"\n [(ngModel)]=\"message.name\"\n name=\"Name\"\n required>\n </mat-form-field>\n <mat-form-field>\n <input\n matInput\n placeholder=\"Description\"\n [(ngModel)]=\"message.description\"\n name=\"description\">\n </mat-form-field>\n\n <div\n fxLayout=\"row\"\n fxLayoutGap=\"10px\"\n fxLayout.xs=\"column\"\n fxLayout.sm=\"column\">\n <mat-form-field fxFlex>\n <input\n matInput\n placeholder=\"From Email\"\n [(ngModel)]=\"message.emailMessage.fromEmail\"\n name=\"from_email\">\n </mat-form-field>\n <mat-form-field fxFlex>\n <input\n matInput\n placeholder=\"From Name\"\n [(ngModel)]=\"message.emailMessage.fromName\"\n name=\"from_name\">\n </mat-form-field>\n <mat-form-field fxFlex>\n <input\n matInput\n placeholder=\"Reply To\"\n [(ngModel)]=\"message.emailMessage.replyTo\"\n name=\"reply_to\">\n </mat-form-field>\n </div>\n\n <div\n fxLayout=\"row\"\n fxLayoutGap=\"10px\"\n fxLayout.xs=\"column\"\n fxLayout.sm=\"column\">\n <mat-form-field fxFlex>\n <input\n matInput\n placeholder=\"To\"\n [(ngModel)]=\"message.emailMessage.toRecipients\"\n name=\"to\">\n </mat-form-field>\n <mat-form-field fxFlex>\n <input\n matInput\n placeholder=\"CC\"\n [(ngModel)]=\"message.emailMessage.ccRecipients\"\n name=\"cc\">\n </mat-form-field>\n <mat-form-field fxFlex>\n <input\n matInput\n placeholder=\"BCC\"\n [(ngModel)]=\"message.emailMessage.bccRecipients\"\n name=\"bcc\">\n </mat-form-field>\n </div>\n </div>\n </ng-template>\n </mat-tab>\n <mat-tab label=\"Email Message\" *ngIf=\"message.emailMessage\">\n <ng-template matTabContent>\n <div fxLayout=\"column\">\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <mat-form-field>\n <mat-select\n required\n placeholder=\"Customize Message\"\n [(ngModel)]=\"message.emailMessage.customize\"\n name=\"customizeEmail\">\n <mat-option [value]=\"true\">Yes</mat-option>\n <mat-option [value]=\"false\">No</mat-option>\n </mat-select>\n </mat-form-field>\n <mat-form-field>\n <mat-select\n required\n placeholder=\"Format\"\n [(ngModel)]=\"message.emailMessage.format\"\n name=\"format\">\n <mat-option *ngFor=\"let item of emailMessageFormats\" [value]=\"item.value\">\n {{item.name}}\n </mat-option>\n </mat-select>\n </mat-form-field>\n <mat-form-field>\n <mat-select\n placeholder=\"Template\"\n [(ngModel)]=\"message.emailMessage.messageTemplateId\"\n name=\"template\">\n <mat-option [value]=\"null\">None</mat-option>\n <mat-option *ngFor=\"let item of messageTemplates\" [value]=\"item.id\">\n {{item.name}}\n </mat-option>\n </mat-select>\n </mat-form-field>\n </div>\n <ng-container *ngIf=\"message.emailMessage.customize\">\n <mat-form-field fxFlex>\n <input\n matInput\n placeholder=\"Subject\"\n [(ngModel)]=\"message.emailMessage.subject\"\n name=\"name\"\n required>\n </mat-form-field>\n\n <div [@.disabled]=\"true\">\n <mat-tab-group [dynamicHeight]=\"false\">\n <mat-tab label=\"Content\">\n <ng-template matTabContent>\n <fs-text-editor\n *ngIf=\"message.emailMessage.format===emailMessageFormat.HTML\"\n [(ngModel)]=\"message.emailMessage.body\"\n name=\"body\"\n [config]=\"{ language: 'html '}\">\n </fs-text-editor>\n\n <fs-html-editor\n *ngIf=\"message.emailMessage.format===emailMessageFormat.RichText\"\n [(ngModel)]=\"message.emailMessage.body\"\n name=\"body\">\n </fs-html-editor>\n\n <fs-text-editor\n *ngIf=\"message.emailMessage.format===emailMessageFormat.Text\"\n [(ngModel)]=\"message.emailMessage.body\"\n name=\"emailMessageBody\"\n [config]=\"{ language: 'text' }\">\n </fs-text-editor>\n </ng-template>\n </mat-tab>\n <mat-tab\n *ngIf=\"message.emailMessage.format===emailMessageFormat.HTML || message.emailMessage.format===emailMessageFormat.RichText\"\n label=\"Styles\">\n <ng-template matTabContent>\n <fs-text-editor\n [(ngModel)]=\"message.emailMessage.styles\"\n name=\"styles\"\n [config]=\"{ language: 'scss' }\">\n </fs-text-editor>\n </ng-template>\n </mat-tab>\n </mat-tab-group>\n </div>\n\n </ng-container>\n\n <ng-container *ngIf=\"!message.emailMessage.customize\">\n <fs-label-field>\n <fs-label>Subject</fs-label>\n {{message.defaultEmailSubject}}\n </fs-label-field>\n <div>\n <fs-label-field>\n <fs-label>Content</fs-label>\n <div class=\"email-body-html-default\">\n <fs-html-renderer\n *ngIf=\"message.emailMessage.format===emailMessageFormat.RichText || message.emailMessage.format===emailMessageFormat.HTML\"\n [html]=\"message.defaultEmailBody\">\n </fs-html-renderer>\n </div>\n <div\n class=\"email-body-text-default\"\n *ngIf=\"message.emailMessage.format===emailMessageFormat.Text\">\n {{message.defaultEmailBody}}\n </div>\n </fs-label-field>\n </div>\n </ng-container>\n </div>\n </ng-template>\n </mat-tab>\n\n <mat-tab label=\"SMS Message\" *ngIf=\"message.smsMessage\">\n <ng-template matTabContent>\n <mat-form-field>\n <mat-select\n required\n placeholder=\"Customize Message\"\n [(ngModel)]=\"message.smsMessage.customize\"\n name=\"customizeSms\">\n <mat-option [value]=\"true\">Yes</mat-option>\n <mat-option [value]=\"false\">No</mat-option>\n </mat-select>\n </mat-form-field>\n <div\n *ngIf=\"message.smsMessage.customize\"\n [@.disabled]=\"true\">\n <mat-tab-group [dynamicHeight]=\"false\">\n <mat-tab label=\"Content\">\n <ng-template matTabContent>\n <fs-text-editor\n [(ngModel)]=\"message.smsMessage.message\"\n name=\"smsMessageMessage\"\n [config]=\"{ language: 'text '}\">\n </fs-text-editor>\n </ng-template>\n </mat-tab>\n </mat-tab-group>\n </div>\n <fs-label-field *ngIf=\"!message.smsMessage.customize\">\n <fs-label>Message</fs-label>\n {{message.defaultSmsMessage}}\n </fs-label-field>\n </ng-template>\n </mat-tab>\n\n <mat-tab label=\"Variables\" *ngIf=\"message.variables\">\n <ng-template matTabContent>\n <div *ngFor=\"let variable of message.variables\" class=\"variable\">\n {{variable.name}}\n </div>\n </ng-template>\n </mat-tab>\n\n <mat-tab label=\"Defaults\">\n <ng-template matTabContent>\n <ng-container *ngIf=\"message.emailMessage\">\n <h2 *ngIf=\"message.emailMessage && message.smsMessage\">Email</h2>\n <fs-label-field>\n <fs-label>Subject</fs-label>\n <div class=\"content\">{{message.defaultEmailSubject}}</div>\n </fs-label-field>\n <fs-label-field>\n <fs-label>Content</fs-label>\n <div class=\"content\">{{message.defaultEmailBody}}</div>\n </fs-label-field>\n </ng-container>\n <ng-container *ngIf=\"message.smsMessage\">\n <h2 *ngIf=\"message.emailMessage && message.smsMessage\">SMS</h2>\n <fs-label-field>\n <fs-label>Content</fs-label>\n <div class=\"content\">{{message.defaultSmsMessage}}</div>\n </fs-label-field>\n </ng-container>\n </ng-template>\n </mat-tab>\n </mat-tab-group>\n\n </mat-dialog-content>\n <mat-dialog-actions>\n <button mat-button color=\"primary\">Save</button>\n <button\n *ngIf=\"tab==='email' && message.emailMessage.format===emailMessageFormat.HTML\"\n mat-button\n type=\"button\"\n (click)=\"openPreview()\"\n type=\"button\">\n Preview\n </button>\n <button\n *ngIf=\"tab==='email'\"\n mat-button\n type=\"button\"\n (click)=\"sendTest('email')\"\n type=\"button\">\n Send Test Email\n </button>\n <button\n *ngIf=\"tab==='sms'\"\n mat-button\n type=\"button\"\n (click)=\"sendTest('sms')\"\n type=\"button\">\n Send Test SMS\n </button>\n <button mat-button [mat-dialog-close]=\"null\" type=\"button\">Cancel</button>\n </mat-dialog-actions>\n </fs-dialog>\n</form>\n", styles: ["fs-label-field .content{white-space:pre-wrap}:host ::ng-deep .mat-tab-body-content,:host ::ng-deep .mat-tab-body{overflow:visible}:host ::ng-deep .sms-message{width:100%}:host ::ng-deep .email-body-text-default{white-space:pre-line}.email-body-text{width:100%}.variable{margin-bottom:4px}\n"], components: [{ type: i4__namespace.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode"] }, { type: i5__namespace.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "disableRipple"], exportAs: ["matTabGroup"] }, { type: i5__namespace.MatTab, selector: "mat-tab", inputs: ["disabled", "label", "aria-label", "aria-labelledby"], exportAs: ["matTab"] }, { type: i6__namespace.MatFormField, selector: "mat-form-field", inputs: ["color", "floatLabel", "appearance", "hideRequiredMarker", "hintLabel"], exportAs: ["matFormField"] }, { type: i7__namespace.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { type: i8__namespace.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { type: i9__namespace.FsTextEditorComponent, selector: "fs-text-editor", inputs: ["config", "scrollable"], outputs: ["init", "blur"] }, { type: i10__namespace.FsHtmlEditorComponent, selector: "fs-html-editor", inputs: ["config"] }, { type: i6__namespace$1.FsLabelFieldComponent, selector: "fs-label-field", inputs: ["bottomMargin", "topMargin", "labelMargin"] }, { type: i6__namespace$1.FsLabelComponent, selector: "fs-label" }, { type: i10__namespace.FsHtmlRendererComponent, selector: "fs-html-renderer", inputs: ["html"] }, { type: i3__namespace.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i13__namespace.FsSkeletonContentDirective, selector: "[fsSkeleton]", inputs: ["fsSkeleton", "fsSkeletonPattern"] }, { type: i14__namespace.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i14__namespace.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i14__namespace.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i15__namespace.FsFormDirective, selector: "[fsForm]", inputs: ["wrapperSelector", "messageSelector", "hintSelector", "labelSelector", "autocomplete", "shortcuts", "confirm", "confirmDialog", "confirmDrawer", "confirmBrowser", "confirmTabs", "dirtySubmitButton", "submit", "successDelay", "errorDelay", "tabGroup"], outputs: ["fsForm", "invalid", "valid", "submitted", "reseted", "cleared"] }, { type: i16__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1__namespace.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i5__namespace.MatTabContent, selector: "[matTabContent]" }, { type: i17__namespace.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i18__namespace.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["id", "disabled", "required", "type", "value", "readonly", "placeholder", "errorStateMatcher", "aria-describedby"], exportAs: ["matInput"] }, { type: i14__namespace.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i14__namespace.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i14__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i14__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i15__namespace.FsFormRequiredDirective, selector: "[fsFormRequired],[ngModel][required]", inputs: ["fsFormRequired", "required", "fsFormRequiredMessage"] }, { type: i17__namespace.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { type: i17__namespace.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { type: i16__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i1__namespace.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["type", "mat-dialog-close", "aria-label", "matDialogClose"], exportAs: ["matDialogClose"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
192
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: MessageComponent, decorators: [{
193
- type: i0.Component,
194
- args: [{
195
- templateUrl: './message.component.html',
196
- styleUrls: ['./message.component.scss'],
197
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
198
- }]
199
- }], ctorParameters: function () {
200
- return [{ type: undefined, decorators: [{
201
- type: i0.Inject,
202
- args: [FS_APP_MESSAGE_CONFIG]
203
- }] }, { type: undefined, decorators: [{
204
- type: i0.Inject,
205
- args: [i1.MAT_DIALOG_DATA]
206
- }] }, { type: i1__namespace$1.FsPrompt }, { type: i2__namespace$1.FsMessage }, { type: i1__namespace.MatDialog }, { type: i0__namespace.ChangeDetectorRef }];
96
+ var AttachmentsComponent = /** @class */ (function () {
97
+ function AttachmentsComponent(_config, _message) {
98
+ this._config = _config;
99
+ this._message = _message;
100
+ this.list = null;
101
+ this.config = null;
102
+ this._destroy$ = new rxjs.Subject();
103
+ }
104
+ AttachmentsComponent.prototype.ngOnInit = function () {
105
+ var _this = this;
106
+ this.config = {
107
+ rowActions: [],
108
+ actions: [
109
+ {
110
+ label: 'Upload',
111
+ mode: filter.ActionMode.File,
112
+ select: function (fsFile) {
113
+ _this._config.uploadMessageAttachment(_this.message, fsFile)
114
+ .subscribe(function () {
115
+ _this._message.success('Saved attachment');
116
+ _this.list.reload();
117
+ });
118
+ }
119
+ }
120
+ ],
121
+ fetch: function (query) {
122
+ return _this._config.loadMessageAttachments(_this.message, query);
123
+ }
124
+ };
125
+ if (this._config.downloadMessageAttachment) {
126
+ this.config.rowActions = [
127
+ {
128
+ click: function (data) {
129
+ return _this._config.downloadMessageAttachment(data);
130
+ },
131
+ label: 'Download',
132
+ },
133
+ ];
134
+ }
135
+ if (this._config.deleteMessageAttachment) {
136
+ this.config.rowActions = [
137
+ {
138
+ click: function (data) {
139
+ return _this._config.deleteMessageAttachment(data);
140
+ },
141
+ remove: {
142
+ title: 'Confirm',
143
+ template: 'Are you sure you would like to delete this template?',
144
+ },
145
+ label: 'Delete',
146
+ },
147
+ ];
148
+ }
149
+ };
150
+ AttachmentsComponent.prototype.ngOnDestroy = function () {
151
+ this._destroy$.next();
152
+ this._destroy$.complete();
153
+ };
154
+ return AttachmentsComponent;
155
+ }());
156
+ AttachmentsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AttachmentsComponent, deps: [{ token: FS_APP_MESSAGE_CONFIG }, { token: i1__namespace$1.FsMessage }], target: i0__namespace.ɵɵFactoryTarget.Component });
157
+ AttachmentsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: AttachmentsComponent, selector: "fs-app-message-attachments", inputs: { message: "message" }, viewQueries: [{ propertyName: "list", first: true, predicate: i2$1.FsListComponent, descendants: true, static: true }], ngImport: i0__namespace, template: "<fs-list [config]=\"config\">\n <fs-list-column title=\"File Name\">\n <ng-template fs-list-cell let-row=\"row\">\n {{row.filename}}\n </ng-template>\n </fs-list-column>\n <fs-list-column title=\"File Size\">\n <ng-template fs-list-cell let-row=\"row\">\n {{row.size | fsFormatBytes}}\n </ng-template>\n </fs-list-column>\n</fs-list>", components: [{ type: i2__namespace$1.FsListComponent, selector: "fs-list", inputs: ["config", "loaderLines"], outputs: ["filtersReady"] }], directives: [{ type: i2__namespace$1.FsListColumnDirective, selector: "fs-list-column", inputs: ["show", "title", "name", "customize", "sortable", "sortableDefault", "direction", "align", "width", "class"] }, { type: i2__namespace$1.FsListCellDirective, selector: "[fs-list-cell]", inputs: ["colspan", "align", "class"] }], pipes: { "fsFormatBytes": i3__namespace$1.FsFormatBytesPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
158
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AttachmentsComponent, decorators: [{
159
+ type: i0.Component,
160
+ args: [{
161
+ selector: 'fs-app-message-attachments',
162
+ templateUrl: './attachments.component.html',
163
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
164
+ }]
165
+ }], ctorParameters: function () {
166
+ return [{ type: undefined, decorators: [{
167
+ type: i0.Inject,
168
+ args: [FS_APP_MESSAGE_CONFIG]
169
+ }] }, { type: i1__namespace$1.FsMessage }];
170
+ }, propDecorators: { list: [{
171
+ type: i0.ViewChild,
172
+ args: [i2$1.FsListComponent, { static: true }]
173
+ }], message: [{
174
+ type: i0.Input
175
+ }] } });
176
+
177
+ var MessageComponent = /** @class */ (function () {
178
+ function MessageComponent(_config, _data, _prompt, _message, _dialog, _cdRef) {
179
+ var _this = this;
180
+ this._config = _config;
181
+ this._data = _data;
182
+ this._prompt = _prompt;
183
+ this._message = _message;
184
+ this._dialog = _dialog;
185
+ this._cdRef = _cdRef;
186
+ this.tab = 'general';
187
+ this.messageTemplates = [];
188
+ this.emailMessageFormats = EmailMessageFormats;
189
+ this.emailMessageFormat = EmailMessageFormat;
190
+ this.save = function () {
191
+ return _this._config.saveMessage(_this.message)
192
+ .pipe(operators.tap(function () {
193
+ _this._message.success('Saved Changes');
194
+ }));
195
+ };
196
+ }
197
+ MessageComponent.prototype.ngOnInit = function () {
198
+ var _this = this;
199
+ this._config.loadMessage(this._data.message)
200
+ .subscribe(function (response) {
201
+ _this.message = response;
202
+ if (_this.message.emailMessage && _this.message.emailMessage.customize === undefined) {
203
+ _this.message.emailMessage.customize = true;
204
+ }
205
+ if (_this.message.smsMessage && _this.message.smsMessage.customize === undefined) {
206
+ _this.message.smsMessage.customize = true;
207
+ }
208
+ _this._cdRef.markForCheck();
209
+ });
210
+ this._config.loadMessageTemplates()
211
+ .subscribe(function (data) {
212
+ _this.messageTemplates = data.data;
213
+ _this._cdRef.markForCheck();
214
+ });
215
+ };
216
+ MessageComponent.prototype.openPreview = function () {
217
+ var _this = this;
218
+ var html = this.message.emailMessage.body;
219
+ var styles = this.message.emailMessage.styles;
220
+ if (this.message.emailMessage.messageTemplateId) {
221
+ var messageTemplate = this.messageTemplates
222
+ .find(function (item) {
223
+ return _this.message.emailMessage.messageTemplateId === item.id;
224
+ });
225
+ if (messageTemplate) {
226
+ html = messageTemplate.content.replace('{$content}', html);
227
+ styles = messageTemplate.styles.concat(styles);
228
+ }
229
+ }
230
+ this._dialog.open(PreviewComponent, {
231
+ data: {
232
+ styles: styles,
233
+ html: html,
234
+ },
235
+ width: '95%'
236
+ });
237
+ };
238
+ MessageComponent.prototype.sendTest = function (type) {
239
+ var _this = this;
240
+ rxjs.of(true)
241
+ .pipe(operators.switchMap(function () {
242
+ return type === 'email' ? _this._config.getTestEmail() : rxjs.of('');
243
+ }), operators.switchMap(function (default_) {
244
+ var typeName = type === 'email' ? 'an email' : 'phone number';
245
+ return _this._prompt.input({
246
+ label: "Please enter " + typeName + " to send test to",
247
+ title: 'Send Test',
248
+ commitLabel: 'Send',
249
+ default: default_,
250
+ required: true
251
+ });
252
+ }))
253
+ .subscribe(function (value) {
254
+ _this._config.testMessage(_this.message, value, type)
255
+ .subscribe(function () {
256
+ _this._message.success('Test Sent');
257
+ });
258
+ });
259
+ };
260
+ return MessageComponent;
261
+ }());
262
+ MessageComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: MessageComponent, deps: [{ token: FS_APP_MESSAGE_CONFIG }, { token: i1.MAT_DIALOG_DATA }, { token: i1__namespace$2.FsPrompt }, { token: i1__namespace$1.FsMessage }, { token: i1__namespace.MatDialog }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
263
+ MessageComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: MessageComponent, selector: "ng-component", ngImport: i0__namespace, template: "<form\n fsForm\n [submit]=\"save\"\n #form=\"ngForm\"\n *fsSkeleton=\"message\"\n [confirmTabs]=\"false\">\n <fs-dialog *ngIf=\"message\">\n <div mat-dialog-title>Edit Message</div>\n <mat-dialog-content>\n <mat-tab-group \n fsTabs \n [(selectedName)]=\"tab\">\n <mat-tab label=\"General\" name=\"general\">\n <ng-template matTabContent>\n <div fxLayout=\"column\">\n <mat-form-field>\n <input\n matInput\n placeholder=\"Name\"\n [(ngModel)]=\"message.name\"\n name=\"Name\"\n required>\n </mat-form-field>\n <mat-form-field>\n <input\n matInput\n placeholder=\"Description\"\n [(ngModel)]=\"message.description\"\n name=\"description\">\n </mat-form-field>\n\n <div\n fxLayout=\"row\"\n fxLayoutGap=\"10px\"\n fxLayout.xs=\"column\"\n fxLayout.sm=\"column\">\n <mat-form-field fxFlex>\n <input\n matInput\n placeholder=\"From Email\"\n [(ngModel)]=\"message.emailMessage.fromEmail\"\n name=\"from_email\">\n </mat-form-field>\n <mat-form-field fxFlex>\n <input\n matInput\n placeholder=\"From Name\"\n [(ngModel)]=\"message.emailMessage.fromName\"\n name=\"from_name\">\n </mat-form-field>\n <mat-form-field fxFlex>\n <input\n matInput\n placeholder=\"Reply To\"\n [(ngModel)]=\"message.emailMessage.replyTo\"\n name=\"reply_to\">\n </mat-form-field>\n </div>\n\n <div\n fxLayout=\"row\"\n fxLayoutGap=\"10px\"\n fxLayout.xs=\"column\"\n fxLayout.sm=\"column\">\n <mat-form-field fxFlex>\n <input\n matInput\n placeholder=\"To\"\n [(ngModel)]=\"message.emailMessage.toRecipients\"\n name=\"to\">\n </mat-form-field>\n <mat-form-field fxFlex>\n <input\n matInput\n placeholder=\"CC\"\n [(ngModel)]=\"message.emailMessage.ccRecipients\"\n name=\"cc\">\n </mat-form-field>\n <mat-form-field fxFlex>\n <input\n matInput\n placeholder=\"BCC\"\n [(ngModel)]=\"message.emailMessage.bccRecipients\"\n name=\"bcc\">\n </mat-form-field>\n </div>\n </div>\n </ng-template>\n </mat-tab>\n <mat-tab label=\"Email Message\" *ngIf=\"message.emailMessage\" name=\"email\">\n <ng-template matTabContent>\n <div fxLayout=\"column\">\n <div fxLayout=\"row\" fxLayoutGap=\"10px\">\n <mat-form-field>\n <mat-select\n required\n placeholder=\"Customize Message\"\n [(ngModel)]=\"message.emailMessage.customize\"\n name=\"customizeEmail\">\n <mat-option [value]=\"true\">Yes</mat-option>\n <mat-option [value]=\"false\">No</mat-option>\n </mat-select>\n </mat-form-field>\n <mat-form-field>\n <mat-select\n required\n placeholder=\"Format\"\n [(ngModel)]=\"message.emailMessage.format\"\n name=\"format\">\n <mat-option *ngFor=\"let item of emailMessageFormats\" [value]=\"item.value\">\n {{item.name}}\n </mat-option>\n </mat-select>\n </mat-form-field>\n <mat-form-field>\n <mat-select\n placeholder=\"Template\"\n [(ngModel)]=\"message.emailMessage.messageTemplateId\"\n name=\"template\">\n <mat-option [value]=\"null\">None</mat-option>\n <mat-option *ngFor=\"let item of messageTemplates\" [value]=\"item.id\">\n {{item.name}}\n </mat-option>\n </mat-select>\n </mat-form-field>\n </div>\n <ng-container *ngIf=\"message.emailMessage.customize\">\n <mat-form-field fxFlex>\n <input\n matInput\n placeholder=\"Subject\"\n [(ngModel)]=\"message.emailMessage.subject\"\n name=\"name\"\n required>\n </mat-form-field>\n\n <div [@.disabled]=\"true\">\n <mat-tab-group [dynamicHeight]=\"false\">\n <mat-tab label=\"Content\">\n <ng-template matTabContent>\n <fs-text-editor\n *ngIf=\"message.emailMessage.format===emailMessageFormat.HTML\"\n [(ngModel)]=\"message.emailMessage.body\"\n name=\"body\"\n [config]=\"{ language: 'html '}\">\n </fs-text-editor>\n\n <fs-html-editor\n *ngIf=\"message.emailMessage.format===emailMessageFormat.RichText\"\n [(ngModel)]=\"message.emailMessage.body\"\n name=\"body\">\n </fs-html-editor>\n\n <fs-text-editor\n *ngIf=\"message.emailMessage.format===emailMessageFormat.Text\"\n [(ngModel)]=\"message.emailMessage.body\"\n name=\"emailMessageBody\"\n [config]=\"{ language: 'text' }\">\n </fs-text-editor>\n </ng-template>\n </mat-tab>\n <mat-tab\n *ngIf=\"message.emailMessage.format===emailMessageFormat.HTML || message.emailMessage.format===emailMessageFormat.RichText\"\n label=\"Styles\">\n <ng-template matTabContent>\n <fs-text-editor\n [(ngModel)]=\"message.emailMessage.styles\"\n name=\"styles\"\n [config]=\"{ language: 'scss' }\">\n </fs-text-editor>\n </ng-template>\n </mat-tab>\n </mat-tab-group>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"!message.emailMessage.customize\">\n <fs-label-field>\n <fs-label>Subject</fs-label>\n {{message.defaultEmailSubject}}\n </fs-label-field>\n <div>\n <fs-label-field>\n <fs-label>Content</fs-label>\n <div class=\"email-body-html-default\">\n <fs-html-renderer\n *ngIf=\"message.emailMessage.format===emailMessageFormat.RichText || message.emailMessage.format===emailMessageFormat.HTML\"\n [html]=\"message.defaultEmailBody\">\n </fs-html-renderer>\n </div>\n <div\n class=\"email-body-text-default\"\n *ngIf=\"message.emailMessage.format===emailMessageFormat.Text\">\n {{message.defaultEmailBody}}\n </div>\n </fs-label-field>\n </div>\n </ng-container>\n </div>\n </ng-template>\n </mat-tab>\n\n <ng-container *ngIf=\"!!message.smsMessage\">\n <mat-tab label=\"SMS Message\" name=\"sms\">\n <ng-template matTabContent>\n <mat-form-field>\n <mat-select\n required\n placeholder=\"Customize Message\"\n [(ngModel)]=\"message.smsMessage.customize\"\n name=\"customizeSms\">\n <mat-option [value]=\"true\">Yes</mat-option>\n <mat-option [value]=\"false\">No</mat-option>\n </mat-select>\n </mat-form-field>\n <div\n *ngIf=\"message.smsMessage.customize\"\n [@.disabled]=\"true\">\n <mat-tab-group [dynamicHeight]=\"false\">\n <mat-tab label=\"Content\">\n <ng-template matTabContent>\n <fs-text-editor\n [(ngModel)]=\"message.smsMessage.message\"\n name=\"smsMessageMessage\"\n [config]=\"{ language: 'text '}\">\n </fs-text-editor>\n </ng-template>\n </mat-tab>\n </mat-tab-group>\n </div>\n <fs-label-field *ngIf=\"!message.smsMessage.customize\">\n <fs-label>Message</fs-label>\n {{message.defaultSmsMessage}}\n </fs-label-field>\n </ng-template>\n </mat-tab>\n </ng-container>\n\n <mat-tab label=\"Attachments\" *ngIf=\"message.emailMessage\" name=\"attachments\">\n <ng-template matTabContent>\n <fs-app-message-attachments \n [message]=\"message\">\n </fs-app-message-attachments>\n </ng-template>\n </mat-tab>\n\n <mat-tab label=\"Variables\" *ngIf=\"message.variables\">\n <ng-template matTabContent>\n <div *ngFor=\"let variable of message.variables\" class=\"variable\">\n {{variable.name}}\n </div>\n </ng-template>\n </mat-tab>\n\n <mat-tab label=\"Defaults\">\n <ng-template matTabContent>\n <ng-container *ngIf=\"message.emailMessage\">\n <h2 *ngIf=\"message.emailMessage && message.smsMessage\">Email</h2>\n <fs-label-field>\n <fs-label>Subject</fs-label>\n <div class=\"content\">{{message.defaultEmailSubject}}</div>\n </fs-label-field>\n <fs-label-field>\n <fs-label>Content</fs-label>\n <div class=\"content\">{{message.defaultEmailBody}}</div>\n </fs-label-field>\n </ng-container>\n <ng-container *ngIf=\"message.smsMessage\">\n <h2 *ngIf=\"message.emailMessage && message.smsMessage\">SMS</h2>\n <fs-label-field>\n <fs-label>Content</fs-label>\n <div class=\"content\">{{message.defaultSmsMessage}}</div>\n </fs-label-field>\n </ng-container>\n </ng-template>\n </mat-tab>\n </mat-tab-group>\n\n </mat-dialog-content>\n <mat-dialog-actions>\n <ng-container *ngIf=\"tab==='email' || tab==='sms' || tab==='general'; else done\">\n <button \n mat-button \n color=\"primary\">\n Save\n </button> \n <button\n *ngIf=\"tab==='email' && message.emailMessage.format===emailMessageFormat.HTML\"\n mat-button\n type=\"button\"\n (click)=\"openPreview()\"\n type=\"button\">\n Preview\n </button>\n <button\n *ngIf=\"tab==='email'\"\n mat-button\n type=\"button\"\n (click)=\"sendTest('email')\"\n type=\"button\">\n Send Test Email\n </button>\n <button\n *ngIf=\"tab==='sms'\"\n mat-button\n type=\"button\"\n (click)=\"sendTest('sms')\"\n type=\"button\">\n Send Test SMS\n </button>\n <button \n mat-button \n [mat-dialog-close]=\"null\" \n type=\"button\">\n Cancel\n </button>\n </ng-container> \n <ng-template #done>\n <button \n mat-button \n color=\"primary\"\n [mat-dialog-close]=\"null\" \n type=\"button\">\n Close\n </button>\n </ng-template>\n </mat-dialog-actions>\n </fs-dialog>\n</form>\n", styles: ["fs-label-field .content{white-space:pre-wrap}:host ::ng-deep .mat-tab-body-content,:host ::ng-deep .mat-tab-body{overflow:visible}:host ::ng-deep .sms-message{width:100%}:host ::ng-deep .email-body-text-default{white-space:pre-line}.email-body-text{width:100%}.variable{margin-bottom:4px}\n"], components: [{ type: i4__namespace.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode"] }, { type: i5__namespace.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "disableRipple"], exportAs: ["matTabGroup"] }, { type: i5__namespace.MatTab, selector: "mat-tab", inputs: ["disabled", "label", "aria-label", "aria-labelledby"], exportAs: ["matTab"] }, { type: i6__namespace.MatFormField, selector: "mat-form-field", inputs: ["color", "floatLabel", "appearance", "hideRequiredMarker", "hintLabel"], exportAs: ["matFormField"] }, { type: i7__namespace.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { type: i8__namespace.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { type: i9__namespace.FsTextEditorComponent, selector: "fs-text-editor", inputs: ["config", "scrollable"], outputs: ["init", "blur"] }, { type: i10__namespace.FsHtmlEditorComponent, selector: "fs-html-editor", inputs: ["config"] }, { type: i6__namespace$1.FsLabelFieldComponent, selector: "fs-label-field", inputs: ["bottomMargin", "topMargin", "labelMargin"] }, { type: i6__namespace$1.FsLabelComponent, selector: "fs-label" }, { type: i10__namespace.FsHtmlRendererComponent, selector: "fs-html-renderer", inputs: ["html"] }, { type: AttachmentsComponent, selector: "fs-app-message-attachments", inputs: ["message"] }, { type: i3__namespace.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i14__namespace.FsSkeletonContentDirective, selector: "[fsSkeleton]", inputs: ["fsSkeleton", "fsSkeletonPattern"] }, { type: i15__namespace.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i15__namespace.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i15__namespace.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i16__namespace.FsFormDirective, selector: "[fsForm]", inputs: ["wrapperSelector", "messageSelector", "hintSelector", "labelSelector", "autocomplete", "shortcuts", "confirm", "confirmDialog", "confirmDrawer", "confirmBrowser", "confirmTabs", "dirtySubmitButton", "submit", "successDelay", "errorDelay", "tabGroup"], outputs: ["fsForm", "invalid", "valid", "submitted", "reseted", "cleared"] }, { type: i17__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1__namespace.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i18__namespace.FsTabsHeaderTabGroupDirective, selector: "mat-tab-group, matTabGroup, [matTabGroup]", inputs: ["orientation", "selectedName"], outputs: ["selectedNameChange"], exportAs: ["fsTabsHeaderTabGroup"] }, { type: i18__namespace.FsTabsTabDirective, selector: "mat-tab,matTab", inputs: ["name"], exportAs: ["fsTabsTab"] }, { type: i5__namespace.MatTabContent, selector: "[matTabContent]" }, { type: i19__namespace.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i20__namespace.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["id", "disabled", "required", "type", "value", "readonly", "placeholder", "errorStateMatcher", "aria-describedby"], exportAs: ["matInput"] }, { type: i15__namespace.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i15__namespace.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i15__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i15__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i16__namespace.FsFormRequiredDirective, selector: "[fsFormRequired],[ngModel][required]", inputs: ["fsFormRequired", "required", "fsFormRequiredMessage"] }, { type: i19__namespace.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { type: i19__namespace.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { type: i17__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i1__namespace.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["type", "mat-dialog-close", "aria-label", "matDialogClose"], exportAs: ["matDialogClose"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
264
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: MessageComponent, decorators: [{
265
+ type: i0.Component,
266
+ args: [{
267
+ templateUrl: './message.component.html',
268
+ styleUrls: ['./message.component.scss'],
269
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
270
+ }]
271
+ }], ctorParameters: function () {
272
+ return [{ type: undefined, decorators: [{
273
+ type: i0.Inject,
274
+ args: [FS_APP_MESSAGE_CONFIG]
275
+ }] }, { type: undefined, decorators: [{
276
+ type: i0.Inject,
277
+ args: [i1.MAT_DIALOG_DATA]
278
+ }] }, { type: i1__namespace$2.FsPrompt }, { type: i1__namespace$1.FsMessage }, { type: i1__namespace.MatDialog }, { type: i0__namespace.ChangeDetectorRef }];
207
279
  } });
208
280
 
209
- function indexNameValue(arry) {
210
- var obj = {};
211
- arry.forEach(function (item) {
212
- obj[item.value] = item.name;
213
- });
214
- return obj;
281
+ function indexNameValue(arry) {
282
+ var obj = {};
283
+ arry.forEach(function (item) {
284
+ obj[item.value] = item.name;
285
+ });
286
+ return obj;
215
287
  }
216
288
 
217
- var MessagesComponent = /** @class */ (function () {
218
- function MessagesComponent(_config, _dialog) {
219
- this._config = _config;
220
- this._dialog = _dialog;
221
- this.list = null;
222
- this.config = null;
223
- this.emailMessageFormats = {};
224
- this._destroy$ = new rxjs.Subject();
225
- }
226
- MessagesComponent.prototype.ngOnInit = function () {
227
- var _this = this;
228
- this.emailMessageFormats = indexNameValue(EmailMessageFormats);
229
- this.config = {
230
- filters: [
231
- {
232
- name: 'keyword',
233
- type: filter.ItemType.Keyword,
234
- label: 'Search'
235
- }
236
- ],
237
- fetch: function (query) {
238
- return _this._config.loadMessages(query)
239
- .pipe(operators.map(function (response) {
240
- return ({ data: response.data, paging: response.paging });
241
- }));
242
- }
243
- };
244
- };
245
- MessagesComponent.prototype.open = function (message) {
246
- var _this = this;
247
- var dialogRef = this._dialog.open(MessageComponent, {
248
- data: {
249
- message: message,
250
- },
251
- width: '85%'
252
- });
253
- dialogRef.afterClosed()
254
- .pipe(operators.takeUntil(this._destroy$))
255
- .subscribe(function () {
256
- _this.list.reload();
257
- });
258
- };
259
- MessagesComponent.prototype.ngOnDestroy = function () {
260
- this._destroy$.next();
261
- this._destroy$.complete();
262
- };
263
- return MessagesComponent;
264
- }());
265
- MessagesComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: MessagesComponent, deps: [{ token: FS_APP_MESSAGE_CONFIG }, { token: i1__namespace.MatDialog }], target: i0__namespace.ɵɵFactoryTarget.Component });
266
- MessagesComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: MessagesComponent, selector: "fs-app-messages", viewQueries: [{ propertyName: "list", first: true, predicate: i2$2.FsListComponent, descendants: true, static: true }], ngImport: i0__namespace, template: "<fs-list [config]=\"config\">\n <fs-list-column title=\"Name\" name=\"name\" sortable=\"true\">\n <ng-template fs-list-cell let-row=\"row\">\n <a (click)=\"open(row)\">{{row.name}}</a>\n </ng-template>\n </fs-list-column>\n <fs-list-column title=\"Email Format\">\n <ng-template fs-list-cell let-row=\"row\">\n {{emailMessageFormats[row.emailMessage.format]}}\n </ng-template>\n </fs-list-column>\n <fs-list-column title=\"Email Message Template\">\n <ng-template fs-list-cell let-row=\"row\">\n {{row.emailMessage.messageTemplate?.name || 'None'}}\n </ng-template>\n </fs-list-column>\n <fs-list-column title=\"Customized Message\">\n <ng-template fs-list-cell let-row=\"row\">\n <ng-container *ngIf=\"row.emailMessage?.customize || row.smsMessage?.customize; else noCustomize\">\n <ng-container *ngIf=\"row.emailMessage?.customize\">\n {{row.emailMessage.customize ? 'Email' : ''}}\n </ng-container> \n <ng-container *ngIf=\"row.smsMessage?.customize\">\n {{row.smsMessage.customize ? 'SMS' : ''}}\n </ng-container> \n </ng-container>\n <ng-template #noCustomize>\n None\n </ng-template>\n </ng-template>\n </fs-list-column>\n</fs-list>\n", components: [{ type: i2__namespace$2.FsListComponent, selector: "fs-list", inputs: ["config", "loaderLines"], outputs: ["filtersReady"] }], directives: [{ type: i2__namespace$2.FsListColumnDirective, selector: "fs-list-column", inputs: ["title", "name", "show", "customize", "sortable", "sortableDefault", "direction", "align", "width", "class"] }, { type: i2__namespace$2.FsListCellDirective, selector: "[fs-list-cell]", inputs: ["colspan", "align", "class"] }, { type: i16__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
267
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: MessagesComponent, decorators: [{
268
- type: i0.Component,
269
- args: [{
270
- selector: 'fs-app-messages',
271
- templateUrl: './messages.component.html'
272
- }]
273
- }], ctorParameters: function () {
274
- return [{ type: undefined, decorators: [{
275
- type: i0.Inject,
276
- args: [FS_APP_MESSAGE_CONFIG]
277
- }] }, { type: i1__namespace.MatDialog }];
278
- }, propDecorators: { list: [{
279
- type: i0.ViewChild,
280
- args: [i2$2.FsListComponent, { static: true }]
289
+ var MessagesComponent = /** @class */ (function () {
290
+ function MessagesComponent(_config, _dialog) {
291
+ this._config = _config;
292
+ this._dialog = _dialog;
293
+ this.list = null;
294
+ this.config = null;
295
+ this.emailMessageFormats = {};
296
+ this._destroy$ = new rxjs.Subject();
297
+ }
298
+ MessagesComponent.prototype.ngOnInit = function () {
299
+ var _this = this;
300
+ this.emailMessageFormats = indexNameValue(EmailMessageFormats);
301
+ this.config = {
302
+ filters: [
303
+ {
304
+ name: 'keyword',
305
+ type: filter.ItemType.Keyword,
306
+ label: 'Search'
307
+ }
308
+ ],
309
+ fetch: function (query) {
310
+ return _this._config.loadMessages(query)
311
+ .pipe(operators.map(function (response) {
312
+ return ({ data: response.data, paging: response.paging });
313
+ }));
314
+ }
315
+ };
316
+ };
317
+ MessagesComponent.prototype.open = function (message) {
318
+ var _this = this;
319
+ var dialogRef = this._dialog.open(MessageComponent, {
320
+ data: {
321
+ message: message,
322
+ },
323
+ width: '85%'
324
+ });
325
+ dialogRef.afterClosed()
326
+ .pipe(operators.takeUntil(this._destroy$))
327
+ .subscribe(function () {
328
+ _this.list.reload();
329
+ });
330
+ };
331
+ MessagesComponent.prototype.ngOnDestroy = function () {
332
+ this._destroy$.next();
333
+ this._destroy$.complete();
334
+ };
335
+ return MessagesComponent;
336
+ }());
337
+ MessagesComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: MessagesComponent, deps: [{ token: FS_APP_MESSAGE_CONFIG }, { token: i1__namespace.MatDialog }], target: i0__namespace.ɵɵFactoryTarget.Component });
338
+ MessagesComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: MessagesComponent, selector: "fs-app-messages", viewQueries: [{ propertyName: "list", first: true, predicate: i2$1.FsListComponent, descendants: true, static: true }], ngImport: i0__namespace, template: "<fs-list [config]=\"config\">\n <fs-list-column title=\"Name\" name=\"name\" sortable=\"true\">\n <ng-template fs-list-cell let-row=\"row\">\n <a (click)=\"open(row)\">{{row.name}}</a>\n </ng-template>\n </fs-list-column>\n <fs-list-column title=\"Email Format\">\n <ng-template fs-list-cell let-row=\"row\">\n {{emailMessageFormats[row.emailMessage.format]}}\n </ng-template>\n </fs-list-column>\n <fs-list-column title=\"Email Message Template\">\n <ng-template fs-list-cell let-row=\"row\">\n {{row.emailMessage.messageTemplate?.name || 'None'}}\n </ng-template>\n </fs-list-column>\n <fs-list-column title=\"Customized Message\">\n <ng-template fs-list-cell let-row=\"row\">\n <ng-container *ngIf=\"row.emailMessage?.customize || row.smsMessage?.customize; else noCustomize\">\n <ng-container *ngIf=\"row.emailMessage?.customize\">\n {{row.emailMessage.customize ? 'Email' : ''}}\n </ng-container> \n <ng-container *ngIf=\"row.smsMessage?.customize\">\n {{row.smsMessage.customize ? 'SMS' : ''}}\n </ng-container> \n </ng-container>\n <ng-template #noCustomize>\n None\n </ng-template>\n </ng-template>\n </fs-list-column>\n</fs-list>\n", components: [{ type: i2__namespace$1.FsListComponent, selector: "fs-list", inputs: ["config", "loaderLines"], outputs: ["filtersReady"] }], directives: [{ type: i2__namespace$1.FsListColumnDirective, selector: "fs-list-column", inputs: ["show", "title", "name", "customize", "sortable", "sortableDefault", "direction", "align", "width", "class"] }, { type: i2__namespace$1.FsListCellDirective, selector: "[fs-list-cell]", inputs: ["colspan", "align", "class"] }, { type: i17__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
339
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: MessagesComponent, decorators: [{
340
+ type: i0.Component,
341
+ args: [{
342
+ selector: 'fs-app-messages',
343
+ templateUrl: './messages.component.html'
344
+ }]
345
+ }], ctorParameters: function () {
346
+ return [{ type: undefined, decorators: [{
347
+ type: i0.Inject,
348
+ args: [FS_APP_MESSAGE_CONFIG]
349
+ }] }, { type: i1__namespace.MatDialog }];
350
+ }, propDecorators: { list: [{
351
+ type: i0.ViewChild,
352
+ args: [i2$1.FsListComponent, { static: true }]
281
353
  }] } });
282
354
 
283
- var FsAppMessagePreviewModule = /** @class */ (function () {
284
- function FsAppMessagePreviewModule() {
285
- }
286
- return FsAppMessagePreviewModule;
287
- }());
288
- FsAppMessagePreviewModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsAppMessagePreviewModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
289
- FsAppMessagePreviewModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsAppMessagePreviewModule, declarations: [PreviewComponent], imports: [i1.MatDialogModule,
290
- i3.MatButtonModule,
291
- i4.FsDialogModule,
292
- i2.FsIFrameModule], exports: [PreviewComponent] });
293
- FsAppMessagePreviewModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsAppMessagePreviewModule, imports: [[
294
- i1.MatDialogModule,
295
- i3.MatButtonModule,
296
- i4.FsDialogModule,
297
- i2.FsIFrameModule,
298
- ]] });
299
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsAppMessagePreviewModule, decorators: [{
300
- type: i0.NgModule,
301
- args: [{
302
- imports: [
303
- i1.MatDialogModule,
304
- i3.MatButtonModule,
305
- i4.FsDialogModule,
306
- i2.FsIFrameModule,
307
- ],
308
- declarations: [
309
- PreviewComponent,
310
- ],
311
- exports: [
312
- PreviewComponent,
313
- ]
314
- }]
355
+ var FsAppMessagePreviewModule = /** @class */ (function () {
356
+ function FsAppMessagePreviewModule() {
357
+ }
358
+ return FsAppMessagePreviewModule;
359
+ }());
360
+ FsAppMessagePreviewModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsAppMessagePreviewModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
361
+ FsAppMessagePreviewModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsAppMessagePreviewModule, declarations: [PreviewComponent], imports: [i1.MatDialogModule,
362
+ i3.MatButtonModule,
363
+ i4.FsDialogModule,
364
+ i2.FsIFrameModule], exports: [PreviewComponent] });
365
+ FsAppMessagePreviewModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsAppMessagePreviewModule, imports: [[
366
+ i1.MatDialogModule,
367
+ i3.MatButtonModule,
368
+ i4.FsDialogModule,
369
+ i2.FsIFrameModule,
370
+ ]] });
371
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsAppMessagePreviewModule, decorators: [{
372
+ type: i0.NgModule,
373
+ args: [{
374
+ imports: [
375
+ i1.MatDialogModule,
376
+ i3.MatButtonModule,
377
+ i4.FsDialogModule,
378
+ i2.FsIFrameModule,
379
+ ],
380
+ declarations: [
381
+ PreviewComponent,
382
+ ],
383
+ exports: [
384
+ PreviewComponent,
385
+ ]
386
+ }]
315
387
  }] });
316
388
 
317
- var FsAppMessagesModule = /** @class */ (function () {
318
- function FsAppMessagesModule() {
319
- }
320
- return FsAppMessagesModule;
321
- }());
322
- FsAppMessagesModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsAppMessagesModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
323
- FsAppMessagesModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsAppMessagesModule, declarations: [MessagesComponent,
324
- MessageComponent], imports: [router.RouterModule,
325
- i16.CommonModule,
326
- i14.FormsModule,
327
- i1.MatDialogModule,
328
- i3.MatButtonModule,
329
- i5.MatTabsModule,
330
- i6.MatFormFieldModule,
331
- i18.MatInputModule,
332
- i8.MatOptionModule,
333
- i7.MatSelectModule,
334
- i3$1.MatTooltipModule,
335
- checkbox.MatCheckboxModule,
336
- i4.FsDialogModule,
337
- i2$2.FsListModule,
338
- i6$1.FsLabelModule,
339
- flexLayout.FlexLayoutModule,
340
- i13.FsSkeletonModule,
341
- i15.FsFormModule,
342
- i9.FsTextEditorModule,
343
- i10.FsHtmlEditorModule,
344
- i10.FsHtmlRendererModule,
345
- FsAppMessagePreviewModule], exports: [MessagesComponent,
346
- MessageComponent] });
347
- FsAppMessagesModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsAppMessagesModule, imports: [[
348
- router.RouterModule,
349
- i16.CommonModule,
350
- i14.FormsModule,
351
- i1.MatDialogModule,
352
- i3.MatButtonModule,
353
- i5.MatTabsModule,
354
- i6.MatFormFieldModule,
355
- i18.MatInputModule,
356
- i8.MatOptionModule,
357
- i7.MatSelectModule,
358
- i3$1.MatTooltipModule,
359
- checkbox.MatCheckboxModule,
360
- i4.FsDialogModule,
361
- i2$2.FsListModule,
362
- i6$1.FsLabelModule,
363
- flexLayout.FlexLayoutModule,
364
- i13.FsSkeletonModule,
365
- i15.FsFormModule,
366
- i9.FsTextEditorModule,
367
- i10.FsHtmlEditorModule,
368
- i10.FsHtmlRendererModule,
369
- FsAppMessagePreviewModule,
370
- ]] });
371
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsAppMessagesModule, decorators: [{
372
- type: i0.NgModule,
373
- args: [{
374
- imports: [
375
- router.RouterModule,
376
- i16.CommonModule,
377
- i14.FormsModule,
378
- i1.MatDialogModule,
379
- i3.MatButtonModule,
380
- i5.MatTabsModule,
381
- i6.MatFormFieldModule,
382
- i18.MatInputModule,
383
- i8.MatOptionModule,
384
- i7.MatSelectModule,
385
- i3$1.MatTooltipModule,
386
- checkbox.MatCheckboxModule,
387
- i4.FsDialogModule,
388
- i2$2.FsListModule,
389
- i6$1.FsLabelModule,
390
- flexLayout.FlexLayoutModule,
391
- i13.FsSkeletonModule,
392
- i15.FsFormModule,
393
- i9.FsTextEditorModule,
394
- i10.FsHtmlEditorModule,
395
- i10.FsHtmlRendererModule,
396
- FsAppMessagePreviewModule,
397
- ],
398
- declarations: [
399
- MessagesComponent,
400
- MessageComponent,
401
- ],
402
- exports: [
403
- MessagesComponent,
404
- MessageComponent,
405
- ],
406
- }]
389
+ var FsAppMessagesModule = /** @class */ (function () {
390
+ function FsAppMessagesModule() {
391
+ }
392
+ return FsAppMessagesModule;
393
+ }());
394
+ FsAppMessagesModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsAppMessagesModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
395
+ FsAppMessagesModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsAppMessagesModule, declarations: [MessagesComponent,
396
+ MessageComponent,
397
+ AttachmentsComponent], imports: [router.RouterModule,
398
+ i17.CommonModule,
399
+ i15.FormsModule,
400
+ i1.MatDialogModule,
401
+ i3.MatButtonModule,
402
+ i5.MatTabsModule,
403
+ i6.MatFormFieldModule,
404
+ i20.MatInputModule,
405
+ i8.MatOptionModule,
406
+ i7.MatSelectModule,
407
+ i3$2.MatTooltipModule,
408
+ checkbox.MatCheckboxModule,
409
+ i4.FsDialogModule,
410
+ i2$1.FsListModule,
411
+ i6$1.FsLabelModule,
412
+ flexLayout.FlexLayoutModule,
413
+ i14.FsSkeletonModule,
414
+ i16.FsFormModule,
415
+ i9.FsTextEditorModule,
416
+ i10.FsHtmlEditorModule,
417
+ i10.FsHtmlRendererModule,
418
+ i3$1.FsCommonModule,
419
+ i18.FsTabsModule,
420
+ FsAppMessagePreviewModule], exports: [MessagesComponent,
421
+ MessageComponent] });
422
+ FsAppMessagesModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsAppMessagesModule, imports: [[
423
+ router.RouterModule,
424
+ i17.CommonModule,
425
+ i15.FormsModule,
426
+ i1.MatDialogModule,
427
+ i3.MatButtonModule,
428
+ i5.MatTabsModule,
429
+ i6.MatFormFieldModule,
430
+ i20.MatInputModule,
431
+ i8.MatOptionModule,
432
+ i7.MatSelectModule,
433
+ i3$2.MatTooltipModule,
434
+ checkbox.MatCheckboxModule,
435
+ i4.FsDialogModule,
436
+ i2$1.FsListModule,
437
+ i6$1.FsLabelModule,
438
+ flexLayout.FlexLayoutModule,
439
+ i14.FsSkeletonModule,
440
+ i16.FsFormModule,
441
+ i9.FsTextEditorModule,
442
+ i10.FsHtmlEditorModule,
443
+ i10.FsHtmlRendererModule,
444
+ i3$1.FsCommonModule,
445
+ i18.FsTabsModule,
446
+ FsAppMessagePreviewModule,
447
+ ]] });
448
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsAppMessagesModule, decorators: [{
449
+ type: i0.NgModule,
450
+ args: [{
451
+ imports: [
452
+ router.RouterModule,
453
+ i17.CommonModule,
454
+ i15.FormsModule,
455
+ i1.MatDialogModule,
456
+ i3.MatButtonModule,
457
+ i5.MatTabsModule,
458
+ i6.MatFormFieldModule,
459
+ i20.MatInputModule,
460
+ i8.MatOptionModule,
461
+ i7.MatSelectModule,
462
+ i3$2.MatTooltipModule,
463
+ checkbox.MatCheckboxModule,
464
+ i4.FsDialogModule,
465
+ i2$1.FsListModule,
466
+ i6$1.FsLabelModule,
467
+ flexLayout.FlexLayoutModule,
468
+ i14.FsSkeletonModule,
469
+ i16.FsFormModule,
470
+ i9.FsTextEditorModule,
471
+ i10.FsHtmlEditorModule,
472
+ i10.FsHtmlRendererModule,
473
+ i3$1.FsCommonModule,
474
+ i18.FsTabsModule,
475
+ FsAppMessagePreviewModule,
476
+ ],
477
+ declarations: [
478
+ MessagesComponent,
479
+ MessageComponent,
480
+ AttachmentsComponent,
481
+ ],
482
+ exports: [
483
+ MessagesComponent,
484
+ MessageComponent,
485
+ ],
486
+ }]
407
487
  }] });
408
488
 
409
- /*! *****************************************************************************
410
- Copyright (c) Microsoft Corporation.
411
-
412
- Permission to use, copy, modify, and/or distribute this software for any
413
- purpose with or without fee is hereby granted.
414
-
415
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
416
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
417
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
418
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
419
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
420
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
421
- PERFORMANCE OF THIS SOFTWARE.
422
- ***************************************************************************** */
423
- /* global Reflect, Promise */
424
- var extendStatics = function (d, b) {
425
- extendStatics = Object.setPrototypeOf ||
426
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
427
- function (d, b) { for (var p in b)
428
- if (Object.prototype.hasOwnProperty.call(b, p))
429
- d[p] = b[p]; };
430
- return extendStatics(d, b);
431
- };
432
- function __extends(d, b) {
433
- if (typeof b !== "function" && b !== null)
434
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
435
- extendStatics(d, b);
436
- function __() { this.constructor = d; }
437
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
438
- }
439
- var __assign = function () {
440
- __assign = Object.assign || function __assign(t) {
441
- for (var s, i = 1, n = arguments.length; i < n; i++) {
442
- s = arguments[i];
443
- for (var p in s)
444
- if (Object.prototype.hasOwnProperty.call(s, p))
445
- t[p] = s[p];
446
- }
447
- return t;
448
- };
449
- return __assign.apply(this, arguments);
450
- };
451
- function __rest(s, e) {
452
- var t = {};
453
- for (var p in s)
454
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
455
- t[p] = s[p];
456
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
457
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
458
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
459
- t[p[i]] = s[p[i]];
460
- }
461
- return t;
462
- }
463
- function __decorate(decorators, target, key, desc) {
464
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
465
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
466
- r = Reflect.decorate(decorators, target, key, desc);
467
- else
468
- for (var i = decorators.length - 1; i >= 0; i--)
469
- if (d = decorators[i])
470
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
471
- return c > 3 && r && Object.defineProperty(target, key, r), r;
472
- }
473
- function __param(paramIndex, decorator) {
474
- return function (target, key) { decorator(target, key, paramIndex); };
475
- }
476
- function __metadata(metadataKey, metadataValue) {
477
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
478
- return Reflect.metadata(metadataKey, metadataValue);
479
- }
480
- function __awaiter(thisArg, _arguments, P, generator) {
481
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
482
- return new (P || (P = Promise))(function (resolve, reject) {
483
- function fulfilled(value) { try {
484
- step(generator.next(value));
485
- }
486
- catch (e) {
487
- reject(e);
488
- } }
489
- function rejected(value) { try {
490
- step(generator["throw"](value));
491
- }
492
- catch (e) {
493
- reject(e);
494
- } }
495
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
496
- step((generator = generator.apply(thisArg, _arguments || [])).next());
497
- });
498
- }
499
- function __generator(thisArg, body) {
500
- var _ = { label: 0, sent: function () { if (t[0] & 1)
501
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
502
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
503
- function verb(n) { return function (v) { return step([n, v]); }; }
504
- function step(op) {
505
- if (f)
506
- throw new TypeError("Generator is already executing.");
507
- while (_)
508
- try {
509
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
510
- return t;
511
- if (y = 0, t)
512
- op = [op[0] & 2, t.value];
513
- switch (op[0]) {
514
- case 0:
515
- case 1:
516
- t = op;
517
- break;
518
- case 4:
519
- _.label++;
520
- return { value: op[1], done: false };
521
- case 5:
522
- _.label++;
523
- y = op[1];
524
- op = [0];
525
- continue;
526
- case 7:
527
- op = _.ops.pop();
528
- _.trys.pop();
529
- continue;
530
- default:
531
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
532
- _ = 0;
533
- continue;
534
- }
535
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
536
- _.label = op[1];
537
- break;
538
- }
539
- if (op[0] === 6 && _.label < t[1]) {
540
- _.label = t[1];
541
- t = op;
542
- break;
543
- }
544
- if (t && _.label < t[2]) {
545
- _.label = t[2];
546
- _.ops.push(op);
547
- break;
548
- }
549
- if (t[2])
550
- _.ops.pop();
551
- _.trys.pop();
552
- continue;
553
- }
554
- op = body.call(thisArg, _);
555
- }
556
- catch (e) {
557
- op = [6, e];
558
- y = 0;
559
- }
560
- finally {
561
- f = t = 0;
562
- }
563
- if (op[0] & 5)
564
- throw op[1];
565
- return { value: op[0] ? op[1] : void 0, done: true };
566
- }
567
- }
568
- var __createBinding = Object.create ? (function (o, m, k, k2) {
569
- if (k2 === undefined)
570
- k2 = k;
571
- Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
572
- }) : (function (o, m, k, k2) {
573
- if (k2 === undefined)
574
- k2 = k;
575
- o[k2] = m[k];
576
- });
577
- function __exportStar(m, o) {
578
- for (var p in m)
579
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
580
- __createBinding(o, m, p);
581
- }
582
- function __values(o) {
583
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
584
- if (m)
585
- return m.call(o);
586
- if (o && typeof o.length === "number")
587
- return {
588
- next: function () {
589
- if (o && i >= o.length)
590
- o = void 0;
591
- return { value: o && o[i++], done: !o };
592
- }
593
- };
594
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
595
- }
596
- function __read(o, n) {
597
- var m = typeof Symbol === "function" && o[Symbol.iterator];
598
- if (!m)
599
- return o;
600
- var i = m.call(o), r, ar = [], e;
601
- try {
602
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
603
- ar.push(r.value);
604
- }
605
- catch (error) {
606
- e = { error: error };
607
- }
608
- finally {
609
- try {
610
- if (r && !r.done && (m = i["return"]))
611
- m.call(i);
612
- }
613
- finally {
614
- if (e)
615
- throw e.error;
616
- }
617
- }
618
- return ar;
619
- }
620
- /** @deprecated */
621
- function __spread() {
622
- for (var ar = [], i = 0; i < arguments.length; i++)
623
- ar = ar.concat(__read(arguments[i]));
624
- return ar;
625
- }
626
- /** @deprecated */
627
- function __spreadArrays() {
628
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
629
- s += arguments[i].length;
630
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
631
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
632
- r[k] = a[j];
633
- return r;
634
- }
635
- function __spreadArray(to, from, pack) {
636
- if (pack || arguments.length === 2)
637
- for (var i = 0, l = from.length, ar; i < l; i++) {
638
- if (ar || !(i in from)) {
639
- if (!ar)
640
- ar = Array.prototype.slice.call(from, 0, i);
641
- ar[i] = from[i];
642
- }
643
- }
644
- return to.concat(ar || Array.prototype.slice.call(from));
645
- }
646
- function __await(v) {
647
- return this instanceof __await ? (this.v = v, this) : new __await(v);
648
- }
649
- function __asyncGenerator(thisArg, _arguments, generator) {
650
- if (!Symbol.asyncIterator)
651
- throw new TypeError("Symbol.asyncIterator is not defined.");
652
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
653
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
654
- function verb(n) { if (g[n])
655
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
656
- function resume(n, v) { try {
657
- step(g[n](v));
658
- }
659
- catch (e) {
660
- settle(q[0][3], e);
661
- } }
662
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
663
- function fulfill(value) { resume("next", value); }
664
- function reject(value) { resume("throw", value); }
665
- function settle(f, v) { if (f(v), q.shift(), q.length)
666
- resume(q[0][0], q[0][1]); }
667
- }
668
- function __asyncDelegator(o) {
669
- var i, p;
670
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
671
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
672
- }
673
- function __asyncValues(o) {
674
- if (!Symbol.asyncIterator)
675
- throw new TypeError("Symbol.asyncIterator is not defined.");
676
- var m = o[Symbol.asyncIterator], i;
677
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
678
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
679
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
680
- }
681
- function __makeTemplateObject(cooked, raw) {
682
- if (Object.defineProperty) {
683
- Object.defineProperty(cooked, "raw", { value: raw });
684
- }
685
- else {
686
- cooked.raw = raw;
687
- }
688
- return cooked;
689
- }
690
- ;
691
- var __setModuleDefault = Object.create ? (function (o, v) {
692
- Object.defineProperty(o, "default", { enumerable: true, value: v });
693
- }) : function (o, v) {
694
- o["default"] = v;
695
- };
696
- function __importStar(mod) {
697
- if (mod && mod.__esModule)
698
- return mod;
699
- var result = {};
700
- if (mod != null)
701
- for (var k in mod)
702
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
703
- __createBinding(result, mod, k);
704
- __setModuleDefault(result, mod);
705
- return result;
706
- }
707
- function __importDefault(mod) {
708
- return (mod && mod.__esModule) ? mod : { default: mod };
709
- }
710
- function __classPrivateFieldGet(receiver, state, kind, f) {
711
- if (kind === "a" && !f)
712
- throw new TypeError("Private accessor was defined without a getter");
713
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
714
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
715
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
716
- }
717
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
718
- if (kind === "m")
719
- throw new TypeError("Private method is not writable");
720
- if (kind === "a" && !f)
721
- throw new TypeError("Private accessor was defined without a setter");
722
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
723
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
724
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
489
+ /*! *****************************************************************************
490
+ Copyright (c) Microsoft Corporation.
491
+
492
+ Permission to use, copy, modify, and/or distribute this software for any
493
+ purpose with or without fee is hereby granted.
494
+
495
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
496
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
497
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
498
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
499
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
500
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
501
+ PERFORMANCE OF THIS SOFTWARE.
502
+ ***************************************************************************** */
503
+ /* global Reflect, Promise */
504
+ var extendStatics = function (d, b) {
505
+ extendStatics = Object.setPrototypeOf ||
506
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
507
+ function (d, b) { for (var p in b)
508
+ if (Object.prototype.hasOwnProperty.call(b, p))
509
+ d[p] = b[p]; };
510
+ return extendStatics(d, b);
511
+ };
512
+ function __extends(d, b) {
513
+ if (typeof b !== "function" && b !== null)
514
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
515
+ extendStatics(d, b);
516
+ function __() { this.constructor = d; }
517
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
518
+ }
519
+ var __assign = function () {
520
+ __assign = Object.assign || function __assign(t) {
521
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
522
+ s = arguments[i];
523
+ for (var p in s)
524
+ if (Object.prototype.hasOwnProperty.call(s, p))
525
+ t[p] = s[p];
526
+ }
527
+ return t;
528
+ };
529
+ return __assign.apply(this, arguments);
530
+ };
531
+ function __rest(s, e) {
532
+ var t = {};
533
+ for (var p in s)
534
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
535
+ t[p] = s[p];
536
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
537
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
538
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
539
+ t[p[i]] = s[p[i]];
540
+ }
541
+ return t;
542
+ }
543
+ function __decorate(decorators, target, key, desc) {
544
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
545
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
546
+ r = Reflect.decorate(decorators, target, key, desc);
547
+ else
548
+ for (var i = decorators.length - 1; i >= 0; i--)
549
+ if (d = decorators[i])
550
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
551
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
552
+ }
553
+ function __param(paramIndex, decorator) {
554
+ return function (target, key) { decorator(target, key, paramIndex); };
555
+ }
556
+ function __metadata(metadataKey, metadataValue) {
557
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
558
+ return Reflect.metadata(metadataKey, metadataValue);
559
+ }
560
+ function __awaiter(thisArg, _arguments, P, generator) {
561
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
562
+ return new (P || (P = Promise))(function (resolve, reject) {
563
+ function fulfilled(value) { try {
564
+ step(generator.next(value));
565
+ }
566
+ catch (e) {
567
+ reject(e);
568
+ } }
569
+ function rejected(value) { try {
570
+ step(generator["throw"](value));
571
+ }
572
+ catch (e) {
573
+ reject(e);
574
+ } }
575
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
576
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
577
+ });
578
+ }
579
+ function __generator(thisArg, body) {
580
+ var _ = { label: 0, sent: function () { if (t[0] & 1)
581
+ throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
582
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
583
+ function verb(n) { return function (v) { return step([n, v]); }; }
584
+ function step(op) {
585
+ if (f)
586
+ throw new TypeError("Generator is already executing.");
587
+ while (_)
588
+ try {
589
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
590
+ return t;
591
+ if (y = 0, t)
592
+ op = [op[0] & 2, t.value];
593
+ switch (op[0]) {
594
+ case 0:
595
+ case 1:
596
+ t = op;
597
+ break;
598
+ case 4:
599
+ _.label++;
600
+ return { value: op[1], done: false };
601
+ case 5:
602
+ _.label++;
603
+ y = op[1];
604
+ op = [0];
605
+ continue;
606
+ case 7:
607
+ op = _.ops.pop();
608
+ _.trys.pop();
609
+ continue;
610
+ default:
611
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
612
+ _ = 0;
613
+ continue;
614
+ }
615
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
616
+ _.label = op[1];
617
+ break;
618
+ }
619
+ if (op[0] === 6 && _.label < t[1]) {
620
+ _.label = t[1];
621
+ t = op;
622
+ break;
623
+ }
624
+ if (t && _.label < t[2]) {
625
+ _.label = t[2];
626
+ _.ops.push(op);
627
+ break;
628
+ }
629
+ if (t[2])
630
+ _.ops.pop();
631
+ _.trys.pop();
632
+ continue;
633
+ }
634
+ op = body.call(thisArg, _);
635
+ }
636
+ catch (e) {
637
+ op = [6, e];
638
+ y = 0;
639
+ }
640
+ finally {
641
+ f = t = 0;
642
+ }
643
+ if (op[0] & 5)
644
+ throw op[1];
645
+ return { value: op[0] ? op[1] : void 0, done: true };
646
+ }
647
+ }
648
+ var __createBinding = Object.create ? (function (o, m, k, k2) {
649
+ if (k2 === undefined)
650
+ k2 = k;
651
+ Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
652
+ }) : (function (o, m, k, k2) {
653
+ if (k2 === undefined)
654
+ k2 = k;
655
+ o[k2] = m[k];
656
+ });
657
+ function __exportStar(m, o) {
658
+ for (var p in m)
659
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
660
+ __createBinding(o, m, p);
661
+ }
662
+ function __values(o) {
663
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
664
+ if (m)
665
+ return m.call(o);
666
+ if (o && typeof o.length === "number")
667
+ return {
668
+ next: function () {
669
+ if (o && i >= o.length)
670
+ o = void 0;
671
+ return { value: o && o[i++], done: !o };
672
+ }
673
+ };
674
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
675
+ }
676
+ function __read(o, n) {
677
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
678
+ if (!m)
679
+ return o;
680
+ var i = m.call(o), r, ar = [], e;
681
+ try {
682
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
683
+ ar.push(r.value);
684
+ }
685
+ catch (error) {
686
+ e = { error: error };
687
+ }
688
+ finally {
689
+ try {
690
+ if (r && !r.done && (m = i["return"]))
691
+ m.call(i);
692
+ }
693
+ finally {
694
+ if (e)
695
+ throw e.error;
696
+ }
697
+ }
698
+ return ar;
699
+ }
700
+ /** @deprecated */
701
+ function __spread() {
702
+ for (var ar = [], i = 0; i < arguments.length; i++)
703
+ ar = ar.concat(__read(arguments[i]));
704
+ return ar;
705
+ }
706
+ /** @deprecated */
707
+ function __spreadArrays() {
708
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++)
709
+ s += arguments[i].length;
710
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
711
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
712
+ r[k] = a[j];
713
+ return r;
714
+ }
715
+ function __spreadArray(to, from, pack) {
716
+ if (pack || arguments.length === 2)
717
+ for (var i = 0, l = from.length, ar; i < l; i++) {
718
+ if (ar || !(i in from)) {
719
+ if (!ar)
720
+ ar = Array.prototype.slice.call(from, 0, i);
721
+ ar[i] = from[i];
722
+ }
723
+ }
724
+ return to.concat(ar || Array.prototype.slice.call(from));
725
+ }
726
+ function __await(v) {
727
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
728
+ }
729
+ function __asyncGenerator(thisArg, _arguments, generator) {
730
+ if (!Symbol.asyncIterator)
731
+ throw new TypeError("Symbol.asyncIterator is not defined.");
732
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
733
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
734
+ function verb(n) { if (g[n])
735
+ i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
736
+ function resume(n, v) { try {
737
+ step(g[n](v));
738
+ }
739
+ catch (e) {
740
+ settle(q[0][3], e);
741
+ } }
742
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
743
+ function fulfill(value) { resume("next", value); }
744
+ function reject(value) { resume("throw", value); }
745
+ function settle(f, v) { if (f(v), q.shift(), q.length)
746
+ resume(q[0][0], q[0][1]); }
747
+ }
748
+ function __asyncDelegator(o) {
749
+ var i, p;
750
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
751
+ function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
752
+ }
753
+ function __asyncValues(o) {
754
+ if (!Symbol.asyncIterator)
755
+ throw new TypeError("Symbol.asyncIterator is not defined.");
756
+ var m = o[Symbol.asyncIterator], i;
757
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
758
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
759
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
760
+ }
761
+ function __makeTemplateObject(cooked, raw) {
762
+ if (Object.defineProperty) {
763
+ Object.defineProperty(cooked, "raw", { value: raw });
764
+ }
765
+ else {
766
+ cooked.raw = raw;
767
+ }
768
+ return cooked;
769
+ }
770
+ ;
771
+ var __setModuleDefault = Object.create ? (function (o, v) {
772
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
773
+ }) : function (o, v) {
774
+ o["default"] = v;
775
+ };
776
+ function __importStar(mod) {
777
+ if (mod && mod.__esModule)
778
+ return mod;
779
+ var result = {};
780
+ if (mod != null)
781
+ for (var k in mod)
782
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
783
+ __createBinding(result, mod, k);
784
+ __setModuleDefault(result, mod);
785
+ return result;
786
+ }
787
+ function __importDefault(mod) {
788
+ return (mod && mod.__esModule) ? mod : { default: mod };
789
+ }
790
+ function __classPrivateFieldGet(receiver, state, kind, f) {
791
+ if (kind === "a" && !f)
792
+ throw new TypeError("Private accessor was defined without a getter");
793
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
794
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
795
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
796
+ }
797
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
798
+ if (kind === "m")
799
+ throw new TypeError("Private method is not writable");
800
+ if (kind === "a" && !f)
801
+ throw new TypeError("Private accessor was defined without a setter");
802
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
803
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
804
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
725
805
  }
726
806
 
727
- var MessageQueueState;
728
- (function (MessageQueueState) {
729
- MessageQueueState["Sent"] = "S";
730
- MessageQueueState["PartiallySent"] = "P";
731
- MessageQueueState["Sending"] = "E";
732
- MessageQueueState["Queued"] = "Q";
733
- MessageQueueState["Canceled"] = "C";
734
- MessageQueueState["InvalidRecipients"] = "I";
735
- MessageQueueState["Failed"] = "F";
807
+ var MessageQueueState;
808
+ (function (MessageQueueState) {
809
+ MessageQueueState["Sent"] = "S";
810
+ MessageQueueState["PartiallySent"] = "P";
811
+ MessageQueueState["Sending"] = "E";
812
+ MessageQueueState["Queued"] = "Q";
813
+ MessageQueueState["Canceled"] = "C";
814
+ MessageQueueState["InvalidRecipients"] = "I";
815
+ MessageQueueState["Failed"] = "F";
736
816
  })(MessageQueueState || (MessageQueueState = {}));
737
817
 
738
- var MessageQueueStates = [
739
- { name: 'Sent', value: MessageQueueState.Sent },
740
- { name: 'Partially Sent', value: MessageQueueState.PartiallySent },
741
- { name: 'Sending', value: MessageQueueState.Sending },
742
- { name: 'Queued', value: MessageQueueState.Queued },
743
- { name: 'Canceled', value: MessageQueueState.Canceled },
744
- { name: 'Invalid Recipients', value: MessageQueueState.InvalidRecipients },
745
- { name: 'Failed', value: MessageQueueState.Failed }
818
+ var MessageQueueStates = [
819
+ { name: 'Sent', value: MessageQueueState.Sent },
820
+ { name: 'Partially Sent', value: MessageQueueState.PartiallySent },
821
+ { name: 'Sending', value: MessageQueueState.Sending },
822
+ { name: 'Queued', value: MessageQueueState.Queued },
823
+ { name: 'Canceled', value: MessageQueueState.Canceled },
824
+ { name: 'Invalid Recipients', value: MessageQueueState.InvalidRecipients },
825
+ { name: 'Failed', value: MessageQueueState.Failed }
746
826
  ];
747
827
 
748
- var EmailMessageQueueFormat;
749
- (function (EmailMessageQueueFormat) {
750
- EmailMessageQueueFormat["Text"] = "T";
751
- EmailMessageQueueFormat["HTML"] = "H";
752
- EmailMessageQueueFormat["RichText"] = "R";
828
+ var EmailMessageQueueFormat;
829
+ (function (EmailMessageQueueFormat) {
830
+ EmailMessageQueueFormat["Text"] = "T";
831
+ EmailMessageQueueFormat["HTML"] = "H";
832
+ EmailMessageQueueFormat["RichText"] = "R";
753
833
  })(EmailMessageQueueFormat || (EmailMessageQueueFormat = {}));
754
834
 
755
- var MessageQueueType;
756
- (function (MessageQueueType) {
757
- MessageQueueType["Sms"] = "S";
758
- MessageQueueType["Email"] = "E";
835
+ var MessageQueueType;
836
+ (function (MessageQueueType) {
837
+ MessageQueueType["Sms"] = "S";
838
+ MessageQueueType["Email"] = "E";
759
839
  })(MessageQueueType || (MessageQueueType = {}));
760
840
 
761
- var MessageQueueEventType;
762
- (function (MessageQueueEventType) {
763
- MessageQueueEventType["Click"] = "click";
764
- MessageQueueEventType["Open"] = "open";
841
+ var MessageQueueEventType;
842
+ (function (MessageQueueEventType) {
843
+ MessageQueueEventType["Click"] = "click";
844
+ MessageQueueEventType["Open"] = "open";
765
845
  })(MessageQueueEventType || (MessageQueueEventType = {}));
766
846
 
767
- var MessageQueueEventTypes = [
768
- { name: 'Open', value: MessageQueueEventType.Open },
769
- { name: 'Click', value: MessageQueueEventType.Click },
847
+ var MessageQueueEventTypes = [
848
+ { name: 'Open', value: MessageQueueEventType.Open },
849
+ { name: 'Click', value: MessageQueueEventType.Click },
770
850
  ];
771
851
 
772
- var RecipientComponent = /** @class */ (function () {
773
- function RecipientComponent() {
774
- }
775
- RecipientComponent.prototype.ngOnInit = function () {
776
- var icons = {
777
- 'S': { name: 'check_circle', tooltip: 'Sent' },
778
- 'E': { name: 'offline_bolt', tooltip: 'Sending' },
779
- 'F': { name: 'info', tooltip: 'Failed' },
780
- };
781
- this.icon = icons[this.state];
782
- };
783
- return RecipientComponent;
784
- }());
785
- RecipientComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RecipientComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
786
- RecipientComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: RecipientComponent, selector: "app-recipient", inputs: { name: "name", state: "state" }, ngImport: i0__namespace, template: "<span class=\"recipient\">\n <span class=\"name\">{{name}}</span>\n <mat-icon *ngIf=\"icon\" [class]=\"'state-' + state\" [matTooltip]=\"icon.tooltip\">{{icon.name}}</mat-icon>\n</span>", styles: ["mat-icon{font-size:14px;width:14px;height:14px;line-height:normal;margin-left:2px}mat-icon.state-S{color:#5fa099}mat-icon.state-E{color:#fbbc04}mat-icon.state-F{color:#d8524e}.recipient{display:inline-flex;align-items:center}\n"], components: [{ type: i1__namespace$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i16__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace$1.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }] });
787
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RecipientComponent, decorators: [{
788
- type: i0.Component,
789
- args: [{
790
- selector: 'app-recipient',
791
- templateUrl: './recipient.component.html',
792
- styleUrls: ['./recipient.component.scss'],
793
- }]
794
- }], propDecorators: { name: [{
795
- type: i0.Input
796
- }], state: [{
797
- type: i0.Input
852
+ var RecipientComponent = /** @class */ (function () {
853
+ function RecipientComponent() {
854
+ }
855
+ RecipientComponent.prototype.ngOnInit = function () {
856
+ var icons = {
857
+ 'S': { name: 'check_circle', tooltip: 'Sent' },
858
+ 'E': { name: 'offline_bolt', tooltip: 'Sending' },
859
+ 'F': { name: 'info', tooltip: 'Failed' },
860
+ };
861
+ this.icon = icons[this.state];
862
+ };
863
+ return RecipientComponent;
864
+ }());
865
+ RecipientComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RecipientComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
866
+ RecipientComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: RecipientComponent, selector: "app-recipient", inputs: { name: "name", state: "state" }, ngImport: i0__namespace, template: "<span class=\"recipient\">\n <span class=\"name\">{{name}}</span>\n <mat-icon *ngIf=\"icon\" [class]=\"'state-' + state\" [matTooltip]=\"icon.tooltip\">{{icon.name}}</mat-icon>\n</span>", styles: ["mat-icon{font-size:14px;width:14px;height:14px;line-height:normal;margin-left:2px}mat-icon.state-S{color:#5fa099}mat-icon.state-E{color:#fbbc04}mat-icon.state-F{color:#d8524e}.recipient{display:inline-flex;align-items:center}\n"], components: [{ type: i1__namespace$3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i17__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace$2.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
867
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: RecipientComponent, decorators: [{
868
+ type: i0.Component,
869
+ args: [{
870
+ selector: 'app-recipient',
871
+ templateUrl: './recipient.component.html',
872
+ styleUrls: ['./recipient.component.scss'],
873
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
874
+ }]
875
+ }], propDecorators: { name: [{
876
+ type: i0.Input
877
+ }], state: [{
878
+ type: i0.Input
798
879
  }] } });
799
880
 
800
- var QueueComponent = /** @class */ (function () {
801
- function QueueComponent(_config, _message, _prompt, _dialog, _data) {
802
- this._config = _config;
803
- this._message = _message;
804
- this._prompt = _prompt;
805
- this._dialog = _dialog;
806
- this._data = _data;
807
- this.messageQueueRecipients = {};
808
- this.emailMessageQueueFormat = EmailMessageQueueFormat;
809
- this.MessageQueueEventTypes = indexNameValue(MessageQueueEventTypes);
810
- this.MessageQueueEventType = MessageQueueEventType;
811
- this._destroy$ = new rxjs.Subject();
812
- }
813
- QueueComponent.prototype.ngOnInit = function () {
814
- var _this = this;
815
- this.messageQueueStates = indexNameValue(MessageQueueStates);
816
- this.resendMessageQueue = this._config.resendMessageQueue;
817
- this.forwardMessageQueue = this._config.forwardMessageQueue;
818
- this._config.loadMessageQueue(this._data.messageQueueId)
819
- .subscribe(function (messageQueue) {
820
- _this.messageQueue = messageQueue;
821
- if (_this.messageQueue.emailMessageQueue) {
822
- var body = _this.messageQueue.emailMessageQueue.body;
823
- if (_this.messageQueue.emailMessageQueue.format === EmailMessageQueueFormat.HTML) {
824
- try {
825
- var doc = new DOMParser().parseFromString(body, 'text/html');
826
- doc.querySelectorAll('a').forEach(function (el) {
827
- el.setAttribute('target', '_blank');
828
- });
829
- body = doc.documentElement.innerHTML;
830
- }
831
- catch (e) {
832
- }
833
- }
834
- else {
835
- body = _this.anchorMe(body);
836
- }
837
- _this.messageQueue.emailMessageQueue.body = body;
838
- }
839
- if (_this.messageQueue.smsMessageQueue) {
840
- _this.messageQueue.smsMessageQueue.body = _this.anchorMe(_this.messageQueue.smsMessageQueue.body);
841
- }
842
- _this.messageQueueRecipients = _this.messageQueue.messageQueueRecipients
843
- .reduce(function (accum, messageQueueRecipient) {
844
- accum[messageQueueRecipient.recipient] = messageQueueRecipient.state;
845
- return accum;
846
- }, {});
847
- _this._setLogsConfig(messageQueue);
848
- _this._setAttachmentsConfig(messageQueue);
849
- _this._setEventsConfig(messageQueue);
850
- });
851
- };
852
- QueueComponent.prototype.anchorMe = function (html) {
853
- return anchorme__default["default"](html, {
854
- options: {
855
- attributes: [
856
- {
857
- name: 'target',
858
- value: '_blank'
859
- },
860
- ],
861
- },
862
- });
863
- };
864
- QueueComponent.prototype.openMessage = function (message) {
865
- this._dialog.open(MessageComponent, {
866
- data: {
867
- message: message,
868
- },
869
- width: '85%'
870
- });
871
- };
872
- QueueComponent.prototype.resend = function () {
873
- var _this = this;
874
- this._prompt.confirm({
875
- title: 'Confirm',
876
- template: 'Are you sure you would like to resend this message?'
877
- }).subscribe(function () {
878
- _this.resendMessageQueue(_this.messageQueue)
879
- .subscribe(function (messageQueue) {
880
- Object.assign(_this.messageQueue, messageQueue);
881
- _this._message.success('Successfully resent');
882
- if (_this.logList) {
883
- _this.logList.reload();
884
- }
885
- });
886
- });
887
- };
888
- QueueComponent.prototype.forward = function () {
889
- var _this = this;
890
- var typeName = this.messageQueue.type === MessageQueueType.Email ? 'an email' : 'a phone number';
891
- this._prompt.input({
892
- label: "Please enter " + typeName + " to forward to",
893
- title: 'Forward Message',
894
- commitLabel: 'Forward',
895
- required: true
896
- }).subscribe(function (value) {
897
- if (value) {
898
- _this.forwardMessageQueue(_this.messageQueue, value)
899
- .subscribe(function (messageQueue) {
900
- _this.messageQueue = Object.assign(Object.assign({}, _this.messageQueue), { messageQueue: messageQueue });
901
- _this._message.success('Successfully forwarded');
902
- if (_this.logList) {
903
- _this.logList.reload();
904
- }
905
- });
906
- }
907
- });
908
- };
909
- QueueComponent.prototype.ngOnDestroy = function () {
910
- this._destroy$.next();
911
- this._destroy$.complete();
912
- };
913
- QueueComponent.prototype._setLogsConfig = function (messageQueue) {
914
- var _this = this;
915
- this.logConfig = {
916
- loadMore: true,
917
- queryParam: false,
918
- fetch: function (query) {
919
- return _this._config.loadLogs(messageQueue, query);
920
- }
921
- };
922
- };
923
- QueueComponent.prototype._setEventsConfig = function (messageQueue) {
924
- var _this = this;
925
- this.eventConfig = {
926
- loadMore: true,
927
- queryParam: false,
928
- fetch: function (query) {
929
- return _this._config.loadMessageQueueEvents(messageQueue, query);
930
- }
931
- };
932
- };
933
- QueueComponent.prototype._setAttachmentsConfig = function (messageQueue) {
934
- var _this = this;
935
- this.attachmentConfig = {
936
- queryParam: false,
937
- fetch: function (query) {
938
- return _this._config.loadMessageQueueAttachments(messageQueue, query)
939
- .pipe(operators.map(function (response) { return ({
940
- data: response.data.map(function (value) {
941
- value.prettyFilesize = _this._prettyFilesize(value.filesize);
942
- return value;
943
- }), paging: response.paging
944
- }); }));
945
- }
946
- };
947
- if (this._config.downloadMessageQueueAttachment) {
948
- this.attachmentConfig.rowActions = [
949
- {
950
- click: function (messageAttachment) {
951
- _this._config.downloadMessageQueueAttachment(messageAttachment, _this.messageQueue);
952
- },
953
- label: 'Download',
954
- }
955
- ];
956
- }
957
- };
958
- QueueComponent.prototype._prettyFilesize = function (bytes) {
959
- if (bytes === 0) {
960
- return '0.00 B';
961
- }
962
- var e = Math.floor(Math.log(bytes) / Math.log(1024));
963
- return (bytes / Math.pow(1024, e)).toFixed(2) + ' ' + ' KMGTP'.charAt(e) + 'B';
964
- };
965
- return QueueComponent;
966
- }());
967
- QueueComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: QueueComponent, deps: [{ token: FS_APP_MESSAGE_CONFIG }, { token: i2__namespace$1.FsMessage }, { token: i1__namespace$1.FsPrompt }, { token: i1__namespace.MatDialog }, { token: i1.MAT_DIALOG_DATA }], target: i0__namespace.ɵɵFactoryTarget.Component });
968
- QueueComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: QueueComponent, selector: "ng-component", viewQueries: [{ propertyName: "logList", first: true, predicate: ["logList"], descendants: true }], ngImport: i0__namespace, template: "<fs-dialog *fsSkeleton=\"messageQueue\">\n <div mat-dialog-title>Message Queue</div>\n <mat-dialog-content>\n <mat-tab-group>\n <mat-tab label=\"Overview\">\n <ng-template matTabContent>\n <div fxLayout=\"row wrap\" fxLayoutGap=\"25px\">\n <ng-container *ngIf=\"messageQueue.emailMessageQueue\">\n <fs-label-field>\n <fs-label>\n To Recipients\n </fs-label>\n <app-recipient \n *ngFor=\"let recipient of messageQueue.emailMessageQueue.toRecipients\"\n [state]=\"messageQueueRecipients[recipient]\"\n [name]=\"recipient\">\n </app-recipient>\n </fs-label-field>\n\n <fs-label-field *ngIf=\"messageQueue.emailMessageQueue.ccRecipients.length\">\n <fs-label>\n CC\n </fs-label>\n <app-recipient \n *ngFor=\"let recipient of messageQueue.emailMessageQueue.ccRecipients\"\n [state]=\"messageQueueRecipients[recipient]\"\n [name]=\"recipient\">\n </app-recipient> \n </fs-label-field>\n\n <fs-label-field *ngIf=\"messageQueue.emailMessageQueue.bccRecipients.length\">\n <fs-label>\n BCC\n </fs-label>\n <app-recipient \n *ngFor=\"let recipient of messageQueue.emailMessageQueue.bccRecipients\"\n [state]=\"messageQueueRecipients[recipient]\"\n [name]=\"recipient\">\n </app-recipient> \n </fs-label-field>\n\n <fs-label-field *ngIf=\"messageQueue.emailMessageQueue.fromName || messageQueue.emailMessageQueue.fromEmail\">\n <fs-label>\n From\n </fs-label>\n <ng-container *ngIf=\"messageQueue.emailMessageQueue.fromName === messageQueue.emailMessageQueue.fromEmail; else fromEmailName\">\n {{messageQueue.emailMessageQueue.fromName}}\n </ng-container>\n\n <ng-template #fromEmailName>\n {{messageQueue.emailMessageQueue.fromName}}\n <ng-container *ngIf=\"messageQueue.emailMessageQueue.fromEmail\">\n ({{messageQueue.emailMessageQueue.fromEmail}})\n </ng-container>\n </ng-template>\n </fs-label-field>\n\n <fs-label-field *ngIf=\"messageQueue.emailMessageQueue.replyEmail && messageQueue.emailMessageQueue.replyEmail.length\">\n <fs-label>\n Reply To\n </fs-label>\n {{messageQueue.emailMessageQueue.replyEmail.join(', ')}}\n </fs-label-field>\n </ng-container>\n\n <ng-container *ngIf=\"messageQueue.smsMessageQueue\">\n <fs-label-field>\n <fs-label>\n To Number\n </fs-label>\n <app-recipient \n [state]=\"messageQueue.state\"\n [name]=\"messageQueue.smsMessageQueue.toNumber\">\n </app-recipient> \n </fs-label-field>\n\n <fs-label-field *ngIf=\"messageQueue.smsMessageQueue.fromNumber\">\n <fs-label>\n From Number\n </fs-label>\n {{messageQueue.smsMessageQueue.fromNumber}}\n </fs-label-field>\n </ng-container>\n \n <fs-label-field>\n <fs-label>\n Date\n </fs-label>\n {{messageQueue.scheduledDate | fsDateFormat: 'full-date-time'}}\n </fs-label-field>\n\n <fs-label-field>\n <fs-label>\n Status\n </fs-label>\n {{messageQueueStates[messageQueue.state]}}\n </fs-label-field>\n\n <fs-label-field *ngIf=\"messageQueue.message\">\n <fs-label>\n Message Type\n </fs-label>\n <a\n (click)=\"openMessage(messageQueue.message)\"\n *ngIf=\"loadMessage; else elseMessage\">\n {{messageQueue.message.name}}\n </a>\n <ng-template #elseMessage>\n {{messageQueue.message.name}}\n </ng-template>\n </fs-label-field>\n </div>\n\n <ng-container *ngIf=\"messageQueue.emailMessageQueue\">\n <fs-label-field class=\"subject\">\n <fs-label>\n Subject\n </fs-label>\n {{messageQueue.emailMessageQueue.subject}}\n </fs-label-field>\n\n <fs-label-field class=\"body\">\n <fs-label>\n Body\n </fs-label>\n <div\n *ngIf=\"messageQueue.emailMessageQueue.format===emailMessageQueueFormat.Text\"\n class=\"format-text\"\n [innerHTML]=\"messageQueue.emailMessageQueue.body\">\n </div>\n <fs-iframe\n *ngIf=\"messageQueue.emailMessageQueue.format===emailMessageQueueFormat.HTML || messageQueue.emailMessageQueue.format===emailMessageQueueFormat.RichText\"\n [html]=\"messageQueue.emailMessageQueue.body\">\n </fs-iframe>\n </fs-label-field>\n </ng-container>\n\n <ng-container *ngIf=\"messageQueue.smsMessageQueue\">\n <fs-label-field>\n <fs-label>\n Message\n </fs-label>\n <div\n class=\"format-text\"\n [innerHTML]=\"messageQueue.smsMessageQueue.body\">\n </div>\n </fs-label-field>\n </ng-container>\n\n </ng-template>\n </mat-tab>\n <mat-tab label=\"Logs\">\n <ng-template matTabContent>\n <fs-list [config]=\"logConfig\" #logList>\n <fs-list-column title=\"Message\">\n <ng-template fs-list-cell let-row=\"row\">\n {{row.message}}\n </ng-template>\n </fs-list-column>\n <fs-list-column title=\"Date\">\n <ng-template fs-list-cell let-row=\"row\">\n <fs-date-ago [date]=\"row.createdDate\"></fs-date-ago>\n </ng-template>\n </fs-list-column>\n </fs-list>\n </ng-template>\n </mat-tab>\n <mat-tab label=\"Attachments\">\n <ng-template matTabContent>\n <fs-list [config]=\"attachmentConfig\">\n <fs-list-column title=\"File Name\">\n <ng-template fs-list-cell let-row=\"row\">\n {{row.filename}}\n </ng-template>\n </fs-list-column>\n <fs-list-column title=\"File Size\">\n <ng-template fs-list-cell let-row=\"row\">\n {{row.prettyFilesize}}\n </ng-template>\n </fs-list-column>\n </fs-list>\n </ng-template>\n </mat-tab>\n <mat-tab label=\"Events\">\n <ng-template matTabContent>\n <fs-list [config]=\"eventConfig\">\n <fs-list-column title=\"Recipient\">\n <ng-template fs-list-cell let-row=\"row\">\n {{row.messageQueueRecipient.recipient}}\n </ng-template>\n </fs-list-column>\n <fs-list-column title=\"Event\">\n <ng-template fs-list-cell let-row=\"row\">\n {{MessageQueueEventTypes[row.type]}}\n <div class=\"small\" *ngIf=\"row.type === MessageQueueEventType.Click\">\n <a [href]=\"row.meta?.url\" target=\"_blank\">{{row.meta?.url}}</a>\n </div>\n </ng-template>\n </fs-list-column>\n <fs-list-column title=\"Date\">\n <ng-template fs-list-cell let-row=\"row\">\n {{row.createDate | fsDateFormat: 'date-time-yearless'}}\n </ng-template>\n </fs-list-column>\n </fs-list>\n </ng-template>\n </mat-tab>\n </mat-tab-group>\n </mat-dialog-content>\n <mat-dialog-actions>\n <button\n mat-button\n [mat-dialog-close]=\"null\"\n color=\"primary\">\n Done\n </button>\n <button\n mat-button\n *ngIf=\"resendMessageQueue\"\n type=\"button\"\n (click)=\"resend()\"\n type=\"button\">\n Resend\n </button>\n <button\n mat-button\n *ngIf=\"forwardMessageQueue\"\n type=\"button\"\n (click)=\"forward()\"\n type=\"button\">\n Forward\n </button>\n </mat-dialog-actions>\n</fs-dialog>\n", styles: [".subject,.body{display:block;margin-top:15px}.body .format-text{white-space:pre-wrap}.body .body-frame{border:0}.body ::ng-deep .field-label{margin-bottom:10px}app-recipient{display:block}[hidden]{display:none!important}\n"], components: [{ type: i4__namespace.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode"] }, { type: i5__namespace.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "disableRipple"], exportAs: ["matTabGroup"] }, { type: i5__namespace.MatTab, selector: "mat-tab", inputs: ["disabled", "label", "aria-label", "aria-labelledby"], exportAs: ["matTab"] }, { type: i6__namespace$1.FsLabelFieldComponent, selector: "fs-label-field", inputs: ["bottomMargin", "topMargin", "labelMargin"] }, { type: i6__namespace$1.FsLabelComponent, selector: "fs-label" }, { type: RecipientComponent, selector: "app-recipient", inputs: ["name", "state"] }, { type: i2__namespace.FsIFrameComponent, selector: "fs-iframe", inputs: ["html", "styles"] }, { type: i2__namespace$2.FsListComponent, selector: "fs-list", inputs: ["config", "loaderLines"], outputs: ["filtersReady"] }, { type: i10__namespace$1.FsDateAgoComponent, selector: "fs-date-ago", inputs: ["date", "showTime", "format", "showTooltip", "tooltipDateFormat"] }, { type: i3__namespace.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i13__namespace.FsSkeletonContentDirective, selector: "[fsSkeleton]", inputs: ["fsSkeleton", "fsSkeletonPattern"] }, { type: i1__namespace.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1__namespace.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i5__namespace.MatTabContent, selector: "[matTabContent]" }, { type: i17__namespace.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i17__namespace.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { type: i16__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i16__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2__namespace$2.FsListColumnDirective, selector: "fs-list-column", inputs: ["title", "name", "show", "customize", "sortable", "sortableDefault", "direction", "align", "width", "class"] }, { type: i2__namespace$2.FsListCellDirective, selector: "[fs-list-cell]", inputs: ["colspan", "align", "class"] }, { type: i1__namespace.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i1__namespace.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["type", "mat-dialog-close", "aria-label", "matDialogClose"], exportAs: ["matDialogClose"] }], pipes: { "fsDateFormat": i10__namespace$1.FsDateFormatPipe } });
969
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: QueueComponent, decorators: [{
970
- type: i0.Component,
971
- args: [{
972
- templateUrl: './queue.component.html',
973
- styleUrls: ['./queue.component.scss'],
974
- }]
975
- }], ctorParameters: function () {
976
- return [{ type: undefined, decorators: [{
977
- type: i0.Inject,
978
- args: [FS_APP_MESSAGE_CONFIG]
979
- }] }, { type: i2__namespace$1.FsMessage }, { type: i1__namespace$1.FsPrompt }, { type: i1__namespace.MatDialog }, { type: undefined, decorators: [{
980
- type: i0.Inject,
981
- args: [i1.MAT_DIALOG_DATA]
982
- }] }];
983
- }, propDecorators: { logList: [{
984
- type: i0.ViewChild,
985
- args: ['logList']
881
+ var QueueComponent = /** @class */ (function () {
882
+ function QueueComponent(_config, _data, _message, _prompt, _dialog, _cdRef) {
883
+ this._config = _config;
884
+ this._data = _data;
885
+ this._message = _message;
886
+ this._prompt = _prompt;
887
+ this._dialog = _dialog;
888
+ this._cdRef = _cdRef;
889
+ this.messageQueueRecipients = {};
890
+ this.emailMessageQueueFormat = EmailMessageQueueFormat;
891
+ this.MessageQueueEventTypes = indexNameValue(MessageQueueEventTypes);
892
+ this.MessageQueueEventType = MessageQueueEventType;
893
+ this._destroy$ = new rxjs.Subject();
894
+ }
895
+ QueueComponent.prototype.ngOnInit = function () {
896
+ var _this = this;
897
+ this.messageQueueStates = indexNameValue(MessageQueueStates);
898
+ this.resendMessageQueue = this._config.resendMessageQueue;
899
+ this.forwardMessageQueue = this._config.forwardMessageQueue;
900
+ this._config.loadMessageQueue(this._data.messageQueueId)
901
+ .subscribe(function (messageQueue) {
902
+ _this.messageQueue = messageQueue;
903
+ if (_this.messageQueue.emailMessageQueue) {
904
+ var body = _this.messageQueue.emailMessageQueue.body;
905
+ if (_this.messageQueue.emailMessageQueue.format === EmailMessageQueueFormat.HTML) {
906
+ try {
907
+ var doc = new DOMParser().parseFromString(body, 'text/html');
908
+ doc.querySelectorAll('a').forEach(function (el) {
909
+ el.setAttribute('target', '_blank');
910
+ });
911
+ body = doc.documentElement.innerHTML;
912
+ }
913
+ catch (e) {
914
+ }
915
+ }
916
+ else {
917
+ body = _this.anchorMe(body);
918
+ }
919
+ _this.messageQueue.emailMessageQueue.body = body;
920
+ }
921
+ if (_this.messageQueue.smsMessageQueue) {
922
+ _this.messageQueue.smsMessageQueue.body = _this.anchorMe(_this.messageQueue.smsMessageQueue.body);
923
+ }
924
+ _this.messageQueueRecipients = _this.messageQueue.messageQueueRecipients
925
+ .reduce(function (accum, messageQueueRecipient) {
926
+ accum[messageQueueRecipient.recipient] = messageQueueRecipient.state;
927
+ return accum;
928
+ }, {});
929
+ _this._setLogsConfig(messageQueue);
930
+ _this._setAttachmentsConfig(messageQueue);
931
+ _this._setEventsConfig(messageQueue);
932
+ _this._cdRef.markForCheck();
933
+ });
934
+ };
935
+ QueueComponent.prototype.anchorMe = function (html) {
936
+ return anchorme__default["default"](html, {
937
+ options: {
938
+ attributes: [
939
+ {
940
+ name: 'target',
941
+ value: '_blank'
942
+ },
943
+ ],
944
+ },
945
+ });
946
+ };
947
+ QueueComponent.prototype.openMessage = function (message) {
948
+ this._dialog.open(MessageComponent, {
949
+ data: {
950
+ message: message,
951
+ },
952
+ width: '85%'
953
+ });
954
+ };
955
+ QueueComponent.prototype.resend = function () {
956
+ var _this = this;
957
+ this._prompt.confirm({
958
+ title: 'Confirm',
959
+ template: 'Are you sure you would like to resend this message?'
960
+ }).subscribe(function () {
961
+ _this.resendMessageQueue(_this.messageQueue)
962
+ .subscribe(function (messageQueue) {
963
+ Object.assign(_this.messageQueue, messageQueue);
964
+ _this._cdRef.markForCheck();
965
+ _this._message.success('Successfully resent');
966
+ if (_this.logList) {
967
+ _this.logList.reload();
968
+ }
969
+ });
970
+ });
971
+ };
972
+ QueueComponent.prototype.forward = function () {
973
+ var _this = this;
974
+ var typeName = this.messageQueue.type === MessageQueueType.Email ? 'an email' : 'a phone number';
975
+ this._prompt.input({
976
+ label: "Please enter " + typeName + " to forward to",
977
+ title: 'Forward Message',
978
+ commitLabel: 'Forward',
979
+ required: true
980
+ }).subscribe(function (value) {
981
+ if (value) {
982
+ _this.forwardMessageQueue(_this.messageQueue, value)
983
+ .subscribe(function (messageQueue) {
984
+ _this.messageQueue = Object.assign(Object.assign({}, _this.messageQueue), { messageQueue: messageQueue });
985
+ _this._message.success('Successfully forwarded');
986
+ _this._cdRef.markForCheck();
987
+ if (_this.logList) {
988
+ _this.logList.reload();
989
+ }
990
+ });
991
+ }
992
+ });
993
+ };
994
+ QueueComponent.prototype.ngOnDestroy = function () {
995
+ this._destroy$.next();
996
+ this._destroy$.complete();
997
+ };
998
+ QueueComponent.prototype._setLogsConfig = function (messageQueue) {
999
+ var _this = this;
1000
+ this.logConfig = {
1001
+ loadMore: true,
1002
+ queryParam: false,
1003
+ fetch: function (query) {
1004
+ return _this._config.loadLogs(messageQueue, query);
1005
+ }
1006
+ };
1007
+ };
1008
+ QueueComponent.prototype._setEventsConfig = function (messageQueue) {
1009
+ var _this = this;
1010
+ this.eventConfig = {
1011
+ loadMore: true,
1012
+ queryParam: false,
1013
+ fetch: function (query) {
1014
+ return _this._config.loadMessageQueueEvents(messageQueue, query);
1015
+ }
1016
+ };
1017
+ };
1018
+ QueueComponent.prototype._setAttachmentsConfig = function (messageQueue) {
1019
+ var _this = this;
1020
+ this.attachmentConfig = {
1021
+ queryParam: false,
1022
+ fetch: function (query) {
1023
+ return _this._config.loadMessageQueueAttachments(messageQueue, query)
1024
+ .pipe(operators.map(function (response) { return ({
1025
+ data: response.data.map(function (value) {
1026
+ value.prettyFilesize = _this._prettyFilesize(value.filesize);
1027
+ return value;
1028
+ }), paging: response.paging
1029
+ }); }));
1030
+ }
1031
+ };
1032
+ if (this._config.downloadMessageQueueAttachment) {
1033
+ this.attachmentConfig.rowActions = [
1034
+ {
1035
+ click: function (messageAttachment) {
1036
+ _this._config.downloadMessageQueueAttachment(messageAttachment, _this.messageQueue);
1037
+ },
1038
+ label: 'Download',
1039
+ }
1040
+ ];
1041
+ }
1042
+ };
1043
+ QueueComponent.prototype._prettyFilesize = function (bytes) {
1044
+ if (bytes === 0) {
1045
+ return '0.00 B';
1046
+ }
1047
+ var e = Math.floor(Math.log(bytes) / Math.log(1024));
1048
+ return (bytes / Math.pow(1024, e)).toFixed(2) + ' ' + ' KMGTP'.charAt(e) + 'B';
1049
+ };
1050
+ return QueueComponent;
1051
+ }());
1052
+ QueueComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: QueueComponent, deps: [{ token: FS_APP_MESSAGE_CONFIG }, { token: i1.MAT_DIALOG_DATA }, { token: i1__namespace$1.FsMessage }, { token: i1__namespace$2.FsPrompt }, { token: i1__namespace.MatDialog }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
1053
+ QueueComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: QueueComponent, selector: "ng-component", viewQueries: [{ propertyName: "logList", first: true, predicate: ["logList"], descendants: true }], ngImport: i0__namespace, template: "<fs-dialog *fsSkeleton=\"messageQueue\">\n <div mat-dialog-title>Message Queue</div>\n <mat-dialog-content>\n <mat-tab-group>\n <mat-tab label=\"Overview\">\n <ng-template matTabContent>\n <div fxLayout=\"row wrap\" fxLayoutGap=\"25px\">\n <ng-container *ngIf=\"messageQueue.emailMessageQueue\">\n <fs-label-field>\n <fs-label>\n To Recipients\n </fs-label>\n <app-recipient \n *ngFor=\"let recipient of messageQueue.emailMessageQueue.toRecipients\"\n [state]=\"messageQueueRecipients[recipient]\"\n [name]=\"recipient\">\n </app-recipient>\n </fs-label-field>\n\n <fs-label-field *ngIf=\"messageQueue.emailMessageQueue.ccRecipients.length\">\n <fs-label>\n CC\n </fs-label>\n <app-recipient \n *ngFor=\"let recipient of messageQueue.emailMessageQueue.ccRecipients\"\n [state]=\"messageQueueRecipients[recipient]\"\n [name]=\"recipient\">\n </app-recipient> \n </fs-label-field>\n\n <fs-label-field *ngIf=\"messageQueue.emailMessageQueue.bccRecipients.length\">\n <fs-label>\n BCC\n </fs-label>\n <app-recipient \n *ngFor=\"let recipient of messageQueue.emailMessageQueue.bccRecipients\"\n [state]=\"messageQueueRecipients[recipient]\"\n [name]=\"recipient\">\n </app-recipient> \n </fs-label-field>\n\n <fs-label-field *ngIf=\"messageQueue.emailMessageQueue.fromName || messageQueue.emailMessageQueue.fromEmail\">\n <fs-label>\n From\n </fs-label>\n <ng-container *ngIf=\"messageQueue.emailMessageQueue.fromName === messageQueue.emailMessageQueue.fromEmail; else fromEmailName\">\n {{messageQueue.emailMessageQueue.fromName}}\n </ng-container>\n\n <ng-template #fromEmailName>\n {{messageQueue.emailMessageQueue.fromName}}\n <ng-container *ngIf=\"messageQueue.emailMessageQueue.fromEmail\">\n ({{messageQueue.emailMessageQueue.fromEmail}})\n </ng-container>\n </ng-template>\n </fs-label-field>\n\n <fs-label-field *ngIf=\"messageQueue.emailMessageQueue.replyEmail && messageQueue.emailMessageQueue.replyEmail.length\">\n <fs-label>\n Reply To\n </fs-label>\n {{messageQueue.emailMessageQueue.replyEmail.join(', ')}}\n </fs-label-field>\n </ng-container>\n\n <ng-container *ngIf=\"messageQueue.smsMessageQueue\">\n <fs-label-field>\n <fs-label>\n To Number\n </fs-label>\n <app-recipient \n [state]=\"messageQueue.state\"\n [name]=\"messageQueue.smsMessageQueue.toNumber\">\n </app-recipient> \n </fs-label-field>\n\n <fs-label-field *ngIf=\"messageQueue.smsMessageQueue.fromNumber\">\n <fs-label>\n From Number\n </fs-label>\n {{messageQueue.smsMessageQueue.fromNumber}}\n </fs-label-field>\n </ng-container>\n \n <fs-label-field>\n <fs-label>\n Date\n </fs-label>\n {{messageQueue.scheduledDate | fsDateFormat: 'full-date-time'}}\n </fs-label-field>\n\n <fs-label-field>\n <fs-label>\n Status\n </fs-label>\n {{messageQueueStates[messageQueue.state]}}\n </fs-label-field>\n\n <fs-label-field *ngIf=\"messageQueue.message\">\n <fs-label>\n Message Type\n </fs-label>\n <a\n (click)=\"openMessage(messageQueue.message)\"\n *ngIf=\"loadMessage; else elseMessage\">\n {{messageQueue.message.name}}\n </a>\n <ng-template #elseMessage>\n {{messageQueue.message.name}}\n </ng-template>\n </fs-label-field>\n </div>\n\n <ng-container *ngIf=\"messageQueue.emailMessageQueue\">\n <fs-label-field class=\"subject\">\n <fs-label>\n Subject\n </fs-label>\n {{messageQueue.emailMessageQueue.subject}}\n </fs-label-field>\n\n <fs-label-field class=\"body\">\n <fs-label>\n Body\n </fs-label>\n <div\n *ngIf=\"messageQueue.emailMessageQueue.format===emailMessageQueueFormat.Text\"\n class=\"format-text\"\n [innerHTML]=\"messageQueue.emailMessageQueue.body\">\n </div>\n <fs-iframe\n *ngIf=\"messageQueue.emailMessageQueue.format===emailMessageQueueFormat.HTML || messageQueue.emailMessageQueue.format===emailMessageQueueFormat.RichText\"\n [html]=\"messageQueue.emailMessageQueue.body\">\n </fs-iframe>\n </fs-label-field>\n </ng-container>\n\n <ng-container *ngIf=\"messageQueue.smsMessageQueue\">\n <fs-label-field>\n <fs-label>\n Message\n </fs-label>\n <div\n class=\"format-text\"\n [innerHTML]=\"messageQueue.smsMessageQueue.body\">\n </div>\n </fs-label-field>\n </ng-container>\n\n </ng-template>\n </mat-tab>\n <mat-tab label=\"Logs\">\n <ng-template matTabContent>\n <fs-list [config]=\"logConfig\" #logList>\n <fs-list-column title=\"Message\">\n <ng-template fs-list-cell let-row=\"row\">\n {{row.message}}\n </ng-template>\n </fs-list-column>\n <fs-list-column title=\"Date\">\n <ng-template fs-list-cell let-row=\"row\">\n <fs-date-ago [date]=\"row.createdDate\"></fs-date-ago>\n </ng-template>\n </fs-list-column>\n </fs-list>\n </ng-template>\n </mat-tab>\n <mat-tab label=\"Attachments\">\n <ng-template matTabContent>\n <fs-list [config]=\"attachmentConfig\">\n <fs-list-column title=\"File Name\">\n <ng-template fs-list-cell let-row=\"row\">\n {{row.filename}}\n </ng-template>\n </fs-list-column>\n <fs-list-column title=\"File Size\">\n <ng-template fs-list-cell let-row=\"row\">\n {{row.prettyFilesize}}\n </ng-template>\n </fs-list-column>\n </fs-list>\n </ng-template>\n </mat-tab>\n <mat-tab label=\"Events\">\n <ng-template matTabContent>\n <fs-list [config]=\"eventConfig\">\n <fs-list-column title=\"Recipient\">\n <ng-template fs-list-cell let-row=\"row\">\n {{row.messageQueueRecipient.recipient}}\n </ng-template>\n </fs-list-column>\n <fs-list-column title=\"Event\">\n <ng-template fs-list-cell let-row=\"row\">\n {{MessageQueueEventTypes[row.type]}}\n <div class=\"small\" *ngIf=\"row.type === MessageQueueEventType.Click\">\n <a [href]=\"row.meta?.url\" target=\"_blank\">{{row.meta?.url}}</a>\n </div>\n </ng-template>\n </fs-list-column>\n <fs-list-column title=\"Date\">\n <ng-template fs-list-cell let-row=\"row\">\n {{row.createDate | fsDateFormat: 'date-time-yearless'}}\n </ng-template>\n </fs-list-column>\n </fs-list>\n </ng-template>\n </mat-tab>\n </mat-tab-group>\n </mat-dialog-content>\n <mat-dialog-actions>\n <button\n mat-button\n [mat-dialog-close]=\"null\"\n color=\"primary\">\n Done\n </button>\n <button\n mat-button\n *ngIf=\"resendMessageQueue\"\n type=\"button\"\n (click)=\"resend()\"\n type=\"button\">\n Resend\n </button>\n <button\n mat-button\n *ngIf=\"forwardMessageQueue\"\n type=\"button\"\n (click)=\"forward()\"\n type=\"button\">\n Forward\n </button>\n </mat-dialog-actions>\n</fs-dialog>\n", styles: [".subject,.body{display:block;margin-top:15px}.body .format-text{white-space:pre-wrap}.body .body-frame{border:0}.body ::ng-deep .field-label{margin-bottom:10px}app-recipient{display:block}[hidden]{display:none!important}\n"], components: [{ type: i4__namespace.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode"] }, { type: i5__namespace.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "disableRipple"], exportAs: ["matTabGroup"] }, { type: i5__namespace.MatTab, selector: "mat-tab", inputs: ["disabled", "label", "aria-label", "aria-labelledby"], exportAs: ["matTab"] }, { type: i6__namespace$1.FsLabelFieldComponent, selector: "fs-label-field", inputs: ["bottomMargin", "topMargin", "labelMargin"] }, { type: i6__namespace$1.FsLabelComponent, selector: "fs-label" }, { type: RecipientComponent, selector: "app-recipient", inputs: ["name", "state"] }, { type: i2__namespace.FsIFrameComponent, selector: "fs-iframe", inputs: ["html", "styles"] }, { type: i2__namespace$1.FsListComponent, selector: "fs-list", inputs: ["config", "loaderLines"], outputs: ["filtersReady"] }, { type: i10__namespace$1.FsDateAgoComponent, selector: "fs-date-ago", inputs: ["date", "showTime", "format", "showTooltip", "tooltipDateFormat"] }, { type: i3__namespace.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i14__namespace.FsSkeletonContentDirective, selector: "[fsSkeleton]", inputs: ["fsSkeleton", "fsSkeletonPattern"] }, { type: i1__namespace.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1__namespace.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i5__namespace.MatTabContent, selector: "[matTabContent]" }, { type: i19__namespace.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i19__namespace.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { type: i17__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i17__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2__namespace$1.FsListColumnDirective, selector: "fs-list-column", inputs: ["show", "title", "name", "customize", "sortable", "sortableDefault", "direction", "align", "width", "class"] }, { type: i2__namespace$1.FsListCellDirective, selector: "[fs-list-cell]", inputs: ["colspan", "align", "class"] }, { type: i1__namespace.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i1__namespace.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["type", "mat-dialog-close", "aria-label", "matDialogClose"], exportAs: ["matDialogClose"] }], pipes: { "fsDateFormat": i10__namespace$1.FsDateFormatPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
1054
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: QueueComponent, decorators: [{
1055
+ type: i0.Component,
1056
+ args: [{
1057
+ templateUrl: './queue.component.html',
1058
+ styleUrls: ['./queue.component.scss'],
1059
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
1060
+ }]
1061
+ }], ctorParameters: function () {
1062
+ return [{ type: undefined, decorators: [{
1063
+ type: i0.Inject,
1064
+ args: [FS_APP_MESSAGE_CONFIG]
1065
+ }] }, { type: undefined, decorators: [{
1066
+ type: i0.Inject,
1067
+ args: [i1.MAT_DIALOG_DATA]
1068
+ }] }, { type: i1__namespace$1.FsMessage }, { type: i1__namespace$2.FsPrompt }, { type: i1__namespace.MatDialog }, { type: i0__namespace.ChangeDetectorRef }];
1069
+ }, propDecorators: { logList: [{
1070
+ type: i0.ViewChild,
1071
+ args: ['logList']
986
1072
  }] } });
987
1073
 
988
- var FsMessageQueueService = /** @class */ (function () {
989
- function FsMessageQueueService(_dialog) {
990
- this._dialog = _dialog;
991
- this._destroy$ = new rxjs.Subject();
992
- }
993
- FsMessageQueueService.prototype.openMessageQueue = function (messageQueueId, options) {
994
- if (options === void 0) { options = {}; }
995
- return this._dialog.open(QueueComponent, Object.assign(Object.assign({}, options), { data: {
996
- messageQueueId: messageQueueId,
997
- }, width: options.width || '85%' })).afterClosed()
998
- .pipe(operators.takeUntil(this._destroy$));
999
- };
1000
- FsMessageQueueService.prototype.ngOnDestroy = function () {
1001
- this._destroy$.next();
1002
- this._destroy$.complete();
1003
- };
1004
- return FsMessageQueueService;
1005
- }());
1006
- FsMessageQueueService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsMessageQueueService, deps: [{ token: i1__namespace.MatDialog }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1007
- FsMessageQueueService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsMessageQueueService });
1008
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsMessageQueueService, decorators: [{
1009
- type: i0.Injectable
1074
+ var FsMessageQueueService = /** @class */ (function () {
1075
+ function FsMessageQueueService(_dialog) {
1076
+ this._dialog = _dialog;
1077
+ this._destroy$ = new rxjs.Subject();
1078
+ }
1079
+ FsMessageQueueService.prototype.openMessageQueue = function (messageQueueId, options) {
1080
+ if (options === void 0) { options = {}; }
1081
+ return this._dialog.open(QueueComponent, Object.assign(Object.assign({}, options), { data: {
1082
+ messageQueueId: messageQueueId,
1083
+ }, width: options.width || '85%' })).afterClosed()
1084
+ .pipe(operators.takeUntil(this._destroy$));
1085
+ };
1086
+ FsMessageQueueService.prototype.ngOnDestroy = function () {
1087
+ this._destroy$.next();
1088
+ this._destroy$.complete();
1089
+ };
1090
+ return FsMessageQueueService;
1091
+ }());
1092
+ FsMessageQueueService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsMessageQueueService, deps: [{ token: i1__namespace.MatDialog }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1093
+ FsMessageQueueService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsMessageQueueService });
1094
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsMessageQueueService, decorators: [{
1095
+ type: i0.Injectable
1010
1096
  }], ctorParameters: function () { return [{ type: i1__namespace.MatDialog }]; } });
1011
1097
 
1012
- var TruncatePipe = /** @class */ (function () {
1013
- function TruncatePipe() {
1014
- }
1015
- TruncatePipe.prototype.transform = function (value, limit, completeWords, ellipsis) {
1016
- if (limit === void 0) { limit = 25; }
1017
- if (completeWords === void 0) { completeWords = false; }
1018
- if (ellipsis === void 0) { ellipsis = '...'; }
1019
- if (value.length < limit) {
1020
- return "" + value.substr(0, limit);
1021
- }
1022
- if (completeWords) {
1023
- limit = value.substr(0, limit).lastIndexOf(' ');
1024
- }
1025
- return "" + value.substr(0, limit) + ellipsis;
1026
- };
1027
- return TruncatePipe;
1028
- }());
1029
- TruncatePipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TruncatePipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
1030
- TruncatePipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TruncatePipe, name: "truncate" });
1031
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TruncatePipe, decorators: [{
1032
- type: i0.Pipe,
1033
- args: [{
1034
- name: 'truncate'
1035
- }]
1098
+ var TruncatePipe = /** @class */ (function () {
1099
+ function TruncatePipe() {
1100
+ }
1101
+ TruncatePipe.prototype.transform = function (value, limit, completeWords, ellipsis) {
1102
+ if (limit === void 0) { limit = 25; }
1103
+ if (completeWords === void 0) { completeWords = false; }
1104
+ if (ellipsis === void 0) { ellipsis = '...'; }
1105
+ if (value.length < limit) {
1106
+ return "" + value.substr(0, limit);
1107
+ }
1108
+ if (completeWords) {
1109
+ limit = value.substr(0, limit).lastIndexOf(' ');
1110
+ }
1111
+ return "" + value.substr(0, limit) + ellipsis;
1112
+ };
1113
+ return TruncatePipe;
1114
+ }());
1115
+ TruncatePipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TruncatePipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
1116
+ TruncatePipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TruncatePipe, name: "truncate" });
1117
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TruncatePipe, decorators: [{
1118
+ type: i0.Pipe,
1119
+ args: [{
1120
+ name: 'truncate'
1121
+ }]
1036
1122
  }] });
1037
1123
 
1038
- var QueuesComponent = /** @class */ (function () {
1039
- function QueuesComponent(_config, _dialog, _messageQueueService) {
1040
- this._config = _config;
1041
- this._dialog = _dialog;
1042
- this._messageQueueService = _messageQueueService;
1043
- this.list = null;
1044
- this.query = {};
1045
- this.config = null;
1046
- this.messageQueueStates = {};
1047
- this.MessageQueueState = MessageQueueState;
1048
- this._destroy$ = new rxjs.Subject();
1049
- }
1050
- QueuesComponent.prototype.ngOnInit = function () {
1051
- var _this = this;
1052
- this.messageQueueStates = indexNameValue(MessageQueueStates);
1053
- this.config = {
1054
- filters: [
1055
- {
1056
- name: 'keyword',
1057
- type: filter.ItemType.Keyword,
1058
- label: 'Search'
1059
- },
1060
- {
1061
- name: 'state',
1062
- type: filter.ItemType.Select,
1063
- label: 'Status',
1064
- values: function () {
1065
- return MessageQueueStates;
1066
- }
1067
- },
1068
- {
1069
- name: 'date',
1070
- type: filter.ItemType.DateRange,
1071
- label: ['From Date', 'To Date'],
1072
- },
1073
- ],
1074
- sort: { value: 'created_date', direction: 'desc' },
1075
- fetch: function (query) {
1076
- query = Object.assign(Object.assign(Object.assign({}, query), _this.query), { messageQueueAttachmentCounts: true, emailMessageQueues: true, emailMessageQueueBodies: false, smsMessageQueues: true });
1077
- return _this._config.loadMessageQueues(query)
1078
- .pipe(operators.map(function (response) { return ({ data: response.data
1079
- .map(function (messageQueue) {
1080
- return Object.assign(Object.assign({}, messageQueue), { messageQueueRecipients: messageQueue.messageQueueRecipients
1081
- .reduce(function (accum, messageQueueRecipient) {
1082
- accum[messageQueueRecipient.recipient] = messageQueueRecipient.state;
1083
- return accum;
1084
- }, {}) });
1085
- }), paging: response.paging }); }));
1086
- }
1087
- };
1088
- if (this._config.bulkMessageQueues) {
1089
- this.config.selection = {
1090
- selectAll: false,
1091
- actions: [
1092
- {
1093
- type: selection.SelectionActionType.Action,
1094
- name: 'queue',
1095
- label: 'Queue',
1096
- },
1097
- {
1098
- type: selection.SelectionActionType.Action,
1099
- name: 'resend',
1100
- label: 'Resend',
1101
- },
1102
- {
1103
- type: selection.SelectionActionType.Action,
1104
- name: 'cancel',
1105
- label: 'Cancel',
1106
- },
1107
- ],
1108
- actionSelected: function (actionSelected) {
1109
- return _this._config.bulkMessageQueues(actionSelected.action.name, actionSelected.selected)
1110
- .pipe(operators.tap(function () {
1111
- _this.list.reload();
1112
- }));
1113
- }
1114
- };
1115
- }
1116
- this.config.filters.push({
1117
- name: 'message_id',
1118
- type: filter.ItemType.Select,
1119
- label: 'Message Type',
1120
- values: function (query) {
1121
- query = Object.assign(Object.assign({}, query), { limit: 50 });
1122
- return _this._config.loadMessages(query)
1123
- .pipe(operators.map(function (response) {
1124
- return __spreadArray([
1125
- { value: null, name: 'All', }
1126
- ], __read(response.data.map(function (item) { return ({ name: item.name, value: item.id }); })));
1127
- }));
1128
- }
1129
- });
1130
- };
1131
- QueuesComponent.prototype.open = function (messageQueue) {
1132
- var _this = this;
1133
- this._messageQueueService.openMessageQueue(messageQueue.id)
1134
- .pipe(operators.takeUntil(this._destroy$))
1135
- .subscribe(function () {
1136
- _this.list.reload();
1137
- });
1138
- };
1139
- QueuesComponent.prototype.ngOnDestroy = function () {
1140
- this._destroy$.next();
1141
- this._destroy$.complete();
1142
- };
1143
- return QueuesComponent;
1144
- }());
1145
- QueuesComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: QueuesComponent, deps: [{ token: FS_APP_MESSAGE_CONFIG }, { token: i1__namespace.MatDialog }, { token: FsMessageQueueService }], target: i0__namespace.ɵɵFactoryTarget.Component });
1146
- QueuesComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: QueuesComponent, selector: "fs-app-message-queues", inputs: { query: "query" }, viewQueries: [{ propertyName: "list", first: true, predicate: i2$2.FsListComponent, descendants: true, static: true }], ngImport: i0__namespace, template: "<fs-list [config]=\"config\" #list>\n <fs-list-column title=\"Message\" name=\"subject\" sortable=\"true\">\n <ng-template fs-list-cell let-row=\"row\">\n <ng-container *ngIf=\"row.emailMessageQueue\">\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <a (click)=\"open(row)\">{{row.emailMessageQueue.subject|truncate:100}}</a>\n <mat-icon *ngIf=\"row.messageQueueAttachmentCount\" [matTooltip]=\"row.messageQueueAttachmentCount + ' Attachment(s)'\">attach_file</mat-icon>\n </div>\n </ng-container>\n <ng-container *ngIf=\"row.smsMessageQueue\">\n <a (click)=\"open(row)\">{{row.smsMessageQueue.body|truncate:100}}</a>\n </ng-container>\n </ng-template>\n </fs-list-column>\n <fs-list-column title=\"Recipients\" class=\"col-recipients\">\n <ng-template fs-list-cell let-row=\"row\">\n <ng-container *ngIf=\"row.emailMessageQueue\">\n <ng-container *ngIf=\"row.emailMessageQueue.toRecipients.length; else unspecified\">\n <div class=\"small\" *ngFor=\"let recipient of row.emailMessageQueue.toRecipients\">\n <app-recipient \n [state]=\"row.messageQueueRecipients[recipient] || row.state\"\n [name]=\"recipient\">\n </app-recipient>\n </div>\n </ng-container>\n <div class=\"small\" *ngFor=\"let recipient of row.emailMessageQueue.ccRecipients\">\n <app-recipient \n [state]=\"row.messageQueueRecipients[recipient] || row.state\"\n [name]=\"recipient\">\n </app-recipient>\n </div>\n <div class=\"small\" *ngFor=\"let recipient of row.emailMessageQueue.bccRecipients\">\n <app-recipient \n [state]=\"row.messageQueueRecipients[recipient] || row.state\"\n [name]=\"recipient\">\n </app-recipient>\n </div>\n </ng-container>\n <ng-container *ngIf=\"row.smsMessageQueue\">\n <ng-container *ngIf=\"row.smsMessageQueue.toNumber; else unspecified\">\n <app-recipient \n class=\"small\"\n [state]=\"row.state\"\n [name]=\"row.smsMessageQueue.toNumber\">\n </app-recipient>\n </ng-container>\n </ng-container>\n </ng-template>\n </fs-list-column> \n <fs-list-column title=\"Status\" class=\"col-state\">\n <ng-template fs-list-cell let-row=\"row\">\n <span [class]=\"'state-' + row.state\">{{messageQueueStates[row.state]}}</span>\n </ng-template>\n </fs-list-column> \n <fs-list-column title=\"Date\" name=\"created_date\" sortable=\"true\">\n <ng-template fs-list-cell let-row=\"row\">\n {{ row.createdDate | fsDateFormat: 'date-time-yeardiff' }}\n </ng-template>\n </fs-list-column>\n</fs-list>\n\n<ng-template #unspecified>\n <app-recipient \n class=\"small\"\n [state]=\"MessageQueueState.Failed\"\n name=\"Unspecified\">\n </app-recipient>\n</ng-template>", styles: [":host ::ng-deep .col-recipients small+small:before{content:\", \"}:host ::ng-deep .col-state .state-F,:host ::ng-deep .col-state .state-P{color:#d8524e}\n"], components: [{ type: i2__namespace$2.FsListComponent, selector: "fs-list", inputs: ["config", "loaderLines"], outputs: ["filtersReady"] }, { type: i1__namespace$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: RecipientComponent, selector: "app-recipient", inputs: ["name", "state"] }], directives: [{ type: i2__namespace$2.FsListColumnDirective, selector: "fs-list-column", inputs: ["title", "name", "show", "customize", "sortable", "sortableDefault", "direction", "align", "width", "class"] }, { type: i2__namespace$2.FsListCellDirective, selector: "[fs-list-cell]", inputs: ["colspan", "align", "class"] }, { type: i16__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i17__namespace.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i17__namespace.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i3__namespace$1.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { type: i16__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "truncate": TruncatePipe, "fsDateFormat": i10__namespace$1.FsDateFormatPipe } });
1147
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: QueuesComponent, decorators: [{
1148
- type: i0.Component,
1149
- args: [{
1150
- selector: 'fs-app-message-queues',
1151
- styleUrls: ['./queues.component.scss'],
1152
- templateUrl: './queues.component.html'
1153
- }]
1154
- }], ctorParameters: function () {
1155
- return [{ type: undefined, decorators: [{
1156
- type: i0.Inject,
1157
- args: [FS_APP_MESSAGE_CONFIG]
1158
- }] }, { type: i1__namespace.MatDialog }, { type: FsMessageQueueService }];
1159
- }, propDecorators: { list: [{
1160
- type: i0.ViewChild,
1161
- args: [i2$2.FsListComponent, { static: true }]
1162
- }], query: [{
1163
- type: i0.Input
1124
+ var QueuesComponent = /** @class */ (function () {
1125
+ function QueuesComponent(_config, _messageQueueService) {
1126
+ this._config = _config;
1127
+ this._messageQueueService = _messageQueueService;
1128
+ this.list = null;
1129
+ this.query = {};
1130
+ this.config = null;
1131
+ this.messageQueueStates = {};
1132
+ this.MessageQueueState = MessageQueueState;
1133
+ this._destroy$ = new rxjs.Subject();
1134
+ }
1135
+ QueuesComponent.prototype.ngOnInit = function () {
1136
+ var _this = this;
1137
+ this.messageQueueStates = indexNameValue(MessageQueueStates);
1138
+ this.config = {
1139
+ filters: [
1140
+ {
1141
+ name: 'keyword',
1142
+ type: filter.ItemType.Keyword,
1143
+ label: 'Search'
1144
+ },
1145
+ {
1146
+ name: 'state',
1147
+ type: filter.ItemType.Select,
1148
+ label: 'Status',
1149
+ values: function () {
1150
+ return MessageQueueStates;
1151
+ }
1152
+ },
1153
+ {
1154
+ name: 'date',
1155
+ type: filter.ItemType.DateRange,
1156
+ label: ['From Date', 'To Date'],
1157
+ },
1158
+ ],
1159
+ sort: { value: 'created_date', direction: 'desc' },
1160
+ fetch: function (query) {
1161
+ query = Object.assign(Object.assign(Object.assign({}, query), _this.query), { messageQueueAttachmentCounts: true, emailMessageQueues: true, emailMessageQueueBodies: false, smsMessageQueues: true });
1162
+ return _this._config.loadMessageQueues(query)
1163
+ .pipe(operators.map(function (response) { return ({ data: response.data
1164
+ .map(function (messageQueue) {
1165
+ return Object.assign(Object.assign({}, messageQueue), { messageQueueRecipients: messageQueue.messageQueueRecipients
1166
+ .reduce(function (accum, messageQueueRecipient) {
1167
+ accum[messageQueueRecipient.recipient] = messageQueueRecipient.state;
1168
+ return accum;
1169
+ }, {}) });
1170
+ }), paging: response.paging }); }));
1171
+ }
1172
+ };
1173
+ if (this._config.bulkMessageQueues) {
1174
+ this.config.selection = {
1175
+ selectAll: false,
1176
+ actions: [
1177
+ {
1178
+ type: selection.SelectionActionType.Action,
1179
+ name: 'queue',
1180
+ label: 'Queue',
1181
+ },
1182
+ {
1183
+ type: selection.SelectionActionType.Action,
1184
+ name: 'resend',
1185
+ label: 'Resend',
1186
+ },
1187
+ {
1188
+ type: selection.SelectionActionType.Action,
1189
+ name: 'cancel',
1190
+ label: 'Cancel',
1191
+ },
1192
+ ],
1193
+ actionSelected: function (actionSelected) {
1194
+ return _this._config.bulkMessageQueues(actionSelected.action.name, actionSelected.selected)
1195
+ .pipe(operators.tap(function () {
1196
+ _this.list.reload();
1197
+ }));
1198
+ }
1199
+ };
1200
+ }
1201
+ this.config.filters.push({
1202
+ name: 'message_id',
1203
+ type: filter.ItemType.Select,
1204
+ label: 'Message Type',
1205
+ values: function (query) {
1206
+ query = Object.assign(Object.assign({}, query), { limit: 50 });
1207
+ return _this._config.loadMessages(query)
1208
+ .pipe(operators.map(function (response) {
1209
+ return __spreadArray([
1210
+ { value: null, name: 'All', }
1211
+ ], __read(response.data
1212
+ .map(function (item) { return ({ name: item.name, value: item.id }); })));
1213
+ }));
1214
+ }
1215
+ });
1216
+ };
1217
+ QueuesComponent.prototype.open = function (messageQueue) {
1218
+ var _this = this;
1219
+ this._messageQueueService.openMessageQueue(messageQueue.id)
1220
+ .pipe(operators.takeUntil(this._destroy$))
1221
+ .subscribe(function () {
1222
+ _this.list.reload();
1223
+ });
1224
+ };
1225
+ QueuesComponent.prototype.ngOnDestroy = function () {
1226
+ this._destroy$.next();
1227
+ this._destroy$.complete();
1228
+ };
1229
+ return QueuesComponent;
1230
+ }());
1231
+ QueuesComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: QueuesComponent, deps: [{ token: FS_APP_MESSAGE_CONFIG }, { token: FsMessageQueueService }], target: i0__namespace.ɵɵFactoryTarget.Component });
1232
+ QueuesComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: QueuesComponent, selector: "fs-app-message-queues", inputs: { query: "query" }, viewQueries: [{ propertyName: "list", first: true, predicate: i2$1.FsListComponent, descendants: true, static: true }], ngImport: i0__namespace, template: "<fs-list [config]=\"config\" #list>\n <fs-list-column title=\"Message\" name=\"subject\" sortable=\"true\">\n <ng-template fs-list-cell let-row=\"row\">\n <ng-container *ngIf=\"row.emailMessageQueue\">\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <a (click)=\"open(row)\">{{row.emailMessageQueue.subject|truncate:100}}</a>\n <mat-icon *ngIf=\"row.messageQueueAttachmentCount\" [matTooltip]=\"row.messageQueueAttachmentCount + ' Attachment(s)'\">attach_file</mat-icon>\n </div>\n </ng-container>\n <ng-container *ngIf=\"row.smsMessageQueue\">\n <a (click)=\"open(row)\">{{row.smsMessageQueue.body|truncate:100}}</a>\n </ng-container>\n </ng-template>\n </fs-list-column>\n <fs-list-column title=\"Recipients\" class=\"col-recipients\">\n <ng-template fs-list-cell let-row=\"row\">\n <ng-container *ngIf=\"row.emailMessageQueue\">\n <ng-container *ngIf=\"row.emailMessageQueue.toRecipients.length; else unspecified\">\n <div class=\"small\" *ngFor=\"let recipient of row.emailMessageQueue.toRecipients\">\n <app-recipient \n [state]=\"row.messageQueueRecipients[recipient] || row.state\"\n [name]=\"recipient\">\n </app-recipient>\n </div>\n </ng-container>\n <div class=\"small\" *ngFor=\"let recipient of row.emailMessageQueue.ccRecipients\">\n <app-recipient \n [state]=\"row.messageQueueRecipients[recipient] || row.state\"\n [name]=\"recipient\">\n </app-recipient>\n </div>\n <div class=\"small\" *ngFor=\"let recipient of row.emailMessageQueue.bccRecipients\">\n <app-recipient \n [state]=\"row.messageQueueRecipients[recipient] || row.state\"\n [name]=\"recipient\">\n </app-recipient>\n </div>\n </ng-container>\n <ng-container *ngIf=\"row.smsMessageQueue\">\n <ng-container *ngIf=\"row.smsMessageQueue.toNumber; else unspecified\">\n <app-recipient \n class=\"small\"\n [state]=\"row.state\"\n [name]=\"row.smsMessageQueue.toNumber\">\n </app-recipient>\n </ng-container>\n </ng-container>\n </ng-template>\n </fs-list-column> \n <fs-list-column title=\"Status\" class=\"col-state\">\n <ng-template fs-list-cell let-row=\"row\">\n <span [class]=\"'state-' + row.state\">{{messageQueueStates[row.state]}}</span>\n </ng-template>\n </fs-list-column> \n <fs-list-column title=\"Date\" name=\"created_date\" sortable=\"true\">\n <ng-template fs-list-cell let-row=\"row\">\n {{ row.createdDate | fsDateFormat: 'date-time-yeardiff' }}\n </ng-template>\n </fs-list-column>\n</fs-list>\n\n<ng-template #unspecified>\n <app-recipient \n class=\"small\"\n [state]=\"MessageQueueState.Failed\"\n name=\"Unspecified\">\n </app-recipient>\n</ng-template>", styles: [":host ::ng-deep .col-recipients small+small:before{content:\", \"}:host ::ng-deep .col-state .state-F,:host ::ng-deep .col-state .state-P{color:#d8524e}\n"], components: [{ type: i2__namespace$1.FsListComponent, selector: "fs-list", inputs: ["config", "loaderLines"], outputs: ["filtersReady"] }, { type: i1__namespace$3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: RecipientComponent, selector: "app-recipient", inputs: ["name", "state"] }], directives: [{ type: i2__namespace$1.FsListColumnDirective, selector: "fs-list-column", inputs: ["show", "title", "name", "customize", "sortable", "sortableDefault", "direction", "align", "width", "class"] }, { type: i2__namespace$1.FsListCellDirective, selector: "[fs-list-cell]", inputs: ["colspan", "align", "class"] }, { type: i17__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i19__namespace.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i19__namespace.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i3__namespace$2.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { type: i17__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "truncate": TruncatePipe, "fsDateFormat": i10__namespace$1.FsDateFormatPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
1233
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: QueuesComponent, decorators: [{
1234
+ type: i0.Component,
1235
+ args: [{
1236
+ selector: 'fs-app-message-queues',
1237
+ styleUrls: ['./queues.component.scss'],
1238
+ templateUrl: './queues.component.html',
1239
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
1240
+ }]
1241
+ }], ctorParameters: function () {
1242
+ return [{ type: undefined, decorators: [{
1243
+ type: i0.Inject,
1244
+ args: [FS_APP_MESSAGE_CONFIG]
1245
+ }] }, { type: FsMessageQueueService }];
1246
+ }, propDecorators: { list: [{
1247
+ type: i0.ViewChild,
1248
+ args: [i2$1.FsListComponent, { static: true }]
1249
+ }], query: [{
1250
+ type: i0.Input
1164
1251
  }] } });
1165
1252
 
1166
- var LinkifyPipe = /** @class */ (function () {
1167
- function LinkifyPipe() {
1168
- }
1169
- LinkifyPipe.prototype.transform = function (value) {
1170
- return anchorme__default["default"](value, {
1171
- attributes: [
1172
- {
1173
- name: 'target',
1174
- value: '_blank'
1175
- },
1176
- ]
1177
- });
1178
- };
1179
- return LinkifyPipe;
1180
- }());
1181
- LinkifyPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LinkifyPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
1182
- LinkifyPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LinkifyPipe, name: "linkify" });
1183
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LinkifyPipe, decorators: [{
1184
- type: i0.Pipe,
1185
- args: [{ name: 'linkify' }]
1253
+ var LinkifyPipe = /** @class */ (function () {
1254
+ function LinkifyPipe() {
1255
+ }
1256
+ LinkifyPipe.prototype.transform = function (value) {
1257
+ return anchorme__default["default"](value, {
1258
+ attributes: [
1259
+ {
1260
+ name: 'target',
1261
+ value: '_blank'
1262
+ },
1263
+ ]
1264
+ });
1265
+ };
1266
+ return LinkifyPipe;
1267
+ }());
1268
+ LinkifyPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LinkifyPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
1269
+ LinkifyPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LinkifyPipe, name: "linkify" });
1270
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LinkifyPipe, decorators: [{
1271
+ type: i0.Pipe,
1272
+ args: [{ name: 'linkify' }]
1186
1273
  }] });
1187
1274
 
1188
- var FsAppMessageQueuesModule = /** @class */ (function () {
1189
- function FsAppMessageQueuesModule() {
1190
- }
1191
- return FsAppMessageQueuesModule;
1192
- }());
1193
- FsAppMessageQueuesModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsAppMessageQueuesModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1194
- FsAppMessageQueuesModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsAppMessageQueuesModule, declarations: [QueuesComponent,
1195
- QueueComponent,
1196
- LinkifyPipe,
1197
- TruncatePipe,
1198
- RecipientComponent], imports: [router.RouterModule,
1199
- i14.FormsModule,
1200
- i16.CommonModule,
1201
- flexLayout.FlexLayoutModule,
1202
- i3$1.MatTooltipModule,
1203
- i1.MatDialogModule,
1204
- i3.MatButtonModule,
1205
- i1$2.MatIconModule,
1206
- i5.MatTabsModule,
1207
- i2$2.FsListModule,
1208
- i4.FsDialogModule,
1209
- i6$1.FsLabelModule,
1210
- i10$1.FsDateModule,
1211
- i13.FsSkeletonModule,
1212
- FsAppMessagesModule,
1213
- i15.FsFormModule,
1214
- i1$1.FsPromptInputModule,
1215
- i2.FsIFrameModule], exports: [QueuesComponent,
1216
- QueueComponent] });
1217
- FsAppMessageQueuesModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsAppMessageQueuesModule, providers: [
1218
- FsMessageQueueService
1219
- ], imports: [[
1220
- router.RouterModule,
1221
- i14.FormsModule,
1222
- i16.CommonModule,
1223
- flexLayout.FlexLayoutModule,
1224
- i3$1.MatTooltipModule,
1225
- i1.MatDialogModule,
1226
- i3.MatButtonModule,
1227
- i1$2.MatIconModule,
1228
- i5.MatTabsModule,
1229
- i2$2.FsListModule,
1230
- i4.FsDialogModule,
1231
- i6$1.FsLabelModule,
1232
- i10$1.FsDateModule,
1233
- i13.FsSkeletonModule,
1234
- FsAppMessagesModule,
1235
- i15.FsFormModule,
1236
- i1$1.FsPromptInputModule,
1237
- i2.FsIFrameModule,
1238
- //FsDeviceModule,
1239
- //FsIpModule,
1240
- ]] });
1241
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsAppMessageQueuesModule, decorators: [{
1242
- type: i0.NgModule,
1243
- args: [{
1244
- imports: [
1245
- router.RouterModule,
1246
- i14.FormsModule,
1247
- i16.CommonModule,
1248
- flexLayout.FlexLayoutModule,
1249
- i3$1.MatTooltipModule,
1250
- i1.MatDialogModule,
1251
- i3.MatButtonModule,
1252
- i1$2.MatIconModule,
1253
- i5.MatTabsModule,
1254
- i2$2.FsListModule,
1255
- i4.FsDialogModule,
1256
- i6$1.FsLabelModule,
1257
- i10$1.FsDateModule,
1258
- i13.FsSkeletonModule,
1259
- FsAppMessagesModule,
1260
- i15.FsFormModule,
1261
- i1$1.FsPromptInputModule,
1262
- i2.FsIFrameModule,
1263
- //FsDeviceModule,
1264
- //FsIpModule,
1265
- ],
1266
- declarations: [
1267
- QueuesComponent,
1268
- QueueComponent,
1269
- LinkifyPipe,
1270
- TruncatePipe,
1271
- RecipientComponent,
1272
- ],
1273
- exports: [
1274
- QueuesComponent,
1275
- QueueComponent,
1276
- ],
1277
- providers: [
1278
- FsMessageQueueService
1279
- ]
1280
- }]
1275
+ var FsAppMessageQueuesModule = /** @class */ (function () {
1276
+ function FsAppMessageQueuesModule() {
1277
+ }
1278
+ return FsAppMessageQueuesModule;
1279
+ }());
1280
+ FsAppMessageQueuesModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsAppMessageQueuesModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1281
+ FsAppMessageQueuesModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsAppMessageQueuesModule, declarations: [QueuesComponent,
1282
+ QueueComponent,
1283
+ LinkifyPipe,
1284
+ TruncatePipe,
1285
+ RecipientComponent], imports: [router.RouterModule,
1286
+ i15.FormsModule,
1287
+ i17.CommonModule,
1288
+ flexLayout.FlexLayoutModule,
1289
+ i3$2.MatTooltipModule,
1290
+ i1.MatDialogModule,
1291
+ i3.MatButtonModule,
1292
+ i1$3.MatIconModule,
1293
+ i5.MatTabsModule,
1294
+ i2$1.FsListModule,
1295
+ i4.FsDialogModule,
1296
+ i6$1.FsLabelModule,
1297
+ i10$1.FsDateModule,
1298
+ i14.FsSkeletonModule,
1299
+ FsAppMessagesModule,
1300
+ i16.FsFormModule,
1301
+ i1$2.FsPromptInputModule,
1302
+ i2.FsIFrameModule], exports: [QueuesComponent,
1303
+ QueueComponent] });
1304
+ FsAppMessageQueuesModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsAppMessageQueuesModule, providers: [
1305
+ FsMessageQueueService
1306
+ ], imports: [[
1307
+ router.RouterModule,
1308
+ i15.FormsModule,
1309
+ i17.CommonModule,
1310
+ flexLayout.FlexLayoutModule,
1311
+ i3$2.MatTooltipModule,
1312
+ i1.MatDialogModule,
1313
+ i3.MatButtonModule,
1314
+ i1$3.MatIconModule,
1315
+ i5.MatTabsModule,
1316
+ i2$1.FsListModule,
1317
+ i4.FsDialogModule,
1318
+ i6$1.FsLabelModule,
1319
+ i10$1.FsDateModule,
1320
+ i14.FsSkeletonModule,
1321
+ FsAppMessagesModule,
1322
+ i16.FsFormModule,
1323
+ i1$2.FsPromptInputModule,
1324
+ i2.FsIFrameModule,
1325
+ //FsDeviceModule,
1326
+ //FsIpModule,
1327
+ ]] });
1328
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsAppMessageQueuesModule, decorators: [{
1329
+ type: i0.NgModule,
1330
+ args: [{
1331
+ imports: [
1332
+ router.RouterModule,
1333
+ i15.FormsModule,
1334
+ i17.CommonModule,
1335
+ flexLayout.FlexLayoutModule,
1336
+ i3$2.MatTooltipModule,
1337
+ i1.MatDialogModule,
1338
+ i3.MatButtonModule,
1339
+ i1$3.MatIconModule,
1340
+ i5.MatTabsModule,
1341
+ i2$1.FsListModule,
1342
+ i4.FsDialogModule,
1343
+ i6$1.FsLabelModule,
1344
+ i10$1.FsDateModule,
1345
+ i14.FsSkeletonModule,
1346
+ FsAppMessagesModule,
1347
+ i16.FsFormModule,
1348
+ i1$2.FsPromptInputModule,
1349
+ i2.FsIFrameModule,
1350
+ //FsDeviceModule,
1351
+ //FsIpModule,
1352
+ ],
1353
+ declarations: [
1354
+ QueuesComponent,
1355
+ QueueComponent,
1356
+ LinkifyPipe,
1357
+ TruncatePipe,
1358
+ RecipientComponent,
1359
+ ],
1360
+ exports: [
1361
+ QueuesComponent,
1362
+ QueueComponent,
1363
+ ],
1364
+ providers: [
1365
+ FsMessageQueueService
1366
+ ]
1367
+ }]
1281
1368
  }] });
1282
1369
 
1283
- var TemplateComponent = /** @class */ (function () {
1284
- function TemplateComponent(_data, _config, _dialogRef, _message, _dialog) {
1285
- var _this = this;
1286
- this._data = _data;
1287
- this._config = _config;
1288
- this._dialogRef = _dialogRef;
1289
- this._message = _message;
1290
- this._dialog = _dialog;
1291
- this.htmlEditorconfig = {
1292
- language: 'html',
1293
- insertSpaces: true,
1294
- tabSize: 2,
1295
- };
1296
- this.cssEditorconfig = {
1297
- language: 'scss',
1298
- insertSpaces: true,
1299
- tabSize: 2,
1300
- };
1301
- this.save = function (event) {
1302
- return _this._config.saveMessageTemplate(_this.messageTemplate)
1303
- .pipe(operators.tap(function (messageTemplate) {
1304
- _this._message.success('Saved Changes');
1305
- if (event.submitter === 'save-close') {
1306
- _this._dialogRef.close(messageTemplate);
1307
- }
1308
- }));
1309
- };
1310
- }
1311
- TemplateComponent.prototype.ngOnInit = function () {
1312
- var _this = this;
1313
- if (this._data.messageTemplate.id) {
1314
- this._config.loadMessageTemplate(this._data.messageTemplate)
1315
- .subscribe(function (messageTemplate) {
1316
- _this.messageTemplate = messageTemplate;
1317
- });
1318
- }
1319
- else {
1320
- this.messageTemplate = {};
1321
- }
1322
- };
1323
- TemplateComponent.prototype.openPreview = function () {
1324
- this._dialog.open(PreviewComponent, {
1325
- data: {
1326
- styles: this.messageTemplate.styles,
1327
- html: this.messageTemplate.content,
1328
- },
1329
- width: '95%',
1330
- });
1331
- };
1332
- return TemplateComponent;
1333
- }());
1334
- TemplateComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TemplateComponent, deps: [{ token: i1.MAT_DIALOG_DATA }, { token: FS_APP_MESSAGE_CONFIG }, { token: i1__namespace.MatDialogRef }, { token: i2__namespace$1.FsMessage }, { token: i1__namespace.MatDialog }], target: i0__namespace.ɵɵFactoryTarget.Component });
1335
- TemplateComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TemplateComponent, selector: "ng-component", ngImport: i0__namespace, template: "<form\n fsForm\n [submit]=\"save\"\n #form=\"ngForm\"\n *fsSkeleton=\"messageTemplate\"\n [confirmTabs]=\"false\">\n <fs-dialog *ngIf=\"messageTemplate\">\n <div mat-dialog-title>Message Template</div>\n <mat-dialog-content>\n <mat-form-field class=\"name\">\n <input\n matInput\n placeholder=\"Name\"\n [(ngModel)]=\"messageTemplate.name\"\n name=\"name\"\n >\n </mat-form-field>\n <div [@.disabled]=\"true\">\n <mat-tab-group\n mat-align-tabs=\"start\"\n [dynamicHeight]=\"false\">\n <mat-tab label=\"Content\">\n <ng-template matTabContent>\n <div class=\"content\">\n <fs-label-field>\n <fs-text-editor\n [(ngModel)]=\"messageTemplate.content\"\n name=\"body\"\n [config]=\"htmlEditorconfig\">\n </fs-text-editor>\n <fs-label-message>\n &#123;$content&#125; will be replaced with the message content.\n </fs-label-message>\n </fs-label-field>\n </div>\n </ng-template>\n </mat-tab>\n <mat-tab label=\"Styles\">\n <ng-template matTabContent>\n <div class=\"styles\">\n <fs-text-editor\n [(ngModel)]=\"messageTemplate.styles\"\n name=\"styles\"\n [config]=\"cssEditorconfig\">\n </fs-text-editor>\n </div>\n </ng-template>\n </mat-tab>\n </mat-tab-group>\n </div>\n </mat-dialog-content>\n <mat-dialog-actions>\n <button mat-button type=\"submit\" color=\"primary\" name=\"close\">Save</button>\n <button mat-button type=\"submit\" name=\"save-close\">Save & Close</button>\n <button mat-button (click)=\"openPreview()\" type=\"button\">Preview</button>\n <button mat-button [mat-dialog-close]=\"null\" type=\"button\">Cancel</button>\n </mat-dialog-actions>\n </fs-dialog>\n</form>\n", styles: [".name{width:100%}:host ::ng-deep .mat-tab-body-content,:host ::ng-deep .mat-tab-body{overflow:visible}\n"], components: [{ type: i4__namespace.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode"] }, { type: i6__namespace.MatFormField, selector: "mat-form-field", inputs: ["color", "floatLabel", "appearance", "hideRequiredMarker", "hintLabel"], exportAs: ["matFormField"] }, { type: i5__namespace.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "disableRipple"], exportAs: ["matTabGroup"] }, { type: i5__namespace.MatTab, selector: "mat-tab", inputs: ["disabled", "label", "aria-label", "aria-labelledby"], exportAs: ["matTab"] }, { type: i6__namespace$1.FsLabelFieldComponent, selector: "fs-label-field", inputs: ["bottomMargin", "topMargin", "labelMargin"] }, { type: i9__namespace.FsTextEditorComponent, selector: "fs-text-editor", inputs: ["config", "scrollable"], outputs: ["init", "blur"] }, { type: i6__namespace$1.FsLabelMessageComponent, selector: "fs-label-message" }, { type: i3__namespace.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i13__namespace.FsSkeletonContentDirective, selector: "[fsSkeleton]", inputs: ["fsSkeleton", "fsSkeletonPattern"] }, { type: i14__namespace.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i14__namespace.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i14__namespace.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i15__namespace.FsFormDirective, selector: "[fsForm]", inputs: ["wrapperSelector", "messageSelector", "hintSelector", "labelSelector", "autocomplete", "shortcuts", "confirm", "confirmDialog", "confirmDrawer", "confirmBrowser", "confirmTabs", "dirtySubmitButton", "submit", "successDelay", "errorDelay", "tabGroup"], outputs: ["fsForm", "invalid", "valid", "submitted", "reseted", "cleared"] }, { type: i16__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1__namespace.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i18__namespace.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["id", "disabled", "required", "type", "value", "readonly", "placeholder", "errorStateMatcher", "aria-describedby"], exportAs: ["matInput"] }, { type: i14__namespace.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i14__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i14__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i5__namespace.MatTabContent, selector: "[matTabContent]" }, { type: i1__namespace.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i15__namespace.FsSubmitButtonDirective, selector: "button[type=\"submit\"]", inputs: ["name", "dirtySubmit"] }, { type: i1__namespace.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["type", "mat-dialog-close", "aria-label", "matDialogClose"], exportAs: ["matDialogClose"] }] });
1336
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TemplateComponent, decorators: [{
1337
- type: i0.Component,
1338
- args: [{
1339
- templateUrl: './template.component.html',
1340
- styleUrls: ['./template.component.scss']
1341
- }]
1342
- }], ctorParameters: function () {
1343
- return [{ type: undefined, decorators: [{
1344
- type: i0.Inject,
1345
- args: [i1.MAT_DIALOG_DATA]
1346
- }] }, { type: undefined, decorators: [{
1347
- type: i0.Inject,
1348
- args: [FS_APP_MESSAGE_CONFIG]
1349
- }] }, { type: i1__namespace.MatDialogRef }, { type: i2__namespace$1.FsMessage }, { type: i1__namespace.MatDialog }];
1370
+ var TemplateComponent = /** @class */ (function () {
1371
+ function TemplateComponent(_data, _config, _dialogRef, _message, _dialog) {
1372
+ var _this = this;
1373
+ this._data = _data;
1374
+ this._config = _config;
1375
+ this._dialogRef = _dialogRef;
1376
+ this._message = _message;
1377
+ this._dialog = _dialog;
1378
+ this.htmlEditorconfig = {
1379
+ language: 'html',
1380
+ insertSpaces: true,
1381
+ tabSize: 2,
1382
+ };
1383
+ this.cssEditorconfig = {
1384
+ language: 'scss',
1385
+ insertSpaces: true,
1386
+ tabSize: 2,
1387
+ };
1388
+ this.save = function (event) {
1389
+ return _this._config.saveMessageTemplate(_this.messageTemplate)
1390
+ .pipe(operators.tap(function (messageTemplate) {
1391
+ _this._message.success('Saved Changes');
1392
+ if (event.submitter === 'save-close') {
1393
+ _this._dialogRef.close(messageTemplate);
1394
+ }
1395
+ }));
1396
+ };
1397
+ }
1398
+ TemplateComponent.prototype.ngOnInit = function () {
1399
+ var _this = this;
1400
+ if (this._data.messageTemplate.id) {
1401
+ this._config.loadMessageTemplate(this._data.messageTemplate)
1402
+ .subscribe(function (messageTemplate) {
1403
+ _this.messageTemplate = messageTemplate;
1404
+ });
1405
+ }
1406
+ else {
1407
+ this.messageTemplate = {};
1408
+ }
1409
+ };
1410
+ TemplateComponent.prototype.openPreview = function () {
1411
+ this._dialog.open(PreviewComponent, {
1412
+ data: {
1413
+ styles: this.messageTemplate.styles,
1414
+ html: this.messageTemplate.content,
1415
+ },
1416
+ width: '95%',
1417
+ });
1418
+ };
1419
+ return TemplateComponent;
1420
+ }());
1421
+ TemplateComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TemplateComponent, deps: [{ token: i1.MAT_DIALOG_DATA }, { token: FS_APP_MESSAGE_CONFIG }, { token: i1__namespace.MatDialogRef }, { token: i1__namespace$1.FsMessage }, { token: i1__namespace.MatDialog }], target: i0__namespace.ɵɵFactoryTarget.Component });
1422
+ TemplateComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TemplateComponent, selector: "ng-component", ngImport: i0__namespace, template: "<form\n fsForm\n [submit]=\"save\"\n #form=\"ngForm\"\n *fsSkeleton=\"messageTemplate\"\n [confirmTabs]=\"false\">\n <fs-dialog *ngIf=\"messageTemplate\">\n <div mat-dialog-title>Message Template</div>\n <mat-dialog-content>\n <mat-form-field class=\"name\">\n <input\n matInput\n placeholder=\"Name\"\n [(ngModel)]=\"messageTemplate.name\"\n name=\"name\"\n >\n </mat-form-field>\n <div [@.disabled]=\"true\">\n <mat-tab-group\n mat-align-tabs=\"start\"\n [dynamicHeight]=\"false\">\n <mat-tab label=\"Content\">\n <ng-template matTabContent>\n <div class=\"content\">\n <fs-label-field>\n <fs-text-editor\n [(ngModel)]=\"messageTemplate.content\"\n name=\"body\"\n [config]=\"htmlEditorconfig\">\n </fs-text-editor>\n <fs-label-message>\n &#123;$content&#125; will be replaced with the message content.\n </fs-label-message>\n </fs-label-field>\n </div>\n </ng-template>\n </mat-tab>\n <mat-tab label=\"Styles\">\n <ng-template matTabContent>\n <div class=\"styles\">\n <fs-text-editor\n [(ngModel)]=\"messageTemplate.styles\"\n name=\"styles\"\n [config]=\"cssEditorconfig\">\n </fs-text-editor>\n </div>\n </ng-template>\n </mat-tab>\n </mat-tab-group>\n </div>\n </mat-dialog-content>\n <mat-dialog-actions>\n <button mat-button type=\"submit\" color=\"primary\" name=\"close\">Save</button>\n <button mat-button type=\"submit\" name=\"save-close\">Save & Close</button>\n <button mat-button (click)=\"openPreview()\" type=\"button\">Preview</button>\n <button mat-button [mat-dialog-close]=\"null\" type=\"button\">Cancel</button>\n </mat-dialog-actions>\n </fs-dialog>\n</form>\n", styles: [".name{width:100%}:host ::ng-deep .mat-tab-body-content,:host ::ng-deep .mat-tab-body{overflow:visible}\n"], components: [{ type: i4__namespace.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode"] }, { type: i6__namespace.MatFormField, selector: "mat-form-field", inputs: ["color", "floatLabel", "appearance", "hideRequiredMarker", "hintLabel"], exportAs: ["matFormField"] }, { type: i5__namespace.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "disableRipple"], exportAs: ["matTabGroup"] }, { type: i5__namespace.MatTab, selector: "mat-tab", inputs: ["disabled", "label", "aria-label", "aria-labelledby"], exportAs: ["matTab"] }, { type: i6__namespace$1.FsLabelFieldComponent, selector: "fs-label-field", inputs: ["bottomMargin", "topMargin", "labelMargin"] }, { type: i9__namespace.FsTextEditorComponent, selector: "fs-text-editor", inputs: ["config", "scrollable"], outputs: ["init", "blur"] }, { type: i6__namespace$1.FsLabelMessageComponent, selector: "fs-label-message" }, { type: i3__namespace.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i14__namespace.FsSkeletonContentDirective, selector: "[fsSkeleton]", inputs: ["fsSkeleton", "fsSkeletonPattern"] }, { type: i15__namespace.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i15__namespace.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i15__namespace.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i16__namespace.FsFormDirective, selector: "[fsForm]", inputs: ["wrapperSelector", "messageSelector", "hintSelector", "labelSelector", "autocomplete", "shortcuts", "confirm", "confirmDialog", "confirmDrawer", "confirmBrowser", "confirmTabs", "dirtySubmitButton", "submit", "successDelay", "errorDelay", "tabGroup"], outputs: ["fsForm", "invalid", "valid", "submitted", "reseted", "cleared"] }, { type: i17__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1__namespace.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i20__namespace.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["id", "disabled", "required", "type", "value", "readonly", "placeholder", "errorStateMatcher", "aria-describedby"], exportAs: ["matInput"] }, { type: i15__namespace.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i15__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i15__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i5__namespace.MatTabContent, selector: "[matTabContent]" }, { type: i1__namespace.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i16__namespace.FsSubmitButtonDirective, selector: "button[type=\"submit\"]", inputs: ["name", "dirtySubmit"] }, { type: i1__namespace.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["type", "mat-dialog-close", "aria-label", "matDialogClose"], exportAs: ["matDialogClose"] }] });
1423
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TemplateComponent, decorators: [{
1424
+ type: i0.Component,
1425
+ args: [{
1426
+ templateUrl: './template.component.html',
1427
+ styleUrls: ['./template.component.scss']
1428
+ }]
1429
+ }], ctorParameters: function () {
1430
+ return [{ type: undefined, decorators: [{
1431
+ type: i0.Inject,
1432
+ args: [i1.MAT_DIALOG_DATA]
1433
+ }] }, { type: undefined, decorators: [{
1434
+ type: i0.Inject,
1435
+ args: [FS_APP_MESSAGE_CONFIG]
1436
+ }] }, { type: i1__namespace.MatDialogRef }, { type: i1__namespace$1.FsMessage }, { type: i1__namespace.MatDialog }];
1350
1437
  } });
1351
1438
 
1352
- var TemplatesComponent = /** @class */ (function () {
1353
- function TemplatesComponent(_config, _dialog) {
1354
- this._config = _config;
1355
- this._dialog = _dialog;
1356
- this.list = null;
1357
- this.config = null;
1358
- this.messageQueueStates = [];
1359
- this._destroy$ = new rxjs.Subject();
1360
- }
1361
- TemplatesComponent.prototype.ngOnInit = function () {
1362
- var _this = this;
1363
- this.config = {
1364
- actions: [
1365
- {
1366
- label: 'Create',
1367
- click: function () {
1368
- _this.open({});
1369
- }
1370
- }
1371
- ],
1372
- status: false,
1373
- fetch: function (query) {
1374
- return _this._config.loadMessageTemplates(query);
1375
- }
1376
- };
1377
- if (this._config.deleteMessageTemplate) {
1378
- this.config.rowActions = [
1379
- {
1380
- click: function (data) {
1381
- return _this._config.deleteMessageTemplate(data);
1382
- },
1383
- remove: {
1384
- title: 'Confirm',
1385
- template: 'Are you sure you would like to delete this template?',
1386
- },
1387
- menu: true,
1388
- label: 'Delete',
1389
- },
1390
- ];
1391
- }
1392
- };
1393
- TemplatesComponent.prototype.open = function (messageTemplate) {
1394
- var _this = this;
1395
- var dialogRef = this._dialog.open(TemplateComponent, {
1396
- data: {
1397
- messageTemplate: messageTemplate,
1398
- },
1399
- width: '85%',
1400
- });
1401
- dialogRef.afterClosed()
1402
- .pipe(operators.takeUntil(this._destroy$))
1403
- .subscribe(function () {
1404
- _this.list.reload();
1405
- });
1406
- };
1407
- TemplatesComponent.prototype.ngOnDestroy = function () {
1408
- this._destroy$.next();
1409
- this._destroy$.complete();
1410
- };
1411
- return TemplatesComponent;
1412
- }());
1413
- TemplatesComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TemplatesComponent, deps: [{ token: FS_APP_MESSAGE_CONFIG }, { token: i1__namespace.MatDialog }], target: i0__namespace.ɵɵFactoryTarget.Component });
1414
- TemplatesComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TemplatesComponent, selector: "fs-app-message-templates", viewQueries: [{ propertyName: "list", first: true, predicate: i2$2.FsListComponent, descendants: true, static: true }], ngImport: i0__namespace, template: "<fs-list [config]=\"config\">\n <fs-list-column title=\"Name\">\n <ng-template fs-list-cell let-row=\"row\">\n <a (click)=\"open(row)\">{{row.name}}</a>\n </ng-template>\n </fs-list-column>\n</fs-list>", components: [{ type: i2__namespace$2.FsListComponent, selector: "fs-list", inputs: ["config", "loaderLines"], outputs: ["filtersReady"] }], directives: [{ type: i2__namespace$2.FsListColumnDirective, selector: "fs-list-column", inputs: ["title", "name", "show", "customize", "sortable", "sortableDefault", "direction", "align", "width", "class"] }, { type: i2__namespace$2.FsListCellDirective, selector: "[fs-list-cell]", inputs: ["colspan", "align", "class"] }] });
1415
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TemplatesComponent, decorators: [{
1416
- type: i0.Component,
1417
- args: [{
1418
- selector: 'fs-app-message-templates',
1419
- templateUrl: './templates.component.html'
1420
- }]
1421
- }], ctorParameters: function () {
1422
- return [{ type: undefined, decorators: [{
1423
- type: i0.Inject,
1424
- args: [FS_APP_MESSAGE_CONFIG]
1425
- }] }, { type: i1__namespace.MatDialog }];
1426
- }, propDecorators: { list: [{
1427
- type: i0.ViewChild,
1428
- args: [i2$2.FsListComponent, { static: true }]
1439
+ var TemplatesComponent = /** @class */ (function () {
1440
+ function TemplatesComponent(_config, _dialog) {
1441
+ this._config = _config;
1442
+ this._dialog = _dialog;
1443
+ this.list = null;
1444
+ this.config = null;
1445
+ this.messageQueueStates = [];
1446
+ this._destroy$ = new rxjs.Subject();
1447
+ }
1448
+ TemplatesComponent.prototype.ngOnInit = function () {
1449
+ var _this = this;
1450
+ this.config = {
1451
+ actions: [
1452
+ {
1453
+ label: 'Create',
1454
+ click: function () {
1455
+ _this.open({});
1456
+ }
1457
+ }
1458
+ ],
1459
+ status: false,
1460
+ fetch: function (query) {
1461
+ return _this._config.loadMessageTemplates(query);
1462
+ }
1463
+ };
1464
+ if (this._config.deleteMessageTemplate) {
1465
+ this.config.rowActions = [
1466
+ {
1467
+ click: function (data) {
1468
+ return _this._config.deleteMessageTemplate(data);
1469
+ },
1470
+ remove: {
1471
+ title: 'Confirm',
1472
+ template: 'Are you sure you would like to delete this template?',
1473
+ },
1474
+ menu: true,
1475
+ label: 'Delete',
1476
+ },
1477
+ ];
1478
+ }
1479
+ };
1480
+ TemplatesComponent.prototype.open = function (messageTemplate) {
1481
+ var _this = this;
1482
+ var dialogRef = this._dialog.open(TemplateComponent, {
1483
+ data: {
1484
+ messageTemplate: messageTemplate,
1485
+ },
1486
+ width: '85%',
1487
+ });
1488
+ dialogRef.afterClosed()
1489
+ .pipe(operators.takeUntil(this._destroy$))
1490
+ .subscribe(function () {
1491
+ _this.list.reload();
1492
+ });
1493
+ };
1494
+ TemplatesComponent.prototype.ngOnDestroy = function () {
1495
+ this._destroy$.next();
1496
+ this._destroy$.complete();
1497
+ };
1498
+ return TemplatesComponent;
1499
+ }());
1500
+ TemplatesComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TemplatesComponent, deps: [{ token: FS_APP_MESSAGE_CONFIG }, { token: i1__namespace.MatDialog }], target: i0__namespace.ɵɵFactoryTarget.Component });
1501
+ TemplatesComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: TemplatesComponent, selector: "fs-app-message-templates", viewQueries: [{ propertyName: "list", first: true, predicate: i2$1.FsListComponent, descendants: true, static: true }], ngImport: i0__namespace, template: "<fs-list [config]=\"config\">\n <fs-list-column title=\"Name\">\n <ng-template fs-list-cell let-row=\"row\">\n <a (click)=\"open(row)\">{{row.name}}</a>\n </ng-template>\n </fs-list-column>\n</fs-list>", components: [{ type: i2__namespace$1.FsListComponent, selector: "fs-list", inputs: ["config", "loaderLines"], outputs: ["filtersReady"] }], directives: [{ type: i2__namespace$1.FsListColumnDirective, selector: "fs-list-column", inputs: ["show", "title", "name", "customize", "sortable", "sortableDefault", "direction", "align", "width", "class"] }, { type: i2__namespace$1.FsListCellDirective, selector: "[fs-list-cell]", inputs: ["colspan", "align", "class"] }] });
1502
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: TemplatesComponent, decorators: [{
1503
+ type: i0.Component,
1504
+ args: [{
1505
+ selector: 'fs-app-message-templates',
1506
+ templateUrl: './templates.component.html'
1507
+ }]
1508
+ }], ctorParameters: function () {
1509
+ return [{ type: undefined, decorators: [{
1510
+ type: i0.Inject,
1511
+ args: [FS_APP_MESSAGE_CONFIG]
1512
+ }] }, { type: i1__namespace.MatDialog }];
1513
+ }, propDecorators: { list: [{
1514
+ type: i0.ViewChild,
1515
+ args: [i2$1.FsListComponent, { static: true }]
1429
1516
  }] } });
1430
1517
 
1431
- var FsAppMessageTemplatesModule = /** @class */ (function () {
1432
- function FsAppMessageTemplatesModule() {
1433
- }
1434
- return FsAppMessageTemplatesModule;
1435
- }());
1436
- FsAppMessageTemplatesModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsAppMessageTemplatesModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1437
- FsAppMessageTemplatesModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsAppMessageTemplatesModule, declarations: [TemplatesComponent,
1438
- TemplateComponent], imports: [router.RouterModule,
1439
- i16.CommonModule,
1440
- i14.FormsModule,
1441
- i3$1.MatTooltipModule,
1442
- i1.MatDialogModule,
1443
- i3.MatButtonModule,
1444
- i5.MatTabsModule,
1445
- i6.MatFormFieldModule,
1446
- i6.MatFormFieldModule,
1447
- i18.MatInputModule,
1448
- i2$2.FsListModule,
1449
- i4.FsDialogModule,
1450
- i6$1.FsLabelModule,
1451
- flexLayout.FlexLayoutModule,
1452
- i13.FsSkeletonModule,
1453
- i15.FsFormModule,
1454
- i9.FsTextEditorModule,
1455
- FsAppMessagePreviewModule], exports: [TemplatesComponent,
1456
- TemplateComponent] });
1457
- FsAppMessageTemplatesModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsAppMessageTemplatesModule, imports: [[
1458
- router.RouterModule,
1459
- i16.CommonModule,
1460
- i14.FormsModule,
1461
- i3$1.MatTooltipModule,
1462
- i1.MatDialogModule,
1463
- i3.MatButtonModule,
1464
- i5.MatTabsModule,
1465
- i6.MatFormFieldModule,
1466
- i6.MatFormFieldModule,
1467
- i18.MatInputModule,
1468
- i2$2.FsListModule,
1469
- i4.FsDialogModule,
1470
- i6$1.FsLabelModule,
1471
- flexLayout.FlexLayoutModule,
1472
- i13.FsSkeletonModule,
1473
- i15.FsFormModule,
1474
- i9.FsTextEditorModule,
1475
- FsAppMessagePreviewModule,
1476
- ]] });
1477
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsAppMessageTemplatesModule, decorators: [{
1478
- type: i0.NgModule,
1479
- args: [{
1480
- imports: [
1481
- router.RouterModule,
1482
- i16.CommonModule,
1483
- i14.FormsModule,
1484
- i3$1.MatTooltipModule,
1485
- i1.MatDialogModule,
1486
- i3.MatButtonModule,
1487
- i5.MatTabsModule,
1488
- i6.MatFormFieldModule,
1489
- i6.MatFormFieldModule,
1490
- i18.MatInputModule,
1491
- i2$2.FsListModule,
1492
- i4.FsDialogModule,
1493
- i6$1.FsLabelModule,
1494
- flexLayout.FlexLayoutModule,
1495
- i13.FsSkeletonModule,
1496
- i15.FsFormModule,
1497
- i9.FsTextEditorModule,
1498
- FsAppMessagePreviewModule,
1499
- ],
1500
- declarations: [
1501
- TemplatesComponent,
1502
- TemplateComponent,
1503
- ],
1504
- exports: [
1505
- TemplatesComponent,
1506
- TemplateComponent,
1507
- ],
1508
- }]
1518
+ var FsAppMessageTemplatesModule = /** @class */ (function () {
1519
+ function FsAppMessageTemplatesModule() {
1520
+ }
1521
+ return FsAppMessageTemplatesModule;
1522
+ }());
1523
+ FsAppMessageTemplatesModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsAppMessageTemplatesModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1524
+ FsAppMessageTemplatesModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsAppMessageTemplatesModule, declarations: [TemplatesComponent,
1525
+ TemplateComponent], imports: [router.RouterModule,
1526
+ i17.CommonModule,
1527
+ i15.FormsModule,
1528
+ i3$2.MatTooltipModule,
1529
+ i1.MatDialogModule,
1530
+ i3.MatButtonModule,
1531
+ i5.MatTabsModule,
1532
+ i6.MatFormFieldModule,
1533
+ i6.MatFormFieldModule,
1534
+ i20.MatInputModule,
1535
+ i2$1.FsListModule,
1536
+ i4.FsDialogModule,
1537
+ i6$1.FsLabelModule,
1538
+ flexLayout.FlexLayoutModule,
1539
+ i14.FsSkeletonModule,
1540
+ i16.FsFormModule,
1541
+ i9.FsTextEditorModule,
1542
+ FsAppMessagePreviewModule], exports: [TemplatesComponent,
1543
+ TemplateComponent] });
1544
+ FsAppMessageTemplatesModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsAppMessageTemplatesModule, imports: [[
1545
+ router.RouterModule,
1546
+ i17.CommonModule,
1547
+ i15.FormsModule,
1548
+ i3$2.MatTooltipModule,
1549
+ i1.MatDialogModule,
1550
+ i3.MatButtonModule,
1551
+ i5.MatTabsModule,
1552
+ i6.MatFormFieldModule,
1553
+ i6.MatFormFieldModule,
1554
+ i20.MatInputModule,
1555
+ i2$1.FsListModule,
1556
+ i4.FsDialogModule,
1557
+ i6$1.FsLabelModule,
1558
+ flexLayout.FlexLayoutModule,
1559
+ i14.FsSkeletonModule,
1560
+ i16.FsFormModule,
1561
+ i9.FsTextEditorModule,
1562
+ FsAppMessagePreviewModule,
1563
+ ]] });
1564
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsAppMessageTemplatesModule, decorators: [{
1565
+ type: i0.NgModule,
1566
+ args: [{
1567
+ imports: [
1568
+ router.RouterModule,
1569
+ i17.CommonModule,
1570
+ i15.FormsModule,
1571
+ i3$2.MatTooltipModule,
1572
+ i1.MatDialogModule,
1573
+ i3.MatButtonModule,
1574
+ i5.MatTabsModule,
1575
+ i6.MatFormFieldModule,
1576
+ i6.MatFormFieldModule,
1577
+ i20.MatInputModule,
1578
+ i2$1.FsListModule,
1579
+ i4.FsDialogModule,
1580
+ i6$1.FsLabelModule,
1581
+ flexLayout.FlexLayoutModule,
1582
+ i14.FsSkeletonModule,
1583
+ i16.FsFormModule,
1584
+ i9.FsTextEditorModule,
1585
+ FsAppMessagePreviewModule,
1586
+ ],
1587
+ declarations: [
1588
+ TemplatesComponent,
1589
+ TemplateComponent,
1590
+ ],
1591
+ exports: [
1592
+ TemplatesComponent,
1593
+ TemplateComponent,
1594
+ ],
1595
+ }]
1509
1596
  }] });
1510
1597
 
1511
- var WebhooksComponent = /** @class */ (function () {
1512
- function WebhooksComponent(_config, _message) {
1513
- this._config = _config;
1514
- this._message = _message;
1515
- }
1516
- WebhooksComponent.prototype.ngOnInit = function () {
1517
- var _this = this;
1518
- this.listConfig = {
1519
- paging: false,
1520
- actions: [
1521
- {
1522
- click: function () {
1523
- _this._config.createWebhook()
1524
- .subscribe(function () {
1525
- _this._message.success('Created webhook');
1526
- _this.list.reload();
1527
- });
1528
- },
1529
- label: 'Create',
1530
- },
1531
- ],
1532
- rowActions: [
1533
- {
1534
- click: function (webhook) {
1535
- _this._config.deleteWebhook(webhook)
1536
- .subscribe(function () {
1537
- _this._message.success('Deleted webhook');
1538
- _this.list.reload();
1539
- });
1540
- },
1541
- label: 'Delete',
1542
- },
1543
- ],
1544
- fetch: function () {
1545
- return _this._config.loadWebhooks()
1546
- .pipe(operators.map(function (webhooks) { return ({ data: webhooks }); }));
1547
- },
1548
- };
1549
- };
1550
- return WebhooksComponent;
1551
- }());
1552
- WebhooksComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: WebhooksComponent, deps: [{ token: FS_APP_MESSAGE_CONFIG }, { token: i2__namespace$1.FsMessage }], target: i0__namespace.ɵɵFactoryTarget.Component });
1553
- WebhooksComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: WebhooksComponent, selector: "fs-app-message-webhooks", viewQueries: [{ propertyName: "list", first: true, predicate: i2$2.FsListComponent, descendants: true }], ngImport: i0__namespace, template: "<fs-list [config]=\"listConfig\">\r\n <fs-list-column title=\"URL\">\r\n <ng-template fs-list-cell let-row=\"row\">\r\n {{row.url}}\r\n </ng-template>\r\n </fs-list-column>\r\n <fs-list-column title=\"Created\">\r\n <ng-template fs-list-cell let-row=\"row\">\r\n {{row.createDate | fsDate}}\r\n </ng-template>\r\n </fs-list-column>\r\n</fs-list>", components: [{ type: i2__namespace$2.FsListComponent, selector: "fs-list", inputs: ["config", "loaderLines"], outputs: ["filtersReady"] }], directives: [{ type: i2__namespace$2.FsListColumnDirective, selector: "fs-list-column", inputs: ["title", "name", "show", "customize", "sortable", "sortableDefault", "direction", "align", "width", "class"] }, { type: i2__namespace$2.FsListCellDirective, selector: "[fs-list-cell]", inputs: ["colspan", "align", "class"] }], pipes: { "fsDate": i10__namespace$1.FsDatePipe } });
1554
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: WebhooksComponent, decorators: [{
1555
- type: i0.Component,
1556
- args: [{
1557
- selector: 'fs-app-message-webhooks',
1558
- templateUrl: './webhooks.component.html',
1559
- }]
1560
- }], ctorParameters: function () {
1561
- return [{ type: undefined, decorators: [{
1562
- type: i0.Inject,
1563
- args: [FS_APP_MESSAGE_CONFIG]
1564
- }] }, { type: i2__namespace$1.FsMessage }];
1565
- }, propDecorators: { list: [{
1566
- type: i0.ViewChild,
1567
- args: [i2$2.FsListComponent]
1598
+ var WebhooksComponent = /** @class */ (function () {
1599
+ function WebhooksComponent(_config, _message) {
1600
+ this._config = _config;
1601
+ this._message = _message;
1602
+ }
1603
+ WebhooksComponent.prototype.ngOnInit = function () {
1604
+ var _this = this;
1605
+ this.listConfig = {
1606
+ paging: false,
1607
+ actions: [
1608
+ {
1609
+ click: function () {
1610
+ _this._config.createWebhook()
1611
+ .subscribe(function () {
1612
+ _this._message.success('Created webhook');
1613
+ _this.list.reload();
1614
+ });
1615
+ },
1616
+ label: 'Create',
1617
+ },
1618
+ ],
1619
+ rowActions: [
1620
+ {
1621
+ click: function (webhook) {
1622
+ _this._config.deleteWebhook(webhook)
1623
+ .subscribe(function () {
1624
+ _this._message.success('Deleted webhook');
1625
+ _this.list.reload();
1626
+ });
1627
+ },
1628
+ label: 'Delete',
1629
+ },
1630
+ ],
1631
+ fetch: function () {
1632
+ return _this._config.loadWebhooks()
1633
+ .pipe(operators.map(function (webhooks) { return ({ data: webhooks }); }));
1634
+ },
1635
+ };
1636
+ };
1637
+ return WebhooksComponent;
1638
+ }());
1639
+ WebhooksComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: WebhooksComponent, deps: [{ token: FS_APP_MESSAGE_CONFIG }, { token: i1__namespace$1.FsMessage }], target: i0__namespace.ɵɵFactoryTarget.Component });
1640
+ WebhooksComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: WebhooksComponent, selector: "fs-app-message-webhooks", viewQueries: [{ propertyName: "list", first: true, predicate: i2$1.FsListComponent, descendants: true }], ngImport: i0__namespace, template: "<fs-list [config]=\"listConfig\">\r\n <fs-list-column title=\"URL\">\r\n <ng-template fs-list-cell let-row=\"row\">\r\n {{row.url}}\r\n </ng-template>\r\n </fs-list-column>\r\n <fs-list-column title=\"Created\">\r\n <ng-template fs-list-cell let-row=\"row\">\r\n {{row.createDate | fsDate}}\r\n </ng-template>\r\n </fs-list-column>\r\n</fs-list>", components: [{ type: i2__namespace$1.FsListComponent, selector: "fs-list", inputs: ["config", "loaderLines"], outputs: ["filtersReady"] }], directives: [{ type: i2__namespace$1.FsListColumnDirective, selector: "fs-list-column", inputs: ["show", "title", "name", "customize", "sortable", "sortableDefault", "direction", "align", "width", "class"] }, { type: i2__namespace$1.FsListCellDirective, selector: "[fs-list-cell]", inputs: ["colspan", "align", "class"] }], pipes: { "fsDate": i10__namespace$1.FsDatePipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
1641
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: WebhooksComponent, decorators: [{
1642
+ type: i0.Component,
1643
+ args: [{
1644
+ selector: 'fs-app-message-webhooks',
1645
+ templateUrl: './webhooks.component.html',
1646
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
1647
+ }]
1648
+ }], ctorParameters: function () {
1649
+ return [{ type: undefined, decorators: [{
1650
+ type: i0.Inject,
1651
+ args: [FS_APP_MESSAGE_CONFIG]
1652
+ }] }, { type: i1__namespace$1.FsMessage }];
1653
+ }, propDecorators: { list: [{
1654
+ type: i0.ViewChild,
1655
+ args: [i2$1.FsListComponent]
1568
1656
  }] } });
1569
1657
 
1570
- var FsAppMessageWebhooksModule = /** @class */ (function () {
1571
- function FsAppMessageWebhooksModule() {
1572
- }
1573
- return FsAppMessageWebhooksModule;
1574
- }());
1575
- FsAppMessageWebhooksModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsAppMessageWebhooksModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1576
- FsAppMessageWebhooksModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsAppMessageWebhooksModule, declarations: [WebhooksComponent], imports: [i2$2.FsListModule,
1577
- i10$1.FsDateModule], exports: [WebhooksComponent] });
1578
- FsAppMessageWebhooksModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsAppMessageWebhooksModule, imports: [[
1579
- i2$2.FsListModule,
1580
- i10$1.FsDateModule,
1581
- ]] });
1582
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsAppMessageWebhooksModule, decorators: [{
1583
- type: i0.NgModule,
1584
- args: [{
1585
- imports: [
1586
- i2$2.FsListModule,
1587
- i10$1.FsDateModule,
1588
- ],
1589
- declarations: [
1590
- WebhooksComponent,
1591
- ],
1592
- exports: [
1593
- WebhooksComponent,
1594
- ],
1595
- }]
1658
+ var FsAppMessageWebhooksModule = /** @class */ (function () {
1659
+ function FsAppMessageWebhooksModule() {
1660
+ }
1661
+ return FsAppMessageWebhooksModule;
1662
+ }());
1663
+ FsAppMessageWebhooksModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsAppMessageWebhooksModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1664
+ FsAppMessageWebhooksModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsAppMessageWebhooksModule, declarations: [WebhooksComponent], imports: [i2$1.FsListModule,
1665
+ i10$1.FsDateModule], exports: [WebhooksComponent] });
1666
+ FsAppMessageWebhooksModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsAppMessageWebhooksModule, imports: [[
1667
+ i2$1.FsListModule,
1668
+ i10$1.FsDateModule,
1669
+ ]] });
1670
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsAppMessageWebhooksModule, decorators: [{
1671
+ type: i0.NgModule,
1672
+ args: [{
1673
+ imports: [
1674
+ i2$1.FsListModule,
1675
+ i10$1.FsDateModule,
1676
+ ],
1677
+ declarations: [
1678
+ WebhooksComponent,
1679
+ ],
1680
+ exports: [
1681
+ WebhooksComponent,
1682
+ ],
1683
+ }]
1596
1684
  }] });
1597
1685
 
1598
- var FsAppMessageModule = /** @class */ (function () {
1599
- function FsAppMessageModule() {
1600
- }
1601
- FsAppMessageModule.forRoot = function () {
1602
- return {
1603
- ngModule: FsAppMessageModule,
1604
- };
1605
- };
1606
- return FsAppMessageModule;
1607
- }());
1608
- FsAppMessageModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsAppMessageModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1609
- FsAppMessageModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsAppMessageModule });
1610
- FsAppMessageModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsAppMessageModule });
1611
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsAppMessageModule, decorators: [{
1612
- type: i0.NgModule,
1613
- args: [{}]
1686
+ var FsAppMessageModule = /** @class */ (function () {
1687
+ function FsAppMessageModule() {
1688
+ }
1689
+ FsAppMessageModule.forRoot = function () {
1690
+ return {
1691
+ ngModule: FsAppMessageModule,
1692
+ };
1693
+ };
1694
+ return FsAppMessageModule;
1695
+ }());
1696
+ FsAppMessageModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsAppMessageModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1697
+ FsAppMessageModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsAppMessageModule });
1698
+ FsAppMessageModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsAppMessageModule });
1699
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: FsAppMessageModule, decorators: [{
1700
+ type: i0.NgModule,
1701
+ args: [{}]
1614
1702
  }] });
1615
1703
 
1616
- /*
1617
- * Public API Surface of fs-menu
1704
+ /*
1705
+ * Public API Surface of fs-menu
1618
1706
  */
1619
1707
 
1620
- /**
1621
- * Generated bundle index. Do not edit.
1708
+ /**
1709
+ * Generated bundle index. Do not edit.
1622
1710
  */
1623
1711
 
1624
1712
  exports.FS_APP_MESSAGE_CONFIG = FS_APP_MESSAGE_CONFIG;