mftsccs-browser 1.1.21 → 1.1.22-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.
Files changed (47) hide show
  1. package/dist/main.bundle.js +62 -142
  2. package/dist/main.bundle.js.map +1 -1
  3. package/dist/serviceWorker.bundle.js +77 -218
  4. package/dist/serviceWorker.bundle.js.map +1 -1
  5. package/dist/types/Api/GetAllConnectionsOfCompositionBulk.d.ts +1 -1
  6. package/dist/types/Api/GetCompositionConnectionsBetweenTwoConcepts.d.ts +1 -2
  7. package/dist/types/Api/GetConcept.d.ts +1 -2
  8. package/dist/types/Api/GetConceptByCharacterAndType.d.ts +1 -2
  9. package/dist/types/Api/GetConnectionOfTheConcept.d.ts +1 -2
  10. package/dist/types/Api/RecursiveSearch.d.ts +1 -1
  11. package/dist/types/DataStructures/BaseUrl.d.ts +3 -1
  12. package/dist/types/DataStructures/ConnectionData.d.ts +3 -3
  13. package/dist/types/DataStructures/Local/LocalSyncData.d.ts +12 -1
  14. package/dist/types/DataStructures/Search/FreeschemaQuery.d.ts +0 -2
  15. package/dist/types/DataStructures/SyncData.d.ts +1 -1
  16. package/dist/types/Services/CreateConnectionBetweenTwoConcepts.d.ts +1 -1
  17. package/dist/types/Services/CreateTheComposition.d.ts +1 -2
  18. package/dist/types/Services/DeleteConcept.d.ts +1 -1
  19. package/dist/types/Services/DeleteConnection.d.ts +1 -1
  20. package/dist/types/Services/DeleteConnectionByType.d.ts +1 -1
  21. package/dist/types/Services/GetComposition.d.ts +1 -4
  22. package/dist/types/Services/GetCompositionBulk.d.ts +1 -1
  23. package/dist/types/Services/GetConnectionBetweenTwoConceptsLinker.d.ts +2 -2
  24. package/dist/types/Services/GetConnections.d.ts +1 -2
  25. package/dist/types/Services/GetLink.d.ts +1 -1
  26. package/dist/types/Services/GetTheConcept.d.ts +1 -2
  27. package/dist/types/Services/Local/CreateConnectionBetweenTwoConceptsLocal.d.ts +2 -2
  28. package/dist/types/Services/Local/CreateTheCompositionLocal.d.ts +2 -2
  29. package/dist/types/Services/Local/CreateTheConceptLocal.d.ts +2 -2
  30. package/dist/types/Services/Local/CreateTheConnectionLocal.d.ts +2 -2
  31. package/dist/types/Services/Local/DeleteConceptLocal.d.ts +1 -1
  32. package/dist/types/Services/Local/GetConceptByCharacterLocal.d.ts +1 -1
  33. package/dist/types/Services/Local/GetTheConceptLocal.d.ts +1 -2
  34. package/dist/types/Services/Local/MakeTheConceptLocal.d.ts +2 -2
  35. package/dist/types/Services/Local/MakeTheInstanceConceptLocal.d.ts +3 -2
  36. package/dist/types/Services/Local/MakeTheTypeLocal.d.ts +3 -1
  37. package/dist/types/Services/Local/UpdateCompositionLocal.d.ts +3 -2
  38. package/dist/types/Services/MakeTheInstanceConcept.d.ts +1 -2
  39. package/dist/types/Services/MakeTheTimestamp.d.ts +1 -2
  40. package/dist/types/Services/MakeTheTypeConcept.d.ts +1 -2
  41. package/dist/types/Services/Search/FormatData.d.ts +2 -36
  42. package/dist/types/Services/Search/SearchWithTypeAndLinker.d.ts +0 -20
  43. package/dist/types/Services/UpdateComposition.d.ts +1 -1
  44. package/dist/types/WrapperFunctions/RecursiveSearchObservable.d.ts +7 -0
  45. package/dist/types/app.d.ts +18 -1
  46. package/package.json +9 -4
  47. package/scripts/postinstall.js +68 -0
@@ -1003,7 +1003,7 @@ function GetAllConnectionsOfCompositionBulk() {
1003
1003
  return __awaiter(this, arguments, void 0, function* (composition_ids = []) {
1004
1004
  if (_app__WEBPACK_IMPORTED_MODULE_7__.serviceWorker) {
1005
1005
  const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_7__.sendMessage)('GetAllConnectionsOfCompositionBulk', { composition_ids });
1006
- // console.log('data received from sw', res)
1006
+ console.log('data received from sw', res);
1007
1007
  return res.data;
1008
1008
  }
1009
1009
  var connectionList = [];
@@ -1214,7 +1214,7 @@ function GetCompositionConnectionsBetweenTwoConcepts(ofConceptId, toConcept, mai
1214
1214
  return __awaiter(this, void 0, void 0, function* () {
1215
1215
  if (_app__WEBPACK_IMPORTED_MODULE_3__.serviceWorker) {
1216
1216
  const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_3__.sendMessage)('GetCompositionConnectionsBetweenTwoConcepts', { ofConceptId, toConcept, mainKey });
1217
- // console.log('data received from sw', res)
1217
+ console.log('data received from sw', res);
1218
1218
  return res.data;
1219
1219
  }
1220
1220
  var connectionList = [];
@@ -1295,7 +1295,7 @@ function GetConcept(id) {
1295
1295
  try {
1296
1296
  if (_app__WEBPACK_IMPORTED_MODULE_3__.serviceWorker) {
1297
1297
  const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_3__.sendMessage)('GetConcept', { id });
1298
- // console.log('data received from sw', res)
1298
+ console.log('data received from sw', res);
1299
1299
  return res.data;
1300
1300
  }
1301
1301
  let result = (0,_app__WEBPACK_IMPORTED_MODULE_3__.CreateDefaultConcept)();
@@ -1359,7 +1359,6 @@ __webpack_require__.r(__webpack_exports__);
1359
1359
  /* harmony import */ var _DataStructures_BaseUrl__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../DataStructures/BaseUrl */ "./src/DataStructures/BaseUrl.ts");
1360
1360
  /* harmony import */ var _Services_Security_GetRequestHeader__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Services/Security/GetRequestHeader */ "./src/Services/Security/GetRequestHeader.ts");
1361
1361
  /* harmony import */ var _Services_Common_ErrorPosting__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Services/Common/ErrorPosting */ "./src/Services/Common/ErrorPosting.ts");
1362
- /* harmony import */ var _app__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../app */ "./src/app.ts");
1363
1362
  var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
1364
1363
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
1365
1364
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -1373,7 +1372,6 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
1373
1372
 
1374
1373
 
1375
1374
 
1376
-
1377
1375
  /**
1378
1376
  * This function takes in a list of ids and returns a list of concepts . This uses local memory to find concepts
1379
1377
  * namely in the concept binary tree. If it could not find the concepts in local memory then it fetches those from
@@ -1383,11 +1381,6 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
1383
1381
  */
1384
1382
  function GetConceptBulk(passedConcepts) {
1385
1383
  return __awaiter(this, void 0, void 0, function* () {
1386
- if (_app__WEBPACK_IMPORTED_MODULE_4__.serviceWorker) {
1387
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_4__.sendMessage)('GetConceptBulk', { passedConcepts });
1388
- // console.log('data received from sw', res)
1389
- return res.data;
1390
- }
1391
1384
  let result = [];
1392
1385
  let setTime = new Date().getTime();
1393
1386
  // let conceptIds = passedConcepts.filter((value, index, self) => {
@@ -1534,7 +1527,7 @@ function GetConceptByCharacterAndType(characterValue, typeId) {
1534
1527
  try {
1535
1528
  if (_app__WEBPACK_IMPORTED_MODULE_4__.serviceWorker) {
1536
1529
  const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_4__.sendMessage)('GetConceptByCharacterAndType', { characterValue, typeId });
1537
- // console.log('data received from sw', res)
1530
+ console.log('data received from sw', res);
1538
1531
  return res.data;
1539
1532
  }
1540
1533
  let concept = yield _DataStructures_ConceptData__WEBPACK_IMPORTED_MODULE_0__.ConceptsData.GetConceptByCharacterAndTypeLocal(characterValue, typeId);
@@ -1751,7 +1744,7 @@ function GetConnectionBulk() {
1751
1744
  return __awaiter(this, arguments, void 0, function* (connectionIds = []) {
1752
1745
  if (_app__WEBPACK_IMPORTED_MODULE_5__.serviceWorker) {
1753
1746
  const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_5__.sendMessage)('GetConnectionBulk', { connectionIds });
1754
- // console.log('data received from sw', res)
1747
+ console.log('data received from sw', res);
1755
1748
  return res.data;
1756
1749
  }
1757
1750
  let connectionList = [];
@@ -1849,7 +1842,7 @@ function GetConnectionOfTheConcept(typeId_1, ofTheConceptId_1, userId_1) {
1849
1842
  return __awaiter(this, arguments, void 0, function* (typeId, ofTheConceptId, userId, inpage = 10, page = 1) {
1850
1843
  if (_app__WEBPACK_IMPORTED_MODULE_3__.serviceWorker) {
1851
1844
  const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_3__.sendMessage)('GetConnectionOfTheConcept', { typeId, ofTheConceptId, userId, inpage, page });
1852
- // console.log('data received from sw', res)
1845
+ console.log('data received from sw', res);
1853
1846
  return res.data;
1854
1847
  }
1855
1848
  let connectionList = [];
@@ -2318,7 +2311,7 @@ function RecursiveSearchApi() {
2318
2311
  listLinkers,
2319
2312
  textSearch,
2320
2313
  });
2321
- // console.log("data received from sw", res);
2314
+ console.log("data received from sw", res);
2322
2315
  return res.data;
2323
2316
  }
2324
2317
  let concepts = [];
@@ -2367,7 +2360,7 @@ function RecursiveSearchApiRaw() {
2367
2360
  listLinkers,
2368
2361
  textSearch,
2369
2362
  });
2370
- // console.log("data received from sw", res);
2363
+ console.log("data received from sw", res);
2371
2364
  return res.data;
2372
2365
  }
2373
2366
  let concepts = [];
@@ -2416,7 +2409,7 @@ function RecursiveSearchApiRawFullLinker() {
2416
2409
  fullLinkers,
2417
2410
  textSearch,
2418
2411
  });
2419
- // console.log("data received from sw", res);
2412
+ console.log("data received from sw", res);
2420
2413
  return res.data;
2421
2414
  }
2422
2415
  let concepts = [];
@@ -2465,7 +2458,7 @@ function RecursiveSearchApiNewRawFullLinker() {
2465
2458
  fullLinkers,
2466
2459
  textSearch,
2467
2460
  });
2468
- // console.log("data received from sw", res);
2461
+ console.log("data received from sw", res);
2469
2462
  return res.data;
2470
2463
  }
