mftsccs-browser 1.1.63-beta → 1.1.65-beta

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.
@@ -32,7 +32,7 @@ class AccessTracker {
32
32
  try {
33
33
  if (conceptId) {
34
34
  this.conceptsData[conceptId] = (this.conceptsData[conceptId] || 0) + 1;
35
- this.saveDataToLocalStorage();
35
+ // this.saveDataToLocalStorage()
36
36
  }
37
37
  }
38
38
  catch (error) {
@@ -46,7 +46,7 @@ class AccessTracker {
46
46
  try {
47
47
  if (connectionId) {
48
48
  this.connectionsData[connectionId] = (this.connectionsData[connectionId] || 0) + 1;
49
- this.saveDataToLocalStorage();
49
+ // this.saveDataToLocalStorage()
50
50
  }
51
51
  }
52
52
  catch (error) {
@@ -96,6 +96,8 @@ class AccessTracker {
96
96
  return __awaiter(this, void 0, void 0, function* () {
97
97
  try {
98
98
  const accessToken = _DataStructures_Security_TokenStorage__WEBPACK_IMPORTED_MODULE_1__.TokenStorage.BearerAccessToken;
99
+ if (!accessToken)
100
+ return;
99
101
  yield this.syncToServer(accessToken);
100
102
  }
101
103
  catch (error) {
@@ -134,7 +136,8 @@ class AccessTracker {
134
136
  this.conceptsData = {};
135
137
  this.connectionsData = {};
136
138
  this.setNextSyncTime();
137
- localStorage === null || localStorage === void 0 ? void 0 : localStorage.removeItem(this.accessData);
139
+ console.log("Access Tracker Sent to SERVER..", conceptsToSend, connectionsToSend);
140
+ // localStorage?.removeItem(this.accessData)
138
141
  }
139
142
  catch (error) {
140
143
  console.error('Sync error:', error);
@@ -159,12 +162,12 @@ class AccessTracker {
159
162
  }
160
163
  setInterval(() => {
161
164
  const currentTime = Date.now();
162
- console.log(`[CHECK] Current Time: ${new Date(currentTime).toISOString()}`);
163
- if (currentTime >= this.nextSyncTime) {
165
+ // console.log(`[CHECK] Current Time: ${new Date(currentTime).toISOString()}`);
166
+ if (this.nextSyncTime && currentTime >= this.nextSyncTime) {
164
167
  // console.log(`[SYNC TRIGGER] Time to sync! Triggering sync at: ${new Date(currentTime).toISOString()}`);
165
168
  this.syncNow().catch(console.error);
166
169
  }
167
- }, 30000); // Check every 30 Seconds
170
+ }, 60000); // Check every 60 Seconds
168
171
  }
169
172
  /**
170
173
  * Sync immediately (called by setInterval when time to sync has arrived).
@@ -292,8 +295,9 @@ class AccessTracker {
292
295
  _a = AccessTracker;
293
296
  AccessTracker.conceptsData = {};
294
297
  AccessTracker.connectionsData = {};
295
- AccessTracker.SYNC_INTERVAL_MS = 60 * 1000; // 60 Sec
298
+ AccessTracker.SYNC_INTERVAL_MS = 120 * 1000; // 120 Sec
296
299
  AccessTracker.nextSyncTime = Date.now();
300
+ AccessTracker.activateStatus = false;
297
301
  AccessTracker.accessData = "Access Data";
298
302
  (() => {
299
303
  // console.log(`[INIT] Next Sync Time set to: ${new Date(this.nextSyncTime).toLocaleString()}`);
@@ -1452,9 +1456,14 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
1452
1456
  function GetAllConnectionsOfCompositionBulk() {
1453
1457
  return __awaiter(this, arguments, void 0, function* (composition_ids = []) {
1454
1458
  if (_app__WEBPACK_IMPORTED_MODULE_7__.serviceWorker) {
1455
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_7__.sendMessage)('GetAllConnectionsOfCompositionBulk', { composition_ids });
1456
- // console.log('data received from sw', res)
1457
- return res.data;
1459
+ try {
1460
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_7__.sendMessage)('GetAllConnectionsOfCompositionBulk', { composition_ids });
1461
+ return res.data;
1462
+ }
1463
+ catch (error) {
1464
+ console.error('GetAllConnectionsOfCompositionBulk sw error: ', error);
1465
+ (0,_app__WEBPACK_IMPORTED_MODULE_7__.handleServiceWorkerException)(error);
1466
+ }
1458
1467
  }
1459
1468
  var connectionList = [];
1460
1469
  var conceptList = [];
@@ -1662,21 +1671,26 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
1662
1671
 
1663
1672
  function GetCompositionConnectionsBetweenTwoConcepts(ofConceptId, toConcept, mainKey) {
1664
1673
  return __awaiter(this, void 0, void 0, function* () {
1665
- if (_app__WEBPACK_IMPORTED_MODULE_3__.serviceWorker) {
1666
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_3__.sendMessage)('GetCompositionConnectionsBetweenTwoConcepts', { ofConceptId, toConcept, mainKey });
1667
- // console.log('data received from sw', res)
1668
- return res.data;
1669
- }
1670
1674
  var connectionList = [];
1671
1675
  try {
1676
+ if (_app__WEBPACK_IMPORTED_MODULE_3__.serviceWorker) {
1677
+ try {
1678
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_3__.sendMessage)("GetCompositionConnectionsBetweenTwoConcepts", { ofConceptId, toConcept, mainKey });
1679
+ return res.data;
1680
+ }
1681
+ catch (error) {
1682
+ console.error("GetCompositionConnectionsBetweenTwoConcepts sw error: ", error);
1683
+ (0,_app__WEBPACK_IMPORTED_MODULE_3__.handleServiceWorkerException)(error);
1684
+ }
1685
+ }
1672
1686
  var formdata = new FormData();
1673
1687
  formdata.append("ofConceptId", ofConceptId.toString());
1674
1688
  formdata.append("mainKey", mainKey.toString());
1675
1689
  formdata.append("toConceptId", toConcept.toString());
1676
1690
  const response = yield fetch(_DataStructures_BaseUrl__WEBPACK_IMPORTED_MODULE_1__.BaseUrl.GetCompositionConnectionBetweenTwoConceptsUrl(), {
1677
- method: 'POST',
1691
+ method: "POST",
1678
1692
  body: formdata,
1679
- redirect: "follow"
1693
+ redirect: "follow",
1680
1694
  });
1681
1695
  if (response.ok) {
1682
1696
  const result = yield response.json();
@@ -1692,10 +1706,10 @@ function GetCompositionConnectionsBetweenTwoConcepts(ofConceptId, toConcept, mai
1692
1706
  }
1693
1707
  catch (error) {
1694
1708
  if (error instanceof Error) {
1695
- console.log('Get composition connection between two concepts error message: ', error.message);
1709
+ console.log("Get composition connection between two concepts error message: ", error.message);
1696
1710
  }
1697
1711
  else {
1698
- console.log('Get composition connection between two concepts unexpected error: ', error);
1712
+ console.log("Get composition connection between two concepts unexpected error: ", error);
1699
1713
  }
1700
1714
  (0,_Services_Common_ErrorPosting__WEBPACK_IMPORTED_MODULE_2__.HandleInternalError)(error, _DataStructures_BaseUrl__WEBPACK_IMPORTED_MODULE_1__.BaseUrl.GetCompositionConnectionBetweenTwoConceptsUrl());
1701
1715
  }
@@ -1744,9 +1758,14 @@ function GetConcept(id) {
1744
1758
  return __awaiter(this, void 0, void 0, function* () {
1745
1759
  try {
1746
1760
  if (_app__WEBPACK_IMPORTED_MODULE_3__.serviceWorker) {
1747
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_3__.sendMessage)('GetConcept', { id });
1748
- // console.log('data received from sw', res)
1749
- return res.data;
1761
+ try {
1762
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_3__.sendMessage)('GetConcept', { id });
1763
+ return res.data;
1764
+ }
1765
+ catch (error) {
1766
+ console.error('GetConcept sw error: ', error);
1767
+ (0,_app__WEBPACK_IMPORTED_MODULE_3__.handleServiceWorkerException)(error);
1768
+ }
1750
1769
  }
1751
1770
  let result = (0,_app__WEBPACK_IMPORTED_MODULE_3__.CreateDefaultConcept)();
1752
1771
  var conceptUse = yield _DataStructures_ConceptData__WEBPACK_IMPORTED_MODULE_0__.ConceptsData.GetConcept(id);
@@ -1834,11 +1853,6 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
1834
1853
  */
1835
1854
  function GetConceptBulk(passedConcepts) {
1836
1855
  return __awaiter(this, void 0, void 0, function* () {
1837
- if (_app__WEBPACK_IMPORTED_MODULE_4__.serviceWorker) {
1838
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_4__.sendMessage)('GetConceptBulk', { passedConcepts });
1839
- // console.log('data received from sw', res)
1840
- return res.data;
1841
- }
1842
1856
  let result = [];
1843
1857
  let setTime = new Date().getTime();
1844
1858
  let startTime = performance.now();
@@ -1847,6 +1861,16 @@ function GetConceptBulk(passedConcepts) {
1847
1861
  // });
1848
1862
  let conceptIds = Array.from(new Set(passedConcepts));
1849
1863
  try {
1864
+ if (_app__WEBPACK_IMPORTED_MODULE_4__.serviceWorker) {
1865
+ try {
1866
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_4__.sendMessage)('GetConceptBulk', { passedConcepts });
1867
+ return res.data;
1868
+ }
1869
+ catch (error) {
1870
+ console.error('GetConceptBulk sw error: ', error);
1871
+ (0,_app__WEBPACK_IMPORTED_MODULE_4__.handleServiceWorkerException)(error);
1872
+ }
1873
+ }
1850
1874
  if (conceptIds.length > 0) {
1851
1875
  let bulkConceptFetch = [];
1852
1876
  for (let i = 0; i < conceptIds.length; i++) {
@@ -1990,9 +2014,14 @@ function GetConceptByCharacterAndType(characterValue, typeId) {
1990
2014
  return __awaiter(this, void 0, void 0, function* () {
1991
2015
  try {
1992
2016
  if (_app__WEBPACK_IMPORTED_MODULE_4__.serviceWorker) {
1993
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_4__.sendMessage)('GetConceptByCharacterAndType', { characterValue, typeId });
1994
- // console.log('data received from sw', res)
1995
- return res.data;
2017
+ try {
2018
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_4__.sendMessage)('GetConceptByCharacterAndType', { characterValue, typeId });
2019
+ return res.data;
2020
+ }
2021
+ catch (error) {
2022
+ console.error('GetConceptByCharacterAndType sw error: ', error);
2023
+ (0,_app__WEBPACK_IMPORTED_MODULE_4__.handleServiceWorkerException)(error);
2024
+ }
1996
2025
  }
1997
2026
  let concept = yield _DataStructures_ConceptData__WEBPACK_IMPORTED_MODULE_0__.ConceptsData.GetConceptByCharacterAndTypeLocal(characterValue, typeId);
1998
2027
  if (concept == null || concept.id == 0) {
@@ -2206,13 +2235,18 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
2206
2235
  */
2207
2236
  function GetConnectionBulk() {
2208
2237
  return __awaiter(this, arguments, void 0, function* (connectionIds = []) {
2209
- if (_app__WEBPACK_IMPORTED_MODULE_5__.serviceWorker) {
2210
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_5__.sendMessage)('GetConnectionBulk', { connectionIds });
2211
- // console.log('data received from sw', res)
2212
- return res.data;
2213
- }
2214
2238
  let connectionList = [];
2215
2239
  try {
2240
+ if (_app__WEBPACK_IMPORTED_MODULE_5__.serviceWorker) {
2241
+ try {
2242
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_5__.sendMessage)('GetConnectionBulk', { connectionIds });
2243
+ return res.data;
2244
+ }
2245
+ catch (error) {
2246
+ console.error('GetConnectionBulk sw error: ', error);
2247
+ (0,_app__WEBPACK_IMPORTED_MODULE_5__.handleServiceWorkerException)(error);
2248
+ }
2249
+ }
2216
2250
  if (connectionIds.length > 0) {
2217
2251
  let bulkConnectionFetch = [];
2218
2252
  // if the connections are already present in the local memory then take it from there
@@ -2304,13 +2338,18 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
2304
2338
 
2305
2339
  function GetConnectionOfTheConcept(typeId_1, ofTheConceptId_1, userId_1) {
2306
2340
  return __awaiter(this, arguments, void 0, function* (typeId, ofTheConceptId, userId, inpage = 10, page = 1) {
2307
- if (_app__WEBPACK_IMPORTED_MODULE_3__.serviceWorker) {
2308
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_3__.sendMessage)('GetConnectionOfTheConcept', { typeId, ofTheConceptId, userId, inpage, page });
2309
- // console.log('data received from sw', res)
2310
- return res.data;
2311
- }
2312
2341
  let connectionList = [];
2313
2342
  try {
2343
+ if (_app__WEBPACK_IMPORTED_MODULE_3__.serviceWorker) {
2344
+ try {
2345
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_3__.sendMessage)('GetConnectionOfTheConcept', { typeId, ofTheConceptId, userId, inpage, page });
2346
+ return res.data;
2347
+ }
2348
+ catch (error) {
2349
+ console.error('GetConnectionOfTheConcept sw error: ', error);
2350
+ (0,_app__WEBPACK_IMPORTED_MODULE_3__.handleServiceWorkerException)(error);
2351
+ }
2352
+ }
2314
2353
  let urlencoded = new URLSearchParams();
2315
2354
  urlencoded.append("typeId", `${typeId}`);
2316
2355
  urlencoded.append("ofTheConceptId", `${ofTheConceptId}`);
@@ -2768,17 +2807,22 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
2768
2807
 
2769
2808
  function RecursiveSearchApi() {
2770
2809
  return __awaiter(this, arguments, void 0, function* (composition = 0, listLinkers = [], textSearch = "") {
2771
- if (_app__WEBPACK_IMPORTED_MODULE_5__.serviceWorker) {
2772
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_5__.sendMessage)("RecursiveSearchApi", {
2773
- composition,
2774
- listLinkers,
2775
- textSearch,
2776
- });
2777
- // console.log("data received from sw", res);
2778
- return res.data;
2779
- }
2780
2810
  let concepts = [];
2781
2811
  try {
2812
+ if (_app__WEBPACK_IMPORTED_MODULE_5__.serviceWorker) {
2813
+ try {
2814
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_5__.sendMessage)("RecursiveSearchApi", {
2815
+ composition,
2816
+ listLinkers,
2817
+ textSearch,
2818
+ });
2819
+ return res.data;
2820
+ }
2821
+ catch (error) {
2822
+ console.error("RecursiveSearchApi sw error: ", error);
2823
+ (0,_app__WEBPACK_IMPORTED_MODULE_5__.handleServiceWorkerException)(error);
2824
+ }
2825
+ }
2782
2826
  let searchQuery = new _DataStructures_SearchQuery__WEBPACK_IMPORTED_MODULE_1__.SearchQuery();
2783
2827
  searchQuery.composition = composition;
2784
2828
  searchQuery.listLinkers = listLinkers;
@@ -2817,17 +2861,22 @@ function RecursiveSearchApi() {
2817
2861
  }
2818
2862
  function RecursiveSearchApiWithInternalConnections() {
2819
2863
  return __awaiter(this, arguments, void 0, function* (composition = 0, listLinkers = [], textSearch = "") {
2820
- if (_app__WEBPACK_IMPORTED_MODULE_5__.serviceWorker) {
2821
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_5__.sendMessage)("RecursiveSearchApiWithInternalConnections", {
2822
- composition,
2823
- listLinkers,
2824
- textSearch,
2825
- });
2826
- // console.log("data received from sw", res);
2827
- return res.data;
2828
- }
2829
2864
  let concepts = [];
2830
2865
  try {
2866
+ if (_app__WEBPACK_IMPORTED_MODULE_5__.serviceWorker) {
2867
+ try {
2868
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_5__.sendMessage)("RecursiveSearchApiWithInternalConnections", {
2869
+ composition,
2870
+ listLinkers,
2871
+ textSearch,
2872
+ });
2873
+ return res.data;
2874
+ }
2875
+ catch (error) {
2876
+ console.error("RecursiveSearchApiWithInternalConnections sw error: ", error);
2877
+ (0,_app__WEBPACK_IMPORTED_MODULE_5__.handleServiceWorkerException)(error);
2878
+ }
2879
+ }
2831
2880
  let searchQuery = new _DataStructures_SearchQuery__WEBPACK_IMPORTED_MODULE_1__.SearchQuery();
2832
2881
  searchQuery.composition = composition;
2833
2882
  searchQuery.listLinkers = listLinkers;
@@ -2866,17 +2915,22 @@ function RecursiveSearchApiWithInternalConnections() {
2866
2915
  }
2867
2916
  function RecursiveSearchApiRaw() {
2868
2917
  return __awaiter(this, arguments, void 0, function* (composition = 0, listLinkers = [], textSearch = "") {
2869
- if (_app__WEBPACK_IMPORTED_MODULE_5__.serviceWorker) {
2870
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_5__.sendMessage)("RecursiveSearchApiRaw", {
2871
- composition,
2872
- listLinkers,
2873
- textSearch,
2874
- });
2875
- // console.log("data received from sw", res);
2876
- return res.data;
2877
- }
2878
2918
  let concepts = [];
2879
2919
  try {
2920
+ if (_app__WEBPACK_IMPORTED_MODULE_5__.serviceWorker) {
2921
+ try {
2922
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_5__.sendMessage)("RecursiveSearchApiRaw", {
2923
+ composition,
2924
+ listLinkers,
2925
+ textSearch,
2926
+ });
2927
+ return res.data;
2928
+ }
2929
+ catch (error) {
2930
+ console.error("RecursiveSearchApiRaw sw error: ", error);
2931
+ (0,_app__WEBPACK_IMPORTED_MODULE_5__.handleServiceWorkerException)(error);
2932
+ }
2933
+ }
2880
2934
  let searchQuery = new _DataStructures_SearchQuery__WEBPACK_IMPORTED_MODULE_1__.SearchQuery();
2881
2935
  searchQuery.composition = composition;
2882
2936
  searchQuery.listLinkers = listLinkers;
@@ -2915,17 +2969,22 @@ function RecursiveSearchApiRaw() {
2915
2969
  }
2916
2970
  function RecursiveSearchApiRawFullLinker() {
2917
2971
  return __awaiter(this, arguments, void 0, function* (composition = 0, fullLinkers = [], textSearch = "") {
2918
- if (_app__WEBPACK_IMPORTED_MODULE_5__.serviceWorker) {
2919
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_5__.sendMessage)("RecursiveSearchApiRawFullLinker", {
2920
- composition,
2921
- fullLinkers,
2922
- textSearch,
2923
- });
2924
- // console.log("data received from sw", res);
2925
- return res.data;
2926
- }
2927
2972
  let concepts = [];
2928
2973
  try {
2974
+ if (_app__WEBPACK_IMPORTED_MODULE_5__.serviceWorker) {
2975
+ try {
2976
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_5__.sendMessage)("RecursiveSearchApiRawFullLinker", {
2977
+ composition,
2978
+ fullLinkers,
2979
+ textSearch,
2980
+ });
2981
+ return res.data;
2982
+ }
2983
+ catch (error) {
2984
+ console.error("RecursiveSearchApiRawFullLinker sw error: ", error);
2985
+ (0,_app__WEBPACK_IMPORTED_MODULE_5__.handleServiceWorkerException)(error);
2986
+ }
2987
+ }
2929
2988
  let searchQuery = new _DataStructures_SearchQuery__WEBPACK_IMPORTED_MODULE_1__.SearchQuery();
2930
2989
  searchQuery.composition = composition;
2931
2990
  searchQuery.fullLinkers = fullLinkers;
@@ -2964,17 +3023,22 @@ function RecursiveSearchApiRawFullLinker() {
2964
3023
  }
2965
3024
  function RecursiveSearchApiNewRawFullLinker() {
2966
3025
  return __awaiter(this, arguments, void 0, function* (composition = 0, fullLinkers = [], textSearch = "") {
2967
- if (_app__WEBPACK_IMPORTED_MODULE_5__.serviceWorker) {
2968
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_5__.sendMessage)("RecursiveSearchApiNewRawFullLinker", {
2969
- composition,
2970
- fullLinkers,
2971
- textSearch,
2972
- });
2973
- // console.log("data received from sw", res);
2974
- return res.data;
2975
- }
2976
3026
  let concepts = [];
2977
3027
  try {
3028
+ if (_app__WEBPACK_IMPORTED_MODULE_5__.serviceWorker) {
3029
+ try {
3030
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_5__.sendMessage)("RecursiveSearchApiNewRawFullLinker", {
3031
+ composition,
3032
+ fullLinkers,
3033
+ textSearch,
3034
+ });
3035
+ return res.data;
3036
+ }
3037
+ catch (error) {
3038
+ console.error("RecursiveSearchApiNewRawFullLinker sw error: ", error);
3039
+ (0,_app__WEBPACK_IMPORTED_MODULE_5__.handleServiceWorkerException)(error);
3040
+ }
3041
+ }
2978
3042
  let searchQuery = new _DataStructures_SearchQuery__WEBPACK_IMPORTED_MODULE_1__.SearchQuery();
2979
3043
  searchQuery.composition = composition;
2980
3044
  searchQuery.fullLinkers = fullLinkers;
@@ -5146,9 +5210,14 @@ class ConceptsData {
5146
5210
  }
5147
5211
  static AddConcept(concept) {
5148
5212
  if (_app__WEBPACK_IMPORTED_MODULE_5__.serviceWorker) {
5149
- const res = (0,_app__WEBPACK_IMPORTED_MODULE_5__.sendMessage)('ConceptsData__AddConcept', { concept }); // is async function
5150
- // console.log('data received from sw', res)
5151
- // return res.data // remove comment when this function is async
5213
+ try {
5214
+ const res = (0,_app__WEBPACK_IMPORTED_MODULE_5__.sendMessage)('ConceptsData__AddConcept', { concept }); // is async function
5215
+ // return res.data // remove comment when this function is async
5216
+ }
5217
+ catch (error) {
5218
+ console.error('Concept Data, Add Concpet sw error: ', error);
5219
+ (0,_app__WEBPACK_IMPORTED_MODULE_5__.handleServiceWorkerException)(error);
5220
+ }
5152
5221
  }
5153
5222
  if (concept.id > 0) {
5154
5223
  // console.log("added the concept to the tree", concept);
@@ -5195,9 +5264,14 @@ class ConceptsData {
5195
5264
  static GetConcept(id) {
5196
5265
  return __awaiter(this, void 0, void 0, function* () {
5197
5266
  if (_app__WEBPACK_IMPORTED_MODULE_5__.serviceWorker) {
5198
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_5__.sendMessage)('ConceptsData__GetConcept', { id });
5199
- // console.log('data received from sw', res)
5200
- return res.data;
5267
+ try {
5268
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_5__.sendMessage)('ConceptsData__GetConcept', { id });
5269
+ return res.data;
5270
+ }
5271
+ catch (error) {
5272
+ console.error('Concept Data, Get Concpet sw error: ', error);
5273
+ (0,_app__WEBPACK_IMPORTED_MODULE_5__.handleServiceWorkerException)(error);
5274
+ }
5201
5275
  }
5202
5276
  var myConcept = (0,_Services_CreateDefaultConcept__WEBPACK_IMPORTED_MODULE_4__.CreateDefaultConcept)();
5203
5277
  var node = yield _BinaryTree__WEBPACK_IMPORTED_MODULE_1__.BinaryTree.getNodeFromTree(id);
@@ -5270,9 +5344,14 @@ class ConceptsData {
5270
5344
  static GetConceptsByTypeIdAndUser(typeId, userId) {
5271
5345
  return __awaiter(this, void 0, void 0, function* () {
5272
5346
  if (_app__WEBPACK_IMPORTED_MODULE_5__.serviceWorker) {
5273
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_5__.sendMessage)('GetConceptsByTypeIdAndUser', { typeId, userId });
5274
- // console.log('data received from sw', res)
5275
- return res.data;
5347
+ try {
5348
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_5__.sendMessage)('ConceptsData__GetConceptsByTypeIdAndUser', { typeId, userId });
5349
+ return res.data;
5350
+ }
5351
+ catch (error) {
5352
+ console.error('Concept Data, Get Concpet sw error:', error);
5353
+ (0,_app__WEBPACK_IMPORTED_MODULE_5__.handleServiceWorkerException)(error);
5354
+ }
5276
5355
  }
5277
5356
  let ConceptList = [];
5278
5357
  ConceptList = yield _BinaryTypeTree__WEBPACK_IMPORTED_MODULE_3__.BinaryTypeTree.getTypeVariantsFromTreeWithUserIdNew(typeId, userId);
@@ -6483,16 +6562,27 @@ class ConnectionData {
6483
6562
  }
6484
6563
  static GetConnectionByOfTheConceptAndType(ofTheConceptId, typeId) {
6485
6564
  return __awaiter(this, void 0, void 0, function* () {
6486
- if (_app__WEBPACK_IMPORTED_MODULE_1__.serviceWorker) {
6487
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_1__.sendMessage)("ConnectionData__GetConnectionByOfTheConceptAndType", { ofTheConceptId, typeId });
6488
- // console.log("data received from sw", res);
6489
- return res.data;
6565
+ try {
6566
+ if (_app__WEBPACK_IMPORTED_MODULE_1__.serviceWorker) {
6567
+ try {
6568
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_1__.sendMessage)("ConnectionData__GetConnectionByOfTheConceptAndType", { ofTheConceptId, typeId });
6569
+ return res.data;
6570
+ }
6571
+ catch (error) {
6572
+ console.error("GetConnectionByOfTheConceptAndType sw error: ", error);
6573
+ (0,_app__WEBPACK_IMPORTED_MODULE_1__.handleServiceWorkerException)(error);
6574
+ }
6575
+ }
6576
+ let connections = _ConnectionBinaryTree_ConnectionOfTheTree__WEBPACK_IMPORTED_MODULE_5__.ConnectionOfTheTree.GetConnectionByOfTheConceptAndTypeId(ofTheConceptId, typeId);
6577
+ if (connections) {
6578
+ return connections;
6579
+ }
6580
+ return [];
6490
6581
  }
6491
- let connections = _ConnectionBinaryTree_ConnectionOfTheTree__WEBPACK_IMPORTED_MODULE_5__.ConnectionOfTheTree.GetConnectionByOfTheConceptAndTypeId(ofTheConceptId, typeId);
6492
- if (connections) {
6493
- return connections;
6582
+ catch (error) {
6583
+ console.log("this is the error in GetConnectionByOfTheConceptAndType", error);
6584
+ return [];
6494
6585
  }
6495
- return [];
6496
6586
  });
6497
6587
  }
6498
6588
  static GetConnectionByOfType(ofTheConceptId, typeId) {
@@ -6517,11 +6607,6 @@ class ConnectionData {
6517
6607
  return __awaiter(this, void 0, void 0, function* () {
6518
6608
  // Increment Connection
6519
6609
  _AccessTracker_accessTracker__WEBPACK_IMPORTED_MODULE_0__.AccessTracker.incrementConnection(id);
6520
- if (_app__WEBPACK_IMPORTED_MODULE_1__.serviceWorker) {
6521
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_1__.sendMessage)('ConnectionData__GetConnection', { id });
6522
- // console.log('data received from sw', res)
6523
- return res.data;
6524
- }
6525
6610
  // var myConcept: Connection|null;
6526
6611
  // myConcept = null;
6527
6612
  // for(var i=0; i<this.connectionArray.length; i++){
@@ -6531,36 +6616,57 @@ class ConnectionData {
6531
6616
  // }
6532
6617
  // return myConcept;
6533
6618
  let myConnection = new _Connection__WEBPACK_IMPORTED_MODULE_3__.Connection(0, 0, 0, 0, 0, 0, 0);
6534
- let node = yield _ConnectionBinaryTree_ConnectionBinaryTree__WEBPACK_IMPORTED_MODULE_4__.ConnectionBinaryTree.getNodeFromTree(id);
6535
- if (node === null || node === void 0 ? void 0 : node.value) {
6536
- let returnedConcept = node.value;
6537
- if (returnedConcept) {
6538
- myConnection = returnedConcept;
6539
- //if(myConnection.count > IndexDbUpdate.MIN_USE_FOR_INDEX_DB){
6540
- // IndexDbUpdate.UpdateConnectionIndexDb(myConnection);
6541
- //}
6619
+ try {
6620
+ if (_app__WEBPACK_IMPORTED_MODULE_1__.serviceWorker) {
6621
+ try {
6622
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_1__.sendMessage)('ConnectionData__GetConnection', { id });
6623
+ return res.data;
6624
+ }
6625
+ catch (error) {
6626
+ console.error('GetConnection sw error: ', error);
6627
+ (0,_app__WEBPACK_IMPORTED_MODULE_1__.handleServiceWorkerException)(error);
6628
+ }
6629
+ }
6630
+ let node = yield _ConnectionBinaryTree_ConnectionBinaryTree__WEBPACK_IMPORTED_MODULE_4__.ConnectionBinaryTree.getNodeFromTree(id);
6631
+ if (node === null || node === void 0 ? void 0 : node.value) {
6632
+ let returnedConcept = node.value;
6633
+ if (returnedConcept) {
6634
+ myConnection = returnedConcept;
6635
+ //if(myConnection.count > IndexDbUpdate.MIN_USE_FOR_INDEX_DB){
6636
+ // IndexDbUpdate.UpdateConnectionIndexDb(myConnection);
6637
+ //}
6638
+ }
6542
6639
  }
6640
+ // if(myConcept.id == 0 || myConcept == null){
6641
+ // for(var i=0; i<this.conceptsArray.length; i++){
6642
+ // if(this.conceptsArray[i].id == id){
6643
+ // myConcept = this.conceptsArray[i];
6644
+ // }
6645
+ // }
6646
+ // }
6647
+ return myConnection;
6648
+ }
6649
+ catch (error) {
6650
+ console.log("this is the error in GetConnection", error);
6651
+ return myConnection;
6543
6652
  }
6544
- // if(myConcept.id == 0 || myConcept == null){
6545
- // for(var i=0; i<this.conceptsArray.length; i++){
6546
- // if(this.conceptsArray[i].id == id){
6547
- // myConcept = this.conceptsArray[i];
6548
- // }
6549
- // }
6550
- // }
6551
- return myConnection;
6552
6653
  });
6553
6654
  }
6554
6655
  // commented
6555
6656
  static GetConnectionsOfCompositionLocal(id) {
6556
6657
  return __awaiter(this, void 0, void 0, function* () {
6557
- if (_app__WEBPACK_IMPORTED_MODULE_1__.serviceWorker) {
6558
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_1__.sendMessage)("ConnectionData__GetConnectionsOfCompositionLocal", { id });
6559
- // console.log("data received from sw", res);
6560
- return res.data;
6561
- }
6562
6658
  let connections = [];
6563
6659
  try {
6660
+ if (_app__WEBPACK_IMPORTED_MODULE_1__.serviceWorker) {
6661
+ try {
6662
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_1__.sendMessage)("ConnectionData__GetConnectionsOfCompositionLocal", { id });
6663
+ return res.data;
6664
+ }
6665
+ catch (error) {
6666
+ console.error("GetConnectionsOfCompositionLocal sw error: ", error);
6667
+ (0,_app__WEBPACK_IMPORTED_MODULE_1__.handleServiceWorkerException)(error);
6668
+ }
6669
+ }
6564
6670
  let connectionIds = [];
6565
6671
  connectionIds = ConnectionData.GetConnectionByOfType(id, id);
6566
6672
  for (let i = 0; i < connectionIds.length; i++) {
@@ -6590,21 +6696,32 @@ class ConnectionData {
6590
6696
  }
6591
6697
  static GetConnectionsOfConcept(id) {
6592
6698
  return __awaiter(this, void 0, void 0, function* () {
6593
- if (_app__WEBPACK_IMPORTED_MODULE_1__.serviceWorker) {
6594
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_1__.sendMessage)("ConnectionData__GetConnectionsOfConcept", { id });
6595
- // console.log("data received from sw", res);
6596
- return res.data;
6597
- }
6598
6699
  let connectionIds = [];
6599
6700
  let connections = [];
6600
- connectionIds = yield ConnectionData.GetConnectionByOfTheConceptAndType(id, id);
6601
- for (let i = 0; i < connectionIds.length; i++) {
6602
- let conn = yield _ConnectionBinaryTree_ConnectionBinaryTree__WEBPACK_IMPORTED_MODULE_4__.ConnectionBinaryTree.getNodeFromTree(connectionIds[i]);
6603
- if (conn) {
6604
- connections.push(conn.value);
6701
+ try {
6702
+ if (_app__WEBPACK_IMPORTED_MODULE_1__.serviceWorker) {
6703
+ try {
6704
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_1__.sendMessage)("ConnectionData__GetConnectionsOfConcept", { id });
6705
+ return res.data;
6706
+ }
6707
+ catch (error) {
6708
+ console.error("GetConnectionsOfConcept sw error: ", error);
6709
+ (0,_app__WEBPACK_IMPORTED_MODULE_1__.handleServiceWorkerException)(error);
6710
+ }
6711
+ }
6712
+ connectionIds = yield ConnectionData.GetConnectionByOfTheConceptAndType(id, id);
6713
+ for (let i = 0; i < connectionIds.length; i++) {
6714
+ let conn = yield _ConnectionBinaryTree_ConnectionBinaryTree__WEBPACK_IMPORTED_MODULE_4__.ConnectionBinaryTree.getNodeFromTree(connectionIds[i]);
6715
+ if (conn) {
6716
+ connections.push(conn.value);
6717
+ }
6605
6718
  }
6719
+ return connections;
6720
+ }
6721
+ catch (error) {
6722
+ console.log("this is the error in GetConnectionsOfConcept", error);
6723
+ return connections;
6606
6724
  }
6607
- return connections;
6608
6725
  });
6609
6726
  }
6610
6727
  getName() {
@@ -8302,10 +8419,15 @@ class LocalSyncData {
8302
8419
  return __awaiter(this, void 0, void 0, function* () {
8303
8420
  let startTime = performance.now();
8304
8421
  try {
8305
- console.log('sw triggered');
8306
8422
  if (_app__WEBPACK_IMPORTED_MODULE_3__.serviceWorker) {
8307
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_3__.sendMessage)('LocalSyncData__SyncDataOnline', { transactionId });
8308
- return res.data;
8423
+ try {
8424
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_3__.sendMessage)('LocalSyncData__SyncDataOnline', { transactionId });
8425
+ return res.data;
8426
+ }
8427
+ catch (error) {
8428
+ console.error('LocalSyncData__SyncDataOnline sw error: ', error);
8429
+ (0,_app__WEBPACK_IMPORTED_MODULE_3__.handleServiceWorkerException)(error);
8430
+ }
8309
8431
  }
8310
8432
  let conceptsArray = [];
8311
8433
  let connectionsArray = [];
@@ -8500,49 +8622,79 @@ class LocalSyncData {
8500
8622
  }
8501
8623
  static initializeTransaction(transactionId) {
8502
8624
  return __awaiter(this, void 0, void 0, function* () {
8503
- console.log('sw triggered');
8504
- if (_app__WEBPACK_IMPORTED_MODULE_3__.serviceWorker) {
8505
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_3__.sendMessage)('LocalSyncData__initializeTransaction', { transactionId });
8506
- return res.data;
8625
+ try {
8626
+ if (_app__WEBPACK_IMPORTED_MODULE_3__.serviceWorker) {
8627
+ try {
8628
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_3__.sendMessage)('LocalSyncData__initializeTransaction', { transactionId });
8629
+ return res.data;
8630
+ }
8631
+ catch (error) {
8632
+ console.error('LocalSyncData__initializeTransaction sw error: ', error);
8633
+ (0,_app__WEBPACK_IMPORTED_MODULE_3__.handleServiceWorkerException)(error);
8634
+ }
8635
+ }
8636
+ if (this.transactionCollections.some(item => item.id == transactionId))
8637
+ return;
8638
+ this.transactionCollections.push({
8639
+ id: transactionId,
8640
+ data: { concepts: [], connections: [] },
8641
+ createdDate: new Date().toISOString()
8642
+ });
8643
+ }
8644
+ catch (error) {
8645
+ console.log('error in initializeTransaction', error);
8507
8646
  }
8508
- if (this.transactionCollections.some(item => item.id == transactionId))
8509
- return;
8510
- this.transactionCollections.push({
8511
- id: transactionId,
8512
- data: { concepts: [], connections: [] },
8513
- createdDate: new Date().toISOString()
8514
- });
8515
8647
  });
8516
8648
  }
8517
8649
  static markTransactionActions(transactionId, actions) {
8518
8650
  return __awaiter(this, void 0, void 0, function* () {
8519
8651
  // remove marked
8520
- console.log('sw triggered');
8521
- if (_app__WEBPACK_IMPORTED_MODULE_3__.serviceWorker) {
8522
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_3__.sendMessage)('LocalSyncData__markTransactionActions', { transactionId, actions });
8523
- return res.data;
8524
- }
8525
- this.transactionCollections = this.transactionCollections.map(tran => {
8526
- if (tran.id == transactionId) {
8527
- return Object.assign(Object.assign({}, tran), { data: JSON.parse(JSON.stringify(actions)) });
8652
+ try {
8653
+ if (_app__WEBPACK_IMPORTED_MODULE_3__.serviceWorker) {
8654
+ try {
8655
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_3__.sendMessage)('LocalSyncData__markTransactionActions', { transactionId, actions });
8656
+ return res.data;
8657
+ }
8658
+ catch (error) {
8659
+ console.error('LocalSyncData__markTransactionActions sw error: ', error);
8660
+ (0,_app__WEBPACK_IMPORTED_MODULE_3__.handleServiceWorkerException)(error);
8661
+ }
8528
8662
  }
8529
- else
8530
- return tran;
8531
- });
8532
- this.conceptsSyncArray = this.conceptsSyncArray.filter(concept => !actions.concepts.some(con => con.id == concept.id || con.ghostId == concept.id));
8533
- this.connectionSyncArray = this.connectionSyncArray.filter(connection => !actions.connections.some(con => con.id == connection.id || con.ghostId == connection.id));
8663
+ this.transactionCollections = this.transactionCollections.map(tran => {
8664
+ if (tran.id == transactionId) {
8665
+ return Object.assign(Object.assign({}, tran), { data: JSON.parse(JSON.stringify(actions)) });
8666
+ }
8667
+ else
8668
+ return tran;
8669
+ });
8670
+ this.conceptsSyncArray = this.conceptsSyncArray.filter(concept => !actions.concepts.some(con => con.id == concept.id || con.ghostId == concept.id));
8671
+ this.connectionSyncArray = this.connectionSyncArray.filter(connection => !actions.connections.some(con => con.id == connection.id || con.ghostId == connection.id));
8672
+ }
8673
+ catch (error) {
8674
+ console.log('error in markTransactionActions', error);
8675
+ }
8534
8676
  });
8535
8677
  }
8536
8678
  static rollbackTransaction(transactionId, actions) {
8537
8679
  return __awaiter(this, void 0, void 0, function* () {
8538
- console.log('sw triggered');
8539
- if (_app__WEBPACK_IMPORTED_MODULE_3__.serviceWorker) {
8540
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_3__.sendMessage)('LocalSyncData__rollbackTransaction', { transactionId, actions });
8541
- return res.data;
8680
+ try {
8681
+ if (_app__WEBPACK_IMPORTED_MODULE_3__.serviceWorker) {
8682
+ try {
8683
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_3__.sendMessage)('LocalSyncData__rollbackTransaction', { transactionId, actions });
8684
+ return res.data;
8685
+ }
8686
+ catch (error) {
8687
+ console.error('LocalSyncData__rollbackTransaction sw error: ', error);
8688
+ (0,_app__WEBPACK_IMPORTED_MODULE_3__.handleServiceWorkerException)(error);
8689
+ }
8690
+ }
8691
+ if (this.transactionCollections.some(item => item.id == transactionId))
8692
+ return;
8693
+ this.transactionCollections = this.transactionCollections.filter(tran => tran.id != transactionId);
8694
+ }
8695
+ catch (err) {
8696
+ console.log('LocalSyncData, roll', err);
8542
8697
  }
8543
- if (this.transactionCollections.some(item => item.id == transactionId))
8544
- return;
8545
- this.transactionCollections = this.transactionCollections.filter(tran => tran.id != transactionId);
8546
8698
  });
8547
8699
  }
8548
8700
  }
@@ -9620,10 +9772,15 @@ class SyncData {
9620
9772
  }
9621
9773
  static SyncDataOnline() {
9622
9774
  return __awaiter(this, void 0, void 0, function* () {
9623
- console.log('sw triggered');
9624
9775
  if (_app__WEBPACK_IMPORTED_MODULE_5__.serviceWorker) {
9625
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_5__.sendMessage)('SyncData__SyncDataOnline', {});
9626
- return res.data;
9776
+ try {
9777
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_5__.sendMessage)('SyncData__SyncDataOnline', {});
9778
+ return res.data;
9779
+ }
9780
+ catch (error) {
9781
+ console.error('SyncData__SyncDataOnline sw error: ', error);
9782
+ (0,_app__WEBPACK_IMPORTED_MODULE_5__.handleServiceWorkerException)(error);
9783
+ }
9627
9784
  }
9628
9785
  for (let i = 0; i < this.conceptsSyncArray.length; i++) {
9629
9786
  _ConceptData__WEBPACK_IMPORTED_MODULE_3__.ConceptsData.AddConcept(this.conceptsSyncArray[i]);
@@ -11116,7 +11273,7 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
11116
11273
 
11117
11274
  class ApplicationMonitor {
11118
11275
  static initialize() {
11119
- console.log("Initialized Application Moniroring...");
11276
+ console.warn("Initialized Application Moniroring...");
11120
11277
  // Log unhandled errors
11121
11278
  window.addEventListener("error", (event) => {
11122
11279
  var _a, _b;
@@ -11173,7 +11330,7 @@ class ApplicationMonitor {
11173
11330
  };
11174
11331
  _logger_service__WEBPACK_IMPORTED_MODULE_0__.Logger.logApplication("INFO", message, details);
11175
11332
  });
11176
- window === null || window === void 0 ? void 0 : window.addEventListener("scroll", () => {
11333
+ document.addEventListener("scroll", () => {
11177
11334
  const message = "User Scroll";
11178
11335
  const details = {
11179
11336
  position: window.scrollY,
@@ -11182,11 +11339,24 @@ class ApplicationMonitor {
11182
11339
  });
11183
11340
  }
11184
11341
  static logNetworkRequests() {
11342
+ if (typeof window === undefined) {
11343
+ return;
11344
+ }
11185
11345
  const originalFetch = window === null || window === void 0 ? void 0 : window.fetch;
11346
+ // console.log("Original Fetch is equals to : ", originalFetch);
11347
+ if (!originalFetch) {
11348
+ throw new Error("Original fetch is not available.");
11349
+ }
11350
+ // Define ignored URLs
11351
+ // const ignoredUrls = [BaseUrl.PostLogger(), BaseUrl.PostPrefetchConceptConnections()];
11186
11352
  window.fetch = (...args) => __awaiter(this, void 0, void 0, function* () {
11187
11353
  const [url, options] = args;
11188
11354
  const urlString = url instanceof Request ? url.url : (url instanceof URL ? url.toString() : url);
11189
- // console.log("Custom fetch called for:", urlString);
11355
+ // Check if the URL is in the ignored URLs list
11356
+ // if (ignoredUrls.includes(urlString)) {
11357
+ // console.log("Ignored URLs detected : ", urlString);
11358
+ // return new Response(null, { status: 200 });
11359
+ // }
11190
11360
  let networkDetails = {
11191
11361
  "request": {
11192
11362
  type: "REQUEST",
@@ -11199,7 +11369,7 @@ class ApplicationMonitor {
11199
11369
  try {
11200
11370
  const response = yield originalFetch(...args);
11201
11371
  // Add response details to the network log
11202
- networkDetails["response"] = {
11372
+ networkDetails.response = {
11203
11373
  type: "RESPONSE",
11204
11374
  message: "Network Response",
11205
11375
  url: urlString,
@@ -11209,9 +11379,14 @@ class ApplicationMonitor {
11209
11379
  return response;
11210
11380
  }
11211
11381
  catch (error) {
11212
- console.error("Fetch failed for:", urlString, error); // Debugging log
11382
+ // Log full error message
11383
+ if (error instanceof Error) {
11384
+ console.error("Error message:", error.message);
11385
+ console.error("Stack trace:", error.stack);
11386
+ }
11387
+ console.error("Fetch failed for:", urlString, error);
11213
11388
  // Add error details to the network log
11214
- networkDetails["response"] = {
11389
+ networkDetails.response = {
11215
11390
  type: "ERROR",
11216
11391
  message: "Network Request Failed",
11217
11392
  url: urlString,
@@ -11225,6 +11400,9 @@ class ApplicationMonitor {
11225
11400
  });
11226
11401
  }
11227
11402
  static logPerformanceMetrics() {
11403
+ if (typeof window === undefined) {
11404
+ return;
11405
+ }
11228
11406
  window === null || window === void 0 ? void 0 : window.addEventListener("load", () => {
11229
11407
  const timing = performance.timing;
11230
11408
  const details = {
@@ -11254,6 +11432,9 @@ class ApplicationMonitor {
11254
11432
  }
11255
11433
  // Log WebSocket events
11256
11434
  static logWebSocketEvents() {
11435
+ if (typeof window === undefined) {
11436
+ return;
11437
+ }
11257
11438
  const originalWebSocket = WebSocket;
11258
11439
  window.WebSocket = class extends originalWebSocket {
11259
11440
  constructor(url, protocols) {
@@ -11383,7 +11564,6 @@ __webpack_require__.r(__webpack_exports__);
11383
11564
  /* harmony export */ });
11384
11565
  /* harmony import */ var _app__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../app */ "./src/app.ts");
11385
11566
  /* harmony import */ var _DataStructures_Security_TokenStorage__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../DataStructures/Security/TokenStorage */ "./src/DataStructures/Security/TokenStorage.ts");
11386
- /* harmony import */ var _ErrorHandling__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ErrorHandling */ "./src/Middleware/ErrorHandling.ts");
11387
11567
  var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
11388
11568
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
11389
11569
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -11395,7 +11575,6 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
11395
11575
  };
11396
11576
 
11397
11577
 
11398
-
11399
11578
  class Logger {
11400
11579
  /**
11401
11580
  * Automatically starts the auto-sync mechanism.
@@ -11408,7 +11587,8 @@ class Logger {
11408
11587
  }
11409
11588
  Logger.nextSyncTime = Date.now() + Logger.SYNC_INTERVAL_MS;
11410
11589
  // console.log("NextTimeToSync for Upcoming : ", this.nextSyncTime)
11411
- this.autoSyncInterval = window === null || window === void 0 ? void 0 : window.setInterval(() => {
11590
+ // this.autoSyncInterval = window?.setInterval(() => {
11591
+ setInterval(() => {
11412
11592
  const currentTime = Date.now();
11413
11593
  // console.log("Current Time : ",currentTime);
11414
11594
  if (Logger.nextSyncTime && currentTime >= Logger.nextSyncTime) {
@@ -11448,9 +11628,8 @@ class Logger {
11448
11628
  return;
11449
11629
  const logEntry = Object.assign({ timestamp: new Date().toLocaleString(), level,
11450
11630
  message }, data);
11451
- Logger.logs.push(logEntry);
11452
- // this.saveToLocalStorage(logEntry)
11453
- this.saveLogToLocalStorage(this.mftsccsBrowser, logEntry);
11631
+ Logger.logsData.push(logEntry);
11632
+ // this.saveLogToLocalStorage(this.mftsccsBrowser, logEntry)
11454
11633
  }
11455
11634
  static log(level, message, data) {
11456
11635
  try {
@@ -11550,46 +11729,35 @@ class Logger {
11550
11729
  message: message,
11551
11730
  data: data || null,
11552
11731
  };
11553
- // const existingLogs = JSON.parse(localStorage?.getItem(this.appLogs) || "[]");
11554
- // existingLogs.push(logEntry);
11555
- // localStorage?.setItem(this.appLogs, JSON.stringify(existingLogs));
11556
- this.saveLogToLocalStorage(this.appLogs, logEntry);
11732
+ Logger.applicationLogsData.push(logEntry);
11733
+ // this.saveLogToLocalStorage(this.appLogs, logEntry)
11557
11734
  }
11558
11735
  catch (error) {
11559
11736
  console.error("Failed to log application activity:", error);
11560
11737
  }
11561
11738
  }
11562
- /**
11563
- * Helper method to save logs to localStorage.
11564
- */
11565
- static saveLogToLocalStorage(logType, logMessage) {
11566
- try {
11567
- const logs = JSON.parse((localStorage === null || localStorage === void 0 ? void 0 : localStorage.getItem(logType)) || "[]");
11568
- logs.push(logMessage);
11569
- localStorage === null || localStorage === void 0 ? void 0 : localStorage.setItem(logType, JSON.stringify(logs));
11570
- }
11571
- catch (error) {
11572
- console.error("Error on saving log in localstorage");
11573
- Logger.log("ERROR", "Error while saving log in local storage");
11574
- }
11575
- }
11576
11739
  /**
11577
11740
  * Helper method to send logs to the server.
11578
11741
  */
11579
11742
  static sendApplicationLogsToServer() {
11580
11743
  return __awaiter(this, void 0, void 0, function* () {
11581
11744
  try {
11582
- if (this.logs.length < 0) {
11745
+ console.log("Application Log To Server : \n");
11746
+ // console.log("Log To Server : \n", this.applicationLogsData);
11747
+ if (this.applicationLogsData.length < 0) {
11583
11748
  return;
11584
11749
  }
11585
11750
  const accessToken = _DataStructures_Security_TokenStorage__WEBPACK_IMPORTED_MODULE_1__.TokenStorage.BearerAccessToken;
11586
- const storedLogs = JSON.parse((localStorage === null || localStorage === void 0 ? void 0 : localStorage.getItem(this.appLogs)) || "[]");
11751
+ const storedLogs = this.applicationLogsData;
11752
+ if (!accessToken)
11753
+ return;
11587
11754
  if (storedLogs.length === 0)
11588
11755
  return;
11589
11756
  // console.log("Stored Logs : ", storedLogs);
11590
11757
  const chunkSize = 50;
11591
11758
  for (let i = 0; i < storedLogs.length; i += chunkSize) {
11592
11759
  const chunk = storedLogs.slice(i, i + chunkSize);
11760
+ // console.log("The PostLogger URL on Applciation Log : ", BaseUrl.PostLogger());
11593
11761
  const response = yield fetch(_app__WEBPACK_IMPORTED_MODULE_0__.BaseUrl.PostLogger(), {
11594
11762
  method: "POST",
11595
11763
  headers: {
@@ -11607,7 +11775,7 @@ class Logger {
11607
11775
  return;
11608
11776
  }
11609
11777
  }
11610
- localStorage === null || localStorage === void 0 ? void 0 : localStorage.removeItem(this.appLogs);
11778
+ // this.clearLogs(this.appLogs)
11611
11779
  }
11612
11780
  catch (error) {
11613
11781
  console.error("Error while sending logs to server:", error);
@@ -11617,14 +11785,24 @@ class Logger {
11617
11785
  static sendLogsToServer() {
11618
11786
  return __awaiter(this, void 0, void 0, function* () {
11619
11787
  try {
11620
- console.log("Log sending to server...");
11621
- const accessToken = _DataStructures_Security_TokenStorage__WEBPACK_IMPORTED_MODULE_1__.TokenStorage.BearerAccessToken;
11622
- const storedLogs = JSON.parse((localStorage === null || localStorage === void 0 ? void 0 : localStorage.getItem(this.mftsccsBrowser)) || "[]");
11788
+ console.warn("Log sending to server...");
11789
+ // console.log("Log To Server : \n", this.logsData);
11790
+ if (this.logsData.length > 0) {
11791
+ return;
11792
+ }
11793
+ const accessToken = _DataStructures_Security_TokenStorage__WEBPACK_IMPORTED_MODULE_1__.TokenStorage.BearerAccessToken;
11794
+ // const storedLogs = JSON.parse(localStorage?.getItem(this.mftsccsBrowser) || "[]");
11795
+ const storedLogs = this.logsData;
11796
+ // console.log("Stored Logs for syncing... ", storedLogs);
11797
+ if (!accessToken)
11798
+ return;
11799
+ // const storedLogs = this.logs
11623
11800
  if (storedLogs.length === 0)
11624
11801
  return;
11625
11802
  const chunkSize = 50;
11626
11803
  for (let i = 0; i < storedLogs.length; i += chunkSize) {
11627
11804
  const chunk = storedLogs.slice(i, i + chunkSize);
11805
+ // console.log("The PostLogger URL on Logs is : ", BaseUrl.PostLogger());
11628
11806
  // const response = await fetch(Logger.SERVER_URL, {
11629
11807
  const response = yield fetch(_app__WEBPACK_IMPORTED_MODULE_0__.BaseUrl.PostLogger(), {
11630
11808
  method: "POST",
@@ -11643,19 +11821,51 @@ class Logger {
11643
11821
  return;
11644
11822
  }
11645
11823
  }
11646
- localStorage === null || localStorage === void 0 ? void 0 : localStorage.removeItem(this.mftsccsBrowser);
11824
+ // localStorage?.removeItem(this.mftsccsBrowser);
11825
+ // this.clearLogs(this.mftsccsBrowser)
11647
11826
  }
11648
11827
  catch (error) {
11649
11828
  console.error("Error while sending logs to server:", error);
11650
- (0,_ErrorHandling__WEBPACK_IMPORTED_MODULE_2__.HandleNetworkError)("Request", error);
11829
+ // HandleNetworkError("Request", error)
11651
11830
  }
11652
11831
  });
11653
11832
  }
11833
+ /**
11834
+ * Helper method to save logs to localStorage.
11835
+ */
11836
+ static saveLogToLocalStorage(logType, logMessage) {
11837
+ try {
11838
+ if (typeof localStorage === undefined) {
11839
+ console.warn("Local Storage type undefined");
11840
+ return;
11841
+ }
11842
+ else {
11843
+ const logs = JSON.parse((localStorage === null || localStorage === void 0 ? void 0 : localStorage.getItem(logType)) || "[]");
11844
+ logs.push(logMessage);
11845
+ localStorage === null || localStorage === void 0 ? void 0 : localStorage.setItem(logType, JSON.stringify(logs));
11846
+ }
11847
+ }
11848
+ catch (error) {
11849
+ console.error("Error on saving log in localstorage");
11850
+ Logger.log("ERROR", "Error while saving log in local storage");
11851
+ }
11852
+ }
11853
+ static clearLogs(logType) {
11854
+ if (typeof localStorage === undefined) {
11855
+ console.warn('localStorage is not available');
11856
+ return;
11857
+ }
11858
+ else {
11859
+ localStorage === null || localStorage === void 0 ? void 0 : localStorage.removeItem(logType);
11860
+ // console.log('Logs removed from localStorage');
11861
+ }
11862
+ }
11654
11863
  }
11655
11864
  Logger.logLevel = "INFO";
11656
- Logger.logs = [];
11865
+ Logger.logsData = [];
11866
+ Logger.applicationLogsData = [];
11657
11867
  Logger.LOG_LEVELS = ["DEBUG", "INFO", "WARNING", "ERROR"];
11658
- Logger.SYNC_INTERVAL_MS = 60 * 1000; // 60 Sec
11868
+ Logger.SYNC_INTERVAL_MS = 120 * 1000; // 120 Sec
11659
11869
  Logger.nextSyncTime = null;
11660
11870
  Logger.appLogs = "app";
11661
11871
  Logger.mftsccsBrowser = "mftsccs";
@@ -12501,11 +12711,15 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
12501
12711
  function CreateConnectionBetweenTwoConcepts(ofTheConcept_1, toTheConcept_1, linker_1) {
12502
12712
  return __awaiter(this, arguments, void 0, function* (ofTheConcept, toTheConcept, linker, both = false, count = false) {
12503
12713
  var _a, _b;
12504
- let startTime = performance.now();
12505
12714
  if (_app__WEBPACK_IMPORTED_MODULE_1__.serviceWorker) {
12506
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_1__.sendMessage)('CreateConnectionBetweenTwoConcepts', { ofTheConcept, toTheConcept, linker, both, count });
12507
- // console.log('data received from sw', res)
12508
- return res.data;
12715
+ try {
12716
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_1__.sendMessage)('CreateConnectionBetweenTwoConcepts', { ofTheConcept, toTheConcept, linker, both, count });
12717
+ return res.data;
12718
+ }
12719
+ catch (error) {
12720
+ console.error('CreateConnectionBetweenTwoConcepts sw error: ', error);
12721
+ (0,_app__WEBPACK_IMPORTED_MODULE_1__.handleServiceWorkerException)(error);
12722
+ }
12509
12723
  }
12510
12724
  let userId = ofTheConcept.userId;
12511
12725
  let accessId = 4;
@@ -12660,9 +12874,14 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
12660
12874
  function CreateTheComposition(json_1) {
12661
12875
  return __awaiter(this, arguments, void 0, function* (json, ofTheConceptId = null, ofTheConceptUserId = null, mainKey = null, userId = null, accessId = null, sessionInformationId = null) {
12662
12876
  if (_app__WEBPACK_IMPORTED_MODULE_0__.serviceWorker) {
12663
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.sendMessage)('CreateTheComposition', { json, ofTheConceptId, ofTheConceptUserId, mainKey, userId, accessId, sessionInformationId });
12664
- // console.log('data received from sw', res)
12665
- return res.data;
12877
+ try {
12878
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.sendMessage)('CreateTheComposition', { json, ofTheConceptId, ofTheConceptUserId, mainKey, userId, accessId, sessionInformationId });
12879
+ return res.data;
12880
+ }
12881
+ catch (err) {
12882
+ console.error('CreateTheComposition sw error: ', err);
12883
+ (0,_app__WEBPACK_IMPORTED_MODULE_0__.handleServiceWorkerException)(err);
12884
+ }
12666
12885
  }
12667
12886
  let localUserId = userId !== null && userId !== void 0 ? userId : 999;
12668
12887
  let localAccessId = accessId !== null && accessId !== void 0 ? accessId : 4;
@@ -12924,9 +13143,14 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
12924
13143
  function DeleteConceptById(id) {
12925
13144
  return __awaiter(this, void 0, void 0, function* () {
12926
13145
  if (_app__WEBPACK_IMPORTED_MODULE_6__.serviceWorker) {
12927
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_6__.sendMessage)('DeleteConceptById', { id });
12928
- // console.log('data received from sw', res)
12929
- return res.data;
13146
+ try {
13147
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_6__.sendMessage)('DeleteConceptById', { id });
13148
+ return res.data;
13149
+ }
13150
+ catch (err) {
13151
+ console.error('DeleteConceptById sw error: ', err);
13152
+ (0,_app__WEBPACK_IMPORTED_MODULE_6__.handleServiceWorkerException)(err);
13153
+ }
12930
13154
  }
12931
13155
  if (id > 0) {
12932
13156
  var concept = yield (0,_GetTheConcept__WEBPACK_IMPORTED_MODULE_7__["default"])(id);
@@ -12949,9 +13173,14 @@ function DeleteConceptById(id) {
12949
13173
  function DeleteUser(id) {
12950
13174
  return __awaiter(this, void 0, void 0, function* () {
12951
13175
  if (_app__WEBPACK_IMPORTED_MODULE_6__.serviceWorker) {
12952
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_6__.sendMessage)('DeleteUser', { id });
12953
- // console.log('data received from sw', res)
12954
- return res.data;
13176
+ try {
13177
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_6__.sendMessage)('DeleteUser', { id });
13178
+ return res.data;
13179
+ }
13180
+ catch (err) {
13181
+ console.error('DeleteUser sw error: ', err);
13182
+ (0,_app__WEBPACK_IMPORTED_MODULE_6__.handleServiceWorkerException)(err);
13183
+ }
12955
13184
  }
12956
13185
  if (id > 0) {
12957
13186
  (0,_Api_Delete_DeleteUserInBackend__WEBPACK_IMPORTED_MODULE_0__.DeleteUserInBackend)(id);
@@ -12979,7 +13208,6 @@ __webpack_require__.r(__webpack_exports__);
12979
13208
  /* harmony import */ var _DataStructures_ConnectionBinaryTree_ConnectionBinaryTree__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../DataStructures/ConnectionBinaryTree/ConnectionBinaryTree */ "./src/DataStructures/ConnectionBinaryTree/ConnectionBinaryTree.ts");
12980
13209
  /* harmony import */ var _DataStructures_Local_LocalConnectionData__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../DataStructures/Local/LocalConnectionData */ "./src/DataStructures/Local/LocalConnectionData.ts");
12981
13210
  /* harmony import */ var _app__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../app */ "./src/app.ts");
12982
- /* harmony import */ var _GetConnections__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./GetConnections */ "./src/Services/GetConnections.ts");
12983
13211
  var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
12984
13212
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
12985
13213
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -12993,16 +13221,20 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
12993
13221
 
12994
13222
 
12995
13223
 
12996
-
12997
13224
  function DeleteConnectionById(id) {
12998
13225
  return __awaiter(this, void 0, void 0, function* () {
12999
13226
  if (_app__WEBPACK_IMPORTED_MODULE_3__.serviceWorker) {
13000
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_3__.sendMessage)('DeleteConnectionById', { id });
13001
- // console.log('data received from sw', res)
13002
- return res.data;
13227
+ try {
13228
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_3__.sendMessage)('DeleteConnectionById', { id });
13229
+ return res.data;
13230
+ }
13231
+ catch (err) {
13232
+ console.error('DeleteConnectionById sw error: ', err);
13233
+ (0,_app__WEBPACK_IMPORTED_MODULE_3__.handleServiceWorkerException)(err);
13234
+ }
13003
13235
  }
13004
13236
  if (id > 0) {
13005
- let connection = yield (0,_GetConnections__WEBPACK_IMPORTED_MODULE_4__.GetConnectionById)(id);
13237
+ // let connection = await GetConnectionById(id);
13006
13238
  yield (0,_Api_DeleteTheConnection__WEBPACK_IMPORTED_MODULE_0__["default"])(id);
13007
13239
  //removeFromDatabase("connection",id);
13008
13240
  _DataStructures_ConnectionBinaryTree_ConnectionBinaryTree__WEBPACK_IMPORTED_MODULE_1__.ConnectionBinaryTree.removeNodeFromTree(id);
@@ -13052,9 +13284,14 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
13052
13284
  function DeleteConnectionByType(id, linker) {
13053
13285
  return __awaiter(this, void 0, void 0, function* () {
13054
13286
  if (_app__WEBPACK_IMPORTED_MODULE_2__.serviceWorker) {
13055
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_2__.sendMessage)('DeleteConnectionByType', { id, linker });
13056
- // console.log('data received from sw', res)
13057
- return res.data;
13287
+ try {
13288
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_2__.sendMessage)('DeleteConnectionByType', { id, linker });
13289
+ return res.data;
13290
+ }
13291
+ catch (error) {
13292
+ console.error('DeleteConnectionByType sw error: ', error);
13293
+ (0,_app__WEBPACK_IMPORTED_MODULE_2__.handleServiceWorkerException)(error);
13294
+ }
13058
13295
  }
13059
13296
  let externalConnections = yield (0,_Api_GetAllLinkerConnectionsFromTheConcept__WEBPACK_IMPORTED_MODULE_0__.GetAllLinkerConnectionsFromTheConcept)(id);
13060
13297
  for (let i = 0; i < externalConnections.length; i++) {
@@ -13082,9 +13319,14 @@ function DeleteConnectionByType(id, linker) {
13082
13319
  function GetAllTheConnectionsByTypeAndOfTheConcept(id_1, linker_1) {
13083
13320
  return __awaiter(this, arguments, void 0, function* (id, linker, reverse = false) {
13084
13321
  if (_app__WEBPACK_IMPORTED_MODULE_2__.serviceWorker) {
13085
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_2__.sendMessage)('GetAllTheConnectionsByTypeAndOfTheConcept', { id, linker, reverse });
13086
- // console.log('data received from sw', res)
13087
- return res.data;
13322
+ try {
13323
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_2__.sendMessage)('GetAllTheConnectionsByTypeAndOfTheConcept', { id, linker, reverse });
13324
+ return res.data;
13325
+ }
13326
+ catch (error) {
13327
+ console.error('GetAllTheConnectionsByTypeAndOfTheConcept sw error: ', error);
13328
+ (0,_app__WEBPACK_IMPORTED_MODULE_2__.handleServiceWorkerException)(error);
13329
+ }
13088
13330
  }
13089
13331
  let toDelete = [];
13090
13332
  if (reverse) {
@@ -13186,18 +13428,29 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
13186
13428
 
13187
13429
  function FindConnectionsOfCompositionsBulkInMemory() {
13188
13430
  return __awaiter(this, arguments, void 0, function* (composition_ids = []) {
13189
- if (_app__WEBPACK_IMPORTED_MODULE_0__.serviceWorker) {
13190
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.sendMessage)('FindConnectionsOfCompositionsBulkInMemory', { composition_ids });
13191
- // console.log('data received from sw', res)
13192
- return res.data;
13193
- }
13194
13431
  let FinalConnectionList = [];
13195
- for (let i = 0; i < composition_ids.length; i++) {
13196
- // let connectionList = await ConnectionData.GetConnectionsOfCompositionLocal(composition_ids[i]);
13197
- let connectionList = yield _DataStructures_ConnectionData__WEBPACK_IMPORTED_MODULE_1__.ConnectionData.GetConnectionsOfConcept(composition_ids[i]);
13198
- FinalConnectionList.push(...connectionList);
13432
+ try {
13433
+ if (_app__WEBPACK_IMPORTED_MODULE_0__.serviceWorker) {
13434
+ try {
13435
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.sendMessage)('FindConnectionsOfCompositionsBulkInMemory', { composition_ids });
13436
+ return res.data;
13437
+ }
13438
+ catch (error) {
13439
+ console.error('FindConnectionsOfCompositionsBulkInMemory sw error: ', error);
13440
+ (0,_app__WEBPACK_IMPORTED_MODULE_0__.handleServiceWorkerException)(error);
13441
+ }
13442
+ }
13443
+ for (let i = 0; i < composition_ids.length; i++) {
13444
+ // let connectionList = await ConnectionData.GetConnectionsOfCompositionLocal(composition_ids[i]);
13445
+ let connectionList = yield _DataStructures_ConnectionData__WEBPACK_IMPORTED_MODULE_1__.ConnectionData.GetConnectionsOfConcept(composition_ids[i]);
13446
+ FinalConnectionList.push(...connectionList);
13447
+ }
13448
+ return FinalConnectionList;
13449
+ }
13450
+ catch (error) {
13451
+ console.error('FindConnectionsOfCompositionsBulkInMemory error: ', error);
13452
+ return FinalConnectionList;
13199
13453
  }
13200
- return FinalConnectionList;
13201
13454
  });
13202
13455
  }
13203
13456
 
@@ -13254,22 +13507,31 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
13254
13507
 
13255
13508
  function GetCompositionById(id) {
13256
13509
  return __awaiter(this, void 0, void 0, function* () {
13257
- if (_app__WEBPACK_IMPORTED_MODULE_4__.serviceWorker) {
13258
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_4__.sendMessage)('GetCompositionById', { id });
13259
- // console.log('data received from sw', res)
13260
- return res.data;
13261
- }
13262
- let connectionList = [];
13263
- let returnOutput = {};
13264
- let connectionListString = yield (0,_Api_GetAllConnectionsOfComposition__WEBPACK_IMPORTED_MODULE_1__.GetAllConnectionsOfComposition)(id);
13265
- connectionList = connectionListString;
13266
- let compositionList = [];
13267
- for (let i = 0; i < connectionList.length; i++) {
13268
- if (!compositionList.includes(connectionList[i].ofTheConceptId)) {
13269
- compositionList.push(connectionList[i].ofTheConceptId);
13510
+ let returnOutput = { connectionList: [], compositionList: [] };
13511
+ try {
13512
+ if (_app__WEBPACK_IMPORTED_MODULE_4__.serviceWorker) {
13513
+ try {
13514
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_4__.sendMessage)('GetCompositionById', { id });
13515
+ return res.data;
13516
+ }
13517
+ catch (error) {
13518
+ console.error('GetCompositionById error sw: ', error);
13519
+ (0,_app__WEBPACK_IMPORTED_MODULE_4__.handleServiceWorkerException)(error);
13520
+ }
13521
+ }
13522
+ let connectionListString = yield (0,_Api_GetAllConnectionsOfComposition__WEBPACK_IMPORTED_MODULE_1__.GetAllConnectionsOfComposition)(id);
13523
+ returnOutput.connectionList = connectionListString;
13524
+ for (let i = 0; i < returnOutput.connectionList.length; i++) {
13525
+ if (!returnOutput.compositionList.includes(returnOutput.connectionList[i].ofTheConceptId)) {
13526
+ returnOutput.compositionList.push(returnOutput.connectionList[i].ofTheConceptId);
13527
+ }
13270
13528
  }
13529
+ return returnOutput;
13530
+ }
13531
+ catch (error) {
13532
+ console.error('GetCompositionById error: ', error);
13533
+ return returnOutput;
13271
13534
  }
13272
- return { "connectionList": connectionList, "compositionList": compositionList };
13273
13535
  });
13274
13536
  }
13275
13537
  /**
@@ -13358,9 +13620,14 @@ function GetComposition(id) {
13358
13620
  return __awaiter(this, void 0, void 0, function* () {
13359
13621
  var _a, _b;
13360
13622
  if (_app__WEBPACK_IMPORTED_MODULE_4__.serviceWorker) {
13361
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_4__.sendMessage)('GetComposition', { id });
13362
- // console.log('data received from sw', res)
13363
- return res.data;
13623
+ try {
13624
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_4__.sendMessage)('GetComposition', { id });
13625
+ return res.data;
13626
+ }
13627
+ catch (error) {
13628
+ console.error('GetComposition error sw: ', error);
13629
+ (0,_app__WEBPACK_IMPORTED_MODULE_4__.handleServiceWorkerException)(error);
13630
+ }
13364
13631
  }
13365
13632
  let connectionList = [];
13366
13633
  let returnOutput = {};
@@ -13422,9 +13689,14 @@ function GetCompositionFromMemory(id) {
13422
13689
  return __awaiter(this, void 0, void 0, function* () {
13423
13690
  var _a, _b;
13424
13691
  if (_app__WEBPACK_IMPORTED_MODULE_4__.serviceWorker) {
13425
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_4__.sendMessage)('GetCompositionFromMemory', { id });
13426
- // console.log('data received from sw', res)
13427
- return res.data;
13692
+ try {
13693
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_4__.sendMessage)('GetCompositionFromMemory', { id });
13694
+ return res.data;
13695
+ }
13696
+ catch (error) {
13697
+ console.error('GetCompositionFromMemory error sw: ', error);
13698
+ (0,_app__WEBPACK_IMPORTED_MODULE_4__.handleServiceWorkerException)(error);
13699
+ }
13428
13700
  }
13429
13701
  let connectionList = [];
13430
13702
  let returnOutput = {};
@@ -13460,9 +13732,14 @@ function GetCompositionFromMemoryNormal(id) {
13460
13732
  return __awaiter(this, void 0, void 0, function* () {
13461
13733
  var _a, _b;
13462
13734
  if (_app__WEBPACK_IMPORTED_MODULE_4__.serviceWorker) {
13463
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_4__.sendMessage)('GetCompositionFromMemoryNormal', { id });
13464
- // console.log('data received from sw', res)
13465
- return res.data;
13735
+ try {
13736
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_4__.sendMessage)('GetCompositionFromMemoryNormal', { id });
13737
+ return res.data;
13738
+ }
13739
+ catch (error) {
13740
+ console.error('GetCompositionFromMemoryNormal error sw: ', error);
13741
+ (0,_app__WEBPACK_IMPORTED_MODULE_4__.handleServiceWorkerException)(error);
13742
+ }
13466
13743
  }
13467
13744
  let connectionList = [];
13468
13745
  let returnOutput = {};
@@ -13496,9 +13773,14 @@ function GetCompositionWithIdFromMemory(id) {
13496
13773
  return __awaiter(this, void 0, void 0, function* () {
13497
13774
  var _a, _b;
13498
13775
  if (_app__WEBPACK_IMPORTED_MODULE_4__.serviceWorker) {
13499
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_4__.sendMessage)('GetCompositionWithIdFromMemory', { id });
13500
- // console.log('data received from sw', res)
13501
- return res.data;
13776
+ try {
13777
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_4__.sendMessage)('GetCompositionWithIdFromMemory', { id });
13778
+ return res.data;
13779
+ }
13780
+ catch (error) {
13781
+ console.error('GetCompositionWithIdFromMemory error sw: ', error);
13782
+ (0,_app__WEBPACK_IMPORTED_MODULE_4__.handleServiceWorkerException)(error);
13783
+ }
13502
13784
  }
13503
13785
  let FinalReturn = {};
13504
13786
  let connectionList = [];
@@ -13541,9 +13823,14 @@ function GetCompositionFromMemoryWithConnections(id, connectionList) {
13541
13823
  return __awaiter(this, void 0, void 0, function* () {
13542
13824
  var _a, _b;
13543
13825
  if (_app__WEBPACK_IMPORTED_MODULE_4__.serviceWorker) {
13544
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_4__.sendMessage)('GetCompositionFromMemoryWithConnections', { id, connectionList });
13545
- // console.log('data received from sw', res)
13546
- return res.data;
13826
+ try {
13827
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_4__.sendMessage)('GetCompositionFromMemoryWithConnections', { id, connectionList });
13828
+ return res.data;
13829
+ }
13830
+ catch (error) {
13831
+ console.error('GetCompositionFromMemoryWithConnections error sw: ', error);
13832
+ (0,_app__WEBPACK_IMPORTED_MODULE_4__.handleServiceWorkerException)(error);
13833
+ }
13547
13834
  }
13548
13835
  let returnOutput = {};
13549
13836
  // connectionList = await ConnectionData.GetConnectionsOfConcept(id);
@@ -13579,9 +13866,14 @@ function GetCompositionWithIdFromMemoryFromConnection(id, connectionList) {
13579
13866
  return __awaiter(this, void 0, void 0, function* () {
13580
13867
  var _a, _b;
13581
13868
  if (_app__WEBPACK_IMPORTED_MODULE_4__.serviceWorker) {
13582
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_4__.sendMessage)('GetCompositionWithIdFromMemory', { id });
13583
- // console.log('data received from sw', res)
13584
- return res.data;
13869
+ try {
13870
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_4__.sendMessage)('GetCompositionWithIdFromMemory', { id });
13871
+ return res.data;
13872
+ }
13873
+ catch (error) {
13874
+ console.error('GetCompositionWithIdFromMemory error sw: ', error);
13875
+ (0,_app__WEBPACK_IMPORTED_MODULE_4__.handleServiceWorkerException)(error);
13876
+ }
13585
13877
  }
13586
13878
  let returnOutput = {};
13587
13879
  // connectionList = await ConnectionData.GetConnectionsOfConcept(id);
@@ -13619,9 +13911,14 @@ function GetCompositionWithIdFromMemoryNew(id) {
13619
13911
  return __awaiter(this, void 0, void 0, function* () {
13620
13912
  var _a, _b;
13621
13913
  if (_app__WEBPACK_IMPORTED_MODULE_4__.serviceWorker) {
13622
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_4__.sendMessage)('GetCompositionWithIdFromMemoryNew', { id });
13623
- // console.log('data received from sw', res)
13624
- return res.data;
13914
+ try {
13915
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_4__.sendMessage)('GetCompositionWithIdFromMemoryNew', { id });
13916
+ return res.data;
13917
+ }
13918
+ catch (error) {
13919
+ console.error('GetCompositionWithIdFromMemoryNew error sw: ', error);
13920
+ (0,_app__WEBPACK_IMPORTED_MODULE_4__.handleServiceWorkerException)(error);
13921
+ }
13625
13922
  }
13626
13923
  let connectionList = [];
13627
13924
  let returnOutput = {};
@@ -13663,9 +13960,14 @@ function GetCompositionWithIdAndDateFromMemory(id) {
13663
13960
  return __awaiter(this, void 0, void 0, function* () {
13664
13961
  var _a, _b;
13665
13962
  if (_app__WEBPACK_IMPORTED_MODULE_4__.serviceWorker) {
13666
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_4__.sendMessage)('GetCompositionWithIdAndDateFromMemory', { id });
13667
- // console.log('data received from sw', res)
13668
- return res.data;
13963
+ try {
13964
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_4__.sendMessage)('GetCompositionWithIdAndDateFromMemory', { id });
13965
+ return res.data;
13966
+ }
13967
+ catch (error) {
13968
+ console.error('GetCompositionWithIdAndDateFromMemory error sw: ', error);
13969
+ (0,_app__WEBPACK_IMPORTED_MODULE_4__.handleServiceWorkerException)(error);
13970
+ }
13669
13971
  }
13670
13972
  let connectionList = [];
13671
13973
  let returnOutput = {};
@@ -13727,9 +14029,14 @@ function GetCompositionWithId(id) {
13727
14029
  return __awaiter(this, void 0, void 0, function* () {
13728
14030
  var _a, _b;
13729
14031
  if (_app__WEBPACK_IMPORTED_MODULE_4__.serviceWorker) {
13730
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_4__.sendMessage)('GetCompositionWithId', { id });
13731
- // console.log('data received from sw', res)
13732
- return res.data;
14032
+ try {
14033
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_4__.sendMessage)('GetCompositionWithId', { id });
14034
+ return res.data;
14035
+ }
14036
+ catch (error) {
14037
+ console.error('GetCompositionWithId error sw: ', error);
14038
+ (0,_app__WEBPACK_IMPORTED_MODULE_4__.handleServiceWorkerException)(error);
14039
+ }
13733
14040
  }
13734
14041
  let connectionList = [];
13735
14042
  let returnOutput = {};
@@ -14228,12 +14535,17 @@ function GetCompositionBulkWithDataId() {
14228
14535
  function GetCompositionFromConnectionsWithDataId() {
14229
14536
  return __awaiter(this, arguments, void 0, function* (conceptIds = [], connectionIds = []) {
14230
14537
  if (_app__WEBPACK_IMPORTED_MODULE_2__.serviceWorker) {
14231
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_2__.sendMessage)('GetCompositionFromConnectionsWithDataId', { conceptIds, connectionIds });
14232
- // console.log('data received from sw', res)
14233
- return res.data;
14538
+ try {
14539
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_2__.sendMessage)('GetCompositionFromConnectionsWithDataId', { conceptIds, connectionIds });
14540
+ return res.data;
14541
+ }
14542
+ catch (error) {
14543
+ console.error('GetCompositionFromConnectionsWithDataId error sw: ', error);
14544
+ (0,_app__WEBPACK_IMPORTED_MODULE_2__.handleServiceWorkerException)(error);
14545
+ }
14234
14546
  }
14235
- let newConnections = yield (0,_Api_GetConnectionBulk__WEBPACK_IMPORTED_MODULE_1__.GetConnectionBulk)(connectionIds);
14236
- let oldConnections = yield (0,_FindConnectionsOfCompositionBulkInMemory__WEBPACK_IMPORTED_MODULE_3__.FindConnectionsOfCompositionsBulkInMemory)(conceptIds);
14547
+ // let newConnections = await GetConnectionBulk(connectionIds);
14548
+ // let oldConnections = await FindConnectionsOfCompositionsBulkInMemory(conceptIds);
14237
14549
  //CheckForConnectionDeletionWithIds(connectionIds,oldConnections);
14238
14550
  let compositions = [];
14239
14551
  for (let i = 0; i < conceptIds.length; i++) {
@@ -14255,9 +14567,14 @@ function GetCompositionFromConnectionsWithDataId() {
14255
14567
  function GetCompositionFromConnectionsWithDataIdFromConnections() {
14256
14568
  return __awaiter(this, arguments, void 0, function* (conceptIds = [], connectionIds = []) {
14257
14569
  if (_app__WEBPACK_IMPORTED_MODULE_2__.serviceWorker) {
14258
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_2__.sendMessage)('GetCompositionFromConnectionsWithDataIdFromConnections', { conceptIds, connectionIds });
14259
- // console.log('data received from sw', res)
14260
- return res.data;
14570
+ try {
14571
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_2__.sendMessage)('GetCompositionFromConnectionsWithDataIdFromConnections', { conceptIds, connectionIds });
14572
+ return res.data;
14573
+ }
14574
+ catch (error) {
14575
+ console.error('GetCompositionFromConnectionsWithDataIdFromConnections error sw: ', error);
14576
+ (0,_app__WEBPACK_IMPORTED_MODULE_2__.handleServiceWorkerException)(error);
14577
+ }
14261
14578
  }
14262
14579
  let newConnections = yield (0,_Api_GetConnectionBulk__WEBPACK_IMPORTED_MODULE_1__.GetConnectionBulk)(connectionIds);
14263
14580
  //CheckForConnectionDeletionWithIds(connectionIds,oldConnections);
@@ -14279,9 +14596,14 @@ function GetCompositionFromConnectionsWithDataIdFromConnections() {
14279
14596
  function GetCompositionFromConnectionsWithDataIdIndex() {
14280
14597
  return __awaiter(this, arguments, void 0, function* (conceptIds = [], connectionIds = []) {
14281
14598
  if (_app__WEBPACK_IMPORTED_MODULE_2__.serviceWorker) {
14282
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_2__.sendMessage)('GetCompositionFromConnectionsWithDataIdIndex', { conceptIds, connectionIds });
14283
- // console.log('data received from sw', res)
14284
- return res.data;
14599
+ try {
14600
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_2__.sendMessage)('GetCompositionFromConnectionsWithDataIdIndex', { conceptIds, connectionIds });
14601
+ return res.data;
14602
+ }
14603
+ catch (error) {
14604
+ console.error('GetCompositionFromConnectionsWithDataIdIndex error sw: ', error);
14605
+ (0,_app__WEBPACK_IMPORTED_MODULE_2__.handleServiceWorkerException)(error);
14606
+ }
14285
14607
  }
14286
14608
  let newConnections = yield (0,_Api_GetConnectionBulk__WEBPACK_IMPORTED_MODULE_1__.GetConnectionBulk)(connectionIds);
14287
14609
  let myNewConnections = newConnections;
@@ -14328,9 +14650,14 @@ function GetCompositionFromConnectionsWithIndex() {
14328
14650
  function GetCompositionFromConnectionsWithIndexFromConnections() {
14329
14651
  return __awaiter(this, arguments, void 0, function* (conceptIds = [], connectionIds = []) {
14330
14652
  if (_app__WEBPACK_IMPORTED_MODULE_2__.serviceWorker) {
14331
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_2__.sendMessage)('GetCompositionFromConnectionsWithIndexFromConnections', { conceptIds, connectionIds });
14332
- // console.log('data received from sw', res)
14333
- return res.data;
14653
+ try {
14654
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_2__.sendMessage)('GetCompositionFromConnectionsWithIndexFromConnections', { conceptIds, connectionIds });
14655
+ return res.data;
14656
+ }
14657
+ catch (error) {
14658
+ console.error('GetCompositionFromConnectionsWithIndexFromConnections error sw: ', error);
14659
+ (0,_app__WEBPACK_IMPORTED_MODULE_2__.handleServiceWorkerException)(error);
14660
+ }
14334
14661
  }
14335
14662
  let newConnections = yield (0,_Api_GetConnectionBulk__WEBPACK_IMPORTED_MODULE_1__.GetConnectionBulk)(connectionIds);
14336
14663
  //CheckForConnectionDeletionWithIds(connectionIds,oldConnections);
@@ -14350,9 +14677,14 @@ function GetCompositionFromConnectionsWithIndexFromConnections() {
14350
14677
  function GetConnectionDataPrefetch(connectionIds) {
14351
14678
  return __awaiter(this, void 0, void 0, function* () {
14352
14679
  if (_app__WEBPACK_IMPORTED_MODULE_2__.serviceWorker) {
14353
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_2__.sendMessage)('GetConnectionDataPrefetch', { connectionIds });
14354
- // console.log('data received from sw', res)
14355
- return res.data;
14680
+ try {
14681
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_2__.sendMessage)('GetConnectionDataPrefetch', { connectionIds });
14682
+ return res.data;
14683
+ }
14684
+ catch (error) {
14685
+ console.error('GetConnectionDataPrefetch error sw: ', error);
14686
+ (0,_app__WEBPACK_IMPORTED_MODULE_2__.handleServiceWorkerException)(error);
14687
+ }
14356
14688
  }
14357
14689
  let remainingConnections = [];
14358
14690
  let connectionsAll = [];
@@ -14519,9 +14851,14 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
14519
14851
  function GetCompositionList(compositionName_1, userId_1) {
14520
14852
  return __awaiter(this, arguments, void 0, function* (compositionName, userId, inpage = 10, page = 1) {
14521
14853
  if (_app__WEBPACK_IMPORTED_MODULE_4__.serviceWorker) {
14522
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_4__.sendMessage)('GetCompositionList', { compositionName, userId, inpage, page });
14523
- // console.log('data received from sw', res)
14524
- return res.data;
14854
+ try {
14855
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_4__.sendMessage)('GetCompositionList', { compositionName, userId, inpage, page });
14856
+ return res.data;
14857
+ }
14858
+ catch (error) {
14859
+ console.error('GetCompositionList sw error: ', error);
14860
+ (0,_app__WEBPACK_IMPORTED_MODULE_4__.handleServiceWorkerException)(error);
14861
+ }
14525
14862
  }
14526
14863
  let concept = yield (0,_GetConceptByCharacter__WEBPACK_IMPORTED_MODULE_6__["default"])(compositionName);
14527
14864
  let CompositionList = [];
@@ -14591,9 +14928,14 @@ function GetCompositionListAll(compositionName_1, userId_1) {
14591
14928
  function GetCompositionListAllWithId(compositionName_1, userId_1) {
14592
14929
  return __awaiter(this, arguments, void 0, function* (compositionName, userId, inpage = 10, page = 1) {
14593
14930
  if (_app__WEBPACK_IMPORTED_MODULE_4__.serviceWorker) {
14594
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_4__.sendMessage)('GetCompositionListAllWithId', { compositionName, userId, inpage, page });
14595
- // console.log('data received from sw', res)
14596
- return res.data;
14931
+ try {
14932
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_4__.sendMessage)('GetCompositionListAllWithId', { compositionName, userId, inpage, page });
14933
+ return res.data;
14934
+ }
14935
+ catch (error) {
14936
+ console.error('GetCompositionListAllWithId sw error: ', error);
14937
+ (0,_app__WEBPACK_IMPORTED_MODULE_4__.handleServiceWorkerException)(error);
14938
+ }
14597
14939
  }
14598
14940
  let conceptLocal = yield (0,_Local_GetConceptByCharacterLocal__WEBPACK_IMPORTED_MODULE_7__["default"])(compositionName);
14599
14941
  let conceptOnline = yield (0,_GetConceptByCharacter__WEBPACK_IMPORTED_MODULE_6__["default"])(compositionName);
@@ -14630,9 +14972,14 @@ function GetCompositionListAllWithId(compositionName_1, userId_1) {
14630
14972
  function GetCompositionListWithId(compositionName_1, userId_1) {
14631
14973
  return __awaiter(this, arguments, void 0, function* (compositionName, userId, inpage = 10, page = 1) {
14632
14974
  if (_app__WEBPACK_IMPORTED_MODULE_4__.serviceWorker) {
14633
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_4__.sendMessage)('GetCompositionListWithId', { compositionName, userId, inpage, page });
14634
- // console.log('data received from sw', res)
14635
- return res.data;
14975
+ try {
14976
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_4__.sendMessage)('GetCompositionListWithId', { compositionName, userId, inpage, page });
14977
+ return res.data;
14978
+ }
14979
+ catch (error) {
14980
+ console.error('GetCompositionListWithId sw error: ', error);
14981
+ (0,_app__WEBPACK_IMPORTED_MODULE_4__.handleServiceWorkerException)(error);
14982
+ }
14636
14983
  }
14637
14984
  let concept = yield (0,_GetConceptByCharacter__WEBPACK_IMPORTED_MODULE_6__["default"])(compositionName);
14638
14985
  let CompositionList = [];
@@ -14740,9 +15087,14 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
14740
15087
  function GetConceptByCharacter(characterValue) {
14741
15088
  return __awaiter(this, void 0, void 0, function* () {
14742
15089
  if (_app__WEBPACK_IMPORTED_MODULE_1__.serviceWorker) {
14743
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_1__.sendMessage)('GetConceptByCharacter', { characterValue });
14744
- // console.log('data received from sw', res)
14745
- return res.data;
15090
+ try {
15091
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_1__.sendMessage)('GetConceptByCharacter', { characterValue });
15092
+ return res.data;
15093
+ }
15094
+ catch (error) {
15095
+ console.error('GetConceptByCharacter sw error: ', error);
15096
+ (0,_app__WEBPACK_IMPORTED_MODULE_1__.handleServiceWorkerException)(error);
15097
+ }
14746
15098
  }
14747
15099
  let concept = yield _DataStructures_ConceptData__WEBPACK_IMPORTED_MODULE_2__.ConceptsData.GetConceptByCharacter(characterValue);
14748
15100
  let literalCharacter = `${characterValue}`;
@@ -14759,9 +15111,14 @@ function GetConceptByCharacter(characterValue) {
14759
15111
  function GetConceptByCharacterUpdated(characterValue) {
14760
15112
  return __awaiter(this, void 0, void 0, function* () {
14761
15113
  if (_app__WEBPACK_IMPORTED_MODULE_1__.serviceWorker) {
14762
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_1__.sendMessage)('GetConceptByCharacterUpdated', { characterValue });
14763
- // console.log('data received from sw', res)
14764
- return res.data;
15114
+ try {
15115
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_1__.sendMessage)('GetConceptByCharacterUpdated', { characterValue });
15116
+ return res.data;
15117
+ }
15118
+ catch (error) {
15119
+ console.error('GetConceptByCharacterUpdated error sw: ', error);
15120
+ (0,_app__WEBPACK_IMPORTED_MODULE_1__.handleServiceWorkerException)(error);
15121
+ }
14765
15122
  }
14766
15123
  let concept = yield _DataStructures_ConceptData__WEBPACK_IMPORTED_MODULE_2__.ConceptsData.GetConceptByCharacter(characterValue);
14767
15124
  let literalCharacter = `${characterValue}`;
@@ -14814,9 +15171,14 @@ function GetConnectionBetweenTwoConceptsLinker(ofTheConcept_1, toTheConcept_1, l
14814
15171
  return __awaiter(this, arguments, void 0, function* (ofTheConcept, toTheConcept, linker, fullLinker, forward = true) {
14815
15172
  var _a, _b;
14816
15173
  if (_app__WEBPACK_IMPORTED_MODULE_1__.serviceWorker) {
14817
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_1__.sendMessage)('GetConnectionBetweenTwoConceptsLinker', { ofTheConcept, toTheConcept, linker, fullLinker, forward });
14818
- // console.log('data received from sw', res)
14819
- return res.data;
15174
+ try {
15175
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_1__.sendMessage)('GetConnectionBetweenTwoConceptsLinker', { ofTheConcept, toTheConcept, linker, fullLinker, forward });
15176
+ return res.data;
15177
+ }
15178
+ catch (error) {
15179
+ console.error('GetConnectionBetweenTwoConceptsLinker sw error: ', error);
15180
+ (0,_app__WEBPACK_IMPORTED_MODULE_1__.handleServiceWorkerException)(error);
15181
+ }
14820
15182
  }
14821
15183
  let typeConcept = (0,_app__WEBPACK_IMPORTED_MODULE_1__.CreateDefaultConcept)();
14822
15184
  if (linker != "") {
@@ -14881,17 +15243,24 @@ function GetConnectionById(id) {
14881
15243
  return __awaiter(this, void 0, void 0, function* () {
14882
15244
  let startTime = performance.now();
14883
15245
  // Add connection id in access tracker
14884
- try {
14885
- _AccessTracker_accessTracker__WEBPACK_IMPORTED_MODULE_0__.AccessTracker.incrementConnection(id);
14886
- }
14887
- catch (_a) {
14888
- console.error("Error adding connection in access tracker");
14889
- _app__WEBPACK_IMPORTED_MODULE_2__.Logger.log("ERROR", "Error Adding Connection");
15246
+ if (_AccessTracker_accessTracker__WEBPACK_IMPORTED_MODULE_0__.AccessTracker.activateStatus === true) {
15247
+ try {
15248
+ _AccessTracker_accessTracker__WEBPACK_IMPORTED_MODULE_0__.AccessTracker.incrementConnection(id);
15249
+ }
15250
+ catch (_a) {
15251
+ console.error("Error adding connection in access tracker");
15252
+ _app__WEBPACK_IMPORTED_MODULE_2__.Logger.log("ERROR", "Error Adding Connection");
15253
+ }
14890
15254
  }
14891
15255
  if (_app__WEBPACK_IMPORTED_MODULE_2__.serviceWorker) {
14892
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_2__.sendMessage)('GetConnectionById', { id });
14893
- // console.log('data received from sw', res)
14894
- return res.data;
15256
+ try {
15257
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_2__.sendMessage)('GetConnectionById', { id });
15258
+ return res.data;
15259
+ }
15260
+ catch (error) {
15261
+ console.error('GetConnectionById sw error: ', error);
15262
+ (0,_app__WEBPACK_IMPORTED_MODULE_2__.handleServiceWorkerException)(error);
15263
+ }
14895
15264
  }
14896
15265
  let connection = yield _DataStructures_ConnectionData__WEBPACK_IMPORTED_MODULE_3__.ConnectionData.GetConnection(id);
14897
15266
  if ((connection == null || connection.id == 0) && id != null && id != undefined) {
@@ -15018,12 +15387,14 @@ function GetLink(id_1, linker_1) {
15018
15387
  var _a;
15019
15388
  let startTime = performance.now();
15020
15389
  if (_app__WEBPACK_IMPORTED_MODULE_5__.serviceWorker) {
15021
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_5__.sendMessage)('GetLink', { id, linker, inpage, page });
15022
- console.log('data received from sw', res);
15023
- // Add Log
15024
- // Logger.logInfo(startTime, "unknown", "read", "unknown", undefined, 200, res, "GetLink", ['id', 'linker', 'inpage', 'page'], "unknown", undefined )
15025
- // console.log('data received from sw', res)
15026
- return res.data;
15390
+ try {
15391
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_5__.sendMessage)('GetLink', { id, linker, inpage, page });
15392
+ return res.data;
15393
+ }
15394
+ catch (error) {
15395
+ console.error('GetLink sw error: ', error);
15396
+ (0,_app__WEBPACK_IMPORTED_MODULE_5__.handleServiceWorkerException)(error);
15397
+ }
15027
15398
  }
15028
15399
  let output = [];
15029
15400
  let concept = yield (0,_GetTheConcept__WEBPACK_IMPORTED_MODULE_3__["default"])(id);
@@ -15167,9 +15538,14 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
15167
15538
  function GetRelation(id_1, relation_1) {
15168
15539
  return __awaiter(this, arguments, void 0, function* (id, relation, inpage = 10, page = 1) {
15169
15540
  if (_app__WEBPACK_IMPORTED_MODULE_5__.serviceWorker) {
15170
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_5__.sendMessage)('GetRelation', { id, relation, inpage, page });
15171
- // console.log('data received from sw', res)
15172
- return res.data;
15541
+ try {
15542
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_5__.sendMessage)('GetRelation', { id, relation, inpage, page });
15543
+ return res.data;
15544
+ }
15545
+ catch (error) {
15546
+ console.error('GetRelation error sw: ', error);
15547
+ (0,_app__WEBPACK_IMPORTED_MODULE_5__.handleServiceWorkerException)(error);
15548
+ }
15173
15549
  }
15174
15550
  let output = [];
15175
15551
  let concept = yield (0,_GetTheConcept__WEBPACK_IMPORTED_MODULE_2__["default"])(id);
@@ -15196,9 +15572,14 @@ function GetRelation(id_1, relation_1) {
15196
15572
  function GetRelationRaw(id_1, relation_1) {
15197
15573
  return __awaiter(this, arguments, void 0, function* (id, relation, inpage = 10, page = 1) {
15198
15574
  if (_app__WEBPACK_IMPORTED_MODULE_5__.serviceWorker) {
15199
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_5__.sendMessage)('GetRelationRaw', { id, relation, inpage, page });
15200
- // console.log('data received from sw', res)
15201
- return res.data;
15575
+ try {
15576
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_5__.sendMessage)('GetRelationRaw', { id, relation, inpage, page });
15577
+ return res.data;
15578
+ }
15579
+ catch (error) {
15580
+ console.error('GetRelationRaw error sw: ', error);
15581
+ (0,_app__WEBPACK_IMPORTED_MODULE_5__.handleServiceWorkerException)(error);
15582
+ }
15202
15583
  }
15203
15584
  let output = [];
15204
15585
  let concept = yield (0,_GetTheConcept__WEBPACK_IMPORTED_MODULE_2__["default"])(id);
@@ -15264,16 +15645,23 @@ function GetTheConcept(id_1) {
15264
15645
  let startTime = performance.now();
15265
15646
  try {
15266
15647
  // Add concept id in access tracker
15267
- try {
15268
- _AccessTracker_accessTracker__WEBPACK_IMPORTED_MODULE_0__.AccessTracker.incrementConcept(id);
15269
- }
15270
- catch (_a) {
15271
- console.error("Error adding concepts in access tracker");
15648
+ if (_AccessTracker_accessTracker__WEBPACK_IMPORTED_MODULE_0__.AccessTracker.activateStatus === true) {
15649
+ try {
15650
+ _AccessTracker_accessTracker__WEBPACK_IMPORTED_MODULE_0__.AccessTracker.incrementConcept(id);
15651
+ }
15652
+ catch (_a) {
15653
+ console.error("Error adding concepts in access tracker");
15654
+ }
15272
15655
  }
15273
15656
  if (_app__WEBPACK_IMPORTED_MODULE_2__.serviceWorker) {
15274
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_2__.sendMessage)('GetTheConcept', { id, userId });
15275
- // console.log('data received from sw', res)
15276
- return res.data;
15657
+ try {
15658
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_2__.sendMessage)('GetTheConcept', { id, userId });
15659
+ return res.data;
15660
+ }
15661
+ catch (error) {
15662
+ console.error('GetTheConcept sw error: ', error);
15663
+ (0,_app__WEBPACK_IMPORTED_MODULE_2__.handleServiceWorkerException)(error);
15664
+ }
15277
15665
  }
15278
15666
  let concept = (0,_CreateDefaultConcept__WEBPACK_IMPORTED_MODULE_4__.CreateDefaultConcept)();
15279
15667
  if (id < 0) {
@@ -15434,13 +15822,18 @@ function CreateConnectionBetweenTwoConceptsLocal(ofTheConcept_1, toTheConcept_1,
15434
15822
  let startTime = performance.now();
15435
15823
  try {
15436
15824
  if (_app__WEBPACK_IMPORTED_MODULE_0__.serviceWorker) {
15437
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.sendMessage)('CreateConnectionBetweenTwoConceptsLocal', { ofTheConcept, toTheConcept, linker, both, actions });
15438
- // console.log('data received from sw', res)
15439
- if ((_b = (_a = res === null || res === void 0 ? void 0 : res.actions) === null || _a === void 0 ? void 0 : _a.concepts) === null || _b === void 0 ? void 0 : _b.length)
15440
- actions.concepts = JSON.parse(JSON.stringify(res.actions.concepts));
15441
- if ((_d = (_c = res === null || res === void 0 ? void 0 : res.actions) === null || _c === void 0 ? void 0 : _c.connections) === null || _d === void 0 ? void 0 : _d.length)
15442
- actions.connections = JSON.parse(JSON.stringify(res.actions.connections));
15443
- return res.data;
15825
+ try {
15826
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.sendMessage)('CreateConnectionBetweenTwoConceptsLocal', { ofTheConcept, toTheConcept, linker, both, actions });
15827
+ if ((_b = (_a = res === null || res === void 0 ? void 0 : res.actions) === null || _a === void 0 ? void 0 : _a.concepts) === null || _b === void 0 ? void 0 : _b.length)
15828
+ actions.concepts = JSON.parse(JSON.stringify(res.actions.concepts));
15829
+ if ((_d = (_c = res === null || res === void 0 ? void 0 : res.actions) === null || _c === void 0 ? void 0 : _c.connections) === null || _d === void 0 ? void 0 : _d.length)
15830
+ actions.connections = JSON.parse(JSON.stringify(res.actions.connections));
15831
+ return res.data;
15832
+ }
15833
+ catch (error) {
15834
+ console.error('CreateConnectionBetweenTwoConceptsLocal sw error: ', error);
15835
+ (0,_app__WEBPACK_IMPORTED_MODULE_0__.handleServiceWorkerException)(error);
15836
+ }
15444
15837
  }
15445
15838
  var userId = ofTheConcept.userId;
15446
15839
  if (both) {
@@ -15729,15 +16122,19 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
15729
16122
  function CreateTheCompositionLocal(json_1) {
15730
16123
  return __awaiter(this, arguments, void 0, function* (json, ofTheConceptId = null, ofTheConceptUserId = null, mainKey = null, userId = null, accessId = null, sessionInformationId = null, automaticSync = false, actions = { concepts: [], connections: [] }) {
15731
16124
  var _a, _b, _c, _d;
15732
- let startTime = performance.now();
15733
16125
  if (_app__WEBPACK_IMPORTED_MODULE_0__.serviceWorker) {
15734
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.sendMessage)('CreateTheCompositionLocal', { json, ofTheConceptId, ofTheConceptUserId, mainKey, userId, accessId, sessionInformationId, actions });
15735
- // console.log('data received from sw', res)
15736
- if ((_b = (_a = res === null || res === void 0 ? void 0 : res.actions) === null || _a === void 0 ? void 0 : _a.concepts) === null || _b === void 0 ? void 0 : _b.length)
15737
- actions.concepts = JSON.parse(JSON.stringify(res.actions.concepts));
15738
- if ((_d = (_c = res === null || res === void 0 ? void 0 : res.actions) === null || _c === void 0 ? void 0 : _c.connections) === null || _d === void 0 ? void 0 : _d.length)
15739
- actions.connections = JSON.parse(JSON.stringify(res.actions.connections));
15740
- return res.data;
16126
+ try {
16127
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.sendMessage)('CreateTheCompositionLocal', { json, ofTheConceptId, ofTheConceptUserId, mainKey, userId, accessId, sessionInformationId, actions });
16128
+ if ((_b = (_a = res === null || res === void 0 ? void 0 : res.actions) === null || _a === void 0 ? void 0 : _a.concepts) === null || _b === void 0 ? void 0 : _b.length)
16129
+ actions.concepts = JSON.parse(JSON.stringify(res.actions.concepts));
16130
+ if ((_d = (_c = res === null || res === void 0 ? void 0 : res.actions) === null || _c === void 0 ? void 0 : _c.connections) === null || _d === void 0 ? void 0 : _d.length)
16131
+ actions.connections = JSON.parse(JSON.stringify(res.actions.connections));
16132
+ return res.data;
16133
+ }
16134
+ catch (error) {
16135
+ console.error('CreateTheCompositionLocal error sw: ', error);
16136
+ (0,_app__WEBPACK_IMPORTED_MODULE_0__.handleServiceWorkerException)(error);
16137
+ }
15741
16138
  }
15742
16139
  let localUserId = userId !== null && userId !== void 0 ? userId : 999;
15743
16140
  let localAccessId = accessId !== null && accessId !== void 0 ? accessId : 999;
@@ -15842,13 +16239,18 @@ function CreateTheConceptLocal(referent_1, typecharacter_1, userId_1, categoryId
15842
16239
  let startTime = performance.now();
15843
16240
  try {
15844
16241
  if (_app__WEBPACK_IMPORTED_MODULE_0__.serviceWorker) {
15845
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.sendMessage)('CreateTheConceptLocal', { referent, typecharacter, userId, categoryId, typeId, accessId, isComposition, referentId });
15846
- // console.log('data received from sw', res)
15847
- if ((_b = (_a = res === null || res === void 0 ? void 0 : res.actions) === null || _a === void 0 ? void 0 : _a.concepts) === null || _b === void 0 ? void 0 : _b.length)
15848
- actions.concepts = JSON.parse(JSON.stringify(res.actions.concepts));
15849
- if ((_d = (_c = res === null || res === void 0 ? void 0 : res.actions) === null || _c === void 0 ? void 0 : _c.connections) === null || _d === void 0 ? void 0 : _d.length)
15850
- actions.connections = JSON.parse(JSON.stringify(res.actions.connections));
15851
- return res.data;
16242
+ try {
16243
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.sendMessage)('CreateTheConceptLocal', { referent, typecharacter, userId, categoryId, typeId, accessId, isComposition, referentId });
16244
+ if ((_b = (_a = res === null || res === void 0 ? void 0 : res.actions) === null || _a === void 0 ? void 0 : _a.concepts) === null || _b === void 0 ? void 0 : _b.length)
16245
+ actions.concepts = JSON.parse(JSON.stringify(res.actions.concepts));
16246
+ if ((_d = (_c = res === null || res === void 0 ? void 0 : res.actions) === null || _c === void 0 ? void 0 : _c.connections) === null || _d === void 0 ? void 0 : _d.length)
16247
+ actions.connections = JSON.parse(JSON.stringify(res.actions.connections));
16248
+ return res.data;
16249
+ }
16250
+ catch (error) {
16251
+ console.error('CreateTheConceptLocal error sw: ', error);
16252
+ (0,_app__WEBPACK_IMPORTED_MODULE_0__.handleServiceWorkerException)(error);
16253
+ }
15852
16254
  }
15853
16255
  //let id = -Math.floor(Math.random() * 100000000);
15854
16256
  let id = yield _DataStructures_Local_LocalId__WEBPACK_IMPORTED_MODULE_3__.LocalId.getConceptId();
@@ -15927,13 +16329,18 @@ function CreateTheConnectionLocal(ofTheConceptId_1, toTheConceptId_1, typeId_1)
15927
16329
  var _a, _b, _c, _d;
15928
16330
  let startTime = performance.now();
15929
16331
  if (_app__WEBPACK_IMPORTED_MODULE_4__.serviceWorker) {
15930
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_4__.sendMessage)('CreateTheConnectionLocal', { ofTheConceptId, toTheConceptId, typeId, orderId, typeString, userId, actions });
15931
- // console.log('data received from sw', res)
15932
- if ((_b = (_a = res === null || res === void 0 ? void 0 : res.actions) === null || _a === void 0 ? void 0 : _a.concepts) === null || _b === void 0 ? void 0 : _b.length)
15933
- actions.concepts = JSON.parse(JSON.stringify(res.actions.concepts));
15934
- if ((_d = (_c = res === null || res === void 0 ? void 0 : res.actions) === null || _c === void 0 ? void 0 : _c.connections) === null || _d === void 0 ? void 0 : _d.length)
15935
- actions.connections = JSON.parse(JSON.stringify(res.actions.connections));
15936
- return res.data;
16332
+ try {
16333
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_4__.sendMessage)('CreateTheConnectionLocal', { ofTheConceptId, toTheConceptId, typeId, orderId, typeString, userId, actions });
16334
+ if ((_b = (_a = res === null || res === void 0 ? void 0 : res.actions) === null || _a === void 0 ? void 0 : _a.concepts) === null || _b === void 0 ? void 0 : _b.length)
16335
+ actions.concepts = JSON.parse(JSON.stringify(res.actions.concepts));
16336
+ if ((_d = (_c = res === null || res === void 0 ? void 0 : res.actions) === null || _c === void 0 ? void 0 : _c.connections) === null || _d === void 0 ? void 0 : _d.length)
16337
+ actions.connections = JSON.parse(JSON.stringify(res.actions.connections));
16338
+ return res.data;
16339
+ }
16340
+ catch (error) {
16341
+ console.log('CreateTheConnectionLocal error sw: ', error);
16342
+ (0,_app__WEBPACK_IMPORTED_MODULE_4__.handleServiceWorkerException)(error);
16343
+ }
15937
16344
  }
15938
16345
  try {
15939
16346
  let accessId = 4;
@@ -16009,9 +16416,14 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
16009
16416
  function DeleteConceptLocal(id) {
16010
16417
  return __awaiter(this, void 0, void 0, function* () {
16011
16418
  if (_app__WEBPACK_IMPORTED_MODULE_0__.serviceWorker) {
16012
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.sendMessage)('DeleteConceptLocal', { id });
16013
- // console.log('data received from sw', res)
16014
- return res.data;
16419
+ try {
16420
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.sendMessage)('DeleteConceptLocal', { id });
16421
+ return res.data;
16422
+ }
16423
+ catch (error) {
16424
+ console.error('DeleteConceptLocal error sw: ', error);
16425
+ (0,_app__WEBPACK_IMPORTED_MODULE_0__.handleServiceWorkerException)(error);
16426
+ }
16015
16427
  }
16016
16428
  let concept = yield (0,_GetTheConceptLocal__WEBPACK_IMPORTED_MODULE_2__.GetTheConceptLocal)(id);
16017
16429
  _DataStructures_Local_LocalConceptData__WEBPACK_IMPORTED_MODULE_1__.LocalConceptsData.RemoveConcept(concept);
@@ -16058,9 +16470,14 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
16058
16470
  function GetCompositionListLocal(compositionName, userId) {
16059
16471
  return __awaiter(this, void 0, void 0, function* () {
16060
16472
  if (_app__WEBPACK_IMPORTED_MODULE_0__.serviceWorker) {
16061
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.sendMessage)('GetCompositionListLocal', { compositionName, userId });
16062
- // console.log('data received from sw', res)
16063
- return res.data;
16473
+ try {
16474
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.sendMessage)('GetCompositionListLocal', { compositionName, userId });
16475
+ return res.data;
16476
+ }
16477
+ catch (error) {
16478
+ console.error('GetCompositionListLocal error sw: ', error);
16479
+ (0,_app__WEBPACK_IMPORTED_MODULE_0__.handleServiceWorkerException)(error);
16480
+ }
16064
16481
  }
16065
16482
  try {
16066
16483
  let concept = yield (0,_GetConceptByCharacterLocal__WEBPACK_IMPORTED_MODULE_3__["default"])(compositionName);
@@ -16088,9 +16505,14 @@ function GetCompositionListLocal(compositionName, userId) {
16088
16505
  function GetCompositionListLocalWithId(compositionName, userId) {
16089
16506
  return __awaiter(this, void 0, void 0, function* () {
16090
16507
  if (_app__WEBPACK_IMPORTED_MODULE_0__.serviceWorker) {
16091
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.sendMessage)('GetCompositionListLocalWithId', { compositionName, userId });
16092
- // console.log('data received from sw', res)
16093
- return res.data;
16508
+ try {
16509
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.sendMessage)('GetCompositionListLocalWithId', { compositionName, userId });
16510
+ return res.data;
16511
+ }
16512
+ catch (error) {
16513
+ console.error('GetCompositionListLocalWithId error sw: ', error);
16514
+ (0,_app__WEBPACK_IMPORTED_MODULE_0__.handleServiceWorkerException)(error);
16515
+ }
16094
16516
  }
16095
16517
  try {
16096
16518
  let concept = yield (0,_GetConceptByCharacterLocal__WEBPACK_IMPORTED_MODULE_3__["default"])(compositionName);
@@ -16148,9 +16570,14 @@ function GetCompositionLocal(id) {
16148
16570
  var _a, _b;
16149
16571
  try {
16150
16572
  if (_app__WEBPACK_IMPORTED_MODULE_4__.serviceWorker) {
16151
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_4__.sendMessage)('GetCompositionLocal', { id });
16152
- // console.log('data received from sw', res)
16153
- return res.data;
16573
+ try {
16574
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_4__.sendMessage)('GetCompositionLocal', { id });
16575
+ return res.data;
16576
+ }
16577
+ catch (error) {
16578
+ console.error('GetCompositionLocal error sw: ', error);
16579
+ (0,_app__WEBPACK_IMPORTED_MODULE_4__.handleServiceWorkerException)(error);
16580
+ }
16154
16581
  }
16155
16582
  let connectionList = [];
16156
16583
  let returnOutput = {};
@@ -16184,9 +16611,14 @@ function GetCompositionLocalWithId(id) {
16184
16611
  var _a, _b;
16185
16612
  try {
16186
16613
  if (_app__WEBPACK_IMPORTED_MODULE_4__.serviceWorker) {
16187
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_4__.sendMessage)('GetCompositionLocalWithId', { id });
16188
- // console.log('data received from sw', res)
16189
- return res.data;
16614
+ try {
16615
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_4__.sendMessage)('GetCompositionLocalWithId', { id });
16616
+ return res.data;
16617
+ }
16618
+ catch (error) {
16619
+ console.error('GetCompositionLocalWithId error sw: ', error);
16620
+ (0,_app__WEBPACK_IMPORTED_MODULE_4__.handleServiceWorkerException)(error);
16621
+ }
16190
16622
  }
16191
16623
  let connectionList = [];
16192
16624
  let returnOutput = {};
@@ -16314,9 +16746,14 @@ function GetConceptByCharacterLocal(characterValue) {
16314
16746
  function GetConceptByCharacterAndCategoryLocal(character) {
16315
16747
  return __awaiter(this, void 0, void 0, function* () {
16316
16748
  if (_app__WEBPACK_IMPORTED_MODULE_2__.serviceWorker) {
16317
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_2__.sendMessage)('GetConceptByCharacterAndCategoryLocal', { character });
16318
- // console.log('data received from sw', res)
16319
- return res.data;
16749
+ try {
16750
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_2__.sendMessage)('GetConceptByCharacterAndCategoryLocal', { character });
16751
+ return res.data;
16752
+ }
16753
+ catch (error) {
16754
+ console.error('GetConceptByCharacterAndCategoryLocal error sw: ', error);
16755
+ (0,_app__WEBPACK_IMPORTED_MODULE_2__.handleServiceWorkerException)(error);
16756
+ }
16320
16757
  }
16321
16758
  let lconcept = (0,_app__WEBPACK_IMPORTED_MODULE_2__.CreateDefaultLConcept)();
16322
16759
  if (character == "the") {
@@ -16430,11 +16867,16 @@ function GetRelationLocal(id, relation, userId) {
16430
16867
  return __awaiter(this, void 0, void 0, function* () {
16431
16868
  try {
16432
16869
  if (_app__WEBPACK_IMPORTED_MODULE_0__.serviceWorker) {
16433
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.sendMessage)("GetRelationLocal", {
16434
- id, relation, userId
16435
- });
16436
- // console.log("data received from sw", res);
16437
- return res.data;
16870
+ try {
16871
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.sendMessage)("GetRelationLocal", {
16872
+ id, relation, userId
16873
+ });
16874
+ return res.data;
16875
+ }
16876
+ catch (error) {
16877
+ console.error("GetRelationLocal error sw: ", error);
16878
+ (0,_app__WEBPACK_IMPORTED_MODULE_0__.handleServiceWorkerException)(error);
16879
+ }
16438
16880
  }
16439
16881
  let typeConcept = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.GetConceptByCharacterAndCategoryLocal)(relation);
16440
16882
  let localConnections = [];
@@ -16497,9 +16939,14 @@ function GetTheConceptLocal(id) {
16497
16939
  let startTime = performance.now();
16498
16940
  try {
16499
16941
  if (_app__WEBPACK_IMPORTED_MODULE_2__.serviceWorker) {
16500
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_2__.sendMessage)('GetTheConceptLocal', { id });
16501
- // console.log('data received from sw', res)
16502
- return res.data;
16942
+ try {
16943
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_2__.sendMessage)('GetTheConceptLocal', { id });
16944
+ return res.data;
16945
+ }
16946
+ catch (error) {
16947
+ console.error('GetTheConceptLocal error sw: ', error);
16948
+ (0,_app__WEBPACK_IMPORTED_MODULE_2__.handleServiceWorkerException)(error);
16949
+ }
16503
16950
  }
16504
16951
  let lconcept = (0,_app__WEBPACK_IMPORTED_MODULE_2__.CreateDefaultLConcept)();
16505
16952
  if (id < 0) {
@@ -16561,15 +17008,20 @@ function MakeTheConceptLocal(referent_1, typeCharacter_1, userId_1, categoryId_1
16561
17008
  return __awaiter(this, arguments, void 0, function* (referent, typeCharacter, userId, categoryId, typeId, actions = { concepts: [], connections: [] }) {
16562
17009
  var _a, _b, _c, _d;
16563
17010
  if (_app__WEBPACK_IMPORTED_MODULE_0__.serviceWorker) {
16564
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.sendMessage)("MakeTheConceptLocal", {
16565
- referent, typeCharacter, userId, categoryId, typeId, actions
16566
- });
16567
- // console.log("data received from sw", res);
16568
- if ((_b = (_a = res === null || res === void 0 ? void 0 : res.actions) === null || _a === void 0 ? void 0 : _a.concepts) === null || _b === void 0 ? void 0 : _b.length)
16569
- actions.concepts = JSON.parse(JSON.stringify(res.actions.concepts));
16570
- if ((_d = (_c = res === null || res === void 0 ? void 0 : res.actions) === null || _c === void 0 ? void 0 : _c.connections) === null || _d === void 0 ? void 0 : _d.length)
16571
- actions.connections = JSON.parse(JSON.stringify(res.actions.connections));
16572
- return res.data;
17011
+ try {
17012
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.sendMessage)("MakeTheConceptLocal", {
17013
+ referent, typeCharacter, userId, categoryId, typeId, actions
17014
+ });
17015
+ if ((_b = (_a = res === null || res === void 0 ? void 0 : res.actions) === null || _a === void 0 ? void 0 : _a.concepts) === null || _b === void 0 ? void 0 : _b.length)
17016
+ actions.concepts = JSON.parse(JSON.stringify(res.actions.concepts));
17017
+ if ((_d = (_c = res === null || res === void 0 ? void 0 : res.actions) === null || _c === void 0 ? void 0 : _c.connections) === null || _d === void 0 ? void 0 : _d.length)
17018
+ actions.connections = JSON.parse(JSON.stringify(res.actions.connections));
17019
+ return res.data;
17020
+ }
17021
+ catch (error) {
17022
+ console.error("MakeTheConceptLocal error sw: ", error);
17023
+ (0,_app__WEBPACK_IMPORTED_MODULE_0__.handleServiceWorkerException)(error);
17024
+ }
16573
17025
  }
16574
17026
  let conceptString = yield _DataStructures_Local_LocalConceptData__WEBPACK_IMPORTED_MODULE_1__.LocalConceptsData.GetConceptByCharacterAndTypeLocal(referent, typeId);
16575
17027
  let concept = conceptString;
@@ -16636,13 +17088,18 @@ function MakeTheInstanceConceptLocal(type_1, referent_1) {
16636
17088
  var _a, _b, _c, _d;
16637
17089
  let startTime = performance.now();
16638
17090
  if (_app__WEBPACK_IMPORTED_MODULE_3__.serviceWorker) {
16639
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_3__.sendMessage)('MakeTheInstanceConceptLocal', { type, referent, composition, userId, accessId, sessionInformationId, referentId, actions });
16640
- // console.log('data received from sw', res)
16641
- if ((_b = (_a = res === null || res === void 0 ? void 0 : res.actions) === null || _a === void 0 ? void 0 : _a.concepts) === null || _b === void 0 ? void 0 : _b.length)
16642
- actions.concepts = JSON.parse(JSON.stringify(res.actions.concepts));
16643
- if ((_d = (_c = res === null || res === void 0 ? void 0 : res.actions) === null || _c === void 0 ? void 0 : _c.connections) === null || _d === void 0 ? void 0 : _d.length)
16644
- actions.connections = JSON.parse(JSON.stringify(res.actions.connections));
16645
- return res.data;
17091
+ try {
17092
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_3__.sendMessage)('MakeTheInstanceConceptLocal', { type, referent, composition, userId, accessId, sessionInformationId, referentId, actions });
17093
+ if ((_b = (_a = res === null || res === void 0 ? void 0 : res.actions) === null || _a === void 0 ? void 0 : _a.concepts) === null || _b === void 0 ? void 0 : _b.length)
17094
+ actions.concepts = JSON.parse(JSON.stringify(res.actions.concepts));
17095
+ if ((_d = (_c = res === null || res === void 0 ? void 0 : res.actions) === null || _c === void 0 ? void 0 : _c.connections) === null || _d === void 0 ? void 0 : _d.length)
17096
+ actions.connections = JSON.parse(JSON.stringify(res.actions.connections));
17097
+ return res.data;
17098
+ }
17099
+ catch (error) {
17100
+ console.error('MakeTheInstanceConceptLocal error sw: ', error);
17101
+ (0,_app__WEBPACK_IMPORTED_MODULE_3__.handleServiceWorkerException)(error);
17102
+ }
16646
17103
  }
16647
17104
  try {
16648
17105
  let sessionInformationId = 999;
@@ -16759,15 +17216,20 @@ function MakeTheTypeConceptLocal(typeString_1, sessionId_1, sessionUserId_1, use
16759
17216
  return __awaiter(this, arguments, void 0, function* (typeString, sessionId, sessionUserId, userId, actions = { concepts: [], connections: [] }) {
16760
17217
  var _a, _b, _c, _d;
16761
17218
  if (_app__WEBPACK_IMPORTED_MODULE_4__.serviceWorker) {
16762
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_4__.sendMessage)("MakeTheTypeConceptLocal", {
16763
- typeString, sessionId, sessionUserId, userId, actions
16764
- });
16765
- // console.log("data received from sw", res);
16766
- if ((_b = (_a = res === null || res === void 0 ? void 0 : res.actions) === null || _a === void 0 ? void 0 : _a.concepts) === null || _b === void 0 ? void 0 : _b.length)
16767
- actions.concepts = JSON.parse(JSON.stringify(res.actions.concepts));
16768
- if ((_d = (_c = res === null || res === void 0 ? void 0 : res.actions) === null || _c === void 0 ? void 0 : _c.connections) === null || _d === void 0 ? void 0 : _d.length)
16769
- actions.connections = JSON.parse(JSON.stringify(res.actions.connections));
16770
- return res.data;
17219
+ try {
17220
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_4__.sendMessage)("MakeTheTypeConceptLocal", {
17221
+ typeString, sessionId, sessionUserId, userId, actions
17222
+ });
17223
+ if ((_b = (_a = res === null || res === void 0 ? void 0 : res.actions) === null || _a === void 0 ? void 0 : _a.concepts) === null || _b === void 0 ? void 0 : _b.length)
17224
+ actions.concepts = JSON.parse(JSON.stringify(res.actions.concepts));
17225
+ if ((_d = (_c = res === null || res === void 0 ? void 0 : res.actions) === null || _c === void 0 ? void 0 : _c.connections) === null || _d === void 0 ? void 0 : _d.length)
17226
+ actions.connections = JSON.parse(JSON.stringify(res.actions.connections));
17227
+ return res.data;
17228
+ }
17229
+ catch (error) {
17230
+ console.error("MakeTheTypeConceptLocal error sw: ", error);
17231
+ (0,_app__WEBPACK_IMPORTED_MODULE_4__.handleServiceWorkerException)(error);
17232
+ }
16771
17233
  }
16772
17234
  let accessId = 4;
16773
17235
  let existingConcept = yield (0,_GetConceptByCharacterLocal__WEBPACK_IMPORTED_MODULE_1__.GetConceptByCharacterAndCategoryLocal)(typeString);
@@ -16841,16 +17303,21 @@ function UpdateCompositionLocal(patcherStructure_1) {
16841
17303
  var _a, _b, _c, _d;
16842
17304
  let startTime = performance.now();
16843
17305
  if (_app__WEBPACK_IMPORTED_MODULE_7__.serviceWorker) {
16844
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_7__.sendMessage)("UpdateCompositionLocal", {
16845
- patcherStructure,
16846
- actions
16847
- });
16848
- // console.log("data received from sw", res);
16849
- if ((_b = (_a = res === null || res === void 0 ? void 0 : res.actions) === null || _a === void 0 ? void 0 : _a.concepts) === null || _b === void 0 ? void 0 : _b.length)
16850
- actions.concepts = JSON.parse(JSON.stringify(res.actions.concepts));
16851
- if ((_d = (_c = res === null || res === void 0 ? void 0 : res.actions) === null || _c === void 0 ? void 0 : _c.connections) === null || _d === void 0 ? void 0 : _d.length)
16852
- actions.connections = JSON.parse(JSON.stringify(res.actions.connections));
16853
- return res.data;
17306
+ try {
17307
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_7__.sendMessage)("UpdateCompositionLocal", {
17308
+ patcherStructure,
17309
+ actions
17310
+ });
17311
+ if ((_b = (_a = res === null || res === void 0 ? void 0 : res.actions) === null || _a === void 0 ? void 0 : _a.concepts) === null || _b === void 0 ? void 0 : _b.length)
17312
+ actions.concepts = JSON.parse(JSON.stringify(res.actions.concepts));
17313
+ if ((_d = (_c = res === null || res === void 0 ? void 0 : res.actions) === null || _c === void 0 ? void 0 : _c.connections) === null || _d === void 0 ? void 0 : _d.length)
17314
+ actions.connections = JSON.parse(JSON.stringify(res.actions.connections));
17315
+ return res.data;
17316
+ }
17317
+ catch (error) {
17318
+ console.error("UpdateCompositionLocal error sw: ", error);
17319
+ (0,_app__WEBPACK_IMPORTED_MODULE_7__.handleServiceWorkerException)(error);
17320
+ }
16854
17321
  }
16855
17322
  // get all the default userId, sessionId, accessId passed by the patcherStructure
16856
17323
  const userId = patcherStructure.userId;
@@ -17131,17 +17598,22 @@ function MakeTheInstanceConcept(type_1, referent_1) {
17131
17598
  return __awaiter(this, arguments, void 0, function* (type, referent, composition = false, userId, passedAccessId = 4, passedSessionId = 999, referentId = 0) {
17132
17599
  let startTime = performance.now();
17133
17600
  if (_app__WEBPACK_IMPORTED_MODULE_4__.serviceWorker) {
17134
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_4__.sendMessage)("MakeTheInstanceConcept", {
17135
- type,
17136
- referent,
17137
- composition,
17138
- userId,
17139
- passedAccessId,
17140
- passedSessionId,
17141
- referentId,
17142
- });
17143
- // console.log("data received from sw", res);
17144
- return res.data;
17601
+ try {
17602
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_4__.sendMessage)("MakeTheInstanceConcept", {
17603
+ type,
17604
+ referent,
17605
+ composition,
17606
+ userId,
17607
+ passedAccessId,
17608
+ passedSessionId,
17609
+ referentId,
17610
+ });
17611
+ return res.data;
17612
+ }
17613
+ catch (error) {
17614
+ console.error("MakeTheInstanceConcept sw error: ", error);
17615
+ (0,_app__WEBPACK_IMPORTED_MODULE_4__.handleServiceWorkerException)(error);
17616
+ }
17145
17617
  }
17146
17618
  let sessionInformationId = passedSessionId;
17147
17619
  let categoryId = 4;
@@ -17245,9 +17717,14 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
17245
17717
  function MakeTheTimestamp(type_1, referent_1, userId_1) {
17246
17718
  return __awaiter(this, arguments, void 0, function* (type, referent, userId, accessId = 4, sessionInformationId = 999) {
17247
17719
  if (_app__WEBPACK_IMPORTED_MODULE_0__.serviceWorker) {
17248
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.sendMessage)('MakeTheTimestamp', { type, referent, userId, accessId, sessionInformationId });
17249
- // console.log('data received from sw', res)
17250
- return res.data;
17720
+ try {
17721
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.sendMessage)('MakeTheTimestamp', { type, referent, userId, accessId, sessionInformationId });
17722
+ return res.data;
17723
+ }
17724
+ catch (error) {
17725
+ console.error('MakeTheTimestamp sw error: ', error);
17726
+ (0,_app__WEBPACK_IMPORTED_MODULE_0__.handleServiceWorkerException)(error);
17727
+ }
17251
17728
  }
17252
17729
  let categoryId = 4;
17253
17730
  let referentId = 0;
@@ -17305,9 +17782,14 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
17305
17782
  function MakeTheTypeConcept(typeString, sessionId, sessionUserId, userId) {
17306
17783
  return __awaiter(this, void 0, void 0, function* () {
17307
17784
  if (_app__WEBPACK_IMPORTED_MODULE_0__.serviceWorker) {
17308
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.sendMessage)('MakeTheTypeConcept', { typeString, sessionId, sessionUserId, userId });
17309
- // console.log('data received from sw', res)
17310
- return res.data;
17785
+ try {
17786
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.sendMessage)('MakeTheTypeConcept', { typeString, sessionId, sessionUserId, userId });
17787
+ return res.data;
17788
+ }
17789
+ catch (error) {
17790
+ console.error('MakeTheTypeConcept sw error: ', error);
17791
+ (0,_app__WEBPACK_IMPORTED_MODULE_0__.handleServiceWorkerException)(error);
17792
+ }
17311
17793
  }
17312
17794
  let referentId = 999;
17313
17795
  let securityId = 999;
@@ -18430,19 +18912,25 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
18430
18912
  function SearchLinkMultipleAll(searchQuery_1) {
18431
18913
  return __awaiter(this, arguments, void 0, function* (searchQuery, token = "", caller = null, format = _Constants_FormatConstants__WEBPACK_IMPORTED_MODULE_1__.DATAID) {
18432
18914
  var _a, _b, _c, _d, _e, _f, _g, _h;
18433
- if (_app__WEBPACK_IMPORTED_MODULE_2__.serviceWorker) {
18434
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_2__.sendMessage)('SearchLinkMultipleAll', { searchQuery, token, caller, format });
18435
- // console.log('data received search from sw', res)
18436
- return res.data;
18437
- }
18438
- let conceptIds = [];
18439
- let linkers = [];
18440
- let connections = [];
18441
- let reverse = [];
18442
- let mainCompositionId = searchQuery[0].composition;
18443
- let conceptsConnections = {};
18444
- let result = {};
18445
18915
  try {
18916
+ try {
18917
+ if (_app__WEBPACK_IMPORTED_MODULE_2__.serviceWorker) {
18918
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_2__.sendMessage)('SearchLinkMultipleAll', { searchQuery, token, caller, format });
18919
+ // console.log('data received search from sw', res)
18920
+ return res.data;
18921
+ }
18922
+ }
18923
+ catch (error) {
18924
+ console.error('SearchLinkMultipleAll error sw: ', error);
18925
+ (0,_app__WEBPACK_IMPORTED_MODULE_2__.handleServiceWorkerException)(error);
18926
+ }
18927
+ let conceptIds = [];
18928
+ let linkers = [];
18929
+ let connections = [];
18930
+ let reverse = [];
18931
+ let mainCompositionId = searchQuery[0].composition;
18932
+ let conceptsConnections = {};
18933
+ let result = {};
18446
18934
  if (caller === null || caller === void 0 ? void 0 : caller.isDataLoaded) {
18447
18935
  conceptsConnections.compositionIds = (_a = caller.conceptIds) === null || _a === void 0 ? void 0 : _a.slice();
18448
18936
  conceptsConnections.internalConnections = (_b = caller.internalConnections) === null || _b === void 0 ? void 0 : _b.slice();
@@ -18489,30 +18977,35 @@ function SearchLinkMultipleAll(searchQuery_1) {
18489
18977
  */
18490
18978
  function DataIdBuildLayer(linkers_1, conceptIds_1, connections_1, reverse_1, mainCompositionId_1, searchQuery_1) {
18491
18979
  return __awaiter(this, arguments, void 0, function* (linkers, conceptIds, connections, reverse, mainCompositionId, searchQuery, format = _Constants_FormatConstants__WEBPACK_IMPORTED_MODULE_1__.DATAID) {
18492
- let startTime = new Date().getTime();
18493
- let prefetchConnections = yield (0,_GetCompositionBulk__WEBPACK_IMPORTED_MODULE_3__.GetConnectionDataPrefetch)(linkers);
18494
- let concepts;
18495
- let out;
18496
- if (format == _Constants_FormatConstants__WEBPACK_IMPORTED_MODULE_1__.JUSTDATA) {
18497
- concepts = yield (0,_GetCompositionBulk__WEBPACK_IMPORTED_MODULE_3__.GetCompositionFromConnectionsInObject)(conceptIds, connections);
18498
- out = yield FormatFromConnections(linkers, concepts, mainCompositionId, reverse);
18499
- }
18500
- else if (format == _Constants_FormatConstants__WEBPACK_IMPORTED_MODULE_1__.NORMAL) {
18501
- concepts = yield (0,_GetCompositionBulk__WEBPACK_IMPORTED_MODULE_3__.GetCompositionFromConnectionsInObjectNormal)(conceptIds, connections);
18502
- out = yield FormatFromConnections(linkers, concepts, mainCompositionId, reverse);
18503
- }
18504
- else if (format == 100) {
18505
- concepts = yield (0,_GetCompositionBulk__WEBPACK_IMPORTED_MODULE_3__.GetCompositionFromConnectionsWithDataIdInObjectNew)(conceptIds, connections);
18506
- out = yield FormatFromConnectionsAltered(prefetchConnections, concepts, mainCompositionId, reverse);
18507
- }
18508
- else if (format == _Constants_FormatConstants__WEBPACK_IMPORTED_MODULE_1__.LISTNORMAL) {
18509
- out = yield (0,_SearchWithTypeAndLinker__WEBPACK_IMPORTED_MODULE_4__.formatDataArrayNormal)(linkers, conceptIds, connections, searchQuery.ofCompositions, reverse);
18980
+ try {
18981
+ let prefetchConnections = yield (0,_GetCompositionBulk__WEBPACK_IMPORTED_MODULE_3__.GetConnectionDataPrefetch)(linkers);
18982
+ let concepts;
18983
+ let out;
18984
+ if (format == _Constants_FormatConstants__WEBPACK_IMPORTED_MODULE_1__.JUSTDATA) {
18985
+ concepts = yield (0,_GetCompositionBulk__WEBPACK_IMPORTED_MODULE_3__.GetCompositionFromConnectionsInObject)(conceptIds, connections);
18986
+ out = yield FormatFromConnections(linkers, concepts, mainCompositionId, reverse);
18987
+ }
18988
+ else if (format == _Constants_FormatConstants__WEBPACK_IMPORTED_MODULE_1__.NORMAL) {
18989
+ concepts = yield (0,_GetCompositionBulk__WEBPACK_IMPORTED_MODULE_3__.GetCompositionFromConnectionsInObjectNormal)(conceptIds, connections);
18990
+ out = yield FormatFromConnections(linkers, concepts, mainCompositionId, reverse);
18991
+ }
18992
+ else if (format == 100) {
18993
+ concepts = yield (0,_GetCompositionBulk__WEBPACK_IMPORTED_MODULE_3__.GetCompositionFromConnectionsWithDataIdInObjectNew)(conceptIds, connections);
18994
+ out = yield FormatFromConnectionsAltered(prefetchConnections, concepts, mainCompositionId, reverse);
18995
+ }
18996
+ else if (format == _Constants_FormatConstants__WEBPACK_IMPORTED_MODULE_1__.LISTNORMAL) {
18997
+ out = yield (0,_SearchWithTypeAndLinker__WEBPACK_IMPORTED_MODULE_4__.formatDataArrayNormal)(linkers, conceptIds, connections, searchQuery.ofCompositions, reverse);
18998
+ }
18999
+ else {
19000
+ concepts = yield (0,_GetCompositionBulk__WEBPACK_IMPORTED_MODULE_3__.GetCompositionFromConnectionsWithDataIdInObject)(conceptIds, connections);
19001
+ out = yield FormatFromConnectionsAltered(prefetchConnections, concepts, mainCompositionId, reverse);
19002
+ }
19003
+ return out;
18510
19004
  }
18511
- else {
18512
- concepts = yield (0,_GetCompositionBulk__WEBPACK_IMPORTED_MODULE_3__.GetCompositionFromConnectionsWithDataIdInObject)(conceptIds, connections);
18513
- out = yield FormatFromConnectionsAltered(prefetchConnections, concepts, mainCompositionId, reverse);
19005
+ catch (err) {
19006
+ console.log('Error Occured in build layer', err);
19007
+ return undefined;
18514
19008
  }
18515
- return out;
18516
19009
  });
18517
19010
  }
18518
19011
  /**
@@ -19350,11 +19843,16 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
19350
19843
  function UpdateComposition(patcherStructure) {
19351
19844
  return __awaiter(this, void 0, void 0, function* () {
19352
19845
  if (_app__WEBPACK_IMPORTED_MODULE_13__.serviceWorker) {
19353
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_13__.sendMessage)("UpdateComposition", {
19354
- patcherStructure,
19355
- });
19356
- // console.log("data received from sw", res);
19357
- return res.data;
19846
+ try {
19847
+ const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_13__.sendMessage)("UpdateComposition", {
19848
+ patcherStructure,
19849
+ });
19850
+ return res.data;
19851
+ }
19852
+ catch (error) {
19853
+ console.error("UpdateComposition sw error: ", error);
19854
+ (0,_app__WEBPACK_IMPORTED_MODULE_13__.handleServiceWorkerException)(error);
19855
+ }
19358
19856
  }
19359
19857
  // get all the default userId, sessionId, accessId passed by the patcherStructure
19360
19858
  const userId = patcherStructure.userId;
@@ -21647,12 +22145,12 @@ __webpack_require__.r(__webpack_exports__);
21647
22145
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
21648
22146
  /* harmony export */ ADMIN: () => (/* reexport safe */ _Constants_AccessConstants__WEBPACK_IMPORTED_MODULE_66__.ADMIN),
21649
22147
  /* harmony export */ ALLID: () => (/* reexport safe */ _Constants_FormatConstants__WEBPACK_IMPORTED_MODULE_65__.ALLID),
21650
- /* harmony export */ AccessTracker: () => (/* reexport safe */ _AccessTracker_accessTracker__WEBPACK_IMPORTED_MODULE_115__.AccessTracker),
22148
+ /* harmony export */ AccessTracker: () => (/* reexport safe */ _AccessTracker_accessTracker__WEBPACK_IMPORTED_MODULE_117__.AccessTracker),
21651
22149
  /* harmony export */ AddGhostConcept: () => (/* reexport safe */ _Services_User_UserTranslation__WEBPACK_IMPORTED_MODULE_50__.AddGhostConcept),
21652
- /* harmony export */ Anomaly: () => (/* reexport safe */ _Anomaly_anomaly__WEBPACK_IMPORTED_MODULE_106__.Anomaly),
22150
+ /* harmony export */ Anomaly: () => (/* reexport safe */ _Anomaly_anomaly__WEBPACK_IMPORTED_MODULE_108__.Anomaly),
21653
22151
  /* harmony export */ BaseUrl: () => (/* reexport safe */ _DataStructures_BaseUrl__WEBPACK_IMPORTED_MODULE_98__.BaseUrl),
21654
22152
  /* harmony export */ BinaryTree: () => (/* reexport safe */ _DataStructures_BinaryTree__WEBPACK_IMPORTED_MODULE_83__.BinaryTree),
21655
- /* harmony export */ BuilderStatefulWidget: () => (/* reexport safe */ _Widgets_BuilderStatefulWidget__WEBPACK_IMPORTED_MODULE_104__.BuilderStatefulWidget),
22153
+ /* harmony export */ BuilderStatefulWidget: () => (/* reexport safe */ _Widgets_BuilderStatefulWidget__WEBPACK_IMPORTED_MODULE_106__.BuilderStatefulWidget),
21656
22154
  /* harmony export */ Composition: () => (/* reexport safe */ _DataStructures_Composition_Composition__WEBPACK_IMPORTED_MODULE_87__.Composition),
21657
22155
  /* harmony export */ CompositionBinaryTree: () => (/* reexport safe */ _DataStructures_Composition_CompositionBinaryTree__WEBPACK_IMPORTED_MODULE_88__.CompositionBinaryTree),
21658
22156
  /* harmony export */ CompositionNode: () => (/* reexport safe */ _DataStructures_Composition_CompositionNode__WEBPACK_IMPORTED_MODULE_89__.CompositionNode),
@@ -21679,17 +22177,17 @@ __webpack_require__.r(__webpack_exports__);
21679
22177
  /* harmony export */ DeleteConceptById: () => (/* reexport safe */ _Services_DeleteConcept__WEBPACK_IMPORTED_MODULE_24__.DeleteConceptById),
21680
22178
  /* harmony export */ DeleteConceptLocal: () => (/* reexport safe */ _Services_Local_DeleteConceptLocal__WEBPACK_IMPORTED_MODULE_61__.DeleteConceptLocal),
21681
22179
  /* harmony export */ DeleteConnectionById: () => (/* reexport safe */ _Services_DeleteConnection__WEBPACK_IMPORTED_MODULE_25__.DeleteConnectionById),
21682
- /* harmony export */ DeleteConnectionByType: () => (/* reexport safe */ _Services_DeleteConnectionByType__WEBPACK_IMPORTED_MODULE_110__.DeleteConnectionByType),
22180
+ /* harmony export */ DeleteConnectionByType: () => (/* reexport safe */ _Services_DeleteConnectionByType__WEBPACK_IMPORTED_MODULE_112__.DeleteConnectionByType),
21683
22181
  /* harmony export */ DeleteUser: () => (/* reexport safe */ _Services_DeleteConcept__WEBPACK_IMPORTED_MODULE_24__.DeleteUser),
21684
22182
  /* harmony export */ DependencyObserver: () => (/* reexport safe */ _WrapperFunctions_DepenedencyObserver__WEBPACK_IMPORTED_MODULE_68__.DependencyObserver),
21685
22183
  /* harmony export */ FilterSearch: () => (/* reexport safe */ _DataStructures_FilterSearch__WEBPACK_IMPORTED_MODULE_92__.FilterSearch),
21686
22184
  /* harmony export */ FormatFromConnections: () => (/* reexport safe */ _Services_Search_SearchLinkMultiple__WEBPACK_IMPORTED_MODULE_51__.FormatFromConnections),
21687
22185
  /* harmony export */ FormatFromConnectionsAltered: () => (/* reexport safe */ _Services_Search_SearchLinkMultiple__WEBPACK_IMPORTED_MODULE_51__.FormatFromConnectionsAltered),
21688
- /* harmony export */ FreeschemaQuery: () => (/* reexport safe */ _DataStructures_Search_FreeschemaQuery__WEBPACK_IMPORTED_MODULE_111__.FreeschemaQuery),
21689
- /* harmony export */ FreeschemaQueryApi: () => (/* reexport safe */ _Api_Search_FreeschemaQueryApi__WEBPACK_IMPORTED_MODULE_112__.FreeschemaQueryApi),
22186
+ /* harmony export */ FreeschemaQuery: () => (/* reexport safe */ _DataStructures_Search_FreeschemaQuery__WEBPACK_IMPORTED_MODULE_113__.FreeschemaQuery),
22187
+ /* harmony export */ FreeschemaQueryApi: () => (/* reexport safe */ _Api_Search_FreeschemaQueryApi__WEBPACK_IMPORTED_MODULE_114__.FreeschemaQueryApi),
21690
22188
  /* harmony export */ GetAllConnectionsOfComposition: () => (/* reexport safe */ _Api_GetAllConnectionsOfComposition__WEBPACK_IMPORTED_MODULE_6__.GetAllConnectionsOfComposition),
21691
22189
  /* harmony export */ GetAllConnectionsOfCompositionBulk: () => (/* reexport safe */ _Api_GetAllConnectionsOfCompositionBulk__WEBPACK_IMPORTED_MODULE_33__.GetAllConnectionsOfCompositionBulk),
21692
- /* harmony export */ GetAllTheConnectionsByTypeAndOfTheConcept: () => (/* reexport safe */ _Services_DeleteConnectionByType__WEBPACK_IMPORTED_MODULE_110__.GetAllTheConnectionsByTypeAndOfTheConcept),
22190
+ /* harmony export */ GetAllTheConnectionsByTypeAndOfTheConcept: () => (/* reexport safe */ _Services_DeleteConnectionByType__WEBPACK_IMPORTED_MODULE_112__.GetAllTheConnectionsByTypeAndOfTheConcept),
21693
22191
  /* harmony export */ GetComposition: () => (/* reexport safe */ _Services_GetComposition__WEBPACK_IMPORTED_MODULE_7__.GetComposition),
21694
22192
  /* harmony export */ GetCompositionBulk: () => (/* reexport safe */ _Services_GetCompositionBulk__WEBPACK_IMPORTED_MODULE_30__.GetCompositionBulk),
21695
22193
  /* harmony export */ GetCompositionBulkWithDataId: () => (/* reexport safe */ _Services_GetCompositionBulk__WEBPACK_IMPORTED_MODULE_30__.GetCompositionBulkWithDataId),
@@ -21744,7 +22242,7 @@ __webpack_require__.r(__webpack_exports__);
21744
22242
  /* harmony export */ LISTNORMAL: () => (/* reexport safe */ _Constants_FormatConstants__WEBPACK_IMPORTED_MODULE_65__.LISTNORMAL),
21745
22243
  /* harmony export */ LocalConceptsData: () => (/* reexport safe */ _DataStructures_Local_LocalConceptData__WEBPACK_IMPORTED_MODULE_94__.LocalConceptsData),
21746
22244
  /* harmony export */ LocalSyncData: () => (/* reexport safe */ _DataStructures_Local_LocalSyncData__WEBPACK_IMPORTED_MODULE_90__.LocalSyncData),
21747
- /* harmony export */ LocalTransaction: () => (/* reexport safe */ _Services_Transaction_LocalTransaction__WEBPACK_IMPORTED_MODULE_105__.LocalTransaction),
22245
+ /* harmony export */ LocalTransaction: () => (/* reexport safe */ _Services_Transaction_LocalTransaction__WEBPACK_IMPORTED_MODULE_107__.LocalTransaction),
21748
22246
  /* harmony export */ Logger: () => (/* reexport safe */ _Middleware_logger_service__WEBPACK_IMPORTED_MODULE_101__.Logger),
21749
22247
  /* harmony export */ LoginToBackend: () => (/* reexport safe */ _Api_Login__WEBPACK_IMPORTED_MODULE_34__.LoginToBackend),
21750
22248
  /* harmony export */ MakeTheInstanceConcept: () => (/* reexport safe */ _Services_MakeTheInstanceConcept__WEBPACK_IMPORTED_MODULE_13__["default"]),
@@ -21764,7 +22262,7 @@ __webpack_require__.r(__webpack_exports__);
21764
22262
  /* harmony export */ RecursiveSearchApiRawFullLinker: () => (/* reexport safe */ _Api_RecursiveSearch__WEBPACK_IMPORTED_MODULE_29__.RecursiveSearchApiRawFullLinker),
21765
22263
  /* harmony export */ RecursiveSearchApiWithInternalConnections: () => (/* reexport safe */ _Api_RecursiveSearch__WEBPACK_IMPORTED_MODULE_29__.RecursiveSearchApiWithInternalConnections),
21766
22264
  /* harmony export */ RecursiveSearchListener: () => (/* reexport safe */ _WrapperFunctions_RecursiveSearchObservable__WEBPACK_IMPORTED_MODULE_74__.RecursiveSearchListener),
21767
- /* harmony export */ SchemaQueryListener: () => (/* reexport safe */ _WrapperFunctions_SchemaQueryObservable__WEBPACK_IMPORTED_MODULE_113__.SchemaQueryListener),
22265
+ /* harmony export */ SchemaQueryListener: () => (/* reexport safe */ _WrapperFunctions_SchemaQueryObservable__WEBPACK_IMPORTED_MODULE_115__.SchemaQueryListener),
21768
22266
  /* harmony export */ SearchAllConcepts: () => (/* reexport safe */ _Api_Search_Search__WEBPACK_IMPORTED_MODULE_39__.SearchAllConcepts),
21769
22267
  /* harmony export */ SearchLinkInternal: () => (/* reexport safe */ _Services_Search_SearchLinkInternal__WEBPACK_IMPORTED_MODULE_59__.SearchLinkInternal),
21770
22268
  /* harmony export */ SearchLinkInternalAll: () => (/* reexport safe */ _Services_Search_SearchLinkInternal__WEBPACK_IMPORTED_MODULE_59__.SearchLinkInternalAll),
@@ -21781,22 +22279,23 @@ __webpack_require__.r(__webpack_exports__);
21781
22279
  /* harmony export */ Signup: () => (/* reexport safe */ _Api_Signup__WEBPACK_IMPORTED_MODULE_36__["default"]),
21782
22280
  /* harmony export */ SignupEntity: () => (/* reexport safe */ _Api_Signup__WEBPACK_IMPORTED_MODULE_36__.SignupEntity),
21783
22281
  /* harmony export */ SplitStrings: () => (/* reexport safe */ _Services_SplitStrings__WEBPACK_IMPORTED_MODULE_3__.SplitStrings),
21784
- /* harmony export */ StatefulWidget: () => (/* reexport safe */ _Widgets_StatefulWidget__WEBPACK_IMPORTED_MODULE_109__.StatefulWidget),
22282
+ /* harmony export */ StatefulWidget: () => (/* reexport safe */ _Widgets_StatefulWidget__WEBPACK_IMPORTED_MODULE_111__.StatefulWidget),
21785
22283
  /* harmony export */ SyncData: () => (/* reexport safe */ _DataStructures_SyncData__WEBPACK_IMPORTED_MODULE_76__.SyncData),
21786
22284
  /* harmony export */ TrashTheConcept: () => (/* reexport safe */ _Api_Delete_DeleteConceptInBackend__WEBPACK_IMPORTED_MODULE_26__.TrashTheConcept),
21787
22285
  /* harmony export */ UpdateComposition: () => (/* reexport safe */ _Services_UpdateComposition__WEBPACK_IMPORTED_MODULE_38__["default"]),
21788
22286
  /* harmony export */ UpdateCompositionLocal: () => (/* reexport safe */ _Services_Local_UpdateCompositionLocal__WEBPACK_IMPORTED_MODULE_53__.UpdateCompositionLocal),
21789
22287
  /* harmony export */ UserBinaryTree: () => (/* reexport safe */ _DataStructures_User_UserBinaryTree__WEBPACK_IMPORTED_MODULE_91__.UserBinaryTree),
21790
- /* harmony export */ Validator: () => (/* reexport safe */ _Validator_validator__WEBPACK_IMPORTED_MODULE_107__.Validator),
22288
+ /* harmony export */ Validator: () => (/* reexport safe */ _Validator_validator__WEBPACK_IMPORTED_MODULE_109__.Validator),
21791
22289
  /* harmony export */ ViewInternalData: () => (/* reexport safe */ _Services_View_ViewInternalData__WEBPACK_IMPORTED_MODULE_56__.ViewInternalData),
21792
22290
  /* harmony export */ ViewInternalDataApi: () => (/* reexport safe */ _Api_View_ViewInternalDataApi__WEBPACK_IMPORTED_MODULE_57__.ViewInternalDataApi),
21793
- /* harmony export */ WidgetTree: () => (/* reexport safe */ _Widgets_WidgetTree__WEBPACK_IMPORTED_MODULE_114__.WidgetTree),
22291
+ /* harmony export */ WidgetTree: () => (/* reexport safe */ _Widgets_WidgetTree__WEBPACK_IMPORTED_MODULE_116__.WidgetTree),
21794
22292
  /* harmony export */ convertFromConceptToLConcept: () => (/* reexport safe */ _Services_Conversion_ConvertConcepts__WEBPACK_IMPORTED_MODULE_58__.convertFromConceptToLConcept),
21795
22293
  /* harmony export */ convertFromLConceptToConcept: () => (/* reexport safe */ _Services_Conversion_ConvertConcepts__WEBPACK_IMPORTED_MODULE_58__.convertFromLConceptToConcept),
21796
- /* harmony export */ createFormFieldData: () => (/* reexport safe */ _Validator_utils__WEBPACK_IMPORTED_MODULE_108__.createFormFieldData),
22294
+ /* harmony export */ createFormFieldData: () => (/* reexport safe */ _Validator_utils__WEBPACK_IMPORTED_MODULE_110__.createFormFieldData),
21797
22295
  /* harmony export */ dispatchIdEvent: () => (/* binding */ dispatchIdEvent),
21798
22296
  /* harmony export */ getFromDatabaseWithType: () => (/* reexport safe */ _Database_NoIndexDb__WEBPACK_IMPORTED_MODULE_15__.getFromDatabaseWithType),
21799
22297
  /* harmony export */ getObjectsFromIndexDb: () => (/* reexport safe */ _Database_NoIndexDb__WEBPACK_IMPORTED_MODULE_15__.getObjectsFromIndexDb),
22298
+ /* harmony export */ handleServiceWorkerException: () => (/* binding */ handleServiceWorkerException),
21800
22299
  /* harmony export */ init: () => (/* binding */ init),
21801
22300
  /* harmony export */ recursiveFetch: () => (/* reexport safe */ _Services_GetComposition__WEBPACK_IMPORTED_MODULE_7__.recursiveFetch),
21802
22301
  /* harmony export */ recursiveFetchNew: () => (/* reexport safe */ _Services_Composition_BuildComposition__WEBPACK_IMPORTED_MODULE_45__.recursiveFetchNew),
@@ -21911,18 +22410,20 @@ __webpack_require__.r(__webpack_exports__);
21911
22410
  /* harmony import */ var _Middleware_logger_service__WEBPACK_IMPORTED_MODULE_101__ = __webpack_require__(/*! ./Middleware/logger.service */ "./src/Middleware/logger.service.ts");
21912
22411
  /* harmony import */ var _Services_Common_ErrorPosting__WEBPACK_IMPORTED_MODULE_102__ = __webpack_require__(/*! ./Services/Common/ErrorPosting */ "./src/Services/Common/ErrorPosting.ts");
21913
22412
  /* harmony import */ var _Middleware_ApplicationMonitor__WEBPACK_IMPORTED_MODULE_103__ = __webpack_require__(/*! ./Middleware/ApplicationMonitor */ "./src/Middleware/ApplicationMonitor.ts");
21914
- /* harmony import */ var _Widgets_BuilderStatefulWidget__WEBPACK_IMPORTED_MODULE_104__ = __webpack_require__(/*! ./Widgets/BuilderStatefulWidget */ "./src/Widgets/BuilderStatefulWidget.ts");
21915
- /* harmony import */ var _Services_Transaction_LocalTransaction__WEBPACK_IMPORTED_MODULE_105__ = __webpack_require__(/*! ./Services/Transaction/LocalTransaction */ "./src/Services/Transaction/LocalTransaction.ts");
21916
- /* harmony import */ var _Anomaly_anomaly__WEBPACK_IMPORTED_MODULE_106__ = __webpack_require__(/*! ./Anomaly/anomaly */ "./src/Anomaly/anomaly.ts");
21917
- /* harmony import */ var _Validator_validator__WEBPACK_IMPORTED_MODULE_107__ = __webpack_require__(/*! ./Validator/validator */ "./src/Validator/validator.ts");
21918
- /* harmony import */ var _Validator_utils__WEBPACK_IMPORTED_MODULE_108__ = __webpack_require__(/*! ./Validator/utils */ "./src/Validator/utils.ts");
21919
- /* harmony import */ var _Widgets_StatefulWidget__WEBPACK_IMPORTED_MODULE_109__ = __webpack_require__(/*! ./Widgets/StatefulWidget */ "./src/Widgets/StatefulWidget.ts");
21920
- /* harmony import */ var _Services_DeleteConnectionByType__WEBPACK_IMPORTED_MODULE_110__ = __webpack_require__(/*! ./Services/DeleteConnectionByType */ "./src/Services/DeleteConnectionByType.ts");
21921
- /* harmony import */ var _DataStructures_Search_FreeschemaQuery__WEBPACK_IMPORTED_MODULE_111__ = __webpack_require__(/*! ./DataStructures/Search/FreeschemaQuery */ "./src/DataStructures/Search/FreeschemaQuery.ts");
21922
- /* harmony import */ var _Api_Search_FreeschemaQueryApi__WEBPACK_IMPORTED_MODULE_112__ = __webpack_require__(/*! ./Api/Search/FreeschemaQueryApi */ "./src/Api/Search/FreeschemaQueryApi.ts");
21923
- /* harmony import */ var _WrapperFunctions_SchemaQueryObservable__WEBPACK_IMPORTED_MODULE_113__ = __webpack_require__(/*! ./WrapperFunctions/SchemaQueryObservable */ "./src/WrapperFunctions/SchemaQueryObservable.ts");
21924
- /* harmony import */ var _Widgets_WidgetTree__WEBPACK_IMPORTED_MODULE_114__ = __webpack_require__(/*! ./Widgets/WidgetTree */ "./src/Widgets/WidgetTree.ts");
21925
- /* harmony import */ var _AccessTracker_accessTracker__WEBPACK_IMPORTED_MODULE_115__ = __webpack_require__(/*! ./AccessTracker/accessTracker */ "./src/AccessTracker/accessTracker.ts");
22413
+ /* harmony import */ var _DataStructures_Responses_ErrorResponse__WEBPACK_IMPORTED_MODULE_104__ = __webpack_require__(/*! ./DataStructures/Responses/ErrorResponse */ "./src/DataStructures/Responses/ErrorResponse.ts");
22414
+ /* harmony import */ var _app__WEBPACK_IMPORTED_MODULE_105__ = __webpack_require__(/*! ./app */ "./src/app.ts");
22415
+ /* harmony import */ var _Widgets_BuilderStatefulWidget__WEBPACK_IMPORTED_MODULE_106__ = __webpack_require__(/*! ./Widgets/BuilderStatefulWidget */ "./src/Widgets/BuilderStatefulWidget.ts");
22416
+ /* harmony import */ var _Services_Transaction_LocalTransaction__WEBPACK_IMPORTED_MODULE_107__ = __webpack_require__(/*! ./Services/Transaction/LocalTransaction */ "./src/Services/Transaction/LocalTransaction.ts");
22417
+ /* harmony import */ var _Anomaly_anomaly__WEBPACK_IMPORTED_MODULE_108__ = __webpack_require__(/*! ./Anomaly/anomaly */ "./src/Anomaly/anomaly.ts");
22418
+ /* harmony import */ var _Validator_validator__WEBPACK_IMPORTED_MODULE_109__ = __webpack_require__(/*! ./Validator/validator */ "./src/Validator/validator.ts");
22419
+ /* harmony import */ var _Validator_utils__WEBPACK_IMPORTED_MODULE_110__ = __webpack_require__(/*! ./Validator/utils */ "./src/Validator/utils.ts");
22420
+ /* harmony import */ var _Widgets_StatefulWidget__WEBPACK_IMPORTED_MODULE_111__ = __webpack_require__(/*! ./Widgets/StatefulWidget */ "./src/Widgets/StatefulWidget.ts");
22421
+ /* harmony import */ var _Services_DeleteConnectionByType__WEBPACK_IMPORTED_MODULE_112__ = __webpack_require__(/*! ./Services/DeleteConnectionByType */ "./src/Services/DeleteConnectionByType.ts");
22422
+ /* harmony import */ var _DataStructures_Search_FreeschemaQuery__WEBPACK_IMPORTED_MODULE_113__ = __webpack_require__(/*! ./DataStructures/Search/FreeschemaQuery */ "./src/DataStructures/Search/FreeschemaQuery.ts");
22423
+ /* harmony import */ var _Api_Search_FreeschemaQueryApi__WEBPACK_IMPORTED_MODULE_114__ = __webpack_require__(/*! ./Api/Search/FreeschemaQueryApi */ "./src/Api/Search/FreeschemaQueryApi.ts");
22424
+ /* harmony import */ var _WrapperFunctions_SchemaQueryObservable__WEBPACK_IMPORTED_MODULE_115__ = __webpack_require__(/*! ./WrapperFunctions/SchemaQueryObservable */ "./src/WrapperFunctions/SchemaQueryObservable.ts");
22425
+ /* harmony import */ var _Widgets_WidgetTree__WEBPACK_IMPORTED_MODULE_116__ = __webpack_require__(/*! ./Widgets/WidgetTree */ "./src/Widgets/WidgetTree.ts");
22426
+ /* harmony import */ var _AccessTracker_accessTracker__WEBPACK_IMPORTED_MODULE_117__ = __webpack_require__(/*! ./AccessTracker/accessTracker */ "./src/AccessTracker/accessTracker.ts");
21926
22427
  var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
21927
22428
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
21928
22429
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -22054,6 +22555,8 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
22054
22555
 
22055
22556
 
22056
22557
 
22558
+
22559
+
22057
22560
 
22058
22561
 
22059
22562
 
@@ -22084,7 +22587,7 @@ function updateAccessToken(accessToken = "") {
22084
22587
  * @param enableSW {activate: boolean, scope?: string, pathToSW?: string, manual?: boolean} | undefined - This is for enabling service worker with its scope
22085
22588
  */
22086
22589
  function init() {
22087
- return __awaiter(this, arguments, void 0, function* (url = "", aiurl = "", accessToken = "", nodeUrl = "", enableAi = true, applicationName = "", enableSW = undefined, flag = { logApplication: false, isTest: false }) {
22590
+ return __awaiter(this, arguments, void 0, function* (url = "", aiurl = "", accessToken = "", nodeUrl = "", enableAi = true, applicationName = "", enableSW = undefined, flag = { logApplication: false, accessTracker: false, isTest: false }) {
22088
22591
  try {
22089
22592
  _DataStructures_BaseUrl__WEBPACK_IMPORTED_MODULE_98__.BaseUrl.BASE_URL = url;
22090
22593
  _DataStructures_BaseUrl__WEBPACK_IMPORTED_MODULE_98__.BaseUrl.AI_URL = aiurl;
@@ -22109,7 +22612,11 @@ function init() {
22109
22612
  }
22110
22613
  if (flag.logApplication) {
22111
22614
  _Middleware_ApplicationMonitor__WEBPACK_IMPORTED_MODULE_103__.ApplicationMonitor.initialize();
22112
- console.log("Application log started...");
22615
+ console.warn("Application log started...");
22616
+ }
22617
+ if (flag.accessTracker) {
22618
+ _app__WEBPACK_IMPORTED_MODULE_105__.AccessTracker.activateStatus = true;
22619
+ console.warn("Access Tracker Activated...");
22113
22620
  }
22114
22621
  if (!("serviceWorker" in navigator)) {
22115
22622
  yield initConceptConnection();
@@ -22378,10 +22885,11 @@ function sendMessage(type, payload) {
22378
22885
  reject((0,_Services_Common_ErrorPosting__WEBPACK_IMPORTED_MODULE_102__.HandleHttpError)(new Response('Unauthorized', { status: 401, statusText: (_c = event === null || event === void 0 ? void 0 : event.data) === null || _c === void 0 ? void 0 : _c.statusText })));
22379
22886
  }
22380
22887
  else if (((_d = event === null || event === void 0 ? void 0 : event.data) === null || _d === void 0 ? void 0 : _d.status) == 500) {
22381
- reject((0,_Services_Common_ErrorPosting__WEBPACK_IMPORTED_MODULE_102__.HandleInternalError)(new Response('Unauthorized', { status: 401, statusText: (_e = event === null || event === void 0 ? void 0 : event.data) === null || _e === void 0 ? void 0 : _e.statusText })));
22888
+ reject((0,_Services_Common_ErrorPosting__WEBPACK_IMPORTED_MODULE_102__.HandleInternalError)(new Response('Internal Server Error', { status: 500, statusText: (_e = event === null || event === void 0 ? void 0 : event.data) === null || _e === void 0 ? void 0 : _e.statusText })));
22382
22889
  }
22383
22890
  else {
22384
- reject(`Failed to handle action ${type} ${JSON.stringify(payload)}`);
22891
+ console.error('Error in the response from worker:', event);
22892
+ reject(`Failed to handle action ${type} ${JSON.stringify(payload)}, Response: ${JSON.stringify(event.data)}`);
22385
22893
  }
22386
22894
  }
22387
22895
  if ((_f = event.data) === null || _f === void 0 ? void 0 : _f.actions) {
@@ -22395,7 +22903,11 @@ function sendMessage(type, payload) {
22395
22903
  // console.log("before sending message", type, 'new', newPayload);
22396
22904
  // serviceWorker?.postMessage({ type, payload });
22397
22905
  // Send the message to the service worker
22398
- if (serviceWorker) {
22906
+ if (navigator.serviceWorker.controller) {
22907
+ serviceWorker.postMessage({ type, payload: newPayload });
22908
+ }
22909
+ else if (serviceWorker) {
22910
+ console.warn(`controller not found but serviceWorker is available. messageId: ${messageId}, type: ${type}`);
22399
22911
  try {
22400
22912
  serviceWorker.postMessage({ type, payload: newPayload });
22401
22913
  }
@@ -22407,8 +22919,12 @@ function sendMessage(type, payload) {
22407
22919
  // navigator.serviceWorker.controller.postMessage({ type, payload });
22408
22920
  }
22409
22921
  else {
22922
+ console.warn(`Service Worker hasn't loaded yet. messageId: ${messageId}, type: ${type}`);
22923
+ if (serviceWorkerReady)
22924
+ console.warn('service worker was registered already but is not available NOW!!!');
22410
22925
  // wait one second before checking again
22411
22926
  setTimeout(() => {
22927
+ console.warn(`Re-Trying after certain time. messageId: ${messageId}, type: ${type}`);
22412
22928
  // if (navigator.serviceWorker.controller) {
22413
22929
  if (serviceWorker) {
22414
22930
  // serviceWorker.postMessage({ type, payload });
@@ -22419,7 +22935,7 @@ function sendMessage(type, payload) {
22419
22935
  console.log('not ready', type);
22420
22936
  reject("Service worker not ready");
22421
22937
  }
22422
- }, 90000); // 90 seconds
22938
+ }, 30000); // 30 seconds
22423
22939
  }
22424
22940
  // Timeout for waiting for the response (e.g., 5 seconds)
22425
22941
  setTimeout(() => {
@@ -22430,6 +22946,7 @@ function sendMessage(type, payload) {
22430
22946
  else {
22431
22947
  messageQueue.push({ message: { type, payload: newPayload } });
22432
22948
  console.log('Message Queued', type, payload);
22949
+ console.log((navigator.serviceWorker.controller || serviceWorker), (serviceWorkerReady || type == 'init'));
22433
22950
  if (type == 'init')
22434
22951
  resolve(null);
22435
22952
  }
@@ -22625,6 +23142,13 @@ function processMessageQueue() {
22625
23142
  }
22626
23143
  });
22627
23144
  }
23145
+ const handleServiceWorkerException = (error) => {
23146
+ if (error instanceof _DataStructures_Responses_ErrorResponse__WEBPACK_IMPORTED_MODULE_104__.FreeSchemaResponse) {
23147
+ console.error('FreeSchemaResponse Error', error);
23148
+ throw error;
23149
+ }
23150
+ console.error('Service Worker Error', error);
23151
+ };
22628
23152
 
22629
23153
 
22630
23154
  /***/ })
@@ -22842,6 +23366,7 @@ function processMessageQueue() {
22842
23366
  /******/ var __webpack_exports__dispatchIdEvent = __webpack_exports__.dispatchIdEvent;
22843
23367
  /******/ var __webpack_exports__getFromDatabaseWithType = __webpack_exports__.getFromDatabaseWithType;
22844
23368
  /******/ var __webpack_exports__getObjectsFromIndexDb = __webpack_exports__.getObjectsFromIndexDb;
23369
+ /******/ var __webpack_exports__handleServiceWorkerException = __webpack_exports__.handleServiceWorkerException;
22845
23370
  /******/ var __webpack_exports__init = __webpack_exports__.init;
22846
23371
  /******/ var __webpack_exports__recursiveFetch = __webpack_exports__.recursiveFetch;
22847
23372
  /******/ var __webpack_exports__recursiveFetchNew = __webpack_exports__.recursiveFetchNew;
@@ -22851,7 +23376,7 @@ function processMessageQueue() {
22851
23376
  /******/ var __webpack_exports__storeToDatabase = __webpack_exports__.storeToDatabase;
22852
23377
  /******/ var __webpack_exports__subscribedListeners = __webpack_exports__.subscribedListeners;
22853
23378
  /******/ var __webpack_exports__updateAccessToken = __webpack_exports__.updateAccessToken;
22854
- /******/ export { __webpack_exports__ADMIN as ADMIN, __webpack_exports__ALLID as ALLID, __webpack_exports__AccessTracker as AccessTracker, __webpack_exports__AddGhostConcept as AddGhostConcept, __webpack_exports__Anomaly as Anomaly, __webpack_exports__BaseUrl as BaseUrl, __webpack_exports__BinaryTree as BinaryTree, __webpack_exports__BuilderStatefulWidget as BuilderStatefulWidget, __webpack_exports__Composition as Composition, __webpack_exports__CompositionBinaryTree as CompositionBinaryTree, __webpack_exports__CompositionNode as CompositionNode, __webpack_exports__Concept as Concept, __webpack_exports__ConceptsData as ConceptsData, __webpack_exports__Connection as Connection, __webpack_exports__ConnectionData as ConnectionData, __webpack_exports__CreateComposition as CreateComposition, __webpack_exports__CreateConnectionBetweenTwoConcepts as CreateConnectionBetweenTwoConcepts, __webpack_exports__CreateConnectionBetweenTwoConceptsGeneral as CreateConnectionBetweenTwoConceptsGeneral, __webpack_exports__CreateConnectionBetweenTwoConceptsLocal as CreateConnectionBetweenTwoConceptsLocal, __webpack_exports__CreateDefaultConcept as CreateDefaultConcept, __webpack_exports__CreateDefaultLConcept as CreateDefaultLConcept, __webpack_exports__CreateSession as CreateSession, __webpack_exports__CreateSessionVisit as CreateSessionVisit, __webpack_exports__CreateTheCompositionLocal as CreateTheCompositionLocal, __webpack_exports__CreateTheCompositionWithCache as CreateTheCompositionWithCache, __webpack_exports__CreateTheConnection as CreateTheConnection, __webpack_exports__CreateTheConnectionGeneral as CreateTheConnectionGeneral, __webpack_exports__CreateTheConnectionLocal as CreateTheConnectionLocal, __webpack_exports__DATAID as DATAID, __webpack_exports__DATAIDDATE as DATAIDDATE, __webpack_exports__DelayFunctionExecution as DelayFunctionExecution, __webpack_exports__DeleteConceptById as DeleteConceptById, __webpack_exports__DeleteConceptLocal as DeleteConceptLocal, __webpack_exports__DeleteConnectionById as DeleteConnectionById, __webpack_exports__DeleteConnectionByType as DeleteConnectionByType, __webpack_exports__DeleteUser as DeleteUser, __webpack_exports__DependencyObserver as DependencyObserver, __webpack_exports__FilterSearch as FilterSearch, __webpack_exports__FormatFromConnections as FormatFromConnections, __webpack_exports__FormatFromConnectionsAltered as FormatFromConnectionsAltered, __webpack_exports__FreeschemaQuery as FreeschemaQuery, __webpack_exports__FreeschemaQueryApi as FreeschemaQueryApi, __webpack_exports__GetAllConnectionsOfComposition as GetAllConnectionsOfComposition, __webpack_exports__GetAllConnectionsOfCompositionBulk as GetAllConnectionsOfCompositionBulk, __webpack_exports__GetAllTheConnectionsByTypeAndOfTheConcept as GetAllTheConnectionsByTypeAndOfTheConcept, __webpack_exports__GetComposition as GetComposition, __webpack_exports__GetCompositionBulk as GetCompositionBulk, __webpack_exports__GetCompositionBulkWithDataId as GetCompositionBulkWithDataId, __webpack_exports__GetCompositionFromConnectionsWithDataId as GetCompositionFromConnectionsWithDataId, __webpack_exports__GetCompositionFromConnectionsWithDataIdFromConnections as GetCompositionFromConnectionsWithDataIdFromConnections, __webpack_exports__GetCompositionFromConnectionsWithDataIdInObject as GetCompositionFromConnectionsWithDataIdInObject, __webpack_exports__GetCompositionFromConnectionsWithDataIdIndex as GetCompositionFromConnectionsWithDataIdIndex, __webpack_exports__GetCompositionFromConnectionsWithIndex as GetCompositionFromConnectionsWithIndex, __webpack_exports__GetCompositionFromConnectionsWithIndexFromConnections as GetCompositionFromConnectionsWithIndexFromConnections, __webpack_exports__GetCompositionFromMemoryWithConnections as GetCompositionFromMemoryWithConnections, __webpack_exports__GetCompositionList as GetCompositionList, __webpack_exports__GetCompositionListAll as GetCompositionListAll, __webpack_exports__GetCompositionListAllWithId as GetCompositionListAllWithId, __webpack_exports__GetCompositionListListener as GetCompositionListListener, __webpack_exports__GetCompositionListLocal as GetCompositionListLocal, __webpack_exports__GetCompositionListLocalWithId as GetCompositionListLocalWithId, __webpack_exports__GetCompositionListWithId as GetCompositionListWithId, __webpack_exports__GetCompositionListWithIdUpdated as GetCompositionListWithIdUpdated, __webpack_exports__GetCompositionListener as GetCompositionListener, __webpack_exports__GetCompositionLocal as GetCompositionLocal, __webpack_exports__GetCompositionLocalWithId as GetCompositionLocalWithId, __webpack_exports__GetCompositionWithAllIds as GetCompositionWithAllIds, __webpack_exports__GetCompositionWithCache as GetCompositionWithCache, __webpack_exports__GetCompositionWithDataIdBulk as GetCompositionWithDataIdBulk, __webpack_exports__GetCompositionWithDataIdWithCache as GetCompositionWithDataIdWithCache, __webpack_exports__GetCompositionWithId as GetCompositionWithId, __webpack_exports__GetCompositionWithIdAndDateFromMemory as GetCompositionWithIdAndDateFromMemory, __webpack_exports__GetConceptBulk as GetConceptBulk, __webpack_exports__GetConceptByCharacter as GetConceptByCharacter, __webpack_exports__GetConceptByCharacterAndCategoryLocal as GetConceptByCharacterAndCategoryLocal, __webpack_exports__GetConceptByCharacterAndType as GetConceptByCharacterAndType, __webpack_exports__GetConnectionBetweenTwoConceptsLinker as GetConnectionBetweenTwoConceptsLinker, __webpack_exports__GetConnectionBulk as GetConnectionBulk, __webpack_exports__GetConnectionById as GetConnectionById, __webpack_exports__GetConnectionDataPrefetch as GetConnectionDataPrefetch, __webpack_exports__GetConnectionOfTheConcept as GetConnectionOfTheConcept, __webpack_exports__GetLink as GetLink, __webpack_exports__GetLinkListListener as GetLinkListListener, __webpack_exports__GetLinkListener as GetLinkListener, __webpack_exports__GetLinkRaw as GetLinkRaw, __webpack_exports__GetLinkerConnectionFromConcepts as GetLinkerConnectionFromConcepts, __webpack_exports__GetLinkerConnectionToConcepts as GetLinkerConnectionToConcepts, __webpack_exports__GetRelation as GetRelation, __webpack_exports__GetRelationLocal as GetRelationLocal, __webpack_exports__GetRelationRaw as GetRelationRaw, __webpack_exports__GetTheConcept as GetTheConcept, __webpack_exports__GetTheConceptLocal as GetTheConceptLocal, __webpack_exports__GetUserGhostId as GetUserGhostId, __webpack_exports__JUSTDATA as JUSTDATA, __webpack_exports__LConcept as LConcept, __webpack_exports__LConnection as LConnection, __webpack_exports__LISTNORMAL as LISTNORMAL, __webpack_exports__LocalConceptsData as LocalConceptsData, __webpack_exports__LocalSyncData as LocalSyncData, __webpack_exports__LocalTransaction as LocalTransaction, __webpack_exports__Logger as Logger, __webpack_exports__LoginToBackend as LoginToBackend, __webpack_exports__MakeTheInstanceConcept as MakeTheInstanceConcept, __webpack_exports__MakeTheInstanceConceptLocal as MakeTheInstanceConceptLocal, __webpack_exports__MakeTheTimestamp as MakeTheTimestamp, __webpack_exports__MakeTheTypeConcept as MakeTheTypeConcept, __webpack_exports__MakeTheTypeConceptApi as MakeTheTypeConceptApi, __webpack_exports__MakeTheTypeConceptLocal as MakeTheTypeConceptLocal, __webpack_exports__NORMAL as NORMAL, __webpack_exports__PRIVATE as PRIVATE, __webpack_exports__PUBLIC as PUBLIC, __webpack_exports__PatcherStructure as PatcherStructure, __webpack_exports__RAW as RAW, __webpack_exports__RecursiveSearchApi as RecursiveSearchApi, __webpack_exports__RecursiveSearchApiNewRawFullLinker as RecursiveSearchApiNewRawFullLinker, __webpack_exports__RecursiveSearchApiRaw as RecursiveSearchApiRaw, __webpack_exports__RecursiveSearchApiRawFullLinker as RecursiveSearchApiRawFullLinker, __webpack_exports__RecursiveSearchApiWithInternalConnections as RecursiveSearchApiWithInternalConnections, __webpack_exports__RecursiveSearchListener as RecursiveSearchListener, __webpack_exports__SchemaQueryListener as SchemaQueryListener, __webpack_exports__SearchAllConcepts as SearchAllConcepts, __webpack_exports__SearchLinkInternal as SearchLinkInternal, __webpack_exports__SearchLinkInternalAll as SearchLinkInternalAll, __webpack_exports__SearchLinkMultipleAll as SearchLinkMultipleAll, __webpack_exports__SearchLinkMultipleAllObservable as SearchLinkMultipleAllObservable, __webpack_exports__SearchLinkMultipleApi as SearchLinkMultipleApi, __webpack_exports__SearchQuery as SearchQuery, __webpack_exports__SearchStructure as SearchStructure, __webpack_exports__SearchWithLinker as SearchWithLinker, __webpack_exports__SearchWithTypeAndLinker as SearchWithTypeAndLinker, __webpack_exports__SearchWithTypeAndLinkerApi as SearchWithTypeAndLinkerApi, __webpack_exports__SessionData as SessionData, __webpack_exports__Signin as Signin, __webpack_exports__Signup as Signup, __webpack_exports__SignupEntity as SignupEntity, __webpack_exports__SplitStrings as SplitStrings, __webpack_exports__StatefulWidget as StatefulWidget, __webpack_exports__SyncData as SyncData, __webpack_exports__TrashTheConcept as TrashTheConcept, __webpack_exports__UpdateComposition as UpdateComposition, __webpack_exports__UpdateCompositionLocal as UpdateCompositionLocal, __webpack_exports__UserBinaryTree as UserBinaryTree, __webpack_exports__Validator as Validator, __webpack_exports__ViewInternalData as ViewInternalData, __webpack_exports__ViewInternalDataApi as ViewInternalDataApi, __webpack_exports__WidgetTree as WidgetTree, __webpack_exports__convertFromConceptToLConcept as convertFromConceptToLConcept, __webpack_exports__convertFromLConceptToConcept as convertFromLConceptToConcept, __webpack_exports__createFormFieldData as createFormFieldData, __webpack_exports__dispatchIdEvent as dispatchIdEvent, __webpack_exports__getFromDatabaseWithType as getFromDatabaseWithType, __webpack_exports__getObjectsFromIndexDb as getObjectsFromIndexDb, __webpack_exports__init as init, __webpack_exports__recursiveFetch as recursiveFetch, __webpack_exports__recursiveFetchNew as recursiveFetchNew, __webpack_exports__searchLinkMultipleListener as searchLinkMultipleListener, __webpack_exports__sendMessage as sendMessage, __webpack_exports__serviceWorker as serviceWorker, __webpack_exports__storeToDatabase as storeToDatabase, __webpack_exports__subscribedListeners as subscribedListeners, __webpack_exports__updateAccessToken as updateAccessToken };
23379
+ /******/ export { __webpack_exports__ADMIN as ADMIN, __webpack_exports__ALLID as ALLID, __webpack_exports__AccessTracker as AccessTracker, __webpack_exports__AddGhostConcept as AddGhostConcept, __webpack_exports__Anomaly as Anomaly, __webpack_exports__BaseUrl as BaseUrl, __webpack_exports__BinaryTree as BinaryTree, __webpack_exports__BuilderStatefulWidget as BuilderStatefulWidget, __webpack_exports__Composition as Composition, __webpack_exports__CompositionBinaryTree as CompositionBinaryTree, __webpack_exports__CompositionNode as CompositionNode, __webpack_exports__Concept as Concept, __webpack_exports__ConceptsData as ConceptsData, __webpack_exports__Connection as Connection, __webpack_exports__ConnectionData as ConnectionData, __webpack_exports__CreateComposition as CreateComposition, __webpack_exports__CreateConnectionBetweenTwoConcepts as CreateConnectionBetweenTwoConcepts, __webpack_exports__CreateConnectionBetweenTwoConceptsGeneral as CreateConnectionBetweenTwoConceptsGeneral, __webpack_exports__CreateConnectionBetweenTwoConceptsLocal as CreateConnectionBetweenTwoConceptsLocal, __webpack_exports__CreateDefaultConcept as CreateDefaultConcept, __webpack_exports__CreateDefaultLConcept as CreateDefaultLConcept, __webpack_exports__CreateSession as CreateSession, __webpack_exports__CreateSessionVisit as CreateSessionVisit, __webpack_exports__CreateTheCompositionLocal as CreateTheCompositionLocal, __webpack_exports__CreateTheCompositionWithCache as CreateTheCompositionWithCache, __webpack_exports__CreateTheConnection as CreateTheConnection, __webpack_exports__CreateTheConnectionGeneral as CreateTheConnectionGeneral, __webpack_exports__CreateTheConnectionLocal as CreateTheConnectionLocal, __webpack_exports__DATAID as DATAID, __webpack_exports__DATAIDDATE as DATAIDDATE, __webpack_exports__DelayFunctionExecution as DelayFunctionExecution, __webpack_exports__DeleteConceptById as DeleteConceptById, __webpack_exports__DeleteConceptLocal as DeleteConceptLocal, __webpack_exports__DeleteConnectionById as DeleteConnectionById, __webpack_exports__DeleteConnectionByType as DeleteConnectionByType, __webpack_exports__DeleteUser as DeleteUser, __webpack_exports__DependencyObserver as DependencyObserver, __webpack_exports__FilterSearch as FilterSearch, __webpack_exports__FormatFromConnections as FormatFromConnections, __webpack_exports__FormatFromConnectionsAltered as FormatFromConnectionsAltered, __webpack_exports__FreeschemaQuery as FreeschemaQuery, __webpack_exports__FreeschemaQueryApi as FreeschemaQueryApi, __webpack_exports__GetAllConnectionsOfComposition as GetAllConnectionsOfComposition, __webpack_exports__GetAllConnectionsOfCompositionBulk as GetAllConnectionsOfCompositionBulk, __webpack_exports__GetAllTheConnectionsByTypeAndOfTheConcept as GetAllTheConnectionsByTypeAndOfTheConcept, __webpack_exports__GetComposition as GetComposition, __webpack_exports__GetCompositionBulk as GetCompositionBulk, __webpack_exports__GetCompositionBulkWithDataId as GetCompositionBulkWithDataId, __webpack_exports__GetCompositionFromConnectionsWithDataId as GetCompositionFromConnectionsWithDataId, __webpack_exports__GetCompositionFromConnectionsWithDataIdFromConnections as GetCompositionFromConnectionsWithDataIdFromConnections, __webpack_exports__GetCompositionFromConnectionsWithDataIdInObject as GetCompositionFromConnectionsWithDataIdInObject, __webpack_exports__GetCompositionFromConnectionsWithDataIdIndex as GetCompositionFromConnectionsWithDataIdIndex, __webpack_exports__GetCompositionFromConnectionsWithIndex as GetCompositionFromConnectionsWithIndex, __webpack_exports__GetCompositionFromConnectionsWithIndexFromConnections as GetCompositionFromConnectionsWithIndexFromConnections, __webpack_exports__GetCompositionFromMemoryWithConnections as GetCompositionFromMemoryWithConnections, __webpack_exports__GetCompositionList as GetCompositionList, __webpack_exports__GetCompositionListAll as GetCompositionListAll, __webpack_exports__GetCompositionListAllWithId as GetCompositionListAllWithId, __webpack_exports__GetCompositionListListener as GetCompositionListListener, __webpack_exports__GetCompositionListLocal as GetCompositionListLocal, __webpack_exports__GetCompositionListLocalWithId as GetCompositionListLocalWithId, __webpack_exports__GetCompositionListWithId as GetCompositionListWithId, __webpack_exports__GetCompositionListWithIdUpdated as GetCompositionListWithIdUpdated, __webpack_exports__GetCompositionListener as GetCompositionListener, __webpack_exports__GetCompositionLocal as GetCompositionLocal, __webpack_exports__GetCompositionLocalWithId as GetCompositionLocalWithId, __webpack_exports__GetCompositionWithAllIds as GetCompositionWithAllIds, __webpack_exports__GetCompositionWithCache as GetCompositionWithCache, __webpack_exports__GetCompositionWithDataIdBulk as GetCompositionWithDataIdBulk, __webpack_exports__GetCompositionWithDataIdWithCache as GetCompositionWithDataIdWithCache, __webpack_exports__GetCompositionWithId as GetCompositionWithId, __webpack_exports__GetCompositionWithIdAndDateFromMemory as GetCompositionWithIdAndDateFromMemory, __webpack_exports__GetConceptBulk as GetConceptBulk, __webpack_exports__GetConceptByCharacter as GetConceptByCharacter, __webpack_exports__GetConceptByCharacterAndCategoryLocal as GetConceptByCharacterAndCategoryLocal, __webpack_exports__GetConceptByCharacterAndType as GetConceptByCharacterAndType, __webpack_exports__GetConnectionBetweenTwoConceptsLinker as GetConnectionBetweenTwoConceptsLinker, __webpack_exports__GetConnectionBulk as GetConnectionBulk, __webpack_exports__GetConnectionById as GetConnectionById, __webpack_exports__GetConnectionDataPrefetch as GetConnectionDataPrefetch, __webpack_exports__GetConnectionOfTheConcept as GetConnectionOfTheConcept, __webpack_exports__GetLink as GetLink, __webpack_exports__GetLinkListListener as GetLinkListListener, __webpack_exports__GetLinkListener as GetLinkListener, __webpack_exports__GetLinkRaw as GetLinkRaw, __webpack_exports__GetLinkerConnectionFromConcepts as GetLinkerConnectionFromConcepts, __webpack_exports__GetLinkerConnectionToConcepts as GetLinkerConnectionToConcepts, __webpack_exports__GetRelation as GetRelation, __webpack_exports__GetRelationLocal as GetRelationLocal, __webpack_exports__GetRelationRaw as GetRelationRaw, __webpack_exports__GetTheConcept as GetTheConcept, __webpack_exports__GetTheConceptLocal as GetTheConceptLocal, __webpack_exports__GetUserGhostId as GetUserGhostId, __webpack_exports__JUSTDATA as JUSTDATA, __webpack_exports__LConcept as LConcept, __webpack_exports__LConnection as LConnection, __webpack_exports__LISTNORMAL as LISTNORMAL, __webpack_exports__LocalConceptsData as LocalConceptsData, __webpack_exports__LocalSyncData as LocalSyncData, __webpack_exports__LocalTransaction as LocalTransaction, __webpack_exports__Logger as Logger, __webpack_exports__LoginToBackend as LoginToBackend, __webpack_exports__MakeTheInstanceConcept as MakeTheInstanceConcept, __webpack_exports__MakeTheInstanceConceptLocal as MakeTheInstanceConceptLocal, __webpack_exports__MakeTheTimestamp as MakeTheTimestamp, __webpack_exports__MakeTheTypeConcept as MakeTheTypeConcept, __webpack_exports__MakeTheTypeConceptApi as MakeTheTypeConceptApi, __webpack_exports__MakeTheTypeConceptLocal as MakeTheTypeConceptLocal, __webpack_exports__NORMAL as NORMAL, __webpack_exports__PRIVATE as PRIVATE, __webpack_exports__PUBLIC as PUBLIC, __webpack_exports__PatcherStructure as PatcherStructure, __webpack_exports__RAW as RAW, __webpack_exports__RecursiveSearchApi as RecursiveSearchApi, __webpack_exports__RecursiveSearchApiNewRawFullLinker as RecursiveSearchApiNewRawFullLinker, __webpack_exports__RecursiveSearchApiRaw as RecursiveSearchApiRaw, __webpack_exports__RecursiveSearchApiRawFullLinker as RecursiveSearchApiRawFullLinker, __webpack_exports__RecursiveSearchApiWithInternalConnections as RecursiveSearchApiWithInternalConnections, __webpack_exports__RecursiveSearchListener as RecursiveSearchListener, __webpack_exports__SchemaQueryListener as SchemaQueryListener, __webpack_exports__SearchAllConcepts as SearchAllConcepts, __webpack_exports__SearchLinkInternal as SearchLinkInternal, __webpack_exports__SearchLinkInternalAll as SearchLinkInternalAll, __webpack_exports__SearchLinkMultipleAll as SearchLinkMultipleAll, __webpack_exports__SearchLinkMultipleAllObservable as SearchLinkMultipleAllObservable, __webpack_exports__SearchLinkMultipleApi as SearchLinkMultipleApi, __webpack_exports__SearchQuery as SearchQuery, __webpack_exports__SearchStructure as SearchStructure, __webpack_exports__SearchWithLinker as SearchWithLinker, __webpack_exports__SearchWithTypeAndLinker as SearchWithTypeAndLinker, __webpack_exports__SearchWithTypeAndLinkerApi as SearchWithTypeAndLinkerApi, __webpack_exports__SessionData as SessionData, __webpack_exports__Signin as Signin, __webpack_exports__Signup as Signup, __webpack_exports__SignupEntity as SignupEntity, __webpack_exports__SplitStrings as SplitStrings, __webpack_exports__StatefulWidget as StatefulWidget, __webpack_exports__SyncData as SyncData, __webpack_exports__TrashTheConcept as TrashTheConcept, __webpack_exports__UpdateComposition as UpdateComposition, __webpack_exports__UpdateCompositionLocal as UpdateCompositionLocal, __webpack_exports__UserBinaryTree as UserBinaryTree, __webpack_exports__Validator as Validator, __webpack_exports__ViewInternalData as ViewInternalData, __webpack_exports__ViewInternalDataApi as ViewInternalDataApi, __webpack_exports__WidgetTree as WidgetTree, __webpack_exports__convertFromConceptToLConcept as convertFromConceptToLConcept, __webpack_exports__convertFromLConceptToConcept as convertFromLConceptToConcept, __webpack_exports__createFormFieldData as createFormFieldData, __webpack_exports__dispatchIdEvent as dispatchIdEvent, __webpack_exports__getFromDatabaseWithType as getFromDatabaseWithType, __webpack_exports__getObjectsFromIndexDb as getObjectsFromIndexDb, __webpack_exports__handleServiceWorkerException as handleServiceWorkerException, __webpack_exports__init as init, __webpack_exports__recursiveFetch as recursiveFetch, __webpack_exports__recursiveFetchNew as recursiveFetchNew, __webpack_exports__searchLinkMultipleListener as searchLinkMultipleListener, __webpack_exports__sendMessage as sendMessage, __webpack_exports__serviceWorker as serviceWorker, __webpack_exports__storeToDatabase as storeToDatabase, __webpack_exports__subscribedListeners as subscribedListeners, __webpack_exports__updateAccessToken as updateAccessToken };
22855
23380
  /******/
22856
23381
 
22857
23382
  //# sourceMappingURL=main.bundle.js.map