@firestitch/app-message 13.0.0 → 13.0.2

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