2471
2464
  let concepts = [];
@@ -4474,7 +4467,6 @@ __webpack_require__.r(__webpack_exports__);
4474
4467
  /* harmony import */ var _BinaryCharacterTree__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./BinaryCharacterTree */ "./src/DataStructures/BinaryCharacterTree.ts");
4475
4468
  /* harmony import */ var _BinaryTypeTree__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./BinaryTypeTree */ "./src/DataStructures/BinaryTypeTree.ts");
4476
4469
  /* harmony import */ var _Services_CreateDefaultConcept__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Services/CreateDefaultConcept */ "./src/Services/CreateDefaultConcept.ts");
4477
- /* harmony import */ var _app__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../app */ "./src/app.ts");
4478
4470
  var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
4479
4471
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4480
4472
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -4489,7 +4481,6 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
4489
4481
 
4490
4482
 
4491
4483
 
4492
-
4493
4484
  class ConceptsData {
4494
4485
  constructor() {
4495
4486
  this.name = "conceptsArray";
@@ -4528,11 +4519,6 @@ class ConceptsData {
4528
4519
  });
4529
4520
  }
4530
4521
  static AddConcept(concept) {
4531
- if (_app__WEBPACK_IMPORTED_MODULE_5__.serviceWorker) {
4532
- const res = (0,_app__WEBPACK_IMPORTED_MODULE_5__.sendMessage)('AddConcept', { concept }); // is async function
4533
- // console.log('data received from sw', res)
4534
- // return res.data // remove comment when this function is async
4535
- }
4536
4522
  if (concept.id > 0) {
4537
4523
  // console.log("added the concept to the tree", concept);
4538
4524
  //var contains = this.CheckContains(concept);
@@ -4577,11 +4563,6 @@ class ConceptsData {
4577
4563
  }
4578
4564
  static GetConcept(id) {
4579
4565
  return __awaiter(this, void 0, void 0, function* () {
4580
- if (_app__WEBPACK_IMPORTED_MODULE_5__.serviceWorker) {
4581
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_5__.sendMessage)('ConceptsData__GetConcept', { id });
4582
- // console.log('data received from sw', res)
4583
- return res.data;
4584
- }
4585
4566
  var myConcept = (0,_Services_CreateDefaultConcept__WEBPACK_IMPORTED_MODULE_4__.CreateDefaultConcept)();
4586
4567
  var node = yield _BinaryTree__WEBPACK_IMPORTED_MODULE_1__.BinaryTree.getNodeFromTree(id);
4587
4568
  if (node === null || node === void 0 ? void 0 : node.value) {
@@ -4652,11 +4633,6 @@ class ConceptsData {
4652
4633
  }
4653
4634
  static GetConceptsByTypeIdAndUser(typeId, userId) {
4654
4635
  return __awaiter(this, void 0, void 0, function* () {
4655
- if (_app__WEBPACK_IMPORTED_MODULE_5__.serviceWorker) {
4656
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_5__.sendMessage)('GetConceptsByTypeIdAndUser', { typeId, userId });
4657
- // console.log('data received from sw', res)
4658
- return res.data;
4659
- }
4660
4636
  let ConceptList = [];
4661
4637
  ConceptList = yield _BinaryTypeTree__WEBPACK_IMPORTED_MODULE_3__.BinaryTypeTree.getTypeVariantsFromTreeWithUserIdNew(typeId, userId);
4662
4638
  return ConceptList;
@@ -5822,7 +5798,7 @@ class ConnectionData {
5822
5798
  return __awaiter(this, void 0, void 0, function* () {
5823
5799
  if (_app__WEBPACK_IMPORTED_MODULE_0__.serviceWorker) {
5824
5800
  const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.sendMessage)("ConnectionData__GetConnectionByOfTheConceptAndType", { ofTheConceptId, typeId });
5825
- // console.log("data received from sw", res);
5801
+ console.log("data received from sw", res);
5826
5802
  return res.data;
5827
5803
  }
5828
5804
  let connections = _ConnectionBinaryTree_ConnectionOfTheTree__WEBPACK_IMPORTED_MODULE_4__.ConnectionOfTheTree.GetConnectionByOfTheConceptAndTypeId(ofTheConceptId, typeId);
@@ -5854,7 +5830,7 @@ class ConnectionData {
5854
5830
  return __awaiter(this, void 0, void 0, function* () {
5855
5831
  if (_app__WEBPACK_IMPORTED_MODULE_0__.serviceWorker) {
5856
5832
  const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.sendMessage)('ConnectionData__GetConnection', { id });
5857
- // console.log('data received from sw', res)
5833
+ console.log('data received from sw', res);
5858
5834
  return res.data;
5859
5835
  }
5860
5836
  // var myConcept: Connection|null;
@@ -5891,7 +5867,7 @@ class ConnectionData {
5891
5867
  return __awaiter(this, void 0, void 0, function* () {
5892
5868
  if (_app__WEBPACK_IMPORTED_MODULE_0__.serviceWorker) {
5893
5869
  const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.sendMessage)("ConnectionData__GetConnectionsOfCompositionLocal", { id });
5894
- // console.log("data received from sw", res);
5870
+ console.log("data received from sw", res);
5895
5871
  return res.data;
5896
5872
  }
5897
5873
  let connections = [];
@@ -5920,11 +5896,6 @@ class ConnectionData {
5920
5896
  }
5921
5897
  static GetConnectionsOfConcept(id) {
5922
5898
  return __awaiter(this, void 0, void 0, function* () {
5923
- if (_app__WEBPACK_IMPORTED_MODULE_0__.serviceWorker) {
5924
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.sendMessage)("ConnectionData__GetConnectionsOfConcept", { id });
5925
- // console.log("data received from sw", res);
5926
- return res.data;
5927
- }
5928
5899
  let connectionIds = [];
5929
5900
  let connections = [];
5930
5901
  connectionIds = yield ConnectionData.GetConnectionByOfTheConceptAndType(id, id);
@@ -8737,7 +8708,6 @@ class FreeschemaQuery {
8737
8708
  this.typeConnection = "";
8738
8709
  this.outputFormat = _Constants_FormatConstants__WEBPACK_IMPORTED_MODULE_0__.NORMAL;
8739
8710
  this.name = "";
8740
- this.reverse = false;
8741
8711
  }
8742
8712
  }
8743
8713
 
@@ -10610,12 +10580,10 @@ __webpack_require__.r(__webpack_exports__);
10610
10580
  /* harmony import */ var _Api_GetConcept__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../Api/GetConcept */ "./src/Api/GetConcept.ts");
10611
10581
  /* harmony import */ var _app__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../app */ "./src/app.ts");
10612
10582
  /* harmony import */ var _Constants_general_const__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../Constants/general.const */ "./src/Constants/general.const.ts");
10613
- /* harmony import */ var _Services_FindConnectionsOfCompositionBulkInMemory__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../Services/FindConnectionsOfCompositionBulkInMemory */ "./src/Services/FindConnectionsOfCompositionBulkInMemory.ts");
10614
- /* harmony import */ var _Services_GetComposition__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../Services/GetComposition */ "./src/Services/GetComposition.ts");
10615
- /* harmony import */ var _Services_GetCompositionBulk__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../Services/GetCompositionBulk */ "./src/Services/GetCompositionBulk.ts");
10616
- /* harmony import */ var _Services_GetConceptByCharacter__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../Services/GetConceptByCharacter */ "./src/Services/GetConceptByCharacter.ts");
10617
- /* harmony import */ var _Services_Local_GetTheConceptLocal__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../Services/Local/GetTheConceptLocal */ "./src/Services/Local/GetTheConceptLocal.ts");
10618
- /* harmony import */ var _WrapperFunctions_GetLinkObservable__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../WrapperFunctions/GetLinkObservable */ "./src/WrapperFunctions/GetLinkObservable.ts");
10583
+ /* harmony import */ var _Services_GetComposition__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../Services/GetComposition */ "./src/Services/GetComposition.ts");
10584
+ /* harmony import */ var _Services_GetCompositionBulk__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../Services/GetCompositionBulk */ "./src/Services/GetCompositionBulk.ts");
10585
+ /* harmony import */ var _Services_Local_GetTheConceptLocal__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../Services/Local/GetTheConceptLocal */ "./src/Services/Local/GetTheConceptLocal.ts");
10586
+ /* harmony import */ var _WrapperFunctions_GetLinkObservable__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../WrapperFunctions/GetLinkObservable */ "./src/WrapperFunctions/GetLinkObservable.ts");
10619
10587
  var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
10620
10588
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
10621
10589
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -10633,8 +10601,6 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
10633
10601
 
10634
10602
 
10635
10603
 
10636
-
10637
-
10638
10604
  const getActions = {
10639
10605
  GetConcept: (payload) => __awaiter(void 0, void 0, void 0, function* () {
10640
10606
  const data = yield (0,_Api_GetConcept__WEBPACK_IMPORTED_MODULE_1__.GetConcept)(payload.id);
@@ -10644,24 +10610,12 @@ const getActions = {
10644
10610
  const data = yield (0,_app__WEBPACK_IMPORTED_MODULE_2__.GetTheConcept)(payload.id, payload.userId);
10645
10611
  return { success: true, data };
10646
10612
  }),
10647
- GetConceptBulk: (payload) => __awaiter(void 0, void 0, void 0, function* () {
10648
- const data = yield (0,_app__WEBPACK_IMPORTED_MODULE_2__.GetConceptBulk)(payload.passedConcepts);
10649
- return { success: true, data };
10650
- }),
10651
10613
  GetLink: (payload) => __awaiter(void 0, void 0, void 0, function* () {
10652
10614
  const data = yield (0,_app__WEBPACK_IMPORTED_MODULE_2__.GetLink)(payload.id, payload.linker, payload.inpage, payload.page);
10653
10615
  return { success: true, data };
10654
10616
  }),
10655
- GetRelation: (payload) => __awaiter(void 0, void 0, void 0, function* () {
10656
- const data = yield (0,_app__WEBPACK_IMPORTED_MODULE_2__.GetRelation)(payload.id, payload.relation, payload.inpage, payload.page);
10657
- return { success: true, data };
10658
- }),
10659
- GetRelationRaw: (payload) => __awaiter(void 0, void 0, void 0, function* () {
10660
- const data = yield (0,_app__WEBPACK_IMPORTED_MODULE_2__.GetRelationRaw)(payload.id, payload.relation, payload.inpage, payload.page);
10661
- return { success: true, data };
10662
- }),
10663
10617
  GetComposition: (payload) => __awaiter(void 0, void 0, void 0, function* () {
10664
- const data = yield (0,_Services_GetComposition__WEBPACK_IMPORTED_MODULE_5__.GetComposition)(payload.id);
10618
+ const data = yield (0,_Services_GetComposition__WEBPACK_IMPORTED_MODULE_4__.GetComposition)(payload.id);
10665
10619
  return { success: true, data };
10666
10620
  }),
10667
10621
  GetCompositionList: (payload) => __awaiter(void 0, void 0, void 0, function* () {
@@ -10673,23 +10627,11 @@ const getActions = {
10673
10627
  return { success: true, data };
10674
10628
  }),
10675
10629
  GetCompositionById: (payload) => __awaiter(void 0, void 0, void 0, function* () {
10676
- const data = yield (0,_Services_GetComposition__WEBPACK_IMPORTED_MODULE_5__.GetCompositionById)(payload.id);
10630
+ const data = yield (0,_Services_GetComposition__WEBPACK_IMPORTED_MODULE_4__.GetCompositionById)(payload.id);
10677
10631
  return { success: true, data };
10678
10632
  }),
10679
10633
  GetCompositionWithId: (payload) => __awaiter(void 0, void 0, void 0, function* () {
10680
- const data = yield (0,_Services_GetComposition__WEBPACK_IMPORTED_MODULE_5__.GetCompositionWithId)(payload.id);
10681
- return { success: true, data };
10682
- }),
10683
- GetCompositionListAllWithId: (payload) => __awaiter(void 0, void 0, void 0, function* () {
10684
- const data = yield (0,_app__WEBPACK_IMPORTED_MODULE_2__.GetCompositionListAllWithId)(payload.compositionName, payload.userId, payload.inpage, payload.page);
10685
- return { success: true, data };
10686
- }),
10687
- GetConceptByCharacter: (payload) => __awaiter(void 0, void 0, void 0, function* () {
10688
- const data = yield (0,_app__WEBPACK_IMPORTED_MODULE_2__.GetConceptByCharacter)(payload.characterValue);
10689
- return { success: true, data };
10690
- }),
10691
- GetConceptByCharacterUpdated: (payload) => __awaiter(void 0, void 0, void 0, function* () {
10692
- const data = yield (0,_Services_GetConceptByCharacter__WEBPACK_IMPORTED_MODULE_7__.GetConceptByCharacterUpdated)(payload.characterValue);
10634
+ const data = yield (0,_Services_GetComposition__WEBPACK_IMPORTED_MODULE_4__.GetCompositionWithId)(payload.id);
10693
10635
  return { success: true, data };
10694
10636
  }),
10695
10637
  GetConceptByCharacterAndType: (payload) => __awaiter(void 0, void 0, void 0, function* () {
@@ -10697,49 +10639,33 @@ const getActions = {
10697
10639
  return { success: true, data };
10698
10640
  }),
10699
10641
  GetCompositionFromConnectionsWithDataId: (payload) => __awaiter(void 0, void 0, void 0, function* () {
10700
- const data = yield (0,_Services_GetCompositionBulk__WEBPACK_IMPORTED_MODULE_6__.GetCompositionFromConnectionsWithDataId)(payload.conceptIds, payload.connectionIds);
10642
+ const data = yield (0,_Services_GetCompositionBulk__WEBPACK_IMPORTED_MODULE_5__.GetCompositionFromConnectionsWithDataId)(payload.conceptIds, payload.connectionIds);
10701
10643
  return { success: true, data };
10702
10644
  }),
10703
10645
  GetCompositionFromConnectionsWithDataIdIndex: (payload) => __awaiter(void 0, void 0, void 0, function* () {
10704
- const data = yield (0,_Services_GetCompositionBulk__WEBPACK_IMPORTED_MODULE_6__.GetCompositionFromConnectionsWithDataIdIndex)(payload.conceptIds, payload.connectionIds);
10646
+ const data = yield (0,_Services_GetCompositionBulk__WEBPACK_IMPORTED_MODULE_5__.GetCompositionFromConnectionsWithDataIdIndex)(payload.conceptIds, payload.connectionIds);
10705
10647
  return { success: true, data };
10706
10648
  }),
10707
10649
  GetCompositionConnectionsBetweenTwoConcepts: (payload) => __awaiter(void 0, void 0, void 0, function* () {
10708
10650
  const data = yield (0,_Api_GetCompositionConnectionsBetweenTwoConcepts__WEBPACK_IMPORTED_MODULE_0__.GetCompositionConnectionsBetweenTwoConcepts)(payload.ofConceptId, payload.toConcept, payload.mainKey);
10709
10651
  return { success: true, data };
10710
10652
  }),
10711
- GetConnectionDataPrefetch: (payload) => __awaiter(void 0, void 0, void 0, function* () {
10712
- const data = yield (0,_Services_GetCompositionBulk__WEBPACK_IMPORTED_MODULE_6__.GetConnectionDataPrefetch)(payload.compositionIds);
10713
- return { success: true, data };
10714
- }),
10715
10653
  // memory
10716
10654
  GetCompositionWithIdFromMemory: (payload) => __awaiter(void 0, void 0, void 0, function* () {
10717
- const data = yield (0,_Services_GetComposition__WEBPACK_IMPORTED_MODULE_5__.GetCompositionWithIdFromMemory)(payload.id);
10655
+ const data = yield (0,_Services_GetComposition__WEBPACK_IMPORTED_MODULE_4__.GetCompositionWithIdFromMemory)(payload.id);
10718
10656
  return { success: true, data };
10719
10657
  }),
10720
10658
  GetCompositionWithIdAndDateFromMemory: (payload) => __awaiter(void 0, void 0, void 0, function* () {
10721
- const data = yield (0,_Services_GetComposition__WEBPACK_IMPORTED_MODULE_5__.GetCompositionWithIdAndDateFromMemory)(payload.id);
10659
+ const data = yield (0,_Services_GetComposition__WEBPACK_IMPORTED_MODULE_4__.GetCompositionWithIdAndDateFromMemory)(payload.id);
10722
10660
  return { success: true, data };
10723
10661
  }),
10724
10662
  GetCompositionFromMemory: (payload) => __awaiter(void 0, void 0, void 0, function* () {
10725
- const data = yield (0,_Services_GetComposition__WEBPACK_IMPORTED_MODULE_5__.GetCompositionFromMemory)(payload.id);
10726
- return { success: true, data };
10727
- }),
10728
- GetCompositionFromMemoryNormal: (payload) => __awaiter(void 0, void 0, void 0, function* () {
10729
- const data = yield (0,_Services_GetComposition__WEBPACK_IMPORTED_MODULE_5__.GetCompositionFromMemoryNormal)(payload.id);
10730
- return { success: true, data };
10731
- }),
10732
- GetCompositionWithIdFromMemoryNew: (payload) => __awaiter(void 0, void 0, void 0, function* () {
10733
- const data = yield (0,_Services_GetComposition__WEBPACK_IMPORTED_MODULE_5__.GetCompositionWithIdFromMemoryNew)(payload.id);
10734
- return { success: true, data };
10735
- }),
10736
- FindConnectionsOfCompositionsBulkInMemory: (payload) => __awaiter(void 0, void 0, void 0, function* () {
10737
- const data = yield (0,_Services_FindConnectionsOfCompositionBulkInMemory__WEBPACK_IMPORTED_MODULE_4__.FindConnectionsOfCompositionsBulkInMemory)(payload.composition_ids);
10663
+ const data = yield (0,_Services_GetComposition__WEBPACK_IMPORTED_MODULE_4__.GetCompositionFromMemory)(payload.id);
10738
10664
  return { success: true, data };
10739
10665
  }),
10740
10666
  // locals
10741
10667
  GetTheConceptLocal: (payload) => __awaiter(void 0, void 0, void 0, function* () {
10742
- const data = yield (0,_Services_Local_GetTheConceptLocal__WEBPACK_IMPORTED_MODULE_8__.GetTheConceptLocal)(payload.id);
10668
+ const data = yield (0,_Services_Local_GetTheConceptLocal__WEBPACK_IMPORTED_MODULE_6__.GetTheConceptLocal)(payload.id);
10743
10669
  return { success: true, data };
10744
10670
  }),
10745
10671
  GetCompositionLocal: (payload) => __awaiter(void 0, void 0, void 0, function* () {
@@ -10762,19 +10688,6 @@ const getActions = {
10762
10688
  const data = yield (0,_app__WEBPACK_IMPORTED_MODULE_2__.GetConceptByCharacterAndCategoryLocal)(payload.character);
10763
10689
  return { success: true, data };
10764
10690
  }),
10765
- // Concept Data class methods
10766
- ConceptsData__AddConcept: (payload) => __awaiter(void 0, void 0, void 0, function* () {
10767
- const data = yield _app__WEBPACK_IMPORTED_MODULE_2__.ConceptsData.AddConcept(payload.concept);
10768
- return { success: true, data };
10769
- }),
10770
- ConceptsData__GetConcept: (payload) => __awaiter(void 0, void 0, void 0, function* () {
10771
- const data = yield _app__WEBPACK_IMPORTED_MODULE_2__.ConceptsData.GetConcept(payload.id);
10772
- return { success: true, data };
10773
- }),
10774
- ConceptsData__GetConceptsByTypeIdAndUser: (payload) => __awaiter(void 0, void 0, void 0, function* () {
10775
- const data = yield _app__WEBPACK_IMPORTED_MODULE_2__.ConceptsData.GetConceptsByTypeIdAndUser(payload.typeId, payload.userId);
10776
- return { success: true, data };
10777
- }),
10778
10691
  // Connection Data class methods
10779
10692
  ConnectionData__GetConnectionByOfTheConceptAndType: (payload) => __awaiter(void 0, void 0, void 0, function* () {
10780
10693
  const data = yield _app__WEBPACK_IMPORTED_MODULE_2__.ConnectionData.GetConnectionByOfTheConceptAndType(payload.ofTheConceptId, payload.typeId);
@@ -10788,15 +10701,11 @@ const getActions = {
10788
10701
  const data = yield _app__WEBPACK_IMPORTED_MODULE_2__.ConnectionData.GetConnection(payload.id);
10789
10702
  return { success: true, data };
10790
10703
  }),
10791
- ConnectionData__GetConnectionsOfConcept: (payload) => __awaiter(void 0, void 0, void 0, function* () {
10792
- const data = yield _app__WEBPACK_IMPORTED_MODULE_2__.ConnectionData.GetConnectionsOfConcept(payload.id);
10793
- return { success: true, data };
10794
- }),
10795
10704
  // listeners
10796
10705
  GetLinkListener: (payload) => __awaiter(void 0, void 0, void 0, function* () {
10797
10706
  let isSubscribed = false;
10798
10707
  return new Promise((resolve, reject) => {
10799
- (0,_WrapperFunctions_GetLinkObservable__WEBPACK_IMPORTED_MODULE_9__.GetLinkListener)(payload.id, payload.linker, payload.inpage, payload.page, payload.format)
10708
+ (0,_WrapperFunctions_GetLinkObservable__WEBPACK_IMPORTED_MODULE_7__.GetLinkListener)(payload.id, payload.linker, payload.inpage, payload.page, payload.format)
10800
10709
  .subscribe((value) => {
10801
10710
  var _a, _b;
10802
10711
  if (isSubscribed) {
@@ -11789,7 +11698,7 @@ function CreateConnectionBetweenTwoConcepts(ofTheConcept_1, toTheConcept_1, link
11789
11698
  var _a, _b;
11790
11699
  if (_app__WEBPACK_IMPORTED_MODULE_1__.serviceWorker) {
11791
11700
  const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_1__.sendMessage)('CreateConnectionBetweenTwoConcepts', { ofTheConcept, toTheConcept, linker, both, count });
11792
- // console.log('data received from sw', res)
11701
+ console.log('data received from sw', res);
11793
11702
  return res.data;
11794
11703
  }
11795
11704
  let userId = ofTheConcept.userId;
@@ -11941,7 +11850,7 @@ function CreateTheComposition(json_1) {
11941
11850
  return __awaiter(this, arguments, void 0, function* (json, ofTheConceptId = null, ofTheConceptUserId = null, mainKey = null, userId = null, accessId = null, sessionInformationId = null) {
11942
11851
  if (_app__WEBPACK_IMPORTED_MODULE_0__.serviceWorker) {
11943
11852
  const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.sendMessage)('CreateTheComposition', { json, ofTheConceptId, ofTheConceptUserId, mainKey, userId, accessId, sessionInformationId });
11944
- // console.log('data received from sw', res)
11853
+ console.log('data received from sw', res);
11945
11854
  return res.data;
11946
11855
  }
11947
11856
  let localUserId = userId !== null && userId !== void 0 ? userId : 999;
@@ -12202,7 +12111,7 @@ function DeleteConceptById(id) {
12202
12111
  return __awaiter(this, void 0, void 0, function* () {
12203
12112
  if (_app__WEBPACK_IMPORTED_MODULE_5__.serviceWorker) {
12204
12113
  const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_5__.sendMessage)('DeleteConceptById', { id });
12205
- // console.log('data received from sw', res)
12114
+ console.log('data received from sw', res);
12206
12115
  return res.data;
12207
12116
  }
12208
12117
  if (id > 0) {
@@ -12258,7 +12167,7 @@ function DeleteConnectionById(id) {
12258
12167
  return __awaiter(this, void 0, void 0, function* () {
12259
12168
  if (_app__WEBPACK_IMPORTED_MODULE_3__.serviceWorker) {
12260
12169
  const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_3__.sendMessage)('DeleteConnectionById', { id });
12261
- // console.log('data received from sw', res)
12170
+ console.log('data received from sw', res);
12262
12171
  return res.data;
12263
12172
  }
12264
12173
  if (id > 0) {
@@ -12304,7 +12213,7 @@ function DeleteConnectionByType(id, linker) {
12304
12213
  return __awaiter(this, void 0, void 0, function* () {
12305
12214
  if (_app__WEBPACK_IMPORTED_MODULE_1__.serviceWorker) {
12306
12215
  const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_1__.sendMessage)('DeleteConnectionByType', { id, linker });
12307
- // console.log('data received from sw', res)
12216
+ console.log('data received from sw', res);
12308
12217
  return res.data;
12309
12218
  }
12310
12219
  let externalConnections = yield (0,_Api_GetAllLinkerConnectionsFromTheConcept__WEBPACK_IMPORTED_MODULE_0__.GetAllLinkerConnectionsFromTheConcept)(id);
@@ -12383,8 +12292,7 @@ __webpack_require__.r(__webpack_exports__);
12383
12292
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12384
12293
  /* harmony export */ FindConnectionsOfCompositionsBulkInMemory: () => (/* binding */ FindConnectionsOfCompositionsBulkInMemory)
12385
12294
  /* harmony export */ });
12386
- /* harmony import */ var _app__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../app */ "./src/app.ts");
12387
- /* harmony import */ var _DataStructures_ConnectionData__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../DataStructures/ConnectionData */ "./src/DataStructures/ConnectionData.ts");
12295
+ /* harmony import */ var _DataStructures_ConnectionData__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../DataStructures/ConnectionData */ "./src/DataStructures/ConnectionData.ts");
12388
12296
  var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
12389
12297
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
12390
12298
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -12395,18 +12303,12 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
12395
12303
  });
12396
12304
  };
12397
12305
 
12398
-
12399
12306
  function FindConnectionsOfCompositionsBulkInMemory() {
12400
12307
  return __awaiter(this, arguments, void 0, function* (composition_ids = []) {
12401
- if (_app__WEBPACK_IMPORTED_MODULE_0__.serviceWorker) {
12402
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.sendMessage)('FindConnectionsOfCompositionsBulkInMemory', { composition_ids });
12403
- // console.log('data received from sw', res)
12404
- return res.data;
12405
- }
12406
12308
  let FinalConnectionList = [];
12407
12309
  for (let i = 0; i < composition_ids.length; i++) {
12408
12310
  // let connectionList = await ConnectionData.GetConnectionsOfCompositionLocal(composition_ids[i]);
12409
- let connectionList = yield _DataStructures_ConnectionData__WEBPACK_IMPORTED_MODULE_1__.ConnectionData.GetConnectionsOfConcept(composition_ids[i]);
12311
+ let connectionList = yield _DataStructures_ConnectionData__WEBPACK_IMPORTED_MODULE_0__.ConnectionData.GetConnectionsOfConcept(composition_ids[i]);
12410
12312
  FinalConnectionList.push(...connectionList);
12411
12313
  }
12412
12314
  return FinalConnectionList;
@@ -12466,7 +12368,7 @@ function GetCompositionById(id) {
12466
12368
  return __awaiter(this, void 0, void 0, function* () {
12467
12369
  if (_app__WEBPACK_IMPORTED_MODULE_4__.serviceWorker) {
12468
12370
  const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_4__.sendMessage)('GetCompositionById', { id });
12469
- // console.log('data received from sw', res)
12371
+ console.log('data received from sw', res);
12470
12372
  return res.data;
12471
12373
  }
12472
12374
  let connectionList = [];
@@ -12569,7 +12471,7 @@ function GetComposition(id) {
12569
12471
  var _a, _b;
12570
12472
  if (_app__WEBPACK_IMPORTED_MODULE_4__.serviceWorker) {
12571
12473
  const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_4__.sendMessage)('GetComposition', { id });
12572
- // console.log('data received from sw', res)
12474
+ console.log('data received from sw', res);
12573
12475
  return res.data;
12574
12476
  }
12575
12477
  let connectionList = [];
@@ -12633,7 +12535,7 @@ function GetCompositionFromMemory(id) {
12633
12535
  var _a, _b;
12634
12536
  if (_app__WEBPACK_IMPORTED_MODULE_4__.serviceWorker) {
12635
12537
  const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_4__.sendMessage)('GetCompositionFromMemory', { id });
12636
- // console.log('data received from sw', res)
12538
+ console.log('data received from sw', res);
12637
12539
  return res.data;
12638
12540
  }
12639
12541
  let connectionList = [];
@@ -12669,11 +12571,6 @@ function GetCompositionFromMemory(id) {
12669
12571
  function GetCompositionFromMemoryNormal(id) {
12670
12572
  return __awaiter(this, void 0, void 0, function* () {
12671
12573
  var _a, _b;
12672
- if (_app__WEBPACK_IMPORTED_MODULE_4__.serviceWorker) {
12673
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_4__.sendMessage)('GetCompositionFromMemoryNormal', { id });
12674
- // console.log('data received from sw', res)
12675
- return res.data;
12676
- }
12677
12574
  let connectionList = [];
12678
12575
  let returnOutput = {};
12679
12576
  //connectionList = await ConnectionData.GetConnectionsOfConcept(id);
@@ -12707,7 +12604,7 @@ function GetCompositionWithIdFromMemory(id) {
12707
12604
  var _a, _b;
12708
12605
  if (_app__WEBPACK_IMPORTED_MODULE_4__.serviceWorker) {
12709
12606
  const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_4__.sendMessage)('GetCompositionWithIdFromMemory', { id });
12710
- // console.log('data received from sw', res)
12607
+ console.log('data received from sw', res);
12711
12608
  return res.data;
12712
12609
  }
12713
12610
  let connectionList = [];
@@ -12746,11 +12643,6 @@ function GetCompositionWithIdFromMemory(id) {
12746
12643
  function GetCompositionWithIdFromMemoryNew(id) {
12747
12644
  return __awaiter(this, void 0, void 0, function* () {
12748
12645
  var _a, _b;
12749
- if (_app__WEBPACK_IMPORTED_MODULE_4__.serviceWorker) {
12750
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_4__.sendMessage)('GetCompositionWithIdFromMemoryNew', { id });
12751
- // console.log('data received from sw', res)
12752
- return res.data;
12753
- }
12754
12646
  let connectionList = [];
12755
12647
  let returnOutput = {};
12756
12648
  //connectionList = await ConnectionData.GetConnectionsOfConcept(id);
@@ -12792,7 +12684,7 @@ function GetCompositionWithIdAndDateFromMemory(id) {
12792
12684
  var _a, _b;
12793
12685
  if (_app__WEBPACK_IMPORTED_MODULE_4__.serviceWorker) {
12794
12686
  const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_4__.sendMessage)('GetCompositionWithIdAndDateFromMemory', { id });
12795
- // console.log('data received from sw', res)
12687
+ console.log('data received from sw', res);
12796
12688
  return res.data;
12797
12689
  }
12798
12690
  let connectionList = [];
@@ -12856,7 +12748,7 @@ function GetCompositionWithId(id) {
12856
12748
  var _a, _b;
12857
12749
  if (_app__WEBPACK_IMPORTED_MODULE_4__.serviceWorker) {
12858
12750
  const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_4__.sendMessage)('GetCompositionWithId', { id });
12859
- // console.log('data received from sw', res)
12751
+ console.log('data received from sw', res);
12860
12752
  return res.data;
12861
12753
  }
12862
12754
  let connectionList = [];
@@ -13355,7 +13247,7 @@ function GetCompositionFromConnectionsWithDataId() {
13355
13247
  return __awaiter(this, arguments, void 0, function* (conceptIds = [], connectionIds = []) {
13356
13248
  if (_app__WEBPACK_IMPORTED_MODULE_2__.serviceWorker) {
13357
13249
  const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_2__.sendMessage)('GetCompositionFromConnectionsWithDataId', { conceptIds, connectionIds });
13358
- // console.log('data received from sw', res)
13250
+ console.log('data received from sw', res);
13359
13251
  return res.data;
13360
13252
  }
13361
13253
  let newConnections = yield (0,_Api_GetConnectionBulk__WEBPACK_IMPORTED_MODULE_1__.GetConnectionBulk)(connectionIds);
@@ -13380,7 +13272,7 @@ function GetCompositionFromConnectionsWithDataIdIndex() {
13380
13272
  return __awaiter(this, arguments, void 0, function* (conceptIds = [], connectionIds = []) {
13381
13273
  if (_app__WEBPACK_IMPORTED_MODULE_2__.serviceWorker) {
13382
13274
  const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_2__.sendMessage)('GetCompositionFromConnectionsWithDataIdIndex', { conceptIds, connectionIds });
13383
- // console.log('data received from sw', res)
13275
+ console.log('data received from sw', res);
13384
13276
  return res.data;
13385
13277
  }
13386
13278
  let newConnections = yield (0,_Api_GetConnectionBulk__WEBPACK_IMPORTED_MODULE_1__.GetConnectionBulk)(connectionIds);
@@ -13423,11 +13315,6 @@ function GetCompositionFromConnectionsWithIndex() {
13423
13315
  */
13424
13316
  function GetConnectionDataPrefetch(connectionIds) {
13425
13317
  return __awaiter(this, void 0, void 0, function* () {
13426
- if (_app__WEBPACK_IMPORTED_MODULE_2__.serviceWorker) {
13427
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_2__.sendMessage)('GetConnectionDataPrefetch', { connectionIds });
13428
- // console.log('data received from sw', res)
13429
- return res.data;
13430
- }
13431
13318
  let remainingConnections = [];
13432
13319
  let connectionsAll = [];
13433
13320
  let remainingIds = {};
@@ -13594,7 +13481,7 @@ function GetCompositionList(compositionName_1, userId_1) {
13594
13481
  return __awaiter(this, arguments, void 0, function* (compositionName, userId, inpage = 10, page = 1) {
13595
13482
  if (_app__WEBPACK_IMPORTED_MODULE_4__.serviceWorker) {
13596
13483
  const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_4__.sendMessage)('GetCompositionList', { compositionName, userId, inpage, page });
13597
- // console.log('data received from sw', res)
13484
+ console.log('data received from sw', res);
13598
13485
  return res.data;
13599
13486
  }
13600
13487
  let concept = yield (0,_GetConceptByCharacter__WEBPACK_IMPORTED_MODULE_6__["default"])(compositionName);
@@ -13664,11 +13551,6 @@ function GetCompositionListAll(compositionName_1, userId_1) {
13664
13551
  // }
13665
13552
  function GetCompositionListAllWithId(compositionName_1, userId_1) {
13666
13553
  return __awaiter(this, arguments, void 0, function* (compositionName, userId, inpage = 10, page = 1) {
13667
- if (_app__WEBPACK_IMPORTED_MODULE_4__.serviceWorker) {
13668
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_4__.sendMessage)('GetCompositionListAllWithId', { compositionName, userId, inpage, page });
13669
- // console.log('data received from sw', res)
13670
- return res.data;
13671
- }
13672
13554
  let conceptLocal = yield (0,_Local_GetConceptByCharacterLocal__WEBPACK_IMPORTED_MODULE_7__["default"])(compositionName);
13673
13555
  let conceptOnline = yield (0,_GetConceptByCharacter__WEBPACK_IMPORTED_MODULE_6__["default"])(compositionName);
13674
13556
  let CompositionList = [];
@@ -13705,7 +13587,7 @@ function GetCompositionListWithId(compositionName_1, userId_1) {
13705
13587
  return __awaiter(this, arguments, void 0, function* (compositionName, userId, inpage = 10, page = 1) {
13706
13588
  if (_app__WEBPACK_IMPORTED_MODULE_4__.serviceWorker) {
13707
13589
  const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_4__.sendMessage)('GetCompositionListWithId', { compositionName, userId, inpage, page });
13708
- // console.log('data received from sw', res)
13590
+ console.log('data received from sw', res);
13709
13591
  return res.data;
13710
13592
  }
13711
13593
  let concept = yield (0,_GetConceptByCharacter__WEBPACK_IMPORTED_MODULE_6__["default"])(compositionName);
@@ -13797,8 +13679,7 @@ __webpack_require__.r(__webpack_exports__);
13797
13679
  /* harmony export */ "default": () => (/* binding */ GetConceptByCharacter)
13798
13680
  /* harmony export */ });
13799
13681
  /* harmony import */ var _Api_GetConceptByCharacterValue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Api/GetConceptByCharacterValue */ "./src/Api/GetConceptByCharacterValue.ts");
13800
- /* harmony import */ var _app__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../app */ "./src/app.ts");
13801
- /* harmony import */ var _DataStructures_ConceptData__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../DataStructures/ConceptData */ "./src/DataStructures/ConceptData.ts");
13682
+ /* harmony import */ var _DataStructures_ConceptData__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../DataStructures/ConceptData */ "./src/DataStructures/ConceptData.ts");
13802
13683
  var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
13803
13684
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
13804
13685
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -13810,21 +13691,15 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
13810
13691
  };
13811
13692
 
13812
13693
 
13813
-
13814
13694
  function GetConceptByCharacter(characterValue) {
13815
13695
  return __awaiter(this, void 0, void 0, function* () {
13816
- if (_app__WEBPACK_IMPORTED_MODULE_1__.serviceWorker) {
13817
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_1__.sendMessage)('GetConceptByCharacter', { characterValue });
13818
- // console.log('data received from sw', res)
13819
- return res.data;
13820
- }
13821
- let concept = yield _DataStructures_ConceptData__WEBPACK_IMPORTED_MODULE_2__.ConceptsData.GetConceptByCharacter(characterValue);
13696
+ let concept = yield _DataStructures_ConceptData__WEBPACK_IMPORTED_MODULE_1__.ConceptsData.GetConceptByCharacter(characterValue);
13822
13697
  let literalCharacter = `${characterValue}`;
13823
13698
  if ((concept == null || (concept === null || concept === void 0 ? void 0 : concept.id) == 0) && literalCharacter) {
13824
13699
  yield (0,_Api_GetConceptByCharacterValue__WEBPACK_IMPORTED_MODULE_0__.GetConceptByCharacterValue)(characterValue);
13825
- concept = yield _DataStructures_ConceptData__WEBPACK_IMPORTED_MODULE_2__.ConceptsData.GetConceptByCharacterAndTypeLocal(characterValue, 51);
13700
+ concept = yield _DataStructures_ConceptData__WEBPACK_IMPORTED_MODULE_1__.ConceptsData.GetConceptByCharacterAndTypeLocal(characterValue, 51);
13826
13701
  if (concept.id == 0) {
13827
- concept = yield _DataStructures_ConceptData__WEBPACK_IMPORTED_MODULE_2__.ConceptsData.GetConceptByCharacter(characterValue);
13702
+ concept = yield _DataStructures_ConceptData__WEBPACK_IMPORTED_MODULE_1__.ConceptsData.GetConceptByCharacter(characterValue);
13828
13703
  }
13829
13704
  }
13830
13705
  return concept;
@@ -13832,16 +13707,11 @@ function GetConceptByCharacter(characterValue) {
13832
13707
  }
13833
13708
  function GetConceptByCharacterUpdated(characterValue) {
13834
13709
  return __awaiter(this, void 0, void 0, function* () {
13835
- if (_app__WEBPACK_IMPORTED_MODULE_1__.serviceWorker) {
13836
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_1__.sendMessage)('GetConceptByCharacterUpdated', { characterValue });
13837
- // console.log('data received from sw', res)
13838
- return res.data;
13839
- }
13840
- let concept = yield _DataStructures_ConceptData__WEBPACK_IMPORTED_MODULE_2__.ConceptsData.GetConceptByCharacter(characterValue);
13710
+ let concept = yield _DataStructures_ConceptData__WEBPACK_IMPORTED_MODULE_1__.ConceptsData.GetConceptByCharacter(characterValue);
13841
13711
  let literalCharacter = `${characterValue}`;
13842
13712
  if ((concept == null || (concept === null || concept === void 0 ? void 0 : concept.id) == 0) && literalCharacter) {
13843
13713
  yield (0,_Api_GetConceptByCharacterValue__WEBPACK_IMPORTED_MODULE_0__.GetConceptByCharacterValue)(characterValue);
13844
- concept = yield _DataStructures_ConceptData__WEBPACK_IMPORTED_MODULE_2__.ConceptsData.GetConceptByCharacter(characterValue);
13714
+ concept = yield _DataStructures_ConceptData__WEBPACK_IMPORTED_MODULE_1__.ConceptsData.GetConceptByCharacter(characterValue);
13845
13715
  }
13846
13716
  return concept;
13847
13717
  });
@@ -13889,7 +13759,7 @@ function GetConnectionBetweenTwoConceptsLinker(ofTheConcept_1, toTheConcept_1, l
13889
13759
  var _a, _b;
13890
13760
  if (_app__WEBPACK_IMPORTED_MODULE_1__.serviceWorker) {
13891
13761
  const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_1__.sendMessage)('GetConnectionBetweenTwoConceptsLinker', { ofTheConcept, toTheConcept, linker, fullLinker, forward });
13892
- // console.log('data received from sw', res)
13762
+ console.log('data received from sw', res);
13893
13763
  return res.data;
13894
13764
  }
13895
13765
  let typeConcept = (0,_app__WEBPACK_IMPORTED_MODULE_1__.CreateDefaultConcept)();
@@ -13949,7 +13819,7 @@ function GetConnectionById(id) {
13949
13819
  return __awaiter(this, void 0, void 0, function* () {
13950
13820
  if (_app__WEBPACK_IMPORTED_MODULE_1__.serviceWorker) {
13951
13821
  const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_1__.sendMessage)('GetConnectionById', { id });
13952
- // console.log('data received from sw', res)
13822
+ console.log('data received from sw', res);
13953
13823
  return res.data;
13954
13824
  }
13955
13825
  let connection = yield _DataStructures_ConnectionData__WEBPACK_IMPORTED_MODULE_2__.ConnectionData.GetConnection(id);
@@ -14075,7 +13945,7 @@ function GetLink(id_1, linker_1) {
14075
13945
  var _a;
14076
13946
  if (_app__WEBPACK_IMPORTED_MODULE_5__.serviceWorker) {
14077
13947
  const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_5__.sendMessage)('GetLink', { id, linker, inpage, page });
14078
- // console.log('data received from sw', res)
13948
+ console.log('data received from sw', res);
14079
13949
  return res.data;
14080
13950
  }
14081
13951
  let output = [];
@@ -14199,7 +14069,6 @@ __webpack_require__.r(__webpack_exports__);
14199
14069
  /* harmony import */ var _GetTheConcept__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./GetTheConcept */ "./src/Services/GetTheConcept.ts");
14200
14070
  /* harmony import */ var _Api_GetAllConnectionsOfCompositionBulk__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Api/GetAllConnectionsOfCompositionBulk */ "./src/Api/GetAllConnectionsOfCompositionBulk.ts");
14201
14071
  /* harmony import */ var _ConceptFinding_GetConceptByCharacterAndCategory__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ConceptFinding/GetConceptByCharacterAndCategory */ "./src/Services/ConceptFinding/GetConceptByCharacterAndCategory.ts");
14202
- /* harmony import */ var _app__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../app */ "./src/app.ts");
14203
14072
  var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
14204
14073
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
14205
14074
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -14214,14 +14083,8 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
14214
14083
 
14215
14084
 
14216
14085
 
14217
-
14218
14086
  function GetRelation(id_1, relation_1) {
14219
14087
  return __awaiter(this, arguments, void 0, function* (id, relation, inpage = 10, page = 1) {
14220
- if (_app__WEBPACK_IMPORTED_MODULE_5__.serviceWorker) {
14221
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_5__.sendMessage)('GetRelation', { id, relation, inpage, page });
14222
- // console.log('data received from sw', res)
14223
- return res.data;
14224
- }
14225
14088
  let output = [];
14226
14089
  let concept = yield (0,_GetTheConcept__WEBPACK_IMPORTED_MODULE_2__["default"])(id);
14227
14090
  let relatedConceptString = yield (0,_ConceptFinding_GetConceptByCharacterAndCategory__WEBPACK_IMPORTED_MODULE_4__.GetConceptByCharacterAndCategory)(relation);
@@ -14246,11 +14109,6 @@ function GetRelation(id_1, relation_1) {
14246
14109
  }
14247
14110
  function GetRelationRaw(id_1, relation_1) {
14248
14111
  return __awaiter(this, arguments, void 0, function* (id, relation, inpage = 10, page = 1) {
14249
- if (_app__WEBPACK_IMPORTED_MODULE_5__.serviceWorker) {
14250
- const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_5__.sendMessage)('GetRelationRaw', { id, relation, inpage, page });
14251
- // console.log('data received from sw', res)
14252
- return res.data;
14253
- }
14254
14112
  let output = [];
14255
14113
  let concept = yield (0,_GetTheConcept__WEBPACK_IMPORTED_MODULE_2__["default"])(id);
14256
14114
  let relatedConceptString = yield (0,_ConceptFinding_GetConceptByCharacterAndCategory__WEBPACK_IMPORTED_MODULE_4__.GetConceptByCharacterAndCategory)(relation);
@@ -14313,7 +14171,7 @@ function GetTheConcept(id_1) {
14313
14171
  try {
14314
14172
  if (_app__WEBPACK_IMPORTED_MODULE_1__.serviceWorker) {
14315
14173
  const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_1__.sendMessage)('GetTheConcept', { id, userId });
14316
- // console.log('data received from sw', res)
14174
+ console.log('data received from sw', res);
14317
14175
  return res.data;
14318
14176
  }
14319
14177
  let concept = (0,_CreateDefaultConcept__WEBPACK_IMPORTED_MODULE_3__.CreateDefaultConcept)();
@@ -14469,7 +14327,7 @@ function CreateConnectionBetweenTwoConceptsLocal(ofTheConcept_1, toTheConcept_1,
14469
14327
  try {
14470
14328
  if (_app__WEBPACK_IMPORTED_MODULE_0__.serviceWorker) {
14471
14329
  const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.sendMessage)('CreateConnectionBetweenTwoConceptsLocal', { ofTheConcept, toTheConcept, linker, both, actions });
14472
- // console.log('data received from sw', res)
14330
+ console.log('data received from sw', res);
14473
14331
  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)
14474
14332
  actions.concepts = JSON.parse(JSON.stringify(res.actions.concepts));
14475
14333
  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)
@@ -14747,7 +14605,7 @@ function CreateTheCompositionLocal(json_1) {
14747
14605
  var _a, _b, _c, _d;
14748
14606
  if (_app__WEBPACK_IMPORTED_MODULE_0__.serviceWorker) {
14749
14607
  const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.sendMessage)('CreateTheCompositionLocal', { json, ofTheConceptId, ofTheConceptUserId, mainKey, userId, accessId, sessionInformationId, actions });
14750
- // console.log('data received from sw', res)
14608
+ console.log('data received from sw', res);
14751
14609
  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)
14752
14610
  actions.concepts = JSON.parse(JSON.stringify(res.actions.concepts));
14753
14611
  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)
@@ -14849,7 +14707,7 @@ function CreateTheConceptLocal(referent_1, typecharacter_1, userId_1, categoryId
14849
14707
  try {
14850
14708
  if (_app__WEBPACK_IMPORTED_MODULE_0__.serviceWorker) {
14851
14709
  const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.sendMessage)('CreateTheConceptLocal', { referent, typecharacter, userId, categoryId, typeId, accessId, isComposition, referentId });
14852
- // console.log('data received from sw', res)
14710
+ console.log('data received from sw', res);
14853
14711
  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)
14854
14712
  actions.concepts = JSON.parse(JSON.stringify(res.actions.concepts));
14855
14713
  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)
@@ -14928,7 +14786,7 @@ function CreateTheConnectionLocal(ofTheConceptId_1, toTheConceptId_1, typeId_1)
14928
14786
  var _a, _b, _c, _d;
14929
14787
  if (_app__WEBPACK_IMPORTED_MODULE_3__.serviceWorker) {
14930
14788
  const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_3__.sendMessage)('CreateTheConnectionLocal', { ofTheConceptId, toTheConceptId, typeId, orderId, typeString, userId, actions });
14931
- // console.log('data received from sw', res)
14789
+ console.log('data received from sw', res);
14932
14790
  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)
14933
14791
  actions.concepts = JSON.parse(JSON.stringify(res.actions.concepts));
14934
14792
  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)
@@ -14995,7 +14853,7 @@ function DeleteConceptLocal(id) {
14995
14853
  return __awaiter(this, void 0, void 0, function* () {
14996
14854
  if (_app__WEBPACK_IMPORTED_MODULE_0__.serviceWorker) {
14997
14855
  const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.sendMessage)('DeleteConceptLocal', { id });
14998
- // console.log('data received from sw', res)
14856
+ console.log('data received from sw', res);
14999
14857
  return res.data;
15000
14858
  }
15001
14859
  let concept = yield (0,_GetTheConceptLocal__WEBPACK_IMPORTED_MODULE_2__.GetTheConceptLocal)(id);
@@ -15044,7 +14902,7 @@ function GetCompositionListLocal(compositionName, userId) {
15044
14902
  return __awaiter(this, void 0, void 0, function* () {
15045
14903
  if (_app__WEBPACK_IMPORTED_MODULE_0__.serviceWorker) {
15046
14904
  const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.sendMessage)('GetCompositionListLocal', { compositionName, userId });
15047
- // console.log('data received from sw', res)
14905
+ console.log('data received from sw', res);
15048
14906
  return res.data;
15049
14907
  }
15050
14908
  try {
@@ -15074,7 +14932,7 @@ function GetCompositionListLocalWithId(compositionName, userId) {
15074
14932
  return __awaiter(this, void 0, void 0, function* () {
15075
14933
  if (_app__WEBPACK_IMPORTED_MODULE_0__.serviceWorker) {
15076
14934
  const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.sendMessage)('GetCompositionListLocalWithId', { compositionName, userId });
15077
- // console.log('data received from sw', res)
14935
+ console.log('data received from sw', res);
15078
14936
  return res.data;
15079
14937
  }
15080
14938
  try {
@@ -15134,7 +14992,7 @@ function GetCompositionLocal(id) {
15134
14992
  try {
15135
14993
  if (_app__WEBPACK_IMPORTED_MODULE_4__.serviceWorker) {
15136
14994
  const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_4__.sendMessage)('GetCompositionLocal', { id });
15137
- // console.log('data received from sw', res)
14995
+ console.log('data received from sw', res);
15138
14996
  return res.data;
15139
14997
  }
15140
14998
  let connectionList = [];
@@ -15170,7 +15028,7 @@ function GetCompositionLocalWithId(id) {
15170
15028
  try {
15171
15029
  if (_app__WEBPACK_IMPORTED_MODULE_4__.serviceWorker) {
15172
15030
  const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_4__.sendMessage)('GetCompositionLocalWithId', { id });
15173
- // console.log('data received from sw', res)
15031
+ console.log('data received from sw', res);
15174
15032
  return res.data;
15175
15033
  }
15176
15034
  let connectionList = [];
@@ -15300,7 +15158,7 @@ function GetConceptByCharacterAndCategoryLocal(character) {
15300
15158
  return __awaiter(this, void 0, void 0, function* () {
15301
15159
  if (_app__WEBPACK_IMPORTED_MODULE_2__.serviceWorker) {
15302
15160
  const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_2__.sendMessage)('GetConceptByCharacterAndCategoryLocal', { character });
15303
- // console.log('data received from sw', res)
15161
+ console.log('data received from sw', res);
15304
15162
  return res.data;
15305
15163
  }
15306
15164
  let lconcept = (0,_app__WEBPACK_IMPORTED_MODULE_2__.CreateDefaultLConcept)();
@@ -15418,7 +15276,7 @@ function GetRelationLocal(id, relation, userId) {
15418
15276
  const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.sendMessage)("GetRelationLocal", {
15419
15277
  id, relation, userId
15420
15278
  });
15421
- // console.log("data received from sw", res);
15279
+ console.log("data received from sw", res);
15422
15280
  return res.data;
15423
15281
  }
15424
15282
  let typeConcept = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.GetConceptByCharacterAndCategoryLocal)(relation);
@@ -15482,7 +15340,7 @@ function GetTheConceptLocal(id) {
15482
15340
  try {
15483
15341
  if (_app__WEBPACK_IMPORTED_MODULE_2__.serviceWorker) {
15484
15342
  const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_2__.sendMessage)('GetTheConceptLocal', { id });
15485
- // console.log('data received from sw', res)
15343
+ console.log('data received from sw', res);
15486
15344
  return res.data;
15487
15345
  }
15488
15346
  let lconcept = (0,_app__WEBPACK_IMPORTED_MODULE_2__.CreateDefaultLConcept)();
@@ -15545,7 +15403,7 @@ function MakeTheConceptLocal(referent_1, typeCharacter_1, userId_1, categoryId_1
15545
15403
  const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.sendMessage)("MakeTheConceptLocal", {
15546
15404
  referent, typeCharacter, userId, categoryId, typeId, actions
15547
15405
  });
15548
- // console.log("data received from sw", res);
15406
+ console.log("data received from sw", res);
15549
15407
  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)
15550
15408
  actions.concepts = JSON.parse(JSON.stringify(res.actions.concepts));
15551
15409
  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)
@@ -15617,7 +15475,7 @@ function MakeTheInstanceConceptLocal(type_1, referent_1) {
15617
15475
  var _a, _b, _c, _d;
15618
15476
  if (_app__WEBPACK_IMPORTED_MODULE_3__.serviceWorker) {
15619
15477
  const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_3__.sendMessage)('MakeTheInstanceConceptLocal', { type, referent, composition, userId, accessId, sessionInformationId, referentId, actions });
15620
- // console.log('data received from sw', res)
15478
+ console.log('data received from sw', res);
15621
15479
  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)
15622
15480
  actions.concepts = JSON.parse(JSON.stringify(res.actions.concepts));
15623
15481
  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)
@@ -15727,7 +15585,7 @@ function MakeTheTypeConceptLocal(typeString_1, sessionId_1, sessionUserId_1, use
15727
15585
  const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_4__.sendMessage)("MakeTheTypeConceptLocal", {
15728
15586
  typeString, sessionId, sessionUserId, userId, actions
15729
15587
  });
15730
- // console.log("data received from sw", res);
15588
+ console.log("data received from sw", res);
15731
15589
  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)
15732
15590
  actions.concepts = JSON.parse(JSON.stringify(res.actions.concepts));
15733
15591
  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)
@@ -15809,7 +15667,7 @@ function UpdateCompositionLocal(patcherStructure_1) {
15809
15667
  patcherStructure,
15810
15668
  actions
15811
15669
  });
15812
- // console.log("data received from sw", res);
15670
+ console.log("data received from sw", res);
15813
15671
  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)
15814
15672
  actions.concepts = JSON.parse(JSON.stringify(res.actions.concepts));
15815
15673
  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)
@@ -16101,7 +15959,7 @@ function MakeTheInstanceConcept(type_1, referent_1) {
16101
15959
  passedSessionId,
16102
15960
  referentId,
16103
15961
  });
16104
- // console.log("data received from sw", res);
15962
+ console.log("data received from sw", res);
16105
15963
  return res.data;
16106
15964
  }
16107
15965
  let sessionInformationId = passedSessionId;
@@ -16201,7 +16059,7 @@ function MakeTheTimestamp(type_1, referent_1, userId_1) {
16201
16059
  return __awaiter(this, arguments, void 0, function* (type, referent, userId, accessId = 4, sessionInformationId = 999) {
16202
16060
  if (_app__WEBPACK_IMPORTED_MODULE_0__.serviceWorker) {
16203
16061
  const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.sendMessage)('MakeTheTimestamp', { type, referent, userId, accessId, sessionInformationId });
16204
- // console.log('data received from sw', res)
16062
+ console.log('data received from sw', res);
16205
16063
  return res.data;
16206
16064
  }
16207
16065
  let categoryId = 4;
@@ -16261,7 +16119,7 @@ function MakeTheTypeConcept(typeString, sessionId, sessionUserId, userId) {
16261
16119
  return __awaiter(this, void 0, void 0, function* () {
16262
16120
  if (_app__WEBPACK_IMPORTED_MODULE_0__.serviceWorker) {
16263
16121
  const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_0__.sendMessage)('MakeTheTypeConcept', { typeString, sessionId, sessionUserId, userId });
16264
- // console.log('data received from sw', res)
16122
+ console.log('data received from sw', res);
16265
16123
  return res.data;
16266
16124
  }
16267
16125
  let referentId = 999;
@@ -17523,7 +17381,7 @@ function UpdateComposition(patcherStructure) {
17523
17381
  const res = yield (0,_app__WEBPACK_IMPORTED_MODULE_13__.sendMessage)("UpdateComposition", {
17524
17382
  patcherStructure,
17525
17383
  });
17526
- // console.log("data received from sw", res);
17384
+ console.log("data received from sw", res);
17527
17385
  return res.data;
17528
17386
  }
17529
17387
  // get all the default userId, sessionId, accessId passed by the patcherStructure
@@ -19909,9 +19767,10 @@ function sendMessage(type, payload) {
19909
19767
  }
19910
19768
  // Timeout for waiting for the response (e.g., 5 seconds)
19911
19769
  setTimeout(() => {
19770
+ console.log('timeout', type);
19912
19771
  reject("No response from service worker after timeout");
19913
19772
  navigator.serviceWorker.removeEventListener("message", responseHandler);
19914
- }, 30000); // 30 sec
19773
+ }, 10000);
19915
19774
  // })
19916
19775
  // .catch(err => reject(err))
19917
19776
  // .finally(() => console.log('finally'))
@@ -20197,7 +20056,7 @@ const actions = Object.assign(Object.assign(Object.assign(Object.assign(Object.a
20197
20056
  // Listen message received by service worker
20198
20057
  self.addEventListener("message", (event) => __awaiter(void 0, void 0, void 0, function* () {
20199
20058
  var _a, _b;
20200
- // console.log("message received sw", event);
20059
+ console.log("message received sw", event);
20201
20060
  const { type, payload } = event.data;
20202
20061
  const tabId = payload.TABID;
20203
20062
  let addedActions = false;