igniteui-webcomponents-fdc3 1.3.3

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 (116) hide show
  1. package/License +27 -0
  2. package/README.md +23 -0
  3. package/bundles/igniteui-webcomponents-fdc3.umd.js +2024 -0
  4. package/bundles/igniteui-webcomponents-fdc3.umd.js.map +1 -0
  5. package/bundles/igniteui-webcomponents-fdc3.umd.min.js +2 -0
  6. package/bundles/igniteui-webcomponents-fdc3.umd.min.js.map +1 -0
  7. package/esm2015/igniteui-webcomponents-fdc3.js +2 -0
  8. package/esm2015/igniteui-webcomponents-fdc3.js.map +1 -0
  9. package/esm2015/lib/Fdc3Contact.js +8 -0
  10. package/esm2015/lib/Fdc3Contact.js.map +1 -0
  11. package/esm2015/lib/Fdc3ContactList.js +8 -0
  12. package/esm2015/lib/Fdc3ContactList.js.map +1 -0
  13. package/esm2015/lib/Fdc3Context.js +8 -0
  14. package/esm2015/lib/Fdc3Context.js.map +1 -0
  15. package/esm2015/lib/Fdc3ContextType.js +56 -0
  16. package/esm2015/lib/Fdc3ContextType.js.map +1 -0
  17. package/esm2015/lib/Fdc3Converter.js +198 -0
  18. package/esm2015/lib/Fdc3Converter.js.map +1 -0
  19. package/esm2015/lib/Fdc3DataAdapter.js +273 -0
  20. package/esm2015/lib/Fdc3DataAdapter.js.map +1 -0
  21. package/esm2015/lib/Fdc3Dictionary.js +85 -0
  22. package/esm2015/lib/Fdc3Dictionary.js.map +1 -0
  23. package/esm2015/lib/Fdc3Instrument.js +8 -0
  24. package/esm2015/lib/Fdc3Instrument.js.map +1 -0
  25. package/esm2015/lib/Fdc3InstrumentList.js +8 -0
  26. package/esm2015/lib/Fdc3InstrumentList.js.map +1 -0
  27. package/esm2015/lib/Fdc3IntentType.js +64 -0
  28. package/esm2015/lib/Fdc3IntentType.js.map +1 -0
  29. package/esm2015/lib/Fdc3Message.js +64 -0
  30. package/esm2015/lib/Fdc3Message.js.map +1 -0
  31. package/esm2015/lib/Fdc3Organization.js +8 -0
  32. package/esm2015/lib/Fdc3Organization.js.map +1 -0
  33. package/esm2015/lib/Fdc3OrganizationList.js +8 -0
  34. package/esm2015/lib/Fdc3OrganizationList.js.map +1 -0
  35. package/esm2015/lib/Fdc3Portfolio.js +8 -0
  36. package/esm2015/lib/Fdc3Portfolio.js.map +1 -0
  37. package/esm2015/lib/Fdc3Position.js +8 -0
  38. package/esm2015/lib/Fdc3Position.js.map +1 -0
  39. package/esm2015/lib/Fdc3Serializer.js +8 -0
  40. package/esm2015/lib/Fdc3Serializer.js.map +1 -0
  41. package/esm2015/lib/Fdc3Serializer_combined.js +880 -0
  42. package/esm2015/lib/Fdc3Serializer_combined.js.map +1 -0
  43. package/esm2015/lib/Fdc3Util.js +77 -0
  44. package/esm2015/lib/Fdc3Util.js.map +1 -0
  45. package/esm2015/lib/Randomizer.js +37 -0
  46. package/esm2015/lib/Randomizer.js.map +1 -0
  47. package/esm2015/public_api.js +19 -0
  48. package/esm2015/public_api.js.map +1 -0
  49. package/esm5/igniteui-webcomponents-fdc3.js +2 -0
  50. package/esm5/igniteui-webcomponents-fdc3.js.map +1 -0
  51. package/esm5/lib/Fdc3Contact.js +8 -0
  52. package/esm5/lib/Fdc3Contact.js.map +1 -0
  53. package/esm5/lib/Fdc3ContactList.js +8 -0
  54. package/esm5/lib/Fdc3ContactList.js.map +1 -0
  55. package/esm5/lib/Fdc3Context.js +8 -0
  56. package/esm5/lib/Fdc3Context.js.map +1 -0
  57. package/esm5/lib/Fdc3ContextType.js +56 -0
  58. package/esm5/lib/Fdc3ContextType.js.map +1 -0
  59. package/esm5/lib/Fdc3Converter.js +202 -0
  60. package/esm5/lib/Fdc3Converter.js.map +1 -0
  61. package/esm5/lib/Fdc3DataAdapter.js +331 -0
  62. package/esm5/lib/Fdc3DataAdapter.js.map +1 -0
  63. package/esm5/lib/Fdc3Dictionary.js +121 -0
  64. package/esm5/lib/Fdc3Dictionary.js.map +1 -0
  65. package/esm5/lib/Fdc3Instrument.js +8 -0
  66. package/esm5/lib/Fdc3Instrument.js.map +1 -0
  67. package/esm5/lib/Fdc3InstrumentList.js +8 -0
  68. package/esm5/lib/Fdc3InstrumentList.js.map +1 -0
  69. package/esm5/lib/Fdc3IntentType.js +64 -0
  70. package/esm5/lib/Fdc3IntentType.js.map +1 -0
  71. package/esm5/lib/Fdc3Message.js +90 -0
  72. package/esm5/lib/Fdc3Message.js.map +1 -0
  73. package/esm5/lib/Fdc3Organization.js +8 -0
  74. package/esm5/lib/Fdc3Organization.js.map +1 -0
  75. package/esm5/lib/Fdc3OrganizationList.js +8 -0
  76. package/esm5/lib/Fdc3OrganizationList.js.map +1 -0
  77. package/esm5/lib/Fdc3Portfolio.js +8 -0
  78. package/esm5/lib/Fdc3Portfolio.js.map +1 -0
  79. package/esm5/lib/Fdc3Position.js +8 -0
  80. package/esm5/lib/Fdc3Position.js.map +1 -0
  81. package/esm5/lib/Fdc3Serializer.js +8 -0
  82. package/esm5/lib/Fdc3Serializer.js.map +1 -0
  83. package/esm5/lib/Fdc3Serializer_combined.js +995 -0
  84. package/esm5/lib/Fdc3Serializer_combined.js.map +1 -0
  85. package/esm5/lib/Fdc3Util.js +81 -0
  86. package/esm5/lib/Fdc3Util.js.map +1 -0
  87. package/esm5/lib/Randomizer.js +41 -0
  88. package/esm5/lib/Randomizer.js.map +1 -0
  89. package/esm5/public_api.js +19 -0
  90. package/esm5/public_api.js.map +1 -0
  91. package/fesm2015/igniteui-webcomponents-fdc3.js +1773 -0
  92. package/fesm2015/igniteui-webcomponents-fdc3.js.map +1 -0
  93. package/fesm5/igniteui-webcomponents-fdc3.js +1998 -0
  94. package/fesm5/igniteui-webcomponents-fdc3.js.map +1 -0
  95. package/igniteui-webcomponents-fdc3.d.ts +1 -0
  96. package/lib/Fdc3Contact.d.ts +1 -0
  97. package/lib/Fdc3ContactList.d.ts +1 -0
  98. package/lib/Fdc3Context.d.ts +1 -0
  99. package/lib/Fdc3ContextType.d.ts +48 -0
  100. package/lib/Fdc3Converter.d.ts +20 -0
  101. package/lib/Fdc3DataAdapter.d.ts +30 -0
  102. package/lib/Fdc3Dictionary.d.ts +19 -0
  103. package/lib/Fdc3Instrument.d.ts +1 -0
  104. package/lib/Fdc3InstrumentList.d.ts +1 -0
  105. package/lib/Fdc3IntentType.d.ts +56 -0
  106. package/lib/Fdc3Message.d.ts +21 -0
  107. package/lib/Fdc3Organization.d.ts +1 -0
  108. package/lib/Fdc3OrganizationList.d.ts +1 -0
  109. package/lib/Fdc3Portfolio.d.ts +1 -0
  110. package/lib/Fdc3Position.d.ts +1 -0
  111. package/lib/Fdc3Serializer.d.ts +1 -0
  112. package/lib/Fdc3Serializer_combined.d.ts +129 -0
  113. package/lib/Fdc3Util.d.ts +17 -0
  114. package/lib/Randomizer.d.ts +11 -0
  115. package/package.json +43 -0
  116. package/public_api.d.ts +18 -0
