aa-intel-tool 2.6.1__py3-none-any.whl → 2.6.2__py3-none-any.whl
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.
- aa_intel_tool/__init__.py +1 -1
- aa_intel_tool/helper/eve_character.py +24 -36
- aa_intel_tool/helper/static_files.py +2 -2
- aa_intel_tool/locale/cs_CZ/LC_MESSAGES/django.po +9 -9
- aa_intel_tool/locale/de/LC_MESSAGES/django.mo +0 -0
- aa_intel_tool/locale/de/LC_MESSAGES/django.po +13 -13
- aa_intel_tool/locale/django.pot +10 -10
- aa_intel_tool/locale/es/LC_MESSAGES/django.po +9 -9
- aa_intel_tool/locale/fr_FR/LC_MESSAGES/django.mo +0 -0
- aa_intel_tool/locale/fr_FR/LC_MESSAGES/django.po +13 -13
- aa_intel_tool/locale/it_IT/LC_MESSAGES/django.po +9 -9
- aa_intel_tool/locale/ja/LC_MESSAGES/django.po +9 -9
- aa_intel_tool/locale/ko_KR/LC_MESSAGES/django.po +9 -9
- aa_intel_tool/locale/nl_NL/LC_MESSAGES/django.po +9 -9
- aa_intel_tool/locale/pl_PL/LC_MESSAGES/django.po +9 -9
- aa_intel_tool/locale/ru/LC_MESSAGES/django.mo +0 -0
- aa_intel_tool/locale/ru/LC_MESSAGES/django.po +13 -13
- aa_intel_tool/locale/sk/LC_MESSAGES/django.po +9 -9
- aa_intel_tool/locale/uk/LC_MESSAGES/django.mo +0 -0
- aa_intel_tool/locale/uk/LC_MESSAGES/django.po +15 -15
- aa_intel_tool/locale/zh_Hans/LC_MESSAGES/django.po +9 -9
- aa_intel_tool/parser/general.py +11 -16
- aa_intel_tool/parser/helper/db.py +8 -11
- aa_intel_tool/parser/module/chatlist.py +97 -126
- aa_intel_tool/parser/module/dscan.py +115 -147
- aa_intel_tool/parser/module/fleetcomp.py +85 -102
- aa_intel_tool/static/aa_intel_tool/css/aa-intel-tool.css +6 -19
- aa_intel_tool/static/aa_intel_tool/css/aa-intel-tool.min.css +1 -1
- aa_intel_tool/static/aa_intel_tool/css/aa-intel-tool.min.css.map +1 -1
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-chatscan-highlight.js +104 -64
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-chatscan-highlight.min.js.map +1 -1
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-chatscan.js +2 -2
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-chatscan.min.js +1 -1
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-dscan-highlight.js +43 -43
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-dscan-highlight.min.js.map +1 -1
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-dscan.js +31 -7
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-dscan.min.js +1 -1
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-dscan.min.js.map +1 -1
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-fleetcomposition-highlight.js +51 -51
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-fleetcomposition-highlight.min.js.map +1 -1
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-fleetcomposition.js +9 -3
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-fleetcomposition.min.js +1 -1
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-fleetcomposition.min.js.map +1 -1
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-scan-result-common.js +53 -31
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-scan-result-common.min.js +1 -1
- aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-scan-result-common.min.js.map +1 -1
- aa_intel_tool/templates/aa_intel_tool/partials/scan/evetime.html +1 -1
- aa_intel_tool/tests/test-data/dscan.txt +250 -0
- aa_intel_tool/tests/test_admin.py +50 -38
- aa_intel_tool/tests/test_helper_eve_character.py +405 -0
- aa_intel_tool/tests/test_models.py +188 -4
- aa_intel_tool/tests/test_parser_general.py +771 -0
- aa_intel_tool/tests/test_parser_module_chatlist.py +154 -0
- {aa_intel_tool-2.6.1.dist-info → aa_intel_tool-2.6.2.dist-info}/METADATA +1 -1
- {aa_intel_tool-2.6.1.dist-info → aa_intel_tool-2.6.2.dist-info}/RECORD +57 -55
- aa_intel_tool/tests/test_parser.py +0 -135
- {aa_intel_tool-2.6.1.dist-info → aa_intel_tool-2.6.2.dist-info}/WHEEL +0 -0
- {aa_intel_tool-2.6.1.dist-info → aa_intel_tool-2.6.2.dist-info}/licenses/LICENSE +0 -0
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
--------------------------------------------------------------------------------- */
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* Determine if we can remove all sticky states for this corporation
|
|
8
|
+
* Determine if we can remove all sticky states for this corporation.
|
|
9
9
|
*
|
|
10
10
|
* @param element
|
|
11
11
|
* @returns {boolean}
|
|
@@ -24,7 +24,7 @@ const removeCorporationStickyComplete = (element) => {
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
|
-
* Determine if we can remove all sticky states for this alliance
|
|
27
|
+
* Determine if we can remove all sticky states for this alliance.
|
|
28
28
|
*
|
|
29
29
|
* @param element
|
|
30
30
|
* @returns {boolean}
|
|
@@ -45,6 +45,8 @@ const removeAllianceStickyComplete = (element) => {
|
|
|
45
45
|
/**
|
|
46
46
|
* Helper function
|
|
47
47
|
*
|
|
48
|
+
* Add a sticky highlight to the alliance table by alliance ID.
|
|
49
|
+
*
|
|
48
50
|
* @param element
|
|
49
51
|
*/
|
|
50
52
|
const allianceTableAddStickyByAllianceId = (element) => {
|
|
@@ -56,6 +58,8 @@ const allianceTableAddStickyByAllianceId = (element) => {
|
|
|
56
58
|
/**
|
|
57
59
|
* Helper function
|
|
58
60
|
*
|
|
61
|
+
* Add a highlight to the alliance table by alliance ID.
|
|
62
|
+
*
|
|
59
63
|
* @param element
|
|
60
64
|
*/
|
|
61
65
|
const allianceTableAddHighlightByAllianceId = (element) => {
|
|
@@ -67,6 +71,8 @@ const allianceTableAddHighlightByAllianceId = (element) => {
|
|
|
67
71
|
/**
|
|
68
72
|
* Helper function
|
|
69
73
|
*
|
|
74
|
+
* Remove a sticky highlight from the alliance table by alliance ID.
|
|
75
|
+
*
|
|
70
76
|
* @param element
|
|
71
77
|
*/
|
|
72
78
|
const allianceTableRemoveStickyByAllianceId = (element) => {
|
|
@@ -78,6 +84,8 @@ const allianceTableRemoveStickyByAllianceId = (element) => {
|
|
|
78
84
|
/**
|
|
79
85
|
* Helper function
|
|
80
86
|
*
|
|
87
|
+
* Remove a highlight from the alliance table by alliance ID.
|
|
88
|
+
*
|
|
81
89
|
* @param element
|
|
82
90
|
*/
|
|
83
91
|
const allianceTableRemoveHighlightByAllianceId = (element) => {
|
|
@@ -89,6 +97,8 @@ const allianceTableRemoveHighlightByAllianceId = (element) => {
|
|
|
89
97
|
/**
|
|
90
98
|
* Helper function
|
|
91
99
|
*
|
|
100
|
+
* Add a sticky highlight to the corporation table by corporation ID.
|
|
101
|
+
*
|
|
92
102
|
* @param element
|
|
93
103
|
*/
|
|
94
104
|
const corporationTableAddStickyByCorporationId = (element) => {
|
|
@@ -100,6 +110,8 @@ const corporationTableAddStickyByCorporationId = (element) => {
|
|
|
100
110
|
/**
|
|
101
111
|
* Helper function
|
|
102
112
|
*
|
|
113
|
+
* Add a highlight to the corporation table by corporation ID.
|
|
114
|
+
*
|
|
103
115
|
* @param element
|
|
104
116
|
*/
|
|
105
117
|
const corporationTableAddHighlightByCorporationId = (element) => {
|
|
@@ -111,6 +123,8 @@ const corporationTableAddHighlightByCorporationId = (element) => {
|
|
|
111
123
|
/**
|
|
112
124
|
* Helper function
|
|
113
125
|
*
|
|
126
|
+
* Add a sticky highlight to the corporation table by alliance ID.
|
|
127
|
+
*
|
|
114
128
|
* @param element
|
|
115
129
|
*/
|
|
116
130
|
const corporationTableAddStickyByAllianceId = (element) => {
|
|
@@ -122,6 +136,8 @@ const corporationTableAddStickyByAllianceId = (element) => {
|
|
|
122
136
|
/**
|
|
123
137
|
* Helper function
|
|
124
138
|
*
|
|
139
|
+
* Add a highlight to the corporation table by alliance ID.
|
|
140
|
+
*
|
|
125
141
|
* @param element
|
|
126
142
|
*/
|
|
127
143
|
const corporationTableAddHighlightByAllianceId = (element) => {
|
|
@@ -133,6 +149,8 @@ const corporationTableAddHighlightByAllianceId = (element) => {
|
|
|
133
149
|
/**
|
|
134
150
|
* Helper function
|
|
135
151
|
*
|
|
152
|
+
* Remove a sticky highlight from the corporation table by corporation ID.
|
|
153
|
+
*
|
|
136
154
|
* @param element
|
|
137
155
|
*/
|
|
138
156
|
const corporationTableRemoveStickyByCorporationId = (element) => {
|
|
@@ -144,6 +162,8 @@ const corporationTableRemoveStickyByCorporationId = (element) => {
|
|
|
144
162
|
/**
|
|
145
163
|
* Helper function
|
|
146
164
|
*
|
|
165
|
+
* Remove a highlight from the corporation table by corporation ID.
|
|
166
|
+
*
|
|
147
167
|
* @param element
|
|
148
168
|
*/
|
|
149
169
|
const corporationTableRemoveHighlightByCorporationId = (element) => {
|
|
@@ -155,6 +175,8 @@ const corporationTableRemoveHighlightByCorporationId = (element) => {
|
|
|
155
175
|
/**
|
|
156
176
|
* Helper function
|
|
157
177
|
*
|
|
178
|
+
* Remove a sticky highlight from the corporation table by alliance ID.
|
|
179
|
+
*
|
|
158
180
|
* @param element
|
|
159
181
|
*/
|
|
160
182
|
const corporationTableRemoveStickyByAllianceId = (element) => {
|
|
@@ -166,6 +188,8 @@ const corporationTableRemoveStickyByAllianceId = (element) => {
|
|
|
166
188
|
/**
|
|
167
189
|
* Helper function
|
|
168
190
|
*
|
|
191
|
+
* Remove a highlight from the corporation table by alliance ID.
|
|
192
|
+
*
|
|
169
193
|
* @param element
|
|
170
194
|
*/
|
|
171
195
|
const corporationTableRemoveHighlightByAllianceId = (element) => {
|
|
@@ -177,6 +201,8 @@ const corporationTableRemoveHighlightByAllianceId = (element) => {
|
|
|
177
201
|
/**
|
|
178
202
|
* Helper function
|
|
179
203
|
*
|
|
204
|
+
* Add a sticky highlight to the pilot table by corporation ID.
|
|
205
|
+
*
|
|
180
206
|
* @param element
|
|
181
207
|
*/
|
|
182
208
|
const pilotTableAddStickyByCorporationId = (element) => {
|
|
@@ -188,6 +214,8 @@ const pilotTableAddStickyByCorporationId = (element) => {
|
|
|
188
214
|
/**
|
|
189
215
|
* Helper function
|
|
190
216
|
*
|
|
217
|
+
* Add a highlight to the pilot table by corporation ID.
|
|
218
|
+
*
|
|
191
219
|
* @param element
|
|
192
220
|
*/
|
|
193
221
|
const pilotTableAddHighlightByCorporationId = (element) => {
|
|
@@ -199,6 +227,8 @@ const pilotTableAddHighlightByCorporationId = (element) => {
|
|
|
199
227
|
/**
|
|
200
228
|
* Helper function
|
|
201
229
|
*
|
|
230
|
+
* Add a sticky highlight to the pilot table by alliance ID.
|
|
231
|
+
*
|
|
202
232
|
* @param element
|
|
203
233
|
*/
|
|
204
234
|
const pilotTableAddStickyByAllianceId = (element) => {
|
|
@@ -210,6 +240,8 @@ const pilotTableAddStickyByAllianceId = (element) => {
|
|
|
210
240
|
/**
|
|
211
241
|
* Helper function
|
|
212
242
|
*
|
|
243
|
+
* Add a highlight to the pilot table by alliance ID.
|
|
244
|
+
*
|
|
213
245
|
* @param element
|
|
214
246
|
*/
|
|
215
247
|
const pilotTableAddHighlightByAllianceId = (element) => {
|
|
@@ -221,6 +253,8 @@ const pilotTableAddHighlightByAllianceId = (element) => {
|
|
|
221
253
|
/**
|
|
222
254
|
* Helper function
|
|
223
255
|
*
|
|
256
|
+
* Remove a sticky highlight from the pilot table by corporation ID.
|
|
257
|
+
*
|
|
224
258
|
* @param element
|
|
225
259
|
*/
|
|
226
260
|
const pilotTableRemoveStickyByCorporationId = (element) => {
|
|
@@ -232,6 +266,8 @@ const pilotTableRemoveStickyByCorporationId = (element) => {
|
|
|
232
266
|
/**
|
|
233
267
|
* Helper function
|
|
234
268
|
*
|
|
269
|
+
* Remove a highlight from the pilot table by corporation ID.
|
|
270
|
+
*
|
|
235
271
|
* @param element
|
|
236
272
|
*/
|
|
237
273
|
const pilotTableRemoveHighlightByCorporationId = (element) => {
|
|
@@ -243,6 +279,8 @@ const pilotTableRemoveHighlightByCorporationId = (element) => {
|
|
|
243
279
|
/**
|
|
244
280
|
* Helper function
|
|
245
281
|
*
|
|
282
|
+
* Add a sticky highlight to the pilot table by alliance ID.
|
|
283
|
+
*
|
|
246
284
|
* @param element
|
|
247
285
|
*/
|
|
248
286
|
const pilotTableRemoveStickyByAllianceId = (element) => {
|
|
@@ -254,6 +292,8 @@ const pilotTableRemoveStickyByAllianceId = (element) => {
|
|
|
254
292
|
/**
|
|
255
293
|
* Helper function
|
|
256
294
|
*
|
|
295
|
+
* Add a highlight to the pilot table by alliance ID.
|
|
296
|
+
*
|
|
257
297
|
* @param element
|
|
258
298
|
*/
|
|
259
299
|
const pilotTableRemoveHighlightByAllianceId = (element) => {
|
|
@@ -263,27 +303,27 @@ const pilotTableRemoveHighlightByAllianceId = (element) => {
|
|
|
263
303
|
|
|
264
304
|
|
|
265
305
|
/**
|
|
266
|
-
* Add highlight to other tables from alliance table
|
|
306
|
+
* Add a highlight to other tables from alliance table
|
|
267
307
|
*
|
|
268
|
-
* @param {string}
|
|
269
|
-
* @param {element}
|
|
308
|
+
* @param {string} byData The table data attribute for which this function is triggered
|
|
309
|
+
* @param {element} tableRow The table row that is to be changed
|
|
270
310
|
*/
|
|
271
|
-
const addChatscanHightlight = (
|
|
272
|
-
|
|
311
|
+
const addChatscanHightlight = (byData, tableRow) => { // eslint-disable-line no-unused-vars
|
|
312
|
+
tableRow.addClass('aa-intel-highlight');
|
|
273
313
|
|
|
274
|
-
if (
|
|
275
|
-
corporationTableAddHighlightByAllianceId(
|
|
276
|
-
pilotTableAddHighlightByAllianceId(
|
|
314
|
+
if (byData === 'alliance') {
|
|
315
|
+
corporationTableAddHighlightByAllianceId(tableRow);
|
|
316
|
+
pilotTableAddHighlightByAllianceId(tableRow);
|
|
277
317
|
}
|
|
278
318
|
|
|
279
|
-
if (
|
|
280
|
-
allianceTableAddHighlightByAllianceId(
|
|
281
|
-
pilotTableAddHighlightByCorporationId(
|
|
319
|
+
if (byData === 'corporation') {
|
|
320
|
+
allianceTableAddHighlightByAllianceId(tableRow);
|
|
321
|
+
pilotTableAddHighlightByCorporationId(tableRow);
|
|
282
322
|
}
|
|
283
323
|
|
|
284
|
-
if (
|
|
285
|
-
allianceTableAddHighlightByAllianceId(
|
|
286
|
-
corporationTableAddHighlightByCorporationId(
|
|
324
|
+
if (byData === 'pilot') {
|
|
325
|
+
allianceTableAddHighlightByAllianceId(tableRow);
|
|
326
|
+
corporationTableAddHighlightByCorporationId(tableRow);
|
|
287
327
|
}
|
|
288
328
|
};
|
|
289
329
|
|
|
@@ -291,25 +331,25 @@ const addChatscanHightlight = (by_data, table_row) => { // eslint-disable-line n
|
|
|
291
331
|
/**
|
|
292
332
|
* Add sticky highlight to other tables from alliance table
|
|
293
333
|
*
|
|
294
|
-
* @param {string}
|
|
295
|
-
* @param {element}
|
|
334
|
+
* @param {string} byData The table data attribute for which this function is triggered
|
|
335
|
+
* @param {element} tableRow The table row that is to be changed
|
|
296
336
|
*/
|
|
297
|
-
const addChatscanSticky = (
|
|
298
|
-
|
|
337
|
+
const addChatscanSticky = (byData, tableRow) => {
|
|
338
|
+
tableRow.addClass('aa-intel-highlight-sticky');
|
|
299
339
|
|
|
300
|
-
if (
|
|
301
|
-
corporationTableAddStickyByAllianceId(
|
|
302
|
-
pilotTableAddStickyByAllianceId(
|
|
340
|
+
if (byData === 'alliance') {
|
|
341
|
+
corporationTableAddStickyByAllianceId(tableRow);
|
|
342
|
+
pilotTableAddStickyByAllianceId(tableRow);
|
|
303
343
|
}
|
|
304
344
|
|
|
305
|
-
if (
|
|
306
|
-
allianceTableAddStickyByAllianceId(
|
|
307
|
-
pilotTableAddStickyByCorporationId(
|
|
345
|
+
if (byData === 'corporation') {
|
|
346
|
+
allianceTableAddStickyByAllianceId(tableRow);
|
|
347
|
+
pilotTableAddStickyByCorporationId(tableRow);
|
|
308
348
|
}
|
|
309
349
|
|
|
310
|
-
if (
|
|
311
|
-
allianceTableAddStickyByAllianceId(
|
|
312
|
-
corporationTableAddStickyByCorporationId(
|
|
350
|
+
if (byData === 'pilot') {
|
|
351
|
+
allianceTableAddStickyByAllianceId(tableRow);
|
|
352
|
+
corporationTableAddStickyByCorporationId(tableRow);
|
|
313
353
|
}
|
|
314
354
|
};
|
|
315
355
|
|
|
@@ -317,25 +357,25 @@ const addChatscanSticky = (by_data, table_row) => {
|
|
|
317
357
|
/**
|
|
318
358
|
* Remove highlight to other tables from alliance table
|
|
319
359
|
*
|
|
320
|
-
* @param {string}
|
|
321
|
-
* @param {element}
|
|
360
|
+
* @param {string} byData The table data attribute for which this function is triggered
|
|
361
|
+
* @param {element} tableRow The table row that is to be changed
|
|
322
362
|
*/
|
|
323
|
-
const removeChatscanHightlight = (
|
|
324
|
-
|
|
363
|
+
const removeChatscanHightlight = (byData, tableRow) => { // eslint-disable-line no-unused-vars
|
|
364
|
+
tableRow.removeClass('aa-intel-highlight');
|
|
325
365
|
|
|
326
|
-
if (
|
|
327
|
-
corporationTableRemoveHighlightByAllianceId(
|
|
328
|
-
pilotTableRemoveHighlightByAllianceId(
|
|
366
|
+
if (byData === 'alliance') {
|
|
367
|
+
corporationTableRemoveHighlightByAllianceId(tableRow);
|
|
368
|
+
pilotTableRemoveHighlightByAllianceId(tableRow);
|
|
329
369
|
}
|
|
330
370
|
|
|
331
|
-
if (
|
|
332
|
-
allianceTableRemoveHighlightByAllianceId(
|
|
333
|
-
pilotTableRemoveHighlightByCorporationId(
|
|
371
|
+
if (byData === 'corporation') {
|
|
372
|
+
allianceTableRemoveHighlightByAllianceId(tableRow);
|
|
373
|
+
pilotTableRemoveHighlightByCorporationId(tableRow);
|
|
334
374
|
}
|
|
335
375
|
|
|
336
|
-
if (
|
|
337
|
-
allianceTableRemoveHighlightByAllianceId(
|
|
338
|
-
corporationTableRemoveHighlightByCorporationId(
|
|
376
|
+
if (byData === 'pilot') {
|
|
377
|
+
allianceTableRemoveHighlightByAllianceId(tableRow);
|
|
378
|
+
corporationTableRemoveHighlightByCorporationId(tableRow);
|
|
339
379
|
}
|
|
340
380
|
};
|
|
341
381
|
|
|
@@ -343,32 +383,32 @@ const removeChatscanHightlight = (by_data, table_row) => { // eslint-disable-lin
|
|
|
343
383
|
/**
|
|
344
384
|
* Remove sticky highlight to other tables from alliance table
|
|
345
385
|
*
|
|
346
|
-
* @param {string}
|
|
347
|
-
* @param {element}
|
|
386
|
+
* @param {string} byData The table data attribute for which this function is triggered
|
|
387
|
+
* @param {element} tableRow The table row that is to be changed
|
|
348
388
|
*/
|
|
349
|
-
const removeChatscanSticky = (
|
|
350
|
-
|
|
389
|
+
const removeChatscanSticky = (byData, tableRow) => {
|
|
390
|
+
tableRow.removeClass('aa-intel-highlight-sticky');
|
|
351
391
|
|
|
352
|
-
if (
|
|
353
|
-
corporationTableRemoveStickyByAllianceId(
|
|
354
|
-
pilotTableRemoveStickyByAllianceId(
|
|
392
|
+
if (byData === 'alliance') {
|
|
393
|
+
corporationTableRemoveStickyByAllianceId(tableRow);
|
|
394
|
+
pilotTableRemoveStickyByAllianceId(tableRow);
|
|
355
395
|
}
|
|
356
396
|
|
|
357
|
-
if (
|
|
358
|
-
pilotTableRemoveStickyByCorporationId(
|
|
397
|
+
if (byData === 'corporation') {
|
|
398
|
+
pilotTableRemoveStickyByCorporationId(tableRow);
|
|
359
399
|
|
|
360
|
-
if (removeAllianceStickyComplete(
|
|
361
|
-
allianceTableRemoveStickyByAllianceId(
|
|
400
|
+
if (removeAllianceStickyComplete(tableRow) === true) {
|
|
401
|
+
allianceTableRemoveStickyByAllianceId(tableRow);
|
|
362
402
|
}
|
|
363
403
|
}
|
|
364
404
|
|
|
365
|
-
if (
|
|
366
|
-
if (removeCorporationStickyComplete(
|
|
367
|
-
corporationTableRemoveStickyByCorporationId(
|
|
405
|
+
if (byData === 'pilot') {
|
|
406
|
+
if (removeCorporationStickyComplete(tableRow) === true) {
|
|
407
|
+
corporationTableRemoveStickyByCorporationId(tableRow);
|
|
368
408
|
}
|
|
369
409
|
|
|
370
|
-
if (removeAllianceStickyComplete(
|
|
371
|
-
allianceTableRemoveStickyByAllianceId(
|
|
410
|
+
if (removeAllianceStickyComplete(tableRow) === true) {
|
|
411
|
+
allianceTableRemoveStickyByAllianceId(tableRow);
|
|
372
412
|
}
|
|
373
413
|
}
|
|
374
414
|
};
|
|
@@ -377,13 +417,13 @@ const removeChatscanSticky = (by_data, table_row) => {
|
|
|
377
417
|
/**
|
|
378
418
|
* Change the status of the sticky highlight
|
|
379
419
|
*
|
|
380
|
-
* @param {string}
|
|
381
|
-
* @param {element}
|
|
420
|
+
* @param {string} byData The table data attribute for which this function is triggered
|
|
421
|
+
* @param {element} tableRow The table row that is to be changed
|
|
382
422
|
*/
|
|
383
|
-
const changeChatscanStickyHighlight = (
|
|
384
|
-
if (
|
|
385
|
-
removeChatscanSticky(
|
|
423
|
+
const changeChatscanStickyHighlight = (byData, tableRow) => { // eslint-disable-line no-unused-vars
|
|
424
|
+
if (tableRow.hasClass('aa-intel-highlight-sticky')) {
|
|
425
|
+
removeChatscanSticky(byData, tableRow);
|
|
386
426
|
} else {
|
|
387
|
-
addChatscanSticky(
|
|
427
|
+
addChatscanSticky(byData, tableRow);
|
|
388
428
|
}
|
|
389
429
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["aa-intel-tool-chatscan-highlight.js"],"names":["removeCorporationStickyComplete","let","removeCorporationSticky","$","element","data","each","i","el","hasClass","removeAllianceStickyComplete","removeAllianceSticky","allianceTableAddStickyByAllianceId","addClass","allianceTableAddHighlightByAllianceId","allianceTableRemoveStickyByAllianceId","removeClass","allianceTableRemoveHighlightByAllianceId","corporationTableAddStickyByCorporationId","corporationTableAddHighlightByCorporationId","corporationTableAddStickyByAllianceId","corporationTableAddHighlightByAllianceId","corporationTableRemoveStickyByCorporationId","corporationTableRemoveHighlightByCorporationId","corporationTableRemoveStickyByAllianceId","corporationTableRemoveHighlightByAllianceId","pilotTableAddStickyByCorporationId","pilotTableAddHighlightByCorporationId","pilotTableAddStickyByAllianceId","pilotTableAddHighlightByAllianceId","pilotTableRemoveStickyByCorporationId","pilotTableRemoveHighlightByCorporationId","pilotTableRemoveStickyByAllianceId","pilotTableRemoveHighlightByAllianceId","addChatscanHightlight","
|
|
1
|
+
{"version":3,"sources":["aa-intel-tool-chatscan-highlight.js"],"names":["removeCorporationStickyComplete","let","removeCorporationSticky","$","element","data","each","i","el","hasClass","removeAllianceStickyComplete","removeAllianceSticky","allianceTableAddStickyByAllianceId","addClass","allianceTableAddHighlightByAllianceId","allianceTableRemoveStickyByAllianceId","removeClass","allianceTableRemoveHighlightByAllianceId","corporationTableAddStickyByCorporationId","corporationTableAddHighlightByCorporationId","corporationTableAddStickyByAllianceId","corporationTableAddHighlightByAllianceId","corporationTableRemoveStickyByCorporationId","corporationTableRemoveHighlightByCorporationId","corporationTableRemoveStickyByAllianceId","corporationTableRemoveHighlightByAllianceId","pilotTableAddStickyByCorporationId","pilotTableAddHighlightByCorporationId","pilotTableAddStickyByAllianceId","pilotTableAddHighlightByAllianceId","pilotTableRemoveStickyByCorporationId","pilotTableRemoveHighlightByCorporationId","pilotTableRemoveStickyByAllianceId","pilotTableRemoveHighlightByAllianceId","addChatscanHightlight","byData","tableRow","addChatscanSticky","removeChatscanHightlight","removeChatscanSticky","changeChatscanStickyHighlight"],"mappings":"AAYA,MAAMA,gCAAkC,IACpCC,IAAIC,EAA0B,CAAA,EAQ9B,OANAC,qEAAqEC,EAAQC,KAAK,eAAe,KAAK,EAAEC,KAAK,CAACC,EAAGC,KACzGL,EAAEK,CAAE,EAAEC,SAAS,2BAA2B,IAC1CP,EAA0B,CAAA,EAElC,CAAC,EAEMA,CACX,EASMQ,6BAA+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ClB,yCAAyCkB,CAAQ,EAEzD,EASME,yBAA2B,CAACH,EAAQC,KACtCA,EAASpB,YAAY,oBAAoB,EAE1B,aAAXmB,IACAV,4CAA4CW,CAAQ,EACpDH,sCAAsCG,CAAQ,GAGnC,gBAAXD,IACAlB,yCAAyCmB,CAAQ,EACjDL,yCAAyCK,CAAQ,GAGtC,UAAXD,IACAlB,yCAAyCmB,CAAQ,EACjDb,+CAA+Ca,CAAQ,EAE/D,EASMG,qBAAuB,CAACJ,EAAQC,KAClCA,EAASpB,YAAY,2BAA2B,EAEjC,aAAXmB,IACAX,yCAAyCY,CAAQ,EACjDJ,mCAAmCI,CAAQ,GAGhC,gBAAXD,IACAL,sCAAsCM,CAAQ,EAEC,CAAA,IAA3C1B,6BAA6B0B,CAAQ,IACrCrB,sCAAsCqB,CAAQ,EAIvC,UAAXD,IACkD,CAAA,IAA9CnC,gCAAgCoC,CAAQ,GACxCd,4CAA4Cc,CAAQ,EAGT,CAAA,IAA3C1B,6BAA6B0B,CAAQ,IACrCrB,sCAAsCqB,CAAQ,CAG1D,EASMI,8BAAgC,CAACL,EAAQC,MACvCA,EAAS3B,SAAS,2BAA2B,EAC7C8B,qBAEAF,mBAFqBF,EAAQC,CAAQ,CAI7C"}
|
|
@@ -60,7 +60,7 @@ $(() => {
|
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
62
|
targets: 1,
|
|
63
|
-
width:
|
|
63
|
+
width: 35,
|
|
64
64
|
createdCell: (td) => {
|
|
65
65
|
$(td).addClass('text-end');
|
|
66
66
|
}
|
|
@@ -164,7 +164,7 @@ $(() => {
|
|
|
164
164
|
},
|
|
165
165
|
{
|
|
166
166
|
targets: 1,
|
|
167
|
-
width:
|
|
167
|
+
width: 35,
|
|
168
168
|
createdCell: (td) => {
|
|
169
169
|
$(td).addClass('text-end');
|
|
170
170
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
$(()=>{const t=$("table.aa-intel-pilot-participation-list"),i=$("table.aa-intel-corporation-participation-list"),e=$("table.aa-intel-alliance-participation-list"),l=$("span#aa-intel-pilots-count"),o=$("span#aa-intel-corporations-count"),n=$("span#aa-intel-alliances-count");fetchAjaxData(aaIntelToolJsSettings.url.getAllianceList).then(a=>{a&&($("div.aa-intel-loading-table-info-alliance-participation-list").addClass("d-none"),0===Object.keys(a).length?$("div.aa-intel-empty-table-info-alliance-participation-list").removeClass("d-none"):($("div.table-local-scan-alliances").removeClass("d-none"),e.DataTable({data:a,paging:!1,language:aaIntelToolJsSettings.language.dataTables,lengthChange:!1,dom:"<'row'<'col-sm-12'f>><'row'<'col-sm-12'tr>><'row'<'col-sm-12'i>>",columns:[{data:a=>allianceInfoPanel(a)},{data:"count"},{data:"ticker"}],order:[[1,"desc"]],columnDefs:[{targets:0,createdCell:a=>{$(a).addClass("text-ellipsis fix-eve-image-position")}},{targets:1,width:
|
|
1
|
+
$(()=>{const t=$("table.aa-intel-pilot-participation-list"),i=$("table.aa-intel-corporation-participation-list"),e=$("table.aa-intel-alliance-participation-list"),l=$("span#aa-intel-pilots-count"),o=$("span#aa-intel-corporations-count"),n=$("span#aa-intel-alliances-count");fetchAjaxData(aaIntelToolJsSettings.url.getAllianceList).then(a=>{a&&($("div.aa-intel-loading-table-info-alliance-participation-list").addClass("d-none"),0===Object.keys(a).length?$("div.aa-intel-empty-table-info-alliance-participation-list").removeClass("d-none"):($("div.table-local-scan-alliances").removeClass("d-none"),e.DataTable({data:a,paging:!1,language:aaIntelToolJsSettings.language.dataTables,lengthChange:!1,dom:"<'row'<'col-sm-12'f>><'row'<'col-sm-12'tr>><'row'<'col-sm-12'i>>",columns:[{data:a=>allianceInfoPanel(a)},{data:"count"},{data:"ticker"}],order:[[1,"desc"]],columnDefs:[{targets:0,createdCell:a=>{$(a).addClass("text-ellipsis fix-eve-image-position")}},{targets:1,width:35,createdCell:a=>{$(a).addClass("text-end")}},{targets:2,visible:!1}],createdRow:(i,a)=>{const t=n.html();let e;1!==a.id&&(e=parseInt(t)+1),n.html(e),$(i).addClass(`aa-intel-alliance-participation-item aa-intel-alliance-id-${a.id}`).attr("data-alliance-id",a.id),$(i).mouseenter(()=>{addChatscanHightlight("alliance",$(i))}).mouseleave(()=>{removeChatscanHightlight("alliance",$(i))}),$(i).click(a=>{const t=$(a.target);t.hasClass("aa-intel-information-link")?a.stopPropagation():changeChatscanStickyHighlight("alliance",$(i))})}})))}).then(()=>{bootstrapTooltip(".aa-intel-alliance-participation-list")}),fetchAjaxData(aaIntelToolJsSettings.url.getCorporationList).then(a=>{a&&($("div.aa-intel-loading-table-info-corporation-participation-list").addClass("d-none"),0===Object.keys(a).length?$("div.aa-intel-empty-table-info-corporation-participation-list").removeClass("d-none"):($("div.table-local-scan-corporations").removeClass("d-none"),i.DataTable({data:a,paging:!1,language:aaIntelToolJsSettings.language.dataTables,lengthChange:!1,dom:"<'row'<'col-sm-12'f>><'row'<'col-sm-12'tr>><'row'<'col-sm-12'i>>",columns:[{data:a=>corporationInfoPanel(a)},{data:"count"},{data:"ticker"},{data:"alliance.name"},{data:"alliance.ticker"}],order:[[1,"desc"]],columnDefs:[{targets:0,createdCell:a=>{$(a).addClass("text-ellipsis fix-eve-image-position")}},{targets:1,width:35,createdCell:a=>{$(a).addClass("text-end")}},{targets:[2,3,4],visible:!1}],createdRow:(i,a)=>{const t=o.html(),e=parseInt(t)+1;o.html(e),$(i).addClass(`aa-intel-corporation-participation-item aa-intel-corporation-id-${a.id}`).attr("data-corporation-id",a.id).attr("data-alliance-id",a.alliance.id),$(i).mouseenter(()=>{addChatscanHightlight("corporation",$(i))}).mouseleave(()=>{removeChatscanHightlight("corporation",$(i))}),$(i).click(a=>{const t=$(a.target);t.hasClass("aa-intel-information-link")?a.stopPropagation():changeChatscanStickyHighlight("corporation",$(i))})}})))}).then(()=>{bootstrapTooltip(".aa-intel-corporation-participation-list")}),fetchAjaxData(aaIntelToolJsSettings.url.getPilotList).then(a=>{a&&($("div.aa-intel-loading-table-info-pilot-participation-list").addClass("d-none"),0===Object.keys(a).length?$("div.aa-intel-empty-table-info-pilot-participation-list").removeClass("d-none"):($("div.table-local-scan-pilots").removeClass("d-none"),t.DataTable({data:a,paging:!1,language:aaIntelToolJsSettings.language.dataTables,lengthChange:!1,dom:"<'row'<'col-sm-12'f>><'row'<'col-sm-12'tr>><'row'<'col-sm-12'i>>",columns:[{data:a=>pilotInfoPanel(a)},{data:a=>allianceInfoPanel(a.alliance,!0)+a.alliance.ticker},{data:a=>corporationInfoPanel(a.corporation,!0)+a.corporation.ticker},{data:"alliance.name"},{data:"corporation.name"}],order:[[0,"asc"]],columnDefs:[{targets:0,createdCell:a=>{$(a).addClass("text-ellipsis fix-eve-image-position")}},{targets:1,width:125},{targets:2,width:125},{targets:[3,4],visible:!1}],createdRow:(i,a)=>{const t=l.html(),e=parseInt(t)+1;l.html(e),$(i).addClass(`aa-intel-corporation-participation-item aa-intel-corporation-id-${a.id}`).attr("data-character-id",a.id).attr("data-corporation-id",a.corporation.id).attr("data-alliance-id",a.alliance.id),$(i).mouseenter(()=>{addChatscanHightlight("pilot",$(i))}).mouseleave(()=>{removeChatscanHightlight("pilot",$(i))}),$(i).click(a=>{const t=$(a.target);t.hasClass("aa-intel-information-link")?a.stopPropagation():changeChatscanStickyHighlight("pilot",$(i))})}})))}).then(()=>{bootstrapTooltip(".aa-intel-pilot-participation-list")})});
|
|
2
2
|
//# sourceMappingURL=aa-intel-tool-chatscan.min.js.map
|
|
@@ -11,17 +11,17 @@ const elementShipTypeTable = $('table.aa-intel-dscan-ship-types');
|
|
|
11
11
|
/**
|
|
12
12
|
* Determine if we can remove all sticky states for this corporation
|
|
13
13
|
*
|
|
14
|
-
* @param {string}
|
|
15
|
-
* @param {element}
|
|
14
|
+
* @param {string} byData The table data attribute for which this function is triggered
|
|
15
|
+
* @param {element} tableRow The table row that is to be changed
|
|
16
16
|
* @returns {boolean}
|
|
17
17
|
*/
|
|
18
|
-
const removeDscanShiptypeStickyComplete = (
|
|
18
|
+
const removeDscanShiptypeStickyComplete = (byData, tableRow) => {
|
|
19
19
|
let removeSticky = true;
|
|
20
20
|
|
|
21
|
-
elementShipClassTable.find(`tr[data-shiptype-id="${
|
|
22
|
-
if (
|
|
21
|
+
elementShipClassTable.find(`tr[data-shiptype-id="${tableRow.data('shiptype-id')}"]`).each((i, el) => {
|
|
22
|
+
if (byData === 'shiptype' && !$(el).hasClass('aa-intel-highlight-sticky')) {
|
|
23
23
|
removeSticky = false;
|
|
24
|
-
} else if (
|
|
24
|
+
} else if (byData === 'shipclass' && $(el).hasClass('aa-intel-highlight-sticky')) {
|
|
25
25
|
removeSticky = false;
|
|
26
26
|
}
|
|
27
27
|
});
|
|
@@ -33,16 +33,16 @@ const removeDscanShiptypeStickyComplete = (by_data, table_row) => {
|
|
|
33
33
|
/**
|
|
34
34
|
* Add highlight to other tables
|
|
35
35
|
*
|
|
36
|
-
* @param {string}
|
|
37
|
-
* @param {element}
|
|
36
|
+
* @param {string} byData The table data attribute for which this function is triggered
|
|
37
|
+
* @param {element} tableRow The table row that is to be changed
|
|
38
38
|
*/
|
|
39
|
-
const addDscanHightlight = (
|
|
39
|
+
const addDscanHightlight = (byData, tableRow) => { // eslint-disable-line no-unused-vars
|
|
40
40
|
elementShipClassTable
|
|
41
|
-
.find(`tr[data-${
|
|
41
|
+
.find(`tr[data-${byData}-id="${tableRow.data(`${byData}-id`)}"]`)
|
|
42
42
|
.addClass('aa-intel-highlight');
|
|
43
43
|
|
|
44
44
|
elementShipTypeTable
|
|
45
|
-
.find(`tr[data-shiptype-id="${
|
|
45
|
+
.find(`tr[data-shiptype-id="${tableRow.data('shiptype-id')}"]`)
|
|
46
46
|
.addClass('aa-intel-highlight');
|
|
47
47
|
};
|
|
48
48
|
|
|
@@ -50,16 +50,16 @@ const addDscanHightlight = (by_data, table_row) => { // eslint-disable-line no-u
|
|
|
50
50
|
/**
|
|
51
51
|
* Add highlight to other tables
|
|
52
52
|
*
|
|
53
|
-
* @param {string}
|
|
54
|
-
* @param {element}
|
|
53
|
+
* @param {string} byData The table data attribute for which this function is triggered
|
|
54
|
+
* @param {element} tableRow The table row that is to be changed
|
|
55
55
|
*/
|
|
56
|
-
const removeDscanHightlight = (
|
|
56
|
+
const removeDscanHightlight = (byData, tableRow) => { // eslint-disable-line no-unused-vars
|
|
57
57
|
elementShipClassTable
|
|
58
|
-
.find(`tr[data-${
|
|
58
|
+
.find(`tr[data-${byData}-id="${tableRow.data(`${byData}-id`)}"]`)
|
|
59
59
|
.removeClass('aa-intel-highlight');
|
|
60
60
|
|
|
61
61
|
elementShipTypeTable
|
|
62
|
-
.find(`tr[data-shiptype-id="${
|
|
62
|
+
.find(`tr[data-shiptype-id="${tableRow.data('shiptype-id')}"]`)
|
|
63
63
|
.removeClass('aa-intel-highlight');
|
|
64
64
|
};
|
|
65
65
|
|
|
@@ -67,25 +67,25 @@ const removeDscanHightlight = (by_data, table_row) => { // eslint-disable-line n
|
|
|
67
67
|
/**
|
|
68
68
|
* Add sticky highlight to other tables
|
|
69
69
|
*
|
|
70
|
-
* @param {string}
|
|
71
|
-
* @param {element}
|
|
70
|
+
* @param {string} byData The table data attribute for which this function is triggered
|
|
71
|
+
* @param {element} tableRow The table row that is to be changed
|
|
72
72
|
*/
|
|
73
|
-
const addDscanSticky = (
|
|
74
|
-
|
|
73
|
+
const addDscanSticky = (byData, tableRow) => {
|
|
74
|
+
tableRow.addClass('aa-intel-highlight-sticky');
|
|
75
75
|
|
|
76
|
-
if (
|
|
76
|
+
if (byData === 'shiptype') {
|
|
77
77
|
elementShipClassTable
|
|
78
|
-
.find(`tr[data-shiptype-id="${
|
|
78
|
+
.find(`tr[data-shiptype-id="${tableRow.data('shiptype-id')}"]`)
|
|
79
79
|
.addClass('aa-intel-highlight-sticky');
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
if (
|
|
82
|
+
if (byData === 'shipclass') {
|
|
83
83
|
elementShipClassTable
|
|
84
|
-
.find(`tr[data-shipclass-id="${
|
|
84
|
+
.find(`tr[data-shipclass-id="${tableRow.data('shipclass-id')}"]`)
|
|
85
85
|
.addClass('aa-intel-highlight-sticky');
|
|
86
86
|
|
|
87
87
|
elementShipTypeTable
|
|
88
|
-
.find(`tr[data-shiptype-id="${
|
|
88
|
+
.find(`tr[data-shiptype-id="${tableRow.data('shiptype-id')}"]`)
|
|
89
89
|
.addClass('aa-intel-highlight-sticky');
|
|
90
90
|
}
|
|
91
91
|
};
|
|
@@ -94,26 +94,26 @@ const addDscanSticky = (by_data, table_row) => {
|
|
|
94
94
|
/**
|
|
95
95
|
* Remove sticky highlight to other tables
|
|
96
96
|
*
|
|
97
|
-
* @param {string}
|
|
98
|
-
* @param {element}
|
|
97
|
+
* @param {string} byData The table data attribute for which this function is triggered
|
|
98
|
+
* @param {element} tableRow The table row that is to be changed
|
|
99
99
|
*/
|
|
100
|
-
const removeDscanSticky = (
|
|
101
|
-
|
|
100
|
+
const removeDscanSticky = (byData, tableRow) => {
|
|
101
|
+
tableRow.removeClass('aa-intel-highlight-sticky');
|
|
102
102
|
|
|
103
|
-
if (
|
|
103
|
+
if (byData === 'shiptype') {
|
|
104
104
|
elementShipClassTable
|
|
105
|
-
.find(`tr[data-shiptype-id="${
|
|
105
|
+
.find(`tr[data-shiptype-id="${tableRow.data('shiptype-id')}"]`)
|
|
106
106
|
.removeClass('aa-intel-highlight-sticky');
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
if (
|
|
109
|
+
if (byData === 'shipclass') {
|
|
110
110
|
elementShipClassTable
|
|
111
|
-
.find(`tr[data-shipclass-id="${
|
|
111
|
+
.find(`tr[data-shipclass-id="${tableRow.data('shipclass-id')}"]`)
|
|
112
112
|
.removeClass('aa-intel-highlight-sticky');
|
|
113
113
|
|
|
114
|
-
if (removeDscanShiptypeStickyComplete(
|
|
114
|
+
if (removeDscanShiptypeStickyComplete(byData, tableRow) === true) {
|
|
115
115
|
elementShipTypeTable
|
|
116
|
-
.find(`tr[data-shiptype-id="${
|
|
116
|
+
.find(`tr[data-shiptype-id="${tableRow.data('shiptype-id')}"]`)
|
|
117
117
|
.removeClass('aa-intel-highlight-sticky');
|
|
118
118
|
}
|
|
119
119
|
}
|
|
@@ -123,18 +123,18 @@ const removeDscanSticky = (by_data, table_row) => {
|
|
|
123
123
|
/**
|
|
124
124
|
* Change the status of the sticky highlight
|
|
125
125
|
*
|
|
126
|
-
* @param {string}
|
|
127
|
-
* @param {element}
|
|
126
|
+
* @param {string} byData The table data attribute for which this function is triggered
|
|
127
|
+
* @param {element} tableRow The table row that is to be changed
|
|
128
128
|
*/
|
|
129
|
-
const changeDscanStickyHighlight = (
|
|
129
|
+
const changeDscanStickyHighlight = (byData, tableRow) => { // eslint-disable-line no-unused-vars
|
|
130
130
|
if (
|
|
131
131
|
(
|
|
132
|
-
|
|
133
|
-
&& removeDscanShiptypeStickyComplete(
|
|
134
|
-
) || (
|
|
132
|
+
byData === 'shiptype' && tableRow.hasClass('aa-intel-highlight-sticky') === true
|
|
133
|
+
&& removeDscanShiptypeStickyComplete(byData, tableRow) === true
|
|
134
|
+
) || (byData === 'shipclass' && tableRow.hasClass('aa-intel-highlight-sticky') === true)
|
|
135
135
|
) {
|
|
136
|
-
removeDscanSticky(
|
|
136
|
+
removeDscanSticky(byData, tableRow);
|
|
137
137
|
} else {
|
|
138
|
-
addDscanSticky(
|
|
138
|
+
addDscanSticky(byData, tableRow);
|
|
139
139
|
}
|
|
140
140
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["aa-intel-tool-dscan-highlight.js"],"names":["elementShipClassTable","$","elementShipTypeTable","removeDscanShiptypeStickyComplete","
|
|
1
|
+
{"version":3,"sources":["aa-intel-tool-dscan-highlight.js"],"names":["elementShipClassTable","$","elementShipTypeTable","removeDscanShiptypeStickyComplete","byData","tableRow","let","removeSticky","find","data","each","i","el","hasClass","addDscanHightlight","addClass","removeDscanHightlight","removeClass","addDscanSticky","removeDscanSticky","changeDscanStickyHighlight"],"mappings":"AAMA,MAAMA,sBAAwBC,E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