@@ -0,0 +1,1773 @@
1
+ import { markEnum, Base, Dictionary$2, String_$type, List$1, fromEnum, markType, EnumUtil, callStaticConstructors, StringBuilder, typeCast, stringIsNullOrEmpty, Boolean_$type, enumGetBox, FinancialDataAdapter, arrayClear, IDisposable_$type, truncate, Random } from 'igniteui-webcomponents-core';
2
+
3
+ /*
4
+ THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
5
+ https://www.infragistics.com/legal/license/igultimate-la
6
+ https://www.infragistics.com/legal/license/igultimate-eula
7
+ GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
8
+ */
9
+ /**
10
+ * Specifies type of FDC3 intent
11
+ * https://fdc3.finos.org/docs/1.0/intents-spec
12
+ *
13
+ */
14
+ var Fdc3IntentType = /*@__PURE__*/ (function (Fdc3IntentType) {
15
+ /**
16
+ * Specifies no intent for FDC3 data adapter to listen to
17
+ */
18
+ Fdc3IntentType[Fdc3IntentType["None"] = 0] = "None";
19
+ /**
20
+ * Specifies all intents for FDC3 data adapter to listen to
21
+ */
22
+ Fdc3IntentType[Fdc3IntentType["All"] = 1] = "All";
23
+ /**
24
+ * Specifies an intent that is unknown by FDC3 data adapter
25
+ */
26
+ Fdc3IntentType[Fdc3IntentType["Unknown"] = 2] = "Unknown";
27
+ /**
28
+ * Specifies an intent to view a chart for stock tickers in the Instrument context
29
+ */
30
+ Fdc3IntentType[Fdc3IntentType["ViewChart"] = 3] = "ViewChart";
31
+ /**
32
+ * Specifies an intent to view information about stock tickers in the Instrument context
33
+ */
34
+ Fdc3IntentType[Fdc3IntentType["ViewInstrument"] = 4] = "ViewInstrument";
35
+ /**
36
+ * Currently not supported - Starts a call with Contact(s) context
37
+ */
38
+ Fdc3IntentType[Fdc3IntentType["StartCall"] = 5] = "StartCall";
39
+ /**
40
+ * Currently not supported - Starts a chat with Contact(s) context
41
+ */
42
+ Fdc3IntentType[Fdc3IntentType["StartChat"] = 6] = "StartChat";
43
+ /**
44
+ * Currently not supported - Display analysis about Instrument, Contact, or Organization
45
+ */
46
+ Fdc3IntentType[Fdc3IntentType["ViewAnalysis"] = 7] = "ViewAnalysis";
47
+ /**
48
+ * Currently not supported - Display details of the Contact context
49
+ */
50
+ Fdc3IntentType[Fdc3IntentType["ViewContact"] = 8] = "ViewContact";
51
+ /**
52
+ * Currently not supported - Display news for Instrument, Contact, or Organization
53
+ */
54
+ Fdc3IntentType[Fdc3IntentType["ViewNews"] = 9] = "ViewNews";
55
+ /**
56
+ * Currently not supported - Display pricing for the Instrument context
57
+ */
58
+ Fdc3IntentType[Fdc3IntentType["ViewQuote"] = 10] = "ViewQuote";
59
+ return Fdc3IntentType;
60
+ })({});
61
+ /**
62
+ * @hidden
63
+ */
64
+ let Fdc3IntentType_$type = /*@__PURE__*/ markEnum('Fdc3IntentType', 'None,0|All,1|Unknown,2|ViewChart,3|ViewInstrument,4|StartCall,5|StartChat,6|ViewAnalysis,7|ViewContact,8|ViewNews,9|ViewQuote,10');
65
+
66
+ /*
67
+ THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
68
+ https://www.infragistics.com/legal/license/igultimate-la
69
+ https://www.infragistics.com/legal/license/igultimate-eula
70
+ GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
71
+ */
72
+ /**
73
+ * @hidden
74
+ */
75
+ let Fdc3Dictionary = /*@__PURE__*/ (() => {
76
+ class Fdc3Dictionary extends Base {
77
+ constructor() {
78
+ super();
79
+ this.d = null;
80
+ this.d = new Dictionary$2(String_$type, Base.$, 0);
81
+ }
82
+ getKeys() {
83
+ let a = new List$1(String_$type, 0);
84
+ for (let b of fromEnum(this.d)) {
85
+ a.add(b.key);
86
+ }
87
+ return a.toArray();
88
+ }
89
+ getValues() {
90
+ let a = new List$1(Base.$, 0);
91
+ for (let b of fromEnum(this.d)) {
92
+ a.add1(b.value);
93
+ }
94
+ return a.toArray();
95
+ }
96
+ item(a, b) {
97
+ if (arguments.length === 2) {
98
+ this.set(a, b);
99
+ return b;
100
+ }
101
+ else {
102
+ return this.get(a);
103
+ }
104
+ }
105
+ get(a) {
106
+ if (!this.d.containsKey(a)) {
107
+ this.set(a, "");
108
+ }
109
+ if (this.d.item(a) == null) {
110
+ return "";
111
+ }
112
+ return this.d.item(a);
113
+ }
114
+ h(a) {
115
+ return this.get(a).toString();
116
+ }
117
+ e(a) {
118
+ if (!this.d.containsKey(a)) {
119
+ this.set(a, 0);
120
+ return 0;
121
+ }
122
+ if (this.d.item(a) == null) {
123
+ return 0;
124
+ }
125
+ return parseFloat(this.d.item(a).toString());
126
+ }
127
+ set(a, b) {
128
+ if (this.d.containsKey(a)) {
129
+ this.d.item(a, b);
130
+ }
131
+ else {
132
+ this.d.addItem(a, b);
133
+ }
134
+ }
135
+ remove(a) {
136
+ if (this.d.containsKey(a)) {
137
+ this.d.removeItem(a);
138
+ }
139
+ }
140
+ contains(a) {
141
+ return this.d.containsKey(a);
142
+ }
143
+ }
144
+ Fdc3Dictionary.$t = /*@__PURE__*/ markType(Fdc3Dictionary, 'Fdc3Dictionary');
145
+ return Fdc3Dictionary;
146
+ })();
147
+
148
+ /*
149
+ THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
150
+ https://www.infragistics.com/legal/license/igultimate-la
151
+ https://www.infragistics.com/legal/license/igultimate-eula
152
+ GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
153
+ */
154
+ /**
155
+ * Specifies type of FDC3 context
156
+ * https://fdc3.finos.org/docs/1.0/context-spec
157
+ *
158
+ */
159
+ var Fdc3ContextType = /*@__PURE__*/ (function (Fdc3ContextType) {
160
+ /**
161
+ * Specifies a context that is unknown by FDC3 data adapter
162
+ */
163
+ Fdc3ContextType[Fdc3ContextType["Unknown"] = 0] = "Unknown";
164
+ /**
165
+ * Specifies FDC3 context for single instrument with stock name, stock ticker/symbol
166
+ */
167
+ Fdc3ContextType[Fdc3ContextType["Instrument"] = 1] = "Instrument";
168
+ /**
169
+ * Specifies FDC3 context for multiple instrument
170
+ */
171
+ Fdc3ContextType[Fdc3ContextType["InstrumentList"] = 2] = "InstrumentList";
172
+ /**
173
+ * Specifies FDC3 context for single position
174
+ */
175
+ Fdc3ContextType[Fdc3ContextType["Position"] = 3] = "Position";
176
+ /**
177
+ * Specifies FDC3 context for multiple positions
178
+ */
179
+ Fdc3ContextType[Fdc3ContextType["Portfolio"] = 4] = "Portfolio";
180
+ /**
181
+ * Currently not supported - Specifies FDC3 context for single contact with person name, email, phone, etc.
182
+ */
183
+ Fdc3ContextType[Fdc3ContextType["Contact"] = 5] = "Contact";
184
+ /**
185
+ * Currently not supported - Specifies FDC3 context for multiple contacts
186
+ */
187
+ Fdc3ContextType[Fdc3ContextType["ContactList"] = 6] = "ContactList";
188
+ /**
189
+ * Currently not supported - Specifies FDC3 context for single organization with company name
190
+ */
191
+ Fdc3ContextType[Fdc3ContextType["Organization"] = 7] = "Organization";
192
+ /**
193
+ * Currently not supported - Specifies FDC3 context for multiple organizations
194
+ */
195
+ Fdc3ContextType[Fdc3ContextType["OrganizationList"] = 8] = "OrganizationList";
196
+ return Fdc3ContextType;
197
+ })({});
198
+ /**
199
+ * @hidden
200
+ */
201
+ let Fdc3ContextType_$type = /*@__PURE__*/ markEnum('Fdc3ContextType', 'Unknown,0|Instrument,1|InstrumentList,2|Position,3|Portfolio,4|Contact,5|ContactList,6|Organization,7|OrganizationList,8');
202
+
203
+ /*
204
+ THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
205
+ https://www.infragistics.com/legal/license/igultimate-la
206
+ https://www.infragistics.com/legal/license/igultimate-eula
207
+ GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
208
+ */
209
+ /**
210
+ * @hidden
211
+ */
212
+ let Fdc3Util = /*@__PURE__*/ (() => {
213
+ class Fdc3Util extends Base {
214
+ static staticInit() {
215
+ Fdc3Util.c = new Dictionary$2(String_$type, Fdc3ContextType_$type, 0);
216
+ Fdc3Util.f(0);
217
+ Fdc3Util.f(1);
218
+ Fdc3Util.f(2);
219
+ Fdc3Util.f(3);
220
+ Fdc3Util.f(4);
221
+ Fdc3Util.f(7);
222
+ Fdc3Util.f(8);
223
+ Fdc3Util.f(5);
224
+ Fdc3Util.f(6);
225
+ Fdc3Util.d = new Dictionary$2(String_$type, Fdc3IntentType_$type, 0);
226
+ Fdc3Util.g(2);
227
+ Fdc3Util.g(3);
228
+ Fdc3Util.g(4);
229
+ Fdc3Util.g(7);
230
+ Fdc3Util.g(5);
231
+ Fdc3Util.g(6);
232
+ Fdc3Util.g(8);
233
+ Fdc3Util.g(10);
234
+ Fdc3Util.g(9);
235
+ }
236
+ static getString(a) {
237
+ let b = EnumUtil.getName(Fdc3ContextType_$type, a);
238
+ return "fdc3." + b.substr(0, 1).toLowerCase() + b.substr(1);
239
+ }
240
+ static a(a) {
241
+ if (Fdc3Util.c.containsKey(a)) {
242
+ return Fdc3Util.c.item(a);
243
+ }
244
+ else {
245
+ return 0;
246
+ }
247
+ }
248
+ static b(a) {
249
+ if (Fdc3Util.d.containsKey(a)) {
250
+ return Fdc3Util.d.item(a);
251
+ }
252
+ else {
253
+ return 2;
254
+ }
255
+ }
256
+ static f(a) {
257
+ let b = Fdc3Util.getString(a);
258
+ if (!Fdc3Util.c.containsKey(b)) {
259
+ Fdc3Util.c.addItem(b, a);
260
+ }
261
+ }
262
+ static g(a) {
263
+ let b = EnumUtil.getName(Fdc3IntentType_$type, a);
264
+ if (!Fdc3Util.d.containsKey(b)) {
265
+ Fdc3Util.d.addItem(b, a);
266
+ }
267
+ }
268
+ }
269
+ Fdc3Util.$t = /*@__PURE__*/ markType(Fdc3Util, 'Fdc3Util');
270
+ Fdc3Util.c = null;
271
+ Fdc3Util.d = null;
272
+ return Fdc3Util;
273
+ })();
274
+ (function (v) { callStaticConstructors(); })(true);
275
+
276
+ /*
277
+ THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
278
+ https://www.infragistics.com/legal/license/igultimate-la
279
+ https://www.infragistics.com/legal/license/igultimate-eula
280
+ GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
281
+ */
282
+ /**
283
+ * @hidden
284
+ */
285
+ let Fdc3Serializer = /*@__PURE__*/ (() => {
286
+ class Fdc3Serializer extends Base {
287
+ constructor() {
288
+ super();
289
+ this._sb = null;
290
+ this.m = 0;
291
+ this.l = false;
292
+ this._sb = new StringBuilder(0);
293
+ }
294
+ toString() {
295
+ return this._sb.toString();
296
+ }
297
+ toJson(a) {
298
+ this._sb.v();
299
+ if (typeCast(Fdc3Instrument.$, a) !== null) {
300
+ this.add4(typeCast(Fdc3Instrument.$, a));
301
+ }
302
+ else if (typeCast(Fdc3InstrumentList.$, a) !== null) {
303
+ this.add5(typeCast(Fdc3InstrumentList.$, a));
304
+ }
305
+ else if (typeCast(Fdc3Position.$, a) !== null) {
306
+ this.add9(typeCast(Fdc3Position.$, a));
307
+ }
308
+ else if (typeCast(Fdc3Portfolio.$, a) !== null) {
309
+ this.add8(typeCast(Fdc3Portfolio.$, a));
310
+ }
311
+ else if (typeCast(Fdc3Contact.$, a) !== null) {
312
+ this.add1(typeCast(Fdc3Contact.$, a));
313
+ }
314
+ else if (typeCast(Fdc3ContactList.$, a) !== null) {
315
+ this.add2(typeCast(Fdc3ContactList.$, a));
316
+ }
317
+ else if (typeCast(Fdc3Organization.$, a) !== null) {
318
+ this.add6(typeCast(Fdc3Organization.$, a));
319
+ }
320
+ else if (typeCast(Fdc3OrganizationList.$, a) !== null) {
321
+ this.add7(typeCast(Fdc3OrganizationList.$, a));
322
+ }
323
+ else {
324
+ this.add3(typeCast(Fdc3Context.$, a));
325
+ }
326
+ return this.toString();
327
+ }
328
+ add4(a, b = "") {
329
+ this.z("serializing Fdc3Instrument");
330
+ this.addObjectOpen();
331
+ this.addProp1("type", a.type);
332
+ if (!stringIsNullOrEmpty(a.target)) {
333
+ this.addProp1("target", a.target);
334
+ }
335
+ if (a.intent != 2) {
336
+ this.addProp1("intent", EnumUtil.getName(Fdc3IntentType_$type, a.intent));
337
+ }
338
+ if (!stringIsNullOrEmpty(a.name)) {
339
+ this.addProp1("name", a.name);
340
+ }
341
+ let e = a.getKeys();
342
+ for (let d = 0; d < e.length; d++) {
343
+ let c = e[d];
344
+ if (c == "type") {
345
+ continue;
346
+ }
347
+ if (c == "name") {
348
+ continue;
349
+ }
350
+ if (c == "target") {
351
+ continue;
352
+ }
353
+ if (c == "intent") {
354
+ continue;
355
+ }
356
+ if (c == "ticker") {
357
+ continue;
358
+ }
359
+ if (c != "id") {
360
+ this.addProp1(c, a.item(c));
361
+ }
362
+ }
363
+ if (a.id == null) {
364
+ this.addProp1("id", "null");
365
+ }
366
+ else {
367
+ this.addProp("id");
368
+ this.addObjectOpen();
369
+ this.addProp1("ticker", a.ticker);
370
+ let h = a.id.getKeys();
371
+ for (let g = 0; g < h.length; g++) {
372
+ let f = h[g];
373
+ if (f == "ticker") {
374
+ continue;
375
+ }
376
+ this.addProp1(f, a.id.item(f));
377
+ }
378
+ this.addObjectClose();
379
+ }
380
+ this.addObjectClose(b);
381
+ }
382
+ add5(a) {
383
+ this.z("serializing Fdc3InstrumentList");
384
+ this.addObjectOpen();
385
+ this.addProp1("type", a.type);
386
+ if (!stringIsNullOrEmpty(a.target)) {
387
+ this.addProp1("target", a.target);
388
+ }
389
+ if (a.intent != 2) {
390
+ this.addProp1("intent", EnumUtil.getName(Fdc3IntentType_$type, a.intent));
391
+ }
392
+ if (!stringIsNullOrEmpty(a.name)) {
393
+ this.addProp1("name", a.name);
394
+ }
395
+ let d = a.getKeys();
396
+ for (let c = 0; c < d.length; c++) {
397
+ let b = d[c];
398
+ if (b == "type") {
399
+ continue;
400
+ }
401
+ if (b == "name") {
402
+ continue;
403
+ }
404
+ if (b == "target") {
405
+ continue;
406
+ }
407
+ if (b == "intent") {
408
+ continue;
409
+ }
410
+ if (b == "id") {
411
+ continue;
412
+ }
413
+ if (b != "instruments") {
414
+ this.addProp1(b, a.item(b));
415
+ }
416
+ }
417
+ if (a.instruments == null) {
418
+ this.addProp1("instruments", "null");
419
+ }
420
+ else {
421
+ this.addProp("instruments");
422
+ this.addArrayOpen();
423
+ let g = a.instruments;
424
+ for (let f = 0; f < g.length; f++) {
425
+ let e = g[f];
426
+ this.add4(e, ",");
427
+ }
428
+ this.addArrayClose();
429
+ }
430
+ this.addObjectClose();
431
+ }
432
+ add8(a) {
433
+ this.z("serializing Fdc3Portfolio");
434
+ this.addObjectOpen();
435
+ this.addProp1("type", a.type);
436
+ if (!stringIsNullOrEmpty(a.target)) {
437
+ this.addProp1("target", a.target);
438
+ }
439
+ if (a.intent != 2) {
440
+ this.addProp1("intent", EnumUtil.getName(Fdc3IntentType_$type, a.intent));
441
+ }
442
+ if (!stringIsNullOrEmpty(a.name)) {
443
+ this.addProp1("name", a.name);
444
+ }
445
+ let d = a.getKeys();
446
+ for (let c = 0; c < d.length; c++) {
447
+ let b = d[c];
448
+ if (b == "type") {
449
+ continue;
450
+ }
451
+ if (b == "name") {
452
+ continue;
453
+ }
454
+ if (b == "target") {
455
+ continue;
456
+ }
457
+ if (b == "intent") {
458
+ continue;
459
+ }
460
+ if (b == "id") {
461
+ continue;
462
+ }
463
+ if (b != "positions") {
464
+ this.addProp1(b, a.item(b));
465
+ }
466
+ }
467
+ if (a.positions == null) {
468
+ this.addProp1("positions", "null");
469
+ }
470
+ else {
471
+ this.addProp("positions");
472
+ this.addArrayOpen();
473
+ let g = a.positions;
474
+ for (let f = 0; f < g.length; f++) {
475
+ let e = g[f];
476
+ this.add9(e, ",");
477
+ }
478
+ this.addArrayClose();
479
+ }
480
+ this.addObjectClose();
481
+ }
482
+ add9(a, b = "") {
483
+ this.z("serializing Fdc3Position");
484
+ this.addObjectOpen();
485
+ this.addProp1("type", a.type);
486
+ if (!stringIsNullOrEmpty(a.target)) {
487
+ this.addProp1("target", a.target);
488
+ }
489
+ if (a.intent != 2) {
490
+ this.addProp1("intent", EnumUtil.getName(Fdc3IntentType_$type, a.intent));
491
+ }
492
+ if (!stringIsNullOrEmpty(a.name)) {
493
+ this.addProp1("name", a.name);
494
+ }
495
+ let e = a.getKeys();
496
+ for (let d = 0; d < e.length; d++) {
497
+ let c = e[d];
498
+ if (c == "type") {
499
+ continue;
500
+ }
501
+ if (c == "name") {
502
+ continue;
503
+ }
504
+ if (c == "target") {
505
+ continue;
506
+ }
507
+ if (c == "intent") {
508
+ continue;
509
+ }
510
+ if (c == "id") {
511
+ continue;
512
+ }
513
+ if (c != "instrument") {
514
+ this.addProp1(c, a.item(c));
515
+ }
516
+ }
517
+ if (a.instrument == null) {
518
+ this.addProp1("instrument", "null");
519
+ }
520
+ else {
521
+ this.addProp("instrument");
522
+ this.add4(a.instrument, ",");
523
+ }
524
+ this.addObjectClose(b);
525
+ }
526
+ add1(a, b = "") {
527
+ this.addObjectOpen();
528
+ this.addProp1("type", a.type);
529
+ if (!stringIsNullOrEmpty(a.target)) {
530
+ this.addProp1("target", a.target);
531
+ }
532
+ if (a.intent != 2) {
533
+ this.addProp1("intent", EnumUtil.getName(Fdc3IntentType_$type, a.intent));
534
+ }
535
+ if (!stringIsNullOrEmpty(a.name)) {
536
+ this.addProp1("name", a.name);
537
+ }
538
+ let e = a.getKeys();
539
+ for (let d = 0; d < e.length; d++) {
540
+ let c = e[d];
541
+ if (c == "type") {
542
+ continue;
543
+ }
544
+ if (c == "name") {
545
+ continue;
546
+ }
547
+ if (c == "target") {
548
+ continue;
549
+ }
550
+ if (c == "intent") {
551
+ continue;
552
+ }
553
+ if (c == "email") {
554
+ continue;
555
+ }
556
+ if (c == "phone") {
557
+ continue;
558
+ }
559
+ if (c != "id") {
560
+ this.addProp1(c, a.item(c));
561
+ }
562
+ }
563
+ if (a.id == null) {
564
+ this.addProp1("id", "null");
565
+ }
566
+ else {
567
+ this.addProp("id");
568
+ this.addObjectOpen();
569
+ let h = a.id.getKeys();
570
+ for (let g = 0; g < h.length; g++) {
571
+ let f = h[g];
572
+ this.addProp1(f, a.id.item(f));
573
+ }
574
+ this.addObjectClose();
575
+ }
576
+ this.addObjectClose(b);
577
+ }
578
+ z(message_) {
579
+ }
580
+ add2(a) {
581
+ this.addObjectOpen();
582
+ this.addProp1("type", a.type);
583
+ if (!stringIsNullOrEmpty(a.target)) {
584
+ this.addProp1("target", a.target);
585
+ }
586
+ if (a.intent != 2) {
587
+ this.addProp1("intent", EnumUtil.getName(Fdc3IntentType_$type, a.intent));
588
+ }
589
+ if (!stringIsNullOrEmpty(a.name)) {
590
+ this.addProp1("name", a.name);
591
+ }
592
+ let d = a.getKeys();
593
+ for (let c = 0; c < d.length; c++) {
594
+ let b = d[c];
595
+ if (b == "type") {
596
+ continue;
597
+ }
598
+ if (b == "name") {
599
+ continue;
600
+ }
601
+ if (b == "target") {
602
+ continue;
603
+ }
604
+ if (b == "intent") {
605
+ continue;
606
+ }
607
+ if (b == "id") {
608
+ continue;
609
+ }
610
+ if (b != "contacts") {
611
+ this.addProp1(b, a.item(b));
612
+ }
613
+ }
614
+ if (a.contacts == null) {
615
+ this.addProp1("contacts", "null");
616
+ }
617
+ else {
618
+ this.addProp("contacts");
619
+ this.addArrayOpen();
620
+ let g = a.contacts;
621
+ for (let f = 0; f < g.length; f++) {
622
+ let e = g[f];
623
+ this.add1(e, ",");
624
+ }
625
+ this.addArrayClose();
626
+ }
627
+ this.addObjectClose();
628
+ }
629
+ add6(a, b = "") {
630
+ this.z("serializing Fdc3Organization");
631
+ this.addObjectOpen();
632
+ this.addProp1("type", a.type);
633
+ if (!stringIsNullOrEmpty(a.target)) {
634
+ this.addProp1("target", a.target);
635
+ }
636
+ if (a.intent != 2) {
637
+ this.addProp1("intent", EnumUtil.getName(Fdc3IntentType_$type, a.intent));
638
+ }
639
+ if (!stringIsNullOrEmpty(a.name)) {
640
+ this.addProp1("name", a.name);
641
+ }
642
+ let e = a.getKeys();
643
+ for (let d = 0; d < e.length; d++) {
644
+ let c = e[d];
645
+ if (c == "type") {
646
+ continue;
647
+ }
648
+ if (c == "name") {
649
+ continue;
650
+ }
651
+ if (c == "target") {
652
+ continue;
653
+ }
654
+ if (c == "intent") {
655
+ continue;
656
+ }
657
+ if (c == "email") {
658
+ continue;
659
+ }
660
+ if (c == "phone") {
661
+ continue;
662
+ }
663
+ if (c != "id") {
664
+ this.addProp1(c, a.item(c));
665
+ }
666
+ }
667
+ if (a.id == null) {
668
+ this.addProp1("id", "null");
669
+ }
670
+ else {
671
+ this.addProp("id");
672
+ this.addObjectOpen();
673
+ let h = a.id.getKeys();
674
+ for (let g = 0; g < h.length; g++) {
675
+ let f = h[g];
676
+ this.addProp1(f, a.id.item(f));
677
+ }
678
+ this.addObjectClose();
679
+ }
680
+ this.addObjectClose(b);
681
+ }
682
+ add7(a) {
683
+ this.addObjectOpen();
684
+ this.addProp1("type", a.type);
685
+ if (!stringIsNullOrEmpty(a.target)) {
686
+ this.addProp1("target", a.target);
687
+ }
688
+ if (a.intent != 2) {
689
+ this.addProp1("intent", EnumUtil.getName(Fdc3IntentType_$type, a.intent));
690
+ }
691
+ if (!stringIsNullOrEmpty(a.name)) {
692
+ this.addProp1("name", a.name);
693
+ }
694
+ let d = a.getKeys();
695
+ for (let c = 0; c < d.length; c++) {
696
+ let b = d[c];
697
+ if (b == "type") {
698
+ continue;
699
+ }
700
+ if (b == "name") {
701
+ continue;
702
+ }
703
+ if (b == "target") {
704
+ continue;
705
+ }
706
+ if (b == "intent") {
707
+ continue;
708
+ }
709
+ if (b == "id") {
710
+ continue;
711
+ }
712
+ if (b != "organizations") {
713
+ this.addProp1(b, a.item(b));
714
+ }
715
+ }
716
+ if (a.organizations == null) {
717
+ this.addProp1("organizations", "null");
718
+ }
719
+ else {
720
+ this.addProp("organizations");
721
+ this.addArrayOpen();
722
+ let g = a.organizations;
723
+ for (let f = 0; f < g.length; f++) {
724
+ let e = g[f];
725
+ this.add4(e, ",");
726
+ }
727
+ this.addArrayClose();
728
+ }
729
+ this.addObjectClose();
730
+ }
731
+ add3(a, b = "") {
732
+ this.z("serializing Fdc3Context");
733
+ this.addObjectOpen();
734
+ this.addProp1("type", a.type);
735
+ if (!stringIsNullOrEmpty(a.target)) {
736
+ this.addProp1("target", a.target);
737
+ }
738
+ if (a.intent != 2) {
739
+ this.addProp1("intent", EnumUtil.getName(Fdc3IntentType_$type, a.intent));
740
+ }
741
+ if (!stringIsNullOrEmpty(a.name)) {
742
+ this.addProp1("name", a.name);
743
+ }
744
+ let e = a.getKeys();
745
+ for (let d = 0; d < e.length; d++) {
746
+ let c = e[d];
747
+ if (c == "type") {
748
+ continue;
749
+ }
750
+ if (c == "name") {
751
+ continue;
752
+ }
753
+ if (c == "target") {
754
+ continue;
755
+ }
756
+ if (c == "intent") {
757
+ continue;
758
+ }
759
+ if (c != "id") {
760
+ this.addProp1(c, a.item(c));
761
+ }
762
+ }
763
+ if (a.id == null) {
764
+ this.addProp1("id", "null");
765
+ }
766
+ else {
767
+ this.addProp("id");
768
+ this.addObjectOpen();
769
+ let h = a.id.getKeys();
770
+ for (let g = 0; g < h.length; g++) {
771
+ let f = h[g];
772
+ this.addProp1(f, a.id.item(f));
773
+ }
774
+ this.addObjectClose();
775
+ }
776
+ this.addObjectClose(b);
777
+ }
778
+ addArrayOpen() {
779
+ this.addLine("[");
780
+ this.tabIncrease();
781
+ return this;
782
+ }
783
+ addArrayClose(a = "") {
784
+ this.tabDecrease();
785
+ this.addLine("]" + a);
786
+ return this;
787
+ }
788
+ addObjectOpen() {
789
+ this.addLine("{");
790
+ this.tabIncrease();
791
+ return this;
792
+ }
793
+ addObjectClose(a = "") {
794
+ this.tabDecrease();
795
+ this.addLine("}" + a);
796
+ return this;
797
+ }
798
+ add(a) {
799
+ this.i();
800
+ this._sb.l(a);
801
+ return this;
802
+ }
803
+ addLine(a) {
804
+ this.i();
805
+ this._sb.u(a);
806
+ this.l = true;
807
+ return this;
808
+ }
809
+ addProp(a) {
810
+ this.i();
811
+ this._sb.u("\"" + a + "\": ");
812
+ this.l = true;
813
+ return this;
814
+ }
815
+ addProp1(a, b, c = "") {
816
+ this.i();
817
+ if (!stringIsNullOrEmpty(c)) {
818
+ c = " // " + c;
819
+ }
820
+ let d = b == null ? "null" : b;
821
+ if (typeof b === 'string') {
822
+ this._sb.u("\"" + a + "\": \"" + d + "\"," + c);
823
+ }
824
+ else if (typeCast(Boolean_$type, b) !== null) {
825
+ let e = d.toString().toLowerCase();
826
+ this._sb.u("\"" + a + "\": " + e + "," + c);
827
+ }
828
+ else {
829
+ this._sb.u("\"" + a + "\": " + d + "," + c);
830
+ }
831
+ this.l = true;
832
+ return this;
833
+ }
834
+ i() {
835
+ if (this.l) {
836
+ for (let a = 0; a < this.m; a++) {
837
+ this._sb.l(" ");
838
+ }
839
+ this.l = false;
840
+ }
841
+ return this;
842
+ }
843
+ tabIncrease() {
844
+ this.m++;
845
+ return this;
846
+ }
847
+ tabDecrease() {
848
+ this.m--;
849
+ return this;
850
+ }
851
+ }
852
+ Fdc3Serializer.$t = /*@__PURE__*/ markType(Fdc3Serializer, 'Fdc3Serializer');
853
+ return Fdc3Serializer;
854
+ })();
855
+ /**
856
+ * @hidden
857
+ */
858
+ let Fdc3Context = /*@__PURE__*/ (() => {
859
+ class Fdc3Context extends Fdc3Dictionary {
860
+ constructor(a, ..._rest) {
861
+ super();
862
+ this._id = null;
863
+ a = (a == void 0) ? 0 : a;
864
+ switch (a) {
865
+ case 0:
866
+ {
867
+ let c = [0];
868
+ {
869
+ let e = c[0];
870
+ this.type = Fdc3Util.getString(e);
871
+ this.id = new Fdc3Dictionary();
872
+ }
873
+ }
874
+ break;
875
+ case 1:
876
+ {
877
+ let c = _rest[0];
878
+ this.type = Fdc3Util.getString(c);
879
+ this.id = new Fdc3Dictionary();
880
+ }
881
+ break;
882
+ }
883
+ }
884
+ get intent() {
885
+ return Fdc3Util.b(this.item("intent").toString());
886
+ }
887
+ set intent(a) {
888
+ this.item("intent", enumGetBox(Fdc3IntentType_$type, a));
889
+ }
890
+ get type() {
891
+ return this.item("type").toString();
892
+ }
893
+ set type(a) {
894
+ this.item("type", a);
895
+ }
896
+ get target() {
897
+ return this.h("target");
898
+ }
899
+ set target(a) {
900
+ this.item("target", a);
901
+ }
902
+ get name() {
903
+ return this.h("name");
904
+ }
905
+ set name(a) {
906
+ this.item("name", a);
907
+ }
908
+ get id() {
909
+ return this._id;
910
+ }
911
+ set id(a) {
912
+ this._id = a;
913
+ }
914
+ toJson() {
915
+ let a = new Fdc3Serializer();
916
+ let b = a.toJson(this);
917
+ return b;
918
+ }
919
+ }
920
+ Fdc3Context.$t = /*@__PURE__*/ markType(Fdc3Context, 'Fdc3Context', Fdc3Dictionary.$);
921
+ return Fdc3Context;
922
+ })();
923
+ /**
924
+ * @hidden
925
+ */
926
+ let Fdc3Instrument = /*@__PURE__*/ (() => {
927
+ class Fdc3Instrument extends Fdc3Context {
928
+ constructor() {
929
+ super(1, 1);
930
+ }
931
+ get ticker() {
932
+ return this.id.item("ticker").toString();
933
+ }
934
+ set ticker(a) {
935
+ this.id.item("ticker", a);
936
+ }
937
+ }
938
+ Fdc3Instrument.$t = /*@__PURE__*/ markType(Fdc3Instrument, 'Fdc3Instrument', Fdc3Context.$);
939
+ return Fdc3Instrument;
940
+ })();
941
+ /**
942
+ * @hidden
943
+ */
944
+ let Fdc3InstrumentList = /*@__PURE__*/ (() => {
945
+ class Fdc3InstrumentList extends Fdc3Context {
946
+ constructor() {
947
+ super(0);
948
+ this._instruments = null;
949
+ this.type = Fdc3Util.getString(2);
950
+ this.instruments = new Array(0);
951
+ }
952
+ get instruments() {
953
+ return this._instruments;
954
+ }
955
+ set instruments(a) {
956
+ this._instruments = a;
957
+ }
958
+ }
959
+ Fdc3InstrumentList.$t = /*@__PURE__*/ markType(Fdc3InstrumentList, 'Fdc3InstrumentList', Fdc3Context.$);
960
+ return Fdc3InstrumentList;
961
+ })();
962
+ /**
963
+ * @hidden
964
+ */
965
+ let Fdc3Position = /*@__PURE__*/ (() => {
966
+ class Fdc3Position extends Fdc3Context {
967
+ constructor() {
968
+ super(1, 3);
969
+ this.instrument = new Fdc3Instrument();
970
+ }
971
+ get instrument() {
972
+ return typeCast(Fdc3Instrument.$, this.item("instrument"));
973
+ }
974
+ set instrument(a) {
975
+ this.item("instrument", a);
976
+ }
977
+ get shares() {
978
+ return this.e("shares");
979
+ }
980
+ set shares(a) {
981
+ this.item("shares", a);
982
+ }
983
+ get cost() {
984
+ return this.e("cost");
985
+ }
986
+ set cost(a) {
987
+ this.item("cost", a);
988
+ }
989
+ get price() {
990
+ return this.e("price");
991
+ }
992
+ set price(a) {
993
+ this.item("price", a);
994
+ }
995
+ }
996
+ Fdc3Position.$t = /*@__PURE__*/ markType(Fdc3Position, 'Fdc3Position', Fdc3Context.$);
997
+ return Fdc3Position;
998
+ })();
999
+ /**
1000
+ * @hidden
1001
+ */
1002
+ let Fdc3Portfolio = /*@__PURE__*/ (() => {
1003
+ class Fdc3Portfolio extends Fdc3Context {
1004
+ constructor() {
1005
+ super(1, 4);
1006
+ this._positions = null;
1007
+ this.positions = new Array(0);
1008
+ }
1009
+ get positions() {
1010
+ return this._positions;
1011
+ }
1012
+ set positions(a) {
1013
+ this._positions = a;
1014
+ }
1015
+ }
1016
+ Fdc3Portfolio.$t = /*@__PURE__*/ markType(Fdc3Portfolio, 'Fdc3Portfolio', Fdc3Context.$);
1017
+ return Fdc3Portfolio;
1018
+ })();
1019
+ /**
1020
+ * @hidden
1021
+ */
1022
+ let Fdc3Organization = /*@__PURE__*/ (() => {
1023
+ class Fdc3Organization extends Fdc3Context {
1024
+ constructor() {
1025
+ super(1, 7);
1026
+ }
1027
+ }
1028
+ Fdc3Organization.$t = /*@__PURE__*/ markType(Fdc3Organization, 'Fdc3Organization', Fdc3Context.$);
1029
+ return Fdc3Organization;
1030
+ })();
1031
+ /**
1032
+ * @hidden
1033
+ */
1034
+ let Fdc3OrganizationList = /*@__PURE__*/ (() => {
1035
+ class Fdc3OrganizationList extends Fdc3Context {
1036
+ constructor() {
1037
+ super(1, 8);
1038
+ this._organizations = null;
1039
+ }
1040
+ get organizations() {
1041
+ return this._organizations;
1042
+ }
1043
+ set organizations(a) {
1044
+ this._organizations = a;
1045
+ }
1046
+ }
1047
+ Fdc3OrganizationList.$t = /*@__PURE__*/ markType(Fdc3OrganizationList, 'Fdc3OrganizationList', Fdc3Context.$);
1048
+ return Fdc3OrganizationList;
1049
+ })();
1050
+ /**
1051
+ * @hidden
1052
+ */
1053
+ let Fdc3Contact = /*@__PURE__*/ (() => {
1054
+ class Fdc3Contact extends Fdc3Context {
1055
+ constructor(a, ..._rest) {
1056
+ a = (a == void 0) ? 0 : a;
1057
+ switch (a) {
1058
+ case 0:
1059
+ {
1060
+ let c = ["", "", "", ""];
1061
+ {
1062
+ let e = c[0];
1063
+ let f = c[1];
1064
+ let g = c[2];
1065
+ let h = c[3];
1066
+ super(1, 5);
1067
+ this.name = e;
1068
+ this.email = f;
1069
+ this.phone = g;
1070
+ this.twitter = h;
1071
+ }
1072
+ }
1073
+ break;
1074
+ case 1:
1075
+ {
1076
+ let c = _rest[0];
1077
+ let d = _rest[1];
1078
+ let e = _rest[2];
1079
+ let f = _rest[3];
1080
+ super(1, 5);
1081
+ this.name = c;
1082
+ this.email = d;
1083
+ this.phone = e;
1084
+ this.twitter = f;
1085
+ }
1086
+ break;
1087
+ }
1088
+ }
1089
+ get email() {
1090
+ return this.id.item("email").toString();
1091
+ }
1092
+ set email(a) {
1093
+ this.id.item("email", a);
1094
+ }
1095
+ get phone() {
1096
+ return this.id.item("phone").toString();
1097
+ }
1098
+ set phone(a) {
1099
+ this.id.item("phone", a);
1100
+ }
1101
+ get twitter() {
1102
+ return this.id.item("twitter").toString();
1103
+ }
1104
+ set twitter(a) {
1105
+ this.id.item("twitter", a);
1106
+ }
1107
+ }
1108
+ Fdc3Contact.$t = /*@__PURE__*/ markType(Fdc3Contact, 'Fdc3Contact', Fdc3Context.$);
1109
+ return Fdc3Contact;
1110
+ })();
1111
+ /**
1112
+ * @hidden
1113
+ */
1114
+ let Fdc3ContactList = /*@__PURE__*/ (() => {
1115
+ class Fdc3ContactList extends Fdc3Context {
1116
+ constructor(a, ..._rest) {
1117
+ a = (a == void 0) ? 0 : a;
1118
+ switch (a) {
1119
+ case 0:
1120
+ {
1121
+ super(1, 6);
1122
+ this._contacts = null;
1123
+ this.contacts = new Array(0);
1124
+ }
1125
+ break;
1126
+ case 1:
1127
+ {
1128
+ let c = _rest[0];
1129
+ {
1130
+ super(1, 6);
1131
+ this._contacts = null;
1132
+ this.contacts = new Array(0);
1133
+ }
1134
+ this.contacts = c;
1135
+ }
1136
+ break;
1137
+ }
1138
+ }
1139
+ get contacts() {
1140
+ return this._contacts;
1141
+ }
1142
+ set contacts(a) {
1143
+ this._contacts = a;
1144
+ }
1145
+ }
1146
+ Fdc3ContactList.$t = /*@__PURE__*/ markType(Fdc3ContactList, 'Fdc3ContactList', Fdc3Context.$);
1147
+ return Fdc3ContactList;
1148
+ })();
1149
+
1150
+ /*
1151
+ THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
1152
+ https://www.infragistics.com/legal/license/igultimate-la
1153
+ https://www.infragistics.com/legal/license/igultimate-eula
1154
+ GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
1155
+ */
1156
+
1157
+ /*
1158
+ THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
1159
+ https://www.infragistics.com/legal/license/igultimate-la
1160
+ https://www.infragistics.com/legal/license/igultimate-eula
1161
+ GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
1162
+ */
1163
+
1164
+ /*
1165
+ THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
1166
+ https://www.infragistics.com/legal/license/igultimate-la
1167
+ https://www.infragistics.com/legal/license/igultimate-eula
1168
+ GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
1169
+ */
1170
+
1171
+ /*
1172
+ THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
1173
+ https://www.infragistics.com/legal/license/igultimate-la
1174
+ https://www.infragistics.com/legal/license/igultimate-eula
1175
+ GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
1176
+ */
1177
+
1178
+ /*
1179
+ THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
1180
+ https://www.infragistics.com/legal/license/igultimate-la
1181
+ https://www.infragistics.com/legal/license/igultimate-eula
1182
+ GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
1183
+ */
1184
+ /**
1185
+ * @hidden
1186
+ */
1187
+ let Fdc3Converter = /*@__PURE__*/ (() => {
1188
+ class Fdc3Converter extends Base {
1189
+ static log(message_) {
1190
+ }
1191
+ static toInstrument(context_) {
1192
+ let instrument_ = new Fdc3Instrument();
1193
+ if (context_ == null) {
1194
+ return instrument_;
1195
+ }
1196
+ // Fdc3Converter.log('converting to Instrument');
1197
+ var propNames = Object.getOwnPropertyNames(context_);
1198
+ for (var i = 0; i < propNames.length; i++) {
1199
+ var prop = propNames[i];
1200
+ if (prop === 'id') {
1201
+ var propIDs = Object.getOwnPropertyNames(context_[prop]);
1202
+ for (var ii = 0; ii < propIDs.length; ii++) {
1203
+ var id = propIDs[ii];
1204
+ instrument_.id.set(id, context_[prop][id]);
1205
+ }
1206
+ }
1207
+ else {
1208
+ instrument_.set(prop, context_[prop]);
1209
+ }
1210
+ }
1211
+ ;
1212
+ return instrument_;
1213
+ }
1214
+ static toInstrumentList(context_) {
1215
+ let list_ = new Fdc3InstrumentList();
1216
+ if (context_ == null) {
1217
+ return list_;
1218
+ }
1219
+ // Fdc3Converter.log('converting to InstrumentList');
1220
+ var propNames = Object.getOwnPropertyNames(context_);
1221
+ for (var i = 0; i < propNames.length; i++) {
1222
+ var prop = propNames[i];
1223
+ if (context_[prop] instanceof Array) {
1224
+ var array = context_[prop];
1225
+ for (var ii = 0; ii < array.length; ii++) {
1226
+ var item = array[ii];
1227
+ if (item['type'] === 'fdc3.instrument') {
1228
+ var instrument = this.toInstrument(item);
1229
+ list_.instruments.push(instrument);
1230
+ }
1231
+ }
1232
+ }
1233
+ else {
1234
+ list_.set(prop, context_[prop]);
1235
+ }
1236
+ }
1237
+ ;
1238
+ return list_;
1239
+ }
1240
+ static toPosition(context_) {
1241
+ let position_ = new Fdc3Position();
1242
+ if (context_ == null) {
1243
+ return position_;
1244
+ }
1245
+ // Fdc3Converter.log('converting to Position');
1246
+ var propNames = Object.getOwnPropertyNames(context_);
1247
+ for (var i = 0; i < propNames.length; i++) {
1248
+ var prop = propNames[i];
1249
+ if (prop === 'instrument') {
1250
+ var inst = Fdc3Converter.toInstrument(context_[prop]);
1251
+ position_.instrument = inst;
1252
+ }
1253
+ else {
1254
+ position_.set(prop, context_[prop]);
1255
+ }
1256
+ }
1257
+ ;
1258
+ return position_;
1259
+ }
1260
+ static toPortfolio(context_) {
1261
+ let portfolio_ = new Fdc3Portfolio();
1262
+ if (context_ == null) {
1263
+ return portfolio_;
1264
+ }
1265
+ // Fdc3Converter.log('converting to Portfolio');
1266
+ var propNames = Object.getOwnPropertyNames(context_);
1267
+ for (var i = 0; i < propNames.length; i++) {
1268
+ var prop = propNames[i];
1269
+ if (context_[prop] instanceof Array) {
1270
+ // Fdc3Converter.log('array ');
1271
+ var array = context_[prop];
1272
+ for (var ii = 0; ii < array.length; ii++) {
1273
+ var item = array[ii];
1274
+ if (item['type'] === 'fdc3.position') {
1275
+ var position_ = Fdc3Converter.toPosition(item);
1276
+ portfolio_.positions.push(position_);
1277
+ }
1278
+ }
1279
+ }
1280
+ else {
1281
+ portfolio_.set(prop, context_[prop]);
1282
+ }
1283
+ }
1284
+ ;
1285
+ return portfolio_;
1286
+ }
1287
+ static fromPortfolio(portfolio_) {
1288
+ let context_ = null;
1289
+ if (portfolio_ == null) {
1290
+ return context_;
1291
+ }
1292
+ // Fdc3Converter.log('converting from Portfolio');
1293
+ context_ = {};
1294
+ var propNames = portfolio_.getKeys();
1295
+ for (var i = 0; i < propNames.length; i++) {
1296
+ var prop = propNames[i];
1297
+ context_[prop] = portfolio_.item(prop);
1298
+ }
1299
+ context_.positions = [];
1300
+ for (var i = 0; i < portfolio_.positions.length; i++) {
1301
+ var position_ = portfolio_.positions[i];
1302
+ var item = Fdc3Converter.fromPosition(position_);
1303
+ context_.positions.push(item);
1304
+ }
1305
+ ;
1306
+ return context_;
1307
+ }
1308
+ static fromPosition(position_) {
1309
+ let context_ = null;
1310
+ if (position_ == null) {
1311
+ return context_;
1312
+ }
1313
+ // Fdc3Converter.log('converting from position');
1314
+ context_ = {};
1315
+ var propNames = position_.getKeys();
1316
+ for (var i = 0; i < propNames.length; i++) {
1317
+ var prop = propNames[i];
1318
+ context_[prop] = position_.item(prop);
1319
+ }
1320
+ context_.instrument = Fdc3Converter.fromInstrument(position_.instrument);
1321
+ ;
1322
+ return context_;
1323
+ }
1324
+ static fromInstrumentList(list_) {
1325
+ let context_ = null;
1326
+ if (list_ == null) {
1327
+ return context_;
1328
+ }
1329
+ // Fdc3Converter.log('converting from InstrumentList');
1330
+ context_ = {};
1331
+ var propNames = list_.getKeys();
1332
+ for (var i = 0; i < propNames.length; i++) {
1333
+ var prop = propNames[i];
1334
+ context_[prop] = list_.item(prop);
1335
+ }
1336
+ context_.instruments = [];
1337
+ for (var i = 0; i < list_.instruments.length; i++) {
1338
+ var instrument = list_.instruments[i];
1339
+ var item = Fdc3Converter.fromInstrument(instrument);
1340
+ context_.instruments.push(item);
1341
+ }
1342
+ ;
1343
+ return context_;
1344
+ }
1345
+ static fromInstrument(instrument_) {
1346
+ let context_ = null;
1347
+ if (instrument_ == null) {
1348
+ return context_;
1349
+ }
1350
+ // Fdc3Converter.log('converting from Instrument');
1351
+ context_ = {};
1352
+ var propNames = instrument_.getKeys();
1353
+ for (var i = 0; i < propNames.length; i++) {
1354
+ var prop = propNames[i];
1355
+ context_[prop] = instrument_.item(prop);
1356
+ }
1357
+ context_.id = {};
1358
+ var propIDs = instrument_.id.getKeys();
1359
+ for (var i = 0; i < propIDs.length; i++) {
1360
+ var prop = propIDs[i];
1361
+ context_.id[prop] = instrument_.id.item(prop);
1362
+ }
1363
+ ;
1364
+ return context_;
1365
+ }
1366
+ }
1367
+ Fdc3Converter.$t = /*@__PURE__*/ markType(Fdc3Converter, 'Fdc3Converter');
1368
+ return Fdc3Converter;
1369
+ })();
1370
+
1371
+ /*
1372
+ THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
1373
+ https://www.infragistics.com/legal/license/igultimate-la
1374
+ https://www.infragistics.com/legal/license/igultimate-eula
1375
+ GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
1376
+ */
1377
+
1378
+ /*
1379
+ THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
1380
+ https://www.infragistics.com/legal/license/igultimate-la
1381
+ https://www.infragistics.com/legal/license/igultimate-eula
1382
+ GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
1383
+ */
1384
+
1385
+ /*
1386
+ THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
1387
+ https://www.infragistics.com/legal/license/igultimate-la
1388
+ https://www.infragistics.com/legal/license/igultimate-eula
1389
+ GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
1390
+ */
1391
+
1392
+ /*
1393
+ THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
1394
+ https://www.infragistics.com/legal/license/igultimate-la
1395
+ https://www.infragistics.com/legal/license/igultimate-eula
1396
+ GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
1397
+ */
1398
+
1399
+ /*
1400
+ THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
1401
+ https://www.infragistics.com/legal/license/igultimate-la
1402
+ https://www.infragistics.com/legal/license/igultimate-eula
1403
+ GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
1404
+ */
1405
+
1406
+ /*
1407
+ THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
1408
+ https://www.infragistics.com/legal/license/igultimate-la
1409
+ https://www.infragistics.com/legal/license/igultimate-eula
1410
+ GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
1411
+ */
1412
+
1413
+ /*
1414
+ THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
1415
+ https://www.infragistics.com/legal/license/igultimate-la
1416
+ https://www.infragistics.com/legal/license/igultimate-eula
1417
+ GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
1418
+ */
1419
+ /**
1420
+ * @hidden
1421
+ */
1422
+ let Fdc3Message = /*@__PURE__*/ (() => {
1423
+ class Fdc3Message extends Base {
1424
+ constructor() {
1425
+ super();
1426
+ this._tickerSymbols = null;
1427
+ this._tickerNames = null;
1428
+ this._json = null;
1429
+ this._context = null;
1430
+ this._intentType = null;
1431
+ this._contextType = null;
1432
+ this.tickerNames = new Array(0);
1433
+ this.tickerSymbols = new Array(0);
1434
+ }
1435
+ get tickerSymbols() {
1436
+ return this._tickerSymbols;
1437
+ }
1438
+ set tickerSymbols(a) {
1439
+ this._tickerSymbols = a;
1440
+ }
1441
+ get tickerNames() {
1442
+ return this._tickerNames;
1443
+ }
1444
+ set tickerNames(a) {
1445
+ this._tickerNames = a;
1446
+ }
1447
+ get json() {
1448
+ return this._json;
1449
+ }
1450
+ set json(a) {
1451
+ this._json = a;
1452
+ }
1453
+ get context() {
1454
+ return this._context;
1455
+ }
1456
+ set context(a) {
1457
+ this._context = a;
1458
+ }
1459
+ get intentType() {
1460
+ return this._intentType;
1461
+ }
1462
+ set intentType(a) {
1463
+ this._intentType = a;
1464
+ }
1465
+ get contextType() {
1466
+ return this._contextType;
1467
+ }
1468
+ set contextType(a) {
1469
+ this._contextType = a;
1470
+ }
1471
+ }
1472
+ Fdc3Message.$t = /*@__PURE__*/ markType(Fdc3Message, 'Fdc3Message');
1473
+ return Fdc3Message;
1474
+ })();
1475
+
1476
+ /*
1477
+ THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
1478
+ https://www.infragistics.com/legal/license/igultimate-la
1479
+ https://www.infragistics.com/legal/license/igultimate-eula
1480
+ GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
1481
+ */
1482
+ /**
1483
+ * @hidden
1484
+ */
1485
+ let Fdc3DataAdapter = /*@__PURE__*/ (() => {
1486
+ class Fdc3DataAdapter extends FinancialDataAdapter {
1487
+ constructor(a) {
1488
+ super();
1489
+ this.messageReceived = null;
1490
+ this._openFin = null;
1491
+ this.a3 = false;
1492
+ this._openFin = a;
1493
+ }
1494
+ aq(a, b, c) {
1495
+ super.aq(a, b, c);
1496
+ }
1497
+ ba(a) {
1498
+ if (a == null) {
1499
+ return;
1500
+ }
1501
+ if (a.context != null && stringIsNullOrEmpty(a.json)) {
1502
+ a.json = a.context.toJson();
1503
+ this.log("received '" + a.intentType + "' intent '" + a.contextType + "' context with JSON:\n" + a.json);
1504
+ }
1505
+ if (this.messageReceived != null && a != null) {
1506
+ this.messageReceived(a);
1507
+ }
1508
+ }
1509
+ a5() {
1510
+ let isRunning_ = true;
1511
+ if (!window.hasOwnProperty('fin')) {
1512
+ isRunning_ = false;
1513
+ }
1514
+ ;
1515
+ return isRunning_;
1516
+ }
1517
+ subscribe(intentType_, contextType_ = "") {
1518
+ if (!this.a5()) {
1519
+ return;
1520
+ }
1521
+ if (stringIsNullOrEmpty(intentType_)) {
1522
+ intentType_ = "ViewChart";
1523
+ }
1524
+ this.log("Subscribing to '" + intentType_ + "' intent and '" + contextType_ + "' context");
1525
+ let addIntentListener_ = this._openFin.addIntentListener;
1526
+ // calling OpenFin API:
1527
+ addIntentListener_(intentType_, (context) => {
1528
+ return new Promise((resolve, reject) => {
1529
+ try {
1530
+ this.log('Subscriber received context ');
1531
+ if (context.type == null || context.type === undefined) {
1532
+ this.log('Subscriber received context with missing context.type');
1533
+ return;
1534
+ }
1535
+ if (contextType_ !== '' && contextType_ !== context.type) {
1536
+ this.log('Subscriber skipping not matching context.type');
1537
+ return;
1538
+ }
1539
+ // call function to handle intent and process its context
1540
+ this.handleIntent(context, context.type, intentType_);
1541
+ resolve();
1542
+ }
1543
+ catch (e) {
1544
+ this.log('Subscriber detected error with ' + intentType_ + ' intent: \n' + e);
1545
+ reject(e);
1546
+ }
1547
+ });
1548
+ });
1549
+ ;
1550
+ }
1551
+ handleIntent(context_, contextType_, intentType_) {
1552
+ let msg_ = new Fdc3Message();
1553
+ this.log("HandleIntent '" + intentType_ + "' intent with '" + contextType_ + "' context");
1554
+ msg_.intentType = intentType_;
1555
+ msg_.contextType = contextType_;
1556
+ this.log('HandleIntent');
1557
+ if (contextType_ === 'fdc3.instrument') {
1558
+ var instrument = Fdc3Converter.toInstrument(context_);
1559
+ msg_.context = instrument;
1560
+ }
1561
+ else if (contextType_ === 'fdc3.instrumentList') {
1562
+ var list = Fdc3Converter.toInstrumentList(context_);
1563
+ msg_.context = list;
1564
+ }
1565
+ else if (contextType_ === 'fdc3.position') {
1566
+ var position = Fdc3Converter.toPosition(context_);
1567
+ msg_.context = position;
1568
+ }
1569
+ else if (contextType_ === 'fdc3.portfolio') {
1570
+ var portfolio = Fdc3Converter.toPortfolio(context_);
1571
+ msg_.context = portfolio;
1572
+ }
1573
+ else // TODO other unsupported/custom context of FDC3 messages
1574
+ {
1575
+ // var custom = Fdc3Converter.toPortfolio(context_);
1576
+ // msg_.context = custom;
1577
+ // this.log('received custom \n' + custom.toJson());
1578
+ }
1579
+ ;
1580
+ let a = new List$1(Fdc3Position.$, 0);
1581
+ let b = new List$1(Fdc3Instrument.$, 0);
1582
+ let c = new List$1(String_$type, 0);
1583
+ let d = new List$1(String_$type, 0);
1584
+ if (contextType_ == "fdc3.instrument") {
1585
+ this.v.clear();
1586
+ arrayClear(this.stockPrices);
1587
+ let e = typeCast(Fdc3Instrument.$, msg_.context);
1588
+ b.add(e);
1589
+ let f = e.ticker;
1590
+ if (!c.contains(f)) {
1591
+ c.add(f);
1592
+ }
1593
+ let g = e.name;
1594
+ if (!d.contains(g)) {
1595
+ d.add(g);
1596
+ }
1597
+ }
1598
+ else if (contextType_ == "fdc3.instrumentList") {
1599
+ this.v.clear();
1600
+ arrayClear(this.stockPrices);
1601
+ let h = typeCast(Fdc3InstrumentList.$, msg_.context);
1602
+ b.o(h.instruments);
1603
+ let k = h.instruments;
1604
+ for (let j = 0; j < k.length; j++) {
1605
+ let i = k[j];
1606
+ let l = i.ticker;
1607
+ if (!c.contains(l)) {
1608
+ c.add(l);
1609
+ }
1610
+ let m = i.name;
1611
+ if (!d.contains(m)) {
1612
+ d.add(m);
1613
+ }
1614
+ }
1615
+ }
1616
+ else if (contextType_ == "fdc3.position") {
1617
+ let n = typeCast(Fdc3Position.$, msg_.context);
1618
+ a.add(n);
1619
+ let o = n.instrument.ticker;
1620
+ if (!c.contains(o)) {
1621
+ c.add(n.instrument.ticker);
1622
+ }
1623
+ let p = n.instrument.name;
1624
+ if (!d.contains(p)) {
1625
+ d.add(p);
1626
+ }
1627
+ }
1628
+ else if (contextType_ == "fdc3.portfolio") {
1629
+ this.x.clear();
1630
+ arrayClear(this.stockPositions);
1631
+ let q = typeCast(Fdc3Portfolio.$, msg_.context);
1632
+ a.o(q.positions);
1633
+ let t = q.positions;
1634
+ for (let s = 0; s < t.length; s++) {
1635
+ let r = t[s];
1636
+ let u = r.instrument.ticker;
1637
+ if (!c.contains(u)) {
1638
+ c.add(r.instrument.ticker);
1639
+ }
1640
+ let v = r.instrument.name;
1641
+ if (!d.contains(v)) {
1642
+ d.add(v);
1643
+ }
1644
+ }
1645
+ }
1646
+ msg_.tickerSymbols = this.f(String_$type, c);
1647
+ msg_.tickerNames = this.f(String_$type, d);
1648
+ this.log("HandleIntent tickerSymbols " + msg_.tickerSymbols);
1649
+ this.log("HandleIntent instrumentList " + b.count);
1650
+ this.log("HandleIntent positionList " + a.count);
1651
+ for (let w of fromEnum(b)) {
1652
+ let x = w.ticker;
1653
+ if (stringIsNullOrEmpty(x)) {
1654
+ continue;
1655
+ }
1656
+ let y = this.q(x);
1657
+ this.ao(x, y);
1658
+ }
1659
+ for (let z of fromEnum(a)) {
1660
+ let aa = z.instrument.ticker;
1661
+ if (stringIsNullOrEmpty(aa)) {
1662
+ continue;
1663
+ }
1664
+ let ab = this.p(aa);
1665
+ if (z.cost > 0) {
1666
+ ab.costPerShare = z.cost;
1667
+ }
1668
+ if (z.shares > 0) {
1669
+ ab.shares = z.shares;
1670
+ }
1671
+ if (z.price > 0) {
1672
+ ab.marketPrice = z.price;
1673
+ }
1674
+ this.an(aa, ab);
1675
+ }
1676
+ this.ba(msg_);
1677
+ }
1678
+ sendInstrument(a, b, c = "") {
1679
+ if (b == null) {
1680
+ return;
1681
+ }
1682
+ let d = Fdc3Converter.fromInstrument(b);
1683
+ this.bb(a, d, c);
1684
+ }
1685
+ sendInstrumentList(a, b, c = "") {
1686
+ if (b == null) {
1687
+ return;
1688
+ }
1689
+ let d = Fdc3Converter.fromInstrumentList(b);
1690
+ this.bb(a, d, c);
1691
+ }
1692
+ sendPosition(a, b, c = "") {
1693
+ if (b == null) {
1694
+ return;
1695
+ }
1696
+ let d = Fdc3Converter.fromPosition(b);
1697
+ this.bb(a, d, c);
1698
+ }
1699
+ sendPortfolio(a, b, c = "") {
1700
+ if (b == null) {
1701
+ return;
1702
+ }
1703
+ let d = Fdc3Converter.fromPortfolio(b);
1704
+ this.bb(a, d, c);
1705
+ }
1706
+ bb(intent_, context_, target_ = "") {
1707
+ if (!this.a5()) {
1708
+ return;
1709
+ }
1710
+ let raiseIntent_ = this._openFin.raiseIntent;
1711
+ this.log('Sending \'' + intent_ + '\' intent to \'' + target_ + '\' target');
1712
+ // calling OpenFin API:
1713
+ if (target_ == null || target_ === '') {
1714
+ raiseIntent_(intent_, context_); // send to all OpenFin apps
1715
+ }
1716
+ else {
1717
+ raiseIntent_(intent_, context_, target_); // send only to Target app
1718
+ }
1719
+ ;
1720
+ }
1721
+ get a4() {
1722
+ return this.a3;
1723
+ }
1724
+ set a4(a) {
1725
+ this.a3 = a;
1726
+ }
1727
+ a7(a) {
1728
+ this.a4 = true;
1729
+ }
1730
+ dispose() {
1731
+ this.a7(true);
1732
+ }
1733
+ }
1734
+ Fdc3DataAdapter.$t = /*@__PURE__*/ markType(Fdc3DataAdapter, 'Fdc3DataAdapter', FinancialDataAdapter.$, [IDisposable_$type]);
1735
+ return Fdc3DataAdapter;
1736
+ })();
1737
+
1738
+ /*
1739
+ THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
1740
+ https://www.infragistics.com/legal/license/igultimate-la
1741
+ https://www.infragistics.com/legal/license/igultimate-eula
1742
+ GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
1743
+ */
1744
+ /**
1745
+ * @hidden
1746
+ */
1747
+ let Randomizer = /*@__PURE__*/ (() => {
1748
+ class Randomizer extends Base {
1749
+ static d(a) {
1750
+ let b = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
1751
+ let c = "";
1752
+ for (let d = 0; d < a; d++) {
1753
+ let e = Randomizer.c.next1(b.length);
1754
+ c += b.charAt(e);
1755
+ }
1756
+ return c;
1757
+ }
1758
+ static b(a, b) {
1759
+ return Randomizer.c.next2(a, b);
1760
+ }
1761
+ static a(a) {
1762
+ let b = Math.pow(10, (a - 1));
1763
+ let c = 9 * b;
1764
+ return Randomizer.c.next2(truncate(b), truncate(c));
1765
+ }
1766
+ }
1767
+ Randomizer.$t = /*@__PURE__*/ markType(Randomizer, 'Randomizer');
1768
+ Randomizer.c = /*@__PURE__*/ new Random(0);
1769
+ return Randomizer;
1770
+ })();
1771
+
1772
+ export { Fdc3Contact, Fdc3ContactList, Fdc3Context, Fdc3ContextType, Fdc3ContextType_$type, Fdc3Converter, Fdc3DataAdapter, Fdc3Dictionary, Fdc3Instrument, Fdc3InstrumentList, Fdc3IntentType, Fdc3IntentType_$type, Fdc3Message, Fdc3Organization, Fdc3OrganizationList, Fdc3Portfolio, Fdc3Position, Fdc3Serializer, Fdc3Util, Randomizer };
1773
+ //# sourceMappingURL=igniteui-webcomponents-fdc3.js.map